@hopper-agent/protocol 0.1.0 → 0.2.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/.tsbuildinfo +1 -1
- package/dist/src/event-schemas.d.ts +45 -367
- package/dist/src/event-schemas.d.ts.map +1 -1
- package/dist/src/json-rpc.d.ts +17 -117
- package/dist/src/json-rpc.d.ts.map +1 -1
- package/dist/src/methods.d.ts +20 -69
- package/dist/src/methods.d.ts.map +1 -1
- package/dist/src/tool-schemas.d.ts +7 -61
- package/dist/src/tool-schemas.d.ts.map +1 -1
- package/package.json +10 -9
- package/LICENSE +0 -179
|
@@ -5,48 +5,18 @@ export declare const UserPromptEvent: z.ZodObject<{
|
|
|
5
5
|
text: z.ZodString;
|
|
6
6
|
cwd: z.ZodString;
|
|
7
7
|
timestamp: z.ZodNumber;
|
|
8
|
-
},
|
|
9
|
-
type: "user-prompt";
|
|
10
|
-
id: string;
|
|
11
|
-
text: string;
|
|
12
|
-
cwd: string;
|
|
13
|
-
timestamp: number;
|
|
14
|
-
}, {
|
|
15
|
-
type: "user-prompt";
|
|
16
|
-
id: string;
|
|
17
|
-
text: string;
|
|
18
|
-
cwd: string;
|
|
19
|
-
timestamp: number;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
21
9
|
export declare const AssistantDeltaEvent: z.ZodObject<{
|
|
22
10
|
type: z.ZodLiteral<"assistant-delta">;
|
|
23
11
|
id: z.ZodString;
|
|
24
12
|
text: z.ZodString;
|
|
25
13
|
timestamp: z.ZodNumber;
|
|
26
|
-
},
|
|
27
|
-
type: "assistant-delta";
|
|
28
|
-
id: string;
|
|
29
|
-
text: string;
|
|
30
|
-
timestamp: number;
|
|
31
|
-
}, {
|
|
32
|
-
type: "assistant-delta";
|
|
33
|
-
id: string;
|
|
34
|
-
text: string;
|
|
35
|
-
timestamp: number;
|
|
36
|
-
}>;
|
|
14
|
+
}, z.core.$strip>;
|
|
37
15
|
export declare const AssistantStopEvent: z.ZodObject<{
|
|
38
16
|
type: z.ZodLiteral<"assistant-stop">;
|
|
39
17
|
id: z.ZodString;
|
|
40
18
|
timestamp: z.ZodNumber;
|
|
41
|
-
},
|
|
42
|
-
type: "assistant-stop";
|
|
43
|
-
id: string;
|
|
44
|
-
timestamp: number;
|
|
45
|
-
}, {
|
|
46
|
-
type: "assistant-stop";
|
|
47
|
-
id: string;
|
|
48
|
-
timestamp: number;
|
|
49
|
-
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
50
20
|
export declare const ToolCallEvent: z.ZodObject<{
|
|
51
21
|
type: z.ZodLiteral<"tool-call">;
|
|
52
22
|
id: z.ZodString;
|
|
@@ -54,21 +24,7 @@ export declare const ToolCallEvent: z.ZodObject<{
|
|
|
54
24
|
name: z.ZodString;
|
|
55
25
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
56
26
|
timestamp: z.ZodNumber;
|
|
57
|
-
},
|
|
58
|
-
type: "tool-call";
|
|
59
|
-
id: string;
|
|
60
|
-
timestamp: number;
|
|
61
|
-
toolCallId: string;
|
|
62
|
-
name: string;
|
|
63
|
-
input: Record<string, unknown>;
|
|
64
|
-
}, {
|
|
65
|
-
type: "tool-call";
|
|
66
|
-
id: string;
|
|
67
|
-
timestamp: number;
|
|
68
|
-
toolCallId: string;
|
|
69
|
-
name: string;
|
|
70
|
-
input: Record<string, unknown>;
|
|
71
|
-
}>;
|
|
27
|
+
}, z.core.$strip>;
|
|
72
28
|
export declare const ToolResultEvent: z.ZodObject<{
|
|
73
29
|
type: z.ZodLiteral<"tool-result">;
|
|
74
30
|
id: z.ZodString;
|
|
@@ -76,68 +32,31 @@ export declare const ToolResultEvent: z.ZodObject<{
|
|
|
76
32
|
output: z.ZodUnknown;
|
|
77
33
|
error: z.ZodOptional<z.ZodString>;
|
|
78
34
|
timestamp: z.ZodNumber;
|
|
79
|
-
},
|
|
80
|
-
type: "tool-result";
|
|
81
|
-
id: string;
|
|
82
|
-
timestamp: number;
|
|
83
|
-
toolCallId: string;
|
|
84
|
-
output?: unknown;
|
|
85
|
-
error?: string | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
type: "tool-result";
|
|
88
|
-
id: string;
|
|
89
|
-
timestamp: number;
|
|
90
|
-
toolCallId: string;
|
|
91
|
-
output?: unknown;
|
|
92
|
-
error?: string | undefined;
|
|
93
|
-
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
94
36
|
export declare const ApprovalRequestEvent: z.ZodObject<{
|
|
95
37
|
type: z.ZodLiteral<"approval-request">;
|
|
96
38
|
id: z.ZodString;
|
|
97
39
|
toolCallId: z.ZodString;
|
|
98
40
|
name: z.ZodString;
|
|
99
41
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
100
|
-
decision: z.ZodOptional<z.ZodEnum<
|
|
42
|
+
decision: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
allow: "allow";
|
|
44
|
+
deny: "deny";
|
|
45
|
+
ask: "ask";
|
|
46
|
+
}>>;
|
|
101
47
|
timestamp: z.ZodNumber;
|
|
102
|
-
},
|
|
103
|
-
type: "approval-request";
|
|
104
|
-
id: string;
|
|
105
|
-
timestamp: number;
|
|
106
|
-
toolCallId: string;
|
|
107
|
-
name: string;
|
|
108
|
-
input: Record<string, unknown>;
|
|
109
|
-
decision?: "allow" | "deny" | "ask" | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
type: "approval-request";
|
|
112
|
-
id: string;
|
|
113
|
-
timestamp: number;
|
|
114
|
-
toolCallId: string;
|
|
115
|
-
name: string;
|
|
116
|
-
input: Record<string, unknown>;
|
|
117
|
-
decision?: "allow" | "deny" | "ask" | undefined;
|
|
118
|
-
}>;
|
|
48
|
+
}, z.core.$strip>;
|
|
119
49
|
export declare const ApprovalDecisionEvent: z.ZodObject<{
|
|
120
50
|
type: z.ZodLiteral<"approval-decision">;
|
|
121
51
|
id: z.ZodString;
|
|
122
52
|
toolCallId: z.ZodString;
|
|
123
|
-
decision: z.ZodEnum<
|
|
53
|
+
decision: z.ZodEnum<{
|
|
54
|
+
allow: "allow";
|
|
55
|
+
deny: "deny";
|
|
56
|
+
}>;
|
|
124
57
|
by: z.ZodOptional<z.ZodString>;
|
|
125
58
|
timestamp: z.ZodNumber;
|
|
126
|
-
},
|
|
127
|
-
type: "approval-decision";
|
|
128
|
-
id: string;
|
|
129
|
-
timestamp: number;
|
|
130
|
-
toolCallId: string;
|
|
131
|
-
decision: "allow" | "deny";
|
|
132
|
-
by?: string | undefined;
|
|
133
|
-
}, {
|
|
134
|
-
type: "approval-decision";
|
|
135
|
-
id: string;
|
|
136
|
-
timestamp: number;
|
|
137
|
-
toolCallId: string;
|
|
138
|
-
decision: "allow" | "deny";
|
|
139
|
-
by?: string | undefined;
|
|
140
|
-
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
141
60
|
export declare const UsageEvent: z.ZodObject<{
|
|
142
61
|
type: z.ZodLiteral<"usage">;
|
|
143
62
|
id: z.ZodString;
|
|
@@ -146,42 +65,14 @@ export declare const UsageEvent: z.ZodObject<{
|
|
|
146
65
|
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
147
66
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
148
67
|
timestamp: z.ZodNumber;
|
|
149
|
-
},
|
|
150
|
-
type: "usage";
|
|
151
|
-
id: string;
|
|
152
|
-
timestamp: number;
|
|
153
|
-
inputTokens: number;
|
|
154
|
-
outputTokens: number;
|
|
155
|
-
cacheReadTokens?: number | undefined;
|
|
156
|
-
cacheWriteTokens?: number | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
type: "usage";
|
|
159
|
-
id: string;
|
|
160
|
-
timestamp: number;
|
|
161
|
-
inputTokens: number;
|
|
162
|
-
outputTokens: number;
|
|
163
|
-
cacheReadTokens?: number | undefined;
|
|
164
|
-
cacheWriteTokens?: number | undefined;
|
|
165
|
-
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
166
69
|
export declare const ErrorEvent: z.ZodObject<{
|
|
167
70
|
type: z.ZodLiteral<"error">;
|
|
168
71
|
id: z.ZodString;
|
|
169
72
|
message: z.ZodString;
|
|
170
73
|
code: z.ZodOptional<z.ZodString>;
|
|
171
74
|
timestamp: z.ZodNumber;
|
|
172
|
-
},
|
|
173
|
-
type: "error";
|
|
174
|
-
message: string;
|
|
175
|
-
id: string;
|
|
176
|
-
timestamp: number;
|
|
177
|
-
code?: string | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
type: "error";
|
|
180
|
-
message: string;
|
|
181
|
-
id: string;
|
|
182
|
-
timestamp: number;
|
|
183
|
-
code?: string | undefined;
|
|
184
|
-
}>;
|
|
75
|
+
}, z.core.$strip>;
|
|
185
76
|
export declare const SessionStartEvent: z.ZodObject<{
|
|
186
77
|
type: z.ZodLiteral<"session-start">;
|
|
187
78
|
id: z.ZodString;
|
|
@@ -189,37 +80,13 @@ export declare const SessionStartEvent: z.ZodObject<{
|
|
|
189
80
|
provider: z.ZodString;
|
|
190
81
|
cwd: z.ZodString;
|
|
191
82
|
timestamp: z.ZodNumber;
|
|
192
|
-
},
|
|
193
|
-
type: "session-start";
|
|
194
|
-
id: string;
|
|
195
|
-
cwd: string;
|
|
196
|
-
timestamp: number;
|
|
197
|
-
model: string;
|
|
198
|
-
provider: string;
|
|
199
|
-
}, {
|
|
200
|
-
type: "session-start";
|
|
201
|
-
id: string;
|
|
202
|
-
cwd: string;
|
|
203
|
-
timestamp: number;
|
|
204
|
-
model: string;
|
|
205
|
-
provider: string;
|
|
206
|
-
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
207
84
|
export declare const SessionStopEvent: z.ZodObject<{
|
|
208
85
|
type: z.ZodLiteral<"session-stop">;
|
|
209
86
|
id: z.ZodString;
|
|
210
87
|
reason: z.ZodString;
|
|
211
88
|
timestamp: z.ZodNumber;
|
|
212
|
-
},
|
|
213
|
-
type: "session-stop";
|
|
214
|
-
id: string;
|
|
215
|
-
timestamp: number;
|
|
216
|
-
reason: string;
|
|
217
|
-
}, {
|
|
218
|
-
type: "session-stop";
|
|
219
|
-
id: string;
|
|
220
|
-
timestamp: number;
|
|
221
|
-
reason: string;
|
|
222
|
-
}>;
|
|
89
|
+
}, z.core.$strip>;
|
|
223
90
|
export declare const HookEvent: z.ZodObject<{
|
|
224
91
|
type: z.ZodLiteral<"hook">;
|
|
225
92
|
id: z.ZodString;
|
|
@@ -228,175 +95,66 @@ export declare const HookEvent: z.ZodObject<{
|
|
|
228
95
|
result: z.ZodOptional<z.ZodString>;
|
|
229
96
|
error: z.ZodOptional<z.ZodString>;
|
|
230
97
|
timestamp: z.ZodNumber;
|
|
231
|
-
},
|
|
232
|
-
type: "hook";
|
|
233
|
-
id: string;
|
|
234
|
-
timestamp: number;
|
|
235
|
-
name: string;
|
|
236
|
-
phase: string;
|
|
237
|
-
error?: string | undefined;
|
|
238
|
-
result?: string | undefined;
|
|
239
|
-
}, {
|
|
240
|
-
type: "hook";
|
|
241
|
-
id: string;
|
|
242
|
-
timestamp: number;
|
|
243
|
-
name: string;
|
|
244
|
-
phase: string;
|
|
245
|
-
error?: string | undefined;
|
|
246
|
-
result?: string | undefined;
|
|
247
|
-
}>;
|
|
98
|
+
}, z.core.$strip>;
|
|
248
99
|
export declare const StatusEvent: z.ZodObject<{
|
|
249
100
|
type: z.ZodLiteral<"status">;
|
|
250
101
|
id: z.ZodString;
|
|
251
102
|
message: z.ZodString;
|
|
252
103
|
spinner: z.ZodOptional<z.ZodBoolean>;
|
|
253
104
|
timestamp: z.ZodNumber;
|
|
254
|
-
},
|
|
255
|
-
|
|
256
|
-
message: string;
|
|
257
|
-
id: string;
|
|
258
|
-
timestamp: number;
|
|
259
|
-
spinner?: boolean | undefined;
|
|
260
|
-
}, {
|
|
261
|
-
type: "status";
|
|
262
|
-
message: string;
|
|
263
|
-
id: string;
|
|
264
|
-
timestamp: number;
|
|
265
|
-
spinner?: boolean | undefined;
|
|
266
|
-
}>;
|
|
267
|
-
export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export declare const EventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
268
107
|
type: z.ZodLiteral<"user-prompt">;
|
|
269
108
|
id: z.ZodString;
|
|
270
109
|
text: z.ZodString;
|
|
271
110
|
cwd: z.ZodString;
|
|
272
111
|
timestamp: z.ZodNumber;
|
|
273
|
-
},
|
|
274
|
-
type: "user-prompt";
|
|
275
|
-
id: string;
|
|
276
|
-
text: string;
|
|
277
|
-
cwd: string;
|
|
278
|
-
timestamp: number;
|
|
279
|
-
}, {
|
|
280
|
-
type: "user-prompt";
|
|
281
|
-
id: string;
|
|
282
|
-
text: string;
|
|
283
|
-
cwd: string;
|
|
284
|
-
timestamp: number;
|
|
285
|
-
}>, z.ZodObject<{
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
286
113
|
type: z.ZodLiteral<"assistant-delta">;
|
|
287
114
|
id: z.ZodString;
|
|
288
115
|
text: z.ZodString;
|
|
289
116
|
timestamp: z.ZodNumber;
|
|
290
|
-
},
|
|
291
|
-
type: "assistant-delta";
|
|
292
|
-
id: string;
|
|
293
|
-
text: string;
|
|
294
|
-
timestamp: number;
|
|
295
|
-
}, {
|
|
296
|
-
type: "assistant-delta";
|
|
297
|
-
id: string;
|
|
298
|
-
text: string;
|
|
299
|
-
timestamp: number;
|
|
300
|
-
}>, z.ZodObject<{
|
|
117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
301
118
|
type: z.ZodLiteral<"assistant-stop">;
|
|
302
119
|
id: z.ZodString;
|
|
303
120
|
timestamp: z.ZodNumber;
|
|
304
|
-
},
|
|
305
|
-
type: "assistant-stop";
|
|
306
|
-
id: string;
|
|
307
|
-
timestamp: number;
|
|
308
|
-
}, {
|
|
309
|
-
type: "assistant-stop";
|
|
310
|
-
id: string;
|
|
311
|
-
timestamp: number;
|
|
312
|
-
}>, z.ZodObject<{
|
|
121
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
313
122
|
type: z.ZodLiteral<"tool-call">;
|
|
314
123
|
id: z.ZodString;
|
|
315
124
|
toolCallId: z.ZodString;
|
|
316
125
|
name: z.ZodString;
|
|
317
126
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
318
127
|
timestamp: z.ZodNumber;
|
|
319
|
-
},
|
|
320
|
-
type: "tool-call";
|
|
321
|
-
id: string;
|
|
322
|
-
timestamp: number;
|
|
323
|
-
toolCallId: string;
|
|
324
|
-
name: string;
|
|
325
|
-
input: Record<string, unknown>;
|
|
326
|
-
}, {
|
|
327
|
-
type: "tool-call";
|
|
328
|
-
id: string;
|
|
329
|
-
timestamp: number;
|
|
330
|
-
toolCallId: string;
|
|
331
|
-
name: string;
|
|
332
|
-
input: Record<string, unknown>;
|
|
333
|
-
}>, z.ZodObject<{
|
|
128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
334
129
|
type: z.ZodLiteral<"tool-result">;
|
|
335
130
|
id: z.ZodString;
|
|
336
131
|
toolCallId: z.ZodString;
|
|
337
132
|
output: z.ZodUnknown;
|
|
338
133
|
error: z.ZodOptional<z.ZodString>;
|
|
339
134
|
timestamp: z.ZodNumber;
|
|
340
|
-
},
|
|
341
|
-
type: "tool-result";
|
|
342
|
-
id: string;
|
|
343
|
-
timestamp: number;
|
|
344
|
-
toolCallId: string;
|
|
345
|
-
output?: unknown;
|
|
346
|
-
error?: string | undefined;
|
|
347
|
-
}, {
|
|
348
|
-
type: "tool-result";
|
|
349
|
-
id: string;
|
|
350
|
-
timestamp: number;
|
|
351
|
-
toolCallId: string;
|
|
352
|
-
output?: unknown;
|
|
353
|
-
error?: string | undefined;
|
|
354
|
-
}>, z.ZodObject<{
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
136
|
type: z.ZodLiteral<"approval-request">;
|
|
356
137
|
id: z.ZodString;
|
|
357
138
|
toolCallId: z.ZodString;
|
|
358
139
|
name: z.ZodString;
|
|
359
140
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
360
|
-
decision: z.ZodOptional<z.ZodEnum<
|
|
141
|
+
decision: z.ZodOptional<z.ZodEnum<{
|
|
142
|
+
allow: "allow";
|
|
143
|
+
deny: "deny";
|
|
144
|
+
ask: "ask";
|
|
145
|
+
}>>;
|
|
361
146
|
timestamp: z.ZodNumber;
|
|
362
|
-
},
|
|
363
|
-
type: "approval-request";
|
|
364
|
-
id: string;
|
|
365
|
-
timestamp: number;
|
|
366
|
-
toolCallId: string;
|
|
367
|
-
name: string;
|
|
368
|
-
input: Record<string, unknown>;
|
|
369
|
-
decision?: "allow" | "deny" | "ask" | undefined;
|
|
370
|
-
}, {
|
|
371
|
-
type: "approval-request";
|
|
372
|
-
id: string;
|
|
373
|
-
timestamp: number;
|
|
374
|
-
toolCallId: string;
|
|
375
|
-
name: string;
|
|
376
|
-
input: Record<string, unknown>;
|
|
377
|
-
decision?: "allow" | "deny" | "ask" | undefined;
|
|
378
|
-
}>, z.ZodObject<{
|
|
147
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
148
|
type: z.ZodLiteral<"approval-decision">;
|
|
380
149
|
id: z.ZodString;
|
|
381
150
|
toolCallId: z.ZodString;
|
|
382
|
-
decision: z.ZodEnum<
|
|
151
|
+
decision: z.ZodEnum<{
|
|
152
|
+
allow: "allow";
|
|
153
|
+
deny: "deny";
|
|
154
|
+
}>;
|
|
383
155
|
by: z.ZodOptional<z.ZodString>;
|
|
384
156
|
timestamp: z.ZodNumber;
|
|
385
|
-
},
|
|
386
|
-
type: "approval-decision";
|
|
387
|
-
id: string;
|
|
388
|
-
timestamp: number;
|
|
389
|
-
toolCallId: string;
|
|
390
|
-
decision: "allow" | "deny";
|
|
391
|
-
by?: string | undefined;
|
|
392
|
-
}, {
|
|
393
|
-
type: "approval-decision";
|
|
394
|
-
id: string;
|
|
395
|
-
timestamp: number;
|
|
396
|
-
toolCallId: string;
|
|
397
|
-
decision: "allow" | "deny";
|
|
398
|
-
by?: string | undefined;
|
|
399
|
-
}>, z.ZodObject<{
|
|
157
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
400
158
|
type: z.ZodLiteral<"usage">;
|
|
401
159
|
id: z.ZodString;
|
|
402
160
|
inputTokens: z.ZodNumber;
|
|
@@ -404,77 +162,25 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
404
162
|
cacheReadTokens: z.ZodOptional<z.ZodNumber>;
|
|
405
163
|
cacheWriteTokens: z.ZodOptional<z.ZodNumber>;
|
|
406
164
|
timestamp: z.ZodNumber;
|
|
407
|
-
},
|
|
408
|
-
type: "usage";
|
|
409
|
-
id: string;
|
|
410
|
-
timestamp: number;
|
|
411
|
-
inputTokens: number;
|
|
412
|
-
outputTokens: number;
|
|
413
|
-
cacheReadTokens?: number | undefined;
|
|
414
|
-
cacheWriteTokens?: number | undefined;
|
|
415
|
-
}, {
|
|
416
|
-
type: "usage";
|
|
417
|
-
id: string;
|
|
418
|
-
timestamp: number;
|
|
419
|
-
inputTokens: number;
|
|
420
|
-
outputTokens: number;
|
|
421
|
-
cacheReadTokens?: number | undefined;
|
|
422
|
-
cacheWriteTokens?: number | undefined;
|
|
423
|
-
}>, z.ZodObject<{
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
424
166
|
type: z.ZodLiteral<"error">;
|
|
425
167
|
id: z.ZodString;
|
|
426
168
|
message: z.ZodString;
|
|
427
169
|
code: z.ZodOptional<z.ZodString>;
|
|
428
170
|
timestamp: z.ZodNumber;
|
|
429
|
-
},
|
|
430
|
-
type: "error";
|
|
431
|
-
message: string;
|
|
432
|
-
id: string;
|
|
433
|
-
timestamp: number;
|
|
434
|
-
code?: string | undefined;
|
|
435
|
-
}, {
|
|
436
|
-
type: "error";
|
|
437
|
-
message: string;
|
|
438
|
-
id: string;
|
|
439
|
-
timestamp: number;
|
|
440
|
-
code?: string | undefined;
|
|
441
|
-
}>, z.ZodObject<{
|
|
171
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
442
172
|
type: z.ZodLiteral<"session-start">;
|
|
443
173
|
id: z.ZodString;
|
|
444
174
|
model: z.ZodString;
|
|
445
175
|
provider: z.ZodString;
|
|
446
176
|
cwd: z.ZodString;
|
|
447
177
|
timestamp: z.ZodNumber;
|
|
448
|
-
},
|
|
449
|
-
type: "session-start";
|
|
450
|
-
id: string;
|
|
451
|
-
cwd: string;
|
|
452
|
-
timestamp: number;
|
|
453
|
-
model: string;
|
|
454
|
-
provider: string;
|
|
455
|
-
}, {
|
|
456
|
-
type: "session-start";
|
|
457
|
-
id: string;
|
|
458
|
-
cwd: string;
|
|
459
|
-
timestamp: number;
|
|
460
|
-
model: string;
|
|
461
|
-
provider: string;
|
|
462
|
-
}>, z.ZodObject<{
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
463
179
|
type: z.ZodLiteral<"session-stop">;
|
|
464
180
|
id: z.ZodString;
|
|
465
181
|
reason: z.ZodString;
|
|
466
182
|
timestamp: z.ZodNumber;
|
|
467
|
-
},
|
|
468
|
-
type: "session-stop";
|
|
469
|
-
id: string;
|
|
470
|
-
timestamp: number;
|
|
471
|
-
reason: string;
|
|
472
|
-
}, {
|
|
473
|
-
type: "session-stop";
|
|
474
|
-
id: string;
|
|
475
|
-
timestamp: number;
|
|
476
|
-
reason: string;
|
|
477
|
-
}>, z.ZodObject<{
|
|
183
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
478
184
|
type: z.ZodLiteral<"hook">;
|
|
479
185
|
id: z.ZodString;
|
|
480
186
|
phase: z.ZodString;
|
|
@@ -482,40 +188,12 @@ export declare const EventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
482
188
|
result: z.ZodOptional<z.ZodString>;
|
|
483
189
|
error: z.ZodOptional<z.ZodString>;
|
|
484
190
|
timestamp: z.ZodNumber;
|
|
485
|
-
},
|
|
486
|
-
type: "hook";
|
|
487
|
-
id: string;
|
|
488
|
-
timestamp: number;
|
|
489
|
-
name: string;
|
|
490
|
-
phase: string;
|
|
491
|
-
error?: string | undefined;
|
|
492
|
-
result?: string | undefined;
|
|
493
|
-
}, {
|
|
494
|
-
type: "hook";
|
|
495
|
-
id: string;
|
|
496
|
-
timestamp: number;
|
|
497
|
-
name: string;
|
|
498
|
-
phase: string;
|
|
499
|
-
error?: string | undefined;
|
|
500
|
-
result?: string | undefined;
|
|
501
|
-
}>, z.ZodObject<{
|
|
191
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
502
192
|
type: z.ZodLiteral<"status">;
|
|
503
193
|
id: z.ZodString;
|
|
504
194
|
message: z.ZodString;
|
|
505
195
|
spinner: z.ZodOptional<z.ZodBoolean>;
|
|
506
196
|
timestamp: z.ZodNumber;
|
|
507
|
-
},
|
|
508
|
-
type: "status";
|
|
509
|
-
message: string;
|
|
510
|
-
id: string;
|
|
511
|
-
timestamp: number;
|
|
512
|
-
spinner?: boolean | undefined;
|
|
513
|
-
}, {
|
|
514
|
-
type: "status";
|
|
515
|
-
message: string;
|
|
516
|
-
id: string;
|
|
517
|
-
timestamp: number;
|
|
518
|
-
spinner?: boolean | undefined;
|
|
519
|
-
}>]>;
|
|
197
|
+
}, z.core.$strip>], "type">;
|
|
520
198
|
export type Event = z.infer<typeof EventSchema>;
|
|
521
199
|
//# sourceMappingURL=event-schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-schemas.d.ts","sourceRoot":"","sources":["../../src/event-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"event-schemas.d.ts","sourceRoot":"","sources":["../../src/event-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;iBAM1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;iBAOxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;iBAO1B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAQ/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAOhC,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;iBAQrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;iBAMrB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;iBAO5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;iBAQpB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;iBAMtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|