@wowok/agent-mcp 3.4.1 → 3.4.3

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 (323) hide show
  1. package/dist/.build-stamp.json +5 -0
  2. package/dist/chain-semantics/composition-truth.js +1 -1
  3. package/dist/chain-semantics/eval-order.js +1 -1
  4. package/dist/chain-semantics/field-capability.js +1 -1
  5. package/dist/chain-semantics/freeze-map.js +1 -1
  6. package/dist/chain-semantics/fund-flow.js +1 -1
  7. package/dist/chain-semantics/guard-verbs.js +1 -1
  8. package/dist/chain-semantics/object-graph.js +1 -1
  9. package/dist/composition/audit.js +1 -1
  10. package/dist/composition/compile.d.ts +10 -3
  11. package/dist/composition/compile.js +1 -1
  12. package/dist/composition/emit-phases.d.ts +30 -2
  13. package/dist/composition/emit-phases.js +1 -1
  14. package/dist/composition/guard-fill.d.ts +8 -0
  15. package/dist/composition/guard-fill.js +1 -1
  16. package/dist/composition/inflight.js +1 -1
  17. package/dist/composition/input-normalize.js +1 -1
  18. package/dist/composition/materialize.d.ts +2 -0
  19. package/dist/composition/materialize.js +1 -1
  20. package/dist/composition/mode-gates.js +1 -1
  21. package/dist/composition/param-disclosure.js +1 -1
  22. package/dist/composition/plan-retry-ledger.d.ts +16 -0
  23. package/dist/composition/plan-retry-ledger.js +1 -1
  24. package/dist/composition/plan.d.ts +15 -1
  25. package/dist/composition/plan.js +1 -1
  26. package/dist/config/config-audit.spec.js +1 -1
  27. package/dist/config/judgment.d.ts +5 -0
  28. package/dist/config/judgment.js +1 -1
  29. package/dist/evaluation/builtins/arbitration-score.d.ts +1 -0
  30. package/dist/evaluation/builtins/arbitration-score.js +1 -1
  31. package/dist/evaluation/builtins/demand-match.js +1 -1
  32. package/dist/evaluation/builtins/graph-service.d.ts +8 -0
  33. package/dist/evaluation/builtins/graph-service.js +1 -1
  34. package/dist/evaluation/capability.d.ts +9 -0
  35. package/dist/evaluation/engine.js +1 -1
  36. package/dist/evaluation/extract.d.ts +9 -1
  37. package/dist/evaluation/extract.js +1 -1
  38. package/dist/evaluation/match-operation.js +1 -1
  39. package/dist/evaluation/match-policy.d.ts +5 -3
  40. package/dist/evaluation/match-policy.js +1 -1
  41. package/dist/evaluation/standards.d.ts +1 -0
  42. package/dist/evaluation/standards.js +1 -1
  43. package/dist/evaluation/structured-lines.js +1 -1
  44. package/dist/evaluation/types.d.ts +1 -0
  45. package/dist/extensions/capability.js +1 -1
  46. package/dist/extensions/industry-pack.js +1 -1
  47. package/dist/extensions/modes.js +1 -1
  48. package/dist/harness/recover.js +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/intent/types.d.ts +1 -1
  51. package/dist/intent/types.js +1 -1
  52. package/dist/knowledge/allocation-ledger.js +1 -1
  53. package/dist/knowledge/allocator-rail-verifier.d.ts +17 -1
  54. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  55. package/dist/knowledge/arb-fund-facts.d.ts +7 -0
  56. package/dist/knowledge/arb-fund-facts.js +1 -1
  57. package/dist/knowledge/arbitration-rail-verifier.d.ts +35 -0
  58. package/dist/knowledge/arbitration-rail-verifier.js +1 -0
  59. package/dist/knowledge/arbitration-templates.js +1 -1
  60. package/dist/knowledge/audit-rules.d.ts +13 -1
  61. package/dist/knowledge/audit-rules.js +1 -1
  62. package/dist/knowledge/baselines/judgment-baselines.json +1 -0
  63. package/dist/knowledge/baselines/rules/guard.json +7 -6
  64. package/dist/knowledge/baselines/rules/progress.json +4 -4
  65. package/dist/knowledge/baselines/rules/reward.json +118 -3
  66. package/dist/knowledge/builtin-templates.d.ts +19 -2
  67. package/dist/knowledge/builtin-templates.js +1 -1
  68. package/dist/knowledge/chain-query-registry.d.ts +14 -0
  69. package/dist/knowledge/chain-query-registry.js +1 -0
  70. package/dist/knowledge/event-semantics.js +1 -1
  71. package/dist/knowledge/fee-param-bindings.d.ts +2 -0
  72. package/dist/knowledge/fee-param-bindings.js +1 -1
  73. package/dist/knowledge/getting-started.js +1 -1
  74. package/dist/knowledge/guard-binding-table.js +1 -1
  75. package/dist/knowledge/guard-binding-verifier.d.ts +7 -0
  76. package/dist/knowledge/guard-binding-verifier.js +1 -1
  77. package/dist/knowledge/guard-bindings.js +1 -1
  78. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  79. package/dist/knowledge/guard-design-patterns.js +1 -1
  80. package/dist/knowledge/guard-field-cognition.js +1 -1
  81. package/dist/knowledge/guard-host-context.js +1 -1
  82. package/dist/knowledge/guard-lint.js +1 -1
  83. package/dist/knowledge/guard-node-gates.d.ts +3 -1
  84. package/dist/knowledge/guard-node-gates.js +1 -1
  85. package/dist/knowledge/guard-puzzle.js +1 -1
  86. package/dist/knowledge/guard-render.js +1 -1
  87. package/dist/knowledge/guard-risk.js +1 -1
  88. package/dist/knowledge/guard-templates.d.ts +2 -1
  89. package/dist/knowledge/guard-templates.js +1 -1
  90. package/dist/knowledge/guard-translation.js +1 -1
  91. package/dist/knowledge/index.d.ts +2 -0
  92. package/dist/knowledge/index.js +1 -1
  93. package/dist/knowledge/industry-registry.js +1 -1
  94. package/dist/knowledge/jsonrpc-enum.js +1 -1
  95. package/dist/knowledge/knob-docs.js +1 -1
  96. package/dist/knowledge/param-schema.d.ts +1 -1
  97. package/dist/knowledge/param-schema.js +1 -1
  98. package/dist/knowledge/param-tiers.d.ts +2 -0
  99. package/dist/knowledge/param-tiers.js +1 -1
  100. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
  101. package/dist/knowledge/pattern-resolutions.d.ts +2 -0
  102. package/dist/knowledge/pattern-resolutions.js +1 -1
  103. package/dist/knowledge/product-detail-source.d.ts +37 -0
  104. package/dist/knowledge/product-detail-source.js +1 -0
  105. package/dist/knowledge/product-doc-b5.d.ts +16 -0
  106. package/dist/knowledge/product-doc-b5.js +1 -0
  107. package/dist/knowledge/progress-ledger.js +1 -1
  108. package/dist/knowledge/projection.spec.js +1 -1
  109. package/dist/knowledge/publish-gate.d.ts +20 -0
  110. package/dist/knowledge/publish-gate.js +1 -0
  111. package/dist/knowledge/publish-readiness.d.ts +25 -0
  112. package/dist/knowledge/publish-readiness.js +1 -0
  113. package/dist/knowledge/publish-surface-contract.d.ts +16 -0
  114. package/dist/knowledge/publish-surface-contract.js +1 -0
  115. package/dist/knowledge/rail-exit-satisfiability.d.ts +25 -0
  116. package/dist/knowledge/rail-exit-satisfiability.js +1 -0
  117. package/dist/knowledge/reward-ledger.d.ts +1 -1
  118. package/dist/knowledge/reward-ledger.js +1 -1
  119. package/dist/knowledge/reward-risk.d.ts +1 -1
  120. package/dist/knowledge/reward-risk.js +1 -1
  121. package/dist/knowledge/scenario-modes.js +1 -1
  122. package/dist/knowledge/service-ledger.d.ts +3 -1
  123. package/dist/knowledge/service-ledger.js +1 -1
  124. package/dist/knowledge/template-loader.d.ts +41 -2
  125. package/dist/knowledge/template-loader.js +1 -1
  126. package/dist/knowledge/template-registry.js +1 -1
  127. package/dist/knowledge/template-scanner.d.ts +17 -0
  128. package/dist/knowledge/template-scanner.js +1 -1
  129. package/dist/knowledge/template-test-profiles.js +1 -1
  130. package/dist/knowledge/workflow-guidance.d.ts +4 -0
  131. package/dist/knowledge/workflow-guidance.js +1 -1
  132. package/dist/monitor/MonitorLoop.js +1 -1
  133. package/dist/monitor/normalize.d.ts +1 -1
  134. package/dist/monitor/normalize.js +1 -1
  135. package/dist/monitor/types.js +1 -1
  136. package/dist/participation/customer-interest.d.ts +4 -0
  137. package/dist/participation/customer-interest.js +1 -1
  138. package/dist/participation/game-context.js +1 -1
  139. package/dist/participation/node-action-advisor.d.ts +4 -0
  140. package/dist/participation/node-action-advisor.js +1 -1
  141. package/dist/participation/radar-core.js +1 -1
  142. package/dist/participation/time-window.d.ts +11 -0
  143. package/dist/participation/time-window.js +1 -1
  144. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  145. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  146. package/dist/playbooks/service-build/merchant-guide.d.ts +28 -3
  147. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  148. package/dist/playbooks/service-build/object-panorama.d.ts +4 -0
  149. package/dist/playbooks/service-build/object-panorama.js +1 -1
  150. package/dist/playbooks/service-build/participation-radar.js +1 -1
  151. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  152. package/dist/playbooks/service-build/service-panorama.js +1 -1
  153. package/dist/playbooks/service-build/service-quote.js +1 -1
  154. package/dist/review/index.js +1 -1
  155. package/dist/review/order.js +1 -1
  156. package/dist/safety/confirm-gate.js +1 -1
  157. package/dist/schema/benchmark-migration/index.d.ts +24 -0
  158. package/dist/schema/benchmark-migration/index.js +1 -1
  159. package/dist/schema/call/allocation.d.ts +11 -7
  160. package/dist/schema/call/allocation.js +1 -1
  161. package/dist/schema/call/arbitration.d.ts +4 -0
  162. package/dist/schema/call/arbitration.js +1 -1
  163. package/dist/schema/call/base.d.ts +28 -0
  164. package/dist/schema/call/base.js +1 -1
  165. package/dist/schema/call/bridge.d.ts +21 -0
  166. package/dist/schema/call/contact.d.ts +4 -0
  167. package/dist/schema/call/demand.d.ts +4 -0
  168. package/dist/schema/call/guard.d.ts +12 -0
  169. package/dist/schema/call/handler.d.ts +1 -0
  170. package/dist/schema/call/handler.js +1 -1
  171. package/dist/schema/call/machine.d.ts +16 -8
  172. package/dist/schema/call/normalize-error.d.ts +1 -0
  173. package/dist/schema/call/normalize-error.js +1 -0
  174. package/dist/schema/call/order.d.ts +7 -3
  175. package/dist/schema/call/order.js +1 -1
  176. package/dist/schema/call/payment.d.ts +7 -3
  177. package/dist/schema/call/permission.d.ts +4 -0
  178. package/dist/schema/call/personal.d.ts +4 -0
  179. package/dist/schema/call/progress.d.ts +4 -0
  180. package/dist/schema/call/progress.js +1 -1
  181. package/dist/schema/call/proof.d.ts +8 -0
  182. package/dist/schema/call/proof.js +1 -1
  183. package/dist/schema/call/receipt.js +1 -1
  184. package/dist/schema/call/repository.d.ts +4 -0
  185. package/dist/schema/call/reward.d.ts +6 -2
  186. package/dist/schema/call/reward.js +1 -1
  187. package/dist/schema/call/semantic.d.ts +2 -2
  188. package/dist/schema/call/semantic.js +1 -1
  189. package/dist/schema/call/service.d.ts +21 -7
  190. package/dist/schema/call/service.js +1 -1
  191. package/dist/schema/call/treasury.d.ts +10 -6
  192. package/dist/schema/common/index.js +1 -1
  193. package/dist/schema/envelope-unify.d.ts +1 -0
  194. package/dist/schema/envelope-unify.js +1 -1
  195. package/dist/schema/evaluation/index.d.ts +43 -0
  196. package/dist/schema/evaluation/index.js +1 -1
  197. package/dist/schema/goal/index.d.ts +14 -2
  198. package/dist/schema/goal/planning.d.ts +18 -0
  199. package/dist/schema/goal/planning.js +1 -1
  200. package/dist/schema/intent-radar/index.d.ts +12 -0
  201. package/dist/schema/intent-radar/index.js +1 -1
  202. package/dist/schema/keeper/index.d.ts +1 -0
  203. package/dist/schema/local/index.d.ts +10 -0
  204. package/dist/schema/local/index.js +1 -1
  205. package/dist/schema/local/wip.js +1 -1
  206. package/dist/schema/messenger/index.d.ts +1 -0
  207. package/dist/schema/messenger/index.js +1 -1
  208. package/dist/schema/operations.d.ts +98 -13
  209. package/dist/schema/operations.js +1 -1
  210. package/dist/schema/persona/index.d.ts +22 -0
  211. package/dist/schema/query/bi.d.ts +28 -2
  212. package/dist/schema/query/bi.js +1 -1
  213. package/dist/schema/query/index.d.ts +67 -61
  214. package/dist/schema/query/index.js +1 -1
  215. package/dist/schema/schema-version.js +1 -1
  216. package/dist/schema/workflow/index.js +1 -1
  217. package/dist/schema-query-impl/index.d.ts +1 -0
  218. package/dist/schema-query-impl/index.js +1 -1
  219. package/dist/schemas/account_operation.output.json +2 -1
  220. package/dist/schemas/benchmark_migration_operation.output.json +74 -0
  221. package/dist/schemas/benchmark_migration_operation.schema.json +33 -1
  222. package/dist/schemas/bridge_operation.output.json +2 -1
  223. package/dist/schemas/bridge_operation.schema.json +40 -0
  224. package/dist/schemas/evaluation_operation.output.json +96 -0
  225. package/dist/schemas/evaluation_operation.schema.json +39 -0
  226. package/dist/schemas/goal_operation.schema.json +32 -0
  227. package/dist/schemas/guard2file.schema.json +8 -0
  228. package/dist/schemas/index.json +1 -1
  229. package/dist/schemas/intent_radar.output.json +10 -2
  230. package/dist/schemas/intent_radar.schema.json +5 -1
  231. package/dist/schemas/keeper_operation.output.json +2 -1
  232. package/dist/schemas/local_cache_operation.output.json +2 -1
  233. package/dist/schemas/local_history_operation.output.json +2 -1
  234. package/dist/schemas/local_info_operation.output.json +2 -1
  235. package/dist/schemas/local_mark_operation.output.json +2 -1
  236. package/dist/schemas/local_mark_operation.schema.json +10 -1
  237. package/dist/schemas/machineNode2file.schema.json +8 -0
  238. package/dist/schemas/messenger_operation.output.json +2 -1
  239. package/dist/schemas/messenger_operation.schema.json +2 -1
  240. package/dist/schemas/monitor_events.output.json +2 -1
  241. package/dist/schemas/monitor_subscription.output.json +2 -1
  242. package/dist/schemas/onchain_events.output.json +206 -13
  243. package/dist/schemas/onchain_events.schema.json +16 -0
  244. package/dist/schemas/onchain_operations.output.json +22 -3
  245. package/dist/schemas/onchain_operations.schema.json +982 -327
  246. package/dist/schemas/onchain_operations_allocation.schema.json +20 -13
  247. package/dist/schemas/onchain_operations_arbitration.schema.json +9 -1
  248. package/dist/schemas/onchain_operations_contact.schema.json +8 -0
  249. package/dist/schemas/onchain_operations_demand.schema.json +8 -0
  250. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
  251. package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
  252. package/dist/schemas/onchain_operations_guard.schema.json +655 -115
  253. package/dist/schemas/onchain_operations_machine.schema.json +11 -3
  254. package/dist/schemas/onchain_operations_order.schema.json +14 -11
  255. package/dist/schemas/onchain_operations_payment.schema.json +12 -9
  256. package/dist/schemas/onchain_operations_permission.schema.json +8 -0
  257. package/dist/schemas/onchain_operations_personal.schema.json +8 -0
  258. package/dist/schemas/onchain_operations_progress.schema.json +9 -1
  259. package/dist/schemas/onchain_operations_proof.schema.json +9 -1
  260. package/dist/schemas/onchain_operations_repository.schema.json +8 -0
  261. package/dist/schemas/onchain_operations_reward.schema.json +14 -11
  262. package/dist/schemas/onchain_operations_service.schema.json +25 -12
  263. package/dist/schemas/onchain_operations_treasury.schema.json +17 -19
  264. package/dist/schemas/onchain_table_data.output.json +52 -10
  265. package/dist/schemas/persona_operation.output.json +57 -0
  266. package/dist/schemas/persona_operation.schema.json +9 -0
  267. package/dist/schemas/query_toolkit.output.json +326 -23
  268. package/dist/schemas/query_toolkit.schema.json +18 -5
  269. package/dist/schemas/wip_file.output.json +2 -2
  270. package/dist/schemas/wip_file.schema.json +2 -2
  271. package/dist/schemas/workflow_operation.schema.json +1 -1
  272. package/dist/tools/error-catalog.d.ts +17 -0
  273. package/dist/tools/error-catalog.js +1 -0
  274. package/dist/tools/handlers/benchmark-migration.d.ts +29 -8
  275. package/dist/tools/handlers/benchmark-migration.js +1 -1
  276. package/dist/tools/handlers/config.js +1 -1
  277. package/dist/tools/handlers/entry-edge-recipe.d.ts +101 -0
  278. package/dist/tools/handlers/entry-edge-recipe.js +1 -0
  279. package/dist/tools/handlers/escrow-deficit.d.ts +10 -0
  280. package/dist/tools/handlers/escrow-deficit.js +1 -0
  281. package/dist/tools/handlers/evaluation.js +1 -1
  282. package/dist/tools/handlers/fund-rail-recipe.d.ts +10 -0
  283. package/dist/tools/handlers/fund-rail-recipe.js +1 -0
  284. package/dist/tools/handlers/intent-radar.js +1 -1
  285. package/dist/tools/handlers/local.js +1 -1
  286. package/dist/tools/handlers/mark-namespace.d.ts +30 -0
  287. package/dist/tools/handlers/mark-namespace.js +1 -0
  288. package/dist/tools/handlers/messenger.js +1 -1
  289. package/dist/tools/handlers/onchain-name-registration.d.ts +1 -0
  290. package/dist/tools/handlers/onchain-name-registration.js +1 -1
  291. package/dist/tools/handlers/onchain-name-registration.spec.js +1 -1
  292. package/dist/tools/handlers/onchain.d.ts +40 -1
  293. package/dist/tools/handlers/onchain.js +1 -1
  294. package/dist/tools/handlers/publish-binding-echo.d.ts +22 -0
  295. package/dist/tools/handlers/publish-binding-echo.js +1 -0
  296. package/dist/tools/handlers/query.d.ts +1 -1
  297. package/dist/tools/handlers/query.js +1 -1
  298. package/dist/tools/handlers/review-chain.d.ts +1 -0
  299. package/dist/tools/handlers/review-chain.js +1 -1
  300. package/dist/tools/handlers/schema-query.js +1 -1
  301. package/dist/tools/handlers/stale-build-check.d.ts +9 -0
  302. package/dist/tools/handlers/stale-build-check.js +1 -0
  303. package/dist/tools/handlers/submission-assembly.d.ts +55 -0
  304. package/dist/tools/handlers/submission-assembly.js +1 -0
  305. package/dist/tools/handlers/wip.js +1 -1
  306. package/dist/tools/index.d.ts +1 -0
  307. package/dist/tools/index.js +1 -1
  308. package/dist/tools/move-fn-index.gen.js +1 -1
  309. package/dist/tools/publish-gate-state.d.ts +5 -0
  310. package/dist/tools/publish-gate-state.js +1 -0
  311. package/dist/tools/registry/business.js +1 -1
  312. package/dist/tools/registry/onchain.js +1 -1
  313. package/dist/tools/registry/query.js +1 -1
  314. package/dist/tools/retry.js +1 -1
  315. package/dist/tools/runtime-health.js +1 -1
  316. package/dist/tools/shared.js +1 -1
  317. package/dist/tools/upgrade-check.d.ts +1 -0
  318. package/dist/tools/upgrade-check.js +1 -1
  319. package/dist/tools/wip-verify-ledger.d.ts +2 -0
  320. package/dist/tools/wip-verify-ledger.js +1 -1
  321. package/dist/tools/wrap.d.ts +15 -1
  322. package/dist/tools/wrap.js +1 -1
  323. package/package.json +5 -3
@@ -1071,14 +1071,20 @@
1071
1071
  "type": "string"
1072
1072
  },
1073
1073
  "items": {
1074
- "description": "Basket to quote. Omit to quote EVERY sale with quantity 1 (the floor basket — order quantity is chosen at buy time, so per-unit prices are the authoritative input).",
1074
+ "description": "Basket to quote. Omit to quote EVERY sale with quantity 1 (the floor basket — order quantity is chosen at buy time, so per-unit prices are the authoritative input). Each item names its sale via `name` (exact literal) or `sale_id` (0-based index) — exactly one.",
1075
1075
  "type": "array",
1076
1076
  "items": {
1077
1077
  "type": "object",
1078
1078
  "properties": {
1079
1079
  "name": {
1080
- "type": "string",
1081
- "description": "Sale name exactly as configured on the Service."
1080
+ "description": "Sale name exactly as configured on the Service. Required unless sale_id is given.",
1081
+ "type": "string"
1082
+ },
1083
+ "sale_id": {
1084
+ "description": "0-based index of the sale in the Service's configured sales list (same enumeration the buy tool accepts). Required unless name is given.",
1085
+ "type": "integer",
1086
+ "minimum": 0,
1087
+ "maximum": 9007199254740991
1082
1088
  },
1083
1089
  "quantity": {
1084
1090
  "default": 1,
@@ -1089,7 +1095,6 @@
1089
1095
  }
1090
1096
  },
1091
1097
  "required": [
1092
- "name",
1093
1098
  "quantity"
1094
1099
  ],
1095
1100
  "additionalProperties": false
@@ -1114,6 +1119,10 @@
1114
1119
  "localnet"
1115
1120
  ],
1116
1121
  "description": "Network for the query — THIS field is `context_network` (the query tools accept no separate `network` key). Defaults to the user's CURRENT network (client UI selection / authority config) when omitted. 'localnet' is for internal test use against a local fullnode."
1122
+ },
1123
+ "no_cache": {
1124
+ "description": "A-5 freshness control, same convention as the panorama family (DEFAULT TRUE = read fresh, bypass the object cache). A quote that feeds an exact total_pay must never come from a stale cache — pass false only for high-frequency polling.",
1125
+ "type": "boolean"
1117
1126
  }
1118
1127
  },
1119
1128
  "required": [
@@ -1157,7 +1166,11 @@
1157
1166
  "const": "object_panorama"
1158
1167
  },
1159
1168
  "object_address": {
1160
- "description": "On-chain object address (0x followed by 32-64 hex chars) for object_panorama. Also accepts a LocalMark NAME (resolved automatically). H-06 fix: invalid formats are rejected at the handler level with a descriptive error.",
1169
+ "description": "On-chain object address (0x followed by 32-64 hex chars) for object_panorama. Also accepts a LocalMark NAME (resolved automatically). H-06 fix: invalid formats are rejected at the handler level with a descriptive error. F27 (gf32-mn-261103): `object` is accepted as an alias too — the write faces all take `object`, so a driver reusing one helper for reads and writes no longer trips on the key name.",
1170
+ "type": "string"
1171
+ },
1172
+ "object": {
1173
+ "description": "ALIAS of object_address (accepted for write-face key compatibility — every write tool takes `object`). Prefer object_address on query calls. Example: {\"query_type\": \"object_panorama\", \"object\": \"0xabc...\"}.",
1161
1174
  "type": "string"
1162
1175
  },
1163
1176
  "filter": {
@@ -191,7 +191,7 @@
191
191
  "properties": {
192
192
  "hash": {
193
193
  "type": "string",
194
- "description": "WIP file hash (meta.hash)"
194
+ "description": "WIP file hash = meta.hash, the CANONICAL commitment hash (sha256 over key-sorted, whitespace-free {wip, payload} JSON, meta excluded) — the same value the Service anchors on-chain as wip_hash, and the key the file is stored/deleted under. NOT the sha256 of the raw file bytes"
195
195
  },
196
196
  "name": {
197
197
  "description": "Optional display name",
@@ -266,7 +266,7 @@
266
266
  "properties": {
267
267
  "hash": {
268
268
  "type": "string",
269
- "description": "WIP file hash (meta.hash)"
269
+ "description": "WIP file hash = meta.hash, the CANONICAL commitment hash (sha256 over key-sorted, whitespace-free {wip, payload} JSON, meta excluded) — the same value the Service anchors on-chain as wip_hash, and the key the file is stored/deleted under. NOT the sha256 of the raw file bytes"
270
270
  },
271
271
  "name": {
272
272
  "description": "Optional display name",
@@ -81,7 +81,7 @@
81
81
  "description": "WIP file path to verify. Supports: 1) Local file path (e.g., '/path/to/file.wip', 'C:\\Users\\name\\doc.wip'), 2) Network URL (e.g., 'https://example.com/doc.wip', 'http://site.com/file.wip'), 3) Data URL (e.g., 'data:application/json;base64,eyJ3aXAiOi...')"
82
82
  },
83
83
  "hash_equal": {
84
- "description": "Optional expected hash value. If provided, the function will first verify if the file's hash matches this value. If not matched, returns hash mismatch error.",
84
+ "description": "Optional expected COMMITMENT hash (F-23 field clarification). Compared against the file's meta.hash — the CANONICAL commitment hash (sha256 over key-sorted, whitespace-free {wip, payload} JSON, meta excluded), which is exactly what the Service anchors on-chain as wip_hash. This is NOT the sha256 of the raw downloaded file bytes (the verify result carries that separately as content_sha256): comparing a raw-file digest against meta.hash / the on-chain wip_hash always false-negatives (ddmc4 B-23). If not matched, returns hash mismatch error.",
85
85
  "type": "string"
86
86
  },
87
87
  "requireSignature": {
@@ -214,7 +214,7 @@
214
214
  "wipFilePath"
215
215
  ],
216
216
  "additionalProperties": false,
217
- "description": "Upload a signed WIP file to a wip storage service. The upload request is signed with the account's Falcon512 key; the file is validated (format, size limits, content hash, signatures) and stored under its content hash with a public download URL. When the per-account file limit is reached, the error carries the account's stored file list for deletion. Large, image-heavy WIP files are network-sensitive: keep them small (compress images before generate) and retry on transient network failures. WIP files are off-chain and network-independent: the returned public URL works on both testnet and mainnet"
217
+ "description": "Upload a signed WIP file to a wip storage service. The upload request is signed with the account's Falcon512 key; the file is validated (format, size limits, content hash, signatures) and stored under its CANONICAL COMMITMENT hash (meta.hash — the same value a Service anchors on-chain as wip_hash; NOT the raw-file sha256) with a public download URL. The upload response's `hash` field IS that commitment value: pass it directly as the sale row's wip_hash (template_generate writes it back automatically when this session performed the upload). When the per-account file limit is reached, the error carries the account's stored file list for deletion. Large, image-heavy WIP files are network-sensitive: keep them small (compress images before generate) and retry on transient network failures. WIP files are off-chain and network-independent: the returned public URL works on both testnet and mainnet"
218
218
  },
219
219
  {
220
220
  "type": "object",
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "https://wowok.net/schemas/workflow_operation.json",
4
4
  "title": "Workflow - Local-Account Progress Tasks",
5
- "description": "workflow_operation input. action='list' enumerates progress related to local accounts (actionable first, plus completed/related progress with viewable history); action='task' builds the SAME snapshot for ONE progress (options may carry empty executable_accounts — the client grays the actions); action='operate' advances/holds/unholds a forward as a chosen local account; action='history' incrementally syncs + returns a progress's on-chain history.",
5
+ "description": "workflow_operation input. action='list' enumerates progress related to local accounts (actionable first, plus completed/related progress with viewable history); action='task' builds the SAME snapshot for ONE progress (options may carry empty executable_accounts — the client grays the actions); action='operate' advances/holds/unholds a forward as a chosen local account; action='history' incrementally syncs + returns a progress's on-chain history. NETWORK POSITION (single): the native shape takes network at the TOP LEVEL of the input; the onchain progress envelope ({operation_type:'progress', data, env}) takes it in env. A network misplaced inside data (or inside env on the native shape) is REFUSED with a fail-loud error — it never silently falls back to the default network.",
6
6
  "oneOf": [
7
7
  {
8
8
  "type": "object",
@@ -0,0 +1,17 @@
1
+ import { type ErrorClassification } from "../schema/call/semantic.js";
2
+ export interface ErrorCatalogEntry {
3
+ module: string;
4
+ code: string;
5
+ canonical: string;
6
+ next_action: string;
7
+ }
8
+ export interface CatalogFields {
9
+ code: string;
10
+ canonical: string;
11
+ next_action: string;
12
+ detail?: string;
13
+ }
14
+ export declare const ERROR_CATALOG: Record<string, ErrorCatalogEntry>;
15
+ export declare function lookupCatalogEntry(module: string, abortCode: number): ErrorCatalogEntry | undefined;
16
+ export declare function translateVmAbort(raw: unknown): CatalogFields | undefined;
17
+ export declare function catalogFieldsFor(classified: ErrorClassification | undefined, rawError?: unknown): CatalogFields | undefined;
@@ -0,0 +1 @@
1
+ import{MOVE_ABORT_ERROR_MAP,extractVmDebugAbort,normalizeErrorMessage}from'../schema/call/semantic.js';export const ERROR_CATALOG={'order:7':{'module':'order','code':'E_ORDER_ALREADY_CLAIMED','canonical':'Order\x20already\x20claimed\x20—\x20the\x20arbitration\x20settlement\x20claim\x20is\x20one-shot\x20and\x20this\x20order\x20is\x20sealed.','next_action':'Do\x20NOT\x20re-submit\x20the\x20claim.\x20Verify\x20settlement\x20arrival\x20via\x20onchain_events\x20for\x20the\x20claim\x20recipient,\x20and\x20resolve\x20any\x20missing\x20funds\x20with\x20the\x20counterparty\x20through\x20Messenger.'},'machine:11':{'module':'machine','code':'E_MACHINE_PAUSED','canonical':'Machine\x20is\x20paused\x20—\x20new\x20order/progress\x20creation\x20is\x20blocked.','next_action':'Un-pause\x20via\x20operation_type=machine\x20with\x20pause=false\x20on\x20the\x20machine\x20object;\x20in-flight\x20orders\x20keep\x20advancing\x20while\x20paused.'},'machine:14':{'module':'machine','code':'E_PERMISSION_NOT_DEFINED','canonical':'The\x20caller\x20holds\x20no\x20permission\x20on\x20this\x20machine\x20for\x20the\x20requested\x20forward.','next_action':'Read\x20the\x20machine\x20permission\x20table\x20(query_toolkit\x20machine)\x20and\x20route\x20the\x20call\x20through\x20an\x20account/role\x20bound\x20to\x20the\x20required\x20permission,\x20or\x20ask\x20the\x20machine\x20owner\x20to\x20bind\x20your\x20address.'},'progress:8':{'module':'progress','code':'E_PERMISSION_NOT_DEFINED','canonical':'No\x20permission\x20is\x20defined\x20for\x20this\x20caller\x20on\x20this\x20progress\x20flow\x20step.','next_action':'Read\x20the\x20progress\x20flow\x20(query_toolkit,\x20workflow_guidance)\x20to\x20find\x20which\x20role\x20advances\x20this\x20node,\x20then\x20re-call\x20from\x20that\x20account.'},'progress:13':{'module':'progress','code':'E_ORDER_PAYER_REQUIRED','canonical':'This\x20progress\x20operation\x20requires\x20the\x20order\x20PAYER\x20to\x20act.','next_action':'Switch\x20to\x20the\x20order\x20payer\x20account\x20(or\x20have\x20the\x20payer\x20perform\x20the\x20step),\x20then\x20retry\x20the\x20same\x20call.'},'progress:14':{'module':'progress','code':'E_ORDER_TASK_REQUIRED','canonical':'This\x20Progress\x20has\x20no\x20bound\x20Order\x20task\x20—\x20the\x20order-payer\x20advance\x20has\x20no\x20payer\x20to\x20act.','next_action':'Do\x20NOT\x20switch\x20accounts.\x20Bind\x20the\x20Progress\x20to\x20its\x20Order\x20(or\x20advance\x20the\x20order\x20via\x20its\x20order-bound\x20path);\x20a\x20standalone\x20taskless\x20Progress\x20cannot\x20drive\x20empty-namedOperator\x20forwards.'},'progress:15':{'module':'progress','code':'E_ORDER_PRINCIPAL_REFUNDED','canonical':'The\x20order\x27s\x20escrow\x20principal\x20was\x20fully\x20refunded\x20—\x20further\x20advance/hold\x20is\x20blocked\x20by\x20the\x20zombie-order\x20shield.','next_action':'Stop\x20advancing\x20this\x20order.\x20Verify\x20the\x20refund\x20via\x20onchain_events\x20(PrincipalRefundedEvent)\x20or\x20query\x20order.principal_refunded;\x20settle\x20residual\x20disputes\x20via\x20Messenger/arbitration.'},'service:27':{'module':'service','code':'E_COMPENSATION_NOT_MATCH','canonical':'Compensation\x20mismatch\x20—\x20the\x20attached\x20payment\x20does\x20not\x20satisfy\x20the\x20service\x27s\x20price\x20formula.','next_action':'Re-read\x20the\x20service\x20compensation\x20config\x20(query_toolkit\x20service),\x20recompute\x20the\x20payment\x20to\x20the\x20exact\x20smallest-unit\x20amount,\x20and\x20re-send.'},'guard:guard_data_missing':{'module':'guard','code':'E_GUARD_DATA_MISSING','canonical':'The\x20operation\x20is\x20gated\x20by\x20a\x20Guard\x20but\x20the\x20required\x20guard\x20data\x20was\x20not\x20supplied.','next_action':'Supply\x20the\x20missing\x20guard\x20input\x20in\x20the\x20submission\x20envelope\x20slot,\x20or\x20query\x20the\x20guard\x20config\x20first\x20to\x20see\x20exactly\x20what\x20is\x20required.'},'vm:E_VM_TYPE_MISMATCH':{'module':'vm','code':'E_VM_TYPE_MISMATCH','canonical':'The\x20VM\x20rejected\x20a\x20pure-argument\x20type\x20(bare\x20TypeMismatch\x20carrying\x20an\x20abort\x20code)\x20—\x20the\x20transaction\x20never\x20ran\x20and\x20nothing\x20was\x20committed.','next_action':'Re-check\x20the\x20argument\x20TYPES\x20against\x20the\x20operation\x20schema.\x20For\x20required_info\x20/\x20Proof\x20/\x20Contact\x20credential\x20calls:\x20complete\x20the\x20required_info\x20submission\x20first\x20(deliver\x20via\x20Messenger,\x20record\x20via\x20order_required_info),\x20pass\x20an\x20object\x20of\x20the\x20EXPECTED\x20type\x20(a\x20Proof\x20whose\x20about==order\x20and\x20creator==its\x20owner,\x20or\x20the\x20merchant\x20Contact\x20object\x20address\x20—\x20never\x20a\x20plain\x20wallet\x20address),\x20then\x20re-call.'}};export function lookupCatalogEntry(a,b){return ERROR_CATALOG[a+':'+b];}function firstSentence(a,b=0xdc){const c=a['split'](/(?<=\.)\s/,0x1)[0x0]??a;return c['length']>b?c['slice'](0x0,b-0x1)+'…':c;}function fieldsOf(a,b){const c={'code':a['module']+'::'+a['code'],'canonical':a['canonical'],'next_action':a['next_action']};if(b!==undefined)c['detail']=b;return c;}export function translateVmAbort(a){const b=normalizeErrorMessage(a);if(!b||!/TypeMismatch\s*\{/['test'](b))return undefined;const c=extractVmDebugAbort(b);if(c){const d=lookupCatalogEntry(c['module'],c['code']);if(d)return fieldsOf(d,b);const e=MOVE_ABORT_ERROR_MAP[c['module']+':'+c['code']];return{'code':c['module']+'::ABORT_'+c['code'],'canonical':c['description']??'Chain\x20aborted\x20in\x20module\x20'+c['module']+'\x20(abort\x20code\x20'+c['code']+').','next_action':e?.['recovery_hint']?firstSentence(e['recovery_hint']):'Verify\x20the\x20implicated\x20arguments/state\x20via\x20query_toolkit,\x20fix\x20the\x20cause,\x20then\x20re-call.','detail':b};}if(/abort_code\s*[:=]/['test'](b))return fieldsOf(ERROR_CATALOG['vm:E_VM_TYPE_MISMATCH'],b);return undefined;}export function catalogFieldsFor(a,b){if(!a)return undefined;const c=a['move_abort_info'];if(c){const d=lookupCatalogEntry(c['module'],c['code']);if(d)return fieldsOf(d);const e=MOVE_ABORT_ERROR_MAP[c['module']+':'+c['code']];if(e)return{'code':c['module']+'::ABORT_'+c['code'],'canonical':c['description']??'Chain\x20aborted\x20in\x20module\x20'+c['module']+'\x20(abort\x20code\x20'+c['code']+').','next_action':e['recovery_hint']?firstSentence(e['recovery_hint']):'Verify\x20the\x20implicated\x20arguments/state\x20via\x20query_toolkit,\x20fix\x20the\x20cause,\x20then\x20re-call.'};if(c['description'])return{'code':c['module']+'::ABORT_'+c['code'],'canonical':c['description'],'next_action':'Verify\x20the\x20implicated\x20arguments/state\x20via\x20query_toolkit,\x20fix\x20the\x20cause,\x20then\x20re-call.'};return undefined;}if(a['error_code']==='guard_data_missing')return fieldsOf(ERROR_CATALOG['guard:guard_data_missing']);return translateVmAbort(b);}
@@ -3,15 +3,11 @@ import { type TemplateScanResult } from "../../knowledge/template-scanner.js";
3
3
  import type { DeliverableDefinition } from "../../playbooks/service-build/intent-analyzer.js";
4
4
  import type { IndustryMode } from "../../extensions/index.js";
5
5
  import type { ToolDispatchResult } from "../types.js";
6
+ import { staleBuildFace, type StaleBuildDisclosure } from "./stale-build-check.js";
7
+ export { staleBuildFace };
8
+ export type { StaleBuildDisclosure };
6
9
  export declare function platformMarkRefusal(addr: string, network: string): string | undefined;
7
- export interface StaleBuildDisclosure {
8
- stale: boolean;
9
- known: boolean;
10
- actionable: boolean;
11
- lag_minutes: number | null;
12
- detail: string;
13
- }
14
- export declare function staleBuildFace(srcDir?: string, distDir?: string): StaleBuildDisclosure;
10
+ export declare function recipientMarkRefusal(mark: string, addr: string, network: string): string | undefined;
15
11
  export declare function wipAnchorFace(sales: unknown): {
16
12
  status: string;
17
13
  rule_id: string;
@@ -19,6 +15,13 @@ export declare function wipAnchorFace(sales: unknown): {
19
15
  unpinned_skus: string[];
20
16
  remediation: string;
21
17
  } | undefined;
18
+ export declare function returnNoExitFace(templateId: string): {
19
+ status: string;
20
+ rule_id: string;
21
+ severity: string;
22
+ stranded_nodes: string[];
23
+ remediation: string;
24
+ } | undefined;
22
25
  declare function driftFace(templateId: string): {
23
26
  template: string;
24
27
  state: "current";
@@ -41,6 +44,8 @@ declare function driftFace(templateId: string): {
41
44
  repairable: boolean;
42
45
  detail: string;
43
46
  };
47
+ export declare function planEnvelopeFromInput(planInput: unknown): Record<string, unknown>;
48
+ export declare function templateAdvisoryFaces(templateId: string | undefined): Record<string, unknown>;
44
49
  declare function scanSummary(scan: TemplateScanResult, drift?: ReturnType<typeof driftFace>): {
45
50
  template_id: string;
46
51
  risk_level: import("../../knowledge/template-scanner.js").TemplateRiskLevel;
@@ -72,6 +77,22 @@ declare function scanSummary(scan: TemplateScanResult, drift?: ReturnType<typeof
72
77
  detail: string;
73
78
  } | undefined;
74
79
  };
80
+ export interface PlaceholderResidualHit {
81
+ placeholder: string;
82
+ artifact: string;
83
+ path: string;
84
+ }
85
+ export declare function placeholderResidualCheck(artifacts: Record<string, unknown>): {
86
+ hits: PlaceholderResidualHit[];
87
+ } | null;
88
+ export interface AllocatorCriteriaIssue {
89
+ row: string;
90
+ field: string;
91
+ problem: string;
92
+ }
93
+ export declare function allocatorCriteriaDryRun(artifacts: Record<string, unknown>): {
94
+ hits: AllocatorCriteriaIssue[];
95
+ } | null;
75
96
  export declare function buildVerdict(summary: ReturnType<typeof scanSummary>, plan: Record<string, unknown>, mirrorGenerateHighGate?: boolean, freshness?: StaleBuildDisclosure): {
76
97
  buildable: boolean;
77
98
  blockers: string[];