runtape 0.7.1 → 0.8.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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +64 -64
- package/package.json +1 -1
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";
|
|
18
19
|
session_id: string;
|
|
19
20
|
transcript_path: string;
|
|
20
21
|
cwd: string;
|
|
21
22
|
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";
|
|
30
31
|
session_id: string;
|
|
31
32
|
transcript_path: string;
|
|
32
33
|
cwd: string;
|
|
33
34
|
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";
|
|
56
57
|
session_id: string;
|
|
57
58
|
transcript_path: string;
|
|
58
59
|
cwd: string;
|
|
59
60
|
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";
|
|
67
68
|
session_id: string;
|
|
68
69
|
transcript_path: string;
|
|
69
70
|
cwd: string;
|
|
70
71
|
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";
|
|
94
95
|
session_id: string;
|
|
95
96
|
transcript_path: string;
|
|
96
97
|
cwd: string;
|
|
97
98
|
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";
|
|
107
108
|
session_id: string;
|
|
108
109
|
transcript_path: string;
|
|
109
110
|
cwd: string;
|
|
110
111
|
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";
|
|
140
141
|
session_id: string;
|
|
141
142
|
transcript_path: string;
|
|
142
143
|
cwd: string;
|
|
143
144
|
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";
|
|
157
158
|
session_id: string;
|
|
158
159
|
transcript_path: string;
|
|
159
160
|
cwd: string;
|
|
160
161
|
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";
|
|
194
195
|
session_id: string;
|
|
195
196
|
transcript_path: string;
|
|
196
197
|
cwd: string;
|
|
197
198
|
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";
|
|
211
212
|
session_id: string;
|
|
212
213
|
transcript_path: string;
|
|
213
214
|
cwd: string;
|
|
214
215
|
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";
|
|
246
247
|
session_id: string;
|
|
247
248
|
transcript_path: string;
|
|
248
249
|
cwd: string;
|
|
249
250
|
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";
|
|
261
262
|
session_id: string;
|
|
262
263
|
transcript_path: string;
|
|
263
264
|
cwd: string;
|
|
264
265
|
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";
|
|
291
292
|
session_id: string;
|
|
292
293
|
transcript_path: string;
|
|
293
294
|
cwd: string;
|
|
294
295
|
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";
|
|
303
304
|
session_id: string;
|
|
304
305
|
transcript_path: string;
|
|
305
306
|
cwd: string;
|
|
306
307
|
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";
|
|
329
330
|
session_id: string;
|
|
330
331
|
transcript_path: string;
|
|
331
332
|
cwd: string;
|
|
332
333
|
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";
|
|
340
341
|
session_id: string;
|
|
341
342
|
transcript_path: string;
|
|
342
343
|
cwd: string;
|
|
343
344
|
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";
|
|
366
367
|
session_id: string;
|
|
367
368
|
transcript_path: string;
|
|
368
369
|
cwd: string;
|
|
369
370
|
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";
|
|
378
379
|
session_id: string;
|
|
379
380
|
transcript_path: string;
|
|
380
381
|
cwd: string;
|
|
381
382
|
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";
|
|
403
404
|
session_id: string;
|
|
404
405
|
transcript_path: string;
|
|
405
406
|
cwd: string;
|
|
406
407
|
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";
|
|
414
415
|
session_id: string;
|
|
415
416
|
transcript_path: string;
|
|
416
417
|
cwd: string;
|
|
417
418
|
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";
|
|
440
441
|
session_id: string;
|
|
441
442
|
transcript_path: string;
|
|
442
443
|
cwd: string;
|
|
443
444
|
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";
|
|
453
454
|
session_id: string;
|
|
454
455
|
transcript_path: string;
|
|
455
456
|
cwd: string;
|
|
456
457
|
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";
|
|
485
486
|
session_id: string;
|
|
486
487
|
transcript_path: string;
|
|
487
488
|
cwd: string;
|
|
488
489
|
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";
|
|
502
503
|
session_id: string;
|
|
503
504
|
transcript_path: string;
|
|
504
505
|
cwd: string;
|
|
505
506
|
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";
|
|
538
539
|
session_id: string;
|
|
539
540
|
transcript_path: string;
|
|
540
541
|
cwd: string;
|
|
541
542
|
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";
|
|
555
556
|
session_id: string;
|
|
556
557
|
transcript_path: string;
|
|
557
558
|
cwd: string;
|
|
558
559
|
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";
|
|
589
590
|
session_id: string;
|
|
590
591
|
transcript_path: string;
|
|
591
592
|
cwd: string;
|
|
592
593
|
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";
|
|
604
605
|
session_id: string;
|
|
605
606
|
transcript_path: string;
|
|
606
607
|
cwd: string;
|
|
607
608
|
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";
|
|
633
634
|
session_id: string;
|
|
634
635
|
transcript_path: string;
|
|
635
636
|
cwd: string;
|
|
636
637
|
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";
|
|
645
646
|
session_id: string;
|
|
646
647
|
transcript_path: string;
|
|
647
648
|
cwd: string;
|
|
648
649
|
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";
|
|
670
671
|
session_id: string;
|
|
671
672
|
transcript_path: string;
|
|
672
673
|
cwd: string;
|
|
673
674
|
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";
|
|
681
682
|
session_id: string;
|
|
682
683
|
transcript_path: string;
|
|
683
684
|
cwd: string;
|
|
684
685
|
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";
|
|
709
710
|
session_id: string;
|
|
710
711
|
transcript_path: string;
|
|
711
712
|
cwd: string;
|
|
712
713
|
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";
|
|
721
722
|
session_id: string;
|
|
722
723
|
transcript_path: string;
|
|
723
724
|
cwd: string;
|
|
724
725
|
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";
|
|
746
747
|
session_id: string;
|
|
747
748
|
transcript_path: string;
|
|
748
749
|
cwd: string;
|
|
749
750
|
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";
|
|
757
758
|
session_id: string;
|
|
758
759
|
transcript_path: string;
|
|
759
760
|
cwd: string;
|
|
760
761
|
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";
|
|
783
784
|
session_id: string;
|
|
784
785
|
transcript_path: string;
|
|
785
786
|
cwd: string;
|
|
786
787
|
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";
|
|
796
797
|
session_id: string;
|
|
797
798
|
transcript_path: string;
|
|
798
799
|
cwd: string;
|
|
799
800
|
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";
|
|
828
829
|
session_id: string;
|
|
829
830
|
transcript_path: string;
|
|
830
831
|
cwd: string;
|
|
831
832
|
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";
|
|
845
846
|
session_id: string;
|
|
846
847
|
transcript_path: string;
|
|
847
848
|
cwd: string;
|
|
848
849
|
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";
|
|
881
882
|
session_id: string;
|
|
882
883
|
transcript_path: string;
|
|
883
884
|
cwd: string;
|
|
884
885
|
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";
|
|
898
899
|
session_id: string;
|
|
899
900
|
transcript_path: string;
|
|
900
901
|
cwd: string;
|
|
901
902
|
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";
|
|
932
933
|
session_id: string;
|
|
933
934
|
transcript_path: string;
|
|
934
935
|
cwd: string;
|
|
935
936
|
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";
|
|
947
948
|
session_id: string;
|
|
948
949
|
transcript_path: string;
|
|
949
950
|
cwd: string;
|
|
950
951
|
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";
|
|
976
977
|
session_id: string;
|
|
977
978
|
transcript_path: string;
|
|
978
979
|
cwd: string;
|
|
979
980
|
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";
|
|
988
989
|
session_id: string;
|
|
989
990
|
transcript_path: string;
|
|
990
991
|
cwd: string;
|
|
991
992
|
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";
|
|
1013
1014
|
session_id: string;
|
|
1014
1015
|
transcript_path: string;
|
|
1015
1016
|
cwd: string;
|
|
1016
1017
|
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";
|
|
1024
1025
|
session_id: string;
|
|
1025
1026
|
transcript_path: string;
|
|
1026
1027
|
cwd: string;
|
|
1027
1028
|
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";
|
|
1037
1038
|
session_id: string;
|
|
1038
1039
|
transcript_path: string;
|
|
1039
1040
|
cwd: string;
|
|
1040
1041
|
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";
|
|
1049
1050
|
session_id: string;
|
|
1050
1051
|
transcript_path: string;
|
|
1051
1052
|
cwd: string;
|
|
1052
1053
|
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";
|
|
1060
1061
|
session_id: string;
|
|
1061
1062
|
transcript_path: string;
|
|
1062
1063
|
cwd: string;
|
|
1063
1064
|
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";
|
|
1073
1074
|
session_id: string;
|
|
1074
1075
|
transcript_path: string;
|
|
1075
1076
|
cwd: string;
|
|
1076
1077
|
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";
|
|
1090
1091
|
session_id: string;
|
|
1091
1092
|
transcript_path: string;
|
|
1092
1093
|
cwd: string;
|
|
1093
1094
|
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";
|
|
1107
1108
|
session_id: string;
|
|
1108
1109
|
transcript_path: string;
|
|
1109
1110
|
cwd: string;
|
|
1110
1111
|
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";
|
|
1122
1123
|
session_id: string;
|
|
1123
1124
|
transcript_path: string;
|
|
1124
1125
|
cwd: string;
|
|
1125
1126
|
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";
|
|
1134
1135
|
session_id: string;
|
|
1135
1136
|
transcript_path: string;
|
|
1136
1137
|
cwd: string;
|
|
1137
1138
|
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";
|
|
1147
1148
|
session_id: string;
|
|
1148
1149
|
transcript_path: string;
|
|
1149
1150
|
cwd: string;
|
|
1150
1151
|
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";
|
|
1159
1160
|
session_id: string;
|
|
1160
1161
|
transcript_path: string;
|
|
1161
1162
|
cwd: string;
|
|
1162
1163
|
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";
|
|
1170
1171
|
session_id: string;
|
|
1171
1172
|
transcript_path: string;
|
|
1172
1173
|
cwd: string;
|
|
1173
1174
|
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";
|
|
1183
1184
|
session_id: string;
|
|
1184
1185
|
transcript_path: string;
|
|
1185
1186
|
cwd: string;
|
|
1186
1187
|
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";
|
|
1200
1201
|
session_id: string;
|
|
1201
1202
|
transcript_path: string;
|
|
1202
1203
|
cwd: string;
|
|
1203
1204
|
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";
|
|
1217
1218
|
session_id: string;
|
|
1218
1219
|
transcript_path: string;
|
|
1219
1220
|
cwd: string;
|
|
1220
1221
|
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";
|
|
1232
1233
|
session_id: string;
|
|
1233
1234
|
transcript_path: string;
|
|
1234
1235
|
cwd: string;
|
|
1235
1236
|
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";
|
|
1244
1245
|
session_id: string;
|
|
1245
1246
|
transcript_path: string;
|
|
1246
1247
|
cwd: string;
|
|
1247
1248
|
hook_event_name: string;
|
|
1248
|
-
type: "session_close";
|
|
1249
1249
|
wall_ts: string;
|
|
1250
1250
|
sequence: number;
|
|
1251
1251
|
permission_mode?: string | undefined;
|