@wowok/skills 1.1.3 → 1.1.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/README.md +46 -7
- package/dist/cli.js +150 -35
- package/dist/cli.js.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +16 -0
- package/dist/types.js.map +1 -1
- package/examples/MyShop_Advanced/MyShop_Advanced.md +220 -228
- package/examples/MyShop_Advanced/three_body_signature.wip +30 -0
- package/package.json +3 -1
- package/scripts/install.js +126 -15
- package/wowok-messenger/SKILL.md +293 -0
- package/wowok-output/SKILL.md +142 -0
- package/wowok-safety/SKILL.md +3 -57
- package/wowok-tools/SKILL.md +0 -2
package/wowok-safety/SKILL.md
CHANGED
|
@@ -136,20 +136,6 @@ Controls name collision behavior:
|
|
|
136
136
|
- Default to `false` in production to prevent accidental name hijacking
|
|
137
137
|
- Prefer versioned names (`_v1`, `_v2`) over `replaceExistName` for production
|
|
138
138
|
|
|
139
|
-
### 4.2 Address Display Rules
|
|
140
|
-
|
|
141
|
-
When displaying an address (0x prefix + 64 hex characters) to the user:
|
|
142
|
-
|
|
143
|
-
1. **Query local mark first**:
|
|
144
|
-
|
|
145
|
-
**Tool**: `query_toolkit` with `query_type: "local_mark_list"` and filter by address.
|
|
146
|
-
|
|
147
|
-
2. **Display format**:
|
|
148
|
-
- If local mark exists: `{name} ({short_address})`
|
|
149
|
-
- If no local mark: `{first8}...{last3}` (e.g., `0x3a2f8e1...8c1`)
|
|
150
|
-
|
|
151
|
-
3. **Short address format**: Include `0x` prefix, take first 8 chars + `...` + last 3 chars
|
|
152
|
-
|
|
153
139
|
---
|
|
154
140
|
|
|
155
141
|
## 5. Network & Token Defaults
|
|
@@ -185,47 +171,7 @@ Use `Payment` objects for commercial transfers when possible — they offer Guar
|
|
|
185
171
|
|
|
186
172
|
---
|
|
187
173
|
|
|
188
|
-
## 7.
|
|
189
|
-
|
|
190
|
-
### 7.1 Name Resolution Priority
|
|
191
|
-
|
|
192
|
-
| Priority | Source | Display Format | Example |
|
|
193
|
-
|----------|--------|----------------|---------|
|
|
194
|
-
| 1 (Highest) | `local_mark_operation` | `{local_mark_name} (localmark)` | `my_service (localmark)` |
|
|
195
|
-
| 2 | `account_operation` (account name) | `{account_name}` | `alice_wallet` |
|
|
196
|
-
| 3 (Fallback) | None / Unnamed | `{first6}...{last3}` | `0x3a2f...8c1` |
|
|
197
|
-
|
|
198
|
-
### 7.2 Address Resolution & Display Format
|
|
199
|
-
|
|
200
|
-
**Resolve addresses to names** via `query_toolkit`:
|
|
201
|
-
|
|
202
|
-
**Tool**: `query_toolkit` with `query_type: "local_names"` and `addresses` array parameter.
|
|
203
|
-
|
|
204
|
-
- Each address must be a valid WOW ID: `0x` prefix + **64 hex characters**.
|
|
205
|
-
- Returns resolved account name and/or local mark name for each address.
|
|
206
|
-
- Name priority follows [7.1](#71-name-resolution-priority): `local_mark` > `account`.
|
|
207
|
-
|
|
208
|
-
**Address truncation** (for display):
|
|
209
|
-
|
|
210
|
-
```
|
|
211
|
-
{first_6_chars}...{last_3_chars}
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
- Include the `0x` prefix in the character count.
|
|
215
|
-
- Use exactly **three dots** (`...`) as the separator.
|
|
216
|
-
- Example: `0x3a2f...8c1`
|
|
217
|
-
|
|
218
|
-
**Combined display**: human-readable name + truncated address in parentheses.
|
|
219
|
-
|
|
220
|
-
| Name Source | Display Format | Example |
|
|
221
|
-
|-------------|----------------|---------|
|
|
222
|
-
| local_mark | `{local_mark} ({first6}...{last3})` | `my_service (0x3a2f...8c1)` |
|
|
223
|
-
| account | `{account_name} ({first6}...{last3})` | `alice_wallet (0x3a2f...8c1)` |
|
|
224
|
-
| none (fallback) | `{first6}...{last3}` | `0x3a2f...8c1` |
|
|
225
|
-
|
|
226
|
-
---
|
|
227
|
-
|
|
228
|
-
## 8. Error Patterns
|
|
174
|
+
## 7. Error Patterns
|
|
229
175
|
|
|
230
176
|
| Error | Likely Cause |
|
|
231
177
|
|-------|-------------|
|
|
@@ -236,7 +182,7 @@ Use `Payment` objects for commercial transfers when possible — they offer Guar
|
|
|
236
182
|
|
|
237
183
|
---
|
|
238
184
|
|
|
239
|
-
##
|
|
185
|
+
## 8. Testing & Validation Workflow
|
|
240
186
|
|
|
241
187
|
1. **Design Phase**: Use `wowok_buildin_info` to discover available permissions, Guard instructions, and value types
|
|
242
188
|
|
|
@@ -267,7 +213,7 @@ WoWok's value type system is the foundation for type-safe data declarations used
|
|
|
267
213
|
|
|
268
214
|
---
|
|
269
215
|
|
|
270
|
-
##
|
|
216
|
+
## 9. Incremental Object Building
|
|
271
217
|
|
|
272
218
|
For complex objects with many fields (Service, Machine), use **incremental building** instead of creating everything in one call:
|
|
273
219
|
|
package/wowok-tools/SKILL.md
CHANGED
|
@@ -47,8 +47,6 @@ Quick reference for WoWok MCP tools — patterns, pitfalls, and troubleshooting.
|
|
|
47
47
|
| **String** | Reference EXISTING | `"my-service"` or `"0x1234..."` |
|
|
48
48
|
| **Object** | CREATE NEW | `{ name: "my-service", permission: "..." }` |
|
|
49
49
|
|
|
50
|
-
**Key Rule**: `publish: true` LOCKS immutable fields (machine, order_allocators, guard logic).
|
|
51
|
-
|
|
52
50
|
---
|
|
53
51
|
|
|
54
52
|
## The 13 Tools
|