@moly-mcp/lido 1.0.3 → 1.0.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.
package/dist/bin.js
CHANGED
|
@@ -206,7 +206,7 @@ async function main() {
|
|
|
206
206
|
case "setup": {
|
|
207
207
|
const { cfg, terminalMode } = await runWizard();
|
|
208
208
|
if (terminalMode) {
|
|
209
|
-
const { startChatSession } = await import("./session-
|
|
209
|
+
const { startChatSession } = await import("./session-RFQTJ6WZ.js");
|
|
210
210
|
await startChatSession(cfg);
|
|
211
211
|
} else {
|
|
212
212
|
await startServer();
|
|
@@ -251,7 +251,7 @@ async function main() {
|
|
|
251
251
|
if (!configExists()) {
|
|
252
252
|
const { cfg, terminalMode } = await runWizard();
|
|
253
253
|
if (terminalMode) {
|
|
254
|
-
const { startChatSession } = await import("./session-
|
|
254
|
+
const { startChatSession } = await import("./session-RFQTJ6WZ.js");
|
|
255
255
|
await startChatSession(cfg);
|
|
256
256
|
} else {
|
|
257
257
|
await startServer();
|
|
@@ -74,7 +74,7 @@ async function callOpenRouter(apiKey, model, messages, tools) {
|
|
|
74
74
|
"Authorization": `Bearer ${apiKey}`,
|
|
75
75
|
"Content-Type": "application/json",
|
|
76
76
|
"HTTP-Referer": "https://github.com/daiwikmh/moly",
|
|
77
|
-
"X-Title": "Moly
|
|
77
|
+
"X-Title": "Moly - Lido MCP"
|
|
78
78
|
},
|
|
79
79
|
body: JSON.stringify({
|
|
80
80
|
model,
|
|
@@ -464,7 +464,7 @@ async function startChatSession(cfg) {
|
|
|
464
464
|
const messages = [
|
|
465
465
|
{
|
|
466
466
|
role: "user",
|
|
467
|
-
content: `You are Moly,
|
|
467
|
+
content: `You are Moly, a terminal assistant for Lido Finance on ${cfg.network}. Mode: ${cfg.mode} (${cfg.mode === "simulation" ? "dry-run, nothing broadcast" : "LIVE - real on-chain transactions"}). You can only do what your tools support: staking ETH, withdrawals, wrap/unwrap stETH/wstETH, balances, rewards, and Lido DAO governance. If asked about anything outside those tools (e.g. Lido Vaults, validators, node operators, DeFi integrations), say clearly and briefly that it is not supported. IMPORTANT: This is a terminal. Never use markdown. No **bold**, no bullet points, no headers, no backticks. Plain text only. Be concise. For live transactions always confirm first.`
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
role: "assistant",
|
package/package.json
CHANGED