codebuff 1.0.269 → 1.0.270
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/api-key.d.ts +1 -1
- package/dist/cli-handlers/api-key.js +1 -1
- package/dist/cli-handlers/api-key.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/common/actions.d.ts +66 -66
- package/dist/common/browser-actions.d.ts +46 -46
- package/dist/common/constants.d.ts +1 -1
- package/dist/common/constants.js +18 -7
- package/dist/common/constants.js.map +1 -1
- package/dist/common/json-config/constants.d.ts +6 -6
- package/dist/common/types/message.d.ts +16 -16
- package/dist/common/util/__tests__/saxy.test.js +137 -11
- package/dist/common/util/__tests__/saxy.test.js.map +1 -1
- package/dist/common/util/credentials.d.ts +4 -4
- package/dist/common/util/process-stream.d.ts +7 -0
- package/dist/common/util/process-stream.js +162 -0
- package/dist/common/util/process-stream.js.map +1 -0
- package/dist/common/util/saxy.d.ts +1 -0
- package/dist/common/util/saxy.js +42 -10
- package/dist/common/util/saxy.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +124 -124
- package/dist/index.js +0 -6
- package/dist/index.js.map +1 -1
- package/dist/utils/__tests__/__snapshots__/background-process-manager.test.js.snap +137 -0
- package/dist/utils/__tests__/file-paths.test.d.ts +1 -0
- package/dist/utils/__tests__/file-paths.test.js +37 -0
- package/dist/utils/__tests__/file-paths.test.js.map +1 -0
- package/dist/utils/__tests__/path.test.d.ts +1 -0
- package/dist/utils/__tests__/path.test.js +37 -0
- package/dist/utils/__tests__/path.test.js.map +1 -0
- package/dist/utils/__tests__/xml-stream-parser.test.js +26 -0
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +1 -1
- package/dist/utils/detect-shell.js +1 -1
- package/dist/utils/detect-shell.js.map +1 -1
- package/dist/utils/file-paths.d.ts +9 -0
- package/dist/utils/file-paths.js +24 -0
- package/dist/utils/file-paths.js.map +1 -0
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils/logger.js +3 -6
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/path.d.ts +9 -0
- package/dist/utils/path.js +27 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/spinner.js.map +1 -1
- package/dist/utils/system-info.js +2 -2
- package/dist/utils/system-info.js.map +1 -1
- package/dist/utils/xml-stream-parser.js.map +1 -1
- package/dist/workers/project-context.js +1 -1
- package/dist/workers/project-context.js.map +1 -1
- package/package.json +2 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.detectApiKey = detectApiKey;
|
|
4
4
|
exports.handleApiKeyInput = handleApiKeyInput;
|
|
5
|
-
const picocolors_1 = require("picocolors");
|
|
6
5
|
const constants_1 = require("../common/api-keys/constants");
|
|
6
|
+
const picocolors_1 = require("picocolors");
|
|
7
7
|
/**
|
|
8
8
|
* Detects if the user input contains a known API key pattern.
|
|
9
9
|
* Returns information about the detected key or prefix.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../src/cli-handlers/api-key.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"api-key.js","sourceRoot":"","sources":["../../src/cli-handlers/api-key.ts"],"names":[],"mappings":";;AAcA,oCAyCC;AAKD,8CA0BC;AAtFD,yDAAgG;AAChG,2CAAmC;AASnC;;;GAGG;AACH,SAAgB,YAAY,CAAC,SAAiB;IAC5C,yCAAyC;IACzC,MAAM,WAAW,GAAG,yBAAa,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QAChD,MAAM,MAAM,GAAG,wBAAY,CAAC,OAAO,CAAC,CAAA;QACpC,MAAM,MAAM,GAAG,uBAAW,CAAC,OAAO,CAAC,CAAA;QACnC,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAA;QACtE,OAAO;YACL,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;YACd,6EAA6E;YAC7E,KAAK,EAAE,IAAI,MAAM,CACf,aAAa,aAAa,UAAU,MAAM,GAAG,MAAM,CAAC,MAAM,aAAa,CACxE;SACF,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,mDAAmD;IACnD,KAAK,MAAM,WAAW,IAAI,WAAW,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;QAChD,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;YACtB,kCAAkC;YAClC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;QACnE,CAAC;IACH,CAAC;IAED,4EAA4E;IAC5E,KAAK,MAAM,WAAW,IAAI,WAAW,EAAE,CAAC;QACtC,IAAI,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3C,6EAA6E;YAC7E,OAAO;gBACL,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,WAAW,CAAC,IAAI;gBACtB,MAAM,EAAE,WAAW,CAAC,MAAM;gBAC1B,MAAM,EAAE,WAAW,CAAC,MAAM;aAC3B,CAAA;QACH,CAAC;IACH,CAAC;IAED,wCAAwC;IACxC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,CAAA;AAChC,CAAC;AAED;;GAEG;AACI,KAAK,UAAU,iBAAiB,CACrC,MAAc,EACd,eAAwE,EACxE,YAA0B,EAC1B,mBAA+B;IAE/B,QAAQ,eAAe,CAAC,MAAM,EAAE,CAAC;QAC/B,KAAK,OAAO;YACV,MAAM,YAAY,CAAA;YAClB,8CAA8C;YAC9C,MAAM,MAAM,CAAC,eAAe,CAC1B,eAAe,CAAC,IAAI,EACpB,eAAe,CAAC,GAAG,CACpB,CAAA;YACD,oEAAoE;YACpE,MAAK;QACP,KAAK,aAAa;YAChB,gDAAgD;YAChD,OAAO,CAAC,GAAG,CACT,IAAA,mBAAM,EACJ,sBAAsB,eAAe,CAAC,IAAI,yDAAyD,eAAe,CAAC,MAAM,8BAA8B,eAAe,CAAC,MAAM,IAAI,CAClL,CACF,CAAA;YACD,mBAAmB,EAAE,CAAA,CAAC,iDAAiD;YACvE,MAAK;IACT,CAAC;AACH,CAAC"}
|
package/dist/client.d.ts
CHANGED
|
@@ -107,8 +107,8 @@ export declare class Client {
|
|
|
107
107
|
type: "ephemeral";
|
|
108
108
|
} | undefined;
|
|
109
109
|
} | {
|
|
110
|
-
content: string;
|
|
111
110
|
type: "tool_result";
|
|
111
|
+
content: string;
|
|
112
112
|
tool_use_id: string;
|
|
113
113
|
cache_control?: {
|
|
114
114
|
type: "ephemeral";
|
|
@@ -135,8 +135,8 @@ export declare class Client {
|
|
|
135
135
|
}[];
|
|
136
136
|
toolCalls: {
|
|
137
137
|
name: string;
|
|
138
|
-
parameters: Record<string, string>;
|
|
139
138
|
id: string;
|
|
139
|
+
parameters: Record<string, string>;
|
|
140
140
|
}[];
|
|
141
141
|
} & {
|
|
142
142
|
type: "prompt-response";
|
package/dist/common/actions.d.ts
CHANGED
|
@@ -4,13 +4,13 @@ export declare const FileChangeSchema: z.ZodObject<{
|
|
|
4
4
|
path: z.ZodString;
|
|
5
5
|
content: z.ZodString;
|
|
6
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
type: "patch" | "file";
|
|
7
8
|
path: string;
|
|
8
9
|
content: string;
|
|
9
|
-
type: "file" | "patch";
|
|
10
10
|
}, {
|
|
11
|
+
type: "patch" | "file";
|
|
11
12
|
path: string;
|
|
12
13
|
content: string;
|
|
13
|
-
type: "file" | "patch";
|
|
14
14
|
}>;
|
|
15
15
|
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
16
16
|
export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
@@ -18,13 +18,13 @@ export declare const CHANGES: z.ZodArray<z.ZodObject<{
|
|
|
18
18
|
path: z.ZodString;
|
|
19
19
|
content: z.ZodString;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "patch" | "file";
|
|
21
22
|
path: string;
|
|
22
23
|
content: string;
|
|
23
|
-
type: "file" | "patch";
|
|
24
24
|
}, {
|
|
25
|
+
type: "patch" | "file";
|
|
25
26
|
path: string;
|
|
26
27
|
content: string;
|
|
27
|
-
type: "file" | "patch";
|
|
28
28
|
}>, "many">;
|
|
29
29
|
export type FileChanges = z.infer<typeof CHANGES>;
|
|
30
30
|
export declare const ToolCallSchema: z.ZodObject<{
|
|
@@ -226,15 +226,15 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
226
226
|
type: "ephemeral";
|
|
227
227
|
}>>;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
|
-
content: string;
|
|
230
229
|
type: "tool_result";
|
|
230
|
+
content: string;
|
|
231
231
|
tool_use_id: string;
|
|
232
232
|
cache_control?: {
|
|
233
233
|
type: "ephemeral";
|
|
234
234
|
} | undefined;
|
|
235
235
|
}, {
|
|
236
|
-
content: string;
|
|
237
236
|
type: "tool_result";
|
|
237
|
+
content: string;
|
|
238
238
|
tool_use_id: string;
|
|
239
239
|
cache_control?: {
|
|
240
240
|
type: "ephemeral";
|
|
@@ -298,8 +298,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
298
298
|
type: "ephemeral";
|
|
299
299
|
} | undefined;
|
|
300
300
|
} | {
|
|
301
|
-
content: string;
|
|
302
301
|
type: "tool_result";
|
|
302
|
+
content: string;
|
|
303
303
|
tool_use_id: string;
|
|
304
304
|
cache_control?: {
|
|
305
305
|
type: "ephemeral";
|
|
@@ -332,8 +332,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
332
332
|
type: "ephemeral";
|
|
333
333
|
} | undefined;
|
|
334
334
|
} | {
|
|
335
|
-
content: string;
|
|
336
335
|
type: "tool_result";
|
|
336
|
+
content: string;
|
|
337
337
|
tool_use_id: string;
|
|
338
338
|
cache_control?: {
|
|
339
339
|
type: "ephemeral";
|
|
@@ -398,8 +398,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
398
398
|
type: "ephemeral";
|
|
399
399
|
} | undefined;
|
|
400
400
|
} | {
|
|
401
|
-
content: string;
|
|
402
401
|
type: "tool_result";
|
|
402
|
+
content: string;
|
|
403
403
|
tool_use_id: string;
|
|
404
404
|
cache_control?: {
|
|
405
405
|
type: "ephemeral";
|
|
@@ -464,8 +464,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
464
464
|
type: "ephemeral";
|
|
465
465
|
} | undefined;
|
|
466
466
|
} | {
|
|
467
|
-
content: string;
|
|
468
467
|
type: "tool_result";
|
|
468
|
+
content: string;
|
|
469
469
|
tool_use_id: string;
|
|
470
470
|
cache_control?: {
|
|
471
471
|
type: "ephemeral";
|
|
@@ -504,7 +504,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
504
504
|
type: "prompt";
|
|
505
505
|
promptId: string;
|
|
506
506
|
fingerprintId: string;
|
|
507
|
-
costMode: "
|
|
507
|
+
costMode: "lite" | "normal" | "max" | "experimental";
|
|
508
508
|
agentState: {
|
|
509
509
|
agentContext: string;
|
|
510
510
|
fileContext: {
|
|
@@ -551,8 +551,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
551
551
|
type: "ephemeral";
|
|
552
552
|
} | undefined;
|
|
553
553
|
} | {
|
|
554
|
-
content: string;
|
|
555
554
|
type: "tool_result";
|
|
555
|
+
content: string;
|
|
556
556
|
tool_use_id: string;
|
|
557
557
|
cache_control?: {
|
|
558
558
|
type: "ephemeral";
|
|
@@ -631,8 +631,8 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
631
631
|
type: "ephemeral";
|
|
632
632
|
} | undefined;
|
|
633
633
|
} | {
|
|
634
|
-
content: string;
|
|
635
634
|
type: "tool_result";
|
|
635
|
+
content: string;
|
|
636
636
|
tool_use_id: string;
|
|
637
637
|
cache_control?: {
|
|
638
638
|
type: "ephemeral";
|
|
@@ -659,7 +659,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
659
659
|
}[];
|
|
660
660
|
prompt?: string | undefined;
|
|
661
661
|
authToken?: string | undefined;
|
|
662
|
-
costMode?: "
|
|
662
|
+
costMode?: "lite" | "normal" | "max" | "experimental" | undefined;
|
|
663
663
|
model?: string | undefined;
|
|
664
664
|
cwd?: string | undefined;
|
|
665
665
|
}>, z.ZodObject<{
|
|
@@ -792,6 +792,7 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
792
792
|
}>;
|
|
793
793
|
}, "strip", z.ZodTypeAny, {
|
|
794
794
|
type: "init";
|
|
795
|
+
fingerprintId: string;
|
|
795
796
|
fileContext: {
|
|
796
797
|
currentWorkingDirectory: string;
|
|
797
798
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -820,10 +821,10 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
820
821
|
content: string;
|
|
821
822
|
}[][] | undefined;
|
|
822
823
|
};
|
|
823
|
-
fingerprintId: string;
|
|
824
824
|
authToken?: string | undefined;
|
|
825
825
|
}, {
|
|
826
826
|
type: "init";
|
|
827
|
+
fingerprintId: string;
|
|
827
828
|
fileContext: {
|
|
828
829
|
currentWorkingDirectory: string;
|
|
829
830
|
fileTree: import("./util/file").FileTreeNode[];
|
|
@@ -852,7 +853,6 @@ export declare const CLIENT_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
852
853
|
content: string;
|
|
853
854
|
}[][] | undefined;
|
|
854
855
|
};
|
|
855
|
-
fingerprintId: string;
|
|
856
856
|
authToken?: string | undefined;
|
|
857
857
|
}>, z.ZodObject<{
|
|
858
858
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -928,26 +928,26 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
928
928
|
path: z.ZodString;
|
|
929
929
|
content: z.ZodString;
|
|
930
930
|
}, "strip", z.ZodTypeAny, {
|
|
931
|
+
type: "patch" | "file";
|
|
931
932
|
path: string;
|
|
932
933
|
content: string;
|
|
933
|
-
type: "file" | "patch";
|
|
934
934
|
}, {
|
|
935
|
+
type: "patch" | "file";
|
|
935
936
|
path: string;
|
|
936
937
|
content: string;
|
|
937
|
-
type: "file" | "patch";
|
|
938
938
|
}>, "many">;
|
|
939
939
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
940
940
|
type: z.ZodEnum<["patch", "file"]>;
|
|
941
941
|
path: z.ZodString;
|
|
942
942
|
content: z.ZodString;
|
|
943
943
|
}, "strip", z.ZodTypeAny, {
|
|
944
|
+
type: "patch" | "file";
|
|
944
945
|
path: string;
|
|
945
946
|
content: string;
|
|
946
|
-
type: "file" | "patch";
|
|
947
947
|
}, {
|
|
948
|
+
type: "patch" | "file";
|
|
948
949
|
path: string;
|
|
949
950
|
content: string;
|
|
950
|
-
type: "file" | "patch";
|
|
951
951
|
}>, "many">;
|
|
952
952
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
953
953
|
path: z.ZodString;
|
|
@@ -971,14 +971,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
971
971
|
userInputId: string;
|
|
972
972
|
response: string;
|
|
973
973
|
changes: {
|
|
974
|
+
type: "patch" | "file";
|
|
974
975
|
path: string;
|
|
975
976
|
content: string;
|
|
976
|
-
type: "file" | "patch";
|
|
977
977
|
}[];
|
|
978
978
|
changesAlreadyApplied: {
|
|
979
|
+
type: "patch" | "file";
|
|
979
980
|
path: string;
|
|
980
981
|
content: string;
|
|
981
|
-
type: "file" | "patch";
|
|
982
982
|
}[];
|
|
983
983
|
addedFileVersions: {
|
|
984
984
|
path: string;
|
|
@@ -995,14 +995,14 @@ export declare const ResponseCompleteSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
995
995
|
userInputId: string;
|
|
996
996
|
response: string;
|
|
997
997
|
changes: {
|
|
998
|
+
type: "patch" | "file";
|
|
998
999
|
path: string;
|
|
999
1000
|
content: string;
|
|
1000
|
-
type: "file" | "patch";
|
|
1001
1001
|
}[];
|
|
1002
1002
|
changesAlreadyApplied: {
|
|
1003
|
+
type: "patch" | "file";
|
|
1003
1004
|
path: string;
|
|
1004
1005
|
content: string;
|
|
1005
|
-
type: "file" | "patch";
|
|
1006
1006
|
}[];
|
|
1007
1007
|
addedFileVersions: {
|
|
1008
1008
|
path: string;
|
|
@@ -1210,15 +1210,15 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1210
1210
|
type: "ephemeral";
|
|
1211
1211
|
}>>;
|
|
1212
1212
|
}, "strip", z.ZodTypeAny, {
|
|
1213
|
-
content: string;
|
|
1214
1213
|
type: "tool_result";
|
|
1214
|
+
content: string;
|
|
1215
1215
|
tool_use_id: string;
|
|
1216
1216
|
cache_control?: {
|
|
1217
1217
|
type: "ephemeral";
|
|
1218
1218
|
} | undefined;
|
|
1219
1219
|
}, {
|
|
1220
|
-
content: string;
|
|
1221
1220
|
type: "tool_result";
|
|
1221
|
+
content: string;
|
|
1222
1222
|
tool_use_id: string;
|
|
1223
1223
|
cache_control?: {
|
|
1224
1224
|
type: "ephemeral";
|
|
@@ -1282,8 +1282,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1282
1282
|
type: "ephemeral";
|
|
1283
1283
|
} | undefined;
|
|
1284
1284
|
} | {
|
|
1285
|
-
content: string;
|
|
1286
1285
|
type: "tool_result";
|
|
1286
|
+
content: string;
|
|
1287
1287
|
tool_use_id: string;
|
|
1288
1288
|
cache_control?: {
|
|
1289
1289
|
type: "ephemeral";
|
|
@@ -1316,8 +1316,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1316
1316
|
type: "ephemeral";
|
|
1317
1317
|
} | undefined;
|
|
1318
1318
|
} | {
|
|
1319
|
-
content: string;
|
|
1320
1319
|
type: "tool_result";
|
|
1320
|
+
content: string;
|
|
1321
1321
|
tool_use_id: string;
|
|
1322
1322
|
cache_control?: {
|
|
1323
1323
|
type: "ephemeral";
|
|
@@ -1382,8 +1382,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1382
1382
|
type: "ephemeral";
|
|
1383
1383
|
} | undefined;
|
|
1384
1384
|
} | {
|
|
1385
|
-
content: string;
|
|
1386
1385
|
type: "tool_result";
|
|
1386
|
+
content: string;
|
|
1387
1387
|
tool_use_id: string;
|
|
1388
1388
|
cache_control?: {
|
|
1389
1389
|
type: "ephemeral";
|
|
@@ -1448,8 +1448,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1448
1448
|
type: "ephemeral";
|
|
1449
1449
|
} | undefined;
|
|
1450
1450
|
} | {
|
|
1451
|
-
content: string;
|
|
1452
1451
|
type: "tool_result";
|
|
1452
|
+
content: string;
|
|
1453
1453
|
tool_use_id: string;
|
|
1454
1454
|
cache_control?: {
|
|
1455
1455
|
type: "ephemeral";
|
|
@@ -1475,12 +1475,12 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1475
1475
|
id: z.ZodString;
|
|
1476
1476
|
}, "strip", z.ZodTypeAny, {
|
|
1477
1477
|
name: string;
|
|
1478
|
-
parameters: Record<string, string>;
|
|
1479
1478
|
id: string;
|
|
1479
|
+
parameters: Record<string, string>;
|
|
1480
1480
|
}, {
|
|
1481
1481
|
name: string;
|
|
1482
|
-
parameters: Record<string, string>;
|
|
1483
1482
|
id: string;
|
|
1483
|
+
parameters: Record<string, string>;
|
|
1484
1484
|
}>, "many">;
|
|
1485
1485
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
1486
1486
|
name: z.ZodString;
|
|
@@ -1544,8 +1544,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1544
1544
|
type: "ephemeral";
|
|
1545
1545
|
} | undefined;
|
|
1546
1546
|
} | {
|
|
1547
|
-
content: string;
|
|
1548
1547
|
type: "tool_result";
|
|
1548
|
+
content: string;
|
|
1549
1549
|
tool_use_id: string;
|
|
1550
1550
|
cache_control?: {
|
|
1551
1551
|
type: "ephemeral";
|
|
@@ -1572,8 +1572,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1572
1572
|
}[];
|
|
1573
1573
|
toolCalls: {
|
|
1574
1574
|
name: string;
|
|
1575
|
-
parameters: Record<string, string>;
|
|
1576
1575
|
id: string;
|
|
1576
|
+
parameters: Record<string, string>;
|
|
1577
1577
|
}[];
|
|
1578
1578
|
}, {
|
|
1579
1579
|
type: "prompt-response";
|
|
@@ -1624,8 +1624,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1624
1624
|
type: "ephemeral";
|
|
1625
1625
|
} | undefined;
|
|
1626
1626
|
} | {
|
|
1627
|
-
content: string;
|
|
1628
1627
|
type: "tool_result";
|
|
1628
|
+
content: string;
|
|
1629
1629
|
tool_use_id: string;
|
|
1630
1630
|
cache_control?: {
|
|
1631
1631
|
type: "ephemeral";
|
|
@@ -1652,8 +1652,8 @@ export declare const PromptResponseSchema: z.ZodObject<{
|
|
|
1652
1652
|
}[];
|
|
1653
1653
|
toolCalls: {
|
|
1654
1654
|
name: string;
|
|
1655
|
-
parameters: Record<string, string>;
|
|
1656
1655
|
id: string;
|
|
1656
|
+
parameters: Record<string, string>;
|
|
1657
1657
|
}[];
|
|
1658
1658
|
}>;
|
|
1659
1659
|
export type PromptResponse = z.infer<typeof PromptResponseSchema>;
|
|
@@ -1678,26 +1678,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1678
1678
|
path: z.ZodString;
|
|
1679
1679
|
content: z.ZodString;
|
|
1680
1680
|
}, "strip", z.ZodTypeAny, {
|
|
1681
|
+
type: "patch" | "file";
|
|
1681
1682
|
path: string;
|
|
1682
1683
|
content: string;
|
|
1683
|
-
type: "file" | "patch";
|
|
1684
1684
|
}, {
|
|
1685
|
+
type: "patch" | "file";
|
|
1685
1686
|
path: string;
|
|
1686
1687
|
content: string;
|
|
1687
|
-
type: "file" | "patch";
|
|
1688
1688
|
}>, "many">;
|
|
1689
1689
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1690
1690
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1691
1691
|
path: z.ZodString;
|
|
1692
1692
|
content: z.ZodString;
|
|
1693
1693
|
}, "strip", z.ZodTypeAny, {
|
|
1694
|
+
type: "patch" | "file";
|
|
1694
1695
|
path: string;
|
|
1695
1696
|
content: string;
|
|
1696
|
-
type: "file" | "patch";
|
|
1697
1697
|
}, {
|
|
1698
|
+
type: "patch" | "file";
|
|
1698
1699
|
path: string;
|
|
1699
1700
|
content: string;
|
|
1700
|
-
type: "file" | "patch";
|
|
1701
1701
|
}>, "many">;
|
|
1702
1702
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
1703
1703
|
path: z.ZodString;
|
|
@@ -1721,14 +1721,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1721
1721
|
userInputId: string;
|
|
1722
1722
|
response: string;
|
|
1723
1723
|
changes: {
|
|
1724
|
+
type: "patch" | "file";
|
|
1724
1725
|
path: string;
|
|
1725
1726
|
content: string;
|
|
1726
|
-
type: "file" | "patch";
|
|
1727
1727
|
}[];
|
|
1728
1728
|
changesAlreadyApplied: {
|
|
1729
|
+
type: "patch" | "file";
|
|
1729
1730
|
path: string;
|
|
1730
1731
|
content: string;
|
|
1731
|
-
type: "file" | "patch";
|
|
1732
1732
|
}[];
|
|
1733
1733
|
addedFileVersions: {
|
|
1734
1734
|
path: string;
|
|
@@ -1745,14 +1745,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1745
1745
|
userInputId: string;
|
|
1746
1746
|
response: string;
|
|
1747
1747
|
changes: {
|
|
1748
|
+
type: "patch" | "file";
|
|
1748
1749
|
path: string;
|
|
1749
1750
|
content: string;
|
|
1750
|
-
type: "file" | "patch";
|
|
1751
1751
|
}[];
|
|
1752
1752
|
changesAlreadyApplied: {
|
|
1753
|
+
type: "patch" | "file";
|
|
1753
1754
|
path: string;
|
|
1754
1755
|
content: string;
|
|
1755
|
-
type: "file" | "patch";
|
|
1756
1756
|
}[];
|
|
1757
1757
|
addedFileVersions: {
|
|
1758
1758
|
path: string;
|
|
@@ -1945,15 +1945,15 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
1945
1945
|
type: "ephemeral";
|
|
1946
1946
|
}>>;
|
|
1947
1947
|
}, "strip", z.ZodTypeAny, {
|
|
1948
|
-
content: string;
|
|
1949
1948
|
type: "tool_result";
|
|
1949
|
+
content: string;
|
|
1950
1950
|
tool_use_id: string;
|
|
1951
1951
|
cache_control?: {
|
|
1952
1952
|
type: "ephemeral";
|
|
1953
1953
|
} | undefined;
|
|
1954
1954
|
}, {
|
|
1955
|
-
content: string;
|
|
1956
1955
|
type: "tool_result";
|
|
1956
|
+
content: string;
|
|
1957
1957
|
tool_use_id: string;
|
|
1958
1958
|
cache_control?: {
|
|
1959
1959
|
type: "ephemeral";
|
|
@@ -2017,8 +2017,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2017
2017
|
type: "ephemeral";
|
|
2018
2018
|
} | undefined;
|
|
2019
2019
|
} | {
|
|
2020
|
-
content: string;
|
|
2021
2020
|
type: "tool_result";
|
|
2021
|
+
content: string;
|
|
2022
2022
|
tool_use_id: string;
|
|
2023
2023
|
cache_control?: {
|
|
2024
2024
|
type: "ephemeral";
|
|
@@ -2051,8 +2051,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2051
2051
|
type: "ephemeral";
|
|
2052
2052
|
} | undefined;
|
|
2053
2053
|
} | {
|
|
2054
|
-
content: string;
|
|
2055
2054
|
type: "tool_result";
|
|
2055
|
+
content: string;
|
|
2056
2056
|
tool_use_id: string;
|
|
2057
2057
|
cache_control?: {
|
|
2058
2058
|
type: "ephemeral";
|
|
@@ -2117,8 +2117,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2117
2117
|
type: "ephemeral";
|
|
2118
2118
|
} | undefined;
|
|
2119
2119
|
} | {
|
|
2120
|
-
content: string;
|
|
2121
2120
|
type: "tool_result";
|
|
2121
|
+
content: string;
|
|
2122
2122
|
tool_use_id: string;
|
|
2123
2123
|
cache_control?: {
|
|
2124
2124
|
type: "ephemeral";
|
|
@@ -2183,8 +2183,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2183
2183
|
type: "ephemeral";
|
|
2184
2184
|
} | undefined;
|
|
2185
2185
|
} | {
|
|
2186
|
-
content: string;
|
|
2187
2186
|
type: "tool_result";
|
|
2187
|
+
content: string;
|
|
2188
2188
|
tool_use_id: string;
|
|
2189
2189
|
cache_control?: {
|
|
2190
2190
|
type: "ephemeral";
|
|
@@ -2210,12 +2210,12 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2210
2210
|
id: z.ZodString;
|
|
2211
2211
|
}, "strip", z.ZodTypeAny, {
|
|
2212
2212
|
name: string;
|
|
2213
|
-
parameters: Record<string, string>;
|
|
2214
2213
|
id: string;
|
|
2214
|
+
parameters: Record<string, string>;
|
|
2215
2215
|
}, {
|
|
2216
2216
|
name: string;
|
|
2217
|
-
parameters: Record<string, string>;
|
|
2218
2217
|
id: string;
|
|
2218
|
+
parameters: Record<string, string>;
|
|
2219
2219
|
}>, "many">;
|
|
2220
2220
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
2221
2221
|
name: z.ZodString;
|
|
@@ -2279,8 +2279,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2279
2279
|
type: "ephemeral";
|
|
2280
2280
|
} | undefined;
|
|
2281
2281
|
} | {
|
|
2282
|
-
content: string;
|
|
2283
2282
|
type: "tool_result";
|
|
2283
|
+
content: string;
|
|
2284
2284
|
tool_use_id: string;
|
|
2285
2285
|
cache_control?: {
|
|
2286
2286
|
type: "ephemeral";
|
|
@@ -2307,8 +2307,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2307
2307
|
}[];
|
|
2308
2308
|
toolCalls: {
|
|
2309
2309
|
name: string;
|
|
2310
|
-
parameters: Record<string, string>;
|
|
2311
2310
|
id: string;
|
|
2311
|
+
parameters: Record<string, string>;
|
|
2312
2312
|
}[];
|
|
2313
2313
|
}, {
|
|
2314
2314
|
type: "prompt-response";
|
|
@@ -2359,8 +2359,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2359
2359
|
type: "ephemeral";
|
|
2360
2360
|
} | undefined;
|
|
2361
2361
|
} | {
|
|
2362
|
-
content: string;
|
|
2363
2362
|
type: "tool_result";
|
|
2363
|
+
content: string;
|
|
2364
2364
|
tool_use_id: string;
|
|
2365
2365
|
cache_control?: {
|
|
2366
2366
|
type: "ephemeral";
|
|
@@ -2387,8 +2387,8 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2387
2387
|
}[];
|
|
2388
2388
|
toolCalls: {
|
|
2389
2389
|
name: string;
|
|
2390
|
-
parameters: Record<string, string>;
|
|
2391
2390
|
id: string;
|
|
2391
|
+
parameters: Record<string, string>;
|
|
2392
2392
|
}[];
|
|
2393
2393
|
}>, z.ZodObject<{
|
|
2394
2394
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -2424,26 +2424,26 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2424
2424
|
path: z.ZodString;
|
|
2425
2425
|
content: z.ZodString;
|
|
2426
2426
|
}, "strip", z.ZodTypeAny, {
|
|
2427
|
+
type: "patch" | "file";
|
|
2427
2428
|
path: string;
|
|
2428
2429
|
content: string;
|
|
2429
|
-
type: "file" | "patch";
|
|
2430
2430
|
}, {
|
|
2431
|
+
type: "patch" | "file";
|
|
2431
2432
|
path: string;
|
|
2432
2433
|
content: string;
|
|
2433
|
-
type: "file" | "patch";
|
|
2434
2434
|
}>, "many">;
|
|
2435
2435
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2436
2436
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2437
2437
|
path: z.ZodString;
|
|
2438
2438
|
content: z.ZodString;
|
|
2439
2439
|
}, "strip", z.ZodTypeAny, {
|
|
2440
|
+
type: "patch" | "file";
|
|
2440
2441
|
path: string;
|
|
2441
2442
|
content: string;
|
|
2442
|
-
type: "file" | "patch";
|
|
2443
2443
|
}, {
|
|
2444
|
+
type: "patch" | "file";
|
|
2444
2445
|
path: string;
|
|
2445
2446
|
content: string;
|
|
2446
|
-
type: "file" | "patch";
|
|
2447
2447
|
}>, "many">;
|
|
2448
2448
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2449
2449
|
path: z.ZodString;
|
|
@@ -2466,14 +2466,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2466
2466
|
userInputId: string;
|
|
2467
2467
|
response: string;
|
|
2468
2468
|
changes: {
|
|
2469
|
+
type: "patch" | "file";
|
|
2469
2470
|
path: string;
|
|
2470
2471
|
content: string;
|
|
2471
|
-
type: "file" | "patch";
|
|
2472
2472
|
}[];
|
|
2473
2473
|
changesAlreadyApplied: {
|
|
2474
|
+
type: "patch" | "file";
|
|
2474
2475
|
path: string;
|
|
2475
2476
|
content: string;
|
|
2476
|
-
type: "file" | "patch";
|
|
2477
2477
|
}[];
|
|
2478
2478
|
addedFileVersions: {
|
|
2479
2479
|
path: string;
|
|
@@ -2490,14 +2490,14 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2490
2490
|
userInputId: string;
|
|
2491
2491
|
response: string;
|
|
2492
2492
|
changes: {
|
|
2493
|
+
type: "patch" | "file";
|
|
2493
2494
|
path: string;
|
|
2494
2495
|
content: string;
|
|
2495
|
-
type: "file" | "patch";
|
|
2496
2496
|
}[];
|
|
2497
2497
|
changesAlreadyApplied: {
|
|
2498
|
+
type: "patch" | "file";
|
|
2498
2499
|
path: string;
|
|
2499
2500
|
content: string;
|
|
2500
|
-
type: "file" | "patch";
|
|
2501
2501
|
}[];
|
|
2502
2502
|
addedFileVersions: {
|
|
2503
2503
|
path: string;
|
|
@@ -2590,13 +2590,13 @@ export declare const SERVER_ACTION_SCHEMA: z.ZodDiscriminatedUnion<"type", [z.Zo
|
|
|
2590
2590
|
error: z.ZodOptional<z.ZodString>;
|
|
2591
2591
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
2592
2592
|
}, "strip", z.ZodTypeAny, {
|
|
2593
|
-
message: string;
|
|
2594
2593
|
type: "action-error";
|
|
2594
|
+
message: string;
|
|
2595
2595
|
remainingBalance?: number | undefined;
|
|
2596
2596
|
error?: string | undefined;
|
|
2597
2597
|
}, {
|
|
2598
|
-
message: string;
|
|
2599
2598
|
type: "action-error";
|
|
2599
|
+
message: string;
|
|
2600
2600
|
remainingBalance?: number | undefined;
|
|
2601
2601
|
error?: string | undefined;
|
|
2602
2602
|
}>, z.ZodObject<{
|