@agentlayer.tech/wallet 0.1.3 → 0.1.4

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.
@@ -307,12 +307,20 @@ def _ensure_node_runtime(npm_bin: str, project_root: Path) -> dict[str, object]:
307
307
  raise SystemExit(f"Missing package.json for Node runtime at '{project_root}'.")
308
308
  package_lock = project_root / "package-lock.json"
309
309
  command = [npm_bin, "ci"] if package_lock.exists() else [npm_bin, "install"]
310
- subprocess.run(command, cwd=project_root, check=True)
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
316
+ Path(cache_dir).expanduser().mkdir(parents=True, exist_ok=True)
317
+ subprocess.run(command, cwd=project_root, check=True, env=env)
311
318
  return {
312
319
  "project_root": str(project_root),
313
320
  "package_json": str(package_json),
314
321
  "package_lock": str(package_lock) if package_lock.exists() else None,
315
322
  "command": command,
323
+ "cache_dir": cache_dir,
316
324
  }
317
325
 
318
326
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentlayer.tech/wallet",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "NPM installer for the OpenClaw Agent Wallet local runtime.",
5
5
  "type": "module",
6
6
  "bin": {