codebuff 1.0.194 → 1.0.196
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/checkpoints/checkpoint-manager.d.ts +20 -9
- package/dist/checkpoints/checkpoint-manager.js +68 -46
- package/dist/checkpoints/checkpoint-manager.js.map +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +89 -40
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/code-map/tsconfig.tsbuildinfo +1 -1
- package/dist/common/actions.d.ts +60 -60
- package/dist/common/constants.d.ts +3 -3
- package/dist/common/constants.js +1 -1
- package/dist/common/types/agent-state.d.ts +4 -4
- package/dist/common/types/message.d.ts +6 -6
- package/dist/common/types/usage.d.ts +2 -2
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/util/file.d.ts +1 -0
- package/dist/common/util/file.js +9 -1
- package/dist/common/util/file.js.map +1 -1
- package/dist/common/util/messages.d.ts +1 -0
- package/dist/common/util/messages.js +23 -0
- package/dist/common/util/messages.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +296 -296
- package/dist/index.js +1 -1
- package/dist/workers/checkpoint-worker.js +4 -3
- package/dist/workers/checkpoint-worker.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/logger.d.ts +0 -1
- package/dist/common/logger.js +0 -7
- package/dist/common/logger.js.map +0 -1
- package/dist/common/util/constants.d.ts +0 -1
- package/dist/common/util/constants.js +0 -7
- package/dist/common/util/constants.js.map +0 -1
- package/dist/common/util/helpers.d.ts +0 -1
- package/dist/common/util/helpers.js +0 -6
- package/dist/common/util/helpers.js.map +0 -1
- package/dist/common/util/token-counter.d.ts +0 -3
- package/dist/common/util/token-counter.js +0 -27
- 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
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
396
|
-
fileVersions?: {
|
|
397
|
-
path: string;
|
|
398
|
-
content: string;
|
|
399
|
-
}[][] | 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
|
content: string;
|
|
472
436
|
}[][] | 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
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
506
|
+
fileVersions?: {
|
|
507
|
+
path: string;
|
|
508
|
+
content: string;
|
|
509
|
+
}[][] | 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
|
content: string;
|
|
852
851
|
}[][] | 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
|
content: string;
|
|
916
915
|
}[][] | 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
|
content: string;
|
|
999
998
|
}[][] | 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
|
content: string;
|
|
1075
1074
|
}[][] | 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
|
content: string;
|
|
1273
1274
|
}[][] | 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
|
content: string;
|
|
1304
1305
|
}[][] | undefined;
|
|
1305
1306
|
};
|
|
1306
|
-
fingerprintId: string;
|
|
1307
1307
|
authToken?: string | undefined;
|
|
1308
1308
|
}>, z.ZodObject<{
|
|
1309
1309
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -1325,33 +1325,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1325
1325
|
type: "action";
|
|
1326
1326
|
data: {
|
|
1327
1327
|
type: "user-input";
|
|
1328
|
-
fileContext: {
|
|
1329
|
-
currentWorkingDirectory: string;
|
|
1330
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1331
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1332
|
-
knowledgeFiles: Record<string, string>;
|
|
1333
|
-
gitChanges: {
|
|
1334
|
-
status: string;
|
|
1335
|
-
diff: string;
|
|
1336
|
-
diffCached: string;
|
|
1337
|
-
lastCommitMessages: string;
|
|
1338
|
-
};
|
|
1339
|
-
changesSinceLastChat: Record<string, string>;
|
|
1340
|
-
shellConfigFiles: Record<string, string>;
|
|
1341
|
-
systemInfo: {
|
|
1342
|
-
platform: string;
|
|
1343
|
-
shell: string;
|
|
1344
|
-
nodeVersion: string;
|
|
1345
|
-
arch: string;
|
|
1346
|
-
homedir: string;
|
|
1347
|
-
cpus: number;
|
|
1348
|
-
};
|
|
1349
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1350
|
-
fileVersions?: {
|
|
1351
|
-
path: string;
|
|
1352
|
-
content: string;
|
|
1353
|
-
}[][] | undefined;
|
|
1354
|
-
};
|
|
1355
1328
|
fingerprintId: string;
|
|
1356
1329
|
userInputId: string;
|
|
1357
1330
|
messages: {
|
|
@@ -1389,6 +1362,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1389
1362
|
})[];
|
|
1390
1363
|
role: "user" | "assistant";
|
|
1391
1364
|
}[];
|
|
1365
|
+
fileContext: {
|
|
1366
|
+
currentWorkingDirectory: string;
|
|
1367
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1368
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1369
|
+
knowledgeFiles: Record<string, string>;
|
|
1370
|
+
gitChanges: {
|
|
1371
|
+
status: string;
|
|
1372
|
+
diff: string;
|
|
1373
|
+
diffCached: string;
|
|
1374
|
+
lastCommitMessages: string;
|
|
1375
|
+
};
|
|
1376
|
+
changesSinceLastChat: Record<string, string>;
|
|
1377
|
+
shellConfigFiles: Record<string, string>;
|
|
1378
|
+
systemInfo: {
|
|
1379
|
+
platform: string;
|
|
1380
|
+
shell: string;
|
|
1381
|
+
nodeVersion: string;
|
|
1382
|
+
arch: string;
|
|
1383
|
+
homedir: string;
|
|
1384
|
+
cpus: number;
|
|
1385
|
+
};
|
|
1386
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1387
|
+
fileVersions?: {
|
|
1388
|
+
path: string;
|
|
1389
|
+
content: string;
|
|
1390
|
+
}[][] | undefined;
|
|
1391
|
+
};
|
|
1392
1392
|
changesAlreadyApplied: {
|
|
1393
1393
|
path: string;
|
|
1394
1394
|
content: string;
|
|
@@ -1402,7 +1402,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1402
1402
|
costMode: "max" | "lite" | "normal";
|
|
1403
1403
|
promptId: string;
|
|
1404
1404
|
agentState: {
|
|
1405
|
-
agentContext: string;
|
|
1406
1405
|
fileContext: {
|
|
1407
1406
|
currentWorkingDirectory: string;
|
|
1408
1407
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1430,6 +1429,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1430
1429
|
content: string;
|
|
1431
1430
|
}[][] | undefined;
|
|
1432
1431
|
};
|
|
1432
|
+
agentContext: string;
|
|
1433
1433
|
messageHistory: {
|
|
1434
1434
|
content: string | ({
|
|
1435
1435
|
type: "text";
|
|
@@ -1479,6 +1479,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1479
1479
|
requestId?: string | undefined;
|
|
1480
1480
|
} | {
|
|
1481
1481
|
type: "init";
|
|
1482
|
+
fingerprintId: string;
|
|
1482
1483
|
fileContext: {
|
|
1483
1484
|
currentWorkingDirectory: string;
|
|
1484
1485
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1506,7 +1507,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1506
1507
|
content: string;
|
|
1507
1508
|
}[][] | undefined;
|
|
1508
1509
|
};
|
|
1509
|
-
fingerprintId: string;
|
|
1510
1510
|
authToken?: string | undefined;
|
|
1511
1511
|
} | {
|
|
1512
1512
|
type: "generate-commit-message";
|
|
@@ -1519,33 +1519,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1519
1519
|
type: "action";
|
|
1520
1520
|
data: {
|
|
1521
1521
|
type: "user-input";
|
|
1522
|
-
fileContext: {
|
|
1523
|
-
currentWorkingDirectory: string;
|
|
1524
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
1525
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
1526
|
-
knowledgeFiles: Record<string, string>;
|
|
1527
|
-
gitChanges: {
|
|
1528
|
-
status: string;
|
|
1529
|
-
diff: string;
|
|
1530
|
-
diffCached: string;
|
|
1531
|
-
lastCommitMessages: string;
|
|
1532
|
-
};
|
|
1533
|
-
changesSinceLastChat: Record<string, string>;
|
|
1534
|
-
shellConfigFiles: Record<string, string>;
|
|
1535
|
-
systemInfo: {
|
|
1536
|
-
platform: string;
|
|
1537
|
-
shell: string;
|
|
1538
|
-
nodeVersion: string;
|
|
1539
|
-
arch: string;
|
|
1540
|
-
homedir: string;
|
|
1541
|
-
cpus: number;
|
|
1542
|
-
};
|
|
1543
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1544
|
-
fileVersions?: {
|
|
1545
|
-
path: string;
|
|
1546
|
-
content: string;
|
|
1547
|
-
}[][] | undefined;
|
|
1548
|
-
};
|
|
1549
1522
|
fingerprintId: string;
|
|
1550
1523
|
userInputId: string;
|
|
1551
1524
|
messages: {
|
|
@@ -1583,6 +1556,33 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1583
1556
|
})[];
|
|
1584
1557
|
role: "user" | "assistant";
|
|
1585
1558
|
}[];
|
|
1559
|
+
fileContext: {
|
|
1560
|
+
currentWorkingDirectory: string;
|
|
1561
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
1562
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
1563
|
+
knowledgeFiles: Record<string, string>;
|
|
1564
|
+
gitChanges: {
|
|
1565
|
+
status: string;
|
|
1566
|
+
diff: string;
|
|
1567
|
+
diffCached: string;
|
|
1568
|
+
lastCommitMessages: string;
|
|
1569
|
+
};
|
|
1570
|
+
changesSinceLastChat: Record<string, string>;
|
|
1571
|
+
shellConfigFiles: Record<string, string>;
|
|
1572
|
+
systemInfo: {
|
|
1573
|
+
platform: string;
|
|
1574
|
+
shell: string;
|
|
1575
|
+
nodeVersion: string;
|
|
1576
|
+
arch: string;
|
|
1577
|
+
homedir: string;
|
|
1578
|
+
cpus: number;
|
|
1579
|
+
};
|
|
1580
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1581
|
+
fileVersions?: {
|
|
1582
|
+
path: string;
|
|
1583
|
+
content: string;
|
|
1584
|
+
}[][] | undefined;
|
|
1585
|
+
};
|
|
1586
1586
|
changesAlreadyApplied: {
|
|
1587
1587
|
path: string;
|
|
1588
1588
|
content: string;
|
|
@@ -1595,7 +1595,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1595
1595
|
fingerprintId: string;
|
|
1596
1596
|
promptId: string;
|
|
1597
1597
|
agentState: {
|
|
1598
|
-
agentContext: string;
|
|
1599
1598
|
fileContext: {
|
|
1600
1599
|
currentWorkingDirectory: string;
|
|
1601
1600
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1623,6 +1622,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1623
1622
|
content: string;
|
|
1624
1623
|
}[][] | undefined;
|
|
1625
1624
|
};
|
|
1625
|
+
agentContext: string;
|
|
1626
1626
|
messageHistory: {
|
|
1627
1627
|
content: string | ({
|
|
1628
1628
|
type: "text";
|
|
@@ -1673,6 +1673,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1673
1673
|
requestId?: string | undefined;
|
|
1674
1674
|
} | {
|
|
1675
1675
|
type: "init";
|
|
1676
|
+
fingerprintId: string;
|
|
1676
1677
|
fileContext: {
|
|
1677
1678
|
currentWorkingDirectory: string;
|
|
1678
1679
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1700,7 +1701,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1700
1701
|
content: string;
|
|
1701
1702
|
}[][] | undefined;
|
|
1702
1703
|
};
|
|
1703
|
-
fingerprintId: string;
|
|
1704
1704
|
authToken?: string | undefined;
|
|
1705
1705
|
} | {
|
|
1706
1706
|
type: "generate-commit-message";
|
|
@@ -2078,33 +2078,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2078
2078
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
2079
2079
|
}, "strip", z.ZodTypeAny, {
|
|
2080
2080
|
type: "user-input";
|
|
2081
|
-
fileContext: {
|
|
2082
|
-
currentWorkingDirectory: string;
|
|
2083
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
2084
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
2085
|
-
knowledgeFiles: Record<string, string>;
|
|
2086
|
-
gitChanges: {
|
|
2087
|
-
status: string;
|
|
2088
|
-
diff: string;
|
|
2089
|
-
diffCached: string;
|
|
2090
|
-
lastCommitMessages: string;
|
|
2091
|
-
};
|
|
2092
|
-
changesSinceLastChat: Record<string, string>;
|
|
2093
|
-
shellConfigFiles: Record<string, string>;
|
|
2094
|
-
systemInfo: {
|
|
2095
|
-
platform: string;
|
|
2096
|
-
shell: string;
|
|
2097
|
-
nodeVersion: string;
|
|
2098
|
-
arch: string;
|
|
2099
|
-
homedir: string;
|
|
2100
|
-
cpus: number;
|
|
2101
|
-
};
|
|
2102
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2103
|
-
fileVersions?: {
|
|
2104
|
-
path: string;
|
|
2105
|
-
content: string;
|
|
2106
|
-
}[][] | undefined;
|
|
2107
|
-
};
|
|
2108
2081
|
fingerprintId: string;
|
|
2109
2082
|
userInputId: string;
|
|
2110
2083
|
messages: {
|
|
@@ -2142,15 +2115,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2142
2115
|
})[];
|
|
2143
2116
|
role: "user" | "assistant";
|
|
2144
2117
|
}[];
|
|
2145
|
-
changesAlreadyApplied: {
|
|
2146
|
-
path: string;
|
|
2147
|
-
content: string;
|
|
2148
|
-
type: "file" | "patch";
|
|
2149
|
-
}[];
|
|
2150
|
-
costMode: "max" | "lite" | "normal";
|
|
2151
|
-
authToken?: string | undefined;
|
|
2152
|
-
}, {
|
|
2153
|
-
type: "user-input";
|
|
2154
2118
|
fileContext: {
|
|
2155
2119
|
currentWorkingDirectory: string;
|
|
2156
2120
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2178,6 +2142,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2178
2142
|
content: string;
|
|
2179
2143
|
}[][] | undefined;
|
|
2180
2144
|
};
|
|
2145
|
+
changesAlreadyApplied: {
|
|
2146
|
+
path: string;
|
|
2147
|
+
content: string;
|
|
2148
|
+
type: "file" | "patch";
|
|
2149
|
+
}[];
|
|
2150
|
+
costMode: "max" | "lite" | "normal";
|
|
2151
|
+
authToken?: string | undefined;
|
|
2152
|
+
}, {
|
|
2153
|
+
type: "user-input";
|
|
2181
2154
|
fingerprintId: string;
|
|
2182
2155
|
userInputId: string;
|
|
2183
2156
|
messages: {
|
|
@@ -2215,6 +2188,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2215
2188
|
})[];
|
|
2216
2189
|
role: "user" | "assistant";
|
|
2217
2190
|
}[];
|
|
2191
|
+
fileContext: {
|
|
2192
|
+
currentWorkingDirectory: string;
|
|
2193
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
2194
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
2195
|
+
knowledgeFiles: Record<string, string>;
|
|
2196
|
+
gitChanges: {
|
|
2197
|
+
status: string;
|
|
2198
|
+
diff: string;
|
|
2199
|
+
diffCached: string;
|
|
2200
|
+
lastCommitMessages: string;
|
|
2201
|
+
};
|
|
2202
|
+
changesSinceLastChat: Record<string, string>;
|
|
2203
|
+
shellConfigFiles: Record<string, string>;
|
|
2204
|
+
systemInfo: {
|
|
2205
|
+
platform: string;
|
|
2206
|
+
shell: string;
|
|
2207
|
+
nodeVersion: string;
|
|
2208
|
+
arch: string;
|
|
2209
|
+
homedir: string;
|
|
2210
|
+
cpus: number;
|
|
2211
|
+
};
|
|
2212
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2213
|
+
fileVersions?: {
|
|
2214
|
+
path: string;
|
|
2215
|
+
content: string;
|
|
2216
|
+
}[][] | undefined;
|
|
2217
|
+
};
|
|
2218
2218
|
changesAlreadyApplied: {
|
|
2219
2219
|
path: string;
|
|
2220
2220
|
content: string;
|
|
@@ -2530,7 +2530,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2530
2530
|
role: "user" | "assistant";
|
|
2531
2531
|
}>, "many">;
|
|
2532
2532
|
}, "strip", z.ZodTypeAny, {
|
|
2533
|
-
agentContext: string;
|
|
2534
2533
|
fileContext: {
|
|
2535
2534
|
currentWorkingDirectory: string;
|
|
2536
2535
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2558,6 +2557,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2558
2557
|
content: string;
|
|
2559
2558
|
}[][] | undefined;
|
|
2560
2559
|
};
|
|
2560
|
+
agentContext: string;
|
|
2561
2561
|
messageHistory: {
|
|
2562
2562
|
content: string | ({
|
|
2563
2563
|
type: "text";
|
|
@@ -2594,7 +2594,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2594
2594
|
role: "user" | "assistant";
|
|
2595
2595
|
}[];
|
|
2596
2596
|
}, {
|
|
2597
|
-
agentContext: string;
|
|
2598
2597
|
fileContext: {
|
|
2599
2598
|
currentWorkingDirectory: string;
|
|
2600
2599
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2622,6 +2621,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2622
2621
|
content: string;
|
|
2623
2622
|
}[][] | undefined;
|
|
2624
2623
|
};
|
|
2624
|
+
agentContext: string;
|
|
2625
2625
|
messageHistory: {
|
|
2626
2626
|
content: string | ({
|
|
2627
2627
|
type: "text";
|
|
@@ -2677,7 +2677,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2677
2677
|
costMode: "max" | "lite" | "normal";
|
|
2678
2678
|
promptId: string;
|
|
2679
2679
|
agentState: {
|
|
2680
|
-
agentContext: string;
|
|
2681
2680
|
fileContext: {
|
|
2682
2681
|
currentWorkingDirectory: string;
|
|
2683
2682
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2705,6 +2704,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2705
2704
|
content: string;
|
|
2706
2705
|
}[][] | undefined;
|
|
2707
2706
|
};
|
|
2707
|
+
agentContext: string;
|
|
2708
2708
|
messageHistory: {
|
|
2709
2709
|
content: string | ({
|
|
2710
2710
|
type: "text";
|
|
@@ -2753,7 +2753,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2753
2753
|
fingerprintId: string;
|
|
2754
2754
|
promptId: string;
|
|
2755
2755
|
agentState: {
|
|
2756
|
-
agentContext: string;
|
|
2757
2756
|
fileContext: {
|
|
2758
2757
|
currentWorkingDirectory: string;
|
|
2759
2758
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2781,6 +2780,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2781
2780
|
content: string;
|
|
2782
2781
|
}[][] | undefined;
|
|
2783
2782
|
};
|
|
2783
|
+
agentContext: string;
|
|
2784
2784
|
messageHistory: {
|
|
2785
2785
|
content: string | ({
|
|
2786
2786
|
type: "text";
|
|
@@ -2952,6 +2952,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2952
2952
|
}>;
|
|
2953
2953
|
}, "strip", z.ZodTypeAny, {
|
|
2954
2954
|
type: "init";
|
|
2955
|
+
fingerprintId: string;
|
|
2955
2956
|
fileContext: {
|
|
2956
2957
|
currentWorkingDirectory: string;
|
|
2957
2958
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2979,10 +2980,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2979
2980
|
content: string;
|
|
2980
2981
|
}[][] | undefined;
|
|
2981
2982
|
};
|
|
2982
|
-
fingerprintId: string;
|
|
2983
2983
|
authToken?: string | undefined;
|
|
2984
2984
|
}, {
|
|
2985
2985
|
type: "init";
|
|
2986
|
+
fingerprintId: string;
|
|
2986
2987
|
fileContext: {
|
|
2987
2988
|
currentWorkingDirectory: string;
|
|
2988
2989
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3010,7 +3011,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3010
3011
|
content: string;
|
|
3011
3012
|
}[][] | undefined;
|
|
3012
3013
|
};
|
|
3013
|
-
fingerprintId: string;
|
|
3014
3014
|
authToken?: string | undefined;
|
|
3015
3015
|
}>, z.ZodObject<{
|
|
3016
3016
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -3032,33 +3032,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3032
3032
|
type: "action";
|
|
3033
3033
|
data: {
|
|
3034
3034
|
type: "user-input";
|
|
3035
|
-
fileContext: {
|
|
3036
|
-
currentWorkingDirectory: string;
|
|
3037
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3038
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3039
|
-
knowledgeFiles: Record<string, string>;
|
|
3040
|
-
gitChanges: {
|
|
3041
|
-
status: string;
|
|
3042
|
-
diff: string;
|
|
3043
|
-
diffCached: string;
|
|
3044
|
-
lastCommitMessages: string;
|
|
3045
|
-
};
|
|
3046
|
-
changesSinceLastChat: Record<string, string>;
|
|
3047
|
-
shellConfigFiles: Record<string, string>;
|
|
3048
|
-
systemInfo: {
|
|
3049
|
-
platform: string;
|
|
3050
|
-
shell: string;
|
|
3051
|
-
nodeVersion: string;
|
|
3052
|
-
arch: string;
|
|
3053
|
-
homedir: string;
|
|
3054
|
-
cpus: number;
|
|
3055
|
-
};
|
|
3056
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3057
|
-
fileVersions?: {
|
|
3058
|
-
path: string;
|
|
3059
|
-
content: string;
|
|
3060
|
-
}[][] | undefined;
|
|
3061
|
-
};
|
|
3062
3035
|
fingerprintId: string;
|
|
3063
3036
|
userInputId: string;
|
|
3064
3037
|
messages: {
|
|
@@ -3096,6 +3069,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3096
3069
|
})[];
|
|
3097
3070
|
role: "user" | "assistant";
|
|
3098
3071
|
}[];
|
|
3072
|
+
fileContext: {
|
|
3073
|
+
currentWorkingDirectory: string;
|
|
3074
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
3075
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
3076
|
+
knowledgeFiles: Record<string, string>;
|
|
3077
|
+
gitChanges: {
|
|
3078
|
+
status: string;
|
|
3079
|
+
diff: string;
|
|
3080
|
+
diffCached: string;
|
|
3081
|
+
lastCommitMessages: string;
|
|
3082
|
+
};
|
|
3083
|
+
changesSinceLastChat: Record<string, string>;
|
|
3084
|
+
shellConfigFiles: Record<string, string>;
|
|
3085
|
+
systemInfo: {
|
|
3086
|
+
platform: string;
|
|
3087
|
+
shell: string;
|
|
3088
|
+
nodeVersion: string;
|
|
3089
|
+
arch: string;
|
|
3090
|
+
homedir: string;
|
|
3091
|
+
cpus: number;
|
|
3092
|
+
};
|
|
3093
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3094
|
+
fileVersions?: {
|
|
3095
|
+
path: string;
|
|
3096
|
+
content: string;
|
|
3097
|
+
}[][] | undefined;
|
|
3098
|
+
};
|
|
3099
3099
|
changesAlreadyApplied: {
|
|
3100
3100
|
path: string;
|
|
3101
3101
|
content: string;
|
|
@@ -3109,7 +3109,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3109
3109
|
costMode: "max" | "lite" | "normal";
|
|
3110
3110
|
promptId: string;
|
|
3111
3111
|
agentState: {
|
|
3112
|
-
agentContext: string;
|
|
3113
3112
|
fileContext: {
|
|
3114
3113
|
currentWorkingDirectory: string;
|
|
3115
3114
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3137,6 +3136,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3137
3136
|
content: string;
|
|
3138
3137
|
}[][] | undefined;
|
|
3139
3138
|
};
|
|
3139
|
+
agentContext: string;
|
|
3140
3140
|
messageHistory: {
|
|
3141
3141
|
content: string | ({
|
|
3142
3142
|
type: "text";
|
|
@@ -3186,6 +3186,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3186
3186
|
requestId?: string | undefined;
|
|
3187
3187
|
} | {
|
|
3188
3188
|
type: "init";
|
|
3189
|
+
fingerprintId: string;
|
|
3189
3190
|
fileContext: {
|
|
3190
3191
|
currentWorkingDirectory: string;
|
|
3191
3192
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3213,7 +3214,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3213
3214
|
content: string;
|
|
3214
3215
|
}[][] | undefined;
|
|
3215
3216
|
};
|
|
3216
|
-
fingerprintId: string;
|
|
3217
3217
|
authToken?: string | undefined;
|
|
3218
3218
|
} | {
|
|
3219
3219
|
type: "generate-commit-message";
|
|
@@ -3226,33 +3226,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3226
3226
|
type: "action";
|
|
3227
3227
|
data: {
|
|
3228
3228
|
type: "user-input";
|
|
3229
|
-
fileContext: {
|
|
3230
|
-
currentWorkingDirectory: string;
|
|
3231
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
3232
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
3233
|
-
knowledgeFiles: Record<string, string>;
|
|
3234
|
-
gitChanges: {
|
|
3235
|
-
status: string;
|
|
3236
|
-
diff: string;
|
|
3237
|
-
diffCached: string;
|
|
3238
|
-
lastCommitMessages: string;
|
|
3239
|
-
};
|
|
3240
|
-
changesSinceLastChat: Record<string, string>;
|
|
3241
|
-
shellConfigFiles: Record<string, string>;
|
|
3242
|
-
systemInfo: {
|
|
3243
|
-
platform: string;
|
|
3244
|
-
shell: string;
|
|
3245
|
-
nodeVersion: string;
|
|
3246
|
-
arch: string;
|
|
3247
|
-
homedir: string;
|
|
3248
|
-
cpus: number;
|
|
3249
|
-
};
|
|
3250
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3251
|
-
fileVersions?: {
|
|
3252
|
-
path: string;
|
|
3253
|
-
content: string;
|
|
3254
|
-
}[][] | undefined;
|
|
3255
|
-
};
|
|
3256
3229
|
fingerprintId: string;
|
|
3257
3230
|
userInputId: string;
|
|
3258
3231
|
messages: {
|
|
@@ -3290,6 +3263,33 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3290
3263
|
})[];
|
|
3291
3264
|
role: "user" | "assistant";
|
|
3292
3265
|
}[];
|
|
3266
|
+
fileContext: {
|
|
3267
|
+
currentWorkingDirectory: string;
|
|
3268
|
+
fileTree: import("../util/file").FileTreeNode[];
|
|
3269
|
+
fileTokenScores: Record<string, Record<string, number>>;
|
|
3270
|
+
knowledgeFiles: Record<string, string>;
|
|
3271
|
+
gitChanges: {
|
|
3272
|
+
status: string;
|
|
3273
|
+
diff: string;
|
|
3274
|
+
diffCached: string;
|
|
3275
|
+
lastCommitMessages: string;
|
|
3276
|
+
};
|
|
3277
|
+
changesSinceLastChat: Record<string, string>;
|
|
3278
|
+
shellConfigFiles: Record<string, string>;
|
|
3279
|
+
systemInfo: {
|
|
3280
|
+
platform: string;
|
|
3281
|
+
shell: string;
|
|
3282
|
+
nodeVersion: string;
|
|
3283
|
+
arch: string;
|
|
3284
|
+
homedir: string;
|
|
3285
|
+
cpus: number;
|
|
3286
|
+
};
|
|
3287
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3288
|
+
fileVersions?: {
|
|
3289
|
+
path: string;
|
|
3290
|
+
content: string;
|
|
3291
|
+
}[][] | undefined;
|
|
3292
|
+
};
|
|
3293
3293
|
changesAlreadyApplied: {
|
|
3294
3294
|
path: string;
|
|
3295
3295
|
content: string;
|
|
@@ -3302,7 +3302,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3302
3302
|
fingerprintId: string;
|
|
3303
3303
|
promptId: string;
|
|
3304
3304
|
agentState: {
|
|
3305
|
-
agentContext: string;
|
|
3306
3305
|
fileContext: {
|
|
3307
3306
|
currentWorkingDirectory: string;
|
|
3308
3307
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3330,6 +3329,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3330
3329
|
content: string;
|
|
3331
3330
|
}[][] | undefined;
|
|
3332
3331
|
};
|
|
3332
|
+
agentContext: string;
|
|
3333
3333
|
messageHistory: {
|
|
3334
3334
|
content: string | ({
|
|
3335
3335
|
type: "text";
|
|
@@ -3380,6 +3380,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3380
3380
|
requestId?: string | undefined;
|
|
3381
3381
|
} | {
|
|
3382
3382
|
type: "init";
|
|
3383
|
+
fingerprintId: string;
|
|
3383
3384
|
fileContext: {
|
|
3384
3385
|
currentWorkingDirectory: string;
|
|
3385
3386
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3407,7 +3408,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3407
3408
|
content: string;
|
|
3408
3409
|
}[][] | undefined;
|
|
3409
3410
|
};
|
|
3410
|
-
fingerprintId: string;
|
|
3411
3411
|
authToken?: string | undefined;
|
|
3412
3412
|
} | {
|
|
3413
3413
|
type: "generate-commit-message";
|
|
@@ -3852,7 +3852,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3852
3852
|
role: "user" | "assistant";
|
|
3853
3853
|
}>, "many">;
|
|
3854
3854
|
}, "strip", z.ZodTypeAny, {
|
|
3855
|
-
agentContext: string;
|
|
3856
3855
|
fileContext: {
|
|
3857
3856
|
currentWorkingDirectory: string;
|
|
3858
3857
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3880,6 +3879,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3880
3879
|
content: string;
|
|
3881
3880
|
}[][] | undefined;
|
|
3882
3881
|
};
|
|
3882
|
+
agentContext: string;
|
|
3883
3883
|
messageHistory: {
|
|
3884
3884
|
content: string | ({
|
|
3885
3885
|
type: "text";
|
|
@@ -3916,7 +3916,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3916
3916
|
role: "user" | "assistant";
|
|
3917
3917
|
}[];
|
|
3918
3918
|
}, {
|
|
3919
|
-
agentContext: string;
|
|
3920
3919
|
fileContext: {
|
|
3921
3920
|
currentWorkingDirectory: string;
|
|
3922
3921
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3944,6 +3943,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3944
3943
|
content: string;
|
|
3945
3944
|
}[][] | undefined;
|
|
3946
3945
|
};
|
|
3946
|
+
agentContext: string;
|
|
3947
3947
|
messageHistory: {
|
|
3948
3948
|
content: string | ({
|
|
3949
3949
|
type: "text";
|
|
@@ -3986,12 +3986,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3986
3986
|
id: z.ZodString;
|
|
3987
3987
|
}, "strip", z.ZodTypeAny, {
|
|
3988
3988
|
name: string;
|
|
3989
|
-
parameters: Record<string, string>;
|
|
3990
3989
|
id: string;
|
|
3990
|
+
parameters: Record<string, string>;
|
|
3991
3991
|
}, {
|
|
3992
3992
|
name: string;
|
|
3993
|
-
parameters: Record<string, string>;
|
|
3994
3993
|
id: string;
|
|
3994
|
+
parameters: Record<string, string>;
|
|
3995
3995
|
}>, "many">;
|
|
3996
3996
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
3997
3997
|
name: z.ZodString;
|
|
@@ -4010,7 +4010,6 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4010
4010
|
type: "prompt-response";
|
|
4011
4011
|
promptId: string;
|
|
4012
4012
|
agentState: {
|
|
4013
|
-
agentContext: string;
|
|
4014
4013
|
fileContext: {
|
|
4015
4014
|
currentWorkingDirectory: string;
|
|
4016
4015
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4038,6 +4037,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4038
4037
|
content: string;
|
|
4039
4038
|
}[][] | undefined;
|
|
4040
4039
|
};
|
|
4040
|
+
agentContext: string;
|
|
4041
4041
|
messageHistory: {
|
|
4042
4042
|
content: string | ({
|
|
4043
4043
|
type: "text";
|
|
@@ -4081,14 +4081,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4081
4081
|
}[];
|
|
4082
4082
|
toolCalls: {
|
|
4083
4083
|
name: string;
|
|
4084
|
-
parameters: Record<string, string>;
|
|
4085
4084
|
id: string;
|
|
4085
|
+
parameters: Record<string, string>;
|
|
4086
4086
|
}[];
|
|
4087
4087
|
}, {
|
|
4088
4088
|
type: "prompt-response";
|
|
4089
4089
|
promptId: string;
|
|
4090
4090
|
agentState: {
|
|
4091
|
-
agentContext: string;
|
|
4092
4091
|
fileContext: {
|
|
4093
4092
|
currentWorkingDirectory: string;
|
|
4094
4093
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4116,6 +4115,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4116
4115
|
content: string;
|
|
4117
4116
|
}[][] | undefined;
|
|
4118
4117
|
};
|
|
4118
|
+
agentContext: string;
|
|
4119
4119
|
messageHistory: {
|
|
4120
4120
|
content: string | ({
|
|
4121
4121
|
type: "text";
|
|
@@ -4159,8 +4159,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4159
4159
|
}[];
|
|
4160
4160
|
toolCalls: {
|
|
4161
4161
|
name: string;
|
|
4162
|
-
parameters: Record<string, string>;
|
|
4163
4162
|
id: string;
|
|
4163
|
+
parameters: Record<string, string>;
|
|
4164
4164
|
}[];
|
|
4165
4165
|
}>, z.ZodObject<{
|
|
4166
4166
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4282,12 +4282,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4282
4282
|
result: z.ZodString;
|
|
4283
4283
|
}, "strip", z.ZodTypeAny, {
|
|
4284
4284
|
type: "terminal-command-result";
|
|
4285
|
-
result: string;
|
|
4286
4285
|
userInputId: string;
|
|
4286
|
+
result: string;
|
|
4287
4287
|
}, {
|
|
4288
4288
|
type: "terminal-command-result";
|
|
4289
|
-
result: string;
|
|
4290
4289
|
userInputId: string;
|
|
4290
|
+
result: string;
|
|
4291
4291
|
}>, z.ZodObject<{
|
|
4292
4292
|
type: z.ZodLiteral<"npm-version-status">;
|
|
4293
4293
|
isUpToDate: z.ZodBoolean;
|
|
@@ -4384,15 +4384,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4384
4384
|
}, "strip", z.ZodTypeAny, {
|
|
4385
4385
|
type: "action";
|
|
4386
4386
|
data: {
|
|
4387
|
-
type: "
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
subscription_active: boolean;
|
|
4391
|
-
next_quota_reset: Date;
|
|
4392
|
-
session_credits_used: number;
|
|
4393
|
-
referralLink?: string | undefined;
|
|
4387
|
+
type: "response-chunk";
|
|
4388
|
+
userInputId: string;
|
|
4389
|
+
chunk: string;
|
|
4394
4390
|
} | {
|
|
4395
|
-
type: "
|
|
4391
|
+
type: "usage-response";
|
|
4396
4392
|
usage: number;
|
|
4397
4393
|
limit: number;
|
|
4398
4394
|
subscription_active: boolean;
|
|
@@ -4424,15 +4420,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4424
4420
|
subscription_active?: boolean | undefined;
|
|
4425
4421
|
next_quota_reset?: Date | undefined;
|
|
4426
4422
|
session_credits_used?: number | undefined;
|
|
4427
|
-
} | {
|
|
4428
|
-
type: "message-cost-response";
|
|
4429
|
-
promptId: string;
|
|
4430
|
-
credits: number;
|
|
4431
4423
|
} | {
|
|
4432
4424
|
type: "prompt-response";
|
|
4433
4425
|
promptId: string;
|
|
4434
4426
|
agentState: {
|
|
4435
|
-
agentContext: string;
|
|
4436
4427
|
fileContext: {
|
|
4437
4428
|
currentWorkingDirectory: string;
|
|
4438
4429
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4460,6 +4451,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4460
4451
|
content: string;
|
|
4461
4452
|
}[][] | undefined;
|
|
4462
4453
|
};
|
|
4454
|
+
agentContext: string;
|
|
4463
4455
|
messageHistory: {
|
|
4464
4456
|
content: string | ({
|
|
4465
4457
|
type: "text";
|
|
@@ -4503,13 +4495,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4503
4495
|
}[];
|
|
4504
4496
|
toolCalls: {
|
|
4505
4497
|
name: string;
|
|
4506
|
-
parameters: Record<string, string>;
|
|
4507
4498
|
id: string;
|
|
4499
|
+
parameters: Record<string, string>;
|
|
4508
4500
|
}[];
|
|
4509
|
-
} | {
|
|
4510
|
-
type: "response-chunk";
|
|
4511
|
-
userInputId: string;
|
|
4512
|
-
chunk: string;
|
|
4513
4501
|
} | {
|
|
4514
4502
|
type: "read-files";
|
|
4515
4503
|
requestId: string;
|
|
@@ -4540,12 +4528,24 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4540
4528
|
resetFileVersions: boolean;
|
|
4541
4529
|
} | {
|
|
4542
4530
|
type: "terminal-command-result";
|
|
4543
|
-
result: string;
|
|
4544
4531
|
userInputId: string;
|
|
4532
|
+
result: string;
|
|
4545
4533
|
} | {
|
|
4546
4534
|
type: "npm-version-status";
|
|
4547
4535
|
isUpToDate: boolean;
|
|
4548
4536
|
latestVersion: string;
|
|
4537
|
+
} | {
|
|
4538
|
+
type: "init-response";
|
|
4539
|
+
usage: number;
|
|
4540
|
+
limit: number;
|
|
4541
|
+
subscription_active: boolean;
|
|
4542
|
+
next_quota_reset: Date;
|
|
4543
|
+
session_credits_used: number;
|
|
4544
|
+
referralLink?: string | undefined;
|
|
4545
|
+
} | {
|
|
4546
|
+
type: "message-cost-response";
|
|
4547
|
+
promptId: string;
|
|
4548
|
+
credits: number;
|
|
4549
4549
|
} | {
|
|
4550
4550
|
message: string;
|
|
4551
4551
|
type: "action-error";
|
|
@@ -4556,15 +4556,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4556
4556
|
}, {
|
|
4557
4557
|
type: "action";
|
|
4558
4558
|
data: {
|
|
4559
|
-
type: "
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
subscription_active: boolean;
|
|
4563
|
-
next_quota_reset: Date;
|
|
4564
|
-
session_credits_used: number;
|
|
4565
|
-
referralLink?: string | undefined;
|
|
4559
|
+
type: "response-chunk";
|
|
4560
|
+
userInputId: string;
|
|
4561
|
+
chunk: string;
|
|
4566
4562
|
} | {
|
|
4567
|
-
type: "
|
|
4563
|
+
type: "usage-response";
|
|
4568
4564
|
usage: number;
|
|
4569
4565
|
limit: number;
|
|
4570
4566
|
subscription_active: boolean;
|
|
@@ -4596,15 +4592,10 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4596
4592
|
subscription_active?: boolean | undefined;
|
|
4597
4593
|
next_quota_reset?: Date | undefined;
|
|
4598
4594
|
session_credits_used?: number | undefined;
|
|
4599
|
-
} | {
|
|
4600
|
-
type: "message-cost-response";
|
|
4601
|
-
promptId: string;
|
|
4602
|
-
credits: number;
|
|
4603
4595
|
} | {
|
|
4604
4596
|
type: "prompt-response";
|
|
4605
4597
|
promptId: string;
|
|
4606
4598
|
agentState: {
|
|
4607
|
-
agentContext: string;
|
|
4608
4599
|
fileContext: {
|
|
4609
4600
|
currentWorkingDirectory: string;
|
|
4610
4601
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4632,6 +4623,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4632
4623
|
content: string;
|
|
4633
4624
|
}[][] | undefined;
|
|
4634
4625
|
};
|
|
4626
|
+
agentContext: string;
|
|
4635
4627
|
messageHistory: {
|
|
4636
4628
|
content: string | ({
|
|
4637
4629
|
type: "text";
|
|
@@ -4675,13 +4667,9 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4675
4667
|
}[];
|
|
4676
4668
|
toolCalls: {
|
|
4677
4669
|
name: string;
|
|
4678
|
-
parameters: Record<string, string>;
|
|
4679
4670
|
id: string;
|
|
4671
|
+
parameters: Record<string, string>;
|
|
4680
4672
|
}[];
|
|
4681
|
-
} | {
|
|
4682
|
-
type: "response-chunk";
|
|
4683
|
-
userInputId: string;
|
|
4684
|
-
chunk: string;
|
|
4685
4673
|
} | {
|
|
4686
4674
|
type: "read-files";
|
|
4687
4675
|
requestId: string;
|
|
@@ -4712,12 +4700,24 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4712
4700
|
resetFileVersions: boolean;
|
|
4713
4701
|
} | {
|
|
4714
4702
|
type: "terminal-command-result";
|
|
4715
|
-
result: string;
|
|
4716
4703
|
userInputId: string;
|
|
4704
|
+
result: string;
|
|
4717
4705
|
} | {
|
|
4718
4706
|
type: "npm-version-status";
|
|
4719
4707
|
isUpToDate: boolean;
|
|
4720
4708
|
latestVersion: string;
|
|
4709
|
+
} | {
|
|
4710
|
+
type: "init-response";
|
|
4711
|
+
usage: number;
|
|
4712
|
+
limit: number;
|
|
4713
|
+
subscription_active: boolean;
|
|
4714
|
+
next_quota_reset: Date;
|
|
4715
|
+
session_credits_used: number;
|
|
4716
|
+
referralLink?: string | undefined;
|
|
4717
|
+
} | {
|
|
4718
|
+
type: "message-cost-response";
|
|
4719
|
+
promptId: string;
|
|
4720
|
+
credits: number;
|
|
4721
4721
|
} | {
|
|
4722
4722
|
message: string;
|
|
4723
4723
|
type: "action-error";
|
|
@@ -5158,7 +5158,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5158
5158
|
role: "user" | "assistant";
|
|
5159
5159
|
}>, "many">;
|
|
5160
5160
|
}, "strip", z.ZodTypeAny, {
|
|
5161
|
-
agentContext: string;
|
|
5162
5161
|
fileContext: {
|
|
5163
5162
|
currentWorkingDirectory: string;
|
|
5164
5163
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5186,6 +5185,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5186
5185
|
content: string;
|
|
5187
5186
|
}[][] | undefined;
|
|
5188
5187
|
};
|
|
5188
|
+
agentContext: string;
|
|
5189
5189
|
messageHistory: {
|
|
5190
5190
|
content: string | ({
|
|
5191
5191
|
type: "text";
|
|
@@ -5222,7 +5222,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5222
5222
|
role: "user" | "assistant";
|
|
5223
5223
|
}[];
|
|
5224
5224
|
}, {
|
|
5225
|
-
agentContext: string;
|
|
5226
5225
|
fileContext: {
|
|
5227
5226
|
currentWorkingDirectory: string;
|
|
5228
5227
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5250,6 +5249,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5250
5249
|
content: string;
|
|
5251
5250
|
}[][] | undefined;
|
|
5252
5251
|
};
|
|
5252
|
+
agentContext: string;
|
|
5253
5253
|
messageHistory: {
|
|
5254
5254
|
content: string | ({
|
|
5255
5255
|
type: "text";
|
|
@@ -5292,12 +5292,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5292
5292
|
id: z.ZodString;
|
|
5293
5293
|
}, "strip", z.ZodTypeAny, {
|
|
5294
5294
|
name: string;
|
|
5295
|
-
parameters: Record<string, string>;
|
|
5296
5295
|
id: string;
|
|
5296
|
+
parameters: Record<string, string>;
|
|
5297
5297
|
}, {
|
|
5298
5298
|
name: string;
|
|
5299
|
-
parameters: Record<string, string>;
|
|
5300
5299
|
id: string;
|
|
5300
|
+
parameters: Record<string, string>;
|
|
5301
5301
|
}>, "many">;
|
|
5302
5302
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
5303
5303
|
name: z.ZodString;
|
|
@@ -5316,7 +5316,6 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5316
5316
|
type: "prompt-response";
|
|
5317
5317
|
promptId: string;
|
|
5318
5318
|
agentState: {
|
|
5319
|
-
agentContext: string;
|
|
5320
5319
|
fileContext: {
|
|
5321
5320
|
currentWorkingDirectory: string;
|
|
5322
5321
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5344,6 +5343,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5344
5343
|
content: string;
|
|
5345
5344
|
}[][] | undefined;
|
|
5346
5345
|
};
|
|
5346
|
+
agentContext: string;
|
|
5347
5347
|
messageHistory: {
|
|
5348
5348
|
content: string | ({
|
|
5349
5349
|
type: "text";
|
|
@@ -5387,14 +5387,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5387
5387
|
}[];
|
|
5388
5388
|
toolCalls: {
|
|
5389
5389
|
name: string;
|
|
5390
|
-
parameters: Record<string, string>;
|
|
5391
5390
|
id: string;
|
|
5391
|
+
parameters: Record<string, string>;
|
|
5392
5392
|
}[];
|
|
5393
5393
|
}, {
|
|
5394
5394
|
type: "prompt-response";
|
|
5395
5395
|
promptId: string;
|
|
5396
5396
|
agentState: {
|
|
5397
|
-
agentContext: string;
|
|
5398
5397
|
fileContext: {
|
|
5399
5398
|
currentWorkingDirectory: string;
|
|
5400
5399
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5422,6 +5421,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5422
5421
|
content: string;
|
|
5423
5422
|
}[][] | undefined;
|
|
5424
5423
|
};
|
|
5424
|
+
agentContext: string;
|
|
5425
5425
|
messageHistory: {
|
|
5426
5426
|
content: string | ({
|
|
5427
5427
|
type: "text";
|
|
@@ -5465,8 +5465,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5465
5465
|
}[];
|
|
5466
5466
|
toolCalls: {
|
|
5467
5467
|
name: string;
|
|
5468
|
-
parameters: Record<string, string>;
|
|
5469
5468
|
id: string;
|
|
5469
|
+
parameters: Record<string, string>;
|
|
5470
5470
|
}[];
|
|
5471
5471
|
}>, z.ZodObject<{
|
|
5472
5472
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -5588,12 +5588,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5588
5588
|
result: z.ZodString;
|
|
5589
5589
|
}, "strip", z.ZodTypeAny, {
|
|
5590
5590
|
type: "terminal-command-result";
|
|
5591
|
-
result: string;
|
|
5592
5591
|
userInputId: string;
|
|
5592
|
+
result: string;
|
|
5593
5593
|
}, {
|
|
5594
5594
|
type: "terminal-command-result";
|
|
5595
|
-
result: string;
|
|
5596
5595
|
userInputId: string;
|
|
5596
|
+
result: string;
|
|
5597
5597
|
}>, z.ZodObject<{
|
|
5598
5598
|
type: z.ZodLiteral<"npm-version-status">;
|
|
5599
5599
|
isUpToDate: z.ZodBoolean;
|
|
@@ -5690,15 +5690,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5690
5690
|
}, "strip", z.ZodTypeAny, {
|
|
5691
5691
|
type: "action";
|
|
5692
5692
|
data: {
|
|
5693
|
-
type: "
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
subscription_active: boolean;
|
|
5697
|
-
next_quota_reset: Date;
|
|
5698
|
-
session_credits_used: number;
|
|
5699
|
-
referralLink?: string | undefined;
|
|
5693
|
+
type: "response-chunk";
|
|
5694
|
+
userInputId: string;
|
|
5695
|
+
chunk: string;
|
|
5700
5696
|
} | {
|
|
5701
|
-
type: "
|
|
5697
|
+
type: "usage-response";
|
|
5702
5698
|
usage: number;
|
|
5703
5699
|
limit: number;
|
|
5704
5700
|
subscription_active: boolean;
|
|
@@ -5730,15 +5726,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5730
5726
|
subscription_active?: boolean | undefined;
|
|
5731
5727
|
next_quota_reset?: Date | undefined;
|
|
5732
5728
|
session_credits_used?: number | undefined;
|
|
5733
|
-
} | {
|
|
5734
|
-
type: "message-cost-response";
|
|
5735
|
-
promptId: string;
|
|
5736
|
-
credits: number;
|
|
5737
5729
|
} | {
|
|
5738
5730
|
type: "prompt-response";
|
|
5739
5731
|
promptId: string;
|
|
5740
5732
|
agentState: {
|
|
5741
|
-
agentContext: string;
|
|
5742
5733
|
fileContext: {
|
|
5743
5734
|
currentWorkingDirectory: string;
|
|
5744
5735
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5766,6 +5757,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5766
5757
|
content: string;
|
|
5767
5758
|
}[][] | undefined;
|
|
5768
5759
|
};
|
|
5760
|
+
agentContext: string;
|
|
5769
5761
|
messageHistory: {
|
|
5770
5762
|
content: string | ({
|
|
5771
5763
|
type: "text";
|
|
@@ -5809,13 +5801,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5809
5801
|
}[];
|
|
5810
5802
|
toolCalls: {
|
|
5811
5803
|
name: string;
|
|
5812
|
-
parameters: Record<string, string>;
|
|
5813
5804
|
id: string;
|
|
5805
|
+
parameters: Record<string, string>;
|
|
5814
5806
|
}[];
|
|
5815
|
-
} | {
|
|
5816
|
-
type: "response-chunk";
|
|
5817
|
-
userInputId: string;
|
|
5818
|
-
chunk: string;
|
|
5819
5807
|
} | {
|
|
5820
5808
|
type: "read-files";
|
|
5821
5809
|
requestId: string;
|
|
@@ -5846,12 +5834,24 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5846
5834
|
resetFileVersions: boolean;
|
|
5847
5835
|
} | {
|
|
5848
5836
|
type: "terminal-command-result";
|
|
5849
|
-
result: string;
|
|
5850
5837
|
userInputId: string;
|
|
5838
|
+
result: string;
|
|
5851
5839
|
} | {
|
|
5852
5840
|
type: "npm-version-status";
|
|
5853
5841
|
isUpToDate: boolean;
|
|
5854
5842
|
latestVersion: string;
|
|
5843
|
+
} | {
|
|
5844
|
+
type: "init-response";
|
|
5845
|
+
usage: number;
|
|
5846
|
+
limit: number;
|
|
5847
|
+
subscription_active: boolean;
|
|
5848
|
+
next_quota_reset: Date;
|
|
5849
|
+
session_credits_used: number;
|
|
5850
|
+
referralLink?: string | undefined;
|
|
5851
|
+
} | {
|
|
5852
|
+
type: "message-cost-response";
|
|
5853
|
+
promptId: string;
|
|
5854
|
+
credits: number;
|
|
5855
5855
|
} | {
|
|
5856
5856
|
message: string;
|
|
5857
5857
|
type: "action-error";
|
|
@@ -5862,15 +5862,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5862
5862
|
}, {
|
|
5863
5863
|
type: "action";
|
|
5864
5864
|
data: {
|
|
5865
|
-
type: "
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
subscription_active: boolean;
|
|
5869
|
-
next_quota_reset: Date;
|
|
5870
|
-
session_credits_used: number;
|
|
5871
|
-
referralLink?: string | undefined;
|
|
5865
|
+
type: "response-chunk";
|
|
5866
|
+
userInputId: string;
|
|
5867
|
+
chunk: string;
|
|
5872
5868
|
} | {
|
|
5873
|
-
type: "
|
|
5869
|
+
type: "usage-response";
|
|
5874
5870
|
usage: number;
|
|
5875
5871
|
limit: number;
|
|
5876
5872
|
subscription_active: boolean;
|
|
@@ -5902,15 +5898,10 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5902
5898
|
subscription_active?: boolean | undefined;
|
|
5903
5899
|
next_quota_reset?: Date | undefined;
|
|
5904
5900
|
session_credits_used?: number | undefined;
|
|
5905
|
-
} | {
|
|
5906
|
-
type: "message-cost-response";
|
|
5907
|
-
promptId: string;
|
|
5908
|
-
credits: number;
|
|
5909
5901
|
} | {
|
|
5910
5902
|
type: "prompt-response";
|
|
5911
5903
|
promptId: string;
|
|
5912
5904
|
agentState: {
|
|
5913
|
-
agentContext: string;
|
|
5914
5905
|
fileContext: {
|
|
5915
5906
|
currentWorkingDirectory: string;
|
|
5916
5907
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5938,6 +5929,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5938
5929
|
content: string;
|
|
5939
5930
|
}[][] | undefined;
|
|
5940
5931
|
};
|
|
5932
|
+
agentContext: string;
|
|
5941
5933
|
messageHistory: {
|
|
5942
5934
|
content: string | ({
|
|
5943
5935
|
type: "text";
|
|
@@ -5981,13 +5973,9 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5981
5973
|
}[];
|
|
5982
5974
|
toolCalls: {
|
|
5983
5975
|
name: string;
|
|
5984
|
-
parameters: Record<string, string>;
|
|
5985
5976
|
id: string;
|
|
5977
|
+
parameters: Record<string, string>;
|
|
5986
5978
|
}[];
|
|
5987
|
-
} | {
|
|
5988
|
-
type: "response-chunk";
|
|
5989
|
-
userInputId: string;
|
|
5990
|
-
chunk: string;
|
|
5991
5979
|
} | {
|
|
5992
5980
|
type: "read-files";
|
|
5993
5981
|
requestId: string;
|
|
@@ -6018,12 +6006,24 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6018
6006
|
resetFileVersions: boolean;
|
|
6019
6007
|
} | {
|
|
6020
6008
|
type: "terminal-command-result";
|
|
6021
|
-
result: string;
|
|
6022
6009
|
userInputId: string;
|
|
6010
|
+
result: string;
|
|
6023
6011
|
} | {
|
|
6024
6012
|
type: "npm-version-status";
|
|
6025
6013
|
isUpToDate: boolean;
|
|
6026
6014
|
latestVersion: string;
|
|
6015
|
+
} | {
|
|
6016
|
+
type: "init-response";
|
|
6017
|
+
usage: number;
|
|
6018
|
+
limit: number;
|
|
6019
|
+
subscription_active: boolean;
|
|
6020
|
+
next_quota_reset: Date;
|
|
6021
|
+
session_credits_used: number;
|
|
6022
|
+
referralLink?: string | undefined;
|
|
6023
|
+
} | {
|
|
6024
|
+
type: "message-cost-response";
|
|
6025
|
+
promptId: string;
|
|
6026
|
+
credits: number;
|
|
6027
6027
|
} | {
|
|
6028
6028
|
message: string;
|
|
6029
6029
|
type: "action-error";
|