codebuff 1.0.165 → 1.0.166
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 +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/client.d.ts +4 -4
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/common/actions.d.ts +78 -78
- package/dist/common/browser-actions.d.ts +62 -62
- package/dist/common/constants.d.ts +3 -3
- package/dist/common/constants.js +1 -1
- package/dist/common/types/agent-state.d.ts +461 -0
- package/dist/common/types/agent-state.js +30 -0
- package/dist/common/types/agent-state.js.map +1 -0
- package/dist/common/types/message.d.ts +311 -0
- package/dist/common/types/message.js +54 -0
- package/dist/common/types/message.js.map +1 -0
- package/dist/common/types/tools.d.ts +5 -0
- package/dist/common/types/tools.js +3 -0
- package/dist/common/types/tools.js.map +1 -0
- package/dist/common/util/credentials.d.ts +6 -6
- package/dist/common/websockets/websocket-schema.d.ts +144 -144
- package/package.json +1 -1
|
@@ -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";
|
|
@@ -360,22 +360,22 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
360
360
|
filePath: z.ZodString;
|
|
361
361
|
content: z.ZodString;
|
|
362
362
|
}, "strip", z.ZodTypeAny, {
|
|
363
|
-
type: "patch" | "file";
|
|
364
|
-
filePath: string;
|
|
365
363
|
content: string;
|
|
366
|
-
|
|
367
|
-
type: "patch" | "file";
|
|
364
|
+
type: "file" | "patch";
|
|
368
365
|
filePath: string;
|
|
366
|
+
}, {
|
|
369
367
|
content: string;
|
|
368
|
+
type: "file" | "patch";
|
|
369
|
+
filePath: 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
374
|
userInputId: string;
|
|
375
375
|
changesAlreadyApplied: {
|
|
376
|
-
type: "patch" | "file";
|
|
377
|
-
filePath: string;
|
|
378
376
|
content: string;
|
|
377
|
+
type: "file" | "patch";
|
|
378
|
+
filePath: string;
|
|
379
379
|
}[];
|
|
380
380
|
fingerprintId: string;
|
|
381
381
|
messages: {
|
|
@@ -394,8 +394,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
394
394
|
type: "ephemeral";
|
|
395
395
|
} | undefined;
|
|
396
396
|
} | {
|
|
397
|
-
type: "tool_result";
|
|
398
397
|
content: string;
|
|
398
|
+
type: "tool_result";
|
|
399
399
|
tool_use_id: string;
|
|
400
400
|
cache_control?: {
|
|
401
401
|
type: "ephemeral";
|
|
@@ -446,9 +446,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
446
446
|
type: "user-input";
|
|
447
447
|
userInputId: string;
|
|
448
448
|
changesAlreadyApplied: {
|
|
449
|
-
type: "patch" | "file";
|
|
450
|
-
filePath: string;
|
|
451
449
|
content: string;
|
|
450
|
+
type: "file" | "patch";
|
|
451
|
+
filePath: string;
|
|
452
452
|
}[];
|
|
453
453
|
fingerprintId: string;
|
|
454
454
|
messages: {
|
|
@@ -467,8 +467,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
467
467
|
type: "ephemeral";
|
|
468
468
|
} | undefined;
|
|
469
469
|
} | {
|
|
470
|
-
type: "tool_result";
|
|
471
470
|
content: string;
|
|
471
|
+
type: "tool_result";
|
|
472
472
|
tool_use_id: string;
|
|
473
473
|
cache_control?: {
|
|
474
474
|
type: "ephemeral";
|
|
@@ -736,9 +736,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
736
736
|
type: "user-input";
|
|
737
737
|
userInputId: string;
|
|
738
738
|
changesAlreadyApplied: {
|
|
739
|
-
type: "patch" | "file";
|
|
740
|
-
filePath: string;
|
|
741
739
|
content: string;
|
|
740
|
+
type: "file" | "patch";
|
|
741
|
+
filePath: string;
|
|
742
742
|
}[];
|
|
743
743
|
fingerprintId: string;
|
|
744
744
|
messages: {
|
|
@@ -757,8 +757,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
757
757
|
type: "ephemeral";
|
|
758
758
|
} | undefined;
|
|
759
759
|
} | {
|
|
760
|
-
type: "tool_result";
|
|
761
760
|
content: string;
|
|
761
|
+
type: "tool_result";
|
|
762
762
|
tool_use_id: string;
|
|
763
763
|
cache_control?: {
|
|
764
764
|
type: "ephemeral";
|
|
@@ -857,9 +857,9 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
857
857
|
type: "user-input";
|
|
858
858
|
userInputId: string;
|
|
859
859
|
changesAlreadyApplied: {
|
|
860
|
-
type: "patch" | "file";
|
|
861
|
-
filePath: string;
|
|
862
860
|
content: string;
|
|
861
|
+
type: "file" | "patch";
|
|
862
|
+
filePath: string;
|
|
863
863
|
}[];
|
|
864
864
|
fingerprintId: string;
|
|
865
865
|
messages: {
|
|
@@ -878,8 +878,8 @@ export declare const CLIENT_MESSAGE_SCHEMAS: {
|
|
|
878
878
|
type: "ephemeral";
|
|
879
879
|
} | undefined;
|
|
880
880
|
} | {
|
|
881
|
-
type: "tool_result";
|
|
882
881
|
content: string;
|
|
882
|
+
type: "tool_result";
|
|
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
|
-
type: "tool_result";
|
|
1095
1094
|
content: string;
|
|
1095
|
+
type: "tool_result";
|
|
1096
1096
|
tool_use_id: string;
|
|
1097
1097
|
cache_control?: {
|
|
1098
1098
|
type: "ephemeral";
|
|
1099
1099
|
} | undefined;
|
|
1100
1100
|
}, {
|
|
1101
|
-
type: "tool_result";
|
|
1102
1101
|
content: string;
|
|
1102
|
+
type: "tool_result";
|
|
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
|
-
type: "tool_result";
|
|
1167
1166
|
content: string;
|
|
1167
|
+
type: "tool_result";
|
|
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
|
-
type: "tool_result";
|
|
1201
1200
|
content: string;
|
|
1201
|
+
type: "tool_result";
|
|
1202
1202
|
tool_use_id: string;
|
|
1203
1203
|
cache_control?: {
|
|
1204
1204
|
type: "ephemeral";
|
|
@@ -1330,22 +1330,22 @@ 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
|
-
type: "patch" | "file";
|
|
1334
|
-
filePath: string;
|
|
1335
1333
|
content: string;
|
|
1336
|
-
|
|
1337
|
-
type: "patch" | "file";
|
|
1334
|
+
type: "file" | "patch";
|
|
1338
1335
|
filePath: string;
|
|
1336
|
+
}, {
|
|
1339
1337
|
content: string;
|
|
1338
|
+
type: "file" | "patch";
|
|
1339
|
+
filePath: 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
1344
|
userInputId: string;
|
|
1345
1345
|
changesAlreadyApplied: {
|
|
1346
|
-
type: "patch" | "file";
|
|
1347
|
-
filePath: string;
|
|
1348
1346
|
content: string;
|
|
1347
|
+
type: "file" | "patch";
|
|
1348
|
+
filePath: string;
|
|
1349
1349
|
}[];
|
|
1350
1350
|
fingerprintId: string;
|
|
1351
1351
|
messages: {
|
|
@@ -1364,8 +1364,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1364
1364
|
type: "ephemeral";
|
|
1365
1365
|
} | undefined;
|
|
1366
1366
|
} | {
|
|
1367
|
-
type: "tool_result";
|
|
1368
1367
|
content: string;
|
|
1368
|
+
type: "tool_result";
|
|
1369
1369
|
tool_use_id: string;
|
|
1370
1370
|
cache_control?: {
|
|
1371
1371
|
type: "ephemeral";
|
|
@@ -1416,9 +1416,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1416
1416
|
type: "user-input";
|
|
1417
1417
|
userInputId: string;
|
|
1418
1418
|
changesAlreadyApplied: {
|
|
1419
|
-
type: "patch" | "file";
|
|
1420
|
-
filePath: string;
|
|
1421
1419
|
content: string;
|
|
1420
|
+
type: "file" | "patch";
|
|
1421
|
+
filePath: string;
|
|
1422
1422
|
}[];
|
|
1423
1423
|
fingerprintId: string;
|
|
1424
1424
|
messages: {
|
|
@@ -1437,8 +1437,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1437
1437
|
type: "ephemeral";
|
|
1438
1438
|
} | undefined;
|
|
1439
1439
|
} | {
|
|
1440
|
-
type: "tool_result";
|
|
1441
1440
|
content: string;
|
|
1441
|
+
type: "tool_result";
|
|
1442
1442
|
tool_use_id: string;
|
|
1443
1443
|
cache_control?: {
|
|
1444
1444
|
type: "ephemeral";
|
|
@@ -1706,9 +1706,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1706
1706
|
type: "user-input";
|
|
1707
1707
|
userInputId: string;
|
|
1708
1708
|
changesAlreadyApplied: {
|
|
1709
|
-
type: "patch" | "file";
|
|
1710
|
-
filePath: string;
|
|
1711
1709
|
content: string;
|
|
1710
|
+
type: "file" | "patch";
|
|
1711
|
+
filePath: string;
|
|
1712
1712
|
}[];
|
|
1713
1713
|
fingerprintId: string;
|
|
1714
1714
|
messages: {
|
|
@@ -1727,8 +1727,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1727
1727
|
type: "ephemeral";
|
|
1728
1728
|
} | undefined;
|
|
1729
1729
|
} | {
|
|
1730
|
-
type: "tool_result";
|
|
1731
1730
|
content: string;
|
|
1731
|
+
type: "tool_result";
|
|
1732
1732
|
tool_use_id: string;
|
|
1733
1733
|
cache_control?: {
|
|
1734
1734
|
type: "ephemeral";
|
|
@@ -1827,9 +1827,9 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1827
1827
|
type: "user-input";
|
|
1828
1828
|
userInputId: string;
|
|
1829
1829
|
changesAlreadyApplied: {
|
|
1830
|
-
type: "patch" | "file";
|
|
1831
|
-
filePath: string;
|
|
1832
1830
|
content: string;
|
|
1831
|
+
type: "file" | "patch";
|
|
1832
|
+
filePath: string;
|
|
1833
1833
|
}[];
|
|
1834
1834
|
fingerprintId: string;
|
|
1835
1835
|
messages: {
|
|
@@ -1848,8 +1848,8 @@ export declare const CLIENT_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
1848
1848
|
type: "ephemeral";
|
|
1849
1849
|
} | undefined;
|
|
1850
1850
|
} | {
|
|
1851
|
-
type: "tool_result";
|
|
1852
1851
|
content: string;
|
|
1852
|
+
type: "tool_result";
|
|
1853
1853
|
tool_use_id: string;
|
|
1854
1854
|
cache_control?: {
|
|
1855
1855
|
type: "ephemeral";
|
|
@@ -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
|
-
type: "patch" | "file";
|
|
1989
|
-
filePath: string;
|
|
1990
1988
|
content: string;
|
|
1991
|
-
|
|
1992
|
-
type: "patch" | "file";
|
|
1989
|
+
type: "file" | "patch";
|
|
1993
1990
|
filePath: string;
|
|
1991
|
+
}, {
|
|
1994
1992
|
content: string;
|
|
1993
|
+
type: "file" | "patch";
|
|
1994
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2002
|
-
filePath: string;
|
|
2003
2001
|
content: string;
|
|
2004
|
-
|
|
2005
|
-
type: "patch" | "file";
|
|
2002
|
+
type: "file" | "patch";
|
|
2006
2003
|
filePath: string;
|
|
2004
|
+
}, {
|
|
2007
2005
|
content: string;
|
|
2006
|
+
type: "file" | "patch";
|
|
2007
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2033
|
-
filePath: string;
|
|
2034
2032
|
content: string;
|
|
2033
|
+
type: "file" | "patch";
|
|
2034
|
+
filePath: string;
|
|
2035
2035
|
}[];
|
|
2036
2036
|
changesAlreadyApplied: {
|
|
2037
|
-
type: "patch" | "file";
|
|
2038
|
-
filePath: string;
|
|
2039
2037
|
content: string;
|
|
2038
|
+
type: "file" | "patch";
|
|
2039
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2058
|
-
filePath: string;
|
|
2059
2057
|
content: string;
|
|
2058
|
+
type: "file" | "patch";
|
|
2059
|
+
filePath: string;
|
|
2060
2060
|
}[];
|
|
2061
2061
|
changesAlreadyApplied: {
|
|
2062
|
-
type: "patch" | "file";
|
|
2063
|
-
filePath: string;
|
|
2064
2062
|
content: string;
|
|
2063
|
+
type: "file" | "patch";
|
|
2064
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2112
|
-
filePath: string;
|
|
2113
2111
|
content: string;
|
|
2114
|
-
|
|
2115
|
-
type: "patch" | "file";
|
|
2112
|
+
type: "file" | "patch";
|
|
2116
2113
|
filePath: string;
|
|
2114
|
+
}, {
|
|
2117
2115
|
content: string;
|
|
2116
|
+
type: "file" | "patch";
|
|
2117
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2125
|
-
filePath: string;
|
|
2126
2124
|
content: string;
|
|
2127
|
-
|
|
2128
|
-
type: "patch" | "file";
|
|
2125
|
+
type: "file" | "patch";
|
|
2129
2126
|
filePath: string;
|
|
2127
|
+
}, {
|
|
2130
2128
|
content: string;
|
|
2129
|
+
type: "file" | "patch";
|
|
2130
|
+
filePath: string;
|
|
2131
2131
|
}>, "many">;
|
|
2132
2132
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2133
2133
|
path: z.ZodString;
|
|
@@ -2145,14 +2145,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2145
2145
|
userInputId: string;
|
|
2146
2146
|
response: string;
|
|
2147
2147
|
changes: {
|
|
2148
|
-
type: "patch" | "file";
|
|
2149
|
-
filePath: string;
|
|
2150
2148
|
content: string;
|
|
2149
|
+
type: "file" | "patch";
|
|
2150
|
+
filePath: string;
|
|
2151
2151
|
}[];
|
|
2152
2152
|
changesAlreadyApplied: {
|
|
2153
|
-
type: "patch" | "file";
|
|
2154
|
-
filePath: string;
|
|
2155
2153
|
content: string;
|
|
2154
|
+
type: "file" | "patch";
|
|
2155
|
+
filePath: string;
|
|
2156
2156
|
}[];
|
|
2157
2157
|
addedFileVersions: {
|
|
2158
2158
|
path: string;
|
|
@@ -2169,14 +2169,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2169
2169
|
userInputId: string;
|
|
2170
2170
|
response: string;
|
|
2171
2171
|
changes: {
|
|
2172
|
-
type: "patch" | "file";
|
|
2173
|
-
filePath: string;
|
|
2174
2172
|
content: string;
|
|
2173
|
+
type: "file" | "patch";
|
|
2174
|
+
filePath: string;
|
|
2175
2175
|
}[];
|
|
2176
2176
|
changesAlreadyApplied: {
|
|
2177
|
-
type: "patch" | "file";
|
|
2178
|
-
filePath: string;
|
|
2179
2177
|
content: string;
|
|
2178
|
+
type: "file" | "patch";
|
|
2179
|
+
filePath: string;
|
|
2180
2180
|
}[];
|
|
2181
2181
|
addedFileVersions: {
|
|
2182
2182
|
path: string;
|
|
@@ -2266,11 +2266,11 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2266
2266
|
type: z.ZodLiteral<"action-error">;
|
|
2267
2267
|
message: z.ZodString;
|
|
2268
2268
|
}, "strip", z.ZodTypeAny, {
|
|
2269
|
-
type: "action-error";
|
|
2270
2269
|
message: string;
|
|
2271
|
-
}, {
|
|
2272
2270
|
type: "action-error";
|
|
2271
|
+
}, {
|
|
2273
2272
|
message: string;
|
|
2273
|
+
type: "action-error";
|
|
2274
2274
|
}>, z.ZodObject<{
|
|
2275
2275
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2276
2276
|
commitMessage: z.ZodString;
|
|
@@ -2304,14 +2304,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2304
2304
|
userInputId: string;
|
|
2305
2305
|
response: string;
|
|
2306
2306
|
changes: {
|
|
2307
|
-
type: "patch" | "file";
|
|
2308
|
-
filePath: string;
|
|
2309
2307
|
content: string;
|
|
2308
|
+
type: "file" | "patch";
|
|
2309
|
+
filePath: string;
|
|
2310
2310
|
}[];
|
|
2311
2311
|
changesAlreadyApplied: {
|
|
2312
|
-
type: "patch" | "file";
|
|
2313
|
-
filePath: string;
|
|
2314
2312
|
content: string;
|
|
2313
|
+
type: "file" | "patch";
|
|
2314
|
+
filePath: string;
|
|
2315
2315
|
}[];
|
|
2316
2316
|
addedFileVersions: {
|
|
2317
2317
|
path: string;
|
|
@@ -2337,14 +2337,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2337
2337
|
userInputId: string;
|
|
2338
2338
|
response: string;
|
|
2339
2339
|
changes: {
|
|
2340
|
-
type: "patch" | "file";
|
|
2341
|
-
filePath: string;
|
|
2342
2340
|
content: string;
|
|
2341
|
+
type: "file" | "patch";
|
|
2342
|
+
filePath: string;
|
|
2343
2343
|
}[];
|
|
2344
2344
|
changesAlreadyApplied: {
|
|
2345
|
-
type: "patch" | "file";
|
|
2346
|
-
filePath: string;
|
|
2347
2345
|
content: string;
|
|
2346
|
+
type: "file" | "patch";
|
|
2347
|
+
filePath: string;
|
|
2348
2348
|
}[];
|
|
2349
2349
|
addedFileVersions: {
|
|
2350
2350
|
path: string;
|
|
@@ -2365,8 +2365,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2365
2365
|
isUpToDate: boolean;
|
|
2366
2366
|
latestVersion: string;
|
|
2367
2367
|
} | {
|
|
2368
|
-
type: "action-error";
|
|
2369
2368
|
message: string;
|
|
2369
|
+
type: "action-error";
|
|
2370
2370
|
} | {
|
|
2371
2371
|
type: "commit-message-response";
|
|
2372
2372
|
commitMessage: string;
|
|
@@ -2394,14 +2394,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2394
2394
|
userInputId: string;
|
|
2395
2395
|
response: string;
|
|
2396
2396
|
changes: {
|
|
2397
|
-
type: "patch" | "file";
|
|
2398
|
-
filePath: string;
|
|
2399
2397
|
content: string;
|
|
2398
|
+
type: "file" | "patch";
|
|
2399
|
+
filePath: string;
|
|
2400
2400
|
}[];
|
|
2401
2401
|
changesAlreadyApplied: {
|
|
2402
|
-
type: "patch" | "file";
|
|
2403
|
-
filePath: string;
|
|
2404
2402
|
content: string;
|
|
2403
|
+
type: "file" | "patch";
|
|
2404
|
+
filePath: string;
|
|
2405
2405
|
}[];
|
|
2406
2406
|
addedFileVersions: {
|
|
2407
2407
|
path: string;
|
|
@@ -2427,14 +2427,14 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2427
2427
|
userInputId: string;
|
|
2428
2428
|
response: string;
|
|
2429
2429
|
changes: {
|
|
2430
|
-
type: "patch" | "file";
|
|
2431
|
-
filePath: string;
|
|
2432
2430
|
content: string;
|
|
2431
|
+
type: "file" | "patch";
|
|
2432
|
+
filePath: string;
|
|
2433
2433
|
}[];
|
|
2434
2434
|
changesAlreadyApplied: {
|
|
2435
|
-
type: "patch" | "file";
|
|
2436
|
-
filePath: string;
|
|
2437
2435
|
content: string;
|
|
2436
|
+
type: "file" | "patch";
|
|
2437
|
+
filePath: string;
|
|
2438
2438
|
}[];
|
|
2439
2439
|
addedFileVersions: {
|
|
2440
2440
|
path: string;
|
|
@@ -2455,8 +2455,8 @@ export declare const SERVER_MESSAGE_SCHEMAS: {
|
|
|
2455
2455
|
isUpToDate: boolean;
|
|
2456
2456
|
latestVersion: string;
|
|
2457
2457
|
} | {
|
|
2458
|
-
type: "action-error";
|
|
2459
2458
|
message: string;
|
|
2459
|
+
type: "action-error";
|
|
2460
2460
|
} | {
|
|
2461
2461
|
type: "commit-message-response";
|
|
2462
2462
|
commitMessage: string;
|
|
@@ -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
|
-
type: "patch" | "file";
|
|
2505
|
-
filePath: string;
|
|
2506
2504
|
content: string;
|
|
2507
|
-
|
|
2508
|
-
type: "patch" | "file";
|
|
2505
|
+
type: "file" | "patch";
|
|
2509
2506
|
filePath: string;
|
|
2507
|
+
}, {
|
|
2510
2508
|
content: string;
|
|
2509
|
+
type: "file" | "patch";
|
|
2510
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2518
|
-
filePath: string;
|
|
2519
2517
|
content: string;
|
|
2520
|
-
|
|
2521
|
-
type: "patch" | "file";
|
|
2518
|
+
type: "file" | "patch";
|
|
2522
2519
|
filePath: string;
|
|
2520
|
+
}, {
|
|
2523
2521
|
content: string;
|
|
2522
|
+
type: "file" | "patch";
|
|
2523
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2549
|
-
filePath: string;
|
|
2550
2548
|
content: string;
|
|
2549
|
+
type: "file" | "patch";
|
|
2550
|
+
filePath: string;
|
|
2551
2551
|
}[];
|
|
2552
2552
|
changesAlreadyApplied: {
|
|
2553
|
-
type: "patch" | "file";
|
|
2554
|
-
filePath: string;
|
|
2555
2553
|
content: string;
|
|
2554
|
+
type: "file" | "patch";
|
|
2555
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2574
|
-
filePath: string;
|
|
2575
2573
|
content: string;
|
|
2574
|
+
type: "file" | "patch";
|
|
2575
|
+
filePath: string;
|
|
2576
2576
|
}[];
|
|
2577
2577
|
changesAlreadyApplied: {
|
|
2578
|
-
type: "patch" | "file";
|
|
2579
|
-
filePath: string;
|
|
2580
2578
|
content: string;
|
|
2579
|
+
type: "file" | "patch";
|
|
2580
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2628
|
-
filePath: string;
|
|
2629
2627
|
content: string;
|
|
2630
|
-
|
|
2631
|
-
type: "patch" | "file";
|
|
2628
|
+
type: "file" | "patch";
|
|
2632
2629
|
filePath: string;
|
|
2630
|
+
}, {
|
|
2633
2631
|
content: string;
|
|
2632
|
+
type: "file" | "patch";
|
|
2633
|
+
filePath: 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
|
-
type: "patch" | "file";
|
|
2641
|
-
filePath: string;
|
|
2642
2640
|
content: string;
|
|
2643
|
-
|
|
2644
|
-
type: "patch" | "file";
|
|
2641
|
+
type: "file" | "patch";
|
|
2645
2642
|
filePath: string;
|
|
2643
|
+
}, {
|
|
2646
2644
|
content: string;
|
|
2645
|
+
type: "file" | "patch";
|
|
2646
|
+
filePath: string;
|
|
2647
2647
|
}>, "many">;
|
|
2648
2648
|
addedFileVersions: z.ZodArray<z.ZodObject<{
|
|
2649
2649
|
path: z.ZodString;
|
|
@@ -2661,14 +2661,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2661
2661
|
userInputId: string;
|
|
2662
2662
|
response: string;
|
|
2663
2663
|
changes: {
|
|
2664
|
-
type: "patch" | "file";
|
|
2665
|
-
filePath: string;
|
|
2666
2664
|
content: string;
|
|
2665
|
+
type: "file" | "patch";
|
|
2666
|
+
filePath: string;
|
|
2667
2667
|
}[];
|
|
2668
2668
|
changesAlreadyApplied: {
|
|
2669
|
-
type: "patch" | "file";
|
|
2670
|
-
filePath: string;
|
|
2671
2669
|
content: string;
|
|
2670
|
+
type: "file" | "patch";
|
|
2671
|
+
filePath: string;
|
|
2672
2672
|
}[];
|
|
2673
2673
|
addedFileVersions: {
|
|
2674
2674
|
path: string;
|
|
@@ -2685,14 +2685,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2685
2685
|
userInputId: string;
|
|
2686
2686
|
response: string;
|
|
2687
2687
|
changes: {
|
|
2688
|
-
type: "patch" | "file";
|
|
2689
|
-
filePath: string;
|
|
2690
2688
|
content: string;
|
|
2689
|
+
type: "file" | "patch";
|
|
2690
|
+
filePath: string;
|
|
2691
2691
|
}[];
|
|
2692
2692
|
changesAlreadyApplied: {
|
|
2693
|
-
type: "patch" | "file";
|
|
2694
|
-
filePath: string;
|
|
2695
2693
|
content: string;
|
|
2694
|
+
type: "file" | "patch";
|
|
2695
|
+
filePath: string;
|
|
2696
2696
|
}[];
|
|
2697
2697
|
addedFileVersions: {
|
|
2698
2698
|
path: string;
|
|
@@ -2782,11 +2782,11 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2782
2782
|
type: z.ZodLiteral<"action-error">;
|
|
2783
2783
|
message: z.ZodString;
|
|
2784
2784
|
}, "strip", z.ZodTypeAny, {
|
|
2785
|
-
type: "action-error";
|
|
2786
2785
|
message: string;
|
|
2787
|
-
}, {
|
|
2788
2786
|
type: "action-error";
|
|
2787
|
+
}, {
|
|
2789
2788
|
message: string;
|
|
2789
|
+
type: "action-error";
|
|
2790
2790
|
}>, z.ZodObject<{
|
|
2791
2791
|
type: z.ZodLiteral<"commit-message-response">;
|
|
2792
2792
|
commitMessage: 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
|
-
type: "patch" | "file";
|
|
2824
|
-
filePath: string;
|
|
2825
2823
|
content: string;
|
|
2824
|
+
type: "file" | "patch";
|
|
2825
|
+
filePath: string;
|
|
2826
2826
|
}[];
|
|
2827
2827
|
changesAlreadyApplied: {
|
|
2828
|
-
type: "patch" | "file";
|
|
2829
|
-
filePath: string;
|
|
2830
2828
|
content: string;
|
|
2829
|
+
type: "file" | "patch";
|
|
2830
|
+
filePath: string;
|
|
2831
2831
|
}[];
|
|
2832
2832
|
addedFileVersions: {
|
|
2833
2833
|
path: string;
|
|
@@ -2853,14 +2853,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2853
2853
|
userInputId: string;
|
|
2854
2854
|
response: string;
|
|
2855
2855
|
changes: {
|
|
2856
|
-
type: "patch" | "file";
|
|
2857
|
-
filePath: string;
|
|
2858
2856
|
content: string;
|
|
2857
|
+
type: "file" | "patch";
|
|
2858
|
+
filePath: string;
|
|
2859
2859
|
}[];
|
|
2860
2860
|
changesAlreadyApplied: {
|
|
2861
|
-
type: "patch" | "file";
|
|
2862
|
-
filePath: string;
|
|
2863
2861
|
content: string;
|
|
2862
|
+
type: "file" | "patch";
|
|
2863
|
+
filePath: string;
|
|
2864
2864
|
}[];
|
|
2865
2865
|
addedFileVersions: {
|
|
2866
2866
|
path: string;
|
|
@@ -2881,8 +2881,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2881
2881
|
isUpToDate: boolean;
|
|
2882
2882
|
latestVersion: string;
|
|
2883
2883
|
} | {
|
|
2884
|
-
type: "action-error";
|
|
2885
2884
|
message: string;
|
|
2885
|
+
type: "action-error";
|
|
2886
2886
|
} | {
|
|
2887
2887
|
type: "commit-message-response";
|
|
2888
2888
|
commitMessage: 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
|
-
type: "patch" | "file";
|
|
2914
|
-
filePath: string;
|
|
2915
2913
|
content: string;
|
|
2914
|
+
type: "file" | "patch";
|
|
2915
|
+
filePath: string;
|
|
2916
2916
|
}[];
|
|
2917
2917
|
changesAlreadyApplied: {
|
|
2918
|
-
type: "patch" | "file";
|
|
2919
|
-
filePath: string;
|
|
2920
2918
|
content: string;
|
|
2919
|
+
type: "file" | "patch";
|
|
2920
|
+
filePath: string;
|
|
2921
2921
|
}[];
|
|
2922
2922
|
addedFileVersions: {
|
|
2923
2923
|
path: string;
|
|
@@ -2943,14 +2943,14 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2943
2943
|
userInputId: string;
|
|
2944
2944
|
response: string;
|
|
2945
2945
|
changes: {
|
|
2946
|
-
type: "patch" | "file";
|
|
2947
|
-
filePath: string;
|
|
2948
2946
|
content: string;
|
|
2947
|
+
type: "file" | "patch";
|
|
2948
|
+
filePath: string;
|
|
2949
2949
|
}[];
|
|
2950
2950
|
changesAlreadyApplied: {
|
|
2951
|
-
type: "patch" | "file";
|
|
2952
|
-
filePath: string;
|
|
2953
2951
|
content: string;
|
|
2952
|
+
type: "file" | "patch";
|
|
2953
|
+
filePath: string;
|
|
2954
2954
|
}[];
|
|
2955
2955
|
addedFileVersions: {
|
|
2956
2956
|
path: string;
|
|
@@ -2971,8 +2971,8 @@ export declare const SERVER_MESSAGE_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
|
2971
2971
|
isUpToDate: boolean;
|
|
2972
2972
|
latestVersion: string;
|
|
2973
2973
|
} | {
|
|
2974
|
-
type: "action-error";
|
|
2975
2974
|
message: string;
|
|
2975
|
+
type: "action-error";
|
|
2976
2976
|
} | {
|
|
2977
2977
|
type: "commit-message-response";
|
|
2978
2978
|
commitMessage: string;
|