@moly-mcp/lido 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/dist/bin.js +14 -1
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -157,7 +157,20 @@ async function runWizard() {
157
157
  owsSdk = _req("@open-wallet-standard/core");
158
158
  wallets = owsSdk.listWallets();
159
159
  } catch {
160
- note("OWS SDK not found. Install it first:\ncurl -fsSL https://openwallet.sh/install.sh | bash\nnpm install @open-wallet-standard/core\nFalling back to raw key storage.", "OWS not available");
160
+ const s = spinner();
161
+ s.start("Installing @open-wallet-standard/core...");
162
+ try {
163
+ const { execSync } = await import("child_process");
164
+ execSync("npm install -g @open-wallet-standard/core", { stdio: "pipe" });
165
+ s.stop("OWS SDK installed.");
166
+ const { createRequire: cr } = await import("module");
167
+ const _r = cr(import.meta.url);
168
+ owsSdk = _r("@open-wallet-standard/core");
169
+ wallets = owsSdk.listWallets();
170
+ } catch (installErr) {
171
+ s.stop("Auto-install failed: " + installErr.message);
172
+ note("Could not install OWS SDK automatically.\nFalling back to raw key storage.", "OWS not available");
173
+ }
161
174
  }
162
175
  if (owsSdk && wallets.length > 0) {
163
176
  const walletName = check(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moly-mcp/lido",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Lido MCP Server — stake, unstake, wrap, govern. Works with Claude Desktop, Cursor, Windsurf, and any MCP client.",
5
5
  "license": "MIT",
6
6
  "type": "module",