codecane 1.0.202 → 1.0.204

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.
Files changed (56) hide show
  1. package/dist/checkpoints/checkpoint-manager.d.ts +35 -13
  2. package/dist/checkpoints/checkpoint-manager.js +77 -41
  3. package/dist/checkpoints/checkpoint-manager.js.map +1 -1
  4. package/dist/checkpoints/file-manager.d.ts +43 -10
  5. package/dist/checkpoints/file-manager.js +129 -58
  6. package/dist/checkpoints/file-manager.js.map +1 -1
  7. package/dist/cli.d.ts +5 -1
  8. package/dist/cli.js +59 -30
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client.d.ts +5 -4
  11. package/dist/client.js +24 -13
  12. package/dist/client.js.map +1 -1
  13. package/dist/code-map/languages.d.ts +1 -1
  14. package/dist/code-map/languages.js +22 -19
  15. package/dist/code-map/languages.js.map +1 -1
  16. package/dist/code-map/parse.d.ts +1 -1
  17. package/dist/code-map/parse.js +1 -2
  18. package/dist/code-map/parse.js.map +1 -1
  19. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  20. package/dist/common/actions.d.ts +54 -54
  21. package/dist/common/types/agent-state.d.ts +2 -2
  22. package/dist/common/types/message.d.ts +6 -6
  23. package/dist/common/types/usage.d.ts +2 -2
  24. package/dist/common/util/credentials.d.ts +2 -2
  25. package/dist/common/util/saxy.js +1 -1
  26. package/dist/common/util/saxy.js.map +1 -1
  27. package/dist/common/util/string.d.ts +4 -0
  28. package/dist/common/util/string.js +10 -2
  29. package/dist/common/util/string.js.map +1 -1
  30. package/dist/common/websockets/websocket-schema.d.ts +232 -232
  31. package/dist/index.js +1 -1
  32. package/dist/menu.js +1 -1
  33. package/dist/menu.js.map +1 -1
  34. package/dist/project-files.js +2 -0
  35. package/dist/project-files.js.map +1 -1
  36. package/dist/utils/logger.d.ts +2 -0
  37. package/dist/utils/logger.js +33 -0
  38. package/dist/utils/logger.js.map +1 -0
  39. package/dist/utils/terminal.js +1 -1
  40. package/dist/utils/terminal.js.map +1 -1
  41. package/dist/workers/checkpoint-worker.d.ts +1 -0
  42. package/dist/workers/checkpoint-worker.js +47 -0
  43. package/dist/workers/checkpoint-worker.js.map +1 -0
  44. package/package.json +1 -1
  45. package/dist/common/logger.d.ts +0 -1
  46. package/dist/common/logger.js +0 -7
  47. package/dist/common/logger.js.map +0 -1
  48. package/dist/common/util/constants.d.ts +0 -1
  49. package/dist/common/util/constants.js +0 -7
  50. package/dist/common/util/constants.js.map +0 -1
  51. package/dist/common/util/helpers.d.ts +0 -1
  52. package/dist/common/util/helpers.js +0 -6
  53. package/dist/common/util/helpers.js.map +0 -1
  54. package/dist/common/util/token-counter.d.ts +0 -3
  55. package/dist/common/util/token-counter.js +0 -27
  56. package/dist/common/util/token-counter.js.map +0 -1
@@ -371,33 +371,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
371
371
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
372
372
  }, "strip", z.ZodTypeAny, {
373
373
  type: "user-input";
374
- fileContext: {
375
- currentWorkingDirectory: string;
376
- fileTree: import("../util/file").FileTreeNode[];
377
- fileTokenScores: Record<string, Record<string, number>>;
378
- knowledgeFiles: Record<string, string>;
379
- gitChanges: {
380
- status: string;
381
- diff: string;
382
- diffCached: string;
383
- lastCommitMessages: string;
384
- };
385
- changesSinceLastChat: Record<string, string>;
386
- shellConfigFiles: Record<string, string>;
387
- systemInfo: {
388
- platform: string;
389
- shell: string;
390
- nodeVersion: string;
391
- arch: string;
392
- homedir: string;
393
- cpus: number;
394
- };
395
- fileVersions: {
396
- path: string;
397
- content: string;
398
- }[][];
399
- userKnowledgeFiles?: Record<string, string> | undefined;
400
- };
401
374
  fingerprintId: string;
402
375
  userInputId: string;
403
376
  messages: {
@@ -435,15 +408,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
435
408
  })[];
436
409
  role: "user" | "assistant";
437
410
  }[];
438
- changesAlreadyApplied: {
439
- path: string;
440
- content: string;
441
- type: "file" | "patch";
442
- }[];
443
- costMode: "max" | "lite" | "normal";
444
- authToken?: string | undefined;
445
- }, {
446
- type: "user-input";
447
411
  fileContext: {
448
412
  currentWorkingDirectory: string;
449
413
  fileTree: import("../util/file").FileTreeNode[];
@@ -471,6 +435,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
471
435
  }[][];
472
436
  userKnowledgeFiles?: Record<string, string> | undefined;
473
437
  };
438
+ changesAlreadyApplied: {
439
+ path: string;
440
+ content: string;
441
+ type: "file" | "patch";
442
+ }[];
443
+ costMode: "max" | "lite" | "normal";
444
+ authToken?: string | undefined;
445
+ }, {
446
+ type: "user-input";
474
447
  fingerprintId: string;
475
448
  userInputId: string;
476
449
  messages: {
@@ -508,6 +481,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
508
481
  })[];
509
482
  role: "user" | "assistant";
510
483
  }[];
484
+ fileContext: {
485
+ currentWorkingDirectory: string;
486
+ fileTree: import("../util/file").FileTreeNode[];
487
+ fileTokenScores: Record<string, Record<string, number>>;
488
+ knowledgeFiles: Record<string, string>;
489
+ gitChanges: {
490
+ status: string;
491
+ diff: string;
492
+ diffCached: string;
493
+ lastCommitMessages: string;
494
+ };
495
+ changesSinceLastChat: Record<string, string>;
496
+ shellConfigFiles: Record<string, string>;
497
+ systemInfo: {
498
+ platform: string;
499
+ shell: string;
500
+ nodeVersion: string;
501
+ arch: string;
502
+ homedir: string;
503
+ cpus: number;
504
+ };
505
+ fileVersions: {
506
+ path: string;
507
+ content: string;
508
+ }[][];
509
+ userKnowledgeFiles?: Record<string, string> | undefined;
510
+ };
511
511
  changesAlreadyApplied: {
512
512
  path: string;
513
513
  content: string;
@@ -823,7 +823,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
823
823
  role: "user" | "assistant";
824
824
  }>, "many">;
825
825
  }, "strip", z.ZodTypeAny, {
826
- agentContext: string;
827
826
  fileContext: {
828
827
  currentWorkingDirectory: string;
829
828
  fileTree: import("../util/file").FileTreeNode[];
@@ -851,6 +850,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
851
850
  }[][];
852
851
  userKnowledgeFiles?: Record<string, string> | undefined;
853
852
  };
853
+ agentContext: string;
854
854
  messageHistory: {
855
855
  content: string | ({
856
856
  type: "text";
@@ -887,7 +887,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
887
887
  role: "user" | "assistant";
888
888
  }[];
889
889
  }, {
890
- agentContext: string;
891
890
  fileContext: {
892
891
  currentWorkingDirectory: string;
893
892
  fileTree: import("../util/file").FileTreeNode[];
@@ -915,6 +914,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
915
914
  }[][];
916
915
  userKnowledgeFiles?: Record<string, string> | undefined;
917
916
  };
917
+ agentContext: string;
918
918
  messageHistory: {
919
919
  content: string | ({
920
920
  type: "text";
@@ -970,7 +970,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
970
970
  costMode: "max" | "lite" | "normal";
971
971
  promptId: string;
972
972
  agentState: {
973
- agentContext: string;
974
973
  fileContext: {
975
974
  currentWorkingDirectory: string;
976
975
  fileTree: import("../util/file").FileTreeNode[];
@@ -998,6 +997,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
998
997
  }[][];
999
998
  userKnowledgeFiles?: Record<string, string> | undefined;
1000
999
  };
1000
+ agentContext: string;
1001
1001
  messageHistory: {
1002
1002
  content: string | ({
1003
1003
  type: "text";
@@ -1046,7 +1046,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1046
1046
  fingerprintId: string;
1047
1047
  promptId: string;
1048
1048
  agentState: {
1049
- agentContext: string;
1050
1049
  fileContext: {
1051
1050
  currentWorkingDirectory: string;
1052
1051
  fileTree: import("../util/file").FileTreeNode[];
@@ -1074,6 +1073,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1074
1073
  }[][];
1075
1074
  userKnowledgeFiles?: Record<string, string> | undefined;
1076
1075
  };
1076
+ agentContext: string;
1077
1077
  messageHistory: {
1078
1078
  content: string | ({
1079
1079
  type: "text";
@@ -1245,6 +1245,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1245
1245
  }>;
1246
1246
  }, "strip", z.ZodTypeAny, {
1247
1247
  type: "init";
1248
+ fingerprintId: string;
1248
1249
  fileContext: {
1249
1250
  currentWorkingDirectory: string;
1250
1251
  fileTree: import("../util/file").FileTreeNode[];
@@ -1272,10 +1273,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1272
1273
  }[][];
1273
1274
  userKnowledgeFiles?: Record<string, string> | undefined;
1274
1275
  };
1275
- fingerprintId: string;
1276
1276
  authToken?: string | undefined;
1277
1277
  }, {
1278
1278
  type: "init";
1279
+ fingerprintId: string;
1279
1280
  fileContext: {
1280
1281
  currentWorkingDirectory: string;
1281
1282
  fileTree: import("../util/file").FileTreeNode[];
@@ -1303,7 +1304,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1303
1304
  }[][];
1304
1305
  userKnowledgeFiles?: Record<string, string> | undefined;
1305
1306
  };
1306
- fingerprintId: string;
1307
1307
  authToken?: string | undefined;
1308
1308
  }>, z.ZodObject<{
1309
1309
  type: z.ZodLiteral<"usage">;
@@ -1337,33 +1337,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1337
1337
  type: "action";
1338
1338
  data: {
1339
1339
  type: "user-input";
1340
- fileContext: {
1341
- currentWorkingDirectory: string;
1342
- fileTree: import("../util/file").FileTreeNode[];
1343
- fileTokenScores: Record<string, Record<string, number>>;
1344
- knowledgeFiles: Record<string, string>;
1345
- gitChanges: {
1346
- status: string;
1347
- diff: string;
1348
- diffCached: string;
1349
- lastCommitMessages: string;
1350
- };
1351
- changesSinceLastChat: Record<string, string>;
1352
- shellConfigFiles: Record<string, string>;
1353
- systemInfo: {
1354
- platform: string;
1355
- shell: string;
1356
- nodeVersion: string;
1357
- arch: string;
1358
- homedir: string;
1359
- cpus: number;
1360
- };
1361
- fileVersions: {
1362
- path: string;
1363
- content: string;
1364
- }[][];
1365
- userKnowledgeFiles?: Record<string, string> | undefined;
1366
- };
1367
1340
  fingerprintId: string;
1368
1341
  userInputId: string;
1369
1342
  messages: {
@@ -1401,6 +1374,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1401
1374
  })[];
1402
1375
  role: "user" | "assistant";
1403
1376
  }[];
1377
+ fileContext: {
1378
+ currentWorkingDirectory: string;
1379
+ fileTree: import("../util/file").FileTreeNode[];
1380
+ fileTokenScores: Record<string, Record<string, number>>;
1381
+ knowledgeFiles: Record<string, string>;
1382
+ gitChanges: {
1383
+ status: string;
1384
+ diff: string;
1385
+ diffCached: string;
1386
+ lastCommitMessages: string;
1387
+ };
1388
+ changesSinceLastChat: Record<string, string>;
1389
+ shellConfigFiles: Record<string, string>;
1390
+ systemInfo: {
1391
+ platform: string;
1392
+ shell: string;
1393
+ nodeVersion: string;
1394
+ arch: string;
1395
+ homedir: string;
1396
+ cpus: number;
1397
+ };
1398
+ fileVersions: {
1399
+ path: string;
1400
+ content: string;
1401
+ }[][];
1402
+ userKnowledgeFiles?: Record<string, string> | undefined;
1403
+ };
1404
1404
  changesAlreadyApplied: {
1405
1405
  path: string;
1406
1406
  content: string;
@@ -1414,7 +1414,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1414
1414
  costMode: "max" | "lite" | "normal";
1415
1415
  promptId: string;
1416
1416
  agentState: {
1417
- agentContext: string;
1418
1417
  fileContext: {
1419
1418
  currentWorkingDirectory: string;
1420
1419
  fileTree: import("../util/file").FileTreeNode[];
@@ -1442,6 +1441,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1442
1441
  }[][];
1443
1442
  userKnowledgeFiles?: Record<string, string> | undefined;
1444
1443
  };
1444
+ agentContext: string;
1445
1445
  messageHistory: {
1446
1446
  content: string | ({
1447
1447
  type: "text";
@@ -1491,6 +1491,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1491
1491
  requestId?: string | undefined;
1492
1492
  } | {
1493
1493
  type: "init";
1494
+ fingerprintId: string;
1494
1495
  fileContext: {
1495
1496
  currentWorkingDirectory: string;
1496
1497
  fileTree: import("../util/file").FileTreeNode[];
@@ -1518,7 +1519,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1518
1519
  }[][];
1519
1520
  userKnowledgeFiles?: Record<string, string> | undefined;
1520
1521
  };
1521
- fingerprintId: string;
1522
1522
  authToken?: string | undefined;
1523
1523
  } | {
1524
1524
  type: "usage";
@@ -1535,33 +1535,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1535
1535
  type: "action";
1536
1536
  data: {
1537
1537
  type: "user-input";
1538
- fileContext: {
1539
- currentWorkingDirectory: string;
1540
- fileTree: import("../util/file").FileTreeNode[];
1541
- fileTokenScores: Record<string, Record<string, number>>;
1542
- knowledgeFiles: Record<string, string>;
1543
- gitChanges: {
1544
- status: string;
1545
- diff: string;
1546
- diffCached: string;
1547
- lastCommitMessages: string;
1548
- };
1549
- changesSinceLastChat: Record<string, string>;
1550
- shellConfigFiles: Record<string, string>;
1551
- systemInfo: {
1552
- platform: string;
1553
- shell: string;
1554
- nodeVersion: string;
1555
- arch: string;
1556
- homedir: string;
1557
- cpus: number;
1558
- };
1559
- fileVersions: {
1560
- path: string;
1561
- content: string;
1562
- }[][];
1563
- userKnowledgeFiles?: Record<string, string> | undefined;
1564
- };
1565
1538
  fingerprintId: string;
1566
1539
  userInputId: string;
1567
1540
  messages: {
@@ -1599,6 +1572,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1599
1572
  })[];
1600
1573
  role: "user" | "assistant";
1601
1574
  }[];
1575
+ fileContext: {
1576
+ currentWorkingDirectory: string;
1577
+ fileTree: import("../util/file").FileTreeNode[];
1578
+ fileTokenScores: Record<string, Record<string, number>>;
1579
+ knowledgeFiles: Record<string, string>;
1580
+ gitChanges: {
1581
+ status: string;
1582
+ diff: string;
1583
+ diffCached: string;
1584
+ lastCommitMessages: string;
1585
+ };
1586
+ changesSinceLastChat: Record<string, string>;
1587
+ shellConfigFiles: Record<string, string>;
1588
+ systemInfo: {
1589
+ platform: string;
1590
+ shell: string;
1591
+ nodeVersion: string;
1592
+ arch: string;
1593
+ homedir: string;
1594
+ cpus: number;
1595
+ };
1596
+ fileVersions: {
1597
+ path: string;
1598
+ content: string;
1599
+ }[][];
1600
+ userKnowledgeFiles?: Record<string, string> | undefined;
1601
+ };
1602
1602
  changesAlreadyApplied: {
1603
1603
  path: string;
1604
1604
  content: string;
@@ -1611,7 +1611,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1611
1611
  fingerprintId: string;
1612
1612
  promptId: string;
1613
1613
  agentState: {
1614
- agentContext: string;
1615
1614
  fileContext: {
1616
1615
  currentWorkingDirectory: string;
1617
1616
  fileTree: import("../util/file").FileTreeNode[];
@@ -1639,6 +1638,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1639
1638
  }[][];
1640
1639
  userKnowledgeFiles?: Record<string, string> | undefined;
1641
1640
  };
1641
+ agentContext: string;
1642
1642
  messageHistory: {
1643
1643
  content: string | ({
1644
1644
  type: "text";
@@ -1689,6 +1689,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1689
1689
  requestId?: string | undefined;
1690
1690
  } | {
1691
1691
  type: "init";
1692
+ fingerprintId: string;
1692
1693
  fileContext: {
1693
1694
  currentWorkingDirectory: string;
1694
1695
  fileTree: import("../util/file").FileTreeNode[];
@@ -1716,7 +1717,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1716
1717
  }[][];
1717
1718
  userKnowledgeFiles?: Record<string, string> | undefined;
1718
1719
  };
1719
- fingerprintId: string;
1720
1720
  authToken?: string | undefined;
1721
1721
  } | {
1722
1722
  type: "usage";
@@ -2098,33 +2098,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2098
2098
  costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
2099
2099
  }, "strip", z.ZodTypeAny, {
2100
2100
  type: "user-input";
2101
- fileContext: {
2102
- currentWorkingDirectory: string;
2103
- fileTree: import("../util/file").FileTreeNode[];
2104
- fileTokenScores: Record<string, Record<string, number>>;
2105
- knowledgeFiles: Record<string, string>;
2106
- gitChanges: {
2107
- status: string;
2108
- diff: string;
2109
- diffCached: string;
2110
- lastCommitMessages: string;
2111
- };
2112
- changesSinceLastChat: Record<string, string>;
2113
- shellConfigFiles: Record<string, string>;
2114
- systemInfo: {
2115
- platform: string;
2116
- shell: string;
2117
- nodeVersion: string;
2118
- arch: string;
2119
- homedir: string;
2120
- cpus: number;
2121
- };
2122
- fileVersions: {
2123
- path: string;
2124
- content: string;
2125
- }[][];
2126
- userKnowledgeFiles?: Record<string, string> | undefined;
2127
- };
2128
2101
  fingerprintId: string;
2129
2102
  userInputId: string;
2130
2103
  messages: {
@@ -2162,15 +2135,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2162
2135
  })[];
2163
2136
  role: "user" | "assistant";
2164
2137
  }[];
2165
- changesAlreadyApplied: {
2166
- path: string;
2167
- content: string;
2168
- type: "file" | "patch";
2169
- }[];
2170
- costMode: "max" | "lite" | "normal";
2171
- authToken?: string | undefined;
2172
- }, {
2173
- type: "user-input";
2174
2138
  fileContext: {
2175
2139
  currentWorkingDirectory: string;
2176
2140
  fileTree: import("../util/file").FileTreeNode[];
@@ -2198,6 +2162,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2198
2162
  }[][];
2199
2163
  userKnowledgeFiles?: Record<string, string> | undefined;
2200
2164
  };
2165
+ changesAlreadyApplied: {
2166
+ path: string;
2167
+ content: string;
2168
+ type: "file" | "patch";
2169
+ }[];
2170
+ costMode: "max" | "lite" | "normal";
2171
+ authToken?: string | undefined;
2172
+ }, {
2173
+ type: "user-input";
2201
2174
  fingerprintId: string;
2202
2175
  userInputId: string;
2203
2176
  messages: {
@@ -2235,6 +2208,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2235
2208
  })[];
2236
2209
  role: "user" | "assistant";
2237
2210
  }[];
2211
+ fileContext: {
2212
+ currentWorkingDirectory: string;
2213
+ fileTree: import("../util/file").FileTreeNode[];
2214
+ fileTokenScores: Record<string, Record<string, number>>;
2215
+ knowledgeFiles: Record<string, string>;
2216
+ gitChanges: {
2217
+ status: string;
2218
+ diff: string;
2219
+ diffCached: string;
2220
+ lastCommitMessages: string;
2221
+ };
2222
+ changesSinceLastChat: Record<string, string>;
2223
+ shellConfigFiles: Record<string, string>;
2224
+ systemInfo: {
2225
+ platform: string;
2226
+ shell: string;
2227
+ nodeVersion: string;
2228
+ arch: string;
2229
+ homedir: string;
2230
+ cpus: number;
2231
+ };
2232
+ fileVersions: {
2233
+ path: string;
2234
+ content: string;
2235
+ }[][];
2236
+ userKnowledgeFiles?: Record<string, string> | undefined;
2237
+ };
2238
2238
  changesAlreadyApplied: {
2239
2239
  path: string;
2240
2240
  content: string;
@@ -2550,7 +2550,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2550
2550
  role: "user" | "assistant";
2551
2551
  }>, "many">;
2552
2552
  }, "strip", z.ZodTypeAny, {
2553
- agentContext: string;
2554
2553
  fileContext: {
2555
2554
  currentWorkingDirectory: string;
2556
2555
  fileTree: import("../util/file").FileTreeNode[];
@@ -2578,6 +2577,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2578
2577
  }[][];
2579
2578
  userKnowledgeFiles?: Record<string, string> | undefined;
2580
2579
  };
2580
+ agentContext: string;
2581
2581
  messageHistory: {
2582
2582
  content: string | ({
2583
2583
  type: "text";
@@ -2614,7 +2614,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2614
2614
  role: "user" | "assistant";
2615
2615
  }[];
2616
2616
  }, {
2617
- agentContext: string;
2618
2617
  fileContext: {
2619
2618
  currentWorkingDirectory: string;
2620
2619
  fileTree: import("../util/file").FileTreeNode[];
@@ -2642,6 +2641,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2642
2641
  }[][];
2643
2642
  userKnowledgeFiles?: Record<string, string> | undefined;
2644
2643
  };
2644
+ agentContext: string;
2645
2645
  messageHistory: {
2646
2646
  content: string | ({
2647
2647
  type: "text";
@@ -2697,7 +2697,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2697
2697
  costMode: "max" | "lite" | "normal";
2698
2698
  promptId: string;
2699
2699
  agentState: {
2700
- agentContext: string;
2701
2700
  fileContext: {
2702
2701
  currentWorkingDirectory: string;
2703
2702
  fileTree: import("../util/file").FileTreeNode[];
@@ -2725,6 +2724,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2725
2724
  }[][];
2726
2725
  userKnowledgeFiles?: Record<string, string> | undefined;
2727
2726
  };
2727
+ agentContext: string;
2728
2728
  messageHistory: {
2729
2729
  content: string | ({
2730
2730
  type: "text";
@@ -2773,7 +2773,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2773
2773
  fingerprintId: string;
2774
2774
  promptId: string;
2775
2775
  agentState: {
2776
- agentContext: string;
2777
2776
  fileContext: {
2778
2777
  currentWorkingDirectory: string;
2779
2778
  fileTree: import("../util/file").FileTreeNode[];
@@ -2801,6 +2800,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2801
2800
  }[][];
2802
2801
  userKnowledgeFiles?: Record<string, string> | undefined;
2803
2802
  };
2803
+ agentContext: string;
2804
2804
  messageHistory: {
2805
2805
  content: string | ({
2806
2806
  type: "text";
@@ -2972,6 +2972,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2972
2972
  }>;
2973
2973
  }, "strip", z.ZodTypeAny, {
2974
2974
  type: "init";
2975
+ fingerprintId: string;
2975
2976
  fileContext: {
2976
2977
  currentWorkingDirectory: string;
2977
2978
  fileTree: import("../util/file").FileTreeNode[];
@@ -2999,10 +3000,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2999
3000
  }[][];
3000
3001
  userKnowledgeFiles?: Record<string, string> | undefined;
3001
3002
  };
3002
- fingerprintId: string;
3003
3003
  authToken?: string | undefined;
3004
3004
  }, {
3005
3005
  type: "init";
3006
+ fingerprintId: string;
3006
3007
  fileContext: {
3007
3008
  currentWorkingDirectory: string;
3008
3009
  fileTree: import("../util/file").FileTreeNode[];
@@ -3030,7 +3031,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3030
3031
  }[][];
3031
3032
  userKnowledgeFiles?: Record<string, string> | undefined;
3032
3033
  };
3033
- fingerprintId: string;
3034
3034
  authToken?: string | undefined;
3035
3035
  }>, z.ZodObject<{
3036
3036
  type: z.ZodLiteral<"usage">;
@@ -3064,33 +3064,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3064
3064
  type: "action";
3065
3065
  data: {
3066
3066
  type: "user-input";
3067
- fileContext: {
3068
- currentWorkingDirectory: string;
3069
- fileTree: import("../util/file").FileTreeNode[];
3070
- fileTokenScores: Record<string, Record<string, number>>;
3071
- knowledgeFiles: Record<string, string>;
3072
- gitChanges: {
3073
- status: string;
3074
- diff: string;
3075
- diffCached: string;
3076
- lastCommitMessages: string;
3077
- };
3078
- changesSinceLastChat: Record<string, string>;
3079
- shellConfigFiles: Record<string, string>;
3080
- systemInfo: {
3081
- platform: string;
3082
- shell: string;
3083
- nodeVersion: string;
3084
- arch: string;
3085
- homedir: string;
3086
- cpus: number;
3087
- };
3088
- fileVersions: {
3089
- path: string;
3090
- content: string;
3091
- }[][];
3092
- userKnowledgeFiles?: Record<string, string> | undefined;
3093
- };
3094
3067
  fingerprintId: string;
3095
3068
  userInputId: string;
3096
3069
  messages: {
@@ -3128,6 +3101,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3128
3101
  })[];
3129
3102
  role: "user" | "assistant";
3130
3103
  }[];
3104
+ fileContext: {
3105
+ currentWorkingDirectory: string;
3106
+ fileTree: import("../util/file").FileTreeNode[];
3107
+ fileTokenScores: Record<string, Record<string, number>>;
3108
+ knowledgeFiles: Record<string, string>;
3109
+ gitChanges: {
3110
+ status: string;
3111
+ diff: string;
3112
+ diffCached: string;
3113
+ lastCommitMessages: string;
3114
+ };
3115
+ changesSinceLastChat: Record<string, string>;
3116
+ shellConfigFiles: Record<string, string>;
3117
+ systemInfo: {
3118
+ platform: string;
3119
+ shell: string;
3120
+ nodeVersion: string;
3121
+ arch: string;
3122
+ homedir: string;
3123
+ cpus: number;
3124
+ };
3125
+ fileVersions: {
3126
+ path: string;
3127
+ content: string;
3128
+ }[][];
3129
+ userKnowledgeFiles?: Record<string, string> | undefined;
3130
+ };
3131
3131
  changesAlreadyApplied: {
3132
3132
  path: string;
3133
3133
  content: string;
@@ -3141,7 +3141,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3141
3141
  costMode: "max" | "lite" | "normal";
3142
3142
  promptId: string;
3143
3143
  agentState: {
3144
- agentContext: string;
3145
3144
  fileContext: {
3146
3145
  currentWorkingDirectory: string;
3147
3146
  fileTree: import("../util/file").FileTreeNode[];
@@ -3169,6 +3168,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3169
3168
  }[][];
3170
3169
  userKnowledgeFiles?: Record<string, string> | undefined;
3171
3170
  };
3171
+ agentContext: string;
3172
3172
  messageHistory: {
3173
3173
  content: string | ({
3174
3174
  type: "text";
@@ -3218,6 +3218,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3218
3218
  requestId?: string | undefined;
3219
3219
  } | {
3220
3220
  type: "init";
3221
+ fingerprintId: string;
3221
3222
  fileContext: {
3222
3223
  currentWorkingDirectory: string;
3223
3224
  fileTree: import("../util/file").FileTreeNode[];
@@ -3245,7 +3246,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3245
3246
  }[][];
3246
3247
  userKnowledgeFiles?: Record<string, string> | undefined;
3247
3248
  };
3248
- fingerprintId: string;
3249
3249
  authToken?: string | undefined;
3250
3250
  } | {
3251
3251
  type: "usage";
@@ -3262,33 +3262,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3262
3262
  type: "action";
3263
3263
  data: {
3264
3264
  type: "user-input";
3265
- fileContext: {
3266
- currentWorkingDirectory: string;
3267
- fileTree: import("../util/file").FileTreeNode[];
3268
- fileTokenScores: Record<string, Record<string, number>>;
3269
- knowledgeFiles: Record<string, string>;
3270
- gitChanges: {
3271
- status: string;
3272
- diff: string;
3273
- diffCached: string;
3274
- lastCommitMessages: string;
3275
- };
3276
- changesSinceLastChat: Record<string, string>;
3277
- shellConfigFiles: Record<string, string>;
3278
- systemInfo: {
3279
- platform: string;
3280
- shell: string;
3281
- nodeVersion: string;
3282
- arch: string;
3283
- homedir: string;
3284
- cpus: number;
3285
- };
3286
- fileVersions: {
3287
- path: string;
3288
- content: string;
3289
- }[][];
3290
- userKnowledgeFiles?: Record<string, string> | undefined;
3291
- };
3292
3265
  fingerprintId: string;
3293
3266
  userInputId: string;
3294
3267
  messages: {
@@ -3326,6 +3299,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3326
3299
  })[];
3327
3300
  role: "user" | "assistant";
3328
3301
  }[];
3302
+ fileContext: {
3303
+ currentWorkingDirectory: string;
3304
+ fileTree: import("../util/file").FileTreeNode[];
3305
+ fileTokenScores: Record<string, Record<string, number>>;
3306
+ knowledgeFiles: Record<string, string>;
3307
+ gitChanges: {
3308
+ status: string;
3309
+ diff: string;
3310
+ diffCached: string;
3311
+ lastCommitMessages: string;
3312
+ };
3313
+ changesSinceLastChat: Record<string, string>;
3314
+ shellConfigFiles: Record<string, string>;
3315
+ systemInfo: {
3316
+ platform: string;
3317
+ shell: string;
3318
+ nodeVersion: string;
3319
+ arch: string;
3320
+ homedir: string;
3321
+ cpus: number;
3322
+ };
3323
+ fileVersions: {
3324
+ path: string;
3325
+ content: string;
3326
+ }[][];
3327
+ userKnowledgeFiles?: Record<string, string> | undefined;
3328
+ };
3329
3329
  changesAlreadyApplied: {
3330
3330
  path: string;
3331
3331
  content: string;
@@ -3338,7 +3338,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3338
3338
  fingerprintId: string;
3339
3339
  promptId: string;
3340
3340
  agentState: {
3341
- agentContext: string;
3342
3341
  fileContext: {
3343
3342
  currentWorkingDirectory: string;
3344
3343
  fileTree: import("../util/file").FileTreeNode[];
@@ -3366,6 +3365,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3366
3365
  }[][];
3367
3366
  userKnowledgeFiles?: Record<string, string> | undefined;
3368
3367
  };
3368
+ agentContext: string;
3369
3369
  messageHistory: {
3370
3370
  content: string | ({
3371
3371
  type: "text";
@@ -3416,6 +3416,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3416
3416
  requestId?: string | undefined;
3417
3417
  } | {
3418
3418
  type: "init";
3419
+ fingerprintId: string;
3419
3420
  fileContext: {
3420
3421
  currentWorkingDirectory: string;
3421
3422
  fileTree: import("../util/file").FileTreeNode[];
@@ -3443,7 +3444,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3443
3444
  }[][];
3444
3445
  userKnowledgeFiles?: Record<string, string> | undefined;
3445
3446
  };
3446
- fingerprintId: string;
3447
3447
  authToken?: string | undefined;
3448
3448
  } | {
3449
3449
  type: "usage";
@@ -3468,13 +3468,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3468
3468
  }, "strip", z.ZodTypeAny, {
3469
3469
  type: "ack";
3470
3470
  success: boolean;
3471
- error?: string | undefined;
3472
3471
  txid?: number | undefined;
3472
+ error?: string | undefined;
3473
3473
  }, {
3474
3474
  type: "ack";
3475
3475
  success: boolean;
3476
- error?: string | undefined;
3477
3476
  txid?: number | undefined;
3477
+ error?: string | undefined;
3478
3478
  }>;
3479
3479
  action: z.ZodObject<{
3480
3480
  type: z.ZodLiteral<"action">;
@@ -3892,7 +3892,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3892
3892
  role: "user" | "assistant";
3893
3893
  }>, "many">;
3894
3894
  }, "strip", z.ZodTypeAny, {
3895
- agentContext: string;
3896
3895
  fileContext: {
3897
3896
  currentWorkingDirectory: string;
3898
3897
  fileTree: import("../util/file").FileTreeNode[];
@@ -3920,6 +3919,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3920
3919
  }[][];
3921
3920
  userKnowledgeFiles?: Record<string, string> | undefined;
3922
3921
  };
3922
+ agentContext: string;
3923
3923
  messageHistory: {
3924
3924
  content: string | ({
3925
3925
  type: "text";
@@ -3956,7 +3956,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3956
3956
  role: "user" | "assistant";
3957
3957
  }[];
3958
3958
  }, {
3959
- agentContext: string;
3960
3959
  fileContext: {
3961
3960
  currentWorkingDirectory: string;
3962
3961
  fileTree: import("../util/file").FileTreeNode[];
@@ -3984,6 +3983,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3984
3983
  }[][];
3985
3984
  userKnowledgeFiles?: Record<string, string> | undefined;
3986
3985
  };
3986
+ agentContext: string;
3987
3987
  messageHistory: {
3988
3988
  content: string | ({
3989
3989
  type: "text";
@@ -4057,7 +4057,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4057
4057
  type: "prompt-response";
4058
4058
  promptId: string;
4059
4059
  agentState: {
4060
- agentContext: string;
4061
4060
  fileContext: {
4062
4061
  currentWorkingDirectory: string;
4063
4062
  fileTree: import("../util/file").FileTreeNode[];
@@ -4085,6 +4084,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4085
4084
  }[][];
4086
4085
  userKnowledgeFiles?: Record<string, string> | undefined;
4087
4086
  };
4087
+ agentContext: string;
4088
4088
  messageHistory: {
4089
4089
  content: string | ({
4090
4090
  type: "text";
@@ -4141,7 +4141,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4141
4141
  type: "prompt-response";
4142
4142
  promptId: string;
4143
4143
  agentState: {
4144
- agentContext: string;
4145
4144
  fileContext: {
4146
4145
  currentWorkingDirectory: string;
4147
4146
  fileTree: import("../util/file").FileTreeNode[];
@@ -4169,6 +4168,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4169
4168
  }[][];
4170
4169
  userKnowledgeFiles?: Record<string, string> | undefined;
4171
4170
  };
4171
+ agentContext: string;
4172
4172
  messageHistory: {
4173
4173
  content: string | ({
4174
4174
  type: "text";
@@ -4289,12 +4289,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4289
4289
  resetFileVersions: z.ZodBoolean;
4290
4290
  }, "strip", z.ZodTypeAny, {
4291
4291
  type: "tool-call";
4292
+ userInputId: string;
4292
4293
  data: {
4293
4294
  name: string;
4294
4295
  id: string;
4295
4296
  input: Record<string, any>;
4296
4297
  };
4297
- userInputId: string;
4298
4298
  changesAlreadyApplied: {
4299
4299
  path: string;
4300
4300
  content: string;
@@ -4313,12 +4313,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4313
4313
  resetFileVersions: boolean;
4314
4314
  }, {
4315
4315
  type: "tool-call";
4316
+ userInputId: string;
4316
4317
  data: {
4317
4318
  name: string;
4318
4319
  id: string;
4319
4320
  input: Record<string, any>;
4320
4321
  };
4321
- userInputId: string;
4322
4322
  changesAlreadyApplied: {
4323
4323
  path: string;
4324
4324
  content: string;
@@ -4341,12 +4341,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4341
4341
  result: z.ZodString;
4342
4342
  }, "strip", z.ZodTypeAny, {
4343
4343
  type: "terminal-command-result";
4344
- result: string;
4345
4344
  userInputId: string;
4345
+ result: string;
4346
4346
  }, {
4347
4347
  type: "terminal-command-result";
4348
- result: string;
4349
4348
  userInputId: string;
4349
+ result: string;
4350
4350
  }>, z.ZodObject<{
4351
4351
  type: z.ZodLiteral<"npm-version-status">;
4352
4352
  isUpToDate: z.ZodBoolean;
@@ -4475,7 +4475,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4475
4475
  type: "prompt-response";
4476
4476
  promptId: string;
4477
4477
  agentState: {
4478
- agentContext: string;
4479
4478
  fileContext: {
4480
4479
  currentWorkingDirectory: string;
4481
4480
  fileTree: import("../util/file").FileTreeNode[];
@@ -4503,6 +4502,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4503
4502
  }[][];
4504
4503
  userKnowledgeFiles?: Record<string, string> | undefined;
4505
4504
  };
4505
+ agentContext: string;
4506
4506
  messageHistory: {
4507
4507
  content: string | ({
4508
4508
  type: "text";
@@ -4565,12 +4565,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4565
4565
  filePaths: string[];
4566
4566
  } | {
4567
4567
  type: "tool-call";
4568
+ userInputId: string;
4568
4569
  data: {
4569
4570
  name: string;
4570
4571
  id: string;
4571
4572
  input: Record<string, any>;
4572
4573
  };
4573
- userInputId: string;
4574
4574
  changesAlreadyApplied: {
4575
4575
  path: string;
4576
4576
  content: string;
@@ -4589,8 +4589,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4589
4589
  resetFileVersions: boolean;
4590
4590
  } | {
4591
4591
  type: "terminal-command-result";
4592
- result: string;
4593
4592
  userInputId: string;
4593
+ result: string;
4594
4594
  } | {
4595
4595
  type: "npm-version-status";
4596
4596
  isUpToDate: boolean;
@@ -4649,7 +4649,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4649
4649
  type: "prompt-response";
4650
4650
  promptId: string;
4651
4651
  agentState: {
4652
- agentContext: string;
4653
4652
  fileContext: {
4654
4653
  currentWorkingDirectory: string;
4655
4654
  fileTree: import("../util/file").FileTreeNode[];
@@ -4677,6 +4676,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4677
4676
  }[][];
4678
4677
  userKnowledgeFiles?: Record<string, string> | undefined;
4679
4678
  };
4679
+ agentContext: string;
4680
4680
  messageHistory: {
4681
4681
  content: string | ({
4682
4682
  type: "text";
@@ -4739,12 +4739,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4739
4739
  filePaths: string[];
4740
4740
  } | {
4741
4741
  type: "tool-call";
4742
+ userInputId: string;
4742
4743
  data: {
4743
4744
  name: string;
4744
4745
  id: string;
4745
4746
  input: Record<string, any>;
4746
4747
  };
4747
- userInputId: string;
4748
4748
  changesAlreadyApplied: {
4749
4749
  path: string;
4750
4750
  content: string;
@@ -4763,8 +4763,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4763
4763
  resetFileVersions: boolean;
4764
4764
  } | {
4765
4765
  type: "terminal-command-result";
4766
- result: string;
4767
4766
  userInputId: string;
4767
+ result: string;
4768
4768
  } | {
4769
4769
  type: "npm-version-status";
4770
4770
  isUpToDate: boolean;
@@ -4786,13 +4786,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4786
4786
  }, "strip", z.ZodTypeAny, {
4787
4787
  type: "ack";
4788
4788
  success: boolean;
4789
- error?: string | undefined;
4790
4789
  txid?: number | undefined;
4790
+ error?: string | undefined;
4791
4791
  }, {
4792
4792
  type: "ack";
4793
4793
  success: boolean;
4794
- error?: string | undefined;
4795
4794
  txid?: number | undefined;
4795
+ error?: string | undefined;
4796
4796
  }>, z.ZodObject<{
4797
4797
  type: z.ZodLiteral<"action">;
4798
4798
  data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -5209,7 +5209,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5209
5209
  role: "user" | "assistant";
5210
5210
  }>, "many">;
5211
5211
  }, "strip", z.ZodTypeAny, {
5212
- agentContext: string;
5213
5212
  fileContext: {
5214
5213
  currentWorkingDirectory: string;
5215
5214
  fileTree: import("../util/file").FileTreeNode[];
@@ -5237,6 +5236,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5237
5236
  }[][];
5238
5237
  userKnowledgeFiles?: Record<string, string> | undefined;
5239
5238
  };
5239
+ agentContext: string;
5240
5240
  messageHistory: {
5241
5241
  content: string | ({
5242
5242
  type: "text";
@@ -5273,7 +5273,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5273
5273
  role: "user" | "assistant";
5274
5274
  }[];
5275
5275
  }, {
5276
- agentContext: string;
5277
5276
  fileContext: {
5278
5277
  currentWorkingDirectory: string;
5279
5278
  fileTree: import("../util/file").FileTreeNode[];
@@ -5301,6 +5300,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5301
5300
  }[][];
5302
5301
  userKnowledgeFiles?: Record<string, string> | undefined;
5303
5302
  };
5303
+ agentContext: string;
5304
5304
  messageHistory: {
5305
5305
  content: string | ({
5306
5306
  type: "text";
@@ -5374,7 +5374,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5374
5374
  type: "prompt-response";
5375
5375
  promptId: string;
5376
5376
  agentState: {
5377
- agentContext: string;
5378
5377
  fileContext: {
5379
5378
  currentWorkingDirectory: string;
5380
5379
  fileTree: import("../util/file").FileTreeNode[];
@@ -5402,6 +5401,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5402
5401
  }[][];
5403
5402
  userKnowledgeFiles?: Record<string, string> | undefined;
5404
5403
  };
5404
+ agentContext: string;
5405
5405
  messageHistory: {
5406
5406
  content: string | ({
5407
5407
  type: "text";
@@ -5458,7 +5458,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5458
5458
  type: "prompt-response";
5459
5459
  promptId: string;
5460
5460
  agentState: {
5461
- agentContext: string;
5462
5461
  fileContext: {
5463
5462
  currentWorkingDirectory: string;
5464
5463
  fileTree: import("../util/file").FileTreeNode[];
@@ -5486,6 +5485,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5486
5485
  }[][];
5487
5486
  userKnowledgeFiles?: Record<string, string> | undefined;
5488
5487
  };
5488
+ agentContext: string;
5489
5489
  messageHistory: {
5490
5490
  content: string | ({
5491
5491
  type: "text";
@@ -5606,12 +5606,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5606
5606
  resetFileVersions: z.ZodBoolean;
5607
5607
  }, "strip", z.ZodTypeAny, {
5608
5608
  type: "tool-call";
5609
+ userInputId: string;
5609
5610
  data: {
5610
5611
  name: string;
5611
5612
  id: string;
5612
5613
  input: Record<string, any>;
5613
5614
  };
5614
- userInputId: string;
5615
5615
  changesAlreadyApplied: {
5616
5616
  path: string;
5617
5617
  content: string;
@@ -5630,12 +5630,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5630
5630
  resetFileVersions: boolean;
5631
5631
  }, {
5632
5632
  type: "tool-call";
5633
+ userInputId: string;
5633
5634
  data: {
5634
5635
  name: string;
5635
5636
  id: string;
5636
5637
  input: Record<string, any>;
5637
5638
  };
5638
- userInputId: string;
5639
5639
  changesAlreadyApplied: {
5640
5640
  path: string;
5641
5641
  content: string;
@@ -5658,12 +5658,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5658
5658
  result: z.ZodString;
5659
5659
  }, "strip", z.ZodTypeAny, {
5660
5660
  type: "terminal-command-result";
5661
- result: string;
5662
5661
  userInputId: string;
5662
+ result: string;
5663
5663
  }, {
5664
5664
  type: "terminal-command-result";
5665
- result: string;
5666
5665
  userInputId: string;
5666
+ result: string;
5667
5667
  }>, z.ZodObject<{
5668
5668
  type: z.ZodLiteral<"npm-version-status">;
5669
5669
  isUpToDate: z.ZodBoolean;
@@ -5792,7 +5792,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5792
5792
  type: "prompt-response";
5793
5793
  promptId: string;
5794
5794
  agentState: {
5795
- agentContext: string;
5796
5795
  fileContext: {
5797
5796
  currentWorkingDirectory: string;
5798
5797
  fileTree: import("../util/file").FileTreeNode[];
@@ -5820,6 +5819,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5820
5819
  }[][];
5821
5820
  userKnowledgeFiles?: Record<string, string> | undefined;
5822
5821
  };
5822
+ agentContext: string;
5823
5823
  messageHistory: {
5824
5824
  content: string | ({
5825
5825
  type: "text";
@@ -5882,12 +5882,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5882
5882
  filePaths: string[];
5883
5883
  } | {
5884
5884
  type: "tool-call";
5885
+ userInputId: string;
5885
5886
  data: {
5886
5887
  name: string;
5887
5888
  id: string;
5888
5889
  input: Record<string, any>;
5889
5890
  };
5890
- userInputId: string;
5891
5891
  changesAlreadyApplied: {
5892
5892
  path: string;
5893
5893
  content: string;
@@ -5906,8 +5906,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5906
5906
  resetFileVersions: boolean;
5907
5907
  } | {
5908
5908
  type: "terminal-command-result";
5909
- result: string;
5910
5909
  userInputId: string;
5910
+ result: string;
5911
5911
  } | {
5912
5912
  type: "npm-version-status";
5913
5913
  isUpToDate: boolean;
@@ -5966,7 +5966,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5966
5966
  type: "prompt-response";
5967
5967
  promptId: string;
5968
5968
  agentState: {
5969
- agentContext: string;
5970
5969
  fileContext: {
5971
5970
  currentWorkingDirectory: string;
5972
5971
  fileTree: import("../util/file").FileTreeNode[];
@@ -5994,6 +5993,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5994
5993
  }[][];
5995
5994
  userKnowledgeFiles?: Record<string, string> | undefined;
5996
5995
  };
5996
+ agentContext: string;
5997
5997
  messageHistory: {
5998
5998
  content: string | ({
5999
5999
  type: "text";
@@ -6056,12 +6056,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
6056
6056
  filePaths: string[];
6057
6057
  } | {
6058
6058
  type: "tool-call";
6059
+ userInputId: string;
6059
6060
  data: {
6060
6061
  name: string;
6061
6062
  id: string;
6062
6063
  input: Record<string, any>;
6063
6064
  };
6064
- userInputId: string;
6065
6065
  changesAlreadyApplied: {
6066
6066
  path: string;
6067
6067
  content: string;
@@ -6080,8 +6080,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
6080
6080
  resetFileVersions: boolean;
6081
6081
  } | {
6082
6082
  type: "terminal-command-result";
6083
- result: string;
6084
6083
  userInputId: string;
6084
+ result: string;
6085
6085
  } | {
6086
6086
  type: "npm-version-status";
6087
6087
  isUpToDate: boolean;