shll-skills 2.0.1 → 2.0.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/SKILL.md +29 -26
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/SKILL.md
CHANGED
|
@@ -70,50 +70,53 @@ Tell the user:
|
|
|
70
70
|
export RUNNER_PRIVATE_KEY="0x..."
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
### Step 2: Check gas balance &
|
|
73
|
+
### Step 2: Check gas balance & token-id
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
76
|
shll-run balance
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
Ask user: *"Do you already have a SHLL Agent token-id (a number like 4, 5, etc.)?"*
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
**If user says YES and gives a number** → Go to Step 4.
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
- *If YES: tell me the number.*
|
|
85
|
-
- *If NO: no worries, I'll create one for you right now. **How many days do you want to rent?** (default: 30 days)"*
|
|
83
|
+
**If user says NO, or doesn't know, or says "next" / "continue" / any variation** → Go to Step 3 immediately.
|
|
86
84
|
|
|
87
|
-
|
|
88
|
-
Token-id = your SHLL Agent NFT number. New users won't have one yet.
|
|
85
|
+
### Step 3: Create the agent — YOU MUST DO THIS, DO NOT SKIP
|
|
89
86
|
|
|
90
|
-
|
|
87
|
+
🚨 **MANDATORY**: If the user doesn't have a token-id, you MUST run `setup-guide` RIGHT NOW. Do not ask them to "go to a website". Do not keep asking for a token-id they don't have. YOU generate the link for them.
|
|
91
88
|
|
|
92
|
-
**
|
|
89
|
+
**First ask**: *"How many days do you want to rent the agent? (default: 1 day, you can extend later)"*
|
|
90
|
+
- If user says a number → use that number.
|
|
91
|
+
- If user says "default" / "ok" / doesn't specify → use 1.
|
|
93
92
|
|
|
94
|
-
|
|
95
|
-
- If user already said a number, skip asking.
|
|
96
|
-
|
|
97
|
-
2. **Run `setup-guide` immediately** (don't wait for them to go find a website):
|
|
93
|
+
**Then immediately run**:
|
|
98
94
|
```bash
|
|
99
|
-
shll-run setup-guide --listing-id <LISTING_ID> --days <
|
|
95
|
+
shll-run setup-guide --listing-id <LISTING_ID> --days <DAYS>
|
|
100
96
|
```
|
|
101
97
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
Then tell the user:
|
|
99
|
+
|
|
100
|
+
*"I've generated your setup link. This page lets you **pay the rental fee** and **authorize the operator wallet** — open it now:*
|
|
101
|
+
*👉 `<URL from command output>`*
|
|
102
|
+
|
|
103
|
+
*⚠️ Connect your **personal wallet** (MetaMask / hardware wallet) — NOT the operator wallet I generated earlier.*
|
|
105
104
|
|
|
106
|
-
|
|
105
|
+
*The page walks you through:*
|
|
106
|
+
1. *Pay — pays the rental fee, mints your Agent NFT*
|
|
107
|
+
2. *Authorize — allows the operator wallet to trade on your behalf*
|
|
108
|
+
3. *Fund — deposits BNB into the trading vault (optional, can skip)*
|
|
109
|
+
4. *Done — shows your **token-id** number*
|
|
107
110
|
|
|
108
|
-
|
|
109
|
-
1. *Rent — pays rental fee, creates your Agent*
|
|
110
|
-
2. *Authorize — grants this operator wallet trading permission*
|
|
111
|
-
3. *Fund — deposits BNB into the trading vault*
|
|
112
|
-
4. *Done — shows your **token-id***
|
|
111
|
+
*Paste the token-id here when you're done, and I'll start trading for you."*
|
|
113
112
|
|
|
114
|
-
|
|
113
|
+
❌ **FORBIDDEN PATTERNS — never do any of these:**
|
|
114
|
+
- "Please prepare your token-id" (user doesn't have one!)
|
|
115
|
+
- "Go to shll.run and find your agent" (too vague!)
|
|
116
|
+
- "I need your token-id to proceed" (you should be CREATING it for them!)
|
|
117
|
+
- Asking for token-id more than once without running setup-guide
|
|
115
118
|
|
|
116
|
-
**If the user already has a token-id**, verify it
|
|
119
|
+
**If the user already has a token-id**, verify it:
|
|
117
120
|
```bash
|
|
118
121
|
shll-run portfolio -k <ID>
|
|
119
122
|
```
|
package/dist/index.js
CHANGED
|
@@ -1605,7 +1605,7 @@ var balanceCmd = new import_commander.Command("balance").description("Check BNB
|
|
|
1605
1605
|
address: account.address,
|
|
1606
1606
|
balanceBNB: humanBal,
|
|
1607
1607
|
sufficient: enough,
|
|
1608
|
-
note: enough ? "Wallet has enough BNB for gas fees." :
|
|
1608
|
+
note: enough ? "Wallet has enough BNB for gas fees." : `Wallet needs more BNB for gas. Current: ${humanBal} BNB, minimum recommended: 0.001 BNB (~$0.60). Send a small amount of BNB (BSC/BEP-20) to this address.`
|
|
1609
1609
|
});
|
|
1610
1610
|
} catch (error) {
|
|
1611
1611
|
const message = error instanceof Error ? error.message : "Unknown error";
|
package/dist/index.mjs
CHANGED
|
@@ -1615,7 +1615,7 @@ var balanceCmd = new Command("balance").description("Check BNB balance of the ga
|
|
|
1615
1615
|
address: account.address,
|
|
1616
1616
|
balanceBNB: humanBal,
|
|
1617
1617
|
sufficient: enough,
|
|
1618
|
-
note: enough ? "Wallet has enough BNB for gas fees." :
|
|
1618
|
+
note: enough ? "Wallet has enough BNB for gas fees." : `Wallet needs more BNB for gas. Current: ${humanBal} BNB, minimum recommended: 0.001 BNB (~$0.60). Send a small amount of BNB (BSC/BEP-20) to this address.`
|
|
1619
1619
|
});
|
|
1620
1620
|
} catch (error) {
|
|
1621
1621
|
const message = error instanceof Error ? error.message : "Unknown error";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1411,7 +1411,7 @@ const balanceCmd = new Command("balance")
|
|
|
1411
1411
|
sufficient: enough,
|
|
1412
1412
|
note: enough
|
|
1413
1413
|
? "Wallet has enough BNB for gas fees."
|
|
1414
|
-
:
|
|
1414
|
+
: `Wallet needs more BNB for gas. Current: ${humanBal} BNB, minimum recommended: 0.001 BNB (~$0.60). Send a small amount of BNB (BSC/BEP-20) to this address.`,
|
|
1415
1415
|
});
|
|
1416
1416
|
} catch (error: unknown) {
|
|
1417
1417
|
const message = error instanceof Error ? error.message : "Unknown error";
|