@easynet/agent-tool-buildin 0.0.1 → 0.0.2
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/dist/CoreToolsModule.d.ts +3 -2
- package/dist/CoreToolsModule.d.ts.map +1 -1
- package/dist/exec/runCommand.d.ts.map +1 -1
- package/dist/fs/deletePath.d.ts.map +1 -1
- package/dist/fs/listDir.d.ts.map +1 -1
- package/dist/fs/readText.d.ts.map +1 -1
- package/dist/fs/searchText.d.ts.map +1 -1
- package/dist/fs/sha256.d.ts.map +1 -1
- package/dist/fs/writeText.d.ts.map +1 -1
- package/dist/http/downloadFile.d.ts.map +1 -1
- package/dist/http/duckduckgoSearch.d.ts.map +1 -1
- package/dist/http/fetchJson.d.ts.map +1 -1
- package/dist/http/fetchPageMainContent.d.ts.map +1 -1
- package/dist/http/fetchText.d.ts.map +1 -1
- package/dist/http/head.d.ts.map +1 -1
- package/dist/http/yahooFinance.d.ts +22 -0
- package/dist/http/yahooFinance.d.ts.map +1 -0
- package/dist/index.cjs +261 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +259 -85
- package/dist/index.js.map +1 -1
- package/dist/util/jsonSelect.d.ts.map +1 -1
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/package.json +5 -3
|
@@ -12,14 +12,15 @@ export declare const fetchTextSpec: import("@easynet/agent-tool").ToolSpec;
|
|
|
12
12
|
export declare const fetchJsonSpec: import("@easynet/agent-tool").ToolSpec;
|
|
13
13
|
export declare const downloadFileSpec: import("@easynet/agent-tool").ToolSpec;
|
|
14
14
|
export declare const headSpec: import("@easynet/agent-tool").ToolSpec;
|
|
15
|
+
export declare const duckduckgoSearchSpec: import("@easynet/agent-tool").ToolSpec;
|
|
16
|
+
export declare const fetchPageMainContentSpec: import("@easynet/agent-tool").ToolSpec;
|
|
17
|
+
export declare const yahooFinanceQuoteSpec: import("@easynet/agent-tool").ToolSpec;
|
|
15
18
|
export declare const jsonSelectSpec: import("@easynet/agent-tool").ToolSpec;
|
|
16
19
|
export declare const truncateSpec: import("@easynet/agent-tool").ToolSpec;
|
|
17
20
|
export declare const hashTextSpec: import("@easynet/agent-tool").ToolSpec;
|
|
18
21
|
export declare const nowSpec: import("@easynet/agent-tool").ToolSpec;
|
|
19
22
|
export declare const templateRenderSpec: import("@easynet/agent-tool").ToolSpec;
|
|
20
23
|
export declare const runCommandSpec: import("@easynet/agent-tool").ToolSpec;
|
|
21
|
-
export declare const duckduckgoSearchSpec: import("@easynet/agent-tool").ToolSpec;
|
|
22
|
-
export declare const fetchPageMainContentSpec: import("@easynet/agent-tool").ToolSpec;
|
|
23
24
|
/**
|
|
24
25
|
* User-provided config for registerCoreTools.
|
|
25
26
|
* `sandboxRoot` and `allowedHosts` are required; the rest have defaults.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CoreToolsModule.d.ts","sourceRoot":"","sources":["../CoreToolsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"CoreToolsModule.d.ts","sourceRoot":"","sources":["../CoreToolsModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AA6NlD,8EAA8E;AAC9E,eAAO,MAAM,YAAY,wCAAyC,CAAC;AACnE,eAAO,MAAM,aAAa,wCAAyC,CAAC;AACpE,eAAO,MAAM,WAAW,wCAAyC,CAAC;AAClE,eAAO,MAA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"file":"runCommand.d.ts","sourceRoot":"","sources":["../../exec/runCommand.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"runCommand.d.ts","sourceRoot":"","sources":["../../exec/runCommand.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EA2IxB,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletePath.d.ts","sourceRoot":"","sources":["../../fs/deletePath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"deletePath.d.ts","sourceRoot":"","sources":["../../fs/deletePath.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EA+DxB,eAAe,CAAC"}
|
package/dist/fs/listDir.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listDir.d.ts","sourceRoot":"","sources":["../../fs/listDir.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAWnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"listDir.d.ts","sourceRoot":"","sources":["../../fs/listDir.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAWnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAmDrB,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readText.d.ts","sourceRoot":"","sources":["../../fs/readText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"readText.d.ts","sourceRoot":"","sources":["../../fs/readText.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAyCtB,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchText.d.ts","sourceRoot":"","sources":["../../fs/searchText.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAUnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"searchText.d.ts","sourceRoot":"","sources":["../../fs/searchText.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAUnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAgFxB,eAAe,CAAC"}
|
package/dist/fs/sha256.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../fs/sha256.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../fs/sha256.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAqCpB,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeText.d.ts","sourceRoot":"","sources":["../../fs/writeText.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"writeText.d.ts","sourceRoot":"","sources":["../../fs/writeText.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAiEvB,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../http/downloadFile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAMnD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"downloadFile.d.ts","sourceRoot":"","sources":["../../http/downloadFile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAMnD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAmJ1B,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duckduckgoSearch.d.ts","sourceRoot":"","sources":["../../http/duckduckgoSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA6BnD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"duckduckgoSearch.d.ts","sourceRoot":"","sources":["../../http/duckduckgoSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AA6BnD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAiH9B,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchJson.d.ts","sourceRoot":"","sources":["../../http/fetchJson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"fetchJson.d.ts","sourceRoot":"","sources":["../../http/fetchJson.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAyGvB,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchPageMainContent.d.ts","sourceRoot":"","sources":["../../http/fetchPageMainContent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAqDnD;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"fetchPageMainContent.d.ts","sourceRoot":"","sources":["../../http/fetchPageMainContent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAqDnD;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAqGlC,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchText.d.ts","sourceRoot":"","sources":["../../http/fetchText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"fetchText.d.ts","sourceRoot":"","sources":["../../http/fetchText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EA0FvB,eAAe,CAAC"}
|
package/dist/http/head.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../../http/head.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../../http/head.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAKnD;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAqElB,eAAe,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CoreToolHandler } from "../types.js";
|
|
2
|
+
export interface YahooQuoteItem {
|
|
3
|
+
symbol: string;
|
|
4
|
+
currency?: string;
|
|
5
|
+
price?: number;
|
|
6
|
+
previousClose?: number;
|
|
7
|
+
change?: number;
|
|
8
|
+
changePercent?: number;
|
|
9
|
+
open?: number;
|
|
10
|
+
high?: number;
|
|
11
|
+
low?: number;
|
|
12
|
+
volume?: number;
|
|
13
|
+
timestamp?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Fetch stock quote(s) from Yahoo Finance chart API (no API key).
|
|
17
|
+
* Requires query1.finance.yahoo.com in allowedHosts.
|
|
18
|
+
* @tool
|
|
19
|
+
* @effect none
|
|
20
|
+
*/
|
|
21
|
+
export declare const yahooFinanceQuoteHandler: CoreToolHandler;
|
|
22
|
+
//# sourceMappingURL=yahooFinance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yahooFinance.d.ts","sourceRoot":"","sources":["../../http/yahooFinance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAmCnD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,EA8I/B,eAAe,CAAC"}
|