runtape 0.4.0 → 0.6.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
@@ -14,22 +14,22 @@ declare const SessionStartEvent: z.ZodObject<{
14
14
  type: z.ZodLiteral<"session_start">;
15
15
  source: z.ZodString;
16
16
  }, "strip", z.ZodTypeAny, {
17
- type: "session_start";
18
17
  session_id: string;
19
18
  transcript_path: string;
20
19
  cwd: string;
21
20
  hook_event_name: string;
21
+ type: "session_start";
22
22
  wall_ts: string;
23
23
  sequence: number;
24
24
  source: string;
25
25
  permission_mode?: string | undefined;
26
26
  agent_tool_use_id?: string | undefined;
27
27
  }, {
28
- type: "session_start";
29
28
  session_id: string;
30
29
  transcript_path: string;
31
30
  cwd: string;
32
31
  hook_event_name: string;
32
+ type: "session_start";
33
33
  wall_ts: string;
34
34
  sequence: number;
35
35
  source: string;
@@ -50,22 +50,22 @@ declare const UserPromptEvent: z.ZodObject<{
50
50
  type: z.ZodLiteral<"user_prompt">;
51
51
  prompt: z.ZodString;
52
52
  }, "strip", z.ZodTypeAny, {
53
- type: "user_prompt";
54
53
  session_id: string;
55
54
  transcript_path: string;
56
55
  cwd: string;
57
56
  hook_event_name: string;
57
+ type: "user_prompt";
58
58
  wall_ts: string;
59
59
  sequence: number;
60
60
  prompt: string;
61
61
  permission_mode?: string | undefined;
62
62
  agent_tool_use_id?: string | undefined;
63
63
  }, {
64
- type: "user_prompt";
65
64
  session_id: string;
66
65
  transcript_path: string;
67
66
  cwd: string;
68
67
  hook_event_name: string;
68
+ type: "user_prompt";
69
69
  wall_ts: string;
70
70
  sequence: number;
71
71
  prompt: string;
@@ -88,11 +88,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
88
88
  tool_input: z.ZodUnknown;
89
89
  tool_use_id: z.ZodString;
90
90
  }, "strip", z.ZodTypeAny, {
91
- type: "tool_attempt";
92
91
  session_id: string;
93
92
  transcript_path: string;
94
93
  cwd: string;
95
94
  hook_event_name: string;
95
+ type: "tool_attempt";
96
96
  wall_ts: string;
97
97
  sequence: number;
98
98
  tool_name: string;
@@ -101,11 +101,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
101
101
  agent_tool_use_id?: string | undefined;
102
102
  tool_input?: unknown;
103
103
  }, {
104
- type: "tool_attempt";
105
104
  session_id: string;
106
105
  transcript_path: string;
107
106
  cwd: string;
108
107
  hook_event_name: string;
108
+ type: "tool_attempt";
109
109
  wall_ts: string;
110
110
  sequence: number;
111
111
  tool_name: string;
@@ -134,11 +134,11 @@ declare const ToolCallEvent: z.ZodObject<{
134
134
  is_error: z.ZodOptional<z.ZodBoolean>;
135
135
  error_message: z.ZodOptional<z.ZodString>;
136
136
  }, "strip", z.ZodTypeAny, {
137
- type: "tool_call";
138
137
  session_id: string;
139
138
  transcript_path: string;
140
139
  cwd: string;
141
140
  hook_event_name: string;
141
+ type: "tool_call";
142
142
  wall_ts: string;
143
143
  sequence: number;
144
144
  tool_name: string;
@@ -151,11 +151,11 @@ declare const ToolCallEvent: z.ZodObject<{
151
151
  is_error?: boolean | undefined;
152
152
  error_message?: string | undefined;
153
153
  }, {
154
- type: "tool_call";
155
154
  session_id: string;
156
155
  transcript_path: string;
157
156
  cwd: string;
158
157
  hook_event_name: string;
158
+ type: "tool_call";
159
159
  wall_ts: string;
160
160
  sequence: number;
161
161
  tool_name: string;
@@ -188,11 +188,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
188
188
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
189
189
  text: z.ZodOptional<z.ZodString>;
190
190
  }, "strip", z.ZodTypeAny, {
191
- type: "assistant_turn";
192
191
  session_id: string;
193
192
  transcript_path: string;
194
193
  cwd: string;
195
194
  hook_event_name: string;
195
+ type: "assistant_turn";
196
196
  wall_ts: string;
197
197
  sequence: number;
198
198
  message_uuid: string;
@@ -205,11 +205,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
205
205
  agent_tool_use_id?: string | undefined;
206
206
  text?: string | undefined;
207
207
  }, {
208
- type: "assistant_turn";
209
208
  session_id: string;
210
209
  transcript_path: string;
211
210
  cwd: string;
212
211
  hook_event_name: string;
212
+ type: "assistant_turn";
213
213
  wall_ts: string;
214
214
  sequence: number;
215
215
  message_uuid: string;
@@ -240,11 +240,11 @@ declare const SubagentEndEvent: z.ZodObject<{
240
240
  last_assistant_message: z.ZodString;
241
241
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
242
242
  }, "strip", z.ZodTypeAny, {
243
- type: "subagent_end";
244
243
  session_id: string;
245
244
  transcript_path: string;
246
245
  cwd: string;
247
246
  hook_event_name: string;
247
+ type: "subagent_end";
248
248
  wall_ts: string;
249
249
  sequence: number;
250
250
  agent_id: string;
@@ -255,11 +255,11 @@ declare const SubagentEndEvent: z.ZodObject<{
255
255
  agent_tool_use_id?: string | undefined;
256
256
  stop_hook_active?: boolean | undefined;
257
257
  }, {
258
- type: "subagent_end";
259
258
  session_id: string;
260
259
  transcript_path: string;
261
260
  cwd: string;
262
261
  hook_event_name: string;
262
+ type: "subagent_end";
263
263
  wall_ts: string;
264
264
  sequence: number;
265
265
  agent_id: string;
@@ -285,11 +285,11 @@ declare const SessionEndEvent: z.ZodObject<{
285
285
  last_assistant_message: z.ZodOptional<z.ZodString>;
286
286
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
287
287
  }, "strip", z.ZodTypeAny, {
288
- type: "session_end";
289
288
  session_id: string;
290
289
  transcript_path: string;
291
290
  cwd: string;
292
291
  hook_event_name: string;
292
+ type: "session_end";
293
293
  wall_ts: string;
294
294
  sequence: number;
295
295
  permission_mode?: string | undefined;
@@ -297,11 +297,11 @@ declare const SessionEndEvent: z.ZodObject<{
297
297
  last_assistant_message?: string | undefined;
298
298
  stop_hook_active?: boolean | undefined;
299
299
  }, {
300
- type: "session_end";
301
300
  session_id: string;
302
301
  transcript_path: string;
303
302
  cwd: string;
304
303
  hook_event_name: string;
304
+ type: "session_end";
305
305
  wall_ts: string;
306
306
  sequence: number;
307
307
  permission_mode?: string | undefined;
@@ -323,22 +323,22 @@ declare const SessionCloseEvent: z.ZodObject<{
323
323
  type: z.ZodLiteral<"session_close">;
324
324
  reason: z.ZodOptional<z.ZodString>;
325
325
  }, "strip", z.ZodTypeAny, {
326
- type: "session_close";
327
326
  session_id: string;
328
327
  transcript_path: string;
329
328
  cwd: string;
330
329
  hook_event_name: string;
330
+ type: "session_close";
331
331
  wall_ts: string;
332
332
  sequence: number;
333
333
  permission_mode?: string | undefined;
334
334
  agent_tool_use_id?: string | undefined;
335
335
  reason?: string | undefined;
336
336
  }, {
337
- type: "session_close";
338
337
  session_id: string;
339
338
  transcript_path: string;
340
339
  cwd: string;
341
340
  hook_event_name: string;
341
+ type: "session_close";
342
342
  wall_ts: string;
343
343
  sequence: number;
344
344
  permission_mode?: string | undefined;
@@ -359,22 +359,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
359
359
  type: z.ZodLiteral<"session_start">;
360
360
  source: z.ZodString;
361
361
  }, "strip", z.ZodTypeAny, {
362
- type: "session_start";
363
362
  session_id: string;
364
363
  transcript_path: string;
365
364
  cwd: string;
366
365
  hook_event_name: string;
366
+ type: "session_start";
367
367
  wall_ts: string;
368
368
  sequence: number;
369
369
  source: string;
370
370
  permission_mode?: string | undefined;
371
371
  agent_tool_use_id?: string | undefined;
372
372
  }, {
373
- type: "session_start";
374
373
  session_id: string;
375
374
  transcript_path: string;
376
375
  cwd: string;
377
376
  hook_event_name: string;
377
+ type: "session_start";
378
378
  wall_ts: string;
379
379
  sequence: number;
380
380
  source: string;
@@ -394,22 +394,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
394
394
  type: z.ZodLiteral<"user_prompt">;
395
395
  prompt: z.ZodString;
396
396
  }, "strip", z.ZodTypeAny, {
397
- type: "user_prompt";
398
397
  session_id: string;
399
398
  transcript_path: string;
400
399
  cwd: string;
401
400
  hook_event_name: string;
401
+ type: "user_prompt";
402
402
  wall_ts: string;
403
403
  sequence: number;
404
404
  prompt: string;
405
405
  permission_mode?: string | undefined;
406
406
  agent_tool_use_id?: string | undefined;
407
407
  }, {
408
- type: "user_prompt";
409
408
  session_id: string;
410
409
  transcript_path: string;
411
410
  cwd: string;
412
411
  hook_event_name: string;
412
+ type: "user_prompt";
413
413
  wall_ts: string;
414
414
  sequence: number;
415
415
  prompt: string;
@@ -431,11 +431,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
431
431
  tool_input: z.ZodUnknown;
432
432
  tool_use_id: z.ZodString;
433
433
  }, "strip", z.ZodTypeAny, {
434
- type: "tool_attempt";
435
434
  session_id: string;
436
435
  transcript_path: string;
437
436
  cwd: string;
438
437
  hook_event_name: string;
438
+ type: "tool_attempt";
439
439
  wall_ts: string;
440
440
  sequence: number;
441
441
  tool_name: string;
@@ -444,11 +444,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
444
444
  agent_tool_use_id?: string | undefined;
445
445
  tool_input?: unknown;
446
446
  }, {
447
- type: "tool_attempt";
448
447
  session_id: string;
449
448
  transcript_path: string;
450
449
  cwd: string;
451
450
  hook_event_name: string;
451
+ type: "tool_attempt";
452
452
  wall_ts: string;
453
453
  sequence: number;
454
454
  tool_name: string;
@@ -476,11 +476,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
476
476
  is_error: z.ZodOptional<z.ZodBoolean>;
477
477
  error_message: z.ZodOptional<z.ZodString>;
478
478
  }, "strip", z.ZodTypeAny, {
479
- type: "tool_call";
480
479
  session_id: string;
481
480
  transcript_path: string;
482
481
  cwd: string;
483
482
  hook_event_name: string;
483
+ type: "tool_call";
484
484
  wall_ts: string;
485
485
  sequence: number;
486
486
  tool_name: string;
@@ -493,11 +493,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
493
493
  is_error?: boolean | undefined;
494
494
  error_message?: string | undefined;
495
495
  }, {
496
- type: "tool_call";
497
496
  session_id: string;
498
497
  transcript_path: string;
499
498
  cwd: string;
500
499
  hook_event_name: string;
500
+ type: "tool_call";
501
501
  wall_ts: string;
502
502
  sequence: number;
503
503
  tool_name: string;
@@ -529,11 +529,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
529
529
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
530
530
  text: z.ZodOptional<z.ZodString>;
531
531
  }, "strip", z.ZodTypeAny, {
532
- type: "assistant_turn";
533
532
  session_id: string;
534
533
  transcript_path: string;
535
534
  cwd: string;
536
535
  hook_event_name: string;
536
+ type: "assistant_turn";
537
537
  wall_ts: string;
538
538
  sequence: number;
539
539
  message_uuid: string;
@@ -546,11 +546,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
546
546
  agent_tool_use_id?: string | undefined;
547
547
  text?: string | undefined;
548
548
  }, {
549
- type: "assistant_turn";
550
549
  session_id: string;
551
550
  transcript_path: string;
552
551
  cwd: string;
553
552
  hook_event_name: string;
553
+ type: "assistant_turn";
554
554
  wall_ts: string;
555
555
  sequence: number;
556
556
  message_uuid: string;
@@ -580,11 +580,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
580
580
  last_assistant_message: z.ZodString;
581
581
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
582
582
  }, "strip", z.ZodTypeAny, {
583
- type: "subagent_end";
584
583
  session_id: string;
585
584
  transcript_path: string;
586
585
  cwd: string;
587
586
  hook_event_name: string;
587
+ type: "subagent_end";
588
588
  wall_ts: string;
589
589
  sequence: number;
590
590
  agent_id: string;
@@ -595,11 +595,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
595
595
  agent_tool_use_id?: string | undefined;
596
596
  stop_hook_active?: boolean | undefined;
597
597
  }, {
598
- type: "subagent_end";
599
598
  session_id: string;
600
599
  transcript_path: string;
601
600
  cwd: string;
602
601
  hook_event_name: string;
602
+ type: "subagent_end";
603
603
  wall_ts: string;
604
604
  sequence: number;
605
605
  agent_id: string;
@@ -624,11 +624,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
624
624
  last_assistant_message: z.ZodOptional<z.ZodString>;
625
625
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
626
626
  }, "strip", z.ZodTypeAny, {
627
- type: "session_end";
628
627
  session_id: string;
629
628
  transcript_path: string;
630
629
  cwd: string;
631
630
  hook_event_name: string;
631
+ type: "session_end";
632
632
  wall_ts: string;
633
633
  sequence: number;
634
634
  permission_mode?: string | undefined;
@@ -636,11 +636,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
636
636
  last_assistant_message?: string | undefined;
637
637
  stop_hook_active?: boolean | undefined;
638
638
  }, {
639
- type: "session_end";
640
639
  session_id: string;
641
640
  transcript_path: string;
642
641
  cwd: string;
643
642
  hook_event_name: string;
643
+ type: "session_end";
644
644
  wall_ts: string;
645
645
  sequence: number;
646
646
  permission_mode?: string | undefined;
@@ -661,22 +661,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
661
661
  type: z.ZodLiteral<"session_close">;
662
662
  reason: z.ZodOptional<z.ZodString>;
663
663
  }, "strip", z.ZodTypeAny, {
664
- type: "session_close";
665
664
  session_id: string;
666
665
  transcript_path: string;
667
666
  cwd: string;
668
667
  hook_event_name: string;
668
+ type: "session_close";
669
669
  wall_ts: string;
670
670
  sequence: number;
671
671
  permission_mode?: string | undefined;
672
672
  agent_tool_use_id?: string | undefined;
673
673
  reason?: string | undefined;
674
674
  }, {
675
- type: "session_close";
676
675
  session_id: string;
677
676
  transcript_path: string;
678
677
  cwd: string;
679
678
  hook_event_name: string;
679
+ type: "session_close";
680
680
  wall_ts: string;
681
681
  sequence: number;
682
682
  permission_mode?: string | undefined;
@@ -699,22 +699,22 @@ declare const IngestionRequest: z.ZodObject<{
699
699
  type: z.ZodLiteral<"session_start">;
700
700
  source: z.ZodString;
701
701
  }, "strip", z.ZodTypeAny, {
702
- type: "session_start";
703
702
  session_id: string;
704
703
  transcript_path: string;
705
704
  cwd: string;
706
705
  hook_event_name: string;
706
+ type: "session_start";
707
707
  wall_ts: string;
708
708
  sequence: number;
709
709
  source: string;
710
710
  permission_mode?: string | undefined;
711
711
  agent_tool_use_id?: string | undefined;
712
712
  }, {
713
- type: "session_start";
714
713
  session_id: string;
715
714
  transcript_path: string;
716
715
  cwd: string;
717
716
  hook_event_name: string;
717
+ type: "session_start";
718
718
  wall_ts: string;
719
719
  sequence: number;
720
720
  source: string;
@@ -734,22 +734,22 @@ declare const IngestionRequest: z.ZodObject<{
734
734
  type: z.ZodLiteral<"user_prompt">;
735
735
  prompt: z.ZodString;
736
736
  }, "strip", z.ZodTypeAny, {
737
- type: "user_prompt";
738
737
  session_id: string;
739
738
  transcript_path: string;
740
739
  cwd: string;
741
740
  hook_event_name: string;
741
+ type: "user_prompt";
742
742
  wall_ts: string;
743
743
  sequence: number;
744
744
  prompt: string;
745
745
  permission_mode?: string | undefined;
746
746
  agent_tool_use_id?: string | undefined;
747
747
  }, {
748
- type: "user_prompt";
749
748
  session_id: string;
750
749
  transcript_path: string;
751
750
  cwd: string;
752
751
  hook_event_name: string;
752
+ type: "user_prompt";
753
753
  wall_ts: string;
754
754
  sequence: number;
755
755
  prompt: string;
@@ -771,11 +771,11 @@ declare const IngestionRequest: z.ZodObject<{
771
771
  tool_input: z.ZodUnknown;
772
772
  tool_use_id: z.ZodString;
773
773
  }, "strip", z.ZodTypeAny, {
774
- type: "tool_attempt";
775
774
  session_id: string;
776
775
  transcript_path: string;
777
776
  cwd: string;
778
777
  hook_event_name: string;
778
+ type: "tool_attempt";
779
779
  wall_ts: string;
780
780
  sequence: number;
781
781
  tool_name: string;
@@ -784,11 +784,11 @@ declare const IngestionRequest: z.ZodObject<{
784
784
  agent_tool_use_id?: string | undefined;
785
785
  tool_input?: unknown;
786
786
  }, {
787
- type: "tool_attempt";
788
787
  session_id: string;
789
788
  transcript_path: string;
790
789
  cwd: string;
791
790
  hook_event_name: string;
791
+ type: "tool_attempt";
792
792
  wall_ts: string;
793
793
  sequence: number;
794
794
  tool_name: string;
@@ -816,11 +816,11 @@ declare const IngestionRequest: z.ZodObject<{
816
816
  is_error: z.ZodOptional<z.ZodBoolean>;
817
817
  error_message: z.ZodOptional<z.ZodString>;
818
818
  }, "strip", z.ZodTypeAny, {
819
- type: "tool_call";
820
819
  session_id: string;
821
820
  transcript_path: string;
822
821
  cwd: string;
823
822
  hook_event_name: string;
823
+ type: "tool_call";
824
824
  wall_ts: string;
825
825
  sequence: number;
826
826
  tool_name: string;
@@ -833,11 +833,11 @@ declare const IngestionRequest: z.ZodObject<{
833
833
  is_error?: boolean | undefined;
834
834
  error_message?: string | undefined;
835
835
  }, {
836
- type: "tool_call";
837
836
  session_id: string;
838
837
  transcript_path: string;
839
838
  cwd: string;
840
839
  hook_event_name: string;
840
+ type: "tool_call";
841
841
  wall_ts: string;
842
842
  sequence: number;
843
843
  tool_name: string;
@@ -869,11 +869,11 @@ declare const IngestionRequest: z.ZodObject<{
869
869
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
870
870
  text: z.ZodOptional<z.ZodString>;
871
871
  }, "strip", z.ZodTypeAny, {
872
- type: "assistant_turn";
873
872
  session_id: string;
874
873
  transcript_path: string;
875
874
  cwd: string;
876
875
  hook_event_name: string;
876
+ type: "assistant_turn";
877
877
  wall_ts: string;
878
878
  sequence: number;
879
879
  message_uuid: string;
@@ -886,11 +886,11 @@ declare const IngestionRequest: z.ZodObject<{
886
886
  agent_tool_use_id?: string | undefined;
887
887
  text?: string | undefined;
888
888
  }, {
889
- type: "assistant_turn";
890
889
  session_id: string;
891
890
  transcript_path: string;
892
891
  cwd: string;
893
892
  hook_event_name: string;
893
+ type: "assistant_turn";
894
894
  wall_ts: string;
895
895
  sequence: number;
896
896
  message_uuid: string;
@@ -920,11 +920,11 @@ declare const IngestionRequest: z.ZodObject<{
920
920
  last_assistant_message: z.ZodString;
921
921
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
922
922
  }, "strip", z.ZodTypeAny, {
923
- type: "subagent_end";
924
923
  session_id: string;
925
924
  transcript_path: string;
926
925
  cwd: string;
927
926
  hook_event_name: string;
927
+ type: "subagent_end";
928
928
  wall_ts: string;
929
929
  sequence: number;
930
930
  agent_id: string;
@@ -935,11 +935,11 @@ declare const IngestionRequest: z.ZodObject<{
935
935
  agent_tool_use_id?: string | undefined;
936
936
  stop_hook_active?: boolean | undefined;
937
937
  }, {
938
- type: "subagent_end";
939
938
  session_id: string;
940
939
  transcript_path: string;
941
940
  cwd: string;
942
941
  hook_event_name: string;
942
+ type: "subagent_end";
943
943
  wall_ts: string;
944
944
  sequence: number;
945
945
  agent_id: string;
@@ -964,11 +964,11 @@ declare const IngestionRequest: z.ZodObject<{
964
964
  last_assistant_message: z.ZodOptional<z.ZodString>;
965
965
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
966
966
  }, "strip", z.ZodTypeAny, {
967
- type: "session_end";
968
967
  session_id: string;
969
968
  transcript_path: string;
970
969
  cwd: string;
971
970
  hook_event_name: string;
971
+ type: "session_end";
972
972
  wall_ts: string;
973
973
  sequence: number;
974
974
  permission_mode?: string | undefined;
@@ -976,11 +976,11 @@ declare const IngestionRequest: z.ZodObject<{
976
976
  last_assistant_message?: string | undefined;
977
977
  stop_hook_active?: boolean | undefined;
978
978
  }, {
979
- type: "session_end";
980
979
  session_id: string;
981
980
  transcript_path: string;
982
981
  cwd: string;
983
982
  hook_event_name: string;
983
+ type: "session_end";
984
984
  wall_ts: string;
985
985
  sequence: number;
986
986
  permission_mode?: string | undefined;
@@ -1001,22 +1001,22 @@ declare const IngestionRequest: z.ZodObject<{
1001
1001
  type: z.ZodLiteral<"session_close">;
1002
1002
  reason: z.ZodOptional<z.ZodString>;
1003
1003
  }, "strip", z.ZodTypeAny, {
1004
- type: "session_close";
1005
1004
  session_id: string;
1006
1005
  transcript_path: string;
1007
1006
  cwd: string;
1008
1007
  hook_event_name: string;
1008
+ type: "session_close";
1009
1009
  wall_ts: string;
1010
1010
  sequence: number;
1011
1011
  permission_mode?: string | undefined;
1012
1012
  agent_tool_use_id?: string | undefined;
1013
1013
  reason?: string | undefined;
1014
1014
  }, {
1015
- type: "session_close";
1016
1015
  session_id: string;
1017
1016
  transcript_path: string;
1018
1017
  cwd: string;
1019
1018
  hook_event_name: string;
1019
+ type: "session_close";
1020
1020
  wall_ts: string;
1021
1021
  sequence: number;
1022
1022
  permission_mode?: string | undefined;
@@ -1025,33 +1025,33 @@ declare const IngestionRequest: z.ZodObject<{
1025
1025
  }>]>, "many">;
1026
1026
  }, "strip", z.ZodTypeAny, {
1027
1027
  events: ({
1028
- type: "session_start";
1029
1028
  session_id: string;
1030
1029
  transcript_path: string;
1031
1030
  cwd: string;
1032
1031
  hook_event_name: string;
1032
+ type: "session_start";
1033
1033
  wall_ts: string;
1034
1034
  sequence: number;
1035
1035
  source: string;
1036
1036
  permission_mode?: string | undefined;
1037
1037
  agent_tool_use_id?: string | undefined;
1038
1038
  } | {
1039
- type: "user_prompt";
1040
1039
  session_id: string;
1041
1040
  transcript_path: string;
1042
1041
  cwd: string;
1043
1042
  hook_event_name: string;
1043
+ type: "user_prompt";
1044
1044
  wall_ts: string;
1045
1045
  sequence: number;
1046
1046
  prompt: string;
1047
1047
  permission_mode?: string | undefined;
1048
1048
  agent_tool_use_id?: string | undefined;
1049
1049
  } | {
1050
- type: "tool_attempt";
1051
1050
  session_id: string;
1052
1051
  transcript_path: string;
1053
1052
  cwd: string;
1054
1053
  hook_event_name: string;
1054
+ type: "tool_attempt";
1055
1055
  wall_ts: string;
1056
1056
  sequence: number;
1057
1057
  tool_name: string;
@@ -1060,11 +1060,11 @@ declare const IngestionRequest: z.ZodObject<{
1060
1060
  agent_tool_use_id?: string | undefined;
1061
1061
  tool_input?: unknown;
1062
1062
  } | {
1063
- type: "tool_call";
1064
1063
  session_id: string;
1065
1064
  transcript_path: string;
1066
1065
  cwd: string;
1067
1066
  hook_event_name: string;
1067
+ type: "tool_call";
1068
1068
  wall_ts: string;
1069
1069
  sequence: number;
1070
1070
  tool_name: string;
@@ -1077,11 +1077,11 @@ declare const IngestionRequest: z.ZodObject<{
1077
1077
  is_error?: boolean | undefined;
1078
1078
  error_message?: string | undefined;
1079
1079
  } | {
1080
- type: "assistant_turn";
1081
1080
  session_id: string;
1082
1081
  transcript_path: string;
1083
1082
  cwd: string;
1084
1083
  hook_event_name: string;
1084
+ type: "assistant_turn";
1085
1085
  wall_ts: string;
1086
1086
  sequence: number;
1087
1087
  message_uuid: string;
@@ -1094,11 +1094,11 @@ declare const IngestionRequest: z.ZodObject<{
1094
1094
  agent_tool_use_id?: string | undefined;
1095
1095
  text?: string | undefined;
1096
1096
  } | {
1097
- type: "subagent_end";
1098
1097
  session_id: string;
1099
1098
  transcript_path: string;
1100
1099
  cwd: string;
1101
1100
  hook_event_name: string;
1101
+ type: "subagent_end";
1102
1102
  wall_ts: string;
1103
1103
  sequence: number;
1104
1104
  agent_id: string;
@@ -1109,11 +1109,11 @@ declare const IngestionRequest: z.ZodObject<{
1109
1109
  agent_tool_use_id?: string | undefined;
1110
1110
  stop_hook_active?: boolean | undefined;
1111
1111
  } | {
1112
- type: "session_end";
1113
1112
  session_id: string;
1114
1113
  transcript_path: string;
1115
1114
  cwd: string;
1116
1115
  hook_event_name: string;
1116
+ type: "session_end";
1117
1117
  wall_ts: string;
1118
1118
  sequence: number;
1119
1119
  permission_mode?: string | undefined;
@@ -1121,11 +1121,11 @@ declare const IngestionRequest: z.ZodObject<{
1121
1121
  last_assistant_message?: string | undefined;
1122
1122
  stop_hook_active?: boolean | undefined;
1123
1123
  } | {
1124
- type: "session_close";
1125
1124
  session_id: string;
1126
1125
  transcript_path: string;
1127
1126
  cwd: string;
1128
1127
  hook_event_name: string;
1128
+ type: "session_close";
1129
1129
  wall_ts: string;
1130
1130
  sequence: number;
1131
1131
  permission_mode?: string | undefined;
@@ -1134,33 +1134,33 @@ declare const IngestionRequest: z.ZodObject<{
1134
1134
  })[];
1135
1135
  }, {
1136
1136
  events: ({
1137
- type: "session_start";
1138
1137
  session_id: string;
1139
1138
  transcript_path: string;
1140
1139
  cwd: string;
1141
1140
  hook_event_name: string;
1141
+ type: "session_start";
1142
1142
  wall_ts: string;
1143
1143
  sequence: number;
1144
1144
  source: string;
1145
1145
  permission_mode?: string | undefined;
1146
1146
  agent_tool_use_id?: string | undefined;
1147
1147
  } | {
1148
- type: "user_prompt";
1149
1148
  session_id: string;
1150
1149
  transcript_path: string;
1151
1150
  cwd: string;
1152
1151
  hook_event_name: string;
1152
+ type: "user_prompt";
1153
1153
  wall_ts: string;
1154
1154
  sequence: number;
1155
1155
  prompt: string;
1156
1156
  permission_mode?: string | undefined;
1157
1157
  agent_tool_use_id?: string | undefined;
1158
1158
  } | {
1159
- type: "tool_attempt";
1160
1159
  session_id: string;
1161
1160
  transcript_path: string;
1162
1161
  cwd: string;
1163
1162
  hook_event_name: string;
1163
+ type: "tool_attempt";
1164
1164
  wall_ts: string;
1165
1165
  sequence: number;
1166
1166
  tool_name: string;
@@ -1169,11 +1169,11 @@ declare const IngestionRequest: z.ZodObject<{
1169
1169
  agent_tool_use_id?: string | undefined;
1170
1170
  tool_input?: unknown;
1171
1171
  } | {
1172
- type: "tool_call";
1173
1172
  session_id: string;
1174
1173
  transcript_path: string;
1175
1174
  cwd: string;
1176
1175
  hook_event_name: string;
1176
+ type: "tool_call";
1177
1177
  wall_ts: string;
1178
1178
  sequence: number;
1179
1179
  tool_name: string;
@@ -1186,11 +1186,11 @@ declare const IngestionRequest: z.ZodObject<{
1186
1186
  is_error?: boolean | undefined;
1187
1187
  error_message?: string | undefined;
1188
1188
  } | {
1189
- type: "assistant_turn";
1190
1189
  session_id: string;
1191
1190
  transcript_path: string;
1192
1191
  cwd: string;
1193
1192
  hook_event_name: string;
1193
+ type: "assistant_turn";
1194
1194
  wall_ts: string;
1195
1195
  sequence: number;
1196
1196
  message_uuid: string;
@@ -1203,11 +1203,11 @@ declare const IngestionRequest: z.ZodObject<{
1203
1203
  cache_creation_tokens?: number | undefined;
1204
1204
  text?: string | undefined;
1205
1205
  } | {
1206
- type: "subagent_end";
1207
1206
  session_id: string;
1208
1207
  transcript_path: string;
1209
1208
  cwd: string;
1210
1209
  hook_event_name: string;
1210
+ type: "subagent_end";
1211
1211
  wall_ts: string;
1212
1212
  sequence: number;
1213
1213
  agent_id: string;
@@ -1218,11 +1218,11 @@ declare const IngestionRequest: z.ZodObject<{
1218
1218
  agent_tool_use_id?: string | undefined;
1219
1219
  stop_hook_active?: boolean | undefined;
1220
1220
  } | {
1221
- type: "session_end";
1222
1221
  session_id: string;
1223
1222
  transcript_path: string;
1224
1223
  cwd: string;
1225
1224
  hook_event_name: string;
1225
+ type: "session_end";
1226
1226
  wall_ts: string;
1227
1227
  sequence: number;
1228
1228
  permission_mode?: string | undefined;
@@ -1230,11 +1230,11 @@ declare const IngestionRequest: z.ZodObject<{
1230
1230
  last_assistant_message?: string | undefined;
1231
1231
  stop_hook_active?: boolean | undefined;
1232
1232
  } | {
1233
- type: "session_close";
1234
1233
  session_id: string;
1235
1234
  transcript_path: string;
1236
1235
  cwd: string;
1237
1236
  hook_event_name: string;
1237
+ type: "session_close";
1238
1238
  wall_ts: string;
1239
1239
  sequence: number;
1240
1240
  permission_mode?: string | undefined;