@wowok/agent-mcp 2.7.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (393) hide show
  1. package/README.md +2 -2
  2. package/dist/config/runtime.d.ts +1 -1
  3. package/dist/config/runtime.js +1 -1
  4. package/dist/examples/rental-ziroom-machine-create.json +1 -2
  5. package/dist/examples/rental-ziroom-permission-create.json +1 -2
  6. package/dist/examples/rental-ziroom-service-create.json +1 -2
  7. package/dist/experience/experience-reuse.js +1 -1
  8. package/dist/experience/index.d.ts +2 -1
  9. package/dist/experience/index.js +1 -1
  10. package/dist/experience/persistence-config.d.ts +6 -0
  11. package/dist/experience/persistence-config.js +1 -0
  12. package/dist/experience/persistence.d.ts +21 -0
  13. package/dist/experience/persistence.js +1 -0
  14. package/dist/experience/realtime-feedback.js +1 -1
  15. package/dist/experience/user-profile.js +1 -1
  16. package/dist/extensions/business-modules.d.ts +1 -1
  17. package/dist/extensions/capability-manifest.d.ts +2 -83
  18. package/dist/extensions/capability-manifest.js +1 -1
  19. package/dist/extensions/constraint-registry.d.ts +6 -4
  20. package/dist/extensions/constraint-registry.js +1 -1
  21. package/dist/extensions/index.d.ts +4 -5
  22. package/dist/extensions/index.js +1 -1
  23. package/dist/extensions/industry-pack.js +1 -1
  24. package/dist/extensions/metric-registry.d.ts +6 -4
  25. package/dist/extensions/metric-registry.js +1 -1
  26. package/dist/extensions/mode-evaluator.d.ts +2 -3
  27. package/dist/extensions/mode-evaluator.js +1 -1
  28. package/dist/extensions/registry.d.ts +3 -25
  29. package/dist/extensions/registry.js +1 -1
  30. package/dist/extensions/types.d.ts +1 -69
  31. package/dist/goal/GoalClassifier.d.ts +17 -0
  32. package/dist/goal/GoalClassifier.js +1 -0
  33. package/dist/goal/GoalEngine.d.ts +155 -0
  34. package/dist/goal/GoalEngine.js +1 -0
  35. package/dist/goal/GoalStore.d.ts +27 -0
  36. package/dist/goal/GoalStore.js +1 -0
  37. package/dist/goal/plan-approval.d.ts +5 -0
  38. package/dist/goal/plan-approval.js +1 -0
  39. package/dist/goal/types.d.ts +80 -0
  40. package/dist/goal/types.js +1 -0
  41. package/dist/harness/index.d.ts +2 -7
  42. package/dist/harness/index.js +1 -1
  43. package/dist/harness/plan.d.ts +1 -1
  44. package/dist/harness/types.d.ts +0 -35
  45. package/dist/index.js +1 -1
  46. package/dist/knowledge/account-marks.d.ts +36 -0
  47. package/dist/knowledge/account-marks.js +1 -0
  48. package/dist/knowledge/audit-rules.d.ts +3 -1
  49. package/dist/knowledge/audit-rules.js +1 -1
  50. package/dist/knowledge/examples-scanner-cli.js +1 -1
  51. package/dist/knowledge/examples-scanner.js +1 -1
  52. package/dist/knowledge/fund-layer.d.ts +13 -9
  53. package/dist/knowledge/fund-layer.js +1 -1
  54. package/dist/knowledge/goal-completion.d.ts +19 -0
  55. package/dist/knowledge/goal-completion.js +1 -0
  56. package/dist/knowledge/guard-bindings.d.ts +21 -0
  57. package/dist/knowledge/guard-bindings.js +1 -0
  58. package/dist/knowledge/guard-translation.js +1 -1
  59. package/dist/knowledge/index.d.ts +6 -3
  60. package/dist/knowledge/index.js +1 -1
  61. package/dist/knowledge/industry-registry.js +1 -1
  62. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  63. package/dist/knowledge/mcp-schema-audit.js +1 -1
  64. package/dist/knowledge/operation-dictionary.js +1 -1
  65. package/dist/knowledge/passport-confirm.js +1 -1
  66. package/dist/knowledge/passport-puzzle.js +1 -1
  67. package/dist/knowledge/passport-translation.js +1 -1
  68. package/dist/knowledge/proof-risk.js +1 -1
  69. package/dist/knowledge/reward-risk.d.ts +1 -1
  70. package/dist/knowledge/reward-risk.js +1 -1
  71. package/dist/knowledge/safety-rules.d.ts +2 -1
  72. package/dist/knowledge/safety-rules.js +1 -1
  73. package/dist/knowledge/scenario-topology.d.ts +43 -0
  74. package/dist/knowledge/scenario-topology.js +1 -0
  75. package/dist/knowledge/service-translation.js +1 -1
  76. package/dist/knowledge/supply-chain.js +1 -1
  77. package/dist/knowledge/template-registry.js +1 -1
  78. package/dist/knowledge/tools-reference.js +1 -1
  79. package/dist/knowledge/workflow-guidance.d.ts +36 -0
  80. package/dist/knowledge/workflow-guidance.js +1 -1
  81. package/dist/knowledge/workspace-lists.d.ts +57 -0
  82. package/dist/knowledge/workspace-lists.js +1 -0
  83. package/dist/loop-engineering/context-collect.d.ts +1 -1
  84. package/dist/monitor/EventRouter.d.ts +10 -0
  85. package/dist/monitor/EventRouter.js +1 -0
  86. package/dist/monitor/EventStore.d.ts +32 -12
  87. package/dist/monitor/EventStore.js +1 -1
  88. package/dist/monitor/MonitorLoop.d.ts +81 -0
  89. package/dist/monitor/MonitorLoop.js +1 -0
  90. package/dist/monitor/ProblemBridge.d.ts +32 -0
  91. package/dist/monitor/ProblemBridge.js +1 -0
  92. package/dist/monitor/ScopeResolver.d.ts +59 -0
  93. package/dist/monitor/ScopeResolver.js +1 -0
  94. package/dist/monitor/SubscriptionStore.d.ts +13 -0
  95. package/dist/monitor/SubscriptionStore.js +1 -0
  96. package/dist/monitor/SuggestionBridge.d.ts +38 -0
  97. package/dist/monitor/SuggestionBridge.js +1 -0
  98. package/dist/monitor/normalize.d.ts +8 -0
  99. package/dist/monitor/normalize.js +1 -0
  100. package/dist/monitor/types.d.ts +89 -0
  101. package/dist/monitor/types.js +1 -0
  102. package/dist/participation/arbitrator-interest.d.ts +20 -0
  103. package/dist/participation/arbitrator-interest.js +1 -0
  104. package/dist/participation/demander-interest.d.ts +23 -0
  105. package/dist/participation/demander-interest.js +1 -0
  106. package/dist/persona/address-format.d.ts +1 -1
  107. package/dist/persona/address-format.js +1 -1
  108. package/dist/persona/distill-goal.d.ts +20 -0
  109. package/dist/persona/distill-goal.js +1 -0
  110. package/dist/persona/index.d.ts +2 -0
  111. package/dist/persona/index.js +1 -1
  112. package/dist/persona/model.js +1 -1
  113. package/dist/playbooks/service-build/business-puzzle.js +1 -0
  114. package/dist/{project → playbooks/service-build}/context-assembly.d.ts +9 -4
  115. package/dist/playbooks/service-build/context-assembly.js +1 -0
  116. package/dist/{project → playbooks/service-build}/game-theory.d.ts +1 -1
  117. package/dist/playbooks/service-build/index.d.ts +14 -0
  118. package/dist/playbooks/service-build/index.js +1 -0
  119. package/dist/{project → playbooks/service-build}/intent-analyzer.d.ts +1 -1
  120. package/dist/playbooks/service-build/intent-analyzer.js +1 -0
  121. package/dist/playbooks/service-build/machine-nodes.js +1 -0
  122. package/dist/{project → playbooks/service-build}/machine-panorama.d.ts +5 -3
  123. package/dist/playbooks/service-build/machine-panorama.js +1 -0
  124. package/dist/{project → playbooks/service-build}/merchant-guide.d.ts +21 -1
  125. package/dist/playbooks/service-build/merchant-guide.js +1 -0
  126. package/dist/{project → playbooks/service-build}/mode-actions.d.ts +32 -8
  127. package/dist/playbooks/service-build/mode-actions.js +1 -0
  128. package/dist/playbooks/service-build/namespace.d.ts +2 -0
  129. package/dist/playbooks/service-build/namespace.js +1 -0
  130. package/dist/{project → playbooks/service-build}/object-panorama.d.ts +2 -3
  131. package/dist/playbooks/service-build/object-panorama.js +1 -0
  132. package/dist/{project → playbooks/service-build}/participation-radar.d.ts +4 -5
  133. package/dist/playbooks/service-build/participation-radar.js +1 -0
  134. package/dist/{project → playbooks/service-build}/pipeline-actions.d.ts +9 -9
  135. package/dist/playbooks/service-build/pipeline-actions.js +1 -0
  136. package/dist/playbooks/service-build/process.d.ts +6 -0
  137. package/dist/playbooks/service-build/process.js +1 -0
  138. package/dist/playbooks/service-build/relationship-profile.d.ts +2 -0
  139. package/dist/playbooks/service-build/relationship-profile.js +1 -0
  140. package/dist/playbooks/service-build/risk-aggregator.js +1 -0
  141. package/dist/{project → playbooks/service-build}/semantic-graph.d.ts +7 -3
  142. package/dist/playbooks/service-build/semantic-graph.js +1 -0
  143. package/dist/{project → playbooks/service-build}/service-panorama.d.ts +3 -19
  144. package/dist/playbooks/service-build/service-panorama.js +1 -0
  145. package/dist/relationship/derivation.d.ts +88 -0
  146. package/dist/relationship/derivation.js +1 -0
  147. package/dist/relationship/incentive.d.ts +38 -0
  148. package/dist/relationship/incentive.js +1 -0
  149. package/dist/relationship/index.d.ts +4 -0
  150. package/dist/relationship/index.js +1 -0
  151. package/dist/relationship/registry.d.ts +13 -0
  152. package/dist/relationship/registry.js +1 -0
  153. package/dist/relationship/types.d.ts +45 -0
  154. package/dist/relationship/types.js +1 -0
  155. package/dist/review/arb.d.ts +6 -0
  156. package/dist/review/arb.js +1 -0
  157. package/dist/review/demand.d.ts +3 -0
  158. package/dist/review/demand.js +1 -0
  159. package/dist/review/index.d.ts +3 -0
  160. package/dist/review/index.js +1 -0
  161. package/dist/review/machine.d.ts +3 -0
  162. package/dist/review/machine.js +1 -0
  163. package/dist/review/order.d.ts +9 -0
  164. package/dist/review/order.js +1 -0
  165. package/dist/review/progress.d.ts +3 -0
  166. package/dist/review/progress.js +1 -0
  167. package/dist/review/repository.d.ts +3 -0
  168. package/dist/review/repository.js +1 -0
  169. package/dist/review/service.d.ts +5 -0
  170. package/dist/review/service.js +1 -0
  171. package/dist/review/types.d.ts +156 -0
  172. package/dist/review/types.js +1 -0
  173. package/dist/rules.d.ts +2 -2
  174. package/dist/rules.js +1 -1
  175. package/dist/safety/confirm-gate.js +1 -1
  176. package/dist/safety/index.d.ts +1 -1
  177. package/dist/safety/index.js +1 -1
  178. package/dist/safety/preview.d.ts +1 -0
  179. package/dist/safety/preview.js +1 -1
  180. package/dist/schema/call/allocation.d.ts +1 -1
  181. package/dist/schema/call/arbitration.d.ts +1 -1
  182. package/dist/schema/call/base.d.ts +1 -1
  183. package/dist/schema/call/base.js +1 -1
  184. package/dist/schema/call/bridge.d.ts +29 -7
  185. package/dist/schema/call/bridge.js +1 -1
  186. package/dist/schema/call/contact.d.ts +1 -1
  187. package/dist/schema/call/contact.js +1 -1
  188. package/dist/schema/call/demand.d.ts +1 -1
  189. package/dist/schema/call/demand.js +1 -1
  190. package/dist/schema/call/guard.d.ts +3 -3
  191. package/dist/schema/call/handler.d.ts +0 -3
  192. package/dist/schema/call/handler.js +1 -1
  193. package/dist/schema/call/machine.d.ts +2 -2
  194. package/dist/schema/call/order.d.ts +1 -1
  195. package/dist/schema/call/payment.d.ts +1 -1
  196. package/dist/schema/call/permission.d.ts +1 -1
  197. package/dist/schema/call/personal.d.ts +1 -1
  198. package/dist/schema/call/progress.d.ts +1 -1
  199. package/dist/schema/call/proof.d.ts +2 -2
  200. package/dist/schema/call/repository.d.ts +1 -1
  201. package/dist/schema/call/repository.js +1 -1
  202. package/dist/schema/call/reward.d.ts +1 -1
  203. package/dist/schema/call/semantic.js +1 -1
  204. package/dist/schema/call/service.d.ts +1 -1
  205. package/dist/schema/call/service.js +1 -1
  206. package/dist/schema/call/treasury.d.ts +1 -1
  207. package/dist/schema/common/index.js +1 -1
  208. package/dist/schema/goal/index.d.ts +343 -0
  209. package/dist/schema/goal/index.js +1 -0
  210. package/dist/schema/goal/planning.d.ts +465 -0
  211. package/dist/schema/goal/planning.js +1 -0
  212. package/dist/schema/index.d.ts +1 -2
  213. package/dist/schema/index.js +1 -1
  214. package/dist/schema/industry-pack/index.d.ts +323 -1
  215. package/dist/schema/industry-pack/index.js +1 -1
  216. package/dist/schema/industry-pack/modes.d.ts +326 -0
  217. package/dist/schema/industry-pack/modes.js +1 -0
  218. package/dist/schema/intent-radar/index.d.ts +19 -19
  219. package/dist/schema/local/index.d.ts +11 -0
  220. package/dist/schema/local/index.js +1 -1
  221. package/dist/schema/operations.d.ts +258 -19
  222. package/dist/schema/operations.js +1 -1
  223. package/dist/schema/permission/index.d.ts +1 -0
  224. package/dist/schema/permission/index.js +1 -1
  225. package/dist/schema/persona/index.d.ts +40 -0
  226. package/dist/schema/persona/index.js +1 -1
  227. package/dist/schema/query/bi.d.ts +912 -0
  228. package/dist/schema/query/bi.js +1 -0
  229. package/dist/schema/query/index.d.ts +663 -2
  230. package/dist/schema/query/index.js +1 -1
  231. package/dist/schema/schema-version.js +1 -1
  232. package/dist/schema/utils/skills-recommendation.d.ts +0 -1
  233. package/dist/schema/utils/skills-recommendation.js +1 -1
  234. package/dist/schema-query-impl/index.js +1 -1
  235. package/dist/schemas/account_operation.output.json +32 -3
  236. package/dist/schemas/account_operation.schema.json +8 -4
  237. package/dist/schemas/bridge_operation.output.json +26 -3
  238. package/dist/schemas/bridge_operation.schema.json +85 -13
  239. package/dist/schemas/config_operation.output.json +1 -1
  240. package/dist/schemas/config_operation.schema.json +1 -1
  241. package/dist/schemas/goal_operation.schema.json +1092 -0
  242. package/dist/schemas/guard2file.schema.json +3 -3
  243. package/dist/schemas/index.json +12 -13
  244. package/dist/schemas/industry_pack_operation.output.json +1073 -0
  245. package/dist/schemas/industry_pack_operation.schema.json +236 -2
  246. package/dist/schemas/local_info_operation.output.json +2 -2
  247. package/dist/schemas/local_mark_operation.output.json +2 -2
  248. package/dist/schemas/machineNode2file.schema.json +3 -3
  249. package/dist/schemas/messenger_operation.output.json +2 -2
  250. package/dist/schemas/monitor_events.output.json +78 -3
  251. package/dist/schemas/monitor_events.schema.json +24 -1
  252. package/dist/schemas/monitor_subscription.output.json +1462 -0
  253. package/dist/schemas/monitor_subscription.schema.json +327 -0
  254. package/dist/schemas/onchain_events.output.json +5 -5
  255. package/dist/schemas/onchain_operations.output.json +2 -2
  256. package/dist/schemas/onchain_operations.schema.json +100 -100
  257. package/dist/schemas/onchain_operations_allocation.schema.json +7 -7
  258. package/dist/schemas/onchain_operations_arbitration.schema.json +6 -6
  259. package/dist/schemas/onchain_operations_contact.schema.json +6 -6
  260. package/dist/schemas/onchain_operations_demand.schema.json +6 -6
  261. package/dist/schemas/onchain_operations_gen_passport.schema.json +3 -3
  262. package/dist/schemas/onchain_operations_gen_proof.schema.json +3 -3
  263. package/dist/schemas/onchain_operations_guard.schema.json +3 -3
  264. package/dist/schemas/onchain_operations_machine.schema.json +5 -5
  265. package/dist/schemas/onchain_operations_order.schema.json +5 -5
  266. package/dist/schemas/onchain_operations_payment.schema.json +4 -4
  267. package/dist/schemas/onchain_operations_permission.schema.json +5 -5
  268. package/dist/schemas/onchain_operations_personal.schema.json +3 -3
  269. package/dist/schemas/onchain_operations_progress.schema.json +5 -5
  270. package/dist/schemas/onchain_operations_proof.schema.json +3 -3
  271. package/dist/schemas/onchain_operations_repository.schema.json +7 -7
  272. package/dist/schemas/onchain_operations_reward.schema.json +9 -9
  273. package/dist/schemas/onchain_operations_service.schema.json +11 -11
  274. package/dist/schemas/onchain_operations_treasury.schema.json +9 -9
  275. package/dist/schemas/onchain_table_data.output.json +399 -2
  276. package/dist/schemas/onchain_table_data.schema.json +22 -22
  277. package/dist/schemas/permission_operation.schema.json +6 -2
  278. package/dist/schemas/persona_operation.output.json +145 -0
  279. package/dist/schemas/persona_operation.schema.json +28 -2
  280. package/dist/schemas/query_toolkit.output.json +1514 -22
  281. package/dist/schemas/query_toolkit.schema.json +465 -11
  282. package/dist/schemas/workflow_operation.schema.json +4 -4
  283. package/dist/task/ProcessStore.d.ts +98 -0
  284. package/dist/task/ProcessStore.js +1 -0
  285. package/dist/task/playbook.d.ts +11 -0
  286. package/dist/task/playbook.js +1 -0
  287. package/dist/task/stage-gate.d.ts +22 -0
  288. package/dist/task/stage-gate.js +1 -0
  289. package/dist/{project → task}/substep-trace.d.ts +6 -45
  290. package/dist/task/types.d.ts +144 -0
  291. package/dist/task/types.js +1 -0
  292. package/dist/tools/handlers/config.js +1 -1
  293. package/dist/tools/handlers/evaluation.js +1 -1
  294. package/dist/tools/handlers/goal.d.ts +4 -0
  295. package/dist/tools/handlers/goal.js +1 -0
  296. package/dist/tools/handlers/industry-pack.js +1 -1
  297. package/dist/tools/handlers/local.d.ts +4 -3
  298. package/dist/tools/handlers/local.js +1 -1
  299. package/dist/tools/handlers/monitor.d.ts +24 -0
  300. package/dist/tools/handlers/monitor.js +1 -1
  301. package/dist/tools/handlers/network.d.ts +1 -0
  302. package/dist/tools/handlers/network.js +1 -0
  303. package/dist/tools/handlers/onchain.js +1 -1
  304. package/dist/tools/handlers/permission.js +1 -1
  305. package/dist/tools/handlers/persona.js +1 -1
  306. package/dist/tools/handlers/query.js +1 -1
  307. package/dist/tools/handlers/watch.js +1 -1
  308. package/dist/tools/handlers/workflow.js +1 -1
  309. package/dist/tools/index.d.ts +2 -0
  310. package/dist/tools/index.js +1 -1
  311. package/dist/tools/rules-hook.d.ts +1 -0
  312. package/dist/tools/rules-hook.js +1 -1
  313. package/dist/tools/shared.js +1 -1
  314. package/dist/tools/wrap.js +1 -1
  315. package/package.json +5 -4
  316. package/dist/harness/checkpoint.d.ts +0 -8
  317. package/dist/harness/checkpoint.js +0 -1
  318. package/dist/knowledge/deployment-scanner.d.ts +0 -66
  319. package/dist/knowledge/deployment-scanner.js +0 -1
  320. package/dist/mode-market/index.d.ts +0 -3
  321. package/dist/mode-market/index.js +0 -1
  322. package/dist/mode-market/registry.d.ts +0 -53
  323. package/dist/mode-market/registry.js +0 -1
  324. package/dist/mode-market/review.d.ts +0 -27
  325. package/dist/mode-market/review.js +0 -1
  326. package/dist/mode-market/submission.d.ts +0 -25
  327. package/dist/mode-market/submission.js +0 -1
  328. package/dist/project/business-puzzle.js +0 -1
  329. package/dist/project/context-assembly.js +0 -1
  330. package/dist/project/deployment-bridge.d.ts +0 -5
  331. package/dist/project/deployment-bridge.js +0 -1
  332. package/dist/project/deployment-doc.d.ts +0 -190
  333. package/dist/project/deployment-doc.js +0 -1
  334. package/dist/project/edit-planner.d.ts +0 -123
  335. package/dist/project/edit-planner.js +0 -1
  336. package/dist/project/evaluation-fix.spec.d.ts +0 -1
  337. package/dist/project/evaluation-fix.spec.js +0 -1
  338. package/dist/project/evaluation.d.ts +0 -127
  339. package/dist/project/evaluation.js +0 -1
  340. package/dist/project/graph-builder.d.ts +0 -51
  341. package/dist/project/graph-builder.js +0 -1
  342. package/dist/project/graph.d.ts +0 -70
  343. package/dist/project/graph.js +0 -1
  344. package/dist/project/handlers.d.ts +0 -524
  345. package/dist/project/handlers.js +0 -1
  346. package/dist/project/index.d.ts +0 -91
  347. package/dist/project/index.js +0 -1
  348. package/dist/project/intent-analyzer.js +0 -1
  349. package/dist/project/machine-nodes.js +0 -1
  350. package/dist/project/machine-panorama.js +0 -1
  351. package/dist/project/merchant-guide.js +0 -1
  352. package/dist/project/mode-actions.js +0 -1
  353. package/dist/project/namespace.d.ts +0 -72
  354. package/dist/project/namespace.js +0 -1
  355. package/dist/project/object-panorama.js +0 -1
  356. package/dist/project/participation-radar.js +0 -1
  357. package/dist/project/pipeline-actions.js +0 -1
  358. package/dist/project/project-store.d.ts +0 -110
  359. package/dist/project/project-store.js +0 -1
  360. package/dist/project/query.d.ts +0 -43
  361. package/dist/project/query.js +0 -1
  362. package/dist/project/risk-aggregator.js +0 -1
  363. package/dist/project/semantic-assembler.d.ts +0 -93
  364. package/dist/project/semantic-assembler.js +0 -1
  365. package/dist/project/semantic-graph.js +0 -1
  366. package/dist/project/service-panorama.js +0 -1
  367. package/dist/project/stage-gate.d.ts +0 -52
  368. package/dist/project/stage-gate.js +0 -1
  369. package/dist/project/task-tracker.d.ts +0 -30
  370. package/dist/project/task-tracker.js +0 -1
  371. package/dist/schema/project/index.d.ts +0 -2021
  372. package/dist/schema/project/index.js +0 -1
  373. package/dist/schema/task-status.d.ts +0 -62
  374. package/dist/schema/task-status.js +0 -1
  375. package/dist/schemas/project_operation.output.json +0 -7877
  376. package/dist/schemas/project_operation.schema.json +0 -1139
  377. package/dist/schemas/query_task_status.output.json +0 -211
  378. package/dist/schemas/query_task_status.schema.json +0 -18
  379. package/dist/tools/handlers/project.d.ts +0 -2
  380. package/dist/tools/handlers/project.js +0 -1
  381. package/dist/tools/handlers/task-status.d.ts +0 -2
  382. package/dist/tools/handlers/task-status.js +0 -1
  383. /package/dist/{project → playbooks/service-build}/business-puzzle.d.ts +0 -0
  384. /package/dist/{project → playbooks/service-build}/game-theory.js +0 -0
  385. /package/dist/{project → playbooks/service-build}/machine-nodes.d.ts +0 -0
  386. /package/dist/{project → playbooks/service-build}/object-type.d.ts +0 -0
  387. /package/dist/{project → playbooks/service-build}/object-type.js +0 -0
  388. /package/dist/{project → playbooks/service-build}/reverse-mapping.d.ts +0 -0
  389. /package/dist/{project → playbooks/service-build}/reverse-mapping.js +0 -0
  390. /package/dist/{project → playbooks/service-build}/risk-aggregator.d.ts +0 -0
  391. /package/dist/{project → playbooks/service-build}/workflow-design-assessment.d.ts +0 -0
  392. /package/dist/{project → playbooks/service-build}/workflow-design-assessment.js +0 -0
  393. /package/dist/{project → task}/substep-trace.js +0 -0
@@ -0,0 +1,326 @@
1
+ import { z } from "zod";
2
+ export declare const MODE_REGISTRY_ACTIONS: readonly ["recommend_industry", "list_modes", "derive_user_mode", "evolve_user_mode", "register_user_mode", "unregister_user_mode", "register_custom_metric", "unregister_custom_metric", "register_custom_constraint", "unregister_custom_constraint", "list_metrics_constraints"];
3
+ export declare const ModeRegistryFields: {
4
+ readonly intent: z.ZodOptional<z.ZodString>;
5
+ readonly strategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
6
+ readonly mode_source: z.ZodOptional<z.ZodString>;
7
+ readonly mode_name: z.ZodOptional<z.ZodString>;
8
+ readonly mode_display_name: z.ZodOptional<z.ZodString>;
9
+ readonly mode_changes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
10
+ readonly mode_change_description: z.ZodOptional<z.ZodString>;
11
+ readonly mode_bump_version: z.ZodOptional<z.ZodBoolean>;
12
+ readonly metric_id: z.ZodOptional<z.ZodString>;
13
+ readonly metric_display_name: z.ZodOptional<z.ZodString>;
14
+ readonly metric_description: z.ZodOptional<z.ZodString>;
15
+ readonly metric_type: z.ZodOptional<z.ZodEnum<{
16
+ risk: "risk";
17
+ benefit: "benefit";
18
+ }>>;
19
+ readonly metric_scale: z.ZodOptional<z.ZodEnum<{
20
+ level: "level";
21
+ numeric: "numeric";
22
+ percentage: "percentage";
23
+ }>>;
24
+ readonly metric_weight: z.ZodOptional<z.ZodNumber>;
25
+ readonly constraint_id: z.ZodOptional<z.ZodString>;
26
+ readonly constraint_display_name: z.ZodOptional<z.ZodString>;
27
+ readonly constraint_description: z.ZodOptional<z.ZodString>;
28
+ readonly constraint_rule: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ type: z.ZodLiteral<"capability_required">;
30
+ capability_id: z.ZodString;
31
+ }, z.core.$strict>, z.ZodObject<{
32
+ type: z.ZodLiteral<"capability_forbidden">;
33
+ capability_id: z.ZodString;
34
+ }, z.core.$strict>, z.ZodObject<{
35
+ type: z.ZodLiteral<"numeric_limit">;
36
+ field: z.ZodString;
37
+ max: z.ZodOptional<z.ZodNumber>;
38
+ min: z.ZodOptional<z.ZodNumber>;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ type: z.ZodLiteral<"condition_required">;
41
+ condition: z.ZodString;
42
+ ai_evaluated: z.ZodLiteral<true>;
43
+ }, z.core.$strict>], "type">>;
44
+ readonly constraint_severity: z.ZodOptional<z.ZodEnum<{
45
+ hard: "hard";
46
+ soft: "soft";
47
+ }>>;
48
+ readonly constraint_on_violation: z.ZodOptional<z.ZodEnum<{
49
+ warn: "warn";
50
+ block: "block";
51
+ log: "log";
52
+ }>>;
53
+ readonly metric_type_filter: z.ZodOptional<z.ZodEnum<{
54
+ risk: "risk";
55
+ benefit: "benefit";
56
+ }>>;
57
+ readonly scope_filter: z.ZodOptional<z.ZodEnum<{
58
+ custom: "custom";
59
+ builtin: "builtin";
60
+ }>>;
61
+ };
62
+ export declare const RecommendIndustryResultSchema: z.ZodObject<{
63
+ action: z.ZodLiteral<"recommend_industry">;
64
+ intent: z.ZodString;
65
+ inferred_traits: z.ZodRecord<z.ZodString, z.ZodUnknown>;
66
+ inference_confidence: z.ZodNumber;
67
+ matched_keywords: z.ZodArray<z.ZodString>;
68
+ strategy_intents: z.ZodArray<z.ZodObject<{
69
+ objective: z.ZodEnum<{
70
+ sales_priority: "sales_priority";
71
+ profit_priority: "profit_priority";
72
+ buyer_screening: "buyer_screening";
73
+ gross_margin_control: "gross_margin_control";
74
+ }>;
75
+ metrics: z.ZodArray<z.ZodString>;
76
+ levers: z.ZodArray<z.ZodEnum<{
77
+ reward: "reward";
78
+ buy_guard: "buy_guard";
79
+ discount: "discount";
80
+ machine_design: "machine_design";
81
+ }>>;
82
+ target: z.ZodString;
83
+ }, z.core.$strict>>;
84
+ lever_suggestions: z.ZodArray<z.ZodObject<{
85
+ lever: z.ZodEnum<{
86
+ reward: "reward";
87
+ buy_guard: "buy_guard";
88
+ discount: "discount";
89
+ machine_design: "machine_design";
90
+ }>;
91
+ objective: z.ZodEnum<{
92
+ sales_priority: "sales_priority";
93
+ profit_priority: "profit_priority";
94
+ buyer_screening: "buyer_screening";
95
+ gross_margin_control: "gross_margin_control";
96
+ }>;
97
+ action: z.ZodString;
98
+ target: z.ZodString;
99
+ }, z.core.$strict>>;
100
+ recommendations: z.ZodArray<z.ZodObject<{
101
+ industry: z.ZodString;
102
+ similarity: z.ZodNumber;
103
+ matched_traits: z.ZodArray<z.ZodString>;
104
+ reference_examples: z.ZodArray<z.ZodObject<{
105
+ file: z.ZodString;
106
+ title: z.ZodString;
107
+ operation_type: z.ZodString;
108
+ verified: z.ZodBoolean;
109
+ }, z.core.$strict>>;
110
+ strategy_alignment: z.ZodOptional<z.ZodObject<{
111
+ score: z.ZodNumber;
112
+ matched_levers: z.ZodArray<z.ZodEnum<{
113
+ reward: "reward";
114
+ buy_guard: "buy_guard";
115
+ discount: "discount";
116
+ machine_design: "machine_design";
117
+ }>>;
118
+ missing_levers: z.ZodArray<z.ZodEnum<{
119
+ reward: "reward";
120
+ buy_guard: "buy_guard";
121
+ discount: "discount";
122
+ machine_design: "machine_design";
123
+ }>>;
124
+ }, z.core.$strip>>;
125
+ }, z.core.$strict>>;
126
+ hint: z.ZodString;
127
+ }, z.core.$strict>;
128
+ export declare const ListModesResultSchema: z.ZodObject<{
129
+ action: z.ZodLiteral<"list_modes">;
130
+ builtin_modes: z.ZodArray<z.ZodObject<{
131
+ name: z.ZodString;
132
+ display_name: z.ZodString;
133
+ version: z.ZodString;
134
+ derived_from: z.ZodNullable<z.ZodString>;
135
+ owner: z.ZodOptional<z.ZodString>;
136
+ key_risk: z.ZodString;
137
+ machine_nodes: z.ZodArray<z.ZodString>;
138
+ similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
139
+ evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
140
+ version: z.ZodString;
141
+ changed_at: z.ZodNumber;
142
+ changes: z.ZodArray<z.ZodString>;
143
+ }, z.core.$strict>>>;
144
+ }, z.core.$strict>>;
145
+ user_modes: z.ZodArray<z.ZodObject<{
146
+ name: z.ZodString;
147
+ display_name: z.ZodString;
148
+ version: z.ZodString;
149
+ derived_from: z.ZodNullable<z.ZodString>;
150
+ owner: z.ZodOptional<z.ZodString>;
151
+ key_risk: z.ZodString;
152
+ machine_nodes: z.ZodArray<z.ZodString>;
153
+ similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
154
+ evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
155
+ version: z.ZodString;
156
+ changed_at: z.ZodNumber;
157
+ changes: z.ZodArray<z.ZodString>;
158
+ }, z.core.$strict>>>;
159
+ }, z.core.$strict>>;
160
+ owner: z.ZodString;
161
+ hint: z.ZodString;
162
+ }, z.core.$strict>;
163
+ export declare const DeriveUserModeResultSchema: z.ZodObject<{
164
+ action: z.ZodLiteral<"derive_user_mode">;
165
+ mode: z.ZodObject<{
166
+ name: z.ZodString;
167
+ display_name: z.ZodString;
168
+ version: z.ZodString;
169
+ derived_from: z.ZodNullable<z.ZodString>;
170
+ owner: z.ZodOptional<z.ZodString>;
171
+ key_risk: z.ZodString;
172
+ machine_nodes: z.ZodArray<z.ZodString>;
173
+ similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
174
+ evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
+ version: z.ZodString;
176
+ changed_at: z.ZodNumber;
177
+ changes: z.ZodArray<z.ZodString>;
178
+ }, z.core.$strict>>>;
179
+ }, z.core.$strict>;
180
+ hint: z.ZodString;
181
+ }, z.core.$strict>;
182
+ export declare const EvolveUserModeResultSchema: z.ZodObject<{
183
+ action: z.ZodLiteral<"evolve_user_mode">;
184
+ mode: z.ZodObject<{
185
+ name: z.ZodString;
186
+ display_name: z.ZodString;
187
+ version: z.ZodString;
188
+ derived_from: z.ZodNullable<z.ZodString>;
189
+ owner: z.ZodOptional<z.ZodString>;
190
+ key_risk: z.ZodString;
191
+ machine_nodes: z.ZodArray<z.ZodString>;
192
+ similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
193
+ evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
194
+ version: z.ZodString;
195
+ changed_at: z.ZodNumber;
196
+ changes: z.ZodArray<z.ZodString>;
197
+ }, z.core.$strict>>>;
198
+ }, z.core.$strict>;
199
+ hint: z.ZodString;
200
+ }, z.core.$strict>;
201
+ export declare const RegisterUserModeResultSchema: z.ZodObject<{
202
+ action: z.ZodLiteral<"register_user_mode">;
203
+ mode: z.ZodObject<{
204
+ name: z.ZodString;
205
+ display_name: z.ZodString;
206
+ version: z.ZodString;
207
+ derived_from: z.ZodNullable<z.ZodString>;
208
+ owner: z.ZodOptional<z.ZodString>;
209
+ key_risk: z.ZodString;
210
+ machine_nodes: z.ZodArray<z.ZodString>;
211
+ similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
+ evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
213
+ version: z.ZodString;
214
+ changed_at: z.ZodNumber;
215
+ changes: z.ZodArray<z.ZodString>;
216
+ }, z.core.$strict>>>;
217
+ }, z.core.$strict>;
218
+ hint: z.ZodString;
219
+ }, z.core.$strict>;
220
+ export declare const UnregisterUserModeResultSchema: z.ZodObject<{
221
+ action: z.ZodLiteral<"unregister_user_mode">;
222
+ removed: z.ZodLiteral<true>;
223
+ mode_name: z.ZodString;
224
+ }, z.core.$strict>;
225
+ export declare const RegisterCustomMetricResultSchema: z.ZodObject<{
226
+ action: z.ZodLiteral<"register_custom_metric">;
227
+ metric: z.ZodObject<{
228
+ metric_id: z.ZodString;
229
+ display_name: z.ZodString;
230
+ description: z.ZodString;
231
+ type: z.ZodEnum<{
232
+ risk: "risk";
233
+ benefit: "benefit";
234
+ }>;
235
+ scale: z.ZodEnum<{
236
+ level: "level";
237
+ numeric: "numeric";
238
+ percentage: "percentage";
239
+ }>;
240
+ weight: z.ZodNumber;
241
+ scope: z.ZodEnum<{
242
+ custom: "custom";
243
+ builtin: "builtin";
244
+ }>;
245
+ owner: z.ZodOptional<z.ZodString>;
246
+ }, z.core.$strict>;
247
+ hint: z.ZodString;
248
+ }, z.core.$strict>;
249
+ export declare const UnregisterCustomMetricResultSchema: z.ZodObject<{
250
+ action: z.ZodLiteral<"unregister_custom_metric">;
251
+ removed: z.ZodLiteral<true>;
252
+ metric_id: z.ZodString;
253
+ }, z.core.$strict>;
254
+ export declare const RegisterCustomConstraintResultSchema: z.ZodObject<{
255
+ action: z.ZodLiteral<"register_custom_constraint">;
256
+ constraint: z.ZodObject<{
257
+ constraint_id: z.ZodString;
258
+ display_name: z.ZodString;
259
+ description: z.ZodString;
260
+ rule: z.ZodRecord<z.ZodString, z.ZodUnknown>;
261
+ severity: z.ZodEnum<{
262
+ hard: "hard";
263
+ soft: "soft";
264
+ }>;
265
+ on_violation: z.ZodEnum<{
266
+ warn: "warn";
267
+ block: "block";
268
+ log: "log";
269
+ }>;
270
+ scope: z.ZodEnum<{
271
+ custom: "custom";
272
+ builtin: "builtin";
273
+ }>;
274
+ owner: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strict>;
276
+ hint: z.ZodString;
277
+ }, z.core.$strict>;
278
+ export declare const UnregisterCustomConstraintResultSchema: z.ZodObject<{
279
+ action: z.ZodLiteral<"unregister_custom_constraint">;
280
+ removed: z.ZodLiteral<true>;
281
+ constraint_id: z.ZodString;
282
+ }, z.core.$strict>;
283
+ export declare const ListMetricsConstraintsResultSchema: z.ZodObject<{
284
+ action: z.ZodLiteral<"list_metrics_constraints">;
285
+ metrics: z.ZodArray<z.ZodObject<{
286
+ metric_id: z.ZodString;
287
+ display_name: z.ZodString;
288
+ description: z.ZodString;
289
+ type: z.ZodEnum<{
290
+ risk: "risk";
291
+ benefit: "benefit";
292
+ }>;
293
+ scale: z.ZodEnum<{
294
+ level: "level";
295
+ numeric: "numeric";
296
+ percentage: "percentage";
297
+ }>;
298
+ weight: z.ZodNumber;
299
+ scope: z.ZodEnum<{
300
+ custom: "custom";
301
+ builtin: "builtin";
302
+ }>;
303
+ owner: z.ZodOptional<z.ZodString>;
304
+ }, z.core.$strict>>;
305
+ constraints: z.ZodArray<z.ZodObject<{
306
+ constraint_id: z.ZodString;
307
+ display_name: z.ZodString;
308
+ description: z.ZodString;
309
+ rule: z.ZodRecord<z.ZodString, z.ZodUnknown>;
310
+ severity: z.ZodEnum<{
311
+ hard: "hard";
312
+ soft: "soft";
313
+ }>;
314
+ on_violation: z.ZodEnum<{
315
+ warn: "warn";
316
+ block: "block";
317
+ log: "log";
318
+ }>;
319
+ scope: z.ZodEnum<{
320
+ custom: "custom";
321
+ builtin: "builtin";
322
+ }>;
323
+ owner: z.ZodOptional<z.ZodString>;
324
+ }, z.core.$strict>>;
325
+ hint: z.ZodString;
326
+ }, z.core.$strict>;
@@ -0,0 +1 @@
1
+ import{z}from'zod';export const MODE_REGISTRY_ACTIONS=['recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','unregister_custom_metric','register_custom_constraint','unregister_custom_constraint','list_metrics_constraints'];export const ModeRegistryFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'strategy':z['union']([z['string']()['max'](0x7d0),z['array'](z['string']()['max'](0x7d0))['max'](0xa)])['optional']()['describe']('Persona\x20strategy\x20statement(s)\x20for\x20recommend_industry\x20(e.g.\x20\x27push\x20sales\x20volume\x20first\x27\x20/\x20'+'\x27keep\x20gross\x20margin\x20>=\x2030%\x27).\x20Bridged\x20into\x20mode\x20ranking:\x20objectives\x20resolve\x20to\x20deterministic\x20'+'infrastructure\x20levers\x20(discount\x20/\x20reward\x20/\x20buy_guard\x20/\x20machine_design)\x20and\x20re-rank\x20the\x20'+'industry\x20recommendations\x20by\x20lever\x20alignment.\x20Pass\x20the\x20persona\x27s\x20strategy[]\x20entries\x20here.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20'+'custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).')};const RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'reference_examples':z['array'](z['object']({'file':z['string']()['describe']('Example\x20file\x20name\x20(fetch\x20via\x20schema_query\x20search_examples).'),'title':z['string'](),'operation_type':z['string'](),'verified':z['boolean']()})['strict']())['describe']('Verified\x20reference\x20examples\x20for\x20this\x20industry\x20(top\x203).'),'strategy_alignment':z['object']({'score':z['number']()['describe']('Lever\x20alignment\x200-1\x20(matched\x20/\x20required\x20levers).'),'matched_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20supports.'),'missing_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20lacks.')})['optional']()['describe']('Present\x20only\x20when\x20a\x20strategy\x20was\x20provided:\x20lever\x20alignment\x20of\x20the\x20industry\x20mode.')})['strict']();export const RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'strategy_intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']())['describe']('Strategy\x20intents\x20resolved\x20from\x20the\x20provided\x20persona\x20strategy\x20statements\x20(empty\x20if\x20none\x20matched).'),'lever_suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string']()['describe']('Deterministic\x20on-chain\x20action\x20that\x20pulls\x20the\x20lever.'),'target':z['string']()})['strict']())['describe']('Concrete\x20lever\x20suggestions\x20for\x20the\x20resolved\x20strategy\x20intents.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20+\x20reference\x20examples\x20(re-ranked\x20by\x20lever\x20alignment\x20when\x20strategy\x20provided).'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(pass\x20the\x20industry\x20to\x20analyze_intent\x20/\x20merchant_guide\x20via\x20project_industry).')})['strict']();const ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict']();export const ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict']();export const DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict']();export const EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict']();export const RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict']();export const UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict']();const MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict']();export const UnregisterCustomMetricResultSchema=z['object']({'action':z['literal']('unregister_custom_metric'),'removed':z['literal'](!![]),'metric_id':z['string']()})['strict']();const ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict']();export const UnregisterCustomConstraintResultSchema=z['object']({'action':z['literal']('unregister_custom_constraint'),'removed':z['literal'](!![]),'constraint_id':z['string']()})['strict']();export const ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict']();
@@ -12,21 +12,21 @@ export declare const IntentRadarInputSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
12
12
  arbitrator: "arbitrator";
13
13
  }>>;
14
14
  target_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
15
+ TreasuryEvent: "TreasuryEvent";
16
+ RewardClaimEvent: "RewardClaimEvent";
17
+ RewardFundEvent: "RewardFundEvent";
18
+ AllocationEvent: "AllocationEvent";
19
+ NewPaymentEvent: "NewPaymentEvent";
15
20
  NewOrderEvent: "NewOrderEvent";
21
+ ArbEvent: "ArbEvent";
16
22
  ServiceEvent: "ServiceEvent";
17
23
  DemandChangedEvent: "DemandChangedEvent";
18
- ArbEvent: "ArbEvent";
19
24
  VoteEvent: "VoteEvent";
20
25
  FeedbackEvent: "FeedbackEvent";
21
26
  DemandPresentEvent: "DemandPresentEvent";
22
27
  DemandFeedbackEvent: "DemandFeedbackEvent";
23
28
  ProgressEvent: "ProgressEvent";
24
29
  NewEntityEvent: "NewEntityEvent";
25
- AllocationEvent: "AllocationEvent";
26
- TreasuryEvent: "TreasuryEvent";
27
- RewardClaimEvent: "RewardClaimEvent";
28
- RewardFundEvent: "RewardFundEvent";
29
- NewPaymentEvent: "NewPaymentEvent";
30
30
  }>>>;
31
31
  }, z.core.$strict>, z.ZodObject<{
32
32
  action: z.ZodLiteral<"list">;
@@ -40,8 +40,8 @@ export declare const IntentRadarInputSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
40
40
  account: z.ZodOptional<z.ZodString>;
41
41
  events: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
42
42
  network: z.ZodOptional<z.ZodEnum<{
43
- testnet: "testnet";
44
43
  mainnet: "mainnet";
44
+ testnet: "testnet";
45
45
  }>>;
46
46
  limit: z.ZodOptional<z.ZodNumber>;
47
47
  }, z.core.$strict>], "action">;
@@ -71,21 +71,21 @@ export declare const IntentRadarOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObje
71
71
  }>>;
72
72
  keywords: z.ZodArray<z.ZodString>;
73
73
  target_types: z.ZodArray<z.ZodEnum<{
74
+ TreasuryEvent: "TreasuryEvent";
75
+ RewardClaimEvent: "RewardClaimEvent";
76
+ RewardFundEvent: "RewardFundEvent";
77
+ AllocationEvent: "AllocationEvent";
78
+ NewPaymentEvent: "NewPaymentEvent";
74
79
  NewOrderEvent: "NewOrderEvent";
80
+ ArbEvent: "ArbEvent";
75
81
  ServiceEvent: "ServiceEvent";
76
82
  DemandChangedEvent: "DemandChangedEvent";
77
- ArbEvent: "ArbEvent";
78
83
  VoteEvent: "VoteEvent";
79
84
  FeedbackEvent: "FeedbackEvent";
80
85
  DemandPresentEvent: "DemandPresentEvent";
81
86
  DemandFeedbackEvent: "DemandFeedbackEvent";
82
87
  ProgressEvent: "ProgressEvent";
83
88
  NewEntityEvent: "NewEntityEvent";
84
- AllocationEvent: "AllocationEvent";
85
- TreasuryEvent: "TreasuryEvent";
86
- RewardClaimEvent: "RewardClaimEvent";
87
- RewardFundEvent: "RewardFundEvent";
88
- NewPaymentEvent: "NewPaymentEvent";
89
89
  }>>;
90
90
  created_at: z.ZodNumber;
91
91
  updated_at: z.ZodNumber;
@@ -116,21 +116,21 @@ export declare const IntentRadarOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObje
116
116
  }>>;
117
117
  keywords: z.ZodArray<z.ZodString>;
118
118
  target_types: z.ZodArray<z.ZodEnum<{
119
+ TreasuryEvent: "TreasuryEvent";
120
+ RewardClaimEvent: "RewardClaimEvent";
121
+ RewardFundEvent: "RewardFundEvent";
122
+ AllocationEvent: "AllocationEvent";
123
+ NewPaymentEvent: "NewPaymentEvent";
119
124
  NewOrderEvent: "NewOrderEvent";
125
+ ArbEvent: "ArbEvent";
120
126
  ServiceEvent: "ServiceEvent";
121
127
  DemandChangedEvent: "DemandChangedEvent";
122
- ArbEvent: "ArbEvent";
123
128
  VoteEvent: "VoteEvent";
124
129
  FeedbackEvent: "FeedbackEvent";
125
130
  DemandPresentEvent: "DemandPresentEvent";
126
131
  DemandFeedbackEvent: "DemandFeedbackEvent";
127
132
  ProgressEvent: "ProgressEvent";
128
133
  NewEntityEvent: "NewEntityEvent";
129
- AllocationEvent: "AllocationEvent";
130
- TreasuryEvent: "TreasuryEvent";
131
- RewardClaimEvent: "RewardClaimEvent";
132
- RewardFundEvent: "RewardFundEvent";
133
- NewPaymentEvent: "NewPaymentEvent";
134
134
  }>>;
135
135
  created_at: z.ZodNumber;
136
136
  updated_at: z.ZodNumber;
@@ -849,6 +849,7 @@ export declare const AccountOperationSchema: z.ZodObject<{
849
849
  localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
850
850
  mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
851
851
  }>>;
852
+ confirmed: z.ZodOptional<z.ZodBoolean>;
852
853
  }, z.core.$strip>>;
853
854
  get: z.ZodOptional<z.ZodObject<{
854
855
  name_or_address: z.ZodOptional<z.ZodString>;
@@ -1777,6 +1778,11 @@ export declare const AccountOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
1777
1778
  recovery_hint: z.ZodOptional<z.ZodString>;
1778
1779
  status: z.ZodLiteral<"error">;
1779
1780
  error: z.ZodString;
1781
+ }, z.core.$strip>, z.ZodObject<{
1782
+ status: z.ZodLiteral<"pending_confirmation">;
1783
+ operation: z.ZodString;
1784
+ message: z.ZodString;
1785
+ rule_id: z.ZodString;
1780
1786
  }, z.core.$strip>], "status">;
1781
1787
  export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
1782
1788
  result: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2150,6 +2156,11 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
2150
2156
  recovery_hint: z.ZodOptional<z.ZodString>;
2151
2157
  status: z.ZodLiteral<"error">;
2152
2158
  error: z.ZodString;
2159
+ }, z.core.$strip>, z.ZodObject<{
2160
+ status: z.ZodLiteral<"pending_confirmation">;
2161
+ operation: z.ZodString;
2162
+ message: z.ZodString;
2163
+ rule_id: z.ZodString;
2153
2164
  }, z.core.$strip>], "status">;
2154
2165
  semantic: z.ZodOptional<z.ZodLazy<z.ZodObject<{
2155
2166
  intent: z.ZodString;