@wowok/agent-mcp 3.0.3 → 3.0.5

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 (300) hide show
  1. package/dist/evaluation/path-reasoning.d.ts +4 -2
  2. package/dist/evaluation/path-reasoning.js +1 -1
  3. package/dist/extensions/constraint-registry.d.ts +2 -2
  4. package/dist/extensions/constraint-registry.js +1 -1
  5. package/dist/extensions/custom-registry-file.d.ts +22 -0
  6. package/dist/extensions/custom-registry-file.js +1 -0
  7. package/dist/extensions/index.d.ts +2 -1
  8. package/dist/extensions/index.js +1 -1
  9. package/dist/extensions/industry-pack.d.ts +7 -0
  10. package/dist/extensions/industry-pack.js +1 -1
  11. package/dist/extensions/metric-registry.d.ts +2 -2
  12. package/dist/extensions/metric-registry.js +1 -1
  13. package/dist/extensions/modes.js +1 -1
  14. package/dist/extensions/registry.d.ts +2 -2
  15. package/dist/extensions/registry.js +1 -1
  16. package/dist/extensions/types.d.ts +4 -0
  17. package/dist/goal/GoalEngine.d.ts +13 -1
  18. package/dist/goal/GoalEngine.js +1 -1
  19. package/dist/goal/next-steps.d.ts +12 -0
  20. package/dist/goal/next-steps.js +1 -0
  21. package/dist/goal/pursue.d.ts +18 -0
  22. package/dist/goal/pursue.js +1 -0
  23. package/dist/goal/types.d.ts +72 -0
  24. package/dist/goal/types.js +1 -1
  25. package/dist/graph/onchain/analyze.d.ts +44 -0
  26. package/dist/graph/onchain/analyze.js +1 -0
  27. package/dist/graph/onchain/analyze.spec.d.ts +1 -0
  28. package/dist/graph/onchain/analyze.spec.js +1 -0
  29. package/dist/graph/onchain/anti-cheat.d.ts +39 -0
  30. package/dist/graph/onchain/anti-cheat.js +1 -0
  31. package/dist/graph/onchain/anti-cheat.spec.d.ts +1 -0
  32. package/dist/graph/onchain/anti-cheat.spec.js +1 -0
  33. package/dist/graph/onchain/dataplane.d.ts +44 -0
  34. package/dist/graph/onchain/dataplane.js +1 -0
  35. package/dist/graph/onchain/edge-schema.d.ts +60 -0
  36. package/dist/graph/onchain/edge-schema.js +1 -0
  37. package/dist/graph/onchain/expand.d.ts +4 -0
  38. package/dist/graph/onchain/expand.js +1 -0
  39. package/dist/graph/onchain/extract.d.ts +21 -0
  40. package/dist/graph/onchain/extract.js +1 -0
  41. package/dist/graph/onchain/index.d.ts +17 -0
  42. package/dist/graph/onchain/index.js +1 -0
  43. package/dist/graph/onchain/interest.d.ts +10 -0
  44. package/dist/graph/onchain/interest.js +1 -0
  45. package/dist/graph/onchain/interest.spec.d.ts +1 -0
  46. package/dist/graph/onchain/interest.spec.js +1 -0
  47. package/dist/graph/onchain/onchain.spec.d.ts +1 -0
  48. package/dist/graph/onchain/onchain.spec.js +1 -0
  49. package/dist/graph/onchain/order-status.d.ts +53 -0
  50. package/dist/graph/onchain/order-status.js +1 -0
  51. package/dist/graph/onchain/project-relationship.d.ts +3 -0
  52. package/dist/graph/onchain/project-relationship.js +1 -0
  53. package/dist/graph/onchain/sdk-batch.d.ts +117 -0
  54. package/dist/graph/onchain/sdk-batch.js +1 -0
  55. package/dist/graph/onchain/sdk-dataplane.d.ts +40 -0
  56. package/dist/graph/onchain/sdk-dataplane.js +1 -0
  57. package/dist/graph/onchain/strategy.d.ts +54 -0
  58. package/dist/graph/onchain/strategy.js +1 -0
  59. package/dist/graph/onchain/strategy.spec.d.ts +1 -0
  60. package/dist/graph/onchain/strategy.spec.js +1 -0
  61. package/dist/graph/onchain/types.d.ts +238 -0
  62. package/dist/graph/onchain/types.js +1 -0
  63. package/dist/graph/onchain/viewport.d.ts +5 -0
  64. package/dist/graph/onchain/viewport.js +1 -0
  65. package/dist/harness/recover.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/intent/enrich.js +1 -1
  68. package/dist/keeper/detectors.d.ts +1 -1
  69. package/dist/keeper/detectors.js +1 -1
  70. package/dist/knowledge/account-marks.js +1 -1
  71. package/dist/knowledge/anti-cheat.d.ts +2 -37
  72. package/dist/knowledge/anti-cheat.js +1 -1
  73. package/dist/knowledge/contract-invariants.js +1 -1
  74. package/dist/knowledge/event-semantics.js +1 -1
  75. package/dist/knowledge/getting-started.d.ts +37 -0
  76. package/dist/knowledge/getting-started.js +1 -0
  77. package/dist/knowledge/goal-completion.js +1 -1
  78. package/dist/knowledge/guard-puzzle.js +1 -1
  79. package/dist/knowledge/guard-render.d.ts +1 -0
  80. package/dist/knowledge/guard-render.js +1 -1
  81. package/dist/knowledge/guard-submission-brief.d.ts +83 -0
  82. package/dist/knowledge/guard-submission-brief.js +1 -0
  83. package/dist/knowledge/guard-submission-prompt.d.ts +13 -0
  84. package/dist/knowledge/guard-submission-prompt.js +1 -1
  85. package/dist/knowledge/index.d.ts +6 -4
  86. package/dist/knowledge/index.js +1 -1
  87. package/dist/knowledge/industry-registry.js +1 -1
  88. package/dist/knowledge/industry-strategy.d.ts +91 -0
  89. package/dist/knowledge/industry-strategy.js +1 -0
  90. package/dist/knowledge/jsonrpc-enum.js +1 -1
  91. package/dist/knowledge/market-metrics.d.ts +14 -3
  92. package/dist/knowledge/market-metrics.js +1 -1
  93. package/dist/knowledge/migration-preflight.js +1 -1
  94. package/dist/knowledge/operation-dictionary.d.ts +1 -1
  95. package/dist/knowledge/safety-rules.js +1 -1
  96. package/dist/knowledge/scenario-topology.d.ts +6 -1
  97. package/dist/knowledge/scenario-topology.js +1 -1
  98. package/dist/knowledge/service-ledger.js +1 -1
  99. package/dist/knowledge/service-risk-node.d.ts +3 -0
  100. package/dist/knowledge/service-risk-node.js +1 -0
  101. package/dist/knowledge/service-risk.d.ts +2 -0
  102. package/dist/knowledge/service-risk.js +1 -1
  103. package/dist/knowledge/service-templates.d.ts +2 -0
  104. package/dist/knowledge/service-templates.js +1 -1
  105. package/dist/knowledge/strategy-manuals.d.ts +17 -0
  106. package/dist/knowledge/strategy-manuals.js +1 -0
  107. package/dist/knowledge/supply-chain.d.ts +3 -1
  108. package/dist/knowledge/supply-chain.js +1 -1
  109. package/dist/knowledge/template-registry.js +1 -1
  110. package/dist/knowledge/tools-reference.js +1 -1
  111. package/dist/knowledge/workflow-guidance.d.ts +3 -118
  112. package/dist/knowledge/workflow-guidance.js +1 -1
  113. package/dist/knowledge/workspace-lists.js +1 -1
  114. package/dist/monitor/MonitorLoop.js +1 -1
  115. package/dist/monitor/ScopeResolver.js +1 -1
  116. package/dist/participation/radar-core.d.ts +15 -15
  117. package/dist/participation/radar-core.js +1 -1
  118. package/dist/persona/analyzer.d.ts +2 -1
  119. package/dist/persona/bridge.d.ts +5 -1
  120. package/dist/persona/bridge.js +1 -1
  121. package/dist/persona/defaults.js +1 -1
  122. package/dist/persona/distill-goal.d.ts +7 -1
  123. package/dist/persona/distill-goal.js +1 -1
  124. package/dist/persona/index.d.ts +13 -3
  125. package/dist/persona/index.js +1 -1
  126. package/dist/persona/model.d.ts +12 -2
  127. package/dist/persona/model.js +1 -1
  128. package/dist/persona/overrides.d.ts +1 -0
  129. package/dist/persona/overrides.js +1 -1
  130. package/dist/persona/topology-focus.d.ts +29 -0
  131. package/dist/persona/topology-focus.js +1 -0
  132. package/dist/persona/types.d.ts +81 -0
  133. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  134. package/dist/playbooks/service-build/context-assembly.js +1 -1
  135. package/dist/playbooks/service-build/machine-nodes.js +1 -1
  136. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  137. package/dist/playbooks/service-build/object-panorama.js +1 -1
  138. package/dist/playbooks/service-build/participation-radar.js +1 -1
  139. package/dist/playbooks/service-build/relationship-profile.d.ts +1 -0
  140. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  141. package/dist/playbooks/service-build/service-panorama.d.ts +4 -0
  142. package/dist/playbooks/service-build/service-panorama.js +1 -1
  143. package/dist/playbooks/service-build/topology-query.d.ts +14 -0
  144. package/dist/playbooks/service-build/topology-query.js +1 -0
  145. package/dist/role/index.d.ts +1 -0
  146. package/dist/role/index.js +1 -1
  147. package/dist/role/profiles.d.ts +26 -0
  148. package/dist/role/profiles.js +1 -0
  149. package/dist/safety/confirm-gate.d.ts +4 -1
  150. package/dist/safety/confirm-gate.js +1 -1
  151. package/dist/schema/call/allocation.d.ts +11 -6
  152. package/dist/schema/call/arbitration.d.ts +5 -0
  153. package/dist/schema/call/base.d.ts +5 -0
  154. package/dist/schema/call/base.js +1 -1
  155. package/dist/schema/call/bridge.d.ts +26 -1
  156. package/dist/schema/call/contact.d.ts +5 -0
  157. package/dist/schema/call/demand.d.ts +5 -0
  158. package/dist/schema/call/guard.d.ts +35 -20
  159. package/dist/schema/call/machine.d.ts +10 -0
  160. package/dist/schema/call/order.d.ts +5 -0
  161. package/dist/schema/call/payment.d.ts +5 -0
  162. package/dist/schema/call/permission.d.ts +5 -0
  163. package/dist/schema/call/personal.d.ts +5 -0
  164. package/dist/schema/call/progress.d.ts +5 -0
  165. package/dist/schema/call/proof.d.ts +10 -0
  166. package/dist/schema/call/repository.d.ts +5 -0
  167. package/dist/schema/call/repository.js +1 -1
  168. package/dist/schema/call/reward.d.ts +5 -0
  169. package/dist/schema/call/semantic.js +1 -1
  170. package/dist/schema/call/service.d.ts +9 -4
  171. package/dist/schema/call/treasury.d.ts +5 -0
  172. package/dist/schema/common/index.js +1 -1
  173. package/dist/schema/employee/index.d.ts +7 -7
  174. package/dist/schema/evaluation/index.d.ts +22 -9
  175. package/dist/schema/evaluation/index.js +1 -1
  176. package/dist/schema/goal/index.d.ts +37 -1
  177. package/dist/schema/goal/index.js +1 -1
  178. package/dist/schema/goal/planning.d.ts +1 -1
  179. package/dist/schema/index.d.ts +2 -0
  180. package/dist/schema/index.js +1 -1
  181. package/dist/schema/industry-pack/index.d.ts +7 -0
  182. package/dist/schema/industry-pack/index.js +1 -1
  183. package/dist/schema/interaction/index.d.ts +34 -0
  184. package/dist/schema/interaction/index.js +1 -0
  185. package/dist/schema/local/index.d.ts +8 -4
  186. package/dist/schema/local/index.js +1 -1
  187. package/dist/schema/messenger/index.d.ts +324 -64
  188. package/dist/schema/messenger/index.js +1 -1
  189. package/dist/schema/operations.d.ts +236 -11
  190. package/dist/schema/operations.js +1 -1
  191. package/dist/schema/persona/index.d.ts +15743 -0
  192. package/dist/schema/persona/index.js +1 -1
  193. package/dist/schema/query/bi.d.ts +869 -2
  194. package/dist/schema/query/bi.js +1 -1
  195. package/dist/schema/query/index.d.ts +163 -41
  196. package/dist/schema/query/index.js +1 -1
  197. package/dist/schema/schema-query/index.d.ts +16 -0
  198. package/dist/schema/schema-query/index.js +1 -1
  199. package/dist/schema/schema-version.js +1 -1
  200. package/dist/schema/strategy-review/index.d.ts +137 -0
  201. package/dist/schema/strategy-review/index.js +1 -0
  202. package/dist/schema/trust/index.d.ts +6 -6
  203. package/dist/schema/workflow/index.d.ts +2 -2
  204. package/dist/schema-query-impl/index.js +1 -1
  205. package/dist/schemas/account_operation.output.json +8 -4
  206. package/dist/schemas/account_operation.schema.json +6 -2
  207. package/dist/schemas/ask_user.output.json +54 -0
  208. package/dist/schemas/ask_user.schema.json +78 -0
  209. package/dist/schemas/bridge_operation.schema.json +50 -5
  210. package/dist/schemas/evaluation_operation.output.json +24 -0
  211. package/dist/schemas/goal_operation.schema.json +124 -0
  212. package/dist/schemas/guard2file.schema.json +10 -1
  213. package/dist/schemas/index.json +13 -1
  214. package/dist/schemas/industry_pack_operation.output.json +39 -0
  215. package/dist/schemas/local_mark_operation.schema.json +2 -2
  216. package/dist/schemas/machineNode2file.schema.json +10 -1
  217. package/dist/schemas/messenger_operation.output.json +678 -200
  218. package/dist/schemas/messenger_operation.schema.json +74 -239
  219. package/dist/schemas/onchain_events.output.json +2 -2
  220. package/dist/schemas/onchain_operations.schema.json +183 -21
  221. package/dist/schemas/onchain_operations_allocation.schema.json +10 -1
  222. package/dist/schemas/onchain_operations_arbitration.schema.json +10 -1
  223. package/dist/schemas/onchain_operations_contact.schema.json +10 -1
  224. package/dist/schemas/onchain_operations_demand.schema.json +10 -1
  225. package/dist/schemas/onchain_operations_gen_passport.schema.json +10 -1
  226. package/dist/schemas/onchain_operations_gen_proof.schema.json +10 -1
  227. package/dist/schemas/onchain_operations_guard.schema.json +10 -1
  228. package/dist/schemas/onchain_operations_machine.schema.json +10 -1
  229. package/dist/schemas/onchain_operations_order.schema.json +10 -1
  230. package/dist/schemas/onchain_operations_payment.schema.json +10 -1
  231. package/dist/schemas/onchain_operations_permission.schema.json +10 -1
  232. package/dist/schemas/onchain_operations_personal.schema.json +10 -1
  233. package/dist/schemas/onchain_operations_progress.schema.json +10 -1
  234. package/dist/schemas/onchain_operations_proof.schema.json +10 -1
  235. package/dist/schemas/onchain_operations_repository.schema.json +13 -4
  236. package/dist/schemas/onchain_operations_reward.schema.json +10 -1
  237. package/dist/schemas/onchain_operations_service.schema.json +10 -1
  238. package/dist/schemas/onchain_operations_treasury.schema.json +10 -1
  239. package/dist/schemas/onchain_table_data.output.json +184 -0
  240. package/dist/schemas/onchain_table_data.schema.json +43 -43
  241. package/dist/schemas/persona_operation.output.json +37778 -262
  242. package/dist/schemas/persona_operation.schema.json +5960 -1
  243. package/dist/schemas/query_toolkit.output.json +1580 -2
  244. package/dist/schemas/query_toolkit.schema.json +194 -32
  245. package/dist/schemas/schema_query.schema.json +25 -1
  246. package/dist/schemas/strategy_review_operation.output.json +532 -0
  247. package/dist/schemas/strategy_review_operation.schema.json +66 -0
  248. package/dist/schemas/wowok_buildin_info.output.json +188 -6
  249. package/dist/schemas/wowok_buildin_info.schema.json +14 -0
  250. package/dist/strategy/collectors.d.ts +66 -0
  251. package/dist/strategy/collectors.js +1 -0
  252. package/dist/strategy/collectors.spec.d.ts +1 -0
  253. package/dist/strategy/collectors.spec.js +1 -0
  254. package/dist/strategy/index.d.ts +5 -0
  255. package/dist/strategy/index.js +1 -0
  256. package/dist/strategy/metrics.d.ts +20 -0
  257. package/dist/strategy/metrics.js +1 -0
  258. package/dist/strategy/review.d.ts +48 -0
  259. package/dist/strategy/review.js +1 -0
  260. package/dist/strategy/scorecard.d.ts +32 -0
  261. package/dist/strategy/scorecard.js +1 -0
  262. package/dist/strategy/store.d.ts +26 -0
  263. package/dist/strategy/store.js +1 -0
  264. package/dist/tools/handlers/ask-user.d.ts +3 -0
  265. package/dist/tools/handlers/ask-user.js +1 -0
  266. package/dist/tools/handlers/config.js +1 -1
  267. package/dist/tools/handlers/evaluation.js +1 -1
  268. package/dist/tools/handlers/goal.js +1 -1
  269. package/dist/tools/handlers/industry-pack.js +1 -1
  270. package/dist/tools/handlers/local.js +1 -1
  271. package/dist/tools/handlers/messenger.js +1 -1
  272. package/dist/tools/handlers/onchain.js +1 -1
  273. package/dist/tools/handlers/permission.js +1 -1
  274. package/dist/tools/handlers/persona.js +1 -1
  275. package/dist/tools/handlers/query.d.ts +6 -0
  276. package/dist/tools/handlers/query.js +1 -1
  277. package/dist/tools/handlers/schema-query.js +1 -1
  278. package/dist/tools/handlers/strategy-review.d.ts +2 -0
  279. package/dist/tools/handlers/strategy-review.js +1 -0
  280. package/dist/tools/handlers/watch.js +1 -1
  281. package/dist/tools/handlers/workflow.js +1 -1
  282. package/dist/tools/index.d.ts +5 -2
  283. package/dist/tools/index.js +1 -1
  284. package/dist/tools/registry/agent.js +1 -1
  285. package/dist/tools/registry/bridge.js +1 -1
  286. package/dist/tools/registry/business.js +1 -1
  287. package/dist/tools/registry/interaction.d.ts +2 -0
  288. package/dist/tools/registry/interaction.js +1 -0
  289. package/dist/tools/registry/local.js +1 -1
  290. package/dist/tools/registry/messenger.js +1 -1
  291. package/dist/tools/registry/monitor.js +1 -1
  292. package/dist/tools/registry/onchain.js +1 -1
  293. package/dist/tools/registry/query.js +1 -1
  294. package/dist/tools/rules-hook.js +1 -1
  295. package/dist/tools/shared.d.ts +2 -1
  296. package/dist/tools/shared.js +1 -1
  297. package/dist/tools/types.d.ts +7 -1
  298. package/dist/tools/wrap.d.ts +3 -3
  299. package/dist/tools/wrap.js +1 -1
  300. package/package.json +2 -2
@@ -1 +1 @@
1
- import{z}from'zod';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),PerspectiveEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail','general','custom']),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present_service\x20|\x20demand.present_service_with_passport\x20|\x20demand.publish\x20|\x20service.order_new.'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances\x20(利益分配).'),'allocation_note':z['string']()['optional']()['describe']('Human-readable利益分配说明.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string']()})['strict'](),ServiceRawDataSchema=z['object']({'name':z['string']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'price':z['string']()['optional'](),'priceRaw':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'token_type':z['string']()['optional'](),'sales':z['array'](z['object']({'suspension':z['boolean']()['optional'](),'wip_url':z['string']()['optional'](),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'machine':z['string']()['optional'](),'buy_guard':z['string']()['optional'](),'customer_required':z['array'](z['unknown']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['object']({'balance':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).')})['strict']()['optional'](),'compensation_lock_duration':z['number']()['optional'](),'um':z['string']()['optional']()})['strict'](),MachineNodeRawSchema=z['object']({'name':z['string'](),'forwards':z['array'](z['object']({'name':z['string']()['optional'](),'weight':z['number']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'to':z['string']()['optional']()})['strict']())['optional'](),'is_pair_done':z['boolean']()['optional']()})['strict'](),ReviewRawSchema=z['object']({'rating':z['string']()['optional'](),'reviewer':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'has_evidence':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict'](),EventRawSchema=z['object']({'type':z['string'](),'timestamp':z['number']()['optional'](),'address':z['string']()['optional'](),'data':z['record'](z['string'](),z['unknown']())['optional']()})['strict']();export const PuzzleRawDataSchema=z['object']({'service':ServiceRawDataSchema,'machine_nodes':z['array'](MachineNodeRawSchema)['optional'](),'machine_published':z['boolean']()['optional'](),'machine_paused':z['boolean']()['optional'](),'reviews':z['array'](ReviewRawSchema)['optional'](),'events':z['array'](EventRawSchema)['optional'](),'similar_services':z['array'](z['object']({'price':z['string']()})['strict']())['optional'](),'order_amount':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'trust_score':z['object']({'score':z['number'](),'level':z['string']()})['strict']()['optional'](),'arbitration_owner':z['string']()['optional'](),'service_owner':z['string']()['optional'](),'wip_verified':z['boolean']()['optional'](),'order_history':z['array'](z['object']({'status':z['string'](),'has_dispute':z['boolean'](),'is_repeat':z['boolean']()})['strict']())['optional'](),'merchant_reputation':z['object']({'likes':z['number'](),'dislikes':z['number']()})['strict']()['optional']()})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances\x20(利益分配).'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(数值化).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('service_risk'),'service_id':z['string']()['describe']('Service\x20object\x20address\x20or\x20LocalMark\x20name.'),'puzzle_raw':PuzzleRawDataSchema,'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'depth':z['enum'](['browse','evaluate','preorder','monitor'])['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity\x20(收藏).')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('service_risk'),'result':EvaluationResultSchema})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'severity':z['enum'](['high','medium','low']),'description':z['string']()})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict']()})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
1
+ import{z}from'zod';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),PerspectiveEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail','general','custom']),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present_service\x20|\x20demand.present_service_with_passport\x20|\x20demand.publish\x20|\x20service.order_new.'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points\x20(收益).'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(风险,\x20appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances\x20(利益分配).'),'allocation_note':z['string']()['optional']()['describe']('Human-readable利益分配说明.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string']()})['strict'](),ServiceRawDataSchema=z['object']({'name':z['string']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'price':z['string']()['optional'](),'priceRaw':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'token_type':z['string']()['optional'](),'sales':z['array'](z['object']({'suspension':z['boolean']()['optional'](),'wip_url':z['string']()['optional'](),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'machine':z['string']()['optional'](),'buy_guard':z['string']()['optional'](),'customer_required':z['array'](z['unknown']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['object']({'balance':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).')})['strict']()['optional'](),'compensation_lock_duration':z['number']()['optional'](),'um':z['string']()['optional']()})['strict'](),MachineNodeRawSchema=z['object']({'name':z['string'](),'forwards':z['array'](z['object']({'name':z['string']()['optional'](),'weight':z['number']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'to':z['string']()['optional']()})['strict']())['optional'](),'is_pair_done':z['boolean']()['optional']()})['strict'](),ReviewRawSchema=z['object']({'rating':z['string']()['optional'](),'reviewer':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'has_evidence':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict'](),EventRawSchema=z['object']({'type':z['string'](),'timestamp':z['number']()['optional'](),'address':z['string']()['optional'](),'data':z['record'](z['string'](),z['unknown']())['optional']()})['strict']();export const PuzzleRawDataSchema=z['object']({'service':ServiceRawDataSchema,'machine_nodes':z['array'](MachineNodeRawSchema)['optional'](),'machine_published':z['boolean']()['optional'](),'machine_paused':z['boolean']()['optional'](),'reviews':z['array'](ReviewRawSchema)['optional'](),'events':z['array'](EventRawSchema)['optional'](),'similar_services':z['array'](z['object']({'price':z['string']()})['strict']())['optional'](),'order_amount':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'trust_score':z['object']({'score':z['number'](),'level':z['string']()})['strict']()['optional'](),'arbitration_owner':z['string']()['optional'](),'service_owner':z['string']()['optional'](),'wip_verified':z['boolean']()['optional'](),'order_history':z['array'](z['object']({'status':z['string'](),'has_dispute':z['boolean'](),'is_repeat':z['boolean']()})['strict']())['optional'](),'merchant_reputation':z['object']({'likes':z['number'](),'dislikes':z['number']()})['strict']()['optional']()})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances\x20(利益分配).'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(人设驱动力).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(数值化).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('service_risk'),'service_id':z['string']()['describe']('Service\x20object\x20address\x20or\x20LocalMark\x20name.'),'puzzle_raw':PuzzleRawDataSchema,'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'depth':z['enum'](['browse','evaluate','preorder','monitor'])['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity\x20(收藏).')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('service_risk'),'result':EvaluationResultSchema})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'code':z['enum'](['self_buy','reciprocal_loop','no_allocation','reviews_unverified','reviewer_duplicate','review_time_burst','shell_no_arbitration','shell_funded_no_arbitration','shell_no_machine','reputation_bound'])['describe']('Stable\x20machine-readable\x20signal\x20discriminator.'),'severity':z['enum'](['high','medium','low']),'description':z['string'](),'refs':z['array'](z['string']())['optional']()['describe']('Object\x20addresses\x20backing\x20the\x20signal\x20(orders/services).')})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict']()})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
@@ -18,8 +18,8 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
18
18
  action: z.ZodLiteral<"list">;
19
19
  stage: z.ZodOptional<z.ZodEnum<{
20
20
  confirmed: "confirmed";
21
- paused: "paused";
22
21
  completed: "completed";
22
+ paused: "paused";
23
23
  recognized: "recognized";
24
24
  bound: "bound";
25
25
  planned: "planned";
@@ -141,6 +141,42 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
141
141
  mainnet: "mainnet";
142
142
  testnet: "testnet";
143
143
  }>>;
144
+ }, z.core.$strict>, z.ZodObject<{
145
+ action: z.ZodLiteral<"boundaries">;
146
+ id: z.ZodString;
147
+ network: z.ZodOptional<z.ZodEnum<{
148
+ mainnet: "mainnet";
149
+ testnet: "testnet";
150
+ }>>;
151
+ }, z.core.$strict>, z.ZodObject<{
152
+ action: z.ZodLiteral<"boundaries_set">;
153
+ id: z.ZodString;
154
+ budget: z.ZodOptional<z.ZodString>;
155
+ deadline: z.ZodOptional<z.ZodNumber>;
156
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
+ autonomy: z.ZodOptional<z.ZodEnum<{
158
+ confirm_all: "confirm_all";
159
+ execute_low_risk: "execute_low_risk";
160
+ execute_all: "execute_all";
161
+ }>>;
162
+ network: z.ZodOptional<z.ZodEnum<{
163
+ mainnet: "mainnet";
164
+ testnet: "testnet";
165
+ }>>;
166
+ }, z.core.$strict>, z.ZodObject<{
167
+ action: z.ZodLiteral<"pursue">;
168
+ id: z.ZodString;
169
+ network: z.ZodOptional<z.ZodEnum<{
170
+ mainnet: "mainnet";
171
+ testnet: "testnet";
172
+ }>>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ action: z.ZodLiteral<"next_steps">;
175
+ id: z.ZodString;
176
+ network: z.ZodOptional<z.ZodEnum<{
177
+ mainnet: "mainnet";
178
+ testnet: "testnet";
179
+ }>>;
144
180
  }, z.core.$strict>, z.ZodObject<{
145
181
  target_objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
182
  network: z.ZodOptional<z.ZodEnum<{
@@ -1 +1 @@
1
- import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestions'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'include_resolved':z['boolean']()['optional']()['describe']('Also\x20return\x20confirmed/dismissed\x20suggestions.\x20Default\x20false\x20(pending\x20only).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestion_resolve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'suggestion_id':z['string']()['describe']('Suggestion\x20id\x20(sug_…).'),'decision':z['enum'](['confirm','dismiss'])['describe']('confirm\x20=\x20accept\x20the\x20suggestion;\x20dismiss\x20=\x20reject\x20it\x20(recorded,\x20one-shot\x20either\x20way).'),'apply':z['boolean']()['optional']()['describe']('With\x20decision=confirm:\x20run\x20the\x20suggested\x20move\x20through\x20the\x20normal\x20engine\x20stations\x20(advance_stage\x20→\x20advance;\x20complete_goal\x20→\x20complete\x20with\x20chain\x20verification;\x20register_object\x20→\x20advance\x20objects).\x20Default\x20false:\x20acknowledge\x20only.\x20When\x20applying\x20fails\x20the\x20suggestion\x20STAYS\x20PENDING\x20and\x20apply_error\x20explains\x20why.'),'note':z['string']()['optional']()['describe']('Optional\x20resolution\x20note\x20(audit).'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'pending_suggestions':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20pending\x20advancement\x20suggestions\x20(up\x20to\x203).')})['passthrough']()['describe']('T5-C:\x20monitor-bridged\x20suggestions\x20awaiting\x20a\x20decision\x20(see\x20the\x20suggestions\x20action).'),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();
1
+ import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestions'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'include_resolved':z['boolean']()['optional']()['describe']('Also\x20return\x20confirmed/dismissed\x20suggestions.\x20Default\x20false\x20(pending\x20only).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestion_resolve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'suggestion_id':z['string']()['describe']('Suggestion\x20id\x20(sug_…).'),'decision':z['enum'](['confirm','dismiss'])['describe']('confirm\x20=\x20accept\x20the\x20suggestion;\x20dismiss\x20=\x20reject\x20it\x20(recorded,\x20one-shot\x20either\x20way).'),'apply':z['boolean']()['optional']()['describe']('With\x20decision=confirm:\x20run\x20the\x20suggested\x20move\x20through\x20the\x20normal\x20engine\x20stations\x20(advance_stage\x20→\x20advance;\x20complete_goal\x20→\x20complete\x20with\x20chain\x20verification;\x20register_object\x20→\x20advance\x20objects).\x20Default\x20false:\x20acknowledge\x20only.\x20When\x20applying\x20fails\x20the\x20suggestion\x20STAYS\x20PENDING\x20and\x20apply_error\x20explains\x20why.'),'note':z['string']()['optional']()['describe']('Optional\x20resolution\x20note\x20(audit).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('boundaries'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('boundaries_set'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'budget':z['string']()['optional']()['describe']('Total\x20spend\x20ceiling,\x20smallest\x20on-chain\x20unit\x20(MIST),\x20non-negative\x20integer\x20decimal\x20string.\x20Payment\x20candidates\x20above\x20it\x20are\x20rejected\x20(stalled),\x20never\x20asked.'),'deadline':z['number']()['optional']()['describe']('Hard\x20deadline,\x20ms\x20epoch.\x20Past\x20it\x20the\x20pursue\x20tick\x20stalls\x20every\x20candidate.'),'requirements':z['array'](z['string']())['optional']()['describe']('Hard\x20acceptance\x20red\x20lines\x20(e.g.\x20\x27service\x20location\x20must\x20be\x20London\x27).\x20Commitment-level\x20moves\x20always\x20wait\x20until\x20every\x20requirement\x20is\x20verified.'),'autonomy':z['enum'](['confirm_all','execute_low_risk','execute_all'])['optional']()['describe']('Standing\x20authorization\x20for\x20the\x20pursue\x20tick:\x20confirm_all\x20(every\x20decision\x20surfaces\x20as\x20a\x20pending\x20suggestion;\x20default)\x20|\x20execute_low_risk\x20(engine-local\x20moves\x20execute;\x20on-chain\x20ops\x20ask)\x20|\x20execute_all\x20(standard-gated\x20on-chain\x20moves\x20also\x20execute;\x20irreversible/publish/amount\x20ALWAYS\x20ask).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pursue'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('next_steps'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'pending_suggestions':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20pending\x20advancement\x20suggestions\x20(up\x20to\x203).')})['passthrough']()['describe']('T5-C:\x20monitor-bridged\x20suggestions\x20awaiting\x20a\x20decision\x20(see\x20the\x20suggestions\x20action).'),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();
@@ -223,8 +223,8 @@ export declare const AnalyzeIntentResultSchema: z.ZodObject<{
223
223
  category: z.ZodString;
224
224
  matched_objects: z.ZodArray<z.ZodString>;
225
225
  required_level: z.ZodEnum<{
226
- C: "C";
227
226
  R: "R";
227
+ C: "C";
228
228
  OPTIONAL: "OPTIONAL";
229
229
  }>;
230
230
  match_count: z.ZodNumber;
@@ -14,8 +14,10 @@ export * from './persona/index.js';
14
14
  export * from './intent-radar/index.js';
15
15
  export * from './goal/index.js';
16
16
  export * from './employee/index.js';
17
+ export * from './interaction/index.js';
17
18
  export * from './schema-query/index.js';
18
19
  export * from './industry-pack/index.js';
20
+ export * from './strategy-review/index.js';
19
21
  export * from './workspace/index.js';
20
22
  export * from './workflow/index.js';
21
23
  export * from './permission/index.js';
@@ -1 +1 @@
1
- export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./goal/index.js';export*from'./employee/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export*from'./keeper/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';
1
+ export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./goal/index.js';export*from'./employee/index.js';export*from'./interaction/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./strategy-review/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export*from'./keeper/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';
@@ -137,6 +137,13 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
137
137
  }, z.core.$strip>, z.ZodObject<{
138
138
  action: z.ZodLiteral<"get">;
139
139
  category: z.ZodString;
140
+ mode: z.ZodOptional<z.ZodObject<{
141
+ name: z.ZodString;
142
+ display_name: z.ZodString;
143
+ key_risk: z.ZodString;
144
+ needs: z.ZodArray<z.ZodString>;
145
+ analyze_questions: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ }, z.core.$strip>>;
140
147
  dispute: z.ZodOptional<z.ZodUnknown>;
141
148
  compliance: z.ZodOptional<z.ZodUnknown>;
142
149
  supply: z.ZodOptional<z.ZodUnknown>;
@@ -1 +1 @@
1
- import{z}from'zod';import{MODE_REGISTRY_ACTIONS,ModeRegistryFields,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema}from'./modes.js';export const IndustryPackOperationInputSchema=z['object']({'action':z['enum'](['scaffold','list','scan','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'+'\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;\x20dispute/compliance/supply/rules/playbook);\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.'),'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).'),...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'](),'version':z['string'](),'layers':z['array'](z['string']()),'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']('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.')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'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','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'+'\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;\x20dispute/compliance/supply/rules/playbook);\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.'),'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).'),...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'](),'version':z['string'](),'layers':z['array'](z['string']()),'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']('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.')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'mode':z['object']({'name':z['string']()['describe']('Mode\x20name.'),'display_name':z['string']()['describe']('Mode\x20display\x20name.'),'key_risk':z['string']()['describe']('The\x20industry\x27s\x20dominant\x20risk.'),'needs':z['array'](z['string']())['describe']('Industry\x20need\x20descriptions\x20(satisfaction\x20requires\x20the\x20evaluation\x20puzzle).'),'analyze_questions':z['array'](z['string']())['optional']()['describe']('Industry-embedded\x20Analyze\x20key\x20questions\x20(max\x202)\x20—\x20the\x20fallback\x20'+'follow-ups\x20when\x20the\x20user\x27s\x20persona\x20has\x20none\x20embedded.')})['optional']()['describe']('Registered\x20industry\x20MODE\x20data\x20(key_risk/needs/analyze\x20defaults),\x20if\x20any.'),'dispute':z['unknown']()['optional']()['describe']('Registered\x20dispute\x20rules\x20(if\x20any).'),'compliance':z['unknown']()['optional']()['describe']('Registered\x20compliance\x20rules\x20(if\x20any).'),'supply':z['unknown']()['optional']()['describe']('Registered\x20supply\x20rules\x20(if\x20any).'),'rules':z['unknown']()['optional']()['describe']('Registered\x20declarative\x20industry\x20rules\x20(if\x20any).'),'playbook':z['unknown']()['optional']()['describe']('Registered\x20playbook\x20(if\x20any).')}),z['object']({'action':z['literal']('diff'),'name':z['string']()['describe']('Industry\x20name.'),'registered':z['object']({'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()})['nullable']()['describe']('Currently\x20registered\x20metadata.'),'disk':z['object']({'version':z['string'](),'layers':z['array'](z['string']())})['nullable']()['describe']('On-disk\x20manifest\x20metadata.'),'upgradable':z['boolean']()['describe']('Whether\x20the\x20on-disk\x20version\x20differs\x20from\x20registered.'),'layer_diff':z['object']({'added':z['array'](z['string']()),'removed':z['array'](z['string']())})['describe']('Layer\x20difference\x20(disk\x20vs\x20registered).')}),z['object']({'action':z['literal']('reset'),'ok':z['boolean']()['describe']('Whether\x20reset\x20succeeded.'),'layout':z['enum'](['merged','legacy'])['describe']('Layout\x20format\x20that\x20was\x20restored:\x20\x27merged\x27\x20(single\x20pack.json\x20+\x20playbook.md)\x20or\x20\x27legacy\x27\x20(split\x20files).'),'target':z['string']()['describe']('Normalised\x20reset\x20target\x20path\x20(pack\x20name\x20or\x20file).'),'restored_files':z['array'](z['string']())['describe']('Files\x20that\x20were\x20restored\x20to\x20pristine\x20annotated\x20templates.'),'errors':z['array'](z['string']())['describe']('Errors\x20encountered\x20during\x20reset.')}),z['object']({'action':z['literal']('delete_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20deleted\x20file\x20or\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20file.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_dir'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('copy'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('move'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('rename'),'from':z['string']()['describe']('Absolute\x20old\x20path.'),'to':z['string']()['describe']('Absolute\x20new\x20path.'),'ok':z['boolean']()}),...[RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema]])})['strict']();
@@ -0,0 +1,34 @@
1
+ import { z } from "zod";
2
+ export declare const AskOptionIdSchema: z.ZodString;
3
+ export declare const AskUserOptionSchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ label: z.ZodString;
6
+ description: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type AskUserOption = z.infer<typeof AskUserOptionSchema>;
9
+ export declare const AskUserInputSchema: z.ZodObject<{
10
+ question: z.ZodString;
11
+ options: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodString;
13
+ label: z.ZodString;
14
+ description: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ recommended_id: z.ZodOptional<z.ZodString>;
17
+ multi_select: z.ZodDefault<z.ZodBoolean>;
18
+ allow_freeform: z.ZodDefault<z.ZodBoolean>;
19
+ context: z.ZodOptional<z.ZodString>;
20
+ }, z.core.$strict>;
21
+ export type AskUserInput = z.infer<typeof AskUserInputSchema>;
22
+ export declare const AskUserResultSchema: z.ZodObject<{
23
+ status: z.ZodLiteral<"success">;
24
+ action: z.ZodEnum<{
25
+ accept: "accept";
26
+ decline: "decline";
27
+ cancel: "cancel";
28
+ }>;
29
+ question: z.ZodString;
30
+ selected_ids: z.ZodArray<z.ZodString>;
31
+ selected_labels: z.ZodArray<z.ZodString>;
32
+ freeform_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$strip>;
34
+ export type AskUserResult = z.infer<typeof AskUserResultSchema>;