codebuff 1.0.325 → 1.0.327

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.
@@ -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">;
@@ -316,9 +316,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
316
316
  result: string;
317
317
  }[];
318
318
  model?: string | undefined;
319
- cwd?: string | undefined;
320
319
  prompt?: string | undefined;
321
320
  authToken?: string | undefined;
321
+ cwd?: string | undefined;
322
322
  repoUrl?: string | undefined;
323
323
  }, {
324
324
  type: "prompt";
@@ -366,10 +366,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
366
366
  result: string;
367
367
  }[];
368
368
  model?: string | undefined;
369
- cwd?: string | undefined;
370
369
  prompt?: string | undefined;
371
370
  authToken?: string | undefined;
372
371
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
372
+ cwd?: string | undefined;
373
373
  repoUrl?: string | undefined;
374
374
  }>, z.ZodObject<{
375
375
  type: z.ZodLiteral<"manager-prompt">;
@@ -635,9 +635,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
635
635
  result: string;
636
636
  }[];
637
637
  model?: string | undefined;
638
- cwd?: string | undefined;
639
638
  prompt?: string | undefined;
640
639
  authToken?: string | undefined;
640
+ cwd?: string | undefined;
641
641
  repoName?: string | undefined;
642
642
  }, {
643
643
  type: "manager-prompt";
@@ -685,10 +685,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
685
685
  result: string;
686
686
  }[];
687
687
  model?: string | undefined;
688
- cwd?: string | undefined;
689
688
  prompt?: string | undefined;
690
689
  authToken?: string | undefined;
691
690
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
691
+ cwd?: string | undefined;
692
692
  repoName?: string | undefined;
693
693
  }>, z.ZodObject<{
694
694
  type: z.ZodLiteral<"read-files-response">;
@@ -821,6 +821,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
821
821
  repoUrl: z.ZodOptional<z.ZodString>;
822
822
  }, "strip", z.ZodTypeAny, {
823
823
  type: "init";
824
+ fingerprintId: string;
824
825
  fileContext: {
825
826
  currentWorkingDirectory: string;
826
827
  fileTree: import("../util/file").FileTreeNode[];
@@ -849,11 +850,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
849
850
  content: string;
850
851
  }[][] | undefined;
851
852
  };
852
- fingerprintId: string;
853
853
  authToken?: string | undefined;
854
854
  repoUrl?: string | undefined;
855
855
  }, {
856
856
  type: "init";
857
+ fingerprintId: string;
857
858
  fileContext: {
858
859
  currentWorkingDirectory: string;
859
860
  fileTree: import("../util/file").FileTreeNode[];
@@ -882,7 +883,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
882
883
  content: string;
883
884
  }[][] | undefined;
884
885
  };
885
- fingerprintId: string;
886
886
  authToken?: string | undefined;
887
887
  repoUrl?: string | undefined;
888
888
  }>, z.ZodObject<{
@@ -902,7 +902,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
902
902
  authToken?: string | undefined;
903
903
  }>]>;
904
904
  }, "strip", z.ZodTypeAny, {
905
- type: "action";
906
905
  data: {
907
906
  type: "prompt";
908
907
  promptId: string;
@@ -950,9 +949,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
950
949
  result: string;
951
950
  }[];
952
951
  model?: string | undefined;
953
- cwd?: string | undefined;
954
952
  prompt?: string | undefined;
955
953
  authToken?: string | undefined;
954
+ cwd?: string | undefined;
956
955
  repoUrl?: string | undefined;
957
956
  } | {
958
957
  type: "manager-prompt";
@@ -1001,9 +1000,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1001
1000
  result: string;
1002
1001
  }[];
1003
1002
  model?: string | undefined;
1004
- cwd?: string | undefined;
1005
1003
  prompt?: string | undefined;
1006
1004
  authToken?: string | undefined;
1005
+ cwd?: string | undefined;
1007
1006
  repoName?: string | undefined;
1008
1007
  } | {
1009
1008
  type: "read-files-response";
@@ -1011,6 +1010,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1011
1010
  requestId?: string | undefined;
1012
1011
  } | {
1013
1012
  type: "init";
1013
+ fingerprintId: string;
1014
1014
  fileContext: {
1015
1015
  currentWorkingDirectory: string;
1016
1016
  fileTree: import("../util/file").FileTreeNode[];
@@ -1039,7 +1039,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1039
1039
  content: string;
1040
1040
  }[][] | undefined;
1041
1041
  };
1042
- fingerprintId: string;
1043
1042
  authToken?: string | undefined;
1044
1043
  repoUrl?: string | undefined;
1045
1044
  } | {
@@ -1048,9 +1047,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1048
1047
  stagedChanges: string;
1049
1048
  authToken?: string | undefined;
1050
1049
  };
1050
+ type: "action";
1051
1051
  txid: number;
1052
1052
  }, {
1053
- type: "action";
1054
1053
  data: {
1055
1054
  type: "prompt";
1056
1055
  promptId: string;
@@ -1097,10 +1096,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1097
1096
  result: string;
1098
1097
  }[];
1099
1098
  model?: string | undefined;
1100
- cwd?: string | undefined;
1101
1099
  prompt?: string | undefined;
1102
1100
  authToken?: string | undefined;
1103
1101
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
1102
+ cwd?: string | undefined;
1104
1103
  repoUrl?: string | undefined;
1105
1104
  } | {
1106
1105
  type: "manager-prompt";
@@ -1148,10 +1147,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1148
1147
  result: string;
1149
1148
  }[];
1150
1149
  model?: string | undefined;
1151
- cwd?: string | undefined;
1152
1150
  prompt?: string | undefined;
1153
1151
  authToken?: string | undefined;
1154
1152
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
1153
+ cwd?: string | undefined;
1155
1154
  repoName?: string | undefined;
1156
1155
  } | {
1157
1156
  type: "read-files-response";
@@ -1159,6 +1158,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1159
1158
  requestId?: string | undefined;
1160
1159
  } | {
1161
1160
  type: "init";
1161
+ fingerprintId: string;
1162
1162
  fileContext: {
1163
1163
  currentWorkingDirectory: string;
1164
1164
  fileTree: import("../util/file").FileTreeNode[];
@@ -1187,7 +1187,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1187
1187
  content: string;
1188
1188
  }[][] | undefined;
1189
1189
  };
1190
- fingerprintId: string;
1191
1190
  authToken?: string | undefined;
1192
1191
  repoUrl?: string | undefined;
1193
1192
  } | {
@@ -1196,6 +1195,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1196
1195
  stagedChanges: string;
1197
1196
  authToken?: string | undefined;
1198
1197
  };
1198
+ type: "action";
1199
1199
  txid: number;
1200
1200
  }>;
1201
1201
  };
@@ -1205,12 +1205,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1205
1205
  clientSessionId: z.ZodString;
1206
1206
  }, "strip", z.ZodTypeAny, {
1207
1207
  type: "identify";
1208
- clientSessionId: string;
1209
1208
  txid: number;
1209
+ clientSessionId: string;
1210
1210
  }, {
1211
1211
  type: "identify";
1212
- clientSessionId: string;
1213
1212
  txid: number;
1213
+ clientSessionId: string;
1214
1214
  }>, z.ZodObject<{
1215
1215
  type: z.ZodLiteral<"subscribe">;
1216
1216
  txid: z.ZodNumber;
@@ -1511,9 +1511,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1511
1511
  result: string;
1512
1512
  }[];
1513
1513
  model?: string | undefined;
1514
- cwd?: string | undefined;
1515
1514
  prompt?: string | undefined;
1516
1515
  authToken?: string | undefined;
1516
+ cwd?: string | undefined;
1517
1517
  repoUrl?: string | undefined;
1518
1518
  }, {
1519
1519
  type: "prompt";
@@ -1561,10 +1561,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1561
1561
  result: string;
1562
1562
  }[];
1563
1563
  model?: string | undefined;
1564
- cwd?: string | undefined;
1565
1564
  prompt?: string | undefined;
1566
1565
  authToken?: string | undefined;
1567
1566
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
1567
+ cwd?: string | undefined;
1568
1568
  repoUrl?: string | undefined;
1569
1569
  }>, z.ZodObject<{
1570
1570
  type: z.ZodLiteral<"manager-prompt">;
@@ -1830,9 +1830,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1830
1830
  result: string;
1831
1831
  }[];
1832
1832
  model?: string | undefined;
1833
- cwd?: string | undefined;
1834
1833
  prompt?: string | undefined;
1835
1834
  authToken?: string | undefined;
1835
+ cwd?: string | undefined;
1836
1836
  repoName?: string | undefined;
1837
1837
  }, {
1838
1838
  type: "manager-prompt";
@@ -1880,10 +1880,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1880
1880
  result: string;
1881
1881
  }[];
1882
1882
  model?: string | undefined;
1883
- cwd?: string | undefined;
1884
1883
  prompt?: string | undefined;
1885
1884
  authToken?: string | undefined;
1886
1885
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
1886
+ cwd?: string | undefined;
1887
1887
  repoName?: string | undefined;
1888
1888
  }>, z.ZodObject<{
1889
1889
  type: z.ZodLiteral<"read-files-response">;
@@ -2016,6 +2016,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2016
2016
  repoUrl: z.ZodOptional<z.ZodString>;
2017
2017
  }, "strip", z.ZodTypeAny, {
2018
2018
  type: "init";
2019
+ fingerprintId: string;
2019
2020
  fileContext: {
2020
2021
  currentWorkingDirectory: string;
2021
2022
  fileTree: import("../util/file").FileTreeNode[];
@@ -2044,11 +2045,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2044
2045
  content: string;
2045
2046
  }[][] | undefined;
2046
2047
  };
2047
- fingerprintId: string;
2048
2048
  authToken?: string | undefined;
2049
2049
  repoUrl?: string | undefined;
2050
2050
  }, {
2051
2051
  type: "init";
2052
+ fingerprintId: string;
2052
2053
  fileContext: {
2053
2054
  currentWorkingDirectory: string;
2054
2055
  fileTree: import("../util/file").FileTreeNode[];
@@ -2077,7 +2078,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2077
2078
  content: string;
2078
2079
  }[][] | undefined;
2079
2080
  };
2080
- fingerprintId: string;
2081
2081
  authToken?: string | undefined;
2082
2082
  repoUrl?: string | undefined;
2083
2083
  }>, z.ZodObject<{
@@ -2097,7 +2097,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2097
2097
  authToken?: string | undefined;
2098
2098
  }>]>;
2099
2099
  }, "strip", z.ZodTypeAny, {
2100
- type: "action";
2101
2100
  data: {
2102
2101
  type: "prompt";
2103
2102
  promptId: string;
@@ -2145,9 +2144,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2145
2144
  result: string;
2146
2145
  }[];
2147
2146
  model?: string | undefined;
2148
- cwd?: string | undefined;
2149
2147
  prompt?: string | undefined;
2150
2148
  authToken?: string | undefined;
2149
+ cwd?: string | undefined;
2151
2150
  repoUrl?: string | undefined;
2152
2151
  } | {
2153
2152
  type: "manager-prompt";
@@ -2196,9 +2195,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2196
2195
  result: string;
2197
2196
  }[];
2198
2197
  model?: string | undefined;
2199
- cwd?: string | undefined;
2200
2198
  prompt?: string | undefined;
2201
2199
  authToken?: string | undefined;
2200
+ cwd?: string | undefined;
2202
2201
  repoName?: string | undefined;
2203
2202
  } | {
2204
2203
  type: "read-files-response";
@@ -2206,6 +2205,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2206
2205
  requestId?: string | undefined;
2207
2206
  } | {
2208
2207
  type: "init";
2208
+ fingerprintId: string;
2209
2209
  fileContext: {
2210
2210
  currentWorkingDirectory: string;
2211
2211
  fileTree: import("../util/file").FileTreeNode[];
@@ -2234,7 +2234,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2234
2234
  content: string;
2235
2235
  }[][] | undefined;
2236
2236
  };
2237
- fingerprintId: string;
2238
2237
  authToken?: string | undefined;
2239
2238
  repoUrl?: string | undefined;
2240
2239
  } | {
@@ -2243,9 +2242,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2243
2242
  stagedChanges: string;
2244
2243
  authToken?: string | undefined;
2245
2244
  };
2245
+ type: "action";
2246
2246
  txid: number;
2247
2247
  }, {
2248
- type: "action";
2249
2248
  data: {
2250
2249
  type: "prompt";
2251
2250
  promptId: string;
@@ -2292,10 +2291,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2292
2291
  result: string;
2293
2292
  }[];
2294
2293
  model?: string | undefined;
2295
- cwd?: string | undefined;
2296
2294
  prompt?: string | undefined;
2297
2295
  authToken?: string | undefined;
2298
2296
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
2297
+ cwd?: string | undefined;
2299
2298
  repoUrl?: string | undefined;
2300
2299
  } | {
2301
2300
  type: "manager-prompt";
@@ -2343,10 +2342,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2343
2342
  result: string;
2344
2343
  }[];
2345
2344
  model?: string | undefined;
2346
- cwd?: string | undefined;
2347
2345
  prompt?: string | undefined;
2348
2346
  authToken?: string | undefined;
2349
2347
  costMode?: "lite" | "normal" | "max" | "experimental" | "ask" | undefined;
2348
+ cwd?: string | undefined;
2350
2349
  repoName?: string | undefined;
2351
2350
  } | {
2352
2351
  type: "read-files-response";
@@ -2354,6 +2353,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2354
2353
  requestId?: string | undefined;
2355
2354
  } | {
2356
2355
  type: "init";
2356
+ fingerprintId: string;
2357
2357
  fileContext: {
2358
2358
  currentWorkingDirectory: string;
2359
2359
  fileTree: import("../util/file").FileTreeNode[];
@@ -2382,7 +2382,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2382
2382
  content: string;
2383
2383
  }[][] | undefined;
2384
2384
  };
2385
- fingerprintId: string;
2386
2385
  authToken?: string | undefined;
2387
2386
  repoUrl?: string | undefined;
2388
2387
  } | {
@@ -2391,6 +2390,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2391
2390
  stagedChanges: string;
2392
2391
  authToken?: string | undefined;
2393
2392
  };
2393
+ type: "action";
2394
2394
  txid: number;
2395
2395
  }>]>;
2396
2396
  export type ClientMessageType = keyof typeof CLIENT_MESSAGE_SCHEMAS;
@@ -2435,26 +2435,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2435
2435
  path: z.ZodString;
2436
2436
  content: z.ZodString;
2437
2437
  }, "strip", z.ZodTypeAny, {
2438
+ type: "patch" | "file";
2438
2439
  path: string;
2439
2440
  content: string;
2440
- type: "file" | "patch";
2441
2441
  }, {
2442
+ type: "patch" | "file";
2442
2443
  path: string;
2443
2444
  content: string;
2444
- type: "file" | "patch";
2445
2445
  }>, "many">;
2446
2446
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
2447
2447
  type: z.ZodEnum<["patch", "file"]>;
2448
2448
  path: z.ZodString;
2449
2449
  content: z.ZodString;
2450
2450
  }, "strip", z.ZodTypeAny, {
2451
+ type: "patch" | "file";
2451
2452
  path: string;
2452
2453
  content: string;
2453
- type: "file" | "patch";
2454
2454
  }, {
2455
+ type: "patch" | "file";
2455
2456
  path: string;
2456
2457
  content: string;
2457
- type: "file" | "patch";
2458
2458
  }>, "many">;
2459
2459
  addedFileVersions: z.ZodArray<z.ZodObject<{
2460
2460
  path: z.ZodString;
@@ -2478,14 +2478,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2478
2478
  response: string;
2479
2479
  userInputId: string;
2480
2480
  changes: {
2481
+ type: "patch" | "file";
2481
2482
  path: string;
2482
2483
  content: string;
2483
- type: "file" | "patch";
2484
2484
  }[];
2485
2485
  changesAlreadyApplied: {
2486
+ type: "patch" | "file";
2486
2487
  path: string;
2487
2488
  content: string;
2488
- type: "file" | "patch";
2489
2489
  }[];
2490
2490
  addedFileVersions: {
2491
2491
  path: string;
@@ -2502,14 +2502,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
2502
2502
  response: string;
2503
2503
  userInputId: string;
2504
2504
  changes: {
2505
+ type: "patch" | "file";
2505
2506
  path: string;
2506
2507
  content: string;
2507
- type: "file" | "patch";
2508
2508
  }[];
2509
2509
  changesAlreadyApplied: {
2510
+ type: "patch" | "file";
2510
2511
  path: string;
2511
2512
  content: string;
2512
- type: "file" | "patch";
2513
2513
  }[];
2514
2514
  addedFileVersions: {
2515
2515
  path: string;
@@ -3197,26 +3197,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3197
3197
  path: z.ZodString;
3198
3198
  content: z.ZodString;
3199
3199
  }, "strip", z.ZodTypeAny, {
3200
+ type: "patch" | "file";
3200
3201
  path: string;
3201
3202
  content: string;
3202
- type: "file" | "patch";
3203
3203
  }, {
3204
+ type: "patch" | "file";
3204
3205
  path: string;
3205
3206
  content: string;
3206
- type: "file" | "patch";
3207
3207
  }>, "many">;
3208
3208
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
3209
3209
  type: z.ZodEnum<["patch", "file"]>;
3210
3210
  path: z.ZodString;
3211
3211
  content: z.ZodString;
3212
3212
  }, "strip", z.ZodTypeAny, {
3213
+ type: "patch" | "file";
3213
3214
  path: string;
3214
3215
  content: string;
3215
- type: "file" | "patch";
3216
3216
  }, {
3217
+ type: "patch" | "file";
3217
3218
  path: string;
3218
3219
  content: string;
3219
- type: "file" | "patch";
3220
3220
  }>, "many">;
3221
3221
  addedFileVersions: z.ZodArray<z.ZodObject<{
3222
3222
  path: z.ZodString;
@@ -3230,23 +3230,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3230
3230
  }>, "many">;
3231
3231
  resetFileVersions: z.ZodBoolean;
3232
3232
  }, "strip", z.ZodTypeAny, {
3233
- type: "tool-call";
3234
3233
  data: {
3235
3234
  name: string;
3236
3235
  id: string;
3237
3236
  input: Record<string, any>;
3238
3237
  };
3238
+ type: "tool-call";
3239
3239
  response: string;
3240
3240
  userInputId: string;
3241
3241
  changes: {
3242
+ type: "patch" | "file";
3242
3243
  path: string;
3243
3244
  content: string;
3244
- type: "file" | "patch";
3245
3245
  }[];
3246
3246
  changesAlreadyApplied: {
3247
+ type: "patch" | "file";
3247
3248
  path: string;
3248
3249
  content: string;
3249
- type: "file" | "patch";
3250
3250
  }[];
3251
3251
  addedFileVersions: {
3252
3252
  path: string;
@@ -3254,23 +3254,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3254
3254
  }[];
3255
3255
  resetFileVersions: boolean;
3256
3256
  }, {
3257
- type: "tool-call";
3258
3257
  data: {
3259
3258
  name: string;
3260
3259
  id: string;
3261
3260
  input: Record<string, any>;
3262
3261
  };
3262
+ type: "tool-call";
3263
3263
  response: string;
3264
3264
  userInputId: string;
3265
3265
  changes: {
3266
+ type: "patch" | "file";
3266
3267
  path: string;
3267
3268
  content: string;
3268
- type: "file" | "patch";
3269
3269
  }[];
3270
3270
  changesAlreadyApplied: {
3271
+ type: "patch" | "file";
3271
3272
  path: string;
3272
3273
  content: string;
3273
- type: "file" | "patch";
3274
3274
  }[];
3275
3275
  addedFileVersions: {
3276
3276
  path: string;
@@ -3311,15 +3311,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3311
3311
  next_quota_reset: z.ZodNullable<z.ZodDate>;
3312
3312
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
3313
3313
  }, "type">>, "strip", z.ZodTypeAny, {
3314
- type: "init-response";
3315
3314
  next_quota_reset: Date | null;
3315
+ type: "init-response";
3316
3316
  usage: number;
3317
3317
  remainingBalance: number;
3318
3318
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
3319
3319
  autoTopupAdded?: number | undefined;
3320
3320
  }, {
3321
- type: "init-response";
3322
3321
  next_quota_reset: Date | null;
3322
+ type: "init-response";
3323
3323
  usage: number;
3324
3324
  remainingBalance: number;
3325
3325
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -3332,15 +3332,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3332
3332
  next_quota_reset: z.ZodNullable<z.ZodDate>;
3333
3333
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
3334
3334
  }, "strip", z.ZodTypeAny, {
3335
- type: "usage-response";
3336
3335
  next_quota_reset: Date | null;
3336
+ type: "usage-response";
3337
3337
  usage: number;
3338
3338
  remainingBalance: number;
3339
3339
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
3340
3340
  autoTopupAdded?: number | undefined;
3341
3341
  }, {
3342
- type: "usage-response";
3343
3342
  next_quota_reset: Date | null;
3343
+ type: "usage-response";
3344
3344
  usage: number;
3345
3345
  remainingBalance: number;
3346
3346
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -3363,15 +3363,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3363
3363
  error: z.ZodOptional<z.ZodString>;
3364
3364
  remainingBalance: z.ZodOptional<z.ZodNumber>;
3365
3365
  }, "strip", z.ZodTypeAny, {
3366
- message: string;
3367
3366
  type: "action-error";
3368
- error?: string | undefined;
3367
+ message: string;
3369
3368
  remainingBalance?: number | undefined;
3369
+ error?: string | undefined;
3370
3370
  }, {
3371
- message: string;
3372
3371
  type: "action-error";
3373
- error?: string | undefined;
3372
+ message: string;
3374
3373
  remainingBalance?: number | undefined;
3374
+ error?: string | undefined;
3375
3375
  }>, z.ZodObject<{
3376
3376
  type: z.ZodLiteral<"commit-message-response">;
3377
3377
  commitMessage: z.ZodString;
@@ -3389,17 +3389,16 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3389
3389
  type: "request-reconnect";
3390
3390
  }>]>;
3391
3391
  }, "strip", z.ZodTypeAny, {
3392
- type: "action";
3393
3392
  data: {
3394
- type: "usage-response";
3395
3393
  next_quota_reset: Date | null;
3394
+ type: "usage-response";
3396
3395
  usage: number;
3397
3396
  remainingBalance: number;
3398
3397
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
3399
3398
  autoTopupAdded?: number | undefined;
3400
3399
  } | {
3401
- type: "init-response";
3402
3400
  next_quota_reset: Date | null;
3401
+ type: "init-response";
3403
3402
  usage: number;
3404
3403
  remainingBalance: number;
3405
3404
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -3409,14 +3408,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3409
3408
  response: string;
3410
3409
  userInputId: string;
3411
3410
  changes: {
3411
+ type: "patch" | "file";
3412
3412
  path: string;
3413
3413
  content: string;
3414
- type: "file" | "patch";
3415
3414
  }[];
3416
3415
  changesAlreadyApplied: {
3416
+ type: "patch" | "file";
3417
3417
  path: string;
3418
3418
  content: string;
3419
- type: "file" | "patch";
3420
3419
  }[];
3421
3420
  addedFileVersions: {
3422
3421
  path: string;
@@ -3539,23 +3538,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3539
3538
  requestId: string;
3540
3539
  filePaths: string[];
3541
3540
  } | {
3542
- type: "tool-call";
3543
3541
  data: {
3544
3542
  name: string;
3545
3543
  id: string;
3546
3544
  input: Record<string, any>;
3547
3545
  };
3546
+ type: "tool-call";
3548
3547
  response: string;
3549
3548
  userInputId: string;
3550
3549
  changes: {
3550
+ type: "patch" | "file";
3551
3551
  path: string;
3552
3552
  content: string;
3553
- type: "file" | "patch";
3554
3553
  }[];
3555
3554
  changesAlreadyApplied: {
3555
+ type: "patch" | "file";
3556
3556
  path: string;
3557
3557
  content: string;
3558
- type: "file" | "patch";
3559
3558
  }[];
3560
3559
  addedFileVersions: {
3561
3560
  path: string;
@@ -3571,28 +3570,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3571
3570
  isUpToDate: boolean;
3572
3571
  latestVersion: string;
3573
3572
  } | {
3574
- message: string;
3575
3573
  type: "action-error";
3576
- error?: string | undefined;
3574
+ message: string;
3577
3575
  remainingBalance?: number | undefined;
3576
+ error?: string | undefined;
3578
3577
  } | {
3579
3578
  type: "commit-message-response";
3580
3579
  commitMessage: string;
3581
3580
  } | {
3582
3581
  type: "request-reconnect";
3583
3582
  };
3584
- }, {
3585
3583
  type: "action";
3584
+ }, {
3586
3585
  data: {
3587
- type: "usage-response";
3588
3586
  next_quota_reset: Date | null;
3587
+ type: "usage-response";
3589
3588
  usage: number;
3590
3589
  remainingBalance: number;
3591
3590
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
3592
3591
  autoTopupAdded?: number | undefined;
3593
3592
  } | {
3594
- type: "init-response";
3595
3593
  next_quota_reset: Date | null;
3594
+ type: "init-response";
3596
3595
  usage: number;
3597
3596
  remainingBalance: number;
3598
3597
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -3602,14 +3601,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3602
3601
  response: string;
3603
3602
  userInputId: string;
3604
3603
  changes: {
3604
+ type: "patch" | "file";
3605
3605
  path: string;
3606
3606
  content: string;
3607
- type: "file" | "patch";
3608
3607
  }[];
3609
3608
  changesAlreadyApplied: {
3609
+ type: "patch" | "file";
3610
3610
  path: string;
3611
3611
  content: string;
3612
- type: "file" | "patch";
3613
3612
  }[];
3614
3613
  addedFileVersions: {
3615
3614
  path: string;
@@ -3732,23 +3731,23 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3732
3731
  requestId: string;
3733
3732
  filePaths: string[];
3734
3733
  } | {
3735
- type: "tool-call";
3736
3734
  data: {
3737
3735
  name: string;
3738
3736
  id: string;
3739
3737
  input: Record<string, any>;
3740
3738
  };
3739
+ type: "tool-call";
3741
3740
  response: string;
3742
3741
  userInputId: string;
3743
3742
  changes: {
3743
+ type: "patch" | "file";
3744
3744
  path: string;
3745
3745
  content: string;
3746
- type: "file" | "patch";
3747
3746
  }[];
3748
3747
  changesAlreadyApplied: {
3748
+ type: "patch" | "file";
3749
3749
  path: string;
3750
3750
  content: string;
3751
- type: "file" | "patch";
3752
3751
  }[];
3753
3752
  addedFileVersions: {
3754
3753
  path: string;
@@ -3764,16 +3763,17 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3764
3763
  isUpToDate: boolean;
3765
3764
  latestVersion: string;
3766
3765
  } | {
3767
- message: string;
3768
3766
  type: "action-error";
3769
- error?: string | undefined;
3767
+ message: string;
3770
3768
  remainingBalance?: number | undefined;
3769
+ error?: string | undefined;
3771
3770
  } | {
3772
3771
  type: "commit-message-response";
3773
3772
  commitMessage: string;
3774
3773
  } | {
3775
3774
  type: "request-reconnect";
3776
3775
  };
3776
+ type: "action";
3777
3777
  }>;
3778
3778
  };
3779
3779
  export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
@@ -3814,26 +3814,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3814
3814
  path: z.ZodString;
3815
3815
  content: z.ZodString;
3816
3816
  }, "strip", z.ZodTypeAny, {
3817
+ type: "patch" | "file";
3817
3818
  path: string;
3818
3819
  content: string;
3819
- type: "file" | "patch";
3820
3820
  }, {
3821
+ type: "patch" | "file";
3821
3822
  path: string;
3822
3823
  content: string;
3823
- type: "file" | "patch";
3824
3824
  }>, "many">;
3825
3825
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
3826
3826
  type: z.ZodEnum<["patch", "file"]>;
3827
3827
  path: z.ZodString;
3828
3828
  content: z.ZodString;
3829
3829
  }, "strip", z.ZodTypeAny, {
3830
+ type: "patch" | "file";
3830
3831
  path: string;
3831
3832
  content: string;
3832
- type: "file" | "patch";
3833
3833
  }, {
3834
+ type: "patch" | "file";
3834
3835
  path: string;
3835
3836
  content: string;
3836
- type: "file" | "patch";
3837
3837
  }>, "many">;
3838
3838
  addedFileVersions: z.ZodArray<z.ZodObject<{
3839
3839
  path: z.ZodString;
@@ -3857,14 +3857,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3857
3857
  response: string;
3858
3858
  userInputId: string;
3859
3859
  changes: {
3860
+ type: "patch" | "file";
3860
3861
  path: string;
3861
3862
  content: string;
3862
- type: "file" | "patch";
3863
3863
  }[];
3864
3864
  changesAlreadyApplied: {
3865
+ type: "patch" | "file";
3865
3866
  path: string;
3866
3867
  content: string;
3867
- type: "file" | "patch";
3868
3868
  }[];
3869
3869
  addedFileVersions: {
3870
3870
  path: string;
@@ -3881,14 +3881,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3881
3881
  response: string;
3882
3882
  userInputId: string;
3883
3883
  changes: {
3884
+ type: "patch" | "file";
3884
3885
  path: string;
3885
3886
  content: string;
3886
- type: "file" | "patch";
3887
3887
  }[];
3888
3888
  changesAlreadyApplied: {
3889
+ type: "patch" | "file";
3889
3890
  path: string;
3890
3891
  content: string;
3891
- type: "file" | "patch";
3892
3892
  }[];
3893
3893
  addedFileVersions: {
3894
3894
  path: string;
@@ -4576,26 +4576,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4576
4576
  path: z.ZodString;
4577
4577
  content: z.ZodString;
4578
4578
  }, "strip", z.ZodTypeAny, {
4579
+ type: "patch" | "file";
4579
4580
  path: string;
4580
4581
  content: string;
4581
- type: "file" | "patch";
4582
4582
  }, {
4583
+ type: "patch" | "file";
4583
4584
  path: string;
4584
4585
  content: string;
4585
- type: "file" | "patch";
4586
4586
  }>, "many">;
4587
4587
  changesAlreadyApplied: z.ZodArray<z.ZodObject<{
4588
4588
  type: z.ZodEnum<["patch", "file"]>;
4589
4589
  path: z.ZodString;
4590
4590
  content: z.ZodString;
4591
4591
  }, "strip", z.ZodTypeAny, {
4592
+ type: "patch" | "file";
4592
4593
  path: string;
4593
4594
  content: string;
4594
- type: "file" | "patch";
4595
4595
  }, {
4596
+ type: "patch" | "file";
4596
4597
  path: string;
4597
4598
  content: string;
4598
- type: "file" | "patch";
4599
4599
  }>, "many">;
4600
4600
  addedFileVersions: z.ZodArray<z.ZodObject<{
4601
4601
  path: z.ZodString;
@@ -4609,23 +4609,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4609
4609
  }>, "many">;
4610
4610
  resetFileVersions: z.ZodBoolean;
4611
4611
  }, "strip", z.ZodTypeAny, {
4612
- type: "tool-call";
4613
4612
  data: {
4614
4613
  name: string;
4615
4614
  id: string;
4616
4615
  input: Record<string, any>;
4617
4616
  };
4617
+ type: "tool-call";
4618
4618
  response: string;
4619
4619
  userInputId: string;
4620
4620
  changes: {
4621
+ type: "patch" | "file";
4621
4622
  path: string;
4622
4623
  content: string;
4623
- type: "file" | "patch";
4624
4624
  }[];
4625
4625
  changesAlreadyApplied: {
4626
+ type: "patch" | "file";
4626
4627
  path: string;
4627
4628
  content: string;
4628
- type: "file" | "patch";
4629
4629
  }[];
4630
4630
  addedFileVersions: {
4631
4631
  path: string;
@@ -4633,23 +4633,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4633
4633
  }[];
4634
4634
  resetFileVersions: boolean;
4635
4635
  }, {
4636
- type: "tool-call";
4637
4636
  data: {
4638
4637
  name: string;
4639
4638
  id: string;
4640
4639
  input: Record<string, any>;
4641
4640
  };
4641
+ type: "tool-call";
4642
4642
  response: string;
4643
4643
  userInputId: string;
4644
4644
  changes: {
4645
+ type: "patch" | "file";
4645
4646
  path: string;
4646
4647
  content: string;
4647
- type: "file" | "patch";
4648
4648
  }[];
4649
4649
  changesAlreadyApplied: {
4650
+ type: "patch" | "file";
4650
4651
  path: string;
4651
4652
  content: string;
4652
- type: "file" | "patch";
4653
4653
  }[];
4654
4654
  addedFileVersions: {
4655
4655
  path: string;
@@ -4690,15 +4690,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4690
4690
  next_quota_reset: z.ZodNullable<z.ZodDate>;
4691
4691
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
4692
4692
  }, "type">>, "strip", z.ZodTypeAny, {
4693
- type: "init-response";
4694
4693
  next_quota_reset: Date | null;
4694
+ type: "init-response";
4695
4695
  usage: number;
4696
4696
  remainingBalance: number;
4697
4697
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
4698
4698
  autoTopupAdded?: number | undefined;
4699
4699
  }, {
4700
- type: "init-response";
4701
4700
  next_quota_reset: Date | null;
4701
+ type: "init-response";
4702
4702
  usage: number;
4703
4703
  remainingBalance: number;
4704
4704
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -4711,15 +4711,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4711
4711
  next_quota_reset: z.ZodNullable<z.ZodDate>;
4712
4712
  autoTopupAdded: z.ZodOptional<z.ZodNumber>;
4713
4713
  }, "strip", z.ZodTypeAny, {
4714
- type: "usage-response";
4715
4714
  next_quota_reset: Date | null;
4715
+ type: "usage-response";
4716
4716
  usage: number;
4717
4717
  remainingBalance: number;
4718
4718
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
4719
4719
  autoTopupAdded?: number | undefined;
4720
4720
  }, {
4721
- type: "usage-response";
4722
4721
  next_quota_reset: Date | null;
4722
+ type: "usage-response";
4723
4723
  usage: number;
4724
4724
  remainingBalance: number;
4725
4725
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -4742,15 +4742,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4742
4742
  error: z.ZodOptional<z.ZodString>;
4743
4743
  remainingBalance: z.ZodOptional<z.ZodNumber>;
4744
4744
  }, "strip", z.ZodTypeAny, {
4745
- message: string;
4746
4745
  type: "action-error";
4747
- error?: string | undefined;
4746
+ message: string;
4748
4747
  remainingBalance?: number | undefined;
4748
+ error?: string | undefined;
4749
4749
  }, {
4750
- message: string;
4751
4750
  type: "action-error";
4752
- error?: string | undefined;
4751
+ message: string;
4753
4752
  remainingBalance?: number | undefined;
4753
+ error?: string | undefined;
4754
4754
  }>, z.ZodObject<{
4755
4755
  type: z.ZodLiteral<"commit-message-response">;
4756
4756
  commitMessage: z.ZodString;
@@ -4768,17 +4768,16 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4768
4768
  type: "request-reconnect";
4769
4769
  }>]>;
4770
4770
  }, "strip", z.ZodTypeAny, {
4771
- type: "action";
4772
4771
  data: {
4773
- type: "usage-response";
4774
4772
  next_quota_reset: Date | null;
4773
+ type: "usage-response";
4775
4774
  usage: number;
4776
4775
  remainingBalance: number;
4777
4776
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
4778
4777
  autoTopupAdded?: number | undefined;
4779
4778
  } | {
4780
- type: "init-response";
4781
4779
  next_quota_reset: Date | null;
4780
+ type: "init-response";
4782
4781
  usage: number;
4783
4782
  remainingBalance: number;
4784
4783
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -4788,14 +4787,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4788
4787
  response: string;
4789
4788
  userInputId: string;
4790
4789
  changes: {
4790
+ type: "patch" | "file";
4791
4791
  path: string;
4792
4792
  content: string;
4793
- type: "file" | "patch";
4794
4793
  }[];
4795
4794
  changesAlreadyApplied: {
4795
+ type: "patch" | "file";
4796
4796
  path: string;
4797
4797
  content: string;
4798
- type: "file" | "patch";
4799
4798
  }[];
4800
4799
  addedFileVersions: {
4801
4800
  path: string;
@@ -4918,23 +4917,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4918
4917
  requestId: string;
4919
4918
  filePaths: string[];
4920
4919
  } | {
4921
- type: "tool-call";
4922
4920
  data: {
4923
4921
  name: string;
4924
4922
  id: string;
4925
4923
  input: Record<string, any>;
4926
4924
  };
4925
+ type: "tool-call";
4927
4926
  response: string;
4928
4927
  userInputId: string;
4929
4928
  changes: {
4929
+ type: "patch" | "file";
4930
4930
  path: string;
4931
4931
  content: string;
4932
- type: "file" | "patch";
4933
4932
  }[];
4934
4933
  changesAlreadyApplied: {
4934
+ type: "patch" | "file";
4935
4935
  path: string;
4936
4936
  content: string;
4937
- type: "file" | "patch";
4938
4937
  }[];
4939
4938
  addedFileVersions: {
4940
4939
  path: string;
@@ -4950,28 +4949,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4950
4949
  isUpToDate: boolean;
4951
4950
  latestVersion: string;
4952
4951
  } | {
4953
- message: string;
4954
4952
  type: "action-error";
4955
- error?: string | undefined;
4953
+ message: string;
4956
4954
  remainingBalance?: number | undefined;
4955
+ error?: string | undefined;
4957
4956
  } | {
4958
4957
  type: "commit-message-response";
4959
4958
  commitMessage: string;
4960
4959
  } | {
4961
4960
  type: "request-reconnect";
4962
4961
  };
4963
- }, {
4964
4962
  type: "action";
4963
+ }, {
4965
4964
  data: {
4966
- type: "usage-response";
4967
4965
  next_quota_reset: Date | null;
4966
+ type: "usage-response";
4968
4967
  usage: number;
4969
4968
  remainingBalance: number;
4970
4969
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
4971
4970
  autoTopupAdded?: number | undefined;
4972
4971
  } | {
4973
- type: "init-response";
4974
4972
  next_quota_reset: Date | null;
4973
+ type: "init-response";
4975
4974
  usage: number;
4976
4975
  remainingBalance: number;
4977
4976
  balanceBreakdown?: Partial<Record<"free" | "referral" | "purchase" | "admin" | "organization", number>> | undefined;
@@ -4981,14 +4980,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4981
4980
  response: string;
4982
4981
  userInputId: string;
4983
4982
  changes: {
4983
+ type: "patch" | "file";
4984
4984
  path: string;
4985
4985
  content: string;
4986
- type: "file" | "patch";
4987
4986
  }[];
4988
4987
  changesAlreadyApplied: {
4988
+ type: "patch" | "file";
4989
4989
  path: string;
4990
4990
  content: string;
4991
- type: "file" | "patch";
4992
4991
  }[];
4993
4992
  addedFileVersions: {
4994
4993
  path: string;
@@ -5111,23 +5110,23 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5111
5110
  requestId: string;
5112
5111
  filePaths: string[];
5113
5112
  } | {
5114
- type: "tool-call";
5115
5113
  data: {
5116
5114
  name: string;
5117
5115
  id: string;
5118
5116
  input: Record<string, any>;
5119
5117
  };
5118
+ type: "tool-call";
5120
5119
  response: string;
5121
5120
  userInputId: string;
5122
5121
  changes: {
5122
+ type: "patch" | "file";
5123
5123
  path: string;
5124
5124
  content: string;
5125
- type: "file" | "patch";
5126
5125
  }[];
5127
5126
  changesAlreadyApplied: {
5127
+ type: "patch" | "file";
5128
5128
  path: string;
5129
5129
  content: string;
5130
- type: "file" | "patch";
5131
5130
  }[];
5132
5131
  addedFileVersions: {
5133
5132
  path: string;
@@ -5143,16 +5142,17 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5143
5142
  isUpToDate: boolean;
5144
5143
  latestVersion: string;
5145
5144
  } | {
5146
- message: string;
5147
5145
  type: "action-error";
5148
- error?: string | undefined;
5146
+ message: string;
5149
5147
  remainingBalance?: number | undefined;
5148
+ error?: string | undefined;
5150
5149
  } | {
5151
5150
  type: "commit-message-response";
5152
5151
  commitMessage: string;
5153
5152
  } | {
5154
5153
  type: "request-reconnect";
5155
5154
  };
5155
+ type: "action";
5156
5156
  }>]>;
5157
5157
  export type ServerMessageType = keyof typeof SERVER_MESSAGE_SCHEMAS;
5158
5158
  export type ServerMessage<T extends ServerMessageType = ServerMessageType> = z.infer<(typeof SERVER_MESSAGE_SCHEMAS)[T]>;