codebuff 1.0.192 → 1.0.194
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/client.d.ts +6 -6
- package/dist/client.js +4 -1
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +210 -210
- package/dist/common/types/agent-state.d.ts +14 -14
- package/dist/common/util/file.d.ts +8 -8
- package/dist/common/util/file.js +1 -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 +12 -3
- package/dist/common/util/messages.js.map +1 -1
- package/dist/common/websockets/websocket-client.js +14 -3
- package/dist/common/websockets/websocket-client.js.map +1 -1
- package/dist/common/websockets/websocket-schema.d.ts +540 -540
- package/dist/project-files.d.ts +6 -6
- package/dist/project-files.js +3 -10
- package/dist/project-files.js.map +1 -1
- package/dist/utils/terminal.js +0 -2
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +4 -3
|
@@ -121,15 +121,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
type: "tool_result";
|
|
125
124
|
content: string;
|
|
125
|
+
type: "tool_result";
|
|
126
126
|
tool_use_id: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
type: "tool_result";
|
|
132
131
|
content: string;
|
|
132
|
+
type: "tool_result";
|
|
133
133
|
tool_use_id: string;
|
|
134
134
|
cache_control?: {
|
|
135
135
|
type: "ephemeral";
|
|
@@ -193,8 +193,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
193
193
|
type: "ephemeral";
|
|
194
194
|
} | undefined;
|
|
195
195
|
} | {
|
|
196
|
-
type: "tool_result";
|
|
197
196
|
content: string;
|
|
197
|
+
type: "tool_result";
|
|
198
198
|
tool_use_id: string;
|
|
199
199
|
cache_control?: {
|
|
200
200
|
type: "ephemeral";
|
|
@@ -227,8 +227,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
227
227
|
type: "ephemeral";
|
|
228
228
|
} | undefined;
|
|
229
229
|
} | {
|
|
230
|
-
type: "tool_result";
|
|
231
230
|
content: string;
|
|
231
|
+
type: "tool_result";
|
|
232
232
|
tool_use_id: string;
|
|
233
233
|
cache_control?: {
|
|
234
234
|
type: "ephemeral";
|
|
@@ -292,7 +292,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
292
292
|
homedir: string;
|
|
293
293
|
cpus: number;
|
|
294
294
|
}>;
|
|
295
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
295
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
296
296
|
path: z.ZodString;
|
|
297
297
|
content: z.ZodString;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -301,7 +301,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
301
301
|
}, {
|
|
302
302
|
path: string;
|
|
303
303
|
content: string;
|
|
304
|
-
}>, "many">, "many"
|
|
304
|
+
}>, "many">, "many">>;
|
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
306
|
currentWorkingDirectory: string;
|
|
307
307
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -323,11 +323,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
323
323
|
homedir: string;
|
|
324
324
|
cpus: number;
|
|
325
325
|
};
|
|
326
|
-
|
|
326
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
327
|
+
fileVersions?: {
|
|
327
328
|
path: string;
|
|
328
329
|
content: string;
|
|
329
|
-
}[][];
|
|
330
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
330
|
+
}[][] | undefined;
|
|
331
331
|
}, {
|
|
332
332
|
currentWorkingDirectory: string;
|
|
333
333
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -349,28 +349,55 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
349
349
|
homedir: string;
|
|
350
350
|
cpus: number;
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
353
|
+
fileVersions?: {
|
|
353
354
|
path: string;
|
|
354
355
|
content: string;
|
|
355
|
-
}[][];
|
|
356
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
356
|
+
}[][] | undefined;
|
|
357
357
|
}>;
|
|
358
358
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
359
359
|
type: z.ZodEnum<["patch", "file"]>;
|
|
360
360
|
path: z.ZodString;
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
type: "patch" | "file";
|
|
364
363
|
path: string;
|
|
365
364
|
content: string;
|
|
365
|
+
type: "file" | "patch";
|
|
366
366
|
}, {
|
|
367
|
-
type: "patch" | "file";
|
|
368
367
|
path: string;
|
|
369
368
|
content: string;
|
|
369
|
+
type: "file" | "patch";
|
|
370
370
|
}>, "many">;
|
|
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
|
+
};
|
|
374
401
|
fingerprintId: string;
|
|
375
402
|
userInputId: string;
|
|
376
403
|
messages: {
|
|
@@ -389,8 +416,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
389
416
|
type: "ephemeral";
|
|
390
417
|
} | undefined;
|
|
391
418
|
} | {
|
|
392
|
-
type: "tool_result";
|
|
393
419
|
content: string;
|
|
420
|
+
type: "tool_result";
|
|
394
421
|
tool_use_id: string;
|
|
395
422
|
cache_control?: {
|
|
396
423
|
type: "ephemeral";
|
|
@@ -408,6 +435,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
408
435
|
})[];
|
|
409
436
|
role: "user" | "assistant";
|
|
410
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";
|
|
411
447
|
fileContext: {
|
|
412
448
|
currentWorkingDirectory: string;
|
|
413
449
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -429,21 +465,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
429
465
|
homedir: string;
|
|
430
466
|
cpus: number;
|
|
431
467
|
};
|
|
432
|
-
|
|
468
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
469
|
+
fileVersions?: {
|
|
433
470
|
path: string;
|
|
434
471
|
content: string;
|
|
435
|
-
}[][];
|
|
436
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
472
|
+
}[][] | undefined;
|
|
437
473
|
};
|
|
438
|
-
changesAlreadyApplied: {
|
|
439
|
-
type: "patch" | "file";
|
|
440
|
-
path: string;
|
|
441
|
-
content: string;
|
|
442
|
-
}[];
|
|
443
|
-
costMode: "max" | "lite" | "normal";
|
|
444
|
-
authToken?: string | undefined;
|
|
445
|
-
}, {
|
|
446
|
-
type: "user-input";
|
|
447
474
|
fingerprintId: string;
|
|
448
475
|
userInputId: string;
|
|
449
476
|
messages: {
|
|
@@ -462,8 +489,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
462
489
|
type: "ephemeral";
|
|
463
490
|
} | undefined;
|
|
464
491
|
} | {
|
|
465
|
-
type: "tool_result";
|
|
466
492
|
content: string;
|
|
493
|
+
type: "tool_result";
|
|
467
494
|
tool_use_id: string;
|
|
468
495
|
cache_control?: {
|
|
469
496
|
type: "ephemeral";
|
|
@@ -481,37 +508,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
481
508
|
})[];
|
|
482
509
|
role: "user" | "assistant";
|
|
483
510
|
}[];
|
|
484
|
-
fileContext: {
|
|
485
|
-
currentWorkingDirectory: string;
|
|
486
|
-
fileTree: import("../util/file").FileTreeNode[];
|
|
487
|
-
fileTokenScores: Record<string, Record<string, number>>;
|
|
488
|
-
knowledgeFiles: Record<string, string>;
|
|
489
|
-
gitChanges: {
|
|
490
|
-
status: string;
|
|
491
|
-
diff: string;
|
|
492
|
-
diffCached: string;
|
|
493
|
-
lastCommitMessages: string;
|
|
494
|
-
};
|
|
495
|
-
changesSinceLastChat: Record<string, string>;
|
|
496
|
-
shellConfigFiles: Record<string, string>;
|
|
497
|
-
systemInfo: {
|
|
498
|
-
platform: string;
|
|
499
|
-
shell: string;
|
|
500
|
-
nodeVersion: string;
|
|
501
|
-
arch: string;
|
|
502
|
-
homedir: string;
|
|
503
|
-
cpus: number;
|
|
504
|
-
};
|
|
505
|
-
fileVersions: {
|
|
506
|
-
path: string;
|
|
507
|
-
content: string;
|
|
508
|
-
}[][];
|
|
509
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
510
|
-
};
|
|
511
511
|
changesAlreadyApplied: {
|
|
512
|
-
type: "patch" | "file";
|
|
513
512
|
path: string;
|
|
514
513
|
content: string;
|
|
514
|
+
type: "file" | "patch";
|
|
515
515
|
}[];
|
|
516
516
|
authToken?: string | undefined;
|
|
517
517
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -570,7 +570,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
570
570
|
homedir: string;
|
|
571
571
|
cpus: number;
|
|
572
572
|
}>;
|
|
573
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
573
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
574
574
|
path: z.ZodString;
|
|
575
575
|
content: z.ZodString;
|
|
576
576
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -579,7 +579,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
579
579
|
}, {
|
|
580
580
|
path: string;
|
|
581
581
|
content: string;
|
|
582
|
-
}>, "many">, "many"
|
|
582
|
+
}>, "many">, "many">>;
|
|
583
583
|
}, "strip", z.ZodTypeAny, {
|
|
584
584
|
currentWorkingDirectory: string;
|
|
585
585
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -601,11 +601,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
601
601
|
homedir: string;
|
|
602
602
|
cpus: number;
|
|
603
603
|
};
|
|
604
|
-
|
|
604
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
605
|
+
fileVersions?: {
|
|
605
606
|
path: string;
|
|
606
607
|
content: string;
|
|
607
|
-
}[][];
|
|
608
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
608
|
+
}[][] | undefined;
|
|
609
609
|
}, {
|
|
610
610
|
currentWorkingDirectory: string;
|
|
611
611
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -627,11 +627,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
627
627
|
homedir: string;
|
|
628
628
|
cpus: number;
|
|
629
629
|
};
|
|
630
|
-
|
|
630
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
631
|
+
fileVersions?: {
|
|
631
632
|
path: string;
|
|
632
633
|
content: string;
|
|
633
|
-
}[][];
|
|
634
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
634
|
+
}[][] | undefined;
|
|
635
635
|
}>;
|
|
636
636
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
637
637
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -697,15 +697,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
697
697
|
type: "ephemeral";
|
|
698
698
|
}>>;
|
|
699
699
|
}, "strip", z.ZodTypeAny, {
|
|
700
|
-
type: "tool_result";
|
|
701
700
|
content: string;
|
|
701
|
+
type: "tool_result";
|
|
702
702
|
tool_use_id: string;
|
|
703
703
|
cache_control?: {
|
|
704
704
|
type: "ephemeral";
|
|
705
705
|
} | undefined;
|
|
706
706
|
}, {
|
|
707
|
-
type: "tool_result";
|
|
708
707
|
content: string;
|
|
708
|
+
type: "tool_result";
|
|
709
709
|
tool_use_id: string;
|
|
710
710
|
cache_control?: {
|
|
711
711
|
type: "ephemeral";
|
|
@@ -769,8 +769,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
769
769
|
type: "ephemeral";
|
|
770
770
|
} | undefined;
|
|
771
771
|
} | {
|
|
772
|
-
type: "tool_result";
|
|
773
772
|
content: string;
|
|
773
|
+
type: "tool_result";
|
|
774
774
|
tool_use_id: string;
|
|
775
775
|
cache_control?: {
|
|
776
776
|
type: "ephemeral";
|
|
@@ -803,8 +803,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
803
803
|
type: "ephemeral";
|
|
804
804
|
} | undefined;
|
|
805
805
|
} | {
|
|
806
|
-
type: "tool_result";
|
|
807
806
|
content: string;
|
|
807
|
+
type: "tool_result";
|
|
808
808
|
tool_use_id: string;
|
|
809
809
|
cache_control?: {
|
|
810
810
|
type: "ephemeral";
|
|
@@ -823,6 +823,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
823
823
|
role: "user" | "assistant";
|
|
824
824
|
}>, "many">;
|
|
825
825
|
}, "strip", z.ZodTypeAny, {
|
|
826
|
+
agentContext: string;
|
|
826
827
|
fileContext: {
|
|
827
828
|
currentWorkingDirectory: string;
|
|
828
829
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -844,13 +845,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
844
845
|
homedir: string;
|
|
845
846
|
cpus: number;
|
|
846
847
|
};
|
|
847
|
-
|
|
848
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
849
|
+
fileVersions?: {
|
|
848
850
|
path: string;
|
|
849
851
|
content: string;
|
|
850
|
-
}[][];
|
|
851
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
852
|
+
}[][] | undefined;
|
|
852
853
|
};
|
|
853
|
-
agentContext: string;
|
|
854
854
|
messageHistory: {
|
|
855
855
|
content: string | ({
|
|
856
856
|
type: "text";
|
|
@@ -867,8 +867,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
867
867
|
type: "ephemeral";
|
|
868
868
|
} | undefined;
|
|
869
869
|
} | {
|
|
870
|
-
type: "tool_result";
|
|
871
870
|
content: string;
|
|
871
|
+
type: "tool_result";
|
|
872
872
|
tool_use_id: string;
|
|
873
873
|
cache_control?: {
|
|
874
874
|
type: "ephemeral";
|
|
@@ -887,6 +887,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
887
887
|
role: "user" | "assistant";
|
|
888
888
|
}[];
|
|
889
889
|
}, {
|
|
890
|
+
agentContext: string;
|
|
890
891
|
fileContext: {
|
|
891
892
|
currentWorkingDirectory: string;
|
|
892
893
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -908,13 +909,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
908
909
|
homedir: string;
|
|
909
910
|
cpus: number;
|
|
910
911
|
};
|
|
911
|
-
|
|
912
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
913
|
+
fileVersions?: {
|
|
912
914
|
path: string;
|
|
913
915
|
content: string;
|
|
914
|
-
}[][];
|
|
915
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
916
|
+
}[][] | undefined;
|
|
916
917
|
};
|
|
917
|
-
agentContext: string;
|
|
918
918
|
messageHistory: {
|
|
919
919
|
content: string | ({
|
|
920
920
|
type: "text";
|
|
@@ -931,8 +931,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
931
931
|
type: "ephemeral";
|
|
932
932
|
} | undefined;
|
|
933
933
|
} | {
|
|
934
|
-
type: "tool_result";
|
|
935
934
|
content: string;
|
|
935
|
+
type: "tool_result";
|
|
936
936
|
tool_use_id: string;
|
|
937
937
|
cache_control?: {
|
|
938
938
|
type: "ephemeral";
|
|
@@ -970,6 +970,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
970
970
|
costMode: "max" | "lite" | "normal";
|
|
971
971
|
promptId: string;
|
|
972
972
|
agentState: {
|
|
973
|
+
agentContext: string;
|
|
973
974
|
fileContext: {
|
|
974
975
|
currentWorkingDirectory: string;
|
|
975
976
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -991,13 +992,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
991
992
|
homedir: string;
|
|
992
993
|
cpus: number;
|
|
993
994
|
};
|
|
994
|
-
|
|
995
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
996
|
+
fileVersions?: {
|
|
995
997
|
path: string;
|
|
996
998
|
content: string;
|
|
997
|
-
}[][];
|
|
998
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
999
|
+
}[][] | undefined;
|
|
999
1000
|
};
|
|
1000
|
-
agentContext: string;
|
|
1001
1001
|
messageHistory: {
|
|
1002
1002
|
content: string | ({
|
|
1003
1003
|
type: "text";
|
|
@@ -1014,8 +1014,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1014
1014
|
type: "ephemeral";
|
|
1015
1015
|
} | undefined;
|
|
1016
1016
|
} | {
|
|
1017
|
-
type: "tool_result";
|
|
1018
1017
|
content: string;
|
|
1018
|
+
type: "tool_result";
|
|
1019
1019
|
tool_use_id: string;
|
|
1020
1020
|
cache_control?: {
|
|
1021
1021
|
type: "ephemeral";
|
|
@@ -1046,6 +1046,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1046
1046
|
fingerprintId: string;
|
|
1047
1047
|
promptId: string;
|
|
1048
1048
|
agentState: {
|
|
1049
|
+
agentContext: string;
|
|
1049
1050
|
fileContext: {
|
|
1050
1051
|
currentWorkingDirectory: string;
|
|
1051
1052
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1067,13 +1068,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1067
1068
|
homedir: string;
|
|
1068
1069
|
cpus: number;
|
|
1069
1070
|
};
|
|
1070
|
-
|
|
1071
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1072
|
+
fileVersions?: {
|
|
1071
1073
|
path: string;
|
|
1072
1074
|
content: string;
|
|
1073
|
-
}[][];
|
|
1074
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1075
|
+
}[][] | undefined;
|
|
1075
1076
|
};
|
|
1076
|
-
agentContext: string;
|
|
1077
1077
|
messageHistory: {
|
|
1078
1078
|
content: string | ({
|
|
1079
1079
|
type: "text";
|
|
@@ -1090,8 +1090,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1090
1090
|
type: "ephemeral";
|
|
1091
1091
|
} | undefined;
|
|
1092
1092
|
} | {
|
|
1093
|
-
type: "tool_result";
|
|
1094
1093
|
content: string;
|
|
1094
|
+
type: "tool_result";
|
|
1095
1095
|
tool_use_id: string;
|
|
1096
1096
|
cache_control?: {
|
|
1097
1097
|
type: "ephemeral";
|
|
@@ -1180,7 +1180,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1180
1180
|
homedir: string;
|
|
1181
1181
|
cpus: number;
|
|
1182
1182
|
}>;
|
|
1183
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1183
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
1184
1184
|
path: z.ZodString;
|
|
1185
1185
|
content: z.ZodString;
|
|
1186
1186
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1189,7 +1189,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1189
1189
|
}, {
|
|
1190
1190
|
path: string;
|
|
1191
1191
|
content: string;
|
|
1192
|
-
}>, "many">, "many"
|
|
1192
|
+
}>, "many">, "many">>;
|
|
1193
1193
|
}, "strip", z.ZodTypeAny, {
|
|
1194
1194
|
currentWorkingDirectory: string;
|
|
1195
1195
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1211,11 +1211,11 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1211
1211
|
homedir: string;
|
|
1212
1212
|
cpus: number;
|
|
1213
1213
|
};
|
|
1214
|
-
|
|
1214
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1215
|
+
fileVersions?: {
|
|
1215
1216
|
path: string;
|
|
1216
1217
|
content: string;
|
|
1217
|
-
}[][];
|
|
1218
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1218
|
+
}[][] | undefined;
|
|
1219
1219
|
}, {
|
|
1220
1220
|
currentWorkingDirectory: string;
|
|
1221
1221
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1237,15 +1237,14 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1237
1237
|
homedir: string;
|
|
1238
1238
|
cpus: number;
|
|
1239
1239
|
};
|
|
1240
|
-
|
|
1240
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1241
|
+
fileVersions?: {
|
|
1241
1242
|
path: string;
|
|
1242
1243
|
content: string;
|
|
1243
|
-
}[][];
|
|
1244
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1244
|
+
}[][] | undefined;
|
|
1245
1245
|
}>;
|
|
1246
1246
|
}, "strip", z.ZodTypeAny, {
|
|
1247
1247
|
type: "init";
|
|
1248
|
-
fingerprintId: string;
|
|
1249
1248
|
fileContext: {
|
|
1250
1249
|
currentWorkingDirectory: string;
|
|
1251
1250
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1267,16 +1266,16 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1267
1266
|
homedir: string;
|
|
1268
1267
|
cpus: number;
|
|
1269
1268
|
};
|
|
1270
|
-
|
|
1269
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1270
|
+
fileVersions?: {
|
|
1271
1271
|
path: string;
|
|
1272
1272
|
content: string;
|
|
1273
|
-
}[][];
|
|
1274
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1273
|
+
}[][] | undefined;
|
|
1275
1274
|
};
|
|
1275
|
+
fingerprintId: string;
|
|
1276
1276
|
authToken?: string | undefined;
|
|
1277
1277
|
}, {
|
|
1278
1278
|
type: "init";
|
|
1279
|
-
fingerprintId: string;
|
|
1280
1279
|
fileContext: {
|
|
1281
1280
|
currentWorkingDirectory: string;
|
|
1282
1281
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1298,12 +1297,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1298
1297
|
homedir: string;
|
|
1299
1298
|
cpus: number;
|
|
1300
1299
|
};
|
|
1301
|
-
|
|
1300
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1301
|
+
fileVersions?: {
|
|
1302
1302
|
path: string;
|
|
1303
1303
|
content: string;
|
|
1304
|
-
}[][];
|
|
1305
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1304
|
+
}[][] | undefined;
|
|
1306
1305
|
};
|
|
1306
|
+
fingerprintId: string;
|
|
1307
1307
|
authToken?: string | undefined;
|
|
1308
1308
|
}>, z.ZodObject<{
|
|
1309
1309
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -1325,6 +1325,33 @@ 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
|
+
};
|
|
1328
1355
|
fingerprintId: string;
|
|
1329
1356
|
userInputId: string;
|
|
1330
1357
|
messages: {
|
|
@@ -1343,8 +1370,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1343
1370
|
type: "ephemeral";
|
|
1344
1371
|
} | undefined;
|
|
1345
1372
|
} | {
|
|
1346
|
-
type: "tool_result";
|
|
1347
1373
|
content: string;
|
|
1374
|
+
type: "tool_result";
|
|
1348
1375
|
tool_use_id: string;
|
|
1349
1376
|
cache_control?: {
|
|
1350
1377
|
type: "ephemeral";
|
|
@@ -1362,37 +1389,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1362
1389
|
})[];
|
|
1363
1390
|
role: "user" | "assistant";
|
|
1364
1391
|
}[];
|
|
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
|
-
fileVersions: {
|
|
1387
|
-
path: string;
|
|
1388
|
-
content: string;
|
|
1389
|
-
}[][];
|
|
1390
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1391
|
-
};
|
|
1392
1392
|
changesAlreadyApplied: {
|
|
1393
|
-
type: "patch" | "file";
|
|
1394
1393
|
path: string;
|
|
1395
1394
|
content: string;
|
|
1395
|
+
type: "file" | "patch";
|
|
1396
1396
|
}[];
|
|
1397
1397
|
costMode: "max" | "lite" | "normal";
|
|
1398
1398
|
authToken?: string | undefined;
|
|
@@ -1402,6 +1402,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1402
1402
|
costMode: "max" | "lite" | "normal";
|
|
1403
1403
|
promptId: string;
|
|
1404
1404
|
agentState: {
|
|
1405
|
+
agentContext: string;
|
|
1405
1406
|
fileContext: {
|
|
1406
1407
|
currentWorkingDirectory: string;
|
|
1407
1408
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1423,13 +1424,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1423
1424
|
homedir: string;
|
|
1424
1425
|
cpus: number;
|
|
1425
1426
|
};
|
|
1426
|
-
|
|
1427
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1428
|
+
fileVersions?: {
|
|
1427
1429
|
path: string;
|
|
1428
1430
|
content: string;
|
|
1429
|
-
}[][];
|
|
1430
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1431
|
+
}[][] | undefined;
|
|
1431
1432
|
};
|
|
1432
|
-
agentContext: string;
|
|
1433
1433
|
messageHistory: {
|
|
1434
1434
|
content: string | ({
|
|
1435
1435
|
type: "text";
|
|
@@ -1446,8 +1446,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1446
1446
|
type: "ephemeral";
|
|
1447
1447
|
} | undefined;
|
|
1448
1448
|
} | {
|
|
1449
|
-
type: "tool_result";
|
|
1450
1449
|
content: string;
|
|
1450
|
+
type: "tool_result";
|
|
1451
1451
|
tool_use_id: string;
|
|
1452
1452
|
cache_control?: {
|
|
1453
1453
|
type: "ephemeral";
|
|
@@ -1479,7 +1479,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1479
1479
|
requestId?: string | undefined;
|
|
1480
1480
|
} | {
|
|
1481
1481
|
type: "init";
|
|
1482
|
-
fingerprintId: string;
|
|
1483
1482
|
fileContext: {
|
|
1484
1483
|
currentWorkingDirectory: string;
|
|
1485
1484
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1501,12 +1500,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1501
1500
|
homedir: string;
|
|
1502
1501
|
cpus: number;
|
|
1503
1502
|
};
|
|
1504
|
-
|
|
1503
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1504
|
+
fileVersions?: {
|
|
1505
1505
|
path: string;
|
|
1506
1506
|
content: string;
|
|
1507
|
-
}[][];
|
|
1508
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1507
|
+
}[][] | undefined;
|
|
1509
1508
|
};
|
|
1509
|
+
fingerprintId: string;
|
|
1510
1510
|
authToken?: string | undefined;
|
|
1511
1511
|
} | {
|
|
1512
1512
|
type: "generate-commit-message";
|
|
@@ -1519,6 +1519,33 @@ 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
|
+
};
|
|
1522
1549
|
fingerprintId: string;
|
|
1523
1550
|
userInputId: string;
|
|
1524
1551
|
messages: {
|
|
@@ -1537,8 +1564,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1537
1564
|
type: "ephemeral";
|
|
1538
1565
|
} | undefined;
|
|
1539
1566
|
} | {
|
|
1540
|
-
type: "tool_result";
|
|
1541
1567
|
content: string;
|
|
1568
|
+
type: "tool_result";
|
|
1542
1569
|
tool_use_id: string;
|
|
1543
1570
|
cache_control?: {
|
|
1544
1571
|
type: "ephemeral";
|
|
@@ -1556,37 +1583,10 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1556
1583
|
})[];
|
|
1557
1584
|
role: "user" | "assistant";
|
|
1558
1585
|
}[];
|
|
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
|
-
fileVersions: {
|
|
1581
|
-
path: string;
|
|
1582
|
-
content: string;
|
|
1583
|
-
}[][];
|
|
1584
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1585
|
-
};
|
|
1586
1586
|
changesAlreadyApplied: {
|
|
1587
|
-
type: "patch" | "file";
|
|
1588
1587
|
path: string;
|
|
1589
1588
|
content: string;
|
|
1589
|
+
type: "file" | "patch";
|
|
1590
1590
|
}[];
|
|
1591
1591
|
authToken?: string | undefined;
|
|
1592
1592
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -1595,6 +1595,7 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1595
1595
|
fingerprintId: string;
|
|
1596
1596
|
promptId: string;
|
|
1597
1597
|
agentState: {
|
|
1598
|
+
agentContext: string;
|
|
1598
1599
|
fileContext: {
|
|
1599
1600
|
currentWorkingDirectory: string;
|
|
1600
1601
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1616,13 +1617,12 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1616
1617
|
homedir: string;
|
|
1617
1618
|
cpus: number;
|
|
1618
1619
|
};
|
|
1619
|
-
|
|
1620
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1621
|
+
fileVersions?: {
|
|
1620
1622
|
path: string;
|
|
1621
1623
|
content: string;
|
|
1622
|
-
}[][];
|
|
1623
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1624
|
+
}[][] | undefined;
|
|
1624
1625
|
};
|
|
1625
|
-
agentContext: string;
|
|
1626
1626
|
messageHistory: {
|
|
1627
1627
|
content: string | ({
|
|
1628
1628
|
type: "text";
|
|
@@ -1639,8 +1639,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1639
1639
|
type: "ephemeral";
|
|
1640
1640
|
} | undefined;
|
|
1641
1641
|
} | {
|
|
1642
|
-
type: "tool_result";
|
|
1643
1642
|
content: string;
|
|
1643
|
+
type: "tool_result";
|
|
1644
1644
|
tool_use_id: string;
|
|
1645
1645
|
cache_control?: {
|
|
1646
1646
|
type: "ephemeral";
|
|
@@ -1673,7 +1673,6 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1673
1673
|
requestId?: string | undefined;
|
|
1674
1674
|
} | {
|
|
1675
1675
|
type: "init";
|
|
1676
|
-
fingerprintId: string;
|
|
1677
1676
|
fileContext: {
|
|
1678
1677
|
currentWorkingDirectory: string;
|
|
1679
1678
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -1695,12 +1694,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
1695
1694
|
homedir: string;
|
|
1696
1695
|
cpus: number;
|
|
1697
1696
|
};
|
|
1698
|
-
|
|
1697
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1698
|
+
fileVersions?: {
|
|
1699
1699
|
path: string;
|
|
1700
1700
|
content: string;
|
|
1701
|
-
}[][];
|
|
1702
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
1701
|
+
}[][] | undefined;
|
|
1703
1702
|
};
|
|
1703
|
+
fingerprintId: string;
|
|
1704
1704
|
authToken?: string | undefined;
|
|
1705
1705
|
} | {
|
|
1706
1706
|
type: "generate-commit-message";
|
|
@@ -1828,15 +1828,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1828
1828
|
type: "ephemeral";
|
|
1829
1829
|
}>>;
|
|
1830
1830
|
}, "strip", z.ZodTypeAny, {
|
|
1831
|
-
type: "tool_result";
|
|
1832
1831
|
content: string;
|
|
1832
|
+
type: "tool_result";
|
|
1833
1833
|
tool_use_id: string;
|
|
1834
1834
|
cache_control?: {
|
|
1835
1835
|
type: "ephemeral";
|
|
1836
1836
|
} | undefined;
|
|
1837
1837
|
}, {
|
|
1838
|
-
type: "tool_result";
|
|
1839
1838
|
content: string;
|
|
1839
|
+
type: "tool_result";
|
|
1840
1840
|
tool_use_id: string;
|
|
1841
1841
|
cache_control?: {
|
|
1842
1842
|
type: "ephemeral";
|
|
@@ -1900,8 +1900,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1900
1900
|
type: "ephemeral";
|
|
1901
1901
|
} | undefined;
|
|
1902
1902
|
} | {
|
|
1903
|
-
type: "tool_result";
|
|
1904
1903
|
content: string;
|
|
1904
|
+
type: "tool_result";
|
|
1905
1905
|
tool_use_id: string;
|
|
1906
1906
|
cache_control?: {
|
|
1907
1907
|
type: "ephemeral";
|
|
@@ -1934,8 +1934,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1934
1934
|
type: "ephemeral";
|
|
1935
1935
|
} | undefined;
|
|
1936
1936
|
} | {
|
|
1937
|
-
type: "tool_result";
|
|
1938
1937
|
content: string;
|
|
1938
|
+
type: "tool_result";
|
|
1939
1939
|
tool_use_id: string;
|
|
1940
1940
|
cache_control?: {
|
|
1941
1941
|
type: "ephemeral";
|
|
@@ -1999,7 +1999,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1999
1999
|
homedir: string;
|
|
2000
2000
|
cpus: number;
|
|
2001
2001
|
}>;
|
|
2002
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2002
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2003
2003
|
path: z.ZodString;
|
|
2004
2004
|
content: z.ZodString;
|
|
2005
2005
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2008,7 +2008,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2008
2008
|
}, {
|
|
2009
2009
|
path: string;
|
|
2010
2010
|
content: string;
|
|
2011
|
-
}>, "many">, "many"
|
|
2011
|
+
}>, "many">, "many">>;
|
|
2012
2012
|
}, "strip", z.ZodTypeAny, {
|
|
2013
2013
|
currentWorkingDirectory: string;
|
|
2014
2014
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2030,11 +2030,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2030
2030
|
homedir: string;
|
|
2031
2031
|
cpus: number;
|
|
2032
2032
|
};
|
|
2033
|
-
|
|
2033
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2034
|
+
fileVersions?: {
|
|
2034
2035
|
path: string;
|
|
2035
2036
|
content: string;
|
|
2036
|
-
}[][];
|
|
2037
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2037
|
+
}[][] | undefined;
|
|
2038
2038
|
}, {
|
|
2039
2039
|
currentWorkingDirectory: string;
|
|
2040
2040
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2056,28 +2056,55 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2056
2056
|
homedir: string;
|
|
2057
2057
|
cpus: number;
|
|
2058
2058
|
};
|
|
2059
|
-
|
|
2059
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2060
|
+
fileVersions?: {
|
|
2060
2061
|
path: string;
|
|
2061
2062
|
content: string;
|
|
2062
|
-
}[][];
|
|
2063
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2063
|
+
}[][] | undefined;
|
|
2064
2064
|
}>;
|
|
2065
2065
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2066
2066
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2067
2067
|
path: z.ZodString;
|
|
2068
2068
|
content: z.ZodString;
|
|
2069
2069
|
}, "strip", z.ZodTypeAny, {
|
|
2070
|
-
type: "patch" | "file";
|
|
2071
2070
|
path: string;
|
|
2072
2071
|
content: string;
|
|
2072
|
+
type: "file" | "patch";
|
|
2073
2073
|
}, {
|
|
2074
|
-
type: "patch" | "file";
|
|
2075
2074
|
path: string;
|
|
2076
2075
|
content: string;
|
|
2076
|
+
type: "file" | "patch";
|
|
2077
2077
|
}>, "many">;
|
|
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
|
+
};
|
|
2081
2108
|
fingerprintId: string;
|
|
2082
2109
|
userInputId: string;
|
|
2083
2110
|
messages: {
|
|
@@ -2096,8 +2123,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2096
2123
|
type: "ephemeral";
|
|
2097
2124
|
} | undefined;
|
|
2098
2125
|
} | {
|
|
2099
|
-
type: "tool_result";
|
|
2100
2126
|
content: string;
|
|
2127
|
+
type: "tool_result";
|
|
2101
2128
|
tool_use_id: string;
|
|
2102
2129
|
cache_control?: {
|
|
2103
2130
|
type: "ephemeral";
|
|
@@ -2115,6 +2142,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2115
2142
|
})[];
|
|
2116
2143
|
role: "user" | "assistant";
|
|
2117
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";
|
|
2118
2154
|
fileContext: {
|
|
2119
2155
|
currentWorkingDirectory: string;
|
|
2120
2156
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2136,21 +2172,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2136
2172
|
homedir: string;
|
|
2137
2173
|
cpus: number;
|
|
2138
2174
|
};
|
|
2139
|
-
|
|
2175
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2176
|
+
fileVersions?: {
|
|
2140
2177
|
path: string;
|
|
2141
2178
|
content: string;
|
|
2142
|
-
}[][];
|
|
2143
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2179
|
+
}[][] | undefined;
|
|
2144
2180
|
};
|
|
2145
|
-
changesAlreadyApplied: {
|
|
2146
|
-
type: "patch" | "file";
|
|
2147
|
-
path: string;
|
|
2148
|
-
content: string;
|
|
2149
|
-
}[];
|
|
2150
|
-
costMode: "max" | "lite" | "normal";
|
|
2151
|
-
authToken?: string | undefined;
|
|
2152
|
-
}, {
|
|
2153
|
-
type: "user-input";
|
|
2154
2181
|
fingerprintId: string;
|
|
2155
2182
|
userInputId: string;
|
|
2156
2183
|
messages: {
|
|
@@ -2169,8 +2196,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2169
2196
|
type: "ephemeral";
|
|
2170
2197
|
} | undefined;
|
|
2171
2198
|
} | {
|
|
2172
|
-
type: "tool_result";
|
|
2173
2199
|
content: string;
|
|
2200
|
+
type: "tool_result";
|
|
2174
2201
|
tool_use_id: string;
|
|
2175
2202
|
cache_control?: {
|
|
2176
2203
|
type: "ephemeral";
|
|
@@ -2188,37 +2215,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2188
2215
|
})[];
|
|
2189
2216
|
role: "user" | "assistant";
|
|
2190
2217
|
}[];
|
|
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
|
-
fileVersions: {
|
|
2213
|
-
path: string;
|
|
2214
|
-
content: string;
|
|
2215
|
-
}[][];
|
|
2216
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2217
|
-
};
|
|
2218
2218
|
changesAlreadyApplied: {
|
|
2219
|
-
type: "patch" | "file";
|
|
2220
2219
|
path: string;
|
|
2221
2220
|
content: string;
|
|
2221
|
+
type: "file" | "patch";
|
|
2222
2222
|
}[];
|
|
2223
2223
|
authToken?: string | undefined;
|
|
2224
2224
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -2277,7 +2277,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2277
2277
|
homedir: string;
|
|
2278
2278
|
cpus: number;
|
|
2279
2279
|
}>;
|
|
2280
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2280
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2281
2281
|
path: z.ZodString;
|
|
2282
2282
|
content: z.ZodString;
|
|
2283
2283
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2286,7 +2286,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2286
2286
|
}, {
|
|
2287
2287
|
path: string;
|
|
2288
2288
|
content: string;
|
|
2289
|
-
}>, "many">, "many"
|
|
2289
|
+
}>, "many">, "many">>;
|
|
2290
2290
|
}, "strip", z.ZodTypeAny, {
|
|
2291
2291
|
currentWorkingDirectory: string;
|
|
2292
2292
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2308,11 +2308,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2308
2308
|
homedir: string;
|
|
2309
2309
|
cpus: number;
|
|
2310
2310
|
};
|
|
2311
|
-
|
|
2311
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2312
|
+
fileVersions?: {
|
|
2312
2313
|
path: string;
|
|
2313
2314
|
content: string;
|
|
2314
|
-
}[][];
|
|
2315
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2315
|
+
}[][] | undefined;
|
|
2316
2316
|
}, {
|
|
2317
2317
|
currentWorkingDirectory: string;
|
|
2318
2318
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2334,11 +2334,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2334
2334
|
homedir: string;
|
|
2335
2335
|
cpus: number;
|
|
2336
2336
|
};
|
|
2337
|
-
|
|
2337
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2338
|
+
fileVersions?: {
|
|
2338
2339
|
path: string;
|
|
2339
2340
|
content: string;
|
|
2340
|
-
}[][];
|
|
2341
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2341
|
+
}[][] | undefined;
|
|
2342
2342
|
}>;
|
|
2343
2343
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
2344
2344
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -2404,15 +2404,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2404
2404
|
type: "ephemeral";
|
|
2405
2405
|
}>>;
|
|
2406
2406
|
}, "strip", z.ZodTypeAny, {
|
|
2407
|
-
type: "tool_result";
|
|
2408
2407
|
content: string;
|
|
2408
|
+
type: "tool_result";
|
|
2409
2409
|
tool_use_id: string;
|
|
2410
2410
|
cache_control?: {
|
|
2411
2411
|
type: "ephemeral";
|
|
2412
2412
|
} | undefined;
|
|
2413
2413
|
}, {
|
|
2414
|
-
type: "tool_result";
|
|
2415
2414
|
content: string;
|
|
2415
|
+
type: "tool_result";
|
|
2416
2416
|
tool_use_id: string;
|
|
2417
2417
|
cache_control?: {
|
|
2418
2418
|
type: "ephemeral";
|
|
@@ -2476,8 +2476,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2476
2476
|
type: "ephemeral";
|
|
2477
2477
|
} | undefined;
|
|
2478
2478
|
} | {
|
|
2479
|
-
type: "tool_result";
|
|
2480
2479
|
content: string;
|
|
2480
|
+
type: "tool_result";
|
|
2481
2481
|
tool_use_id: string;
|
|
2482
2482
|
cache_control?: {
|
|
2483
2483
|
type: "ephemeral";
|
|
@@ -2510,8 +2510,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2510
2510
|
type: "ephemeral";
|
|
2511
2511
|
} | undefined;
|
|
2512
2512
|
} | {
|
|
2513
|
-
type: "tool_result";
|
|
2514
2513
|
content: string;
|
|
2514
|
+
type: "tool_result";
|
|
2515
2515
|
tool_use_id: string;
|
|
2516
2516
|
cache_control?: {
|
|
2517
2517
|
type: "ephemeral";
|
|
@@ -2530,6 +2530,7 @@ 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;
|
|
2533
2534
|
fileContext: {
|
|
2534
2535
|
currentWorkingDirectory: string;
|
|
2535
2536
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2551,13 +2552,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2551
2552
|
homedir: string;
|
|
2552
2553
|
cpus: number;
|
|
2553
2554
|
};
|
|
2554
|
-
|
|
2555
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2556
|
+
fileVersions?: {
|
|
2555
2557
|
path: string;
|
|
2556
2558
|
content: string;
|
|
2557
|
-
}[][];
|
|
2558
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2559
|
+
}[][] | undefined;
|
|
2559
2560
|
};
|
|
2560
|
-
agentContext: string;
|
|
2561
2561
|
messageHistory: {
|
|
2562
2562
|
content: string | ({
|
|
2563
2563
|
type: "text";
|
|
@@ -2574,8 +2574,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2574
2574
|
type: "ephemeral";
|
|
2575
2575
|
} | undefined;
|
|
2576
2576
|
} | {
|
|
2577
|
-
type: "tool_result";
|
|
2578
2577
|
content: string;
|
|
2578
|
+
type: "tool_result";
|
|
2579
2579
|
tool_use_id: string;
|
|
2580
2580
|
cache_control?: {
|
|
2581
2581
|
type: "ephemeral";
|
|
@@ -2594,6 +2594,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2594
2594
|
role: "user" | "assistant";
|
|
2595
2595
|
}[];
|
|
2596
2596
|
}, {
|
|
2597
|
+
agentContext: string;
|
|
2597
2598
|
fileContext: {
|
|
2598
2599
|
currentWorkingDirectory: string;
|
|
2599
2600
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2615,13 +2616,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2615
2616
|
homedir: string;
|
|
2616
2617
|
cpus: number;
|
|
2617
2618
|
};
|
|
2618
|
-
|
|
2619
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2620
|
+
fileVersions?: {
|
|
2619
2621
|
path: string;
|
|
2620
2622
|
content: string;
|
|
2621
|
-
}[][];
|
|
2622
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2623
|
+
}[][] | undefined;
|
|
2623
2624
|
};
|
|
2624
|
-
agentContext: string;
|
|
2625
2625
|
messageHistory: {
|
|
2626
2626
|
content: string | ({
|
|
2627
2627
|
type: "text";
|
|
@@ -2638,8 +2638,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2638
2638
|
type: "ephemeral";
|
|
2639
2639
|
} | undefined;
|
|
2640
2640
|
} | {
|
|
2641
|
-
type: "tool_result";
|
|
2642
2641
|
content: string;
|
|
2642
|
+
type: "tool_result";
|
|
2643
2643
|
tool_use_id: string;
|
|
2644
2644
|
cache_control?: {
|
|
2645
2645
|
type: "ephemeral";
|
|
@@ -2677,6 +2677,7 @@ 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;
|
|
2680
2681
|
fileContext: {
|
|
2681
2682
|
currentWorkingDirectory: string;
|
|
2682
2683
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2698,13 +2699,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2698
2699
|
homedir: string;
|
|
2699
2700
|
cpus: number;
|
|
2700
2701
|
};
|
|
2701
|
-
|
|
2702
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2703
|
+
fileVersions?: {
|
|
2702
2704
|
path: string;
|
|
2703
2705
|
content: string;
|
|
2704
|
-
}[][];
|
|
2705
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2706
|
+
}[][] | undefined;
|
|
2706
2707
|
};
|
|
2707
|
-
agentContext: string;
|
|
2708
2708
|
messageHistory: {
|
|
2709
2709
|
content: string | ({
|
|
2710
2710
|
type: "text";
|
|
@@ -2721,8 +2721,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2721
2721
|
type: "ephemeral";
|
|
2722
2722
|
} | undefined;
|
|
2723
2723
|
} | {
|
|
2724
|
-
type: "tool_result";
|
|
2725
2724
|
content: string;
|
|
2725
|
+
type: "tool_result";
|
|
2726
2726
|
tool_use_id: string;
|
|
2727
2727
|
cache_control?: {
|
|
2728
2728
|
type: "ephemeral";
|
|
@@ -2753,6 +2753,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2753
2753
|
fingerprintId: string;
|
|
2754
2754
|
promptId: string;
|
|
2755
2755
|
agentState: {
|
|
2756
|
+
agentContext: string;
|
|
2756
2757
|
fileContext: {
|
|
2757
2758
|
currentWorkingDirectory: string;
|
|
2758
2759
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2774,13 +2775,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2774
2775
|
homedir: string;
|
|
2775
2776
|
cpus: number;
|
|
2776
2777
|
};
|
|
2777
|
-
|
|
2778
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2779
|
+
fileVersions?: {
|
|
2778
2780
|
path: string;
|
|
2779
2781
|
content: string;
|
|
2780
|
-
}[][];
|
|
2781
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2782
|
+
}[][] | undefined;
|
|
2782
2783
|
};
|
|
2783
|
-
agentContext: string;
|
|
2784
2784
|
messageHistory: {
|
|
2785
2785
|
content: string | ({
|
|
2786
2786
|
type: "text";
|
|
@@ -2797,8 +2797,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2797
2797
|
type: "ephemeral";
|
|
2798
2798
|
} | undefined;
|
|
2799
2799
|
} | {
|
|
2800
|
-
type: "tool_result";
|
|
2801
2800
|
content: string;
|
|
2801
|
+
type: "tool_result";
|
|
2802
2802
|
tool_use_id: string;
|
|
2803
2803
|
cache_control?: {
|
|
2804
2804
|
type: "ephemeral";
|
|
@@ -2887,7 +2887,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2887
2887
|
homedir: string;
|
|
2888
2888
|
cpus: number;
|
|
2889
2889
|
}>;
|
|
2890
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2890
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
2891
2891
|
path: z.ZodString;
|
|
2892
2892
|
content: z.ZodString;
|
|
2893
2893
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2896,7 +2896,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2896
2896
|
}, {
|
|
2897
2897
|
path: string;
|
|
2898
2898
|
content: string;
|
|
2899
|
-
}>, "many">, "many"
|
|
2899
|
+
}>, "many">, "many">>;
|
|
2900
2900
|
}, "strip", z.ZodTypeAny, {
|
|
2901
2901
|
currentWorkingDirectory: string;
|
|
2902
2902
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2918,11 +2918,11 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2918
2918
|
homedir: string;
|
|
2919
2919
|
cpus: number;
|
|
2920
2920
|
};
|
|
2921
|
-
|
|
2921
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2922
|
+
fileVersions?: {
|
|
2922
2923
|
path: string;
|
|
2923
2924
|
content: string;
|
|
2924
|
-
}[][];
|
|
2925
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2925
|
+
}[][] | undefined;
|
|
2926
2926
|
}, {
|
|
2927
2927
|
currentWorkingDirectory: string;
|
|
2928
2928
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2944,15 +2944,14 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2944
2944
|
homedir: string;
|
|
2945
2945
|
cpus: number;
|
|
2946
2946
|
};
|
|
2947
|
-
|
|
2947
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2948
|
+
fileVersions?: {
|
|
2948
2949
|
path: string;
|
|
2949
2950
|
content: string;
|
|
2950
|
-
}[][];
|
|
2951
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2951
|
+
}[][] | undefined;
|
|
2952
2952
|
}>;
|
|
2953
2953
|
}, "strip", z.ZodTypeAny, {
|
|
2954
2954
|
type: "init";
|
|
2955
|
-
fingerprintId: string;
|
|
2956
2955
|
fileContext: {
|
|
2957
2956
|
currentWorkingDirectory: string;
|
|
2958
2957
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -2974,16 +2973,16 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2974
2973
|
homedir: string;
|
|
2975
2974
|
cpus: number;
|
|
2976
2975
|
};
|
|
2977
|
-
|
|
2976
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2977
|
+
fileVersions?: {
|
|
2978
2978
|
path: string;
|
|
2979
2979
|
content: string;
|
|
2980
|
-
}[][];
|
|
2981
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
2980
|
+
}[][] | undefined;
|
|
2982
2981
|
};
|
|
2982
|
+
fingerprintId: string;
|
|
2983
2983
|
authToken?: string | undefined;
|
|
2984
2984
|
}, {
|
|
2985
2985
|
type: "init";
|
|
2986
|
-
fingerprintId: string;
|
|
2987
2986
|
fileContext: {
|
|
2988
2987
|
currentWorkingDirectory: string;
|
|
2989
2988
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3005,12 +3004,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3005
3004
|
homedir: string;
|
|
3006
3005
|
cpus: number;
|
|
3007
3006
|
};
|
|
3008
|
-
|
|
3007
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3008
|
+
fileVersions?: {
|
|
3009
3009
|
path: string;
|
|
3010
3010
|
content: string;
|
|
3011
|
-
}[][];
|
|
3012
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3011
|
+
}[][] | undefined;
|
|
3013
3012
|
};
|
|
3013
|
+
fingerprintId: string;
|
|
3014
3014
|
authToken?: string | undefined;
|
|
3015
3015
|
}>, z.ZodObject<{
|
|
3016
3016
|
type: z.ZodLiteral<"generate-commit-message">;
|
|
@@ -3032,43 +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
|
-
fingerprintId: string;
|
|
3036
|
-
userInputId: string;
|
|
3037
|
-
messages: {
|
|
3038
|
-
content: string | ({
|
|
3039
|
-
type: "text";
|
|
3040
|
-
text: string;
|
|
3041
|
-
cache_control?: {
|
|
3042
|
-
type: "ephemeral";
|
|
3043
|
-
} | undefined;
|
|
3044
|
-
} | {
|
|
3045
|
-
type: "tool_use";
|
|
3046
|
-
name: string;
|
|
3047
|
-
id: string;
|
|
3048
|
-
input: Record<string, any>;
|
|
3049
|
-
cache_control?: {
|
|
3050
|
-
type: "ephemeral";
|
|
3051
|
-
} | undefined;
|
|
3052
|
-
} | {
|
|
3053
|
-
type: "tool_result";
|
|
3054
|
-
content: string;
|
|
3055
|
-
tool_use_id: string;
|
|
3056
|
-
cache_control?: {
|
|
3057
|
-
type: "ephemeral";
|
|
3058
|
-
} | undefined;
|
|
3059
|
-
} | {
|
|
3060
|
-
type: "image";
|
|
3061
|
-
source: {
|
|
3062
|
-
type: "base64";
|
|
3063
|
-
media_type: "image/jpeg";
|
|
3064
|
-
data: string;
|
|
3065
|
-
};
|
|
3066
|
-
cache_control?: {
|
|
3067
|
-
type: "ephemeral";
|
|
3068
|
-
} | undefined;
|
|
3069
|
-
})[];
|
|
3070
|
-
role: "user" | "assistant";
|
|
3071
|
-
}[];
|
|
3072
3035
|
fileContext: {
|
|
3073
3036
|
currentWorkingDirectory: string;
|
|
3074
3037
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3090,16 +3053,53 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3090
3053
|
homedir: string;
|
|
3091
3054
|
cpus: number;
|
|
3092
3055
|
};
|
|
3093
|
-
|
|
3056
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3057
|
+
fileVersions?: {
|
|
3094
3058
|
path: string;
|
|
3095
3059
|
content: string;
|
|
3096
|
-
}[][];
|
|
3097
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3060
|
+
}[][] | undefined;
|
|
3098
3061
|
};
|
|
3062
|
+
fingerprintId: string;
|
|
3063
|
+
userInputId: string;
|
|
3064
|
+
messages: {
|
|
3065
|
+
content: string | ({
|
|
3066
|
+
type: "text";
|
|
3067
|
+
text: string;
|
|
3068
|
+
cache_control?: {
|
|
3069
|
+
type: "ephemeral";
|
|
3070
|
+
} | undefined;
|
|
3071
|
+
} | {
|
|
3072
|
+
type: "tool_use";
|
|
3073
|
+
name: string;
|
|
3074
|
+
id: string;
|
|
3075
|
+
input: Record<string, any>;
|
|
3076
|
+
cache_control?: {
|
|
3077
|
+
type: "ephemeral";
|
|
3078
|
+
} | undefined;
|
|
3079
|
+
} | {
|
|
3080
|
+
content: string;
|
|
3081
|
+
type: "tool_result";
|
|
3082
|
+
tool_use_id: string;
|
|
3083
|
+
cache_control?: {
|
|
3084
|
+
type: "ephemeral";
|
|
3085
|
+
} | undefined;
|
|
3086
|
+
} | {
|
|
3087
|
+
type: "image";
|
|
3088
|
+
source: {
|
|
3089
|
+
type: "base64";
|
|
3090
|
+
media_type: "image/jpeg";
|
|
3091
|
+
data: string;
|
|
3092
|
+
};
|
|
3093
|
+
cache_control?: {
|
|
3094
|
+
type: "ephemeral";
|
|
3095
|
+
} | undefined;
|
|
3096
|
+
})[];
|
|
3097
|
+
role: "user" | "assistant";
|
|
3098
|
+
}[];
|
|
3099
3099
|
changesAlreadyApplied: {
|
|
3100
|
-
type: "patch" | "file";
|
|
3101
3100
|
path: string;
|
|
3102
3101
|
content: string;
|
|
3102
|
+
type: "file" | "patch";
|
|
3103
3103
|
}[];
|
|
3104
3104
|
costMode: "max" | "lite" | "normal";
|
|
3105
3105
|
authToken?: string | undefined;
|
|
@@ -3109,6 +3109,7 @@ 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;
|
|
3112
3113
|
fileContext: {
|
|
3113
3114
|
currentWorkingDirectory: string;
|
|
3114
3115
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3130,13 +3131,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3130
3131
|
homedir: string;
|
|
3131
3132
|
cpus: number;
|
|
3132
3133
|
};
|
|
3133
|
-
|
|
3134
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3135
|
+
fileVersions?: {
|
|
3134
3136
|
path: string;
|
|
3135
3137
|
content: string;
|
|
3136
|
-
}[][];
|
|
3137
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3138
|
+
}[][] | undefined;
|
|
3138
3139
|
};
|
|
3139
|
-
agentContext: string;
|
|
3140
3140
|
messageHistory: {
|
|
3141
3141
|
content: string | ({
|
|
3142
3142
|
type: "text";
|
|
@@ -3153,8 +3153,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3153
3153
|
type: "ephemeral";
|
|
3154
3154
|
} | undefined;
|
|
3155
3155
|
} | {
|
|
3156
|
-
type: "tool_result";
|
|
3157
3156
|
content: string;
|
|
3157
|
+
type: "tool_result";
|
|
3158
3158
|
tool_use_id: string;
|
|
3159
3159
|
cache_control?: {
|
|
3160
3160
|
type: "ephemeral";
|
|
@@ -3186,7 +3186,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3186
3186
|
requestId?: string | undefined;
|
|
3187
3187
|
} | {
|
|
3188
3188
|
type: "init";
|
|
3189
|
-
fingerprintId: string;
|
|
3190
3189
|
fileContext: {
|
|
3191
3190
|
currentWorkingDirectory: string;
|
|
3192
3191
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3208,12 +3207,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3208
3207
|
homedir: string;
|
|
3209
3208
|
cpus: number;
|
|
3210
3209
|
};
|
|
3211
|
-
|
|
3210
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3211
|
+
fileVersions?: {
|
|
3212
3212
|
path: string;
|
|
3213
3213
|
content: string;
|
|
3214
|
-
}[][];
|
|
3215
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3214
|
+
}[][] | undefined;
|
|
3216
3215
|
};
|
|
3216
|
+
fingerprintId: string;
|
|
3217
3217
|
authToken?: string | undefined;
|
|
3218
3218
|
} | {
|
|
3219
3219
|
type: "generate-commit-message";
|
|
@@ -3226,6 +3226,33 @@ 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
|
+
};
|
|
3229
3256
|
fingerprintId: string;
|
|
3230
3257
|
userInputId: string;
|
|
3231
3258
|
messages: {
|
|
@@ -3244,8 +3271,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3244
3271
|
type: "ephemeral";
|
|
3245
3272
|
} | undefined;
|
|
3246
3273
|
} | {
|
|
3247
|
-
type: "tool_result";
|
|
3248
3274
|
content: string;
|
|
3275
|
+
type: "tool_result";
|
|
3249
3276
|
tool_use_id: string;
|
|
3250
3277
|
cache_control?: {
|
|
3251
3278
|
type: "ephemeral";
|
|
@@ -3263,37 +3290,10 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3263
3290
|
})[];
|
|
3264
3291
|
role: "user" | "assistant";
|
|
3265
3292
|
}[];
|
|
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
|
-
fileVersions: {
|
|
3288
|
-
path: string;
|
|
3289
|
-
content: string;
|
|
3290
|
-
}[][];
|
|
3291
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3292
|
-
};
|
|
3293
3293
|
changesAlreadyApplied: {
|
|
3294
|
-
type: "patch" | "file";
|
|
3295
3294
|
path: string;
|
|
3296
3295
|
content: string;
|
|
3296
|
+
type: "file" | "patch";
|
|
3297
3297
|
}[];
|
|
3298
3298
|
authToken?: string | undefined;
|
|
3299
3299
|
costMode?: "max" | "lite" | "normal" | undefined;
|
|
@@ -3302,6 +3302,7 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3302
3302
|
fingerprintId: string;
|
|
3303
3303
|
promptId: string;
|
|
3304
3304
|
agentState: {
|
|
3305
|
+
agentContext: string;
|
|
3305
3306
|
fileContext: {
|
|
3306
3307
|
currentWorkingDirectory: string;
|
|
3307
3308
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3323,13 +3324,12 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3323
3324
|
homedir: string;
|
|
3324
3325
|
cpus: number;
|
|
3325
3326
|
};
|
|
3326
|
-
|
|
3327
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3328
|
+
fileVersions?: {
|
|
3327
3329
|
path: string;
|
|
3328
3330
|
content: string;
|
|
3329
|
-
}[][];
|
|
3330
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3331
|
+
}[][] | undefined;
|
|
3331
3332
|
};
|
|
3332
|
-
agentContext: string;
|
|
3333
3333
|
messageHistory: {
|
|
3334
3334
|
content: string | ({
|
|
3335
3335
|
type: "text";
|
|
@@ -3346,8 +3346,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3346
3346
|
type: "ephemeral";
|
|
3347
3347
|
} | undefined;
|
|
3348
3348
|
} | {
|
|
3349
|
-
type: "tool_result";
|
|
3350
3349
|
content: string;
|
|
3350
|
+
type: "tool_result";
|
|
3351
3351
|
tool_use_id: string;
|
|
3352
3352
|
cache_control?: {
|
|
3353
3353
|
type: "ephemeral";
|
|
@@ -3380,7 +3380,6 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3380
3380
|
requestId?: string | undefined;
|
|
3381
3381
|
} | {
|
|
3382
3382
|
type: "init";
|
|
3383
|
-
fingerprintId: string;
|
|
3384
3383
|
fileContext: {
|
|
3385
3384
|
currentWorkingDirectory: string;
|
|
3386
3385
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3402,12 +3401,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
3402
3401
|
homedir: string;
|
|
3403
3402
|
cpus: number;
|
|
3404
3403
|
};
|
|
3405
|
-
|
|
3404
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3405
|
+
fileVersions?: {
|
|
3406
3406
|
path: string;
|
|
3407
3407
|
content: string;
|
|
3408
|
-
}[][];
|
|
3409
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3408
|
+
}[][] | undefined;
|
|
3410
3409
|
};
|
|
3410
|
+
fingerprintId: string;
|
|
3411
3411
|
authToken?: string | undefined;
|
|
3412
3412
|
} | {
|
|
3413
3413
|
type: "generate-commit-message";
|
|
@@ -3459,26 +3459,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3459
3459
|
path: z.ZodString;
|
|
3460
3460
|
content: z.ZodString;
|
|
3461
3461
|
}, "strip", z.ZodTypeAny, {
|
|
3462
|
-
type: "patch" | "file";
|
|
3463
3462
|
path: string;
|
|
3464
3463
|
content: string;
|
|
3464
|
+
type: "file" | "patch";
|
|
3465
3465
|
}, {
|
|
3466
|
-
type: "patch" | "file";
|
|
3467
3466
|
path: string;
|
|
3468
3467
|
content: string;
|
|
3468
|
+
type: "file" | "patch";
|
|
3469
3469
|
}>, "many">;
|
|
3470
3470
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
3471
3471
|
type: z.ZodEnum<["patch", "file"]>;
|
|
3472
3472
|
path: z.ZodString;
|
|
3473
3473
|
content: z.ZodString;
|
|
3474
3474
|
}, "strip", z.ZodTypeAny, {
|
|
3475
|
-
type: "patch" | "file";
|
|
3476
3475
|
path: string;
|
|
3477
3476
|
content: string;
|
|
3477
|
+
type: "file" | "patch";
|
|
3478
3478
|
}, {
|
|
3479
|
-
type: "patch" | "file";
|
|
3480
3479
|
path: string;
|
|
3481
3480
|
content: string;
|
|
3481
|
+
type: "file" | "patch";
|
|
3482
3482
|
}>, "many">;
|
|
3483
3483
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
3484
3484
|
path: z.ZodString;
|
|
@@ -3502,15 +3502,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3502
3502
|
type: "response-complete";
|
|
3503
3503
|
userInputId: string;
|
|
3504
3504
|
changesAlreadyApplied: {
|
|
3505
|
-
type: "patch" | "file";
|
|
3506
3505
|
path: string;
|
|
3507
3506
|
content: string;
|
|
3507
|
+
type: "file" | "patch";
|
|
3508
3508
|
}[];
|
|
3509
3509
|
response: string;
|
|
3510
3510
|
changes: {
|
|
3511
|
-
type: "patch" | "file";
|
|
3512
3511
|
path: string;
|
|
3513
3512
|
content: string;
|
|
3513
|
+
type: "file" | "patch";
|
|
3514
3514
|
}[];
|
|
3515
3515
|
addedFileVersions: {
|
|
3516
3516
|
path: string;
|
|
@@ -3527,15 +3527,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3527
3527
|
type: "response-complete";
|
|
3528
3528
|
userInputId: string;
|
|
3529
3529
|
changesAlreadyApplied: {
|
|
3530
|
-
type: "patch" | "file";
|
|
3531
3530
|
path: string;
|
|
3532
3531
|
content: string;
|
|
3532
|
+
type: "file" | "patch";
|
|
3533
3533
|
}[];
|
|
3534
3534
|
response: string;
|
|
3535
3535
|
changes: {
|
|
3536
|
-
type: "patch" | "file";
|
|
3537
3536
|
path: string;
|
|
3538
3537
|
content: string;
|
|
3538
|
+
type: "file" | "patch";
|
|
3539
3539
|
}[];
|
|
3540
3540
|
addedFileVersions: {
|
|
3541
3541
|
path: string;
|
|
@@ -3599,7 +3599,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3599
3599
|
homedir: string;
|
|
3600
3600
|
cpus: number;
|
|
3601
3601
|
}>;
|
|
3602
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
3602
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
3603
3603
|
path: z.ZodString;
|
|
3604
3604
|
content: z.ZodString;
|
|
3605
3605
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3608,7 +3608,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3608
3608
|
}, {
|
|
3609
3609
|
path: string;
|
|
3610
3610
|
content: string;
|
|
3611
|
-
}>, "many">, "many"
|
|
3611
|
+
}>, "many">, "many">>;
|
|
3612
3612
|
}, "strip", z.ZodTypeAny, {
|
|
3613
3613
|
currentWorkingDirectory: string;
|
|
3614
3614
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3630,11 +3630,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3630
3630
|
homedir: string;
|
|
3631
3631
|
cpus: number;
|
|
3632
3632
|
};
|
|
3633
|
-
|
|
3633
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3634
|
+
fileVersions?: {
|
|
3634
3635
|
path: string;
|
|
3635
3636
|
content: string;
|
|
3636
|
-
}[][];
|
|
3637
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3637
|
+
}[][] | undefined;
|
|
3638
3638
|
}, {
|
|
3639
3639
|
currentWorkingDirectory: string;
|
|
3640
3640
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3656,11 +3656,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3656
3656
|
homedir: string;
|
|
3657
3657
|
cpus: number;
|
|
3658
3658
|
};
|
|
3659
|
-
|
|
3659
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3660
|
+
fileVersions?: {
|
|
3660
3661
|
path: string;
|
|
3661
3662
|
content: string;
|
|
3662
|
-
}[][];
|
|
3663
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3663
|
+
}[][] | undefined;
|
|
3664
3664
|
}>;
|
|
3665
3665
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
3666
3666
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -3726,15 +3726,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3726
3726
|
type: "ephemeral";
|
|
3727
3727
|
}>>;
|
|
3728
3728
|
}, "strip", z.ZodTypeAny, {
|
|
3729
|
-
type: "tool_result";
|
|
3730
3729
|
content: string;
|
|
3730
|
+
type: "tool_result";
|
|
3731
3731
|
tool_use_id: string;
|
|
3732
3732
|
cache_control?: {
|
|
3733
3733
|
type: "ephemeral";
|
|
3734
3734
|
} | undefined;
|
|
3735
3735
|
}, {
|
|
3736
|
-
type: "tool_result";
|
|
3737
3736
|
content: string;
|
|
3737
|
+
type: "tool_result";
|
|
3738
3738
|
tool_use_id: string;
|
|
3739
3739
|
cache_control?: {
|
|
3740
3740
|
type: "ephemeral";
|
|
@@ -3798,8 +3798,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3798
3798
|
type: "ephemeral";
|
|
3799
3799
|
} | undefined;
|
|
3800
3800
|
} | {
|
|
3801
|
-
type: "tool_result";
|
|
3802
3801
|
content: string;
|
|
3802
|
+
type: "tool_result";
|
|
3803
3803
|
tool_use_id: string;
|
|
3804
3804
|
cache_control?: {
|
|
3805
3805
|
type: "ephemeral";
|
|
@@ -3832,8 +3832,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3832
3832
|
type: "ephemeral";
|
|
3833
3833
|
} | undefined;
|
|
3834
3834
|
} | {
|
|
3835
|
-
type: "tool_result";
|
|
3836
3835
|
content: string;
|
|
3836
|
+
type: "tool_result";
|
|
3837
3837
|
tool_use_id: string;
|
|
3838
3838
|
cache_control?: {
|
|
3839
3839
|
type: "ephemeral";
|
|
@@ -3852,6 +3852,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3852
3852
|
role: "user" | "assistant";
|
|
3853
3853
|
}>, "many">;
|
|
3854
3854
|
}, "strip", z.ZodTypeAny, {
|
|
3855
|
+
agentContext: string;
|
|
3855
3856
|
fileContext: {
|
|
3856
3857
|
currentWorkingDirectory: string;
|
|
3857
3858
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3873,13 +3874,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3873
3874
|
homedir: string;
|
|
3874
3875
|
cpus: number;
|
|
3875
3876
|
};
|
|
3876
|
-
|
|
3877
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3878
|
+
fileVersions?: {
|
|
3877
3879
|
path: string;
|
|
3878
3880
|
content: string;
|
|
3879
|
-
}[][];
|
|
3880
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3881
|
+
}[][] | undefined;
|
|
3881
3882
|
};
|
|
3882
|
-
agentContext: string;
|
|
3883
3883
|
messageHistory: {
|
|
3884
3884
|
content: string | ({
|
|
3885
3885
|
type: "text";
|
|
@@ -3896,8 +3896,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3896
3896
|
type: "ephemeral";
|
|
3897
3897
|
} | undefined;
|
|
3898
3898
|
} | {
|
|
3899
|
-
type: "tool_result";
|
|
3900
3899
|
content: string;
|
|
3900
|
+
type: "tool_result";
|
|
3901
3901
|
tool_use_id: string;
|
|
3902
3902
|
cache_control?: {
|
|
3903
3903
|
type: "ephemeral";
|
|
@@ -3916,6 +3916,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3916
3916
|
role: "user" | "assistant";
|
|
3917
3917
|
}[];
|
|
3918
3918
|
}, {
|
|
3919
|
+
agentContext: string;
|
|
3919
3920
|
fileContext: {
|
|
3920
3921
|
currentWorkingDirectory: string;
|
|
3921
3922
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -3937,13 +3938,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3937
3938
|
homedir: string;
|
|
3938
3939
|
cpus: number;
|
|
3939
3940
|
};
|
|
3940
|
-
|
|
3941
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3942
|
+
fileVersions?: {
|
|
3941
3943
|
path: string;
|
|
3942
3944
|
content: string;
|
|
3943
|
-
}[][];
|
|
3944
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
3945
|
+
}[][] | undefined;
|
|
3945
3946
|
};
|
|
3946
|
-
agentContext: string;
|
|
3947
3947
|
messageHistory: {
|
|
3948
3948
|
content: string | ({
|
|
3949
3949
|
type: "text";
|
|
@@ -3960,8 +3960,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
3960
3960
|
type: "ephemeral";
|
|
3961
3961
|
} | undefined;
|
|
3962
3962
|
} | {
|
|
3963
|
-
type: "tool_result";
|
|
3964
3963
|
content: string;
|
|
3964
|
+
type: "tool_result";
|
|
3965
3965
|
tool_use_id: string;
|
|
3966
3966
|
cache_control?: {
|
|
3967
3967
|
type: "ephemeral";
|
|
@@ -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
|
-
id: string;
|
|
3990
3989
|
parameters: Record<string, string>;
|
|
3990
|
+
id: string;
|
|
3991
3991
|
}, {
|
|
3992
3992
|
name: string;
|
|
3993
|
-
id: string;
|
|
3994
3993
|
parameters: Record<string, string>;
|
|
3994
|
+
id: string;
|
|
3995
3995
|
}>, "many">;
|
|
3996
3996
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
3997
3997
|
name: z.ZodString;
|
|
@@ -4010,6 +4010,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4010
4010
|
type: "prompt-response";
|
|
4011
4011
|
promptId: string;
|
|
4012
4012
|
agentState: {
|
|
4013
|
+
agentContext: string;
|
|
4013
4014
|
fileContext: {
|
|
4014
4015
|
currentWorkingDirectory: string;
|
|
4015
4016
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4031,13 +4032,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4031
4032
|
homedir: string;
|
|
4032
4033
|
cpus: number;
|
|
4033
4034
|
};
|
|
4034
|
-
|
|
4035
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4036
|
+
fileVersions?: {
|
|
4035
4037
|
path: string;
|
|
4036
4038
|
content: string;
|
|
4037
|
-
}[][];
|
|
4038
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4039
|
+
}[][] | undefined;
|
|
4039
4040
|
};
|
|
4040
|
-
agentContext: string;
|
|
4041
4041
|
messageHistory: {
|
|
4042
4042
|
content: string | ({
|
|
4043
4043
|
type: "text";
|
|
@@ -4054,8 +4054,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4054
4054
|
type: "ephemeral";
|
|
4055
4055
|
} | undefined;
|
|
4056
4056
|
} | {
|
|
4057
|
-
type: "tool_result";
|
|
4058
4057
|
content: string;
|
|
4058
|
+
type: "tool_result";
|
|
4059
4059
|
tool_use_id: string;
|
|
4060
4060
|
cache_control?: {
|
|
4061
4061
|
type: "ephemeral";
|
|
@@ -4081,13 +4081,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4081
4081
|
}[];
|
|
4082
4082
|
toolCalls: {
|
|
4083
4083
|
name: string;
|
|
4084
|
-
id: string;
|
|
4085
4084
|
parameters: Record<string, string>;
|
|
4085
|
+
id: string;
|
|
4086
4086
|
}[];
|
|
4087
4087
|
}, {
|
|
4088
4088
|
type: "prompt-response";
|
|
4089
4089
|
promptId: string;
|
|
4090
4090
|
agentState: {
|
|
4091
|
+
agentContext: string;
|
|
4091
4092
|
fileContext: {
|
|
4092
4093
|
currentWorkingDirectory: string;
|
|
4093
4094
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4109,13 +4110,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4109
4110
|
homedir: string;
|
|
4110
4111
|
cpus: number;
|
|
4111
4112
|
};
|
|
4112
|
-
|
|
4113
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4114
|
+
fileVersions?: {
|
|
4113
4115
|
path: string;
|
|
4114
4116
|
content: string;
|
|
4115
|
-
}[][];
|
|
4116
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4117
|
+
}[][] | undefined;
|
|
4117
4118
|
};
|
|
4118
|
-
agentContext: string;
|
|
4119
4119
|
messageHistory: {
|
|
4120
4120
|
content: string | ({
|
|
4121
4121
|
type: "text";
|
|
@@ -4132,8 +4132,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4132
4132
|
type: "ephemeral";
|
|
4133
4133
|
} | undefined;
|
|
4134
4134
|
} | {
|
|
4135
|
-
type: "tool_result";
|
|
4136
4135
|
content: string;
|
|
4136
|
+
type: "tool_result";
|
|
4137
4137
|
tool_use_id: string;
|
|
4138
4138
|
cache_control?: {
|
|
4139
4139
|
type: "ephemeral";
|
|
@@ -4159,8 +4159,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4159
4159
|
}[];
|
|
4160
4160
|
toolCalls: {
|
|
4161
4161
|
name: string;
|
|
4162
|
-
id: string;
|
|
4163
4162
|
parameters: Record<string, string>;
|
|
4163
|
+
id: string;
|
|
4164
4164
|
}[];
|
|
4165
4165
|
}>, z.ZodObject<{
|
|
4166
4166
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -4196,26 +4196,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4196
4196
|
path: z.ZodString;
|
|
4197
4197
|
content: z.ZodString;
|
|
4198
4198
|
}, "strip", z.ZodTypeAny, {
|
|
4199
|
-
type: "patch" | "file";
|
|
4200
4199
|
path: string;
|
|
4201
4200
|
content: string;
|
|
4201
|
+
type: "file" | "patch";
|
|
4202
4202
|
}, {
|
|
4203
|
-
type: "patch" | "file";
|
|
4204
4203
|
path: string;
|
|
4205
4204
|
content: string;
|
|
4205
|
+
type: "file" | "patch";
|
|
4206
4206
|
}>, "many">;
|
|
4207
4207
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4208
4208
|
type: z.ZodEnum<["patch", "file"]>;
|
|
4209
4209
|
path: z.ZodString;
|
|
4210
4210
|
content: z.ZodString;
|
|
4211
4211
|
}, "strip", z.ZodTypeAny, {
|
|
4212
|
-
type: "patch" | "file";
|
|
4213
4212
|
path: string;
|
|
4214
4213
|
content: string;
|
|
4214
|
+
type: "file" | "patch";
|
|
4215
4215
|
}, {
|
|
4216
|
-
type: "patch" | "file";
|
|
4217
4216
|
path: string;
|
|
4218
4217
|
content: string;
|
|
4218
|
+
type: "file" | "patch";
|
|
4219
4219
|
}>, "many">;
|
|
4220
4220
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4221
4221
|
path: z.ZodString;
|
|
@@ -4230,22 +4230,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4230
4230
|
resetFileVersions: z.ZodBoolean;
|
|
4231
4231
|
}, "strip", z.ZodTypeAny, {
|
|
4232
4232
|
type: "tool-call";
|
|
4233
|
-
userInputId: string;
|
|
4234
4233
|
data: {
|
|
4235
4234
|
name: string;
|
|
4236
4235
|
id: string;
|
|
4237
4236
|
input: Record<string, any>;
|
|
4238
4237
|
};
|
|
4238
|
+
userInputId: string;
|
|
4239
4239
|
changesAlreadyApplied: {
|
|
4240
|
-
type: "patch" | "file";
|
|
4241
4240
|
path: string;
|
|
4242
4241
|
content: string;
|
|
4242
|
+
type: "file" | "patch";
|
|
4243
4243
|
}[];
|
|
4244
4244
|
response: string;
|
|
4245
4245
|
changes: {
|
|
4246
|
-
type: "patch" | "file";
|
|
4247
4246
|
path: string;
|
|
4248
4247
|
content: string;
|
|
4248
|
+
type: "file" | "patch";
|
|
4249
4249
|
}[];
|
|
4250
4250
|
addedFileVersions: {
|
|
4251
4251
|
path: string;
|
|
@@ -4254,22 +4254,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4254
4254
|
resetFileVersions: boolean;
|
|
4255
4255
|
}, {
|
|
4256
4256
|
type: "tool-call";
|
|
4257
|
-
userInputId: string;
|
|
4258
4257
|
data: {
|
|
4259
4258
|
name: string;
|
|
4260
4259
|
id: string;
|
|
4261
4260
|
input: Record<string, any>;
|
|
4262
4261
|
};
|
|
4262
|
+
userInputId: string;
|
|
4263
4263
|
changesAlreadyApplied: {
|
|
4264
|
-
type: "patch" | "file";
|
|
4265
4264
|
path: string;
|
|
4266
4265
|
content: string;
|
|
4266
|
+
type: "file" | "patch";
|
|
4267
4267
|
}[];
|
|
4268
4268
|
response: string;
|
|
4269
4269
|
changes: {
|
|
4270
|
-
type: "patch" | "file";
|
|
4271
4270
|
path: string;
|
|
4272
4271
|
content: string;
|
|
4272
|
+
type: "file" | "patch";
|
|
4273
4273
|
}[];
|
|
4274
4274
|
addedFileVersions: {
|
|
4275
4275
|
path: string;
|
|
@@ -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
|
-
userInputId: string;
|
|
4286
4285
|
result: string;
|
|
4286
|
+
userInputId: string;
|
|
4287
4287
|
}, {
|
|
4288
4288
|
type: "terminal-command-result";
|
|
4289
|
-
userInputId: string;
|
|
4290
4289
|
result: string;
|
|
4290
|
+
userInputId: string;
|
|
4291
4291
|
}>, z.ZodObject<{
|
|
4292
4292
|
type: z.ZodLiteral<"npm-version-status">;
|
|
4293
4293
|
isUpToDate: z.ZodBoolean;
|
|
@@ -4366,11 +4366,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4366
4366
|
type: z.ZodLiteral<"action-error">;
|
|
4367
4367
|
message: z.ZodString;
|
|
4368
4368
|
}, "strip", z.ZodTypeAny, {
|
|
4369
|
-
type: "action-error";
|
|
4370
4369
|
message: string;
|
|
4371
|
-
}, {
|
|
4372
4370
|
type: "action-error";
|
|
4371
|
+
}, {
|
|
4373
4372
|
message: string;
|
|
4373
|
+
type: "action-error";
|
|
4374
4374
|
}>, z.ZodObject<{
|
|
4375
4375
|
type: z.ZodLiteral<"commit-message-response">;
|
|
4376
4376
|
commitMessage: z.ZodString;
|
|
@@ -4403,15 +4403,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4403
4403
|
type: "response-complete";
|
|
4404
4404
|
userInputId: string;
|
|
4405
4405
|
changesAlreadyApplied: {
|
|
4406
|
-
type: "patch" | "file";
|
|
4407
4406
|
path: string;
|
|
4408
4407
|
content: string;
|
|
4408
|
+
type: "file" | "patch";
|
|
4409
4409
|
}[];
|
|
4410
4410
|
response: string;
|
|
4411
4411
|
changes: {
|
|
4412
|
-
type: "patch" | "file";
|
|
4413
4412
|
path: string;
|
|
4414
4413
|
content: string;
|
|
4414
|
+
type: "file" | "patch";
|
|
4415
4415
|
}[];
|
|
4416
4416
|
addedFileVersions: {
|
|
4417
4417
|
path: string;
|
|
@@ -4432,6 +4432,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4432
4432
|
type: "prompt-response";
|
|
4433
4433
|
promptId: string;
|
|
4434
4434
|
agentState: {
|
|
4435
|
+
agentContext: string;
|
|
4435
4436
|
fileContext: {
|
|
4436
4437
|
currentWorkingDirectory: string;
|
|
4437
4438
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4453,13 +4454,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4453
4454
|
homedir: string;
|
|
4454
4455
|
cpus: number;
|
|
4455
4456
|
};
|
|
4456
|
-
|
|
4457
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4458
|
+
fileVersions?: {
|
|
4457
4459
|
path: string;
|
|
4458
4460
|
content: string;
|
|
4459
|
-
}[][];
|
|
4460
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4461
|
+
}[][] | undefined;
|
|
4461
4462
|
};
|
|
4462
|
-
agentContext: string;
|
|
4463
4463
|
messageHistory: {
|
|
4464
4464
|
content: string | ({
|
|
4465
4465
|
type: "text";
|
|
@@ -4476,8 +4476,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4476
4476
|
type: "ephemeral";
|
|
4477
4477
|
} | undefined;
|
|
4478
4478
|
} | {
|
|
4479
|
-
type: "tool_result";
|
|
4480
4479
|
content: string;
|
|
4480
|
+
type: "tool_result";
|
|
4481
4481
|
tool_use_id: string;
|
|
4482
4482
|
cache_control?: {
|
|
4483
4483
|
type: "ephemeral";
|
|
@@ -4503,8 +4503,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4503
4503
|
}[];
|
|
4504
4504
|
toolCalls: {
|
|
4505
4505
|
name: string;
|
|
4506
|
-
id: string;
|
|
4507
4506
|
parameters: Record<string, string>;
|
|
4507
|
+
id: string;
|
|
4508
4508
|
}[];
|
|
4509
4509
|
} | {
|
|
4510
4510
|
type: "response-chunk";
|
|
@@ -4516,22 +4516,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4516
4516
|
filePaths: string[];
|
|
4517
4517
|
} | {
|
|
4518
4518
|
type: "tool-call";
|
|
4519
|
-
userInputId: string;
|
|
4520
4519
|
data: {
|
|
4521
4520
|
name: string;
|
|
4522
4521
|
id: string;
|
|
4523
4522
|
input: Record<string, any>;
|
|
4524
4523
|
};
|
|
4524
|
+
userInputId: string;
|
|
4525
4525
|
changesAlreadyApplied: {
|
|
4526
|
-
type: "patch" | "file";
|
|
4527
4526
|
path: string;
|
|
4528
4527
|
content: string;
|
|
4528
|
+
type: "file" | "patch";
|
|
4529
4529
|
}[];
|
|
4530
4530
|
response: string;
|
|
4531
4531
|
changes: {
|
|
4532
|
-
type: "patch" | "file";
|
|
4533
4532
|
path: string;
|
|
4534
4533
|
content: string;
|
|
4534
|
+
type: "file" | "patch";
|
|
4535
4535
|
}[];
|
|
4536
4536
|
addedFileVersions: {
|
|
4537
4537
|
path: string;
|
|
@@ -4540,15 +4540,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4540
4540
|
resetFileVersions: boolean;
|
|
4541
4541
|
} | {
|
|
4542
4542
|
type: "terminal-command-result";
|
|
4543
|
-
userInputId: string;
|
|
4544
4543
|
result: string;
|
|
4544
|
+
userInputId: string;
|
|
4545
4545
|
} | {
|
|
4546
4546
|
type: "npm-version-status";
|
|
4547
4547
|
isUpToDate: boolean;
|
|
4548
4548
|
latestVersion: string;
|
|
4549
4549
|
} | {
|
|
4550
|
-
type: "action-error";
|
|
4551
4550
|
message: string;
|
|
4551
|
+
type: "action-error";
|
|
4552
4552
|
} | {
|
|
4553
4553
|
type: "commit-message-response";
|
|
4554
4554
|
commitMessage: string;
|
|
@@ -4575,15 +4575,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4575
4575
|
type: "response-complete";
|
|
4576
4576
|
userInputId: string;
|
|
4577
4577
|
changesAlreadyApplied: {
|
|
4578
|
-
type: "patch" | "file";
|
|
4579
4578
|
path: string;
|
|
4580
4579
|
content: string;
|
|
4580
|
+
type: "file" | "patch";
|
|
4581
4581
|
}[];
|
|
4582
4582
|
response: string;
|
|
4583
4583
|
changes: {
|
|
4584
|
-
type: "patch" | "file";
|
|
4585
4584
|
path: string;
|
|
4586
4585
|
content: string;
|
|
4586
|
+
type: "file" | "patch";
|
|
4587
4587
|
}[];
|
|
4588
4588
|
addedFileVersions: {
|
|
4589
4589
|
path: string;
|
|
@@ -4604,6 +4604,7 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4604
4604
|
type: "prompt-response";
|
|
4605
4605
|
promptId: string;
|
|
4606
4606
|
agentState: {
|
|
4607
|
+
agentContext: string;
|
|
4607
4608
|
fileContext: {
|
|
4608
4609
|
currentWorkingDirectory: string;
|
|
4609
4610
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4625,13 +4626,12 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4625
4626
|
homedir: string;
|
|
4626
4627
|
cpus: number;
|
|
4627
4628
|
};
|
|
4628
|
-
|
|
4629
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4630
|
+
fileVersions?: {
|
|
4629
4631
|
path: string;
|
|
4630
4632
|
content: string;
|
|
4631
|
-
}[][];
|
|
4632
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4633
|
+
}[][] | undefined;
|
|
4633
4634
|
};
|
|
4634
|
-
agentContext: string;
|
|
4635
4635
|
messageHistory: {
|
|
4636
4636
|
content: string | ({
|
|
4637
4637
|
type: "text";
|
|
@@ -4648,8 +4648,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4648
4648
|
type: "ephemeral";
|
|
4649
4649
|
} | undefined;
|
|
4650
4650
|
} | {
|
|
4651
|
-
type: "tool_result";
|
|
4652
4651
|
content: string;
|
|
4652
|
+
type: "tool_result";
|
|
4653
4653
|
tool_use_id: string;
|
|
4654
4654
|
cache_control?: {
|
|
4655
4655
|
type: "ephemeral";
|
|
@@ -4675,8 +4675,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4675
4675
|
}[];
|
|
4676
4676
|
toolCalls: {
|
|
4677
4677
|
name: string;
|
|
4678
|
-
id: string;
|
|
4679
4678
|
parameters: Record<string, string>;
|
|
4679
|
+
id: string;
|
|
4680
4680
|
}[];
|
|
4681
4681
|
} | {
|
|
4682
4682
|
type: "response-chunk";
|
|
@@ -4688,22 +4688,22 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4688
4688
|
filePaths: string[];
|
|
4689
4689
|
} | {
|
|
4690
4690
|
type: "tool-call";
|
|
4691
|
-
userInputId: string;
|
|
4692
4691
|
data: {
|
|
4693
4692
|
name: string;
|
|
4694
4693
|
id: string;
|
|
4695
4694
|
input: Record<string, any>;
|
|
4696
4695
|
};
|
|
4696
|
+
userInputId: string;
|
|
4697
4697
|
changesAlreadyApplied: {
|
|
4698
|
-
type: "patch" | "file";
|
|
4699
4698
|
path: string;
|
|
4700
4699
|
content: string;
|
|
4700
|
+
type: "file" | "patch";
|
|
4701
4701
|
}[];
|
|
4702
4702
|
response: string;
|
|
4703
4703
|
changes: {
|
|
4704
|
-
type: "patch" | "file";
|
|
4705
4704
|
path: string;
|
|
4706
4705
|
content: string;
|
|
4706
|
+
type: "file" | "patch";
|
|
4707
4707
|
}[];
|
|
4708
4708
|
addedFileVersions: {
|
|
4709
4709
|
path: string;
|
|
@@ -4712,15 +4712,15 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
4712
4712
|
resetFileVersions: boolean;
|
|
4713
4713
|
} | {
|
|
4714
4714
|
type: "terminal-command-result";
|
|
4715
|
-
userInputId: string;
|
|
4716
4715
|
result: string;
|
|
4716
|
+
userInputId: string;
|
|
4717
4717
|
} | {
|
|
4718
4718
|
type: "npm-version-status";
|
|
4719
4719
|
isUpToDate: boolean;
|
|
4720
4720
|
latestVersion: string;
|
|
4721
4721
|
} | {
|
|
4722
|
-
type: "action-error";
|
|
4723
4722
|
message: string;
|
|
4723
|
+
type: "action-error";
|
|
4724
4724
|
} | {
|
|
4725
4725
|
type: "commit-message-response";
|
|
4726
4726
|
commitMessage: string;
|
|
@@ -4765,26 +4765,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4765
4765
|
path: z.ZodString;
|
|
4766
4766
|
content: z.ZodString;
|
|
4767
4767
|
}, "strip", z.ZodTypeAny, {
|
|
4768
|
-
type: "patch" | "file";
|
|
4769
4768
|
path: string;
|
|
4770
4769
|
content: string;
|
|
4770
|
+
type: "file" | "patch";
|
|
4771
4771
|
}, {
|
|
4772
|
-
type: "patch" | "file";
|
|
4773
4772
|
path: string;
|
|
4774
4773
|
content: string;
|
|
4774
|
+
type: "file" | "patch";
|
|
4775
4775
|
}>, "many">;
|
|
4776
4776
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
4777
4777
|
type: z.ZodEnum<["patch", "file"]>;
|
|
4778
4778
|
path: z.ZodString;
|
|
4779
4779
|
content: z.ZodString;
|
|
4780
4780
|
}, "strip", z.ZodTypeAny, {
|
|
4781
|
-
type: "patch" | "file";
|
|
4782
4781
|
path: string;
|
|
4783
4782
|
content: string;
|
|
4783
|
+
type: "file" | "patch";
|
|
4784
4784
|
}, {
|
|
4785
|
-
type: "patch" | "file";
|
|
4786
4785
|
path: string;
|
|
4787
4786
|
content: string;
|
|
4787
|
+
type: "file" | "patch";
|
|
4788
4788
|
}>, "many">;
|
|
4789
4789
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
4790
4790
|
path: z.ZodString;
|
|
@@ -4808,15 +4808,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4808
4808
|
type: "response-complete";
|
|
4809
4809
|
userInputId: string;
|
|
4810
4810
|
changesAlreadyApplied: {
|
|
4811
|
-
type: "patch" | "file";
|
|
4812
4811
|
path: string;
|
|
4813
4812
|
content: string;
|
|
4813
|
+
type: "file" | "patch";
|
|
4814
4814
|
}[];
|
|
4815
4815
|
response: string;
|
|
4816
4816
|
changes: {
|
|
4817
|
-
type: "patch" | "file";
|
|
4818
4817
|
path: string;
|
|
4819
4818
|
content: string;
|
|
4819
|
+
type: "file" | "patch";
|
|
4820
4820
|
}[];
|
|
4821
4821
|
addedFileVersions: {
|
|
4822
4822
|
path: string;
|
|
@@ -4833,15 +4833,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4833
4833
|
type: "response-complete";
|
|
4834
4834
|
userInputId: string;
|
|
4835
4835
|
changesAlreadyApplied: {
|
|
4836
|
-
type: "patch" | "file";
|
|
4837
4836
|
path: string;
|
|
4838
4837
|
content: string;
|
|
4838
|
+
type: "file" | "patch";
|
|
4839
4839
|
}[];
|
|
4840
4840
|
response: string;
|
|
4841
4841
|
changes: {
|
|
4842
|
-
type: "patch" | "file";
|
|
4843
4842
|
path: string;
|
|
4844
4843
|
content: string;
|
|
4844
|
+
type: "file" | "patch";
|
|
4845
4845
|
}[];
|
|
4846
4846
|
addedFileVersions: {
|
|
4847
4847
|
path: string;
|
|
@@ -4905,7 +4905,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4905
4905
|
homedir: string;
|
|
4906
4906
|
cpus: number;
|
|
4907
4907
|
}>;
|
|
4908
|
-
fileVersions: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
4908
|
+
fileVersions: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
4909
4909
|
path: z.ZodString;
|
|
4910
4910
|
content: z.ZodString;
|
|
4911
4911
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4914,7 +4914,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4914
4914
|
}, {
|
|
4915
4915
|
path: string;
|
|
4916
4916
|
content: string;
|
|
4917
|
-
}>, "many">, "many"
|
|
4917
|
+
}>, "many">, "many">>;
|
|
4918
4918
|
}, "strip", z.ZodTypeAny, {
|
|
4919
4919
|
currentWorkingDirectory: string;
|
|
4920
4920
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4936,11 +4936,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4936
4936
|
homedir: string;
|
|
4937
4937
|
cpus: number;
|
|
4938
4938
|
};
|
|
4939
|
-
|
|
4939
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4940
|
+
fileVersions?: {
|
|
4940
4941
|
path: string;
|
|
4941
4942
|
content: string;
|
|
4942
|
-
}[][];
|
|
4943
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4943
|
+
}[][] | undefined;
|
|
4944
4944
|
}, {
|
|
4945
4945
|
currentWorkingDirectory: string;
|
|
4946
4946
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -4962,11 +4962,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
4962
4962
|
homedir: string;
|
|
4963
4963
|
cpus: number;
|
|
4964
4964
|
};
|
|
4965
|
-
|
|
4965
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4966
|
+
fileVersions?: {
|
|
4966
4967
|
path: string;
|
|
4967
4968
|
content: string;
|
|
4968
|
-
}[][];
|
|
4969
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
4969
|
+
}[][] | undefined;
|
|
4970
4970
|
}>;
|
|
4971
4971
|
messageHistory: z.ZodArray<z.ZodObject<{
|
|
4972
4972
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"assistant">]>;
|
|
@@ -5032,15 +5032,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5032
5032
|
type: "ephemeral";
|
|
5033
5033
|
}>>;
|
|
5034
5034
|
}, "strip", z.ZodTypeAny, {
|
|
5035
|
-
type: "tool_result";
|
|
5036
5035
|
content: string;
|
|
5036
|
+
type: "tool_result";
|
|
5037
5037
|
tool_use_id: string;
|
|
5038
5038
|
cache_control?: {
|
|
5039
5039
|
type: "ephemeral";
|
|
5040
5040
|
} | undefined;
|
|
5041
5041
|
}, {
|
|
5042
|
-
type: "tool_result";
|
|
5043
5042
|
content: string;
|
|
5043
|
+
type: "tool_result";
|
|
5044
5044
|
tool_use_id: string;
|
|
5045
5045
|
cache_control?: {
|
|
5046
5046
|
type: "ephemeral";
|
|
@@ -5104,8 +5104,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5104
5104
|
type: "ephemeral";
|
|
5105
5105
|
} | undefined;
|
|
5106
5106
|
} | {
|
|
5107
|
-
type: "tool_result";
|
|
5108
5107
|
content: string;
|
|
5108
|
+
type: "tool_result";
|
|
5109
5109
|
tool_use_id: string;
|
|
5110
5110
|
cache_control?: {
|
|
5111
5111
|
type: "ephemeral";
|
|
@@ -5138,8 +5138,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5138
5138
|
type: "ephemeral";
|
|
5139
5139
|
} | undefined;
|
|
5140
5140
|
} | {
|
|
5141
|
-
type: "tool_result";
|
|
5142
5141
|
content: string;
|
|
5142
|
+
type: "tool_result";
|
|
5143
5143
|
tool_use_id: string;
|
|
5144
5144
|
cache_control?: {
|
|
5145
5145
|
type: "ephemeral";
|
|
@@ -5158,6 +5158,7 @@ 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;
|
|
5161
5162
|
fileContext: {
|
|
5162
5163
|
currentWorkingDirectory: string;
|
|
5163
5164
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5179,13 +5180,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5179
5180
|
homedir: string;
|
|
5180
5181
|
cpus: number;
|
|
5181
5182
|
};
|
|
5182
|
-
|
|
5183
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5184
|
+
fileVersions?: {
|
|
5183
5185
|
path: string;
|
|
5184
5186
|
content: string;
|
|
5185
|
-
}[][];
|
|
5186
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5187
|
+
}[][] | undefined;
|
|
5187
5188
|
};
|
|
5188
|
-
agentContext: string;
|
|
5189
5189
|
messageHistory: {
|
|
5190
5190
|
content: string | ({
|
|
5191
5191
|
type: "text";
|
|
@@ -5202,8 +5202,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5202
5202
|
type: "ephemeral";
|
|
5203
5203
|
} | undefined;
|
|
5204
5204
|
} | {
|
|
5205
|
-
type: "tool_result";
|
|
5206
5205
|
content: string;
|
|
5206
|
+
type: "tool_result";
|
|
5207
5207
|
tool_use_id: string;
|
|
5208
5208
|
cache_control?: {
|
|
5209
5209
|
type: "ephemeral";
|
|
@@ -5222,6 +5222,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5222
5222
|
role: "user" | "assistant";
|
|
5223
5223
|
}[];
|
|
5224
5224
|
}, {
|
|
5225
|
+
agentContext: string;
|
|
5225
5226
|
fileContext: {
|
|
5226
5227
|
currentWorkingDirectory: string;
|
|
5227
5228
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5243,13 +5244,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5243
5244
|
homedir: string;
|
|
5244
5245
|
cpus: number;
|
|
5245
5246
|
};
|
|
5246
|
-
|
|
5247
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5248
|
+
fileVersions?: {
|
|
5247
5249
|
path: string;
|
|
5248
5250
|
content: string;
|
|
5249
|
-
}[][];
|
|
5250
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5251
|
+
}[][] | undefined;
|
|
5251
5252
|
};
|
|
5252
|
-
agentContext: string;
|
|
5253
5253
|
messageHistory: {
|
|
5254
5254
|
content: string | ({
|
|
5255
5255
|
type: "text";
|
|
@@ -5266,8 +5266,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5266
5266
|
type: "ephemeral";
|
|
5267
5267
|
} | undefined;
|
|
5268
5268
|
} | {
|
|
5269
|
-
type: "tool_result";
|
|
5270
5269
|
content: string;
|
|
5270
|
+
type: "tool_result";
|
|
5271
5271
|
tool_use_id: string;
|
|
5272
5272
|
cache_control?: {
|
|
5273
5273
|
type: "ephemeral";
|
|
@@ -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
|
-
id: string;
|
|
5296
5295
|
parameters: Record<string, string>;
|
|
5296
|
+
id: string;
|
|
5297
5297
|
}, {
|
|
5298
5298
|
name: string;
|
|
5299
|
-
id: string;
|
|
5300
5299
|
parameters: Record<string, string>;
|
|
5300
|
+
id: string;
|
|
5301
5301
|
}>, "many">;
|
|
5302
5302
|
toolResults: z.ZodArray<z.ZodObject<{
|
|
5303
5303
|
name: z.ZodString;
|
|
@@ -5316,6 +5316,7 @@ 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;
|
|
5319
5320
|
fileContext: {
|
|
5320
5321
|
currentWorkingDirectory: string;
|
|
5321
5322
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5337,13 +5338,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5337
5338
|
homedir: string;
|
|
5338
5339
|
cpus: number;
|
|
5339
5340
|
};
|
|
5340
|
-
|
|
5341
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5342
|
+
fileVersions?: {
|
|
5341
5343
|
path: string;
|
|
5342
5344
|
content: string;
|
|
5343
|
-
}[][];
|
|
5344
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5345
|
+
}[][] | undefined;
|
|
5345
5346
|
};
|
|
5346
|
-
agentContext: string;
|
|
5347
5347
|
messageHistory: {
|
|
5348
5348
|
content: string | ({
|
|
5349
5349
|
type: "text";
|
|
@@ -5360,8 +5360,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5360
5360
|
type: "ephemeral";
|
|
5361
5361
|
} | undefined;
|
|
5362
5362
|
} | {
|
|
5363
|
-
type: "tool_result";
|
|
5364
5363
|
content: string;
|
|
5364
|
+
type: "tool_result";
|
|
5365
5365
|
tool_use_id: string;
|
|
5366
5366
|
cache_control?: {
|
|
5367
5367
|
type: "ephemeral";
|
|
@@ -5387,13 +5387,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5387
5387
|
}[];
|
|
5388
5388
|
toolCalls: {
|
|
5389
5389
|
name: string;
|
|
5390
|
-
id: string;
|
|
5391
5390
|
parameters: Record<string, string>;
|
|
5391
|
+
id: string;
|
|
5392
5392
|
}[];
|
|
5393
5393
|
}, {
|
|
5394
5394
|
type: "prompt-response";
|
|
5395
5395
|
promptId: string;
|
|
5396
5396
|
agentState: {
|
|
5397
|
+
agentContext: string;
|
|
5397
5398
|
fileContext: {
|
|
5398
5399
|
currentWorkingDirectory: string;
|
|
5399
5400
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5415,13 +5416,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5415
5416
|
homedir: string;
|
|
5416
5417
|
cpus: number;
|
|
5417
5418
|
};
|
|
5418
|
-
|
|
5419
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5420
|
+
fileVersions?: {
|
|
5419
5421
|
path: string;
|
|
5420
5422
|
content: string;
|
|
5421
|
-
}[][];
|
|
5422
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5423
|
+
}[][] | undefined;
|
|
5423
5424
|
};
|
|
5424
|
-
agentContext: string;
|
|
5425
5425
|
messageHistory: {
|
|
5426
5426
|
content: string | ({
|
|
5427
5427
|
type: "text";
|
|
@@ -5438,8 +5438,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5438
5438
|
type: "ephemeral";
|
|
5439
5439
|
} | undefined;
|
|
5440
5440
|
} | {
|
|
5441
|
-
type: "tool_result";
|
|
5442
5441
|
content: string;
|
|
5442
|
+
type: "tool_result";
|
|
5443
5443
|
tool_use_id: string;
|
|
5444
5444
|
cache_control?: {
|
|
5445
5445
|
type: "ephemeral";
|
|
@@ -5465,8 +5465,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5465
5465
|
}[];
|
|
5466
5466
|
toolCalls: {
|
|
5467
5467
|
name: string;
|
|
5468
|
-
id: string;
|
|
5469
5468
|
parameters: Record<string, string>;
|
|
5469
|
+
id: string;
|
|
5470
5470
|
}[];
|
|
5471
5471
|
}>, z.ZodObject<{
|
|
5472
5472
|
type: z.ZodLiteral<"read-files">;
|
|
@@ -5502,26 +5502,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5502
5502
|
path: z.ZodString;
|
|
5503
5503
|
content: z.ZodString;
|
|
5504
5504
|
}, "strip", z.ZodTypeAny, {
|
|
5505
|
-
type: "patch" | "file";
|
|
5506
5505
|
path: string;
|
|
5507
5506
|
content: string;
|
|
5507
|
+
type: "file" | "patch";
|
|
5508
5508
|
}, {
|
|
5509
|
-
type: "patch" | "file";
|
|
5510
5509
|
path: string;
|
|
5511
5510
|
content: string;
|
|
5511
|
+
type: "file" | "patch";
|
|
5512
5512
|
}>, "many">;
|
|
5513
5513
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
5514
5514
|
type: z.ZodEnum<["patch", "file"]>;
|
|
5515
5515
|
path: z.ZodString;
|
|
5516
5516
|
content: z.ZodString;
|
|
5517
5517
|
}, "strip", z.ZodTypeAny, {
|
|
5518
|
-
type: "patch" | "file";
|
|
5519
5518
|
path: string;
|
|
5520
5519
|
content: string;
|
|
5520
|
+
type: "file" | "patch";
|
|
5521
5521
|
}, {
|
|
5522
|
-
type: "patch" | "file";
|
|
5523
5522
|
path: string;
|
|
5524
5523
|
content: string;
|
|
5524
|
+
type: "file" | "patch";
|
|
5525
5525
|
}>, "many">;
|
|
5526
5526
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
5527
5527
|
path: z.ZodString;
|
|
@@ -5536,22 +5536,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5536
5536
|
resetFileVersions: z.ZodBoolean;
|
|
5537
5537
|
}, "strip", z.ZodTypeAny, {
|
|
5538
5538
|
type: "tool-call";
|
|
5539
|
-
userInputId: string;
|
|
5540
5539
|
data: {
|
|
5541
5540
|
name: string;
|
|
5542
5541
|
id: string;
|
|
5543
5542
|
input: Record<string, any>;
|
|
5544
5543
|
};
|
|
5544
|
+
userInputId: string;
|
|
5545
5545
|
changesAlreadyApplied: {
|
|
5546
|
-
type: "patch" | "file";
|
|
5547
5546
|
path: string;
|
|
5548
5547
|
content: string;
|
|
5548
|
+
type: "file" | "patch";
|
|
5549
5549
|
}[];
|
|
5550
5550
|
response: string;
|
|
5551
5551
|
changes: {
|
|
5552
|
-
type: "patch" | "file";
|
|
5553
5552
|
path: string;
|
|
5554
5553
|
content: string;
|
|
5554
|
+
type: "file" | "patch";
|
|
5555
5555
|
}[];
|
|
5556
5556
|
addedFileVersions: {
|
|
5557
5557
|
path: string;
|
|
@@ -5560,22 +5560,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5560
5560
|
resetFileVersions: boolean;
|
|
5561
5561
|
}, {
|
|
5562
5562
|
type: "tool-call";
|
|
5563
|
-
userInputId: string;
|
|
5564
5563
|
data: {
|
|
5565
5564
|
name: string;
|
|
5566
5565
|
id: string;
|
|
5567
5566
|
input: Record<string, any>;
|
|
5568
5567
|
};
|
|
5568
|
+
userInputId: string;
|
|
5569
5569
|
changesAlreadyApplied: {
|
|
5570
|
-
type: "patch" | "file";
|
|
5571
5570
|
path: string;
|
|
5572
5571
|
content: string;
|
|
5572
|
+
type: "file" | "patch";
|
|
5573
5573
|
}[];
|
|
5574
5574
|
response: string;
|
|
5575
5575
|
changes: {
|
|
5576
|
-
type: "patch" | "file";
|
|
5577
5576
|
path: string;
|
|
5578
5577
|
content: string;
|
|
5578
|
+
type: "file" | "patch";
|
|
5579
5579
|
}[];
|
|
5580
5580
|
addedFileVersions: {
|
|
5581
5581
|
path: string;
|
|
@@ -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
|
-
userInputId: string;
|
|
5592
5591
|
result: string;
|
|
5592
|
+
userInputId: string;
|
|
5593
5593
|
}, {
|
|
5594
5594
|
type: "terminal-command-result";
|
|
5595
|
-
userInputId: string;
|
|
5596
5595
|
result: string;
|
|
5596
|
+
userInputId: string;
|
|
5597
5597
|
}>, z.ZodObject<{
|
|
5598
5598
|
type: z.ZodLiteral<"npm-version-status">;
|
|
5599
5599
|
isUpToDate: z.ZodBoolean;
|
|
@@ -5672,11 +5672,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5672
5672
|
type: z.ZodLiteral<"action-error">;
|
|
5673
5673
|
message: z.ZodString;
|
|
5674
5674
|
}, "strip", z.ZodTypeAny, {
|
|
5675
|
-
type: "action-error";
|
|
5676
5675
|
message: string;
|
|
5677
|
-
}, {
|
|
5678
5676
|
type: "action-error";
|
|
5677
|
+
}, {
|
|
5679
5678
|
message: string;
|
|
5679
|
+
type: "action-error";
|
|
5680
5680
|
}>, z.ZodObject<{
|
|
5681
5681
|
type: z.ZodLiteral<"commit-message-response">;
|
|
5682
5682
|
commitMessage: z.ZodString;
|
|
@@ -5709,15 +5709,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5709
5709
|
type: "response-complete";
|
|
5710
5710
|
userInputId: string;
|
|
5711
5711
|
changesAlreadyApplied: {
|
|
5712
|
-
type: "patch" | "file";
|
|
5713
5712
|
path: string;
|
|
5714
5713
|
content: string;
|
|
5714
|
+
type: "file" | "patch";
|
|
5715
5715
|
}[];
|
|
5716
5716
|
response: string;
|
|
5717
5717
|
changes: {
|
|
5718
|
-
type: "patch" | "file";
|
|
5719
5718
|
path: string;
|
|
5720
5719
|
content: string;
|
|
5720
|
+
type: "file" | "patch";
|
|
5721
5721
|
}[];
|
|
5722
5722
|
addedFileVersions: {
|
|
5723
5723
|
path: string;
|
|
@@ -5738,6 +5738,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5738
5738
|
type: "prompt-response";
|
|
5739
5739
|
promptId: string;
|
|
5740
5740
|
agentState: {
|
|
5741
|
+
agentContext: string;
|
|
5741
5742
|
fileContext: {
|
|
5742
5743
|
currentWorkingDirectory: string;
|
|
5743
5744
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5759,13 +5760,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5759
5760
|
homedir: string;
|
|
5760
5761
|
cpus: number;
|
|
5761
5762
|
};
|
|
5762
|
-
|
|
5763
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5764
|
+
fileVersions?: {
|
|
5763
5765
|
path: string;
|
|
5764
5766
|
content: string;
|
|
5765
|
-
}[][];
|
|
5766
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5767
|
+
}[][] | undefined;
|
|
5767
5768
|
};
|
|
5768
|
-
agentContext: string;
|
|
5769
5769
|
messageHistory: {
|
|
5770
5770
|
content: string | ({
|
|
5771
5771
|
type: "text";
|
|
@@ -5782,8 +5782,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5782
5782
|
type: "ephemeral";
|
|
5783
5783
|
} | undefined;
|
|
5784
5784
|
} | {
|
|
5785
|
-
type: "tool_result";
|
|
5786
5785
|
content: string;
|
|
5786
|
+
type: "tool_result";
|
|
5787
5787
|
tool_use_id: string;
|
|
5788
5788
|
cache_control?: {
|
|
5789
5789
|
type: "ephemeral";
|
|
@@ -5809,8 +5809,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5809
5809
|
}[];
|
|
5810
5810
|
toolCalls: {
|
|
5811
5811
|
name: string;
|
|
5812
|
-
id: string;
|
|
5813
5812
|
parameters: Record<string, string>;
|
|
5813
|
+
id: string;
|
|
5814
5814
|
}[];
|
|
5815
5815
|
} | {
|
|
5816
5816
|
type: "response-chunk";
|
|
@@ -5822,22 +5822,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5822
5822
|
filePaths: string[];
|
|
5823
5823
|
} | {
|
|
5824
5824
|
type: "tool-call";
|
|
5825
|
-
userInputId: string;
|
|
5826
5825
|
data: {
|
|
5827
5826
|
name: string;
|
|
5828
5827
|
id: string;
|
|
5829
5828
|
input: Record<string, any>;
|
|
5830
5829
|
};
|
|
5830
|
+
userInputId: string;
|
|
5831
5831
|
changesAlreadyApplied: {
|
|
5832
|
-
type: "patch" | "file";
|
|
5833
5832
|
path: string;
|
|
5834
5833
|
content: string;
|
|
5834
|
+
type: "file" | "patch";
|
|
5835
5835
|
}[];
|
|
5836
5836
|
response: string;
|
|
5837
5837
|
changes: {
|
|
5838
|
-
type: "patch" | "file";
|
|
5839
5838
|
path: string;
|
|
5840
5839
|
content: string;
|
|
5840
|
+
type: "file" | "patch";
|
|
5841
5841
|
}[];
|
|
5842
5842
|
addedFileVersions: {
|
|
5843
5843
|
path: string;
|
|
@@ -5846,15 +5846,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5846
5846
|
resetFileVersions: boolean;
|
|
5847
5847
|
} | {
|
|
5848
5848
|
type: "terminal-command-result";
|
|
5849
|
-
userInputId: string;
|
|
5850
5849
|
result: string;
|
|
5850
|
+
userInputId: string;
|
|
5851
5851
|
} | {
|
|
5852
5852
|
type: "npm-version-status";
|
|
5853
5853
|
isUpToDate: boolean;
|
|
5854
5854
|
latestVersion: string;
|
|
5855
5855
|
} | {
|
|
5856
|
-
type: "action-error";
|
|
5857
5856
|
message: string;
|
|
5857
|
+
type: "action-error";
|
|
5858
5858
|
} | {
|
|
5859
5859
|
type: "commit-message-response";
|
|
5860
5860
|
commitMessage: string;
|
|
@@ -5881,15 +5881,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5881
5881
|
type: "response-complete";
|
|
5882
5882
|
userInputId: string;
|
|
5883
5883
|
changesAlreadyApplied: {
|
|
5884
|
-
type: "patch" | "file";
|
|
5885
5884
|
path: string;
|
|
5886
5885
|
content: string;
|
|
5886
|
+
type: "file" | "patch";
|
|
5887
5887
|
}[];
|
|
5888
5888
|
response: string;
|
|
5889
5889
|
changes: {
|
|
5890
|
-
type: "patch" | "file";
|
|
5891
5890
|
path: string;
|
|
5892
5891
|
content: string;
|
|
5892
|
+
type: "file" | "patch";
|
|
5893
5893
|
}[];
|
|
5894
5894
|
addedFileVersions: {
|
|
5895
5895
|
path: string;
|
|
@@ -5910,6 +5910,7 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5910
5910
|
type: "prompt-response";
|
|
5911
5911
|
promptId: string;
|
|
5912
5912
|
agentState: {
|
|
5913
|
+
agentContext: string;
|
|
5913
5914
|
fileContext: {
|
|
5914
5915
|
currentWorkingDirectory: string;
|
|
5915
5916
|
fileTree: import("../util/file").FileTreeNode[];
|
|
@@ -5931,13 +5932,12 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5931
5932
|
homedir: string;
|
|
5932
5933
|
cpus: number;
|
|
5933
5934
|
};
|
|
5934
|
-
|
|
5935
|
+
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5936
|
+
fileVersions?: {
|
|
5935
5937
|
path: string;
|
|
5936
5938
|
content: string;
|
|
5937
|
-
}[][];
|
|
5938
|
-
userKnowledgeFiles?: Record<string, string> | undefined;
|
|
5939
|
+
}[][] | undefined;
|
|
5939
5940
|
};
|
|
5940
|
-
agentContext: string;
|
|
5941
5941
|
messageHistory: {
|
|
5942
5942
|
content: string | ({
|
|
5943
5943
|
type: "text";
|
|
@@ -5954,8 +5954,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5954
5954
|
type: "ephemeral";
|
|
5955
5955
|
} | undefined;
|
|
5956
5956
|
} | {
|
|
5957
|
-
type: "tool_result";
|
|
5958
5957
|
content: string;
|
|
5958
|
+
type: "tool_result";
|
|
5959
5959
|
tool_use_id: string;
|
|
5960
5960
|
cache_control?: {
|
|
5961
5961
|
type: "ephemeral";
|
|
@@ -5981,8 +5981,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5981
5981
|
}[];
|
|
5982
5982
|
toolCalls: {
|
|
5983
5983
|
name: string;
|
|
5984
|
-
id: string;
|
|
5985
5984
|
parameters: Record<string, string>;
|
|
5985
|
+
id: string;
|
|
5986
5986
|
}[];
|
|
5987
5987
|
} | {
|
|
5988
5988
|
type: "response-chunk";
|
|
@@ -5994,22 +5994,22 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
5994
5994
|
filePaths: string[];
|
|
5995
5995
|
} | {
|
|
5996
5996
|
type: "tool-call";
|
|
5997
|
-
userInputId: string;
|
|
5998
5997
|
data: {
|
|
5999
5998
|
name: string;
|
|
6000
5999
|
id: string;
|
|
6001
6000
|
input: Record<string, any>;
|
|
6002
6001
|
};
|
|
6002
|
+
userInputId: string;
|
|
6003
6003
|
changesAlreadyApplied: {
|
|
6004
|
-
type: "patch" | "file";
|
|
6005
6004
|
path: string;
|
|
6006
6005
|
content: string;
|
|
6006
|
+
type: "file" | "patch";
|
|
6007
6007
|
}[];
|
|
6008
6008
|
response: string;
|
|
6009
6009
|
changes: {
|
|
6010
|
-
type: "patch" | "file";
|
|
6011
6010
|
path: string;
|
|
6012
6011
|
content: string;
|
|
6012
|
+
type: "file" | "patch";
|
|
6013
6013
|
}[];
|
|
6014
6014
|
addedFileVersions: {
|
|
6015
6015
|
path: string;
|
|
@@ -6018,15 +6018,15 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
6018
6018
|
resetFileVersions: boolean;
|
|
6019
6019
|
} | {
|
|
6020
6020
|
type: "terminal-command-result";
|
|
6021
|
-
userInputId: string;
|
|
6022
6021
|
result: string;
|
|
6022
|
+
userInputId: string;
|
|
6023
6023
|
} | {
|
|
6024
6024
|
type: "npm-version-status";
|
|
6025
6025
|
isUpToDate: boolean;
|
|
6026
6026
|
latestVersion: string;
|
|
6027
6027
|
} | {
|
|
6028
|
-
type: "action-error";
|
|
6029
6028
|
message: string;
|
|
6029
|
+
type: "action-error";
|
|
6030
6030
|
} | {
|
|
6031
6031
|
type: "commit-message-response";
|
|
6032
6032
|
commitMessage: string;
|