codebuff 1.0.201 → 1.0.203
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/cli.d.ts +2 -0
- package/dist/cli.js +46 -0
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +13 -8
- package/dist/client.js +108 -11
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +98 -116
- package/dist/common/actions.d.ts.map +1 -0
- package/dist/common/actions.js +0 -1
- package/dist/common/actions.js.map +1 -1
- package/dist/common/api-keys/constants.d.ts +8 -0
- package/dist/common/api-keys/constants.d.ts.map +1 -0
- package/dist/common/api-keys/constants.js +26 -0
- package/dist/common/api-keys/constants.js.map +1 -0
- package/dist/common/api-keys/crypto.d.ts +24 -0
- package/dist/common/api-keys/crypto.d.ts.map +1 -0
- package/dist/common/api-keys/crypto.js +186 -0
- package/dist/common/api-keys/crypto.js.map +1 -0
- package/dist/common/billing/quota-manager.d.ts.map +1 -0
- package/dist/common/browser-actions.d.ts.map +1 -0
- package/dist/common/constants/tools.d.ts.map +1 -0
- package/dist/common/constants.d.ts +2 -1
- package/dist/common/constants.d.ts.map +1 -0
- package/dist/common/constants.js +8 -3
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/drizzle.config.d.ts.map +1 -0
- package/dist/common/db/env.d.mts.map +1 -0
- package/dist/common/db/index.d.ts.map +1 -0
- package/dist/common/db/schema.d.ts +76 -0
- package/dist/common/db/schema.d.ts.map +1 -0
- package/dist/common/db/schema.js +19 -1
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/env.d.mts.map +1 -0
- package/dist/common/env.mjs +2 -1
- package/dist/common/env.mjs.map +1 -1
- package/dist/common/project-file-tree.d.ts +1 -1
- package/dist/common/project-file-tree.d.ts.map +1 -0
- package/dist/common/project-file-tree.js +39 -25
- package/dist/common/project-file-tree.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +2 -2
- package/dist/common/types/agent-state.d.ts.map +1 -0
- package/dist/common/types/message.d.ts +14 -14
- package/dist/common/types/message.d.ts.map +1 -0
- package/dist/common/types/plan.d.ts.map +1 -0
- package/dist/common/types/referral.d.ts.map +1 -0
- package/dist/common/types/tools.d.ts.map +1 -0
- package/dist/common/types/usage.d.ts.map +1 -0
- package/dist/common/util/__tests__/messages.test.d.ts.map +1 -0
- package/dist/common/util/__tests__/string.test.d.ts.map +1 -0
- package/dist/common/util/array.d.ts.map +1 -0
- package/dist/common/util/changes.d.ts.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/credentials.d.ts.map +1 -0
- package/dist/common/util/crypto.d.ts +27 -0
- package/dist/common/util/crypto.js +174 -0
- package/dist/common/util/crypto.js.map +1 -0
- package/dist/common/util/dates.d.ts.map +1 -0
- package/dist/common/util/file.d.ts.map +1 -0
- package/dist/common/util/git.d.ts.map +1 -0
- package/dist/common/util/logger.d.ts +8 -0
- package/dist/common/util/logger.d.ts.map +1 -0
- package/dist/common/util/logger.js +34 -0
- package/dist/common/util/logger.js.map +1 -0
- package/dist/common/util/lru-cache.d.ts.map +1 -0
- package/dist/common/util/messages.d.ts.map +1 -0
- package/dist/common/util/min-heap.d.ts.map +1 -0
- package/dist/common/util/object.d.ts.map +1 -0
- package/dist/common/util/patch.d.ts.map +1 -0
- package/dist/common/util/promise.d.ts.map +1 -0
- package/dist/common/util/referral.d.ts.map +1 -0
- package/dist/common/util/saxy.d.ts.map +1 -0
- package/dist/common/util/server/referral.d.ts.map +1 -0
- package/dist/common/util/string.d.ts.map +1 -0
- package/dist/common/util/stripe.d.ts.map +1 -0
- package/dist/common/websockets/websocket-client.d.ts.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +180 -210
- package/dist/common/websockets/websocket-schema.d.ts.map +1 -0
- package/dist/project-files.js +1 -1
- package/dist/project-files.js.map +1 -1
- package/package.json +2 -2
- 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/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
|
@@ -208,16 +208,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
208
208
|
}>>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
210
|
type: "tool_use";
|
|
211
|
-
id: string;
|
|
212
211
|
name: string;
|
|
212
|
+
id: string;
|
|
213
213
|
input: Record<string, any>;
|
|
214
214
|
cache_control?: {
|
|
215
215
|
type: "ephemeral";
|
|
216
216
|
} | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
type: "tool_use";
|
|
219
|
-
id: string;
|
|
220
219
|
name: string;
|
|
220
|
+
id: string;
|
|
221
221
|
input: Record<string, any>;
|
|
222
222
|
cache_control?: {
|
|
223
223
|
type: "ephemeral";
|
|
@@ -291,7 +291,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
291
291
|
} | undefined;
|
|
292
292
|
}>]>, "many">]>;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
role: "user" | "assistant";
|
|
295
294
|
content: string | ({
|
|
296
295
|
type: "text";
|
|
297
296
|
text: string;
|
|
@@ -300,8 +299,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
300
299
|
} | undefined;
|
|
301
300
|
} | {
|
|
302
301
|
type: "tool_use";
|
|
303
|
-
id: string;
|
|
304
302
|
name: string;
|
|
303
|
+
id: string;
|
|
305
304
|
input: Record<string, any>;
|
|
306
305
|
cache_control?: {
|
|
307
306
|
type: "ephemeral";
|
|
@@ -324,8 +323,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
324
323
|
type: "ephemeral";
|
|
325
324
|
} | undefined;
|
|
326
325
|
})[];
|
|
327
|
-
}, {
|
|
328
326
|
role: "user" | "assistant";
|
|
327
|
+
}, {
|
|
329
328
|
content: string | ({
|
|
330
329
|
type: "text";
|
|
331
330
|
text: string;
|
|
@@ -334,8 +333,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
334
333
|
} | undefined;
|
|
335
334
|
} | {
|
|
336
335
|
type: "tool_use";
|
|
337
|
-
id: string;
|
|
338
336
|
name: string;
|
|
337
|
+
id: string;
|
|
339
338
|
input: Record<string, any>;
|
|
340
339
|
cache_control?: {
|
|
341
340
|
type: "ephemeral";
|
|
@@ -358,6 +357,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
358
357
|
type: "ephemeral";
|
|
359
358
|
} | undefined;
|
|
360
359
|
})[];
|
|
360
|
+
role: "user" | "assistant";
|
|
361
361
|
}>, "many">;
|
|
362
362
|
lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
|
|
363
363
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -390,7 +390,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
390
390
|
}[][] | undefined;
|
|
391
391
|
};
|
|
392
392
|
messageHistory: {
|
|
393
|
-
role: "user" | "assistant";
|
|
394
393
|
content: string | ({
|
|
395
394
|
type: "text";
|
|
396
395
|
text: string;
|
|
@@ -399,8 +398,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
399
398
|
} | undefined;
|
|
400
399
|
} | {
|
|
401
400
|
type: "tool_use";
|
|
402
|
-
id: string;
|
|
403
401
|
name: string;
|
|
402
|
+
id: string;
|
|
404
403
|
input: Record<string, any>;
|
|
405
404
|
cache_control?: {
|
|
406
405
|
type: "ephemeral";
|
|
@@ -423,6 +422,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
423
422
|
type: "ephemeral";
|
|
424
423
|
} | undefined;
|
|
425
424
|
})[];
|
|
425
|
+
role: "user" | "assistant";
|
|
426
426
|
}[];
|
|
427
427
|
lastUserPromptIndex?: number | undefined;
|
|
428
428
|
}, {
|
|
@@ -455,7 +455,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
455
455
|
}[][] | undefined;
|
|
456
456
|
};
|
|
457
457
|
messageHistory: {
|
|
458
|
-
role: "user" | "assistant";
|
|
459
458
|
content: string | ({
|
|
460
459
|
type: "text";
|
|
461
460
|
text: string;
|
|
@@ -464,8 +463,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
464
463
|
} | undefined;
|
|
465
464
|
} | {
|
|
466
465
|
type: "tool_use";
|
|
467
|
-
id: string;
|
|
468
466
|
name: string;
|
|
467
|
+
id: string;
|
|
469
468
|
input: Record<string, any>;
|
|
470
469
|
cache_control?: {
|
|
471
470
|
type: "ephemeral";
|
|
@@ -488,6 +487,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
488
487
|
type: "ephemeral";
|
|
489
488
|
} | undefined;
|
|
490
489
|
})[];
|
|
490
|
+
role: "user" | "assistant";
|
|
491
491
|
}[];
|
|
492
492
|
lastUserPromptIndex?: number | undefined;
|
|
493
493
|
}>;
|
|
@@ -496,12 +496,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
496
496
|
result: z.ZodString;
|
|
497
497
|
id: z.ZodString;
|
|
498
498
|
}, "strip", z.ZodTypeAny, {
|
|
499
|
-
id: string;
|
|
500
499
|
name: string;
|
|
500
|
+
id: string;
|
|
501
501
|
result: string;
|
|
502
502
|
}, {
|
|
503
|
-
id: string;
|
|
504
503
|
name: string;
|
|
504
|
+
id: string;
|
|
505
505
|
result: string;
|
|
506
506
|
}>, "many">;
|
|
507
507
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -539,7 +539,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
539
539
|
}[][] | undefined;
|
|
540
540
|
};
|
|
541
541
|
messageHistory: {
|
|
542
|
-
role: "user" | "assistant";
|
|
543
542
|
content: string | ({
|
|
544
543
|
type: "text";
|
|
545
544
|
text: string;
|
|
@@ -548,8 +547,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
548
547
|
} | undefined;
|
|
549
548
|
} | {
|
|
550
549
|
type: "tool_use";
|
|
551
|
-
id: string;
|
|
552
550
|
name: string;
|
|
551
|
+
id: string;
|
|
553
552
|
input: Record<string, any>;
|
|
554
553
|
cache_control?: {
|
|
555
554
|
type: "ephemeral";
|
|
@@ -572,12 +571,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
572
571
|
type: "ephemeral";
|
|
573
572
|
} | undefined;
|
|
574
573
|
})[];
|
|
574
|
+
role: "user" | "assistant";
|
|
575
575
|
}[];
|
|
576
576
|
lastUserPromptIndex?: number | undefined;
|
|
577
577
|
};
|
|
578
578
|
toolResults: {
|
|
579
|
-
id: string;
|
|
580
579
|
name: string;
|
|
580
|
+
id: string;
|
|
581
581
|
result: string;
|
|
582
582
|
}[];
|
|
583
583
|
prompt?: string | undefined;
|
|
@@ -616,7 +616,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
616
616
|
}[][] | undefined;
|
|
617
617
|
};
|
|
618
618
|
messageHistory: {
|
|
619
|
-
role: "user" | "assistant";
|
|
620
619
|
content: string | ({
|
|
621
620
|
type: "text";
|
|
622
621
|
text: string;
|
|
@@ -625,8 +624,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
625
624
|
} | undefined;
|
|
626
625
|
} | {
|
|
627
626
|
type: "tool_use";
|
|
628
|
-
id: string;
|
|
629
627
|
name: string;
|
|
628
|
+
id: string;
|
|
630
629
|
input: Record<string, any>;
|
|
631
630
|
cache_control?: {
|
|
632
631
|
type: "ephemeral";
|
|
@@ -649,12 +648,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
649
648
|
type: "ephemeral";
|
|
650
649
|
} | undefined;
|
|
651
650
|
})[];
|
|
651
|
+
role: "user" | "assistant";
|
|
652
652
|
}[];
|
|
653
653
|
lastUserPromptIndex?: number | undefined;
|
|
654
654
|
};
|
|
655
655
|
toolResults: {
|
|
656
|
-
id: string;
|
|
657
656
|
name: string;
|
|
657
|
+
id: string;
|
|
658
658
|
result: string;
|
|
659
659
|
}[];
|
|
660
660
|
prompt?: string | undefined;
|
|
@@ -900,7 +900,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
900
900
|
}[][] | undefined;
|
|
901
901
|
};
|
|
902
902
|
messageHistory: {
|
|
903
|
-
role: "user" | "assistant";
|
|
904
903
|
content: string | ({
|
|
905
904
|
type: "text";
|
|
906
905
|
text: string;
|
|
@@ -909,8 +908,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
909
908
|
} | undefined;
|
|
910
909
|
} | {
|
|
911
910
|
type: "tool_use";
|
|
912
|
-
id: string;
|
|
913
911
|
name: string;
|
|
912
|
+
id: string;
|
|
914
913
|
input: Record<string, any>;
|
|
915
914
|
cache_control?: {
|
|
916
915
|
type: "ephemeral";
|
|
@@ -933,12 +932,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
933
932
|
type: "ephemeral";
|
|
934
933
|
} | undefined;
|
|
935
934
|
})[];
|
|
935
|
+
role: "user" | "assistant";
|
|
936
936
|
}[];
|
|
937
937
|
lastUserPromptIndex?: number | undefined;
|
|
938
938
|
};
|
|
939
939
|
toolResults: {
|
|
940
|
-
id: string;
|
|
941
940
|
name: string;
|
|
941
|
+
id: string;
|
|
942
942
|
result: string;
|
|
943
943
|
}[];
|
|
944
944
|
prompt?: string | undefined;
|
|
@@ -1021,7 +1021,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1021
1021
|
}[][] | undefined;
|
|
1022
1022
|
};
|
|
1023
1023
|
messageHistory: {
|
|
1024
|
-
role: "user" | "assistant";
|
|
1025
1024
|
content: string | ({
|
|
1026
1025
|
type: "text";
|
|
1027
1026
|
text: string;
|
|
@@ -1030,8 +1029,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1030
1029
|
} | undefined;
|
|
1031
1030
|
} | {
|
|
1032
1031
|
type: "tool_use";
|
|
1033
|
-
id: string;
|
|
1034
1032
|
name: string;
|
|
1033
|
+
id: string;
|
|
1035
1034
|
input: Record<string, any>;
|
|
1036
1035
|
cache_control?: {
|
|
1037
1036
|
type: "ephemeral";
|
|
@@ -1054,12 +1053,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1054
1053
|
type: "ephemeral";
|
|
1055
1054
|
} | undefined;
|
|
1056
1055
|
})[];
|
|
1056
|
+
role: "user" | "assistant";
|
|
1057
1057
|
}[];
|
|
1058
1058
|
lastUserPromptIndex?: number | undefined;
|
|
1059
1059
|
};
|
|
1060
1060
|
toolResults: {
|
|
1061
|
-
id: string;
|
|
1062
1061
|
name: string;
|
|
1062
|
+
id: string;
|
|
1063
1063
|
result: string;
|
|
1064
1064
|
}[];
|
|
1065
1065
|
prompt?: string | undefined;
|
|
@@ -1313,16 +1313,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1313
1313
|
}>>;
|
|
1314
1314
|
}, "strip", z.ZodTypeAny, {
|
|
1315
1315
|
type: "tool_use";
|
|
1316
|
-
id: string;
|
|
1317
1316
|
name: string;
|
|
1317
|
+
id: string;
|
|
1318
1318
|
input: Record<string, any>;
|
|
1319
1319
|
cache_control?: {
|
|
1320
1320
|
type: "ephemeral";
|
|
1321
1321
|
} | undefined;
|
|
1322
1322
|
}, {
|
|
1323
1323
|
type: "tool_use";
|
|
1324
|
-
id: string;
|
|
1325
1324
|
name: string;
|
|
1325
|
+
id: string;
|
|
1326
1326
|
input: Record<string, any>;
|
|
1327
1327
|
cache_control?: {
|
|
1328
1328
|
type: "ephemeral";
|
|
@@ -1396,7 +1396,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1396
1396
|
} | undefined;
|
|
1397
1397
|
}>]>, "many">]>;
|
|
1398
1398
|
}, "strip", z.ZodTypeAny, {
|
|
1399
|
-
role: "user" | "assistant";
|
|
1400
1399
|
content: string | ({
|
|
1401
1400
|
type: "text";
|
|
1402
1401
|
text: string;
|
|
@@ -1405,8 +1404,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1405
1404
|
} | undefined;
|
|
1406
1405
|
} | {
|
|
1407
1406
|
type: "tool_use";
|
|
1408
|
-
id: string;
|
|
1409
1407
|
name: string;
|
|
1408
|
+
id: string;
|
|
1410
1409
|
input: Record<string, any>;
|
|
1411
1410
|
cache_control?: {
|
|
1412
1411
|
type: "ephemeral";
|
|
@@ -1429,8 +1428,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1429
1428
|
type: "ephemeral";
|
|
1430
1429
|
} | undefined;
|
|
1431
1430
|
})[];
|
|
1432
|
-
}, {
|
|
1433
1431
|
role: "user" | "assistant";
|
|
1432
|
+
}, {
|
|
1434
1433
|
content: string | ({
|
|
1435
1434
|
type: "text";
|
|
1436
1435
|
text: string;
|
|
@@ -1439,8 +1438,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1439
1438
|
} | undefined;
|
|
1440
1439
|
} | {
|
|
1441
1440
|
type: "tool_use";
|
|
1442
|
-
id: string;
|
|
1443
1441
|
name: string;
|
|
1442
|
+
id: string;
|
|
1444
1443
|
input: Record<string, any>;
|
|
1445
1444
|
cache_control?: {
|
|
1446
1445
|
type: "ephemeral";
|
|
@@ -1463,6 +1462,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1463
1462
|
type: "ephemeral";
|
|
1464
1463
|
} | undefined;
|
|
1465
1464
|
})[];
|
|
1465
|
+
role: "user" | "assistant";
|
|
1466
1466
|
}>, "many">;
|
|
1467
1467
|
lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
|
|
1468
1468
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1495,7 +1495,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1495
1495
|
}[][] | undefined;
|
|
1496
1496
|
};
|
|
1497
1497
|
messageHistory: {
|
|
1498
|
-
role: "user" | "assistant";
|
|
1499
1498
|
content: string | ({
|
|
1500
1499
|
type: "text";
|
|
1501
1500
|
text: string;
|
|
@@ -1504,8 +1503,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1504
1503
|
} | undefined;
|
|
1505
1504
|
} | {
|
|
1506
1505
|
type: "tool_use";
|
|
1507
|
-
id: string;
|
|
1508
1506
|
name: string;
|
|
1507
|
+
id: string;
|
|
1509
1508
|
input: Record<string, any>;
|
|
1510
1509
|
cache_control?: {
|
|
1511
1510
|
type: "ephemeral";
|
|
@@ -1528,6 +1527,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1528
1527
|
type: "ephemeral";
|
|
1529
1528
|
} | undefined;
|
|
1530
1529
|
})[];
|
|
1530
|
+
role: "user" | "assistant";
|
|
1531
1531
|
}[];
|
|
1532
1532
|
lastUserPromptIndex?: number | undefined;
|
|
1533
1533
|
}, {
|
|
@@ -1560,7 +1560,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1560
1560
|
}[][] | undefined;
|
|
1561
1561
|
};
|
|
1562
1562
|
messageHistory: {
|
|
1563
|
-
role: "user" | "assistant";
|
|
1564
1563
|
content: string | ({
|
|
1565
1564
|
type: "text";
|
|
1566
1565
|
text: string;
|
|
@@ -1569,8 +1568,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1569
1568
|
} | undefined;
|
|
1570
1569
|
} | {
|
|
1571
1570
|
type: "tool_use";
|
|
1572
|
-
id: string;
|
|
1573
1571
|
name: string;
|
|
1572
|
+
id: string;
|
|
1574
1573
|
input: Record<string, any>;
|
|
1575
1574
|
cache_control?: {
|
|
1576
1575
|
type: "ephemeral";
|
|
@@ -1593,6 +1592,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1593
1592
|
type: "ephemeral";
|
|
1594
1593
|
} | undefined;
|
|
1595
1594
|
})[];
|
|
1595
|
+
role: "user" | "assistant";
|
|
1596
1596
|
}[];
|
|
1597
1597
|
lastUserPromptIndex?: number | undefined;
|
|
1598
1598
|
}>;
|
|
@@ -1601,12 +1601,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1601
1601
|
result: z.ZodString;
|
|
1602
1602
|
id: z.ZodString;
|
|
1603
1603
|
}, "strip", z.ZodTypeAny, {
|
|
1604
|
-
id: string;
|
|
1605
1604
|
name: string;
|
|
1605
|
+
id: string;
|
|
1606
1606
|
result: string;
|
|
1607
1607
|
}, {
|
|
1608
|
-
id: string;
|
|
1609
1608
|
name: string;
|
|
1609
|
+
id: string;
|
|
1610
1610
|
result: string;
|
|
1611
1611
|
}>, "many">;
|
|
1612
1612
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1644,7 +1644,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1644
1644
|
}[][] | undefined;
|
|
1645
1645
|
};
|
|
1646
1646
|
messageHistory: {
|
|
1647
|
-
role: "user" | "assistant";
|
|
1648
1647
|
content: string | ({
|
|
1649
1648
|
type: "text";
|
|
1650
1649
|
text: string;
|
|
@@ -1653,8 +1652,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1653
1652
|
} | undefined;
|
|
1654
1653
|
} | {
|
|
1655
1654
|
type: "tool_use";
|
|
1656
|
-
id: string;
|
|
1657
1655
|
name: string;
|
|
1656
|
+
id: string;
|
|
1658
1657
|
input: Record<string, any>;
|
|
1659
1658
|
cache_control?: {
|
|
1660
1659
|
type: "ephemeral";
|
|
@@ -1677,12 +1676,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1677
1676
|
type: "ephemeral";
|
|
1678
1677
|
} | undefined;
|
|
1679
1678
|
})[];
|
|
1679
|
+
role: "user" | "assistant";
|
|
1680
1680
|
}[];
|
|
1681
1681
|
lastUserPromptIndex?: number | undefined;
|
|
1682
1682
|
};
|
|
1683
1683
|
toolResults: {
|
|
1684
|
-
id: string;
|
|
1685
1684
|
name: string;
|
|
1685
|
+
id: string;
|
|
1686
1686
|
result: string;
|
|
1687
1687
|
}[];
|
|
1688
1688
|
prompt?: string | undefined;
|
|
@@ -1721,7 +1721,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1721
1721
|
}[][] | undefined;
|
|
1722
1722
|
};
|
|
1723
1723
|
messageHistory: {
|
|
1724
|
-
role: "user" | "assistant";
|
|
1725
1724
|
content: string | ({
|
|
1726
1725
|
type: "text";
|
|
1727
1726
|
text: string;
|
|
@@ -1730,8 +1729,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1730
1729
|
} | undefined;
|
|
1731
1730
|
} | {
|
|
1732
1731
|
type: "tool_use";
|
|
1733
|
-
id: string;
|
|
1734
1732
|
name: string;
|
|
1733
|
+
id: string;
|
|
1735
1734
|
input: Record<string, any>;
|
|
1736
1735
|
cache_control?: {
|
|
1737
1736
|
type: "ephemeral";
|
|
@@ -1754,12 +1753,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1754
1753
|
type: "ephemeral";
|
|
1755
1754
|
} | undefined;
|
|
1756
1755
|
})[];
|
|
1756
|
+
role: "user" | "assistant";
|
|
1757
1757
|
}[];
|
|
1758
1758
|
lastUserPromptIndex?: number | undefined;
|
|
1759
1759
|
};
|
|
1760
1760
|
toolResults: {
|
|
1761
|
-
id: string;
|
|
1762
1761
|
name: string;
|
|
1762
|
+
id: string;
|
|
1763
1763
|
result: string;
|
|
1764
1764
|
}[];
|
|
1765
1765
|
prompt?: string | undefined;
|
|
@@ -2005,7 +2005,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2005
2005
|
}[][] | undefined;
|
|
2006
2006
|
};
|
|
2007
2007
|
messageHistory: {
|
|
2008
|
-
role: "user" | "assistant";
|
|
2009
2008
|
content: string | ({
|
|
2010
2009
|
type: "text";
|
|
2011
2010
|
text: string;
|
|
@@ -2014,8 +2013,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2014
2013
|
} | undefined;
|
|
2015
2014
|
} | {
|
|
2016
2015
|
type: "tool_use";
|
|
2017
|
-
id: string;
|
|
2018
2016
|
name: string;
|
|
2017
|
+
id: string;
|
|
2019
2018
|
input: Record<string, any>;
|
|
2020
2019
|
cache_control?: {
|
|
2021
2020
|
type: "ephemeral";
|
|
@@ -2038,12 +2037,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2038
2037
|
type: "ephemeral";
|
|
2039
2038
|
} | undefined;
|
|
2040
2039
|
})[];
|
|
2040
|
+
role: "user" | "assistant";
|
|
2041
2041
|
}[];
|
|
2042
2042
|
lastUserPromptIndex?: number | undefined;
|
|
2043
2043
|
};
|
|
2044
2044
|
toolResults: {
|
|
2045
|
-
id: string;
|
|
2046
2045
|
name: string;
|
|
2046
|
+
id: string;
|
|
2047
2047
|
result: string;
|
|
2048
2048
|
}[];
|
|
2049
2049
|
prompt?: string | undefined;
|
|
@@ -2126,7 +2126,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2126
2126
|
}[][] | undefined;
|
|
2127
2127
|
};
|
|
2128
2128
|
messageHistory: {
|
|
2129
|
-
role: "user" | "assistant";
|
|
2130
2129
|
content: string | ({
|
|
2131
2130
|
type: "text";
|
|
2132
2131
|
text: string;
|
|
@@ -2135,8 +2134,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2135
2134
|
} | undefined;
|
|
2136
2135
|
} | {
|
|
2137
2136
|
type: "tool_use";
|
|
2138
|
-
id: string;
|
|
2139
2137
|
name: string;
|
|
2138
|
+
id: string;
|
|
2140
2139
|
input: Record<string, any>;
|
|
2141
2140
|
cache_control?: {
|
|
2142
2141
|
type: "ephemeral";
|
|
@@ -2159,12 +2158,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2159
2158
|
type: "ephemeral";
|
|
2160
2159
|
} | undefined;
|
|
2161
2160
|
})[];
|
|
2161
|
+
role: "user" | "assistant";
|
|
2162
2162
|
}[];
|
|
2163
2163
|
lastUserPromptIndex?: number | undefined;
|
|
2164
2164
|
};
|
|
2165
2165
|
toolResults: {
|
|
2166
|
-
id: string;
|
|
2167
2166
|
name: string;
|
|
2167
|
+
id: string;
|
|
2168
2168
|
result: string;
|
|
2169
2169
|
}[];
|
|
2170
2170
|
prompt?: string | undefined;
|
|
@@ -2224,13 +2224,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2224
2224
|
}, "strip", z.ZodTypeAny, {
|
|
2225
2225
|
type: "ack";
|
|
2226
2226
|
success: boolean;
|
|
2227
|
-
txid?: number | undefined;
|
|
2228
2227
|
error?: string | undefined;
|
|
2228
|
+
txid?: number | undefined;
|
|
2229
2229
|
}, {
|
|
2230
2230
|
type: "ack";
|
|
2231
2231
|
success: boolean;
|
|
2232
|
-
txid?: number | undefined;
|
|
2233
2232
|
error?: string | undefined;
|
|
2233
|
+
txid?: number | undefined;
|
|
2234
2234
|
}>;
|
|
2235
2235
|
action: z.ZodObject<{
|
|
2236
2236
|
type: z.ZodLiteral<"action">;
|
|
@@ -2255,12 +2255,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2255
2255
|
path: z.ZodString;
|
|
2256
2256
|
content: z.ZodString;
|
|
2257
2257
|
}, "strip", z.ZodTypeAny, {
|
|
2258
|
-
path: string;
|
|
2259
2258
|
type: "patch" | "file";
|
|
2259
|
+
path: string;
|
|
2260
2260
|
content: string;
|
|
2261
2261
|
}, {
|
|
2262
|
-
path: string;
|
|
2263
2262
|
type: "patch" | "file";
|
|
2263
|
+
path: string;
|
|
2264
2264
|
content: string;
|
|
2265
2265
|
}>, "many">;
|
|
2266
2266
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2268,12 +2268,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2268
2268
|
path: z.ZodString;
|
|
2269
2269
|
content: z.ZodString;
|
|
2270
2270
|
}, "strip", z.ZodTypeAny, {
|
|
2271
|
-
path: string;
|
|
2272
2271
|
type: "patch" | "file";
|
|
2272
|
+
path: string;
|
|
2273
2273
|
content: string;
|
|
2274
2274
|
}, {
|
|
2275
|
-
path: string;
|
|
2276
2275
|
type: "patch" | "file";
|
|
2276
|
+
path: string;
|
|
2277
2277
|
content: string;
|
|
2278
2278
|
}>, "many">;
|
|
2279
2279
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2290,7 +2290,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2290
2290
|
}, {
|
|
2291
2291
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2292
2292
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
2293
|
-
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
2294
2293
|
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
2295
2294
|
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
2296
2295
|
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2299,13 +2298,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2299
2298
|
userInputId: string;
|
|
2300
2299
|
response: string;
|
|
2301
2300
|
changes: {
|
|
2302
|
-
path: string;
|
|
2303
2301
|
type: "patch" | "file";
|
|
2302
|
+
path: string;
|
|
2304
2303
|
content: string;
|
|
2305
2304
|
}[];
|
|
2306
2305
|
changesAlreadyApplied: {
|
|
2307
|
-
path: string;
|
|
2308
2306
|
type: "patch" | "file";
|
|
2307
|
+
path: string;
|
|
2309
2308
|
content: string;
|
|
2310
2309
|
}[];
|
|
2311
2310
|
addedFileVersions: {
|
|
@@ -2315,7 +2314,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2315
2314
|
resetFileVersions: boolean;
|
|
2316
2315
|
usage?: number | undefined;
|
|
2317
2316
|
limit?: number | undefined;
|
|
2318
|
-
referralLink?: string | undefined;
|
|
2319
2317
|
subscription_active?: boolean | undefined;
|
|
2320
2318
|
next_quota_reset?: Date | undefined;
|
|
2321
2319
|
session_credits_used?: number | undefined;
|
|
@@ -2324,13 +2322,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2324
2322
|
userInputId: string;
|
|
2325
2323
|
response: string;
|
|
2326
2324
|
changes: {
|
|
2327
|
-
path: string;
|
|
2328
2325
|
type: "patch" | "file";
|
|
2326
|
+
path: string;
|
|
2329
2327
|
content: string;
|
|
2330
2328
|
}[];
|
|
2331
2329
|
changesAlreadyApplied: {
|
|
2332
|
-
path: string;
|
|
2333
2330
|
type: "patch" | "file";
|
|
2331
|
+
path: string;
|
|
2334
2332
|
content: string;
|
|
2335
2333
|
}[];
|
|
2336
2334
|
addedFileVersions: {
|
|
@@ -2340,7 +2338,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2340
2338
|
resetFileVersions: boolean;
|
|
2341
2339
|
usage?: number | undefined;
|
|
2342
2340
|
limit?: number | undefined;
|
|
2343
|
-
referralLink?: string | undefined;
|
|
2344
2341
|
subscription_active?: boolean | undefined;
|
|
2345
2342
|
next_quota_reset?: Date | undefined;
|
|
2346
2343
|
session_credits_used?: number | undefined;
|
|
@@ -2496,16 +2493,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2496
2493
|
}>>;
|
|
2497
2494
|
}, "strip", z.ZodTypeAny, {
|
|
2498
2495
|
type: "tool_use";
|
|
2499
|
-
id: string;
|
|
2500
2496
|
name: string;
|
|
2497
|
+
id: string;
|
|
2501
2498
|
input: Record<string, any>;
|
|
2502
2499
|
cache_control?: {
|
|
2503
2500
|
type: "ephemeral";
|
|
2504
2501
|
} | undefined;
|
|
2505
2502
|
}, {
|
|
2506
2503
|
type: "tool_use";
|
|
2507
|
-
id: string;
|
|
2508
2504
|
name: string;
|
|
2505
|
+
id: string;
|
|
2509
2506
|
input: Record<string, any>;
|
|
2510
2507
|
cache_control?: {
|
|
2511
2508
|
type: "ephemeral";
|
|
@@ -2579,7 +2576,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2579
2576
|
} | undefined;
|
|
2580
2577
|
}>]>, "many">]>;
|
|
2581
2578
|
}, "strip", z.ZodTypeAny, {
|
|
2582
|
-
role: "user" | "assistant";
|
|
2583
2579
|
content: string | ({
|
|
2584
2580
|
type: "text";
|
|
2585
2581
|
text: string;
|
|
@@ -2588,8 +2584,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2588
2584
|
} | undefined;
|
|
2589
2585
|
} | {
|
|
2590
2586
|
type: "tool_use";
|
|
2591
|
-
id: string;
|
|
2592
2587
|
name: string;
|
|
2588
|
+
id: string;
|
|
2593
2589
|
input: Record<string, any>;
|
|
2594
2590
|
cache_control?: {
|
|
2595
2591
|
type: "ephemeral";
|
|
@@ -2612,8 +2608,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2612
2608
|
type: "ephemeral";
|
|
2613
2609
|
} | undefined;
|
|
2614
2610
|
})[];
|
|
2615
|
-
}, {
|
|
2616
2611
|
role: "user" | "assistant";
|
|
2612
|
+
}, {
|
|
2617
2613
|
content: string | ({
|
|
2618
2614
|
type: "text";
|
|
2619
2615
|
text: string;
|
|
@@ -2622,8 +2618,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2622
2618
|
} | undefined;
|
|
2623
2619
|
} | {
|
|
2624
2620
|
type: "tool_use";
|
|
2625
|
-
id: string;
|
|
2626
2621
|
name: string;
|
|
2622
|
+
id: string;
|
|
2627
2623
|
input: Record<string, any>;
|
|
2628
2624
|
cache_control?: {
|
|
2629
2625
|
type: "ephemeral";
|
|
@@ -2646,6 +2642,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2646
2642
|
type: "ephemeral";
|
|
2647
2643
|
} | undefined;
|
|
2648
2644
|
})[];
|
|
2645
|
+
role: "user" | "assistant";
|
|
2649
2646
|
}>, "many">;
|
|
2650
2647
|
lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
|
|
2651
2648
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2678,7 +2675,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2678
2675
|
}[][] | undefined;
|
|
2679
2676
|
};
|
|
2680
2677
|
messageHistory: {
|
|
2681
|
-
role: "user" | "assistant";
|
|
2682
2678
|
content: string | ({
|
|
2683
2679
|
type: "text";
|
|
2684
2680
|
text: string;
|
|
@@ -2687,8 +2683,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2687
2683
|
} | undefined;
|
|
2688
2684
|
} | {
|
|
2689
2685
|
type: "tool_use";
|
|
2690
|
-
id: string;
|
|
2691
2686
|
name: string;
|
|
2687
|
+
id: string;
|
|
2692
2688
|
input: Record<string, any>;
|
|
2693
2689
|
cache_control?: {
|
|
2694
2690
|
type: "ephemeral";
|
|
@@ -2711,6 +2707,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2711
2707
|
type: "ephemeral";
|
|
2712
2708
|
} | undefined;
|
|
2713
2709
|
})[];
|
|
2710
|
+
role: "user" | "assistant";
|
|
2714
2711
|
}[];
|
|
2715
2712
|
lastUserPromptIndex?: number | undefined;
|
|
2716
2713
|
}, {
|
|
@@ -2743,7 +2740,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2743
2740
|
}[][] | undefined;
|
|
2744
2741
|
};
|
|
2745
2742
|
messageHistory: {
|
|
2746
|
-
role: "user" | "assistant";
|
|
2747
2743
|
content: string | ({
|
|
2748
2744
|
type: "text";
|
|
2749
2745
|
text: string;
|
|
@@ -2752,8 +2748,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2752
2748
|
} | undefined;
|
|
2753
2749
|
} | {
|
|
2754
2750
|
type: "tool_use";
|
|
2755
|
-
id: string;
|
|
2756
2751
|
name: string;
|
|
2752
|
+
id: string;
|
|
2757
2753
|
input: Record<string, any>;
|
|
2758
2754
|
cache_control?: {
|
|
2759
2755
|
type: "ephemeral";
|
|
@@ -2776,6 +2772,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2776
2772
|
type: "ephemeral";
|
|
2777
2773
|
} | undefined;
|
|
2778
2774
|
})[];
|
|
2775
|
+
role: "user" | "assistant";
|
|
2779
2776
|
}[];
|
|
2780
2777
|
lastUserPromptIndex?: number | undefined;
|
|
2781
2778
|
}>;
|
|
@@ -2784,12 +2781,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2784
2781
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
2785
2782
|
id: z.ZodString;
|
|
2786
2783
|
}, "strip", z.ZodTypeAny, {
|
|
2787
|
-
id: string;
|
|
2788
2784
|
name: string;
|
|
2785
|
+
id: string;
|
|
2789
2786
|
parameters: Record<string, string>;
|
|
2790
2787
|
}, {
|
|
2791
|
-
id: string;
|
|
2792
2788
|
name: string;
|
|
2789
|
+
id: string;
|
|
2793
2790
|
parameters: Record<string, string>;
|
|
2794
2791
|
}>, "many">;
|
|
2795
2792
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -2797,12 +2794,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2797
2794
|
result: z.ZodString;
|
|
2798
2795
|
id: z.ZodString;
|
|
2799
2796
|
}, "strip", z.ZodTypeAny, {
|
|
2800
|
-
id: string;
|
|
2801
2797
|
name: string;
|
|
2798
|
+
id: string;
|
|
2802
2799
|
result: string;
|
|
2803
2800
|
}, {
|
|
2804
|
-
id: string;
|
|
2805
2801
|
name: string;
|
|
2802
|
+
id: string;
|
|
2806
2803
|
result: string;
|
|
2807
2804
|
}>, "many">;
|
|
2808
2805
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2838,7 +2835,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2838
2835
|
}[][] | undefined;
|
|
2839
2836
|
};
|
|
2840
2837
|
messageHistory: {
|
|
2841
|
-
role: "user" | "assistant";
|
|
2842
2838
|
content: string | ({
|
|
2843
2839
|
type: "text";
|
|
2844
2840
|
text: string;
|
|
@@ -2847,8 +2843,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2847
2843
|
} | undefined;
|
|
2848
2844
|
} | {
|
|
2849
2845
|
type: "tool_use";
|
|
2850
|
-
id: string;
|
|
2851
2846
|
name: string;
|
|
2847
|
+
id: string;
|
|
2852
2848
|
input: Record<string, any>;
|
|
2853
2849
|
cache_control?: {
|
|
2854
2850
|
type: "ephemeral";
|
|
@@ -2871,17 +2867,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2871
2867
|
type: "ephemeral";
|
|
2872
2868
|
} | undefined;
|
|
2873
2869
|
})[];
|
|
2870
|
+
role: "user" | "assistant";
|
|
2874
2871
|
}[];
|
|
2875
2872
|
lastUserPromptIndex?: number | undefined;
|
|
2876
2873
|
};
|
|
2877
2874
|
toolResults: {
|
|
2878
|
-
id: string;
|
|
2879
2875
|
name: string;
|
|
2876
|
+
id: string;
|
|
2880
2877
|
result: string;
|
|
2881
2878
|
}[];
|
|
2882
2879
|
toolCalls: {
|
|
2883
|
-
id: string;
|
|
2884
2880
|
name: string;
|
|
2881
|
+
id: string;
|
|
2885
2882
|
parameters: Record<string, string>;
|
|
2886
2883
|
}[];
|
|
2887
2884
|
}, {
|
|
@@ -2917,7 +2914,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2917
2914
|
}[][] | undefined;
|
|
2918
2915
|
};
|
|
2919
2916
|
messageHistory: {
|
|
2920
|
-
role: "user" | "assistant";
|
|
2921
2917
|
content: string | ({
|
|
2922
2918
|
type: "text";
|
|
2923
2919
|
text: string;
|
|
@@ -2926,8 +2922,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2926
2922
|
} | undefined;
|
|
2927
2923
|
} | {
|
|
2928
2924
|
type: "tool_use";
|
|
2929
|
-
id: string;
|
|
2930
2925
|
name: string;
|
|
2926
|
+
id: string;
|
|
2931
2927
|
input: Record<string, any>;
|
|
2932
2928
|
cache_control?: {
|
|
2933
2929
|
type: "ephemeral";
|
|
@@ -2950,17 +2946,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2950
2946
|
type: "ephemeral";
|
|
2951
2947
|
} | undefined;
|
|
2952
2948
|
})[];
|
|
2949
|
+
role: "user" | "assistant";
|
|
2953
2950
|
}[];
|
|
2954
2951
|
lastUserPromptIndex?: number | undefined;
|
|
2955
2952
|
};
|
|
2956
2953
|
toolResults: {
|
|
2957
|
-
id: string;
|
|
2958
2954
|
name: string;
|
|
2955
|
+
id: string;
|
|
2959
2956
|
result: string;
|
|
2960
2957
|
}[];
|
|
2961
2958
|
toolCalls: {
|
|
2962
|
-
id: string;
|
|
2963
2959
|
name: string;
|
|
2960
|
+
id: string;
|
|
2964
2961
|
parameters: Record<string, string>;
|
|
2965
2962
|
}[];
|
|
2966
2963
|
}>, z.ZodObject<{
|
|
@@ -2984,12 +2981,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2984
2981
|
id: z.ZodString;
|
|
2985
2982
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
2986
2983
|
}, "strip", z.ZodTypeAny, {
|
|
2987
|
-
id: string;
|
|
2988
2984
|
name: string;
|
|
2985
|
+
id: string;
|
|
2989
2986
|
input: Record<string, any>;
|
|
2990
2987
|
}, {
|
|
2991
|
-
id: string;
|
|
2992
2988
|
name: string;
|
|
2989
|
+
id: string;
|
|
2993
2990
|
input: Record<string, any>;
|
|
2994
2991
|
}>;
|
|
2995
2992
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -2997,12 +2994,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2997
2994
|
path: z.ZodString;
|
|
2998
2995
|
content: z.ZodString;
|
|
2999
2996
|
}, "strip", z.ZodTypeAny, {
|
|
3000
|
-
path: string;
|
|
3001
2997
|
type: "patch" | "file";
|
|
2998
|
+
path: string;
|
|
3002
2999
|
content: string;
|
|
3003
3000
|
}, {
|
|
3004
|
-
path: string;
|
|
3005
3001
|
type: "patch" | "file";
|
|
3002
|
+
path: string;
|
|
3006
3003
|
content: string;
|
|
3007
3004
|
}>, "many">;
|
|
3008
3005
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3010,12 +3007,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3010
3007
|
path: z.ZodString;
|
|
3011
3008
|
content: z.ZodString;
|
|
3012
3009
|
}, "strip", z.ZodTypeAny, {
|
|
3013
|
-
path: string;
|
|
3014
3010
|
type: "patch" | "file";
|
|
3011
|
+
path: string;
|
|
3015
3012
|
content: string;
|
|
3016
3013
|
}, {
|
|
3017
|
-
path: string;
|
|
3018
3014
|
type: "patch" | "file";
|
|
3015
|
+
path: string;
|
|
3019
3016
|
content: string;
|
|
3020
3017
|
}>, "many">;
|
|
3021
3018
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3032,20 +3029,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3032
3029
|
}, "strip", z.ZodTypeAny, {
|
|
3033
3030
|
type: "tool-call";
|
|
3034
3031
|
data: {
|
|
3035
|
-
id: string;
|
|
3036
3032
|
name: string;
|
|
3033
|
+
id: string;
|
|
3037
3034
|
input: Record<string, any>;
|
|
3038
3035
|
};
|
|
3039
3036
|
userInputId: string;
|
|
3040
3037
|
response: string;
|
|
3041
3038
|
changes: {
|
|
3042
|
-
path: string;
|
|
3043
3039
|
type: "patch" | "file";
|
|
3040
|
+
path: string;
|
|
3044
3041
|
content: string;
|
|
3045
3042
|
}[];
|
|
3046
3043
|
changesAlreadyApplied: {
|
|
3047
|
-
path: string;
|
|
3048
3044
|
type: "patch" | "file";
|
|
3045
|
+
path: string;
|
|
3049
3046
|
content: string;
|
|
3050
3047
|
}[];
|
|
3051
3048
|
addedFileVersions: {
|
|
@@ -3056,20 +3053,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3056
3053
|
}, {
|
|
3057
3054
|
type: "tool-call";
|
|
3058
3055
|
data: {
|
|
3059
|
-
id: string;
|
|
3060
3056
|
name: string;
|
|
3057
|
+
id: string;
|
|
3061
3058
|
input: Record<string, any>;
|
|
3062
3059
|
};
|
|
3063
3060
|
userInputId: string;
|
|
3064
3061
|
response: string;
|
|
3065
3062
|
changes: {
|
|
3066
|
-
path: string;
|
|
3067
3063
|
type: "patch" | "file";
|
|
3064
|
+
path: string;
|
|
3068
3065
|
content: string;
|
|
3069
3066
|
}[];
|
|
3070
3067
|
changesAlreadyApplied: {
|
|
3071
|
-
path: string;
|
|
3072
3068
|
type: "patch" | "file";
|
|
3069
|
+
path: string;
|
|
3073
3070
|
content: string;
|
|
3074
3071
|
}[];
|
|
3075
3072
|
addedFileVersions: {
|
|
@@ -3107,7 +3104,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3107
3104
|
type: z.ZodLiteral<"usage-response">;
|
|
3108
3105
|
usage: z.ZodNumber;
|
|
3109
3106
|
limit: z.ZodNumber;
|
|
3110
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
3111
3107
|
subscription_active: z.ZodBoolean;
|
|
3112
3108
|
next_quota_reset: z.ZodDate;
|
|
3113
3109
|
session_credits_used: z.ZodNumber;
|
|
@@ -3118,7 +3114,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3118
3114
|
subscription_active: boolean;
|
|
3119
3115
|
next_quota_reset: Date;
|
|
3120
3116
|
session_credits_used: number;
|
|
3121
|
-
referralLink?: string | undefined;
|
|
3122
3117
|
}, {
|
|
3123
3118
|
type: "init-response";
|
|
3124
3119
|
usage: number;
|
|
@@ -3126,12 +3121,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3126
3121
|
subscription_active: boolean;
|
|
3127
3122
|
next_quota_reset: Date;
|
|
3128
3123
|
session_credits_used: number;
|
|
3129
|
-
referralLink?: string | undefined;
|
|
3130
3124
|
}>, z.ZodObject<{
|
|
3131
3125
|
type: z.ZodLiteral<"usage-response">;
|
|
3132
3126
|
usage: z.ZodNumber;
|
|
3133
3127
|
limit: z.ZodNumber;
|
|
3134
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
3135
3128
|
subscription_active: z.ZodBoolean;
|
|
3136
3129
|
next_quota_reset: z.ZodDate;
|
|
3137
3130
|
session_credits_used: z.ZodNumber;
|
|
@@ -3142,7 +3135,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3142
3135
|
subscription_active: boolean;
|
|
3143
3136
|
next_quota_reset: Date;
|
|
3144
3137
|
session_credits_used: number;
|
|
3145
|
-
referralLink?: string | undefined;
|
|
3146
3138
|
}, {
|
|
3147
3139
|
type: "usage-response";
|
|
3148
3140
|
usage: number;
|
|
@@ -3150,7 +3142,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3150
3142
|
subscription_active: boolean;
|
|
3151
3143
|
next_quota_reset: Date;
|
|
3152
3144
|
session_credits_used: number;
|
|
3153
|
-
referralLink?: string | undefined;
|
|
3154
3145
|
}>, z.ZodObject<{
|
|
3155
3146
|
type: z.ZodLiteral<"message-cost-response">;
|
|
3156
3147
|
promptId: z.ZodString;
|
|
@@ -3167,11 +3158,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3167
3158
|
type: z.ZodLiteral<"action-error">;
|
|
3168
3159
|
message: z.ZodString;
|
|
3169
3160
|
}, "strip", z.ZodTypeAny, {
|
|
3170
|
-
message: string;
|
|
3171
3161
|
type: "action-error";
|
|
3172
|
-
}, {
|
|
3173
3162
|
message: string;
|
|
3163
|
+
}, {
|
|
3174
3164
|
type: "action-error";
|
|
3165
|
+
message: string;
|
|
3175
3166
|
}>, z.ZodObject<{
|
|
3176
3167
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3177
3168
|
commitMessage: z.ZodString;
|
|
@@ -3191,7 +3182,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3191
3182
|
subscription_active: boolean;
|
|
3192
3183
|
next_quota_reset: Date;
|
|
3193
3184
|
session_credits_used: number;
|
|
3194
|
-
referralLink?: string | undefined;
|
|
3195
3185
|
} | {
|
|
3196
3186
|
type: "init-response";
|
|
3197
3187
|
usage: number;
|
|
@@ -3199,19 +3189,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3199
3189
|
subscription_active: boolean;
|
|
3200
3190
|
next_quota_reset: Date;
|
|
3201
3191
|
session_credits_used: number;
|
|
3202
|
-
referralLink?: string | undefined;
|
|
3203
3192
|
} | {
|
|
3204
3193
|
type: "response-complete";
|
|
3205
3194
|
userInputId: string;
|
|
3206
3195
|
response: string;
|
|
3207
3196
|
changes: {
|
|
3208
|
-
path: string;
|
|
3209
3197
|
type: "patch" | "file";
|
|
3198
|
+
path: string;
|
|
3210
3199
|
content: string;
|
|
3211
3200
|
}[];
|
|
3212
3201
|
changesAlreadyApplied: {
|
|
3213
|
-
path: string;
|
|
3214
3202
|
type: "patch" | "file";
|
|
3203
|
+
path: string;
|
|
3215
3204
|
content: string;
|
|
3216
3205
|
}[];
|
|
3217
3206
|
addedFileVersions: {
|
|
@@ -3221,7 +3210,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3221
3210
|
resetFileVersions: boolean;
|
|
3222
3211
|
usage?: number | undefined;
|
|
3223
3212
|
limit?: number | undefined;
|
|
3224
|
-
referralLink?: string | undefined;
|
|
3225
3213
|
subscription_active?: boolean | undefined;
|
|
3226
3214
|
next_quota_reset?: Date | undefined;
|
|
3227
3215
|
session_credits_used?: number | undefined;
|
|
@@ -3262,7 +3250,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3262
3250
|
}[][] | undefined;
|
|
3263
3251
|
};
|
|
3264
3252
|
messageHistory: {
|
|
3265
|
-
role: "user" | "assistant";
|
|
3266
3253
|
content: string | ({
|
|
3267
3254
|
type: "text";
|
|
3268
3255
|
text: string;
|
|
@@ -3271,8 +3258,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3271
3258
|
} | undefined;
|
|
3272
3259
|
} | {
|
|
3273
3260
|
type: "tool_use";
|
|
3274
|
-
id: string;
|
|
3275
3261
|
name: string;
|
|
3262
|
+
id: string;
|
|
3276
3263
|
input: Record<string, any>;
|
|
3277
3264
|
cache_control?: {
|
|
3278
3265
|
type: "ephemeral";
|
|
@@ -3295,17 +3282,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3295
3282
|
type: "ephemeral";
|
|
3296
3283
|
} | undefined;
|
|
3297
3284
|
})[];
|
|
3285
|
+
role: "user" | "assistant";
|
|
3298
3286
|
}[];
|
|
3299
3287
|
lastUserPromptIndex?: number | undefined;
|
|
3300
3288
|
};
|
|
3301
3289
|
toolResults: {
|
|
3302
|
-
id: string;
|
|
3303
3290
|
name: string;
|
|
3291
|
+
id: string;
|
|
3304
3292
|
result: string;
|
|
3305
3293
|
}[];
|
|
3306
3294
|
toolCalls: {
|
|
3307
|
-
id: string;
|
|
3308
3295
|
name: string;
|
|
3296
|
+
id: string;
|
|
3309
3297
|
parameters: Record<string, string>;
|
|
3310
3298
|
}[];
|
|
3311
3299
|
} | {
|
|
@@ -3319,20 +3307,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3319
3307
|
} | {
|
|
3320
3308
|
type: "tool-call";
|
|
3321
3309
|
data: {
|
|
3322
|
-
id: string;
|
|
3323
3310
|
name: string;
|
|
3311
|
+
id: string;
|
|
3324
3312
|
input: Record<string, any>;
|
|
3325
3313
|
};
|
|
3326
3314
|
userInputId: string;
|
|
3327
3315
|
response: string;
|
|
3328
3316
|
changes: {
|
|
3329
|
-
path: string;
|
|
3330
3317
|
type: "patch" | "file";
|
|
3318
|
+
path: string;
|
|
3331
3319
|
content: string;
|
|
3332
3320
|
}[];
|
|
3333
3321
|
changesAlreadyApplied: {
|
|
3334
|
-
path: string;
|
|
3335
3322
|
type: "patch" | "file";
|
|
3323
|
+
path: string;
|
|
3336
3324
|
content: string;
|
|
3337
3325
|
}[];
|
|
3338
3326
|
addedFileVersions: {
|
|
@@ -3349,8 +3337,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3349
3337
|
isUpToDate: boolean;
|
|
3350
3338
|
latestVersion: string;
|
|
3351
3339
|
} | {
|
|
3352
|
-
message: string;
|
|
3353
3340
|
type: "action-error";
|
|
3341
|
+
message: string;
|
|
3354
3342
|
} | {
|
|
3355
3343
|
type: "commit-message-response";
|
|
3356
3344
|
commitMessage: string;
|
|
@@ -3364,7 +3352,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3364
3352
|
subscription_active: boolean;
|
|
3365
3353
|
next_quota_reset: Date;
|
|
3366
3354
|
session_credits_used: number;
|
|
3367
|
-
referralLink?: string | undefined;
|
|
3368
3355
|
} | {
|
|
3369
3356
|
type: "init-response";
|
|
3370
3357
|
usage: number;
|
|
@@ -3372,19 +3359,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3372
3359
|
subscription_active: boolean;
|
|
3373
3360
|
next_quota_reset: Date;
|
|
3374
3361
|
session_credits_used: number;
|
|
3375
|
-
referralLink?: string | undefined;
|
|
3376
3362
|
} | {
|
|
3377
3363
|
type: "response-complete";
|
|
3378
3364
|
userInputId: string;
|
|
3379
3365
|
response: string;
|
|
3380
3366
|
changes: {
|
|
3381
|
-
path: string;
|
|
3382
3367
|
type: "patch" | "file";
|
|
3368
|
+
path: string;
|
|
3383
3369
|
content: string;
|
|
3384
3370
|
}[];
|
|
3385
3371
|
changesAlreadyApplied: {
|
|
3386
|
-
path: string;
|
|
3387
3372
|
type: "patch" | "file";
|
|
3373
|
+
path: string;
|
|
3388
3374
|
content: string;
|
|
3389
3375
|
}[];
|
|
3390
3376
|
addedFileVersions: {
|
|
@@ -3394,7 +3380,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3394
3380
|
resetFileVersions: boolean;
|
|
3395
3381
|
usage?: number | undefined;
|
|
3396
3382
|
limit?: number | undefined;
|
|
3397
|
-
referralLink?: string | undefined;
|
|
3398
3383
|
subscription_active?: boolean | undefined;
|
|
3399
3384
|
next_quota_reset?: Date | undefined;
|
|
3400
3385
|
session_credits_used?: number | undefined;
|
|
@@ -3435,7 +3420,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3435
3420
|
}[][] | undefined;
|
|
3436
3421
|
};
|
|
3437
3422
|
messageHistory: {
|
|
3438
|
-
role: "user" | "assistant";
|
|
3439
3423
|
content: string | ({
|
|
3440
3424
|
type: "text";
|
|
3441
3425
|
text: string;
|
|
@@ -3444,8 +3428,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3444
3428
|
} | undefined;
|
|
3445
3429
|
} | {
|
|
3446
3430
|
type: "tool_use";
|
|
3447
|
-
id: string;
|
|
3448
3431
|
name: string;
|
|
3432
|
+
id: string;
|
|
3449
3433
|
input: Record<string, any>;
|
|
3450
3434
|
cache_control?: {
|
|
3451
3435
|
type: "ephemeral";
|
|
@@ -3468,17 +3452,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3468
3452
|
type: "ephemeral";
|
|
3469
3453
|
} | undefined;
|
|
3470
3454
|
})[];
|
|
3455
|
+
role: "user" | "assistant";
|
|
3471
3456
|
}[];
|
|
3472
3457
|
lastUserPromptIndex?: number | undefined;
|
|
3473
3458
|
};
|
|
3474
3459
|
toolResults: {
|
|
3475
|
-
id: string;
|
|
3476
3460
|
name: string;
|
|
3461
|
+
id: string;
|
|
3477
3462
|
result: string;
|
|
3478
3463
|
}[];
|
|
3479
3464
|
toolCalls: {
|
|
3480
|
-
id: string;
|
|
3481
3465
|
name: string;
|
|
3466
|
+
id: string;
|
|
3482
3467
|
parameters: Record<string, string>;
|
|
3483
3468
|
}[];
|
|
3484
3469
|
} | {
|
|
@@ -3492,20 +3477,20 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3492
3477
|
} | {
|
|
3493
3478
|
type: "tool-call";
|
|
3494
3479
|
data: {
|
|
3495
|
-
id: string;
|
|
3496
3480
|
name: string;
|
|
3481
|
+
id: string;
|
|
3497
3482
|
input: Record<string, any>;
|
|
3498
3483
|
};
|
|
3499
3484
|
userInputId: string;
|
|
3500
3485
|
response: string;
|
|
3501
3486
|
changes: {
|
|
3502
|
-
path: string;
|
|
3503
3487
|
type: "patch" | "file";
|
|
3488
|
+
path: string;
|
|
3504
3489
|
content: string;
|
|
3505
3490
|
}[];
|
|
3506
3491
|
changesAlreadyApplied: {
|
|
3507
|
-
path: string;
|
|
3508
3492
|
type: "patch" | "file";
|
|
3493
|
+
path: string;
|
|
3509
3494
|
content: string;
|
|
3510
3495
|
}[];
|
|
3511
3496
|
addedFileVersions: {
|
|
@@ -3522,8 +3507,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3522
3507
|
isUpToDate: boolean;
|
|
3523
3508
|
latestVersion: string;
|
|
3524
3509
|
} | {
|
|
3525
|
-
message: string;
|
|
3526
3510
|
type: "action-error";
|
|
3511
|
+
message: string;
|
|
3527
3512
|
} | {
|
|
3528
3513
|
type: "commit-message-response";
|
|
3529
3514
|
commitMessage: string;
|
|
@@ -3538,13 +3523,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3538
3523
|
}, "strip", z.ZodTypeAny, {
|
|
3539
3524
|
type: "ack";
|
|
3540
3525
|
success: boolean;
|
|
3541
|
-
txid?: number | undefined;
|
|
3542
3526
|
error?: string | undefined;
|
|
3527
|
+
txid?: number | undefined;
|
|
3543
3528
|
}, {
|
|
3544
3529
|
type: "ack";
|
|
3545
3530
|
success: boolean;
|
|
3546
|
-
txid?: number | undefined;
|
|
3547
3531
|
error?: string | undefined;
|
|
3532
|
+
txid?: number | undefined;
|
|
3548
3533
|
}>, z.ZodObject<{
|
|
3549
3534
|
type: z.ZodLiteral<"action">;
|
|
3550
3535
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -3568,12 +3553,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3568
3553
|
path: z.ZodString;
|
|
3569
3554
|
content: z.ZodString;
|
|
3570
3555
|
}, "strip", z.ZodTypeAny, {
|
|
3571
|
-
path: string;
|
|
3572
3556
|
type: "patch" | "file";
|
|
3557
|
+
path: string;
|
|
3573
3558
|
content: string;
|
|
3574
3559
|
}, {
|
|
3575
|
-
path: string;
|
|
3576
3560
|
type: "patch" | "file";
|
|
3561
|
+
path: string;
|
|
3577
3562
|
content: string;
|
|
3578
3563
|
}>, "many">;
|
|
3579
3564
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3581,12 +3566,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3581
3566
|
path: z.ZodString;
|
|
3582
3567
|
content: z.ZodString;
|
|
3583
3568
|
}, "strip", z.ZodTypeAny, {
|
|
3584
|
-
path: string;
|
|
3585
3569
|
type: "patch" | "file";
|
|
3570
|
+
path: string;
|
|
3586
3571
|
content: string;
|
|
3587
3572
|
}, {
|
|
3588
|
-
path: string;
|
|
3589
3573
|
type: "patch" | "file";
|
|
3574
|
+
path: string;
|
|
3590
3575
|
content: string;
|
|
3591
3576
|
}>, "many">;
|
|
3592
3577
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3603,7 +3588,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3603
3588
|
}, {
|
|
3604
3589
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
3605
3590
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
3606
|
-
referralLink: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
3607
3591
|
subscription_active: z.ZodOptional<z.ZodBoolean>;
|
|
3608
3592
|
next_quota_reset: z.ZodOptional<z.ZodDate>;
|
|
3609
3593
|
session_credits_used: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3612,13 +3596,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3612
3596
|
userInputId: string;
|
|
3613
3597
|
response: string;
|
|
3614
3598
|
changes: {
|
|
3615
|
-
path: string;
|
|
3616
3599
|
type: "patch" | "file";
|
|
3600
|
+
path: string;
|
|
3617
3601
|
content: string;
|
|
3618
3602
|
}[];
|
|
3619
3603
|
changesAlreadyApplied: {
|
|
3620
|
-
path: string;
|
|
3621
3604
|
type: "patch" | "file";
|
|
3605
|
+
path: string;
|
|
3622
3606
|
content: string;
|
|
3623
3607
|
}[];
|
|
3624
3608
|
addedFileVersions: {
|
|
@@ -3628,7 +3612,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3628
3612
|
resetFileVersions: boolean;
|
|
3629
3613
|
usage?: number | undefined;
|
|
3630
3614
|
limit?: number | undefined;
|
|
3631
|
-
referralLink?: string | undefined;
|
|
3632
3615
|
subscription_active?: boolean | undefined;
|
|
3633
3616
|
next_quota_reset?: Date | undefined;
|
|
3634
3617
|
session_credits_used?: number | undefined;
|
|
@@ -3637,13 +3620,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3637
3620
|
userInputId: string;
|
|
3638
3621
|
response: string;
|
|
3639
3622
|
changes: {
|
|
3640
|
-
path: string;
|
|
3641
3623
|
type: "patch" | "file";
|
|
3624
|
+
path: string;
|
|
3642
3625
|
content: string;
|
|
3643
3626
|
}[];
|
|
3644
3627
|
changesAlreadyApplied: {
|
|
3645
|
-
path: string;
|
|
3646
3628
|
type: "patch" | "file";
|
|
3629
|
+
path: string;
|
|
3647
3630
|
content: string;
|
|
3648
3631
|
}[];
|
|
3649
3632
|
addedFileVersions: {
|
|
@@ -3653,7 +3636,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3653
3636
|
resetFileVersions: boolean;
|
|
3654
3637
|
usage?: number | undefined;
|
|
3655
3638
|
limit?: number | undefined;
|
|
3656
|
-
referralLink?: string | undefined;
|
|
3657
3639
|
subscription_active?: boolean | undefined;
|
|
3658
3640
|
next_quota_reset?: Date | undefined;
|
|
3659
3641
|
session_credits_used?: number | undefined;
|
|
@@ -3809,16 +3791,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3809
3791
|
}>>;
|
|
3810
3792
|
}, "strip", z.ZodTypeAny, {
|
|
3811
3793
|
type: "tool_use";
|
|
3812
|
-
id: string;
|
|
3813
3794
|
name: string;
|
|
3795
|
+
id: string;
|
|
3814
3796
|
input: Record<string, any>;
|
|
3815
3797
|
cache_control?: {
|
|
3816
3798
|
type: "ephemeral";
|
|
3817
3799
|
} | undefined;
|
|
3818
3800
|
}, {
|
|
3819
3801
|
type: "tool_use";
|
|
3820
|
-
id: string;
|
|
3821
3802
|
name: string;
|
|
3803
|
+
id: string;
|
|
3822
3804
|
input: Record<string, any>;
|
|
3823
3805
|
cache_control?: {
|
|
3824
3806
|
type: "ephemeral";
|
|
@@ -3892,7 +3874,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3892
3874
|
} | undefined;
|
|
3893
3875
|
}>]>, "many">]>;
|
|
3894
3876
|
}, "strip", z.ZodTypeAny, {
|
|
3895
|
-
role: "user" | "assistant";
|
|
3896
3877
|
content: string | ({
|
|
3897
3878
|
type: "text";
|
|
3898
3879
|
text: string;
|
|
@@ -3901,8 +3882,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3901
3882
|
} | undefined;
|
|
3902
3883
|
} | {
|
|
3903
3884
|
type: "tool_use";
|
|
3904
|
-
id: string;
|
|
3905
3885
|
name: string;
|
|
3886
|
+
id: string;
|
|
3906
3887
|
input: Record<string, any>;
|
|
3907
3888
|
cache_control?: {
|
|
3908
3889
|
type: "ephemeral";
|
|
@@ -3925,8 +3906,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3925
3906
|
type: "ephemeral";
|
|
3926
3907
|
} | undefined;
|
|
3927
3908
|
})[];
|
|
3928
|
-
}, {
|
|
3929
3909
|
role: "user" | "assistant";
|
|
3910
|
+
}, {
|
|
3930
3911
|
content: string | ({
|
|
3931
3912
|
type: "text";
|
|
3932
3913
|
text: string;
|
|
@@ -3935,8 +3916,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3935
3916
|
} | undefined;
|
|
3936
3917
|
} | {
|
|
3937
3918
|
type: "tool_use";
|
|
3938
|
-
id: string;
|
|
3939
3919
|
name: string;
|
|
3920
|
+
id: string;
|
|
3940
3921
|
input: Record<string, any>;
|
|
3941
3922
|
cache_control?: {
|
|
3942
3923
|
type: "ephemeral";
|
|
@@ -3959,6 +3940,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3959
3940
|
type: "ephemeral";
|
|
3960
3941
|
} | undefined;
|
|
3961
3942
|
})[];
|
|
3943
|
+
role: "user" | "assistant";
|
|
3962
3944
|
}>, "many">;
|
|
3963
3945
|
lastUserPromptIndex: z.ZodOptional<z.ZodNumber>;
|
|
3964
3946
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3991,7 +3973,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3991
3973
|
}[][] | undefined;
|
|
3992
3974
|
};
|
|
3993
3975
|
messageHistory: {
|
|
3994
|
-
role: "user" | "assistant";
|
|
3995
3976
|
content: string | ({
|
|
3996
3977
|
type: "text";
|
|
3997
3978
|
text: string;
|
|
@@ -4000,8 +3981,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4000
3981
|
} | undefined;
|
|
4001
3982
|
} | {
|
|
4002
3983
|
type: "tool_use";
|
|
4003
|
-
id: string;
|
|
4004
3984
|
name: string;
|
|
3985
|
+
id: string;
|
|
4005
3986
|
input: Record<string, any>;
|
|
4006
3987
|
cache_control?: {
|
|
4007
3988
|
type: "ephemeral";
|
|
@@ -4024,6 +4005,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4024
4005
|
type: "ephemeral";
|
|
4025
4006
|
} | undefined;
|
|
4026
4007
|
})[];
|
|
4008
|
+
role: "user" | "assistant";
|
|
4027
4009
|
}[];
|
|
4028
4010
|
lastUserPromptIndex?: number | undefined;
|
|
4029
4011
|
}, {
|
|
@@ -4056,7 +4038,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4056
4038
|
}[][] | undefined;
|
|
4057
4039
|
};
|
|
4058
4040
|
messageHistory: {
|
|
4059
|
-
role: "user" | "assistant";
|
|
4060
4041
|
content: string | ({
|
|
4061
4042
|
type: "text";
|
|
4062
4043
|
text: string;
|
|
@@ -4065,8 +4046,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4065
4046
|
} | undefined;
|
|
4066
4047
|
} | {
|
|
4067
4048
|
type: "tool_use";
|
|
4068
|
-
id: string;
|
|
4069
4049
|
name: string;
|
|
4050
|
+
id: string;
|
|
4070
4051
|
input: Record<string, any>;
|
|
4071
4052
|
cache_control?: {
|
|
4072
4053
|
type: "ephemeral";
|
|
@@ -4089,6 +4070,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4089
4070
|
type: "ephemeral";
|
|
4090
4071
|
} | undefined;
|
|
4091
4072
|
})[];
|
|
4073
|
+
role: "user" | "assistant";
|
|
4092
4074
|
}[];
|
|
4093
4075
|
lastUserPromptIndex?: number | undefined;
|
|
4094
4076
|
}>;
|
|
@@ -4097,12 +4079,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4097
4079
|
parameters: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
4098
4080
|
id: z.ZodString;
|
|
4099
4081
|
}, "strip", z.ZodTypeAny, {
|
|
4100
|
-
id: string;
|
|
4101
4082
|
name: string;
|
|
4083
|
+
id: string;
|
|
4102
4084
|
parameters: Record<string, string>;
|
|
4103
4085
|
}, {
|
|
4104
|
-
id: string;
|
|
4105
4086
|
name: string;
|
|
4087
|
+
id: string;
|
|
4106
4088
|
parameters: Record<string, string>;
|
|
4107
4089
|
}>, "many">;
|
|
4108
4090
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
@@ -4110,12 +4092,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4110
4092
|
result: z.ZodString;
|
|
4111
4093
|
id: z.ZodString;
|
|
4112
4094
|
}, "strip", z.ZodTypeAny, {
|
|
4113
|
-
id: string;
|
|
4114
4095
|
name: string;
|
|
4096
|
+
id: string;
|
|
4115
4097
|
result: string;
|
|
4116
4098
|
}, {
|
|
4117
|
-
id: string;
|
|
4118
4099
|
name: string;
|
|
4100
|
+
id: string;
|
|
4119
4101
|
result: string;
|
|
4120
4102
|
}>, "many">;
|
|
4121
4103
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4151,7 +4133,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4151
4133
|
}[][] | undefined;
|
|
4152
4134
|
};
|
|
4153
4135
|
messageHistory: {
|
|
4154
|
-
role: "user" | "assistant";
|
|
4155
4136
|
content: string | ({
|
|
4156
4137
|
type: "text";
|
|
4157
4138
|
text: string;
|
|
@@ -4160,8 +4141,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4160
4141
|
} | undefined;
|
|
4161
4142
|
} | {
|
|
4162
4143
|
type: "tool_use";
|
|
4163
|
-
id: string;
|
|
4164
4144
|
name: string;
|
|
4145
|
+
id: string;
|
|
4165
4146
|
input: Record<string, any>;
|
|
4166
4147
|
cache_control?: {
|
|
4167
4148
|
type: "ephemeral";
|
|
@@ -4184,17 +4165,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4184
4165
|
type: "ephemeral";
|
|
4185
4166
|
} | undefined;
|
|
4186
4167
|
})[];
|
|
4168
|
+
role: "user" | "assistant";
|
|
4187
4169
|
}[];
|
|
4188
4170
|
lastUserPromptIndex?: number | undefined;
|
|
4189
4171
|
};
|
|
4190
4172
|
toolResults: {
|
|
4191
|
-
id: string;
|
|
4192
4173
|
name: string;
|
|
4174
|
+
id: string;
|
|
4193
4175
|
result: string;
|
|
4194
4176
|
}[];
|
|
4195
4177
|
toolCalls: {
|
|
4196
|
-
id: string;
|
|
4197
4178
|
name: string;
|
|
4179
|
+
id: string;
|
|
4198
4180
|
parameters: Record<string, string>;
|
|
4199
4181
|
}[];
|
|
4200
4182
|
}, {
|
|
@@ -4230,7 +4212,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4230
4212
|
}[][] | undefined;
|
|
4231
4213
|
};
|
|
4232
4214
|
messageHistory: {
|
|
4233
|
-
role: "user" | "assistant";
|
|
4234
4215
|
content: string | ({
|
|
4235
4216
|
type: "text";
|
|
4236
4217
|
text: string;
|
|
@@ -4239,8 +4220,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4239
4220
|
} | undefined;
|
|
4240
4221
|
} | {
|
|
4241
4222
|
type: "tool_use";
|
|
4242
|
-
id: string;
|
|
4243
4223
|
name: string;
|
|
4224
|
+
id: string;
|
|
4244
4225
|
input: Record<string, any>;
|
|
4245
4226
|
cache_control?: {
|
|
4246
4227
|
type: "ephemeral";
|
|
@@ -4263,17 +4244,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4263
4244
|
type: "ephemeral";
|
|
4264
4245
|
} | undefined;
|
|
4265
4246
|
})[];
|
|
4247
|
+
role: "user" | "assistant";
|
|
4266
4248
|
}[];
|
|
4267
4249
|
lastUserPromptIndex?: number | undefined;
|
|
4268
4250
|
};
|
|
4269
4251
|
toolResults: {
|
|
4270
|
-
id: string;
|
|
4271
4252
|
name: string;
|
|
4253
|
+
id: string;
|
|
4272
4254
|
result: string;
|
|
4273
4255
|
}[];
|
|
4274
4256
|
toolCalls: {
|
|
4275
|
-
id: string;
|
|
4276
4257
|
name: string;
|
|
4258
|
+
id: string;
|
|
4277
4259
|
parameters: Record<string, string>;
|
|
4278
4260
|
}[];
|
|
4279
4261
|
}>, z.ZodObject<{
|
|
@@ -4297,12 +4279,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4297
4279
|
id: z.ZodString;
|
|
4298
4280
|
input: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
4299
4281
|
}, "strip", z.ZodTypeAny, {
|
|
4300
|
-
id: string;
|
|
4301
4282
|
name: string;
|
|
4283
|
+
id: string;
|
|
4302
4284
|
input: Record<string, any>;
|
|
4303
4285
|
}, {
|
|
4304
|
-
id: string;
|
|
4305
4286
|
name: string;
|
|
4287
|
+
id: string;
|
|
4306
4288
|
input: Record<string, any>;
|
|
4307
4289
|
}>;
|
|
4308
4290
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -4310,12 +4292,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4310
4292
|
path: z.ZodString;
|
|
4311
4293
|
content: z.ZodString;
|
|
4312
4294
|
}, "strip", z.ZodTypeAny, {
|
|
4313
|
-
path: string;
|
|
4314
4295
|
type: "patch" | "file";
|
|
4296
|
+
path: string;
|
|
4315
4297
|
content: string;
|
|
4316
4298
|
}, {
|
|
4317
|
-
path: string;
|
|
4318
4299
|
type: "patch" | "file";
|
|
4300
|
+
path: string;
|
|
4319
4301
|
content: string;
|
|
4320
4302
|
}>, "many">;
|
|
4321
4303
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4323,12 +4305,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4323
4305
|
path: z.ZodString;
|
|
4324
4306
|
content: z.ZodString;
|
|
4325
4307
|
}, "strip", z.ZodTypeAny, {
|
|
4326
|
-
path: string;
|
|
4327
4308
|
type: "patch" | "file";
|
|
4309
|
+
path: string;
|
|
4328
4310
|
content: string;
|
|
4329
4311
|
}, {
|
|
4330
|
-
path: string;
|
|
4331
4312
|
type: "patch" | "file";
|
|
4313
|
+
path: string;
|
|
4332
4314
|
content: string;
|
|
4333
4315
|
}>, "many">;
|
|
4334
4316
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4345,20 +4327,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4345
4327
|
}, "strip", z.ZodTypeAny, {
|
|
4346
4328
|
type: "tool-call";
|
|
4347
4329
|
data: {
|
|
4348
|
-
id: string;
|
|
4349
4330
|
name: string;
|
|
4331
|
+
id: string;
|
|
4350
4332
|
input: Record<string, any>;
|
|
4351
4333
|
};
|
|
4352
4334
|
userInputId: string;
|
|
4353
4335
|
response: string;
|
|
4354
4336
|
changes: {
|
|
4355
|
-
path: string;
|
|
4356
4337
|
type: "patch" | "file";
|
|
4338
|
+
path: string;
|
|
4357
4339
|
content: string;
|
|
4358
4340
|
}[];
|
|
4359
4341
|
changesAlreadyApplied: {
|
|
4360
|
-
path: string;
|
|
4361
4342
|
type: "patch" | "file";
|
|
4343
|
+
path: string;
|
|
4362
4344
|
content: string;
|
|
4363
4345
|
}[];
|
|
4364
4346
|
addedFileVersions: {
|
|
@@ -4369,20 +4351,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4369
4351
|
}, {
|
|
4370
4352
|
type: "tool-call";
|
|
4371
4353
|
data: {
|
|
4372
|
-
id: string;
|
|
4373
4354
|
name: string;
|
|
4355
|
+
id: string;
|
|
4374
4356
|
input: Record<string, any>;
|
|
4375
4357
|
};
|
|
4376
4358
|
userInputId: string;
|
|
4377
4359
|
response: string;
|
|
4378
4360
|
changes: {
|
|
4379
|
-
path: string;
|
|
4380
4361
|
type: "patch" | "file";
|
|
4362
|
+
path: string;
|
|
4381
4363
|
content: string;
|
|
4382
4364
|
}[];
|
|
4383
4365
|
changesAlreadyApplied: {
|
|
4384
|
-
path: string;
|
|
4385
4366
|
type: "patch" | "file";
|
|
4367
|
+
path: string;
|
|
4386
4368
|
content: string;
|
|
4387
4369
|
}[];
|
|
4388
4370
|
addedFileVersions: {
|
|
@@ -4420,7 +4402,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4420
4402
|
type: z.ZodLiteral<"usage-response">;
|
|
4421
4403
|
usage: z.ZodNumber;
|
|
4422
4404
|
limit: z.ZodNumber;
|
|
4423
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
4424
4405
|
subscription_active: z.ZodBoolean;
|
|
4425
4406
|
next_quota_reset: z.ZodDate;
|
|
4426
4407
|
session_credits_used: z.ZodNumber;
|
|
@@ -4431,7 +4412,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4431
4412
|
subscription_active: boolean;
|
|
4432
4413
|
next_quota_reset: Date;
|
|
4433
4414
|
session_credits_used: number;
|
|
4434
|
-
referralLink?: string | undefined;
|
|
4435
4415
|
}, {
|
|
4436
4416
|
type: "init-response";
|
|
4437
4417
|
usage: number;
|
|
@@ -4439,12 +4419,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4439
4419
|
subscription_active: boolean;
|
|
4440
4420
|
next_quota_reset: Date;
|
|
4441
4421
|
session_credits_used: number;
|
|
4442
|
-
referralLink?: string | undefined;
|
|
4443
4422
|
}>, z.ZodObject<{
|
|
4444
4423
|
type: z.ZodLiteral<"usage-response">;
|
|
4445
4424
|
usage: z.ZodNumber;
|
|
4446
4425
|
limit: z.ZodNumber;
|
|
4447
|
-
referralLink: z.ZodOptional<z.ZodString>;
|
|
4448
4426
|
subscription_active: z.ZodBoolean;
|
|
4449
4427
|
next_quota_reset: z.ZodDate;
|
|
4450
4428
|
session_credits_used: z.ZodNumber;
|
|
@@ -4455,7 +4433,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4455
4433
|
subscription_active: boolean;
|
|
4456
4434
|
next_quota_reset: Date;
|
|
4457
4435
|
session_credits_used: number;
|
|
4458
|
-
referralLink?: string | undefined;
|
|
4459
4436
|
}, {
|
|
4460
4437
|
type: "usage-response";
|
|
4461
4438
|
usage: number;
|
|
@@ -4463,7 +4440,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4463
4440
|
subscription_active: boolean;
|
|
4464
4441
|
next_quota_reset: Date;
|
|
4465
4442
|
session_credits_used: number;
|
|
4466
|
-
referralLink?: string | undefined;
|
|
4467
4443
|
}>, z.ZodObject<{
|
|
4468
4444
|
type: z.ZodLiteral<"message-cost-response">;
|
|
4469
4445
|
promptId: z.ZodString;
|
|
@@ -4480,11 +4456,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4480
4456
|
type: z.ZodLiteral<"action-error">;
|
|
4481
4457
|
message: z.ZodString;
|
|
4482
4458
|
}, "strip", z.ZodTypeAny, {
|
|
4483
|
-
message: string;
|
|
4484
4459
|
type: "action-error";
|
|
4485
|
-
}, {
|
|
4486
4460
|
message: string;
|
|
4461
|
+
}, {
|
|
4487
4462
|
type: "action-error";
|
|
4463
|
+
message: string;
|
|
4488
4464
|
}>, z.ZodObject<{
|
|
4489
4465
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4490
4466
|
commitMessage: z.ZodString;
|
|
@@ -4504,7 +4480,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4504
4480
|
subscription_active: boolean;
|
|
4505
4481
|
next_quota_reset: Date;
|
|
4506
4482
|
session_credits_used: number;
|
|
4507
|
-
referralLink?: string | undefined;
|
|
4508
4483
|
} | {
|
|
4509
4484
|
type: "init-response";
|
|
4510
4485
|
usage: number;
|
|
@@ -4512,19 +4487,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4512
4487
|
subscription_active: boolean;
|
|
4513
4488
|
next_quota_reset: Date;
|
|
4514
4489
|
session_credits_used: number;
|
|
4515
|
-
referralLink?: string | undefined;
|
|
4516
4490
|
} | {
|
|
4517
4491
|
type: "response-complete";
|
|
4518
4492
|
userInputId: string;
|
|
4519
4493
|
response: string;
|
|
4520
4494
|
changes: {
|
|
4521
|
-
path: string;
|
|
4522
4495
|
type: "patch" | "file";
|
|
4496
|
+
path: string;
|
|
4523
4497
|
content: string;
|
|
4524
4498
|
}[];
|
|
4525
4499
|
changesAlreadyApplied: {
|
|
4526
|
-
path: string;
|
|
4527
4500
|
type: "patch" | "file";
|
|
4501
|
+
path: string;
|
|
4528
4502
|
content: string;
|
|
4529
4503
|
}[];
|
|
4530
4504
|
addedFileVersions: {
|
|
@@ -4534,7 +4508,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4534
4508
|
resetFileVersions: boolean;
|
|
4535
4509
|
usage?: number | undefined;
|
|
4536
4510
|
limit?: number | undefined;
|
|
4537
|
-
referralLink?: string | undefined;
|
|
4538
4511
|
subscription_active?: boolean | undefined;
|
|
4539
4512
|
next_quota_reset?: Date | undefined;
|
|
4540
4513
|
session_credits_used?: number | undefined;
|
|
@@ -4575,7 +4548,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4575
4548
|
}[][] | undefined;
|
|
4576
4549
|
};
|
|
4577
4550
|
messageHistory: {
|
|
4578
|
-
role: "user" | "assistant";
|
|
4579
4551
|
content: string | ({
|
|
4580
4552
|
type: "text";
|
|
4581
4553
|
text: string;
|
|
@@ -4584,8 +4556,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4584
4556
|
} | undefined;
|
|
4585
4557
|
} | {
|
|
4586
4558
|
type: "tool_use";
|
|
4587
|
-
id: string;
|
|
4588
4559
|
name: string;
|
|
4560
|
+
id: string;
|
|
4589
4561
|
input: Record<string, any>;
|
|
4590
4562
|
cache_control?: {
|
|
4591
4563
|
type: "ephemeral";
|
|
@@ -4608,17 +4580,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4608
4580
|
type: "ephemeral";
|
|
4609
4581
|
} | undefined;
|
|
4610
4582
|
})[];
|
|
4583
|
+
role: "user" | "assistant";
|
|
4611
4584
|
}[];
|
|
4612
4585
|
lastUserPromptIndex?: number | undefined;
|
|
4613
4586
|
};
|
|
4614
4587
|
toolResults: {
|
|
4615
|
-
id: string;
|
|
4616
4588
|
name: string;
|
|
4589
|
+
id: string;
|
|
4617
4590
|
result: string;
|
|
4618
4591
|
}[];
|
|
4619
4592
|
toolCalls: {
|
|
4620
|
-
id: string;
|
|
4621
4593
|
name: string;
|
|
4594
|
+
id: string;
|
|
4622
4595
|
parameters: Record<string, string>;
|
|
4623
4596
|
}[];
|
|
4624
4597
|
} | {
|
|
@@ -4632,20 +4605,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4632
4605
|
} | {
|
|
4633
4606
|
type: "tool-call";
|
|
4634
4607
|
data: {
|
|
4635
|
-
id: string;
|
|
4636
4608
|
name: string;
|
|
4609
|
+
id: string;
|
|
4637
4610
|
input: Record<string, any>;
|
|
4638
4611
|
};
|
|
4639
4612
|
userInputId: string;
|
|
4640
4613
|
response: string;
|
|
4641
4614
|
changes: {
|
|
4642
|
-
path: string;
|
|
4643
4615
|
type: "patch" | "file";
|
|
4616
|
+
path: string;
|
|
4644
4617
|
content: string;
|
|
4645
4618
|
}[];
|
|
4646
4619
|
changesAlreadyApplied: {
|
|
4647
|
-
path: string;
|
|
4648
4620
|
type: "patch" | "file";
|
|
4621
|
+
path: string;
|
|
4649
4622
|
content: string;
|
|
4650
4623
|
}[];
|
|
4651
4624
|
addedFileVersions: {
|
|
@@ -4662,8 +4635,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4662
4635
|
isUpToDate: boolean;
|
|
4663
4636
|
latestVersion: string;
|
|
4664
4637
|
} | {
|
|
4665
|
-
message: string;
|
|
4666
4638
|
type: "action-error";
|
|
4639
|
+
message: string;
|
|
4667
4640
|
} | {
|
|
4668
4641
|
type: "commit-message-response";
|
|
4669
4642
|
commitMessage: string;
|
|
@@ -4677,7 +4650,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4677
4650
|
subscription_active: boolean;
|
|
4678
4651
|
next_quota_reset: Date;
|
|
4679
4652
|
session_credits_used: number;
|
|
4680
|
-
referralLink?: string | undefined;
|
|
4681
4653
|
} | {
|
|
4682
4654
|
type: "init-response";
|
|
4683
4655
|
usage: number;
|
|
@@ -4685,19 +4657,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4685
4657
|
subscription_active: boolean;
|
|
4686
4658
|
next_quota_reset: Date;
|
|
4687
4659
|
session_credits_used: number;
|
|
4688
|
-
referralLink?: string | undefined;
|
|
4689
4660
|
} | {
|
|
4690
4661
|
type: "response-complete";
|
|
4691
4662
|
userInputId: string;
|
|
4692
4663
|
response: string;
|
|
4693
4664
|
changes: {
|
|
4694
|
-
path: string;
|
|
4695
4665
|
type: "patch" | "file";
|
|
4666
|
+
path: string;
|
|
4696
4667
|
content: string;
|
|
4697
4668
|
}[];
|
|
4698
4669
|
changesAlreadyApplied: {
|
|
4699
|
-
path: string;
|
|
4700
4670
|
type: "patch" | "file";
|
|
4671
|
+
path: string;
|
|
4701
4672
|
content: string;
|
|
4702
4673
|
}[];
|
|
4703
4674
|
addedFileVersions: {
|
|
@@ -4707,7 +4678,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4707
4678
|
resetFileVersions: boolean;
|
|
4708
4679
|
usage?: number | undefined;
|
|
4709
4680
|
limit?: number | undefined;
|
|
4710
|
-
referralLink?: string | undefined;
|
|
4711
4681
|
subscription_active?: boolean | undefined;
|
|
4712
4682
|
next_quota_reset?: Date | undefined;
|
|
4713
4683
|
session_credits_used?: number | undefined;
|
|
@@ -4748,7 +4718,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4748
4718
|
}[][] | undefined;
|
|
4749
4719
|
};
|
|
4750
4720
|
messageHistory: {
|
|
4751
|
-
role: "user" | "assistant";
|
|
4752
4721
|
content: string | ({
|
|
4753
4722
|
type: "text";
|
|
4754
4723
|
text: string;
|
|
@@ -4757,8 +4726,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4757
4726
|
} | undefined;
|
|
4758
4727
|
} | {
|
|
4759
4728
|
type: "tool_use";
|
|
4760
|
-
id: string;
|
|
4761
4729
|
name: string;
|
|
4730
|
+
id: string;
|
|
4762
4731
|
input: Record<string, any>;
|
|
4763
4732
|
cache_control?: {
|
|
4764
4733
|
type: "ephemeral";
|
|
@@ -4781,17 +4750,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4781
4750
|
type: "ephemeral";
|
|
4782
4751
|
} | undefined;
|
|
4783
4752
|
})[];
|
|
4753
|
+
role: "user" | "assistant";
|
|
4784
4754
|
}[];
|
|
4785
4755
|
lastUserPromptIndex?: number | undefined;
|
|
4786
4756
|
};
|
|
4787
4757
|
toolResults: {
|
|
4788
|
-
id: string;
|
|
4789
4758
|
name: string;
|
|
4759
|
+
id: string;
|
|
4790
4760
|
result: string;
|
|
4791
4761
|
}[];
|
|
4792
4762
|
toolCalls: {
|
|
4793
|
-
id: string;
|
|
4794
4763
|
name: string;
|
|
4764
|
+
id: string;
|
|
4795
4765
|
parameters: Record<string, string>;
|
|
4796
4766
|
}[];
|
|
4797
4767
|
} | {
|
|
@@ -4805,20 +4775,20 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4805
4775
|
} | {
|
|
4806
4776
|
type: "tool-call";
|
|
4807
4777
|
data: {
|
|
4808
|
-
id: string;
|
|
4809
4778
|
name: string;
|
|
4779
|
+
id: string;
|
|
4810
4780
|
input: Record<string, any>;
|
|
4811
4781
|
};
|
|
4812
4782
|
userInputId: string;
|
|
4813
4783
|
response: string;
|
|
4814
4784
|
changes: {
|
|
4815
|
-
path: string;
|
|
4816
4785
|
type: "patch" | "file";
|
|
4786
|
+
path: string;
|
|
4817
4787
|
content: string;
|
|
4818
4788
|
}[];
|
|
4819
4789
|
changesAlreadyApplied: {
|
|
4820
|
-
path: string;
|
|
4821
4790
|
type: "patch" | "file";
|
|
4791
|
+
path: string;
|
|
4822
4792
|
content: string;
|
|
4823
4793
|
}[];
|
|
4824
4794
|
addedFileVersions: {
|
|
@@ -4835,8 +4805,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4835
4805
|
isUpToDate: boolean;
|
|
4836
4806
|
latestVersion: string;
|
|
4837
4807
|
} | {
|
|
4838
|
-
message: string;
|
|
4839
4808
|
type: "action-error";
|
|
4809
|
+
message: string;
|
|
4840
4810
|
} | {
|
|
4841
4811
|
type: "commit-message-response";
|
|
4842
4812
|
commitMessage: string;
|