@easynet/agent-tool-buildin 0.0.69 → 0.0.71
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.
|
@@ -2,10 +2,13 @@ import { ToolRegistry } from "@easynet/agent-tool/runtime";
|
|
|
2
2
|
import { register, getExtensionContext, runWithExtensionContext, } from "@easynet/agent-tool-buildin";
|
|
3
3
|
import * as ItermTools from "@easynet/agent-tool-buildin/iterm";
|
|
4
4
|
function main() {
|
|
5
|
+
// 1) Create runtime registry
|
|
5
6
|
const registry = new ToolRegistry();
|
|
6
7
|
register(registry);
|
|
8
|
+
// 2) Use extension context helpers
|
|
7
9
|
const ctx = getExtensionContext();
|
|
8
10
|
void runWithExtensionContext(ctx, async () => undefined);
|
|
11
|
+
// 3) Print minimal result
|
|
9
12
|
console.log(registry.list().length, Object.keys(ItermTools).length);
|
|
10
13
|
}
|
|
11
14
|
main();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-usage.js","sourceRoot":"","sources":["../../example/basic-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,QAAQ,EACR,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAEhE,SAAS,IAAI;IACX,MAAM,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"basic-usage.js","sourceRoot":"","sources":["../../example/basic-usage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,QAAQ,EACR,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAEhE,SAAS,IAAI;IACX,6BAA6B;IAC7B,MAAM,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;IACpC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAEnB,mCAAmC;IACnC,MAAM,GAAG,GAAG,mBAAmB,EAAE,CAAC;IAClC,KAAK,uBAAuB,CAAC,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC;IAEzD,0BAA0B;IAC1B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,IAAI,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easynet/agent-tool-buildin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
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",
|