@wowok/agent-mcp 2.2.11 → 2.2.14
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/dist/index.d.ts +12 -0
- package/dist/index.js +98 -47
- package/dist/schema-query/index.d.ts +29 -0
- package/dist/schema-query/index.js +149 -0
- package/dist/schemas/account_operation.schema.json +255 -0
- package/dist/schemas/guard2file.schema.json +71 -0
- package/dist/schemas/index.json +139 -0
- package/dist/schemas/local_info_operation.schema.json +142 -0
- package/dist/schemas/local_mark_operation.schema.json +119 -0
- package/dist/schemas/machineNode2file.schema.json +71 -0
- package/dist/schemas/messenger_operation.schema.json +1393 -0
- package/dist/schemas/onchain_events.schema.json +113 -0
- package/dist/schemas/onchain_operations.schema.json +376 -0
- package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
- package/dist/schemas/onchain_operations_contact.schema.json +853 -0
- package/dist/schemas/onchain_operations_demand.schema.json +984 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
- package/dist/schemas/onchain_operations_guard.schema.json +713 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
- package/dist/schemas/onchain_operations_order.schema.json +830 -0
- package/dist/schemas/onchain_operations_payment.schema.json +717 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
- package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
- package/dist/schemas/onchain_operations_progress.schema.json +751 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
- package/dist/schemas/onchain_operations_reward.schema.json +955 -0
- package/dist/schemas/onchain_operations_service.schema.json +1411 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
- package/dist/schemas/onchain_table_data.schema.json +35 -0
- package/dist/schemas/operations/guard.json +163 -0
- package/dist/schemas/operations/permission.json +22 -0
- package/dist/schemas/query_toolkit.schema.json +32 -0
- package/dist/schemas/schema_query.schema.json +33 -0
- package/dist/schemas/wip_file.schema.json +27 -0
- package/dist/schemas/wowok_buildin_info.schema.json +487 -0
- package/package.json +8 -5
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_events.json",
|
|
4
|
+
"title": "On-chain Events",
|
|
5
|
+
"description": "Watch on-chain WoWok events by type",
|
|
6
|
+
"$ref": "#/definitions/onchain_events",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"onchain_events": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"type": {
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"type": "string",
|
|
15
|
+
"const": "ArbEvent"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"const": "NewOrderEvent"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "string",
|
|
23
|
+
"const": "ProgressEvent"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "DemandPresentEvent"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "string",
|
|
31
|
+
"const": "DemandFeedbackEvent"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "string",
|
|
35
|
+
"const": "NewEntityEvent"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"type": "string"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"description": "Event type to query. Supported types: ArbEvent (arbitration events), NewOrderEvent (new order events), ProgressEvent (progress events), DemandPresentEvent (demand presentation events), DemandFeedbackEvent (demand feedback events), NewEntityEvent (new entity registration events)"
|
|
42
|
+
},
|
|
43
|
+
"cursor": {
|
|
44
|
+
"anyOf": [
|
|
45
|
+
{
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"eventSeq": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Event sequence number"
|
|
51
|
+
},
|
|
52
|
+
"txDigest": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Transaction digest"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"eventSeq",
|
|
59
|
+
"txDigest"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"description": "Event cursor"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "null"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"description": "Optional pagination cursor for fetching next page of results. Use null for first query, then use nextCursor from response for subsequent queries"
|
|
69
|
+
},
|
|
70
|
+
"limit": {
|
|
71
|
+
"type": [
|
|
72
|
+
"number",
|
|
73
|
+
"null"
|
|
74
|
+
],
|
|
75
|
+
"description": "Maximum number of events to return per query. Use null for default limit"
|
|
76
|
+
},
|
|
77
|
+
"order": {
|
|
78
|
+
"anyOf": [
|
|
79
|
+
{
|
|
80
|
+
"type": "string",
|
|
81
|
+
"const": "ascending"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "descending"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "null"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"description": "Sort order for results: 'ascending' (oldest first) or 'descending' (newest first). Use null for default order"
|
|
92
|
+
},
|
|
93
|
+
"no_cache": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"description": "Whether to bypass cache and fetch fresh data from the blockchain"
|
|
96
|
+
},
|
|
97
|
+
"network": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"enum": [
|
|
100
|
+
"localnet",
|
|
101
|
+
"testnet"
|
|
102
|
+
],
|
|
103
|
+
"description": "Network to query: 'mainnet' or 'testnet'. Uses default network if not specified"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": [
|
|
107
|
+
"type"
|
|
108
|
+
],
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"description": "Input parameters for querying on-chain WOWOK events"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations.json",
|
|
4
|
+
"title": "On-chain Operations",
|
|
5
|
+
"description": "On-chain operations for WoWok objects: service, machine, progress, repository, arbitration, contact, treasury, reward, allocation, permission, guard, personal, payment, demand, order, gen_passport.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"title": "Service Object",
|
|
10
|
+
"description": "Create and manage product/service listings",
|
|
11
|
+
"properties": {
|
|
12
|
+
"operation_type": {
|
|
13
|
+
"const": "service"
|
|
14
|
+
},
|
|
15
|
+
"data": {
|
|
16
|
+
"type": "object"
|
|
17
|
+
},
|
|
18
|
+
"env": {
|
|
19
|
+
"type": "object"
|
|
20
|
+
},
|
|
21
|
+
"submission": {
|
|
22
|
+
"type": "object"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"operation_type",
|
|
27
|
+
"data"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "object",
|
|
32
|
+
"title": "Machine Object",
|
|
33
|
+
"description": "Design and deploy automated workflow templates",
|
|
34
|
+
"properties": {
|
|
35
|
+
"operation_type": {
|
|
36
|
+
"const": "machine"
|
|
37
|
+
},
|
|
38
|
+
"data": {
|
|
39
|
+
"type": "object"
|
|
40
|
+
},
|
|
41
|
+
"env": {
|
|
42
|
+
"type": "object"
|
|
43
|
+
},
|
|
44
|
+
"submission": {
|
|
45
|
+
"type": "object"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"operation_type",
|
|
50
|
+
"data"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "object",
|
|
55
|
+
"title": "Progress Object",
|
|
56
|
+
"description": "Track and manage active workflows",
|
|
57
|
+
"properties": {
|
|
58
|
+
"operation_type": {
|
|
59
|
+
"const": "progress"
|
|
60
|
+
},
|
|
61
|
+
"data": {
|
|
62
|
+
"type": "object"
|
|
63
|
+
},
|
|
64
|
+
"env": {
|
|
65
|
+
"type": "object"
|
|
66
|
+
},
|
|
67
|
+
"submission": {
|
|
68
|
+
"type": "object"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"operation_type",
|
|
73
|
+
"data"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "object",
|
|
78
|
+
"title": "Repository Object",
|
|
79
|
+
"description": "Read/write database with consensus field",
|
|
80
|
+
"properties": {
|
|
81
|
+
"operation_type": {
|
|
82
|
+
"const": "repository"
|
|
83
|
+
},
|
|
84
|
+
"data": {
|
|
85
|
+
"type": "object"
|
|
86
|
+
},
|
|
87
|
+
"env": {
|
|
88
|
+
"type": "object"
|
|
89
|
+
},
|
|
90
|
+
"submission": {
|
|
91
|
+
"type": "object"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"operation_type",
|
|
96
|
+
"data"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "object",
|
|
101
|
+
"title": "Arbitration Object",
|
|
102
|
+
"description": "On-chain arbitration system",
|
|
103
|
+
"properties": {
|
|
104
|
+
"operation_type": {
|
|
105
|
+
"const": "arbitration"
|
|
106
|
+
},
|
|
107
|
+
"data": {
|
|
108
|
+
"type": "object"
|
|
109
|
+
},
|
|
110
|
+
"env": {
|
|
111
|
+
"type": "object"
|
|
112
|
+
},
|
|
113
|
+
"submission": {
|
|
114
|
+
"type": "object"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"required": [
|
|
118
|
+
"operation_type",
|
|
119
|
+
"data"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "object",
|
|
124
|
+
"title": "Contact Object",
|
|
125
|
+
"description": "Manage on-chain instant messaging",
|
|
126
|
+
"properties": {
|
|
127
|
+
"operation_type": {
|
|
128
|
+
"const": "contact"
|
|
129
|
+
},
|
|
130
|
+
"data": {
|
|
131
|
+
"type": "object"
|
|
132
|
+
},
|
|
133
|
+
"env": {
|
|
134
|
+
"type": "object"
|
|
135
|
+
},
|
|
136
|
+
"submission": {
|
|
137
|
+
"type": "object"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"operation_type",
|
|
142
|
+
"data"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "object",
|
|
147
|
+
"title": "Treasury Object",
|
|
148
|
+
"description": "Create and manage team funds",
|
|
149
|
+
"properties": {
|
|
150
|
+
"operation_type": {
|
|
151
|
+
"const": "treasury"
|
|
152
|
+
},
|
|
153
|
+
"data": {
|
|
154
|
+
"type": "object"
|
|
155
|
+
},
|
|
156
|
+
"env": {
|
|
157
|
+
"type": "object"
|
|
158
|
+
},
|
|
159
|
+
"submission": {
|
|
160
|
+
"type": "object"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"required": [
|
|
164
|
+
"operation_type",
|
|
165
|
+
"data"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "object",
|
|
170
|
+
"title": "Reward Object",
|
|
171
|
+
"description": "Create reward pools",
|
|
172
|
+
"properties": {
|
|
173
|
+
"operation_type": {
|
|
174
|
+
"const": "reward"
|
|
175
|
+
},
|
|
176
|
+
"data": {
|
|
177
|
+
"type": "object"
|
|
178
|
+
},
|
|
179
|
+
"env": {
|
|
180
|
+
"type": "object"
|
|
181
|
+
},
|
|
182
|
+
"submission": {
|
|
183
|
+
"type": "object"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"operation_type",
|
|
188
|
+
"data"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"type": "object",
|
|
193
|
+
"title": "Allocation Object",
|
|
194
|
+
"description": "Auto-distribute funds",
|
|
195
|
+
"properties": {
|
|
196
|
+
"operation_type": {
|
|
197
|
+
"const": "allocation"
|
|
198
|
+
},
|
|
199
|
+
"data": {
|
|
200
|
+
"type": "object"
|
|
201
|
+
},
|
|
202
|
+
"env": {
|
|
203
|
+
"type": "object"
|
|
204
|
+
},
|
|
205
|
+
"submission": {
|
|
206
|
+
"type": "object"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"required": [
|
|
210
|
+
"operation_type",
|
|
211
|
+
"data"
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "object",
|
|
216
|
+
"title": "Permission Object",
|
|
217
|
+
"description": "Define access control",
|
|
218
|
+
"properties": {
|
|
219
|
+
"operation_type": {
|
|
220
|
+
"const": "permission"
|
|
221
|
+
},
|
|
222
|
+
"data": {
|
|
223
|
+
"type": "object"
|
|
224
|
+
},
|
|
225
|
+
"env": {
|
|
226
|
+
"type": "object"
|
|
227
|
+
},
|
|
228
|
+
"submission": {
|
|
229
|
+
"type": "object"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"required": [
|
|
233
|
+
"operation_type",
|
|
234
|
+
"data"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "object",
|
|
239
|
+
"title": "Guard Object",
|
|
240
|
+
"description": "Create programmable validation rules",
|
|
241
|
+
"properties": {
|
|
242
|
+
"operation_type": {
|
|
243
|
+
"const": "guard"
|
|
244
|
+
},
|
|
245
|
+
"data": {
|
|
246
|
+
"type": "object"
|
|
247
|
+
},
|
|
248
|
+
"env": {
|
|
249
|
+
"type": "object"
|
|
250
|
+
},
|
|
251
|
+
"submission": {
|
|
252
|
+
"type": "object"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": [
|
|
256
|
+
"operation_type",
|
|
257
|
+
"data"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"type": "object",
|
|
262
|
+
"title": "Personal Object",
|
|
263
|
+
"description": "Manage public identity",
|
|
264
|
+
"properties": {
|
|
265
|
+
"operation_type": {
|
|
266
|
+
"const": "personal"
|
|
267
|
+
},
|
|
268
|
+
"data": {
|
|
269
|
+
"type": "object"
|
|
270
|
+
},
|
|
271
|
+
"env": {
|
|
272
|
+
"type": "object"
|
|
273
|
+
},
|
|
274
|
+
"submission": {
|
|
275
|
+
"type": "object"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"required": [
|
|
279
|
+
"operation_type",
|
|
280
|
+
"data"
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"type": "object",
|
|
285
|
+
"title": "Payment Object",
|
|
286
|
+
"description": "Send coin transfers",
|
|
287
|
+
"properties": {
|
|
288
|
+
"operation_type": {
|
|
289
|
+
"const": "payment"
|
|
290
|
+
},
|
|
291
|
+
"data": {
|
|
292
|
+
"type": "object"
|
|
293
|
+
},
|
|
294
|
+
"env": {
|
|
295
|
+
"type": "object"
|
|
296
|
+
},
|
|
297
|
+
"submission": {
|
|
298
|
+
"type": "object"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"required": [
|
|
302
|
+
"operation_type",
|
|
303
|
+
"data"
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"type": "object",
|
|
308
|
+
"title": "Demand Object",
|
|
309
|
+
"description": "Post service requests",
|
|
310
|
+
"properties": {
|
|
311
|
+
"operation_type": {
|
|
312
|
+
"const": "demand"
|
|
313
|
+
},
|
|
314
|
+
"data": {
|
|
315
|
+
"type": "object"
|
|
316
|
+
},
|
|
317
|
+
"env": {
|
|
318
|
+
"type": "object"
|
|
319
|
+
},
|
|
320
|
+
"submission": {
|
|
321
|
+
"type": "object"
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"required": [
|
|
325
|
+
"operation_type",
|
|
326
|
+
"data"
|
|
327
|
+
]
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "object",
|
|
331
|
+
"title": "Order Object",
|
|
332
|
+
"description": "Manage order lifecycle",
|
|
333
|
+
"properties": {
|
|
334
|
+
"operation_type": {
|
|
335
|
+
"const": "order"
|
|
336
|
+
},
|
|
337
|
+
"data": {
|
|
338
|
+
"type": "object"
|
|
339
|
+
},
|
|
340
|
+
"env": {
|
|
341
|
+
"type": "object"
|
|
342
|
+
},
|
|
343
|
+
"submission": {
|
|
344
|
+
"type": "object"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"required": [
|
|
348
|
+
"operation_type",
|
|
349
|
+
"data"
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "object",
|
|
354
|
+
"title": "Generate Passport",
|
|
355
|
+
"description": "Create verified credentials",
|
|
356
|
+
"properties": {
|
|
357
|
+
"operation_type": {
|
|
358
|
+
"const": "gen_passport"
|
|
359
|
+
},
|
|
360
|
+
"data": {
|
|
361
|
+
"type": "object"
|
|
362
|
+
},
|
|
363
|
+
"env": {
|
|
364
|
+
"type": "object"
|
|
365
|
+
},
|
|
366
|
+
"submission": {
|
|
367
|
+
"type": "object"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"required": [
|
|
371
|
+
"operation_type",
|
|
372
|
+
"data"
|
|
373
|
+
]
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|