codebuff 1.0.248 → 1.0.249
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/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +32 -32
- package/dist/common/billing/auto-topup.d.ts +8 -0
- package/dist/common/billing/auto-topup.js +192 -0
- package/dist/common/billing/auto-topup.js.map +1 -0
- package/dist/common/billing/balance-calculator.d.ts +57 -0
- package/dist/common/billing/balance-calculator.js +218 -0
- package/dist/common/billing/balance-calculator.js.map +1 -0
- package/dist/common/billing/conversion.d.ts +9 -0
- package/dist/common/billing/conversion.js +20 -0
- package/dist/common/billing/conversion.js.map +1 -0
- package/dist/common/billing/credit-conversion.d.ts +24 -0
- package/dist/common/billing/credit-conversion.js +48 -0
- package/dist/common/billing/credit-conversion.js.map +1 -0
- package/dist/common/billing/grant-credits.d.ts +43 -0
- package/dist/common/billing/grant-credits.js +266 -0
- package/dist/common/billing/grant-credits.js.map +1 -0
- package/dist/common/billing/plans.d.ts +13 -0
- package/dist/common/billing/plans.js +44 -0
- package/dist/common/billing/plans.js.map +1 -0
- package/dist/common/json-config/__tests__/__snapshots__/stringify-schema.test.js.snap +66 -0
- package/dist/common/types/plan.d.ts +24 -0
- package/dist/{types.js → common/types/plan.js} +1 -1
- package/dist/common/types/plan.js.map +1 -0
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/server/referral.d.ts +14 -0
- package/dist/common/util/server/referral.js +85 -0
- package/dist/common/util/server/referral.js.map +1 -0
- package/dist/common/websockets/websocket-schema.d.ts +68 -68
- package/package.json +1 -1
- package/dist/background-process-manager.d.ts +0 -50
- package/dist/background-process-manager.js +0 -359
- package/dist/background-process-manager.js.map +0 -1
- package/dist/browser-runner.d.ts +0 -35
- package/dist/browser-runner.js +0 -680
- package/dist/browser-runner.js.map +0 -1
- package/dist/chat-storage.d.ts +0 -2
- package/dist/chat-storage.js +0 -93
- package/dist/chat-storage.js.map +0 -1
- package/dist/checkpoints/checkpoint-manager.d.ts +0 -94
- package/dist/checkpoints/checkpoint-manager.js +0 -280
- package/dist/checkpoints/checkpoint-manager.js.map +0 -1
- package/dist/checkpoints/file-manager.d.ts +0 -72
- package/dist/checkpoints/file-manager.js +0 -311
- package/dist/checkpoints/file-manager.js.map +0 -1
- package/dist/cli-handlers/api-key.d.ts +0 -25
- package/dist/cli-handlers/api-key.js +0 -66
- package/dist/cli-handlers/api-key.js.map +0 -1
- package/dist/cli-handlers/checkpoint.d.ts +0 -18
- package/dist/cli-handlers/checkpoint.js +0 -195
- package/dist/cli-handlers/checkpoint.js.map +0 -1
- package/dist/cli-handlers/diff.d.ts +0 -2
- package/dist/cli-handlers/diff.js +0 -31
- package/dist/cli-handlers/diff.js.map +0 -1
- package/dist/cli-handlers/easter-egg.d.ts +0 -1
- package/dist/cli-handlers/easter-egg.js +0 -126
- package/dist/cli-handlers/easter-egg.js.map +0 -1
- package/dist/cli-handlers/inititalization-flow.d.ts +0 -1
- package/dist/cli-handlers/inititalization-flow.js +0 -24
- package/dist/cli-handlers/inititalization-flow.js.map +0 -1
- package/dist/cli.d.ts +0 -44
- package/dist/cli.js +0 -478
- package/dist/cli.js.map +0 -1
- package/dist/client.d.ts +0 -157
- package/dist/client.js +0 -836
- package/dist/client.js.map +0 -1
- package/dist/config.d.ts +0 -4
- package/dist/config.js +0 -12
- package/dist/config.js.map +0 -1
- package/dist/create-template-project.d.ts +0 -1
- package/dist/create-template-project.js +0 -107
- package/dist/create-template-project.js.map +0 -1
- package/dist/credentials.d.ts +0 -4
- package/dist/credentials.js +0 -38
- package/dist/credentials.js.map +0 -1
- package/dist/dev-process-manager.d.ts +0 -10
- package/dist/dev-process-manager.js +0 -54
- package/dist/dev-process-manager.js.map +0 -1
- package/dist/fingerprint.d.ts +0 -1
- package/dist/fingerprint.js +0 -48
- package/dist/fingerprint.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -117
- package/dist/index.js.map +0 -1
- package/dist/menu.d.ts +0 -3
- package/dist/menu.js +0 -126
- package/dist/menu.js.map +0 -1
- package/dist/project-files.d.ts +0 -114
- package/dist/project-files.js +0 -513
- package/dist/project-files.js.map +0 -1
- package/dist/startup-process-handler.d.ts +0 -2
- package/dist/startup-process-handler.js +0 -21
- package/dist/startup-process-handler.js.map +0 -1
- package/dist/tool-handlers.d.ts +0 -28
- package/dist/tool-handlers.js +0 -240
- package/dist/tool-handlers.js.map +0 -1
- package/dist/types.d.ts +0 -15
- package/dist/types.js.map +0 -1
- package/dist/update-codebuff.d.ts +0 -1
- package/dist/update-codebuff.js +0 -160
- package/dist/update-codebuff.js.map +0 -1
- package/dist/utils/__tests__/background-process-manager.test.d.ts +0 -1
- package/dist/utils/__tests__/background-process-manager.test.js +0 -289
- package/dist/utils/__tests__/background-process-manager.test.js.map +0 -1
- package/dist/utils/__tests__/tool-renderers.test.d.ts +0 -1
- package/dist/utils/__tests__/tool-renderers.test.js +0 -51
- package/dist/utils/__tests__/tool-renderers.test.js.map +0 -1
- package/dist/utils/__tests__/xml-stream-parser.test.d.ts +0 -1
- package/dist/utils/__tests__/xml-stream-parser.test.js +0 -229
- package/dist/utils/__tests__/xml-stream-parser.test.js.map +0 -1
- package/dist/utils/analytics.d.ts +0 -6
- package/dist/utils/analytics.js +0 -59
- package/dist/utils/analytics.js.map +0 -1
- package/dist/utils/detect-shell.d.ts +0 -1
- package/dist/utils/detect-shell.js +0 -60
- package/dist/utils/detect-shell.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -21
- package/dist/utils/logger.js +0 -105
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/spinner.d.ts +0 -11
- package/dist/utils/spinner.js +0 -87
- package/dist/utils/spinner.js.map +0 -1
- package/dist/utils/system-info.d.ts +0 -8
- package/dist/utils/system-info.js +0 -22
- package/dist/utils/system-info.js.map +0 -1
- package/dist/utils/terminal.d.ts +0 -41
- package/dist/utils/terminal.js +0 -475
- package/dist/utils/terminal.js.map +0 -1
- package/dist/utils/tool-renderers.d.ts +0 -16
- package/dist/utils/tool-renderers.js +0 -145
- package/dist/utils/tool-renderers.js.map +0 -1
- package/dist/utils/xml-stream-parser.d.ts +0 -9
- package/dist/utils/xml-stream-parser.js +0 -128
- package/dist/utils/xml-stream-parser.js.map +0 -1
- package/dist/web-scraper.d.ts +0 -3
- package/dist/web-scraper.js +0 -57
- package/dist/web-scraper.js.map +0 -1
- package/dist/workers/checkpoint-worker.d.ts +0 -1
- package/dist/workers/checkpoint-worker.js +0 -48
- package/dist/workers/checkpoint-worker.js.map +0 -1
- package/dist/workers/project-context.d.ts +0 -1
- package/dist/workers/project-context.js +0 -17
- package/dist/workers/project-context.js.map +0 -1
|
@@ -6,12 +6,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
6
6
|
clientSessionId: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
type: "identify";
|
|
9
|
-
clientSessionId: string;
|
|
10
9
|
txid: number;
|
|
10
|
+
clientSessionId: string;
|
|
11
11
|
}, {
|
|
12
12
|
type: "identify";
|
|
13
|
-
clientSessionId: string;
|
|
14
13
|
txid: number;
|
|
14
|
+
clientSessionId: string;
|
|
15
15
|
}>;
|
|
16
16
|
readonly subscribe: z.ZodObject<{
|
|
17
17
|
type: z.ZodLiteral<"subscribe">;
|
|
@@ -790,6 +790,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
790
790
|
}>;
|
|
791
791
|
}, "strip", z.ZodTypeAny, {
|
|
792
792
|
type: "init";
|
|
793
|
+
fingerprintId: string;
|
|
793
794
|
fileContext: {
|
|
794
795
|
currentWorkingDirectory: string;
|
|
795
796
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -817,10 +818,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
817
818
|
content: string;
|
|
818
819
|
}[][] | undefined;
|
|
819
820
|
};
|
|
820
|
-
fingerprintId: string;
|
|
821
821
|
authToken?: string | undefined;
|
|
822
822
|
}, {
|
|
823
823
|
type: "init";
|
|
824
|
+
fingerprintId: string;
|
|
824
825
|
fileContext: {
|
|
825
826
|
currentWorkingDirectory: string;
|
|
826
827
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -848,7 +849,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
848
849
|
content: string;
|
|
849
850
|
}[][] | undefined;
|
|
850
851
|
};
|
|
851
|
-
fingerprintId: string;
|
|
852
852
|
authToken?: string | undefined;
|
|
853
853
|
}>, z.ZodObject<{
|
|
854
854
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -953,6 +953,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
953
953
|
requestId?: string | undefined;
|
|
954
954
|
} | {
|
|
955
955
|
type: "init";
|
|
956
|
+
fingerprintId: string;
|
|
956
957
|
fileContext: {
|
|
957
958
|
currentWorkingDirectory: string;
|
|
958
959
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -980,7 +981,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
980
981
|
content: string;
|
|
981
982
|
}[][] | undefined;
|
|
982
983
|
};
|
|
983
|
-
fingerprintId: string;
|
|
984
984
|
authToken?: string | undefined;
|
|
985
985
|
} | {
|
|
986
986
|
type: "generate-commit-message";
|
|
@@ -1076,6 +1076,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1076
1076
|
requestId?: string | undefined;
|
|
1077
1077
|
} | {
|
|
1078
1078
|
type: "init";
|
|
1079
|
+
fingerprintId: string;
|
|
1079
1080
|
fileContext: {
|
|
1080
1081
|
currentWorkingDirectory: string;
|
|
1081
1082
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1103,7 +1104,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1103
1104
|
content: string;
|
|
1104
1105
|
}[][] | undefined;
|
|
1105
1106
|
};
|
|
1106
|
-
fingerprintId: string;
|
|
1107
1107
|
authToken?: string | undefined;
|
|
1108
1108
|
} | {
|
|
1109
1109
|
type: "generate-commit-message";
|
|
@@ -1120,12 +1120,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1120
1120
|
clientSessionId: z.ZodString;
|
|
1121
1121
|
}, "strip", z.ZodTypeAny, {
|
|
1122
1122
|
type: "identify";
|
|
1123
|
-
clientSessionId: string;
|
|
1124
1123
|
txid: number;
|
|
1124
|
+
clientSessionId: string;
|
|
1125
1125
|
}, {
|
|
1126
1126
|
type: "identify";
|
|
1127
|
-
clientSessionId: string;
|
|
1128
1127
|
txid: number;
|
|
1128
|
+
clientSessionId: string;
|
|
1129
1129
|
}>, z.ZodObject<{
|
|
1130
1130
|
type: z.ZodLiteral<"subscribe">;
|
|
1131
1131
|
txid: z.ZodNumber;
|
|
@@ -1900,6 +1900,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1900
1900
|
}>;
|
|
1901
1901
|
}, "strip", z.ZodTypeAny, {
|
|
1902
1902
|
type: "init";
|
|
1903
|
+
fingerprintId: string;
|
|
1903
1904
|
fileContext: {
|
|
1904
1905
|
currentWorkingDirectory: string;
|
|
1905
1906
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1927,10 +1928,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1927
1928
|
content: string;
|
|
1928
1929
|
}[][] | undefined;
|
|
1929
1930
|
};
|
|
1930
|
-
fingerprintId: string;
|
|
1931
1931
|
authToken?: string | undefined;
|
|
1932
1932
|
}, {
|
|
1933
1933
|
type: "init";
|
|
1934
|
+
fingerprintId: string;
|
|
1934
1935
|
fileContext: {
|
|
1935
1936
|
currentWorkingDirectory: string;
|
|
1936
1937
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1958,7 +1959,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1958
1959
|
content: string;
|
|
1959
1960
|
}[][] | undefined;
|
|
1960
1961
|
};
|
|
1961
|
-
fingerprintId: string;
|
|
1962
1962
|
authToken?: string | undefined;
|
|
1963
1963
|
}>, z.ZodObject<{
|
|
1964
1964
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -2063,6 +2063,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2063
2063
|
requestId?: string | undefined;
|
|
2064
2064
|
} | {
|
|
2065
2065
|
type: "init";
|
|
2066
|
+
fingerprintId: string;
|
|
2066
2067
|
fileContext: {
|
|
2067
2068
|
currentWorkingDirectory: string;
|
|
2068
2069
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2090,7 +2091,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2090
2091
|
content: string;
|
|
2091
2092
|
}[][] | undefined;
|
|
2092
2093
|
};
|
|
2093
|
-
fingerprintId: string;
|
|
2094
2094
|
authToken?: string | undefined;
|
|
2095
2095
|
} | {
|
|
2096
2096
|
type: "generate-commit-message";
|
|
@@ -2186,6 +2186,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2186
2186
|
requestId?: string | undefined;
|
|
2187
2187
|
} | {
|
|
2188
2188
|
type: "init";
|
|
2189
|
+
fingerprintId: string;
|
|
2189
2190
|
fileContext: {
|
|
2190
2191
|
currentWorkingDirectory: string;
|
|
2191
2192
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2213,7 +2214,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2213
2214
|
content: string;
|
|
2214
2215
|
}[][] | undefined;
|
|
2215
2216
|
};
|
|
2216
|
-
fingerprintId: string;
|
|
2217
2217
|
authToken?: string | undefined;
|
|
2218
2218
|
} | {
|
|
2219
2219
|
type: "generate-commit-message";
|
|
@@ -2265,12 +2265,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2265
2265
|
path: z.ZodString;
|
|
2266
2266
|
content: z.ZodString;
|
|
2267
2267
|
}, "strip", z.ZodTypeAny, {
|
|
2268
|
+
type: "patch" | "file";
|
|
2268
2269
|
path: string;
|
|
2269
|
-
type: "file" | "patch";
|
|
2270
2270
|
content: string;
|
|
2271
2271
|
}, {
|
|
2272
|
+
type: "patch" | "file";
|
|
2272
2273
|
path: string;
|
|
2273
|
-
type: "file" | "patch";
|
|
2274
2274
|
content: string;
|
|
2275
2275
|
}>, "many">;
|
|
2276
2276
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -2278,12 +2278,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2278
2278
|
path: z.ZodString;
|
|
2279
2279
|
content: z.ZodString;
|
|
2280
2280
|
}, "strip", z.ZodTypeAny, {
|
|
2281
|
+
type: "patch" | "file";
|
|
2281
2282
|
path: string;
|
|
2282
|
-
type: "file" | "patch";
|
|
2283
2283
|
content: string;
|
|
2284
2284
|
}, {
|
|
2285
|
+
type: "patch" | "file";
|
|
2285
2286
|
path: string;
|
|
2286
|
-
type: "file" | "patch";
|
|
2287
2287
|
content: string;
|
|
2288
2288
|
}>, "many">;
|
|
2289
2289
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -2308,13 +2308,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2308
2308
|
userInputId: string;
|
|
2309
2309
|
response: string;
|
|
2310
2310
|
changes: {
|
|
2311
|
+
type: "patch" | "file";
|
|
2311
2312
|
path: string;
|
|
2312
|
-
type: "file" | "patch";
|
|
2313
2313
|
content: string;
|
|
2314
2314
|
}[];
|
|
2315
2315
|
changesAlreadyApplied: {
|
|
2316
|
+
type: "patch" | "file";
|
|
2316
2317
|
path: string;
|
|
2317
|
-
type: "file" | "patch";
|
|
2318
2318
|
content: string;
|
|
2319
2319
|
}[];
|
|
2320
2320
|
addedFileVersions: {
|
|
@@ -2332,13 +2332,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2332
2332
|
userInputId: string;
|
|
2333
2333
|
response: string;
|
|
2334
2334
|
changes: {
|
|
2335
|
+
type: "patch" | "file";
|
|
2335
2336
|
path: string;
|
|
2336
|
-
type: "file" | "patch";
|
|
2337
2337
|
content: string;
|
|
2338
2338
|
}[];
|
|
2339
2339
|
changesAlreadyApplied: {
|
|
2340
|
+
type: "patch" | "file";
|
|
2340
2341
|
path: string;
|
|
2341
|
-
type: "file" | "patch";
|
|
2342
2342
|
content: string;
|
|
2343
2343
|
}[];
|
|
2344
2344
|
addedFileVersions: {
|
|
@@ -3004,12 +3004,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3004
3004
|
path: z.ZodString;
|
|
3005
3005
|
content: z.ZodString;
|
|
3006
3006
|
}, "strip", z.ZodTypeAny, {
|
|
3007
|
+
type: "patch" | "file";
|
|
3007
3008
|
path: string;
|
|
3008
|
-
type: "file" | "patch";
|
|
3009
3009
|
content: string;
|
|
3010
3010
|
}, {
|
|
3011
|
+
type: "patch" | "file";
|
|
3011
3012
|
path: string;
|
|
3012
|
-
type: "file" | "patch";
|
|
3013
3013
|
content: string;
|
|
3014
3014
|
}>, "many">;
|
|
3015
3015
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3017,12 +3017,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3017
3017
|
path: z.ZodString;
|
|
3018
3018
|
content: z.ZodString;
|
|
3019
3019
|
}, "strip", z.ZodTypeAny, {
|
|
3020
|
+
type: "patch" | "file";
|
|
3020
3021
|
path: string;
|
|
3021
|
-
type: "file" | "patch";
|
|
3022
3022
|
content: string;
|
|
3023
3023
|
}, {
|
|
3024
|
+
type: "patch" | "file";
|
|
3024
3025
|
path: string;
|
|
3025
|
-
type: "file" | "patch";
|
|
3026
3026
|
content: string;
|
|
3027
3027
|
}>, "many">;
|
|
3028
3028
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3046,13 +3046,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3046
3046
|
userInputId: string;
|
|
3047
3047
|
response: string;
|
|
3048
3048
|
changes: {
|
|
3049
|
+
type: "patch" | "file";
|
|
3049
3050
|
path: string;
|
|
3050
|
-
type: "file" | "patch";
|
|
3051
3051
|
content: string;
|
|
3052
3052
|
}[];
|
|
3053
3053
|
changesAlreadyApplied: {
|
|
3054
|
+
type: "patch" | "file";
|
|
3054
3055
|
path: string;
|
|
3055
|
-
type: "file" | "patch";
|
|
3056
3056
|
content: string;
|
|
3057
3057
|
}[];
|
|
3058
3058
|
addedFileVersions: {
|
|
@@ -3070,13 +3070,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3070
3070
|
userInputId: string;
|
|
3071
3071
|
response: string;
|
|
3072
3072
|
changes: {
|
|
3073
|
+
type: "patch" | "file";
|
|
3073
3074
|
path: string;
|
|
3074
|
-
type: "file" | "patch";
|
|
3075
3075
|
content: string;
|
|
3076
3076
|
}[];
|
|
3077
3077
|
changesAlreadyApplied: {
|
|
3078
|
+
type: "patch" | "file";
|
|
3078
3079
|
path: string;
|
|
3079
|
-
type: "file" | "patch";
|
|
3080
3080
|
content: string;
|
|
3081
3081
|
}[];
|
|
3082
3082
|
addedFileVersions: {
|
|
@@ -3170,13 +3170,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3170
3170
|
error: z.ZodOptional<z.ZodString>;
|
|
3171
3171
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
3172
3172
|
}, "strip", z.ZodTypeAny, {
|
|
3173
|
-
message: string;
|
|
3174
3173
|
type: "action-error";
|
|
3174
|
+
message: string;
|
|
3175
3175
|
remainingBalance?: number | undefined;
|
|
3176
3176
|
error?: string | undefined;
|
|
3177
3177
|
}, {
|
|
3178
|
-
message: string;
|
|
3179
3178
|
type: "action-error";
|
|
3179
|
+
message: string;
|
|
3180
3180
|
remainingBalance?: number | undefined;
|
|
3181
3181
|
error?: string | undefined;
|
|
3182
3182
|
}>, z.ZodObject<{
|
|
@@ -3216,13 +3216,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3216
3216
|
userInputId: string;
|
|
3217
3217
|
response: string;
|
|
3218
3218
|
changes: {
|
|
3219
|
+
type: "patch" | "file";
|
|
3219
3220
|
path: string;
|
|
3220
|
-
type: "file" | "patch";
|
|
3221
3221
|
content: string;
|
|
3222
3222
|
}[];
|
|
3223
3223
|
changesAlreadyApplied: {
|
|
3224
|
+
type: "patch" | "file";
|
|
3224
3225
|
path: string;
|
|
3225
|
-
type: "file" | "patch";
|
|
3226
3226
|
content: string;
|
|
3227
3227
|
}[];
|
|
3228
3228
|
addedFileVersions: {
|
|
@@ -3336,13 +3336,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3336
3336
|
userInputId: string;
|
|
3337
3337
|
response: string;
|
|
3338
3338
|
changes: {
|
|
3339
|
+
type: "patch" | "file";
|
|
3339
3340
|
path: string;
|
|
3340
|
-
type: "file" | "patch";
|
|
3341
3341
|
content: string;
|
|
3342
3342
|
}[];
|
|
3343
3343
|
changesAlreadyApplied: {
|
|
3344
|
+
type: "patch" | "file";
|
|
3344
3345
|
path: string;
|
|
3345
|
-
type: "file" | "patch";
|
|
3346
3346
|
content: string;
|
|
3347
3347
|
}[];
|
|
3348
3348
|
addedFileVersions: {
|
|
@@ -3359,8 +3359,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3359
3359
|
isUpToDate: boolean;
|
|
3360
3360
|
latestVersion: string;
|
|
3361
3361
|
} | {
|
|
3362
|
-
message: string;
|
|
3363
3362
|
type: "action-error";
|
|
3363
|
+
message: string;
|
|
3364
3364
|
remainingBalance?: number | undefined;
|
|
3365
3365
|
error?: string | undefined;
|
|
3366
3366
|
} | {
|
|
@@ -3390,13 +3390,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3390
3390
|
userInputId: string;
|
|
3391
3391
|
response: string;
|
|
3392
3392
|
changes: {
|
|
3393
|
+
type: "patch" | "file";
|
|
3393
3394
|
path: string;
|
|
3394
|
-
type: "file" | "patch";
|
|
3395
3395
|
content: string;
|
|
3396
3396
|
}[];
|
|
3397
3397
|
changesAlreadyApplied: {
|
|
3398
|
+
type: "patch" | "file";
|
|
3398
3399
|
path: string;
|
|
3399
|
-
type: "file" | "patch";
|
|
3400
3400
|
content: string;
|
|
3401
3401
|
}[];
|
|
3402
3402
|
addedFileVersions: {
|
|
@@ -3510,13 +3510,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3510
3510
|
userInputId: string;
|
|
3511
3511
|
response: string;
|
|
3512
3512
|
changes: {
|
|
3513
|
+
type: "patch" | "file";
|
|
3513
3514
|
path: string;
|
|
3514
|
-
type: "file" | "patch";
|
|
3515
3515
|
content: string;
|
|
3516
3516
|
}[];
|
|
3517
3517
|
changesAlreadyApplied: {
|
|
3518
|
+
type: "patch" | "file";
|
|
3518
3519
|
path: string;
|
|
3519
|
-
type: "file" | "patch";
|
|
3520
3520
|
content: string;
|
|
3521
3521
|
}[];
|
|
3522
3522
|
addedFileVersions: {
|
|
@@ -3533,8 +3533,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3533
3533
|
isUpToDate: boolean;
|
|
3534
3534
|
latestVersion: string;
|
|
3535
3535
|
} | {
|
|
3536
|
-
message: string;
|
|
3537
3536
|
type: "action-error";
|
|
3537
|
+
message: string;
|
|
3538
3538
|
remainingBalance?: number | undefined;
|
|
3539
3539
|
error?: string | undefined;
|
|
3540
3540
|
} | {
|
|
@@ -3583,12 +3583,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3583
3583
|
path: z.ZodString;
|
|
3584
3584
|
content: z.ZodString;
|
|
3585
3585
|
}, "strip", z.ZodTypeAny, {
|
|
3586
|
+
type: "patch" | "file";
|
|
3586
3587
|
path: string;
|
|
3587
|
-
type: "file" | "patch";
|
|
3588
3588
|
content: string;
|
|
3589
3589
|
}, {
|
|
3590
|
+
type: "patch" | "file";
|
|
3590
3591
|
path: string;
|
|
3591
|
-
type: "file" | "patch";
|
|
3592
3592
|
content: string;
|
|
3593
3593
|
}>, "many">;
|
|
3594
3594
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -3596,12 +3596,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3596
3596
|
path: z.ZodString;
|
|
3597
3597
|
content: z.ZodString;
|
|
3598
3598
|
}, "strip", z.ZodTypeAny, {
|
|
3599
|
+
type: "patch" | "file";
|
|
3599
3600
|
path: string;
|
|
3600
|
-
type: "file" | "patch";
|
|
3601
3601
|
content: string;
|
|
3602
3602
|
}, {
|
|
3603
|
+
type: "patch" | "file";
|
|
3603
3604
|
path: string;
|
|
3604
|
-
type: "file" | "patch";
|
|
3605
3605
|
content: string;
|
|
3606
3606
|
}>, "many">;
|
|
3607
3607
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -3626,13 +3626,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3626
3626
|
userInputId: string;
|
|
3627
3627
|
response: string;
|
|
3628
3628
|
changes: {
|
|
3629
|
+
type: "patch" | "file";
|
|
3629
3630
|
path: string;
|
|
3630
|
-
type: "file" | "patch";
|
|
3631
3631
|
content: string;
|
|
3632
3632
|
}[];
|
|
3633
3633
|
changesAlreadyApplied: {
|
|
3634
|
+
type: "patch" | "file";
|
|
3634
3635
|
path: string;
|
|
3635
|
-
type: "file" | "patch";
|
|
3636
3636
|
content: string;
|
|
3637
3637
|
}[];
|
|
3638
3638
|
addedFileVersions: {
|
|
@@ -3650,13 +3650,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3650
3650
|
userInputId: string;
|
|
3651
3651
|
response: string;
|
|
3652
3652
|
changes: {
|
|
3653
|
+
type: "patch" | "file";
|
|
3653
3654
|
path: string;
|
|
3654
|
-
type: "file" | "patch";
|
|
3655
3655
|
content: string;
|
|
3656
3656
|
}[];
|
|
3657
3657
|
changesAlreadyApplied: {
|
|
3658
|
+
type: "patch" | "file";
|
|
3658
3659
|
path: string;
|
|
3659
|
-
type: "file" | "patch";
|
|
3660
3660
|
content: string;
|
|
3661
3661
|
}[];
|
|
3662
3662
|
addedFileVersions: {
|
|
@@ -4322,12 +4322,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4322
4322
|
path: z.ZodString;
|
|
4323
4323
|
content: z.ZodString;
|
|
4324
4324
|
}, "strip", z.ZodTypeAny, {
|
|
4325
|
+
type: "patch" | "file";
|
|
4325
4326
|
path: string;
|
|
4326
|
-
type: "file" | "patch";
|
|
4327
4327
|
content: string;
|
|
4328
4328
|
}, {
|
|
4329
|
+
type: "patch" | "file";
|
|
4329
4330
|
path: string;
|
|
4330
|
-
type: "file" | "patch";
|
|
4331
4331
|
content: string;
|
|
4332
4332
|
}>, "many">;
|
|
4333
4333
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
@@ -4335,12 +4335,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4335
4335
|
path: z.ZodString;
|
|
4336
4336
|
content: z.ZodString;
|
|
4337
4337
|
}, "strip", z.ZodTypeAny, {
|
|
4338
|
+
type: "patch" | "file";
|
|
4338
4339
|
path: string;
|
|
4339
|
-
type: "file" | "patch";
|
|
4340
4340
|
content: string;
|
|
4341
4341
|
}, {
|
|
4342
|
+
type: "patch" | "file";
|
|
4342
4343
|
path: string;
|
|
4343
|
-
type: "file" | "patch";
|
|
4344
4344
|
content: string;
|
|
4345
4345
|
}>, "many">;
|
|
4346
4346
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
@@ -4364,13 +4364,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4364
4364
|
userInputId: string;
|
|
4365
4365
|
response: string;
|
|
4366
4366
|
changes: {
|
|
4367
|
+
type: "patch" | "file";
|
|
4367
4368
|
path: string;
|
|
4368
|
-
type: "file" | "patch";
|
|
4369
4369
|
content: string;
|
|
4370
4370
|
}[];
|
|
4371
4371
|
changesAlreadyApplied: {
|
|
4372
|
+
type: "patch" | "file";
|
|
4372
4373
|
path: string;
|
|
4373
|
-
type: "file" | "patch";
|
|
4374
4374
|
content: string;
|
|
4375
4375
|
}[];
|
|
4376
4376
|
addedFileVersions: {
|
|
@@ -4388,13 +4388,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4388
4388
|
userInputId: string;
|
|
4389
4389
|
response: string;
|
|
4390
4390
|
changes: {
|
|
4391
|
+
type: "patch" | "file";
|
|
4391
4392
|
path: string;
|
|
4392
|
-
type: "file" | "patch";
|
|
4393
4393
|
content: string;
|
|
4394
4394
|
}[];
|
|
4395
4395
|
changesAlreadyApplied: {
|
|
4396
|
+
type: "patch" | "file";
|
|
4396
4397
|
path: string;
|
|
4397
|
-
type: "file" | "patch";
|
|
4398
4398
|
content: string;
|
|
4399
4399
|
}[];
|
|
4400
4400
|
addedFileVersions: {
|
|
@@ -4488,13 +4488,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4488
4488
|
error: z.ZodOptional<z.ZodString>;
|
|
4489
4489
|
remainingBalance: z.ZodOptional<z.ZodNumber>;
|
|
4490
4490
|
}, "strip", z.ZodTypeAny, {
|
|
4491
|
-
message: string;
|
|
4492
4491
|
type: "action-error";
|
|
4492
|
+
message: string;
|
|
4493
4493
|
remainingBalance?: number | undefined;
|
|
4494
4494
|
error?: string | undefined;
|
|
4495
4495
|
}, {
|
|
4496
|
-
message: string;
|
|
4497
4496
|
type: "action-error";
|
|
4497
|
+
message: string;
|
|
4498
4498
|
remainingBalance?: number | undefined;
|
|
4499
4499
|
error?: string | undefined;
|
|
4500
4500
|
}>, z.ZodObject<{
|
|
@@ -4534,13 +4534,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4534
4534
|
userInputId: string;
|
|
4535
4535
|
response: string;
|
|
4536
4536
|
changes: {
|
|
4537
|
+
type: "patch" | "file";
|
|
4537
4538
|
path: string;
|
|
4538
|
-
type: "file" | "patch";
|
|
4539
4539
|
content: string;
|
|
4540
4540
|
}[];
|
|
4541
4541
|
changesAlreadyApplied: {
|
|
4542
|
+
type: "patch" | "file";
|
|
4542
4543
|
path: string;
|
|
4543
|
-
type: "file" | "patch";
|
|
4544
4544
|
content: string;
|
|
4545
4545
|
}[];
|
|
4546
4546
|
addedFileVersions: {
|
|
@@ -4654,13 +4654,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4654
4654
|
userInputId: string;
|
|
4655
4655
|
response: string;
|
|
4656
4656
|
changes: {
|
|
4657
|
+
type: "patch" | "file";
|
|
4657
4658
|
path: string;
|
|
4658
|
-
type: "file" | "patch";
|
|
4659
4659
|
content: string;
|
|
4660
4660
|
}[];
|
|
4661
4661
|
changesAlreadyApplied: {
|
|
4662
|
+
type: "patch" | "file";
|
|
4662
4663
|
path: string;
|
|
4663
|
-
type: "file" | "patch";
|
|
4664
4664
|
content: string;
|
|
4665
4665
|
}[];
|
|
4666
4666
|
addedFileVersions: {
|
|
@@ -4677,8 +4677,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4677
4677
|
isUpToDate: boolean;
|
|
4678
4678
|
latestVersion: string;
|
|
4679
4679
|
} | {
|
|
4680
|
-
message: string;
|
|
4681
4680
|
type: "action-error";
|
|
4681
|
+
message: string;
|
|
4682
4682
|
remainingBalance?: number | undefined;
|
|
4683
4683
|
error?: string | undefined;
|
|
4684
4684
|
} | {
|
|
@@ -4708,13 +4708,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4708
4708
|
userInputId: string;
|
|
4709
4709
|
response: string;
|
|
4710
4710
|
changes: {
|
|
4711
|
+
type: "patch" | "file";
|
|
4711
4712
|
path: string;
|
|
4712
|
-
type: "file" | "patch";
|
|
4713
4713
|
content: string;
|
|
4714
4714
|
}[];
|
|
4715
4715
|
changesAlreadyApplied: {
|
|
4716
|
+
type: "patch" | "file";
|
|
4716
4717
|
path: string;
|
|
4717
|
-
type: "file" | "patch";
|
|
4718
4718
|
content: string;
|
|
4719
4719
|
}[];
|
|
4720
4720
|
addedFileVersions: {
|
|
@@ -4828,13 +4828,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4828
4828
|
userInputId: string;
|
|
4829
4829
|
response: string;
|
|
4830
4830
|
changes: {
|
|
4831
|
+
type: "patch" | "file";
|
|
4831
4832
|
path: string;
|
|
4832
|
-
type: "file" | "patch";
|
|
4833
4833
|
content: string;
|
|
4834
4834
|
}[];
|
|
4835
4835
|
changesAlreadyApplied: {
|
|
4836
|
+
type: "patch" | "file";
|
|
4836
4837
|
path: string;
|
|
4837
|
-
type: "file" | "patch";
|
|
4838
4838
|
content: string;
|
|
4839
4839
|
}[];
|
|
4840
4840
|
addedFileVersions: {
|
|
@@ -4851,8 +4851,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4851
4851
|
isUpToDate: boolean;
|
|
4852
4852
|
latestVersion: string;
|
|
4853
4853
|
} | {
|
|
4854
|
-
message: string;
|
|
4855
4854
|
type: "action-error";
|
|
4855
|
+
message: string;
|
|
4856
4856
|
remainingBalance?: number | undefined;
|
|
4857
4857
|
error?: string | undefined;
|
|
4858
4858
|
} | {
|
package/package.json
CHANGED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ChildProcessByStdio, ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from 'child_process';
|
|
2
|
-
import { ToolResult } from './common/types/agent-state';
|
|
3
|
-
/**
|
|
4
|
-
* Interface describing the information stored for each background process.
|
|
5
|
-
*/
|
|
6
|
-
export interface BackgroundProcessInfo {
|
|
7
|
-
pid: number;
|
|
8
|
-
toolCallId: string;
|
|
9
|
-
command: string;
|
|
10
|
-
process: ChildProcessByStdio<any, any, any>;
|
|
11
|
-
stdoutBuffer: string[];
|
|
12
|
-
stderrBuffer: string[];
|
|
13
|
-
status: 'running' | 'completed' | 'error';
|
|
14
|
-
startTime: number;
|
|
15
|
-
endTime: number | null;
|
|
16
|
-
lastReportedStdoutLength: number;
|
|
17
|
-
lastReportedStderrLength: number;
|
|
18
|
-
lastReportedStatus: 'running' | 'completed' | 'error' | null;
|
|
19
|
-
stdoutFile?: string;
|
|
20
|
-
stderrFile?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Global map storing information about active and completed background processes.
|
|
24
|
-
* Keyed by the OS-assigned Process ID (PID).
|
|
25
|
-
*/
|
|
26
|
-
export declare const backgroundProcesses: Map<number, BackgroundProcessInfo>;
|
|
27
|
-
/**
|
|
28
|
-
* Formats a single background process's info into a string
|
|
29
|
-
*/
|
|
30
|
-
export declare function getBackgroundProcessInfoString(info: BackgroundProcessInfo): string;
|
|
31
|
-
/**
|
|
32
|
-
* Gets updates from all background processes and updates tracking info
|
|
33
|
-
*/
|
|
34
|
-
export declare function getBackgroundProcessUpdates(): ToolResult[];
|
|
35
|
-
export declare function spawnAndTrack(command: string, args: string[] | undefined, options: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
|
|
36
|
-
export declare function sendKillSignalToAllBackgroundProcesses(): void;
|
|
37
|
-
export declare function killAllBackgroundProcesses(): Promise<void>;
|
|
38
|
-
/**
|
|
39
|
-
* Cleans up stale lock files and attempts to kill orphaned processes found in the lock directory.
|
|
40
|
-
* This function is intended to run on startup to handle cases where the application might have
|
|
41
|
-
* exited uncleanly, leaving orphaned processes or lock files.
|
|
42
|
-
*
|
|
43
|
-
* @returns Object containing:
|
|
44
|
-
* - shouldStartNewProcesses: boolean indicating if it's safe to start new processes
|
|
45
|
-
* - cleanUpPromise: Promise that resolves when cleanup is complete
|
|
46
|
-
*/
|
|
47
|
-
export declare function cleanupStoredProcesses(): {
|
|
48
|
-
separateCodebuffInstanceRunning: boolean;
|
|
49
|
-
cleanUpPromise: Promise<any>;
|
|
50
|
-
};
|