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