@wowok/agent-mcp 3.3.6 → 3.3.8

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 (220) hide show
  1. package/dist/chain-semantics/eval-order.js +1 -1
  2. package/dist/chain-semantics/field-capability.js +1 -1
  3. package/dist/chain-semantics/fund-flow.js +1 -1
  4. package/dist/chain-semantics/guard-verbs.js +1 -1
  5. package/dist/chain-semantics/object-graph.js +1 -1
  6. package/dist/communication/message-cursors.d.ts +35 -0
  7. package/dist/communication/message-cursors.js +1 -0
  8. package/dist/communication/wts-attestation.d.ts +5 -0
  9. package/dist/communication/wts-attestation.js +1 -1
  10. package/dist/composition/audit.js +1 -1
  11. package/dist/composition/compile.d.ts +3 -2
  12. package/dist/composition/compile.js +1 -1
  13. package/dist/composition/inflight.d.ts +7 -0
  14. package/dist/composition/inflight.js +1 -1
  15. package/dist/composition/materialize.d.ts +4 -1
  16. package/dist/composition/materialize.js +1 -1
  17. package/dist/config/index.d.ts +1 -0
  18. package/dist/config/index.js +1 -1
  19. package/dist/config/store-policy.d.ts +14 -0
  20. package/dist/config/store-policy.js +1 -0
  21. package/dist/config/store-policy.spec.d.ts +1 -0
  22. package/dist/config/store-policy.spec.js +1 -0
  23. package/dist/customer/industry-risks.js +1 -1
  24. package/dist/customer/user-preferences.js +1 -1
  25. package/dist/data/projection/facets.spec.js +1 -1
  26. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  27. package/dist/evaluation/engine.js +1 -1
  28. package/dist/evaluation/match-policy.d.ts +30 -6
  29. package/dist/evaluation/match-policy.js +1 -1
  30. package/dist/evaluation/match-policy.spec.js +1 -1
  31. package/dist/experience/realtime-feedback.js +1 -1
  32. package/dist/extensions/business-modules.d.ts +1 -1
  33. package/dist/extensions/business-modules.js +1 -1
  34. package/dist/extensions/industry-pack.js +1 -1
  35. package/dist/extensions/modes.js +1 -1
  36. package/dist/graph/onchain/analyze.js +1 -1
  37. package/dist/graph/onchain/expand.js +1 -1
  38. package/dist/graph/onchain/exposure.js +1 -1
  39. package/dist/graph/onchain/facts.d.ts +1 -0
  40. package/dist/graph/onchain/facts.js +1 -1
  41. package/dist/graph/onchain/facts.spec.js +1 -1
  42. package/dist/harness/recover.js +1 -1
  43. package/dist/intent/types.d.ts +1 -1
  44. package/dist/intent/types.js +1 -1
  45. package/dist/keeper/detectors.d.ts +3 -0
  46. package/dist/keeper/detectors.js +1 -1
  47. package/dist/keeper/keeper.spec.js +1 -1
  48. package/dist/knowledge/acquisition-flywheel.js +1 -1
  49. package/dist/knowledge/allocation-ledger.d.ts +1 -0
  50. package/dist/knowledge/allocation-ledger.js +1 -1
  51. package/dist/knowledge/allocator-rail-verifier.d.ts +6 -2
  52. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  53. package/dist/knowledge/arbitration-ledger.js +1 -1
  54. package/dist/knowledge/audit-rules.d.ts +37 -0
  55. package/dist/knowledge/audit-rules.js +1 -1
  56. package/dist/knowledge/baselines/rules/plan.json +128 -3
  57. package/dist/knowledge/builtin-templates.d.ts +18 -1
  58. package/dist/knowledge/builtin-templates.js +1 -1
  59. package/dist/knowledge/commission-landing.d.ts +26 -0
  60. package/dist/knowledge/commission-landing.js +1 -0
  61. package/dist/knowledge/discount-threshold.js +1 -1
  62. package/dist/knowledge/event-semantics.js +1 -1
  63. package/dist/knowledge/fund-layer.d.ts +7 -0
  64. package/dist/knowledge/fund-layer.js +1 -1
  65. package/dist/knowledge/getting-started.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-puzzle.js +1 -1
  69. package/dist/knowledge/guard-render.d.ts +7 -0
  70. package/dist/knowledge/guard-render.js +1 -1
  71. package/dist/knowledge/guard-risk.js +1 -1
  72. package/dist/knowledge/guard-templates.d.ts +1 -1
  73. package/dist/knowledge/guard-templates.js +1 -1
  74. package/dist/knowledge/guard-translation.js +1 -1
  75. package/dist/knowledge/index.js +1 -1
  76. package/dist/knowledge/industry-generalizer.d.ts +4 -0
  77. package/dist/knowledge/industry-generalizer.js +1 -1
  78. package/dist/knowledge/industry-registry.d.ts +1 -1
  79. package/dist/knowledge/industry-registry.js +1 -1
  80. package/dist/knowledge/industry-strategy.js +1 -1
  81. package/dist/knowledge/jsonrpc-enum.js +1 -1
  82. package/dist/knowledge/machine-fork-watch.d.ts +9 -0
  83. package/dist/knowledge/machine-fork-watch.js +1 -0
  84. package/dist/knowledge/migration-preflight.js +1 -1
  85. package/dist/knowledge/projection.spec.js +1 -1
  86. package/dist/knowledge/scenario-modes.d.ts +8 -2
  87. package/dist/knowledge/scenario-modes.js +1 -1
  88. package/dist/knowledge/semantic-ir.d.ts +132 -0
  89. package/dist/knowledge/semantic-ir.js +1 -0
  90. package/dist/knowledge/service-ledger.js +1 -1
  91. package/dist/knowledge/strategy-manuals.js +1 -1
  92. package/dist/knowledge/template-index.js +1 -1
  93. package/dist/knowledge/template-loader.d.ts +45 -0
  94. package/dist/knowledge/template-loader.js +1 -1
  95. package/dist/knowledge/template-prose.d.ts +50 -0
  96. package/dist/knowledge/template-prose.js +1 -0
  97. package/dist/knowledge/template-registry.js +1 -1
  98. package/dist/knowledge/template-scanner.d.ts +5 -3
  99. package/dist/knowledge/template-scanner.js +1 -1
  100. package/dist/knowledge/template-validation.js +1 -1
  101. package/dist/knowledge/tools-reference.js +1 -1
  102. package/dist/monitor/MonitorLoop.js +1 -1
  103. package/dist/monitor/normalize.d.ts +1 -1
  104. package/dist/monitor/normalize.js +1 -1
  105. package/dist/monitor/types.js +1 -1
  106. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  107. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  108. package/dist/playbooks/service-build/merchant-guide.d.ts +16 -6
  109. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  110. package/dist/playbooks/service-build/migration-planner.d.ts +11 -2
  111. package/dist/playbooks/service-build/migration-planner.js +1 -1
  112. package/dist/playbooks/service-build/mode-actions.d.ts +8 -0
  113. package/dist/playbooks/service-build/mode-actions.js +1 -1
  114. package/dist/playbooks/service-build/object-panorama.d.ts +22 -1
  115. package/dist/playbooks/service-build/object-panorama.js +1 -1
  116. package/dist/playbooks/service-build/participation-radar.js +1 -1
  117. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  118. package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +1 -1
  119. package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
  120. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  121. package/dist/playbooks/service-build/service-panorama.js +1 -1
  122. package/dist/playbooks/service-build/service-quote.js +1 -1
  123. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  124. package/dist/review/index.js +1 -1
  125. package/dist/safety/confirm-gate.js +1 -1
  126. package/dist/schema/benchmark-migration/index.d.ts +135 -10
  127. package/dist/schema/benchmark-migration/index.js +1 -1
  128. package/dist/schema/call/allocation.d.ts +3 -0
  129. package/dist/schema/call/allocation.js +1 -1
  130. package/dist/schema/call/arbitration.js +1 -1
  131. package/dist/schema/call/base.d.ts +32 -0
  132. package/dist/schema/call/bridge.d.ts +8 -0
  133. package/dist/schema/call/error-codes.d.ts +1 -1
  134. package/dist/schema/call/error-codes.js +1 -1
  135. package/dist/schema/call/order.js +1 -1
  136. package/dist/schema/call/reward.d.ts +10 -0
  137. package/dist/schema/call/reward.js +1 -1
  138. package/dist/schema/call/semantic.js +1 -1
  139. package/dist/schema/call/service.js +1 -1
  140. package/dist/schema/common/index.js +1 -1
  141. package/dist/schema/config/index.d.ts +24 -0
  142. package/dist/schema/config/index.js +1 -1
  143. package/dist/schema/evaluation/index.d.ts +152 -0
  144. package/dist/schema/evaluation/index.js +1 -1
  145. package/dist/schema/goal/index.d.ts +16 -0
  146. package/dist/schema/goal/planning.d.ts +29 -0
  147. package/dist/schema/goal/planning.js +1 -1
  148. package/dist/schema/industry-pack/index.d.ts +70 -0
  149. package/dist/schema/industry-pack/modes.d.ts +70 -0
  150. package/dist/schema/industry-pack/modes.js +1 -1
  151. package/dist/schema/intent-radar/index.d.ts +3 -0
  152. package/dist/schema/intent-radar/index.js +1 -1
  153. package/dist/schema/local/index.d.ts +80 -0
  154. package/dist/schema/local/index.js +1 -1
  155. package/dist/schema/messenger/index.d.ts +278 -1
  156. package/dist/schema/messenger/index.js +1 -1
  157. package/dist/schema/operations.d.ts +6 -0
  158. package/dist/schema/query/bi.d.ts +38 -0
  159. package/dist/schema/query/bi.js +1 -1
  160. package/dist/schema/query/index.d.ts +148 -47
  161. package/dist/schema/query/index.js +1 -1
  162. package/dist/schema/schema-version.js +1 -1
  163. package/dist/schema/service-clone/index.d.ts +17 -0
  164. package/dist/schema/service-clone/index.js +1 -1
  165. package/dist/schema-query-impl/index.js +1 -1
  166. package/dist/schemas/account_operation.output.json +8 -0
  167. package/dist/schemas/benchmark_migration_operation.output.json +296 -2
  168. package/dist/schemas/benchmark_migration_operation.schema.json +292 -7
  169. package/dist/schemas/bridge_operation.output.json +8 -0
  170. package/dist/schemas/config_operation.output.json +95 -0
  171. package/dist/schemas/config_operation.schema.json +16 -1
  172. package/dist/schemas/evaluation_operation.output.json +240 -0
  173. package/dist/schemas/evaluation_operation.schema.json +397 -1
  174. package/dist/schemas/goal_operation.schema.json +40 -10
  175. package/dist/schemas/index.json +1 -1
  176. package/dist/schemas/industry_pack_operation.output.json +90 -2
  177. package/dist/schemas/industry_pack_operation.schema.json +236 -0
  178. package/dist/schemas/intent_radar.output.json +2 -0
  179. package/dist/schemas/intent_radar.schema.json +1 -0
  180. package/dist/schemas/local_cache_operation.output.json +8 -0
  181. package/dist/schemas/local_history_operation.output.json +8 -0
  182. package/dist/schemas/local_info_operation.output.json +8 -0
  183. package/dist/schemas/local_mark_operation.output.json +8 -0
  184. package/dist/schemas/messenger_operation.output.json +609 -1
  185. package/dist/schemas/messenger_operation.schema.json +96 -1
  186. package/dist/schemas/onchain_events.output.json +281 -11
  187. package/dist/schemas/onchain_events.schema.json +5 -1
  188. package/dist/schemas/onchain_operations.output.json +8 -0
  189. package/dist/schemas/onchain_operations.schema.json +371 -10
  190. package/dist/schemas/onchain_operations_allocation.schema.json +10 -1
  191. package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
  192. package/dist/schemas/onchain_operations_guard.schema.json +318 -0
  193. package/dist/schemas/onchain_operations_order.schema.json +1 -1
  194. package/dist/schemas/onchain_operations_reward.schema.json +35 -1
  195. package/dist/schemas/onchain_operations_service.schema.json +6 -6
  196. package/dist/schemas/query_toolkit.output.json +305 -8
  197. package/dist/schemas/service_clone_operation.output.json +79 -0
  198. package/dist/tools/handlers/benchmark-migration.d.ts +15 -0
  199. package/dist/tools/handlers/benchmark-migration.js +1 -1
  200. package/dist/tools/handlers/config.js +1 -1
  201. package/dist/tools/handlers/evaluation.js +1 -1
  202. package/dist/tools/handlers/evaluation.spec.js +1 -1
  203. package/dist/tools/handlers/intent-radar.js +1 -1
  204. package/dist/tools/handlers/messenger.d.ts +1 -0
  205. package/dist/tools/handlers/messenger.js +1 -1
  206. package/dist/tools/handlers/onchain.d.ts +20 -1
  207. package/dist/tools/handlers/onchain.js +1 -1
  208. package/dist/tools/handlers/query.d.ts +1 -0
  209. package/dist/tools/handlers/query.js +1 -1
  210. package/dist/tools/handlers/service-clone.d.ts +18 -0
  211. package/dist/tools/handlers/service-clone.js +1 -1
  212. package/dist/tools/handlers/wip.js +1 -1
  213. package/dist/tools/registry/agent.js +1 -1
  214. package/dist/tools/registry/business.js +1 -1
  215. package/dist/tools/registry/query.js +1 -1
  216. package/dist/tools/wip-verify-ledger.d.ts +14 -0
  217. package/dist/tools/wip-verify-ledger.js +1 -0
  218. package/dist/tools/wrap.d.ts +4 -0
  219. package/dist/tools/wrap.js +1 -1
  220. package/package.json +2 -2
@@ -1 +1 @@
1
- import{z}from'zod';export const ConfigOperationInputSchema=z['object']({'action':z['enum'](['list','toggle','enable','disable','reset','info','judgment_list','judgment_set','judgment_reset','judgment_doc_read','judgment_doc_patch'])['describe']('Config\x20action\x20to\x20perform'),'service':z['string']()['optional']()['describe']('Service\x20name\x20(required\x20for\x20toggle/enable/disable/reset/info)'),'path':z['string']()['optional']()['describe']('Dotted\x20judgment\x20path\x20(required\x20for\x20judgment_set;\x20optional\x20for\x20judgment_reset),\x20e.g.\x20\x27evaluation.weights.trust_reviews\x27'),'value':z['unknown']()['optional']()['describe']('New\x20JSON\x20value\x20for\x20judgment_set\x20(type\x20must\x20match\x20the\x20existing\x20entry\x20at\x20\x27path\x27)'),'patch':z['record'](z['string'](),z['unknown']())['optional']()['describe']('PARTIAL\x20judgment\x20document\x20to\x20deep-merge\x20into\x20the\x20persistent\x20user\x20judgment\x20document\x20'+'(required\x20for\x20judgment_doc_patch),\x20e.g.\x20{\x22evaluation\x22:\x20{\x22weights\x22:\x20{\x22trust_reviews\x22:\x2045}}}.\x20'+'PERSISTENT\x20write\x20—\x20validated\x20in\x20full\x20before\x20it\x20touches\x20the\x20file;\x20requires\x20user\x20confirmation.')})['strict']();const ServiceReminder=z['string']()['optional']()['describe']('Human-readable\x20note\x20about\x20the\x20service\x27s\x20behavior\x20or\x20side\x20effects.'),ServiceField=z['string']()['describe']('Service\x20name\x20that\x20the\x20action\x20applied\x20to.'),EnabledField=z['boolean']()['describe']('Whether\x20the\x20service\x20is\x20now\x20enabled.');export const ConfigOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('list'),'services':z['array'](z['object']({'name':z['string']()['describe']('Service\x20identifier\x20(e.g.\x20\x27harness\x27,\x20\x27project\x27).'),'enabled':z['boolean']()['describe']('Whether\x20the\x20service\x20is\x20currently\x20enabled.'),'reminder':ServiceReminder}))['describe']('List\x20of\x20all\x20runtime\x20services\x20and\x20their\x20current\x20state.')}),z['object']({'action':z['literal']('toggle'),'service':ServiceField,'enabled':EnabledField,'reminder':ServiceReminder}),z['object']({'action':z['literal']('enable'),'service':ServiceField,'enabled':EnabledField,'reminder':ServiceReminder}),z['object']({'action':z['literal']('disable'),'service':ServiceField,'enabled':EnabledField,'reminder':ServiceReminder}),z['object']({'action':z['literal']('reset'),'service':ServiceField,'enabled':z['boolean']()['optional']()['describe']('Post-reset\x20enabled\x20state\x20(reflects\x20default\x20config).'),'reset':z['literal'](!![])['describe']('Always\x20true\x20—\x20confirms\x20a\x20reset\x20was\x20performed.'),'reminder':ServiceReminder}),z['object']({'action':z['literal']('info'),'service':ServiceField,'enabled':z['boolean']()['optional']()['describe']('Whether\x20the\x20service\x20is\x20currently\x20enabled.'),'reminder':ServiceReminder})['catchall'](z['unknown']()),z['object']({'action':z['literal']('judgment_list'),'version':z['number']()['describe']('Judgment\x20document\x20version.'),'factory_path':z['string']()['describe']('Bundled\x20factory\x20defaults\x20document\x20location.'),'user_path':z['string']()['describe']('User-editable\x20document\x20location\x20—\x20edit\x20THIS\x20file\x20to\x20customize\x20long-term.'),'user_doc_loaded':z['boolean']()['describe']('Whether\x20a\x20user\x20document\x20is\x20currently\x20in\x20force.'),'user_mtime':z['string']()['nullable']()['describe']('Last\x20modification\x20time\x20of\x20the\x20user\x20document\x20(ISO\x208601),\x20null\x20when\x20absent.'),'last_reload_error':z['string']()['nullable']()['describe']('Why\x20the\x20last\x20user-document\x20edit\x20was\x20rejected\x20(null\x20=\x20healthy).\x20The\x20last\x20good\x20document\x20stays\x20in\x20force.'),'user_doc':z['unknown']()['describe']('The\x20in-force\x20user\x20document\x20(null\x20when\x20none\x20yet)\x20—\x20what\x20a\x20patch\x20merges\x20into.'),'sections':z['record'](z['string'](),z['number']())['describe']('Per-section\x20entry\x20counts\x20of\x20the\x20effective\x20document.'),'overrides':z['array'](z['object']({'path':z['string'](),'value':z['unknown']()}))['describe']('Session\x20runtime\x20overrides\x20currently\x20applied\x20(judgment_set).')}),z['object']({'action':z['literal']('judgment_set'),'path':z['string']()['describe']('Dotted\x20path\x20that\x20was\x20overridden.'),'value':z['unknown']()['describe']('Value\x20applied\x20for\x20this\x20session.'),'applied':z['literal'](!![])['describe']('Always\x20true\x20—\x20a\x20rejected\x20override\x20throws\x20instead.')}),z['object']({'action':z['literal']('judgment_reset'),'path':z['string']()['optional']()['describe']('Path\x20cleared,\x20omitted\x20when\x20all\x20overrides\x20were\x20cleared.'),'cleared':z['number']()['describe']('How\x20many\x20overrides\x20were\x20cleared.')}),z['object']({'action':z['literal']('judgment_doc_read'),'user_path':z['string']()['describe']('User\x20document\x20location\x20(the\x20file\x20may\x20not\x20exist\x20yet\x20—\x20saving\x20from\x20the\x20editor\x20creates\x20it).'),'exists':z['boolean']()['describe']('Whether\x20a\x20user\x20document\x20file\x20currently\x20exists.\x20False\x20→\x20`doc`\x20is\x20the\x20factory\x20defaults\x20view.'),'version':z['number']()['describe']('Document\x20version\x20of\x20the\x20returned\x20editable\x20view.'),'doc':z['unknown']()['describe']('Editable\x20judgment\x20view:\x20the\x20current\x20user\x20document\x20(partial)\x20when\x20one\x20exists,\x20otherwise\x20the\x20FULL\x20factory\x20defaults\x20document.')}),z['object']({'action':z['literal']('judgment_doc_patch'),'applied':z['literal'](!![])['describe']('Always\x20true\x20—\x20a\x20rejected\x20patch\x20throws\x20instead\x20of\x20writing.'),'user_path':z['string']()['describe']('User\x20document\x20the\x20patch\x20was\x20merged\x20into.'),'backup_path':z['string']()['nullable']()['describe']('Backup\x20of\x20the\x20previous\x20document\x20(null\x20when\x20no\x20file\x20existed\x20before).'),'version':z['number']()['describe']('Document\x20version\x20after\x20the\x20patch.'),'changed':z['array'](z['object']({'path':z['string']()['describe']('Dotted\x20path\x20of\x20the\x20changed\x20value\x20(arrays\x20reported\x20as\x20one\x20leaf).'),'old':z['unknown']()['describe']('Previous\x20value\x20(null\x20when\x20the\x20key\x20is\x20new).'),'new':z['unknown']()['describe']('Value\x20written\x20to\x20the\x20user\x20document.')}))['describe']('Leaf-level\x20changes\x20the\x20patch\x20made\x20to\x20the\x20user\x20document.'),'reload_error':z['string']()['nullable']()['describe']('Post-write\x20reload\x20error\x20(null\x20=\x20the\x20new\x20document\x20is\x20in\x20force).')})])['describe']('Config\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
1
+ import{z}from'zod';export const ConfigOperationInputSchema=z['object']({'action':z['enum'](['list','toggle','enable','disable','reset','info','judgment_list','judgment_set','judgment_reset','judgment_doc_read','judgment_doc_patch','store_dual_payout_get','store_dual_payout_set','store_dual_payout_clear'])['describe']('Config\x20action\x20to\x20perform'),'service':z['string']()['optional']()['describe']('Service\x20name\x20(required\x20for\x20toggle/enable/disable/reset/info)'),'account':z['string']()['optional']()['describe']('Store\x20signing\x20account\x20address\x20or\x20local\x20mark\x20name\x20(required\x20for\x20store_dual_payout_*\x20actions)\x20—\x20'+'the\x20store\x20whose\x20dual-payout\x20policy\x20is\x20read/written'),'confirm':z['boolean']()['optional']()['describe']('D-1\x20explicit\x20human\x20confirmation\x20(required\x20and\x20MUST\x20be\x20true\x20for\x20store_dual_payout_set).\x20Pass\x20it\x20ONLY\x20'+'after\x20the\x20human\x20merchant\x20reviewed\x20and\x20agreed\x20that\x20this\x20store\x27s\x20rails\x20may\x20net\x20arbitration\x20compensation\x20'+'and\x20escrow\x20release\x20on\x20the\x20same\x20order.\x20An\x20automated\x20agent\x20must\x20NOT\x20set\x20this\x20—\x20escalate\x20to\x20the\x20human.'),'note':z['string']()['optional']()['describe']('Optional\x20merchant\x20note\x20recorded\x20with\x20the\x20store_dual_payout_set\x20confirmation\x20(why\x20netting\x20is\x20this\x20store\x27s\x20standing\x20policy)'),'path':z['string']()['optional']()['describe']('Dotted\x20judgment\x20path\x20(required\x20for\x20judgment_set;\x20optional\x20for\x20judgment_reset),\x20e.g.\x20\x27evaluation.weights.trust_reviews\x27'),'value':z['unknown']()['optional']()['describe']('New\x20JSON\x20value\x20for\x20judgment_set\x20(type\x20must\x20match\x20the\x20existing\x20entry\x20at\x20\x27path\x27)'),'patch':z['record'](z['string'](),z['unknown']())['optional']()['describe']('PARTIAL\x20judgment\x20document\x20to\x20deep-merge\x20into\x20the\x20persistent\x20user\x20judgment\x20document\x20'+'(required\x20for\x20judgment_doc_patch),\x20e.g.\x20{\x22evaluation\x22:\x20{\x22weights\x22:\x20{\x22trust_reviews\x22:\x2045}}}.\x20'+'PERSISTENT\x20write\x20—\x20validated\x20in\x20full\x20before\x20it\x20touches\x20the\x20file;\x20requires\x20user\x20confirmation.')})['strict']();const ServiceReminder=z['string']()['optional']()['describe']('Human-readable\x20note\x20about\x20the\x20service\x27s\x20behavior\x20or\x20side\x20effects.'),ServiceField=z['string']()['describe']('Service\x20name\x20that\x20the\x20action\x20applied\x20to.'),EnabledField=z['boolean']()['describe']('Whether\x20the\x20service\x20is\x20now\x20enabled.');export const ConfigOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('list'),'services':z['array'](z['object']({'name':z['string']()['describe']('Service\x20identifier\x20(e.g.\x20\x27harness\x27,\x20\x27project\x27).'),'enabled':z['boolean']()['describe']('Whether\x20the\x20service\x20is\x20currently\x20enabled.'),'reminder':ServiceReminder}))['describe']('List\x20of\x20all\x20runtime\x20services\x20and\x20their\x20current\x20state.')}),z['object']({'action':z['literal']('toggle'),'service':ServiceField,'enabled':EnabledField,'reminder':ServiceReminder}),z['object']({'action':z['literal']('enable'),'service':ServiceField,'enabled':EnabledField,'reminder':ServiceReminder}),z['object']({'action':z['literal']('disable'),'service':ServiceField,'enabled':EnabledField,'reminder':ServiceReminder}),z['object']({'action':z['literal']('reset'),'service':ServiceField,'enabled':z['boolean']()['optional']()['describe']('Post-reset\x20enabled\x20state\x20(reflects\x20default\x20config).'),'reset':z['literal'](!![])['describe']('Always\x20true\x20—\x20confirms\x20a\x20reset\x20was\x20performed.'),'reminder':ServiceReminder}),z['object']({'action':z['literal']('info'),'service':ServiceField,'enabled':z['boolean']()['optional']()['describe']('Whether\x20the\x20service\x20is\x20currently\x20enabled.'),'reminder':ServiceReminder})['catchall'](z['unknown']()),z['object']({'action':z['literal']('judgment_list'),'version':z['number']()['describe']('Judgment\x20document\x20version.'),'factory_path':z['string']()['describe']('Bundled\x20factory\x20defaults\x20document\x20location.'),'user_path':z['string']()['describe']('User-editable\x20document\x20location\x20—\x20edit\x20THIS\x20file\x20to\x20customize\x20long-term.'),'user_doc_loaded':z['boolean']()['describe']('Whether\x20a\x20user\x20document\x20is\x20currently\x20in\x20force.'),'user_mtime':z['string']()['nullable']()['describe']('Last\x20modification\x20time\x20of\x20the\x20user\x20document\x20(ISO\x208601),\x20null\x20when\x20absent.'),'last_reload_error':z['string']()['nullable']()['describe']('Why\x20the\x20last\x20user-document\x20edit\x20was\x20rejected\x20(null\x20=\x20healthy).\x20The\x20last\x20good\x20document\x20stays\x20in\x20force.'),'user_doc':z['unknown']()['describe']('The\x20in-force\x20user\x20document\x20(null\x20when\x20none\x20yet)\x20—\x20what\x20a\x20patch\x20merges\x20into.'),'sections':z['record'](z['string'](),z['number']())['describe']('Per-section\x20entry\x20counts\x20of\x20the\x20effective\x20document.'),'overrides':z['array'](z['object']({'path':z['string'](),'value':z['unknown']()}))['describe']('Session\x20runtime\x20overrides\x20currently\x20applied\x20(judgment_set).')}),z['object']({'action':z['literal']('judgment_set'),'path':z['string']()['describe']('Dotted\x20path\x20that\x20was\x20overridden.'),'value':z['unknown']()['describe']('Value\x20applied\x20for\x20this\x20session.'),'applied':z['literal'](!![])['describe']('Always\x20true\x20—\x20a\x20rejected\x20override\x20throws\x20instead.')}),z['object']({'action':z['literal']('judgment_reset'),'path':z['string']()['optional']()['describe']('Path\x20cleared,\x20omitted\x20when\x20all\x20overrides\x20were\x20cleared.'),'cleared':z['number']()['describe']('How\x20many\x20overrides\x20were\x20cleared.')}),z['object']({'action':z['literal']('judgment_doc_read'),'user_path':z['string']()['describe']('User\x20document\x20location\x20(the\x20file\x20may\x20not\x20exist\x20yet\x20—\x20saving\x20from\x20the\x20editor\x20creates\x20it).'),'exists':z['boolean']()['describe']('Whether\x20a\x20user\x20document\x20file\x20currently\x20exists.\x20False\x20→\x20`doc`\x20is\x20the\x20factory\x20defaults\x20view.'),'version':z['number']()['describe']('Document\x20version\x20of\x20the\x20returned\x20editable\x20view.'),'doc':z['unknown']()['describe']('Editable\x20judgment\x20view:\x20the\x20current\x20user\x20document\x20(partial)\x20when\x20one\x20exists,\x20otherwise\x20the\x20FULL\x20factory\x20defaults\x20document.')}),z['object']({'action':z['literal']('judgment_doc_patch'),'applied':z['literal'](!![])['describe']('Always\x20true\x20—\x20a\x20rejected\x20patch\x20throws\x20instead\x20of\x20writing.'),'user_path':z['string']()['describe']('User\x20document\x20the\x20patch\x20was\x20merged\x20into.'),'backup_path':z['string']()['nullable']()['describe']('Backup\x20of\x20the\x20previous\x20document\x20(null\x20when\x20no\x20file\x20existed\x20before).'),'version':z['number']()['describe']('Document\x20version\x20after\x20the\x20patch.'),'changed':z['array'](z['object']({'path':z['string']()['describe']('Dotted\x20path\x20of\x20the\x20changed\x20value\x20(arrays\x20reported\x20as\x20one\x20leaf).'),'old':z['unknown']()['describe']('Previous\x20value\x20(null\x20when\x20the\x20key\x20is\x20new).'),'new':z['unknown']()['describe']('Value\x20written\x20to\x20the\x20user\x20document.')}))['describe']('Leaf-level\x20changes\x20the\x20patch\x20made\x20to\x20the\x20user\x20document.'),'reload_error':z['string']()['nullable']()['describe']('Post-write\x20reload\x20error\x20(null\x20=\x20the\x20new\x20document\x20is\x20in\x20force).')}),z['object']({'action':z['literal']('store_dual_payout_get'),'account':z['string']()['describe']('Store\x20account\x20the\x20policy\x20was\x20read\x20for.'),'preauthorized':z['boolean']()['describe']('Whether\x20the\x20store\x20carries\x20an\x20EXPLICIT\x20human\x20dual-payout\x20preauthorization.\x20False\x20→\x20the\x20execution\x20gate\x20'+'refuses\x20acknowledge_dual_payout\x20(the\x20per-call\x20flag\x20alone\x20is\x20not\x20sufficient,\x20D-1).'),'authorized_at':z['string']()['optional']()['describe']('ISO\x20timestamp\x20of\x20the\x20human\x20confirmation\x20(present\x20when\x20preauthorized).'),'note':z['string']()['optional']()['describe']('Merchant\x20note\x20recorded\x20with\x20the\x20confirmation.'),'network':z['string']()['optional']()['describe']('Network\x20the\x20confirmation\x20was\x20recorded\x20on.')}),z['object']({'action':z['literal']('store_dual_payout_set'),'account':z['string']()['describe']('Store\x20account\x20the\x20policy\x20was\x20recorded\x20for.'),'preauthorized':z['literal'](!![])['describe']('Always\x20true\x20—\x20a\x20set\x20without\x20confirm=true\x20throws\x20before\x20writing.'),'authorized_at':z['string']()['describe']('ISO\x20timestamp\x20of\x20the\x20human\x20confirmation\x20just\x20recorded.'),'note':z['string']()['optional']()['describe']('Merchant\x20note\x20recorded\x20with\x20the\x20confirmation.'),'reminder':ServiceReminder}),z['object']({'action':z['literal']('store_dual_payout_clear'),'account':z['string']()['describe']('Store\x20account\x20the\x20policy\x20was\x20revoked\x20for.'),'cleared':z['boolean']()['describe']('True\x20when\x20a\x20record\x20existed\x20and\x20was\x20removed;\x20false\x20when\x20none\x20existed.')})])['describe']('Config\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
@@ -759,6 +759,54 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
759
759
  }, z.core.$strict>, z.ZodObject<{
760
760
  action: z.ZodLiteral<"discover_demands">;
761
761
  location: z.ZodOptional<z.ZodString>;
762
+ match_policy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
763
+ policy_id: z.ZodString;
764
+ version: z.ZodOptional<z.ZodNumber>;
765
+ direction: z.ZodOptional<z.ZodEnum<{
766
+ demand_to_supply: "demand_to_supply";
767
+ supply_to_demand: "supply_to_demand";
768
+ }>>;
769
+ unknown_policy: z.ZodOptional<z.ZodEnum<{
770
+ pass: "pass";
771
+ neutral_score: "neutral_score";
772
+ drop: "drop";
773
+ }>>;
774
+ gates: z.ZodOptional<z.ZodArray<z.ZodObject<{
775
+ dim: z.ZodString;
776
+ op: z.ZodOptional<z.ZodString>;
777
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodString>]>>;
778
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
779
+ }, z.core.$strict>>>;
780
+ excludes: z.ZodOptional<z.ZodArray<z.ZodObject<{
781
+ dim: z.ZodString;
782
+ objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
783
+ owners: z.ZodOptional<z.ZodArray<z.ZodString>>;
784
+ flags: z.ZodOptional<z.ZodArray<z.ZodString>>;
785
+ source: z.ZodOptional<z.ZodArray<z.ZodString>>;
786
+ rule: z.ZodOptional<z.ZodString>;
787
+ }, z.core.$strict>>>;
788
+ weights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
789
+ rerank: z.ZodOptional<z.ZodObject<{
790
+ diversity: z.ZodOptional<z.ZodObject<{
791
+ by: z.ZodEnum<{
792
+ owner: "owner";
793
+ permission: "permission";
794
+ }>;
795
+ max_per_group: z.ZodNumber;
796
+ }, z.core.$strict>>;
797
+ explore: z.ZodOptional<z.ZodUnknown>;
798
+ llm: z.ZodOptional<z.ZodUnknown>;
799
+ fairness: z.ZodOptional<z.ZodUnknown>;
800
+ }, z.core.$strict>>;
801
+ recall: z.ZodOptional<z.ZodUnknown>;
802
+ verify: z.ZodOptional<z.ZodUnknown>;
803
+ output: z.ZodOptional<z.ZodObject<{
804
+ top_n: z.ZodOptional<z.ZodNumber>;
805
+ explain: z.ZodOptional<z.ZodBoolean>;
806
+ evidence_chain: z.ZodOptional<z.ZodUnknown>;
807
+ coverage_report: z.ZodOptional<z.ZodUnknown>;
808
+ }, z.core.$strict>>;
809
+ }, z.core.$strict>]>>;
762
810
  max_objects: z.ZodOptional<z.ZodNumber>;
763
811
  context_network: z.ZodOptional<z.ZodString>;
764
812
  no_cache: z.ZodOptional<z.ZodBoolean>;
@@ -812,6 +860,54 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
812
860
  keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
813
861
  }, z.core.$strict>;
814
862
  location: z.ZodOptional<z.ZodString>;
863
+ match_policy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
864
+ policy_id: z.ZodString;
865
+ version: z.ZodOptional<z.ZodNumber>;
866
+ direction: z.ZodOptional<z.ZodEnum<{
867
+ demand_to_supply: "demand_to_supply";
868
+ supply_to_demand: "supply_to_demand";
869
+ }>>;
870
+ unknown_policy: z.ZodOptional<z.ZodEnum<{
871
+ pass: "pass";
872
+ neutral_score: "neutral_score";
873
+ drop: "drop";
874
+ }>>;
875
+ gates: z.ZodOptional<z.ZodArray<z.ZodObject<{
876
+ dim: z.ZodString;
877
+ op: z.ZodOptional<z.ZodString>;
878
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber, z.ZodString, z.ZodArray<z.ZodString>]>>;
879
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
880
+ }, z.core.$strict>>>;
881
+ excludes: z.ZodOptional<z.ZodArray<z.ZodObject<{
882
+ dim: z.ZodString;
883
+ objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
884
+ owners: z.ZodOptional<z.ZodArray<z.ZodString>>;
885
+ flags: z.ZodOptional<z.ZodArray<z.ZodString>>;
886
+ source: z.ZodOptional<z.ZodArray<z.ZodString>>;
887
+ rule: z.ZodOptional<z.ZodString>;
888
+ }, z.core.$strict>>>;
889
+ weights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
890
+ rerank: z.ZodOptional<z.ZodObject<{
891
+ diversity: z.ZodOptional<z.ZodObject<{
892
+ by: z.ZodEnum<{
893
+ owner: "owner";
894
+ permission: "permission";
895
+ }>;
896
+ max_per_group: z.ZodNumber;
897
+ }, z.core.$strict>>;
898
+ explore: z.ZodOptional<z.ZodUnknown>;
899
+ llm: z.ZodOptional<z.ZodUnknown>;
900
+ fairness: z.ZodOptional<z.ZodUnknown>;
901
+ }, z.core.$strict>>;
902
+ recall: z.ZodOptional<z.ZodUnknown>;
903
+ verify: z.ZodOptional<z.ZodUnknown>;
904
+ output: z.ZodOptional<z.ZodObject<{
905
+ top_n: z.ZodOptional<z.ZodNumber>;
906
+ explain: z.ZodOptional<z.ZodBoolean>;
907
+ evidence_chain: z.ZodOptional<z.ZodUnknown>;
908
+ coverage_report: z.ZodOptional<z.ZodUnknown>;
909
+ }, z.core.$strict>>;
910
+ }, z.core.$strict>]>>;
815
911
  max_objects: z.ZodOptional<z.ZodNumber>;
816
912
  limit: z.ZodOptional<z.ZodNumber>;
817
913
  context_network: z.ZodOptional<z.ZodString>;
@@ -1506,6 +1602,34 @@ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
1506
1602
  chain_id: z.ZodOptional<z.ZodString>;
1507
1603
  degraded_reasons: z.ZodArray<z.ZodString>;
1508
1604
  }, z.core.$strict>;
1605
+ policy_effect: z.ZodOptional<z.ZodObject<{
1606
+ policy_id: z.ZodString;
1607
+ version: z.ZodOptional<z.ZodNumber>;
1608
+ direction: z.ZodEnum<{
1609
+ demand_to_supply: "demand_to_supply";
1610
+ supply_to_demand: "supply_to_demand";
1611
+ }>;
1612
+ policy_hash: z.ZodString;
1613
+ unknown_policy: z.ZodEnum<{
1614
+ pass: "pass";
1615
+ neutral_score: "neutral_score";
1616
+ drop: "drop";
1617
+ }>;
1618
+ dropped: z.ZodArray<z.ZodObject<{
1619
+ object: z.ZodString;
1620
+ reason: z.ZodString;
1621
+ }, z.core.$strict>>;
1622
+ unknown_kept: z.ZodArray<z.ZodObject<{
1623
+ object: z.ZodString;
1624
+ dim: z.ZodString;
1625
+ reason: z.ZodString;
1626
+ }, z.core.$strict>>;
1627
+ weights_applied: z.ZodRecord<z.ZodString, z.ZodNumber>;
1628
+ rerank: z.ZodString;
1629
+ deferred_by_diversity: z.ZodNumber;
1630
+ ignored: z.ZodArray<z.ZodString>;
1631
+ privacy: z.ZodString;
1632
+ }, z.core.$strict>>;
1509
1633
  }, z.core.$strict>, z.ZodObject<{
1510
1634
  action: z.ZodLiteral<"demand_present">;
1511
1635
  matches: z.ZodArray<z.ZodObject<{
@@ -1600,6 +1724,34 @@ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
1600
1724
  chain_id: z.ZodOptional<z.ZodString>;
1601
1725
  degraded_reasons: z.ZodArray<z.ZodString>;
1602
1726
  }, z.core.$strict>;
1727
+ policy_effect: z.ZodOptional<z.ZodObject<{
1728
+ policy_id: z.ZodString;
1729
+ version: z.ZodOptional<z.ZodNumber>;
1730
+ direction: z.ZodEnum<{
1731
+ demand_to_supply: "demand_to_supply";
1732
+ supply_to_demand: "supply_to_demand";
1733
+ }>;
1734
+ policy_hash: z.ZodString;
1735
+ unknown_policy: z.ZodEnum<{
1736
+ pass: "pass";
1737
+ neutral_score: "neutral_score";
1738
+ drop: "drop";
1739
+ }>;
1740
+ dropped: z.ZodArray<z.ZodObject<{
1741
+ object: z.ZodString;
1742
+ reason: z.ZodString;
1743
+ }, z.core.$strict>>;
1744
+ unknown_kept: z.ZodArray<z.ZodObject<{
1745
+ object: z.ZodString;
1746
+ dim: z.ZodString;
1747
+ reason: z.ZodString;
1748
+ }, z.core.$strict>>;
1749
+ weights_applied: z.ZodRecord<z.ZodString, z.ZodNumber>;
1750
+ rerank: z.ZodString;
1751
+ deferred_by_diversity: z.ZodNumber;
1752
+ ignored: z.ZodArray<z.ZodString>;
1753
+ privacy: z.ZodString;
1754
+ }, z.core.$strict>>;
1603
1755
  }, z.core.$strict>, z.ZodObject<{
1604
1756
  action: z.ZodLiteral<"market_operations">;
1605
1757
  result: z.ZodUnion<readonly [z.ZodObject<{