@anureo/adapter-pi 0.0.0-stage → 0.3.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.
@@ -0,0 +1,792 @@
1
+ {
2
+ "provenance": {
3
+ "piVersion": "1.5.2",
4
+ "model": "zai/glm-5.3-flash",
5
+ "recordedAt": "2026-11-11T12:08:46.801Z"
6
+ },
7
+ "events": [
8
+ {
9
+ "type": "agent_start"
10
+ },
11
+ {
12
+ "type": "message_start",
13
+ "message": {
14
+ "role": "system",
15
+ "content": "",
16
+ "timestamp": 1794398918837
17
+ }
18
+ },
19
+ {
20
+ "type": "message_end",
21
+ "message": {
22
+ "role": "system",
23
+ "content": "",
24
+ "timestamp": 1794398918837
25
+ }
26
+ },
27
+ {
28
+ "type": "message_start",
29
+ "message": {
30
+ "role": "user",
31
+ "content": [
32
+ {
33
+ "type": "text",
34
+ "text": "Run `echo hello` with the bash tool, then say done."
35
+ }
36
+ ],
37
+ "timestamp": 1794398918836
38
+ }
39
+ },
40
+ {
41
+ "type": "message_end",
42
+ "message": {
43
+ "role": "user",
44
+ "content": [
45
+ {
46
+ "type": "text",
47
+ "text": "Run `echo hello` with the bash tool, then say done."
48
+ }
49
+ ],
50
+ "timestamp": 1794398918836
51
+ }
52
+ },
53
+ {
54
+ "type": "message_start",
55
+ "message": {
56
+ "role": "assistant",
57
+ "content": [
58
+ {
59
+ "type": "toolCall",
60
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
61
+ "name": "bash",
62
+ "arguments": {}
63
+ }
64
+ ],
65
+ "stopReason": "pending",
66
+ "model": "glm-5.3-flash",
67
+ "provider": "zai",
68
+ "timestamp": 1794398918869,
69
+ "usage": {
70
+ "input": 0,
71
+ "output": 0,
72
+ "cacheRead": 0,
73
+ "cacheWrite": 0,
74
+ "totalTokens": 0
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "type": "message_update",
80
+ "message": {
81
+ "role": "assistant",
82
+ "content": [
83
+ {
84
+ "type": "toolCall",
85
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
86
+ "name": "bash",
87
+ "arguments": {}
88
+ }
89
+ ],
90
+ "stopReason": "pending",
91
+ "model": "glm-5.3-flash",
92
+ "provider": "zai",
93
+ "timestamp": 1794398918869,
94
+ "usage": {
95
+ "input": 0,
96
+ "output": 0,
97
+ "cacheRead": 0,
98
+ "cacheWrite": 0,
99
+ "totalTokens": 0
100
+ }
101
+ },
102
+ "update": {
103
+ "kind": "toolcall",
104
+ "phase": "start",
105
+ "index": 0
106
+ }
107
+ },
108
+ {
109
+ "type": "message_update",
110
+ "message": {
111
+ "role": "assistant",
112
+ "content": [
113
+ {
114
+ "type": "toolCall",
115
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
116
+ "name": "bash",
117
+ "arguments": {
118
+ "command": ""
119
+ }
120
+ }
121
+ ],
122
+ "stopReason": "pending",
123
+ "model": "glm-5.3-flash",
124
+ "provider": "zai",
125
+ "timestamp": 1794398918869,
126
+ "usage": {
127
+ "input": 0,
128
+ "output": 0,
129
+ "cacheRead": 0,
130
+ "cacheWrite": 0,
131
+ "totalTokens": 0
132
+ }
133
+ },
134
+ "update": {
135
+ "kind": "toolcall",
136
+ "phase": "delta",
137
+ "index": 0,
138
+ "delta": "{\""
139
+ }
140
+ },
141
+ {
142
+ "type": "message_update",
143
+ "message": {
144
+ "role": "assistant",
145
+ "content": [
146
+ {
147
+ "type": "toolCall",
148
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
149
+ "name": "bash",
150
+ "arguments": {
151
+ "command": ""
152
+ }
153
+ }
154
+ ],
155
+ "stopReason": "pending",
156
+ "model": "glm-5.3-flash",
157
+ "provider": "zai",
158
+ "timestamp": 1794398918869,
159
+ "usage": {
160
+ "input": 0,
161
+ "output": 0,
162
+ "cacheRead": 0,
163
+ "cacheWrite": 0,
164
+ "totalTokens": 0
165
+ }
166
+ },
167
+ "update": {
168
+ "kind": "toolcall",
169
+ "phase": "delta",
170
+ "index": 0,
171
+ "delta": "command"
172
+ }
173
+ },
174
+ {
175
+ "type": "message_update",
176
+ "message": {
177
+ "role": "assistant",
178
+ "content": [
179
+ {
180
+ "type": "toolCall",
181
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
182
+ "name": "bash",
183
+ "arguments": {
184
+ "command": ""
185
+ }
186
+ }
187
+ ],
188
+ "stopReason": "pending",
189
+ "model": "glm-5.3-flash",
190
+ "provider": "zai",
191
+ "timestamp": 1794398918869,
192
+ "usage": {
193
+ "input": 0,
194
+ "output": 0,
195
+ "cacheRead": 0,
196
+ "cacheWrite": 0,
197
+ "totalTokens": 0
198
+ }
199
+ },
200
+ "update": {
201
+ "kind": "toolcall",
202
+ "phase": "delta",
203
+ "index": 0,
204
+ "delta": "\":\""
205
+ }
206
+ },
207
+ {
208
+ "type": "message_update",
209
+ "message": {
210
+ "role": "assistant",
211
+ "content": [
212
+ {
213
+ "type": "toolCall",
214
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
215
+ "name": "bash",
216
+ "arguments": {
217
+ "command": "echo hello"
218
+ }
219
+ }
220
+ ],
221
+ "stopReason": "pending",
222
+ "model": "glm-5.3-flash",
223
+ "provider": "zai",
224
+ "timestamp": 1794398918869,
225
+ "usage": {
226
+ "input": 0,
227
+ "output": 0,
228
+ "cacheRead": 0,
229
+ "cacheWrite": 0,
230
+ "totalTokens": 0
231
+ }
232
+ },
233
+ "update": {
234
+ "kind": "toolcall",
235
+ "phase": "delta",
236
+ "index": 0,
237
+ "delta": "echo"
238
+ }
239
+ },
240
+ {
241
+ "type": "message_update",
242
+ "message": {
243
+ "role": "assistant",
244
+ "content": [
245
+ {
246
+ "type": "toolCall",
247
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
248
+ "name": "bash",
249
+ "arguments": {
250
+ "command": "echo hello"
251
+ }
252
+ }
253
+ ],
254
+ "stopReason": "pending",
255
+ "model": "glm-5.3-flash",
256
+ "provider": "zai",
257
+ "timestamp": 1794398918869,
258
+ "usage": {
259
+ "input": 0,
260
+ "output": 0,
261
+ "cacheRead": 0,
262
+ "cacheWrite": 0,
263
+ "totalTokens": 0
264
+ }
265
+ },
266
+ "update": {
267
+ "kind": "toolcall",
268
+ "phase": "delta",
269
+ "index": 0,
270
+ "delta": " hello"
271
+ }
272
+ },
273
+ {
274
+ "type": "message_update",
275
+ "message": {
276
+ "role": "assistant",
277
+ "content": [
278
+ {
279
+ "type": "toolCall",
280
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
281
+ "name": "bash",
282
+ "arguments": {
283
+ "command": "echo hello"
284
+ }
285
+ }
286
+ ],
287
+ "stopReason": "pending",
288
+ "model": "glm-5.3-flash",
289
+ "provider": "zai",
290
+ "timestamp": 1794398918869,
291
+ "usage": {
292
+ "input": 0,
293
+ "output": 0,
294
+ "cacheRead": 0,
295
+ "cacheWrite": 0,
296
+ "totalTokens": 0
297
+ }
298
+ },
299
+ "update": {
300
+ "kind": "toolcall",
301
+ "phase": "delta",
302
+ "index": 0,
303
+ "delta": "\""
304
+ }
305
+ },
306
+ {
307
+ "type": "message_update",
308
+ "message": {
309
+ "role": "assistant",
310
+ "content": [
311
+ {
312
+ "type": "toolCall",
313
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
314
+ "name": "bash",
315
+ "arguments": {
316
+ "command": "echo hello"
317
+ }
318
+ }
319
+ ],
320
+ "stopReason": "pending",
321
+ "model": "glm-5.3-flash",
322
+ "provider": "zai",
323
+ "timestamp": 1794398918869,
324
+ "usage": {
325
+ "input": 0,
326
+ "output": 0,
327
+ "cacheRead": 0,
328
+ "cacheWrite": 0,
329
+ "totalTokens": 0
330
+ }
331
+ },
332
+ "update": {
333
+ "kind": "toolcall",
334
+ "phase": "delta",
335
+ "index": 0,
336
+ "delta": ",\""
337
+ }
338
+ },
339
+ {
340
+ "type": "message_update",
341
+ "message": {
342
+ "role": "assistant",
343
+ "content": [
344
+ {
345
+ "type": "toolCall",
346
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
347
+ "name": "bash",
348
+ "arguments": {
349
+ "command": "echo hello"
350
+ }
351
+ }
352
+ ],
353
+ "stopReason": "pending",
354
+ "model": "glm-5.3-flash",
355
+ "provider": "zai",
356
+ "timestamp": 1794398918869,
357
+ "usage": {
358
+ "input": 0,
359
+ "output": 0,
360
+ "cacheRead": 0,
361
+ "cacheWrite": 0,
362
+ "totalTokens": 0
363
+ }
364
+ },
365
+ "update": {
366
+ "kind": "toolcall",
367
+ "phase": "delta",
368
+ "index": 0,
369
+ "delta": "timeout"
370
+ }
371
+ },
372
+ {
373
+ "type": "message_update",
374
+ "message": {
375
+ "role": "assistant",
376
+ "content": [
377
+ {
378
+ "type": "toolCall",
379
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
380
+ "name": "bash",
381
+ "arguments": {
382
+ "command": "echo hello",
383
+ "timeout": 10
384
+ }
385
+ }
386
+ ],
387
+ "stopReason": "pending",
388
+ "model": "glm-5.3-flash",
389
+ "provider": "zai",
390
+ "timestamp": 1794398918869,
391
+ "usage": {
392
+ "input": 0,
393
+ "output": 0,
394
+ "cacheRead": 0,
395
+ "cacheWrite": 0,
396
+ "totalTokens": 0
397
+ }
398
+ },
399
+ "update": {
400
+ "kind": "toolcall",
401
+ "phase": "delta",
402
+ "index": 0,
403
+ "delta": "\":"
404
+ }
405
+ },
406
+ {
407
+ "type": "message_update",
408
+ "message": {
409
+ "role": "assistant",
410
+ "content": [
411
+ {
412
+ "type": "toolCall",
413
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
414
+ "name": "bash",
415
+ "arguments": {
416
+ "command": "echo hello",
417
+ "timeout": 10
418
+ }
419
+ }
420
+ ],
421
+ "stopReason": "pending",
422
+ "model": "glm-5.3-flash",
423
+ "provider": "zai",
424
+ "timestamp": 1794398918869,
425
+ "usage": {
426
+ "input": 0,
427
+ "output": 0,
428
+ "cacheRead": 0,
429
+ "cacheWrite": 0,
430
+ "totalTokens": 0
431
+ }
432
+ },
433
+ "update": {
434
+ "kind": "toolcall",
435
+ "phase": "delta",
436
+ "index": 0,
437
+ "delta": "10"
438
+ }
439
+ },
440
+ {
441
+ "type": "message_update",
442
+ "message": {
443
+ "role": "assistant",
444
+ "content": [
445
+ {
446
+ "type": "toolCall",
447
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
448
+ "name": "bash",
449
+ "arguments": {
450
+ "command": "echo hello",
451
+ "timeout": 10
452
+ }
453
+ }
454
+ ],
455
+ "stopReason": "pending",
456
+ "model": "glm-5.3-flash",
457
+ "provider": "zai",
458
+ "timestamp": 1794398918869,
459
+ "usage": {
460
+ "input": 0,
461
+ "output": 0,
462
+ "cacheRead": 0,
463
+ "cacheWrite": 0,
464
+ "totalTokens": 0
465
+ }
466
+ },
467
+ "update": {
468
+ "kind": "toolcall",
469
+ "phase": "delta",
470
+ "index": 0,
471
+ "delta": ""
472
+ }
473
+ },
474
+ {
475
+ "type": "message_update",
476
+ "message": {
477
+ "role": "assistant",
478
+ "content": [
479
+ {
480
+ "type": "toolCall",
481
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
482
+ "name": "bash",
483
+ "arguments": {
484
+ "command": "echo hello",
485
+ "timeout": 10
486
+ }
487
+ }
488
+ ],
489
+ "stopReason": "toolUse",
490
+ "model": "glm-5.3-flash",
491
+ "provider": "zai",
492
+ "timestamp": 1794398918869,
493
+ "usage": {
494
+ "input": 3326,
495
+ "output": 18,
496
+ "cacheRead": 0,
497
+ "cacheWrite": 0,
498
+ "totalTokens": 3344
499
+ }
500
+ },
501
+ "update": {
502
+ "kind": "toolcall",
503
+ "phase": "delta",
504
+ "index": 0,
505
+ "delta": "}"
506
+ }
507
+ },
508
+ {
509
+ "type": "message_update",
510
+ "message": {
511
+ "role": "assistant",
512
+ "content": [
513
+ {
514
+ "type": "toolCall",
515
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
516
+ "name": "bash",
517
+ "arguments": {
518
+ "command": "echo hello",
519
+ "timeout": 10
520
+ }
521
+ }
522
+ ],
523
+ "stopReason": "toolUse",
524
+ "model": "glm-5.3-flash",
525
+ "provider": "zai",
526
+ "timestamp": 1794398918869,
527
+ "usage": {
528
+ "input": 3326,
529
+ "output": 18,
530
+ "cacheRead": 0,
531
+ "cacheWrite": 0,
532
+ "totalTokens": 3344
533
+ }
534
+ },
535
+ "update": {
536
+ "kind": "toolcall",
537
+ "phase": "end",
538
+ "index": 0
539
+ }
540
+ },
541
+ {
542
+ "type": "message_end",
543
+ "message": {
544
+ "role": "assistant",
545
+ "content": [
546
+ {
547
+ "type": "toolCall",
548
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
549
+ "name": "bash",
550
+ "arguments": {
551
+ "command": "echo hello",
552
+ "timeout": 10
553
+ }
554
+ }
555
+ ],
556
+ "stopReason": "toolUse",
557
+ "model": "glm-5.3-flash",
558
+ "provider": "zai",
559
+ "timestamp": 1794398918869,
560
+ "usage": {
561
+ "input": 3326,
562
+ "output": 18,
563
+ "cacheRead": 0,
564
+ "cacheWrite": 0,
565
+ "totalTokens": 3344
566
+ }
567
+ }
568
+ },
569
+ {
570
+ "type": "tool_start",
571
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
572
+ "name": "bash",
573
+ "args": {
574
+ "command": "echo hello",
575
+ "timeout": 10
576
+ }
577
+ },
578
+ {
579
+ "type": "tool_update",
580
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
581
+ "name": "bash",
582
+ "partial": {
583
+ "content": []
584
+ }
585
+ },
586
+ {
587
+ "type": "tool_update",
588
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
589
+ "name": "bash",
590
+ "partial": {
591
+ "content": [
592
+ {
593
+ "type": "text",
594
+ "text": "hello\n"
595
+ }
596
+ ],
597
+ "details": {}
598
+ }
599
+ },
600
+ {
601
+ "type": "tool_end",
602
+ "id": "call_267fcdea3dbc4a7891f7f7a3",
603
+ "name": "bash",
604
+ "result": {
605
+ "content": [
606
+ {
607
+ "type": "text",
608
+ "text": "hello\n"
609
+ }
610
+ ],
611
+ "structuredContent": {
612
+ "output": "hello\n",
613
+ "truncated": false,
614
+ "exit_code": 0,
615
+ "wall_time_seconds": 0
616
+ }
617
+ },
618
+ "isError": false
619
+ },
620
+ {
621
+ "type": "message_start",
622
+ "message": {
623
+ "role": "toolResult",
624
+ "content": [
625
+ {
626
+ "type": "text",
627
+ "text": "hello\n"
628
+ }
629
+ ],
630
+ "toolCallId": "call_267fcdea3dbc4a7891f7f7a3",
631
+ "toolName": "bash",
632
+ "isError": false,
633
+ "timestamp": 1794398924506
634
+ }
635
+ },
636
+ {
637
+ "type": "message_end",
638
+ "message": {
639
+ "role": "toolResult",
640
+ "content": [
641
+ {
642
+ "type": "text",
643
+ "text": "hello\n"
644
+ }
645
+ ],
646
+ "toolCallId": "call_267fcdea3dbc4a7891f7f7a3",
647
+ "toolName": "bash",
648
+ "isError": false,
649
+ "timestamp": 1794398924506
650
+ }
651
+ },
652
+ {
653
+ "type": "message_start",
654
+ "message": {
655
+ "role": "assistant",
656
+ "content": [
657
+ {
658
+ "type": "text",
659
+ "text": "Done"
660
+ }
661
+ ],
662
+ "stopReason": "pending",
663
+ "model": "glm-5.3-flash",
664
+ "provider": "zai",
665
+ "timestamp": 1794398924509,
666
+ "usage": {
667
+ "input": 0,
668
+ "output": 0,
669
+ "cacheRead": 0,
670
+ "cacheWrite": 0,
671
+ "totalTokens": 0
672
+ }
673
+ }
674
+ },
675
+ {
676
+ "type": "message_update",
677
+ "message": {
678
+ "role": "assistant",
679
+ "content": [
680
+ {
681
+ "type": "text",
682
+ "text": "Done"
683
+ }
684
+ ],
685
+ "stopReason": "pending",
686
+ "model": "glm-5.3-flash",
687
+ "provider": "zai",
688
+ "timestamp": 1794398924509,
689
+ "usage": {
690
+ "input": 0,
691
+ "output": 0,
692
+ "cacheRead": 0,
693
+ "cacheWrite": 0,
694
+ "totalTokens": 0
695
+ }
696
+ },
697
+ "update": {
698
+ "kind": "text",
699
+ "phase": "start",
700
+ "index": 0
701
+ }
702
+ },
703
+ {
704
+ "type": "message_update",
705
+ "message": {
706
+ "role": "assistant",
707
+ "content": [
708
+ {
709
+ "type": "text",
710
+ "text": "Done"
711
+ }
712
+ ],
713
+ "stopReason": "pending",
714
+ "model": "glm-5.3-flash",
715
+ "provider": "zai",
716
+ "timestamp": 1794398924509,
717
+ "usage": {
718
+ "input": 0,
719
+ "output": 0,
720
+ "cacheRead": 0,
721
+ "cacheWrite": 0,
722
+ "totalTokens": 0
723
+ }
724
+ },
725
+ "update": {
726
+ "kind": "text",
727
+ "phase": "delta",
728
+ "index": 0,
729
+ "delta": "Done"
730
+ }
731
+ },
732
+ {
733
+ "type": "message_update",
734
+ "message": {
735
+ "role": "assistant",
736
+ "content": [
737
+ {
738
+ "type": "text",
739
+ "text": "Done"
740
+ }
741
+ ],
742
+ "stopReason": "stop",
743
+ "model": "glm-5.3-flash",
744
+ "provider": "zai",
745
+ "timestamp": 1794398924509,
746
+ "usage": {
747
+ "input": 3094,
748
+ "output": 3,
749
+ "cacheRead": 256,
750
+ "cacheWrite": 0,
751
+ "totalTokens": 3353
752
+ }
753
+ },
754
+ "update": {
755
+ "kind": "text",
756
+ "phase": "end",
757
+ "index": 0
758
+ }
759
+ },
760
+ {
761
+ "type": "message_end",
762
+ "message": {
763
+ "role": "assistant",
764
+ "content": [
765
+ {
766
+ "type": "text",
767
+ "text": "Done"
768
+ }
769
+ ],
770
+ "stopReason": "stop",
771
+ "model": "glm-5.3-flash",
772
+ "provider": "zai",
773
+ "timestamp": 1794398924509,
774
+ "usage": {
775
+ "input": 3094,
776
+ "output": 3,
777
+ "cacheRead": 256,
778
+ "cacheWrite": 0,
779
+ "totalTokens": 3353
780
+ }
781
+ }
782
+ },
783
+ {
784
+ "type": "agent_end",
785
+ "willRetry": false
786
+ },
787
+ {
788
+ "type": "settled",
789
+ "aborted": false
790
+ }
791
+ ]
792
+ }