runtape 0.7.0 → 0.7.1

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
@@ -15,11 +15,11 @@ declare const SessionStartEvent: z.ZodObject<{
15
15
  source: z.ZodString;
16
16
  project_name: z.ZodOptional<z.ZodString>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- type: "session_start";
19
18
  session_id: string;
20
19
  transcript_path: string;
21
20
  cwd: string;
22
21
  hook_event_name: string;
22
+ type: "session_start";
23
23
  wall_ts: string;
24
24
  sequence: number;
25
25
  source: string;
@@ -27,11 +27,11 @@ declare const SessionStartEvent: z.ZodObject<{
27
27
  agent_tool_use_id?: string | undefined;
28
28
  project_name?: string | undefined;
29
29
  }, {
30
- type: "session_start";
31
30
  session_id: string;
32
31
  transcript_path: string;
33
32
  cwd: string;
34
33
  hook_event_name: string;
34
+ type: "session_start";
35
35
  wall_ts: string;
36
36
  sequence: number;
37
37
  source: string;
@@ -53,22 +53,22 @@ declare const UserPromptEvent: z.ZodObject<{
53
53
  type: z.ZodLiteral<"user_prompt">;
54
54
  prompt: z.ZodString;
55
55
  }, "strip", z.ZodTypeAny, {
56
- type: "user_prompt";
57
56
  session_id: string;
58
57
  transcript_path: string;
59
58
  cwd: string;
60
59
  hook_event_name: string;
60
+ type: "user_prompt";
61
61
  wall_ts: string;
62
62
  sequence: number;
63
63
  prompt: string;
64
64
  permission_mode?: string | undefined;
65
65
  agent_tool_use_id?: string | undefined;
66
66
  }, {
67
- type: "user_prompt";
68
67
  session_id: string;
69
68
  transcript_path: string;
70
69
  cwd: string;
71
70
  hook_event_name: string;
71
+ type: "user_prompt";
72
72
  wall_ts: string;
73
73
  sequence: number;
74
74
  prompt: string;
@@ -91,11 +91,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
91
91
  tool_input: z.ZodUnknown;
92
92
  tool_use_id: z.ZodString;
93
93
  }, "strip", z.ZodTypeAny, {
94
- type: "tool_attempt";
95
94
  session_id: string;
96
95
  transcript_path: string;
97
96
  cwd: string;
98
97
  hook_event_name: string;
98
+ type: "tool_attempt";
99
99
  wall_ts: string;
100
100
  sequence: number;
101
101
  tool_name: string;
@@ -104,11 +104,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
104
104
  agent_tool_use_id?: string | undefined;
105
105
  tool_input?: unknown;
106
106
  }, {
107
- type: "tool_attempt";
108
107
  session_id: string;
109
108
  transcript_path: string;
110
109
  cwd: string;
111
110
  hook_event_name: string;
111
+ type: "tool_attempt";
112
112
  wall_ts: string;
113
113
  sequence: number;
114
114
  tool_name: string;
@@ -137,11 +137,11 @@ declare const ToolCallEvent: z.ZodObject<{
137
137
  is_error: z.ZodOptional<z.ZodBoolean>;
138
138
  error_message: z.ZodOptional<z.ZodString>;
139
139
  }, "strip", z.ZodTypeAny, {
140
- type: "tool_call";
141
140
  session_id: string;
142
141
  transcript_path: string;
143
142
  cwd: string;
144
143
  hook_event_name: string;
144
+ type: "tool_call";
145
145
  wall_ts: string;
146
146
  sequence: number;
147
147
  tool_name: string;
@@ -154,11 +154,11 @@ declare const ToolCallEvent: z.ZodObject<{
154
154
  is_error?: boolean | undefined;
155
155
  error_message?: string | undefined;
156
156
  }, {
157
- type: "tool_call";
158
157
  session_id: string;
159
158
  transcript_path: string;
160
159
  cwd: string;
161
160
  hook_event_name: string;
161
+ type: "tool_call";
162
162
  wall_ts: string;
163
163
  sequence: number;
164
164
  tool_name: string;
@@ -191,11 +191,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
191
191
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
192
192
  text: z.ZodOptional<z.ZodString>;
193
193
  }, "strip", z.ZodTypeAny, {
194
- type: "assistant_turn";
195
194
  session_id: string;
196
195
  transcript_path: string;
197
196
  cwd: string;
198
197
  hook_event_name: string;
198
+ type: "assistant_turn";
199
199
  wall_ts: string;
200
200
  sequence: number;
201
201
  message_uuid: string;
@@ -208,11 +208,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
208
208
  agent_tool_use_id?: string | undefined;
209
209
  text?: string | undefined;
210
210
  }, {
211
- type: "assistant_turn";
212
211
  session_id: string;
213
212
  transcript_path: string;
214
213
  cwd: string;
215
214
  hook_event_name: string;
215
+ type: "assistant_turn";
216
216
  wall_ts: string;
217
217
  sequence: number;
218
218
  message_uuid: string;
@@ -243,11 +243,11 @@ declare const SubagentEndEvent: z.ZodObject<{
243
243
  last_assistant_message: z.ZodString;
244
244
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
245
245
  }, "strip", z.ZodTypeAny, {
246
- type: "subagent_end";
247
246
  session_id: string;
248
247
  transcript_path: string;
249
248
  cwd: string;
250
249
  hook_event_name: string;
250
+ type: "subagent_end";
251
251
  wall_ts: string;
252
252
  sequence: number;
253
253
  agent_id: string;
@@ -258,11 +258,11 @@ declare const SubagentEndEvent: z.ZodObject<{
258
258
  agent_tool_use_id?: string | undefined;
259
259
  stop_hook_active?: boolean | undefined;
260
260
  }, {
261
- type: "subagent_end";
262
261
  session_id: string;
263
262
  transcript_path: string;
264
263
  cwd: string;
265
264
  hook_event_name: string;
265
+ type: "subagent_end";
266
266
  wall_ts: string;
267
267
  sequence: number;
268
268
  agent_id: string;
@@ -288,11 +288,11 @@ declare const SessionEndEvent: z.ZodObject<{
288
288
  last_assistant_message: z.ZodOptional<z.ZodString>;
289
289
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
290
290
  }, "strip", z.ZodTypeAny, {
291
- type: "session_end";
292
291
  session_id: string;
293
292
  transcript_path: string;
294
293
  cwd: string;
295
294
  hook_event_name: string;
295
+ type: "session_end";
296
296
  wall_ts: string;
297
297
  sequence: number;
298
298
  permission_mode?: string | undefined;
@@ -300,11 +300,11 @@ declare const SessionEndEvent: z.ZodObject<{
300
300
  last_assistant_message?: string | undefined;
301
301
  stop_hook_active?: boolean | undefined;
302
302
  }, {
303
- type: "session_end";
304
303
  session_id: string;
305
304
  transcript_path: string;
306
305
  cwd: string;
307
306
  hook_event_name: string;
307
+ type: "session_end";
308
308
  wall_ts: string;
309
309
  sequence: number;
310
310
  permission_mode?: string | undefined;
@@ -326,22 +326,22 @@ declare const SessionCloseEvent: z.ZodObject<{
326
326
  type: z.ZodLiteral<"session_close">;
327
327
  reason: z.ZodOptional<z.ZodString>;
328
328
  }, "strip", z.ZodTypeAny, {
329
- type: "session_close";
330
329
  session_id: string;
331
330
  transcript_path: string;
332
331
  cwd: string;
333
332
  hook_event_name: string;
333
+ type: "session_close";
334
334
  wall_ts: string;
335
335
  sequence: number;
336
336
  permission_mode?: string | undefined;
337
337
  agent_tool_use_id?: string | undefined;
338
338
  reason?: string | undefined;
339
339
  }, {
340
- type: "session_close";
341
340
  session_id: string;
342
341
  transcript_path: string;
343
342
  cwd: string;
344
343
  hook_event_name: string;
344
+ type: "session_close";
345
345
  wall_ts: string;
346
346
  sequence: number;
347
347
  permission_mode?: string | undefined;
@@ -363,11 +363,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
363
363
  source: z.ZodString;
364
364
  project_name: z.ZodOptional<z.ZodString>;
365
365
  }, "strip", z.ZodTypeAny, {
366
- type: "session_start";
367
366
  session_id: string;
368
367
  transcript_path: string;
369
368
  cwd: string;
370
369
  hook_event_name: string;
370
+ type: "session_start";
371
371
  wall_ts: string;
372
372
  sequence: number;
373
373
  source: string;
@@ -375,11 +375,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
375
375
  agent_tool_use_id?: string | undefined;
376
376
  project_name?: string | undefined;
377
377
  }, {
378
- type: "session_start";
379
378
  session_id: string;
380
379
  transcript_path: string;
381
380
  cwd: string;
382
381
  hook_event_name: string;
382
+ type: "session_start";
383
383
  wall_ts: string;
384
384
  sequence: number;
385
385
  source: string;
@@ -400,22 +400,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
400
400
  type: z.ZodLiteral<"user_prompt">;
401
401
  prompt: z.ZodString;
402
402
  }, "strip", z.ZodTypeAny, {
403
- type: "user_prompt";
404
403
  session_id: string;
405
404
  transcript_path: string;
406
405
  cwd: string;
407
406
  hook_event_name: string;
407
+ type: "user_prompt";
408
408
  wall_ts: string;
409
409
  sequence: number;
410
410
  prompt: string;
411
411
  permission_mode?: string | undefined;
412
412
  agent_tool_use_id?: string | undefined;
413
413
  }, {
414
- type: "user_prompt";
415
414
  session_id: string;
416
415
  transcript_path: string;
417
416
  cwd: string;
418
417
  hook_event_name: string;
418
+ type: "user_prompt";
419
419
  wall_ts: string;
420
420
  sequence: number;
421
421
  prompt: string;
@@ -437,11 +437,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
437
437
  tool_input: z.ZodUnknown;
438
438
  tool_use_id: z.ZodString;
439
439
  }, "strip", z.ZodTypeAny, {
440
- type: "tool_attempt";
441
440
  session_id: string;
442
441
  transcript_path: string;
443
442
  cwd: string;
444
443
  hook_event_name: string;
444
+ type: "tool_attempt";
445
445
  wall_ts: string;
446
446
  sequence: number;
447
447
  tool_name: string;
@@ -450,11 +450,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
450
450
  agent_tool_use_id?: string | undefined;
451
451
  tool_input?: unknown;
452
452
  }, {
453
- type: "tool_attempt";
454
453
  session_id: string;
455
454
  transcript_path: string;
456
455
  cwd: string;
457
456
  hook_event_name: string;
457
+ type: "tool_attempt";
458
458
  wall_ts: string;
459
459
  sequence: number;
460
460
  tool_name: string;
@@ -482,11 +482,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
482
482
  is_error: z.ZodOptional<z.ZodBoolean>;
483
483
  error_message: z.ZodOptional<z.ZodString>;
484
484
  }, "strip", z.ZodTypeAny, {
485
- type: "tool_call";
486
485
  session_id: string;
487
486
  transcript_path: string;
488
487
  cwd: string;
489
488
  hook_event_name: string;
489
+ type: "tool_call";
490
490
  wall_ts: string;
491
491
  sequence: number;
492
492
  tool_name: string;
@@ -499,11 +499,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
499
499
  is_error?: boolean | undefined;
500
500
  error_message?: string | undefined;
501
501
  }, {
502
- type: "tool_call";
503
502
  session_id: string;
504
503
  transcript_path: string;
505
504
  cwd: string;
506
505
  hook_event_name: string;
506
+ type: "tool_call";
507
507
  wall_ts: string;
508
508
  sequence: number;
509
509
  tool_name: string;
@@ -535,11 +535,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
535
535
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
536
536
  text: z.ZodOptional<z.ZodString>;
537
537
  }, "strip", z.ZodTypeAny, {
538
- type: "assistant_turn";
539
538
  session_id: string;
540
539
  transcript_path: string;
541
540
  cwd: string;
542
541
  hook_event_name: string;
542
+ type: "assistant_turn";
543
543
  wall_ts: string;
544
544
  sequence: number;
545
545
  message_uuid: string;
@@ -552,11 +552,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
552
552
  agent_tool_use_id?: string | undefined;
553
553
  text?: string | undefined;
554
554
  }, {
555
- type: "assistant_turn";
556
555
  session_id: string;
557
556
  transcript_path: string;
558
557
  cwd: string;
559
558
  hook_event_name: string;
559
+ type: "assistant_turn";
560
560
  wall_ts: string;
561
561
  sequence: number;
562
562
  message_uuid: string;
@@ -586,11 +586,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
586
586
  last_assistant_message: z.ZodString;
587
587
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
588
588
  }, "strip", z.ZodTypeAny, {
589
- type: "subagent_end";
590
589
  session_id: string;
591
590
  transcript_path: string;
592
591
  cwd: string;
593
592
  hook_event_name: string;
593
+ type: "subagent_end";
594
594
  wall_ts: string;
595
595
  sequence: number;
596
596
  agent_id: string;
@@ -601,11 +601,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
601
601
  agent_tool_use_id?: string | undefined;
602
602
  stop_hook_active?: boolean | undefined;
603
603
  }, {
604
- type: "subagent_end";
605
604
  session_id: string;
606
605
  transcript_path: string;
607
606
  cwd: string;
608
607
  hook_event_name: string;
608
+ type: "subagent_end";
609
609
  wall_ts: string;
610
610
  sequence: number;
611
611
  agent_id: string;
@@ -630,11 +630,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
630
630
  last_assistant_message: z.ZodOptional<z.ZodString>;
631
631
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
632
632
  }, "strip", z.ZodTypeAny, {
633
- type: "session_end";
634
633
  session_id: string;
635
634
  transcript_path: string;
636
635
  cwd: string;
637
636
  hook_event_name: string;
637
+ type: "session_end";
638
638
  wall_ts: string;
639
639
  sequence: number;
640
640
  permission_mode?: string | undefined;
@@ -642,11 +642,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
642
642
  last_assistant_message?: string | undefined;
643
643
  stop_hook_active?: boolean | undefined;
644
644
  }, {
645
- type: "session_end";
646
645
  session_id: string;
647
646
  transcript_path: string;
648
647
  cwd: string;
649
648
  hook_event_name: string;
649
+ type: "session_end";
650
650
  wall_ts: string;
651
651
  sequence: number;
652
652
  permission_mode?: string | undefined;
@@ -667,22 +667,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
667
667
  type: z.ZodLiteral<"session_close">;
668
668
  reason: z.ZodOptional<z.ZodString>;
669
669
  }, "strip", z.ZodTypeAny, {
670
- type: "session_close";
671
670
  session_id: string;
672
671
  transcript_path: string;
673
672
  cwd: string;
674
673
  hook_event_name: string;
674
+ type: "session_close";
675
675
  wall_ts: string;
676
676
  sequence: number;
677
677
  permission_mode?: string | undefined;
678
678
  agent_tool_use_id?: string | undefined;
679
679
  reason?: string | undefined;
680
680
  }, {
681
- type: "session_close";
682
681
  session_id: string;
683
682
  transcript_path: string;
684
683
  cwd: string;
685
684
  hook_event_name: string;
685
+ type: "session_close";
686
686
  wall_ts: string;
687
687
  sequence: number;
688
688
  permission_mode?: string | undefined;
@@ -706,11 +706,11 @@ declare const IngestionRequest: z.ZodObject<{
706
706
  source: z.ZodString;
707
707
  project_name: z.ZodOptional<z.ZodString>;
708
708
  }, "strip", z.ZodTypeAny, {
709
- type: "session_start";
710
709
  session_id: string;
711
710
  transcript_path: string;
712
711
  cwd: string;
713
712
  hook_event_name: string;
713
+ type: "session_start";
714
714
  wall_ts: string;
715
715
  sequence: number;
716
716
  source: string;
@@ -718,11 +718,11 @@ declare const IngestionRequest: z.ZodObject<{
718
718
  agent_tool_use_id?: string | undefined;
719
719
  project_name?: string | undefined;
720
720
  }, {
721
- type: "session_start";
722
721
  session_id: string;
723
722
  transcript_path: string;
724
723
  cwd: string;
725
724
  hook_event_name: string;
725
+ type: "session_start";
726
726
  wall_ts: string;
727
727
  sequence: number;
728
728
  source: string;
@@ -743,22 +743,22 @@ declare const IngestionRequest: z.ZodObject<{
743
743
  type: z.ZodLiteral<"user_prompt">;
744
744
  prompt: z.ZodString;
745
745
  }, "strip", z.ZodTypeAny, {
746
- type: "user_prompt";
747
746
  session_id: string;
748
747
  transcript_path: string;
749
748
  cwd: string;
750
749
  hook_event_name: string;
750
+ type: "user_prompt";
751
751
  wall_ts: string;
752
752
  sequence: number;
753
753
  prompt: string;
754
754
  permission_mode?: string | undefined;
755
755
  agent_tool_use_id?: string | undefined;
756
756
  }, {
757
- type: "user_prompt";
758
757
  session_id: string;
759
758
  transcript_path: string;
760
759
  cwd: string;
761
760
  hook_event_name: string;
761
+ type: "user_prompt";
762
762
  wall_ts: string;
763
763
  sequence: number;
764
764
  prompt: string;
@@ -780,11 +780,11 @@ declare const IngestionRequest: z.ZodObject<{
780
780
  tool_input: z.ZodUnknown;
781
781
  tool_use_id: z.ZodString;
782
782
  }, "strip", z.ZodTypeAny, {
783
- type: "tool_attempt";
784
783
  session_id: string;
785
784
  transcript_path: string;
786
785
  cwd: string;
787
786
  hook_event_name: string;
787
+ type: "tool_attempt";
788
788
  wall_ts: string;
789
789
  sequence: number;
790
790
  tool_name: string;
@@ -793,11 +793,11 @@ declare const IngestionRequest: z.ZodObject<{
793
793
  agent_tool_use_id?: string | undefined;
794
794
  tool_input?: unknown;
795
795
  }, {
796
- type: "tool_attempt";
797
796
  session_id: string;
798
797
  transcript_path: string;
799
798
  cwd: string;
800
799
  hook_event_name: string;
800
+ type: "tool_attempt";
801
801
  wall_ts: string;
802
802
  sequence: number;
803
803
  tool_name: string;
@@ -825,11 +825,11 @@ declare const IngestionRequest: z.ZodObject<{
825
825
  is_error: z.ZodOptional<z.ZodBoolean>;
826
826
  error_message: z.ZodOptional<z.ZodString>;
827
827
  }, "strip", z.ZodTypeAny, {
828
- type: "tool_call";
829
828
  session_id: string;
830
829
  transcript_path: string;
831
830
  cwd: string;
832
831
  hook_event_name: string;
832
+ type: "tool_call";
833
833
  wall_ts: string;
834
834
  sequence: number;
835
835
  tool_name: string;
@@ -842,11 +842,11 @@ declare const IngestionRequest: z.ZodObject<{
842
842
  is_error?: boolean | undefined;
843
843
  error_message?: string | undefined;
844
844
  }, {
845
- type: "tool_call";
846
845
  session_id: string;
847
846
  transcript_path: string;
848
847
  cwd: string;
849
848
  hook_event_name: string;
849
+ type: "tool_call";
850
850
  wall_ts: string;
851
851
  sequence: number;
852
852
  tool_name: string;
@@ -878,11 +878,11 @@ declare const IngestionRequest: z.ZodObject<{
878
878
  cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
879
879
  text: z.ZodOptional<z.ZodString>;
880
880
  }, "strip", z.ZodTypeAny, {
881
- type: "assistant_turn";
882
881
  session_id: string;
883
882
  transcript_path: string;
884
883
  cwd: string;
885
884
  hook_event_name: string;
885
+ type: "assistant_turn";
886
886
  wall_ts: string;
887
887
  sequence: number;
888
888
  message_uuid: string;
@@ -895,11 +895,11 @@ declare const IngestionRequest: z.ZodObject<{
895
895
  agent_tool_use_id?: string | undefined;
896
896
  text?: string | undefined;
897
897
  }, {
898
- type: "assistant_turn";
899
898
  session_id: string;
900
899
  transcript_path: string;
901
900
  cwd: string;
902
901
  hook_event_name: string;
902
+ type: "assistant_turn";
903
903
  wall_ts: string;
904
904
  sequence: number;
905
905
  message_uuid: string;
@@ -929,11 +929,11 @@ declare const IngestionRequest: z.ZodObject<{
929
929
  last_assistant_message: z.ZodString;
930
930
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
931
931
  }, "strip", z.ZodTypeAny, {
932
- type: "subagent_end";
933
932
  session_id: string;
934
933
  transcript_path: string;
935
934
  cwd: string;
936
935
  hook_event_name: string;
936
+ type: "subagent_end";
937
937
  wall_ts: string;
938
938
  sequence: number;
939
939
  agent_id: string;
@@ -944,11 +944,11 @@ declare const IngestionRequest: z.ZodObject<{
944
944
  agent_tool_use_id?: string | undefined;
945
945
  stop_hook_active?: boolean | undefined;
946
946
  }, {
947
- type: "subagent_end";
948
947
  session_id: string;
949
948
  transcript_path: string;
950
949
  cwd: string;
951
950
  hook_event_name: string;
951
+ type: "subagent_end";
952
952
  wall_ts: string;
953
953
  sequence: number;
954
954
  agent_id: string;
@@ -973,11 +973,11 @@ declare const IngestionRequest: z.ZodObject<{
973
973
  last_assistant_message: z.ZodOptional<z.ZodString>;
974
974
  stop_hook_active: z.ZodOptional<z.ZodBoolean>;
975
975
  }, "strip", z.ZodTypeAny, {
976
- type: "session_end";
977
976
  session_id: string;
978
977
  transcript_path: string;
979
978
  cwd: string;
980
979
  hook_event_name: string;
980
+ type: "session_end";
981
981
  wall_ts: string;
982
982
  sequence: number;
983
983
  permission_mode?: string | undefined;
@@ -985,11 +985,11 @@ declare const IngestionRequest: z.ZodObject<{
985
985
  last_assistant_message?: string | undefined;
986
986
  stop_hook_active?: boolean | undefined;
987
987
  }, {
988
- type: "session_end";
989
988
  session_id: string;
990
989
  transcript_path: string;
991
990
  cwd: string;
992
991
  hook_event_name: string;
992
+ type: "session_end";
993
993
  wall_ts: string;
994
994
  sequence: number;
995
995
  permission_mode?: string | undefined;
@@ -1010,22 +1010,22 @@ declare const IngestionRequest: z.ZodObject<{
1010
1010
  type: z.ZodLiteral<"session_close">;
1011
1011
  reason: z.ZodOptional<z.ZodString>;
1012
1012
  }, "strip", z.ZodTypeAny, {
1013
- type: "session_close";
1014
1013
  session_id: string;
1015
1014
  transcript_path: string;
1016
1015
  cwd: string;
1017
1016
  hook_event_name: string;
1017
+ type: "session_close";
1018
1018
  wall_ts: string;
1019
1019
  sequence: number;
1020
1020
  permission_mode?: string | undefined;
1021
1021
  agent_tool_use_id?: string | undefined;
1022
1022
  reason?: string | undefined;
1023
1023
  }, {
1024
- type: "session_close";
1025
1024
  session_id: string;
1026
1025
  transcript_path: string;
1027
1026
  cwd: string;
1028
1027
  hook_event_name: string;
1028
+ type: "session_close";
1029
1029
  wall_ts: string;
1030
1030
  sequence: number;
1031
1031
  permission_mode?: string | undefined;
@@ -1034,11 +1034,11 @@ declare const IngestionRequest: z.ZodObject<{
1034
1034
  }>]>, "many">;
1035
1035
  }, "strip", z.ZodTypeAny, {
1036
1036
  events: ({
1037
- type: "session_start";
1038
1037
  session_id: string;
1039
1038
  transcript_path: string;
1040
1039
  cwd: string;
1041
1040
  hook_event_name: string;
1041
+ type: "session_start";
1042
1042
  wall_ts: string;
1043
1043
  sequence: number;
1044
1044
  source: string;
@@ -1046,22 +1046,22 @@ declare const IngestionRequest: z.ZodObject<{
1046
1046
  agent_tool_use_id?: string | undefined;
1047
1047
  project_name?: string | undefined;
1048
1048
  } | {
1049
- type: "user_prompt";
1050
1049
  session_id: string;
1051
1050
  transcript_path: string;
1052
1051
  cwd: string;
1053
1052
  hook_event_name: string;
1053
+ type: "user_prompt";
1054
1054
  wall_ts: string;
1055
1055
  sequence: number;
1056
1056
  prompt: string;
1057
1057
  permission_mode?: string | undefined;
1058
1058
  agent_tool_use_id?: string | undefined;
1059
1059
  } | {
1060
- type: "tool_attempt";
1061
1060
  session_id: string;
1062
1061
  transcript_path: string;
1063
1062
  cwd: string;
1064
1063
  hook_event_name: string;
1064
+ type: "tool_attempt";
1065
1065
  wall_ts: string;
1066
1066
  sequence: number;
1067
1067
  tool_name: string;
@@ -1070,11 +1070,11 @@ declare const IngestionRequest: z.ZodObject<{
1070
1070
  agent_tool_use_id?: string | undefined;
1071
1071
  tool_input?: unknown;
1072
1072
  } | {
1073
- type: "tool_call";
1074
1073
  session_id: string;
1075
1074
  transcript_path: string;
1076
1075
  cwd: string;
1077
1076
  hook_event_name: string;
1077
+ type: "tool_call";
1078
1078
  wall_ts: string;
1079
1079
  sequence: number;
1080
1080
  tool_name: string;
@@ -1087,11 +1087,11 @@ declare const IngestionRequest: z.ZodObject<{
1087
1087
  is_error?: boolean | undefined;
1088
1088
  error_message?: string | undefined;
1089
1089
  } | {
1090
- type: "assistant_turn";
1091
1090
  session_id: string;
1092
1091
  transcript_path: string;
1093
1092
  cwd: string;
1094
1093
  hook_event_name: string;
1094
+ type: "assistant_turn";
1095
1095
  wall_ts: string;
1096
1096
  sequence: number;
1097
1097
  message_uuid: string;
@@ -1104,11 +1104,11 @@ declare const IngestionRequest: z.ZodObject<{
1104
1104
  agent_tool_use_id?: string | undefined;
1105
1105
  text?: string | undefined;
1106
1106
  } | {
1107
- type: "subagent_end";
1108
1107
  session_id: string;
1109
1108
  transcript_path: string;
1110
1109
  cwd: string;
1111
1110
  hook_event_name: string;
1111
+ type: "subagent_end";
1112
1112
  wall_ts: string;
1113
1113
  sequence: number;
1114
1114
  agent_id: string;
@@ -1119,11 +1119,11 @@ declare const IngestionRequest: z.ZodObject<{
1119
1119
  agent_tool_use_id?: string | undefined;
1120
1120
  stop_hook_active?: boolean | undefined;
1121
1121
  } | {
1122
- type: "session_end";
1123
1122
  session_id: string;
1124
1123
  transcript_path: string;
1125
1124
  cwd: string;
1126
1125
  hook_event_name: string;
1126
+ type: "session_end";
1127
1127
  wall_ts: string;
1128
1128
  sequence: number;
1129
1129
  permission_mode?: string | undefined;
@@ -1131,11 +1131,11 @@ declare const IngestionRequest: z.ZodObject<{
1131
1131
  last_assistant_message?: string | undefined;
1132
1132
  stop_hook_active?: boolean | undefined;
1133
1133
  } | {
1134
- type: "session_close";
1135
1134
  session_id: string;
1136
1135
  transcript_path: string;
1137
1136
  cwd: string;
1138
1137
  hook_event_name: string;
1138
+ type: "session_close";
1139
1139
  wall_ts: string;
1140
1140
  sequence: number;
1141
1141
  permission_mode?: string | undefined;
@@ -1144,11 +1144,11 @@ declare const IngestionRequest: z.ZodObject<{
1144
1144
  })[];
1145
1145
  }, {
1146
1146
  events: ({
1147
- type: "session_start";
1148
1147
  session_id: string;
1149
1148
  transcript_path: string;
1150
1149
  cwd: string;
1151
1150
  hook_event_name: string;
1151
+ type: "session_start";
1152
1152
  wall_ts: string;
1153
1153
  sequence: number;
1154
1154
  source: string;
@@ -1156,22 +1156,22 @@ declare const IngestionRequest: z.ZodObject<{
1156
1156
  agent_tool_use_id?: string | undefined;
1157
1157
  project_name?: string | undefined;
1158
1158
  } | {
1159
- type: "user_prompt";
1160
1159
  session_id: string;
1161
1160
  transcript_path: string;
1162
1161
  cwd: string;
1163
1162
  hook_event_name: string;
1163
+ type: "user_prompt";
1164
1164
  wall_ts: string;
1165
1165
  sequence: number;
1166
1166
  prompt: string;
1167
1167
  permission_mode?: string | undefined;
1168
1168
  agent_tool_use_id?: string | undefined;
1169
1169
  } | {
1170
- type: "tool_attempt";
1171
1170
  session_id: string;
1172
1171
  transcript_path: string;
1173
1172
  cwd: string;
1174
1173
  hook_event_name: string;
1174
+ type: "tool_attempt";
1175
1175
  wall_ts: string;
1176
1176
  sequence: number;
1177
1177
  tool_name: string;
@@ -1180,11 +1180,11 @@ declare const IngestionRequest: z.ZodObject<{
1180
1180
  agent_tool_use_id?: string | undefined;
1181
1181
  tool_input?: unknown;
1182
1182
  } | {
1183
- type: "tool_call";
1184
1183
  session_id: string;
1185
1184
  transcript_path: string;
1186
1185
  cwd: string;
1187
1186
  hook_event_name: string;
1187
+ type: "tool_call";
1188
1188
  wall_ts: string;
1189
1189
  sequence: number;
1190
1190
  tool_name: string;
@@ -1197,11 +1197,11 @@ declare const IngestionRequest: z.ZodObject<{
1197
1197
  is_error?: boolean | undefined;
1198
1198
  error_message?: string | undefined;
1199
1199
  } | {
1200
- type: "assistant_turn";
1201
1200
  session_id: string;
1202
1201
  transcript_path: string;
1203
1202
  cwd: string;
1204
1203
  hook_event_name: string;
1204
+ type: "assistant_turn";
1205
1205
  wall_ts: string;
1206
1206
  sequence: number;
1207
1207
  message_uuid: string;
@@ -1214,11 +1214,11 @@ declare const IngestionRequest: z.ZodObject<{
1214
1214
  cache_creation_tokens?: number | undefined;
1215
1215
  text?: string | undefined;
1216
1216
  } | {
1217
- type: "subagent_end";
1218
1217
  session_id: string;
1219
1218
  transcript_path: string;
1220
1219
  cwd: string;
1221
1220
  hook_event_name: string;
1221
+ type: "subagent_end";
1222
1222
  wall_ts: string;
1223
1223
  sequence: number;
1224
1224
  agent_id: string;
@@ -1229,11 +1229,11 @@ declare const IngestionRequest: z.ZodObject<{
1229
1229
  agent_tool_use_id?: string | undefined;
1230
1230
  stop_hook_active?: boolean | undefined;
1231
1231
  } | {
1232
- type: "session_end";
1233
1232
  session_id: string;
1234
1233
  transcript_path: string;
1235
1234
  cwd: string;
1236
1235
  hook_event_name: string;
1236
+ type: "session_end";
1237
1237
  wall_ts: string;
1238
1238
  sequence: number;
1239
1239
  permission_mode?: string | undefined;
@@ -1241,11 +1241,11 @@ declare const IngestionRequest: z.ZodObject<{
1241
1241
  last_assistant_message?: string | undefined;
1242
1242
  stop_hook_active?: boolean | undefined;
1243
1243
  } | {
1244
- type: "session_close";
1245
1244
  session_id: string;
1246
1245
  transcript_path: string;
1247
1246
  cwd: string;
1248
1247
  hook_event_name: string;
1248
+ type: "session_close";
1249
1249
  wall_ts: string;
1250
1250
  sequence: number;
1251
1251
  permission_mode?: string | undefined;