@wowok/agent-mcp 3.1.7 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/dist/config/exposure.d.ts +2 -2
  2. package/dist/config/judgment.d.ts +5 -5
  3. package/dist/config/rule-engine.d.ts +5 -5
  4. package/dist/customer/user-preferences.d.ts +2 -2
  5. package/dist/evaluation/arbitration-game.js +1 -1
  6. package/dist/evaluation/capability.d.ts +1 -1
  7. package/dist/evaluation/extract.js +1 -1
  8. package/dist/evaluation/match-operation.js +1 -1
  9. package/dist/extensions/industry-pack.d.ts +3 -2
  10. package/dist/extensions/industry-pack.js +1 -1
  11. package/dist/extensions/modes.js +1 -1
  12. package/dist/extensions/registry.js +1 -1
  13. package/dist/extensions/types.d.ts +1 -0
  14. package/dist/graph/onchain/analyze.js +1 -1
  15. package/dist/graph/onchain/analyze.spec.js +1 -1
  16. package/dist/graph/onchain/edge-schema.js +1 -1
  17. package/dist/graph/onchain/extract.js +1 -1
  18. package/dist/graph/onchain/facts.js +1 -1
  19. package/dist/graph/onchain/field-manifest.js +1 -1
  20. package/dist/graph/onchain/project-relationship.js +1 -1
  21. package/dist/graph/onchain/sdk-batch.d.ts +1 -0
  22. package/dist/graph/onchain/sdk-batch.js +1 -1
  23. package/dist/graph/onchain/sdk-dataplane.d.ts +1 -0
  24. package/dist/graph/onchain/sdk-dataplane.js +1 -1
  25. package/dist/graph/onchain/types.d.ts +1 -1
  26. package/dist/harness/recover.js +1 -1
  27. package/dist/keeper/KeeperScan.d.ts +2 -1
  28. package/dist/keeper/KeeperScan.js +1 -1
  29. package/dist/keeper/detectors.d.ts +9 -0
  30. package/dist/keeper/detectors.js +1 -1
  31. package/dist/keeper/keeper.spec.js +1 -1
  32. package/dist/keeper/types.d.ts +1 -1
  33. package/dist/keeper/types.js +1 -1
  34. package/dist/knowledge/allocation-ledger.d.ts +4 -1
  35. package/dist/knowledge/allocation-ledger.js +1 -1
  36. package/dist/knowledge/allocation-puzzle.d.ts +2 -0
  37. package/dist/knowledge/allocation-puzzle.js +1 -1
  38. package/dist/knowledge/allocation-risk.d.ts +1 -1
  39. package/dist/knowledge/allocation-risk.js +1 -1
  40. package/dist/knowledge/allocation-templates.d.ts +1 -1
  41. package/dist/knowledge/allocation-templates.js +1 -1
  42. package/dist/knowledge/arb-risk.d.ts +3 -1
  43. package/dist/knowledge/arb-risk.js +1 -1
  44. package/dist/knowledge/arbitration-ledger.js +1 -1
  45. package/dist/knowledge/arbitration-risk.js +1 -1
  46. package/dist/knowledge/arbitration-templates.d.ts +1 -0
  47. package/dist/knowledge/arbitration-templates.js +1 -1
  48. package/dist/knowledge/audit-rules.d.ts +13 -2
  49. package/dist/knowledge/audit-rules.js +1 -1
  50. package/dist/knowledge/baselines/rules/allocation.json +50 -1
  51. package/dist/knowledge/baselines/rules/arb.json +20 -1
  52. package/dist/knowledge/baselines/rules/arbitration.json +27 -0
  53. package/dist/knowledge/baselines/rules/guard.json +75 -2
  54. package/dist/knowledge/baselines/rules/machine.json +38 -13
  55. package/dist/knowledge/baselines/rules/order.json +2 -2
  56. package/dist/knowledge/builtin-templates.d.ts +3 -1
  57. package/dist/knowledge/builtin-templates.js +1 -1
  58. package/dist/knowledge/discount-threshold.d.ts +15 -0
  59. package/dist/knowledge/discount-threshold.js +1 -0
  60. package/dist/knowledge/event-semantics.js +1 -1
  61. package/dist/knowledge/fund-layer.js +1 -1
  62. package/dist/knowledge/getting-started.js +1 -1
  63. package/dist/knowledge/guard-anchor-reach.d.ts +19 -0
  64. package/dist/knowledge/guard-anchor-reach.js +1 -0
  65. package/dist/knowledge/guard-bindings.js +1 -1
  66. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  67. package/dist/knowledge/guard-design-patterns.js +1 -1
  68. package/dist/knowledge/guard-ledger.js +1 -1
  69. package/dist/knowledge/guard-lint.js +1 -1
  70. package/dist/knowledge/guard-render.d.ts +6 -0
  71. package/dist/knowledge/guard-render.js +1 -1
  72. package/dist/knowledge/guard-risk.js +1 -1
  73. package/dist/knowledge/guard-submission-prompt.d.ts +6 -0
  74. package/dist/knowledge/guard-submission-prompt.js +1 -1
  75. package/dist/knowledge/guard-templates.d.ts +1 -1
  76. package/dist/knowledge/guard-templates.js +1 -1
  77. package/dist/knowledge/guard-translation.js +1 -1
  78. package/dist/knowledge/index.d.ts +6 -6
  79. package/dist/knowledge/index.js +1 -1
  80. package/dist/knowledge/industry-generalizer.d.ts +38 -1
  81. package/dist/knowledge/industry-generalizer.js +1 -1
  82. package/dist/knowledge/industry-registry.d.ts +1 -1
  83. package/dist/knowledge/industry-registry.js +1 -1
  84. package/dist/knowledge/industry-strategy.js +1 -1
  85. package/dist/knowledge/jsonrpc-enum.js +1 -1
  86. package/dist/knowledge/machine-ledger.js +1 -1
  87. package/dist/knowledge/machine-risk.js +1 -1
  88. package/dist/knowledge/machine-templates.js +1 -1
  89. package/dist/knowledge/onchain-constants.d.ts +2 -2
  90. package/dist/knowledge/onchain-constants.js +1 -1
  91. package/dist/knowledge/order-ledger.js +1 -1
  92. package/dist/knowledge/order-templates.js +1 -1
  93. package/dist/knowledge/permission-ledger.js +1 -1
  94. package/dist/knowledge/release-sentinel.d.ts +12 -0
  95. package/dist/knowledge/release-sentinel.js +1 -0
  96. package/dist/knowledge/repository-write-semantics.d.ts +27 -0
  97. package/dist/knowledge/repository-write-semantics.js +1 -0
  98. package/dist/knowledge/rule-node-analyzers.d.ts +6 -0
  99. package/dist/knowledge/rule-node-analyzers.js +1 -1
  100. package/dist/knowledge/safety-rules.d.ts +5 -1
  101. package/dist/knowledge/safety-rules.js +1 -1
  102. package/dist/knowledge/scenario-modes.d.ts +20 -1
  103. package/dist/knowledge/scenario-modes.js +1 -1
  104. package/dist/knowledge/service-allocation-semantics.d.ts +36 -0
  105. package/dist/knowledge/service-allocation-semantics.js +1 -0
  106. package/dist/knowledge/strategy-manuals.d.ts +4 -6
  107. package/dist/knowledge/strategy-manuals.js +1 -1
  108. package/dist/knowledge/template-loader.d.ts +48 -12
  109. package/dist/knowledge/template-loader.js +1 -1
  110. package/dist/knowledge/template-registry.js +1 -1
  111. package/dist/knowledge/template-scanner.js +1 -1
  112. package/dist/knowledge/tools-reference.js +1 -1
  113. package/dist/knowledge/workflow-guidance.d.ts +26 -0
  114. package/dist/knowledge/workflow-guidance.js +1 -1
  115. package/dist/monitor/MonitorLoop.js +1 -1
  116. package/dist/participation/allocation-advice.d.ts +38 -0
  117. package/dist/participation/allocation-advice.js +1 -0
  118. package/dist/participation/arbitrator-interest.js +1 -1
  119. package/dist/participation/customer-interest.js +1 -1
  120. package/dist/participation/merchant-interest.js +1 -1
  121. package/dist/participation/radar-core.d.ts +2 -0
  122. package/dist/persona/types.d.ts +3 -2
  123. package/dist/persona/types.js +1 -1
  124. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  125. package/dist/playbooks/service-build/intent-analyzer.js +1 -1
  126. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  127. package/dist/playbooks/service-build/merchant-guide.d.ts +70 -63
  128. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  129. package/dist/playbooks/service-build/migration-planner.js +1 -1
  130. package/dist/playbooks/service-build/mode-actions.d.ts +17 -1
  131. package/dist/playbooks/service-build/mode-actions.js +1 -1
  132. package/dist/playbooks/service-build/object-panorama.js +1 -1
  133. package/dist/playbooks/service-build/participation-radar.js +1 -1
  134. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  135. package/dist/playbooks/service-build/reverse-mapping-refund-p0-5.spec.js +1 -0
  136. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  137. package/dist/playbooks/service-build/semantic-graph.d.ts +1 -0
  138. package/dist/playbooks/service-build/semantic-graph.js +1 -1
  139. package/dist/playbooks/service-build/service-panorama.js +1 -1
  140. package/dist/playbooks/service-build/service-quote.d.ts +2 -0
  141. package/dist/playbooks/service-build/service-quote.js +1 -0
  142. package/dist/relationship/derivation.d.ts +1 -1
  143. package/dist/review/index.js +1 -1
  144. package/dist/role/profiles.js +1 -1
  145. package/dist/role/types.d.ts +2 -0
  146. package/dist/role/types.js +1 -1
  147. package/dist/safety/confirm-gate.js +1 -1
  148. package/dist/schema/benchmark-migration/index.d.ts +30 -8
  149. package/dist/schema/benchmark-migration/index.js +1 -1
  150. package/dist/schema/call/allocation.d.ts +10 -7
  151. package/dist/schema/call/arbitration.d.ts +1 -1
  152. package/dist/schema/call/arbitration.js +1 -1
  153. package/dist/schema/call/base.d.ts +5 -5
  154. package/dist/schema/call/base.js +1 -1
  155. package/dist/schema/call/bridge.d.ts +5 -9
  156. package/dist/schema/call/bridge.js +1 -1
  157. package/dist/schema/call/contact.d.ts +1 -1
  158. package/dist/schema/call/demand.d.ts +1 -1
  159. package/dist/schema/call/guard.d.ts +15 -15
  160. package/dist/schema/call/handler.js +1 -1
  161. package/dist/schema/call/machine.d.ts +58 -2
  162. package/dist/schema/call/machine.js +1 -1
  163. package/dist/schema/call/order.d.ts +1 -1
  164. package/dist/schema/call/order.js +1 -1
  165. package/dist/schema/call/payment.d.ts +1 -1
  166. package/dist/schema/call/payment.js +1 -1
  167. package/dist/schema/call/permission.d.ts +1 -1
  168. package/dist/schema/call/personal.d.ts +1 -1
  169. package/dist/schema/call/progress.d.ts +1 -1
  170. package/dist/schema/call/proof.d.ts +2 -2
  171. package/dist/schema/call/repository.d.ts +1 -1
  172. package/dist/schema/call/reward.d.ts +1 -1
  173. package/dist/schema/call/semantic.js +1 -1
  174. package/dist/schema/call/service.d.ts +87 -25
  175. package/dist/schema/call/service.js +1 -1
  176. package/dist/schema/call/treasury.d.ts +1 -1
  177. package/dist/schema/common/index.js +1 -1
  178. package/dist/schema/common/tokentype-short-probe.spec.js +1 -0
  179. package/dist/schema/evaluation/index.d.ts +14 -82
  180. package/dist/schema/evaluation/index.js +1 -1
  181. package/dist/schema/goal/index.d.ts +8 -41
  182. package/dist/schema/goal/planning.d.ts +22 -57
  183. package/dist/schema/goal/planning.js +1 -1
  184. package/dist/schema/industry-pack/index.d.ts +15 -0
  185. package/dist/schema/industry-pack/modes.d.ts +15 -0
  186. package/dist/schema/industry-pack/modes.js +1 -1
  187. package/dist/schema/intent-radar/index.d.ts +5 -20
  188. package/dist/schema/intent-radar/index.js +1 -1
  189. package/dist/schema/interaction/index.d.ts +1 -1
  190. package/dist/schema/keeper/index.d.ts +3 -0
  191. package/dist/schema/keeper/index.js +1 -1
  192. package/dist/schema/local/index.d.ts +577 -18
  193. package/dist/schema/local/index.js +1 -1
  194. package/dist/schema/messenger/index.d.ts +140 -20
  195. package/dist/schema/messenger/index.js +1 -1
  196. package/dist/schema/operations.d.ts +97 -35
  197. package/dist/schema/operations.js +1 -1
  198. package/dist/schema/persona/index.d.ts +811 -916
  199. package/dist/schema/persona/index.js +1 -1
  200. package/dist/schema/query/bi.d.ts +161 -8
  201. package/dist/schema/query/bi.js +1 -1
  202. package/dist/schema/query/index.d.ts +49 -30
  203. package/dist/schema/query/index.js +1 -1
  204. package/dist/schema/schema-query/index.d.ts +2 -2
  205. package/dist/schema/workflow/index.d.ts +2 -2
  206. package/dist/schema-query-impl/index.d.ts +1 -0
  207. package/dist/schema-query-impl/index.js +1 -1
  208. package/dist/schemas/account_operation.output.json +8 -4
  209. package/dist/schemas/account_operation.schema.json +1 -1
  210. package/dist/schemas/benchmark_migration_operation.output.json +116 -2
  211. package/dist/schemas/benchmark_migration_operation.schema.json +2 -10
  212. package/dist/schemas/bridge_operation.output.json +2 -2
  213. package/dist/schemas/bridge_operation.schema.json +2 -10
  214. package/dist/schemas/evaluation_operation.output.json +2 -0
  215. package/dist/schemas/evaluation_operation.schema.json +9 -70
  216. package/dist/schemas/goal_operation.schema.json +6 -39
  217. package/dist/schemas/index.json +7 -1
  218. package/dist/schemas/industry_pack_operation.output.json +87 -4
  219. package/dist/schemas/intent_radar.output.json +6 -20
  220. package/dist/schemas/intent_radar.schema.json +1 -0
  221. package/dist/schemas/keeper_operation.output.json +2 -2
  222. package/dist/schemas/keeper_operation.schema.json +9 -4
  223. package/dist/schemas/local_cache_operation.output.json +1536 -0
  224. package/dist/schemas/local_cache_operation.schema.json +101 -0
  225. package/dist/schemas/local_history_operation.output.json +2 -2
  226. package/dist/schemas/local_info_operation.output.json +2 -2
  227. package/dist/schemas/local_mark_operation.output.json +53 -38
  228. package/dist/schemas/local_mark_operation.schema.json +1 -0
  229. package/dist/schemas/messenger_operation.output.json +2 -2
  230. package/dist/schemas/messenger_operation.schema.json +358 -35
  231. package/dist/schemas/monitor_events.output.json +2 -2
  232. package/dist/schemas/monitor_subscription.output.json +2 -2
  233. package/dist/schemas/onchain_events.output.json +2 -2
  234. package/dist/schemas/onchain_operations.output.json +6 -6
  235. package/dist/schemas/onchain_operations.schema.json +237 -64
  236. package/dist/schemas/onchain_operations_allocation.schema.json +12 -11
  237. package/dist/schemas/onchain_operations_arbitration.schema.json +16 -16
  238. package/dist/schemas/onchain_operations_machine.schema.json +27 -5
  239. package/dist/schemas/onchain_operations_order.schema.json +1 -1
  240. package/dist/schemas/onchain_operations_payment.schema.json +3 -3
  241. package/dist/schemas/onchain_operations_reward.schema.json +2 -2
  242. package/dist/schemas/onchain_operations_service.schema.json +174 -24
  243. package/dist/schemas/onchain_operations_treasury.schema.json +2 -2
  244. package/dist/schemas/onchain_table_data.output.json +68 -4
  245. package/dist/schemas/persona_operation.output.json +11 -88
  246. package/dist/schemas/persona_operation.schema.json +4 -32
  247. package/dist/schemas/query_toolkit.output.json +331 -26
  248. package/dist/schemas/query_toolkit.schema.json +66 -2
  249. package/dist/tools/handlers/benchmark-migration.js +1 -1
  250. package/dist/tools/handlers/bridge.js +1 -1
  251. package/dist/tools/handlers/dispatch-expectations.spec.js +1 -1
  252. package/dist/tools/handlers/keeper.d.ts +1 -1
  253. package/dist/tools/handlers/local.d.ts +1 -0
  254. package/dist/tools/handlers/local.js +1 -1
  255. package/dist/tools/handlers/messenger.d.ts +9 -2
  256. package/dist/tools/handlers/messenger.js +1 -1
  257. package/dist/tools/handlers/name-resolution.d.ts +4 -0
  258. package/dist/tools/handlers/name-resolution.js +1 -0
  259. package/dist/tools/handlers/name-resolution.spec.js +1 -0
  260. package/dist/tools/handlers/onchain-name-registration.d.ts +37 -0
  261. package/dist/tools/handlers/onchain-name-registration.js +1 -0
  262. package/dist/tools/handlers/onchain-name-registration.spec.js +1 -0
  263. package/dist/tools/handlers/onchain.d.ts +1 -0
  264. package/dist/tools/handlers/onchain.js +1 -1
  265. package/dist/tools/handlers/query.d.ts +1 -0
  266. package/dist/tools/handlers/query.js +1 -1
  267. package/dist/tools/handlers/schema-query.js +1 -1
  268. package/dist/tools/index.js +1 -1
  269. package/dist/tools/move-fn-index.gen.js +1 -1
  270. package/dist/tools/registry/business.js +1 -1
  271. package/dist/tools/registry/local.js +1 -1
  272. package/dist/tools/sanitize-description-roundtrip.spec.js +1 -0
  273. package/dist/tools/sanitize-output.d.ts +1 -0
  274. package/dist/tools/sanitize-output.js +1 -1
  275. package/dist/tools/wrap.js +1 -1
  276. package/package.json +2 -2
  277. package/dist/knowledge/alloc-audit-policy.spec.js +0 -1
  278. package/dist/knowledge/event-semantics.spec.js +0 -1
  279. package/dist/knowledge/facts-sync.spec.js +0 -1
  280. package/dist/knowledge/guard-design-patterns.spec.js +0 -1
  281. package/dist/knowledge/guard-eval.spec.js +0 -1
  282. package/dist/knowledge/rule-node-analyzers.spec.d.ts +0 -1
  283. package/dist/knowledge/rule-node-analyzers.spec.js +0 -1
  284. package/dist/knowledge/safety-rules.extract-amount.spec.d.ts +0 -1
  285. package/dist/knowledge/safety-rules.extract-amount.spec.js +0 -1
  286. package/dist/knowledge/template-loader.spec.d.ts +0 -1
  287. package/dist/knowledge/template-loader.spec.js +0 -1
  288. package/dist/knowledge/template-scanner.spec.d.ts +0 -1
  289. package/dist/knowledge/template-scanner.spec.js +0 -1
  290. /package/dist/{knowledge/alloc-audit-policy.spec.d.ts → playbooks/service-build/reverse-mapping-refund-p0-5.spec.d.ts} +0 -0
  291. /package/dist/{knowledge/event-semantics.spec.d.ts → schema/common/tokentype-short-probe.spec.d.ts} +0 -0
  292. /package/dist/{knowledge/facts-sync.spec.d.ts → tools/handlers/name-resolution.spec.d.ts} +0 -0
  293. /package/dist/{knowledge/guard-design-patterns.spec.d.ts → tools/handlers/onchain-name-registration.spec.d.ts} +0 -0
  294. /package/dist/{knowledge/guard-eval.spec.d.ts → tools/sanitize-description-roundtrip.spec.d.ts} +0 -0
@@ -1 +1 @@
1
- import{z}from'zod';import{JudgmentFragmentSchema}from'../../config/judgment.js';const IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail']),RoleEnum=z['enum'](['merchant','customer','demander','prospect','supplier','collaborator','arbitrator']),ScopeEnum=z['enum'](['system','account']),PersonaIdentitySchema=z['object']({'region':z['string']()['optional'](),'languages':z['array'](z['string']())['optional'](),'self_description':z['string']()['optional']()})['strict'](),OverrideValueEnum=z['enum'](['auto','prompt','block','warn']),PersonaPolicySchema=z['object']({'confirm':z['object']({'mode':z['enum'](['full','streamlined','quiet'])['optional'](),'batch_standard':z['boolean']()['optional'](),'session_remember':z['array'](z['string']())['optional'](),'intent_bypass':z['boolean']()['optional']()})['strict']()['optional'](),'budget':z['object']({'daily_wow':z['string']()['nullable']()['optional']()})['strict']()['optional'](),'allowlist':z['array'](z['string']())['optional'](),'audit':z['boolean']()['optional']()})['strict'](),TasteProfileSchema=z['object']({'materials':z['array'](z['string']())['optional'](),'colors':z['array'](z['string']())['optional'](),'styles':z['array'](z['string']())['optional'](),'tags':z['array'](z['string']())['optional'](),'brands':z['array'](z['string']())['optional'](),'avoid':z['array'](z['string']())['optional']()})['strict'](),ConsumptionProfileSchema=z['object']({'frequency':z['enum'](['rare','occasional','regular','frequent'])['optional'](),'price_band':z['enum'](['budget','mid','premium','luxury'])['optional'](),'decision_speed':z['enum'](['fast','deliberate','slow'])['optional'](),'channels':z['array'](z['string']())['optional'](),'repeat_orientation':z['enum'](['novelty','balanced','loyal'])['optional'](),'avg_order_range':z['string']()['optional'](),'notes':z['array'](z['string']())['optional']()})['strict'](),MerchantRoleStyleSchema=z['object']({'posture':z['enum'](['volume','balanced','margin'])['optional'](),'pricing_style':z['enum'](['competitive','value','premium','custom_quote'])['optional'](),'service_style':z['array'](z['string']())['optional'](),'communication':z['string']()['optional'](),'growth_focus':z['array'](z['string']())['optional']()})['strict'](),SupplierRoleStyleSchema=z['object']({'min_order':z['string']()['optional'](),'lead_time':z['string']()['optional'](),'settlement_terms':z['array'](z['string']())['optional'](),'categories':z['array'](z['string']())['optional'](),'capacity':z['string']()['optional']()})['strict'](),CollaboratorRoleStyleSchema=z['object']({'scope_discipline':z['enum'](['strict','balanced','flexible'])['optional'](),'notifications':z['enum'](['minimal','digest','realtime'])['optional'](),'working_hours':z['string']()['optional'](),'advance_style':z['array'](z['string']())['optional']()})['strict'](),ArbitratorRoleStyleSchema=z['object']({'case_types':z['array'](z['string']())['optional'](),'response_speed':z['enum'](['fast','standard','thorough'])['optional'](),'ruling_style':z['enum'](['concise','detailed'])['optional']()})['strict'](),DemanderRoleStyleSchema=z['object']({'award_weights':z['record'](z['string'](),z['number']())['optional'](),'pilot_budget':z['string']()['optional'](),'rfp_openness':z['enum'](['open','passport_gated','invite_only'])['optional'](),'decision_basis':z['array'](z['string']())['optional']()})['strict'](),RoleProfileSchema=z['object']({'tastes':TasteProfileSchema['optional'](),'consumption':ConsumptionProfileSchema['optional'](),'merchant':MerchantRoleStyleSchema['optional'](),'supplier':SupplierRoleStyleSchema['optional'](),'collaborator':CollaboratorRoleStyleSchema['optional'](),'arbitrator':ArbitratorRoleStyleSchema['optional'](),'demander':DemanderRoleStyleSchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional']()})['strict'](),RoleProfileMapSchema=z['object'](Object['fromEntries'](RoleEnum['options']['map'](a=>[a,RoleProfileSchema['optional']()])))['strict'](),PersonaLayerSchema=z['object']({'identity':PersonaIdentitySchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'strategy':z['array'](z['string']())['optional'](),'rules':z['array'](z['string']())['optional'](),'requirements':z['array'](z['string']())['optional'](),'spec':z['string']()['optional'](),'overrides':z['record'](z['string'](),OverrideValueEnum)['optional'](),'policy':PersonaPolicySchema['optional'](),'profiles':RoleProfileMapSchema['optional'](),'analyze':z['object']({'key_questions':z['array'](z['string']())['max'](0x4)['describe']('The\x20user\x27s\x20key\x20follow-up\x20questions\x20for\x20the\x20Analyze\x20dossier\x20(up\x20to\x204\x20stored,\x202\x20effective\x20after\x20merge).')})['strict']()['optional'](),'judgment':JudgmentFragmentSchema['optional']()})['strict'](),PersonaControlsSchema=z['object']({'confirm_modes':z['array'](z['string']()),'overrides':z['array'](z['object']({'id':z['string'](),'default':OverrideValueEnum,'allowed':z['array'](OverrideValueEnum),'surface':z['enum'](['gate','client'])['optional']()})['strict']()),'locked_rules':z['array'](z['object']({'id':z['string'](),'level':z['string']()})['strict']()),'policy_keys':z['array'](z['string']())})['strict'](),PersonaSchema=z['object']({'version':z['number'](),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'long_term':PersonaLayerSchema,'current':PersonaLayerSchema,'updated_at':z['number']()})['strict'](),PersonaSourceSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'part':z['enum'](['long_term','current'])})['strict'](),EffectivePersonaSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'layer':PersonaLayerSchema,'sources':z['array'](PersonaSourceSchema)})['strict'](),PersonaAnalysisSuggestionSchema=z['object']({'field':z['string'](),'value':z['unknown'](),'reason':z['string']()})['strict'](),PersonaAnalysisSchema=z['object']({'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum),'preferences':z['record'](z['string'](),z['unknown']()),'requirements':z['array'](z['string']()),'rules':z['array'](z['string']()),'suggestions':z['array'](PersonaAnalysisSuggestionSchema),'confidence':z['number']()})['strict'](),GoalSummarySchema=z['object']({'id':z['string'](),'title':z['string'](),'outcome_success':z['boolean']()['optional']()})['strict']();export const PersonaOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'industry':IndustryEnum['optional'](),'role':RoleEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list')})['strict'](),z['object']({'action':z['literal']('set'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum,'industries':z['array'](IndustryEnum)['default']([]),'long_term':PersonaLayerSchema['optional'](),'current':PersonaLayerSchema['optional']()})['strict'](),z['object']({'action':z['literal']('analyze'),'context':z['string']()['describe']('Free-form\x20context:\x20website\x20URL,\x20experience\x20summary,\x20self\x20description,\x20goal.')})['strict'](),z['object']({'action':z['literal']('apply'),'context':z['string']()['describe']('Free-form\x20context\x20whose\x20extracted\x20signals\x20feed\x20the\x20CURRENT\x20layer.'),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'mode':z['enum'](['merge','replace'])['optional']()['describe']('merge\x20(default)\x20unions\x20strategy/rules/requirements\x20into\x20current;\x20replace\x20discards\x20the\x20existing\x20current\x20layer.')})['strict'](),z['object']({'action':z['literal']('sync'),'account':z['string']()['optional']()['describe']('Account\x20whose\x20behavior\x20(experience\x20layer)\x20is\x20merged\x20into\x20its\x20CURRENT\x20layer.\x20Omit\x20=\x20system\x20persona.')})['strict'](),z['object']({'action':z['literal']('apply_delta'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'delta':PersonaLayerSchema['describe']('Structured\x20CURRENT-layer\x20delta\x20to\x20merge\x20(e.g.\x20a\x20confirmed\x20strategy-review\x20proposal).\x20'+'Server-guarded:\x20policy/overrides\x20are\x20rejected;\x20long_term\x20is\x20never\x20written;\x20arrays\x20union\x20with\x20existing\x20current\x20values.')})['strict'](),z['object']({'action':z['literal']('remove'),'scope':ScopeEnum,'account':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('strategy'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'role':RoleEnum['optional']()['describe']('Role\x20override;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20role.'),'strategy':z['array'](z['string']())['optional']()['describe']('Explicit\x20strategy\x20statements;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20strategy[].')})['strict'](),z['object']({'action':z['literal']('region_hint'),'propose':z['string']()['optional']()['describe']('An\x20address\x20string\x20to\x20PROPOSE\x20storing\x20as\x20the\x20local\x20delivery\x20address.\x20Returns\x20a\x20consent-gated\x20save\x20proposal\x20—\x20NEVER\x20auto-writes;\x20the\x20user\x20must\x20confirm\x20via\x20local_info_operation.')})['strict'](),z['object']({'action':z['literal']('distill'),'goal_id':z['string']()['describe']('Goal\x20id\x20(goal_…)\x20whose\x20memory\x20(outcome,\x20problems,\x20feedback,\x20objects)\x20is\x20distilled\x20into\x20a\x20CURRENT-layer\x20proposal.'),'network':z['enum'](['mainnet','testnet'])['optional']()['describe']('Network\x20the\x20goal\x20was\x20created\x20under.')})['strict']()]);export const PersonaOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'target_account':z['string']()['optional']()['describe']('The\x20account\x20the\x20persona\x20was\x20resolved\x20for\x20(explicit\x20account,\x20or\x20the\x20on-chain\x20default\x20account\x20when\x20omitted).'),'effective':EffectivePersonaSchema,'analyze_questions':z['array'](z['string']())['optional']()['describe']('Analyze-flow\x20defaults\x20(client\x20address\x20popover\x20\x22Analyze\x22\x20→\x20AI\x20dossier):\x20the\x20user\x27s\x20effective\x20key\x20follow-up\x20questions,\x20capped\x20at\x202\x20(higher-priority\x20persona\x20layer\x20first).\x20When\x20present,\x20these\x20REPLACE\x20the\x20generic\x20Analyze\x20follow-up\x20guidance.\x20Sourced\x20from\x20persona\x20layers\x27\x20analyze.key_questions;\x20industry\x20needs\x20still\x20provide\x20thematic\x20context.'),'context_text':z['string'](),'injection':z['record'](z['string'](),z['unknown']()),'controls':PersonaControlsSchema['optional']()['describe']('Static\x20catalog\x20of\x20editable\x20safety\x20controls:\x20overridable\x20rule\x20ids\x20(defaults/allowed),\x20hard-floor\x20locked\x20rules,\x20confirm\x20modes,\x20and\x20policy\x20key\x20paths.')})['strict'](),z['object']({'action':z['literal']('list'),'personas':z['array'](PersonaSchema),'defaults':z['array'](PersonaSchema)})['strict'](),z['object']({'action':z['literal']('set'),'persona':PersonaSchema,'line_count':z['number']()})['strict'](),z['object']({'action':z['literal']('analyze'),'analysis':PersonaAnalysisSchema})['strict'](),z['object']({'action':z['literal']('apply'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':z['array'](PersonaAnalysisSuggestionSchema)})['strict'](),z['object']({'action':z['literal']('sync'),'persona':PersonaSchema,'applied':PersonaLayerSchema,'effective':EffectivePersonaSchema})['strict'](),z['object']({'action':z['literal']('apply_delta'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':PersonaLayerSchema})['strict'](),z['object']({'action':z['literal']('remove'),'removed':z['boolean']()})['strict'](),z['object']({'action':z['literal']('strategy'),'role':RoleEnum,'intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']()),'suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string'](),'target':z['string']()})['strict']()),'note':z['string']()['describe']('Empty\x20for\x20merchant;\x20explains\x20why\x20mapping\x20is\x20producer-only\x20for\x20other\x20roles.')})['strict'](),z['object']({'action':z['literal']('region_hint'),'hint':z['object']({'region':z['record'](z['string'](),z['unknown']())['describe']('Deterministic\x20region\x20skeleton\x20(mode/raw;\x20country/province/city\x20stay\x20AI-enriched).'),'source':z['literal']('local_info'),'raw':z['string']()})['strict']()['optional']()['describe']('Present\x20when\x20a\x20locally-stored\x20delivery\x20address\x20exists.'),'proposal':z['object']({'requires_user_consent':z['literal'](!![]),'raw':z['string'](),'region':z['record'](z['string'](),z['unknown']()),'review':z['string'](),'store_via':z['literal']('local_info_operation'),'info':z['object']({'name':z['string'](),'default':z['string']()})['strict']()})['strict']()['optional']()['describe']('Present\x20when\x20`propose`\x20was\x20given\x20—\x20a\x20consent-gated\x20save\x20proposal\x20(never\x20auto-written).'),'note':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('distill'),'summary':z['string']()['describe']('Human-readable\x20distillation\x20of\x20what\x20the\x20goal\x27s\x20memory\x20shows.'),'current_delta':PersonaLayerSchema['describe']('PROPOSED\x20current-layer\x20delta\x20(rules/preferences).\x20Never\x20auto-written.'),'evidence':z['object']({'goal_type':z['string'](),'stage':z['string'](),'outcome_success':z['boolean']()['optional'](),'objects_count':z['number'](),'problems_open':z['number'](),'problems_resolved':z['number'](),'feedback_positive':z['number'](),'feedback_negative':z['number'](),'duration_days':z['number']()['optional']()})['strict'](),'apply_via':z['string']()['describe']('The\x20exact\x20user-driven\x20write\x20path\x20(persona_operation\x20set/apply)\x20that\x20persists\x20the\x20delta\x20after\x20user\x20confirmation.'),'goal':GoalSummarySchema['describe']('The\x20distilled\x20goal\x27s\x20id/title/outcome\x20for\x20display.')})['strict']()]);
1
+ import{z}from'zod';import{JudgmentFragmentSchema}from'../../config/judgment.js';import{PERSONA_ROLES}from'../../persona/types.js';const IndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case'),RoleEnum=z['enum'](PERSONA_ROLES),ScopeEnum=z['enum'](['system','account']),PersonaIdentitySchema=z['object']({'region':z['string']()['optional'](),'languages':z['array'](z['string']())['optional'](),'self_description':z['string']()['optional']()})['strict'](),OverrideValueEnum=z['enum'](['auto','prompt','block','warn']),PersonaPolicySchema=z['object']({'confirm':z['object']({'mode':z['enum'](['full','streamlined','quiet'])['optional'](),'batch_standard':z['boolean']()['optional'](),'session_remember':z['array'](z['string']())['optional'](),'intent_bypass':z['boolean']()['optional']()})['strict']()['optional'](),'budget':z['object']({'daily_wow':z['string']()['nullable']()['optional']()})['strict']()['optional'](),'allowlist':z['array'](z['string']())['optional'](),'audit':z['boolean']()['optional']()})['strict'](),TasteProfileSchema=z['object']({'materials':z['array'](z['string']())['optional'](),'colors':z['array'](z['string']())['optional'](),'styles':z['array'](z['string']())['optional'](),'tags':z['array'](z['string']())['optional'](),'brands':z['array'](z['string']())['optional'](),'avoid':z['array'](z['string']())['optional']()})['strict'](),ConsumptionProfileSchema=z['object']({'frequency':z['enum'](['rare','occasional','regular','frequent'])['optional'](),'price_band':z['enum'](['budget','mid','premium','luxury'])['optional'](),'decision_speed':z['enum'](['fast','deliberate','slow'])['optional'](),'channels':z['array'](z['string']())['optional'](),'repeat_orientation':z['enum'](['novelty','balanced','loyal'])['optional'](),'avg_order_range':z['string']()['optional'](),'notes':z['array'](z['string']())['optional']()})['strict'](),MerchantRoleStyleSchema=z['object']({'posture':z['enum'](['volume','balanced','margin'])['optional'](),'pricing_style':z['enum'](['competitive','value','premium','custom_quote'])['optional'](),'service_style':z['array'](z['string']())['optional'](),'communication':z['string']()['optional'](),'growth_focus':z['array'](z['string']())['optional']()})['strict'](),SupplierRoleStyleSchema=z['object']({'min_order':z['string']()['optional'](),'lead_time':z['string']()['optional'](),'settlement_terms':z['array'](z['string']())['optional'](),'categories':z['array'](z['string']())['optional'](),'capacity':z['string']()['optional']()})['strict'](),CollaboratorRoleStyleSchema=z['object']({'scope_discipline':z['enum'](['strict','balanced','flexible'])['optional'](),'notifications':z['enum'](['minimal','digest','realtime'])['optional'](),'working_hours':z['string']()['optional'](),'advance_style':z['array'](z['string']())['optional']()})['strict'](),ArbitratorRoleStyleSchema=z['object']({'case_types':z['array'](z['string']())['optional'](),'response_speed':z['enum'](['fast','standard','thorough'])['optional'](),'ruling_style':z['enum'](['concise','detailed'])['optional']()})['strict'](),DemanderRoleStyleSchema=z['object']({'award_weights':z['record'](z['string'](),z['number']())['optional'](),'pilot_budget':z['string']()['optional'](),'rfp_openness':z['enum'](['open','passport_gated','invite_only'])['optional'](),'decision_basis':z['array'](z['string']())['optional']()})['strict'](),RoleProfileSchema=z['object']({'tastes':TasteProfileSchema['optional'](),'consumption':ConsumptionProfileSchema['optional'](),'merchant':MerchantRoleStyleSchema['optional'](),'supplier':SupplierRoleStyleSchema['optional'](),'collaborator':CollaboratorRoleStyleSchema['optional'](),'arbitrator':ArbitratorRoleStyleSchema['optional'](),'demander':DemanderRoleStyleSchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional']()})['strict'](),RoleProfileMapSchema=z['object'](Object['fromEntries'](RoleEnum['options']['map'](a=>[a,RoleProfileSchema['optional']()])))['strict'](),PersonaLayerSchema=z['object']({'identity':PersonaIdentitySchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'strategy':z['array'](z['string']())['optional'](),'rules':z['array'](z['string']())['optional'](),'requirements':z['array'](z['string']())['optional'](),'spec':z['string']()['optional'](),'overrides':z['record'](z['string'](),OverrideValueEnum)['optional'](),'policy':PersonaPolicySchema['optional'](),'profiles':RoleProfileMapSchema['optional'](),'analyze':z['object']({'key_questions':z['array'](z['string']())['max'](0x4)['describe']('The\x20user\x27s\x20key\x20follow-up\x20questions\x20for\x20the\x20Analyze\x20dossier\x20(up\x20to\x204\x20stored,\x202\x20effective\x20after\x20merge).')})['strict']()['optional'](),'judgment':JudgmentFragmentSchema['optional']()})['strict'](),PersonaControlsSchema=z['object']({'confirm_modes':z['array'](z['string']()),'overrides':z['array'](z['object']({'id':z['string'](),'default':OverrideValueEnum,'allowed':z['array'](OverrideValueEnum),'surface':z['enum'](['gate','client'])['optional']()})['strict']()),'locked_rules':z['array'](z['object']({'id':z['string'](),'level':z['string']()})['strict']()),'policy_keys':z['array'](z['string']())})['strict'](),PersonaSchema=z['object']({'version':z['number'](),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'long_term':PersonaLayerSchema,'current':PersonaLayerSchema,'updated_at':z['number']()})['strict'](),PersonaSourceSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'part':z['enum'](['long_term','current'])})['strict'](),EffectivePersonaSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'layer':PersonaLayerSchema,'sources':z['array'](PersonaSourceSchema)})['strict'](),PersonaAnalysisSuggestionSchema=z['object']({'field':z['string'](),'value':z['unknown'](),'reason':z['string']()})['strict'](),PersonaAnalysisSchema=z['object']({'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum),'preferences':z['record'](z['string'](),z['unknown']()),'requirements':z['array'](z['string']()),'rules':z['array'](z['string']()),'suggestions':z['array'](PersonaAnalysisSuggestionSchema),'confidence':z['number']()})['strict'](),GoalSummarySchema=z['object']({'id':z['string'](),'title':z['string'](),'outcome_success':z['boolean']()['optional']()})['strict']();export const PersonaOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'industry':IndustryEnum['optional'](),'role':RoleEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list')})['strict'](),z['object']({'action':z['literal']('set'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum,'industries':z['array'](IndustryEnum)['default']([]),'long_term':PersonaLayerSchema['optional'](),'current':PersonaLayerSchema['optional']()})['strict'](),z['object']({'action':z['literal']('analyze'),'context':z['string']()['describe']('Free-form\x20context:\x20website\x20URL,\x20experience\x20summary,\x20self\x20description,\x20goal.')})['strict'](),z['object']({'action':z['literal']('apply'),'context':z['string']()['describe']('Free-form\x20context\x20whose\x20extracted\x20signals\x20feed\x20the\x20CURRENT\x20layer.'),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'mode':z['enum'](['merge','replace'])['optional']()['describe']('merge\x20(default)\x20unions\x20strategy/rules/requirements\x20into\x20current;\x20replace\x20discards\x20the\x20existing\x20current\x20layer.')})['strict'](),z['object']({'action':z['literal']('sync'),'account':z['string']()['optional']()['describe']('Account\x20whose\x20behavior\x20(experience\x20layer)\x20is\x20merged\x20into\x20its\x20CURRENT\x20layer.\x20Omit\x20=\x20system\x20persona.')})['strict'](),z['object']({'action':z['literal']('apply_delta'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'delta':PersonaLayerSchema['describe']('Structured\x20CURRENT-layer\x20delta\x20to\x20merge\x20(e.g.\x20a\x20confirmed\x20strategy-review\x20proposal).\x20'+'Server-guarded:\x20policy/overrides\x20are\x20rejected;\x20long_term\x20is\x20never\x20written;\x20arrays\x20union\x20with\x20existing\x20current\x20values.')})['strict'](),z['object']({'action':z['literal']('remove'),'scope':ScopeEnum,'account':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('strategy'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'role':RoleEnum['optional']()['describe']('Role\x20override;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20role.'),'strategy':z['array'](z['string']())['optional']()['describe']('Explicit\x20strategy\x20statements;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20strategy[].')})['strict'](),z['object']({'action':z['literal']('region_hint'),'propose':z['string']()['optional']()['describe']('An\x20address\x20string\x20to\x20PROPOSE\x20storing\x20as\x20the\x20local\x20delivery\x20address.\x20Returns\x20a\x20consent-gated\x20save\x20proposal\x20—\x20NEVER\x20auto-writes;\x20the\x20user\x20must\x20confirm\x20via\x20local_info_operation.')})['strict'](),z['object']({'action':z['literal']('distill'),'goal_id':z['string']()['describe']('Goal\x20id\x20(goal_…)\x20whose\x20memory\x20(outcome,\x20problems,\x20feedback,\x20objects)\x20is\x20distilled\x20into\x20a\x20CURRENT-layer\x20proposal.'),'network':z['enum'](['mainnet','testnet'])['optional']()['describe']('Network\x20the\x20goal\x20was\x20created\x20under.')})['strict']()]);export const PersonaOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'target_account':z['string']()['optional']()['describe']('The\x20account\x20the\x20persona\x20was\x20resolved\x20for\x20(explicit\x20account,\x20or\x20the\x20on-chain\x20default\x20account\x20when\x20omitted).'),'effective':EffectivePersonaSchema,'analyze_questions':z['array'](z['string']())['optional']()['describe']('Analyze-flow\x20defaults\x20(client\x20address\x20popover\x20\x22Analyze\x22\x20→\x20AI\x20dossier):\x20the\x20user\x27s\x20effective\x20key\x20follow-up\x20questions,\x20capped\x20at\x202\x20(higher-priority\x20persona\x20layer\x20first).\x20When\x20present,\x20these\x20REPLACE\x20the\x20generic\x20Analyze\x20follow-up\x20guidance.\x20Sourced\x20from\x20persona\x20layers\x27\x20analyze.key_questions;\x20industry\x20needs\x20still\x20provide\x20thematic\x20context.'),'context_text':z['string'](),'injection':z['record'](z['string'](),z['unknown']()),'controls':PersonaControlsSchema['optional']()['describe']('Static\x20catalog\x20of\x20editable\x20safety\x20controls:\x20overridable\x20rule\x20ids\x20(defaults/allowed),\x20hard-floor\x20locked\x20rules,\x20confirm\x20modes,\x20and\x20policy\x20key\x20paths.')})['strict'](),z['object']({'action':z['literal']('list'),'personas':z['array'](PersonaSchema),'defaults':z['array'](PersonaSchema)})['strict'](),z['object']({'action':z['literal']('set'),'persona':PersonaSchema,'line_count':z['number']()})['strict'](),z['object']({'action':z['literal']('analyze'),'analysis':PersonaAnalysisSchema})['strict'](),z['object']({'action':z['literal']('apply'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':z['array'](PersonaAnalysisSuggestionSchema)})['strict'](),z['object']({'action':z['literal']('sync'),'persona':PersonaSchema,'applied':PersonaLayerSchema,'effective':EffectivePersonaSchema})['strict'](),z['object']({'action':z['literal']('apply_delta'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':PersonaLayerSchema})['strict'](),z['object']({'action':z['literal']('remove'),'removed':z['boolean']()})['strict'](),z['object']({'action':z['literal']('strategy'),'role':RoleEnum,'intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']()),'suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string'](),'target':z['string']()})['strict']()),'note':z['string']()['describe']('Empty\x20for\x20merchant;\x20explains\x20why\x20mapping\x20is\x20producer-only\x20for\x20other\x20roles.')})['strict'](),z['object']({'action':z['literal']('region_hint'),'hint':z['object']({'region':z['record'](z['string'](),z['unknown']())['describe']('Deterministic\x20region\x20skeleton\x20(mode/raw;\x20country/province/city\x20stay\x20AI-enriched).'),'source':z['literal']('local_info'),'raw':z['string']()})['strict']()['optional']()['describe']('Present\x20when\x20a\x20locally-stored\x20delivery\x20address\x20exists.'),'proposal':z['object']({'requires_user_consent':z['literal'](!![]),'raw':z['string'](),'region':z['record'](z['string'](),z['unknown']()),'review':z['string'](),'store_via':z['literal']('local_info_operation'),'info':z['object']({'name':z['string'](),'default':z['string']()})['strict']()})['strict']()['optional']()['describe']('Present\x20when\x20`propose`\x20was\x20given\x20—\x20a\x20consent-gated\x20save\x20proposal\x20(never\x20auto-written).'),'note':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('distill'),'summary':z['string']()['describe']('Human-readable\x20distillation\x20of\x20what\x20the\x20goal\x27s\x20memory\x20shows.'),'current_delta':PersonaLayerSchema['describe']('PROPOSED\x20current-layer\x20delta\x20(rules/preferences).\x20Never\x20auto-written.'),'evidence':z['object']({'goal_type':z['string'](),'stage':z['string'](),'outcome_success':z['boolean']()['optional'](),'objects_count':z['number'](),'problems_open':z['number'](),'problems_resolved':z['number'](),'feedback_positive':z['number'](),'feedback_negative':z['number'](),'duration_days':z['number']()['optional']()})['strict'](),'apply_via':z['string']()['describe']('The\x20exact\x20user-driven\x20write\x20path\x20(persona_operation\x20set/apply)\x20that\x20persists\x20the\x20delta\x20after\x20user\x20confirmation.'),'goal':GoalSummarySchema['describe']('The\x20distilled\x20goal\x27s\x20id/title/outcome\x20for\x20display.')})['strict']()]);
@@ -8,6 +8,20 @@ export declare const ServicePanoramaQuerySchema: z.ZodObject<{
8
8
  localnet: "localnet";
9
9
  }>>;
10
10
  }, z.core.$strict>;
11
+ export declare const ServiceQuoteQuerySchema: z.ZodObject<{
12
+ query_type: z.ZodLiteral<"service_quote">;
13
+ service_address: z.ZodString;
14
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
15
+ name: z.ZodString;
16
+ quantity: z.ZodDefault<z.ZodNumber>;
17
+ }, z.core.$strip>>>;
18
+ discount: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
19
+ context_network: z.ZodOptional<z.ZodEnum<{
20
+ testnet: "testnet";
21
+ mainnet: "mainnet";
22
+ localnet: "localnet";
23
+ }>>;
24
+ }, z.core.$strict>;
11
25
  export declare const MachinePanoramaQuerySchema: z.ZodObject<{
12
26
  query_type: z.ZodLiteral<"machine_panorama">;
13
27
  object_address: z.ZodOptional<z.ZodString>;
@@ -85,12 +99,12 @@ export declare const RelationshipProfileQuerySchema: z.ZodObject<{
85
99
  radar_account: z.ZodOptional<z.ZodString>;
86
100
  relation_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
87
101
  transaction: "transaction";
102
+ dispute_resolution: "dispute_resolution";
88
103
  employment: "employment";
89
104
  process_operation: "process_operation";
90
105
  agency: "agency";
91
106
  supply: "supply";
92
107
  arbitration_delegation: "arbitration_delegation";
93
- dispute_resolution: "dispute_resolution";
94
108
  value_distribution: "value_distribution";
95
109
  contact_membership: "contact_membership";
96
110
  }>>>;
@@ -154,9 +168,9 @@ export declare const OnchainTopologyQuerySchema: z.ZodObject<{
154
168
  reputation: "reputation";
155
169
  permission: "permission";
156
170
  arbitration: "arbitration";
157
- workflow: "workflow";
158
171
  full_map: "full_map";
159
172
  order_health: "order_health";
173
+ workflow: "workflow";
160
174
  counterparty: "counterparty";
161
175
  supply_chain: "supply_chain";
162
176
  demand_match: "demand_match";
@@ -200,9 +214,9 @@ export declare const OnchainTopologyQuerySchema: z.ZodObject<{
200
214
  only_analyzers: z.ZodOptional<z.ZodArray<z.ZodString>>;
201
215
  include_raw: z.ZodOptional<z.ZodBoolean>;
202
216
  table_edges: z.ZodOptional<z.ZodArray<z.ZodEnum<{
203
- "machine.node": "machine.node";
204
217
  "permission.entity": "permission.entity";
205
218
  "demand.presenter": "demand.presenter";
219
+ "machine.node": "machine.node";
206
220
  }>>>;
207
221
  event_edges: z.ZodOptional<z.ZodArray<z.ZodEnum<{
208
222
  "service.order_history": "service.order_history";
@@ -225,6 +239,19 @@ export declare const BI_QUERY_OPERATIONS: readonly [z.ZodObject<{
225
239
  mainnet: "mainnet";
226
240
  localnet: "localnet";
227
241
  }>>;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ query_type: z.ZodLiteral<"service_quote">;
244
+ service_address: z.ZodString;
245
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
246
+ name: z.ZodString;
247
+ quantity: z.ZodDefault<z.ZodNumber>;
248
+ }, z.core.$strip>>>;
249
+ discount: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
250
+ context_network: z.ZodOptional<z.ZodEnum<{
251
+ testnet: "testnet";
252
+ mainnet: "mainnet";
253
+ localnet: "localnet";
254
+ }>>;
228
255
  }, z.core.$strict>, z.ZodObject<{
229
256
  query_type: z.ZodLiteral<"machine_panorama">;
230
257
  object_address: z.ZodOptional<z.ZodString>;
@@ -296,12 +323,12 @@ export declare const BI_QUERY_OPERATIONS: readonly [z.ZodObject<{
296
323
  radar_account: z.ZodOptional<z.ZodString>;
297
324
  relation_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
298
325
  transaction: "transaction";
326
+ dispute_resolution: "dispute_resolution";
299
327
  employment: "employment";
300
328
  process_operation: "process_operation";
301
329
  agency: "agency";
302
330
  supply: "supply";
303
331
  arbitration_delegation: "arbitration_delegation";
304
- dispute_resolution: "dispute_resolution";
305
332
  value_distribution: "value_distribution";
306
333
  contact_membership: "contact_membership";
307
334
  }>>>;
@@ -360,9 +387,9 @@ export declare const BI_QUERY_OPERATIONS: readonly [z.ZodObject<{
360
387
  reputation: "reputation";
361
388
  permission: "permission";
362
389
  arbitration: "arbitration";
363
- workflow: "workflow";
364
390
  full_map: "full_map";
365
391
  order_health: "order_health";
392
+ workflow: "workflow";
366
393
  counterparty: "counterparty";
367
394
  supply_chain: "supply_chain";
368
395
  demand_match: "demand_match";
@@ -406,9 +433,9 @@ export declare const BI_QUERY_OPERATIONS: readonly [z.ZodObject<{
406
433
  only_analyzers: z.ZodOptional<z.ZodArray<z.ZodString>>;
407
434
  include_raw: z.ZodOptional<z.ZodBoolean>;
408
435
  table_edges: z.ZodOptional<z.ZodArray<z.ZodEnum<{
409
- "machine.node": "machine.node";
410
436
  "permission.entity": "permission.entity";
411
437
  "demand.presenter": "demand.presenter";
438
+ "machine.node": "machine.node";
412
439
  }>>>;
413
440
  event_edges: z.ZodOptional<z.ZodArray<z.ZodEnum<{
414
441
  "service.order_history": "service.order_history";
@@ -486,10 +513,13 @@ export declare const ParticipationRadarResultSchema: z.ZodObject<{
486
513
  perspective: z.ZodEnum<{
487
514
  merchant: "merchant";
488
515
  customer: "customer";
516
+ demander: "demander";
489
517
  prospect: "prospect";
490
518
  supplier: "supplier";
491
519
  collaborator: "collaborator";
492
520
  arbitrator: "arbitrator";
521
+ neutral: "neutral";
522
+ system: "system";
493
523
  }>;
494
524
  collaborator_kind: z.ZodOptional<z.ZodEnum<{
495
525
  named_operator: "named_operator";
@@ -556,6 +586,13 @@ export declare const ParticipationRadarResultSchema: z.ZodObject<{
556
586
  summary: z.ZodString;
557
587
  }, z.core.$strict>>;
558
588
  summary: z.ZodString;
589
+ fund_advice: z.ZodOptional<z.ZodObject<{
590
+ pool: z.ZodOptional<z.ZodString>;
591
+ funded: z.ZodOptional<z.ZodBoolean>;
592
+ settled: z.ZodOptional<z.ZodBoolean>;
593
+ decision_advice: z.ZodArray<z.ZodString>;
594
+ risk_notes: z.ZodArray<z.ZodString>;
595
+ }, z.core.$strict>>;
559
596
  attached_alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
560
597
  id: z.ZodString;
561
598
  category: z.ZodEnum<{
@@ -597,10 +634,13 @@ export declare const ParticipationRadarResultSchema: z.ZodObject<{
597
634
  perspective: z.ZodEnum<{
598
635
  merchant: "merchant";
599
636
  customer: "customer";
637
+ demander: "demander";
600
638
  prospect: "prospect";
601
639
  supplier: "supplier";
602
640
  collaborator: "collaborator";
603
641
  arbitrator: "arbitrator";
642
+ neutral: "neutral";
643
+ system: "system";
604
644
  }>;
605
645
  collaborator_kind: z.ZodOptional<z.ZodEnum<{
606
646
  named_operator: "named_operator";
@@ -667,6 +707,13 @@ export declare const ParticipationRadarResultSchema: z.ZodObject<{
667
707
  summary: z.ZodString;
668
708
  }, z.core.$strict>>;
669
709
  summary: z.ZodString;
710
+ fund_advice: z.ZodOptional<z.ZodObject<{
711
+ pool: z.ZodOptional<z.ZodString>;
712
+ funded: z.ZodOptional<z.ZodBoolean>;
713
+ settled: z.ZodOptional<z.ZodBoolean>;
714
+ decision_advice: z.ZodArray<z.ZodString>;
715
+ risk_notes: z.ZodArray<z.ZodString>;
716
+ }, z.core.$strict>>;
670
717
  attached_alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
671
718
  id: z.ZodString;
672
719
  category: z.ZodEnum<{
@@ -1223,8 +1270,8 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
1223
1270
  role: z.ZodString;
1224
1271
  path: z.ZodString;
1225
1272
  viability: z.ZodEnum<{
1226
- conditional: "conditional";
1227
1273
  viable: "viable";
1274
+ conditional: "conditional";
1228
1275
  blocked: "blocked";
1229
1276
  unverifiable: "unverifiable";
1230
1277
  }>;
@@ -1340,6 +1387,13 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
1340
1387
  risk_finding_ids: z.ZodArray<z.ZodString>;
1341
1388
  summary: z.ZodString;
1342
1389
  }, z.core.$strict>>;
1390
+ ruleId: z.ZodOptional<z.ZodString>;
1391
+ evidence: z.ZodOptional<z.ZodString>;
1392
+ source: z.ZodOptional<z.ZodEnum<{
1393
+ external: "external";
1394
+ onchain: "onchain";
1395
+ proposal: "proposal";
1396
+ }>>;
1343
1397
  }, z.core.$strict>>;
1344
1398
  evaluation: z.ZodOptional<z.ZodObject<{
1345
1399
  target: z.ZodString;
@@ -1694,9 +1748,79 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
1694
1748
  }, z.core.$strict>>;
1695
1749
  summary: z.ZodString;
1696
1750
  }, z.core.$strict>;
1751
+ export declare const ServiceQuoteResultSchema: z.ZodObject<{
1752
+ action: z.ZodLiteral<"service_quote">;
1753
+ network: z.ZodString;
1754
+ service: z.ZodObject<{
1755
+ address: z.ZodString;
1756
+ name: z.ZodNullable<z.ZodString>;
1757
+ }, z.core.$strip>;
1758
+ payment_token: z.ZodObject<{
1759
+ coin_type: z.ZodNullable<z.ZodString>;
1760
+ display_note: z.ZodString;
1761
+ }, z.core.$strip>;
1762
+ items: z.ZodArray<z.ZodObject<{
1763
+ name: z.ZodString;
1764
+ quantity: z.ZodNumber;
1765
+ unit_price: z.ZodString;
1766
+ unit_price_display: z.ZodString;
1767
+ line_total: z.ZodString;
1768
+ suspended: z.ZodBoolean;
1769
+ }, z.core.$strip>>;
1770
+ total_pay: z.ZodObject<{
1771
+ balance: z.ZodString;
1772
+ display: z.ZodString;
1773
+ note: z.ZodString;
1774
+ }, z.core.$strip>;
1775
+ allocation_preview: z.ZodNullable<z.ZodObject<{
1776
+ allocator_index: z.ZodNumber;
1777
+ note: z.ZodString;
1778
+ sharing: z.ZodArray<z.ZodObject<{
1779
+ recipient: z.ZodString;
1780
+ mode: z.ZodNullable<z.ZodString>;
1781
+ value: z.ZodString;
1782
+ }, z.core.$strip>>;
1783
+ }, z.core.$strip>>;
1784
+ }, z.core.$strict>;
1697
1785
  export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
1698
1786
  query_type: z.ZodLiteral<"service_panorama">;
1699
1787
  result: z.ZodUnknown;
1788
+ }, z.core.$strip>, z.ZodObject<{
1789
+ query_type: z.ZodLiteral<"service_quote">;
1790
+ result: z.ZodObject<{
1791
+ action: z.ZodLiteral<"service_quote">;
1792
+ network: z.ZodString;
1793
+ service: z.ZodObject<{
1794
+ address: z.ZodString;
1795
+ name: z.ZodNullable<z.ZodString>;
1796
+ }, z.core.$strip>;
1797
+ payment_token: z.ZodObject<{
1798
+ coin_type: z.ZodNullable<z.ZodString>;
1799
+ display_note: z.ZodString;
1800
+ }, z.core.$strip>;
1801
+ items: z.ZodArray<z.ZodObject<{
1802
+ name: z.ZodString;
1803
+ quantity: z.ZodNumber;
1804
+ unit_price: z.ZodString;
1805
+ unit_price_display: z.ZodString;
1806
+ line_total: z.ZodString;
1807
+ suspended: z.ZodBoolean;
1808
+ }, z.core.$strip>>;
1809
+ total_pay: z.ZodObject<{
1810
+ balance: z.ZodString;
1811
+ display: z.ZodString;
1812
+ note: z.ZodString;
1813
+ }, z.core.$strip>;
1814
+ allocation_preview: z.ZodNullable<z.ZodObject<{
1815
+ allocator_index: z.ZodNumber;
1816
+ note: z.ZodString;
1817
+ sharing: z.ZodArray<z.ZodObject<{
1818
+ recipient: z.ZodString;
1819
+ mode: z.ZodNullable<z.ZodString>;
1820
+ value: z.ZodString;
1821
+ }, z.core.$strip>>;
1822
+ }, z.core.$strip>>;
1823
+ }, z.core.$strict>;
1700
1824
  }, z.core.$strip>, z.ZodObject<{
1701
1825
  query_type: z.ZodLiteral<"machine_panorama">;
1702
1826
  result: z.ZodUnknown;
@@ -1775,10 +1899,13 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
1775
1899
  perspective: z.ZodEnum<{
1776
1900
  merchant: "merchant";
1777
1901
  customer: "customer";
1902
+ demander: "demander";
1778
1903
  prospect: "prospect";
1779
1904
  supplier: "supplier";
1780
1905
  collaborator: "collaborator";
1781
1906
  arbitrator: "arbitrator";
1907
+ neutral: "neutral";
1908
+ system: "system";
1782
1909
  }>;
1783
1910
  collaborator_kind: z.ZodOptional<z.ZodEnum<{
1784
1911
  named_operator: "named_operator";
@@ -1845,6 +1972,13 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
1845
1972
  summary: z.ZodString;
1846
1973
  }, z.core.$strict>>;
1847
1974
  summary: z.ZodString;
1975
+ fund_advice: z.ZodOptional<z.ZodObject<{
1976
+ pool: z.ZodOptional<z.ZodString>;
1977
+ funded: z.ZodOptional<z.ZodBoolean>;
1978
+ settled: z.ZodOptional<z.ZodBoolean>;
1979
+ decision_advice: z.ZodArray<z.ZodString>;
1980
+ risk_notes: z.ZodArray<z.ZodString>;
1981
+ }, z.core.$strict>>;
1848
1982
  attached_alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1849
1983
  id: z.ZodString;
1850
1984
  category: z.ZodEnum<{
@@ -1886,10 +2020,13 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
1886
2020
  perspective: z.ZodEnum<{
1887
2021
  merchant: "merchant";
1888
2022
  customer: "customer";
2023
+ demander: "demander";
1889
2024
  prospect: "prospect";
1890
2025
  supplier: "supplier";
1891
2026
  collaborator: "collaborator";
1892
2027
  arbitrator: "arbitrator";
2028
+ neutral: "neutral";
2029
+ system: "system";
1893
2030
  }>;
1894
2031
  collaborator_kind: z.ZodOptional<z.ZodEnum<{
1895
2032
  named_operator: "named_operator";
@@ -1956,6 +2093,13 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
1956
2093
  summary: z.ZodString;
1957
2094
  }, z.core.$strict>>;
1958
2095
  summary: z.ZodString;
2096
+ fund_advice: z.ZodOptional<z.ZodObject<{
2097
+ pool: z.ZodOptional<z.ZodString>;
2098
+ funded: z.ZodOptional<z.ZodBoolean>;
2099
+ settled: z.ZodOptional<z.ZodBoolean>;
2100
+ decision_advice: z.ZodArray<z.ZodString>;
2101
+ risk_notes: z.ZodArray<z.ZodString>;
2102
+ }, z.core.$strict>>;
1959
2103
  attached_alerts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1960
2104
  id: z.ZodString;
1961
2105
  category: z.ZodEnum<{
@@ -2294,8 +2438,8 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
2294
2438
  role: z.ZodString;
2295
2439
  path: z.ZodString;
2296
2440
  viability: z.ZodEnum<{
2297
- conditional: "conditional";
2298
2441
  viable: "viable";
2442
+ conditional: "conditional";
2299
2443
  blocked: "blocked";
2300
2444
  unverifiable: "unverifiable";
2301
2445
  }>;
@@ -2411,6 +2555,13 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
2411
2555
  risk_finding_ids: z.ZodArray<z.ZodString>;
2412
2556
  summary: z.ZodString;
2413
2557
  }, z.core.$strict>>;
2558
+ ruleId: z.ZodOptional<z.ZodString>;
2559
+ evidence: z.ZodOptional<z.ZodString>;
2560
+ source: z.ZodOptional<z.ZodEnum<{
2561
+ external: "external";
2562
+ onchain: "onchain";
2563
+ proposal: "proposal";
2564
+ }>>;
2414
2565
  }, z.core.$strict>>;
2415
2566
  evaluation: z.ZodOptional<z.ZodObject<{
2416
2567
  target: z.ZodString;
@@ -2767,6 +2918,8 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
2767
2918
  }, z.core.$strict>;
2768
2919
  }, z.core.$strip>];
2769
2920
  export type ServicePanoramaInput = z.infer<typeof ServicePanoramaQuerySchema>;
2921
+ export type ServiceQuoteInput = z.infer<typeof ServiceQuoteQuerySchema>;
2922
+ export type ServiceQuoteResult = z.infer<typeof ServiceQuoteResultSchema>;
2770
2923
  export type MachinePanoramaInput = z.infer<typeof MachinePanoramaQuerySchema>;
2771
2924
  export type ObjectPanoramaInput = z.infer<typeof ObjectPanoramaQuerySchema>;
2772
2925
  export type ReviewPackInput = z.infer<typeof ReviewPackQuerySchema>;