@wowok/agent-mcp 3.4.0 → 3.4.1

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 (405) hide show
  1. package/README.md +8 -0
  2. package/dist/chain-semantics/composition-truth.d.ts +102 -0
  3. package/dist/chain-semantics/composition-truth.js +1 -0
  4. package/dist/chain-semantics/eval-order.js +1 -1
  5. package/dist/chain-semantics/fund-flow.js +1 -1
  6. package/dist/chain-semantics/index.d.ts +1 -0
  7. package/dist/chain-semantics/index.js +1 -1
  8. package/dist/composition/audit.js +1 -1
  9. package/dist/composition/blueprint-view.d.ts +3 -3
  10. package/dist/composition/blueprint-view.js +1 -1
  11. package/dist/composition/compile.d.ts +24 -3
  12. package/dist/composition/compile.js +1 -1
  13. package/dist/composition/emit-phases.d.ts +206 -0
  14. package/dist/composition/emit-phases.js +1 -0
  15. package/dist/composition/generate.d.ts +40 -0
  16. package/dist/composition/generate.js +1 -0
  17. package/dist/composition/guard-fill.d.ts +44 -0
  18. package/dist/composition/guard-fill.js +1 -0
  19. package/dist/composition/inflight.d.ts +20 -2
  20. package/dist/composition/inflight.js +1 -1
  21. package/dist/composition/input-normalize.d.ts +15 -0
  22. package/dist/composition/input-normalize.js +1 -0
  23. package/dist/composition/materialize.d.ts +18 -13
  24. package/dist/composition/materialize.js +1 -1
  25. package/dist/composition/mode-gates.d.ts +35 -0
  26. package/dist/composition/mode-gates.js +1 -0
  27. package/dist/composition/param-disclosure.js +1 -1
  28. package/dist/composition/plan-retry-ledger.d.ts +21 -0
  29. package/dist/composition/plan-retry-ledger.js +1 -0
  30. package/dist/composition/plan.d.ts +7 -2
  31. package/dist/composition/plan.js +1 -1
  32. package/dist/composition/product-card.d.ts +94 -0
  33. package/dist/composition/product-card.js +1 -0
  34. package/dist/composition/supply-chain-emit.d.ts +46 -0
  35. package/dist/composition/supply-chain-emit.js +1 -0
  36. package/dist/config/config-audit.spec.js +1 -1
  37. package/dist/config/config-warnings.d.ts +2 -0
  38. package/dist/config/config-warnings.js +1 -0
  39. package/dist/config/exposure.d.ts +2 -2
  40. package/dist/config/judgment.d.ts +31 -5
  41. package/dist/config/judgment.js +1 -1
  42. package/dist/config/judgment.spec.js +1 -1
  43. package/dist/config/match-policy-file.d.ts +34 -0
  44. package/dist/config/match-policy-file.js +1 -0
  45. package/dist/config/match-policy-file.spec.d.ts +1 -0
  46. package/dist/config/match-policy-file.spec.js +1 -0
  47. package/dist/config/rule-engine.d.ts +5 -5
  48. package/dist/config/rule-engine.js +1 -1
  49. package/dist/config/runtime.d.ts +0 -1
  50. package/dist/config/runtime.js +1 -1
  51. package/dist/config/severity.d.ts +0 -2
  52. package/dist/config/severity.js +1 -1
  53. package/dist/config/store-policy.spec.js +1 -1
  54. package/dist/config/template-params.d.ts +42 -0
  55. package/dist/config/template-params.js +1 -0
  56. package/dist/config/template-params.spec.d.ts +1 -0
  57. package/dist/config/template-params.spec.js +1 -0
  58. package/dist/data/api/api.spec.js +1 -1
  59. package/dist/data/api/server.js +1 -1
  60. package/dist/data/projection/store.d.ts +2 -1
  61. package/dist/data/projection/store.js +1 -1
  62. package/dist/data/projection/types.d.ts +22 -0
  63. package/dist/data/sync/cdc.d.ts +1 -2
  64. package/dist/data/sync/cdc.js +1 -1
  65. package/dist/evaluation/acceptance.d.ts +8 -0
  66. package/dist/evaluation/acceptance.js +1 -1
  67. package/dist/evaluation/builtins/demand-match.js +1 -1
  68. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  69. package/dist/evaluation/capability.d.ts +2 -0
  70. package/dist/evaluation/category-match-rules.d.ts +0 -1
  71. package/dist/evaluation/category-match-rules.js +1 -1
  72. package/dist/evaluation/composer.d.ts +25 -0
  73. package/dist/evaluation/composer.js +1 -1
  74. package/dist/evaluation/engine.js +1 -1
  75. package/dist/evaluation/extract.d.ts +7 -0
  76. package/dist/evaluation/extract.js +1 -1
  77. package/dist/evaluation/game-strategy.d.ts +0 -3
  78. package/dist/evaluation/game-strategy.js +1 -1
  79. package/dist/evaluation/match-operation.d.ts +9 -0
  80. package/dist/evaluation/match-operation.js +1 -1
  81. package/dist/evaluation/match-policy-resolver.d.ts +9 -0
  82. package/dist/evaluation/match-policy-resolver.js +1 -0
  83. package/dist/evaluation/match-policy.d.ts +3 -1
  84. package/dist/evaluation/match-policy.js +1 -1
  85. package/dist/evaluation/region.d.ts +0 -6
  86. package/dist/evaluation/region.js +1 -1
  87. package/dist/evaluation/standards.d.ts +2 -1
  88. package/dist/evaluation/standards.js +1 -1
  89. package/dist/evaluation/structured-lines.d.ts +8 -0
  90. package/dist/evaluation/structured-lines.js +1 -0
  91. package/dist/evaluation/types.d.ts +6 -0
  92. package/dist/experience/realtime-feedback.js +1 -1
  93. package/dist/extensions/capability-manifest.d.ts +1 -0
  94. package/dist/extensions/capability-manifest.js +1 -1
  95. package/dist/extensions/capability.d.ts +91 -0
  96. package/dist/extensions/capability.js +1 -0
  97. package/dist/extensions/industry-audit.spec.js +1 -1
  98. package/dist/extensions/industry-pack.d.ts +13 -0
  99. package/dist/extensions/industry-pack.js +1 -1
  100. package/dist/extensions/modes.js +1 -1
  101. package/dist/extensions/registry.d.ts +0 -2
  102. package/dist/extensions/registry.js +1 -1
  103. package/dist/goal/GoalEngine.js +1 -1
  104. package/dist/graph/onchain/analyze.js +1 -1
  105. package/dist/graph/onchain/expand.js +1 -1
  106. package/dist/graph/onchain/exposure.js +1 -1
  107. package/dist/graph/onchain/facts.js +1 -1
  108. package/dist/graph/onchain/order-status.d.ts +0 -1
  109. package/dist/graph/onchain/order-status.js +1 -1
  110. package/dist/harness/recover.js +1 -1
  111. package/dist/harness/verify.d.ts +0 -3
  112. package/dist/harness/verify.js +1 -1
  113. package/dist/intent/types.d.ts +0 -1
  114. package/dist/intent/types.js +1 -1
  115. package/dist/keeper/detectors.js +1 -1
  116. package/dist/keeper/types.d.ts +0 -1
  117. package/dist/keeper/types.js +1 -1
  118. package/dist/knowledge/allocation-risk.d.ts +1 -0
  119. package/dist/knowledge/allocation-risk.js +1 -1
  120. package/dist/knowledge/allocator-rail-verifier.d.ts +6 -1
  121. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  122. package/dist/knowledge/arbitration-ledger.js +1 -1
  123. package/dist/knowledge/arbitration-puzzle.js +1 -1
  124. package/dist/knowledge/audit-rules.d.ts +2 -2
  125. package/dist/knowledge/audit-rules.js +1 -1
  126. package/dist/knowledge/baselines/judgment-baselines.json +21 -2
  127. package/dist/knowledge/baselines/rules/oracle.json +120 -0
  128. package/dist/knowledge/baselines/rules/plan.json +384 -17
  129. package/dist/knowledge/baselines/rules/progress.json +20 -2
  130. package/dist/knowledge/builtin-templates.d.ts +12 -1
  131. package/dist/knowledge/builtin-templates.js +1 -1
  132. package/dist/knowledge/component-schema.js +1 -1
  133. package/dist/knowledge/contact-templates.d.ts +0 -1
  134. package/dist/knowledge/contact-templates.js +1 -1
  135. package/dist/knowledge/dynamic-pricing.js +1 -1
  136. package/dist/knowledge/fee-param-bindings.js +1 -1
  137. package/dist/knowledge/fund-layer.d.ts +1 -0
  138. package/dist/knowledge/fund-layer.js +1 -1
  139. package/dist/knowledge/game-scenarios.js +1 -1
  140. package/dist/knowledge/getting-started.js +1 -1
  141. package/dist/knowledge/guard-binding-table.d.ts +52 -0
  142. package/dist/knowledge/guard-binding-table.js +1 -0
  143. package/dist/knowledge/guard-binding-verifier.d.ts +30 -0
  144. package/dist/knowledge/guard-binding-verifier.js +1 -0
  145. package/dist/knowledge/guard-bindings.js +1 -1
  146. package/dist/knowledge/guard-blueprint.d.ts +68 -0
  147. package/dist/knowledge/guard-blueprint.js +1 -0
  148. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  149. package/dist/knowledge/guard-design-patterns.js +1 -1
  150. package/dist/knowledge/guard-field-cognition.js +1 -1
  151. package/dist/knowledge/guard-host-context.d.ts +24 -0
  152. package/dist/knowledge/guard-host-context.js +1 -0
  153. package/dist/knowledge/guard-lint.js +1 -1
  154. package/dist/knowledge/guard-node-gates.d.ts +3 -0
  155. package/dist/knowledge/guard-node-gates.js +1 -1
  156. package/dist/knowledge/guard-puzzle.js +1 -1
  157. package/dist/knowledge/guard-render.js +1 -1
  158. package/dist/knowledge/guard-risk.js +1 -1
  159. package/dist/knowledge/guard-submission-prompt.d.ts +11 -0
  160. package/dist/knowledge/guard-submission-prompt.js +1 -1
  161. package/dist/knowledge/guard-templates.d.ts +1 -1
  162. package/dist/knowledge/guard-templates.js +1 -1
  163. package/dist/knowledge/guard-translation.js +1 -1
  164. package/dist/knowledge/index.d.ts +1 -1
  165. package/dist/knowledge/index.js +1 -1
  166. package/dist/knowledge/industry-generalizer.d.ts +6 -1
  167. package/dist/knowledge/industry-generalizer.js +1 -1
  168. package/dist/knowledge/industry-registry.js +1 -1
  169. package/dist/knowledge/jsonrpc-enum.d.ts +38 -0
  170. package/dist/knowledge/jsonrpc-enum.js +1 -1
  171. package/dist/knowledge/machine-topology.js +1 -1
  172. package/dist/knowledge/machine-translation.js +1 -1
  173. package/dist/knowledge/object-dependency.d.ts +31 -0
  174. package/dist/knowledge/object-dependency.js +1 -0
  175. package/dist/knowledge/onchain-constants.d.ts +2 -0
  176. package/dist/knowledge/onchain-constants.js +1 -1
  177. package/dist/knowledge/param-schema.d.ts +23 -0
  178. package/dist/knowledge/param-schema.js +1 -1
  179. package/dist/knowledge/param-tiers.js +1 -1
  180. package/dist/knowledge/passport-ledger.js +1 -1
  181. package/dist/knowledge/path-oracle/coverage.d.ts +16 -0
  182. package/dist/knowledge/path-oracle/coverage.js +1 -0
  183. package/dist/knowledge/path-oracle/index.d.ts +5 -0
  184. package/dist/knowledge/path-oracle/index.js +1 -0
  185. package/dist/knowledge/path-oracle/products/food-delivery.d.ts +2 -0
  186. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -0
  187. package/dist/knowledge/path-oracle/schema.d.ts +188 -0
  188. package/dist/knowledge/path-oracle/schema.js +1 -0
  189. package/dist/knowledge/pattern-resolutions.d.ts +2 -0
  190. package/dist/knowledge/pattern-resolutions.js +1 -1
  191. package/dist/knowledge/progress-ledger.js +1 -1
  192. package/dist/knowledge/progress-risk.js +1 -1
  193. package/dist/knowledge/projection.spec.js +1 -1
  194. package/dist/knowledge/protocol-facts.js +1 -1
  195. package/dist/knowledge/requirement-families.d.ts +13 -0
  196. package/dist/knowledge/requirement-families.js +1 -0
  197. package/dist/knowledge/reward-ledger.js +1 -1
  198. package/dist/knowledge/scenario-modes.d.ts +1 -0
  199. package/dist/knowledge/scenario-modes.js +1 -1
  200. package/dist/knowledge/semantic-ir.d.ts +4 -0
  201. package/dist/knowledge/semantic-ir.js +1 -1
  202. package/dist/knowledge/service-ledger.d.ts +1 -1
  203. package/dist/knowledge/service-ledger.js +1 -1
  204. package/dist/knowledge/sku-name-gate.d.ts +17 -0
  205. package/dist/knowledge/sku-name-gate.js +1 -0
  206. package/dist/knowledge/supply-chain.d.ts +9 -0
  207. package/dist/knowledge/supply-chain.js +1 -1
  208. package/dist/knowledge/template-loader.d.ts +14 -6
  209. package/dist/knowledge/template-loader.js +1 -1
  210. package/dist/knowledge/template-nav.d.ts +3 -1
  211. package/dist/knowledge/template-nav.js +1 -1
  212. package/dist/knowledge/template-prose.d.ts +1 -1
  213. package/dist/knowledge/template-registry.js +1 -1
  214. package/dist/knowledge/template-scanner.d.ts +62 -0
  215. package/dist/knowledge/template-scanner.js +1 -1
  216. package/dist/knowledge/template-test-profiles.js +1 -1
  217. package/dist/knowledge/tools-reference.js +1 -1
  218. package/dist/knowledge/workflow-guidance.d.ts +5 -0
  219. package/dist/knowledge/workflow-guidance.js +1 -1
  220. package/dist/monitor/MonitorLoop.js +1 -1
  221. package/dist/participation/radar-core.js +1 -1
  222. package/dist/participation/time-window.js +1 -1
  223. package/dist/persona/address-format.d.ts +0 -1
  224. package/dist/persona/address-format.js +1 -1
  225. package/dist/persona/bridge.js +1 -1
  226. package/dist/persona/index.d.ts +0 -2
  227. package/dist/persona/index.js +1 -1
  228. package/dist/persona/model.js +1 -1
  229. package/dist/persona/persona-audit.spec.js +1 -1
  230. package/dist/persona/types.d.ts +6 -0
  231. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  232. package/dist/playbooks/service-build/game-theory.d.ts +2 -2
  233. package/dist/playbooks/service-build/intent-analyzer.js +1 -1
  234. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  235. package/dist/playbooks/service-build/merchant-guide.d.ts +50 -23
  236. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  237. package/dist/playbooks/service-build/migration-planner.d.ts +2 -0
  238. package/dist/playbooks/service-build/migration-planner.js +1 -1
  239. package/dist/playbooks/service-build/mode-actions.js +1 -1
  240. package/dist/playbooks/service-build/object-panorama.d.ts +8 -0
  241. package/dist/playbooks/service-build/object-panorama.js +1 -1
  242. package/dist/playbooks/service-build/participation-radar.js +1 -1
  243. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  244. package/dist/playbooks/service-build/reverse-mapping.d.ts +6 -0
  245. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  246. package/dist/playbooks/service-build/service-panorama.d.ts +1 -0
  247. package/dist/playbooks/service-build/service-panorama.js +1 -1
  248. package/dist/playbooks/service-build/service-quote.js +1 -1
  249. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  250. package/dist/playbooks/service-build/workflow-design-assessment.d.ts +10 -1
  251. package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
  252. package/dist/review/index.js +1 -1
  253. package/dist/review/repository.js +1 -1
  254. package/dist/safety/confirm-gate.js +1 -1
  255. package/dist/schema/benchmark-migration/index.d.ts +104 -0
  256. package/dist/schema/benchmark-migration/index.js +1 -1
  257. package/dist/schema/call/allocation.d.ts +15 -6
  258. package/dist/schema/call/allocation.js +1 -1
  259. package/dist/schema/call/base.d.ts +256 -0
  260. package/dist/schema/call/base.js +1 -1
  261. package/dist/schema/call/bridge.d.ts +32 -6
  262. package/dist/schema/call/demand.d.ts +15 -6
  263. package/dist/schema/call/demand.js +1 -1
  264. package/dist/schema/call/guard.d.ts +8 -8
  265. package/dist/schema/call/guard.js +1 -1
  266. package/dist/schema/call/handler.d.ts +3 -0
  267. package/dist/schema/call/handler.js +1 -1
  268. package/dist/schema/call/machine.d.ts +32 -8
  269. package/dist/schema/call/machine.js +1 -1
  270. package/dist/schema/call/order.d.ts +26 -8
  271. package/dist/schema/call/order.js +1 -1
  272. package/dist/schema/call/payment.d.ts +20 -8
  273. package/dist/schema/call/payment.js +1 -1
  274. package/dist/schema/call/permission-handler.js +1 -1
  275. package/dist/schema/call/permission.d.ts +330 -114
  276. package/dist/schema/call/permission.js +1 -1
  277. package/dist/schema/call/personal.d.ts +10 -4
  278. package/dist/schema/call/personal.js +1 -1
  279. package/dist/schema/call/progress.d.ts +16 -4
  280. package/dist/schema/call/reward.d.ts +10 -4
  281. package/dist/schema/call/reward.js +1 -1
  282. package/dist/schema/call/semantic.d.ts +1 -0
  283. package/dist/schema/call/semantic.js +1 -1
  284. package/dist/schema/call/service.d.ts +128 -40
  285. package/dist/schema/call/service.js +1 -1
  286. package/dist/schema/call/treasury.d.ts +15 -6
  287. package/dist/schema/call/treasury.js +1 -1
  288. package/dist/schema/common/index.js +1 -1
  289. package/dist/schema/config/index.d.ts +61 -0
  290. package/dist/schema/config/index.js +1 -1
  291. package/dist/schema/envelope-unify.d.ts +4 -0
  292. package/dist/schema/envelope-unify.js +1 -0
  293. package/dist/schema/evaluation/index.d.ts +216 -19
  294. package/dist/schema/evaluation/index.js +1 -1
  295. package/dist/schema/goal/index.d.ts +47 -0
  296. package/dist/schema/goal/planning.d.ts +115 -1
  297. package/dist/schema/goal/planning.js +1 -1
  298. package/dist/schema/industry-pack/index.d.ts +137 -6
  299. package/dist/schema/industry-pack/index.js +1 -1
  300. package/dist/schema/industry-pack/modes.d.ts +6 -6
  301. package/dist/schema/keeper/index.d.ts +26 -0
  302. package/dist/schema/local/index.d.ts +137 -0
  303. package/dist/schema/local/index.js +1 -1
  304. package/dist/schema/local/wip.d.ts +6 -0
  305. package/dist/schema/local/wip.js +1 -1
  306. package/dist/schema/messenger/index.d.ts +26 -0
  307. package/dist/schema/operations.d.ts +342 -83
  308. package/dist/schema/operations.js +1 -1
  309. package/dist/schema/persona/index.d.ts +2907 -640
  310. package/dist/schema/persona/index.js +1 -1
  311. package/dist/schema/query/bi.d.ts +145 -4
  312. package/dist/schema/query/bi.js +1 -1
  313. package/dist/schema/query/index.d.ts +266 -73
  314. package/dist/schema/query/index.js +1 -1
  315. package/dist/schema/schema-query/index.d.ts +1 -1
  316. package/dist/schema/schema-query/index.js +1 -1
  317. package/dist/schema/schema-version.js +1 -1
  318. package/dist/schema/utils/permission-machine-check.d.ts +2 -0
  319. package/dist/schema/utils/permission-machine-check.js +1 -1
  320. package/dist/schema/watch/index.d.ts +16 -0
  321. package/dist/schema/watch/index.js +1 -1
  322. package/dist/schema/workflow/index.d.ts +2 -2
  323. package/dist/schema/workflow/index.js +1 -1
  324. package/dist/schema-query-impl/index.d.ts +1 -1
  325. package/dist/schema-query-impl/index.js +1 -1
  326. package/dist/schemas/account_operation.output.json +94 -0
  327. package/dist/schemas/benchmark_migration_operation.output.json +338 -9
  328. package/dist/schemas/benchmark_migration_operation.schema.json +26 -1
  329. package/dist/schemas/bridge_operation.output.json +94 -0
  330. package/dist/schemas/config_operation.output.json +352 -0
  331. package/dist/schemas/config_operation.schema.json +20 -2
  332. package/dist/schemas/evaluation_operation.output.json +570 -4
  333. package/dist/schemas/evaluation_operation.schema.json +194 -3
  334. package/dist/schemas/goal_operation.schema.json +183 -0
  335. package/dist/schemas/index.json +1 -1
  336. package/dist/schemas/industry_pack_operation.output.json +621 -0
  337. package/dist/schemas/industry_pack_operation.schema.json +20 -2
  338. package/dist/schemas/keeper_operation.output.json +94 -0
  339. package/dist/schemas/local_cache_operation.output.json +94 -0
  340. package/dist/schemas/local_history_operation.output.json +94 -0
  341. package/dist/schemas/local_info_operation.output.json +94 -0
  342. package/dist/schemas/local_mark_operation.output.json +94 -0
  343. package/dist/schemas/messenger_operation.output.json +94 -0
  344. package/dist/schemas/monitor_events.output.json +94 -0
  345. package/dist/schemas/monitor_subscription.output.json +94 -0
  346. package/dist/schemas/onchain_events.output.json +94 -0
  347. package/dist/schemas/onchain_operations.output.json +313 -1
  348. package/dist/schemas/onchain_operations.schema.json +1248 -664
  349. package/dist/schemas/onchain_operations_allocation.schema.json +30 -15
  350. package/dist/schemas/onchain_operations_arbitration.schema.json +9 -2
  351. package/dist/schemas/onchain_operations_contact.schema.json +8 -1
  352. package/dist/schemas/onchain_operations_demand.schema.json +29 -14
  353. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -1
  354. package/dist/schemas/onchain_operations_guard.schema.json +290 -105
  355. package/dist/schemas/onchain_operations_machine.schema.json +49 -34
  356. package/dist/schemas/onchain_operations_order.schema.json +63 -40
  357. package/dist/schemas/onchain_operations_payment.schema.json +26 -11
  358. package/dist/schemas/onchain_operations_permission.schema.json +362 -235
  359. package/dist/schemas/onchain_operations_personal.schema.json +27 -15
  360. package/dist/schemas/onchain_operations_progress.schema.json +45 -30
  361. package/dist/schemas/onchain_operations_proof.schema.json +8 -1
  362. package/dist/schemas/onchain_operations_repository.schema.json +8 -1
  363. package/dist/schemas/onchain_operations_reward.schema.json +32 -17
  364. package/dist/schemas/onchain_operations_service.schema.json +221 -124
  365. package/dist/schemas/onchain_operations_treasury.schema.json +32 -17
  366. package/dist/schemas/onchain_table_data.output.json +258 -6
  367. package/dist/schemas/onchain_table_data.schema.json +92 -52
  368. package/dist/schemas/persona_operation.output.json +7752 -0
  369. package/dist/schemas/persona_operation.schema.json +1232 -4
  370. package/dist/schemas/query_toolkit.output.json +756 -116
  371. package/dist/schemas/query_toolkit.schema.json +138 -7
  372. package/dist/schemas/schema_query.schema.json +1 -1
  373. package/dist/schemas/watch_operation.output.json +83 -0
  374. package/dist/schemas/wip_file.output.json +8 -0
  375. package/dist/schemas/workflow_operation.schema.json +2 -2
  376. package/dist/tools/handlers/benchmark-migration.d.ts +11 -3
  377. package/dist/tools/handlers/benchmark-migration.js +1 -1
  378. package/dist/tools/handlers/config.js +1 -1
  379. package/dist/tools/handlers/evaluation.js +1 -1
  380. package/dist/tools/handlers/evaluation.spec.js +1 -1
  381. package/dist/tools/handlers/industry-pack.js +1 -1
  382. package/dist/tools/handlers/onchain.d.ts +20 -0
  383. package/dist/tools/handlers/onchain.js +1 -1
  384. package/dist/tools/handlers/persona.js +1 -1
  385. package/dist/tools/handlers/query.d.ts +8 -0
  386. package/dist/tools/handlers/query.js +1 -1
  387. package/dist/tools/handlers/winner-derivation.d.ts +20 -0
  388. package/dist/tools/handlers/winner-derivation.js +1 -0
  389. package/dist/tools/handlers/wip-upload.js +1 -1
  390. package/dist/tools/index.d.ts +1 -0
  391. package/dist/tools/index.js +1 -1
  392. package/dist/tools/registry/business.js +1 -1
  393. package/dist/tools/registry/config.js +1 -1
  394. package/dist/tools/registry/evaluation.js +1 -1
  395. package/dist/tools/registry/identity.js +1 -1
  396. package/dist/tools/registry/query.js +1 -1
  397. package/dist/tools/transport-integrity.d.ts +7 -0
  398. package/dist/tools/transport-integrity.js +1 -0
  399. package/dist/tools/upgrade-check.js +1 -1
  400. package/dist/tools/wrap.d.ts +5 -0
  401. package/dist/tools/wrap.js +1 -1
  402. package/package.json +2 -2
  403. package/dist/extensions/business-modules.d.ts +0 -54
  404. package/dist/extensions/business-modules.js +0 -1
  405. package/dist/schemas/guard-templates.json +0 -379
@@ -32,6 +32,29 @@ export declare const GuardResolutionInputSchema: z.ZodUnion<readonly [z.ZodObjec
32
32
  }, z.core.$strict>, z.ZodObject<{
33
33
  kind: z.ZodLiteral<"omit">;
34
34
  }, z.core.$strict>]>;
35
+ export declare const SupplyChainPromiseInputSchema: z.ZodObject<{
36
+ sub_service: z.ZodString;
37
+ axis: z.ZodEnum<{
38
+ merchant_procured: "merchant_procured";
39
+ user_procured: "user_procured";
40
+ }>;
41
+ service_name: z.ZodOptional<z.ZodString>;
42
+ done_node: z.ZodString;
43
+ done_node_alt: z.ZodOptional<z.ZodString>;
44
+ done_node_alt2: z.ZodOptional<z.ZodString>;
45
+ form: z.ZodOptional<z.ZodEnum<{
46
+ submission: "submission";
47
+ rendezvous: "rendezvous";
48
+ }>>;
49
+ fact_key: z.ZodOptional<z.ZodString>;
50
+ ack_key: z.ZodOptional<z.ZodString>;
51
+ ack_window_days: z.ZodOptional<z.ZodNumber>;
52
+ payout_to: z.ZodOptional<z.ZodString>;
53
+ payout_rate: z.ZodOptional<z.ZodNumber>;
54
+ repository: z.ZodOptional<z.ZodString>;
55
+ repository_name: z.ZodOptional<z.ZodString>;
56
+ id_prefix: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strict>;
35
58
  export declare const PlanningActionMembers: [z.ZodObject<{
36
59
  target_objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
60
  network: z.ZodOptional<z.ZodEnum<{
@@ -201,6 +224,30 @@ export declare const PlanningActionMembers: [z.ZodObject<{
201
224
  merchant_managed: "merchant_managed";
202
225
  pickup_point: "pickup_point";
203
226
  }>>;
227
+ supply_chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
228
+ sub_service: z.ZodString;
229
+ axis: z.ZodEnum<{
230
+ merchant_procured: "merchant_procured";
231
+ user_procured: "user_procured";
232
+ }>;
233
+ service_name: z.ZodOptional<z.ZodString>;
234
+ done_node: z.ZodString;
235
+ done_node_alt: z.ZodOptional<z.ZodString>;
236
+ done_node_alt2: z.ZodOptional<z.ZodString>;
237
+ form: z.ZodOptional<z.ZodEnum<{
238
+ submission: "submission";
239
+ rendezvous: "rendezvous";
240
+ }>>;
241
+ fact_key: z.ZodOptional<z.ZodString>;
242
+ ack_key: z.ZodOptional<z.ZodString>;
243
+ ack_window_days: z.ZodOptional<z.ZodNumber>;
244
+ payout_to: z.ZodOptional<z.ZodString>;
245
+ payout_rate: z.ZodOptional<z.ZodNumber>;
246
+ repository: z.ZodOptional<z.ZodString>;
247
+ repository_name: z.ZodOptional<z.ZodString>;
248
+ id_prefix: z.ZodOptional<z.ZodString>;
249
+ }, z.core.$strict>>>;
250
+ fee_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
204
251
  }, z.core.$strict>>;
205
252
  guide_confirm: z.ZodOptional<z.ZodObject<{
206
253
  industry: z.ZodOptional<z.ZodString>;
@@ -264,6 +311,29 @@ export declare const PlanningActionMembers: [z.ZodObject<{
264
311
  merchant_managed: "merchant_managed";
265
312
  pickup_point: "pickup_point";
266
313
  }>>;
314
+ supply_chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
+ sub_service: z.ZodString;
316
+ axis: z.ZodEnum<{
317
+ merchant_procured: "merchant_procured";
318
+ user_procured: "user_procured";
319
+ }>;
320
+ service_name: z.ZodOptional<z.ZodString>;
321
+ done_node: z.ZodString;
322
+ done_node_alt: z.ZodOptional<z.ZodString>;
323
+ done_node_alt2: z.ZodOptional<z.ZodString>;
324
+ form: z.ZodOptional<z.ZodEnum<{
325
+ submission: "submission";
326
+ rendezvous: "rendezvous";
327
+ }>>;
328
+ fact_key: z.ZodOptional<z.ZodString>;
329
+ ack_key: z.ZodOptional<z.ZodString>;
330
+ ack_window_days: z.ZodOptional<z.ZodNumber>;
331
+ payout_to: z.ZodOptional<z.ZodString>;
332
+ payout_rate: z.ZodOptional<z.ZodNumber>;
333
+ repository: z.ZodOptional<z.ZodString>;
334
+ repository_name: z.ZodOptional<z.ZodString>;
335
+ id_prefix: z.ZodOptional<z.ZodString>;
336
+ }, z.core.$strict>>>;
267
337
  }, z.core.$strict>>;
268
338
  network: z.ZodOptional<z.ZodEnum<{
269
339
  testnet: "testnet";
@@ -500,6 +570,30 @@ export declare const MerchantGuideResultSchema: z.ZodObject<{
500
570
  merchant_managed: "merchant_managed";
501
571
  pickup_point: "pickup_point";
502
572
  }>>;
573
+ supply_chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
574
+ sub_service: z.ZodString;
575
+ axis: z.ZodEnum<{
576
+ merchant_procured: "merchant_procured";
577
+ user_procured: "user_procured";
578
+ }>;
579
+ service_name: z.ZodOptional<z.ZodString>;
580
+ done_node: z.ZodString;
581
+ done_node_alt: z.ZodOptional<z.ZodString>;
582
+ done_node_alt2: z.ZodOptional<z.ZodString>;
583
+ form: z.ZodOptional<z.ZodEnum<{
584
+ submission: "submission";
585
+ rendezvous: "rendezvous";
586
+ }>>;
587
+ fact_key: z.ZodOptional<z.ZodString>;
588
+ ack_key: z.ZodOptional<z.ZodString>;
589
+ ack_window_days: z.ZodOptional<z.ZodNumber>;
590
+ payout_to: z.ZodOptional<z.ZodString>;
591
+ payout_rate: z.ZodOptional<z.ZodNumber>;
592
+ repository: z.ZodOptional<z.ZodString>;
593
+ repository_name: z.ZodOptional<z.ZodString>;
594
+ id_prefix: z.ZodOptional<z.ZodString>;
595
+ }, z.core.$strict>>>;
596
+ fee_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
503
597
  }, z.core.$strict>;
504
598
  intent_draft: z.ZodOptional<z.ZodUnknown>;
505
599
  industry_options: z.ZodOptional<z.ZodObject<{
@@ -549,7 +643,11 @@ export declare const MerchantGuideResultSchema: z.ZodObject<{
549
643
  plan_satisfied: z.ZodBoolean;
550
644
  missing: z.ZodOptional<z.ZodArray<z.ZodString>>;
551
645
  reason: z.ZodOptional<z.ZodString>;
552
- estimated_score_boost: z.ZodNumber;
646
+ findings: z.ZodArray<z.ZodObject<{
647
+ rule: z.ZodString;
648
+ severity: z.ZodString;
649
+ detail: z.ZodString;
650
+ }, z.core.$strict>>;
553
651
  evidence_matched: z.ZodOptional<z.ZodBoolean>;
554
652
  }, z.core.$strict>>;
555
653
  module_gaps: z.ZodArray<z.ZodObject<{
@@ -605,6 +703,22 @@ export declare const MerchantGuideResultSchema: z.ZodObject<{
605
703
  tool_hint: z.ZodString;
606
704
  failure_if_skipped: z.ZodString;
607
705
  }, z.core.$strict>>>;
706
+ supply_chain: z.ZodOptional<z.ZodArray<z.ZodObject<{
707
+ steps: z.ZodArray<z.ZodString>;
708
+ inputs: z.ZodRecord<z.ZodString, z.ZodString>;
709
+ primitives: z.ZodArray<z.ZodString>;
710
+ notes: z.ZodArray<z.ZodString>;
711
+ handoff: z.ZodOptional<z.ZodObject<{
712
+ repository: z.ZodString;
713
+ writes: z.ZodArray<z.ZodObject<{
714
+ policy: z.ZodString;
715
+ row_id: z.ZodString;
716
+ value: z.ZodString;
717
+ write_guard: z.ZodString;
718
+ submissions: z.ZodString;
719
+ }, z.core.$strict>>;
720
+ }, z.core.$strict>>;
721
+ }, z.core.$strict>>>;
608
722
  warnings: z.ZodArray<z.ZodString>;
609
723
  next_action: z.ZodString;
610
724
  }, z.core.$strict>;
@@ -1 +1 @@
1
- import{z}from'zod';const NetworkEnum=z['enum'](['mainnet','testnet']);export const PlanningIndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case');export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);const IntentContextFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20with\x20deposit\x20and\x20damage\x20inspection\x27).\x20'+'Used\x20as\x20the\x20primary\x20input;\x20falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Optional\x20business\x20name\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Optional\x20business\x20description\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_industry':PlanningIndustryEnum['optional']()['describe']('Industry\x20tag.\x20Drives\x20industry-specific\x20risk\x20calibration\x20(e.g.\x20\x27freelance\x27\x20does\x20NOT\x20require\x20'+'compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20Any\x20registered\x20industry\x20is\x20accepted\x20—\x20'+'builtin:\x20\x27general\x27,\x20\x27retail\x27,\x20\x27retail_d2c\x27,\x20\x27service\x27,\x20\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20'+'\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27\x20—\x20plus\x20custom\x20industries\x20registered\x20via\x20industry\x20packs.')};export const GuardResolutionInputSchema=z['union']([z['object']({'kind':z['literal']('template'),'template_id':z['string']()['describe']('A\x20\x27tpl_*\x27\x20guard\x20template\x20id\x20to\x20fill\x20(template\x20fee_params\x20+\x20params\x20feed\x20the\x20fill).'),'params':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Extra\x20fill\x20params\x20over\x20the\x20merged\x20fee_params.')})['strict'](),z['object']({'kind':z['literal']('inline'),'description':z['string']()['optional']()['describe']('Guard\x20description\x20(defaults\x20to\x20the\x20pending\x20design\x27s\x20purpose).'),'table':z['array'](z['record'](z['string'](),z['unknown']()))['min'](0x1)['describe']('Guard\x20passport\x20table\x20rows\x20(identifier/b_submission/value_type/...).'),'root':z['object']({'type':z['string']()})['passthrough']()['describe']('Guard\x20logic\x20root\x20node\x20(a\x20typed\x20tree\x20node).')['refine'](a=>a['type']['length']>0x0,{'message':'guard\x20root.type\x20must\x20be\x20a\x20non-empty\x20node\x20type'})})['strict'](),z['object']({'kind':z['literal']('omit')})['strict']()]);export const PlanningActionMembers=[z['object']({'action':z['literal']('analyze_intent'),...IntentContextFields,'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C1:\x20natural-language\x20business\x20intent\x20→\x20parsed\x20intent\x20(primary/secondary\x20objects,\x20'+'detected\x20scenes,\x20industry)\x20+\x20per-object\x20puzzle\x20snapshots\x20+\x20recommended\x20creation\x20order.'),z['object']({'action':z['literal']('aggregate_risks'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots,\x20keyed\x20by\x20object_type.\x20Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20'+'analyze_intent\x20result\x20UNCHANGED.\x20When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20'+'analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),...IntentContextFields,'severity_threshold':z['enum'](['critical','high','medium','low','info'])['optional']()['describe']('Severity\x20threshold\x20(default\x20\x27high\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20high\x20risks\x20already\x20confirmed\x20in\x20a\x20prior\x20round.\x20Confirmed\x20high\x20risks\x20no\x20longer\x20'+'trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20the\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20Flags\x20NEW\x20objects\x20whose\x20type\x20'+'carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20the\x20IMMUTABILITY\x20check\x20(safety-rules).\x20Warns\x20which\x20'+'fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C2:\x20puzzle\x20snapshots\x20→\x20cross-object\x20risk\x20calibration\x20(critical/high/medium/low/info)\x20with\x20blocking\x20'+'status.\x20DX\x20sugar:\x20when\x20\x27puzzles\x27\x20is\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first.'),z['object']({'action':z['literal']('trace_substeps'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20(63-spec\x20§2.1).\x20Required\x20when\x20action=\x27trace_substeps\x27.\x20'+'Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C3:\x20substep\x20execution\x20records\x20→\x20DAG\x20coherence\x20analysis\x20(dangling\x20inputs,\x20circular\x20refs,\x20'+'missing\x20outputs,\x20cross-step\x20breaks,\x20topological\x20order,\x20D-10\x20verdict).'),z['object']({'action':z['literal']('merchant_guide'),...IntentContextFields,'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.'),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Accumulated\x20judgment-layer\x20guard\x20resolutions\x20(C6-DEEP)\x20—\x20pass\x20back\x20UNCHANGED\x20with\x20the\x20rest\x20of\x20the\x20state.'),'review_mode':z['enum'](['review','review_reward','none'])['optional']()['describe']('Per-build\x20review-rail\x20mode\x20(v53).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20review_mode\x20applies.'),'reward_funding':z['string']()['optional']()['describe']('Review\x20reward\x20pool\x20funding,\x20smallest-unit\x20string\x20(required\x20when\x20the\x20effective\x20review\x20mode\x20is\x20review_reward).'),'reward_claim_amount':z['string']()['optional']()['describe']('Per-claim\x20reward\x20bounty\x20mounted\x20on\x20the\x20claim\x20guard_add,\x20smallest-unit\x20string\x20(BK15-F09:\x20schema-required\x20on\x20the\x20mount;\x20the\x20kernel\x20never\x20fabricates\x20a\x20real-money\x20parameter).'),'after_sales_mode':z['enum'](['return','exchange','warranty','none'])['optional']()['describe']('Per-build\x20after-sales\x20mode\x20(D12\x20refactor\x204).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20after_sales_mode\x20applies.\x20Declaring\x20a\x20mode\x20with\x20no\x20backing\x20rail\x20in\x20machine_shape\x20is\x20a\x20compile\x20blocker\x20(AFTER_SALES_RAIL_MISSING).'),'acceptance_mode':z['enum'](['milestone','contest','bounty','agent','none'])['optional']()['describe']('Per-build\x20acceptance/judging\x20mode\x20(D12\x20refactor\x202).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20acceptance_mode\x20applies.\x20A\x20judge-decided\x20mode\x20(contest/bounty/agent)\x20without\x20arbitration_mode\x20\x27third_party\x27\x20is\x20a\x20compile\x20blocker\x20(ACCEPTANCE_JUDGE_NOT_INDEPENDENT);\x20a\x20finite\x20revision_rounds_max\x20with\x20no\x20counter\x20Repository\x20guard\x20is\x20a\x20compile\x20blocker\x20(ACCEPTANCE_REVISION_UNBOUNDED).'),'installment_mode':z['enum'](['deposit_balance','milestone_n','none'])['optional']()['describe']('Per-build\x20installment/deposit\x20mode\x20(D12\x20refactor\x203).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20installment_mode\x20applies.\x20A\x20capture\x20forward\x20with\x20no\x20fund-gate\x20Guard\x20is\x20a\x20compile\x20blocker\x20(INSTALLMENT_FUNDING_UNGATED);\x20a\x20deposit-held\x20state\x20with\x20no\x20exit\x20rail\x20is\x20a\x20compile\x20blocker\x20(INSTALLMENT_DEPOSIT_STRANDED).'),'affiliate_mode':z['enum'](['commission','none'])['optional']()['describe']('Per-build\x20affiliate\x20commission\x20overlay\x20(D12\x20batch\x205).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20affiliate_mode\x20applies.\x20A\x20declared\x20commission\x20overlay\x20with\x20no\x20commission\x20rail\x20is\x20a\x20compile\x20blocker\x20(AFFILIATE_RAIL_MISSING);\x20a\x20commission\x20with\x20no\x20post-lock\x20no-clawback\x20disclosure\x20build_note\x20is\x20a\x20compile\x20blocker\x20(AFFILIATE_CLAWBACK_UNDISCLOSED).'),'crowdfunding_mode':z['enum'](['threshold','flexible','none'])['optional']()['describe']('Per-build\x20crowdfunding\x20campaign\x20overlay\x20(D12\x20batch\x207).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20crowdfunding_mode\x20applies.\x20A\x20declared\x20threshold/flexible\x20overlay\x20with\x20no\x20two-leg\x20escrow-exit\x20gate\x20(release\x20XOR\x20refund,\x20D-BUG-2)\x20is\x20a\x20compile\x20blocker\x20(CROWDFUNDING_THRESHOLD_GATE_MISSING);\x20a\x20threshold\x20gate\x20whose\x20aggregate\x20is\x20NOT\x20a\x20writer-bound\x20sum-where\x20(id_from\x20signer)\x20is\x20a\x20compile\x20blocker\x20(CROWDFUNDING_AGGREGATE_UNBOUND);\x20a\x20missing\x20L-04/L-01/L-05\x20disclosure\x20build_note\x20is\x20a\x20compile\x20blocker\x20(CROWDFUNDING_DISCLOSURE_MISSING).'),'logistics_mode':z['enum'](['none','carrier','merchant_managed','courier','pickup_point'])['optional']()['describe']('Per-build\x20fulfillment\x20topology\x20(K3\x20batch\x20C,\x20K-2).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20logistics_mode\x20applies.\x20A\x20declared\x20topology\x20the\x20machine_shape\x20cannot\x20honor\x20is\x20a\x20compile\x20blocker:\x20courier\x20with\x20no\x20named_operator\x20handover\x20rail\x20(LOGISTICS_COURIER_RAIL_MISSING)\x20or\x20a\x20pooled\x20delivery\x20fee\x20(LOGISTICS_COURIER_FEE_POOLED);\x20pickup_point\x20without\x20the\x20absolute\x20batch\x20cutoff\x20or\x20the\x20unclaimed-goods\x20exit\x20window\x20(LOGISTICS_PICKUP_CUTOFF_MISSING);\x20carrier\x20without\x20tracking\x20evidence\x20(LOGISTICS_CARRIER_EVIDENCE_MISSING);\x20any\x20physical\x20mode\x20without\x20a\x20transit-loss\x20story\x20(LOGISTICS_TRANSIT_LOSS_UNCOVERED);\x20courier/pickup_point\x20without\x20the\x20two\x20dispatch\x20disclosures\x20(LOGISTICS_DISPATCH_UNDISCLOSED).')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20every\x20subsequent\x20call.\x20'+'The\x20handler\x20re-runs\x20the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).'),'guard_resolutions':z['record'](z['string'](),GuardResolutionInputSchema)['optional']()['describe']('Judgment-layer\x20resolutions\x20for\x20pending\x20guard\x20designs\x20(keyed\x20by\x20pending_guard_designs[].key;\x20C6-DEEP).\x20'+'A\x20blocked\x20audit\x20lists\x20every\x20unresolved\x20design\x20—\x20resolve\x20each\x20here\x20(kind\x20\x27inline\x27\x20with\x20the\x20resolved\x20Guard\x20table+root,\x20or\x20'+'kind\x20\x27template\x27\x20with\x20a\x20matching\x20tpl_*\x20id)\x20and\x20call\x20merchant_guide\x20again.\x20Advisory\x20designs\x20that\x20do\x20not\x20apply\x20to\x20this\x20'+'shop\x20may\x20be\x20resolved\x20with\x20{kind:\x27omit\x27}\x20instead\x20(honored\x20only\x20for\x20designs\x20with\x20no\x20inbound\x20binding;\x20an\x20omit\x20of\x20a\x20bound\x20'+'design\x20is\x20refused\x20with\x20GUARD_OMIT_UNSUPPORTED).\x20Caller\x20input\x20wins\x20over\x20module-derived\x20resolutions.\x20'+'The\x20publish\x20freeze\x20gate\x20still\x20runs:\x20a\x20resolution\x20only\x20unblocks\x20the\x20plan\x20when\x20the\x20closed\x20audit\x20is\x20clean.'),'review_mode':z['enum'](['review','review_reward','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20review-rail\x20mode\x20(v53).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20review_mode\x20applies.'),'reward_funding':z['string']()['optional']()['describe']('Step\x206\x20confirmation:\x20review\x20reward\x20pool\x20funding,\x20smallest-unit\x20string\x20(required\x20when\x20the\x20effective\x20review\x20mode\x20is\x20review_reward).'),'reward_claim_amount':z['string']()['optional']()['describe']('Step\x206\x20confirmation:\x20per-claim\x20reward\x20bounty\x20on\x20the\x20claim\x20guard_add,\x20smallest-unit\x20string\x20(BK15-F09).'),'after_sales_mode':z['enum'](['return','exchange','warranty','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20after-sales\x20mode\x20(D12\x20refactor\x204).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20after_sales_mode\x20applies.'),'acceptance_mode':z['enum'](['milestone','contest','bounty','agent','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20acceptance/judging\x20mode\x20(D12\x20refactor\x202).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20acceptance_mode\x20applies.'),'installment_mode':z['enum'](['deposit_balance','milestone_n','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20installment/deposit\x20mode\x20(D12\x20refactor\x203).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20installment_mode\x20applies.'),'affiliate_mode':z['enum'](['commission','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20affiliate\x20commission\x20overlay\x20(D12\x20batch\x205).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20affiliate_mode\x20applies.'),'crowdfunding_mode':z['enum'](['threshold','flexible','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20crowdfunding\x20campaign\x20overlay\x20(D12\x20batch\x207).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20crowdfunding_mode\x20applies.'),'logistics_mode':z['enum'](['none','carrier','merchant_managed','courier','pickup_point'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20fulfillment\x20topology\x20(K3\x20batch\x20C,\x20K-2).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20logistics_mode\x20applies.')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20Typical\x20flow:\x20'+'call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20call\x202\x20with\x20guide_state\x20+\x20'+'guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20plan\x20(steps\x207-10).'),'network':NetworkEnum['optional']()})['strict']()['describe']('10-step\x20merchant\x20onboarding\x20wizard:\x20intent\x20text\x20→\x20BusinessIntent\x20→\x20industry\x20confirmation\x20→\x20'+'module\x20adoption\x20→\x20Blueprint\x20(L1\x20plan\x20projection)\x20→\x20evaluation\x20preview\x20→\x20harness\x20check\x20→\x20creation\x20'+'plan.\x20NEVER\x20executes\x20on-chain\x20operations.\x20Stateless:\x20pass\x20guide_state/guide_confirm\x20to\x20advance.')];const KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict']();export const AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict']();const AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict']();export const AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(critical\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['CLEAN_WITHIN_SCOPE','STATIC_ANALYZERS_CLEAN','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20critical\x20or\x20above-threshold\x20risks\x20present.\x20'+'⚠️\x20THIS\x20IS\x20A\x20SEVERITY\x20VERDICT,\x20NOT\x20PUBLISH\x20CLEARANCE:\x20the\x20aggregation\x20is\x20a\x20pure\x20transformation\x20over\x20puzzle\x20'+'snapshots\x20and\x20planned\x20objects/operations\x20and\x20never\x20reads\x20a\x20live\x20object.\x20CLEAN_WITHIN_SCOPE\x20means\x20\x27no\x20finding\x20in\x20the\x20static\x20'+'analyzers\x20AND\x20zero\x20on-chain\x20objects\x20inspected\x27\x20—\x20read\x20`evidence_scope`\x20/\x20`objects_inspected`\x20/\x20`publish_authorized`\x20before\x20'+'treating\x20it\x20as\x20a\x20green\x20light.\x20STATIC_ANALYZERS_CLEAN\x20is\x20reserved\x20for\x20a\x20future\x20object-grounded\x20clean\x20run.'),'status_note':z['string']()['optional']()['describe']('One-line\x20honesty\x20note\x20for\x20the\x20status:\x20it\x20reflects\x20static\x20analyzers\x20over\x20plan\x20snapshots\x20only\x20—\x20zero\x20on-chain\x20objects\x20inspected;\x20not\x20a\x20publish\x20clearance.'),'objects_inspected':z['number']()['optional']()['describe']('How\x20many\x20live\x20on-chain\x20objects\x20this\x20aggregation\x20inspected.\x20Always\x200\x20today\x20(the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20reads)\x20—\x20a\x20clean\x20status\x20over\x20zero\x20objects\x20must\x20never\x20read\x20as\x20clearance.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('high\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'evidence_scope':z['enum'](['puzzle_snapshots_only','object_grounded'])['optional']()['describe']('What\x20this\x20aggregation\x20actually\x20inspected.\x20Always\x20\x27puzzle_snapshots_only\x27\x20today:\x20the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20'+'reads.\x20Machine-readable\x20form\x20of\x20the\x20scope\x20warning\x20—\x20a\x20caller\x20must\x20not\x20have\x20to\x20infer\x20it\x20from\x20prose.'),'object_grounded':z['boolean']()['optional']()['describe']('True\x20only\x20if\x20a\x20live\x20on-chain\x20object\x20was\x20inspected.\x20Currently\x20always\x20false\x20(see\x20evidence_scope).'),'publish_authorized':z['boolean']()['optional']()['describe']('Whether\x20this\x20gate\x20alone\x20authorizes\x20publishing.\x20Currently\x20always\x20false:\x20use\x20template_scan\x20before\x20deploying\x20and\x20'+'service_panorama\x20/\x20onchain_objects\x20after,\x20plus\x20the\x20publish-time\x20gates\x20in\x20onchain_operations.'),'publish_authorized_reason':z['string']()['optional']()['describe']('Why\x20publish_authorized\x20is\x20false,\x20and\x20which\x20checks\x20to\x20run\x20instead.'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty']),'classification_source':z['string']()['optional']()['describe']('Where\x20the\x20industry\x20guess\x20came\x20from.\x20\x27aggregate_risks_intent_echo\x27\x20=\x20this\x20tool\x27s\x20own\x20classification\x20of\x20the\x20intent\x20text\x20—\x20NOT\x20a\x20reconciled\x20verdict\x20(other\x20subsystems\x20may\x20classify\x20the\x20same\x20intent\x20differently).')})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict']();export const TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict']();export const MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional'](),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional'](),'review_mode':z['enum'](['review','review_reward','none'])['optional'](),'reward_funding':z['string']()['optional'](),'reward_claim_amount':z['string']()['optional'](),'after_sales_mode':z['enum'](['return','exchange','warranty','none'])['optional'](),'acceptance_mode':z['enum'](['milestone','contest','bounty','agent','none'])['optional'](),'installment_mode':z['enum'](['deposit_balance','milestone_n','none'])['optional'](),'affiliate_mode':z['enum'](['commission','none'])['optional'](),'crowdfunding_mode':z['enum'](['threshold','flexible','none'])['optional'](),'logistics_mode':z['enum'](['none','carrier','merchant_managed','courier','pickup_point'])['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts\x20(G-04:\x20no\x20trust\x20score\x20—\x20none\x20is\x20evaluated\x20at\x20build\x20time).'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number'](),'evidence_matched':z['boolean']()['optional']()['describe']('G-03:\x20false\x20=\x20the\x20module\x20was\x20auto-adopted\x20by\x20score\x20with\x20no\x20explicit\x20intent\x20evidence\x20—\x20estimated_score_boost\x20is\x20recorded\x20as\x200.')})['strict']()),'module_gaps':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'pending_guard_designs':z['array'](z['object']({'key':z['string']()['describe']('Guard\x20design\x20key\x20—\x20the\x20guide_confirm.guard_resolutions\x20lookup\x20key.'),'template_id':z['string']()['describe']('The\x20pattern.*/tpl_*\x20design\x20id.'),'host':z['string']()['describe']('Attachment\x20surface\x20(service\x20buy\x20path,\x20machine\x20forward,\x20allocator\x20row,\x20...).'),'purpose':z['string']()['describe']('What\x20the\x20design\x20gates.'),'logic_summary':z['string']()['optional']()['describe']('Pattern\x20logic\x20sketch\x20(pattern.*\x20catalog)\x20to\x20guide\x20the\x20resolution.'),'logic_summary_note':z['string']()['optional']()['describe']('p8k2\x20T-03:\x20the\x20sketch\x20above\x20is\x20POLARITY-BLIND\x20for\x20refund/recover\x20rails\x20—\x20this\x20note\x20names\x20the\x20claimed_by\x20polarity\x20leg\x20the\x20rail\x20REQUIRES\x20and\x20warns\x20against\x20sharing\x20one\x20resolved\x20guard\x20across\x20the\x20twin\x20rails.'),'key_queries':z['array'](z['string']())['optional']()['describe']('Key\x20queries\x20the\x20pattern\x20reads.'),'how_to_resolve':z['string']()['describe']('Exact\x20guide_confirm.guard_resolutions\x20entry\x20shape\x20for\x20this\x20design.')})['strict']())['optional']()['describe']('Step\x209\x20(blocked):\x20every\x20unresolved\x20guard\x20design\x20with\x20its\x20pattern\x27s\x20logic\x20sketch\x20(C6-DEEP).\x20'+'The\x20judgment\x20layer\x20resolves\x20each\x20via\x20guide_confirm.guard_resolutions;\x20the\x20audit\x20freeze\x20gate\x20still\x20decides.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209:\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20onchain_operations.'),'post_deploy_steps':z['array'](z['object']({'order':z['number'](),'id':z['string'](),'title':z['string'](),'when':z['string'](),'action':z['string'](),'tool_hint':z['string'](),'failure_if_skipped':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20ordered\x20executable\x20post-deploy\x20steps\x20(compensation\x20fund\x20top-up\x20R-4,\x20arbitration\x20unpause\x20R-5,\x20settlement\x20alloc_by_guard\x20R-2,\x20panorama\x20verification).\x20Run\x20via\x20onchain_operations\x20AFTER\x20the\x20creation\x20plan\x20materializes.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict']();
1
+ import{z}from'zod';const NetworkEnum=z['enum'](['mainnet','testnet']);export const PlanningIndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case');export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);const IntentContextFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20with\x20deposit\x20and\x20damage\x20inspection\x27).\x20'+'Used\x20as\x20the\x20primary\x20input;\x20falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Optional\x20business\x20name\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Optional\x20business\x20description\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_industry':PlanningIndustryEnum['optional']()['describe']('Industry\x20tag.\x20Drives\x20industry-specific\x20risk\x20calibration\x20(e.g.\x20\x27freelance\x27\x20does\x20NOT\x20require\x20'+'compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20Any\x20registered\x20industry\x20is\x20accepted\x20—\x20'+'builtin:\x20\x27general\x27,\x20\x27retail\x27,\x20\x27retail_d2c\x27,\x20\x27service\x27,\x20\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20'+'\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27\x20—\x20plus\x20custom\x20industries\x20registered\x20via\x20industry\x20packs.')};export const GuardResolutionInputSchema=z['union']([z['object']({'kind':z['literal']('template'),'template_id':z['string']()['describe']('A\x20\x27tpl_*\x27\x20guard\x20template\x20id\x20to\x20fill\x20(template\x20fee_params\x20+\x20params\x20feed\x20the\x20fill).'),'params':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Extra\x20fill\x20params\x20over\x20the\x20merged\x20fee_params.')})['strict'](),z['object']({'kind':z['literal']('inline'),'description':z['string']()['optional']()['describe']('Guard\x20description\x20(defaults\x20to\x20the\x20pending\x20design\x27s\x20purpose).'),'table':z['array'](z['record'](z['string'](),z['unknown']()))['min'](0x1)['describe']('Guard\x20passport\x20table\x20rows\x20(identifier/b_submission/value_type/...).'),'root':z['object']({'type':z['string']()})['passthrough']()['describe']('Guard\x20logic\x20root\x20node\x20(a\x20typed\x20tree\x20node).')['refine'](a=>a['type']['length']>0x0,{'message':'guard\x20root.type\x20must\x20be\x20a\x20non-empty\x20node\x20type'})})['strict'](),z['object']({'kind':z['literal']('omit')})['strict']()]);export const SupplyChainPromiseInputSchema=z['object']({'sub_service':z['string']()['describe']('The\x20procured\x20sub-Service:\x20an\x20on-chain\x20address\x20or\x20a\x20resolvable\x20LocalMark/service\x20name.'),'axis':z['enum'](['merchant_procured','user_procured'])['describe']('Who\x20owns\x20the\x20fulfilment\x20order.\x20merchant_procured\x20=\x20this\x20merchant\x20buys\x20it\x20(the\x20merchant-side\x20rail\x20pays\x20payout_to\x20and\x20no\x20cross-order\x20owner\x20tie\x20is\x20emitted);\x20'+'user_procured\x20=\x20the\x20buyer\x20buys\x20it\x20and\x20presents\x20the\x20foreign\x20order\x20(the\x20rail\x20asserts\x20order.owner(host)\x20==\x20order.owner(foreign)).'),'service_name':z['string']()['optional']()['describe']('The\x20host\x20Service\x27s\x20own\x20name\x20(the\x20money\x20gate\x27s\x20host\x20binding).\x20Default:\x20the\x20plan\x27s\x20Service\x20create\x20name.'),'done_node':z['string']()['describe']('The\x20node\x20whose\x20arrival\x20makes\x20an\x20order\x20settle-eligible\x20(e.g.\x20\x27completed\x27\x20or\x20\x27delivered\x27).'),'done_node_alt':z['string']()['optional']()['describe']('A\x20further\x20settle-eligible\x20node\x20—\x20pass\x20every\x20optional\x20post-settlement\x20side\x20action\x27s\x20node\x20so\x20the\x20rail\x20still\x20fires\x20after\x20Praise\x20moves\x20progress.current.'),'done_node_alt2':z['string']()['optional']()['describe']('A\x20third\x20settle-eligible\x20node.'),'form':z['enum'](['rendezvous','submission'])['optional']()['describe']('How\x20the\x20fulfilment\x20fact\x20reaches\x20the\x20money\x20gate.\x20rendezvous\x20(default)\x20proves\x20the\x20pairing\x20through\x20a\x20shared\x20ledger\x20row;\x20submission\x20only\x20records\x20the\x20caller-supplied\x20foreign\x20order\x20address\x20(P2\x20only,\x20weaker).'),'fact_key':z['string']()['optional']()['describe']('Policy\x20key\x20of\x20the\x20forward\x20fulfilment\x20row.\x20Default\x20\x27fulfilment\x27.'),'ack_key':z['string']()['optional']()['describe']('Policy\x20key\x20of\x20the\x20buyer\x20acknowledgement.\x20Default\x20\x27<fact_key>_ack\x27.'),'ack_window_days':z['number']()['optional']()['describe']('merchant_procured\x20only:\x20days\x20of\x20buyer\x20silence\x20that\x20count\x20as\x20acknowledgement,\x20measured\x20from\x20the\x20order\x27s\x20LAST\x20entry\x20into\x20done_node.\x20Default\x203;\x200\x20is\x20refused\x20(a\x20costless\x20veto).'),'payout_to':z['string']()['optional']()['describe']('The\x20fulfilment\x20party\x27s\x20payout\x20address.\x20Absent\x20=\x20no\x20third-party\x20rail\x20(the\x20host\x20merchant\x20settles\x20the\x20sub-service\x20itself).'),'payout_rate':z['number']()['optional']()['describe']('Basis\x20points\x20(1..10000)\x20of\x20the\x20settlement\x20rail\x20paid\x20to\x20payout_to.\x20Default\x2010000.'),'repository':z['string']()['optional']()['describe']('An\x20EXISTING\x20rendezvous\x20Repository\x20name\x20to\x20reuse.\x20Omit\x20to\x20create\x20one\x20(see\x20repository_name).'),'repository_name':z['string']()['optional']()['describe']('The\x20name\x20a\x20CREATED\x20rendezvous\x20Repository\x20takes.\x20Default\x20\x27<service_name>_supply_chain\x27.\x20Ignored\x20when\x20`repository`\x20names\x20an\x20existing\x20one.'),'id_prefix':z['string']()['optional']()['describe']('Step-id\x20prefix\x20for\x20the\x20emitted\x20objects.\x20Default\x20\x27sc\x27\x20for\x20the\x20first\x20promise,\x20\x27sc2\x27,\x20\x27sc3\x27...\x20for\x20later\x20ones.\x20An\x20explicit\x20duplicate\x20is\x20refused\x20(SUPPLY_CHAIN_ID_CONFLICT).')})['strict']();export const PlanningActionMembers=[z['object']({'action':z['literal']('analyze_intent'),...IntentContextFields,'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C1:\x20natural-language\x20business\x20intent\x20→\x20parsed\x20intent\x20(primary/secondary\x20objects,\x20'+'detected\x20scenes,\x20industry)\x20+\x20per-object\x20puzzle\x20snapshots\x20+\x20recommended\x20creation\x20order.'),z['object']({'action':z['literal']('aggregate_risks'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots,\x20keyed\x20by\x20object_type.\x20Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20'+'analyze_intent\x20result\x20UNCHANGED.\x20When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20'+'analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),...IntentContextFields,'severity_threshold':z['enum'](['critical','high','medium','low','info'])['optional']()['describe']('Severity\x20threshold\x20(default\x20\x27high\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20high\x20risks\x20already\x20confirmed\x20in\x20a\x20prior\x20round.\x20Confirmed\x20high\x20risks\x20no\x20longer\x20'+'trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20the\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20Flags\x20NEW\x20objects\x20whose\x20type\x20'+'carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20the\x20IMMUTABILITY\x20check\x20(safety-rules).\x20Warns\x20which\x20'+'fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C2:\x20puzzle\x20snapshots\x20→\x20cross-object\x20risk\x20calibration\x20(critical/high/medium/low/info)\x20with\x20blocking\x20'+'status.\x20DX\x20sugar:\x20when\x20\x27puzzles\x27\x20is\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first.'),z['object']({'action':z['literal']('trace_substeps'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20(63-spec\x20§2.1).\x20Required\x20when\x20action=\x27trace_substeps\x27.\x20'+'Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C3:\x20substep\x20execution\x20records\x20→\x20DAG\x20coherence\x20analysis\x20(dangling\x20inputs,\x20circular\x20refs,\x20'+'missing\x20outputs,\x20cross-step\x20breaks,\x20topological\x20order,\x20D-10\x20verdict).'),z['object']({'action':z['literal']('merchant_guide'),...IntentContextFields,'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.'),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Accumulated\x20judgment-layer\x20guard\x20resolutions\x20(C6-DEEP)\x20—\x20pass\x20back\x20UNCHANGED\x20with\x20the\x20rest\x20of\x20the\x20state.'),'review_mode':z['enum'](['review','review_reward','none'])['optional']()['describe']('Per-build\x20review-rail\x20mode\x20(v53).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20review_mode\x20applies.'),'reward_funding':z['string']()['optional']()['describe']('Review\x20reward\x20pool\x20funding,\x20smallest-unit\x20string\x20(required\x20when\x20the\x20effective\x20review\x20mode\x20is\x20review_reward).'),'reward_claim_amount':z['string']()['optional']()['describe']('Per-claim\x20reward\x20bounty\x20mounted\x20on\x20the\x20claim\x20guard_add,\x20smallest-unit\x20string\x20(BK15-F09:\x20schema-required\x20on\x20the\x20mount;\x20the\x20kernel\x20never\x20fabricates\x20a\x20real-money\x20parameter).'),'after_sales_mode':z['enum'](['return','exchange','warranty','none'])['optional']()['describe']('Per-build\x20after-sales\x20mode\x20(D12\x20refactor\x204).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20after_sales_mode\x20applies.\x20Declaring\x20a\x20mode\x20with\x20no\x20backing\x20rail\x20in\x20machine_shape\x20is\x20a\x20compile\x20blocker\x20(AFTER_SALES_RAIL_MISSING).'),'acceptance_mode':z['enum'](['milestone','contest','bounty','agent','none'])['optional']()['describe']('Per-build\x20acceptance/judging\x20mode\x20(D12\x20refactor\x202).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20acceptance_mode\x20applies.\x20A\x20judge-decided\x20mode\x20(contest/bounty/agent)\x20without\x20arbitration_mode\x20\x27third_party\x27\x20is\x20a\x20compile\x20blocker\x20(ACCEPTANCE_JUDGE_NOT_INDEPENDENT);\x20a\x20finite\x20revision_rounds_max\x20with\x20no\x20counter\x20Repository\x20guard\x20is\x20a\x20compile\x20blocker\x20(ACCEPTANCE_REVISION_UNBOUNDED).'),'installment_mode':z['enum'](['deposit_balance','milestone_n','none'])['optional']()['describe']('Per-build\x20installment/deposit\x20mode\x20(D12\x20refactor\x203).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20installment_mode\x20applies.\x20A\x20capture\x20forward\x20with\x20no\x20fund-gate\x20Guard\x20is\x20a\x20compile\x20blocker\x20(INSTALLMENT_FUNDING_UNGATED);\x20a\x20deposit-held\x20state\x20with\x20no\x20exit\x20rail\x20is\x20a\x20compile\x20blocker\x20(INSTALLMENT_DEPOSIT_STRANDED).'),'affiliate_mode':z['enum'](['commission','none'])['optional']()['describe']('Per-build\x20affiliate\x20commission\x20overlay\x20(D12\x20batch\x205).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20affiliate_mode\x20applies.\x20A\x20declared\x20commission\x20overlay\x20with\x20no\x20commission\x20rail\x20is\x20a\x20compile\x20blocker\x20(AFFILIATE_RAIL_MISSING);\x20a\x20commission\x20with\x20no\x20post-lock\x20no-clawback\x20disclosure\x20build_note\x20is\x20a\x20compile\x20blocker\x20(AFFILIATE_CLAWBACK_UNDISCLOSED).'),'crowdfunding_mode':z['enum'](['threshold','flexible','none'])['optional']()['describe']('Per-build\x20crowdfunding\x20campaign\x20overlay\x20(D12\x20batch\x207).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20crowdfunding_mode\x20applies.\x20A\x20declared\x20threshold/flexible\x20overlay\x20with\x20no\x20two-leg\x20escrow-exit\x20gate\x20(release\x20XOR\x20refund,\x20D-BUG-2)\x20is\x20a\x20compile\x20blocker\x20(CROWDFUNDING_THRESHOLD_GATE_MISSING);\x20a\x20threshold\x20gate\x20whose\x20aggregate\x20is\x20NOT\x20a\x20writer-bound\x20sum-where\x20(id_from\x20signer)\x20is\x20a\x20compile\x20blocker\x20(CROWDFUNDING_AGGREGATE_UNBOUND);\x20a\x20missing\x20L-04/L-01/L-05\x20disclosure\x20build_note\x20is\x20a\x20compile\x20blocker\x20(CROWDFUNDING_DISCLOSURE_MISSING).'),'logistics_mode':z['enum'](['none','carrier','merchant_managed','courier','pickup_point'])['optional']()['describe']('Per-build\x20fulfillment\x20topology\x20(K3\x20batch\x20C,\x20K-2).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20logistics_mode\x20applies.\x20A\x20declared\x20topology\x20the\x20machine_shape\x20cannot\x20honor\x20is\x20a\x20compile\x20blocker:\x20courier\x20with\x20no\x20named_operator\x20handover\x20rail\x20(LOGISTICS_COURIER_RAIL_MISSING)\x20or\x20a\x20pooled\x20delivery\x20fee\x20(LOGISTICS_COURIER_FEE_POOLED);\x20pickup_point\x20without\x20the\x20absolute\x20batch\x20cutoff\x20or\x20the\x20unclaimed-goods\x20exit\x20window\x20(LOGISTICS_PICKUP_CUTOFF_MISSING);\x20carrier\x20without\x20tracking\x20evidence\x20(LOGISTICS_CARRIER_EVIDENCE_MISSING);\x20any\x20physical\x20mode\x20without\x20a\x20transit-loss\x20story\x20(LOGISTICS_TRANSIT_LOSS_UNCOVERED);\x20courier/pickup_point\x20without\x20the\x20two\x20dispatch\x20disclosures\x20(LOGISTICS_DISPATCH_UNDISCLOSED).'),'supply_chain':z['array'](SupplyChainPromiseInputSchema)['optional']()['describe']('Supply-chain\x20composition\x20(Goal\x202/4):\x20the\x20Services\x20this\x20shop\x20PROCURES\x20fulfilment\x20from.\x20compile\x20appends\x20each\x20promise\x27s\x20material\x20(order_allocators-bound\x20settlement\x20gate,\x20rendezvous\x20ledger,\x20optional\x20third-party\x20payout\x20rail)\x20BEFORE\x20the\x20Service\x20publish\x20and\x20declares\x20plan.inputs.fulfillment_axis.\x20Incomplete\x20or\x20conflicting\x20promises\x20are\x20compile\x20blockers\x20(SUPPLY_CHAIN_PROMISE_INCOMPLETE\x20/\x20_GATE_TEMPLATE\x20/\x20_ACK_WITHOUT_DEADLINE\x20/\x20_PAYOUT_RATE\x20/\x20_ID_CONFLICT).\x20Absent\x20=\x20the\x20shop\x20fulfils\x20everything\x20itself.'),'fee_overrides':z['record'](z['string'](),z['union']([z['number'](),z['string']()]))['optional']()['describe']('P2-3:\x20answers\x20to\x20the\x20template\x27s\x20structured\x20business\x20questions\x20(user_input_questions\x20of\x20the\x20prior\x20result),\x20keyed\x20by\x20the\x20fee_params\x20name\x20—\x20e.g.\x20{\x20settlement_days:\x2020\x20}.\x20Each\x20entry\x20is\x20a\x20compile\x20input,\x20so\x20the\x20answer\x20overrides\x20the\x20template\x20default;\x20unanswered\x20questions\x20keep\x20the\x20default.')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20every\x20subsequent\x20call.\x20'+'The\x20handler\x20re-runs\x20the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).'),'guard_resolutions':z['record'](z['string'](),GuardResolutionInputSchema)['optional']()['describe']('Judgment-layer\x20resolutions\x20for\x20pending\x20guard\x20designs\x20(keyed\x20by\x20pending_guard_designs[].key;\x20C6-DEEP).\x20'+'A\x20blocked\x20audit\x20lists\x20every\x20unresolved\x20design\x20—\x20resolve\x20each\x20here\x20(kind\x20\x27inline\x27\x20with\x20the\x20resolved\x20Guard\x20table+root,\x20or\x20'+'kind\x20\x27template\x27\x20with\x20a\x20matching\x20tpl_*\x20id)\x20and\x20call\x20merchant_guide\x20again.\x20Advisory\x20designs\x20that\x20do\x20not\x20apply\x20to\x20this\x20'+'shop\x20may\x20be\x20resolved\x20with\x20{kind:\x27omit\x27}\x20instead\x20(honored\x20only\x20for\x20designs\x20with\x20no\x20inbound\x20binding;\x20an\x20omit\x20of\x20a\x20bound\x20'+'design\x20is\x20refused\x20with\x20GUARD_OMIT_UNSUPPORTED).\x20Caller\x20input\x20wins\x20over\x20module-derived\x20resolutions.\x20'+'The\x20publish\x20freeze\x20gate\x20still\x20runs:\x20a\x20resolution\x20only\x20unblocks\x20the\x20plan\x20when\x20the\x20closed\x20audit\x20is\x20clean.'),'review_mode':z['enum'](['review','review_reward','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20review-rail\x20mode\x20(v53).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20review_mode\x20applies.'),'reward_funding':z['string']()['optional']()['describe']('Step\x206\x20confirmation:\x20review\x20reward\x20pool\x20funding,\x20smallest-unit\x20string\x20(required\x20when\x20the\x20effective\x20review\x20mode\x20is\x20review_reward).'),'reward_claim_amount':z['string']()['optional']()['describe']('Step\x206\x20confirmation:\x20per-claim\x20reward\x20bounty\x20on\x20the\x20claim\x20guard_add,\x20smallest-unit\x20string\x20(BK15-F09).'),'after_sales_mode':z['enum'](['return','exchange','warranty','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20after-sales\x20mode\x20(D12\x20refactor\x204).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20after_sales_mode\x20applies.'),'acceptance_mode':z['enum'](['milestone','contest','bounty','agent','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20acceptance/judging\x20mode\x20(D12\x20refactor\x202).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20acceptance_mode\x20applies.'),'installment_mode':z['enum'](['deposit_balance','milestone_n','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20installment/deposit\x20mode\x20(D12\x20refactor\x203).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20installment_mode\x20applies.'),'affiliate_mode':z['enum'](['commission','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20affiliate\x20commission\x20overlay\x20(D12\x20batch\x205).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20affiliate_mode\x20applies.'),'crowdfunding_mode':z['enum'](['threshold','flexible','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20crowdfunding\x20campaign\x20overlay\x20(D12\x20batch\x207).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20crowdfunding_mode\x20applies.'),'logistics_mode':z['enum'](['none','carrier','merchant_managed','courier','pickup_point'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20fulfillment\x20topology\x20(K3\x20batch\x20C,\x20K-2).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20logistics_mode\x20applies.'),'supply_chain':z['array'](SupplyChainPromiseInputSchema)['optional']()['describe']('Step\x206\x20confirmation:\x20Supply-chain\x20composition\x20(Goal\x202/4)\x20—\x20the\x20Services\x20this\x20shop\x20PROCURES\x20fulfilment\x20from.\x20Emitted\x20by\x20compile\x20as\x20build\x20material\x20(rendezvous\x20gate\x20+\x20ledger\x20+\x20optional\x20third-party\x20payout\x20rail)\x20before\x20the\x20Service\x20publish.')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20Typical\x20flow:\x20'+'call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20call\x202\x20with\x20guide_state\x20+\x20'+'guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20plan\x20(steps\x207-10).'),'network':NetworkEnum['optional']()})['strict']()['describe']('10-step\x20merchant\x20onboarding\x20wizard:\x20intent\x20text\x20→\x20BusinessIntent\x20→\x20industry\x20confirmation\x20→\x20'+'module\x20adoption\x20→\x20Blueprint\x20(L1\x20plan\x20projection)\x20→\x20evaluation\x20preview\x20→\x20harness\x20check\x20→\x20creation\x20'+'plan.\x20NEVER\x20executes\x20on-chain\x20operations.\x20Stateless:\x20pass\x20guide_state/guide_confirm\x20to\x20advance.')];const KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict']();export const AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict']();const AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict']();export const AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(critical\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['CLEAN_WITHIN_SCOPE','STATIC_ANALYZERS_CLEAN','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20critical\x20or\x20above-threshold\x20risks\x20present.\x20'+'⚠️\x20THIS\x20IS\x20A\x20SEVERITY\x20VERDICT,\x20NOT\x20PUBLISH\x20CLEARANCE:\x20the\x20aggregation\x20is\x20a\x20pure\x20transformation\x20over\x20puzzle\x20'+'snapshots\x20and\x20planned\x20objects/operations\x20and\x20never\x20reads\x20a\x20live\x20object.\x20CLEAN_WITHIN_SCOPE\x20means\x20\x27no\x20finding\x20in\x20the\x20static\x20'+'analyzers\x20AND\x20zero\x20on-chain\x20objects\x20inspected\x27\x20—\x20read\x20`evidence_scope`\x20/\x20`objects_inspected`\x20/\x20`publish_authorized`\x20before\x20'+'treating\x20it\x20as\x20a\x20green\x20light.\x20STATIC_ANALYZERS_CLEAN\x20is\x20reserved\x20for\x20a\x20future\x20object-grounded\x20clean\x20run.'),'status_note':z['string']()['optional']()['describe']('One-line\x20honesty\x20note\x20for\x20the\x20status:\x20it\x20reflects\x20static\x20analyzers\x20over\x20plan\x20snapshots\x20only\x20—\x20zero\x20on-chain\x20objects\x20inspected;\x20not\x20a\x20publish\x20clearance.'),'objects_inspected':z['number']()['optional']()['describe']('How\x20many\x20live\x20on-chain\x20objects\x20this\x20aggregation\x20inspected.\x20Always\x200\x20today\x20(the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20reads)\x20—\x20a\x20clean\x20status\x20over\x20zero\x20objects\x20must\x20never\x20read\x20as\x20clearance.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('high\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'evidence_scope':z['enum'](['puzzle_snapshots_only','object_grounded'])['optional']()['describe']('What\x20this\x20aggregation\x20actually\x20inspected.\x20Always\x20\x27puzzle_snapshots_only\x27\x20today:\x20the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20'+'reads.\x20Machine-readable\x20form\x20of\x20the\x20scope\x20warning\x20—\x20a\x20caller\x20must\x20not\x20have\x20to\x20infer\x20it\x20from\x20prose.'),'object_grounded':z['boolean']()['optional']()['describe']('True\x20only\x20if\x20a\x20live\x20on-chain\x20object\x20was\x20inspected.\x20Currently\x20always\x20false\x20(see\x20evidence_scope).'),'publish_authorized':z['boolean']()['optional']()['describe']('Whether\x20this\x20gate\x20alone\x20authorizes\x20publishing.\x20Currently\x20always\x20false:\x20use\x20template_scan\x20before\x20deploying\x20and\x20'+'service_panorama\x20/\x20onchain_objects\x20after,\x20plus\x20the\x20publish-time\x20gates\x20in\x20onchain_operations.'),'publish_authorized_reason':z['string']()['optional']()['describe']('Why\x20publish_authorized\x20is\x20false,\x20and\x20which\x20checks\x20to\x20run\x20instead.'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty']),'classification_source':z['string']()['optional']()['describe']('Where\x20the\x20industry\x20guess\x20came\x20from.\x20\x27aggregate_risks_intent_echo\x27\x20=\x20this\x20tool\x27s\x20own\x20classification\x20of\x20the\x20intent\x20text\x20—\x20NOT\x20a\x20reconciled\x20verdict\x20(other\x20subsystems\x20may\x20classify\x20the\x20same\x20intent\x20differently).')})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict']();export const TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict']();export const MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional'](),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional'](),'review_mode':z['enum'](['review','review_reward','none'])['optional'](),'reward_funding':z['string']()['optional'](),'reward_claim_amount':z['string']()['optional'](),'after_sales_mode':z['enum'](['return','exchange','warranty','none'])['optional'](),'acceptance_mode':z['enum'](['milestone','contest','bounty','agent','none'])['optional'](),'installment_mode':z['enum'](['deposit_balance','milestone_n','none'])['optional'](),'affiliate_mode':z['enum'](['commission','none'])['optional'](),'crowdfunding_mode':z['enum'](['threshold','flexible','none'])['optional'](),'logistics_mode':z['enum'](['none','carrier','merchant_managed','courier','pickup_point'])['optional'](),'supply_chain':z['array'](SupplyChainPromiseInputSchema)['optional'](),'fee_overrides':z['record'](z['string'](),z['union']([z['number'](),z['string']()]))['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts\x20(G-04:\x20no\x20trust\x20score\x20—\x20none\x20is\x20evaluated\x20at\x20build\x20time).'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'findings':z['array'](z['object']({'rule':z['string'](),'severity':z['string'](),'detail':z['string']()})['strict']())['describe']('Score-extinction\x20(M5):\x20adoption\x20verdict\x20evidence\x20as\x20findings,\x20never\x20a\x20numeric\x20boost\x20—\x20MODULE-CONSTRAINTS-MISSING\x20(high:\x20blocking\x20constraints\x20unsatisfied)\x20/\x20MODULE-EVIDENCE-MISSING\x20(medium:\x20score-only\x20auto-recommendation\x20DROPPED;\x20keep\x20via\x20guide_state.adopted_module_ids).'),'evidence_matched':z['boolean']()['optional']()['describe']('G-03:\x20false\x20=\x20the\x20module\x20was\x20auto-recommended\x20by\x20score\x20with\x20no\x20explicit\x20intent\x20evidence\x20—\x20it\x20is\x20NOT\x20adopted\x20(see\x20findings).')})['strict']()),'module_gaps':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'pending_guard_designs':z['array'](z['object']({'key':z['string']()['describe']('Guard\x20design\x20key\x20—\x20the\x20guide_confirm.guard_resolutions\x20lookup\x20key.'),'template_id':z['string']()['describe']('The\x20pattern.*/tpl_*\x20design\x20id.'),'host':z['string']()['describe']('Attachment\x20surface\x20(service\x20buy\x20path,\x20machine\x20forward,\x20allocator\x20row,\x20...).'),'purpose':z['string']()['describe']('What\x20the\x20design\x20gates.'),'logic_summary':z['string']()['optional']()['describe']('Pattern\x20logic\x20sketch\x20(pattern.*\x20catalog)\x20to\x20guide\x20the\x20resolution.'),'logic_summary_note':z['string']()['optional']()['describe']('p8k2\x20T-03:\x20the\x20sketch\x20above\x20is\x20POLARITY-BLIND\x20for\x20refund/recover\x20rails\x20—\x20this\x20note\x20names\x20the\x20claimed_by\x20polarity\x20leg\x20the\x20rail\x20REQUIRES\x20and\x20warns\x20against\x20sharing\x20one\x20resolved\x20guard\x20across\x20the\x20twin\x20rails.'),'key_queries':z['array'](z['string']())['optional']()['describe']('Key\x20queries\x20the\x20pattern\x20reads.'),'how_to_resolve':z['string']()['describe']('Exact\x20guide_confirm.guard_resolutions\x20entry\x20shape\x20for\x20this\x20design.')})['strict']())['optional']()['describe']('Step\x209\x20(blocked):\x20every\x20unresolved\x20guard\x20design\x20with\x20its\x20pattern\x27s\x20logic\x20sketch\x20(C6-DEEP).\x20'+'The\x20judgment\x20layer\x20resolves\x20each\x20via\x20guide_confirm.guard_resolutions;\x20the\x20audit\x20freeze\x20gate\x20still\x20decides.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209:\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20onchain_operations.'),'post_deploy_steps':z['array'](z['object']({'order':z['number'](),'id':z['string'](),'title':z['string'](),'when':z['string'](),'action':z['string'](),'tool_hint':z['string'](),'failure_if_skipped':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20ordered\x20executable\x20post-deploy\x20steps\x20(compensation\x20fund\x20top-up\x20R-4,\x20arbitration\x20unpause\x20R-5,\x20settlement\x20alloc_by_guard\x20R-2,\x20panorama\x20verification).\x20Run\x20via\x20onchain_operations\x20AFTER\x20the\x20creation\x20plan\x20materializes.'),'supply_chain':z['array'](z['object']({'steps':z['array'](z['string']())['describe']('Emitted\x20step\x20ids\x20(rendezvous\x20gate,\x20ledger\x20create,\x20write/ack\x20policies,\x20bind,\x20allocation).'),'inputs':z['record'](z['string'](),z['string']())['describe']('Plan\x20inputs\x20the\x20emission\x20depends\x20on\x20(fulfillment_axis).'),'primitives':z['array'](z['string']())['describe']('composition-truth\x20primitives\x20this\x20emission\x20puts\x20on\x20chain.'),'notes':z['array'](z['string']())['describe']('Operator\x20duties\x20and\x20residual\x20trust,\x20in\x20the\x20merchant\x27s\x20own\x20terms.'),'handoff':z['object']({'repository':z['string']()['describe']('The\x20rendezvous\x20Repository\x20(name\x20or\x20step\x20id).'),'writes':z['array'](z['object']({'policy':z['string'](),'row_id':z['string'](),'value':z['string'](),'write_guard':z['string'](),'submissions':z['string']()})['strict']())})['strict']()['optional']()['describe']('Present\x20when\x20the\x20fulfilment\x20side\x20is\x20a\x20SEPARATE\x20build:\x20the\x20rows\x20its\x20operator\x20must\x20write,\x20and\x20under\x20which\x20credential\x20guard.')})['strict']())['optional']()['describe']('Supply-chain\x20composition\x20emissions\x20(Goal\x202/4):\x20one\x20entry\x20per\x20guide_confirm.supply_chain\x20promise\x20that\x20compiled.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict']();
@@ -136,6 +136,11 @@ export declare const IndustryPackOperationInputSchema: z.ZodObject<{
136
136
  unregister_custom_constraint: "unregister_custom_constraint";
137
137
  repair_builtin_templates: "repair_builtin_templates";
138
138
  template_drift: "template_drift";
139
+ capability_list: "capability_list";
140
+ capability_get: "capability_get";
141
+ compose_probe: "compose_probe";
142
+ product_cards: "product_cards";
143
+ product_card: "product_card";
139
144
  }>;
140
145
  name: z.ZodOptional<z.ZodString>;
141
146
  layer: z.ZodOptional<z.ZodEnum<{
@@ -152,6 +157,8 @@ export declare const IndustryPackOperationInputSchema: z.ZodObject<{
152
157
  }>>;
153
158
  query: z.ZodOptional<z.ZodString>;
154
159
  template: z.ZodOptional<z.ZodString>;
160
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodString>>;
161
+ group: z.ZodOptional<z.ZodString>;
155
162
  path: z.ZodOptional<z.ZodString>;
156
163
  content: z.ZodOptional<z.ZodString>;
157
164
  from: z.ZodOptional<z.ZodString>;
@@ -296,6 +303,130 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
296
303
  supply: z.ZodOptional<z.ZodUnknown>;
297
304
  rules: z.ZodOptional<z.ZodUnknown>;
298
305
  playbook: z.ZodOptional<z.ZodUnknown>;
306
+ }, z.core.$strip>, z.ZodObject<{
307
+ action: z.ZodLiteral<"capability_list">;
308
+ total: z.ZodNumber;
309
+ capabilities: z.ZodArray<z.ZodObject<{
310
+ id: z.ZodString;
311
+ name: z.ZodString;
312
+ group: z.ZodString;
313
+ description: z.ZodString;
314
+ source: z.ZodString;
315
+ requires: z.ZodArray<z.ZodString>;
316
+ excludes: z.ZodArray<z.ZodString>;
317
+ provides: z.ZodArray<z.ZodString>;
318
+ requires_keeper: z.ZodBoolean;
319
+ }, z.core.$strip>>;
320
+ }, z.core.$strip>, z.ZodObject<{
321
+ action: z.ZodLiteral<"capability_get">;
322
+ capability: z.ZodUnknown;
323
+ }, z.core.$strip>, z.ZodObject<{
324
+ action: z.ZodLiteral<"compose_probe">;
325
+ capabilities: z.ZodArray<z.ZodString>;
326
+ feasible: z.ZodBoolean;
327
+ blockers: z.ZodArray<z.ZodObject<{
328
+ code: z.ZodString;
329
+ detail: z.ZodString;
330
+ }, z.core.$strip>>;
331
+ risks: z.ZodArray<z.ZodString>;
332
+ disclosures: z.ZodArray<z.ZodString>;
333
+ cost_delta: z.ZodObject<{
334
+ gas_objects: z.ZodNumber;
335
+ funds: z.ZodArray<z.ZodString>;
336
+ }, z.core.$strip>;
337
+ provides: z.ZodArray<z.ZodString>;
338
+ plan_steps: z.ZodOptional<z.ZodNumber>;
339
+ audit_score: z.ZodOptional<z.ZodNumber>;
340
+ templates_version: z.ZodNumber;
341
+ }, z.core.$strip>, z.ZodObject<{
342
+ action: z.ZodLiteral<"product_cards">;
343
+ industry: z.ZodString;
344
+ total: z.ZodNumber;
345
+ cards: z.ZodArray<z.ZodObject<{
346
+ template_id: z.ZodString;
347
+ industry: z.ZodString;
348
+ product_ref: z.ZodString;
349
+ archetype: z.ZodString;
350
+ one_liner: z.ZodString;
351
+ cost_headline: z.ZodObject<{
352
+ platform_fee_bps: z.ZodNumber;
353
+ gas_objects_estimate: z.ZodNumber;
354
+ compensation_fund: z.ZodEnum<{
355
+ allowed: "allowed";
356
+ forbidden: "forbidden";
357
+ }>;
358
+ }, z.core.$strip>;
359
+ params: z.ZodObject<{
360
+ total: z.ZodNumber;
361
+ editable: z.ZodNumber;
362
+ }, z.core.$strip>;
363
+ templates_version: z.ZodNumber;
364
+ }, z.core.$strip>>;
365
+ }, z.core.$strip>, z.ZodObject<{
366
+ action: z.ZodLiteral<"product_card">;
367
+ alignment: z.ZodObject<{
368
+ template_id: z.ZodString;
369
+ industry: z.ZodString;
370
+ variant: z.ZodString;
371
+ product_ref: z.ZodString;
372
+ archetype: z.ZodString;
373
+ phase: z.ZodNumber;
374
+ one_liner: z.ZodString;
375
+ evidence: z.ZodArray<z.ZodObject<{
376
+ source: z.ZodString;
377
+ detail: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ }, z.core.$strip>;
380
+ features: z.ZodObject<{
381
+ flow: z.ZodArray<z.ZodString>;
382
+ fund_speed: z.ZodUnknown;
383
+ model: z.ZodArray<z.ZodString>;
384
+ vs_traditional: z.ZodArray<z.ZodObject<{
385
+ dimension: z.ZodString;
386
+ wowok: z.ZodString;
387
+ traditional: z.ZodNull;
388
+ wowok_evidence: z.ZodArray<z.ZodString>;
389
+ }, z.core.$strip>>;
390
+ }, z.core.$strip>;
391
+ cost: z.ZodObject<{
392
+ platform_fee: z.ZodObject<{
393
+ bps: z.ZodNumber;
394
+ cap_bps: z.ZodUnknown;
395
+ self_platform: z.ZodString;
396
+ evidence: z.ZodArray<z.ZodUnknown>;
397
+ }, z.core.$strip>;
398
+ gas_objects_estimate: z.ZodObject<{
399
+ value: z.ZodNumber;
400
+ basis: z.ZodString;
401
+ }, z.core.$strip>;
402
+ compensation_fund: z.ZodObject<{
403
+ policy: z.ZodEnum<{
404
+ allowed: "allowed";
405
+ forbidden: "forbidden";
406
+ }>;
407
+ note: z.ZodString;
408
+ }, z.core.$strip>;
409
+ keeper_dependencies: z.ZodArray<z.ZodString>;
410
+ }, z.core.$strip>;
411
+ params: z.ZodObject<{
412
+ total: z.ZodNumber;
413
+ editable: z.ZodNumber;
414
+ live: z.ZodNumber;
415
+ groups: z.ZodArray<z.ZodObject<{
416
+ group: z.ZodString;
417
+ tier: z.ZodNumber;
418
+ count: z.ZodNumber;
419
+ }, z.core.$strip>>;
420
+ full_rows_via: z.ZodString;
421
+ }, z.core.$strip>;
422
+ risks: z.ZodObject<{
423
+ key_risk: z.ZodString;
424
+ differences: z.ZodArray<z.ZodString>;
425
+ user_inputs: z.ZodArray<z.ZodString>;
426
+ capability_risks: z.ZodArray<z.ZodString>;
427
+ capability_risks_note: z.ZodString;
428
+ }, z.core.$strip>;
429
+ templates_version: z.ZodNumber;
299
430
  }, z.core.$strip>, z.ZodObject<{
300
431
  action: z.ZodLiteral<"diff">;
301
432
  name: z.ZodString;
@@ -429,8 +560,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
429
560
  ir_industry_match: z.ZodOptional<z.ZodBoolean>;
430
561
  requirement_support: z.ZodOptional<z.ZodNumber>;
431
562
  location_sensitivity: z.ZodEnum<{
432
- strict: "strict";
433
563
  logistics: "logistics";
564
+ strict: "strict";
434
565
  near: "near";
435
566
  }>;
436
567
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -463,8 +594,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
463
594
  key_risk: z.ZodString;
464
595
  machine_nodes: z.ZodArray<z.ZodString>;
465
596
  location_sensitivity: z.ZodEnum<{
466
- strict: "strict";
467
597
  logistics: "logistics";
598
+ strict: "strict";
468
599
  near: "near";
469
600
  }>;
470
601
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -485,8 +616,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
485
616
  key_risk: z.ZodString;
486
617
  machine_nodes: z.ZodArray<z.ZodString>;
487
618
  location_sensitivity: z.ZodEnum<{
488
- strict: "strict";
489
619
  logistics: "logistics";
620
+ strict: "strict";
490
621
  near: "near";
491
622
  }>;
492
623
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -511,8 +642,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
511
642
  key_risk: z.ZodString;
512
643
  machine_nodes: z.ZodArray<z.ZodString>;
513
644
  location_sensitivity: z.ZodEnum<{
514
- strict: "strict";
515
645
  logistics: "logistics";
646
+ strict: "strict";
516
647
  near: "near";
517
648
  }>;
518
649
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -536,8 +667,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
536
667
  key_risk: z.ZodString;
537
668
  machine_nodes: z.ZodArray<z.ZodString>;
538
669
  location_sensitivity: z.ZodEnum<{
539
- strict: "strict";
540
670
  logistics: "logistics";
671
+ strict: "strict";
541
672
  near: "near";
542
673
  }>;
543
674
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -561,8 +692,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
561
692
  key_risk: z.ZodString;
562
693
  machine_nodes: z.ZodArray<z.ZodString>;
563
694
  location_sensitivity: z.ZodEnum<{
564
- strict: "strict";
565
695
  logistics: "logistics";
696
+ strict: "strict";
566
697
  near: "near";
567
698
  }>;
568
699
  trust_selling_points: z.ZodArray<z.ZodString>;