@wowok/agent-mcp 2.2.14 → 2.2.15
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 +19 -11
- package/dist/index.js +2 -2
- package/dist/schema/query/index.js +1 -1
- package/dist/schemas/index.json +1 -1
- package/package.json +1 -1
- package/dist/schemas/operations/guard.json +0 -163
- package/dist/schemas/operations/permission.json +0 -22
package/README.md
CHANGED
|
@@ -39,18 +39,26 @@ Skills provide structured guidance for AI assistants:
|
|
|
39
39
|
- **Tool usage failures** — Correct parameter formats, tool selection, error recovery
|
|
40
40
|
- **Safety & authorization** — User confirmation for important operations
|
|
41
41
|
|
|
42
|
-
#### Available Skills
|
|
43
|
-
|
|
44
|
-
| Skill | Purpose |
|
|
45
|
-
|
|
46
|
-
| `wowok-
|
|
47
|
-
| `wowok-
|
|
48
|
-
| `wowok-
|
|
49
|
-
| `wowok-
|
|
50
|
-
| `wowok-
|
|
51
|
-
| `wowok-
|
|
42
|
+
#### Available Skills (Organized by Role)
|
|
43
|
+
|
|
44
|
+
| Skill | Role | Purpose |
|
|
45
|
+
|-------|------|---------|
|
|
46
|
+
| `wowok-order` | 👤 Customer | Order lifecycle — place orders, track progress, submit disputes, claim compensation |
|
|
47
|
+
| `wowok-provider` | 🏪 Provider | Service provider guide — create Service, design Machine, configure Allocators |
|
|
48
|
+
| `wowok-machine` | 🏪 Provider | Workflow design — state machines, node definitions, progress tracking |
|
|
49
|
+
| `wowok-arbitrator` | ⚖️ Arbitrator | Arbitration service — dispute resolution, voting organization, fee management |
|
|
50
|
+
| `wowok-guard` | 🛠️ Shared | Guard design mastery — programmable trust rules, multi-signature authorization |
|
|
51
|
+
| `wowok-tools` | 🛠️ Shared | MCP tool usage mastery — 13+ tools, parameter formats, schema references |
|
|
52
|
+
| `wowok-safety` | 🛠️ Shared | Safety protocol — dry-run validation, user confirmation checkpoints |
|
|
53
|
+
|
|
54
|
+
#### Role-Based Skill Selection
|
|
55
|
+
|
|
56
|
+
- **Use `wowok-order`** when user acts as a customer/buyer placing orders
|
|
57
|
+
- **Use `wowok-provider`** + `wowok-machine` when user is a merchant/service provider
|
|
58
|
+
- **Use `wowok-arbitrator`** when user operates dispute resolution services
|
|
59
|
+
- **Use `wowok-tools`** + `wowok-safety`** (always loaded) for all roles
|
|
60
|
+
- **Use `wowok-guard`** when designing complex validation rules
|
|
52
61
|
|
|
53
62
|
#### Using Skills
|
|
54
63
|
|
|
55
64
|
Once installed, Claude Code will automatically use these skills when working with WoWok tools.
|
|
56
|
-
|
package/dist/index.js
CHANGED
|
@@ -89,7 +89,7 @@ Token amounts are HIGHLY SENSITIVE. Always:
|
|
|
89
89
|
| Send encrypted file via messenger | messenger_operation (send_file) | wip_file |
|
|
90
90
|
| Generate witness timestamp (WTS) | messenger_operation (generate_wts) | wip_file |
|
|
91
91
|
| Query protocol constants | wowok_buildin_info | query_toolkit |
|
|
92
|
-
|
|
|
92
|
+
| Query tool schemas | schema_query | wowok_buildin_info |
|
|
93
93
|
|
|
94
94
|
## Local vs On-chain Operations
|
|
95
95
|
|
|
@@ -107,7 +107,7 @@ Token amounts are HIGHLY SENSITIVE. Always:
|
|
|
107
107
|
- query_toolkit
|
|
108
108
|
- onchain_events
|
|
109
109
|
- wowok_buildin_info
|
|
110
|
-
-
|
|
110
|
+
- schema_query
|
|
111
111
|
- guard2file
|
|
112
112
|
- machineNode2file
|
|
113
113
|
`;
|
|
@@ -117,7 +117,7 @@ export const ObjectOrderSchema = ObjectBaseSchema.extend({
|
|
|
117
117
|
amount: BalanceTypeSchema.describe("Order amount"),
|
|
118
118
|
builder: z.string().describe("Purchaser ID"),
|
|
119
119
|
service: z.string().describe("Service ID"),
|
|
120
|
-
dispute: z.array(z.string()).describe("
|
|
120
|
+
dispute: z.array(z.string()).describe("Arb object ID list. When unsatisfied with order delivery, dispute objects can be created."),
|
|
121
121
|
agent: z.array(z.string()).describe("Agent ID list. Agents handle all order operations except payment collection."),
|
|
122
122
|
allocation: z.union([z.string(), z.null()]).describe("Order amount allocation object ID"),
|
|
123
123
|
claimed_by: z.union([z.string(), z.null()]).describe("Order dispute object ID that has claimed order arbitration amount."),
|
package/dist/schemas/index.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "WoWok MCP Schema Index",
|
|
4
4
|
"description": "Index of all available JSON schemas for WoWok MCP tools",
|
|
5
|
-
"generatedAt": "2026-05-
|
|
5
|
+
"generatedAt": "2026-05-20T11:48:42.252Z",
|
|
6
6
|
"tools": [
|
|
7
7
|
{
|
|
8
8
|
"name": "onchain_operations",
|
package/package.json
CHANGED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://wowok.net/schemas/operations/guard.json",
|
|
4
|
-
"title": "Guard Operation",
|
|
5
|
-
"description": "On-chain Guard operations",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"operation_type": {
|
|
9
|
-
"const": "guard"
|
|
10
|
-
},
|
|
11
|
-
"data": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"description": "On-chain Guard creation. IMPORTANT: All defined data (include all submitted data) must be defined in the 'table' field. USAGE: Set 'namedNew' field with {name, tags?, onChain?} to name the new Guard. The Guard is immutable once created. Define the validation logic in 'root' field. When root.type='file', the file can contain all Guard fields, and any fields defined in the schema will OVERRIDE the file content.",
|
|
14
|
-
"properties": {
|
|
15
|
-
"namedNew": {
|
|
16
|
-
"type": "object",
|
|
17
|
-
"description": "Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file.",
|
|
18
|
-
"properties": {
|
|
19
|
-
"name": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "The name of the object"
|
|
22
|
-
},
|
|
23
|
-
"tags": {
|
|
24
|
-
"type": "array",
|
|
25
|
-
"items": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
"description": "The tags of the object"
|
|
29
|
-
},
|
|
30
|
-
"onChain": {
|
|
31
|
-
"type": "boolean",
|
|
32
|
-
"description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone."
|
|
33
|
-
},
|
|
34
|
-
"replaceExistName": {
|
|
35
|
-
"type": "boolean",
|
|
36
|
-
"description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name."
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"additionalProperties": false
|
|
40
|
-
},
|
|
41
|
-
"description": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"description": "Guard description. When using root.type='file', this field OVERRIDES description in the file."
|
|
44
|
-
},
|
|
45
|
-
"table": {
|
|
46
|
-
"type": "array",
|
|
47
|
-
"description": "Data table of the Guard object. When using root.type='file', this field OVERRIDES table in the file.",
|
|
48
|
-
"items": {
|
|
49
|
-
"type": "object",
|
|
50
|
-
"properties": {
|
|
51
|
-
"identifier": {
|
|
52
|
-
"type": "integer",
|
|
53
|
-
"minimum": 0,
|
|
54
|
-
"maximum": 255,
|
|
55
|
-
"description": "Identifier index (0-255) for referencing this value in Guard nodes"
|
|
56
|
-
},
|
|
57
|
-
"bWitness": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"description": "Whether this is a witness parameter (provided at runtime)"
|
|
60
|
-
},
|
|
61
|
-
"value_type": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "Value type: Bool, Address, String, U8, U16, U32, U64, U128, U256, VecBool, VecAddress, VecString, VecU8, VecU16, VecU32, VecU64, VecU128, VecU256, VecVecU8"
|
|
64
|
-
},
|
|
65
|
-
"value": {
|
|
66
|
-
"description": "The actual value (omit if bWitness is true)"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"required": [
|
|
70
|
-
"identifier",
|
|
71
|
-
"bWitness",
|
|
72
|
-
"value_type"
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
"root": {
|
|
77
|
-
"description": "Root definition: either a direct node tree (type='node') or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content.",
|
|
78
|
-
"oneOf": [
|
|
79
|
-
{
|
|
80
|
-
"type": "object",
|
|
81
|
-
"description": "Direct node tree",
|
|
82
|
-
"properties": {
|
|
83
|
-
"type": {
|
|
84
|
-
"const": "node"
|
|
85
|
-
},
|
|
86
|
-
"node": {
|
|
87
|
-
"type": "object",
|
|
88
|
-
"description": "Guard computational tree root node. MUST return a Bool value (pass/fail). See GuardNode documentation for details.",
|
|
89
|
-
"properties": {
|
|
90
|
-
"type": {
|
|
91
|
-
"type": "string"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"additionalProperties": true
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"required": [
|
|
98
|
-
"type",
|
|
99
|
-
"node"
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"type": "object",
|
|
104
|
-
"description": "File reference",
|
|
105
|
-
"properties": {
|
|
106
|
-
"type": {
|
|
107
|
-
"const": "file"
|
|
108
|
-
},
|
|
109
|
-
"file_path": {
|
|
110
|
-
"type": "string",
|
|
111
|
-
"description": "Path to JSON or Markdown file containing Guard definition"
|
|
112
|
-
},
|
|
113
|
-
"format": {
|
|
114
|
-
"type": "string",
|
|
115
|
-
"enum": [
|
|
116
|
-
"json",
|
|
117
|
-
"markdown"
|
|
118
|
-
],
|
|
119
|
-
"default": "json",
|
|
120
|
-
"description": "File format: 'json' or 'markdown'"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"required": [
|
|
124
|
-
"type",
|
|
125
|
-
"file_path"
|
|
126
|
-
]
|
|
127
|
-
}
|
|
128
|
-
]
|
|
129
|
-
},
|
|
130
|
-
"rely": {
|
|
131
|
-
"type": "object",
|
|
132
|
-
"description": "All Guard objects that the new Guard object depends on.",
|
|
133
|
-
"properties": {
|
|
134
|
-
"guards": {
|
|
135
|
-
"type": "array",
|
|
136
|
-
"items": {
|
|
137
|
-
"type": "string"
|
|
138
|
-
},
|
|
139
|
-
"description": "List of dependent Guard object IDs or names."
|
|
140
|
-
},
|
|
141
|
-
"logic_or": {
|
|
142
|
-
"type": "boolean",
|
|
143
|
-
"description": "Whether to use logical OR operator."
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"required": [
|
|
147
|
-
"guards"
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
"required": [
|
|
152
|
-
"root"
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
"env": {
|
|
156
|
-
"type": "object"
|
|
157
|
-
}
|
|
158
|
-
},
|
|
159
|
-
"required": [
|
|
160
|
-
"operation_type",
|
|
161
|
-
"data"
|
|
162
|
-
]
|
|
163
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://wowok.net/schemas/operations/permission.json",
|
|
4
|
-
"title": "Permission Operation",
|
|
5
|
-
"description": "On-chain Permission operations",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"operation_type": {
|
|
9
|
-
"const": "permission"
|
|
10
|
-
},
|
|
11
|
-
"data": {
|
|
12
|
-
"$ref": "../onchain_operations_permission.schema.json#/properties/data"
|
|
13
|
-
},
|
|
14
|
-
"env": {
|
|
15
|
-
"type": "object"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"required": [
|
|
19
|
-
"operation_type",
|
|
20
|
-
"data"
|
|
21
|
-
]
|
|
22
|
-
}
|