add wasmtime

bundle

mypy fix

mypy

mypy

pyright

pyright

pyright

make

lock file
This commit is contained in:
arcbtc
2026-05-25 14:56:15 +03:00
committed by Vlad Stan
parent 46bf984c05
commit 46a3a24ce4
6 changed files with 146 additions and 33 deletions
+4 -2
View File
@@ -57,13 +57,15 @@ def _is_wasm_extension(ext: InstallableExtension) -> bool:
conf_path = Path(base, "config.json")
if not conf_path.is_file():
continue
with open(conf_path, "r") as json_file:
with open(conf_path) as json_file:
config_json = json.load(json_file)
if config_json.get("extension_type") == "wasm":
return True
for base in candidate_dirs:
wasm_dir = Path(base, "wasm")
if (wasm_dir / "module.wasm").is_file() or (wasm_dir / "module.wat").is_file():
if (wasm_dir / "module.wasm").is_file() or (
wasm_dir / "module.wat"
).is_file():
return True
except Exception as exc:
logger.debug(f"Failed to load extension config for '{ext.id}': {exc!s}")