@wowok/skills 1.0.6 → 1.1.1

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.
Files changed (52) hide show
  1. package/README.md +26 -30
  2. package/dist/cli.js +114 -19
  3. package/dist/cli.js.map +1 -1
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +11 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/skills.d.ts +46 -1
  9. package/dist/skills.d.ts.map +1 -1
  10. package/dist/skills.js +154 -16
  11. package/dist/skills.js.map +1 -1
  12. package/dist/types.d.ts +31 -0
  13. package/dist/types.d.ts.map +1 -1
  14. package/package.json +3 -4
  15. package/scripts/install.js +5 -3
  16. package/wowok-arbitrator/SKILL.md +279 -0
  17. package/wowok-guard/SKILL.md +166 -139
  18. package/wowok-machine/SKILL.md +215 -280
  19. package/wowok-order/SKILL.md +290 -404
  20. package/wowok-provider/SKILL.md +453 -0
  21. package/wowok-safety/SKILL.md +176 -279
  22. package/wowok-tools/SKILL.md +329 -344
  23. package/schemas/onchain_operations/_common.md +0 -236
  24. package/schemas/onchain_operations/_index.md +0 -22
  25. package/schemas/onchain_operations/allocation.md +0 -50
  26. package/schemas/onchain_operations/arbitration.md +0 -95
  27. package/schemas/onchain_operations/contact.md +0 -36
  28. package/schemas/onchain_operations/demand.md +0 -52
  29. package/schemas/onchain_operations/gen_passport.md +0 -43
  30. package/schemas/onchain_operations/guard.md +0 -136
  31. package/schemas/onchain_operations/machine.md +0 -70
  32. package/schemas/onchain_operations/order.md +0 -57
  33. package/schemas/onchain_operations/payment.md +0 -32
  34. package/schemas/onchain_operations/permission.md +0 -57
  35. package/schemas/onchain_operations/personal.md +0 -59
  36. package/schemas/onchain_operations/progress.md +0 -35
  37. package/schemas/onchain_operations/repository.md +0 -81
  38. package/schemas/onchain_operations/reward.md +0 -40
  39. package/schemas/onchain_operations/service.md +0 -104
  40. package/schemas/onchain_operations/treasury.md +0 -74
  41. package/schemas/schema-account_operation.md +0 -402
  42. package/schemas/schema-guard2file.md +0 -153
  43. package/schemas/schema-local_info_operation.md +0 -160
  44. package/schemas/schema-local_mark_operation.md +0 -148
  45. package/schemas/schema-machineNode2file.md +0 -155
  46. package/schemas/schema-messenger_operation.md +0 -547
  47. package/schemas/schema-onchain_events.md +0 -201
  48. package/schemas/schema-onchain_table_data.md +0 -334
  49. package/schemas/schema-query_toolkit.md +0 -375
  50. package/schemas/schema-wip_file.md +0 -240
  51. package/schemas/schema-wowok_buildin_info.md +0 -296
  52. package/wowok-build/SKILL.md +0 -606
@@ -1,148 +0,0 @@
1
- # Schema: local_mark_operation
2
-
3
- > 100% LOCAL, NEVER ON-CHAIN - Manage ID names and tags stored ONLY on your local device for easy identification of user address or object IDs by name.
4
-
5
- ---
6
-
7
- ## Top-Level Structure
8
-
9
- ```typescript
10
- LocalMarkOperation {
11
- // Exactly ONE operation type must be specified
12
- add?: AddOperation;
13
- remove?: RemoveOperation;
14
- clear?: ClearOperation;
15
- }
16
- ```
17
-
18
- ---
19
-
20
- ## Operation Types
21
-
22
- ### add
23
-
24
- Add one or more marks.
25
-
26
- ```typescript
27
- AddOperation {
28
- op: "add";
29
- data: MarkParam[]; // At least 1 item required
30
- }
31
-
32
- MarkParam {
33
- address: string; // Valid ID: 0x prefix + 64 hex chars, or builtin ID
34
- name?: {
35
- value: string; // Mark name (max 64 bcs characters)
36
- replaceExistName?: boolean; // Replace existing mark with same name
37
- };
38
- tags?: string[]; // Max 50 tags, each max 64 bcs characters
39
- }
40
- ```
41
-
42
- **Result**:
43
-
44
- ```typescript
45
- AddResult {
46
- add: MarkData[]; // List of added mark data
47
- }
48
-
49
- MarkData {
50
- name?: string; // Mark name (max 64 bcs characters)
51
- address: string; // Valid ID
52
- tags?: string[]; // Tags for categorization
53
- createdAt?: number; // Unix timestamp (ms)
54
- updatedAt?: number; // Unix timestamp (ms)
55
- }
56
- ```
57
-
58
- ---
59
-
60
- ### remove
61
-
62
- Remove marks by name or address.
63
-
64
- ```typescript
65
- RemoveOperation {
66
- op: "remove";
67
- names: string[]; // Array of mark names or addresses to remove (at least 1)
68
- }
69
- ```
70
-
71
- **Result**:
72
-
73
- ```typescript
74
- RemoveResult {
75
- remove: MarkData[]; // List of removed mark data
76
- }
77
- ```
78
-
79
- ---
80
-
81
- ### clear
82
-
83
- Remove all marks.
84
-
85
- ```typescript
86
- ClearOperation {
87
- op: "clear";
88
- }
89
- ```
90
-
91
- **Result**:
92
-
93
- ```typescript
94
- ClearResult {
95
- clear: boolean; // Whether all marks were successfully removed
96
- }
97
- ```
98
-
99
- ---
100
-
101
- ## Output Structure
102
-
103
- ```typescript
104
- LocalMarkOperationOutput {
105
- status: "success" | "error";
106
- data?: LocalMarkOperationResult; // Present when status = "success"
107
- error?: string; // Present when status = "error"
108
- }
109
-
110
- LocalMarkOperationResult {
111
- add?: MarkData[];
112
- remove?: MarkData[];
113
- clear?: boolean;
114
- }
115
-
116
- // Wrapped format
117
- {
118
- result: LocalMarkOperationOutput;
119
- }
120
- ```
121
-
122
- ---
123
-
124
- ## Query Local Mark List
125
-
126
- ```typescript
127
- QueryLocalMarkList {
128
- filter?: LocalMarkFilter;
129
- }
130
-
131
- LocalMarkFilter {
132
- name?: string; // Filter by mark name (fuzzy match)
133
- tags?: string[]; // Filter by tags (contains ANY of specified)
134
- address?: string; // Filter by address (exact match)
135
- createdAt?: {
136
- gte?: number; // Created on or after (ms)
137
- lte?: number; // Created on or before (ms)
138
- };
139
- updatedAt?: {
140
- gte?: number; // Updated on or after (ms)
141
- lte?: number; // Updated on or before (ms)
142
- };
143
- }
144
-
145
- QueryLocalMarkListResult {
146
- result: MarkData[];
147
- }
148
- ```
@@ -1,155 +0,0 @@
1
- # MachineNode2File Tool Schema
2
-
3
- > **Tool Name**: `machineNode2file`
4
- > **Description**: Export a Machine object's node definition from the blockchain to a local JSON or Markdown file for editing and creating new Machine objects. Note: To query on-chain object information, use the 'query_toolkit' tool instead.
5
-
6
- ---
7
-
8
- ## Tool Schema
9
-
10
- ```typescript
11
- machineNode2file: MachineNode2File_Input
12
- ```
13
-
14
- ---
15
-
16
- ## Input Schema
17
-
18
- ```typescript
19
- MachineNode2File_Input {
20
- machine: NameOrAddress, // REQUIRED - Machine object ID or name to export
21
- file_path: string, // REQUIRED - Output file path (absolute or relative)
22
- format?: "json" | "markdown", // OPTIONAL - Output format (default: 'json')
23
- env?: CallEnv // OPTIONAL - Environment configuration
24
- }
25
- ```
26
-
27
- ---
28
-
29
- ## Sub Schemas
30
-
31
- ### NameOrAddress
32
-
33
- ```typescript
34
- NameOrAddress = string // Object ID (0x prefix + 64 hex chars) or name (max 64 chars)
35
- ```
36
-
37
- ### CallEnv
38
-
39
- ```typescript
40
- CallEnv {
41
- account?: NameOrAddress, // Account/Object name or ID for signing
42
- network?: "localnet" | "testnet", // Network entrypoint
43
- no_cache?: boolean, // Whether to disable caching
44
- permission_guard?: string[], // Permission guard IDs for extended permissions
45
- referrer?: string // Referrer ID for first-time network users
46
- }
47
- ```
48
-
49
- ---
50
-
51
- ## Output Schema
52
-
53
- ```typescript
54
- MachineNode2File_OutputWrapped {
55
- result: MachineNode2File_Output // MachineNode2File operation output
56
- }
57
-
58
- MachineNode2File_Output =
59
- | { status: "success"; data: MachineNode2File_SuccessData }
60
- | { status: "error"; error: string }
61
- ```
62
-
63
- ### Success Data
64
-
65
- ```typescript
66
- MachineNode2File_SuccessData {
67
- file_path: string, // Absolute path of the exported file
68
- format: "json" | "markdown", // Export format
69
- machine_object: NameOrAddress, // Machine object ID
70
- node_count: number // Number of nodes exported
71
- }
72
- ```
73
-
74
- ---
75
-
76
- ## Usage Guide
77
-
78
- ### Purpose
79
-
80
- The `machineNode2file` tool is specifically designed to:
81
- 1. Export an existing Machine object's node definition from the blockchain
82
- 2. Save it to a local file for editing
83
- 3. Use the exported file to create new Machine objects
84
-
85
- ### When to Use
86
-
87
- | Scenario | Tool to Use |
88
- |----------|-------------|
89
- | Export Machine nodes for editing | `machineNode2file` |
90
- | Query Machine on-chain state | `query_toolkit` |
91
- | Create new Machine | `onchain_operations` (machine) |
92
- | Modify existing Machine nodes | `onchain_operations` (machine) |
93
-
94
- ### File Formats
95
-
96
- **JSON Format** (`format: "json"`):
97
- - Machine-readable format
98
- - Suitable for programmatic processing
99
- - Default format
100
-
101
- **Markdown Format** (`format: "markdown"`):
102
- - Human-readable format with comments
103
- - Suitable for manual editing
104
- - Includes documentation
105
-
106
- ---
107
-
108
- ## Example
109
-
110
- ```typescript
111
- // Export a Machine's nodes to JSON file
112
- machineNode2file: {
113
- machine: "0x1234...abcd", // Machine object ID
114
- file_path: "./my_machine.json", // Output path
115
- format: "json"
116
- }
117
-
118
- // Export a Machine's nodes to Markdown file
119
- machineNode2file: {
120
- machine: "my_machine_name", // Machine name
121
- file_path: "./my_machine.md", // Output path
122
- format: "markdown"
123
- }
124
- ```
125
-
126
- ---
127
-
128
- ## Output Examples
129
-
130
- ### Success Response
131
-
132
- ```json
133
- {
134
- "result": {
135
- "status": "success",
136
- "data": {
137
- "file_path": "/absolute/path/to/my_machine.json",
138
- "format": "json",
139
- "machine_object": "0x1234567890abcdef...",
140
- "node_count": 5
141
- }
142
- }
143
- }
144
- ```
145
-
146
- ### Error Response
147
-
148
- ```json
149
- {
150
- "result": {
151
- "status": "error",
152
- "error": "Machine object not found: 0x1234..."
153
- }
154
- }
155
- ```