@agentlayer.tech/wallet 0.1.4 → 0.1.5

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.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "openclaw-agent-wallet"
7
- version = "0.1.0"
7
+ version = "0.1.5"
8
8
  description = "Plugin-friendly wallet backend for OpenClaw agents"
9
9
  requires-python = ">=3.10"
10
10
  dependencies = [
@@ -308,11 +308,12 @@ def _ensure_node_runtime(npm_bin: str, project_root: Path) -> dict[str, object]:
308
308
  package_lock = project_root / "package-lock.json"
309
309
  command = [npm_bin, "ci"] if package_lock.exists() else [npm_bin, "install"]
310
310
  env = dict(os.environ)
311
- cache_dir = env.get("NPM_CONFIG_CACHE") or env.get("npm_config_cache")
312
- if not cache_dir:
313
- cache_dir = str(_resolve_openclaw_home() / "npm-cache")
314
- env["NPM_CONFIG_CACHE"] = cache_dir
315
- env["npm_config_cache"] = cache_dir
311
+ cache_dir = (
312
+ env.get("OPENCLAW_AGENT_WALLET_NPM_CACHE")
313
+ or str(_resolve_openclaw_home() / "npm-cache")
314
+ )
315
+ env["NPM_CONFIG_CACHE"] = cache_dir
316
+ env["npm_config_cache"] = cache_dir
316
317
  Path(cache_dir).expanduser().mkdir(parents=True, exist_ok=True)
317
318
  subprocess.run(command, cwd=project_root, check=True, env=env)
318
319
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlayer.tech/wallet",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "NPM installer for the OpenClaw Agent Wallet local runtime.",
5
5
  "type": "module",
6
6
  "bin": {