codebuff 1.0.221 → 1.0.223
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/client.d.ts +5 -5
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +176 -176
- package/dist/common/actions.js +2 -2
- package/dist/common/actions.js.map +1 -1
- package/dist/common/billing/balance-calculator.d.ts +1 -1
- package/dist/common/constants.d.ts +2 -0
- package/dist/common/constants.js +1 -0
- package/dist/common/constants.js.map +1 -1
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +7 -0
- package/dist/common/logger.js.map +1 -0
- package/dist/common/project-file-tree.d.ts +1 -0
- package/dist/common/project-file-tree.js +18 -1
- package/dist/common/project-file-tree.js.map +1 -1
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/changes.d.ts +1 -0
- package/dist/common/util/changes.js +7 -1
- package/dist/common/util/changes.js.map +1 -1
- package/dist/common/util/constants.d.ts +1 -0
- package/dist/common/util/constants.js +7 -0
- package/dist/common/util/constants.js.map +1 -0
- package/dist/common/util/helpers.d.ts +1 -0
- package/dist/common/util/helpers.js +6 -0
- package/dist/common/util/helpers.js.map +1 -0
- package/dist/common/util/token-counter.d.ts +3 -0
- package/dist/common/util/token-counter.js +27 -0
- package/dist/common/util/token-counter.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +320 -320
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/json-config/constants.d.ts +43 -0
- package/dist/json-config/constants.js +13 -0
- package/dist/json-config/constants.js.map +1 -0
- package/dist/json-config/dev-process-manager.d.ts +5 -0
- package/dist/json-config/dev-process-manager.js +30 -0
- package/dist/json-config/dev-process-manager.js.map +1 -0
- package/dist/json-config/parser.d.ts +7 -0
- package/dist/json-config/parser.js +44 -0
- package/dist/json-config/parser.js.map +1 -0
- package/dist/tool-handlers.js +8 -5
- package/dist/tool-handlers.js.map +1 -1
- package/dist/utils/terminal.d.ts +4 -0
- package/dist/utils/terminal.js +7 -4
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/tool-renderers.js +30 -12
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/advanced-analyzer.d.ts +0 -19
- package/dist/common/advanced-analyzer.js +0 -140
- package/dist/common/advanced-analyzer.js.map +0 -1
- package/dist/common/billing/check-auto-topup.d.ts +0 -12
- package/dist/common/billing/check-auto-topup.js +0 -50
- package/dist/common/billing/check-auto-topup.js.map +0 -1
- package/dist/common/billing/credit-check.d.ts +0 -8
- package/dist/common/billing/credit-check.js +0 -45
- package/dist/common/billing/credit-check.js.map +0 -1
- package/dist/common/billing/rollover-logic.d.ts +0 -13
- package/dist/common/billing/rollover-logic.js +0 -174
- package/dist/common/billing/rollover-logic.js.map +0 -1
- package/dist/common/billing/stripe-api.d.ts +0 -31
- package/dist/common/billing/stripe-api.js +0 -104
- package/dist/common/billing/stripe-api.js.map +0 -1
- package/dist/common/message-image-handling.d.ts +0 -41
- package/dist/common/message-image-handling.js +0 -57
- package/dist/common/message-image-handling.js.map +0 -1
- package/dist/common/util/process-stream.d.ts +0 -8
- package/dist/common/util/process-stream.js +0 -102
- package/dist/common/util/process-stream.js.map +0 -1
- package/dist/common/util/referral-credits.d.ts +0 -1
- package/dist/common/util/referral-credits.js +0 -48
- package/dist/common/util/referral-credits.js.map +0 -1
package/dist/common/actions.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
content: string;
|
|
8
7
|
type: "patch" | "file";
|
|
9
8
|
path: string;
|
|
10
|
-
}, {
|
|
11
9
|
content: string;
|
|
10
|
+
}, {
|
|
12
11
|
type: "patch" | "file";
|
|
13
12
|
path: string;
|
|
13
|
+
content: string;
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
16
16
|
export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
@@ -18,13 +18,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
18
18
|
path: z.ZodString;
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
content: string;
|
|
22
21
|
type: "patch" | "file";
|
|
23
22
|
path: string;
|
|
24
|
-
}, {
|
|
25
23
|
content: string;
|
|
24
|
+
}, {
|
|
26
25
|
type: "patch" | "file";
|
|
27
26
|
path: string;
|
|
27
|
+
content: string;
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
30
30
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -100,11 +100,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
100
100
|
path: z.ZodString;
|
|
101
101
|
content: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
content: string;
|
|
104
103
|
path: string;
|
|
105
|
-
}, {
|
|
106
104
|
content: string;
|
|
105
|
+
}, {
|
|
107
106
|
path: string;
|
|
107
|
+
content: string;
|
|
108
108
|
}>, "many">, "many">>;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
110
|
currentWorkingDirectory: string;
|
|
@@ -129,8 +129,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
129
129
|
};
|
|
130
130
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
131
131
|
fileVersions?: {
|
|
132
|
-
content: string;
|
|
133
132
|
path: string;
|
|
133
|
+
content: string;
|
|
134
134
|
}[][] | undefined;
|
|
135
135
|
}, {
|
|
136
136
|
currentWorkingDirectory: string;
|
|
@@ -155,8 +155,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
155
155
|
};
|
|
156
156
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
157
157
|
fileVersions?: {
|
|
158
|
-
content: string;
|
|
159
158
|
path: string;
|
|
159
|
+
content: string;
|
|
160
160
|
}[][] | undefined;
|
|
161
161
|
}>;
|
|
162
162
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -172,14 +172,14 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
172
172
|
type: "ephemeral";
|
|
173
173
|
}>>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
|
-
text: string;
|
|
176
175
|
type: "text";
|
|
176
|
+
text: string;
|
|
177
177
|
cache_control?: {
|
|
178
178
|
type: "ephemeral";
|
|
179
179
|
} | undefined;
|
|
180
180
|
}, {
|
|
181
|
-
text: string;
|
|
182
181
|
type: "text";
|
|
182
|
+
text: string;
|
|
183
183
|
cache_control?: {
|
|
184
184
|
type: "ephemeral";
|
|
185
185
|
} | undefined;
|
|
@@ -196,16 +196,16 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
196
196
|
type: "ephemeral";
|
|
197
197
|
}>>;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
name: string;
|
|
200
199
|
type: "tool_use";
|
|
200
|
+
name: string;
|
|
201
201
|
id: string;
|
|
202
202
|
input: Record<string, any>;
|
|
203
203
|
cache_control?: {
|
|
204
204
|
type: "ephemeral";
|
|
205
205
|
} | undefined;
|
|
206
206
|
}, {
|
|
207
|
-
name: string;
|
|
208
207
|
type: "tool_use";
|
|
208
|
+
name: string;
|
|
209
209
|
id: string;
|
|
210
210
|
input: Record<string, any>;
|
|
211
211
|
cache_control?: {
|
|
@@ -223,15 +223,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
223
223
|
type: "ephemeral";
|
|
224
224
|
}>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
content: string;
|
|
227
226
|
type: "tool_result";
|
|
227
|
+
content: string;
|
|
228
228
|
tool_use_id: string;
|
|
229
229
|
cache_control?: {
|
|
230
230
|
type: "ephemeral";
|
|
231
231
|
} | undefined;
|
|
232
232
|
}, {
|
|
233
|
-
content: string;
|
|
234
233
|
type: "tool_result";
|
|
234
|
+
content: string;
|
|
235
235
|
tool_use_id: string;
|
|
236
236
|
cache_control?: {
|
|
237
237
|
type: "ephemeral";
|
|
@@ -243,13 +243,13 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
243
243
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
244
244
|
data: z.ZodString;
|
|
245
245
|
}, "strip", z.ZodTypeAny, {
|
|
246
|
-
data: string;
|
|
247
246
|
type: "base64";
|
|
248
247
|
media_type: "image/jpeg";
|
|
249
|
-
}, {
|
|
250
248
|
data: string;
|
|
249
|
+
}, {
|
|
251
250
|
type: "base64";
|
|
252
251
|
media_type: "image/jpeg";
|
|
252
|
+
data: string;
|
|
253
253
|
}>;
|
|
254
254
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
255
255
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -261,9 +261,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
261
261
|
}, "strip", z.ZodTypeAny, {
|
|
262
262
|
type: "image";
|
|
263
263
|
source: {
|
|
264
|
-
data: string;
|
|
265
264
|
type: "base64";
|
|
266
265
|
media_type: "image/jpeg";
|
|
266
|
+
data: string;
|
|
267
267
|
};
|
|
268
268
|
cache_control?: {
|
|
269
269
|
type: "ephemeral";
|
|
@@ -271,9 +271,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
271
271
|
}, {
|
|
272
272
|
type: "image";
|
|
273
273
|
source: {
|
|
274
|
-
data: string;
|
|
275
274
|
type: "base64";
|
|
276
275
|
media_type: "image/jpeg";
|
|
276
|
+
data: string;
|
|
277
277
|
};
|
|
278
278
|
cache_control?: {
|
|
279
279
|
type: "ephemeral";
|
|
@@ -281,22 +281,22 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
281
281
|
}>]>, "many">]>;
|
|
282
282
|
}, "strip", z.ZodTypeAny, {
|
|
283
283
|
content: string | ({
|
|
284
|
-
text: string;
|
|
285
284
|
type: "text";
|
|
285
|
+
text: string;
|
|
286
286
|
cache_control?: {
|
|
287
287
|
type: "ephemeral";
|
|
288
288
|
} | undefined;
|
|
289
289
|
} | {
|
|
290
|
-
name: string;
|
|
291
290
|
type: "tool_use";
|
|
291
|
+
name: string;
|
|
292
292
|
id: string;
|
|
293
293
|
input: Record<string, any>;
|
|
294
294
|
cache_control?: {
|
|
295
295
|
type: "ephemeral";
|
|
296
296
|
} | undefined;
|
|
297
297
|
} | {
|
|
298
|
-
content: string;
|
|
299
298
|
type: "tool_result";
|
|
299
|
+
content: string;
|
|
300
300
|
tool_use_id: string;
|
|
301
301
|
cache_control?: {
|
|
302
302
|
type: "ephemeral";
|
|
@@ -304,9 +304,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
304
304
|
} | {
|
|
305
305
|
type: "image";
|
|
306
306
|
source: {
|
|
307
|
-
data: string;
|
|
308
307
|
type: "base64";
|
|
309
308
|
media_type: "image/jpeg";
|
|
309
|
+
data: string;
|
|
310
310
|
};
|
|
311
311
|
cache_control?: {
|
|
312
312
|
type: "ephemeral";
|
|
@@ -315,22 +315,22 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
315
315
|
role: "user" | "assistant";
|
|
316
316
|
}, {
|
|
317
317
|
content: string | ({
|
|
318
|
-
text: string;
|
|
319
318
|
type: "text";
|
|
319
|
+
text: string;
|
|
320
320
|
cache_control?: {
|
|
321
321
|
type: "ephemeral";
|
|
322
322
|
} | undefined;
|
|
323
323
|
} | {
|
|
324
|
-
name: string;
|
|
325
324
|
type: "tool_use";
|
|
325
|
+
name: string;
|
|
326
326
|
id: string;
|
|
327
327
|
input: Record<string, any>;
|
|
328
328
|
cache_control?: {
|
|
329
329
|
type: "ephemeral";
|
|
330
330
|
} | undefined;
|
|
331
331
|
} | {
|
|
332
|
-
content: string;
|
|
333
332
|
type: "tool_result";
|
|
333
|
+
content: string;
|
|
334
334
|
tool_use_id: string;
|
|
335
335
|
cache_control?: {
|
|
336
336
|
type: "ephemeral";
|
|
@@ -338,9 +338,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
338
338
|
} | {
|
|
339
339
|
type: "image";
|
|
340
340
|
source: {
|
|
341
|
-
data: string;
|
|
342
341
|
type: "base64";
|
|
343
342
|
media_type: "image/jpeg";
|
|
343
|
+
data: string;
|
|
344
344
|
};
|
|
345
345
|
cache_control?: {
|
|
346
346
|
type: "ephemeral";
|
|
@@ -374,28 +374,28 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
374
374
|
};
|
|
375
375
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
376
376
|
fileVersions?: {
|
|
377
|
-
content: string;
|
|
378
377
|
path: string;
|
|
378
|
+
content: string;
|
|
379
379
|
}[][] | undefined;
|
|
380
380
|
};
|
|
381
381
|
messageHistory: {
|
|
382
382
|
content: string | ({
|
|
383
|
-
text: string;
|
|
384
383
|
type: "text";
|
|
384
|
+
text: string;
|
|
385
385
|
cache_control?: {
|
|
386
386
|
type: "ephemeral";
|
|
387
387
|
} | undefined;
|
|
388
388
|
} | {
|
|
389
|
-
name: string;
|
|
390
389
|
type: "tool_use";
|
|
390
|
+
name: string;
|
|
391
391
|
id: string;
|
|
392
392
|
input: Record<string, any>;
|
|
393
393
|
cache_control?: {
|
|
394
394
|
type: "ephemeral";
|
|
395
395
|
} | undefined;
|
|
396
396
|
} | {
|
|
397
|
-
content: string;
|
|
398
397
|
type: "tool_result";
|
|
398
|
+
content: string;
|
|
399
399
|
tool_use_id: string;
|
|
400
400
|
cache_control?: {
|
|
401
401
|
type: "ephemeral";
|
|
@@ -403,9 +403,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
403
403
|
} | {
|
|
404
404
|
type: "image";
|
|
405
405
|
source: {
|
|
406
|
-
data: string;
|
|
407
406
|
type: "base64";
|
|
408
407
|
media_type: "image/jpeg";
|
|
408
|
+
data: string;
|
|
409
409
|
};
|
|
410
410
|
cache_control?: {
|
|
411
411
|
type: "ephemeral";
|
|
@@ -439,28 +439,28 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
439
439
|
};
|
|
440
440
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
441
441
|
fileVersions?: {
|
|
442
|
-
content: string;
|
|
443
442
|
path: string;
|
|
443
|
+
content: string;
|
|
444
444
|
}[][] | undefined;
|
|
445
445
|
};
|
|
446
446
|
messageHistory: {
|
|
447
447
|
content: string | ({
|
|
448
|
-
text: string;
|
|
449
448
|
type: "text";
|
|
449
|
+
text: string;
|
|
450
450
|
cache_control?: {
|
|
451
451
|
type: "ephemeral";
|
|
452
452
|
} | undefined;
|
|
453
453
|
} | {
|
|
454
|
-
name: string;
|
|
455
454
|
type: "tool_use";
|
|
455
|
+
name: string;
|
|
456
456
|
id: string;
|
|
457
457
|
input: Record<string, any>;
|
|
458
458
|
cache_control?: {
|
|
459
459
|
type: "ephemeral";
|
|
460
460
|
} | undefined;
|
|
461
461
|
} | {
|
|
462
|
-
content: string;
|
|
463
462
|
type: "tool_result";
|
|
463
|
+
content: string;
|
|
464
464
|
tool_use_id: string;
|
|
465
465
|
cache_control?: {
|
|
466
466
|
type: "ephemeral";
|
|
@@ -468,9 +468,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
468
468
|
} | {
|
|
469
469
|
type: "image";
|
|
470
470
|
source: {
|
|
471
|
-
data: string;
|
|
472
471
|
type: "base64";
|
|
473
472
|
media_type: "image/jpeg";
|
|
473
|
+
data: string;
|
|
474
474
|
};
|
|
475
475
|
cache_control?: {
|
|
476
476
|
type: "ephemeral";
|
|
@@ -524,28 +524,28 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
524
524
|
};
|
|
525
525
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
526
526
|
fileVersions?: {
|
|
527
|
-
content: string;
|
|
528
527
|
path: string;
|
|
528
|
+
content: string;
|
|
529
529
|
}[][] | undefined;
|
|
530
530
|
};
|
|
531
531
|
messageHistory: {
|
|
532
532
|
content: string | ({
|
|
533
|
-
text: string;
|
|
534
533
|
type: "text";
|
|
534
|
+
text: string;
|
|
535
535
|
cache_control?: {
|
|
536
536
|
type: "ephemeral";
|
|
537
537
|
} | undefined;
|
|
538
538
|
} | {
|
|
539
|
-
name: string;
|
|
540
539
|
type: "tool_use";
|
|
540
|
+
name: string;
|
|
541
541
|
id: string;
|
|
542
542
|
input: Record<string, any>;
|
|
543
543
|
cache_control?: {
|
|
544
544
|
type: "ephemeral";
|
|
545
545
|
} | undefined;
|
|
546
546
|
} | {
|
|
547
|
-
content: string;
|
|
548
547
|
type: "tool_result";
|
|
548
|
+
content: string;
|
|
549
549
|
tool_use_id: string;
|
|
550
550
|
cache_control?: {
|
|
551
551
|
type: "ephemeral";
|
|
@@ -553,9 +553,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
553
553
|
} | {
|
|
554
554
|
type: "image";
|
|
555
555
|
source: {
|
|
556
|
-
data: string;
|
|
557
556
|
type: "base64";
|
|
558
557
|
media_type: "image/jpeg";
|
|
558
|
+
data: string;
|
|
559
559
|
};
|
|
560
560
|
cache_control?: {
|
|
561
561
|
type: "ephemeral";
|
|
@@ -602,28 +602,28 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
602
602
|
};
|
|
603
603
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
604
604
|
fileVersions?: {
|
|
605
|
-
content: string;
|
|
606
605
|
path: string;
|
|
606
|
+
content: string;
|
|
607
607
|
}[][] | undefined;
|
|
608
608
|
};
|
|
609
609
|
messageHistory: {
|
|
610
610
|
content: string | ({
|
|
611
|
-
text: string;
|
|
612
611
|
type: "text";
|
|
612
|
+
text: string;
|
|
613
613
|
cache_control?: {
|
|
614
614
|
type: "ephemeral";
|
|
615
615
|
} | undefined;
|
|
616
616
|
} | {
|
|
617
|
-
name: string;
|
|
618
617
|
type: "tool_use";
|
|
618
|
+
name: string;
|
|
619
619
|
id: string;
|
|
620
620
|
input: Record<string, any>;
|
|
621
621
|
cache_control?: {
|
|
622
622
|
type: "ephemeral";
|
|
623
623
|
} | undefined;
|
|
624
624
|
} | {
|
|
625
|
-
content: string;
|
|
626
625
|
type: "tool_result";
|
|
626
|
+
content: string;
|
|
627
627
|
tool_use_id: string;
|
|
628
628
|
cache_control?: {
|
|
629
629
|
type: "ephemeral";
|
|
@@ -631,9 +631,9 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
631
631
|
} | {
|
|
632
632
|
type: "image";
|
|
633
633
|
source: {
|
|
634
|
-
data: string;
|
|
635
634
|
type: "base64";
|
|
636
635
|
media_type: "image/jpeg";
|
|
636
|
+
data: string;
|
|
637
637
|
};
|
|
638
638
|
cache_control?: {
|
|
639
639
|
type: "ephemeral";
|
|
@@ -718,11 +718,11 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
718
718
|
path: z.ZodString;
|
|
719
719
|
content: z.ZodString;
|
|
720
720
|
}, "strip", z.ZodTypeAny, {
|
|
721
|
-
content: string;
|
|
722
721
|
path: string;
|
|
723
|
-
}, {
|
|
724
722
|
content: string;
|
|
723
|
+
}, {
|
|
725
724
|
path: string;
|
|
725
|
+
content: string;
|
|
726
726
|
}>, "many">, "many">>;
|
|
727
727
|
}, "strip", z.ZodTypeAny, {
|
|
728
728
|
currentWorkingDirectory: string;
|
|
@@ -747,8 +747,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
747
747
|
};
|
|
748
748
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
749
749
|
fileVersions?: {
|
|
750
|
-
content: string;
|
|
751
750
|
path: string;
|
|
751
|
+
content: string;
|
|
752
752
|
}[][] | undefined;
|
|
753
753
|
}, {
|
|
754
754
|
currentWorkingDirectory: string;
|
|
@@ -773,8 +773,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
773
773
|
};
|
|
774
774
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
775
775
|
fileVersions?: {
|
|
776
|
-
content: string;
|
|
777
776
|
path: string;
|
|
777
|
+
content: string;
|
|
778
778
|
}[][] | undefined;
|
|
779
779
|
}>;
|
|
780
780
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -803,8 +803,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
803
803
|
};
|
|
804
804
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
805
805
|
fileVersions?: {
|
|
806
|
-
content: string;
|
|
807
806
|
path: string;
|
|
807
|
+
content: string;
|
|
808
808
|
}[][] | undefined;
|
|
809
809
|
};
|
|
810
810
|
authToken?: string | undefined;
|
|
@@ -834,8 +834,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
834
834
|
};
|
|
835
835
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
836
836
|
fileVersions?: {
|
|
837
|
-
content: string;
|
|
838
837
|
path: string;
|
|
838
|
+
content: string;
|
|
839
839
|
}[][] | undefined;
|
|
840
840
|
};
|
|
841
841
|
authToken?: string | undefined;
|
|
@@ -919,36 +919,36 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
919
919
|
path: z.ZodString;
|
|
920
920
|
content: z.ZodString;
|
|
921
921
|
}, "strip", z.ZodTypeAny, {
|
|
922
|
-
content: string;
|
|
923
922
|
type: "patch" | "file";
|
|
924
923
|
path: string;
|
|
925
|
-
}, {
|
|
926
924
|
content: string;
|
|
925
|
+
}, {
|
|
927
926
|
type: "patch" | "file";
|
|
928
927
|
path: string;
|
|
928
|
+
content: string;
|
|
929
929
|
}>, "many">;
|
|
930
930
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
931
931
|
type: z.ZodEnum<["patch", "file"]>;
|
|
932
932
|
path: z.ZodString;
|
|
933
933
|
content: z.ZodString;
|
|
934
934
|
}, "strip", z.ZodTypeAny, {
|
|
935
|
-
content: string;
|
|
936
935
|
type: "patch" | "file";
|
|
937
936
|
path: string;
|
|
938
|
-
}, {
|
|
939
937
|
content: string;
|
|
938
|
+
}, {
|
|
940
939
|
type: "patch" | "file";
|
|
941
940
|
path: string;
|
|
941
|
+
content: string;
|
|
942
942
|
}>, "many">;
|
|
943
943
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
944
944
|
path: z.ZodString;
|
|
945
945
|
content: z.ZodString;
|
|
946
946
|
}, "strip", z.ZodTypeAny, {
|
|
947
|
-
content: string;
|
|
948
947
|
path: string;
|
|
949
|
-
}, {
|
|
950
948
|
content: string;
|
|
949
|
+
}, {
|
|
951
950
|
path: string;
|
|
951
|
+
content: string;
|
|
952
952
|
}>, "many">;
|
|
953
953
|
resetFileVersions: z.ZodBoolean;
|
|
954
954
|
}, {
|
|
@@ -963,18 +963,18 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
963
963
|
userInputId: string;
|
|
964
964
|
response: string;
|
|
965
965
|
changes: {
|
|
966
|
-
content: string;
|
|
967
966
|
type: "patch" | "file";
|
|
968
967
|
path: string;
|
|
968
|
+
content: string;
|
|
969
969
|
}[];
|
|
970
970
|
changesAlreadyApplied: {
|
|
971
|
-
content: string;
|
|
972
971
|
type: "patch" | "file";
|
|
973
972
|
path: string;
|
|
973
|
+
content: string;
|
|
974
974
|
}[];
|
|
975
975
|
addedFileVersions: {
|
|
976
|
-
content: string;
|
|
977
976
|
path: string;
|
|
977
|
+
content: string;
|
|
978
978
|
}[];
|
|
979
979
|
resetFileVersions: boolean;
|
|
980
980
|
usage?: number | undefined;
|
|
@@ -988,18 +988,18 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
988
988
|
userInputId: string;
|
|
989
989
|
response: string;
|
|
990
990
|
changes: {
|
|
991
|
-
content: string;
|
|
992
991
|
type: "patch" | "file";
|
|
993
992
|
path: string;
|
|
993
|
+
content: string;
|
|
994
994
|
}[];
|
|
995
995
|
changesAlreadyApplied: {
|
|
996
|
-
content: string;
|
|
997
996
|
type: "patch" | "file";
|
|
998
997
|
path: string;
|
|
998
|
+
content: string;
|
|
999
999
|
}[];
|
|
1000
1000
|
addedFileVersions: {
|
|
1001
|
-
content: string;
|
|
1002
1001
|
path: string;
|
|
1002
|
+
content: string;
|
|
1003
1003
|
}[];
|
|
1004
1004
|
resetFileVersions: boolean;
|
|
1005
1005
|
usage?: number | undefined;
|
|
@@ -1078,11 +1078,11 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1078
1078
|
path: z.ZodString;
|
|
1079
1079
|
content: z.ZodString;
|
|
1080
1080
|
}, "strip", z.ZodTypeAny, {
|
|
1081
|
-
content: string;
|
|
1082
1081
|
path: string;
|
|
1083
|
-
}, {
|
|
1084
1082
|
content: string;
|
|
1083
|
+
}, {
|
|
1085
1084
|
path: string;
|
|
1085
|
+
content: string;
|
|
1086
1086
|
}>, "many">, "many">>;
|
|
1087
1087
|
}, "strip", z.ZodTypeAny, {
|
|
1088
1088
|
currentWorkingDirectory: string;
|
|
@@ -1107,8 +1107,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1107
1107
|
};
|
|
1108
1108
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1109
1109
|
fileVersions?: {
|
|
1110
|
-
content: string;
|
|
1111
1110
|
path: string;
|
|
1111
|
+
content: string;
|
|
1112
1112
|
}[][] | undefined;
|
|
1113
1113
|
}, {
|
|
1114
1114
|
currentWorkingDirectory: string;
|
|
@@ -1133,8 +1133,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1133
1133
|
};
|
|
1134
1134
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1135
1135
|
fileVersions?: {
|
|
1136
|
-
content: string;
|
|
1137
1136
|
path: string;
|
|
1137
|
+
content: string;
|
|
1138
1138
|
}[][] | undefined;
|
|
1139
1139
|
}>;
|
|
1140
1140
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -1150,14 +1150,14 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1150
1150
|
type: "ephemeral";
|
|
1151
1151
|
}>>;
|
|
1152
1152
|
}, "strip", z.ZodTypeAny, {
|
|
1153
|
-
text: string;
|
|
1154
1153
|
type: "text";
|
|
1154
|
+
text: string;
|
|
1155
1155
|
cache_control?: {
|
|
1156
1156
|
type: "ephemeral";
|
|
1157
1157
|
} | undefined;
|
|
1158
1158
|
}, {
|
|
1159
|
-
text: string;
|
|
1160
1159
|
type: "text";
|
|
1160
|
+
text: string;
|
|
1161
1161
|
cache_control?: {
|
|
1162
1162
|
type: "ephemeral";
|
|
1163
1163
|
} | undefined;
|
|
@@ -1174,16 +1174,16 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1174
1174
|
type: "ephemeral";
|
|
1175
1175
|
}>>;
|
|
1176
1176
|
}, "strip", z.ZodTypeAny, {
|
|
1177
|
-
name: string;
|
|
1178
1177
|
type: "tool_use";
|
|
1178
|
+
name: string;
|
|
1179
1179
|
id: string;
|
|
1180
1180
|
input: Record<string, any>;
|
|
1181
1181
|
cache_control?: {
|
|
1182
1182
|
type: "ephemeral";
|
|
1183
1183
|
} | undefined;
|
|
1184
1184
|
}, {
|
|
1185
|
-
name: string;
|
|
1186
1185
|
type: "tool_use";
|
|
1186
|
+
name: string;
|
|
1187
1187
|
id: string;
|
|
1188
1188
|
input: Record<string, any>;
|
|
1189
1189
|
cache_control?: {
|
|
@@ -1201,15 +1201,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1201
1201
|
type: "ephemeral";
|
|
1202
1202
|
}>>;
|
|
1203
1203
|
}, "strip", z.ZodTypeAny, {
|
|
1204
|
-
content: string;
|
|
1205
1204
|
type: "tool_result";
|
|
1205
|
+
content: string;
|
|
1206
1206
|
tool_use_id: string;
|
|
1207
1207
|
cache_control?: {
|
|
1208
1208
|
type: "ephemeral";
|
|
1209
1209
|
} | undefined;
|
|
1210
1210
|
}, {
|
|
1211
|
-
content: string;
|
|
1212
1211
|
type: "tool_result";
|
|
1212
|
+
content: string;
|
|
1213
1213
|
tool_use_id: string;
|
|
1214
1214
|
cache_control?: {
|
|
1215
1215
|
type: "ephemeral";
|
|
@@ -1221,13 +1221,13 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1221
1221
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1222
1222
|
data: z.ZodString;
|
|
1223
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1224
|
-
data: string;
|
|
1225
1224
|
type: "base64";
|
|
1226
1225
|
media_type: "image/jpeg";
|
|
1227
|
-
}, {
|
|
1228
1226
|
data: string;
|
|
1227
|
+
}, {
|
|
1229
1228
|
type: "base64";
|
|
1230
1229
|
media_type: "image/jpeg";
|
|
1230
|
+
data: string;
|
|
1231
1231
|
}>;
|
|
1232
1232
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1233
1233
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1239,9 +1239,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1239
1239
|
}, "strip", z.ZodTypeAny, {
|
|
1240
1240
|
type: "image";
|
|
1241
1241
|
source: {
|
|
1242
|
-
data: string;
|
|
1243
1242
|
type: "base64";
|
|
1244
1243
|
media_type: "image/jpeg";
|
|
1244
|
+
data: string;
|
|
1245
1245
|
};
|
|
1246
1246
|
cache_control?: {
|
|
1247
1247
|
type: "ephemeral";
|
|
@@ -1249,9 +1249,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1249
1249
|
}, {
|
|
1250
1250
|
type: "image";
|
|
1251
1251
|
source: {
|
|
1252
|
-
data: string;
|
|
1253
1252
|
type: "base64";
|
|
1254
1253
|
media_type: "image/jpeg";
|
|
1254
|
+
data: string;
|
|
1255
1255
|
};
|
|
1256
1256
|
cache_control?: {
|
|
1257
1257
|
type: "ephemeral";
|
|
@@ -1259,22 +1259,22 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1259
1259
|
}>]>, "many">]>;
|
|
1260
1260
|
}, "strip", z.ZodTypeAny, {
|
|
1261
1261
|
content: string | ({
|
|
1262
|
-
text: string;
|
|
1263
1262
|
type: "text";
|
|
1263
|
+
text: string;
|
|
1264
1264
|
cache_control?: {
|
|
1265
1265
|
type: "ephemeral";
|
|
1266
1266
|
} | undefined;
|
|
1267
1267
|
} | {
|
|
1268
|
-
name: string;
|
|
1269
1268
|
type: "tool_use";
|
|
1269
|
+
name: string;
|
|
1270
1270
|
id: string;
|
|
1271
1271
|
input: Record<string, any>;
|
|
1272
1272
|
cache_control?: {
|
|
1273
1273
|
type: "ephemeral";
|
|
1274
1274
|
} | undefined;
|
|
1275
1275
|
} | {
|
|
1276
|
-
content: string;
|
|
1277
1276
|
type: "tool_result";
|
|
1277
|
+
content: string;
|
|
1278
1278
|
tool_use_id: string;
|
|
1279
1279
|
cache_control?: {
|
|
1280
1280
|
type: "ephemeral";
|
|
@@ -1282,9 +1282,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1282
1282
|
} | {
|
|
1283
1283
|
type: "image";
|
|
1284
1284
|
source: {
|
|
1285
|
-
data: string;
|
|
1286
1285
|
type: "base64";
|
|
1287
1286
|
media_type: "image/jpeg";
|
|
1287
|
+
data: string;
|
|
1288
1288
|
};
|
|
1289
1289
|
cache_control?: {
|
|
1290
1290
|
type: "ephemeral";
|
|
@@ -1293,22 +1293,22 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1293
1293
|
role: "user" | "assistant";
|
|
1294
1294
|
}, {
|
|
1295
1295
|
content: string | ({
|
|
1296
|
-
text: string;
|
|
1297
1296
|
type: "text";
|
|
1297
|
+
text: string;
|
|
1298
1298
|
cache_control?: {
|
|
1299
1299
|
type: "ephemeral";
|
|
1300
1300
|
} | undefined;
|
|
1301
1301
|
} | {
|
|
1302
|
-
name: string;
|
|
1303
1302
|
type: "tool_use";
|
|
1303
|
+
name: string;
|
|
1304
1304
|
id: string;
|
|
1305
1305
|
input: Record<string, any>;
|
|
1306
1306
|
cache_control?: {
|
|
1307
1307
|
type: "ephemeral";
|
|
1308
1308
|
} | undefined;
|
|
1309
1309
|
} | {
|
|
1310
|
-
content: string;
|
|
1311
1310
|
type: "tool_result";
|
|
1311
|
+
content: string;
|
|
1312
1312
|
tool_use_id: string;
|
|
1313
1313
|
cache_control?: {
|
|
1314
1314
|
type: "ephemeral";
|
|
@@ -1316,9 +1316,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1316
1316
|
} | {
|
|
1317
1317
|
type: "image";
|
|
1318
1318
|
source: {
|
|
1319
|
-
data: string;
|
|
1320
1319
|
type: "base64";
|
|
1321
1320
|
media_type: "image/jpeg";
|
|
1321
|
+
data: string;
|
|
1322
1322
|
};
|
|
1323
1323
|
cache_control?: {
|
|
1324
1324
|
type: "ephemeral";
|
|
@@ -1352,28 +1352,28 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1352
1352
|
};
|
|
1353
1353
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1354
1354
|
fileVersions?: {
|
|
1355
|
-
content: string;
|
|
1356
1355
|
path: string;
|
|
1356
|
+
content: string;
|
|
1357
1357
|
}[][] | undefined;
|
|
1358
1358
|
};
|
|
1359
1359
|
messageHistory: {
|
|
1360
1360
|
content: string | ({
|
|
1361
|
-
text: string;
|
|
1362
1361
|
type: "text";
|
|
1362
|
+
text: string;
|
|
1363
1363
|
cache_control?: {
|
|
1364
1364
|
type: "ephemeral";
|
|
1365
1365
|
} | undefined;
|
|
1366
1366
|
} | {
|
|
1367
|
-
name: string;
|
|
1368
1367
|
type: "tool_use";
|
|
1368
|
+
name: string;
|
|
1369
1369
|
id: string;
|
|
1370
1370
|
input: Record<string, any>;
|
|
1371
1371
|
cache_control?: {
|
|
1372
1372
|
type: "ephemeral";
|
|
1373
1373
|
} | undefined;
|
|
1374
1374
|
} | {
|
|
1375
|
-
content: string;
|
|
1376
1375
|
type: "tool_result";
|
|
1376
|
+
content: string;
|
|
1377
1377
|
tool_use_id: string;
|
|
1378
1378
|
cache_control?: {
|
|
1379
1379
|
type: "ephemeral";
|
|
@@ -1381,9 +1381,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1381
1381
|
} | {
|
|
1382
1382
|
type: "image";
|
|
1383
1383
|
source: {
|
|
1384
|
-
data: string;
|
|
1385
1384
|
type: "base64";
|
|
1386
1385
|
media_type: "image/jpeg";
|
|
1386
|
+
data: string;
|
|
1387
1387
|
};
|
|
1388
1388
|
cache_control?: {
|
|
1389
1389
|
type: "ephemeral";
|
|
@@ -1417,28 +1417,28 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1417
1417
|
};
|
|
1418
1418
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1419
1419
|
fileVersions?: {
|
|
1420
|
-
content: string;
|
|
1421
1420
|
path: string;
|
|
1421
|
+
content: string;
|
|
1422
1422
|
}[][] | undefined;
|
|
1423
1423
|
};
|
|
1424
1424
|
messageHistory: {
|
|
1425
1425
|
content: string | ({
|
|
1426
|
-
text: string;
|
|
1427
1426
|
type: "text";
|
|
1427
|
+
text: string;
|
|
1428
1428
|
cache_control?: {
|
|
1429
1429
|
type: "ephemeral";
|
|
1430
1430
|
} | undefined;
|
|
1431
1431
|
} | {
|
|
1432
|
-
name: string;
|
|
1433
1432
|
type: "tool_use";
|
|
1433
|
+
name: string;
|
|
1434
1434
|
id: string;
|
|
1435
1435
|
input: Record<string, any>;
|
|
1436
1436
|
cache_control?: {
|
|
1437
1437
|
type: "ephemeral";
|
|
1438
1438
|
} | undefined;
|
|
1439
1439
|
} | {
|
|
1440
|
-
content: string;
|
|
1441
1440
|
type: "tool_result";
|
|
1441
|
+
content: string;
|
|
1442
1442
|
tool_use_id: string;
|
|
1443
1443
|
cache_control?: {
|
|
1444
1444
|
type: "ephemeral";
|
|
@@ -1446,9 +1446,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1446
1446
|
} | {
|
|
1447
1447
|
type: "image";
|
|
1448
1448
|
source: {
|
|
1449
|
-
data: string;
|
|
1450
1449
|
type: "base64";
|
|
1451
1450
|
media_type: "image/jpeg";
|
|
1451
|
+
data: string;
|
|
1452
1452
|
};
|
|
1453
1453
|
cache_control?: {
|
|
1454
1454
|
type: "ephemeral";
|
|
@@ -1512,28 +1512,28 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1512
1512
|
};
|
|
1513
1513
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1514
1514
|
fileVersions?: {
|
|
1515
|
-
content: string;
|
|
1516
1515
|
path: string;
|
|
1516
|
+
content: string;
|
|
1517
1517
|
}[][] | undefined;
|
|
1518
1518
|
};
|
|
1519
1519
|
messageHistory: {
|
|
1520
1520
|
content: string | ({
|
|
1521
|
-
text: string;
|
|
1522
1521
|
type: "text";
|
|
1522
|
+
text: string;
|
|
1523
1523
|
cache_control?: {
|
|
1524
1524
|
type: "ephemeral";
|
|
1525
1525
|
} | undefined;
|
|
1526
1526
|
} | {
|
|
1527
|
-
name: string;
|
|
1528
1527
|
type: "tool_use";
|
|
1528
|
+
name: string;
|
|
1529
1529
|
id: string;
|
|
1530
1530
|
input: Record<string, any>;
|
|
1531
1531
|
cache_control?: {
|
|
1532
1532
|
type: "ephemeral";
|
|
1533
1533
|
} | undefined;
|
|
1534
1534
|
} | {
|
|
1535
|
-
content: string;
|
|
1536
1535
|
type: "tool_result";
|
|
1536
|
+
content: string;
|
|
1537
1537
|
tool_use_id: string;
|
|
1538
1538
|
cache_control?: {
|
|
1539
1539
|
type: "ephemeral";
|
|
@@ -1541,9 +1541,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1541
1541
|
} | {
|
|
1542
1542
|
type: "image";
|
|
1543
1543
|
source: {
|
|
1544
|
-
data: string;
|
|
1545
1544
|
type: "base64";
|
|
1546
1545
|
media_type: "image/jpeg";
|
|
1546
|
+
data: string;
|
|
1547
1547
|
};
|
|
1548
1548
|
cache_control?: {
|
|
1549
1549
|
type: "ephemeral";
|
|
@@ -1591,28 +1591,28 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1591
1591
|
};
|
|
1592
1592
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1593
1593
|
fileVersions?: {
|
|
1594
|
-
content: string;
|
|
1595
1594
|
path: string;
|
|
1595
|
+
content: string;
|
|
1596
1596
|
}[][] | undefined;
|
|
1597
1597
|
};
|
|
1598
1598
|
messageHistory: {
|
|
1599
1599
|
content: string | ({
|
|
1600
|
-
text: string;
|
|
1601
1600
|
type: "text";
|
|
1601
|
+
text: string;
|
|
1602
1602
|
cache_control?: {
|
|
1603
1603
|
type: "ephemeral";
|
|
1604
1604
|
} | undefined;
|
|
1605
1605
|
} | {
|
|
1606
|
-
name: string;
|
|
1607
1606
|
type: "tool_use";
|
|
1607
|
+
name: string;
|
|
1608
1608
|
id: string;
|
|
1609
1609
|
input: Record<string, any>;
|
|
1610
1610
|
cache_control?: {
|
|
1611
1611
|
type: "ephemeral";
|
|
1612
1612
|
} | undefined;
|
|
1613
1613
|
} | {
|
|
1614
|
-
content: string;
|
|
1615
1614
|
type: "tool_result";
|
|
1615
|
+
content: string;
|
|
1616
1616
|
tool_use_id: string;
|
|
1617
1617
|
cache_control?: {
|
|
1618
1618
|
type: "ephemeral";
|
|
@@ -1620,9 +1620,9 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1620
1620
|
} | {
|
|
1621
1621
|
type: "image";
|
|
1622
1622
|
source: {
|
|
1623
|
-
data: string;
|
|
1624
1623
|
type: "base64";
|
|
1625
1624
|
media_type: "image/jpeg";
|
|
1625
|
+
data: string;
|
|
1626
1626
|
};
|
|
1627
1627
|
cache_control?: {
|
|
1628
1628
|
type: "ephemeral";
|
|
@@ -1665,36 +1665,36 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1665
1665
|
path: z.ZodString;
|
|
1666
1666
|
content: z.ZodString;
|
|
1667
1667
|
}, "strip", z.ZodTypeAny, {
|
|
1668
|
-
content: string;
|
|
1669
1668
|
type: "patch" | "file";
|
|
1670
1669
|
path: string;
|
|
1671
|
-
}, {
|
|
1672
1670
|
content: string;
|
|
1671
|
+
}, {
|
|
1673
1672
|
type: "patch" | "file";
|
|
1674
1673
|
path: string;
|
|
1674
|
+
content: string;
|
|
1675
1675
|
}>, "many">;
|
|
1676
1676
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1677
1677
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1678
1678
|
path: z.ZodString;
|
|
1679
1679
|
content: z.ZodString;
|
|
1680
1680
|
}, "strip", z.ZodTypeAny, {
|
|
1681
|
-
content: string;
|
|
1682
1681
|
type: "patch" | "file";
|
|
1683
1682
|
path: string;
|
|
1684
|
-
}, {
|
|
1685
1683
|
content: string;
|
|
1684
|
+
}, {
|
|
1686
1685
|
type: "patch" | "file";
|
|
1687
1686
|
path: string;
|
|
1687
|
+
content: string;
|
|
1688
1688
|
}>, "many">;
|
|
1689
1689
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1690
1690
|
path: z.ZodString;
|
|
1691
1691
|
content: z.ZodString;
|
|
1692
1692
|
}, "strip", z.ZodTypeAny, {
|
|
1693
|
-
content: string;
|
|
1694
1693
|
path: string;
|
|
1695
|
-
}, {
|
|
1696
1694
|
content: string;
|
|
1695
|
+
}, {
|
|
1697
1696
|
path: string;
|
|
1697
|
+
content: string;
|
|
1698
1698
|
}>, "many">;
|
|
1699
1699
|
resetFileVersions: z.ZodBoolean;
|
|
1700
1700
|
}, {
|
|
@@ -1709,18 +1709,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1709
1709
|
userInputId: string;
|
|
1710
1710
|
response: string;
|
|
1711
1711
|
changes: {
|
|
1712
|
-
content: string;
|
|
1713
1712
|
type: "patch" | "file";
|
|
1714
1713
|
path: string;
|
|
1714
|
+
content: string;
|
|
1715
1715
|
}[];
|
|
1716
1716
|
changesAlreadyApplied: {
|
|
1717
|
-
content: string;
|
|
1718
1717
|
type: "patch" | "file";
|
|
1719
1718
|
path: string;
|
|
1719
|
+
content: string;
|
|
1720
1720
|
}[];
|
|
1721
1721
|
addedFileVersions: {
|
|
1722
|
-
content: string;
|
|
1723
1722
|
path: string;
|
|
1723
|
+
content: string;
|
|
1724
1724
|
}[];
|
|
1725
1725
|
resetFileVersions: boolean;
|
|
1726
1726
|
usage?: number | undefined;
|
|
@@ -1734,18 +1734,18 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1734
1734
|
userInputId: string;
|
|
1735
1735
|
response: string;
|
|
1736
1736
|
changes: {
|
|
1737
|
-
content: string;
|
|
1738
1737
|
type: "patch" | "file";
|
|
1739
1738
|
path: string;
|
|
1739
|
+
content: string;
|
|
1740
1740
|
}[];
|
|
1741
1741
|
changesAlreadyApplied: {
|
|
1742
|
-
content: string;
|
|
1743
1742
|
type: "patch" | "file";
|
|
1744
1743
|
path: string;
|
|
1744
|
+
content: string;
|
|
1745
1745
|
}[];
|
|
1746
1746
|
addedFileVersions: {
|
|
1747
|
-
content: string;
|
|
1748
1747
|
path: string;
|
|
1748
|
+
content: string;
|
|
1749
1749
|
}[];
|
|
1750
1750
|
resetFileVersions: boolean;
|
|
1751
1751
|
usage?: number | undefined;
|
|
@@ -1809,11 +1809,11 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1809
1809
|
path: z.ZodString;
|
|
1810
1810
|
content: z.ZodString;
|
|
1811
1811
|
}, "strip", z.ZodTypeAny, {
|
|
1812
|
-
content: string;
|
|
1813
1812
|
path: string;
|
|
1814
|
-
}, {
|
|
1815
1813
|
content: string;
|
|
1814
|
+
}, {
|
|
1816
1815
|
path: string;
|
|
1816
|
+
content: string;
|
|
1817
1817
|
}>, "many">, "many">>;
|
|
1818
1818
|
}, "strip", z.ZodTypeAny, {
|
|
1819
1819
|
currentWorkingDirectory: string;
|
|
@@ -1838,8 +1838,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1838
1838
|
};
|
|
1839
1839
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1840
1840
|
fileVersions?: {
|
|
1841
|
-
content: string;
|
|
1842
1841
|
path: string;
|
|
1842
|
+
content: string;
|
|
1843
1843
|
}[][] | undefined;
|
|
1844
1844
|
}, {
|
|
1845
1845
|
currentWorkingDirectory: string;
|
|
@@ -1864,8 +1864,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1864
1864
|
};
|
|
1865
1865
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1866
1866
|
fileVersions?: {
|
|
1867
|
-
content: string;
|
|
1868
1867
|
path: string;
|
|
1868
|
+
content: string;
|
|
1869
1869
|
}[][] | undefined;
|
|
1870
1870
|
}>;
|
|
1871
1871
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -1881,14 +1881,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1881
1881
|
type: "ephemeral";
|
|
1882
1882
|
}>>;
|
|
1883
1883
|
}, "strip", z.ZodTypeAny, {
|
|
1884
|
-
text: string;
|
|
1885
1884
|
type: "text";
|
|
1885
|
+
text: string;
|
|
1886
1886
|
cache_control?: {
|
|
1887
1887
|
type: "ephemeral";
|
|
1888
1888
|
} | undefined;
|
|
1889
1889
|
}, {
|
|
1890
|
-
text: string;
|
|
1891
1890
|
type: "text";
|
|
1891
|
+
text: string;
|
|
1892
1892
|
cache_control?: {
|
|
1893
1893
|
type: "ephemeral";
|
|
1894
1894
|
} | undefined;
|
|
@@ -1905,16 +1905,16 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1905
1905
|
type: "ephemeral";
|
|
1906
1906
|
}>>;
|
|
1907
1907
|
}, "strip", z.ZodTypeAny, {
|
|
1908
|
-
name: string;
|
|
1909
1908
|
type: "tool_use";
|
|
1909
|
+
name: string;
|
|
1910
1910
|
id: string;
|
|
1911
1911
|
input: Record<string, any>;
|
|
1912
1912
|
cache_control?: {
|
|
1913
1913
|
type: "ephemeral";
|
|
1914
1914
|
} | undefined;
|
|
1915
1915
|
}, {
|
|
1916
|
-
name: string;
|
|
1917
1916
|
type: "tool_use";
|
|
1917
|
+
name: string;
|
|
1918
1918
|
id: string;
|
|
1919
1919
|
input: Record<string, any>;
|
|
1920
1920
|
cache_control?: {
|
|
@@ -1932,15 +1932,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1932
1932
|
type: "ephemeral";
|
|
1933
1933
|
}>>;
|
|
1934
1934
|
}, "strip", z.ZodTypeAny, {
|
|
1935
|
-
content: string;
|
|
1936
1935
|
type: "tool_result";
|
|
1936
|
+
content: string;
|
|
1937
1937
|
tool_use_id: string;
|
|
1938
1938
|
cache_control?: {
|
|
1939
1939
|
type: "ephemeral";
|
|
1940
1940
|
} | undefined;
|
|
1941
1941
|
}, {
|
|
1942
|
-
content: string;
|
|
1943
1942
|
type: "tool_result";
|
|
1943
|
+
content: string;
|
|
1944
1944
|
tool_use_id: string;
|
|
1945
1945
|
cache_control?: {
|
|
1946
1946
|
type: "ephemeral";
|
|
@@ -1952,13 +1952,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1952
1952
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1953
1953
|
data: z.ZodString;
|
|
1954
1954
|
}, "strip", z.ZodTypeAny, {
|
|
1955
|
-
data: string;
|
|
1956
1955
|
type: "base64";
|
|
1957
1956
|
media_type: "image/jpeg";
|
|
1958
|
-
}, {
|
|
1959
1957
|
data: string;
|
|
1958
|
+
}, {
|
|
1960
1959
|
type: "base64";
|
|
1961
1960
|
media_type: "image/jpeg";
|
|
1961
|
+
data: string;
|
|
1962
1962
|
}>;
|
|
1963
1963
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1964
1964
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1970,9 +1970,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1970
1970
|
}, "strip", z.ZodTypeAny, {
|
|
1971
1971
|
type: "image";
|
|
1972
1972
|
source: {
|
|
1973
|
-
data: string;
|
|
1974
1973
|
type: "base64";
|
|
1975
1974
|
media_type: "image/jpeg";
|
|
1975
|
+
data: string;
|
|
1976
1976
|
};
|
|
1977
1977
|
cache_control?: {
|
|
1978
1978
|
type: "ephemeral";
|
|
@@ -1980,9 +1980,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1980
1980
|
}, {
|
|
1981
1981
|
type: "image";
|
|
1982
1982
|
source: {
|
|
1983
|
-
data: string;
|
|
1984
1983
|
type: "base64";
|
|
1985
1984
|
media_type: "image/jpeg";
|
|
1985
|
+
data: string;
|
|
1986
1986
|
};
|
|
1987
1987
|
cache_control?: {
|
|
1988
1988
|
type: "ephemeral";
|
|
@@ -1990,22 +1990,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1990
1990
|
}>]>, "many">]>;
|
|
1991
1991
|
}, "strip", z.ZodTypeAny, {
|
|
1992
1992
|
content: string | ({
|
|
1993
|
-
text: string;
|
|
1994
1993
|
type: "text";
|
|
1994
|
+
text: string;
|
|
1995
1995
|
cache_control?: {
|
|
1996
1996
|
type: "ephemeral";
|
|
1997
1997
|
} | undefined;
|
|
1998
1998
|
} | {
|
|
1999
|
-
name: string;
|
|
2000
1999
|
type: "tool_use";
|
|
2000
|
+
name: string;
|
|
2001
2001
|
id: string;
|
|
2002
2002
|
input: Record<string, any>;
|
|
2003
2003
|
cache_control?: {
|
|
2004
2004
|
type: "ephemeral";
|
|
2005
2005
|
} | undefined;
|
|
2006
2006
|
} | {
|
|
2007
|
-
content: string;
|
|
2008
2007
|
type: "tool_result";
|
|
2008
|
+
content: string;
|
|
2009
2009
|
tool_use_id: string;
|
|
2010
2010
|
cache_control?: {
|
|
2011
2011
|
type: "ephemeral";
|
|
@@ -2013,9 +2013,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2013
2013
|
} | {
|
|
2014
2014
|
type: "image";
|
|
2015
2015
|
source: {
|
|
2016
|
-
data: string;
|
|
2017
2016
|
type: "base64";
|
|
2018
2017
|
media_type: "image/jpeg";
|
|
2018
|
+
data: string;
|
|
2019
2019
|
};
|
|
2020
2020
|
cache_control?: {
|
|
2021
2021
|
type: "ephemeral";
|
|
@@ -2024,22 +2024,22 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2024
2024
|
role: "user" | "assistant";
|
|
2025
2025
|
}, {
|
|
2026
2026
|
content: string | ({
|
|
2027
|
-
text: string;
|
|
2028
2027
|
type: "text";
|
|
2028
|
+
text: string;
|
|
2029
2029
|
cache_control?: {
|
|
2030
2030
|
type: "ephemeral";
|
|
2031
2031
|
} | undefined;
|
|
2032
2032
|
} | {
|
|
2033
|
-
name: string;
|
|
2034
2033
|
type: "tool_use";
|
|
2034
|
+
name: string;
|
|
2035
2035
|
id: string;
|
|
2036
2036
|
input: Record<string, any>;
|
|
2037
2037
|
cache_control?: {
|
|
2038
2038
|
type: "ephemeral";
|
|
2039
2039
|
} | undefined;
|
|
2040
2040
|
} | {
|
|
2041
|
-
content: string;
|
|
2042
2041
|
type: "tool_result";
|
|
2042
|
+
content: string;
|
|
2043
2043
|
tool_use_id: string;
|
|
2044
2044
|
cache_control?: {
|
|
2045
2045
|
type: "ephemeral";
|
|
@@ -2047,9 +2047,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2047
2047
|
} | {
|
|
2048
2048
|
type: "image";
|
|
2049
2049
|
source: {
|
|
2050
|
-
data: string;
|
|
2051
2050
|
type: "base64";
|
|
2052
2051
|
media_type: "image/jpeg";
|
|
2052
|
+
data: string;
|
|
2053
2053
|
};
|
|
2054
2054
|
cache_control?: {
|
|
2055
2055
|
type: "ephemeral";
|
|
@@ -2083,28 +2083,28 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2083
2083
|
};
|
|
2084
2084
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2085
2085
|
fileVersions?: {
|
|
2086
|
-
content: string;
|
|
2087
2086
|
path: string;
|
|
2087
|
+
content: string;
|
|
2088
2088
|
}[][] | undefined;
|
|
2089
2089
|
};
|
|
2090
2090
|
messageHistory: {
|
|
2091
2091
|
content: string | ({
|
|
2092
|
-
text: string;
|
|
2093
2092
|
type: "text";
|
|
2093
|
+
text: string;
|
|
2094
2094
|
cache_control?: {
|
|
2095
2095
|
type: "ephemeral";
|
|
2096
2096
|
} | undefined;
|
|
2097
2097
|
} | {
|
|
2098
|
-
name: string;
|
|
2099
2098
|
type: "tool_use";
|
|
2099
|
+
name: string;
|
|
2100
2100
|
id: string;
|
|
2101
2101
|
input: Record<string, any>;
|
|
2102
2102
|
cache_control?: {
|
|
2103
2103
|
type: "ephemeral";
|
|
2104
2104
|
} | undefined;
|
|
2105
2105
|
} | {
|
|
2106
|
-
content: string;
|
|
2107
2106
|
type: "tool_result";
|
|
2107
|
+
content: string;
|
|
2108
2108
|
tool_use_id: string;
|
|
2109
2109
|
cache_control?: {
|
|
2110
2110
|
type: "ephemeral";
|
|
@@ -2112,9 +2112,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2112
2112
|
} | {
|
|
2113
2113
|
type: "image";
|
|
2114
2114
|
source: {
|
|
2115
|
-
data: string;
|
|
2116
2115
|
type: "base64";
|
|
2117
2116
|
media_type: "image/jpeg";
|
|
2117
|
+
data: string;
|
|
2118
2118
|
};
|
|
2119
2119
|
cache_control?: {
|
|
2120
2120
|
type: "ephemeral";
|
|
@@ -2148,28 +2148,28 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2148
2148
|
};
|
|
2149
2149
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2150
2150
|
fileVersions?: {
|
|
2151
|
-
content: string;
|
|
2152
2151
|
path: string;
|
|
2152
|
+
content: string;
|
|
2153
2153
|
}[][] | undefined;
|
|
2154
2154
|
};
|
|
2155
2155
|
messageHistory: {
|
|
2156
2156
|
content: string | ({
|
|
2157
|
-
text: string;
|
|
2158
2157
|
type: "text";
|
|
2158
|
+
text: string;
|
|
2159
2159
|
cache_control?: {
|
|
2160
2160
|
type: "ephemeral";
|
|
2161
2161
|
} | undefined;
|
|
2162
2162
|
} | {
|
|
2163
|
-
name: string;
|
|
2164
2163
|
type: "tool_use";
|
|
2164
|
+
name: string;
|
|
2165
2165
|
id: string;
|
|
2166
2166
|
input: Record<string, any>;
|
|
2167
2167
|
cache_control?: {
|
|
2168
2168
|
type: "ephemeral";
|
|
2169
2169
|
} | undefined;
|
|
2170
2170
|
} | {
|
|
2171
|
-
content: string;
|
|
2172
2171
|
type: "tool_result";
|
|
2172
|
+
content: string;
|
|
2173
2173
|
tool_use_id: string;
|
|
2174
2174
|
cache_control?: {
|
|
2175
2175
|
type: "ephemeral";
|
|
@@ -2177,9 +2177,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2177
2177
|
} | {
|
|
2178
2178
|
type: "image";
|
|
2179
2179
|
source: {
|
|
2180
|
-
data: string;
|
|
2181
2180
|
type: "base64";
|
|
2182
2181
|
media_type: "image/jpeg";
|
|
2182
|
+
data: string;
|
|
2183
2183
|
};
|
|
2184
2184
|
cache_control?: {
|
|
2185
2185
|
type: "ephemeral";
|
|
@@ -2243,28 +2243,28 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2243
2243
|
};
|
|
2244
2244
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2245
2245
|
fileVersions?: {
|
|
2246
|
-
content: string;
|
|
2247
2246
|
path: string;
|
|
2247
|
+
content: string;
|
|
2248
2248
|
}[][] | undefined;
|
|
2249
2249
|
};
|
|
2250
2250
|
messageHistory: {
|
|
2251
2251
|
content: string | ({
|
|
2252
|
-
text: string;
|
|
2253
2252
|
type: "text";
|
|
2253
|
+
text: string;
|
|
2254
2254
|
cache_control?: {
|
|
2255
2255
|
type: "ephemeral";
|
|
2256
2256
|
} | undefined;
|
|
2257
2257
|
} | {
|
|
2258
|
-
name: string;
|
|
2259
2258
|
type: "tool_use";
|
|
2259
|
+
name: string;
|
|
2260
2260
|
id: string;
|
|
2261
2261
|
input: Record<string, any>;
|
|
2262
2262
|
cache_control?: {
|
|
2263
2263
|
type: "ephemeral";
|
|
2264
2264
|
} | undefined;
|
|
2265
2265
|
} | {
|
|
2266
|
-
content: string;
|
|
2267
2266
|
type: "tool_result";
|
|
2267
|
+
content: string;
|
|
2268
2268
|
tool_use_id: string;
|
|
2269
2269
|
cache_control?: {
|
|
2270
2270
|
type: "ephemeral";
|
|
@@ -2272,9 +2272,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2272
2272
|
} | {
|
|
2273
2273
|
type: "image";
|
|
2274
2274
|
source: {
|
|
2275
|
-
data: string;
|
|
2276
2275
|
type: "base64";
|
|
2277
2276
|
media_type: "image/jpeg";
|
|
2277
|
+
data: string;
|
|
2278
2278
|
};
|
|
2279
2279
|
cache_control?: {
|
|
2280
2280
|
type: "ephemeral";
|
|
@@ -2322,28 +2322,28 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2322
2322
|
};
|
|
2323
2323
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2324
2324
|
fileVersions?: {
|
|
2325
|
-
content: string;
|
|
2326
2325
|
path: string;
|
|
2326
|
+
content: string;
|
|
2327
2327
|
}[][] | undefined;
|
|
2328
2328
|
};
|
|
2329
2329
|
messageHistory: {
|
|
2330
2330
|
content: string | ({
|
|
2331
|
-
text: string;
|
|
2332
2331
|
type: "text";
|
|
2332
|
+
text: string;
|
|
2333
2333
|
cache_control?: {
|
|
2334
2334
|
type: "ephemeral";
|
|
2335
2335
|
} | undefined;
|
|
2336
2336
|
} | {
|
|
2337
|
-
name: string;
|
|
2338
2337
|
type: "tool_use";
|
|
2338
|
+
name: string;
|
|
2339
2339
|
id: string;
|
|
2340
2340
|
input: Record<string, any>;
|
|
2341
2341
|
cache_control?: {
|
|
2342
2342
|
type: "ephemeral";
|
|
2343
2343
|
} | undefined;
|
|
2344
2344
|
} | {
|
|
2345
|
-
content: string;
|
|
2346
2345
|
type: "tool_result";
|
|
2346
|
+
content: string;
|
|
2347
2347
|
tool_use_id: string;
|
|
2348
2348
|
cache_control?: {
|
|
2349
2349
|
type: "ephemeral";
|
|
@@ -2351,9 +2351,9 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2351
2351
|
} | {
|
|
2352
2352
|
type: "image";
|
|
2353
2353
|
source: {
|
|
2354
|
-
data: string;
|
|
2355
2354
|
type: "base64";
|
|
2356
2355
|
media_type: "image/jpeg";
|
|
2356
|
+
data: string;
|
|
2357
2357
|
};
|
|
2358
2358
|
cache_control?: {
|
|
2359
2359
|
type: "ephemeral";
|
|
@@ -2407,84 +2407,84 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2407
2407
|
path: z.ZodString;
|
|
2408
2408
|
content: z.ZodString;
|
|
2409
2409
|
}, "strip", z.ZodTypeAny, {
|
|
2410
|
-
content: string;
|
|
2411
2410
|
type: "patch" | "file";
|
|
2412
2411
|
path: string;
|
|
2413
|
-
}, {
|
|
2414
2412
|
content: string;
|
|
2413
|
+
}, {
|
|
2415
2414
|
type: "patch" | "file";
|
|
2416
2415
|
path: string;
|
|
2416
|
+
content: string;
|
|
2417
2417
|
}>, "many">;
|
|
2418
2418
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2419
2419
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2420
2420
|
path: z.ZodString;
|
|
2421
2421
|
content: z.ZodString;
|
|
2422
2422
|
}, "strip", z.ZodTypeAny, {
|
|
2423
|
-
content: string;
|
|
2424
2423
|
type: "patch" | "file";
|
|
2425
2424
|
path: string;
|
|
2426
|
-
}, {
|
|
2427
2425
|
content: string;
|
|
2426
|
+
}, {
|
|
2428
2427
|
type: "patch" | "file";
|
|
2429
2428
|
path: string;
|
|
2429
|
+
content: string;
|
|
2430
2430
|
}>, "many">;
|
|
2431
2431
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2432
2432
|
path: z.ZodString;
|
|
2433
2433
|
content: z.ZodString;
|
|
2434
2434
|
}, "strip", z.ZodTypeAny, {
|
|
2435
|
-
content: string;
|
|
2436
2435
|
path: string;
|
|
2437
|
-
}, {
|
|
2438
2436
|
content: string;
|
|
2437
|
+
}, {
|
|
2439
2438
|
path: string;
|
|
2439
|
+
content: string;
|
|
2440
2440
|
}>, "many">;
|
|
2441
2441
|
resetFileVersions: z.ZodBoolean;
|
|
2442
2442
|
}, "strip", z.ZodTypeAny, {
|
|
2443
|
+
type: "tool-call";
|
|
2443
2444
|
data: {
|
|
2444
2445
|
name: string;
|
|
2445
2446
|
id: string;
|
|
2446
2447
|
input: Record<string, any>;
|
|
2447
2448
|
};
|
|
2448
|
-
type: "tool-call";
|
|
2449
2449
|
userInputId: string;
|
|
2450
2450
|
response: string;
|
|
2451
2451
|
changes: {
|
|
2452
|
-
content: string;
|
|
2453
2452
|
type: "patch" | "file";
|
|
2454
2453
|
path: string;
|
|
2454
|
+
content: string;
|
|
2455
2455
|
}[];
|
|
2456
2456
|
changesAlreadyApplied: {
|
|
2457
|
-
content: string;
|
|
2458
2457
|
type: "patch" | "file";
|
|
2459
2458
|
path: string;
|
|
2459
|
+
content: string;
|
|
2460
2460
|
}[];
|
|
2461
2461
|
addedFileVersions: {
|
|
2462
|
-
content: string;
|
|
2463
2462
|
path: string;
|
|
2463
|
+
content: string;
|
|
2464
2464
|
}[];
|
|
2465
2465
|
resetFileVersions: boolean;
|
|
2466
2466
|
}, {
|
|
2467
|
+
type: "tool-call";
|
|
2467
2468
|
data: {
|
|
2468
2469
|
name: string;
|
|
2469
2470
|
id: string;
|
|
2470
2471
|
input: Record<string, any>;
|
|
2471
2472
|
};
|
|
2472
|
-
type: "tool-call";
|
|
2473
2473
|
userInputId: string;
|
|
2474
2474
|
response: string;
|
|
2475
2475
|
changes: {
|
|
2476
|
-
content: string;
|
|
2477
2476
|
type: "patch" | "file";
|
|
2478
2477
|
path: string;
|
|
2478
|
+
content: string;
|
|
2479
2479
|
}[];
|
|
2480
2480
|
changesAlreadyApplied: {
|
|
2481
|
-
content: string;
|
|
2482
2481
|
type: "patch" | "file";
|
|
2483
2482
|
path: string;
|
|
2483
|
+
content: string;
|
|
2484
2484
|
}[];
|
|
2485
2485
|
addedFileVersions: {
|
|
2486
|
-
content: string;
|
|
2487
2486
|
path: string;
|
|
2487
|
+
content: string;
|
|
2488
2488
|
}[];
|
|
2489
2489
|
resetFileVersions: boolean;
|
|
2490
2490
|
}>, z.ZodObject<{
|
|
@@ -2581,13 +2581,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2581
2581
|
}, "strip", z.ZodTypeAny, {
|
|
2582
2582
|
type: "action-error";
|
|
2583
2583
|
message: string;
|
|
2584
|
-
error?: string | undefined;
|
|
2585
2584
|
remainingBalance?: number | undefined;
|
|
2585
|
+
error?: string | undefined;
|
|
2586
2586
|
}, {
|
|
2587
2587
|
type: "action-error";
|
|
2588
2588
|
message: string;
|
|
2589
|
-
error?: string | undefined;
|
|
2590
2589
|
remainingBalance?: number | undefined;
|
|
2590
|
+
error?: string | undefined;
|
|
2591
2591
|
}>, z.ZodObject<{
|
|
2592
2592
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2593
2593
|
commitMessage: z.ZodString;
|