@easynet/agent-tool-buildin 0.0.7 → 0.0.9

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.
@@ -7,41 +7,33 @@
7
7
  "inputSchema": {
8
8
  "type": "object",
9
9
  "properties": {
10
+ "command": {
11
+ "type": "string"
12
+ },
13
+ "cmd": {
14
+ "type": "string"
15
+ },
10
16
  "args": {
11
- "type": "object",
12
- "properties": {
13
- "command": {
14
- "type": "string"
15
- },
16
- "cmd": {
17
- "type": "string"
18
- },
19
- "args": {
20
- "type": "array",
21
- "items": {
22
- "type": "string"
23
- }
24
- },
25
- "arguments": {
26
- "type": "array",
27
- "items": {
28
- "type": "string"
29
- }
30
- },
31
- "cwd": {
32
- "type": "string"
33
- },
34
- "timeoutMs": {
35
- "type": "number"
36
- }
37
- },
38
- "required": [
39
- "command"
40
- ]
17
+ "type": "array",
18
+ "items": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "arguments": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ }
27
+ },
28
+ "cwd": {
29
+ "type": "string"
30
+ },
31
+ "timeoutMs": {
32
+ "type": "number"
41
33
  }
42
34
  },
43
35
  "required": [
44
- "args"
36
+ "command"
45
37
  ]
46
38
  },
47
39
  "outputSchema": {
@@ -68,31 +60,23 @@
68
60
  "inputSchema": {
69
61
  "type": "object",
70
62
  "properties": {
71
- "args": {
63
+ "path": {
64
+ "type": "string"
65
+ },
66
+ "filePath": {
67
+ "type": "string"
68
+ },
69
+ "recursive": {
72
70
  "type": "object",
73
- "properties": {
74
- "path": {
75
- "type": "string"
76
- },
77
- "filePath": {
78
- "type": "string"
79
- },
80
- "recursive": {
81
- "type": "object",
82
- "properties": {}
83
- },
84
- "confirm": {
85
- "type": "boolean"
86
- }
87
- },
88
- "required": [
89
- "path",
90
- "confirm"
91
- ]
71
+ "properties": {}
72
+ },
73
+ "confirm": {
74
+ "type": "boolean"
92
75
  }
93
76
  },
94
77
  "required": [
95
- "args"
78
+ "path",
79
+ "confirm"
96
80
  ]
97
81
  },
98
82
  "outputSchema": {
@@ -159,43 +143,35 @@
159
143
  "inputSchema": {
160
144
  "type": "object",
161
145
  "properties": {
162
- "args": {
146
+ "path": {
147
+ "type": "string"
148
+ },
149
+ "filePath": {
150
+ "type": "string"
151
+ },
152
+ "dir": {
153
+ "type": "string"
154
+ },
155
+ "directory": {
156
+ "type": "string"
157
+ },
158
+ "maxEntries": {
159
+ "type": "number"
160
+ },
161
+ "includeHidden": {
163
162
  "type": "object",
164
- "properties": {
165
- "path": {
166
- "type": "string"
167
- },
168
- "filePath": {
169
- "type": "string"
170
- },
171
- "dir": {
172
- "type": "string"
173
- },
174
- "directory": {
175
- "type": "string"
176
- },
177
- "maxEntries": {
178
- "type": "number"
179
- },
180
- "includeHidden": {
181
- "type": "object",
182
- "properties": {}
183
- },
184
- "recursive": {
185
- "type": "object",
186
- "properties": {}
187
- },
188
- "maxDepth": {
189
- "type": "number"
190
- }
191
- },
192
- "required": [
193
- "path"
194
- ]
163
+ "properties": {}
164
+ },
165
+ "recursive": {
166
+ "type": "object",
167
+ "properties": {}
168
+ },
169
+ "maxDepth": {
170
+ "type": "number"
195
171
  }
196
172
  },
197
173
  "required": [
198
- "args"
174
+ "path"
199
175
  ]
200
176
  },
201
177
  "outputSchema": {
@@ -542,26 +518,18 @@
542
518
  "inputSchema": {
543
519
  "type": "object",
544
520
  "properties": {
545
- "args": {
546
- "type": "object",
547
- "properties": {
548
- "path": {
549
- "type": "string"
550
- },
551
- "filePath": {
552
- "type": "string"
553
- },
554
- "maxBytes": {
555
- "type": "number"
556
- }
557
- },
558
- "required": [
559
- "path"
560
- ]
521
+ "path": {
522
+ "type": "string"
523
+ },
524
+ "filePath": {
525
+ "type": "string"
526
+ },
527
+ "maxBytes": {
528
+ "type": "number"
561
529
  }
562
530
  },
563
531
  "required": [
564
- "args"
532
+ "path"
565
533
  ]
566
534
  },
567
535
  "outputSchema": {
@@ -628,45 +596,37 @@
628
596
  "inputSchema": {
629
597
  "type": "object",
630
598
  "properties": {
631
- "args": {
632
- "type": "object",
633
- "properties": {
634
- "root": {
635
- "type": "string"
636
- },
637
- "path": {
638
- "type": "string"
639
- },
640
- "dir": {
641
- "type": "string"
642
- },
643
- "directory": {
644
- "type": "string"
645
- },
646
- "query": {
647
- "type": "string"
648
- },
649
- "q": {
650
- "type": "string"
651
- },
652
- "glob": {
653
- "type": "string"
654
- },
655
- "maxMatches": {
656
- "type": "number"
657
- },
658
- "maxFiles": {
659
- "type": "number"
660
- }
661
- },
662
- "required": [
663
- "root",
664
- "query"
665
- ]
599
+ "root": {
600
+ "type": "string"
601
+ },
602
+ "path": {
603
+ "type": "string"
604
+ },
605
+ "dir": {
606
+ "type": "string"
607
+ },
608
+ "directory": {
609
+ "type": "string"
610
+ },
611
+ "query": {
612
+ "type": "string"
613
+ },
614
+ "q": {
615
+ "type": "string"
616
+ },
617
+ "glob": {
618
+ "type": "string"
619
+ },
620
+ "maxMatches": {
621
+ "type": "number"
622
+ },
623
+ "maxFiles": {
624
+ "type": "number"
666
625
  }
667
626
  },
668
627
  "required": [
669
- "args"
628
+ "root",
629
+ "query"
670
630
  ]
671
631
  },
672
632
  "outputSchema": {
@@ -764,23 +724,15 @@
764
724
  "inputSchema": {
765
725
  "type": "object",
766
726
  "properties": {
767
- "args": {
768
- "type": "object",
769
- "properties": {
770
- "path": {
771
- "type": "string"
772
- },
773
- "filePath": {
774
- "type": "string"
775
- }
776
- },
777
- "required": [
778
- "path"
779
- ]
727
+ "path": {
728
+ "type": "string"
729
+ },
730
+ "filePath": {
731
+ "type": "string"
780
732
  }
781
733
  },
782
734
  "required": [
783
- "args"
735
+ "path"
784
736
  ]
785
737
  },
786
738
  "outputSchema": {
@@ -847,38 +799,30 @@
847
799
  "inputSchema": {
848
800
  "type": "object",
849
801
  "properties": {
850
- "args": {
802
+ "path": {
803
+ "type": "string"
804
+ },
805
+ "filePath": {
806
+ "type": "string"
807
+ },
808
+ "text": {
809
+ "type": "string"
810
+ },
811
+ "content": {
812
+ "type": "string"
813
+ },
814
+ "overwrite": {
851
815
  "type": "object",
852
- "properties": {
853
- "path": {
854
- "type": "string"
855
- },
856
- "filePath": {
857
- "type": "string"
858
- },
859
- "text": {
860
- "type": "string"
861
- },
862
- "content": {
863
- "type": "string"
864
- },
865
- "overwrite": {
866
- "type": "object",
867
- "properties": {}
868
- },
869
- "mkdirp": {
870
- "type": "object",
871
- "properties": {}
872
- }
873
- },
874
- "required": [
875
- "path",
876
- "text"
877
- ]
816
+ "properties": {}
817
+ },
818
+ "mkdirp": {
819
+ "type": "object",
820
+ "properties": {}
878
821
  }
879
822
  },
880
823
  "required": [
881
- "args"
824
+ "path",
825
+ "text"
882
826
  ]
883
827
  },
884
828
  "outputSchema": {
@@ -945,47 +889,39 @@
945
889
  "inputSchema": {
946
890
  "type": "object",
947
891
  "properties": {
948
- "args": {
892
+ "url": {
893
+ "type": "string"
894
+ },
895
+ "uri": {
896
+ "type": "string"
897
+ },
898
+ "destPath": {
899
+ "type": "string"
900
+ },
901
+ "destination": {
902
+ "type": "string"
903
+ },
904
+ "filePath": {
905
+ "type": "string"
906
+ },
907
+ "headers": {
949
908
  "type": "object",
950
- "properties": {
951
- "url": {
952
- "type": "string"
953
- },
954
- "uri": {
955
- "type": "string"
956
- },
957
- "destPath": {
958
- "type": "string"
959
- },
960
- "destination": {
961
- "type": "string"
962
- },
963
- "filePath": {
964
- "type": "string"
965
- },
966
- "headers": {
967
- "type": "object",
968
- "properties": {}
969
- },
970
- "timeoutMs": {
971
- "type": "number"
972
- },
973
- "maxBytes": {
974
- "type": "number"
975
- },
976
- "overwrite": {
977
- "type": "object",
978
- "properties": {}
979
- }
980
- },
981
- "required": [
982
- "url",
983
- "destPath"
984
- ]
909
+ "properties": {}
910
+ },
911
+ "timeoutMs": {
912
+ "type": "number"
913
+ },
914
+ "maxBytes": {
915
+ "type": "number"
916
+ },
917
+ "overwrite": {
918
+ "type": "object",
919
+ "properties": {}
985
920
  }
986
921
  },
987
922
  "required": [
988
- "args"
923
+ "url",
924
+ "destPath"
989
925
  ]
990
926
  },
991
927
  "outputSchema": {
@@ -1060,29 +996,21 @@
1060
996
  "inputSchema": {
1061
997
  "type": "object",
1062
998
  "properties": {
1063
- "args": {
1064
- "type": "object",
1065
- "properties": {
1066
- "query": {
1067
- "type": "string"
1068
- },
1069
- "q": {
1070
- "type": "string"
1071
- },
1072
- "maxResults": {
1073
- "type": "number"
1074
- },
1075
- "timeoutMs": {
1076
- "type": "number"
1077
- }
1078
- },
1079
- "required": [
1080
- "query"
1081
- ]
999
+ "query": {
1000
+ "type": "string"
1001
+ },
1002
+ "q": {
1003
+ "type": "string"
1004
+ },
1005
+ "maxResults": {
1006
+ "type": "number"
1007
+ },
1008
+ "timeoutMs": {
1009
+ "type": "number"
1082
1010
  }
1083
1011
  },
1084
1012
  "required": [
1085
- "args"
1013
+ "query"
1086
1014
  ]
1087
1015
  },
1088
1016
  "outputSchema": {
@@ -1197,41 +1125,33 @@
1197
1125
  "inputSchema": {
1198
1126
  "type": "object",
1199
1127
  "properties": {
1200
- "args": {
1128
+ "url": {
1129
+ "type": "string"
1130
+ },
1131
+ "uri": {
1132
+ "type": "string"
1133
+ },
1134
+ "method": {
1201
1135
  "type": "object",
1202
- "properties": {
1203
- "url": {
1204
- "type": "string"
1205
- },
1206
- "uri": {
1207
- "type": "string"
1208
- },
1209
- "method": {
1210
- "type": "object",
1211
- "properties": {}
1212
- },
1213
- "headers": {
1214
- "type": "object",
1215
- "properties": {}
1216
- },
1217
- "body": {
1218
- "type": "object",
1219
- "properties": {}
1220
- },
1221
- "timeoutMs": {
1222
- "type": "number"
1223
- },
1224
- "maxBytes": {
1225
- "type": "number"
1226
- }
1227
- },
1228
- "required": [
1229
- "url"
1230
- ]
1136
+ "properties": {}
1137
+ },
1138
+ "headers": {
1139
+ "type": "object",
1140
+ "properties": {}
1141
+ },
1142
+ "body": {
1143
+ "type": "object",
1144
+ "properties": {}
1145
+ },
1146
+ "timeoutMs": {
1147
+ "type": "number"
1148
+ },
1149
+ "maxBytes": {
1150
+ "type": "number"
1231
1151
  }
1232
1152
  },
1233
1153
  "required": [
1234
- "args"
1154
+ "url"
1235
1155
  ]
1236
1156
  },
1237
1157
  "outputSchema": {
@@ -1300,29 +1220,21 @@
1300
1220
  "inputSchema": {
1301
1221
  "type": "object",
1302
1222
  "properties": {
1303
- "args": {
1304
- "type": "object",
1305
- "properties": {
1306
- "url": {
1307
- "type": "string"
1308
- },
1309
- "uri": {
1310
- "type": "string"
1311
- },
1312
- "timeoutMs": {
1313
- "type": "number"
1314
- },
1315
- "maxBytes": {
1316
- "type": "number"
1317
- }
1318
- },
1319
- "required": [
1320
- "url"
1321
- ]
1223
+ "url": {
1224
+ "type": "string"
1225
+ },
1226
+ "uri": {
1227
+ "type": "string"
1228
+ },
1229
+ "timeoutMs": {
1230
+ "type": "number"
1231
+ },
1232
+ "maxBytes": {
1233
+ "type": "number"
1322
1234
  }
1323
1235
  },
1324
1236
  "required": [
1325
- "args"
1237
+ "url"
1326
1238
  ]
1327
1239
  },
1328
1240
  "outputSchema": {
@@ -1401,41 +1313,33 @@
1401
1313
  "inputSchema": {
1402
1314
  "type": "object",
1403
1315
  "properties": {
1404
- "args": {
1316
+ "url": {
1317
+ "type": "string"
1318
+ },
1319
+ "uri": {
1320
+ "type": "string"
1321
+ },
1322
+ "method": {
1405
1323
  "type": "object",
1406
- "properties": {
1407
- "url": {
1408
- "type": "string"
1409
- },
1410
- "uri": {
1411
- "type": "string"
1412
- },
1413
- "method": {
1414
- "type": "object",
1415
- "properties": {}
1416
- },
1417
- "headers": {
1418
- "type": "object",
1419
- "properties": {}
1420
- },
1421
- "body": {
1422
- "type": "object",
1423
- "properties": {}
1424
- },
1425
- "timeoutMs": {
1426
- "type": "number"
1427
- },
1428
- "maxBytes": {
1429
- "type": "number"
1430
- }
1431
- },
1432
- "required": [
1433
- "url"
1434
- ]
1324
+ "properties": {}
1325
+ },
1326
+ "headers": {
1327
+ "type": "object",
1328
+ "properties": {}
1329
+ },
1330
+ "body": {
1331
+ "type": "object",
1332
+ "properties": {}
1333
+ },
1334
+ "timeoutMs": {
1335
+ "type": "number"
1336
+ },
1337
+ "maxBytes": {
1338
+ "type": "number"
1435
1339
  }
1436
1340
  },
1437
1341
  "required": [
1438
- "args"
1342
+ "url"
1439
1343
  ]
1440
1344
  },
1441
1345
  "outputSchema": {
@@ -1511,30 +1415,22 @@
1511
1415
  "inputSchema": {
1512
1416
  "type": "object",
1513
1417
  "properties": {
1514
- "args": {
1418
+ "url": {
1419
+ "type": "string"
1420
+ },
1421
+ "uri": {
1422
+ "type": "string"
1423
+ },
1424
+ "headers": {
1515
1425
  "type": "object",
1516
- "properties": {
1517
- "url": {
1518
- "type": "string"
1519
- },
1520
- "uri": {
1521
- "type": "string"
1522
- },
1523
- "headers": {
1524
- "type": "object",
1525
- "properties": {}
1526
- },
1527
- "timeoutMs": {
1528
- "type": "number"
1529
- }
1530
- },
1531
- "required": [
1532
- "url"
1533
- ]
1426
+ "properties": {}
1427
+ },
1428
+ "timeoutMs": {
1429
+ "type": "number"
1534
1430
  }
1535
1431
  },
1536
1432
  "required": [
1537
- "args"
1433
+ "url"
1538
1434
  ]
1539
1435
  },
1540
1436
  "outputSchema": {
@@ -1602,36 +1498,28 @@
1602
1498
  "inputSchema": {
1603
1499
  "type": "object",
1604
1500
  "properties": {
1605
- "args": {
1501
+ "symbols": {
1502
+ "type": "array",
1503
+ "items": {}
1504
+ },
1505
+ "symbol": {
1606
1506
  "type": "object",
1607
- "properties": {
1608
- "symbols": {
1609
- "type": "array",
1610
- "items": {}
1611
- },
1612
- "symbol": {
1613
- "type": "object",
1614
- "properties": {}
1615
- },
1616
- "tickers": {
1617
- "type": "object",
1618
- "properties": {}
1619
- },
1620
- "range": {
1621
- "type": "object",
1622
- "properties": {}
1623
- },
1624
- "timeoutMs": {
1625
- "type": "number"
1626
- }
1627
- },
1628
- "required": [
1629
- "symbols"
1630
- ]
1507
+ "properties": {}
1508
+ },
1509
+ "tickers": {
1510
+ "type": "object",
1511
+ "properties": {}
1512
+ },
1513
+ "range": {
1514
+ "type": "object",
1515
+ "properties": {}
1516
+ },
1517
+ "timeoutMs": {
1518
+ "type": "number"
1631
1519
  }
1632
1520
  },
1633
1521
  "required": [
1634
- "args"
1522
+ "symbols"
1635
1523
  ]
1636
1524
  },
1637
1525
  "outputSchema": {
@@ -1995,20 +1883,12 @@
1995
1883
  "inputSchema": {
1996
1884
  "type": "object",
1997
1885
  "properties": {
1998
- "args": {
1999
- "type": "object",
2000
- "properties": {
2001
- "text": {
2002
- "type": "string"
2003
- }
2004
- },
2005
- "required": [
2006
- "text"
2007
- ]
1886
+ "text": {
1887
+ "type": "string"
2008
1888
  }
2009
1889
  },
2010
1890
  "required": [
2011
- "args"
1891
+ "text"
2012
1892
  ]
2013
1893
  },
2014
1894
  "outputSchema": {
@@ -2067,25 +1947,17 @@
2067
1947
  "inputSchema": {
2068
1948
  "type": "object",
2069
1949
  "properties": {
2070
- "args": {
2071
- "type": "object",
2072
- "properties": {
2073
- "json": {},
2074
- "path": {
2075
- "type": "string"
2076
- },
2077
- "expression": {
2078
- "type": "string"
2079
- }
2080
- },
2081
- "required": [
2082
- "json",
2083
- "path"
2084
- ]
1950
+ "json": {},
1951
+ "path": {
1952
+ "type": "string"
1953
+ },
1954
+ "expression": {
1955
+ "type": "string"
2085
1956
  }
2086
1957
  },
2087
1958
  "required": [
2088
- "args"
1959
+ "json",
1960
+ "path"
2089
1961
  ]
2090
1962
  },
2091
1963
  "outputSchema": {
@@ -2142,18 +2014,10 @@
2142
2014
  "inputSchema": {
2143
2015
  "type": "object",
2144
2016
  "properties": {
2145
- "args": {
2146
- "type": "object",
2147
- "properties": {
2148
- "timezone": {
2149
- "type": "string"
2150
- }
2151
- }
2017
+ "timezone": {
2018
+ "type": "string"
2152
2019
  }
2153
- },
2154
- "required": [
2155
- "args"
2156
- ]
2020
+ }
2157
2021
  },
2158
2022
  "outputSchema": {
2159
2023
  "type": "object",
@@ -2223,25 +2087,17 @@
2223
2087
  "inputSchema": {
2224
2088
  "type": "object",
2225
2089
  "properties": {
2226
- "args": {
2090
+ "template": {
2091
+ "type": "string"
2092
+ },
2093
+ "data": {
2227
2094
  "type": "object",
2228
- "properties": {
2229
- "template": {
2230
- "type": "string"
2231
- },
2232
- "data": {
2233
- "type": "object",
2234
- "properties": {}
2235
- }
2236
- },
2237
- "required": [
2238
- "template",
2239
- "data"
2240
- ]
2095
+ "properties": {}
2241
2096
  }
2242
2097
  },
2243
2098
  "required": [
2244
- "args"
2099
+ "template",
2100
+ "data"
2245
2101
  ]
2246
2102
  },
2247
2103
  "outputSchema": {
@@ -2300,27 +2156,19 @@
2300
2156
  "inputSchema": {
2301
2157
  "type": "object",
2302
2158
  "properties": {
2303
- "args": {
2304
- "type": "object",
2305
- "properties": {
2306
- "text": {
2307
- "type": "string"
2308
- },
2309
- "maxChars": {
2310
- "type": "number"
2311
- },
2312
- "suffix": {
2313
- "type": "string"
2314
- }
2315
- },
2316
- "required": [
2317
- "text",
2318
- "maxChars"
2319
- ]
2159
+ "text": {
2160
+ "type": "string"
2161
+ },
2162
+ "maxChars": {
2163
+ "type": "number"
2164
+ },
2165
+ "suffix": {
2166
+ "type": "string"
2320
2167
  }
2321
2168
  },
2322
2169
  "required": [
2323
- "args"
2170
+ "text",
2171
+ "maxChars"
2324
2172
  ]
2325
2173
  },
2326
2174
  "outputSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easynet/agent-tool-buildin",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Tools extension for @easynet/agent-tool: FS, HTTP, util, security (sandbox, SSRF). Same contract as any other extension.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",