@wowok/agent-mcp 2.2.11 → 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 (93) hide show
  1. package/dist/docs/index.d.ts +3 -0
  2. package/dist/docs/index.js +2 -0
  3. package/dist/docs/loader.d.ts +12 -0
  4. package/dist/docs/loader.js +177 -0
  5. package/dist/docs/search.d.ts +17 -0
  6. package/dist/docs/search.js +325 -0
  7. package/dist/docs/types.d.ts +55 -0
  8. package/dist/docs/types.js +1 -0
  9. package/dist/index.d.ts +12 -0
  10. package/dist/index.js +146 -39
  11. package/docs/README.md +249 -0
  12. package/docs/WIP.md +388 -0
  13. package/docs/WTS.md +536 -0
  14. package/docs/docs/account.md +914 -0
  15. package/docs/docs/allocation.md +635 -0
  16. package/docs/docs/arbitration.md +1804 -0
  17. package/docs/docs/arbitration_state_machine.md +270 -0
  18. package/docs/docs/contact.md +709 -0
  19. package/docs/docs/demand.md +948 -0
  20. package/docs/docs/guard.md +1465 -0
  21. package/docs/docs/localinfo.md +432 -0
  22. package/docs/docs/localmark.md +583 -0
  23. package/docs/docs/machine.md +2490 -0
  24. package/docs/docs/messenger.md +2098 -0
  25. package/docs/docs/onchain_events.md +267 -0
  26. package/docs/docs/order.md +1001 -0
  27. package/docs/docs/payment.md +512 -0
  28. package/docs/docs/permission.md +1438 -0
  29. package/docs/docs/personal.md +742 -0
  30. package/docs/docs/progress.md +1748 -0
  31. package/docs/docs/query.md +467 -0
  32. package/docs/docs/repository.md +1043 -0
  33. package/docs/docs/reward.md +833 -0
  34. package/docs/docs/service.md +2130 -0
  35. package/docs/docs/stage-01-introduction.md +243 -0
  36. package/docs/docs/stage-02-trust.md +302 -0
  37. package/docs/docs/stage-03-collaboration.md +337 -0
  38. package/docs/docs/stage-04-transaction.md +277 -0
  39. package/docs/docs/stage-05-business.md +151 -0
  40. package/docs/docs/stage-06-personal.md +203 -0
  41. package/docs/docs/stage-07-query.md +572 -0
  42. package/docs/docs/stage-08-examples.md +184 -0
  43. package/docs/docs/treasury.md +1149 -0
  44. package/docs/docs/wowok_buildin_info.md +740 -0
  45. package/docs/examples/Insurance/Insurance.md +594 -0
  46. package/docs/examples/Insurance/Insurance_TestResults.md +481 -0
  47. package/docs/examples/Insurance/insurance_complete_guard_v1.json +50 -0
  48. package/docs/examples/MyShop/MyShop.md +1353 -0
  49. package/docs/examples/MyShop/MyShop_TestResults.md +1003 -0
  50. package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +1898 -0
  51. package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +1297 -0
  52. package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +743 -0
  53. package/docs/examples/MyShop_Advanced/machine_nodes.json +222 -0
  54. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +776 -0
  55. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +599 -0
  56. package/docs/examples/Travel/Travel.md +1157 -0
  57. package/docs/examples/Travel/Travel_TestResults.md +743 -0
  58. package/docs/examples/Travel/calc-weather-timestamps.js +8 -0
  59. package/docs/examples/Travel/travel_machine_v2_export.json +104 -0
  60. package/docs/examples/Travel/weather_check_guard_v1.json +51 -0
  61. package/docs/skills/WOWOK.md +650 -0
  62. package/docs/skills/onchain_operations/_common.md +406 -0
  63. package/docs/skills/onchain_operations/_index.md +196 -0
  64. package/docs/skills/onchain_operations/allocation.md +28 -0
  65. package/docs/skills/onchain_operations/arbitration.md +106 -0
  66. package/docs/skills/onchain_operations/contact.md +40 -0
  67. package/docs/skills/onchain_operations/demand.md +53 -0
  68. package/docs/skills/onchain_operations/gen_passport.md +23 -0
  69. package/docs/skills/onchain_operations/guard.md +56 -0
  70. package/docs/skills/onchain_operations/machine.md +89 -0
  71. package/docs/skills/onchain_operations/order.md +56 -0
  72. package/docs/skills/onchain_operations/payment.md +24 -0
  73. package/docs/skills/onchain_operations/permission.md +68 -0
  74. package/docs/skills/onchain_operations/personal.md +58 -0
  75. package/docs/skills/onchain_operations/progress.md +38 -0
  76. package/docs/skills/onchain_operations/repository.md +70 -0
  77. package/docs/skills/onchain_operations/reward.md +38 -0
  78. package/docs/skills/onchain_operations/service.md +78 -0
  79. package/docs/skills/onchain_operations/treasury.md +68 -0
  80. package/docs/skills/schema-account_operation.md +402 -0
  81. package/docs/skills/schema-guard2file.md +153 -0
  82. package/docs/skills/schema-local_info_operation.md +160 -0
  83. package/docs/skills/schema-local_mark_operation.md +148 -0
  84. package/docs/skills/schema-machineNode2file.md +155 -0
  85. package/docs/skills/schema-messenger_operation.md +547 -0
  86. package/docs/skills/schema-onchain_events.md +201 -0
  87. package/docs/skills/schema-onchain_table_data.md +334 -0
  88. package/docs/skills/schema-query_toolkit.md +395 -0
  89. package/docs/skills/schema-wip_file.md +240 -0
  90. package/docs/skills/schema-wowok_buildin_info.md +296 -0
  91. package/docs/wip-examples/three_body.html +57 -0
  92. package/docs/wip-examples/three_body.wip +30 -0
  93. package/package.json +3 -2
@@ -0,0 +1,583 @@
1
+ # LocalMark Component (📇 Local Marking)
2
+
3
+ ---
4
+
5
+ ## Component Overview
6
+
7
+ The LocalMark component manages local address book entries, storing ID names and tags exclusively on the local device. Users can use names to reference and operate on user addresses and object IDs.
8
+
9
+ > **Note**: Use the `watch_and_query` tool to query all or filtered marks.
10
+
11
+ ---
12
+
13
+ ## Function List
14
+
15
+ | Function Name | Purpose | Usage Scenario | Significance |
16
+ |---------------|---------|----------------|-------------|
17
+ | **Add Marks** | Create local address-book entries | Save frequently used addresses with names/tags | Enables human-readable references for addresses/objects |
18
+ | **Remove Marks** | Delete local marks by name/address | Clean up outdated or incorrect entries | Maintains address book accuracy |
19
+ | **Clear All Marks** | Delete all local marks | Reset address book, privacy protection | Provides bulk cleanup capability |
20
+
21
+ ---
22
+
23
+ ## Schema Tree (4-Level Structure)
24
+
25
+ ```
26
+ local_mark_operation
27
+ ├── add
28
+ │ └── op: "add"
29
+ │ └── data (array)
30
+ │ └── [mark_param]
31
+ │ ├── name (object, optional)
32
+ │ │ ├── value (string)
33
+ │ │ └── replaceExistName (boolean, optional)
34
+ │ ├── address (string)
35
+ │ └── tags (array of strings, optional)
36
+ ├── remove
37
+ │ └── op: "remove"
38
+ │ └── names (array of strings)
39
+ └── clear
40
+ └── op: "clear"
41
+ ```
42
+
43
+ ---
44
+
45
+ ## Constraint Constants
46
+
47
+ | Constant Name | Value | Description |
48
+ |---------------|-------|-------------|
49
+ | `nameMaxLength` | 64 | Maximum mark name length (BCS characters) |
50
+ | `tagMaxLength` | 64 | Maximum tag length (BCS characters) |
51
+ | `tagMaxCount` | 50 | Maximum number of tags per mark |
52
+
53
+ ---
54
+
55
+ ## Sub-function 1: Add Marks (add)
56
+
57
+ ### Function Description
58
+
59
+ Add one or more local marks. Each mark includes name, address, and tags for local identification and classification of accounts or object IDs.
60
+
61
+ ### Parameter Description
62
+
63
+ | Parameter | Type | Required | Description | Constraints |
64
+ |-----------|------|----------|-------------|-------------|
65
+ | `add.op` | string | Yes | Operation type | Fixed value "add" |
66
+ | `add.data` | array | Yes | Mark data array | At least 1 element |
67
+ | `add.data[].name` | object | No | Mark name configuration | - |
68
+ | `add.data[].name.value` | string | No | Mark name | Max 64 BCS characters |
69
+ | `add.data[].name.replaceExistName` | boolean | No | Whether to replace existing name | true=replace; false=error (default) |
70
+ | `add.data[].address` | string | Yes | Account or object address | WowAddress format: 0x + 64 hex characters |
71
+ | `add.data[].tags` | array | No | Tag list | Max 50 tags, each max 64 BCS characters |
72
+
73
+ ### Examples
74
+
75
+ #### Example 1.1: Add Minimal Mark (Address Only)
76
+
77
+ **Prompt:** Add a mark for an address without a name or tags.
78
+
79
+ ```json
80
+ {
81
+ "add": {
82
+ "op": "add",
83
+ "data": [
84
+ { "address": "0xe639a6382527a57e9213ad08b65f6b6cbd6fcc827356a2ab34f63f42c7c32e82" }
85
+ ]
86
+ }
87
+ }
88
+ ```
89
+
90
+ **Execution Result:**
91
+ ```json
92
+ {
93
+ "add": [
94
+ {
95
+ "address": "0xe639...2e82",
96
+ "createdAt": 1776658023742,
97
+ "updatedAt": 1776658023742
98
+ }
99
+ ]
100
+ }
101
+ ```
102
+
103
+ #### Example 1.2: Add Mark with Name
104
+
105
+ **Prompt:** Add a mark with name "alice" for address. Do not replace existing name if it already exists.
106
+
107
+ ```json
108
+ {
109
+ "add": {
110
+ "op": "add",
111
+ "data": [
112
+ {
113
+ "name": { "value": "alice" },
114
+ "address": "0x531a921e6ec7ea894ee293f94ae03d586b167ed53ff4877599e41522ad92be66"
115
+ }
116
+ ]
117
+ }
118
+ }
119
+ ```
120
+
121
+ **Execution Result:**
122
+ ```json
123
+ {
124
+ "add": [
125
+ {
126
+ "name": "alice",
127
+ "address": "0x531a...be66",
128
+ "createdAt": 1776658030346,
129
+ "updatedAt": 1776658030346
130
+ }
131
+ ]
132
+ }
133
+ ```
134
+
135
+ #### Example 1.3: Add Mark with Tags
136
+
137
+ **Prompt:** Add a mark with tags ["friend", "designer"] for address, without a name.
138
+
139
+ ```json
140
+ {
141
+ "add": {
142
+ "op": "add",
143
+ "data": [
144
+ {
145
+ "address": "0x24008bde7867f17fc210785b5195f5de8ac605cc9d5269eaebb99002944ae3b3",
146
+ "tags": ["friend", "designer"]
147
+ }
148
+ ]
149
+ }
150
+ }
151
+ ```
152
+
153
+ **Execution Result:**
154
+ ```json
155
+ {
156
+ "add": [
157
+ {
158
+ "address": "0x2400...e3b3",
159
+ "tags": ["friend", "designer"],
160
+ "createdAt": 1776658033799,
161
+ "updatedAt": 1776658033799
162
+ }
163
+ ]
164
+ }
165
+ ```
166
+
167
+ #### Example 1.4: Add Complete Mark (Name + Address + Tags)
168
+
169
+ **Prompt:** Add a complete mark with name "bob", address, and tags ["friend", "designer", "colleague"].
170
+
171
+ ```json
172
+ {
173
+ "add": {
174
+ "op": "add",
175
+ "data": [
176
+ {
177
+ "name": { "value": "bob" },
178
+ "address": "0x2bce0d2c3060e426ed93f65d0a7afbc7a0653e2813b972c088faaab9ce504937",
179
+ "tags": ["friend", "designer", "colleague"]
180
+ }
181
+ ]
182
+ }
183
+ }
184
+ ```
185
+
186
+ **Execution Result:**
187
+ ```json
188
+ {
189
+ "add": [
190
+ {
191
+ "name": "bob",
192
+ "address": "0x2bce...4937",
193
+ "tags": ["friend", "designer", "colleague"],
194
+ "createdAt": 1776658036962,
195
+ "updatedAt": 1776658036962
196
+ }
197
+ ]
198
+ }
199
+ ```
200
+
201
+ #### Example 1.5: Add Mark and Replace Existing Name
202
+
203
+ **Prompt:** Add a mark with name "alice", address, and tags ["vip"]. Replace the existing name if it already exists.
204
+
205
+ ```json
206
+ {
207
+ "add": {
208
+ "op": "add",
209
+ "data": [
210
+ {
211
+ "name": { "value": "alice", "replaceExistName": true },
212
+ "address": "0x03174f2f61766b2135c9822039fddd1ec0f5e11661e0805f1618fca08288b606",
213
+ "tags": ["vip"]
214
+ }
215
+ ]
216
+ }
217
+ }
218
+ ```
219
+
220
+ **Execution Result:**
221
+ ```json
222
+ {
223
+ "add": [
224
+ {
225
+ "name": "alice",
226
+ "address": "0x0317...b606",
227
+ "tags": ["vip"],
228
+ "createdAt": 1776658040182,
229
+ "updatedAt": 1776658040182
230
+ }
231
+ ]
232
+ }
233
+ ```
234
+
235
+ #### Example 1.6: Batch Add Multiple Marks
236
+
237
+ **Prompt:** Add three marks in one call: 1) name "charlie" with tags ["friend"], 2) name "dave" with tags ["colleague", "developer"], 3) address-only without name or tags.
238
+
239
+ ```json
240
+ {
241
+ "add": {
242
+ "op": "add",
243
+ "data": [
244
+ {
245
+ "name": { "value": "charlie" },
246
+ "address": "0x499773f65060e35c1b8acee9452083b2ee078155f02c39b30ec12ab4692bbb7a",
247
+ "tags": ["friend"]
248
+ },
249
+ {
250
+ "name": { "value": "dave" },
251
+ "address": "0xef686f7f13ce876f498b4fb293046620bf3754cc82541d7b06909ec53b479b3d",
252
+ "tags": ["colleague", "developer"]
253
+ },
254
+ {
255
+ "address": "0xa5396433f8ea8802dc338d9eba91da916bfeb1eb8ce76adc44e3a32a5635063f"
256
+ }
257
+ ]
258
+ }
259
+ }
260
+ ```
261
+
262
+ **Execution Result:**
263
+ ```json
264
+ {
265
+ "add": [
266
+ {
267
+ "name": "charlie",
268
+ "address": "0x4997...bb7a",
269
+ "tags": ["friend"],
270
+ "createdAt": 1776658044403,
271
+ "updatedAt": 1776658044403
272
+ },
273
+ {
274
+ "name": "dave",
275
+ "address": "0xef68...9b3d",
276
+ "tags": ["colleague", "developer"],
277
+ "createdAt": 1776658044403,
278
+ "updatedAt": 1776658044403
279
+ },
280
+ {
281
+ "address": "0xa539...063f",
282
+ "createdAt": 1776658044403,
283
+ "updatedAt": 1776658044403
284
+ }
285
+ ]
286
+ }
287
+ ```
288
+
289
+ #### Example 1.7: Add Mark Without Name but With Tags
290
+
291
+ **Prompt:** Add a mark for address with tags ["contract", "important"], but without a name.
292
+
293
+ ```json
294
+ {
295
+ "add": {
296
+ "op": "add",
297
+ "data": [
298
+ {
299
+ "address": "0xfe9262f13c663112a17b6ad17252e4fd1aa75d4c4e8ea3d805e20ff63eb1aa35",
300
+ "tags": ["contract", "important"]
301
+ }
302
+ ]
303
+ }
304
+ }
305
+ ```
306
+
307
+ **Execution Result:**
308
+ ```json
309
+ {
310
+ "add": [
311
+ {
312
+ "address": "0xfe92...aa35",
313
+ "tags": ["contract", "important"],
314
+ "createdAt": 1776658047449,
315
+ "updatedAt": 1776658047449
316
+ }
317
+ ]
318
+ }
319
+ ```
320
+
321
+ ---
322
+
323
+ ## Sub-function 2: Remove Marks (remove)
324
+
325
+ ### Function Description
326
+
327
+ Remove one or more local marks by name or address.
328
+
329
+ ### Parameter Description
330
+
331
+ | Parameter | Type | Required | Description | Constraints |
332
+ |-----------|------|----------|-------------|-------------|
333
+ | `remove.op` | string | Yes | Operation type | Fixed value "remove" |
334
+ | `remove.names` | array | Yes | Name or address array to remove | At least 1 element, string type |
335
+
336
+ ### Examples
337
+
338
+ #### Example 2.1: Remove Single Mark by Name
339
+
340
+ **Prompt:** Remove the mark named "alice".
341
+
342
+ ```json
343
+ {
344
+ "remove": {
345
+ "op": "remove",
346
+ "names": ["alice"]
347
+ }
348
+ }
349
+ ```
350
+
351
+ **Execution Result:**
352
+ ```json
353
+ {
354
+ "remove": [
355
+ {
356
+ "name": "alice",
357
+ "address": "0x0317...b606",
358
+ "tags": ["vip"],
359
+ "createdAt": 1776658040182,
360
+ "updatedAt": 1776658040182
361
+ }
362
+ ]
363
+ }
364
+ ```
365
+
366
+ #### Example 2.2: Remove Single Mark by Address
367
+
368
+ **Prompt:** Remove the mark by address.
369
+
370
+ ```json
371
+ {
372
+ "remove": {
373
+ "op": "remove",
374
+ "names": ["0xe639a6382527a57e9213ad08b65f6b6cbd6fcc827356a2ab34f63f42c7c32e82"]
375
+ }
376
+ }
377
+ ```
378
+
379
+ **Execution Result:**
380
+ ```json
381
+ {
382
+ "remove": [
383
+ {
384
+ "address": "0xe639...2e82",
385
+ "createdAt": 1776658023742,
386
+ "updatedAt": 1776658023742
387
+ }
388
+ ]
389
+ }
390
+ ```
391
+
392
+ #### Example 2.3: Batch Remove Multiple Marks (Mixed Names and Addresses)
393
+
394
+ **Prompt:** Remove three marks in one call: "bob", address, and "charlie".
395
+
396
+ ```json
397
+ {
398
+ "remove": {
399
+ "op": "remove",
400
+ "names": [
401
+ "bob",
402
+ "0x24008bde7867f17fc210785b5195f5de8ac605cc9d5269eaebb99002944ae3b3",
403
+ "charlie"
404
+ ]
405
+ }
406
+ }
407
+ ```
408
+
409
+ **Execution Result:**
410
+ ```json
411
+ {
412
+ "remove": [
413
+ {
414
+ "address": "0x2400...e3b3",
415
+ "tags": ["friend", "designer"],
416
+ "createdAt": 1776658033799,
417
+ "updatedAt": 1776658033799
418
+ },
419
+ {
420
+ "name": "bob",
421
+ "address": "0x2bce...4937",
422
+ "tags": ["friend", "designer", "colleague"],
423
+ "createdAt": 1776658036962,
424
+ "updatedAt": 1776658036962
425
+ },
426
+ {
427
+ "name": "charlie",
428
+ "address": "0x4997...bb7a",
429
+ "tags": ["friend"],
430
+ "createdAt": 1776658044403,
431
+ "updatedAt": 1776658044403
432
+ }
433
+ ]
434
+ }
435
+ ```
436
+
437
+ #### Example 2.4: Batch Remove Multiple Names
438
+
439
+ **Prompt:** Remove the mark by name "dave".
440
+
441
+ ```json
442
+ {
443
+ "remove": {
444
+ "op": "remove",
445
+ "names": ["dave"]
446
+ }
447
+ }
448
+ ```
449
+
450
+ **Execution Result:**
451
+ ```json
452
+ {
453
+ "remove": [
454
+ {
455
+ "name": "dave",
456
+ "address": "0xef68...9b3d",
457
+ "tags": ["colleague", "developer"],
458
+ "createdAt": 1776658044403,
459
+ "updatedAt": 1776658044403
460
+ }
461
+ ]
462
+ }
463
+ ```
464
+
465
+ #### Example 2.5: Batch Remove Multiple Addresses
466
+
467
+ **Prompt:** Remove two marks by their addresses.
468
+
469
+ ```json
470
+ {
471
+ "remove": {
472
+ "op": "remove",
473
+ "names": [
474
+ "0xa5396433f8ea8802dc338d9eba91da916bfeb1eb8ce76adc44e3a32a5635063f",
475
+ "0xfe9262f13c663112a17b6ad17252e4fd1aa75d4c4e8ea3d805e20ff63eb1aa35"
476
+ ]
477
+ }
478
+ }
479
+ ```
480
+
481
+ **Execution Result:**
482
+ ```json
483
+ {
484
+ "remove": [
485
+ {
486
+ "address": "0xa539...063f",
487
+ "createdAt": 1776658044403,
488
+ "updatedAt": 1776658044403
489
+ },
490
+ {
491
+ "address": "0xfe92...aa35",
492
+ "tags": ["contract", "important"],
493
+ "createdAt": 1776658047449,
494
+ "updatedAt": 1776658047449
495
+ }
496
+ ]
497
+ }
498
+ ```
499
+
500
+ ---
501
+
502
+ ## Sub-function 3: Clear All Marks (clear)
503
+
504
+ ### Function Description
505
+
506
+ Remove all local marks. This operation is irreversible, use with caution.
507
+
508
+ ### Parameter Description
509
+
510
+ | Parameter | Type | Required | Description | Constraints |
511
+ |-----------|------|----------|-------------|-------------|
512
+ | `clear.op` | string | Yes | Operation type | Fixed value "clear" |
513
+
514
+ ### Example
515
+
516
+ #### Example 3.1: Clear All Marks
517
+
518
+ **Prompt:** Remove all local marks. This operation cannot be undone.
519
+
520
+ ```json
521
+ {
522
+ "clear": {
523
+ "op": "clear"
524
+ }
525
+ }
526
+ ```
527
+
528
+ **Execution Result:**
529
+ ```json
530
+ {
531
+ "clear": true
532
+ }
533
+ ```
534
+
535
+ ---
536
+
537
+ ## Query Local Mark List
538
+
539
+ ```json
540
+ {
541
+ "query_type": "local_mark_list"
542
+ }
543
+ ```
544
+
545
+ ## Query with Filter
546
+
547
+ ```json
548
+ {
549
+ "query_type": "local_mark_list",
550
+ "filter": {
551
+ "tags": ["friend"]
552
+ }
553
+ }
554
+ ```
555
+
556
+ ---
557
+
558
+ ## Best Practices
559
+
560
+ ### 1. Use Meaningful Names
561
+ Use easily recognizable names to mark addresses.
562
+
563
+ ### 2. Use Tags for Classification
564
+ Use tags to classify and filter marks.
565
+
566
+ ### 3. Don't Include Sensitive Information in Tags
567
+ Tags are for local classification only.
568
+
569
+ ---
570
+
571
+ ## Important Notes
572
+
573
+ ⚠️ **Only stored on local device!**
574
+
575
+ ---
576
+
577
+ ## Related Components
578
+
579
+ | Component | Description |
580
+ |-----------|-------------|
581
+ | **[LocalInfo](localinfo.md)** | Private information management |
582
+ | **[Account](account.md)** | Local wallet management |
583
+ | **[Personal](personal.md)** | Personal on-chain portal |