@wowok/agent-mcp 3.4.0 → 3.4.2

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 (412) hide show
  1. package/README.md +8 -0
  2. package/dist/chain-semantics/composition-truth.d.ts +102 -0
  3. package/dist/chain-semantics/composition-truth.js +1 -0
  4. package/dist/chain-semantics/eval-order.js +1 -1
  5. package/dist/chain-semantics/fund-flow.js +1 -1
  6. package/dist/chain-semantics/index.d.ts +1 -0
  7. package/dist/chain-semantics/index.js +1 -1
  8. package/dist/composition/audit.js +1 -1
  9. package/dist/composition/blueprint-view.d.ts +3 -3
  10. package/dist/composition/blueprint-view.js +1 -1
  11. package/dist/composition/compile.d.ts +24 -3
  12. package/dist/composition/compile.js +1 -1
  13. package/dist/composition/emit-phases.d.ts +206 -0
  14. package/dist/composition/emit-phases.js +1 -0
  15. package/dist/composition/generate.d.ts +40 -0
  16. package/dist/composition/generate.js +1 -0
  17. package/dist/composition/guard-fill.d.ts +44 -0
  18. package/dist/composition/guard-fill.js +1 -0
  19. package/dist/composition/inflight.d.ts +20 -2
  20. package/dist/composition/inflight.js +1 -1
  21. package/dist/composition/input-normalize.d.ts +15 -0
  22. package/dist/composition/input-normalize.js +1 -0
  23. package/dist/composition/materialize.d.ts +18 -13
  24. package/dist/composition/materialize.js +1 -1
  25. package/dist/composition/mode-gates.d.ts +35 -0
  26. package/dist/composition/mode-gates.js +1 -0
  27. package/dist/composition/param-disclosure.js +1 -1
  28. package/dist/composition/plan-retry-ledger.d.ts +21 -0
  29. package/dist/composition/plan-retry-ledger.js +1 -0
  30. package/dist/composition/plan.d.ts +7 -2
  31. package/dist/composition/plan.js +1 -1
  32. package/dist/composition/product-card.d.ts +94 -0
  33. package/dist/composition/product-card.js +1 -0
  34. package/dist/composition/supply-chain-emit.d.ts +46 -0
  35. package/dist/composition/supply-chain-emit.js +1 -0
  36. package/dist/config/config-audit.spec.js +1 -1
  37. package/dist/config/config-warnings.d.ts +2 -0
  38. package/dist/config/config-warnings.js +1 -0
  39. package/dist/config/exposure.d.ts +2 -2
  40. package/dist/config/judgment.d.ts +31 -5
  41. package/dist/config/judgment.js +1 -1
  42. package/dist/config/judgment.spec.js +1 -1
  43. package/dist/config/match-policy-file.d.ts +34 -0
  44. package/dist/config/match-policy-file.js +1 -0
  45. package/dist/config/match-policy-file.spec.d.ts +1 -0
  46. package/dist/config/match-policy-file.spec.js +1 -0
  47. package/dist/config/rule-engine.d.ts +5 -5
  48. package/dist/config/rule-engine.js +1 -1
  49. package/dist/config/runtime.d.ts +0 -1
  50. package/dist/config/runtime.js +1 -1
  51. package/dist/config/severity.d.ts +0 -2
  52. package/dist/config/severity.js +1 -1
  53. package/dist/config/store-policy.spec.js +1 -1
  54. package/dist/config/template-params.d.ts +42 -0
  55. package/dist/config/template-params.js +1 -0
  56. package/dist/config/template-params.spec.d.ts +1 -0
  57. package/dist/config/template-params.spec.js +1 -0
  58. package/dist/data/api/api.spec.js +1 -1
  59. package/dist/data/api/server.js +1 -1
  60. package/dist/data/projection/store.d.ts +2 -1
  61. package/dist/data/projection/store.js +1 -1
  62. package/dist/data/projection/types.d.ts +22 -0
  63. package/dist/data/sync/cdc.d.ts +1 -2
  64. package/dist/data/sync/cdc.js +1 -1
  65. package/dist/evaluation/acceptance.d.ts +8 -0
  66. package/dist/evaluation/acceptance.js +1 -1
  67. package/dist/evaluation/builtins/demand-match.js +1 -1
  68. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  69. package/dist/evaluation/capability.d.ts +2 -0
  70. package/dist/evaluation/category-match-rules.d.ts +0 -1
  71. package/dist/evaluation/category-match-rules.js +1 -1
  72. package/dist/evaluation/composer.d.ts +25 -0
  73. package/dist/evaluation/composer.js +1 -1
  74. package/dist/evaluation/engine.js +1 -1
  75. package/dist/evaluation/extract.d.ts +7 -0
  76. package/dist/evaluation/extract.js +1 -1
  77. package/dist/evaluation/game-strategy.d.ts +0 -3
  78. package/dist/evaluation/game-strategy.js +1 -1
  79. package/dist/evaluation/match-operation.d.ts +9 -0
  80. package/dist/evaluation/match-operation.js +1 -1
  81. package/dist/evaluation/match-policy-resolver.d.ts +9 -0
  82. package/dist/evaluation/match-policy-resolver.js +1 -0
  83. package/dist/evaluation/match-policy.d.ts +3 -1
  84. package/dist/evaluation/match-policy.js +1 -1
  85. package/dist/evaluation/region.d.ts +0 -6
  86. package/dist/evaluation/region.js +1 -1
  87. package/dist/evaluation/standards.d.ts +2 -1
  88. package/dist/evaluation/standards.js +1 -1
  89. package/dist/evaluation/structured-lines.d.ts +8 -0
  90. package/dist/evaluation/structured-lines.js +1 -0
  91. package/dist/evaluation/types.d.ts +6 -0
  92. package/dist/experience/realtime-feedback.js +1 -1
  93. package/dist/extensions/capability-manifest.d.ts +1 -0
  94. package/dist/extensions/capability-manifest.js +1 -1
  95. package/dist/extensions/capability.d.ts +91 -0
  96. package/dist/extensions/capability.js +1 -0
  97. package/dist/extensions/industry-audit.spec.js +1 -1
  98. package/dist/extensions/industry-pack.d.ts +13 -0
  99. package/dist/extensions/industry-pack.js +1 -1
  100. package/dist/extensions/modes.js +1 -1
  101. package/dist/extensions/registry.d.ts +0 -2
  102. package/dist/extensions/registry.js +1 -1
  103. package/dist/goal/GoalEngine.js +1 -1
  104. package/dist/graph/onchain/analyze.js +1 -1
  105. package/dist/graph/onchain/expand.js +1 -1
  106. package/dist/graph/onchain/exposure.js +1 -1
  107. package/dist/graph/onchain/facts.js +1 -1
  108. package/dist/graph/onchain/order-status.d.ts +0 -1
  109. package/dist/graph/onchain/order-status.js +1 -1
  110. package/dist/harness/recover.js +1 -1
  111. package/dist/harness/verify.d.ts +0 -3
  112. package/dist/harness/verify.js +1 -1
  113. package/dist/intent/types.d.ts +0 -1
  114. package/dist/intent/types.js +1 -1
  115. package/dist/keeper/detectors.js +1 -1
  116. package/dist/keeper/types.d.ts +0 -1
  117. package/dist/keeper/types.js +1 -1
  118. package/dist/knowledge/allocation-risk.d.ts +1 -0
  119. package/dist/knowledge/allocation-risk.js +1 -1
  120. package/dist/knowledge/allocator-rail-verifier.d.ts +6 -1
  121. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  122. package/dist/knowledge/arbitration-ledger.js +1 -1
  123. package/dist/knowledge/arbitration-puzzle.js +1 -1
  124. package/dist/knowledge/arbitration-templates.js +1 -1
  125. package/dist/knowledge/audit-rules.d.ts +4 -3
  126. package/dist/knowledge/audit-rules.js +1 -1
  127. package/dist/knowledge/baselines/judgment-baselines.json +21 -2
  128. package/dist/knowledge/baselines/rules/oracle.json +120 -0
  129. package/dist/knowledge/baselines/rules/plan.json +384 -17
  130. package/dist/knowledge/baselines/rules/progress.json +20 -2
  131. package/dist/knowledge/builtin-templates.d.ts +28 -1
  132. package/dist/knowledge/builtin-templates.js +1 -1
  133. package/dist/knowledge/component-schema.js +1 -1
  134. package/dist/knowledge/contact-templates.d.ts +0 -1
  135. package/dist/knowledge/contact-templates.js +1 -1
  136. package/dist/knowledge/dynamic-pricing.js +1 -1
  137. package/dist/knowledge/fee-param-bindings.js +1 -1
  138. package/dist/knowledge/fund-layer.d.ts +1 -0
  139. package/dist/knowledge/fund-layer.js +1 -1
  140. package/dist/knowledge/game-scenarios.js +1 -1
  141. package/dist/knowledge/getting-started.js +1 -1
  142. package/dist/knowledge/guard-binding-table.d.ts +52 -0
  143. package/dist/knowledge/guard-binding-table.js +1 -0
  144. package/dist/knowledge/guard-binding-verifier.d.ts +30 -0
  145. package/dist/knowledge/guard-binding-verifier.js +1 -0
  146. package/dist/knowledge/guard-bindings.js +1 -1
  147. package/dist/knowledge/guard-blueprint.d.ts +68 -0
  148. package/dist/knowledge/guard-blueprint.js +1 -0
  149. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  150. package/dist/knowledge/guard-design-patterns.js +1 -1
  151. package/dist/knowledge/guard-field-cognition.js +1 -1
  152. package/dist/knowledge/guard-host-context.d.ts +24 -0
  153. package/dist/knowledge/guard-host-context.js +1 -0
  154. package/dist/knowledge/guard-lint.js +1 -1
  155. package/dist/knowledge/guard-node-gates.d.ts +3 -0
  156. package/dist/knowledge/guard-node-gates.js +1 -1
  157. package/dist/knowledge/guard-puzzle.js +1 -1
  158. package/dist/knowledge/guard-render.js +1 -1
  159. package/dist/knowledge/guard-risk.js +1 -1
  160. package/dist/knowledge/guard-submission-prompt.d.ts +11 -0
  161. package/dist/knowledge/guard-submission-prompt.js +1 -1
  162. package/dist/knowledge/guard-templates.d.ts +1 -1
  163. package/dist/knowledge/guard-templates.js +1 -1
  164. package/dist/knowledge/guard-translation.js +1 -1
  165. package/dist/knowledge/index.d.ts +1 -1
  166. package/dist/knowledge/index.js +1 -1
  167. package/dist/knowledge/industry-generalizer.d.ts +6 -1
  168. package/dist/knowledge/industry-generalizer.js +1 -1
  169. package/dist/knowledge/industry-registry.js +1 -1
  170. package/dist/knowledge/jsonrpc-enum.d.ts +38 -0
  171. package/dist/knowledge/jsonrpc-enum.js +1 -1
  172. package/dist/knowledge/machine-topology.js +1 -1
  173. package/dist/knowledge/machine-translation.js +1 -1
  174. package/dist/knowledge/object-dependency.d.ts +31 -0
  175. package/dist/knowledge/object-dependency.js +1 -0
  176. package/dist/knowledge/onchain-constants.d.ts +2 -0
  177. package/dist/knowledge/onchain-constants.js +1 -1
  178. package/dist/knowledge/param-schema.d.ts +23 -0
  179. package/dist/knowledge/param-schema.js +1 -1
  180. package/dist/knowledge/param-tiers.js +1 -1
  181. package/dist/knowledge/passport-ledger.js +1 -1
  182. package/dist/knowledge/path-oracle/coverage.d.ts +16 -0
  183. package/dist/knowledge/path-oracle/coverage.js +1 -0
  184. package/dist/knowledge/path-oracle/index.d.ts +5 -0
  185. package/dist/knowledge/path-oracle/index.js +1 -0
  186. package/dist/knowledge/path-oracle/products/food-delivery.d.ts +2 -0
  187. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -0
  188. package/dist/knowledge/path-oracle/schema.d.ts +188 -0
  189. package/dist/knowledge/path-oracle/schema.js +1 -0
  190. package/dist/knowledge/pattern-resolutions.d.ts +2 -0
  191. package/dist/knowledge/pattern-resolutions.js +1 -1
  192. package/dist/knowledge/progress-ledger.js +1 -1
  193. package/dist/knowledge/progress-risk.js +1 -1
  194. package/dist/knowledge/projection.spec.js +1 -1
  195. package/dist/knowledge/protocol-facts.js +1 -1
  196. package/dist/knowledge/requirement-families.d.ts +13 -0
  197. package/dist/knowledge/requirement-families.js +1 -0
  198. package/dist/knowledge/reward-ledger.js +1 -1
  199. package/dist/knowledge/scenario-modes.d.ts +1 -0
  200. package/dist/knowledge/scenario-modes.js +1 -1
  201. package/dist/knowledge/semantic-ir.d.ts +4 -0
  202. package/dist/knowledge/semantic-ir.js +1 -1
  203. package/dist/knowledge/service-ledger.d.ts +1 -1
  204. package/dist/knowledge/service-ledger.js +1 -1
  205. package/dist/knowledge/sku-name-gate.d.ts +17 -0
  206. package/dist/knowledge/sku-name-gate.js +1 -0
  207. package/dist/knowledge/supply-chain.d.ts +9 -0
  208. package/dist/knowledge/supply-chain.js +1 -1
  209. package/dist/knowledge/template-loader.d.ts +14 -6
  210. package/dist/knowledge/template-loader.js +1 -1
  211. package/dist/knowledge/template-nav.d.ts +3 -1
  212. package/dist/knowledge/template-nav.js +1 -1
  213. package/dist/knowledge/template-prose.d.ts +1 -1
  214. package/dist/knowledge/template-registry.js +1 -1
  215. package/dist/knowledge/template-scanner.d.ts +62 -0
  216. package/dist/knowledge/template-scanner.js +1 -1
  217. package/dist/knowledge/template-test-profiles.js +1 -1
  218. package/dist/knowledge/tools-reference.js +1 -1
  219. package/dist/knowledge/workflow-guidance.d.ts +5 -0
  220. package/dist/knowledge/workflow-guidance.js +1 -1
  221. package/dist/monitor/MonitorLoop.js +1 -1
  222. package/dist/participation/customer-interest.d.ts +4 -0
  223. package/dist/participation/customer-interest.js +1 -1
  224. package/dist/participation/node-action-advisor.d.ts +4 -0
  225. package/dist/participation/node-action-advisor.js +1 -1
  226. package/dist/participation/radar-core.js +1 -1
  227. package/dist/participation/time-window.d.ts +11 -0
  228. package/dist/participation/time-window.js +1 -1
  229. package/dist/persona/address-format.d.ts +0 -1
  230. package/dist/persona/address-format.js +1 -1
  231. package/dist/persona/bridge.js +1 -1
  232. package/dist/persona/index.d.ts +0 -2
  233. package/dist/persona/index.js +1 -1
  234. package/dist/persona/model.js +1 -1
  235. package/dist/persona/persona-audit.spec.js +1 -1
  236. package/dist/persona/types.d.ts +6 -0
  237. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  238. package/dist/playbooks/service-build/game-theory.d.ts +2 -2
  239. package/dist/playbooks/service-build/intent-analyzer.js +1 -1
  240. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  241. package/dist/playbooks/service-build/merchant-guide.d.ts +50 -23
  242. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  243. package/dist/playbooks/service-build/migration-planner.d.ts +2 -0
  244. package/dist/playbooks/service-build/migration-planner.js +1 -1
  245. package/dist/playbooks/service-build/mode-actions.js +1 -1
  246. package/dist/playbooks/service-build/object-panorama.d.ts +8 -0
  247. package/dist/playbooks/service-build/object-panorama.js +1 -1
  248. package/dist/playbooks/service-build/participation-radar.js +1 -1
  249. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  250. package/dist/playbooks/service-build/reverse-mapping.d.ts +6 -0
  251. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  252. package/dist/playbooks/service-build/service-panorama.d.ts +1 -0
  253. package/dist/playbooks/service-build/service-panorama.js +1 -1
  254. package/dist/playbooks/service-build/service-quote.js +1 -1
  255. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  256. package/dist/playbooks/service-build/workflow-design-assessment.d.ts +10 -1
  257. package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
  258. package/dist/review/index.js +1 -1
  259. package/dist/review/repository.js +1 -1
  260. package/dist/safety/confirm-gate.js +1 -1
  261. package/dist/schema/benchmark-migration/index.d.ts +104 -0
  262. package/dist/schema/benchmark-migration/index.js +1 -1
  263. package/dist/schema/call/allocation.d.ts +15 -6
  264. package/dist/schema/call/allocation.js +1 -1
  265. package/dist/schema/call/base.d.ts +256 -0
  266. package/dist/schema/call/base.js +1 -1
  267. package/dist/schema/call/bridge.d.ts +32 -6
  268. package/dist/schema/call/demand.d.ts +15 -6
  269. package/dist/schema/call/demand.js +1 -1
  270. package/dist/schema/call/guard.d.ts +8 -8
  271. package/dist/schema/call/guard.js +1 -1
  272. package/dist/schema/call/handler.d.ts +3 -0
  273. package/dist/schema/call/handler.js +1 -1
  274. package/dist/schema/call/machine.d.ts +32 -8
  275. package/dist/schema/call/machine.js +1 -1
  276. package/dist/schema/call/order.d.ts +26 -8
  277. package/dist/schema/call/order.js +1 -1
  278. package/dist/schema/call/payment.d.ts +20 -8
  279. package/dist/schema/call/payment.js +1 -1
  280. package/dist/schema/call/permission-handler.js +1 -1
  281. package/dist/schema/call/permission.d.ts +330 -114
  282. package/dist/schema/call/permission.js +1 -1
  283. package/dist/schema/call/personal.d.ts +10 -4
  284. package/dist/schema/call/personal.js +1 -1
  285. package/dist/schema/call/progress.d.ts +16 -4
  286. package/dist/schema/call/proof.js +1 -1
  287. package/dist/schema/call/reward.d.ts +10 -4
  288. package/dist/schema/call/reward.js +1 -1
  289. package/dist/schema/call/semantic.d.ts +1 -0
  290. package/dist/schema/call/semantic.js +1 -1
  291. package/dist/schema/call/service.d.ts +143 -45
  292. package/dist/schema/call/service.js +1 -1
  293. package/dist/schema/call/treasury.d.ts +15 -6
  294. package/dist/schema/call/treasury.js +1 -1
  295. package/dist/schema/common/index.js +1 -1
  296. package/dist/schema/config/index.d.ts +61 -0
  297. package/dist/schema/config/index.js +1 -1
  298. package/dist/schema/envelope-unify.d.ts +4 -0
  299. package/dist/schema/envelope-unify.js +1 -0
  300. package/dist/schema/evaluation/index.d.ts +216 -19
  301. package/dist/schema/evaluation/index.js +1 -1
  302. package/dist/schema/goal/index.d.ts +47 -0
  303. package/dist/schema/goal/planning.d.ts +115 -1
  304. package/dist/schema/goal/planning.js +1 -1
  305. package/dist/schema/industry-pack/index.d.ts +137 -6
  306. package/dist/schema/industry-pack/index.js +1 -1
  307. package/dist/schema/industry-pack/modes.d.ts +6 -6
  308. package/dist/schema/keeper/index.d.ts +26 -0
  309. package/dist/schema/local/index.d.ts +137 -0
  310. package/dist/schema/local/index.js +1 -1
  311. package/dist/schema/local/wip.d.ts +6 -0
  312. package/dist/schema/local/wip.js +1 -1
  313. package/dist/schema/messenger/index.d.ts +26 -0
  314. package/dist/schema/operations.d.ts +345 -84
  315. package/dist/schema/operations.js +1 -1
  316. package/dist/schema/persona/index.d.ts +2907 -640
  317. package/dist/schema/persona/index.js +1 -1
  318. package/dist/schema/query/bi.d.ts +145 -4
  319. package/dist/schema/query/bi.js +1 -1
  320. package/dist/schema/query/index.d.ts +266 -73
  321. package/dist/schema/query/index.js +1 -1
  322. package/dist/schema/schema-query/index.d.ts +1 -1
  323. package/dist/schema/schema-query/index.js +1 -1
  324. package/dist/schema/schema-version.js +1 -1
  325. package/dist/schema/utils/permission-machine-check.d.ts +2 -0
  326. package/dist/schema/utils/permission-machine-check.js +1 -1
  327. package/dist/schema/watch/index.d.ts +16 -0
  328. package/dist/schema/watch/index.js +1 -1
  329. package/dist/schema/workflow/index.d.ts +2 -2
  330. package/dist/schema/workflow/index.js +1 -1
  331. package/dist/schema-query-impl/index.d.ts +1 -1
  332. package/dist/schema-query-impl/index.js +1 -1
  333. package/dist/schemas/account_operation.output.json +94 -0
  334. package/dist/schemas/benchmark_migration_operation.output.json +338 -9
  335. package/dist/schemas/benchmark_migration_operation.schema.json +27 -2
  336. package/dist/schemas/bridge_operation.output.json +94 -0
  337. package/dist/schemas/config_operation.output.json +352 -0
  338. package/dist/schemas/config_operation.schema.json +20 -2
  339. package/dist/schemas/evaluation_operation.output.json +570 -4
  340. package/dist/schemas/evaluation_operation.schema.json +194 -3
  341. package/dist/schemas/goal_operation.schema.json +183 -0
  342. package/dist/schemas/index.json +1 -1
  343. package/dist/schemas/industry_pack_operation.output.json +621 -0
  344. package/dist/schemas/industry_pack_operation.schema.json +20 -2
  345. package/dist/schemas/keeper_operation.output.json +94 -0
  346. package/dist/schemas/local_cache_operation.output.json +94 -0
  347. package/dist/schemas/local_history_operation.output.json +94 -0
  348. package/dist/schemas/local_info_operation.output.json +94 -0
  349. package/dist/schemas/local_mark_operation.output.json +94 -0
  350. package/dist/schemas/messenger_operation.output.json +94 -0
  351. package/dist/schemas/monitor_events.output.json +94 -0
  352. package/dist/schemas/monitor_subscription.output.json +94 -0
  353. package/dist/schemas/onchain_events.output.json +94 -0
  354. package/dist/schemas/onchain_operations.output.json +313 -1
  355. package/dist/schemas/onchain_operations.schema.json +1265 -671
  356. package/dist/schemas/onchain_operations_allocation.schema.json +30 -15
  357. package/dist/schemas/onchain_operations_arbitration.schema.json +9 -2
  358. package/dist/schemas/onchain_operations_contact.schema.json +8 -1
  359. package/dist/schemas/onchain_operations_demand.schema.json +29 -14
  360. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -1
  361. package/dist/schemas/onchain_operations_guard.schema.json +290 -105
  362. package/dist/schemas/onchain_operations_machine.schema.json +49 -34
  363. package/dist/schemas/onchain_operations_order.schema.json +63 -40
  364. package/dist/schemas/onchain_operations_payment.schema.json +26 -11
  365. package/dist/schemas/onchain_operations_permission.schema.json +362 -235
  366. package/dist/schemas/onchain_operations_personal.schema.json +27 -15
  367. package/dist/schemas/onchain_operations_progress.schema.json +45 -30
  368. package/dist/schemas/onchain_operations_proof.schema.json +9 -2
  369. package/dist/schemas/onchain_operations_repository.schema.json +8 -1
  370. package/dist/schemas/onchain_operations_reward.schema.json +32 -17
  371. package/dist/schemas/onchain_operations_service.schema.json +232 -125
  372. package/dist/schemas/onchain_operations_treasury.schema.json +32 -17
  373. package/dist/schemas/onchain_table_data.output.json +258 -6
  374. package/dist/schemas/onchain_table_data.schema.json +92 -52
  375. package/dist/schemas/persona_operation.output.json +7752 -0
  376. package/dist/schemas/persona_operation.schema.json +1232 -4
  377. package/dist/schemas/query_toolkit.output.json +756 -116
  378. package/dist/schemas/query_toolkit.schema.json +138 -7
  379. package/dist/schemas/schema_query.schema.json +1 -1
  380. package/dist/schemas/watch_operation.output.json +83 -0
  381. package/dist/schemas/wip_file.output.json +8 -0
  382. package/dist/schemas/workflow_operation.schema.json +2 -2
  383. package/dist/tools/handlers/benchmark-migration.d.ts +20 -3
  384. package/dist/tools/handlers/benchmark-migration.js +1 -1
  385. package/dist/tools/handlers/config.js +1 -1
  386. package/dist/tools/handlers/evaluation.js +1 -1
  387. package/dist/tools/handlers/evaluation.spec.js +1 -1
  388. package/dist/tools/handlers/industry-pack.js +1 -1
  389. package/dist/tools/handlers/onchain.d.ts +30 -0
  390. package/dist/tools/handlers/onchain.js +1 -1
  391. package/dist/tools/handlers/persona.js +1 -1
  392. package/dist/tools/handlers/query.d.ts +8 -0
  393. package/dist/tools/handlers/query.js +1 -1
  394. package/dist/tools/handlers/winner-derivation.d.ts +20 -0
  395. package/dist/tools/handlers/winner-derivation.js +1 -0
  396. package/dist/tools/handlers/wip-upload.js +1 -1
  397. package/dist/tools/index.d.ts +1 -0
  398. package/dist/tools/index.js +1 -1
  399. package/dist/tools/registry/business.js +1 -1
  400. package/dist/tools/registry/config.js +1 -1
  401. package/dist/tools/registry/evaluation.js +1 -1
  402. package/dist/tools/registry/identity.js +1 -1
  403. package/dist/tools/registry/query.js +1 -1
  404. package/dist/tools/transport-integrity.d.ts +7 -0
  405. package/dist/tools/transport-integrity.js +1 -0
  406. package/dist/tools/upgrade-check.js +1 -1
  407. package/dist/tools/wrap.d.ts +5 -0
  408. package/dist/tools/wrap.js +1 -1
  409. package/package.json +2 -2
  410. package/dist/extensions/business-modules.d.ts +0 -54
  411. package/dist/extensions/business-modules.js +0 -1
  412. package/dist/schemas/guard-templates.json +0 -379
@@ -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','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']();
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','capability_list','capability_get','compose_probe','product_cards','product_card','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\x20in\x20the\x20hidden\x20templates/.archive/\x20dir;\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'+'\x27capability_list\x27\x20=\x20list\x20the\x20Capability\x20Lattice\x20registry\x20(composable\x20business\x20units;\x20optional\x20\x27group\x27\x20filter);\x20'+'\x27capability_get\x27\x20=\x20full\x20card\x20of\x20ONE\x20capability\x20id\x20(intent/binds/requires/excludes/risks/disclosures/cost/constraints);\x20'+'\x27compose_probe\x27\x20=\x20probe\x20whether\x20a\x20capability\x20selection\x20can\x20coexist\x20in\x20one\x20build\x20—\x20static\x20lattice\x20check\x20+\x20optional\x20base-template\x20compile\x20baseline\x20(capabilities[]\x20required;\x20optional\x20\x27template\x27\x20as\x20the\x20base\x20build);\x20'+'\x27product_cards\x27\x20=\x20FRONT-stage\x20ProductCard\x20summaries\x20for\x20the\x20catalog\x20or\x20one\x20industry\x20(optional\x20\x27name\x27);\x20'+'\x27product_card\x27\x20=\x20the\x20full\x20ProductCard\x20of\x20ONE\x20builtin\x20template\x20(template\x20id\x20required)\x20—\x20alignment/features/cost/params/risks,\x20every\x20assertion\x20projected\x20from\x20declared\x20data;\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,\x20and\x20with\x20action=\x27compose_probe\x27\x20'+'as\x20the\x20base\x20build\x20the\x20capability\x20selection\x20is\x20probed\x20against.'),'capabilities':z['array'](z['string']()['min'](0x1))['max'](0xc)['optional']()['describe']('Capability\x20ids\x20(from\x20capability_list)\x20—\x20required\x20for\x20action=\x27compose_probe\x27\x20'+'(the\x20selection\x20to\x20probe;\x201..12\x20ids),\x20echoed\x20by\x20capability_get.'),'group':z['string']()['optional']()['describe']('Capability\x20group\x20filter\x20for\x20action=\x27capability_list\x27:\x20fund_safety\x20/\x20trust_evidence\x20/\x20'+'fulfillment\x20/\x20promotion\x20/\x20governance\x20/\x20composition.'),'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']('capability_list'),'total':z['number']()['describe']('Capabilities\x20in\x20the\x20filtered\x20registry\x20view.'),'capabilities':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'group':z['string'](),'description':z['string'](),'source':z['string']()['describe']('\x27core\x27\x20=\x20the\x2018\x20former\x20business\x20modules;\x20\x27composition\x27\x20=\x20cross-object\x20composition\x20seeds.'),'requires':z['array'](z['string']())['describe']('Capability\x20ids\x20that\x20must\x20be\x20adopted\x20together.'),'excludes':z['array'](z['string']())['describe']('Capability\x20ids\x20that\x20cannot\x20coexist\x20in\x20one\x20selection.'),'provides':z['array'](z['string']())['describe']('WorkflowCapabilities\x20bits\x20the\x20selection\x20can\x20claim.'),'requires_keeper':z['boolean']()}))['describe']('Registry\x20view\x20in\x20registry\x20order.')}),z['object']({'action':z['literal']('capability_get'),'capability':z['unknown']()['describe']('Full\x20capability\x20card:\x20identity,\x20group,\x20intent\x20(guard\x20design\x20pattern\x20ids\x20—\x20the\x20backend\x20truth),\x20'+'binds,\x20requires/excludes\x20(lattice\x20edges),\x20provides,\x20params,\x20risks,\x20disclosures,\x20cost,\x20'+'requiredConstraints,\x20evaluationImpact,\x20industryFit,\x20intentSignal\x20vocabulary\x20is\x20internal,\x20'+'userProtections,\x20merchantObligations,\x20keeper\x20duty.')}),z['object']({'action':z['literal']('compose_probe'),'capabilities':z['array'](z['string']())['describe']('The\x20probed\x20selection\x20(deduplicated).'),'feasible':z['boolean']()['describe']('true\x20=\x20no\x20lattice\x20or\x20compile\x20blocker.\x20Every\x20false\x20is\x20backed\x20by\x20named\x20blockers.'),'blockers':z['array'](z['object']({'code':z['string']()['describe']('COMPOSE-UNKNOWN-CAPABILITY\x20/\x20COMPOSE-REQUIRES-MISSING\x20/\x20COMPOSE-EXCLUDES-CONFLICT\x20/\x20COMPOSE-BASE-TEMPLATE-UNKNOWN\x20or\x20a\x20compile/audit\x20code.'),'detail':z['string']()}))['describe']('Named\x20findings\x20—\x20the\x20probe\x20measures,\x20it\x20never\x20guesses.'),'risks':z['array'](z['string']())['describe']('Aggregated\x20risk\x20notes\x20of\x20the\x20selection.'),'disclosures':z['array'](z['string']())['describe']('Aggregated\x20disclosure\x20obligations\x20of\x20the\x20selection.'),'cost_delta':z['object']({'gas_objects':z['number']()['describe']('Estimated\x20extra\x20on-chain\x20objects\x20beyond\x20the\x20base\x20build.'),'funds':z['array'](z['string']())['describe']('Pools\x20the\x20merchant\x20must\x20fill\x20(e.g.\x20compensation_fund).')})['describe']('Structural\x20cost\x20delta\x20of\x20the\x20selection.'),'provides':z['array'](z['string']())['describe']('WorkflowCapabilities\x20bits\x20the\x20selection\x20can\x20jointly\x20claim.'),'plan_steps':z['number']()['optional']()['describe']('Compiled\x20plan\x20step\x20count\x20of\x20the\x20base\x20template\x20(absent\x20without\x20\x27template\x27).'),'audit_score':z['number']()['optional']()['describe']('100\x20when\x20the\x20base\x20template\x20compiles\x20+\x20refluxes\x20clean,\x20else\x200\x20(absent\x20without\x20\x27template\x27).'),'templates_version':z['number']()['describe']('Template\x20catalog\x20sentinel\x20the\x20probe\x20ran\x20against.')}),z['object']({'action':z['literal']('product_cards'),'industry':z['string']()['describe']('Industry\x20filter\x20echoed\x20(\x27all\x27\x20when\x20absent).'),'total':z['number']()['describe']('Card\x20summaries\x20returned.'),'cards':z['array'](z['object']({'template_id':z['string'](),'industry':z['string'](),'product_ref':z['string']()['describe']('Benchmark\x20slug\x20(the\x20only\x20sanctioned\x20company\x20reference).'),'archetype':z['string'](),'one_liner':z['string']()['describe']('Mechanically\x20composed\x20from\x20declared\x20counts\x20—\x20no\x20invention.'),'cost_headline':z['object']({'platform_fee_bps':z['number'](),'gas_objects_estimate':z['number']()['describe']('Machine\x20nodes\x20+\x20guard\x20refs,\x20pre-compile\x20basis.'),'compensation_fund':z['enum'](['allowed','forbidden'])}),'params':z['object']({'total':z['number'](),'editable':z['number']()}),'templates_version':z['number']()}))['describe']('FRONT-stage\x20card\x20summaries\x20(full\x20rows\x20via\x20layer=\x27params\x27;\x20compiled\x20verdict\x20via\x20compose_probe).')}),z['object']({'action':z['literal']('product_card'),'alignment':z['object']({'template_id':z['string'](),'industry':z['string'](),'variant':z['string'](),'product_ref':z['string'](),'archetype':z['string'](),'phase':z['number'](),'one_liner':z['string'](),'evidence':z['array'](z['object']({'source':z['string'](),'detail':z['string']()}))['describe']('Every\x20card\x20assertion\x20is\x20anchored\x20—\x20no\x20anchor,\x20no\x20assertion.')})['describe']('WHO\x20this\x20product\x20aligns\x20with.'),'features':z['object']({'flow':z['array'](z['string']())['describe']('machine_shape\x20projected\x20as\x20merchant-view\x20steps.'),'fund_speed':z['unknown']()['describe']('Declared\x20settlement\x20clock\x20(settle_hours\x20/\x20auto_confirm_hours)\x20or\x20null.'),'model':z['array'](z['string']())['describe']('trust_mechanisms\x20verbatim.'),'vs_traditional':z['array'](z['object']({'dimension':z['string'](),'wowok':z['string']()['describe']('WoWok-side\x20figure\x20computed\x20from\x20declared\x20params.'),'traditional':z['null']()['describe']('ALWAYS\x20null\x20here\x20—\x20the\x20incumbent\x20figure\x20is\x20the\x20skill\x20layer\x27s\x20narrative\x20job;\x20the\x20card\x20never\x20invents\x20one.'),'wowok_evidence':z['array'](z['string']())}))['describe']('Take-rate\x20comparisons\x20the\x20template\x27s\x20declared\x20keys\x20can\x20back.')})['describe']('WHAT\x20the\x20product\x20does\x20and\x20how\x20it\x20compares.'),'cost':z['object']({'platform_fee':z['object']({'bps':z['number'](),'cap_bps':z['unknown'](),'self_platform':z['string'](),'evidence':z['array'](z['unknown']())}),'gas_objects_estimate':z['object']({'value':z['number'](),'basis':z['string']()}),'compensation_fund':z['object']({'policy':z['enum'](['allowed','forbidden']),'note':z['string']()}),'keeper_dependencies':z['array'](z['string']())})['describe']('WHAT\x20it\x20costs\x20to\x20run.'),'params':z['object']({'total':z['number'](),'editable':z['number'](),'live':z['number'](),'groups':z['array'](z['object']({'group':z['string'](),'tier':z['number'](),'count':z['number']()}))['describe']('Business-order\x20groups,\x20tier\x20ascending\x20(1\x20=\x20money\x20&\x20admission).'),'full_rows_via':z['string']()['describe']('Pointer\x20to\x20the\x20full\x20row\x20surface\x20(never\x20duplicated\x20here).')})['describe']('WHAT\x20the\x20merchant\x20can\x20set\x20(summary;\x20full\x20rows\x20via\x20layer=\x27params\x27).'),'risks':z['object']({'key_risk':z['string'](),'differences':z['array'](z['string']()),'user_inputs':z['array'](z['string']()),'capability_risks':z['array'](z['string']())['describe']('Empty\x20until\x20the\x20Binding\x20Table\x20lands\x20(M2+)\x20—\x20never\x20faked.'),'capability_risks_note':z['string']()})['describe']('WHAT\x20can\x20go\x20wrong\x20(template-declared\x20only).'),'templates_version':z['number']()}),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']();
@@ -187,8 +187,8 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
187
187
  ir_industry_match: z.ZodOptional<z.ZodBoolean>;
188
188
  requirement_support: z.ZodOptional<z.ZodNumber>;
189
189
  location_sensitivity: z.ZodEnum<{
190
- strict: "strict";
191
190
  logistics: "logistics";
191
+ strict: "strict";
192
192
  near: "near";
193
193
  }>;
194
194
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -222,8 +222,8 @@ export declare const ListModesResultSchema: z.ZodObject<{
222
222
  key_risk: z.ZodString;
223
223
  machine_nodes: z.ZodArray<z.ZodString>;
224
224
  location_sensitivity: z.ZodEnum<{
225
- strict: "strict";
226
225
  logistics: "logistics";
226
+ strict: "strict";
227
227
  near: "near";
228
228
  }>;
229
229
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -244,8 +244,8 @@ export declare const ListModesResultSchema: z.ZodObject<{
244
244
  key_risk: z.ZodString;
245
245
  machine_nodes: z.ZodArray<z.ZodString>;
246
246
  location_sensitivity: z.ZodEnum<{
247
- strict: "strict";
248
247
  logistics: "logistics";
248
+ strict: "strict";
249
249
  near: "near";
250
250
  }>;
251
251
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -271,8 +271,8 @@ export declare const DeriveUserModeResultSchema: z.ZodObject<{
271
271
  key_risk: z.ZodString;
272
272
  machine_nodes: z.ZodArray<z.ZodString>;
273
273
  location_sensitivity: z.ZodEnum<{
274
- strict: "strict";
275
274
  logistics: "logistics";
275
+ strict: "strict";
276
276
  near: "near";
277
277
  }>;
278
278
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -297,8 +297,8 @@ export declare const EvolveUserModeResultSchema: z.ZodObject<{
297
297
  key_risk: z.ZodString;
298
298
  machine_nodes: z.ZodArray<z.ZodString>;
299
299
  location_sensitivity: z.ZodEnum<{
300
- strict: "strict";
301
300
  logistics: "logistics";
301
+ strict: "strict";
302
302
  near: "near";
303
303
  }>;
304
304
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -323,8 +323,8 @@ export declare const RegisterUserModeResultSchema: z.ZodObject<{
323
323
  key_risk: z.ZodString;
324
324
  machine_nodes: z.ZodArray<z.ZodString>;
325
325
  location_sensitivity: z.ZodEnum<{
326
- strict: "strict";
327
326
  logistics: "logistics";
327
+ strict: "strict";
328
328
  near: "near";
329
329
  }>;
330
330
  trust_selling_points: z.ZodArray<z.ZodString>;
@@ -382,6 +382,30 @@ export declare const KeeperOperationOutputSchema: z.ZodObject<{
382
382
  top_risks: z.ZodArray<z.ZodString>;
383
383
  stakeholder_advice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
384
384
  }, z.core.$strip>>;
385
+ blueprint_verdict: z.ZodOptional<z.ZodObject<{
386
+ host: z.ZodString;
387
+ status: z.ZodEnum<{
388
+ blocked: "blocked";
389
+ proceed_with_warnings: "proceed_with_warnings";
390
+ proceed: "proceed";
391
+ }>;
392
+ statement: z.ZodString;
393
+ findings: z.ZodArray<z.ZodObject<{
394
+ source: z.ZodString;
395
+ code: z.ZodString;
396
+ level: z.ZodEnum<{
397
+ info: "info";
398
+ critical: "critical";
399
+ warning: "warning";
400
+ }>;
401
+ detail: z.ZodString;
402
+ }, z.core.$strip>>;
403
+ host_context: z.ZodOptional<z.ZodObject<{
404
+ signer_subject: z.ZodString;
405
+ order_anchor: z.ZodString;
406
+ identity_obligation: z.ZodString;
407
+ }, z.core.$strip>>;
408
+ }, z.core.$strip>>;
385
409
  }, z.core.$strict>>;
386
410
  workflow_guidance: z.ZodOptional<z.ZodObject<{
387
411
  current_node: z.ZodString;
@@ -478,6 +502,8 @@ export declare const KeeperOperationOutputSchema: z.ZodObject<{
478
502
  note: z.ZodOptional<z.ZodString>;
479
503
  }, z.core.$strict>>;
480
504
  note: z.ZodOptional<z.ZodString>;
505
+ digest: z.ZodOptional<z.ZodString>;
506
+ signer: z.ZodOptional<z.ZodString>;
481
507
  }, z.core.$strict>>;
482
508
  review_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
483
509
  step: z.ZodEnum<{
@@ -811,6 +811,13 @@ export declare const QueryAccountResultSchema: z.ZodObject<{
811
811
  nextCursor: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
812
812
  }, z.core.$strip>>;
813
813
  _balance_scope_note: z.ZodOptional<z.ZodString>;
814
+ _balance_read_freshness: z.ZodOptional<z.ZodObject<{
815
+ source: z.ZodLiteral<"live">;
816
+ cached: z.ZodBoolean;
817
+ network: z.ZodString;
818
+ fetched_at: z.ZodString;
819
+ note: z.ZodString;
820
+ }, z.core.$strip>>;
814
821
  }, z.core.$strip>;
815
822
  export declare const AccountOperationSchema: z.ZodObject<{
816
823
  gen: z.ZodOptional<z.ZodObject<{
@@ -2596,6 +2603,30 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
2596
2603
  top_risks: z.ZodArray<z.ZodString>;
2597
2604
  stakeholder_advice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
2598
2605
  }, z.core.$strip>>;
2606
+ blueprint_verdict: z.ZodOptional<z.ZodObject<{
2607
+ host: z.ZodString;
2608
+ status: z.ZodEnum<{
2609
+ blocked: "blocked";
2610
+ proceed_with_warnings: "proceed_with_warnings";
2611
+ proceed: "proceed";
2612
+ }>;
2613
+ statement: z.ZodString;
2614
+ findings: z.ZodArray<z.ZodObject<{
2615
+ source: z.ZodString;
2616
+ code: z.ZodString;
2617
+ level: z.ZodEnum<{
2618
+ info: "info";
2619
+ critical: "critical";
2620
+ warning: "warning";
2621
+ }>;
2622
+ detail: z.ZodString;
2623
+ }, z.core.$strip>>;
2624
+ host_context: z.ZodOptional<z.ZodObject<{
2625
+ signer_subject: z.ZodString;
2626
+ order_anchor: z.ZodString;
2627
+ identity_obligation: z.ZodString;
2628
+ }, z.core.$strip>>;
2629
+ }, z.core.$strip>>;
2599
2630
  }, z.core.$strict>>;
2600
2631
  workflow_guidance: z.ZodOptional<z.ZodObject<{
2601
2632
  current_node: z.ZodString;
@@ -2692,6 +2723,8 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
2692
2723
  note: z.ZodOptional<z.ZodString>;
2693
2724
  }, z.core.$strict>>;
2694
2725
  note: z.ZodOptional<z.ZodString>;
2726
+ digest: z.ZodOptional<z.ZodString>;
2727
+ signer: z.ZodOptional<z.ZodString>;
2695
2728
  }, z.core.$strict>>;
2696
2729
  review_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
2697
2730
  step: z.ZodEnum<{
@@ -3117,6 +3150,30 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
3117
3150
  top_risks: z.ZodArray<z.ZodString>;
3118
3151
  stakeholder_advice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3119
3152
  }, z.core.$strip>>;
3153
+ blueprint_verdict: z.ZodOptional<z.ZodObject<{
3154
+ host: z.ZodString;
3155
+ status: z.ZodEnum<{
3156
+ blocked: "blocked";
3157
+ proceed_with_warnings: "proceed_with_warnings";
3158
+ proceed: "proceed";
3159
+ }>;
3160
+ statement: z.ZodString;
3161
+ findings: z.ZodArray<z.ZodObject<{
3162
+ source: z.ZodString;
3163
+ code: z.ZodString;
3164
+ level: z.ZodEnum<{
3165
+ info: "info";
3166
+ critical: "critical";
3167
+ warning: "warning";
3168
+ }>;
3169
+ detail: z.ZodString;
3170
+ }, z.core.$strip>>;
3171
+ host_context: z.ZodOptional<z.ZodObject<{
3172
+ signer_subject: z.ZodString;
3173
+ order_anchor: z.ZodString;
3174
+ identity_obligation: z.ZodString;
3175
+ }, z.core.$strip>>;
3176
+ }, z.core.$strip>>;
3120
3177
  }, z.core.$strict>>;
3121
3178
  workflow_guidance: z.ZodOptional<z.ZodObject<{
3122
3179
  current_node: z.ZodString;
@@ -3213,6 +3270,8 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
3213
3270
  note: z.ZodOptional<z.ZodString>;
3214
3271
  }, z.core.$strict>>;
3215
3272
  note: z.ZodOptional<z.ZodString>;
3273
+ digest: z.ZodOptional<z.ZodString>;
3274
+ signer: z.ZodOptional<z.ZodString>;
3216
3275
  }, z.core.$strict>>;
3217
3276
  review_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
3218
3277
  step: z.ZodEnum<{
@@ -3604,6 +3663,30 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
3604
3663
  top_risks: z.ZodArray<z.ZodString>;
3605
3664
  stakeholder_advice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3606
3665
  }, z.core.$strip>>;
3666
+ blueprint_verdict: z.ZodOptional<z.ZodObject<{
3667
+ host: z.ZodString;
3668
+ status: z.ZodEnum<{
3669
+ blocked: "blocked";
3670
+ proceed_with_warnings: "proceed_with_warnings";
3671
+ proceed: "proceed";
3672
+ }>;
3673
+ statement: z.ZodString;
3674
+ findings: z.ZodArray<z.ZodObject<{
3675
+ source: z.ZodString;
3676
+ code: z.ZodString;
3677
+ level: z.ZodEnum<{
3678
+ info: "info";
3679
+ critical: "critical";
3680
+ warning: "warning";
3681
+ }>;
3682
+ detail: z.ZodString;
3683
+ }, z.core.$strip>>;
3684
+ host_context: z.ZodOptional<z.ZodObject<{
3685
+ signer_subject: z.ZodString;
3686
+ order_anchor: z.ZodString;
3687
+ identity_obligation: z.ZodString;
3688
+ }, z.core.$strip>>;
3689
+ }, z.core.$strip>>;
3607
3690
  }, z.core.$strict>>;
3608
3691
  workflow_guidance: z.ZodOptional<z.ZodObject<{
3609
3692
  current_node: z.ZodString;
@@ -3700,6 +3783,8 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
3700
3783
  note: z.ZodOptional<z.ZodString>;
3701
3784
  }, z.core.$strict>>;
3702
3785
  note: z.ZodOptional<z.ZodString>;
3786
+ digest: z.ZodOptional<z.ZodString>;
3787
+ signer: z.ZodOptional<z.ZodString>;
3703
3788
  }, z.core.$strict>>;
3704
3789
  review_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
3705
3790
  step: z.ZodEnum<{
@@ -4133,6 +4218,30 @@ export declare const LocalHistoryOperationOutputWrappedSchema: z.ZodObject<{
4133
4218
  top_risks: z.ZodArray<z.ZodString>;
4134
4219
  stakeholder_advice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
4135
4220
  }, z.core.$strip>>;
4221
+ blueprint_verdict: z.ZodOptional<z.ZodObject<{
4222
+ host: z.ZodString;
4223
+ status: z.ZodEnum<{
4224
+ blocked: "blocked";
4225
+ proceed_with_warnings: "proceed_with_warnings";
4226
+ proceed: "proceed";
4227
+ }>;
4228
+ statement: z.ZodString;
4229
+ findings: z.ZodArray<z.ZodObject<{
4230
+ source: z.ZodString;
4231
+ code: z.ZodString;
4232
+ level: z.ZodEnum<{
4233
+ info: "info";
4234
+ critical: "critical";
4235
+ warning: "warning";
4236
+ }>;
4237
+ detail: z.ZodString;
4238
+ }, z.core.$strip>>;
4239
+ host_context: z.ZodOptional<z.ZodObject<{
4240
+ signer_subject: z.ZodString;
4241
+ order_anchor: z.ZodString;
4242
+ identity_obligation: z.ZodString;
4243
+ }, z.core.$strip>>;
4244
+ }, z.core.$strip>>;
4136
4245
  }, z.core.$strict>>;
4137
4246
  workflow_guidance: z.ZodOptional<z.ZodObject<{
4138
4247
  current_node: z.ZodString;
@@ -4229,6 +4338,8 @@ export declare const LocalHistoryOperationOutputWrappedSchema: z.ZodObject<{
4229
4338
  note: z.ZodOptional<z.ZodString>;
4230
4339
  }, z.core.$strict>>;
4231
4340
  note: z.ZodOptional<z.ZodString>;
4341
+ digest: z.ZodOptional<z.ZodString>;
4342
+ signer: z.ZodOptional<z.ZodString>;
4232
4343
  }, z.core.$strict>>;
4233
4344
  review_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
4234
4345
  step: z.ZodEnum<{
@@ -4729,6 +4840,30 @@ export declare const LocalCacheOperationOutputWrappedSchema: z.ZodObject<{
4729
4840
  top_risks: z.ZodArray<z.ZodString>;
4730
4841
  stakeholder_advice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
4731
4842
  }, z.core.$strip>>;
4843
+ blueprint_verdict: z.ZodOptional<z.ZodObject<{
4844
+ host: z.ZodString;
4845
+ status: z.ZodEnum<{
4846
+ blocked: "blocked";
4847
+ proceed_with_warnings: "proceed_with_warnings";
4848
+ proceed: "proceed";
4849
+ }>;
4850
+ statement: z.ZodString;
4851
+ findings: z.ZodArray<z.ZodObject<{
4852
+ source: z.ZodString;
4853
+ code: z.ZodString;
4854
+ level: z.ZodEnum<{
4855
+ info: "info";
4856
+ critical: "critical";
4857
+ warning: "warning";
4858
+ }>;
4859
+ detail: z.ZodString;
4860
+ }, z.core.$strip>>;
4861
+ host_context: z.ZodOptional<z.ZodObject<{
4862
+ signer_subject: z.ZodString;
4863
+ order_anchor: z.ZodString;
4864
+ identity_obligation: z.ZodString;
4865
+ }, z.core.$strip>>;
4866
+ }, z.core.$strip>>;
4732
4867
  }, z.core.$strict>>;
4733
4868
  workflow_guidance: z.ZodOptional<z.ZodObject<{
4734
4869
  current_node: z.ZodString;
@@ -4825,6 +4960,8 @@ export declare const LocalCacheOperationOutputWrappedSchema: z.ZodObject<{
4825
4960
  note: z.ZodOptional<z.ZodString>;
4826
4961
  }, z.core.$strict>>;
4827
4962
  note: z.ZodOptional<z.ZodString>;
4963
+ digest: z.ZodOptional<z.ZodString>;
4964
+ signer: z.ZodOptional<z.ZodString>;
4828
4965
  }, z.core.$strict>>;
4829
4966
  review_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
4830
4967
  step: z.ZodEnum<{