@wowok/agent-mcp 3.1.2 → 3.1.4
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/config/config-audit.spec.d.ts +1 -0
- package/dist/config/config-audit.spec.js +1 -0
- package/dist/config/exposure.d.ts +108 -0
- package/dist/config/exposure.js +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +1 -1
- package/dist/config/judgment.d.ts +1228 -0
- package/dist/config/judgment.js +1 -0
- package/dist/config/judgment.spec.d.ts +1 -0
- package/dist/config/judgment.spec.js +1 -0
- package/dist/config/rule-engine.d.ts +299 -0
- package/dist/config/rule-engine.js +1 -0
- package/dist/config/rule-engine.spec.d.ts +1 -0
- package/dist/config/rule-engine.spec.js +1 -0
- package/dist/config/runtime.js +1 -1
- package/dist/config/severity.d.ts +7 -0
- package/dist/config/severity.js +1 -0
- package/dist/customer/index.d.ts +3 -9
- package/dist/customer/index.js +1 -1
- package/dist/customer/industry-risks.d.ts +3 -17
- package/dist/customer/industry-risks.js +1 -1
- package/dist/customer/order-monitor.d.ts +3 -1
- package/dist/customer/order-monitor.js +1 -1
- package/dist/customer/types.d.ts +1 -165
- package/dist/customer/types.js +1 -1
- package/dist/customer/user-preferences.d.ts +0 -49
- package/dist/customer/user-preferences.js +1 -1
- package/dist/evaluation/acceptance.d.ts +1 -0
- package/dist/evaluation/acceptance.js +1 -1
- package/dist/evaluation/arbitration-game.js +1 -1
- package/dist/evaluation/architecture.spec.d.ts +1 -0
- package/dist/evaluation/architecture.spec.js +1 -0
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.d.ts +16 -0
- package/dist/evaluation/builtins/graph-service.js +1 -0
- package/dist/evaluation/builtins/graph-service.spec.d.ts +1 -0
- package/dist/evaluation/builtins/graph-service.spec.js +1 -0
- package/dist/evaluation/builtins/index.d.ts +1 -1
- package/dist/evaluation/builtins/index.js +1 -1
- package/dist/evaluation/builtins/purity.spec.d.ts +1 -0
- package/dist/evaluation/builtins/purity.spec.js +1 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/facets/catalog.d.ts +19 -0
- package/dist/evaluation/facets/catalog.js +1 -0
- package/dist/evaluation/game-strategy.d.ts +2 -2
- package/dist/evaluation/game-strategy.js +1 -1
- package/dist/evaluation/guard-scan.d.ts +10 -0
- package/dist/evaluation/guard-scan.js +1 -0
- package/dist/evaluation/match-operation.d.ts +2 -2
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/standards.d.ts +9 -0
- package/dist/evaluation/standards.js +1 -0
- package/dist/evaluation/standards.spec.d.ts +1 -0
- package/dist/evaluation/standards.spec.js +1 -0
- package/dist/evaluation/types.d.ts +11 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/business-modules.js +1 -1
- package/dist/extensions/custom-registry-file.js +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-audit.spec.d.ts +1 -0
- package/dist/extensions/industry-audit.spec.js +1 -0
- package/dist/extensions/industry-layers.d.ts +14 -5
- package/dist/extensions/industry-layers.js +1 -1
- package/dist/extensions/industry-pack.d.ts +2 -0
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/mode-evaluator.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/graph/onchain/analyze.d.ts +16 -1
- package/dist/graph/onchain/analyze.js +1 -1
- package/dist/graph/onchain/analyze.spec.js +1 -1
- package/dist/graph/onchain/dataplane.d.ts +1 -1
- package/dist/graph/onchain/dataplane.js +1 -1
- package/dist/graph/onchain/edge-batch.spec.d.ts +1 -0
- package/dist/graph/onchain/edge-batch.spec.js +1 -0
- package/dist/graph/onchain/edge-schema.d.ts +11 -2
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/graph/onchain/entity-profile.spec.d.ts +1 -0
- package/dist/graph/onchain/entity-profile.spec.js +1 -0
- package/dist/graph/onchain/event-history.spec.d.ts +1 -0
- package/dist/graph/onchain/event-history.spec.js +1 -0
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exploration.d.ts +28 -0
- package/dist/graph/onchain/exploration.js +1 -0
- package/dist/graph/onchain/exploration.spec.d.ts +1 -0
- package/dist/graph/onchain/exploration.spec.js +1 -0
- package/dist/graph/onchain/exposure.d.ts +18 -0
- package/dist/graph/onchain/exposure.js +1 -0
- package/dist/graph/onchain/exposure.spec.d.ts +1 -0
- package/dist/graph/onchain/exposure.spec.js +1 -0
- package/dist/graph/onchain/extract-deep.spec.d.ts +1 -0
- package/dist/graph/onchain/extract-deep.spec.js +1 -0
- package/dist/graph/onchain/extract.d.ts +11 -3
- package/dist/graph/onchain/extract.js +1 -1
- package/dist/graph/onchain/facet-projection.d.ts +99 -0
- package/dist/graph/onchain/facet-projection.js +1 -0
- package/dist/graph/onchain/facet-projection.spec.d.ts +1 -0
- package/dist/graph/onchain/facet-projection.spec.js +1 -0
- package/dist/graph/onchain/facts.d.ts +103 -0
- package/dist/graph/onchain/facts.js +1 -0
- package/dist/graph/onchain/facts.spec.d.ts +1 -0
- package/dist/graph/onchain/facts.spec.js +1 -0
- package/dist/graph/onchain/field-manifest.d.ts +29 -0
- package/dist/graph/onchain/field-manifest.js +1 -0
- package/dist/graph/onchain/field-manifest.spec.d.ts +1 -0
- package/dist/graph/onchain/field-manifest.spec.js +1 -0
- package/dist/graph/onchain/fixtures.d.ts +80 -0
- package/dist/graph/onchain/fixtures.js +1 -0
- package/dist/graph/onchain/fixtures.spec.d.ts +1 -0
- package/dist/graph/onchain/fixtures.spec.js +1 -0
- package/dist/graph/onchain/graph-policy.spec.d.ts +1 -0
- package/dist/graph/onchain/graph-policy.spec.js +1 -0
- package/dist/graph/onchain/index.d.ts +14 -2
- package/dist/graph/onchain/index.js +1 -1
- package/dist/graph/onchain/interest.js +1 -1
- package/dist/graph/onchain/interest.spec.js +1 -1
- package/dist/graph/onchain/label-lint.spec.d.ts +1 -0
- package/dist/graph/onchain/label-lint.spec.js +1 -0
- package/dist/graph/onchain/names.d.ts +23 -0
- package/dist/graph/onchain/names.js +1 -0
- package/dist/graph/onchain/names.spec.d.ts +1 -0
- package/dist/graph/onchain/names.spec.js +1 -0
- package/dist/graph/onchain/onchain.spec.js +1 -1
- package/dist/graph/onchain/policy.d.ts +8 -0
- package/dist/graph/onchain/policy.js +1 -0
- package/dist/graph/onchain/proposal-graph.d.ts +11 -0
- package/dist/graph/onchain/proposal-graph.js +1 -0
- package/dist/graph/onchain/proposal-graph.spec.d.ts +1 -0
- package/dist/graph/onchain/proposal-graph.spec.js +1 -0
- package/dist/graph/onchain/sdk-batch.d.ts +5 -1
- package/dist/graph/onchain/sdk-batch.js +1 -1
- package/dist/graph/onchain/strategy.d.ts +16 -0
- package/dist/graph/onchain/strategy.js +1 -1
- package/dist/graph/onchain/strategy.spec.js +1 -1
- package/dist/graph/onchain/synthesis.d.ts +20 -0
- package/dist/graph/onchain/synthesis.js +1 -0
- package/dist/graph/onchain/synthesis.spec.d.ts +1 -0
- package/dist/graph/onchain/synthesis.spec.js +1 -0
- package/dist/graph/onchain/table-ledger.spec.d.ts +1 -0
- package/dist/graph/onchain/table-ledger.spec.js +1 -0
- package/dist/graph/onchain/types.d.ts +57 -7
- package/dist/graph/onchain/viewport.d.ts +1 -0
- package/dist/graph/onchain/viewport.js +1 -1
- package/dist/harness/index.d.ts +1 -5
- package/dist/harness/index.js +1 -1
- package/dist/harness/verify.d.ts +6 -1
- package/dist/harness/verify.js +1 -1
- package/dist/index.js +1 -1
- package/dist/keeper/keeper.spec.js +1 -1
- package/dist/knowledge/alloc-audit-policy.spec.d.ts +1 -0
- package/dist/knowledge/alloc-audit-policy.spec.js +1 -0
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-puzzle.d.ts +1 -1
- package/dist/knowledge/allocation-puzzle.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +4 -3
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/allocation-templates.js +1 -1
- package/dist/knowledge/arb-risk.d.ts +6 -6
- package/dist/knowledge/arb-risk.js +1 -1
- package/dist/knowledge/arbitration-ledger.d.ts +4 -4
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/arbitration-puzzle.d.ts +1 -1
- package/dist/knowledge/arbitration-puzzle.js +1 -1
- package/dist/knowledge/arbitration-risk.d.ts +4 -3
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/baselines/guard-lint-baseline.spec.d.ts +1 -0
- package/dist/knowledge/baselines/guard-lint-baseline.spec.js +1 -0
- package/dist/knowledge/baselines/judgment-baselines.json +289 -0
- package/dist/knowledge/baselines/risk-baselines.spec.d.ts +1 -0
- package/dist/knowledge/baselines/risk-baselines.spec.js +1 -0
- package/dist/knowledge/baselines/risk-cases.d.ts +8 -0
- package/dist/knowledge/baselines/risk-cases.js +1 -0
- package/dist/knowledge/baselines/rules/alloc_audit.json +290 -0
- package/dist/knowledge/baselines/rules/allocation.json +492 -0
- package/dist/knowledge/baselines/rules/arb.json +155 -0
- package/dist/knowledge/baselines/rules/arbitration.json +366 -0
- package/dist/knowledge/baselines/rules/bridge.json +197 -0
- package/dist/knowledge/baselines/rules/contact.json +152 -0
- package/dist/knowledge/baselines/rules/demand.json +158 -0
- package/dist/knowledge/baselines/rules/graph.json +453 -0
- package/dist/knowledge/baselines/rules/guard.json +981 -0
- package/dist/knowledge/baselines/rules/machine.json +706 -0
- package/dist/knowledge/baselines/rules/order.json +549 -0
- package/dist/knowledge/baselines/rules/payment.json +205 -0
- package/dist/knowledge/baselines/rules/permission.json +330 -0
- package/dist/knowledge/baselines/rules/personal.json +139 -0
- package/dist/knowledge/baselines/rules/progress.json +346 -0
- package/dist/knowledge/baselines/rules/proof.json +158 -0
- package/dist/knowledge/baselines/rules/registrar.json +159 -0
- package/dist/knowledge/baselines/rules/repository.json +244 -0
- package/dist/knowledge/baselines/rules/resource.json +117 -0
- package/dist/knowledge/baselines/rules/reward.json +471 -0
- package/dist/knowledge/baselines/rules/service.json +595 -0
- package/dist/knowledge/baselines/rules/treasury.json +440 -0
- package/dist/knowledge/baselines/rules/util.json +101 -0
- package/dist/knowledge/bridge-risk.d.ts +6 -6
- package/dist/knowledge/bridge-risk.js +1 -1
- package/dist/knowledge/builtin-templates.d.ts +26 -0
- package/dist/knowledge/builtin-templates.js +1 -0
- package/dist/knowledge/contact-risk.d.ts +6 -6
- package/dist/knowledge/contact-risk.js +1 -1
- package/dist/knowledge/contract-invariants.d.ts +1 -0
- package/dist/knowledge/contract-invariants.js +1 -1
- package/dist/knowledge/demand-risk.d.ts +6 -6
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/facts-sync.spec.d.ts +1 -0
- package/dist/knowledge/facts-sync.spec.js +1 -0
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-eval.d.ts +15 -0
- package/dist/knowledge/guard-eval.js +1 -0
- package/dist/knowledge/guard-eval.spec.d.ts +1 -0
- package/dist/knowledge/guard-eval.spec.js +1 -0
- package/dist/knowledge/guard-field-cognition.d.ts +1 -1
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-ledger.js +1 -1
- package/dist/knowledge/guard-lint.d.ts +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-risk.d.ts +7 -19
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +51 -45
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/industry-rule-node.d.ts +7 -0
- package/dist/knowledge/industry-rule-node.js +1 -0
- package/dist/knowledge/industry-strategy.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-risk.d.ts +4 -7
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-templates.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/migration-preflight.js +1 -1
- package/dist/knowledge/operation-dictionary.js +1 -1
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-puzzle.d.ts +3 -3
- package/dist/knowledge/order-puzzle.js +1 -1
- package/dist/knowledge/order-risk.d.ts +7 -12
- package/dist/knowledge/order-risk.js +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/passport-ledger.js +1 -1
- package/dist/knowledge/passport-templates.js +1 -1
- package/dist/knowledge/payment-risk.d.ts +8 -7
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/payment-tracker.js +1 -1
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/permission-puzzle.d.ts +12 -12
- package/dist/knowledge/permission-puzzle.js +1 -1
- package/dist/knowledge/permission-risk.d.ts +4 -10
- package/dist/knowledge/permission-risk.js +1 -1
- package/dist/knowledge/permission-templates.js +1 -1
- package/dist/knowledge/personal-risk.d.ts +6 -6
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-puzzle.d.ts +2 -2
- package/dist/knowledge/progress-puzzle.js +1 -1
- package/dist/knowledge/progress-risk.d.ts +4 -3
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/proof-risk.d.ts +6 -6
- package/dist/knowledge/proof-risk.js +1 -1
- package/dist/knowledge/puzzle-projections.d.ts +11 -0
- package/dist/knowledge/puzzle-projections.js +1 -0
- package/dist/knowledge/recipient-constraint.d.ts +20 -1
- package/dist/knowledge/recipient-constraint.js +1 -1
- package/dist/knowledge/registrar-risk.d.ts +6 -6
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/repository-risk.d.ts +7 -7
- package/dist/knowledge/repository-risk.js +1 -1
- package/dist/knowledge/resource-risk.d.ts +6 -6
- package/dist/knowledge/resource-risk.js +1 -1
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-puzzle.d.ts +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +5 -6
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/rule-node-analyzers.d.ts +43 -0
- package/dist/knowledge/rule-node-analyzers.js +1 -0
- package/dist/knowledge/rule-node-analyzers.spec.d.ts +1 -0
- package/dist/knowledge/rule-node-analyzers.spec.js +1 -0
- package/dist/knowledge/rule-outcome.d.ts +5 -0
- package/dist/knowledge/rule-outcome.js +1 -0
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +2 -2
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/scenario-topology.js +1 -1
- package/dist/knowledge/service-allocator-audit-node.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-puzzle.d.ts +2 -2
- package/dist/knowledge/service-puzzle.js +1 -1
- package/dist/knowledge/service-risk-node.js +1 -1
- package/dist/knowledge/service-risk.d.ts +4 -4
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/service-templates.js +1 -1
- package/dist/knowledge/strategy-manuals.d.ts +1 -1
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-loader.d.ts +84 -0
- package/dist/knowledge/template-loader.js +1 -0
- package/dist/knowledge/template-loader.spec.d.ts +1 -0
- package/dist/knowledge/template-loader.spec.js +1 -0
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -0
- package/dist/knowledge/template-scanner.spec.d.ts +1 -0
- package/dist/knowledge/template-scanner.spec.js +1 -0
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-ledger.d.ts +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-puzzle.d.ts +3 -3
- package/dist/knowledge/treasury-puzzle.js +1 -1
- package/dist/knowledge/treasury-risk.d.ts +6 -4
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/treasury-templates.js +1 -1
- package/dist/knowledge/util-risk.d.ts +6 -6
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/arbitrator-interest.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/persona/analyzer.js +1 -1
- package/dist/persona/bridge.js +1 -1
- package/dist/persona/facet-profile.d.ts +33 -0
- package/dist/persona/facet-profile.js +1 -0
- package/dist/persona/index.js +1 -1
- package/dist/persona/model.d.ts +2 -1
- package/dist/persona/model.js +1 -1
- package/dist/persona/persona-audit.spec.d.ts +1 -0
- package/dist/persona/persona-audit.spec.js +1 -0
- package/dist/persona/topology-focus.d.ts +2 -2
- package/dist/persona/topology-focus.js +1 -1
- package/dist/persona/types.d.ts +14 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/facet-money.d.ts +33 -0
- package/dist/playbooks/service-build/facet-money.js +1 -0
- package/dist/playbooks/service-build/facet-money.spec.d.ts +1 -0
- package/dist/playbooks/service-build/facet-money.spec.js +1 -0
- package/dist/playbooks/service-build/machine-panorama.d.ts +20 -0
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +2 -2
- package/dist/playbooks/service-build/migration-planner.d.ts +43 -0
- package/dist/playbooks/service-build/migration-planner.js +1 -0
- package/dist/playbooks/service-build/object-panorama.d.ts +65 -24
- 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/pipeline-actions.d.ts +3 -3
- package/dist/playbooks/service-build/pipeline-actions.js +1 -1
- package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
- package/dist/playbooks/service-build/reverse-mapping.js +1 -1
- package/dist/playbooks/service-build/risk-aggregator.d.ts +4 -2
- package/dist/playbooks/service-build/risk-aggregator.js +1 -1
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.d.ts +56 -9
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/topology-evaluation.spec.d.ts +1 -0
- package/dist/playbooks/service-build/topology-evaluation.spec.js +1 -0
- package/dist/playbooks/service-build/topology-query.d.ts +13 -2
- package/dist/playbooks/service-build/topology-query.js +1 -1
- package/dist/playbooks/service-build/workflow-design-assessment.d.ts +2 -2
- package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
- package/dist/relationship/registry.js +1 -1
- package/dist/review/arb.d.ts +0 -2
- package/dist/review/arb.js +1 -1
- package/dist/review/machine.js +1 -1
- package/dist/review/order.d.ts +0 -1
- package/dist/review/order.js +1 -1
- package/dist/review/service.js +1 -1
- package/dist/review/types.d.ts +7 -0
- package/dist/role/profiles.js +1 -1
- package/dist/rules.d.ts +1 -2
- package/dist/rules.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +207 -0
- package/dist/schema/benchmark-migration/index.js +1 -0
- package/dist/schema/call/allocation.d.ts +1 -1
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +3374 -670
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/guard.d.ts +3 -3
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +5 -5
- package/dist/schema/call/order.d.ts +3 -3
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/permission-handler.d.ts +1 -1
- package/dist/schema/call/permission-handler.js +1 -1
- package/dist/schema/call/permission.d.ts +16 -16
- package/dist/schema/call/permission.js +1 -1
- package/dist/schema/call/personal.d.ts +8 -8
- package/dist/schema/call/personal.js +1 -1
- package/dist/schema/call/progress.d.ts +3 -3
- package/dist/schema/call/receipt.d.ts +28 -0
- package/dist/schema/call/receipt.js +1 -0
- package/dist/schema/call/repository.d.ts +11 -11
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/semantic-customer-advice.spec.d.ts +1 -0
- package/dist/schema/call/semantic-customer-advice.spec.js +1 -0
- package/dist/schema/call/semantic.d.ts +5 -2
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +7 -7
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/call/treasury.js +1 -1
- package/dist/schema/common/index.d.ts +6 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +50 -1
- package/dist/schema/config/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +307 -213
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +6 -6
- package/dist/schema/goal/planning.d.ts +17 -17
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +1 -1
- package/dist/schema/interaction/index.d.ts +1 -1
- package/dist/schema/keeper/index.d.ts +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +26 -26
- package/dist/schema/operations.d.ts +59 -43
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +4732 -24
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +830 -10
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +44 -44
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.d.ts +1 -1
- package/dist/schema/workspace/index.d.ts +2 -2
- package/dist/schema-query-impl/index.d.ts +9 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +1 -1
- package/dist/schemas/benchmark_migration_operation.output.json +793 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +83 -0
- package/dist/schemas/bridge_operation.output.json +1 -1
- package/dist/schemas/bridge_operation.schema.json +5 -5
- package/dist/schemas/config_operation.output.json +252 -0
- package/dist/schemas/config_operation.schema.json +21 -1
- package/dist/schemas/evaluation_operation.output.json +702 -162
- package/dist/schemas/evaluation_operation.schema.json +0 -429
- package/dist/schemas/goal_operation.schema.json +8 -8
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +7 -7
- package/dist/schemas/keeper_operation.output.json +1 -1
- package/dist/schemas/local_history_operation.output.json +1 -1
- package/dist/schemas/local_info_operation.output.json +1 -1
- package/dist/schemas/local_mark_operation.output.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.output.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +24 -12
- package/dist/schemas/monitor_events.output.json +1 -1
- package/dist/schemas/monitor_subscription.output.json +1 -1
- package/dist/schemas/onchain_events.output.json +2 -2
- package/dist/schemas/onchain_operations.output.json +6359 -3724
- package/dist/schemas/onchain_operations.schema.json +191 -141
- package/dist/schemas/onchain_operations_allocation.schema.json +13 -11
- package/dist/schemas/onchain_operations_arbitration.schema.json +10 -8
- package/dist/schemas/onchain_operations_contact.schema.json +7 -5
- package/dist/schemas/onchain_operations_demand.schema.json +7 -5
- package/dist/schemas/onchain_operations_gen_passport.schema.json +5 -3
- package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_guard.schema.json +5 -3
- package/dist/schemas/onchain_operations_machine.schema.json +22 -18
- package/dist/schemas/onchain_operations_order.schema.json +11 -7
- package/dist/schemas/onchain_operations_payment.schema.json +3 -3
- package/dist/schemas/onchain_operations_permission.schema.json +19 -11
- package/dist/schemas/onchain_operations_personal.schema.json +16 -10
- package/dist/schemas/onchain_operations_progress.schema.json +11 -7
- package/dist/schemas/onchain_operations_proof.schema.json +5 -3
- package/dist/schemas/onchain_operations_repository.schema.json +12 -8
- package/dist/schemas/onchain_operations_reward.schema.json +11 -9
- package/dist/schemas/onchain_operations_service.schema.json +28 -22
- package/dist/schemas/onchain_operations_treasury.schema.json +13 -11
- package/dist/schemas/onchain_table_data.output.json +88 -88
- package/dist/schemas/persona_operation.output.json +15875 -1
- package/dist/schemas/persona_operation.schema.json +3056 -478
- package/dist/schemas/query_toolkit.output.json +1325 -212
- package/dist/schemas/query_toolkit.schema.json +60 -2
- package/dist/schemas/workflow_operation.schema.json +4 -2
- package/dist/strategy/metrics.js +1 -1
- package/dist/strategy/scorecard.js +1 -1
- package/dist/tools/handlers/benchmark-migration.d.ts +2 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -0
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/dispatch-expectations.d.ts +3 -0
- package/dist/tools/handlers/dispatch-expectations.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.d.ts +3 -0
- package/dist/tools/move-fn-index.gen.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/config.js +1 -1
- package/dist/tools/registry/evaluation.d.ts +2 -0
- package/dist/tools/registry/evaluation.js +1 -0
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/sanitize-output.d.ts +3 -0
- package/dist/tools/sanitize-output.js +1 -0
- package/dist/tools/sanitize-output.spec.d.ts +1 -0
- package/dist/tools/sanitize-output.spec.js +1 -0
- package/dist/tools/shared.d.ts +0 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +9 -3
- package/dist/customer/customer-advice.d.ts +0 -32
- package/dist/customer/customer-advice.js +0 -1
- package/dist/customer/info-puzzle.d.ts +0 -146
- package/dist/customer/info-puzzle.js +0 -1
- package/dist/customer/order-strategy.d.ts +0 -17
- package/dist/customer/order-strategy.js +0 -1
- package/dist/customer/preorder-compare.d.ts +0 -24
- package/dist/customer/preorder-compare.js +0 -1
- package/dist/customer/reminder-system.d.ts +0 -42
- package/dist/customer/reminder-system.js +0 -1
- package/dist/customer/risk-assessment.d.ts +0 -13
- package/dist/customer/risk-assessment.js +0 -1
- package/dist/evaluation/builtins/service-risk.d.ts +0 -7
- package/dist/evaluation/builtins/service-risk.js +0 -1
- package/dist/knowledge/trust-metrics.d.ts +0 -66
- package/dist/knowledge/trust-metrics.js +0 -1
- package/dist/schema/trust/index.d.ts +0 -334
- package/dist/schema/trust/index.js +0 -1
- package/dist/schemas/trust_score.output.json +0 -847
- package/dist/schemas/trust_score.schema.json +0 -364
- package/dist/tools/handlers/trust.d.ts +0 -16
- package/dist/tools/handlers/trust.js +0 -1
- package/dist/tools/registry/trust.d.ts +0 -2
- package/dist/tools/registry/trust.js +0 -1
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://wowok.net/schemas/trust_score.json",
|
|
4
|
-
"title": "Trust Score - Service Risk & Trust Assessment",
|
|
5
|
-
"description": "Proactively query the trust score (0-100, 5 dimensions) and risk assessment (4 dimensions, 100-point) of a Service object. Parameters: service (required), order_amount (optional), depth (optional: browse/evaluate/preorder).",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"service": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "Service object ID or local_mark name to evaluate. Must reference an existing Service object on-chain."
|
|
11
|
-
},
|
|
12
|
-
"order_amount": {
|
|
13
|
-
"description": "Optional order amount (in smallest token unit, e.g. 2000000000 for 2 WOW). Used for fund-safety dimension risk assessment. If omitted, the first active sale price of the service is used.",
|
|
14
|
-
"anyOf": [
|
|
15
|
-
{
|
|
16
|
-
"type": "string"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"type": "number"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"depth": {
|
|
24
|
-
"description": "InfoPuzzle collection depth. browse: only Service basics + trust score; evaluate (default): + workflow/fund/trust dimensions risk assessment; preorder: + full preorder advice (confidence, game strategies, preference match, industry risks, blocking reminders).",
|
|
25
|
-
"type": "string",
|
|
26
|
-
"enum": [
|
|
27
|
-
"browse",
|
|
28
|
-
"evaluate",
|
|
29
|
-
"preorder"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"industry": {
|
|
33
|
-
"description": "Explicit industry override for industry-specific risk checks and needs matrix. If omitted at depth=preorder, the industry is inferred from the puzzle.",
|
|
34
|
-
"type": "string",
|
|
35
|
-
"enum": [
|
|
36
|
-
"freelance",
|
|
37
|
-
"rental",
|
|
38
|
-
"education",
|
|
39
|
-
"travel",
|
|
40
|
-
"subscription",
|
|
41
|
-
"retail"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
"preferences": {
|
|
45
|
-
"description": "Optional user preference overrides (partial; merged over profile-derived defaults). Only used at depth=preorder for preference matching and pref-aware strategies.",
|
|
46
|
-
"type": "object",
|
|
47
|
-
"properties": {
|
|
48
|
-
"price_sensitivity": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"enum": [
|
|
51
|
-
"low",
|
|
52
|
-
"medium",
|
|
53
|
-
"high"
|
|
54
|
-
]
|
|
55
|
-
},
|
|
56
|
-
"budget_range": {
|
|
57
|
-
"type": "object",
|
|
58
|
-
"properties": {
|
|
59
|
-
"min": {
|
|
60
|
-
"anyOf": [
|
|
61
|
-
{
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"type": "number"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"description": "Budget lower bound (smallest token unit)."
|
|
69
|
-
},
|
|
70
|
-
"max": {
|
|
71
|
-
"anyOf": [
|
|
72
|
-
{
|
|
73
|
-
"type": "string"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"type": "number"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"description": "Budget upper bound (smallest token unit)."
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"required": [
|
|
83
|
-
"min",
|
|
84
|
-
"max"
|
|
85
|
-
],
|
|
86
|
-
"additionalProperties": false
|
|
87
|
-
},
|
|
88
|
-
"value_orientation": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"enum": [
|
|
91
|
-
"quality",
|
|
92
|
-
"balanced",
|
|
93
|
-
"budget"
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"discount_sensitivity": {
|
|
97
|
-
"type": "number",
|
|
98
|
-
"minimum": 0,
|
|
99
|
-
"maximum": 1
|
|
100
|
-
},
|
|
101
|
-
"delivery_speed_priority": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"enum": [
|
|
104
|
-
"urgent",
|
|
105
|
-
"normal",
|
|
106
|
-
"flexible"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"max_acceptable_cycle": {
|
|
110
|
-
"type": "number",
|
|
111
|
-
"minimum": 0,
|
|
112
|
-
"description": "Max acceptable delivery cycle (days)."
|
|
113
|
-
},
|
|
114
|
-
"response_time_expectation": {
|
|
115
|
-
"type": "number",
|
|
116
|
-
"minimum": 0,
|
|
117
|
-
"description": "Expected merchant response time (hours)."
|
|
118
|
-
},
|
|
119
|
-
"merchant_preference": {
|
|
120
|
-
"type": "string",
|
|
121
|
-
"enum": [
|
|
122
|
-
"established",
|
|
123
|
-
"emerging",
|
|
124
|
-
"neutral"
|
|
125
|
-
]
|
|
126
|
-
},
|
|
127
|
-
"min_order_history": {
|
|
128
|
-
"type": "integer",
|
|
129
|
-
"minimum": 0,
|
|
130
|
-
"maximum": 9007199254740991
|
|
131
|
-
},
|
|
132
|
-
"bargain_hunting": {
|
|
133
|
-
"type": "number",
|
|
134
|
-
"minimum": 0,
|
|
135
|
-
"maximum": 1
|
|
136
|
-
},
|
|
137
|
-
"reward_seeking": {
|
|
138
|
-
"type": "boolean"
|
|
139
|
-
},
|
|
140
|
-
"referral_participation": {
|
|
141
|
-
"type": "boolean"
|
|
142
|
-
},
|
|
143
|
-
"communication_style": {
|
|
144
|
-
"type": "string",
|
|
145
|
-
"enum": [
|
|
146
|
-
"formal",
|
|
147
|
-
"casual",
|
|
148
|
-
"friendly"
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
"transparency_demand": {
|
|
152
|
-
"type": "number",
|
|
153
|
-
"minimum": 0,
|
|
154
|
-
"maximum": 1
|
|
155
|
-
},
|
|
156
|
-
"after_sales_expectation": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"enum": [
|
|
159
|
-
"full",
|
|
160
|
-
"basic",
|
|
161
|
-
"minimal"
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
"risk_appetite": {
|
|
165
|
-
"type": "string",
|
|
166
|
-
"enum": [
|
|
167
|
-
"conservative",
|
|
168
|
-
"balanced",
|
|
169
|
-
"aggressive"
|
|
170
|
-
]
|
|
171
|
-
},
|
|
172
|
-
"min_trust_score": {
|
|
173
|
-
"type": "number",
|
|
174
|
-
"minimum": 0,
|
|
175
|
-
"maximum": 100
|
|
176
|
-
},
|
|
177
|
-
"require_arbitration": {
|
|
178
|
-
"type": "boolean"
|
|
179
|
-
},
|
|
180
|
-
"require_compensation_fund": {
|
|
181
|
-
"type": "boolean"
|
|
182
|
-
},
|
|
183
|
-
"preferred_industries": {
|
|
184
|
-
"type": "array",
|
|
185
|
-
"items": {
|
|
186
|
-
"type": "string"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"preferred_tokens": {
|
|
190
|
-
"type": "array",
|
|
191
|
-
"items": {
|
|
192
|
-
"type": "string"
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"preferred_merchants": {
|
|
196
|
-
"type": "array",
|
|
197
|
-
"items": {
|
|
198
|
-
"type": "string"
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
"additionalProperties": false
|
|
203
|
-
},
|
|
204
|
-
"user_metrics": {
|
|
205
|
-
"description": "Optional user-controllable scoring factors. Evaluated at depth=preorder; the composite adjustment (±cap) nudges the order confidence score.",
|
|
206
|
-
"type": "object",
|
|
207
|
-
"properties": {
|
|
208
|
-
"metrics": {
|
|
209
|
-
"minItems": 1,
|
|
210
|
-
"type": "array",
|
|
211
|
-
"items": {
|
|
212
|
-
"type": "object",
|
|
213
|
-
"properties": {
|
|
214
|
-
"name": {
|
|
215
|
-
"type": "string",
|
|
216
|
-
"description": "Stable metric identifier (e.g. 'merchant_tenure_days')."
|
|
217
|
-
},
|
|
218
|
-
"label": {
|
|
219
|
-
"type": "string",
|
|
220
|
-
"description": "Human-readable label shown to the user."
|
|
221
|
-
},
|
|
222
|
-
"evaluator": {
|
|
223
|
-
"type": "string",
|
|
224
|
-
"enum": [
|
|
225
|
-
"threshold",
|
|
226
|
-
"ratio",
|
|
227
|
-
"boolean",
|
|
228
|
-
"presence",
|
|
229
|
-
"regex_match",
|
|
230
|
-
"custom_query"
|
|
231
|
-
],
|
|
232
|
-
"description": "How the metric is evaluated against the puzzle context."
|
|
233
|
-
},
|
|
234
|
-
"params": {
|
|
235
|
-
"type": "object",
|
|
236
|
-
"properties": {
|
|
237
|
-
"path": {
|
|
238
|
-
"description": "JSON path in the raw data context (e.g. 'service.name').",
|
|
239
|
-
"type": "string"
|
|
240
|
-
},
|
|
241
|
-
"threshold": {
|
|
242
|
-
"description": "Threshold value (threshold/presence evaluators).",
|
|
243
|
-
"anyOf": [
|
|
244
|
-
{
|
|
245
|
-
"type": "string"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"type": "number"
|
|
249
|
-
}
|
|
250
|
-
]
|
|
251
|
-
},
|
|
252
|
-
"invert": {
|
|
253
|
-
"description": "true: pass when value <= threshold.",
|
|
254
|
-
"type": "boolean"
|
|
255
|
-
},
|
|
256
|
-
"min": {
|
|
257
|
-
"description": "Min ratio (ratio evaluator).",
|
|
258
|
-
"type": "number"
|
|
259
|
-
},
|
|
260
|
-
"max": {
|
|
261
|
-
"description": "Max ratio (ratio evaluator).",
|
|
262
|
-
"type": "number"
|
|
263
|
-
},
|
|
264
|
-
"pattern": {
|
|
265
|
-
"description": "Regex pattern (regex_match evaluator).",
|
|
266
|
-
"type": "string"
|
|
267
|
-
},
|
|
268
|
-
"query_key": {
|
|
269
|
-
"description": "Custom query identifier (custom_query evaluator).",
|
|
270
|
-
"type": "string"
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"additionalProperties": false
|
|
274
|
-
},
|
|
275
|
-
"weight": {
|
|
276
|
-
"type": "number",
|
|
277
|
-
"minimum": 0,
|
|
278
|
-
"maximum": 1,
|
|
279
|
-
"description": "Relative weight vs other user metrics (0-1)."
|
|
280
|
-
},
|
|
281
|
-
"advice_on_fail": {
|
|
282
|
-
"type": "string"
|
|
283
|
-
},
|
|
284
|
-
"advice_on_pass": {
|
|
285
|
-
"type": "string"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"required": [
|
|
289
|
-
"name",
|
|
290
|
-
"label",
|
|
291
|
-
"evaluator",
|
|
292
|
-
"params",
|
|
293
|
-
"weight"
|
|
294
|
-
],
|
|
295
|
-
"additionalProperties": false
|
|
296
|
-
},
|
|
297
|
-
"description": "User-defined scoring factors."
|
|
298
|
-
},
|
|
299
|
-
"adjustment_cap": {
|
|
300
|
-
"description": "Global cap for the composite confidence adjustment (default ±10 points).",
|
|
301
|
-
"type": "number",
|
|
302
|
-
"exclusiveMinimum": 0
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
"required": [
|
|
306
|
-
"metrics"
|
|
307
|
-
],
|
|
308
|
-
"additionalProperties": false
|
|
309
|
-
},
|
|
310
|
-
"trust_weights": {
|
|
311
|
-
"description": "Optional per-dimension weight overrides for the trust score (K3 22 §4.3). User-participatory: re-weight the 5 trust dimensions; the engine renormalizes to 100. Highest-priority channel for a user to shape how WoWok evaluates trust.",
|
|
312
|
-
"type": "object",
|
|
313
|
-
"properties": {
|
|
314
|
-
"arbitration": {
|
|
315
|
-
"description": "Weight for the arbitration dimension (default 20).",
|
|
316
|
-
"type": "number",
|
|
317
|
-
"minimum": 0
|
|
318
|
-
},
|
|
319
|
-
"reviews": {
|
|
320
|
-
"description": "Weight for the reviews dimension (default 35).",
|
|
321
|
-
"type": "number",
|
|
322
|
-
"minimum": 0
|
|
323
|
-
},
|
|
324
|
-
"fulfillment": {
|
|
325
|
-
"description": "Weight for the fulfillment dimension (default 20).",
|
|
326
|
-
"type": "number",
|
|
327
|
-
"minimum": 0
|
|
328
|
-
},
|
|
329
|
-
"fund_safety": {
|
|
330
|
-
"description": "Weight for the fund_safety dimension (default 15).",
|
|
331
|
-
"type": "number",
|
|
332
|
-
"minimum": 0
|
|
333
|
-
},
|
|
334
|
-
"transparency": {
|
|
335
|
-
"description": "Weight for the transparency dimension (default 10).",
|
|
336
|
-
"type": "number",
|
|
337
|
-
"minimum": 0
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
"additionalProperties": false
|
|
341
|
-
},
|
|
342
|
-
"network": {
|
|
343
|
-
"description": "Network override (e.g. 'mainnet', 'testnet'). If omitted, uses default.",
|
|
344
|
-
"type": "string"
|
|
345
|
-
},
|
|
346
|
-
"no_cache": {
|
|
347
|
-
"description": "Skip object cache and force a fresh on-chain query.",
|
|
348
|
-
"type": "boolean"
|
|
349
|
-
},
|
|
350
|
-
"compare_with": {
|
|
351
|
-
"description": "Optional candidate Service addresses/LocalMark names (1-9) for deterministic multi-service comparison. Only used at depth=preorder. The SAME preferences/user_metrics/industry are applied uniformly to all candidates; output gains a `comparison` block with per-metric bests (NO overall ranking — the buyer decides).",
|
|
352
|
-
"minItems": 1,
|
|
353
|
-
"maxItems": 9,
|
|
354
|
-
"type": "array",
|
|
355
|
-
"items": {
|
|
356
|
-
"type": "string"
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
"required": [
|
|
361
|
-
"service"
|
|
362
|
-
],
|
|
363
|
-
"additionalProperties": false
|
|
364
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ToolDispatchResult } from "../types.js";
|
|
2
|
-
export declare function handleTrustScore(args: unknown): Promise<ToolDispatchResult>;
|
|
3
|
-
export declare function computeServiceTrustSummary(opts: {
|
|
4
|
-
service: string;
|
|
5
|
-
order_amount?: number | string;
|
|
6
|
-
depth?: "browse" | "evaluate" | "preorder";
|
|
7
|
-
network?: string;
|
|
8
|
-
no_cache?: boolean;
|
|
9
|
-
}): Promise<{
|
|
10
|
-
trust_score: number;
|
|
11
|
-
trust_level: string;
|
|
12
|
-
trust_summary: string;
|
|
13
|
-
risk_score: number | null;
|
|
14
|
-
risk_level: string | null;
|
|
15
|
-
completeness: number | null;
|
|
16
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{strictParse,TrustScoreInputSchema}from'../../schema/index.js';import{query_objects,query_personal}from'@wowok/wowok';import{computeServiceTrustScore}from'../../knowledge/index.js';import{detectShellMerchant}from'../../knowledge/anti-cheat.js';import{assembleInfoPuzzle,assemblePreorderAdvice,assessRisk,buildPreorderComparison,getDefaultPreferences,inferIndustry,mergePreferences,validatePreferences}from'../../customer/index.js';import{getProfile}from'../../experience/user-profile.js';import{resolveEffectiveOverrides}from'../../persona/index.js';function extractTrustMetrics(a){const b=a?.['data']??a??{},c=Array['isArray'](b['sales'])?b['sales']:[],d=c['filter'](g=>g&&!g['suspension']);void d;const e=b['compensation_fund'],f=((()=>{if(e===null||e===undefined)return undefined;if(typeof e==='bigint')return e;if(typeof e==='number')return BigInt(e);if(typeof e==='string')try{return BigInt(e);}catch{return undefined;}if(typeof e==='object'){const g=e['balance'];if(g===null||g===undefined)return undefined;try{return BigInt(g);}catch{return undefined;}}return undefined;})());return{'arbitrationCases':Array['isArray'](b['arbitrations'])?b['arbitrations']['length']:undefined,'compensationFundBalance':f,'hasMachineBound':typeof b['machine']==='string'&&b['machine']['length']>0x0,'hasBuyGuard':typeof b['buy_guard']==='string'&&b['buy_guard']['length']>0x0,'hasReward':Array['isArray'](b['rewards'])&&b['rewards']['length']>0x0};}function buildPuzzleRawData(a,b,c,d){const e=a?.['data']??a??{},f=Array['isArray'](e['sales'])?e['sales']:[],g=e['order_allocators']?Array['isArray'](e['order_allocators']['allocators'])?e['order_allocators']:{'allocators':e['order_allocators']}:undefined,h={'name':e['name']??a?.['id'],'bPublished':e['bPublished'],'bPaused':e['bPaused'],'price':f[0x0]?.['price']!=null?String(f[0x0]['price']):'0','priceRaw':f[0x0]?.['price']!=null?BigInt(f[0x0]['price']):0x0n,'token_type':f[0x0]?.['price_type']??(compensation_fund_token(e)??'0x2::wow::WOW'),'sales':f,'machine':e['machine']??undefined,'buy_guard':e['buy_guard']??undefined,'customer_required':e['customer_required'],'arbitrations':e['arbitrations'],'compensation_fund':e['compensation_fund']?{'balance':extractBalance(e['compensation_fund'])}:undefined,'compensation_lock_duration':typeof e['setting_lock_duration']==='number'?e['setting_lock_duration']:undefined,'um':e['um']??undefined,'order_allocators':g?[g]:undefined};return{'service':h,'order_amount':b,'trust_score':c,'service_owner':d};}function compensation_fund_token(a){if(a?.['compensation_fund']&&typeof a['compensation_fund']==='object')return a['compensation_fund']['token_type'];return undefined;}function extractBalance(a){if(a===null||a===undefined)return 0x0n;if(typeof a==='bigint')return a;if(typeof a==='number')return BigInt(a);if(typeof a==='string')try{return BigInt(a);}catch{return 0x0n;}if(typeof a==='object'){const c=a['balance'];if(c===null||c===undefined)return 0x0n;try{return BigInt(c);}catch{return 0x0n;}}return 0x0n;}function toUserMetricsConfig(a){return{'version':0x1,'metrics':a['metrics']['map'](b=>({'name':b['name'],'label':b['label'],'evaluator':b['evaluator'],'params':{...b['params'],'threshold':b['params']['threshold']!==undefined?String(b['params']['threshold']):undefined},'weight':b['weight'],'advice_on_fail':b['advice_on_fail'],'advice_on_pass':b['advice_on_pass']})),'adjustment_cap':a['adjustment_cap']};}const TRUST_WEIGHT_ID={'arbitration':'trust_arbitration','reviews':'trust_reviews','fulfillment':'trust_fulfillment','fund_safety':'trust_fund_safety','transparency':'trust_transparency'};function buildTrustInjection(a){if(!a)return undefined;const b={};for(const [c,d]of Object['entries'](TRUST_WEIGHT_ID)){const e=a[c];if(e!==undefined)b[d]={'weight':e};}if(Object['keys'](b)['length']===0x0)return undefined;return{'overrides':{'rules':b}};}const ANTI_CHEAT_SEVERITY={'high':'critical','medium':'warning','low':'info'},ANTI_CHEAT_DEDUCTION={'high':0xf,'medium':0x8,'low':0x3};function buildAntiCheatFindings(a){const b=a?.['data']??a??{},c=detectShellMerchant({'object':b['object']??a?.['object']??'','arbitrations':Array['isArray'](b['arbitrations'])?b['arbitrations']:[],'compensation_fund':b['compensation_fund']??0x0,'machine':b['machine']??null,'bPublished':b['bPublished']===!![]});return c['map'](d=>({'kind':d['kind'],'severity':ANTI_CHEAT_SEVERITY[d['severity']]??'warning','message':d['description'],'deduction':ANTI_CHEAT_DEDUCTION[d['severity']]??0x5}));}function derivePreferences(a,b){const c=getProfile(),d=mergePreferences(getDefaultPreferences(b),{'risk_appetite':c['risk_appetite'],'min_trust_score':c['risk_appetite']==='conservative'?0x46:c['risk_appetite']==='aggressive'?0x1e:0x32}),e=a['preferences'],f=e?{...e,'budget_range':e['budget_range']?{'min':BigInt(e['budget_range']['min']),'max':BigInt(e['budget_range']['max'])}:undefined}:undefined,g=f?mergePreferences(d,f):d;return{'prefs':g,'issues':validatePreferences(g)};}async function fetchMerchantReputation(a,b,c){try{if(typeof a!=='string'||!a['startsWith']('0x'))return undefined;const d=await query_objects({'objects':[a],'no_cache':c,'network':b}),e=d?.['objects']?.[0x0],f=(e?.['data']??e)?.['builder'];if(typeof f!=='string'||!f['startsWith']('0x'))return undefined;const g=await query_personal({'account':f,'no_cache':c,'network':b});if(!g)return undefined;return{'likes':g['like']??0x0,'dislikes':g['dislike']??0x0};}catch{return undefined;}}async function runTrustEvaluation(a){const b=a['depth']??'evaluate',c=await query_objects({'objects':[a['service']],'no_cache':a['no_cache'],'network':a['network']}),d=c?.['objects'];if(!d||!Array['isArray'](d)||d['length']===0x0)throw new Error('Service\x20object\x20not\x20found\x20for\x20\x27'+a['service']+'\x27.\x20'+'Verify\x20the\x20ID/name\x20and\x20network,\x20or\x20use\x20query_toolkit\x20with\x20query_type=\x27onchain_objects\x27\x20to\x20debug.');const e=d[0x0],f=e?.['data']?.['object_type']??e?.['object_type']??e?.['type'];if(f&&typeof f==='string'&&!f['includes']('Service'))throw new Error('Object\x20\x27'+a['service']+'\x27\x20is\x20not\x20a\x20Service\x20(type:\x20'+f+').\x20'+'trust_score\x20only\x20evaluates\x20Service\x20objects.');const g=extractTrustMetrics(e),h=computeServiceTrustScore(g,buildTrustInjection(a['trust_weights'])),i=buildAntiCheatFindings(e);if(i['length']>0x0){h['findings']['push'](...i);const r=i['reduce']((t,u)=>t+u['deduction'],0x0);h['score']=Math['max'](0x0,h['score']-r);}const j=Array['isArray'](e?.['data']?.['sales'])?e['data']['sales']:[],k=j['find'](t=>t&&!t['suspension'])??j[0x0],l=k?.['price']!=null?BigInt(k['price']):0x0n,m=a['order_amount']!=null?BigInt(a['order_amount']):l;let n,o,p,q;if(b==='evaluate'||b==='preorder'){const s=buildPuzzleRawData(e,m,{'score':h['score'],'level':h['level']},undefined);a['user_metrics']&&(s['user_metrics_config']=toUserMetricsConfig(a['user_metrics']));if(b==='preorder'){const t=await fetchMerchantReputation((e?.['data']??e)?.['permission'],a['network'],a['no_cache']);if(t)s['merchant_reputation']=t;}o=assembleInfoPuzzle(a['service'],s,b),n=assessRisk(o);if(b==='preorder'){const u=a['industry']??inferIndustry(o),{prefs:v,issues:w}=derivePreferences(a,u);q=w['length']>0x0?w:undefined;const x=await resolveEffectiveOverrides();p=assemblePreorderAdvice({'puzzle':o,'risk':n,'preferences':v,'industry':u,'overrides':x});}}return{'serviceId':a['service'],'serviceName':e?.['data']?.['name']??e?.['name']??a['service'],'serviceObj':e,'sales':j,'trustScore':h,'orderAmount':m,'infoPuzzle':o,'riskScore':n,'preorderAdvice':p,'preferenceIssues':q};}export async function handleTrustScore(a){const b=strictParse(TrustScoreInputSchema,a,'trust_score\x20input'),c=b['depth']??'evaluate',d=await runTrustEvaluation(b),{serviceObj:f,sales:g,trustScore:h,orderAmount:i,infoPuzzle:j,riskScore:k,preorderAdvice:l,preferenceIssues:m}=d,n={'service_id':b['service'],'service_name':f?.['data']?.['name']??f?.['name']??b['service'],'service_basics':{'bPublished':f?.['data']?.['bPublished']??![],'bPaused':f?.['data']?.['bPaused']??![],'sales_count':g['filter'](q=>q&&!q['suspension'])['length'],'has_machine':!!f?.['data']?.['machine'],'has_buy_guard':!!f?.['data']?.['buy_guard'],'has_um_contact':!!f?.['data']?.['um'],'arbitrations_count':Array['isArray'](f?.['data']?.['arbitrations'])?f['data']['arbitrations']['length']:0x0},'trust_score':{'score':h['score'],'level':h['level'],'summary':h['summary'],'warnings':h['warnings'],'findings':h['findings']['map'](q=>({'kind':q['kind'],'severity':q['severity'],'message':q['message'],'deduction':q['deduction']})),'breakdown':h['breakdown']},'order_amount':i['toString'](),'depth':c,...k?{'risk_score':{'total':k['total'],'level':k['level'],'red_flags':k['red_flags'],'advice':k['advice'],'dimensions':k['dimensions']}}:{},...j?{'info_puzzle':{'completeness':j['completeness'],'gaps':j['gaps'],'assembled_at':j['assembled_at']}}:{},...l?{'preorder_advice':{'confidence':l['confidence'],'industry':l['industry'],'strategies':l['strategies']['map'](q=>({'scenario':q['scenario'],'merchant_tactic':q['strategy']['merchant_tactic'],'user_strategy':q['strategy']['user_strategy'],'nash_equilibrium':q['strategy']['nash_equilibrium'],'confidence':q['confidence'],'fallback':q['fallback'],'rationale':q['rationale']})),...l['preference_match']?{'preference_match':l['preference_match']}:{},...m?{'preference_issues':m}:{},...l['industry_risks']?{'industry_risks':{'score_adjustment':l['industry_risks']['score_adjustment'],'summary':l['industry_risks']['summary'],'checks':l['industry_risks']['checks'],'unmet_needs':l['industry_risks']['unmet_needs']['map'](q=>({'id':q['id'],'tier':q['tier'],'description':q['description'],'advice':q['advice']}))}}:{},'reminders':l['reminders'],'blocking_reminders':l['blocking_reminders'],'summary':l['summary']}}:{}};let o;if(c==='preorder'&&b['compare_with']&&b['compare_with']['length']>0x0){const q=[coreToCompareRow(d)];for(const r of b['compare_with']){try{const s=await runTrustEvaluation({...b,'service':r,'depth':'preorder'});q['push'](coreToCompareRow(s));}catch(t){q['push']({'service_id':r,'service_name':r,'error':t['message']});}}o=buildPreorderComparison(q);}const p=o?{...n,'comparison':o}:n;return{'content':[{'type':'text','text':JSON['stringify']({'result':p})}],'structuredContent':{'result':p}};}function coreToCompareRow(a){const b=a['infoPuzzle']?.['merchant_behavior']?.['reputation'];return{'service_id':a['serviceId'],'service_name':a['serviceName'],'industry':a['preorderAdvice']?.['industry'],'confidence':a['preorderAdvice']?.['confidence']['score'],'risk_total':a['riskScore']?.['total'],'risk_level':a['riskScore']?.['level'],'trust_score':a['trustScore']['score'],'trust_level':a['trustScore']['level'],'preference_match':a['preorderAdvice']?.['preference_match']?.['score'],'reputation_like_ratio':b?.['like_ratio'],'reputation_votes':b?b['likes']+b['dislikes']:undefined,'red_flags_count':a['riskScore']?.['red_flags']['length'],'blocking_reminders_count':a['preorderAdvice']?.['blocking_reminders']['length'],'info_gaps_count':a['infoPuzzle']?.['gaps']['length']};}export async function computeServiceTrustSummary(a){const b=await runTrustEvaluation({'service':a['service'],'order_amount':a['order_amount'],'depth':a['depth']??'evaluate','network':a['network'],'no_cache':a['no_cache']});return{'trust_score':b['trustScore']['score'],'trust_level':b['trustScore']['level'],'trust_summary':b['trustScore']['summary'],'risk_score':b['riskScore']?.['total']??null,'risk_level':b['riskScore']?.['level']??null,'completeness':b['infoPuzzle']?.['completeness']??null};}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{handleTrustScore}from'../handlers/trust.js';import{handleEvaluationOperation}from'../handlers/evaluation.js';import{createToolMeta,TrustScoreInputSchema,TrustScoreOutputSchema,EvaluationOperationInputSchema,EvaluationOperationOutputSchema}from'../../schema/index.js';export const TRUST_TOOLS=[{'name':'trust_score','handler':handleTrustScore,'config':{'title':'🛡️\x20Trust\x20Score\x20-\x20Service\x20Risk\x20&\x20Trust\x20Assessment','summary':'Service\x20trust/risk\x20assessment\x20(0-100\x20score,\x205\x20dimensions).','description':'Proactively\x20query\x20the\x20trust\x20score\x20and\x20risk\x20assessment\x20of\x20a\x20Service\x20object.\x20'+'This\x20is\x20the\x20standalone\x20query\x20form\x20of\x20the\x20trust_score\x20field\x20that\x20is\x20otherwise\x20only\x20'+'passively\x20injected\x20into\x20onchain_operations\x20semantic\x20output.\x0a\x0a'+'Returns:\x0a'+'\x20\x20•\x20trust_score\x20(0-100,\x205\x20dimensions:\x20arbitration/reviews/fulfillment/fund_safety/transparency)\x0a'+'\x20\x20•\x20risk_score\x20(4\x20dimensions:\x20workflow/fund/trust/behavior,\x20100-point)\x20when\x20depth\x20>=\x20\x27evaluate\x27\x0a'+'\x20\x20•\x20info_puzzle\x20completeness\x20+\x20gaps\x20summary\x0a'+'\x20\x20•\x20service_basics\x20snapshot\x20(published/paused/sales/guards/arbitrations)\x0a\x0a'+'Use\x20this\x20tool\x20when\x20the\x20user\x20asks\x20\x27is\x20this\x20service\x20trustworthy?\x27,\x20\x27should\x20I\x20buy\x20from\x20this\x20merchant?\x27,\x20'+'\x27what\x27s\x20the\x20risk\x20of\x20ordering\x20this\x20service?\x27,\x20or\x20any\x20explicit\x20trust/risk\x20inquiry\x20about\x20a\x20Service.\x0a\x0a'+'🧭\x20Tool\x20selection\x20(avoid\x20confusion):\x20trust_score\x20=\x20trust/risk\x20of\x20ONE\x20Service;\x20'+'evaluation_operation\x20=\x20game-theory\x20best-move\x20advice\x20at\x20an\x20Arb/Progress\x20state;\x20'+'query_toolkit\x20query_type=\x27reverse_map\x27\x20=\x20deterministic\x20multi-object\x20business\x20report.\x0a\x0a'+'Parameters:\x0a'+'\x20\x20•\x20service\x20(required)\x20—\x20Service\x20object\x20ID\x20or\x20local_mark\x20name.\x0a'+'\x20\x20•\x20order_amount\x20(optional)\x20—\x20Order\x20amount\x20in\x20smallest\x20token\x20unit\x20(e.g.\x202000000000\x20for\x202\x20WOW).\x20'+'Defaults\x20to\x20the\x20service\x27s\x20first\x20active\x20sale\x20price.\x0a'+'\x20\x20•\x20depth\x20(optional,\x20default\x20\x27evaluate\x27)\x20—\x20\x27browse\x27\x20(trust\x20score\x20only),\x20\x27evaluate\x27\x20(+\x20risk\x20assessment),\x20'+'\x27preorder\x27\x20(most\x20thorough,\x20includes\x20market\x20context\x20dimension).\x0a\x0a'+'💡\x20Schema\x20hint:\x20Use\x20schema_query\x20with\x20action=\x27get\x27\x20and\x20name=\x27trust_score\x27\x20to\x20retrieve\x20the\x20exact\x20parameter\x20schema.','inputSchema':TrustScoreInputSchema,'outputSchema':TrustScoreOutputSchema,'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![],'openWorldHint':![]},'_meta':createToolMeta('trust',['trust','score','risk','service','merchant','reputation','safety','evaluate'])}},{'name':'evaluation_operation','handler':handleEvaluationOperation,'config':{'title':'🧠\x20Evaluation\x20-\x20Pluggable\x20Business\x20Intelligence','summary':'Business\x20evaluations:\x20arb/node\x20games,\x20path\x20reasoning,\x20match,\x20arbitration\x20score.','description':'Run\x20pluggable\x20business\x20evaluations\x20(data\x20sources\x20+\x20rules\x20+\x20user\x20injection).\x20'+'Each\x20evaluation\x20returns\x20ranked\x20best-move\x20recommendations\x20with\x20payoff\x20notes\x20and\x20risks.\x0a\x0a'+'Actions:\x0a'+'\x20\x20•\x20arb_game\x20—\x20advise\x20the\x20best\x20move\x20at\x20an\x20Arb\x20state\x20(7-state\x20lifecycle)\x20for\x20a\x20perspective\x20(customer/merchant/arbitrator).\x0a'+'\x20\x20•\x20node_game\x20—\x20advise\x20the\x20best\x20move\x20at\x20a\x20Progress\x20node\x20for\x20a\x20perspective\x20(merchant/customer/prospect/supplier/collaborator/arbitrator).\x0a'+'\x20\x20•\x20capability_gap\x20—\x20compare\x20a\x20demand\x20capability\x20vector\x20against\x20a\x20service\x20capability\x20vector;\x20returns\x20per-capability\x20gaps.\x0a'+'\x20\x20•\x20compose_service\x20—\x20check\x20whether\x20a\x20SET\x20of\x20services\x20can\x20jointly\x20satisfy\x20a\x20demand\x20(supply-chain\x20composition).\x0a'+'\x20\x20•\x20demand_match\x20—\x20rank\x20candidate\x20services\x20against\x20a\x20demand\x20capability\x20vector\x20(+\x20user\x20injection\x20/\x20persona).\x0a'+'\x20\x20•\x20service_match\x20—\x20supplier-side\x20mirror:\x20rank\x20candidate\x20demands\x20against\x20a\x20service\x20capability\x20vector.\x0a'+'\x20\x20•\x20service_risk\x20—\x20risk\x20assessment\x20of\x20ONE\x20service\x20from\x20raw\x20puzzle\x20data\x20(browse/evaluate/preorder/monitor\x20depth).\x0a'+'\x20\x20•\x20path_reasoning\x20—\x20path-level\x20game:\x20enumerate\x20full\x20routes\x20from\x20the\x20current\x20node,\x20rank\x20by\x20value/acceptance\x20reachability\x20(a→b\x20vs\x20a→c\x20competition).\x0a'+'\x20\x20•\x20evidence_review\x20—\x20deterministic\x20off-chain\x20evidence\x20closure\x20gate\x20(auto_pass\x20/\x20auto_reject\x20/\x20manual_review)\x20for\x20arbitration\x20evidence\x20(signature\x20photos,\x20voice\x20recordings,\x20delivery\x20proofs,\x20weather\x20data).\x20Single-item\x20mode\x20(kind\x20+\x20hash_committed)\x20or\x20LIST\x20mode\x20(`items`):\x20list\x20mode\x20returns\x20the\x20structured\x20usable/manual/rejected\x20list\x20plus\x20`proof_candidates`\x20—\x20auto-passed\x20items\x20with\x20their\x20on-chain\x20Proof\x20refs,\x20ready\x20for\x20the\x20dispute\x20initiator\x20to\x20reference\x20in\x20the\x20dispute\x20description\x20(the\x20user\x20confirms\x20the\x20final\x20selection;\x20never\x20auto-attached).\x0a'+'\x20\x20•\x20discover_services\x20—\x20ACTIVE\x20supply\x20discovery:\x20enumerate\x20every\x20published\x20(shared)\x20Service\x20on-chain,\x20gate+rank\x20by\x20location\x20fit\x20under\x20a\x20sensitivity\x20(strict=100%\x20city\x20match\x20/\x20near=neighboring\x20cities\x20/\x20logistics=soft\x20region\x20signal;\x20inferred\x20from\x20description\x20when\x20omitted),\x20and\x20get\x20consent-gated\x20scope-expansion\x20advice.\x20Enumerated\x20via\x20JSON-RPC\x20ServiceEvent.\x20Passive\x20side:\x20post\x20a\x20Demand\x20and\x20Services\x20present\x20via\x20DemandPresenter.\x0a\x0a'+'\x20\x20•\x20discover_demands\x20—\x20enumerate\x20on-chain\x20Demands\x20(supplier-side\x20discovery;\x20optional\x20location\x20substring\x20filter).\x20Enumerated\x20via\x20JSON-RPC\x20DemandChangedEvent.\x0a\x0a'+'\x20\x20•\x20demand_present\x20—\x20supply-side\x20orchestration:\x20discover\x20Demands\x20+\x20match\x20THIS\x20service\x20to\x20them\x20(service_match)\x20+\x20attach\x20the\x20present\x20path\x20per\x20demand\x20(demand.present_service\x20vs\x20demand.present_service_with_passport\x20when\x20the\x20demand\x20has\x20presentation\x20guards).\x20Read-only\x20—\x20the\x20actual\x20present\x20is\x20a\x20WRITE\x20via\x20onchain_operations.\x20Enumerated\x20via\x20JSON-RPC\x20DemandChangedEvent.\x0a\x0a'+'\x20\x20•\x20market_metrics\x20—\x20supply/demand/trust\x20market\x20metrics\x20aggregated\x20from\x20JSON-RPC\x20event\x20enumeration.\x0a\x0a'+'\x20\x20•\x20market_operations\x20—\x20operational\x20aggregations:\x20journey_funnel\x20(due-diligence→order→completed→reviews),\x20referral_attribution,\x20customer_relationship,\x20dynamic_pricing\x20(merchant\x20pricing\x20suggestion\x20from\x20market_signals).\x0a\x0a'+'\x20\x20•\x20anti_cheat\x20—\x20governance:\x20detect\x20fake\x20reviews\x20/\x20wash\x20orders\x20/\x20compensation-fund\x20manipulation\x20from\x20service\x20+\x20orders\x20+\x20reviews\x20evidence.\x0a\x0a'+'\x20\x20•\x20match_discover\x20—\x20ONE-SHOT\x20intent→service\x20orchestration:\x20enumerate\x20services\x20+\x20location\x20gate\x20+\x206-dimension\x20demand_match\x20scoring\x20in\x20a\x20single\x20call.\x20Inputs:\x20description\x20+\x20location\x20+\x20optional\x20sensitivity/budget/required_capabilities/coin_type.\x20Returns\x20location-gated\x20Top-N\x20services\x20with\x20per-service\x206-dim\x20breakdown\x20(region/industry/price/trust/capabilities/tags)\x20+\x20recommendation\x20reasons.\x20Enumerated\x20via\x20JSON-RPC\x20ServiceEvent.\x0a\x0a'+'\x20\x20•\x20arbitration_score\x20—\x20dual-perspective\x20arbitration\x20trust\x20assessment:\x20score\x20an\x20Arbitration\x20object\x20from\x20the\x20user-trust\x20angle\x20(timeliness/objection/indemnity/feedback/experience/capital)\x20and\x20the\x20merchant-fairness\x20angle\x20(fee/governance/operational).\x20Inputs:\x20arbitration\x20config\x20+\x20pre-aggregated\x20history[]\x20+\x20optional\x20entity_votes/fee_median.\x20Returns\x20trust\x20+\x20fairness\x20EvaluationResults\x20+\x20combined\x200-100.\x0a\x0a'+'\x20\x20•\x20account_events\x20—\x20account-centric\x20attention\x20feed:\x20run\x20hot-pluggable\x20watchers\x20(messenger_unread,\x20order_collection,\x20demand_presented,\x20reputation_integrity)\x20over\x20one\x20account\x20and\x20return\x20a\x20unified,\x20priority-sorted\x20prompt\x20list\x20of\x20what\x20needs\x20the\x20account\x27s\x20attention.\x20Inputs:\x20account\x20+\x20optional\x20categories[];\x20reputation_integrity\x20additionally\x20consumes\x20review\x20rows\x20(reviews[]\x20from\x20a\x20Service\x27s\x20ReviewRepository\x20via\x20onchain_table_data\x20+\x20optional\x20order_history[]\x20for\x20no-order-no-review\x20verification)\x20and\x20flags\x20manipulation/unverified/declining-trend\x20signals.\x20Read-only\x20(passive\x20check\x20—\x20never\x20marks\x20messages\x20viewed).\x0a\x0a'+'Read-only:\x20computes\x20recommendations\x20from\x20pure\x20data;\x20never\x20mutates\x20chain\x20state.\x20'+'The\x20caller\x20decides\x20and\x20acts\x20via\x20onchain_operations\x20/\x20messenger_operation.\x0a\x0a'+'🧭\x20Tool\x20selection\x20(avoid\x20confusion):\x20evaluation_operation\x20=\x20best-move\x20advice\x20at\x20an\x20Arb/Progress\x20state\x20(game\x20theory);\x20'+'trust_score\x20=\x20trust/risk\x20of\x20ONE\x20Service;\x20query_toolkit\x20query_type=\x27reverse_map\x27\x20=\x20deterministic\x20multi-object\x20business\x20report.\x0a\x0a'+'💡\x20Schema\x20hint:\x20Use\x20schema_query\x20with\x20action=\x27get\x27\x20and\x20name=\x27evaluation_operation\x27\x20to\x20retrieve\x20the\x20exact\x20parameter\x20schema.','inputSchema':EvaluationOperationInputSchema,'outputSchema':EvaluationOperationOutputSchema,'annotations':{'readOnlyHint':!![],'destructiveHint':![],'idempotentHint':!![],'openWorldHint':![]},'_meta':createToolMeta('evaluation',['evaluate','risk','match','game','score','arb','node','compose','gap'])}}];
|