codebuff 1.0.118 → 1.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +15 -1
- package/dist/cli.js.map +1 -1
- package/dist/common/actions.d.ts +114 -6
- package/dist/common/constants.js +4 -4
- package/dist/common/constants.js.map +1 -1
- package/dist/common/util/file.d.ts +38 -0
- package/dist/common/util/file.js +8 -0
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/string.d.ts +5 -0
- package/dist/common/util/string.js +10 -1
- package/dist/common/util/string.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +300 -20
- package/dist/menu.js +2 -1
- package/dist/menu.js.map +1 -1
- package/dist/project-files.d.ts +16 -0
- package/dist/project-files.js +10 -0
- package/dist/project-files.js.map +1 -1
- package/dist/update-codebuff.js +3 -1
- package/dist/update-codebuff.js.map +1 -1
- package/package.json +2 -2
|
@@ -207,6 +207,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
207
207
|
}>;
|
|
208
208
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
209
209
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
210
|
+
systemInfo: z.ZodObject<{
|
|
211
|
+
platform: z.ZodString;
|
|
212
|
+
shell: z.ZodString;
|
|
213
|
+
nodeVersion: z.ZodString;
|
|
214
|
+
arch: z.ZodString;
|
|
215
|
+
homedir: z.ZodString;
|
|
216
|
+
cpus: z.ZodNumber;
|
|
217
|
+
}, "strip", z.ZodTypeAny, {
|
|
218
|
+
platform: string;
|
|
219
|
+
shell: string;
|
|
220
|
+
nodeVersion: string;
|
|
221
|
+
arch: string;
|
|
222
|
+
homedir: string;
|
|
223
|
+
cpus: number;
|
|
224
|
+
}, {
|
|
225
|
+
platform: string;
|
|
226
|
+
shell: string;
|
|
227
|
+
nodeVersion: string;
|
|
228
|
+
arch: string;
|
|
229
|
+
homedir: string;
|
|
230
|
+
cpus: number;
|
|
231
|
+
}>;
|
|
210
232
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
211
233
|
path: z.ZodString;
|
|
212
234
|
content: z.ZodString;
|
|
@@ -230,6 +252,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
230
252
|
};
|
|
231
253
|
changesSinceLastChat: Record<string, string>;
|
|
232
254
|
shellConfigFiles: Record<string, string>;
|
|
255
|
+
systemInfo: {
|
|
256
|
+
platform: string;
|
|
257
|
+
shell: string;
|
|
258
|
+
nodeVersion: string;
|
|
259
|
+
arch: string;
|
|
260
|
+
homedir: string;
|
|
261
|
+
cpus: number;
|
|
262
|
+
};
|
|
233
263
|
fileVersions: {
|
|
234
264
|
path: string;
|
|
235
265
|
content: string;
|
|
@@ -247,6 +277,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
247
277
|
};
|
|
248
278
|
changesSinceLastChat: Record<string, string>;
|
|
249
279
|
shellConfigFiles: Record<string, string>;
|
|
280
|
+
systemInfo: {
|
|
281
|
+
platform: string;
|
|
282
|
+
shell: string;
|
|
283
|
+
nodeVersion: string;
|
|
284
|
+
arch: string;
|
|
285
|
+
homedir: string;
|
|
286
|
+
cpus: number;
|
|
287
|
+
};
|
|
250
288
|
fileVersions: {
|
|
251
289
|
path: string;
|
|
252
290
|
content: string;
|
|
@@ -307,6 +345,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
307
345
|
};
|
|
308
346
|
changesSinceLastChat: Record<string, string>;
|
|
309
347
|
shellConfigFiles: Record<string, string>;
|
|
348
|
+
systemInfo: {
|
|
349
|
+
platform: string;
|
|
350
|
+
shell: string;
|
|
351
|
+
nodeVersion: string;
|
|
352
|
+
arch: string;
|
|
353
|
+
homedir: string;
|
|
354
|
+
cpus: number;
|
|
355
|
+
};
|
|
310
356
|
fileVersions: {
|
|
311
357
|
path: string;
|
|
312
358
|
content: string;
|
|
@@ -360,6 +406,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
360
406
|
};
|
|
361
407
|
changesSinceLastChat: Record<string, string>;
|
|
362
408
|
shellConfigFiles: Record<string, string>;
|
|
409
|
+
systemInfo: {
|
|
410
|
+
platform: string;
|
|
411
|
+
shell: string;
|
|
412
|
+
nodeVersion: string;
|
|
413
|
+
arch: string;
|
|
414
|
+
homedir: string;
|
|
415
|
+
cpus: number;
|
|
416
|
+
};
|
|
363
417
|
fileVersions: {
|
|
364
418
|
path: string;
|
|
365
419
|
content: string;
|
|
@@ -407,6 +461,28 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
407
461
|
}>;
|
|
408
462
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
409
463
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
464
|
+
systemInfo: z.ZodObject<{
|
|
465
|
+
platform: z.ZodString;
|
|
466
|
+
shell: z.ZodString;
|
|
467
|
+
nodeVersion: z.ZodString;
|
|
468
|
+
arch: z.ZodString;
|
|
469
|
+
homedir: z.ZodString;
|
|
470
|
+
cpus: z.ZodNumber;
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
platform: string;
|
|
473
|
+
shell: string;
|
|
474
|
+
nodeVersion: string;
|
|
475
|
+
arch: string;
|
|
476
|
+
homedir: string;
|
|
477
|
+
cpus: number;
|
|
478
|
+
}, {
|
|
479
|
+
platform: string;
|
|
480
|
+
shell: string;
|
|
481
|
+
nodeVersion: string;
|
|
482
|
+
arch: string;
|
|
483
|
+
homedir: string;
|
|
484
|
+
cpus: number;
|
|
485
|
+
}>;
|
|
410
486
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
411
487
|
path: z.ZodString;
|
|
412
488
|
content: z.ZodString;
|
|
@@ -430,6 +506,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
430
506
|
};
|
|
431
507
|
changesSinceLastChat: Record<string, string>;
|
|
432
508
|
shellConfigFiles: Record<string, string>;
|
|
509
|
+
systemInfo: {
|
|
510
|
+
platform: string;
|
|
511
|
+
shell: string;
|
|
512
|
+
nodeVersion: string;
|
|
513
|
+
arch: string;
|
|
514
|
+
homedir: string;
|
|
515
|
+
cpus: number;
|
|
516
|
+
};
|
|
433
517
|
fileVersions: {
|
|
434
518
|
path: string;
|
|
435
519
|
content: string;
|
|
@@ -447,6 +531,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
447
531
|
};
|
|
448
532
|
changesSinceLastChat: Record<string, string>;
|
|
449
533
|
shellConfigFiles: Record<string, string>;
|
|
534
|
+
systemInfo: {
|
|
535
|
+
platform: string;
|
|
536
|
+
shell: string;
|
|
537
|
+
nodeVersion: string;
|
|
538
|
+
arch: string;
|
|
539
|
+
homedir: string;
|
|
540
|
+
cpus: number;
|
|
541
|
+
};
|
|
450
542
|
fileVersions: {
|
|
451
543
|
path: string;
|
|
452
544
|
content: string;
|
|
@@ -468,6 +560,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
468
560
|
};
|
|
469
561
|
changesSinceLastChat: Record<string, string>;
|
|
470
562
|
shellConfigFiles: Record<string, string>;
|
|
563
|
+
systemInfo: {
|
|
564
|
+
platform: string;
|
|
565
|
+
shell: string;
|
|
566
|
+
nodeVersion: string;
|
|
567
|
+
arch: string;
|
|
568
|
+
homedir: string;
|
|
569
|
+
cpus: number;
|
|
570
|
+
};
|
|
471
571
|
fileVersions: {
|
|
472
572
|
path: string;
|
|
473
573
|
content: string;
|
|
@@ -490,6 +590,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
490
590
|
};
|
|
491
591
|
changesSinceLastChat: Record<string, string>;
|
|
492
592
|
shellConfigFiles: Record<string, string>;
|
|
593
|
+
systemInfo: {
|
|
594
|
+
platform: string;
|
|
595
|
+
shell: string;
|
|
596
|
+
nodeVersion: string;
|
|
597
|
+
arch: string;
|
|
598
|
+
homedir: string;
|
|
599
|
+
cpus: number;
|
|
600
|
+
};
|
|
493
601
|
fileVersions: {
|
|
494
602
|
path: string;
|
|
495
603
|
content: string;
|
|
@@ -540,14 +648,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
540
648
|
fingerprintHash: z.ZodString;
|
|
541
649
|
}, "strip", z.ZodTypeAny, {
|
|
542
650
|
type: "clear-auth-token";
|
|
543
|
-
authToken: string;
|
|
544
651
|
fingerprintId: string;
|
|
652
|
+
authToken: string;
|
|
545
653
|
fingerprintHash: string;
|
|
546
654
|
userId: string;
|
|
547
655
|
}, {
|
|
548
656
|
type: "clear-auth-token";
|
|
549
|
-
authToken: string;
|
|
550
657
|
fingerprintId: string;
|
|
658
|
+
authToken: string;
|
|
551
659
|
fingerprintHash: string;
|
|
552
660
|
userId: string;
|
|
553
661
|
}>, z.ZodObject<{
|
|
@@ -610,6 +718,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
610
718
|
};
|
|
611
719
|
changesSinceLastChat: Record<string, string>;
|
|
612
720
|
shellConfigFiles: Record<string, string>;
|
|
721
|
+
systemInfo: {
|
|
722
|
+
platform: string;
|
|
723
|
+
shell: string;
|
|
724
|
+
nodeVersion: string;
|
|
725
|
+
arch: string;
|
|
726
|
+
homedir: string;
|
|
727
|
+
cpus: number;
|
|
728
|
+
};
|
|
613
729
|
fileVersions: {
|
|
614
730
|
path: string;
|
|
615
731
|
content: string;
|
|
@@ -640,6 +756,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
640
756
|
};
|
|
641
757
|
changesSinceLastChat: Record<string, string>;
|
|
642
758
|
shellConfigFiles: Record<string, string>;
|
|
759
|
+
systemInfo: {
|
|
760
|
+
platform: string;
|
|
761
|
+
shell: string;
|
|
762
|
+
nodeVersion: string;
|
|
763
|
+
arch: string;
|
|
764
|
+
homedir: string;
|
|
765
|
+
cpus: number;
|
|
766
|
+
};
|
|
643
767
|
fileVersions: {
|
|
644
768
|
path: string;
|
|
645
769
|
content: string;
|
|
@@ -660,8 +784,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
660
784
|
fingerprintHash: string;
|
|
661
785
|
} | {
|
|
662
786
|
type: "clear-auth-token";
|
|
663
|
-
authToken: string;
|
|
664
787
|
fingerprintId: string;
|
|
788
|
+
authToken: string;
|
|
665
789
|
fingerprintHash: string;
|
|
666
790
|
userId: string;
|
|
667
791
|
} | {
|
|
@@ -715,6 +839,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
715
839
|
};
|
|
716
840
|
changesSinceLastChat: Record<string, string>;
|
|
717
841
|
shellConfigFiles: Record<string, string>;
|
|
842
|
+
systemInfo: {
|
|
843
|
+
platform: string;
|
|
844
|
+
shell: string;
|
|
845
|
+
nodeVersion: string;
|
|
846
|
+
arch: string;
|
|
847
|
+
homedir: string;
|
|
848
|
+
cpus: number;
|
|
849
|
+
};
|
|
718
850
|
fileVersions: {
|
|
719
851
|
path: string;
|
|
720
852
|
content: string;
|
|
@@ -745,6 +877,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
745
877
|
};
|
|
746
878
|
changesSinceLastChat: Record<string, string>;
|
|
747
879
|
shellConfigFiles: Record<string, string>;
|
|
880
|
+
systemInfo: {
|
|
881
|
+
platform: string;
|
|
882
|
+
shell: string;
|
|
883
|
+
nodeVersion: string;
|
|
884
|
+
arch: string;
|
|
885
|
+
homedir: string;
|
|
886
|
+
cpus: number;
|
|
887
|
+
};
|
|
748
888
|
fileVersions: {
|
|
749
889
|
path: string;
|
|
750
890
|
content: string;
|
|
@@ -765,8 +905,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
765
905
|
fingerprintHash: string;
|
|
766
906
|
} | {
|
|
767
907
|
type: "clear-auth-token";
|
|
768
|
-
authToken: string;
|
|
769
908
|
fingerprintId: string;
|
|
909
|
+
authToken: string;
|
|
770
910
|
fingerprintHash: string;
|
|
771
911
|
userId: string;
|
|
772
912
|
} | {
|
|
@@ -981,6 +1121,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
981
1121
|
}>;
|
|
982
1122
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
983
1123
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1124
|
+
systemInfo: z.ZodObject<{
|
|
1125
|
+
platform: z.ZodString;
|
|
1126
|
+
shell: z.ZodString;
|
|
1127
|
+
nodeVersion: z.ZodString;
|
|
1128
|
+
arch: z.ZodString;
|
|
1129
|
+
homedir: z.ZodString;
|
|
1130
|
+
cpus: z.ZodNumber;
|
|
1131
|
+
}, "strip", z.ZodTypeAny, {
|
|
1132
|
+
platform: string;
|
|
1133
|
+
shell: string;
|
|
1134
|
+
nodeVersion: string;
|
|
1135
|
+
arch: string;
|
|
1136
|
+
homedir: string;
|
|
1137
|
+
cpus: number;
|
|
1138
|
+
}, {
|
|
1139
|
+
platform: string;
|
|
1140
|
+
shell: string;
|
|
1141
|
+
nodeVersion: string;
|
|
1142
|
+
arch: string;
|
|
1143
|
+
homedir: string;
|
|
1144
|
+
cpus: number;
|
|
1145
|
+
}>;
|
|
984
1146
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
985
1147
|
path: z.ZodString;
|
|
986
1148
|
content: z.ZodString;
|
|
@@ -1004,6 +1166,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1004
1166
|
};
|
|
1005
1167
|
changesSinceLastChat: Record<string, string>;
|
|
1006
1168
|
shellConfigFiles: Record<string, string>;
|
|
1169
|
+
systemInfo: {
|
|
1170
|
+
platform: string;
|
|
1171
|
+
shell: string;
|
|
1172
|
+
nodeVersion: string;
|
|
1173
|
+
arch: string;
|
|
1174
|
+
homedir: string;
|
|
1175
|
+
cpus: number;
|
|
1176
|
+
};
|
|
1007
1177
|
fileVersions: {
|
|
1008
1178
|
path: string;
|
|
1009
1179
|
content: string;
|
|
@@ -1021,6 +1191,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1021
1191
|
};
|
|
1022
1192
|
changesSinceLastChat: Record<string, string>;
|
|
1023
1193
|
shellConfigFiles: Record<string, string>;
|
|
1194
|
+
systemInfo: {
|
|
1195
|
+
platform: string;
|
|
1196
|
+
shell: string;
|
|
1197
|
+
nodeVersion: string;
|
|
1198
|
+
arch: string;
|
|
1199
|
+
homedir: string;
|
|
1200
|
+
cpus: number;
|
|
1201
|
+
};
|
|
1024
1202
|
fileVersions: {
|
|
1025
1203
|
path: string;
|
|
1026
1204
|
content: string;
|
|
@@ -1081,6 +1259,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1081
1259
|
};
|
|
1082
1260
|
changesSinceLastChat: Record<string, string>;
|
|
1083
1261
|
shellConfigFiles: Record<string, string>;
|
|
1262
|
+
systemInfo: {
|
|
1263
|
+
platform: string;
|
|
1264
|
+
shell: string;
|
|
1265
|
+
nodeVersion: string;
|
|
1266
|
+
arch: string;
|
|
1267
|
+
homedir: string;
|
|
1268
|
+
cpus: number;
|
|
1269
|
+
};
|
|
1084
1270
|
fileVersions: {
|
|
1085
1271
|
path: string;
|
|
1086
1272
|
content: string;
|
|
@@ -1134,6 +1320,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1134
1320
|
};
|
|
1135
1321
|
changesSinceLastChat: Record<string, string>;
|
|
1136
1322
|
shellConfigFiles: Record<string, string>;
|
|
1323
|
+
systemInfo: {
|
|
1324
|
+
platform: string;
|
|
1325
|
+
shell: string;
|
|
1326
|
+
nodeVersion: string;
|
|
1327
|
+
arch: string;
|
|
1328
|
+
homedir: string;
|
|
1329
|
+
cpus: number;
|
|
1330
|
+
};
|
|
1137
1331
|
fileVersions: {
|
|
1138
1332
|
path: string;
|
|
1139
1333
|
content: string;
|
|
@@ -1181,6 +1375,28 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1181
1375
|
}>;
|
|
1182
1376
|
changesSinceLastChat: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1183
1377
|
shellConfigFiles: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1378
|
+
systemInfo: z.ZodObject<{
|
|
1379
|
+
platform: z.ZodString;
|
|
1380
|
+
shell: z.ZodString;
|
|
1381
|
+
nodeVersion: z.ZodString;
|
|
1382
|
+
arch: z.ZodString;
|
|
1383
|
+
homedir: z.ZodString;
|
|
1384
|
+
cpus: z.ZodNumber;
|
|
1385
|
+
}, "strip", z.ZodTypeAny, {
|
|
1386
|
+
platform: string;
|
|
1387
|
+
shell: string;
|
|
1388
|
+
nodeVersion: string;
|
|
1389
|
+
arch: string;
|
|
1390
|
+
homedir: string;
|
|
1391
|
+
cpus: number;
|
|
1392
|
+
}, {
|
|
1393
|
+
platform: string;
|
|
1394
|
+
shell: string;
|
|
1395
|
+
nodeVersion: string;
|
|
1396
|
+
arch: string;
|
|
1397
|
+
homedir: string;
|
|
1398
|
+
cpus: number;
|
|
1399
|
+
}>;
|
|
1184
1400
|
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1185
1401
|
path: z.ZodString;
|
|
1186
1402
|
content: z.ZodString;
|
|
@@ -1204,6 +1420,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1204
1420
|
};
|
|
1205
1421
|
changesSinceLastChat: Record<string, string>;
|
|
1206
1422
|
shellConfigFiles: Record<string, string>;
|
|
1423
|
+
systemInfo: {
|
|
1424
|
+
platform: string;
|
|
1425
|
+
shell: string;
|
|
1426
|
+
nodeVersion: string;
|
|
1427
|
+
arch: string;
|
|
1428
|
+
homedir: string;
|
|
1429
|
+
cpus: number;
|
|
1430
|
+
};
|
|
1207
1431
|
fileVersions: {
|
|
1208
1432
|
path: string;
|
|
1209
1433
|
content: string;
|
|
@@ -1221,6 +1445,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1221
1445
|
};
|
|
1222
1446
|
changesSinceLastChat: Record<string, string>;
|
|
1223
1447
|
shellConfigFiles: Record<string, string>;
|
|
1448
|
+
systemInfo: {
|
|
1449
|
+
platform: string;
|
|
1450
|
+
shell: string;
|
|
1451
|
+
nodeVersion: string;
|
|
1452
|
+
arch: string;
|
|
1453
|
+
homedir: string;
|
|
1454
|
+
cpus: number;
|
|
1455
|
+
};
|
|
1224
1456
|
fileVersions: {
|
|
1225
1457
|
path: string;
|
|
1226
1458
|
content: string;
|
|
@@ -1242,6 +1474,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1242
1474
|
};
|
|
1243
1475
|
changesSinceLastChat: Record<string, string>;
|
|
1244
1476
|
shellConfigFiles: Record<string, string>;
|
|
1477
|
+
systemInfo: {
|
|
1478
|
+
platform: string;
|
|
1479
|
+
shell: string;
|
|
1480
|
+
nodeVersion: string;
|
|
1481
|
+
arch: string;
|
|
1482
|
+
homedir: string;
|
|
1483
|
+
cpus: number;
|
|
1484
|
+
};
|
|
1245
1485
|
fileVersions: {
|
|
1246
1486
|
path: string;
|
|
1247
1487
|
content: string;
|
|
@@ -1264,6 +1504,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1264
1504
|
};
|
|
1265
1505
|
changesSinceLastChat: Record<string, string>;
|
|
1266
1506
|
shellConfigFiles: Record<string, string>;
|
|
1507
|
+
systemInfo: {
|
|
1508
|
+
platform: string;
|
|
1509
|
+
shell: string;
|
|
1510
|
+
nodeVersion: string;
|
|
1511
|
+
arch: string;
|
|
1512
|
+
homedir: string;
|
|
1513
|
+
cpus: number;
|
|
1514
|
+
};
|
|
1267
1515
|
fileVersions: {
|
|
1268
1516
|
path: string;
|
|
1269
1517
|
content: string;
|
|
@@ -1314,14 +1562,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1314
1562
|
fingerprintHash: z.ZodString;
|
|
1315
1563
|
}, "strip", z.ZodTypeAny, {
|
|
1316
1564
|
type: "clear-auth-token";
|
|
1317
|
-
authToken: string;
|
|
1318
1565
|
fingerprintId: string;
|
|
1566
|
+
authToken: string;
|
|
1319
1567
|
fingerprintHash: string;
|
|
1320
1568
|
userId: string;
|
|
1321
1569
|
}, {
|
|
1322
1570
|
type: "clear-auth-token";
|
|
1323
|
-
authToken: string;
|
|
1324
1571
|
fingerprintId: string;
|
|
1572
|
+
authToken: string;
|
|
1325
1573
|
fingerprintHash: string;
|
|
1326
1574
|
userId: string;
|
|
1327
1575
|
}>, z.ZodObject<{
|
|
@@ -1384,6 +1632,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1384
1632
|
};
|
|
1385
1633
|
changesSinceLastChat: Record<string, string>;
|
|
1386
1634
|
shellConfigFiles: Record<string, string>;
|
|
1635
|
+
systemInfo: {
|
|
1636
|
+
platform: string;
|
|
1637
|
+
shell: string;
|
|
1638
|
+
nodeVersion: string;
|
|
1639
|
+
arch: string;
|
|
1640
|
+
homedir: string;
|
|
1641
|
+
cpus: number;
|
|
1642
|
+
};
|
|
1387
1643
|
fileVersions: {
|
|
1388
1644
|
path: string;
|
|
1389
1645
|
content: string;
|
|
@@ -1414,6 +1670,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1414
1670
|
};
|
|
1415
1671
|
changesSinceLastChat: Record<string, string>;
|
|
1416
1672
|
shellConfigFiles: Record<string, string>;
|
|
1673
|
+
systemInfo: {
|
|
1674
|
+
platform: string;
|
|
1675
|
+
shell: string;
|
|
1676
|
+
nodeVersion: string;
|
|
1677
|
+
arch: string;
|
|
1678
|
+
homedir: string;
|
|
1679
|
+
cpus: number;
|
|
1680
|
+
};
|
|
1417
1681
|
fileVersions: {
|
|
1418
1682
|
path: string;
|
|
1419
1683
|
content: string;
|
|
@@ -1434,8 +1698,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1434
1698
|
fingerprintHash: string;
|
|
1435
1699
|
} | {
|
|
1436
1700
|
type: "clear-auth-token";
|
|
1437
|
-
authToken: string;
|
|
1438
1701
|
fingerprintId: string;
|
|
1702
|
+
authToken: string;
|
|
1439
1703
|
fingerprintHash: string;
|
|
1440
1704
|
userId: string;
|
|
1441
1705
|
} | {
|
|
@@ -1489,6 +1753,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1489
1753
|
};
|
|
1490
1754
|
changesSinceLastChat: Record<string, string>;
|
|
1491
1755
|
shellConfigFiles: Record<string, string>;
|
|
1756
|
+
systemInfo: {
|
|
1757
|
+
platform: string;
|
|
1758
|
+
shell: string;
|
|
1759
|
+
nodeVersion: string;
|
|
1760
|
+
arch: string;
|
|
1761
|
+
homedir: string;
|
|
1762
|
+
cpus: number;
|
|
1763
|
+
};
|
|
1492
1764
|
fileVersions: {
|
|
1493
1765
|
path: string;
|
|
1494
1766
|
content: string;
|
|
@@ -1519,6 +1791,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1519
1791
|
};
|
|
1520
1792
|
changesSinceLastChat: Record<string, string>;
|
|
1521
1793
|
shellConfigFiles: Record<string, string>;
|
|
1794
|
+
systemInfo: {
|
|
1795
|
+
platform: string;
|
|
1796
|
+
shell: string;
|
|
1797
|
+
nodeVersion: string;
|
|
1798
|
+
arch: string;
|
|
1799
|
+
homedir: string;
|
|
1800
|
+
cpus: number;
|
|
1801
|
+
};
|
|
1522
1802
|
fileVersions: {
|
|
1523
1803
|
path: string;
|
|
1524
1804
|
content: string;
|
|
@@ -1539,8 +1819,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1539
1819
|
fingerprintHash: string;
|
|
1540
1820
|
} | {
|
|
1541
1821
|
type: "clear-auth-token";
|
|
1542
|
-
authToken: string;
|
|
1543
1822
|
fingerprintId: string;
|
|
1823
|
+
authToken: string;
|
|
1544
1824
|
fingerprintHash: string;
|
|
1545
1825
|
userId: string;
|
|
1546
1826
|
} | {
|
|
@@ -1856,15 +2136,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1856
2136
|
email: string;
|
|
1857
2137
|
name: string | null;
|
|
1858
2138
|
id: string;
|
|
1859
|
-
authToken: string;
|
|
1860
2139
|
fingerprintId: string;
|
|
2140
|
+
authToken: string;
|
|
1861
2141
|
fingerprintHash: string;
|
|
1862
2142
|
}, {
|
|
1863
2143
|
email: string;
|
|
1864
2144
|
name: string | null;
|
|
1865
2145
|
id: string;
|
|
1866
|
-
authToken: string;
|
|
1867
2146
|
fingerprintId: string;
|
|
2147
|
+
authToken: string;
|
|
1868
2148
|
fingerprintHash: string;
|
|
1869
2149
|
}>>;
|
|
1870
2150
|
message: z.ZodString;
|
|
@@ -1875,8 +2155,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1875
2155
|
email: string;
|
|
1876
2156
|
name: string | null;
|
|
1877
2157
|
id: string;
|
|
1878
|
-
authToken: string;
|
|
1879
2158
|
fingerprintId: string;
|
|
2159
|
+
authToken: string;
|
|
1880
2160
|
fingerprintHash: string;
|
|
1881
2161
|
} | undefined;
|
|
1882
2162
|
}, {
|
|
@@ -1886,8 +2166,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1886
2166
|
email: string;
|
|
1887
2167
|
name: string | null;
|
|
1888
2168
|
id: string;
|
|
1889
|
-
authToken: string;
|
|
1890
2169
|
fingerprintId: string;
|
|
2170
|
+
authToken: string;
|
|
1891
2171
|
fingerprintHash: string;
|
|
1892
2172
|
} | undefined;
|
|
1893
2173
|
}>, z.ZodObject<{
|
|
@@ -2037,8 +2317,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2037
2317
|
email: string;
|
|
2038
2318
|
name: string | null;
|
|
2039
2319
|
id: string;
|
|
2040
|
-
authToken: string;
|
|
2041
2320
|
fingerprintId: string;
|
|
2321
|
+
authToken: string;
|
|
2042
2322
|
fingerprintHash: string;
|
|
2043
2323
|
} | undefined;
|
|
2044
2324
|
} | {
|
|
@@ -2142,8 +2422,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2142
2422
|
email: string;
|
|
2143
2423
|
name: string | null;
|
|
2144
2424
|
id: string;
|
|
2145
|
-
authToken: string;
|
|
2146
2425
|
fingerprintId: string;
|
|
2426
|
+
authToken: string;
|
|
2147
2427
|
fingerprintHash: string;
|
|
2148
2428
|
} | undefined;
|
|
2149
2429
|
} | {
|
|
@@ -2461,15 +2741,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2461
2741
|
email: string;
|
|
2462
2742
|
name: string | null;
|
|
2463
2743
|
id: string;
|
|
2464
|
-
authToken: string;
|
|
2465
2744
|
fingerprintId: string;
|
|
2745
|
+
authToken: string;
|
|
2466
2746
|
fingerprintHash: string;
|
|
2467
2747
|
}, {
|
|
2468
2748
|
email: string;
|
|
2469
2749
|
name: string | null;
|
|
2470
2750
|
id: string;
|
|
2471
|
-
authToken: string;
|
|
2472
2751
|
fingerprintId: string;
|
|
2752
|
+
authToken: string;
|
|
2473
2753
|
fingerprintHash: string;
|
|
2474
2754
|
}>>;
|
|
2475
2755
|
message: z.ZodString;
|
|
@@ -2480,8 +2760,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2480
2760
|
email: string;
|
|
2481
2761
|
name: string | null;
|
|
2482
2762
|
id: string;
|
|
2483
|
-
authToken: string;
|
|
2484
2763
|
fingerprintId: string;
|
|
2764
|
+
authToken: string;
|
|
2485
2765
|
fingerprintHash: string;
|
|
2486
2766
|
} | undefined;
|
|
2487
2767
|
}, {
|
|
@@ -2491,8 +2771,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2491
2771
|
email: string;
|
|
2492
2772
|
name: string | null;
|
|
2493
2773
|
id: string;
|
|
2494
|
-
authToken: string;
|
|
2495
2774
|
fingerprintId: string;
|
|
2775
|
+
authToken: string;
|
|
2496
2776
|
fingerprintHash: string;
|
|
2497
2777
|
} | undefined;
|
|
2498
2778
|
}>, z.ZodObject<{
|
|
@@ -2642,8 +2922,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2642
2922
|
email: string;
|
|
2643
2923
|
name: string | null;
|
|
2644
2924
|
id: string;
|
|
2645
|
-
authToken: string;
|
|
2646
2925
|
fingerprintId: string;
|
|
2926
|
+
authToken: string;
|
|
2647
2927
|
fingerprintHash: string;
|
|
2648
2928
|
} | undefined;
|
|
2649
2929
|
} | {
|
|
@@ -2747,8 +3027,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2747
3027
|
email: string;
|
|
2748
3028
|
name: string | null;
|
|
2749
3029
|
id: string;
|
|
2750
|
-
authToken: string;
|
|
2751
3030
|
fingerprintId: string;
|
|
3031
|
+
authToken: string;
|
|
2752
3032
|
fingerprintHash: string;
|
|
2753
3033
|
} | undefined;
|
|
2754
3034
|
} | {
|
package/dist/menu.js
CHANGED
|
@@ -69,8 +69,8 @@ ${colorizeRandom(' ╚═════╝')}${colorizeRandom(' ╚═════
|
|
|
69
69
|
console.log((0, picocolors_2.bold)((0, picocolors_2.green)("Welcome! I'm your AI coding assistant.")));
|
|
70
70
|
console.log(`\nCodebuff will read and write files within your current directory (${(0, project_files_1.getProjectRoot)()}) and run commands in your terminal.`);
|
|
71
71
|
console.log('\nASK CODEBUFF TO...');
|
|
72
|
-
console.log('- Write unit tests');
|
|
73
72
|
console.log('- Build a feature. Brain dump what you want first.');
|
|
73
|
+
console.log('- Write unit tests');
|
|
74
74
|
console.log('- Refactor a component into multiple components');
|
|
75
75
|
console.log('- Fix errors from compiling your project or running tests');
|
|
76
76
|
console.log('- Write a script.');
|
|
@@ -83,6 +83,7 @@ ${colorizeRandom(' ╚═════╝')}${colorizeRandom(' ╚═════
|
|
|
83
83
|
console.log('- Press ESC to cancel generation');
|
|
84
84
|
console.log('- Type "undo" or "redo" (abbreviated "u" or "r") to undo or redo the last change');
|
|
85
85
|
console.log('- Type "login" to log into Codebuff');
|
|
86
|
+
console.log('- Type "exit" or press Ctrl+C twice to exit Codebuff');
|
|
86
87
|
console.log('- Type "diff" or "d" to show changes from the last assistant response');
|
|
87
88
|
console.log(`- Redeem a referral code by simply pasting it here.`);
|
|
88
89
|
console.log('-', (0, picocolors_2.bold)((0, picocolors_2.green)(`Refer new users and each of you will earn ${constants_1.CREDITS_REFERRAL_BONUS} credits per month: ${process.env.NEXT_PUBLIC_APP_URL}/referrals`)));
|
package/dist/menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,
|
|
1
|
+
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../src/menu.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,kCAkFC;AAnGD,gDAAyD;AACzD,mDAAgD;AAChD,yDAA6C;AAC7C,2CAAwC;AAExC,MAAM,eAAe,GAAG,GAAG,EAAE;IAC3B,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,CAAA;IACvE,MAAM,MAAM,GAAa,EAAE,CAAA;IAC3B,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE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