codebuff 1.0.219 → 1.0.221
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/checkpoints/checkpoint-manager.d.ts +1 -1
- package/dist/checkpoints/checkpoint-manager.js +8 -6
- package/dist/checkpoints/checkpoint-manager.js.map +1 -1
- package/dist/cli-handlers/api-key.d.ts +25 -0
- package/dist/cli-handlers/api-key.js +66 -0
- package/dist/cli-handlers/api-key.js.map +1 -0
- package/dist/cli-handlers/checkpoint.d.ts +18 -0
- package/dist/cli-handlers/checkpoint.js +195 -0
- package/dist/cli-handlers/checkpoint.js.map +1 -0
- package/dist/cli-handlers/diff.d.ts +2 -0
- package/dist/cli-handlers/diff.js +31 -0
- package/dist/cli-handlers/diff.js.map +1 -0
- package/dist/cli-handlers/easter-egg.d.ts +1 -0
- package/dist/cli-handlers/easter-egg.js +126 -0
- package/dist/cli-handlers/easter-egg.js.map +1 -0
- package/dist/cli.d.ts +0 -18
- package/dist/cli.js +70 -397
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +11 -11
- package/dist/client.js +123 -45
- package/dist/client.js.map +1 -1
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +288 -264
- package/dist/common/actions.js +10 -4
- package/dist/common/actions.js.map +1 -1
- package/dist/common/advanced-analyzer.d.ts +19 -0
- package/dist/common/advanced-analyzer.js +140 -0
- package/dist/common/advanced-analyzer.js.map +1 -0
- package/dist/common/billing/auto-topup.d.ts +8 -0
- package/dist/common/billing/auto-topup.js +192 -0
- package/dist/common/billing/auto-topup.js.map +1 -0
- package/dist/common/billing/balance-calculator.d.ts +55 -0
- package/dist/common/billing/balance-calculator.js +207 -0
- package/dist/common/billing/balance-calculator.js.map +1 -0
- package/dist/common/billing/check-auto-topup.d.ts +12 -0
- package/dist/common/billing/check-auto-topup.js +50 -0
- package/dist/common/billing/check-auto-topup.js.map +1 -0
- package/dist/common/billing/conversion.d.ts +9 -0
- package/dist/common/billing/conversion.js +20 -0
- package/dist/common/billing/conversion.js.map +1 -0
- package/dist/common/billing/credit-check.d.ts +8 -0
- package/dist/common/billing/credit-check.js +45 -0
- package/dist/common/billing/credit-check.js.map +1 -0
- package/dist/common/billing/credit-conversion.d.ts +24 -0
- package/dist/common/billing/credit-conversion.js +48 -0
- package/dist/common/billing/credit-conversion.js.map +1 -0
- package/dist/common/billing/grant-credits.d.ts +28 -0
- package/dist/common/billing/grant-credits.js +201 -0
- package/dist/common/billing/grant-credits.js.map +1 -0
- package/dist/common/billing/plans.d.ts +13 -0
- package/dist/common/billing/plans.js +44 -0
- package/dist/common/billing/plans.js.map +1 -0
- package/dist/common/billing/rollover-logic.d.ts +13 -0
- package/dist/common/billing/rollover-logic.js +174 -0
- package/dist/common/billing/rollover-logic.js.map +1 -0
- package/dist/common/billing/stripe-api.d.ts +31 -0
- package/dist/common/billing/stripe-api.js +104 -0
- package/dist/common/billing/stripe-api.js.map +1 -0
- package/dist/common/browser-actions.d.ts +62 -62
- package/dist/common/constants/grant-priorities.d.ts +2 -0
- package/dist/common/constants/grant-priorities.js +10 -0
- package/dist/common/constants/grant-priorities.js.map +1 -0
- package/dist/common/constants.d.ts +28 -1
- package/dist/common/constants.js +36 -7
- package/dist/common/constants.js.map +1 -1
- package/dist/common/db/schema.d.ts +323 -86
- package/dist/common/db/schema.js +55 -13
- package/dist/common/db/schema.js.map +1 -1
- package/dist/common/env.mjs +4 -1
- package/dist/common/env.mjs.map +1 -1
- package/dist/common/message-image-handling.d.ts +41 -0
- package/dist/common/message-image-handling.js +57 -0
- package/dist/common/message-image-handling.js.map +1 -0
- package/dist/common/types/agent-state.d.ts +8 -8
- package/dist/common/types/grant.d.ts +2 -0
- package/dist/common/types/grant.js +10 -0
- package/dist/common/types/grant.js.map +1 -0
- package/dist/common/types/usage.d.ts +37 -18
- package/dist/common/types/usage.js +9 -6
- package/dist/common/types/usage.js.map +1 -1
- package/dist/common/util/__tests__/saxy.test.d.ts +1 -0
- package/dist/common/util/__tests__/saxy.test.js +262 -0
- package/dist/common/util/__tests__/saxy.test.js.map +1 -0
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/dates.d.ts +10 -1
- package/dist/common/util/dates.js +11 -2
- package/dist/common/util/dates.js.map +1 -1
- package/dist/common/util/logger.js +32 -14
- package/dist/common/util/logger.js.map +1 -1
- package/dist/common/util/process-stream.d.ts +8 -0
- package/dist/common/util/process-stream.js +102 -0
- package/dist/common/util/process-stream.js.map +1 -0
- package/dist/common/util/promise.d.ts +1 -1
- package/dist/common/util/promise.js +2 -2
- package/dist/common/util/promise.js.map +1 -1
- package/dist/common/util/referral-credits.d.ts +1 -0
- package/dist/common/util/referral-credits.js +48 -0
- package/dist/common/util/referral-credits.js.map +1 -0
- package/dist/common/util/saxy.d.ts +8 -0
- package/dist/common/util/saxy.js +35 -12
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/util/sync-failure.d.ts +1 -0
- package/dist/common/util/sync-failure.js +57 -0
- package/dist/common/util/sync-failure.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +530 -480
- package/dist/index.js +1 -1
- package/dist/utils/__tests__/xml-stream-parser.test.js +6 -10
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/logger.d.ts +0 -1
- package/dist/common/logger.js +0 -7
- package/dist/common/logger.js.map +0 -1
- package/dist/common/util/constants.d.ts +0 -1
- package/dist/common/util/constants.js +0 -7
- package/dist/common/util/constants.js.map +0 -1
- package/dist/common/util/helpers.d.ts +0 -1
- package/dist/common/util/helpers.js +0 -6
- package/dist/common/util/helpers.js.map +0 -1
- package/dist/common/util/token-counter.d.ts +0 -3
- package/dist/common/util/token-counter.js +0 -27
- package/dist/common/util/token-counter.js.map +0 -1
|
@@ -111,11 +111,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
111
111
|
path: z.ZodString;
|
|
112
112
|
content: z.ZodString;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
path: string;
|
|
115
114
|
content: string;
|
|
116
|
-
}, {
|
|
117
115
|
path: string;
|
|
116
|
+
}, {
|
|
118
117
|
content: string;
|
|
118
|
+
path: string;
|
|
119
119
|
}>, "many">, "many">>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
currentWorkingDirectory: string;
|
|
@@ -140,8 +140,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
140
140
|
};
|
|
141
141
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
142
142
|
fileVersions?: {
|
|
143
|
-
path: string;
|
|
144
143
|
content: string;
|
|
144
|
+
path: string;
|
|
145
145
|
}[][] | undefined;
|
|
146
146
|
}, {
|
|
147
147
|
currentWorkingDirectory: string;
|
|
@@ -166,8 +166,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
166
166
|
};
|
|
167
167
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
168
168
|
fileVersions?: {
|
|
169
|
-
path: string;
|
|
170
169
|
content: string;
|
|
170
|
+
path: string;
|
|
171
171
|
}[][] | undefined;
|
|
172
172
|
}>;
|
|
173
173
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -183,14 +183,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
183
183
|
type: "ephemeral";
|
|
184
184
|
}>>;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
|
-
type: "text";
|
|
187
186
|
text: string;
|
|
187
|
+
type: "text";
|
|
188
188
|
cache_control?: {
|
|
189
189
|
type: "ephemeral";
|
|
190
190
|
} | undefined;
|
|
191
191
|
}, {
|
|
192
|
-
type: "text";
|
|
193
192
|
text: string;
|
|
193
|
+
type: "text";
|
|
194
194
|
cache_control?: {
|
|
195
195
|
type: "ephemeral";
|
|
196
196
|
} | undefined;
|
|
@@ -234,15 +234,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
234
234
|
type: "ephemeral";
|
|
235
235
|
}>>;
|
|
236
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
-
type: "tool_result";
|
|
238
237
|
content: string;
|
|
238
|
+
type: "tool_result";
|
|
239
239
|
tool_use_id: string;
|
|
240
240
|
cache_control?: {
|
|
241
241
|
type: "ephemeral";
|
|
242
242
|
} | undefined;
|
|
243
243
|
}, {
|
|
244
|
-
type: "tool_result";
|
|
245
244
|
content: string;
|
|
245
|
+
type: "tool_result";
|
|
246
246
|
tool_use_id: string;
|
|
247
247
|
cache_control?: {
|
|
248
248
|
type: "ephemeral";
|
|
@@ -254,13 +254,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
254
254
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
255
255
|
data: z.ZodString;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
data: string;
|
|
257
258
|
type: "base64";
|
|
258
259
|
media_type: "image/jpeg";
|
|
259
|
-
data: string;
|
|
260
260
|
}, {
|
|
261
|
+
data: string;
|
|
261
262
|
type: "base64";
|
|
262
263
|
media_type: "image/jpeg";
|
|
263
|
-
data: string;
|
|
264
264
|
}>;
|
|
265
265
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
266
266
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -272,9 +272,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
272
272
|
}, "strip", z.ZodTypeAny, {
|
|
273
273
|
type: "image";
|
|
274
274
|
source: {
|
|
275
|
+
data: string;
|
|
275
276
|
type: "base64";
|
|
276
277
|
media_type: "image/jpeg";
|
|
277
|
-
data: string;
|
|
278
278
|
};
|
|
279
279
|
cache_control?: {
|
|
280
280
|
type: "ephemeral";
|
|
@@ -282,9 +282,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
282
282
|
}, {
|
|
283
283
|
type: "image";
|
|
284
284
|
source: {
|
|
285
|
+
data: string;
|
|
285
286
|
type: "base64";
|
|
286
287
|
media_type: "image/jpeg";
|
|
287
|
-
data: string;
|
|
288
288
|
};
|
|
289
289
|
cache_control?: {
|
|
290
290
|
type: "ephemeral";
|
|
@@ -292,8 +292,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
292
292
|
}>]>, "many">]>;
|
|
293
293
|
}, "strip", z.ZodTypeAny, {
|
|
294
294
|
content: string | ({
|
|
295
|
-
type: "text";
|
|
296
295
|
text: string;
|
|
296
|
+
type: "text";
|
|
297
297
|
cache_control?: {
|
|
298
298
|
type: "ephemeral";
|
|
299
299
|
} | undefined;
|
|
@@ -306,8 +306,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
306
306
|
type: "ephemeral";
|
|
307
307
|
} | undefined;
|
|
308
308
|
} | {
|
|
309
|
-
type: "tool_result";
|
|
310
309
|
content: string;
|
|
310
|
+
type: "tool_result";
|
|
311
311
|
tool_use_id: string;
|
|
312
312
|
cache_control?: {
|
|
313
313
|
type: "ephemeral";
|
|
@@ -315,9 +315,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
315
315
|
} | {
|
|
316
316
|
type: "image";
|
|
317
317
|
source: {
|
|
318
|
+
data: string;
|
|
318
319
|
type: "base64";
|
|
319
320
|
media_type: "image/jpeg";
|
|
320
|
-
data: string;
|
|
321
321
|
};
|
|
322
322
|
cache_control?: {
|
|
323
323
|
type: "ephemeral";
|
|
@@ -326,8 +326,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
326
326
|
role: "user" | "assistant";
|
|
327
327
|
}, {
|
|
328
328
|
content: string | ({
|
|
329
|
-
type: "text";
|
|
330
329
|
text: string;
|
|
330
|
+
type: "text";
|
|
331
331
|
cache_control?: {
|
|
332
332
|
type: "ephemeral";
|
|
333
333
|
} | undefined;
|
|
@@ -340,8 +340,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
340
340
|
type: "ephemeral";
|
|
341
341
|
} | undefined;
|
|
342
342
|
} | {
|
|
343
|
-
type: "tool_result";
|
|
344
343
|
content: string;
|
|
344
|
+
type: "tool_result";
|
|
345
345
|
tool_use_id: string;
|
|
346
346
|
cache_control?: {
|
|
347
347
|
type: "ephemeral";
|
|
@@ -349,9 +349,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
349
349
|
} | {
|
|
350
350
|
type: "image";
|
|
351
351
|
source: {
|
|
352
|
+
data: string;
|
|
352
353
|
type: "base64";
|
|
353
354
|
media_type: "image/jpeg";
|
|
354
|
-
data: string;
|
|
355
355
|
};
|
|
356
356
|
cache_control?: {
|
|
357
357
|
type: "ephemeral";
|
|
@@ -385,14 +385,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
385
385
|
};
|
|
386
386
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
387
387
|
fileVersions?: {
|
|
388
|
-
path: string;
|
|
389
388
|
content: string;
|
|
389
|
+
path: string;
|
|
390
390
|
}[][] | undefined;
|
|
391
391
|
};
|
|
392
392
|
messageHistory: {
|
|
393
393
|
content: string | ({
|
|
394
|
-
type: "text";
|
|
395
394
|
text: string;
|
|
395
|
+
type: "text";
|
|
396
396
|
cache_control?: {
|
|
397
397
|
type: "ephemeral";
|
|
398
398
|
} | undefined;
|
|
@@ -405,8 +405,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
405
405
|
type: "ephemeral";
|
|
406
406
|
} | undefined;
|
|
407
407
|
} | {
|
|
408
|
-
type: "tool_result";
|
|
409
408
|
content: string;
|
|
409
|
+
type: "tool_result";
|
|
410
410
|
tool_use_id: string;
|
|
411
411
|
cache_control?: {
|
|
412
412
|
type: "ephemeral";
|
|
@@ -414,9 +414,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
414
414
|
} | {
|
|
415
415
|
type: "image";
|
|
416
416
|
source: {
|
|
417
|
+
data: string;
|
|
417
418
|
type: "base64";
|
|
418
419
|
media_type: "image/jpeg";
|
|
419
|
-
data: string;
|
|
420
420
|
};
|
|
421
421
|
cache_control?: {
|
|
422
422
|
type: "ephemeral";
|
|
@@ -450,14 +450,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
450
450
|
};
|
|
451
451
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
452
452
|
fileVersions?: {
|
|
453
|
-
path: string;
|
|
454
453
|
content: string;
|
|
454
|
+
path: string;
|
|
455
455
|
}[][] | undefined;
|
|
456
456
|
};
|
|
457
457
|
messageHistory: {
|
|
458
458
|
content: string | ({
|
|
459
|
-
type: "text";
|
|
460
459
|
text: string;
|
|
460
|
+
type: "text";
|
|
461
461
|
cache_control?: {
|
|
462
462
|
type: "ephemeral";
|
|
463
463
|
} | undefined;
|
|
@@ -470,8 +470,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
470
470
|
type: "ephemeral";
|
|
471
471
|
} | undefined;
|
|
472
472
|
} | {
|
|
473
|
-
type: "tool_result";
|
|
474
473
|
content: string;
|
|
474
|
+
type: "tool_result";
|
|
475
475
|
tool_use_id: string;
|
|
476
476
|
cache_control?: {
|
|
477
477
|
type: "ephemeral";
|
|
@@ -479,9 +479,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
479
479
|
} | {
|
|
480
480
|
type: "image";
|
|
481
481
|
source: {
|
|
482
|
+
data: string;
|
|
482
483
|
type: "base64";
|
|
483
484
|
media_type: "image/jpeg";
|
|
484
|
-
data: string;
|
|
485
485
|
};
|
|
486
486
|
cache_control?: {
|
|
487
487
|
type: "ephemeral";
|
|
@@ -509,7 +509,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
509
509
|
type: "prompt";
|
|
510
510
|
promptId: string;
|
|
511
511
|
fingerprintId: string;
|
|
512
|
-
costMode: "
|
|
512
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
513
513
|
agentState: {
|
|
514
514
|
agentContext: string;
|
|
515
515
|
fileContext: {
|
|
@@ -535,14 +535,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
535
535
|
};
|
|
536
536
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
537
537
|
fileVersions?: {
|
|
538
|
-
path: string;
|
|
539
538
|
content: string;
|
|
539
|
+
path: string;
|
|
540
540
|
}[][] | undefined;
|
|
541
541
|
};
|
|
542
542
|
messageHistory: {
|
|
543
543
|
content: string | ({
|
|
544
|
-
type: "text";
|
|
545
544
|
text: string;
|
|
545
|
+
type: "text";
|
|
546
546
|
cache_control?: {
|
|
547
547
|
type: "ephemeral";
|
|
548
548
|
} | undefined;
|
|
@@ -555,8 +555,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
555
555
|
type: "ephemeral";
|
|
556
556
|
} | undefined;
|
|
557
557
|
} | {
|
|
558
|
-
type: "tool_result";
|
|
559
558
|
content: string;
|
|
559
|
+
type: "tool_result";
|
|
560
560
|
tool_use_id: string;
|
|
561
561
|
cache_control?: {
|
|
562
562
|
type: "ephemeral";
|
|
@@ -564,9 +564,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
564
564
|
} | {
|
|
565
565
|
type: "image";
|
|
566
566
|
source: {
|
|
567
|
+
data: string;
|
|
567
568
|
type: "base64";
|
|
568
569
|
media_type: "image/jpeg";
|
|
569
|
-
data: string;
|
|
570
570
|
};
|
|
571
571
|
cache_control?: {
|
|
572
572
|
type: "ephemeral";
|
|
@@ -613,14 +613,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
613
613
|
};
|
|
614
614
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
615
615
|
fileVersions?: {
|
|
616
|
-
path: string;
|
|
617
616
|
content: string;
|
|
617
|
+
path: string;
|
|
618
618
|
}[][] | undefined;
|
|
619
619
|
};
|
|
620
620
|
messageHistory: {
|
|
621
621
|
content: string | ({
|
|
622
|
-
type: "text";
|
|
623
622
|
text: string;
|
|
623
|
+
type: "text";
|
|
624
624
|
cache_control?: {
|
|
625
625
|
type: "ephemeral";
|
|
626
626
|
} | undefined;
|
|
@@ -633,8 +633,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
633
633
|
type: "ephemeral";
|
|
634
634
|
} | undefined;
|
|
635
635
|
} | {
|
|
636
|
-
type: "tool_result";
|
|
637
636
|
content: string;
|
|
637
|
+
type: "tool_result";
|
|
638
638
|
tool_use_id: string;
|
|
639
639
|
cache_control?: {
|
|
640
640
|
type: "ephemeral";
|
|
@@ -642,9 +642,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
642
642
|
} | {
|
|
643
643
|
type: "image";
|
|
644
644
|
source: {
|
|
645
|
+
data: string;
|
|
645
646
|
type: "base64";
|
|
646
647
|
media_type: "image/jpeg";
|
|
647
|
-
data: string;
|
|
648
648
|
};
|
|
649
649
|
cache_control?: {
|
|
650
650
|
type: "ephemeral";
|
|
@@ -661,7 +661,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
661
661
|
}[];
|
|
662
662
|
prompt?: string | undefined;
|
|
663
663
|
authToken?: string | undefined;
|
|
664
|
-
costMode?: "
|
|
664
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
665
665
|
model?: string | undefined;
|
|
666
666
|
}>, z.ZodObject<{
|
|
667
667
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -729,11 +729,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
729
729
|
path: z.ZodString;
|
|
730
730
|
content: z.ZodString;
|
|
731
731
|
}, "strip", z.ZodTypeAny, {
|
|
732
|
-
path: string;
|
|
733
732
|
content: string;
|
|
734
|
-
}, {
|
|
735
733
|
path: string;
|
|
734
|
+
}, {
|
|
736
735
|
content: string;
|
|
736
|
+
path: string;
|
|
737
737
|
}>, "many">, "many">>;
|
|
738
738
|
}, "strip", z.ZodTypeAny, {
|
|
739
739
|
currentWorkingDirectory: string;
|
|
@@ -758,8 +758,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
758
758
|
};
|
|
759
759
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
760
760
|
fileVersions?: {
|
|
761
|
-
path: string;
|
|
762
761
|
content: string;
|
|
762
|
+
path: string;
|
|
763
763
|
}[][] | undefined;
|
|
764
764
|
}, {
|
|
765
765
|
currentWorkingDirectory: string;
|
|
@@ -784,12 +784,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
784
784
|
};
|
|
785
785
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
786
786
|
fileVersions?: {
|
|
787
|
-
path: string;
|
|
788
787
|
content: string;
|
|
788
|
+
path: string;
|
|
789
789
|
}[][] | undefined;
|
|
790
790
|
}>;
|
|
791
791
|
}, "strip", z.ZodTypeAny, {
|
|
792
792
|
type: "init";
|
|
793
|
+
fingerprintId: string;
|
|
793
794
|
fileContext: {
|
|
794
795
|
currentWorkingDirectory: string;
|
|
795
796
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -813,14 +814,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
813
814
|
};
|
|
814
815
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
815
816
|
fileVersions?: {
|
|
816
|
-
path: string;
|
|
817
817
|
content: string;
|
|
818
|
+
path: string;
|
|
818
819
|
}[][] | undefined;
|
|
819
820
|
};
|
|
820
|
-
fingerprintId: string;
|
|
821
821
|
authToken?: string | undefined;
|
|
822
822
|
}, {
|
|
823
823
|
type: "init";
|
|
824
|
+
fingerprintId: string;
|
|
824
825
|
fileContext: {
|
|
825
826
|
currentWorkingDirectory: string;
|
|
826
827
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -844,11 +845,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
844
845
|
};
|
|
845
846
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
846
847
|
fileVersions?: {
|
|
847
|
-
path: string;
|
|
848
848
|
content: string;
|
|
849
|
+
path: string;
|
|
849
850
|
}[][] | undefined;
|
|
850
851
|
};
|
|
851
|
-
fingerprintId: string;
|
|
852
852
|
authToken?: string | undefined;
|
|
853
853
|
}>, z.ZodObject<{
|
|
854
854
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -867,12 +867,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
867
867
|
authToken?: string | undefined;
|
|
868
868
|
}>]>;
|
|
869
869
|
}, "strip", z.ZodTypeAny, {
|
|
870
|
-
type: "action";
|
|
871
870
|
data: {
|
|
872
871
|
type: "prompt";
|
|
873
872
|
promptId: string;
|
|
874
873
|
fingerprintId: string;
|
|
875
|
-
costMode: "
|
|
874
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
876
875
|
agentState: {
|
|
877
876
|
agentContext: string;
|
|
878
877
|
fileContext: {
|
|
@@ -898,14 +897,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
898
897
|
};
|
|
899
898
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
900
899
|
fileVersions?: {
|
|
901
|
-
path: string;
|
|
902
900
|
content: string;
|
|
901
|
+
path: string;
|
|
903
902
|
}[][] | undefined;
|
|
904
903
|
};
|
|
905
904
|
messageHistory: {
|
|
906
905
|
content: string | ({
|
|
907
|
-
type: "text";
|
|
908
906
|
text: string;
|
|
907
|
+
type: "text";
|
|
909
908
|
cache_control?: {
|
|
910
909
|
type: "ephemeral";
|
|
911
910
|
} | undefined;
|
|
@@ -918,8 +917,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
918
917
|
type: "ephemeral";
|
|
919
918
|
} | undefined;
|
|
920
919
|
} | {
|
|
921
|
-
type: "tool_result";
|
|
922
920
|
content: string;
|
|
921
|
+
type: "tool_result";
|
|
923
922
|
tool_use_id: string;
|
|
924
923
|
cache_control?: {
|
|
925
924
|
type: "ephemeral";
|
|
@@ -927,9 +926,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
927
926
|
} | {
|
|
928
927
|
type: "image";
|
|
929
928
|
source: {
|
|
929
|
+
data: string;
|
|
930
930
|
type: "base64";
|
|
931
931
|
media_type: "image/jpeg";
|
|
932
|
-
data: string;
|
|
933
932
|
};
|
|
934
933
|
cache_control?: {
|
|
935
934
|
type: "ephemeral";
|
|
@@ -953,6 +952,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
953
952
|
requestId?: string | undefined;
|
|
954
953
|
} | {
|
|
955
954
|
type: "init";
|
|
955
|
+
fingerprintId: string;
|
|
956
956
|
fileContext: {
|
|
957
957
|
currentWorkingDirectory: string;
|
|
958
958
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -976,11 +976,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
976
976
|
};
|
|
977
977
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
978
978
|
fileVersions?: {
|
|
979
|
-
path: string;
|
|
980
979
|
content: string;
|
|
980
|
+
path: string;
|
|
981
981
|
}[][] | undefined;
|
|
982
982
|
};
|
|
983
|
-
fingerprintId: string;
|
|
984
983
|
authToken?: string | undefined;
|
|
985
984
|
} | {
|
|
986
985
|
type: "generate-commit-message";
|
|
@@ -988,9 +987,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
988
987
|
stagedChanges: string;
|
|
989
988
|
authToken?: string | undefined;
|
|
990
989
|
};
|
|
990
|
+
type: "action";
|
|
991
991
|
txid: number;
|
|
992
992
|
}, {
|
|
993
|
-
type: "action";
|
|
994
993
|
data: {
|
|
995
994
|
type: "prompt";
|
|
996
995
|
promptId: string;
|
|
@@ -1020,14 +1019,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1020
1019
|
};
|
|
1021
1020
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1022
1021
|
fileVersions?: {
|
|
1023
|
-
path: string;
|
|
1024
1022
|
content: string;
|
|
1023
|
+
path: string;
|
|
1025
1024
|
}[][] | undefined;
|
|
1026
1025
|
};
|
|
1027
1026
|
messageHistory: {
|
|
1028
1027
|
content: string | ({
|
|
1029
|
-
type: "text";
|
|
1030
1028
|
text: string;
|
|
1029
|
+
type: "text";
|
|
1031
1030
|
cache_control?: {
|
|
1032
1031
|
type: "ephemeral";
|
|
1033
1032
|
} | undefined;
|
|
@@ -1040,8 +1039,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1040
1039
|
type: "ephemeral";
|
|
1041
1040
|
} | undefined;
|
|
1042
1041
|
} | {
|
|
1043
|
-
type: "tool_result";
|
|
1044
1042
|
content: string;
|
|
1043
|
+
type: "tool_result";
|
|
1045
1044
|
tool_use_id: string;
|
|
1046
1045
|
cache_control?: {
|
|
1047
1046
|
type: "ephemeral";
|
|
@@ -1049,9 +1048,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1049
1048
|
} | {
|
|
1050
1049
|
type: "image";
|
|
1051
1050
|
source: {
|
|
1051
|
+
data: string;
|
|
1052
1052
|
type: "base64";
|
|
1053
1053
|
media_type: "image/jpeg";
|
|
1054
|
-
data: string;
|
|
1055
1054
|
};
|
|
1056
1055
|
cache_control?: {
|
|
1057
1056
|
type: "ephemeral";
|
|
@@ -1068,7 +1067,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1068
1067
|
}[];
|
|
1069
1068
|
prompt?: string | undefined;
|
|
1070
1069
|
authToken?: string | undefined;
|
|
1071
|
-
costMode?: "
|
|
1070
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1072
1071
|
model?: string | undefined;
|
|
1073
1072
|
} | {
|
|
1074
1073
|
type: "read-files-response";
|
|
@@ -1076,6 +1075,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1076
1075
|
requestId?: string | undefined;
|
|
1077
1076
|
} | {
|
|
1078
1077
|
type: "init";
|
|
1078
|
+
fingerprintId: string;
|
|
1079
1079
|
fileContext: {
|
|
1080
1080
|
currentWorkingDirectory: string;
|
|
1081
1081
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1099,11 +1099,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1099
1099
|
};
|
|
1100
1100
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1101
1101
|
fileVersions?: {
|
|
1102
|
-
path: string;
|
|
1103
1102
|
content: string;
|
|
1103
|
+
path: string;
|
|
1104
1104
|
}[][] | undefined;
|
|
1105
1105
|
};
|
|
1106
|
-
fingerprintId: string;
|
|
1107
1106
|
authToken?: string | undefined;
|
|
1108
1107
|
} | {
|
|
1109
1108
|
type: "generate-commit-message";
|
|
@@ -1111,6 +1110,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1111
1110
|
stagedChanges: string;
|
|
1112
1111
|
authToken?: string | undefined;
|
|
1113
1112
|
};
|
|
1113
|
+
type: "action";
|
|
1114
1114
|
txid: number;
|
|
1115
1115
|
}>;
|
|
1116
1116
|
};
|
|
@@ -1221,11 +1221,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1221
1221
|
path: z.ZodString;
|
|
1222
1222
|
content: z.ZodString;
|
|
1223
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1224
|
-
path: string;
|
|
1225
1224
|
content: string;
|
|
1226
|
-
}, {
|
|
1227
1225
|
path: string;
|
|
1226
|
+
}, {
|
|
1228
1227
|
content: string;
|
|
1228
|
+
path: string;
|
|
1229
1229
|
}>, "many">, "many">>;
|
|
1230
1230
|
}, "strip", z.ZodTypeAny, {
|
|
1231
1231
|
currentWorkingDirectory: string;
|
|
@@ -1250,8 +1250,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1250
1250
|
};
|
|
1251
1251
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1252
1252
|
fileVersions?: {
|
|
1253
|
-
path: string;
|
|
1254
1253
|
content: string;
|
|
1254
|
+
path: string;
|
|
1255
1255
|
}[][] | undefined;
|
|
1256
1256
|
}, {
|
|
1257
1257
|
currentWorkingDirectory: string;
|
|
@@ -1276,8 +1276,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1276
1276
|
};
|
|
1277
1277
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1278
1278
|
fileVersions?: {
|
|
1279
|
-
path: string;
|
|
1280
1279
|
content: string;
|
|
1280
|
+
path: string;
|
|
1281
1281
|
}[][] | undefined;
|
|
1282
1282
|
}>;
|
|
1283
1283
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -1293,14 +1293,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1293
1293
|
type: "ephemeral";
|
|
1294
1294
|
}>>;
|
|
1295
1295
|
}, "strip", z.ZodTypeAny, {
|
|
1296
|
-
type: "text";
|
|
1297
1296
|
text: string;
|
|
1297
|
+
type: "text";
|
|
1298
1298
|
cache_control?: {
|
|
1299
1299
|
type: "ephemeral";
|
|
1300
1300
|
} | undefined;
|
|
1301
1301
|
}, {
|
|
1302
|
-
type: "text";
|
|
1303
1302
|
text: string;
|
|
1303
|
+
type: "text";
|
|
1304
1304
|
cache_control?: {
|
|
1305
1305
|
type: "ephemeral";
|
|
1306
1306
|
} | undefined;
|
|
@@ -1344,15 +1344,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1344
1344
|
type: "ephemeral";
|
|
1345
1345
|
}>>;
|
|
1346
1346
|
}, "strip", z.ZodTypeAny, {
|
|
1347
|
-
type: "tool_result";
|
|
1348
1347
|
content: string;
|
|
1348
|
+
type: "tool_result";
|
|
1349
1349
|
tool_use_id: string;
|
|
1350
1350
|
cache_control?: {
|
|
1351
1351
|
type: "ephemeral";
|
|
1352
1352
|
} | undefined;
|
|
1353
1353
|
}, {
|
|
1354
|
-
type: "tool_result";
|
|
1355
1354
|
content: string;
|
|
1355
|
+
type: "tool_result";
|
|
1356
1356
|
tool_use_id: string;
|
|
1357
1357
|
cache_control?: {
|
|
1358
1358
|
type: "ephemeral";
|
|
@@ -1364,13 +1364,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1364
1364
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
1365
1365
|
data: z.ZodString;
|
|
1366
1366
|
}, "strip", z.ZodTypeAny, {
|
|
1367
|
+
data: string;
|
|
1367
1368
|
type: "base64";
|
|
1368
1369
|
media_type: "image/jpeg";
|
|
1369
|
-
data: string;
|
|
1370
1370
|
}, {
|
|
1371
|
+
data: string;
|
|
1371
1372
|
type: "base64";
|
|
1372
1373
|
media_type: "image/jpeg";
|
|
1373
|
-
data: string;
|
|
1374
1374
|
}>;
|
|
1375
1375
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1376
1376
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -1382,9 +1382,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1382
1382
|
}, "strip", z.ZodTypeAny, {
|
|
1383
1383
|
type: "image";
|
|
1384
1384
|
source: {
|
|
1385
|
+
data: string;
|
|
1385
1386
|
type: "base64";
|
|
1386
1387
|
media_type: "image/jpeg";
|
|
1387
|
-
data: string;
|
|
1388
1388
|
};
|
|
1389
1389
|
cache_control?: {
|
|
1390
1390
|
type: "ephemeral";
|
|
@@ -1392,9 +1392,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1392
1392
|
}, {
|
|
1393
1393
|
type: "image";
|
|
1394
1394
|
source: {
|
|
1395
|
+
data: string;
|
|
1395
1396
|
type: "base64";
|
|
1396
1397
|
media_type: "image/jpeg";
|
|
1397
|
-
data: string;
|
|
1398
1398
|
};
|
|
1399
1399
|
cache_control?: {
|
|
1400
1400
|
type: "ephemeral";
|
|
@@ -1402,8 +1402,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1402
1402
|
}>]>, "many">]>;
|
|
1403
1403
|
}, "strip", z.ZodTypeAny, {
|
|
1404
1404
|
content: string | ({
|
|
1405
|
-
type: "text";
|
|
1406
1405
|
text: string;
|
|
1406
|
+
type: "text";
|
|
1407
1407
|
cache_control?: {
|
|
1408
1408
|
type: "ephemeral";
|
|
1409
1409
|
} | undefined;
|
|
@@ -1416,8 +1416,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1416
1416
|
type: "ephemeral";
|
|
1417
1417
|
} | undefined;
|
|
1418
1418
|
} | {
|
|
1419
|
-
type: "tool_result";
|
|
1420
1419
|
content: string;
|
|
1420
|
+
type: "tool_result";
|
|
1421
1421
|
tool_use_id: string;
|
|
1422
1422
|
cache_control?: {
|
|
1423
1423
|
type: "ephemeral";
|
|
@@ -1425,9 +1425,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1425
1425
|
} | {
|
|
1426
1426
|
type: "image";
|
|
1427
1427
|
source: {
|
|
1428
|
+
data: string;
|
|
1428
1429
|
type: "base64";
|
|
1429
1430
|
media_type: "image/jpeg";
|
|
1430
|
-
data: string;
|
|
1431
1431
|
};
|
|
1432
1432
|
cache_control?: {
|
|
1433
1433
|
type: "ephemeral";
|
|
@@ -1436,8 +1436,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1436
1436
|
role: "user" | "assistant";
|
|
1437
1437
|
}, {
|
|
1438
1438
|
content: string | ({
|
|
1439
|
-
type: "text";
|
|
1440
1439
|
text: string;
|
|
1440
|
+
type: "text";
|
|
1441
1441
|
cache_control?: {
|
|
1442
1442
|
type: "ephemeral";
|
|
1443
1443
|
} | undefined;
|
|
@@ -1450,8 +1450,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1450
1450
|
type: "ephemeral";
|
|
1451
1451
|
} | undefined;
|
|
1452
1452
|
} | {
|
|
1453
|
-
type: "tool_result";
|
|
1454
1453
|
content: string;
|
|
1454
|
+
type: "tool_result";
|
|
1455
1455
|
tool_use_id: string;
|
|
1456
1456
|
cache_control?: {
|
|
1457
1457
|
type: "ephemeral";
|
|
@@ -1459,9 +1459,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1459
1459
|
} | {
|
|
1460
1460
|
type: "image";
|
|
1461
1461
|
source: {
|
|
1462
|
+
data: string;
|
|
1462
1463
|
type: "base64";
|
|
1463
1464
|
media_type: "image/jpeg";
|
|
1464
|
-
data: string;
|
|
1465
1465
|
};
|
|
1466
1466
|
cache_control?: {
|
|
1467
1467
|
type: "ephemeral";
|
|
@@ -1495,14 +1495,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1495
1495
|
};
|
|
1496
1496
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1497
1497
|
fileVersions?: {
|
|
1498
|
-
path: string;
|
|
1499
1498
|
content: string;
|
|
1499
|
+
path: string;
|
|
1500
1500
|
}[][] | undefined;
|
|
1501
1501
|
};
|
|
1502
1502
|
messageHistory: {
|
|
1503
1503
|
content: string | ({
|
|
1504
|
-
type: "text";
|
|
1505
1504
|
text: string;
|
|
1505
|
+
type: "text";
|
|
1506
1506
|
cache_control?: {
|
|
1507
1507
|
type: "ephemeral";
|
|
1508
1508
|
} | undefined;
|
|
@@ -1515,8 +1515,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1515
1515
|
type: "ephemeral";
|
|
1516
1516
|
} | undefined;
|
|
1517
1517
|
} | {
|
|
1518
|
-
type: "tool_result";
|
|
1519
1518
|
content: string;
|
|
1519
|
+
type: "tool_result";
|
|
1520
1520
|
tool_use_id: string;
|
|
1521
1521
|
cache_control?: {
|
|
1522
1522
|
type: "ephemeral";
|
|
@@ -1524,9 +1524,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1524
1524
|
} | {
|
|
1525
1525
|
type: "image";
|
|
1526
1526
|
source: {
|
|
1527
|
+
data: string;
|
|
1527
1528
|
type: "base64";
|
|
1528
1529
|
media_type: "image/jpeg";
|
|
1529
|
-
data: string;
|
|
1530
1530
|
};
|
|
1531
1531
|
cache_control?: {
|
|
1532
1532
|
type: "ephemeral";
|
|
@@ -1560,14 +1560,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1560
1560
|
};
|
|
1561
1561
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1562
1562
|
fileVersions?: {
|
|
1563
|
-
path: string;
|
|
1564
1563
|
content: string;
|
|
1564
|
+
path: string;
|
|
1565
1565
|
}[][] | undefined;
|
|
1566
1566
|
};
|
|
1567
1567
|
messageHistory: {
|
|
1568
1568
|
content: string | ({
|
|
1569
|
-
type: "text";
|
|
1570
1569
|
text: string;
|
|
1570
|
+
type: "text";
|
|
1571
1571
|
cache_control?: {
|
|
1572
1572
|
type: "ephemeral";
|
|
1573
1573
|
} | undefined;
|
|
@@ -1580,8 +1580,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1580
1580
|
type: "ephemeral";
|
|
1581
1581
|
} | undefined;
|
|
1582
1582
|
} | {
|
|
1583
|
-
type: "tool_result";
|
|
1584
1583
|
content: string;
|
|
1584
|
+
type: "tool_result";
|
|
1585
1585
|
tool_use_id: string;
|
|
1586
1586
|
cache_control?: {
|
|
1587
1587
|
type: "ephemeral";
|
|
@@ -1589,9 +1589,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1589
1589
|
} | {
|
|
1590
1590
|
type: "image";
|
|
1591
1591
|
source: {
|
|
1592
|
+
data: string;
|
|
1592
1593
|
type: "base64";
|
|
1593
1594
|
media_type: "image/jpeg";
|
|
1594
|
-
data: string;
|
|
1595
1595
|
};
|
|
1596
1596
|
cache_control?: {
|
|
1597
1597
|
type: "ephemeral";
|
|
@@ -1619,7 +1619,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1619
1619
|
type: "prompt";
|
|
1620
1620
|
promptId: string;
|
|
1621
1621
|
fingerprintId: string;
|
|
1622
|
-
costMode: "
|
|
1622
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
1623
1623
|
agentState: {
|
|
1624
1624
|
agentContext: string;
|
|
1625
1625
|
fileContext: {
|
|
@@ -1645,14 +1645,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1645
1645
|
};
|
|
1646
1646
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1647
1647
|
fileVersions?: {
|
|
1648
|
-
path: string;
|
|
1649
1648
|
content: string;
|
|
1649
|
+
path: string;
|
|
1650
1650
|
}[][] | undefined;
|
|
1651
1651
|
};
|
|
1652
1652
|
messageHistory: {
|
|
1653
1653
|
content: string | ({
|
|
1654
|
-
type: "text";
|
|
1655
1654
|
text: string;
|
|
1655
|
+
type: "text";
|
|
1656
1656
|
cache_control?: {
|
|
1657
1657
|
type: "ephemeral";
|
|
1658
1658
|
} | undefined;
|
|
@@ -1665,8 +1665,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1665
1665
|
type: "ephemeral";
|
|
1666
1666
|
} | undefined;
|
|
1667
1667
|
} | {
|
|
1668
|
-
type: "tool_result";
|
|
1669
1668
|
content: string;
|
|
1669
|
+
type: "tool_result";
|
|
1670
1670
|
tool_use_id: string;
|
|
1671
1671
|
cache_control?: {
|
|
1672
1672
|
type: "ephemeral";
|
|
@@ -1674,9 +1674,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1674
1674
|
} | {
|
|
1675
1675
|
type: "image";
|
|
1676
1676
|
source: {
|
|
1677
|
+
data: string;
|
|
1677
1678
|
type: "base64";
|
|
1678
1679
|
media_type: "image/jpeg";
|
|
1679
|
-
data: string;
|
|
1680
1680
|
};
|
|
1681
1681
|
cache_control?: {
|
|
1682
1682
|
type: "ephemeral";
|
|
@@ -1723,14 +1723,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1723
1723
|
};
|
|
1724
1724
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1725
1725
|
fileVersions?: {
|
|
1726
|
-
path: string;
|
|
1727
1726
|
content: string;
|
|
1727
|
+
path: string;
|
|
1728
1728
|
}[][] | undefined;
|
|
1729
1729
|
};
|
|
1730
1730
|
messageHistory: {
|
|
1731
1731
|
content: string | ({
|
|
1732
|
-
type: "text";
|
|
1733
1732
|
text: string;
|
|
1733
|
+
type: "text";
|
|
1734
1734
|
cache_control?: {
|
|
1735
1735
|
type: "ephemeral";
|
|
1736
1736
|
} | undefined;
|
|
@@ -1743,8 +1743,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1743
1743
|
type: "ephemeral";
|
|
1744
1744
|
} | undefined;
|
|
1745
1745
|
} | {
|
|
1746
|
-
type: "tool_result";
|
|
1747
1746
|
content: string;
|
|
1747
|
+
type: "tool_result";
|
|
1748
1748
|
tool_use_id: string;
|
|
1749
1749
|
cache_control?: {
|
|
1750
1750
|
type: "ephemeral";
|
|
@@ -1752,9 +1752,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1752
1752
|
} | {
|
|
1753
1753
|
type: "image";
|
|
1754
1754
|
source: {
|
|
1755
|
+
data: string;
|
|
1755
1756
|
type: "base64";
|
|
1756
1757
|
media_type: "image/jpeg";
|
|
1757
|
-
data: string;
|
|
1758
1758
|
};
|
|
1759
1759
|
cache_control?: {
|
|
1760
1760
|
type: "ephemeral";
|
|
@@ -1771,7 +1771,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1771
1771
|
}[];
|
|
1772
1772
|
prompt?: string | undefined;
|
|
1773
1773
|
authToken?: string | undefined;
|
|
1774
|
-
costMode?: "
|
|
1774
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
1775
1775
|
model?: string | undefined;
|
|
1776
1776
|
}>, z.ZodObject<{
|
|
1777
1777
|
type: z.ZodLiteral<"read-files-response">;
|
|
@@ -1839,11 +1839,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1839
1839
|
path: z.ZodString;
|
|
1840
1840
|
content: z.ZodString;
|
|
1841
1841
|
}, "strip", z.ZodTypeAny, {
|
|
1842
|
-
path: string;
|
|
1843
1842
|
content: string;
|
|
1844
|
-
}, {
|
|
1845
1843
|
path: string;
|
|
1844
|
+
}, {
|
|
1846
1845
|
content: string;
|
|
1846
|
+
path: string;
|
|
1847
1847
|
}>, "many">, "many">>;
|
|
1848
1848
|
}, "strip", z.ZodTypeAny, {
|
|
1849
1849
|
currentWorkingDirectory: string;
|
|
@@ -1868,8 +1868,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1868
1868
|
};
|
|
1869
1869
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1870
1870
|
fileVersions?: {
|
|
1871
|
-
path: string;
|
|
1872
1871
|
content: string;
|
|
1872
|
+
path: string;
|
|
1873
1873
|
}[][] | undefined;
|
|
1874
1874
|
}, {
|
|
1875
1875
|
currentWorkingDirectory: string;
|
|
@@ -1894,12 +1894,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1894
1894
|
};
|
|
1895
1895
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1896
1896
|
fileVersions?: {
|
|
1897
|
-
path: string;
|
|
1898
1897
|
content: string;
|
|
1898
|
+
path: string;
|
|
1899
1899
|
}[][] | undefined;
|
|
1900
1900
|
}>;
|
|
1901
1901
|
}, "strip", z.ZodTypeAny, {
|
|
1902
1902
|
type: "init";
|
|
1903
|
+
fingerprintId: string;
|
|
1903
1904
|
fileContext: {
|
|
1904
1905
|
currentWorkingDirectory: string;
|
|
1905
1906
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1923,14 +1924,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1923
1924
|
};
|
|
1924
1925
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1925
1926
|
fileVersions?: {
|
|
1926
|
-
path: string;
|
|
1927
1927
|
content: string;
|
|
1928
|
+
path: string;
|
|
1928
1929
|
}[][] | undefined;
|
|
1929
1930
|
};
|
|
1930
|
-
fingerprintId: string;
|
|
1931
1931
|
authToken?: string | undefined;
|
|
1932
1932
|
}, {
|
|
1933
1933
|
type: "init";
|
|
1934
|
+
fingerprintId: string;
|
|
1934
1935
|
fileContext: {
|
|
1935
1936
|
currentWorkingDirectory: string;
|
|
1936
1937
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1954,11 +1955,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1954
1955
|
};
|
|
1955
1956
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1956
1957
|
fileVersions?: {
|
|
1957
|
-
path: string;
|
|
1958
1958
|
content: string;
|
|
1959
|
+
path: string;
|
|
1959
1960
|
}[][] | undefined;
|
|
1960
1961
|
};
|
|
1961
|
-
fingerprintId: string;
|
|
1962
1962
|
authToken?: string | undefined;
|
|
1963
1963
|
}>, z.ZodObject<{
|
|
1964
1964
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -1977,12 +1977,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1977
1977
|
authToken?: string | undefined;
|
|
1978
1978
|
}>]>;
|
|
1979
1979
|
}, "strip", z.ZodTypeAny, {
|
|
1980
|
-
type: "action";
|
|
1981
1980
|
data: {
|
|
1982
1981
|
type: "prompt";
|
|
1983
1982
|
promptId: string;
|
|
1984
1983
|
fingerprintId: string;
|
|
1985
|
-
costMode: "
|
|
1984
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
1986
1985
|
agentState: {
|
|
1987
1986
|
agentContext: string;
|
|
1988
1987
|
fileContext: {
|
|
@@ -2008,14 +2007,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2008
2007
|
};
|
|
2009
2008
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2010
2009
|
fileVersions?: {
|
|
2011
|
-
path: string;
|
|
2012
2010
|
content: string;
|
|
2011
|
+
path: string;
|
|
2013
2012
|
}[][] | undefined;
|
|
2014
2013
|
};
|
|
2015
2014
|
messageHistory: {
|
|
2016
2015
|
content: string | ({
|
|
2017
|
-
type: "text";
|
|
2018
2016
|
text: string;
|
|
2017
|
+
type: "text";
|
|
2019
2018
|
cache_control?: {
|
|
2020
2019
|
type: "ephemeral";
|
|
2021
2020
|
} | undefined;
|
|
@@ -2028,8 +2027,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2028
2027
|
type: "ephemeral";
|
|
2029
2028
|
} | undefined;
|
|
2030
2029
|
} | {
|
|
2031
|
-
type: "tool_result";
|
|
2032
2030
|
content: string;
|
|
2031
|
+
type: "tool_result";
|
|
2033
2032
|
tool_use_id: string;
|
|
2034
2033
|
cache_control?: {
|
|
2035
2034
|
type: "ephemeral";
|
|
@@ -2037,9 +2036,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2037
2036
|
} | {
|
|
2038
2037
|
type: "image";
|
|
2039
2038
|
source: {
|
|
2039
|
+
data: string;
|
|
2040
2040
|
type: "base64";
|
|
2041
2041
|
media_type: "image/jpeg";
|
|
2042
|
-
data: string;
|
|
2043
2042
|
};
|
|
2044
2043
|
cache_control?: {
|
|
2045
2044
|
type: "ephemeral";
|
|
@@ -2063,6 +2062,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2063
2062
|
requestId?: string | undefined;
|
|
2064
2063
|
} | {
|
|
2065
2064
|
type: "init";
|
|
2065
|
+
fingerprintId: string;
|
|
2066
2066
|
fileContext: {
|
|
2067
2067
|
currentWorkingDirectory: string;
|
|
2068
2068
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2086,11 +2086,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2086
2086
|
};
|
|
2087
2087
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2088
2088
|
fileVersions?: {
|
|
2089
|
-
path: string;
|
|
2090
2089
|
content: string;
|
|
2090
|
+
path: string;
|
|
2091
2091
|
}[][] | undefined;
|
|
2092
2092
|
};
|
|
2093
|
-
fingerprintId: string;
|
|
2094
2093
|
authToken?: string | undefined;
|
|
2095
2094
|
} | {
|
|
2096
2095
|
type: "generate-commit-message";
|
|
@@ -2098,9 +2097,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2098
2097
|
stagedChanges: string;
|
|
2099
2098
|
authToken?: string | undefined;
|
|
2100
2099
|
};
|
|
2100
|
+
type: "action";
|
|
2101
2101
|
txid: number;
|
|
2102
2102
|
}, {
|
|
2103
|
-
type: "action";
|
|
2104
2103
|
data: {
|
|
2105
2104
|
type: "prompt";
|
|
2106
2105
|
promptId: string;
|
|
@@ -2130,14 +2129,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2130
2129
|
};
|
|
2131
2130
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2132
2131
|
fileVersions?: {
|
|
2133
|
-
path: string;
|
|
2134
2132
|
content: string;
|
|
2133
|
+
path: string;
|
|
2135
2134
|
}[][] | undefined;
|
|
2136
2135
|
};
|
|
2137
2136
|
messageHistory: {
|
|
2138
2137
|
content: string | ({
|
|
2139
|
-
type: "text";
|
|
2140
2138
|
text: string;
|
|
2139
|
+
type: "text";
|
|
2141
2140
|
cache_control?: {
|
|
2142
2141
|
type: "ephemeral";
|
|
2143
2142
|
} | undefined;
|
|
@@ -2150,8 +2149,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2150
2149
|
type: "ephemeral";
|
|
2151
2150
|
} | undefined;
|
|
2152
2151
|
} | {
|
|
2153
|
-
type: "tool_result";
|
|
2154
2152
|
content: string;
|
|
2153
|
+
type: "tool_result";
|
|
2155
2154
|
tool_use_id: string;
|
|
2156
2155
|
cache_control?: {
|
|
2157
2156
|
type: "ephemeral";
|
|
@@ -2159,9 +2158,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2159
2158
|
} | {
|
|
2160
2159
|
type: "image";
|
|
2161
2160
|
source: {
|
|
2161
|
+
data: string;
|
|
2162
2162
|
type: "base64";
|
|
2163
2163
|
media_type: "image/jpeg";
|
|
2164
|
-
data: string;
|
|
2165
2164
|
};
|
|
2166
2165
|
cache_control?: {
|
|
2167
2166
|
type: "ephemeral";
|
|
@@ -2178,7 +2177,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2178
2177
|
}[];
|
|
2179
2178
|
prompt?: string | undefined;
|
|
2180
2179
|
authToken?: string | undefined;
|
|
2181
|
-
costMode?: "
|
|
2180
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
2182
2181
|
model?: string | undefined;
|
|
2183
2182
|
} | {
|
|
2184
2183
|
type: "read-files-response";
|
|
@@ -2186,6 +2185,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2186
2185
|
requestId?: string | undefined;
|
|
2187
2186
|
} | {
|
|
2188
2187
|
type: "init";
|
|
2188
|
+
fingerprintId: string;
|
|
2189
2189
|
fileContext: {
|
|
2190
2190
|
currentWorkingDirectory: string;
|
|
2191
2191
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2209,11 +2209,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2209
2209
|
};
|
|
2210
2210
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2211
2211
|
fileVersions?: {
|
|
2212
|
-
path: string;
|
|
2213
2212
|
content: string;
|
|
2213
|
+
path: string;
|
|
2214
2214
|
}[][] | undefined;
|
|
2215
2215
|
};
|
|
2216
|
-
fingerprintId: string;
|
|
2217
2216
|
authToken?: string | undefined;
|
|
2218
2217
|
} | {
|
|
2219
2218
|
type: "generate-commit-message";
|
|
@@ -2221,6 +2220,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2221
2220
|
stagedChanges: string;
|
|
2222
2221
|
authToken?: string | undefined;
|
|
2223
2222
|
};
|
|
2223
|
+
type: "action";
|
|
2224
2224
|
txid: number;
|
|
2225
2225
|
}>]>;
|
|
2226
2226
|
export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
|
|
@@ -2234,13 +2234,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2234
2234
|
}, "strip", z.ZodTypeAny, {
|
|
2235
2235
|
type: "ack";
|
|
2236
2236
|
success: boolean;
|
|
2237
|
-
txid?: number | undefined;
|
|
2238
2237
|
error?: string | undefined;
|
|
2238
|
+
txid?: number | undefined;
|
|
2239
2239
|
}, {
|
|
2240
2240
|
type: "ack";
|
|
2241
2241
|
success: boolean;
|
|
2242
|
-
txid?: number | undefined;
|
|
2243
2242
|
error?: string | undefined;
|
|
2243
|
+
txid?: number | undefined;
|
|
2244
2244
|
}>;
|
|
2245
2245
|
action: z.ZodObject<{
|
|
2246
2246
|
type: z.ZodLiteral<"action">;
|
|
@@ -2265,92 +2265,95 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2265
2265
|
path: z.ZodString;
|
|
2266
2266
|
content: z.ZodString;
|
|
2267
2267
|
}, "strip", z.ZodTypeAny, {
|
|
2268
|
-
path: string;
|
|
2269
|
-
type: "patch" | "file";
|
|
2270
2268
|
content: string;
|
|
2271
|
-
}, {
|
|
2272
|
-
path: string;
|
|
2273
2269
|
type: "patch" | "file";
|
|
2270
|
+
path: string;
|
|
2271
|
+
}, {
|
|
2274
2272
|
content: string;
|
|
2273
|
+
type: "patch" | "file";
|
|
2274
|
+
path: string;
|
|
2275
2275
|
}>, "many">;
|
|
2276
2276
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2277
2277
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2278
2278
|
path: z.ZodString;
|
|
2279
2279
|
content: z.ZodString;
|
|
2280
2280
|
}, "strip", z.ZodTypeAny, {
|
|
2281
|
-
path: string;
|
|
2282
|
-
type: "patch" | "file";
|
|
2283
2281
|
content: string;
|
|
2284
|
-
}, {
|
|
2285
|
-
path: string;
|
|
2286
2282
|
type: "patch" | "file";
|
|
2283
|
+
path: string;
|
|
2284
|
+
}, {
|
|
2287
2285
|
content: string;
|
|
2286
|
+
type: "patch" | "file";
|
|
2287
|
+
path: string;
|
|
2288
2288
|
}>, "many">;
|
|
2289
2289
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2290
2290
|
path: z.ZodString;
|
|
2291
2291
|
content: z.ZodString;
|
|
2292
2292
|
}, "strip", z.ZodTypeAny, {
|
|
2293
|
-
path: string;
|
|
2294
2293
|
content: string;
|
|
2295
|
-
}, {
|
|
2296
2294
|
path: string;
|
|
2295
|
+
}, {
|
|
2297
2296
|
content: string;
|
|
2297
|
+
path: string;
|
|
2298
2298
|
}>, "many">;
|
|
2299
2299
|
resetFileVersions: z.ZodBoolean;
|
|
2300
2300
|
}, {
|
|
2301
2301
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
next_quota_reset: z.ZodOptional<z.ZodDate
|
|
2305
|
-
|
|
2302
|
+
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2303
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>>;
|
|
2304
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
2305
|
+
nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
|
|
2306
|
+
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
2306
2307
|
}>, "strip", z.ZodTypeAny, {
|
|
2307
2308
|
type: "response-complete";
|
|
2308
2309
|
userInputId: string;
|
|
2309
2310
|
response: string;
|
|
2310
2311
|
changes: {
|
|
2311
|
-
path: string;
|
|
2312
|
-
type: "patch" | "file";
|
|
2313
2312
|
content: string;
|
|
2313
|
+
type: "patch" | "file";
|
|
2314
|
+
path: string;
|
|
2314
2315
|
}[];
|
|
2315
2316
|
changesAlreadyApplied: {
|
|
2316
|
-
path: string;
|
|
2317
|
-
type: "patch" | "file";
|
|
2318
2317
|
content: string;
|
|
2318
|
+
type: "patch" | "file";
|
|
2319
|
+
path: string;
|
|
2319
2320
|
}[];
|
|
2320
2321
|
addedFileVersions: {
|
|
2321
|
-
path: string;
|
|
2322
2322
|
content: string;
|
|
2323
|
+
path: string;
|
|
2323
2324
|
}[];
|
|
2324
2325
|
resetFileVersions: boolean;
|
|
2325
2326
|
usage?: number | undefined;
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
next_quota_reset?: Date | undefined;
|
|
2329
|
-
|
|
2327
|
+
remainingBalance?: number | undefined;
|
|
2328
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
2329
|
+
next_quota_reset?: Date | null | undefined;
|
|
2330
|
+
nextMonthlyGrant?: number | undefined;
|
|
2331
|
+
autoTopupAdded?: number | undefined;
|
|
2330
2332
|
}, {
|
|
2331
2333
|
type: "response-complete";
|
|
2332
2334
|
userInputId: string;
|
|
2333
2335
|
response: string;
|
|
2334
2336
|
changes: {
|
|
2335
|
-
path: string;
|
|
2336
|
-
type: "patch" | "file";
|
|
2337
2337
|
content: string;
|
|
2338
|
+
type: "patch" | "file";
|
|
2339
|
+
path: string;
|
|
2338
2340
|
}[];
|
|
2339
2341
|
changesAlreadyApplied: {
|
|
2340
|
-
path: string;
|
|
2341
|
-
type: "patch" | "file";
|
|
2342
2342
|
content: string;
|
|
2343
|
+
type: "patch" | "file";
|
|
2344
|
+
path: string;
|
|
2343
2345
|
}[];
|
|
2344
2346
|
addedFileVersions: {
|
|
2345
|
-
path: string;
|
|
2346
2347
|
content: string;
|
|
2348
|
+
path: string;
|
|
2347
2349
|
}[];
|
|
2348
2350
|
resetFileVersions: boolean;
|
|
2349
2351
|
usage?: number | undefined;
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
next_quota_reset?: Date | undefined;
|
|
2353
|
-
|
|
2352
|
+
remainingBalance?: number | undefined;
|
|
2353
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
2354
|
+
next_quota_reset?: Date | null | undefined;
|
|
2355
|
+
nextMonthlyGrant?: number | undefined;
|
|
2356
|
+
autoTopupAdded?: number | undefined;
|
|
2354
2357
|
}>, z.ZodObject<{
|
|
2355
2358
|
type: z.ZodLiteral<"prompt-response">;
|
|
2356
2359
|
promptId: z.ZodString;
|
|
@@ -2406,11 +2409,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2406
2409
|
path: z.ZodString;
|
|
2407
2410
|
content: z.ZodString;
|
|
2408
2411
|
}, "strip", z.ZodTypeAny, {
|
|
2409
|
-
path: string;
|
|
2410
2412
|
content: string;
|
|
2411
|
-
}, {
|
|
2412
2413
|
path: string;
|
|
2414
|
+
}, {
|
|
2413
2415
|
content: string;
|
|
2416
|
+
path: string;
|
|
2414
2417
|
}>, "many">, "many">>;
|
|
2415
2418
|
}, "strip", z.ZodTypeAny, {
|
|
2416
2419
|
currentWorkingDirectory: string;
|
|
@@ -2435,8 +2438,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2435
2438
|
};
|
|
2436
2439
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2437
2440
|
fileVersions?: {
|
|
2438
|
-
path: string;
|
|
2439
2441
|
content: string;
|
|
2442
|
+
path: string;
|
|
2440
2443
|
}[][] | undefined;
|
|
2441
2444
|
}, {
|
|
2442
2445
|
currentWorkingDirectory: string;
|
|
@@ -2461,8 +2464,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2461
2464
|
};
|
|
2462
2465
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2463
2466
|
fileVersions?: {
|
|
2464
|
-
path: string;
|
|
2465
2467
|
content: string;
|
|
2468
|
+
path: string;
|
|
2466
2469
|
}[][] | undefined;
|
|
2467
2470
|
}>;
|
|
2468
2471
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -2478,14 +2481,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2478
2481
|
type: "ephemeral";
|
|
2479
2482
|
}>>;
|
|
2480
2483
|
}, "strip", z.ZodTypeAny, {
|
|
2481
|
-
type: "text";
|
|
2482
2484
|
text: string;
|
|
2485
|
+
type: "text";
|
|
2483
2486
|
cache_control?: {
|
|
2484
2487
|
type: "ephemeral";
|
|
2485
2488
|
} | undefined;
|
|
2486
2489
|
}, {
|
|
2487
|
-
type: "text";
|
|
2488
2490
|
text: string;
|
|
2491
|
+
type: "text";
|
|
2489
2492
|
cache_control?: {
|
|
2490
2493
|
type: "ephemeral";
|
|
2491
2494
|
} | undefined;
|
|
@@ -2529,15 +2532,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2529
2532
|
type: "ephemeral";
|
|
2530
2533
|
}>>;
|
|
2531
2534
|
}, "strip", z.ZodTypeAny, {
|
|
2532
|
-
type: "tool_result";
|
|
2533
2535
|
content: string;
|
|
2536
|
+
type: "tool_result";
|
|
2534
2537
|
tool_use_id: string;
|
|
2535
2538
|
cache_control?: {
|
|
2536
2539
|
type: "ephemeral";
|
|
2537
2540
|
} | undefined;
|
|
2538
2541
|
}, {
|
|
2539
|
-
type: "tool_result";
|
|
2540
2542
|
content: string;
|
|
2543
|
+
type: "tool_result";
|
|
2541
2544
|
tool_use_id: string;
|
|
2542
2545
|
cache_control?: {
|
|
2543
2546
|
type: "ephemeral";
|
|
@@ -2549,13 +2552,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2549
2552
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
2550
2553
|
data: z.ZodString;
|
|
2551
2554
|
}, "strip", z.ZodTypeAny, {
|
|
2555
|
+
data: string;
|
|
2552
2556
|
type: "base64";
|
|
2553
2557
|
media_type: "image/jpeg";
|
|
2554
|
-
data: string;
|
|
2555
2558
|
}, {
|
|
2559
|
+
data: string;
|
|
2556
2560
|
type: "base64";
|
|
2557
2561
|
media_type: "image/jpeg";
|
|
2558
|
-
data: string;
|
|
2559
2562
|
}>;
|
|
2560
2563
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
2561
2564
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -2567,9 +2570,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2567
2570
|
}, "strip", z.ZodTypeAny, {
|
|
2568
2571
|
type: "image";
|
|
2569
2572
|
source: {
|
|
2573
|
+
data: string;
|
|
2570
2574
|
type: "base64";
|
|
2571
2575
|
media_type: "image/jpeg";
|
|
2572
|
-
data: string;
|
|
2573
2576
|
};
|
|
2574
2577
|
cache_control?: {
|
|
2575
2578
|
type: "ephemeral";
|
|
@@ -2577,9 +2580,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2577
2580
|
}, {
|
|
2578
2581
|
type: "image";
|
|
2579
2582
|
source: {
|
|
2583
|
+
data: string;
|
|
2580
2584
|
type: "base64";
|
|
2581
2585
|
media_type: "image/jpeg";
|
|
2582
|
-
data: string;
|
|
2583
2586
|
};
|
|
2584
2587
|
cache_control?: {
|
|
2585
2588
|
type: "ephemeral";
|
|
@@ -2587,8 +2590,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2587
2590
|
}>]>, "many">]>;
|
|
2588
2591
|
}, "strip", z.ZodTypeAny, {
|
|
2589
2592
|
content: string | ({
|
|
2590
|
-
type: "text";
|
|
2591
2593
|
text: string;
|
|
2594
|
+
type: "text";
|
|
2592
2595
|
cache_control?: {
|
|
2593
2596
|
type: "ephemeral";
|
|
2594
2597
|
} | undefined;
|
|
@@ -2601,8 +2604,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2601
2604
|
type: "ephemeral";
|
|
2602
2605
|
} | undefined;
|
|
2603
2606
|
} | {
|
|
2604
|
-
type: "tool_result";
|
|
2605
2607
|
content: string;
|
|
2608
|
+
type: "tool_result";
|
|
2606
2609
|
tool_use_id: string;
|
|
2607
2610
|
cache_control?: {
|
|
2608
2611
|
type: "ephemeral";
|
|
@@ -2610,9 +2613,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2610
2613
|
} | {
|
|
2611
2614
|
type: "image";
|
|
2612
2615
|
source: {
|
|
2616
|
+
data: string;
|
|
2613
2617
|
type: "base64";
|
|
2614
2618
|
media_type: "image/jpeg";
|
|
2615
|
-
data: string;
|
|
2616
2619
|
};
|
|
2617
2620
|
cache_control?: {
|
|
2618
2621
|
type: "ephemeral";
|
|
@@ -2621,8 +2624,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2621
2624
|
role: "user" | "assistant";
|
|
2622
2625
|
}, {
|
|
2623
2626
|
content: string | ({
|
|
2624
|
-
type: "text";
|
|
2625
2627
|
text: string;
|
|
2628
|
+
type: "text";
|
|
2626
2629
|
cache_control?: {
|
|
2627
2630
|
type: "ephemeral";
|
|
2628
2631
|
} | undefined;
|
|
@@ -2635,8 +2638,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2635
2638
|
type: "ephemeral";
|
|
2636
2639
|
} | undefined;
|
|
2637
2640
|
} | {
|
|
2638
|
-
type: "tool_result";
|
|
2639
2641
|
content: string;
|
|
2642
|
+
type: "tool_result";
|
|
2640
2643
|
tool_use_id: string;
|
|
2641
2644
|
cache_control?: {
|
|
2642
2645
|
type: "ephemeral";
|
|
@@ -2644,9 +2647,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2644
2647
|
} | {
|
|
2645
2648
|
type: "image";
|
|
2646
2649
|
source: {
|
|
2650
|
+
data: string;
|
|
2647
2651
|
type: "base64";
|
|
2648
2652
|
media_type: "image/jpeg";
|
|
2649
|
-
data: string;
|
|
2650
2653
|
};
|
|
2651
2654
|
cache_control?: {
|
|
2652
2655
|
type: "ephemeral";
|
|
@@ -2680,14 +2683,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2680
2683
|
};
|
|
2681
2684
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2682
2685
|
fileVersions?: {
|
|
2683
|
-
path: string;
|
|
2684
2686
|
content: string;
|
|
2687
|
+
path: string;
|
|
2685
2688
|
}[][] | undefined;
|
|
2686
2689
|
};
|
|
2687
2690
|
messageHistory: {
|
|
2688
2691
|
content: string | ({
|
|
2689
|
-
type: "text";
|
|
2690
2692
|
text: string;
|
|
2693
|
+
type: "text";
|
|
2691
2694
|
cache_control?: {
|
|
2692
2695
|
type: "ephemeral";
|
|
2693
2696
|
} | undefined;
|
|
@@ -2700,8 +2703,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2700
2703
|
type: "ephemeral";
|
|
2701
2704
|
} | undefined;
|
|
2702
2705
|
} | {
|
|
2703
|
-
type: "tool_result";
|
|
2704
2706
|
content: string;
|
|
2707
|
+
type: "tool_result";
|
|
2705
2708
|
tool_use_id: string;
|
|
2706
2709
|
cache_control?: {
|
|
2707
2710
|
type: "ephemeral";
|
|
@@ -2709,9 +2712,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2709
2712
|
} | {
|
|
2710
2713
|
type: "image";
|
|
2711
2714
|
source: {
|
|
2715
|
+
data: string;
|
|
2712
2716
|
type: "base64";
|
|
2713
2717
|
media_type: "image/jpeg";
|
|
2714
|
-
data: string;
|
|
2715
2718
|
};
|
|
2716
2719
|
cache_control?: {
|
|
2717
2720
|
type: "ephemeral";
|
|
@@ -2745,14 +2748,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2745
2748
|
};
|
|
2746
2749
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2747
2750
|
fileVersions?: {
|
|
2748
|
-
path: string;
|
|
2749
2751
|
content: string;
|
|
2752
|
+
path: string;
|
|
2750
2753
|
}[][] | undefined;
|
|
2751
2754
|
};
|
|
2752
2755
|
messageHistory: {
|
|
2753
2756
|
content: string | ({
|
|
2754
|
-
type: "text";
|
|
2755
2757
|
text: string;
|
|
2758
|
+
type: "text";
|
|
2756
2759
|
cache_control?: {
|
|
2757
2760
|
type: "ephemeral";
|
|
2758
2761
|
} | undefined;
|
|
@@ -2765,8 +2768,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2765
2768
|
type: "ephemeral";
|
|
2766
2769
|
} | undefined;
|
|
2767
2770
|
} | {
|
|
2768
|
-
type: "tool_result";
|
|
2769
2771
|
content: string;
|
|
2772
|
+
type: "tool_result";
|
|
2770
2773
|
tool_use_id: string;
|
|
2771
2774
|
cache_control?: {
|
|
2772
2775
|
type: "ephemeral";
|
|
@@ -2774,9 +2777,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2774
2777
|
} | {
|
|
2775
2778
|
type: "image";
|
|
2776
2779
|
source: {
|
|
2780
|
+
data: string;
|
|
2777
2781
|
type: "base64";
|
|
2778
2782
|
media_type: "image/jpeg";
|
|
2779
|
-
data: string;
|
|
2780
2783
|
};
|
|
2781
2784
|
cache_control?: {
|
|
2782
2785
|
type: "ephemeral";
|
|
@@ -2792,12 +2795,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2792
2795
|
id: z.ZodString;
|
|
2793
2796
|
}, "strip", z.ZodTypeAny, {
|
|
2794
2797
|
name: string;
|
|
2795
|
-
parameters: Record<string, string>;
|
|
2796
2798
|
id: string;
|
|
2799
|
+
parameters: Record<string, string>;
|
|
2797
2800
|
}, {
|
|
2798
2801
|
name: string;
|
|
2799
|
-
parameters: Record<string, string>;
|
|
2800
2802
|
id: string;
|
|
2803
|
+
parameters: Record<string, string>;
|
|
2801
2804
|
}>, "many">;
|
|
2802
2805
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2803
2806
|
name: z.ZodString;
|
|
@@ -2840,14 +2843,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2840
2843
|
};
|
|
2841
2844
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2842
2845
|
fileVersions?: {
|
|
2843
|
-
path: string;
|
|
2844
2846
|
content: string;
|
|
2847
|
+
path: string;
|
|
2845
2848
|
}[][] | undefined;
|
|
2846
2849
|
};
|
|
2847
2850
|
messageHistory: {
|
|
2848
2851
|
content: string | ({
|
|
2849
|
-
type: "text";
|
|
2850
2852
|
text: string;
|
|
2853
|
+
type: "text";
|
|
2851
2854
|
cache_control?: {
|
|
2852
2855
|
type: "ephemeral";
|
|
2853
2856
|
} | undefined;
|
|
@@ -2860,8 +2863,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2860
2863
|
type: "ephemeral";
|
|
2861
2864
|
} | undefined;
|
|
2862
2865
|
} | {
|
|
2863
|
-
type: "tool_result";
|
|
2864
2866
|
content: string;
|
|
2867
|
+
type: "tool_result";
|
|
2865
2868
|
tool_use_id: string;
|
|
2866
2869
|
cache_control?: {
|
|
2867
2870
|
type: "ephemeral";
|
|
@@ -2869,9 +2872,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2869
2872
|
} | {
|
|
2870
2873
|
type: "image";
|
|
2871
2874
|
source: {
|
|
2875
|
+
data: string;
|
|
2872
2876
|
type: "base64";
|
|
2873
2877
|
media_type: "image/jpeg";
|
|
2874
|
-
data: string;
|
|
2875
2878
|
};
|
|
2876
2879
|
cache_control?: {
|
|
2877
2880
|
type: "ephemeral";
|
|
@@ -2888,8 +2891,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2888
2891
|
}[];
|
|
2889
2892
|
toolCalls: {
|
|
2890
2893
|
name: string;
|
|
2891
|
-
parameters: Record<string, string>;
|
|
2892
2894
|
id: string;
|
|
2895
|
+
parameters: Record<string, string>;
|
|
2893
2896
|
}[];
|
|
2894
2897
|
}, {
|
|
2895
2898
|
type: "prompt-response";
|
|
@@ -2919,14 +2922,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2919
2922
|
};
|
|
2920
2923
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2921
2924
|
fileVersions?: {
|
|
2922
|
-
path: string;
|
|
2923
2925
|
content: string;
|
|
2926
|
+
path: string;
|
|
2924
2927
|
}[][] | undefined;
|
|
2925
2928
|
};
|
|
2926
2929
|
messageHistory: {
|
|
2927
2930
|
content: string | ({
|
|
2928
|
-
type: "text";
|
|
2929
2931
|
text: string;
|
|
2932
|
+
type: "text";
|
|
2930
2933
|
cache_control?: {
|
|
2931
2934
|
type: "ephemeral";
|
|
2932
2935
|
} | undefined;
|
|
@@ -2939,8 +2942,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2939
2942
|
type: "ephemeral";
|
|
2940
2943
|
} | undefined;
|
|
2941
2944
|
} | {
|
|
2942
|
-
type: "tool_result";
|
|
2943
2945
|
content: string;
|
|
2946
|
+
type: "tool_result";
|
|
2944
2947
|
tool_use_id: string;
|
|
2945
2948
|
cache_control?: {
|
|
2946
2949
|
type: "ephemeral";
|
|
@@ -2948,9 +2951,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2948
2951
|
} | {
|
|
2949
2952
|
type: "image";
|
|
2950
2953
|
source: {
|
|
2954
|
+
data: string;
|
|
2951
2955
|
type: "base64";
|
|
2952
2956
|
media_type: "image/jpeg";
|
|
2953
|
-
data: string;
|
|
2954
2957
|
};
|
|
2955
2958
|
cache_control?: {
|
|
2956
2959
|
type: "ephemeral";
|
|
@@ -2967,8 +2970,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2967
2970
|
}[];
|
|
2968
2971
|
toolCalls: {
|
|
2969
2972
|
name: string;
|
|
2970
|
-
parameters: Record<string, string>;
|
|
2971
2973
|
id: string;
|
|
2974
|
+
parameters: Record<string, string>;
|
|
2972
2975
|
}[];
|
|
2973
2976
|
}>, z.ZodObject<{
|
|
2974
2977
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -3004,84 +3007,84 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3004
3007
|
path: z.ZodString;
|
|
3005
3008
|
content: z.ZodString;
|
|
3006
3009
|
}, "strip", z.ZodTypeAny, {
|
|
3007
|
-
path: string;
|
|
3008
|
-
type: "patch" | "file";
|
|
3009
3010
|
content: string;
|
|
3010
|
-
}, {
|
|
3011
|
-
path: string;
|
|
3012
3011
|
type: "patch" | "file";
|
|
3012
|
+
path: string;
|
|
3013
|
+
}, {
|
|
3013
3014
|
content: string;
|
|
3015
|
+
type: "patch" | "file";
|
|
3016
|
+
path: string;
|
|
3014
3017
|
}>, "many">;
|
|
3015
3018
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3016
3019
|
type: z.ZodEnum<["patch", "file"]>;
|
|
3017
3020
|
path: z.ZodString;
|
|
3018
3021
|
content: z.ZodString;
|
|
3019
3022
|
}, "strip", z.ZodTypeAny, {
|
|
3020
|
-
path: string;
|
|
3021
|
-
type: "patch" | "file";
|
|
3022
3023
|
content: string;
|
|
3023
|
-
}, {
|
|
3024
|
-
path: string;
|
|
3025
3024
|
type: "patch" | "file";
|
|
3025
|
+
path: string;
|
|
3026
|
+
}, {
|
|
3026
3027
|
content: string;
|
|
3028
|
+
type: "patch" | "file";
|
|
3029
|
+
path: string;
|
|
3027
3030
|
}>, "many">;
|
|
3028
3031
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3029
3032
|
path: z.ZodString;
|
|
3030
3033
|
content: z.ZodString;
|
|
3031
3034
|
}, "strip", z.ZodTypeAny, {
|
|
3032
|
-
path: string;
|
|
3033
3035
|
content: string;
|
|
3034
|
-
}, {
|
|
3035
3036
|
path: string;
|
|
3037
|
+
}, {
|
|
3036
3038
|
content: string;
|
|
3039
|
+
path: string;
|
|
3037
3040
|
}>, "many">;
|
|
3038
3041
|
resetFileVersions: z.ZodBoolean;
|
|
3039
3042
|
}, "strip", z.ZodTypeAny, {
|
|
3040
|
-
type: "tool-call";
|
|
3041
3043
|
data: {
|
|
3042
3044
|
name: string;
|
|
3043
3045
|
id: string;
|
|
3044
3046
|
input: Record<string, any>;
|
|
3045
3047
|
};
|
|
3048
|
+
type: "tool-call";
|
|
3046
3049
|
userInputId: string;
|
|
3047
3050
|
response: string;
|
|
3048
3051
|
changes: {
|
|
3049
|
-
path: string;
|
|
3050
|
-
type: "patch" | "file";
|
|
3051
3052
|
content: string;
|
|
3053
|
+
type: "patch" | "file";
|
|
3054
|
+
path: string;
|
|
3052
3055
|
}[];
|
|
3053
3056
|
changesAlreadyApplied: {
|
|
3054
|
-
path: string;
|
|
3055
|
-
type: "patch" | "file";
|
|
3056
3057
|
content: string;
|
|
3058
|
+
type: "patch" | "file";
|
|
3059
|
+
path: string;
|
|
3057
3060
|
}[];
|
|
3058
3061
|
addedFileVersions: {
|
|
3059
|
-
path: string;
|
|
3060
3062
|
content: string;
|
|
3063
|
+
path: string;
|
|
3061
3064
|
}[];
|
|
3062
3065
|
resetFileVersions: boolean;
|
|
3063
3066
|
}, {
|
|
3064
|
-
type: "tool-call";
|
|
3065
3067
|
data: {
|
|
3066
3068
|
name: string;
|
|
3067
3069
|
id: string;
|
|
3068
3070
|
input: Record<string, any>;
|
|
3069
3071
|
};
|
|
3072
|
+
type: "tool-call";
|
|
3070
3073
|
userInputId: string;
|
|
3071
3074
|
response: string;
|
|
3072
3075
|
changes: {
|
|
3073
|
-
path: string;
|
|
3074
|
-
type: "patch" | "file";
|
|
3075
3076
|
content: string;
|
|
3077
|
+
type: "patch" | "file";
|
|
3078
|
+
path: string;
|
|
3076
3079
|
}[];
|
|
3077
3080
|
changesAlreadyApplied: {
|
|
3078
|
-
path: string;
|
|
3079
|
-
type: "patch" | "file";
|
|
3080
3081
|
content: string;
|
|
3082
|
+
type: "patch" | "file";
|
|
3083
|
+
path: string;
|
|
3081
3084
|
}[];
|
|
3082
3085
|
addedFileVersions: {
|
|
3083
|
-
path: string;
|
|
3084
3086
|
content: string;
|
|
3087
|
+
path: string;
|
|
3085
3088
|
}[];
|
|
3086
3089
|
resetFileVersions: boolean;
|
|
3087
3090
|
}>, z.ZodObject<{
|
|
@@ -3113,45 +3116,51 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3113
3116
|
}, Omit<{
|
|
3114
3117
|
type: z.ZodLiteral<"usage-response">;
|
|
3115
3118
|
usage: z.ZodNumber;
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
next_quota_reset: z.ZodDate
|
|
3119
|
-
|
|
3119
|
+
remainingBalance: z.ZodNumber;
|
|
3120
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
3121
|
+
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3122
|
+
nextMonthlyGrant: z.ZodNumber;
|
|
3123
|
+
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3120
3124
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
3121
3125
|
type: "init-response";
|
|
3122
3126
|
usage: number;
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
+
remainingBalance: number;
|
|
3128
|
+
next_quota_reset: Date | null;
|
|
3129
|
+
nextMonthlyGrant: number;
|
|
3130
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3131
|
+
autoTopupAdded?: number | undefined;
|
|
3127
3132
|
}, {
|
|
3128
3133
|
type: "init-response";
|
|
3129
3134
|
usage: number;
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3135
|
+
remainingBalance: number;
|
|
3136
|
+
next_quota_reset: Date | null;
|
|
3137
|
+
nextMonthlyGrant: number;
|
|
3138
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3139
|
+
autoTopupAdded?: number | undefined;
|
|
3134
3140
|
}>, z.ZodObject<{
|
|
3135
3141
|
type: z.ZodLiteral<"usage-response">;
|
|
3136
3142
|
usage: z.ZodNumber;
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
next_quota_reset: z.ZodDate
|
|
3140
|
-
|
|
3143
|
+
remainingBalance: z.ZodNumber;
|
|
3144
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
3145
|
+
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
3146
|
+
nextMonthlyGrant: z.ZodNumber;
|
|
3147
|
+
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
3141
3148
|
}, "strip", z.ZodTypeAny, {
|
|
3142
3149
|
type: "usage-response";
|
|
3143
3150
|
usage: number;
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3151
|
+
remainingBalance: number;
|
|
3152
|
+
next_quota_reset: Date | null;
|
|
3153
|
+
nextMonthlyGrant: number;
|
|
3154
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3155
|
+
autoTopupAdded?: number | undefined;
|
|
3148
3156
|
}, {
|
|
3149
3157
|
type: "usage-response";
|
|
3150
3158
|
usage: number;
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3159
|
+
remainingBalance: number;
|
|
3160
|
+
next_quota_reset: Date | null;
|
|
3161
|
+
nextMonthlyGrant: number;
|
|
3162
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3163
|
+
autoTopupAdded?: number | undefined;
|
|
3155
3164
|
}>, z.ZodObject<{
|
|
3156
3165
|
type: z.ZodLiteral<"message-cost-response">;
|
|
3157
3166
|
promptId: z.ZodString;
|
|
@@ -3167,12 +3176,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3167
3176
|
}>, z.ZodObject<{
|
|
3168
3177
|
type: z.ZodLiteral<"action-error">;
|
|
3169
3178
|
message: z.ZodString;
|
|
3179
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3180
|
+
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3170
3181
|
}, "strip", z.ZodTypeAny, {
|
|
3171
|
-
message: string;
|
|
3172
3182
|
type: "action-error";
|
|
3173
|
-
}, {
|
|
3174
3183
|
message: string;
|
|
3184
|
+
error?: string | undefined;
|
|
3185
|
+
remainingBalance?: number | undefined;
|
|
3186
|
+
}, {
|
|
3175
3187
|
type: "action-error";
|
|
3188
|
+
message: string;
|
|
3189
|
+
error?: string | undefined;
|
|
3190
|
+
remainingBalance?: number | undefined;
|
|
3176
3191
|
}>, z.ZodObject<{
|
|
3177
3192
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3178
3193
|
commitMessage: z.ZodString;
|
|
@@ -3184,45 +3199,47 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3184
3199
|
commitMessage: string;
|
|
3185
3200
|
}>]>;
|
|
3186
3201
|
}, "strip", z.ZodTypeAny, {
|
|
3187
|
-
type: "action";
|
|
3188
3202
|
data: {
|
|
3189
3203
|
type: "usage-response";
|
|
3190
3204
|
usage: number;
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3205
|
+
remainingBalance: number;
|
|
3206
|
+
next_quota_reset: Date | null;
|
|
3207
|
+
nextMonthlyGrant: number;
|
|
3208
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3209
|
+
autoTopupAdded?: number | undefined;
|
|
3195
3210
|
} | {
|
|
3196
3211
|
type: "init-response";
|
|
3197
3212
|
usage: number;
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3213
|
+
remainingBalance: number;
|
|
3214
|
+
next_quota_reset: Date | null;
|
|
3215
|
+
nextMonthlyGrant: number;
|
|
3216
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3217
|
+
autoTopupAdded?: number | undefined;
|
|
3202
3218
|
} | {
|
|
3203
3219
|
type: "response-complete";
|
|
3204
3220
|
userInputId: string;
|
|
3205
3221
|
response: string;
|
|
3206
3222
|
changes: {
|
|
3207
|
-
path: string;
|
|
3208
|
-
type: "patch" | "file";
|
|
3209
3223
|
content: string;
|
|
3224
|
+
type: "patch" | "file";
|
|
3225
|
+
path: string;
|
|
3210
3226
|
}[];
|
|
3211
3227
|
changesAlreadyApplied: {
|
|
3212
|
-
path: string;
|
|
3213
|
-
type: "patch" | "file";
|
|
3214
3228
|
content: string;
|
|
3229
|
+
type: "patch" | "file";
|
|
3230
|
+
path: string;
|
|
3215
3231
|
}[];
|
|
3216
3232
|
addedFileVersions: {
|
|
3217
|
-
path: string;
|
|
3218
3233
|
content: string;
|
|
3234
|
+
path: string;
|
|
3219
3235
|
}[];
|
|
3220
3236
|
resetFileVersions: boolean;
|
|
3221
3237
|
usage?: number | undefined;
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
next_quota_reset?: Date | undefined;
|
|
3225
|
-
|
|
3238
|
+
remainingBalance?: number | undefined;
|
|
3239
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3240
|
+
next_quota_reset?: Date | null | undefined;
|
|
3241
|
+
nextMonthlyGrant?: number | undefined;
|
|
3242
|
+
autoTopupAdded?: number | undefined;
|
|
3226
3243
|
} | {
|
|
3227
3244
|
type: "message-cost-response";
|
|
3228
3245
|
promptId: string;
|
|
@@ -3255,14 +3272,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3255
3272
|
};
|
|
3256
3273
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3257
3274
|
fileVersions?: {
|
|
3258
|
-
path: string;
|
|
3259
3275
|
content: string;
|
|
3276
|
+
path: string;
|
|
3260
3277
|
}[][] | undefined;
|
|
3261
3278
|
};
|
|
3262
3279
|
messageHistory: {
|
|
3263
3280
|
content: string | ({
|
|
3264
|
-
type: "text";
|
|
3265
3281
|
text: string;
|
|
3282
|
+
type: "text";
|
|
3266
3283
|
cache_control?: {
|
|
3267
3284
|
type: "ephemeral";
|
|
3268
3285
|
} | undefined;
|
|
@@ -3275,8 +3292,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3275
3292
|
type: "ephemeral";
|
|
3276
3293
|
} | undefined;
|
|
3277
3294
|
} | {
|
|
3278
|
-
type: "tool_result";
|
|
3279
3295
|
content: string;
|
|
3296
|
+
type: "tool_result";
|
|
3280
3297
|
tool_use_id: string;
|
|
3281
3298
|
cache_control?: {
|
|
3282
3299
|
type: "ephemeral";
|
|
@@ -3284,9 +3301,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3284
3301
|
} | {
|
|
3285
3302
|
type: "image";
|
|
3286
3303
|
source: {
|
|
3304
|
+
data: string;
|
|
3287
3305
|
type: "base64";
|
|
3288
3306
|
media_type: "image/jpeg";
|
|
3289
|
-
data: string;
|
|
3290
3307
|
};
|
|
3291
3308
|
cache_control?: {
|
|
3292
3309
|
type: "ephemeral";
|
|
@@ -3303,8 +3320,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3303
3320
|
}[];
|
|
3304
3321
|
toolCalls: {
|
|
3305
3322
|
name: string;
|
|
3306
|
-
parameters: Record<string, string>;
|
|
3307
3323
|
id: string;
|
|
3324
|
+
parameters: Record<string, string>;
|
|
3308
3325
|
}[];
|
|
3309
3326
|
} | {
|
|
3310
3327
|
type: "response-chunk";
|
|
@@ -3315,27 +3332,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3315
3332
|
requestId: string;
|
|
3316
3333
|
filePaths: string[];
|
|
3317
3334
|
} | {
|
|
3318
|
-
type: "tool-call";
|
|
3319
3335
|
data: {
|
|
3320
3336
|
name: string;
|
|
3321
3337
|
id: string;
|
|
3322
3338
|
input: Record<string, any>;
|
|
3323
3339
|
};
|
|
3340
|
+
type: "tool-call";
|
|
3324
3341
|
userInputId: string;
|
|
3325
3342
|
response: string;
|
|
3326
3343
|
changes: {
|
|
3327
|
-
path: string;
|
|
3328
|
-
type: "patch" | "file";
|
|
3329
3344
|
content: string;
|
|
3345
|
+
type: "patch" | "file";
|
|
3346
|
+
path: string;
|
|
3330
3347
|
}[];
|
|
3331
3348
|
changesAlreadyApplied: {
|
|
3332
|
-
path: string;
|
|
3333
|
-
type: "patch" | "file";
|
|
3334
3349
|
content: string;
|
|
3350
|
+
type: "patch" | "file";
|
|
3351
|
+
path: string;
|
|
3335
3352
|
}[];
|
|
3336
3353
|
addedFileVersions: {
|
|
3337
|
-
path: string;
|
|
3338
3354
|
content: string;
|
|
3355
|
+
path: string;
|
|
3339
3356
|
}[];
|
|
3340
3357
|
resetFileVersions: boolean;
|
|
3341
3358
|
} | {
|
|
@@ -3347,52 +3364,57 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3347
3364
|
isUpToDate: boolean;
|
|
3348
3365
|
latestVersion: string;
|
|
3349
3366
|
} | {
|
|
3350
|
-
message: string;
|
|
3351
3367
|
type: "action-error";
|
|
3368
|
+
message: string;
|
|
3369
|
+
error?: string | undefined;
|
|
3370
|
+
remainingBalance?: number | undefined;
|
|
3352
3371
|
} | {
|
|
3353
3372
|
type: "commit-message-response";
|
|
3354
3373
|
commitMessage: string;
|
|
3355
3374
|
};
|
|
3356
|
-
}, {
|
|
3357
3375
|
type: "action";
|
|
3376
|
+
}, {
|
|
3358
3377
|
data: {
|
|
3359
3378
|
type: "usage-response";
|
|
3360
3379
|
usage: number;
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3380
|
+
remainingBalance: number;
|
|
3381
|
+
next_quota_reset: Date | null;
|
|
3382
|
+
nextMonthlyGrant: number;
|
|
3383
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3384
|
+
autoTopupAdded?: number | undefined;
|
|
3365
3385
|
} | {
|
|
3366
3386
|
type: "init-response";
|
|
3367
3387
|
usage: number;
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3388
|
+
remainingBalance: number;
|
|
3389
|
+
next_quota_reset: Date | null;
|
|
3390
|
+
nextMonthlyGrant: number;
|
|
3391
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3392
|
+
autoTopupAdded?: number | undefined;
|
|
3372
3393
|
} | {
|
|
3373
3394
|
type: "response-complete";
|
|
3374
3395
|
userInputId: string;
|
|
3375
3396
|
response: string;
|
|
3376
3397
|
changes: {
|
|
3377
|
-
path: string;
|
|
3378
|
-
type: "patch" | "file";
|
|
3379
3398
|
content: string;
|
|
3399
|
+
type: "patch" | "file";
|
|
3400
|
+
path: string;
|
|
3380
3401
|
}[];
|
|
3381
3402
|
changesAlreadyApplied: {
|
|
3382
|
-
path: string;
|
|
3383
|
-
type: "patch" | "file";
|
|
3384
3403
|
content: string;
|
|
3404
|
+
type: "patch" | "file";
|
|
3405
|
+
path: string;
|
|
3385
3406
|
}[];
|
|
3386
3407
|
addedFileVersions: {
|
|
3387
|
-
path: string;
|
|
3388
3408
|
content: string;
|
|
3409
|
+
path: string;
|
|
3389
3410
|
}[];
|
|
3390
3411
|
resetFileVersions: boolean;
|
|
3391
3412
|
usage?: number | undefined;
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
next_quota_reset?: Date | undefined;
|
|
3395
|
-
|
|
3413
|
+
remainingBalance?: number | undefined;
|
|
3414
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3415
|
+
next_quota_reset?: Date | null | undefined;
|
|
3416
|
+
nextMonthlyGrant?: number | undefined;
|
|
3417
|
+
autoTopupAdded?: number | undefined;
|
|
3396
3418
|
} | {
|
|
3397
3419
|
type: "message-cost-response";
|
|
3398
3420
|
promptId: string;
|
|
@@ -3425,14 +3447,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3425
3447
|
};
|
|
3426
3448
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3427
3449
|
fileVersions?: {
|
|
3428
|
-
path: string;
|
|
3429
3450
|
content: string;
|
|
3451
|
+
path: string;
|
|
3430
3452
|
}[][] | undefined;
|
|
3431
3453
|
};
|
|
3432
3454
|
messageHistory: {
|
|
3433
3455
|
content: string | ({
|
|
3434
|
-
type: "text";
|
|
3435
3456
|
text: string;
|
|
3457
|
+
type: "text";
|
|
3436
3458
|
cache_control?: {
|
|
3437
3459
|
type: "ephemeral";
|
|
3438
3460
|
} | undefined;
|
|
@@ -3445,8 +3467,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3445
3467
|
type: "ephemeral";
|
|
3446
3468
|
} | undefined;
|
|
3447
3469
|
} | {
|
|
3448
|
-
type: "tool_result";
|
|
3449
3470
|
content: string;
|
|
3471
|
+
type: "tool_result";
|
|
3450
3472
|
tool_use_id: string;
|
|
3451
3473
|
cache_control?: {
|
|
3452
3474
|
type: "ephemeral";
|
|
@@ -3454,9 +3476,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3454
3476
|
} | {
|
|
3455
3477
|
type: "image";
|
|
3456
3478
|
source: {
|
|
3479
|
+
data: string;
|
|
3457
3480
|
type: "base64";
|
|
3458
3481
|
media_type: "image/jpeg";
|
|
3459
|
-
data: string;
|
|
3460
3482
|
};
|
|
3461
3483
|
cache_control?: {
|
|
3462
3484
|
type: "ephemeral";
|
|
@@ -3473,8 +3495,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3473
3495
|
}[];
|
|
3474
3496
|
toolCalls: {
|
|
3475
3497
|
name: string;
|
|
3476
|
-
parameters: Record<string, string>;
|
|
3477
3498
|
id: string;
|
|
3499
|
+
parameters: Record<string, string>;
|
|
3478
3500
|
}[];
|
|
3479
3501
|
} | {
|
|
3480
3502
|
type: "response-chunk";
|
|
@@ -3485,27 +3507,27 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3485
3507
|
requestId: string;
|
|
3486
3508
|
filePaths: string[];
|
|
3487
3509
|
} | {
|
|
3488
|
-
type: "tool-call";
|
|
3489
3510
|
data: {
|
|
3490
3511
|
name: string;
|
|
3491
3512
|
id: string;
|
|
3492
3513
|
input: Record<string, any>;
|
|
3493
3514
|
};
|
|
3515
|
+
type: "tool-call";
|
|
3494
3516
|
userInputId: string;
|
|
3495
3517
|
response: string;
|
|
3496
3518
|
changes: {
|
|
3497
|
-
path: string;
|
|
3498
|
-
type: "patch" | "file";
|
|
3499
3519
|
content: string;
|
|
3520
|
+
type: "patch" | "file";
|
|
3521
|
+
path: string;
|
|
3500
3522
|
}[];
|
|
3501
3523
|
changesAlreadyApplied: {
|
|
3502
|
-
path: string;
|
|
3503
|
-
type: "patch" | "file";
|
|
3504
3524
|
content: string;
|
|
3525
|
+
type: "patch" | "file";
|
|
3526
|
+
path: string;
|
|
3505
3527
|
}[];
|
|
3506
3528
|
addedFileVersions: {
|
|
3507
|
-
path: string;
|
|
3508
3529
|
content: string;
|
|
3530
|
+
path: string;
|
|
3509
3531
|
}[];
|
|
3510
3532
|
resetFileVersions: boolean;
|
|
3511
3533
|
} | {
|
|
@@ -3517,12 +3539,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3517
3539
|
isUpToDate: boolean;
|
|
3518
3540
|
latestVersion: string;
|
|
3519
3541
|
} | {
|
|
3520
|
-
message: string;
|
|
3521
3542
|
type: "action-error";
|
|
3543
|
+
message: string;
|
|
3544
|
+
error?: string | undefined;
|
|
3545
|
+
remainingBalance?: number | undefined;
|
|
3522
3546
|
} | {
|
|
3523
3547
|
type: "commit-message-response";
|
|
3524
3548
|
commitMessage: string;
|
|
3525
3549
|
};
|
|
3550
|
+
type: "action";
|
|
3526
3551
|
}>;
|
|
3527
3552
|
};
|
|
3528
3553
|
export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
@@ -3533,13 +3558,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3533
3558
|
}, "strip", z.ZodTypeAny, {
|
|
3534
3559
|
type: "ack";
|
|
3535
3560
|
success: boolean;
|
|
3536
|
-
txid?: number | undefined;
|
|
3537
3561
|
error?: string | undefined;
|
|
3562
|
+
txid?: number | undefined;
|
|
3538
3563
|
}, {
|
|
3539
3564
|
type: "ack";
|
|
3540
3565
|
success: boolean;
|
|
3541
|
-
txid?: number | undefined;
|
|
3542
3566
|
error?: string | undefined;
|
|
3567
|
+
txid?: number | undefined;
|
|
3543
3568
|
}>, z.ZodObject<{
|
|
3544
3569
|
type: z.ZodLiteral<"action">;
|
|
3545
3570
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -3563,92 +3588,95 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3563
3588
|
path: z.ZodString;
|
|
3564
3589
|
content: z.ZodString;
|
|
3565
3590
|
}, "strip", z.ZodTypeAny, {
|
|
3566
|
-
path: string;
|
|
3567
|
-
type: "patch" | "file";
|
|
3568
3591
|
content: string;
|
|
3569
|
-
}, {
|
|
3570
|
-
path: string;
|
|
3571
3592
|
type: "patch" | "file";
|
|
3593
|
+
path: string;
|
|
3594
|
+
}, {
|
|
3572
3595
|
content: string;
|
|
3596
|
+
type: "patch" | "file";
|
|
3597
|
+
path: string;
|
|
3573
3598
|
}>, "many">;
|
|
3574
3599
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3575
3600
|
type: z.ZodEnum<["patch", "file"]>;
|
|
3576
3601
|
path: z.ZodString;
|
|
3577
3602
|
content: z.ZodString;
|
|
3578
3603
|
}, "strip", z.ZodTypeAny, {
|
|
3579
|
-
path: string;
|
|
3580
|
-
type: "patch" | "file";
|
|
3581
3604
|
content: string;
|
|
3582
|
-
}, {
|
|
3583
|
-
path: string;
|
|
3584
3605
|
type: "patch" | "file";
|
|
3606
|
+
path: string;
|
|
3607
|
+
}, {
|
|
3585
3608
|
content: string;
|
|
3609
|
+
type: "patch" | "file";
|
|
3610
|
+
path: string;
|
|
3586
3611
|
}>, "many">;
|
|
3587
3612
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3588
3613
|
path: z.ZodString;
|
|
3589
3614
|
content: z.ZodString;
|
|
3590
3615
|
}, "strip", z.ZodTypeAny, {
|
|
3591
|
-
path: string;
|
|
3592
3616
|
content: string;
|
|
3593
|
-
}, {
|
|
3594
3617
|
path: string;
|
|
3618
|
+
}, {
|
|
3595
3619
|
content: string;
|
|
3620
|
+
path: string;
|
|
3596
3621
|
}>, "many">;
|
|
3597
3622
|
resetFileVersions: z.ZodBoolean;
|
|
3598
3623
|
}, {
|
|
3599
3624
|
usage: z.ZodOptional<z.ZodNumber>;
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
next_quota_reset: z.ZodOptional<z.ZodDate
|
|
3603
|
-
|
|
3625
|
+
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3626
|
+
balanceBreakdown: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>>;
|
|
3627
|
+
next_quota_reset: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
3628
|
+
nextMonthlyGrant: z.ZodOptional<z.ZodNumber>;
|
|
3629
|
+
autoTopupAdded: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
3604
3630
|
}>, "strip", z.ZodTypeAny, {
|
|
3605
3631
|
type: "response-complete";
|
|
3606
3632
|
userInputId: string;
|
|
3607
3633
|
response: string;
|
|
3608
3634
|
changes: {
|
|
3609
|
-
path: string;
|
|
3610
|
-
type: "patch" | "file";
|
|
3611
3635
|
content: string;
|
|
3636
|
+
type: "patch" | "file";
|
|
3637
|
+
path: string;
|
|
3612
3638
|
}[];
|
|
3613
3639
|
changesAlreadyApplied: {
|
|
3614
|
-
path: string;
|
|
3615
|
-
type: "patch" | "file";
|
|
3616
3640
|
content: string;
|
|
3641
|
+
type: "patch" | "file";
|
|
3642
|
+
path: string;
|
|
3617
3643
|
}[];
|
|
3618
3644
|
addedFileVersions: {
|
|
3619
|
-
path: string;
|
|
3620
3645
|
content: string;
|
|
3646
|
+
path: string;
|
|
3621
3647
|
}[];
|
|
3622
3648
|
resetFileVersions: boolean;
|
|
3623
3649
|
usage?: number | undefined;
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
next_quota_reset?: Date | undefined;
|
|
3627
|
-
|
|
3650
|
+
remainingBalance?: number | undefined;
|
|
3651
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3652
|
+
next_quota_reset?: Date | null | undefined;
|
|
3653
|
+
nextMonthlyGrant?: number | undefined;
|
|
3654
|
+
autoTopupAdded?: number | undefined;
|
|
3628
3655
|
}, {
|
|
3629
3656
|
type: "response-complete";
|
|
3630
3657
|
userInputId: string;
|
|
3631
3658
|
response: string;
|
|
3632
3659
|
changes: {
|
|
3633
|
-
path: string;
|
|
3634
|
-
type: "patch" | "file";
|
|
3635
3660
|
content: string;
|
|
3661
|
+
type: "patch" | "file";
|
|
3662
|
+
path: string;
|
|
3636
3663
|
}[];
|
|
3637
3664
|
changesAlreadyApplied: {
|
|
3638
|
-
path: string;
|
|
3639
|
-
type: "patch" | "file";
|
|
3640
3665
|
content: string;
|
|
3666
|
+
type: "patch" | "file";
|
|
3667
|
+
path: string;
|
|
3641
3668
|
}[];
|
|
3642
3669
|
addedFileVersions: {
|
|
3643
|
-
path: string;
|
|
3644
3670
|
content: string;
|
|
3671
|
+
path: string;
|
|
3645
3672
|
}[];
|
|
3646
3673
|
resetFileVersions: boolean;
|
|
3647
3674
|
usage?: number | undefined;
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
next_quota_reset?: Date | undefined;
|
|
3651
|
-
|
|
3675
|
+
remainingBalance?: number | undefined;
|
|
3676
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
3677
|
+
next_quota_reset?: Date | null | undefined;
|
|
3678
|
+
nextMonthlyGrant?: number | undefined;
|
|
3679
|
+
autoTopupAdded?: number | undefined;
|
|
3652
3680
|
}>, z.ZodObject<{
|
|
3653
3681
|
type: z.ZodLiteral<"prompt-response">;
|
|
3654
3682
|
promptId: z.ZodString;
|
|
@@ -3704,11 +3732,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3704
3732
|
path: z.ZodString;
|
|
3705
3733
|
content: z.ZodString;
|
|
3706
3734
|
}, "strip", z.ZodTypeAny, {
|
|
3707
|
-
path: string;
|
|
3708
3735
|
content: string;
|
|
3709
|
-
}, {
|
|
3710
3736
|
path: string;
|
|
3737
|
+
}, {
|
|
3711
3738
|
content: string;
|
|
3739
|
+
path: string;
|
|
3712
3740
|
}>, "many">, "many">>;
|
|
3713
3741
|
}, "strip", z.ZodTypeAny, {
|
|
3714
3742
|
currentWorkingDirectory: string;
|
|
@@ -3733,8 +3761,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3733
3761
|
};
|
|
3734
3762
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3735
3763
|
fileVersions?: {
|
|
3736
|
-
path: string;
|
|
3737
3764
|
content: string;
|
|
3765
|
+
path: string;
|
|
3738
3766
|
}[][] | undefined;
|
|
3739
3767
|
}, {
|
|
3740
3768
|
currentWorkingDirectory: string;
|
|
@@ -3759,8 +3787,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3759
3787
|
};
|
|
3760
3788
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3761
3789
|
fileVersions?: {
|
|
3762
|
-
path: string;
|
|
3763
3790
|
content: string;
|
|
3791
|
+
path: string;
|
|
3764
3792
|
}[][] | undefined;
|
|
3765
3793
|
}>;
|
|
3766
3794
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -3776,14 +3804,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3776
3804
|
type: "ephemeral";
|
|
3777
3805
|
}>>;
|
|
3778
3806
|
}, "strip", z.ZodTypeAny, {
|
|
3779
|
-
type: "text";
|
|
3780
3807
|
text: string;
|
|
3808
|
+
type: "text";
|
|
3781
3809
|
cache_control?: {
|
|
3782
3810
|
type: "ephemeral";
|
|
3783
3811
|
} | undefined;
|
|
3784
3812
|
}, {
|
|
3785
|
-
type: "text";
|
|
3786
3813
|
text: string;
|
|
3814
|
+
type: "text";
|
|
3787
3815
|
cache_control?: {
|
|
3788
3816
|
type: "ephemeral";
|
|
3789
3817
|
} | undefined;
|
|
@@ -3827,15 +3855,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3827
3855
|
type: "ephemeral";
|
|
3828
3856
|
}>>;
|
|
3829
3857
|
}, "strip", z.ZodTypeAny, {
|
|
3830
|
-
type: "tool_result";
|
|
3831
3858
|
content: string;
|
|
3859
|
+
type: "tool_result";
|
|
3832
3860
|
tool_use_id: string;
|
|
3833
3861
|
cache_control?: {
|
|
3834
3862
|
type: "ephemeral";
|
|
3835
3863
|
} | undefined;
|
|
3836
3864
|
}, {
|
|
3837
|
-
type: "tool_result";
|
|
3838
3865
|
content: string;
|
|
3866
|
+
type: "tool_result";
|
|
3839
3867
|
tool_use_id: string;
|
|
3840
3868
|
cache_control?: {
|
|
3841
3869
|
type: "ephemeral";
|
|
@@ -3847,13 +3875,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3847
3875
|
media_type: z.ZodLiteral<"image/jpeg">;
|
|
3848
3876
|
data: z.ZodString;
|
|
3849
3877
|
}, "strip", z.ZodTypeAny, {
|
|
3878
|
+
data: string;
|
|
3850
3879
|
type: "base64";
|
|
3851
3880
|
media_type: "image/jpeg";
|
|
3852
|
-
data: string;
|
|
3853
3881
|
}, {
|
|
3882
|
+
data: string;
|
|
3854
3883
|
type: "base64";
|
|
3855
3884
|
media_type: "image/jpeg";
|
|
3856
|
-
data: string;
|
|
3857
3885
|
}>;
|
|
3858
3886
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
3859
3887
|
type: z.ZodLiteral<"ephemeral">;
|
|
@@ -3865,9 +3893,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3865
3893
|
}, "strip", z.ZodTypeAny, {
|
|
3866
3894
|
type: "image";
|
|
3867
3895
|
source: {
|
|
3896
|
+
data: string;
|
|
3868
3897
|
type: "base64";
|
|
3869
3898
|
media_type: "image/jpeg";
|
|
3870
|
-
data: string;
|
|
3871
3899
|
};
|
|
3872
3900
|
cache_control?: {
|
|
3873
3901
|
type: "ephemeral";
|
|
@@ -3875,9 +3903,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3875
3903
|
}, {
|
|
3876
3904
|
type: "image";
|
|
3877
3905
|
source: {
|
|
3906
|
+
data: string;
|
|
3878
3907
|
type: "base64";
|
|
3879
3908
|
media_type: "image/jpeg";
|
|
3880
|
-
data: string;
|
|
3881
3909
|
};
|
|
3882
3910
|
cache_control?: {
|
|
3883
3911
|
type: "ephemeral";
|
|
@@ -3885,8 +3913,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3885
3913
|
}>]>, "many">]>;
|
|
3886
3914
|
}, "strip", z.ZodTypeAny, {
|
|
3887
3915
|
content: string | ({
|
|
3888
|
-
type: "text";
|
|
3889
3916
|
text: string;
|
|
3917
|
+
type: "text";
|
|
3890
3918
|
cache_control?: {
|
|
3891
3919
|
type: "ephemeral";
|
|
3892
3920
|
} | undefined;
|
|
@@ -3899,8 +3927,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3899
3927
|
type: "ephemeral";
|
|
3900
3928
|
} | undefined;
|
|
3901
3929
|
} | {
|
|
3902
|
-
type: "tool_result";
|
|
3903
3930
|
content: string;
|
|
3931
|
+
type: "tool_result";
|
|
3904
3932
|
tool_use_id: string;
|
|
3905
3933
|
cache_control?: {
|
|
3906
3934
|
type: "ephemeral";
|
|
@@ -3908,9 +3936,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3908
3936
|
} | {
|
|
3909
3937
|
type: "image";
|
|
3910
3938
|
source: {
|
|
3939
|
+
data: string;
|
|
3911
3940
|
type: "base64";
|
|
3912
3941
|
media_type: "image/jpeg";
|
|
3913
|
-
data: string;
|
|
3914
3942
|
};
|
|
3915
3943
|
cache_control?: {
|
|
3916
3944
|
type: "ephemeral";
|
|
@@ -3919,8 +3947,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3919
3947
|
role: "user" | "assistant";
|
|
3920
3948
|
}, {
|
|
3921
3949
|
content: string | ({
|
|
3922
|
-
type: "text";
|
|
3923
3950
|
text: string;
|
|
3951
|
+
type: "text";
|
|
3924
3952
|
cache_control?: {
|
|
3925
3953
|
type: "ephemeral";
|
|
3926
3954
|
} | undefined;
|
|
@@ -3933,8 +3961,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3933
3961
|
type: "ephemeral";
|
|
3934
3962
|
} | undefined;
|
|
3935
3963
|
} | {
|
|
3936
|
-
type: "tool_result";
|
|
3937
3964
|
content: string;
|
|
3965
|
+
type: "tool_result";
|
|
3938
3966
|
tool_use_id: string;
|
|
3939
3967
|
cache_control?: {
|
|
3940
3968
|
type: "ephemeral";
|
|
@@ -3942,9 +3970,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3942
3970
|
} | {
|
|
3943
3971
|
type: "image";
|
|
3944
3972
|
source: {
|
|
3973
|
+
data: string;
|
|
3945
3974
|
type: "base64";
|
|
3946
3975
|
media_type: "image/jpeg";
|
|
3947
|
-
data: string;
|
|
3948
3976
|
};
|
|
3949
3977
|
cache_control?: {
|
|
3950
3978
|
type: "ephemeral";
|
|
@@ -3978,14 +4006,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3978
4006
|
};
|
|
3979
4007
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3980
4008
|
fileVersions?: {
|
|
3981
|
-
path: string;
|
|
3982
4009
|
content: string;
|
|
4010
|
+
path: string;
|
|
3983
4011
|
}[][] | undefined;
|
|
3984
4012
|
};
|
|
3985
4013
|
messageHistory: {
|
|
3986
4014
|
content: string | ({
|
|
3987
|
-
type: "text";
|
|
3988
4015
|
text: string;
|
|
4016
|
+
type: "text";
|
|
3989
4017
|
cache_control?: {
|
|
3990
4018
|
type: "ephemeral";
|
|
3991
4019
|
} | undefined;
|
|
@@ -3998,8 +4026,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3998
4026
|
type: "ephemeral";
|
|
3999
4027
|
} | undefined;
|
|
4000
4028
|
} | {
|
|
4001
|
-
type: "tool_result";
|
|
4002
4029
|
content: string;
|
|
4030
|
+
type: "tool_result";
|
|
4003
4031
|
tool_use_id: string;
|
|
4004
4032
|
cache_control?: {
|
|
4005
4033
|
type: "ephemeral";
|
|
@@ -4007,9 +4035,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4007
4035
|
} | {
|
|
4008
4036
|
type: "image";
|
|
4009
4037
|
source: {
|
|
4038
|
+
data: string;
|
|
4010
4039
|
type: "base64";
|
|
4011
4040
|
media_type: "image/jpeg";
|
|
4012
|
-
data: string;
|
|
4013
4041
|
};
|
|
4014
4042
|
cache_control?: {
|
|
4015
4043
|
type: "ephemeral";
|
|
@@ -4043,14 +4071,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4043
4071
|
};
|
|
4044
4072
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4045
4073
|
fileVersions?: {
|
|
4046
|
-
path: string;
|
|
4047
4074
|
content: string;
|
|
4075
|
+
path: string;
|
|
4048
4076
|
}[][] | undefined;
|
|
4049
4077
|
};
|
|
4050
4078
|
messageHistory: {
|
|
4051
4079
|
content: string | ({
|
|
4052
|
-
type: "text";
|
|
4053
4080
|
text: string;
|
|
4081
|
+
type: "text";
|
|
4054
4082
|
cache_control?: {
|
|
4055
4083
|
type: "ephemeral";
|
|
4056
4084
|
} | undefined;
|
|
@@ -4063,8 +4091,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4063
4091
|
type: "ephemeral";
|
|
4064
4092
|
} | undefined;
|
|
4065
4093
|
} | {
|
|
4066
|
-
type: "tool_result";
|
|
4067
4094
|
content: string;
|
|
4095
|
+
type: "tool_result";
|
|
4068
4096
|
tool_use_id: string;
|
|
4069
4097
|
cache_control?: {
|
|
4070
4098
|
type: "ephemeral";
|
|
@@ -4072,9 +4100,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4072
4100
|
} | {
|
|
4073
4101
|
type: "image";
|
|
4074
4102
|
source: {
|
|
4103
|
+
data: string;
|
|
4075
4104
|
type: "base64";
|
|
4076
4105
|
media_type: "image/jpeg";
|
|
4077
|
-
data: string;
|
|
4078
4106
|
};
|
|
4079
4107
|
cache_control?: {
|
|
4080
4108
|
type: "ephemeral";
|
|
@@ -4090,12 +4118,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4090
4118
|
id: z.ZodString;
|
|
4091
4119
|
}, "strip", z.ZodTypeAny, {
|
|
4092
4120
|
name: string;
|
|
4093
|
-
parameters: Record<string, string>;
|
|
4094
4121
|
id: string;
|
|
4122
|
+
parameters: Record<string, string>;
|
|
4095
4123
|
}, {
|
|
4096
4124
|
name: string;
|
|
4097
|
-
parameters: Record<string, string>;
|
|
4098
4125
|
id: string;
|
|
4126
|
+
parameters: Record<string, string>;
|
|
4099
4127
|
}>, "many">;
|
|
4100
4128
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
4101
4129
|
name: z.ZodString;
|
|
@@ -4138,14 +4166,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4138
4166
|
};
|
|
4139
4167
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4140
4168
|
fileVersions?: {
|
|
4141
|
-
path: string;
|
|
4142
4169
|
content: string;
|
|
4170
|
+
path: string;
|
|
4143
4171
|
}[][] | undefined;
|
|
4144
4172
|
};
|
|
4145
4173
|
messageHistory: {
|
|
4146
4174
|
content: string | ({
|
|
4147
|
-
type: "text";
|
|
4148
4175
|
text: string;
|
|
4176
|
+
type: "text";
|
|
4149
4177
|
cache_control?: {
|
|
4150
4178
|
type: "ephemeral";
|
|
4151
4179
|
} | undefined;
|
|
@@ -4158,8 +4186,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4158
4186
|
type: "ephemeral";
|
|
4159
4187
|
} | undefined;
|
|
4160
4188
|
} | {
|
|
4161
|
-
type: "tool_result";
|
|
4162
4189
|
content: string;
|
|
4190
|
+
type: "tool_result";
|
|
4163
4191
|
tool_use_id: string;
|
|
4164
4192
|
cache_control?: {
|
|
4165
4193
|
type: "ephemeral";
|
|
@@ -4167,9 +4195,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4167
4195
|
} | {
|
|
4168
4196
|
type: "image";
|
|
4169
4197
|
source: {
|
|
4198
|
+
data: string;
|
|
4170
4199
|
type: "base64";
|
|
4171
4200
|
media_type: "image/jpeg";
|
|
4172
|
-
data: string;
|
|
4173
4201
|
};
|
|
4174
4202
|
cache_control?: {
|
|
4175
4203
|
type: "ephemeral";
|
|
@@ -4186,8 +4214,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4186
4214
|
}[];
|
|
4187
4215
|
toolCalls: {
|
|
4188
4216
|
name: string;
|
|
4189
|
-
parameters: Record<string, string>;
|
|
4190
4217
|
id: string;
|
|
4218
|
+
parameters: Record<string, string>;
|
|
4191
4219
|
}[];
|
|
4192
4220
|
}, {
|
|
4193
4221
|
type: "prompt-response";
|
|
@@ -4217,14 +4245,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4217
4245
|
};
|
|
4218
4246
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4219
4247
|
fileVersions?: {
|
|
4220
|
-
path: string;
|
|
4221
4248
|
content: string;
|
|
4249
|
+
path: string;
|
|
4222
4250
|
}[][] | undefined;
|
|
4223
4251
|
};
|
|
4224
4252
|
messageHistory: {
|
|
4225
4253
|
content: string | ({
|
|
4226
|
-
type: "text";
|
|
4227
4254
|
text: string;
|
|
4255
|
+
type: "text";
|
|
4228
4256
|
cache_control?: {
|
|
4229
4257
|
type: "ephemeral";
|
|
4230
4258
|
} | undefined;
|
|
@@ -4237,8 +4265,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4237
4265
|
type: "ephemeral";
|
|
4238
4266
|
} | undefined;
|
|
4239
4267
|
} | {
|
|
4240
|
-
type: "tool_result";
|
|
4241
4268
|
content: string;
|
|
4269
|
+
type: "tool_result";
|
|
4242
4270
|
tool_use_id: string;
|
|
4243
4271
|
cache_control?: {
|
|
4244
4272
|
type: "ephemeral";
|
|
@@ -4246,9 +4274,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4246
4274
|
} | {
|
|
4247
4275
|
type: "image";
|
|
4248
4276
|
source: {
|
|
4277
|
+
data: string;
|
|
4249
4278
|
type: "base64";
|
|
4250
4279
|
media_type: "image/jpeg";
|
|
4251
|
-
data: string;
|
|
4252
4280
|
};
|
|
4253
4281
|
cache_control?: {
|
|
4254
4282
|
type: "ephemeral";
|
|
@@ -4265,8 +4293,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4265
4293
|
}[];
|
|
4266
4294
|
toolCalls: {
|
|
4267
4295
|
name: string;
|
|
4268
|
-
parameters: Record<string, string>;
|
|
4269
4296
|
id: string;
|
|
4297
|
+
parameters: Record<string, string>;
|
|
4270
4298
|
}[];
|
|
4271
4299
|
}>, z.ZodObject<{
|
|
4272
4300
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4302,84 +4330,84 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4302
4330
|
path: z.ZodString;
|
|
4303
4331
|
content: z.ZodString;
|
|
4304
4332
|
}, "strip", z.ZodTypeAny, {
|
|
4305
|
-
path: string;
|
|
4306
|
-
type: "patch" | "file";
|
|
4307
4333
|
content: string;
|
|
4308
|
-
}, {
|
|
4309
|
-
path: string;
|
|
4310
4334
|
type: "patch" | "file";
|
|
4335
|
+
path: string;
|
|
4336
|
+
}, {
|
|
4311
4337
|
content: string;
|
|
4338
|
+
type: "patch" | "file";
|
|
4339
|
+
path: string;
|
|
4312
4340
|
}>, "many">;
|
|
4313
4341
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4314
4342
|
type: z.ZodEnum<["patch", "file"]>;
|
|
4315
4343
|
path: z.ZodString;
|
|
4316
4344
|
content: z.ZodString;
|
|
4317
4345
|
}, "strip", z.ZodTypeAny, {
|
|
4318
|
-
path: string;
|
|
4319
|
-
type: "patch" | "file";
|
|
4320
4346
|
content: string;
|
|
4321
|
-
}, {
|
|
4322
|
-
path: string;
|
|
4323
4347
|
type: "patch" | "file";
|
|
4348
|
+
path: string;
|
|
4349
|
+
}, {
|
|
4324
4350
|
content: string;
|
|
4351
|
+
type: "patch" | "file";
|
|
4352
|
+
path: string;
|
|
4325
4353
|
}>, "many">;
|
|
4326
4354
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4327
4355
|
path: z.ZodString;
|
|
4328
4356
|
content: z.ZodString;
|
|
4329
4357
|
}, "strip", z.ZodTypeAny, {
|
|
4330
|
-
path: string;
|
|
4331
4358
|
content: string;
|
|
4332
|
-
}, {
|
|
4333
4359
|
path: string;
|
|
4360
|
+
}, {
|
|
4334
4361
|
content: string;
|
|
4362
|
+
path: string;
|
|
4335
4363
|
}>, "many">;
|
|
4336
4364
|
resetFileVersions: z.ZodBoolean;
|
|
4337
4365
|
}, "strip", z.ZodTypeAny, {
|
|
4338
|
-
type: "tool-call";
|
|
4339
4366
|
data: {
|
|
4340
4367
|
name: string;
|
|
4341
4368
|
id: string;
|
|
4342
4369
|
input: Record<string, any>;
|
|
4343
4370
|
};
|
|
4371
|
+
type: "tool-call";
|
|
4344
4372
|
userInputId: string;
|
|
4345
4373
|
response: string;
|
|
4346
4374
|
changes: {
|
|
4347
|
-
path: string;
|
|
4348
|
-
type: "patch" | "file";
|
|
4349
4375
|
content: string;
|
|
4376
|
+
type: "patch" | "file";
|
|
4377
|
+
path: string;
|
|
4350
4378
|
}[];
|
|
4351
4379
|
changesAlreadyApplied: {
|
|
4352
|
-
path: string;
|
|
4353
|
-
type: "patch" | "file";
|
|
4354
4380
|
content: string;
|
|
4381
|
+
type: "patch" | "file";
|
|
4382
|
+
path: string;
|
|
4355
4383
|
}[];
|
|
4356
4384
|
addedFileVersions: {
|
|
4357
|
-
path: string;
|
|
4358
4385
|
content: string;
|
|
4386
|
+
path: string;
|
|
4359
4387
|
}[];
|
|
4360
4388
|
resetFileVersions: boolean;
|
|
4361
4389
|
}, {
|
|
4362
|
-
type: "tool-call";
|
|
4363
4390
|
data: {
|
|
4364
4391
|
name: string;
|
|
4365
4392
|
id: string;
|
|
4366
4393
|
input: Record<string, any>;
|
|
4367
4394
|
};
|
|
4395
|
+
type: "tool-call";
|
|
4368
4396
|
userInputId: string;
|
|
4369
4397
|
response: string;
|
|
4370
4398
|
changes: {
|
|
4371
|
-
path: string;
|
|
4372
|
-
type: "patch" | "file";
|
|
4373
4399
|
content: string;
|
|
4400
|
+
type: "patch" | "file";
|
|
4401
|
+
path: string;
|
|
4374
4402
|
}[];
|
|
4375
4403
|
changesAlreadyApplied: {
|
|
4376
|
-
path: string;
|
|
4377
|
-
type: "patch" | "file";
|
|
4378
4404
|
content: string;
|
|
4405
|
+
type: "patch" | "file";
|
|
4406
|
+
path: string;
|
|
4379
4407
|
}[];
|
|
4380
4408
|
addedFileVersions: {
|
|
4381
|
-
path: string;
|
|
4382
4409
|
content: string;
|
|
4410
|
+
path: string;
|
|
4383
4411
|
}[];
|
|
4384
4412
|
resetFileVersions: boolean;
|
|
4385
4413
|
}>, z.ZodObject<{
|
|
@@ -4411,45 +4439,51 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4411
4439
|
}, Omit<{
|
|
4412
4440
|
type: z.ZodLiteral<"usage-response">;
|
|
4413
4441
|
usage: z.ZodNumber;
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
next_quota_reset: z.ZodDate
|
|
4417
|
-
|
|
4442
|
+
remainingBalance: z.ZodNumber;
|
|
4443
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
4444
|
+
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4445
|
+
nextMonthlyGrant: z.ZodNumber;
|
|
4446
|
+
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4418
4447
|
}, "type">>, "strip", z.ZodTypeAny, {
|
|
4419
4448
|
type: "init-response";
|
|
4420
4449
|
usage: number;
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4450
|
+
remainingBalance: number;
|
|
4451
|
+
next_quota_reset: Date | null;
|
|
4452
|
+
nextMonthlyGrant: number;
|
|
4453
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4454
|
+
autoTopupAdded?: number | undefined;
|
|
4425
4455
|
}, {
|
|
4426
4456
|
type: "init-response";
|
|
4427
4457
|
usage: number;
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4458
|
+
remainingBalance: number;
|
|
4459
|
+
next_quota_reset: Date | null;
|
|
4460
|
+
nextMonthlyGrant: number;
|
|
4461
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4462
|
+
autoTopupAdded?: number | undefined;
|
|
4432
4463
|
}>, z.ZodObject<{
|
|
4433
4464
|
type: z.ZodLiteral<"usage-response">;
|
|
4434
4465
|
usage: z.ZodNumber;
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
next_quota_reset: z.ZodDate
|
|
4438
|
-
|
|
4466
|
+
remainingBalance: z.ZodNumber;
|
|
4467
|
+
balanceBreakdown: z.ZodOptional<z.ZodRecord<z.ZodEnum<[import("../types/grant").GrantType, ...import("../types/grant").GrantType[]]>, z.ZodNumber>>;
|
|
4468
|
+
next_quota_reset: z.ZodNullable<z.ZodDate>;
|
|
4469
|
+
nextMonthlyGrant: z.ZodNumber;
|
|
4470
|
+
autoTopupAdded: z.ZodOptional<z.ZodNumber>;
|
|
4439
4471
|
}, "strip", z.ZodTypeAny, {
|
|
4440
4472
|
type: "usage-response";
|
|
4441
4473
|
usage: number;
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4474
|
+
remainingBalance: number;
|
|
4475
|
+
next_quota_reset: Date | null;
|
|
4476
|
+
nextMonthlyGrant: number;
|
|
4477
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4478
|
+
autoTopupAdded?: number | undefined;
|
|
4446
4479
|
}, {
|
|
4447
4480
|
type: "usage-response";
|
|
4448
4481
|
usage: number;
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4482
|
+
remainingBalance: number;
|
|
4483
|
+
next_quota_reset: Date | null;
|
|
4484
|
+
nextMonthlyGrant: number;
|
|
4485
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4486
|
+
autoTopupAdded?: number | undefined;
|
|
4453
4487
|
}>, z.ZodObject<{
|
|
4454
4488
|
type: z.ZodLiteral<"message-cost-response">;
|
|
4455
4489
|
promptId: z.ZodString;
|
|
@@ -4465,12 +4499,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4465
4499
|
}>, z.ZodObject<{
|
|
4466
4500
|
type: z.ZodLiteral<"action-error">;
|
|
4467
4501
|
message: z.ZodString;
|
|
4502
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4503
|
+
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4468
4504
|
}, "strip", z.ZodTypeAny, {
|
|
4469
|
-
message: string;
|
|
4470
4505
|
type: "action-error";
|
|
4471
|
-
}, {
|
|
4472
4506
|
message: string;
|
|
4507
|
+
error?: string | undefined;
|
|
4508
|
+
remainingBalance?: number | undefined;
|
|
4509
|
+
}, {
|
|
4473
4510
|
type: "action-error";
|
|
4511
|
+
message: string;
|
|
4512
|
+
error?: string | undefined;
|
|
4513
|
+
remainingBalance?: number | undefined;
|
|
4474
4514
|
}>, z.ZodObject<{
|
|
4475
4515
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4476
4516
|
commitMessage: z.ZodString;
|
|
@@ -4482,45 +4522,47 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4482
4522
|
commitMessage: string;
|
|
4483
4523
|
}>]>;
|
|
4484
4524
|
}, "strip", z.ZodTypeAny, {
|
|
4485
|
-
type: "action";
|
|
4486
4525
|
data: {
|
|
4487
4526
|
type: "usage-response";
|
|
4488
4527
|
usage: number;
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4528
|
+
remainingBalance: number;
|
|
4529
|
+
next_quota_reset: Date | null;
|
|
4530
|
+
nextMonthlyGrant: number;
|
|
4531
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4532
|
+
autoTopupAdded?: number | undefined;
|
|
4493
4533
|
} | {
|
|
4494
4534
|
type: "init-response";
|
|
4495
4535
|
usage: number;
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4536
|
+
remainingBalance: number;
|
|
4537
|
+
next_quota_reset: Date | null;
|
|
4538
|
+
nextMonthlyGrant: number;
|
|
4539
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4540
|
+
autoTopupAdded?: number | undefined;
|
|
4500
4541
|
} | {
|
|
4501
4542
|
type: "response-complete";
|
|
4502
4543
|
userInputId: string;
|
|
4503
4544
|
response: string;
|
|
4504
4545
|
changes: {
|
|
4505
|
-
path: string;
|
|
4506
|
-
type: "patch" | "file";
|
|
4507
4546
|
content: string;
|
|
4547
|
+
type: "patch" | "file";
|
|
4548
|
+
path: string;
|
|
4508
4549
|
}[];
|
|
4509
4550
|
changesAlreadyApplied: {
|
|
4510
|
-
path: string;
|
|
4511
|
-
type: "patch" | "file";
|
|
4512
4551
|
content: string;
|
|
4552
|
+
type: "patch" | "file";
|
|
4553
|
+
path: string;
|
|
4513
4554
|
}[];
|
|
4514
4555
|
addedFileVersions: {
|
|
4515
|
-
path: string;
|
|
4516
4556
|
content: string;
|
|
4557
|
+
path: string;
|
|
4517
4558
|
}[];
|
|
4518
4559
|
resetFileVersions: boolean;
|
|
4519
4560
|
usage?: number | undefined;
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
next_quota_reset?: Date | undefined;
|
|
4523
|
-
|
|
4561
|
+
remainingBalance?: number | undefined;
|
|
4562
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4563
|
+
next_quota_reset?: Date | null | undefined;
|
|
4564
|
+
nextMonthlyGrant?: number | undefined;
|
|
4565
|
+
autoTopupAdded?: number | undefined;
|
|
4524
4566
|
} | {
|
|
4525
4567
|
type: "message-cost-response";
|
|
4526
4568
|
promptId: string;
|
|
@@ -4553,14 +4595,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4553
4595
|
};
|
|
4554
4596
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4555
4597
|
fileVersions?: {
|
|
4556
|
-
path: string;
|
|
4557
4598
|
content: string;
|
|
4599
|
+
path: string;
|
|
4558
4600
|
}[][] | undefined;
|
|
4559
4601
|
};
|
|
4560
4602
|
messageHistory: {
|
|
4561
4603
|
content: string | ({
|
|
4562
|
-
type: "text";
|
|
4563
4604
|
text: string;
|
|
4605
|
+
type: "text";
|
|
4564
4606
|
cache_control?: {
|
|
4565
4607
|
type: "ephemeral";
|
|
4566
4608
|
} | undefined;
|
|
@@ -4573,8 +4615,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4573
4615
|
type: "ephemeral";
|
|
4574
4616
|
} | undefined;
|
|
4575
4617
|
} | {
|
|
4576
|
-
type: "tool_result";
|
|
4577
4618
|
content: string;
|
|
4619
|
+
type: "tool_result";
|
|
4578
4620
|
tool_use_id: string;
|
|
4579
4621
|
cache_control?: {
|
|
4580
4622
|
type: "ephemeral";
|
|
@@ -4582,9 +4624,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4582
4624
|
} | {
|
|
4583
4625
|
type: "image";
|
|
4584
4626
|
source: {
|
|
4627
|
+
data: string;
|
|
4585
4628
|
type: "base64";
|
|
4586
4629
|
media_type: "image/jpeg";
|
|
4587
|
-
data: string;
|
|
4588
4630
|
};
|
|
4589
4631
|
cache_control?: {
|
|
4590
4632
|
type: "ephemeral";
|
|
@@ -4601,8 +4643,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4601
4643
|
}[];
|
|
4602
4644
|
toolCalls: {
|
|
4603
4645
|
name: string;
|
|
4604
|
-
parameters: Record<string, string>;
|
|
4605
4646
|
id: string;
|
|
4647
|
+
parameters: Record<string, string>;
|
|
4606
4648
|
}[];
|
|
4607
4649
|
} | {
|
|
4608
4650
|
type: "response-chunk";
|
|
@@ -4613,27 +4655,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4613
4655
|
requestId: string;
|
|
4614
4656
|
filePaths: string[];
|
|
4615
4657
|
} | {
|
|
4616
|
-
type: "tool-call";
|
|
4617
4658
|
data: {
|
|
4618
4659
|
name: string;
|
|
4619
4660
|
id: string;
|
|
4620
4661
|
input: Record<string, any>;
|
|
4621
4662
|
};
|
|
4663
|
+
type: "tool-call";
|
|
4622
4664
|
userInputId: string;
|
|
4623
4665
|
response: string;
|
|
4624
4666
|
changes: {
|
|
4625
|
-
path: string;
|
|
4626
|
-
type: "patch" | "file";
|
|
4627
4667
|
content: string;
|
|
4668
|
+
type: "patch" | "file";
|
|
4669
|
+
path: string;
|
|
4628
4670
|
}[];
|
|
4629
4671
|
changesAlreadyApplied: {
|
|
4630
|
-
path: string;
|
|
4631
|
-
type: "patch" | "file";
|
|
4632
4672
|
content: string;
|
|
4673
|
+
type: "patch" | "file";
|
|
4674
|
+
path: string;
|
|
4633
4675
|
}[];
|
|
4634
4676
|
addedFileVersions: {
|
|
4635
|
-
path: string;
|
|
4636
4677
|
content: string;
|
|
4678
|
+
path: string;
|
|
4637
4679
|
}[];
|
|
4638
4680
|
resetFileVersions: boolean;
|
|
4639
4681
|
} | {
|
|
@@ -4645,52 +4687,57 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4645
4687
|
isUpToDate: boolean;
|
|
4646
4688
|
latestVersion: string;
|
|
4647
4689
|
} | {
|
|
4648
|
-
message: string;
|
|
4649
4690
|
type: "action-error";
|
|
4691
|
+
message: string;
|
|
4692
|
+
error?: string | undefined;
|
|
4693
|
+
remainingBalance?: number | undefined;
|
|
4650
4694
|
} | {
|
|
4651
4695
|
type: "commit-message-response";
|
|
4652
4696
|
commitMessage: string;
|
|
4653
4697
|
};
|
|
4654
|
-
}, {
|
|
4655
4698
|
type: "action";
|
|
4699
|
+
}, {
|
|
4656
4700
|
data: {
|
|
4657
4701
|
type: "usage-response";
|
|
4658
4702
|
usage: number;
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4703
|
+
remainingBalance: number;
|
|
4704
|
+
next_quota_reset: Date | null;
|
|
4705
|
+
nextMonthlyGrant: number;
|
|
4706
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4707
|
+
autoTopupAdded?: number | undefined;
|
|
4663
4708
|
} | {
|
|
4664
4709
|
type: "init-response";
|
|
4665
4710
|
usage: number;
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4711
|
+
remainingBalance: number;
|
|
4712
|
+
next_quota_reset: Date | null;
|
|
4713
|
+
nextMonthlyGrant: number;
|
|
4714
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4715
|
+
autoTopupAdded?: number | undefined;
|
|
4670
4716
|
} | {
|
|
4671
4717
|
type: "response-complete";
|
|
4672
4718
|
userInputId: string;
|
|
4673
4719
|
response: string;
|
|
4674
4720
|
changes: {
|
|
4675
|
-
path: string;
|
|
4676
|
-
type: "patch" | "file";
|
|
4677
4721
|
content: string;
|
|
4722
|
+
type: "patch" | "file";
|
|
4723
|
+
path: string;
|
|
4678
4724
|
}[];
|
|
4679
4725
|
changesAlreadyApplied: {
|
|
4680
|
-
path: string;
|
|
4681
|
-
type: "patch" | "file";
|
|
4682
4726
|
content: string;
|
|
4727
|
+
type: "patch" | "file";
|
|
4728
|
+
path: string;
|
|
4683
4729
|
}[];
|
|
4684
4730
|
addedFileVersions: {
|
|
4685
|
-
path: string;
|
|
4686
4731
|
content: string;
|
|
4732
|
+
path: string;
|
|
4687
4733
|
}[];
|
|
4688
4734
|
resetFileVersions: boolean;
|
|
4689
4735
|
usage?: number | undefined;
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
next_quota_reset?: Date | undefined;
|
|
4693
|
-
|
|
4736
|
+
remainingBalance?: number | undefined;
|
|
4737
|
+
balanceBreakdown?: Partial<Record<import("../types/grant").GrantType, number>> | undefined;
|
|
4738
|
+
next_quota_reset?: Date | null | undefined;
|
|
4739
|
+
nextMonthlyGrant?: number | undefined;
|
|
4740
|
+
autoTopupAdded?: number | undefined;
|
|
4694
4741
|
} | {
|
|
4695
4742
|
type: "message-cost-response";
|
|
4696
4743
|
promptId: string;
|
|
@@ -4723,14 +4770,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4723
4770
|
};
|
|
4724
4771
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4725
4772
|
fileVersions?: {
|
|
4726
|
-
path: string;
|
|
4727
4773
|
content: string;
|
|
4774
|
+
path: string;
|
|
4728
4775
|
}[][] | undefined;
|
|
4729
4776
|
};
|
|
4730
4777
|
messageHistory: {
|
|
4731
4778
|
content: string | ({
|
|
4732
|
-
type: "text";
|
|
4733
4779
|
text: string;
|
|
4780
|
+
type: "text";
|
|
4734
4781
|
cache_control?: {
|
|
4735
4782
|
type: "ephemeral";
|
|
4736
4783
|
} | undefined;
|
|
@@ -4743,8 +4790,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4743
4790
|
type: "ephemeral";
|
|
4744
4791
|
} | undefined;
|
|
4745
4792
|
} | {
|
|
4746
|
-
type: "tool_result";
|
|
4747
4793
|
content: string;
|
|
4794
|
+
type: "tool_result";
|
|
4748
4795
|
tool_use_id: string;
|
|
4749
4796
|
cache_control?: {
|
|
4750
4797
|
type: "ephemeral";
|
|
@@ -4752,9 +4799,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4752
4799
|
} | {
|
|
4753
4800
|
type: "image";
|
|
4754
4801
|
source: {
|
|
4802
|
+
data: string;
|
|
4755
4803
|
type: "base64";
|
|
4756
4804
|
media_type: "image/jpeg";
|
|
4757
|
-
data: string;
|
|
4758
4805
|
};
|
|
4759
4806
|
cache_control?: {
|
|
4760
4807
|
type: "ephemeral";
|
|
@@ -4771,8 +4818,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4771
4818
|
}[];
|
|
4772
4819
|
toolCalls: {
|
|
4773
4820
|
name: string;
|
|
4774
|
-
parameters: Record<string, string>;
|
|
4775
4821
|
id: string;
|
|
4822
|
+
parameters: Record<string, string>;
|
|
4776
4823
|
}[];
|
|
4777
4824
|
} | {
|
|
4778
4825
|
type: "response-chunk";
|
|
@@ -4783,27 +4830,27 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4783
4830
|
requestId: string;
|
|
4784
4831
|
filePaths: string[];
|
|
4785
4832
|
} | {
|
|
4786
|
-
type: "tool-call";
|
|
4787
4833
|
data: {
|
|
4788
4834
|
name: string;
|
|
4789
4835
|
id: string;
|
|
4790
4836
|
input: Record<string, any>;
|
|
4791
4837
|
};
|
|
4838
|
+
type: "tool-call";
|
|
4792
4839
|
userInputId: string;
|
|
4793
4840
|
response: string;
|
|
4794
4841
|
changes: {
|
|
4795
|
-
path: string;
|
|
4796
|
-
type: "patch" | "file";
|
|
4797
4842
|
content: string;
|
|
4843
|
+
type: "patch" | "file";
|
|
4844
|
+
path: string;
|
|
4798
4845
|
}[];
|
|
4799
4846
|
changesAlreadyApplied: {
|
|
4800
|
-
path: string;
|
|
4801
|
-
type: "patch" | "file";
|
|
4802
4847
|
content: string;
|
|
4848
|
+
type: "patch" | "file";
|
|
4849
|
+
path: string;
|
|
4803
4850
|
}[];
|
|
4804
4851
|
addedFileVersions: {
|
|
4805
|
-
path: string;
|
|
4806
4852
|
content: string;
|
|
4853
|
+
path: string;
|
|
4807
4854
|
}[];
|
|
4808
4855
|
resetFileVersions: boolean;
|
|
4809
4856
|
} | {
|
|
@@ -4815,12 +4862,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4815
4862
|
isUpToDate: boolean;
|
|
4816
4863
|
latestVersion: string;
|
|
4817
4864
|
} | {
|
|
4818
|
-
message: string;
|
|
4819
4865
|
type: "action-error";
|
|
4866
|
+
message: string;
|
|
4867
|
+
error?: string | undefined;
|
|
4868
|
+
remainingBalance?: number | undefined;
|
|
4820
4869
|
} | {
|
|
4821
4870
|
type: "commit-message-response";
|
|
4822
4871
|
commitMessage: string;
|
|
4823
4872
|
};
|
|
4873
|
+
type: "action";
|
|
4824
4874
|
}>]>;
|
|
4825
4875
|
export type ServerMessageType = keyof typeof SERVER_MESSAGE_SCHEMAS;
|
|
4826
4876
|
export type ServerMessage<T extends ServerMessageType = ServerMessageType> = z.infer<(typeof SERVER_MESSAGE_SCHEMAS)[T]>;
|