@waiaas/skills 2.7.0-rc → 2.7.0

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/README.md CHANGED
@@ -118,7 +118,16 @@ For agents that don't support MCP, or when you prefer REST API integration:
118
118
  npx @waiaas/skills add all
119
119
  ```
120
120
 
121
- This adds `.skill.md` instruction files to your project. Include them in your agent's context and it learns the WAIaaS API automatically. Available skills: `quickstart`, `wallet`, `transactions`, `policies`, `admin`, `actions`, `x402`.
121
+ This adds `.skill.md` instruction files to your project. Include them in your agent's context and it learns the WAIaaS API automatically. Available skills: `setup`, `quickstart`, `wallet`, `transactions`, `policies`, `admin`, `actions`, `x402`.
122
+
123
+ ### Agent Self-Setup
124
+
125
+ AI agents can set up WAIaaS from scratch by following the setup skill:
126
+
127
+ 1. Install skills: `npx @waiaas/skills add all`
128
+ 2. Read and follow `waiaas-setup/SKILL.md`
129
+
130
+ The setup skill guides through CLI installation, daemon startup, wallet creation, and session configuration. Master password prompts require human input.
122
131
 
123
132
  ## Alternative: Docker
124
133
 
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,EAAE,SAAS,UAAU,EA2CtC,CAAC;AAEX;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,eAAO,MAAM,cAAc,EAAE,SAAS,UAAU,EAiDtC,CAAC;AAEX;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAErC"}
package/dist/registry.js CHANGED
@@ -1,5 +1,10 @@
1
1
  import path from "node:path";
2
2
  export const SKILL_REGISTRY = [
3
+ {
4
+ name: "setup",
5
+ filename: "setup.skill.md",
6
+ description: "Zero-state daemon setup: install CLI, initialize, start daemon, create wallet, configure session",
7
+ },
3
8
  {
4
9
  name: "quickstart",
5
10
  filename: "quickstart.skill.md",
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAQ7B,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,qBAAqB;QAC/B,WAAW,EACT,iFAAiF;KACpF;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,iBAAiB;QAC3B,WAAW,EACT,oGAAoG;KACvG;IACD;QACE,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,uBAAuB;QACjC,WAAW,EACT,6GAA6G;KAChH;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EACT,kLAAkL;KACrL;IACD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,gBAAgB;QAC1B,WAAW,EACT,sIAAsI;KACzI;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,kBAAkB;QAC5B,WAAW,EACT,0GAA0G;KAC7G;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,eAAe;QACzB,WAAW,EACT,+EAA+E;KAClF;CACO,CAAC;AAEX;;;GAGG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AACxD,CAAC"}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAQ7B,MAAM,CAAC,MAAM,cAAc,GAA0B;IACnD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,gBAAgB;QAC1B,WAAW,EACT,kGAAkG;KACrG;IACD;QACE,IAAI,EAAE,YAAY;QAClB,QAAQ,EAAE,qBAAqB;QAC/B,WAAW,EACT,iFAAiF;KACpF;IACD;QACE,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,iBAAiB;QAC3B,WAAW,EACT,oGAAoG;KACvG;IACD;QACE,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE,uBAAuB;QACjC,WAAW,EACT,6GAA6G;KAChH;IACD;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,mBAAmB;QAC7B,WAAW,EACT,kLAAkL;KACrL;IACD;QACE,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,gBAAgB;QAC1B,WAAW,EACT,sIAAsI;KACzI;IACD;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,kBAAkB;QAC5B,WAAW,EACT,0GAA0G;KAC7G;IACD;QACE,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,eAAe;QACzB,WAAW,EACT,+EAA+E;KAClF;CACO,CAAC;AAEX;;;GAGG;AACH,MAAM,UAAU,YAAY;IAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AACxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waiaas/skills",
3
- "version": "2.7.0-rc",
3
+ "version": "2.7.0",
4
4
  "description": "WAIaaS skill files for AI agents - install via npx @waiaas/skills add <name>",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -3,7 +3,7 @@ name: "WAIaaS Actions"
3
3
  description: "Action Provider framework: list providers, execute DeFi actions through the 6-stage transaction pipeline"
4
4
  category: "api"
5
5
  tags: [wallet, blockchain, defi, actions, waiass, jupiter, 0x, swap, lifi, bridge, cross-chain, lido, jito, staking, liquid-staking]
6
- version: "2.7.0-rc"
6
+ version: "2.7.0"
7
7
  dispatch:
8
8
  kind: "tool"
9
9
  allowedCommands: ["curl"]
@@ -3,7 +3,7 @@ name: "WAIaaS Admin"
3
3
  description: "Admin API: daemon status, kill switch, notifications, settings management, JWT rotation, shutdown, oracle status, API key management"
4
4
  category: "api"
5
5
  tags: [wallet, blockchain, admin, security, oracle, defi, waiass]
6
- version: "2.7.0-rc"
6
+ version: "2.7.0"
7
7
  dispatch:
8
8
  kind: "tool"
9
9
  allowedCommands: ["curl"]
@@ -3,7 +3,7 @@ name: "WAIaaS Policies"
3
3
  description: "Policy engine CRUD: 12 policy types for spending limits, whitelists, time restrictions, rate limits, token/contract/approve controls, network restrictions, x402 domain controls"
4
4
  category: "api"
5
5
  tags: [wallet, blockchain, policies, security, waiass]
6
- version: "2.7.0-rc"
6
+ version: "2.7.0"
7
7
  dispatch:
8
8
  kind: "tool"
9
9
  allowedCommands: ["curl"]
@@ -3,7 +3,7 @@ name: "WAIaaS Quickset"
3
3
  description: "End-to-end quickset: create wallet, session, check balance, send first transfer"
4
4
  category: "api"
5
5
  tags: [wallet, blockchain, solana, ethereum, quickset, quickstart, waiass]
6
- version: "2.7.0-rc"
6
+ version: "2.7.0"
7
7
  dispatch:
8
8
  kind: "tool"
9
9
  allowedCommands: ["curl"]
@@ -0,0 +1,195 @@
1
+ ---
2
+ name: "WAIaaS Setup"
3
+ description: "Zero-state daemon setup: install CLI, initialize, start daemon, create wallet, configure session"
4
+ category: "api"
5
+ tags: [wallet, blockchain, solana, ethereum, setup, install, waiass]
6
+ version: "2.7.0"
7
+ dispatch:
8
+ kind: "tool"
9
+ allowedCommands: ["curl", "npm", "npx", "waiaas", "which"]
10
+ ---
11
+
12
+ # WAIaaS Zero-State Setup
13
+
14
+ This skill guides you through setting up WAIaaS from scratch -- from an empty machine to a fully configured wallet daemon with session credentials.
15
+
16
+ > AI agents must NEVER request the master password. Use only your session token.
17
+
18
+ ## Prerequisites
19
+
20
+ - **Node.js 22 LTS** or later (`node --version`)
21
+ - **npm** package manager (bundled with Node.js)
22
+
23
+ ## Setup Flow
24
+
25
+ Follow these steps in order. Steps 3 and 4 require human input for the master password.
26
+
27
+ ### Step 1: Install CLI
28
+
29
+ Check if WAIaaS CLI is already installed:
30
+
31
+ ```bash
32
+ which waiaas
33
+ ```
34
+
35
+ If not found, install globally:
36
+
37
+ ```bash
38
+ npm install -g @waiaas/cli
39
+ ```
40
+
41
+ Verify installation:
42
+
43
+ ```bash
44
+ waiaas --version
45
+ ```
46
+
47
+ ### Step 2: Initialize Data Directory
48
+
49
+ Create the WAIaaS data directory and default configuration:
50
+
51
+ ```bash
52
+ waiaas init
53
+ ```
54
+
55
+ This creates `~/.waiaas/` with `config.toml` and required subdirectories. Safe to run multiple times -- skips if already initialized.
56
+
57
+ ### Step 3: Start Daemon
58
+
59
+ ```bash
60
+ waiaas start
61
+ ```
62
+
63
+ **IMPORTANT: On first run, the daemon prompts for a master password.**
64
+
65
+ - The master password encrypts all private keys at rest
66
+ - This is a human-only secret -- wait for the user to type it
67
+ - Do NOT attempt to provide, generate, or capture the master password
68
+ - The daemon starts after the password is set
69
+
70
+ Verify the daemon is running:
71
+
72
+ ```bash
73
+ curl -s http://localhost:3100/health
74
+ ```
75
+
76
+ Expected: `{"status":"ok", ...}`
77
+
78
+ ### Step 4: Create Wallet and Session
79
+
80
+ ```bash
81
+ waiaas quickset
82
+ ```
83
+
84
+ **IMPORTANT: This command prompts for the master password.**
85
+
86
+ - Wait for the user to enter the master password
87
+ - Do NOT attempt to provide or capture it
88
+
89
+ The command outputs:
90
+ 1. Wallet IDs and public keys (Solana + EVM)
91
+ 2. **Session tokens** (`wai_sess_...`) -- capture these
92
+ 3. MCP configuration JSON
93
+
94
+ ### Step 5: Configure Environment
95
+
96
+ Set environment variables with the session token from Step 4:
97
+
98
+ ```bash
99
+ export WAIAAS_BASE_URL=http://localhost:3100
100
+ export WAIAAS_SESSION_TOKEN=<session-token-from-step-4>
101
+ ```
102
+
103
+ Replace `<session-token-from-step-4>` with the actual `wai_sess_...` token printed by `quickset`.
104
+
105
+ ### Step 6: Verify Connection
106
+
107
+ Call the self-discovery endpoint to confirm everything works:
108
+
109
+ ```bash
110
+ curl -s http://localhost:3100/v1/connect-info \
111
+ -H "Authorization: Bearer $WAIAAS_SESSION_TOKEN"
112
+ ```
113
+
114
+ This returns:
115
+ - Accessible wallets and their networks
116
+ - Active policies
117
+ - Available capabilities
118
+ - AI-ready usage prompt
119
+
120
+ ### Step 7: Install Skill Files
121
+
122
+ Install WAIaaS skill files for your AI agent platform:
123
+
124
+ **Agent Skills standard (Codex, Gemini CLI, Goose, Amp, Roo Code, Cursor, GitHub Copilot):**
125
+
126
+ ```bash
127
+ npx @waiaas/skills agent-skills
128
+ ```
129
+
130
+ **Claude Code:**
131
+
132
+ ```bash
133
+ npx @waiaas/skills claude-code
134
+ ```
135
+
136
+ **OpenClaw:**
137
+
138
+ ```bash
139
+ npx @waiaas/skills openclaw
140
+ ```
141
+
142
+ **Generic (copy to current directory):**
143
+
144
+ ```bash
145
+ npx @waiaas/skills add all
146
+ ```
147
+
148
+ ## What's Next
149
+
150
+ After setup is complete, refer to these skills for specific operations:
151
+
152
+ | Skill | Description |
153
+ |-------|-------------|
154
+ | `quickstart` | Check balance, send first transfer |
155
+ | `wallet` | Wallet CRUD, asset queries, session management |
156
+ | `transactions` | All 5 transaction types with full parameters |
157
+ | `policies` | 12 policy types for spending limits and access controls |
158
+ | `admin` | Daemon status, kill switch, notifications, settings |
159
+ | `actions` | DeFi actions (Jupiter Swap, 0x DEX, LI.FI Bridge, Lido/Jito Staking) |
160
+ | `x402` | HTTP 402 auto-payment protocol |
161
+
162
+ ## Troubleshooting
163
+
164
+ ### `waiaas: command not found`
165
+
166
+ npm global bin directory may not be in PATH:
167
+
168
+ ```bash
169
+ npm config get prefix
170
+ # Add <prefix>/bin to your PATH
171
+ ```
172
+
173
+ ### Daemon fails to start
174
+
175
+ Check if port 3100 is already in use:
176
+
177
+ ```bash
178
+ lsof -i :3100
179
+ ```
180
+
181
+ Or change the port in `~/.waiaas/config.toml`:
182
+
183
+ ```toml
184
+ [server]
185
+ port = 3200
186
+ ```
187
+
188
+ ### `quickset` fails with authentication error
189
+
190
+ The master password may be incorrect. The daemon validates the password on startup since v2.4. Restart the daemon with the correct password:
191
+
192
+ ```bash
193
+ waiaas stop
194
+ waiaas start
195
+ ```
@@ -3,7 +3,7 @@ name: "WAIaaS Transactions"
3
3
  description: "All 5 transaction types (TRANSFER, TOKEN_TRANSFER, CONTRACT_CALL, APPROVE, BATCH) with lifecycle management"
4
4
  category: "api"
5
5
  tags: [wallet, blockchain, solana, ethereum, transactions, waiass]
6
- version: "2.7.0-rc"
6
+ version: "2.7.0"
7
7
  dispatch:
8
8
  kind: "tool"
9
9
  allowedCommands: ["curl"]
@@ -3,7 +3,7 @@ name: "WAIaaS Wallet Management"
3
3
  description: "Wallet CRUD, asset queries, session management, token registry, MCP provisioning, owner management"
4
4
  category: "api"
5
5
  tags: [wallet, blockchain, solana, ethereum, sessions, tokens, mcp, waiass]
6
- version: "2.7.0-rc"
6
+ version: "2.7.0"
7
7
  dispatch:
8
8
  kind: "tool"
9
9
  allowedCommands: ["curl"]
@@ -3,7 +3,7 @@ name: "WAIaaS x402"
3
3
  description: "x402 auto-payment protocol: fetch URLs with automatic cryptocurrency payments"
4
4
  category: "api"
5
5
  tags: [wallet, blockchain, x402, payments, waiass]
6
- version: "2.7.0-rc"
6
+ version: "2.7.0"
7
7
  dispatch:
8
8
  kind: "tool"
9
9
  allowedCommands: ["curl"]