@vibefield/puppeteer-imposter 0.3.3 → 0.3.4

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 (35) 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/jsonrpc.d.ts +4 -0
  5. package/dist/session/channels/jsonrpc.d.ts.map +1 -1
  6. package/dist/session/channels/jsonrpc.js +7 -2
  7. package/dist/session/channels/jsonrpc.js.map +1 -1
  8. package/dist/session/serve.d.ts +5 -0
  9. package/dist/session/serve.d.ts.map +1 -1
  10. package/dist/session/serve.js.map +1 -1
  11. package/package.json +8 -8
  12. package/personas/claude/persona.json +3 -1
  13. package/personas/claude/scenarios/compact-lifecycle.json +1 -1
  14. package/personas/claude/scenarios/compact-summary-retry.json +94 -0
  15. package/personas/codex/persona.json +15 -6
  16. package/personas/copilot/ops.json +6 -7
  17. package/personas/copilot/persona.json +32 -7
  18. package/personas/hermes/behavior/approval-turn.json +42 -5
  19. package/personas/hermes/ops.json +60 -55
  20. package/personas/hermes/persona.json +11 -2
  21. package/personas/hermes/runflows.json +4 -2
  22. package/personas/hermes/scenarios/permission-deny.json +18 -4
  23. package/personas/hermes/serve.json +49 -13
  24. package/personas/kimi/ops.json +46 -12
  25. package/personas/kimi/persona.json +34 -7
  26. package/personas/kimi/scenarios/compaction-lifecycle.json +8 -3
  27. package/personas/kimi/scenarios/duplicate-out-of-order.json +3 -0
  28. package/personas/kimi/scenarios/happy-turn.json +12 -3
  29. package/personas/kimi/scenarios/late-after-end.json +8 -1
  30. package/personas/kimi/scenarios/tool-failure.json +2 -0
  31. package/personas/kimi/scenarios/tool-success.json +14 -2
  32. package/personas/opencode/README.md +1 -1
  33. package/personas/opencode/persona.json +26 -5
  34. package/personas/pi/ops.json +5 -4
  35. package/personas/pi/persona.json +34 -7
@@ -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
  }
@@ -5,15 +5,21 @@
5
5
  "event": "metadata",
6
6
  "with": { "protocol_version": "1.5", "created_at": "$sessionCreatedAt" }
7
7
  },
8
+ {
9
+ "channel": "native-log",
10
+ "event": "runtime.set_binding",
11
+ "with": { "agentId": "main", "workspaceId": "$workdirKey", "runtimeId": "local" }
12
+ },
8
13
  {
9
14
  "channel": "native-log",
10
15
  "event": "profile.bind",
11
16
  "with": {
17
+ "agentId": "main",
12
18
  "modelAlias": "kimi-imposter",
13
19
  "profileName": "agent",
14
20
  "thinkingEffort": "on",
15
21
  "systemPrompt": "Kimi Imposter system prompt",
16
- "environmentDisclosure": { "cwd": "$cwd", "date": { "disclosed": false } },
22
+ "environmentDisclosure": { "cwd": "$cwd" },
17
23
  "agentsMdPaths": [],
18
24
  "activeToolNames": ["Bash"],
19
25
  "disallowedTools": []
@@ -22,7 +28,7 @@
22
28
  {
23
29
  "channel": "native-log",
24
30
  "event": "permission.set_mode",
25
- "with": { "mode": "manual" }
31
+ "with": { "agentId": "main", "mode": "manual" }
26
32
  },
27
33
  {
28
34
  "channel": "hook",
@@ -50,7 +56,8 @@
50
56
  "updatedAt": "$nowMs",
51
57
  "archived": false,
52
58
  "agents": { "main": { "homedir": "$cwd", "type": "main" } },
53
- "custom": {}
59
+ "custom": {},
60
+ "isCustomTitle": false
54
61
  }
55
62
  },
56
63
  {
@@ -83,7 +90,8 @@
83
90
  "archived": false,
84
91
  "agents": { "main": { "homedir": "$cwd", "type": "main" } },
85
92
  "custom": {},
86
- "lastTurnReason": "completed"
93
+ "lastTurnReason": "completed",
94
+ "isCustomTitle": false
87
95
  }
88
96
  }
89
97
  ],
@@ -91,18 +99,25 @@
91
99
  {
92
100
  "channel": "native-log",
93
101
  "event": "turn.prompt",
94
- "with": { "input": [{ "type": "text", "text": "$op.text" }], "origin": { "kind": "user" } }
102
+ "with": {
103
+ "agentId": "main",
104
+ "input": [{ "type": "text", "text": "$op.text" }],
105
+ "origin": { "kind": "user" },
106
+ "promptId": "$nativeId:msg:prompt",
107
+ "turnId": "$turnIndex"
108
+ }
95
109
  },
96
110
  {
97
111
  "channel": "native-log",
98
112
  "event": "context.append_message",
99
113
  "with": {
114
+ "agentId": "main",
100
115
  "message": {
101
116
  "role": "user",
102
117
  "content": [{ "type": "text", "text": "$op.text" }],
103
118
  "toolCalls": [],
104
119
  "origin": { "kind": "user" },
105
- "id": "$uuid:user-message"
120
+ "id": "$nativeId:msg:prompt"
106
121
  }
107
122
  }
108
123
  },
@@ -110,6 +125,7 @@
110
125
  "channel": "native-log",
111
126
  "event": "context.append_message",
112
127
  "with": {
128
+ "agentId": "main",
113
129
  "message": {
114
130
  "role": "user",
115
131
  "content": [{ "type": "text", "text": "Permission mode: manual" }],
@@ -122,6 +138,7 @@
122
138
  "channel": "native-log",
123
139
  "event": "context.append_loop_event",
124
140
  "with": {
141
+ "agentId": "main",
125
142
  "event": {
126
143
  "type": "step.begin",
127
144
  "uuid": "$uuid:step-one",
@@ -133,12 +150,13 @@
133
150
  {
134
151
  "channel": "native-log",
135
152
  "event": "llm.tools_snapshot",
136
- "with": { "hash": "imposter-tools", "tools": [] }
153
+ "with": { "agentId": "main", "hash": "imposter-tools", "tools": [] }
137
154
  },
138
155
  {
139
156
  "channel": "native-log",
140
157
  "event": "llm.request",
141
158
  "with": {
159
+ "agentId": "main",
142
160
  "kind": "loop",
143
161
  "provider": "imposter",
144
162
  "model": "kimi-imposter",
@@ -157,6 +175,7 @@
157
175
  "channel": "native-log",
158
176
  "event": "usage.record",
159
177
  "with": {
178
+ "agentId": "main",
160
179
  "model": "kimi-imposter",
161
180
  "usage": { "inputOther": 12, "output": 4, "inputCacheRead": 0, "inputCacheCreation": 0 },
162
181
  "usageScope": "turn"
@@ -193,6 +212,7 @@
193
212
  "channel": "native-log",
194
213
  "event": "context.append_loop_event",
195
214
  "with": {
215
+ "agentId": "main",
196
216
  "event": {
197
217
  "type": "content.part",
198
218
  "uuid": "$uuid:content",
@@ -209,6 +229,7 @@
209
229
  "channel": "native-log",
210
230
  "event": "context.append_loop_event",
211
231
  "with": {
232
+ "agentId": "main",
212
233
  "event": {
213
234
  "type": "tool.call",
214
235
  "uuid": "$uuid:tool-event",
@@ -240,10 +261,10 @@
240
261
  "channel": "native-log",
241
262
  "event": "interaction.request",
242
263
  "with": {
264
+ "agentId": "main",
243
265
  "id": "$uuid:interaction",
244
266
  "kind": "approval",
245
267
  "toolCallId": "$op.toolId",
246
- "agentId": "main",
247
268
  "request": { "tool": "$op.tool", "input": "$op.input" }
248
269
  }
249
270
  },
@@ -257,7 +278,11 @@
257
278
  "client_type": "kimi_code_cli",
258
279
  "tool_name": "$op.tool",
259
280
  "tool_input": "$op.input",
260
- "tool_call_id": "$op.toolId"
281
+ "tool_call_id": "$op.toolId",
282
+ "agent_id": "main",
283
+ "turn_id": "$turnIndex",
284
+ "action": "$op.action",
285
+ "display": "$op.display"
261
286
  }
262
287
  }
263
288
  ],
@@ -266,6 +291,7 @@
266
291
  "channel": "native-log",
267
292
  "event": "context.append_loop_event",
268
293
  "with": {
294
+ "agentId": "main",
269
295
  "event": {
270
296
  "type": "tool.result",
271
297
  "parentUuid": "$uuid:tool-event",
@@ -294,6 +320,7 @@
294
320
  "channel": "native-log",
295
321
  "event": "context.append_loop_event",
296
322
  "with": {
323
+ "agentId": "main",
297
324
  "event": {
298
325
  "type": "step.end",
299
326
  "uuid": "$uuid:step-one",
@@ -309,7 +336,12 @@
309
336
  {
310
337
  "channel": "native-log",
311
338
  "event": "turn.ended",
312
- "with": { "turnId": "$turnIndex", "reason": "completed", "durationMs": 100 }
339
+ "with": { "agentId": "main", "turnId": "$turnIndex", "reason": "completed", "durationMs": 100 }
340
+ },
341
+ {
342
+ "channel": "native-log",
343
+ "event": "prompt.completed",
344
+ "with": { "agentId": "main", "promptId": "$nativeId:msg:prompt", "finishedAt": "$now", "reason": "completed" }
313
345
  },
314
346
  {
315
347
  "channel": "hook",
@@ -334,7 +366,8 @@
334
366
  "archived": false,
335
367
  "agents": { "main": { "homedir": "$cwd", "type": "main" } },
336
368
  "custom": {},
337
- "lastTurnReason": "completed"
369
+ "lastTurnReason": "completed",
370
+ "isCustomTitle": false
338
371
  }
339
372
  }
340
373
  ],
@@ -350,7 +383,8 @@
350
383
  "updatedAt": "$nowMs",
351
384
  "archived": false,
352
385
  "agents": { "main": { "homedir": "$cwd", "type": "main" } },
353
- "custom": {}
386
+ "custom": {},
387
+ "isCustomTitle": false
354
388
  }
355
389
  }
356
390
  ]