@j0hanz/filesystem-context-mcp 1.2.8 → 1.3.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 +125 -19
- package/dist/__tests__/lib/file-operations/compute-checksums.test.d.ts +2 -0
- package/dist/__tests__/lib/file-operations/compute-checksums.test.d.ts.map +1 -0
- package/dist/__tests__/lib/file-operations/compute-checksums.test.js +59 -0
- package/dist/__tests__/lib/file-operations/compute-checksums.test.js.map +1 -0
- package/dist/__tests__/lib/file-operations/get-multiple-file-info.test.d.ts +2 -0
- package/dist/__tests__/lib/file-operations/get-multiple-file-info.test.d.ts.map +1 -0
- package/dist/__tests__/lib/file-operations/get-multiple-file-info.test.js +46 -0
- package/dist/__tests__/lib/file-operations/get-multiple-file-info.test.js.map +1 -0
- package/dist/__tests__/lib/file-operations/read-multiple-files-edge-cases.test.js +21 -0
- package/dist/__tests__/lib/file-operations/read-multiple-files-edge-cases.test.js.map +1 -1
- package/dist/__tests__/lib/file-operations/read-multiple-files.test.js +18 -0
- package/dist/__tests__/lib/file-operations/read-multiple-files.test.js.map +1 -1
- package/dist/__tests__/lib/file-operations/search-definitions.test.d.ts +2 -0
- package/dist/__tests__/lib/file-operations/search-definitions.test.d.ts.map +1 -0
- package/dist/__tests__/lib/file-operations/search-definitions.test.js +274 -0
- package/dist/__tests__/lib/file-operations/search-definitions.test.js.map +1 -0
- package/dist/__tests__/lib/file-operations/sorting.test.d.ts +2 -0
- package/dist/__tests__/lib/file-operations/sorting.test.d.ts.map +1 -0
- package/dist/__tests__/lib/file-operations/sorting.test.js +47 -0
- package/dist/__tests__/lib/file-operations/sorting.test.js.map +1 -0
- package/dist/__tests__/lib/fs-helpers/utf8.test.d.ts +2 -0
- package/dist/__tests__/lib/fs-helpers/utf8.test.d.ts.map +1 -0
- package/dist/__tests__/lib/fs-helpers/utf8.test.js +43 -0
- package/dist/__tests__/lib/fs-helpers/utf8.test.js.map +1 -0
- package/dist/__tests__/lib/path-validation-errors.test.d.ts +2 -0
- package/dist/__tests__/lib/path-validation-errors.test.d.ts.map +1 -0
- package/dist/__tests__/lib/path-validation-errors.test.js +35 -0
- package/dist/__tests__/lib/path-validation-errors.test.js.map +1 -0
- package/dist/__tests__/lib/path-validation-roots.test.d.ts +2 -0
- package/dist/__tests__/lib/path-validation-roots.test.d.ts.map +1 -0
- package/dist/__tests__/lib/path-validation-roots.test.js +42 -0
- package/dist/__tests__/lib/path-validation-roots.test.js.map +1 -0
- package/dist/__tests__/lib/path-validation.test.js +5 -0
- package/dist/__tests__/lib/path-validation.test.js.map +1 -1
- package/dist/__tests__/security/filesystem-boundary.test.js +20 -12
- package/dist/__tests__/security/filesystem-boundary.test.js.map +1 -1
- package/dist/config/types.d.ts +64 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/instructions.md +93 -28
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +17 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/file-operations/analyze-directory-helpers.d.ts +24 -0
- package/dist/lib/file-operations/analyze-directory-helpers.d.ts.map +1 -0
- package/dist/lib/file-operations/analyze-directory-helpers.js +50 -0
- package/dist/lib/file-operations/analyze-directory-helpers.js.map +1 -0
- package/dist/lib/file-operations/analyze-directory.d.ts +1 -0
- package/dist/lib/file-operations/analyze-directory.d.ts.map +1 -1
- package/dist/lib/file-operations/analyze-directory.js +3 -58
- package/dist/lib/file-operations/analyze-directory.js.map +1 -1
- package/dist/lib/file-operations/batch-results.d.ts +12 -0
- package/dist/lib/file-operations/batch-results.d.ts.map +1 -0
- package/dist/lib/file-operations/batch-results.js +23 -0
- package/dist/lib/file-operations/batch-results.js.map +1 -0
- package/dist/lib/file-operations/compute-checksums.d.ts +9 -0
- package/dist/lib/file-operations/compute-checksums.d.ts.map +1 -0
- package/dist/lib/file-operations/compute-checksums.js +121 -0
- package/dist/lib/file-operations/compute-checksums.js.map +1 -0
- package/dist/lib/file-operations/directory-helpers.d.ts.map +1 -1
- package/dist/lib/file-operations/directory-helpers.js +18 -10
- package/dist/lib/file-operations/directory-helpers.js.map +1 -1
- package/dist/lib/file-operations/directory-tree-helpers.d.ts.map +1 -1
- package/dist/lib/file-operations/directory-tree-helpers.js +8 -1
- package/dist/lib/file-operations/directory-tree-helpers.js.map +1 -1
- package/dist/lib/file-operations/directory-tree.d.ts +1 -0
- package/dist/lib/file-operations/directory-tree.d.ts.map +1 -1
- package/dist/lib/file-operations/directory-tree.js +3 -9
- package/dist/lib/file-operations/directory-tree.js.map +1 -1
- package/dist/lib/file-operations/get-multiple-file-info.d.ts +7 -0
- package/dist/lib/file-operations/get-multiple-file-info.d.ts.map +1 -0
- package/dist/lib/file-operations/get-multiple-file-info.js +59 -0
- package/dist/lib/file-operations/get-multiple-file-info.js.map +1 -0
- package/dist/lib/file-operations/list-directory-entry.d.ts +18 -0
- package/dist/lib/file-operations/list-directory-entry.d.ts.map +1 -0
- package/dist/lib/file-operations/list-directory-entry.js +90 -0
- package/dist/lib/file-operations/list-directory-entry.js.map +1 -0
- package/dist/lib/file-operations/list-directory-helpers.d.ts +2 -0
- package/dist/lib/file-operations/list-directory-helpers.d.ts.map +1 -1
- package/dist/lib/file-operations/list-directory-helpers.js +84 -103
- package/dist/lib/file-operations/list-directory-helpers.js.map +1 -1
- package/dist/lib/file-operations/list-directory.d.ts +2 -0
- package/dist/lib/file-operations/list-directory.d.ts.map +1 -1
- package/dist/lib/file-operations/list-directory.js +5 -8
- package/dist/lib/file-operations/list-directory.js.map +1 -1
- package/dist/lib/file-operations/read-multiple-files.d.ts +2 -0
- package/dist/lib/file-operations/read-multiple-files.d.ts.map +1 -1
- package/dist/lib/file-operations/read-multiple-files.js +44 -11
- package/dist/lib/file-operations/read-multiple-files.js.map +1 -1
- package/dist/lib/file-operations/search/engine-options.d.ts.map +1 -1
- package/dist/lib/file-operations/search/engine-options.js +1 -8
- package/dist/lib/file-operations/search/engine-options.js.map +1 -1
- package/dist/lib/file-operations/search/engine.d.ts +1 -1
- package/dist/lib/file-operations/search/engine.d.ts.map +1 -1
- package/dist/lib/file-operations/search/engine.js +4 -1
- package/dist/lib/file-operations/search/engine.js.map +1 -1
- package/dist/lib/file-operations/search-content.d.ts +1 -0
- package/dist/lib/file-operations/search-content.d.ts.map +1 -1
- package/dist/lib/file-operations/search-content.js +1 -1
- package/dist/lib/file-operations/search-content.js.map +1 -1
- package/dist/lib/file-operations/search-definitions.d.ts +6 -0
- package/dist/lib/file-operations/search-definitions.d.ts.map +1 -0
- package/dist/lib/file-operations/search-definitions.js +247 -0
- package/dist/lib/file-operations/search-definitions.js.map +1 -0
- package/dist/lib/file-operations/search-files-helpers.d.ts +2 -24
- package/dist/lib/file-operations/search-files-helpers.d.ts.map +1 -1
- package/dist/lib/file-operations/search-files-helpers.js +3 -39
- package/dist/lib/file-operations/search-files-helpers.js.map +1 -1
- package/dist/lib/file-operations/search-files-options.d.ts +31 -0
- package/dist/lib/file-operations/search-files-options.d.ts.map +1 -0
- package/dist/lib/file-operations/search-files-options.js +33 -0
- package/dist/lib/file-operations/search-files-options.js.map +1 -0
- package/dist/lib/file-operations/search-files.d.ts +1 -1
- package/dist/lib/file-operations/search-files.d.ts.map +1 -1
- package/dist/lib/file-operations/search-files.js +3 -2
- package/dist/lib/file-operations/search-files.js.map +1 -1
- package/dist/lib/file-operations.d.ts +3 -0
- package/dist/lib/file-operations.d.ts.map +1 -1
- package/dist/lib/file-operations.js +3 -0
- package/dist/lib/file-operations.js.map +1 -1
- package/dist/lib/fs-helpers/binary-detect.d.ts.map +1 -1
- package/dist/lib/fs-helpers/binary-detect.js +13 -16
- package/dist/lib/fs-helpers/binary-detect.js.map +1 -1
- package/dist/lib/fs-helpers/readers/read-file-content.d.ts +29 -0
- package/dist/lib/fs-helpers/readers/read-file-content.d.ts.map +1 -0
- package/dist/lib/fs-helpers/readers/read-file-content.js +25 -0
- package/dist/lib/fs-helpers/readers/read-file-content.js.map +1 -0
- package/dist/lib/fs-helpers/readers/read-file.d.ts +1 -0
- package/dist/lib/fs-helpers/readers/read-file.d.ts.map +1 -1
- package/dist/lib/fs-helpers/readers/read-file.js +29 -29
- package/dist/lib/fs-helpers/readers/read-file.js.map +1 -1
- package/dist/lib/merge-defined.d.ts +2 -0
- package/dist/lib/merge-defined.d.ts.map +1 -0
- package/dist/lib/merge-defined.js +8 -0
- package/dist/lib/merge-defined.js.map +1 -0
- package/dist/lib/path-validation/validators.d.ts.map +1 -1
- package/dist/lib/path-validation/validators.js +8 -0
- package/dist/lib/path-validation/validators.js.map +1 -1
- package/dist/schemas/common.d.ts +2 -2
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -2
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/inputs/checksums.d.ts +10 -0
- package/dist/schemas/inputs/checksums.d.ts.map +1 -0
- package/dist/schemas/inputs/checksums.js +30 -0
- package/dist/schemas/inputs/checksums.js.map +1 -0
- package/dist/schemas/inputs/directory.d.ts +29 -0
- package/dist/schemas/inputs/directory.d.ts.map +1 -0
- package/dist/schemas/inputs/directory.js +75 -0
- package/dist/schemas/inputs/directory.js.map +1 -0
- package/dist/schemas/inputs/file-info.d.ts +9 -0
- package/dist/schemas/inputs/file-info.d.ts.map +1 -0
- package/dist/schemas/inputs/file-info.js +20 -0
- package/dist/schemas/inputs/file-info.js.map +1 -0
- package/dist/schemas/inputs/read.d.ts +26 -0
- package/dist/schemas/inputs/read.d.ts.map +1 -0
- package/dist/schemas/inputs/read.js +54 -0
- package/dist/schemas/inputs/read.js.map +1 -0
- package/dist/schemas/inputs/search.d.ts +44 -0
- package/dist/schemas/inputs/search.d.ts.map +1 -0
- package/dist/schemas/inputs/search.js +115 -0
- package/dist/schemas/inputs/search.js.map +1 -0
- package/dist/schemas/inputs.d.ts +5 -80
- package/dist/schemas/inputs.d.ts.map +1 -1
- package/dist/schemas/inputs.js +5 -195
- package/dist/schemas/inputs.js.map +1 -1
- package/dist/schemas/outputs/checksums.d.ts +93 -0
- package/dist/schemas/outputs/checksums.d.ts.map +1 -0
- package/dist/schemas/outputs/checksums.js +23 -0
- package/dist/schemas/outputs/checksums.js.map +1 -0
- package/dist/schemas/outputs/directory.d.ts +419 -0
- package/dist/schemas/outputs/directory.d.ts.map +1 -0
- package/dist/schemas/outputs/directory.js +81 -0
- package/dist/schemas/outputs/directory.js.map +1 -0
- package/dist/schemas/outputs/file-info.d.ts +270 -0
- package/dist/schemas/outputs/file-info.d.ts.map +1 -0
- package/dist/schemas/outputs/file-info.js +57 -0
- package/dist/schemas/outputs/file-info.js.map +1 -0
- package/dist/schemas/outputs/read.d.ts +187 -0
- package/dist/schemas/outputs/read.d.ts.map +1 -0
- package/dist/schemas/outputs/read.js +39 -0
- package/dist/schemas/outputs/read.js.map +1 -0
- package/dist/schemas/outputs/search.d.ts +360 -0
- package/dist/schemas/outputs/search.d.ts.map +1 -0
- package/dist/schemas/outputs/search.js +98 -0
- package/dist/schemas/outputs/search.js.map +1 -0
- package/dist/schemas/outputs.d.ts +5 -933
- package/dist/schemas/outputs.d.ts.map +1 -1
- package/dist/schemas/outputs.js +5 -190
- package/dist/schemas/outputs.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +24 -14
- package/dist/server.js.map +1 -1
- package/dist/tools/analyze-directory.d.ts.map +1 -1
- package/dist/tools/analyze-directory.js +2 -2
- package/dist/tools/analyze-directory.js.map +1 -1
- package/dist/tools/compute-checksums.d.ts +3 -0
- package/dist/tools/compute-checksums.d.ts.map +1 -0
- package/dist/tools/compute-checksums.js +77 -0
- package/dist/tools/compute-checksums.js.map +1 -0
- package/dist/tools/directory-tree.d.ts.map +1 -1
- package/dist/tools/directory-tree.js +6 -2
- package/dist/tools/directory-tree.js.map +1 -1
- package/dist/tools/get-multiple-file-info.d.ts +3 -0
- package/dist/tools/get-multiple-file-info.d.ts.map +1 -0
- package/dist/tools/get-multiple-file-info.js +95 -0
- package/dist/tools/get-multiple-file-info.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +6 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list-allowed-dirs.d.ts.map +1 -1
- package/dist/tools/list-allowed-dirs.js +14 -3
- package/dist/tools/list-allowed-dirs.js.map +1 -1
- package/dist/tools/list-directory.d.ts.map +1 -1
- package/dist/tools/list-directory.js +12 -4
- package/dist/tools/list-directory.js.map +1 -1
- package/dist/tools/read-file.d.ts.map +1 -1
- package/dist/tools/read-file.js +8 -0
- package/dist/tools/read-file.js.map +1 -1
- package/dist/tools/read-multiple-files.d.ts.map +1 -1
- package/dist/tools/read-multiple-files.js +10 -2
- package/dist/tools/read-multiple-files.js.map +1 -1
- package/dist/tools/search-definitions.d.ts +3 -0
- package/dist/tools/search-definitions.d.ts.map +1 -0
- package/dist/tools/search-definitions.js +130 -0
- package/dist/tools/search-definitions.js.map +1 -0
- package/dist/tools/search-files.d.ts.map +1 -1
- package/dist/tools/search-files.js +9 -4
- package/dist/tools/search-files.js.map +1 -1
- package/dist/tools/shared/search-formatting.d.ts.map +1 -1
- package/dist/tools/shared/search-formatting.js +4 -1
- package/dist/tools/shared/search-formatting.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,934 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
accessStatus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
-
path: z.ZodString;
|
|
8
|
-
accessible: z.ZodBoolean;
|
|
9
|
-
readable: z.ZodBoolean;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
readable: boolean;
|
|
12
|
-
path: string;
|
|
13
|
-
accessible: boolean;
|
|
14
|
-
}, {
|
|
15
|
-
readable: boolean;
|
|
16
|
-
path: string;
|
|
17
|
-
accessible: boolean;
|
|
18
|
-
}>, "many">>;
|
|
19
|
-
hint: z.ZodOptional<z.ZodString>;
|
|
20
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
code: z.ZodString;
|
|
22
|
-
message: z.ZodString;
|
|
23
|
-
path: z.ZodOptional<z.ZodString>;
|
|
24
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
code: string;
|
|
27
|
-
message: string;
|
|
28
|
-
path?: string | undefined;
|
|
29
|
-
suggestion?: string | undefined;
|
|
30
|
-
}, {
|
|
31
|
-
code: string;
|
|
32
|
-
message: string;
|
|
33
|
-
path?: string | undefined;
|
|
34
|
-
suggestion?: string | undefined;
|
|
35
|
-
}>>;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
ok: boolean;
|
|
38
|
-
error?: {
|
|
39
|
-
code: string;
|
|
40
|
-
message: string;
|
|
41
|
-
path?: string | undefined;
|
|
42
|
-
suggestion?: string | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
allowedDirectories?: string[] | undefined;
|
|
45
|
-
count?: number | undefined;
|
|
46
|
-
accessStatus?: {
|
|
47
|
-
readable: boolean;
|
|
48
|
-
path: string;
|
|
49
|
-
accessible: boolean;
|
|
50
|
-
}[] | undefined;
|
|
51
|
-
hint?: string | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
ok: boolean;
|
|
54
|
-
error?: {
|
|
55
|
-
code: string;
|
|
56
|
-
message: string;
|
|
57
|
-
path?: string | undefined;
|
|
58
|
-
suggestion?: string | undefined;
|
|
59
|
-
} | undefined;
|
|
60
|
-
allowedDirectories?: string[] | undefined;
|
|
61
|
-
count?: number | undefined;
|
|
62
|
-
accessStatus?: {
|
|
63
|
-
readable: boolean;
|
|
64
|
-
path: string;
|
|
65
|
-
accessible: boolean;
|
|
66
|
-
}[] | undefined;
|
|
67
|
-
hint?: string | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
export declare const ListDirectoryOutputSchema: z.ZodObject<{
|
|
70
|
-
ok: z.ZodBoolean;
|
|
71
|
-
path: z.ZodOptional<z.ZodString>;
|
|
72
|
-
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
73
|
-
name: z.ZodString;
|
|
74
|
-
type: z.ZodEnum<["file", "directory", "symlink", "other"]>;
|
|
75
|
-
extension: z.ZodOptional<z.ZodString>;
|
|
76
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
modified: z.ZodOptional<z.ZodString>;
|
|
78
|
-
symlinkTarget: z.ZodOptional<z.ZodString>;
|
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
|
80
|
-
name: string;
|
|
81
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
82
|
-
size?: number | undefined;
|
|
83
|
-
modified?: string | undefined;
|
|
84
|
-
symlinkTarget?: string | undefined;
|
|
85
|
-
extension?: string | undefined;
|
|
86
|
-
}, {
|
|
87
|
-
name: string;
|
|
88
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
89
|
-
size?: number | undefined;
|
|
90
|
-
modified?: string | undefined;
|
|
91
|
-
symlinkTarget?: string | undefined;
|
|
92
|
-
extension?: string | undefined;
|
|
93
|
-
}>, "many">>;
|
|
94
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
95
|
-
totalEntries: z.ZodOptional<z.ZodNumber>;
|
|
96
|
-
} & {
|
|
97
|
-
totalFiles: z.ZodNumber;
|
|
98
|
-
totalDirectories: z.ZodNumber;
|
|
99
|
-
maxDepthReached: z.ZodOptional<z.ZodNumber>;
|
|
100
|
-
truncated: z.ZodBoolean;
|
|
101
|
-
skippedInaccessible: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
symlinksNotFollowed: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
truncated: boolean;
|
|
105
|
-
totalFiles: number;
|
|
106
|
-
totalDirectories: number;
|
|
107
|
-
skippedInaccessible?: number | undefined;
|
|
108
|
-
maxDepthReached?: number | undefined;
|
|
109
|
-
symlinksNotFollowed?: number | undefined;
|
|
110
|
-
totalEntries?: number | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
truncated: boolean;
|
|
113
|
-
totalFiles: number;
|
|
114
|
-
totalDirectories: number;
|
|
115
|
-
skippedInaccessible?: number | undefined;
|
|
116
|
-
maxDepthReached?: number | undefined;
|
|
117
|
-
symlinksNotFollowed?: number | undefined;
|
|
118
|
-
totalEntries?: number | undefined;
|
|
119
|
-
}>>;
|
|
120
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
code: z.ZodString;
|
|
122
|
-
message: z.ZodString;
|
|
123
|
-
path: z.ZodOptional<z.ZodString>;
|
|
124
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
125
|
-
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
code: string;
|
|
127
|
-
message: string;
|
|
128
|
-
path?: string | undefined;
|
|
129
|
-
suggestion?: string | undefined;
|
|
130
|
-
}, {
|
|
131
|
-
code: string;
|
|
132
|
-
message: string;
|
|
133
|
-
path?: string | undefined;
|
|
134
|
-
suggestion?: string | undefined;
|
|
135
|
-
}>>;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
ok: boolean;
|
|
138
|
-
entries?: {
|
|
139
|
-
name: string;
|
|
140
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
141
|
-
size?: number | undefined;
|
|
142
|
-
modified?: string | undefined;
|
|
143
|
-
symlinkTarget?: string | undefined;
|
|
144
|
-
extension?: string | undefined;
|
|
145
|
-
}[] | undefined;
|
|
146
|
-
error?: {
|
|
147
|
-
code: string;
|
|
148
|
-
message: string;
|
|
149
|
-
path?: string | undefined;
|
|
150
|
-
suggestion?: string | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
summary?: {
|
|
153
|
-
truncated: boolean;
|
|
154
|
-
totalFiles: number;
|
|
155
|
-
totalDirectories: number;
|
|
156
|
-
skippedInaccessible?: number | undefined;
|
|
157
|
-
maxDepthReached?: number | undefined;
|
|
158
|
-
symlinksNotFollowed?: number | undefined;
|
|
159
|
-
totalEntries?: number | undefined;
|
|
160
|
-
} | undefined;
|
|
161
|
-
path?: string | undefined;
|
|
162
|
-
}, {
|
|
163
|
-
ok: boolean;
|
|
164
|
-
entries?: {
|
|
165
|
-
name: string;
|
|
166
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
167
|
-
size?: number | undefined;
|
|
168
|
-
modified?: string | undefined;
|
|
169
|
-
symlinkTarget?: string | undefined;
|
|
170
|
-
extension?: string | undefined;
|
|
171
|
-
}[] | undefined;
|
|
172
|
-
error?: {
|
|
173
|
-
code: string;
|
|
174
|
-
message: string;
|
|
175
|
-
path?: string | undefined;
|
|
176
|
-
suggestion?: string | undefined;
|
|
177
|
-
} | undefined;
|
|
178
|
-
summary?: {
|
|
179
|
-
truncated: boolean;
|
|
180
|
-
totalFiles: number;
|
|
181
|
-
totalDirectories: number;
|
|
182
|
-
skippedInaccessible?: number | undefined;
|
|
183
|
-
maxDepthReached?: number | undefined;
|
|
184
|
-
symlinksNotFollowed?: number | undefined;
|
|
185
|
-
totalEntries?: number | undefined;
|
|
186
|
-
} | undefined;
|
|
187
|
-
path?: string | undefined;
|
|
188
|
-
}>;
|
|
189
|
-
export declare const SearchFilesOutputSchema: z.ZodObject<{
|
|
190
|
-
ok: z.ZodBoolean;
|
|
191
|
-
basePath: z.ZodOptional<z.ZodString>;
|
|
192
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
193
|
-
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
|
-
path: z.ZodString;
|
|
195
|
-
type: z.ZodEnum<["file", "directory", "symlink", "other"]>;
|
|
196
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
197
|
-
modified: z.ZodOptional<z.ZodString>;
|
|
198
|
-
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
path: string;
|
|
200
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
201
|
-
size?: number | undefined;
|
|
202
|
-
modified?: string | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
path: string;
|
|
205
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
206
|
-
size?: number | undefined;
|
|
207
|
-
modified?: string | undefined;
|
|
208
|
-
}>, "many">>;
|
|
209
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
210
|
-
matched: z.ZodNumber;
|
|
211
|
-
truncated: z.ZodBoolean;
|
|
212
|
-
skippedInaccessible: z.ZodOptional<z.ZodNumber>;
|
|
213
|
-
filesScanned: z.ZodOptional<z.ZodNumber>;
|
|
214
|
-
stoppedReason: z.ZodOptional<z.ZodEnum<["maxResults", "maxFiles", "timeout"]>>;
|
|
215
|
-
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
truncated: boolean;
|
|
217
|
-
matched: number;
|
|
218
|
-
skippedInaccessible?: number | undefined;
|
|
219
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
220
|
-
filesScanned?: number | undefined;
|
|
221
|
-
}, {
|
|
222
|
-
truncated: boolean;
|
|
223
|
-
matched: number;
|
|
224
|
-
skippedInaccessible?: number | undefined;
|
|
225
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
226
|
-
filesScanned?: number | undefined;
|
|
227
|
-
}>>;
|
|
228
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
229
|
-
code: z.ZodString;
|
|
230
|
-
message: z.ZodString;
|
|
231
|
-
path: z.ZodOptional<z.ZodString>;
|
|
232
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
233
|
-
}, "strip", z.ZodTypeAny, {
|
|
234
|
-
code: string;
|
|
235
|
-
message: string;
|
|
236
|
-
path?: string | undefined;
|
|
237
|
-
suggestion?: string | undefined;
|
|
238
|
-
}, {
|
|
239
|
-
code: string;
|
|
240
|
-
message: string;
|
|
241
|
-
path?: string | undefined;
|
|
242
|
-
suggestion?: string | undefined;
|
|
243
|
-
}>>;
|
|
244
|
-
}, "strip", z.ZodTypeAny, {
|
|
245
|
-
ok: boolean;
|
|
246
|
-
pattern?: string | undefined;
|
|
247
|
-
results?: {
|
|
248
|
-
path: string;
|
|
249
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
250
|
-
size?: number | undefined;
|
|
251
|
-
modified?: string | undefined;
|
|
252
|
-
}[] | undefined;
|
|
253
|
-
error?: {
|
|
254
|
-
code: string;
|
|
255
|
-
message: string;
|
|
256
|
-
path?: string | undefined;
|
|
257
|
-
suggestion?: string | undefined;
|
|
258
|
-
} | undefined;
|
|
259
|
-
summary?: {
|
|
260
|
-
truncated: boolean;
|
|
261
|
-
matched: number;
|
|
262
|
-
skippedInaccessible?: number | undefined;
|
|
263
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
264
|
-
filesScanned?: number | undefined;
|
|
265
|
-
} | undefined;
|
|
266
|
-
basePath?: string | undefined;
|
|
267
|
-
}, {
|
|
268
|
-
ok: boolean;
|
|
269
|
-
pattern?: string | undefined;
|
|
270
|
-
results?: {
|
|
271
|
-
path: string;
|
|
272
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
273
|
-
size?: number | undefined;
|
|
274
|
-
modified?: string | undefined;
|
|
275
|
-
}[] | undefined;
|
|
276
|
-
error?: {
|
|
277
|
-
code: string;
|
|
278
|
-
message: string;
|
|
279
|
-
path?: string | undefined;
|
|
280
|
-
suggestion?: string | undefined;
|
|
281
|
-
} | undefined;
|
|
282
|
-
summary?: {
|
|
283
|
-
truncated: boolean;
|
|
284
|
-
matched: number;
|
|
285
|
-
skippedInaccessible?: number | undefined;
|
|
286
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
287
|
-
filesScanned?: number | undefined;
|
|
288
|
-
} | undefined;
|
|
289
|
-
basePath?: string | undefined;
|
|
290
|
-
}>;
|
|
291
|
-
export declare const ReadFileOutputSchema: z.ZodObject<{
|
|
292
|
-
ok: z.ZodBoolean;
|
|
293
|
-
path: z.ZodOptional<z.ZodString>;
|
|
294
|
-
content: z.ZodOptional<z.ZodString>;
|
|
295
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
-
totalLines: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
298
|
-
code: z.ZodString;
|
|
299
|
-
message: z.ZodString;
|
|
300
|
-
path: z.ZodOptional<z.ZodString>;
|
|
301
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
302
|
-
}, "strip", z.ZodTypeAny, {
|
|
303
|
-
code: string;
|
|
304
|
-
message: string;
|
|
305
|
-
path?: string | undefined;
|
|
306
|
-
suggestion?: string | undefined;
|
|
307
|
-
}, {
|
|
308
|
-
code: string;
|
|
309
|
-
message: string;
|
|
310
|
-
path?: string | undefined;
|
|
311
|
-
suggestion?: string | undefined;
|
|
312
|
-
}>>;
|
|
313
|
-
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
ok: boolean;
|
|
315
|
-
error?: {
|
|
316
|
-
code: string;
|
|
317
|
-
message: string;
|
|
318
|
-
path?: string | undefined;
|
|
319
|
-
suggestion?: string | undefined;
|
|
320
|
-
} | undefined;
|
|
321
|
-
content?: string | undefined;
|
|
322
|
-
truncated?: boolean | undefined;
|
|
323
|
-
totalLines?: number | undefined;
|
|
324
|
-
path?: string | undefined;
|
|
325
|
-
}, {
|
|
326
|
-
ok: boolean;
|
|
327
|
-
error?: {
|
|
328
|
-
code: string;
|
|
329
|
-
message: string;
|
|
330
|
-
path?: string | undefined;
|
|
331
|
-
suggestion?: string | undefined;
|
|
332
|
-
} | undefined;
|
|
333
|
-
content?: string | undefined;
|
|
334
|
-
truncated?: boolean | undefined;
|
|
335
|
-
totalLines?: number | undefined;
|
|
336
|
-
path?: string | undefined;
|
|
337
|
-
}>;
|
|
338
|
-
export declare const ReadMultipleFilesOutputSchema: z.ZodObject<{
|
|
339
|
-
ok: z.ZodBoolean;
|
|
340
|
-
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
341
|
-
path: z.ZodString;
|
|
342
|
-
content: z.ZodOptional<z.ZodString>;
|
|
343
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
344
|
-
totalLines: z.ZodOptional<z.ZodNumber>;
|
|
345
|
-
error: z.ZodOptional<z.ZodString>;
|
|
346
|
-
}, "strip", z.ZodTypeAny, {
|
|
347
|
-
path: string;
|
|
348
|
-
error?: string | undefined;
|
|
349
|
-
content?: string | undefined;
|
|
350
|
-
truncated?: boolean | undefined;
|
|
351
|
-
totalLines?: number | undefined;
|
|
352
|
-
}, {
|
|
353
|
-
path: string;
|
|
354
|
-
error?: string | undefined;
|
|
355
|
-
content?: string | undefined;
|
|
356
|
-
truncated?: boolean | undefined;
|
|
357
|
-
totalLines?: number | undefined;
|
|
358
|
-
}>, "many">>;
|
|
359
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
360
|
-
total: z.ZodNumber;
|
|
361
|
-
succeeded: z.ZodNumber;
|
|
362
|
-
failed: z.ZodNumber;
|
|
363
|
-
}, "strip", z.ZodTypeAny, {
|
|
364
|
-
total: number;
|
|
365
|
-
succeeded: number;
|
|
366
|
-
failed: number;
|
|
367
|
-
}, {
|
|
368
|
-
total: number;
|
|
369
|
-
succeeded: number;
|
|
370
|
-
failed: number;
|
|
371
|
-
}>>;
|
|
372
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
373
|
-
code: z.ZodString;
|
|
374
|
-
message: z.ZodString;
|
|
375
|
-
path: z.ZodOptional<z.ZodString>;
|
|
376
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
377
|
-
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
code: string;
|
|
379
|
-
message: string;
|
|
380
|
-
path?: string | undefined;
|
|
381
|
-
suggestion?: string | undefined;
|
|
382
|
-
}, {
|
|
383
|
-
code: string;
|
|
384
|
-
message: string;
|
|
385
|
-
path?: string | undefined;
|
|
386
|
-
suggestion?: string | undefined;
|
|
387
|
-
}>>;
|
|
388
|
-
}, "strip", z.ZodTypeAny, {
|
|
389
|
-
ok: boolean;
|
|
390
|
-
results?: {
|
|
391
|
-
path: string;
|
|
392
|
-
error?: string | undefined;
|
|
393
|
-
content?: string | undefined;
|
|
394
|
-
truncated?: boolean | undefined;
|
|
395
|
-
totalLines?: number | undefined;
|
|
396
|
-
}[] | undefined;
|
|
397
|
-
error?: {
|
|
398
|
-
code: string;
|
|
399
|
-
message: string;
|
|
400
|
-
path?: string | undefined;
|
|
401
|
-
suggestion?: string | undefined;
|
|
402
|
-
} | undefined;
|
|
403
|
-
summary?: {
|
|
404
|
-
total: number;
|
|
405
|
-
succeeded: number;
|
|
406
|
-
failed: number;
|
|
407
|
-
} | undefined;
|
|
408
|
-
}, {
|
|
409
|
-
ok: boolean;
|
|
410
|
-
results?: {
|
|
411
|
-
path: string;
|
|
412
|
-
error?: string | undefined;
|
|
413
|
-
content?: string | undefined;
|
|
414
|
-
truncated?: boolean | undefined;
|
|
415
|
-
totalLines?: number | undefined;
|
|
416
|
-
}[] | undefined;
|
|
417
|
-
error?: {
|
|
418
|
-
code: string;
|
|
419
|
-
message: string;
|
|
420
|
-
path?: string | undefined;
|
|
421
|
-
suggestion?: string | undefined;
|
|
422
|
-
} | undefined;
|
|
423
|
-
summary?: {
|
|
424
|
-
total: number;
|
|
425
|
-
succeeded: number;
|
|
426
|
-
failed: number;
|
|
427
|
-
} | undefined;
|
|
428
|
-
}>;
|
|
429
|
-
export declare const GetFileInfoOutputSchema: z.ZodObject<{
|
|
430
|
-
ok: z.ZodBoolean;
|
|
431
|
-
info: z.ZodOptional<z.ZodObject<{
|
|
432
|
-
name: z.ZodString;
|
|
433
|
-
path: z.ZodString;
|
|
434
|
-
type: z.ZodEnum<["file", "directory", "symlink", "other"]>;
|
|
435
|
-
size: z.ZodNumber;
|
|
436
|
-
created: z.ZodOptional<z.ZodString>;
|
|
437
|
-
modified: z.ZodString;
|
|
438
|
-
accessed: z.ZodOptional<z.ZodString>;
|
|
439
|
-
permissions: z.ZodString;
|
|
440
|
-
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
441
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
442
|
-
symlinkTarget: z.ZodOptional<z.ZodString>;
|
|
443
|
-
}, "strip", z.ZodTypeAny, {
|
|
444
|
-
name: string;
|
|
445
|
-
size: number;
|
|
446
|
-
path: string;
|
|
447
|
-
modified: string;
|
|
448
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
449
|
-
permissions: string;
|
|
450
|
-
created?: string | undefined;
|
|
451
|
-
accessed?: string | undefined;
|
|
452
|
-
mimeType?: string | undefined;
|
|
453
|
-
symlinkTarget?: string | undefined;
|
|
454
|
-
isHidden?: boolean | undefined;
|
|
455
|
-
}, {
|
|
456
|
-
name: string;
|
|
457
|
-
size: number;
|
|
458
|
-
path: string;
|
|
459
|
-
modified: string;
|
|
460
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
461
|
-
permissions: string;
|
|
462
|
-
created?: string | undefined;
|
|
463
|
-
accessed?: string | undefined;
|
|
464
|
-
mimeType?: string | undefined;
|
|
465
|
-
symlinkTarget?: string | undefined;
|
|
466
|
-
isHidden?: boolean | undefined;
|
|
467
|
-
}>>;
|
|
468
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
469
|
-
code: z.ZodString;
|
|
470
|
-
message: z.ZodString;
|
|
471
|
-
path: z.ZodOptional<z.ZodString>;
|
|
472
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
473
|
-
}, "strip", z.ZodTypeAny, {
|
|
474
|
-
code: string;
|
|
475
|
-
message: string;
|
|
476
|
-
path?: string | undefined;
|
|
477
|
-
suggestion?: string | undefined;
|
|
478
|
-
}, {
|
|
479
|
-
code: string;
|
|
480
|
-
message: string;
|
|
481
|
-
path?: string | undefined;
|
|
482
|
-
suggestion?: string | undefined;
|
|
483
|
-
}>>;
|
|
484
|
-
}, "strip", z.ZodTypeAny, {
|
|
485
|
-
ok: boolean;
|
|
486
|
-
error?: {
|
|
487
|
-
code: string;
|
|
488
|
-
message: string;
|
|
489
|
-
path?: string | undefined;
|
|
490
|
-
suggestion?: string | undefined;
|
|
491
|
-
} | undefined;
|
|
492
|
-
info?: {
|
|
493
|
-
name: string;
|
|
494
|
-
size: number;
|
|
495
|
-
path: string;
|
|
496
|
-
modified: string;
|
|
497
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
498
|
-
permissions: string;
|
|
499
|
-
created?: string | undefined;
|
|
500
|
-
accessed?: string | undefined;
|
|
501
|
-
mimeType?: string | undefined;
|
|
502
|
-
symlinkTarget?: string | undefined;
|
|
503
|
-
isHidden?: boolean | undefined;
|
|
504
|
-
} | undefined;
|
|
505
|
-
}, {
|
|
506
|
-
ok: boolean;
|
|
507
|
-
error?: {
|
|
508
|
-
code: string;
|
|
509
|
-
message: string;
|
|
510
|
-
path?: string | undefined;
|
|
511
|
-
suggestion?: string | undefined;
|
|
512
|
-
} | undefined;
|
|
513
|
-
info?: {
|
|
514
|
-
name: string;
|
|
515
|
-
size: number;
|
|
516
|
-
path: string;
|
|
517
|
-
modified: string;
|
|
518
|
-
type: "file" | "directory" | "symlink" | "other";
|
|
519
|
-
permissions: string;
|
|
520
|
-
created?: string | undefined;
|
|
521
|
-
accessed?: string | undefined;
|
|
522
|
-
mimeType?: string | undefined;
|
|
523
|
-
symlinkTarget?: string | undefined;
|
|
524
|
-
isHidden?: boolean | undefined;
|
|
525
|
-
} | undefined;
|
|
526
|
-
}>;
|
|
527
|
-
export declare const SearchContentOutputSchema: z.ZodObject<{
|
|
528
|
-
ok: z.ZodBoolean;
|
|
529
|
-
basePath: z.ZodOptional<z.ZodString>;
|
|
530
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
531
|
-
filePattern: z.ZodOptional<z.ZodString>;
|
|
532
|
-
matches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
533
|
-
file: z.ZodString;
|
|
534
|
-
line: z.ZodNumber;
|
|
535
|
-
content: z.ZodString;
|
|
536
|
-
contextBefore: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
537
|
-
contextAfter: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
538
|
-
matchCount: z.ZodOptional<z.ZodNumber>;
|
|
539
|
-
}, "strip", z.ZodTypeAny, {
|
|
540
|
-
file: string;
|
|
541
|
-
content: string;
|
|
542
|
-
line: number;
|
|
543
|
-
contextBefore?: string[] | undefined;
|
|
544
|
-
contextAfter?: string[] | undefined;
|
|
545
|
-
matchCount?: number | undefined;
|
|
546
|
-
}, {
|
|
547
|
-
file: string;
|
|
548
|
-
content: string;
|
|
549
|
-
line: number;
|
|
550
|
-
contextBefore?: string[] | undefined;
|
|
551
|
-
contextAfter?: string[] | undefined;
|
|
552
|
-
matchCount?: number | undefined;
|
|
553
|
-
}>, "many">>;
|
|
554
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
555
|
-
filesScanned: z.ZodOptional<z.ZodNumber>;
|
|
556
|
-
filesMatched: z.ZodNumber;
|
|
557
|
-
totalMatches: z.ZodNumber;
|
|
558
|
-
truncated: z.ZodBoolean;
|
|
559
|
-
skippedTooLarge: z.ZodOptional<z.ZodNumber>;
|
|
560
|
-
skippedBinary: z.ZodOptional<z.ZodNumber>;
|
|
561
|
-
skippedInaccessible: z.ZodOptional<z.ZodNumber>;
|
|
562
|
-
linesSkippedDueToRegexTimeout: z.ZodOptional<z.ZodNumber>;
|
|
563
|
-
stoppedReason: z.ZodOptional<z.ZodEnum<["maxResults", "maxFiles", "timeout"]>>;
|
|
564
|
-
}, "strip", z.ZodTypeAny, {
|
|
565
|
-
truncated: boolean;
|
|
566
|
-
filesMatched: number;
|
|
567
|
-
totalMatches: number;
|
|
568
|
-
skippedInaccessible?: number | undefined;
|
|
569
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
570
|
-
linesSkippedDueToRegexTimeout?: number | undefined;
|
|
571
|
-
skippedTooLarge?: number | undefined;
|
|
572
|
-
skippedBinary?: number | undefined;
|
|
573
|
-
filesScanned?: number | undefined;
|
|
574
|
-
}, {
|
|
575
|
-
truncated: boolean;
|
|
576
|
-
filesMatched: number;
|
|
577
|
-
totalMatches: number;
|
|
578
|
-
skippedInaccessible?: number | undefined;
|
|
579
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
580
|
-
linesSkippedDueToRegexTimeout?: number | undefined;
|
|
581
|
-
skippedTooLarge?: number | undefined;
|
|
582
|
-
skippedBinary?: number | undefined;
|
|
583
|
-
filesScanned?: number | undefined;
|
|
584
|
-
}>>;
|
|
585
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
586
|
-
code: z.ZodString;
|
|
587
|
-
message: z.ZodString;
|
|
588
|
-
path: z.ZodOptional<z.ZodString>;
|
|
589
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
590
|
-
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
code: string;
|
|
592
|
-
message: string;
|
|
593
|
-
path?: string | undefined;
|
|
594
|
-
suggestion?: string | undefined;
|
|
595
|
-
}, {
|
|
596
|
-
code: string;
|
|
597
|
-
message: string;
|
|
598
|
-
path?: string | undefined;
|
|
599
|
-
suggestion?: string | undefined;
|
|
600
|
-
}>>;
|
|
601
|
-
}, "strip", z.ZodTypeAny, {
|
|
602
|
-
ok: boolean;
|
|
603
|
-
pattern?: string | undefined;
|
|
604
|
-
error?: {
|
|
605
|
-
code: string;
|
|
606
|
-
message: string;
|
|
607
|
-
path?: string | undefined;
|
|
608
|
-
suggestion?: string | undefined;
|
|
609
|
-
} | undefined;
|
|
610
|
-
summary?: {
|
|
611
|
-
truncated: boolean;
|
|
612
|
-
filesMatched: number;
|
|
613
|
-
totalMatches: number;
|
|
614
|
-
skippedInaccessible?: number | undefined;
|
|
615
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
616
|
-
linesSkippedDueToRegexTimeout?: number | undefined;
|
|
617
|
-
skippedTooLarge?: number | undefined;
|
|
618
|
-
skippedBinary?: number | undefined;
|
|
619
|
-
filesScanned?: number | undefined;
|
|
620
|
-
} | undefined;
|
|
621
|
-
filePattern?: string | undefined;
|
|
622
|
-
basePath?: string | undefined;
|
|
623
|
-
matches?: {
|
|
624
|
-
file: string;
|
|
625
|
-
content: string;
|
|
626
|
-
line: number;
|
|
627
|
-
contextBefore?: string[] | undefined;
|
|
628
|
-
contextAfter?: string[] | undefined;
|
|
629
|
-
matchCount?: number | undefined;
|
|
630
|
-
}[] | undefined;
|
|
631
|
-
}, {
|
|
632
|
-
ok: boolean;
|
|
633
|
-
pattern?: string | undefined;
|
|
634
|
-
error?: {
|
|
635
|
-
code: string;
|
|
636
|
-
message: string;
|
|
637
|
-
path?: string | undefined;
|
|
638
|
-
suggestion?: string | undefined;
|
|
639
|
-
} | undefined;
|
|
640
|
-
summary?: {
|
|
641
|
-
truncated: boolean;
|
|
642
|
-
filesMatched: number;
|
|
643
|
-
totalMatches: number;
|
|
644
|
-
skippedInaccessible?: number | undefined;
|
|
645
|
-
stoppedReason?: "maxResults" | "maxFiles" | "timeout" | undefined;
|
|
646
|
-
linesSkippedDueToRegexTimeout?: number | undefined;
|
|
647
|
-
skippedTooLarge?: number | undefined;
|
|
648
|
-
skippedBinary?: number | undefined;
|
|
649
|
-
filesScanned?: number | undefined;
|
|
650
|
-
} | undefined;
|
|
651
|
-
filePattern?: string | undefined;
|
|
652
|
-
basePath?: string | undefined;
|
|
653
|
-
matches?: {
|
|
654
|
-
file: string;
|
|
655
|
-
content: string;
|
|
656
|
-
line: number;
|
|
657
|
-
contextBefore?: string[] | undefined;
|
|
658
|
-
contextAfter?: string[] | undefined;
|
|
659
|
-
matchCount?: number | undefined;
|
|
660
|
-
}[] | undefined;
|
|
661
|
-
}>;
|
|
662
|
-
export declare const AnalyzeDirectoryOutputSchema: z.ZodObject<{
|
|
663
|
-
ok: z.ZodBoolean;
|
|
664
|
-
path: z.ZodOptional<z.ZodString>;
|
|
665
|
-
totalFiles: z.ZodOptional<z.ZodNumber>;
|
|
666
|
-
totalDirectories: z.ZodOptional<z.ZodNumber>;
|
|
667
|
-
totalSize: z.ZodOptional<z.ZodNumber>;
|
|
668
|
-
fileTypes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
669
|
-
largestFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
670
|
-
path: z.ZodString;
|
|
671
|
-
size: z.ZodNumber;
|
|
672
|
-
}, "strip", z.ZodTypeAny, {
|
|
673
|
-
size: number;
|
|
674
|
-
path: string;
|
|
675
|
-
}, {
|
|
676
|
-
size: number;
|
|
677
|
-
path: string;
|
|
678
|
-
}>, "many">>;
|
|
679
|
-
recentlyModified: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
680
|
-
path: z.ZodString;
|
|
681
|
-
modified: z.ZodString;
|
|
682
|
-
}, "strip", z.ZodTypeAny, {
|
|
683
|
-
path: string;
|
|
684
|
-
modified: string;
|
|
685
|
-
}, {
|
|
686
|
-
path: string;
|
|
687
|
-
modified: string;
|
|
688
|
-
}>, "many">>;
|
|
689
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
690
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
691
|
-
skippedInaccessible: z.ZodOptional<z.ZodNumber>;
|
|
692
|
-
symlinksNotFollowed: z.ZodOptional<z.ZodNumber>;
|
|
693
|
-
}, "strip", z.ZodTypeAny, {
|
|
694
|
-
truncated?: boolean | undefined;
|
|
695
|
-
skippedInaccessible?: number | undefined;
|
|
696
|
-
symlinksNotFollowed?: number | undefined;
|
|
697
|
-
}, {
|
|
698
|
-
truncated?: boolean | undefined;
|
|
699
|
-
skippedInaccessible?: number | undefined;
|
|
700
|
-
symlinksNotFollowed?: number | undefined;
|
|
701
|
-
}>>;
|
|
702
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
703
|
-
code: z.ZodString;
|
|
704
|
-
message: z.ZodString;
|
|
705
|
-
path: z.ZodOptional<z.ZodString>;
|
|
706
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
707
|
-
}, "strip", z.ZodTypeAny, {
|
|
708
|
-
code: string;
|
|
709
|
-
message: string;
|
|
710
|
-
path?: string | undefined;
|
|
711
|
-
suggestion?: string | undefined;
|
|
712
|
-
}, {
|
|
713
|
-
code: string;
|
|
714
|
-
message: string;
|
|
715
|
-
path?: string | undefined;
|
|
716
|
-
suggestion?: string | undefined;
|
|
717
|
-
}>>;
|
|
718
|
-
}, "strip", z.ZodTypeAny, {
|
|
719
|
-
ok: boolean;
|
|
720
|
-
error?: {
|
|
721
|
-
code: string;
|
|
722
|
-
message: string;
|
|
723
|
-
path?: string | undefined;
|
|
724
|
-
suggestion?: string | undefined;
|
|
725
|
-
} | undefined;
|
|
726
|
-
summary?: {
|
|
727
|
-
truncated?: boolean | undefined;
|
|
728
|
-
skippedInaccessible?: number | undefined;
|
|
729
|
-
symlinksNotFollowed?: number | undefined;
|
|
730
|
-
} | undefined;
|
|
731
|
-
path?: string | undefined;
|
|
732
|
-
totalFiles?: number | undefined;
|
|
733
|
-
totalDirectories?: number | undefined;
|
|
734
|
-
totalSize?: number | undefined;
|
|
735
|
-
fileTypes?: Record<string, number> | undefined;
|
|
736
|
-
largestFiles?: {
|
|
737
|
-
size: number;
|
|
738
|
-
path: string;
|
|
739
|
-
}[] | undefined;
|
|
740
|
-
recentlyModified?: {
|
|
741
|
-
path: string;
|
|
742
|
-
modified: string;
|
|
743
|
-
}[] | undefined;
|
|
744
|
-
}, {
|
|
745
|
-
ok: boolean;
|
|
746
|
-
error?: {
|
|
747
|
-
code: string;
|
|
748
|
-
message: string;
|
|
749
|
-
path?: string | undefined;
|
|
750
|
-
suggestion?: string | undefined;
|
|
751
|
-
} | undefined;
|
|
752
|
-
summary?: {
|
|
753
|
-
truncated?: boolean | undefined;
|
|
754
|
-
skippedInaccessible?: number | undefined;
|
|
755
|
-
symlinksNotFollowed?: number | undefined;
|
|
756
|
-
} | undefined;
|
|
757
|
-
path?: string | undefined;
|
|
758
|
-
totalFiles?: number | undefined;
|
|
759
|
-
totalDirectories?: number | undefined;
|
|
760
|
-
totalSize?: number | undefined;
|
|
761
|
-
fileTypes?: Record<string, number> | undefined;
|
|
762
|
-
largestFiles?: {
|
|
763
|
-
size: number;
|
|
764
|
-
path: string;
|
|
765
|
-
}[] | undefined;
|
|
766
|
-
recentlyModified?: {
|
|
767
|
-
path: string;
|
|
768
|
-
modified: string;
|
|
769
|
-
}[] | undefined;
|
|
770
|
-
}>;
|
|
771
|
-
export declare const DirectoryTreeOutputSchema: z.ZodObject<{
|
|
772
|
-
ok: z.ZodBoolean;
|
|
773
|
-
tree: z.ZodOptional<z.ZodType<{
|
|
774
|
-
name: string;
|
|
775
|
-
type: "file" | "directory";
|
|
776
|
-
size?: number | undefined;
|
|
777
|
-
} & {
|
|
778
|
-
children?: ({
|
|
779
|
-
name: string;
|
|
780
|
-
type: "file" | "directory";
|
|
781
|
-
size?: number | undefined;
|
|
782
|
-
} & /*elided*/ any)[];
|
|
783
|
-
}, z.ZodTypeDef, {
|
|
784
|
-
name: string;
|
|
785
|
-
type: "file" | "directory";
|
|
786
|
-
size?: number | undefined;
|
|
787
|
-
} & {
|
|
788
|
-
children?: ({
|
|
789
|
-
name: string;
|
|
790
|
-
type: "file" | "directory";
|
|
791
|
-
size?: number | undefined;
|
|
792
|
-
} & /*elided*/ any)[];
|
|
793
|
-
}>>;
|
|
794
|
-
summary: z.ZodOptional<z.ZodObject<{
|
|
795
|
-
totalFiles: z.ZodNumber;
|
|
796
|
-
totalDirectories: z.ZodNumber;
|
|
797
|
-
maxDepthReached: z.ZodOptional<z.ZodNumber>;
|
|
798
|
-
truncated: z.ZodBoolean;
|
|
799
|
-
skippedInaccessible: z.ZodOptional<z.ZodNumber>;
|
|
800
|
-
symlinksNotFollowed: z.ZodOptional<z.ZodNumber>;
|
|
801
|
-
}, "strip", z.ZodTypeAny, {
|
|
802
|
-
truncated: boolean;
|
|
803
|
-
totalFiles: number;
|
|
804
|
-
totalDirectories: number;
|
|
805
|
-
skippedInaccessible?: number | undefined;
|
|
806
|
-
maxDepthReached?: number | undefined;
|
|
807
|
-
symlinksNotFollowed?: number | undefined;
|
|
808
|
-
}, {
|
|
809
|
-
truncated: boolean;
|
|
810
|
-
totalFiles: number;
|
|
811
|
-
totalDirectories: number;
|
|
812
|
-
skippedInaccessible?: number | undefined;
|
|
813
|
-
maxDepthReached?: number | undefined;
|
|
814
|
-
symlinksNotFollowed?: number | undefined;
|
|
815
|
-
}>>;
|
|
816
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
817
|
-
code: z.ZodString;
|
|
818
|
-
message: z.ZodString;
|
|
819
|
-
path: z.ZodOptional<z.ZodString>;
|
|
820
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
821
|
-
}, "strip", z.ZodTypeAny, {
|
|
822
|
-
code: string;
|
|
823
|
-
message: string;
|
|
824
|
-
path?: string | undefined;
|
|
825
|
-
suggestion?: string | undefined;
|
|
826
|
-
}, {
|
|
827
|
-
code: string;
|
|
828
|
-
message: string;
|
|
829
|
-
path?: string | undefined;
|
|
830
|
-
suggestion?: string | undefined;
|
|
831
|
-
}>>;
|
|
832
|
-
}, "strip", z.ZodTypeAny, {
|
|
833
|
-
ok: boolean;
|
|
834
|
-
error?: {
|
|
835
|
-
code: string;
|
|
836
|
-
message: string;
|
|
837
|
-
path?: string | undefined;
|
|
838
|
-
suggestion?: string | undefined;
|
|
839
|
-
} | undefined;
|
|
840
|
-
summary?: {
|
|
841
|
-
truncated: boolean;
|
|
842
|
-
totalFiles: number;
|
|
843
|
-
totalDirectories: number;
|
|
844
|
-
skippedInaccessible?: number | undefined;
|
|
845
|
-
maxDepthReached?: number | undefined;
|
|
846
|
-
symlinksNotFollowed?: number | undefined;
|
|
847
|
-
} | undefined;
|
|
848
|
-
tree?: ({
|
|
849
|
-
name: string;
|
|
850
|
-
type: "file" | "directory";
|
|
851
|
-
size?: number | undefined;
|
|
852
|
-
} & {
|
|
853
|
-
children?: ({
|
|
854
|
-
name: string;
|
|
855
|
-
type: "file" | "directory";
|
|
856
|
-
size?: number | undefined;
|
|
857
|
-
} & /*elided*/ any)[];
|
|
858
|
-
}) | undefined;
|
|
859
|
-
}, {
|
|
860
|
-
ok: boolean;
|
|
861
|
-
error?: {
|
|
862
|
-
code: string;
|
|
863
|
-
message: string;
|
|
864
|
-
path?: string | undefined;
|
|
865
|
-
suggestion?: string | undefined;
|
|
866
|
-
} | undefined;
|
|
867
|
-
summary?: {
|
|
868
|
-
truncated: boolean;
|
|
869
|
-
totalFiles: number;
|
|
870
|
-
totalDirectories: number;
|
|
871
|
-
skippedInaccessible?: number | undefined;
|
|
872
|
-
maxDepthReached?: number | undefined;
|
|
873
|
-
symlinksNotFollowed?: number | undefined;
|
|
874
|
-
} | undefined;
|
|
875
|
-
tree?: ({
|
|
876
|
-
name: string;
|
|
877
|
-
type: "file" | "directory";
|
|
878
|
-
size?: number | undefined;
|
|
879
|
-
} & {
|
|
880
|
-
children?: ({
|
|
881
|
-
name: string;
|
|
882
|
-
type: "file" | "directory";
|
|
883
|
-
size?: number | undefined;
|
|
884
|
-
} & /*elided*/ any)[];
|
|
885
|
-
}) | undefined;
|
|
886
|
-
}>;
|
|
887
|
-
export declare const ReadMediaFileOutputSchema: z.ZodObject<{
|
|
888
|
-
ok: z.ZodBoolean;
|
|
889
|
-
path: z.ZodOptional<z.ZodString>;
|
|
890
|
-
mimeType: z.ZodOptional<z.ZodString>;
|
|
891
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
892
|
-
data: z.ZodOptional<z.ZodString>;
|
|
893
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
894
|
-
code: z.ZodString;
|
|
895
|
-
message: z.ZodString;
|
|
896
|
-
path: z.ZodOptional<z.ZodString>;
|
|
897
|
-
suggestion: z.ZodOptional<z.ZodString>;
|
|
898
|
-
}, "strip", z.ZodTypeAny, {
|
|
899
|
-
code: string;
|
|
900
|
-
message: string;
|
|
901
|
-
path?: string | undefined;
|
|
902
|
-
suggestion?: string | undefined;
|
|
903
|
-
}, {
|
|
904
|
-
code: string;
|
|
905
|
-
message: string;
|
|
906
|
-
path?: string | undefined;
|
|
907
|
-
suggestion?: string | undefined;
|
|
908
|
-
}>>;
|
|
909
|
-
}, "strip", z.ZodTypeAny, {
|
|
910
|
-
ok: boolean;
|
|
911
|
-
data?: string | undefined;
|
|
912
|
-
error?: {
|
|
913
|
-
code: string;
|
|
914
|
-
message: string;
|
|
915
|
-
path?: string | undefined;
|
|
916
|
-
suggestion?: string | undefined;
|
|
917
|
-
} | undefined;
|
|
918
|
-
size?: number | undefined;
|
|
919
|
-
path?: string | undefined;
|
|
920
|
-
mimeType?: string | undefined;
|
|
921
|
-
}, {
|
|
922
|
-
ok: boolean;
|
|
923
|
-
data?: string | undefined;
|
|
924
|
-
error?: {
|
|
925
|
-
code: string;
|
|
926
|
-
message: string;
|
|
927
|
-
path?: string | undefined;
|
|
928
|
-
suggestion?: string | undefined;
|
|
929
|
-
} | undefined;
|
|
930
|
-
size?: number | undefined;
|
|
931
|
-
path?: string | undefined;
|
|
932
|
-
mimeType?: string | undefined;
|
|
933
|
-
}>;
|
|
1
|
+
export { AnalyzeDirectoryOutputSchema, DirectoryTreeOutputSchema, ListAllowedDirectoriesOutputSchema, ListDirectoryOutputSchema, } from './outputs/directory.js';
|
|
2
|
+
export { DefinitionTypeOutputSchema, SearchContentOutputSchema, SearchDefinitionsOutputSchema, SearchFilesOutputSchema, } from './outputs/search.js';
|
|
3
|
+
export { ReadFileOutputSchema, ReadMediaFileOutputSchema, ReadMultipleFilesOutputSchema, } from './outputs/read.js';
|
|
4
|
+
export { GetFileInfoOutputSchema, GetMultipleFileInfoOutputSchema, } from './outputs/file-info.js';
|
|
5
|
+
export { ComputeChecksumsOutputSchema } from './outputs/checksums.js';
|
|
934
6
|
//# sourceMappingURL=outputs.d.ts.map
|