@wowok/agent-mcp 2.2.13 → 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.
Files changed (126) hide show
  1. package/dist/index.js +42 -98
  2. package/dist/schema-query/index.d.ts +29 -0
  3. package/dist/schema-query/index.js +149 -0
  4. package/dist/schemas/account_operation.schema.json +255 -0
  5. package/dist/schemas/guard2file.schema.json +71 -0
  6. package/dist/schemas/index.json +139 -0
  7. package/dist/schemas/local_info_operation.schema.json +142 -0
  8. package/dist/schemas/local_mark_operation.schema.json +119 -0
  9. package/dist/schemas/machineNode2file.schema.json +71 -0
  10. package/dist/schemas/messenger_operation.schema.json +1393 -0
  11. package/dist/schemas/onchain_events.schema.json +113 -0
  12. package/dist/schemas/onchain_operations.schema.json +376 -0
  13. package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
  14. package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
  15. package/dist/schemas/onchain_operations_contact.schema.json +853 -0
  16. package/dist/schemas/onchain_operations_demand.schema.json +984 -0
  17. package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
  18. package/dist/schemas/onchain_operations_guard.schema.json +713 -0
  19. package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
  20. package/dist/schemas/onchain_operations_order.schema.json +830 -0
  21. package/dist/schemas/onchain_operations_payment.schema.json +717 -0
  22. package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
  23. package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
  24. package/dist/schemas/onchain_operations_progress.schema.json +751 -0
  25. package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
  26. package/dist/schemas/onchain_operations_reward.schema.json +955 -0
  27. package/dist/schemas/onchain_operations_service.schema.json +1411 -0
  28. package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
  29. package/dist/schemas/onchain_table_data.schema.json +35 -0
  30. package/dist/schemas/operations/guard.json +163 -0
  31. package/dist/schemas/operations/permission.json +22 -0
  32. package/dist/schemas/query_toolkit.schema.json +32 -0
  33. package/dist/schemas/schema_query.schema.json +33 -0
  34. package/dist/schemas/wip_file.schema.json +27 -0
  35. package/dist/schemas/wowok_buildin_info.schema.json +487 -0
  36. package/package.json +7 -5
  37. package/dist/docs/index.d.ts +0 -3
  38. package/dist/docs/index.js +0 -2
  39. package/dist/docs/loader.d.ts +0 -12
  40. package/dist/docs/loader.js +0 -177
  41. package/dist/docs/search.d.ts +0 -17
  42. package/dist/docs/search.js +0 -325
  43. package/dist/docs/types.d.ts +0 -55
  44. package/dist/docs/types.js +0 -1
  45. package/docs/README.md +0 -249
  46. package/docs/WIP.md +0 -388
  47. package/docs/WTS.md +0 -536
  48. package/docs/docs/account.md +0 -914
  49. package/docs/docs/allocation.md +0 -635
  50. package/docs/docs/arbitration.md +0 -1804
  51. package/docs/docs/arbitration_state_machine.md +0 -270
  52. package/docs/docs/contact.md +0 -709
  53. package/docs/docs/demand.md +0 -948
  54. package/docs/docs/guard.md +0 -1465
  55. package/docs/docs/localinfo.md +0 -432
  56. package/docs/docs/localmark.md +0 -583
  57. package/docs/docs/machine.md +0 -2490
  58. package/docs/docs/messenger.md +0 -2098
  59. package/docs/docs/onchain_events.md +0 -267
  60. package/docs/docs/order.md +0 -1001
  61. package/docs/docs/payment.md +0 -512
  62. package/docs/docs/permission.md +0 -1438
  63. package/docs/docs/personal.md +0 -742
  64. package/docs/docs/progress.md +0 -1748
  65. package/docs/docs/query.md +0 -467
  66. package/docs/docs/repository.md +0 -1043
  67. package/docs/docs/reward.md +0 -833
  68. package/docs/docs/service.md +0 -2130
  69. package/docs/docs/stage-01-introduction.md +0 -243
  70. package/docs/docs/stage-02-trust.md +0 -302
  71. package/docs/docs/stage-03-collaboration.md +0 -337
  72. package/docs/docs/stage-04-transaction.md +0 -277
  73. package/docs/docs/stage-05-business.md +0 -151
  74. package/docs/docs/stage-06-personal.md +0 -203
  75. package/docs/docs/stage-07-query.md +0 -572
  76. package/docs/docs/stage-08-examples.md +0 -184
  77. package/docs/docs/treasury.md +0 -1149
  78. package/docs/docs/wowok_buildin_info.md +0 -740
  79. package/docs/examples/Insurance/Insurance.md +0 -594
  80. package/docs/examples/Insurance/Insurance_TestResults.md +0 -481
  81. package/docs/examples/Insurance/insurance_complete_guard_v1.json +0 -50
  82. package/docs/examples/MyShop/MyShop.md +0 -1353
  83. package/docs/examples/MyShop/MyShop_TestResults.md +0 -1003
  84. package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +0 -1898
  85. package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
  86. package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
  87. package/docs/examples/MyShop_Advanced/machine_nodes.json +0 -222
  88. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +0 -776
  89. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
  90. package/docs/examples/Travel/Travel.md +0 -1157
  91. package/docs/examples/Travel/Travel_TestResults.md +0 -743
  92. package/docs/examples/Travel/calc-weather-timestamps.js +0 -8
  93. package/docs/examples/Travel/travel_machine_v2_export.json +0 -104
  94. package/docs/examples/Travel/weather_check_guard_v1.json +0 -51
  95. package/docs/skills/WOWOK.md +0 -650
  96. package/docs/skills/onchain_operations/_common.md +0 -406
  97. package/docs/skills/onchain_operations/_index.md +0 -196
  98. package/docs/skills/onchain_operations/allocation.md +0 -28
  99. package/docs/skills/onchain_operations/arbitration.md +0 -106
  100. package/docs/skills/onchain_operations/contact.md +0 -40
  101. package/docs/skills/onchain_operations/demand.md +0 -53
  102. package/docs/skills/onchain_operations/gen_passport.md +0 -23
  103. package/docs/skills/onchain_operations/guard.md +0 -56
  104. package/docs/skills/onchain_operations/machine.md +0 -89
  105. package/docs/skills/onchain_operations/order.md +0 -56
  106. package/docs/skills/onchain_operations/payment.md +0 -24
  107. package/docs/skills/onchain_operations/permission.md +0 -68
  108. package/docs/skills/onchain_operations/personal.md +0 -58
  109. package/docs/skills/onchain_operations/progress.md +0 -38
  110. package/docs/skills/onchain_operations/repository.md +0 -70
  111. package/docs/skills/onchain_operations/reward.md +0 -38
  112. package/docs/skills/onchain_operations/service.md +0 -78
  113. package/docs/skills/onchain_operations/treasury.md +0 -68
  114. package/docs/skills/schema-account_operation.md +0 -402
  115. package/docs/skills/schema-guard2file.md +0 -153
  116. package/docs/skills/schema-local_info_operation.md +0 -160
  117. package/docs/skills/schema-local_mark_operation.md +0 -148
  118. package/docs/skills/schema-machineNode2file.md +0 -155
  119. package/docs/skills/schema-messenger_operation.md +0 -547
  120. package/docs/skills/schema-onchain_events.md +0 -201
  121. package/docs/skills/schema-onchain_table_data.md +0 -334
  122. package/docs/skills/schema-query_toolkit.md +0 -395
  123. package/docs/skills/schema-wip_file.md +0 -240
  124. package/docs/skills/schema-wowok_buildin_info.md +0 -296
  125. package/docs/wip-examples/three_body.html +0 -57
  126. package/docs/wip-examples/three_body.wip +0 -30
@@ -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
+ }