@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,296 +0,0 @@
1
- # WoWok Built-in Info Tool Schema
2
-
3
- > **Tool Name**: `wowok_buildin_info`
4
- > **Description**: Query WoWok protocol information: 'constants', 'built-in permissions', 'guard instructions', 'current network', or 'value types'.
5
-
6
- ---
7
-
8
- ## Tool Schema
9
-
10
- ```typescript
11
- wowok_buildin_info: ProtocolInfoQuery
12
- ```
13
-
14
- ---
15
-
16
- ## Input Schema
17
-
18
- ```typescript
19
- ProtocolInfoQuery =
20
- | { info: "constants" }
21
- | { info: "built-in permissions"; filter?: PermissionFilter }
22
- | { info: "guard instructions"; filter?: GuardInstructFilterOptions }
23
- | { info: "current network" }
24
- | { info: "value types" }
25
- ```
26
-
27
- ---
28
-
29
- ## Sub Schemas
30
-
31
- ### PermissionFilter
32
-
33
- ```typescript
34
- PermissionFilter {
35
- index?: number, // Filter by permission index
36
- name?: string, // Filter by permission name (partial match, case-insensitive)
37
- module?: string // Filter by module name (e.g., 'service', 'order', 'machine')
38
- }
39
- ```
40
-
41
- ### GuardInstructFilterOptions
42
-
43
- ```typescript
44
- GuardInstructFilterOptions {
45
- id?: number, // Filter by instruction ID
46
- name?: string, // Filter by instruction name (partial match, case-insensitive)
47
- objectType?: string, // Filter by object type
48
- returnType?: string // Filter by return value type
49
- }
50
- ```
51
-
52
- ---
53
-
54
- ## Output Schema
55
-
56
- ```typescript
57
- ProtocolInfoResult {
58
- result: ProtocolInfoResultWrapped
59
- }
60
-
61
- ProtocolInfoResultWrapped =
62
- | { info: "constants"; result: ConstantItem[] }
63
- | { info: "built-in permissions"; result: PermissionInfoType[] }
64
- | { info: "guard instructions"; result: GuardItem[] }
65
- | { info: "current network"; result: Entrypoint }
66
- | { info: "value types"; result: ConstantItem[] }
67
- ```
68
-
69
- ---
70
-
71
- ## Result Type Schemas
72
-
73
- ### ConstantItem
74
-
75
- ```typescript
76
- ConstantItem {
77
- name: string, // Constant name
78
- value: string, // Constant value
79
- description: string // Constant description
80
- }
81
- ```
82
-
83
- ### PermissionInfoType
84
-
85
- ```typescript
86
- PermissionInfoType {
87
- index: number, // Permission index (0-65535)
88
- name: string, // Permission name
89
- module: string, // Module name
90
- description: string // Permission description
91
- }
92
- ```
93
-
94
- ### GuardItem
95
-
96
- ```typescript
97
- GuardItem {
98
- id: number, // Instruction ID
99
- name: string, // Instruction name
100
- objectType: string, // Object type this instruction operates on
101
- parameters: ValueType[], // Parameter types
102
- return: ValueType, // Return value type
103
- description: string, // Instruction description
104
- parameters_description: string[] // Parameter descriptions
105
- }
106
- ```
107
-
108
- ### Entrypoint
109
-
110
- ```typescript
111
- Entrypoint = "localnet" | "testnet"
112
- ```
113
-
114
- ### ValueType
115
-
116
- ```typescript
117
- ValueType =
118
- | "Bool" | "Address" | "String"
119
- | "U8" | "U16" | "U32" | "U64" | "U128" | "U256"
120
- | "VecBool" | "VecAddress" | "VecString"
121
- | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256"
122
- | "VecVecU8"
123
- | number // Numeric representation (0-18)
124
- ```
125
-
126
- ---
127
-
128
- ## Query Type Selection Guide
129
-
130
- | Query Type | Description | Use Case |
131
- |------------|-------------|----------|
132
- | `constants` | Protocol constants | Get system-wide constant values |
133
- | `built-in permissions` | Built-in permission definitions | Find permission indices for Permission objects |
134
- | `guard instructions` | Guard query instructions | Find available data queries for Guard nodes |
135
- | `current network` | Current network entrypoint | Verify which network is active |
136
- | `value types` | Supported value types | Get type mappings for Guard/Repository data |
137
-
138
- ---
139
-
140
- ## Examples
141
-
142
- ### Query Constants
143
-
144
- ```typescript
145
- wowok_buildin_info: {
146
- info: "constants"
147
- }
148
- ```
149
-
150
- ### Query Built-in Permissions with Filter
151
-
152
- ```typescript
153
- wowok_buildin_info: {
154
- info: "built-in permissions",
155
- filter: {
156
- module: "service" // Filter for service-related permissions
157
- }
158
- }
159
- ```
160
-
161
- ### Query Guard Instructions with Filter
162
-
163
- ```typescript
164
- wowok_buildin_info: {
165
- info: "guard instructions",
166
- filter: {
167
- objectType: "Service", // Filter for Service object queries
168
- returnType: "U64" // Filter for U64 return type
169
- }
170
- }
171
- ```
172
-
173
- ### Query Current Network
174
-
175
- ```typescript
176
- wowok_buildin_info: {
177
- info: "current network"
178
- }
179
- ```
180
-
181
- ### Query Value Types
182
-
183
- ```typescript
184
- wowok_buildin_info: {
185
- info: "value types"
186
- }
187
- ```
188
-
189
- ---
190
-
191
- ## Output Examples
192
-
193
- ### Constants Result
194
-
195
- ```json
196
- {
197
- "result": {
198
- "info": "constants",
199
- "result": [
200
- {
201
- "name": "MAX_GUARD_NODES",
202
- "value": "64",
203
- "description": "Maximum number of nodes in a Guard"
204
- },
205
- {
206
- "name": "MAX_MACHINE_NODES",
207
- "value": "256",
208
- "description": "Maximum number of nodes in a Machine"
209
- }
210
- ]
211
- }
212
- }
213
- ```
214
-
215
- ### Built-in Permissions Result
216
-
217
- ```json
218
- {
219
- "result": {
220
- "info": "built-in permissions",
221
- "result": [
222
- {
223
- "index": 0,
224
- "name": "service.create",
225
- "module": "service",
226
- "description": "Create new service"
227
- },
228
- {
229
- "index": 1,
230
- "name": "service.update",
231
- "module": "service",
232
- "description": "Update service settings"
233
- }
234
- ]
235
- }
236
- }
237
- ```
238
-
239
- ### Guard Instructions Result
240
-
241
- ```json
242
- {
243
- "result": {
244
- "info": "guard instructions",
245
- "result": [
246
- {
247
- "id": 1001,
248
- "name": "service.description",
249
- "objectType": "Service",
250
- "parameters": [],
251
- "return": "String",
252
- "description": "Get service description",
253
- "parameters_description": []
254
- }
255
- ]
256
- }
257
- }
258
- ```
259
-
260
- ### Current Network Result
261
-
262
- ```json
263
- {
264
- "result": {
265
- "info": "current network",
266
- "result": "testnet"
267
- }
268
- }
269
- ```
270
-
271
- ### Value Types Result
272
-
273
- ```json
274
- {
275
- "result": {
276
- "info": "value types",
277
- "result": [
278
- {
279
- "name": "Bool",
280
- "value": "0",
281
- "description": "Boolean type"
282
- },
283
- {
284
- "name": "Address",
285
- "value": "1",
286
- "description": "Address type"
287
- },
288
- {
289
- "name": "String",
290
- "value": "2",
291
- "description": "String type"
292
- }
293
- ]
294
- }
295
- }
296
- ```