@wowok/agent-mcp 2.7.10 → 3.0.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.
- package/dist/communication/evidence.d.ts +6 -0
- package/dist/communication/evidence.js +1 -0
- package/dist/evaluation/acceptance.d.ts +24 -0
- package/dist/evaluation/acceptance.js +1 -0
- package/dist/evaluation/builtins/demand-match.d.ts +3 -2
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/service-risk.d.ts +2 -1
- package/dist/evaluation/builtins/service-risk.js +1 -1
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/index.js +1 -1
- package/dist/evaluation/match-operation.d.ts +14 -0
- package/dist/evaluation/match-operation.js +1 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/capability-manifest.d.ts +1 -82
- package/dist/extensions/capability-manifest.js +1 -1
- package/dist/extensions/constraint-registry.d.ts +6 -4
- package/dist/extensions/constraint-registry.js +1 -1
- package/dist/extensions/index.d.ts +4 -5
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/metric-registry.d.ts +6 -4
- package/dist/extensions/metric-registry.js +1 -1
- package/dist/extensions/mode-evaluator.d.ts +2 -3
- package/dist/extensions/mode-evaluator.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/extensions/registry.d.ts +3 -25
- package/dist/extensions/registry.js +1 -1
- package/dist/extensions/types.d.ts +0 -68
- package/dist/goal/GoalClassifier.js +1 -1
- package/dist/goal/GoalEngine.d.ts +44 -1
- package/dist/goal/GoalEngine.js +1 -1
- package/dist/goal/types.d.ts +5 -1
- package/dist/harness/auto-escalation.d.ts +0 -12
- package/dist/harness/auto-escalation.js +1 -1
- package/dist/harness/index.d.ts +1 -14
- package/dist/harness/index.js +1 -1
- package/dist/harness/types.d.ts +0 -38
- package/dist/keeper/KeeperScan.d.ts +39 -0
- package/dist/keeper/KeeperScan.js +1 -0
- package/dist/keeper/KeeperStore.d.ts +43 -0
- package/dist/keeper/KeeperStore.js +1 -0
- package/dist/keeper/detectors.d.ts +23 -0
- package/dist/keeper/detectors.js +1 -0
- package/dist/keeper/keeper.spec.d.ts +1 -0
- package/dist/keeper/keeper.spec.js +1 -0
- package/dist/keeper/types.d.ts +65 -0
- package/dist/keeper/types.js +1 -0
- package/dist/knowledge/account-marks.d.ts +1 -0
- package/dist/knowledge/account-marks.js +1 -1
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/event-semantics.d.ts +3 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/event-semantics.spec.d.ts +1 -0
- package/dist/knowledge/event-semantics.spec.js +1 -0
- package/dist/knowledge/evidence-review.d.ts +23 -0
- package/dist/knowledge/evidence-review.js +1 -1
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +13 -9
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/goal-completion.js +1 -1
- package/dist/knowledge/guard-bindings.d.ts +21 -0
- package/dist/knowledge/guard-bindings.js +1 -0
- package/dist/knowledge/guard-bytecode-spec.d.ts +82 -0
- package/dist/knowledge/guard-bytecode-spec.js +1 -0
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/index.d.ts +13 -7
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +2 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/scenario-topology.d.ts +43 -0
- package/dist/knowledge/scenario-topology.js +1 -0
- package/dist/knowledge/supply-chain.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +55 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.d.ts +1 -0
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.d.ts +3 -0
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/ScopeResolver.js +1 -1
- package/dist/monitor/SuggestionBridge.d.ts +38 -0
- package/dist/monitor/SuggestionBridge.js +1 -0
- package/dist/monitor/SuggestionBridge.spec.d.ts +1 -0
- package/dist/monitor/SuggestionBridge.spec.js +1 -0
- package/dist/monitor/types.d.ts +0 -1
- package/dist/monitor/types.js +1 -1
- package/dist/participation/arbitrator-interest.d.ts +20 -0
- package/dist/participation/arbitrator-interest.js +1 -0
- package/dist/participation/demander-interest.d.ts +23 -0
- package/dist/participation/demander-interest.js +1 -0
- package/dist/participation/employee-kpi.d.ts +12 -0
- package/dist/participation/employee-kpi.js +1 -1
- package/dist/participation/employee-kpi.spec.d.ts +1 -0
- package/dist/participation/employee-kpi.spec.js +1 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/context-assembly.js +1 -1
- package/dist/playbooks/service-build/machine-nodes.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +20 -0
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +30 -12
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.d.ts +2 -0
- package/dist/playbooks/service-build/relationship-profile.js +1 -0
- package/dist/playbooks/service-build/semantic-graph.d.ts +5 -1
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/relationship/derivation.d.ts +94 -0
- package/dist/relationship/derivation.js +1 -0
- package/dist/relationship/derivation.spec.d.ts +1 -0
- package/dist/relationship/derivation.spec.js +1 -0
- package/dist/relationship/incentive.d.ts +38 -0
- package/dist/relationship/incentive.js +1 -0
- package/dist/relationship/index.d.ts +4 -0
- package/dist/relationship/index.js +1 -0
- package/dist/relationship/registry.d.ts +13 -0
- package/dist/relationship/registry.js +1 -0
- package/dist/relationship/types.d.ts +45 -0
- package/dist/relationship/types.js +1 -0
- package/dist/review/progress.js +1 -1
- package/dist/role/index.d.ts +2 -2
- package/dist/role/index.js +1 -1
- package/dist/role/model.d.ts +2 -1
- package/dist/role/model.js +1 -1
- package/dist/role/types.d.ts +5 -0
- package/dist/rules.d.ts +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/safety/preview.js +1 -1
- package/dist/schema/call/bridge.d.ts +25 -3
- package/dist/schema/call/bridge.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/employee/index.d.ts +61 -1
- package/dist/schema/employee/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +70 -5
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +40 -14
- package/dist/schema/goal/index.js +1 -1
- package/dist/schema/goal/planning.d.ts +6 -6
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +59 -7
- package/dist/schema/industry-pack/index.js +1 -1
- package/dist/schema/industry-pack/modes.d.ts +59 -7
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +19 -19
- package/dist/schema/keeper/index.d.ts +475 -0
- package/dist/schema/keeper/index.js +1 -0
- package/dist/schema/local/index.d.ts +11 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +2 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +64 -16
- package/dist/schema/persona/index.d.ts +1 -1
- package/dist/schema/query/bi.d.ts +244 -16
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +2 -2
- package/dist/schema/schema-query/index.d.ts +2 -11
- package/dist/schema/schema-query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/utils/skills-recommendation.js +1 -1
- package/dist/schema/watch/index.d.ts +4 -0
- package/dist/schema/watch/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +33 -14
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +29 -0
- package/dist/schemas/account_operation.schema.json +6 -2
- package/dist/schemas/bridge_operation.output.json +24 -1
- package/dist/schemas/bridge_operation.schema.json +73 -1
- package/dist/schemas/employee_operation.output.json +100 -0
- package/dist/schemas/employee_operation.schema.json +148 -5
- package/dist/schemas/evaluation_operation.output.json +135 -9
- package/dist/schemas/evaluation_operation.schema.json +176 -7
- package/dist/schemas/goal_operation.schema.json +76 -0
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/industry_pack_operation.output.json +172 -27
- package/dist/schemas/industry_pack_operation.schema.json +19 -0
- package/dist/schemas/keeper_operation.output.json +1274 -0
- package/dist/schemas/keeper_operation.schema.json +359 -0
- package/dist/schemas/messenger_operation.schema.json +8 -0
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +41 -41
- package/dist/schemas/onchain_operations_allocation.schema.json +4 -4
- package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
- package/dist/schemas/onchain_operations_contact.schema.json +2 -2
- package/dist/schemas/onchain_operations_demand.schema.json +2 -2
- package/dist/schemas/onchain_operations_machine.schema.json +2 -2
- package/dist/schemas/onchain_operations_order.schema.json +2 -2
- package/dist/schemas/onchain_operations_payment.schema.json +1 -1
- package/dist/schemas/onchain_operations_permission.schema.json +2 -2
- package/dist/schemas/onchain_operations_progress.schema.json +2 -2
- package/dist/schemas/onchain_operations_repository.schema.json +2 -2
- package/dist/schemas/onchain_operations_reward.schema.json +6 -6
- package/dist/schemas/onchain_operations_service.schema.json +7 -7
- package/dist/schemas/onchain_operations_treasury.schema.json +6 -6
- package/dist/schemas/onchain_table_data.output.json +71 -0
- package/dist/schemas/query_toolkit.output.json +485 -7
- package/dist/schemas/query_toolkit.schema.json +71 -0
- package/dist/schemas/schema_query.output.json +1 -64
- package/dist/schemas/schema_query.schema.json +18 -3
- package/dist/schemas/watch_operation.output.json +21 -1
- package/dist/task/ProcessStore.d.ts +18 -1
- package/dist/task/ProcessStore.js +1 -1
- package/dist/task/playbook.js +1 -1
- package/dist/task/types.d.ts +24 -0
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/employee.d.ts +6 -0
- package/dist/tools/handlers/employee.js +1 -1
- package/dist/tools/handlers/employee.spec.d.ts +1 -0
- package/dist/tools/handlers/employee.spec.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/evaluation.spec.d.ts +1 -0
- package/dist/tools/handlers/evaluation.spec.js +1 -0
- package/dist/tools/handlers/goal.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/keeper.d.ts +12 -0
- package/dist/tools/handlers/keeper.js +1 -0
- package/dist/tools/handlers/local.d.ts +4 -3
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/watch.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/agent.d.ts +2 -0
- package/dist/tools/registry/agent.js +1 -0
- package/dist/tools/registry/bridge.d.ts +2 -0
- package/dist/tools/registry/bridge.js +1 -0
- package/dist/tools/registry/business.d.ts +2 -0
- package/dist/tools/registry/business.js +1 -0
- package/dist/tools/registry/config.d.ts +2 -0
- package/dist/tools/registry/config.js +1 -0
- package/dist/tools/registry/files.d.ts +2 -0
- package/dist/tools/registry/files.js +1 -0
- package/dist/tools/registry/identity.d.ts +2 -0
- package/dist/tools/registry/identity.js +1 -0
- package/dist/tools/registry/local.d.ts +2 -0
- package/dist/tools/registry/local.js +1 -0
- package/dist/tools/registry/messenger.d.ts +2 -0
- package/dist/tools/registry/messenger.js +1 -0
- package/dist/tools/registry/monitor.d.ts +2 -0
- package/dist/tools/registry/monitor.js +1 -0
- package/dist/tools/registry/onchain.d.ts +2 -0
- package/dist/tools/registry/onchain.js +1 -0
- package/dist/tools/registry/query.d.ts +2 -0
- package/dist/tools/registry/query.js +1 -0
- package/dist/tools/registry/trust.d.ts +2 -0
- package/dist/tools/registry/trust.js +1 -0
- package/dist/tools/rules-hook.d.ts +1 -0
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
- package/dist/examples/arbitration-dispute-create.json +0 -41
- package/dist/examples/arbitration-vote-weighted.json +0 -35
- package/dist/examples/arbitration-voting-guard-add.json +0 -38
- package/dist/examples/demand-present-service.json +0 -33
- package/dist/examples/education-contact-create.json +0 -40
- package/dist/examples/freelance-contact-create.json +0 -40
- package/dist/examples/gen-passport-verify-guard.json +0 -48
- package/dist/examples/guard-template-balance-check.json +0 -59
- package/dist/examples/guard-template-time-lock.json +0 -60
- package/dist/examples/insurance-guard-claim-timelock.json +0 -75
- package/dist/examples/insurance-guard-withdraw-allocation.json +0 -96
- package/dist/examples/insurance-machine-create.json +0 -75
- package/dist/examples/insurance-service-allocators.json +0 -55
- package/dist/examples/machine-multisig-threshold.json +0 -87
- package/dist/examples/machine-publish.json +0 -30
- package/dist/examples/machine-template-7node-rental.json +0 -119
- package/dist/examples/payment-scenario-bound.json +0 -45
- package/dist/examples/rental-ziroom-machine-create.json +0 -148
- package/dist/examples/rental-ziroom-permission-create.json +0 -41
- package/dist/examples/rental-ziroom-service-create.json +0 -36
- package/dist/examples/retail-adv-guard-customer-win-create.json +0 -80
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +0 -65
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +0 -92
- package/dist/examples/retail-adv-reward-guard-add.json +0 -51
- package/dist/examples/retail-myshop-allocation-activate.json +0 -55
- package/dist/examples/retail-myshop-arbitration-create.json +0 -40
- package/dist/examples/retail-myshop-contact-create.json +0 -43
- package/dist/examples/retail-myshop-order-create.json +0 -56
- package/dist/examples/retail-myshop-progress-operate.json +0 -38
- package/dist/examples/retail-myshop-reward-create.json +0 -35
- package/dist/examples/retail-myshop-service-create.json +0 -38
- package/dist/examples/retail-myshop-service-customer-required.json +0 -31
- package/dist/examples/service-discount-issue.json +0 -46
- package/dist/examples/subscription-contact-create.json +0 -40
- package/dist/examples/threebody-guard-create.json +0 -56
- package/dist/examples/threebody-machine-create.json +0 -71
- package/dist/examples/threebody-permission-create.json +0 -38
- package/dist/examples/threebody-service-allocators.json +0 -48
- package/dist/examples/travel-guard-time-lock.json +0 -69
- package/dist/examples/travel-guard-weather-oracle.json +0 -70
- package/dist/examples/travel-machine-create.json +0 -135
- package/dist/examples/travel-repository-create.json +0 -47
- package/dist/examples/travel-service-create.json +0 -34
- package/dist/examples/travel-treasury-create.json +0 -34
- package/dist/examples/treasury-deposit.json +0 -37
- package/dist/examples/treasury-withdraw.json +0 -38
- package/dist/harness/plan.d.ts +0 -33
- package/dist/harness/plan.js +0 -1
- package/dist/knowledge/demand-matching.d.ts +0 -29
- package/dist/knowledge/demand-matching.js +0 -1
- package/dist/knowledge/guard-context.d.ts +0 -56
- package/dist/knowledge/guard-context.js +0 -1
- package/dist/knowledge/guard-migration.d.ts +0 -48
- package/dist/knowledge/guard-migration.js +0 -1
- package/dist/mode-market/index.d.ts +0 -3
- package/dist/mode-market/index.js +0 -1
- package/dist/mode-market/registry.d.ts +0 -53
- package/dist/mode-market/registry.js +0 -1
- package/dist/mode-market/review.d.ts +0 -27
- package/dist/mode-market/review.js +0 -1
- package/dist/mode-market/submission.d.ts +0 -25
- package/dist/mode-market/submission.js +0 -1
- package/dist/schemas/guard-node-schema.json +0 -1000
- package/dist/task/stage-gate.d.ts +0 -22
- package/dist/task/stage-gate.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();
|
|
1
|
+
import{z}from'zod';import{GOAL_TYPES}from'../../goal/types.js';import{PlanningActionMembers}from'./planning.js';const NetworkEnum=z['enum'](['mainnet','testnet']),GoalTypeEnum=z['enum'](GOAL_TYPES),AdvanceStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','paused']),ListStageEnum=z['enum'](['recognized','confirmed','bound','planned','approved','acting','monitoring','completed','paused','abandoned']),ObjectRefSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(e.g.\x20\x27Service\x27,\x20\x27Order\x27,\x20\x27Demand\x27,\x20\x27Progress\x27).'),'object':z['string']()['describe']('On-chain\x20object\x20address\x20(0x…).')})['strict']();export const GoalOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('create'),'intent_text':z['string']()['describe']('Raw\x20user\x20intent\x20text.\x20goal_type\x20is\x20classified\x20deterministically\x20unless\x20overridden.'),'title':z['string']()['optional']()['describe']('Short\x20goal\x20title;\x20defaults\x20to\x20the\x20first\x20line\x20of\x20intent_text.'),'goal_type':GoalTypeEnum['optional']()['describe']('Explicit\x20goal_type\x20override\x20(publish_service\x20|\x20fulfill_order\x20|\x20capture_demand\x20|\x20purchase_service\x20|\x20collaborate_flow\x20|\x20supply_suborder\x20|\x20publish_demand\x20|\x20run_arbitration\x20|\x20dispute_resolution\x20|\x20manage_assets).'),'account':z['string']()['optional']()['describe']('BIND\x20station:\x20local\x20account\x20name\x20or\x20address\x20the\x20goal\x20operates\x20with.\x20When\x20given,\x20the\x20goal\x20starts\x20at\x20stage\x20\x27bound\x27\x20(with\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'conversation_id':z['string']()['optional']()['describe']('Originating\x20chat\x20conversation\x20id\x20(the\x20client\x20injects\x20this\x20automatically;\x20links\x20the\x20goal\x20back\x20to\x20its\x20conversation).'),'create_process':z['boolean']()['optional']()['describe']('TaskProcess\x20creation\x20override.\x20Processes\x20are\x20created\x20BY\x20DEFAULT\x20for\x20goal\x20types\x20with\x20a\x20dedicated\x20playbook\x20(publish_service,\x20fulfill_order,\x20capture_demand,\x20publish_demand,\x20purchase_service);\x20pass\x20true\x20to\x20also\x20attach\x20one\x20to\x20a\x20generic-playbook\x20goal\x20type.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list'),'stage':ListStageEnum['optional']()['describe']('Filter\x20by\x20stage.'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account.'),'conversation_id':z['string']()['optional']()['describe']('Filter\x20by\x20originating\x20conversation\x20id\x20(the\x20conversation↔goal\x20link).'),'include_finished':z['boolean']()['optional']()['describe']('Include\x20terminal\x20goals\x20(completed/abandoned).\x20Default\x20false.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('get'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('approve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'note':z['string']()['optional']()['describe']('Human\x20note\x20recorded\x20on\x20the\x20approval\x20audit\x20entry.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('bind'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'account':z['string']()['describe']('Local\x20account\x20name\x20or\x20address\x20to\x20bind\x20(BIND\x20station;\x20runs\x20a\x20local-account\x20preflight).'),'persona':z['string']()['optional']()['describe']('Persona\x20id/name\x20recorded\x20on\x20the\x20binding.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('advance'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'stage':AdvanceStageEnum['optional']()['describe']('Target\x20stage\x20(forward-only\x20along\x20recognized→confirmed→bound→planned→approved→acting→monitoring;\x20\x27paused\x27\x20holds\x20from\x20anywhere;\x20from\x20\x27paused\x27\x20resume\x20anywhere).\x20Entering\x20\x27monitoring\x27\x20auto-binds\x20monitor\x20focus\x20for\x20the\x20goal\x27s\x20objects.'),'objects':z['array'](ObjectRefSchema)['optional']()['describe']('ACT\x20station:\x20objects\x20created/adopted\x20by\x20this\x20goal\x20(deduped\x20by\x20type+address).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('pause'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('complete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Skip\x20on-chain\x20completion-condition\x20verification\x20(audited\x20as\x20outcome.forced).'),'feedback':z['object']({'sentiment':z['enum'](['positive','negative','neutral'])['describe']('Overall\x20sentiment\x20about\x20how\x20the\x20goal\x20went.'),'comment':z['string']()['describe']('Free-form\x20feedback\x20comment.')})['strict']()['optional']()['describe']('User\x20feedback\x20recorded\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(feedback.jsonl)\x20and\x20used\x20as\x20outcome\x20evidence\x20for\x20the\x20experience\x20layer\x20(REFLECT).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('abandon'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'reason':z['string']()['describe']('Why\x20the\x20goal\x20is\x20given\x20up\x20(required,\x20recorded\x20on\x20the\x20outcome).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('delete'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'force':z['boolean']()['optional']()['describe']('Allow\x20deleting\x20a\x20NON-terminal\x20goal.\x20The\x20goal\x27s\x20monitor\x20focus,\x20radar\x20intents\x20and\x20plan\x20approval\x20are\x20torn\x20down\x20first\x20so\x20no\x20bindings\x20are\x20orphaned.\x20Terminal\x20goals\x20(completed/abandoned)\x20never\x20need\x20force.'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestions'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'include_resolved':z['boolean']()['optional']()['describe']('Also\x20return\x20confirmed/dismissed\x20suggestions.\x20Default\x20false\x20(pending\x20only).'),'network':NetworkEnum['optional']()})['strict'](),z['object']({'action':z['literal']('suggestion_resolve'),'id':z['string']()['describe']('Goal\x20id\x20(goal_…).'),'suggestion_id':z['string']()['describe']('Suggestion\x20id\x20(sug_…).'),'decision':z['enum'](['confirm','dismiss'])['describe']('confirm\x20=\x20accept\x20the\x20suggestion;\x20dismiss\x20=\x20reject\x20it\x20(recorded,\x20one-shot\x20either\x20way).'),'apply':z['boolean']()['optional']()['describe']('With\x20decision=confirm:\x20run\x20the\x20suggested\x20move\x20through\x20the\x20normal\x20engine\x20stations\x20(advance_stage\x20→\x20advance;\x20complete_goal\x20→\x20complete\x20with\x20chain\x20verification;\x20register_object\x20→\x20advance\x20objects).\x20Default\x20false:\x20acknowledge\x20only.\x20When\x20applying\x20fails\x20the\x20suggestion\x20STAYS\x20PENDING\x20and\x20apply_error\x20explains\x20why.'),'note':z['string']()['optional']()['describe']('Optional\x20resolution\x20note\x20(audit).'),'network':NetworkEnum['optional']()})['strict'](),...PlanningActionMembers]);export const GoalProcessSummarySchema=z['object']({'id':z['string']()['describe']('Process\x20id\x20(proc_…).'),'playbook':z['string']()['describe']('Playbook\x20name\x20supplying\x20the\x20stage\x20sequence.'),'current_stage':z['string']()['describe']('Current\x20stage\x20of\x20the\x20process\x20stage\x20machine.'),'stages':z['array'](z['object']({'name':z['string'](),'committed':z['boolean'](),'completion':z['number']()['describe']('Stage\x20completion\x200-100.')})['passthrough']())['describe']('Per-stage\x20progress,\x20in\x20stage-sequence\x20order.'),'open_problems':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20the\x20most\x20severe\x20open\x20problems\x20(up\x20to\x203).')})['passthrough'](),'pending_suggestions':z['object']({'count':z['number'](),'top':z['array'](z['string']())['describe']('Titles\x20of\x20pending\x20advancement\x20suggestions\x20(up\x20to\x203).')})['passthrough']()['describe']('T5-C:\x20monitor-bridged\x20suggestions\x20awaiting\x20a\x20decision\x20(see\x20the\x20suggestions\x20action).'),'last_events':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Tail\x20(up\x20to\x205)\x20of\x20the\x20process\x20event\x20stream,\x20oldest\x20first.'),'feedback_count':z['number']()})['passthrough']();
|
|
@@ -32,8 +32,8 @@ export declare const ProjectObjectTypeEnum: z.ZodEnum<{
|
|
|
32
32
|
export declare const PlanningActionMembers: [z.ZodObject<{
|
|
33
33
|
target_objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
34
|
network: z.ZodOptional<z.ZodEnum<{
|
|
35
|
-
testnet: "testnet";
|
|
36
35
|
mainnet: "mainnet";
|
|
36
|
+
testnet: "testnet";
|
|
37
37
|
}>>;
|
|
38
38
|
intent: z.ZodOptional<z.ZodString>;
|
|
39
39
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -74,8 +74,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
74
74
|
name: z.ZodOptional<z.ZodString>;
|
|
75
75
|
}, z.core.$strict>>>;
|
|
76
76
|
network: z.ZodOptional<z.ZodEnum<{
|
|
77
|
-
testnet: "testnet";
|
|
78
77
|
mainnet: "mainnet";
|
|
78
|
+
testnet: "testnet";
|
|
79
79
|
}>>;
|
|
80
80
|
intent: z.ZodOptional<z.ZodString>;
|
|
81
81
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -128,8 +128,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
128
128
|
entry_id: z.ZodString;
|
|
129
129
|
operation_type: z.ZodString;
|
|
130
130
|
network: z.ZodEnum<{
|
|
131
|
-
testnet: "testnet";
|
|
132
131
|
mainnet: "mainnet";
|
|
132
|
+
testnet: "testnet";
|
|
133
133
|
}>;
|
|
134
134
|
input: z.ZodObject<{
|
|
135
135
|
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -166,8 +166,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
166
166
|
field_path: z.ZodString;
|
|
167
167
|
}, z.core.$strict>>>;
|
|
168
168
|
network: z.ZodOptional<z.ZodEnum<{
|
|
169
|
-
testnet: "testnet";
|
|
170
169
|
mainnet: "mainnet";
|
|
170
|
+
testnet: "testnet";
|
|
171
171
|
}>>;
|
|
172
172
|
}, z.core.$strict>, z.ZodObject<{
|
|
173
173
|
guide_state: z.ZodOptional<z.ZodObject<{
|
|
@@ -188,8 +188,8 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
188
188
|
adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
189
|
}, z.core.$strict>>;
|
|
190
190
|
network: z.ZodOptional<z.ZodEnum<{
|
|
191
|
-
testnet: "testnet";
|
|
192
191
|
mainnet: "mainnet";
|
|
192
|
+
testnet: "testnet";
|
|
193
193
|
}>>;
|
|
194
194
|
intent: z.ZodOptional<z.ZodString>;
|
|
195
195
|
project_name: z.ZodOptional<z.ZodString>;
|
|
@@ -325,8 +325,8 @@ export declare const TraceSubstepsResultSchema: z.ZodObject<{
|
|
|
325
325
|
version: z.ZodString;
|
|
326
326
|
}, z.core.$strict>;
|
|
327
327
|
network: z.ZodEnum<{
|
|
328
|
-
testnet: "testnet";
|
|
329
328
|
mainnet: "mainnet";
|
|
329
|
+
testnet: "testnet";
|
|
330
330
|
}>;
|
|
331
331
|
coherent: z.ZodBoolean;
|
|
332
332
|
dangling_inputs: z.ZodArray<z.ZodObject<{
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ export * from './industry-pack/index.js';
|
|
|
19
19
|
export * from './workspace/index.js';
|
|
20
20
|
export * from './workflow/index.js';
|
|
21
21
|
export * from './permission/index.js';
|
|
22
|
+
export * from './keeper/index.js';
|
|
22
23
|
export { MCP_SCHEMA_VERSION, getSchemaVersions, checkClientSchemaCompatibility, attachSchemaWarning, } from './schema-version.js';
|
|
23
24
|
export type { SchemaVersions, SchemaCompatibilityMode, SchemaCheckOptions, SchemaCheckResult, } from './schema-version.js';
|
package/dist/schema/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./goal/index.js';export*from'./employee/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';
|
|
1
|
+
export*from'./call/index.js';export*from'./query/index.js';export*from'./local/index.js';export*from'./messenger/index.js';export*from'./common/index.js';export*from'./operations.js';export*from'./utils/guard-parser.js';export*from'./utils/node-parser.js';export*from'./config/index.js';export*from'./trust/index.js';export*from'./evaluation/index.js';export*from'./watch/index.js';export*from'./persona/index.js';export*from'./intent-radar/index.js';export*from'./goal/index.js';export*from'./employee/index.js';export*from'./schema-query/index.js';export*from'./industry-pack/index.js';export*from'./workspace/index.js';export*from'./workflow/index.js';export*from'./permission/index.js';export*from'./keeper/index.js';export{MCP_SCHEMA_VERSION,getSchemaVersions,checkClientSchemaCompatibility,attachSchemaWarning}from'./schema-version.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const IndustryPackOperationInputSchema: z.ZodObject<{
|
|
3
3
|
intent: z.ZodOptional<z.ZodString>;
|
|
4
|
+
strategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
4
5
|
mode_source: z.ZodOptional<z.ZodString>;
|
|
5
6
|
mode_name: z.ZodOptional<z.ZodString>;
|
|
6
7
|
mode_display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -61,8 +62,8 @@ export declare const IndustryPackOperationInputSchema: z.ZodObject<{
|
|
|
61
62
|
get: "get";
|
|
62
63
|
reset: "reset";
|
|
63
64
|
list: "list";
|
|
64
|
-
scaffold: "scaffold";
|
|
65
65
|
scan: "scan";
|
|
66
|
+
scaffold: "scaffold";
|
|
66
67
|
resolve: "resolve";
|
|
67
68
|
list_files: "list_files";
|
|
68
69
|
read_file: "read_file";
|
|
@@ -82,6 +83,8 @@ export declare const IndustryPackOperationInputSchema: z.ZodObject<{
|
|
|
82
83
|
register_custom_metric: "register_custom_metric";
|
|
83
84
|
register_custom_constraint: "register_custom_constraint";
|
|
84
85
|
list_metrics_constraints: "list_metrics_constraints";
|
|
86
|
+
unregister_custom_metric: "unregister_custom_metric";
|
|
87
|
+
unregister_custom_constraint: "unregister_custom_constraint";
|
|
85
88
|
}>;
|
|
86
89
|
name: z.ZodOptional<z.ZodString>;
|
|
87
90
|
path: z.ZodOptional<z.ZodString>;
|
|
@@ -199,16 +202,57 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
199
202
|
inferred_traits: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
200
203
|
inference_confidence: z.ZodNumber;
|
|
201
204
|
matched_keywords: z.ZodArray<z.ZodString>;
|
|
205
|
+
strategy_intents: z.ZodArray<z.ZodObject<{
|
|
206
|
+
objective: z.ZodEnum<{
|
|
207
|
+
sales_priority: "sales_priority";
|
|
208
|
+
profit_priority: "profit_priority";
|
|
209
|
+
buyer_screening: "buyer_screening";
|
|
210
|
+
gross_margin_control: "gross_margin_control";
|
|
211
|
+
}>;
|
|
212
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
213
|
+
levers: z.ZodArray<z.ZodEnum<{
|
|
214
|
+
reward: "reward";
|
|
215
|
+
buy_guard: "buy_guard";
|
|
216
|
+
discount: "discount";
|
|
217
|
+
machine_design: "machine_design";
|
|
218
|
+
}>>;
|
|
219
|
+
target: z.ZodString;
|
|
220
|
+
}, z.core.$strict>>;
|
|
221
|
+
lever_suggestions: z.ZodArray<z.ZodObject<{
|
|
222
|
+
lever: z.ZodEnum<{
|
|
223
|
+
reward: "reward";
|
|
224
|
+
buy_guard: "buy_guard";
|
|
225
|
+
discount: "discount";
|
|
226
|
+
machine_design: "machine_design";
|
|
227
|
+
}>;
|
|
228
|
+
objective: z.ZodEnum<{
|
|
229
|
+
sales_priority: "sales_priority";
|
|
230
|
+
profit_priority: "profit_priority";
|
|
231
|
+
buyer_screening: "buyer_screening";
|
|
232
|
+
gross_margin_control: "gross_margin_control";
|
|
233
|
+
}>;
|
|
234
|
+
action: z.ZodString;
|
|
235
|
+
target: z.ZodString;
|
|
236
|
+
}, z.core.$strict>>;
|
|
202
237
|
recommendations: z.ZodArray<z.ZodObject<{
|
|
203
238
|
industry: z.ZodString;
|
|
204
239
|
similarity: z.ZodNumber;
|
|
205
240
|
matched_traits: z.ZodArray<z.ZodString>;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
241
|
+
strategy_alignment: z.ZodOptional<z.ZodObject<{
|
|
242
|
+
score: z.ZodNumber;
|
|
243
|
+
matched_levers: z.ZodArray<z.ZodEnum<{
|
|
244
|
+
reward: "reward";
|
|
245
|
+
buy_guard: "buy_guard";
|
|
246
|
+
discount: "discount";
|
|
247
|
+
machine_design: "machine_design";
|
|
248
|
+
}>>;
|
|
249
|
+
missing_levers: z.ZodArray<z.ZodEnum<{
|
|
250
|
+
reward: "reward";
|
|
251
|
+
buy_guard: "buy_guard";
|
|
252
|
+
discount: "discount";
|
|
253
|
+
machine_design: "machine_design";
|
|
254
|
+
}>>;
|
|
255
|
+
}, z.core.$strip>>;
|
|
212
256
|
}, z.core.$strict>>;
|
|
213
257
|
hint: z.ZodString;
|
|
214
258
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -326,6 +370,10 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
326
370
|
owner: z.ZodOptional<z.ZodString>;
|
|
327
371
|
}, z.core.$strict>;
|
|
328
372
|
hint: z.ZodString;
|
|
373
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
374
|
+
action: z.ZodLiteral<"unregister_custom_metric">;
|
|
375
|
+
removed: z.ZodLiteral<true>;
|
|
376
|
+
metric_id: z.ZodString;
|
|
329
377
|
}, z.core.$strict>, z.ZodObject<{
|
|
330
378
|
action: z.ZodLiteral<"register_custom_constraint">;
|
|
331
379
|
constraint: z.ZodObject<{
|
|
@@ -349,6 +397,10 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
|
|
|
349
397
|
owner: z.ZodOptional<z.ZodString>;
|
|
350
398
|
}, z.core.$strict>;
|
|
351
399
|
hint: z.ZodString;
|
|
400
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
401
|
+
action: z.ZodLiteral<"unregister_custom_constraint">;
|
|
402
|
+
removed: z.ZodLiteral<true>;
|
|
403
|
+
constraint_id: z.ZodString;
|
|
352
404
|
}, z.core.$strict>, z.ZodObject<{
|
|
353
405
|
action: z.ZodLiteral<"list_metrics_constraints">;
|
|
354
406
|
metrics: z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{MODE_REGISTRY_ACTIONS,ModeRegistryFields,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema}from'./modes.js';export const IndustryPackOperationInputSchema=z['object']({'action':z['enum'](['scaffold','list','scan','resolve','list_files','read_file','write_file','get','diff','reset','delete_file','create_file','create_dir','copy','move','rename',...MODE_REGISTRY_ACTIONS])['describe']('Action:\x20\x27scaffold\x27\x20=\x20generate\x20a\x20pack\x20template\x20skeleton\x20(requires\x20name);\x20'+'\x27list\x27\x20=\x20list\x20registered\x20packs;\x20\x27scan\x27\x20=\x20scan\x20+\x20register\x20packs\x20under\x20the\x20default\x20directory;\x20'+'\x27resolve\x27\x20=\x20return\x20the\x20industry\x20root\x20directory;\x20\x27list_files\x27\x20=\x20list\x20files\x20under\x20the\x20industry\x20directory;\x20'+'\x27read_file\x27\x20=\x20read\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20required);\x20'+'\x27write_file\x27\x20=\x20write\x20content\x20to\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20+\x20content\x20required);\x20'+'\x27get\x27\x20=\x20return\x20registered\x20layer\x20data\x20for\x20an\x20industry\x20(name\x20required;\x20dispute/compliance/supply/rules/playbook);\x20'+'\x27diff\x27\x20=\x20compare\x20registered\x20vs\x20on-disk\x20manifest\x20version/layers\x20(name\x20required);\x20'+'\x27reset\x27\x20=\x20restore\x20a\x20file\x20or\x20entire\x20pack\x20folder\x20to\x20its\x20pristine\x20annotated\x20template\x20(path\x20required).\x20'+'\x27delete_file\x27\x20=\x20delete\x20a\x20file\x20or\x20directory\x20(path\x20required).\x20'+'\x27create_file\x27\x20=\x20create\x20an\x20empty\x20file\x20(path\x20required;\x20content\x20optional).\x20'+'\x27create_dir\x27\x20=\x20create\x20a\x20directory\x20recursively\x20(path\x20required).\x20'+'\x27copy\x27\x20=\x20copy\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'\x27move\x27\x20/\x20\x27rename\x27\x20=\x20move\x20or\x20rename\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'Mode\x20registry\x20(industry/scenario\x20configuration):\x20\x27recommend_industry\x27\x20=\x20business\x20intent\x20→\x20top-3\x20'+'similar\x20industries\x20+\x20reference\x20examples;\x20\x27list_modes\x27\x20=\x20builtin\x20+\x20custom\x20modes;\x20\x27derive_user_mode\x27\x20=\x20'+'derive\x20a\x20custom\x20mode\x20from\x20a\x20builtin;\x20\x27evolve_user_mode\x27\x20=\x20iterate\x20an\x20existing\x20custom\x20mode;\x20'+'\x27register_user_mode\x27\x20=\x20register\x20a\x20fully\x20custom\x20mode;\x20\x27unregister_user_mode\x27\x20=\x20delete\x20a\x20custom\x20mode;\x20'+'\x27register_custom_metric\x27\x20/\x20\x27register_custom_constraint\x27\x20=\x20register\x20global\x20evaluation\x20metric/constraint;\x20'+'\x27list_metrics_constraints\x27\x20=\x20list\x20metrics\x20+\x20constraints\x20(filterable).'),'name':z['string']()['optional']()['describe']('Industry\x20name\x20(lowercase\x20snake_case,\x20e.g.\x20\x27life_service\x27);\x20required\x20for\x20scaffold\x20and\x20get.'),'path':z['string']()['optional']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20read_file,\x20write_file,\x20reset,\x20create_file,\x20create_dir).'),'content':z['string']()['optional']()['describe']('Text\x20content\x20to\x20write\x20(required\x20for\x20write_file;\x20optional\x20for\x20create_file).'),'from':z['string']()['optional']()['describe']('Source\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'to':z['string']()['optional']()['describe']('Destination\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),...ModeRegistryFields})['strict']();export const IndustryPackOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('scaffold'),'ok':z['boolean']()['describe']('Whether\x20the\x20skeleton\x20was\x20created.'),'dir':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20pack\x20directory.'),'files':z['array'](z['string']())['describe']('Created\x20file\x20paths\x20(relative\x20to\x20dir).'),'errors':z['array'](z['string']())['describe']('Validation/creation\x20errors\x20(empty\x20=\x20ok).')}),z['object']({'action':z['literal']('list'),'packs':z['array'](z['object']({'name':z['string'](),'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()}))['describe']('Currently\x20registered\x20packs.')}),z['object']({'action':z['literal']('scan'),'results':z['array'](z['object']({'ok':z['boolean'](),'errors':z['array'](z['string']()),'registered':z['array'](z['string']())}))['describe']('One\x20registration\x20result\x20per\x20scanned\x20pack\x20directory.')}),z['object']({'action':z['literal']('resolve'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.')}),z['object']({'action':z['literal']('list_files'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.'),'files':z['array'](z['object']({'path':z['string']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root.'),'is_dir':z['boolean'](),'size':z['number']()['describe']('File\x20size\x20in\x20bytes\x20(0\x20for\x20directories).'),'mtime':z['number']()['describe']('Last-modified\x20time\x20(epoch\x20ms).')}))['describe']('Files\x20under\x20the\x20industry\x20root.')}),z['object']({'action':z['literal']('read_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20read\x20file.'),'content':z['string']()['describe']('File\x20content\x20(text).')}),z['object']({'action':z['literal']('write_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20written\x20file.'),'ok':z['boolean']()['describe']('Whether\x20the\x20file\x20was\x20written.')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'dispute':z['unknown']()['optional']()['describe']('Registered\x20dispute\x20rules\x20(if\x20any).'),'compliance':z['unknown']()['optional']()['describe']('Registered\x20compliance\x20rules\x20(if\x20any).'),'supply':z['unknown']()['optional']()['describe']('Registered\x20supply\x20rules\x20(if\x20any).'),'rules':z['unknown']()['optional']()['describe']('Registered\x20declarative\x20industry\x20rules\x20(if\x20any).'),'playbook':z['unknown']()['optional']()['describe']('Registered\x20playbook\x20(if\x20any).')}),z['object']({'action':z['literal']('diff'),'name':z['string']()['describe']('Industry\x20name.'),'registered':z['object']({'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()})['nullable']()['describe']('Currently\x20registered\x20metadata.'),'disk':z['object']({'version':z['string'](),'layers':z['array'](z['string']())})['nullable']()['describe']('On-disk\x20manifest\x20metadata.'),'upgradable':z['boolean']()['describe']('Whether\x20the\x20on-disk\x20version\x20differs\x20from\x20registered.'),'layer_diff':z['object']({'added':z['array'](z['string']()),'removed':z['array'](z['string']())})['describe']('Layer\x20difference\x20(disk\x20vs\x20registered).')}),z['object']({'action':z['literal']('reset'),'ok':z['boolean']()['describe']('Whether\x20reset\x20succeeded.'),'layout':z['enum'](['merged','legacy'])['describe']('Layout\x20format\x20that\x20was\x20restored:\x20\x27merged\x27\x20(single\x20pack.json\x20+\x20playbook.md)\x20or\x20\x27legacy\x27\x20(split\x20files).'),'target':z['string']()['describe']('Normalised\x20reset\x20target\x20path\x20(pack\x20name\x20or\x20file).'),'restored_files':z['array'](z['string']())['describe']('Files\x20that\x20were\x20restored\x20to\x20pristine\x20annotated\x20templates.'),'errors':z['array'](z['string']())['describe']('Errors\x20encountered\x20during\x20reset.')}),z['object']({'action':z['literal']('delete_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20deleted\x20file\x20or\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20file.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_dir'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('copy'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('move'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('rename'),'from':z['string']()['describe']('Absolute\x20old\x20path.'),'to':z['string']()['describe']('Absolute\x20new\x20path.'),'ok':z['boolean']()}),...[RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema]])})['strict']();
|
|
1
|
+
import{z}from'zod';import{MODE_REGISTRY_ACTIONS,ModeRegistryFields,RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema}from'./modes.js';export const IndustryPackOperationInputSchema=z['object']({'action':z['enum'](['scaffold','list','scan','resolve','list_files','read_file','write_file','get','diff','reset','delete_file','create_file','create_dir','copy','move','rename',...MODE_REGISTRY_ACTIONS])['describe']('Action:\x20\x27scaffold\x27\x20=\x20generate\x20a\x20pack\x20template\x20skeleton\x20(requires\x20name);\x20'+'\x27list\x27\x20=\x20list\x20registered\x20packs;\x20\x27scan\x27\x20=\x20scan\x20+\x20register\x20packs\x20under\x20the\x20default\x20directory;\x20'+'\x27resolve\x27\x20=\x20return\x20the\x20industry\x20root\x20directory;\x20\x27list_files\x27\x20=\x20list\x20files\x20under\x20the\x20industry\x20directory;\x20'+'\x27read_file\x27\x20=\x20read\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20required);\x20'+'\x27write_file\x27\x20=\x20write\x20content\x20to\x20a\x20file\x20under\x20the\x20industry\x20directory\x20(path\x20+\x20content\x20required);\x20'+'\x27get\x27\x20=\x20return\x20registered\x20layer\x20data\x20for\x20an\x20industry\x20(name\x20required;\x20dispute/compliance/supply/rules/playbook);\x20'+'\x27diff\x27\x20=\x20compare\x20registered\x20vs\x20on-disk\x20manifest\x20version/layers\x20(name\x20required);\x20'+'\x27reset\x27\x20=\x20restore\x20a\x20file\x20or\x20entire\x20pack\x20folder\x20to\x20its\x20pristine\x20annotated\x20template\x20(path\x20required).\x20'+'\x27delete_file\x27\x20=\x20delete\x20a\x20file\x20or\x20directory\x20(path\x20required).\x20'+'\x27create_file\x27\x20=\x20create\x20an\x20empty\x20file\x20(path\x20required;\x20content\x20optional).\x20'+'\x27create_dir\x27\x20=\x20create\x20a\x20directory\x20recursively\x20(path\x20required).\x20'+'\x27copy\x27\x20=\x20copy\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'\x27move\x27\x20/\x20\x27rename\x27\x20=\x20move\x20or\x20rename\x20a\x20file\x20or\x20directory\x20(from\x20+\x20to\x20required).\x20'+'Mode\x20registry\x20(industry/scenario\x20configuration):\x20\x27recommend_industry\x27\x20=\x20business\x20intent\x20→\x20top-3\x20'+'similar\x20industries\x20+\x20reference\x20examples;\x20\x27list_modes\x27\x20=\x20builtin\x20+\x20custom\x20modes;\x20\x27derive_user_mode\x27\x20=\x20'+'derive\x20a\x20custom\x20mode\x20from\x20a\x20builtin;\x20\x27evolve_user_mode\x27\x20=\x20iterate\x20an\x20existing\x20custom\x20mode;\x20'+'\x27register_user_mode\x27\x20=\x20register\x20a\x20fully\x20custom\x20mode;\x20\x27unregister_user_mode\x27\x20=\x20delete\x20a\x20custom\x20mode;\x20'+'\x27register_custom_metric\x27\x20/\x20\x27register_custom_constraint\x27\x20=\x20register\x20global\x20evaluation\x20metric/constraint;\x20'+'\x27list_metrics_constraints\x27\x20=\x20list\x20metrics\x20+\x20constraints\x20(filterable).'),'name':z['string']()['optional']()['describe']('Industry\x20name\x20(lowercase\x20snake_case,\x20e.g.\x20\x27life_service\x27);\x20required\x20for\x20scaffold\x20and\x20get.'),'path':z['string']()['optional']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20read_file,\x20write_file,\x20reset,\x20create_file,\x20create_dir).'),'content':z['string']()['optional']()['describe']('Text\x20content\x20to\x20write\x20(required\x20for\x20write_file;\x20optional\x20for\x20create_file).'),'from':z['string']()['optional']()['describe']('Source\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),'to':z['string']()['optional']()['describe']('Destination\x20path\x20relative\x20to\x20the\x20industry\x20root\x20(required\x20for\x20copy/move/rename).'),...ModeRegistryFields})['strict']();export const IndustryPackOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('scaffold'),'ok':z['boolean']()['describe']('Whether\x20the\x20skeleton\x20was\x20created.'),'dir':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20pack\x20directory.'),'files':z['array'](z['string']())['describe']('Created\x20file\x20paths\x20(relative\x20to\x20dir).'),'errors':z['array'](z['string']())['describe']('Validation/creation\x20errors\x20(empty\x20=\x20ok).')}),z['object']({'action':z['literal']('list'),'packs':z['array'](z['object']({'name':z['string'](),'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()}))['describe']('Currently\x20registered\x20packs.')}),z['object']({'action':z['literal']('scan'),'results':z['array'](z['object']({'ok':z['boolean'](),'errors':z['array'](z['string']()),'registered':z['array'](z['string']())}))['describe']('One\x20registration\x20result\x20per\x20scanned\x20pack\x20directory.')}),z['object']({'action':z['literal']('resolve'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.')}),z['object']({'action':z['literal']('list_files'),'dir':z['string']()['describe']('Absolute\x20industry\x20root\x20directory.'),'files':z['array'](z['object']({'path':z['string']()['describe']('Path\x20relative\x20to\x20the\x20industry\x20root.'),'is_dir':z['boolean'](),'size':z['number']()['describe']('File\x20size\x20in\x20bytes\x20(0\x20for\x20directories).'),'mtime':z['number']()['describe']('Last-modified\x20time\x20(epoch\x20ms).')}))['describe']('Files\x20under\x20the\x20industry\x20root.')}),z['object']({'action':z['literal']('read_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20read\x20file.'),'content':z['string']()['describe']('File\x20content\x20(text).')}),z['object']({'action':z['literal']('write_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20written\x20file.'),'ok':z['boolean']()['describe']('Whether\x20the\x20file\x20was\x20written.')}),z['object']({'action':z['literal']('get'),'category':z['string']()['describe']('Industry\x20name.'),'dispute':z['unknown']()['optional']()['describe']('Registered\x20dispute\x20rules\x20(if\x20any).'),'compliance':z['unknown']()['optional']()['describe']('Registered\x20compliance\x20rules\x20(if\x20any).'),'supply':z['unknown']()['optional']()['describe']('Registered\x20supply\x20rules\x20(if\x20any).'),'rules':z['unknown']()['optional']()['describe']('Registered\x20declarative\x20industry\x20rules\x20(if\x20any).'),'playbook':z['unknown']()['optional']()['describe']('Registered\x20playbook\x20(if\x20any).')}),z['object']({'action':z['literal']('diff'),'name':z['string']()['describe']('Industry\x20name.'),'registered':z['object']({'version':z['string'](),'layers':z['array'](z['string']()),'registered_at':z['number']()})['nullable']()['describe']('Currently\x20registered\x20metadata.'),'disk':z['object']({'version':z['string'](),'layers':z['array'](z['string']())})['nullable']()['describe']('On-disk\x20manifest\x20metadata.'),'upgradable':z['boolean']()['describe']('Whether\x20the\x20on-disk\x20version\x20differs\x20from\x20registered.'),'layer_diff':z['object']({'added':z['array'](z['string']()),'removed':z['array'](z['string']())})['describe']('Layer\x20difference\x20(disk\x20vs\x20registered).')}),z['object']({'action':z['literal']('reset'),'ok':z['boolean']()['describe']('Whether\x20reset\x20succeeded.'),'layout':z['enum'](['merged','legacy'])['describe']('Layout\x20format\x20that\x20was\x20restored:\x20\x27merged\x27\x20(single\x20pack.json\x20+\x20playbook.md)\x20or\x20\x27legacy\x27\x20(split\x20files).'),'target':z['string']()['describe']('Normalised\x20reset\x20target\x20path\x20(pack\x20name\x20or\x20file).'),'restored_files':z['array'](z['string']())['describe']('Files\x20that\x20were\x20restored\x20to\x20pristine\x20annotated\x20templates.'),'errors':z['array'](z['string']())['describe']('Errors\x20encountered\x20during\x20reset.')}),z['object']({'action':z['literal']('delete_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20deleted\x20file\x20or\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_file'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20file.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('create_dir'),'path':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20created\x20directory.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('copy'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('move'),'from':z['string']()['describe']('Absolute\x20source\x20path.'),'to':z['string']()['describe']('Absolute\x20destination\x20path.'),'ok':z['boolean']()}),z['object']({'action':z['literal']('rename'),'from':z['string']()['describe']('Absolute\x20old\x20path.'),'to':z['string']()['describe']('Absolute\x20new\x20path.'),'ok':z['boolean']()}),...[RecommendIndustryResultSchema,ListModesResultSchema,DeriveUserModeResultSchema,EvolveUserModeResultSchema,RegisterUserModeResultSchema,UnregisterUserModeResultSchema,RegisterCustomMetricResultSchema,UnregisterCustomMetricResultSchema,RegisterCustomConstraintResultSchema,UnregisterCustomConstraintResultSchema,ListMetricsConstraintsResultSchema]])})['strict']();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const MODE_REGISTRY_ACTIONS: readonly ["recommend_industry", "list_modes", "derive_user_mode", "evolve_user_mode", "register_user_mode", "unregister_user_mode", "register_custom_metric", "register_custom_constraint", "list_metrics_constraints"];
|
|
2
|
+
export declare const MODE_REGISTRY_ACTIONS: readonly ["recommend_industry", "list_modes", "derive_user_mode", "evolve_user_mode", "register_user_mode", "unregister_user_mode", "register_custom_metric", "unregister_custom_metric", "register_custom_constraint", "unregister_custom_constraint", "list_metrics_constraints"];
|
|
3
3
|
export declare const ModeRegistryFields: {
|
|
4
4
|
readonly intent: z.ZodOptional<z.ZodString>;
|
|
5
|
+
readonly strategy: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
5
6
|
readonly mode_source: z.ZodOptional<z.ZodString>;
|
|
6
7
|
readonly mode_name: z.ZodOptional<z.ZodString>;
|
|
7
8
|
readonly mode_display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -64,16 +65,57 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
|
|
|
64
65
|
inferred_traits: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
66
|
inference_confidence: z.ZodNumber;
|
|
66
67
|
matched_keywords: z.ZodArray<z.ZodString>;
|
|
68
|
+
strategy_intents: z.ZodArray<z.ZodObject<{
|
|
69
|
+
objective: z.ZodEnum<{
|
|
70
|
+
sales_priority: "sales_priority";
|
|
71
|
+
profit_priority: "profit_priority";
|
|
72
|
+
buyer_screening: "buyer_screening";
|
|
73
|
+
gross_margin_control: "gross_margin_control";
|
|
74
|
+
}>;
|
|
75
|
+
metrics: z.ZodArray<z.ZodString>;
|
|
76
|
+
levers: z.ZodArray<z.ZodEnum<{
|
|
77
|
+
reward: "reward";
|
|
78
|
+
buy_guard: "buy_guard";
|
|
79
|
+
discount: "discount";
|
|
80
|
+
machine_design: "machine_design";
|
|
81
|
+
}>>;
|
|
82
|
+
target: z.ZodString;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
lever_suggestions: z.ZodArray<z.ZodObject<{
|
|
85
|
+
lever: z.ZodEnum<{
|
|
86
|
+
reward: "reward";
|
|
87
|
+
buy_guard: "buy_guard";
|
|
88
|
+
discount: "discount";
|
|
89
|
+
machine_design: "machine_design";
|
|
90
|
+
}>;
|
|
91
|
+
objective: z.ZodEnum<{
|
|
92
|
+
sales_priority: "sales_priority";
|
|
93
|
+
profit_priority: "profit_priority";
|
|
94
|
+
buyer_screening: "buyer_screening";
|
|
95
|
+
gross_margin_control: "gross_margin_control";
|
|
96
|
+
}>;
|
|
97
|
+
action: z.ZodString;
|
|
98
|
+
target: z.ZodString;
|
|
99
|
+
}, z.core.$strict>>;
|
|
67
100
|
recommendations: z.ZodArray<z.ZodObject<{
|
|
68
101
|
industry: z.ZodString;
|
|
69
102
|
similarity: z.ZodNumber;
|
|
70
103
|
matched_traits: z.ZodArray<z.ZodString>;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
104
|
+
strategy_alignment: z.ZodOptional<z.ZodObject<{
|
|
105
|
+
score: z.ZodNumber;
|
|
106
|
+
matched_levers: z.ZodArray<z.ZodEnum<{
|
|
107
|
+
reward: "reward";
|
|
108
|
+
buy_guard: "buy_guard";
|
|
109
|
+
discount: "discount";
|
|
110
|
+
machine_design: "machine_design";
|
|
111
|
+
}>>;
|
|
112
|
+
missing_levers: z.ZodArray<z.ZodEnum<{
|
|
113
|
+
reward: "reward";
|
|
114
|
+
buy_guard: "buy_guard";
|
|
115
|
+
discount: "discount";
|
|
116
|
+
machine_design: "machine_design";
|
|
117
|
+
}>>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
77
119
|
}, z.core.$strict>>;
|
|
78
120
|
hint: z.ZodString;
|
|
79
121
|
}, z.core.$strict>;
|
|
@@ -198,6 +240,11 @@ export declare const RegisterCustomMetricResultSchema: z.ZodObject<{
|
|
|
198
240
|
}, z.core.$strict>;
|
|
199
241
|
hint: z.ZodString;
|
|
200
242
|
}, z.core.$strict>;
|
|
243
|
+
export declare const UnregisterCustomMetricResultSchema: z.ZodObject<{
|
|
244
|
+
action: z.ZodLiteral<"unregister_custom_metric">;
|
|
245
|
+
removed: z.ZodLiteral<true>;
|
|
246
|
+
metric_id: z.ZodString;
|
|
247
|
+
}, z.core.$strict>;
|
|
201
248
|
export declare const RegisterCustomConstraintResultSchema: z.ZodObject<{
|
|
202
249
|
action: z.ZodLiteral<"register_custom_constraint">;
|
|
203
250
|
constraint: z.ZodObject<{
|
|
@@ -222,6 +269,11 @@ export declare const RegisterCustomConstraintResultSchema: z.ZodObject<{
|
|
|
222
269
|
}, z.core.$strict>;
|
|
223
270
|
hint: z.ZodString;
|
|
224
271
|
}, z.core.$strict>;
|
|
272
|
+
export declare const UnregisterCustomConstraintResultSchema: z.ZodObject<{
|
|
273
|
+
action: z.ZodLiteral<"unregister_custom_constraint">;
|
|
274
|
+
removed: z.ZodLiteral<true>;
|
|
275
|
+
constraint_id: z.ZodString;
|
|
276
|
+
}, z.core.$strict>;
|
|
225
277
|
export declare const ListMetricsConstraintsResultSchema: z.ZodObject<{
|
|
226
278
|
action: z.ZodLiteral<"list_metrics_constraints">;
|
|
227
279
|
metrics: z.ZodArray<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';export const MODE_REGISTRY_ACTIONS=['recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','register_custom_constraint','list_metrics_constraints'];export const ModeRegistryFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20'+'custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).')};const RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'reference_examples':z['array'](z['object']({'file':z['string']()['describe']('Example\x20file\x20name\x20(fetch\x20via\x20schema_query\x20search_examples).'),'title':z['string'](),'operation_type':z['string'](),'verified':z['boolean']()})['strict']())['describe']('Verified\x20reference\x20examples\x20for\x20this\x20industry\x20(top\x203).')})['strict']();export const RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20+\x20reference\x20examples.'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(pass\x20the\x20industry\x20to\x20analyze_intent\x20/\x20merchant_guide\x20via\x20project_industry).')})['strict']();const ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict']();export const ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict']();export const DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict']();export const EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict']();export const RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict']();export const UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict']();const MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict']();const ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict']();export const ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict']();
|
|
1
|
+
import{z}from'zod';export const MODE_REGISTRY_ACTIONS=['recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','unregister_custom_metric','register_custom_constraint','unregister_custom_constraint','list_metrics_constraints'];export const ModeRegistryFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'strategy':z['union']([z['string']()['max'](0x7d0),z['array'](z['string']()['max'](0x7d0))['max'](0xa)])['optional']()['describe']('Persona\x20strategy\x20statement(s)\x20for\x20recommend_industry\x20(e.g.\x20\x27push\x20sales\x20volume\x20first\x27\x20/\x20'+'\x27keep\x20gross\x20margin\x20>=\x2030%\x27).\x20Bridged\x20into\x20mode\x20ranking:\x20objectives\x20resolve\x20to\x20deterministic\x20'+'infrastructure\x20levers\x20(discount\x20/\x20reward\x20/\x20buy_guard\x20/\x20machine_design)\x20and\x20re-rank\x20the\x20'+'industry\x20recommendations\x20by\x20lever\x20alignment.\x20Pass\x20the\x20persona\x27s\x20strategy[]\x20entries\x20here.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20'+'custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).')};const RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'strategy_alignment':z['object']({'score':z['number']()['describe']('Lever\x20alignment\x200-1\x20(matched\x20/\x20required\x20levers).'),'matched_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20supports.'),'missing_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20lacks.')})['optional']()['describe']('Present\x20only\x20when\x20a\x20strategy\x20was\x20provided:\x20lever\x20alignment\x20of\x20the\x20industry\x20mode.')})['strict']();export const RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'strategy_intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']())['describe']('Strategy\x20intents\x20resolved\x20from\x20the\x20provided\x20persona\x20strategy\x20statements\x20(empty\x20if\x20none\x20matched).'),'lever_suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string']()['describe']('Deterministic\x20on-chain\x20action\x20that\x20pulls\x20the\x20lever.'),'target':z['string']()})['strict']())['describe']('Concrete\x20lever\x20suggestions\x20for\x20the\x20resolved\x20strategy\x20intents.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20(re-ranked\x20by\x20lever\x20alignment\x20when\x20strategy\x20provided).'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(pass\x20the\x20industry\x20to\x20analyze_intent\x20/\x20merchant_guide\x20via\x20project_industry).')})['strict']();const ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict']();export const ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict']();export const DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict']();export const EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict']();export const RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict']();export const UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict']();const MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict']();export const UnregisterCustomMetricResultSchema=z['object']({'action':z['literal']('unregister_custom_metric'),'removed':z['literal'](!![]),'metric_id':z['string']()})['strict']();const ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict']();export const UnregisterCustomConstraintResultSchema=z['object']({'action':z['literal']('unregister_custom_constraint'),'removed':z['literal'](!![]),'constraint_id':z['string']()})['strict']();export const ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict']();
|
|
@@ -12,21 +12,21 @@ export declare const IntentRadarInputSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
12
12
|
arbitrator: "arbitrator";
|
|
13
13
|
}>>;
|
|
14
14
|
target_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15
|
+
TreasuryEvent: "TreasuryEvent";
|
|
16
|
+
RewardClaimEvent: "RewardClaimEvent";
|
|
17
|
+
RewardFundEvent: "RewardFundEvent";
|
|
18
|
+
AllocationEvent: "AllocationEvent";
|
|
19
|
+
NewPaymentEvent: "NewPaymentEvent";
|
|
15
20
|
NewOrderEvent: "NewOrderEvent";
|
|
21
|
+
ArbEvent: "ArbEvent";
|
|
16
22
|
ServiceEvent: "ServiceEvent";
|
|
17
23
|
DemandChangedEvent: "DemandChangedEvent";
|
|
18
|
-
ArbEvent: "ArbEvent";
|
|
19
24
|
VoteEvent: "VoteEvent";
|
|
20
25
|
FeedbackEvent: "FeedbackEvent";
|
|
21
26
|
DemandPresentEvent: "DemandPresentEvent";
|
|
22
27
|
DemandFeedbackEvent: "DemandFeedbackEvent";
|
|
23
28
|
ProgressEvent: "ProgressEvent";
|
|
24
29
|
NewEntityEvent: "NewEntityEvent";
|
|
25
|
-
AllocationEvent: "AllocationEvent";
|
|
26
|
-
TreasuryEvent: "TreasuryEvent";
|
|
27
|
-
RewardClaimEvent: "RewardClaimEvent";
|
|
28
|
-
RewardFundEvent: "RewardFundEvent";
|
|
29
|
-
NewPaymentEvent: "NewPaymentEvent";
|
|
30
30
|
}>>>;
|
|
31
31
|
}, z.core.$strict>, z.ZodObject<{
|
|
32
32
|
action: z.ZodLiteral<"list">;
|
|
@@ -40,8 +40,8 @@ export declare const IntentRadarInputSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
40
40
|
account: z.ZodOptional<z.ZodString>;
|
|
41
41
|
events: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
network: z.ZodOptional<z.ZodEnum<{
|
|
43
|
-
testnet: "testnet";
|
|
44
43
|
mainnet: "mainnet";
|
|
44
|
+
testnet: "testnet";
|
|
45
45
|
}>>;
|
|
46
46
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
47
47
|
}, z.core.$strict>], "action">;
|
|
@@ -71,21 +71,21 @@ export declare const IntentRadarOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
71
71
|
}>>;
|
|
72
72
|
keywords: z.ZodArray<z.ZodString>;
|
|
73
73
|
target_types: z.ZodArray<z.ZodEnum<{
|
|
74
|
+
TreasuryEvent: "TreasuryEvent";
|
|
75
|
+
RewardClaimEvent: "RewardClaimEvent";
|
|
76
|
+
RewardFundEvent: "RewardFundEvent";
|
|
77
|
+
AllocationEvent: "AllocationEvent";
|
|
78
|
+
NewPaymentEvent: "NewPaymentEvent";
|
|
74
79
|
NewOrderEvent: "NewOrderEvent";
|
|
80
|
+
ArbEvent: "ArbEvent";
|
|
75
81
|
ServiceEvent: "ServiceEvent";
|
|
76
82
|
DemandChangedEvent: "DemandChangedEvent";
|
|
77
|
-
ArbEvent: "ArbEvent";
|
|
78
83
|
VoteEvent: "VoteEvent";
|
|
79
84
|
FeedbackEvent: "FeedbackEvent";
|
|
80
85
|
DemandPresentEvent: "DemandPresentEvent";
|
|
81
86
|
DemandFeedbackEvent: "DemandFeedbackEvent";
|
|
82
87
|
ProgressEvent: "ProgressEvent";
|
|
83
88
|
NewEntityEvent: "NewEntityEvent";
|
|
84
|
-
AllocationEvent: "AllocationEvent";
|
|
85
|
-
TreasuryEvent: "TreasuryEvent";
|
|
86
|
-
RewardClaimEvent: "RewardClaimEvent";
|
|
87
|
-
RewardFundEvent: "RewardFundEvent";
|
|
88
|
-
NewPaymentEvent: "NewPaymentEvent";
|
|
89
89
|
}>>;
|
|
90
90
|
created_at: z.ZodNumber;
|
|
91
91
|
updated_at: z.ZodNumber;
|
|
@@ -116,21 +116,21 @@ export declare const IntentRadarOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
116
116
|
}>>;
|
|
117
117
|
keywords: z.ZodArray<z.ZodString>;
|
|
118
118
|
target_types: z.ZodArray<z.ZodEnum<{
|
|
119
|
+
TreasuryEvent: "TreasuryEvent";
|
|
120
|
+
RewardClaimEvent: "RewardClaimEvent";
|
|
121
|
+
RewardFundEvent: "RewardFundEvent";
|
|
122
|
+
AllocationEvent: "AllocationEvent";
|
|
123
|
+
NewPaymentEvent: "NewPaymentEvent";
|
|
119
124
|
NewOrderEvent: "NewOrderEvent";
|
|
125
|
+
ArbEvent: "ArbEvent";
|
|
120
126
|
ServiceEvent: "ServiceEvent";
|
|
121
127
|
DemandChangedEvent: "DemandChangedEvent";
|
|
122
|
-
ArbEvent: "ArbEvent";
|
|
123
128
|
VoteEvent: "VoteEvent";
|
|
124
129
|
FeedbackEvent: "FeedbackEvent";
|
|
125
130
|
DemandPresentEvent: "DemandPresentEvent";
|
|
126
131
|
DemandFeedbackEvent: "DemandFeedbackEvent";
|
|
127
132
|
ProgressEvent: "ProgressEvent";
|
|
128
133
|
NewEntityEvent: "NewEntityEvent";
|
|
129
|
-
AllocationEvent: "AllocationEvent";
|
|
130
|
-
TreasuryEvent: "TreasuryEvent";
|
|
131
|
-
RewardClaimEvent: "RewardClaimEvent";
|
|
132
|
-
RewardFundEvent: "RewardFundEvent";
|
|
133
|
-
NewPaymentEvent: "NewPaymentEvent";
|
|
134
134
|
}>>;
|
|
135
135
|
created_at: z.ZodNumber;
|
|
136
136
|
updated_at: z.ZodNumber;
|