codebuff 1.0.175 → 1.0.177

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 (58) hide show
  1. package/dist/checkpoints/checkpoint-manager.d.ts +73 -0
  2. package/dist/checkpoints/checkpoint-manager.js +193 -0
  3. package/dist/checkpoints/checkpoint-manager.js.map +1 -0
  4. package/dist/{checkpoint-file-manager.d.ts → checkpoints/file-manager.d.ts} +10 -0
  5. package/dist/{checkpoint-file-manager.js → checkpoints/file-manager.js} +92 -35
  6. package/dist/checkpoints/file-manager.js.map +1 -0
  7. package/dist/cli.d.ts +0 -1
  8. package/dist/cli.js +35 -58
  9. package/dist/cli.js.map +1 -1
  10. package/dist/client.d.ts +6 -4
  11. package/dist/client.js +28 -16
  12. package/dist/client.js.map +1 -1
  13. package/dist/code-map/tsconfig.tsbuildinfo +1 -1
  14. package/dist/common/actions.d.ts +36 -36
  15. package/dist/common/advanced-analyzer.d.ts +19 -0
  16. package/dist/common/advanced-analyzer.js +140 -0
  17. package/dist/common/advanced-analyzer.js.map +1 -0
  18. package/dist/common/browser-actions.d.ts +48 -48
  19. package/dist/common/constants.d.ts +0 -1
  20. package/dist/common/constants.js +1 -44
  21. package/dist/common/constants.js.map +1 -1
  22. package/dist/common/message-image-handling.d.ts +41 -0
  23. package/dist/common/message-image-handling.js +57 -0
  24. package/dist/common/message-image-handling.js.map +1 -0
  25. package/dist/common/project-file-tree.d.ts +1 -0
  26. package/dist/common/project-file-tree.js +3 -1
  27. package/dist/common/project-file-tree.js.map +1 -1
  28. package/dist/common/types/agent-state.d.ts +22 -22
  29. package/dist/common/types/message.d.ts +18 -18
  30. package/dist/common/util/file.d.ts +4 -4
  31. package/dist/common/util/process-stream.d.ts +8 -0
  32. package/dist/common/util/process-stream.js +102 -0
  33. package/dist/common/util/process-stream.js.map +1 -0
  34. package/dist/common/websockets/websocket-schema.d.ts +72 -72
  35. package/dist/menu.js +1 -1
  36. package/dist/menu.js.map +1 -1
  37. package/dist/project-files.d.ts +2 -2
  38. package/dist/project-files.js +2 -2
  39. package/dist/project-files.js.map +1 -1
  40. package/dist/tool-handlers.d.ts +2 -1
  41. package/dist/tool-handlers.js +3 -3
  42. package/dist/tool-handlers.js.map +1 -1
  43. package/dist/utils/terminal.js +4 -40
  44. package/dist/utils/terminal.js.map +1 -1
  45. package/dist/utils/tool-renderers.js +14 -2
  46. package/dist/utils/tool-renderers.js.map +1 -1
  47. package/dist/workers/checkpoint-worker.js +47 -0
  48. package/dist/workers/checkpoint-worker.js.map +1 -0
  49. package/dist/workers/project-context.d.ts +1 -0
  50. package/dist/{worker-script-project-context.js → workers/project-context.js} +5 -5
  51. package/dist/workers/project-context.js.map +1 -0
  52. package/package.json +1 -1
  53. package/dist/checkpoint-file-manager.js.map +0 -1
  54. package/dist/checkpoints.d.ts +0 -63
  55. package/dist/checkpoints.js +0 -159
  56. package/dist/checkpoints.js.map +0 -1
  57. package/dist/worker-script-project-context.js.map +0 -1
  58. /package/dist/{worker-script-project-context.d.ts → workers/checkpoint-worker.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-stream.js","sourceRoot":"","sources":["../../src/util/process-stream.ts"],"names":[],"mappings":";;AAAA,sDAoHC;AAED,0CAWC;AAjIM,KAAK,SAAS,CAAC,CAAC,qBAAqB,CAC1C,MAA6C,EAC7C,IAMC;IAED,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,SAAS,GAAkB,IAAI,CAAA;IACnC,IAAI,iBAAiB,GAA2B,EAAE,CAAA;IAClD,IAAI,eAAe,GAAG,KAAK,CAAA;IAE3B,MAAM,YAAY,GAAG,CAAC,MAAc,EAAE,EAAE,CACtC,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAA;IAC/C,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAClC,MAAM,YAAY,GAAG,IAAI,MAAM,CAC7B,KAAK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,SAAS,GAAG,GAAG,CAAA;wBAC5B,MAAM,GAAG,EAAE,CAAA;wBACX,SAAS,GAAG,IAAI,CAAA;wBAChB,iBAAiB,GAAG,EAAE,CAAA;wBACtB,IAAI,QAAQ,EAAE,CAAC;4BACb,eAAe,GAAG,IAAI,CAAA;4BACtB,OAAM;wBACR,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QACjC,IAAI,eAAe;YAAE,SAAQ;QAC7B,MAAM,IAAI,KAAK,CAAA;QACf,KAAK,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;IAC3B,CAAC;IAED,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,iFAAiF;QACjF,KAAK,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;IAC/B,CAAC;AACH,CAAC;AAED,SAAgB,eAAe,CAC7B,gBAAwB,EACxB,cAAwB;IAExB,MAAM,UAAU,GAA2B,EAAE,CAAA;IAC7C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,CAAA;IACxE,IAAI,KAAK,CAAA;IACT,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;QACvD,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;IACjC,CAAC;IACD,OAAO,UAAU,CAAA;AACnB,CAAC"}
@@ -258,13 +258,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
258
258
  diffCached: z.ZodString;
259
259
  lastCommitMessages: z.ZodString;
260
260
  }, "strip", z.ZodTypeAny, {
261
- diff: string;
262
261
  status: string;
262
+ diff: string;
263
263
  diffCached: string;
264
264
  lastCommitMessages: string;
265
265
  }, {
266
- diff: string;
267
266
  status: string;
267
+ diff: string;
268
268
  diffCached: string;
269
269
  lastCommitMessages: string;
270
270
  }>;
@@ -308,8 +308,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
308
308
  fileTokenScores: Record<string, Record<string, number>>;
309
309
  knowledgeFiles: Record<string, string>;
310
310
  gitChanges: {
311
- diff: string;
312
311
  status: string;
312
+ diff: string;
313
313
  diffCached: string;
314
314
  lastCommitMessages: string;
315
315
  };
@@ -334,8 +334,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
334
334
  fileTokenScores: Record<string, Record<string, number>>;
335
335
  knowledgeFiles: Record<string, string>;
336
336
  gitChanges: {
337
- diff: string;
338
337
  status: string;
338
+ diff: string;
339
339
  diffCached: string;
340
340
  lastCommitMessages: string;
341
341
  };
@@ -414,8 +414,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
414
414
  fileTokenScores: Record<string, Record<string, number>>;
415
415
  knowledgeFiles: Record<string, string>;
416
416
  gitChanges: {
417
- diff: string;
418
417
  status: string;
418
+ diff: string;
419
419
  diffCached: string;
420
420
  lastCommitMessages: string;
421
421
  };
@@ -487,8 +487,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
487
487
  fileTokenScores: Record<string, Record<string, number>>;
488
488
  knowledgeFiles: Record<string, string>;
489
489
  gitChanges: {
490
- diff: string;
491
490
  status: string;
491
+ diff: string;
492
492
  diffCached: string;
493
493
  lastCommitMessages: string;
494
494
  };
@@ -536,13 +536,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
536
536
  diffCached: z.ZodString;
537
537
  lastCommitMessages: z.ZodString;
538
538
  }, "strip", z.ZodTypeAny, {
539
- diff: string;
540
539
  status: string;
540
+ diff: string;
541
541
  diffCached: string;
542
542
  lastCommitMessages: string;
543
543
  }, {
544
- diff: string;
545
544
  status: string;
545
+ diff: string;
546
546
  diffCached: string;
547
547
  lastCommitMessages: string;
548
548
  }>;
@@ -586,8 +586,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
586
586
  fileTokenScores: Record<string, Record<string, number>>;
587
587
  knowledgeFiles: Record<string, string>;
588
588
  gitChanges: {
589
- diff: string;
590
589
  status: string;
590
+ diff: string;
591
591
  diffCached: string;
592
592
  lastCommitMessages: string;
593
593
  };
@@ -612,8 +612,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
612
612
  fileTokenScores: Record<string, Record<string, number>>;
613
613
  knowledgeFiles: Record<string, string>;
614
614
  gitChanges: {
615
- diff: string;
616
615
  status: string;
616
+ diff: string;
617
617
  diffCached: string;
618
618
  lastCommitMessages: string;
619
619
  };
@@ -829,8 +829,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
829
829
  fileTokenScores: Record<string, Record<string, number>>;
830
830
  knowledgeFiles: Record<string, string>;
831
831
  gitChanges: {
832
- diff: string;
833
832
  status: string;
833
+ diff: string;
834
834
  diffCached: string;
835
835
  lastCommitMessages: string;
836
836
  };
@@ -893,8 +893,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
893
893
  fileTokenScores: Record<string, Record<string, number>>;
894
894
  knowledgeFiles: Record<string, string>;
895
895
  gitChanges: {
896
- diff: string;
897
896
  status: string;
897
+ diff: string;
898
898
  diffCached: string;
899
899
  lastCommitMessages: string;
900
900
  };
@@ -976,8 +976,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
976
976
  fileTokenScores: Record<string, Record<string, number>>;
977
977
  knowledgeFiles: Record<string, string>;
978
978
  gitChanges: {
979
- diff: string;
980
979
  status: string;
980
+ diff: string;
981
981
  diffCached: string;
982
982
  lastCommitMessages: string;
983
983
  };
@@ -1052,8 +1052,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1052
1052
  fileTokenScores: Record<string, Record<string, number>>;
1053
1053
  knowledgeFiles: Record<string, string>;
1054
1054
  gitChanges: {
1055
- diff: string;
1056
1055
  status: string;
1056
+ diff: string;
1057
1057
  diffCached: string;
1058
1058
  lastCommitMessages: string;
1059
1059
  };
@@ -1146,13 +1146,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1146
1146
  diffCached: z.ZodString;
1147
1147
  lastCommitMessages: z.ZodString;
1148
1148
  }, "strip", z.ZodTypeAny, {
1149
- diff: string;
1150
1149
  status: string;
1150
+ diff: string;
1151
1151
  diffCached: string;
1152
1152
  lastCommitMessages: string;
1153
1153
  }, {
1154
- diff: string;
1155
1154
  status: string;
1155
+ diff: string;
1156
1156
  diffCached: string;
1157
1157
  lastCommitMessages: string;
1158
1158
  }>;
@@ -1196,8 +1196,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1196
1196
  fileTokenScores: Record<string, Record<string, number>>;
1197
1197
  knowledgeFiles: Record<string, string>;
1198
1198
  gitChanges: {
1199
- diff: string;
1200
1199
  status: string;
1200
+ diff: string;
1201
1201
  diffCached: string;
1202
1202
  lastCommitMessages: string;
1203
1203
  };
@@ -1222,8 +1222,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1222
1222
  fileTokenScores: Record<string, Record<string, number>>;
1223
1223
  knowledgeFiles: Record<string, string>;
1224
1224
  gitChanges: {
1225
- diff: string;
1226
1225
  status: string;
1226
+ diff: string;
1227
1227
  diffCached: string;
1228
1228
  lastCommitMessages: string;
1229
1229
  };
@@ -1252,8 +1252,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1252
1252
  fileTokenScores: Record<string, Record<string, number>>;
1253
1253
  knowledgeFiles: Record<string, string>;
1254
1254
  gitChanges: {
1255
- diff: string;
1256
1255
  status: string;
1256
+ diff: string;
1257
1257
  diffCached: string;
1258
1258
  lastCommitMessages: string;
1259
1259
  };
@@ -1283,8 +1283,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1283
1283
  fileTokenScores: Record<string, Record<string, number>>;
1284
1284
  knowledgeFiles: Record<string, string>;
1285
1285
  gitChanges: {
1286
- diff: string;
1287
1286
  status: string;
1287
+ diff: string;
1288
1288
  diffCached: string;
1289
1289
  lastCommitMessages: string;
1290
1290
  };
@@ -1380,8 +1380,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1380
1380
  fileTokenScores: Record<string, Record<string, number>>;
1381
1381
  knowledgeFiles: Record<string, string>;
1382
1382
  gitChanges: {
1383
- diff: string;
1384
1383
  status: string;
1384
+ diff: string;
1385
1385
  diffCached: string;
1386
1386
  lastCommitMessages: string;
1387
1387
  };
@@ -1420,8 +1420,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1420
1420
  fileTokenScores: Record<string, Record<string, number>>;
1421
1421
  knowledgeFiles: Record<string, string>;
1422
1422
  gitChanges: {
1423
- diff: string;
1424
1423
  status: string;
1424
+ diff: string;
1425
1425
  diffCached: string;
1426
1426
  lastCommitMessages: string;
1427
1427
  };
@@ -1498,8 +1498,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1498
1498
  fileTokenScores: Record<string, Record<string, number>>;
1499
1499
  knowledgeFiles: Record<string, string>;
1500
1500
  gitChanges: {
1501
- diff: string;
1502
1501
  status: string;
1502
+ diff: string;
1503
1503
  diffCached: string;
1504
1504
  lastCommitMessages: string;
1505
1505
  };
@@ -1578,8 +1578,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1578
1578
  fileTokenScores: Record<string, Record<string, number>>;
1579
1579
  knowledgeFiles: Record<string, string>;
1580
1580
  gitChanges: {
1581
- diff: string;
1582
1581
  status: string;
1582
+ diff: string;
1583
1583
  diffCached: string;
1584
1584
  lastCommitMessages: string;
1585
1585
  };
@@ -1617,8 +1617,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1617
1617
  fileTokenScores: Record<string, Record<string, number>>;
1618
1618
  knowledgeFiles: Record<string, string>;
1619
1619
  gitChanges: {
1620
- diff: string;
1621
1620
  status: string;
1621
+ diff: string;
1622
1622
  diffCached: string;
1623
1623
  lastCommitMessages: string;
1624
1624
  };
@@ -1696,8 +1696,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
1696
1696
  fileTokenScores: Record<string, Record<string, number>>;
1697
1697
  knowledgeFiles: Record<string, string>;
1698
1698
  gitChanges: {
1699
- diff: string;
1700
1699
  status: string;
1700
+ diff: string;
1701
1701
  diffCached: string;
1702
1702
  lastCommitMessages: string;
1703
1703
  };
@@ -1985,13 +1985,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
1985
1985
  diffCached: z.ZodString;
1986
1986
  lastCommitMessages: z.ZodString;
1987
1987
  }, "strip", z.ZodTypeAny, {
1988
- diff: string;
1989
1988
  status: string;
1989
+ diff: string;
1990
1990
  diffCached: string;
1991
1991
  lastCommitMessages: string;
1992
1992
  }, {
1993
- diff: string;
1994
1993
  status: string;
1994
+ diff: string;
1995
1995
  diffCached: string;
1996
1996
  lastCommitMessages: string;
1997
1997
  }>;
@@ -2035,8 +2035,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2035
2035
  fileTokenScores: Record<string, Record<string, number>>;
2036
2036
  knowledgeFiles: Record<string, string>;
2037
2037
  gitChanges: {
2038
- diff: string;
2039
2038
  status: string;
2039
+ diff: string;
2040
2040
  diffCached: string;
2041
2041
  lastCommitMessages: string;
2042
2042
  };
@@ -2061,8 +2061,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2061
2061
  fileTokenScores: Record<string, Record<string, number>>;
2062
2062
  knowledgeFiles: Record<string, string>;
2063
2063
  gitChanges: {
2064
- diff: string;
2065
2064
  status: string;
2065
+ diff: string;
2066
2066
  diffCached: string;
2067
2067
  lastCommitMessages: string;
2068
2068
  };
@@ -2141,8 +2141,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2141
2141
  fileTokenScores: Record<string, Record<string, number>>;
2142
2142
  knowledgeFiles: Record<string, string>;
2143
2143
  gitChanges: {
2144
- diff: string;
2145
2144
  status: string;
2145
+ diff: string;
2146
2146
  diffCached: string;
2147
2147
  lastCommitMessages: string;
2148
2148
  };
@@ -2214,8 +2214,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2214
2214
  fileTokenScores: Record<string, Record<string, number>>;
2215
2215
  knowledgeFiles: Record<string, string>;
2216
2216
  gitChanges: {
2217
- diff: string;
2218
2217
  status: string;
2218
+ diff: string;
2219
2219
  diffCached: string;
2220
2220
  lastCommitMessages: string;
2221
2221
  };
@@ -2263,13 +2263,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2263
2263
  diffCached: z.ZodString;
2264
2264
  lastCommitMessages: z.ZodString;
2265
2265
  }, "strip", z.ZodTypeAny, {
2266
- diff: string;
2267
2266
  status: string;
2267
+ diff: string;
2268
2268
  diffCached: string;
2269
2269
  lastCommitMessages: string;
2270
2270
  }, {
2271
- diff: string;
2272
2271
  status: string;
2272
+ diff: string;
2273
2273
  diffCached: string;
2274
2274
  lastCommitMessages: string;
2275
2275
  }>;
@@ -2313,8 +2313,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2313
2313
  fileTokenScores: Record<string, Record<string, number>>;
2314
2314
  knowledgeFiles: Record<string, string>;
2315
2315
  gitChanges: {
2316
- diff: string;
2317
2316
  status: string;
2317
+ diff: string;
2318
2318
  diffCached: string;
2319
2319
  lastCommitMessages: string;
2320
2320
  };
@@ -2339,8 +2339,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2339
2339
  fileTokenScores: Record<string, Record<string, number>>;
2340
2340
  knowledgeFiles: Record<string, string>;
2341
2341
  gitChanges: {
2342
- diff: string;
2343
2342
  status: string;
2343
+ diff: string;
2344
2344
  diffCached: string;
2345
2345
  lastCommitMessages: string;
2346
2346
  };
@@ -2556,8 +2556,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2556
2556
  fileTokenScores: Record<string, Record<string, number>>;
2557
2557
  knowledgeFiles: Record<string, string>;
2558
2558
  gitChanges: {
2559
- diff: string;
2560
2559
  status: string;
2560
+ diff: string;
2561
2561
  diffCached: string;
2562
2562
  lastCommitMessages: string;
2563
2563
  };
@@ -2620,8 +2620,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2620
2620
  fileTokenScores: Record<string, Record<string, number>>;
2621
2621
  knowledgeFiles: Record<string, string>;
2622
2622
  gitChanges: {
2623
- diff: string;
2624
2623
  status: string;
2624
+ diff: string;
2625
2625
  diffCached: string;
2626
2626
  lastCommitMessages: string;
2627
2627
  };
@@ -2703,8 +2703,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2703
2703
  fileTokenScores: Record<string, Record<string, number>>;
2704
2704
  knowledgeFiles: Record<string, string>;
2705
2705
  gitChanges: {
2706
- diff: string;
2707
2706
  status: string;
2707
+ diff: string;
2708
2708
  diffCached: string;
2709
2709
  lastCommitMessages: string;
2710
2710
  };
@@ -2779,8 +2779,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2779
2779
  fileTokenScores: Record<string, Record<string, number>>;
2780
2780
  knowledgeFiles: Record<string, string>;
2781
2781
  gitChanges: {
2782
- diff: string;
2783
2782
  status: string;
2783
+ diff: string;
2784
2784
  diffCached: string;
2785
2785
  lastCommitMessages: string;
2786
2786
  };
@@ -2873,13 +2873,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2873
2873
  diffCached: z.ZodString;
2874
2874
  lastCommitMessages: z.ZodString;
2875
2875
  }, "strip", z.ZodTypeAny, {
2876
- diff: string;
2877
2876
  status: string;
2877
+ diff: string;
2878
2878
  diffCached: string;
2879
2879
  lastCommitMessages: string;
2880
2880
  }, {
2881
- diff: string;
2882
2881
  status: string;
2882
+ diff: string;
2883
2883
  diffCached: string;
2884
2884
  lastCommitMessages: string;
2885
2885
  }>;
@@ -2923,8 +2923,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2923
2923
  fileTokenScores: Record<string, Record<string, number>>;
2924
2924
  knowledgeFiles: Record<string, string>;
2925
2925
  gitChanges: {
2926
- diff: string;
2927
2926
  status: string;
2927
+ diff: string;
2928
2928
  diffCached: string;
2929
2929
  lastCommitMessages: string;
2930
2930
  };
@@ -2949,8 +2949,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2949
2949
  fileTokenScores: Record<string, Record<string, number>>;
2950
2950
  knowledgeFiles: Record<string, string>;
2951
2951
  gitChanges: {
2952
- diff: string;
2953
2952
  status: string;
2953
+ diff: string;
2954
2954
  diffCached: string;
2955
2955
  lastCommitMessages: string;
2956
2956
  };
@@ -2979,8 +2979,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
2979
2979
  fileTokenScores: Record<string, Record<string, number>>;
2980
2980
  knowledgeFiles: Record<string, string>;
2981
2981
  gitChanges: {
2982
- diff: string;
2983
2982
  status: string;
2983
+ diff: string;
2984
2984
  diffCached: string;
2985
2985
  lastCommitMessages: string;
2986
2986
  };
@@ -3010,8 +3010,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3010
3010
  fileTokenScores: Record<string, Record<string, number>>;
3011
3011
  knowledgeFiles: Record<string, string>;
3012
3012
  gitChanges: {
3013
- diff: string;
3014
3013
  status: string;
3014
+ diff: string;
3015
3015
  diffCached: string;
3016
3016
  lastCommitMessages: string;
3017
3017
  };
@@ -3107,8 +3107,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3107
3107
  fileTokenScores: Record<string, Record<string, number>>;
3108
3108
  knowledgeFiles: Record<string, string>;
3109
3109
  gitChanges: {
3110
- diff: string;
3111
3110
  status: string;
3111
+ diff: string;
3112
3112
  diffCached: string;
3113
3113
  lastCommitMessages: string;
3114
3114
  };
@@ -3147,8 +3147,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3147
3147
  fileTokenScores: Record<string, Record<string, number>>;
3148
3148
  knowledgeFiles: Record<string, string>;
3149
3149
  gitChanges: {
3150
- diff: string;
3151
3150
  status: string;
3151
+ diff: string;
3152
3152
  diffCached: string;
3153
3153
  lastCommitMessages: string;
3154
3154
  };
@@ -3225,8 +3225,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3225
3225
  fileTokenScores: Record<string, Record<string, number>>;
3226
3226
  knowledgeFiles: Record<string, string>;
3227
3227
  gitChanges: {
3228
- diff: string;
3229
3228
  status: string;
3229
+ diff: string;
3230
3230
  diffCached: string;
3231
3231
  lastCommitMessages: string;
3232
3232
  };
@@ -3305,8 +3305,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3305
3305
  fileTokenScores: Record<string, Record<string, number>>;
3306
3306
  knowledgeFiles: Record<string, string>;
3307
3307
  gitChanges: {
3308
- diff: string;
3309
3308
  status: string;
3309
+ diff: string;
3310
3310
  diffCached: string;
3311
3311
  lastCommitMessages: string;
3312
3312
  };
@@ -3344,8 +3344,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3344
3344
  fileTokenScores: Record<string, Record<string, number>>;
3345
3345
  knowledgeFiles: Record<string, string>;
3346
3346
  gitChanges: {
3347
- diff: string;
3348
3347
  status: string;
3348
+ diff: string;
3349
3349
  diffCached: string;
3350
3350
  lastCommitMessages: string;
3351
3351
  };
@@ -3423,8 +3423,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
3423
3423
  fileTokenScores: Record<string, Record<string, number>>;
3424
3424
  knowledgeFiles: Record<string, string>;
3425
3425
  gitChanges: {
3426
- diff: string;
3427
3426
  status: string;
3427
+ diff: string;
3428
3428
  diffCached: string;
3429
3429
  lastCommitMessages: string;
3430
3430
  };
@@ -3605,13 +3605,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3605
3605
  diffCached: z.ZodString;
3606
3606
  lastCommitMessages: z.ZodString;
3607
3607
  }, "strip", z.ZodTypeAny, {
3608
- diff: string;
3609
3608
  status: string;
3609
+ diff: string;
3610
3610
  diffCached: string;
3611
3611
  lastCommitMessages: string;
3612
3612
  }, {
3613
- diff: string;
3614
3613
  status: string;
3614
+ diff: string;
3615
3615
  diffCached: string;
3616
3616
  lastCommitMessages: string;
3617
3617
  }>;
@@ -3655,8 +3655,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3655
3655
  fileTokenScores: Record<string, Record<string, number>>;
3656
3656
  knowledgeFiles: Record<string, string>;
3657
3657
  gitChanges: {
3658
- diff: string;
3659
3658
  status: string;
3659
+ diff: string;
3660
3660
  diffCached: string;
3661
3661
  lastCommitMessages: string;
3662
3662
  };
@@ -3681,8 +3681,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3681
3681
  fileTokenScores: Record<string, Record<string, number>>;
3682
3682
  knowledgeFiles: Record<string, string>;
3683
3683
  gitChanges: {
3684
- diff: string;
3685
3684
  status: string;
3685
+ diff: string;
3686
3686
  diffCached: string;
3687
3687
  lastCommitMessages: string;
3688
3688
  };
@@ -3898,8 +3898,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3898
3898
  fileTokenScores: Record<string, Record<string, number>>;
3899
3899
  knowledgeFiles: Record<string, string>;
3900
3900
  gitChanges: {
3901
- diff: string;
3902
3901
  status: string;
3902
+ diff: string;
3903
3903
  diffCached: string;
3904
3904
  lastCommitMessages: string;
3905
3905
  };
@@ -3962,8 +3962,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
3962
3962
  fileTokenScores: Record<string, Record<string, number>>;
3963
3963
  knowledgeFiles: Record<string, string>;
3964
3964
  gitChanges: {
3965
- diff: string;
3966
3965
  status: string;
3966
+ diff: string;
3967
3967
  diffCached: string;
3968
3968
  lastCommitMessages: string;
3969
3969
  };
@@ -4063,8 +4063,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4063
4063
  fileTokenScores: Record<string, Record<string, number>>;
4064
4064
  knowledgeFiles: Record<string, string>;
4065
4065
  gitChanges: {
4066
- diff: string;
4067
4066
  status: string;
4067
+ diff: string;
4068
4068
  diffCached: string;
4069
4069
  lastCommitMessages: string;
4070
4070
  };
@@ -4147,8 +4147,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4147
4147
  fileTokenScores: Record<string, Record<string, number>>;
4148
4148
  knowledgeFiles: Record<string, string>;
4149
4149
  gitChanges: {
4150
- diff: string;
4151
4150
  status: string;
4151
+ diff: string;
4152
4152
  diffCached: string;
4153
4153
  lastCommitMessages: string;
4154
4154
  };
@@ -4481,8 +4481,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4481
4481
  fileTokenScores: Record<string, Record<string, number>>;
4482
4482
  knowledgeFiles: Record<string, string>;
4483
4483
  gitChanges: {
4484
- diff: string;
4485
4484
  status: string;
4485
+ diff: string;
4486
4486
  diffCached: string;
4487
4487
  lastCommitMessages: string;
4488
4488
  };
@@ -4655,8 +4655,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
4655
4655
  fileTokenScores: Record<string, Record<string, number>>;
4656
4656
  knowledgeFiles: Record<string, string>;
4657
4657
  gitChanges: {
4658
- diff: string;
4659
4658
  status: string;
4659
+ diff: string;
4660
4660
  diffCached: string;
4661
4661
  lastCommitMessages: string;
4662
4662
  };
@@ -4922,13 +4922,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4922
4922
  diffCached: z.ZodString;
4923
4923
  lastCommitMessages: z.ZodString;
4924
4924
  }, "strip", z.ZodTypeAny, {
4925
- diff: string;
4926
4925
  status: string;
4926
+ diff: string;
4927
4927
  diffCached: string;
4928
4928
  lastCommitMessages: string;
4929
4929
  }, {
4930
- diff: string;
4931
4930
  status: string;
4931
+ diff: string;
4932
4932
  diffCached: string;
4933
4933
  lastCommitMessages: string;
4934
4934
  }>;
@@ -4972,8 +4972,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4972
4972
  fileTokenScores: Record<string, Record<string, number>>;
4973
4973
  knowledgeFiles: Record<string, string>;
4974
4974
  gitChanges: {
4975
- diff: string;
4976
4975
  status: string;
4976
+ diff: string;
4977
4977
  diffCached: string;
4978
4978
  lastCommitMessages: string;
4979
4979
  };
@@ -4998,8 +4998,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
4998
4998
  fileTokenScores: Record<string, Record<string, number>>;
4999
4999
  knowledgeFiles: Record<string, string>;
5000
5000
  gitChanges: {
5001
- diff: string;
5002
5001
  status: string;
5002
+ diff: string;
5003
5003
  diffCached: string;
5004
5004
  lastCommitMessages: string;
5005
5005
  };
@@ -5215,8 +5215,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5215
5215
  fileTokenScores: Record<string, Record<string, number>>;
5216
5216
  knowledgeFiles: Record<string, string>;
5217
5217
  gitChanges: {
5218
- diff: string;
5219
5218
  status: string;
5219
+ diff: string;
5220
5220
  diffCached: string;
5221
5221
  lastCommitMessages: string;
5222
5222
  };
@@ -5279,8 +5279,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5279
5279
  fileTokenScores: Record<string, Record<string, number>>;
5280
5280
  knowledgeFiles: Record<string, string>;
5281
5281
  gitChanges: {
5282
- diff: string;
5283
5282
  status: string;
5283
+ diff: string;
5284
5284
  diffCached: string;
5285
5285
  lastCommitMessages: string;
5286
5286
  };
@@ -5380,8 +5380,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5380
5380
  fileTokenScores: Record<string, Record<string, number>>;
5381
5381
  knowledgeFiles: Record<string, string>;
5382
5382
  gitChanges: {
5383
- diff: string;
5384
5383
  status: string;
5384
+ diff: string;
5385
5385
  diffCached: string;
5386
5386
  lastCommitMessages: string;
5387
5387
  };
@@ -5464,8 +5464,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5464
5464
  fileTokenScores: Record<string, Record<string, number>>;
5465
5465
  knowledgeFiles: Record<string, string>;
5466
5466
  gitChanges: {
5467
- diff: string;
5468
5467
  status: string;
5468
+ diff: string;
5469
5469
  diffCached: string;
5470
5470
  lastCommitMessages: string;
5471
5471
  };
@@ -5798,8 +5798,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5798
5798
  fileTokenScores: Record<string, Record<string, number>>;
5799
5799
  knowledgeFiles: Record<string, string>;
5800
5800
  gitChanges: {
5801
- diff: string;
5802
5801
  status: string;
5802
+ diff: string;
5803
5803
  diffCached: string;
5804
5804
  lastCommitMessages: string;
5805
5805
  };
@@ -5972,8 +5972,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
5972
5972
  fileTokenScores: Record<string, Record<string, number>>;
5973
5973
  knowledgeFiles: Record<string, string>;
5974
5974
  gitChanges: {
5975
- diff: string;
5976
5975
  status: string;
5976
+ diff: string;
5977
5977
  diffCached: string;
5978
5978
  lastCommitMessages: string;
5979
5979
  };
package/dist/menu.js CHANGED
@@ -57,7 +57,7 @@ function displayGreeting(costMode, username) {
57
57
  if (!fs.existsSync(gitDir)) {
58
58
  console.info((0, picocolors_1.magenta)("Just fyi, this project doesn't contain a .git directory (are you at the top level of your project?). Codebuff works best with a git repo!"));
59
59
  }
60
- console.log(`\nWelcome${username ? ` back ${username}` : ''}! What would you like to do?`);
60
+ console.log(`\nWelcome${username ? ` back ${username}` : ''}! What would you like to do today? 🥧`);
61
61
  }
62
62
  function displayMenu() {
63
63
  const selectedColors = getRandomColors();