runtape 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -13,21 +13,21 @@ declare const SessionStartEvent: z.ZodObject<{
13
13
  type: z.ZodLiteral<"session_start">;
14
14
  source: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
16
+ type: "session_start";
16
17
  session_id: string;
17
18
  transcript_path: string;
18
19
  cwd: string;
19
20
  hook_event_name: string;
20
- type: "session_start";
21
21
  wall_ts: string;
22
22
  sequence: number;
23
23
  source: string;
24
24
  permission_mode?: string | undefined;
25
25
  }, {
26
+ type: "session_start";
26
27
  session_id: string;
27
28
  transcript_path: string;
28
29
  cwd: string;
29
30
  hook_event_name: string;
30
- type: "session_start";
31
31
  wall_ts: string;
32
32
  sequence: number;
33
33
  source: string;
@@ -46,21 +46,21 @@ declare const UserPromptEvent: z.ZodObject<{
46
46
  type: z.ZodLiteral<"user_prompt">;
47
47
  prompt: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
+ type: "user_prompt";
49
50
  session_id: string;
50
51
  transcript_path: string;
51
52
  cwd: string;
52
53
  hook_event_name: string;
53
- type: "user_prompt";
54
54
  wall_ts: string;
55
55
  sequence: number;
56
56
  prompt: string;
57
57
  permission_mode?: string | undefined;
58
58
  }, {
59
+ type: "user_prompt";
59
60
  session_id: string;
60
61
  transcript_path: string;
61
62
  cwd: string;
62
63
  hook_event_name: string;
63
- type: "user_prompt";
64
64
  wall_ts: string;
65
65
  sequence: number;
66
66
  prompt: string;
@@ -81,11 +81,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
81
81
  tool_input: z.ZodUnknown;
82
82
  tool_use_id: z.ZodString;
83
83
  }, "strip", z.ZodTypeAny, {
84
+ type: "tool_attempt";
84
85
  session_id: string;
85
86
  transcript_path: string;
86
87
  cwd: string;
87
88
  hook_event_name: string;
88
- type: "tool_attempt";
89
89
  wall_ts: string;
90
90
  sequence: number;
91
91
  tool_name: string;
@@ -93,11 +93,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
93
93
  permission_mode?: string | undefined;
94
94
  tool_input?: unknown;
95
95
  }, {
96
+ type: "tool_attempt";
96
97
  session_id: string;
97
98
  transcript_path: string;
98
99
  cwd: string;
99
100
  hook_event_name: string;
100
- type: "tool_attempt";
101
101
  wall_ts: string;
102
102
  sequence: number;
103
103
  tool_name: string;
@@ -121,12 +121,14 @@ declare const ToolCallEvent: z.ZodObject<{
121
121
  tool_response: z.ZodUnknown;
122
122
  tool_use_id: z.ZodString;
123
123
  duration_ms: z.ZodNumber;
124
+ is_error: z.ZodOptional<z.ZodBoolean>;
125
+ error_message: z.ZodOptional<z.ZodString>;
124
126
  }, "strip", z.ZodTypeAny, {
127
+ type: "tool_call";
125
128
  session_id: string;
126
129
  transcript_path: string;
127
130
  cwd: string;
128
131
  hook_event_name: string;
129
- type: "tool_call";
130
132
  wall_ts: string;
131
133
  sequence: number;
132
134
  tool_name: string;
@@ -135,12 +137,14 @@ declare const ToolCallEvent: z.ZodObject<{
135
137
  permission_mode?: string | undefined;
136
138
  tool_input?: unknown;
137
139
  tool_response?: unknown;
140
+ is_error?: boolean | undefined;
141
+ error_message?: string | undefined;
138
142
  }, {
143
+ type: "tool_call";
139
144
  session_id: string;
140
145
  transcript_path: string;
141
146
  cwd: string;
142
147
  hook_event_name: string;
143
- type: "tool_call";
144
148
  wall_ts: string;
145
149
  sequence: number;
146
150
  tool_name: string;
@@ -149,6 +153,59 @@ declare const ToolCallEvent: z.ZodObject<{
149
153
  permission_mode?: string | undefined;
150
154
  tool_input?: unknown;
151
155
  tool_response?: unknown;
156
+ is_error?: boolean | undefined;
157
+ error_message?: string | undefined;
158
+ }>;
159
+ declare const AssistantTurnEvent: z.ZodObject<{
160
+ session_id: z.ZodString;
161
+ transcript_path: z.ZodString;
162
+ cwd: z.ZodString;
163
+ hook_event_name: z.ZodString;
164
+ permission_mode: z.ZodOptional<z.ZodString>;
165
+ } & {
166
+ wall_ts: z.ZodString;
167
+ sequence: z.ZodNumber;
168
+ } & {
169
+ type: z.ZodLiteral<"assistant_turn">;
170
+ message_uuid: z.ZodString;
171
+ model: z.ZodString;
172
+ input_tokens: z.ZodNumber;
173
+ output_tokens: z.ZodNumber;
174
+ cache_read_tokens: z.ZodDefault<z.ZodNumber>;
175
+ cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
176
+ text: z.ZodOptional<z.ZodString>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: "assistant_turn";
179
+ session_id: string;
180
+ transcript_path: string;
181
+ cwd: string;
182
+ hook_event_name: string;
183
+ wall_ts: string;
184
+ sequence: number;
185
+ message_uuid: string;
186
+ model: string;
187
+ input_tokens: number;
188
+ output_tokens: number;
189
+ cache_read_tokens: number;
190
+ cache_creation_tokens: number;
191
+ permission_mode?: string | undefined;
192
+ text?: string | undefined;
193
+ }, {
194
+ type: "assistant_turn";
195
+ session_id: string;
196
+ transcript_path: string;
197
+ cwd: string;
198
+ hook_event_name: string;
199
+ wall_ts: string;
200
+ sequence: number;
201
+ message_uuid: string;
202
+ model: string;
203
+ input_tokens: number;
204
+ output_tokens: number;
205
+ permission_mode?: string | undefined;
206
+ cache_read_tokens?: number | undefined;
207
+ cache_creation_tokens?: number | undefined;
208
+ text?: string | undefined;
152
209
  }>;
153
210
  declare const SubagentEndEvent: z.ZodObject<{
154
211
  session_id: z.ZodString;
@@ -167,11 +224,11 @@ declare const SubagentEndEvent: z.ZodObject<{
167
224
  last_assistant_message: z.ZodString;
168
225
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
169
226
  }, "strip", z.ZodTypeAny, {
227
+ type: "subagent_end";
170
228
  session_id: string;
171
229
  transcript_path: string;
172
230
  cwd: string;
173
231
  hook_event_name: string;
174
- type: "subagent_end";
175
232
  wall_ts: string;
176
233
  sequence: number;
177
234
  agent_id: string;
@@ -181,11 +238,11 @@ declare const SubagentEndEvent: z.ZodObject<{
181
238
  permission_mode?: string | undefined;
182
239
  stop_hook_active?: boolean | undefined;
183
240
  }, {
241
+ type: "subagent_end";
184
242
  session_id: string;
185
243
  transcript_path: string;
186
244
  cwd: string;
187
245
  hook_event_name: string;
188
- type: "subagent_end";
189
246
  wall_ts: string;
190
247
  sequence: number;
191
248
  agent_id: string;
@@ -209,22 +266,22 @@ declare const SessionEndEvent: z.ZodObject<{
209
266
  last_assistant_message: z.ZodOptional<z.ZodString>;
210
267
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
211
268
  }, "strip", z.ZodTypeAny, {
269
+ type: "session_end";
212
270
  session_id: string;
213
271
  transcript_path: string;
214
272
  cwd: string;
215
273
  hook_event_name: string;
216
- type: "session_end";
217
274
  wall_ts: string;
218
275
  sequence: number;
219
276
  permission_mode?: string | undefined;
220
277
  last_assistant_message?: string | undefined;
221
278
  stop_hook_active?: boolean | undefined;
222
279
  }, {
280
+ type: "session_end";
223
281
  session_id: string;
224
282
  transcript_path: string;
225
283
  cwd: string;
226
284
  hook_event_name: string;
227
- type: "session_end";
228
285
  wall_ts: string;
229
286
  sequence: number;
230
287
  permission_mode?: string | undefined;
@@ -244,21 +301,21 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
244
301
  type: z.ZodLiteral<"session_start">;
245
302
  source: z.ZodString;
246
303
  }, "strip", z.ZodTypeAny, {
304
+ type: "session_start";
247
305
  session_id: string;
248
306
  transcript_path: string;
249
307
  cwd: string;
250
308
  hook_event_name: string;
251
- type: "session_start";
252
309
  wall_ts: string;
253
310
  sequence: number;
254
311
  source: string;
255
312
  permission_mode?: string | undefined;
256
313
  }, {
314
+ type: "session_start";
257
315
  session_id: string;
258
316
  transcript_path: string;
259
317
  cwd: string;
260
318
  hook_event_name: string;
261
- type: "session_start";
262
319
  wall_ts: string;
263
320
  sequence: number;
264
321
  source: string;
@@ -276,21 +333,21 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
276
333
  type: z.ZodLiteral<"user_prompt">;
277
334
  prompt: z.ZodString;
278
335
  }, "strip", z.ZodTypeAny, {
336
+ type: "user_prompt";
279
337
  session_id: string;
280
338
  transcript_path: string;
281
339
  cwd: string;
282
340
  hook_event_name: string;
283
- type: "user_prompt";
284
341
  wall_ts: string;
285
342
  sequence: number;
286
343
  prompt: string;
287
344
  permission_mode?: string | undefined;
288
345
  }, {
346
+ type: "user_prompt";
289
347
  session_id: string;
290
348
  transcript_path: string;
291
349
  cwd: string;
292
350
  hook_event_name: string;
293
- type: "user_prompt";
294
351
  wall_ts: string;
295
352
  sequence: number;
296
353
  prompt: string;
@@ -310,11 +367,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
310
367
  tool_input: z.ZodUnknown;
311
368
  tool_use_id: z.ZodString;
312
369
  }, "strip", z.ZodTypeAny, {
370
+ type: "tool_attempt";
313
371
  session_id: string;
314
372
  transcript_path: string;
315
373
  cwd: string;
316
374
  hook_event_name: string;
317
- type: "tool_attempt";
318
375
  wall_ts: string;
319
376
  sequence: number;
320
377
  tool_name: string;
@@ -322,11 +379,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
322
379
  permission_mode?: string | undefined;
323
380
  tool_input?: unknown;
324
381
  }, {
382
+ type: "tool_attempt";
325
383
  session_id: string;
326
384
  transcript_path: string;
327
385
  cwd: string;
328
386
  hook_event_name: string;
329
- type: "tool_attempt";
330
387
  wall_ts: string;
331
388
  sequence: number;
332
389
  tool_name: string;
@@ -349,12 +406,14 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
349
406
  tool_response: z.ZodUnknown;
350
407
  tool_use_id: z.ZodString;
351
408
  duration_ms: z.ZodNumber;
409
+ is_error: z.ZodOptional<z.ZodBoolean>;
410
+ error_message: z.ZodOptional<z.ZodString>;
352
411
  }, "strip", z.ZodTypeAny, {
412
+ type: "tool_call";
353
413
  session_id: string;
354
414
  transcript_path: string;
355
415
  cwd: string;
356
416
  hook_event_name: string;
357
- type: "tool_call";
358
417
  wall_ts: string;
359
418
  sequence: number;
360
419
  tool_name: string;
@@ -363,12 +422,14 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
363
422
  permission_mode?: string | undefined;
364
423
  tool_input?: unknown;
365
424
  tool_response?: unknown;
425
+ is_error?: boolean | undefined;
426
+ error_message?: string | undefined;
366
427
  }, {
428
+ type: "tool_call";
367
429
  session_id: string;
368
430
  transcript_path: string;
369
431
  cwd: string;
370
432
  hook_event_name: string;
371
- type: "tool_call";
372
433
  wall_ts: string;
373
434
  sequence: number;
374
435
  tool_name: string;
@@ -377,6 +438,58 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
377
438
  permission_mode?: string | undefined;
378
439
  tool_input?: unknown;
379
440
  tool_response?: unknown;
441
+ is_error?: boolean | undefined;
442
+ error_message?: string | undefined;
443
+ }>, z.ZodObject<{
444
+ session_id: z.ZodString;
445
+ transcript_path: z.ZodString;
446
+ cwd: z.ZodString;
447
+ hook_event_name: z.ZodString;
448
+ permission_mode: z.ZodOptional<z.ZodString>;
449
+ } & {
450
+ wall_ts: z.ZodString;
451
+ sequence: z.ZodNumber;
452
+ } & {
453
+ type: z.ZodLiteral<"assistant_turn">;
454
+ message_uuid: z.ZodString;
455
+ model: z.ZodString;
456
+ input_tokens: z.ZodNumber;
457
+ output_tokens: z.ZodNumber;
458
+ cache_read_tokens: z.ZodDefault<z.ZodNumber>;
459
+ cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
460
+ text: z.ZodOptional<z.ZodString>;
461
+ }, "strip", z.ZodTypeAny, {
462
+ type: "assistant_turn";
463
+ session_id: string;
464
+ transcript_path: string;
465
+ cwd: string;
466
+ hook_event_name: string;
467
+ wall_ts: string;
468
+ sequence: number;
469
+ message_uuid: string;
470
+ model: string;
471
+ input_tokens: number;
472
+ output_tokens: number;
473
+ cache_read_tokens: number;
474
+ cache_creation_tokens: number;
475
+ permission_mode?: string | undefined;
476
+ text?: string | undefined;
477
+ }, {
478
+ type: "assistant_turn";
479
+ session_id: string;
480
+ transcript_path: string;
481
+ cwd: string;
482
+ hook_event_name: string;
483
+ wall_ts: string;
484
+ sequence: number;
485
+ message_uuid: string;
486
+ model: string;
487
+ input_tokens: number;
488
+ output_tokens: number;
489
+ permission_mode?: string | undefined;
490
+ cache_read_tokens?: number | undefined;
491
+ cache_creation_tokens?: number | undefined;
492
+ text?: string | undefined;
380
493
  }>, z.ZodObject<{
381
494
  session_id: z.ZodString;
382
495
  transcript_path: z.ZodString;
@@ -394,11 +507,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
394
507
  last_assistant_message: z.ZodString;
395
508
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
396
509
  }, "strip", z.ZodTypeAny, {
510
+ type: "subagent_end";
397
511
  session_id: string;
398
512
  transcript_path: string;
399
513
  cwd: string;
400
514
  hook_event_name: string;
401
- type: "subagent_end";
402
515
  wall_ts: string;
403
516
  sequence: number;
404
517
  agent_id: string;
@@ -408,11 +521,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
408
521
  permission_mode?: string | undefined;
409
522
  stop_hook_active?: boolean | undefined;
410
523
  }, {
524
+ type: "subagent_end";
411
525
  session_id: string;
412
526
  transcript_path: string;
413
527
  cwd: string;
414
528
  hook_event_name: string;
415
- type: "subagent_end";
416
529
  wall_ts: string;
417
530
  sequence: number;
418
531
  agent_id: string;
@@ -435,22 +548,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
435
548
  last_assistant_message: z.ZodOptional<z.ZodString>;
436
549
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
437
550
  }, "strip", z.ZodTypeAny, {
551
+ type: "session_end";
438
552
  session_id: string;
439
553
  transcript_path: string;
440
554
  cwd: string;
441
555
  hook_event_name: string;
442
- type: "session_end";
443
556
  wall_ts: string;
444
557
  sequence: number;
445
558
  permission_mode?: string | undefined;
446
559
  last_assistant_message?: string | undefined;
447
560
  stop_hook_active?: boolean | undefined;
448
561
  }, {
562
+ type: "session_end";
449
563
  session_id: string;
450
564
  transcript_path: string;
451
565
  cwd: string;
452
566
  hook_event_name: string;
453
- type: "session_end";
454
567
  wall_ts: string;
455
568
  sequence: number;
456
569
  permission_mode?: string | undefined;
@@ -472,21 +585,21 @@ declare const IngestionRequest: z.ZodObject<{
472
585
  type: z.ZodLiteral<"session_start">;
473
586
  source: z.ZodString;
474
587
  }, "strip", z.ZodTypeAny, {
588
+ type: "session_start";
475
589
  session_id: string;
476
590
  transcript_path: string;
477
591
  cwd: string;
478
592
  hook_event_name: string;
479
- type: "session_start";
480
593
  wall_ts: string;
481
594
  sequence: number;
482
595
  source: string;
483
596
  permission_mode?: string | undefined;
484
597
  }, {
598
+ type: "session_start";
485
599
  session_id: string;
486
600
  transcript_path: string;
487
601
  cwd: string;
488
602
  hook_event_name: string;
489
- type: "session_start";
490
603
  wall_ts: string;
491
604
  sequence: number;
492
605
  source: string;
@@ -504,21 +617,21 @@ declare const IngestionRequest: z.ZodObject<{
504
617
  type: z.ZodLiteral<"user_prompt">;
505
618
  prompt: z.ZodString;
506
619
  }, "strip", z.ZodTypeAny, {
620
+ type: "user_prompt";
507
621
  session_id: string;
508
622
  transcript_path: string;
509
623
  cwd: string;
510
624
  hook_event_name: string;
511
- type: "user_prompt";
512
625
  wall_ts: string;
513
626
  sequence: number;
514
627
  prompt: string;
515
628
  permission_mode?: string | undefined;
516
629
  }, {
630
+ type: "user_prompt";
517
631
  session_id: string;
518
632
  transcript_path: string;
519
633
  cwd: string;
520
634
  hook_event_name: string;
521
- type: "user_prompt";
522
635
  wall_ts: string;
523
636
  sequence: number;
524
637
  prompt: string;
@@ -538,11 +651,11 @@ declare const IngestionRequest: z.ZodObject<{
538
651
  tool_input: z.ZodUnknown;
539
652
  tool_use_id: z.ZodString;
540
653
  }, "strip", z.ZodTypeAny, {
654
+ type: "tool_attempt";
541
655
  session_id: string;
542
656
  transcript_path: string;
543
657
  cwd: string;
544
658
  hook_event_name: string;
545
- type: "tool_attempt";
546
659
  wall_ts: string;
547
660
  sequence: number;
548
661
  tool_name: string;
@@ -550,11 +663,11 @@ declare const IngestionRequest: z.ZodObject<{
550
663
  permission_mode?: string | undefined;
551
664
  tool_input?: unknown;
552
665
  }, {
666
+ type: "tool_attempt";
553
667
  session_id: string;
554
668
  transcript_path: string;
555
669
  cwd: string;
556
670
  hook_event_name: string;
557
- type: "tool_attempt";
558
671
  wall_ts: string;
559
672
  sequence: number;
560
673
  tool_name: string;
@@ -577,12 +690,14 @@ declare const IngestionRequest: z.ZodObject<{
577
690
  tool_response: z.ZodUnknown;
578
691
  tool_use_id: z.ZodString;
579
692
  duration_ms: z.ZodNumber;
693
+ is_error: z.ZodOptional<z.ZodBoolean>;
694
+ error_message: z.ZodOptional<z.ZodString>;
580
695
  }, "strip", z.ZodTypeAny, {
696
+ type: "tool_call";
581
697
  session_id: string;
582
698
  transcript_path: string;
583
699
  cwd: string;
584
700
  hook_event_name: string;
585
- type: "tool_call";
586
701
  wall_ts: string;
587
702
  sequence: number;
588
703
  tool_name: string;
@@ -591,12 +706,14 @@ declare const IngestionRequest: z.ZodObject<{
591
706
  permission_mode?: string | undefined;
592
707
  tool_input?: unknown;
593
708
  tool_response?: unknown;
709
+ is_error?: boolean | undefined;
710
+ error_message?: string | undefined;
594
711
  }, {
712
+ type: "tool_call";
595
713
  session_id: string;
596
714
  transcript_path: string;
597
715
  cwd: string;
598
716
  hook_event_name: string;
599
- type: "tool_call";
600
717
  wall_ts: string;
601
718
  sequence: number;
602
719
  tool_name: string;
@@ -605,6 +722,58 @@ declare const IngestionRequest: z.ZodObject<{
605
722
  permission_mode?: string | undefined;
606
723
  tool_input?: unknown;
607
724
  tool_response?: unknown;
725
+ is_error?: boolean | undefined;
726
+ error_message?: string | undefined;
727
+ }>, z.ZodObject<{
728
+ session_id: z.ZodString;
729
+ transcript_path: z.ZodString;
730
+ cwd: z.ZodString;
731
+ hook_event_name: z.ZodString;
732
+ permission_mode: z.ZodOptional<z.ZodString>;
733
+ } & {
734
+ wall_ts: z.ZodString;
735
+ sequence: z.ZodNumber;
736
+ } & {
737
+ type: z.ZodLiteral<"assistant_turn">;
738
+ message_uuid: z.ZodString;
739
+ model: z.ZodString;
740
+ input_tokens: z.ZodNumber;
741
+ output_tokens: z.ZodNumber;
742
+ cache_read_tokens: z.ZodDefault<z.ZodNumber>;
743
+ cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
744
+ text: z.ZodOptional<z.ZodString>;
745
+ }, "strip", z.ZodTypeAny, {
746
+ type: "assistant_turn";
747
+ session_id: string;
748
+ transcript_path: string;
749
+ cwd: string;
750
+ hook_event_name: string;
751
+ wall_ts: string;
752
+ sequence: number;
753
+ message_uuid: string;
754
+ model: string;
755
+ input_tokens: number;
756
+ output_tokens: number;
757
+ cache_read_tokens: number;
758
+ cache_creation_tokens: number;
759
+ permission_mode?: string | undefined;
760
+ text?: string | undefined;
761
+ }, {
762
+ type: "assistant_turn";
763
+ session_id: string;
764
+ transcript_path: string;
765
+ cwd: string;
766
+ hook_event_name: string;
767
+ wall_ts: string;
768
+ sequence: number;
769
+ message_uuid: string;
770
+ model: string;
771
+ input_tokens: number;
772
+ output_tokens: number;
773
+ permission_mode?: string | undefined;
774
+ cache_read_tokens?: number | undefined;
775
+ cache_creation_tokens?: number | undefined;
776
+ text?: string | undefined;
608
777
  }>, z.ZodObject<{
609
778
  session_id: z.ZodString;
610
779
  transcript_path: z.ZodString;
@@ -622,11 +791,11 @@ declare const IngestionRequest: z.ZodObject<{
622
791
  last_assistant_message: z.ZodString;
623
792
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
624
793
  }, "strip", z.ZodTypeAny, {
794
+ type: "subagent_end";
625
795
  session_id: string;
626
796
  transcript_path: string;
627
797
  cwd: string;
628
798
  hook_event_name: string;
629
- type: "subagent_end";
630
799
  wall_ts: string;
631
800
  sequence: number;
632
801
  agent_id: string;
@@ -636,11 +805,11 @@ declare const IngestionRequest: z.ZodObject<{
636
805
  permission_mode?: string | undefined;
637
806
  stop_hook_active?: boolean | undefined;
638
807
  }, {
808
+ type: "subagent_end";
639
809
  session_id: string;
640
810
  transcript_path: string;
641
811
  cwd: string;
642
812
  hook_event_name: string;
643
- type: "subagent_end";
644
813
  wall_ts: string;
645
814
  sequence: number;
646
815
  agent_id: string;
@@ -663,22 +832,22 @@ declare const IngestionRequest: z.ZodObject<{
663
832
  last_assistant_message: z.ZodOptional<z.ZodString>;
664
833
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
665
834
  }, "strip", z.ZodTypeAny, {
835
+ type: "session_end";
666
836
  session_id: string;
667
837
  transcript_path: string;
668
838
  cwd: string;
669
839
  hook_event_name: string;
670
- type: "session_end";
671
840
  wall_ts: string;
672
841
  sequence: number;
673
842
  permission_mode?: string | undefined;
674
843
  last_assistant_message?: string | undefined;
675
844
  stop_hook_active?: boolean | undefined;
676
845
  }, {
846
+ type: "session_end";
677
847
  session_id: string;
678
848
  transcript_path: string;
679
849
  cwd: string;
680
850
  hook_event_name: string;
681
- type: "session_end";
682
851
  wall_ts: string;
683
852
  sequence: number;
684
853
  permission_mode?: string | undefined;
@@ -687,31 +856,31 @@ declare const IngestionRequest: z.ZodObject<{
687
856
  }>]>, "many">;
688
857
  }, "strip", z.ZodTypeAny, {
689
858
  events: ({
859
+ type: "session_start";
690
860
  session_id: string;
691
861
  transcript_path: string;
692
862
  cwd: string;
693
863
  hook_event_name: string;
694
- type: "session_start";
695
864
  wall_ts: string;
696
865
  sequence: number;
697
866
  source: string;
698
867
  permission_mode?: string | undefined;
699
868
  } | {
869
+ type: "user_prompt";
700
870
  session_id: string;
701
871
  transcript_path: string;
702
872
  cwd: string;
703
873
  hook_event_name: string;
704
- type: "user_prompt";
705
874
  wall_ts: string;
706
875
  sequence: number;
707
876
  prompt: string;
708
877
  permission_mode?: string | undefined;
709
878
  } | {
879
+ type: "tool_attempt";
710
880
  session_id: string;
711
881
  transcript_path: string;
712
882
  cwd: string;
713
883
  hook_event_name: string;
714
- type: "tool_attempt";
715
884
  wall_ts: string;
716
885
  sequence: number;
717
886
  tool_name: string;
@@ -719,11 +888,11 @@ declare const IngestionRequest: z.ZodObject<{
719
888
  permission_mode?: string | undefined;
720
889
  tool_input?: unknown;
721
890
  } | {
891
+ type: "tool_call";
722
892
  session_id: string;
723
893
  transcript_path: string;
724
894
  cwd: string;
725
895
  hook_event_name: string;
726
- type: "tool_call";
727
896
  wall_ts: string;
728
897
  sequence: number;
729
898
  tool_name: string;
@@ -732,12 +901,30 @@ declare const IngestionRequest: z.ZodObject<{
732
901
  permission_mode?: string | undefined;
733
902
  tool_input?: unknown;
734
903
  tool_response?: unknown;
904
+ is_error?: boolean | undefined;
905
+ error_message?: string | undefined;
735
906
  } | {
907
+ type: "assistant_turn";
736
908
  session_id: string;
737
909
  transcript_path: string;
738
910
  cwd: string;
739
911
  hook_event_name: string;
912
+ wall_ts: string;
913
+ sequence: number;
914
+ message_uuid: string;
915
+ model: string;
916
+ input_tokens: number;
917
+ output_tokens: number;
918
+ cache_read_tokens: number;
919
+ cache_creation_tokens: number;
920
+ permission_mode?: string | undefined;
921
+ text?: string | undefined;
922
+ } | {
740
923
  type: "subagent_end";
924
+ session_id: string;
925
+ transcript_path: string;
926
+ cwd: string;
927
+ hook_event_name: string;
741
928
  wall_ts: string;
742
929
  sequence: number;
743
930
  agent_id: string;
@@ -747,11 +934,11 @@ declare const IngestionRequest: z.ZodObject<{
747
934
  permission_mode?: string | undefined;
748
935
  stop_hook_active?: boolean | undefined;
749
936
  } | {
937
+ type: "session_end";
750
938
  session_id: string;
751
939
  transcript_path: string;
752
940
  cwd: string;
753
941
  hook_event_name: string;
754
- type: "session_end";
755
942
  wall_ts: string;
756
943
  sequence: number;
757
944
  permission_mode?: string | undefined;
@@ -760,31 +947,31 @@ declare const IngestionRequest: z.ZodObject<{
760
947
  })[];
761
948
  }, {
762
949
  events: ({
950
+ type: "session_start";
763
951
  session_id: string;
764
952
  transcript_path: string;
765
953
  cwd: string;
766
954
  hook_event_name: string;
767
- type: "session_start";
768
955
  wall_ts: string;
769
956
  sequence: number;
770
957
  source: string;
771
958
  permission_mode?: string | undefined;
772
959
  } | {
960
+ type: "user_prompt";
773
961
  session_id: string;
774
962
  transcript_path: string;
775
963
  cwd: string;
776
964
  hook_event_name: string;
777
- type: "user_prompt";
778
965
  wall_ts: string;
779
966
  sequence: number;
780
967
  prompt: string;
781
968
  permission_mode?: string | undefined;
782
969
  } | {
970
+ type: "tool_attempt";
783
971
  session_id: string;
784
972
  transcript_path: string;
785
973
  cwd: string;
786
974
  hook_event_name: string;
787
- type: "tool_attempt";
788
975
  wall_ts: string;
789
976
  sequence: number;
790
977
  tool_name: string;
@@ -792,11 +979,11 @@ declare const IngestionRequest: z.ZodObject<{
792
979
  permission_mode?: string | undefined;
793
980
  tool_input?: unknown;
794
981
  } | {
982
+ type: "tool_call";
795
983
  session_id: string;
796
984
  transcript_path: string;
797
985
  cwd: string;
798
986
  hook_event_name: string;
799
- type: "tool_call";
800
987
  wall_ts: string;
801
988
  sequence: number;
802
989
  tool_name: string;
@@ -805,12 +992,30 @@ declare const IngestionRequest: z.ZodObject<{
805
992
  permission_mode?: string | undefined;
806
993
  tool_input?: unknown;
807
994
  tool_response?: unknown;
995
+ is_error?: boolean | undefined;
996
+ error_message?: string | undefined;
808
997
  } | {
998
+ type: "assistant_turn";
809
999
  session_id: string;
810
1000
  transcript_path: string;
811
1001
  cwd: string;
812
1002
  hook_event_name: string;
1003
+ wall_ts: string;
1004
+ sequence: number;
1005
+ message_uuid: string;
1006
+ model: string;
1007
+ input_tokens: number;
1008
+ output_tokens: number;
1009
+ permission_mode?: string | undefined;
1010
+ cache_read_tokens?: number | undefined;
1011
+ cache_creation_tokens?: number | undefined;
1012
+ text?: string | undefined;
1013
+ } | {
813
1014
  type: "subagent_end";
1015
+ session_id: string;
1016
+ transcript_path: string;
1017
+ cwd: string;
1018
+ hook_event_name: string;
814
1019
  wall_ts: string;
815
1020
  sequence: number;
816
1021
  agent_id: string;
@@ -820,11 +1025,11 @@ declare const IngestionRequest: z.ZodObject<{
820
1025
  permission_mode?: string | undefined;
821
1026
  stop_hook_active?: boolean | undefined;
822
1027
  } | {
1028
+ type: "session_end";
823
1029
  session_id: string;
824
1030
  transcript_path: string;
825
1031
  cwd: string;
826
1032
  hook_event_name: string;
827
- type: "session_end";
828
1033
  wall_ts: string;
829
1034
  sequence: number;
830
1035
  permission_mode?: string | undefined;
@@ -860,4 +1065,4 @@ declare const IngestionResponse: z.ZodObject<{
860
1065
  }>;
861
1066
  type IngestionResponse = z.infer<typeof IngestionResponse>;
862
1067
 
863
- export { IngestionRequest, IngestionResponse, RuntapeEvent, SessionEndEvent, SessionStartEvent, SubagentEndEvent, ToolAttemptEvent, ToolCallEvent, UserPromptEvent };
1068
+ export { AssistantTurnEvent, IngestionRequest, IngestionResponse, RuntapeEvent, SessionEndEvent, SessionStartEvent, SubagentEndEvent, ToolAttemptEvent, ToolCallEvent, UserPromptEvent };