@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.
- package/dist/bin.js +14 -1
- 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
|
-
|
|
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