@j0hanz/filesystem-context-mcp 1.3.0 → 1.3.1
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 +251 -504
- package/dist/__tests__/lib/file-operations/search-content-edge-cases.test.js +1 -1
- package/dist/__tests__/lib/file-operations/search-content-edge-cases.test.js.map +1 -1
- package/dist/__tests__/lib/file-operations/search-definitions-helpers.test.d.ts +2 -0
- package/dist/__tests__/lib/file-operations/search-definitions-helpers.test.d.ts.map +1 -0
- package/dist/__tests__/lib/file-operations/search-definitions-helpers.test.js +43 -0
- package/dist/__tests__/lib/file-operations/search-definitions-helpers.test.js.map +1 -0
- package/dist/__tests__/lib/file-operations/search-definitions.fixtures.d.ts +7 -0
- package/dist/__tests__/lib/file-operations/search-definitions.fixtures.d.ts.map +1 -0
- package/dist/__tests__/lib/file-operations/search-definitions.fixtures.js +113 -0
- package/dist/__tests__/lib/file-operations/search-definitions.fixtures.js.map +1 -0
- package/dist/__tests__/lib/file-operations/search-definitions.test.js +1 -112
- package/dist/__tests__/lib/file-operations/search-definitions.test.js.map +1 -1
- package/dist/__tests__/lib/file-operations/sorting.test.js +15 -40
- package/dist/__tests__/lib/file-operations/sorting.test.js.map +1 -1
- package/dist/__tests__/lib/path-validation-errors.test.js +1 -1
- package/dist/__tests__/lib/path-validation-errors.test.js.map +1 -1
- package/dist/__tests__/lib/path-validation.test.js +17 -0
- package/dist/__tests__/lib/path-validation.test.js.map +1 -1
- package/dist/config/formatting.d.ts +14 -0
- package/dist/config/formatting.d.ts.map +1 -0
- package/dist/config/formatting.js +34 -0
- package/dist/config/formatting.js.map +1 -0
- package/dist/config/types.d.ts +3 -97
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/instructions.md +151 -170
- package/dist/lib/constants.d.ts +1 -5
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +19 -15
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/errors.d.ts +0 -2
- package/dist/lib/errors.d.ts.map +1 -1
- package/dist/lib/errors.js +2 -30
- package/dist/lib/errors.js.map +1 -1
- package/dist/lib/file-operations/analyze-directory.d.ts.map +1 -1
- package/dist/lib/file-operations/analyze-directory.js +8 -1
- package/dist/lib/file-operations/analyze-directory.js.map +1 -1
- package/dist/lib/file-operations/batch-results.d.ts +2 -1
- package/dist/lib/file-operations/batch-results.d.ts.map +1 -1
- package/dist/lib/file-operations/compute-checksums.d.ts +1 -0
- package/dist/lib/file-operations/compute-checksums.d.ts.map +1 -1
- package/dist/lib/file-operations/compute-checksums.js +58 -45
- package/dist/lib/file-operations/compute-checksums.js.map +1 -1
- package/dist/lib/file-operations/directory-tree-builders.d.ts +7 -0
- package/dist/lib/file-operations/directory-tree-builders.d.ts.map +1 -0
- package/dist/lib/file-operations/directory-tree-builders.js +58 -0
- package/dist/lib/file-operations/directory-tree-builders.js.map +1 -0
- package/dist/lib/file-operations/directory-tree-helpers.d.ts +0 -5
- package/dist/lib/file-operations/directory-tree-helpers.d.ts.map +1 -1
- package/dist/lib/file-operations/directory-tree-helpers.js +21 -71
- package/dist/lib/file-operations/directory-tree-helpers.js.map +1 -1
- package/dist/lib/file-operations/directory-tree.d.ts.map +1 -1
- package/dist/lib/file-operations/directory-tree.js +2 -1
- package/dist/lib/file-operations/directory-tree.js.map +1 -1
- package/dist/lib/file-operations/file-info.d.ts +3 -1
- package/dist/lib/file-operations/file-info.d.ts.map +1 -1
- package/dist/lib/file-operations/file-info.js +16 -5
- package/dist/lib/file-operations/file-info.js.map +1 -1
- package/dist/lib/file-operations/get-multiple-file-info.d.ts +1 -1
- package/dist/lib/file-operations/get-multiple-file-info.d.ts.map +1 -1
- package/dist/lib/file-operations/get-multiple-file-info.js +6 -8
- package/dist/lib/file-operations/get-multiple-file-info.js.map +1 -1
- package/dist/lib/file-operations/list-directory-entry.d.ts.map +1 -1
- package/dist/lib/file-operations/list-directory-entry.js +5 -2
- package/dist/lib/file-operations/list-directory-entry.js.map +1 -1
- package/dist/lib/file-operations/list-directory-helpers.d.ts +5 -1
- package/dist/lib/file-operations/list-directory-helpers.d.ts.map +1 -1
- package/dist/lib/file-operations/list-directory-helpers.js +24 -16
- package/dist/lib/file-operations/list-directory-helpers.js.map +1 -1
- package/dist/lib/file-operations/list-directory.d.ts +1 -0
- package/dist/lib/file-operations/list-directory.d.ts.map +1 -1
- package/dist/lib/file-operations/list-directory.js +8 -3
- package/dist/lib/file-operations/list-directory.js.map +1 -1
- package/dist/lib/file-operations/read-media-file.d.ts.map +1 -1
- package/dist/lib/file-operations/read-media-file.js +5 -1
- package/dist/lib/file-operations/read-media-file.js.map +1 -1
- package/dist/lib/file-operations/read-multiple-files.d.ts +8 -0
- package/dist/lib/file-operations/read-multiple-files.d.ts.map +1 -1
- package/dist/lib/file-operations/read-multiple-files.js +15 -7
- package/dist/lib/file-operations/read-multiple-files.js.map +1 -1
- package/dist/lib/file-operations/search/engine-stream.d.ts +1 -1
- package/dist/lib/file-operations/search/engine-stream.d.ts.map +1 -1
- package/dist/lib/file-operations/search/engine-stream.js +21 -5
- package/dist/lib/file-operations/search/engine-stream.js.map +1 -1
- package/dist/lib/file-operations/search/engine.d.ts.map +1 -1
- package/dist/lib/file-operations/search/engine.js +42 -5
- package/dist/lib/file-operations/search/engine.js.map +1 -1
- package/dist/lib/file-operations/search/file-processor.d.ts.map +1 -1
- package/dist/lib/file-operations/search/file-processor.js +94 -54
- package/dist/lib/file-operations/search/file-processor.js.map +1 -1
- package/dist/lib/file-operations/search/match-strategy.d.ts.map +1 -1
- package/dist/lib/file-operations/search/match-strategy.js +2 -1
- package/dist/lib/file-operations/search/match-strategy.js.map +1 -1
- package/dist/lib/file-operations/search/types.d.ts +1 -0
- package/dist/lib/file-operations/search/types.d.ts.map +1 -1
- package/dist/lib/file-operations/search-definitions/matchers.d.ts +12 -0
- package/dist/lib/file-operations/search-definitions/matchers.d.ts.map +1 -0
- package/dist/lib/file-operations/search-definitions/matchers.js +122 -0
- package/dist/lib/file-operations/search-definitions/matchers.js.map +1 -0
- package/dist/lib/file-operations/search-definitions/patterns.d.ts +14 -0
- package/dist/lib/file-operations/search-definitions/patterns.d.ts.map +1 -0
- package/dist/lib/file-operations/search-definitions/patterns.js +83 -0
- package/dist/lib/file-operations/search-definitions/patterns.js.map +1 -0
- package/dist/lib/file-operations/search-definitions.d.ts.map +1 -1
- package/dist/lib/file-operations/search-definitions.js +3 -208
- package/dist/lib/file-operations/search-definitions.js.map +1 -1
- package/dist/lib/file-operations/search-files-helpers.d.ts +2 -2
- package/dist/lib/file-operations/search-files-helpers.d.ts.map +1 -1
- package/dist/lib/file-operations/search-files-helpers.js +17 -6
- package/dist/lib/file-operations/search-files-helpers.js.map +1 -1
- package/dist/lib/file-operations/search-files-options.d.ts +4 -2
- package/dist/lib/file-operations/search-files-options.d.ts.map +1 -1
- package/dist/lib/file-operations/search-files-options.js.map +1 -1
- package/dist/lib/file-operations/search-files.d.ts.map +1 -1
- package/dist/lib/file-operations/search-files.js +7 -2
- package/dist/lib/file-operations/search-files.js.map +1 -1
- package/dist/lib/file-operations/sorting.d.ts.map +1 -1
- package/dist/lib/file-operations/sorting.js +39 -14
- package/dist/lib/file-operations/sorting.js.map +1 -1
- package/dist/lib/file-operations.d.ts +0 -5
- package/dist/lib/file-operations.d.ts.map +1 -1
- package/dist/lib/file-operations.js +0 -5
- package/dist/lib/file-operations.js.map +1 -1
- package/dist/lib/fs-helpers/concurrency.d.ts +1 -1
- package/dist/lib/fs-helpers/concurrency.d.ts.map +1 -1
- package/dist/lib/fs-helpers/concurrency.js +37 -3
- package/dist/lib/fs-helpers/concurrency.js.map +1 -1
- package/dist/lib/fs-helpers/readers/head-file.js +1 -1
- package/dist/lib/fs-helpers/readers/head-file.js.map +1 -1
- package/dist/lib/fs-helpers/readers/read-buffer.d.ts +2 -0
- package/dist/lib/fs-helpers/readers/read-buffer.d.ts.map +1 -0
- package/dist/lib/fs-helpers/readers/read-buffer.js +52 -0
- package/dist/lib/fs-helpers/readers/read-buffer.js.map +1 -0
- package/dist/lib/fs-helpers/readers/read-file-content.d.ts +8 -1
- package/dist/lib/fs-helpers/readers/read-file-content.d.ts.map +1 -1
- package/dist/lib/fs-helpers/readers/read-file-content.js +30 -6
- package/dist/lib/fs-helpers/readers/read-file-content.js.map +1 -1
- package/dist/lib/fs-helpers/readers/read-file.d.ts +8 -0
- package/dist/lib/fs-helpers/readers/read-file.d.ts.map +1 -1
- package/dist/lib/fs-helpers/readers/read-file.js +31 -11
- package/dist/lib/fs-helpers/readers/read-file.js.map +1 -1
- package/dist/lib/fs-helpers/readers/tail-file.js +1 -1
- package/dist/lib/fs-helpers/readers/tail-file.js.map +1 -1
- package/dist/lib/path-utils.d.ts +1 -0
- package/dist/lib/path-utils.d.ts.map +1 -1
- package/dist/lib/path-utils.js +12 -0
- package/dist/lib/path-utils.js.map +1 -1
- package/dist/lib/path-validation/allowed-directories.d.ts.map +1 -1
- package/dist/lib/path-validation/allowed-directories.js +2 -9
- package/dist/lib/path-validation/allowed-directories.js.map +1 -1
- package/dist/lib/path-validation/errors.js +2 -2
- package/dist/lib/path-validation/errors.js.map +1 -1
- package/dist/lib/path-validation/validators.d.ts.map +1 -1
- package/dist/lib/path-validation/validators.js +3 -1
- package/dist/lib/path-validation/validators.js.map +1 -1
- package/dist/schemas/common.d.ts +0 -18
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/common.js +0 -10
- package/dist/schemas/common.js.map +1 -1
- 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/input-helpers.d.ts +1 -4
- package/dist/schemas/input-helpers.d.ts.map +1 -1
- package/dist/schemas/input-helpers.js +9 -33
- package/dist/schemas/input-helpers.js.map +1 -1
- package/dist/schemas/inputs/checksums.d.ts +0 -2
- package/dist/schemas/inputs/checksums.d.ts.map +1 -1
- package/dist/schemas/inputs/checksums.js +2 -7
- package/dist/schemas/inputs/checksums.js.map +1 -1
- package/dist/schemas/inputs/directory.d.ts +0 -16
- package/dist/schemas/inputs/directory.d.ts.map +1 -1
- package/dist/schemas/inputs/directory.js +2 -44
- package/dist/schemas/inputs/directory.js.map +1 -1
- package/dist/schemas/inputs/read.d.ts +0 -4
- package/dist/schemas/inputs/read.d.ts.map +1 -1
- package/dist/schemas/inputs/read.js +0 -15
- package/dist/schemas/inputs/read.js.map +1 -1
- package/dist/schemas/inputs/search.d.ts +1 -12
- package/dist/schemas/inputs/search.d.ts.map +1 -1
- package/dist/schemas/inputs/search.js +4 -30
- package/dist/schemas/inputs/search.js.map +1 -1
- package/dist/schemas/inputs.d.ts +3 -4
- package/dist/schemas/inputs.d.ts.map +1 -1
- package/dist/schemas/inputs.js +3 -4
- package/dist/schemas/inputs.js.map +1 -1
- package/dist/schemas/output-helpers.d.ts +59 -0
- package/dist/schemas/output-helpers.d.ts.map +1 -1
- package/dist/schemas/output-helpers.js +31 -0
- package/dist/schemas/output-helpers.js.map +1 -1
- package/dist/schemas/outputs/checksums.d.ts +4 -4
- package/dist/schemas/outputs/checksums.d.ts.map +1 -1
- package/dist/schemas/outputs/checksums.js +2 -7
- package/dist/schemas/outputs/checksums.js.map +1 -1
- package/dist/schemas/outputs/directory.d.ts +68 -230
- package/dist/schemas/outputs/directory.d.ts.map +1 -1
- package/dist/schemas/outputs/directory.js +14 -32
- package/dist/schemas/outputs/directory.js.map +1 -1
- package/dist/schemas/outputs/file-info.d.ts +14 -14
- package/dist/schemas/outputs/file-info.d.ts.map +1 -1
- package/dist/schemas/outputs/file-info.js +4 -31
- package/dist/schemas/outputs/file-info.js.map +1 -1
- package/dist/schemas/outputs/read.d.ts +141 -46
- package/dist/schemas/outputs/read.d.ts.map +1 -1
- package/dist/schemas/outputs/read.js +35 -12
- package/dist/schemas/outputs/read.js.map +1 -1
- package/dist/schemas/outputs/search.d.ts +134 -124
- package/dist/schemas/outputs/search.d.ts.map +1 -1
- package/dist/schemas/outputs/search.js +33 -35
- package/dist/schemas/outputs/search.js.map +1 -1
- package/dist/schemas/outputs.d.ts +3 -4
- package/dist/schemas/outputs.d.ts.map +1 -1
- package/dist/schemas/outputs.js +3 -4
- package/dist/schemas/outputs.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +4 -1
- package/dist/server.js.map +1 -1
- package/dist/tools/analyze-directory.d.ts.map +1 -1
- package/dist/tools/analyze-directory.js +26 -28
- package/dist/tools/analyze-directory.js.map +1 -1
- package/dist/tools/compute-checksums.d.ts.map +1 -1
- package/dist/tools/compute-checksums.js +13 -21
- package/dist/tools/compute-checksums.js.map +1 -1
- package/dist/tools/directory-tree.d.ts.map +1 -1
- package/dist/tools/directory-tree.js +11 -9
- package/dist/tools/directory-tree.js.map +1 -1
- package/dist/tools/get-file-info.d.ts.map +1 -1
- package/dist/tools/get-file-info.js +8 -44
- package/dist/tools/get-file-info.js.map +1 -1
- package/dist/tools/get-multiple-file-info.d.ts.map +1 -1
- package/dist/tools/get-multiple-file-info.js +13 -55
- package/dist/tools/get-multiple-file-info.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +0 -10
- 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 +37 -31
- 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 +83 -83
- 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 +57 -45
- package/dist/tools/read-file.js.map +1 -1
- package/dist/tools/read-media-file.d.ts.map +1 -1
- package/dist/tools/read-media-file.js +8 -6
- package/dist/tools/read-media-file.js.map +1 -1
- package/dist/tools/read-multiple-files.d.ts.map +1 -1
- package/dist/tools/read-multiple-files.js +57 -28
- package/dist/tools/read-multiple-files.js.map +1 -1
- package/dist/tools/search-content.d.ts.map +1 -1
- package/dist/tools/search-content.js +14 -16
- package/dist/tools/search-content.js.map +1 -1
- package/dist/tools/search-definitions.d.ts.map +1 -1
- package/dist/tools/search-definitions.js +11 -8
- package/dist/tools/search-definitions.js.map +1 -1
- package/dist/tools/search-files.d.ts.map +1 -1
- package/dist/tools/search-files.js +61 -45
- package/dist/tools/search-files.js.map +1 -1
- package/dist/tools/shared/file-info.d.ts +17 -0
- package/dist/tools/shared/file-info.d.ts.map +1 -0
- package/dist/tools/shared/file-info.js +40 -0
- package/dist/tools/shared/file-info.js.map +1 -0
- package/dist/tools/shared/formatting.d.ts +5 -0
- package/dist/tools/shared/formatting.d.ts.map +1 -1
- package/dist/tools/shared/formatting.js +21 -1
- package/dist/tools/shared/formatting.js.map +1 -1
- package/dist/tools/shared/read-range.d.ts +7 -0
- package/dist/tools/shared/read-range.d.ts.map +1 -0
- package/dist/tools/shared/read-range.js +22 -0
- package/dist/tools/shared/read-range.js.map +1 -0
- package/dist/tools/shared/search-formatting.d.ts.map +1 -1
- package/dist/tools/shared/search-formatting.js +53 -28
- package/dist/tools/shared/search-formatting.js.map +1 -1
- package/dist/tools/tool-response.d.ts +22 -0
- package/dist/tools/tool-response.d.ts.map +1 -1
- package/dist/tools/tool-response.js +30 -0
- package/dist/tools/tool-response.js.map +1 -1
- package/package.json +2 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { MAX_MEDIA_FILE_SIZE } from '../../lib/constants.js';
|
|
3
2
|
import { EncodingSchema, HeadLinesSchema, LineEndSchema, LineStartSchema, ReadFileMaxSizeSchema, ReadMultipleFilesMaxSizeSchema, SkipBinarySchema, TailLinesSchema, } from '../input-helpers.js';
|
|
4
3
|
const ReadFileBaseSchema = z.object({
|
|
5
4
|
path: z
|
|
@@ -37,18 +36,4 @@ const ReadMultipleFilesBaseSchema = z.object({
|
|
|
37
36
|
lineEnd: LineEndSchema.describe('End line (inclusive) for reading a range from each file'),
|
|
38
37
|
});
|
|
39
38
|
export const ReadMultipleFilesInputSchema = ReadMultipleFilesBaseSchema.shape;
|
|
40
|
-
export const ReadMediaFileInputSchema = {
|
|
41
|
-
path: z
|
|
42
|
-
.string()
|
|
43
|
-
.min(1, 'Path cannot be empty')
|
|
44
|
-
.describe('Path to the media file to read'),
|
|
45
|
-
maxSize: z
|
|
46
|
-
.number()
|
|
47
|
-
.int('maxSize must be an integer')
|
|
48
|
-
.min(1, 'maxSize must be at least 1 byte')
|
|
49
|
-
.max(500 * 1024 * 1024, 'maxSize cannot exceed 500MB')
|
|
50
|
-
.optional()
|
|
51
|
-
.default(MAX_MEDIA_FILE_SIZE)
|
|
52
|
-
.describe('Maximum file size in bytes (default 50MB)'),
|
|
53
|
-
};
|
|
54
39
|
//# sourceMappingURL=read.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../src/schemas/inputs/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../src/schemas/inputs/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,8BAA8B,EAC9B,gBAAgB,EAChB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;SAC9B,QAAQ,CAAC,0BAA0B,CAAC;IACvC,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,qBAAqB;IAC9B,SAAS,EAAE,eAAe;IAC1B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SearchFilesInputSchema: {
|
|
|
9
9
|
maxFilesScanned: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
10
10
|
timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
11
11
|
baseNameMatch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
-
skipSymlinks: z.ZodDefault<z.ZodOptional<z.ZodBoolean
|
|
12
|
+
skipSymlinks: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, boolean, boolean | undefined>;
|
|
13
13
|
includeHidden: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
14
14
|
};
|
|
15
15
|
export declare const SearchContentInputSchema: {
|
|
@@ -30,15 +30,4 @@ export declare const SearchContentInputSchema: {
|
|
|
30
30
|
baseNameMatch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
31
|
caseSensitiveFileMatch: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
32
32
|
};
|
|
33
|
-
export declare const DefinitionTypeSchema: z.ZodEnum<["function", "class", "interface", "type", "enum", "variable"]>;
|
|
34
|
-
export declare const SearchDefinitionsInputSchema: {
|
|
35
|
-
path: z.ZodString;
|
|
36
|
-
name: z.ZodOptional<z.ZodString>;
|
|
37
|
-
type: z.ZodOptional<z.ZodEnum<["function", "class", "interface", "type", "enum", "variable"]>>;
|
|
38
|
-
caseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
39
|
-
maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
40
|
-
excludePatterns: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>>;
|
|
41
|
-
includeHidden: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
42
|
-
contextLines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
43
|
-
};
|
|
44
33
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/schemas/inputs/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/schemas/inputs/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAwDlC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;CA8DpC,CAAC"}
|
|
@@ -34,7 +34,10 @@ export const SearchFilesInputSchema = {
|
|
|
34
34
|
.boolean()
|
|
35
35
|
.optional()
|
|
36
36
|
.default(true)
|
|
37
|
-
.
|
|
37
|
+
.refine((value) => value, {
|
|
38
|
+
message: 'Following symbolic links is not supported for security reasons',
|
|
39
|
+
})
|
|
40
|
+
.describe('Skip symbolic links for security and performance (must remain true)'),
|
|
38
41
|
includeHidden: IncludeHiddenSchema.describe('Include hidden files and directories (dotfiles) in the search'),
|
|
39
42
|
};
|
|
40
43
|
export const SearchContentInputSchema = {
|
|
@@ -83,33 +86,4 @@ export const SearchContentInputSchema = {
|
|
|
83
86
|
.default(true)
|
|
84
87
|
.describe('Case sensitive file pattern matching. Set to false for case-insensitive filename matching on case-insensitive filesystems'),
|
|
85
88
|
};
|
|
86
|
-
export const DefinitionTypeSchema = z.enum([
|
|
87
|
-
'function',
|
|
88
|
-
'class',
|
|
89
|
-
'interface',
|
|
90
|
-
'type',
|
|
91
|
-
'enum',
|
|
92
|
-
'variable',
|
|
93
|
-
]);
|
|
94
|
-
export const SearchDefinitionsInputSchema = {
|
|
95
|
-
path: z
|
|
96
|
-
.string()
|
|
97
|
-
.min(1, 'Path cannot be empty')
|
|
98
|
-
.describe('Directory to search for definitions'),
|
|
99
|
-
name: z
|
|
100
|
-
.string()
|
|
101
|
-
.max(100, 'Name is too long (max 100 characters)')
|
|
102
|
-
.optional()
|
|
103
|
-
.describe('Symbol name to find (e.g., "UserService", "handleSubmit")'),
|
|
104
|
-
type: DefinitionTypeSchema.optional().describe('Type of definition to find: function, class, interface, type, enum, or variable'),
|
|
105
|
-
caseSensitive: z
|
|
106
|
-
.boolean()
|
|
107
|
-
.optional()
|
|
108
|
-
.default(true)
|
|
109
|
-
.describe('Case sensitive name matching (default: true)'),
|
|
110
|
-
maxResults: MaxResultsSchema.describe('Maximum number of definitions to return'),
|
|
111
|
-
excludePatterns: ExcludePatternsSchema.describe('Glob patterns to exclude (e.g., "node_modules/**", "**/*.test.ts")'),
|
|
112
|
-
includeHidden: IncludeHiddenSchema.describe('Include hidden files and directories in the search'),
|
|
113
|
-
contextLines: ContextLinesSchema.describe('Number of lines to include before and after each definition (0-10)'),
|
|
114
|
-
};
|
|
115
89
|
//# sourceMappingURL=search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/schemas/inputs/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC;SAC9B,QAAQ,CAAC,+BAA+B,CAAC;IAC5C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;SACjC,GAAG,CAAC,IAAI,EAAE,2CAA2C,CAAC;SACtD,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;QACN,IAAI,CAAC;YACH,IAAI,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC7B,OAAO,KAAK,CAAC;YACf,CAAC;YACD,OAAO,iBAAiB,CAAC,GAAG,CAAC,CAAC;QAChC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC,EACD;QACE,OAAO,EACL,+EAA+E;KAClF,CACF;SACA,QAAQ,CACP,gJAAgJ,CACjJ;IACH,eAAe,EAAE,qBAAqB,CAAC,QAAQ,CAAC,qBAAqB,CAAC;IACtE,UAAU,EAAE,gBAAgB,CAAC,QAAQ,CACnC,+DAA+D,CAChE;IACD,MAAM,EAAE,gBAAgB;IACxB,QAAQ,EAAE,cAAc,CAAC,QAAQ,CAC/B,sEAAsE,CACvE;IACD,eAAe,EAAE,qBAAqB;IACtC,SAAS,EAAE,eAAe,CAAC,QAAQ,CACjC,kDAAkD,CACnD;IACD,aAAa,EAAE,mBAAmB,CAAC,QAAQ,CACzC,wIAAwI,CACzI;IACD,YAAY,EAAE,CAAC;SACZ,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/schemas/inputs/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,CAAC;SACJ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tB,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACP,2HAA2H,CAC5H;CACJ,CAAC"}
|
package/dist/schemas/inputs.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { ReadFileInputSchema,
|
|
1
|
+
export { ListDirectoryInputSchema } from './inputs/directory.js';
|
|
2
|
+
export { SearchContentInputSchema, SearchFilesInputSchema, } from './inputs/search.js';
|
|
3
|
+
export { ReadFileInputSchema, ReadMultipleFilesInputSchema, } from './inputs/read.js';
|
|
4
4
|
export { GetFileInfoInputSchema, GetMultipleFileInfoInputSchema, } from './inputs/file-info.js';
|
|
5
|
-
export { ChecksumAlgorithmSchema, ChecksumEncodingSchema, ComputeChecksumsInputSchema, } from './inputs/checksums.js';
|
|
6
5
|
//# sourceMappingURL=inputs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/schemas/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../src/schemas/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC"}
|
package/dist/schemas/inputs.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { ReadFileInputSchema,
|
|
1
|
+
export { ListDirectoryInputSchema } from './inputs/directory.js';
|
|
2
|
+
export { SearchContentInputSchema, SearchFilesInputSchema, } from './inputs/search.js';
|
|
3
|
+
export { ReadFileInputSchema, ReadMultipleFilesInputSchema, } from './inputs/read.js';
|
|
4
4
|
export { GetFileInfoInputSchema, GetMultipleFileInfoInputSchema, } from './inputs/file-info.js';
|
|
5
|
-
export { ChecksumAlgorithmSchema, ChecksumEncodingSchema, ComputeChecksumsInputSchema, } from './inputs/checksums.js';
|
|
6
5
|
//# sourceMappingURL=inputs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../src/schemas/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"inputs.js","sourceRoot":"","sources":["../../src/schemas/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,GAC/B,MAAM,uBAAuB,CAAC"}
|
|
@@ -4,21 +4,80 @@ export declare const TraversalSummarySchema: z.ZodObject<{
|
|
|
4
4
|
totalDirectories: z.ZodNumber;
|
|
5
5
|
maxDepthReached: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
truncated: z.ZodBoolean;
|
|
7
|
+
stoppedReason: z.ZodOptional<z.ZodEnum<["maxEntries", "aborted"]>>;
|
|
7
8
|
skippedInaccessible: z.ZodOptional<z.ZodNumber>;
|
|
8
9
|
symlinksNotFollowed: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
entriesScanned: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
entriesVisible: z.ZodOptional<z.ZodNumber>;
|
|
9
12
|
}, "strip", z.ZodTypeAny, {
|
|
10
13
|
truncated: boolean;
|
|
11
14
|
totalFiles: number;
|
|
12
15
|
totalDirectories: number;
|
|
13
16
|
skippedInaccessible?: number | undefined;
|
|
17
|
+
stoppedReason?: "maxEntries" | "aborted" | undefined;
|
|
14
18
|
maxDepthReached?: number | undefined;
|
|
15
19
|
symlinksNotFollowed?: number | undefined;
|
|
20
|
+
entriesScanned?: number | undefined;
|
|
21
|
+
entriesVisible?: number | undefined;
|
|
16
22
|
}, {
|
|
17
23
|
truncated: boolean;
|
|
18
24
|
totalFiles: number;
|
|
19
25
|
totalDirectories: number;
|
|
20
26
|
skippedInaccessible?: number | undefined;
|
|
27
|
+
stoppedReason?: "maxEntries" | "aborted" | undefined;
|
|
21
28
|
maxDepthReached?: number | undefined;
|
|
22
29
|
symlinksNotFollowed?: number | undefined;
|
|
30
|
+
entriesScanned?: number | undefined;
|
|
31
|
+
entriesVisible?: number | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const BatchSummarySchema: z.ZodObject<{
|
|
34
|
+
total: z.ZodNumber;
|
|
35
|
+
succeeded: z.ZodNumber;
|
|
36
|
+
failed: z.ZodNumber;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
total: number;
|
|
39
|
+
succeeded: number;
|
|
40
|
+
failed: number;
|
|
41
|
+
}, {
|
|
42
|
+
total: number;
|
|
43
|
+
succeeded: number;
|
|
44
|
+
failed: number;
|
|
45
|
+
}>;
|
|
46
|
+
export declare const FileInfoSchema: z.ZodObject<{
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
type: z.ZodEnum<["file", "directory", "symlink", "other"]>;
|
|
50
|
+
size: z.ZodNumber;
|
|
51
|
+
created: z.ZodOptional<z.ZodString>;
|
|
52
|
+
modified: z.ZodString;
|
|
53
|
+
accessed: z.ZodOptional<z.ZodString>;
|
|
54
|
+
permissions: z.ZodString;
|
|
55
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
57
|
+
symlinkTarget: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
name: string;
|
|
60
|
+
size: number;
|
|
61
|
+
path: string;
|
|
62
|
+
modified: string;
|
|
63
|
+
type: "file" | "directory" | "symlink" | "other";
|
|
64
|
+
permissions: string;
|
|
65
|
+
created?: string | undefined;
|
|
66
|
+
accessed?: string | undefined;
|
|
67
|
+
mimeType?: string | undefined;
|
|
68
|
+
symlinkTarget?: string | undefined;
|
|
69
|
+
isHidden?: boolean | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
name: string;
|
|
72
|
+
size: number;
|
|
73
|
+
path: string;
|
|
74
|
+
modified: string;
|
|
75
|
+
type: "file" | "directory" | "symlink" | "other";
|
|
76
|
+
permissions: string;
|
|
77
|
+
created?: string | undefined;
|
|
78
|
+
accessed?: string | undefined;
|
|
79
|
+
mimeType?: string | undefined;
|
|
80
|
+
symlinkTarget?: string | undefined;
|
|
81
|
+
isHidden?: boolean | undefined;
|
|
23
82
|
}>;
|
|
24
83
|
//# sourceMappingURL=output-helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-helpers.d.ts","sourceRoot":"","sources":["../../src/schemas/output-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"output-helpers.d.ts","sourceRoot":"","sources":["../../src/schemas/output-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYzB,CAAC"}
|
|
@@ -1,13 +1,44 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { FileTypeSchema } from './common.js';
|
|
2
3
|
export const TraversalSummarySchema = z.object({
|
|
3
4
|
totalFiles: z.number(),
|
|
4
5
|
totalDirectories: z.number(),
|
|
5
6
|
maxDepthReached: z.number().optional(),
|
|
6
7
|
truncated: z.boolean(),
|
|
8
|
+
stoppedReason: z
|
|
9
|
+
.enum(['maxEntries', 'aborted'])
|
|
10
|
+
.optional()
|
|
11
|
+
.describe('Reason traversal stopped early'),
|
|
7
12
|
skippedInaccessible: z.number().optional(),
|
|
8
13
|
symlinksNotFollowed: z
|
|
9
14
|
.number()
|
|
10
15
|
.optional()
|
|
11
16
|
.describe('Number of symbolic links encountered but not followed (for security)'),
|
|
17
|
+
entriesScanned: z
|
|
18
|
+
.number()
|
|
19
|
+
.optional()
|
|
20
|
+
.describe('Total number of directory entries scanned before filtering'),
|
|
21
|
+
entriesVisible: z
|
|
22
|
+
.number()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('Entries remaining after hidden/exclude filters'),
|
|
25
|
+
});
|
|
26
|
+
export const BatchSummarySchema = z.object({
|
|
27
|
+
total: z.number(),
|
|
28
|
+
succeeded: z.number(),
|
|
29
|
+
failed: z.number(),
|
|
30
|
+
});
|
|
31
|
+
export const FileInfoSchema = z.object({
|
|
32
|
+
name: z.string(),
|
|
33
|
+
path: z.string(),
|
|
34
|
+
type: FileTypeSchema,
|
|
35
|
+
size: z.number(),
|
|
36
|
+
created: z.string().optional(),
|
|
37
|
+
modified: z.string(),
|
|
38
|
+
accessed: z.string().optional(),
|
|
39
|
+
permissions: z.string(),
|
|
40
|
+
isHidden: z.boolean().optional(),
|
|
41
|
+
mimeType: z.string().optional(),
|
|
42
|
+
symlinkTarget: z.string().optional(),
|
|
12
43
|
});
|
|
13
44
|
//# sourceMappingURL=output-helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-helpers.js","sourceRoot":"","sources":["../../src/schemas/output-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC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AQ,CAAC,4DAA4D,CAAC;IACzE,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;CAC9D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
|
|
@@ -8,14 +8,14 @@ export declare const ComputeChecksumsOutputSchema: z.ZodObject<{
|
|
|
8
8
|
size: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
error: z.ZodOptional<z.ZodString>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
path: string;
|
|
12
11
|
algorithm: string;
|
|
12
|
+
path: string;
|
|
13
13
|
error?: string | undefined;
|
|
14
14
|
size?: number | undefined;
|
|
15
15
|
checksum?: string | undefined;
|
|
16
16
|
}, {
|
|
17
|
-
path: string;
|
|
18
17
|
algorithm: string;
|
|
18
|
+
path: string;
|
|
19
19
|
error?: string | undefined;
|
|
20
20
|
size?: number | undefined;
|
|
21
21
|
checksum?: string | undefined;
|
|
@@ -52,8 +52,8 @@ export declare const ComputeChecksumsOutputSchema: z.ZodObject<{
|
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
ok: boolean;
|
|
54
54
|
results?: {
|
|
55
|
-
path: string;
|
|
56
55
|
algorithm: string;
|
|
56
|
+
path: string;
|
|
57
57
|
error?: string | undefined;
|
|
58
58
|
size?: number | undefined;
|
|
59
59
|
checksum?: string | undefined;
|
|
@@ -72,8 +72,8 @@ export declare const ComputeChecksumsOutputSchema: z.ZodObject<{
|
|
|
72
72
|
}, {
|
|
73
73
|
ok: boolean;
|
|
74
74
|
results?: {
|
|
75
|
-
path: string;
|
|
76
75
|
algorithm: string;
|
|
76
|
+
path: string;
|
|
77
77
|
error?: string | undefined;
|
|
78
78
|
size?: number | undefined;
|
|
79
79
|
checksum?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checksums.d.ts","sourceRoot":"","sources":["../../../src/schemas/outputs/checksums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"checksums.d.ts","sourceRoot":"","sources":["../../../src/schemas/outputs/checksums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAevC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ErrorSchema } from '../common.js';
|
|
3
|
+
import { BatchSummarySchema } from '../output-helpers.js';
|
|
3
4
|
export const ComputeChecksumsOutputSchema = z.object({
|
|
4
5
|
ok: z.boolean(),
|
|
5
6
|
results: z
|
|
@@ -11,13 +12,7 @@ export const ComputeChecksumsOutputSchema = z.object({
|
|
|
11
12
|
error: z.string().optional(),
|
|
12
13
|
}))
|
|
13
14
|
.optional(),
|
|
14
|
-
summary:
|
|
15
|
-
.object({
|
|
16
|
-
total: z.number(),
|
|
17
|
-
succeeded: z.number(),
|
|
18
|
-
failed: z.number(),
|
|
19
|
-
})
|
|
20
|
-
.optional(),
|
|
15
|
+
summary: BatchSummarySchema.optional(),
|
|
21
16
|
error: ErrorSchema.optional(),
|
|
22
17
|
});
|
|
23
18
|
//# sourceMappingURL=checksums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checksums.js","sourceRoot":"","sources":["../../../src/schemas/outputs/checksums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"checksums.js","sourceRoot":"","sources":["../../../src/schemas/outputs/checksums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE;IACf,OAAO,EAAE,CAAC;SACP,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC7B,CAAC,CACH;SACA,QAAQ,EAAE;IACb,OAAO,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
|