@vibefield/puppeteer-imposter 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +2 -1
- package/dist/cli/main.js.map +1 -1
- package/dist/session/channels/hook.d.ts +5 -0
- package/dist/session/channels/hook.d.ts.map +1 -1
- package/dist/session/channels/hook.js +10 -23
- package/dist/session/channels/hook.js.map +1 -1
- package/dist/session/channels/jsonrpc.d.ts +4 -0
- package/dist/session/channels/jsonrpc.d.ts.map +1 -1
- package/dist/session/channels/jsonrpc.js +7 -2
- package/dist/session/channels/jsonrpc.js.map +1 -1
- package/dist/session/serve.d.ts +5 -0
- package/dist/session/serve.d.ts.map +1 -1
- package/dist/session/serve.js.map +1 -1
- package/package.json +8 -8
- package/personas/claude/persona.json +3 -1
- package/personas/claude/scenarios/compact-lifecycle.json +1 -1
- package/personas/claude/scenarios/compact-summary-retry.json +94 -0
- package/personas/codex/persona.json +15 -6
- package/personas/copilot/ops.json +6 -7
- package/personas/copilot/persona.json +32 -7
- package/personas/grok/ops.json +24 -0
- package/personas/hermes/behavior/approval-turn.json +42 -5
- package/personas/hermes/ops.json +60 -55
- package/personas/hermes/persona.json +11 -2
- package/personas/hermes/runflows.json +4 -2
- package/personas/hermes/scenarios/permission-deny.json +18 -4
- package/personas/hermes/serve.json +49 -13
- package/personas/kimi/ops.json +46 -12
- package/personas/kimi/persona.json +34 -7
- package/personas/kimi/scenarios/compaction-lifecycle.json +8 -3
- package/personas/kimi/scenarios/duplicate-out-of-order.json +3 -0
- package/personas/kimi/scenarios/happy-turn.json +12 -3
- package/personas/kimi/scenarios/late-after-end.json +8 -1
- package/personas/kimi/scenarios/tool-failure.json +2 -0
- package/personas/kimi/scenarios/tool-success.json +14 -2
- package/personas/opencode/README.md +1 -1
- package/personas/opencode/persona.json +26 -5
- package/personas/pi/ops.json +5 -4
- package/personas/pi/persona.json +34 -7
package/personas/kimi/ops.json
CHANGED
|
@@ -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"
|
|
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": {
|
|
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": "$
|
|
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
|
]
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
"package": "@vibefield/puppeteer-surface",
|
|
5
5
|
"path": "vendors/kimi"
|
|
6
6
|
},
|
|
7
|
-
"shimNames": [
|
|
7
|
+
"shimNames": [
|
|
8
|
+
"kimi"
|
|
9
|
+
],
|
|
8
10
|
"envelope": {},
|
|
9
11
|
"bindings": {
|
|
10
12
|
"$workdirKey": "$workdirKey:$cwd",
|
|
@@ -12,12 +14,37 @@
|
|
|
12
14
|
},
|
|
13
15
|
"nativeStore": {
|
|
14
16
|
"rootEnv": "KIMI_CODE_HOME",
|
|
15
|
-
"sessionPath": [
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
"sessionPath": [
|
|
18
|
+
"sessions",
|
|
19
|
+
"$workdirKey",
|
|
20
|
+
"$sessionId"
|
|
21
|
+
],
|
|
22
|
+
"updatesPath": [
|
|
23
|
+
"agents",
|
|
24
|
+
"main",
|
|
25
|
+
"wire.jsonl"
|
|
26
|
+
],
|
|
27
|
+
"indexPath": [
|
|
28
|
+
"session_index.jsonl"
|
|
29
|
+
],
|
|
18
30
|
"recordFormat": "flat-record",
|
|
19
|
-
"recordTimestamp": {
|
|
20
|
-
|
|
31
|
+
"recordTimestamp": {
|
|
32
|
+
"field": "time",
|
|
33
|
+
"format": "epoch-ms",
|
|
34
|
+
"omitFor": [
|
|
35
|
+
"metadata"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"singletonEvents": [
|
|
39
|
+
"metadata"
|
|
40
|
+
]
|
|
21
41
|
},
|
|
22
|
-
"boot": [
|
|
42
|
+
"boot": [
|
|
43
|
+
{
|
|
44
|
+
"op": "session.start"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"op": "session.ready"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
23
50
|
}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
"steps": [
|
|
4
4
|
{
|
|
5
5
|
"at": 0,
|
|
6
|
-
"do": {
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": { "channel": "wire", "event": "full_compaction.begin", "with": { "agentId": "main", "source": "auto" } }
|
|
8
|
+
}
|
|
7
9
|
},
|
|
8
10
|
{
|
|
9
11
|
"at": 30,
|
|
@@ -11,10 +13,13 @@
|
|
|
11
13
|
"emit": {
|
|
12
14
|
"channel": "wire",
|
|
13
15
|
"event": "context.apply_compaction",
|
|
14
|
-
"with": { "summary": "imposter summary", "compactedCount": 3 }
|
|
16
|
+
"with": { "agentId": "main", "summary": "imposter summary", "compactedCount": 3 }
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
},
|
|
18
|
-
{
|
|
20
|
+
{
|
|
21
|
+
"at": 60,
|
|
22
|
+
"do": { "emit": { "channel": "wire", "event": "full_compaction.complete", "with": { "agentId": "main" } } }
|
|
23
|
+
}
|
|
19
24
|
]
|
|
20
25
|
}
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"channel": "wire",
|
|
9
9
|
"event": "context.append_loop_event",
|
|
10
10
|
"with": {
|
|
11
|
+
"agentId": "main",
|
|
11
12
|
"event": {
|
|
12
13
|
"type": "tool.result",
|
|
13
14
|
"parentUuid": "$uuid:tool-event",
|
|
@@ -25,6 +26,7 @@
|
|
|
25
26
|
"channel": "wire",
|
|
26
27
|
"event": "context.append_loop_event",
|
|
27
28
|
"with": {
|
|
29
|
+
"agentId": "main",
|
|
28
30
|
"event": {
|
|
29
31
|
"type": "tool.call",
|
|
30
32
|
"uuid": "$uuid:tool-event",
|
|
@@ -46,6 +48,7 @@
|
|
|
46
48
|
"channel": "wire",
|
|
47
49
|
"event": "context.append_loop_event",
|
|
48
50
|
"with": {
|
|
51
|
+
"agentId": "main",
|
|
49
52
|
"event": {
|
|
50
53
|
"type": "tool.result",
|
|
51
54
|
"parentUuid": "$uuid:tool-event",
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
"emit": {
|
|
8
8
|
"channel": "wire",
|
|
9
9
|
"event": "turn.prompt",
|
|
10
|
-
"with": {
|
|
10
|
+
"with": {
|
|
11
|
+
"agentId": "main",
|
|
12
|
+
"input": [{ "type": "text", "text": "$stimulus.text" }],
|
|
13
|
+
"origin": { "kind": "user" }
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
},
|
|
@@ -17,7 +21,10 @@
|
|
|
17
21
|
"emit": {
|
|
18
22
|
"channel": "wire",
|
|
19
23
|
"event": "context.append_loop_event",
|
|
20
|
-
"with": {
|
|
24
|
+
"with": {
|
|
25
|
+
"agentId": "main",
|
|
26
|
+
"event": { "type": "step.begin", "uuid": "$uuid:step", "turnId": "0", "step": 1 }
|
|
27
|
+
}
|
|
21
28
|
}
|
|
22
29
|
}
|
|
23
30
|
},
|
|
@@ -28,6 +35,7 @@
|
|
|
28
35
|
"channel": "wire",
|
|
29
36
|
"event": "context.append_loop_event",
|
|
30
37
|
"with": {
|
|
38
|
+
"agentId": "main",
|
|
31
39
|
"event": {
|
|
32
40
|
"type": "content.part",
|
|
33
41
|
"uuid": "$uuid:content",
|
|
@@ -47,6 +55,7 @@
|
|
|
47
55
|
"channel": "wire",
|
|
48
56
|
"event": "context.append_loop_event",
|
|
49
57
|
"with": {
|
|
58
|
+
"agentId": "main",
|
|
50
59
|
"event": { "type": "step.end", "uuid": "$uuid:step", "turnId": "0", "step": 1, "finishReason": "end_turn" }
|
|
51
60
|
}
|
|
52
61
|
}
|
|
@@ -58,7 +67,7 @@
|
|
|
58
67
|
"emit": {
|
|
59
68
|
"channel": "wire",
|
|
60
69
|
"event": "turn.ended",
|
|
61
|
-
"with": { "turnId": 0, "reason": "completed", "durationMs": 80 }
|
|
70
|
+
"with": { "agentId": "main", "turnId": 0, "reason": "completed", "durationMs": 80 }
|
|
62
71
|
}
|
|
63
72
|
}
|
|
64
73
|
}
|
|
@@ -3,7 +3,13 @@
|
|
|
3
3
|
"steps": [
|
|
4
4
|
{
|
|
5
5
|
"at": 0,
|
|
6
|
-
"do": {
|
|
6
|
+
"do": {
|
|
7
|
+
"emit": {
|
|
8
|
+
"channel": "wire",
|
|
9
|
+
"event": "turn.ended",
|
|
10
|
+
"with": { "agentId": "main", "turnId": 0, "reason": "completed" }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
7
13
|
},
|
|
8
14
|
{
|
|
9
15
|
"at": 30,
|
|
@@ -12,6 +18,7 @@
|
|
|
12
18
|
"channel": "wire",
|
|
13
19
|
"event": "context.append_loop_event",
|
|
14
20
|
"with": {
|
|
21
|
+
"agentId": "main",
|
|
15
22
|
"event": {
|
|
16
23
|
"type": "content.part",
|
|
17
24
|
"uuid": "$uuid:late",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"channel": "wire",
|
|
9
9
|
"event": "context.append_loop_event",
|
|
10
10
|
"with": {
|
|
11
|
+
"agentId": "main",
|
|
11
12
|
"event": {
|
|
12
13
|
"type": "tool.call",
|
|
13
14
|
"uuid": "$uuid:tool-event",
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
"channel": "wire",
|
|
30
31
|
"event": "context.append_loop_event",
|
|
31
32
|
"with": {
|
|
33
|
+
"agentId": "main",
|
|
32
34
|
"event": {
|
|
33
35
|
"type": "tool.result",
|
|
34
36
|
"parentUuid": "$uuid:tool-event",
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
"emit": {
|
|
8
8
|
"channel": "wire",
|
|
9
9
|
"event": "turn.prompt",
|
|
10
|
-
"with": {
|
|
10
|
+
"with": {
|
|
11
|
+
"agentId": "main",
|
|
12
|
+
"input": [{ "type": "text", "text": "$stimulus.text" }],
|
|
13
|
+
"origin": { "kind": "user" }
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
},
|
|
@@ -18,6 +22,7 @@
|
|
|
18
22
|
"channel": "wire",
|
|
19
23
|
"event": "context.append_loop_event",
|
|
20
24
|
"with": {
|
|
25
|
+
"agentId": "main",
|
|
21
26
|
"event": {
|
|
22
27
|
"type": "tool.call",
|
|
23
28
|
"uuid": "$uuid:tool-event",
|
|
@@ -39,6 +44,7 @@
|
|
|
39
44
|
"channel": "wire",
|
|
40
45
|
"event": "context.append_loop_event",
|
|
41
46
|
"with": {
|
|
47
|
+
"agentId": "main",
|
|
42
48
|
"event": {
|
|
43
49
|
"type": "tool.result",
|
|
44
50
|
"parentUuid": "$uuid:tool-event",
|
|
@@ -51,7 +57,13 @@
|
|
|
51
57
|
},
|
|
52
58
|
{
|
|
53
59
|
"at": 60,
|
|
54
|
-
"do": {
|
|
60
|
+
"do": {
|
|
61
|
+
"emit": {
|
|
62
|
+
"channel": "wire",
|
|
63
|
+
"event": "turn.ended",
|
|
64
|
+
"with": { "agentId": "main", "turnId": 0, "reason": "completed" }
|
|
65
|
+
}
|
|
66
|
+
}
|
|
55
67
|
}
|
|
56
68
|
]
|
|
57
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenCode Imposter persona
|
|
2
2
|
|
|
3
|
-
This persona impersonates OpenCode 1.
|
|
3
|
+
This persona impersonates OpenCode 1.19.5 on its native loopback REST and SSE
|
|
4
4
|
surface. Native paths and operation ids live in `http-serve.json`; the shared
|
|
5
5
|
transport contains no OpenCode route names. All requests, successful results,
|
|
6
6
|
SSE properties, and complete `{id,type,properties}` carriers validate against
|
|
@@ -4,19 +4,40 @@
|
|
|
4
4
|
"package": "@vibefield/puppeteer-surface",
|
|
5
5
|
"path": "vendors/opencode"
|
|
6
6
|
},
|
|
7
|
-
"shimNames": [
|
|
7
|
+
"shimNames": [
|
|
8
|
+
"opencode"
|
|
9
|
+
],
|
|
8
10
|
"envelope": {},
|
|
9
11
|
"sessionIdTemplate": "$nativeId:ses:session",
|
|
10
12
|
"bindings": {
|
|
11
13
|
"$projectId": "imposter-project",
|
|
12
14
|
"$sessionSlug": "$uuid:session-slug",
|
|
13
|
-
"$sessionModel": {
|
|
14
|
-
|
|
15
|
+
"$sessionModel": {
|
|
16
|
+
"id": "opencode-imposter",
|
|
17
|
+
"providerID": "imposter"
|
|
18
|
+
},
|
|
19
|
+
"$sessionPermission": [
|
|
20
|
+
{
|
|
21
|
+
"permission": "*",
|
|
22
|
+
"pattern": "*",
|
|
23
|
+
"action": "allow"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
15
26
|
"$sessionCreatedAt": "$nowMs",
|
|
16
27
|
"$sessionUpdatedAt": "$nowMs",
|
|
17
28
|
"$promptCreatedAt": "$nowMs",
|
|
18
29
|
"$promptAgent": "build",
|
|
19
|
-
"$promptModel": {
|
|
30
|
+
"$promptModel": {
|
|
31
|
+
"providerID": "imposter",
|
|
32
|
+
"modelID": "opencode-imposter"
|
|
33
|
+
}
|
|
20
34
|
},
|
|
21
|
-
"boot": [
|
|
35
|
+
"boot": [
|
|
36
|
+
{
|
|
37
|
+
"op": "session.start"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"op": "session.ready"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
22
43
|
}
|
package/personas/pi/ops.json
CHANGED
|
@@ -2,18 +2,19 @@
|
|
|
2
2
|
"session.start": [
|
|
3
3
|
{ "channel": "native-log", "event": "session", "with": { "version": 3, "id": "$sessionId", "cwd": "$cwd" } },
|
|
4
4
|
{ "channel": "native-log", "event": "model_change", "with": { "parentId": null, "provider": "imposter", "modelId": "$modelId" } },
|
|
5
|
-
{ "channel": "native-log", "event": "thinking_level_change", "with": { "thinkingLevel": "off" } }
|
|
5
|
+
{ "channel": "native-log", "event": "thinking_level_change", "with": { "thinkingLevel": "off" } },
|
|
6
|
+
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "system", "content": "", "sections": { "preamble": "imposter: synthetic Pi system prompt" }, "toolsAdded": [], "timestamp": "$nowMs" } } }
|
|
6
7
|
],
|
|
7
8
|
"turn.start": [
|
|
8
9
|
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "user", "content": [{ "type": "text", "text": "$op.text" }], "timestamp": "$nowMs" } } }
|
|
9
10
|
],
|
|
10
11
|
"assistant.delta": [
|
|
11
|
-
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "assistant", "content": [{ "type": "text", "text": "$op.text" }], "api": "openai-completions", "provider": "imposter", "model": "$modelId", "usage": { "input": 12, "output": 4, "cacheRead": 0, "cacheWrite": 0, "reasoning": 0, "totalTokens": 16, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0, "total": 0 } }, "stopReason": "stop", "timestamp": "$nowMs", "responseId": "$uuid:response", "rawStopReason": "stop" } } }
|
|
12
|
+
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "assistant", "content": [{ "type": "text", "text": "$op.text" }], "api": "openai-completions", "provider": "imposter", "model": "$modelId", "usage": { "input": 12, "output": 4, "cacheRead": 0, "cacheWrite": 0, "reasoning": 0, "totalTokens": 16, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0, "total": 0 } }, "stopReason": "stop", "timestamp": "$nowMs", "durationMs": 1, "thinkingLevel": "off", "responseId": "$uuid:response", "rawStopReason": "stop" } } }
|
|
12
13
|
],
|
|
13
14
|
"tool.start": [
|
|
14
|
-
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "assistant", "content": [{ "type": "toolCall", "id": "$op.toolId", "name": "$op.tool", "arguments": "$op.input" }], "api": "openai-completions", "provider": "imposter", "model": "$modelId", "usage": { "input": 12, "output": 4, "cacheRead": 0, "cacheWrite": 0, "reasoning": 0, "totalTokens": 16, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0, "total": 0 } }, "stopReason": "toolUse", "timestamp": "$nowMs", "responseId": "$uuid:tool-response", "rawStopReason": "tool_calls" } } }
|
|
15
|
+
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "assistant", "content": [{ "type": "toolCall", "id": "$op.toolId", "name": "$op.tool", "arguments": "$op.input" }], "api": "openai-completions", "provider": "imposter", "model": "$modelId", "usage": { "input": 12, "output": 4, "cacheRead": 0, "cacheWrite": 0, "reasoning": 0, "totalTokens": 16, "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0, "total": 0 } }, "stopReason": "toolUse", "timestamp": "$nowMs", "durationMs": 1, "thinkingLevel": "off", "responseId": "$uuid:tool-response", "rawStopReason": "tool_calls" } } }
|
|
15
16
|
],
|
|
16
17
|
"tool.end": [
|
|
17
|
-
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "toolResult", "toolCallId": "$op.toolId", "toolName": "$op.tool", "content": [{ "type": "text", "text": "$op.output" }], "isError": false, "timestamp": "$nowMs" } } }
|
|
18
|
+
{ "channel": "native-log", "event": "message", "with": { "message": { "role": "toolResult", "toolCallId": "$op.toolId", "toolName": "$op.tool", "content": [{ "type": "text", "text": "$op.output" }], "isError": false, "timestamp": "$nowMs", "durationMs": 1 } } }
|
|
18
19
|
]
|
|
19
20
|
}
|
package/personas/pi/persona.json
CHANGED
|
@@ -1,16 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"vendor": "pi",
|
|
3
|
-
"asm": {
|
|
4
|
-
|
|
3
|
+
"asm": {
|
|
4
|
+
"package": "@vibefield/puppeteer-surface",
|
|
5
|
+
"path": "vendors/pi"
|
|
6
|
+
},
|
|
7
|
+
"shimNames": [
|
|
8
|
+
"pi"
|
|
9
|
+
],
|
|
5
10
|
"envelope": {},
|
|
6
11
|
"nativeStore": {
|
|
7
12
|
"rootEnv": "PI_CODING_AGENT_DIR",
|
|
8
|
-
"sessionPath": [
|
|
13
|
+
"sessionPath": [
|
|
14
|
+
"sessions"
|
|
15
|
+
],
|
|
9
16
|
"updatesFile": "$concat:$sessionId:.jsonl",
|
|
10
17
|
"recordFormat": "flat-record",
|
|
11
|
-
"recordTimestamp": {
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
"recordTimestamp": {
|
|
19
|
+
"field": "timestamp",
|
|
20
|
+
"format": "iso"
|
|
21
|
+
},
|
|
22
|
+
"recordIdentity": {
|
|
23
|
+
"idField": "id",
|
|
24
|
+
"parentField": "parentId",
|
|
25
|
+
"omitParentFor": [
|
|
26
|
+
"session"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"singletonEvents": [
|
|
30
|
+
"session",
|
|
31
|
+
"model_change",
|
|
32
|
+
"thinking_level_change"
|
|
33
|
+
]
|
|
14
34
|
},
|
|
15
|
-
"boot": [
|
|
35
|
+
"boot": [
|
|
36
|
+
{
|
|
37
|
+
"op": "session.start"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"op": "session.ready"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
16
43
|
}
|