@wowok/agent-mcp 3.3.8 → 3.4.0

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 (252) hide show
  1. package/dist/chain-semantics/field-capability.js +1 -1
  2. package/dist/chain-semantics/freeze-map.js +1 -1
  3. package/dist/chain-semantics/fund-flow.js +1 -1
  4. package/dist/chain-semantics/guard-verbs.js +1 -1
  5. package/dist/chain-semantics/object-graph.js +1 -1
  6. package/dist/composition/audit.js +1 -1
  7. package/dist/composition/compile.d.ts +3 -2
  8. package/dist/composition/compile.js +1 -1
  9. package/dist/composition/inflight.d.ts +6 -0
  10. package/dist/composition/inflight.js +1 -1
  11. package/dist/composition/materialize.d.ts +4 -0
  12. package/dist/composition/materialize.js +1 -1
  13. package/dist/composition/param-disclosure.d.ts +61 -0
  14. package/dist/composition/param-disclosure.js +1 -0
  15. package/dist/composition/plan.d.ts +11 -1
  16. package/dist/composition/plan.js +1 -1
  17. package/dist/customer/account-events.js +1 -1
  18. package/dist/data/api/api.spec.js +1 -1
  19. package/dist/data/api/cli.js +1 -1
  20. package/dist/data/api/server.d.ts +1 -0
  21. package/dist/data/api/server.js +1 -1
  22. package/dist/data/projection/store.d.ts +2 -1
  23. package/dist/data/projection/store.js +1 -1
  24. package/dist/data/projection/types.d.ts +10 -0
  25. package/dist/data/sync/cdc.js +1 -1
  26. package/dist/data/sync/cdc.spec.js +1 -1
  27. package/dist/data/sync/store.d.ts +5 -0
  28. package/dist/data/sync/store.js +1 -1
  29. package/dist/data/sync/types.d.ts +2 -0
  30. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  31. package/dist/evaluation/engine.js +1 -1
  32. package/dist/evaluation/guard-scan.js +1 -1
  33. package/dist/experience/realtime-feedback.js +1 -1
  34. package/dist/extensions/business-modules.js +1 -1
  35. package/dist/extensions/industry-pack.js +1 -1
  36. package/dist/extensions/modes.js +1 -1
  37. package/dist/graph/onchain/expand.js +1 -1
  38. package/dist/graph/onchain/exposure.js +1 -1
  39. package/dist/harness/recover.js +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/knowledge/allocation-risk.js +1 -1
  42. package/dist/knowledge/allocation-templates.js +1 -1
  43. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  44. package/dist/knowledge/arb-fund-facts.d.ts +1 -0
  45. package/dist/knowledge/arb-fund-facts.js +1 -1
  46. package/dist/knowledge/arbitration-ledger.js +1 -1
  47. package/dist/knowledge/arbitration-risk.d.ts +1 -0
  48. package/dist/knowledge/arbitration-risk.js +1 -1
  49. package/dist/knowledge/audit-rules.js +1 -1
  50. package/dist/knowledge/baselines/rules/allocation.json +6 -6
  51. package/dist/knowledge/baselines/rules/arb.json +2 -2
  52. package/dist/knowledge/baselines/rules/guard.json +11 -11
  53. package/dist/knowledge/baselines/rules/order.json +1 -1
  54. package/dist/knowledge/baselines/rules/plan.json +1 -1
  55. package/dist/knowledge/baselines/semantic-facts.js +1 -1
  56. package/dist/knowledge/builtin-templates.d.ts +14 -1
  57. package/dist/knowledge/builtin-templates.js +1 -1
  58. package/dist/knowledge/catalog-facts.d.ts +4 -0
  59. package/dist/knowledge/catalog-facts.js +1 -0
  60. package/dist/knowledge/commission-landing.js +1 -1
  61. package/dist/knowledge/component-schema.d.ts +64 -0
  62. package/dist/knowledge/component-schema.js +1 -0
  63. package/dist/knowledge/entity-recipient-guard.js +1 -1
  64. package/dist/knowledge/event-semantics.js +1 -1
  65. package/dist/knowledge/fee-param-bindings.d.ts +26 -0
  66. package/dist/knowledge/fee-param-bindings.js +1 -0
  67. package/dist/knowledge/fund-layer.js +1 -1
  68. package/dist/knowledge/getting-started.d.ts +2 -2
  69. package/dist/knowledge/getting-started.js +1 -1
  70. package/dist/knowledge/guard-anchor-reach.js +1 -1
  71. package/dist/knowledge/guard-design-patterns.js +1 -1
  72. package/dist/knowledge/guard-ledger.js +1 -1
  73. package/dist/knowledge/guard-lint.d.ts +1 -0
  74. package/dist/knowledge/guard-lint.js +1 -1
  75. package/dist/knowledge/guard-puzzle.js +1 -1
  76. package/dist/knowledge/guard-risk.js +1 -1
  77. package/dist/knowledge/guard-templates.d.ts +1 -1
  78. package/dist/knowledge/guard-templates.js +1 -1
  79. package/dist/knowledge/guard-translation.js +1 -1
  80. package/dist/knowledge/index.js +1 -1
  81. package/dist/knowledge/industry-registry.js +1 -1
  82. package/dist/knowledge/industry-strategy.js +1 -1
  83. package/dist/knowledge/jsonrpc-enum.d.ts +14 -3
  84. package/dist/knowledge/jsonrpc-enum.js +1 -1
  85. package/dist/knowledge/knob-docs.d.ts +5 -0
  86. package/dist/knowledge/knob-docs.js +1 -0
  87. package/dist/knowledge/machine-templates.js +1 -1
  88. package/dist/knowledge/machine-topology.js +1 -1
  89. package/dist/knowledge/machine-translation.js +1 -1
  90. package/dist/knowledge/onchain-constants.d.ts +2 -0
  91. package/dist/knowledge/onchain-constants.js +1 -1
  92. package/dist/knowledge/order-ledger.js +1 -1
  93. package/dist/knowledge/param-schema.d.ts +70 -0
  94. package/dist/knowledge/param-schema.js +1 -0
  95. package/dist/knowledge/param-tiers.d.ts +25 -0
  96. package/dist/knowledge/param-tiers.js +1 -0
  97. package/dist/knowledge/passport-ledger.d.ts +1 -1
  98. package/dist/knowledge/passport-ledger.js +1 -1
  99. package/dist/knowledge/pattern-resolutions.d.ts +106 -0
  100. package/dist/knowledge/pattern-resolutions.js +1 -0
  101. package/dist/knowledge/projection.spec.js +1 -1
  102. package/dist/knowledge/safety-rules.js +1 -1
  103. package/dist/knowledge/scenario-modes.d.ts +1 -0
  104. package/dist/knowledge/scenario-modes.js +1 -1
  105. package/dist/knowledge/scenario-topology.js +1 -1
  106. package/dist/knowledge/service-allocation-semantics.js +1 -1
  107. package/dist/knowledge/service-ledger.js +1 -1
  108. package/dist/knowledge/service-templates.js +1 -1
  109. package/dist/knowledge/strategy-manuals.d.ts +1 -1
  110. package/dist/knowledge/strategy-manuals.js +1 -1
  111. package/dist/knowledge/template-loader.d.ts +101 -1
  112. package/dist/knowledge/template-loader.js +1 -1
  113. package/dist/knowledge/template-nav.d.ts +7 -0
  114. package/dist/knowledge/template-nav.js +1 -0
  115. package/dist/knowledge/template-registry.js +1 -1
  116. package/dist/knowledge/template-scanner.d.ts +33 -0
  117. package/dist/knowledge/template-scanner.js +1 -1
  118. package/dist/knowledge/template-test-profiles.d.ts +17 -0
  119. package/dist/knowledge/template-test-profiles.js +1 -0
  120. package/dist/knowledge/template-validation.d.ts +1 -0
  121. package/dist/knowledge/template-validation.js +1 -1
  122. package/dist/knowledge/tools-reference.js +1 -1
  123. package/dist/knowledge/treasury-templates.js +1 -1
  124. package/dist/knowledge/workflow-guidance.js +1 -1
  125. package/dist/monitor/MonitorLoop.js +1 -1
  126. package/dist/participation/time-window.d.ts +37 -0
  127. package/dist/participation/time-window.js +1 -0
  128. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  129. package/dist/playbooks/service-build/machine-panorama.d.ts +1 -0
  130. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  131. package/dist/playbooks/service-build/merchant-guide.d.ts +4 -1
  132. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  133. package/dist/playbooks/service-build/migration-planner.js +1 -1
  134. package/dist/playbooks/service-build/object-panorama.js +1 -1
  135. package/dist/playbooks/service-build/participation-radar.d.ts +1 -0
  136. package/dist/playbooks/service-build/participation-radar.js +1 -1
  137. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  138. package/dist/playbooks/service-build/service-panorama.d.ts +1 -0
  139. package/dist/playbooks/service-build/service-panorama.js +1 -1
  140. package/dist/playbooks/service-build/service-quote.js +1 -1
  141. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  142. package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
  143. package/dist/relationship/registry.js +1 -1
  144. package/dist/review/index.js +1 -1
  145. package/dist/runtime/instance-registry.d.ts +7 -1
  146. package/dist/runtime/instance-registry.js +1 -1
  147. package/dist/safety/confirm-gate.js +1 -1
  148. package/dist/schema/benchmark-migration/index.d.ts +2 -0
  149. package/dist/schema/benchmark-migration/index.js +1 -1
  150. package/dist/schema/call/allocation.js +1 -1
  151. package/dist/schema/call/arbitration.js +1 -1
  152. package/dist/schema/call/base.d.ts +8 -0
  153. package/dist/schema/call/base.js +1 -1
  154. package/dist/schema/call/bridge.d.ts +2 -0
  155. package/dist/schema/call/error-codes.d.ts +1 -1
  156. package/dist/schema/call/error-codes.js +1 -1
  157. package/dist/schema/call/guard.js +1 -1
  158. package/dist/schema/call/handler.js +1 -1
  159. package/dist/schema/call/machine.js +1 -1
  160. package/dist/schema/call/semantic.js +1 -1
  161. package/dist/schema/call/service.d.ts +3 -3
  162. package/dist/schema/call/service.js +1 -1
  163. package/dist/schema/common/index.js +1 -1
  164. package/dist/schema/evaluation/index.d.ts +8 -0
  165. package/dist/schema/evaluation/index.js +1 -1
  166. package/dist/schema/goal/planning.d.ts +1 -0
  167. package/dist/schema/goal/planning.js +1 -1
  168. package/dist/schema/industry-pack/index.d.ts +29 -0
  169. package/dist/schema/industry-pack/index.js +1 -1
  170. package/dist/schema/local/index.d.ts +20 -0
  171. package/dist/schema/local/index.js +1 -1
  172. package/dist/schema/messenger/index.d.ts +2 -0
  173. package/dist/schema/messenger/index.js +1 -1
  174. package/dist/schema/operations.d.ts +1 -1
  175. package/dist/schema/operations.js +1 -1
  176. package/dist/schema/query/bi.d.ts +106 -0
  177. package/dist/schema/query/bi.js +1 -1
  178. package/dist/schema/query/index.d.ts +5 -5
  179. package/dist/schema/query/index.js +1 -1
  180. package/dist/schema/schema-version.js +1 -1
  181. package/dist/schema/watch/index.js +1 -1
  182. package/dist/schema-query-impl/index.js +1 -1
  183. package/dist/schemas/account_operation.output.json +4 -2
  184. package/dist/schemas/benchmark_migration_operation.output.json +3 -3
  185. package/dist/schemas/benchmark_migration_operation.schema.json +16 -2
  186. package/dist/schemas/bridge_operation.output.json +4 -2
  187. package/dist/schemas/bridge_operation.schema.json +5 -5
  188. package/dist/schemas/evaluation_operation.output.json +16 -0
  189. package/dist/schemas/guard2file.schema.json +1 -1
  190. package/dist/schemas/index.json +1 -1
  191. package/dist/schemas/industry_pack_operation.output.json +150 -1
  192. package/dist/schemas/industry_pack_operation.schema.json +9 -3
  193. package/dist/schemas/keeper_operation.output.json +2 -2
  194. package/dist/schemas/local_cache_operation.output.json +4 -2
  195. package/dist/schemas/local_history_operation.output.json +4 -2
  196. package/dist/schemas/local_info_operation.output.json +4 -2
  197. package/dist/schemas/local_mark_operation.output.json +4 -2
  198. package/dist/schemas/machineNode2file.schema.json +1 -1
  199. package/dist/schemas/messenger_operation.output.json +13 -2
  200. package/dist/schemas/messenger_operation.schema.json +41 -34
  201. package/dist/schemas/monitor_events.output.json +2 -2
  202. package/dist/schemas/monitor_subscription.output.json +2 -2
  203. package/dist/schemas/onchain_events.output.json +14 -14
  204. package/dist/schemas/onchain_operations.output.json +13 -10
  205. package/dist/schemas/onchain_operations.schema.json +124 -99
  206. package/dist/schemas/onchain_operations_allocation.schema.json +7 -6
  207. package/dist/schemas/onchain_operations_arbitration.schema.json +7 -6
  208. package/dist/schemas/onchain_operations_contact.schema.json +4 -3
  209. package/dist/schemas/onchain_operations_demand.schema.json +4 -3
  210. package/dist/schemas/onchain_operations_gen_passport.schema.json +4 -3
  211. package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
  212. package/dist/schemas/onchain_operations_guard.schema.json +7 -6
  213. package/dist/schemas/onchain_operations_machine.schema.json +9 -7
  214. package/dist/schemas/onchain_operations_order.schema.json +6 -4
  215. package/dist/schemas/onchain_operations_payment.schema.json +2 -2
  216. package/dist/schemas/onchain_operations_permission.schema.json +19 -15
  217. package/dist/schemas/onchain_operations_personal.schema.json +17 -14
  218. package/dist/schemas/onchain_operations_progress.schema.json +6 -4
  219. package/dist/schemas/onchain_operations_proof.schema.json +4 -3
  220. package/dist/schemas/onchain_operations_repository.schema.json +9 -7
  221. package/dist/schemas/onchain_operations_reward.schema.json +5 -4
  222. package/dist/schemas/onchain_operations_service.schema.json +15 -12
  223. package/dist/schemas/onchain_operations_treasury.schema.json +4 -3
  224. package/dist/schemas/onchain_table_data.output.json +18 -13
  225. package/dist/schemas/onchain_table_data.schema.json +13 -13
  226. package/dist/schemas/query_toolkit.output.json +301 -33
  227. package/dist/schemas/query_toolkit.schema.json +6 -6
  228. package/dist/schemas/watch_operation.output.json +3 -3
  229. package/dist/schemas/workflow_operation.schema.json +3 -2
  230. package/dist/schemas/wowok_buildin_info.schema.json +1 -1
  231. package/dist/task/playbook.js +1 -1
  232. package/dist/tools/handlers/benchmark-migration.d.ts +1 -0
  233. package/dist/tools/handlers/benchmark-migration.js +1 -1
  234. package/dist/tools/handlers/config.js +1 -1
  235. package/dist/tools/handlers/evaluation.js +1 -1
  236. package/dist/tools/handlers/evaluation.spec.js +1 -1
  237. package/dist/tools/handlers/industry-pack.js +1 -1
  238. package/dist/tools/handlers/messenger.js +1 -1
  239. package/dist/tools/handlers/onchain.d.ts +4 -0
  240. package/dist/tools/handlers/onchain.js +1 -1
  241. package/dist/tools/index.js +1 -1
  242. package/dist/tools/registry/business.js +1 -1
  243. package/dist/tools/registry/onchain.js +1 -1
  244. package/dist/tools/registry/query.js +1 -1
  245. package/dist/tools/sanitize-output.js +1 -1
  246. package/dist/tools/sanitize-output.spec.js +1 -1
  247. package/dist/tools/types.d.ts +1 -0
  248. package/dist/tools/upgrade-check.d.ts +22 -0
  249. package/dist/tools/upgrade-check.js +1 -1
  250. package/dist/tools/wrap.d.ts +1 -1
  251. package/dist/tools/wrap.js +1 -1
  252. package/package.json +7 -6
@@ -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.'),'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 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']();
@@ -139,6 +139,7 @@ export declare const IndustryPackOperationInputSchema: z.ZodObject<{
139
139
  }>;
140
140
  name: z.ZodOptional<z.ZodString>;
141
141
  layer: z.ZodOptional<z.ZodEnum<{
142
+ params: "params";
142
143
  match: "match";
143
144
  compliance: "compliance";
144
145
  rules: "rules";
@@ -147,7 +148,9 @@ export declare const IndustryPackOperationInputSchema: z.ZodObject<{
147
148
  supply: "supply";
148
149
  template: "template";
149
150
  playbook: "playbook";
151
+ components: "components";
150
152
  }>>;
153
+ query: z.ZodOptional<z.ZodString>;
151
154
  template: z.ZodOptional<z.ZodString>;
152
155
  path: z.ZodOptional<z.ZodString>;
153
156
  content: z.ZodOptional<z.ZodString>;
@@ -232,6 +235,7 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
232
235
  action: z.ZodLiteral<"get">;
233
236
  category: z.ZodString;
234
237
  layer: z.ZodOptional<z.ZodEnum<{
238
+ params: "params";
235
239
  match: "match";
236
240
  compliance: "compliance";
237
241
  rules: "rules";
@@ -240,6 +244,7 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
240
244
  supply: "supply";
241
245
  template: "template";
242
246
  playbook: "playbook";
247
+ components: "components";
243
248
  }>>;
244
249
  kind: z.ZodOptional<z.ZodEnum<{
245
250
  stub: "stub";
@@ -262,6 +267,30 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
262
267
  needs: z.ZodArray<z.ZodString>;
263
268
  analyze_questions: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
269
  }, z.core.$strip>>;
270
+ query: z.ZodOptional<z.ZodString>;
271
+ param_summary: z.ZodOptional<z.ZodObject<{
272
+ total: z.ZodNumber;
273
+ editable: z.ZodNumber;
274
+ live: z.ZodNumber;
275
+ inert: z.ZodNumber;
276
+ not_flippable: z.ZodNumber;
277
+ hidden: z.ZodNumber;
278
+ undescribed: z.ZodNumber;
279
+ }, z.core.$strip>>;
280
+ params: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
281
+ param_matches: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
282
+ component_summary: z.ZodOptional<z.ZodObject<{
283
+ total: z.ZodNumber;
284
+ configurable: z.ZodNumber;
285
+ fixed: z.ZodNumber;
286
+ hardcoded_splits: z.ZodNumber;
287
+ structural_rails: z.ZodNumber;
288
+ unset_legs: z.ZodNumber;
289
+ surplus_rows: z.ZodNumber;
290
+ by_family: z.ZodRecord<z.ZodString, z.ZodNumber>;
291
+ }, z.core.$strip>>;
292
+ components: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
293
+ component_matches: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
265
294
  dispute: z.ZodOptional<z.ZodUnknown>;
266
295
  compliance: z.ZodOptional<z.ZodUnknown>;
267
296
  supply: z.ZodOptional<z.ZodUnknown>;
@@ -1 +1 @@
1
- import{z}from'zod';import{MODE_REGISTRY_ACTIONS,ModeRegistryFields,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema}from'./modes.js';export const IndustryPackOperationInputSchema=z['object']({'action':z['enum'](['scaffold','list','scan','repair_builtin_templates','template_drift','resolve','list_files','read_file','write_file','get','diff','reset','delete_file','create_file','create_dir','copy','move','rename',...MODE_REGISTRY_ACTIONS])['describe']('Action:\x20\x27scaffold\x27\x20=\x20generate\x20a\x20pack\x20template\x20skeleton\x20(requires\x20name);\x20'+'\x27list\x27\x20=\x20list\x20registered\x20packs;\x20\x27scan\x27\x20=\x20scan\x20+\x20register\x20packs\x20under\x20the\x20default\x20directory;\x20'+'\x27template_drift\x27\x20=\x20REPORT\x20builtin\x20template\x20files\x20whose\x20on-disk\x20body\x20differs\x20from\x20the\x20in-code\x20catalog\x20'+'(classifies\x20no_sentinel_legacy\x20/\x20stale_release\x20/\x20user_modified);\x20run\x20it\x20FIRST\x20when\x20a\x20template\x20change\x20'+'\x27seems\x20to\x20have\x20no\x20effect.\x20'+'\x27repair_builtin_templates\x27\x20=\x20RESEED\x20those\x20legacy\x20files\x20from\x20the\x20in-code\x20catalog\x20'+'(identity-gated\x20on\x20a\x20known\x20builtin\x20id,\x20previous\x20body\x20kept\x20as\x20<file>.bak;\x20custom\x20templates\x20never\x20touched)'+'\x27resolve\x27\x20=\x20return\x20the\x20industry\x20root\x20directory;\x20\x27list_files\x27\x20=\x20list\x20files\x20under\x20the\x20industry\x20directory;\x20'+'\x27read_file\x27\x20=\x20read\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20required);\x20'+'\x27write_file\x27\x20=\x20write\x20content\x20to\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20+\x20content\x20required);\x20'+'\x27get\x27\x20=\x20return\x20registered\x20layer\x20data\x20for\x20an\x20industry\x20(name\x20required;\x20mode/dispute/compliance/supply/rules/playbook;\x20'+'an\x20optional\x20\x27layer\x27\x20selector\x20returns\x20ONE\x20layer\x20and\x20refuses\x20by\x20name\x20when\x20the\x20pack\x20does\x20not\x20register\x20it\x20—\x20'+'layer=\x27template\x27\x20reads\x20the\x20builtin\x20catalog\x20template\x20data\x20instead\x20of\x20pack\x20layers,\x20with\x20\x27template\x27\x20id\x20'+'optional\x20to\x20list\x20the\x20industry\x27s\x20templates);\x20'+'\x27diff\x27\x20=\x20compare\x20registered\x20vs\x20on-disk\x20manifest\x20version/layers\x20(name\x20required);\x20'+'\x27reset\x27\x20=\x20restore\x20a\x20file\x20or\x20entire\x20pack\x20folder\x20to\x20its\x20pristine\x20annotated\x20template\x20(path\x20required).\x20'+'\x27delete_file\x27\x20=\x20delete\x20a\x20file\x20or\x20directory\x20(path\x20required).\x20'+'\x27create_file\x27\x20=\x20create\x20an\x20empty\x20file\x20(path\x20required;\x20content\x20optional).\x20'+'\x27create_dir\x27\x20=\x20create\x20a\x20directory\x20recursively\x20(path\x20required).\x20'+'\x27copy\x27\x20=\x20copy\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'\x27move\x27\x20/\x20\x27rename\x27\x20=\x20move\x20or\x20rename\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'Mode\x20registry\x20(industry/scenario\x20configuration):\x20\x27recommend_industry\x27\x20=\x20business\x20intent\x20→\x20top-3\x20'+'similar\x20industries\x20+\x20reference\x20examples;\x20\x27list_modes\x27\x20=\x20builtin\x20+\x20custom\x20modes;\x20\x27derive_user_mode\x27\x20=\x20'+'derive\x20a\x20custom\x20mode\x20from\x20a\x20builtin;\x20\x27evolve_user_mode\x27\x20=\x20iterate\x20an\x20existing\x20custom\x20mode;\x20'+'\x27register_user_mode\x27\x20=\x20register\x20a\x20fully\x20custom\x20mode;\x20\x27unregister_user_mode\x27\x20=\x20delete\x20a\x20custom\x20mode;\x20'+'\x27register_custom_metric\x27\x20/\x20\x27register_custom_constraint\x27\x20=\x20register\x20global\x20evaluation\x20metric/constraint;\x20'+'\x27list_metrics_constraints\x27\x20=\x20list\x20metrics\x20+\x20constraints\x20(filterable).'),'name':z['string']()['optional']()['describe']('Industry\x20name\x20(lowercase\x20snake_case,\x20e.g.\x20\x27life_service\x27);\x20required\x20for\x20scaffold\x20and\x20get.'),'layer':z['enum'](['mode','match','dispute','compliance','supply','rules','playbook','template'])['optional']()['describe']('Optional\x20single-layer\x20selector\x20for\x20action=\x27get\x27.\x20Non-template\x20values\x20return\x20ONLY\x20that\x20registered\x20'+'pack\x20layer\x20and\x20refuse\x20with\x20a\x20named\x20error\x20when\x20the\x20pack\x20does\x20not\x20register\x20it\x20(stub\x20packs\x20carry\x20'+'only\x20mode/match).\x20\x27template\x27\x20reads\x20the\x20builtin\x20catalog:\x20with\x20\x27template\x27\x20set,\x20one\x20full\x20template\x20'+'projection;\x20without\x20it,\x20the\x20industry\x27s\x20template\x20summaries.'),'template':z['string']()['optional']()['describe']('Builtin\x20template\x20id\x20\x27<industry>/<variant>\x27\x20(e.g.\x20\x27rental/p2p-shortstay\x27);\x20used\x20with\x20'+'action=\x27get\x27\x20+\x20layer=\x27template\x27.'),'path':z['string']()['optional']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20read_file,\x20write_file,\x20reset,\x20create_file,\x20create_dir).'),'content':z['string']()['optional']()['describe']('Text\x20content\x20to\x20write\x20(required\x20for\x20write_file;\x20optional\x20for\x20create_file).'),'from':z['string']()['optional']()['describe']('Source\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'to':z['string']()['optional']()['describe']('Destination\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'authorize':z['boolean']()['optional']()['describe']('EXPLICIT\x20USER\x20AUTHORIZATION\x20(C5)\x20required\x20before\x20any\x20action\x20that\x20MODIFIES\x20a\x20user-editable\x20'+'template\x20file\x20(any\x20path\x20under\x20\x27<industry>/templates/\x27)\x20—\x20write_file\x20/\x20delete_file\x20/\x20reset\x20/\x20'+'move\x20/\x20rename\x20on\x20such\x20a\x20path,\x20copy\x20ONTO\x20an\x20existing\x20such\x20file,\x20and\x20every\x20'+'repair_builtin_templates\x20execution.\x20WITHOUT\x20this\x20flag\x20'+'the\x20action\x20refuses\x20(or\x20returns\x20a\x20plan-only\x20preview\x20for\x20repair_builtin_templates).\x20Set\x20it\x20ONLY\x20'+'after\x20the\x20user\x20has\x20explicitly\x20confirmed\x20the\x20specific\x20change\x20in\x20the\x20conversation.'),'include_user_edited':z['array'](z['string']()['min'](0x1))['max'](0x32)['optional']()['describe']('Builtin\x20template\x20ids\x20(\x27<industry>/<variant>\x27)\x20whose\x20USER-EDIT\x20PROTECTION\x20is\x20explicitly\x20lifted\x20'+'for\x20repair_builtin_templates\x20/\x20template_drift\x20(b9-2).\x20A\x20sentinel\x20whose\x20hash\x20no\x20longer\x20binds\x20'+'its\x20body\x20normally\x20locks\x20the\x20file\x20out\x20of\x20the\x20seed-upgrade\x20channel\x20(presumed\x20user\x20edit);\x20pass\x20'+'the\x20ids\x20the\x20user\x20EXPLICITLY\x20approved\x20for\x20reseed\x20after\x20reviewing\x20the\x20field-level\x20diff\x20—\x20e.g.\x20'+'machine-proven\x20provenance\x20rot\x20(stale\x20deployment\x20stamp\x20or\x20an\x20authorized\x20write\x20that\x20updated\x20'+'the\x20body\x20without\x20re-stamping).\x20The\x20list\x20IS\x20the\x20per-file\x20consent:\x20it\x20must\x20ride\x20BOTH\x20the\x20'+'plan-only\x20preview\x20and\x20the\x20authorize=true\x20execute\x20call.\x20Never\x20list\x20an\x20id\x20the\x20user\x20has\x20not\x20'+'personally\x20confirmed.'),...ModeRegistryFields})['strict']();export const IndustryPackOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('scaffold'),'ok':z['boolean']()['describe']('Whether\x20the\x20skeleton\x20was\x20created.'),'dir':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20pack\x20directory.'),'files':z['array'](z['string']())['describe']('Created\x20file\x20paths\x20(relative\x20to\x20dir).'),'errors':z['array'](z['string']())['describe']('Validation/creation\x20errors\x20(empty\x20=\x20ok).')}),z['object']({'action':z['literal']('list'),'packs':z['array'](z['object']({'name':z['string'](),'kind':z['enum'](['full','stub'])['describe']('\x27full\x27\x20=\x20a\x20real\x20pack\x20registering\x20at\x20least\x20one\x20business\x20layer\x20'+'(dispute/compliance/supply/rules/playbook);\x20\x27stub\x27\x20=\x20a\x20builtin-mode\x20alias\x20'+'carrying\x20only\x20mode/match\x20data\x20(its\x20missing\x20layers\x20are\x20named\x20by\x20`get`).'),'version':z['string'](),'layers':z['array'](z['string']()),'product_refs':z['array'](z['string']())['describe']('Reference\x20platforms\x20mirrored\x20by\x20the\x20pack\x27s\x20builtin\x20templates.'),'registered_at':z['number']()}))['describe']('Currently\x20registered\x20packs.')}),z['object']({'action':z['literal']('scan'),'results':z['array'](z['object']({'ok':z['boolean'](),'errors':z['array'](z['string']()),'registered':z['array'](z['string']())}))['describe']('One\x20registration\x20result\x20per\x20scanned\x20pack\x20directory.')}),z['object']({'action':z['literal']('repair_builtin_templates'),'dir':z['string'](),'reseeded_count':z['number']()['int']()['nonnegative'](),'requires_authorization':z['boolean']()['optional']()['describe']('true\x20when\x20the\x20call\x20was\x20a\x20plan-only\x20PREVIEW\x20(no\x20writes).\x20Re-call\x20with\x20authorize=true\x20'+'after\x20the\x20user\x20explicitly\x20confirms\x20to\x20execute\x20the\x20reseed.'),'results':z['array'](z['object']({'template':z['string'](),'status':z['string'](),'path':z['string'](),'detail':z['string']()['optional']()})),'note':z['string']()}),z['object']({'action':z['literal']('template_drift'),'dir':z['string'](),'drift_count':z['number']()['int']()['nonnegative'](),'drift':z['array'](z['object']({'template':z['string'](),'path':z['string'](),'state':z['string'](),'detail':z['string']()})),'note':z['string']()}),z['object']({'action':z['literal']('resolve'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.')}),z['object']({'action':z['literal']('list_files'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.'),'files':z['array'](z['object']({'path':z['string']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root.'),'is_dir':z['boolean'](),'size':z['number']()['describe']('File\x20size\x20in\x20bytes\x20(0\x20for\x20directories).'),'mtime':z['number']()['describe']('Last-modified\x20time\x20(epoch\x20ms).')}))['describe']('Files\x20under\x20the\x20industry\x20root.')}),z['object']({'action':z['literal']('read_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20read\x20file.'),'content':z['string']()['describe']('File\x20content\x20(text).')}),z['object']({'action':z['literal']('write_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20written\x20file.'),'ok':z['boolean']()['describe']('Whether\x20the\x20file\x20was\x20written.'),'restamped':z['boolean']()['optional']()['describe']('true\x20when\x20the\x20content\x20equaled\x20a\x20builtin\x20template\x27s\x20canonical\x20body\x20and\x20was\x20written\x20with\x20a\x20'+'fresh\x20release\x20stamp\x20(b9-2:\x20keeps\x20the\x20sentinel\x20hash\x20bound\x20so\x20the\x20seed-upgrade\x20channel\x20'+'stays\x20reachable).'),'note':z['string']()['optional']()['describe']('Human-readable\x20note\x20(set\x20when\x20restamped).')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'layer':z['enum'](['mode','match','dispute','compliance','supply','rules','playbook','template'])['optional']()['describe']('Echoes\x20the\x20requested\x20single-layer\x20selector\x20(absent\x20=\x20full\x20projection).'),'kind':z['enum'](['full','stub'])['optional']()['describe']('Registered\x20pack\x20completeness\x20(M-K14):\x20absent\x20when\x20the\x20pack\x20is\x20not\x20registered.'),'layers':z['array'](z['string']())['optional']()['describe']('Layers\x20the\x20registered\x20pack\x20declares\x20(absent\x20when\x20the\x20pack\x20is\x20not\x20registered).'),'missing_layers':z['array'](z['string']())['optional']()['describe']('Standard\x20business\x20layers\x20NOT\x20registered\x20for\x20this\x20pack\x20(stub\x20packs\x20list\x20'+'dispute/compliance/supply/rules/playbook\x20here)\x20—\x20data\x20was\x20not\x20silently\x20omitted.'),'note':z['string']()['optional']()['describe']('Named\x20explanation\x20for\x20missing\x20layers\x20or\x20template\x20listing\x20scope.'),'template':z['unknown']()['optional']()['describe']('Full\x20builtin\x20catalog\x20template\x20projection\x20(get\x20+\x20layer=\x27template\x27\x20with\x20a\x20template\x20id).'),'templates':z['array'](z['object']({'id':z['string']()['describe']('Template\x20id\x20\x27<industry>/<variant>\x27.'),'variant':z['string'](),'product_ref':z['string']()['describe']('Benchmark\x20product\x20this\x20archetype\x20models.'),'key_risk':z['string']()['describe']('Primary\x20risk\x20this\x20template\x20mitigates.')}))['optional']()['describe']('Template\x20summaries\x20for\x20the\x20industry\x20(get\x20+\x20layer=\x27template\x27\x20without\x20a\x20template\x20id).'),'mode':z['object']({'name':z['string']()['describe']('Mode\x20name.'),'display_name':z['string']()['describe']('Mode\x20display\x20name.'),'key_risk':z['string']()['describe']('The\x20industry\x27s\x20dominant\x20risk.'),'needs':z['array'](z['string']())['describe']('Industry\x20need\x20descriptions\x20(satisfaction\x20requires\x20the\x20evaluation\x20puzzle).'),'analyze_questions':z['array'](z['string']())['optional']()['describe']('Industry-embedded\x20Analyze\x20key\x20questions\x20(max\x202)\x20—\x20the\x20fallback\x20'+'follow-ups\x20when\x20the\x20user\x27s\x20persona\x20has\x20none\x20embedded.')})['optional']()['describe']('Registered\x20industry\x20MODE\x20data\x20(key_risk/needs/analyze\x20defaults),\x20if\x20any.'),'dispute':z['unknown']()['optional']()['describe']('Registered\x20dispute\x20rules\x20(if\x20any).'),'compliance':z['unknown']()['optional']()['describe']('Registered\x20compliance\x20rules\x20(if\x20any).'),'supply':z['unknown']()['optional']()['describe']('Registered\x20supply\x20rules\x20(if\x20any).'),'rules':z['unknown']()['optional']()['describe']('Registered\x20declarative\x20industry\x20rules\x20(if\x20any).'),'playbook':z['unknown']()['optional']()['describe']('Registered\x20playbook\x20(if\x20any).')}),z['object']({'action':z['literal']('diff'),'name':z['string']()['describe']('Industry\x20name.'),'registered':z['object']({'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()})['nullable']()['describe']('Currently\x20registered\x20metadata.'),'disk':z['object']({'version':z['string'](),'layers':z['array'](z['string']())})['nullable']()['describe']('On-disk\x20manifest\x20metadata.'),'upgradable':z['boolean']()['describe']('Whether\x20the\x20on-disk\x20version\x20differs\x20from\x20registered.'),'layer_diff':z['object']({'added':z['array'](z['string']()),'removed':z['array'](z['string']())})['describe']('Layer\x20difference\x20(disk\x20vs\x20registered).')}),z['object']({'action':z['literal']('reset'),'ok':z['boolean']()['describe']('Whether\x20reset\x20succeeded.'),'layout':z['enum'](['merged','legacy'])['describe']('Layout\x20format\x20that\x20was\x20restored:\x20\x27merged\x27\x20(single\x20pack.json\x20+\x20playbook.md)\x20or\x20\x27legacy\x27\x20(split\x20files).'),'target':z['string']()['describe']('Normalised\x20reset\x20target\x20path\x20(pack\x20name\x20or\x20file).'),'restored_files':z['array'](z['string']())['describe']('Files\x20that\x20were\x20restored\x20to\x20pristine\x20annotated\x20templates.'),'errors':z['array'](z['string']())['describe']('Errors\x20encountered\x20during\x20reset.')}),z['object']({'action':z['literal']('delete_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20deleted\x20file\x20or\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20file.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_dir'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('copy'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('move'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('rename'),'from':z['string']()['describe']('Absolute\x20old\x20path.'),'to':z['string']()['describe']('Absolute\x20new\x20path.'),'ok':z['boolean']()}),...[RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema]])})['strict']();
1
+ import{z}from'zod';import{MODE_REGISTRY_ACTIONS,ModeRegistryFields,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema}from'./modes.js';export const IndustryPackOperationInputSchema=z['object']({'action':z['enum'](['scaffold','list','scan','repair_builtin_templates','template_drift','resolve','list_files','read_file','write_file','get','diff','reset','delete_file','create_file','create_dir','copy','move','rename',...MODE_REGISTRY_ACTIONS])['describe']('Action:\x20\x27scaffold\x27\x20=\x20generate\x20a\x20pack\x20template\x20skeleton\x20(requires\x20name);\x20'+'\x27list\x27\x20=\x20list\x20registered\x20packs;\x20\x27scan\x27\x20=\x20scan\x20+\x20register\x20packs\x20under\x20the\x20default\x20directory;\x20'+'\x27template_drift\x27\x20=\x20REPORT\x20builtin\x20template\x20files\x20whose\x20on-disk\x20body\x20differs\x20from\x20the\x20in-code\x20catalog\x20'+'(classifies\x20no_sentinel_legacy\x20/\x20stale_release\x20/\x20user_modified);\x20run\x20it\x20FIRST\x20when\x20a\x20template\x20change\x20'+'\x27seems\x20to\x20have\x20no\x20effect.\x20'+'\x27repair_builtin_templates\x27\x20=\x20RESEED\x20those\x20legacy\x20files\x20from\x20the\x20in-code\x20catalog\x20'+'(identity-gated\x20on\x20a\x20known\x20builtin\x20id,\x20previous\x20body\x20kept\x20as\x20<file>.bak;\x20custom\x20templates\x20never\x20touched)'+'\x27resolve\x27\x20=\x20return\x20the\x20industry\x20root\x20directory;\x20\x27list_files\x27\x20=\x20list\x20files\x20under\x20the\x20industry\x20directory;\x20'+'\x27read_file\x27\x20=\x20read\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20required);\x20'+'\x27write_file\x27\x20=\x20write\x20content\x20to\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20+\x20content\x20required);\x20'+'\x27get\x27\x20=\x20return\x20registered\x20layer\x20data\x20for\x20an\x20industry\x20(name\x20required;\x20mode/dispute/compliance/supply/rules/playbook;\x20'+'an\x20optional\x20\x27layer\x27\x20selector\x20returns\x20ONE\x20layer\x20and\x20refuses\x20by\x20name\x20when\x20the\x20pack\x20does\x20not\x20register\x20it\x20—\x20'+'layer=\x27template\x27\x20reads\x20the\x20builtin\x20catalog\x20template\x20data\x20instead\x20of\x20pack\x20layers,\x20with\x20\x27template\x27\x20id\x20'+'optional\x20to\x20list\x20the\x20industry\x27s\x20templates);\x20'+'\x27diff\x27\x20=\x20compare\x20registered\x20vs\x20on-disk\x20manifest\x20version/layers\x20(name\x20required);\x20'+'\x27reset\x27\x20=\x20restore\x20a\x20file\x20or\x20entire\x20pack\x20folder\x20to\x20its\x20pristine\x20annotated\x20template\x20(path\x20required).\x20'+'\x27delete_file\x27\x20=\x20delete\x20a\x20file\x20or\x20directory\x20(path\x20required).\x20'+'\x27create_file\x27\x20=\x20create\x20an\x20empty\x20file\x20(path\x20required;\x20content\x20optional).\x20'+'\x27create_dir\x27\x20=\x20create\x20a\x20directory\x20recursively\x20(path\x20required).\x20'+'\x27copy\x27\x20=\x20copy\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'\x27move\x27\x20/\x20\x27rename\x27\x20=\x20move\x20or\x20rename\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'Mode\x20registry\x20(industry/scenario\x20configuration):\x20\x27recommend_industry\x27\x20=\x20business\x20intent\x20→\x20top-3\x20'+'similar\x20industries\x20+\x20reference\x20examples;\x20\x27list_modes\x27\x20=\x20builtin\x20+\x20custom\x20modes;\x20\x27derive_user_mode\x27\x20=\x20'+'derive\x20a\x20custom\x20mode\x20from\x20a\x20builtin;\x20\x27evolve_user_mode\x27\x20=\x20iterate\x20an\x20existing\x20custom\x20mode;\x20'+'\x27register_user_mode\x27\x20=\x20register\x20a\x20fully\x20custom\x20mode;\x20\x27unregister_user_mode\x27\x20=\x20delete\x20a\x20custom\x20mode;\x20'+'\x27register_custom_metric\x27\x20/\x20\x27register_custom_constraint\x27\x20=\x20register\x20global\x20evaluation\x20metric/constraint;\x20'+'\x27list_metrics_constraints\x27\x20=\x20list\x20metrics\x20+\x20constraints\x20(filterable).'),'name':z['string']()['optional']()['describe']('Industry\x20name\x20(lowercase\x20snake_case,\x20e.g.\x20\x27life_service\x27);\x20required\x20for\x20scaffold\x20and\x20get.'),'layer':z['enum'](['mode','match','dispute','compliance','supply','rules','playbook','template','params','components'])['optional']()['describe']('Optional\x20single-layer\x20selector\x20for\x20action=\x27get\x27.\x20Non-template\x20values\x20return\x20ONLY\x20that\x20registered\x20'+'pack\x20layer\x20and\x20refuse\x20with\x20a\x20named\x20error\x20when\x20the\x20pack\x20does\x20not\x20register\x20it\x20(stub\x20packs\x20carry\x20'+'only\x20mode/match).\x20\x27template\x27\x20reads\x20the\x20builtin\x20catalog:\x20with\x20\x27template\x27\x20set,\x20one\x20full\x20template\x20'+'projection;\x20without\x20it,\x20the\x20industry\x27s\x20template\x20summaries.\x20\x27params\x27\x20is\x20the\x20merchant-facing\x20'+'settings\x20surface:\x20with\x20\x27template\x27\x20set,\x20every\x20declared\x20parameter\x20of\x20that\x20template\x20in\x20business\x20'+'order\x20(meaning,\x20unit,\x20default,\x20accepted\x20values,\x20proven\x20status,\x20landing,\x20editable);\x20without\x20a\x20'+'template\x20id\x20it\x20requires\x20\x27query\x27\x20and\x20searches\x20the\x20catalog\x20for\x20the\x20business\x20facet.\x20\x27components\x27\x20'+'is\x20the\x20companion\x20object\x20surface:\x20every\x20Service/Sale/allocator/allocation/machine/guard/'+'repository\x20component\x20with\x20what\x20it\x20is,\x20HOW\x20to\x20configure\x20it\x20(surface\x20+\x20field\x20path)\x20and\x20WHEN,\x20'+'the\x20effect\x20once\x20it\x20takes\x20effect,\x20and\x20the\x20objects\x20it\x20is\x20bound\x20to\x20—\x20a\x20component\x20that\x20cannot\x20be\x20'+'configured\x20states\x20why\x20(e.g.\x20a\x20money\x20split\x20hard-coded\x20in\x20the\x20template\x20body).'),'query':z['string']()['optional']()['describe']('Free-text\x20business\x20phrase\x20(e.g.\x20\x27settlement\x20window\x27,\x20\x27take\x20rate\x27,\x20\x27cancel\x20fee\x27,\x20\x27allocator\x20'+'split\x27,\x20\x27repository\x20policy\x27)\x20used\x20with\x20action=\x27get\x27\x20+\x20layer=\x27params\x27\x20or\x20layer=\x27components\x27\x20to\x20'+'RANK\x20that\x20plane.\x20A\x20phrase\x20that\x20names\x20nothing\x20returns\x20an\x20empty\x20match\x20list\x20—\x20never\x20the\x20'+'least-bad\x20row.'),'template':z['string']()['optional']()['describe']('Builtin\x20template\x20id\x20\x27<industry>/<variant>\x27\x20(e.g.\x20\x27rental/p2p-shortstay\x27);\x20used\x20with\x20'+'action=\x27get\x27\x20+\x20layer=\x27template\x27\x20/\x20\x27params\x27\x20/\x20\x27components\x27.'),'path':z['string']()['optional']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20read_file,\x20write_file,\x20reset,\x20create_file,\x20create_dir).'),'content':z['string']()['optional']()['describe']('Text\x20content\x20to\x20write\x20(required\x20for\x20write_file;\x20optional\x20for\x20create_file).'),'from':z['string']()['optional']()['describe']('Source\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'to':z['string']()['optional']()['describe']('Destination\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'authorize':z['boolean']()['optional']()['describe']('EXPLICIT\x20USER\x20AUTHORIZATION\x20(C5)\x20required\x20before\x20any\x20action\x20that\x20MODIFIES\x20a\x20user-editable\x20'+'template\x20file\x20(any\x20path\x20under\x20\x27<industry>/templates/\x27)\x20—\x20write_file\x20/\x20delete_file\x20/\x20reset\x20/\x20'+'move\x20/\x20rename\x20on\x20such\x20a\x20path,\x20copy\x20ONTO\x20an\x20existing\x20such\x20file,\x20and\x20every\x20'+'repair_builtin_templates\x20execution.\x20WITHOUT\x20this\x20flag\x20'+'the\x20action\x20refuses\x20(or\x20returns\x20a\x20plan-only\x20preview\x20for\x20repair_builtin_templates).\x20Set\x20it\x20ONLY\x20'+'after\x20the\x20user\x20has\x20explicitly\x20confirmed\x20the\x20specific\x20change\x20in\x20the\x20conversation.'),'include_user_edited':z['array'](z['string']()['min'](0x1))['max'](0x32)['optional']()['describe']('Builtin\x20template\x20ids\x20(\x27<industry>/<variant>\x27)\x20whose\x20USER-EDIT\x20PROTECTION\x20is\x20explicitly\x20lifted\x20'+'for\x20repair_builtin_templates\x20/\x20template_drift\x20(b9-2).\x20A\x20sentinel\x20whose\x20hash\x20no\x20longer\x20binds\x20'+'its\x20body\x20normally\x20locks\x20the\x20file\x20out\x20of\x20the\x20seed-upgrade\x20channel\x20(presumed\x20user\x20edit);\x20pass\x20'+'the\x20ids\x20the\x20user\x20EXPLICITLY\x20approved\x20for\x20reseed\x20after\x20reviewing\x20the\x20field-level\x20diff\x20—\x20e.g.\x20'+'machine-proven\x20provenance\x20rot\x20(stale\x20deployment\x20stamp\x20or\x20an\x20authorized\x20write\x20that\x20updated\x20'+'the\x20body\x20without\x20re-stamping).\x20The\x20list\x20IS\x20the\x20per-file\x20consent:\x20it\x20must\x20ride\x20BOTH\x20the\x20'+'plan-only\x20preview\x20and\x20the\x20authorize=true\x20execute\x20call.\x20Never\x20list\x20an\x20id\x20the\x20user\x20has\x20not\x20'+'personally\x20confirmed.'),...ModeRegistryFields})['strict']();export const IndustryPackOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('scaffold'),'ok':z['boolean']()['describe']('Whether\x20the\x20skeleton\x20was\x20created.'),'dir':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20pack\x20directory.'),'files':z['array'](z['string']())['describe']('Created\x20file\x20paths\x20(relative\x20to\x20dir).'),'errors':z['array'](z['string']())['describe']('Validation/creation\x20errors\x20(empty\x20=\x20ok).')}),z['object']({'action':z['literal']('list'),'packs':z['array'](z['object']({'name':z['string'](),'kind':z['enum'](['full','stub'])['describe']('\x27full\x27\x20=\x20a\x20real\x20pack\x20registering\x20at\x20least\x20one\x20business\x20layer\x20'+'(dispute/compliance/supply/rules/playbook);\x20\x27stub\x27\x20=\x20a\x20builtin-mode\x20alias\x20'+'carrying\x20only\x20mode/match\x20data\x20(its\x20missing\x20layers\x20are\x20named\x20by\x20`get`).'),'version':z['string'](),'layers':z['array'](z['string']()),'product_refs':z['array'](z['string']())['describe']('Reference\x20platforms\x20mirrored\x20by\x20the\x20pack\x27s\x20builtin\x20templates.'),'registered_at':z['number']()}))['describe']('Currently\x20registered\x20packs.')}),z['object']({'action':z['literal']('scan'),'results':z['array'](z['object']({'ok':z['boolean'](),'errors':z['array'](z['string']()),'registered':z['array'](z['string']())}))['describe']('One\x20registration\x20result\x20per\x20scanned\x20pack\x20directory.')}),z['object']({'action':z['literal']('repair_builtin_templates'),'dir':z['string'](),'reseeded_count':z['number']()['int']()['nonnegative'](),'requires_authorization':z['boolean']()['optional']()['describe']('true\x20when\x20the\x20call\x20was\x20a\x20plan-only\x20PREVIEW\x20(no\x20writes).\x20Re-call\x20with\x20authorize=true\x20'+'after\x20the\x20user\x20explicitly\x20confirms\x20to\x20execute\x20the\x20reseed.'),'results':z['array'](z['object']({'template':z['string'](),'status':z['string'](),'path':z['string'](),'detail':z['string']()['optional']()})),'note':z['string']()}),z['object']({'action':z['literal']('template_drift'),'dir':z['string'](),'drift_count':z['number']()['int']()['nonnegative'](),'drift':z['array'](z['object']({'template':z['string'](),'path':z['string'](),'state':z['string'](),'detail':z['string']()})),'note':z['string']()}),z['object']({'action':z['literal']('resolve'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.')}),z['object']({'action':z['literal']('list_files'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.'),'files':z['array'](z['object']({'path':z['string']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root.'),'is_dir':z['boolean'](),'size':z['number']()['describe']('File\x20size\x20in\x20bytes\x20(0\x20for\x20directories).'),'mtime':z['number']()['describe']('Last-modified\x20time\x20(epoch\x20ms).')}))['describe']('Files\x20under\x20the\x20industry\x20root.')}),z['object']({'action':z['literal']('read_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20read\x20file.'),'content':z['string']()['describe']('File\x20content\x20(text).')}),z['object']({'action':z['literal']('write_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20written\x20file.'),'ok':z['boolean']()['describe']('Whether\x20the\x20file\x20was\x20written.'),'restamped':z['boolean']()['optional']()['describe']('true\x20when\x20the\x20content\x20equaled\x20a\x20builtin\x20template\x27s\x20canonical\x20body\x20and\x20was\x20written\x20with\x20a\x20'+'fresh\x20release\x20stamp\x20(b9-2:\x20keeps\x20the\x20sentinel\x20hash\x20bound\x20so\x20the\x20seed-upgrade\x20channel\x20'+'stays\x20reachable).'),'note':z['string']()['optional']()['describe']('Human-readable\x20note\x20(set\x20when\x20restamped).')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'layer':z['enum'](['mode','match','dispute','compliance','supply','rules','playbook','template','params','components'])['optional']()['describe']('Echoes\x20the\x20requested\x20single-layer\x20selector\x20(absent\x20=\x20full\x20projection).'),'kind':z['enum'](['full','stub'])['optional']()['describe']('Registered\x20pack\x20completeness\x20(M-K14):\x20absent\x20when\x20the\x20pack\x20is\x20not\x20registered.'),'layers':z['array'](z['string']())['optional']()['describe']('Layers\x20the\x20registered\x20pack\x20declares\x20(absent\x20when\x20the\x20pack\x20is\x20not\x20registered).'),'missing_layers':z['array'](z['string']())['optional']()['describe']('Standard\x20business\x20layers\x20NOT\x20registered\x20for\x20this\x20pack\x20(stub\x20packs\x20list\x20'+'dispute/compliance/supply/rules/playbook\x20here)\x20—\x20data\x20was\x20not\x20silently\x20omitted.'),'note':z['string']()['optional']()['describe']('Named\x20explanation\x20for\x20missing\x20layers\x20or\x20template\x20listing\x20scope.'),'template':z['unknown']()['optional']()['describe']('Full\x20builtin\x20catalog\x20template\x20projection\x20(get\x20+\x20layer=\x27template\x27\x20with\x20a\x20template\x20id).'),'templates':z['array'](z['object']({'id':z['string']()['describe']('Template\x20id\x20\x27<industry>/<variant>\x27.'),'variant':z['string'](),'product_ref':z['string']()['describe']('Benchmark\x20product\x20this\x20archetype\x20models.'),'key_risk':z['string']()['describe']('Primary\x20risk\x20this\x20template\x20mitigates.')}))['optional']()['describe']('Template\x20summaries\x20for\x20the\x20industry\x20(get\x20+\x20layer=\x27template\x27\x20without\x20a\x20template\x20id).'),'mode':z['object']({'name':z['string']()['describe']('Mode\x20name.'),'display_name':z['string']()['describe']('Mode\x20display\x20name.'),'key_risk':z['string']()['describe']('The\x20industry\x27s\x20dominant\x20risk.'),'needs':z['array'](z['string']())['describe']('Industry\x20need\x20descriptions\x20(satisfaction\x20requires\x20the\x20evaluation\x20puzzle).'),'analyze_questions':z['array'](z['string']())['optional']()['describe']('Industry-embedded\x20Analyze\x20key\x20questions\x20(max\x202)\x20—\x20the\x20fallback\x20'+'follow-ups\x20when\x20the\x20user\x27s\x20persona\x20has\x20none\x20embedded.')})['optional']()['describe']('Registered\x20industry\x20MODE\x20data\x20(key_risk/needs/analyze\x20defaults),\x20if\x20any.'),'query':z['string']()['optional']()['describe']('Echoes\x20the\x20\x27query\x27\x20used\x20to\x20rank\x20parameters.'),'param_summary':z['object']({'total':z['number']()['describe']('Declared\x20parameters\x20of\x20this\x20template.'),'editable':z['number']()['describe']('Parameters\x20the\x20front\x20stage\x20may\x20render\x20as\x20an\x20editable\x20control.'),'live':z['number']()['describe']('Parameters\x20proven\x20to\x20change\x20the\x20compiled\x20plan.'),'inert':z['number']()['describe']('Parameters\x20that\x20compile\x20to\x20the\x20same\x20plan\x20(shown,\x20not\x20offered).'),'not_flippable':z['number']()['describe']('Parameters\x20with\x20no\x20numeric\x20probe\x20(free-text).'),'hidden':z['number']()['describe']('Prose\x20directives:\x20listed\x20for\x20completeness,\x20never\x20offered.'),'undescribed':z['number']()['describe']('Rows\x20whose\x20meaning\x20is\x20not\x20curated\x20yet\x20(honest\x20fallback).')})['optional']()['describe']('Counts\x20over\x20the\x20returned\x20param\x20plane\x20(absent\x20unless\x20layer=\x27params\x27).'),'params':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Full\x20param\x20plane\x20in\x20business\x20order:\x20key,\x20tier/tier_name,\x20tags,\x20kind\x20'+'(money/ratio/duration/count/enum/flag/text/list),\x20unit/unit_hint,\x20meaning,\x20'+'bounds\x20(enterable\x20range:\x20rates\x200..10000,\x20amounts/counts\x20non-negative),\x20default,\x20'+'allowed\x20values\x20(enums),\x20disclosure,\x20selector,\x20status,\x20effect,\x20landing,\x20landing_line,\x20'+'editable,\x20inert_reason\x20(why\x20a\x20row\x20cannot\x20be\x20set).'),'param_matches':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Ranked\x20parameter\x20hits\x20for\x20\x27query\x27\x20—\x20each\x20carries\x20score\x20+\x20explainable\x20reasons\x20'+'(key\x20/\x20key-word\x20/\x20tag\x20/\x20alias\x20/\x20meaning\x20/\x20facet).\x20Empty\x20means\x20the\x20phrase\x20names\x20no\x20setting.\x20'+'A\x20query\x20made\x20only\x20of\x20tag\x20names\x20(\x27pricing\x27,\x20\x27risk\x27)\x20is\x20a\x20facet\x20request:\x20it\x20returns\x20that\x20'+'slice\x20in\x20tier\x20order.'),'component_summary':z['object']({'total':z['number']()['describe']('Components\x20on\x20the\x20plane\x20for\x20this\x20template.'),'configurable':z['number']()['describe']('Components\x20the\x20merchant\x20can\x20configure.'),'fixed':z['number']()['describe']('Components\x20that\x20cannot\x20be\x20configured\x20(each\x20carries\x20why_not).'),'hardcoded_splits':z['number']()['describe']('Allocator\x20rows\x20whose\x20money\x20split\x20is\x20a\x20genuine\x20literal\x20in\x20the\x20template\x20body\x20(rail/unset/surplus\x20rows\x20excluded\x20—\x20they\x20are\x20not\x20splits).'),'structural_rails':z['number']()['describe']('Allocator\x20rows\x20that\x20pay\x20the\x20entire\x20escrow\x20(100%):\x20the\x20payout\x20rail\x20itself,\x20not\x20a\x20rate.'),'unset_legs':z['number']()['describe']('Allocator\x20rows\x20at\x200\x20bps:\x20declared\x20placeholder\x20legs\x20(usually\x20the\x20order-side\x20residual\x20of\x20a\x20two-leg\x20group).'),'surplus_rows':z['number']()['describe']('Allocator\x20rows\x20whose\x20size\x20is\x20the\x20remainder\x20of\x20the\x20other\x20rows.'),'by_family':z['record'](z['string'](),z['number']())['describe']('Component\x20counts\x20by\x20family\x20(service/sales/allocator/allocation/machine/guard/repository/reward/arbitration/permission/treasury).')})['optional']()['describe']('Counts\x20over\x20the\x20returned\x20component\x20plane\x20(absent\x20unless\x20layer=\x27components\x27).'),'components':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Full\x20component\x20plane:\x20id,\x20family,\x20what\x20(business\x20meaning),\x20how\x20(surface:\x20create\x20/\x20pre-publish\x20/\x20'+'append-only\x20/\x20post-publish\x20/\x20immutable,\x20and\x20via:\x20the\x20MCP\x20field\x20path),\x20effect\x20(what\x20changes\x20on\x20'+'chain\x20once\x20it\x20takes\x20effect),\x20related\x20(bound\x20objects\x20/\x20guard\x20/\x20fee_param\x20/\x20node),\x20configurable,\x20'+'freeze\x20(allocator\x20rows\x20only:\x20rail\x20=\x20full-escrow\x20payout\x20rail,\x20unset\x20=\x200\x20bps\x20placeholder\x20leg,\x20'+'split\x20=\x20genuine\x20split\x20frozen\x20in\x20the\x20template\x20body,\x20surplus\x20=\x20remainder\x20row),\x20why_not\x20(present\x20'+'on\x20every\x20non-configurable\x20component).'),'component_matches':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Ranked\x20component\x20hits\x20for\x20\x27query\x27\x20(per-template),\x20each\x20headed\x20by\x20its\x20template\x20id.\x20Empty\x20means\x20the\x20'+'phrase\x20names\x20no\x20component\x20—\x20nothing\x20is\x20guessed.'),'dispute':z['unknown']()['optional']()['describe']('Registered\x20dispute\x20rules\x20(if\x20any).'),'compliance':z['unknown']()['optional']()['describe']('Registered\x20compliance\x20rules\x20(if\x20any).'),'supply':z['unknown']()['optional']()['describe']('Registered\x20supply\x20rules\x20(if\x20any).'),'rules':z['unknown']()['optional']()['describe']('Registered\x20declarative\x20industry\x20rules\x20(if\x20any).'),'playbook':z['unknown']()['optional']()['describe']('Registered\x20playbook\x20(if\x20any).')}),z['object']({'action':z['literal']('diff'),'name':z['string']()['describe']('Industry\x20name.'),'registered':z['object']({'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()})['nullable']()['describe']('Currently\x20registered\x20metadata.'),'disk':z['object']({'version':z['string'](),'layers':z['array'](z['string']())})['nullable']()['describe']('On-disk\x20manifest\x20metadata.'),'upgradable':z['boolean']()['describe']('Whether\x20the\x20on-disk\x20version\x20differs\x20from\x20registered.'),'layer_diff':z['object']({'added':z['array'](z['string']()),'removed':z['array'](z['string']())})['describe']('Layer\x20difference\x20(disk\x20vs\x20registered).')}),z['object']({'action':z['literal']('reset'),'ok':z['boolean']()['describe']('Whether\x20reset\x20succeeded.'),'layout':z['enum'](['merged','legacy'])['describe']('Layout\x20format\x20that\x20was\x20restored:\x20\x27merged\x27\x20(single\x20pack.json\x20+\x20playbook.md)\x20or\x20\x27legacy\x27\x20(split\x20files).'),'target':z['string']()['describe']('Normalised\x20reset\x20target\x20path\x20(pack\x20name\x20or\x20file).'),'restored_files':z['array'](z['string']())['describe']('Files\x20that\x20were\x20restored\x20to\x20pristine\x20annotated\x20templates.'),'errors':z['array'](z['string']())['describe']('Errors\x20encountered\x20during\x20reset.')}),z['object']({'action':z['literal']('delete_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20deleted\x20file\x20or\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20file.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_dir'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('copy'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('move'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('rename'),'from':z['string']()['describe']('Absolute\x20old\x20path.'),'to':z['string']()['describe']('Absolute\x20new\x20path.'),'ok':z['boolean']()}),...[RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema]])})['strict']();
@@ -1897,6 +1897,8 @@ export declare const AccountOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
1897
1897
  delivery_unknown: "delivery_unknown";
1898
1898
  capability_unavailable: "capability_unavailable";
1899
1899
  transport_unavailable: "transport_unavailable";
1900
+ peer_not_registered: "peer_not_registered";
1901
+ submission_too_large: "submission_too_large";
1900
1902
  }>>;
1901
1903
  retryable: z.ZodOptional<z.ZodBoolean>;
1902
1904
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -2311,6 +2313,8 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
2311
2313
  delivery_unknown: "delivery_unknown";
2312
2314
  capability_unavailable: "capability_unavailable";
2313
2315
  transport_unavailable: "transport_unavailable";
2316
+ peer_not_registered: "peer_not_registered";
2317
+ submission_too_large: "submission_too_large";
2314
2318
  }>>;
2315
2319
  retryable: z.ZodOptional<z.ZodBoolean>;
2316
2320
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -2766,6 +2770,8 @@ export declare const LocalMarkOperationOutputSchema: z.ZodDiscriminatedUnion<[z.
2766
2770
  delivery_unknown: "delivery_unknown";
2767
2771
  capability_unavailable: "capability_unavailable";
2768
2772
  transport_unavailable: "transport_unavailable";
2773
+ peer_not_registered: "peer_not_registered";
2774
+ submission_too_large: "submission_too_large";
2769
2775
  }>>;
2770
2776
  retryable: z.ZodOptional<z.ZodBoolean>;
2771
2777
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -2833,6 +2839,8 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
2833
2839
  delivery_unknown: "delivery_unknown";
2834
2840
  capability_unavailable: "capability_unavailable";
2835
2841
  transport_unavailable: "transport_unavailable";
2842
+ peer_not_registered: "peer_not_registered";
2843
+ submission_too_large: "submission_too_large";
2836
2844
  }>>;
2837
2845
  retryable: z.ZodOptional<z.ZodBoolean>;
2838
2846
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -3266,6 +3274,8 @@ export declare const LocalInfoOperationOutputSchema: z.ZodDiscriminatedUnion<[z.
3266
3274
  delivery_unknown: "delivery_unknown";
3267
3275
  capability_unavailable: "capability_unavailable";
3268
3276
  transport_unavailable: "transport_unavailable";
3277
+ peer_not_registered: "peer_not_registered";
3278
+ submission_too_large: "submission_too_large";
3269
3279
  }>>;
3270
3280
  retryable: z.ZodOptional<z.ZodBoolean>;
3271
3281
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -3316,6 +3326,8 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
3316
3326
  delivery_unknown: "delivery_unknown";
3317
3327
  capability_unavailable: "capability_unavailable";
3318
3328
  transport_unavailable: "transport_unavailable";
3329
+ peer_not_registered: "peer_not_registered";
3330
+ submission_too_large: "submission_too_large";
3319
3331
  }>>;
3320
3332
  retryable: z.ZodOptional<z.ZodBoolean>;
3321
3333
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -3770,6 +3782,8 @@ export declare const LocalHistoryOperationOutputSchema: z.ZodDiscriminatedUnion<
3770
3782
  delivery_unknown: "delivery_unknown";
3771
3783
  capability_unavailable: "capability_unavailable";
3772
3784
  transport_unavailable: "transport_unavailable";
3785
+ peer_not_registered: "peer_not_registered";
3786
+ submission_too_large: "submission_too_large";
3773
3787
  }>>;
3774
3788
  retryable: z.ZodOptional<z.ZodBoolean>;
3775
3789
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -3841,6 +3855,8 @@ export declare const LocalHistoryOperationOutputWrappedSchema: z.ZodObject<{
3841
3855
  delivery_unknown: "delivery_unknown";
3842
3856
  capability_unavailable: "capability_unavailable";
3843
3857
  transport_unavailable: "transport_unavailable";
3858
+ peer_not_registered: "peer_not_registered";
3859
+ submission_too_large: "submission_too_large";
3844
3860
  }>>;
3845
3861
  retryable: z.ZodOptional<z.ZodBoolean>;
3846
3862
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -4361,6 +4377,8 @@ export declare const LocalCacheOperationOutputSchema: z.ZodDiscriminatedUnion<[z
4361
4377
  delivery_unknown: "delivery_unknown";
4362
4378
  capability_unavailable: "capability_unavailable";
4363
4379
  transport_unavailable: "transport_unavailable";
4380
+ peer_not_registered: "peer_not_registered";
4381
+ submission_too_large: "submission_too_large";
4364
4382
  }>>;
4365
4383
  retryable: z.ZodOptional<z.ZodBoolean>;
4366
4384
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -4433,6 +4451,8 @@ export declare const LocalCacheOperationOutputWrappedSchema: z.ZodObject<{
4433
4451
  delivery_unknown: "delivery_unknown";
4434
4452
  capability_unavailable: "capability_unavailable";
4435
4453
  transport_unavailable: "transport_unavailable";
4454
+ peer_not_registered: "peer_not_registered";
4455
+ submission_too_large: "submission_too_large";
4436
4456
  }>>;
4437
4457
  retryable: z.ZodOptional<z.ZodBoolean>;
4438
4458
  recovery_hint: z.ZodOptional<z.ZodString>;