@vibefield/puppeteer-imposter 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/bin/ai.mjs +17 -0
- package/dist/cli/argv.d.ts +40 -0
- package/dist/cli/argv.d.ts.map +1 -0
- package/dist/cli/argv.js +62 -0
- package/dist/cli/argv.js.map +1 -0
- package/dist/cli/http-persona.d.ts +15 -0
- package/dist/cli/http-persona.d.ts.map +1 -0
- package/dist/cli/http-persona.js +216 -0
- package/dist/cli/http-persona.js.map +1 -0
- package/dist/cli/main.d.ts +11 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +671 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/prompt-line.d.ts +27 -0
- package/dist/cli/prompt-line.d.ts.map +1 -0
- package/dist/cli/prompt-line.js +93 -0
- package/dist/cli/prompt-line.js.map +1 -0
- package/dist/control/client.d.ts +51 -0
- package/dist/control/client.d.ts.map +1 -0
- package/dist/control/client.js +206 -0
- package/dist/control/client.js.map +1 -0
- package/dist/control/index.d.ts +10 -0
- package/dist/control/index.d.ts.map +1 -0
- package/dist/control/index.js +10 -0
- package/dist/control/index.js.map +1 -0
- package/dist/control/peer.d.ts +42 -0
- package/dist/control/peer.d.ts.map +1 -0
- package/dist/control/peer.js +174 -0
- package/dist/control/peer.js.map +1 -0
- package/dist/control/protocol.d.ts +207 -0
- package/dist/control/protocol.d.ts.map +1 -0
- package/dist/control/protocol.js +535 -0
- package/dist/control/protocol.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/persona/launch.d.ts +7 -0
- package/dist/persona/launch.d.ts.map +1 -0
- package/dist/persona/launch.js +26 -0
- package/dist/persona/launch.js.map +1 -0
- package/dist/persona/load.d.ts +28 -0
- package/dist/persona/load.d.ts.map +1 -0
- package/dist/persona/load.js +705 -0
- package/dist/persona/load.js.map +1 -0
- package/dist/persona/session-id.d.ts +4 -0
- package/dist/persona/session-id.d.ts.map +1 -0
- package/dist/persona/session-id.js +12 -0
- package/dist/persona/session-id.js.map +1 -0
- package/dist/persona/types.d.ts +265 -0
- package/dist/persona/types.d.ts.map +1 -0
- package/dist/persona/types.js +38 -0
- package/dist/persona/types.js.map +1 -0
- package/dist/session/channels/hook.d.ts +31 -0
- package/dist/session/channels/hook.d.ts.map +1 -0
- package/dist/session/channels/hook.js +114 -0
- package/dist/session/channels/hook.js.map +1 -0
- package/dist/session/channels/http-sse.d.ts +67 -0
- package/dist/session/channels/http-sse.d.ts.map +1 -0
- package/dist/session/channels/http-sse.js +212 -0
- package/dist/session/channels/http-sse.js.map +1 -0
- package/dist/session/channels/jsonrpc.d.ts +56 -0
- package/dist/session/channels/jsonrpc.d.ts.map +1 -0
- package/dist/session/channels/jsonrpc.js +196 -0
- package/dist/session/channels/jsonrpc.js.map +1 -0
- package/dist/session/channels/leader-ipc.d.ts +27 -0
- package/dist/session/channels/leader-ipc.d.ts.map +1 -0
- package/dist/session/channels/leader-ipc.js +314 -0
- package/dist/session/channels/leader-ipc.js.map +1 -0
- package/dist/session/channels/native-store.d.ts +31 -0
- package/dist/session/channels/native-store.d.ts.map +1 -0
- package/dist/session/channels/native-store.js +275 -0
- package/dist/session/channels/native-store.js.map +1 -0
- package/dist/session/channels/statusline.d.ts +20 -0
- package/dist/session/channels/statusline.d.ts.map +1 -0
- package/dist/session/channels/statusline.js +48 -0
- package/dist/session/channels/statusline.js.map +1 -0
- package/dist/session/channels/terminal.d.ts +27 -0
- package/dist/session/channels/terminal.d.ts.map +1 -0
- package/dist/session/channels/terminal.js +108 -0
- package/dist/session/channels/terminal.js.map +1 -0
- package/dist/session/channels/transcript.d.ts +16 -0
- package/dist/session/channels/transcript.d.ts.map +1 -0
- package/dist/session/channels/transcript.js +24 -0
- package/dist/session/channels/transcript.js.map +1 -0
- package/dist/session/channels/ws-unix.d.ts +57 -0
- package/dist/session/channels/ws-unix.d.ts.map +1 -0
- package/dist/session/channels/ws-unix.js +396 -0
- package/dist/session/channels/ws-unix.js.map +1 -0
- package/dist/session/http-session-server.d.ts +31 -0
- package/dist/session/http-session-server.d.ts.map +1 -0
- package/dist/session/http-session-server.js +508 -0
- package/dist/session/http-session-server.js.map +1 -0
- package/dist/session/scenario-driver.d.ts +105 -0
- package/dist/session/scenario-driver.d.ts.map +1 -0
- package/dist/session/scenario-driver.js +211 -0
- package/dist/session/scenario-driver.js.map +1 -0
- package/dist/session/scenario.d.ts +119 -0
- package/dist/session/scenario.d.ts.map +1 -0
- package/dist/session/scenario.js +299 -0
- package/dist/session/scenario.js.map +1 -0
- package/dist/session/serve.d.ts +124 -0
- package/dist/session/serve.d.ts.map +1 -0
- package/dist/session/serve.js +136 -0
- package/dist/session/serve.js.map +1 -0
- package/dist/session/session.d.ts +125 -0
- package/dist/session/session.d.ts.map +1 -0
- package/dist/session/session.js +781 -0
- package/dist/session/session.js.map +1 -0
- package/dist/session/template.d.ts +35 -0
- package/dist/session/template.d.ts.map +1 -0
- package/dist/session/template.js +133 -0
- package/dist/session/template.js.map +1 -0
- package/dist/session/timeline.d.ts +81 -0
- package/dist/session/timeline.d.ts.map +1 -0
- package/dist/session/timeline.js +155 -0
- package/dist/session/timeline.js.map +1 -0
- package/dist/tui/app.d.ts +30 -0
- package/dist/tui/app.d.ts.map +1 -0
- package/dist/tui/app.js +72 -0
- package/dist/tui/app.js.map +1 -0
- package/dist/tui/mount.d.ts +37 -0
- package/dist/tui/mount.d.ts.map +1 -0
- package/dist/tui/mount.js +88 -0
- package/dist/tui/mount.js.map +1 -0
- package/dist/tui/store.d.ts +38 -0
- package/dist/tui/store.d.ts.map +1 -0
- package/dist/tui/store.js +56 -0
- package/dist/tui/store.js.map +1 -0
- package/dist/tui/theme.d.ts +40 -0
- package/dist/tui/theme.d.ts.map +1 -0
- package/dist/tui/theme.js +54 -0
- package/dist/tui/theme.js.map +1 -0
- package/package.json +67 -3
- package/personas/antigravity/behavior/happy-turn.json +9 -0
- package/personas/antigravity/ops.json +14 -0
- package/personas/antigravity/persona.json +15 -0
- package/personas/antigravity/runflows.json +6 -0
- package/personas/antigravity/scenarios/happy-turn.json +25 -0
- package/personas/claude/behavior/happy-turn.json +19 -0
- package/personas/claude/ops.json +128 -0
- package/personas/claude/persona.json +29 -0
- package/personas/claude/runflows.json +45 -0
- package/personas/claude/scenarios/channel-disconnect.json +19 -0
- package/personas/claude/scenarios/crash-mid-turn.json +42 -0
- package/personas/claude/scenarios/cross-layer-implementation.json +488 -0
- package/personas/claude/scenarios/deep-research.json +494 -0
- package/personas/claude/scenarios/duplicate-out-of-order.json +57 -0
- package/personas/claude/scenarios/flood.json +11 -0
- package/personas/claude/scenarios/happy-turn.json +57 -0
- package/personas/claude/scenarios/incident-investigation.json +465 -0
- package/personas/claude/scenarios/late-after-exit.json +27 -0
- package/personas/claude/scenarios/permission-allow.json +55 -0
- package/personas/claude/scenarios/permission-deny.json +71 -0
- package/personas/claude/scenarios/token-usage-refresh.json +33 -0
- package/personas/claude/scenarios/unknown-event.json +14 -0
- package/personas/codex/behavior/approval-turn.json +15 -0
- package/personas/codex/behavior/happy-turn.json +10 -0
- package/personas/codex/ops.json +159 -0
- package/personas/codex/persona.json +36 -0
- package/personas/codex/runflows.json +45 -0
- package/personas/codex/scenarios/channel-disconnect.json +31 -0
- package/personas/codex/scenarios/crash-mid-turn.json +30 -0
- package/personas/codex/scenarios/cross-layer-implementation.json +725 -0
- package/personas/codex/scenarios/deep-research.json +684 -0
- package/personas/codex/scenarios/duplicate-out-of-order.json +87 -0
- package/personas/codex/scenarios/flood.json +22 -0
- package/personas/codex/scenarios/happy-turn.json +81 -0
- package/personas/codex/scenarios/incident-investigation.json +695 -0
- package/personas/codex/scenarios/late-after-exit.json +59 -0
- package/personas/codex/scenarios/permission-allow.json +110 -0
- package/personas/codex/scenarios/permission-deny.json +83 -0
- package/personas/codex/scenarios/token-usage-refresh.json +49 -0
- package/personas/codex/scenarios/unknown-event.json +17 -0
- package/personas/codex/serve.json +124 -0
- package/personas/copilot/behavior/happy-turn.json +9 -0
- package/personas/copilot/ops.json +28 -0
- package/personas/copilot/persona.json +17 -0
- package/personas/copilot/runflows.json +6 -0
- package/personas/copilot/scenarios/happy-turn.json +50 -0
- package/personas/grok/behavior/approval-turn.json +16 -0
- package/personas/grok/behavior/happy-turn.json +13 -0
- package/personas/grok/ops.json +330 -0
- package/personas/grok/persona.json +24 -0
- package/personas/grok/runflows.json +25 -0
- package/personas/grok/scenarios/agent-team-lifecycle.json +74 -0
- package/personas/grok/scenarios/compact-lifecycle.json +61 -0
- package/personas/grok/serve.json +57 -0
- package/personas/hermes/behavior/approval-turn.json +11 -0
- package/personas/hermes/behavior/happy-turn.json +9 -0
- package/personas/hermes/ops.json +227 -0
- package/personas/hermes/persona.json +15 -0
- package/personas/hermes/runflows.json +50 -0
- package/personas/hermes/scenarios/happy-turn.json +25 -0
- package/personas/hermes/scenarios/late-after-exit.json +21 -0
- package/personas/hermes/scenarios/permission-deny.json +54 -0
- package/personas/hermes/scenarios/unknown-event.json +14 -0
- package/personas/hermes/serve.json +54 -0
- package/personas/kimi/behavior/happy-turn.json +9 -0
- package/personas/kimi/ops.json +357 -0
- package/personas/kimi/persona.json +23 -0
- package/personas/kimi/runflows.json +84 -0
- package/personas/kimi/scenarios/compaction-lifecycle.json +20 -0
- package/personas/kimi/scenarios/duplicate-out-of-order.json +60 -0
- package/personas/kimi/scenarios/happy-turn.json +66 -0
- package/personas/kimi/scenarios/late-after-end.json +28 -0
- package/personas/kimi/scenarios/tool-failure.json +43 -0
- package/personas/kimi/scenarios/tool-success.json +57 -0
- package/personas/kimi/scenarios/unknown-record.json +15 -0
- package/personas/opencode/README.md +32 -0
- package/personas/opencode/behavior/happy-turn.json +9 -0
- package/personas/opencode/behavior/permission-turn.json +18 -0
- package/personas/opencode/http-serve.json +72 -0
- package/personas/opencode/ops.json +250 -0
- package/personas/opencode/persona.json +22 -0
- package/personas/opencode/runflows.json +45 -0
- package/personas/opencode/scenarios/duplicate-event.json +27 -0
- package/personas/opencode/scenarios/failure.json +30 -0
- package/personas/opencode/scenarios/happy-turn.json +86 -0
- package/personas/opencode/scenarios/late-event.json +29 -0
- package/personas/opencode/scenarios/out-of-order.json +42 -0
- package/personas/opencode/scenarios/permission-allow.json +31 -0
- package/personas/opencode/scenarios/permission-deny.json +31 -0
- package/personas/opencode/scenarios/question-reject.json +37 -0
- package/personas/opencode/scenarios/question-reply.json +38 -0
- package/personas/opencode/scenarios/reconnect.json +22 -0
- package/personas/opencode/scenarios/resume.json +30 -0
- package/personas/opencode/scenarios/unknown-event.json +15 -0
- package/personas/pi/behavior/happy-turn.json +9 -0
- package/personas/pi/ops.json +19 -0
- package/personas/pi/persona.json +16 -0
- package/personas/pi/runflows.json +6 -0
- package/personas/pi/scenarios/happy-turn.json +52 -0
- package/personas/synthetic/behavior/happy-turn.json +12 -0
- package/personas/synthetic/groundtruth.html +164 -0
- package/personas/synthetic/groundtruth.json +380 -0
- package/personas/synthetic/model/behavior.json +27 -0
- package/personas/synthetic/model/channels.json +16 -0
- package/personas/synthetic/model/detection.json +13 -0
- package/personas/synthetic/model/events/agent.action.json +16 -0
- package/personas/synthetic/model/events/agent.boot.json +16 -0
- package/personas/synthetic/model/events/agent.halt.json +16 -0
- package/personas/synthetic/model/events/agent.prompt.json +16 -0
- package/personas/synthetic/model/events/agent.reply.json +16 -0
- package/personas/synthetic/model/events/agent.settled.json +16 -0
- package/personas/synthetic/model/manifest.json +7 -0
- package/personas/synthetic/ops.json +18 -0
- package/personas/synthetic/persona.json +11 -0
- package/README.md +0 -3
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "deep-research",
|
|
3
|
+
"notes": "A long research turn with parallel teammates, five tool families, automatic compaction, and post-compaction verification.",
|
|
4
|
+
"steps": [
|
|
5
|
+
{
|
|
6
|
+
"at": 0,
|
|
7
|
+
"do": {
|
|
8
|
+
"emit": {
|
|
9
|
+
"event": "UserPromptSubmit",
|
|
10
|
+
"with": {
|
|
11
|
+
"prompt": "$stimulus.text",
|
|
12
|
+
"prompt_id": "$uuid:prompt",
|
|
13
|
+
"session_title": "$sessionTitle",
|
|
14
|
+
"permission_mode": "$permissionMode"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"at": 100,
|
|
21
|
+
"do": {
|
|
22
|
+
"emit": {
|
|
23
|
+
"event": "MessageDisplay",
|
|
24
|
+
"with": {
|
|
25
|
+
"prompt_id": "$uuid:prompt",
|
|
26
|
+
"turn_id": "$uuid:turn",
|
|
27
|
+
"message_id": "$uuid:planning-message",
|
|
28
|
+
"index": 0,
|
|
29
|
+
"final": true,
|
|
30
|
+
"delta": "I’ll split the evidence review across two researchers, then verify and synthesize their findings."
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"at": 200,
|
|
37
|
+
"do": {
|
|
38
|
+
"emit": {
|
|
39
|
+
"event": "TaskCreated",
|
|
40
|
+
"with": {
|
|
41
|
+
"prompt_id": "$uuid:prompt",
|
|
42
|
+
"task_id": "research-primary-sources",
|
|
43
|
+
"task_subject": "Review primary sources",
|
|
44
|
+
"task_description": "Collect current first-party evidence and note publication dates.",
|
|
45
|
+
"team_name": "research-team",
|
|
46
|
+
"teammate_name": "sources"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"at": 300,
|
|
53
|
+
"do": {
|
|
54
|
+
"emit": {
|
|
55
|
+
"event": "TaskCreated",
|
|
56
|
+
"with": {
|
|
57
|
+
"prompt_id": "$uuid:prompt",
|
|
58
|
+
"task_id": "research-local-evidence",
|
|
59
|
+
"task_subject": "Inspect local evidence",
|
|
60
|
+
"task_description": "Trace the repository and extract implementation constraints.",
|
|
61
|
+
"team_name": "research-team",
|
|
62
|
+
"teammate_name": "analyst"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"at": 400,
|
|
69
|
+
"do": {
|
|
70
|
+
"emit": {
|
|
71
|
+
"event": "SubagentStart",
|
|
72
|
+
"with": { "prompt_id": "$uuid:prompt", "agent_id": "research-sources", "agent_type": "researcher" }
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"at": 500,
|
|
78
|
+
"do": {
|
|
79
|
+
"emit": {
|
|
80
|
+
"event": "SubagentStart",
|
|
81
|
+
"with": { "prompt_id": "$uuid:prompt", "agent_id": "research-analyst", "agent_type": "Explore" }
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"at": 600,
|
|
87
|
+
"do": {
|
|
88
|
+
"emit": {
|
|
89
|
+
"event": "PreToolUse",
|
|
90
|
+
"with": {
|
|
91
|
+
"prompt_id": "$uuid:prompt",
|
|
92
|
+
"agent_id": "research-sources",
|
|
93
|
+
"agent_type": "researcher",
|
|
94
|
+
"tool_name": "WebSearch",
|
|
95
|
+
"tool_input": { "query": "current primary sources for $stimulus.text" },
|
|
96
|
+
"tool_use_id": "$uuid:web-search"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"at": 800,
|
|
103
|
+
"do": {
|
|
104
|
+
"emit": {
|
|
105
|
+
"event": "PostToolUse",
|
|
106
|
+
"with": {
|
|
107
|
+
"prompt_id": "$uuid:prompt",
|
|
108
|
+
"agent_id": "research-sources",
|
|
109
|
+
"agent_type": "researcher",
|
|
110
|
+
"tool_name": "WebSearch",
|
|
111
|
+
"tool_input": { "query": "current primary sources for $stimulus.text" },
|
|
112
|
+
"tool_response": { "results": ["official specification", "maintainer documentation", "release notes"] },
|
|
113
|
+
"tool_use_id": "$uuid:web-search",
|
|
114
|
+
"duration_ms": 180
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"at": 900,
|
|
121
|
+
"do": {
|
|
122
|
+
"emit": {
|
|
123
|
+
"event": "PreToolUse",
|
|
124
|
+
"with": {
|
|
125
|
+
"prompt_id": "$uuid:prompt",
|
|
126
|
+
"agent_id": "research-sources",
|
|
127
|
+
"agent_type": "researcher",
|
|
128
|
+
"tool_name": "WebFetch",
|
|
129
|
+
"tool_input": { "url": "https://example.com/primary-source" },
|
|
130
|
+
"tool_use_id": "$uuid:web-fetch"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"at": 1100,
|
|
137
|
+
"do": {
|
|
138
|
+
"emit": {
|
|
139
|
+
"event": "PostToolUse",
|
|
140
|
+
"with": {
|
|
141
|
+
"prompt_id": "$uuid:prompt",
|
|
142
|
+
"agent_id": "research-sources",
|
|
143
|
+
"agent_type": "researcher",
|
|
144
|
+
"tool_name": "WebFetch",
|
|
145
|
+
"tool_input": { "url": "https://example.com/primary-source" },
|
|
146
|
+
"tool_response": {
|
|
147
|
+
"status": 200,
|
|
148
|
+
"summary": "Primary source confirms the current lifecycle and constraints."
|
|
149
|
+
},
|
|
150
|
+
"tool_use_id": "$uuid:web-fetch",
|
|
151
|
+
"duration_ms": 190
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"at": 1200,
|
|
158
|
+
"do": {
|
|
159
|
+
"emit": {
|
|
160
|
+
"event": "PreToolUse",
|
|
161
|
+
"with": {
|
|
162
|
+
"prompt_id": "$uuid:prompt",
|
|
163
|
+
"agent_id": "research-analyst",
|
|
164
|
+
"agent_type": "Explore",
|
|
165
|
+
"tool_name": "Read",
|
|
166
|
+
"tool_input": { "file_path": "$cwd" },
|
|
167
|
+
"tool_use_id": "$uuid:read"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"at": 1400,
|
|
174
|
+
"do": {
|
|
175
|
+
"emit": {
|
|
176
|
+
"event": "PostToolUse",
|
|
177
|
+
"with": {
|
|
178
|
+
"prompt_id": "$uuid:prompt",
|
|
179
|
+
"agent_id": "research-analyst",
|
|
180
|
+
"agent_type": "Explore",
|
|
181
|
+
"tool_name": "Read",
|
|
182
|
+
"tool_input": { "file_path": "$cwd" },
|
|
183
|
+
"tool_response": {
|
|
184
|
+
"files": ["README.md", "docs/archive/IMPOSTER.md", "packages/imposter/src/session/scenario.ts"]
|
|
185
|
+
},
|
|
186
|
+
"tool_use_id": "$uuid:read",
|
|
187
|
+
"duration_ms": 175
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"at": 1500,
|
|
194
|
+
"do": {
|
|
195
|
+
"emit": {
|
|
196
|
+
"event": "PreToolUse",
|
|
197
|
+
"with": {
|
|
198
|
+
"prompt_id": "$uuid:prompt",
|
|
199
|
+
"tool_name": "Bash",
|
|
200
|
+
"tool_input": { "command": "rg -n 'scenario|compaction|subagent' packages draft" },
|
|
201
|
+
"tool_use_id": "$uuid:inventory"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"at": 1700,
|
|
208
|
+
"do": {
|
|
209
|
+
"emit": {
|
|
210
|
+
"event": "PostToolUse",
|
|
211
|
+
"with": {
|
|
212
|
+
"prompt_id": "$uuid:prompt",
|
|
213
|
+
"tool_name": "Bash",
|
|
214
|
+
"tool_input": { "command": "rg -n 'scenario|compaction|subagent' packages draft" },
|
|
215
|
+
"tool_response": { "output": "Found scenario catalogs, delegation hooks, and compaction events." },
|
|
216
|
+
"tool_use_id": "$uuid:inventory",
|
|
217
|
+
"duration_ms": 165
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"at": 1800,
|
|
224
|
+
"do": {
|
|
225
|
+
"emit": {
|
|
226
|
+
"event": "PostToolBatch",
|
|
227
|
+
"with": {
|
|
228
|
+
"prompt_id": "$uuid:prompt",
|
|
229
|
+
"tool_calls": [
|
|
230
|
+
{
|
|
231
|
+
"tool_name": "WebSearch",
|
|
232
|
+
"tool_use_id": "$uuid:web-search",
|
|
233
|
+
"tool_input": {},
|
|
234
|
+
"tool_response": "search completed"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"tool_name": "WebFetch",
|
|
238
|
+
"tool_use_id": "$uuid:web-fetch",
|
|
239
|
+
"tool_input": {},
|
|
240
|
+
"tool_response": "fetch completed"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"tool_name": "Read",
|
|
244
|
+
"tool_use_id": "$uuid:read",
|
|
245
|
+
"tool_input": {},
|
|
246
|
+
"tool_response": "read completed"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"tool_name": "Bash",
|
|
250
|
+
"tool_use_id": "$uuid:inventory",
|
|
251
|
+
"tool_input": {},
|
|
252
|
+
"tool_response": "command completed"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"at": 1900,
|
|
261
|
+
"do": {
|
|
262
|
+
"emit": {
|
|
263
|
+
"event": "TaskCompleted",
|
|
264
|
+
"with": {
|
|
265
|
+
"prompt_id": "$uuid:prompt",
|
|
266
|
+
"task_id": "research-primary-sources",
|
|
267
|
+
"task_subject": "Review primary sources",
|
|
268
|
+
"task_description": "Collected and cross-checked first-party evidence.",
|
|
269
|
+
"team_name": "research-team",
|
|
270
|
+
"teammate_name": "sources"
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"at": 2000,
|
|
277
|
+
"do": {
|
|
278
|
+
"emit": {
|
|
279
|
+
"event": "TeammateIdle",
|
|
280
|
+
"with": { "prompt_id": "$uuid:prompt", "team_name": "research-team", "teammate_name": "sources" }
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"at": 2100,
|
|
286
|
+
"do": {
|
|
287
|
+
"emit": {
|
|
288
|
+
"event": "SubagentStop",
|
|
289
|
+
"with": {
|
|
290
|
+
"prompt_id": "$uuid:prompt",
|
|
291
|
+
"agent_id": "research-sources",
|
|
292
|
+
"agent_type": "researcher",
|
|
293
|
+
"agent_transcript_path": "/tmp/research-sources.jsonl",
|
|
294
|
+
"last_assistant_message": "Primary-source findings delivered with dates and caveats.",
|
|
295
|
+
"stop_hook_active": false,
|
|
296
|
+
"background_tasks": [],
|
|
297
|
+
"session_crons": []
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"at": 2200,
|
|
304
|
+
"do": {
|
|
305
|
+
"emit": {
|
|
306
|
+
"event": "TaskCompleted",
|
|
307
|
+
"with": {
|
|
308
|
+
"prompt_id": "$uuid:prompt",
|
|
309
|
+
"task_id": "research-local-evidence",
|
|
310
|
+
"task_subject": "Inspect local evidence",
|
|
311
|
+
"task_description": "Mapped implementation seams and existing scenario limitations.",
|
|
312
|
+
"team_name": "research-team",
|
|
313
|
+
"teammate_name": "analyst"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"at": 2300,
|
|
320
|
+
"do": {
|
|
321
|
+
"emit": {
|
|
322
|
+
"event": "TeammateIdle",
|
|
323
|
+
"with": { "prompt_id": "$uuid:prompt", "team_name": "research-team", "teammate_name": "analyst" }
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"at": 2400,
|
|
329
|
+
"do": {
|
|
330
|
+
"emit": {
|
|
331
|
+
"event": "SubagentStop",
|
|
332
|
+
"with": {
|
|
333
|
+
"prompt_id": "$uuid:prompt",
|
|
334
|
+
"agent_id": "research-analyst",
|
|
335
|
+
"agent_type": "Explore",
|
|
336
|
+
"agent_transcript_path": "/tmp/research-analyst.jsonl",
|
|
337
|
+
"last_assistant_message": "Repository map and constraints delivered.",
|
|
338
|
+
"stop_hook_active": false,
|
|
339
|
+
"background_tasks": [],
|
|
340
|
+
"session_crons": []
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"at": 2500,
|
|
347
|
+
"do": {
|
|
348
|
+
"statusline": {
|
|
349
|
+
"with": {
|
|
350
|
+
"session_id": "$sessionId",
|
|
351
|
+
"transcript_path": "$transcriptPath",
|
|
352
|
+
"cwd": "$cwd",
|
|
353
|
+
"model": { "id": "$modelId", "display_name": "$modelId" },
|
|
354
|
+
"workspace": { "current_dir": "$cwd" },
|
|
355
|
+
"context_window": {
|
|
356
|
+
"total_input_tokens": 188000,
|
|
357
|
+
"context_window_size": 200000,
|
|
358
|
+
"used_percentage": 94,
|
|
359
|
+
"current_usage": {
|
|
360
|
+
"input_tokens": 188000,
|
|
361
|
+
"cache_creation_input_tokens": 0,
|
|
362
|
+
"cache_read_input_tokens": 42000
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
"rate_limits": { "five_hour": { "used_percentage": 38, "resets_at": "$now" } }
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"at": 2600,
|
|
372
|
+
"do": {
|
|
373
|
+
"emit": {
|
|
374
|
+
"event": "PreCompact",
|
|
375
|
+
"with": { "prompt_id": "$uuid:prompt", "trigger": "auto", "custom_instructions": "" }
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"at": 2700,
|
|
381
|
+
"do": {
|
|
382
|
+
"emit": {
|
|
383
|
+
"event": "PostCompact",
|
|
384
|
+
"with": {
|
|
385
|
+
"prompt_id": "$uuid:prompt",
|
|
386
|
+
"trigger": "auto",
|
|
387
|
+
"compact_summary": "Research goal, source provenance, teammate findings, disagreements, and remaining verification steps were preserved."
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"at": 2800,
|
|
394
|
+
"do": {
|
|
395
|
+
"emit": {
|
|
396
|
+
"event": "InstructionsLoaded",
|
|
397
|
+
"with": {
|
|
398
|
+
"prompt_id": "$uuid:prompt",
|
|
399
|
+
"file_path": "$claudeMdPath",
|
|
400
|
+
"memory_type": "User",
|
|
401
|
+
"load_reason": "compact"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"at": 2900,
|
|
408
|
+
"do": {
|
|
409
|
+
"emit": {
|
|
410
|
+
"event": "PreToolUse",
|
|
411
|
+
"with": {
|
|
412
|
+
"prompt_id": "$uuid:prompt",
|
|
413
|
+
"tool_name": "Grep",
|
|
414
|
+
"tool_input": { "pattern": "source|claim|caveat", "path": "$cwd" },
|
|
415
|
+
"tool_use_id": "$uuid:verify"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"at": 3100,
|
|
422
|
+
"do": {
|
|
423
|
+
"emit": {
|
|
424
|
+
"event": "PostToolUse",
|
|
425
|
+
"with": {
|
|
426
|
+
"prompt_id": "$uuid:prompt",
|
|
427
|
+
"tool_name": "Grep",
|
|
428
|
+
"tool_input": { "pattern": "source|claim|caveat", "path": "$cwd" },
|
|
429
|
+
"tool_response": { "matches": 12, "output": "Every material claim has a source or an explicit caveat." },
|
|
430
|
+
"tool_use_id": "$uuid:verify",
|
|
431
|
+
"duration_ms": 150
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"at": 3200,
|
|
438
|
+
"do": {
|
|
439
|
+
"emit": {
|
|
440
|
+
"event": "MessageDisplay",
|
|
441
|
+
"with": {
|
|
442
|
+
"prompt_id": "$uuid:prompt",
|
|
443
|
+
"turn_id": "$uuid:turn",
|
|
444
|
+
"message_id": "$uuid:final-message",
|
|
445
|
+
"index": 0,
|
|
446
|
+
"final": true,
|
|
447
|
+
"delta": "The evidence is reconciled. I’m delivering the recommendation with sources, tradeoffs, and open questions."
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"at": 3300,
|
|
454
|
+
"do": {
|
|
455
|
+
"transcript": {
|
|
456
|
+
"record": {
|
|
457
|
+
"type": "assistant",
|
|
458
|
+
"uuid": "$uuid:assistant",
|
|
459
|
+
"sessionId": "$sessionId",
|
|
460
|
+
"timestamp": "$now",
|
|
461
|
+
"cwd": "$cwd",
|
|
462
|
+
"version": "$vendorVersion",
|
|
463
|
+
"message": {
|
|
464
|
+
"id": "$uuid:message",
|
|
465
|
+
"role": "assistant",
|
|
466
|
+
"model": "$modelId",
|
|
467
|
+
"content": [
|
|
468
|
+
{
|
|
469
|
+
"type": "text",
|
|
470
|
+
"text": "Recommendation: use the source-backed option, retain the documented caveats, and validate the open question with a focused follow-up."
|
|
471
|
+
}
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"at": 3400,
|
|
480
|
+
"do": {
|
|
481
|
+
"emit": {
|
|
482
|
+
"event": "Stop",
|
|
483
|
+
"with": {
|
|
484
|
+
"prompt_id": "$uuid:prompt",
|
|
485
|
+
"last_assistant_message": "Recommendation delivered with sources, tradeoffs, and open questions.",
|
|
486
|
+
"stop_hook_active": false,
|
|
487
|
+
"background_tasks": [],
|
|
488
|
+
"session_crons": []
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "duplicate-out-of-order",
|
|
3
|
+
"steps": [
|
|
4
|
+
{
|
|
5
|
+
"at": 0,
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": {
|
|
8
|
+
"event": "PostToolUse",
|
|
9
|
+
"with": {
|
|
10
|
+
"prompt_id": "$uuid:prompt",
|
|
11
|
+
"tool_name": "Bash",
|
|
12
|
+
"tool_input": { "command": "echo reordered" },
|
|
13
|
+
"tool_response": { "output": "reordered" },
|
|
14
|
+
"tool_use_id": "$uuid:tool",
|
|
15
|
+
"duration_ms": 10,
|
|
16
|
+
"effort": { "level": "xhigh" },
|
|
17
|
+
"permission_mode": "$permissionMode"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"at": 25,
|
|
24
|
+
"do": {
|
|
25
|
+
"emit": {
|
|
26
|
+
"event": "PreToolUse",
|
|
27
|
+
"with": {
|
|
28
|
+
"prompt_id": "$uuid:prompt",
|
|
29
|
+
"tool_name": "Bash",
|
|
30
|
+
"tool_input": { "command": "echo reordered" },
|
|
31
|
+
"tool_use_id": "$uuid:tool",
|
|
32
|
+
"effort": { "level": "xhigh" },
|
|
33
|
+
"permission_mode": "$permissionMode"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"at": 50,
|
|
40
|
+
"do": {
|
|
41
|
+
"emit": {
|
|
42
|
+
"event": "PostToolUse",
|
|
43
|
+
"with": {
|
|
44
|
+
"prompt_id": "$uuid:prompt",
|
|
45
|
+
"tool_name": "Bash",
|
|
46
|
+
"tool_input": { "command": "echo reordered" },
|
|
47
|
+
"tool_response": { "output": "reordered" },
|
|
48
|
+
"tool_use_id": "$uuid:tool",
|
|
49
|
+
"duration_ms": 10,
|
|
50
|
+
"effort": { "level": "xhigh" },
|
|
51
|
+
"permission_mode": "$permissionMode"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "happy-turn",
|
|
3
|
+
"steps": [
|
|
4
|
+
{
|
|
5
|
+
"at": 0,
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": {
|
|
8
|
+
"event": "UserPromptSubmit",
|
|
9
|
+
"with": {
|
|
10
|
+
"prompt": "$stimulus.text",
|
|
11
|
+
"prompt_id": "$uuid:prompt",
|
|
12
|
+
"session_title": "$sessionTitle",
|
|
13
|
+
"permission_mode": "$permissionMode"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"at": 50,
|
|
20
|
+
"do": {
|
|
21
|
+
"transcript": {
|
|
22
|
+
"record": {
|
|
23
|
+
"type": "assistant",
|
|
24
|
+
"uuid": "$uuid:assistant",
|
|
25
|
+
"sessionId": "$sessionId",
|
|
26
|
+
"timestamp": "$now",
|
|
27
|
+
"cwd": "$cwd",
|
|
28
|
+
"version": "$vendorVersion",
|
|
29
|
+
"message": {
|
|
30
|
+
"id": "$uuid:message",
|
|
31
|
+
"role": "assistant",
|
|
32
|
+
"model": "emulator",
|
|
33
|
+
"content": [{ "type": "text", "text": "$reply" }]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"at": 100,
|
|
41
|
+
"do": {
|
|
42
|
+
"emit": {
|
|
43
|
+
"event": "Stop",
|
|
44
|
+
"with": {
|
|
45
|
+
"prompt_id": "$uuid:prompt",
|
|
46
|
+
"last_assistant_message": "$reply",
|
|
47
|
+
"stop_hook_active": false,
|
|
48
|
+
"background_tasks": [],
|
|
49
|
+
"session_crons": [],
|
|
50
|
+
"effort": { "level": "xhigh" },
|
|
51
|
+
"permission_mode": "$permissionMode"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|