@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
@@ -1,432 +0,0 @@
1
- # LocalInfo Component (📝 Local Information)
2
-
3
- ---
4
-
5
- ## Component Overview
6
-
7
- The LocalInfo component manages local private data, such as delivery addresses, phone numbers, contacts, etc., stored exclusively on the local device.
8
-
9
- > **Note**: Use the `watch_and_query` tool to query all or filtered information.
10
-
11
- ---
12
-
13
- ## Function List
14
-
15
- | Function Name | Purpose | Usage Scenario | Significance |
16
- |---------------|---------|----------------|-------------|
17
- | **Add Information** | Store private data with name/default value | Save delivery addresses, contact info | Secure local storage for sensitive personal data |
18
- | **Remove Information** | Delete specific info entries | Remove outdated addresses/contact details | Maintains data relevance and privacy |
19
- | **Reset Information** | Replace content of existing entries | Update address details, contact info | Allows data updates without recreating entries |
20
- | **Clear All Information** | Delete all local info | Factory reset, data privacy protection | Ensures complete data removal when needed |
21
-
22
- ---
23
-
24
- ## Schema Tree (4-Level Structure)
25
-
26
- ```
27
- local_info_operation
28
- ├── add
29
- │ └── op: "add"
30
- │ └── data (array)
31
- │ └── [info_data]
32
- │ ├── name (string)
33
- │ ├── default (string)
34
- │ ├── contents (array of strings, optional)
35
- │ ├── createdAt (number, optional)
36
- │ └── updatedAt (number, optional)
37
- ├── remove
38
- │ └── op: "remove"
39
- │ └── data (array of strings)
40
- ├── reset
41
- │ └── op: "reset"
42
- │ └── name (string)
43
- │ └── contents (array of strings)
44
- └── clear
45
- └── op: "clear"
46
- ```
47
-
48
- ---
49
-
50
- ## Constraint Constants
51
-
52
- | Constant Name | Value | Description |
53
- |---------------|-------|-------------|
54
- | `nameMaxLength` | 64 | Maximum info name length (BCS characters) |
55
- | `contentMaxLength` | 300 | Maximum content item length (BCS characters) |
56
- | `contentMaxCount` | 50 | Maximum number of content items per info entry |
57
- | `defaultName` | "Address of delivery" | Default info name |
58
-
59
- ---
60
-
61
- ## Sub-function 1: Add Information (add)
62
-
63
- ### Function Description
64
-
65
- Add one or more local info entries. Each info entry includes name, default value, and optional additional content list for storing sensitive personal information like delivery addresses, phone numbers, etc.
66
-
67
- ### Parameter Description
68
-
69
- | Parameter | Type | Required | Description | Constraints |
70
- |-----------|------|----------|-------------|-------------|
71
- | `add.op` | string | Yes | Operation type | Fixed value "add" |
72
- | `add.data` | array | Yes | Info data array | At least 1 element |
73
- | `add.data[].name` | string | Yes | Info entry name | Max 64 BCS characters, unique identifier |
74
- | `add.data[].default` | string | Yes | Primary/default value | Max 300 BCS characters |
75
- | `add.data[].contents` | array | No | Additional content value array | Max 50 items, each max 300 BCS characters |
76
- | `add.data[].createdAt` | number | No | Creation timestamp (ms) | Unix timestamp in milliseconds |
77
- | `add.data[].updatedAt` | number | No | Last modification timestamp (ms) | Unix timestamp in milliseconds |
78
-
79
- ### Examples
80
-
81
- #### Example 1.1: Add Minimal Info (Name + Default Value)
82
-
83
- **Prompt:** Add a simple info entry with name "shipping_address" and default value "123 Main St, New York, NY 10001".
84
-
85
- ```json
86
- {
87
- "add": {
88
- "op": "add",
89
- "data": [
90
- {
91
- "name": "shipping_address",
92
- "default": "123 Main St, New York, NY 10001"
93
- }
94
- ]
95
- }
96
- }
97
- ```
98
-
99
- **Execution Result:**
100
- ```json
101
- {
102
- "success": true
103
- }
104
- ```
105
-
106
- #### Example 1.2: Add Info with Additional Contents
107
-
108
- **Prompt:** Add a shipping address info entry with name "shipping_address", default value "123 Main St, New York, NY 10001", and additional contents ["10001", "Contact: Alice Smith", "Phone: +1-234-567-8900"].
109
-
110
- ```json
111
- {
112
- "add": {
113
- "op": "add",
114
- "data": [
115
- {
116
- "name": "shipping_address",
117
- "default": "123 Main St, New York, NY 10001",
118
- "contents": ["10001", "Contact: Alice Smith", "Phone: +1-234-567-8900"]
119
- }
120
- ]
121
- }
122
- }
123
-
124
- **Execution Result:**
125
- ```json
126
- {
127
- "success": true
128
- }
129
- ```
130
-
131
- #### Example 1.3: Add Phone Number Info
132
-
133
- **Prompt:** Add a phone number info entry with name "phone_number", default value "+1-234-567-8900", and additional contents ["AT&T", "New York Region"].
134
-
135
- ```json
136
- {
137
- "add": {
138
- "op": "add",
139
- "data": [
140
- {
141
- "name": "phone_number",
142
- "default": "+1-234-567-8900",
143
- "contents": ["AT&T", "New York Region"]
144
- }
145
- ]
146
- }
147
- }
148
- ```
149
-
150
- **Execution Result:**
151
- ```json
152
- {
153
- "success": true
154
- }
155
- ```
156
-
157
- #### Example 1.4: Batch Add Multiple Info Entries
158
-
159
- **Prompt:** Add three info entries in one call: 1) home address, 2) work address, 3) emergency contact.
160
-
161
- ```json
162
- {
163
- "add": {
164
- "op": "add",
165
- "data": [
166
- {
167
- "name": "home_address",
168
- "default": "456 Park Ave, Boston, MA 02101",
169
- "contents": ["02101", "Residence"]
170
- },
171
- {
172
- "name": "work_address",
173
- "default": "789 Business Tower, 15th Floor, Chicago, IL",
174
- "contents": ["60601", "Office", "Hours: 9:00-18:00"]
175
- },
176
- {
177
- "name": "emergency_contact",
178
- "default": "Bob Johnson +1-987-654-3210"
179
- }
180
- ]
181
- }
182
- }
183
-
184
- **Execution Result:**
185
- ```json
186
- {
187
- "success": true
188
- }
189
- ```
190
-
191
- #### Example 1.5: Add Contact Info (Multiple Content Items)
192
-
193
- **Prompt:** Add a contact info entry for Alice Smith with name "contact_alice", default value "Alice Smith", and additional contents including email, phone, address, and note.
194
-
195
- ```json
196
- {
197
- "add": {
198
- "op": "add",
199
- "data": [
200
- {
201
- "name": "contact_alice",
202
- "default": "Alice Smith",
203
- "contents": [
204
- "Email: alice.smith@example.com",
205
- "Phone: +1-234-567-8900",
206
- "Address: 123 Main St, New York, NY 10001",
207
- "Note: VIP Customer"
208
- ]
209
- }
210
- ]
211
- }
212
- }
213
-
214
- **Execution Result:**
215
- ```json
216
- {
217
- "success": true
218
- }
219
- ```
220
-
221
- ---
222
-
223
- ## Sub-function 2: Remove Information (remove)
224
-
225
- ### Function Description
226
-
227
- Remove one or more local info entries by name.
228
-
229
- ### Parameter Description
230
-
231
- | Parameter | Type | Required | Description | Constraints |
232
- |-----------|------|----------|-------------|-------------|
233
- | `remove.op` | string | Yes | Operation type | Fixed value "remove" |
234
- | `remove.data` | array | Yes | Info name array to remove | At least 1 element, string type |
235
-
236
- ### Examples
237
-
238
- #### Example 2.1: Remove Single Info Entry
239
-
240
- **Prompt:** Remove the info entry named "shipping_address".
241
-
242
- ```json
243
- {
244
- "remove": {
245
- "op": "remove",
246
- "data": ["shipping_address"]
247
- }
248
- }
249
- ```
250
-
251
- **Execution Result:**
252
- ```json
253
- {
254
- "success": true
255
- }
256
- ```
257
-
258
- #### Example 2.2: Batch Remove Multiple Info Entries
259
-
260
- **Prompt:** Remove two info entries in one call: "home_address" and "phone_number".
261
-
262
- ```json
263
- {
264
- "remove": {
265
- "op": "remove",
266
- "data": ["home_address", "phone_number"]
267
- }
268
- }
269
- ```
270
-
271
- **Execution Result:**
272
- ```json
273
- {
274
- "success": true
275
- }
276
- ```
277
-
278
- ---
279
-
280
- ## Sub-function 3: Reset Information Contents (reset)
281
-
282
- ### Function Description
283
-
284
- Reset the content list of a specified info entry. This completely replaces the existing content list.
285
-
286
- ### Parameter Description
287
-
288
- | Parameter | Type | Required | Description | Constraints |
289
- |-----------|------|----------|-------------|-------------|
290
- | `reset.op` | string | Yes | Operation type | Fixed value "reset" |
291
- | `reset.name` | string | Yes | Info entry name | Name of info to reset |
292
- | `reset.contents` | array | Yes | New content list | String array, replaces existing contents |
293
-
294
- ### Examples
295
-
296
- #### Example 3.1: Reset Info Contents
297
-
298
- **Prompt:** Reset the contents of "work_address" to ["789 Broadway, Los Angeles, CA 90012", "90012", "Contact: Charlie Brown"].
299
-
300
- ```json
301
- {
302
- "reset": {
303
- "op": "reset",
304
- "name": "work_address",
305
- "contents": ["789 Broadway, Los Angeles, CA 90012", "90012", "Contact: Charlie Brown"]
306
- }
307
- }
308
- ```
309
-
310
- **Execution Result:**
311
- ```json
312
- {
313
- "success": true
314
- }
315
- ```
316
-
317
- #### Example 3.2: Clear Info Content List (Keep Name and Default Value)
318
-
319
- **Prompt:** Clear the contents of "emergency_contact", but keep the name and default value. Set the new contents to an empty array.
320
-
321
- ```json
322
- {
323
- "reset": {
324
- "op": "reset",
325
- "name": "emergency_contact",
326
- "contents": []
327
- }
328
- }
329
- ```
330
-
331
- **Execution Result:**
332
- ```json
333
- {
334
- "success": true
335
- }
336
- ```
337
-
338
- #### Example 3.3: Update Contact Information
339
-
340
- **Prompt:** Update the contact information for "contact_alice" with new email, phone, and address.
341
-
342
- ```json
343
- {
344
- "reset": {
345
- "op": "reset",
346
- "name": "contact_alice",
347
- "contents": [
348
- "Email: alice.new@example.com",
349
- "Phone: +1-234-567-9999",
350
- "Address: 456 New St, Boston, MA 02101"
351
- ]
352
- }
353
- }
354
- ```
355
-
356
- **Execution Result:**
357
- ```json
358
- {
359
- "success": true
360
- }
361
- ```
362
-
363
- ---
364
-
365
- ## Sub-function 4: Clear All Information (clear)
366
-
367
- ### Function Description
368
-
369
- Remove all local info entries. This operation is irreversible, use with caution.
370
-
371
- ### Parameter Description
372
-
373
- | Parameter | Type | Required | Description | Constraints |
374
- |-----------|------|----------|-------------|-------------|
375
- | `clear.op` | string | Yes | Operation type | Fixed value "clear" |
376
-
377
- ### Example
378
-
379
- #### Example 4.1: Clear All Information
380
-
381
- **Prompt:** Remove all local info entries. This operation cannot be undone.
382
-
383
- ```json
384
- {
385
- "clear": {
386
- "op": "clear"
387
- }
388
- }
389
- ```
390
-
391
- **Execution Result:**
392
- ```json
393
- {
394
- "success": true
395
- }
396
- ```
397
-
398
- ---
399
-
400
- ## Query Local Info List
401
-
402
- ```json
403
- {
404
- "query_type": "local_info_list"
405
- }
406
- ```
407
-
408
- ---
409
-
410
- ## Best Practices
411
-
412
- ### 1. Use Secure Sandbox or Encrypted Device
413
- Store local information on a secure sandbox environment or encrypted device.
414
-
415
- ### 2. Don't Share Device
416
- Don't store sensitive information on shared devices.
417
-
418
- ---
419
-
420
- ## Important Notes
421
-
422
- ⚠️ **Only stored on local device!**
423
-
424
- ---
425
-
426
- ## Related Components
427
-
428
- | Component | Description |
429
- |-----------|-------------|
430
- | **[LocalMark](localmark.md)** | User/Object naming and categorization |
431
- | **[Account](account.md)** | Local wallet management |
432
- | **[Contact](contact.md)** | Public contact information |