@vibefield/puppeteer-imposter 0.2.0 → 0.2.2
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.
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +91 -12
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/prompt-line.d.ts +6 -0
- package/dist/cli/prompt-line.d.ts.map +1 -1
- package/dist/cli/prompt-line.js +2 -0
- package/dist/cli/prompt-line.js.map +1 -1
- package/dist/persona/load.d.ts.map +1 -1
- package/dist/persona/load.js +31 -2
- package/dist/persona/load.js.map +1 -1
- package/dist/persona/types.d.ts +22 -2
- package/dist/persona/types.d.ts.map +1 -1
- package/dist/persona/types.js.map +1 -1
- package/dist/session/channels/jsonrpc.d.ts +10 -1
- package/dist/session/channels/jsonrpc.d.ts.map +1 -1
- package/dist/session/channels/jsonrpc.js +51 -2
- package/dist/session/channels/jsonrpc.js.map +1 -1
- package/dist/session/channels/leader-ipc.d.ts +9 -0
- package/dist/session/channels/leader-ipc.d.ts.map +1 -1
- package/dist/session/channels/leader-ipc.js +59 -6
- package/dist/session/channels/leader-ipc.js.map +1 -1
- package/dist/session/channels/native-store.d.ts +2 -0
- package/dist/session/channels/native-store.d.ts.map +1 -1
- package/dist/session/channels/native-store.js +48 -9
- package/dist/session/channels/native-store.js.map +1 -1
- package/dist/session/serve.d.ts +6 -0
- package/dist/session/serve.d.ts.map +1 -1
- package/dist/session/serve.js.map +1 -1
- package/dist/session/session.d.ts.map +1 -1
- package/dist/session/session.js +63 -28
- package/dist/session/session.js.map +1 -1
- package/dist/session/template.d.ts +3 -0
- package/dist/session/template.d.ts.map +1 -1
- package/dist/session/template.js +6 -1
- package/dist/session/template.js.map +1 -1
- package/package.json +8 -8
- package/personas/claude/ops.json +8 -1
- package/personas/claude/persona.json +18 -0
- package/personas/claude/runflows.json +2 -2
- package/personas/claude/scenarios/api-error-overloaded.json +49 -0
- package/personas/claude/scenarios/compact-lifecycle.json +76 -0
- package/personas/claude/scenarios/incident-investigation.json +90 -29
- package/personas/claude/scenarios/model-switch.json +171 -0
- package/personas/codex/serve.json +5 -0
- package/personas/grok/behavior/approval-turn.json +35 -8
- package/personas/grok/behavior/happy-turn.json +13 -5
- package/personas/grok/ops.json +338 -123
- package/personas/grok/persona.json +10 -2
- package/personas/grok/runflows.json +24 -2
- package/personas/grok/scenarios/agent-team-lifecycle.json +73 -4
- package/personas/grok/scenarios/compact-lifecycle.json +32 -3
- package/personas/grok/scenarios/configured-hooks.json +80 -0
- package/personas/grok/scenarios/remote-ambient.json +51 -0
- package/personas/grok/serve.json +300 -17
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "compact-lifecycle",
|
|
3
|
+
"notes": "/compact as Claude Code 2.1.308 runs it: PreCompact, a SubagentStop from Claude's internal compaction agent (empty agent_type, never started), SessionStart with source compact, then PostCompact and a status line whose context restarts.",
|
|
4
|
+
"steps": [
|
|
5
|
+
{
|
|
6
|
+
"at": 0,
|
|
7
|
+
"do": {
|
|
8
|
+
"emit": {
|
|
9
|
+
"event": "PreCompact",
|
|
10
|
+
"with": { "prompt_id": "$uuid:prompt", "trigger": "manual", "custom_instructions": "" }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"at": 100,
|
|
16
|
+
"do": {
|
|
17
|
+
"emit": {
|
|
18
|
+
"event": "SubagentStop",
|
|
19
|
+
"with": {
|
|
20
|
+
"prompt_id": "$uuid:prompt",
|
|
21
|
+
"agent_id": "$uuid:compaction-agent",
|
|
22
|
+
"agent_type": "",
|
|
23
|
+
"agent_transcript_path": "/tmp/agent-compaction.jsonl",
|
|
24
|
+
"stop_hook_active": false,
|
|
25
|
+
"last_assistant_message": "Summary of the conversation so far.",
|
|
26
|
+
"background_tasks": [],
|
|
27
|
+
"session_crons": []
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"at": 200,
|
|
34
|
+
"do": {
|
|
35
|
+
"emit": {
|
|
36
|
+
"event": "SessionStart",
|
|
37
|
+
"with": { "prompt_id": "$uuid:prompt", "source": "compact", "session_title": "$sessionTitle" }
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"at": 300,
|
|
43
|
+
"do": {
|
|
44
|
+
"emit": {
|
|
45
|
+
"event": "PostCompact",
|
|
46
|
+
"with": {
|
|
47
|
+
"prompt_id": "$uuid:prompt",
|
|
48
|
+
"trigger": "manual",
|
|
49
|
+
"compact_summary": "Summary of the conversation so far."
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"at": 400,
|
|
56
|
+
"do": {
|
|
57
|
+
"statusline": {
|
|
58
|
+
"with": {
|
|
59
|
+
"session_id": "$sessionId",
|
|
60
|
+
"transcript_path": "$transcriptPath",
|
|
61
|
+
"cwd": "$cwd",
|
|
62
|
+
"model": { "id": "$modelId", "display_name": "$modelId" },
|
|
63
|
+
"workspace": { "current_dir": "$cwd" },
|
|
64
|
+
"context_window": {
|
|
65
|
+
"total_input_tokens": 0,
|
|
66
|
+
"context_window_size": "$capacityTokens",
|
|
67
|
+
"current_usage": null,
|
|
68
|
+
"used_percentage": null,
|
|
69
|
+
"remaining_percentage": null
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
@@ -1,9 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "incident-investigation",
|
|
3
|
-
"notes": "A competing-hypotheses incident investigation using MCP, shell, web, failure recovery, delegation, compaction, and verification.",
|
|
3
|
+
"notes": "A competing-hypotheses incident investigation, escalated to Opus with /model first (PreModelSwitch, PostModelSwitch, a status line on the new model), using MCP, shell, web, failure recovery, delegation, compaction, and verification.",
|
|
4
4
|
"steps": [
|
|
5
5
|
{
|
|
6
6
|
"at": 0,
|
|
7
|
+
"do": {
|
|
8
|
+
"emit": {
|
|
9
|
+
"event": "PreModelSwitch",
|
|
10
|
+
"with": {
|
|
11
|
+
"prompt_id": "$uuid:previous-prompt",
|
|
12
|
+
"from_model": "$modelId",
|
|
13
|
+
"to_model": "claude-opus-5-5",
|
|
14
|
+
"requested_model": "opus",
|
|
15
|
+
"source": "command",
|
|
16
|
+
"context_tokens": 3005,
|
|
17
|
+
"prompt_cache_warm": false,
|
|
18
|
+
"cache_ttl": "5m",
|
|
19
|
+
"estimated_cache_write_usd": 0.015,
|
|
20
|
+
"pricing": "catalog"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"at": 100,
|
|
27
|
+
"do": {
|
|
28
|
+
"emit": {
|
|
29
|
+
"event": "PostModelSwitch",
|
|
30
|
+
"with": {
|
|
31
|
+
"prompt_id": "$uuid:previous-prompt",
|
|
32
|
+
"from_model": "$modelId",
|
|
33
|
+
"to_model": "claude-opus-5-5",
|
|
34
|
+
"requested_model": "opus",
|
|
35
|
+
"source": "command",
|
|
36
|
+
"context_tokens": 3005,
|
|
37
|
+
"prompt_cache_warm": false,
|
|
38
|
+
"cache_ttl": "5m",
|
|
39
|
+
"estimated_cache_write_usd": 0.015,
|
|
40
|
+
"pricing": "catalog"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"at": 200,
|
|
47
|
+
"do": {
|
|
48
|
+
"statusline": {
|
|
49
|
+
"with": {
|
|
50
|
+
"session_id": "$sessionId",
|
|
51
|
+
"transcript_path": "$transcriptPath",
|
|
52
|
+
"cwd": "$cwd",
|
|
53
|
+
"model": { "id": "claude-opus-5-5", "display_name": "Opus 5.5" },
|
|
54
|
+
"effort": { "level": "medium" },
|
|
55
|
+
"workspace": { "current_dir": "$cwd" },
|
|
56
|
+
"context_window": {
|
|
57
|
+
"total_input_tokens": 3005,
|
|
58
|
+
"context_window_size": "$capacityTokens",
|
|
59
|
+
"used_percentage": 1.5,
|
|
60
|
+
"current_usage": { "input_tokens": 5, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 3000 }
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"at": 300,
|
|
7
68
|
"do": {
|
|
8
69
|
"emit": {
|
|
9
70
|
"event": "UserPromptSubmit",
|
|
@@ -17,7 +78,7 @@
|
|
|
17
78
|
}
|
|
18
79
|
},
|
|
19
80
|
{
|
|
20
|
-
"at":
|
|
81
|
+
"at": 400,
|
|
21
82
|
"do": {
|
|
22
83
|
"emit": {
|
|
23
84
|
"event": "MessageDisplay",
|
|
@@ -33,7 +94,7 @@
|
|
|
33
94
|
}
|
|
34
95
|
},
|
|
35
96
|
{
|
|
36
|
-
"at":
|
|
97
|
+
"at": 500,
|
|
37
98
|
"do": {
|
|
38
99
|
"emit": {
|
|
39
100
|
"event": "TaskCreated",
|
|
@@ -49,7 +110,7 @@
|
|
|
49
110
|
}
|
|
50
111
|
},
|
|
51
112
|
{
|
|
52
|
-
"at":
|
|
113
|
+
"at": 600,
|
|
53
114
|
"do": {
|
|
54
115
|
"emit": {
|
|
55
116
|
"event": "TaskCreated",
|
|
@@ -65,7 +126,7 @@
|
|
|
65
126
|
}
|
|
66
127
|
},
|
|
67
128
|
{
|
|
68
|
-
"at":
|
|
129
|
+
"at": 700,
|
|
69
130
|
"do": {
|
|
70
131
|
"emit": {
|
|
71
132
|
"event": "SubagentStart",
|
|
@@ -74,7 +135,7 @@
|
|
|
74
135
|
}
|
|
75
136
|
},
|
|
76
137
|
{
|
|
77
|
-
"at":
|
|
138
|
+
"at": 800,
|
|
78
139
|
"do": {
|
|
79
140
|
"emit": {
|
|
80
141
|
"event": "SubagentStart",
|
|
@@ -83,7 +144,7 @@
|
|
|
83
144
|
}
|
|
84
145
|
},
|
|
85
146
|
{
|
|
86
|
-
"at":
|
|
147
|
+
"at": 900,
|
|
87
148
|
"do": {
|
|
88
149
|
"emit": {
|
|
89
150
|
"event": "PreToolUse",
|
|
@@ -99,7 +160,7 @@
|
|
|
99
160
|
}
|
|
100
161
|
},
|
|
101
162
|
{
|
|
102
|
-
"at":
|
|
163
|
+
"at": 1100,
|
|
103
164
|
"do": {
|
|
104
165
|
"emit": {
|
|
105
166
|
"event": "PostToolUse",
|
|
@@ -117,7 +178,7 @@
|
|
|
117
178
|
}
|
|
118
179
|
},
|
|
119
180
|
{
|
|
120
|
-
"at":
|
|
181
|
+
"at": 1200,
|
|
121
182
|
"do": {
|
|
122
183
|
"emit": {
|
|
123
184
|
"event": "PreToolUse",
|
|
@@ -133,7 +194,7 @@
|
|
|
133
194
|
}
|
|
134
195
|
},
|
|
135
196
|
{
|
|
136
|
-
"at":
|
|
197
|
+
"at": 1400,
|
|
137
198
|
"do": {
|
|
138
199
|
"emit": {
|
|
139
200
|
"event": "PostToolUseFailure",
|
|
@@ -152,7 +213,7 @@
|
|
|
152
213
|
}
|
|
153
214
|
},
|
|
154
215
|
{
|
|
155
|
-
"at":
|
|
216
|
+
"at": 1500,
|
|
156
217
|
"do": {
|
|
157
218
|
"emit": {
|
|
158
219
|
"event": "PreToolUse",
|
|
@@ -168,7 +229,7 @@
|
|
|
168
229
|
}
|
|
169
230
|
},
|
|
170
231
|
{
|
|
171
|
-
"at":
|
|
232
|
+
"at": 1700,
|
|
172
233
|
"do": {
|
|
173
234
|
"emit": {
|
|
174
235
|
"event": "PostToolUse",
|
|
@@ -186,7 +247,7 @@
|
|
|
186
247
|
}
|
|
187
248
|
},
|
|
188
249
|
{
|
|
189
|
-
"at":
|
|
250
|
+
"at": 1800,
|
|
190
251
|
"do": {
|
|
191
252
|
"emit": {
|
|
192
253
|
"event": "PreToolUse",
|
|
@@ -200,7 +261,7 @@
|
|
|
200
261
|
}
|
|
201
262
|
},
|
|
202
263
|
{
|
|
203
|
-
"at":
|
|
264
|
+
"at": 2000,
|
|
204
265
|
"do": {
|
|
205
266
|
"emit": {
|
|
206
267
|
"event": "PostToolUse",
|
|
@@ -221,7 +282,7 @@
|
|
|
221
282
|
}
|
|
222
283
|
},
|
|
223
284
|
{
|
|
224
|
-
"at":
|
|
285
|
+
"at": 2100,
|
|
225
286
|
"do": {
|
|
226
287
|
"emit": {
|
|
227
288
|
"event": "PostToolBatch",
|
|
@@ -258,7 +319,7 @@
|
|
|
258
319
|
}
|
|
259
320
|
},
|
|
260
321
|
{
|
|
261
|
-
"at":
|
|
322
|
+
"at": 2200,
|
|
262
323
|
"do": {
|
|
263
324
|
"emit": {
|
|
264
325
|
"event": "TaskCompleted",
|
|
@@ -274,7 +335,7 @@
|
|
|
274
335
|
}
|
|
275
336
|
},
|
|
276
337
|
{
|
|
277
|
-
"at":
|
|
338
|
+
"at": 2300,
|
|
278
339
|
"do": {
|
|
279
340
|
"emit": {
|
|
280
341
|
"event": "SubagentStop",
|
|
@@ -292,7 +353,7 @@
|
|
|
292
353
|
}
|
|
293
354
|
},
|
|
294
355
|
{
|
|
295
|
-
"at":
|
|
356
|
+
"at": 2400,
|
|
296
357
|
"do": {
|
|
297
358
|
"emit": {
|
|
298
359
|
"event": "TaskCompleted",
|
|
@@ -308,7 +369,7 @@
|
|
|
308
369
|
}
|
|
309
370
|
},
|
|
310
371
|
{
|
|
311
|
-
"at":
|
|
372
|
+
"at": 2500,
|
|
312
373
|
"do": {
|
|
313
374
|
"emit": {
|
|
314
375
|
"event": "SubagentStop",
|
|
@@ -326,14 +387,14 @@
|
|
|
326
387
|
}
|
|
327
388
|
},
|
|
328
389
|
{
|
|
329
|
-
"at":
|
|
390
|
+
"at": 2600,
|
|
330
391
|
"do": {
|
|
331
392
|
"statusline": {
|
|
332
393
|
"with": {
|
|
333
394
|
"session_id": "$sessionId",
|
|
334
395
|
"transcript_path": "$transcriptPath",
|
|
335
396
|
"cwd": "$cwd",
|
|
336
|
-
"model": { "id": "
|
|
397
|
+
"model": { "id": "claude-opus-5-5", "display_name": "Opus 5.5" },
|
|
337
398
|
"workspace": { "current_dir": "$cwd" },
|
|
338
399
|
"context_window": {
|
|
339
400
|
"total_input_tokens": 186000,
|
|
@@ -350,7 +411,7 @@
|
|
|
350
411
|
}
|
|
351
412
|
},
|
|
352
413
|
{
|
|
353
|
-
"at":
|
|
414
|
+
"at": 2700,
|
|
354
415
|
"do": {
|
|
355
416
|
"emit": {
|
|
356
417
|
"event": "PreCompact",
|
|
@@ -359,7 +420,7 @@
|
|
|
359
420
|
}
|
|
360
421
|
},
|
|
361
422
|
{
|
|
362
|
-
"at":
|
|
423
|
+
"at": 2800,
|
|
363
424
|
"do": {
|
|
364
425
|
"emit": {
|
|
365
426
|
"event": "PostCompact",
|
|
@@ -372,7 +433,7 @@
|
|
|
372
433
|
}
|
|
373
434
|
},
|
|
374
435
|
{
|
|
375
|
-
"at":
|
|
436
|
+
"at": 2900,
|
|
376
437
|
"do": {
|
|
377
438
|
"emit": {
|
|
378
439
|
"event": "PreToolUse",
|
|
@@ -386,7 +447,7 @@
|
|
|
386
447
|
}
|
|
387
448
|
},
|
|
388
449
|
{
|
|
389
|
-
"at":
|
|
450
|
+
"at": 3100,
|
|
390
451
|
"do": {
|
|
391
452
|
"emit": {
|
|
392
453
|
"event": "PostToolUse",
|
|
@@ -405,7 +466,7 @@
|
|
|
405
466
|
}
|
|
406
467
|
},
|
|
407
468
|
{
|
|
408
|
-
"at":
|
|
469
|
+
"at": 3200,
|
|
409
470
|
"do": {
|
|
410
471
|
"emit": {
|
|
411
472
|
"event": "MessageDisplay",
|
|
@@ -421,7 +482,7 @@
|
|
|
421
482
|
}
|
|
422
483
|
},
|
|
423
484
|
{
|
|
424
|
-
"at":
|
|
485
|
+
"at": 3300,
|
|
425
486
|
"do": {
|
|
426
487
|
"transcript": {
|
|
427
488
|
"record": {
|
|
@@ -434,7 +495,7 @@
|
|
|
434
495
|
"message": {
|
|
435
496
|
"id": "$uuid:message",
|
|
436
497
|
"role": "assistant",
|
|
437
|
-
"model": "
|
|
498
|
+
"model": "claude-opus-5-5",
|
|
438
499
|
"content": [
|
|
439
500
|
{
|
|
440
501
|
"type": "text",
|
|
@@ -447,7 +508,7 @@
|
|
|
447
508
|
}
|
|
448
509
|
},
|
|
449
510
|
{
|
|
450
|
-
"at":
|
|
511
|
+
"at": 3400,
|
|
451
512
|
"do": {
|
|
452
513
|
"emit": {
|
|
453
514
|
"event": "Stop",
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "model-switch",
|
|
3
|
+
"notes": "/model as Claude Code 2.1.308 runs it: PreModelSwitch, PostModelSwitch, then a status line on the new model. A slash command fires no UserPromptSubmit, and the requested alias resolves to the model that serves. One turn follows on the new model; its transcript has the 2.1.308 shapes: a typed prompt row with turnOrigin and turnPosition, and an api-request-blob bookkeeping row (role user, no uuid, no timestamp) that a reader must not project as a message.",
|
|
4
|
+
"steps": [
|
|
5
|
+
{
|
|
6
|
+
"at": 0,
|
|
7
|
+
"do": {
|
|
8
|
+
"emit": {
|
|
9
|
+
"event": "PreModelSwitch",
|
|
10
|
+
"with": {
|
|
11
|
+
"prompt_id": "$uuid:previous-prompt",
|
|
12
|
+
"from_model": "$modelId",
|
|
13
|
+
"to_model": "claude-opus-5-5",
|
|
14
|
+
"requested_model": "opus",
|
|
15
|
+
"source": "command",
|
|
16
|
+
"context_tokens": 3005,
|
|
17
|
+
"prompt_cache_warm": false,
|
|
18
|
+
"cache_ttl": "5m",
|
|
19
|
+
"estimated_cache_write_usd": 0.015,
|
|
20
|
+
"pricing": "catalog"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"at": 100,
|
|
27
|
+
"do": {
|
|
28
|
+
"emit": {
|
|
29
|
+
"event": "PostModelSwitch",
|
|
30
|
+
"with": {
|
|
31
|
+
"prompt_id": "$uuid:previous-prompt",
|
|
32
|
+
"from_model": "$modelId",
|
|
33
|
+
"to_model": "claude-opus-5-5",
|
|
34
|
+
"requested_model": "opus",
|
|
35
|
+
"source": "command",
|
|
36
|
+
"context_tokens": 3005,
|
|
37
|
+
"prompt_cache_warm": false,
|
|
38
|
+
"cache_ttl": "5m",
|
|
39
|
+
"estimated_cache_write_usd": 0.015,
|
|
40
|
+
"pricing": "catalog"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"at": 200,
|
|
47
|
+
"do": {
|
|
48
|
+
"statusline": {
|
|
49
|
+
"with": {
|
|
50
|
+
"session_id": "$sessionId",
|
|
51
|
+
"transcript_path": "$transcriptPath",
|
|
52
|
+
"cwd": "$cwd",
|
|
53
|
+
"model": { "id": "claude-opus-5-5", "display_name": "Opus 5.5" },
|
|
54
|
+
"effort": { "level": "medium" },
|
|
55
|
+
"workspace": { "current_dir": "$cwd" },
|
|
56
|
+
"context_window": {
|
|
57
|
+
"total_input_tokens": 3005,
|
|
58
|
+
"context_window_size": "$capacityTokens",
|
|
59
|
+
"used_percentage": 1.5,
|
|
60
|
+
"current_usage": {
|
|
61
|
+
"input_tokens": 5,
|
|
62
|
+
"cache_creation_input_tokens": 0,
|
|
63
|
+
"cache_read_input_tokens": 3000
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"at": 300,
|
|
72
|
+
"do": {
|
|
73
|
+
"emit": {
|
|
74
|
+
"event": "UserPromptSubmit",
|
|
75
|
+
"with": {
|
|
76
|
+
"prompt": "$stimulus.text",
|
|
77
|
+
"prompt_id": "$uuid:prompt",
|
|
78
|
+
"session_title": "$sessionTitle",
|
|
79
|
+
"permission_mode": "$permissionMode"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"at": 340,
|
|
86
|
+
"do": {
|
|
87
|
+
"transcript": {
|
|
88
|
+
"record": {
|
|
89
|
+
"type": "user",
|
|
90
|
+
"uuid": "$uuid:user",
|
|
91
|
+
"parentUuid": null,
|
|
92
|
+
"sessionId": "$sessionId",
|
|
93
|
+
"timestamp": "$now",
|
|
94
|
+
"cwd": "$cwd",
|
|
95
|
+
"version": "$vendorVersion",
|
|
96
|
+
"promptId": "$uuid:prompt",
|
|
97
|
+
"promptSource": "typed",
|
|
98
|
+
"origin": { "kind": "human" },
|
|
99
|
+
"turnOrigin": "human",
|
|
100
|
+
"turnPosition": { "promptIndex": 1, "turnIndex": 1 },
|
|
101
|
+
"message": { "role": "user", "content": "$stimulus.text" }
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"at": 370,
|
|
108
|
+
"do": {
|
|
109
|
+
"transcript": {
|
|
110
|
+
"record": {
|
|
111
|
+
"type": "api-request-blob",
|
|
112
|
+
"hash": "5e1ac0de7a9b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d",
|
|
113
|
+
"sessionId": "$sessionId",
|
|
114
|
+
"message": { "role": "user", "content": [{ "type": "text", "text": "$stimulus.text" }] }
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"at": 400,
|
|
121
|
+
"do": {
|
|
122
|
+
"emit": {
|
|
123
|
+
"event": "MessageDisplay",
|
|
124
|
+
"with": {
|
|
125
|
+
"prompt_id": "$uuid:prompt",
|
|
126
|
+
"turn_id": "$uuid:turn",
|
|
127
|
+
"message_id": "$uuid:message",
|
|
128
|
+
"index": 0,
|
|
129
|
+
"final": true,
|
|
130
|
+
"delta": "Answering on Opus 5.5."
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"at": 500,
|
|
137
|
+
"do": {
|
|
138
|
+
"transcript": {
|
|
139
|
+
"record": {
|
|
140
|
+
"type": "assistant",
|
|
141
|
+
"uuid": "$uuid:assistant",
|
|
142
|
+
"sessionId": "$sessionId",
|
|
143
|
+
"timestamp": "$now",
|
|
144
|
+
"cwd": "$cwd",
|
|
145
|
+
"version": "$vendorVersion",
|
|
146
|
+
"message": {
|
|
147
|
+
"id": "$uuid:message",
|
|
148
|
+
"role": "assistant",
|
|
149
|
+
"model": "claude-opus-5-5",
|
|
150
|
+
"content": [{ "type": "text", "text": "Answering on Opus 5.5." }]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"at": 600,
|
|
158
|
+
"do": {
|
|
159
|
+
"emit": {
|
|
160
|
+
"event": "Stop",
|
|
161
|
+
"with": {
|
|
162
|
+
"prompt_id": "$uuid:prompt",
|
|
163
|
+
"last_assistant_message": "Answering on Opus 5.5.",
|
|
164
|
+
"stop_hook_active": false,
|
|
165
|
+
"effort": { "level": "medium" }
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
@@ -107,6 +107,11 @@
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
|
|
110
|
+
"thread/turns/list": {
|
|
111
|
+
"$comment": "The paginated history the observer reads after `thread/resume {excludeTurns: true}` (0.164.0 census history-hydration; ASM binding v2/ThreadTurnsListResponse.json). Like thread/read's `turns: []`, it holds no turns: the imposter hands a resumed client its history by replaying the stored session on `thread/resume` (`restore`).",
|
|
112
|
+
"result": { "data": [], "nextCursor": null, "backwardsCursor": null }
|
|
113
|
+
},
|
|
114
|
+
|
|
110
115
|
"thread/inject_items": {
|
|
111
116
|
"result": {}
|
|
112
117
|
},
|
|
@@ -2,15 +2,42 @@
|
|
|
2
2
|
"name": "approval-turn",
|
|
3
3
|
"reply": "imposter: approved",
|
|
4
4
|
"ops": [
|
|
5
|
-
{ "op": "turn.start", "with": { "text": "$stimulus.text" } },
|
|
6
|
-
{ "op": "tool.start", "with": { "toolId": "$uuid:tool", "command": "echo ok" } },
|
|
7
|
-
{ "op": "permission.ask", "with": { "toolId": "$uuid:tool", "command": "echo ok" } },
|
|
8
|
-
{ "op": "tool.end", "with": { "toolId": "$uuid:tool", "command": "echo ok", "output": "ok" } },
|
|
9
|
-
{ "op": "assistant.delta", "with": { "text": "$reply" } },
|
|
10
|
-
{ "op": "turn.end" },
|
|
11
5
|
{
|
|
12
|
-
"op": "
|
|
13
|
-
"with": {
|
|
6
|
+
"op": "turn.start",
|
|
7
|
+
"with": {
|
|
8
|
+
"text": "$stimulus.text"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"op": "tool.start",
|
|
13
|
+
"with": {
|
|
14
|
+
"toolId": "$uuid:tool",
|
|
15
|
+
"command": "echo ok > imposter-approval.txt"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"op": "permission.ask",
|
|
20
|
+
"with": {
|
|
21
|
+
"toolId": "$uuid:tool",
|
|
22
|
+
"command": "echo ok > imposter-approval.txt"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"op": "tool.end",
|
|
27
|
+
"with": {
|
|
28
|
+
"toolId": "$uuid:tool",
|
|
29
|
+
"command": "echo ok > imposter-approval.txt",
|
|
30
|
+
"output": "ok"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"op": "assistant.delta",
|
|
35
|
+
"with": {
|
|
36
|
+
"text": "$reply"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"op": "turn.end"
|
|
14
41
|
}
|
|
15
42
|
]
|
|
16
43
|
}
|
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
"name": "happy-turn",
|
|
3
3
|
"reply": "imposter: ok",
|
|
4
4
|
"ops": [
|
|
5
|
-
{ "op": "turn.start", "with": { "text": "$stimulus.text" } },
|
|
6
|
-
{ "op": "assistant.delta", "with": { "text": "$reply" } },
|
|
7
|
-
{ "op": "turn.end" },
|
|
8
5
|
{
|
|
9
|
-
"op": "
|
|
10
|
-
"with": {
|
|
6
|
+
"op": "turn.start",
|
|
7
|
+
"with": {
|
|
8
|
+
"text": "$stimulus.text"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"op": "assistant.delta",
|
|
13
|
+
"with": {
|
|
14
|
+
"text": "$reply"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"op": "turn.end"
|
|
11
19
|
}
|
|
12
20
|
]
|
|
13
21
|
}
|