Repository navigation
Expand file tree
/
Copy pathshowcase_transcript.ndjson
More file actions
18 lines (18 loc) · 6.16 KB
/
Copy pathshowcase_transcript.ndjson
File metadata and controls
18 lines (18 loc) · 6.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{"type":"transcript_start","provider":"acpRegistry","protocol":"acp.ndjson-jsonrpc","version":"1","scenario":"dev_replay_showcase","metadata":{"generatedBy":"hand-written for the dev replay agent"}}
{"type":"expect_outbound","frame":{"kind":"request","method":"session/prompt","params":"<any>"}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"agent_thought_chunk","content":{"type":"text","text":"The user wants a short tour. I will read the manifest, add a small helper, run the tests, and then summarize with some markdown."}}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"plan","entries":[{"content":"Read the package manifest","priority":"high","status":"in_progress"},{"content":"Add a clamp helper","priority":"high","status":"pending"},{"content":"Run the tests","priority":"medium","status":"pending"}]}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"tool_call","toolCallId":"showcase-read","kind":"read","title":"Read package.json","status":"pending","rawInput":{"path":"<workspace>/package.json"}}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"tool_call_update","toolCallId":"showcase-read","status":"completed","content":[{"type":"content","content":{"type":"text","text":"{\n \"name\": \"demo\",\n \"scripts\": { \"test\": \"vp test run\" }\n}"}}]}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"plan","entries":[{"content":"Read the package manifest","priority":"high","status":"completed"},{"content":"Add a clamp helper","priority":"high","status":"in_progress"},{"content":"Run the tests","priority":"medium","status":"pending"}]}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"The project has a single math module. I will add a `clamp` helper beside `sum`.\n\n"}}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"tool_call","toolCallId":"showcase-edit","kind":"edit","title":"Edit src/math.ts","rawInput":{"path":"<workspace>/src/math.ts"},"status":"pending","content":[{"type":"diff","path":"<workspace>/src/math.ts","oldText":"export function sum(a: number, b: number) {\n return a + b;\n}\n","newText":"export function sum(a: number, b: number) {\n return a + b;\n}\n\nexport function clamp(value: number, min: number, max: number) {\n return Math.min(Math.max(value, min), max);\n}\n"}]}}}}
{"type":"emit_inbound","frame":{"kind":"request","method":"session/request_permission","params":{"sessionId":"dev-replay-session","toolCall":{"toolCallId":"showcase-edit","kind":"edit","title":"Edit src/math.ts","rawInput":{"path":"<workspace>/src/math.ts"}},"options":[{"optionId":"allow-once","name":"Yes","kind":"allow_once"},{"optionId":"reject-once","name":"No","kind":"reject_once"}]}}}
{"type":"expect_outbound","frame":{"kind":"response","method":"session/request_permission","result":"<any>"}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"tool_call_update","toolCallId":"showcase-edit","status":"completed","content":[{"type":"diff","path":"<workspace>/src/math.ts","oldText":"export function sum(a: number, b: number) {\n return a + b;\n}\n","newText":"export function sum(a: number, b: number) {\n return a + b;\n}\n\nexport function clamp(value: number, min: number, max: number) {\n return Math.min(Math.max(value, min), max);\n}\n"}]}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"plan","entries":[{"content":"Read the package manifest","priority":"high","status":"completed"},{"content":"Add a clamp helper","priority":"high","status":"completed"},{"content":"Run the tests","priority":"medium","status":"in_progress"}]}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"tool_call","toolCallId":"showcase-test","kind":"execute","title":"vp test run","status":"in_progress","rawInput":{"command":"vp test run"}}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"tool_call_update","toolCallId":"showcase-test","status":"completed","content":[{"type":"content","content":{"type":"text","text":" ✓ src/math.test.ts (12 tests) 14ms\n\n Test Files 1 passed (1)\n Tests 12 passed (12)"}}]}}},"afterMs":1200}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"plan","entries":[{"content":"Read the package manifest","priority":"high","status":"completed"},{"content":"Add a clamp helper","priority":"high","status":"completed"},{"content":"Run the tests","priority":"medium","status":"completed"}]}}}}
{"type":"emit_inbound","frame":{"kind":"notification","method":"session/update","params":{"sessionId":"dev-replay-session","update":{"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"## Done\n\nI added `clamp` next to `sum` and the tests pass.\n\n- Reads the manifest first\n- Asks before it writes\n- Streams a terminal result\n\n```ts\nclamp(12, 0, 10); // 10\nclamp(-3, 0, 10); // 0\n```\n\n| Step | Tool | Result |\n| --- | --- | --- |\n| Read | `read` | 1 file |\n| Edit | `edit` | +4 lines |\n| Test | `execute` | 12 passed |\n\nThis turn is a replay. It costs nothing, so send it again as often as you need."}}}}}
{"type":"emit_inbound","frame":{"kind":"response","method":"session/prompt","result":{"stopReason":"end_turn"}}}