@wowok/agent-mcp 2.2.8 → 2.2.13

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 (123) hide show
  1. package/README.md +5 -5
  2. package/dist/docs/index.d.ts +3 -0
  3. package/dist/docs/index.js +2 -0
  4. package/dist/docs/loader.d.ts +12 -0
  5. package/dist/docs/loader.js +177 -0
  6. package/dist/docs/search.d.ts +17 -0
  7. package/dist/docs/search.js +325 -0
  8. package/dist/docs/types.d.ts +55 -0
  9. package/dist/docs/types.js +1 -0
  10. package/dist/index.d.ts +400 -388
  11. package/dist/index.js +146 -39
  12. package/dist/schema/call/allocation.d.ts +23 -23
  13. package/dist/schema/call/arbitration.d.ts +23 -23
  14. package/dist/schema/call/base.d.ts +72 -72
  15. package/dist/schema/call/base.js +1 -1
  16. package/dist/schema/call/contact.d.ts +23 -23
  17. package/dist/schema/call/demand.d.ts +23 -23
  18. package/dist/schema/call/guard.d.ts +45 -45
  19. package/dist/schema/call/handler.d.ts +1 -1
  20. package/dist/schema/call/handler.js +1 -1
  21. package/dist/schema/call/machine.d.ts +28 -28
  22. package/dist/schema/call/order.d.ts +23 -23
  23. package/dist/schema/call/payment.d.ts +5 -5
  24. package/dist/schema/call/permission.d.ts +23 -23
  25. package/dist/schema/call/personal.d.ts +31 -31
  26. package/dist/schema/call/progress.d.ts +23 -23
  27. package/dist/schema/call/proof.d.ts +10 -10
  28. package/dist/schema/call/repository.d.ts +49 -49
  29. package/dist/schema/call/reward.d.ts +23 -23
  30. package/dist/schema/call/service.d.ts +38 -38
  31. package/dist/schema/call/treasury.d.ts +23 -23
  32. package/dist/schema/common/index.d.ts +1 -1
  33. package/dist/schema/common/index.js +1 -1
  34. package/dist/schema/local/index.d.ts +63 -63
  35. package/dist/schema/messenger/index.d.ts +3 -3
  36. package/dist/schema/query/index.d.ts +1446 -1446
  37. package/dist/schema/query/index.js +2 -2
  38. package/dist/schema/utils/guard-query-utils.d.ts +1 -1
  39. package/dist/schema/utils/guard-query-utils.js +1 -1
  40. package/dist/schema/utils/permission-index-utils.js +1 -1
  41. package/docs/README.md +249 -0
  42. package/docs/WIP.md +388 -0
  43. package/docs/WTS.md +536 -0
  44. package/docs/docs/account.md +914 -0
  45. package/docs/docs/allocation.md +635 -0
  46. package/docs/docs/arbitration.md +1804 -0
  47. package/docs/docs/arbitration_state_machine.md +270 -0
  48. package/docs/docs/contact.md +709 -0
  49. package/docs/docs/demand.md +948 -0
  50. package/docs/docs/guard.md +1465 -0
  51. package/docs/docs/localinfo.md +432 -0
  52. package/docs/docs/localmark.md +583 -0
  53. package/docs/docs/machine.md +2490 -0
  54. package/docs/docs/messenger.md +2098 -0
  55. package/docs/docs/onchain_events.md +267 -0
  56. package/docs/docs/order.md +1001 -0
  57. package/docs/docs/payment.md +512 -0
  58. package/docs/docs/permission.md +1438 -0
  59. package/docs/docs/personal.md +742 -0
  60. package/docs/docs/progress.md +1748 -0
  61. package/docs/docs/query.md +467 -0
  62. package/docs/docs/repository.md +1043 -0
  63. package/docs/docs/reward.md +833 -0
  64. package/docs/docs/service.md +2130 -0
  65. package/docs/docs/stage-01-introduction.md +243 -0
  66. package/docs/docs/stage-02-trust.md +302 -0
  67. package/docs/docs/stage-03-collaboration.md +337 -0
  68. package/docs/docs/stage-04-transaction.md +277 -0
  69. package/docs/docs/stage-05-business.md +151 -0
  70. package/docs/docs/stage-06-personal.md +203 -0
  71. package/docs/docs/stage-07-query.md +572 -0
  72. package/docs/docs/stage-08-examples.md +184 -0
  73. package/docs/docs/treasury.md +1149 -0
  74. package/docs/docs/wowok_buildin_info.md +740 -0
  75. package/docs/examples/Insurance/Insurance.md +594 -0
  76. package/docs/examples/Insurance/Insurance_TestResults.md +481 -0
  77. package/docs/examples/Insurance/insurance_complete_guard_v1.json +50 -0
  78. package/docs/examples/MyShop/MyShop.md +1353 -0
  79. package/docs/examples/MyShop/MyShop_TestResults.md +1003 -0
  80. package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +1898 -0
  81. package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +1297 -0
  82. package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +743 -0
  83. package/docs/examples/MyShop_Advanced/machine_nodes.json +222 -0
  84. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +776 -0
  85. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +599 -0
  86. package/docs/examples/Travel/Travel.md +1157 -0
  87. package/docs/examples/Travel/Travel_TestResults.md +743 -0
  88. package/docs/examples/Travel/calc-weather-timestamps.js +8 -0
  89. package/docs/examples/Travel/travel_machine_v2_export.json +104 -0
  90. package/docs/examples/Travel/weather_check_guard_v1.json +51 -0
  91. package/docs/skills/WOWOK.md +650 -0
  92. package/docs/skills/onchain_operations/_common.md +406 -0
  93. package/docs/skills/onchain_operations/_index.md +196 -0
  94. package/docs/skills/onchain_operations/allocation.md +28 -0
  95. package/docs/skills/onchain_operations/arbitration.md +106 -0
  96. package/docs/skills/onchain_operations/contact.md +40 -0
  97. package/docs/skills/onchain_operations/demand.md +53 -0
  98. package/docs/skills/onchain_operations/gen_passport.md +23 -0
  99. package/docs/skills/onchain_operations/guard.md +56 -0
  100. package/docs/skills/onchain_operations/machine.md +89 -0
  101. package/docs/skills/onchain_operations/order.md +56 -0
  102. package/docs/skills/onchain_operations/payment.md +24 -0
  103. package/docs/skills/onchain_operations/permission.md +68 -0
  104. package/docs/skills/onchain_operations/personal.md +58 -0
  105. package/docs/skills/onchain_operations/progress.md +38 -0
  106. package/docs/skills/onchain_operations/repository.md +70 -0
  107. package/docs/skills/onchain_operations/reward.md +38 -0
  108. package/docs/skills/onchain_operations/service.md +78 -0
  109. package/docs/skills/onchain_operations/treasury.md +68 -0
  110. package/docs/skills/schema-account_operation.md +402 -0
  111. package/docs/skills/schema-guard2file.md +153 -0
  112. package/docs/skills/schema-local_info_operation.md +160 -0
  113. package/docs/skills/schema-local_mark_operation.md +148 -0
  114. package/docs/skills/schema-machineNode2file.md +155 -0
  115. package/docs/skills/schema-messenger_operation.md +547 -0
  116. package/docs/skills/schema-onchain_events.md +201 -0
  117. package/docs/skills/schema-onchain_table_data.md +334 -0
  118. package/docs/skills/schema-query_toolkit.md +395 -0
  119. package/docs/skills/schema-wip_file.md +240 -0
  120. package/docs/skills/schema-wowok_buildin_info.md +296 -0
  121. package/docs/wip-examples/three_body.html +57 -0
  122. package/docs/wip-examples/three_body.wip +30 -0
  123. package/package.json +3 -2
@@ -0,0 +1,267 @@
1
+ # On-chain Events Component (📅 Watch On-chain Events)
2
+
3
+ ---
4
+
5
+ ## Component Overview
6
+
7
+ The On-chain Events component is used to watch and query on-chain WOWOK events by type. Supports arbitration events, new order events, progress events, demand presentation events, demand feedback events, and new entity registration events. Use pagination cursor for fetching large result sets.
8
+
9
+ ---
10
+
11
+ ## Function List
12
+
13
+ | Function Name | Purpose | Usage Scenario | Significance |
14
+ |---------------|---------|----------------|-------------|
15
+ | **Watch Arbitration Events** | Monitor dispute resolution events | Track arbitration status changes | Get real-time dispute resolution updates |
16
+ | **Watch New Order Events** | Monitor new order creation | Track when customers place orders | Stay informed about new business |
17
+ | **Watch Progress Events** | Monitor workflow progress changes | Track order processing stages | Get real-time workflow updates |
18
+ | **Watch Demand Present Events** | Monitor demand presentation submissions | Track when presenters submit demands | Stay informed about new submissions |
19
+ | **Watch Demand Feedback Events** | Monitor demand feedback | Track responses to presented demands | Stay informed about demand outcomes |
20
+ | **Watch New Entity Events** | Monitor new entity registrations | Track new user/entity sign-ups | Stay informed about platform growth |
21
+
22
+ ---
23
+
24
+ ## Complete Tool Call Structure
25
+
26
+ On-chain events query uses the following top-level structure:
27
+
28
+ ```json
29
+ {
30
+ "type": "EventType",
31
+ // optional fields
32
+ }
33
+ ```
34
+
35
+ ---
36
+
37
+ ## Schema Tree
38
+
39
+ ```
40
+ onchain_events (On-chain Events Operations)
41
+ ├── type (required, EventType)
42
+ │ ├── "ArbEvent" (Arbitration Events)
43
+ │ ├── "NewOrderEvent" (New Order Events)
44
+ │ ├── "ProgressEvent" (Progress Events)
45
+ │ ├── "DemandPresentEvent" (Demand Presentation Events)
46
+ │ ├── "DemandFeedbackEvent" (Demand Feedback Events)
47
+ │ ├── "NewEntityEvent" (New Entity Events)
48
+ │ └── (arbitrary string) - Any other Move event type string (e.g., '0x2::coin::CoinEvent')
49
+ ├── cursor (optional, EventCursor)
50
+ │ ├── eventSeq (required, string)
51
+ │ └── txDigest (required, string)
52
+ ├── limit (optional, number)
53
+ ├── order (optional, "ascending"/"descending")
54
+ ├── no_cache (optional, boolean)
55
+ └── network (optional, "localnet"/"testnet")
56
+ ```
57
+
58
+ ---
59
+
60
+ ## Example 1: Watch Arbitration Events
61
+
62
+ ### Feature Description
63
+
64
+ Monitor arbitration events to track dispute resolution status changes.
65
+
66
+ ### Examples
67
+
68
+ #### Example 1.1: Query Latest Arbitration Events
69
+
70
+ **Prompt**: View the most recent arbitration events, sorted in descending order.
71
+
72
+ ```json
73
+ {
74
+ "type": "ArbEvent",
75
+ "order": "descending"
76
+ }
77
+ ```
78
+
79
+ ---
80
+
81
+ #### Example 1.2: Query with Limit and Pagination
82
+
83
+ **Prompt**: Get 20 arbitration events, using pagination cursor from previous query.
84
+
85
+ ```json
86
+ {
87
+ "type": "ArbEvent",
88
+ "cursor": {
89
+ "eventSeq": "12345",
90
+ "txDigest": "0xabc123...def456"
91
+ },
92
+ "limit": 20
93
+ }
94
+ ```
95
+
96
+ ---
97
+
98
+ ## Example 2: Watch New Order Events
99
+
100
+ ### Feature Description
101
+
102
+ Monitor new order creation events to stay informed about new customer purchases.
103
+
104
+ ### Examples
105
+
106
+ #### Example 2.1: Query Newest Orders First
107
+
108
+ **Prompt**: View new order events, most recent first.
109
+
110
+ ```json
111
+ {
112
+ "type": "NewOrderEvent",
113
+ "order": "descending"
114
+ }
115
+ ```
116
+
117
+ ---
118
+
119
+ #### Example 2.2: Bypass Cache for Fresh Data
120
+
121
+ **Prompt**: Get fresh order events directly from the blockchain, skipping cache.
122
+
123
+ ```json
124
+ {
125
+ "type": "NewOrderEvent",
126
+ "no_cache": true
127
+ }
128
+ ```
129
+
130
+ ---
131
+
132
+ ## Example 3: Watch Progress Events
133
+
134
+ ### Feature Description
135
+
136
+ Monitor progress events to track order and workflow processing stages.
137
+
138
+ ### Examples
139
+
140
+ #### Example 3.1: Query Progress Updates
141
+
142
+ **Prompt**: View progress events in chronological order.
143
+
144
+ ```json
145
+ {
146
+ "type": "ProgressEvent",
147
+ "order": "ascending"
148
+ }
149
+ ```
150
+
151
+ ---
152
+
153
+ #### Example 3.2: Query Specific Network
154
+
155
+ **Prompt**: View progress events on the testnet network.
156
+
157
+ ```json
158
+ {
159
+ "type": "ProgressEvent",
160
+ "network": "testnet"
161
+ }
162
+ ```
163
+
164
+ ---
165
+
166
+ ## Example 4: Watch Demand Present Events
167
+
168
+ ### Feature Description
169
+
170
+ Monitor demand presentation events to track when presenters submit their solutions.
171
+
172
+ ### Examples
173
+
174
+ #### Example 4.1: Query Recent Presentations
175
+
176
+ **Prompt**: View the 50 most recent demand presentation events.
177
+
178
+ ```json
179
+ {
180
+ "type": "DemandPresentEvent",
181
+ "limit": 50,
182
+ "order": "descending"
183
+ }
184
+ ```
185
+
186
+ ---
187
+
188
+ ## Example 5: Watch Demand Feedback Events
189
+
190
+ ### Feature Description
191
+
192
+ Monitor demand feedback events to track responses to presented demands.
193
+
194
+ ### Examples
195
+
196
+ #### Example 5.1: Query Feedback Events
197
+
198
+ **Prompt**: View demand feedback events, sorted from oldest to newest.
199
+
200
+ ```json
201
+ {
202
+ "type": "DemandFeedbackEvent",
203
+ "order": "ascending"
204
+ }
205
+ ```
206
+
207
+ ---
208
+
209
+ ## Example 6: Watch New Entity Events
210
+
211
+ ### Feature Description
212
+
213
+ Monitor new entity registration events to track platform growth and new sign-ups.
214
+
215
+ ### Examples
216
+
217
+ #### Example 6.1: Query New Entity Registrations
218
+
219
+ **Prompt**: View new entity registration events, most recent first, 100 per page.
220
+
221
+ ```json
222
+ {
223
+ "type": "NewEntityEvent",
224
+ "order": "descending",
225
+ "limit": 100
226
+ }
227
+ ```
228
+
229
+ ---
230
+
231
+ #### Example 6.2: Pagination with Cursor
232
+
233
+ **Prompt**: Get next page of entity events using cursor from previous result.
234
+
235
+ ```json
236
+ {
237
+ "type": "NewEntityEvent",
238
+ "cursor": {
239
+ "eventSeq": "98765",
240
+ "txDigest": "0x123abc...456def"
241
+ },
242
+ "limit": 100
243
+ }
244
+ ```
245
+
246
+ ---
247
+
248
+ ## Important Notes
249
+
250
+ ⚠️ **Use pagination for large result sets** - events can be numerous, always use cursor for paging.
251
+
252
+ ⚠️ **Events are immutable** - once emitted, on-chain events cannot be modified or deleted.
253
+
254
+ ⚠️ **Order matters** - use "descending" for newest events, "ascending" for chronological order.
255
+
256
+ ⚠️ **Network selection** - specify network if you need events from a specific blockchain environment.
257
+
258
+ ---
259
+
260
+ ## Related Components
261
+
262
+ | Component | Description |
263
+ |-----------|-------------|
264
+ | **[Arbitration](arbitration.md)** | Dispute resolution - arbitration events come from arbitration objects |
265
+ | **[Order](order.md)** | Order management - new order events track order creation |
266
+ | **[Progress](progress.md)** | Order progress - progress events track workflow state changes |
267
+ | **[Demand](demand.md)** | Seeking assistance - demand events track demand lifecycle |