shll-skills 5.3.2 → 5.3.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.
- package/.env.example +4 -4
- package/SKILL.md +7 -5
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/mcp.js +3 -3
- package/dist/mcp.mjs +3 -3
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/mcp.ts +3 -3
package/.env.example
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# ── Required ─────────────────────────────────────────────
|
|
2
|
-
# Private key for the operator
|
|
3
|
-
# ⚠️ This key is used for: swap, wrap, unwrap, transfer, lend, redeem, config.
|
|
2
|
+
# Private key for the operator wallet (hot wallet for AI trading).
|
|
4
3
|
# ⚠️ Use a DEDICATED wallet with limited funds. Never use your main wallet.
|
|
4
|
+
# ⚠️ This wallet can only trade within PolicyGuard limits — it CANNOT withdraw vault funds.
|
|
5
5
|
RUNNER_PRIVATE_KEY=0x_YOUR_PRIVATE_KEY_HERE
|
|
6
6
|
|
|
7
|
-
# ── Optional
|
|
8
|
-
# BSC RPC endpoint (default:
|
|
7
|
+
# ── Optional ─────────────────────────────────────────────
|
|
8
|
+
# BSC RPC endpoint (default: https://bsc-dataseed1.binance.org)
|
|
9
9
|
# SHLL_RPC=https://bsc-dataseed.binance.org
|
package/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: shll-run
|
|
3
3
|
description: Execute DeFi transactions on BSC via SHLL AgentNFA. The AI handles all commands — users only need to chat.
|
|
4
|
-
version: 5.3.
|
|
4
|
+
version: 5.3.4
|
|
5
5
|
author: SHLL Team
|
|
6
6
|
website: https://shll.run
|
|
7
7
|
twitter: https://twitter.com/shllrun
|
|
@@ -92,6 +92,8 @@ Show the result, then ask: *"Do you already have a SHLL Agent token-id (a number
|
|
|
92
92
|
|
|
93
93
|
### Step 3: Create agent — YOU do this, not the user
|
|
94
94
|
|
|
95
|
+
⚠️ **CRITICAL: You MUST call `listings` first to get the current listing IDs. NEVER use a hardcoded or cached listing ID — listings can be delisted at any time.**
|
|
96
|
+
|
|
95
97
|
**3a.** YOU query available agent templates:
|
|
96
98
|
```bash
|
|
97
99
|
shll-run listings
|
|
@@ -102,18 +104,18 @@ Show the user a clear list:
|
|
|
102
104
|
|
|
103
105
|
| # | Name | Type | Price/day | Min days |
|
|
104
106
|
|---|------|------|-----------|----------|
|
|
105
|
-
| 1 | LLM Trader Agent | llm_trader | 0
|
|
107
|
+
| 1 | LLM Trader Agent | llm_trader | Free (0 BNB) | 1 |
|
|
106
108
|
|
|
107
109
|
*"Which one do you want? And how many days? (default: 1 day, can extend later)"*
|
|
108
110
|
|
|
109
|
-
**3b.** Once user picks, YOU execute:
|
|
111
|
+
**3b.** Once user picks, YOU execute using the **listingId from the `listings` result** (NOT a hardcoded value):
|
|
110
112
|
```bash
|
|
111
|
-
shll-run setup-guide --listing-id <
|
|
113
|
+
shll-run setup-guide --listing-id <LISTING_ID_FROM_STEP_3A> --days <DAYS>
|
|
112
114
|
```
|
|
113
115
|
|
|
114
116
|
Take the `setupUrl` from the JSON output and tell the user:
|
|
115
117
|
|
|
116
|
-
*"I've prepared everything. Now open this link to **
|
|
118
|
+
*"I've prepared everything. Now open this link to **authorize the operator wallet**:*
|
|
117
119
|
*👉 `<setupUrl>`*
|
|
118
120
|
|
|
119
121
|
*⚠️ Connect your **personal wallet** (MetaMask / hardware wallet) — NOT the operator wallet.*
|
package/dist/index.js
CHANGED
|
@@ -507,7 +507,7 @@ var DEFAULT_NFA = "0xE98DCdbf370D7b52c9A2b88F79bEF514A5375a2b";
|
|
|
507
507
|
var DEFAULT_GUARD = "0x25d17eA0e3Bcb8CA08a2BFE917E817AFc05dbBB3";
|
|
508
508
|
var DEFAULT_RPC = "https://bsc-dataseed1.binance.org";
|
|
509
509
|
var DEFAULT_LISTING_MANAGER = "0x1f9CE85bD0FF75acc3D92eB79f1Eb472f0865071";
|
|
510
|
-
var DEFAULT_LISTING_ID = "
|
|
510
|
+
var DEFAULT_LISTING_ID = "0xdea70e684f33fe9966753d3008c8c7ddd4422e04751b2198d03d82e97affca22";
|
|
511
511
|
var PANCAKE_V2_ROUTER = "0x10ED43C718714eb63d5aA57B78B54704E256024E";
|
|
512
512
|
var PANCAKE_V3_SMART_ROUTER = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
|
|
513
513
|
var WBNB = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
package/dist/index.mjs
CHANGED
|
@@ -19,7 +19,7 @@ var DEFAULT_NFA = "0xE98DCdbf370D7b52c9A2b88F79bEF514A5375a2b";
|
|
|
19
19
|
var DEFAULT_GUARD = "0x25d17eA0e3Bcb8CA08a2BFE917E817AFc05dbBB3";
|
|
20
20
|
var DEFAULT_RPC = "https://bsc-dataseed1.binance.org";
|
|
21
21
|
var DEFAULT_LISTING_MANAGER = "0x1f9CE85bD0FF75acc3D92eB79f1Eb472f0865071";
|
|
22
|
-
var DEFAULT_LISTING_ID = "
|
|
22
|
+
var DEFAULT_LISTING_ID = "0xdea70e684f33fe9966753d3008c8c7ddd4422e04751b2198d03d82e97affca22";
|
|
23
23
|
var PANCAKE_V2_ROUTER = "0x10ED43C718714eb63d5aA57B78B54704E256024E";
|
|
24
24
|
var PANCAKE_V3_SMART_ROUTER = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
|
|
25
25
|
var WBNB = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
package/dist/mcp.js
CHANGED
|
@@ -509,7 +509,7 @@ var DEFAULT_NFA = "0xE98DCdbf370D7b52c9A2b88F79bEF514A5375a2b";
|
|
|
509
509
|
var DEFAULT_GUARD = "0x25d17eA0e3Bcb8CA08a2BFE917E817AFc05dbBB3";
|
|
510
510
|
var DEFAULT_RPC = "https://bsc-dataseed1.binance.org";
|
|
511
511
|
var DEFAULT_LISTING_MANAGER = "0x1f9CE85bD0FF75acc3D92eB79f1Eb472f0865071";
|
|
512
|
-
var DEFAULT_LISTING_ID = "
|
|
512
|
+
var DEFAULT_LISTING_ID = "0xdea70e684f33fe9966753d3008c8c7ddd4422e04751b2198d03d82e97affca22";
|
|
513
513
|
var PANCAKE_V2_ROUTER = "0x10ED43C718714eb63d5aA57B78B54704E256024E";
|
|
514
514
|
var PANCAKE_V3_SMART_ROUTER = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
|
|
515
515
|
var WBNB = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
@@ -709,7 +709,7 @@ function policyRejectionHelp(reason, tokenId) {
|
|
|
709
709
|
}
|
|
710
710
|
var server = new import_mcp.McpServer({
|
|
711
711
|
name: "shll-defi",
|
|
712
|
-
version: "5.3.
|
|
712
|
+
version: "5.3.4"
|
|
713
713
|
});
|
|
714
714
|
server.tool(
|
|
715
715
|
"portfolio",
|
|
@@ -1441,7 +1441,7 @@ server.tool(
|
|
|
1441
1441
|
);
|
|
1442
1442
|
server.tool(
|
|
1443
1443
|
"setup_guide",
|
|
1444
|
-
"Generate step-by-step dual-wallet onboarding instructions and shll.run/setup URL",
|
|
1444
|
+
"Generate step-by-step dual-wallet onboarding instructions and shll.run/setup URL. IMPORTANT: Always call the 'listings' tool first to get the current listing_id \u2014 do NOT use a cached or default value, as listings can be delisted.",
|
|
1445
1445
|
{
|
|
1446
1446
|
listing_id: import_zod.z.string().default(DEFAULT_LISTING_ID).describe("Template listing ID (bytes32 hex)"),
|
|
1447
1447
|
days: import_zod.z.number().default(1).describe("Number of days to rent")
|
package/dist/mcp.mjs
CHANGED
|
@@ -20,7 +20,7 @@ var DEFAULT_NFA = "0xE98DCdbf370D7b52c9A2b88F79bEF514A5375a2b";
|
|
|
20
20
|
var DEFAULT_GUARD = "0x25d17eA0e3Bcb8CA08a2BFE917E817AFc05dbBB3";
|
|
21
21
|
var DEFAULT_RPC = "https://bsc-dataseed1.binance.org";
|
|
22
22
|
var DEFAULT_LISTING_MANAGER = "0x1f9CE85bD0FF75acc3D92eB79f1Eb472f0865071";
|
|
23
|
-
var DEFAULT_LISTING_ID = "
|
|
23
|
+
var DEFAULT_LISTING_ID = "0xdea70e684f33fe9966753d3008c8c7ddd4422e04751b2198d03d82e97affca22";
|
|
24
24
|
var PANCAKE_V2_ROUTER = "0x10ED43C718714eb63d5aA57B78B54704E256024E";
|
|
25
25
|
var PANCAKE_V3_SMART_ROUTER = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
|
|
26
26
|
var WBNB = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
@@ -220,7 +220,7 @@ function policyRejectionHelp(reason, tokenId) {
|
|
|
220
220
|
}
|
|
221
221
|
var server = new McpServer({
|
|
222
222
|
name: "shll-defi",
|
|
223
|
-
version: "5.3.
|
|
223
|
+
version: "5.3.4"
|
|
224
224
|
});
|
|
225
225
|
server.tool(
|
|
226
226
|
"portfolio",
|
|
@@ -952,7 +952,7 @@ server.tool(
|
|
|
952
952
|
);
|
|
953
953
|
server.tool(
|
|
954
954
|
"setup_guide",
|
|
955
|
-
"Generate step-by-step dual-wallet onboarding instructions and shll.run/setup URL",
|
|
955
|
+
"Generate step-by-step dual-wallet onboarding instructions and shll.run/setup URL. IMPORTANT: Always call the 'listings' tool first to get the current listing_id \u2014 do NOT use a cached or default value, as listings can be delisted.",
|
|
956
956
|
{
|
|
957
957
|
listing_id: z.string().default(DEFAULT_LISTING_ID).describe("Template listing ID (bytes32 hex)"),
|
|
958
958
|
days: z.number().default(1).describe("Number of days to rent")
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -20,7 +20,7 @@ const DEFAULT_NFA = "0xE98DCdbf370D7b52c9A2b88F79bEF514A5375a2b";
|
|
|
20
20
|
const DEFAULT_GUARD = "0x25d17eA0e3Bcb8CA08a2BFE917E817AFc05dbBB3";
|
|
21
21
|
const DEFAULT_RPC = "https://bsc-dataseed1.binance.org";
|
|
22
22
|
const DEFAULT_LISTING_MANAGER = "0x1f9CE85bD0FF75acc3D92eB79f1Eb472f0865071";
|
|
23
|
-
const DEFAULT_LISTING_ID = "
|
|
23
|
+
const DEFAULT_LISTING_ID = "0xdea70e684f33fe9966753d3008c8c7ddd4422e04751b2198d03d82e97affca22";
|
|
24
24
|
const PANCAKE_V2_ROUTER = "0x10ED43C718714eb63d5aA57B78B54704E256024E";
|
|
25
25
|
const PANCAKE_V3_SMART_ROUTER = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
|
|
26
26
|
const WBNB = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
package/src/mcp.ts
CHANGED
|
@@ -36,7 +36,7 @@ const DEFAULT_NFA = "0xE98DCdbf370D7b52c9A2b88F79bEF514A5375a2b";
|
|
|
36
36
|
const DEFAULT_GUARD = "0x25d17eA0e3Bcb8CA08a2BFE917E817AFc05dbBB3";
|
|
37
37
|
const DEFAULT_RPC = "https://bsc-dataseed1.binance.org";
|
|
38
38
|
const DEFAULT_LISTING_MANAGER = "0x1f9CE85bD0FF75acc3D92eB79f1Eb472f0865071";
|
|
39
|
-
const DEFAULT_LISTING_ID = "
|
|
39
|
+
const DEFAULT_LISTING_ID = "0xdea70e684f33fe9966753d3008c8c7ddd4422e04751b2198d03d82e97affca22";
|
|
40
40
|
const PANCAKE_V2_ROUTER = "0x10ED43C718714eb63d5aA57B78B54704E256024E";
|
|
41
41
|
const PANCAKE_V3_SMART_ROUTER = "0x13f4EA83D0bd40E75C8222255bc855a974568Dd4";
|
|
42
42
|
const WBNB = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c";
|
|
@@ -266,7 +266,7 @@ function policyRejectionHelp(reason: string | undefined, tokenId: string): Recor
|
|
|
266
266
|
|
|
267
267
|
const server = new McpServer({
|
|
268
268
|
name: "shll-defi",
|
|
269
|
-
version: "5.3.
|
|
269
|
+
version: "5.3.4",
|
|
270
270
|
});
|
|
271
271
|
|
|
272
272
|
// ── Tool: portfolio ─────────────────────────────────────
|
|
@@ -1090,7 +1090,7 @@ server.tool(
|
|
|
1090
1090
|
// ── Tool: setup_guide ───────────────────────────────────
|
|
1091
1091
|
server.tool(
|
|
1092
1092
|
"setup_guide",
|
|
1093
|
-
"Generate step-by-step dual-wallet onboarding instructions and shll.run/setup URL",
|
|
1093
|
+
"Generate step-by-step dual-wallet onboarding instructions and shll.run/setup URL. IMPORTANT: Always call the 'listings' tool first to get the current listing_id — do NOT use a cached or default value, as listings can be delisted.",
|
|
1094
1094
|
{
|
|
1095
1095
|
listing_id: z.string().default(DEFAULT_LISTING_ID).describe("Template listing ID (bytes32 hex)"),
|
|
1096
1096
|
days: z.number().default(1).describe("Number of days to rent"),
|