shll-skills 2.0.0 → 2.0.3

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 CHANGED
@@ -70,35 +70,49 @@ Tell the user:
70
70
  export RUNNER_PRIVATE_KEY="0x..."
71
71
  ```
72
72
 
73
- ### Step 2: Check gas wallet balance
73
+ ### Step 2: Check gas balance & token-id
74
74
 
75
75
  ```bash
76
76
  shll-run balance
77
77
  ```
78
78
 
79
- If `sufficient: false`, tell the user:
80
- *"Your operator wallet needs more BNB for gas fees. Send at least $1 of BNB to `<address>`. You can buy BNB on Binance, OKX, or any exchange and withdraw to BSC (BEP-20)."*
79
+ Ask user: *"Do you already have a SHLL Agent token-id (a number like 4, 5, etc.)?"*
81
80
 
82
- Wait until balance is sufficient.
81
+ **If user says YES and gives a number** → Go to Step 4.
83
82
 
84
- ### Step 3: Set up agent (user does this themselves)
83
+ **If user says NO, or doesn't know, or says "next" / "continue" / any variation** → Go to Step 3 immediately.
85
84
 
86
- Ask: *"Do you already have a SHLL Agent? (a token-id number)"*
85
+ ### Step 3: Create the agent YOU MUST DO THIS, DO NOT SKIP
87
86
 
88
- **If NO** Guide them to set up via shll.run:
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.
88
+
89
+ **Immediately run** (default 30 days if user didn't specify):
89
90
  ```bash
90
91
  shll-run setup-guide --listing-id <LISTING_ID> --days 30
91
92
  ```
92
93
 
93
- This outputs a link to https://shll.run/setup with pre-filled parameters. Tell the user:
94
- 1. *"Open the setup link in your browser."*
95
- 2. *"Connect YOUR personal wallet (MetaMask, WalletConnect) this becomes the owner wallet."*
96
- 3. *"Follow the steps to: rent an agent → authorize the operator wallet → fund the vault."*
97
- 4. *"When done, tell me your token-id number."*
94
+ Then tell the user:
95
+
96
+ *"I've generated your agent setup link. Open it now in your browser:*
97
+ *👉 `<URL from command output>`*
98
+
99
+ *⚠️ Connect your **personal wallet** (MetaMask / hardware wallet) — NOT the operator wallet.*
100
+
101
+ *Follow the 4 steps on the page:*
102
+ 1. *Rent — pays rental fee, mints your Agent NFT*
103
+ 2. *Authorize — allows this operator wallet to trade*
104
+ 3. *Fund — deposits BNB into the trading vault*
105
+ 4. *Done — shows your **token-id** number*
106
+
107
+ *Paste the token-id here when done."*
98
108
 
99
- **⚠️ NEVER use `init` for new users.** The `init` command is deprecated because it uses the same key for owner and operator, which is a security risk.
109
+ **FORBIDDEN PATTERNS never do any of these:**
110
+ - "Please prepare your token-id" (user doesn't have one!)
111
+ - "Go to shll.run and find your agent" (too vague!)
112
+ - "I need your token-id to proceed" (you should be CREATING it for them!)
113
+ - Asking for token-id more than once without running setup-guide
100
114
 
101
- **If YES** Verify:
115
+ **If the user already has a token-id**, verify it:
102
116
  ```bash
103
117
  shll-run portfolio -k <ID>
104
118
  ```
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." : "Wallet needs more BNB. Send at least $1 of BNB to this address 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." : "Wallet needs more BNB. Send at least $1 of BNB to this address 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shll-skills",
3
- "version": "2.0.0",
3
+ "version": "2.0.3",
4
4
  "description": "SHLL Agent Runtime Skill for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -21,4 +21,4 @@
21
21
  "typescript": "^5.4.5",
22
22
  "@types/node": "^20.12.7"
23
23
  }
24
- }
24
+ }
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
- : "Wallet needs more BNB. Send at least $1 of BNB to this address for gas fees.",
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";