@vibefield/puppeteer-imposter 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/cli/main.d.ts.map +1 -1
  2. package/dist/cli/main.js +2 -1
  3. package/dist/cli/main.js.map +1 -1
  4. package/dist/session/channels/hook.d.ts +5 -0
  5. package/dist/session/channels/hook.d.ts.map +1 -1
  6. package/dist/session/channels/hook.js +10 -23
  7. package/dist/session/channels/hook.js.map +1 -1
  8. package/dist/session/channels/jsonrpc.d.ts +4 -0
  9. package/dist/session/channels/jsonrpc.d.ts.map +1 -1
  10. package/dist/session/channels/jsonrpc.js +7 -2
  11. package/dist/session/channels/jsonrpc.js.map +1 -1
  12. package/dist/session/serve.d.ts +5 -0
  13. package/dist/session/serve.d.ts.map +1 -1
  14. package/dist/session/serve.js.map +1 -1
  15. package/package.json +8 -8
  16. package/personas/claude/persona.json +3 -1
  17. package/personas/claude/scenarios/compact-lifecycle.json +1 -1
  18. package/personas/claude/scenarios/compact-summary-retry.json +94 -0
  19. package/personas/codex/persona.json +15 -6
  20. package/personas/copilot/ops.json +6 -7
  21. package/personas/copilot/persona.json +32 -7
  22. package/personas/grok/ops.json +24 -0
  23. package/personas/hermes/behavior/approval-turn.json +42 -5
  24. package/personas/hermes/ops.json +60 -55
  25. package/personas/hermes/persona.json +11 -2
  26. package/personas/hermes/runflows.json +4 -2
  27. package/personas/hermes/scenarios/permission-deny.json +18 -4
  28. package/personas/hermes/serve.json +49 -13
  29. package/personas/kimi/ops.json +46 -12
  30. package/personas/kimi/persona.json +34 -7
  31. package/personas/kimi/scenarios/compaction-lifecycle.json +8 -3
  32. package/personas/kimi/scenarios/duplicate-out-of-order.json +3 -0
  33. package/personas/kimi/scenarios/happy-turn.json +12 -3
  34. package/personas/kimi/scenarios/late-after-end.json +8 -1
  35. package/personas/kimi/scenarios/tool-failure.json +2 -0
  36. package/personas/kimi/scenarios/tool-success.json +14 -2
  37. package/personas/opencode/README.md +1 -1
  38. package/personas/opencode/persona.json +26 -5
  39. package/personas/pi/ops.json +5 -4
  40. package/personas/pi/persona.json +34 -7
@@ -1,19 +1,18 @@
1
1
  {
2
2
  "session.start": [
3
- { "channel": "native-log", "event": "session.start", "with": { "sessionId": "$sessionId", "version": 1, "producer": "copilot-agent", "copilotVersion": "$vendorVersion", "startTime": "$now", "contextTier": null, "context": { "cwd": "$cwd" }, "alreadyInUse": false, "remoteSteerable": false } },
4
- { "channel": "native-log", "event": "session.permissions_changed", "with": { "previousAllowAllPermissions": false, "allowAllPermissions": true, "previousAllowAllPermissionMode": "off", "allowAllPermissionMode": "on" } },
5
- { "channel": "native-log", "event": "session.model_change", "with": { "contextTier": null, "newModel": "$modelId", "reasoningEffort": null } }
3
+ { "channel": "native-log", "event": "session.start", "with": { "sessionId": "$sessionId", "version": 1, "producer": "copilot-agent", "copilotVersion": "$vendorVersion", "startTime": "$now", "selectedModel": "$modelId", "contextTier": null, "context": { "cwd": "$cwd" }, "alreadyInUse": false, "remoteSteerable": false } },
4
+ { "channel": "native-log", "event": "session.permissions_changed", "with": { "previousAllowAllPermissions": false, "allowAllPermissions": true, "previousAllowAllPermissionMode": "off", "allowAllPermissionMode": "on" } }
6
5
  ],
7
6
  "turn.start": [
8
- { "channel": "native-log", "event": "user.message", "with": { "content": "$op.text", "attachments": [], "supportedNativeDocumentMimeTypes": [], "delivery": "idle", "interactionId": "$uuid:interaction" } },
7
+ { "channel": "native-log", "event": "user.message", "with": { "content": "$op.text", "messageId": "$uuid:user-message", "turnId": "$string:$turnIndex", "supportedNativeDocumentMimeTypes": [], "delivery": "idle", "interactionId": "$uuid:interaction" } },
9
8
  { "channel": "native-log", "event": "assistant.turn_start", "with": { "turnId": "$string:$turnIndex", "interactionId": "$uuid:interaction" } }
10
9
  ],
11
10
  "assistant.delta": [
12
- { "channel": "native-log", "event": "assistant.message", "with": { "messageId": "$uuid:assistant-message", "model": "$modelId", "content": "$op.text", "toolRequests": [], "interactionId": "$uuid:interaction", "turnId": "$string:$turnIndex", "outputTokens": 4, "rte": false } }
11
+ { "channel": "native-log", "event": "assistant.message", "with": { "messageId": "$uuid:assistant-message", "originatingMessageId": "$uuid:user-message", "model": "$modelId", "content": "$op.text", "toolRequests": [], "interactionId": "$uuid:interaction", "turnId": "$string:$turnIndex", "rte": false } }
13
12
  ],
14
13
  "tool.start": [
15
- { "channel": "native-log", "event": "assistant.message", "with": { "messageId": "$uuid:tool-message", "model": "$modelId", "content": "", "toolRequests": [{ "toolCallId": "$op.toolId", "name": "$op.tool", "arguments": "$op.input", "type": "function" }], "interactionId": "$uuid:interaction", "turnId": "$string:$turnIndex", "outputTokens": 4, "rte": false } },
16
- { "channel": "native-log", "event": "tool.execution_start", "with": { "toolCallId": "$op.toolId", "toolName": "$op.tool", "arguments": "$op.input", "turnId": "$string:$turnIndex", "model": "$modelId", "rte": false } }
14
+ { "channel": "native-log", "event": "assistant.message", "with": { "messageId": "$uuid:tool-message", "originatingMessageId": "$uuid:user-message", "model": "$modelId", "content": "", "toolRequests": [{ "toolCallId": "$op.toolId", "name": "$op.tool", "arguments": "$op.input", "type": "function", "toolTitle": "Running command" }], "interactionId": "$uuid:interaction", "turnId": "$string:$turnIndex", "rte": false } },
15
+ { "channel": "native-log", "event": "tool.execution_start", "with": { "toolCallId": "$op.toolId", "toolName": "$op.tool", "arguments": "$op.input", "turnId": "$string:$turnIndex", "model": "$modelId", "toolTitle": "Running command" } }
17
16
  ],
18
17
  "tool.end": [
19
18
  { "channel": "native-log", "event": "tool.execution_complete", "with": { "toolCallId": "$op.toolId", "model": "$modelId", "interactionId": "$uuid:interaction", "turnId": "$string:$turnIndex", "rte": false, "success": true, "result": "$op.output" } },
@@ -1,17 +1,42 @@
1
1
  {
2
2
  "vendor": "copilot",
3
- "asm": { "package": "@vibefield/puppeteer-surface", "path": "vendors/copilot" },
4
- "shimNames": ["copilot"],
3
+ "asm": {
4
+ "package": "@vibefield/puppeteer-surface",
5
+ "path": "vendors/copilot"
6
+ },
7
+ "shimNames": [
8
+ "copilot"
9
+ ],
5
10
  "envelope": {},
6
11
  "nativeStore": {
7
12
  "rootEnv": "COPILOT_HOME",
8
- "sessionPath": ["session-state", "$sessionId"],
13
+ "sessionPath": [
14
+ "session-state",
15
+ "$sessionId"
16
+ ],
9
17
  "updatesFile": "events.jsonl",
10
18
  "recordFormat": "flat-record",
11
19
  "recordPayloadField": "data",
12
- "recordTimestamp": { "field": "timestamp", "format": "iso" },
13
- "recordIdentity": { "idField": "id", "parentField": "parentId" },
14
- "singletonEvents": ["session.start", "session.permissions_changed", "session.model_change"]
20
+ "recordTimestamp": {
21
+ "field": "timestamp",
22
+ "format": "iso"
23
+ },
24
+ "recordIdentity": {
25
+ "idField": "id",
26
+ "parentField": "parentId"
27
+ },
28
+ "singletonEvents": [
29
+ "session.start",
30
+ "session.permissions_changed",
31
+ "session.model_change"
32
+ ]
15
33
  },
16
- "boot": [{ "op": "session.start" }, { "op": "session.ready" }]
34
+ "boot": [
35
+ {
36
+ "op": "session.start"
37
+ },
38
+ {
39
+ "op": "session.ready"
40
+ }
41
+ ]
17
42
  }
@@ -74,6 +74,25 @@
74
74
  }
75
75
  ],
76
76
  "turn.start": [
77
+ {
78
+ "channel": "jsonrpc",
79
+ "event": "_x.ai/queue/changed",
80
+ "with": {
81
+ "sessionId": "$sessionId",
82
+ "entries": [{ "id": "$uuid:prompt", "version": 0, "kind": "prompt", "text": "$op.text", "position": 0 }]
83
+ }
84
+ },
85
+ {
86
+ "channel": "jsonrpc",
87
+ "event": "_x.ai/queue/changed",
88
+ "with": {
89
+ "sessionId": "$sessionId",
90
+ "entries": [],
91
+ "runningPromptId": "$uuid:prompt",
92
+ "runningText": "$op.text",
93
+ "runningKind": "prompt"
94
+ }
95
+ },
77
96
  {
78
97
  "channel": "jsonrpc",
79
98
  "event": "session/update",
@@ -368,6 +387,11 @@
368
387
  }
369
388
  }
370
389
  },
390
+ {
391
+ "channel": "jsonrpc",
392
+ "event": "_x.ai/queue/changed",
393
+ "with": { "sessionId": "$sessionId", "entries": [] }
394
+ },
371
395
  {
372
396
  "channel": "jsonrpc",
373
397
  "event": "_x.ai/session_notification",
@@ -2,10 +2,47 @@
2
2
  "name": "approval-turn",
3
3
  "reply": "SURFACE_HERMES_DENIED",
4
4
  "ops": [
5
- { "op": "turn.start", "with": { "text": "$stimulus.text" } },
6
- { "op": "tool.start", "with": { "tool": "terminal", "toolId": "call_imposter" } },
7
- { "op": "permission.ask", "with": { "tool": "terminal" } },
8
- { "op": "assistant.delta", "with": { "text": "$reply" } },
9
- { "op": "turn.end" }
5
+ {
6
+ "op": "turn.start",
7
+ "with": {
8
+ "text": "$stimulus.text"
9
+ }
10
+ },
11
+ {
12
+ "op": "tool.start",
13
+ "with": {
14
+ "tool": "terminal",
15
+ "toolId": "call_imposter"
16
+ }
17
+ },
18
+ {
19
+ "op": "permission.ask",
20
+ "with": {
21
+ "tool": "terminal"
22
+ }
23
+ },
24
+ {
25
+ "op": "tool.end",
26
+ "with": {
27
+ "tool": "terminal",
28
+ "toolId": "call_imposter",
29
+ "status": "error",
30
+ "result": {
31
+ "output": "",
32
+ "exit_code": -1,
33
+ "error": "BLOCKED: Command denied by user.",
34
+ "status": "blocked"
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "op": "assistant.delta",
40
+ "with": {
41
+ "text": "$reply"
42
+ }
43
+ },
44
+ {
45
+ "op": "turn.end"
46
+ }
10
47
  ]
11
48
  }
@@ -3,18 +3,19 @@
3
3
  {
4
4
  "channel": "jsonrpc",
5
5
  "event": "gateway.ready",
6
- "with": { "skin": {}, "change_events": true }
6
+ "with": {
7
+ "skin": {},
8
+ "change_events": true,
9
+ "replay_epoch": "$uuid:replay-epoch"
10
+ }
7
11
  },
8
12
  {
9
13
  "channel": "hook",
10
14
  "event": "on_session_start",
11
15
  "with": {
12
- "hook_event_name": "on_session_start",
13
16
  "session_id": "$storedSessionId",
14
- "platform": "tui",
15
- "choice": null,
16
- "tool_name": null,
17
- "keys": ["session_id", "model", "platform"]
17
+ "model": "puppeteer-hermes-census",
18
+ "platform": "tui"
18
19
  }
19
20
  }
20
21
  ],
@@ -26,7 +27,7 @@
26
27
  "model": "puppeteer-hermes-census",
27
28
  "provider": "custom",
28
29
  "approval_mode": "manual",
29
- "version": "0.20.0",
30
+ "version": "0.21.5",
30
31
  "cwd": "$cwd",
31
32
  "stored_session_id": "$storedSessionId",
32
33
  "running": false
@@ -38,24 +39,18 @@
38
39
  "channel": "hook",
39
40
  "event": "on_session_end",
40
41
  "with": {
41
- "hook_event_name": "on_session_end",
42
42
  "session_id": "$storedSessionId",
43
- "platform": "tui",
44
- "choice": null,
45
- "tool_name": null,
46
- "keys": ["session_id", "completed", "interrupted", "platform"]
43
+ "completed": true,
44
+ "interrupted": false,
45
+ "platform": "tui"
47
46
  }
48
47
  },
49
48
  {
50
49
  "channel": "hook",
51
50
  "event": "on_session_finalize",
52
51
  "with": {
53
- "hook_event_name": "on_session_finalize",
54
52
  "session_id": "$storedSessionId",
55
- "platform": "tui",
56
- "choice": null,
57
- "tool_name": null,
58
- "keys": ["session_id", "platform"]
53
+ "platform": "tui"
59
54
  }
60
55
  }
61
56
  ],
@@ -69,12 +64,9 @@
69
64
  "channel": "hook",
70
65
  "event": "pre_llm_call",
71
66
  "with": {
72
- "hook_event_name": "pre_llm_call",
73
67
  "session_id": "$storedSessionId",
74
- "platform": "tui",
75
- "choice": null,
76
- "tool_name": null,
77
- "keys": ["session_id", "user_message", "platform"]
68
+ "user_message": "$op.text",
69
+ "platform": "tui"
78
70
  }
79
71
  }
80
72
  ],
@@ -82,35 +74,43 @@
82
74
  {
83
75
  "channel": "jsonrpc",
84
76
  "event": "thinking.delta",
85
- "with": { "text": "(⊙_⊙) pondering..." }
77
+ "with": {
78
+ "text": "(⊙_⊙) pondering..."
79
+ }
86
80
  },
87
81
  {
88
82
  "channel": "jsonrpc",
89
83
  "event": "message.delta",
90
- "with": { "text": "$op.text" }
84
+ "with": {
85
+ "text": "$op.text"
86
+ }
91
87
  }
92
88
  ],
93
89
  "tool.start": [
94
90
  {
95
91
  "channel": "jsonrpc",
96
92
  "event": "tool.generating",
97
- "with": { "name": "$op.tool" }
93
+ "with": {
94
+ "name": "$op.tool"
95
+ }
98
96
  },
99
97
  {
100
98
  "channel": "jsonrpc",
101
99
  "event": "tool.start",
102
- "with": { "name": "$op.tool", "tool_id": "$op.toolId", "context": "agent" }
100
+ "with": {
101
+ "name": "$op.tool",
102
+ "tool_id": "$op.toolId",
103
+ "context": "agent"
104
+ }
103
105
  },
104
106
  {
105
107
  "channel": "hook",
106
108
  "event": "pre_tool_call",
107
109
  "with": {
108
- "hook_event_name": "pre_tool_call",
109
110
  "session_id": "$storedSessionId",
110
111
  "tool_name": "$op.tool",
111
- "platform": null,
112
- "choice": null,
113
- "keys": ["tool_name", "args", "session_id", "tool_call_id"]
112
+ "tool_call_id": "$op.toolId",
113
+ "args": {}
114
114
  }
115
115
  }
116
116
  ],
@@ -122,43 +122,49 @@
122
122
  "name": "$op.tool",
123
123
  "tool_id": "$op.toolId",
124
124
  "args": {},
125
- "result": { "output": "", "exit_code": 0 }
125
+ "result": "$op.result"
126
126
  }
127
127
  },
128
128
  {
129
129
  "channel": "hook",
130
130
  "event": "post_tool_call",
131
131
  "with": {
132
- "hook_event_name": "post_tool_call",
133
132
  "session_id": "$storedSessionId",
134
133
  "tool_name": "$op.tool",
135
- "platform": null,
136
- "choice": null,
137
- "keys": ["tool_name", "args", "result", "session_id", "status"]
134
+ "tool_call_id": "$op.toolId",
135
+ "args": {},
136
+ "status": "$op.status"
138
137
  }
139
138
  }
140
139
  ],
141
140
  "permission.ask": [
142
141
  {
143
- "channel": "jsonrpc",
144
- "event": "approval.request",
142
+ "channel": "hook",
143
+ "event": "pre_approval_request",
145
144
  "with": {
146
- "choices": ["once", "session", "always", "deny"],
145
+ "session_id": "$storedSessionId",
146
+ "session_key": "$storedSessionId",
147
+ "surface": "gateway",
148
+ "command": "rm -rf ./scratch",
149
+ "description": "delete in root path",
147
150
  "pattern_key": "delete in root path",
148
- "allow_permanent": true,
149
- "allow_session": true
151
+ "pattern_keys": ["delete in root path"]
150
152
  }
151
153
  },
152
154
  {
153
- "channel": "hook",
154
- "event": "pre_approval_request",
155
+ "channel": "jsonrpc",
156
+ "event": "approval",
157
+ "await": true,
155
158
  "with": {
156
- "hook_event_name": "pre_approval_request",
157
- "session_id": "$storedSessionId",
158
- "tool_name": null,
159
- "platform": null,
160
- "choice": null,
161
- "keys": ["command", "pattern_key", "session_key", "surface"]
159
+ "session_id": "$liveSessionId",
160
+ "request_id": "$uuid:approval",
161
+ "command": "rm -rf ./scratch",
162
+ "description": "delete in root path",
163
+ "pattern_key": "delete in root path",
164
+ "pattern_keys": ["delete in root path"],
165
+ "allow_permanent": true,
166
+ "allow_session": true,
167
+ "choices": ["once", "session", "always", "deny"]
162
168
  }
163
169
  }
164
170
  ],
@@ -166,7 +172,9 @@
166
172
  {
167
173
  "channel": "jsonrpc",
168
174
  "event": "reasoning.available",
169
- "with": { "text": "$reply" }
175
+ "with": {
176
+ "text": "$reply"
177
+ }
170
178
  },
171
179
  {
172
180
  "channel": "jsonrpc",
@@ -190,12 +198,9 @@
190
198
  "channel": "hook",
191
199
  "event": "post_llm_call",
192
200
  "with": {
193
- "hook_event_name": "post_llm_call",
194
201
  "session_id": "$storedSessionId",
195
- "platform": "tui",
196
- "choice": null,
197
- "tool_name": null,
198
- "keys": ["session_id", "assistant_response", "platform"]
202
+ "assistant_response": "$reply",
203
+ "platform": "tui"
199
204
  }
200
205
  }
201
206
  ],
@@ -207,7 +212,7 @@
207
212
  "model": "puppeteer-hermes-census",
208
213
  "provider": "custom",
209
214
  "approval_mode": "manual",
210
- "version": "0.20.0",
215
+ "version": "0.21.5",
211
216
  "cwd": "$cwd",
212
217
  "stored_session_id": "$storedSessionId",
213
218
  "running": false,
@@ -4,12 +4,21 @@
4
4
  "package": "@vibefield/puppeteer-surface",
5
5
  "path": "vendors/hermes"
6
6
  },
7
- "shimNames": ["hermes"],
7
+ "shimNames": [
8
+ "hermes"
9
+ ],
8
10
  "jsonrpcEventMethod": "event",
9
11
  "envelope": {},
10
12
  "bindings": {
11
13
  "$liveSessionId": "$uuid:live",
12
14
  "$storedSessionId": "$uuid:stored"
13
15
  },
14
- "boot": [{ "op": "session.start" }, { "op": "session.ready" }]
16
+ "boot": [
17
+ {
18
+ "op": "session.start"
19
+ },
20
+ {
21
+ "op": "session.ready"
22
+ }
23
+ ]
15
24
  }
@@ -10,7 +10,9 @@
10
10
  "kind": "typical",
11
11
  "danger": "safe",
12
12
  "tags": ["tui-gateway", "turn"],
13
- "defaultStimulus": { "text": "hello" },
13
+ "defaultStimulus": {
14
+ "text": "hello"
15
+ },
14
16
  "defaultSpeed": 4
15
17
  },
16
18
  {
@@ -18,7 +20,7 @@
18
20
  "intent": "permission.deny",
19
21
  "scenario": "permission-deny",
20
22
  "title": "Approval deny",
21
- "summary": "tool.start, approval.request, blocked tool.complete, then message.complete.",
23
+ "summary": "tool.start, the approval server request answered by the client, blocked tool.complete, then message.complete.",
22
24
  "kind": "typical",
23
25
  "danger": "safe",
24
26
  "tags": ["approval", "tool"],
@@ -7,7 +7,11 @@
7
7
  "emit": {
8
8
  "channel": "tui-gateway",
9
9
  "event": "tool.start",
10
- "with": { "name": "terminal", "tool_id": "call_imposter", "context": "agent" }
10
+ "with": {
11
+ "name": "terminal",
12
+ "tool_id": "call_imposter",
13
+ "context": "agent"
14
+ }
11
15
  }
12
16
  }
13
17
  },
@@ -16,8 +20,15 @@
16
20
  "do": {
17
21
  "emit": {
18
22
  "channel": "tui-gateway",
19
- "event": "approval.request",
20
- "with": { "choices": ["once", "session", "always", "deny"] }
23
+ "event": "approval",
24
+ "request": true,
25
+ "with": {
26
+ "session_id": "$liveSessionId",
27
+ "request_id": "$uuid:approval",
28
+ "command": "rm -rf ./scratch",
29
+ "description": "delete in root path",
30
+ "choices": ["once", "session", "always", "deny"]
31
+ }
21
32
  }
22
33
  }
23
34
  },
@@ -46,7 +57,10 @@
46
57
  "emit": {
47
58
  "channel": "tui-gateway",
48
59
  "event": "message.complete",
49
- "with": { "text": "permission denied", "status": "complete" }
60
+ "with": {
61
+ "text": "permission denied",
62
+ "status": "complete"
63
+ }
50
64
  }
51
65
  }
52
66
  }
@@ -1,53 +1,89 @@
1
1
  {
2
2
  "$server": {
3
3
  "jsonrpc": "2.0",
4
- "command": "tui-gateway"
4
+ "command": "tui-gateway",
5
+ "requestIdPrefix": "srq-"
5
6
  },
6
-
7
7
  "session.create": {
8
8
  "bind": {
9
9
  "$liveSessionId": "$uuid:live",
10
10
  "$storedSessionId": "$uuid:stored"
11
11
  },
12
- "then": [{ "op": "session.start" }, { "op": "session.ready" }],
12
+ "then": [
13
+ {
14
+ "op": "session.start"
15
+ },
16
+ {
17
+ "op": "session.ready"
18
+ }
19
+ ],
13
20
  "result": {
14
21
  "session_id": "$liveSessionId",
15
22
  "stored_session_id": "$storedSessionId",
16
- "message_count": 0
23
+ "message_count": 0,
24
+ "messages": [],
25
+ "info": {
26
+ "model": "puppeteer-hermes-census",
27
+ "cwd": "$cwd"
28
+ }
17
29
  }
18
30
  },
19
-
20
31
  "session.resume": {
21
32
  "bind": {
22
33
  "$liveSessionId": "$uuid:live",
23
34
  "$storedSessionId": "$params.session_id"
24
35
  },
25
- "then": [{ "op": "session.start" }, { "op": "session.ready" }],
36
+ "then": [
37
+ {
38
+ "op": "session.start"
39
+ },
40
+ {
41
+ "op": "session.ready"
42
+ }
43
+ ],
26
44
  "result": {
27
45
  "session_id": "$liveSessionId",
28
46
  "resumed": "$storedSessionId",
29
47
  "session_key": "$storedSessionId",
30
48
  "status": "idle",
31
49
  "message_count": 2,
50
+ "messages": [],
51
+ "info": {
52
+ "model": "puppeteer-hermes-census",
53
+ "cwd": "$cwd"
54
+ },
32
55
  "running": false
33
56
  }
34
57
  },
35
-
36
58
  "prompt.submit": {
37
59
  "then": "$behavior",
38
- "result": { "status": "streaming" }
60
+ "result": {
61
+ "status": "streaming"
62
+ }
39
63
  },
40
-
41
64
  "session.interrupt": {
42
- "result": { "status": "interrupted" }
65
+ "result": {
66
+ "status": "interrupted"
67
+ }
43
68
  },
44
-
45
69
  "approval.respond": {
46
- "result": { "resolved": 1 },
70
+ "result": {
71
+ "resolved": 1
72
+ },
47
73
  "then": [
48
74
  {
49
75
  "op": "tool.end",
50
- "with": { "tool": "terminal", "toolId": "call_imposter" }
76
+ "with": {
77
+ "tool": "terminal",
78
+ "toolId": "call_imposter",
79
+ "status": "error",
80
+ "result": {
81
+ "output": "",
82
+ "exit_code": -1,
83
+ "error": "BLOCKED: Command denied by user.",
84
+ "status": "blocked"
85
+ }
86
+ }
51
87
  }
52
88
  ]
53
89
  }