@wowok/agent-mcp 2.3.14 → 2.3.18

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 (189) hide show
  1. package/dist/config/index.d.ts +1 -0
  2. package/dist/config/index.js +1 -0
  3. package/dist/config/runtime.d.ts +26 -0
  4. package/dist/config/runtime.js +217 -0
  5. package/dist/customer/index.d.ts +9 -0
  6. package/dist/customer/index.js +9 -0
  7. package/dist/customer/industry-risks.d.ts +40 -0
  8. package/dist/customer/industry-risks.js +438 -0
  9. package/dist/customer/info-puzzle.d.ts +102 -0
  10. package/dist/customer/info-puzzle.js +312 -0
  11. package/dist/customer/order-monitor.d.ts +75 -0
  12. package/dist/customer/order-monitor.js +327 -0
  13. package/dist/customer/order-strategy.d.ts +36 -0
  14. package/dist/customer/order-strategy.js +373 -0
  15. package/dist/customer/post-purchase.d.ts +42 -0
  16. package/dist/customer/post-purchase.js +350 -0
  17. package/dist/customer/reminder-system.d.ts +42 -0
  18. package/dist/customer/reminder-system.js +295 -0
  19. package/dist/customer/risk-assessment.d.ts +8 -0
  20. package/dist/customer/risk-assessment.js +337 -0
  21. package/dist/customer/types.d.ts +193 -0
  22. package/dist/customer/types.js +13 -0
  23. package/dist/customer/user-preferences.d.ts +70 -0
  24. package/dist/customer/user-preferences.js +460 -0
  25. package/dist/experience/experience-reuse.d.ts +10 -0
  26. package/dist/experience/experience-reuse.js +103 -0
  27. package/dist/experience/index.d.ts +6 -0
  28. package/dist/experience/index.js +5 -0
  29. package/dist/experience/intent-distill.d.ts +3 -0
  30. package/dist/experience/intent-distill.js +83 -0
  31. package/dist/experience/realtime-feedback.d.ts +5 -0
  32. package/dist/experience/realtime-feedback.js +94 -0
  33. package/dist/experience/types.d.ts +50 -0
  34. package/dist/experience/types.js +1 -0
  35. package/dist/experience/user-profile.d.ts +25 -0
  36. package/dist/experience/user-profile.js +171 -0
  37. package/dist/index.js +842 -371
  38. package/dist/knowledge/acquisition-flywheel.d.ts +53 -0
  39. package/dist/knowledge/acquisition-flywheel.js +192 -0
  40. package/dist/knowledge/arbitration-trust.d.ts +24 -0
  41. package/dist/knowledge/arbitration-trust.js +117 -0
  42. package/dist/knowledge/audit-rules.d.ts +28 -0
  43. package/dist/knowledge/audit-rules.js +141 -0
  44. package/dist/knowledge/demand-matching.d.ts +29 -0
  45. package/dist/knowledge/demand-matching.js +132 -0
  46. package/dist/knowledge/dynamic-pricing.d.ts +31 -0
  47. package/dist/knowledge/dynamic-pricing.js +87 -0
  48. package/dist/knowledge/flywheel-loop.d.ts +87 -0
  49. package/dist/knowledge/flywheel-loop.js +378 -0
  50. package/dist/knowledge/glossary.d.ts +18 -0
  51. package/dist/knowledge/glossary.js +209 -0
  52. package/dist/knowledge/guard-ledger.d.ts +19 -0
  53. package/dist/knowledge/guard-ledger.js +219 -0
  54. package/dist/knowledge/guard-puzzle.d.ts +93 -0
  55. package/dist/knowledge/guard-puzzle.js +278 -0
  56. package/dist/knowledge/guard-risk.d.ts +60 -0
  57. package/dist/knowledge/guard-risk.js +474 -0
  58. package/dist/knowledge/guard-translation.d.ts +46 -0
  59. package/dist/knowledge/guard-translation.js +487 -0
  60. package/dist/knowledge/index.d.ts +77 -0
  61. package/dist/knowledge/index.js +79 -0
  62. package/dist/knowledge/industry-evolution.d.ts +82 -0
  63. package/dist/knowledge/industry-evolution.js +323 -0
  64. package/dist/knowledge/industry-generalizer.d.ts +17 -0
  65. package/dist/knowledge/industry-generalizer.js +381 -0
  66. package/dist/knowledge/industry-registry.d.ts +48 -0
  67. package/dist/knowledge/industry-registry.js +187 -0
  68. package/dist/knowledge/intent-metrics.d.ts +42 -0
  69. package/dist/knowledge/intent-metrics.js +566 -0
  70. package/dist/knowledge/process-model.d.ts +24 -0
  71. package/dist/knowledge/process-model.js +160 -0
  72. package/dist/knowledge/reputation-rules.d.ts +42 -0
  73. package/dist/knowledge/reputation-rules.js +99 -0
  74. package/dist/knowledge/reward-templates.d.ts +25 -0
  75. package/dist/knowledge/reward-templates.js +125 -0
  76. package/dist/knowledge/safety-rules.d.ts +36 -0
  77. package/dist/knowledge/safety-rules.js +232 -0
  78. package/dist/knowledge/tool-constraints.d.ts +30 -0
  79. package/dist/knowledge/tool-constraints.js +175 -0
  80. package/dist/knowledge/trust-metrics.d.ts +37 -0
  81. package/dist/knowledge/trust-metrics.js +138 -0
  82. package/dist/loop-engineering/diagnose.d.ts +3 -2
  83. package/dist/loop-engineering/diagnose.js +94 -0
  84. package/dist/loop-engineering/improve.d.ts +1 -1
  85. package/dist/loop-engineering/improve.js +52 -1
  86. package/dist/project/graph.d.ts +71 -0
  87. package/dist/project/graph.js +314 -0
  88. package/dist/project/index.d.ts +62 -0
  89. package/dist/project/index.js +167 -0
  90. package/dist/project/namespace.d.ts +62 -0
  91. package/dist/project/namespace.js +181 -0
  92. package/dist/project/query.d.ts +40 -0
  93. package/dist/project/query.js +110 -0
  94. package/dist/safety/confirm-gate.d.ts +17 -0
  95. package/dist/safety/confirm-gate.js +88 -0
  96. package/dist/safety/index.d.ts +3 -0
  97. package/dist/safety/index.js +3 -0
  98. package/dist/safety/preview.d.ts +2 -0
  99. package/dist/safety/preview.js +36 -0
  100. package/dist/schema/call/allocation.d.ts +39 -14
  101. package/dist/schema/call/arbitration.d.ts +187 -162
  102. package/dist/schema/call/base.d.ts +1971 -87
  103. package/dist/schema/call/base.js +135 -3
  104. package/dist/schema/call/bridge-handler.js +15 -2
  105. package/dist/schema/call/bridge.d.ts +1478 -53
  106. package/dist/schema/call/bridge.js +50 -2
  107. package/dist/schema/call/contact.d.ts +25 -0
  108. package/dist/schema/call/demand.d.ts +79 -54
  109. package/dist/schema/call/guard.d.ts +125 -50
  110. package/dist/schema/call/handler.d.ts +3 -0
  111. package/dist/schema/call/handler.js +60 -14
  112. package/dist/schema/call/machine.d.ts +988 -938
  113. package/dist/schema/call/order.d.ts +25 -0
  114. package/dist/schema/call/payment.d.ts +25 -0
  115. package/dist/schema/call/permission.d.ts +244 -219
  116. package/dist/schema/call/personal.d.ts +25 -0
  117. package/dist/schema/call/progress.d.ts +25 -0
  118. package/dist/schema/call/proof.d.ts +62 -12
  119. package/dist/schema/call/proof.js +3 -3
  120. package/dist/schema/call/repository.d.ts +101 -76
  121. package/dist/schema/call/reward.d.ts +55 -30
  122. package/dist/schema/call/semantic.d.ts +10 -2
  123. package/dist/schema/call/semantic.js +616 -11
  124. package/dist/schema/call/service.d.ts +442 -417
  125. package/dist/schema/call/treasury.d.ts +25 -0
  126. package/dist/schema/common/index.js +3 -3
  127. package/dist/schema/config/index.d.ts +18 -0
  128. package/dist/schema/config/index.js +17 -0
  129. package/dist/schema/index.d.ts +6 -0
  130. package/dist/schema/index.js +5 -0
  131. package/dist/schema/local/index.d.ts +237 -81
  132. package/dist/schema/local/index.js +42 -6
  133. package/dist/schema/messenger/index.d.ts +1018 -79
  134. package/dist/schema/messenger/index.js +26 -17
  135. package/dist/schema/operations.d.ts +3192 -1746
  136. package/dist/schema/operations.js +93 -98
  137. package/dist/schema/project/index.d.ts +21 -0
  138. package/dist/schema/project/index.js +32 -0
  139. package/dist/schema/query/index.d.ts +2762 -1856
  140. package/dist/schema/query/index.js +38 -35
  141. package/dist/schema/schema-query/index.d.ts +33 -0
  142. package/dist/schema/schema-query/index.js +36 -0
  143. package/dist/schema/schema-version.d.ts +25 -0
  144. package/dist/schema/schema-version.js +76 -0
  145. package/dist/schema/trust/index.d.ts +407 -0
  146. package/dist/schema/trust/index.js +113 -0
  147. package/dist/schemas/account_operation.output.json +25 -16
  148. package/dist/schemas/account_operation.schema.json +1 -1
  149. package/dist/schemas/bridge_operation.output.json +744 -0
  150. package/dist/schemas/bridge_operation.schema.json +82 -8
  151. package/dist/schemas/config_operation.output.json +18 -0
  152. package/dist/schemas/config_operation.schema.json +34 -0
  153. package/dist/schemas/guard-node-schema.json +82 -0
  154. package/dist/schemas/guard2file.schema.json +23 -0
  155. package/dist/schemas/index.json +19 -1
  156. package/dist/schemas/local_info_operation.output.json +23 -0
  157. package/dist/schemas/local_info_operation.schema.json +1 -1
  158. package/dist/schemas/local_mark_operation.output.json +24 -1
  159. package/dist/schemas/local_mark_operation.schema.json +4 -4
  160. package/dist/schemas/machineNode2file.schema.json +23 -0
  161. package/dist/schemas/messenger_operation.output.json +752 -0
  162. package/dist/schemas/onchain_events.output.json +718 -0
  163. package/dist/schemas/onchain_operations.output.json +627 -18
  164. package/dist/schemas/onchain_operations.schema.json +115 -39
  165. package/dist/schemas/onchain_operations_allocation.schema.json +23 -0
  166. package/dist/schemas/onchain_operations_arbitration.schema.json +23 -0
  167. package/dist/schemas/onchain_operations_contact.schema.json +23 -0
  168. package/dist/schemas/onchain_operations_demand.schema.json +23 -0
  169. package/dist/schemas/onchain_operations_gen_passport.schema.json +46 -0
  170. package/dist/schemas/onchain_operations_guard.schema.json +26 -16
  171. package/dist/schemas/onchain_operations_machine.schema.json +89 -23
  172. package/dist/schemas/onchain_operations_order.schema.json +23 -0
  173. package/dist/schemas/onchain_operations_payment.schema.json +23 -0
  174. package/dist/schemas/onchain_operations_permission.schema.json +23 -0
  175. package/dist/schemas/onchain_operations_personal.schema.json +23 -0
  176. package/dist/schemas/onchain_operations_progress.schema.json +23 -0
  177. package/dist/schemas/onchain_operations_repository.schema.json +23 -0
  178. package/dist/schemas/onchain_operations_reward.schema.json +23 -0
  179. package/dist/schemas/onchain_operations_service.schema.json +23 -0
  180. package/dist/schemas/onchain_operations_treasury.schema.json +23 -0
  181. package/dist/schemas/onchain_table_data.output.json +939 -69
  182. package/dist/schemas/onchain_table_data.schema.json +2 -2
  183. package/dist/schemas/project_operation.output.json +18 -0
  184. package/dist/schemas/project_operation.schema.json +42 -0
  185. package/dist/schemas/query_toolkit.schema.json +360 -368
  186. package/dist/schemas/schema_query.schema.json +6 -3
  187. package/dist/schemas/trust_score.output.json +327 -0
  188. package/dist/schemas/trust_score.schema.json +46 -0
  189. package/package.json +2 -2
@@ -36,6 +36,16 @@
36
36
  "type": "string",
37
37
  "pattern": "^0x[0-9a-fA-F]{40}$",
38
38
  "description": "Final withdrawal EVM address; if omitted, assets remain in activeEvmAccount. When provided, the SDK uses the activeEvmAccount key to transfer to this address."
39
+ },
40
+ "idempotencyKey": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 128,
44
+ "description": "Idempotency key to prevent duplicate deposits on retry. If a successful transfer with this key exists, returns it immediately (idempotentHit=true)."
45
+ },
46
+ "idempotentByParams": {
47
+ "type": "boolean",
48
+ "description": "If true, auto-generates an idempotency key from token+amount+withdrawTo. Use when you want implicit idempotency without managing explicit keys."
39
49
  }
40
50
  },
41
51
  "required": [
@@ -76,6 +86,29 @@
76
86
  "referrer": {
77
87
  "$ref": "#/definitions/bridge_operation/anyOf/0/properties/env/properties/account",
78
88
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
89
+ },
90
+ "confirmed": {
91
+ "type": "boolean",
92
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
93
+ },
94
+ "user_intent_phrases": {
95
+ "type": "array",
96
+ "items": {
97
+ "type": "string"
98
+ },
99
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
100
+ },
101
+ "project": {
102
+ "type": "string",
103
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
104
+ },
105
+ "client_schema_version": {
106
+ "type": "string",
107
+ "description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
108
+ },
109
+ "schema_strict_mode": {
110
+ "type": "boolean",
111
+ "description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
79
112
  }
80
113
  },
81
114
  "additionalProperties": false,
@@ -117,6 +150,14 @@
117
150
  "recipientWowAddress": {
118
151
  "type": "string",
119
152
  "description": "WOW recipient address or account name; defaults to env.account if omitted"
153
+ },
154
+ "idempotencyKey": {
155
+ "$ref": "#/definitions/bridge_operation/anyOf/0/properties/data/properties/idempotencyKey",
156
+ "description": "Idempotency key to prevent duplicate deposits on retry. If a successful transfer with this key exists, returns it immediately (idempotentHit=true)."
157
+ },
158
+ "idempotentByParams": {
159
+ "type": "boolean",
160
+ "description": "If true, auto-generates an idempotency key from token+amount+recipientWowAddress. Use when you want implicit idempotency without managing explicit keys."
120
161
  }
121
162
  },
122
163
  "required": [
@@ -171,6 +212,39 @@
171
212
  "additionalProperties": false,
172
213
  "description": "WOW→EVM claim (step 2): claim assets on EVM after bridge signed. Requires activeEvmAccount to have EVM gas. [Requires WOW mainnet env]"
173
214
  },
215
+ {
216
+ "type": "object",
217
+ "properties": {
218
+ "operation_type": {
219
+ "type": "string",
220
+ "const": "resume_transfer"
221
+ },
222
+ "data": {
223
+ "type": "object",
224
+ "properties": {
225
+ "transferId": {
226
+ "type": "string",
227
+ "description": "Transfer ID to resume (br_<timestamp>_<counter>)"
228
+ }
229
+ },
230
+ "required": [
231
+ "transferId"
232
+ ],
233
+ "additionalProperties": false,
234
+ "description": "Resume an interrupted transfer from its current step. Use this when a transfer was interrupted (e.g. MCP restart, network error) and you want to continue from where it left off. The SDK determines the current step and attempts to advance it: - If deposit step failed: retries the deposit - If deposit is pending/confirmed: waits for bridge signatures and proceeds to claim - If claim step is ready: executes the claim - If transfer is already complete: returns the existing record (idempotentHit=true) [Returns] The updated transfer record after attempting to advance it. [Requires env] WOW env is needed for WOW-side operations; EVM-side operations use activeEvmAccount."
235
+ },
236
+ "env": {
237
+ "$ref": "#/definitions/bridge_operation/anyOf/0/properties/env",
238
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
239
+ }
240
+ },
241
+ "required": [
242
+ "operation_type",
243
+ "data"
244
+ ],
245
+ "additionalProperties": false,
246
+ "description": "Resume an interrupted transfer from its current step. Safe to retry. [Requires WOW mainnet env for WOW-side operations]"
247
+ },
174
248
  {
175
249
  "type": "object",
176
250
  "properties": {
@@ -240,7 +314,7 @@
240
314
  "type": "object",
241
315
  "properties": {
242
316
  "network": {
243
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/network",
317
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/network",
244
318
  "description": "Specific chain; if omitted, queries all supported chains"
245
319
  },
246
320
  "tokens": {
@@ -286,7 +360,7 @@
286
360
  "type": "object",
287
361
  "properties": {
288
362
  "network": {
289
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/network",
363
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/network",
290
364
  "description": "Specific chain; if omitted, returns token lists for all supported chains"
291
365
  }
292
366
  },
@@ -334,7 +408,7 @@
334
408
  "description": "Filter by transfer direction"
335
409
  },
336
410
  "token": {
337
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/token",
411
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/token",
338
412
  "description": "Filter by token type (ETH/WETH/WBTC/USDC/USDT)"
339
413
  },
340
414
  "limit": {
@@ -406,7 +480,7 @@
406
480
  "description": "List all configured RPC endpoints with health status"
407
481
  },
408
482
  "network": {
409
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/network",
483
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/network",
410
484
  "description": "Target chain (defaults to Ethereum mainnet)"
411
485
  }
412
486
  },
@@ -425,7 +499,7 @@
425
499
  "description": "Append one or more RPC endpoints"
426
500
  },
427
501
  "network": {
428
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/network",
502
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/network",
429
503
  "description": "Target chain (defaults to Ethereum mainnet)"
430
504
  },
431
505
  "rpcUrls": {
@@ -454,7 +528,7 @@
454
528
  "description": "Remove one or more RPC endpoints"
455
529
  },
456
530
  "network": {
457
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/network",
531
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/network",
458
532
  "description": "Target chain (defaults to Ethereum mainnet)"
459
533
  },
460
534
  "rpcUrls": {
@@ -483,7 +557,7 @@
483
557
  "description": "Full replace all RPC endpoints"
484
558
  },
485
559
  "network": {
486
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/network",
560
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/network",
487
561
  "description": "Target chain (defaults to Ethereum mainnet)"
488
562
  },
489
563
  "rpcUrls": {
@@ -512,7 +586,7 @@
512
586
  "description": "Health check one or more RPC endpoints"
513
587
  },
514
588
  "network": {
515
- "$ref": "#/definitions/bridge_operation/anyOf/3/properties/data/properties/network",
589
+ "$ref": "#/definitions/bridge_operation/anyOf/4/properties/data/properties/network",
516
590
  "description": "Target chain (defaults to Ethereum mainnet)"
517
591
  },
518
592
  "rpcUrls": {
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/config_operation.json",
4
+ "title": "Config - Runtime Service Toggles",
5
+ "description": "Runtime configuration — toggle Phase 2/3/4 services on/off at runtime WITHOUT restarting the MCP server. Actions: list, toggle, enable, disable, reset, info. Services (9 total): confirm_gate, project_service, harness, graph_persist, semantic_rich, experience_layer, customer_intelligence, order_monitor, industry_evolution.",
6
+ "$ref": "#/definitions/config_operation",
7
+ "definitions": {
8
+ "config_operation": {
9
+ "type": "object",
10
+ "properties": {
11
+ "result": {
12
+ "description": "Config result — shape depends on action"
13
+ }
14
+ },
15
+ "additionalProperties": false
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/config_operation.json",
4
+ "title": "Config - Runtime Service Toggles",
5
+ "description": "Runtime configuration — toggle Phase 2/3/4 services on/off at runtime WITHOUT restarting the MCP server. Actions: list, toggle, enable, disable, reset, info. Services (9 total): confirm_gate, project_service, harness, graph_persist, semantic_rich, experience_layer, customer_intelligence, order_monitor, industry_evolution.",
6
+ "$ref": "#/definitions/config_operation",
7
+ "definitions": {
8
+ "config_operation": {
9
+ "type": "object",
10
+ "properties": {
11
+ "action": {
12
+ "type": "string",
13
+ "enum": [
14
+ "list",
15
+ "toggle",
16
+ "enable",
17
+ "disable",
18
+ "reset",
19
+ "info"
20
+ ],
21
+ "description": "Config action to perform"
22
+ },
23
+ "service": {
24
+ "type": "string",
25
+ "description": "Service name (required for toggle/enable/disable/reset/info)"
26
+ }
27
+ },
28
+ "required": [
29
+ "action"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ }
34
+ }
@@ -40,12 +40,18 @@
40
40
  { "$ref": "#/definitions/ConvertSafeU64Node" },
41
41
  { "$ref": "#/definitions/ConvertSafeU128Node" },
42
42
  { "$ref": "#/definitions/ConvertSafeU256Node" },
43
+ { "$ref": "#/definitions/ValueTypeNode" },
43
44
  { "$ref": "#/definitions/VecLengthNode" },
44
45
  { "$ref": "#/definitions/VecContainsBoolNode" },
45
46
  { "$ref": "#/definitions/VecContainsAddressNode" },
46
47
  { "$ref": "#/definitions/VecContainsStringNode" },
47
48
  { "$ref": "#/definitions/VecContainsStringNocaseNode" },
48
49
  { "$ref": "#/definitions/VecContainsNumberNode" },
50
+ { "$ref": "#/definitions/VecIndexofBoolNode" },
51
+ { "$ref": "#/definitions/VecIndexofAddressNode" },
52
+ { "$ref": "#/definitions/VecIndexofStringNode" },
53
+ { "$ref": "#/definitions/VecIndexofStringNocaseNode" },
54
+ { "$ref": "#/definitions/VecIndexofNumberNode" },
49
55
  { "$ref": "#/definitions/QueryProgressHistoryFindNode" },
50
56
  { "$ref": "#/definitions/QueryProgressHistorySessionFindNode" },
51
57
  { "$ref": "#/definitions/QueryProgressHistorySessionForwardFindNode" },
@@ -554,6 +560,17 @@
554
560
  "returns": "U256",
555
561
  "description": "Returns U256. Safely converts a number to U256 with overflow protection."
556
562
  },
563
+ "ValueTypeNode": {
564
+ "type": "object",
565
+ "properties": {
566
+ "type": { "const": "value_type" },
567
+ "node": { "$ref": "#/definitions/GuardNodeRef" }
568
+ },
569
+ "required": ["type", "node"],
570
+ "additionalProperties": false,
571
+ "returns": "U8",
572
+ "description": "Returns U8. Gets the value type identifier (ValueType) of the child node value. Value types: Bool=0, Address=1, String=2, U8=3, U16=4, U32=5, U64=6, U128=7, U256=8, VecBool=9, VecAddress=10, VecString=11, VecU8=12, VecU16=13, VecU32=14, VecU64=15, VecU128=16, VecU256=17, VecVecU8=18, Value=19."
573
+ },
557
574
  "VecLengthNode": {
558
575
  "type": "object",
559
576
  "properties": {
@@ -620,6 +637,71 @@
620
637
  "returns": "Bool",
621
638
  "description": "Returns Bool. Checks if vector contains a number."
622
639
  },
640
+ "VecIndexofBoolNode": {
641
+ "type": "object",
642
+ "properties": {
643
+ "type": { "const": "vec_indexof_bool" },
644
+ "nodeLeft": { "$ref": "#/definitions/GuardNodeRef" },
645
+ "nodeRight": { "$ref": "#/definitions/GuardNodeRef" },
646
+ "order": { "type": "string", "enum": ["forward", "backward"] }
647
+ },
648
+ "required": ["type", "nodeLeft", "nodeRight", "order"],
649
+ "additionalProperties": false,
650
+ "returns": "U64",
651
+ "description": "Returns U64. Finds the index of a bool value in a vector. nodeLeft must be VecBool (ValueType=9) or Value (ValueType=19), nodeRight must be Bool (ValueType=0) or Value (ValueType=19). Returns index of first occurrence in the specified direction. If not found, returns u64::MAX (18446744073709551615)."
652
+ },
653
+ "VecIndexofAddressNode": {
654
+ "type": "object",
655
+ "properties": {
656
+ "type": { "const": "vec_indexof_address" },
657
+ "nodeLeft": { "$ref": "#/definitions/GuardNodeRef" },
658
+ "nodeRight": { "$ref": "#/definitions/GuardNodeRef" },
659
+ "order": { "type": "string", "enum": ["forward", "backward"] }
660
+ },
661
+ "required": ["type", "nodeLeft", "nodeRight", "order"],
662
+ "additionalProperties": false,
663
+ "returns": "U64",
664
+ "description": "Returns U64. Finds the index of an address value in a vector. nodeLeft must be VecAddress (ValueType=10) or Value (ValueType=19), nodeRight must be Address (ValueType=1) or Value (ValueType=19). Returns index of first occurrence in the specified direction. If not found, returns u64::MAX (18446744073709551615)."
665
+ },
666
+ "VecIndexofStringNode": {
667
+ "type": "object",
668
+ "properties": {
669
+ "type": { "const": "vec_indexof_string" },
670
+ "nodeLeft": { "$ref": "#/definitions/GuardNodeRef" },
671
+ "nodeRight": { "$ref": "#/definitions/GuardNodeRef" },
672
+ "order": { "type": "string", "enum": ["forward", "backward"] }
673
+ },
674
+ "required": ["type", "nodeLeft", "nodeRight", "order"],
675
+ "additionalProperties": false,
676
+ "returns": "U64",
677
+ "description": "Returns U64. Finds the index of a string value in a vector. nodeLeft must be VecString (ValueType=11) or Value (ValueType=19), nodeRight must be String (ValueType=2) or Value (ValueType=19). Returns index of first occurrence in the specified direction. If not found, returns u64::MAX (18446744073709551615)."
678
+ },
679
+ "VecIndexofStringNocaseNode": {
680
+ "type": "object",
681
+ "properties": {
682
+ "type": { "const": "vec_indexof_string_nocase" },
683
+ "nodeLeft": { "$ref": "#/definitions/GuardNodeRef" },
684
+ "nodeRight": { "$ref": "#/definitions/GuardNodeRef" },
685
+ "order": { "type": "string", "enum": ["forward", "backward"] }
686
+ },
687
+ "required": ["type", "nodeLeft", "nodeRight", "order"],
688
+ "additionalProperties": false,
689
+ "returns": "U64",
690
+ "description": "Returns U64. Finds the index of a string value in a vector (case-insensitive). nodeLeft must be VecString (ValueType=11) or Value (ValueType=19), nodeRight must be String (ValueType=2) or Value (ValueType=19). Returns index of first occurrence in the specified direction. If not found, returns u64::MAX (18446744073709551615)."
691
+ },
692
+ "VecIndexofNumberNode": {
693
+ "type": "object",
694
+ "properties": {
695
+ "type": { "const": "vec_indexof_number" },
696
+ "nodeLeft": { "$ref": "#/definitions/GuardNodeRef" },
697
+ "nodeRight": { "$ref": "#/definitions/GuardNodeRef" },
698
+ "order": { "type": "string", "enum": ["forward", "backward"] }
699
+ },
700
+ "required": ["type", "nodeLeft", "nodeRight", "order"],
701
+ "additionalProperties": false,
702
+ "returns": "U64",
703
+ "description": "Returns U64. Finds the index of a number value in a vector. nodeLeft must be VecU8 (12), VecU16 (13), VecU32 (14), VecU64 (15), VecU128 (16), VecU256 (17) or Value (ValueType=19), nodeRight must be U8 (3), U16 (4), U32 (5), U64 (6), U128 (7), U256 (8) or Value (ValueType=19). Returns index of first occurrence in the specified direction. If not found, returns u64::MAX (18446744073709551615)."
704
+ },
623
705
  "QueryProgressHistoryFindNode": {
624
706
  "type": "object",
625
707
  "properties": {
@@ -55,6 +55,29 @@
55
55
  "referrer": {
56
56
  "$ref": "#/definitions/guard2file/properties/env/properties/account",
57
57
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
58
+ },
59
+ "confirmed": {
60
+ "type": "boolean",
61
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
62
+ },
63
+ "user_intent_phrases": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string"
67
+ },
68
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
69
+ },
70
+ "project": {
71
+ "type": "string",
72
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
73
+ },
74
+ "client_schema_version": {
75
+ "type": "string",
76
+ "description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
77
+ },
78
+ "schema_strict_mode": {
79
+ "type": "boolean",
80
+ "description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
58
81
  }
59
82
  },
60
83
  "additionalProperties": false,
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "WoWok MCP Schema Index",
4
4
  "description": "Index of all available JSON schemas for WoWok MCP tools",
5
- "generatedAt": "2026-07-14T07:50:49.195Z",
5
+ "generatedAt": "2026-07-15T23:18:07.531Z",
6
6
  "tools": [
7
7
  {
8
8
  "name": "onchain_operations",
@@ -87,6 +87,24 @@
87
87
  "title": "Bridge - Cross-Chain Operations",
88
88
  "path": "./bridge_operation.schema.json",
89
89
  "outputPath": "./bridge_operation.output.json"
90
+ },
91
+ {
92
+ "name": "project_operation",
93
+ "title": "Project - Namespace & Object Graph",
94
+ "path": "./project_operation.schema.json",
95
+ "outputPath": "./project_operation.output.json"
96
+ },
97
+ {
98
+ "name": "config_operation",
99
+ "title": "Config - Runtime Service Toggles",
100
+ "path": "./config_operation.schema.json",
101
+ "outputPath": "./config_operation.output.json"
102
+ },
103
+ {
104
+ "name": "trust_score",
105
+ "title": "Trust Score - Service Risk & Trust Assessment",
106
+ "path": "./trust_score.schema.json",
107
+ "outputPath": "./trust_score.output.json"
90
108
  }
91
109
  ],
92
110
  "operations": [
@@ -48,6 +48,29 @@
48
48
  "error": {
49
49
  "type": "string",
50
50
  "description": "Error message"
51
+ },
52
+ "error_code": {
53
+ "type": "string",
54
+ "enum": [
55
+ "invalid_parameter",
56
+ "guard_rejected",
57
+ "state_conflict",
58
+ "insufficient_balance",
59
+ "object_not_found",
60
+ "permission_denied",
61
+ "immutable_violation",
62
+ "network_error",
63
+ "unknown"
64
+ ],
65
+ "description": "Error classification for programmatic recovery"
66
+ },
67
+ "retryable": {
68
+ "type": "boolean",
69
+ "description": "Whether the operation can be retried as-is"
70
+ },
71
+ "recovery_hint": {
72
+ "type": "string",
73
+ "description": "Recovery suggestion for AI or user"
51
74
  }
52
75
  },
53
76
  "required": [
@@ -136,7 +136,7 @@
136
136
  }
137
137
  },
138
138
  "additionalProperties": false,
139
- "description": "Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified."
139
+ "description": "Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified as a NESTED field. Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}."
140
140
  }
141
141
  }
142
142
  }
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "address": {
38
38
  "type": "string",
39
- "description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, @0xaaa, @0xaab, @0x403, @0xacc, @0xc)"
39
+ "description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, 0xa, 0xc, 0xd, 0x403, 0xaaa, 0xaab, 0xacc)"
40
40
  },
41
41
  "tags": {
42
42
  "type": "array",
@@ -92,6 +92,29 @@
92
92
  "error": {
93
93
  "type": "string",
94
94
  "description": "Error message"
95
+ },
96
+ "error_code": {
97
+ "type": "string",
98
+ "enum": [
99
+ "invalid_parameter",
100
+ "guard_rejected",
101
+ "state_conflict",
102
+ "insufficient_balance",
103
+ "object_not_found",
104
+ "permission_denied",
105
+ "immutable_violation",
106
+ "network_error",
107
+ "unknown"
108
+ ],
109
+ "description": "Error classification for programmatic recovery"
110
+ },
111
+ "retryable": {
112
+ "type": "boolean",
113
+ "description": "Whether the operation can be retried as-is"
114
+ },
115
+ "recovery_hint": {
116
+ "type": "string",
117
+ "description": "Recovery suggestion for AI or user"
95
118
  }
96
119
  },
97
120
  "required": [
@@ -39,11 +39,11 @@
39
39
  "value"
40
40
  ],
41
41
  "additionalProperties": false,
42
- "description": "Mark naming configuration"
42
+ "description": "Mark naming configuration. MUST be an object {value: string, replaceExistName?: boolean}, NOT a plain string. Example: {name: {value: 'my-account', replaceExistName: true}}"
43
43
  },
44
44
  "address": {
45
45
  "type": "string",
46
- "description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, @0xaaa, @0xaab, @0x403, @0xacc, @0xc)"
46
+ "description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, 0xa, 0xc, 0xd, 0x403, 0xaaa, 0xaab, 0xacc)"
47
47
  },
48
48
  "tags": {
49
49
  "type": "array",
@@ -59,7 +59,7 @@
59
59
  "address"
60
60
  ],
61
61
  "additionalProperties": false,
62
- "description": "LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead."
62
+ "description": "LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead. IMPORTANT: 'name' field is an OBJECT {value, replaceExistName?}, not a string."
63
63
  },
64
64
  "minItems": 1,
65
65
  "description": "Array of mark data to add (at least 1 item)"
@@ -113,7 +113,7 @@
113
113
  }
114
114
  },
115
115
  "additionalProperties": false,
116
- "description": "Local mark operations. Exactly one operation type (add/remove/clear) must be specified."
116
+ "description": "Local mark operations. Exactly one operation type (add/remove/clear) must be specified as a NESTED field. Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}."
117
117
  }
118
118
  }
119
119
  }
@@ -55,6 +55,29 @@
55
55
  "referrer": {
56
56
  "$ref": "#/definitions/machineNode2file/properties/env/properties/account",
57
57
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
58
+ },
59
+ "confirmed": {
60
+ "type": "boolean",
61
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
62
+ },
63
+ "user_intent_phrases": {
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string"
67
+ },
68
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
69
+ },
70
+ "project": {
71
+ "type": "string",
72
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
73
+ },
74
+ "client_schema_version": {
75
+ "type": "string",
76
+ "description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
77
+ },
78
+ "schema_strict_mode": {
79
+ "type": "boolean",
80
+ "description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
58
81
  }
59
82
  },
60
83
  "additionalProperties": false,