@agentforge/tools 0.16.79 → 0.16.81
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 +15 -0
- package/dist/index.cjs +47 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -46
- package/dist/index.d.ts +74 -46
- package/dist/index.js +47 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -627,15 +627,15 @@ declare const urlBuilderSchema: z.ZodObject<{
|
|
|
627
627
|
protocol: string;
|
|
628
628
|
hostname: string;
|
|
629
629
|
pathname: string;
|
|
630
|
-
port?: string | undefined;
|
|
631
630
|
query?: Record<string, string> | undefined;
|
|
631
|
+
port?: string | undefined;
|
|
632
632
|
hash?: string | undefined;
|
|
633
633
|
}, {
|
|
634
634
|
hostname: string;
|
|
635
|
+
query?: Record<string, string> | undefined;
|
|
635
636
|
protocol?: string | undefined;
|
|
636
637
|
port?: string | undefined;
|
|
637
638
|
pathname?: string | undefined;
|
|
638
|
-
query?: Record<string, string> | undefined;
|
|
639
639
|
hash?: string | undefined;
|
|
640
640
|
}>;
|
|
641
641
|
/**
|
|
@@ -693,10 +693,10 @@ declare function createUrlValidatorTool(): _agentforge_core.Tool<{
|
|
|
693
693
|
*/
|
|
694
694
|
declare function createUrlBuilderTool(): _agentforge_core.Tool<{
|
|
695
695
|
hostname: string;
|
|
696
|
+
query?: Record<string, string> | undefined;
|
|
696
697
|
protocol?: string | undefined;
|
|
697
698
|
port?: string | undefined;
|
|
698
699
|
pathname?: string | undefined;
|
|
699
|
-
query?: Record<string, string> | undefined;
|
|
700
700
|
hash?: string | undefined;
|
|
701
701
|
}, {
|
|
702
702
|
url: string;
|
|
@@ -745,10 +745,10 @@ declare const urlValidator: _agentforge_core.Tool<{
|
|
|
745
745
|
}>;
|
|
746
746
|
declare const urlBuilder: _agentforge_core.Tool<{
|
|
747
747
|
hostname: string;
|
|
748
|
+
query?: Record<string, string> | undefined;
|
|
748
749
|
protocol?: string | undefined;
|
|
749
750
|
port?: string | undefined;
|
|
750
751
|
pathname?: string | undefined;
|
|
751
|
-
query?: Record<string, string> | undefined;
|
|
752
752
|
hash?: string | undefined;
|
|
753
753
|
}, {
|
|
754
754
|
url: string;
|
|
@@ -776,10 +776,10 @@ declare const urlValidatorTools: (_agentforge_core.Tool<{
|
|
|
776
776
|
error?: string;
|
|
777
777
|
}> | _agentforge_core.Tool<{
|
|
778
778
|
hostname: string;
|
|
779
|
+
query?: Record<string, string> | undefined;
|
|
779
780
|
protocol?: string | undefined;
|
|
780
781
|
port?: string | undefined;
|
|
781
782
|
pathname?: string | undefined;
|
|
782
|
-
query?: Record<string, string> | undefined;
|
|
783
783
|
hash?: string | undefined;
|
|
784
784
|
}, {
|
|
785
785
|
url: string;
|
|
@@ -817,10 +817,10 @@ declare function createUrlValidatorTools(config?: UrlValidatorToolsConfig): (_ag
|
|
|
817
817
|
error?: string;
|
|
818
818
|
}> | _agentforge_core.Tool<{
|
|
819
819
|
hostname: string;
|
|
820
|
+
query?: Record<string, string> | undefined;
|
|
820
821
|
protocol?: string | undefined;
|
|
821
822
|
port?: string | undefined;
|
|
822
823
|
pathname?: string | undefined;
|
|
823
|
-
query?: Record<string, string> | undefined;
|
|
824
824
|
hash?: string | undefined;
|
|
825
825
|
}, {
|
|
826
826
|
url: string;
|
|
@@ -907,8 +907,8 @@ declare const webSearchSchema: z.ZodObject<{
|
|
|
907
907
|
preferSerper: z.ZodDefault<z.ZodBoolean>;
|
|
908
908
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
909
909
|
}, "strip", z.ZodTypeAny, {
|
|
910
|
-
timeout: number;
|
|
911
910
|
query: string;
|
|
911
|
+
timeout: number;
|
|
912
912
|
maxResults: number;
|
|
913
913
|
preferSerper: boolean;
|
|
914
914
|
}, {
|
|
@@ -972,37 +972,37 @@ declare const webSearchOutputSchema: z.ZodObject<{
|
|
|
972
972
|
fallbackUsed?: boolean | undefined;
|
|
973
973
|
}>>;
|
|
974
974
|
}, "strip", z.ZodTypeAny, {
|
|
975
|
+
success: boolean;
|
|
976
|
+
query: string;
|
|
975
977
|
results: {
|
|
976
978
|
link: string;
|
|
977
979
|
title: string;
|
|
978
980
|
snippet: string;
|
|
979
981
|
position?: number | undefined;
|
|
980
982
|
}[];
|
|
981
|
-
query: string;
|
|
982
|
-
success: boolean;
|
|
983
983
|
source: "duckduckgo" | "serper";
|
|
984
|
+
error?: string | undefined;
|
|
984
985
|
metadata?: {
|
|
985
986
|
responseTime?: number | undefined;
|
|
986
987
|
fallbackUsed?: boolean | undefined;
|
|
987
988
|
} | undefined;
|
|
988
989
|
totalResults?: number | undefined;
|
|
989
|
-
error?: string | undefined;
|
|
990
990
|
}, {
|
|
991
|
+
success: boolean;
|
|
992
|
+
query: string;
|
|
991
993
|
results: {
|
|
992
994
|
link: string;
|
|
993
995
|
title: string;
|
|
994
996
|
snippet: string;
|
|
995
997
|
position?: number | undefined;
|
|
996
998
|
}[];
|
|
997
|
-
query: string;
|
|
998
|
-
success: boolean;
|
|
999
999
|
source: "duckduckgo" | "serper";
|
|
1000
|
+
error?: string | undefined;
|
|
1000
1001
|
metadata?: {
|
|
1001
1002
|
responseTime?: number | undefined;
|
|
1002
1003
|
fallbackUsed?: boolean | undefined;
|
|
1003
1004
|
} | undefined;
|
|
1004
1005
|
totalResults?: number | undefined;
|
|
1005
|
-
error?: string | undefined;
|
|
1006
1006
|
}>;
|
|
1007
1007
|
|
|
1008
1008
|
/**
|
|
@@ -2349,7 +2349,7 @@ declare function createXmlGeneratorTool(defaultRootName?: string, defaultFormat?
|
|
|
2349
2349
|
indentSize?: number | undefined;
|
|
2350
2350
|
}, {
|
|
2351
2351
|
success: boolean;
|
|
2352
|
-
xml:
|
|
2352
|
+
xml: string;
|
|
2353
2353
|
error?: undefined;
|
|
2354
2354
|
} | {
|
|
2355
2355
|
success: boolean;
|
|
@@ -2389,7 +2389,7 @@ declare function createJsonToXmlTool(defaultRootName?: string, defaultFormat?: b
|
|
|
2389
2389
|
rootName?: string | undefined;
|
|
2390
2390
|
}, {
|
|
2391
2391
|
success: boolean;
|
|
2392
|
-
xml:
|
|
2392
|
+
xml: string;
|
|
2393
2393
|
error?: undefined;
|
|
2394
2394
|
} | {
|
|
2395
2395
|
success: boolean;
|
|
@@ -2424,7 +2424,7 @@ declare const xmlGenerator: _agentforge_core.Tool<{
|
|
|
2424
2424
|
indentSize?: number | undefined;
|
|
2425
2425
|
}, {
|
|
2426
2426
|
success: boolean;
|
|
2427
|
-
xml:
|
|
2427
|
+
xml: string;
|
|
2428
2428
|
error?: undefined;
|
|
2429
2429
|
} | {
|
|
2430
2430
|
success: boolean;
|
|
@@ -2456,7 +2456,7 @@ declare const jsonToXml: _agentforge_core.Tool<{
|
|
|
2456
2456
|
rootName?: string | undefined;
|
|
2457
2457
|
}, {
|
|
2458
2458
|
success: boolean;
|
|
2459
|
-
xml:
|
|
2459
|
+
xml: string;
|
|
2460
2460
|
error?: undefined;
|
|
2461
2461
|
} | {
|
|
2462
2462
|
success: boolean;
|
|
@@ -2486,7 +2486,7 @@ declare const xmlTools: (_agentforge_core.Tool<{
|
|
|
2486
2486
|
indentSize?: number | undefined;
|
|
2487
2487
|
}, {
|
|
2488
2488
|
success: boolean;
|
|
2489
|
-
xml:
|
|
2489
|
+
xml: string;
|
|
2490
2490
|
error?: undefined;
|
|
2491
2491
|
} | {
|
|
2492
2492
|
success: boolean;
|
|
@@ -2510,7 +2510,7 @@ declare const xmlTools: (_agentforge_core.Tool<{
|
|
|
2510
2510
|
rootName?: string | undefined;
|
|
2511
2511
|
}, {
|
|
2512
2512
|
success: boolean;
|
|
2513
|
-
xml:
|
|
2513
|
+
xml: string;
|
|
2514
2514
|
error?: undefined;
|
|
2515
2515
|
} | {
|
|
2516
2516
|
success: boolean;
|
|
@@ -2540,7 +2540,7 @@ declare function createXmlTools(config?: XmlToolsConfig): (_agentforge_core.Tool
|
|
|
2540
2540
|
indentSize?: number | undefined;
|
|
2541
2541
|
}, {
|
|
2542
2542
|
success: boolean;
|
|
2543
|
-
xml:
|
|
2543
|
+
xml: string;
|
|
2544
2544
|
error?: undefined;
|
|
2545
2545
|
} | {
|
|
2546
2546
|
success: boolean;
|
|
@@ -2564,7 +2564,7 @@ declare function createXmlTools(config?: XmlToolsConfig): (_agentforge_core.Tool
|
|
|
2564
2564
|
rootName?: string | undefined;
|
|
2565
2565
|
}, {
|
|
2566
2566
|
success: boolean;
|
|
2567
|
-
xml:
|
|
2567
|
+
xml: string;
|
|
2568
2568
|
error?: undefined;
|
|
2569
2569
|
} | {
|
|
2570
2570
|
success: boolean;
|
|
@@ -3019,14 +3019,14 @@ declare const neo4jVectorSearchWithEmbeddingSchema: z.ZodObject<{
|
|
|
3019
3019
|
limit: number;
|
|
3020
3020
|
indexName: string;
|
|
3021
3021
|
queryText: string;
|
|
3022
|
-
database?: string | undefined;
|
|
3023
3022
|
model?: string | undefined;
|
|
3023
|
+
database?: string | undefined;
|
|
3024
3024
|
}, {
|
|
3025
3025
|
indexName: string;
|
|
3026
3026
|
queryText: string;
|
|
3027
|
+
model?: string | undefined;
|
|
3027
3028
|
limit?: number | undefined;
|
|
3028
3029
|
database?: string | undefined;
|
|
3029
|
-
model?: string | undefined;
|
|
3030
3030
|
}>;
|
|
3031
3031
|
/**
|
|
3032
3032
|
* Neo4j create node with embedding schema
|
|
@@ -3043,14 +3043,14 @@ declare const neo4jCreateNodeWithEmbeddingSchema: z.ZodObject<{
|
|
|
3043
3043
|
label: string;
|
|
3044
3044
|
textProperty: string;
|
|
3045
3045
|
embeddingProperty: string;
|
|
3046
|
-
database?: string | undefined;
|
|
3047
3046
|
model?: string | undefined;
|
|
3047
|
+
database?: string | undefined;
|
|
3048
3048
|
}, {
|
|
3049
3049
|
properties: Record<string, any>;
|
|
3050
3050
|
label: string;
|
|
3051
3051
|
textProperty: string;
|
|
3052
|
-
database?: string | undefined;
|
|
3053
3052
|
model?: string | undefined;
|
|
3053
|
+
database?: string | undefined;
|
|
3054
3054
|
embeddingProperty?: string | undefined;
|
|
3055
3055
|
}>;
|
|
3056
3056
|
/**
|
|
@@ -3635,9 +3635,9 @@ declare function createNeo4jVectorSearchTool(): _agentforge_core.Tool<{
|
|
|
3635
3635
|
declare function createNeo4jVectorSearchWithEmbeddingTool(): _agentforge_core.Tool<{
|
|
3636
3636
|
indexName: string;
|
|
3637
3637
|
queryText: string;
|
|
3638
|
+
model?: string | undefined;
|
|
3638
3639
|
limit?: number | undefined;
|
|
3639
3640
|
database?: string | undefined;
|
|
3640
|
-
model?: string | undefined;
|
|
3641
3641
|
}, {
|
|
3642
3642
|
success: boolean;
|
|
3643
3643
|
error: string;
|
|
@@ -3696,8 +3696,8 @@ declare function createNeo4jCreateNodeWithEmbeddingTool(): _agentforge_core.Tool
|
|
|
3696
3696
|
properties: Record<string, any>;
|
|
3697
3697
|
label: string;
|
|
3698
3698
|
textProperty: string;
|
|
3699
|
-
database?: string | undefined;
|
|
3700
3699
|
model?: string | undefined;
|
|
3700
|
+
database?: string | undefined;
|
|
3701
3701
|
embeddingProperty?: string | undefined;
|
|
3702
3702
|
}, {
|
|
3703
3703
|
success: boolean;
|
|
@@ -3925,9 +3925,9 @@ declare const neo4jVectorSearch: _agentforge_core.Tool<{
|
|
|
3925
3925
|
declare const neo4jVectorSearchWithEmbedding: _agentforge_core.Tool<{
|
|
3926
3926
|
indexName: string;
|
|
3927
3927
|
queryText: string;
|
|
3928
|
+
model?: string | undefined;
|
|
3928
3929
|
limit?: number | undefined;
|
|
3929
3930
|
database?: string | undefined;
|
|
3930
|
-
model?: string | undefined;
|
|
3931
3931
|
}, {
|
|
3932
3932
|
success: boolean;
|
|
3933
3933
|
error: string;
|
|
@@ -3979,8 +3979,8 @@ declare const neo4jCreateNodeWithEmbedding: _agentforge_core.Tool<{
|
|
|
3979
3979
|
properties: Record<string, any>;
|
|
3980
3980
|
label: string;
|
|
3981
3981
|
textProperty: string;
|
|
3982
|
-
database?: string | undefined;
|
|
3983
3982
|
model?: string | undefined;
|
|
3983
|
+
database?: string | undefined;
|
|
3984
3984
|
embeddingProperty?: string | undefined;
|
|
3985
3985
|
}, {
|
|
3986
3986
|
success: boolean;
|
|
@@ -4187,9 +4187,9 @@ declare const neo4jTools: (_agentforge_core.Tool<{
|
|
|
4187
4187
|
}> | _agentforge_core.Tool<{
|
|
4188
4188
|
indexName: string;
|
|
4189
4189
|
queryText: string;
|
|
4190
|
+
model?: string | undefined;
|
|
4190
4191
|
limit?: number | undefined;
|
|
4191
4192
|
database?: string | undefined;
|
|
4192
|
-
model?: string | undefined;
|
|
4193
4193
|
}, {
|
|
4194
4194
|
success: boolean;
|
|
4195
4195
|
error: string;
|
|
@@ -4237,8 +4237,8 @@ declare const neo4jTools: (_agentforge_core.Tool<{
|
|
|
4237
4237
|
properties: Record<string, any>;
|
|
4238
4238
|
label: string;
|
|
4239
4239
|
textProperty: string;
|
|
4240
|
-
database?: string | undefined;
|
|
4241
4240
|
model?: string | undefined;
|
|
4241
|
+
database?: string | undefined;
|
|
4242
4242
|
embeddingProperty?: string | undefined;
|
|
4243
4243
|
}, {
|
|
4244
4244
|
success: boolean;
|
|
@@ -4625,9 +4625,9 @@ declare function createNeo4jTools(config?: Neo4jToolsConfig, includeEmbeddingToo
|
|
|
4625
4625
|
}> | _agentforge_core.Tool<{
|
|
4626
4626
|
indexName: string;
|
|
4627
4627
|
queryText: string;
|
|
4628
|
+
model?: string | undefined;
|
|
4628
4629
|
limit?: number | undefined;
|
|
4629
4630
|
database?: string | undefined;
|
|
4630
|
-
model?: string | undefined;
|
|
4631
4631
|
}, {
|
|
4632
4632
|
success: boolean;
|
|
4633
4633
|
error: string;
|
|
@@ -4675,8 +4675,8 @@ declare function createNeo4jTools(config?: Neo4jToolsConfig, includeEmbeddingToo
|
|
|
4675
4675
|
properties: Record<string, any>;
|
|
4676
4676
|
label: string;
|
|
4677
4677
|
textProperty: string;
|
|
4678
|
-
database?: string | undefined;
|
|
4679
4678
|
model?: string | undefined;
|
|
4679
|
+
database?: string | undefined;
|
|
4680
4680
|
embeddingProperty?: string | undefined;
|
|
4681
4681
|
}, {
|
|
4682
4682
|
success: boolean;
|
|
@@ -6171,10 +6171,10 @@ declare const fileReaderSchema: z.ZodObject<{
|
|
|
6171
6171
|
encoding: z.ZodDefault<z.ZodEnum<["utf8", "utf-8", "ascii", "base64", "hex", "binary"]>>;
|
|
6172
6172
|
}, "strip", z.ZodTypeAny, {
|
|
6173
6173
|
path: string;
|
|
6174
|
-
encoding: "
|
|
6174
|
+
encoding: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8";
|
|
6175
6175
|
}, {
|
|
6176
6176
|
path: string;
|
|
6177
|
-
encoding?: "
|
|
6177
|
+
encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6178
6178
|
}>;
|
|
6179
6179
|
/**
|
|
6180
6180
|
* File writer schema
|
|
@@ -6187,12 +6187,12 @@ declare const fileWriterSchema: z.ZodObject<{
|
|
|
6187
6187
|
}, "strip", z.ZodTypeAny, {
|
|
6188
6188
|
path: string;
|
|
6189
6189
|
content: string;
|
|
6190
|
-
encoding: "
|
|
6190
|
+
encoding: "base64" | "ascii" | "hex" | "utf-8" | "utf8";
|
|
6191
6191
|
createDirs: boolean;
|
|
6192
6192
|
}, {
|
|
6193
6193
|
path: string;
|
|
6194
6194
|
content: string;
|
|
6195
|
-
encoding?: "
|
|
6195
|
+
encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6196
6196
|
createDirs?: boolean | undefined;
|
|
6197
6197
|
}>;
|
|
6198
6198
|
/**
|
|
@@ -6245,7 +6245,7 @@ interface FileOperationsConfig {
|
|
|
6245
6245
|
*/
|
|
6246
6246
|
declare function createFileReaderTool(defaultEncoding?: string, policy?: FileSystemPolicy): _agentforge_core.Tool<{
|
|
6247
6247
|
path: string;
|
|
6248
|
-
encoding?: "
|
|
6248
|
+
encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6249
6249
|
}, {
|
|
6250
6250
|
success: boolean;
|
|
6251
6251
|
data?: {
|
|
@@ -6263,7 +6263,7 @@ declare function createFileReaderTool(defaultEncoding?: string, policy?: FileSys
|
|
|
6263
6263
|
declare function createFileWriterTool(defaultEncoding?: string, createDirsDefault?: boolean, policy?: FileSystemPolicy): _agentforge_core.Tool<{
|
|
6264
6264
|
path: string;
|
|
6265
6265
|
content: string;
|
|
6266
|
-
encoding?: "
|
|
6266
|
+
encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6267
6267
|
createDirs?: boolean | undefined;
|
|
6268
6268
|
}, {
|
|
6269
6269
|
success: boolean;
|
|
@@ -6344,7 +6344,7 @@ declare function createFileExistsTool(policy?: FileSystemPolicy): _agentforge_co
|
|
|
6344
6344
|
*/
|
|
6345
6345
|
declare const fileReader: _agentforge_core.Tool<{
|
|
6346
6346
|
path: string;
|
|
6347
|
-
encoding?: "
|
|
6347
|
+
encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6348
6348
|
}, {
|
|
6349
6349
|
success: boolean;
|
|
6350
6350
|
data?: {
|
|
@@ -6358,7 +6358,7 @@ declare const fileReader: _agentforge_core.Tool<{
|
|
|
6358
6358
|
declare const fileWriter: _agentforge_core.Tool<{
|
|
6359
6359
|
path: string;
|
|
6360
6360
|
content: string;
|
|
6361
|
-
encoding?: "
|
|
6361
|
+
encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6362
6362
|
createDirs?: boolean | undefined;
|
|
6363
6363
|
}, {
|
|
6364
6364
|
success: boolean;
|
|
@@ -6426,7 +6426,7 @@ declare const fileExists: _agentforge_core.Tool<{
|
|
|
6426
6426
|
*/
|
|
6427
6427
|
declare const fileOperationTools: (_agentforge_core.Tool<{
|
|
6428
6428
|
path: string;
|
|
6429
|
-
encoding?: "
|
|
6429
|
+
encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6430
6430
|
}, {
|
|
6431
6431
|
success: boolean;
|
|
6432
6432
|
data?: {
|
|
@@ -6439,7 +6439,7 @@ declare const fileOperationTools: (_agentforge_core.Tool<{
|
|
|
6439
6439
|
}> | _agentforge_core.Tool<{
|
|
6440
6440
|
path: string;
|
|
6441
6441
|
content: string;
|
|
6442
|
-
encoding?: "
|
|
6442
|
+
encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6443
6443
|
createDirs?: boolean | undefined;
|
|
6444
6444
|
}, {
|
|
6445
6445
|
success: boolean;
|
|
@@ -6504,7 +6504,7 @@ declare const fileOperationTools: (_agentforge_core.Tool<{
|
|
|
6504
6504
|
*/
|
|
6505
6505
|
declare function createFileOperationTools(config?: FileOperationsConfig): (_agentforge_core.Tool<{
|
|
6506
6506
|
path: string;
|
|
6507
|
-
encoding?: "
|
|
6507
|
+
encoding?: "base64" | "ascii" | "binary" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6508
6508
|
}, {
|
|
6509
6509
|
success: boolean;
|
|
6510
6510
|
data?: {
|
|
@@ -6517,7 +6517,7 @@ declare function createFileOperationTools(config?: FileOperationsConfig): (_agen
|
|
|
6517
6517
|
}> | _agentforge_core.Tool<{
|
|
6518
6518
|
path: string;
|
|
6519
6519
|
content: string;
|
|
6520
|
-
encoding?: "
|
|
6520
|
+
encoding?: "base64" | "ascii" | "hex" | "utf-8" | "utf8" | undefined;
|
|
6521
6521
|
createDirs?: boolean | undefined;
|
|
6522
6522
|
}, {
|
|
6523
6523
|
success: boolean;
|
|
@@ -7235,6 +7235,34 @@ declare function createPathUtilityTools(config?: PathUtilitiesConfig): (_agentfo
|
|
|
7235
7235
|
original: string;
|
|
7236
7236
|
}>)[];
|
|
7237
7237
|
|
|
7238
|
+
interface ModelSafeToolPresetOptions {
|
|
7239
|
+
fileSystem?: FileSystemPolicyOptions;
|
|
7240
|
+
file?: Omit<FileOperationsConfig, 'policy'>;
|
|
7241
|
+
directory?: Omit<DirectoryOperationsConfig, 'policy'>;
|
|
7242
|
+
web?: {
|
|
7243
|
+
http?: Omit<HttpToolsConfig, 'destinationPolicy'>;
|
|
7244
|
+
scraper?: Omit<ScraperToolsConfig, 'destinationPolicy'>;
|
|
7245
|
+
destinationPolicy?: DestinationPolicy;
|
|
7246
|
+
};
|
|
7247
|
+
}
|
|
7248
|
+
type FileTool = ReturnType<typeof createFileOperationTools>[number];
|
|
7249
|
+
type DirectoryTool = ReturnType<typeof createDirectoryOperationTools>[number];
|
|
7250
|
+
type WebTool = ReturnType<typeof createHttpTools>[number] | ReturnType<typeof createScraperTools>[number];
|
|
7251
|
+
interface ModelSafeToolPreset {
|
|
7252
|
+
fileTools: FileTool[];
|
|
7253
|
+
directoryTools: DirectoryTool[];
|
|
7254
|
+
webTools: WebTool[];
|
|
7255
|
+
tools: Array<FileTool | DirectoryTool | WebTool>;
|
|
7256
|
+
}
|
|
7257
|
+
/**
|
|
7258
|
+
* Create the recommended tool collection for model-controlled file and web access.
|
|
7259
|
+
*
|
|
7260
|
+
* A filesystem root is required, and privileged filesystem/network policy flags are
|
|
7261
|
+
* intentionally forced back to their safe defaults. Trusted automation should use
|
|
7262
|
+
* the existing standalone factories when it needs broader access.
|
|
7263
|
+
*/
|
|
7264
|
+
declare function createModelSafeToolPreset(options?: ModelSafeToolPresetOptions): ModelSafeToolPreset;
|
|
7265
|
+
|
|
7238
7266
|
/**
|
|
7239
7267
|
* Date and Time Tools - Type Definitions
|
|
7240
7268
|
*/
|
|
@@ -8940,4 +8968,4 @@ declare const askHumanTool: _agentforge_core.Tool<{
|
|
|
8940
8968
|
suggestions?: string[] | undefined;
|
|
8941
8969
|
}, AskHumanOutput>;
|
|
8942
8970
|
|
|
8943
|
-
export { type AskHumanInput, AskHumanInputSchema, type AskHumanOutput, type BatchBenchmarkResult, type BatchEmbeddingResult, type BatchExecutionOptions, type BatchExecutionResult, type BatchExecutionTask, type BatchFailureDetail, type BatchProgressUpdate, type BuiltDeleteQuery, type BuiltInsertQuery, type BuiltUpdateQuery, type CalculatorInput, CalculatorSchema, type ColumnDiff, type ColumnSchema, type ConfluenceAuth, type ConfluenceToolsConfig, type ConnectionConfig, type ConnectionEvent, ConnectionManager, ConnectionState, type CreditCardValidatorInput, CreditCardValidatorSchema, type CsvToolsConfig, type CurrentDateTimeInput, CurrentDateTimeSchema, DEFAULT_BATCH_SIZE, DEFAULT_CHUNK_SIZE, DEFAULT_DESTINATION_POLICY, DEFAULT_FILE_SYSTEM_POLICY, DEFAULT_RETRY_CONFIG, type DatabaseConfig, type DatabaseConnection, type DatabaseSchema, type DatabaseVendor, type DateArithmeticInput, DateArithmeticSchema, type DateComparisonInput, DateComparisonSchema, type DateDifferenceInput, DateDifferenceSchema, type DateFormatterInput, DateFormatterSchema, type DateTimeConfig, type DeleteQueryInput, type DeleteSoftDeleteOptions, type DeleteWhereCondition, type DestinationBlockReason, type DestinationPolicy, DestinationPolicyError, type DirectoryOperationsConfig, DuckDuckGoProvider, type EmailValidatorInput, EmailValidatorSchema, type EmbeddingConfig, EmbeddingManager, type EmbeddingProvider, type EmbeddingResult, type EmbeddingRetryConfig, type FileOperationsConfig, FileSystemPolicy, FileSystemPolicyError, type FileSystemPolicyErrorCode, type FileSystemPolicyInput, type FileSystemPolicyOptions, type ForeignKeySchema, type HtmlParserToolsConfig, HttpMethod, type HttpResponse, type HttpToolsConfig, type IEmbeddingProvider, type IndexSchema, type InsertData, type InsertQueryInput, type InsertReturningMode, type InsertReturningOptions, type InsertRow, type InsertValue, type IpValidatorInput, IpValidatorSchema, type JsonToolsConfig, MAX_BATCH_SIZE, type MappedType, type MathFunctionsInput, MathFunctionsSchema, type MathOperationsConfig, MissingPeerDependencyError, type MySQLConnectionConfig, type Neo4jConfig, type Neo4jNode, type Neo4jPath, type Neo4jRelationship, type Neo4jSchema, type Neo4jToolsConfig, OpenAIEmbeddingProvider, type PathUtilitiesConfig, type PhoneValidatorInput, PhoneValidatorSchema, type PoolConfig, type PostgreSQLConnectionConfig, type QueryExecutionResult, type QueryInput, type QueryMetadata, type QueryParams, type QueryResult, type RandomNumberInput, RandomNumberSchema, type ReconnectionConfig, type RetryConfig, type SQLiteConnectionConfig, type SchemaDiffResult, type SchemaInspectOptions, SchemaInspector, type SchemaInspectorConfig, type ScraperResult, type ScraperToolsConfig, type SearchProvider, type SearchResult, type SelectOrderBy, type SelectOrderDirection, type SelectQueryInput, type SelectWhereCondition, SerperProvider, type SlackClientConfig, type SlackToolsConfig, type SqlExecutor, type StatisticsInput, StatisticsSchema, type StreamingBenchmarkResult, type StreamingMemoryUsage$1 as StreamingMemoryUsage, type StreamingSelectChunk, type StreamingSelectOptions, type StreamingSelectResult, type StringCaseConverterInput, StringCaseConverterSchema, type StringJoinInput, StringJoinSchema, type StringLengthInput, StringLengthSchema, type StringReplaceInput, StringReplaceSchema, type StringSplitInput, StringSplitSchema, type StringSubstringInput, StringSubstringSchema, type StringTrimInput, StringTrimSchema, type StringUtilitiesConfig, type TableDiff, type TableSchema, type TransactionContext, type TransactionIsolationLevel, type TransactionOptions, type TransformerToolsConfig, type UpdateData, type UpdateOptimisticLock, type UpdateQueryInput, type UpdateValue, type UpdateWhereCondition, type UpdateWhereOperator, type UrlValidationResult, type UrlValidatorSimpleInput, UrlValidatorSimpleSchema, type UrlValidatorToolsConfig, type UuidValidatorInput, UuidValidatorSchema, type ValidationConfig, type ValidationResult, type VendorConnectionConfig, type WebSearchInput, type WebSearchOutput, type XmlToolsConfig, archiveConfluencePage, arrayFilter, arrayFilterSchema, arrayGroupBy, arrayGroupBySchema, arrayMap, arrayMapSchema, arraySort, arraySortSchema, askHumanTool, assertDestinationAllowed, benchmarkBatchExecution, benchmarkStreamingSelectMemory, buildDeleteQuery, buildInsertQuery, buildSelectQuery, buildUpdateQuery, calculator, checkPeerDependency, confluenceTools, createArrayFilterTool, createArrayGroupByTool, createArrayMapTool, createArraySortTool, createAskHumanTool, createCalculatorTool, createConfluencePage, createConfluenceTools, createCreditCardValidatorTool, createCsvGeneratorTool, createCsvParserTool, createCsvToJsonTool, createCsvTools, createCurrentDateTimeTool, createDateArithmeticTool, createDateComparisonTool, createDateDifferenceTool, createDateFormatterTool, createDateTimeTools, createDirectoryCreateTool, createDirectoryDeleteTool, createDirectoryListTool, createDirectoryOperationTools, createDuckDuckGoProvider, createEmailValidatorTool, createExtractImagesTool, createExtractLinksTool, createFileAppendTool, createFileDeleteTool, createFileExistsTool, createFileOperationTools, createFileReaderTool, createFileSearchTool, createFileSystemPolicy, createFileWriterTool, createHtmlParserTool, createHtmlParserTools, createHttpTools, createIpValidatorTool, createJsonMergeTool, createJsonParserTool, createJsonQueryTool, createJsonStringifyTool, createJsonToCsvTool, createJsonToXmlTool, createJsonTools, createJsonValidatorTool, createMathFunctionsTool, createMathOperationTools, createNeo4jCreateNodeWithEmbeddingTool, createNeo4jFindNodesTool, createNeo4jGetSchemaTool, createNeo4jQueryTool, createNeo4jTools, createNeo4jTraverseTool, createNeo4jVectorSearchTool, createNeo4jVectorSearchWithEmbeddingTool, createObjectOmitTool, createObjectPickTool, createPathBasenameTool, createPathDirnameTool, createPathExtensionTool, createPathJoinTool, createPathNormalizeTool, createPathParseTool, createPathRelativeTool, createPathResolveTool, createPathUtilityTools, createPhoneValidatorTool, createRandomNumberTool, createScraperTools, createSelectReadableStream, createSerperProvider, createSlackTools, createStatisticsTool, createStringCaseConverterTool, createStringJoinTool, createStringLengthTool, createStringReplaceTool, createStringSplitTool, createStringSubstringTool, createStringTrimTool, createStringUtilityTools, createTransformerTools, createUrlBuilderTool, createUrlQueryParserTool, createUrlValidatorSimpleTool, createUrlValidatorTool, createUrlValidatorTools, createUuidValidatorTool, createValidationTools, createWebScraperTool, createXmlGeneratorTool, createXmlParserTool, createXmlToJsonTool, createXmlTools, creditCardValidator, csvGenerator, csvGeneratorSchema, csvParser, csvParserSchema, csvToJson, csvToJsonSchema, csvTools, currentDateTime, dateArithmetic, dateComparison, dateDifference, dateFormatter, dateTimeTools, diffSchemas, directoryCreate, directoryCreateSchema, directoryDelete, directoryDeleteSchema, directoryList, directoryListSchema, directoryOperationTools, emailValidator, embeddingManager, executeBatchedTask, executeQuery, executeStreamingSelect, exportSchemaToJson, extractImages, extractImagesSchema, extractLinks, extractLinksSchema, fileAppend, fileAppendSchema, fileDelete, fileDeleteSchema, fileExists, fileExistsSchema, fileOperationTools, fileReader, fileReaderSchema, fileSearch, fileSearchSchema, fileWriter, fileWriterSchema, generateBatchEmbeddings, generateEmbedding, getCohereApiKey, getConfluencePage, getEmbeddingModel, getEmbeddingProvider, getHuggingFaceApiKey, getInstallationInstructions, getOllamaBaseUrl, getOpenAIApiKey, getPeerDependencyName, getSlackChannels, getSlackMessages, getSpacePages, getVendorTypeMap, getVoyageApiKey, htmlParser, htmlParserSchema, htmlParserTools, httpClient, httpGet, httpGetSchema, httpPost, httpPostSchema, httpRequestSchema, httpTools, importSchemaFromJson, initializeEmbeddings, initializeEmbeddingsWithConfig, initializeFromEnv, initializeNeo4jTools, ipValidator, isRetryableError, jsonMerge, jsonMergeSchema, jsonParser, jsonParserSchema, jsonQuery, jsonQuerySchema, jsonStringify, jsonStringifySchema, jsonToCsv, jsonToCsvSchema, jsonToXml, jsonToXmlSchema, jsonTools, jsonValidator, jsonValidatorSchema, listConfluenceSpaces, mapColumnType, mapSchemaTypes, mathFunctions, mathOperationTools, neo4jCoreTools, neo4jCreateNodeWithEmbedding, neo4jCreateNodeWithEmbeddingSchema, neo4jFindNodes, neo4jFindNodesSchema, neo4jGetSchema, neo4jGetSchemaSchema, neo4jPool, neo4jQuery, neo4jQuerySchema, neo4jTools, neo4jTraverse, neo4jTraverseSchema, neo4jVectorSearch, neo4jVectorSearchSchema, neo4jVectorSearchWithEmbedding, neo4jVectorSearchWithEmbeddingSchema, notifySlack, objectOmit, objectOmitSchema, objectPick, objectPickSchema, pathBasename, pathBasenameSchema, pathDirname, pathDirnameSchema, pathExtension, pathExtensionSchema, pathJoin, pathJoinSchema, pathNormalize, pathNormalizeSchema, pathParse, pathParseSchema, pathRelative, pathRelativeSchema, pathResolve, pathResolveSchema, pathUtilityTools, phoneValidator, randomNumber, relationalDelete, relationalGetSchema, relationalInsert, relationalQuery, relationalSelect, relationalUpdate, requestWithDestinationPolicy, resolveFileSystemPolicy, retryWithBackoff, scraperTools, searchConfluence, searchResultSchema, sendSlackMessage, slackTools, statistics, streamSelectChunks, stringCaseConverter, stringJoin, stringLength, stringReplace, stringSplit, stringSubstring, stringTrim, stringUtilityTools, transformerArraySchema, transformerObjectSchema, transformerTools, transformerValueSchema, updateConfluencePage, urlBuilder, urlBuilderSchema, urlQueryParser, urlQueryParserSchema, urlValidator, urlValidatorSchema, urlValidatorSimple, urlValidatorTools, uuidValidator, validateBatch, validateColumnTypes, validateColumnsExist, validateTableExists, validateText, validationTools, webScraper, webScraperSchema, webSearch, webSearchOutputSchema, webSearchSchema, withTransaction, xmlGenerator, xmlGeneratorSchema, xmlParser, xmlParserSchema, xmlToJson, xmlToJsonSchema, xmlTools };
|
|
8971
|
+
export { type AskHumanInput, AskHumanInputSchema, type AskHumanOutput, type BatchBenchmarkResult, type BatchEmbeddingResult, type BatchExecutionOptions, type BatchExecutionResult, type BatchExecutionTask, type BatchFailureDetail, type BatchProgressUpdate, type BuiltDeleteQuery, type BuiltInsertQuery, type BuiltUpdateQuery, type CalculatorInput, CalculatorSchema, type ColumnDiff, type ColumnSchema, type ConfluenceAuth, type ConfluenceToolsConfig, type ConnectionConfig, type ConnectionEvent, ConnectionManager, ConnectionState, type CreditCardValidatorInput, CreditCardValidatorSchema, type CsvToolsConfig, type CurrentDateTimeInput, CurrentDateTimeSchema, DEFAULT_BATCH_SIZE, DEFAULT_CHUNK_SIZE, DEFAULT_DESTINATION_POLICY, DEFAULT_FILE_SYSTEM_POLICY, DEFAULT_RETRY_CONFIG, type DatabaseConfig, type DatabaseConnection, type DatabaseSchema, type DatabaseVendor, type DateArithmeticInput, DateArithmeticSchema, type DateComparisonInput, DateComparisonSchema, type DateDifferenceInput, DateDifferenceSchema, type DateFormatterInput, DateFormatterSchema, type DateTimeConfig, type DeleteQueryInput, type DeleteSoftDeleteOptions, type DeleteWhereCondition, type DestinationBlockReason, type DestinationPolicy, DestinationPolicyError, type DirectoryOperationsConfig, DuckDuckGoProvider, type EmailValidatorInput, EmailValidatorSchema, type EmbeddingConfig, EmbeddingManager, type EmbeddingProvider, type EmbeddingResult, type EmbeddingRetryConfig, type FileOperationsConfig, FileSystemPolicy, FileSystemPolicyError, type FileSystemPolicyErrorCode, type FileSystemPolicyInput, type FileSystemPolicyOptions, type ForeignKeySchema, type HtmlParserToolsConfig, HttpMethod, type HttpResponse, type HttpToolsConfig, type IEmbeddingProvider, type IndexSchema, type InsertData, type InsertQueryInput, type InsertReturningMode, type InsertReturningOptions, type InsertRow, type InsertValue, type IpValidatorInput, IpValidatorSchema, type JsonToolsConfig, MAX_BATCH_SIZE, type MappedType, type MathFunctionsInput, MathFunctionsSchema, type MathOperationsConfig, MissingPeerDependencyError, type ModelSafeToolPreset, type ModelSafeToolPresetOptions, type MySQLConnectionConfig, type Neo4jConfig, type Neo4jNode, type Neo4jPath, type Neo4jRelationship, type Neo4jSchema, type Neo4jToolsConfig, OpenAIEmbeddingProvider, type PathUtilitiesConfig, type PhoneValidatorInput, PhoneValidatorSchema, type PoolConfig, type PostgreSQLConnectionConfig, type QueryExecutionResult, type QueryInput, type QueryMetadata, type QueryParams, type QueryResult, type RandomNumberInput, RandomNumberSchema, type ReconnectionConfig, type RetryConfig, type SQLiteConnectionConfig, type SchemaDiffResult, type SchemaInspectOptions, SchemaInspector, type SchemaInspectorConfig, type ScraperResult, type ScraperToolsConfig, type SearchProvider, type SearchResult, type SelectOrderBy, type SelectOrderDirection, type SelectQueryInput, type SelectWhereCondition, SerperProvider, type SlackClientConfig, type SlackToolsConfig, type SqlExecutor, type StatisticsInput, StatisticsSchema, type StreamingBenchmarkResult, type StreamingMemoryUsage$1 as StreamingMemoryUsage, type StreamingSelectChunk, type StreamingSelectOptions, type StreamingSelectResult, type StringCaseConverterInput, StringCaseConverterSchema, type StringJoinInput, StringJoinSchema, type StringLengthInput, StringLengthSchema, type StringReplaceInput, StringReplaceSchema, type StringSplitInput, StringSplitSchema, type StringSubstringInput, StringSubstringSchema, type StringTrimInput, StringTrimSchema, type StringUtilitiesConfig, type TableDiff, type TableSchema, type TransactionContext, type TransactionIsolationLevel, type TransactionOptions, type TransformerToolsConfig, type UpdateData, type UpdateOptimisticLock, type UpdateQueryInput, type UpdateValue, type UpdateWhereCondition, type UpdateWhereOperator, type UrlValidationResult, type UrlValidatorSimpleInput, UrlValidatorSimpleSchema, type UrlValidatorToolsConfig, type UuidValidatorInput, UuidValidatorSchema, type ValidationConfig, type ValidationResult, type VendorConnectionConfig, type WebSearchInput, type WebSearchOutput, type XmlToolsConfig, archiveConfluencePage, arrayFilter, arrayFilterSchema, arrayGroupBy, arrayGroupBySchema, arrayMap, arrayMapSchema, arraySort, arraySortSchema, askHumanTool, assertDestinationAllowed, benchmarkBatchExecution, benchmarkStreamingSelectMemory, buildDeleteQuery, buildInsertQuery, buildSelectQuery, buildUpdateQuery, calculator, checkPeerDependency, confluenceTools, createArrayFilterTool, createArrayGroupByTool, createArrayMapTool, createArraySortTool, createAskHumanTool, createCalculatorTool, createConfluencePage, createConfluenceTools, createCreditCardValidatorTool, createCsvGeneratorTool, createCsvParserTool, createCsvToJsonTool, createCsvTools, createCurrentDateTimeTool, createDateArithmeticTool, createDateComparisonTool, createDateDifferenceTool, createDateFormatterTool, createDateTimeTools, createDirectoryCreateTool, createDirectoryDeleteTool, createDirectoryListTool, createDirectoryOperationTools, createDuckDuckGoProvider, createEmailValidatorTool, createExtractImagesTool, createExtractLinksTool, createFileAppendTool, createFileDeleteTool, createFileExistsTool, createFileOperationTools, createFileReaderTool, createFileSearchTool, createFileSystemPolicy, createFileWriterTool, createHtmlParserTool, createHtmlParserTools, createHttpTools, createIpValidatorTool, createJsonMergeTool, createJsonParserTool, createJsonQueryTool, createJsonStringifyTool, createJsonToCsvTool, createJsonToXmlTool, createJsonTools, createJsonValidatorTool, createMathFunctionsTool, createMathOperationTools, createModelSafeToolPreset, createNeo4jCreateNodeWithEmbeddingTool, createNeo4jFindNodesTool, createNeo4jGetSchemaTool, createNeo4jQueryTool, createNeo4jTools, createNeo4jTraverseTool, createNeo4jVectorSearchTool, createNeo4jVectorSearchWithEmbeddingTool, createObjectOmitTool, createObjectPickTool, createPathBasenameTool, createPathDirnameTool, createPathExtensionTool, createPathJoinTool, createPathNormalizeTool, createPathParseTool, createPathRelativeTool, createPathResolveTool, createPathUtilityTools, createPhoneValidatorTool, createRandomNumberTool, createScraperTools, createSelectReadableStream, createSerperProvider, createSlackTools, createStatisticsTool, createStringCaseConverterTool, createStringJoinTool, createStringLengthTool, createStringReplaceTool, createStringSplitTool, createStringSubstringTool, createStringTrimTool, createStringUtilityTools, createTransformerTools, createUrlBuilderTool, createUrlQueryParserTool, createUrlValidatorSimpleTool, createUrlValidatorTool, createUrlValidatorTools, createUuidValidatorTool, createValidationTools, createWebScraperTool, createXmlGeneratorTool, createXmlParserTool, createXmlToJsonTool, createXmlTools, creditCardValidator, csvGenerator, csvGeneratorSchema, csvParser, csvParserSchema, csvToJson, csvToJsonSchema, csvTools, currentDateTime, dateArithmetic, dateComparison, dateDifference, dateFormatter, dateTimeTools, diffSchemas, directoryCreate, directoryCreateSchema, directoryDelete, directoryDeleteSchema, directoryList, directoryListSchema, directoryOperationTools, emailValidator, embeddingManager, executeBatchedTask, executeQuery, executeStreamingSelect, exportSchemaToJson, extractImages, extractImagesSchema, extractLinks, extractLinksSchema, fileAppend, fileAppendSchema, fileDelete, fileDeleteSchema, fileExists, fileExistsSchema, fileOperationTools, fileReader, fileReaderSchema, fileSearch, fileSearchSchema, fileWriter, fileWriterSchema, generateBatchEmbeddings, generateEmbedding, getCohereApiKey, getConfluencePage, getEmbeddingModel, getEmbeddingProvider, getHuggingFaceApiKey, getInstallationInstructions, getOllamaBaseUrl, getOpenAIApiKey, getPeerDependencyName, getSlackChannels, getSlackMessages, getSpacePages, getVendorTypeMap, getVoyageApiKey, htmlParser, htmlParserSchema, htmlParserTools, httpClient, httpGet, httpGetSchema, httpPost, httpPostSchema, httpRequestSchema, httpTools, importSchemaFromJson, initializeEmbeddings, initializeEmbeddingsWithConfig, initializeFromEnv, initializeNeo4jTools, ipValidator, isRetryableError, jsonMerge, jsonMergeSchema, jsonParser, jsonParserSchema, jsonQuery, jsonQuerySchema, jsonStringify, jsonStringifySchema, jsonToCsv, jsonToCsvSchema, jsonToXml, jsonToXmlSchema, jsonTools, jsonValidator, jsonValidatorSchema, listConfluenceSpaces, mapColumnType, mapSchemaTypes, mathFunctions, mathOperationTools, neo4jCoreTools, neo4jCreateNodeWithEmbedding, neo4jCreateNodeWithEmbeddingSchema, neo4jFindNodes, neo4jFindNodesSchema, neo4jGetSchema, neo4jGetSchemaSchema, neo4jPool, neo4jQuery, neo4jQuerySchema, neo4jTools, neo4jTraverse, neo4jTraverseSchema, neo4jVectorSearch, neo4jVectorSearchSchema, neo4jVectorSearchWithEmbedding, neo4jVectorSearchWithEmbeddingSchema, notifySlack, objectOmit, objectOmitSchema, objectPick, objectPickSchema, pathBasename, pathBasenameSchema, pathDirname, pathDirnameSchema, pathExtension, pathExtensionSchema, pathJoin, pathJoinSchema, pathNormalize, pathNormalizeSchema, pathParse, pathParseSchema, pathRelative, pathRelativeSchema, pathResolve, pathResolveSchema, pathUtilityTools, phoneValidator, randomNumber, relationalDelete, relationalGetSchema, relationalInsert, relationalQuery, relationalSelect, relationalUpdate, requestWithDestinationPolicy, resolveFileSystemPolicy, retryWithBackoff, scraperTools, searchConfluence, searchResultSchema, sendSlackMessage, slackTools, statistics, streamSelectChunks, stringCaseConverter, stringJoin, stringLength, stringReplace, stringSplit, stringSubstring, stringTrim, stringUtilityTools, transformerArraySchema, transformerObjectSchema, transformerTools, transformerValueSchema, updateConfluencePage, urlBuilder, urlBuilderSchema, urlQueryParser, urlQueryParserSchema, urlValidator, urlValidatorSchema, urlValidatorSimple, urlValidatorTools, uuidValidator, validateBatch, validateColumnTypes, validateColumnsExist, validateTableExists, validateText, validationTools, webScraper, webScraperSchema, webSearch, webSearchOutputSchema, webSearchSchema, withTransaction, xmlGenerator, xmlGeneratorSchema, xmlParser, xmlParserSchema, xmlToJson, xmlToJsonSchema, xmlTools };
|
package/dist/index.js
CHANGED
|
@@ -42,6 +42,8 @@ var DestinationPolicyError = class extends Error {
|
|
|
42
42
|
this.reason = reason;
|
|
43
43
|
this.name = "DestinationPolicyError";
|
|
44
44
|
}
|
|
45
|
+
url;
|
|
46
|
+
reason;
|
|
45
47
|
code = "WEB_DESTINATION_BLOCKED";
|
|
46
48
|
};
|
|
47
49
|
function ipv4ToNumber(address) {
|
|
@@ -4130,6 +4132,8 @@ For more information, see the @agentforge/tools documentation.`
|
|
|
4130
4132
|
this.name = "MissingPeerDependencyError";
|
|
4131
4133
|
Object.setPrototypeOf(this, _MissingPeerDependencyError.prototype);
|
|
4132
4134
|
}
|
|
4135
|
+
vendor;
|
|
4136
|
+
packageName;
|
|
4133
4137
|
};
|
|
4134
4138
|
function isPeerDependencyAvailable(packageName) {
|
|
4135
4139
|
try {
|
|
@@ -6818,6 +6822,8 @@ var SchemaInspector = class _SchemaInspector {
|
|
|
6818
6822
|
this.cacheTtlMs = config?.cacheTtlMs ?? DEFAULT_CACHE_TTL_MS;
|
|
6819
6823
|
this.cacheKey = config?.cacheKey;
|
|
6820
6824
|
}
|
|
6825
|
+
manager;
|
|
6826
|
+
vendor;
|
|
6821
6827
|
cacheTtlMs;
|
|
6822
6828
|
cacheKey;
|
|
6823
6829
|
static clearCache(cacheKey) {
|
|
@@ -9334,6 +9340,8 @@ var FileSystemPolicyError = class extends Error {
|
|
|
9334
9340
|
this.inputPath = inputPath;
|
|
9335
9341
|
this.name = "FileSystemPolicyError";
|
|
9336
9342
|
}
|
|
9343
|
+
operation;
|
|
9344
|
+
inputPath;
|
|
9337
9345
|
code = "FILE_SYSTEM_POLICY_VIOLATION";
|
|
9338
9346
|
};
|
|
9339
9347
|
function containsTraversal(inputPath) {
|
|
@@ -9849,6 +9857,44 @@ function createPathUtilityTools(config = {}) {
|
|
|
9849
9857
|
createPathNormalizeTool()
|
|
9850
9858
|
];
|
|
9851
9859
|
}
|
|
9860
|
+
|
|
9861
|
+
// src/model-safe.ts
|
|
9862
|
+
function requireFilesystemRoot(options) {
|
|
9863
|
+
if (!options?.workspaceRoot && !options?.allowedRoots?.length) {
|
|
9864
|
+
throw new Error("Model-safe tool preset requires workspaceRoot or allowedRoots");
|
|
9865
|
+
}
|
|
9866
|
+
return {
|
|
9867
|
+
...options,
|
|
9868
|
+
allowOutsideRoots: false,
|
|
9869
|
+
allowRootDeletion: false
|
|
9870
|
+
};
|
|
9871
|
+
}
|
|
9872
|
+
function modelSafeDestinationPolicy(policy = {}) {
|
|
9873
|
+
return {
|
|
9874
|
+
...DEFAULT_DESTINATION_POLICY,
|
|
9875
|
+
...policy,
|
|
9876
|
+
allowLocalhost: false,
|
|
9877
|
+
allowPrivateNetwork: false,
|
|
9878
|
+
allowLinkLocal: false,
|
|
9879
|
+
allowMetadata: false
|
|
9880
|
+
};
|
|
9881
|
+
}
|
|
9882
|
+
function createModelSafeToolPreset(options = {}) {
|
|
9883
|
+
const fileSystemPolicy = createFileSystemPolicy(requireFilesystemRoot(options.fileSystem));
|
|
9884
|
+
const destinationPolicy = modelSafeDestinationPolicy(options.web?.destinationPolicy);
|
|
9885
|
+
const fileTools = createFileOperationTools({ ...options.file, policy: fileSystemPolicy });
|
|
9886
|
+
const directoryTools = createDirectoryOperationTools({ ...options.directory, policy: fileSystemPolicy });
|
|
9887
|
+
const webTools = [
|
|
9888
|
+
...createHttpTools({ ...options.web?.http, destinationPolicy }),
|
|
9889
|
+
...createScraperTools({ ...options.web?.scraper, destinationPolicy })
|
|
9890
|
+
];
|
|
9891
|
+
return {
|
|
9892
|
+
fileTools,
|
|
9893
|
+
directoryTools,
|
|
9894
|
+
webTools,
|
|
9895
|
+
tools: [...fileTools, ...directoryTools, ...webTools]
|
|
9896
|
+
};
|
|
9897
|
+
}
|
|
9852
9898
|
var CurrentDateTimeSchema = z.object({
|
|
9853
9899
|
format: z.enum(["iso", "unix", "custom"]).default("iso").describe("Output format"),
|
|
9854
9900
|
customFormat: z.string().optional().describe('Custom format string (e.g., "yyyy-MM-dd HH:mm:ss") when format is "custom"'),
|
|
@@ -10710,6 +10756,6 @@ function createAskHumanTool() {
|
|
|
10710
10756
|
}
|
|
10711
10757
|
var askHumanTool = createAskHumanTool();
|
|
10712
10758
|
|
|
10713
|
-
export { AskHumanInputSchema, CalculatorSchema, ConnectionManager, ConnectionState, CreditCardValidatorSchema, CurrentDateTimeSchema, DEFAULT_BATCH_SIZE, DEFAULT_CHUNK_SIZE, DEFAULT_DESTINATION_POLICY, DEFAULT_FILE_SYSTEM_POLICY, DEFAULT_RETRY_CONFIG2 as DEFAULT_RETRY_CONFIG, DateArithmeticSchema, DateComparisonSchema, DateDifferenceSchema, DateFormatterSchema, DestinationPolicyError, DuckDuckGoProvider, EmailValidatorSchema, EmbeddingManager, FileSystemPolicy, FileSystemPolicyError, HttpMethod, IpValidatorSchema, MAX_BATCH_SIZE, MathFunctionsSchema, MissingPeerDependencyError, OpenAIEmbeddingProvider, PhoneValidatorSchema, RandomNumberSchema, SchemaInspector, SerperProvider, StatisticsSchema, StringCaseConverterSchema, StringJoinSchema, StringLengthSchema, StringReplaceSchema, StringSplitSchema, StringSubstringSchema, StringTrimSchema, UrlValidatorSimpleSchema, UuidValidatorSchema, archiveConfluencePage, arrayFilter, arrayFilterSchema, arrayGroupBy, arrayGroupBySchema, arrayMap, arrayMapSchema, arraySort, arraySortSchema, askHumanTool, assertDestinationAllowed, benchmarkBatchExecution, benchmarkStreamingSelectMemory, buildDeleteQuery, buildInsertQuery, buildSelectQuery, buildUpdateQuery, calculator, checkPeerDependency, confluenceTools, createArrayFilterTool, createArrayGroupByTool, createArrayMapTool, createArraySortTool, createAskHumanTool, createCalculatorTool, createConfluencePage, createConfluenceTools, createCreditCardValidatorTool, createCsvGeneratorTool, createCsvParserTool, createCsvToJsonTool, createCsvTools, createCurrentDateTimeTool, createDateArithmeticTool, createDateComparisonTool, createDateDifferenceTool, createDateFormatterTool, createDateTimeTools, createDirectoryCreateTool, createDirectoryDeleteTool, createDirectoryListTool, createDirectoryOperationTools, createDuckDuckGoProvider, createEmailValidatorTool, createExtractImagesTool, createExtractLinksTool, createFileAppendTool, createFileDeleteTool, createFileExistsTool, createFileOperationTools, createFileReaderTool, createFileSearchTool, createFileSystemPolicy, createFileWriterTool, createHtmlParserTool, createHtmlParserTools, createHttpTools, createIpValidatorTool, createJsonMergeTool, createJsonParserTool, createJsonQueryTool, createJsonStringifyTool, createJsonToCsvTool, createJsonToXmlTool, createJsonTools, createJsonValidatorTool, createMathFunctionsTool, createMathOperationTools, createNeo4jCreateNodeWithEmbeddingTool, createNeo4jFindNodesTool, createNeo4jGetSchemaTool, createNeo4jQueryTool, createNeo4jTools, createNeo4jTraverseTool, createNeo4jVectorSearchTool, createNeo4jVectorSearchWithEmbeddingTool, createObjectOmitTool, createObjectPickTool, createPathBasenameTool, createPathDirnameTool, createPathExtensionTool, createPathJoinTool, createPathNormalizeTool, createPathParseTool, createPathRelativeTool, createPathResolveTool, createPathUtilityTools, createPhoneValidatorTool, createRandomNumberTool, createScraperTools, createSelectReadableStream, createSerperProvider, createSlackTools, createStatisticsTool, createStringCaseConverterTool, createStringJoinTool, createStringLengthTool, createStringReplaceTool, createStringSplitTool, createStringSubstringTool, createStringTrimTool, createStringUtilityTools, createTransformerTools, createUrlBuilderTool, createUrlQueryParserTool, createUrlValidatorSimpleTool, createUrlValidatorTool, createUrlValidatorTools, createUuidValidatorTool, createValidationTools, createWebScraperTool, createXmlGeneratorTool, createXmlParserTool, createXmlToJsonTool, createXmlTools, creditCardValidator, csvGenerator, csvGeneratorSchema, csvParser, csvParserSchema, csvToJson, csvToJsonSchema, csvTools, currentDateTime, dateArithmetic, dateComparison, dateDifference, dateFormatter, dateTimeTools, diffSchemas, directoryCreate, directoryCreateSchema, directoryDelete, directoryDeleteSchema, directoryList, directoryListSchema, directoryOperationTools, emailValidator, embeddingManager, executeBatchedTask, executeQuery2 as executeQuery, executeStreamingSelect, exportSchemaToJson, extractImages, extractImagesSchema, extractLinks, extractLinksSchema, fileAppend, fileAppendSchema, fileDelete, fileDeleteSchema, fileExists, fileExistsSchema, fileOperationTools, fileReader, fileReaderSchema, fileSearch, fileSearchSchema, fileWriter, fileWriterSchema, generateBatchEmbeddings, generateEmbedding, getCohereApiKey, getConfluencePage, getEmbeddingModel, getEmbeddingProvider, getHuggingFaceApiKey, getInstallationInstructions, getOllamaBaseUrl, getOpenAIApiKey, getPeerDependencyName, getSlackChannels, getSlackMessages, getSpacePages, getVendorTypeMap, getVoyageApiKey, htmlParser, htmlParserSchema, htmlParserTools, httpClient, httpGet, httpGetSchema, httpPost, httpPostSchema, httpRequestSchema, httpTools, importSchemaFromJson, initializeEmbeddings, initializeEmbeddingsWithConfig, initializeFromEnv, initializeNeo4jTools, ipValidator, isRetryableError2 as isRetryableError, jsonMerge, jsonMergeSchema, jsonParser, jsonParserSchema, jsonQuery, jsonQuerySchema, jsonStringify, jsonStringifySchema, jsonToCsv, jsonToCsvSchema, jsonToXml, jsonToXmlSchema, jsonTools, jsonValidator, jsonValidatorSchema, listConfluenceSpaces, mapColumnType, mapSchemaTypes, mathFunctions, mathOperationTools, neo4jCoreTools, neo4jCreateNodeWithEmbedding, neo4jCreateNodeWithEmbeddingSchema, neo4jFindNodes, neo4jFindNodesSchema, neo4jGetSchema, neo4jGetSchemaSchema, neo4jPool, neo4jQuery, neo4jQuerySchema, neo4jTools, neo4jTraverse, neo4jTraverseSchema, neo4jVectorSearch, neo4jVectorSearchSchema, neo4jVectorSearchWithEmbedding, neo4jVectorSearchWithEmbeddingSchema, notifySlack, objectOmit, objectOmitSchema, objectPick, objectPickSchema, pathBasename, pathBasenameSchema, pathDirname, pathDirnameSchema, pathExtension, pathExtensionSchema, pathJoin, pathJoinSchema, pathNormalize, pathNormalizeSchema, pathParse, pathParseSchema, pathRelative, pathRelativeSchema, pathResolve, pathResolveSchema, pathUtilityTools, phoneValidator, randomNumber, relationalDelete, relationalGetSchema, relationalInsert, relationalQuery, relationalSelect, relationalUpdate, requestWithDestinationPolicy, resolveFileSystemPolicy, retryWithBackoff2 as retryWithBackoff, scraperTools, searchConfluence, searchResultSchema, sendSlackMessage, slackTools, statistics, streamSelectChunks, stringCaseConverter, stringJoin, stringLength, stringReplace, stringSplit, stringSubstring, stringTrim, stringUtilityTools, transformerArraySchema, transformerObjectSchema, transformerTools, transformerValueSchema, updateConfluencePage, urlBuilder, urlBuilderSchema, urlQueryParser, urlQueryParserSchema, urlValidator, urlValidatorSchema, urlValidatorSimple, urlValidatorTools, uuidValidator, validateBatch, validateColumnTypes, validateColumnsExist, validateTableExists, validateText, validationTools, webScraper, webScraperSchema, webSearch, webSearchOutputSchema, webSearchSchema, withTransaction, xmlGenerator, xmlGeneratorSchema, xmlParser, xmlParserSchema, xmlToJson, xmlToJsonSchema, xmlTools };
|
|
10759
|
+
export { AskHumanInputSchema, CalculatorSchema, ConnectionManager, ConnectionState, CreditCardValidatorSchema, CurrentDateTimeSchema, DEFAULT_BATCH_SIZE, DEFAULT_CHUNK_SIZE, DEFAULT_DESTINATION_POLICY, DEFAULT_FILE_SYSTEM_POLICY, DEFAULT_RETRY_CONFIG2 as DEFAULT_RETRY_CONFIG, DateArithmeticSchema, DateComparisonSchema, DateDifferenceSchema, DateFormatterSchema, DestinationPolicyError, DuckDuckGoProvider, EmailValidatorSchema, EmbeddingManager, FileSystemPolicy, FileSystemPolicyError, HttpMethod, IpValidatorSchema, MAX_BATCH_SIZE, MathFunctionsSchema, MissingPeerDependencyError, OpenAIEmbeddingProvider, PhoneValidatorSchema, RandomNumberSchema, SchemaInspector, SerperProvider, StatisticsSchema, StringCaseConverterSchema, StringJoinSchema, StringLengthSchema, StringReplaceSchema, StringSplitSchema, StringSubstringSchema, StringTrimSchema, UrlValidatorSimpleSchema, UuidValidatorSchema, archiveConfluencePage, arrayFilter, arrayFilterSchema, arrayGroupBy, arrayGroupBySchema, arrayMap, arrayMapSchema, arraySort, arraySortSchema, askHumanTool, assertDestinationAllowed, benchmarkBatchExecution, benchmarkStreamingSelectMemory, buildDeleteQuery, buildInsertQuery, buildSelectQuery, buildUpdateQuery, calculator, checkPeerDependency, confluenceTools, createArrayFilterTool, createArrayGroupByTool, createArrayMapTool, createArraySortTool, createAskHumanTool, createCalculatorTool, createConfluencePage, createConfluenceTools, createCreditCardValidatorTool, createCsvGeneratorTool, createCsvParserTool, createCsvToJsonTool, createCsvTools, createCurrentDateTimeTool, createDateArithmeticTool, createDateComparisonTool, createDateDifferenceTool, createDateFormatterTool, createDateTimeTools, createDirectoryCreateTool, createDirectoryDeleteTool, createDirectoryListTool, createDirectoryOperationTools, createDuckDuckGoProvider, createEmailValidatorTool, createExtractImagesTool, createExtractLinksTool, createFileAppendTool, createFileDeleteTool, createFileExistsTool, createFileOperationTools, createFileReaderTool, createFileSearchTool, createFileSystemPolicy, createFileWriterTool, createHtmlParserTool, createHtmlParserTools, createHttpTools, createIpValidatorTool, createJsonMergeTool, createJsonParserTool, createJsonQueryTool, createJsonStringifyTool, createJsonToCsvTool, createJsonToXmlTool, createJsonTools, createJsonValidatorTool, createMathFunctionsTool, createMathOperationTools, createModelSafeToolPreset, createNeo4jCreateNodeWithEmbeddingTool, createNeo4jFindNodesTool, createNeo4jGetSchemaTool, createNeo4jQueryTool, createNeo4jTools, createNeo4jTraverseTool, createNeo4jVectorSearchTool, createNeo4jVectorSearchWithEmbeddingTool, createObjectOmitTool, createObjectPickTool, createPathBasenameTool, createPathDirnameTool, createPathExtensionTool, createPathJoinTool, createPathNormalizeTool, createPathParseTool, createPathRelativeTool, createPathResolveTool, createPathUtilityTools, createPhoneValidatorTool, createRandomNumberTool, createScraperTools, createSelectReadableStream, createSerperProvider, createSlackTools, createStatisticsTool, createStringCaseConverterTool, createStringJoinTool, createStringLengthTool, createStringReplaceTool, createStringSplitTool, createStringSubstringTool, createStringTrimTool, createStringUtilityTools, createTransformerTools, createUrlBuilderTool, createUrlQueryParserTool, createUrlValidatorSimpleTool, createUrlValidatorTool, createUrlValidatorTools, createUuidValidatorTool, createValidationTools, createWebScraperTool, createXmlGeneratorTool, createXmlParserTool, createXmlToJsonTool, createXmlTools, creditCardValidator, csvGenerator, csvGeneratorSchema, csvParser, csvParserSchema, csvToJson, csvToJsonSchema, csvTools, currentDateTime, dateArithmetic, dateComparison, dateDifference, dateFormatter, dateTimeTools, diffSchemas, directoryCreate, directoryCreateSchema, directoryDelete, directoryDeleteSchema, directoryList, directoryListSchema, directoryOperationTools, emailValidator, embeddingManager, executeBatchedTask, executeQuery2 as executeQuery, executeStreamingSelect, exportSchemaToJson, extractImages, extractImagesSchema, extractLinks, extractLinksSchema, fileAppend, fileAppendSchema, fileDelete, fileDeleteSchema, fileExists, fileExistsSchema, fileOperationTools, fileReader, fileReaderSchema, fileSearch, fileSearchSchema, fileWriter, fileWriterSchema, generateBatchEmbeddings, generateEmbedding, getCohereApiKey, getConfluencePage, getEmbeddingModel, getEmbeddingProvider, getHuggingFaceApiKey, getInstallationInstructions, getOllamaBaseUrl, getOpenAIApiKey, getPeerDependencyName, getSlackChannels, getSlackMessages, getSpacePages, getVendorTypeMap, getVoyageApiKey, htmlParser, htmlParserSchema, htmlParserTools, httpClient, httpGet, httpGetSchema, httpPost, httpPostSchema, httpRequestSchema, httpTools, importSchemaFromJson, initializeEmbeddings, initializeEmbeddingsWithConfig, initializeFromEnv, initializeNeo4jTools, ipValidator, isRetryableError2 as isRetryableError, jsonMerge, jsonMergeSchema, jsonParser, jsonParserSchema, jsonQuery, jsonQuerySchema, jsonStringify, jsonStringifySchema, jsonToCsv, jsonToCsvSchema, jsonToXml, jsonToXmlSchema, jsonTools, jsonValidator, jsonValidatorSchema, listConfluenceSpaces, mapColumnType, mapSchemaTypes, mathFunctions, mathOperationTools, neo4jCoreTools, neo4jCreateNodeWithEmbedding, neo4jCreateNodeWithEmbeddingSchema, neo4jFindNodes, neo4jFindNodesSchema, neo4jGetSchema, neo4jGetSchemaSchema, neo4jPool, neo4jQuery, neo4jQuerySchema, neo4jTools, neo4jTraverse, neo4jTraverseSchema, neo4jVectorSearch, neo4jVectorSearchSchema, neo4jVectorSearchWithEmbedding, neo4jVectorSearchWithEmbeddingSchema, notifySlack, objectOmit, objectOmitSchema, objectPick, objectPickSchema, pathBasename, pathBasenameSchema, pathDirname, pathDirnameSchema, pathExtension, pathExtensionSchema, pathJoin, pathJoinSchema, pathNormalize, pathNormalizeSchema, pathParse, pathParseSchema, pathRelative, pathRelativeSchema, pathResolve, pathResolveSchema, pathUtilityTools, phoneValidator, randomNumber, relationalDelete, relationalGetSchema, relationalInsert, relationalQuery, relationalSelect, relationalUpdate, requestWithDestinationPolicy, resolveFileSystemPolicy, retryWithBackoff2 as retryWithBackoff, scraperTools, searchConfluence, searchResultSchema, sendSlackMessage, slackTools, statistics, streamSelectChunks, stringCaseConverter, stringJoin, stringLength, stringReplace, stringSplit, stringSubstring, stringTrim, stringUtilityTools, transformerArraySchema, transformerObjectSchema, transformerTools, transformerValueSchema, updateConfluencePage, urlBuilder, urlBuilderSchema, urlQueryParser, urlQueryParserSchema, urlValidator, urlValidatorSchema, urlValidatorSimple, urlValidatorTools, uuidValidator, validateBatch, validateColumnTypes, validateColumnsExist, validateTableExists, validateText, validationTools, webScraper, webScraperSchema, webSearch, webSearchOutputSchema, webSearchSchema, withTransaction, xmlGenerator, xmlGeneratorSchema, xmlParser, xmlParserSchema, xmlToJson, xmlToJsonSchema, xmlTools };
|
|
10714
10760
|
//# sourceMappingURL=index.js.map
|
|
10715
10761
|
//# sourceMappingURL=index.js.map
|