codebuff 1.0.168 → 1.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +12 -3
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +2 -2
- package/dist/client.js +4 -2
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +53 -53
- package/dist/common/browser-actions.d.ts +62 -62
- package/dist/common/util/credentials.d.ts +2 -2
- package/dist/common/websockets/websocket-schema.d.ts +122 -122
- package/dist/menu.js +1 -1
- package/dist/menu.js.map +1 -1
- package/dist/utils/terminal.js +1 -0
- package/dist/utils/terminal.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/advanced-analyzer.d.ts +0 -19
- package/dist/common/advanced-analyzer.js +0 -140
- package/dist/common/advanced-analyzer.js.map +0 -1
- package/dist/common/message-image-handling.d.ts +0 -41
- package/dist/common/message-image-handling.js +0 -57
- package/dist/common/message-image-handling.js.map +0 -1
- package/dist/common/types/agent-state.d.ts +0 -461
- package/dist/common/types/agent-state.js +0 -30
- package/dist/common/types/agent-state.js.map +0 -1
- package/dist/common/types/message.d.ts +0 -311
- package/dist/common/types/message.js +0 -54
- package/dist/common/types/message.js.map +0 -1
- package/dist/common/types/tools.d.ts +0 -5
- package/dist/common/types/tools.js +0 -3
- package/dist/common/types/tools.js.map +0 -1
|
@@ -121,15 +121,15 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
121
121
|
type: "ephemeral";
|
|
122
122
|
}>>;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
content: string;
|
|
125
124
|
type: "tool_result";
|
|
125
|
+
content: string;
|
|
126
126
|
tool_use_id: string;
|
|
127
127
|
cache_control?: {
|
|
128
128
|
type: "ephemeral";
|
|
129
129
|
} | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
content: string;
|
|
132
131
|
type: "tool_result";
|
|
132
|
+
content: string;
|
|
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
|
-
content: string;
|
|
197
196
|
type: "tool_result";
|
|
197
|
+
content: string;
|
|
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
|
-
content: string;
|
|
231
230
|
type: "tool_result";
|
|
231
|
+
content: string;
|
|
232
232
|
tool_use_id: string;
|
|
233
233
|
cache_control?: {
|
|
234
234
|
type: "ephemeral";
|
|
@@ -360,24 +360,24 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
360
360
|
filePath: z.ZodString;
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
content: string;
|
|
364
363
|
type: "file" | "patch";
|
|
365
364
|
filePath: string;
|
|
366
|
-
}, {
|
|
367
365
|
content: string;
|
|
366
|
+
}, {
|
|
368
367
|
type: "file" | "patch";
|
|
369
368
|
filePath: string;
|
|
369
|
+
content: string;
|
|
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
|
+
fingerprintId: string;
|
|
374
375
|
userInputId: string;
|
|
375
376
|
changesAlreadyApplied: {
|
|
376
|
-
content: string;
|
|
377
377
|
type: "file" | "patch";
|
|
378
378
|
filePath: string;
|
|
379
|
+
content: string;
|
|
379
380
|
}[];
|
|
380
|
-
fingerprintId: string;
|
|
381
381
|
messages: {
|
|
382
382
|
content: string | ({
|
|
383
383
|
type: "text";
|
|
@@ -394,8 +394,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
394
394
|
type: "ephemeral";
|
|
395
395
|
} | undefined;
|
|
396
396
|
} | {
|
|
397
|
-
content: string;
|
|
398
397
|
type: "tool_result";
|
|
398
|
+
content: string;
|
|
399
399
|
tool_use_id: string;
|
|
400
400
|
cache_control?: {
|
|
401
401
|
type: "ephemeral";
|
|
@@ -444,13 +444,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
444
444
|
authToken?: string | undefined;
|
|
445
445
|
}, {
|
|
446
446
|
type: "user-input";
|
|
447
|
+
fingerprintId: string;
|
|
447
448
|
userInputId: string;
|
|
448
449
|
changesAlreadyApplied: {
|
|
449
|
-
content: string;
|
|
450
450
|
type: "file" | "patch";
|
|
451
451
|
filePath: string;
|
|
452
|
+
content: string;
|
|
452
453
|
}[];
|
|
453
|
-
fingerprintId: string;
|
|
454
454
|
messages: {
|
|
455
455
|
content: string | ({
|
|
456
456
|
type: "text";
|
|
@@ -467,8 +467,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
467
467
|
type: "ephemeral";
|
|
468
468
|
} | undefined;
|
|
469
469
|
} | {
|
|
470
|
-
content: string;
|
|
471
470
|
type: "tool_result";
|
|
471
|
+
content: string;
|
|
472
472
|
tool_use_id: string;
|
|
473
473
|
cache_control?: {
|
|
474
474
|
type: "ephemeral";
|
|
@@ -734,13 +734,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
734
734
|
type: "action";
|
|
735
735
|
data: {
|
|
736
736
|
type: "user-input";
|
|
737
|
+
fingerprintId: string;
|
|
737
738
|
userInputId: string;
|
|
738
739
|
changesAlreadyApplied: {
|
|
739
|
-
content: string;
|
|
740
740
|
type: "file" | "patch";
|
|
741
741
|
filePath: string;
|
|
742
|
+
content: string;
|
|
742
743
|
}[];
|
|
743
|
-
fingerprintId: string;
|
|
744
744
|
messages: {
|
|
745
745
|
content: string | ({
|
|
746
746
|
type: "text";
|
|
@@ -757,8 +757,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
757
757
|
type: "ephemeral";
|
|
758
758
|
} | undefined;
|
|
759
759
|
} | {
|
|
760
|
-
content: string;
|
|
761
760
|
type: "tool_result";
|
|
761
|
+
content: string;
|
|
762
762
|
tool_use_id: string;
|
|
763
763
|
cache_control?: {
|
|
764
764
|
type: "ephemeral";
|
|
@@ -855,13 +855,13 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
855
855
|
type: "action";
|
|
856
856
|
data: {
|
|
857
857
|
type: "user-input";
|
|
858
|
+
fingerprintId: string;
|
|
858
859
|
userInputId: string;
|
|
859
860
|
changesAlreadyApplied: {
|
|
860
|
-
content: string;
|
|
861
861
|
type: "file" | "patch";
|
|
862
862
|
filePath: string;
|
|
863
|
+
content: string;
|
|
863
864
|
}[];
|
|
864
|
-
fingerprintId: string;
|
|
865
865
|
messages: {
|
|
866
866
|
content: string | ({
|
|
867
867
|
type: "text";
|
|
@@ -878,8 +878,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
878
878
|
type: "ephemeral";
|
|
879
879
|
} | undefined;
|
|
880
880
|
} | {
|
|
881
|
-
content: string;
|
|
882
881
|
type: "tool_result";
|
|
882
|
+
content: string;
|
|
883
883
|
tool_use_id: string;
|
|
884
884
|
cache_control?: {
|
|
885
885
|
type: "ephemeral";
|
|
@@ -1091,15 +1091,15 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1091
1091
|
type: "ephemeral";
|
|
1092
1092
|
}>>;
|
|
1093
1093
|
}, "strip", z.ZodTypeAny, {
|
|
1094
|
-
content: string;
|
|
1095
1094
|
type: "tool_result";
|
|
1095
|
+
content: string;
|
|
1096
1096
|
tool_use_id: string;
|
|
1097
1097
|
cache_control?: {
|
|
1098
1098
|
type: "ephemeral";
|
|
1099
1099
|
} | undefined;
|
|
1100
1100
|
}, {
|
|
1101
|
-
content: string;
|
|
1102
1101
|
type: "tool_result";
|
|
1102
|
+
content: string;
|
|
1103
1103
|
tool_use_id: string;
|
|
1104
1104
|
cache_control?: {
|
|
1105
1105
|
type: "ephemeral";
|
|
@@ -1163,8 +1163,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1163
1163
|
type: "ephemeral";
|
|
1164
1164
|
} | undefined;
|
|
1165
1165
|
} | {
|
|
1166
|
-
content: string;
|
|
1167
1166
|
type: "tool_result";
|
|
1167
|
+
content: string;
|
|
1168
1168
|
tool_use_id: string;
|
|
1169
1169
|
cache_control?: {
|
|
1170
1170
|
type: "ephemeral";
|
|
@@ -1197,8 +1197,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1197
1197
|
type: "ephemeral";
|
|
1198
1198
|
} | undefined;
|
|
1199
1199
|
} | {
|
|
1200
|
-
content: string;
|
|
1201
1200
|
type: "tool_result";
|
|
1201
|
+
content: string;
|
|
1202
1202
|
tool_use_id: string;
|
|
1203
1203
|
cache_control?: {
|
|
1204
1204
|
type: "ephemeral";
|
|
@@ -1330,24 +1330,24 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1330
1330
|
filePath: z.ZodString;
|
|
1331
1331
|
content: z.ZodString;
|
|
1332
1332
|
}, "strip", z.ZodTypeAny, {
|
|
1333
|
-
content: string;
|
|
1334
1333
|
type: "file" | "patch";
|
|
1335
1334
|
filePath: string;
|
|
1336
|
-
}, {
|
|
1337
1335
|
content: string;
|
|
1336
|
+
}, {
|
|
1338
1337
|
type: "file" | "patch";
|
|
1339
1338
|
filePath: string;
|
|
1339
|
+
content: string;
|
|
1340
1340
|
}>, "many">;
|
|
1341
1341
|
costMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["lite", "normal", "max"]>>>;
|
|
1342
1342
|
}, "strip", z.ZodTypeAny, {
|
|
1343
1343
|
type: "user-input";
|
|
1344
|
+
fingerprintId: string;
|
|
1344
1345
|
userInputId: string;
|
|
1345
1346
|
changesAlreadyApplied: {
|
|
1346
|
-
content: string;
|
|
1347
1347
|
type: "file" | "patch";
|
|
1348
1348
|
filePath: string;
|
|
1349
|
+
content: string;
|
|
1349
1350
|
}[];
|
|
1350
|
-
fingerprintId: string;
|
|
1351
1351
|
messages: {
|
|
1352
1352
|
content: string | ({
|
|
1353
1353
|
type: "text";
|
|
@@ -1364,8 +1364,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1364
1364
|
type: "ephemeral";
|
|
1365
1365
|
} | undefined;
|
|
1366
1366
|
} | {
|
|
1367
|
-
content: string;
|
|
1368
1367
|
type: "tool_result";
|
|
1368
|
+
content: string;
|
|
1369
1369
|
tool_use_id: string;
|
|
1370
1370
|
cache_control?: {
|
|
1371
1371
|
type: "ephemeral";
|
|
@@ -1414,13 +1414,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1414
1414
|
authToken?: string | undefined;
|
|
1415
1415
|
}, {
|
|
1416
1416
|
type: "user-input";
|
|
1417
|
+
fingerprintId: string;
|
|
1417
1418
|
userInputId: string;
|
|
1418
1419
|
changesAlreadyApplied: {
|
|
1419
|
-
content: string;
|
|
1420
1420
|
type: "file" | "patch";
|
|
1421
1421
|
filePath: string;
|
|
1422
|
+
content: string;
|
|
1422
1423
|
}[];
|
|
1423
|
-
fingerprintId: string;
|
|
1424
1424
|
messages: {
|
|
1425
1425
|
content: string | ({
|
|
1426
1426
|
type: "text";
|
|
@@ -1437,8 +1437,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1437
1437
|
type: "ephemeral";
|
|
1438
1438
|
} | undefined;
|
|
1439
1439
|
} | {
|
|
1440
|
-
content: string;
|
|
1441
1440
|
type: "tool_result";
|
|
1441
|
+
content: string;
|
|
1442
1442
|
tool_use_id: string;
|
|
1443
1443
|
cache_control?: {
|
|
1444
1444
|
type: "ephemeral";
|
|
@@ -1704,13 +1704,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1704
1704
|
type: "action";
|
|
1705
1705
|
data: {
|
|
1706
1706
|
type: "user-input";
|
|
1707
|
+
fingerprintId: string;
|
|
1707
1708
|
userInputId: string;
|
|
1708
1709
|
changesAlreadyApplied: {
|
|
1709
|
-
content: string;
|
|
1710
1710
|
type: "file" | "patch";
|
|
1711
1711
|
filePath: string;
|
|
1712
|
+
content: string;
|
|
1712
1713
|
}[];
|
|
1713
|
-
fingerprintId: string;
|
|
1714
1714
|
messages: {
|
|
1715
1715
|
content: string | ({
|
|
1716
1716
|
type: "text";
|
|
@@ -1727,8 +1727,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1727
1727
|
type: "ephemeral";
|
|
1728
1728
|
} | undefined;
|
|
1729
1729
|
} | {
|
|
1730
|
-
content: string;
|
|
1731
1730
|
type: "tool_result";
|
|
1731
|
+
content: string;
|
|
1732
1732
|
tool_use_id: string;
|
|
1733
1733
|
cache_control?: {
|
|
1734
1734
|
type: "ephemeral";
|
|
@@ -1825,13 +1825,13 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1825
1825
|
type: "action";
|
|
1826
1826
|
data: {
|
|
1827
1827
|
type: "user-input";
|
|
1828
|
+
fingerprintId: string;
|
|
1828
1829
|
userInputId: string;
|
|
1829
1830
|
changesAlreadyApplied: {
|
|
1830
|
-
content: string;
|
|
1831
1831
|
type: "file" | "patch";
|
|
1832
1832
|
filePath: string;
|
|
1833
|
+
content: string;
|
|
1833
1834
|
}[];
|
|
1834
|
-
fingerprintId: string;
|
|
1835
1835
|
messages: {
|
|
1836
1836
|
content: string | ({
|
|
1837
1837
|
type: "text";
|
|
@@ -1848,8 +1848,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1848
1848
|
type: "ephemeral";
|
|
1849
1849
|
} | undefined;
|
|
1850
1850
|
} | {
|
|
1851
|
-
content: string;
|
|
1852
1851
|
type: "tool_result";
|
|
1852
|
+
content: string;
|
|
1853
1853
|
tool_use_id: string;
|
|
1854
1854
|
cache_control?: {
|
|
1855
1855
|
type: "ephemeral";
|
|
@@ -1954,13 +1954,13 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1954
1954
|
}, "strip", z.ZodTypeAny, {
|
|
1955
1955
|
type: "ack";
|
|
1956
1956
|
success: boolean;
|
|
1957
|
-
txid?: number | undefined;
|
|
1958
1957
|
error?: string | undefined;
|
|
1958
|
+
txid?: number | undefined;
|
|
1959
1959
|
}, {
|
|
1960
1960
|
type: "ack";
|
|
1961
1961
|
success: boolean;
|
|
1962
|
-
txid?: number | undefined;
|
|
1963
1962
|
error?: string | undefined;
|
|
1963
|
+
txid?: number | undefined;
|
|
1964
1964
|
}>;
|
|
1965
1965
|
action: z.ZodObject<{
|
|
1966
1966
|
type: z.ZodLiteral<"action">;
|
|
@@ -1985,26 +1985,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
1985
1985
|
filePath: z.ZodString;
|
|
1986
1986
|
content: z.ZodString;
|
|
1987
1987
|
}, "strip", z.ZodTypeAny, {
|
|
1988
|
-
content: string;
|
|
1989
1988
|
type: "file" | "patch";
|
|
1990
1989
|
filePath: string;
|
|
1991
|
-
}, {
|
|
1992
1990
|
content: string;
|
|
1991
|
+
}, {
|
|
1993
1992
|
type: "file" | "patch";
|
|
1994
1993
|
filePath: string;
|
|
1994
|
+
content: string;
|
|
1995
1995
|
}>, "many">;
|
|
1996
1996
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
1997
1997
|
type: z.ZodEnum<["patch", "file"]>;
|
|
1998
1998
|
filePath: z.ZodString;
|
|
1999
1999
|
content: z.ZodString;
|
|
2000
2000
|
}, "strip", z.ZodTypeAny, {
|
|
2001
|
-
content: string;
|
|
2002
2001
|
type: "file" | "patch";
|
|
2003
2002
|
filePath: string;
|
|
2004
|
-
}, {
|
|
2005
2003
|
content: string;
|
|
2004
|
+
}, {
|
|
2006
2005
|
type: "file" | "patch";
|
|
2007
2006
|
filePath: string;
|
|
2007
|
+
content: string;
|
|
2008
2008
|
}>, "many">;
|
|
2009
2009
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2010
2010
|
path: z.ZodString;
|
|
@@ -2029,14 +2029,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2029
2029
|
userInputId: string;
|
|
2030
2030
|
response: string;
|
|
2031
2031
|
changes: {
|
|
2032
|
-
content: string;
|
|
2033
2032
|
type: "file" | "patch";
|
|
2034
2033
|
filePath: string;
|
|
2034
|
+
content: string;
|
|
2035
2035
|
}[];
|
|
2036
2036
|
changesAlreadyApplied: {
|
|
2037
|
-
content: string;
|
|
2038
2037
|
type: "file" | "patch";
|
|
2039
2038
|
filePath: string;
|
|
2039
|
+
content: string;
|
|
2040
2040
|
}[];
|
|
2041
2041
|
addedFileVersions: {
|
|
2042
2042
|
path: string;
|
|
@@ -2054,14 +2054,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2054
2054
|
userInputId: string;
|
|
2055
2055
|
response: string;
|
|
2056
2056
|
changes: {
|
|
2057
|
-
content: string;
|
|
2058
2057
|
type: "file" | "patch";
|
|
2059
2058
|
filePath: string;
|
|
2059
|
+
content: string;
|
|
2060
2060
|
}[];
|
|
2061
2061
|
changesAlreadyApplied: {
|
|
2062
|
-
content: string;
|
|
2063
2062
|
type: "file" | "patch";
|
|
2064
2063
|
filePath: string;
|
|
2064
|
+
content: string;
|
|
2065
2065
|
}[];
|
|
2066
2066
|
addedFileVersions: {
|
|
2067
2067
|
path: string;
|
|
@@ -2108,26 +2108,26 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2108
2108
|
filePath: z.ZodString;
|
|
2109
2109
|
content: z.ZodString;
|
|
2110
2110
|
}, "strip", z.ZodTypeAny, {
|
|
2111
|
-
content: string;
|
|
2112
2111
|
type: "file" | "patch";
|
|
2113
2112
|
filePath: string;
|
|
2114
|
-
}, {
|
|
2115
2113
|
content: string;
|
|
2114
|
+
}, {
|
|
2116
2115
|
type: "file" | "patch";
|
|
2117
2116
|
filePath: string;
|
|
2117
|
+
content: string;
|
|
2118
2118
|
}>, "many">;
|
|
2119
2119
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2120
2120
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2121
2121
|
filePath: z.ZodString;
|
|
2122
2122
|
content: z.ZodString;
|
|
2123
2123
|
}, "strip", z.ZodTypeAny, {
|
|
2124
|
-
content: string;
|
|
2125
2124
|
type: "file" | "patch";
|
|
2126
2125
|
filePath: string;
|
|
2127
|
-
}, {
|
|
2128
2126
|
content: string;
|
|
2127
|
+
}, {
|
|
2129
2128
|
type: "file" | "patch";
|
|
2130
2129
|
filePath: string;
|
|
2130
|
+
content: string;
|
|
2131
2131
|
}>, "many">;
|
|
2132
2132
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2133
2133
|
path: z.ZodString;
|
|
@@ -2142,52 +2142,52 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2142
2142
|
resetFileVersions: z.ZodBoolean;
|
|
2143
2143
|
}, "strip", z.ZodTypeAny, {
|
|
2144
2144
|
type: "tool-call";
|
|
2145
|
+
data: {
|
|
2146
|
+
name: string;
|
|
2147
|
+
id: string;
|
|
2148
|
+
input: Record<string, any>;
|
|
2149
|
+
};
|
|
2145
2150
|
userInputId: string;
|
|
2146
2151
|
response: string;
|
|
2147
2152
|
changes: {
|
|
2148
|
-
content: string;
|
|
2149
2153
|
type: "file" | "patch";
|
|
2150
2154
|
filePath: string;
|
|
2155
|
+
content: string;
|
|
2151
2156
|
}[];
|
|
2152
2157
|
changesAlreadyApplied: {
|
|
2153
|
-
content: string;
|
|
2154
2158
|
type: "file" | "patch";
|
|
2155
2159
|
filePath: string;
|
|
2160
|
+
content: string;
|
|
2156
2161
|
}[];
|
|
2157
2162
|
addedFileVersions: {
|
|
2158
2163
|
path: string;
|
|
2159
2164
|
content: string;
|
|
2160
2165
|
}[];
|
|
2161
2166
|
resetFileVersions: boolean;
|
|
2167
|
+
}, {
|
|
2168
|
+
type: "tool-call";
|
|
2162
2169
|
data: {
|
|
2163
2170
|
name: string;
|
|
2164
2171
|
id: string;
|
|
2165
2172
|
input: Record<string, any>;
|
|
2166
2173
|
};
|
|
2167
|
-
}, {
|
|
2168
|
-
type: "tool-call";
|
|
2169
2174
|
userInputId: string;
|
|
2170
2175
|
response: string;
|
|
2171
2176
|
changes: {
|
|
2172
|
-
content: string;
|
|
2173
2177
|
type: "file" | "patch";
|
|
2174
2178
|
filePath: string;
|
|
2179
|
+
content: string;
|
|
2175
2180
|
}[];
|
|
2176
2181
|
changesAlreadyApplied: {
|
|
2177
|
-
content: string;
|
|
2178
2182
|
type: "file" | "patch";
|
|
2179
2183
|
filePath: string;
|
|
2184
|
+
content: string;
|
|
2180
2185
|
}[];
|
|
2181
2186
|
addedFileVersions: {
|
|
2182
2187
|
path: string;
|
|
2183
2188
|
content: string;
|
|
2184
2189
|
}[];
|
|
2185
2190
|
resetFileVersions: boolean;
|
|
2186
|
-
data: {
|
|
2187
|
-
name: string;
|
|
2188
|
-
id: string;
|
|
2189
|
-
input: Record<string, any>;
|
|
2190
|
-
};
|
|
2191
2191
|
}>, z.ZodObject<{
|
|
2192
2192
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2193
2193
|
userInputId: z.ZodString;
|
|
@@ -2304,14 +2304,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2304
2304
|
userInputId: string;
|
|
2305
2305
|
response: string;
|
|
2306
2306
|
changes: {
|
|
2307
|
-
content: string;
|
|
2308
2307
|
type: "file" | "patch";
|
|
2309
2308
|
filePath: string;
|
|
2309
|
+
content: string;
|
|
2310
2310
|
}[];
|
|
2311
2311
|
changesAlreadyApplied: {
|
|
2312
|
-
content: string;
|
|
2313
2312
|
type: "file" | "patch";
|
|
2314
2313
|
filePath: string;
|
|
2314
|
+
content: string;
|
|
2315
2315
|
}[];
|
|
2316
2316
|
addedFileVersions: {
|
|
2317
2317
|
path: string;
|
|
@@ -2334,28 +2334,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2334
2334
|
filePaths: string[];
|
|
2335
2335
|
} | {
|
|
2336
2336
|
type: "tool-call";
|
|
2337
|
+
data: {
|
|
2338
|
+
name: string;
|
|
2339
|
+
id: string;
|
|
2340
|
+
input: Record<string, any>;
|
|
2341
|
+
};
|
|
2337
2342
|
userInputId: string;
|
|
2338
2343
|
response: string;
|
|
2339
2344
|
changes: {
|
|
2340
|
-
content: string;
|
|
2341
2345
|
type: "file" | "patch";
|
|
2342
2346
|
filePath: string;
|
|
2347
|
+
content: string;
|
|
2343
2348
|
}[];
|
|
2344
2349
|
changesAlreadyApplied: {
|
|
2345
|
-
content: string;
|
|
2346
2350
|
type: "file" | "patch";
|
|
2347
2351
|
filePath: string;
|
|
2352
|
+
content: string;
|
|
2348
2353
|
}[];
|
|
2349
2354
|
addedFileVersions: {
|
|
2350
2355
|
path: string;
|
|
2351
2356
|
content: string;
|
|
2352
2357
|
}[];
|
|
2353
2358
|
resetFileVersions: boolean;
|
|
2354
|
-
data: {
|
|
2355
|
-
name: string;
|
|
2356
|
-
id: string;
|
|
2357
|
-
input: Record<string, any>;
|
|
2358
|
-
};
|
|
2359
2359
|
} | {
|
|
2360
2360
|
type: "terminal-command-result";
|
|
2361
2361
|
userInputId: string;
|
|
@@ -2394,14 +2394,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2394
2394
|
userInputId: string;
|
|
2395
2395
|
response: string;
|
|
2396
2396
|
changes: {
|
|
2397
|
-
content: string;
|
|
2398
2397
|
type: "file" | "patch";
|
|
2399
2398
|
filePath: string;
|
|
2399
|
+
content: string;
|
|
2400
2400
|
}[];
|
|
2401
2401
|
changesAlreadyApplied: {
|
|
2402
|
-
content: string;
|
|
2403
2402
|
type: "file" | "patch";
|
|
2404
2403
|
filePath: string;
|
|
2404
|
+
content: string;
|
|
2405
2405
|
}[];
|
|
2406
2406
|
addedFileVersions: {
|
|
2407
2407
|
path: string;
|
|
@@ -2424,28 +2424,28 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2424
2424
|
filePaths: string[];
|
|
2425
2425
|
} | {
|
|
2426
2426
|
type: "tool-call";
|
|
2427
|
+
data: {
|
|
2428
|
+
name: string;
|
|
2429
|
+
id: string;
|
|
2430
|
+
input: Record<string, any>;
|
|
2431
|
+
};
|
|
2427
2432
|
userInputId: string;
|
|
2428
2433
|
response: string;
|
|
2429
2434
|
changes: {
|
|
2430
|
-
content: string;
|
|
2431
2435
|
type: "file" | "patch";
|
|
2432
2436
|
filePath: string;
|
|
2437
|
+
content: string;
|
|
2433
2438
|
}[];
|
|
2434
2439
|
changesAlreadyApplied: {
|
|
2435
|
-
content: string;
|
|
2436
2440
|
type: "file" | "patch";
|
|
2437
2441
|
filePath: string;
|
|
2442
|
+
content: string;
|
|
2438
2443
|
}[];
|
|
2439
2444
|
addedFileVersions: {
|
|
2440
2445
|
path: string;
|
|
2441
2446
|
content: string;
|
|
2442
2447
|
}[];
|
|
2443
2448
|
resetFileVersions: boolean;
|
|
2444
|
-
data: {
|
|
2445
|
-
name: string;
|
|
2446
|
-
id: string;
|
|
2447
|
-
input: Record<string, any>;
|
|
2448
|
-
};
|
|
2449
2449
|
} | {
|
|
2450
2450
|
type: "terminal-command-result";
|
|
2451
2451
|
userInputId: string;
|
|
@@ -2471,13 +2471,13 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2471
2471
|
}, "strip", z.ZodTypeAny, {
|
|
2472
2472
|
type: "ack";
|
|
2473
2473
|
success: boolean;
|
|
2474
|
-
txid?: number | undefined;
|
|
2475
2474
|
error?: string | undefined;
|
|
2475
|
+
txid?: number | undefined;
|
|
2476
2476
|
}, {
|
|
2477
2477
|
type: "ack";
|
|
2478
2478
|
success: boolean;
|
|
2479
|
-
txid?: number | undefined;
|
|
2480
2479
|
error?: string | undefined;
|
|
2480
|
+
txid?: number | undefined;
|
|
2481
2481
|
}>, z.ZodObject<{
|
|
2482
2482
|
type: z.ZodLiteral<"action">;
|
|
2483
2483
|
data: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -2501,26 +2501,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2501
2501
|
filePath: z.ZodString;
|
|
2502
2502
|
content: z.ZodString;
|
|
2503
2503
|
}, "strip", z.ZodTypeAny, {
|
|
2504
|
-
content: string;
|
|
2505
2504
|
type: "file" | "patch";
|
|
2506
2505
|
filePath: string;
|
|
2507
|
-
}, {
|
|
2508
2506
|
content: string;
|
|
2507
|
+
}, {
|
|
2509
2508
|
type: "file" | "patch";
|
|
2510
2509
|
filePath: string;
|
|
2510
|
+
content: string;
|
|
2511
2511
|
}>, "many">;
|
|
2512
2512
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2513
2513
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2514
2514
|
filePath: z.ZodString;
|
|
2515
2515
|
content: z.ZodString;
|
|
2516
2516
|
}, "strip", z.ZodTypeAny, {
|
|
2517
|
-
content: string;
|
|
2518
2517
|
type: "file" | "patch";
|
|
2519
2518
|
filePath: string;
|
|
2520
|
-
}, {
|
|
2521
2519
|
content: string;
|
|
2520
|
+
}, {
|
|
2522
2521
|
type: "file" | "patch";
|
|
2523
2522
|
filePath: string;
|
|
2523
|
+
content: string;
|
|
2524
2524
|
}>, "many">;
|
|
2525
2525
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2526
2526
|
path: z.ZodString;
|
|
@@ -2545,14 +2545,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2545
2545
|
userInputId: string;
|
|
2546
2546
|
response: string;
|
|
2547
2547
|
changes: {
|
|
2548
|
-
content: string;
|
|
2549
2548
|
type: "file" | "patch";
|
|
2550
2549
|
filePath: string;
|
|
2550
|
+
content: string;
|
|
2551
2551
|
}[];
|
|
2552
2552
|
changesAlreadyApplied: {
|
|
2553
|
-
content: string;
|
|
2554
2553
|
type: "file" | "patch";
|
|
2555
2554
|
filePath: string;
|
|
2555
|
+
content: string;
|
|
2556
2556
|
}[];
|
|
2557
2557
|
addedFileVersions: {
|
|
2558
2558
|
path: string;
|
|
@@ -2570,14 +2570,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2570
2570
|
userInputId: string;
|
|
2571
2571
|
response: string;
|
|
2572
2572
|
changes: {
|
|
2573
|
-
content: string;
|
|
2574
2573
|
type: "file" | "patch";
|
|
2575
2574
|
filePath: string;
|
|
2575
|
+
content: string;
|
|
2576
2576
|
}[];
|
|
2577
2577
|
changesAlreadyApplied: {
|
|
2578
|
-
content: string;
|
|
2579
2578
|
type: "file" | "patch";
|
|
2580
2579
|
filePath: string;
|
|
2580
|
+
content: string;
|
|
2581
2581
|
}[];
|
|
2582
2582
|
addedFileVersions: {
|
|
2583
2583
|
path: string;
|
|
@@ -2624,26 +2624,26 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2624
2624
|
filePath: z.ZodString;
|
|
2625
2625
|
content: z.ZodString;
|
|
2626
2626
|
}, "strip", z.ZodTypeAny, {
|
|
2627
|
-
content: string;
|
|
2628
2627
|
type: "file" | "patch";
|
|
2629
2628
|
filePath: string;
|
|
2630
|
-
}, {
|
|
2631
2629
|
content: string;
|
|
2630
|
+
}, {
|
|
2632
2631
|
type: "file" | "patch";
|
|
2633
2632
|
filePath: string;
|
|
2633
|
+
content: string;
|
|
2634
2634
|
}>, "many">;
|
|
2635
2635
|
changesAlreadyApplied: z.ZodArray<z.ZodObject<{
|
|
2636
2636
|
type: z.ZodEnum<["patch", "file"]>;
|
|
2637
2637
|
filePath: z.ZodString;
|
|
2638
2638
|
content: z.ZodString;
|
|
2639
2639
|
}, "strip", z.ZodTypeAny, {
|
|
2640
|
-
content: string;
|
|
2641
2640
|
type: "file" | "patch";
|
|
2642
2641
|
filePath: string;
|
|
2643
|
-
}, {
|
|
2644
2642
|
content: string;
|
|
2643
|
+
}, {
|
|
2645
2644
|
type: "file" | "patch";
|
|
2646
2645
|
filePath: string;
|
|
2646
|
+
content: string;
|
|
2647
2647
|
}>, "many">;
|
|
2648
2648
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2649
2649
|
path: z.ZodString;
|
|
@@ -2658,52 +2658,52 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2658
2658
|
resetFileVersions: z.ZodBoolean;
|
|
2659
2659
|
}, "strip", z.ZodTypeAny, {
|
|
2660
2660
|
type: "tool-call";
|
|
2661
|
+
data: {
|
|
2662
|
+
name: string;
|
|
2663
|
+
id: string;
|
|
2664
|
+
input: Record<string, any>;
|
|
2665
|
+
};
|
|
2661
2666
|
userInputId: string;
|
|
2662
2667
|
response: string;
|
|
2663
2668
|
changes: {
|
|
2664
|
-
content: string;
|
|
2665
2669
|
type: "file" | "patch";
|
|
2666
2670
|
filePath: string;
|
|
2671
|
+
content: string;
|
|
2667
2672
|
}[];
|
|
2668
2673
|
changesAlreadyApplied: {
|
|
2669
|
-
content: string;
|
|
2670
2674
|
type: "file" | "patch";
|
|
2671
2675
|
filePath: string;
|
|
2676
|
+
content: string;
|
|
2672
2677
|
}[];
|
|
2673
2678
|
addedFileVersions: {
|
|
2674
2679
|
path: string;
|
|
2675
2680
|
content: string;
|
|
2676
2681
|
}[];
|
|
2677
2682
|
resetFileVersions: boolean;
|
|
2683
|
+
}, {
|
|
2684
|
+
type: "tool-call";
|
|
2678
2685
|
data: {
|
|
2679
2686
|
name: string;
|
|
2680
2687
|
id: string;
|
|
2681
2688
|
input: Record<string, any>;
|
|
2682
2689
|
};
|
|
2683
|
-
}, {
|
|
2684
|
-
type: "tool-call";
|
|
2685
2690
|
userInputId: string;
|
|
2686
2691
|
response: string;
|
|
2687
2692
|
changes: {
|
|
2688
|
-
content: string;
|
|
2689
2693
|
type: "file" | "patch";
|
|
2690
2694
|
filePath: string;
|
|
2695
|
+
content: string;
|
|
2691
2696
|
}[];
|
|
2692
2697
|
changesAlreadyApplied: {
|
|
2693
|
-
content: string;
|
|
2694
2698
|
type: "file" | "patch";
|
|
2695
2699
|
filePath: string;
|
|
2700
|
+
content: string;
|
|
2696
2701
|
}[];
|
|
2697
2702
|
addedFileVersions: {
|
|
2698
2703
|
path: string;
|
|
2699
2704
|
content: string;
|
|
2700
2705
|
}[];
|
|
2701
2706
|
resetFileVersions: boolean;
|
|
2702
|
-
data: {
|
|
2703
|
-
name: string;
|
|
2704
|
-
id: string;
|
|
2705
|
-
input: Record<string, any>;
|
|
2706
|
-
};
|
|
2707
2707
|
}>, z.ZodObject<{
|
|
2708
2708
|
type: z.ZodLiteral<"terminal-command-result">;
|
|
2709
2709
|
userInputId: z.ZodString;
|
|
@@ -2820,14 +2820,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2820
2820
|
userInputId: string;
|
|
2821
2821
|
response: string;
|
|
2822
2822
|
changes: {
|
|
2823
|
-
content: string;
|
|
2824
2823
|
type: "file" | "patch";
|
|
2825
2824
|
filePath: string;
|
|
2825
|
+
content: string;
|
|
2826
2826
|
}[];
|
|
2827
2827
|
changesAlreadyApplied: {
|
|
2828
|
-
content: string;
|
|
2829
2828
|
type: "file" | "patch";
|
|
2830
2829
|
filePath: string;
|
|
2830
|
+
content: string;
|
|
2831
2831
|
}[];
|
|
2832
2832
|
addedFileVersions: {
|
|
2833
2833
|
path: string;
|
|
@@ -2850,28 +2850,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2850
2850
|
filePaths: string[];
|
|
2851
2851
|
} | {
|
|
2852
2852
|
type: "tool-call";
|
|
2853
|
+
data: {
|
|
2854
|
+
name: string;
|
|
2855
|
+
id: string;
|
|
2856
|
+
input: Record<string, any>;
|
|
2857
|
+
};
|
|
2853
2858
|
userInputId: string;
|
|
2854
2859
|
response: string;
|
|
2855
2860
|
changes: {
|
|
2856
|
-
content: string;
|
|
2857
2861
|
type: "file" | "patch";
|
|
2858
2862
|
filePath: string;
|
|
2863
|
+
content: string;
|
|
2859
2864
|
}[];
|
|
2860
2865
|
changesAlreadyApplied: {
|
|
2861
|
-
content: string;
|
|
2862
2866
|
type: "file" | "patch";
|
|
2863
2867
|
filePath: string;
|
|
2868
|
+
content: string;
|
|
2864
2869
|
}[];
|
|
2865
2870
|
addedFileVersions: {
|
|
2866
2871
|
path: string;
|
|
2867
2872
|
content: string;
|
|
2868
2873
|
}[];
|
|
2869
2874
|
resetFileVersions: boolean;
|
|
2870
|
-
data: {
|
|
2871
|
-
name: string;
|
|
2872
|
-
id: string;
|
|
2873
|
-
input: Record<string, any>;
|
|
2874
|
-
};
|
|
2875
2875
|
} | {
|
|
2876
2876
|
type: "terminal-command-result";
|
|
2877
2877
|
userInputId: string;
|
|
@@ -2910,14 +2910,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2910
2910
|
userInputId: string;
|
|
2911
2911
|
response: string;
|
|
2912
2912
|
changes: {
|
|
2913
|
-
content: string;
|
|
2914
2913
|
type: "file" | "patch";
|
|
2915
2914
|
filePath: string;
|
|
2915
|
+
content: string;
|
|
2916
2916
|
}[];
|
|
2917
2917
|
changesAlreadyApplied: {
|
|
2918
|
-
content: string;
|
|
2919
2918
|
type: "file" | "patch";
|
|
2920
2919
|
filePath: string;
|
|
2920
|
+
content: string;
|
|
2921
2921
|
}[];
|
|
2922
2922
|
addedFileVersions: {
|
|
2923
2923
|
path: string;
|
|
@@ -2940,28 +2940,28 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2940
2940
|
filePaths: string[];
|
|
2941
2941
|
} | {
|
|
2942
2942
|
type: "tool-call";
|
|
2943
|
+
data: {
|
|
2944
|
+
name: string;
|
|
2945
|
+
id: string;
|
|
2946
|
+
input: Record<string, any>;
|
|
2947
|
+
};
|
|
2943
2948
|
userInputId: string;
|
|
2944
2949
|
response: string;
|
|
2945
2950
|
changes: {
|
|
2946
|
-
content: string;
|
|
2947
2951
|
type: "file" | "patch";
|
|
2948
2952
|
filePath: string;
|
|
2953
|
+
content: string;
|
|
2949
2954
|
}[];
|
|
2950
2955
|
changesAlreadyApplied: {
|
|
2951
|
-
content: string;
|
|
2952
2956
|
type: "file" | "patch";
|
|
2953
2957
|
filePath: string;
|
|
2958
|
+
content: string;
|
|
2954
2959
|
}[];
|
|
2955
2960
|
addedFileVersions: {
|
|
2956
2961
|
path: string;
|
|
2957
2962
|
content: string;
|
|
2958
2963
|
}[];
|
|
2959
2964
|
resetFileVersions: boolean;
|
|
2960
|
-
data: {
|
|
2961
|
-
name: string;
|
|
2962
|
-
id: string;
|
|
2963
|
-
input: Record<string, any>;
|
|
2964
|
-
};
|
|
2965
2965
|
} | {
|
|
2966
2966
|
type: "terminal-command-result";
|
|
2967
2967
|
userInputId: string;
|