diff --git a/apps/web/tests/cordis-tool-round.e2e.ts b/apps/web/tests/cordis-tool-round.e2e.ts index 3a6d05cb1d..a91eaeb16e 100644 --- a/apps/web/tests/cordis-tool-round.e2e.ts +++ b/apps/web/tests/cordis-tool-round.e2e.ts @@ -153,7 +153,7 @@ describe('web e2e: Cordis tools use the generic row variants', () => { await runRow.waitFor({ timeout: 10_000 }) await expect.poll(() => runRow.textContent()).toContain('snap-') - const stopRow = page.locator('[data-tool="cordis_stop"]').filter({ hasText: 'Stop dynamic Plugin' }).first() + const stopRow = page.locator('[data-tool="cordis_stop"]').filter({ hasText: 'Stop dynamic package' }).first() await stopRow.waitFor({ timeout: 10_000 }) await expect.poll(() => stopRow.textContent()).toContain('snap-') await expect(stopRow.getAttribute('data-state')).resolves.toBe('ok') diff --git a/scripts/smoke-python-runtime.py b/scripts/smoke-python-runtime.py index 6d5813b6ad..700cfb7c79 100644 --- a/scripts/smoke-python-runtime.py +++ b/scripts/smoke-python-runtime.py @@ -42,7 +42,7 @@ SNAPSHOT_SESSION_ID = "advanced-executable" SNAPSHOT_DIRECT_CHILD_PROMPT = "Reply with exactly DIRECT_CHILD_OK and nothing else." SNAPSHOT_WORKFLOW_CHILD_PROMPT = "Reply with exactly WORKFLOW_CHILD_OK and nothing else." SNAPSHOT_FINAL_TEXT = "ADVANCED_EXECUTABLE_OK" -SNAPSHOT_MOUNT_CODE = """\ +SNAPSHOT_PLUGIN_CODE = """\ return (ctx) => { harness.registerTool(ctx, harness.defineTool({ name: 'snapshot_double', @@ -104,6 +104,8 @@ CUSTOM_CORDIS = """\ provider: spawn - id: workflow-tool name: '@deepseek-ai/dsh-tool-workflow' +- id: cordis-host-runner + name: '@deepseek-ai/dsh-cordis-host-runner' - id: cordis-tool name: '@deepseek-ai/dsh-tool-cordis' """ @@ -200,11 +202,16 @@ def completion_chunks(body: dict[str, object]) -> list[dict[str, object]]: if prompt == SNAPSHOT_WORKFLOW_CHILD_PROMPT: return text_chunks("WORKFLOW_CHILD_OK") if prompt == SNAPSHOT_PROMPT: - assert_advertised_tool(body, "cordis_mount") + assert_advertised_tool(body, "cordis_define") return tool_call_chunks( - "advanced-mount", - "cordis_mount", - {"code": SNAPSHOT_MOUNT_CODE}, + "advanced-define", + "cordis_define", + { + "plugin": {"kind": "new", "idPrefix": "snap"}, + "name": "Snapshot Double", + "purpose": "Expose a deterministic doubling tool for executable snapshot verification.", + "code": {"host": SNAPSHOT_PLUGIN_CODE}, + }, ) if prompt == CODE_PROMPT: assert_advertised_tool(body, "run_code") @@ -289,9 +296,20 @@ def advanced_tool_followup( """Advance the executable snapshot's deterministic parent tool chain.""" if not call_id.startswith("advanced-"): return None - if call_id == "advanced-mount" and tool_name == "cordis_mount": - if "Temporary Plugin dyn-1 is running" not in tool_text: - raise AssertionError(f"cordis_mount returned no temporary Plugin id: {tool_text}") + if call_id == "advanced-define" and tool_name == "cordis_define": + if "Defined snap-1/pkg-1 (Snapshot Double)" not in tool_text: + raise AssertionError(f"cordis_define returned no dynamic Package ids: {tool_text}") + if "snapshot_double" in advertised_tool_names(body): + raise AssertionError("snapshot_double was advertised before cordis_run") + assert_advertised_tool(body, "cordis_run") + return tool_call_chunks( + "advanced-run", + "cordis_run", + {"pluginId": "snap-1", "packageId": "pkg-1", "mode": "run"}, + ) + if call_id == "advanced-run" and tool_name == "cordis_run": + if "snap-1/pkg-1 is running (run-1)" not in tool_text: + raise AssertionError(f"cordis_run returned no running Package ids: {tool_text}") assert_advertised_tool(body, "run_code") assert_advertised_tool(body, "snapshot_double") return tool_call_chunks( @@ -332,17 +350,17 @@ def advanced_tool_followup( if call_id == "advanced-workflow" and tool_name == "workflow": if "WORKFLOW_CHILD_OK" not in tool_text: raise AssertionError(f"workflow returned no expected child value: {tool_text}") - assert_advertised_tool(body, "cordis_unmount") + assert_advertised_tool(body, "cordis_undefine") return tool_call_chunks( - "advanced-unmount", - "cordis_unmount", - {"id": "dyn-1"}, + "advanced-undefine", + "cordis_undefine", + {"pluginId": "snap-1"}, ) - if call_id == "advanced-unmount" and tool_name == "cordis_unmount": - if "Temporary Plugin dyn-1 was unmounted and removed." not in tool_text: - raise AssertionError(f"cordis_unmount returned no unmount result: {tool_text}") + if call_id == "advanced-undefine" and tool_name == "cordis_undefine": + if "Removed dynamic Plugin snap-1 and all of its Packages." not in tool_text: + raise AssertionError(f"cordis_undefine returned no removal result: {tool_text}") if "snapshot_double" in advertised_tool_names(body): - raise AssertionError("snapshot_double remained advertised after cordis_unmount") + raise AssertionError("snapshot_double remained advertised after cordis_undefine") return text_chunks(SNAPSHOT_FINAL_TEXT) raise AssertionError(f"unexpected advanced tool follow-up: {call_id} {tool_name}: {tool_text}") diff --git a/scripts/snapshots/python-sdk-single-exe/advanced/result.json b/scripts/snapshots/python-sdk-single-exe/advanced/result.json index f439950bd6..2548efb6cb 100644 --- a/scripts/snapshots/python-sdk-single-exe/advanced/result.json +++ b/scripts/snapshots/python-sdk-single-exe/advanced/result.json @@ -105,9 +105,13 @@ }, "system": "{{system}}", "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", "job_kill", "job_list", "job_output", @@ -153,9 +157,9 @@ "chunk": { "type": "tool-call-delta", "index": 0, - "id": "advanced-mount", - "name": "cordis_mount", - "argumentsDelta": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "id": "advanced-define", + "name": "cordis_define", + "argumentsDelta": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } } }, @@ -171,9 +175,9 @@ "index": 0, "block": { "type": "tool-call", - "id": "advanced-mount", - "name": "cordis_mount", - "arguments": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "id": "advanced-define", + "name": "cordis_define", + "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } } } @@ -221,9 +225,9 @@ "content": [ { "type": "tool-call", - "id": "advanced-mount", - "name": "cordis_mount", - "arguments": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "id": "advanced-define", + "name": "cordis_define", + "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } ], "source": { @@ -254,9 +258,9 @@ "data": { "turn": 1, "step": 1, - "callId": "advanced-mount", - "name": "cordis_mount", - "arguments": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "callId": "advanced-define", + "name": "cordis_define", + "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } }, { @@ -269,16 +273,16 @@ "message": { "source": { "kind": "tool", - "callId": "advanced-mount" + "callId": "advanced-define" }, "content": [ { "type": "tool-result", - "toolCallId": "advanced-mount", + "toolCallId": "advanced-define", "content": [ { "type": "text", - "text": "Temporary Plugin dyn-1 is running (plugin \"\"; available until unmounted or DSH restarts)." + "text": "Defined snap-1/pkg-1 (Snapshot Double); it is not running yet. Use cordis_run to activate this Package." } ], "isError": false @@ -286,6 +290,10 @@ ], "role": "user", "id": "{{messageId}}" + }, + "meta": { + "pluginId": "snap-1", + "packageId": "pkg-1" } }, "sourceEventSeqs": [ @@ -311,42 +319,9 @@ "step": 2 } }, - { - "type": "request/header", - "seq": 18, - "time": 0, - "data": { - "header": { - "config": { - "provider": "deepseek-official", - "model": "smoke-model", - "maxTokens": 256000, - "reasoningEffort": "high" - }, - "adapterDefaults": { - "reasoningEffort": true, - "maxTokens": true - }, - "system": "{{system}}", - "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", - "job_kill", - "job_list", - "job_output", - "run_code", - "snapshot_double", - "subagent", - "workflow" - ] - }, - "reason": "change" - } - }, { "type": "assistant/chunk", - "seq": 19, + "seq": 18, "time": 0, "data": { "turn": 1, @@ -360,7 +335,7 @@ }, { "type": "assistant/chunk", - "seq": 20, + "seq": 19, "time": 0, "data": { "turn": 1, @@ -368,15 +343,15 @@ "chunk": { "type": "tool-call-delta", "index": 0, - "id": "advanced-code", - "name": "run_code", - "argumentsDelta": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + "id": "advanced-run", + "name": "cordis_run", + "argumentsDelta": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" } } }, { "type": "assistant/chunk", - "seq": 21, + "seq": 20, "time": 0, "data": { "turn": 1, @@ -386,16 +361,16 @@ "index": 0, "block": { "type": "tool-call", - "id": "advanced-code", - "name": "run_code", - "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + "id": "advanced-run", + "name": "cordis_run", + "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" } } } }, { "type": "assistant/chunk", - "seq": 22, + "seq": 21, "time": 0, "data": { "turn": 1, @@ -411,7 +386,7 @@ }, { "type": "assistant/chunk", - "seq": 23, + "seq": 22, "time": 0, "data": { "turn": 1, @@ -426,11 +401,235 @@ }, { "type": "assistant/message", + "seq": 23, + "time": 0, + "data": { + "turn": 1, + "step": 2, + "message": { + "role": "assistant", + "content": [ + { + "type": "tool-call", + "id": "advanced-run", + "name": "cordis_run", + "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" + } + ], + "source": { + "kind": "model", + "provider": "deepseek-official", + "model": "smoke-model" + }, + "id": "{{messageId}}" + }, + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + }, + "sourceEventSeqs": [ + 18, + 19, + 20, + 21, + 22 + ], + "surfaceOp": "append" + }, + { + "type": "tool/call", "seq": 24, "time": 0, "data": { "turn": 1, "step": 2, + "callId": "advanced-run", + "name": "cordis_run", + "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" + } + }, + { + "type": "tool/result", + "seq": 25, + "time": 0, + "data": { + "turn": 1, + "step": 2, + "message": { + "source": { + "kind": "tool", + "callId": "advanced-run" + }, + "content": [ + { + "type": "tool-result", + "toolCallId": "advanced-run", + "content": [ + { + "type": "text", + "text": "snap-1/pkg-1 is running (run-1)." + } + ], + "isError": false + } + ], + "role": "user", + "id": "{{messageId}}" + }, + "meta": { + "pluginId": "snap-1", + "packageId": "pkg-1", + "pluginRunId": "run-1" + } + }, + "sourceEventSeqs": [ + 24 + ], + "surfaceOp": "append" + }, + { + "type": "step/end", + "seq": 26, + "time": 0, + "data": { + "turn": 1, + "step": 2 + } + }, + { + "type": "step/start", + "seq": 27, + "time": 0, + "data": { + "turn": 1, + "step": 3 + } + }, + { + "type": "request/header", + "seq": 28, + "time": 0, + "data": { + "header": { + "config": { + "provider": "deepseek-official", + "model": "smoke-model", + "maxTokens": 256000, + "reasoningEffort": "high" + }, + "adapterDefaults": { + "reasoningEffort": true, + "maxTokens": true + }, + "system": "{{system}}", + "tools": [ + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", + "job_kill", + "job_list", + "job_output", + "run_code", + "snapshot_double", + "subagent", + "workflow" + ] + }, + "reason": "change" + } + }, + { + "type": "assistant/chunk", + "seq": 29, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "block-start", + "index": 0, + "blockType": "tool-call" + } + } + }, + { + "type": "assistant/chunk", + "seq": 30, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "tool-call-delta", + "index": 0, + "id": "advanced-code", + "name": "run_code", + "argumentsDelta": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + } + } + }, + { + "type": "assistant/chunk", + "seq": 31, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "block-end", + "index": 0, + "block": { + "type": "tool-call", + "id": "advanced-code", + "name": "run_code", + "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + } + } + } + }, + { + "type": "assistant/chunk", + "seq": 32, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "usage", + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + } + } + }, + { + "type": "assistant/chunk", + "seq": 33, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "finish", + "reason": { + "kind": "tool-calls" + } + } + } + }, + { + "type": "assistant/message", + "seq": 34, + "time": 0, + "data": { + "turn": 1, + "step": 3, "message": { "role": "assistant", "content": [ @@ -454,21 +653,21 @@ } }, "sourceEventSeqs": [ - 19, - 20, - 21, - 22, - 23 + 29, + 30, + 31, + 32, + 33 ], "surfaceOp": "append" }, { "type": "tool/call", - "seq": 25, + "seq": 35, "time": 0, "data": { "turn": 1, - "step": 2, + "step": 3, "callId": "advanced-code", "name": "run_code", "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" @@ -476,7 +675,7 @@ }, { "type": "tool/code-dispatch-start", - "seq": 26, + "seq": 36, "time": 0, "data": { "rootCallId": "advanced-code", @@ -490,7 +689,7 @@ }, { "type": "tool/code-dispatch", - "seq": 27, + "seq": 37, "time": 0, "data": { "rootCallId": "advanced-code", @@ -511,11 +710,11 @@ }, { "type": "tool/result", - "seq": 28, + "seq": 38, "time": 0, "data": { "turn": 1, - "step": 2, + "step": 3, "message": { "source": { "kind": "tool", @@ -539,192 +738,10 @@ } }, "sourceEventSeqs": [ - 25 - ], - "surfaceOp": "append" - }, - { - "type": "step/end", - "seq": 29, - "time": 0, - "data": { - "turn": 1, - "step": 2 - } - }, - { - "type": "step/start", - "seq": 30, - "time": 0, - "data": { - "turn": 1, - "step": 3 - } - }, - { - "type": "assistant/chunk", - "seq": 31, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "chunk": { - "type": "block-start", - "index": 0, - "blockType": "tool-call" - } - } - }, - { - "type": "assistant/chunk", - "seq": 32, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "chunk": { - "type": "tool-call-delta", - "index": 0, - "id": "advanced-direct-child", - "name": "subagent", - "argumentsDelta": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" - } - } - }, - { - "type": "assistant/chunk", - "seq": 33, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "chunk": { - "type": "block-end", - "index": 0, - "block": { - "type": "tool-call", - "id": "advanced-direct-child", - "name": "subagent", - "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" - } - } - } - }, - { - "type": "assistant/chunk", - "seq": 34, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "chunk": { - "type": "usage", - "usage": { - "inputTokens": 3, - "outputTokens": 3 - } - } - } - }, - { - "type": "assistant/chunk", - "seq": 35, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "chunk": { - "type": "finish", - "reason": { - "kind": "tool-calls" - } - } - } - }, - { - "type": "assistant/message", - "seq": 36, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "message": { - "role": "assistant", - "content": [ - { - "type": "tool-call", - "id": "advanced-direct-child", - "name": "subagent", - "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" - } - ], - "source": { - "kind": "model", - "provider": "deepseek-official", - "model": "smoke-model" - }, - "id": "{{messageId}}" - }, - "usage": { - "inputTokens": 3, - "outputTokens": 3 - } - }, - "sourceEventSeqs": [ - 31, - 32, - 33, - 34, 35 ], "surfaceOp": "append" }, - { - "type": "tool/call", - "seq": 37, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "callId": "advanced-direct-child", - "name": "subagent", - "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" - } - }, - { - "type": "tool/result", - "seq": 38, - "time": 0, - "data": { - "turn": 1, - "step": 3, - "message": { - "source": { - "kind": "tool", - "callId": "advanced-direct-child" - }, - "content": [ - { - "type": "tool-result", - "toolCallId": "advanced-direct-child", - "content": [ - { - "type": "text", - "text": "DIRECT_CHILD_OK" - } - ], - "isError": false - } - ], - "role": "user", - "id": "{{messageId}}" - } - }, - "sourceEventSeqs": [ - 37 - ], - "surfaceOp": "append" - }, { "type": "step/end", "seq": 39, @@ -767,9 +784,9 @@ "chunk": { "type": "tool-call-delta", "index": 0, - "id": "advanced-workflow", - "name": "workflow", - "argumentsDelta": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" + "id": "advanced-direct-child", + "name": "subagent", + "argumentsDelta": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" } } }, @@ -785,9 +802,9 @@ "index": 0, "block": { "type": "tool-call", - "id": "advanced-workflow", - "name": "workflow", - "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" + "id": "advanced-direct-child", + "name": "subagent", + "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" } } } @@ -835,9 +852,9 @@ "content": [ { "type": "tool-call", - "id": "advanced-workflow", - "name": "workflow", - "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" + "id": "advanced-direct-child", + "name": "subagent", + "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" } ], "source": { @@ -868,6 +885,188 @@ "data": { "turn": 1, "step": 4, + "callId": "advanced-direct-child", + "name": "subagent", + "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" + } + }, + { + "type": "tool/result", + "seq": 48, + "time": 0, + "data": { + "turn": 1, + "step": 4, + "message": { + "source": { + "kind": "tool", + "callId": "advanced-direct-child" + }, + "content": [ + { + "type": "tool-result", + "toolCallId": "advanced-direct-child", + "content": [ + { + "type": "text", + "text": "DIRECT_CHILD_OK" + } + ], + "isError": false + } + ], + "role": "user", + "id": "{{messageId}}" + } + }, + "sourceEventSeqs": [ + 47 + ], + "surfaceOp": "append" + }, + { + "type": "step/end", + "seq": 49, + "time": 0, + "data": { + "turn": 1, + "step": 4 + } + }, + { + "type": "step/start", + "seq": 50, + "time": 0, + "data": { + "turn": 1, + "step": 5 + } + }, + { + "type": "assistant/chunk", + "seq": 51, + "time": 0, + "data": { + "turn": 1, + "step": 5, + "chunk": { + "type": "block-start", + "index": 0, + "blockType": "tool-call" + } + } + }, + { + "type": "assistant/chunk", + "seq": 52, + "time": 0, + "data": { + "turn": 1, + "step": 5, + "chunk": { + "type": "tool-call-delta", + "index": 0, + "id": "advanced-workflow", + "name": "workflow", + "argumentsDelta": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" + } + } + }, + { + "type": "assistant/chunk", + "seq": 53, + "time": 0, + "data": { + "turn": 1, + "step": 5, + "chunk": { + "type": "block-end", + "index": 0, + "block": { + "type": "tool-call", + "id": "advanced-workflow", + "name": "workflow", + "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" + } + } + } + }, + { + "type": "assistant/chunk", + "seq": 54, + "time": 0, + "data": { + "turn": 1, + "step": 5, + "chunk": { + "type": "usage", + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + } + } + }, + { + "type": "assistant/chunk", + "seq": 55, + "time": 0, + "data": { + "turn": 1, + "step": 5, + "chunk": { + "type": "finish", + "reason": { + "kind": "tool-calls" + } + } + } + }, + { + "type": "assistant/message", + "seq": 56, + "time": 0, + "data": { + "turn": 1, + "step": 5, + "message": { + "role": "assistant", + "content": [ + { + "type": "tool-call", + "id": "advanced-workflow", + "name": "workflow", + "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" + } + ], + "source": { + "kind": "model", + "provider": "deepseek-official", + "model": "smoke-model" + }, + "id": "{{messageId}}" + }, + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + }, + "sourceEventSeqs": [ + 51, + 52, + 53, + 54, + 55 + ], + "surfaceOp": "append" + }, + { + "type": "tool/call", + "seq": 57, + "time": 0, + "data": { + "turn": 1, + "step": 5, "callId": "advanced-workflow", "name": "workflow", "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" @@ -875,7 +1074,7 @@ }, { "type": "tool-workflow/run-start", - "seq": 48, + "seq": 58, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -884,7 +1083,7 @@ }, { "type": "tool-workflow/agent-start", - "seq": 49, + "seq": 59, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -896,7 +1095,7 @@ }, { "type": "tool-workflow/agent-end", - "seq": 50, + "seq": 60, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -906,7 +1105,7 @@ }, { "type": "tool-workflow/run-end", - "seq": 51, + "seq": 61, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -915,11 +1114,11 @@ }, { "type": "tool/result", - "seq": 52, + "seq": 62, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "message": { "source": { "kind": "tool", @@ -943,189 +1142,7 @@ } }, "sourceEventSeqs": [ - 47 - ], - "surfaceOp": "append" - }, - { - "type": "step/end", - "seq": 53, - "time": 0, - "data": { - "turn": 1, - "step": 4 - } - }, - { - "type": "step/start", - "seq": 54, - "time": 0, - "data": { - "turn": 1, - "step": 5 - } - }, - { - "type": "assistant/chunk", - "seq": 55, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "block-start", - "index": 0, - "blockType": "tool-call" - } - } - }, - { - "type": "assistant/chunk", - "seq": 56, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "tool-call-delta", - "index": 0, - "id": "advanced-unmount", - "name": "cordis_unmount", - "argumentsDelta": "{\"id\": \"dyn-1\"}" - } - } - }, - { - "type": "assistant/chunk", - "seq": 57, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "block-end", - "index": 0, - "block": { - "type": "tool-call", - "id": "advanced-unmount", - "name": "cordis_unmount", - "arguments": "{\"id\": \"dyn-1\"}" - } - } - } - }, - { - "type": "assistant/chunk", - "seq": 58, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "usage", - "usage": { - "inputTokens": 3, - "outputTokens": 3 - } - } - } - }, - { - "type": "assistant/chunk", - "seq": 59, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "finish", - "reason": { - "kind": "tool-calls" - } - } - } - }, - { - "type": "assistant/message", - "seq": 60, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "message": { - "role": "assistant", - "content": [ - { - "type": "tool-call", - "id": "advanced-unmount", - "name": "cordis_unmount", - "arguments": "{\"id\": \"dyn-1\"}" - } - ], - "source": { - "kind": "model", - "provider": "deepseek-official", - "model": "smoke-model" - }, - "id": "{{messageId}}" - }, - "usage": { - "inputTokens": 3, - "outputTokens": 3 - } - }, - "sourceEventSeqs": [ - 55, - 56, - 57, - 58, - 59 - ], - "surfaceOp": "append" - }, - { - "type": "tool/call", - "seq": 61, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "callId": "advanced-unmount", - "name": "cordis_unmount", - "arguments": "{\"id\": \"dyn-1\"}" - } - }, - { - "type": "tool/result", - "seq": 62, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "message": { - "source": { - "kind": "tool", - "callId": "advanced-unmount" - }, - "content": [ - { - "type": "tool-result", - "toolCallId": "advanced-unmount", - "content": [ - { - "type": "text", - "text": "Temporary Plugin dyn-1 was unmounted and removed." - } - ], - "isError": false - } - ], - "role": "user", - "id": "{{messageId}}" - } - }, - "sourceEventSeqs": [ - 61 + 57 ], "surfaceOp": "append" }, @@ -1148,35 +1165,17 @@ } }, { - "type": "request/header", + "type": "assistant/chunk", "seq": 65, "time": 0, "data": { - "header": { - "config": { - "provider": "deepseek-official", - "model": "smoke-model", - "maxTokens": 256000, - "reasoningEffort": "high" - }, - "adapterDefaults": { - "reasoningEffort": true, - "maxTokens": true - }, - "system": "{{system}}", - "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", - "job_kill", - "job_list", - "job_output", - "run_code", - "subagent", - "workflow" - ] - }, - "reason": "change" + "turn": 1, + "step": 6, + "chunk": { + "type": "block-start", + "index": 0, + "blockType": "tool-call" + } } }, { @@ -1187,9 +1186,11 @@ "turn": 1, "step": 6, "chunk": { - "type": "block-start", + "type": "tool-call-delta", "index": 0, - "blockType": "text" + "id": "advanced-undefine", + "name": "cordis_undefine", + "argumentsDelta": "{\"pluginId\": \"snap-1\"}" } } }, @@ -1197,20 +1198,6 @@ "type": "assistant/chunk", "seq": 67, "time": 0, - "data": { - "turn": 1, - "step": 6, - "chunk": { - "type": "text-delta", - "index": 0, - "text": "ADVANCED_EXECUTABLE_OK" - } - } - }, - { - "type": "assistant/chunk", - "seq": 68, - "time": 0, "data": { "turn": 1, "step": 6, @@ -1218,15 +1205,17 @@ "type": "block-end", "index": 0, "block": { - "type": "text", - "text": "ADVANCED_EXECUTABLE_OK" + "type": "tool-call", + "id": "advanced-undefine", + "name": "cordis_undefine", + "arguments": "{\"pluginId\": \"snap-1\"}" } } } }, { "type": "assistant/chunk", - "seq": 69, + "seq": 68, "time": 0, "data": { "turn": 1, @@ -1242,11 +1231,225 @@ }, { "type": "assistant/chunk", + "seq": 69, + "time": 0, + "data": { + "turn": 1, + "step": 6, + "chunk": { + "type": "finish", + "reason": { + "kind": "tool-calls" + } + } + } + }, + { + "type": "assistant/message", "seq": 70, "time": 0, "data": { "turn": 1, "step": 6, + "message": { + "role": "assistant", + "content": [ + { + "type": "tool-call", + "id": "advanced-undefine", + "name": "cordis_undefine", + "arguments": "{\"pluginId\": \"snap-1\"}" + } + ], + "source": { + "kind": "model", + "provider": "deepseek-official", + "model": "smoke-model" + }, + "id": "{{messageId}}" + }, + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + }, + "sourceEventSeqs": [ + 65, + 66, + 67, + 68, + 69 + ], + "surfaceOp": "append" + }, + { + "type": "tool/call", + "seq": 71, + "time": 0, + "data": { + "turn": 1, + "step": 6, + "callId": "advanced-undefine", + "name": "cordis_undefine", + "arguments": "{\"pluginId\": \"snap-1\"}" + } + }, + { + "type": "tool/result", + "seq": 72, + "time": 0, + "data": { + "turn": 1, + "step": 6, + "message": { + "source": { + "kind": "tool", + "callId": "advanced-undefine" + }, + "content": [ + { + "type": "tool-result", + "toolCallId": "advanced-undefine", + "content": [ + { + "type": "text", + "text": "Removed dynamic Plugin snap-1 and all of its Packages." + } + ], + "isError": false + } + ], + "role": "user", + "id": "{{messageId}}" + } + }, + "sourceEventSeqs": [ + 71 + ], + "surfaceOp": "append" + }, + { + "type": "step/end", + "seq": 73, + "time": 0, + "data": { + "turn": 1, + "step": 6 + } + }, + { + "type": "step/start", + "seq": 74, + "time": 0, + "data": { + "turn": 1, + "step": 7 + } + }, + { + "type": "request/header", + "seq": 75, + "time": 0, + "data": { + "header": { + "config": { + "provider": "deepseek-official", + "model": "smoke-model", + "maxTokens": 256000, + "reasoningEffort": "high" + }, + "adapterDefaults": { + "reasoningEffort": true, + "maxTokens": true + }, + "system": "{{system}}", + "tools": [ + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", + "job_kill", + "job_list", + "job_output", + "run_code", + "subagent", + "workflow" + ] + }, + "reason": "change" + } + }, + { + "type": "assistant/chunk", + "seq": 76, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "block-start", + "index": 0, + "blockType": "text" + } + } + }, + { + "type": "assistant/chunk", + "seq": 77, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "text-delta", + "index": 0, + "text": "ADVANCED_EXECUTABLE_OK" + } + } + }, + { + "type": "assistant/chunk", + "seq": 78, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "block-end", + "index": 0, + "block": { + "type": "text", + "text": "ADVANCED_EXECUTABLE_OK" + } + } + } + }, + { + "type": "assistant/chunk", + "seq": 79, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "usage", + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + } + } + }, + { + "type": "assistant/chunk", + "seq": 80, + "time": 0, + "data": { + "turn": 1, + "step": 7, "chunk": { "type": "finish", "reason": { @@ -1257,11 +1460,11 @@ }, { "type": "assistant/message", - "seq": 71, + "seq": 81, "time": 0, "data": { "turn": 1, - "step": 6, + "step": 7, "message": { "role": "assistant", "content": [ @@ -1283,26 +1486,26 @@ } }, "sourceEventSeqs": [ - 66, - 67, - 68, - 69, - 70 + 76, + 77, + 78, + 79, + 80 ], "surfaceOp": "append" }, { "type": "step/end", - "seq": 72, + "seq": 82, "time": 0, "data": { "turn": 1, - "step": 6 + "step": 7 } }, { "type": "turn/end", - "seq": 73, + "seq": 83, "time": 0, "data": { "turn": 1, @@ -1463,9 +1666,13 @@ }, "system": "{{system}}", "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", "job_kill", "job_list", "job_output", @@ -1529,9 +1736,9 @@ "chunk": { "type": "tool-call-delta", "index": 0, - "id": "advanced-mount", - "name": "cordis_mount", - "argumentsDelta": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "id": "advanced-define", + "name": "cordis_define", + "argumentsDelta": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } } } @@ -1553,9 +1760,9 @@ "index": 0, "block": { "type": "tool-call", - "id": "advanced-mount", - "name": "cordis_mount", - "arguments": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "id": "advanced-define", + "name": "cordis_define", + "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } } } @@ -1621,9 +1828,9 @@ "content": [ { "type": "tool-call", - "id": "advanced-mount", - "name": "cordis_mount", - "arguments": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "id": "advanced-define", + "name": "cordis_define", + "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } ], "source": { @@ -1660,9 +1867,9 @@ "data": { "turn": 1, "step": 1, - "callId": "advanced-mount", - "name": "cordis_mount", - "arguments": "{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}" + "callId": "advanced-define", + "name": "cordis_define", + "arguments": "{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}" } } } @@ -1681,16 +1888,16 @@ "message": { "source": { "kind": "tool", - "callId": "advanced-mount" + "callId": "advanced-define" }, "content": [ { "type": "tool-result", - "toolCallId": "advanced-mount", + "toolCallId": "advanced-define", "content": [ { "type": "text", - "text": "Temporary Plugin dyn-1 is running (plugin \"\"; available until unmounted or DSH restarts)." + "text": "Defined snap-1/pkg-1 (Snapshot Double); it is not running yet. Use cordis_run to activate this Package." } ], "isError": false @@ -1698,6 +1905,10 @@ ], "role": "user", "id": "{{messageId}}" + }, + "meta": { + "pluginId": "snap-1", + "packageId": "pkg-1" } }, "sourceEventSeqs": [ @@ -1737,52 +1948,13 @@ } } }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "request/header", - "seq": 18, - "time": 0, - "data": { - "header": { - "config": { - "provider": "deepseek-official", - "model": "smoke-model", - "maxTokens": 256000, - "reasoningEffort": "high" - }, - "adapterDefaults": { - "reasoningEffort": true, - "maxTokens": true - }, - "system": "{{system}}", - "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", - "job_kill", - "job_list", - "job_output", - "run_code", - "snapshot_double", - "subagent", - "workflow" - ] - }, - "reason": "change" - } - } - } - }, { "method": "session.event", "payload": { "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 19, + "seq": 18, "time": 0, "data": { "turn": 1, @@ -1802,7 +1974,7 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 20, + "seq": 19, "time": 0, "data": { "turn": 1, @@ -1810,9 +1982,9 @@ "chunk": { "type": "tool-call-delta", "index": 0, - "id": "advanced-code", - "name": "run_code", - "argumentsDelta": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + "id": "advanced-run", + "name": "cordis_run", + "argumentsDelta": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" } } } @@ -1824,7 +1996,7 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 21, + "seq": 20, "time": 0, "data": { "turn": 1, @@ -1834,9 +2006,9 @@ "index": 0, "block": { "type": "tool-call", - "id": "advanced-code", - "name": "run_code", - "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + "id": "advanced-run", + "name": "cordis_run", + "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" } } } @@ -1849,7 +2021,7 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 22, + "seq": 21, "time": 0, "data": { "turn": 1, @@ -1871,7 +2043,7 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 23, + "seq": 22, "time": 0, "data": { "turn": 1, @@ -1892,11 +2064,301 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/message", + "seq": 23, + "time": 0, + "data": { + "turn": 1, + "step": 2, + "message": { + "role": "assistant", + "content": [ + { + "type": "tool-call", + "id": "advanced-run", + "name": "cordis_run", + "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" + } + ], + "source": { + "kind": "model", + "provider": "deepseek-official", + "model": "smoke-model" + }, + "id": "{{messageId}}" + }, + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + }, + "sourceEventSeqs": [ + 18, + 19, + 20, + 21, + 22 + ], + "surfaceOp": "append" + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "tool/call", "seq": 24, "time": 0, "data": { "turn": 1, "step": 2, + "callId": "advanced-run", + "name": "cordis_run", + "arguments": "{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}" + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "tool/result", + "seq": 25, + "time": 0, + "data": { + "turn": 1, + "step": 2, + "message": { + "source": { + "kind": "tool", + "callId": "advanced-run" + }, + "content": [ + { + "type": "tool-result", + "toolCallId": "advanced-run", + "content": [ + { + "type": "text", + "text": "snap-1/pkg-1 is running (run-1)." + } + ], + "isError": false + } + ], + "role": "user", + "id": "{{messageId}}" + }, + "meta": { + "pluginId": "snap-1", + "packageId": "pkg-1", + "pluginRunId": "run-1" + } + }, + "sourceEventSeqs": [ + 24 + ], + "surfaceOp": "append" + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "step/end", + "seq": 26, + "time": 0, + "data": { + "turn": 1, + "step": 2 + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "step/start", + "seq": 27, + "time": 0, + "data": { + "turn": 1, + "step": 3 + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "request/header", + "seq": 28, + "time": 0, + "data": { + "header": { + "config": { + "provider": "deepseek-official", + "model": "smoke-model", + "maxTokens": 256000, + "reasoningEffort": "high" + }, + "adapterDefaults": { + "reasoningEffort": true, + "maxTokens": true + }, + "system": "{{system}}", + "tools": [ + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", + "job_kill", + "job_list", + "job_output", + "run_code", + "snapshot_double", + "subagent", + "workflow" + ] + }, + "reason": "change" + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 29, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "block-start", + "index": 0, + "blockType": "tool-call" + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 30, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "tool-call-delta", + "index": 0, + "id": "advanced-code", + "name": "run_code", + "argumentsDelta": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 31, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "block-end", + "index": 0, + "block": { + "type": "tool-call", + "id": "advanced-code", + "name": "run_code", + "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" + } + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 32, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "usage", + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 33, + "time": 0, + "data": { + "turn": 1, + "step": 3, + "chunk": { + "type": "finish", + "reason": { + "kind": "tool-calls" + } + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/message", + "seq": 34, + "time": 0, + "data": { + "turn": 1, + "step": 3, "message": { "role": "assistant", "content": [ @@ -1920,11 +2382,11 @@ } }, "sourceEventSeqs": [ - 19, - 20, - 21, - 22, - 23 + 29, + 30, + 31, + 32, + 33 ], "surfaceOp": "append" } @@ -1936,11 +2398,11 @@ "sessionId": "{{parent}}", "event": { "type": "tool/call", - "seq": 25, + "seq": 35, "time": 0, "data": { "turn": 1, - "step": 2, + "step": 3, "callId": "advanced-code", "name": "run_code", "arguments": "{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}" @@ -1954,7 +2416,7 @@ "sessionId": "{{parent}}", "event": { "type": "tool/code-dispatch-start", - "seq": 26, + "seq": 36, "time": 0, "data": { "rootCallId": "advanced-code", @@ -1974,7 +2436,7 @@ "sessionId": "{{parent}}", "event": { "type": "tool/code-dispatch", - "seq": 27, + "seq": 37, "time": 0, "data": { "rootCallId": "advanced-code", @@ -2001,11 +2463,11 @@ "sessionId": "{{parent}}", "event": { "type": "tool/result", - "seq": 28, + "seq": 38, "time": 0, "data": { "turn": 1, - "step": 2, + "step": 3, "message": { "source": { "kind": "tool", @@ -2029,7 +2491,7 @@ } }, "sourceEventSeqs": [ - 25 + 35 ], "surfaceOp": "append" } @@ -2041,22 +2503,7 @@ "sessionId": "{{parent}}", "event": { "type": "step/end", - "seq": 29, - "time": 0, - "data": { - "turn": 1, - "step": 2 - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "step/start", - "seq": 30, + "seq": 39, "time": 0, "data": { "turn": 1, @@ -2070,12 +2517,27 @@ "payload": { "sessionId": "{{parent}}", "event": { - "type": "assistant/chunk", - "seq": 31, + "type": "step/start", + "seq": 40, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4 + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 41, + "time": 0, + "data": { + "turn": 1, + "step": 4, "chunk": { "type": "block-start", "index": 0, @@ -2091,11 +2553,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 32, + "seq": 42, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4, "chunk": { "type": "tool-call-delta", "index": 0, @@ -2113,11 +2575,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 33, + "seq": 43, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4, "chunk": { "type": "block-end", "index": 0, @@ -2138,11 +2600,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 34, + "seq": 44, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4, "chunk": { "type": "usage", "usage": { @@ -2160,11 +2622,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 35, + "seq": 45, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4, "chunk": { "type": "finish", "reason": { @@ -2181,11 +2643,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/message", - "seq": 36, + "seq": 46, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4, "message": { "role": "assistant", "content": [ @@ -2209,11 +2671,11 @@ } }, "sourceEventSeqs": [ - 31, - 32, - 33, - 34, - 35 + 41, + 42, + 43, + 44, + 45 ], "surfaceOp": "append" } @@ -2225,11 +2687,11 @@ "sessionId": "{{parent}}", "event": { "type": "tool/call", - "seq": 37, + "seq": 47, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4, "callId": "advanced-direct-child", "name": "subagent", "arguments": "{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}" @@ -2444,9 +2906,13 @@ }, "system": "{{system}}", "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", "job_kill", "job_list", "job_output", @@ -2687,11 +3153,11 @@ "sessionId": "{{parent}}", "event": { "type": "tool/result", - "seq": 38, + "seq": 48, "time": 0, "data": { "turn": 1, - "step": 3, + "step": 4, "message": { "source": { "kind": "tool", @@ -2715,7 +3181,7 @@ } }, "sourceEventSeqs": [ - 37 + 47 ], "surfaceOp": "append" } @@ -2727,22 +3193,7 @@ "sessionId": "{{parent}}", "event": { "type": "step/end", - "seq": 39, - "time": 0, - "data": { - "turn": 1, - "step": 3 - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "step/start", - "seq": 40, + "seq": 49, "time": 0, "data": { "turn": 1, @@ -2756,12 +3207,27 @@ "payload": { "sessionId": "{{parent}}", "event": { - "type": "assistant/chunk", - "seq": 41, + "type": "step/start", + "seq": 50, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5 + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 51, + "time": 0, + "data": { + "turn": 1, + "step": 5, "chunk": { "type": "block-start", "index": 0, @@ -2777,11 +3243,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 42, + "seq": 52, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "chunk": { "type": "tool-call-delta", "index": 0, @@ -2799,11 +3265,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 43, + "seq": 53, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "chunk": { "type": "block-end", "index": 0, @@ -2824,11 +3290,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 44, + "seq": 54, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "chunk": { "type": "usage", "usage": { @@ -2846,11 +3312,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 45, + "seq": 55, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "chunk": { "type": "finish", "reason": { @@ -2867,11 +3333,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/message", - "seq": 46, + "seq": 56, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "message": { "role": "assistant", "content": [ @@ -2895,11 +3361,11 @@ } }, "sourceEventSeqs": [ - 41, - 42, - 43, - 44, - 45 + 51, + 52, + 53, + 54, + 55 ], "surfaceOp": "append" } @@ -2911,11 +3377,11 @@ "sessionId": "{{parent}}", "event": { "type": "tool/call", - "seq": 47, + "seq": 57, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "callId": "advanced-workflow", "name": "workflow", "arguments": "{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}" @@ -2929,7 +3395,7 @@ "sessionId": "{{parent}}", "event": { "type": "tool-workflow/run-start", - "seq": 48, + "seq": 58, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -3144,9 +3610,13 @@ }, "system": "{{system}}", "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", "job_kill", "job_list", "job_output", @@ -3183,7 +3653,7 @@ "sessionId": "{{parent}}", "event": { "type": "tool-workflow/agent-start", - "seq": 49, + "seq": 59, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -3405,7 +3875,7 @@ "sessionId": "{{parent}}", "event": { "type": "tool-workflow/agent-end", - "seq": 50, + "seq": 60, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -3421,7 +3891,7 @@ "sessionId": "{{parent}}", "event": { "type": "tool-workflow/run-end", - "seq": 51, + "seq": 61, "time": 0, "data": { "runId": "{{workflow-run}}", @@ -3436,11 +3906,11 @@ "sessionId": "{{parent}}", "event": { "type": "tool/result", - "seq": 52, + "seq": 62, "time": 0, "data": { "turn": 1, - "step": 4, + "step": 5, "message": { "source": { "kind": "tool", @@ -3464,249 +3934,7 @@ } }, "sourceEventSeqs": [ - 47 - ], - "surfaceOp": "append" - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "step/end", - "seq": 53, - "time": 0, - "data": { - "turn": 1, - "step": 4 - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "step/start", - "seq": 54, - "time": 0, - "data": { - "turn": 1, - "step": 5 - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "assistant/chunk", - "seq": 55, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "block-start", - "index": 0, - "blockType": "tool-call" - } - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "assistant/chunk", - "seq": 56, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "tool-call-delta", - "index": 0, - "id": "advanced-unmount", - "name": "cordis_unmount", - "argumentsDelta": "{\"id\": \"dyn-1\"}" - } - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "assistant/chunk", - "seq": 57, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "block-end", - "index": 0, - "block": { - "type": "tool-call", - "id": "advanced-unmount", - "name": "cordis_unmount", - "arguments": "{\"id\": \"dyn-1\"}" - } - } - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "assistant/chunk", - "seq": 58, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "usage", - "usage": { - "inputTokens": 3, - "outputTokens": 3 - } - } - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "assistant/chunk", - "seq": 59, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "chunk": { - "type": "finish", - "reason": { - "kind": "tool-calls" - } - } - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "assistant/message", - "seq": 60, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "message": { - "role": "assistant", - "content": [ - { - "type": "tool-call", - "id": "advanced-unmount", - "name": "cordis_unmount", - "arguments": "{\"id\": \"dyn-1\"}" - } - ], - "source": { - "kind": "model", - "provider": "deepseek-official", - "model": "smoke-model" - }, - "id": "{{messageId}}" - }, - "usage": { - "inputTokens": 3, - "outputTokens": 3 - } - }, - "sourceEventSeqs": [ - 55, - 56, - 57, - 58, - 59 - ], - "surfaceOp": "append" - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "tool/call", - "seq": 61, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "callId": "advanced-unmount", - "name": "cordis_unmount", - "arguments": "{\"id\": \"dyn-1\"}" - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "tool/result", - "seq": 62, - "time": 0, - "data": { - "turn": 1, - "step": 5, - "message": { - "source": { - "kind": "tool", - "callId": "advanced-unmount" - }, - "content": [ - { - "type": "tool-result", - "toolCallId": "advanced-unmount", - "content": [ - { - "type": "text", - "text": "Temporary Plugin dyn-1 was unmounted and removed." - } - ], - "isError": false - } - ], - "role": "user", - "id": "{{messageId}}" - } - }, - "sourceEventSeqs": [ - 61 + 57 ], "surfaceOp": "append" } @@ -3747,35 +3975,17 @@ "payload": { "sessionId": "{{parent}}", "event": { - "type": "request/header", + "type": "assistant/chunk", "seq": 65, "time": 0, "data": { - "header": { - "config": { - "provider": "deepseek-official", - "model": "smoke-model", - "maxTokens": 256000, - "reasoningEffort": "high" - }, - "adapterDefaults": { - "reasoningEffort": true, - "maxTokens": true - }, - "system": "{{system}}", - "tools": [ - "cordis_inspect", - "cordis_mount", - "cordis_unmount", - "job_kill", - "job_list", - "job_output", - "run_code", - "subagent", - "workflow" - ] - }, - "reason": "change" + "turn": 1, + "step": 6, + "chunk": { + "type": "block-start", + "index": 0, + "blockType": "tool-call" + } } } } @@ -3792,9 +4002,11 @@ "turn": 1, "step": 6, "chunk": { - "type": "block-start", + "type": "tool-call-delta", "index": 0, - "blockType": "text" + "id": "advanced-undefine", + "name": "cordis_undefine", + "argumentsDelta": "{\"pluginId\": \"snap-1\"}" } } } @@ -3808,26 +4020,6 @@ "type": "assistant/chunk", "seq": 67, "time": 0, - "data": { - "turn": 1, - "step": 6, - "chunk": { - "type": "text-delta", - "index": 0, - "text": "ADVANCED_EXECUTABLE_OK" - } - } - } - } - }, - { - "method": "session.event", - "payload": { - "sessionId": "{{parent}}", - "event": { - "type": "assistant/chunk", - "seq": 68, - "time": 0, "data": { "turn": 1, "step": 6, @@ -3835,8 +4027,10 @@ "type": "block-end", "index": 0, "block": { - "type": "text", - "text": "ADVANCED_EXECUTABLE_OK" + "type": "tool-call", + "id": "advanced-undefine", + "name": "cordis_undefine", + "arguments": "{\"pluginId\": \"snap-1\"}" } } } @@ -3849,7 +4043,7 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", - "seq": 69, + "seq": 68, "time": 0, "data": { "turn": 1, @@ -3871,11 +4065,291 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/chunk", + "seq": 69, + "time": 0, + "data": { + "turn": 1, + "step": 6, + "chunk": { + "type": "finish", + "reason": { + "kind": "tool-calls" + } + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/message", "seq": 70, "time": 0, "data": { "turn": 1, "step": 6, + "message": { + "role": "assistant", + "content": [ + { + "type": "tool-call", + "id": "advanced-undefine", + "name": "cordis_undefine", + "arguments": "{\"pluginId\": \"snap-1\"}" + } + ], + "source": { + "kind": "model", + "provider": "deepseek-official", + "model": "smoke-model" + }, + "id": "{{messageId}}" + }, + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + }, + "sourceEventSeqs": [ + 65, + 66, + 67, + 68, + 69 + ], + "surfaceOp": "append" + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "tool/call", + "seq": 71, + "time": 0, + "data": { + "turn": 1, + "step": 6, + "callId": "advanced-undefine", + "name": "cordis_undefine", + "arguments": "{\"pluginId\": \"snap-1\"}" + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "tool/result", + "seq": 72, + "time": 0, + "data": { + "turn": 1, + "step": 6, + "message": { + "source": { + "kind": "tool", + "callId": "advanced-undefine" + }, + "content": [ + { + "type": "tool-result", + "toolCallId": "advanced-undefine", + "content": [ + { + "type": "text", + "text": "Removed dynamic Plugin snap-1 and all of its Packages." + } + ], + "isError": false + } + ], + "role": "user", + "id": "{{messageId}}" + } + }, + "sourceEventSeqs": [ + 71 + ], + "surfaceOp": "append" + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "step/end", + "seq": 73, + "time": 0, + "data": { + "turn": 1, + "step": 6 + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "step/start", + "seq": 74, + "time": 0, + "data": { + "turn": 1, + "step": 7 + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "request/header", + "seq": 75, + "time": 0, + "data": { + "header": { + "config": { + "provider": "deepseek-official", + "model": "smoke-model", + "maxTokens": 256000, + "reasoningEffort": "high" + }, + "adapterDefaults": { + "reasoningEffort": true, + "maxTokens": true + }, + "system": "{{system}}", + "tools": [ + "cordis_define", + "cordis_inspect_list", + "cordis_inspect_query", + "cordis_inspect_self", + "cordis_run", + "cordis_stop", + "cordis_undefine", + "job_kill", + "job_list", + "job_output", + "run_code", + "subagent", + "workflow" + ] + }, + "reason": "change" + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 76, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "block-start", + "index": 0, + "blockType": "text" + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 77, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "text-delta", + "index": 0, + "text": "ADVANCED_EXECUTABLE_OK" + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 78, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "block-end", + "index": 0, + "block": { + "type": "text", + "text": "ADVANCED_EXECUTABLE_OK" + } + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 79, + "time": 0, + "data": { + "turn": 1, + "step": 7, + "chunk": { + "type": "usage", + "usage": { + "inputTokens": 3, + "outputTokens": 3 + } + } + } + } + } + }, + { + "method": "session.event", + "payload": { + "sessionId": "{{parent}}", + "event": { + "type": "assistant/chunk", + "seq": 80, + "time": 0, + "data": { + "turn": 1, + "step": 7, "chunk": { "type": "finish", "reason": { @@ -3892,11 +4366,11 @@ "sessionId": "{{parent}}", "event": { "type": "assistant/message", - "seq": 71, + "seq": 81, "time": 0, "data": { "turn": 1, - "step": 6, + "step": 7, "message": { "role": "assistant", "content": [ @@ -3918,11 +4392,11 @@ } }, "sourceEventSeqs": [ - 66, - 67, - 68, - 69, - 70 + 76, + 77, + 78, + 79, + 80 ], "surfaceOp": "append" } @@ -3934,11 +4408,11 @@ "sessionId": "{{parent}}", "event": { "type": "step/end", - "seq": 72, + "seq": 82, "time": 0, "data": { "turn": 1, - "step": 6 + "step": 7 } } } @@ -3949,7 +4423,7 @@ "sessionId": "{{parent}}", "event": { "type": "turn/end", - "seq": 73, + "seq": 83, "time": 0, "data": { "turn": 1, diff --git a/scripts/snapshots/python-sdk-single-exe/advanced/session.1.jsonl b/scripts/snapshots/python-sdk-single-exe/advanced/session.1.jsonl index c3a4840184..e18ff2c585 100644 --- a/scripts/snapshots/python-sdk-single-exe/advanced/session.1.jsonl +++ b/scripts/snapshots/python-sdk-single-exe/advanced/session.1.jsonl @@ -7,7 +7,7 @@ {"type":"user/message","seq":5,"time":0,"data":{"content":[{"type":"text","text":"Reply with exactly DIRECT_CHILD_OK and nothing else."}],"source":{"kind":"user"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"} {"type":"user/message","seq":6,"time":0,"data":{"content":[{"type":"text","text":"Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."}],"source":{"kind":"plugin","plugin":"@deepseek-ai/dsh-system-prompt","form":"snapshot","sections":[{"name":"subagent:delegation","text":"You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"} {"type":"session/title","seq":7,"time":0,"data":{"title":"Reply with exactly DIRECT_CHILD_OK and","messageSeqs":[5],"source":{"kind":"fallback"}}} -{"type":"request/header","seq":8,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_inspect","cordis_mount","cordis_unmount","job_kill","job_list","job_output","run_code","snapshot_double","subagent","workflow"]},"reason":"initial"}} +{"type":"request/header","seq":8,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_define","cordis_inspect_list","cordis_inspect_query","cordis_inspect_self","cordis_run","cordis_stop","cordis_undefine","job_kill","job_list","job_output","run_code","snapshot_double","subagent","workflow"]},"reason":"initial"}} {"type":"request/context","seq":9,"time":0,"data":{"provider":"deepseek-official","model":"smoke-model","contextWindow":1000000}} {"type":"assistant/chunk","seq":10,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"block-start","index":0,"blockType":"text"}}} {"type":"assistant/chunk","seq":11,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"text-delta","index":0,"text":"DIRECT_CHILD_OK"}}} diff --git a/scripts/snapshots/python-sdk-single-exe/advanced/session.2.jsonl b/scripts/snapshots/python-sdk-single-exe/advanced/session.2.jsonl index f022d0ca05..a407d19417 100644 --- a/scripts/snapshots/python-sdk-single-exe/advanced/session.2.jsonl +++ b/scripts/snapshots/python-sdk-single-exe/advanced/session.2.jsonl @@ -7,7 +7,7 @@ {"type":"user/message","seq":5,"time":0,"data":{"content":[{"type":"text","text":"Reply with exactly WORKFLOW_CHILD_OK and nothing else."}],"source":{"kind":"user"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"} {"type":"user/message","seq":6,"time":0,"data":{"content":[{"type":"text","text":"Current runtime context. This snapshot supersedes earlier runtime-context snapshots.\n\nYou are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."}],"source":{"kind":"plugin","plugin":"@deepseek-ai/dsh-system-prompt","form":"snapshot","sections":[{"name":"subagent:delegation","text":"You are a delegated subagent: your permission scope was fixed when you were started and cannot be widened from inside this session — operations that require approval are rejected automatically. When the task needs access beyond that scope, do not retry the denied operation; state the limitation in your reply so the delegating agent can handle it."}]},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"} {"type":"session/title","seq":7,"time":0,"data":{"title":"Reply with exactly WORKFLOW_CHILD_OK and","messageSeqs":[5],"source":{"kind":"fallback"}}} -{"type":"request/header","seq":8,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_inspect","cordis_mount","cordis_unmount","job_kill","job_list","job_output","run_code","snapshot_double","subagent","workflow"]},"reason":"initial"}} +{"type":"request/header","seq":8,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_define","cordis_inspect_list","cordis_inspect_query","cordis_inspect_self","cordis_run","cordis_stop","cordis_undefine","job_kill","job_list","job_output","run_code","snapshot_double","subagent","workflow"]},"reason":"initial"}} {"type":"request/context","seq":9,"time":0,"data":{"provider":"deepseek-official","model":"smoke-model","contextWindow":1000000}} {"type":"assistant/chunk","seq":10,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"block-start","index":0,"blockType":"text"}}} {"type":"assistant/chunk","seq":11,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"text-delta","index":0,"text":"WORKFLOW_CHILD_OK"}}} diff --git a/scripts/snapshots/python-sdk-single-exe/advanced/session.jsonl b/scripts/snapshots/python-sdk-single-exe/advanced/session.jsonl index a61fb54ee7..9b37ce12c6 100644 --- a/scripts/snapshots/python-sdk-single-exe/advanced/session.jsonl +++ b/scripts/snapshots/python-sdk-single-exe/advanced/session.jsonl @@ -5,71 +5,81 @@ {"type":"step/start","seq":3,"time":0,"data":{"turn":1,"step":1}} {"type":"user/message","seq":4,"time":0,"data":{"content":[{"type":"text","text":"Run the advanced packaged-runtime snapshot scenario."}],"source":{"kind":"user"},"role":"user","id":"{{messageId}}"},"surfaceOp":"append"} {"type":"session/title","seq":5,"time":0,"data":{"title":"Run the advanced packaged-runtime snapsh","messageSeqs":[4],"source":{"kind":"fallback"}}} -{"type":"request/header","seq":6,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_inspect","cordis_mount","cordis_unmount","job_kill","job_list","job_output","run_code","subagent","workflow"]},"reason":"initial"}} +{"type":"request/header","seq":6,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_define","cordis_inspect_list","cordis_inspect_query","cordis_inspect_self","cordis_run","cordis_stop","cordis_undefine","job_kill","job_list","job_output","run_code","subagent","workflow"]},"reason":"initial"}} {"type":"request/context","seq":7,"time":0,"data":{"provider":"deepseek-official","model":"smoke-model","contextWindow":1000000}} {"type":"assistant/chunk","seq":8,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} -{"type":"assistant/chunk","seq":9,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-mount","name":"cordis_mount","argumentsDelta":"{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}"}}} -{"type":"assistant/chunk","seq":10,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-mount","name":"cordis_mount","arguments":"{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}"}}}} +{"type":"assistant/chunk","seq":9,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-define","name":"cordis_define","argumentsDelta":"{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"}}} +{"type":"assistant/chunk","seq":10,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-define","name":"cordis_define","arguments":"{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"}}}} {"type":"assistant/chunk","seq":11,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} {"type":"assistant/chunk","seq":12,"time":0,"data":{"turn":1,"step":1,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} -{"type":"assistant/message","seq":13,"time":0,"data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-mount","name":"cordis_mount","arguments":"{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[8,9,10,11,12],"surfaceOp":"append"} -{"type":"tool/call","seq":14,"time":0,"data":{"turn":1,"step":1,"callId":"advanced-mount","name":"cordis_mount","arguments":"{\"code\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}"}} -{"type":"tool/result","seq":15,"time":0,"data":{"turn":1,"step":1,"message":{"source":{"kind":"tool","callId":"advanced-mount"},"content":[{"type":"tool-result","toolCallId":"advanced-mount","content":[{"type":"text","text":"Temporary Plugin dyn-1 is running (plugin \"\"; available until unmounted or DSH restarts)."}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[14],"surfaceOp":"append"} +{"type":"assistant/message","seq":13,"time":0,"data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-define","name":"cordis_define","arguments":"{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[8,9,10,11,12],"surfaceOp":"append"} +{"type":"tool/call","seq":14,"time":0,"data":{"turn":1,"step":1,"callId":"advanced-define","name":"cordis_define","arguments":"{\"plugin\": {\"kind\": \"new\", \"idPrefix\": \"snap\"}, \"name\": \"Snapshot Double\", \"purpose\": \"Expose a deterministic doubling tool for executable snapshot verification.\", \"code\": {\"host\": \"return (ctx) => {\\n harness.registerTool(ctx, harness.defineTool({\\n name: 'snapshot_double',\\n description: 'Double a number for executable snapshot verification.',\\n parameters: { value: { type: 'number', required: true } },\\n output: {\\n schema: { type: 'number' },\\n render(_args, value) {\\n return [{ type: 'text', text: String(value) }]\\n }\\n },\\n async execute(args) {\\n return args.value * 2\\n }\\n }))\\n}\\n\"}}"}} +{"type":"tool/result","seq":15,"time":0,"data":{"turn":1,"step":1,"message":{"source":{"kind":"tool","callId":"advanced-define"},"content":[{"type":"tool-result","toolCallId":"advanced-define","content":[{"type":"text","text":"Defined snap-1/pkg-1 (Snapshot Double); it is not running yet. Use cordis_run to activate this Package."}],"isError":false}],"role":"user","id":"{{messageId}}"},"meta":{"pluginId":"snap-1","packageId":"pkg-1"}},"sourceEventSeqs":[14],"surfaceOp":"append"} {"type":"step/end","seq":16,"time":0,"data":{"turn":1,"step":1}} {"type":"step/start","seq":17,"time":0,"data":{"turn":1,"step":2}} -{"type":"request/header","seq":18,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_inspect","cordis_mount","cordis_unmount","job_kill","job_list","job_output","run_code","snapshot_double","subagent","workflow"]},"reason":"change"}} -{"type":"assistant/chunk","seq":19,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} -{"type":"assistant/chunk","seq":20,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-code","name":"run_code","argumentsDelta":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}}} -{"type":"assistant/chunk","seq":21,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}}}} -{"type":"assistant/chunk","seq":22,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} -{"type":"assistant/chunk","seq":23,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} -{"type":"assistant/message","seq":24,"time":0,"data":{"turn":1,"step":2,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[19,20,21,22,23],"surfaceOp":"append"} -{"type":"tool/call","seq":25,"time":0,"data":{"turn":1,"step":2,"callId":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}} -{"type":"tool/code-dispatch-start","seq":26,"time":0,"data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:code:1","name":"snapshot_double","arguments":{"value":21}}} -{"type":"tool/code-dispatch","seq":27,"time":0,"data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:code:1","name":"snapshot_double","arguments":{"value":21},"isError":false,"content":[{"type":"text","text":"42"}]}} -{"type":"tool/result","seq":28,"time":0,"data":{"turn":1,"step":2,"message":{"source":{"kind":"tool","callId":"advanced-code"},"content":[{"type":"tool-result","toolCallId":"advanced-code","content":[{"type":"text","text":"42"}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[25],"surfaceOp":"append"} -{"type":"step/end","seq":29,"time":0,"data":{"turn":1,"step":2}} -{"type":"step/start","seq":30,"time":0,"data":{"turn":1,"step":3}} -{"type":"assistant/chunk","seq":31,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} -{"type":"assistant/chunk","seq":32,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-direct-child","name":"subagent","argumentsDelta":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}}} -{"type":"assistant/chunk","seq":33,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-direct-child","name":"subagent","arguments":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}}}} -{"type":"assistant/chunk","seq":34,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} -{"type":"assistant/chunk","seq":35,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} -{"type":"assistant/message","seq":36,"time":0,"data":{"turn":1,"step":3,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-direct-child","name":"subagent","arguments":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[31,32,33,34,35],"surfaceOp":"append"} -{"type":"tool/call","seq":37,"time":0,"data":{"turn":1,"step":3,"callId":"advanced-direct-child","name":"subagent","arguments":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}} -{"type":"tool/result","seq":38,"time":0,"data":{"turn":1,"step":3,"message":{"source":{"kind":"tool","callId":"advanced-direct-child"},"content":[{"type":"tool-result","toolCallId":"advanced-direct-child","content":[{"type":"text","text":"DIRECT_CHILD_OK"}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[37],"surfaceOp":"append"} +{"type":"assistant/chunk","seq":18,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} +{"type":"assistant/chunk","seq":19,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-run","name":"cordis_run","argumentsDelta":"{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"}}} +{"type":"assistant/chunk","seq":20,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-run","name":"cordis_run","arguments":"{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"}}}} +{"type":"assistant/chunk","seq":21,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} +{"type":"assistant/chunk","seq":22,"time":0,"data":{"turn":1,"step":2,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} +{"type":"assistant/message","seq":23,"time":0,"data":{"turn":1,"step":2,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-run","name":"cordis_run","arguments":"{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[18,19,20,21,22],"surfaceOp":"append"} +{"type":"tool/call","seq":24,"time":0,"data":{"turn":1,"step":2,"callId":"advanced-run","name":"cordis_run","arguments":"{\"pluginId\": \"snap-1\", \"packageId\": \"pkg-1\", \"mode\": \"run\"}"}} +{"type":"tool/result","seq":25,"time":0,"data":{"turn":1,"step":2,"message":{"source":{"kind":"tool","callId":"advanced-run"},"content":[{"type":"tool-result","toolCallId":"advanced-run","content":[{"type":"text","text":"snap-1/pkg-1 is running (run-1)."}],"isError":false}],"role":"user","id":"{{messageId}}"},"meta":{"pluginId":"snap-1","packageId":"pkg-1","pluginRunId":"run-1"}},"sourceEventSeqs":[24],"surfaceOp":"append"} +{"type":"step/end","seq":26,"time":0,"data":{"turn":1,"step":2}} +{"type":"step/start","seq":27,"time":0,"data":{"turn":1,"step":3}} +{"type":"request/header","seq":28,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_define","cordis_inspect_list","cordis_inspect_query","cordis_inspect_self","cordis_run","cordis_stop","cordis_undefine","job_kill","job_list","job_output","run_code","snapshot_double","subagent","workflow"]},"reason":"change"}} +{"type":"assistant/chunk","seq":29,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} +{"type":"assistant/chunk","seq":30,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-code","name":"run_code","argumentsDelta":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}}} +{"type":"assistant/chunk","seq":31,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}}}} +{"type":"assistant/chunk","seq":32,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} +{"type":"assistant/chunk","seq":33,"time":0,"data":{"turn":1,"step":3,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} +{"type":"assistant/message","seq":34,"time":0,"data":{"turn":1,"step":3,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[29,30,31,32,33],"surfaceOp":"append"} +{"type":"tool/call","seq":35,"time":0,"data":{"turn":1,"step":3,"callId":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}} +{"type":"tool/code-dispatch-start","seq":36,"time":0,"data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:code:1","name":"snapshot_double","arguments":{"value":21}}} +{"type":"tool/code-dispatch","seq":37,"time":0,"data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:code:1","name":"snapshot_double","arguments":{"value":21},"isError":false,"content":[{"type":"text","text":"42"}]}} +{"type":"tool/result","seq":38,"time":0,"data":{"turn":1,"step":3,"message":{"source":{"kind":"tool","callId":"advanced-code"},"content":[{"type":"tool-result","toolCallId":"advanced-code","content":[{"type":"text","text":"42"}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[35],"surfaceOp":"append"} {"type":"step/end","seq":39,"time":0,"data":{"turn":1,"step":3}} {"type":"step/start","seq":40,"time":0,"data":{"turn":1,"step":4}} {"type":"assistant/chunk","seq":41,"time":0,"data":{"turn":1,"step":4,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} -{"type":"assistant/chunk","seq":42,"time":0,"data":{"turn":1,"step":4,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-workflow","name":"workflow","argumentsDelta":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}}} -{"type":"assistant/chunk","seq":43,"time":0,"data":{"turn":1,"step":4,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-workflow","name":"workflow","arguments":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}}}} +{"type":"assistant/chunk","seq":42,"time":0,"data":{"turn":1,"step":4,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-direct-child","name":"subagent","argumentsDelta":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}}} +{"type":"assistant/chunk","seq":43,"time":0,"data":{"turn":1,"step":4,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-direct-child","name":"subagent","arguments":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}}}} {"type":"assistant/chunk","seq":44,"time":0,"data":{"turn":1,"step":4,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} {"type":"assistant/chunk","seq":45,"time":0,"data":{"turn":1,"step":4,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} -{"type":"assistant/message","seq":46,"time":0,"data":{"turn":1,"step":4,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-workflow","name":"workflow","arguments":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[41,42,43,44,45],"surfaceOp":"append"} -{"type":"tool/call","seq":47,"time":0,"data":{"turn":1,"step":4,"callId":"advanced-workflow","name":"workflow","arguments":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}} -{"type":"tool-workflow/run-start","seq":48,"time":0,"data":{"runId":"{{workflow-run}}","name":"advanced-exe-snapshot"}} -{"type":"tool-workflow/agent-start","seq":49,"time":0,"data":{"runId":"{{workflow-run}}","seq":1,"label":"workflow-child","phase":"Delegate","childId":"{{child-2}}"}} -{"type":"tool-workflow/agent-end","seq":50,"time":0,"data":{"runId":"{{workflow-run}}","seq":1,"outcome":"completed"}} -{"type":"tool-workflow/run-end","seq":51,"time":0,"data":{"runId":"{{workflow-run}}","stopReason":"completed"}} -{"type":"tool/result","seq":52,"time":0,"data":{"turn":1,"step":4,"message":{"source":{"kind":"tool","callId":"advanced-workflow"},"content":[{"type":"tool-result","toolCallId":"advanced-workflow","content":[{"type":"text","text":"workflow \"advanced-exe-snapshot\" completed (1 agent).\nReturn value:\n{\n \"reply\": \"WORKFLOW_CHILD_OK\"\n}"}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[47],"surfaceOp":"append"} -{"type":"step/end","seq":53,"time":0,"data":{"turn":1,"step":4}} -{"type":"step/start","seq":54,"time":0,"data":{"turn":1,"step":5}} -{"type":"assistant/chunk","seq":55,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} -{"type":"assistant/chunk","seq":56,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-unmount","name":"cordis_unmount","argumentsDelta":"{\"id\": \"dyn-1\"}"}}} -{"type":"assistant/chunk","seq":57,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-unmount","name":"cordis_unmount","arguments":"{\"id\": \"dyn-1\"}"}}}} -{"type":"assistant/chunk","seq":58,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} -{"type":"assistant/chunk","seq":59,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} -{"type":"assistant/message","seq":60,"time":0,"data":{"turn":1,"step":5,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-unmount","name":"cordis_unmount","arguments":"{\"id\": \"dyn-1\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[55,56,57,58,59],"surfaceOp":"append"} -{"type":"tool/call","seq":61,"time":0,"data":{"turn":1,"step":5,"callId":"advanced-unmount","name":"cordis_unmount","arguments":"{\"id\": \"dyn-1\"}"}} -{"type":"tool/result","seq":62,"time":0,"data":{"turn":1,"step":5,"message":{"source":{"kind":"tool","callId":"advanced-unmount"},"content":[{"type":"tool-result","toolCallId":"advanced-unmount","content":[{"type":"text","text":"Temporary Plugin dyn-1 was unmounted and removed."}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[61],"surfaceOp":"append"} +{"type":"assistant/message","seq":46,"time":0,"data":{"turn":1,"step":4,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-direct-child","name":"subagent","arguments":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[41,42,43,44,45],"surfaceOp":"append"} +{"type":"tool/call","seq":47,"time":0,"data":{"turn":1,"step":4,"callId":"advanced-direct-child","name":"subagent","arguments":"{\"description\": \"Check direct child\", \"prompt\": \"Reply with exactly DIRECT_CHILD_OK and nothing else.\"}"}} +{"type":"tool/result","seq":48,"time":0,"data":{"turn":1,"step":4,"message":{"source":{"kind":"tool","callId":"advanced-direct-child"},"content":[{"type":"tool-result","toolCallId":"advanced-direct-child","content":[{"type":"text","text":"DIRECT_CHILD_OK"}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[47],"surfaceOp":"append"} +{"type":"step/end","seq":49,"time":0,"data":{"turn":1,"step":4}} +{"type":"step/start","seq":50,"time":0,"data":{"turn":1,"step":5}} +{"type":"assistant/chunk","seq":51,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} +{"type":"assistant/chunk","seq":52,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-workflow","name":"workflow","argumentsDelta":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}}} +{"type":"assistant/chunk","seq":53,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-workflow","name":"workflow","arguments":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}}}} +{"type":"assistant/chunk","seq":54,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} +{"type":"assistant/chunk","seq":55,"time":0,"data":{"turn":1,"step":5,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} +{"type":"assistant/message","seq":56,"time":0,"data":{"turn":1,"step":5,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-workflow","name":"workflow","arguments":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[51,52,53,54,55],"surfaceOp":"append"} +{"type":"tool/call","seq":57,"time":0,"data":{"turn":1,"step":5,"callId":"advanced-workflow","name":"workflow","arguments":"{\"script\": \"phase('Delegate')\\nconst reply = await agent('Reply with exactly WORKFLOW_CHILD_OK and nothing else.', { label: 'workflow-child' })\\nreturn { reply }\", \"meta\": {\"name\": \"advanced-exe-snapshot\", \"description\": \"exercise one packaged workflow child\"}}"}} +{"type":"tool-workflow/run-start","seq":58,"time":0,"data":{"runId":"{{workflow-run}}","name":"advanced-exe-snapshot"}} +{"type":"tool-workflow/agent-start","seq":59,"time":0,"data":{"runId":"{{workflow-run}}","seq":1,"label":"workflow-child","phase":"Delegate","childId":"{{child-2}}"}} +{"type":"tool-workflow/agent-end","seq":60,"time":0,"data":{"runId":"{{workflow-run}}","seq":1,"outcome":"completed"}} +{"type":"tool-workflow/run-end","seq":61,"time":0,"data":{"runId":"{{workflow-run}}","stopReason":"completed"}} +{"type":"tool/result","seq":62,"time":0,"data":{"turn":1,"step":5,"message":{"source":{"kind":"tool","callId":"advanced-workflow"},"content":[{"type":"tool-result","toolCallId":"advanced-workflow","content":[{"type":"text","text":"workflow \"advanced-exe-snapshot\" completed (1 agent).\nReturn value:\n{\n \"reply\": \"WORKFLOW_CHILD_OK\"\n}"}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[57],"surfaceOp":"append"} {"type":"step/end","seq":63,"time":0,"data":{"turn":1,"step":5}} {"type":"step/start","seq":64,"time":0,"data":{"turn":1,"step":6}} -{"type":"request/header","seq":65,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_inspect","cordis_mount","cordis_unmount","job_kill","job_list","job_output","run_code","subagent","workflow"]},"reason":"change"}} -{"type":"assistant/chunk","seq":66,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"block-start","index":0,"blockType":"text"}}} -{"type":"assistant/chunk","seq":67,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"text-delta","index":0,"text":"ADVANCED_EXECUTABLE_OK"}}} -{"type":"assistant/chunk","seq":68,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"ADVANCED_EXECUTABLE_OK"}}}} -{"type":"assistant/chunk","seq":69,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} -{"type":"assistant/chunk","seq":70,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"finish","reason":{"kind":"stop"}}}} -{"type":"assistant/message","seq":71,"time":0,"data":{"turn":1,"step":6,"message":{"role":"assistant","content":[{"type":"text","text":"ADVANCED_EXECUTABLE_OK"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[66,67,68,69,70],"surfaceOp":"append"} -{"type":"step/end","seq":72,"time":0,"data":{"turn":1,"step":6}} -{"type":"turn/end","seq":73,"time":0,"data":{"turn":1,"reason":{"kind":"completed"}}} +{"type":"assistant/chunk","seq":65,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}}} +{"type":"assistant/chunk","seq":66,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"tool-call-delta","index":0,"id":"advanced-undefine","name":"cordis_undefine","argumentsDelta":"{\"pluginId\": \"snap-1\"}"}}} +{"type":"assistant/chunk","seq":67,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-undefine","name":"cordis_undefine","arguments":"{\"pluginId\": \"snap-1\"}"}}}} +{"type":"assistant/chunk","seq":68,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} +{"type":"assistant/chunk","seq":69,"time":0,"data":{"turn":1,"step":6,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}} +{"type":"assistant/message","seq":70,"time":0,"data":{"turn":1,"step":6,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-undefine","name":"cordis_undefine","arguments":"{\"pluginId\": \"snap-1\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[65,66,67,68,69],"surfaceOp":"append"} +{"type":"tool/call","seq":71,"time":0,"data":{"turn":1,"step":6,"callId":"advanced-undefine","name":"cordis_undefine","arguments":"{\"pluginId\": \"snap-1\"}"}} +{"type":"tool/result","seq":72,"time":0,"data":{"turn":1,"step":6,"message":{"source":{"kind":"tool","callId":"advanced-undefine"},"content":[{"type":"tool-result","toolCallId":"advanced-undefine","content":[{"type":"text","text":"Removed dynamic Plugin snap-1 and all of its Packages."}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[71],"surfaceOp":"append"} +{"type":"step/end","seq":73,"time":0,"data":{"turn":1,"step":6}} +{"type":"step/start","seq":74,"time":0,"data":{"turn":1,"step":7}} +{"type":"request/header","seq":75,"time":0,"data":{"header":{"config":{"provider":"deepseek-official","model":"smoke-model","maxTokens":256000,"reasoningEffort":"high"},"adapterDefaults":{"reasoningEffort":true,"maxTokens":true},"system":"{{system}}","tools":["cordis_define","cordis_inspect_list","cordis_inspect_query","cordis_inspect_self","cordis_run","cordis_stop","cordis_undefine","job_kill","job_list","job_output","run_code","subagent","workflow"]},"reason":"change"}} +{"type":"assistant/chunk","seq":76,"time":0,"data":{"turn":1,"step":7,"chunk":{"type":"block-start","index":0,"blockType":"text"}}} +{"type":"assistant/chunk","seq":77,"time":0,"data":{"turn":1,"step":7,"chunk":{"type":"text-delta","index":0,"text":"ADVANCED_EXECUTABLE_OK"}}} +{"type":"assistant/chunk","seq":78,"time":0,"data":{"turn":1,"step":7,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"ADVANCED_EXECUTABLE_OK"}}}} +{"type":"assistant/chunk","seq":79,"time":0,"data":{"turn":1,"step":7,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3}}}} +{"type":"assistant/chunk","seq":80,"time":0,"data":{"turn":1,"step":7,"chunk":{"type":"finish","reason":{"kind":"stop"}}}} +{"type":"assistant/message","seq":81,"time":0,"data":{"turn":1,"step":7,"message":{"role":"assistant","content":[{"type":"text","text":"ADVANCED_EXECUTABLE_OK"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3}},"sourceEventSeqs":[76,77,78,79,80],"surfaceOp":"append"} +{"type":"step/end","seq":82,"time":0,"data":{"turn":1,"step":7}} +{"type":"turn/end","seq":83,"time":0,"data":{"turn":1,"reason":{"kind":"completed"}}}