@moly-mcp/lido 1.1.6 → 1.1.7

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 CHANGED
@@ -352,7 +352,7 @@ async function main() {
352
352
  case "setup": {
353
353
  const { cfg, terminalMode } = await runWizard();
354
354
  if (terminalMode) {
355
- const { startChatSession } = await import("./session-TQ2F7RWC.js");
355
+ const { startChatSession } = await import("./session-3DBQ42LL.js");
356
356
  await startChatSession(cfg);
357
357
  } else {
358
358
  await startServer();
@@ -432,7 +432,7 @@ async function main() {
432
432
  console.log("No config. Run: moly setup");
433
433
  process.exit(1);
434
434
  }
435
- const { runDaemon } = await import("./daemon-QQW5XDFW.js");
435
+ const { runDaemon } = await import("./daemon-7RRWSIRO.js");
436
436
  await runDaemon();
437
437
  break;
438
438
  }
@@ -590,7 +590,7 @@ async function main() {
590
590
  console.log("No config. Run: moly setup");
591
591
  process.exit(1);
592
592
  }
593
- const { getTotalPosition } = await import("./position-7UQ3RE3M.js");
593
+ const { getTotalPosition } = await import("./position-KAQOSX2P.js");
594
594
  const address = args[1];
595
595
  const pos = await getTotalPosition(address);
596
596
  console.log(JSON.stringify(pos, null, 2));
@@ -601,14 +601,14 @@ async function main() {
601
601
  if (!configExists()) {
602
602
  const { cfg, terminalMode } = await runWizard();
603
603
  if (terminalMode) {
604
- const { startChatSession } = await import("./session-TQ2F7RWC.js");
604
+ const { startChatSession } = await import("./session-3DBQ42LL.js");
605
605
  await startChatSession(cfg);
606
606
  } else {
607
607
  await startServer();
608
608
  }
609
609
  } else {
610
610
  const cfg = loadConfig();
611
- const { startChatSession } = await import("./session-TQ2F7RWC.js");
611
+ const { startChatSession } = await import("./session-3DBQ42LL.js");
612
612
  await startChatSession(cfg);
613
613
  }
614
614
  break;
@@ -680,7 +680,7 @@ Commands:
680
680
  if (!configExists()) {
681
681
  const { cfg, terminalMode } = await runWizard();
682
682
  if (terminalMode) {
683
- const { startChatSession } = await import("./session-TQ2F7RWC.js");
683
+ const { startChatSession } = await import("./session-3DBQ42LL.js");
684
684
  await startChatSession(cfg);
685
685
  } else {
686
686
  await startServer();
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  getRuntime
4
- } from "./chunk-TISPNEN6.js";
4
+ } from "./chunk-RMJKM6MY.js";
5
5
 
6
6
  // src/tools/unstake.ts
7
7
  import { parseEther, formatEther } from "viem";
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  applySettingsUpdate,
4
4
  getRuntime
5
- } from "./chunk-TISPNEN6.js";
5
+ } from "./chunk-RMJKM6MY.js";
6
6
  import {
7
7
  loadConfig,
8
8
  redactedConfig
@@ -4,7 +4,7 @@ import {
4
4
  getBalance,
5
5
  getConversionRate,
6
6
  getRuntime
7
- } from "./chunk-TISPNEN6.js";
7
+ } from "./chunk-RMJKM6MY.js";
8
8
 
9
9
  // src/tools/bridge.ts
10
10
  import { formatEther, parseEther, parseAbi } from "viem";
@@ -89,7 +89,14 @@ function buildRuntime() {
89
89
  }
90
90
  }
91
91
  if (!owsSdk) throw new Error("OWS SDK not installed. Run: npm install -g @open-wallet-standard/core");
92
- const keyHex = owsSdk.exportWallet(config.ows.walletName, config.ows.passphrase ?? void 0);
92
+ const exported = owsSdk.exportWallet(config.ows.walletName, config.ows.passphrase ?? void 0);
93
+ let keyHex;
94
+ try {
95
+ const parsed = JSON.parse(exported);
96
+ keyHex = parsed.secp256k1 ?? parsed;
97
+ } catch {
98
+ keyHex = exported;
99
+ }
93
100
  const pk2 = keyHex.startsWith("0x") ? keyHex : "0x" + keyHex;
94
101
  _resolvedAccount = privateKeyToAccount(pk2);
95
102
  return _resolvedAccount;
@@ -3,7 +3,7 @@ import {
3
3
  getProposals,
4
4
  getWithdrawalRequests,
5
5
  getWithdrawalStatus
6
- } from "./chunk-6ZOV6GSP.js";
6
+ } from "./chunk-4VFTMLNC.js";
7
7
  import {
8
8
  loadAlerts,
9
9
  loadChannelConfig,
@@ -14,7 +14,7 @@ import {
14
14
  getConversionRate,
15
15
  getRewards,
16
16
  getRuntime
17
- } from "./chunk-TISPNEN6.js";
17
+ } from "./chunk-RMJKM6MY.js";
18
18
  import "./chunk-P6VFMSPM.js";
19
19
  import "./chunk-PDX44BCA.js";
20
20
 
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  getTotalPosition
4
- } from "./chunk-F4OVF3FT.js";
5
- import "./chunk-TISPNEN6.js";
4
+ } from "./chunk-M5H5IPOL.js";
5
+ import "./chunk-RMJKM6MY.js";
6
6
  import "./chunk-P6VFMSPM.js";
7
7
  import "./chunk-PDX44BCA.js";
8
8
  export {
@@ -3,7 +3,7 @@ import {
3
3
  getSettings,
4
4
  stakeEth,
5
5
  updateSettings
6
- } from "../chunk-DEQ35QKH.js";
6
+ } from "../chunk-EGPNTAOB.js";
7
7
  import {
8
8
  castVote,
9
9
  claimWithdrawals,
@@ -12,7 +12,7 @@ import {
12
12
  getWithdrawalRequests,
13
13
  getWithdrawalStatus,
14
14
  requestWithdrawal
15
- } from "../chunk-6ZOV6GSP.js";
15
+ } from "../chunk-4VFTMLNC.js";
16
16
  import {
17
17
  configureAlertChannels,
18
18
  listAlerts,
@@ -26,14 +26,14 @@ import {
26
26
  getBridgeStatus,
27
27
  getL2Balance,
28
28
  getTotalPosition
29
- } from "../chunk-F4OVF3FT.js";
29
+ } from "../chunk-M5H5IPOL.js";
30
30
  import {
31
31
  getBalance,
32
32
  getConversionRate,
33
33
  getRewards,
34
34
  unwrapWsteth,
35
35
  wrapSteth
36
- } from "../chunk-TISPNEN6.js";
36
+ } from "../chunk-RMJKM6MY.js";
37
37
  import {
38
38
  loadConfig
39
39
  } from "../chunk-P6VFMSPM.js";
@@ -3,7 +3,7 @@ import {
3
3
  getSettings,
4
4
  stakeEth,
5
5
  updateSettings
6
- } from "./chunk-DEQ35QKH.js";
6
+ } from "./chunk-EGPNTAOB.js";
7
7
  import {
8
8
  castVote,
9
9
  claimWithdrawals,
@@ -12,7 +12,7 @@ import {
12
12
  getWithdrawalRequests,
13
13
  getWithdrawalStatus,
14
14
  requestWithdrawal
15
- } from "./chunk-6ZOV6GSP.js";
15
+ } from "./chunk-4VFTMLNC.js";
16
16
  import {
17
17
  configureAlertChannels,
18
18
  listAlerts,
@@ -26,14 +26,14 @@ import {
26
26
  getBridgeStatus,
27
27
  getL2Balance,
28
28
  getTotalPosition
29
- } from "./chunk-F4OVF3FT.js";
29
+ } from "./chunk-M5H5IPOL.js";
30
30
  import {
31
31
  getBalance,
32
32
  getConversionRate,
33
33
  getRewards,
34
34
  unwrapWsteth,
35
35
  wrapSteth
36
- } from "./chunk-TISPNEN6.js";
36
+ } from "./chunk-RMJKM6MY.js";
37
37
  import "./chunk-P6VFMSPM.js";
38
38
  import {
39
39
  loadBounds,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moly-mcp/lido",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
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",