@elizaos/interop 2.0.0-alpha.52 → 2.0.0-alpha.520

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/interop",
3
- "version": "2.0.0-alpha.52",
3
+ "version": "2.0.0-alpha.520",
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": "vitest run --pool=threads",
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 || echo 'Python tests skipped'",
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.52"
32
+ "@elizaos/core": "2.0.0-alpha.520"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@types/node": "^25.0.3",
35
- "typescript": "^5.9.3"
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": "2cbf9d4f80a067cace80d200ec1268648bb45cf0"
43
+ "gitHead": "46bf3164d033ccca77e3cb2b637279fef61f176b"
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.validate_fn(None, {"content": {}}, None) # type: ignore[arg-type]
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.validate_fn(None, {"content": {}}, None) # type: ignore[arg-type]
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]