Add Cursor SDK orchestration replay support
- Wire Cursor adapter and provider session handling into orchestration v2 - Add replay fixtures, recording script, and coverage for Cursor turn flows - Update docs and debug timeline mapping for Cursor events
This commit is contained in:
1 parent
4fae73ee08
commit
ce64e37094
50 files changed
+7163
-201
No files matched your search
@@ -118,6 +118,10 @@ Codex replay transcript
|
||||
Claude replay transcript
|
||||
-> Claude Agent SDK query() outbound options and yielded SDKMessage chunks
|
||||
-> consumed by ClaudeAdapter
|
||||
|
||||
Cursor replay transcript
|
||||
-> Cursor Agent SDK open/send calls and ordered onDelta/run results
|
||||
-> consumed by CursorAdapter
|
||||
```
|
||||
|
||||
Fixtures should preserve raw provider evidence as closely as possible. Expected V2 events or projections are assertions, not fixture input.
|
||||
@@ -129,7 +133,8 @@ SDK output; it does not test the SDK's own subprocess or transport parser.
|
||||
|
||||
Provider transcript recorders live with the server orchestration testkit, not with provider client
|
||||
packages. Use `bun run record:codex-replay -- --scenario <name>` for Codex app-server transcripts
|
||||
and `bun run record:claude-replay -- --scenario <name>` for Claude Agent SDK transcripts.
|
||||
and `bun run record:claude-replay -- --scenario <name>` for Claude Agent SDK transcripts. Use
|
||||
`pnpm --filter t3 record:cursor-replay -- --scenario <name>` for Cursor Agent SDK transcripts.
|
||||
|
||||
## Contract Test Levels
|
||||
|
||||
@@ -201,7 +206,7 @@ Testing infrastructure should be built before production rewrites:
|
||||
2. Effect service definitions.
|
||||
3. provider runtime transport abstraction.
|
||||
4. generic replay runtime.
|
||||
5. Codex and Claude transcript loaders for app-owned provider replay fixtures.
|
||||
5. Codex, Claude, and Cursor transcript loaders for app-owned provider replay fixtures.
|
||||
6. projection reducer tests for core invariants.
|
||||
7. full command-to-projection integration tests.
|
||||
8. production layers.
|
||||
|
||||
Reference in new issue
Block a user