codecane 1.0.321 → 1.0.323
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/README.md +6 -24
- package/dist/background-process-manager.js +5 -0
- package/dist/background-process-manager.js.map +1 -1
- package/dist/browser-runner.js +12 -3
- package/dist/browser-runner.js.map +1 -1
- package/dist/chat-storage.d.ts +2 -2
- package/dist/chat-storage.js +35 -30
- package/dist/chat-storage.js.map +1 -1
- package/dist/checkpoints/checkpoint-manager.js +6 -0
- package/dist/checkpoints/checkpoint-manager.js.map +1 -1
- package/dist/checkpoints/file-manager.js +52 -8
- package/dist/checkpoints/file-manager.js.map +1 -1
- package/dist/cli-definitions.js +6 -0
- package/dist/cli-definitions.js.map +1 -1
- package/dist/cli-handlers/checkpoint.js +25 -0
- package/dist/cli-handlers/checkpoint.js.map +1 -1
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +179 -29
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +7 -83
- package/dist/client.js +152 -6
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +72 -984
- package/dist/common/actions.js +1 -0
- package/dist/common/actions.js.map +1 -1
- package/dist/common/analytics.d.ts +1 -0
- package/dist/common/analytics.js +22 -5
- package/dist/common/analytics.js.map +1 -1
- package/dist/common/constants.d.ts +11 -2
- package/dist/common/constants.js +24 -3
- package/dist/common/constants.js.map +1 -1
- package/dist/common/json-config/constants.d.ts +55 -0
- package/dist/common/json-config/constants.js +30 -1
- package/dist/common/json-config/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +14 -257
- package/dist/common/types/agent-state.js +3 -1
- package/dist/common/types/agent-state.js.map +1 -1
- package/dist/common/types/message.d.ts +8 -0
- package/dist/common/types/message.js +7 -1
- package/dist/common/types/message.js.map +1 -1
- package/dist/common/util/__tests__/saxy.test.js +162 -2
- package/dist/common/util/__tests__/saxy.test.js.map +1 -1
- package/dist/common/util/changes.d.ts +1 -0
- package/dist/common/util/changes.js +13 -4
- package/dist/common/util/changes.js.map +1 -1
- package/dist/common/util/messages.d.ts +4 -2
- package/dist/common/util/messages.js +15 -3
- package/dist/common/util/messages.js.map +1 -1
- package/dist/common/util/promise.d.ts +0 -1
- package/dist/common/util/promise.js +1 -30
- package/dist/common/util/promise.js.map +1 -1
- package/dist/common/util/saxy.d.ts +2 -1
- package/dist/common/util/saxy.js +18 -21
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +140 -1598
- package/dist/create-template-project.js +24 -0
- package/dist/create-template-project.js.map +1 -1
- package/dist/credentials.js +8 -2
- package/dist/credentials.js.map +1 -1
- package/dist/dev-process-manager.js +2 -1
- package/dist/dev-process-manager.js.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/json-config/hooks.d.ts +6 -0
- package/dist/json-config/hooks.js +58 -0
- package/dist/json-config/hooks.js.map +1 -0
- package/dist/json-config/parser.d.ts +7 -0
- package/dist/json-config/parser.js +53 -0
- package/dist/json-config/parser.js.map +1 -0
- package/dist/json-config-parser.d.ts +7 -0
- package/dist/json-config-parser.js +53 -0
- package/dist/json-config-parser.js.map +1 -0
- package/dist/menu.js +69 -21
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +3 -2
- package/dist/project-files.js +63 -8
- package/dist/project-files.js.map +1 -1
- package/dist/startup-process-handler.d.ts +1 -2
- package/dist/startup-process-handler.js +5 -1
- package/dist/startup-process-handler.js.map +1 -1
- package/dist/tool-handlers.js +25 -3
- package/dist/tool-handlers.js.map +1 -1
- package/dist/update-codebuff.js +6 -3
- package/dist/update-codebuff.js.map +1 -1
- package/dist/utils/analytics.d.ts +1 -0
- package/dist/utils/analytics.js +21 -4
- package/dist/utils/analytics.js.map +1 -1
- package/dist/utils/detect-shell.js +7 -2
- package/dist/utils/detect-shell.js.map +1 -1
- package/dist/utils/git.d.ts +8 -0
- package/dist/utils/git.js +78 -1
- package/dist/utils/git.js.map +1 -1
- package/dist/utils/logger.js +13 -6
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/terminal.d.ts +4 -2
- package/dist/utils/terminal.js +8 -4
- package/dist/utils/terminal.js.map +1 -1
- package/dist/web-scraper.js +6 -4
- package/dist/web-scraper.js.map +1 -1
- package/dist/workers/checkpoint-worker.js +1 -0
- package/dist/workers/checkpoint-worker.js.map +1 -1
- package/package.json +8 -4
|
@@ -58,7 +58,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
58
58
|
prompt: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
59
59
|
fingerprintId: z.ZodString;
|
|
60
60
|
authToken: z.ZodOptional<z.ZodString>;
|
|
61
|
-
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max", "experimental"]>>>;
|
|
61
|
+
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max", "experimental", "ask"]>>>;
|
|
62
62
|
agentState: z.ZodObject<{
|
|
63
63
|
agentContext: z.ZodString;
|
|
64
64
|
fileContext: z.ZodObject<{
|
|
@@ -173,196 +173,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
173
173
|
content: string;
|
|
174
174
|
}[][] | undefined;
|
|
175
175
|
}>;
|
|
176
|
-
messageHistory: z.ZodArray<z.ZodObject<{
|
|
177
|
-
|
|
178
|
-
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
179
|
-
type: z.ZodLiteral<"text">;
|
|
180
|
-
text: z.ZodString;
|
|
181
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
182
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
183
|
-
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
type: "ephemeral";
|
|
185
|
-
}, {
|
|
186
|
-
type: "ephemeral";
|
|
187
|
-
}>>;
|
|
188
|
-
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
type: "text";
|
|
190
|
-
text: string;
|
|
191
|
-
cache_control?: {
|
|
192
|
-
type: "ephemeral";
|
|
193
|
-
} | undefined;
|
|
194
|
-
}, {
|
|
195
|
-
type: "text";
|
|
196
|
-
text: string;
|
|
197
|
-
cache_control?: {
|
|
198
|
-
type: "ephemeral";
|
|
199
|
-
} | undefined;
|
|
200
|
-
}>, z.ZodObject<{
|
|
201
|
-
type: z.ZodLiteral<"tool_use">;
|
|
202
|
-
id: z.ZodString;
|
|
203
|
-
name: z.ZodString;
|
|
204
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
205
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
206
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
207
|
-
}, "strip", z.ZodTypeAny, {
|
|
208
|
-
type: "ephemeral";
|
|
209
|
-
}, {
|
|
210
|
-
type: "ephemeral";
|
|
211
|
-
}>>;
|
|
212
|
-
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
type: "tool_use";
|
|
214
|
-
name: string;
|
|
215
|
-
id: string;
|
|
216
|
-
input: Record<string, any>;
|
|
217
|
-
cache_control?: {
|
|
218
|
-
type: "ephemeral";
|
|
219
|
-
} | undefined;
|
|
220
|
-
}, {
|
|
221
|
-
type: "tool_use";
|
|
222
|
-
name: string;
|
|
223
|
-
id: string;
|
|
224
|
-
input: Record<string, any>;
|
|
225
|
-
cache_control?: {
|
|
226
|
-
type: "ephemeral";
|
|
227
|
-
} | undefined;
|
|
228
|
-
}>, z.ZodObject<{
|
|
229
|
-
type: z.ZodLiteral<"tool_result">;
|
|
230
|
-
tool_use_id: z.ZodString;
|
|
231
|
-
content: z.ZodString;
|
|
232
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
233
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
234
|
-
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
type: "ephemeral";
|
|
236
|
-
}, {
|
|
237
|
-
type: "ephemeral";
|
|
238
|
-
}>>;
|
|
239
|
-
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
type: "tool_result";
|
|
241
|
-
content: string;
|
|
242
|
-
tool_use_id: string;
|
|
243
|
-
cache_control?: {
|
|
244
|
-
type: "ephemeral";
|
|
245
|
-
} | undefined;
|
|
246
|
-
}, {
|
|
247
|
-
type: "tool_result";
|
|
248
|
-
content: string;
|
|
249
|
-
tool_use_id: string;
|
|
250
|
-
cache_control?: {
|
|
251
|
-
type: "ephemeral";
|
|
252
|
-
} | undefined;
|
|
253
|
-
}>, z.ZodObject<{
|
|
254
|
-
type: z.ZodLiteral<"image">;
|
|
255
|
-
source: z.ZodObject<{
|
|
256
|
-
type: z.ZodLiteral<"base64">;
|
|
257
|
-
media_type: z.ZodLiteral<"image/jpeg">;
|
|
258
|
-
data: z.ZodString;
|
|
259
|
-
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
type: "base64";
|
|
261
|
-
media_type: "image/jpeg";
|
|
262
|
-
data: string;
|
|
263
|
-
}, {
|
|
264
|
-
type: "base64";
|
|
265
|
-
media_type: "image/jpeg";
|
|
266
|
-
data: string;
|
|
267
|
-
}>;
|
|
268
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
269
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
270
|
-
}, "strip", z.ZodTypeAny, {
|
|
271
|
-
type: "ephemeral";
|
|
272
|
-
}, {
|
|
273
|
-
type: "ephemeral";
|
|
274
|
-
}>>;
|
|
275
|
-
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
type: "image";
|
|
277
|
-
source: {
|
|
278
|
-
type: "base64";
|
|
279
|
-
media_type: "image/jpeg";
|
|
280
|
-
data: string;
|
|
281
|
-
};
|
|
282
|
-
cache_control?: {
|
|
283
|
-
type: "ephemeral";
|
|
284
|
-
} | undefined;
|
|
285
|
-
}, {
|
|
286
|
-
type: "image";
|
|
287
|
-
source: {
|
|
288
|
-
type: "base64";
|
|
289
|
-
media_type: "image/jpeg";
|
|
290
|
-
data: string;
|
|
291
|
-
};
|
|
292
|
-
cache_control?: {
|
|
293
|
-
type: "ephemeral";
|
|
294
|
-
} | undefined;
|
|
295
|
-
}>]>, "many">]>;
|
|
176
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
177
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
296
178
|
}, "strip", z.ZodTypeAny, {
|
|
297
|
-
|
|
298
|
-
type: "text";
|
|
299
|
-
text: string;
|
|
300
|
-
cache_control?: {
|
|
301
|
-
type: "ephemeral";
|
|
302
|
-
} | undefined;
|
|
303
|
-
} | {
|
|
304
|
-
type: "tool_use";
|
|
305
|
-
name: string;
|
|
306
|
-
id: string;
|
|
307
|
-
input: Record<string, any>;
|
|
308
|
-
cache_control?: {
|
|
309
|
-
type: "ephemeral";
|
|
310
|
-
} | undefined;
|
|
311
|
-
} | {
|
|
312
|
-
type: "tool_result";
|
|
313
|
-
content: string;
|
|
314
|
-
tool_use_id: string;
|
|
315
|
-
cache_control?: {
|
|
316
|
-
type: "ephemeral";
|
|
317
|
-
} | undefined;
|
|
318
|
-
} | {
|
|
319
|
-
type: "image";
|
|
320
|
-
source: {
|
|
321
|
-
type: "base64";
|
|
322
|
-
media_type: "image/jpeg";
|
|
323
|
-
data: string;
|
|
324
|
-
};
|
|
325
|
-
cache_control?: {
|
|
326
|
-
type: "ephemeral";
|
|
327
|
-
} | undefined;
|
|
328
|
-
})[];
|
|
329
|
-
role: "user" | "assistant";
|
|
179
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
330
180
|
}, {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
text: string;
|
|
334
|
-
cache_control?: {
|
|
335
|
-
type: "ephemeral";
|
|
336
|
-
} | undefined;
|
|
337
|
-
} | {
|
|
338
|
-
type: "tool_use";
|
|
339
|
-
name: string;
|
|
340
|
-
id: string;
|
|
341
|
-
input: Record<string, any>;
|
|
342
|
-
cache_control?: {
|
|
343
|
-
type: "ephemeral";
|
|
344
|
-
} | undefined;
|
|
345
|
-
} | {
|
|
346
|
-
type: "tool_result";
|
|
347
|
-
content: string;
|
|
348
|
-
tool_use_id: string;
|
|
349
|
-
cache_control?: {
|
|
350
|
-
type: "ephemeral";
|
|
351
|
-
} | undefined;
|
|
352
|
-
} | {
|
|
353
|
-
type: "image";
|
|
354
|
-
source: {
|
|
355
|
-
type: "base64";
|
|
356
|
-
media_type: "image/jpeg";
|
|
357
|
-
data: string;
|
|
358
|
-
};
|
|
359
|
-
cache_control?: {
|
|
360
|
-
type: "ephemeral";
|
|
361
|
-
} | undefined;
|
|
362
|
-
})[];
|
|
363
|
-
role: "user" | "assistant";
|
|
364
|
-
}>, "many">;
|
|
181
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
182
|
+
}>>, "many">;
|
|
365
183
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
366
185
|
}, "strip", z.ZodTypeAny, {
|
|
367
186
|
agentContext: string;
|
|
368
187
|
fileContext: {
|
|
@@ -393,42 +212,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
393
212
|
content: string;
|
|
394
213
|
}[][] | undefined;
|
|
395
214
|
};
|
|
396
|
-
messageHistory: {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
text: string;
|
|
400
|
-
cache_control?: {
|
|
401
|
-
type: "ephemeral";
|
|
402
|
-
} | undefined;
|
|
403
|
-
} | {
|
|
404
|
-
type: "tool_use";
|
|
405
|
-
name: string;
|
|
406
|
-
id: string;
|
|
407
|
-
input: Record<string, any>;
|
|
408
|
-
cache_control?: {
|
|
409
|
-
type: "ephemeral";
|
|
410
|
-
} | undefined;
|
|
411
|
-
} | {
|
|
412
|
-
type: "tool_result";
|
|
413
|
-
content: string;
|
|
414
|
-
tool_use_id: string;
|
|
415
|
-
cache_control?: {
|
|
416
|
-
type: "ephemeral";
|
|
417
|
-
} | undefined;
|
|
418
|
-
} | {
|
|
419
|
-
type: "image";
|
|
420
|
-
source: {
|
|
421
|
-
type: "base64";
|
|
422
|
-
media_type: "image/jpeg";
|
|
423
|
-
data: string;
|
|
424
|
-
};
|
|
425
|
-
cache_control?: {
|
|
426
|
-
type: "ephemeral";
|
|
427
|
-
} | undefined;
|
|
428
|
-
})[];
|
|
429
|
-
role: "user" | "assistant";
|
|
430
|
-
}[];
|
|
215
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
216
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
217
|
+
})[];
|
|
431
218
|
consecutiveAssistantMessages?: number | undefined;
|
|
219
|
+
agentStepsRemaining?: number | undefined;
|
|
432
220
|
}, {
|
|
433
221
|
agentContext: string;
|
|
434
222
|
fileContext: {
|
|
@@ -459,42 +247,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
459
247
|
content: string;
|
|
460
248
|
}[][] | undefined;
|
|
461
249
|
};
|
|
462
|
-
messageHistory: {
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
text: string;
|
|
466
|
-
cache_control?: {
|
|
467
|
-
type: "ephemeral";
|
|
468
|
-
} | undefined;
|
|
469
|
-
} | {
|
|
470
|
-
type: "tool_use";
|
|
471
|
-
name: string;
|
|
472
|
-
id: string;
|
|
473
|
-
input: Record<string, any>;
|
|
474
|
-
cache_control?: {
|
|
475
|
-
type: "ephemeral";
|
|
476
|
-
} | undefined;
|
|
477
|
-
} | {
|
|
478
|
-
type: "tool_result";
|
|
479
|
-
content: string;
|
|
480
|
-
tool_use_id: string;
|
|
481
|
-
cache_control?: {
|
|
482
|
-
type: "ephemeral";
|
|
483
|
-
} | undefined;
|
|
484
|
-
} | {
|
|
485
|
-
type: "image";
|
|
486
|
-
source: {
|
|
487
|
-
type: "base64";
|
|
488
|
-
media_type: "image/jpeg";
|
|
489
|
-
data: string;
|
|
490
|
-
};
|
|
491
|
-
cache_control?: {
|
|
492
|
-
type: "ephemeral";
|
|
493
|
-
} | undefined;
|
|
494
|
-
})[];
|
|
495
|
-
role: "user" | "assistant";
|
|
496
|
-
}[];
|
|
250
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
251
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
252
|
+
})[];
|
|
497
253
|
consecutiveAssistantMessages?: number | undefined;
|
|
254
|
+
agentStepsRemaining?: number | undefined;
|
|
498
255
|
}>;
|
|
499
256
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
500
257
|
name: z.ZodString;
|
|
@@ -511,11 +268,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
511
268
|
}>, "many">;
|
|
512
269
|
model: z.ZodOptional<z.ZodString>;
|
|
513
270
|
cwd: z.ZodOptional<z.ZodString>;
|
|
271
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
514
272
|
}, "strip", z.ZodTypeAny, {
|
|
515
273
|
type: "prompt";
|
|
516
274
|
promptId: string;
|
|
517
275
|
fingerprintId: string;
|
|
518
|
-
costMode: "lite" | "normal" | "max" | "experimental";
|
|
276
|
+
costMode: "lite" | "normal" | "max" | "experimental" | "ask";
|
|
519
277
|
agentState: {
|
|
520
278
|
agentContext: string;
|
|
521
279
|
fileContext: {
|
|
@@ -546,42 +304,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
546
304
|
content: string;
|
|
547
305
|
}[][] | undefined;
|
|
548
306
|
};
|
|
549
|
-
messageHistory: {
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
text: string;
|
|
553
|
-
cache_control?: {
|
|
554
|
-
type: "ephemeral";
|
|
555
|
-
} | undefined;
|
|
556
|
-
} | {
|
|
557
|
-
type: "tool_use";
|
|
558
|
-
name: string;
|
|
559
|
-
id: string;
|
|
560
|
-
input: Record<string, any>;
|
|
561
|
-
cache_control?: {
|
|
562
|
-
type: "ephemeral";
|
|
563
|
-
} | undefined;
|
|
564
|
-
} | {
|
|
565
|
-
type: "tool_result";
|
|
566
|
-
content: string;
|
|
567
|
-
tool_use_id: string;
|
|
568
|
-
cache_control?: {
|
|
569
|
-
type: "ephemeral";
|
|
570
|
-
} | undefined;
|
|
571
|
-
} | {
|
|
572
|
-
type: "image";
|
|
573
|
-
source: {
|
|
574
|
-
type: "base64";
|
|
575
|
-
media_type: "image/jpeg";
|
|
576
|
-
data: string;
|
|
577
|
-
};
|
|
578
|
-
cache_control?: {
|
|
579
|
-
type: "ephemeral";
|
|
580
|
-
} | undefined;
|
|
581
|
-
})[];
|
|
582
|
-
role: "user" | "assistant";
|
|
583
|
-
}[];
|
|
307
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
308
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
309
|
+
})[];
|
|
584
310
|
consecutiveAssistantMessages?: number | undefined;
|
|
311
|
+
agentStepsRemaining?: number | undefined;
|
|
585
312
|
};
|
|
586
313
|
toolResults: {
|
|
587
314
|
name: string;
|
|
@@ -592,6 +319,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
592
319
|
authToken?: string | undefined;
|
|
593
320
|
model?: string | undefined;
|
|
594
321
|
cwd?: string | undefined;
|
|
322
|
+
repoName?: string | undefined;
|
|
595
323
|
}, {
|
|
596
324
|
type: "prompt";
|
|
597
325
|
promptId: string;
|
|
@@ -626,42 +354,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
626
354
|
content: string;
|
|
627
355
|
}[][] | undefined;
|
|
628
356
|
};
|
|
629
|
-
messageHistory: {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
text: string;
|
|
633
|
-
cache_control?: {
|
|
634
|
-
type: "ephemeral";
|
|
635
|
-
} | undefined;
|
|
636
|
-
} | {
|
|
637
|
-
type: "tool_use";
|
|
638
|
-
name: string;
|
|
639
|
-
id: string;
|
|
640
|
-
input: Record<string, any>;
|
|
641
|
-
cache_control?: {
|
|
642
|
-
type: "ephemeral";
|
|
643
|
-
} | undefined;
|
|
644
|
-
} | {
|
|
645
|
-
type: "tool_result";
|
|
646
|
-
content: string;
|
|
647
|
-
tool_use_id: string;
|
|
648
|
-
cache_control?: {
|
|
649
|
-
type: "ephemeral";
|
|
650
|
-
} | undefined;
|
|
651
|
-
} | {
|
|
652
|
-
type: "image";
|
|
653
|
-
source: {
|
|
654
|
-
type: "base64";
|
|
655
|
-
media_type: "image/jpeg";
|
|
656
|
-
data: string;
|
|
657
|
-
};
|
|
658
|
-
cache_control?: {
|
|
659
|
-
type: "ephemeral";
|
|
660
|
-
} | undefined;
|
|
661
|
-
})[];
|
|
662
|
-
role: "user" | "assistant";
|
|
663
|
-
}[];
|
|
357
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
358
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
359
|
+
})[];
|
|
664
360
|
consecutiveAssistantMessages?: number | undefined;
|
|
361
|
+
agentStepsRemaining?: number | undefined;
|
|
665
362
|
};
|
|
666
363
|
toolResults: {
|
|
667
364
|
name: string;
|
|
@@ -670,9 +367,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
670
367
|
}[];
|
|
671
368
|
prompt?: string | undefined;
|
|
672
369
|
authToken?: string | undefined;
|
|
673
|
-
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
370
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
674
371
|
model?: string | undefined;
|
|
675
372
|
cwd?: string | undefined;
|
|
373
|
+
repoName?: string | undefined;
|
|
676
374
|
}>, z.ZodObject<{
|
|
677
375
|
type: z.ZodLiteral<"read-files-response">;
|
|
678
376
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -887,7 +585,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
887
585
|
type: "prompt";
|
|
888
586
|
promptId: string;
|
|
889
587
|
fingerprintId: string;
|
|
890
|
-
costMode: "lite" | "normal" | "max" | "experimental";
|
|
588
|
+
costMode: "lite" | "normal" | "max" | "experimental" | "ask";
|
|
891
589
|
agentState: {
|
|
892
590
|
agentContext: string;
|
|
893
591
|
fileContext: {
|
|
@@ -918,42 +616,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
918
616
|
content: string;
|
|
919
617
|
}[][] | undefined;
|
|
920
618
|
};
|
|
921
|
-
messageHistory: {
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
text: string;
|
|
925
|
-
cache_control?: {
|
|
926
|
-
type: "ephemeral";
|
|
927
|
-
} | undefined;
|
|
928
|
-
} | {
|
|
929
|
-
type: "tool_use";
|
|
930
|
-
name: string;
|
|
931
|
-
id: string;
|
|
932
|
-
input: Record<string, any>;
|
|
933
|
-
cache_control?: {
|
|
934
|
-
type: "ephemeral";
|
|
935
|
-
} | undefined;
|
|
936
|
-
} | {
|
|
937
|
-
type: "tool_result";
|
|
938
|
-
content: string;
|
|
939
|
-
tool_use_id: string;
|
|
940
|
-
cache_control?: {
|
|
941
|
-
type: "ephemeral";
|
|
942
|
-
} | undefined;
|
|
943
|
-
} | {
|
|
944
|
-
type: "image";
|
|
945
|
-
source: {
|
|
946
|
-
type: "base64";
|
|
947
|
-
media_type: "image/jpeg";
|
|
948
|
-
data: string;
|
|
949
|
-
};
|
|
950
|
-
cache_control?: {
|
|
951
|
-
type: "ephemeral";
|
|
952
|
-
} | undefined;
|
|
953
|
-
})[];
|
|
954
|
-
role: "user" | "assistant";
|
|
955
|
-
}[];
|
|
619
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
620
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
621
|
+
})[];
|
|
956
622
|
consecutiveAssistantMessages?: number | undefined;
|
|
623
|
+
agentStepsRemaining?: number | undefined;
|
|
957
624
|
};
|
|
958
625
|
toolResults: {
|
|
959
626
|
name: string;
|
|
@@ -964,6 +631,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
964
631
|
authToken?: string | undefined;
|
|
965
632
|
model?: string | undefined;
|
|
966
633
|
cwd?: string | undefined;
|
|
634
|
+
repoName?: string | undefined;
|
|
967
635
|
} | {
|
|
968
636
|
type: "read-files-response";
|
|
969
637
|
files: Record<string, string | null>;
|
|
@@ -1043,42 +711,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1043
711
|
content: string;
|
|
1044
712
|
}[][] | undefined;
|
|
1045
713
|
};
|
|
1046
|
-
messageHistory: {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
text: string;
|
|
1050
|
-
cache_control?: {
|
|
1051
|
-
type: "ephemeral";
|
|
1052
|
-
} | undefined;
|
|
1053
|
-
} | {
|
|
1054
|
-
type: "tool_use";
|
|
1055
|
-
name: string;
|
|
1056
|
-
id: string;
|
|
1057
|
-
input: Record<string, any>;
|
|
1058
|
-
cache_control?: {
|
|
1059
|
-
type: "ephemeral";
|
|
1060
|
-
} | undefined;
|
|
1061
|
-
} | {
|
|
1062
|
-
type: "tool_result";
|
|
1063
|
-
content: string;
|
|
1064
|
-
tool_use_id: string;
|
|
1065
|
-
cache_control?: {
|
|
1066
|
-
type: "ephemeral";
|
|
1067
|
-
} | undefined;
|
|
1068
|
-
} | {
|
|
1069
|
-
type: "image";
|
|
1070
|
-
source: {
|
|
1071
|
-
type: "base64";
|
|
1072
|
-
media_type: "image/jpeg";
|
|
1073
|
-
data: string;
|
|
1074
|
-
};
|
|
1075
|
-
cache_control?: {
|
|
1076
|
-
type: "ephemeral";
|
|
1077
|
-
} | undefined;
|
|
1078
|
-
})[];
|
|
1079
|
-
role: "user" | "assistant";
|
|
1080
|
-
}[];
|
|
714
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
715
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
716
|
+
})[];
|
|
1081
717
|
consecutiveAssistantMessages?: number | undefined;
|
|
718
|
+
agentStepsRemaining?: number | undefined;
|
|
1082
719
|
};
|
|
1083
720
|
toolResults: {
|
|
1084
721
|
name: string;
|
|
@@ -1087,9 +724,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1087
724
|
}[];
|
|
1088
725
|
prompt?: string | undefined;
|
|
1089
726
|
authToken?: string | undefined;
|
|
1090
|
-
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
727
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1091
728
|
model?: string | undefined;
|
|
1092
729
|
cwd?: string | undefined;
|
|
730
|
+
repoName?: string | undefined;
|
|
1093
731
|
} | {
|
|
1094
732
|
type: "read-files-response";
|
|
1095
733
|
files: Record<string, string | null>;
|
|
@@ -1189,7 +827,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1189
827
|
prompt: z.ZodUnion<[z.ZodString, z.ZodUndefined]>;
|
|
1190
828
|
fingerprintId: z.ZodString;
|
|
1191
829
|
authToken: z.ZodOptional<z.ZodString>;
|
|
1192
|
-
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max", "experimental"]>>>;
|
|
830
|
+
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max", "experimental", "ask"]>>>;
|
|
1193
831
|
agentState: z.ZodObject<{
|
|
1194
832
|
agentContext: z.ZodString;
|
|
1195
833
|
fileContext: z.ZodObject<{
|
|
@@ -1304,196 +942,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1304
942
|
content: string;
|
|
1305
943
|
}[][] | undefined;
|
|
1306
944
|
}>;
|
|
1307
|
-
messageHistory: z.ZodArray<z.ZodObject<{
|
|
1308
|
-
|
|
1309
|
-
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
1310
|
-
type: z.ZodLiteral<"text">;
|
|
1311
|
-
text: z.ZodString;
|
|
1312
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1313
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
1314
|
-
}, "strip", z.ZodTypeAny, {
|
|
1315
|
-
type: "ephemeral";
|
|
1316
|
-
}, {
|
|
1317
|
-
type: "ephemeral";
|
|
1318
|
-
}>>;
|
|
1319
|
-
}, "strip", z.ZodTypeAny, {
|
|
1320
|
-
type: "text";
|
|
1321
|
-
text: string;
|
|
1322
|
-
cache_control?: {
|
|
1323
|
-
type: "ephemeral";
|
|
1324
|
-
} | undefined;
|
|
1325
|
-
}, {
|
|
1326
|
-
type: "text";
|
|
1327
|
-
text: string;
|
|
1328
|
-
cache_control?: {
|
|
1329
|
-
type: "ephemeral";
|
|
1330
|
-
} | undefined;
|
|
1331
|
-
}>, z.ZodObject<{
|
|
1332
|
-
type: z.ZodLiteral<"tool_use">;
|
|
1333
|
-
id: z.ZodString;
|
|
1334
|
-
name: z.ZodString;
|
|
1335
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1336
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1337
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
1338
|
-
}, "strip", z.ZodTypeAny, {
|
|
1339
|
-
type: "ephemeral";
|
|
1340
|
-
}, {
|
|
1341
|
-
type: "ephemeral";
|
|
1342
|
-
}>>;
|
|
1343
|
-
}, "strip", z.ZodTypeAny, {
|
|
1344
|
-
type: "tool_use";
|
|
1345
|
-
name: string;
|
|
1346
|
-
id: string;
|
|
1347
|
-
input: Record<string, any>;
|
|
1348
|
-
cache_control?: {
|
|
1349
|
-
type: "ephemeral";
|
|
1350
|
-
} | undefined;
|
|
1351
|
-
}, {
|
|
1352
|
-
type: "tool_use";
|
|
1353
|
-
name: string;
|
|
1354
|
-
id: string;
|
|
1355
|
-
input: Record<string, any>;
|
|
1356
|
-
cache_control?: {
|
|
1357
|
-
type: "ephemeral";
|
|
1358
|
-
} | undefined;
|
|
1359
|
-
}>, z.ZodObject<{
|
|
1360
|
-
type: z.ZodLiteral<"tool_result">;
|
|
1361
|
-
tool_use_id: z.ZodString;
|
|
1362
|
-
content: z.ZodString;
|
|
1363
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1364
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
1365
|
-
}, "strip", z.ZodTypeAny, {
|
|
1366
|
-
type: "ephemeral";
|
|
1367
|
-
}, {
|
|
1368
|
-
type: "ephemeral";
|
|
1369
|
-
}>>;
|
|
1370
|
-
}, "strip", z.ZodTypeAny, {
|
|
1371
|
-
type: "tool_result";
|
|
1372
|
-
content: string;
|
|
1373
|
-
tool_use_id: string;
|
|
1374
|
-
cache_control?: {
|
|
1375
|
-
type: "ephemeral";
|
|
1376
|
-
} | undefined;
|
|
1377
|
-
}, {
|
|
1378
|
-
type: "tool_result";
|
|
1379
|
-
content: string;
|
|
1380
|
-
tool_use_id: string;
|
|
1381
|
-
cache_control?: {
|
|
1382
|
-
type: "ephemeral";
|
|
1383
|
-
} | undefined;
|
|
1384
|
-
}>, z.ZodObject<{
|
|
1385
|
-
type: z.ZodLiteral<"image">;
|
|
1386
|
-
source: z.ZodObject<{
|
|
1387
|
-
type: z.ZodLiteral<"base64">;
|
|
1388
|
-
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1389
|
-
data: z.ZodString;
|
|
1390
|
-
}, "strip", z.ZodTypeAny, {
|
|
1391
|
-
type: "base64";
|
|
1392
|
-
media_type: "image/jpeg";
|
|
1393
|
-
data: string;
|
|
1394
|
-
}, {
|
|
1395
|
-
type: "base64";
|
|
1396
|
-
media_type: "image/jpeg";
|
|
1397
|
-
data: string;
|
|
1398
|
-
}>;
|
|
1399
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1400
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
1401
|
-
}, "strip", z.ZodTypeAny, {
|
|
1402
|
-
type: "ephemeral";
|
|
1403
|
-
}, {
|
|
1404
|
-
type: "ephemeral";
|
|
1405
|
-
}>>;
|
|
1406
|
-
}, "strip", z.ZodTypeAny, {
|
|
1407
|
-
type: "image";
|
|
1408
|
-
source: {
|
|
1409
|
-
type: "base64";
|
|
1410
|
-
media_type: "image/jpeg";
|
|
1411
|
-
data: string;
|
|
1412
|
-
};
|
|
1413
|
-
cache_control?: {
|
|
1414
|
-
type: "ephemeral";
|
|
1415
|
-
} | undefined;
|
|
1416
|
-
}, {
|
|
1417
|
-
type: "image";
|
|
1418
|
-
source: {
|
|
1419
|
-
type: "base64";
|
|
1420
|
-
media_type: "image/jpeg";
|
|
1421
|
-
data: string;
|
|
1422
|
-
};
|
|
1423
|
-
cache_control?: {
|
|
1424
|
-
type: "ephemeral";
|
|
1425
|
-
} | undefined;
|
|
1426
|
-
}>]>, "many">]>;
|
|
945
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
946
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
1427
947
|
}, "strip", z.ZodTypeAny, {
|
|
1428
|
-
|
|
1429
|
-
type: "text";
|
|
1430
|
-
text: string;
|
|
1431
|
-
cache_control?: {
|
|
1432
|
-
type: "ephemeral";
|
|
1433
|
-
} | undefined;
|
|
1434
|
-
} | {
|
|
1435
|
-
type: "tool_use";
|
|
1436
|
-
name: string;
|
|
1437
|
-
id: string;
|
|
1438
|
-
input: Record<string, any>;
|
|
1439
|
-
cache_control?: {
|
|
1440
|
-
type: "ephemeral";
|
|
1441
|
-
} | undefined;
|
|
1442
|
-
} | {
|
|
1443
|
-
type: "tool_result";
|
|
1444
|
-
content: string;
|
|
1445
|
-
tool_use_id: string;
|
|
1446
|
-
cache_control?: {
|
|
1447
|
-
type: "ephemeral";
|
|
1448
|
-
} | undefined;
|
|
1449
|
-
} | {
|
|
1450
|
-
type: "image";
|
|
1451
|
-
source: {
|
|
1452
|
-
type: "base64";
|
|
1453
|
-
media_type: "image/jpeg";
|
|
1454
|
-
data: string;
|
|
1455
|
-
};
|
|
1456
|
-
cache_control?: {
|
|
1457
|
-
type: "ephemeral";
|
|
1458
|
-
} | undefined;
|
|
1459
|
-
})[];
|
|
1460
|
-
role: "user" | "assistant";
|
|
948
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1461
949
|
}, {
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
text: string;
|
|
1465
|
-
cache_control?: {
|
|
1466
|
-
type: "ephemeral";
|
|
1467
|
-
} | undefined;
|
|
1468
|
-
} | {
|
|
1469
|
-
type: "tool_use";
|
|
1470
|
-
name: string;
|
|
1471
|
-
id: string;
|
|
1472
|
-
input: Record<string, any>;
|
|
1473
|
-
cache_control?: {
|
|
1474
|
-
type: "ephemeral";
|
|
1475
|
-
} | undefined;
|
|
1476
|
-
} | {
|
|
1477
|
-
type: "tool_result";
|
|
1478
|
-
content: string;
|
|
1479
|
-
tool_use_id: string;
|
|
1480
|
-
cache_control?: {
|
|
1481
|
-
type: "ephemeral";
|
|
1482
|
-
} | undefined;
|
|
1483
|
-
} | {
|
|
1484
|
-
type: "image";
|
|
1485
|
-
source: {
|
|
1486
|
-
type: "base64";
|
|
1487
|
-
media_type: "image/jpeg";
|
|
1488
|
-
data: string;
|
|
1489
|
-
};
|
|
1490
|
-
cache_control?: {
|
|
1491
|
-
type: "ephemeral";
|
|
1492
|
-
} | undefined;
|
|
1493
|
-
})[];
|
|
1494
|
-
role: "user" | "assistant";
|
|
1495
|
-
}>, "many">;
|
|
950
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
951
|
+
}>>, "many">;
|
|
1496
952
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
953
|
+
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
1497
954
|
}, "strip", z.ZodTypeAny, {
|
|
1498
955
|
agentContext: string;
|
|
1499
956
|
fileContext: {
|
|
@@ -1524,42 +981,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1524
981
|
content: string;
|
|
1525
982
|
}[][] | undefined;
|
|
1526
983
|
};
|
|
1527
|
-
messageHistory: {
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
text: string;
|
|
1531
|
-
cache_control?: {
|
|
1532
|
-
type: "ephemeral";
|
|
1533
|
-
} | undefined;
|
|
1534
|
-
} | {
|
|
1535
|
-
type: "tool_use";
|
|
1536
|
-
name: string;
|
|
1537
|
-
id: string;
|
|
1538
|
-
input: Record<string, any>;
|
|
1539
|
-
cache_control?: {
|
|
1540
|
-
type: "ephemeral";
|
|
1541
|
-
} | undefined;
|
|
1542
|
-
} | {
|
|
1543
|
-
type: "tool_result";
|
|
1544
|
-
content: string;
|
|
1545
|
-
tool_use_id: string;
|
|
1546
|
-
cache_control?: {
|
|
1547
|
-
type: "ephemeral";
|
|
1548
|
-
} | undefined;
|
|
1549
|
-
} | {
|
|
1550
|
-
type: "image";
|
|
1551
|
-
source: {
|
|
1552
|
-
type: "base64";
|
|
1553
|
-
media_type: "image/jpeg";
|
|
1554
|
-
data: string;
|
|
1555
|
-
};
|
|
1556
|
-
cache_control?: {
|
|
1557
|
-
type: "ephemeral";
|
|
1558
|
-
} | undefined;
|
|
1559
|
-
})[];
|
|
1560
|
-
role: "user" | "assistant";
|
|
1561
|
-
}[];
|
|
984
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
985
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
986
|
+
})[];
|
|
1562
987
|
consecutiveAssistantMessages?: number | undefined;
|
|
988
|
+
agentStepsRemaining?: number | undefined;
|
|
1563
989
|
}, {
|
|
1564
990
|
agentContext: string;
|
|
1565
991
|
fileContext: {
|
|
@@ -1590,42 +1016,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1590
1016
|
content: string;
|
|
1591
1017
|
}[][] | undefined;
|
|
1592
1018
|
};
|
|
1593
|
-
messageHistory: {
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
text: string;
|
|
1597
|
-
cache_control?: {
|
|
1598
|
-
type: "ephemeral";
|
|
1599
|
-
} | undefined;
|
|
1600
|
-
} | {
|
|
1601
|
-
type: "tool_use";
|
|
1602
|
-
name: string;
|
|
1603
|
-
id: string;
|
|
1604
|
-
input: Record<string, any>;
|
|
1605
|
-
cache_control?: {
|
|
1606
|
-
type: "ephemeral";
|
|
1607
|
-
} | undefined;
|
|
1608
|
-
} | {
|
|
1609
|
-
type: "tool_result";
|
|
1610
|
-
content: string;
|
|
1611
|
-
tool_use_id: string;
|
|
1612
|
-
cache_control?: {
|
|
1613
|
-
type: "ephemeral";
|
|
1614
|
-
} | undefined;
|
|
1615
|
-
} | {
|
|
1616
|
-
type: "image";
|
|
1617
|
-
source: {
|
|
1618
|
-
type: "base64";
|
|
1619
|
-
media_type: "image/jpeg";
|
|
1620
|
-
data: string;
|
|
1621
|
-
};
|
|
1622
|
-
cache_control?: {
|
|
1623
|
-
type: "ephemeral";
|
|
1624
|
-
} | undefined;
|
|
1625
|
-
})[];
|
|
1626
|
-
role: "user" | "assistant";
|
|
1627
|
-
}[];
|
|
1019
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1020
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1021
|
+
})[];
|
|
1628
1022
|
consecutiveAssistantMessages?: number | undefined;
|
|
1023
|
+
agentStepsRemaining?: number | undefined;
|
|
1629
1024
|
}>;
|
|
1630
1025
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1631
1026
|
name: z.ZodString;
|
|
@@ -1642,11 +1037,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1642
1037
|
}>, "many">;
|
|
1643
1038
|
model: z.ZodOptional<z.ZodString>;
|
|
1644
1039
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1040
|
+
repoName: z.ZodOptional<z.ZodString>;
|
|
1645
1041
|
}, "strip", z.ZodTypeAny, {
|
|
1646
1042
|
type: "prompt";
|
|
1647
1043
|
promptId: string;
|
|
1648
1044
|
fingerprintId: string;
|
|
1649
|
-
costMode: "lite" | "normal" | "max" | "experimental";
|
|
1045
|
+
costMode: "lite" | "normal" | "max" | "experimental" | "ask";
|
|
1650
1046
|
agentState: {
|
|
1651
1047
|
agentContext: string;
|
|
1652
1048
|
fileContext: {
|
|
@@ -1677,42 +1073,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1677
1073
|
content: string;
|
|
1678
1074
|
}[][] | undefined;
|
|
1679
1075
|
};
|
|
1680
|
-
messageHistory: {
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
text: string;
|
|
1684
|
-
cache_control?: {
|
|
1685
|
-
type: "ephemeral";
|
|
1686
|
-
} | undefined;
|
|
1687
|
-
} | {
|
|
1688
|
-
type: "tool_use";
|
|
1689
|
-
name: string;
|
|
1690
|
-
id: string;
|
|
1691
|
-
input: Record<string, any>;
|
|
1692
|
-
cache_control?: {
|
|
1693
|
-
type: "ephemeral";
|
|
1694
|
-
} | undefined;
|
|
1695
|
-
} | {
|
|
1696
|
-
type: "tool_result";
|
|
1697
|
-
content: string;
|
|
1698
|
-
tool_use_id: string;
|
|
1699
|
-
cache_control?: {
|
|
1700
|
-
type: "ephemeral";
|
|
1701
|
-
} | undefined;
|
|
1702
|
-
} | {
|
|
1703
|
-
type: "image";
|
|
1704
|
-
source: {
|
|
1705
|
-
type: "base64";
|
|
1706
|
-
media_type: "image/jpeg";
|
|
1707
|
-
data: string;
|
|
1708
|
-
};
|
|
1709
|
-
cache_control?: {
|
|
1710
|
-
type: "ephemeral";
|
|
1711
|
-
} | undefined;
|
|
1712
|
-
})[];
|
|
1713
|
-
role: "user" | "assistant";
|
|
1714
|
-
}[];
|
|
1076
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1077
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1078
|
+
})[];
|
|
1715
1079
|
consecutiveAssistantMessages?: number | undefined;
|
|
1080
|
+
agentStepsRemaining?: number | undefined;
|
|
1716
1081
|
};
|
|
1717
1082
|
toolResults: {
|
|
1718
1083
|
name: string;
|
|
@@ -1723,6 +1088,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1723
1088
|
authToken?: string | undefined;
|
|
1724
1089
|
model?: string | undefined;
|
|
1725
1090
|
cwd?: string | undefined;
|
|
1091
|
+
repoName?: string | undefined;
|
|
1726
1092
|
}, {
|
|
1727
1093
|
type: "prompt";
|
|
1728
1094
|
promptId: string;
|
|
@@ -1757,42 +1123,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1757
1123
|
content: string;
|
|
1758
1124
|
}[][] | undefined;
|
|
1759
1125
|
};
|
|
1760
|
-
messageHistory: {
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
text: string;
|
|
1764
|
-
cache_control?: {
|
|
1765
|
-
type: "ephemeral";
|
|
1766
|
-
} | undefined;
|
|
1767
|
-
} | {
|
|
1768
|
-
type: "tool_use";
|
|
1769
|
-
name: string;
|
|
1770
|
-
id: string;
|
|
1771
|
-
input: Record<string, any>;
|
|
1772
|
-
cache_control?: {
|
|
1773
|
-
type: "ephemeral";
|
|
1774
|
-
} | undefined;
|
|
1775
|
-
} | {
|
|
1776
|
-
type: "tool_result";
|
|
1777
|
-
content: string;
|
|
1778
|
-
tool_use_id: string;
|
|
1779
|
-
cache_control?: {
|
|
1780
|
-
type: "ephemeral";
|
|
1781
|
-
} | undefined;
|
|
1782
|
-
} | {
|
|
1783
|
-
type: "image";
|
|
1784
|
-
source: {
|
|
1785
|
-
type: "base64";
|
|
1786
|
-
media_type: "image/jpeg";
|
|
1787
|
-
data: string;
|
|
1788
|
-
};
|
|
1789
|
-
cache_control?: {
|
|
1790
|
-
type: "ephemeral";
|
|
1791
|
-
} | undefined;
|
|
1792
|
-
})[];
|
|
1793
|
-
role: "user" | "assistant";
|
|
1794
|
-
}[];
|
|
1126
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1127
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1128
|
+
})[];
|
|
1795
1129
|
consecutiveAssistantMessages?: number | undefined;
|
|
1130
|
+
agentStepsRemaining?: number | undefined;
|
|
1796
1131
|
};
|
|
1797
1132
|
toolResults: {
|
|
1798
1133
|
name: string;
|
|
@@ -1801,9 +1136,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1801
1136
|
}[];
|
|
1802
1137
|
prompt?: string | undefined;
|
|
1803
1138
|
authToken?: string | undefined;
|
|
1804
|
-
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1139
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
1805
1140
|
model?: string | undefined;
|
|
1806
1141
|
cwd?: string | undefined;
|
|
1142
|
+
repoName?: string | undefined;
|
|
1807
1143
|
}>, z.ZodObject<{
|
|
1808
1144
|
type: z.ZodLiteral<"read-files-response">;
|
|
1809
1145
|
files: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
@@ -2018,7 +1354,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2018
1354
|
type: "prompt";
|
|
2019
1355
|
promptId: string;
|
|
2020
1356
|
fingerprintId: string;
|
|
2021
|
-
costMode: "lite" | "normal" | "max" | "experimental";
|
|
1357
|
+
costMode: "lite" | "normal" | "max" | "experimental" | "ask";
|
|
2022
1358
|
agentState: {
|
|
2023
1359
|
agentContext: string;
|
|
2024
1360
|
fileContext: {
|
|
@@ -2049,42 +1385,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2049
1385
|
content: string;
|
|
2050
1386
|
}[][] | undefined;
|
|
2051
1387
|
};
|
|
2052
|
-
messageHistory: {
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
text: string;
|
|
2056
|
-
cache_control?: {
|
|
2057
|
-
type: "ephemeral";
|
|
2058
|
-
} | undefined;
|
|
2059
|
-
} | {
|
|
2060
|
-
type: "tool_use";
|
|
2061
|
-
name: string;
|
|
2062
|
-
id: string;
|
|
2063
|
-
input: Record<string, any>;
|
|
2064
|
-
cache_control?: {
|
|
2065
|
-
type: "ephemeral";
|
|
2066
|
-
} | undefined;
|
|
2067
|
-
} | {
|
|
2068
|
-
type: "tool_result";
|
|
2069
|
-
content: string;
|
|
2070
|
-
tool_use_id: string;
|
|
2071
|
-
cache_control?: {
|
|
2072
|
-
type: "ephemeral";
|
|
2073
|
-
} | undefined;
|
|
2074
|
-
} | {
|
|
2075
|
-
type: "image";
|
|
2076
|
-
source: {
|
|
2077
|
-
type: "base64";
|
|
2078
|
-
media_type: "image/jpeg";
|
|
2079
|
-
data: string;
|
|
2080
|
-
};
|
|
2081
|
-
cache_control?: {
|
|
2082
|
-
type: "ephemeral";
|
|
2083
|
-
} | undefined;
|
|
2084
|
-
})[];
|
|
2085
|
-
role: "user" | "assistant";
|
|
2086
|
-
}[];
|
|
1388
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1389
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1390
|
+
})[];
|
|
2087
1391
|
consecutiveAssistantMessages?: number | undefined;
|
|
1392
|
+
agentStepsRemaining?: number | undefined;
|
|
2088
1393
|
};
|
|
2089
1394
|
toolResults: {
|
|
2090
1395
|
name: string;
|
|
@@ -2095,6 +1400,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2095
1400
|
authToken?: string | undefined;
|
|
2096
1401
|
model?: string | undefined;
|
|
2097
1402
|
cwd?: string | undefined;
|
|
1403
|
+
repoName?: string | undefined;
|
|
2098
1404
|
} | {
|
|
2099
1405
|
type: "read-files-response";
|
|
2100
1406
|
files: Record<string, string | null>;
|
|
@@ -2174,42 +1480,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2174
1480
|
content: string;
|
|
2175
1481
|
}[][] | undefined;
|
|
2176
1482
|
};
|
|
2177
|
-
messageHistory: {
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
text: string;
|
|
2181
|
-
cache_control?: {
|
|
2182
|
-
type: "ephemeral";
|
|
2183
|
-
} | undefined;
|
|
2184
|
-
} | {
|
|
2185
|
-
type: "tool_use";
|
|
2186
|
-
name: string;
|
|
2187
|
-
id: string;
|
|
2188
|
-
input: Record<string, any>;
|
|
2189
|
-
cache_control?: {
|
|
2190
|
-
type: "ephemeral";
|
|
2191
|
-
} | undefined;
|
|
2192
|
-
} | {
|
|
2193
|
-
type: "tool_result";
|
|
2194
|
-
content: string;
|
|
2195
|
-
tool_use_id: string;
|
|
2196
|
-
cache_control?: {
|
|
2197
|
-
type: "ephemeral";
|
|
2198
|
-
} | undefined;
|
|
2199
|
-
} | {
|
|
2200
|
-
type: "image";
|
|
2201
|
-
source: {
|
|
2202
|
-
type: "base64";
|
|
2203
|
-
media_type: "image/jpeg";
|
|
2204
|
-
data: string;
|
|
2205
|
-
};
|
|
2206
|
-
cache_control?: {
|
|
2207
|
-
type: "ephemeral";
|
|
2208
|
-
} | undefined;
|
|
2209
|
-
})[];
|
|
2210
|
-
role: "user" | "assistant";
|
|
2211
|
-
}[];
|
|
1483
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1484
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1485
|
+
})[];
|
|
2212
1486
|
consecutiveAssistantMessages?: number | undefined;
|
|
1487
|
+
agentStepsRemaining?: number | undefined;
|
|
2213
1488
|
};
|
|
2214
1489
|
toolResults: {
|
|
2215
1490
|
name: string;
|
|
@@ -2218,9 +1493,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2218
1493
|
}[];
|
|
2219
1494
|
prompt?: string | undefined;
|
|
2220
1495
|
authToken?: string | undefined;
|
|
2221
|
-
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1496
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
|
|
2222
1497
|
model?: string | undefined;
|
|
2223
1498
|
cwd?: string | undefined;
|
|
1499
|
+
repoName?: string | undefined;
|
|
2224
1500
|
} | {
|
|
2225
1501
|
type: "read-files-response";
|
|
2226
1502
|
files: Record<string, string | null>;
|
|
@@ -2510,196 +1786,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2510
1786
|
content: string;
|
|
2511
1787
|
}[][] | undefined;
|
|
2512
1788
|
}>;
|
|
2513
|
-
messageHistory: z.ZodArray<z.ZodObject<{
|
|
2514
|
-
|
|
2515
|
-
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2516
|
-
type: z.ZodLiteral<"text">;
|
|
2517
|
-
text: z.ZodString;
|
|
2518
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2519
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
2520
|
-
}, "strip", z.ZodTypeAny, {
|
|
2521
|
-
type: "ephemeral";
|
|
2522
|
-
}, {
|
|
2523
|
-
type: "ephemeral";
|
|
2524
|
-
}>>;
|
|
2525
|
-
}, "strip", z.ZodTypeAny, {
|
|
2526
|
-
type: "text";
|
|
2527
|
-
text: string;
|
|
2528
|
-
cache_control?: {
|
|
2529
|
-
type: "ephemeral";
|
|
2530
|
-
} | undefined;
|
|
2531
|
-
}, {
|
|
2532
|
-
type: "text";
|
|
2533
|
-
text: string;
|
|
2534
|
-
cache_control?: {
|
|
2535
|
-
type: "ephemeral";
|
|
2536
|
-
} | undefined;
|
|
2537
|
-
}>, z.ZodObject<{
|
|
2538
|
-
type: z.ZodLiteral<"tool_use">;
|
|
2539
|
-
id: z.ZodString;
|
|
2540
|
-
name: z.ZodString;
|
|
2541
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2542
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2543
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
2544
|
-
}, "strip", z.ZodTypeAny, {
|
|
2545
|
-
type: "ephemeral";
|
|
2546
|
-
}, {
|
|
2547
|
-
type: "ephemeral";
|
|
2548
|
-
}>>;
|
|
2549
|
-
}, "strip", z.ZodTypeAny, {
|
|
2550
|
-
type: "tool_use";
|
|
2551
|
-
name: string;
|
|
2552
|
-
id: string;
|
|
2553
|
-
input: Record<string, any>;
|
|
2554
|
-
cache_control?: {
|
|
2555
|
-
type: "ephemeral";
|
|
2556
|
-
} | undefined;
|
|
2557
|
-
}, {
|
|
2558
|
-
type: "tool_use";
|
|
2559
|
-
name: string;
|
|
2560
|
-
id: string;
|
|
2561
|
-
input: Record<string, any>;
|
|
2562
|
-
cache_control?: {
|
|
2563
|
-
type: "ephemeral";
|
|
2564
|
-
} | undefined;
|
|
2565
|
-
}>, z.ZodObject<{
|
|
2566
|
-
type: z.ZodLiteral<"tool_result">;
|
|
2567
|
-
tool_use_id: z.ZodString;
|
|
2568
|
-
content: z.ZodString;
|
|
2569
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2570
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
2571
|
-
}, "strip", z.ZodTypeAny, {
|
|
2572
|
-
type: "ephemeral";
|
|
2573
|
-
}, {
|
|
2574
|
-
type: "ephemeral";
|
|
2575
|
-
}>>;
|
|
2576
|
-
}, "strip", z.ZodTypeAny, {
|
|
2577
|
-
type: "tool_result";
|
|
2578
|
-
content: string;
|
|
2579
|
-
tool_use_id: string;
|
|
2580
|
-
cache_control?: {
|
|
2581
|
-
type: "ephemeral";
|
|
2582
|
-
} | undefined;
|
|
2583
|
-
}, {
|
|
2584
|
-
type: "tool_result";
|
|
2585
|
-
content: string;
|
|
2586
|
-
tool_use_id: string;
|
|
2587
|
-
cache_control?: {
|
|
2588
|
-
type: "ephemeral";
|
|
2589
|
-
} | undefined;
|
|
2590
|
-
}>, z.ZodObject<{
|
|
2591
|
-
type: z.ZodLiteral<"image">;
|
|
2592
|
-
source: z.ZodObject<{
|
|
2593
|
-
type: z.ZodLiteral<"base64">;
|
|
2594
|
-
media_type: z.ZodLiteral<"image/jpeg">;
|
|
2595
|
-
data: z.ZodString;
|
|
2596
|
-
}, "strip", z.ZodTypeAny, {
|
|
2597
|
-
type: "base64";
|
|
2598
|
-
media_type: "image/jpeg";
|
|
2599
|
-
data: string;
|
|
2600
|
-
}, {
|
|
2601
|
-
type: "base64";
|
|
2602
|
-
media_type: "image/jpeg";
|
|
2603
|
-
data: string;
|
|
2604
|
-
}>;
|
|
2605
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2606
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
2607
|
-
}, "strip", z.ZodTypeAny, {
|
|
2608
|
-
type: "ephemeral";
|
|
2609
|
-
}, {
|
|
2610
|
-
type: "ephemeral";
|
|
2611
|
-
}>>;
|
|
2612
|
-
}, "strip", z.ZodTypeAny, {
|
|
2613
|
-
type: "image";
|
|
2614
|
-
source: {
|
|
2615
|
-
type: "base64";
|
|
2616
|
-
media_type: "image/jpeg";
|
|
2617
|
-
data: string;
|
|
2618
|
-
};
|
|
2619
|
-
cache_control?: {
|
|
2620
|
-
type: "ephemeral";
|
|
2621
|
-
} | undefined;
|
|
2622
|
-
}, {
|
|
2623
|
-
type: "image";
|
|
2624
|
-
source: {
|
|
2625
|
-
type: "base64";
|
|
2626
|
-
media_type: "image/jpeg";
|
|
2627
|
-
data: string;
|
|
2628
|
-
};
|
|
2629
|
-
cache_control?: {
|
|
2630
|
-
type: "ephemeral";
|
|
2631
|
-
} | undefined;
|
|
2632
|
-
}>]>, "many">]>;
|
|
1789
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
1790
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
2633
1791
|
}, "strip", z.ZodTypeAny, {
|
|
2634
|
-
|
|
2635
|
-
type: "text";
|
|
2636
|
-
text: string;
|
|
2637
|
-
cache_control?: {
|
|
2638
|
-
type: "ephemeral";
|
|
2639
|
-
} | undefined;
|
|
2640
|
-
} | {
|
|
2641
|
-
type: "tool_use";
|
|
2642
|
-
name: string;
|
|
2643
|
-
id: string;
|
|
2644
|
-
input: Record<string, any>;
|
|
2645
|
-
cache_control?: {
|
|
2646
|
-
type: "ephemeral";
|
|
2647
|
-
} | undefined;
|
|
2648
|
-
} | {
|
|
2649
|
-
type: "tool_result";
|
|
2650
|
-
content: string;
|
|
2651
|
-
tool_use_id: string;
|
|
2652
|
-
cache_control?: {
|
|
2653
|
-
type: "ephemeral";
|
|
2654
|
-
} | undefined;
|
|
2655
|
-
} | {
|
|
2656
|
-
type: "image";
|
|
2657
|
-
source: {
|
|
2658
|
-
type: "base64";
|
|
2659
|
-
media_type: "image/jpeg";
|
|
2660
|
-
data: string;
|
|
2661
|
-
};
|
|
2662
|
-
cache_control?: {
|
|
2663
|
-
type: "ephemeral";
|
|
2664
|
-
} | undefined;
|
|
2665
|
-
})[];
|
|
2666
|
-
role: "user" | "assistant";
|
|
1792
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2667
1793
|
}, {
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
text: string;
|
|
2671
|
-
cache_control?: {
|
|
2672
|
-
type: "ephemeral";
|
|
2673
|
-
} | undefined;
|
|
2674
|
-
} | {
|
|
2675
|
-
type: "tool_use";
|
|
2676
|
-
name: string;
|
|
2677
|
-
id: string;
|
|
2678
|
-
input: Record<string, any>;
|
|
2679
|
-
cache_control?: {
|
|
2680
|
-
type: "ephemeral";
|
|
2681
|
-
} | undefined;
|
|
2682
|
-
} | {
|
|
2683
|
-
type: "tool_result";
|
|
2684
|
-
content: string;
|
|
2685
|
-
tool_use_id: string;
|
|
2686
|
-
cache_control?: {
|
|
2687
|
-
type: "ephemeral";
|
|
2688
|
-
} | undefined;
|
|
2689
|
-
} | {
|
|
2690
|
-
type: "image";
|
|
2691
|
-
source: {
|
|
2692
|
-
type: "base64";
|
|
2693
|
-
media_type: "image/jpeg";
|
|
2694
|
-
data: string;
|
|
2695
|
-
};
|
|
2696
|
-
cache_control?: {
|
|
2697
|
-
type: "ephemeral";
|
|
2698
|
-
} | undefined;
|
|
2699
|
-
})[];
|
|
2700
|
-
role: "user" | "assistant";
|
|
2701
|
-
}>, "many">;
|
|
1794
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1795
|
+
}>>, "many">;
|
|
2702
1796
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
1797
|
+
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
2703
1798
|
}, "strip", z.ZodTypeAny, {
|
|
2704
1799
|
agentContext: string;
|
|
2705
1800
|
fileContext: {
|
|
@@ -2730,42 +1825,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2730
1825
|
content: string;
|
|
2731
1826
|
}[][] | undefined;
|
|
2732
1827
|
};
|
|
2733
|
-
messageHistory: {
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
text: string;
|
|
2737
|
-
cache_control?: {
|
|
2738
|
-
type: "ephemeral";
|
|
2739
|
-
} | undefined;
|
|
2740
|
-
} | {
|
|
2741
|
-
type: "tool_use";
|
|
2742
|
-
name: string;
|
|
2743
|
-
id: string;
|
|
2744
|
-
input: Record<string, any>;
|
|
2745
|
-
cache_control?: {
|
|
2746
|
-
type: "ephemeral";
|
|
2747
|
-
} | undefined;
|
|
2748
|
-
} | {
|
|
2749
|
-
type: "tool_result";
|
|
2750
|
-
content: string;
|
|
2751
|
-
tool_use_id: string;
|
|
2752
|
-
cache_control?: {
|
|
2753
|
-
type: "ephemeral";
|
|
2754
|
-
} | undefined;
|
|
2755
|
-
} | {
|
|
2756
|
-
type: "image";
|
|
2757
|
-
source: {
|
|
2758
|
-
type: "base64";
|
|
2759
|
-
media_type: "image/jpeg";
|
|
2760
|
-
data: string;
|
|
2761
|
-
};
|
|
2762
|
-
cache_control?: {
|
|
2763
|
-
type: "ephemeral";
|
|
2764
|
-
} | undefined;
|
|
2765
|
-
})[];
|
|
2766
|
-
role: "user" | "assistant";
|
|
2767
|
-
}[];
|
|
1828
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1829
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1830
|
+
})[];
|
|
2768
1831
|
consecutiveAssistantMessages?: number | undefined;
|
|
1832
|
+
agentStepsRemaining?: number | undefined;
|
|
2769
1833
|
}, {
|
|
2770
1834
|
agentContext: string;
|
|
2771
1835
|
fileContext: {
|
|
@@ -2796,42 +1860,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2796
1860
|
content: string;
|
|
2797
1861
|
}[][] | undefined;
|
|
2798
1862
|
};
|
|
2799
|
-
messageHistory: {
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
text: string;
|
|
2803
|
-
cache_control?: {
|
|
2804
|
-
type: "ephemeral";
|
|
2805
|
-
} | undefined;
|
|
2806
|
-
} | {
|
|
2807
|
-
type: "tool_use";
|
|
2808
|
-
name: string;
|
|
2809
|
-
id: string;
|
|
2810
|
-
input: Record<string, any>;
|
|
2811
|
-
cache_control?: {
|
|
2812
|
-
type: "ephemeral";
|
|
2813
|
-
} | undefined;
|
|
2814
|
-
} | {
|
|
2815
|
-
type: "tool_result";
|
|
2816
|
-
content: string;
|
|
2817
|
-
tool_use_id: string;
|
|
2818
|
-
cache_control?: {
|
|
2819
|
-
type: "ephemeral";
|
|
2820
|
-
} | undefined;
|
|
2821
|
-
} | {
|
|
2822
|
-
type: "image";
|
|
2823
|
-
source: {
|
|
2824
|
-
type: "base64";
|
|
2825
|
-
media_type: "image/jpeg";
|
|
2826
|
-
data: string;
|
|
2827
|
-
};
|
|
2828
|
-
cache_control?: {
|
|
2829
|
-
type: "ephemeral";
|
|
2830
|
-
} | undefined;
|
|
2831
|
-
})[];
|
|
2832
|
-
role: "user" | "assistant";
|
|
2833
|
-
}[];
|
|
1863
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1864
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1865
|
+
})[];
|
|
2834
1866
|
consecutiveAssistantMessages?: number | undefined;
|
|
1867
|
+
agentStepsRemaining?: number | undefined;
|
|
2835
1868
|
}>;
|
|
2836
1869
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
2837
1870
|
name: z.ZodString;
|
|
@@ -2892,42 +1925,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2892
1925
|
content: string;
|
|
2893
1926
|
}[][] | undefined;
|
|
2894
1927
|
};
|
|
2895
|
-
messageHistory: {
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
text: string;
|
|
2899
|
-
cache_control?: {
|
|
2900
|
-
type: "ephemeral";
|
|
2901
|
-
} | undefined;
|
|
2902
|
-
} | {
|
|
2903
|
-
type: "tool_use";
|
|
2904
|
-
name: string;
|
|
2905
|
-
id: string;
|
|
2906
|
-
input: Record<string, any>;
|
|
2907
|
-
cache_control?: {
|
|
2908
|
-
type: "ephemeral";
|
|
2909
|
-
} | undefined;
|
|
2910
|
-
} | {
|
|
2911
|
-
type: "tool_result";
|
|
2912
|
-
content: string;
|
|
2913
|
-
tool_use_id: string;
|
|
2914
|
-
cache_control?: {
|
|
2915
|
-
type: "ephemeral";
|
|
2916
|
-
} | undefined;
|
|
2917
|
-
} | {
|
|
2918
|
-
type: "image";
|
|
2919
|
-
source: {
|
|
2920
|
-
type: "base64";
|
|
2921
|
-
media_type: "image/jpeg";
|
|
2922
|
-
data: string;
|
|
2923
|
-
};
|
|
2924
|
-
cache_control?: {
|
|
2925
|
-
type: "ephemeral";
|
|
2926
|
-
} | undefined;
|
|
2927
|
-
})[];
|
|
2928
|
-
role: "user" | "assistant";
|
|
2929
|
-
}[];
|
|
1928
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1929
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1930
|
+
})[];
|
|
2930
1931
|
consecutiveAssistantMessages?: number | undefined;
|
|
1932
|
+
agentStepsRemaining?: number | undefined;
|
|
2931
1933
|
};
|
|
2932
1934
|
toolResults: {
|
|
2933
1935
|
name: string;
|
|
@@ -2972,42 +1974,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2972
1974
|
content: string;
|
|
2973
1975
|
}[][] | undefined;
|
|
2974
1976
|
};
|
|
2975
|
-
messageHistory: {
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
text: string;
|
|
2979
|
-
cache_control?: {
|
|
2980
|
-
type: "ephemeral";
|
|
2981
|
-
} | undefined;
|
|
2982
|
-
} | {
|
|
2983
|
-
type: "tool_use";
|
|
2984
|
-
name: string;
|
|
2985
|
-
id: string;
|
|
2986
|
-
input: Record<string, any>;
|
|
2987
|
-
cache_control?: {
|
|
2988
|
-
type: "ephemeral";
|
|
2989
|
-
} | undefined;
|
|
2990
|
-
} | {
|
|
2991
|
-
type: "tool_result";
|
|
2992
|
-
content: string;
|
|
2993
|
-
tool_use_id: string;
|
|
2994
|
-
cache_control?: {
|
|
2995
|
-
type: "ephemeral";
|
|
2996
|
-
} | undefined;
|
|
2997
|
-
} | {
|
|
2998
|
-
type: "image";
|
|
2999
|
-
source: {
|
|
3000
|
-
type: "base64";
|
|
3001
|
-
media_type: "image/jpeg";
|
|
3002
|
-
data: string;
|
|
3003
|
-
};
|
|
3004
|
-
cache_control?: {
|
|
3005
|
-
type: "ephemeral";
|
|
3006
|
-
} | undefined;
|
|
3007
|
-
})[];
|
|
3008
|
-
role: "user" | "assistant";
|
|
3009
|
-
}[];
|
|
1977
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
1978
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
1979
|
+
})[];
|
|
3010
1980
|
consecutiveAssistantMessages?: number | undefined;
|
|
1981
|
+
agentStepsRemaining?: number | undefined;
|
|
3011
1982
|
};
|
|
3012
1983
|
toolResults: {
|
|
3013
1984
|
name: string;
|
|
@@ -3321,42 +2292,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3321
2292
|
content: string;
|
|
3322
2293
|
}[][] | undefined;
|
|
3323
2294
|
};
|
|
3324
|
-
messageHistory: {
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
text: string;
|
|
3328
|
-
cache_control?: {
|
|
3329
|
-
type: "ephemeral";
|
|
3330
|
-
} | undefined;
|
|
3331
|
-
} | {
|
|
3332
|
-
type: "tool_use";
|
|
3333
|
-
name: string;
|
|
3334
|
-
id: string;
|
|
3335
|
-
input: Record<string, any>;
|
|
3336
|
-
cache_control?: {
|
|
3337
|
-
type: "ephemeral";
|
|
3338
|
-
} | undefined;
|
|
3339
|
-
} | {
|
|
3340
|
-
type: "tool_result";
|
|
3341
|
-
content: string;
|
|
3342
|
-
tool_use_id: string;
|
|
3343
|
-
cache_control?: {
|
|
3344
|
-
type: "ephemeral";
|
|
3345
|
-
} | undefined;
|
|
3346
|
-
} | {
|
|
3347
|
-
type: "image";
|
|
3348
|
-
source: {
|
|
3349
|
-
type: "base64";
|
|
3350
|
-
media_type: "image/jpeg";
|
|
3351
|
-
data: string;
|
|
3352
|
-
};
|
|
3353
|
-
cache_control?: {
|
|
3354
|
-
type: "ephemeral";
|
|
3355
|
-
} | undefined;
|
|
3356
|
-
})[];
|
|
3357
|
-
role: "user" | "assistant";
|
|
3358
|
-
}[];
|
|
2295
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2296
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2297
|
+
})[];
|
|
3359
2298
|
consecutiveAssistantMessages?: number | undefined;
|
|
2299
|
+
agentStepsRemaining?: number | undefined;
|
|
3360
2300
|
};
|
|
3361
2301
|
toolResults: {
|
|
3362
2302
|
name: string;
|
|
@@ -3496,42 +2436,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3496
2436
|
content: string;
|
|
3497
2437
|
}[][] | undefined;
|
|
3498
2438
|
};
|
|
3499
|
-
messageHistory: {
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
text: string;
|
|
3503
|
-
cache_control?: {
|
|
3504
|
-
type: "ephemeral";
|
|
3505
|
-
} | undefined;
|
|
3506
|
-
} | {
|
|
3507
|
-
type: "tool_use";
|
|
3508
|
-
name: string;
|
|
3509
|
-
id: string;
|
|
3510
|
-
input: Record<string, any>;
|
|
3511
|
-
cache_control?: {
|
|
3512
|
-
type: "ephemeral";
|
|
3513
|
-
} | undefined;
|
|
3514
|
-
} | {
|
|
3515
|
-
type: "tool_result";
|
|
3516
|
-
content: string;
|
|
3517
|
-
tool_use_id: string;
|
|
3518
|
-
cache_control?: {
|
|
3519
|
-
type: "ephemeral";
|
|
3520
|
-
} | undefined;
|
|
3521
|
-
} | {
|
|
3522
|
-
type: "image";
|
|
3523
|
-
source: {
|
|
3524
|
-
type: "base64";
|
|
3525
|
-
media_type: "image/jpeg";
|
|
3526
|
-
data: string;
|
|
3527
|
-
};
|
|
3528
|
-
cache_control?: {
|
|
3529
|
-
type: "ephemeral";
|
|
3530
|
-
} | undefined;
|
|
3531
|
-
})[];
|
|
3532
|
-
role: "user" | "assistant";
|
|
3533
|
-
}[];
|
|
2439
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2440
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2441
|
+
})[];
|
|
3534
2442
|
consecutiveAssistantMessages?: number | undefined;
|
|
2443
|
+
agentStepsRemaining?: number | undefined;
|
|
3535
2444
|
};
|
|
3536
2445
|
toolResults: {
|
|
3537
2446
|
name: string;
|
|
@@ -3837,196 +2746,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3837
2746
|
content: string;
|
|
3838
2747
|
}[][] | undefined;
|
|
3839
2748
|
}>;
|
|
3840
|
-
messageHistory: z.ZodArray<z.ZodObject<{
|
|
3841
|
-
|
|
3842
|
-
content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
3843
|
-
type: z.ZodLiteral<"text">;
|
|
3844
|
-
text: z.ZodString;
|
|
3845
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3846
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
3847
|
-
}, "strip", z.ZodTypeAny, {
|
|
3848
|
-
type: "ephemeral";
|
|
3849
|
-
}, {
|
|
3850
|
-
type: "ephemeral";
|
|
3851
|
-
}>>;
|
|
3852
|
-
}, "strip", z.ZodTypeAny, {
|
|
3853
|
-
type: "text";
|
|
3854
|
-
text: string;
|
|
3855
|
-
cache_control?: {
|
|
3856
|
-
type: "ephemeral";
|
|
3857
|
-
} | undefined;
|
|
3858
|
-
}, {
|
|
3859
|
-
type: "text";
|
|
3860
|
-
text: string;
|
|
3861
|
-
cache_control?: {
|
|
3862
|
-
type: "ephemeral";
|
|
3863
|
-
} | undefined;
|
|
3864
|
-
}>, z.ZodObject<{
|
|
3865
|
-
type: z.ZodLiteral<"tool_use">;
|
|
3866
|
-
id: z.ZodString;
|
|
3867
|
-
name: z.ZodString;
|
|
3868
|
-
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
3869
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3870
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
3871
|
-
}, "strip", z.ZodTypeAny, {
|
|
3872
|
-
type: "ephemeral";
|
|
3873
|
-
}, {
|
|
3874
|
-
type: "ephemeral";
|
|
3875
|
-
}>>;
|
|
3876
|
-
}, "strip", z.ZodTypeAny, {
|
|
3877
|
-
type: "tool_use";
|
|
3878
|
-
name: string;
|
|
3879
|
-
id: string;
|
|
3880
|
-
input: Record<string, any>;
|
|
3881
|
-
cache_control?: {
|
|
3882
|
-
type: "ephemeral";
|
|
3883
|
-
} | undefined;
|
|
3884
|
-
}, {
|
|
3885
|
-
type: "tool_use";
|
|
3886
|
-
name: string;
|
|
3887
|
-
id: string;
|
|
3888
|
-
input: Record<string, any>;
|
|
3889
|
-
cache_control?: {
|
|
3890
|
-
type: "ephemeral";
|
|
3891
|
-
} | undefined;
|
|
3892
|
-
}>, z.ZodObject<{
|
|
3893
|
-
type: z.ZodLiteral<"tool_result">;
|
|
3894
|
-
tool_use_id: z.ZodString;
|
|
3895
|
-
content: z.ZodString;
|
|
3896
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3897
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
3898
|
-
}, "strip", z.ZodTypeAny, {
|
|
3899
|
-
type: "ephemeral";
|
|
3900
|
-
}, {
|
|
3901
|
-
type: "ephemeral";
|
|
3902
|
-
}>>;
|
|
3903
|
-
}, "strip", z.ZodTypeAny, {
|
|
3904
|
-
type: "tool_result";
|
|
3905
|
-
content: string;
|
|
3906
|
-
tool_use_id: string;
|
|
3907
|
-
cache_control?: {
|
|
3908
|
-
type: "ephemeral";
|
|
3909
|
-
} | undefined;
|
|
3910
|
-
}, {
|
|
3911
|
-
type: "tool_result";
|
|
3912
|
-
content: string;
|
|
3913
|
-
tool_use_id: string;
|
|
3914
|
-
cache_control?: {
|
|
3915
|
-
type: "ephemeral";
|
|
3916
|
-
} | undefined;
|
|
3917
|
-
}>, z.ZodObject<{
|
|
3918
|
-
type: z.ZodLiteral<"image">;
|
|
3919
|
-
source: z.ZodObject<{
|
|
3920
|
-
type: z.ZodLiteral<"base64">;
|
|
3921
|
-
media_type: z.ZodLiteral<"image/jpeg">;
|
|
3922
|
-
data: z.ZodString;
|
|
3923
|
-
}, "strip", z.ZodTypeAny, {
|
|
3924
|
-
type: "base64";
|
|
3925
|
-
media_type: "image/jpeg";
|
|
3926
|
-
data: string;
|
|
3927
|
-
}, {
|
|
3928
|
-
type: "base64";
|
|
3929
|
-
media_type: "image/jpeg";
|
|
3930
|
-
data: string;
|
|
3931
|
-
}>;
|
|
3932
|
-
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3933
|
-
type: z.ZodLiteral<"ephemeral">;
|
|
3934
|
-
}, "strip", z.ZodTypeAny, {
|
|
3935
|
-
type: "ephemeral";
|
|
3936
|
-
}, {
|
|
3937
|
-
type: "ephemeral";
|
|
3938
|
-
}>>;
|
|
3939
|
-
}, "strip", z.ZodTypeAny, {
|
|
3940
|
-
type: "image";
|
|
3941
|
-
source: {
|
|
3942
|
-
type: "base64";
|
|
3943
|
-
media_type: "image/jpeg";
|
|
3944
|
-
data: string;
|
|
3945
|
-
};
|
|
3946
|
-
cache_control?: {
|
|
3947
|
-
type: "ephemeral";
|
|
3948
|
-
} | undefined;
|
|
3949
|
-
}, {
|
|
3950
|
-
type: "image";
|
|
3951
|
-
source: {
|
|
3952
|
-
type: "base64";
|
|
3953
|
-
media_type: "image/jpeg";
|
|
3954
|
-
data: string;
|
|
3955
|
-
};
|
|
3956
|
-
cache_control?: {
|
|
3957
|
-
type: "ephemeral";
|
|
3958
|
-
} | undefined;
|
|
3959
|
-
}>]>, "many">]>;
|
|
2749
|
+
messageHistory: z.ZodArray<z.ZodIntersection<z.ZodType<import("ai").CoreMessage, z.ZodTypeDef, import("ai").CoreMessage>, z.ZodObject<{
|
|
2750
|
+
timeToLive: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"agentStep">, z.ZodLiteral<"userPrompt">]>>;
|
|
3960
2751
|
}, "strip", z.ZodTypeAny, {
|
|
3961
|
-
|
|
3962
|
-
type: "text";
|
|
3963
|
-
text: string;
|
|
3964
|
-
cache_control?: {
|
|
3965
|
-
type: "ephemeral";
|
|
3966
|
-
} | undefined;
|
|
3967
|
-
} | {
|
|
3968
|
-
type: "tool_use";
|
|
3969
|
-
name: string;
|
|
3970
|
-
id: string;
|
|
3971
|
-
input: Record<string, any>;
|
|
3972
|
-
cache_control?: {
|
|
3973
|
-
type: "ephemeral";
|
|
3974
|
-
} | undefined;
|
|
3975
|
-
} | {
|
|
3976
|
-
type: "tool_result";
|
|
3977
|
-
content: string;
|
|
3978
|
-
tool_use_id: string;
|
|
3979
|
-
cache_control?: {
|
|
3980
|
-
type: "ephemeral";
|
|
3981
|
-
} | undefined;
|
|
3982
|
-
} | {
|
|
3983
|
-
type: "image";
|
|
3984
|
-
source: {
|
|
3985
|
-
type: "base64";
|
|
3986
|
-
media_type: "image/jpeg";
|
|
3987
|
-
data: string;
|
|
3988
|
-
};
|
|
3989
|
-
cache_control?: {
|
|
3990
|
-
type: "ephemeral";
|
|
3991
|
-
} | undefined;
|
|
3992
|
-
})[];
|
|
3993
|
-
role: "user" | "assistant";
|
|
2752
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3994
2753
|
}, {
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
text: string;
|
|
3998
|
-
cache_control?: {
|
|
3999
|
-
type: "ephemeral";
|
|
4000
|
-
} | undefined;
|
|
4001
|
-
} | {
|
|
4002
|
-
type: "tool_use";
|
|
4003
|
-
name: string;
|
|
4004
|
-
id: string;
|
|
4005
|
-
input: Record<string, any>;
|
|
4006
|
-
cache_control?: {
|
|
4007
|
-
type: "ephemeral";
|
|
4008
|
-
} | undefined;
|
|
4009
|
-
} | {
|
|
4010
|
-
type: "tool_result";
|
|
4011
|
-
content: string;
|
|
4012
|
-
tool_use_id: string;
|
|
4013
|
-
cache_control?: {
|
|
4014
|
-
type: "ephemeral";
|
|
4015
|
-
} | undefined;
|
|
4016
|
-
} | {
|
|
4017
|
-
type: "image";
|
|
4018
|
-
source: {
|
|
4019
|
-
type: "base64";
|
|
4020
|
-
media_type: "image/jpeg";
|
|
4021
|
-
data: string;
|
|
4022
|
-
};
|
|
4023
|
-
cache_control?: {
|
|
4024
|
-
type: "ephemeral";
|
|
4025
|
-
} | undefined;
|
|
4026
|
-
})[];
|
|
4027
|
-
role: "user" | "assistant";
|
|
4028
|
-
}>, "many">;
|
|
2754
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2755
|
+
}>>, "many">;
|
|
4029
2756
|
consecutiveAssistantMessages: z.ZodOptional<z.ZodNumber>;
|
|
2757
|
+
agentStepsRemaining: z.ZodOptional<z.ZodNumber>;
|
|
4030
2758
|
}, "strip", z.ZodTypeAny, {
|
|
4031
2759
|
agentContext: string;
|
|
4032
2760
|
fileContext: {
|
|
@@ -4057,42 +2785,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4057
2785
|
content: string;
|
|
4058
2786
|
}[][] | undefined;
|
|
4059
2787
|
};
|
|
4060
|
-
messageHistory: {
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
text: string;
|
|
4064
|
-
cache_control?: {
|
|
4065
|
-
type: "ephemeral";
|
|
4066
|
-
} | undefined;
|
|
4067
|
-
} | {
|
|
4068
|
-
type: "tool_use";
|
|
4069
|
-
name: string;
|
|
4070
|
-
id: string;
|
|
4071
|
-
input: Record<string, any>;
|
|
4072
|
-
cache_control?: {
|
|
4073
|
-
type: "ephemeral";
|
|
4074
|
-
} | undefined;
|
|
4075
|
-
} | {
|
|
4076
|
-
type: "tool_result";
|
|
4077
|
-
content: string;
|
|
4078
|
-
tool_use_id: string;
|
|
4079
|
-
cache_control?: {
|
|
4080
|
-
type: "ephemeral";
|
|
4081
|
-
} | undefined;
|
|
4082
|
-
} | {
|
|
4083
|
-
type: "image";
|
|
4084
|
-
source: {
|
|
4085
|
-
type: "base64";
|
|
4086
|
-
media_type: "image/jpeg";
|
|
4087
|
-
data: string;
|
|
4088
|
-
};
|
|
4089
|
-
cache_control?: {
|
|
4090
|
-
type: "ephemeral";
|
|
4091
|
-
} | undefined;
|
|
4092
|
-
})[];
|
|
4093
|
-
role: "user" | "assistant";
|
|
4094
|
-
}[];
|
|
2788
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2789
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2790
|
+
})[];
|
|
4095
2791
|
consecutiveAssistantMessages?: number | undefined;
|
|
2792
|
+
agentStepsRemaining?: number | undefined;
|
|
4096
2793
|
}, {
|
|
4097
2794
|
agentContext: string;
|
|
4098
2795
|
fileContext: {
|
|
@@ -4123,42 +2820,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4123
2820
|
content: string;
|
|
4124
2821
|
}[][] | undefined;
|
|
4125
2822
|
};
|
|
4126
|
-
messageHistory: {
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
text: string;
|
|
4130
|
-
cache_control?: {
|
|
4131
|
-
type: "ephemeral";
|
|
4132
|
-
} | undefined;
|
|
4133
|
-
} | {
|
|
4134
|
-
type: "tool_use";
|
|
4135
|
-
name: string;
|
|
4136
|
-
id: string;
|
|
4137
|
-
input: Record<string, any>;
|
|
4138
|
-
cache_control?: {
|
|
4139
|
-
type: "ephemeral";
|
|
4140
|
-
} | undefined;
|
|
4141
|
-
} | {
|
|
4142
|
-
type: "tool_result";
|
|
4143
|
-
content: string;
|
|
4144
|
-
tool_use_id: string;
|
|
4145
|
-
cache_control?: {
|
|
4146
|
-
type: "ephemeral";
|
|
4147
|
-
} | undefined;
|
|
4148
|
-
} | {
|
|
4149
|
-
type: "image";
|
|
4150
|
-
source: {
|
|
4151
|
-
type: "base64";
|
|
4152
|
-
media_type: "image/jpeg";
|
|
4153
|
-
data: string;
|
|
4154
|
-
};
|
|
4155
|
-
cache_control?: {
|
|
4156
|
-
type: "ephemeral";
|
|
4157
|
-
} | undefined;
|
|
4158
|
-
})[];
|
|
4159
|
-
role: "user" | "assistant";
|
|
4160
|
-
}[];
|
|
2823
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2824
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2825
|
+
})[];
|
|
4161
2826
|
consecutiveAssistantMessages?: number | undefined;
|
|
2827
|
+
agentStepsRemaining?: number | undefined;
|
|
4162
2828
|
}>;
|
|
4163
2829
|
toolCalls: z.ZodArray<z.ZodObject<{
|
|
4164
2830
|
name: z.ZodString;
|
|
@@ -4219,42 +2885,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4219
2885
|
content: string;
|
|
4220
2886
|
}[][] | undefined;
|
|
4221
2887
|
};
|
|
4222
|
-
messageHistory: {
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
text: string;
|
|
4226
|
-
cache_control?: {
|
|
4227
|
-
type: "ephemeral";
|
|
4228
|
-
} | undefined;
|
|
4229
|
-
} | {
|
|
4230
|
-
type: "tool_use";
|
|
4231
|
-
name: string;
|
|
4232
|
-
id: string;
|
|
4233
|
-
input: Record<string, any>;
|
|
4234
|
-
cache_control?: {
|
|
4235
|
-
type: "ephemeral";
|
|
4236
|
-
} | undefined;
|
|
4237
|
-
} | {
|
|
4238
|
-
type: "tool_result";
|
|
4239
|
-
content: string;
|
|
4240
|
-
tool_use_id: string;
|
|
4241
|
-
cache_control?: {
|
|
4242
|
-
type: "ephemeral";
|
|
4243
|
-
} | undefined;
|
|
4244
|
-
} | {
|
|
4245
|
-
type: "image";
|
|
4246
|
-
source: {
|
|
4247
|
-
type: "base64";
|
|
4248
|
-
media_type: "image/jpeg";
|
|
4249
|
-
data: string;
|
|
4250
|
-
};
|
|
4251
|
-
cache_control?: {
|
|
4252
|
-
type: "ephemeral";
|
|
4253
|
-
} | undefined;
|
|
4254
|
-
})[];
|
|
4255
|
-
role: "user" | "assistant";
|
|
4256
|
-
}[];
|
|
2888
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2889
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2890
|
+
})[];
|
|
4257
2891
|
consecutiveAssistantMessages?: number | undefined;
|
|
2892
|
+
agentStepsRemaining?: number | undefined;
|
|
4258
2893
|
};
|
|
4259
2894
|
toolResults: {
|
|
4260
2895
|
name: string;
|
|
@@ -4299,42 +2934,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4299
2934
|
content: string;
|
|
4300
2935
|
}[][] | undefined;
|
|
4301
2936
|
};
|
|
4302
|
-
messageHistory: {
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
text: string;
|
|
4306
|
-
cache_control?: {
|
|
4307
|
-
type: "ephemeral";
|
|
4308
|
-
} | undefined;
|
|
4309
|
-
} | {
|
|
4310
|
-
type: "tool_use";
|
|
4311
|
-
name: string;
|
|
4312
|
-
id: string;
|
|
4313
|
-
input: Record<string, any>;
|
|
4314
|
-
cache_control?: {
|
|
4315
|
-
type: "ephemeral";
|
|
4316
|
-
} | undefined;
|
|
4317
|
-
} | {
|
|
4318
|
-
type: "tool_result";
|
|
4319
|
-
content: string;
|
|
4320
|
-
tool_use_id: string;
|
|
4321
|
-
cache_control?: {
|
|
4322
|
-
type: "ephemeral";
|
|
4323
|
-
} | undefined;
|
|
4324
|
-
} | {
|
|
4325
|
-
type: "image";
|
|
4326
|
-
source: {
|
|
4327
|
-
type: "base64";
|
|
4328
|
-
media_type: "image/jpeg";
|
|
4329
|
-
data: string;
|
|
4330
|
-
};
|
|
4331
|
-
cache_control?: {
|
|
4332
|
-
type: "ephemeral";
|
|
4333
|
-
} | undefined;
|
|
4334
|
-
})[];
|
|
4335
|
-
role: "user" | "assistant";
|
|
4336
|
-
}[];
|
|
2937
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
2938
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
2939
|
+
})[];
|
|
4337
2940
|
consecutiveAssistantMessages?: number | undefined;
|
|
2941
|
+
agentStepsRemaining?: number | undefined;
|
|
4338
2942
|
};
|
|
4339
2943
|
toolResults: {
|
|
4340
2944
|
name: string;
|
|
@@ -4648,42 +3252,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4648
3252
|
content: string;
|
|
4649
3253
|
}[][] | undefined;
|
|
4650
3254
|
};
|
|
4651
|
-
messageHistory: {
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
text: string;
|
|
4655
|
-
cache_control?: {
|
|
4656
|
-
type: "ephemeral";
|
|
4657
|
-
} | undefined;
|
|
4658
|
-
} | {
|
|
4659
|
-
type: "tool_use";
|
|
4660
|
-
name: string;
|
|
4661
|
-
id: string;
|
|
4662
|
-
input: Record<string, any>;
|
|
4663
|
-
cache_control?: {
|
|
4664
|
-
type: "ephemeral";
|
|
4665
|
-
} | undefined;
|
|
4666
|
-
} | {
|
|
4667
|
-
type: "tool_result";
|
|
4668
|
-
content: string;
|
|
4669
|
-
tool_use_id: string;
|
|
4670
|
-
cache_control?: {
|
|
4671
|
-
type: "ephemeral";
|
|
4672
|
-
} | undefined;
|
|
4673
|
-
} | {
|
|
4674
|
-
type: "image";
|
|
4675
|
-
source: {
|
|
4676
|
-
type: "base64";
|
|
4677
|
-
media_type: "image/jpeg";
|
|
4678
|
-
data: string;
|
|
4679
|
-
};
|
|
4680
|
-
cache_control?: {
|
|
4681
|
-
type: "ephemeral";
|
|
4682
|
-
} | undefined;
|
|
4683
|
-
})[];
|
|
4684
|
-
role: "user" | "assistant";
|
|
4685
|
-
}[];
|
|
3255
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
3256
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3257
|
+
})[];
|
|
4686
3258
|
consecutiveAssistantMessages?: number | undefined;
|
|
3259
|
+
agentStepsRemaining?: number | undefined;
|
|
4687
3260
|
};
|
|
4688
3261
|
toolResults: {
|
|
4689
3262
|
name: string;
|
|
@@ -4823,42 +3396,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4823
3396
|
content: string;
|
|
4824
3397
|
}[][] | undefined;
|
|
4825
3398
|
};
|
|
4826
|
-
messageHistory: {
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
text: string;
|
|
4830
|
-
cache_control?: {
|
|
4831
|
-
type: "ephemeral";
|
|
4832
|
-
} | undefined;
|
|
4833
|
-
} | {
|
|
4834
|
-
type: "tool_use";
|
|
4835
|
-
name: string;
|
|
4836
|
-
id: string;
|
|
4837
|
-
input: Record<string, any>;
|
|
4838
|
-
cache_control?: {
|
|
4839
|
-
type: "ephemeral";
|
|
4840
|
-
} | undefined;
|
|
4841
|
-
} | {
|
|
4842
|
-
type: "tool_result";
|
|
4843
|
-
content: string;
|
|
4844
|
-
tool_use_id: string;
|
|
4845
|
-
cache_control?: {
|
|
4846
|
-
type: "ephemeral";
|
|
4847
|
-
} | undefined;
|
|
4848
|
-
} | {
|
|
4849
|
-
type: "image";
|
|
4850
|
-
source: {
|
|
4851
|
-
type: "base64";
|
|
4852
|
-
media_type: "image/jpeg";
|
|
4853
|
-
data: string;
|
|
4854
|
-
};
|
|
4855
|
-
cache_control?: {
|
|
4856
|
-
type: "ephemeral";
|
|
4857
|
-
} | undefined;
|
|
4858
|
-
})[];
|
|
4859
|
-
role: "user" | "assistant";
|
|
4860
|
-
}[];
|
|
3399
|
+
messageHistory: (import("ai").CoreMessage & {
|
|
3400
|
+
timeToLive?: "agentStep" | "userPrompt" | undefined;
|
|
3401
|
+
})[];
|
|
4861
3402
|
consecutiveAssistantMessages?: number | undefined;
|
|
3403
|
+
agentStepsRemaining?: number | undefined;
|
|
4862
3404
|
};
|
|
4863
3405
|
toolResults: {
|
|
4864
3406
|
name: string;
|