Registry Mirror
搜索
Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Files
Expand file tree
main
Breadcrumbs
t3code
/
apps
/
server
/
scripts
/
cursorReplayRecordingWorkspace.ts
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
29 lines (24 loc) · 1.03 KB
main
Breadcrumbs
t3code
/
apps
/
server
/
scripts
/
cursorReplayRecordingWorkspace.ts
Copy path
Top
File metadata and controls
Code
Blame
29 lines (24 loc) · 1.03 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { TOOL_CALL_READ_ONLY_WORKSPACE_ROOT } from "../src/orchestration-v2/testkit/fixtures/shared.ts";
const SEEDED_CURSOR_REPLAY_SCENARIOS = new Set(["subagent", "tool_call_read_only", "todo_list"]);
export function cursorReplayPromptsForWorkspace(input: {
readonly scenario: string;
readonly configuredPrompts: ReadonlyArray<string>;
readonly packageJsonPath: string;
readonly tsconfigPath: string;
}): ReadonlyArray<string> {
if (input.scenario !== "tool_call_read_only") {
return input.configuredPrompts;
}
return [
`Read ${input.packageJsonPath} and ${input.tsconfigPath}, then answer exactly: read only tool fixture complete`,
];
}
export function shouldSeedCursorReplayWorkspace(input: {
readonly scenario: string;
readonly owned: boolean;
}): boolean {
return input.owned && SEEDED_CURSOR_REPLAY_SCENARIOS.has(input.scenario);
}
export function cursorReplayTranscriptCwd(scenario: string): string | undefined {
return scenario === "tool_call_read_only" ? TOOL_CALL_READ_ONLY_WORKSPACE_ROOT : undefined;
}
You can’t perform that action at this time.