@vibefield/puppeteer-imposter 0.0.0-stage → 0.2.1
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,227 @@
|
|
|
1
|
+
{
|
|
2
|
+
"session.start": [
|
|
3
|
+
{
|
|
4
|
+
"channel": "jsonrpc",
|
|
5
|
+
"event": "gateway.ready",
|
|
6
|
+
"with": { "skin": {}, "change_events": true }
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"channel": "hook",
|
|
10
|
+
"event": "on_session_start",
|
|
11
|
+
"with": {
|
|
12
|
+
"hook_event_name": "on_session_start",
|
|
13
|
+
"session_id": "$storedSessionId",
|
|
14
|
+
"platform": "tui",
|
|
15
|
+
"choice": null,
|
|
16
|
+
"tool_name": null,
|
|
17
|
+
"keys": ["session_id", "model", "platform"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"session.ready": [
|
|
22
|
+
{
|
|
23
|
+
"channel": "jsonrpc",
|
|
24
|
+
"event": "session.info",
|
|
25
|
+
"with": {
|
|
26
|
+
"model": "puppeteer-hermes-census",
|
|
27
|
+
"provider": "custom",
|
|
28
|
+
"approval_mode": "manual",
|
|
29
|
+
"version": "0.20.0",
|
|
30
|
+
"cwd": "$cwd",
|
|
31
|
+
"stored_session_id": "$storedSessionId",
|
|
32
|
+
"running": false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"session.end": [
|
|
37
|
+
{
|
|
38
|
+
"channel": "hook",
|
|
39
|
+
"event": "on_session_end",
|
|
40
|
+
"with": {
|
|
41
|
+
"hook_event_name": "on_session_end",
|
|
42
|
+
"session_id": "$storedSessionId",
|
|
43
|
+
"platform": "tui",
|
|
44
|
+
"choice": null,
|
|
45
|
+
"tool_name": null,
|
|
46
|
+
"keys": ["session_id", "completed", "interrupted", "platform"]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"channel": "hook",
|
|
51
|
+
"event": "on_session_finalize",
|
|
52
|
+
"with": {
|
|
53
|
+
"hook_event_name": "on_session_finalize",
|
|
54
|
+
"session_id": "$storedSessionId",
|
|
55
|
+
"platform": "tui",
|
|
56
|
+
"choice": null,
|
|
57
|
+
"tool_name": null,
|
|
58
|
+
"keys": ["session_id", "platform"]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"turn.start": [
|
|
63
|
+
{
|
|
64
|
+
"channel": "jsonrpc",
|
|
65
|
+
"event": "message.start",
|
|
66
|
+
"with": {}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"channel": "hook",
|
|
70
|
+
"event": "pre_llm_call",
|
|
71
|
+
"with": {
|
|
72
|
+
"hook_event_name": "pre_llm_call",
|
|
73
|
+
"session_id": "$storedSessionId",
|
|
74
|
+
"platform": "tui",
|
|
75
|
+
"choice": null,
|
|
76
|
+
"tool_name": null,
|
|
77
|
+
"keys": ["session_id", "user_message", "platform"]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"assistant.delta": [
|
|
82
|
+
{
|
|
83
|
+
"channel": "jsonrpc",
|
|
84
|
+
"event": "thinking.delta",
|
|
85
|
+
"with": { "text": "(⊙_⊙) pondering..." }
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"channel": "jsonrpc",
|
|
89
|
+
"event": "message.delta",
|
|
90
|
+
"with": { "text": "$op.text" }
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"tool.start": [
|
|
94
|
+
{
|
|
95
|
+
"channel": "jsonrpc",
|
|
96
|
+
"event": "tool.generating",
|
|
97
|
+
"with": { "name": "$op.tool" }
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"channel": "jsonrpc",
|
|
101
|
+
"event": "tool.start",
|
|
102
|
+
"with": { "name": "$op.tool", "tool_id": "$op.toolId", "context": "agent" }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"channel": "hook",
|
|
106
|
+
"event": "pre_tool_call",
|
|
107
|
+
"with": {
|
|
108
|
+
"hook_event_name": "pre_tool_call",
|
|
109
|
+
"session_id": "$storedSessionId",
|
|
110
|
+
"tool_name": "$op.tool",
|
|
111
|
+
"platform": null,
|
|
112
|
+
"choice": null,
|
|
113
|
+
"keys": ["tool_name", "args", "session_id", "tool_call_id"]
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"tool.end": [
|
|
118
|
+
{
|
|
119
|
+
"channel": "jsonrpc",
|
|
120
|
+
"event": "tool.complete",
|
|
121
|
+
"with": {
|
|
122
|
+
"name": "$op.tool",
|
|
123
|
+
"tool_id": "$op.toolId",
|
|
124
|
+
"args": {},
|
|
125
|
+
"result": { "output": "", "exit_code": 0 }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"channel": "hook",
|
|
130
|
+
"event": "post_tool_call",
|
|
131
|
+
"with": {
|
|
132
|
+
"hook_event_name": "post_tool_call",
|
|
133
|
+
"session_id": "$storedSessionId",
|
|
134
|
+
"tool_name": "$op.tool",
|
|
135
|
+
"platform": null,
|
|
136
|
+
"choice": null,
|
|
137
|
+
"keys": ["tool_name", "args", "result", "session_id", "status"]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"permission.ask": [
|
|
142
|
+
{
|
|
143
|
+
"channel": "jsonrpc",
|
|
144
|
+
"event": "approval.request",
|
|
145
|
+
"with": {
|
|
146
|
+
"choices": ["once", "session", "always", "deny"],
|
|
147
|
+
"pattern_key": "delete in root path",
|
|
148
|
+
"allow_permanent": true,
|
|
149
|
+
"allow_session": true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"channel": "hook",
|
|
154
|
+
"event": "pre_approval_request",
|
|
155
|
+
"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"]
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"turn.end": [
|
|
166
|
+
{
|
|
167
|
+
"channel": "jsonrpc",
|
|
168
|
+
"event": "reasoning.available",
|
|
169
|
+
"with": { "text": "$reply" }
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"channel": "jsonrpc",
|
|
173
|
+
"event": "message.complete",
|
|
174
|
+
"with": {
|
|
175
|
+
"text": "$reply",
|
|
176
|
+
"status": "complete",
|
|
177
|
+
"usage": {
|
|
178
|
+
"model": "puppeteer-hermes-census",
|
|
179
|
+
"input": 24,
|
|
180
|
+
"output": 6,
|
|
181
|
+
"reasoning": 0,
|
|
182
|
+
"prompt": 24,
|
|
183
|
+
"completion": 6,
|
|
184
|
+
"total": 30,
|
|
185
|
+
"calls": 1
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"channel": "hook",
|
|
191
|
+
"event": "post_llm_call",
|
|
192
|
+
"with": {
|
|
193
|
+
"hook_event_name": "post_llm_call",
|
|
194
|
+
"session_id": "$storedSessionId",
|
|
195
|
+
"platform": "tui",
|
|
196
|
+
"choice": null,
|
|
197
|
+
"tool_name": null,
|
|
198
|
+
"keys": ["session_id", "assistant_response", "platform"]
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"usage.refresh": [
|
|
203
|
+
{
|
|
204
|
+
"channel": "jsonrpc",
|
|
205
|
+
"event": "session.info",
|
|
206
|
+
"with": {
|
|
207
|
+
"model": "puppeteer-hermes-census",
|
|
208
|
+
"provider": "custom",
|
|
209
|
+
"approval_mode": "manual",
|
|
210
|
+
"version": "0.20.0",
|
|
211
|
+
"cwd": "$cwd",
|
|
212
|
+
"stored_session_id": "$storedSessionId",
|
|
213
|
+
"running": false,
|
|
214
|
+
"usage": {
|
|
215
|
+
"model": "puppeteer-hermes-census",
|
|
216
|
+
"input": 24,
|
|
217
|
+
"output": 6,
|
|
218
|
+
"reasoning": 0,
|
|
219
|
+
"prompt": 24,
|
|
220
|
+
"completion": 6,
|
|
221
|
+
"total": 30,
|
|
222
|
+
"calls": 1
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"vendor": "hermes",
|
|
3
|
+
"asm": {
|
|
4
|
+
"package": "@vibefield/puppeteer-surface",
|
|
5
|
+
"path": "vendors/hermes"
|
|
6
|
+
},
|
|
7
|
+
"shimNames": ["hermes"],
|
|
8
|
+
"jsonrpcEventMethod": "event",
|
|
9
|
+
"envelope": {},
|
|
10
|
+
"bindings": {
|
|
11
|
+
"$liveSessionId": "$uuid:live",
|
|
12
|
+
"$storedSessionId": "$uuid:stored"
|
|
13
|
+
},
|
|
14
|
+
"boot": [{ "op": "session.start" }, { "op": "session.ready" }]
|
|
15
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"flows": [
|
|
4
|
+
{
|
|
5
|
+
"id": "happy-turn",
|
|
6
|
+
"intent": "turn.basic",
|
|
7
|
+
"scenario": "happy-turn",
|
|
8
|
+
"title": "Basic Hermes TUI-gateway turn",
|
|
9
|
+
"summary": "message.start, streamed delta, and message.complete on the stdio gateway.",
|
|
10
|
+
"kind": "typical",
|
|
11
|
+
"danger": "safe",
|
|
12
|
+
"tags": ["tui-gateway", "turn"],
|
|
13
|
+
"defaultStimulus": { "text": "hello" },
|
|
14
|
+
"defaultSpeed": 4
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "permission-deny",
|
|
18
|
+
"intent": "permission.deny",
|
|
19
|
+
"scenario": "permission-deny",
|
|
20
|
+
"title": "Approval deny",
|
|
21
|
+
"summary": "tool.start, approval.request, blocked tool.complete, then message.complete.",
|
|
22
|
+
"kind": "typical",
|
|
23
|
+
"danger": "safe",
|
|
24
|
+
"tags": ["approval", "tool"],
|
|
25
|
+
"defaultSpeed": 4
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "unknown-event",
|
|
29
|
+
"intent": "fault.unknown-record",
|
|
30
|
+
"scenario": "unknown-event",
|
|
31
|
+
"title": "Unknown future gateway event",
|
|
32
|
+
"summary": "Exercises lossless retention of an unmodeled native name.",
|
|
33
|
+
"kind": "adversarial",
|
|
34
|
+
"danger": "safe",
|
|
35
|
+
"tags": ["unknown", "forward-compatibility"],
|
|
36
|
+
"defaultSpeed": 4
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "late-after-exit",
|
|
40
|
+
"intent": "fault.late-event",
|
|
41
|
+
"scenario": "late-after-exit",
|
|
42
|
+
"title": "Delta after message.complete",
|
|
43
|
+
"summary": "Emits a valid delta after the terminal complete record.",
|
|
44
|
+
"kind": "adversarial",
|
|
45
|
+
"danger": "disruptive",
|
|
46
|
+
"tags": ["late", "ordering"],
|
|
47
|
+
"defaultSpeed": 4
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "happy-turn",
|
|
3
|
+
"steps": [
|
|
4
|
+
{
|
|
5
|
+
"at": 0,
|
|
6
|
+
"do": { "emit": { "channel": "tui-gateway", "event": "message.start", "with": {} } }
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"at": 20,
|
|
10
|
+
"do": {
|
|
11
|
+
"emit": { "channel": "tui-gateway", "event": "message.delta", "with": { "text": "imposter: ok" } }
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"at": 40,
|
|
16
|
+
"do": {
|
|
17
|
+
"emit": {
|
|
18
|
+
"channel": "tui-gateway",
|
|
19
|
+
"event": "message.complete",
|
|
20
|
+
"with": { "text": "imposter: ok", "status": "complete" }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "late-after-exit",
|
|
3
|
+
"steps": [
|
|
4
|
+
{
|
|
5
|
+
"at": 0,
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": {
|
|
8
|
+
"channel": "tui-gateway",
|
|
9
|
+
"event": "message.complete",
|
|
10
|
+
"with": { "text": "imposter: complete", "status": "complete" }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"at": 40,
|
|
16
|
+
"do": {
|
|
17
|
+
"emit": { "channel": "tui-gateway", "event": "message.delta", "with": { "text": "late" } }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "permission-deny",
|
|
3
|
+
"steps": [
|
|
4
|
+
{
|
|
5
|
+
"at": 0,
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": {
|
|
8
|
+
"channel": "tui-gateway",
|
|
9
|
+
"event": "tool.start",
|
|
10
|
+
"with": { "name": "terminal", "tool_id": "call_imposter", "context": "agent" }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"at": 20,
|
|
16
|
+
"do": {
|
|
17
|
+
"emit": {
|
|
18
|
+
"channel": "tui-gateway",
|
|
19
|
+
"event": "approval.request",
|
|
20
|
+
"with": { "choices": ["once", "session", "always", "deny"] }
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"at": 40,
|
|
26
|
+
"do": {
|
|
27
|
+
"emit": {
|
|
28
|
+
"channel": "tui-gateway",
|
|
29
|
+
"event": "tool.complete",
|
|
30
|
+
"with": {
|
|
31
|
+
"name": "terminal",
|
|
32
|
+
"tool_id": "call_imposter",
|
|
33
|
+
"args": {},
|
|
34
|
+
"result": {
|
|
35
|
+
"exit_code": -1,
|
|
36
|
+
"status": "blocked",
|
|
37
|
+
"error": "Command blocked by user; do not retry."
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"at": 60,
|
|
45
|
+
"do": {
|
|
46
|
+
"emit": {
|
|
47
|
+
"channel": "tui-gateway",
|
|
48
|
+
"event": "message.complete",
|
|
49
|
+
"with": { "text": "permission denied", "status": "complete" }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$server": {
|
|
3
|
+
"jsonrpc": "2.0",
|
|
4
|
+
"command": "tui-gateway"
|
|
5
|
+
},
|
|
6
|
+
|
|
7
|
+
"session.create": {
|
|
8
|
+
"bind": {
|
|
9
|
+
"$liveSessionId": "$uuid:live",
|
|
10
|
+
"$storedSessionId": "$uuid:stored"
|
|
11
|
+
},
|
|
12
|
+
"then": [{ "op": "session.start" }, { "op": "session.ready" }],
|
|
13
|
+
"result": {
|
|
14
|
+
"session_id": "$liveSessionId",
|
|
15
|
+
"stored_session_id": "$storedSessionId",
|
|
16
|
+
"message_count": 0
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"session.resume": {
|
|
21
|
+
"bind": {
|
|
22
|
+
"$liveSessionId": "$uuid:live",
|
|
23
|
+
"$storedSessionId": "$params.session_id"
|
|
24
|
+
},
|
|
25
|
+
"then": [{ "op": "session.start" }, { "op": "session.ready" }],
|
|
26
|
+
"result": {
|
|
27
|
+
"session_id": "$liveSessionId",
|
|
28
|
+
"resumed": "$storedSessionId",
|
|
29
|
+
"session_key": "$storedSessionId",
|
|
30
|
+
"status": "idle",
|
|
31
|
+
"message_count": 2,
|
|
32
|
+
"running": false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
"prompt.submit": {
|
|
37
|
+
"then": "$behavior",
|
|
38
|
+
"result": { "status": "streaming" }
|
|
39
|
+
},
|
|
40
|
+
|
|
41
|
+
"session.interrupt": {
|
|
42
|
+
"result": { "status": "interrupted" }
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
"approval.respond": {
|
|
46
|
+
"result": { "resolved": 1 },
|
|
47
|
+
"then": [
|
|
48
|
+
{
|
|
49
|
+
"op": "tool.end",
|
|
50
|
+
"with": { "tool": "terminal", "toolId": "call_imposter" }
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|