@j0hanz/filesystem-mcp 1.13.2 → 1.14.0
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/README.md +117 -100
- package/dist/config.d.ts +0 -1
- package/dist/lib/errors.js +5 -2
- package/dist/lib/file-operations/metadata.js +9 -3
- package/dist/lib/file-operations/search.d.ts +0 -1
- package/dist/lib/file-operations/search.js +5 -12
- package/dist/lib/fs-helpers.js +10 -11
- package/dist/lib/globs.d.ts +2 -0
- package/dist/lib/globs.js +19 -0
- package/dist/lib/zod-codecs.d.ts +2 -0
- package/dist/lib/zod-codecs.js +18 -0
- package/dist/pkg-info.d.ts +1 -0
- package/dist/pkg-info.js +2 -2
- package/dist/prompts.js +3 -3
- package/dist/resources/generated-instructions.js +3 -12
- package/dist/resources/tool-catalog.js +10 -41
- package/dist/resources/tool-info.d.ts +0 -1
- package/dist/resources/tool-info.js +11 -39
- package/dist/resources/workflows.js +8 -1
- package/dist/schemas.d.ts +179 -459
- package/dist/schemas.js +156 -165
- package/dist/server/roots-manager.js +1 -1
- package/dist/tools/apply-patch.js +19 -8
- package/dist/tools/calculate-hash.js +3 -5
- package/dist/tools/create-directory.js +1 -1
- package/dist/tools/delete-file.js +2 -4
- package/dist/tools/diff-files.js +1 -3
- package/dist/tools/edit-file.js +5 -2
- package/dist/tools/list-directory.js +10 -15
- package/dist/tools/move-file.js +14 -26
- package/dist/tools/read-multiple.js +12 -7
- package/dist/tools/read.js +1 -2
- package/dist/tools/replace-in-files.js +58 -94
- package/dist/tools/roots.js +2 -6
- package/dist/tools/search-content.js +150 -186
- package/dist/tools/search-files.js +5 -9
- package/dist/tools/shared.d.ts +7 -0
- package/dist/tools/shared.js +38 -11
- package/dist/tools/stat-many.js +6 -4
- package/dist/tools/stat.js +2 -2
- package/dist/tools/tree.js +1 -1
- package/dist/tools/write-file.js +1 -5
- package/package.json +2 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -66,7 +66,6 @@ export declare const SearchContentInputSchema: z.ZodObject<{
|
|
|
66
66
|
filePattern: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
67
67
|
includeHidden: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
68
68
|
includeIgnored: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
69
|
-
multiline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
70
69
|
}, z.core.$strict>;
|
|
71
70
|
export declare const ReadFileInputSchema: z.ZodObject<{
|
|
72
71
|
includeHash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -90,32 +89,11 @@ export declare const GetMultipleFileInfoInputSchema: z.ZodObject<{
|
|
|
90
89
|
paths: z.ZodArray<z.ZodString>;
|
|
91
90
|
}, z.core.$strict>;
|
|
92
91
|
export declare const ListAllowedDirectoriesOutputSchema: z.ZodObject<{
|
|
93
|
-
ok: z.
|
|
92
|
+
ok: z.ZodLiteral<true>;
|
|
94
93
|
directories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
-
rootsCount: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
hasMultipleRoots: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
98
|
-
code: z.ZodEnum<{
|
|
99
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
100
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
101
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
102
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
103
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
104
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
105
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
106
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
107
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
108
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
109
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
110
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
111
|
-
}>;
|
|
112
|
-
message: z.ZodString;
|
|
113
|
-
path: z.ZodOptional<z.ZodString>;
|
|
114
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
115
|
-
}, z.core.$strict>>;
|
|
116
94
|
}, z.core.$strict>;
|
|
117
95
|
export declare const ListDirectoryOutputSchema: z.ZodObject<{
|
|
118
|
-
ok: z.
|
|
96
|
+
ok: z.ZodLiteral<true>;
|
|
119
97
|
path: z.ZodOptional<z.ZodString>;
|
|
120
98
|
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
99
|
name: z.ZodString;
|
|
@@ -126,76 +104,33 @@ export declare const ListDirectoryOutputSchema: z.ZodObject<{
|
|
|
126
104
|
symlink: "symlink";
|
|
127
105
|
other: "other";
|
|
128
106
|
}>;
|
|
129
|
-
size: z.ZodOptional<z.
|
|
130
|
-
modified: z.ZodOptional<z.
|
|
107
|
+
size: z.ZodOptional<z.ZodInt>;
|
|
108
|
+
modified: z.ZodOptional<z.ZodISODateTime>;
|
|
131
109
|
}, z.core.$strict>>>;
|
|
132
|
-
totalEntries: z.ZodOptional<z.
|
|
110
|
+
totalEntries: z.ZodOptional<z.ZodInt>;
|
|
133
111
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
totalFiles: z.ZodOptional<z.ZodNumber>;
|
|
137
|
-
totalDirectories: z.ZodOptional<z.ZodNumber>;
|
|
138
|
-
maxDepthReached: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
totalFiles: z.ZodOptional<z.ZodInt>;
|
|
113
|
+
totalDirectories: z.ZodOptional<z.ZodInt>;
|
|
139
114
|
stoppedReason: z.ZodOptional<z.ZodEnum<{
|
|
140
115
|
maxEntries: "maxEntries";
|
|
141
116
|
aborted: "aborted";
|
|
142
117
|
}>>;
|
|
143
|
-
skippedInaccessible: z.ZodOptional<z.
|
|
144
|
-
symlinksNotFollowed: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
skippedInaccessible: z.ZodOptional<z.ZodInt>;
|
|
145
119
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
146
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
147
|
-
code: z.ZodEnum<{
|
|
148
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
149
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
150
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
151
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
152
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
153
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
154
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
155
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
156
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
157
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
158
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
159
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
160
|
-
}>;
|
|
161
|
-
message: z.ZodString;
|
|
162
|
-
path: z.ZodOptional<z.ZodString>;
|
|
163
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
164
|
-
}, z.core.$strict>>;
|
|
165
120
|
}, z.core.$strict>;
|
|
166
121
|
export declare const SearchFilesOutputSchema: z.ZodObject<{
|
|
167
|
-
totalMatches: z.ZodOptional<z.
|
|
122
|
+
totalMatches: z.ZodOptional<z.ZodInt>;
|
|
168
123
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
169
124
|
resourceUri: z.ZodOptional<z.ZodString>;
|
|
170
|
-
|
|
171
|
-
code: z.ZodEnum<{
|
|
172
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
173
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
174
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
175
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
176
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
177
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
178
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
179
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
180
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
181
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
182
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
183
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
184
|
-
}>;
|
|
185
|
-
message: z.ZodString;
|
|
186
|
-
path: z.ZodOptional<z.ZodString>;
|
|
187
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
188
|
-
}, z.core.$strict>>;
|
|
189
|
-
ok: z.ZodBoolean;
|
|
125
|
+
ok: z.ZodLiteral<true>;
|
|
190
126
|
root: z.ZodOptional<z.ZodString>;
|
|
191
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
192
127
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
128
|
path: z.ZodString;
|
|
194
|
-
size: z.ZodOptional<z.
|
|
195
|
-
modified: z.ZodOptional<z.
|
|
129
|
+
size: z.ZodOptional<z.ZodInt>;
|
|
130
|
+
modified: z.ZodOptional<z.ZodISODateTime>;
|
|
196
131
|
}, z.core.$strict>>>;
|
|
197
|
-
filesScanned: z.ZodOptional<z.
|
|
198
|
-
skippedInaccessible: z.ZodOptional<z.
|
|
132
|
+
filesScanned: z.ZodOptional<z.ZodInt>;
|
|
133
|
+
skippedInaccessible: z.ZodOptional<z.ZodInt>;
|
|
199
134
|
stoppedReason: z.ZodOptional<z.ZodEnum<{
|
|
200
135
|
maxResults: "maxResults";
|
|
201
136
|
maxFiles: "maxFiles";
|
|
@@ -204,49 +139,24 @@ export declare const SearchFilesOutputSchema: z.ZodObject<{
|
|
|
204
139
|
nextCursor: z.ZodOptional<z.ZodString>;
|
|
205
140
|
}, z.core.$strict>;
|
|
206
141
|
export declare const SearchContentOutputSchema: z.ZodObject<{
|
|
207
|
-
totalMatches: z.ZodOptional<z.
|
|
142
|
+
totalMatches: z.ZodOptional<z.ZodInt>;
|
|
208
143
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
209
144
|
resourceUri: z.ZodOptional<z.ZodString>;
|
|
210
|
-
|
|
211
|
-
code: z.ZodEnum<{
|
|
212
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
213
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
214
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
215
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
216
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
217
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
218
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
219
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
220
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
221
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
222
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
223
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
224
|
-
}>;
|
|
225
|
-
message: z.ZodString;
|
|
226
|
-
path: z.ZodOptional<z.ZodString>;
|
|
227
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
228
|
-
}, z.core.$strict>>;
|
|
229
|
-
ok: z.ZodBoolean;
|
|
230
|
-
patternType: z.ZodOptional<z.ZodEnum<{
|
|
231
|
-
literal: "literal";
|
|
232
|
-
regex: "regex";
|
|
233
|
-
}>>;
|
|
234
|
-
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
145
|
+
ok: z.ZodLiteral<true>;
|
|
235
146
|
matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
147
|
file: z.ZodString;
|
|
237
|
-
line: z.
|
|
238
|
-
column: z.ZodOptional<z.
|
|
148
|
+
line: z.ZodInt;
|
|
149
|
+
column: z.ZodOptional<z.ZodInt>;
|
|
239
150
|
content: z.ZodString;
|
|
240
|
-
matchCount: z.
|
|
151
|
+
matchCount: z.ZodInt;
|
|
241
152
|
contextBefore: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
153
|
contextAfter: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
243
154
|
}, z.core.$strict>>>;
|
|
244
|
-
filesScanned: z.ZodOptional<z.
|
|
245
|
-
filesMatched: z.ZodOptional<z.
|
|
246
|
-
skippedTooLarge: z.ZodOptional<z.
|
|
247
|
-
skippedBinary: z.ZodOptional<z.
|
|
248
|
-
skippedInaccessible: z.ZodOptional<z.
|
|
249
|
-
linesSkippedDueToRegexTimeout: z.ZodOptional<z.ZodNumber>;
|
|
155
|
+
filesScanned: z.ZodOptional<z.ZodInt>;
|
|
156
|
+
filesMatched: z.ZodOptional<z.ZodInt>;
|
|
157
|
+
skippedTooLarge: z.ZodOptional<z.ZodInt>;
|
|
158
|
+
skippedBinary: z.ZodOptional<z.ZodInt>;
|
|
159
|
+
skippedInaccessible: z.ZodOptional<z.ZodInt>;
|
|
250
160
|
stoppedReason: z.ZodOptional<z.ZodEnum<{
|
|
251
161
|
maxResults: "maxResults";
|
|
252
162
|
maxFiles: "maxFiles";
|
|
@@ -254,90 +164,40 @@ export declare const SearchContentOutputSchema: z.ZodObject<{
|
|
|
254
164
|
}>>;
|
|
255
165
|
}, z.core.$strict>;
|
|
256
166
|
export declare const TreeOutputSchema: z.ZodObject<{
|
|
257
|
-
ok: z.
|
|
167
|
+
ok: z.ZodLiteral<true>;
|
|
258
168
|
root: z.ZodOptional<z.ZodString>;
|
|
259
169
|
tree: z.ZodOptional<z.ZodType<TreeEntry, unknown, z.core.$ZodTypeInternals<TreeEntry, unknown>>>;
|
|
260
170
|
ascii: z.ZodOptional<z.ZodString>;
|
|
261
171
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
262
|
-
totalEntries: z.ZodOptional<z.
|
|
263
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
264
|
-
code: z.ZodEnum<{
|
|
265
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
266
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
267
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
268
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
269
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
270
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
271
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
272
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
273
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
274
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
275
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
276
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
277
|
-
}>;
|
|
278
|
-
message: z.ZodString;
|
|
279
|
-
path: z.ZodOptional<z.ZodString>;
|
|
280
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
281
|
-
}, z.core.$strict>>;
|
|
172
|
+
totalEntries: z.ZodOptional<z.ZodInt>;
|
|
282
173
|
}, z.core.$strict>;
|
|
283
174
|
export declare const ReadFileOutputSchema: z.ZodObject<{
|
|
284
175
|
content: z.ZodOptional<z.ZodString>;
|
|
285
176
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
286
177
|
resourceUri: z.ZodOptional<z.ZodString>;
|
|
287
|
-
totalLines: z.ZodOptional<z.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}>>;
|
|
294
|
-
head: z.ZodOptional<z.ZodNumber>;
|
|
295
|
-
tail: z.ZodOptional<z.ZodNumber>;
|
|
296
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
298
|
-
linesRead: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
totalLines: z.ZodOptional<z.ZodInt>;
|
|
179
|
+
head: z.ZodOptional<z.ZodInt>;
|
|
180
|
+
tail: z.ZodOptional<z.ZodInt>;
|
|
181
|
+
startLine: z.ZodOptional<z.ZodInt>;
|
|
182
|
+
endLine: z.ZodOptional<z.ZodInt>;
|
|
183
|
+
linesRead: z.ZodOptional<z.ZodInt>;
|
|
299
184
|
hasMoreLines: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
-
ok: z.
|
|
185
|
+
ok: z.ZodLiteral<true>;
|
|
301
186
|
path: z.ZodOptional<z.ZodString>;
|
|
302
187
|
contentHash: z.ZodOptional<z.ZodString>;
|
|
303
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
304
|
-
code: z.ZodEnum<{
|
|
305
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
306
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
307
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
308
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
309
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
310
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
311
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
312
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
313
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
314
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
315
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
316
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
317
|
-
}>;
|
|
318
|
-
message: z.ZodString;
|
|
319
|
-
path: z.ZodOptional<z.ZodString>;
|
|
320
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
321
|
-
}, z.core.$strict>>;
|
|
322
188
|
}, z.core.$strict>;
|
|
323
189
|
export declare const ReadMultipleFilesOutputSchema: z.ZodObject<{
|
|
324
|
-
ok: z.
|
|
190
|
+
ok: z.ZodLiteral<true>;
|
|
325
191
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
326
192
|
content: z.ZodOptional<z.ZodString>;
|
|
327
193
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
328
194
|
resourceUri: z.ZodOptional<z.ZodString>;
|
|
329
|
-
totalLines: z.ZodOptional<z.
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}>>;
|
|
336
|
-
head: z.ZodOptional<z.ZodNumber>;
|
|
337
|
-
tail: z.ZodOptional<z.ZodNumber>;
|
|
338
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
339
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
340
|
-
linesRead: z.ZodOptional<z.ZodNumber>;
|
|
195
|
+
totalLines: z.ZodOptional<z.ZodInt>;
|
|
196
|
+
head: z.ZodOptional<z.ZodInt>;
|
|
197
|
+
tail: z.ZodOptional<z.ZodInt>;
|
|
198
|
+
startLine: z.ZodOptional<z.ZodInt>;
|
|
199
|
+
endLine: z.ZodOptional<z.ZodInt>;
|
|
200
|
+
linesRead: z.ZodOptional<z.ZodInt>;
|
|
341
201
|
hasMoreLines: z.ZodOptional<z.ZodBoolean>;
|
|
342
202
|
path: z.ZodString;
|
|
343
203
|
truncationReason: z.ZodOptional<z.ZodEnum<{
|
|
@@ -346,36 +206,34 @@ export declare const ReadMultipleFilesOutputSchema: z.ZodObject<{
|
|
|
346
206
|
tail: "tail";
|
|
347
207
|
externalized: "externalized";
|
|
348
208
|
}>>;
|
|
349
|
-
|
|
350
|
-
|
|
209
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
210
|
+
code: z.ZodEnum<{
|
|
211
|
+
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
212
|
+
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
213
|
+
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
214
|
+
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
215
|
+
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
216
|
+
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
217
|
+
readonly E_CANCELLED: "E_CANCELLED";
|
|
218
|
+
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
219
|
+
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
220
|
+
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
221
|
+
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
222
|
+
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
223
|
+
}>;
|
|
224
|
+
message: z.ZodString;
|
|
225
|
+
path: z.ZodOptional<z.ZodString>;
|
|
226
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
227
|
+
}, z.core.$strict>>;
|
|
351
228
|
}, z.core.$strict>>>;
|
|
352
229
|
summary: z.ZodOptional<z.ZodObject<{
|
|
353
|
-
total: z.
|
|
354
|
-
succeeded: z.
|
|
355
|
-
failed: z.
|
|
356
|
-
}, z.core.$strict>>;
|
|
357
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
358
|
-
code: z.ZodEnum<{
|
|
359
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
360
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
361
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
362
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
363
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
364
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
365
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
366
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
367
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
368
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
369
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
370
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
371
|
-
}>;
|
|
372
|
-
message: z.ZodString;
|
|
373
|
-
path: z.ZodOptional<z.ZodString>;
|
|
374
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
230
|
+
total: z.ZodInt;
|
|
231
|
+
succeeded: z.ZodInt;
|
|
232
|
+
failed: z.ZodInt;
|
|
375
233
|
}, z.core.$strict>>;
|
|
376
234
|
}, z.core.$strict>;
|
|
377
235
|
export declare const GetFileInfoOutputSchema: z.ZodObject<{
|
|
378
|
-
ok: z.
|
|
236
|
+
ok: z.ZodLiteral<true>;
|
|
379
237
|
info: z.ZodOptional<z.ZodObject<{
|
|
380
238
|
name: z.ZodString;
|
|
381
239
|
path: z.ZodString;
|
|
@@ -385,38 +243,19 @@ export declare const GetFileInfoOutputSchema: z.ZodObject<{
|
|
|
385
243
|
symlink: "symlink";
|
|
386
244
|
other: "other";
|
|
387
245
|
}>;
|
|
388
|
-
size: z.
|
|
389
|
-
tokenEstimate: z.ZodOptional<z.
|
|
390
|
-
created: z.
|
|
391
|
-
modified: z.
|
|
392
|
-
accessed: z.
|
|
246
|
+
size: z.ZodInt;
|
|
247
|
+
tokenEstimate: z.ZodOptional<z.ZodInt>;
|
|
248
|
+
created: z.ZodISODateTime;
|
|
249
|
+
modified: z.ZodISODateTime;
|
|
250
|
+
accessed: z.ZodISODateTime;
|
|
393
251
|
permissions: z.ZodString;
|
|
394
252
|
isHidden: z.ZodBoolean;
|
|
395
253
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
396
254
|
symlinkTarget: z.ZodOptional<z.ZodString>;
|
|
397
255
|
}, z.core.$strict>>;
|
|
398
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
399
|
-
code: z.ZodEnum<{
|
|
400
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
401
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
402
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
403
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
404
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
405
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
406
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
407
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
408
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
409
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
410
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
411
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
412
|
-
}>;
|
|
413
|
-
message: z.ZodString;
|
|
414
|
-
path: z.ZodOptional<z.ZodString>;
|
|
415
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
416
|
-
}, z.core.$strict>>;
|
|
417
256
|
}, z.core.$strict>;
|
|
418
257
|
export declare const GetMultipleFileInfoOutputSchema: z.ZodObject<{
|
|
419
|
-
ok: z.
|
|
258
|
+
ok: z.ZodLiteral<true>;
|
|
420
259
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
421
260
|
path: z.ZodString;
|
|
422
261
|
info: z.ZodOptional<z.ZodObject<{
|
|
@@ -428,41 +267,40 @@ export declare const GetMultipleFileInfoOutputSchema: z.ZodObject<{
|
|
|
428
267
|
symlink: "symlink";
|
|
429
268
|
other: "other";
|
|
430
269
|
}>;
|
|
431
|
-
size: z.
|
|
432
|
-
tokenEstimate: z.ZodOptional<z.
|
|
433
|
-
created: z.
|
|
434
|
-
modified: z.
|
|
435
|
-
accessed: z.
|
|
270
|
+
size: z.ZodInt;
|
|
271
|
+
tokenEstimate: z.ZodOptional<z.ZodInt>;
|
|
272
|
+
created: z.ZodISODateTime;
|
|
273
|
+
modified: z.ZodISODateTime;
|
|
274
|
+
accessed: z.ZodISODateTime;
|
|
436
275
|
permissions: z.ZodString;
|
|
437
276
|
isHidden: z.ZodBoolean;
|
|
438
277
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
439
278
|
symlinkTarget: z.ZodOptional<z.ZodString>;
|
|
440
279
|
}, z.core.$strict>>;
|
|
441
|
-
error: z.ZodOptional<z.
|
|
280
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
281
|
+
code: z.ZodEnum<{
|
|
282
|
+
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
283
|
+
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
284
|
+
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
285
|
+
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
286
|
+
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
287
|
+
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
288
|
+
readonly E_CANCELLED: "E_CANCELLED";
|
|
289
|
+
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
290
|
+
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
291
|
+
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
292
|
+
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
293
|
+
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
294
|
+
}>;
|
|
295
|
+
message: z.ZodString;
|
|
296
|
+
path: z.ZodOptional<z.ZodString>;
|
|
297
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strict>>;
|
|
442
299
|
}, z.core.$strict>>>;
|
|
443
300
|
summary: z.ZodOptional<z.ZodObject<{
|
|
444
|
-
total: z.
|
|
445
|
-
succeeded: z.
|
|
446
|
-
failed: z.
|
|
447
|
-
}, z.core.$strict>>;
|
|
448
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
449
|
-
code: z.ZodEnum<{
|
|
450
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
451
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
452
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
453
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
454
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
455
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
456
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
457
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
458
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
459
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
460
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
461
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
462
|
-
}>;
|
|
463
|
-
message: z.ZodString;
|
|
464
|
-
path: z.ZodOptional<z.ZodString>;
|
|
465
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
301
|
+
total: z.ZodInt;
|
|
302
|
+
succeeded: z.ZodInt;
|
|
303
|
+
failed: z.ZodInt;
|
|
466
304
|
}, z.core.$strict>>;
|
|
467
305
|
}, z.core.$strict>;
|
|
468
306
|
export declare const CreateDirectoryInputSchema: z.ZodObject<{
|
|
@@ -470,56 +308,18 @@ export declare const CreateDirectoryInputSchema: z.ZodObject<{
|
|
|
470
308
|
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
471
309
|
}, z.core.$strict>;
|
|
472
310
|
export declare const CreateDirectoryOutputSchema: z.ZodObject<{
|
|
473
|
-
ok: z.
|
|
311
|
+
ok: z.ZodLiteral<true>;
|
|
474
312
|
path: z.ZodOptional<z.ZodString>;
|
|
475
313
|
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
476
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
477
|
-
code: z.ZodEnum<{
|
|
478
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
479
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
480
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
481
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
482
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
483
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
484
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
485
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
486
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
487
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
488
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
489
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
490
|
-
}>;
|
|
491
|
-
message: z.ZodString;
|
|
492
|
-
path: z.ZodOptional<z.ZodString>;
|
|
493
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
494
|
-
}, z.core.$strict>>;
|
|
495
314
|
}, z.core.$strict>;
|
|
496
315
|
export declare const WriteFileInputSchema: z.ZodObject<{
|
|
497
316
|
path: z.ZodString;
|
|
498
317
|
content: z.ZodString;
|
|
499
318
|
}, z.core.$strict>;
|
|
500
319
|
export declare const WriteFileOutputSchema: z.ZodObject<{
|
|
501
|
-
ok: z.
|
|
320
|
+
ok: z.ZodLiteral<true>;
|
|
502
321
|
path: z.ZodOptional<z.ZodString>;
|
|
503
|
-
bytesWritten: z.ZodOptional<z.
|
|
504
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
505
|
-
code: z.ZodEnum<{
|
|
506
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
507
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
508
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
509
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
510
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
511
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
512
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
513
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
514
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
515
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
516
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
517
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
518
|
-
}>;
|
|
519
|
-
message: z.ZodString;
|
|
520
|
-
path: z.ZodOptional<z.ZodString>;
|
|
521
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
522
|
-
}, z.core.$strict>>;
|
|
322
|
+
bytesWritten: z.ZodOptional<z.ZodInt>;
|
|
523
323
|
}, z.core.$strict>;
|
|
524
324
|
export declare const EditFileInputSchema: z.ZodObject<{
|
|
525
325
|
path: z.ZodString;
|
|
@@ -533,31 +333,12 @@ export declare const EditFileInputSchema: z.ZodObject<{
|
|
|
533
333
|
export declare const EditFileOutputSchema: z.ZodObject<{
|
|
534
334
|
ok: z.ZodBoolean;
|
|
535
335
|
path: z.ZodOptional<z.ZodString>;
|
|
536
|
-
appliedEdits: z.ZodOptional<z.
|
|
537
|
-
linesAdded: z.ZodOptional<z.
|
|
538
|
-
linesRemoved: z.ZodOptional<z.
|
|
539
|
-
lineRange: z.ZodOptional<z.ZodTuple<[z.
|
|
336
|
+
appliedEdits: z.ZodOptional<z.ZodInt>;
|
|
337
|
+
linesAdded: z.ZodOptional<z.ZodInt>;
|
|
338
|
+
linesRemoved: z.ZodOptional<z.ZodInt>;
|
|
339
|
+
lineRange: z.ZodOptional<z.ZodTuple<[z.ZodInt, z.ZodInt], null>>;
|
|
540
340
|
unmatchedEdits: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
541
341
|
diff: z.ZodOptional<z.ZodString>;
|
|
542
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
543
|
-
code: z.ZodEnum<{
|
|
544
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
545
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
546
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
547
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
548
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
549
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
550
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
551
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
552
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
553
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
554
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
555
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
556
|
-
}>;
|
|
557
|
-
message: z.ZodString;
|
|
558
|
-
path: z.ZodOptional<z.ZodString>;
|
|
559
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
560
|
-
}, z.core.$strict>>;
|
|
561
342
|
}, z.core.$strict>;
|
|
562
343
|
export declare const MoveFileInputSchema: z.ZodObject<{
|
|
563
344
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -571,27 +352,26 @@ export declare const MoveFileOutputSchema: z.ZodObject<{
|
|
|
571
352
|
destination: z.ZodOptional<z.ZodString>;
|
|
572
353
|
failed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
573
354
|
source: z.ZodString;
|
|
574
|
-
error: z.
|
|
355
|
+
error: z.ZodObject<{
|
|
356
|
+
code: z.ZodEnum<{
|
|
357
|
+
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
358
|
+
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
359
|
+
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
360
|
+
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
361
|
+
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
362
|
+
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
363
|
+
readonly E_CANCELLED: "E_CANCELLED";
|
|
364
|
+
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
365
|
+
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
366
|
+
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
367
|
+
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
368
|
+
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
369
|
+
}>;
|
|
370
|
+
message: z.ZodString;
|
|
371
|
+
path: z.ZodOptional<z.ZodString>;
|
|
372
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strict>;
|
|
575
374
|
}, z.core.$strict>>>;
|
|
576
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
577
|
-
code: z.ZodEnum<{
|
|
578
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
579
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
580
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
581
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
582
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
583
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
584
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
585
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
586
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
587
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
588
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
589
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
590
|
-
}>;
|
|
591
|
-
message: z.ZodString;
|
|
592
|
-
path: z.ZodOptional<z.ZodString>;
|
|
593
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
594
|
-
}, z.core.$strict>>;
|
|
595
375
|
}, z.core.$strict>;
|
|
596
376
|
export declare const DeleteFileInputSchema: z.ZodObject<{
|
|
597
377
|
path: z.ZodString;
|
|
@@ -599,56 +379,18 @@ export declare const DeleteFileInputSchema: z.ZodObject<{
|
|
|
599
379
|
ignoreIfNotExists: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
600
380
|
}, z.core.$strict>;
|
|
601
381
|
export declare const DeleteFileOutputSchema: z.ZodObject<{
|
|
602
|
-
ok: z.
|
|
382
|
+
ok: z.ZodLiteral<true>;
|
|
603
383
|
path: z.ZodOptional<z.ZodString>;
|
|
604
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
605
|
-
code: z.ZodEnum<{
|
|
606
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
607
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
608
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
609
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
610
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
611
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
612
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
613
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
614
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
615
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
616
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
617
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
618
|
-
}>;
|
|
619
|
-
message: z.ZodString;
|
|
620
|
-
path: z.ZodOptional<z.ZodString>;
|
|
621
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
622
|
-
}, z.core.$strict>>;
|
|
623
384
|
}, z.core.$strict>;
|
|
624
385
|
export declare const CalculateHashInputSchema: z.ZodObject<{
|
|
625
386
|
path: z.ZodString;
|
|
626
387
|
}, z.core.$strict>;
|
|
627
388
|
export declare const CalculateHashOutputSchema: z.ZodObject<{
|
|
628
|
-
ok: z.
|
|
389
|
+
ok: z.ZodLiteral<true>;
|
|
629
390
|
path: z.ZodOptional<z.ZodString>;
|
|
630
391
|
hash: z.ZodOptional<z.ZodString>;
|
|
631
392
|
isDirectory: z.ZodOptional<z.ZodBoolean>;
|
|
632
|
-
fileCount: z.ZodOptional<z.
|
|
633
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
634
|
-
code: z.ZodEnum<{
|
|
635
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
636
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
637
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
638
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
639
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
640
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
641
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
642
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
643
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
644
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
645
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
646
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
647
|
-
}>;
|
|
648
|
-
message: z.ZodString;
|
|
649
|
-
path: z.ZodOptional<z.ZodString>;
|
|
650
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
651
|
-
}, z.core.$strict>>;
|
|
393
|
+
fileCount: z.ZodOptional<z.ZodInt>;
|
|
652
394
|
}, z.core.$strict>;
|
|
653
395
|
export declare const DiffFilesInputSchema: z.ZodObject<{
|
|
654
396
|
original: z.ZodString;
|
|
@@ -658,33 +400,14 @@ export declare const DiffFilesInputSchema: z.ZodObject<{
|
|
|
658
400
|
stripTrailingCr: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
659
401
|
}, z.core.$strict>;
|
|
660
402
|
export declare const DiffFilesOutputSchema: z.ZodObject<{
|
|
661
|
-
ok: z.
|
|
403
|
+
ok: z.ZodLiteral<true>;
|
|
662
404
|
diff: z.ZodOptional<z.ZodString>;
|
|
663
405
|
isIdentical: z.ZodOptional<z.ZodBoolean>;
|
|
664
|
-
linesAdded: z.ZodOptional<z.
|
|
665
|
-
linesRemoved: z.ZodOptional<z.
|
|
666
|
-
hunksCount: z.ZodOptional<z.
|
|
406
|
+
linesAdded: z.ZodOptional<z.ZodInt>;
|
|
407
|
+
linesRemoved: z.ZodOptional<z.ZodInt>;
|
|
408
|
+
hunksCount: z.ZodOptional<z.ZodInt>;
|
|
667
409
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
668
410
|
resourceUri: z.ZodOptional<z.ZodString>;
|
|
669
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
670
|
-
code: z.ZodEnum<{
|
|
671
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
672
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
673
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
674
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
675
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
676
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
677
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
678
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
679
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
680
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
681
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
682
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
683
|
-
}>;
|
|
684
|
-
message: z.ZodString;
|
|
685
|
-
path: z.ZodOptional<z.ZodString>;
|
|
686
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
687
|
-
}, z.core.$strict>>;
|
|
688
411
|
}, z.core.$strict>;
|
|
689
412
|
export declare const ApplyPatchInputSchema: z.ZodObject<{
|
|
690
413
|
path: z.ZodString;
|
|
@@ -697,36 +420,35 @@ export declare const ApplyPatchOutputSchema: z.ZodObject<{
|
|
|
697
420
|
ok: z.ZodBoolean;
|
|
698
421
|
path: z.ZodOptional<z.ZodString>;
|
|
699
422
|
applied: z.ZodOptional<z.ZodBoolean>;
|
|
700
|
-
hunksApplied: z.ZodOptional<z.
|
|
701
|
-
linesAdded: z.ZodOptional<z.
|
|
702
|
-
linesRemoved: z.ZodOptional<z.
|
|
423
|
+
hunksApplied: z.ZodOptional<z.ZodInt>;
|
|
424
|
+
linesAdded: z.ZodOptional<z.ZodInt>;
|
|
425
|
+
linesRemoved: z.ZodOptional<z.ZodInt>;
|
|
703
426
|
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
704
427
|
path: z.ZodString;
|
|
705
428
|
applied: z.ZodBoolean;
|
|
706
|
-
hunksApplied: z.ZodOptional<z.
|
|
707
|
-
linesAdded: z.ZodOptional<z.
|
|
708
|
-
linesRemoved: z.ZodOptional<z.
|
|
709
|
-
error: z.ZodOptional<z.
|
|
429
|
+
hunksApplied: z.ZodOptional<z.ZodInt>;
|
|
430
|
+
linesAdded: z.ZodOptional<z.ZodInt>;
|
|
431
|
+
linesRemoved: z.ZodOptional<z.ZodInt>;
|
|
432
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
433
|
+
code: z.ZodEnum<{
|
|
434
|
+
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
435
|
+
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
436
|
+
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
437
|
+
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
438
|
+
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
439
|
+
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
440
|
+
readonly E_CANCELLED: "E_CANCELLED";
|
|
441
|
+
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
442
|
+
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
443
|
+
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
444
|
+
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
445
|
+
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
446
|
+
}>;
|
|
447
|
+
message: z.ZodString;
|
|
448
|
+
path: z.ZodOptional<z.ZodString>;
|
|
449
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strict>>;
|
|
710
451
|
}, z.core.$strict>>>;
|
|
711
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
712
|
-
code: z.ZodEnum<{
|
|
713
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
714
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
715
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
716
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
717
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
718
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
719
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
720
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
721
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
722
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
723
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
724
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
725
|
-
}>;
|
|
726
|
-
message: z.ZodString;
|
|
727
|
-
path: z.ZodOptional<z.ZodString>;
|
|
728
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
729
|
-
}, z.core.$strict>>;
|
|
730
452
|
}, z.core.$strict>;
|
|
731
453
|
export declare const SearchAndReplaceInputSchema: z.ZodObject<{
|
|
732
454
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -742,18 +464,36 @@ export declare const SearchAndReplaceInputSchema: z.ZodObject<{
|
|
|
742
464
|
maxFiles: z.ZodOptional<z.ZodInt>;
|
|
743
465
|
}, z.core.$strict>;
|
|
744
466
|
export declare const SearchAndReplaceOutputSchema: z.ZodObject<{
|
|
745
|
-
ok: z.
|
|
746
|
-
matches: z.ZodOptional<z.
|
|
747
|
-
filesChanged: z.ZodOptional<z.
|
|
748
|
-
processedFiles: z.ZodOptional<z.
|
|
749
|
-
failedFiles: z.ZodOptional<z.
|
|
467
|
+
ok: z.ZodLiteral<true>;
|
|
468
|
+
matches: z.ZodOptional<z.ZodInt>;
|
|
469
|
+
filesChanged: z.ZodOptional<z.ZodInt>;
|
|
470
|
+
processedFiles: z.ZodOptional<z.ZodInt>;
|
|
471
|
+
failedFiles: z.ZodOptional<z.ZodInt>;
|
|
750
472
|
failures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
751
473
|
path: z.ZodString;
|
|
752
|
-
error: z.
|
|
474
|
+
error: z.ZodObject<{
|
|
475
|
+
code: z.ZodEnum<{
|
|
476
|
+
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
477
|
+
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
478
|
+
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
479
|
+
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
480
|
+
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
481
|
+
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
482
|
+
readonly E_CANCELLED: "E_CANCELLED";
|
|
483
|
+
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
484
|
+
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
485
|
+
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
486
|
+
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
487
|
+
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
488
|
+
}>;
|
|
489
|
+
message: z.ZodString;
|
|
490
|
+
path: z.ZodOptional<z.ZodString>;
|
|
491
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
492
|
+
}, z.core.$strict>;
|
|
753
493
|
}, z.core.$strict>>>;
|
|
754
494
|
changedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
755
495
|
path: z.ZodString;
|
|
756
|
-
matches: z.
|
|
496
|
+
matches: z.ZodInt;
|
|
757
497
|
}, z.core.$strict>>>;
|
|
758
498
|
changedFilesTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
759
499
|
diff: z.ZodOptional<z.ZodString>;
|
|
@@ -761,25 +501,5 @@ export declare const SearchAndReplaceOutputSchema: z.ZodObject<{
|
|
|
761
501
|
stoppedReason: z.ZodOptional<z.ZodEnum<{
|
|
762
502
|
maxFiles: "maxFiles";
|
|
763
503
|
}>>;
|
|
764
|
-
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
765
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
766
|
-
code: z.ZodEnum<{
|
|
767
|
-
readonly E_ACCESS_DENIED: "E_ACCESS_DENIED";
|
|
768
|
-
readonly E_NOT_FOUND: "E_NOT_FOUND";
|
|
769
|
-
readonly E_NOT_FILE: "E_NOT_FILE";
|
|
770
|
-
readonly E_NOT_DIRECTORY: "E_NOT_DIRECTORY";
|
|
771
|
-
readonly E_TOO_LARGE: "E_TOO_LARGE";
|
|
772
|
-
readonly E_TIMEOUT: "E_TIMEOUT";
|
|
773
|
-
readonly E_CANCELLED: "E_CANCELLED";
|
|
774
|
-
readonly E_INVALID_PATTERN: "E_INVALID_PATTERN";
|
|
775
|
-
readonly E_INVALID_INPUT: "E_INVALID_INPUT";
|
|
776
|
-
readonly E_PERMISSION_DENIED: "E_PERMISSION_DENIED";
|
|
777
|
-
readonly E_SYMLINK_NOT_ALLOWED: "E_SYMLINK_NOT_ALLOWED";
|
|
778
|
-
readonly E_UNKNOWN: "E_UNKNOWN";
|
|
779
|
-
}>;
|
|
780
|
-
message: z.ZodString;
|
|
781
|
-
path: z.ZodOptional<z.ZodString>;
|
|
782
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
783
|
-
}, z.core.$strict>>;
|
|
784
504
|
}, z.core.$strict>;
|
|
785
505
|
export {};
|