runtape 0.6.0 → 0.7.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,28 +13,31 @@ declare const SessionStartEvent: z.ZodObject<{
13
13
  } & {
14
14
  type: z.ZodLiteral<"session_start">;
15
15
  source: z.ZodString;
16
+ project_name: z.ZodOptional<z.ZodString>;
16
17
  }, "strip", z.ZodTypeAny, {
18
+ type: "session_start";
17
19
  session_id: string;
18
20
  transcript_path: string;
19
21
  cwd: string;
20
22
  hook_event_name: string;
21
- type: "session_start";
22
23
  wall_ts: string;
23
24
  sequence: number;
24
25
  source: string;
25
26
  permission_mode?: string | undefined;
26
27
  agent_tool_use_id?: string | undefined;
28
+ project_name?: string | undefined;
27
29
  }, {
30
+ type: "session_start";
28
31
  session_id: string;
29
32
  transcript_path: string;
30
33
  cwd: string;
31
34
  hook_event_name: string;
32
- type: "session_start";
33
35
  wall_ts: string;
34
36
  sequence: number;
35
37
  source: string;
36
38
  permission_mode?: string | undefined;
37
39
  agent_tool_use_id?: string | undefined;
40
+ project_name?: string | undefined;
38
41
  }>;
39
42
  declare const UserPromptEvent: z.ZodObject<{
40
43
  session_id: z.ZodString;
@@ -50,22 +53,22 @@ declare const UserPromptEvent: z.ZodObject<{
50
53
  type: z.ZodLiteral<"user_prompt">;
51
54
  prompt: z.ZodString;
52
55
  }, "strip", z.ZodTypeAny, {
56
+ type: "user_prompt";
53
57
  session_id: string;
54
58
  transcript_path: string;
55
59
  cwd: string;
56
60
  hook_event_name: string;
57
- type: "user_prompt";
58
61
  wall_ts: string;
59
62
  sequence: number;
60
63
  prompt: string;
61
64
  permission_mode?: string | undefined;
62
65
  agent_tool_use_id?: string | undefined;
63
66
  }, {
67
+ type: "user_prompt";
64
68
  session_id: string;
65
69
  transcript_path: string;
66
70
  cwd: string;
67
71
  hook_event_name: string;
68
- type: "user_prompt";
69
72
  wall_ts: string;
70
73
  sequence: number;
71
74
  prompt: string;
@@ -88,11 +91,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
88
91
  tool_input: z.ZodUnknown;
89
92
  tool_use_id: z.ZodString;
90
93
  }, "strip", z.ZodTypeAny, {
94
+ type: "tool_attempt";
91
95
  session_id: string;
92
96
  transcript_path: string;
93
97
  cwd: string;
94
98
  hook_event_name: string;
95
- type: "tool_attempt";
96
99
  wall_ts: string;
97
100
  sequence: number;
98
101
  tool_name: string;
@@ -101,11 +104,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
101
104
  agent_tool_use_id?: string | undefined;
102
105
  tool_input?: unknown;
103
106
  }, {
107
+ type: "tool_attempt";
104
108
  session_id: string;
105
109
  transcript_path: string;
106
110
  cwd: string;
107
111
  hook_event_name: string;
108
- type: "tool_attempt";
109
112
  wall_ts: string;
110
113
  sequence: number;
111
114
  tool_name: string;
@@ -134,11 +137,11 @@ declare const ToolCallEvent: z.ZodObject<{
134
137
  is_error: z.ZodOptional<z.ZodBoolean>;
135
138
  error_message: z.ZodOptional<z.ZodString>;
136
139
  }, "strip", z.ZodTypeAny, {
140
+ type: "tool_call";
137
141
  session_id: string;
138
142
  transcript_path: string;
139
143
  cwd: string;
140
144
  hook_event_name: string;
141
- type: "tool_call";
142
145
  wall_ts: string;
143
146
  sequence: number;
144
147
  tool_name: string;
@@ -151,11 +154,11 @@ declare const ToolCallEvent: z.ZodObject<{
151
154
  is_error?: boolean | undefined;
152
155
  error_message?: string | undefined;
153
156
  }, {
157
+ type: "tool_call";
154
158
  session_id: string;
155
159
  transcript_path: string;
156
160
  cwd: string;
157
161
  hook_event_name: string;
158
- type: "tool_call";
159
162
  wall_ts: string;
160
163
  sequence: number;
161
164
  tool_name: string;
@@ -188,11 +191,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
188
191
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
189
192
  text: z.ZodOptional<z.ZodString>;
190
193
  }, "strip", z.ZodTypeAny, {
194
+ type: "assistant_turn";
191
195
  session_id: string;
192
196
  transcript_path: string;
193
197
  cwd: string;
194
198
  hook_event_name: string;
195
- type: "assistant_turn";
196
199
  wall_ts: string;
197
200
  sequence: number;
198
201
  message_uuid: string;
@@ -205,11 +208,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
205
208
  agent_tool_use_id?: string | undefined;
206
209
  text?: string | undefined;
207
210
  }, {
211
+ type: "assistant_turn";
208
212
  session_id: string;
209
213
  transcript_path: string;
210
214
  cwd: string;
211
215
  hook_event_name: string;
212
- type: "assistant_turn";
213
216
  wall_ts: string;
214
217
  sequence: number;
215
218
  message_uuid: string;
@@ -240,11 +243,11 @@ declare const SubagentEndEvent: z.ZodObject<{
240
243
  last_assistant_message: z.ZodString;
241
244
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
242
245
  }, "strip", z.ZodTypeAny, {
246
+ type: "subagent_end";
243
247
  session_id: string;
244
248
  transcript_path: string;
245
249
  cwd: string;
246
250
  hook_event_name: string;
247
- type: "subagent_end";
248
251
  wall_ts: string;
249
252
  sequence: number;
250
253
  agent_id: string;
@@ -255,11 +258,11 @@ declare const SubagentEndEvent: z.ZodObject<{
255
258
  agent_tool_use_id?: string | undefined;
256
259
  stop_hook_active?: boolean | undefined;
257
260
  }, {
261
+ type: "subagent_end";
258
262
  session_id: string;
259
263
  transcript_path: string;
260
264
  cwd: string;
261
265
  hook_event_name: string;
262
- type: "subagent_end";
263
266
  wall_ts: string;
264
267
  sequence: number;
265
268
  agent_id: string;
@@ -285,11 +288,11 @@ declare const SessionEndEvent: z.ZodObject<{
285
288
  last_assistant_message: z.ZodOptional<z.ZodString>;
286
289
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
287
290
  }, "strip", z.ZodTypeAny, {
291
+ type: "session_end";
288
292
  session_id: string;
289
293
  transcript_path: string;
290
294
  cwd: string;
291
295
  hook_event_name: string;
292
- type: "session_end";
293
296
  wall_ts: string;
294
297
  sequence: number;
295
298
  permission_mode?: string | undefined;
@@ -297,11 +300,11 @@ declare const SessionEndEvent: z.ZodObject<{
297
300
  last_assistant_message?: string | undefined;
298
301
  stop_hook_active?: boolean | undefined;
299
302
  }, {
303
+ type: "session_end";
300
304
  session_id: string;
301
305
  transcript_path: string;
302
306
  cwd: string;
303
307
  hook_event_name: string;
304
- type: "session_end";
305
308
  wall_ts: string;
306
309
  sequence: number;
307
310
  permission_mode?: string | undefined;
@@ -323,22 +326,22 @@ declare const SessionCloseEvent: z.ZodObject<{
323
326
  type: z.ZodLiteral<"session_close">;
324
327
  reason: z.ZodOptional<z.ZodString>;
325
328
  }, "strip", z.ZodTypeAny, {
329
+ type: "session_close";
326
330
  session_id: string;
327
331
  transcript_path: string;
328
332
  cwd: string;
329
333
  hook_event_name: string;
330
- type: "session_close";
331
334
  wall_ts: string;
332
335
  sequence: number;
333
336
  permission_mode?: string | undefined;
334
337
  agent_tool_use_id?: string | undefined;
335
338
  reason?: string | undefined;
336
339
  }, {
340
+ type: "session_close";
337
341
  session_id: string;
338
342
  transcript_path: string;
339
343
  cwd: string;
340
344
  hook_event_name: string;
341
- type: "session_close";
342
345
  wall_ts: string;
343
346
  sequence: number;
344
347
  permission_mode?: string | undefined;
@@ -358,28 +361,31 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
358
361
  } & {
359
362
  type: z.ZodLiteral<"session_start">;
360
363
  source: z.ZodString;
364
+ project_name: z.ZodOptional<z.ZodString>;
361
365
  }, "strip", z.ZodTypeAny, {
366
+ type: "session_start";
362
367
  session_id: string;
363
368
  transcript_path: string;
364
369
  cwd: string;
365
370
  hook_event_name: string;
366
- type: "session_start";
367
371
  wall_ts: string;
368
372
  sequence: number;
369
373
  source: string;
370
374
  permission_mode?: string | undefined;
371
375
  agent_tool_use_id?: string | undefined;
376
+ project_name?: string | undefined;
372
377
  }, {
378
+ type: "session_start";
373
379
  session_id: string;
374
380
  transcript_path: string;
375
381
  cwd: string;
376
382
  hook_event_name: string;
377
- type: "session_start";
378
383
  wall_ts: string;
379
384
  sequence: number;
380
385
  source: string;
381
386
  permission_mode?: string | undefined;
382
387
  agent_tool_use_id?: string | undefined;
388
+ project_name?: string | undefined;
383
389
  }>, z.ZodObject<{
384
390
  session_id: z.ZodString;
385
391
  transcript_path: z.ZodString;
@@ -394,22 +400,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
394
400
  type: z.ZodLiteral<"user_prompt">;
395
401
  prompt: z.ZodString;
396
402
  }, "strip", z.ZodTypeAny, {
403
+ type: "user_prompt";
397
404
  session_id: string;
398
405
  transcript_path: string;
399
406
  cwd: string;
400
407
  hook_event_name: string;
401
- type: "user_prompt";
402
408
  wall_ts: string;
403
409
  sequence: number;
404
410
  prompt: string;
405
411
  permission_mode?: string | undefined;
406
412
  agent_tool_use_id?: string | undefined;
407
413
  }, {
414
+ type: "user_prompt";
408
415
  session_id: string;
409
416
  transcript_path: string;
410
417
  cwd: string;
411
418
  hook_event_name: string;
412
- type: "user_prompt";
413
419
  wall_ts: string;
414
420
  sequence: number;
415
421
  prompt: string;
@@ -431,11 +437,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
431
437
  tool_input: z.ZodUnknown;
432
438
  tool_use_id: z.ZodString;
433
439
  }, "strip", z.ZodTypeAny, {
440
+ type: "tool_attempt";
434
441
  session_id: string;
435
442
  transcript_path: string;
436
443
  cwd: string;
437
444
  hook_event_name: string;
438
- type: "tool_attempt";
439
445
  wall_ts: string;
440
446
  sequence: number;
441
447
  tool_name: string;
@@ -444,11 +450,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
444
450
  agent_tool_use_id?: string | undefined;
445
451
  tool_input?: unknown;
446
452
  }, {
453
+ type: "tool_attempt";
447
454
  session_id: string;
448
455
  transcript_path: string;
449
456
  cwd: string;
450
457
  hook_event_name: string;
451
- type: "tool_attempt";
452
458
  wall_ts: string;
453
459
  sequence: number;
454
460
  tool_name: string;
@@ -476,11 +482,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
476
482
  is_error: z.ZodOptional<z.ZodBoolean>;
477
483
  error_message: z.ZodOptional<z.ZodString>;
478
484
  }, "strip", z.ZodTypeAny, {
485
+ type: "tool_call";
479
486
  session_id: string;
480
487
  transcript_path: string;
481
488
  cwd: string;
482
489
  hook_event_name: string;
483
- type: "tool_call";
484
490
  wall_ts: string;
485
491
  sequence: number;
486
492
  tool_name: string;
@@ -493,11 +499,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
493
499
  is_error?: boolean | undefined;
494
500
  error_message?: string | undefined;
495
501
  }, {
502
+ type: "tool_call";
496
503
  session_id: string;
497
504
  transcript_path: string;
498
505
  cwd: string;
499
506
  hook_event_name: string;
500
- type: "tool_call";
501
507
  wall_ts: string;
502
508
  sequence: number;
503
509
  tool_name: string;
@@ -529,11 +535,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
529
535
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
530
536
  text: z.ZodOptional<z.ZodString>;
531
537
  }, "strip", z.ZodTypeAny, {
538
+ type: "assistant_turn";
532
539
  session_id: string;
533
540
  transcript_path: string;
534
541
  cwd: string;
535
542
  hook_event_name: string;
536
- type: "assistant_turn";
537
543
  wall_ts: string;
538
544
  sequence: number;
539
545
  message_uuid: string;
@@ -546,11 +552,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
546
552
  agent_tool_use_id?: string | undefined;
547
553
  text?: string | undefined;
548
554
  }, {
555
+ type: "assistant_turn";
549
556
  session_id: string;
550
557
  transcript_path: string;
551
558
  cwd: string;
552
559
  hook_event_name: string;
553
- type: "assistant_turn";
554
560
  wall_ts: string;
555
561
  sequence: number;
556
562
  message_uuid: string;
@@ -580,11 +586,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
580
586
  last_assistant_message: z.ZodString;
581
587
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
582
588
  }, "strip", z.ZodTypeAny, {
589
+ type: "subagent_end";
583
590
  session_id: string;
584
591
  transcript_path: string;
585
592
  cwd: string;
586
593
  hook_event_name: string;
587
- type: "subagent_end";
588
594
  wall_ts: string;
589
595
  sequence: number;
590
596
  agent_id: string;
@@ -595,11 +601,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
595
601
  agent_tool_use_id?: string | undefined;
596
602
  stop_hook_active?: boolean | undefined;
597
603
  }, {
604
+ type: "subagent_end";
598
605
  session_id: string;
599
606
  transcript_path: string;
600
607
  cwd: string;
601
608
  hook_event_name: string;
602
- type: "subagent_end";
603
609
  wall_ts: string;
604
610
  sequence: number;
605
611
  agent_id: string;
@@ -624,11 +630,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
624
630
  last_assistant_message: z.ZodOptional<z.ZodString>;
625
631
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
626
632
  }, "strip", z.ZodTypeAny, {
633
+ type: "session_end";
627
634
  session_id: string;
628
635
  transcript_path: string;
629
636
  cwd: string;
630
637
  hook_event_name: string;
631
- type: "session_end";
632
638
  wall_ts: string;
633
639
  sequence: number;
634
640
  permission_mode?: string | undefined;
@@ -636,11 +642,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
636
642
  last_assistant_message?: string | undefined;
637
643
  stop_hook_active?: boolean | undefined;
638
644
  }, {
645
+ type: "session_end";
639
646
  session_id: string;
640
647
  transcript_path: string;
641
648
  cwd: string;
642
649
  hook_event_name: string;
643
- type: "session_end";
644
650
  wall_ts: string;
645
651
  sequence: number;
646
652
  permission_mode?: string | undefined;
@@ -661,22 +667,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
661
667
  type: z.ZodLiteral<"session_close">;
662
668
  reason: z.ZodOptional<z.ZodString>;
663
669
  }, "strip", z.ZodTypeAny, {
670
+ type: "session_close";
664
671
  session_id: string;
665
672
  transcript_path: string;
666
673
  cwd: string;
667
674
  hook_event_name: string;
668
- type: "session_close";
669
675
  wall_ts: string;
670
676
  sequence: number;
671
677
  permission_mode?: string | undefined;
672
678
  agent_tool_use_id?: string | undefined;
673
679
  reason?: string | undefined;
674
680
  }, {
681
+ type: "session_close";
675
682
  session_id: string;
676
683
  transcript_path: string;
677
684
  cwd: string;
678
685
  hook_event_name: string;
679
- type: "session_close";
680
686
  wall_ts: string;
681
687
  sequence: number;
682
688
  permission_mode?: string | undefined;
@@ -698,28 +704,31 @@ declare const IngestionRequest: z.ZodObject<{
698
704
  } & {
699
705
  type: z.ZodLiteral<"session_start">;
700
706
  source: z.ZodString;
707
+ project_name: z.ZodOptional<z.ZodString>;
701
708
  }, "strip", z.ZodTypeAny, {
709
+ type: "session_start";
702
710
  session_id: string;
703
711
  transcript_path: string;
704
712
  cwd: string;
705
713
  hook_event_name: string;
706
- type: "session_start";
707
714
  wall_ts: string;
708
715
  sequence: number;
709
716
  source: string;
710
717
  permission_mode?: string | undefined;
711
718
  agent_tool_use_id?: string | undefined;
719
+ project_name?: string | undefined;
712
720
  }, {
721
+ type: "session_start";
713
722
  session_id: string;
714
723
  transcript_path: string;
715
724
  cwd: string;
716
725
  hook_event_name: string;
717
- type: "session_start";
718
726
  wall_ts: string;
719
727
  sequence: number;
720
728
  source: string;
721
729
  permission_mode?: string | undefined;
722
730
  agent_tool_use_id?: string | undefined;
731
+ project_name?: string | undefined;
723
732
  }>, z.ZodObject<{
724
733
  session_id: z.ZodString;
725
734
  transcript_path: z.ZodString;
@@ -734,22 +743,22 @@ declare const IngestionRequest: z.ZodObject<{
734
743
  type: z.ZodLiteral<"user_prompt">;
735
744
  prompt: z.ZodString;
736
745
  }, "strip", z.ZodTypeAny, {
746
+ type: "user_prompt";
737
747
  session_id: string;
738
748
  transcript_path: string;
739
749
  cwd: string;
740
750
  hook_event_name: string;
741
- type: "user_prompt";
742
751
  wall_ts: string;
743
752
  sequence: number;
744
753
  prompt: string;
745
754
  permission_mode?: string | undefined;
746
755
  agent_tool_use_id?: string | undefined;
747
756
  }, {
757
+ type: "user_prompt";
748
758
  session_id: string;
749
759
  transcript_path: string;
750
760
  cwd: string;
751
761
  hook_event_name: string;
752
- type: "user_prompt";
753
762
  wall_ts: string;
754
763
  sequence: number;
755
764
  prompt: string;
@@ -771,11 +780,11 @@ declare const IngestionRequest: z.ZodObject<{
771
780
  tool_input: z.ZodUnknown;
772
781
  tool_use_id: z.ZodString;
773
782
  }, "strip", z.ZodTypeAny, {
783
+ type: "tool_attempt";
774
784
  session_id: string;
775
785
  transcript_path: string;
776
786
  cwd: string;
777
787
  hook_event_name: string;
778
- type: "tool_attempt";
779
788
  wall_ts: string;
780
789
  sequence: number;
781
790
  tool_name: string;
@@ -784,11 +793,11 @@ declare const IngestionRequest: z.ZodObject<{
784
793
  agent_tool_use_id?: string | undefined;
785
794
  tool_input?: unknown;
786
795
  }, {
796
+ type: "tool_attempt";
787
797
  session_id: string;
788
798
  transcript_path: string;
789
799
  cwd: string;
790
800
  hook_event_name: string;
791
- type: "tool_attempt";
792
801
  wall_ts: string;
793
802
  sequence: number;
794
803
  tool_name: string;
@@ -816,11 +825,11 @@ declare const IngestionRequest: z.ZodObject<{
816
825
  is_error: z.ZodOptional<z.ZodBoolean>;
817
826
  error_message: z.ZodOptional<z.ZodString>;
818
827
  }, "strip", z.ZodTypeAny, {
828
+ type: "tool_call";
819
829
  session_id: string;
820
830
  transcript_path: string;
821
831
  cwd: string;
822
832
  hook_event_name: string;
823
- type: "tool_call";
824
833
  wall_ts: string;
825
834
  sequence: number;
826
835
  tool_name: string;
@@ -833,11 +842,11 @@ declare const IngestionRequest: z.ZodObject<{
833
842
  is_error?: boolean | undefined;
834
843
  error_message?: string | undefined;
835
844
  }, {
845
+ type: "tool_call";
836
846
  session_id: string;
837
847
  transcript_path: string;
838
848
  cwd: string;
839
849
  hook_event_name: string;
840
- type: "tool_call";
841
850
  wall_ts: string;
842
851
  sequence: number;
843
852
  tool_name: string;
@@ -869,11 +878,11 @@ declare const IngestionRequest: z.ZodObject<{
869
878
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
870
879
  text: z.ZodOptional<z.ZodString>;
871
880
  }, "strip", z.ZodTypeAny, {
881
+ type: "assistant_turn";
872
882
  session_id: string;
873
883
  transcript_path: string;
874
884
  cwd: string;
875
885
  hook_event_name: string;
876
- type: "assistant_turn";
877
886
  wall_ts: string;
878
887
  sequence: number;
879
888
  message_uuid: string;
@@ -886,11 +895,11 @@ declare const IngestionRequest: z.ZodObject<{
886
895
  agent_tool_use_id?: string | undefined;
887
896
  text?: string | undefined;
888
897
  }, {
898
+ type: "assistant_turn";
889
899
  session_id: string;
890
900
  transcript_path: string;
891
901
  cwd: string;
892
902
  hook_event_name: string;
893
- type: "assistant_turn";
894
903
  wall_ts: string;
895
904
  sequence: number;
896
905
  message_uuid: string;
@@ -920,11 +929,11 @@ declare const IngestionRequest: z.ZodObject<{
920
929
  last_assistant_message: z.ZodString;
921
930
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
922
931
  }, "strip", z.ZodTypeAny, {
932
+ type: "subagent_end";
923
933
  session_id: string;
924
934
  transcript_path: string;
925
935
  cwd: string;
926
936
  hook_event_name: string;
927
- type: "subagent_end";
928
937
  wall_ts: string;
929
938
  sequence: number;
930
939
  agent_id: string;
@@ -935,11 +944,11 @@ declare const IngestionRequest: z.ZodObject<{
935
944
  agent_tool_use_id?: string | undefined;
936
945
  stop_hook_active?: boolean | undefined;
937
946
  }, {
947
+ type: "subagent_end";
938
948
  session_id: string;
939
949
  transcript_path: string;
940
950
  cwd: string;
941
951
  hook_event_name: string;
942
- type: "subagent_end";
943
952
  wall_ts: string;
944
953
  sequence: number;
945
954
  agent_id: string;
@@ -964,11 +973,11 @@ declare const IngestionRequest: z.ZodObject<{
964
973
  last_assistant_message: z.ZodOptional<z.ZodString>;
965
974
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
966
975
  }, "strip", z.ZodTypeAny, {
976
+ type: "session_end";
967
977
  session_id: string;
968
978
  transcript_path: string;
969
979
  cwd: string;
970
980
  hook_event_name: string;
971
- type: "session_end";
972
981
  wall_ts: string;
973
982
  sequence: number;
974
983
  permission_mode?: string | undefined;
@@ -976,11 +985,11 @@ declare const IngestionRequest: z.ZodObject<{
976
985
  last_assistant_message?: string | undefined;
977
986
  stop_hook_active?: boolean | undefined;
978
987
  }, {
988
+ type: "session_end";
979
989
  session_id: string;
980
990
  transcript_path: string;
981
991
  cwd: string;
982
992
  hook_event_name: string;
983
- type: "session_end";
984
993
  wall_ts: string;
985
994
  sequence: number;
986
995
  permission_mode?: string | undefined;
@@ -1001,22 +1010,22 @@ declare const IngestionRequest: z.ZodObject<{
1001
1010
  type: z.ZodLiteral<"session_close">;
1002
1011
  reason: z.ZodOptional<z.ZodString>;
1003
1012
  }, "strip", z.ZodTypeAny, {
1013
+ type: "session_close";
1004
1014
  session_id: string;
1005
1015
  transcript_path: string;
1006
1016
  cwd: string;
1007
1017
  hook_event_name: string;
1008
- type: "session_close";
1009
1018
  wall_ts: string;
1010
1019
  sequence: number;
1011
1020
  permission_mode?: string | undefined;
1012
1021
  agent_tool_use_id?: string | undefined;
1013
1022
  reason?: string | undefined;
1014
1023
  }, {
1024
+ type: "session_close";
1015
1025
  session_id: string;
1016
1026
  transcript_path: string;
1017
1027
  cwd: string;
1018
1028
  hook_event_name: string;
1019
- type: "session_close";
1020
1029
  wall_ts: string;
1021
1030
  sequence: number;
1022
1031
  permission_mode?: string | undefined;
@@ -1025,33 +1034,34 @@ declare const IngestionRequest: z.ZodObject<{
1025
1034
  }>]>, "many">;
1026
1035
  }, "strip", z.ZodTypeAny, {
1027
1036
  events: ({
1037
+ type: "session_start";
1028
1038
  session_id: string;
1029
1039
  transcript_path: string;
1030
1040
  cwd: string;
1031
1041
  hook_event_name: string;
1032
- type: "session_start";
1033
1042
  wall_ts: string;
1034
1043
  sequence: number;
1035
1044
  source: string;
1036
1045
  permission_mode?: string | undefined;
1037
1046
  agent_tool_use_id?: string | undefined;
1047
+ project_name?: string | undefined;
1038
1048
  } | {
1049
+ type: "user_prompt";
1039
1050
  session_id: string;
1040
1051
  transcript_path: string;
1041
1052
  cwd: string;
1042
1053
  hook_event_name: string;
1043
- type: "user_prompt";
1044
1054
  wall_ts: string;
1045
1055
  sequence: number;
1046
1056
  prompt: string;
1047
1057
  permission_mode?: string | undefined;
1048
1058
  agent_tool_use_id?: string | undefined;
1049
1059
  } | {
1060
+ type: "tool_attempt";
1050
1061
  session_id: string;
1051
1062
  transcript_path: string;
1052
1063
  cwd: string;
1053
1064
  hook_event_name: string;
1054
- type: "tool_attempt";
1055
1065
  wall_ts: string;
1056
1066
  sequence: number;
1057
1067
  tool_name: string;
@@ -1060,11 +1070,11 @@ declare const IngestionRequest: z.ZodObject<{
1060
1070
  agent_tool_use_id?: string | undefined;
1061
1071
  tool_input?: unknown;
1062
1072
  } | {
1073
+ type: "tool_call";
1063
1074
  session_id: string;
1064
1075
  transcript_path: string;
1065
1076
  cwd: string;
1066
1077
  hook_event_name: string;
1067
- type: "tool_call";
1068
1078
  wall_ts: string;
1069
1079
  sequence: number;
1070
1080
  tool_name: string;
@@ -1077,11 +1087,11 @@ declare const IngestionRequest: z.ZodObject<{
1077
1087
  is_error?: boolean | undefined;
1078
1088
  error_message?: string | undefined;
1079
1089
  } | {
1090
+ type: "assistant_turn";
1080
1091
  session_id: string;
1081
1092
  transcript_path: string;
1082
1093
  cwd: string;
1083
1094
  hook_event_name: string;
1084
- type: "assistant_turn";
1085
1095
  wall_ts: string;
1086
1096
  sequence: number;
1087
1097
  message_uuid: string;
@@ -1094,11 +1104,11 @@ declare const IngestionRequest: z.ZodObject<{
1094
1104
  agent_tool_use_id?: string | undefined;
1095
1105
  text?: string | undefined;
1096
1106
  } | {
1107
+ type: "subagent_end";
1097
1108
  session_id: string;
1098
1109
  transcript_path: string;
1099
1110
  cwd: string;
1100
1111
  hook_event_name: string;
1101
- type: "subagent_end";
1102
1112
  wall_ts: string;
1103
1113
  sequence: number;
1104
1114
  agent_id: string;
@@ -1109,11 +1119,11 @@ declare const IngestionRequest: z.ZodObject<{
1109
1119
  agent_tool_use_id?: string | undefined;
1110
1120
  stop_hook_active?: boolean | undefined;
1111
1121
  } | {
1122
+ type: "session_end";
1112
1123
  session_id: string;
1113
1124
  transcript_path: string;
1114
1125
  cwd: string;
1115
1126
  hook_event_name: string;
1116
- type: "session_end";
1117
1127
  wall_ts: string;
1118
1128
  sequence: number;
1119
1129
  permission_mode?: string | undefined;
@@ -1121,11 +1131,11 @@ declare const IngestionRequest: z.ZodObject<{
1121
1131
  last_assistant_message?: string | undefined;
1122
1132
  stop_hook_active?: boolean | undefined;
1123
1133
  } | {
1134
+ type: "session_close";
1124
1135
  session_id: string;
1125
1136
  transcript_path: string;
1126
1137
  cwd: string;
1127
1138
  hook_event_name: string;
1128
- type: "session_close";
1129
1139
  wall_ts: string;
1130
1140
  sequence: number;
1131
1141
  permission_mode?: string | undefined;
@@ -1134,33 +1144,34 @@ declare const IngestionRequest: z.ZodObject<{
1134
1144
  })[];
1135
1145
  }, {
1136
1146
  events: ({
1147
+ type: "session_start";
1137
1148
  session_id: string;
1138
1149
  transcript_path: string;
1139
1150
  cwd: string;
1140
1151
  hook_event_name: string;
1141
- type: "session_start";
1142
1152
  wall_ts: string;
1143
1153
  sequence: number;
1144
1154
  source: string;
1145
1155
  permission_mode?: string | undefined;
1146
1156
  agent_tool_use_id?: string | undefined;
1157
+ project_name?: string | undefined;
1147
1158
  } | {
1159
+ type: "user_prompt";
1148
1160
  session_id: string;
1149
1161
  transcript_path: string;
1150
1162
  cwd: string;
1151
1163
  hook_event_name: string;
1152
- type: "user_prompt";
1153
1164
  wall_ts: string;
1154
1165
  sequence: number;
1155
1166
  prompt: string;
1156
1167
  permission_mode?: string | undefined;
1157
1168
  agent_tool_use_id?: string | undefined;
1158
1169
  } | {
1170
+ type: "tool_attempt";
1159
1171
  session_id: string;
1160
1172
  transcript_path: string;
1161
1173
  cwd: string;
1162
1174
  hook_event_name: string;
1163
- type: "tool_attempt";
1164
1175
  wall_ts: string;
1165
1176
  sequence: number;
1166
1177
  tool_name: string;
@@ -1169,11 +1180,11 @@ declare const IngestionRequest: z.ZodObject<{
1169
1180
  agent_tool_use_id?: string | undefined;
1170
1181
  tool_input?: unknown;
1171
1182
  } | {
1183
+ type: "tool_call";
1172
1184
  session_id: string;
1173
1185
  transcript_path: string;
1174
1186
  cwd: string;
1175
1187
  hook_event_name: string;
1176
- type: "tool_call";
1177
1188
  wall_ts: string;
1178
1189
  sequence: number;
1179
1190
  tool_name: string;
@@ -1186,11 +1197,11 @@ declare const IngestionRequest: z.ZodObject<{
1186
1197
  is_error?: boolean | undefined;
1187
1198
  error_message?: string | undefined;
1188
1199
  } | {
1200
+ type: "assistant_turn";
1189
1201
  session_id: string;
1190
1202
  transcript_path: string;
1191
1203
  cwd: string;
1192
1204
  hook_event_name: string;
1193
- type: "assistant_turn";
1194
1205
  wall_ts: string;
1195
1206
  sequence: number;
1196
1207
  message_uuid: string;
@@ -1203,11 +1214,11 @@ declare const IngestionRequest: z.ZodObject<{
1203
1214
  cache_creation_tokens?: number | undefined;
1204
1215
  text?: string | undefined;
1205
1216
  } | {
1217
+ type: "subagent_end";
1206
1218
  session_id: string;
1207
1219
  transcript_path: string;
1208
1220
  cwd: string;
1209
1221
  hook_event_name: string;
1210
- type: "subagent_end";
1211
1222
  wall_ts: string;
1212
1223
  sequence: number;
1213
1224
  agent_id: string;
@@ -1218,11 +1229,11 @@ declare const IngestionRequest: z.ZodObject<{
1218
1229
  agent_tool_use_id?: string | undefined;
1219
1230
  stop_hook_active?: boolean | undefined;
1220
1231
  } | {
1232
+ type: "session_end";
1221
1233
  session_id: string;
1222
1234
  transcript_path: string;
1223
1235
  cwd: string;
1224
1236
  hook_event_name: string;
1225
- type: "session_end";
1226
1237
  wall_ts: string;
1227
1238
  sequence: number;
1228
1239
  permission_mode?: string | undefined;
@@ -1230,11 +1241,11 @@ declare const IngestionRequest: z.ZodObject<{
1230
1241
  last_assistant_message?: string | undefined;
1231
1242
  stop_hook_active?: boolean | undefined;
1232
1243
  } | {
1244
+ type: "session_close";
1233
1245
  session_id: string;
1234
1246
  transcript_path: string;
1235
1247
  cwd: string;
1236
1248
  hook_event_name: string;
1237
- type: "session_close";
1238
1249
  wall_ts: string;
1239
1250
  sequence: number;
1240
1251
  permission_mode?: string | undefined;