@code-yeongyu/senpi 2026.11.2-1 → 2026.11.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/bundle/chunks/{chunk-AMCDEC5A.js → chunk-B2LRAXQU.js} +2 -2
  3. package/dist/bundle/chunks/{chunk-D22YF34L.js → chunk-CQ3G57HE.js} +1 -1
  4. package/dist/bundle/chunks/{chunk-ZUVGFXCS.js → chunk-FVYWSBX3.js} +3 -3
  5. package/dist/bundle/chunks/{chunk-665UPAKG.js → chunk-H3BTMIH5.js} +6 -6
  6. package/dist/bundle/chunks/{chunk-KEJWNCLN.js → chunk-HUSQY3ID.js} +1 -1
  7. package/dist/bundle/chunks/{chunk-IBV4OVXQ.js → chunk-N6OHYIJR.js} +1 -1
  8. package/dist/bundle/chunks/{chunk-XZR4J6HM.js → chunk-PP52OWBB.js} +1 -1
  9. package/dist/bundle/chunks/{chunk-XVQISKHL.js → chunk-QV2IEA3B.js} +4 -4
  10. package/dist/bundle/chunks/{chunk-2V6BR24J.js → chunk-VEWJSPOZ.js} +1 -1
  11. package/dist/bundle/chunks/{cli-main-REFQSP6S.js → cli-main-6ZI4QO2Z.js} +1 -1
  12. package/dist/bundle/chunks/{host-command-Y3ZT6YLD.js → host-command-O3ALG2O3.js} +1 -1
  13. package/dist/bundle/chunks/{host-lifecycle-VW73K4WA.js → host-lifecycle-SGTVODHB.js} +1 -1
  14. package/dist/bundle/chunks/host-lifecycle.js +5 -5
  15. package/dist/bundle/chunks/{host-session-command-YDEUZBTX.js → host-session-command-4WRR5JSB.js} +1 -1
  16. package/dist/bundle/chunks/{interactive-mode-UZXPNJ4V.js → interactive-mode-TF7R35GK.js} +1 -1
  17. package/dist/bundle/chunks/{main-O5G75MYS.js → main-XLUYSOXP.js} +1 -1
  18. package/dist/bundle/chunks/{multi-session-host-AZKJYA2X.js → multi-session-host-CADYC2BS.js} +4 -3
  19. package/dist/bundle/chunks/{package-manager-cli-2YDUGJNR.js → package-manager-cli-I62KMIWK.js} +1 -1
  20. package/dist/bundle/chunks/{rpc-mode-KZD5HZNI.js → rpc-mode-T5GVMUBQ.js} +1 -1
  21. package/dist/bundle/chunks/{schedule-command-7LSJAINZ.js → schedule-command-YXGRN5CM.js} +1 -1
  22. package/dist/bundle/chunks/{session-control-endpoint-BG2KQ6MJ.js → session-control-endpoint-PREVS5UO.js} +1 -1
  23. package/dist/bundle/chunks/session-worker.js +63 -62
  24. package/dist/bundle/cli.js +2 -2
  25. package/dist/bundle/host-supervisor.js +5 -5
  26. package/dist/bundle/index.js +1 -1
  27. package/dist/bundle/rpc-entry.js +1 -1
  28. package/dist/bundle/runtime-manifest.json +1 -1
  29. package/dist/core/session-recovery-identity.d.ts +12 -1
  30. package/dist/modes/rpc/compact-call-fold.d.ts +3 -1
  31. package/dist/modes/rpc/compact-call-fold.js +17 -6
  32. package/dist/modes/rpc/compact-call-identity.d.ts +13 -0
  33. package/dist/modes/rpc/compact-call-identity.js +30 -0
  34. package/dist/modes/rpc/compact-call-model.d.ts +14 -0
  35. package/dist/modes/rpc/compact-call-model.js +4 -0
  36. package/dist/modes/rpc/compact-call-table.d.ts +9 -0
  37. package/dist/modes/rpc/compact-call-table.js +20 -0
  38. package/dist/modes/rpc/compact-catalog-settled.d.ts +5 -0
  39. package/dist/modes/rpc/compact-catalog-settled.js +9 -2
  40. package/dist/modes/rpc/compact-lane-current.d.ts +2 -0
  41. package/dist/modes/rpc/compact-lane-current.js +4 -0
  42. package/dist/modes/rpc/compact-message-identity.d.ts +74 -0
  43. package/dist/modes/rpc/compact-message-identity.js +101 -0
  44. package/dist/modes/rpc/compact-session-calls.d.ts +5 -4
  45. package/dist/modes/rpc/compact-session-calls.js +13 -8
  46. package/dist/modes/rpc/compact-session-state.d.ts +2 -0
  47. package/dist/modes/rpc/compact-session-state.js +4 -0
  48. package/dist/modes/rpc/compact-settled-messages.d.ts +12 -4
  49. package/dist/modes/rpc/compact-settled-messages.js +18 -10
  50. package/dist/modes/rpc/connection-handler.js +1 -1
  51. package/dist/modes/rpc/connection-question-bridge.d.ts +2 -1
  52. package/dist/modes/rpc/connection-question-bridge.js +3 -1
  53. package/dist/modes/rpc/host-lifecycle-proxy.d.ts +9 -0
  54. package/dist/modes/rpc/host-lifecycle-proxy.js +29 -7
  55. package/dist/modes/rpc/rpc-question-types.d.ts +2 -0
  56. package/dist/modes/rpc/session-acceptance-compact.d.ts +17 -7
  57. package/dist/modes/rpc/session-acceptance-compact.js +20 -8
  58. package/dist/modes/rpc/session-acceptance-lane.d.ts +5 -0
  59. package/dist/modes/rpc/session-acceptance-lane.js +12 -11
  60. package/dist/modes/rpc/session-event-writer-destinations.d.ts +2 -1
  61. package/dist/modes/rpc/session-event-writer-destinations.js +24 -9
  62. package/dist/utils/version-check.js +9 -3
  63. package/docs/engine-socket/fixtures/admission-routes/i-live-identity.json +716 -0
  64. package/docs/engine-socket/fixtures/admission-routes/index.json +3 -1
  65. package/docs/engine-socket/fixtures/admission-routes/j-live-call-identity.json +1020 -0
  66. package/docs/rpc.md +66 -0
  67. package/package.json +6 -6
@@ -0,0 +1,1020 @@
1
+ {
2
+ "compact": [
3
+ {
4
+ "type": "message_update",
5
+ "assistantMessageEvent": {
6
+ "type": "toolcall_start",
7
+ "contentIndex": 0,
8
+ "partial": {
9
+ "role": "assistant",
10
+ "content": [
11
+ {
12
+ "type": "toolCall",
13
+ "id": "reused",
14
+ "name": "read",
15
+ "arguments": {
16
+ "path": "note.txt"
17
+ }
18
+ }
19
+ ],
20
+ "api": "faux:fixture",
21
+ "provider": "faux",
22
+ "model": "faux-a",
23
+ "usage": {
24
+ "input": "<tokens>",
25
+ "output": "<tokens>",
26
+ "cacheRead": "<tokens>",
27
+ "cacheWrite": "<tokens>",
28
+ "totalTokens": "<tokens>",
29
+ "cost": {
30
+ "input": 0,
31
+ "output": 0,
32
+ "cacheRead": 0,
33
+ "cacheWrite": 0,
34
+ "total": 0
35
+ }
36
+ },
37
+ "stopReason": "pending",
38
+ "timestamp": 1
39
+ }
40
+ },
41
+ "message": {
42
+ "role": "assistant",
43
+ "content": [
44
+ {
45
+ "type": "toolCall",
46
+ "id": "reused",
47
+ "name": "read",
48
+ "arguments": {
49
+ "path": "note.txt"
50
+ }
51
+ }
52
+ ],
53
+ "api": "faux:fixture",
54
+ "provider": "faux",
55
+ "model": "faux-a",
56
+ "usage": {
57
+ "input": "<tokens>",
58
+ "output": "<tokens>",
59
+ "cacheRead": "<tokens>",
60
+ "cacheWrite": "<tokens>",
61
+ "totalTokens": "<tokens>",
62
+ "cost": {
63
+ "input": 0,
64
+ "output": 0,
65
+ "cacheRead": 0,
66
+ "cacheWrite": 0,
67
+ "total": 0
68
+ }
69
+ },
70
+ "stopReason": "pending",
71
+ "timestamp": 1
72
+ },
73
+ "resolvedToolName": "read",
74
+ "sessionId": "rpc-1",
75
+ "runtimeItemKey": "call-1"
76
+ },
77
+ {
78
+ "type": "message_update",
79
+ "assistantMessageEvent": {
80
+ "type": "toolcall_end",
81
+ "contentIndex": 0,
82
+ "toolCall": {
83
+ "type": "toolCall",
84
+ "id": "reused",
85
+ "name": "read",
86
+ "arguments": {
87
+ "path": "note.txt"
88
+ }
89
+ },
90
+ "partial": {
91
+ "role": "assistant",
92
+ "content": [
93
+ {
94
+ "type": "toolCall",
95
+ "id": "reused",
96
+ "name": "read",
97
+ "arguments": {
98
+ "path": "note.txt"
99
+ }
100
+ }
101
+ ],
102
+ "api": "faux:fixture",
103
+ "provider": "faux",
104
+ "model": "faux-a",
105
+ "usage": {
106
+ "input": "<tokens>",
107
+ "output": "<tokens>",
108
+ "cacheRead": "<tokens>",
109
+ "cacheWrite": "<tokens>",
110
+ "totalTokens": "<tokens>",
111
+ "cost": {
112
+ "input": 0,
113
+ "output": 0,
114
+ "cacheRead": 0,
115
+ "cacheWrite": 0,
116
+ "total": 0
117
+ }
118
+ },
119
+ "stopReason": "pending",
120
+ "timestamp": 1
121
+ }
122
+ },
123
+ "message": {
124
+ "role": "assistant",
125
+ "content": [
126
+ {
127
+ "type": "toolCall",
128
+ "id": "reused",
129
+ "name": "read",
130
+ "arguments": {
131
+ "path": "note.txt"
132
+ }
133
+ }
134
+ ],
135
+ "api": "faux:fixture",
136
+ "provider": "faux",
137
+ "model": "faux-a",
138
+ "usage": {
139
+ "input": "<tokens>",
140
+ "output": "<tokens>",
141
+ "cacheRead": "<tokens>",
142
+ "cacheWrite": "<tokens>",
143
+ "totalTokens": "<tokens>",
144
+ "cost": {
145
+ "input": 0,
146
+ "output": 0,
147
+ "cacheRead": 0,
148
+ "cacheWrite": 0,
149
+ "total": 0
150
+ }
151
+ },
152
+ "stopReason": "pending",
153
+ "timestamp": 1
154
+ },
155
+ "resolvedToolName": "read",
156
+ "sessionId": "rpc-1",
157
+ "runtimeItemKey": "call-1"
158
+ },
159
+ {
160
+ "type": "tool_execution_start",
161
+ "toolCallId": "reused",
162
+ "toolName": "read",
163
+ "args": {
164
+ "path": "note.txt"
165
+ },
166
+ "sessionId": "rpc-1",
167
+ "runtimeItemKey": "call-1"
168
+ },
169
+ {
170
+ "type": "tool_hook_status",
171
+ "hookRunId": "<hook-run>",
172
+ "hookName": "PreToolUse",
173
+ "toolName": "read",
174
+ "toolCallId": "reused",
175
+ "extensionPath": "<inline:1>",
176
+ "startedAt": 1793491200000,
177
+ "phase": "start",
178
+ "statusMessage": "running inline:1",
179
+ "sessionId": "rpc-1",
180
+ "runtimeItemKey": "call-1"
181
+ },
182
+ {
183
+ "type": "tool_hook_status",
184
+ "hookRunId": "<hook-run>",
185
+ "hookName": "PreToolUse",
186
+ "toolName": "read",
187
+ "toolCallId": "reused",
188
+ "extensionPath": "<inline:1>",
189
+ "startedAt": 1793491200000,
190
+ "phase": "update",
191
+ "statusMessage": "checking",
192
+ "sessionId": "rpc-1",
193
+ "runtimeItemKey": "call-1"
194
+ },
195
+ {
196
+ "type": "tool_hook_status",
197
+ "hookRunId": "<hook-run>",
198
+ "hookName": "PreToolUse",
199
+ "toolName": "read",
200
+ "toolCallId": "reused",
201
+ "extensionPath": "<inline:1>",
202
+ "startedAt": 1793491200000,
203
+ "phase": "end",
204
+ "statusMessage": "checking",
205
+ "completedAt": 1793491200000,
206
+ "status": "completed",
207
+ "sessionId": "rpc-1",
208
+ "runtimeItemKey": "call-1"
209
+ },
210
+ {
211
+ "type": "tool_execution_end",
212
+ "toolCallId": "reused",
213
+ "toolName": "read",
214
+ "result": {
215
+ "content": [
216
+ {
217
+ "type": "text",
218
+ "text": "note body\n"
219
+ }
220
+ ]
221
+ },
222
+ "isError": false,
223
+ "sessionId": "rpc-1",
224
+ "runtimeItemKey": "call-1"
225
+ },
226
+ {
227
+ "type": "tool_hook_status",
228
+ "hookRunId": "<hook-run>",
229
+ "hookName": "PreToolUse",
230
+ "toolName": "read",
231
+ "toolCallId": "ghost",
232
+ "extensionPath": "<inline:1>",
233
+ "startedAt": 1793491200000,
234
+ "phase": "start",
235
+ "statusMessage": "running inline:1",
236
+ "sessionId": "rpc-1",
237
+ "callUnknown": true
238
+ },
239
+ {
240
+ "type": "tool_hook_status",
241
+ "hookRunId": "<hook-run>",
242
+ "hookName": "PreToolUse",
243
+ "toolName": "read",
244
+ "toolCallId": "ghost",
245
+ "extensionPath": "<inline:1>",
246
+ "startedAt": 1793491200000,
247
+ "phase": "update",
248
+ "statusMessage": "checking",
249
+ "sessionId": "rpc-1",
250
+ "callUnknown": true
251
+ },
252
+ {
253
+ "type": "tool_hook_status",
254
+ "hookRunId": "<hook-run>",
255
+ "hookName": "PreToolUse",
256
+ "toolName": "read",
257
+ "toolCallId": "ghost",
258
+ "extensionPath": "<inline:1>",
259
+ "startedAt": 1793491200000,
260
+ "phase": "end",
261
+ "statusMessage": "checking",
262
+ "completedAt": 1793491200000,
263
+ "status": "completed",
264
+ "sessionId": "rpc-1",
265
+ "callUnknown": true
266
+ },
267
+ {
268
+ "type": "message_update",
269
+ "assistantMessageEvent": {
270
+ "type": "toolcall_start",
271
+ "contentIndex": 0,
272
+ "partial": {
273
+ "role": "assistant",
274
+ "content": [
275
+ {
276
+ "type": "toolCall",
277
+ "id": "reused",
278
+ "name": "probe",
279
+ "arguments": {
280
+ "step": "two"
281
+ }
282
+ }
283
+ ],
284
+ "api": "faux:fixture",
285
+ "provider": "faux",
286
+ "model": "faux-a",
287
+ "usage": {
288
+ "input": "<tokens>",
289
+ "output": "<tokens>",
290
+ "cacheRead": "<tokens>",
291
+ "cacheWrite": "<tokens>",
292
+ "totalTokens": "<tokens>",
293
+ "cost": {
294
+ "input": 0,
295
+ "output": 0,
296
+ "cacheRead": 0,
297
+ "cacheWrite": 0,
298
+ "total": 0
299
+ }
300
+ },
301
+ "stopReason": "pending",
302
+ "timestamp": 1
303
+ }
304
+ },
305
+ "message": {
306
+ "role": "assistant",
307
+ "content": [
308
+ {
309
+ "type": "toolCall",
310
+ "id": "reused",
311
+ "name": "probe",
312
+ "arguments": {
313
+ "step": "two"
314
+ }
315
+ }
316
+ ],
317
+ "api": "faux:fixture",
318
+ "provider": "faux",
319
+ "model": "faux-a",
320
+ "usage": {
321
+ "input": "<tokens>",
322
+ "output": "<tokens>",
323
+ "cacheRead": "<tokens>",
324
+ "cacheWrite": "<tokens>",
325
+ "totalTokens": "<tokens>",
326
+ "cost": {
327
+ "input": 0,
328
+ "output": 0,
329
+ "cacheRead": 0,
330
+ "cacheWrite": 0,
331
+ "total": 0
332
+ }
333
+ },
334
+ "stopReason": "pending",
335
+ "timestamp": 1
336
+ },
337
+ "resolvedToolName": "probe",
338
+ "sessionId": "rpc-1",
339
+ "runtimeItemKey": "call-2"
340
+ },
341
+ {
342
+ "type": "message_update",
343
+ "assistantMessageEvent": {
344
+ "type": "toolcall_end",
345
+ "contentIndex": 0,
346
+ "toolCall": {
347
+ "type": "toolCall",
348
+ "id": "reused",
349
+ "name": "probe",
350
+ "arguments": {
351
+ "step": "two"
352
+ }
353
+ },
354
+ "partial": {
355
+ "role": "assistant",
356
+ "content": [
357
+ {
358
+ "type": "toolCall",
359
+ "id": "reused",
360
+ "name": "probe",
361
+ "arguments": {
362
+ "step": "two"
363
+ }
364
+ }
365
+ ],
366
+ "api": "faux:fixture",
367
+ "provider": "faux",
368
+ "model": "faux-a",
369
+ "usage": {
370
+ "input": "<tokens>",
371
+ "output": "<tokens>",
372
+ "cacheRead": "<tokens>",
373
+ "cacheWrite": "<tokens>",
374
+ "totalTokens": "<tokens>",
375
+ "cost": {
376
+ "input": 0,
377
+ "output": 0,
378
+ "cacheRead": 0,
379
+ "cacheWrite": 0,
380
+ "total": 0
381
+ }
382
+ },
383
+ "stopReason": "pending",
384
+ "timestamp": 1
385
+ }
386
+ },
387
+ "message": {
388
+ "role": "assistant",
389
+ "content": [
390
+ {
391
+ "type": "toolCall",
392
+ "id": "reused",
393
+ "name": "probe",
394
+ "arguments": {
395
+ "step": "two"
396
+ }
397
+ }
398
+ ],
399
+ "api": "faux:fixture",
400
+ "provider": "faux",
401
+ "model": "faux-a",
402
+ "usage": {
403
+ "input": "<tokens>",
404
+ "output": "<tokens>",
405
+ "cacheRead": "<tokens>",
406
+ "cacheWrite": "<tokens>",
407
+ "totalTokens": "<tokens>",
408
+ "cost": {
409
+ "input": 0,
410
+ "output": 0,
411
+ "cacheRead": 0,
412
+ "cacheWrite": 0,
413
+ "total": 0
414
+ }
415
+ },
416
+ "stopReason": "pending",
417
+ "timestamp": 1
418
+ },
419
+ "resolvedToolName": "probe",
420
+ "sessionId": "rpc-1",
421
+ "runtimeItemKey": "call-2"
422
+ },
423
+ {
424
+ "type": "tool_execution_start",
425
+ "toolCallId": "reused",
426
+ "toolName": "probe",
427
+ "args": {
428
+ "step": "two"
429
+ },
430
+ "sessionId": "rpc-1",
431
+ "runtimeItemKey": "call-2"
432
+ },
433
+ {
434
+ "type": "tool_hook_status",
435
+ "hookRunId": "<hook-run>",
436
+ "hookName": "PreToolUse",
437
+ "toolName": "probe",
438
+ "toolCallId": "reused",
439
+ "extensionPath": "<inline:1>",
440
+ "startedAt": 1793491200000,
441
+ "phase": "start",
442
+ "statusMessage": "running inline:1",
443
+ "sessionId": "rpc-1",
444
+ "runtimeItemKey": "call-2"
445
+ },
446
+ {
447
+ "type": "tool_hook_status",
448
+ "hookRunId": "<hook-run>",
449
+ "hookName": "PreToolUse",
450
+ "toolName": "probe",
451
+ "toolCallId": "reused",
452
+ "extensionPath": "<inline:1>",
453
+ "startedAt": 1793491200000,
454
+ "phase": "update",
455
+ "statusMessage": "checking",
456
+ "sessionId": "rpc-1",
457
+ "runtimeItemKey": "call-2"
458
+ },
459
+ {
460
+ "type": "tool_hook_status",
461
+ "hookRunId": "<hook-run>",
462
+ "hookName": "PreToolUse",
463
+ "toolName": "probe",
464
+ "toolCallId": "reused",
465
+ "extensionPath": "<inline:1>",
466
+ "startedAt": 1793491200000,
467
+ "phase": "end",
468
+ "statusMessage": "checking",
469
+ "completedAt": 1793491200000,
470
+ "status": "completed",
471
+ "sessionId": "rpc-1",
472
+ "runtimeItemKey": "call-2"
473
+ },
474
+ {
475
+ "type": "tool_execution_update",
476
+ "toolCallId": "reused",
477
+ "toolName": "probe",
478
+ "args": {
479
+ "step": "two"
480
+ },
481
+ "partialResult": {
482
+ "content": [
483
+ {
484
+ "type": "text",
485
+ "text": "halfway"
486
+ }
487
+ ],
488
+ "details": {}
489
+ },
490
+ "sessionId": "rpc-1",
491
+ "runtimeItemKey": "call-2"
492
+ },
493
+ {
494
+ "type": "tool_execution_end",
495
+ "toolCallId": "reused",
496
+ "toolName": "probe",
497
+ "result": {
498
+ "content": [
499
+ {
500
+ "type": "text",
501
+ "text": "probed"
502
+ }
503
+ ],
504
+ "details": {}
505
+ },
506
+ "isError": false,
507
+ "sessionId": "rpc-1",
508
+ "runtimeItemKey": "call-2"
509
+ }
510
+ ],
511
+ "legacy": [
512
+ {
513
+ "type": "message_update",
514
+ "assistantMessageEvent": {
515
+ "type": "toolcall_start",
516
+ "contentIndex": 0,
517
+ "partial": {
518
+ "role": "assistant",
519
+ "content": [
520
+ {
521
+ "type": "toolCall",
522
+ "id": "reused",
523
+ "name": "read",
524
+ "arguments": {
525
+ "path": "note.txt"
526
+ }
527
+ }
528
+ ],
529
+ "api": "faux:fixture",
530
+ "provider": "faux",
531
+ "model": "faux-a",
532
+ "usage": {
533
+ "input": "<tokens>",
534
+ "output": "<tokens>",
535
+ "cacheRead": "<tokens>",
536
+ "cacheWrite": "<tokens>",
537
+ "totalTokens": "<tokens>",
538
+ "cost": {
539
+ "input": 0,
540
+ "output": 0,
541
+ "cacheRead": 0,
542
+ "cacheWrite": 0,
543
+ "total": 0
544
+ }
545
+ },
546
+ "stopReason": "pending",
547
+ "timestamp": 1
548
+ }
549
+ },
550
+ "message": {
551
+ "role": "assistant",
552
+ "content": [
553
+ {
554
+ "type": "toolCall",
555
+ "id": "reused",
556
+ "name": "read",
557
+ "arguments": {
558
+ "path": "note.txt"
559
+ }
560
+ }
561
+ ],
562
+ "api": "faux:fixture",
563
+ "provider": "faux",
564
+ "model": "faux-a",
565
+ "usage": {
566
+ "input": "<tokens>",
567
+ "output": "<tokens>",
568
+ "cacheRead": "<tokens>",
569
+ "cacheWrite": "<tokens>",
570
+ "totalTokens": "<tokens>",
571
+ "cost": {
572
+ "input": 0,
573
+ "output": 0,
574
+ "cacheRead": 0,
575
+ "cacheWrite": 0,
576
+ "total": 0
577
+ }
578
+ },
579
+ "stopReason": "pending",
580
+ "timestamp": 1
581
+ },
582
+ "resolvedToolName": "read",
583
+ "sessionId": "rpc-1"
584
+ },
585
+ {
586
+ "type": "message_update",
587
+ "assistantMessageEvent": {
588
+ "type": "toolcall_end",
589
+ "contentIndex": 0,
590
+ "toolCall": {
591
+ "type": "toolCall",
592
+ "id": "reused",
593
+ "name": "read",
594
+ "arguments": {
595
+ "path": "note.txt"
596
+ }
597
+ },
598
+ "partial": {
599
+ "role": "assistant",
600
+ "content": [
601
+ {
602
+ "type": "toolCall",
603
+ "id": "reused",
604
+ "name": "read",
605
+ "arguments": {
606
+ "path": "note.txt"
607
+ }
608
+ }
609
+ ],
610
+ "api": "faux:fixture",
611
+ "provider": "faux",
612
+ "model": "faux-a",
613
+ "usage": {
614
+ "input": "<tokens>",
615
+ "output": "<tokens>",
616
+ "cacheRead": "<tokens>",
617
+ "cacheWrite": "<tokens>",
618
+ "totalTokens": "<tokens>",
619
+ "cost": {
620
+ "input": 0,
621
+ "output": 0,
622
+ "cacheRead": 0,
623
+ "cacheWrite": 0,
624
+ "total": 0
625
+ }
626
+ },
627
+ "stopReason": "pending",
628
+ "timestamp": 1
629
+ }
630
+ },
631
+ "message": {
632
+ "role": "assistant",
633
+ "content": [
634
+ {
635
+ "type": "toolCall",
636
+ "id": "reused",
637
+ "name": "read",
638
+ "arguments": {
639
+ "path": "note.txt"
640
+ }
641
+ }
642
+ ],
643
+ "api": "faux:fixture",
644
+ "provider": "faux",
645
+ "model": "faux-a",
646
+ "usage": {
647
+ "input": "<tokens>",
648
+ "output": "<tokens>",
649
+ "cacheRead": "<tokens>",
650
+ "cacheWrite": "<tokens>",
651
+ "totalTokens": "<tokens>",
652
+ "cost": {
653
+ "input": 0,
654
+ "output": 0,
655
+ "cacheRead": 0,
656
+ "cacheWrite": 0,
657
+ "total": 0
658
+ }
659
+ },
660
+ "stopReason": "pending",
661
+ "timestamp": 1
662
+ },
663
+ "resolvedToolName": "read",
664
+ "sessionId": "rpc-1"
665
+ },
666
+ {
667
+ "type": "tool_execution_start",
668
+ "toolCallId": "reused",
669
+ "toolName": "read",
670
+ "args": {
671
+ "path": "note.txt"
672
+ },
673
+ "sessionId": "rpc-1"
674
+ },
675
+ {
676
+ "type": "tool_hook_status",
677
+ "hookRunId": "<hook-run>",
678
+ "hookName": "PreToolUse",
679
+ "toolName": "read",
680
+ "toolCallId": "reused",
681
+ "extensionPath": "<inline:1>",
682
+ "startedAt": 1793491200000,
683
+ "phase": "start",
684
+ "statusMessage": "running inline:1",
685
+ "sessionId": "rpc-1"
686
+ },
687
+ {
688
+ "type": "tool_hook_status",
689
+ "hookRunId": "<hook-run>",
690
+ "hookName": "PreToolUse",
691
+ "toolName": "read",
692
+ "toolCallId": "reused",
693
+ "extensionPath": "<inline:1>",
694
+ "startedAt": 1793491200000,
695
+ "phase": "update",
696
+ "statusMessage": "checking",
697
+ "sessionId": "rpc-1"
698
+ },
699
+ {
700
+ "type": "tool_hook_status",
701
+ "hookRunId": "<hook-run>",
702
+ "hookName": "PreToolUse",
703
+ "toolName": "read",
704
+ "toolCallId": "reused",
705
+ "extensionPath": "<inline:1>",
706
+ "startedAt": 1793491200000,
707
+ "phase": "end",
708
+ "statusMessage": "checking",
709
+ "completedAt": 1793491200000,
710
+ "status": "completed",
711
+ "sessionId": "rpc-1"
712
+ },
713
+ {
714
+ "type": "tool_execution_end",
715
+ "toolCallId": "reused",
716
+ "toolName": "read",
717
+ "result": {
718
+ "content": [
719
+ {
720
+ "type": "text",
721
+ "text": "note body\n"
722
+ }
723
+ ]
724
+ },
725
+ "isError": false,
726
+ "sessionId": "rpc-1"
727
+ },
728
+ {
729
+ "type": "tool_hook_status",
730
+ "hookRunId": "<hook-run>",
731
+ "hookName": "PreToolUse",
732
+ "toolName": "read",
733
+ "toolCallId": "ghost",
734
+ "extensionPath": "<inline:1>",
735
+ "startedAt": 1793491200000,
736
+ "phase": "start",
737
+ "statusMessage": "running inline:1",
738
+ "sessionId": "rpc-1"
739
+ },
740
+ {
741
+ "type": "tool_hook_status",
742
+ "hookRunId": "<hook-run>",
743
+ "hookName": "PreToolUse",
744
+ "toolName": "read",
745
+ "toolCallId": "ghost",
746
+ "extensionPath": "<inline:1>",
747
+ "startedAt": 1793491200000,
748
+ "phase": "update",
749
+ "statusMessage": "checking",
750
+ "sessionId": "rpc-1"
751
+ },
752
+ {
753
+ "type": "tool_hook_status",
754
+ "hookRunId": "<hook-run>",
755
+ "hookName": "PreToolUse",
756
+ "toolName": "read",
757
+ "toolCallId": "ghost",
758
+ "extensionPath": "<inline:1>",
759
+ "startedAt": 1793491200000,
760
+ "phase": "end",
761
+ "statusMessage": "checking",
762
+ "completedAt": 1793491200000,
763
+ "status": "completed",
764
+ "sessionId": "rpc-1"
765
+ },
766
+ {
767
+ "type": "message_update",
768
+ "assistantMessageEvent": {
769
+ "type": "toolcall_start",
770
+ "contentIndex": 0,
771
+ "partial": {
772
+ "role": "assistant",
773
+ "content": [
774
+ {
775
+ "type": "toolCall",
776
+ "id": "reused",
777
+ "name": "probe",
778
+ "arguments": {
779
+ "step": "two"
780
+ }
781
+ }
782
+ ],
783
+ "api": "faux:fixture",
784
+ "provider": "faux",
785
+ "model": "faux-a",
786
+ "usage": {
787
+ "input": "<tokens>",
788
+ "output": "<tokens>",
789
+ "cacheRead": "<tokens>",
790
+ "cacheWrite": "<tokens>",
791
+ "totalTokens": "<tokens>",
792
+ "cost": {
793
+ "input": 0,
794
+ "output": 0,
795
+ "cacheRead": 0,
796
+ "cacheWrite": 0,
797
+ "total": 0
798
+ }
799
+ },
800
+ "stopReason": "pending",
801
+ "timestamp": 1
802
+ }
803
+ },
804
+ "message": {
805
+ "role": "assistant",
806
+ "content": [
807
+ {
808
+ "type": "toolCall",
809
+ "id": "reused",
810
+ "name": "probe",
811
+ "arguments": {
812
+ "step": "two"
813
+ }
814
+ }
815
+ ],
816
+ "api": "faux:fixture",
817
+ "provider": "faux",
818
+ "model": "faux-a",
819
+ "usage": {
820
+ "input": "<tokens>",
821
+ "output": "<tokens>",
822
+ "cacheRead": "<tokens>",
823
+ "cacheWrite": "<tokens>",
824
+ "totalTokens": "<tokens>",
825
+ "cost": {
826
+ "input": 0,
827
+ "output": 0,
828
+ "cacheRead": 0,
829
+ "cacheWrite": 0,
830
+ "total": 0
831
+ }
832
+ },
833
+ "stopReason": "pending",
834
+ "timestamp": 1
835
+ },
836
+ "resolvedToolName": "probe",
837
+ "sessionId": "rpc-1"
838
+ },
839
+ {
840
+ "type": "message_update",
841
+ "assistantMessageEvent": {
842
+ "type": "toolcall_end",
843
+ "contentIndex": 0,
844
+ "toolCall": {
845
+ "type": "toolCall",
846
+ "id": "reused",
847
+ "name": "probe",
848
+ "arguments": {
849
+ "step": "two"
850
+ }
851
+ },
852
+ "partial": {
853
+ "role": "assistant",
854
+ "content": [
855
+ {
856
+ "type": "toolCall",
857
+ "id": "reused",
858
+ "name": "probe",
859
+ "arguments": {
860
+ "step": "two"
861
+ }
862
+ }
863
+ ],
864
+ "api": "faux:fixture",
865
+ "provider": "faux",
866
+ "model": "faux-a",
867
+ "usage": {
868
+ "input": "<tokens>",
869
+ "output": "<tokens>",
870
+ "cacheRead": "<tokens>",
871
+ "cacheWrite": "<tokens>",
872
+ "totalTokens": "<tokens>",
873
+ "cost": {
874
+ "input": 0,
875
+ "output": 0,
876
+ "cacheRead": 0,
877
+ "cacheWrite": 0,
878
+ "total": 0
879
+ }
880
+ },
881
+ "stopReason": "pending",
882
+ "timestamp": 1
883
+ }
884
+ },
885
+ "message": {
886
+ "role": "assistant",
887
+ "content": [
888
+ {
889
+ "type": "toolCall",
890
+ "id": "reused",
891
+ "name": "probe",
892
+ "arguments": {
893
+ "step": "two"
894
+ }
895
+ }
896
+ ],
897
+ "api": "faux:fixture",
898
+ "provider": "faux",
899
+ "model": "faux-a",
900
+ "usage": {
901
+ "input": "<tokens>",
902
+ "output": "<tokens>",
903
+ "cacheRead": "<tokens>",
904
+ "cacheWrite": "<tokens>",
905
+ "totalTokens": "<tokens>",
906
+ "cost": {
907
+ "input": 0,
908
+ "output": 0,
909
+ "cacheRead": 0,
910
+ "cacheWrite": 0,
911
+ "total": 0
912
+ }
913
+ },
914
+ "stopReason": "pending",
915
+ "timestamp": 1
916
+ },
917
+ "resolvedToolName": "probe",
918
+ "sessionId": "rpc-1"
919
+ },
920
+ {
921
+ "type": "tool_execution_start",
922
+ "toolCallId": "reused",
923
+ "toolName": "probe",
924
+ "args": {
925
+ "step": "two"
926
+ },
927
+ "sessionId": "rpc-1"
928
+ },
929
+ {
930
+ "type": "tool_hook_status",
931
+ "hookRunId": "<hook-run>",
932
+ "hookName": "PreToolUse",
933
+ "toolName": "probe",
934
+ "toolCallId": "reused",
935
+ "extensionPath": "<inline:1>",
936
+ "startedAt": 1793491200000,
937
+ "phase": "start",
938
+ "statusMessage": "running inline:1",
939
+ "sessionId": "rpc-1"
940
+ },
941
+ {
942
+ "type": "tool_hook_status",
943
+ "hookRunId": "<hook-run>",
944
+ "hookName": "PreToolUse",
945
+ "toolName": "probe",
946
+ "toolCallId": "reused",
947
+ "extensionPath": "<inline:1>",
948
+ "startedAt": 1793491200000,
949
+ "phase": "update",
950
+ "statusMessage": "checking",
951
+ "sessionId": "rpc-1"
952
+ },
953
+ {
954
+ "type": "tool_hook_status",
955
+ "hookRunId": "<hook-run>",
956
+ "hookName": "PreToolUse",
957
+ "toolName": "probe",
958
+ "toolCallId": "reused",
959
+ "extensionPath": "<inline:1>",
960
+ "startedAt": 1793491200000,
961
+ "phase": "end",
962
+ "statusMessage": "checking",
963
+ "completedAt": 1793491200000,
964
+ "status": "completed",
965
+ "sessionId": "rpc-1"
966
+ },
967
+ {
968
+ "type": "tool_execution_update",
969
+ "toolCallId": "reused",
970
+ "toolName": "probe",
971
+ "args": {
972
+ "step": "two"
973
+ },
974
+ "partialResult": {
975
+ "content": [
976
+ {
977
+ "type": "text",
978
+ "text": "halfway"
979
+ }
980
+ ],
981
+ "details": {}
982
+ },
983
+ "sessionId": "rpc-1"
984
+ },
985
+ {
986
+ "type": "tool_execution_end",
987
+ "toolCallId": "reused",
988
+ "toolName": "probe",
989
+ "result": {
990
+ "content": [
991
+ {
992
+ "type": "text",
993
+ "text": "probed"
994
+ }
995
+ ],
996
+ "details": {}
997
+ },
998
+ "isError": false,
999
+ "sessionId": "rpc-1"
1000
+ }
1001
+ ],
1002
+ "snapshot": {
1003
+ "calls": [
1004
+ {
1005
+ "runtimeItemKey": "call-2",
1006
+ "toolCallId": "reused",
1007
+ "requestedName": "probe",
1008
+ "phase": "executing"
1009
+ }
1010
+ ],
1011
+ "settled": [
1012
+ {
1013
+ "runtimeItemKey": "call-1",
1014
+ "role": "toolResult",
1015
+ "status": "failed",
1016
+ "toolCallId": "reused"
1017
+ }
1018
+ ]
1019
+ }
1020
+ }