@dexto/tools-filesystem 1.6.27 → 1.7.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.
@@ -11,17 +11,7 @@ declare const EditFileInputSchema: z.ZodObject<{
11
11
  old_string: z.ZodString;
12
12
  new_string: z.ZodString;
13
13
  replace_all: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14
- }, "strict", z.ZodTypeAny, {
15
- file_path: string;
16
- old_string: string;
17
- new_string: string;
18
- replace_all: boolean;
19
- }, {
20
- file_path: string;
21
- old_string: string;
22
- new_string: string;
23
- replace_all?: boolean | undefined;
24
- }>;
14
+ }, z.core.$strict>;
25
15
  /**
26
16
  * Create the edit_file internal tool with directory approval support
27
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"edit-file-tool.d.ts","sourceRoot":"","sources":["../src/edit-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAkBpE,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;EAaZ,CAAC;AA0Bd;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,mBAAmB,CAAC,CA2LlC"}
1
+ {"version":3,"file":"edit-file-tool.d.ts","sourceRoot":"","sources":["../src/edit-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAkBpE,QAAA,MAAM,mBAAmB;;;;;kBAaZ,CAAC;AA0Bd;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,mBAAmB,CAAC,CA2LlC"}
@@ -10,15 +10,7 @@ declare const GlobFilesInputSchema: z.ZodObject<{
10
10
  pattern: z.ZodString;
11
11
  path: z.ZodOptional<z.ZodString>;
12
12
  max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13
- }, "strict", z.ZodTypeAny, {
14
- pattern: string;
15
- max_results: number;
16
- path?: string | undefined;
17
- }, {
18
- pattern: string;
19
- path?: string | undefined;
20
- max_results?: number | undefined;
21
- }>;
13
+ }, z.core.$strict>;
22
14
  /**
23
15
  * Create the glob_files internal tool with directory approval support
24
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"glob-files-tool.d.ts","sourceRoot":"","sources":["../src/glob-files-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAIpE,QAAA,MAAM,oBAAoB;;;;;;;;;;;;EAiBb,CAAC;AAEd;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,oBAAoB,CAAC,CA2EnC"}
1
+ {"version":3,"file":"glob-files-tool.d.ts","sourceRoot":"","sources":["../src/glob-files-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAIpE,QAAA,MAAM,oBAAoB;;;;kBAiBb,CAAC;AAEd;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,oBAAoB,CAAC,CA2EnC"}
@@ -13,21 +13,7 @@ declare const GrepContentInputSchema: z.ZodObject<{
13
13
  context_lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14
14
  case_insensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15
15
  max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
16
- }, "strict", z.ZodTypeAny, {
17
- pattern: string;
18
- max_results: number;
19
- context_lines: number;
20
- case_insensitive: boolean;
21
- path?: string | undefined;
22
- glob?: string | undefined;
23
- }, {
24
- pattern: string;
25
- path?: string | undefined;
26
- max_results?: number | undefined;
27
- glob?: string | undefined;
28
- context_lines?: number | undefined;
29
- case_insensitive?: boolean | undefined;
30
- }>;
16
+ }, z.core.$strict>;
31
17
  /**
32
18
  * Create the grep_content internal tool with directory approval support
33
19
  */
@@ -1 +1 @@
1
- {"version":3,"file":"grep-content-tool.d.ts","sourceRoot":"","sources":["../src/grep-content-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAIpE,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAiCf,CAAC;AAEd;;GAEG;AACH,wBAAgB,qBAAqB,CACjC,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,sBAAsB,CAAC,CA6FrC"}
1
+ {"version":3,"file":"grep-content-tool.d.ts","sourceRoot":"","sources":["../src/grep-content-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAIpE,QAAA,MAAM,sBAAsB;;;;;;;kBAiCf,CAAC;AAEd;;GAEG;AACH,wBAAgB,qBAAqB,CACjC,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,sBAAsB,CAAC,CA6FrC"}
package/dist/index.d.cts CHANGED
@@ -24,38 +24,23 @@ import { Logger, ToolExecutionContext, DextoRuntimeError, Tool } from '@dexto/co
24
24
  */
25
25
  declare const FileSystemToolsConfigSchema: z.ZodObject<{
26
26
  type: z.ZodLiteral<"filesystem-tools">;
27
- allowedPaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
- blockedPaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
29
- blockedExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
27
+ allowedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
28
+ blockedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
29
+ blockedExtensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
30
30
  maxFileSize: z.ZodDefault<z.ZodNumber>;
31
31
  workingDirectory: z.ZodOptional<z.ZodString>;
32
32
  enableBackups: z.ZodDefault<z.ZodBoolean>;
33
33
  backupPath: z.ZodOptional<z.ZodString>;
34
34
  backupRetentionDays: z.ZodDefault<z.ZodNumber>;
35
- enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_file", "read_media_file", "write_file", "edit_file", "glob_files", "grep_content"]>, "many">>;
36
- }, "strict", z.ZodTypeAny, {
37
- allowedPaths: string[];
38
- blockedExtensions: string[];
39
- blockedPaths: string[];
40
- maxFileSize: number;
41
- enableBackups: boolean;
42
- backupRetentionDays: number;
43
- type: "filesystem-tools";
44
- backupPath?: string | undefined;
45
- workingDirectory?: string | undefined;
46
- enabledTools?: ("read_file" | "read_media_file" | "write_file" | "edit_file" | "glob_files" | "grep_content")[] | undefined;
47
- }, {
48
- type: "filesystem-tools";
49
- allowedPaths?: string[] | undefined;
50
- blockedExtensions?: string[] | undefined;
51
- backupPath?: string | undefined;
52
- blockedPaths?: string[] | undefined;
53
- maxFileSize?: number | undefined;
54
- enableBackups?: boolean | undefined;
55
- backupRetentionDays?: number | undefined;
56
- workingDirectory?: string | undefined;
57
- enabledTools?: ("read_file" | "read_media_file" | "write_file" | "edit_file" | "glob_files" | "grep_content")[] | undefined;
58
- }>;
35
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
36
+ read_file: "read_file";
37
+ read_media_file: "read_media_file";
38
+ write_file: "write_file";
39
+ edit_file: "edit_file";
40
+ glob_files: "glob_files";
41
+ grep_content: "grep_content";
42
+ }>>>;
43
+ }, z.core.$strict>;
59
44
  type FileSystemToolsConfig = z.output<typeof FileSystemToolsConfigSchema>;
60
45
 
61
46
  declare const fileSystemToolsFactory: ToolFactory<FileSystemToolsConfig>;
@@ -738,15 +723,7 @@ declare const ReadFileInputSchema: z.ZodObject<{
738
723
  file_path: z.ZodString;
739
724
  limit: z.ZodOptional<z.ZodNumber>;
740
725
  offset: z.ZodOptional<z.ZodNumber>;
741
- }, "strict", z.ZodTypeAny, {
742
- file_path: string;
743
- limit?: number | undefined;
744
- offset?: number | undefined;
745
- }, {
746
- file_path: string;
747
- limit?: number | undefined;
748
- offset?: number | undefined;
749
- }>;
726
+ }, z.core.$strict>;
750
727
  /**
751
728
  * Create the read_file internal tool with directory approval support
752
729
  */
@@ -760,11 +737,7 @@ declare function createReadFileTool(getFileSystemService: FileSystemServiceGette
760
737
 
761
738
  declare const ReadMediaFileInputSchema: z.ZodObject<{
762
739
  file_path: z.ZodString;
763
- }, "strict", z.ZodTypeAny, {
764
- file_path: string;
765
- }, {
766
- file_path: string;
767
- }>;
740
+ }, z.core.$strict>;
768
741
  declare function createReadMediaFileTool(getFileSystemService: FileSystemServiceGetter): Tool<typeof ReadMediaFileInputSchema>;
769
742
 
770
743
  /**
@@ -777,18 +750,13 @@ declare const WriteFileInputSchema: z.ZodObject<{
777
750
  file_path: z.ZodString;
778
751
  content: z.ZodString;
779
752
  create_dirs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
780
- encoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<["utf-8", "ascii", "latin1", "utf16le"]>>>;
781
- }, "strict", z.ZodTypeAny, {
782
- content: string;
783
- encoding: "ascii" | "utf-8" | "utf16le" | "latin1";
784
- file_path: string;
785
- create_dirs: boolean;
786
- }, {
787
- content: string;
788
- file_path: string;
789
- encoding?: "ascii" | "utf-8" | "utf16le" | "latin1" | undefined;
790
- create_dirs?: boolean | undefined;
791
- }>;
753
+ encoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
754
+ ascii: "ascii";
755
+ "utf-8": "utf-8";
756
+ utf16le: "utf16le";
757
+ latin1: "latin1";
758
+ }>>>;
759
+ }, z.core.$strict>;
792
760
  /**
793
761
  * Create the write_file internal tool with directory approval support
794
762
  */
@@ -805,17 +773,7 @@ declare const EditFileInputSchema: z.ZodObject<{
805
773
  old_string: z.ZodString;
806
774
  new_string: z.ZodString;
807
775
  replace_all: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
808
- }, "strict", z.ZodTypeAny, {
809
- file_path: string;
810
- old_string: string;
811
- new_string: string;
812
- replace_all: boolean;
813
- }, {
814
- file_path: string;
815
- old_string: string;
816
- new_string: string;
817
- replace_all?: boolean | undefined;
818
- }>;
776
+ }, z.core.$strict>;
819
777
  /**
820
778
  * Create the edit_file internal tool with directory approval support
821
779
  */
@@ -831,15 +789,7 @@ declare const GlobFilesInputSchema: z.ZodObject<{
831
789
  pattern: z.ZodString;
832
790
  path: z.ZodOptional<z.ZodString>;
833
791
  max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
834
- }, "strict", z.ZodTypeAny, {
835
- pattern: string;
836
- max_results: number;
837
- path?: string | undefined;
838
- }, {
839
- pattern: string;
840
- path?: string | undefined;
841
- max_results?: number | undefined;
842
- }>;
792
+ }, z.core.$strict>;
843
793
  /**
844
794
  * Create the glob_files internal tool with directory approval support
845
795
  */
@@ -858,21 +808,7 @@ declare const GrepContentInputSchema: z.ZodObject<{
858
808
  context_lines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
859
809
  case_insensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
860
810
  max_results: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
861
- }, "strict", z.ZodTypeAny, {
862
- pattern: string;
863
- max_results: number;
864
- context_lines: number;
865
- case_insensitive: boolean;
866
- path?: string | undefined;
867
- glob?: string | undefined;
868
- }, {
869
- pattern: string;
870
- path?: string | undefined;
871
- max_results?: number | undefined;
872
- glob?: string | undefined;
873
- context_lines?: number | undefined;
874
- case_insensitive?: boolean | undefined;
875
- }>;
811
+ }, z.core.$strict>;
876
812
  /**
877
813
  * Create the grep_content internal tool with directory approval support
878
814
  */
@@ -10,15 +10,7 @@ declare const ReadFileInputSchema: z.ZodObject<{
10
10
  file_path: z.ZodString;
11
11
  limit: z.ZodOptional<z.ZodNumber>;
12
12
  offset: z.ZodOptional<z.ZodNumber>;
13
- }, "strict", z.ZodTypeAny, {
14
- file_path: string;
15
- limit?: number | undefined;
16
- offset?: number | undefined;
17
- }, {
18
- file_path: string;
19
- limit?: number | undefined;
20
- offset?: number | undefined;
21
- }>;
13
+ }, z.core.$strict>;
22
14
  /**
23
15
  * Create the read_file internal tool with directory approval support
24
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"read-file-tool.d.ts","sourceRoot":"","sources":["../src/read-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAmB,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAGpE,QAAA,MAAM,mBAAmB;;;;;;;;;;;;EAgBZ,CAAC;AAEd;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,mBAAmB,CAAC,CA6DlC"}
1
+ {"version":3,"file":"read-file-tool.d.ts","sourceRoot":"","sources":["../src/read-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAmB,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAGpE,QAAA,MAAM,mBAAmB;;;;kBAgBZ,CAAC;AAEd;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,mBAAmB,CAAC,CA6DlC"}
@@ -8,11 +8,7 @@ import type { Tool } from '@dexto/core';
8
8
  import type { FileSystemServiceGetter } from './file-tool-types.js';
9
9
  declare const ReadMediaFileInputSchema: z.ZodObject<{
10
10
  file_path: z.ZodString;
11
- }, "strict", z.ZodTypeAny, {
12
- file_path: string;
13
- }, {
14
- file_path: string;
15
- }>;
11
+ }, z.core.$strict>;
16
12
  export declare function createReadMediaFileTool(getFileSystemService: FileSystemServiceGetter): Tool<typeof ReadMediaFileInputSchema>;
17
13
  export {};
18
14
  //# sourceMappingURL=read-media-file-tool.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"read-media-file-tool.d.ts","sourceRoot":"","sources":["../src/read-media-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAmB,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAGpE,QAAA,MAAM,wBAAwB;;;;;;EAOjB,CAAC;AAEd,wBAAgB,uBAAuB,CACnC,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAkEvC"}
1
+ {"version":3,"file":"read-media-file-tool.d.ts","sourceRoot":"","sources":["../src/read-media-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAmB,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAGpE,QAAA,MAAM,wBAAwB;;kBAOjB,CAAC;AAEd,wBAAgB,uBAAuB,CACnC,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAkEvC"}
@@ -24,37 +24,22 @@ export declare const FILESYSTEM_TOOL_NAMES: readonly ["read_file", "read_media_f
24
24
  */
25
25
  export declare const FileSystemToolsConfigSchema: z.ZodObject<{
26
26
  type: z.ZodLiteral<"filesystem-tools">;
27
- allowedPaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
28
- blockedPaths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
29
- blockedExtensions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
27
+ allowedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
28
+ blockedPaths: z.ZodDefault<z.ZodArray<z.ZodString>>;
29
+ blockedExtensions: z.ZodDefault<z.ZodArray<z.ZodString>>;
30
30
  maxFileSize: z.ZodDefault<z.ZodNumber>;
31
31
  workingDirectory: z.ZodOptional<z.ZodString>;
32
32
  enableBackups: z.ZodDefault<z.ZodBoolean>;
33
33
  backupPath: z.ZodOptional<z.ZodString>;
34
34
  backupRetentionDays: z.ZodDefault<z.ZodNumber>;
35
- enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<["read_file", "read_media_file", "write_file", "edit_file", "glob_files", "grep_content"]>, "many">>;
36
- }, "strict", z.ZodTypeAny, {
37
- allowedPaths: string[];
38
- blockedExtensions: string[];
39
- blockedPaths: string[];
40
- maxFileSize: number;
41
- enableBackups: boolean;
42
- backupRetentionDays: number;
43
- type: "filesystem-tools";
44
- backupPath?: string | undefined;
45
- workingDirectory?: string | undefined;
46
- enabledTools?: ("read_file" | "write_file" | "edit_file" | "read_media_file" | "glob_files" | "grep_content")[] | undefined;
47
- }, {
48
- type: "filesystem-tools";
49
- allowedPaths?: string[] | undefined;
50
- blockedExtensions?: string[] | undefined;
51
- backupPath?: string | undefined;
52
- blockedPaths?: string[] | undefined;
53
- maxFileSize?: number | undefined;
54
- enableBackups?: boolean | undefined;
55
- backupRetentionDays?: number | undefined;
56
- workingDirectory?: string | undefined;
57
- enabledTools?: ("read_file" | "write_file" | "edit_file" | "read_media_file" | "glob_files" | "grep_content")[] | undefined;
58
- }>;
35
+ enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
36
+ read_file: "read_file";
37
+ write_file: "write_file";
38
+ edit_file: "edit_file";
39
+ read_media_file: "read_media_file";
40
+ glob_files: "glob_files";
41
+ grep_content: "grep_content";
42
+ }>>>;
43
+ }, z.core.$strict>;
59
44
  export type FileSystemToolsConfig = z.output<typeof FileSystemToolsConfigSchema>;
60
45
  //# sourceMappingURL=tool-factory-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tool-factory-config.d.ts","sourceRoot":"","sources":["../src/tool-factory-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB;;GAEG;AACH,eAAO,MAAM,qBAAqB,oGAOxB,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkD3B,CAAC;AAEd,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
1
+ {"version":3,"file":"tool-factory-config.d.ts","sourceRoot":"","sources":["../src/tool-factory-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB;;GAEG;AACH,eAAO,MAAM,qBAAqB,oGAOxB,CAAC;AAEX;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;kBAkD3B,CAAC;AAEd,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -10,18 +10,13 @@ declare const WriteFileInputSchema: z.ZodObject<{
10
10
  file_path: z.ZodString;
11
11
  content: z.ZodString;
12
12
  create_dirs: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13
- encoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<["utf-8", "ascii", "latin1", "utf16le"]>>>;
14
- }, "strict", z.ZodTypeAny, {
15
- content: string;
16
- encoding: "ascii" | "utf-8" | "utf16le" | "latin1";
17
- file_path: string;
18
- create_dirs: boolean;
19
- }, {
20
- content: string;
21
- file_path: string;
22
- encoding?: "ascii" | "utf-8" | "utf16le" | "latin1" | undefined;
23
- create_dirs?: boolean | undefined;
24
- }>;
13
+ encoding: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
14
+ ascii: "ascii";
15
+ "utf-8": "utf-8";
16
+ utf16le: "utf16le";
17
+ latin1: "latin1";
18
+ }>>>;
19
+ }, z.core.$strict>;
25
20
  /**
26
21
  * Create the write_file internal tool with directory approval support
27
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"write-file-tool.d.ts","sourceRoot":"","sources":["../src/write-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAG9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAuBpE,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;EAeb,CAAC;AA0Bd;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAqMnC"}
1
+ {"version":3,"file":"write-file-tool.d.ts","sourceRoot":"","sources":["../src/write-file-tool.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAG9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAuBpE,QAAA,MAAM,oBAAoB;;;;;;;;;;kBAeb,CAAC;AA0Bd;;GAEG;AACH,wBAAgB,mBAAmB,CAC/B,oBAAoB,EAAE,uBAAuB,GAC9C,IAAI,CAAC,OAAO,oBAAoB,CAAC,CAqMnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dexto/tools-filesystem",
3
- "version": "1.6.27",
3
+ "version": "1.7.1",
4
4
  "description": "FileSystem tools factory for Dexto agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,9 +21,9 @@
21
21
  "diff": "^8.0.3",
22
22
  "glob": "^12.0.0",
23
23
  "safe-regex": "^2.1.1",
24
- "zod": "^3.25.0",
25
- "@dexto/agent-config": "1.6.27",
26
- "@dexto/core": "1.6.27"
24
+ "zod": "^4.3.6",
25
+ "@dexto/agent-config": "1.7.1",
26
+ "@dexto/core": "1.7.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/diff": "^5.2.3",