codebuff 1.0.290 → 1.0.292
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-handlers/checkpoint.d.ts +1 -1
- package/dist/cli-handlers/initialization-flow.d.ts +1 -0
- package/dist/cli-handlers/initialization-flow.js +24 -0
- package/dist/cli-handlers/initialization-flow.js.map +1 -0
- package/dist/cli-modules/command-processor.d.ts +2 -0
- package/dist/cli-modules/command-processor.js +112 -0
- package/dist/cli-modules/command-processor.js.map +1 -0
- package/dist/cli-modules/input-handler.d.ts +4 -0
- package/dist/cli-modules/input-handler.js +75 -0
- package/dist/cli-modules/input-handler.js.map +1 -0
- package/dist/cli-modules/readline-handler.d.ts +11 -0
- package/dist/cli-modules/readline-handler.js +158 -0
- package/dist/cli-modules/readline-handler.js.map +1 -0
- package/dist/cli-modules/signal-handler.d.ts +7 -0
- package/dist/cli-modules/signal-handler.js +128 -0
- package/dist/cli-modules/signal-handler.js.map +1 -0
- package/dist/cli-modules/types.d.ts +51 -0
- package/dist/cli-modules/types.js +3 -0
- package/dist/cli-modules/types.js.map +1 -0
- package/dist/cli-modules/websocket-handler.d.ts +16 -0
- package/dist/cli-modules/websocket-handler.js +53 -0
- package/dist/cli-modules/websocket-handler.js.map +1 -0
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts +12 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.d.ts.map +1 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.js +14 -0
- package/dist/code-map/__mocks__/tree-sitter-typescript.js.map +1 -0
- package/dist/code-map/__mocks__/wasm-mock.d.ts +2 -0
- package/dist/code-map/__mocks__/wasm-mock.d.ts.map +1 -0
- package/dist/code-map/__mocks__/wasm-mock.js +3 -0
- package/dist/code-map/__mocks__/wasm-mock.js.map +1 -0
- package/dist/code-map/__tests__/parse.test.d.ts +2 -0
- package/dist/code-map/__tests__/parse.test.d.ts.map +1 -0
- package/dist/code-map/__tests__/parse.test.js +231 -0
- package/dist/code-map/__tests__/parse.test.js.map +1 -0
- package/dist/code-map/__tests__/test-langs/consumer.d.ts +2 -0
- package/dist/code-map/__tests__/test-langs/consumer.d.ts.map +1 -0
- package/dist/code-map/__tests__/test-langs/consumer.js +6 -0
- package/dist/code-map/__tests__/test-langs/consumer.js.map +1 -0
- package/dist/code-map/__tests__/test-langs/empty.d.ts +1 -0
- package/dist/code-map/__tests__/test-langs/empty.d.ts.map +1 -0
- package/dist/code-map/__tests__/test-langs/empty.js +2 -0
- package/dist/code-map/__tests__/test-langs/empty.js.map +1 -0
- package/dist/code-map/__tests__/test-langs/test.d.ts +12 -0
- package/dist/code-map/__tests__/test-langs/test.d.ts.map +1 -0
- package/dist/code-map/__tests__/test-langs/test.js +23 -0
- package/dist/code-map/__tests__/test-langs/test.js.map +1 -0
- package/dist/code-map/__tests__/test-langs/unused.d.ts +2 -0
- package/dist/code-map/__tests__/test-langs/unused.d.ts.map +1 -0
- package/dist/code-map/__tests__/test-langs/unused.js +7 -0
- package/dist/code-map/__tests__/test-langs/unused.js.map +1 -0
- package/dist/code-map/__tests__/test-langs/utils1.d.ts +2 -0
- package/dist/code-map/__tests__/test-langs/utils1.d.ts.map +1 -0
- package/dist/code-map/__tests__/test-langs/utils1.js +7 -0
- package/dist/code-map/__tests__/test-langs/utils1.js.map +1 -0
- package/dist/code-map/__tests__/test-langs/utils2.d.ts +2 -0
- package/dist/code-map/__tests__/test-langs/utils2.d.ts.map +1 -0
- package/dist/code-map/__tests__/test-langs/utils2.js +8 -0
- package/dist/code-map/__tests__/test-langs/utils2.js.map +1 -0
- package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts +2 -0
- package/dist/code-map/__tests__/tree-sitter-minimal.test.d.ts.map +1 -0
- package/dist/code-map/__tests__/tree-sitter-minimal.test.js +79 -0
- package/dist/code-map/__tests__/tree-sitter-minimal.test.js.map +1 -0
- package/dist/code-map/jest.config.d.ts +4 -0
- package/dist/code-map/jest.config.d.ts.map +1 -0
- package/dist/code-map/jest.config.js +18 -0
- package/dist/code-map/jest.config.js.map +1 -0
- package/dist/code-map/parse.test.d.ts +2 -0
- package/dist/code-map/parse.test.d.ts.map +1 -0
- package/dist/code-map/parse.test.js +218 -0
- package/dist/code-map/parse.test.js.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.cjs +27 -0
- package/dist/code-map/scripts/tree-sitter-test.cjs.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.d.cts +2 -0
- package/dist/code-map/scripts/tree-sitter-test.d.cts.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.d.ts +2 -0
- package/dist/code-map/scripts/tree-sitter-test.d.ts.map +1 -0
- package/dist/code-map/scripts/tree-sitter-test.js +54 -0
- package/dist/code-map/scripts/tree-sitter-test.js.map +1 -0
- package/dist/code-map/test-parser.d.ts +2 -0
- package/dist/code-map/test-parser.d.ts.map +1 -0
- package/dist/code-map/test-parser.js +42 -0
- package/dist/code-map/test-parser.js.map +1 -0
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +144 -144
- package/dist/common/bigquery/client.d.ts +15 -0
- package/dist/common/bigquery/client.js +265 -0
- package/dist/common/bigquery/client.js.map +1 -0
- package/dist/common/bigquery/schema.d.ts +55 -0
- package/dist/common/bigquery/schema.js +24 -0
- package/dist/common/bigquery/schema.js.map +1 -0
- package/dist/common/constants/tools.d.ts +1 -1
- package/dist/common/constants/tools.js +1 -1
- package/dist/common/constants/tools.js.map +1 -1
- package/dist/common/constants.d.ts +6 -6
- package/dist/common/constants.js +1 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/types/agent-state.d.ts +12 -12
- package/dist/common/util/file-metadata.d.ts +9 -0
- package/dist/common/util/file-metadata.js +24 -0
- package/dist/common/util/file-metadata.js.map +1 -0
- package/dist/common/util/saxy.d.ts +1 -1
- package/dist/common/util/saxy.js +2 -2
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/util/string.d.ts +1 -0
- package/dist/common/util/string.js +9 -0
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +256 -256
- package/dist/index.js +4 -10
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/tool-renderers.js +4 -0
- package/dist/utils/tool-renderers.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/__tests__/project-file-tree.test.d.ts +0 -1
- package/dist/common/__tests__/project-file-tree.test.js +0 -251
- package/dist/common/__tests__/project-file-tree.test.js.map +0 -1
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +0 -119
- package/dist/common/util/process-stream.d.ts +0 -7
- package/dist/common/util/process-stream.js +0 -162
- package/dist/common/util/process-stream.js.map +0 -1
- package/dist/readline.d.ts +0 -22
- package/dist/readline.js +0 -180
- package/dist/readline.js.map +0 -1
- package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +0 -137
- package/dist/utils/__tests__/file-paths.test.d.ts +0 -1
- package/dist/utils/__tests__/file-paths.test.js +0 -37
- package/dist/utils/__tests__/file-paths.test.js.map +0 -1
- package/dist/utils/__tests__/path.test.d.ts +0 -1
- package/dist/utils/__tests__/path.test.js +0 -37
- package/dist/utils/__tests__/path.test.js.map +0 -1
- package/dist/utils/file-paths.d.ts +0 -9
- package/dist/utils/file-paths.js +0 -24
- package/dist/utils/file-paths.js.map +0 -1
- package/dist/utils/path.d.ts +0 -9
- package/dist/utils/path.js +0 -27
- package/dist/utils/path.js.map +0 -1
|
@@ -112,11 +112,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
112
112
|
path: z.ZodString;
|
|
113
113
|
content: z.ZodString;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
content: string;
|
|
116
115
|
path: string;
|
|
117
|
-
}, {
|
|
118
116
|
content: string;
|
|
117
|
+
}, {
|
|
119
118
|
path: string;
|
|
119
|
+
content: string;
|
|
120
120
|
}>, "many">, "many">>;
|
|
121
121
|
}, "strip", z.ZodTypeAny, {
|
|
122
122
|
currentWorkingDirectory: string;
|
|
@@ -142,8 +142,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
142
142
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
143
143
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
144
144
|
fileVersions?: {
|
|
145
|
-
content: string;
|
|
146
145
|
path: string;
|
|
146
|
+
content: string;
|
|
147
147
|
}[][] | undefined;
|
|
148
148
|
}, {
|
|
149
149
|
currentWorkingDirectory: string;
|
|
@@ -169,8 +169,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
169
169
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
170
170
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
171
171
|
fileVersions?: {
|
|
172
|
-
content: string;
|
|
173
172
|
path: string;
|
|
173
|
+
content: string;
|
|
174
174
|
}[][] | undefined;
|
|
175
175
|
}>;
|
|
176
176
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -186,14 +186,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
186
186
|
type: "ephemeral";
|
|
187
187
|
}>>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
|
-
text: string;
|
|
190
189
|
type: "text";
|
|
190
|
+
text: string;
|
|
191
191
|
cache_control?: {
|
|
192
192
|
type: "ephemeral";
|
|
193
193
|
} | undefined;
|
|
194
194
|
}, {
|
|
195
|
-
text: string;
|
|
196
195
|
type: "text";
|
|
196
|
+
text: string;
|
|
197
197
|
cache_control?: {
|
|
198
198
|
type: "ephemeral";
|
|
199
199
|
} | undefined;
|
|
@@ -210,16 +210,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
210
210
|
type: "ephemeral";
|
|
211
211
|
}>>;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
name: string;
|
|
214
213
|
type: "tool_use";
|
|
214
|
+
name: string;
|
|
215
215
|
id: string;
|
|
216
216
|
input: Record<string, any>;
|
|
217
217
|
cache_control?: {
|
|
218
218
|
type: "ephemeral";
|
|
219
219
|
} | undefined;
|
|
220
220
|
}, {
|
|
221
|
-
name: string;
|
|
222
221
|
type: "tool_use";
|
|
222
|
+
name: string;
|
|
223
223
|
id: string;
|
|
224
224
|
input: Record<string, any>;
|
|
225
225
|
cache_control?: {
|
|
@@ -237,15 +237,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
237
237
|
type: "ephemeral";
|
|
238
238
|
}>>;
|
|
239
239
|
}, "strip", z.ZodTypeAny, {
|
|
240
|
-
content: string;
|
|
241
240
|
type: "tool_result";
|
|
241
|
+
content: string;
|
|
242
242
|
tool_use_id: string;
|
|
243
243
|
cache_control?: {
|
|
244
244
|
type: "ephemeral";
|
|
245
245
|
} | undefined;
|
|
246
246
|
}, {
|
|
247
|
-
content: string;
|
|
248
247
|
type: "tool_result";
|
|
248
|
+
content: string;
|
|
249
249
|
tool_use_id: string;
|
|
250
250
|
cache_control?: {
|
|
251
251
|
type: "ephemeral";
|
|
@@ -295,22 +295,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
295
295
|
}>]>, "many">]>;
|
|
296
296
|
}, "strip", z.ZodTypeAny, {
|
|
297
297
|
content: string | ({
|
|
298
|
-
text: string;
|
|
299
298
|
type: "text";
|
|
299
|
+
text: string;
|
|
300
300
|
cache_control?: {
|
|
301
301
|
type: "ephemeral";
|
|
302
302
|
} | undefined;
|
|
303
303
|
} | {
|
|
304
|
-
name: string;
|
|
305
304
|
type: "tool_use";
|
|
305
|
+
name: string;
|
|
306
306
|
id: string;
|
|
307
307
|
input: Record<string, any>;
|
|
308
308
|
cache_control?: {
|
|
309
309
|
type: "ephemeral";
|
|
310
310
|
} | undefined;
|
|
311
311
|
} | {
|
|
312
|
-
content: string;
|
|
313
312
|
type: "tool_result";
|
|
313
|
+
content: string;
|
|
314
314
|
tool_use_id: string;
|
|
315
315
|
cache_control?: {
|
|
316
316
|
type: "ephemeral";
|
|
@@ -329,22 +329,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
329
329
|
role: "user" | "assistant";
|
|
330
330
|
}, {
|
|
331
331
|
content: string | ({
|
|
332
|
-
text: string;
|
|
333
332
|
type: "text";
|
|
333
|
+
text: string;
|
|
334
334
|
cache_control?: {
|
|
335
335
|
type: "ephemeral";
|
|
336
336
|
} | undefined;
|
|
337
337
|
} | {
|
|
338
|
-
name: string;
|
|
339
338
|
type: "tool_use";
|
|
339
|
+
name: string;
|
|
340
340
|
id: string;
|
|
341
341
|
input: Record<string, any>;
|
|
342
342
|
cache_control?: {
|
|
343
343
|
type: "ephemeral";
|
|
344
344
|
} | undefined;
|
|
345
345
|
} | {
|
|
346
|
-
content: string;
|
|
347
346
|
type: "tool_result";
|
|
347
|
+
content: string;
|
|
348
348
|
tool_use_id: string;
|
|
349
349
|
cache_control?: {
|
|
350
350
|
type: "ephemeral";
|
|
@@ -389,28 +389,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
389
389
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
390
390
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
391
391
|
fileVersions?: {
|
|
392
|
-
content: string;
|
|
393
392
|
path: string;
|
|
393
|
+
content: string;
|
|
394
394
|
}[][] | undefined;
|
|
395
395
|
};
|
|
396
396
|
messageHistory: {
|
|
397
397
|
content: string | ({
|
|
398
|
-
text: string;
|
|
399
398
|
type: "text";
|
|
399
|
+
text: string;
|
|
400
400
|
cache_control?: {
|
|
401
401
|
type: "ephemeral";
|
|
402
402
|
} | undefined;
|
|
403
403
|
} | {
|
|
404
|
-
name: string;
|
|
405
404
|
type: "tool_use";
|
|
405
|
+
name: string;
|
|
406
406
|
id: string;
|
|
407
407
|
input: Record<string, any>;
|
|
408
408
|
cache_control?: {
|
|
409
409
|
type: "ephemeral";
|
|
410
410
|
} | undefined;
|
|
411
411
|
} | {
|
|
412
|
-
content: string;
|
|
413
412
|
type: "tool_result";
|
|
413
|
+
content: string;
|
|
414
414
|
tool_use_id: string;
|
|
415
415
|
cache_control?: {
|
|
416
416
|
type: "ephemeral";
|
|
@@ -455,28 +455,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
455
455
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
456
456
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
457
457
|
fileVersions?: {
|
|
458
|
-
content: string;
|
|
459
458
|
path: string;
|
|
459
|
+
content: string;
|
|
460
460
|
}[][] | undefined;
|
|
461
461
|
};
|
|
462
462
|
messageHistory: {
|
|
463
463
|
content: string | ({
|
|
464
|
-
text: string;
|
|
465
464
|
type: "text";
|
|
465
|
+
text: string;
|
|
466
466
|
cache_control?: {
|
|
467
467
|
type: "ephemeral";
|
|
468
468
|
} | undefined;
|
|
469
469
|
} | {
|
|
470
|
-
name: string;
|
|
471
470
|
type: "tool_use";
|
|
471
|
+
name: string;
|
|
472
472
|
id: string;
|
|
473
473
|
input: Record<string, any>;
|
|
474
474
|
cache_control?: {
|
|
475
475
|
type: "ephemeral";
|
|
476
476
|
} | undefined;
|
|
477
477
|
} | {
|
|
478
|
-
content: string;
|
|
479
478
|
type: "tool_result";
|
|
479
|
+
content: string;
|
|
480
480
|
tool_use_id: string;
|
|
481
481
|
cache_control?: {
|
|
482
482
|
type: "ephemeral";
|
|
@@ -542,28 +542,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
542
542
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
543
543
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
544
544
|
fileVersions?: {
|
|
545
|
-
content: string;
|
|
546
545
|
path: string;
|
|
546
|
+
content: string;
|
|
547
547
|
}[][] | undefined;
|
|
548
548
|
};
|
|
549
549
|
messageHistory: {
|
|
550
550
|
content: string | ({
|
|
551
|
-
text: string;
|
|
552
551
|
type: "text";
|
|
552
|
+
text: string;
|
|
553
553
|
cache_control?: {
|
|
554
554
|
type: "ephemeral";
|
|
555
555
|
} | undefined;
|
|
556
556
|
} | {
|
|
557
|
-
name: string;
|
|
558
557
|
type: "tool_use";
|
|
558
|
+
name: string;
|
|
559
559
|
id: string;
|
|
560
560
|
input: Record<string, any>;
|
|
561
561
|
cache_control?: {
|
|
562
562
|
type: "ephemeral";
|
|
563
563
|
} | undefined;
|
|
564
564
|
} | {
|
|
565
|
-
content: string;
|
|
566
565
|
type: "tool_result";
|
|
566
|
+
content: string;
|
|
567
567
|
tool_use_id: string;
|
|
568
568
|
cache_control?: {
|
|
569
569
|
type: "ephemeral";
|
|
@@ -622,28 +622,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
622
622
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
623
623
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
624
624
|
fileVersions?: {
|
|
625
|
-
content: string;
|
|
626
625
|
path: string;
|
|
626
|
+
content: string;
|
|
627
627
|
}[][] | undefined;
|
|
628
628
|
};
|
|
629
629
|
messageHistory: {
|
|
630
630
|
content: string | ({
|
|
631
|
-
text: string;
|
|
632
631
|
type: "text";
|
|
632
|
+
text: string;
|
|
633
633
|
cache_control?: {
|
|
634
634
|
type: "ephemeral";
|
|
635
635
|
} | undefined;
|
|
636
636
|
} | {
|
|
637
|
-
name: string;
|
|
638
637
|
type: "tool_use";
|
|
638
|
+
name: string;
|
|
639
639
|
id: string;
|
|
640
640
|
input: Record<string, any>;
|
|
641
641
|
cache_control?: {
|
|
642
642
|
type: "ephemeral";
|
|
643
643
|
} | undefined;
|
|
644
644
|
} | {
|
|
645
|
-
content: string;
|
|
646
645
|
type: "tool_result";
|
|
646
|
+
content: string;
|
|
647
647
|
tool_use_id: string;
|
|
648
648
|
cache_control?: {
|
|
649
649
|
type: "ephemeral";
|
|
@@ -740,11 +740,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
740
740
|
path: z.ZodString;
|
|
741
741
|
content: z.ZodString;
|
|
742
742
|
}, "strip", z.ZodTypeAny, {
|
|
743
|
-
content: string;
|
|
744
743
|
path: string;
|
|
745
|
-
}, {
|
|
746
744
|
content: string;
|
|
745
|
+
}, {
|
|
747
746
|
path: string;
|
|
747
|
+
content: string;
|
|
748
748
|
}>, "many">, "many">>;
|
|
749
749
|
}, "strip", z.ZodTypeAny, {
|
|
750
750
|
currentWorkingDirectory: string;
|
|
@@ -770,8 +770,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
770
770
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
771
771
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
772
772
|
fileVersions?: {
|
|
773
|
-
content: string;
|
|
774
773
|
path: string;
|
|
774
|
+
content: string;
|
|
775
775
|
}[][] | undefined;
|
|
776
776
|
}, {
|
|
777
777
|
currentWorkingDirectory: string;
|
|
@@ -797,8 +797,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
797
797
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
798
798
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
799
799
|
fileVersions?: {
|
|
800
|
-
content: string;
|
|
801
800
|
path: string;
|
|
801
|
+
content: string;
|
|
802
802
|
}[][] | undefined;
|
|
803
803
|
}>;
|
|
804
804
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -828,8 +828,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
828
828
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
829
829
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
830
830
|
fileVersions?: {
|
|
831
|
-
content: string;
|
|
832
831
|
path: string;
|
|
832
|
+
content: string;
|
|
833
833
|
}[][] | undefined;
|
|
834
834
|
};
|
|
835
835
|
authToken?: string | undefined;
|
|
@@ -860,8 +860,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
860
860
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
861
861
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
862
862
|
fileVersions?: {
|
|
863
|
-
content: string;
|
|
864
863
|
path: string;
|
|
864
|
+
content: string;
|
|
865
865
|
}[][] | undefined;
|
|
866
866
|
};
|
|
867
867
|
authToken?: string | undefined;
|
|
@@ -914,28 +914,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
914
914
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
915
915
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
916
916
|
fileVersions?: {
|
|
917
|
-
content: string;
|
|
918
917
|
path: string;
|
|
918
|
+
content: string;
|
|
919
919
|
}[][] | undefined;
|
|
920
920
|
};
|
|
921
921
|
messageHistory: {
|
|
922
922
|
content: string | ({
|
|
923
|
-
text: string;
|
|
924
923
|
type: "text";
|
|
924
|
+
text: string;
|
|
925
925
|
cache_control?: {
|
|
926
926
|
type: "ephemeral";
|
|
927
927
|
} | undefined;
|
|
928
928
|
} | {
|
|
929
|
-
name: string;
|
|
930
929
|
type: "tool_use";
|
|
930
|
+
name: string;
|
|
931
931
|
id: string;
|
|
932
932
|
input: Record<string, any>;
|
|
933
933
|
cache_control?: {
|
|
934
934
|
type: "ephemeral";
|
|
935
935
|
} | undefined;
|
|
936
936
|
} | {
|
|
937
|
-
content: string;
|
|
938
937
|
type: "tool_result";
|
|
938
|
+
content: string;
|
|
939
939
|
tool_use_id: string;
|
|
940
940
|
cache_control?: {
|
|
941
941
|
type: "ephemeral";
|
|
@@ -995,8 +995,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
995
995
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
996
996
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
997
997
|
fileVersions?: {
|
|
998
|
-
content: string;
|
|
999
998
|
path: string;
|
|
999
|
+
content: string;
|
|
1000
1000
|
}[][] | undefined;
|
|
1001
1001
|
};
|
|
1002
1002
|
authToken?: string | undefined;
|
|
@@ -1039,28 +1039,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1039
1039
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1040
1040
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1041
1041
|
fileVersions?: {
|
|
1042
|
-
content: string;
|
|
1043
1042
|
path: string;
|
|
1043
|
+
content: string;
|
|
1044
1044
|
}[][] | undefined;
|
|
1045
1045
|
};
|
|
1046
1046
|
messageHistory: {
|
|
1047
1047
|
content: string | ({
|
|
1048
|
-
text: string;
|
|
1049
1048
|
type: "text";
|
|
1049
|
+
text: string;
|
|
1050
1050
|
cache_control?: {
|
|
1051
1051
|
type: "ephemeral";
|
|
1052
1052
|
} | undefined;
|
|
1053
1053
|
} | {
|
|
1054
|
-
name: string;
|
|
1055
1054
|
type: "tool_use";
|
|
1055
|
+
name: string;
|
|
1056
1056
|
id: string;
|
|
1057
1057
|
input: Record<string, any>;
|
|
1058
1058
|
cache_control?: {
|
|
1059
1059
|
type: "ephemeral";
|
|
1060
1060
|
} | undefined;
|
|
1061
1061
|
} | {
|
|
1062
|
-
content: string;
|
|
1063
1062
|
type: "tool_result";
|
|
1063
|
+
content: string;
|
|
1064
1064
|
tool_use_id: string;
|
|
1065
1065
|
cache_control?: {
|
|
1066
1066
|
type: "ephemeral";
|
|
@@ -1121,8 +1121,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1121
1121
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1122
1122
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1123
1123
|
fileVersions?: {
|
|
1124
|
-
content: string;
|
|
1125
1124
|
path: string;
|
|
1125
|
+
content: string;
|
|
1126
1126
|
}[][] | undefined;
|
|
1127
1127
|
};
|
|
1128
1128
|
authToken?: string | undefined;
|
|
@@ -1243,11 +1243,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1243
1243
|
path: z.ZodString;
|
|
1244
1244
|
content: z.ZodString;
|
|
1245
1245
|
}, "strip", z.ZodTypeAny, {
|
|
1246
|
-
content: string;
|
|
1247
1246
|
path: string;
|
|
1248
|
-
}, {
|
|
1249
1247
|
content: string;
|
|
1248
|
+
}, {
|
|
1250
1249
|
path: string;
|
|
1250
|
+
content: string;
|
|
1251
1251
|
}>, "many">, "many">>;
|
|
1252
1252
|
}, "strip", z.ZodTypeAny, {
|
|
1253
1253
|
currentWorkingDirectory: string;
|
|
@@ -1273,8 +1273,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1273
1273
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1274
1274
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1275
1275
|
fileVersions?: {
|
|
1276
|
-
content: string;
|
|
1277
1276
|
path: string;
|
|
1277
|
+
content: string;
|
|
1278
1278
|
}[][] | undefined;
|
|
1279
1279
|
}, {
|
|
1280
1280
|
currentWorkingDirectory: string;
|
|
@@ -1300,8 +1300,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1300
1300
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1301
1301
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1302
1302
|
fileVersions?: {
|
|
1303
|
-
content: string;
|
|
1304
1303
|
path: string;
|
|
1304
|
+
content: string;
|
|
1305
1305
|
}[][] | undefined;
|
|
1306
1306
|
}>;
|
|
1307
1307
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -1317,14 +1317,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1317
1317
|
type: "ephemeral";
|
|
1318
1318
|
}>>;
|
|
1319
1319
|
}, "strip", z.ZodTypeAny, {
|
|
1320
|
-
text: string;
|
|
1321
1320
|
type: "text";
|
|
1321
|
+
text: string;
|
|
1322
1322
|
cache_control?: {
|
|
1323
1323
|
type: "ephemeral";
|
|
1324
1324
|
} | undefined;
|
|
1325
1325
|
}, {
|
|
1326
|
-
text: string;
|
|
1327
1326
|
type: "text";
|
|
1327
|
+
text: string;
|
|
1328
1328
|
cache_control?: {
|
|
1329
1329
|
type: "ephemeral";
|
|
1330
1330
|
} | undefined;
|
|
@@ -1341,16 +1341,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1341
1341
|
type: "ephemeral";
|
|
1342
1342
|
}>>;
|
|
1343
1343
|
}, "strip", z.ZodTypeAny, {
|
|
1344
|
-
name: string;
|
|
1345
1344
|
type: "tool_use";
|
|
1345
|
+
name: string;
|
|
1346
1346
|
id: string;
|
|
1347
1347
|
input: Record<string, any>;
|
|
1348
1348
|
cache_control?: {
|
|
1349
1349
|
type: "ephemeral";
|
|
1350
1350
|
} | undefined;
|
|
1351
1351
|
}, {
|
|
1352
|
-
name: string;
|
|
1353
1352
|
type: "tool_use";
|
|
1353
|
+
name: string;
|
|
1354
1354
|
id: string;
|
|
1355
1355
|
input: Record<string, any>;
|
|
1356
1356
|
cache_control?: {
|
|
@@ -1368,15 +1368,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1368
1368
|
type: "ephemeral";
|
|
1369
1369
|
}>>;
|
|
1370
1370
|
}, "strip", z.ZodTypeAny, {
|
|
1371
|
-
content: string;
|
|
1372
1371
|
type: "tool_result";
|
|
1372
|
+
content: string;
|
|
1373
1373
|
tool_use_id: string;
|
|
1374
1374
|
cache_control?: {
|
|
1375
1375
|
type: "ephemeral";
|
|
1376
1376
|
} | undefined;
|
|
1377
1377
|
}, {
|
|
1378
|
-
content: string;
|
|
1379
1378
|
type: "tool_result";
|
|
1379
|
+
content: string;
|
|
1380
1380
|
tool_use_id: string;
|
|
1381
1381
|
cache_control?: {
|
|
1382
1382
|
type: "ephemeral";
|
|
@@ -1426,22 +1426,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1426
1426
|
}>]>, "many">]>;
|
|
1427
1427
|
}, "strip", z.ZodTypeAny, {
|
|
1428
1428
|
content: string | ({
|
|
1429
|
-
text: string;
|
|
1430
1429
|
type: "text";
|
|
1430
|
+
text: string;
|
|
1431
1431
|
cache_control?: {
|
|
1432
1432
|
type: "ephemeral";
|
|
1433
1433
|
} | undefined;
|
|
1434
1434
|
} | {
|
|
1435
|
-
name: string;
|
|
1436
1435
|
type: "tool_use";
|
|
1436
|
+
name: string;
|
|
1437
1437
|
id: string;
|
|
1438
1438
|
input: Record<string, any>;
|
|
1439
1439
|
cache_control?: {
|
|
1440
1440
|
type: "ephemeral";
|
|
1441
1441
|
} | undefined;
|
|
1442
1442
|
} | {
|
|
1443
|
-
content: string;
|
|
1444
1443
|
type: "tool_result";
|
|
1444
|
+
content: string;
|
|
1445
1445
|
tool_use_id: string;
|
|
1446
1446
|
cache_control?: {
|
|
1447
1447
|
type: "ephemeral";
|
|
@@ -1460,22 +1460,22 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1460
1460
|
role: "user" | "assistant";
|
|
1461
1461
|
}, {
|
|
1462
1462
|
content: string | ({
|
|
1463
|
-
text: string;
|
|
1464
1463
|
type: "text";
|
|
1464
|
+
text: string;
|
|
1465
1465
|
cache_control?: {
|
|
1466
1466
|
type: "ephemeral";
|
|
1467
1467
|
} | undefined;
|
|
1468
1468
|
} | {
|
|
1469
|
-
name: string;
|
|
1470
1469
|
type: "tool_use";
|
|
1470
|
+
name: string;
|
|
1471
1471
|
id: string;
|
|
1472
1472
|
input: Record<string, any>;
|
|
1473
1473
|
cache_control?: {
|
|
1474
1474
|
type: "ephemeral";
|
|
1475
1475
|
} | undefined;
|
|
1476
1476
|
} | {
|
|
1477
|
-
content: string;
|
|
1478
1477
|
type: "tool_result";
|
|
1478
|
+
content: string;
|
|
1479
1479
|
tool_use_id: string;
|
|
1480
1480
|
cache_control?: {
|
|
1481
1481
|
type: "ephemeral";
|
|
@@ -1520,28 +1520,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1520
1520
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1521
1521
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1522
1522
|
fileVersions?: {
|
|
1523
|
-
content: string;
|
|
1524
1523
|
path: string;
|
|
1524
|
+
content: string;
|
|
1525
1525
|
}[][] | undefined;
|
|
1526
1526
|
};
|
|
1527
1527
|
messageHistory: {
|
|
1528
1528
|
content: string | ({
|
|
1529
|
-
text: string;
|
|
1530
1529
|
type: "text";
|
|
1530
|
+
text: string;
|
|
1531
1531
|
cache_control?: {
|
|
1532
1532
|
type: "ephemeral";
|
|
1533
1533
|
} | undefined;
|
|
1534
1534
|
} | {
|
|
1535
|
-
name: string;
|
|
1536
1535
|
type: "tool_use";
|
|
1536
|
+
name: string;
|
|
1537
1537
|
id: string;
|
|
1538
1538
|
input: Record<string, any>;
|
|
1539
1539
|
cache_control?: {
|
|
1540
1540
|
type: "ephemeral";
|
|
1541
1541
|
} | undefined;
|
|
1542
1542
|
} | {
|
|
1543
|
-
content: string;
|
|
1544
1543
|
type: "tool_result";
|
|
1544
|
+
content: string;
|
|
1545
1545
|
tool_use_id: string;
|
|
1546
1546
|
cache_control?: {
|
|
1547
1547
|
type: "ephemeral";
|
|
@@ -1586,28 +1586,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1586
1586
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1587
1587
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1588
1588
|
fileVersions?: {
|
|
1589
|
-
content: string;
|
|
1590
1589
|
path: string;
|
|
1590
|
+
content: string;
|
|
1591
1591
|
}[][] | undefined;
|
|
1592
1592
|
};
|
|
1593
1593
|
messageHistory: {
|
|
1594
1594
|
content: string | ({
|
|
1595
|
-
text: string;
|
|
1596
1595
|
type: "text";
|
|
1596
|
+
text: string;
|
|
1597
1597
|
cache_control?: {
|
|
1598
1598
|
type: "ephemeral";
|
|
1599
1599
|
} | undefined;
|
|
1600
1600
|
} | {
|
|
1601
|
-
name: string;
|
|
1602
1601
|
type: "tool_use";
|
|
1602
|
+
name: string;
|
|
1603
1603
|
id: string;
|
|
1604
1604
|
input: Record<string, any>;
|
|
1605
1605
|
cache_control?: {
|
|
1606
1606
|
type: "ephemeral";
|
|
1607
1607
|
} | undefined;
|
|
1608
1608
|
} | {
|
|
1609
|
-
content: string;
|
|
1610
1609
|
type: "tool_result";
|
|
1610
|
+
content: string;
|
|
1611
1611
|
tool_use_id: string;
|
|
1612
1612
|
cache_control?: {
|
|
1613
1613
|
type: "ephemeral";
|
|
@@ -1673,28 +1673,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1673
1673
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1674
1674
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1675
1675
|
fileVersions?: {
|
|
1676
|
-
content: string;
|
|
1677
1676
|
path: string;
|
|
1677
|
+
content: string;
|
|
1678
1678
|
}[][] | undefined;
|
|
1679
1679
|
};
|
|
1680
1680
|
messageHistory: {
|
|
1681
1681
|
content: string | ({
|
|
1682
|
-
text: string;
|
|
1683
1682
|
type: "text";
|
|
1683
|
+
text: string;
|
|
1684
1684
|
cache_control?: {
|
|
1685
1685
|
type: "ephemeral";
|
|
1686
1686
|
} | undefined;
|
|
1687
1687
|
} | {
|
|
1688
|
-
name: string;
|
|
1689
1688
|
type: "tool_use";
|
|
1689
|
+
name: string;
|
|
1690
1690
|
id: string;
|
|
1691
1691
|
input: Record<string, any>;
|
|
1692
1692
|
cache_control?: {
|
|
1693
1693
|
type: "ephemeral";
|
|
1694
1694
|
} | undefined;
|
|
1695
1695
|
} | {
|
|
1696
|
-
content: string;
|
|
1697
1696
|
type: "tool_result";
|
|
1697
|
+
content: string;
|
|
1698
1698
|
tool_use_id: string;
|
|
1699
1699
|
cache_control?: {
|
|
1700
1700
|
type: "ephemeral";
|
|
@@ -1753,28 +1753,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1753
1753
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1754
1754
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1755
1755
|
fileVersions?: {
|
|
1756
|
-
content: string;
|
|
1757
1756
|
path: string;
|
|
1757
|
+
content: string;
|
|
1758
1758
|
}[][] | undefined;
|
|
1759
1759
|
};
|
|
1760
1760
|
messageHistory: {
|
|
1761
1761
|
content: string | ({
|
|
1762
|
-
text: string;
|
|
1763
1762
|
type: "text";
|
|
1763
|
+
text: string;
|
|
1764
1764
|
cache_control?: {
|
|
1765
1765
|
type: "ephemeral";
|
|
1766
1766
|
} | undefined;
|
|
1767
1767
|
} | {
|
|
1768
|
-
name: string;
|
|
1769
1768
|
type: "tool_use";
|
|
1769
|
+
name: string;
|
|
1770
1770
|
id: string;
|
|
1771
1771
|
input: Record<string, any>;
|
|
1772
1772
|
cache_control?: {
|
|
1773
1773
|
type: "ephemeral";
|
|
1774
1774
|
} | undefined;
|
|
1775
1775
|
} | {
|
|
1776
|
-
content: string;
|
|
1777
1776
|
type: "tool_result";
|
|
1777
|
+
content: string;
|
|
1778
1778
|
tool_use_id: string;
|
|
1779
1779
|
cache_control?: {
|
|
1780
1780
|
type: "ephemeral";
|
|
@@ -1871,11 +1871,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1871
1871
|
path: z.ZodString;
|
|
1872
1872
|
content: z.ZodString;
|
|
1873
1873
|
}, "strip", z.ZodTypeAny, {
|
|
1874
|
-
content: string;
|
|
1875
1874
|
path: string;
|
|
1876
|
-
}, {
|
|
1877
1875
|
content: string;
|
|
1876
|
+
}, {
|
|
1878
1877
|
path: string;
|
|
1878
|
+
content: string;
|
|
1879
1879
|
}>, "many">, "many">>;
|
|
1880
1880
|
}, "strip", z.ZodTypeAny, {
|
|
1881
1881
|
currentWorkingDirectory: string;
|
|
@@ -1901,8 +1901,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1901
1901
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1902
1902
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1903
1903
|
fileVersions?: {
|
|
1904
|
-
content: string;
|
|
1905
1904
|
path: string;
|
|
1905
|
+
content: string;
|
|
1906
1906
|
}[][] | undefined;
|
|
1907
1907
|
}, {
|
|
1908
1908
|
currentWorkingDirectory: string;
|
|
@@ -1928,8 +1928,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1928
1928
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1929
1929
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1930
1930
|
fileVersions?: {
|
|
1931
|
-
content: string;
|
|
1932
1931
|
path: string;
|
|
1932
|
+
content: string;
|
|
1933
1933
|
}[][] | undefined;
|
|
1934
1934
|
}>;
|
|
1935
1935
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1959,8 +1959,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1959
1959
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1960
1960
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1961
1961
|
fileVersions?: {
|
|
1962
|
-
content: string;
|
|
1963
1962
|
path: string;
|
|
1963
|
+
content: string;
|
|
1964
1964
|
}[][] | undefined;
|
|
1965
1965
|
};
|
|
1966
1966
|
authToken?: string | undefined;
|
|
@@ -1991,8 +1991,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1991
1991
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
1992
1992
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1993
1993
|
fileVersions?: {
|
|
1994
|
-
content: string;
|
|
1995
1994
|
path: string;
|
|
1995
|
+
content: string;
|
|
1996
1996
|
}[][] | undefined;
|
|
1997
1997
|
};
|
|
1998
1998
|
authToken?: string | undefined;
|
|
@@ -2045,28 +2045,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2045
2045
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2046
2046
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2047
2047
|
fileVersions?: {
|
|
2048
|
-
content: string;
|
|
2049
2048
|
path: string;
|
|
2049
|
+
content: string;
|
|
2050
2050
|
}[][] | undefined;
|
|
2051
2051
|
};
|
|
2052
2052
|
messageHistory: {
|
|
2053
2053
|
content: string | ({
|
|
2054
|
-
text: string;
|
|
2055
2054
|
type: "text";
|
|
2055
|
+
text: string;
|
|
2056
2056
|
cache_control?: {
|
|
2057
2057
|
type: "ephemeral";
|
|
2058
2058
|
} | undefined;
|
|
2059
2059
|
} | {
|
|
2060
|
-
name: string;
|
|
2061
2060
|
type: "tool_use";
|
|
2061
|
+
name: string;
|
|
2062
2062
|
id: string;
|
|
2063
2063
|
input: Record<string, any>;
|
|
2064
2064
|
cache_control?: {
|
|
2065
2065
|
type: "ephemeral";
|
|
2066
2066
|
} | undefined;
|
|
2067
2067
|
} | {
|
|
2068
|
-
content: string;
|
|
2069
2068
|
type: "tool_result";
|
|
2069
|
+
content: string;
|
|
2070
2070
|
tool_use_id: string;
|
|
2071
2071
|
cache_control?: {
|
|
2072
2072
|
type: "ephemeral";
|
|
@@ -2126,8 +2126,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2126
2126
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2127
2127
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2128
2128
|
fileVersions?: {
|
|
2129
|
-
content: string;
|
|
2130
2129
|
path: string;
|
|
2130
|
+
content: string;
|
|
2131
2131
|
}[][] | undefined;
|
|
2132
2132
|
};
|
|
2133
2133
|
authToken?: string | undefined;
|
|
@@ -2170,28 +2170,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2170
2170
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2171
2171
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2172
2172
|
fileVersions?: {
|
|
2173
|
-
content: string;
|
|
2174
2173
|
path: string;
|
|
2174
|
+
content: string;
|
|
2175
2175
|
}[][] | undefined;
|
|
2176
2176
|
};
|
|
2177
2177
|
messageHistory: {
|
|
2178
2178
|
content: string | ({
|
|
2179
|
-
text: string;
|
|
2180
2179
|
type: "text";
|
|
2180
|
+
text: string;
|
|
2181
2181
|
cache_control?: {
|
|
2182
2182
|
type: "ephemeral";
|
|
2183
2183
|
} | undefined;
|
|
2184
2184
|
} | {
|
|
2185
|
-
name: string;
|
|
2186
2185
|
type: "tool_use";
|
|
2186
|
+
name: string;
|
|
2187
2187
|
id: string;
|
|
2188
2188
|
input: Record<string, any>;
|
|
2189
2189
|
cache_control?: {
|
|
2190
2190
|
type: "ephemeral";
|
|
2191
2191
|
} | undefined;
|
|
2192
2192
|
} | {
|
|
2193
|
-
content: string;
|
|
2194
2193
|
type: "tool_result";
|
|
2194
|
+
content: string;
|
|
2195
2195
|
tool_use_id: string;
|
|
2196
2196
|
cache_control?: {
|
|
2197
2197
|
type: "ephemeral";
|
|
@@ -2252,8 +2252,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2252
2252
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2253
2253
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2254
2254
|
fileVersions?: {
|
|
2255
|
-
content: string;
|
|
2256
2255
|
path: string;
|
|
2256
|
+
content: string;
|
|
2257
2257
|
}[][] | undefined;
|
|
2258
2258
|
};
|
|
2259
2259
|
authToken?: string | undefined;
|
|
@@ -2307,36 +2307,36 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2307
2307
|
path: z.ZodString;
|
|
2308
2308
|
content: z.ZodString;
|
|
2309
2309
|
}, "strip", z.ZodTypeAny, {
|
|
2310
|
-
content: string;
|
|
2311
2310
|
type: "patch" | "file";
|
|
2312
2311
|
path: string;
|
|
2313
|
-
}, {
|
|
2314
2312
|
content: string;
|
|
2313
|
+
}, {
|
|
2315
2314
|
type: "patch" | "file";
|
|
2316
2315
|
path: string;
|
|
2316
|
+
content: string;
|
|
2317
2317
|
}>, "many">;
|
|
2318
2318
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2319
2319
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2320
2320
|
path: z.ZodString;
|
|
2321
2321
|
content: z.ZodString;
|
|
2322
2322
|
}, "strip", z.ZodTypeAny, {
|
|
2323
|
-
content: string;
|
|
2324
2323
|
type: "patch" | "file";
|
|
2325
2324
|
path: string;
|
|
2326
|
-
}, {
|
|
2327
2325
|
content: string;
|
|
2326
|
+
}, {
|
|
2328
2327
|
type: "patch" | "file";
|
|
2329
2328
|
path: string;
|
|
2329
|
+
content: string;
|
|
2330
2330
|
}>, "many">;
|
|
2331
2331
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2332
2332
|
path: z.ZodString;
|
|
2333
2333
|
content: z.ZodString;
|
|
2334
2334
|
}, "strip", z.ZodTypeAny, {
|
|
2335
|
-
content: string;
|
|
2336
2335
|
path: string;
|
|
2337
|
-
}, {
|
|
2338
2336
|
content: string;
|
|
2337
|
+
}, {
|
|
2339
2338
|
path: string;
|
|
2339
|
+
content: string;
|
|
2340
2340
|
}>, "many">;
|
|
2341
2341
|
resetFileVersions: z.ZodBoolean;
|
|
2342
2342
|
}, {
|
|
@@ -2350,18 +2350,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2350
2350
|
userInputId: string;
|
|
2351
2351
|
response: string;
|
|
2352
2352
|
changes: {
|
|
2353
|
-
content: string;
|
|
2354
2353
|
type: "patch" | "file";
|
|
2355
2354
|
path: string;
|
|
2355
|
+
content: string;
|
|
2356
2356
|
}[];
|
|
2357
2357
|
changesAlreadyApplied: {
|
|
2358
|
-
content: string;
|
|
2359
2358
|
type: "patch" | "file";
|
|
2360
2359
|
path: string;
|
|
2360
|
+
content: string;
|
|
2361
2361
|
}[];
|
|
2362
2362
|
addedFileVersions: {
|
|
2363
|
-
content: string;
|
|
2364
2363
|
path: string;
|
|
2364
|
+
content: string;
|
|
2365
2365
|
}[];
|
|
2366
2366
|
resetFileVersions: boolean;
|
|
2367
2367
|
usage?: number | undefined;
|
|
@@ -2374,18 +2374,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2374
2374
|
userInputId: string;
|
|
2375
2375
|
response: string;
|
|
2376
2376
|
changes: {
|
|
2377
|
-
content: string;
|
|
2378
2377
|
type: "patch" | "file";
|
|
2379
2378
|
path: string;
|
|
2379
|
+
content: string;
|
|
2380
2380
|
}[];
|
|
2381
2381
|
changesAlreadyApplied: {
|
|
2382
|
-
content: string;
|
|
2383
2382
|
type: "patch" | "file";
|
|
2384
2383
|
path: string;
|
|
2384
|
+
content: string;
|
|
2385
2385
|
}[];
|
|
2386
2386
|
addedFileVersions: {
|
|
2387
|
-
content: string;
|
|
2388
2387
|
path: string;
|
|
2388
|
+
content: string;
|
|
2389
2389
|
}[];
|
|
2390
2390
|
resetFileVersions: boolean;
|
|
2391
2391
|
usage?: number | undefined;
|
|
@@ -2449,11 +2449,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2449
2449
|
path: z.ZodString;
|
|
2450
2450
|
content: z.ZodString;
|
|
2451
2451
|
}, "strip", z.ZodTypeAny, {
|
|
2452
|
-
content: string;
|
|
2453
2452
|
path: string;
|
|
2454
|
-
}, {
|
|
2455
2453
|
content: string;
|
|
2454
|
+
}, {
|
|
2456
2455
|
path: string;
|
|
2456
|
+
content: string;
|
|
2457
2457
|
}>, "many">, "many">>;
|
|
2458
2458
|
}, "strip", z.ZodTypeAny, {
|
|
2459
2459
|
currentWorkingDirectory: string;
|
|
@@ -2479,8 +2479,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2479
2479
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2480
2480
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2481
2481
|
fileVersions?: {
|
|
2482
|
-
content: string;
|
|
2483
2482
|
path: string;
|
|
2483
|
+
content: string;
|
|
2484
2484
|
}[][] | undefined;
|
|
2485
2485
|
}, {
|
|
2486
2486
|
currentWorkingDirectory: string;
|
|
@@ -2506,8 +2506,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2506
2506
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2507
2507
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2508
2508
|
fileVersions?: {
|
|
2509
|
-
content: string;
|
|
2510
2509
|
path: string;
|
|
2510
|
+
content: string;
|
|
2511
2511
|
}[][] | undefined;
|
|
2512
2512
|
}>;
|
|
2513
2513
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -2523,14 +2523,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2523
2523
|
type: "ephemeral";
|
|
2524
2524
|
}>>;
|
|
2525
2525
|
}, "strip", z.ZodTypeAny, {
|
|
2526
|
-
text: string;
|
|
2527
2526
|
type: "text";
|
|
2527
|
+
text: string;
|
|
2528
2528
|
cache_control?: {
|
|
2529
2529
|
type: "ephemeral";
|
|
2530
2530
|
} | undefined;
|
|
2531
2531
|
}, {
|
|
2532
|
-
text: string;
|
|
2533
2532
|
type: "text";
|
|
2533
|
+
text: string;
|
|
2534
2534
|
cache_control?: {
|
|
2535
2535
|
type: "ephemeral";
|
|
2536
2536
|
} | undefined;
|
|
@@ -2547,16 +2547,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2547
2547
|
type: "ephemeral";
|
|
2548
2548
|
}>>;
|
|
2549
2549
|
}, "strip", z.ZodTypeAny, {
|
|
2550
|
-
name: string;
|
|
2551
2550
|
type: "tool_use";
|
|
2551
|
+
name: string;
|
|
2552
2552
|
id: string;
|
|
2553
2553
|
input: Record<string, any>;
|
|
2554
2554
|
cache_control?: {
|
|
2555
2555
|
type: "ephemeral";
|
|
2556
2556
|
} | undefined;
|
|
2557
2557
|
}, {
|
|
2558
|
-
name: string;
|
|
2559
2558
|
type: "tool_use";
|
|
2559
|
+
name: string;
|
|
2560
2560
|
id: string;
|
|
2561
2561
|
input: Record<string, any>;
|
|
2562
2562
|
cache_control?: {
|
|
@@ -2574,15 +2574,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2574
2574
|
type: "ephemeral";
|
|
2575
2575
|
}>>;
|
|
2576
2576
|
}, "strip", z.ZodTypeAny, {
|
|
2577
|
-
content: string;
|
|
2578
2577
|
type: "tool_result";
|
|
2578
|
+
content: string;
|
|
2579
2579
|
tool_use_id: string;
|
|
2580
2580
|
cache_control?: {
|
|
2581
2581
|
type: "ephemeral";
|
|
2582
2582
|
} | undefined;
|
|
2583
2583
|
}, {
|
|
2584
|
-
content: string;
|
|
2585
2584
|
type: "tool_result";
|
|
2585
|
+
content: string;
|
|
2586
2586
|
tool_use_id: string;
|
|
2587
2587
|
cache_control?: {
|
|
2588
2588
|
type: "ephemeral";
|
|
@@ -2632,22 +2632,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2632
2632
|
}>]>, "many">]>;
|
|
2633
2633
|
}, "strip", z.ZodTypeAny, {
|
|
2634
2634
|
content: string | ({
|
|
2635
|
-
text: string;
|
|
2636
2635
|
type: "text";
|
|
2636
|
+
text: string;
|
|
2637
2637
|
cache_control?: {
|
|
2638
2638
|
type: "ephemeral";
|
|
2639
2639
|
} | undefined;
|
|
2640
2640
|
} | {
|
|
2641
|
-
name: string;
|
|
2642
2641
|
type: "tool_use";
|
|
2642
|
+
name: string;
|
|
2643
2643
|
id: string;
|
|
2644
2644
|
input: Record<string, any>;
|
|
2645
2645
|
cache_control?: {
|
|
2646
2646
|
type: "ephemeral";
|
|
2647
2647
|
} | undefined;
|
|
2648
2648
|
} | {
|
|
2649
|
-
content: string;
|
|
2650
2649
|
type: "tool_result";
|
|
2650
|
+
content: string;
|
|
2651
2651
|
tool_use_id: string;
|
|
2652
2652
|
cache_control?: {
|
|
2653
2653
|
type: "ephemeral";
|
|
@@ -2666,22 +2666,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2666
2666
|
role: "user" | "assistant";
|
|
2667
2667
|
}, {
|
|
2668
2668
|
content: string | ({
|
|
2669
|
-
text: string;
|
|
2670
2669
|
type: "text";
|
|
2670
|
+
text: string;
|
|
2671
2671
|
cache_control?: {
|
|
2672
2672
|
type: "ephemeral";
|
|
2673
2673
|
} | undefined;
|
|
2674
2674
|
} | {
|
|
2675
|
-
name: string;
|
|
2676
2675
|
type: "tool_use";
|
|
2676
|
+
name: string;
|
|
2677
2677
|
id: string;
|
|
2678
2678
|
input: Record<string, any>;
|
|
2679
2679
|
cache_control?: {
|
|
2680
2680
|
type: "ephemeral";
|
|
2681
2681
|
} | undefined;
|
|
2682
2682
|
} | {
|
|
2683
|
-
content: string;
|
|
2684
2683
|
type: "tool_result";
|
|
2684
|
+
content: string;
|
|
2685
2685
|
tool_use_id: string;
|
|
2686
2686
|
cache_control?: {
|
|
2687
2687
|
type: "ephemeral";
|
|
@@ -2726,28 +2726,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2726
2726
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2727
2727
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2728
2728
|
fileVersions?: {
|
|
2729
|
-
content: string;
|
|
2730
2729
|
path: string;
|
|
2730
|
+
content: string;
|
|
2731
2731
|
}[][] | undefined;
|
|
2732
2732
|
};
|
|
2733
2733
|
messageHistory: {
|
|
2734
2734
|
content: string | ({
|
|
2735
|
-
text: string;
|
|
2736
2735
|
type: "text";
|
|
2736
|
+
text: string;
|
|
2737
2737
|
cache_control?: {
|
|
2738
2738
|
type: "ephemeral";
|
|
2739
2739
|
} | undefined;
|
|
2740
2740
|
} | {
|
|
2741
|
-
name: string;
|
|
2742
2741
|
type: "tool_use";
|
|
2742
|
+
name: string;
|
|
2743
2743
|
id: string;
|
|
2744
2744
|
input: Record<string, any>;
|
|
2745
2745
|
cache_control?: {
|
|
2746
2746
|
type: "ephemeral";
|
|
2747
2747
|
} | undefined;
|
|
2748
2748
|
} | {
|
|
2749
|
-
content: string;
|
|
2750
2749
|
type: "tool_result";
|
|
2750
|
+
content: string;
|
|
2751
2751
|
tool_use_id: string;
|
|
2752
2752
|
cache_control?: {
|
|
2753
2753
|
type: "ephemeral";
|
|
@@ -2792,28 +2792,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2792
2792
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2793
2793
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2794
2794
|
fileVersions?: {
|
|
2795
|
-
content: string;
|
|
2796
2795
|
path: string;
|
|
2796
|
+
content: string;
|
|
2797
2797
|
}[][] | undefined;
|
|
2798
2798
|
};
|
|
2799
2799
|
messageHistory: {
|
|
2800
2800
|
content: string | ({
|
|
2801
|
-
text: string;
|
|
2802
2801
|
type: "text";
|
|
2802
|
+
text: string;
|
|
2803
2803
|
cache_control?: {
|
|
2804
2804
|
type: "ephemeral";
|
|
2805
2805
|
} | undefined;
|
|
2806
2806
|
} | {
|
|
2807
|
-
name: string;
|
|
2808
2807
|
type: "tool_use";
|
|
2808
|
+
name: string;
|
|
2809
2809
|
id: string;
|
|
2810
2810
|
input: Record<string, any>;
|
|
2811
2811
|
cache_control?: {
|
|
2812
2812
|
type: "ephemeral";
|
|
2813
2813
|
} | undefined;
|
|
2814
2814
|
} | {
|
|
2815
|
-
content: string;
|
|
2816
2815
|
type: "tool_result";
|
|
2816
|
+
content: string;
|
|
2817
2817
|
tool_use_id: string;
|
|
2818
2818
|
cache_control?: {
|
|
2819
2819
|
type: "ephemeral";
|
|
@@ -2888,28 +2888,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2888
2888
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2889
2889
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2890
2890
|
fileVersions?: {
|
|
2891
|
-
content: string;
|
|
2892
2891
|
path: string;
|
|
2892
|
+
content: string;
|
|
2893
2893
|
}[][] | undefined;
|
|
2894
2894
|
};
|
|
2895
2895
|
messageHistory: {
|
|
2896
2896
|
content: string | ({
|
|
2897
|
-
text: string;
|
|
2898
2897
|
type: "text";
|
|
2898
|
+
text: string;
|
|
2899
2899
|
cache_control?: {
|
|
2900
2900
|
type: "ephemeral";
|
|
2901
2901
|
} | undefined;
|
|
2902
2902
|
} | {
|
|
2903
|
-
name: string;
|
|
2904
2903
|
type: "tool_use";
|
|
2904
|
+
name: string;
|
|
2905
2905
|
id: string;
|
|
2906
2906
|
input: Record<string, any>;
|
|
2907
2907
|
cache_control?: {
|
|
2908
2908
|
type: "ephemeral";
|
|
2909
2909
|
} | undefined;
|
|
2910
2910
|
} | {
|
|
2911
|
-
content: string;
|
|
2912
2911
|
type: "tool_result";
|
|
2912
|
+
content: string;
|
|
2913
2913
|
tool_use_id: string;
|
|
2914
2914
|
cache_control?: {
|
|
2915
2915
|
type: "ephemeral";
|
|
@@ -2968,28 +2968,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2968
2968
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
2969
2969
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2970
2970
|
fileVersions?: {
|
|
2971
|
-
content: string;
|
|
2972
2971
|
path: string;
|
|
2972
|
+
content: string;
|
|
2973
2973
|
}[][] | undefined;
|
|
2974
2974
|
};
|
|
2975
2975
|
messageHistory: {
|
|
2976
2976
|
content: string | ({
|
|
2977
|
-
text: string;
|
|
2978
2977
|
type: "text";
|
|
2978
|
+
text: string;
|
|
2979
2979
|
cache_control?: {
|
|
2980
2980
|
type: "ephemeral";
|
|
2981
2981
|
} | undefined;
|
|
2982
2982
|
} | {
|
|
2983
|
-
name: string;
|
|
2984
2983
|
type: "tool_use";
|
|
2984
|
+
name: string;
|
|
2985
2985
|
id: string;
|
|
2986
2986
|
input: Record<string, any>;
|
|
2987
2987
|
cache_control?: {
|
|
2988
2988
|
type: "ephemeral";
|
|
2989
2989
|
} | undefined;
|
|
2990
2990
|
} | {
|
|
2991
|
-
content: string;
|
|
2992
2991
|
type: "tool_result";
|
|
2992
|
+
content: string;
|
|
2993
2993
|
tool_use_id: string;
|
|
2994
2994
|
cache_control?: {
|
|
2995
2995
|
type: "ephemeral";
|
|
@@ -3053,36 +3053,36 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3053
3053
|
path: z.ZodString;
|
|
3054
3054
|
content: z.ZodString;
|
|
3055
3055
|
}, "strip", z.ZodTypeAny, {
|
|
3056
|
-
content: string;
|
|
3057
3056
|
type: "patch" | "file";
|
|
3058
3057
|
path: string;
|
|
3059
|
-
}, {
|
|
3060
3058
|
content: string;
|
|
3059
|
+
}, {
|
|
3061
3060
|
type: "patch" | "file";
|
|
3062
3061
|
path: string;
|
|
3062
|
+
content: string;
|
|
3063
3063
|
}>, "many">;
|
|
3064
3064
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3065
3065
|
type: z.ZodEnum<["patch", "file"]>;
|
|
3066
3066
|
path: z.ZodString;
|
|
3067
3067
|
content: z.ZodString;
|
|
3068
3068
|
}, "strip", z.ZodTypeAny, {
|
|
3069
|
-
content: string;
|
|
3070
3069
|
type: "patch" | "file";
|
|
3071
3070
|
path: string;
|
|
3072
|
-
}, {
|
|
3073
3071
|
content: string;
|
|
3072
|
+
}, {
|
|
3074
3073
|
type: "patch" | "file";
|
|
3075
3074
|
path: string;
|
|
3075
|
+
content: string;
|
|
3076
3076
|
}>, "many">;
|
|
3077
3077
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3078
3078
|
path: z.ZodString;
|
|
3079
3079
|
content: z.ZodString;
|
|
3080
3080
|
}, "strip", z.ZodTypeAny, {
|
|
3081
|
-
content: string;
|
|
3082
3081
|
path: string;
|
|
3083
|
-
}, {
|
|
3084
3082
|
content: string;
|
|
3083
|
+
}, {
|
|
3085
3084
|
path: string;
|
|
3085
|
+
content: string;
|
|
3086
3086
|
}>, "many">;
|
|
3087
3087
|
resetFileVersions: z.ZodBoolean;
|
|
3088
3088
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3095,18 +3095,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3095
3095
|
userInputId: string;
|
|
3096
3096
|
response: string;
|
|
3097
3097
|
changes: {
|
|
3098
|
-
content: string;
|
|
3099
3098
|
type: "patch" | "file";
|
|
3100
3099
|
path: string;
|
|
3100
|
+
content: string;
|
|
3101
3101
|
}[];
|
|
3102
3102
|
changesAlreadyApplied: {
|
|
3103
|
-
content: string;
|
|
3104
3103
|
type: "patch" | "file";
|
|
3105
3104
|
path: string;
|
|
3105
|
+
content: string;
|
|
3106
3106
|
}[];
|
|
3107
3107
|
addedFileVersions: {
|
|
3108
|
-
content: string;
|
|
3109
3108
|
path: string;
|
|
3109
|
+
content: string;
|
|
3110
3110
|
}[];
|
|
3111
3111
|
resetFileVersions: boolean;
|
|
3112
3112
|
}, {
|
|
@@ -3119,18 +3119,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3119
3119
|
userInputId: string;
|
|
3120
3120
|
response: string;
|
|
3121
3121
|
changes: {
|
|
3122
|
-
content: string;
|
|
3123
3122
|
type: "patch" | "file";
|
|
3124
3123
|
path: string;
|
|
3124
|
+
content: string;
|
|
3125
3125
|
}[];
|
|
3126
3126
|
changesAlreadyApplied: {
|
|
3127
|
-
content: string;
|
|
3128
3127
|
type: "patch" | "file";
|
|
3129
3128
|
path: string;
|
|
3129
|
+
content: string;
|
|
3130
3130
|
}[];
|
|
3131
3131
|
addedFileVersions: {
|
|
3132
|
-
content: string;
|
|
3133
3132
|
path: string;
|
|
3133
|
+
content: string;
|
|
3134
3134
|
}[];
|
|
3135
3135
|
resetFileVersions: boolean;
|
|
3136
3136
|
}>, z.ZodObject<{
|
|
@@ -3221,13 +3221,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3221
3221
|
}, "strip", z.ZodTypeAny, {
|
|
3222
3222
|
type: "action-error";
|
|
3223
3223
|
message: string;
|
|
3224
|
-
error?: string | undefined;
|
|
3225
3224
|
remainingBalance?: number | undefined;
|
|
3225
|
+
error?: string | undefined;
|
|
3226
3226
|
}, {
|
|
3227
3227
|
type: "action-error";
|
|
3228
3228
|
message: string;
|
|
3229
|
-
error?: string | undefined;
|
|
3230
3229
|
remainingBalance?: number | undefined;
|
|
3230
|
+
error?: string | undefined;
|
|
3231
3231
|
}>, z.ZodObject<{
|
|
3232
3232
|
type: z.ZodLiteral<"commit-message-response">;
|
|
3233
3233
|
commitMessage: z.ZodString;
|
|
@@ -3265,18 +3265,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3265
3265
|
userInputId: string;
|
|
3266
3266
|
response: string;
|
|
3267
3267
|
changes: {
|
|
3268
|
-
content: string;
|
|
3269
3268
|
type: "patch" | "file";
|
|
3270
3269
|
path: string;
|
|
3270
|
+
content: string;
|
|
3271
3271
|
}[];
|
|
3272
3272
|
changesAlreadyApplied: {
|
|
3273
|
-
content: string;
|
|
3274
3273
|
type: "patch" | "file";
|
|
3275
3274
|
path: string;
|
|
3275
|
+
content: string;
|
|
3276
3276
|
}[];
|
|
3277
3277
|
addedFileVersions: {
|
|
3278
|
-
content: string;
|
|
3279
3278
|
path: string;
|
|
3279
|
+
content: string;
|
|
3280
3280
|
}[];
|
|
3281
3281
|
resetFileVersions: boolean;
|
|
3282
3282
|
usage?: number | undefined;
|
|
@@ -3317,28 +3317,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3317
3317
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3318
3318
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3319
3319
|
fileVersions?: {
|
|
3320
|
-
content: string;
|
|
3321
3320
|
path: string;
|
|
3321
|
+
content: string;
|
|
3322
3322
|
}[][] | undefined;
|
|
3323
3323
|
};
|
|
3324
3324
|
messageHistory: {
|
|
3325
3325
|
content: string | ({
|
|
3326
|
-
text: string;
|
|
3327
3326
|
type: "text";
|
|
3327
|
+
text: string;
|
|
3328
3328
|
cache_control?: {
|
|
3329
3329
|
type: "ephemeral";
|
|
3330
3330
|
} | undefined;
|
|
3331
3331
|
} | {
|
|
3332
|
-
name: string;
|
|
3333
3332
|
type: "tool_use";
|
|
3333
|
+
name: string;
|
|
3334
3334
|
id: string;
|
|
3335
3335
|
input: Record<string, any>;
|
|
3336
3336
|
cache_control?: {
|
|
3337
3337
|
type: "ephemeral";
|
|
3338
3338
|
} | undefined;
|
|
3339
3339
|
} | {
|
|
3340
|
-
content: string;
|
|
3341
3340
|
type: "tool_result";
|
|
3341
|
+
content: string;
|
|
3342
3342
|
tool_use_id: string;
|
|
3343
3343
|
cache_control?: {
|
|
3344
3344
|
type: "ephemeral";
|
|
@@ -3386,18 +3386,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3386
3386
|
userInputId: string;
|
|
3387
3387
|
response: string;
|
|
3388
3388
|
changes: {
|
|
3389
|
-
content: string;
|
|
3390
3389
|
type: "patch" | "file";
|
|
3391
3390
|
path: string;
|
|
3391
|
+
content: string;
|
|
3392
3392
|
}[];
|
|
3393
3393
|
changesAlreadyApplied: {
|
|
3394
|
-
content: string;
|
|
3395
3394
|
type: "patch" | "file";
|
|
3396
3395
|
path: string;
|
|
3396
|
+
content: string;
|
|
3397
3397
|
}[];
|
|
3398
3398
|
addedFileVersions: {
|
|
3399
|
-
content: string;
|
|
3400
3399
|
path: string;
|
|
3400
|
+
content: string;
|
|
3401
3401
|
}[];
|
|
3402
3402
|
resetFileVersions: boolean;
|
|
3403
3403
|
} | {
|
|
@@ -3411,8 +3411,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3411
3411
|
} | {
|
|
3412
3412
|
type: "action-error";
|
|
3413
3413
|
message: string;
|
|
3414
|
-
error?: string | undefined;
|
|
3415
3414
|
remainingBalance?: number | undefined;
|
|
3415
|
+
error?: string | undefined;
|
|
3416
3416
|
} | {
|
|
3417
3417
|
type: "commit-message-response";
|
|
3418
3418
|
commitMessage: string;
|
|
@@ -3440,18 +3440,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3440
3440
|
userInputId: string;
|
|
3441
3441
|
response: string;
|
|
3442
3442
|
changes: {
|
|
3443
|
-
content: string;
|
|
3444
3443
|
type: "patch" | "file";
|
|
3445
3444
|
path: string;
|
|
3445
|
+
content: string;
|
|
3446
3446
|
}[];
|
|
3447
3447
|
changesAlreadyApplied: {
|
|
3448
|
-
content: string;
|
|
3449
3448
|
type: "patch" | "file";
|
|
3450
3449
|
path: string;
|
|
3450
|
+
content: string;
|
|
3451
3451
|
}[];
|
|
3452
3452
|
addedFileVersions: {
|
|
3453
|
-
content: string;
|
|
3454
3453
|
path: string;
|
|
3454
|
+
content: string;
|
|
3455
3455
|
}[];
|
|
3456
3456
|
resetFileVersions: boolean;
|
|
3457
3457
|
usage?: number | undefined;
|
|
@@ -3492,28 +3492,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3492
3492
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3493
3493
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3494
3494
|
fileVersions?: {
|
|
3495
|
-
content: string;
|
|
3496
3495
|
path: string;
|
|
3496
|
+
content: string;
|
|
3497
3497
|
}[][] | undefined;
|
|
3498
3498
|
};
|
|
3499
3499
|
messageHistory: {
|
|
3500
3500
|
content: string | ({
|
|
3501
|
-
text: string;
|
|
3502
3501
|
type: "text";
|
|
3502
|
+
text: string;
|
|
3503
3503
|
cache_control?: {
|
|
3504
3504
|
type: "ephemeral";
|
|
3505
3505
|
} | undefined;
|
|
3506
3506
|
} | {
|
|
3507
|
-
name: string;
|
|
3508
3507
|
type: "tool_use";
|
|
3508
|
+
name: string;
|
|
3509
3509
|
id: string;
|
|
3510
3510
|
input: Record<string, any>;
|
|
3511
3511
|
cache_control?: {
|
|
3512
3512
|
type: "ephemeral";
|
|
3513
3513
|
} | undefined;
|
|
3514
3514
|
} | {
|
|
3515
|
-
content: string;
|
|
3516
3515
|
type: "tool_result";
|
|
3516
|
+
content: string;
|
|
3517
3517
|
tool_use_id: string;
|
|
3518
3518
|
cache_control?: {
|
|
3519
3519
|
type: "ephemeral";
|
|
@@ -3561,18 +3561,18 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3561
3561
|
userInputId: string;
|
|
3562
3562
|
response: string;
|
|
3563
3563
|
changes: {
|
|
3564
|
-
content: string;
|
|
3565
3564
|
type: "patch" | "file";
|
|
3566
3565
|
path: string;
|
|
3566
|
+
content: string;
|
|
3567
3567
|
}[];
|
|
3568
3568
|
changesAlreadyApplied: {
|
|
3569
|
-
content: string;
|
|
3570
3569
|
type: "patch" | "file";
|
|
3571
3570
|
path: string;
|
|
3571
|
+
content: string;
|
|
3572
3572
|
}[];
|
|
3573
3573
|
addedFileVersions: {
|
|
3574
|
-
content: string;
|
|
3575
3574
|
path: string;
|
|
3575
|
+
content: string;
|
|
3576
3576
|
}[];
|
|
3577
3577
|
resetFileVersions: boolean;
|
|
3578
3578
|
} | {
|
|
@@ -3586,8 +3586,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3586
3586
|
} | {
|
|
3587
3587
|
type: "action-error";
|
|
3588
3588
|
message: string;
|
|
3589
|
-
error?: string | undefined;
|
|
3590
3589
|
remainingBalance?: number | undefined;
|
|
3590
|
+
error?: string | undefined;
|
|
3591
3591
|
} | {
|
|
3592
3592
|
type: "commit-message-response";
|
|
3593
3593
|
commitMessage: string;
|
|
@@ -3634,36 +3634,36 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3634
3634
|
path: z.ZodString;
|
|
3635
3635
|
content: z.ZodString;
|
|
3636
3636
|
}, "strip", z.ZodTypeAny, {
|
|
3637
|
-
content: string;
|
|
3638
3637
|
type: "patch" | "file";
|
|
3639
3638
|
path: string;
|
|
3640
|
-
}, {
|
|
3641
3639
|
content: string;
|
|
3640
|
+
}, {
|
|
3642
3641
|
type: "patch" | "file";
|
|
3643
3642
|
path: string;
|
|
3643
|
+
content: string;
|
|
3644
3644
|
}>, "many">;
|
|
3645
3645
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3646
3646
|
type: z.ZodEnum<["patch", "file"]>;
|
|
3647
3647
|
path: z.ZodString;
|
|
3648
3648
|
content: z.ZodString;
|
|
3649
3649
|
}, "strip", z.ZodTypeAny, {
|
|
3650
|
-
content: string;
|
|
3651
3650
|
type: "patch" | "file";
|
|
3652
3651
|
path: string;
|
|
3653
|
-
}, {
|
|
3654
3652
|
content: string;
|
|
3653
|
+
}, {
|
|
3655
3654
|
type: "patch" | "file";
|
|
3656
3655
|
path: string;
|
|
3656
|
+
content: string;
|
|
3657
3657
|
}>, "many">;
|
|
3658
3658
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3659
3659
|
path: z.ZodString;
|
|
3660
3660
|
content: z.ZodString;
|
|
3661
3661
|
}, "strip", z.ZodTypeAny, {
|
|
3662
|
-
content: string;
|
|
3663
3662
|
path: string;
|
|
3664
|
-
}, {
|
|
3665
3663
|
content: string;
|
|
3664
|
+
}, {
|
|
3666
3665
|
path: string;
|
|
3666
|
+
content: string;
|
|
3667
3667
|
}>, "many">;
|
|
3668
3668
|
resetFileVersions: z.ZodBoolean;
|
|
3669
3669
|
}, {
|
|
@@ -3677,18 +3677,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3677
3677
|
userInputId: string;
|
|
3678
3678
|
response: string;
|
|
3679
3679
|
changes: {
|
|
3680
|
-
content: string;
|
|
3681
3680
|
type: "patch" | "file";
|
|
3682
3681
|
path: string;
|
|
3682
|
+
content: string;
|
|
3683
3683
|
}[];
|
|
3684
3684
|
changesAlreadyApplied: {
|
|
3685
|
-
content: string;
|
|
3686
3685
|
type: "patch" | "file";
|
|
3687
3686
|
path: string;
|
|
3687
|
+
content: string;
|
|
3688
3688
|
}[];
|
|
3689
3689
|
addedFileVersions: {
|
|
3690
|
-
content: string;
|
|
3691
3690
|
path: string;
|
|
3691
|
+
content: string;
|
|
3692
3692
|
}[];
|
|
3693
3693
|
resetFileVersions: boolean;
|
|
3694
3694
|
usage?: number | undefined;
|
|
@@ -3701,18 +3701,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3701
3701
|
userInputId: string;
|
|
3702
3702
|
response: string;
|
|
3703
3703
|
changes: {
|
|
3704
|
-
content: string;
|
|
3705
3704
|
type: "patch" | "file";
|
|
3706
3705
|
path: string;
|
|
3706
|
+
content: string;
|
|
3707
3707
|
}[];
|
|
3708
3708
|
changesAlreadyApplied: {
|
|
3709
|
-
content: string;
|
|
3710
3709
|
type: "patch" | "file";
|
|
3711
3710
|
path: string;
|
|
3711
|
+
content: string;
|
|
3712
3712
|
}[];
|
|
3713
3713
|
addedFileVersions: {
|
|
3714
|
-
content: string;
|
|
3715
3714
|
path: string;
|
|
3715
|
+
content: string;
|
|
3716
3716
|
}[];
|
|
3717
3717
|
resetFileVersions: boolean;
|
|
3718
3718
|
usage?: number | undefined;
|
|
@@ -3776,11 +3776,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3776
3776
|
path: z.ZodString;
|
|
3777
3777
|
content: z.ZodString;
|
|
3778
3778
|
}, "strip", z.ZodTypeAny, {
|
|
3779
|
-
content: string;
|
|
3780
3779
|
path: string;
|
|
3781
|
-
}, {
|
|
3782
3780
|
content: string;
|
|
3781
|
+
}, {
|
|
3783
3782
|
path: string;
|
|
3783
|
+
content: string;
|
|
3784
3784
|
}>, "many">, "many">>;
|
|
3785
3785
|
}, "strip", z.ZodTypeAny, {
|
|
3786
3786
|
currentWorkingDirectory: string;
|
|
@@ -3806,8 +3806,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3806
3806
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3807
3807
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3808
3808
|
fileVersions?: {
|
|
3809
|
-
content: string;
|
|
3810
3809
|
path: string;
|
|
3810
|
+
content: string;
|
|
3811
3811
|
}[][] | undefined;
|
|
3812
3812
|
}, {
|
|
3813
3813
|
currentWorkingDirectory: string;
|
|
@@ -3833,8 +3833,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3833
3833
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
3834
3834
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3835
3835
|
fileVersions?: {
|
|
3836
|
-
content: string;
|
|
3837
3836
|
path: string;
|
|
3837
|
+
content: string;
|
|
3838
3838
|
}[][] | undefined;
|
|
3839
3839
|
}>;
|
|
3840
3840
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
@@ -3850,14 +3850,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3850
3850
|
type: "ephemeral";
|
|
3851
3851
|
}>>;
|
|
3852
3852
|
}, "strip", z.ZodTypeAny, {
|
|
3853
|
-
text: string;
|
|
3854
3853
|
type: "text";
|
|
3854
|
+
text: string;
|
|
3855
3855
|
cache_control?: {
|
|
3856
3856
|
type: "ephemeral";
|
|
3857
3857
|
} | undefined;
|
|
3858
3858
|
}, {
|
|
3859
|
-
text: string;
|
|
3860
3859
|
type: "text";
|
|
3860
|
+
text: string;
|
|
3861
3861
|
cache_control?: {
|
|
3862
3862
|
type: "ephemeral";
|
|
3863
3863
|
} | undefined;
|
|
@@ -3874,16 +3874,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3874
3874
|
type: "ephemeral";
|
|
3875
3875
|
}>>;
|
|
3876
3876
|
}, "strip", z.ZodTypeAny, {
|
|
3877
|
-
name: string;
|
|
3878
3877
|
type: "tool_use";
|
|
3878
|
+
name: string;
|
|
3879
3879
|
id: string;
|
|
3880
3880
|
input: Record<string, any>;
|
|
3881
3881
|
cache_control?: {
|
|
3882
3882
|
type: "ephemeral";
|
|
3883
3883
|
} | undefined;
|
|
3884
3884
|
}, {
|
|
3885
|
-
name: string;
|
|
3886
3885
|
type: "tool_use";
|
|
3886
|
+
name: string;
|
|
3887
3887
|
id: string;
|
|
3888
3888
|
input: Record<string, any>;
|
|
3889
3889
|
cache_control?: {
|
|
@@ -3901,15 +3901,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3901
3901
|
type: "ephemeral";
|
|
3902
3902
|
}>>;
|
|
3903
3903
|
}, "strip", z.ZodTypeAny, {
|
|
3904
|
-
content: string;
|
|
3905
3904
|
type: "tool_result";
|
|
3905
|
+
content: string;
|
|
3906
3906
|
tool_use_id: string;
|
|
3907
3907
|
cache_control?: {
|
|
3908
3908
|
type: "ephemeral";
|
|
3909
3909
|
} | undefined;
|
|
3910
3910
|
}, {
|
|
3911
|
-
content: string;
|
|
3912
3911
|
type: "tool_result";
|
|
3912
|
+
content: string;
|
|
3913
3913
|
tool_use_id: string;
|
|
3914
3914
|
cache_control?: {
|
|
3915
3915
|
type: "ephemeral";
|
|
@@ -3959,22 +3959,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3959
3959
|
}>]>, "many">]>;
|
|
3960
3960
|
}, "strip", z.ZodTypeAny, {
|
|
3961
3961
|
content: string | ({
|
|
3962
|
-
text: string;
|
|
3963
3962
|
type: "text";
|
|
3963
|
+
text: string;
|
|
3964
3964
|
cache_control?: {
|
|
3965
3965
|
type: "ephemeral";
|
|
3966
3966
|
} | undefined;
|
|
3967
3967
|
} | {
|
|
3968
|
-
name: string;
|
|
3969
3968
|
type: "tool_use";
|
|
3969
|
+
name: string;
|
|
3970
3970
|
id: string;
|
|
3971
3971
|
input: Record<string, any>;
|
|
3972
3972
|
cache_control?: {
|
|
3973
3973
|
type: "ephemeral";
|
|
3974
3974
|
} | undefined;
|
|
3975
3975
|
} | {
|
|
3976
|
-
content: string;
|
|
3977
3976
|
type: "tool_result";
|
|
3977
|
+
content: string;
|
|
3978
3978
|
tool_use_id: string;
|
|
3979
3979
|
cache_control?: {
|
|
3980
3980
|
type: "ephemeral";
|
|
@@ -3993,22 +3993,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3993
3993
|
role: "user" | "assistant";
|
|
3994
3994
|
}, {
|
|
3995
3995
|
content: string | ({
|
|
3996
|
-
text: string;
|
|
3997
3996
|
type: "text";
|
|
3997
|
+
text: string;
|
|
3998
3998
|
cache_control?: {
|
|
3999
3999
|
type: "ephemeral";
|
|
4000
4000
|
} | undefined;
|
|
4001
4001
|
} | {
|
|
4002
|
-
name: string;
|
|
4003
4002
|
type: "tool_use";
|
|
4003
|
+
name: string;
|
|
4004
4004
|
id: string;
|
|
4005
4005
|
input: Record<string, any>;
|
|
4006
4006
|
cache_control?: {
|
|
4007
4007
|
type: "ephemeral";
|
|
4008
4008
|
} | undefined;
|
|
4009
4009
|
} | {
|
|
4010
|
-
content: string;
|
|
4011
4010
|
type: "tool_result";
|
|
4011
|
+
content: string;
|
|
4012
4012
|
tool_use_id: string;
|
|
4013
4013
|
cache_control?: {
|
|
4014
4014
|
type: "ephemeral";
|
|
@@ -4053,28 +4053,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4053
4053
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4054
4054
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4055
4055
|
fileVersions?: {
|
|
4056
|
-
content: string;
|
|
4057
4056
|
path: string;
|
|
4057
|
+
content: string;
|
|
4058
4058
|
}[][] | undefined;
|
|
4059
4059
|
};
|
|
4060
4060
|
messageHistory: {
|
|
4061
4061
|
content: string | ({
|
|
4062
|
-
text: string;
|
|
4063
4062
|
type: "text";
|
|
4063
|
+
text: string;
|
|
4064
4064
|
cache_control?: {
|
|
4065
4065
|
type: "ephemeral";
|
|
4066
4066
|
} | undefined;
|
|
4067
4067
|
} | {
|
|
4068
|
-
name: string;
|
|
4069
4068
|
type: "tool_use";
|
|
4069
|
+
name: string;
|
|
4070
4070
|
id: string;
|
|
4071
4071
|
input: Record<string, any>;
|
|
4072
4072
|
cache_control?: {
|
|
4073
4073
|
type: "ephemeral";
|
|
4074
4074
|
} | undefined;
|
|
4075
4075
|
} | {
|
|
4076
|
-
content: string;
|
|
4077
4076
|
type: "tool_result";
|
|
4077
|
+
content: string;
|
|
4078
4078
|
tool_use_id: string;
|
|
4079
4079
|
cache_control?: {
|
|
4080
4080
|
type: "ephemeral";
|
|
@@ -4119,28 +4119,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4119
4119
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4120
4120
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4121
4121
|
fileVersions?: {
|
|
4122
|
-
content: string;
|
|
4123
4122
|
path: string;
|
|
4123
|
+
content: string;
|
|
4124
4124
|
}[][] | undefined;
|
|
4125
4125
|
};
|
|
4126
4126
|
messageHistory: {
|
|
4127
4127
|
content: string | ({
|
|
4128
|
-
text: string;
|
|
4129
4128
|
type: "text";
|
|
4129
|
+
text: string;
|
|
4130
4130
|
cache_control?: {
|
|
4131
4131
|
type: "ephemeral";
|
|
4132
4132
|
} | undefined;
|
|
4133
4133
|
} | {
|
|
4134
|
-
name: string;
|
|
4135
4134
|
type: "tool_use";
|
|
4135
|
+
name: string;
|
|
4136
4136
|
id: string;
|
|
4137
4137
|
input: Record<string, any>;
|
|
4138
4138
|
cache_control?: {
|
|
4139
4139
|
type: "ephemeral";
|
|
4140
4140
|
} | undefined;
|
|
4141
4141
|
} | {
|
|
4142
|
-
content: string;
|
|
4143
4142
|
type: "tool_result";
|
|
4143
|
+
content: string;
|
|
4144
4144
|
tool_use_id: string;
|
|
4145
4145
|
cache_control?: {
|
|
4146
4146
|
type: "ephemeral";
|
|
@@ -4215,28 +4215,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4215
4215
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4216
4216
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4217
4217
|
fileVersions?: {
|
|
4218
|
-
content: string;
|
|
4219
4218
|
path: string;
|
|
4219
|
+
content: string;
|
|
4220
4220
|
}[][] | undefined;
|
|
4221
4221
|
};
|
|
4222
4222
|
messageHistory: {
|
|
4223
4223
|
content: string | ({
|
|
4224
|
-
text: string;
|
|
4225
4224
|
type: "text";
|
|
4225
|
+
text: string;
|
|
4226
4226
|
cache_control?: {
|
|
4227
4227
|
type: "ephemeral";
|
|
4228
4228
|
} | undefined;
|
|
4229
4229
|
} | {
|
|
4230
|
-
name: string;
|
|
4231
4230
|
type: "tool_use";
|
|
4231
|
+
name: string;
|
|
4232
4232
|
id: string;
|
|
4233
4233
|
input: Record<string, any>;
|
|
4234
4234
|
cache_control?: {
|
|
4235
4235
|
type: "ephemeral";
|
|
4236
4236
|
} | undefined;
|
|
4237
4237
|
} | {
|
|
4238
|
-
content: string;
|
|
4239
4238
|
type: "tool_result";
|
|
4239
|
+
content: string;
|
|
4240
4240
|
tool_use_id: string;
|
|
4241
4241
|
cache_control?: {
|
|
4242
4242
|
type: "ephemeral";
|
|
@@ -4295,28 +4295,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4295
4295
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4296
4296
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4297
4297
|
fileVersions?: {
|
|
4298
|
-
content: string;
|
|
4299
4298
|
path: string;
|
|
4299
|
+
content: string;
|
|
4300
4300
|
}[][] | undefined;
|
|
4301
4301
|
};
|
|
4302
4302
|
messageHistory: {
|
|
4303
4303
|
content: string | ({
|
|
4304
|
-
text: string;
|
|
4305
4304
|
type: "text";
|
|
4305
|
+
text: string;
|
|
4306
4306
|
cache_control?: {
|
|
4307
4307
|
type: "ephemeral";
|
|
4308
4308
|
} | undefined;
|
|
4309
4309
|
} | {
|
|
4310
|
-
name: string;
|
|
4311
4310
|
type: "tool_use";
|
|
4311
|
+
name: string;
|
|
4312
4312
|
id: string;
|
|
4313
4313
|
input: Record<string, any>;
|
|
4314
4314
|
cache_control?: {
|
|
4315
4315
|
type: "ephemeral";
|
|
4316
4316
|
} | undefined;
|
|
4317
4317
|
} | {
|
|
4318
|
-
content: string;
|
|
4319
4318
|
type: "tool_result";
|
|
4319
|
+
content: string;
|
|
4320
4320
|
tool_use_id: string;
|
|
4321
4321
|
cache_control?: {
|
|
4322
4322
|
type: "ephemeral";
|
|
@@ -4380,36 +4380,36 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4380
4380
|
path: z.ZodString;
|
|
4381
4381
|
content: z.ZodString;
|
|
4382
4382
|
}, "strip", z.ZodTypeAny, {
|
|
4383
|
-
content: string;
|
|
4384
4383
|
type: "patch" | "file";
|
|
4385
4384
|
path: string;
|
|
4386
|
-
}, {
|
|
4387
4385
|
content: string;
|
|
4386
|
+
}, {
|
|
4388
4387
|
type: "patch" | "file";
|
|
4389
4388
|
path: string;
|
|
4389
|
+
content: string;
|
|
4390
4390
|
}>, "many">;
|
|
4391
4391
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4392
4392
|
type: z.ZodEnum<["patch", "file"]>;
|
|
4393
4393
|
path: z.ZodString;
|
|
4394
4394
|
content: z.ZodString;
|
|
4395
4395
|
}, "strip", z.ZodTypeAny, {
|
|
4396
|
-
content: string;
|
|
4397
4396
|
type: "patch" | "file";
|
|
4398
4397
|
path: string;
|
|
4399
|
-
}, {
|
|
4400
4398
|
content: string;
|
|
4399
|
+
}, {
|
|
4401
4400
|
type: "patch" | "file";
|
|
4402
4401
|
path: string;
|
|
4402
|
+
content: string;
|
|
4403
4403
|
}>, "many">;
|
|
4404
4404
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4405
4405
|
path: z.ZodString;
|
|
4406
4406
|
content: z.ZodString;
|
|
4407
4407
|
}, "strip", z.ZodTypeAny, {
|
|
4408
|
-
content: string;
|
|
4409
4408
|
path: string;
|
|
4410
|
-
}, {
|
|
4411
4409
|
content: string;
|
|
4410
|
+
}, {
|
|
4412
4411
|
path: string;
|
|
4412
|
+
content: string;
|
|
4413
4413
|
}>, "many">;
|
|
4414
4414
|
resetFileVersions: z.ZodBoolean;
|
|
4415
4415
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4422,18 +4422,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4422
4422
|
userInputId: string;
|
|
4423
4423
|
response: string;
|
|
4424
4424
|
changes: {
|
|
4425
|
-
content: string;
|
|
4426
4425
|
type: "patch" | "file";
|
|
4427
4426
|
path: string;
|
|
4427
|
+
content: string;
|
|
4428
4428
|
}[];
|
|
4429
4429
|
changesAlreadyApplied: {
|
|
4430
|
-
content: string;
|
|
4431
4430
|
type: "patch" | "file";
|
|
4432
4431
|
path: string;
|
|
4432
|
+
content: string;
|
|
4433
4433
|
}[];
|
|
4434
4434
|
addedFileVersions: {
|
|
4435
|
-
content: string;
|
|
4436
4435
|
path: string;
|
|
4436
|
+
content: string;
|
|
4437
4437
|
}[];
|
|
4438
4438
|
resetFileVersions: boolean;
|
|
4439
4439
|
}, {
|
|
@@ -4446,18 +4446,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4446
4446
|
userInputId: string;
|
|
4447
4447
|
response: string;
|
|
4448
4448
|
changes: {
|
|
4449
|
-
content: string;
|
|
4450
4449
|
type: "patch" | "file";
|
|
4451
4450
|
path: string;
|
|
4451
|
+
content: string;
|
|
4452
4452
|
}[];
|
|
4453
4453
|
changesAlreadyApplied: {
|
|
4454
|
-
content: string;
|
|
4455
4454
|
type: "patch" | "file";
|
|
4456
4455
|
path: string;
|
|
4456
|
+
content: string;
|
|
4457
4457
|
}[];
|
|
4458
4458
|
addedFileVersions: {
|
|
4459
|
-
content: string;
|
|
4460
4459
|
path: string;
|
|
4460
|
+
content: string;
|
|
4461
4461
|
}[];
|
|
4462
4462
|
resetFileVersions: boolean;
|
|
4463
4463
|
}>, z.ZodObject<{
|
|
@@ -4548,13 +4548,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4548
4548
|
}, "strip", z.ZodTypeAny, {
|
|
4549
4549
|
type: "action-error";
|
|
4550
4550
|
message: string;
|
|
4551
|
-
error?: string | undefined;
|
|
4552
4551
|
remainingBalance?: number | undefined;
|
|
4552
|
+
error?: string | undefined;
|
|
4553
4553
|
}, {
|
|
4554
4554
|
type: "action-error";
|
|
4555
4555
|
message: string;
|
|
4556
|
-
error?: string | undefined;
|
|
4557
4556
|
remainingBalance?: number | undefined;
|
|
4557
|
+
error?: string | undefined;
|
|
4558
4558
|
}>, z.ZodObject<{
|
|
4559
4559
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4560
4560
|
commitMessage: z.ZodString;
|
|
@@ -4592,18 +4592,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4592
4592
|
userInputId: string;
|
|
4593
4593
|
response: string;
|
|
4594
4594
|
changes: {
|
|
4595
|
-
content: string;
|
|
4596
4595
|
type: "patch" | "file";
|
|
4597
4596
|
path: string;
|
|
4597
|
+
content: string;
|
|
4598
4598
|
}[];
|
|
4599
4599
|
changesAlreadyApplied: {
|
|
4600
|
-
content: string;
|
|
4601
4600
|
type: "patch" | "file";
|
|
4602
4601
|
path: string;
|
|
4602
|
+
content: string;
|
|
4603
4603
|
}[];
|
|
4604
4604
|
addedFileVersions: {
|
|
4605
|
-
content: string;
|
|
4606
4605
|
path: string;
|
|
4606
|
+
content: string;
|
|
4607
4607
|
}[];
|
|
4608
4608
|
resetFileVersions: boolean;
|
|
4609
4609
|
usage?: number | undefined;
|
|
@@ -4644,28 +4644,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4644
4644
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4645
4645
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4646
4646
|
fileVersions?: {
|
|
4647
|
-
content: string;
|
|
4648
4647
|
path: string;
|
|
4648
|
+
content: string;
|
|
4649
4649
|
}[][] | undefined;
|
|
4650
4650
|
};
|
|
4651
4651
|
messageHistory: {
|
|
4652
4652
|
content: string | ({
|
|
4653
|
-
text: string;
|
|
4654
4653
|
type: "text";
|
|
4654
|
+
text: string;
|
|
4655
4655
|
cache_control?: {
|
|
4656
4656
|
type: "ephemeral";
|
|
4657
4657
|
} | undefined;
|
|
4658
4658
|
} | {
|
|
4659
|
-
name: string;
|
|
4660
4659
|
type: "tool_use";
|
|
4660
|
+
name: string;
|
|
4661
4661
|
id: string;
|
|
4662
4662
|
input: Record<string, any>;
|
|
4663
4663
|
cache_control?: {
|
|
4664
4664
|
type: "ephemeral";
|
|
4665
4665
|
} | undefined;
|
|
4666
4666
|
} | {
|
|
4667
|
-
content: string;
|
|
4668
4667
|
type: "tool_result";
|
|
4668
|
+
content: string;
|
|
4669
4669
|
tool_use_id: string;
|
|
4670
4670
|
cache_control?: {
|
|
4671
4671
|
type: "ephemeral";
|
|
@@ -4713,18 +4713,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4713
4713
|
userInputId: string;
|
|
4714
4714
|
response: string;
|
|
4715
4715
|
changes: {
|
|
4716
|
-
content: string;
|
|
4717
4716
|
type: "patch" | "file";
|
|
4718
4717
|
path: string;
|
|
4718
|
+
content: string;
|
|
4719
4719
|
}[];
|
|
4720
4720
|
changesAlreadyApplied: {
|
|
4721
|
-
content: string;
|
|
4722
4721
|
type: "patch" | "file";
|
|
4723
4722
|
path: string;
|
|
4723
|
+
content: string;
|
|
4724
4724
|
}[];
|
|
4725
4725
|
addedFileVersions: {
|
|
4726
|
-
content: string;
|
|
4727
4726
|
path: string;
|
|
4727
|
+
content: string;
|
|
4728
4728
|
}[];
|
|
4729
4729
|
resetFileVersions: boolean;
|
|
4730
4730
|
} | {
|
|
@@ -4738,8 +4738,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4738
4738
|
} | {
|
|
4739
4739
|
type: "action-error";
|
|
4740
4740
|
message: string;
|
|
4741
|
-
error?: string | undefined;
|
|
4742
4741
|
remainingBalance?: number | undefined;
|
|
4742
|
+
error?: string | undefined;
|
|
4743
4743
|
} | {
|
|
4744
4744
|
type: "commit-message-response";
|
|
4745
4745
|
commitMessage: string;
|
|
@@ -4767,18 +4767,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4767
4767
|
userInputId: string;
|
|
4768
4768
|
response: string;
|
|
4769
4769
|
changes: {
|
|
4770
|
-
content: string;
|
|
4771
4770
|
type: "patch" | "file";
|
|
4772
4771
|
path: string;
|
|
4772
|
+
content: string;
|
|
4773
4773
|
}[];
|
|
4774
4774
|
changesAlreadyApplied: {
|
|
4775
|
-
content: string;
|
|
4776
4775
|
type: "patch" | "file";
|
|
4777
4776
|
path: string;
|
|
4777
|
+
content: string;
|
|
4778
4778
|
}[];
|
|
4779
4779
|
addedFileVersions: {
|
|
4780
|
-
content: string;
|
|
4781
4780
|
path: string;
|
|
4781
|
+
content: string;
|
|
4782
4782
|
}[];
|
|
4783
4783
|
resetFileVersions: boolean;
|
|
4784
4784
|
usage?: number | undefined;
|
|
@@ -4819,28 +4819,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4819
4819
|
tokenCallers?: Record<string, Record<string, string[]>> | undefined;
|
|
4820
4820
|
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4821
4821
|
fileVersions?: {
|
|
4822
|
-
content: string;
|
|
4823
4822
|
path: string;
|
|
4823
|
+
content: string;
|
|
4824
4824
|
}[][] | undefined;
|
|
4825
4825
|
};
|
|
4826
4826
|
messageHistory: {
|
|
4827
4827
|
content: string | ({
|
|
4828
|
-
text: string;
|
|
4829
4828
|
type: "text";
|
|
4829
|
+
text: string;
|
|
4830
4830
|
cache_control?: {
|
|
4831
4831
|
type: "ephemeral";
|
|
4832
4832
|
} | undefined;
|
|
4833
4833
|
} | {
|
|
4834
|
-
name: string;
|
|
4835
4834
|
type: "tool_use";
|
|
4835
|
+
name: string;
|
|
4836
4836
|
id: string;
|
|
4837
4837
|
input: Record<string, any>;
|
|
4838
4838
|
cache_control?: {
|
|
4839
4839
|
type: "ephemeral";
|
|
4840
4840
|
} | undefined;
|
|
4841
4841
|
} | {
|
|
4842
|
-
content: string;
|
|
4843
4842
|
type: "tool_result";
|
|
4843
|
+
content: string;
|
|
4844
4844
|
tool_use_id: string;
|
|
4845
4845
|
cache_control?: {
|
|
4846
4846
|
type: "ephemeral";
|
|
@@ -4888,18 +4888,18 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4888
4888
|
userInputId: string;
|
|
4889
4889
|
response: string;
|
|
4890
4890
|
changes: {
|
|
4891
|
-
content: string;
|
|
4892
4891
|
type: "patch" | "file";
|
|
4893
4892
|
path: string;
|
|
4893
|
+
content: string;
|
|
4894
4894
|
}[];
|
|
4895
4895
|
changesAlreadyApplied: {
|
|
4896
|
-
content: string;
|
|
4897
4896
|
type: "patch" | "file";
|
|
4898
4897
|
path: string;
|
|
4898
|
+
content: string;
|
|
4899
4899
|
}[];
|
|
4900
4900
|
addedFileVersions: {
|
|
4901
|
-
content: string;
|
|
4902
4901
|
path: string;
|
|
4902
|
+
content: string;
|
|
4903
4903
|
}[];
|
|
4904
4904
|
resetFileVersions: boolean;
|
|
4905
4905
|
} | {
|
|
@@ -4913,8 +4913,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4913
4913
|
} | {
|
|
4914
4914
|
type: "action-error";
|
|
4915
4915
|
message: string;
|
|
4916
|
-
error?: string | undefined;
|
|
4917
4916
|
remainingBalance?: number | undefined;
|
|
4917
|
+
error?: string | undefined;
|
|
4918
4918
|
} | {
|
|
4919
4919
|
type: "commit-message-response";
|
|
4920
4920
|
commitMessage: string;
|