runtape 0.8.0 → 0.9.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/{chunk-54VJGDD2.js → chunk-4AEXXI4C.js} +18 -2
- package/dist/chunk-4AEXXI4C.js.map +1 -0
- package/dist/index.js +85 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +237 -65
- package/dist/types.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-54VJGDD2.js.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const GitContext: z.ZodObject<{
|
|
4
|
+
repo: z.ZodString;
|
|
5
|
+
remote_url: z.ZodOptional<z.ZodString>;
|
|
6
|
+
remote_host: z.ZodOptional<z.ZodString>;
|
|
7
|
+
remote_slug: z.ZodOptional<z.ZodString>;
|
|
8
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
9
|
+
commit_sha: z.ZodOptional<z.ZodString>;
|
|
10
|
+
is_dirty: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
repo: string;
|
|
13
|
+
remote_url?: string | undefined;
|
|
14
|
+
remote_host?: string | undefined;
|
|
15
|
+
remote_slug?: string | undefined;
|
|
16
|
+
branch?: string | undefined;
|
|
17
|
+
commit_sha?: string | undefined;
|
|
18
|
+
is_dirty?: boolean | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
repo: string;
|
|
21
|
+
remote_url?: string | undefined;
|
|
22
|
+
remote_host?: string | undefined;
|
|
23
|
+
remote_slug?: string | undefined;
|
|
24
|
+
branch?: string | undefined;
|
|
25
|
+
commit_sha?: string | undefined;
|
|
26
|
+
is_dirty?: boolean | undefined;
|
|
27
|
+
}>;
|
|
3
28
|
declare const SessionStartEvent: z.ZodObject<{
|
|
4
29
|
session_id: z.ZodString;
|
|
5
30
|
transcript_path: z.ZodString;
|
|
@@ -14,30 +39,73 @@ declare const SessionStartEvent: z.ZodObject<{
|
|
|
14
39
|
type: z.ZodLiteral<"session_start">;
|
|
15
40
|
source: z.ZodString;
|
|
16
41
|
project_name: z.ZodOptional<z.ZodString>;
|
|
42
|
+
git_context: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
repo: z.ZodString;
|
|
44
|
+
remote_url: z.ZodOptional<z.ZodString>;
|
|
45
|
+
remote_host: z.ZodOptional<z.ZodString>;
|
|
46
|
+
remote_slug: z.ZodOptional<z.ZodString>;
|
|
47
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
48
|
+
commit_sha: z.ZodOptional<z.ZodString>;
|
|
49
|
+
is_dirty: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
repo: string;
|
|
52
|
+
remote_url?: string | undefined;
|
|
53
|
+
remote_host?: string | undefined;
|
|
54
|
+
remote_slug?: string | undefined;
|
|
55
|
+
branch?: string | undefined;
|
|
56
|
+
commit_sha?: string | undefined;
|
|
57
|
+
is_dirty?: boolean | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
repo: string;
|
|
60
|
+
remote_url?: string | undefined;
|
|
61
|
+
remote_host?: string | undefined;
|
|
62
|
+
remote_slug?: string | undefined;
|
|
63
|
+
branch?: string | undefined;
|
|
64
|
+
commit_sha?: string | undefined;
|
|
65
|
+
is_dirty?: boolean | undefined;
|
|
66
|
+
}>>;
|
|
17
67
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
type: "session_start";
|
|
19
68
|
session_id: string;
|
|
20
69
|
transcript_path: string;
|
|
21
70
|
cwd: string;
|
|
22
71
|
hook_event_name: string;
|
|
72
|
+
type: "session_start";
|
|
23
73
|
wall_ts: string;
|
|
24
74
|
sequence: number;
|
|
25
75
|
source: string;
|
|
26
76
|
permission_mode?: string | undefined;
|
|
27
77
|
agent_tool_use_id?: string | undefined;
|
|
28
78
|
project_name?: string | undefined;
|
|
79
|
+
git_context?: {
|
|
80
|
+
repo: string;
|
|
81
|
+
remote_url?: string | undefined;
|
|
82
|
+
remote_host?: string | undefined;
|
|
83
|
+
remote_slug?: string | undefined;
|
|
84
|
+
branch?: string | undefined;
|
|
85
|
+
commit_sha?: string | undefined;
|
|
86
|
+
is_dirty?: boolean | undefined;
|
|
87
|
+
} | undefined;
|
|
29
88
|
}, {
|
|
30
|
-
type: "session_start";
|
|
31
89
|
session_id: string;
|
|
32
90
|
transcript_path: string;
|
|
33
91
|
cwd: string;
|
|
34
92
|
hook_event_name: string;
|
|
93
|
+
type: "session_start";
|
|
35
94
|
wall_ts: string;
|
|
36
95
|
sequence: number;
|
|
37
96
|
source: string;
|
|
38
97
|
permission_mode?: string | undefined;
|
|
39
98
|
agent_tool_use_id?: string | undefined;
|
|
40
99
|
project_name?: string | undefined;
|
|
100
|
+
git_context?: {
|
|
101
|
+
repo: string;
|
|
102
|
+
remote_url?: string | undefined;
|
|
103
|
+
remote_host?: string | undefined;
|
|
104
|
+
remote_slug?: string | undefined;
|
|
105
|
+
branch?: string | undefined;
|
|
106
|
+
commit_sha?: string | undefined;
|
|
107
|
+
is_dirty?: boolean | undefined;
|
|
108
|
+
} | undefined;
|
|
41
109
|
}>;
|
|
42
110
|
declare const UserPromptEvent: z.ZodObject<{
|
|
43
111
|
session_id: z.ZodString;
|
|
@@ -53,22 +121,22 @@ declare const UserPromptEvent: z.ZodObject<{
|
|
|
53
121
|
type: z.ZodLiteral<"user_prompt">;
|
|
54
122
|
prompt: z.ZodString;
|
|
55
123
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
type: "user_prompt";
|
|
57
124
|
session_id: string;
|
|
58
125
|
transcript_path: string;
|
|
59
126
|
cwd: string;
|
|
60
127
|
hook_event_name: string;
|
|
128
|
+
type: "user_prompt";
|
|
61
129
|
wall_ts: string;
|
|
62
130
|
sequence: number;
|
|
63
131
|
prompt: string;
|
|
64
132
|
permission_mode?: string | undefined;
|
|
65
133
|
agent_tool_use_id?: string | undefined;
|
|
66
134
|
}, {
|
|
67
|
-
type: "user_prompt";
|
|
68
135
|
session_id: string;
|
|
69
136
|
transcript_path: string;
|
|
70
137
|
cwd: string;
|
|
71
138
|
hook_event_name: string;
|
|
139
|
+
type: "user_prompt";
|
|
72
140
|
wall_ts: string;
|
|
73
141
|
sequence: number;
|
|
74
142
|
prompt: string;
|
|
@@ -91,11 +159,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
|
|
|
91
159
|
tool_input: z.ZodUnknown;
|
|
92
160
|
tool_use_id: z.ZodString;
|
|
93
161
|
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
type: "tool_attempt";
|
|
95
162
|
session_id: string;
|
|
96
163
|
transcript_path: string;
|
|
97
164
|
cwd: string;
|
|
98
165
|
hook_event_name: string;
|
|
166
|
+
type: "tool_attempt";
|
|
99
167
|
wall_ts: string;
|
|
100
168
|
sequence: number;
|
|
101
169
|
tool_name: string;
|
|
@@ -104,11 +172,11 @@ declare const ToolAttemptEvent: z.ZodObject<{
|
|
|
104
172
|
agent_tool_use_id?: string | undefined;
|
|
105
173
|
tool_input?: unknown;
|
|
106
174
|
}, {
|
|
107
|
-
type: "tool_attempt";
|
|
108
175
|
session_id: string;
|
|
109
176
|
transcript_path: string;
|
|
110
177
|
cwd: string;
|
|
111
178
|
hook_event_name: string;
|
|
179
|
+
type: "tool_attempt";
|
|
112
180
|
wall_ts: string;
|
|
113
181
|
sequence: number;
|
|
114
182
|
tool_name: string;
|
|
@@ -137,11 +205,11 @@ declare const ToolCallEvent: z.ZodObject<{
|
|
|
137
205
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
138
206
|
error_message: z.ZodOptional<z.ZodString>;
|
|
139
207
|
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
type: "tool_call";
|
|
141
208
|
session_id: string;
|
|
142
209
|
transcript_path: string;
|
|
143
210
|
cwd: string;
|
|
144
211
|
hook_event_name: string;
|
|
212
|
+
type: "tool_call";
|
|
145
213
|
wall_ts: string;
|
|
146
214
|
sequence: number;
|
|
147
215
|
tool_name: string;
|
|
@@ -154,11 +222,11 @@ declare const ToolCallEvent: z.ZodObject<{
|
|
|
154
222
|
is_error?: boolean | undefined;
|
|
155
223
|
error_message?: string | undefined;
|
|
156
224
|
}, {
|
|
157
|
-
type: "tool_call";
|
|
158
225
|
session_id: string;
|
|
159
226
|
transcript_path: string;
|
|
160
227
|
cwd: string;
|
|
161
228
|
hook_event_name: string;
|
|
229
|
+
type: "tool_call";
|
|
162
230
|
wall_ts: string;
|
|
163
231
|
sequence: number;
|
|
164
232
|
tool_name: string;
|
|
@@ -191,11 +259,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
|
|
|
191
259
|
cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
|
|
192
260
|
text: z.ZodOptional<z.ZodString>;
|
|
193
261
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
type: "assistant_turn";
|
|
195
262
|
session_id: string;
|
|
196
263
|
transcript_path: string;
|
|
197
264
|
cwd: string;
|
|
198
265
|
hook_event_name: string;
|
|
266
|
+
type: "assistant_turn";
|
|
199
267
|
wall_ts: string;
|
|
200
268
|
sequence: number;
|
|
201
269
|
message_uuid: string;
|
|
@@ -208,11 +276,11 @@ declare const AssistantTurnEvent: z.ZodObject<{
|
|
|
208
276
|
agent_tool_use_id?: string | undefined;
|
|
209
277
|
text?: string | undefined;
|
|
210
278
|
}, {
|
|
211
|
-
type: "assistant_turn";
|
|
212
279
|
session_id: string;
|
|
213
280
|
transcript_path: string;
|
|
214
281
|
cwd: string;
|
|
215
282
|
hook_event_name: string;
|
|
283
|
+
type: "assistant_turn";
|
|
216
284
|
wall_ts: string;
|
|
217
285
|
sequence: number;
|
|
218
286
|
message_uuid: string;
|
|
@@ -243,11 +311,11 @@ declare const SubagentEndEvent: z.ZodObject<{
|
|
|
243
311
|
last_assistant_message: z.ZodString;
|
|
244
312
|
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
245
313
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
type: "subagent_end";
|
|
247
314
|
session_id: string;
|
|
248
315
|
transcript_path: string;
|
|
249
316
|
cwd: string;
|
|
250
317
|
hook_event_name: string;
|
|
318
|
+
type: "subagent_end";
|
|
251
319
|
wall_ts: string;
|
|
252
320
|
sequence: number;
|
|
253
321
|
agent_id: string;
|
|
@@ -258,11 +326,11 @@ declare const SubagentEndEvent: z.ZodObject<{
|
|
|
258
326
|
agent_tool_use_id?: string | undefined;
|
|
259
327
|
stop_hook_active?: boolean | undefined;
|
|
260
328
|
}, {
|
|
261
|
-
type: "subagent_end";
|
|
262
329
|
session_id: string;
|
|
263
330
|
transcript_path: string;
|
|
264
331
|
cwd: string;
|
|
265
332
|
hook_event_name: string;
|
|
333
|
+
type: "subagent_end";
|
|
266
334
|
wall_ts: string;
|
|
267
335
|
sequence: number;
|
|
268
336
|
agent_id: string;
|
|
@@ -288,11 +356,11 @@ declare const SessionEndEvent: z.ZodObject<{
|
|
|
288
356
|
last_assistant_message: z.ZodOptional<z.ZodString>;
|
|
289
357
|
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
290
358
|
}, "strip", z.ZodTypeAny, {
|
|
291
|
-
type: "session_end";
|
|
292
359
|
session_id: string;
|
|
293
360
|
transcript_path: string;
|
|
294
361
|
cwd: string;
|
|
295
362
|
hook_event_name: string;
|
|
363
|
+
type: "session_end";
|
|
296
364
|
wall_ts: string;
|
|
297
365
|
sequence: number;
|
|
298
366
|
permission_mode?: string | undefined;
|
|
@@ -300,11 +368,11 @@ declare const SessionEndEvent: z.ZodObject<{
|
|
|
300
368
|
last_assistant_message?: string | undefined;
|
|
301
369
|
stop_hook_active?: boolean | undefined;
|
|
302
370
|
}, {
|
|
303
|
-
type: "session_end";
|
|
304
371
|
session_id: string;
|
|
305
372
|
transcript_path: string;
|
|
306
373
|
cwd: string;
|
|
307
374
|
hook_event_name: string;
|
|
375
|
+
type: "session_end";
|
|
308
376
|
wall_ts: string;
|
|
309
377
|
sequence: number;
|
|
310
378
|
permission_mode?: string | undefined;
|
|
@@ -326,22 +394,22 @@ declare const SessionCloseEvent: z.ZodObject<{
|
|
|
326
394
|
type: z.ZodLiteral<"session_close">;
|
|
327
395
|
reason: z.ZodOptional<z.ZodString>;
|
|
328
396
|
}, "strip", z.ZodTypeAny, {
|
|
329
|
-
type: "session_close";
|
|
330
397
|
session_id: string;
|
|
331
398
|
transcript_path: string;
|
|
332
399
|
cwd: string;
|
|
333
400
|
hook_event_name: string;
|
|
401
|
+
type: "session_close";
|
|
334
402
|
wall_ts: string;
|
|
335
403
|
sequence: number;
|
|
336
404
|
permission_mode?: string | undefined;
|
|
337
405
|
agent_tool_use_id?: string | undefined;
|
|
338
406
|
reason?: string | undefined;
|
|
339
407
|
}, {
|
|
340
|
-
type: "session_close";
|
|
341
408
|
session_id: string;
|
|
342
409
|
transcript_path: string;
|
|
343
410
|
cwd: string;
|
|
344
411
|
hook_event_name: string;
|
|
412
|
+
type: "session_close";
|
|
345
413
|
wall_ts: string;
|
|
346
414
|
sequence: number;
|
|
347
415
|
permission_mode?: string | undefined;
|
|
@@ -362,30 +430,73 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
362
430
|
type: z.ZodLiteral<"session_start">;
|
|
363
431
|
source: z.ZodString;
|
|
364
432
|
project_name: z.ZodOptional<z.ZodString>;
|
|
433
|
+
git_context: z.ZodOptional<z.ZodObject<{
|
|
434
|
+
repo: z.ZodString;
|
|
435
|
+
remote_url: z.ZodOptional<z.ZodString>;
|
|
436
|
+
remote_host: z.ZodOptional<z.ZodString>;
|
|
437
|
+
remote_slug: z.ZodOptional<z.ZodString>;
|
|
438
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
439
|
+
commit_sha: z.ZodOptional<z.ZodString>;
|
|
440
|
+
is_dirty: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
+
}, "strip", z.ZodTypeAny, {
|
|
442
|
+
repo: string;
|
|
443
|
+
remote_url?: string | undefined;
|
|
444
|
+
remote_host?: string | undefined;
|
|
445
|
+
remote_slug?: string | undefined;
|
|
446
|
+
branch?: string | undefined;
|
|
447
|
+
commit_sha?: string | undefined;
|
|
448
|
+
is_dirty?: boolean | undefined;
|
|
449
|
+
}, {
|
|
450
|
+
repo: string;
|
|
451
|
+
remote_url?: string | undefined;
|
|
452
|
+
remote_host?: string | undefined;
|
|
453
|
+
remote_slug?: string | undefined;
|
|
454
|
+
branch?: string | undefined;
|
|
455
|
+
commit_sha?: string | undefined;
|
|
456
|
+
is_dirty?: boolean | undefined;
|
|
457
|
+
}>>;
|
|
365
458
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
type: "session_start";
|
|
367
459
|
session_id: string;
|
|
368
460
|
transcript_path: string;
|
|
369
461
|
cwd: string;
|
|
370
462
|
hook_event_name: string;
|
|
463
|
+
type: "session_start";
|
|
371
464
|
wall_ts: string;
|
|
372
465
|
sequence: number;
|
|
373
466
|
source: string;
|
|
374
467
|
permission_mode?: string | undefined;
|
|
375
468
|
agent_tool_use_id?: string | undefined;
|
|
376
469
|
project_name?: string | undefined;
|
|
470
|
+
git_context?: {
|
|
471
|
+
repo: string;
|
|
472
|
+
remote_url?: string | undefined;
|
|
473
|
+
remote_host?: string | undefined;
|
|
474
|
+
remote_slug?: string | undefined;
|
|
475
|
+
branch?: string | undefined;
|
|
476
|
+
commit_sha?: string | undefined;
|
|
477
|
+
is_dirty?: boolean | undefined;
|
|
478
|
+
} | undefined;
|
|
377
479
|
}, {
|
|
378
|
-
type: "session_start";
|
|
379
480
|
session_id: string;
|
|
380
481
|
transcript_path: string;
|
|
381
482
|
cwd: string;
|
|
382
483
|
hook_event_name: string;
|
|
484
|
+
type: "session_start";
|
|
383
485
|
wall_ts: string;
|
|
384
486
|
sequence: number;
|
|
385
487
|
source: string;
|
|
386
488
|
permission_mode?: string | undefined;
|
|
387
489
|
agent_tool_use_id?: string | undefined;
|
|
388
490
|
project_name?: string | undefined;
|
|
491
|
+
git_context?: {
|
|
492
|
+
repo: string;
|
|
493
|
+
remote_url?: string | undefined;
|
|
494
|
+
remote_host?: string | undefined;
|
|
495
|
+
remote_slug?: string | undefined;
|
|
496
|
+
branch?: string | undefined;
|
|
497
|
+
commit_sha?: string | undefined;
|
|
498
|
+
is_dirty?: boolean | undefined;
|
|
499
|
+
} | undefined;
|
|
389
500
|
}>, z.ZodObject<{
|
|
390
501
|
session_id: z.ZodString;
|
|
391
502
|
transcript_path: z.ZodString;
|
|
@@ -400,22 +511,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
400
511
|
type: z.ZodLiteral<"user_prompt">;
|
|
401
512
|
prompt: z.ZodString;
|
|
402
513
|
}, "strip", z.ZodTypeAny, {
|
|
403
|
-
type: "user_prompt";
|
|
404
514
|
session_id: string;
|
|
405
515
|
transcript_path: string;
|
|
406
516
|
cwd: string;
|
|
407
517
|
hook_event_name: string;
|
|
518
|
+
type: "user_prompt";
|
|
408
519
|
wall_ts: string;
|
|
409
520
|
sequence: number;
|
|
410
521
|
prompt: string;
|
|
411
522
|
permission_mode?: string | undefined;
|
|
412
523
|
agent_tool_use_id?: string | undefined;
|
|
413
524
|
}, {
|
|
414
|
-
type: "user_prompt";
|
|
415
525
|
session_id: string;
|
|
416
526
|
transcript_path: string;
|
|
417
527
|
cwd: string;
|
|
418
528
|
hook_event_name: string;
|
|
529
|
+
type: "user_prompt";
|
|
419
530
|
wall_ts: string;
|
|
420
531
|
sequence: number;
|
|
421
532
|
prompt: string;
|
|
@@ -437,11 +548,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
437
548
|
tool_input: z.ZodUnknown;
|
|
438
549
|
tool_use_id: z.ZodString;
|
|
439
550
|
}, "strip", z.ZodTypeAny, {
|
|
440
|
-
type: "tool_attempt";
|
|
441
551
|
session_id: string;
|
|
442
552
|
transcript_path: string;
|
|
443
553
|
cwd: string;
|
|
444
554
|
hook_event_name: string;
|
|
555
|
+
type: "tool_attempt";
|
|
445
556
|
wall_ts: string;
|
|
446
557
|
sequence: number;
|
|
447
558
|
tool_name: string;
|
|
@@ -450,11 +561,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
450
561
|
agent_tool_use_id?: string | undefined;
|
|
451
562
|
tool_input?: unknown;
|
|
452
563
|
}, {
|
|
453
|
-
type: "tool_attempt";
|
|
454
564
|
session_id: string;
|
|
455
565
|
transcript_path: string;
|
|
456
566
|
cwd: string;
|
|
457
567
|
hook_event_name: string;
|
|
568
|
+
type: "tool_attempt";
|
|
458
569
|
wall_ts: string;
|
|
459
570
|
sequence: number;
|
|
460
571
|
tool_name: string;
|
|
@@ -482,11 +593,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
482
593
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
483
594
|
error_message: z.ZodOptional<z.ZodString>;
|
|
484
595
|
}, "strip", z.ZodTypeAny, {
|
|
485
|
-
type: "tool_call";
|
|
486
596
|
session_id: string;
|
|
487
597
|
transcript_path: string;
|
|
488
598
|
cwd: string;
|
|
489
599
|
hook_event_name: string;
|
|
600
|
+
type: "tool_call";
|
|
490
601
|
wall_ts: string;
|
|
491
602
|
sequence: number;
|
|
492
603
|
tool_name: string;
|
|
@@ -499,11 +610,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
499
610
|
is_error?: boolean | undefined;
|
|
500
611
|
error_message?: string | undefined;
|
|
501
612
|
}, {
|
|
502
|
-
type: "tool_call";
|
|
503
613
|
session_id: string;
|
|
504
614
|
transcript_path: string;
|
|
505
615
|
cwd: string;
|
|
506
616
|
hook_event_name: string;
|
|
617
|
+
type: "tool_call";
|
|
507
618
|
wall_ts: string;
|
|
508
619
|
sequence: number;
|
|
509
620
|
tool_name: string;
|
|
@@ -535,11 +646,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
535
646
|
cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
|
|
536
647
|
text: z.ZodOptional<z.ZodString>;
|
|
537
648
|
}, "strip", z.ZodTypeAny, {
|
|
538
|
-
type: "assistant_turn";
|
|
539
649
|
session_id: string;
|
|
540
650
|
transcript_path: string;
|
|
541
651
|
cwd: string;
|
|
542
652
|
hook_event_name: string;
|
|
653
|
+
type: "assistant_turn";
|
|
543
654
|
wall_ts: string;
|
|
544
655
|
sequence: number;
|
|
545
656
|
message_uuid: string;
|
|
@@ -552,11 +663,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
552
663
|
agent_tool_use_id?: string | undefined;
|
|
553
664
|
text?: string | undefined;
|
|
554
665
|
}, {
|
|
555
|
-
type: "assistant_turn";
|
|
556
666
|
session_id: string;
|
|
557
667
|
transcript_path: string;
|
|
558
668
|
cwd: string;
|
|
559
669
|
hook_event_name: string;
|
|
670
|
+
type: "assistant_turn";
|
|
560
671
|
wall_ts: string;
|
|
561
672
|
sequence: number;
|
|
562
673
|
message_uuid: string;
|
|
@@ -586,11 +697,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
586
697
|
last_assistant_message: z.ZodString;
|
|
587
698
|
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
588
699
|
}, "strip", z.ZodTypeAny, {
|
|
589
|
-
type: "subagent_end";
|
|
590
700
|
session_id: string;
|
|
591
701
|
transcript_path: string;
|
|
592
702
|
cwd: string;
|
|
593
703
|
hook_event_name: string;
|
|
704
|
+
type: "subagent_end";
|
|
594
705
|
wall_ts: string;
|
|
595
706
|
sequence: number;
|
|
596
707
|
agent_id: string;
|
|
@@ -601,11 +712,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
601
712
|
agent_tool_use_id?: string | undefined;
|
|
602
713
|
stop_hook_active?: boolean | undefined;
|
|
603
714
|
}, {
|
|
604
|
-
type: "subagent_end";
|
|
605
715
|
session_id: string;
|
|
606
716
|
transcript_path: string;
|
|
607
717
|
cwd: string;
|
|
608
718
|
hook_event_name: string;
|
|
719
|
+
type: "subagent_end";
|
|
609
720
|
wall_ts: string;
|
|
610
721
|
sequence: number;
|
|
611
722
|
agent_id: string;
|
|
@@ -630,11 +741,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
630
741
|
last_assistant_message: z.ZodOptional<z.ZodString>;
|
|
631
742
|
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
632
743
|
}, "strip", z.ZodTypeAny, {
|
|
633
|
-
type: "session_end";
|
|
634
744
|
session_id: string;
|
|
635
745
|
transcript_path: string;
|
|
636
746
|
cwd: string;
|
|
637
747
|
hook_event_name: string;
|
|
748
|
+
type: "session_end";
|
|
638
749
|
wall_ts: string;
|
|
639
750
|
sequence: number;
|
|
640
751
|
permission_mode?: string | undefined;
|
|
@@ -642,11 +753,11 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
642
753
|
last_assistant_message?: string | undefined;
|
|
643
754
|
stop_hook_active?: boolean | undefined;
|
|
644
755
|
}, {
|
|
645
|
-
type: "session_end";
|
|
646
756
|
session_id: string;
|
|
647
757
|
transcript_path: string;
|
|
648
758
|
cwd: string;
|
|
649
759
|
hook_event_name: string;
|
|
760
|
+
type: "session_end";
|
|
650
761
|
wall_ts: string;
|
|
651
762
|
sequence: number;
|
|
652
763
|
permission_mode?: string | undefined;
|
|
@@ -667,22 +778,22 @@ declare const RuntapeEvent: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
667
778
|
type: z.ZodLiteral<"session_close">;
|
|
668
779
|
reason: z.ZodOptional<z.ZodString>;
|
|
669
780
|
}, "strip", z.ZodTypeAny, {
|
|
670
|
-
type: "session_close";
|
|
671
781
|
session_id: string;
|
|
672
782
|
transcript_path: string;
|
|
673
783
|
cwd: string;
|
|
674
784
|
hook_event_name: string;
|
|
785
|
+
type: "session_close";
|
|
675
786
|
wall_ts: string;
|
|
676
787
|
sequence: number;
|
|
677
788
|
permission_mode?: string | undefined;
|
|
678
789
|
agent_tool_use_id?: string | undefined;
|
|
679
790
|
reason?: string | undefined;
|
|
680
791
|
}, {
|
|
681
|
-
type: "session_close";
|
|
682
792
|
session_id: string;
|
|
683
793
|
transcript_path: string;
|
|
684
794
|
cwd: string;
|
|
685
795
|
hook_event_name: string;
|
|
796
|
+
type: "session_close";
|
|
686
797
|
wall_ts: string;
|
|
687
798
|
sequence: number;
|
|
688
799
|
permission_mode?: string | undefined;
|
|
@@ -705,30 +816,73 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
705
816
|
type: z.ZodLiteral<"session_start">;
|
|
706
817
|
source: z.ZodString;
|
|
707
818
|
project_name: z.ZodOptional<z.ZodString>;
|
|
819
|
+
git_context: z.ZodOptional<z.ZodObject<{
|
|
820
|
+
repo: z.ZodString;
|
|
821
|
+
remote_url: z.ZodOptional<z.ZodString>;
|
|
822
|
+
remote_host: z.ZodOptional<z.ZodString>;
|
|
823
|
+
remote_slug: z.ZodOptional<z.ZodString>;
|
|
824
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
825
|
+
commit_sha: z.ZodOptional<z.ZodString>;
|
|
826
|
+
is_dirty: z.ZodOptional<z.ZodBoolean>;
|
|
827
|
+
}, "strip", z.ZodTypeAny, {
|
|
828
|
+
repo: string;
|
|
829
|
+
remote_url?: string | undefined;
|
|
830
|
+
remote_host?: string | undefined;
|
|
831
|
+
remote_slug?: string | undefined;
|
|
832
|
+
branch?: string | undefined;
|
|
833
|
+
commit_sha?: string | undefined;
|
|
834
|
+
is_dirty?: boolean | undefined;
|
|
835
|
+
}, {
|
|
836
|
+
repo: string;
|
|
837
|
+
remote_url?: string | undefined;
|
|
838
|
+
remote_host?: string | undefined;
|
|
839
|
+
remote_slug?: string | undefined;
|
|
840
|
+
branch?: string | undefined;
|
|
841
|
+
commit_sha?: string | undefined;
|
|
842
|
+
is_dirty?: boolean | undefined;
|
|
843
|
+
}>>;
|
|
708
844
|
}, "strip", z.ZodTypeAny, {
|
|
709
|
-
type: "session_start";
|
|
710
845
|
session_id: string;
|
|
711
846
|
transcript_path: string;
|
|
712
847
|
cwd: string;
|
|
713
848
|
hook_event_name: string;
|
|
849
|
+
type: "session_start";
|
|
714
850
|
wall_ts: string;
|
|
715
851
|
sequence: number;
|
|
716
852
|
source: string;
|
|
717
853
|
permission_mode?: string | undefined;
|
|
718
854
|
agent_tool_use_id?: string | undefined;
|
|
719
855
|
project_name?: string | undefined;
|
|
856
|
+
git_context?: {
|
|
857
|
+
repo: string;
|
|
858
|
+
remote_url?: string | undefined;
|
|
859
|
+
remote_host?: string | undefined;
|
|
860
|
+
remote_slug?: string | undefined;
|
|
861
|
+
branch?: string | undefined;
|
|
862
|
+
commit_sha?: string | undefined;
|
|
863
|
+
is_dirty?: boolean | undefined;
|
|
864
|
+
} | undefined;
|
|
720
865
|
}, {
|
|
721
|
-
type: "session_start";
|
|
722
866
|
session_id: string;
|
|
723
867
|
transcript_path: string;
|
|
724
868
|
cwd: string;
|
|
725
869
|
hook_event_name: string;
|
|
870
|
+
type: "session_start";
|
|
726
871
|
wall_ts: string;
|
|
727
872
|
sequence: number;
|
|
728
873
|
source: string;
|
|
729
874
|
permission_mode?: string | undefined;
|
|
730
875
|
agent_tool_use_id?: string | undefined;
|
|
731
876
|
project_name?: string | undefined;
|
|
877
|
+
git_context?: {
|
|
878
|
+
repo: string;
|
|
879
|
+
remote_url?: string | undefined;
|
|
880
|
+
remote_host?: string | undefined;
|
|
881
|
+
remote_slug?: string | undefined;
|
|
882
|
+
branch?: string | undefined;
|
|
883
|
+
commit_sha?: string | undefined;
|
|
884
|
+
is_dirty?: boolean | undefined;
|
|
885
|
+
} | undefined;
|
|
732
886
|
}>, z.ZodObject<{
|
|
733
887
|
session_id: z.ZodString;
|
|
734
888
|
transcript_path: z.ZodString;
|
|
@@ -743,22 +897,22 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
743
897
|
type: z.ZodLiteral<"user_prompt">;
|
|
744
898
|
prompt: z.ZodString;
|
|
745
899
|
}, "strip", z.ZodTypeAny, {
|
|
746
|
-
type: "user_prompt";
|
|
747
900
|
session_id: string;
|
|
748
901
|
transcript_path: string;
|
|
749
902
|
cwd: string;
|
|
750
903
|
hook_event_name: string;
|
|
904
|
+
type: "user_prompt";
|
|
751
905
|
wall_ts: string;
|
|
752
906
|
sequence: number;
|
|
753
907
|
prompt: string;
|
|
754
908
|
permission_mode?: string | undefined;
|
|
755
909
|
agent_tool_use_id?: string | undefined;
|
|
756
910
|
}, {
|
|
757
|
-
type: "user_prompt";
|
|
758
911
|
session_id: string;
|
|
759
912
|
transcript_path: string;
|
|
760
913
|
cwd: string;
|
|
761
914
|
hook_event_name: string;
|
|
915
|
+
type: "user_prompt";
|
|
762
916
|
wall_ts: string;
|
|
763
917
|
sequence: number;
|
|
764
918
|
prompt: string;
|
|
@@ -780,11 +934,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
780
934
|
tool_input: z.ZodUnknown;
|
|
781
935
|
tool_use_id: z.ZodString;
|
|
782
936
|
}, "strip", z.ZodTypeAny, {
|
|
783
|
-
type: "tool_attempt";
|
|
784
937
|
session_id: string;
|
|
785
938
|
transcript_path: string;
|
|
786
939
|
cwd: string;
|
|
787
940
|
hook_event_name: string;
|
|
941
|
+
type: "tool_attempt";
|
|
788
942
|
wall_ts: string;
|
|
789
943
|
sequence: number;
|
|
790
944
|
tool_name: string;
|
|
@@ -793,11 +947,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
793
947
|
agent_tool_use_id?: string | undefined;
|
|
794
948
|
tool_input?: unknown;
|
|
795
949
|
}, {
|
|
796
|
-
type: "tool_attempt";
|
|
797
950
|
session_id: string;
|
|
798
951
|
transcript_path: string;
|
|
799
952
|
cwd: string;
|
|
800
953
|
hook_event_name: string;
|
|
954
|
+
type: "tool_attempt";
|
|
801
955
|
wall_ts: string;
|
|
802
956
|
sequence: number;
|
|
803
957
|
tool_name: string;
|
|
@@ -825,11 +979,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
825
979
|
is_error: z.ZodOptional<z.ZodBoolean>;
|
|
826
980
|
error_message: z.ZodOptional<z.ZodString>;
|
|
827
981
|
}, "strip", z.ZodTypeAny, {
|
|
828
|
-
type: "tool_call";
|
|
829
982
|
session_id: string;
|
|
830
983
|
transcript_path: string;
|
|
831
984
|
cwd: string;
|
|
832
985
|
hook_event_name: string;
|
|
986
|
+
type: "tool_call";
|
|
833
987
|
wall_ts: string;
|
|
834
988
|
sequence: number;
|
|
835
989
|
tool_name: string;
|
|
@@ -842,11 +996,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
842
996
|
is_error?: boolean | undefined;
|
|
843
997
|
error_message?: string | undefined;
|
|
844
998
|
}, {
|
|
845
|
-
type: "tool_call";
|
|
846
999
|
session_id: string;
|
|
847
1000
|
transcript_path: string;
|
|
848
1001
|
cwd: string;
|
|
849
1002
|
hook_event_name: string;
|
|
1003
|
+
type: "tool_call";
|
|
850
1004
|
wall_ts: string;
|
|
851
1005
|
sequence: number;
|
|
852
1006
|
tool_name: string;
|
|
@@ -878,11 +1032,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
878
1032
|
cache_creation_tokens: z.ZodDefault<z.ZodNumber>;
|
|
879
1033
|
text: z.ZodOptional<z.ZodString>;
|
|
880
1034
|
}, "strip", z.ZodTypeAny, {
|
|
881
|
-
type: "assistant_turn";
|
|
882
1035
|
session_id: string;
|
|
883
1036
|
transcript_path: string;
|
|
884
1037
|
cwd: string;
|
|
885
1038
|
hook_event_name: string;
|
|
1039
|
+
type: "assistant_turn";
|
|
886
1040
|
wall_ts: string;
|
|
887
1041
|
sequence: number;
|
|
888
1042
|
message_uuid: string;
|
|
@@ -895,11 +1049,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
895
1049
|
agent_tool_use_id?: string | undefined;
|
|
896
1050
|
text?: string | undefined;
|
|
897
1051
|
}, {
|
|
898
|
-
type: "assistant_turn";
|
|
899
1052
|
session_id: string;
|
|
900
1053
|
transcript_path: string;
|
|
901
1054
|
cwd: string;
|
|
902
1055
|
hook_event_name: string;
|
|
1056
|
+
type: "assistant_turn";
|
|
903
1057
|
wall_ts: string;
|
|
904
1058
|
sequence: number;
|
|
905
1059
|
message_uuid: string;
|
|
@@ -929,11 +1083,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
929
1083
|
last_assistant_message: z.ZodString;
|
|
930
1084
|
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
931
1085
|
}, "strip", z.ZodTypeAny, {
|
|
932
|
-
type: "subagent_end";
|
|
933
1086
|
session_id: string;
|
|
934
1087
|
transcript_path: string;
|
|
935
1088
|
cwd: string;
|
|
936
1089
|
hook_event_name: string;
|
|
1090
|
+
type: "subagent_end";
|
|
937
1091
|
wall_ts: string;
|
|
938
1092
|
sequence: number;
|
|
939
1093
|
agent_id: string;
|
|
@@ -944,11 +1098,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
944
1098
|
agent_tool_use_id?: string | undefined;
|
|
945
1099
|
stop_hook_active?: boolean | undefined;
|
|
946
1100
|
}, {
|
|
947
|
-
type: "subagent_end";
|
|
948
1101
|
session_id: string;
|
|
949
1102
|
transcript_path: string;
|
|
950
1103
|
cwd: string;
|
|
951
1104
|
hook_event_name: string;
|
|
1105
|
+
type: "subagent_end";
|
|
952
1106
|
wall_ts: string;
|
|
953
1107
|
sequence: number;
|
|
954
1108
|
agent_id: string;
|
|
@@ -973,11 +1127,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
973
1127
|
last_assistant_message: z.ZodOptional<z.ZodString>;
|
|
974
1128
|
stop_hook_active: z.ZodOptional<z.ZodBoolean>;
|
|
975
1129
|
}, "strip", z.ZodTypeAny, {
|
|
976
|
-
type: "session_end";
|
|
977
1130
|
session_id: string;
|
|
978
1131
|
transcript_path: string;
|
|
979
1132
|
cwd: string;
|
|
980
1133
|
hook_event_name: string;
|
|
1134
|
+
type: "session_end";
|
|
981
1135
|
wall_ts: string;
|
|
982
1136
|
sequence: number;
|
|
983
1137
|
permission_mode?: string | undefined;
|
|
@@ -985,11 +1139,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
985
1139
|
last_assistant_message?: string | undefined;
|
|
986
1140
|
stop_hook_active?: boolean | undefined;
|
|
987
1141
|
}, {
|
|
988
|
-
type: "session_end";
|
|
989
1142
|
session_id: string;
|
|
990
1143
|
transcript_path: string;
|
|
991
1144
|
cwd: string;
|
|
992
1145
|
hook_event_name: string;
|
|
1146
|
+
type: "session_end";
|
|
993
1147
|
wall_ts: string;
|
|
994
1148
|
sequence: number;
|
|
995
1149
|
permission_mode?: string | undefined;
|
|
@@ -1010,22 +1164,22 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1010
1164
|
type: z.ZodLiteral<"session_close">;
|
|
1011
1165
|
reason: z.ZodOptional<z.ZodString>;
|
|
1012
1166
|
}, "strip", z.ZodTypeAny, {
|
|
1013
|
-
type: "session_close";
|
|
1014
1167
|
session_id: string;
|
|
1015
1168
|
transcript_path: string;
|
|
1016
1169
|
cwd: string;
|
|
1017
1170
|
hook_event_name: string;
|
|
1171
|
+
type: "session_close";
|
|
1018
1172
|
wall_ts: string;
|
|
1019
1173
|
sequence: number;
|
|
1020
1174
|
permission_mode?: string | undefined;
|
|
1021
1175
|
agent_tool_use_id?: string | undefined;
|
|
1022
1176
|
reason?: string | undefined;
|
|
1023
1177
|
}, {
|
|
1024
|
-
type: "session_close";
|
|
1025
1178
|
session_id: string;
|
|
1026
1179
|
transcript_path: string;
|
|
1027
1180
|
cwd: string;
|
|
1028
1181
|
hook_event_name: string;
|
|
1182
|
+
type: "session_close";
|
|
1029
1183
|
wall_ts: string;
|
|
1030
1184
|
sequence: number;
|
|
1031
1185
|
permission_mode?: string | undefined;
|
|
@@ -1034,34 +1188,43 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1034
1188
|
}>]>, "many">;
|
|
1035
1189
|
}, "strip", z.ZodTypeAny, {
|
|
1036
1190
|
events: ({
|
|
1037
|
-
type: "session_start";
|
|
1038
1191
|
session_id: string;
|
|
1039
1192
|
transcript_path: string;
|
|
1040
1193
|
cwd: string;
|
|
1041
1194
|
hook_event_name: string;
|
|
1195
|
+
type: "session_start";
|
|
1042
1196
|
wall_ts: string;
|
|
1043
1197
|
sequence: number;
|
|
1044
1198
|
source: string;
|
|
1045
1199
|
permission_mode?: string | undefined;
|
|
1046
1200
|
agent_tool_use_id?: string | undefined;
|
|
1047
1201
|
project_name?: string | undefined;
|
|
1202
|
+
git_context?: {
|
|
1203
|
+
repo: string;
|
|
1204
|
+
remote_url?: string | undefined;
|
|
1205
|
+
remote_host?: string | undefined;
|
|
1206
|
+
remote_slug?: string | undefined;
|
|
1207
|
+
branch?: string | undefined;
|
|
1208
|
+
commit_sha?: string | undefined;
|
|
1209
|
+
is_dirty?: boolean | undefined;
|
|
1210
|
+
} | undefined;
|
|
1048
1211
|
} | {
|
|
1049
|
-
type: "user_prompt";
|
|
1050
1212
|
session_id: string;
|
|
1051
1213
|
transcript_path: string;
|
|
1052
1214
|
cwd: string;
|
|
1053
1215
|
hook_event_name: string;
|
|
1216
|
+
type: "user_prompt";
|
|
1054
1217
|
wall_ts: string;
|
|
1055
1218
|
sequence: number;
|
|
1056
1219
|
prompt: string;
|
|
1057
1220
|
permission_mode?: string | undefined;
|
|
1058
1221
|
agent_tool_use_id?: string | undefined;
|
|
1059
1222
|
} | {
|
|
1060
|
-
type: "tool_attempt";
|
|
1061
1223
|
session_id: string;
|
|
1062
1224
|
transcript_path: string;
|
|
1063
1225
|
cwd: string;
|
|
1064
1226
|
hook_event_name: string;
|
|
1227
|
+
type: "tool_attempt";
|
|
1065
1228
|
wall_ts: string;
|
|
1066
1229
|
sequence: number;
|
|
1067
1230
|
tool_name: string;
|
|
@@ -1070,11 +1233,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1070
1233
|
agent_tool_use_id?: string | undefined;
|
|
1071
1234
|
tool_input?: unknown;
|
|
1072
1235
|
} | {
|
|
1073
|
-
type: "tool_call";
|
|
1074
1236
|
session_id: string;
|
|
1075
1237
|
transcript_path: string;
|
|
1076
1238
|
cwd: string;
|
|
1077
1239
|
hook_event_name: string;
|
|
1240
|
+
type: "tool_call";
|
|
1078
1241
|
wall_ts: string;
|
|
1079
1242
|
sequence: number;
|
|
1080
1243
|
tool_name: string;
|
|
@@ -1087,11 +1250,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1087
1250
|
is_error?: boolean | undefined;
|
|
1088
1251
|
error_message?: string | undefined;
|
|
1089
1252
|
} | {
|
|
1090
|
-
type: "assistant_turn";
|
|
1091
1253
|
session_id: string;
|
|
1092
1254
|
transcript_path: string;
|
|
1093
1255
|
cwd: string;
|
|
1094
1256
|
hook_event_name: string;
|
|
1257
|
+
type: "assistant_turn";
|
|
1095
1258
|
wall_ts: string;
|
|
1096
1259
|
sequence: number;
|
|
1097
1260
|
message_uuid: string;
|
|
@@ -1104,11 +1267,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1104
1267
|
agent_tool_use_id?: string | undefined;
|
|
1105
1268
|
text?: string | undefined;
|
|
1106
1269
|
} | {
|
|
1107
|
-
type: "subagent_end";
|
|
1108
1270
|
session_id: string;
|
|
1109
1271
|
transcript_path: string;
|
|
1110
1272
|
cwd: string;
|
|
1111
1273
|
hook_event_name: string;
|
|
1274
|
+
type: "subagent_end";
|
|
1112
1275
|
wall_ts: string;
|
|
1113
1276
|
sequence: number;
|
|
1114
1277
|
agent_id: string;
|
|
@@ -1119,11 +1282,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1119
1282
|
agent_tool_use_id?: string | undefined;
|
|
1120
1283
|
stop_hook_active?: boolean | undefined;
|
|
1121
1284
|
} | {
|
|
1122
|
-
type: "session_end";
|
|
1123
1285
|
session_id: string;
|
|
1124
1286
|
transcript_path: string;
|
|
1125
1287
|
cwd: string;
|
|
1126
1288
|
hook_event_name: string;
|
|
1289
|
+
type: "session_end";
|
|
1127
1290
|
wall_ts: string;
|
|
1128
1291
|
sequence: number;
|
|
1129
1292
|
permission_mode?: string | undefined;
|
|
@@ -1131,11 +1294,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1131
1294
|
last_assistant_message?: string | undefined;
|
|
1132
1295
|
stop_hook_active?: boolean | undefined;
|
|
1133
1296
|
} | {
|
|
1134
|
-
type: "session_close";
|
|
1135
1297
|
session_id: string;
|
|
1136
1298
|
transcript_path: string;
|
|
1137
1299
|
cwd: string;
|
|
1138
1300
|
hook_event_name: string;
|
|
1301
|
+
type: "session_close";
|
|
1139
1302
|
wall_ts: string;
|
|
1140
1303
|
sequence: number;
|
|
1141
1304
|
permission_mode?: string | undefined;
|
|
@@ -1144,34 +1307,43 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1144
1307
|
})[];
|
|
1145
1308
|
}, {
|
|
1146
1309
|
events: ({
|
|
1147
|
-
type: "session_start";
|
|
1148
1310
|
session_id: string;
|
|
1149
1311
|
transcript_path: string;
|
|
1150
1312
|
cwd: string;
|
|
1151
1313
|
hook_event_name: string;
|
|
1314
|
+
type: "session_start";
|
|
1152
1315
|
wall_ts: string;
|
|
1153
1316
|
sequence: number;
|
|
1154
1317
|
source: string;
|
|
1155
1318
|
permission_mode?: string | undefined;
|
|
1156
1319
|
agent_tool_use_id?: string | undefined;
|
|
1157
1320
|
project_name?: string | undefined;
|
|
1321
|
+
git_context?: {
|
|
1322
|
+
repo: string;
|
|
1323
|
+
remote_url?: string | undefined;
|
|
1324
|
+
remote_host?: string | undefined;
|
|
1325
|
+
remote_slug?: string | undefined;
|
|
1326
|
+
branch?: string | undefined;
|
|
1327
|
+
commit_sha?: string | undefined;
|
|
1328
|
+
is_dirty?: boolean | undefined;
|
|
1329
|
+
} | undefined;
|
|
1158
1330
|
} | {
|
|
1159
|
-
type: "user_prompt";
|
|
1160
1331
|
session_id: string;
|
|
1161
1332
|
transcript_path: string;
|
|
1162
1333
|
cwd: string;
|
|
1163
1334
|
hook_event_name: string;
|
|
1335
|
+
type: "user_prompt";
|
|
1164
1336
|
wall_ts: string;
|
|
1165
1337
|
sequence: number;
|
|
1166
1338
|
prompt: string;
|
|
1167
1339
|
permission_mode?: string | undefined;
|
|
1168
1340
|
agent_tool_use_id?: string | undefined;
|
|
1169
1341
|
} | {
|
|
1170
|
-
type: "tool_attempt";
|
|
1171
1342
|
session_id: string;
|
|
1172
1343
|
transcript_path: string;
|
|
1173
1344
|
cwd: string;
|
|
1174
1345
|
hook_event_name: string;
|
|
1346
|
+
type: "tool_attempt";
|
|
1175
1347
|
wall_ts: string;
|
|
1176
1348
|
sequence: number;
|
|
1177
1349
|
tool_name: string;
|
|
@@ -1180,11 +1352,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1180
1352
|
agent_tool_use_id?: string | undefined;
|
|
1181
1353
|
tool_input?: unknown;
|
|
1182
1354
|
} | {
|
|
1183
|
-
type: "tool_call";
|
|
1184
1355
|
session_id: string;
|
|
1185
1356
|
transcript_path: string;
|
|
1186
1357
|
cwd: string;
|
|
1187
1358
|
hook_event_name: string;
|
|
1359
|
+
type: "tool_call";
|
|
1188
1360
|
wall_ts: string;
|
|
1189
1361
|
sequence: number;
|
|
1190
1362
|
tool_name: string;
|
|
@@ -1197,11 +1369,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1197
1369
|
is_error?: boolean | undefined;
|
|
1198
1370
|
error_message?: string | undefined;
|
|
1199
1371
|
} | {
|
|
1200
|
-
type: "assistant_turn";
|
|
1201
1372
|
session_id: string;
|
|
1202
1373
|
transcript_path: string;
|
|
1203
1374
|
cwd: string;
|
|
1204
1375
|
hook_event_name: string;
|
|
1376
|
+
type: "assistant_turn";
|
|
1205
1377
|
wall_ts: string;
|
|
1206
1378
|
sequence: number;
|
|
1207
1379
|
message_uuid: string;
|
|
@@ -1214,11 +1386,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1214
1386
|
cache_creation_tokens?: number | undefined;
|
|
1215
1387
|
text?: string | undefined;
|
|
1216
1388
|
} | {
|
|
1217
|
-
type: "subagent_end";
|
|
1218
1389
|
session_id: string;
|
|
1219
1390
|
transcript_path: string;
|
|
1220
1391
|
cwd: string;
|
|
1221
1392
|
hook_event_name: string;
|
|
1393
|
+
type: "subagent_end";
|
|
1222
1394
|
wall_ts: string;
|
|
1223
1395
|
sequence: number;
|
|
1224
1396
|
agent_id: string;
|
|
@@ -1229,11 +1401,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1229
1401
|
agent_tool_use_id?: string | undefined;
|
|
1230
1402
|
stop_hook_active?: boolean | undefined;
|
|
1231
1403
|
} | {
|
|
1232
|
-
type: "session_end";
|
|
1233
1404
|
session_id: string;
|
|
1234
1405
|
transcript_path: string;
|
|
1235
1406
|
cwd: string;
|
|
1236
1407
|
hook_event_name: string;
|
|
1408
|
+
type: "session_end";
|
|
1237
1409
|
wall_ts: string;
|
|
1238
1410
|
sequence: number;
|
|
1239
1411
|
permission_mode?: string | undefined;
|
|
@@ -1241,11 +1413,11 @@ declare const IngestionRequest: z.ZodObject<{
|
|
|
1241
1413
|
last_assistant_message?: string | undefined;
|
|
1242
1414
|
stop_hook_active?: boolean | undefined;
|
|
1243
1415
|
} | {
|
|
1244
|
-
type: "session_close";
|
|
1245
1416
|
session_id: string;
|
|
1246
1417
|
transcript_path: string;
|
|
1247
1418
|
cwd: string;
|
|
1248
1419
|
hook_event_name: string;
|
|
1420
|
+
type: "session_close";
|
|
1249
1421
|
wall_ts: string;
|
|
1250
1422
|
sequence: number;
|
|
1251
1423
|
permission_mode?: string | undefined;
|
|
@@ -1281,4 +1453,4 @@ declare const IngestionResponse: z.ZodObject<{
|
|
|
1281
1453
|
}>;
|
|
1282
1454
|
type IngestionResponse = z.infer<typeof IngestionResponse>;
|
|
1283
1455
|
|
|
1284
|
-
export { AssistantTurnEvent, IngestionRequest, IngestionResponse, RuntapeEvent, SessionCloseEvent, SessionEndEvent, SessionStartEvent, SubagentEndEvent, ToolAttemptEvent, ToolCallEvent, UserPromptEvent };
|
|
1456
|
+
export { AssistantTurnEvent, GitContext, IngestionRequest, IngestionResponse, RuntapeEvent, SessionCloseEvent, SessionEndEvent, SessionStartEvent, SubagentEndEvent, ToolAttemptEvent, ToolCallEvent, UserPromptEvent };
|