@elizaos/interop 2.0.0-alpha.52 → 2.0.0-alpha.521
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/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +121 -0
- package/dist/python-bridge.d.ts +96 -0
- package/dist/python-bridge.d.ts.map +1 -0
- package/dist/python-bridge.js +391 -0
- package/dist/types.d.ts +301 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +10 -0
- package/dist/wasm-loader.d.ts +36 -0
- package/dist/wasm-loader.d.ts.map +1 -0
- package/dist/wasm-loader.js +314 -0
- package/package.json +7 -6
- package/python/tests/test_rust_ffi_loader.py +2 -2
- package/dist/packages/interop/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/interop",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.521",
|
|
4
4
|
"description": "Cross-language plugin interoperability for elizaOS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,24 +20,25 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsc",
|
|
23
|
-
"test": "
|
|
23
|
+
"test": "bun run test:ts && bun run test:python",
|
|
24
|
+
"test:ts": "vitest run --pool=threads",
|
|
24
25
|
"test:watch": "vitest --pool=threads",
|
|
25
|
-
"test:python": "cd python && pytest tests/ -v -p no:anchorpy --asyncio-mode=auto
|
|
26
|
+
"test:python": "if [ -d python ]; then cd python && tmpdir=$(mktemp -d) && python3 -m venv \"$tmpdir\" && \"$tmpdir/bin/python\" -m pip install -e ../../python pytest pytest-asyncio -q && PYTHONPATH=. \"$tmpdir/bin/python\" -m pytest tests/ -v -p no:anchorpy --asyncio-mode=auto; status=$?; rm -rf \"$tmpdir\"; exit $status; else echo 'Python tests skipped - no python directory'; fi",
|
|
26
27
|
"lint": "bunx @biomejs/biome check --write .",
|
|
27
28
|
"lint:check": "bunx @biomejs/biome check .",
|
|
28
29
|
"typecheck": "tsc --noEmit"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@elizaos/core": "2.0.0-alpha.
|
|
32
|
+
"@elizaos/core": "2.0.0-alpha.521"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@types/node": "^25.0.3",
|
|
35
|
-
"typescript": "^
|
|
36
|
+
"typescript": "^6.0.0"
|
|
36
37
|
},
|
|
37
38
|
"author": "elizaOS",
|
|
38
39
|
"license": "MIT",
|
|
39
40
|
"publishConfig": {
|
|
40
41
|
"access": "public"
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "2908cb3034c9ba300993587a60178ee8180dddbe"
|
|
43
44
|
}
|
|
@@ -51,7 +51,7 @@ async def test_load_rust_plugin_produces_awaitable_handlers(monkeypatch: pytest.
|
|
|
51
51
|
provider = plugin.providers[0]
|
|
52
52
|
evaluator = plugin.evaluators[0]
|
|
53
53
|
|
|
54
|
-
valid = await action.
|
|
54
|
+
valid = await action.validate(None, {"content": {}}, None) # type: ignore[arg-type]
|
|
55
55
|
assert valid is True
|
|
56
56
|
|
|
57
57
|
result = await action.handler(None, {"content": {}}, None, None, None, None) # type: ignore[arg-type]
|
|
@@ -62,7 +62,7 @@ async def test_load_rust_plugin_produces_awaitable_handlers(monkeypatch: pytest.
|
|
|
62
62
|
prov_result = await provider.get(None, {"content": {}}, {"values": {}, "data": {}, "text": ""}) # type: ignore[arg-type]
|
|
63
63
|
assert prov_result.text == "prov:PROV"
|
|
64
64
|
|
|
65
|
-
eval_valid = await evaluator.
|
|
65
|
+
eval_valid = await evaluator.validate(None, {"content": {}}, None) # type: ignore[arg-type]
|
|
66
66
|
assert eval_valid is True
|
|
67
67
|
|
|
68
68
|
eval_result = await evaluator.handler(None, {"content": {}}, None, None, None, None) # type: ignore[arg-type]
|