@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
|
@@ -4,7 +4,6 @@ import { TOOL_CONSTRAINTS, TOOL_CONSTRAINTS_VERSION, validateOperation, hasBlock
|
|
|
4
4
|
import { REWARD_TEMPLATES, REWARD_TEMPLATES_VERSION, getRewardTemplate, listRewardTemplates, suggestRewardTemplate, type RewardTemplateType, type RewardTemplate } from "./reward-templates.js";
|
|
5
5
|
import { AUDIT_RULES, AUDIT_RULES_VERSION, auditService, hasBlockingErrors, getErrors, getWarnings, summarizeFindings, type AuditSeverity, type AuditFinding, type AuditRule, type AuditContext } from "./audit-rules.js";
|
|
6
6
|
import { suggestPricing, MUTABLE_FIELDS, DYNAMIC_PRICING_VERSION, type MarketSignals, type PricingSuggestion, type MutableFieldInfo } from "./dynamic-pricing.js";
|
|
7
|
-
import { computeServiceTrustScore, quickTrustCheck, TRUST_METRICS_VERSION, type ServiceTrustMetrics, type ServiceTrustScore, type TrustDimension, type TrustInjection, type TrustDimensionId, type TrustFinding, TRUST_DIMENSION_WEIGHTS } from "./trust-metrics.js";
|
|
8
7
|
import { buildReviewRepositorySetup, computeReviewStats, isVerifiedReview, filterVerifiedReviews, detectReviewManipulation, REPUTATION_RULES_VERSION, type Review, type ReviewStats, type ReviewRepositorySetup } from "./reputation-rules.js";
|
|
9
8
|
import { INDUSTRY_FLYWHEELS, getFlywheelForIndustry, listIndustries, suggestAcquisitionActions, generateTrustDescription, buildAcquisitionDashboard, ACQUISITION_FLYWHEEL_VERSION, type FlywheelAction, type AcquisitionFlywheel, type TrustDescriptionParams, type AcquisitionDashboard } from "./acquisition-flywheel.js";
|
|
10
9
|
import { INDUSTRY_REGISTRY_VERSION, type IndustryTraits, type IndustryProfile, type IndustrySource, type IndustryEvolutionMeta, type ExtendedIndustry, getIndustryProfile, registerIndustry, getIndustryTraits, resolveIndustryName, getRegistrySize, listBuiltinIndustryNames } from "./industry-registry.js";
|
|
@@ -15,7 +14,8 @@ import { BUILTIN_INTENT_SPECS, registerIntentProfile, getIntentProfile, listInte
|
|
|
15
14
|
import { GUARD_SCENES, findScene, inferSceneFromAction, getImmutableScenes, getNumericIdentifierScenes, type GuardScene } from "./guard-ledger.js";
|
|
16
15
|
import { SEMANTIC_TO_SCHEMA_RULES, SCHEMA_TO_SEMANTIC_RULES, GUARD_CONSTRAINT_RULES, matchSemanticPattern, explainNode, explainWitness, getConstraintsByCategory, type SemanticToSchemaRule, type SchemaToSemanticRule, type GuardConstraintRule } from "./guard-translation.js";
|
|
17
16
|
import { checkPuzzleCompleteness, generateConfirmationText, initPuzzleFromIntent, inferBindingFromAction, emptyDataSources, getWitnessInfo, WITNESS_NAME_MAP, type GuardPuzzle, type IntentPuzzle, type BindingPuzzle, type DataSourcePuzzle, type OnChainConstantEntry, type WitnessDerivedEntry, type SubmittedObjectEntry, type SubmittedValueEntry, type SystemContextEntry, type QueryPuzzle, type LogicNodePuzzle, type ConstraintChecklist, type PuzzleCompleteness, type PuzzleDimension } from "./guard-puzzle.js";
|
|
18
|
-
import {
|
|
17
|
+
import { runGuardRulePack, assembleGuardAssessment, getRiskRulesCount, type GuardRisk, type GuardRiskAssessment, type GuardStakeholder, type RiskLevel, type RiskCategory, type DataSourceClass, type RiskRule } from "./guard-risk.js";
|
|
18
|
+
import { evaluateGuardDraft, type GuardDraftContext, type GuardDraftEvaluation } from "./guard-eval.js";
|
|
19
19
|
import { GUARD_BINDING_REGISTRY, GUARD_BINDINGS_VERSION, OWNER_RECEIVE_COGNITION, getGuardBindingsByObject, getGuardBinding, summarizeGuardBinding, type GuardBoundObject, type PresetKind, type GuardPresetSlot } from "./guard-bindings.js";
|
|
20
20
|
import { SCENARIO_BRIDGE_REGISTRY, SCENARIO_CHAINS, SCENARIO_TOPOLOGY_VERSION, getBridgeById, getBridgeByCode, getBridgesByObject, getBridgesForEdge, detectBridgesForEdges, getChainById, summarizeBridge, detectBridgesForObjects, type ScenarioBridge, type ScenarioChain, type BridgeParticipant, type BridgeField } from "./scenario-topology.js";
|
|
21
21
|
import { GUARD_TEMPLATES, GUARD_TEMPLATES_VERSION, GUARD_TEMPLATES_COUNT, getTemplatesByScene, getTemplateById, getTemplatesByIndustry, getTemplatesByPattern, listGuardTemplates, suggestTemplateForScene, getTemplateParameters, validateTemplateParams, type GuardTemplate, type GuardTemplateParam, type TemplateParamType } from "./guard-templates.js";
|
|
@@ -23,60 +23,62 @@ import { lintGuard, autoFixGuard, isGuardReady, getGuardErrors, formatLintResult
|
|
|
23
23
|
import { MACHINE_SCENES, MACHINE_LEDGER_VERSION, MACHINE_SCENES_COUNT, findScene as findMachineScene, getScenesByIndustry as getMachineScenesByIndustry, getScenesByPattern, inferSceneFromFlow, type MachineScene, type ParticipantRoleDef, type GuardRequirement } from "./machine-ledger.js";
|
|
24
24
|
import { MACHINE_TEMPLATES, MACHINE_TEMPLATES_VERSION, MACHINE_TEMPLATES_COUNT, getAllTemplates as getAllMachineTemplates, getTemplateById as getMachineTemplateById, getTemplatesByScene as getMachineTemplatesByScene, getTemplatesByIndustry as getMachineTemplatesByIndustry, suggestTemplateForIntent, walkDecisionTree, fillTemplate as fillMachineTemplate, forkTemplate as forkMachineTemplate, verifyTemplateSceneReferences, getReferencedGuardTemplateIds, getReferencedRiskIds, type MachineTemplate, type MachineTemplateParam } from "./machine-templates.js";
|
|
25
25
|
import { SEMANTIC_TO_MACHINE_RULES, MACHINE_CONSTRAINT_RULES, MACHINE_TRANSLATION_VERSION, MACHINE_PATTERNS_COUNT, MACHINE_CONSTRAINTS_COUNT, matchSemanticPattern as matchMachinePattern, identifyExecutionMode, identifyTopology, explainForwardPermission, getConstraintsByCategory as getMachineConstraintsByCategory, getConstraintById, getOnChainConstraints as getOnChainMachineConstraints, getOffChainConstraints as getOffChainMachineConstraints, type SemanticToMachineRule, type MachineConstraintRule } from "./machine-translation.js";
|
|
26
|
-
import { MACHINE_RISK_RULES, MACHINE_RISK_VERSION,
|
|
26
|
+
import { MACHINE_RISK_RULES, MACHINE_RISK_VERSION, assessMachineRisks, type MachineRiskRule, type MachineRiskLevel, type MachineRiskCategory, type MachineRisk, type MachineRiskAssessment, type ProjectContextForRisk, type MachineJsonForRisk } from "./machine-risk.js";
|
|
27
27
|
import { analyzeTopology, identifyTopologyPattern, formatTopologySummary, MACHINE_TOPOLOGY_VERSION, MAX_NODE_COUNT, MAX_NODE_PAIR_COUNT, MAX_FORWARD_COUNT, type MachineTopology, type MachineNode, type MachinePair, type MachineForward } from "./machine-topology.js";
|
|
28
28
|
import { initPuzzleFromIntent as initMachinePuzzleFromIntent, initPuzzleFromTemplate, checkPuzzleCompleteness as checkMachinePuzzleCompleteness, recommendNextStep as recommendMachineNextStep, derivePuzzleFromMachineJson, generateConfirmationText as generateMachineConfirmationText, MACHINE_PUZZLE_VERSION, type MachinePuzzle, type BusinessFlowPuzzle, type NodeDesignPuzzle, type GuardAcceptancePuzzle, type PermissionModelPuzzle, type ThresholdWeightPuzzle, type BranchTopologyPuzzle, type OverallObjectivePuzzle, type RiskAssessmentPuzzle, type NamedOperatorRole, type PuzzleCompleteness as MachinePuzzleCompleteness, type PuzzleDimension as MachinePuzzleDimension } from "./machine-puzzle.js";
|
|
29
29
|
import { SERVICE_SCENES, SERVICE_LEDGER_VERSION, SERVICE_PERMISSIONS, SERVICE_ORDER_FLOW_STAGES, SERVICE_CROSS_OBJECT_BINDINGS, getScenesByCategory as getServiceScenesByCategory, findSceneById as findServiceSceneById, getServicePermissionByIndex, isServicePermission, getPermissionsByMutability, getImmutablePostPublishPermissions, getLockedByDurationPermissions, inferSceneFromIntent as inferServiceSceneFromIntent, getAllServiceScenes, getServiceScenesCount, getServicePermissionsCount, getOrderFlowStage, getCrossObjectBindings as getServiceCrossObjectBindings, type ServiceScene, type ServicePermissionEntry, type ServiceCrossObjectBinding, type ServiceOrderFlowStage } from "./service-ledger.js";
|
|
30
30
|
import { initPuzzleFromIntent as initServicePuzzleFromIntent, checkPuzzleCompleteness as checkServicePuzzleCompleteness, validateConstraints as validateServiceConstraints, generateConfirmationText as generateServicePuzzleConfirmationText, initOrderFlowPuzzle, checkOrderFlowCompleteness, type ServicePuzzle, type ServicePuzzleCompleteness, type ServiceIntentPuzzle, type ServiceBindingPuzzle, type ServicePermissionAllocatorPuzzle, type ServiceGuardProtectionPuzzle, type ServiceDisputeHandlingPuzzle, type ServiceConstraintChecklist, type ServiceOrderFlowPuzzle, type ServiceConstraintViolation, type ServicePuzzleDimension } from "./service-puzzle.js";
|
|
31
|
-
import { SERVICE_RISK_VERSION, assessServiceRisks, getAllServiceRiskRules,
|
|
31
|
+
import { SERVICE_RISK_VERSION, assessServiceRisks, getAllServiceRiskRules, type ServiceRisk, type ServiceRiskAssessment, type ServiceStakeholder, type ServiceRiskLevel, type ServiceRiskCategory, type ServiceRiskRule, type ServiceRiskCheckContext } from "./service-risk.js";
|
|
32
32
|
import { SERVICE_TEMPLATES, SERVICE_TEMPLATES_VERSION, getServiceTemplateById, getServiceTemplatesByScene, getServiceTemplatesByIndustry, suggestServiceTemplateForScene, listServiceTemplates, fillServiceTemplate, getAllServiceTemplates, type ServiceTemplate, type ServiceTemplateParam, type FillServiceTemplateResult } from "./service-templates.js";
|
|
33
33
|
import { ALLOCATION_SCENES, ALLOCATION_LEDGER_VERSION, MAX_ALLOCATOR_COUNT, ALLOCATION_MAX_SHARING_COUNT, ALLOCATION_MODE_AMOUNT, ALLOCATION_MODE_RATE, ALLOCATION_MODE_SURPLUS, RATE_TOTAL_FULL, ALLOCATION_ERROR_CODES, getScenesByTriggerSource as getAllocationScenesByTriggerSource, getScenesByMode as getAllocationScenesByMode, getScenesByStrategy as getAllocationScenesByStrategy, findSceneById as findAllocationSceneById, inferSceneFromIntent as inferAllocationSceneFromIntent, getAllScenes as getAllAllocationScenes, getScenesCount as getAllocationScenesCount, allocationModeToNumber, allocationModeFromNumber, getRecipientType, isSignerRecipient, isEntityRecipient, isGuardIdentifierRecipient, getErrorName as getAllocationErrorName, getErrorDescription as getAllocationErrorDescription, type AllocationScene, type AllocationMode, type TriggerSource, type RecipientType, type Recipient } from "./allocation-ledger.js";
|
|
34
34
|
import { initPuzzleFromIntent as initAllocationPuzzleFromIntent, checkPuzzleCompleteness as checkAllocationPuzzleCompleteness, validateConstraints as validateAllocationConstraints, generateConfirmationText as generateAllocationPuzzleConfirmationText, buildDefaultAllocFlow, buildDefaultRecipientRules, buildDefaultLogicPuzzle, ALLOCATION_PUZZLE_VERSION, type AllocationPuzzle, type AllocationPuzzleCompleteness, type AllocationIntentPuzzle, type AllocationBindingPuzzle, type AllocatorConfig, type AllocatorsConfig, type PaymentInfoConfig, type AllocationDataSourcePuzzle, type AllocationOperation, type AllocationOperationPuzzle, type AllocationLogicPuzzle, type AllocationConstraintChecklist, type AllocationPuzzleDimension, type AllocationConstraintViolation } from "./allocation-puzzle.js";
|
|
35
|
-
import { ALLOCATION_RISK_VERSION, assessAllocationRisks, getAllRiskRules as getAllAllocationRiskRules,
|
|
35
|
+
import { ALLOCATION_RISK_VERSION, assessAllocationRisks, getAllRiskRules as getAllAllocationRiskRules, type AllocationRisk, type AllocationRiskAssessment, type AllocationStakeholder, type AllocationRiskLevel, type AllocationRiskCategory, type AllocationRiskRule, type AllocationRiskCheckContext } from "./allocation-risk.js";
|
|
36
36
|
import { ALLOCATION_TEMPLATES, ALLOCATION_TEMPLATES_VERSION, getAllTemplates as getAllAllocationTemplates, getTemplateById as getAllocationTemplateById, getTemplatesByScene as getAllocationTemplatesByScene, getTemplatesByIndustry as getAllocationTemplatesByIndustry, suggestTemplateForScene as suggestAllocationTemplateForScene, listTemplates as listAllocationTemplates, fillTemplate as fillAllocationTemplate, type AllocationTemplate, type AllocationTemplateParam, type TemplateParamType as AllocationTemplateParamType } from "./allocation-templates.js";
|
|
37
37
|
import { RECIPIENT_CONSTRAINT_VERSION, classifyRecipient, analyzeRecipientConstraints, isUnboundSignerTheft, canonicalDoctrine, recipientDesignGuidance, derivePayoffFromSharing, OBJECT_DRIVEABILITY, driveabilityOf, RECIPIENT_DESIGN_OPTIONS, type RecipientSpec, type ConstraintCode, type ConstraintEvidence, type RecipientConstraint, type ObjectReceiptRight, type RecipientFinding, type Stakeholder, type PayoffPosition, type AllocatorPayoff, type RecipientModel, type AllocatorModel, type GuardDef, type RecipientConstraintInput, type RecipientConstraintAudit, type RecipientDesignOption, type SlotModel, type SlotUsage, type ObjectDriveability, type DrivableObjectType } from "./recipient-constraint.js";
|
|
38
38
|
import { paymentRelations, scanRecentPaymentEvents, resolveBeneficialOwners, extractionPlanForHolder, pendingWrappersAt, trackAccountPayments, type PaymentRelationKind, type ExtractionPlan, type PendingWrapper, type TrackedPayment, type TrackedPaymentLeg } from "./payment-tracker.js";
|
|
39
|
-
import { TREASURY_LEDGER_VERSION, TREASURY_SCENES, TREASURY_PERMISSIONS as TREASURY_BUILTIN_PERMISSIONS, getScenesByHostObject as getTreasuryScenesByHostObject, findSceneById as findTreasurySceneById, findSceneByPermissionIndex as findTreasurySceneByPermissionIndex, getBuiltinPermissionByIndex as getTreasuryBuiltinPermissionByIndex, isBuiltinTreasuryPermission, getActiveBuiltinPermissions as getActiveTreasuryBuiltinPermissions, getReservedBuiltinPermissions as getReservedTreasuryBuiltinPermissions, inferSceneFromIntent as inferTreasurySceneFromIntent, getTreasuryScenesCount,
|
|
39
|
+
import { TREASURY_LEDGER_VERSION, TREASURY_SCENES, TREASURY_PERMISSIONS as TREASURY_BUILTIN_PERMISSIONS, getScenesByHostObject as getTreasuryScenesByHostObject, findSceneById as findTreasurySceneById, findSceneByPermissionIndex as findTreasurySceneByPermissionIndex, getBuiltinPermissionByIndex as getTreasuryBuiltinPermissionByIndex, isBuiltinTreasuryPermission, getActiveBuiltinPermissions as getActiveTreasuryBuiltinPermissions, getReservedBuiltinPermissions as getReservedTreasuryBuiltinPermissions, inferSceneFromIntent as inferTreasurySceneFromIntent, getTreasuryScenesCount, getGovernedOperationsForPermissionIndex as getTreasuryGovernedOperationsForPermissionIndex, type TreasuryScene, type BuiltinTreasuryPermissionEntry } from "./treasury-ledger.js";
|
|
40
40
|
import { initPuzzleFromIntent as initTreasuryPuzzleFromIntent, checkPuzzleCompleteness as checkTreasuryPuzzleCompleteness, validateConstraints as validateTreasuryConstraints, generateConfirmationText as generateTreasuryPuzzleConfirmationText, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, MAX_DESCRIPTION_LENGTH as TREASURY_MAX_DESCRIPTION_LENGTH, type TreasuryIntentPuzzle, type TreasuryBindingPuzzle, type TreasuryDataSourcePuzzle, type AmountFromDepositGuardPuzzle, type AmountFromWithdrawGuardPuzzle, type TreasuryOperation, type TreasuryOperationPuzzle, type TreasuryLogicPuzzle, type TreasuryConstraintChecklist, type TreasuryPuzzleDimension, type TreasuryPuzzle, type TreasuryPuzzleCompleteness, type TreasuryConstraintViolation } from "./treasury-puzzle.js";
|
|
41
41
|
import { TREASURY_TEMPLATES, TREASURY_TEMPLATES_VERSION, getAllTreasuryTemplates, getTemplateById as getTreasuryTemplateById, getTemplatesByScene as getTreasuryTemplatesByScene, getTemplatesByIndustry as getTreasuryTemplatesByIndustry, suggestTemplateForScene as suggestTreasuryTemplateForScene, listTemplates as listTreasuryTemplates, fillTemplate as fillTreasuryTemplate, type TreasuryTemplateParamType, type TreasuryTemplateParam, type TreasuryTemplate } from "./treasury-templates.js";
|
|
42
|
-
import { TREASURY_RISK_VERSION, assessTreasuryRisks, getAllTreasuryRiskRules,
|
|
42
|
+
import { TREASURY_RISK_VERSION, assessTreasuryRisks, getAllTreasuryRiskRules, type TreasuryRisk, type TreasuryRiskAssessment, type TreasuryRiskLevel, type TreasuryRiskCategory, type TreasuryRiskRule, type TreasuryStakeholder, type TreasuryRiskCheckContext } from "./treasury-risk.js";
|
|
43
43
|
import { ORDER_LEDGER_VERSION, ORDER_SCENES, ORDER_FIELDS, ORDER_STATES, ORDER_STATE_TRANSITIONS, ORDER_LIFECYCLE_EVENTS, ORDER_PERMISSION_MATRIX, ORDER_AUDIT_FORMULAS, getScenesByOperationField as getOrderScenesByOperationField, findSceneById as findOrderSceneById, findSceneByMoveEntry as findOrderSceneByMoveEntry, getScenesByPermissionLayer as getOrderScenesByPermissionLayer, getScenesByReversibility as getOrderScenesByReversibility, getFieldDef as getOrderFieldDef, getMutableFields as getOrderMutableFields, getImmutableFields as getOrderImmutableFields, getFrozenAfterProgressFields as getOrderFrozenAfterProgressFields, getOneTimeSetFields as getOrderOneTimeSetFields, inferSceneFromIntent as inferOrderSceneFromIntent, getEmittedEvents as getOrderEmittedEvents, getInferredEvents as getOrderInferredEvents, getOrderScenesCount, sdkToMoveField as sdkToMoveOrderField, moveToSdkField as moveToSdkOrderField, type OrderScene, type OrderPermissionLayer, type OrderReversibility, type OrderFieldDef, type OrderState, type OrderLifecycleEvent } from "./order-ledger.js";
|
|
44
44
|
import { initPuzzleFromIntent as initOrderPuzzleFromIntent, checkPuzzleCompleteness as checkOrderPuzzleCompleteness, validateConstraints as validateOrderConstraints, generateConfirmationText as generateOrderPuzzleConfirmationText, verifySnapshotMechanism as verifyOrderSnapshotMechanism, inferLifecyclePhase as inferOrderLifecyclePhase, matchSceneFromPuzzle as matchOrderSceneFromPuzzle, listAllScenes as listAllOrderScenes, lookupScene as lookupOrderScene, type OrderIntentPuzzle, type OrderBindingPuzzle, type OrderDataSourcePuzzle, type OrderOperation, type OrderOperationPuzzle, type OrderLogicPuzzle, type OrderConstraintChecklist, type OrderPuzzleDimension, type OrderPuzzle, type OrderPuzzleCompleteness, type OrderConstraintViolation } from "./order-puzzle.js";
|
|
45
45
|
import { ORDER_TEMPLATES, ORDER_TEMPLATES_VERSION, ORDER_TEMPLATES_COUNT, getAllOrderTemplates, getTemplateById as getOrderTemplateById, getTemplatesByScene as getOrderTemplatesByScene, getTemplatesByIndustry as getOrderTemplatesByIndustry, getTemplatesByPermissionLayer as getOrderTemplatesByPermissionLayer, getIrreversibleTemplates as getIrreversibleOrderTemplates, suggestTemplateForScene as suggestOrderTemplateForScene, listOrderTemplates, fillTemplate as fillOrderTemplate, suggestTemplateFromIntent as suggestOrderTemplateFromIntent, getTemplateParameters as getOrderTemplateParameters, validateTemplateParams as validateOrderTemplateParams, type TemplateParamType as OrderTemplateParamType, type OrderTemplateParam, type OrderTemplate, type FillTemplateResult as FillOrderTemplateResult } from "./order-templates.js";
|
|
46
|
-
import { ORDER_RISK_VERSION, assessOrderRisks, getAllOrderRiskRules,
|
|
46
|
+
import { ORDER_RISK_VERSION, assessOrderRisks, getAllOrderRiskRules, type OrderRisk, type OrderRiskAssessment, type OrderRiskLevel, type OrderRiskCategory, type OrderRiskRule, type OrderStakeholder, type OrderRiskCheckContext } from "./order-risk.js";
|
|
47
47
|
import { PROGRESS_LEDGER_VERSION, PROGRESS_SCENES, PROGRESS_PERMISSIONS as PROGRESS_BUILTIN_PERMISSIONS, PROGRESS_NEW, PROGRESS_NAMED_OPERATOR, PROGRESS_TASK, PROGRESS_CONTEXT_REPOSITORY, PROGRESS_UNHOLD, PROGRESS_OWNER_RECEIVE, PROGRESS_CROSS_OBJECT_REFS, getScenesByPhase as getProgressScenesByPhase, findSceneById as findProgressSceneById, getScenesByIndustry as getProgressScenesByIndustry, getBuiltinPermissionByIndex as getProgressBuiltinPermissionByIndex, isProgressBuiltinPermission, inferSceneFromIntent as inferProgressSceneFromIntent, getAllBuiltinPermissions as getAllProgressBuiltinPermissions, getProgressScenesCount, validateNamedOperatorAddressList, validateNamedOperatorCount, validateContextRepositoryCount, type ProgressPhase, type ProgressBuiltinPermissionEntry, type ProgressScene } from "./progress-ledger.js";
|
|
48
48
|
import { initPuzzleFromIntent as initProgressPuzzleFromIntent, checkPuzzleCompleteness as checkProgressPuzzleCompleteness, validateConstraints as validateProgressConstraints, generateConfirmationText as generateProgressPuzzleConfirmationText, resolveBuiltinPermission as resolveProgressBuiltinPermission, isOrderHolderForward, getRelevantDimensions as getProgressRelevantDimensions, type ProgressIntentPuzzle, type ProgressWorkflowPuzzle, type ProgressNamedOperatorPuzzle, type ProgressTaskPuzzle, type ProgressPermissionPuzzle, type ProgressConstraintChecklist, type ProgressPuzzleDimension, type ProgressPuzzle, type ProgressPuzzleCompleteness, type ProgressConstraintViolation } from "./progress-puzzle.js";
|
|
49
49
|
import { PROGRESS_TEMPLATES, PROGRESS_TEMPLATES_VERSION, getAllProgressTemplates, getProgressTemplateById, getProgressTemplatesByScene, getProgressTemplatesByIndustry, suggestProgressTemplateForScene, listProgressTemplates, fillProgressTemplate, type ProgressTemplateParamType, type ProgressTemplateParam, type ProgressTemplate } from "./progress-templates.js";
|
|
50
|
-
import { PROGRESS_RISK_VERSION, assessProgressRisks, getAllProgressRiskRules,
|
|
50
|
+
import { PROGRESS_RISK_VERSION, assessProgressRisks, getAllProgressRiskRules, type ProgressRisk, type ProgressRiskAssessment, type ProgressRiskLevel, type ProgressRiskCategory, type ProgressRiskRule, type ProgressStakeholder, type ProgressRiskCheckContext } from "./progress-risk.js";
|
|
51
51
|
import { ARBITRATION_LEDGER_VERSION, ARBITRATION_SCENES, ARBITRATION_PERMISSIONS as ARBITRATION_BUILTIN_PERMISSIONS, ARB_STATUS_CODE, ARB_TERMINAL_STATUSES, ARB_STATUS_ALIASES, DUAL_GUARD_MATRIX, getScenesByCategory as getArbitrationScenesByCategory, findSceneById as findArbitrationSceneById, findSceneByPermissionIndex as findArbitrationSceneByPermissionIndex, getPermissionByIndex as getArbitrationPermissionByIndex, getPermissionByName as getArbitrationPermissionByName, isReservedIndex as isArbitrationReservedIndex, isUsedPermissionIndex as isArbitrationUsedPermissionIndex, getActivePermissionCount as getArbitrationActivePermissionCount, inferSceneFromIntent as inferArbitrationSceneFromIntent, getDualGuardMatrixEntry, isValidArbStatusTransition, isTerminalArbStatus, getScenesProducingStatus as getArbitrationScenesProducingStatus, getScenesRequiringStatus as getArbitrationScenesRequiringStatus, getArbitrationScenesCount, getAllArbitrationPermissions, getActiveArbitrationPermissions, type ArbitrationScene, type ArbStatus, type ArbitrationPermissionEntry, type VotingGuardEntry, type DualGuardMatrix } from "./arbitration-ledger.js";
|
|
52
52
|
import { initPuzzleFromIntent as initArbitrationPuzzleFromIntent, checkPuzzleCompleteness as checkArbitrationPuzzleCompleteness, validateConstraints as validateArbitrationConstraints, generateConfirmationText as generateArbitrationPuzzleConfirmationText, type IntentPuzzle as ArbitrationIntentPuzzle, type ArbitrationConfigPuzzle, type VotingGuardPuzzle, type UsageGuardPuzzle, type ArbiterConfigPuzzle, type ConstraintChecklist as ArbitrationConstraintChecklist, type PuzzleDimension as ArbitrationPuzzleDimension, type ArbitrationPuzzle, type PuzzleCompleteness as ArbitrationPuzzleCompleteness, type ConstraintViolation as ArbitrationConstraintViolation } from "./arbitration-puzzle.js";
|
|
53
53
|
import { ARBITRATION_TEMPLATES, ARBITRATION_TEMPLATES_VERSION, getAllTemplates as getAllArbitrationTemplates, getTemplateById as getArbitrationTemplateById, getTemplatesByScene as getArbitrationTemplatesByScene, getTemplatesByIndustry as getArbitrationTemplatesByIndustry, suggestTemplateForScene as suggestArbitrationTemplateForScene, listTemplates as listArbitrationTemplates, fillTemplate as fillArbitrationTemplate, type TemplateParamType as ArbitrationTemplateParamType, type ArbitrationTemplateParam, type ArbitrationTemplate } from "./arbitration-templates.js";
|
|
54
|
-
import { ARBITRATION_RISK_VERSION, assessArbitrationRisks, getAllRiskRules as getAllArbitrationRiskRules,
|
|
54
|
+
import { ARBITRATION_RISK_VERSION, assessArbitrationRisks, getAllRiskRules as getAllArbitrationRiskRules, type ArbitrationRisk, type ArbitrationRiskAssessment, type RiskLevel as ArbitrationRiskLevel, type RiskCategory as ArbitrationRiskCategory, type RiskRule as ArbitrationRiskRule, type ArbitrationStakeholder, type RiskCheckContext as ArbitrationRiskCheckContext } from "./arbitration-risk.js";
|
|
55
55
|
import { REWARD_LEDGER_VERSION, REWARD_SCENES, REWARD_PERMISSIONS, REWARD_FIELDS, REWARD_GUARD_CONSTRUCTORS, REWARD_ERROR_CODES, REWARD_CROSS_OBJECT_REFS, MAX_GUARD_COUNT_REWARD, MAX_RECORD_COUNT_REWARD, getScenesByPhase as getRewardScenesByPhase, findSceneById as findRewardSceneById, getScenesByIndustry as getRewardScenesByIndustry, getBuiltinPermissionByIndex as getRewardBuiltinPermissionByIndex, isRewardBuiltinPermission, getAllBuiltinPermissions as getAllRewardBuiltinPermissions, getRewardScenesCount, getGuardConstructorSpec as getRewardGuardConstructorSpec, resolveGuardConstructor as resolveRewardGuardConstructor, getRewardErrorByCode, getRewardErrorByName, validateGuardCount as validateRewardGuardCount, validateRecordCount as validateRewardRecordCount, inferSceneFromIntent as inferRewardSceneFromIntent, type RewardPhase, type RewardBuiltinPermissionEntry, type RewardRecipientType, type RewardAmountType, type RewardGuardConstructor, type RewardGuardConstructorSpec, type RewardScene, type RewardFieldEntry, type RewardErrorCodeEntry } from "./reward-ledger.js";
|
|
56
56
|
import { REWARD_FIELD_MUTABILITY, initPuzzleFromIntent as initRewardPuzzleFromIntent, checkPuzzleCompleteness as checkRewardPuzzleCompleteness, validateConstraints as validateRewardConstraints, generateConfirmationText as generateRewardPuzzleConfirmationText, resolveBuiltinPermission as resolveRewardBuiltinPermission, requiresGuardConfig as requiresRewardGuardConfig, requiresPassport as requiresRewardPassport, getRelevantDimensions as getRewardRelevantDimensions, getFieldMutability as getRewardFieldMutability, isAdminMutableField as isRewardAdminMutableField, getFieldPermissionIndex as getRewardFieldPermissionIndex, type RewardIntentPuzzle, type RewardConfigPuzzle, type RewardGuardPuzzle, type RewardFundsPuzzle, type RewardPermissionPuzzle, type RewardConstraintChecklist, type RewardPuzzleDimension, type RewardPuzzle, type RewardPuzzleCompleteness, type RewardFieldMutability as RewardFieldMutabilityType, type RewardFieldMutabilityEntry, type RewardConstraintViolation } from "./reward-puzzle.js";
|
|
57
|
-
import { REWARD_RISK_VERSION,
|
|
57
|
+
import { REWARD_RISK_VERSION, assessRewardRisks, getAllRewardRiskRules, type RewardRisk, type RewardRiskLevel, type RewardRiskCategory, type RewardRiskRule, type RewardStakeholder, type RewardRiskCheckContext, type RewardRiskAssessment, type RewardGuardAddEntry } from "./reward-risk.js";
|
|
58
58
|
import { PASSPORT_LEDGER_VERSION, PASSPORT_ERROR_CODES, PASSPORT_SCENARIOS, MAX_GUARD_COUNT_PASSPORT, MAX_SUBMISSION_SIZE_PASSPORT, getAllScenarios as getAllPassportScenarios, getScenariosCount as getPassportScenesCount, findScenarioById as findPassportScenarioById, getScenariosByConsumer as getPassportScenariosByConsumer, getScenariosUsingRelies as getPassportScenariosUsingRelies, inferScenarioFromIntent as inferPassportScenarioFromIntent, impackRoleFromBoolean, impackRoleToBoolean, reliesLogicFromBoolean, reliesLogicToBoolean, getErrorName as getPassportErrorName, getErrorDescription as getPassportErrorDescription, type ImpackRole, type ReliesLogic, type PassportLifecycleStage, type PassportScenario, type PassportConsumerObject, type PassportParticipant } from "./passport-ledger.js";
|
|
59
59
|
import { PASSPORT_TEMPLATES, PASSPORT_TEMPLATES_VERSION, getAllTemplates as getAllPassportTemplates, getTemplateById as getPassportTemplateById, getTemplatesByScenario as getPassportTemplatesByScenario, getTemplatesByIndustry as getPassportTemplatesByIndustry, suggestTemplateForScenario as suggestPassportTemplateForScenario, listTemplates as listPassportTemplates, fillTemplate as fillPassportTemplate, type TemplateParamType as PassportTemplateParamType, type PassportTemplateParam, type PassportTemplate } from "./passport-templates.js";
|
|
60
|
-
import { PROOF_RISK_RULES, checkProofRisks,
|
|
61
|
-
import { REPOSITORY_RISK_RULES, checkRepositoryRisks,
|
|
62
|
-
import { DEMAND_RISK_RULES, checkDemandRisks,
|
|
63
|
-
import { CONTACT_RISK_RULES, CONTACT_RISK_VERSION, checkContactRisks,
|
|
64
|
-
import { RESOURCE_RISK_RULES, RESOURCE_RISK_VERSION, checkResourceRisks,
|
|
65
|
-
import { PAYMENT_RISK_RULES, PAYMENT_RISK_VERSION, checkPaymentRisks,
|
|
66
|
-
import { ARB_RISK_RULES, ARB_RISK_VERSION, checkArbRisks,
|
|
67
|
-
import { PERSONAL_RISK_RULES, PERSONAL_RISK_VERSION, checkPersonalRisks,
|
|
68
|
-
import { UTIL_RISK_RULES, UTIL_RISK_VERSION, checkUtilRisks,
|
|
69
|
-
import { REGISTRAR_RISK_RULES, REGISTRAR_RISK_VERSION, checkRegistrarRisks,
|
|
70
|
-
import { BRIDGE_RISK_RULES, BRIDGE_RISK_VERSION, checkBridgeRisks,
|
|
60
|
+
import { PROOF_RISK_RULES, checkProofRisks, type ProofRiskLevel, type ProofRiskCategory, type ProofStakeholder, type ProofRisk, type ProofRiskCheckContext } from "./proof-risk.js";
|
|
61
|
+
import { REPOSITORY_RISK_RULES, checkRepositoryRisks, parseIdFromForRiskCheck, type RepositoryRiskLevel, type RepositoryRiskCategory, type RepositoryStakeholder, type RepositoryRisk, type RepositoryRiskCheckContext } from "./repository-risk.js";
|
|
62
|
+
import { DEMAND_RISK_RULES, checkDemandRisks, type DemandRiskLevel, type DemandRiskCategory, type DemandStakeholder, type DemandRisk, type DemandRiskCheckContext } from "./demand-risk.js";
|
|
63
|
+
import { CONTACT_RISK_RULES, CONTACT_RISK_VERSION, checkContactRisks, type ContactRiskLevel, type ContactRiskCategory, type ContactStakeholder, type ContactRisk, type ContactRiskCheckContext } from "./contact-risk.js";
|
|
64
|
+
import { RESOURCE_RISK_RULES, RESOURCE_RISK_VERSION, checkResourceRisks, type ResourceRiskLevel, type ResourceRiskCategory, type ResourceStakeholder, type ResourceRisk, type ResourceRiskCheckContext } from "./resource-risk.js";
|
|
65
|
+
import { PAYMENT_RISK_RULES, PAYMENT_RISK_VERSION, checkPaymentRisks, type PaymentRiskLevel, type PaymentRiskCategory, type PaymentStakeholder, type PaymentRisk, type PaymentRiskCheckContext } from "./payment-risk.js";
|
|
66
|
+
import { ARB_RISK_RULES, ARB_RISK_VERSION, checkArbRisks, type ArbRiskLevel, type ArbRiskCategory, type ArbStakeholder, type ArbRisk, type ArbRiskCheckContext } from "./arb-risk.js";
|
|
67
|
+
import { PERSONAL_RISK_RULES, PERSONAL_RISK_VERSION, checkPersonalRisks, type PersonalRiskLevel, type PersonalRiskCategory, type PersonalStakeholder, type PersonalRisk, type PersonalRiskCheckContext } from "./personal-risk.js";
|
|
68
|
+
import { UTIL_RISK_RULES, UTIL_RISK_VERSION, checkUtilRisks, type UtilRiskLevel, type UtilRiskCategory, type UtilStakeholder, type UtilRisk, type UtilRiskCheckContext } from "./util-risk.js";
|
|
69
|
+
import { REGISTRAR_RISK_RULES, REGISTRAR_RISK_VERSION, checkRegistrarRisks, type RegistrarRiskLevel, type RegistrarRiskCategory, type RegistrarStakeholder, type RegistrarRisk, type RegistrarRiskCheckContext } from "./registrar-risk.js";
|
|
70
|
+
import { BRIDGE_RISK_RULES, BRIDGE_RISK_VERSION, checkBridgeRisks, type BridgeRiskLevel, type BridgeRiskCategory, type BridgeStakeholder, type BridgeRisk, type BridgeRiskCheckContext } from "./bridge-risk.js";
|
|
71
71
|
import { TOOLS_REFERENCE, getToolReference, searchToolReference, getToolSequence, type ToolReferenceEntry } from "./tools-reference.js";
|
|
72
72
|
import { SCENARIO_MODES, SCENARIO_MODES_VERSION, MODE_COMPOSITIONS, matchScenarioMode, inferScenarioTraits, getScenarioMode, listScenarioModes, getShippedModes, getModeCompositions, type IndustryModeName, type ScenarioTraits, type ModeAllocatorStrategy, type ModeGuardRef, type ModeMachineNode, type ScenarioMode, type ModeComposition } from "./scenario-modes.js";
|
|
73
|
+
import { BUILTIN_TEMPLATES, BUILTIN_TEMPLATES_VERSION, getBuiltinTemplate, listBuiltinTemplates, TEMPLATE_KEYWORDS, type ArchetypeTemplate } from "./builtin-templates.js";
|
|
74
|
+
import { resolveTemplatesDir, seedBuiltinTemplates, reloadTemplates, listTemplates, getTemplate, getTemplatesByIndustry as getIndustryTemplates, parseTemplateFile, renderTemplateFile, loadAndValidate, INDUSTRY_VALUES, TemplateFrontmatterSchema, type TemplateFrontmatter, type IndustryTemplate } from "./template-loader.js";
|
|
75
|
+
import { scanTemplate, type TemplateRiskLevel, type TemplateScanFinding, type TemplateScanResult } from "./template-scanner.js";
|
|
73
76
|
import { GUARD_DESIGN_PATTERNS, GUARD_DESIGN_PATTERNS_VERSION, VERIFIER_LEVEL_GUIDANCE, getGuardDesignPattern, searchGuardDesignPatterns, getPatternsByHost, getPatternsByIndustry, getPatternsByDataSourceClass, getVerifierLevelGuidance, suggestPatternForRequirement, type GuardDataSourceClass, type VerifierConstraintLevel, type GuardHostObject, type GuardDesignPattern, type VerifierLevelGuidance } from "./guard-design-patterns.js";
|
|
74
77
|
export { CONFIRMATION_RULES, SAFETY_RULES_VERSION, OBJECT_REUSE_RULES, CREATE_VS_MODIFY_PATTERN, IMMUTABILITY_RULES, OPERATION_TYPE_CLASSIFICATION, OPERATION_CLASS_META, classifyTool, NAMING_CONVENTIONS, checkObjectReuseRules, checkImmutabilityRules, type ConfirmationRule, type OperationPreview, type ConfirmLevel, type ReuseRecommendation, type ObjectReuseRule, type ImmutabilityRule, type OperationClass, type OperationClassMeta, type SafetyRiskItem, };
|
|
75
78
|
export { TOOL_CONSTRAINTS, TOOL_CONSTRAINTS_VERSION, validateOperation, hasBlockingViolations, getWarningViolations, type ConstraintSeverity, type FieldConstraint, type OperationConstraint, type ConstraintViolation, };
|
|
76
79
|
export { REWARD_TEMPLATES, REWARD_TEMPLATES_VERSION, getRewardTemplate, listRewardTemplates, suggestRewardTemplate, type RewardTemplateType, type RewardTemplate, };
|
|
77
80
|
export { AUDIT_RULES, AUDIT_RULES_VERSION, auditService, hasBlockingErrors, getErrors, getWarnings, summarizeFindings, type AuditSeverity, type AuditFinding, type AuditRule, type AuditContext, };
|
|
78
81
|
export { suggestPricing, MUTABLE_FIELDS, DYNAMIC_PRICING_VERSION, type MarketSignals, type PricingSuggestion, type MutableFieldInfo, };
|
|
79
|
-
export { computeServiceTrustScore, quickTrustCheck, TRUST_METRICS_VERSION, type ServiceTrustMetrics, type ServiceTrustScore, type TrustDimension, type TrustInjection, type TrustDimensionId, type TrustFinding, TRUST_DIMENSION_WEIGHTS, };
|
|
80
82
|
export { buildReviewRepositorySetup, computeReviewStats, isVerifiedReview, filterVerifiedReviews, detectReviewManipulation, REPUTATION_RULES_VERSION, type Review, type ReviewStats, type ReviewRepositorySetup, };
|
|
81
83
|
export { INDUSTRY_FLYWHEELS, getFlywheelForIndustry, listIndustries, suggestAcquisitionActions, generateTrustDescription, buildAcquisitionDashboard, ACQUISITION_FLYWHEEL_VERSION, type FlywheelAction, type AcquisitionFlywheel, type TrustDescriptionParams, type AcquisitionDashboard, };
|
|
82
84
|
export { STRATEGY_MANUAL_FILENAME, STRATEGY_MANUAL_VERSION, renderStrategyManual, parseManualSentinel, classifyManualFile, getBuiltinStrategyManual, listBuiltinStrategyManualIndustries, type ManualSentinel, type ManualFileState, type BuiltinStrategyManual, } from "./strategy-manuals.js";
|
|
@@ -89,58 +91,61 @@ export { BUILTIN_INTENT_SPECS, registerIntentProfile, getIntentProfile, listInte
|
|
|
89
91
|
export { GUARD_SCENES, findScene, inferSceneFromAction, getImmutableScenes, getNumericIdentifierScenes, type GuardScene, };
|
|
90
92
|
export { SEMANTIC_TO_SCHEMA_RULES, SCHEMA_TO_SEMANTIC_RULES, GUARD_CONSTRAINT_RULES, matchSemanticPattern, explainNode, explainWitness, getConstraintsByCategory, type SemanticToSchemaRule, type SchemaToSemanticRule, type GuardConstraintRule, };
|
|
91
93
|
export { checkPuzzleCompleteness, generateConfirmationText, initPuzzleFromIntent, inferBindingFromAction, emptyDataSources, getWitnessInfo, WITNESS_NAME_MAP, type GuardPuzzle, type IntentPuzzle, type BindingPuzzle, type DataSourcePuzzle, type OnChainConstantEntry, type WitnessDerivedEntry, type SubmittedObjectEntry, type SubmittedValueEntry, type SystemContextEntry, type QueryPuzzle, type LogicNodePuzzle, type ConstraintChecklist, type PuzzleCompleteness, type PuzzleDimension, };
|
|
92
|
-
export {
|
|
94
|
+
export { runGuardRulePack, assembleGuardAssessment, evaluateGuardDraft, type GuardDraftContext, type GuardDraftEvaluation, getRiskRulesCount, type GuardRisk, type GuardRiskAssessment, type GuardStakeholder, type RiskLevel, type RiskCategory, type DataSourceClass, type RiskRule, GUARD_TEMPLATES, GUARD_TEMPLATES_VERSION, GUARD_TEMPLATES_COUNT, getTemplatesByScene, getTemplateById, getTemplatesByIndustry, getTemplatesByPattern, listGuardTemplates, suggestTemplateForScene, getTemplateParameters, validateTemplateParams, type GuardTemplate, type GuardTemplateParam, type TemplateParamType, GUARD_BINDING_REGISTRY, GUARD_BINDINGS_VERSION, OWNER_RECEIVE_COGNITION, getGuardBindingsByObject, getGuardBinding, summarizeGuardBinding, type GuardBoundObject, type PresetKind, type GuardPresetSlot, SCENARIO_BRIDGE_REGISTRY, SCENARIO_CHAINS, SCENARIO_TOPOLOGY_VERSION, getBridgeById, getBridgeByCode, getBridgesByObject, getBridgesForEdge, detectBridgesForEdges, getChainById, summarizeBridge, detectBridgesForObjects, type ScenarioBridge, type ScenarioChain, type BridgeParticipant, type BridgeField, lintGuard, autoFixGuard, isGuardReady, getGuardErrors, formatLintResult, type GuardJsonInput, type GuardLintResult, type GuardDiagnostic, type DiagnosticSeverity, type DiagnosticSource, type AutoFixAction, };
|
|
93
95
|
export { MACHINE_SCENES, MACHINE_LEDGER_VERSION, MACHINE_SCENES_COUNT, findMachineScene, getMachineScenesByIndustry, getScenesByPattern, inferSceneFromFlow, type MachineScene, type ParticipantRoleDef, type GuardRequirement, };
|
|
94
96
|
export { MACHINE_TEMPLATES, MACHINE_TEMPLATES_VERSION, MACHINE_TEMPLATES_COUNT, getAllMachineTemplates, getMachineTemplateById, getMachineTemplatesByScene, getMachineTemplatesByIndustry, suggestTemplateForIntent, walkDecisionTree, fillMachineTemplate, forkMachineTemplate, verifyTemplateSceneReferences, getReferencedGuardTemplateIds, getReferencedRiskIds, type MachineTemplate, type MachineTemplateParam, };
|
|
95
97
|
export { SEMANTIC_TO_MACHINE_RULES, MACHINE_CONSTRAINT_RULES, MACHINE_TRANSLATION_VERSION, MACHINE_PATTERNS_COUNT, MACHINE_CONSTRAINTS_COUNT, matchMachinePattern, identifyExecutionMode, identifyTopology, explainForwardPermission, getMachineConstraintsByCategory, getConstraintById, getOnChainMachineConstraints, getOffChainMachineConstraints, type SemanticToMachineRule, type MachineConstraintRule, };
|
|
96
|
-
export { MACHINE_RISK_RULES, MACHINE_RISK_VERSION,
|
|
98
|
+
export { MACHINE_RISK_RULES, MACHINE_RISK_VERSION, assessMachineRisks, type MachineRiskRule, type MachineRiskLevel, type MachineRiskCategory, type MachineRisk, type MachineRiskAssessment, type ProjectContextForRisk, type MachineJsonForRisk, };
|
|
97
99
|
export { analyzeTopology, identifyTopologyPattern, formatTopologySummary, MACHINE_TOPOLOGY_VERSION, MAX_NODE_COUNT, MAX_NODE_PAIR_COUNT, MAX_FORWARD_COUNT, type MachineTopology, type MachineNode, type MachinePair, type MachineForward, };
|
|
98
100
|
export { initMachinePuzzleFromIntent, initPuzzleFromTemplate, checkMachinePuzzleCompleteness, recommendMachineNextStep, derivePuzzleFromMachineJson, generateMachineConfirmationText, MACHINE_PUZZLE_VERSION, type MachinePuzzle, type BusinessFlowPuzzle, type NodeDesignPuzzle, type GuardAcceptancePuzzle, type PermissionModelPuzzle, type ThresholdWeightPuzzle, type BranchTopologyPuzzle, type OverallObjectivePuzzle, type RiskAssessmentPuzzle, type NamedOperatorRole, type MachinePuzzleCompleteness, type MachinePuzzleDimension, };
|
|
99
101
|
export { SERVICE_SCENES, SERVICE_LEDGER_VERSION, SERVICE_PERMISSIONS, SERVICE_ORDER_FLOW_STAGES, SERVICE_CROSS_OBJECT_BINDINGS, getServiceScenesByCategory, findServiceSceneById, getServicePermissionByIndex, isServicePermission, getPermissionsByMutability, getImmutablePostPublishPermissions, getLockedByDurationPermissions, inferServiceSceneFromIntent, getAllServiceScenes, getServiceScenesCount, getServicePermissionsCount, getOrderFlowStage, getServiceCrossObjectBindings, type ServiceScene, type ServicePermissionEntry, type ServiceCrossObjectBinding, type ServiceOrderFlowStage, };
|
|
100
102
|
export { initServicePuzzleFromIntent, checkServicePuzzleCompleteness, validateServiceConstraints, generateServicePuzzleConfirmationText, initOrderFlowPuzzle, checkOrderFlowCompleteness, type ServicePuzzle, type ServicePuzzleCompleteness, type ServiceIntentPuzzle, type ServiceBindingPuzzle, type ServicePermissionAllocatorPuzzle, type ServiceGuardProtectionPuzzle, type ServiceDisputeHandlingPuzzle, type ServiceConstraintChecklist, type ServiceOrderFlowPuzzle, type ServiceConstraintViolation, type ServicePuzzleDimension, };
|
|
101
|
-
export { SERVICE_RISK_VERSION, assessServiceRisks, getAllServiceRiskRules,
|
|
103
|
+
export { SERVICE_RISK_VERSION, assessServiceRisks, getAllServiceRiskRules, type ServiceRisk, type ServiceRiskAssessment, type ServiceStakeholder, type ServiceRiskLevel, type ServiceRiskCategory, type ServiceRiskRule, type ServiceRiskCheckContext, };
|
|
102
104
|
export { SERVICE_TEMPLATES, SERVICE_TEMPLATES_VERSION, getServiceTemplateById, getServiceTemplatesByScene, getServiceTemplatesByIndustry, suggestServiceTemplateForScene, listServiceTemplates, fillServiceTemplate, getAllServiceTemplates, type ServiceTemplate, type ServiceTemplateParam, type FillServiceTemplateResult, };
|
|
103
105
|
export { ALLOCATION_SCENES, ALLOCATION_LEDGER_VERSION, MAX_ALLOCATOR_COUNT, ALLOCATION_MAX_SHARING_COUNT, ALLOCATION_MODE_AMOUNT, ALLOCATION_MODE_RATE, ALLOCATION_MODE_SURPLUS, RATE_TOTAL_FULL, ALLOCATION_ERROR_CODES, getAllocationScenesByTriggerSource, getAllocationScenesByMode, getAllocationScenesByStrategy, findAllocationSceneById, inferAllocationSceneFromIntent, getAllAllocationScenes, getAllocationScenesCount, allocationModeToNumber, allocationModeFromNumber, getRecipientType, isSignerRecipient, isEntityRecipient, isGuardIdentifierRecipient, getAllocationErrorName, getAllocationErrorDescription, type AllocationScene, type AllocationMode, type TriggerSource, type RecipientType, type Recipient, };
|
|
104
106
|
export { initAllocationPuzzleFromIntent, checkAllocationPuzzleCompleteness, validateAllocationConstraints, generateAllocationPuzzleConfirmationText, buildDefaultAllocFlow, buildDefaultRecipientRules, buildDefaultLogicPuzzle, ALLOCATION_PUZZLE_VERSION, type AllocationPuzzle, type AllocationPuzzleCompleteness, type AllocationIntentPuzzle, type AllocationBindingPuzzle, type AllocatorConfig, type AllocatorsConfig, type PaymentInfoConfig, type AllocationDataSourcePuzzle, type AllocationOperation, type AllocationOperationPuzzle, type AllocationLogicPuzzle, type AllocationConstraintChecklist, type AllocationPuzzleDimension, type AllocationConstraintViolation, };
|
|
105
|
-
export { ALLOCATION_RISK_VERSION, assessAllocationRisks, getAllAllocationRiskRules,
|
|
107
|
+
export { ALLOCATION_RISK_VERSION, assessAllocationRisks, getAllAllocationRiskRules, type AllocationRisk, type AllocationRiskAssessment, type AllocationStakeholder, type AllocationRiskLevel, type AllocationRiskCategory, type AllocationRiskRule, type AllocationRiskCheckContext, };
|
|
106
108
|
export { ALLOCATION_TEMPLATES, ALLOCATION_TEMPLATES_VERSION, getAllAllocationTemplates, getAllocationTemplateById, getAllocationTemplatesByScene, getAllocationTemplatesByIndustry, suggestAllocationTemplateForScene, listAllocationTemplates, fillAllocationTemplate, type AllocationTemplate, type AllocationTemplateParam, type AllocationTemplateParamType, };
|
|
107
109
|
export { RECIPIENT_CONSTRAINT_VERSION, classifyRecipient, analyzeRecipientConstraints, isUnboundSignerTheft, canonicalDoctrine, recipientDesignGuidance, derivePayoffFromSharing, OBJECT_DRIVEABILITY, driveabilityOf, RECIPIENT_DESIGN_OPTIONS, type RecipientSpec, type ConstraintCode, type ConstraintEvidence, type RecipientConstraint, type ObjectReceiptRight, type RecipientFinding, type Stakeholder, type PayoffPosition, type AllocatorPayoff, type RecipientModel, type AllocatorModel, type GuardDef, type RecipientConstraintInput, type RecipientConstraintAudit, type RecipientDesignOption, type SlotModel, type SlotUsage, type ObjectDriveability, type DrivableObjectType, };
|
|
108
110
|
export { paymentRelations, scanRecentPaymentEvents, resolveBeneficialOwners, extractionPlanForHolder, pendingWrappersAt, trackAccountPayments, type PaymentRelationKind, type ExtractionPlan, type PendingWrapper, type TrackedPayment, type TrackedPaymentLeg, };
|
|
109
|
-
export { TREASURY_LEDGER_VERSION, TREASURY_SCENES, TREASURY_BUILTIN_PERMISSIONS, getTreasuryScenesByHostObject, findTreasurySceneById, findTreasurySceneByPermissionIndex, getTreasuryBuiltinPermissionByIndex, isBuiltinTreasuryPermission, getActiveTreasuryBuiltinPermissions, getReservedTreasuryBuiltinPermissions, inferTreasurySceneFromIntent, getTreasuryScenesCount,
|
|
111
|
+
export { TREASURY_LEDGER_VERSION, TREASURY_SCENES, TREASURY_BUILTIN_PERMISSIONS, getTreasuryScenesByHostObject, findTreasurySceneById, findTreasurySceneByPermissionIndex, getTreasuryBuiltinPermissionByIndex, isBuiltinTreasuryPermission, getActiveTreasuryBuiltinPermissions, getReservedTreasuryBuiltinPermissions, inferTreasurySceneFromIntent, getTreasuryScenesCount, getTreasuryGovernedOperationsForPermissionIndex, type TreasuryScene, type BuiltinTreasuryPermissionEntry, };
|
|
110
112
|
export { initTreasuryPuzzleFromIntent, checkTreasuryPuzzleCompleteness, validateTreasuryConstraints, generateTreasuryPuzzleConfirmationText, MAX_EXTERNAL_DEPOSIT_GUARD_COUNT, MAX_EXTERNAL_WITHDRAW_GUARD_COUNT, TREASURY_MAX_DESCRIPTION_LENGTH, type TreasuryIntentPuzzle, type TreasuryBindingPuzzle, type TreasuryDataSourcePuzzle, type AmountFromDepositGuardPuzzle, type AmountFromWithdrawGuardPuzzle, type TreasuryOperation, type TreasuryOperationPuzzle, type TreasuryLogicPuzzle, type TreasuryConstraintChecklist, type TreasuryPuzzleDimension, type TreasuryPuzzle, type TreasuryPuzzleCompleteness, type TreasuryConstraintViolation, };
|
|
111
113
|
export { TREASURY_TEMPLATES, TREASURY_TEMPLATES_VERSION, getAllTreasuryTemplates, getTreasuryTemplateById, getTreasuryTemplatesByScene, getTreasuryTemplatesByIndustry, suggestTreasuryTemplateForScene, listTreasuryTemplates, fillTreasuryTemplate, type TreasuryTemplateParamType, type TreasuryTemplateParam, type TreasuryTemplate, };
|
|
112
|
-
export { TREASURY_RISK_VERSION, assessTreasuryRisks, getAllTreasuryRiskRules,
|
|
114
|
+
export { TREASURY_RISK_VERSION, assessTreasuryRisks, getAllTreasuryRiskRules, type TreasuryRisk, type TreasuryRiskAssessment, type TreasuryRiskLevel, type TreasuryRiskCategory, type TreasuryRiskRule, type TreasuryStakeholder, type TreasuryRiskCheckContext, };
|
|
113
115
|
export { ORDER_LEDGER_VERSION, ORDER_SCENES, ORDER_FIELDS, ORDER_STATES, ORDER_STATE_TRANSITIONS, ORDER_LIFECYCLE_EVENTS, ORDER_PERMISSION_MATRIX, ORDER_AUDIT_FORMULAS, getOrderScenesByOperationField, findOrderSceneById, findOrderSceneByMoveEntry, getOrderScenesByPermissionLayer, getOrderScenesByReversibility, getOrderFieldDef, getOrderMutableFields, getOrderImmutableFields, getOrderFrozenAfterProgressFields, getOrderOneTimeSetFields, inferOrderSceneFromIntent, getOrderEmittedEvents, getOrderInferredEvents, getOrderScenesCount, sdkToMoveOrderField, moveToSdkOrderField, type OrderScene, type OrderPermissionLayer, type OrderReversibility, type OrderFieldDef, type OrderState, type OrderLifecycleEvent, };
|
|
114
116
|
export { initOrderPuzzleFromIntent, checkOrderPuzzleCompleteness, validateOrderConstraints, generateOrderPuzzleConfirmationText, verifyOrderSnapshotMechanism, inferOrderLifecyclePhase, matchOrderSceneFromPuzzle, listAllOrderScenes, lookupOrderScene, type OrderIntentPuzzle, type OrderBindingPuzzle, type OrderDataSourcePuzzle, type OrderOperation, type OrderOperationPuzzle, type OrderLogicPuzzle, type OrderConstraintChecklist, type OrderPuzzleDimension, type OrderPuzzle, type OrderPuzzleCompleteness, type OrderConstraintViolation, };
|
|
115
117
|
export { ORDER_TEMPLATES, ORDER_TEMPLATES_VERSION, ORDER_TEMPLATES_COUNT, getAllOrderTemplates, getOrderTemplateById, getOrderTemplatesByScene, getOrderTemplatesByIndustry, getOrderTemplatesByPermissionLayer, getIrreversibleOrderTemplates, suggestOrderTemplateForScene, listOrderTemplates, fillOrderTemplate, suggestOrderTemplateFromIntent, getOrderTemplateParameters, validateOrderTemplateParams, type OrderTemplateParamType, type OrderTemplateParam, type OrderTemplate, type FillOrderTemplateResult, };
|
|
116
|
-
export { ORDER_RISK_VERSION, assessOrderRisks, getAllOrderRiskRules,
|
|
118
|
+
export { ORDER_RISK_VERSION, assessOrderRisks, getAllOrderRiskRules, type OrderRisk, type OrderRiskAssessment, type OrderRiskLevel, type OrderRiskCategory, type OrderRiskRule, type OrderStakeholder, type OrderRiskCheckContext, };
|
|
117
119
|
export { PROGRESS_LEDGER_VERSION, PROGRESS_SCENES, PROGRESS_BUILTIN_PERMISSIONS, PROGRESS_NEW, PROGRESS_NAMED_OPERATOR, PROGRESS_TASK, PROGRESS_CONTEXT_REPOSITORY, PROGRESS_UNHOLD, PROGRESS_OWNER_RECEIVE, PROGRESS_CROSS_OBJECT_REFS, getProgressScenesByPhase, findProgressSceneById, getProgressScenesByIndustry, getProgressBuiltinPermissionByIndex, isProgressBuiltinPermission, inferProgressSceneFromIntent, getAllProgressBuiltinPermissions, getProgressScenesCount, validateNamedOperatorAddressList, validateNamedOperatorCount, validateContextRepositoryCount, type ProgressPhase, type ProgressBuiltinPermissionEntry, type ProgressScene, };
|
|
118
120
|
export { initProgressPuzzleFromIntent, checkProgressPuzzleCompleteness, validateProgressConstraints, generateProgressPuzzleConfirmationText, resolveProgressBuiltinPermission, isOrderHolderForward, getProgressRelevantDimensions, type ProgressIntentPuzzle, type ProgressWorkflowPuzzle, type ProgressNamedOperatorPuzzle, type ProgressTaskPuzzle, type ProgressPermissionPuzzle, type ProgressConstraintChecklist, type ProgressPuzzleDimension, type ProgressPuzzle, type ProgressPuzzleCompleteness, type ProgressConstraintViolation, };
|
|
119
121
|
export { PROGRESS_TEMPLATES, PROGRESS_TEMPLATES_VERSION, getAllProgressTemplates, getProgressTemplateById, getProgressTemplatesByScene, getProgressTemplatesByIndustry, suggestProgressTemplateForScene, listProgressTemplates, fillProgressTemplate, type ProgressTemplateParamType, type ProgressTemplateParam, type ProgressTemplate, };
|
|
120
|
-
export { PROGRESS_RISK_VERSION, assessProgressRisks, getAllProgressRiskRules,
|
|
122
|
+
export { PROGRESS_RISK_VERSION, assessProgressRisks, getAllProgressRiskRules, type ProgressRisk, type ProgressRiskAssessment, type ProgressRiskLevel, type ProgressRiskCategory, type ProgressRiskRule, type ProgressStakeholder, type ProgressRiskCheckContext, };
|
|
121
123
|
export { ARBITRATION_LEDGER_VERSION, ARBITRATION_SCENES, ARBITRATION_BUILTIN_PERMISSIONS, ARB_STATUS_CODE, ARB_TERMINAL_STATUSES, ARB_STATUS_ALIASES, DUAL_GUARD_MATRIX, getArbitrationScenesByCategory, findArbitrationSceneById, findArbitrationSceneByPermissionIndex, getArbitrationPermissionByIndex, getArbitrationPermissionByName, isArbitrationReservedIndex, isArbitrationUsedPermissionIndex, getArbitrationActivePermissionCount, inferArbitrationSceneFromIntent, getDualGuardMatrixEntry, isValidArbStatusTransition, isTerminalArbStatus, getArbitrationScenesProducingStatus, getArbitrationScenesRequiringStatus, getArbitrationScenesCount, getAllArbitrationPermissions, getActiveArbitrationPermissions, type ArbitrationScene, type ArbStatus, type ArbitrationPermissionEntry, type VotingGuardEntry, type DualGuardMatrix, };
|
|
122
124
|
export { initArbitrationPuzzleFromIntent, checkArbitrationPuzzleCompleteness, validateArbitrationConstraints, generateArbitrationPuzzleConfirmationText, type ArbitrationIntentPuzzle, type ArbitrationConfigPuzzle, type VotingGuardPuzzle, type UsageGuardPuzzle, type ArbiterConfigPuzzle, type ArbitrationConstraintChecklist, type ArbitrationPuzzleDimension, type ArbitrationPuzzle, type ArbitrationPuzzleCompleteness, type ArbitrationConstraintViolation, };
|
|
123
125
|
export { ARBITRATION_TEMPLATES, ARBITRATION_TEMPLATES_VERSION, getAllArbitrationTemplates, getArbitrationTemplateById, getArbitrationTemplatesByScene, getArbitrationTemplatesByIndustry, suggestArbitrationTemplateForScene, listArbitrationTemplates, fillArbitrationTemplate, type ArbitrationTemplateParamType, type ArbitrationTemplateParam, type ArbitrationTemplate, };
|
|
124
|
-
export { ARBITRATION_RISK_VERSION, assessArbitrationRisks, getAllArbitrationRiskRules,
|
|
126
|
+
export { ARBITRATION_RISK_VERSION, assessArbitrationRisks, getAllArbitrationRiskRules, type ArbitrationRisk, type ArbitrationRiskAssessment, type ArbitrationRiskLevel, type ArbitrationRiskCategory, type ArbitrationRiskRule, type ArbitrationStakeholder, type ArbitrationRiskCheckContext, };
|
|
125
127
|
export { REWARD_LEDGER_VERSION, REWARD_SCENES, REWARD_PERMISSIONS, REWARD_FIELDS, REWARD_GUARD_CONSTRUCTORS, REWARD_ERROR_CODES, REWARD_CROSS_OBJECT_REFS, MAX_GUARD_COUNT_REWARD, MAX_RECORD_COUNT_REWARD, getRewardScenesByPhase, findRewardSceneById, getRewardScenesByIndustry, getRewardBuiltinPermissionByIndex, isRewardBuiltinPermission, getAllRewardBuiltinPermissions, getRewardScenesCount, getRewardGuardConstructorSpec, resolveRewardGuardConstructor, getRewardErrorByCode, getRewardErrorByName, validateRewardGuardCount, validateRewardRecordCount, inferRewardSceneFromIntent, type RewardPhase, type RewardBuiltinPermissionEntry, type RewardRecipientType, type RewardAmountType, type RewardGuardConstructor, type RewardGuardConstructorSpec, type RewardScene, type RewardFieldEntry, type RewardErrorCodeEntry, };
|
|
126
128
|
export { REWARD_FIELD_MUTABILITY, initRewardPuzzleFromIntent, checkRewardPuzzleCompleteness, validateRewardConstraints, generateRewardPuzzleConfirmationText, resolveRewardBuiltinPermission, requiresRewardGuardConfig, requiresRewardPassport, getRewardRelevantDimensions, getRewardFieldMutability, isRewardAdminMutableField, getRewardFieldPermissionIndex, type RewardIntentPuzzle, type RewardConfigPuzzle, type RewardGuardPuzzle, type RewardFundsPuzzle, type RewardPermissionPuzzle, type RewardConstraintChecklist, type RewardPuzzleDimension, type RewardPuzzle, type RewardPuzzleCompleteness, type RewardFieldMutabilityType, type RewardFieldMutabilityEntry, type RewardConstraintViolation, };
|
|
127
|
-
export { REWARD_RISK_VERSION,
|
|
129
|
+
export { REWARD_RISK_VERSION, assessRewardRisks, getAllRewardRiskRules, type RewardRisk, type RewardRiskLevel, type RewardRiskCategory, type RewardRiskRule, type RewardStakeholder, type RewardRiskCheckContext, type RewardRiskAssessment, type RewardGuardAddEntry, };
|
|
128
130
|
export { PASSPORT_LEDGER_VERSION, PASSPORT_ERROR_CODES, PASSPORT_SCENARIOS, MAX_GUARD_COUNT_PASSPORT, MAX_SUBMISSION_SIZE_PASSPORT, getAllPassportScenarios, getPassportScenesCount, findPassportScenarioById, getPassportScenariosByConsumer, getPassportScenariosUsingRelies, inferPassportScenarioFromIntent, impackRoleFromBoolean, impackRoleToBoolean, reliesLogicFromBoolean, reliesLogicToBoolean, getPassportErrorName, getPassportErrorDescription, type ImpackRole, type ReliesLogic, type PassportLifecycleStage, type PassportScenario, type PassportConsumerObject, type PassportParticipant, };
|
|
129
131
|
export { PASSPORT_TEMPLATES, PASSPORT_TEMPLATES_VERSION, getAllPassportTemplates, getPassportTemplateById, getPassportTemplatesByScenario, getPassportTemplatesByIndustry, suggestPassportTemplateForScenario, listPassportTemplates, fillPassportTemplate, type PassportTemplateParamType, type PassportTemplateParam, type PassportTemplate, };
|
|
130
|
-
export { PROOF_RISK_RULES, checkProofRisks,
|
|
131
|
-
export { REPOSITORY_RISK_RULES, checkRepositoryRisks,
|
|
132
|
+
export { PROOF_RISK_RULES, checkProofRisks, type ProofRiskLevel, type ProofRiskCategory, type ProofStakeholder, type ProofRisk, type ProofRiskCheckContext, };
|
|
133
|
+
export { REPOSITORY_RISK_RULES, checkRepositoryRisks, parseIdFromForRiskCheck, type RepositoryRiskLevel, type RepositoryRiskCategory, type RepositoryStakeholder, type RepositoryRisk, type RepositoryRiskCheckContext, };
|
|
132
134
|
export { assessEvidenceReview, reviewEvidenceList, type EvidenceKind, type EvidenceItem, type EvidenceListResult, type EvidenceReviewInput, type EvidenceReviewResult, type ProofCandidate, type ReviewedEvidence, } from "./evidence-review.js";
|
|
133
|
-
export { DEMAND_RISK_RULES, checkDemandRisks,
|
|
134
|
-
export { CONTACT_RISK_RULES, CONTACT_RISK_VERSION, checkContactRisks,
|
|
135
|
-
export { RESOURCE_RISK_RULES, RESOURCE_RISK_VERSION, checkResourceRisks,
|
|
136
|
-
export { PAYMENT_RISK_RULES, PAYMENT_RISK_VERSION, checkPaymentRisks,
|
|
137
|
-
export { ARB_RISK_RULES, ARB_RISK_VERSION, checkArbRisks,
|
|
138
|
-
export { PERSONAL_RISK_RULES, PERSONAL_RISK_VERSION, checkPersonalRisks,
|
|
139
|
-
export { UTIL_RISK_RULES, UTIL_RISK_VERSION, checkUtilRisks,
|
|
140
|
-
export { REGISTRAR_RISK_RULES, REGISTRAR_RISK_VERSION, checkRegistrarRisks,
|
|
141
|
-
export { BRIDGE_RISK_RULES, BRIDGE_RISK_VERSION, checkBridgeRisks,
|
|
135
|
+
export { DEMAND_RISK_RULES, checkDemandRisks, type DemandRiskLevel, type DemandRiskCategory, type DemandStakeholder, type DemandRisk, type DemandRiskCheckContext, };
|
|
136
|
+
export { CONTACT_RISK_RULES, CONTACT_RISK_VERSION, checkContactRisks, type ContactRiskLevel, type ContactRiskCategory, type ContactStakeholder, type ContactRisk, type ContactRiskCheckContext, };
|
|
137
|
+
export { RESOURCE_RISK_RULES, RESOURCE_RISK_VERSION, checkResourceRisks, type ResourceRiskLevel, type ResourceRiskCategory, type ResourceStakeholder, type ResourceRisk, type ResourceRiskCheckContext, };
|
|
138
|
+
export { PAYMENT_RISK_RULES, PAYMENT_RISK_VERSION, checkPaymentRisks, type PaymentRiskLevel, type PaymentRiskCategory, type PaymentStakeholder, type PaymentRisk, type PaymentRiskCheckContext, };
|
|
139
|
+
export { ARB_RISK_RULES, ARB_RISK_VERSION, checkArbRisks, type ArbRiskLevel, type ArbRiskCategory, type ArbStakeholder, type ArbRisk, type ArbRiskCheckContext, };
|
|
140
|
+
export { PERSONAL_RISK_RULES, PERSONAL_RISK_VERSION, checkPersonalRisks, type PersonalRiskLevel, type PersonalRiskCategory, type PersonalStakeholder, type PersonalRisk, type PersonalRiskCheckContext, };
|
|
141
|
+
export { UTIL_RISK_RULES, UTIL_RISK_VERSION, checkUtilRisks, type UtilRiskLevel, type UtilRiskCategory, type UtilStakeholder, type UtilRisk, type UtilRiskCheckContext, };
|
|
142
|
+
export { REGISTRAR_RISK_RULES, REGISTRAR_RISK_VERSION, checkRegistrarRisks, type RegistrarRiskLevel, type RegistrarRiskCategory, type RegistrarStakeholder, type RegistrarRisk, type RegistrarRiskCheckContext, };
|
|
143
|
+
export { BRIDGE_RISK_RULES, BRIDGE_RISK_VERSION, checkBridgeRisks, type BridgeRiskLevel, type BridgeRiskCategory, type BridgeStakeholder, type BridgeRisk, type BridgeRiskCheckContext, };
|
|
142
144
|
export { TOOLS_REFERENCE, getToolReference, searchToolReference, getToolSequence, type ToolReferenceEntry, };
|
|
143
145
|
export { SCENARIO_MODES, SCENARIO_MODES_VERSION, MODE_COMPOSITIONS, matchScenarioMode, inferScenarioTraits, getScenarioMode, listScenarioModes, getShippedModes, getModeCompositions, type IndustryModeName, type ScenarioTraits, type ModeAllocatorStrategy, type ModeGuardRef, type ModeMachineNode, type ScenarioMode, type ModeComposition, };
|
|
146
|
+
export { BUILTIN_TEMPLATES, BUILTIN_TEMPLATES_VERSION, getBuiltinTemplate, listBuiltinTemplates, TEMPLATE_KEYWORDS, type ArchetypeTemplate, };
|
|
147
|
+
export { resolveTemplatesDir, seedBuiltinTemplates, reloadTemplates, listTemplates, getTemplate, getIndustryTemplates, parseTemplateFile, renderTemplateFile, loadAndValidate, INDUSTRY_VALUES, TemplateFrontmatterSchema, type TemplateFrontmatter, type IndustryTemplate, };
|
|
148
|
+
export { scanTemplate, type TemplateRiskLevel, type TemplateScanFinding, type TemplateScanResult, };
|
|
144
149
|
export { GUARD_DESIGN_PATTERNS, GUARD_DESIGN_PATTERNS_VERSION, VERIFIER_LEVEL_GUIDANCE, getGuardDesignPattern, searchGuardDesignPatterns, getPatternsByHost, getPatternsByIndustry, getPatternsByDataSourceClass, getVerifierLevelGuidance, suggestPatternForRequirement, type GuardDataSourceClass, type VerifierConstraintLevel, type GuardHostObject, type GuardDesignPattern, type VerifierLevelGuidance, };
|
|
145
150
|
export declare function getKnowledgeBase(): {
|
|
146
151
|
version: {
|
|
@@ -149,7 +154,6 @@ export declare function getKnowledgeBase(): {
|
|
|
149
154
|
reward_templates: number;
|
|
150
155
|
audit_rules: number;
|
|
151
156
|
dynamic_pricing: number;
|
|
152
|
-
trust_metrics: number;
|
|
153
157
|
reputation_rules: number;
|
|
154
158
|
acquisition_flywheel: number;
|
|
155
159
|
industry_registry: number;
|
|
@@ -193,6 +197,7 @@ export declare function getKnowledgeBase(): {
|
|
|
193
197
|
bridge_risk: string;
|
|
194
198
|
scenario_modes: number;
|
|
195
199
|
guard_design_patterns: number;
|
|
200
|
+
builtin_templates: number;
|
|
196
201
|
};
|
|
197
202
|
confirmation_rules: number;
|
|
198
203
|
confirmation_rule_ids: string[];
|
|
@@ -279,6 +284,7 @@ export declare function getKnowledgeBase(): {
|
|
|
279
284
|
tools_reference_count: number;
|
|
280
285
|
scenario_modes_count: number;
|
|
281
286
|
scenario_mode_compositions_count: number;
|
|
287
|
+
builtin_templates_count: number;
|
|
282
288
|
guard_design_patterns_count: number;
|
|
283
289
|
verifier_level_guidance_count: number;
|
|
284
290
|
};
|
package/dist/knowledge/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buildWorkflowGuidance,buildWorkflowReceipt,enrichWorkflowGuidance,mergeGuidanceIntoOutput,resolvePermissionRole,resolveLocalNamesFor,listLocalAccounts,accountCanExecuteForward,enumerateActionableForwards,forwardOperatorKind}from'./workflow-guidance.js';import{CONFIRMATION_RULES,SAFETY_RULES_VERSION,OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_TYPE_CLASSIFICATION,OPERATION_CLASS_META,classifyTool,NAMING_CONVENTIONS,checkObjectReuseRules,checkImmutabilityRules}from'./safety-rules.js';import{TOOL_CONSTRAINTS,TOOL_CONSTRAINTS_VERSION,validateOperation,hasBlockingViolations,getWarningViolations}from'./tool-constraints.js';import{REWARD_TEMPLATES,REWARD_TEMPLATES_VERSION,getRewardTemplate,listRewardTemplates,suggestRewardTemplate}from'./reward-templates.js';import{AUDIT_RULES,AUDIT_RULES_VERSION,auditService,hasBlockingErrors,getErrors,getWarnings,summarizeFindings}from'./audit-rules.js';import{suggestPricing,MUTABLE_FIELDS,DYNAMIC_PRICING_VERSION}from'./dynamic-pricing.js';import{computeServiceTrustScore,quickTrustCheck,TRUST_METRICS_VERSION,TRUST_DIMENSION_WEIGHTS}from'./trust-metrics.js';import{buildReviewRepositorySetup,computeReviewStats,isVerifiedReview,filterVerifiedReviews,detectReviewManipulation,REPUTATION_RULES_VERSION}from'./reputation-rules.js';import{INDUSTRY_FLYWHEELS,getFlywheelForIndustry,listIndustries,suggestAcquisitionActions,generateTrustDescription,buildAcquisitionDashboard,ACQUISITION_FLYWHEEL_VERSION}from'./acquisition-flywheel.js';import{INDUSTRY_REGISTRY_VERSION,getIndustryProfile,registerIndustry,getIndustryTraits,resolveIndustryName,getRegistrySize,listBuiltinIndustryNames}from'./industry-registry.js';import{DEFAULT_TRAITS,inferTraitsFromDescription,synthesizeProfile,findSimilarIndustries,composeIndustries}from'./industry-generalizer.js';import{INDUSTRY_EVOLUTION_THRESHOLDS,aggregateIndustryMetrics,evaluateIndustryHealth,suggestIndustryUpdate,applyIndustryUpdate,runIndustryHealthPipeline}from'./industry-evolution.js';import{FLYWHEEL_LOOP_VERSION,FLYWHEEL_LOOP_MIN_SIGNALS,recordIndustrySignal,updateIndustryCognition,injectEvolutionContext}from'./flywheel-loop.js';import{BUILTIN_INTENT_SPECS,registerIntentProfile,getIntentProfile,listIntents,evaluateIndustryHealthByIntent,suggestIndustryUpdateByIntent,evaluateIndustryHealthMultiIntent,getRoleAdvice,filterSuggestionsByRole}from'./intent-metrics.js';import{GUARD_SCENES,findScene,inferSceneFromAction,getImmutableScenes,getNumericIdentifierScenes}from'./guard-ledger.js';import{SEMANTIC_TO_SCHEMA_RULES,SCHEMA_TO_SEMANTIC_RULES,GUARD_CONSTRAINT_RULES,matchSemanticPattern,explainNode,explainWitness,getConstraintsByCategory}from'./guard-translation.js';import{checkPuzzleCompleteness,generateConfirmationText,initPuzzleFromIntent,inferBindingFromAction,emptyDataSources,getWitnessInfo,WITNESS_NAME_MAP}from'./guard-puzzle.js';import{assessGuardRisks,assessGuardRisksForOperation,getRiskSummary,getRiskRulesByDataSourceClass,getAllRiskRules,getRiskRulesCount}from'./guard-risk.js';import{GUARD_BINDING_REGISTRY,GUARD_BINDINGS_VERSION,OWNER_RECEIVE_COGNITION,getGuardBindingsByObject,getGuardBinding,summarizeGuardBinding}from'./guard-bindings.js';import{SCENARIO_BRIDGE_REGISTRY,SCENARIO_CHAINS,SCENARIO_TOPOLOGY_VERSION,getBridgeById,getBridgeByCode,getBridgesByObject,getBridgesForEdge,detectBridgesForEdges,getChainById,summarizeBridge,detectBridgesForObjects}from'./scenario-topology.js';import{GUARD_TEMPLATES,GUARD_TEMPLATES_VERSION,GUARD_TEMPLATES_COUNT,getTemplatesByScene,getTemplateById,getTemplatesByIndustry,getTemplatesByPattern,listGuardTemplates,suggestTemplateForScene,getTemplateParameters,validateTemplateParams}from'./guard-templates.js';import{lintGuard,autoFixGuard,isGuardReady,getGuardErrors,formatLintResult}from'./guard-lint.js';import{MACHINE_SCENES,MACHINE_LEDGER_VERSION,MACHINE_SCENES_COUNT,findScene as a139a,getScenesByIndustry as a139b,getScenesByPattern,inferSceneFromFlow}from'./machine-ledger.js';import{MACHINE_TEMPLATES,MACHINE_TEMPLATES_VERSION,MACHINE_TEMPLATES_COUNT,getAllTemplates as a139c,getTemplateById as a139d,getTemplatesByScene as a139e,getTemplatesByIndustry as a139f,suggestTemplateForIntent,walkDecisionTree,fillTemplate as a139g,forkTemplate as a139h,verifyTemplateSceneReferences,getReferencedGuardTemplateIds,getReferencedRiskIds}from'./machine-templates.js';import{SEMANTIC_TO_MACHINE_RULES,MACHINE_CONSTRAINT_RULES,MACHINE_TRANSLATION_VERSION,MACHINE_PATTERNS_COUNT,MACHINE_CONSTRAINTS_COUNT,matchSemanticPattern as a139i,identifyExecutionMode,identifyTopology,explainForwardPermission,getConstraintsByCategory as a139j,getConstraintById,getOnChainConstraints as a139k,getOffChainConstraints as a139l}from'./machine-translation.js';import{MACHINE_RISK_RULES,MACHINE_RISK_VERSION,MACHINE_RISK_RULES_COUNT,assessMachineRisks,getRiskRulesByCategory as a139m,getRiskRulesBySeverity,getAutoFixableRules as a139n,getRiskSummary as a139o,getRiskRuleById}from'./machine-risk.js';import{analyzeTopology,identifyTopologyPattern,formatTopologySummary,MACHINE_TOPOLOGY_VERSION,MAX_NODE_COUNT,MAX_NODE_PAIR_COUNT,MAX_FORWARD_COUNT}from'./machine-topology.js';import{initPuzzleFromIntent as a139p,initPuzzleFromTemplate,checkPuzzleCompleteness as a139q,recommendNextStep as a139r,derivePuzzleFromMachineJson,generateConfirmationText as a139s,MACHINE_PUZZLE_VERSION}from'./machine-puzzle.js';import{SERVICE_SCENES,SERVICE_LEDGER_VERSION,SERVICE_PERMISSIONS,SERVICE_ORDER_FLOW_STAGES,SERVICE_CROSS_OBJECT_BINDINGS,getScenesByCategory as a139t,findSceneById as a139u,getServicePermissionByIndex,isServicePermission,getPermissionsByMutability,getImmutablePostPublishPermissions,getLockedByDurationPermissions,inferSceneFromIntent as a139v,getAllServiceScenes,getServiceScenesCount,getServicePermissionsCount,getOrderFlowStage,getCrossObjectBindings as a139w}from'./service-ledger.js';import{initPuzzleFromIntent as a139x,checkPuzzleCompleteness as a139y,validateConstraints as a139z,generateConfirmationText as a139A,initOrderFlowPuzzle,checkOrderFlowCompleteness}from'./service-puzzle.js';import{SERVICE_RISK_VERSION,assessServiceRisks,getAllServiceRiskRules,getServiceRiskRulesCount,getServiceRiskRulesByCategory}from'./service-risk.js';import{SERVICE_TEMPLATES,SERVICE_TEMPLATES_VERSION,getServiceTemplateById,getServiceTemplatesByScene,getServiceTemplatesByIndustry,suggestServiceTemplateForScene,listServiceTemplates,fillServiceTemplate,getAllServiceTemplates}from'./service-templates.js';import{ALLOCATION_SCENES,ALLOCATION_LEDGER_VERSION,MAX_ALLOCATOR_COUNT,ALLOCATION_MAX_SHARING_COUNT,ALLOCATION_MODE_AMOUNT,ALLOCATION_MODE_RATE,ALLOCATION_MODE_SURPLUS,RATE_TOTAL_FULL,ALLOCATION_ERROR_CODES,getScenesByTriggerSource as a139B,getScenesByMode as a139C,getScenesByStrategy as a139D,findSceneById as a139E,inferSceneFromIntent as a139F,getAllScenes as a139G,getScenesCount as a139H,allocationModeToNumber,allocationModeFromNumber,getRecipientType,isSignerRecipient,isEntityRecipient,isGuardIdentifierRecipient,getErrorName as a139I,getErrorDescription as a139J}from'./allocation-ledger.js';import{initPuzzleFromIntent as a139K,checkPuzzleCompleteness as a139L,validateConstraints as a139M,generateConfirmationText as a139N,buildDefaultAllocFlow,buildDefaultRecipientRules,buildDefaultLogicPuzzle,ALLOCATION_PUZZLE_VERSION}from'./allocation-puzzle.js';import{ALLOCATION_RISK_VERSION,assessAllocationRisks,getAllRiskRules as a139O,getRiskRulesCount as a139P,getRiskRulesByCategory as a139Q}from'./allocation-risk.js';import{ALLOCATION_TEMPLATES,ALLOCATION_TEMPLATES_VERSION,getAllTemplates as a139R,getTemplateById as a139S,getTemplatesByScene as a139T,getTemplatesByIndustry as a139U,suggestTemplateForScene as a139V,listTemplates as a139W,fillTemplate as a139X}from'./allocation-templates.js';import{RECIPIENT_CONSTRAINT_VERSION,classifyRecipient,analyzeRecipientConstraints,isUnboundSignerTheft,canonicalDoctrine,recipientDesignGuidance,derivePayoffFromSharing,OBJECT_DRIVEABILITY,driveabilityOf,RECIPIENT_DESIGN_OPTIONS}from'./recipient-constraint.js';import{paymentRelations,scanRecentPaymentEvents,resolveBeneficialOwners,extractionPlanForHolder,pendingWrappersAt,trackAccountPayments}from'./payment-tracker.js';import{TREASURY_LEDGER_VERSION,TREASURY_SCENES,TREASURY_PERMISSIONS as a139Y,getScenesByHostObject as a139Z,findSceneById as a139a0,findSceneByPermissionIndex as a139a1,getBuiltinPermissionByIndex as a139a2,isBuiltinTreasuryPermission,getActiveBuiltinPermissions as a139a3,getReservedBuiltinPermissions as a139a4,inferSceneFromIntent as a139a5,getTreasuryScenesCount,getMoveFunctionsForPermissionIndex as a139a6}from'./treasury-ledger.js';import{initPuzzleFromIntent as a139a7,checkPuzzleCompleteness as a139a8,validateConstraints as a139a9,generateConfirmationText as a139aa,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,MAX_DESCRIPTION_LENGTH as a139ab}from'./treasury-puzzle.js';import{TREASURY_TEMPLATES,TREASURY_TEMPLATES_VERSION,getAllTreasuryTemplates,getTemplateById as a139ac,getTemplatesByScene as a139ad,getTemplatesByIndustry as a139ae,suggestTemplateForScene as a139af,listTemplates as a139ag,fillTemplate as a139ah}from'./treasury-templates.js';import{TREASURY_RISK_VERSION,assessTreasuryRisks,getAllTreasuryRiskRules,getTreasuryRiskRulesCount,getTreasuryRiskRulesByCategory}from'./treasury-risk.js';import{ORDER_LEDGER_VERSION,ORDER_SCENES,ORDER_FIELDS,ORDER_STATES,ORDER_STATE_TRANSITIONS,ORDER_LIFECYCLE_EVENTS,ORDER_PERMISSION_MATRIX,ORDER_AUDIT_FORMULAS,getScenesByOperationField as a139ai,findSceneById as a139aj,findSceneByMoveEntry as a139ak,getScenesByPermissionLayer as a139al,getScenesByReversibility as a139am,getFieldDef as a139an,getMutableFields as a139ao,getImmutableFields as a139ap,getFrozenAfterProgressFields as a139aq,getOneTimeSetFields as a139ar,inferSceneFromIntent as a139as,getEmittedEvents as a139at,getInferredEvents as a139au,getOrderScenesCount,sdkToMoveField as a139av,moveToSdkField as a139aw}from'./order-ledger.js';import{initPuzzleFromIntent as a139ax,checkPuzzleCompleteness as a139ay,validateConstraints as a139az,generateConfirmationText as a139aA,verifySnapshotMechanism as a139aB,inferLifecyclePhase as a139aC,matchSceneFromPuzzle as a139aD,listAllScenes as a139aE,lookupScene as a139aF}from'./order-puzzle.js';import{ORDER_TEMPLATES,ORDER_TEMPLATES_VERSION,ORDER_TEMPLATES_COUNT,getAllOrderTemplates,getTemplateById as a139aG,getTemplatesByScene as a139aH,getTemplatesByIndustry as a139aI,getTemplatesByPermissionLayer as a139aJ,getIrreversibleTemplates as a139aK,suggestTemplateForScene as a139aL,listOrderTemplates,fillTemplate as a139aM,suggestTemplateFromIntent as a139aN,getTemplateParameters as a139aO,validateTemplateParams as a139aP}from'./order-templates.js';import{ORDER_RISK_VERSION,assessOrderRisks,getAllOrderRiskRules,getOrderRiskRulesCount,getOrderRiskRulesByCategory,getOrderRiskRuleById,checkPermissionLayer as a139aQ}from'./order-risk.js';import{PROGRESS_LEDGER_VERSION,PROGRESS_SCENES,PROGRESS_PERMISSIONS as a139aR,PROGRESS_NEW,PROGRESS_NAMED_OPERATOR,PROGRESS_TASK,PROGRESS_CONTEXT_REPOSITORY,PROGRESS_UNHOLD,PROGRESS_OWNER_RECEIVE,PROGRESS_CROSS_OBJECT_REFS,getScenesByPhase as a139aS,findSceneById as a139aT,getScenesByIndustry as a139aU,getBuiltinPermissionByIndex as a139aV,isProgressBuiltinPermission,inferSceneFromIntent as a139aW,getAllBuiltinPermissions as a139aX,getProgressScenesCount,validateNamedOperatorAddressList,validateNamedOperatorCount,validateContextRepositoryCount}from'./progress-ledger.js';import{initPuzzleFromIntent as a139aY,checkPuzzleCompleteness as a139aZ,validateConstraints as a139b0,generateConfirmationText as a139b1,resolveBuiltinPermission as a139b2,isOrderHolderForward,getRelevantDimensions as a139b3}from'./progress-puzzle.js';import{PROGRESS_TEMPLATES,PROGRESS_TEMPLATES_VERSION,getAllProgressTemplates,getProgressTemplateById,getProgressTemplatesByScene,getProgressTemplatesByIndustry,suggestProgressTemplateForScene,listProgressTemplates,fillProgressTemplate}from'./progress-templates.js';import{PROGRESS_RISK_VERSION,assessProgressRisks,getAllProgressRiskRules,getProgressRiskRulesCount,getProgressRiskRulesByCategory}from'./progress-risk.js';import{ARBITRATION_LEDGER_VERSION,ARBITRATION_SCENES,ARBITRATION_PERMISSIONS as a139b4,ARB_STATUS_CODE,ARB_TERMINAL_STATUSES,ARB_STATUS_ALIASES,DUAL_GUARD_MATRIX,getScenesByCategory as a139b5,findSceneById as a139b6,findSceneByPermissionIndex as a139b7,getPermissionByIndex as a139b8,getPermissionByName as a139b9,isReservedIndex as a139ba,isUsedPermissionIndex as a139bb,getActivePermissionCount as a139bc,inferSceneFromIntent as a139bd,getDualGuardMatrixEntry,isValidArbStatusTransition,isTerminalArbStatus,getScenesProducingStatus as a139be,getScenesRequiringStatus as a139bf,getArbitrationScenesCount,getAllArbitrationPermissions,getActiveArbitrationPermissions}from'./arbitration-ledger.js';import{initPuzzleFromIntent as a139bg,checkPuzzleCompleteness as a139bh,validateConstraints as a139bi,generateConfirmationText as a139bj}from'./arbitration-puzzle.js';import{ARBITRATION_TEMPLATES,ARBITRATION_TEMPLATES_VERSION,getAllTemplates as a139bk,getTemplateById as a139bl,getTemplatesByScene as a139bm,getTemplatesByIndustry as a139bn,suggestTemplateForScene as a139bo,listTemplates as a139bp,fillTemplate as a139bq}from'./arbitration-templates.js';import{ARBITRATION_RISK_VERSION,assessArbitrationRisks,getAllRiskRules as a139br,getRiskRulesCount as a139bs,getRiskRulesByCategory as a139bt}from'./arbitration-risk.js';import{REWARD_LEDGER_VERSION,REWARD_SCENES,REWARD_PERMISSIONS,REWARD_FIELDS,REWARD_GUARD_CONSTRUCTORS,REWARD_ERROR_CODES,REWARD_CROSS_OBJECT_REFS,MAX_GUARD_COUNT_REWARD,MAX_RECORD_COUNT_REWARD,getScenesByPhase as a139bu,findSceneById as a139bv,getScenesByIndustry as a139bw,getBuiltinPermissionByIndex as a139bx,isRewardBuiltinPermission,getAllBuiltinPermissions as a139by,getRewardScenesCount,getGuardConstructorSpec as a139bz,resolveGuardConstructor as a139bA,getRewardErrorByCode,getRewardErrorByName,validateGuardCount as a139bB,validateRecordCount as a139bC,inferSceneFromIntent as a139bD}from'./reward-ledger.js';import{REWARD_FIELD_MUTABILITY,initPuzzleFromIntent as a139bE,checkPuzzleCompleteness as a139bF,validateConstraints as a139bG,generateConfirmationText as a139bH,resolveBuiltinPermission as a139bI,requiresGuardConfig as a139bJ,requiresPassport as a139bK,getRelevantDimensions as a139bL,getFieldMutability as a139bM,isAdminMutableField as a139bN,getFieldPermissionIndex as a139bO}from'./reward-puzzle.js';import{REWARD_RISK_VERSION,REWARD_STAKEHOLDERS,assessRewardRisks,getAllRewardRiskRules,getRewardRiskRulesCount,getRewardRiskRulesByCategory,getRewardRiskRulesByStakeholder}from'./reward-risk.js';import{PASSPORT_LEDGER_VERSION,PASSPORT_ERROR_CODES,PASSPORT_SCENARIOS,MAX_GUARD_COUNT_PASSPORT,MAX_SUBMISSION_SIZE_PASSPORT,getAllScenarios as a139bP,getScenariosCount as a139bQ,findScenarioById as a139bR,getScenariosByConsumer as a139bS,getScenariosUsingRelies as a139bT,inferScenarioFromIntent as a139bU,impackRoleFromBoolean,impackRoleToBoolean,reliesLogicFromBoolean,reliesLogicToBoolean,getErrorName as a139bV,getErrorDescription as a139bW}from'./passport-ledger.js';import{PASSPORT_TEMPLATES,PASSPORT_TEMPLATES_VERSION,getAllTemplates as a139bX,getTemplateById as a139bY,getTemplatesByScenario as a139bZ,getTemplatesByIndustry as a139c0,suggestTemplateForScenario as a139c1,listTemplates as a139c2,fillTemplate as a139c3}from'./passport-templates.js';import{PROOF_RISK_RULES,checkProofRisks,getProofRiskById}from'./proof-risk.js';import{REPOSITORY_RISK_RULES,checkRepositoryRisks,getRepositoryRiskById,parseIdFromForRiskCheck}from'./repository-risk.js';import{DEMAND_RISK_RULES,checkDemandRisks,getDemandRiskById}from'./demand-risk.js';import{CONTACT_RISK_RULES,CONTACT_RISK_VERSION,checkContactRisks,getContactRiskById}from'./contact-risk.js';import{RESOURCE_RISK_RULES,RESOURCE_RISK_VERSION,checkResourceRisks,getResourceRiskById}from'./resource-risk.js';import{PAYMENT_RISK_RULES,PAYMENT_RISK_VERSION,checkPaymentRisks,getPaymentRiskById}from'./payment-risk.js';import{ARB_RISK_RULES,ARB_RISK_VERSION,checkArbRisks,getArbRiskById}from'./arb-risk.js';import{PERSONAL_RISK_RULES,PERSONAL_RISK_VERSION,checkPersonalRisks,getPersonalRiskById}from'./personal-risk.js';import{UTIL_RISK_RULES,UTIL_RISK_VERSION,checkUtilRisks,getUtilRiskById}from'./util-risk.js';import{REGISTRAR_RISK_RULES,REGISTRAR_RISK_VERSION,checkRegistrarRisks,getRegistrarRiskById}from'./registrar-risk.js';import{BRIDGE_RISK_RULES,BRIDGE_RISK_VERSION,checkBridgeRisks,getBridgeRiskById}from'./bridge-risk.js';import{TOOLS_REFERENCE,getToolReference,searchToolReference,getToolSequence}from'./tools-reference.js';import{SCENARIO_MODES,SCENARIO_MODES_VERSION,MODE_COMPOSITIONS,matchScenarioMode,inferScenarioTraits,getScenarioMode,listScenarioModes,getShippedModes,getModeCompositions}from'./scenario-modes.js';import{GUARD_DESIGN_PATTERNS,GUARD_DESIGN_PATTERNS_VERSION,VERIFIER_LEVEL_GUIDANCE,getGuardDesignPattern,searchGuardDesignPatterns,getPatternsByHost,getPatternsByIndustry,getPatternsByDataSourceClass,getVerifierLevelGuidance,suggestPatternForRequirement}from'./guard-design-patterns.js';export{CONFIRMATION_RULES,SAFETY_RULES_VERSION,OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_TYPE_CLASSIFICATION,OPERATION_CLASS_META,classifyTool,NAMING_CONVENTIONS,checkObjectReuseRules,checkImmutabilityRules};export{TOOL_CONSTRAINTS,TOOL_CONSTRAINTS_VERSION,validateOperation,hasBlockingViolations,getWarningViolations};export{REWARD_TEMPLATES,REWARD_TEMPLATES_VERSION,getRewardTemplate,listRewardTemplates,suggestRewardTemplate};export{AUDIT_RULES,AUDIT_RULES_VERSION,auditService,hasBlockingErrors,getErrors,getWarnings,summarizeFindings};export{suggestPricing,MUTABLE_FIELDS,DYNAMIC_PRICING_VERSION};export{computeServiceTrustScore,quickTrustCheck,TRUST_METRICS_VERSION,TRUST_DIMENSION_WEIGHTS};export{buildReviewRepositorySetup,computeReviewStats,isVerifiedReview,filterVerifiedReviews,detectReviewManipulation,REPUTATION_RULES_VERSION};export{INDUSTRY_FLYWHEELS,getFlywheelForIndustry,listIndustries,suggestAcquisitionActions,generateTrustDescription,buildAcquisitionDashboard,ACQUISITION_FLYWHEEL_VERSION};export{STRATEGY_MANUAL_FILENAME,STRATEGY_MANUAL_VERSION,renderStrategyManual,parseManualSentinel,classifyManualFile,getBuiltinStrategyManual,listBuiltinStrategyManualIndustries}from'./strategy-manuals.js';export{INDUSTRY_STRATEGIES,getIndustryStrategy,listIndustryStrategies,registerIndustryStrategy,unregisterIndustryStrategy,recommendStrategy,stageFromOrderCount,validateStrategyLevers}from'./industry-strategy.js';export{INDUSTRY_REGISTRY_VERSION,getIndustryProfile,listIndustries as listRegistryIndustries,registerIndustry,getIndustryTraits,resolveIndustryName,getRegistrySize,listBuiltinIndustryNames};export{DEFAULT_TRAITS,inferTraitsFromDescription,synthesizeProfile,findSimilarIndustries,composeIndustries};export{INDUSTRY_EVOLUTION_THRESHOLDS,aggregateIndustryMetrics,evaluateIndustryHealth,suggestIndustryUpdate,applyIndustryUpdate,runIndustryHealthPipeline};export{FLYWHEEL_LOOP_VERSION,FLYWHEEL_LOOP_MIN_SIGNALS,recordIndustrySignal,updateIndustryCognition,injectEvolutionContext};export{BUILTIN_INTENT_SPECS,registerIntentProfile,getIntentProfile,listIntents,evaluateIndustryHealthByIntent,suggestIndustryUpdateByIntent,evaluateIndustryHealthMultiIntent,getRoleAdvice,filterSuggestionsByRole};export{GUARD_SCENES,findScene,inferSceneFromAction,getImmutableScenes,getNumericIdentifierScenes};export{SEMANTIC_TO_SCHEMA_RULES,SCHEMA_TO_SEMANTIC_RULES,GUARD_CONSTRAINT_RULES,matchSemanticPattern,explainNode,explainWitness,getConstraintsByCategory};export{checkPuzzleCompleteness,generateConfirmationText,initPuzzleFromIntent,inferBindingFromAction,emptyDataSources,getWitnessInfo,WITNESS_NAME_MAP};export{assessGuardRisks,assessGuardRisksForOperation,getRiskSummary,getRiskRulesByDataSourceClass,getAllRiskRules,getRiskRulesCount,GUARD_TEMPLATES,GUARD_TEMPLATES_VERSION,GUARD_TEMPLATES_COUNT,getTemplatesByScene,getTemplateById,getTemplatesByIndustry,getTemplatesByPattern,listGuardTemplates,suggestTemplateForScene,getTemplateParameters,validateTemplateParams,GUARD_BINDING_REGISTRY,GUARD_BINDINGS_VERSION,OWNER_RECEIVE_COGNITION,getGuardBindingsByObject,getGuardBinding,summarizeGuardBinding,SCENARIO_BRIDGE_REGISTRY,SCENARIO_CHAINS,SCENARIO_TOPOLOGY_VERSION,getBridgeById,getBridgeByCode,getBridgesByObject,getBridgesForEdge,detectBridgesForEdges,getChainById,summarizeBridge,detectBridgesForObjects,lintGuard,autoFixGuard,isGuardReady,getGuardErrors,formatLintResult};export{MACHINE_SCENES,MACHINE_LEDGER_VERSION,MACHINE_SCENES_COUNT,a139a as findMachineScene,a139b as getMachineScenesByIndustry,getScenesByPattern,inferSceneFromFlow};export{MACHINE_TEMPLATES,MACHINE_TEMPLATES_VERSION,MACHINE_TEMPLATES_COUNT,a139c as getAllMachineTemplates,a139d as getMachineTemplateById,a139e as getMachineTemplatesByScene,a139f as getMachineTemplatesByIndustry,suggestTemplateForIntent,walkDecisionTree,a139g as fillMachineTemplate,a139h as forkMachineTemplate,verifyTemplateSceneReferences,getReferencedGuardTemplateIds,getReferencedRiskIds};export{SEMANTIC_TO_MACHINE_RULES,MACHINE_CONSTRAINT_RULES,MACHINE_TRANSLATION_VERSION,MACHINE_PATTERNS_COUNT,MACHINE_CONSTRAINTS_COUNT,a139i as matchMachinePattern,identifyExecutionMode,identifyTopology,explainForwardPermission,a139j as getMachineConstraintsByCategory,getConstraintById,a139k as getOnChainMachineConstraints,a139l as getOffChainMachineConstraints};export{MACHINE_RISK_RULES,MACHINE_RISK_VERSION,MACHINE_RISK_RULES_COUNT,assessMachineRisks,a139m as getMachineRiskRulesByCategory,getRiskRulesBySeverity,a139n as getAutoFixableMachineRules,a139o as getMachineRiskSummary,getRiskRuleById};export{analyzeTopology,identifyTopologyPattern,formatTopologySummary,MACHINE_TOPOLOGY_VERSION,MAX_NODE_COUNT,MAX_NODE_PAIR_COUNT,MAX_FORWARD_COUNT};export{a139p as initMachinePuzzleFromIntent,initPuzzleFromTemplate,a139q as checkMachinePuzzleCompleteness,a139r as recommendMachineNextStep,derivePuzzleFromMachineJson,a139s as generateMachineConfirmationText,MACHINE_PUZZLE_VERSION};export{SERVICE_SCENES,SERVICE_LEDGER_VERSION,SERVICE_PERMISSIONS,SERVICE_ORDER_FLOW_STAGES,SERVICE_CROSS_OBJECT_BINDINGS,a139t as getServiceScenesByCategory,a139u as findServiceSceneById,getServicePermissionByIndex,isServicePermission,getPermissionsByMutability,getImmutablePostPublishPermissions,getLockedByDurationPermissions,a139v as inferServiceSceneFromIntent,getAllServiceScenes,getServiceScenesCount,getServicePermissionsCount,getOrderFlowStage,a139w as getServiceCrossObjectBindings};export{a139x as initServicePuzzleFromIntent,a139y as checkServicePuzzleCompleteness,a139z as validateServiceConstraints,a139A as generateServicePuzzleConfirmationText,initOrderFlowPuzzle,checkOrderFlowCompleteness};export{SERVICE_RISK_VERSION,assessServiceRisks,getAllServiceRiskRules,getServiceRiskRulesCount,getServiceRiskRulesByCategory};export{SERVICE_TEMPLATES,SERVICE_TEMPLATES_VERSION,getServiceTemplateById,getServiceTemplatesByScene,getServiceTemplatesByIndustry,suggestServiceTemplateForScene,listServiceTemplates,fillServiceTemplate,getAllServiceTemplates};export{ALLOCATION_SCENES,ALLOCATION_LEDGER_VERSION,MAX_ALLOCATOR_COUNT,ALLOCATION_MAX_SHARING_COUNT,ALLOCATION_MODE_AMOUNT,ALLOCATION_MODE_RATE,ALLOCATION_MODE_SURPLUS,RATE_TOTAL_FULL,ALLOCATION_ERROR_CODES,a139B as getAllocationScenesByTriggerSource,a139C as getAllocationScenesByMode,a139D as getAllocationScenesByStrategy,a139E as findAllocationSceneById,a139F as inferAllocationSceneFromIntent,a139G as getAllAllocationScenes,a139H as getAllocationScenesCount,allocationModeToNumber,allocationModeFromNumber,getRecipientType,isSignerRecipient,isEntityRecipient,isGuardIdentifierRecipient,a139I as getAllocationErrorName,a139J as getAllocationErrorDescription};export{a139K as initAllocationPuzzleFromIntent,a139L as checkAllocationPuzzleCompleteness,a139M as validateAllocationConstraints,a139N as generateAllocationPuzzleConfirmationText,buildDefaultAllocFlow,buildDefaultRecipientRules,buildDefaultLogicPuzzle,ALLOCATION_PUZZLE_VERSION};export{ALLOCATION_RISK_VERSION,assessAllocationRisks,a139O as getAllAllocationRiskRules,a139P as getAllocationRiskRulesCount,a139Q as getAllocationRiskRulesByCategory};export{ALLOCATION_TEMPLATES,ALLOCATION_TEMPLATES_VERSION,a139R as getAllAllocationTemplates,a139S as getAllocationTemplateById,a139T as getAllocationTemplatesByScene,a139U as getAllocationTemplatesByIndustry,a139V as suggestAllocationTemplateForScene,a139W as listAllocationTemplates,a139X as fillAllocationTemplate};export{RECIPIENT_CONSTRAINT_VERSION,classifyRecipient,analyzeRecipientConstraints,isUnboundSignerTheft,canonicalDoctrine,recipientDesignGuidance,derivePayoffFromSharing,OBJECT_DRIVEABILITY,driveabilityOf,RECIPIENT_DESIGN_OPTIONS};export{paymentRelations,scanRecentPaymentEvents,resolveBeneficialOwners,extractionPlanForHolder,pendingWrappersAt,trackAccountPayments};export{TREASURY_LEDGER_VERSION,TREASURY_SCENES,a139Y as TREASURY_BUILTIN_PERMISSIONS,a139Z as getTreasuryScenesByHostObject,a139a0 as findTreasurySceneById,a139a1 as findTreasurySceneByPermissionIndex,a139a2 as getTreasuryBuiltinPermissionByIndex,isBuiltinTreasuryPermission,a139a3 as getActiveTreasuryBuiltinPermissions,a139a4 as getReservedTreasuryBuiltinPermissions,a139a5 as inferTreasurySceneFromIntent,getTreasuryScenesCount,a139a6 as getTreasuryMoveFunctionsForPermissionIndex};export{a139a7 as initTreasuryPuzzleFromIntent,a139a8 as checkTreasuryPuzzleCompleteness,a139a9 as validateTreasuryConstraints,a139aa as generateTreasuryPuzzleConfirmationText,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,a139ab as TREASURY_MAX_DESCRIPTION_LENGTH};export{TREASURY_TEMPLATES,TREASURY_TEMPLATES_VERSION,getAllTreasuryTemplates,a139ac as getTreasuryTemplateById,a139ad as getTreasuryTemplatesByScene,a139ae as getTreasuryTemplatesByIndustry,a139af as suggestTreasuryTemplateForScene,a139ag as listTreasuryTemplates,a139ah as fillTreasuryTemplate};export{TREASURY_RISK_VERSION,assessTreasuryRisks,getAllTreasuryRiskRules,getTreasuryRiskRulesCount,getTreasuryRiskRulesByCategory};export{ORDER_LEDGER_VERSION,ORDER_SCENES,ORDER_FIELDS,ORDER_STATES,ORDER_STATE_TRANSITIONS,ORDER_LIFECYCLE_EVENTS,ORDER_PERMISSION_MATRIX,ORDER_AUDIT_FORMULAS,a139ai as getOrderScenesByOperationField,a139aj as findOrderSceneById,a139ak as findOrderSceneByMoveEntry,a139al as getOrderScenesByPermissionLayer,a139am as getOrderScenesByReversibility,a139an as getOrderFieldDef,a139ao as getOrderMutableFields,a139ap as getOrderImmutableFields,a139aq as getOrderFrozenAfterProgressFields,a139ar as getOrderOneTimeSetFields,a139as as inferOrderSceneFromIntent,a139at as getOrderEmittedEvents,a139au as getOrderInferredEvents,getOrderScenesCount,a139av as sdkToMoveOrderField,a139aw as moveToSdkOrderField};export{a139ax as initOrderPuzzleFromIntent,a139ay as checkOrderPuzzleCompleteness,a139az as validateOrderConstraints,a139aA as generateOrderPuzzleConfirmationText,a139aB as verifyOrderSnapshotMechanism,a139aC as inferOrderLifecyclePhase,a139aD as matchOrderSceneFromPuzzle,a139aE as listAllOrderScenes,a139aF as lookupOrderScene};export{ORDER_TEMPLATES,ORDER_TEMPLATES_VERSION,ORDER_TEMPLATES_COUNT,getAllOrderTemplates,a139aG as getOrderTemplateById,a139aH as getOrderTemplatesByScene,a139aI as getOrderTemplatesByIndustry,a139aJ as getOrderTemplatesByPermissionLayer,a139aK as getIrreversibleOrderTemplates,a139aL as suggestOrderTemplateForScene,listOrderTemplates,a139aM as fillOrderTemplate,a139aN as suggestOrderTemplateFromIntent,a139aO as getOrderTemplateParameters,a139aP as validateOrderTemplateParams};export{ORDER_RISK_VERSION,assessOrderRisks,getAllOrderRiskRules,getOrderRiskRulesCount,getOrderRiskRulesByCategory,getOrderRiskRuleById,a139aQ as checkOrderPermissionLayer};export{PROGRESS_LEDGER_VERSION,PROGRESS_SCENES,a139aR as PROGRESS_BUILTIN_PERMISSIONS,PROGRESS_NEW,PROGRESS_NAMED_OPERATOR,PROGRESS_TASK,PROGRESS_CONTEXT_REPOSITORY,PROGRESS_UNHOLD,PROGRESS_OWNER_RECEIVE,PROGRESS_CROSS_OBJECT_REFS,a139aS as getProgressScenesByPhase,a139aT as findProgressSceneById,a139aU as getProgressScenesByIndustry,a139aV as getProgressBuiltinPermissionByIndex,isProgressBuiltinPermission,a139aW as inferProgressSceneFromIntent,a139aX as getAllProgressBuiltinPermissions,getProgressScenesCount,validateNamedOperatorAddressList,validateNamedOperatorCount,validateContextRepositoryCount};export{a139aY as initProgressPuzzleFromIntent,a139aZ as checkProgressPuzzleCompleteness,a139b0 as validateProgressConstraints,a139b1 as generateProgressPuzzleConfirmationText,a139b2 as resolveProgressBuiltinPermission,isOrderHolderForward,a139b3 as getProgressRelevantDimensions};export{PROGRESS_TEMPLATES,PROGRESS_TEMPLATES_VERSION,getAllProgressTemplates,getProgressTemplateById,getProgressTemplatesByScene,getProgressTemplatesByIndustry,suggestProgressTemplateForScene,listProgressTemplates,fillProgressTemplate};export{PROGRESS_RISK_VERSION,assessProgressRisks,getAllProgressRiskRules,getProgressRiskRulesCount,getProgressRiskRulesByCategory};export{ARBITRATION_LEDGER_VERSION,ARBITRATION_SCENES,a139b4 as ARBITRATION_BUILTIN_PERMISSIONS,ARB_STATUS_CODE,ARB_TERMINAL_STATUSES,ARB_STATUS_ALIASES,DUAL_GUARD_MATRIX,a139b5 as getArbitrationScenesByCategory,a139b6 as findArbitrationSceneById,a139b7 as findArbitrationSceneByPermissionIndex,a139b8 as getArbitrationPermissionByIndex,a139b9 as getArbitrationPermissionByName,a139ba as isArbitrationReservedIndex,a139bb as isArbitrationUsedPermissionIndex,a139bc as getArbitrationActivePermissionCount,a139bd as inferArbitrationSceneFromIntent,getDualGuardMatrixEntry,isValidArbStatusTransition,isTerminalArbStatus,a139be as getArbitrationScenesProducingStatus,a139bf as getArbitrationScenesRequiringStatus,getArbitrationScenesCount,getAllArbitrationPermissions,getActiveArbitrationPermissions};export{a139bg as initArbitrationPuzzleFromIntent,a139bh as checkArbitrationPuzzleCompleteness,a139bi as validateArbitrationConstraints,a139bj as generateArbitrationPuzzleConfirmationText};export{ARBITRATION_TEMPLATES,ARBITRATION_TEMPLATES_VERSION,a139bk as getAllArbitrationTemplates,a139bl as getArbitrationTemplateById,a139bm as getArbitrationTemplatesByScene,a139bn as getArbitrationTemplatesByIndustry,a139bo as suggestArbitrationTemplateForScene,a139bp as listArbitrationTemplates,a139bq as fillArbitrationTemplate};export{ARBITRATION_RISK_VERSION,assessArbitrationRisks,a139br as getAllArbitrationRiskRules,a139bs as getArbitrationRiskRulesCount,a139bt as getArbitrationRiskRulesByCategory};export{REWARD_LEDGER_VERSION,REWARD_SCENES,REWARD_PERMISSIONS,REWARD_FIELDS,REWARD_GUARD_CONSTRUCTORS,REWARD_ERROR_CODES,REWARD_CROSS_OBJECT_REFS,MAX_GUARD_COUNT_REWARD,MAX_RECORD_COUNT_REWARD,a139bu as getRewardScenesByPhase,a139bv as findRewardSceneById,a139bw as getRewardScenesByIndustry,a139bx as getRewardBuiltinPermissionByIndex,isRewardBuiltinPermission,a139by as getAllRewardBuiltinPermissions,getRewardScenesCount,a139bz as getRewardGuardConstructorSpec,a139bA as resolveRewardGuardConstructor,getRewardErrorByCode,getRewardErrorByName,a139bB as validateRewardGuardCount,a139bC as validateRewardRecordCount,a139bD as inferRewardSceneFromIntent};export{REWARD_FIELD_MUTABILITY,a139bE as initRewardPuzzleFromIntent,a139bF as checkRewardPuzzleCompleteness,a139bG as validateRewardConstraints,a139bH as generateRewardPuzzleConfirmationText,a139bI as resolveRewardBuiltinPermission,a139bJ as requiresRewardGuardConfig,a139bK as requiresRewardPassport,a139bL as getRewardRelevantDimensions,a139bM as getRewardFieldMutability,a139bN as isRewardAdminMutableField,a139bO as getRewardFieldPermissionIndex};export{REWARD_RISK_VERSION,REWARD_STAKEHOLDERS,assessRewardRisks,getAllRewardRiskRules,getRewardRiskRulesCount,getRewardRiskRulesByCategory,getRewardRiskRulesByStakeholder};export{PASSPORT_LEDGER_VERSION,PASSPORT_ERROR_CODES,PASSPORT_SCENARIOS,MAX_GUARD_COUNT_PASSPORT,MAX_SUBMISSION_SIZE_PASSPORT,a139bP as getAllPassportScenarios,a139bQ as getPassportScenesCount,a139bR as findPassportScenarioById,a139bS as getPassportScenariosByConsumer,a139bT as getPassportScenariosUsingRelies,a139bU as inferPassportScenarioFromIntent,impackRoleFromBoolean,impackRoleToBoolean,reliesLogicFromBoolean,reliesLogicToBoolean,a139bV as getPassportErrorName,a139bW as getPassportErrorDescription};export{PASSPORT_TEMPLATES,PASSPORT_TEMPLATES_VERSION,a139bX as getAllPassportTemplates,a139bY as getPassportTemplateById,a139bZ as getPassportTemplatesByScenario,a139c0 as getPassportTemplatesByIndustry,a139c1 as suggestPassportTemplateForScenario,a139c2 as listPassportTemplates,a139c3 as fillPassportTemplate};export{PROOF_RISK_RULES,checkProofRisks,getProofRiskById};export{REPOSITORY_RISK_RULES,checkRepositoryRisks,getRepositoryRiskById,parseIdFromForRiskCheck};export{assessEvidenceReview,reviewEvidenceList}from'./evidence-review.js';export{DEMAND_RISK_RULES,checkDemandRisks,getDemandRiskById};export{CONTACT_RISK_RULES,CONTACT_RISK_VERSION,checkContactRisks,getContactRiskById};export{RESOURCE_RISK_RULES,RESOURCE_RISK_VERSION,checkResourceRisks,getResourceRiskById};export{PAYMENT_RISK_RULES,PAYMENT_RISK_VERSION,checkPaymentRisks,getPaymentRiskById};export{ARB_RISK_RULES,ARB_RISK_VERSION,checkArbRisks,getArbRiskById};export{PERSONAL_RISK_RULES,PERSONAL_RISK_VERSION,checkPersonalRisks,getPersonalRiskById};export{UTIL_RISK_RULES,UTIL_RISK_VERSION,checkUtilRisks,getUtilRiskById};export{REGISTRAR_RISK_RULES,REGISTRAR_RISK_VERSION,checkRegistrarRisks,getRegistrarRiskById};export{BRIDGE_RISK_RULES,BRIDGE_RISK_VERSION,checkBridgeRisks,getBridgeRiskById};export{TOOLS_REFERENCE,getToolReference,searchToolReference,getToolSequence};export{SCENARIO_MODES,SCENARIO_MODES_VERSION,MODE_COMPOSITIONS,matchScenarioMode,inferScenarioTraits,getScenarioMode,listScenarioModes,getShippedModes,getModeCompositions};export{GUARD_DESIGN_PATTERNS,GUARD_DESIGN_PATTERNS_VERSION,VERIFIER_LEVEL_GUIDANCE,getGuardDesignPattern,searchGuardDesignPatterns,getPatternsByHost,getPatternsByIndustry,getPatternsByDataSourceClass,getVerifierLevelGuidance,suggestPatternForRequirement};export function getKnowledgeBase(){return{'version':{'safety':SAFETY_RULES_VERSION,'tool_constraints':TOOL_CONSTRAINTS_VERSION,'reward_templates':REWARD_TEMPLATES_VERSION,'audit_rules':AUDIT_RULES_VERSION,'dynamic_pricing':DYNAMIC_PRICING_VERSION,'trust_metrics':TRUST_METRICS_VERSION,'reputation_rules':REPUTATION_RULES_VERSION,'acquisition_flywheel':ACQUISITION_FLYWHEEL_VERSION,'industry_registry':INDUSTRY_REGISTRY_VERSION,'flywheel_loop':FLYWHEEL_LOOP_VERSION,'machine_ledger':MACHINE_LEDGER_VERSION,'machine_templates':MACHINE_TEMPLATES_VERSION,'machine_translation':MACHINE_TRANSLATION_VERSION,'machine_risk':MACHINE_RISK_VERSION,'machine_topology':MACHINE_TOPOLOGY_VERSION,'machine_puzzle':MACHINE_PUZZLE_VERSION,'service_ledger':SERVICE_LEDGER_VERSION,'service_risk':SERVICE_RISK_VERSION,'service_templates':SERVICE_TEMPLATES_VERSION,'allocation_ledger':ALLOCATION_LEDGER_VERSION,'allocation_puzzle':ALLOCATION_PUZZLE_VERSION,'allocation_risk':ALLOCATION_RISK_VERSION,'allocation_templates':ALLOCATION_TEMPLATES_VERSION,'treasury_ledger':TREASURY_LEDGER_VERSION,'treasury_templates':TREASURY_TEMPLATES_VERSION,'treasury_risk':TREASURY_RISK_VERSION,'order_ledger':ORDER_LEDGER_VERSION,'order_templates':ORDER_TEMPLATES_VERSION,'order_risk':ORDER_RISK_VERSION,'progress_ledger':PROGRESS_LEDGER_VERSION,'progress_templates':PROGRESS_TEMPLATES_VERSION,'progress_risk':PROGRESS_RISK_VERSION,'arbitration_ledger':ARBITRATION_LEDGER_VERSION,'arbitration_templates':ARBITRATION_TEMPLATES_VERSION,'arbitration_risk':ARBITRATION_RISK_VERSION,'reward_ledger':REWARD_LEDGER_VERSION,'reward_risk':REWARD_RISK_VERSION,'passport_ledger':PASSPORT_LEDGER_VERSION,'passport_templates':PASSPORT_TEMPLATES_VERSION,'contact_risk':CONTACT_RISK_VERSION,'resource_risk':RESOURCE_RISK_VERSION,'payment_risk':PAYMENT_RISK_VERSION,'arb_risk':ARB_RISK_VERSION,'personal_risk':PERSONAL_RISK_VERSION,'util_risk':UTIL_RISK_VERSION,'registrar_risk':REGISTRAR_RISK_VERSION,'bridge_risk':BRIDGE_RISK_VERSION,'scenario_modes':SCENARIO_MODES_VERSION,'guard_design_patterns':GUARD_DESIGN_PATTERNS_VERSION},'confirmation_rules':CONFIRMATION_RULES['length'],'confirmation_rule_ids':CONFIRMATION_RULES['map'](a=>a['id']),'tool_constraints_count':TOOL_CONSTRAINTS['length'],'reward_templates_count':REWARD_TEMPLATES['length'],'audit_rules_count':AUDIT_RULES['length'],'mutable_fields_count':MUTABLE_FIELDS['length'],'industry_flywheels_count':INDUSTRY_FLYWHEELS['length'],'industry_registry_count':getRegistrySize(),'intent_count':listIntents()['length'],'guard_scenes_count':GUARD_SCENES['length'],'guard_semantic_rules_count':SEMANTIC_TO_SCHEMA_RULES['length'],'guard_schema_rules_count':SCHEMA_TO_SEMANTIC_RULES['length'],'guard_constraint_rules_count':GUARD_CONSTRAINT_RULES['length'],'guard_risk_rules_count':getRiskRulesCount(),'guard_templates_count':GUARD_TEMPLATES_COUNT,'guard_lint_enabled':!![],'machine_scenes_count':MACHINE_SCENES_COUNT,'machine_templates_count':MACHINE_TEMPLATES['length'],'machine_patterns_count':SEMANTIC_TO_MACHINE_RULES['length'],'machine_constraint_rules_count':MACHINE_CONSTRAINT_RULES['length'],'machine_risk_rules_count':MACHINE_RISK_RULES['length'],'machine_on_chain_limits':{'max_node_count':MAX_NODE_COUNT,'max_node_pair_count':MAX_NODE_PAIR_COUNT,'max_forward_count':MAX_FORWARD_COUNT},'service_scenes_count':SERVICE_SCENES['length'],'service_permissions_count':SERVICE_PERMISSIONS['length'],'service_order_flow_stages_count':SERVICE_ORDER_FLOW_STAGES['length'],'service_cross_object_bindings_count':SERVICE_CROSS_OBJECT_BINDINGS['length'],'service_risk_rules_count':getAllServiceRiskRules()['length'],'service_templates_count':SERVICE_TEMPLATES['length'],'service_context_enabled':!![],'allocation_scenes_count':ALLOCATION_SCENES['length'],'allocation_risk_rules_count':a139O()['length'],'allocation_templates_count':ALLOCATION_TEMPLATES['length'],'allocation_context_enabled':!![],'treasury_scenes_count':TREASURY_SCENES['length'],'treasury_builtin_permissions_count':a139Y['length'],'treasury_risk_rules_count':getAllTreasuryRiskRules()['length'],'treasury_templates_count':TREASURY_TEMPLATES['length'],'treasury_context_enabled':!![],'order_scenes_count':ORDER_SCENES['length'],'order_fields_count':ORDER_FIELDS['length'],'order_states_count':ORDER_STATES['length'],'order_lifecycle_events_count':ORDER_LIFECYCLE_EVENTS['length'],'order_risk_rules_count':getAllOrderRiskRules()['length'],'order_templates_count':ORDER_TEMPLATES['length'],'order_context_enabled':!![],'progress_scenes_count':PROGRESS_SCENES['length'],'progress_builtin_permissions_count':a139aR['length'],'progress_risk_rules_count':getAllProgressRiskRules()['length'],'progress_templates_count':PROGRESS_TEMPLATES['length'],'progress_context_enabled':!![],'arbitration_scenes_count':ARBITRATION_SCENES['length'],'arbitration_builtin_permissions_count':a139b4['length'],'arbitration_risk_rules_count':a139br()['length'],'arbitration_templates_count':ARBITRATION_TEMPLATES['length'],'arbitration_context_enabled':!![],'reward_scenes_count':REWARD_SCENES['length'],'reward_builtin_permissions_count':REWARD_PERMISSIONS['length'],'reward_fields_count':REWARD_FIELDS['length'],'reward_guard_constructors_count':REWARD_GUARD_CONSTRUCTORS['length'],'reward_error_codes_count':REWARD_ERROR_CODES['length'],'reward_risk_rules_count':getAllRewardRiskRules()['length'],'reward_context_enabled':!![],'passport_scenarios_count':PASSPORT_SCENARIOS['length'],'passport_max_guard_count':MAX_GUARD_COUNT_PASSPORT,'passport_max_submission_size':MAX_SUBMISSION_SIZE_PASSPORT,'passport_templates_count':PASSPORT_TEMPLATES['length'],'passport_context_enabled':!![],'proof_risk_rules_count':PROOF_RISK_RULES['length'],'repository_risk_rules_count':REPOSITORY_RISK_RULES['length'],'demand_risk_rules_count':DEMAND_RISK_RULES['length'],'contact_risk_rules_count':CONTACT_RISK_RULES['length'],'resource_risk_rules_count':RESOURCE_RISK_RULES['length'],'payment_risk_rules_count':PAYMENT_RISK_RULES['length'],'arb_risk_rules_count':ARB_RISK_RULES['length'],'personal_risk_rules_count':PERSONAL_RISK_RULES['length'],'util_risk_rules_count':UTIL_RISK_RULES['length'],'registrar_risk_rules_count':REGISTRAR_RISK_RULES['length'],'bridge_risk_rules_count':BRIDGE_RISK_RULES['length'],'tools_reference_count':TOOLS_REFERENCE['length'],'scenario_modes_count':SCENARIO_MODES['length'],'scenario_mode_compositions_count':MODE_COMPOSITIONS['length'],'guard_design_patterns_count':GUARD_DESIGN_PATTERNS['length'],'verifier_level_guidance_count':VERIFIER_LEVEL_GUIDANCE['length']};}export{buildWorkflowGuidance,buildWorkflowReceipt,enrichWorkflowGuidance,mergeGuidanceIntoOutput,resolvePermissionRole,resolveLocalNamesFor,listLocalAccounts,accountCanExecuteForward,enumerateActionableForwards,forwardOperatorKind};export{buildWorkspaceLists}from'./workspace-lists.js';export{resolveSupplyChainGraph}from'./supply-chain.js';export{enumerateObjectOperations,operationCategoryOf,operationComplexityOf,isPermissionIndexType}from'./operation-dictionary.js';export{enumerateServices,enumerateDemands,enumerateArbs}from'./jsonrpc-enum.js';export{FIELD_MUTABILITY_RULES,LOCK_CONSTRAINTS,IRREVERSIBLE_OPERATIONS,STATE_MACHINE_TERMINALS,NUMERIC_LIMIT_CONSTRAINTS,EXTERNAL_ACCESS_MECHANISMS,fieldMutabilityOf,isActionForbidden,lockConstraintOf,numericLimitOf,externalAccessOf}from'./contract-invariants.js';export{GUARD_FIELD_COGNITION_VERSION,GUARD_FIELD_SITES,VALUE_ORIGIN_SEMANTICS,GUARD_PASSPORT_DOCTRINE,guardSitesFor,guardCognitionDoctrine,REPOSITORY_WRITE_ROUTE_MATRIX,repositoryRouteSlotConflicts}from'./guard-field-cognition.js';
|
|
1
|
+
import{buildWorkflowGuidance,buildWorkflowReceipt,enrichWorkflowGuidance,mergeGuidanceIntoOutput,resolvePermissionRole,resolveLocalNamesFor,listLocalAccounts,accountCanExecuteForward,enumerateActionableForwards,forwardOperatorKind}from'./workflow-guidance.js';import{CONFIRMATION_RULES,SAFETY_RULES_VERSION,OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_TYPE_CLASSIFICATION,OPERATION_CLASS_META,classifyTool,NAMING_CONVENTIONS,checkObjectReuseRules,checkImmutabilityRules}from'./safety-rules.js';import{TOOL_CONSTRAINTS,TOOL_CONSTRAINTS_VERSION,validateOperation,hasBlockingViolations,getWarningViolations}from'./tool-constraints.js';import{REWARD_TEMPLATES,REWARD_TEMPLATES_VERSION,getRewardTemplate,listRewardTemplates,suggestRewardTemplate}from'./reward-templates.js';import{AUDIT_RULES,AUDIT_RULES_VERSION,auditService,hasBlockingErrors,getErrors,getWarnings,summarizeFindings}from'./audit-rules.js';import{suggestPricing,MUTABLE_FIELDS,DYNAMIC_PRICING_VERSION}from'./dynamic-pricing.js';import{buildReviewRepositorySetup,computeReviewStats,isVerifiedReview,filterVerifiedReviews,detectReviewManipulation,REPUTATION_RULES_VERSION}from'./reputation-rules.js';import{INDUSTRY_FLYWHEELS,getFlywheelForIndustry,listIndustries,suggestAcquisitionActions,generateTrustDescription,buildAcquisitionDashboard,ACQUISITION_FLYWHEEL_VERSION}from'./acquisition-flywheel.js';import{INDUSTRY_REGISTRY_VERSION,getIndustryProfile,registerIndustry,getIndustryTraits,resolveIndustryName,getRegistrySize,listBuiltinIndustryNames}from'./industry-registry.js';import{DEFAULT_TRAITS,inferTraitsFromDescription,synthesizeProfile,findSimilarIndustries,composeIndustries}from'./industry-generalizer.js';import{INDUSTRY_EVOLUTION_THRESHOLDS,aggregateIndustryMetrics,evaluateIndustryHealth,suggestIndustryUpdate,applyIndustryUpdate,runIndustryHealthPipeline}from'./industry-evolution.js';import{FLYWHEEL_LOOP_VERSION,FLYWHEEL_LOOP_MIN_SIGNALS,recordIndustrySignal,updateIndustryCognition,injectEvolutionContext}from'./flywheel-loop.js';import{BUILTIN_INTENT_SPECS,registerIntentProfile,getIntentProfile,listIntents,evaluateIndustryHealthByIntent,suggestIndustryUpdateByIntent,evaluateIndustryHealthMultiIntent,getRoleAdvice,filterSuggestionsByRole}from'./intent-metrics.js';import{GUARD_SCENES,findScene,inferSceneFromAction,getImmutableScenes,getNumericIdentifierScenes}from'./guard-ledger.js';import{SEMANTIC_TO_SCHEMA_RULES,SCHEMA_TO_SEMANTIC_RULES,GUARD_CONSTRAINT_RULES,matchSemanticPattern,explainNode,explainWitness,getConstraintsByCategory}from'./guard-translation.js';import{checkPuzzleCompleteness,generateConfirmationText,initPuzzleFromIntent,inferBindingFromAction,emptyDataSources,getWitnessInfo,WITNESS_NAME_MAP}from'./guard-puzzle.js';import{runGuardRulePack,assembleGuardAssessment,getRiskRulesCount}from'./guard-risk.js';import{evaluateGuardDraft}from'./guard-eval.js';import{GUARD_BINDING_REGISTRY,GUARD_BINDINGS_VERSION,OWNER_RECEIVE_COGNITION,getGuardBindingsByObject,getGuardBinding,summarizeGuardBinding}from'./guard-bindings.js';import{SCENARIO_BRIDGE_REGISTRY,SCENARIO_CHAINS,SCENARIO_TOPOLOGY_VERSION,getBridgeById,getBridgeByCode,getBridgesByObject,getBridgesForEdge,detectBridgesForEdges,getChainById,summarizeBridge,detectBridgesForObjects}from'./scenario-topology.js';import{GUARD_TEMPLATES,GUARD_TEMPLATES_VERSION,GUARD_TEMPLATES_COUNT,getTemplatesByScene,getTemplateById,getTemplatesByIndustry,getTemplatesByPattern,listGuardTemplates,suggestTemplateForScene,getTemplateParameters,validateTemplateParams}from'./guard-templates.js';import{lintGuard,autoFixGuard,isGuardReady,getGuardErrors,formatLintResult}from'./guard-lint.js';import{MACHINE_SCENES,MACHINE_LEDGER_VERSION,MACHINE_SCENES_COUNT,findScene as a182a,getScenesByIndustry as a182b,getScenesByPattern,inferSceneFromFlow}from'./machine-ledger.js';import{MACHINE_TEMPLATES,MACHINE_TEMPLATES_VERSION,MACHINE_TEMPLATES_COUNT,getAllTemplates as a182c,getTemplateById as a182d,getTemplatesByScene as a182e,getTemplatesByIndustry as a182f,suggestTemplateForIntent,walkDecisionTree,fillTemplate as a182g,forkTemplate as a182h,verifyTemplateSceneReferences,getReferencedGuardTemplateIds,getReferencedRiskIds}from'./machine-templates.js';import{SEMANTIC_TO_MACHINE_RULES,MACHINE_CONSTRAINT_RULES,MACHINE_TRANSLATION_VERSION,MACHINE_PATTERNS_COUNT,MACHINE_CONSTRAINTS_COUNT,matchSemanticPattern as a182i,identifyExecutionMode,identifyTopology,explainForwardPermission,getConstraintsByCategory as a182j,getConstraintById,getOnChainConstraints as a182k,getOffChainConstraints as a182l}from'./machine-translation.js';import{MACHINE_RISK_RULES,MACHINE_RISK_VERSION,assessMachineRisks}from'./machine-risk.js';import{analyzeTopology,identifyTopologyPattern,formatTopologySummary,MACHINE_TOPOLOGY_VERSION,MAX_NODE_COUNT,MAX_NODE_PAIR_COUNT,MAX_FORWARD_COUNT}from'./machine-topology.js';import{initPuzzleFromIntent as a182m,initPuzzleFromTemplate,checkPuzzleCompleteness as a182n,recommendNextStep as a182o,derivePuzzleFromMachineJson,generateConfirmationText as a182p,MACHINE_PUZZLE_VERSION}from'./machine-puzzle.js';import{SERVICE_SCENES,SERVICE_LEDGER_VERSION,SERVICE_PERMISSIONS,SERVICE_ORDER_FLOW_STAGES,SERVICE_CROSS_OBJECT_BINDINGS,getScenesByCategory as a182q,findSceneById as a182r,getServicePermissionByIndex,isServicePermission,getPermissionsByMutability,getImmutablePostPublishPermissions,getLockedByDurationPermissions,inferSceneFromIntent as a182s,getAllServiceScenes,getServiceScenesCount,getServicePermissionsCount,getOrderFlowStage,getCrossObjectBindings as a182t}from'./service-ledger.js';import{initPuzzleFromIntent as a182u,checkPuzzleCompleteness as a182v,validateConstraints as a182w,generateConfirmationText as a182x,initOrderFlowPuzzle,checkOrderFlowCompleteness}from'./service-puzzle.js';import{SERVICE_RISK_VERSION,assessServiceRisks,getAllServiceRiskRules}from'./service-risk.js';import{SERVICE_TEMPLATES,SERVICE_TEMPLATES_VERSION,getServiceTemplateById,getServiceTemplatesByScene,getServiceTemplatesByIndustry,suggestServiceTemplateForScene,listServiceTemplates,fillServiceTemplate,getAllServiceTemplates}from'./service-templates.js';import{ALLOCATION_SCENES,ALLOCATION_LEDGER_VERSION,MAX_ALLOCATOR_COUNT,ALLOCATION_MAX_SHARING_COUNT,ALLOCATION_MODE_AMOUNT,ALLOCATION_MODE_RATE,ALLOCATION_MODE_SURPLUS,RATE_TOTAL_FULL,ALLOCATION_ERROR_CODES,getScenesByTriggerSource as a182y,getScenesByMode as a182z,getScenesByStrategy as a182A,findSceneById as a182B,inferSceneFromIntent as a182C,getAllScenes as a182D,getScenesCount as a182E,allocationModeToNumber,allocationModeFromNumber,getRecipientType,isSignerRecipient,isEntityRecipient,isGuardIdentifierRecipient,getErrorName as a182F,getErrorDescription as a182G}from'./allocation-ledger.js';import{initPuzzleFromIntent as a182H,checkPuzzleCompleteness as a182I,validateConstraints as a182J,generateConfirmationText as a182K,buildDefaultAllocFlow,buildDefaultRecipientRules,buildDefaultLogicPuzzle,ALLOCATION_PUZZLE_VERSION}from'./allocation-puzzle.js';import{ALLOCATION_RISK_VERSION,assessAllocationRisks,getAllRiskRules as a182L}from'./allocation-risk.js';import{ALLOCATION_TEMPLATES,ALLOCATION_TEMPLATES_VERSION,getAllTemplates as a182M,getTemplateById as a182N,getTemplatesByScene as a182O,getTemplatesByIndustry as a182P,suggestTemplateForScene as a182Q,listTemplates as a182R,fillTemplate as a182S}from'./allocation-templates.js';import{RECIPIENT_CONSTRAINT_VERSION,classifyRecipient,analyzeRecipientConstraints,isUnboundSignerTheft,canonicalDoctrine,recipientDesignGuidance,derivePayoffFromSharing,OBJECT_DRIVEABILITY,driveabilityOf,RECIPIENT_DESIGN_OPTIONS}from'./recipient-constraint.js';import{paymentRelations,scanRecentPaymentEvents,resolveBeneficialOwners,extractionPlanForHolder,pendingWrappersAt,trackAccountPayments}from'./payment-tracker.js';import{TREASURY_LEDGER_VERSION,TREASURY_SCENES,TREASURY_PERMISSIONS as a182T,getScenesByHostObject as a182U,findSceneById as a182V,findSceneByPermissionIndex as a182W,getBuiltinPermissionByIndex as a182X,isBuiltinTreasuryPermission,getActiveBuiltinPermissions as a182Y,getReservedBuiltinPermissions as a182Z,inferSceneFromIntent as a182a0,getTreasuryScenesCount,getGovernedOperationsForPermissionIndex as a182a1}from'./treasury-ledger.js';import{initPuzzleFromIntent as a182a2,checkPuzzleCompleteness as a182a3,validateConstraints as a182a4,generateConfirmationText as a182a5,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,MAX_DESCRIPTION_LENGTH as a182a6}from'./treasury-puzzle.js';import{TREASURY_TEMPLATES,TREASURY_TEMPLATES_VERSION,getAllTreasuryTemplates,getTemplateById as a182a7,getTemplatesByScene as a182a8,getTemplatesByIndustry as a182a9,suggestTemplateForScene as a182aa,listTemplates as a182ab,fillTemplate as a182ac}from'./treasury-templates.js';import{TREASURY_RISK_VERSION,assessTreasuryRisks,getAllTreasuryRiskRules}from'./treasury-risk.js';import{ORDER_LEDGER_VERSION,ORDER_SCENES,ORDER_FIELDS,ORDER_STATES,ORDER_STATE_TRANSITIONS,ORDER_LIFECYCLE_EVENTS,ORDER_PERMISSION_MATRIX,ORDER_AUDIT_FORMULAS,getScenesByOperationField as a182ad,findSceneById as a182ae,findSceneByMoveEntry as a182af,getScenesByPermissionLayer as a182ag,getScenesByReversibility as a182ah,getFieldDef as a182ai,getMutableFields as a182aj,getImmutableFields as a182ak,getFrozenAfterProgressFields as a182al,getOneTimeSetFields as a182am,inferSceneFromIntent as a182an,getEmittedEvents as a182ao,getInferredEvents as a182ap,getOrderScenesCount,sdkToMoveField as a182aq,moveToSdkField as a182ar}from'./order-ledger.js';import{initPuzzleFromIntent as a182as,checkPuzzleCompleteness as a182at,validateConstraints as a182au,generateConfirmationText as a182av,verifySnapshotMechanism as a182aw,inferLifecyclePhase as a182ax,matchSceneFromPuzzle as a182ay,listAllScenes as a182az,lookupScene as a182aA}from'./order-puzzle.js';import{ORDER_TEMPLATES,ORDER_TEMPLATES_VERSION,ORDER_TEMPLATES_COUNT,getAllOrderTemplates,getTemplateById as a182aB,getTemplatesByScene as a182aC,getTemplatesByIndustry as a182aD,getTemplatesByPermissionLayer as a182aE,getIrreversibleTemplates as a182aF,suggestTemplateForScene as a182aG,listOrderTemplates,fillTemplate as a182aH,suggestTemplateFromIntent as a182aI,getTemplateParameters as a182aJ,validateTemplateParams as a182aK}from'./order-templates.js';import{ORDER_RISK_VERSION,assessOrderRisks,getAllOrderRiskRules}from'./order-risk.js';import{PROGRESS_LEDGER_VERSION,PROGRESS_SCENES,PROGRESS_PERMISSIONS as a182aL,PROGRESS_NEW,PROGRESS_NAMED_OPERATOR,PROGRESS_TASK,PROGRESS_CONTEXT_REPOSITORY,PROGRESS_UNHOLD,PROGRESS_OWNER_RECEIVE,PROGRESS_CROSS_OBJECT_REFS,getScenesByPhase as a182aM,findSceneById as a182aN,getScenesByIndustry as a182aO,getBuiltinPermissionByIndex as a182aP,isProgressBuiltinPermission,inferSceneFromIntent as a182aQ,getAllBuiltinPermissions as a182aR,getProgressScenesCount,validateNamedOperatorAddressList,validateNamedOperatorCount,validateContextRepositoryCount}from'./progress-ledger.js';import{initPuzzleFromIntent as a182aS,checkPuzzleCompleteness as a182aT,validateConstraints as a182aU,generateConfirmationText as a182aV,resolveBuiltinPermission as a182aW,isOrderHolderForward,getRelevantDimensions as a182aX}from'./progress-puzzle.js';import{PROGRESS_TEMPLATES,PROGRESS_TEMPLATES_VERSION,getAllProgressTemplates,getProgressTemplateById,getProgressTemplatesByScene,getProgressTemplatesByIndustry,suggestProgressTemplateForScene,listProgressTemplates,fillProgressTemplate}from'./progress-templates.js';import{PROGRESS_RISK_VERSION,assessProgressRisks,getAllProgressRiskRules}from'./progress-risk.js';import{ARBITRATION_LEDGER_VERSION,ARBITRATION_SCENES,ARBITRATION_PERMISSIONS as a182aY,ARB_STATUS_CODE,ARB_TERMINAL_STATUSES,ARB_STATUS_ALIASES,DUAL_GUARD_MATRIX,getScenesByCategory as a182aZ,findSceneById as a182b0,findSceneByPermissionIndex as a182b1,getPermissionByIndex as a182b2,getPermissionByName as a182b3,isReservedIndex as a182b4,isUsedPermissionIndex as a182b5,getActivePermissionCount as a182b6,inferSceneFromIntent as a182b7,getDualGuardMatrixEntry,isValidArbStatusTransition,isTerminalArbStatus,getScenesProducingStatus as a182b8,getScenesRequiringStatus as a182b9,getArbitrationScenesCount,getAllArbitrationPermissions,getActiveArbitrationPermissions}from'./arbitration-ledger.js';import{initPuzzleFromIntent as a182ba,checkPuzzleCompleteness as a182bb,validateConstraints as a182bc,generateConfirmationText as a182bd}from'./arbitration-puzzle.js';import{ARBITRATION_TEMPLATES,ARBITRATION_TEMPLATES_VERSION,getAllTemplates as a182be,getTemplateById as a182bf,getTemplatesByScene as a182bg,getTemplatesByIndustry as a182bh,suggestTemplateForScene as a182bi,listTemplates as a182bj,fillTemplate as a182bk}from'./arbitration-templates.js';import{ARBITRATION_RISK_VERSION,assessArbitrationRisks,getAllRiskRules as a182bl}from'./arbitration-risk.js';import{REWARD_LEDGER_VERSION,REWARD_SCENES,REWARD_PERMISSIONS,REWARD_FIELDS,REWARD_GUARD_CONSTRUCTORS,REWARD_ERROR_CODES,REWARD_CROSS_OBJECT_REFS,MAX_GUARD_COUNT_REWARD,MAX_RECORD_COUNT_REWARD,getScenesByPhase as a182bm,findSceneById as a182bn,getScenesByIndustry as a182bo,getBuiltinPermissionByIndex as a182bp,isRewardBuiltinPermission,getAllBuiltinPermissions as a182bq,getRewardScenesCount,getGuardConstructorSpec as a182br,resolveGuardConstructor as a182bs,getRewardErrorByCode,getRewardErrorByName,validateGuardCount as a182bt,validateRecordCount as a182bu,inferSceneFromIntent as a182bv}from'./reward-ledger.js';import{REWARD_FIELD_MUTABILITY,initPuzzleFromIntent as a182bw,checkPuzzleCompleteness as a182bx,validateConstraints as a182by,generateConfirmationText as a182bz,resolveBuiltinPermission as a182bA,requiresGuardConfig as a182bB,requiresPassport as a182bC,getRelevantDimensions as a182bD,getFieldMutability as a182bE,isAdminMutableField as a182bF,getFieldPermissionIndex as a182bG}from'./reward-puzzle.js';import{REWARD_RISK_VERSION,assessRewardRisks,getAllRewardRiskRules}from'./reward-risk.js';import{PASSPORT_LEDGER_VERSION,PASSPORT_ERROR_CODES,PASSPORT_SCENARIOS,MAX_GUARD_COUNT_PASSPORT,MAX_SUBMISSION_SIZE_PASSPORT,getAllScenarios as a182bH,getScenariosCount as a182bI,findScenarioById as a182bJ,getScenariosByConsumer as a182bK,getScenariosUsingRelies as a182bL,inferScenarioFromIntent as a182bM,impackRoleFromBoolean,impackRoleToBoolean,reliesLogicFromBoolean,reliesLogicToBoolean,getErrorName as a182bN,getErrorDescription as a182bO}from'./passport-ledger.js';import{PASSPORT_TEMPLATES,PASSPORT_TEMPLATES_VERSION,getAllTemplates as a182bP,getTemplateById as a182bQ,getTemplatesByScenario as a182bR,getTemplatesByIndustry as a182bS,suggestTemplateForScenario as a182bT,listTemplates as a182bU,fillTemplate as a182bV}from'./passport-templates.js';import{PROOF_RISK_RULES,checkProofRisks}from'./proof-risk.js';import{REPOSITORY_RISK_RULES,checkRepositoryRisks,parseIdFromForRiskCheck}from'./repository-risk.js';import{DEMAND_RISK_RULES,checkDemandRisks}from'./demand-risk.js';import{CONTACT_RISK_RULES,CONTACT_RISK_VERSION,checkContactRisks}from'./contact-risk.js';import{RESOURCE_RISK_RULES,RESOURCE_RISK_VERSION,checkResourceRisks}from'./resource-risk.js';import{PAYMENT_RISK_RULES,PAYMENT_RISK_VERSION,checkPaymentRisks}from'./payment-risk.js';import{ARB_RISK_RULES,ARB_RISK_VERSION,checkArbRisks}from'./arb-risk.js';import{PERSONAL_RISK_RULES,PERSONAL_RISK_VERSION,checkPersonalRisks}from'./personal-risk.js';import{UTIL_RISK_RULES,UTIL_RISK_VERSION,checkUtilRisks}from'./util-risk.js';import{REGISTRAR_RISK_RULES,REGISTRAR_RISK_VERSION,checkRegistrarRisks}from'./registrar-risk.js';import{BRIDGE_RISK_RULES,BRIDGE_RISK_VERSION,checkBridgeRisks}from'./bridge-risk.js';import{TOOLS_REFERENCE,getToolReference,searchToolReference,getToolSequence}from'./tools-reference.js';import{SCENARIO_MODES,SCENARIO_MODES_VERSION,MODE_COMPOSITIONS,matchScenarioMode,inferScenarioTraits,getScenarioMode,listScenarioModes,getShippedModes,getModeCompositions}from'./scenario-modes.js';import{BUILTIN_TEMPLATES,BUILTIN_TEMPLATES_VERSION,getBuiltinTemplate,listBuiltinTemplates,TEMPLATE_KEYWORDS}from'./builtin-templates.js';import{resolveTemplatesDir,seedBuiltinTemplates,reloadTemplates,listTemplates,getTemplate,getTemplatesByIndustry as a182bW,parseTemplateFile,renderTemplateFile,loadAndValidate,INDUSTRY_VALUES,TemplateFrontmatterSchema}from'./template-loader.js';import{scanTemplate}from'./template-scanner.js';import{GUARD_DESIGN_PATTERNS,GUARD_DESIGN_PATTERNS_VERSION,VERIFIER_LEVEL_GUIDANCE,getGuardDesignPattern,searchGuardDesignPatterns,getPatternsByHost,getPatternsByIndustry,getPatternsByDataSourceClass,getVerifierLevelGuidance,suggestPatternForRequirement}from'./guard-design-patterns.js';export{CONFIRMATION_RULES,SAFETY_RULES_VERSION,OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_TYPE_CLASSIFICATION,OPERATION_CLASS_META,classifyTool,NAMING_CONVENTIONS,checkObjectReuseRules,checkImmutabilityRules};export{TOOL_CONSTRAINTS,TOOL_CONSTRAINTS_VERSION,validateOperation,hasBlockingViolations,getWarningViolations};export{REWARD_TEMPLATES,REWARD_TEMPLATES_VERSION,getRewardTemplate,listRewardTemplates,suggestRewardTemplate};export{AUDIT_RULES,AUDIT_RULES_VERSION,auditService,hasBlockingErrors,getErrors,getWarnings,summarizeFindings};export{suggestPricing,MUTABLE_FIELDS,DYNAMIC_PRICING_VERSION};export{buildReviewRepositorySetup,computeReviewStats,isVerifiedReview,filterVerifiedReviews,detectReviewManipulation,REPUTATION_RULES_VERSION};export{INDUSTRY_FLYWHEELS,getFlywheelForIndustry,listIndustries,suggestAcquisitionActions,generateTrustDescription,buildAcquisitionDashboard,ACQUISITION_FLYWHEEL_VERSION};export{STRATEGY_MANUAL_FILENAME,STRATEGY_MANUAL_VERSION,renderStrategyManual,parseManualSentinel,classifyManualFile,getBuiltinStrategyManual,listBuiltinStrategyManualIndustries}from'./strategy-manuals.js';export{INDUSTRY_STRATEGIES,getIndustryStrategy,listIndustryStrategies,registerIndustryStrategy,unregisterIndustryStrategy,recommendStrategy,stageFromOrderCount,validateStrategyLevers}from'./industry-strategy.js';export{INDUSTRY_REGISTRY_VERSION,getIndustryProfile,listIndustries as listRegistryIndustries,registerIndustry,getIndustryTraits,resolveIndustryName,getRegistrySize,listBuiltinIndustryNames};export{DEFAULT_TRAITS,inferTraitsFromDescription,synthesizeProfile,findSimilarIndustries,composeIndustries};export{INDUSTRY_EVOLUTION_THRESHOLDS,aggregateIndustryMetrics,evaluateIndustryHealth,suggestIndustryUpdate,applyIndustryUpdate,runIndustryHealthPipeline};export{FLYWHEEL_LOOP_VERSION,FLYWHEEL_LOOP_MIN_SIGNALS,recordIndustrySignal,updateIndustryCognition,injectEvolutionContext};export{BUILTIN_INTENT_SPECS,registerIntentProfile,getIntentProfile,listIntents,evaluateIndustryHealthByIntent,suggestIndustryUpdateByIntent,evaluateIndustryHealthMultiIntent,getRoleAdvice,filterSuggestionsByRole};export{GUARD_SCENES,findScene,inferSceneFromAction,getImmutableScenes,getNumericIdentifierScenes};export{SEMANTIC_TO_SCHEMA_RULES,SCHEMA_TO_SEMANTIC_RULES,GUARD_CONSTRAINT_RULES,matchSemanticPattern,explainNode,explainWitness,getConstraintsByCategory};export{checkPuzzleCompleteness,generateConfirmationText,initPuzzleFromIntent,inferBindingFromAction,emptyDataSources,getWitnessInfo,WITNESS_NAME_MAP};export{runGuardRulePack,assembleGuardAssessment,evaluateGuardDraft,getRiskRulesCount,GUARD_TEMPLATES,GUARD_TEMPLATES_VERSION,GUARD_TEMPLATES_COUNT,getTemplatesByScene,getTemplateById,getTemplatesByIndustry,getTemplatesByPattern,listGuardTemplates,suggestTemplateForScene,getTemplateParameters,validateTemplateParams,GUARD_BINDING_REGISTRY,GUARD_BINDINGS_VERSION,OWNER_RECEIVE_COGNITION,getGuardBindingsByObject,getGuardBinding,summarizeGuardBinding,SCENARIO_BRIDGE_REGISTRY,SCENARIO_CHAINS,SCENARIO_TOPOLOGY_VERSION,getBridgeById,getBridgeByCode,getBridgesByObject,getBridgesForEdge,detectBridgesForEdges,getChainById,summarizeBridge,detectBridgesForObjects,lintGuard,autoFixGuard,isGuardReady,getGuardErrors,formatLintResult};export{MACHINE_SCENES,MACHINE_LEDGER_VERSION,MACHINE_SCENES_COUNT,a182a as findMachineScene,a182b as getMachineScenesByIndustry,getScenesByPattern,inferSceneFromFlow};export{MACHINE_TEMPLATES,MACHINE_TEMPLATES_VERSION,MACHINE_TEMPLATES_COUNT,a182c as getAllMachineTemplates,a182d as getMachineTemplateById,a182e as getMachineTemplatesByScene,a182f as getMachineTemplatesByIndustry,suggestTemplateForIntent,walkDecisionTree,a182g as fillMachineTemplate,a182h as forkMachineTemplate,verifyTemplateSceneReferences,getReferencedGuardTemplateIds,getReferencedRiskIds};export{SEMANTIC_TO_MACHINE_RULES,MACHINE_CONSTRAINT_RULES,MACHINE_TRANSLATION_VERSION,MACHINE_PATTERNS_COUNT,MACHINE_CONSTRAINTS_COUNT,a182i as matchMachinePattern,identifyExecutionMode,identifyTopology,explainForwardPermission,a182j as getMachineConstraintsByCategory,getConstraintById,a182k as getOnChainMachineConstraints,a182l as getOffChainMachineConstraints};export{MACHINE_RISK_RULES,MACHINE_RISK_VERSION,assessMachineRisks};export{analyzeTopology,identifyTopologyPattern,formatTopologySummary,MACHINE_TOPOLOGY_VERSION,MAX_NODE_COUNT,MAX_NODE_PAIR_COUNT,MAX_FORWARD_COUNT};export{a182m as initMachinePuzzleFromIntent,initPuzzleFromTemplate,a182n as checkMachinePuzzleCompleteness,a182o as recommendMachineNextStep,derivePuzzleFromMachineJson,a182p as generateMachineConfirmationText,MACHINE_PUZZLE_VERSION};export{SERVICE_SCENES,SERVICE_LEDGER_VERSION,SERVICE_PERMISSIONS,SERVICE_ORDER_FLOW_STAGES,SERVICE_CROSS_OBJECT_BINDINGS,a182q as getServiceScenesByCategory,a182r as findServiceSceneById,getServicePermissionByIndex,isServicePermission,getPermissionsByMutability,getImmutablePostPublishPermissions,getLockedByDurationPermissions,a182s as inferServiceSceneFromIntent,getAllServiceScenes,getServiceScenesCount,getServicePermissionsCount,getOrderFlowStage,a182t as getServiceCrossObjectBindings};export{a182u as initServicePuzzleFromIntent,a182v as checkServicePuzzleCompleteness,a182w as validateServiceConstraints,a182x as generateServicePuzzleConfirmationText,initOrderFlowPuzzle,checkOrderFlowCompleteness};export{SERVICE_RISK_VERSION,assessServiceRisks,getAllServiceRiskRules};export{SERVICE_TEMPLATES,SERVICE_TEMPLATES_VERSION,getServiceTemplateById,getServiceTemplatesByScene,getServiceTemplatesByIndustry,suggestServiceTemplateForScene,listServiceTemplates,fillServiceTemplate,getAllServiceTemplates};export{ALLOCATION_SCENES,ALLOCATION_LEDGER_VERSION,MAX_ALLOCATOR_COUNT,ALLOCATION_MAX_SHARING_COUNT,ALLOCATION_MODE_AMOUNT,ALLOCATION_MODE_RATE,ALLOCATION_MODE_SURPLUS,RATE_TOTAL_FULL,ALLOCATION_ERROR_CODES,a182y as getAllocationScenesByTriggerSource,a182z as getAllocationScenesByMode,a182A as getAllocationScenesByStrategy,a182B as findAllocationSceneById,a182C as inferAllocationSceneFromIntent,a182D as getAllAllocationScenes,a182E as getAllocationScenesCount,allocationModeToNumber,allocationModeFromNumber,getRecipientType,isSignerRecipient,isEntityRecipient,isGuardIdentifierRecipient,a182F as getAllocationErrorName,a182G as getAllocationErrorDescription};export{a182H as initAllocationPuzzleFromIntent,a182I as checkAllocationPuzzleCompleteness,a182J as validateAllocationConstraints,a182K as generateAllocationPuzzleConfirmationText,buildDefaultAllocFlow,buildDefaultRecipientRules,buildDefaultLogicPuzzle,ALLOCATION_PUZZLE_VERSION};export{ALLOCATION_RISK_VERSION,assessAllocationRisks,a182L as getAllAllocationRiskRules};export{ALLOCATION_TEMPLATES,ALLOCATION_TEMPLATES_VERSION,a182M as getAllAllocationTemplates,a182N as getAllocationTemplateById,a182O as getAllocationTemplatesByScene,a182P as getAllocationTemplatesByIndustry,a182Q as suggestAllocationTemplateForScene,a182R as listAllocationTemplates,a182S as fillAllocationTemplate};export{RECIPIENT_CONSTRAINT_VERSION,classifyRecipient,analyzeRecipientConstraints,isUnboundSignerTheft,canonicalDoctrine,recipientDesignGuidance,derivePayoffFromSharing,OBJECT_DRIVEABILITY,driveabilityOf,RECIPIENT_DESIGN_OPTIONS};export{paymentRelations,scanRecentPaymentEvents,resolveBeneficialOwners,extractionPlanForHolder,pendingWrappersAt,trackAccountPayments};export{TREASURY_LEDGER_VERSION,TREASURY_SCENES,a182T as TREASURY_BUILTIN_PERMISSIONS,a182U as getTreasuryScenesByHostObject,a182V as findTreasurySceneById,a182W as findTreasurySceneByPermissionIndex,a182X as getTreasuryBuiltinPermissionByIndex,isBuiltinTreasuryPermission,a182Y as getActiveTreasuryBuiltinPermissions,a182Z as getReservedTreasuryBuiltinPermissions,a182a0 as inferTreasurySceneFromIntent,getTreasuryScenesCount,a182a1 as getTreasuryGovernedOperationsForPermissionIndex};export{a182a2 as initTreasuryPuzzleFromIntent,a182a3 as checkTreasuryPuzzleCompleteness,a182a4 as validateTreasuryConstraints,a182a5 as generateTreasuryPuzzleConfirmationText,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,a182a6 as TREASURY_MAX_DESCRIPTION_LENGTH};export{TREASURY_TEMPLATES,TREASURY_TEMPLATES_VERSION,getAllTreasuryTemplates,a182a7 as getTreasuryTemplateById,a182a8 as getTreasuryTemplatesByScene,a182a9 as getTreasuryTemplatesByIndustry,a182aa as suggestTreasuryTemplateForScene,a182ab as listTreasuryTemplates,a182ac as fillTreasuryTemplate};export{TREASURY_RISK_VERSION,assessTreasuryRisks,getAllTreasuryRiskRules};export{ORDER_LEDGER_VERSION,ORDER_SCENES,ORDER_FIELDS,ORDER_STATES,ORDER_STATE_TRANSITIONS,ORDER_LIFECYCLE_EVENTS,ORDER_PERMISSION_MATRIX,ORDER_AUDIT_FORMULAS,a182ad as getOrderScenesByOperationField,a182ae as findOrderSceneById,a182af as findOrderSceneByMoveEntry,a182ag as getOrderScenesByPermissionLayer,a182ah as getOrderScenesByReversibility,a182ai as getOrderFieldDef,a182aj as getOrderMutableFields,a182ak as getOrderImmutableFields,a182al as getOrderFrozenAfterProgressFields,a182am as getOrderOneTimeSetFields,a182an as inferOrderSceneFromIntent,a182ao as getOrderEmittedEvents,a182ap as getOrderInferredEvents,getOrderScenesCount,a182aq as sdkToMoveOrderField,a182ar as moveToSdkOrderField};export{a182as as initOrderPuzzleFromIntent,a182at as checkOrderPuzzleCompleteness,a182au as validateOrderConstraints,a182av as generateOrderPuzzleConfirmationText,a182aw as verifyOrderSnapshotMechanism,a182ax as inferOrderLifecyclePhase,a182ay as matchOrderSceneFromPuzzle,a182az as listAllOrderScenes,a182aA as lookupOrderScene};export{ORDER_TEMPLATES,ORDER_TEMPLATES_VERSION,ORDER_TEMPLATES_COUNT,getAllOrderTemplates,a182aB as getOrderTemplateById,a182aC as getOrderTemplatesByScene,a182aD as getOrderTemplatesByIndustry,a182aE as getOrderTemplatesByPermissionLayer,a182aF as getIrreversibleOrderTemplates,a182aG as suggestOrderTemplateForScene,listOrderTemplates,a182aH as fillOrderTemplate,a182aI as suggestOrderTemplateFromIntent,a182aJ as getOrderTemplateParameters,a182aK as validateOrderTemplateParams};export{ORDER_RISK_VERSION,assessOrderRisks,getAllOrderRiskRules};export{PROGRESS_LEDGER_VERSION,PROGRESS_SCENES,a182aL as PROGRESS_BUILTIN_PERMISSIONS,PROGRESS_NEW,PROGRESS_NAMED_OPERATOR,PROGRESS_TASK,PROGRESS_CONTEXT_REPOSITORY,PROGRESS_UNHOLD,PROGRESS_OWNER_RECEIVE,PROGRESS_CROSS_OBJECT_REFS,a182aM as getProgressScenesByPhase,a182aN as findProgressSceneById,a182aO as getProgressScenesByIndustry,a182aP as getProgressBuiltinPermissionByIndex,isProgressBuiltinPermission,a182aQ as inferProgressSceneFromIntent,a182aR as getAllProgressBuiltinPermissions,getProgressScenesCount,validateNamedOperatorAddressList,validateNamedOperatorCount,validateContextRepositoryCount};export{a182aS as initProgressPuzzleFromIntent,a182aT as checkProgressPuzzleCompleteness,a182aU as validateProgressConstraints,a182aV as generateProgressPuzzleConfirmationText,a182aW as resolveProgressBuiltinPermission,isOrderHolderForward,a182aX as getProgressRelevantDimensions};export{PROGRESS_TEMPLATES,PROGRESS_TEMPLATES_VERSION,getAllProgressTemplates,getProgressTemplateById,getProgressTemplatesByScene,getProgressTemplatesByIndustry,suggestProgressTemplateForScene,listProgressTemplates,fillProgressTemplate};export{PROGRESS_RISK_VERSION,assessProgressRisks,getAllProgressRiskRules};export{ARBITRATION_LEDGER_VERSION,ARBITRATION_SCENES,a182aY as ARBITRATION_BUILTIN_PERMISSIONS,ARB_STATUS_CODE,ARB_TERMINAL_STATUSES,ARB_STATUS_ALIASES,DUAL_GUARD_MATRIX,a182aZ as getArbitrationScenesByCategory,a182b0 as findArbitrationSceneById,a182b1 as findArbitrationSceneByPermissionIndex,a182b2 as getArbitrationPermissionByIndex,a182b3 as getArbitrationPermissionByName,a182b4 as isArbitrationReservedIndex,a182b5 as isArbitrationUsedPermissionIndex,a182b6 as getArbitrationActivePermissionCount,a182b7 as inferArbitrationSceneFromIntent,getDualGuardMatrixEntry,isValidArbStatusTransition,isTerminalArbStatus,a182b8 as getArbitrationScenesProducingStatus,a182b9 as getArbitrationScenesRequiringStatus,getArbitrationScenesCount,getAllArbitrationPermissions,getActiveArbitrationPermissions};export{a182ba as initArbitrationPuzzleFromIntent,a182bb as checkArbitrationPuzzleCompleteness,a182bc as validateArbitrationConstraints,a182bd as generateArbitrationPuzzleConfirmationText};export{ARBITRATION_TEMPLATES,ARBITRATION_TEMPLATES_VERSION,a182be as getAllArbitrationTemplates,a182bf as getArbitrationTemplateById,a182bg as getArbitrationTemplatesByScene,a182bh as getArbitrationTemplatesByIndustry,a182bi as suggestArbitrationTemplateForScene,a182bj as listArbitrationTemplates,a182bk as fillArbitrationTemplate};export{ARBITRATION_RISK_VERSION,assessArbitrationRisks,a182bl as getAllArbitrationRiskRules};export{REWARD_LEDGER_VERSION,REWARD_SCENES,REWARD_PERMISSIONS,REWARD_FIELDS,REWARD_GUARD_CONSTRUCTORS,REWARD_ERROR_CODES,REWARD_CROSS_OBJECT_REFS,MAX_GUARD_COUNT_REWARD,MAX_RECORD_COUNT_REWARD,a182bm as getRewardScenesByPhase,a182bn as findRewardSceneById,a182bo as getRewardScenesByIndustry,a182bp as getRewardBuiltinPermissionByIndex,isRewardBuiltinPermission,a182bq as getAllRewardBuiltinPermissions,getRewardScenesCount,a182br as getRewardGuardConstructorSpec,a182bs as resolveRewardGuardConstructor,getRewardErrorByCode,getRewardErrorByName,a182bt as validateRewardGuardCount,a182bu as validateRewardRecordCount,a182bv as inferRewardSceneFromIntent};export{REWARD_FIELD_MUTABILITY,a182bw as initRewardPuzzleFromIntent,a182bx as checkRewardPuzzleCompleteness,a182by as validateRewardConstraints,a182bz as generateRewardPuzzleConfirmationText,a182bA as resolveRewardBuiltinPermission,a182bB as requiresRewardGuardConfig,a182bC as requiresRewardPassport,a182bD as getRewardRelevantDimensions,a182bE as getRewardFieldMutability,a182bF as isRewardAdminMutableField,a182bG as getRewardFieldPermissionIndex};export{REWARD_RISK_VERSION,assessRewardRisks,getAllRewardRiskRules};export{PASSPORT_LEDGER_VERSION,PASSPORT_ERROR_CODES,PASSPORT_SCENARIOS,MAX_GUARD_COUNT_PASSPORT,MAX_SUBMISSION_SIZE_PASSPORT,a182bH as getAllPassportScenarios,a182bI as getPassportScenesCount,a182bJ as findPassportScenarioById,a182bK as getPassportScenariosByConsumer,a182bL as getPassportScenariosUsingRelies,a182bM as inferPassportScenarioFromIntent,impackRoleFromBoolean,impackRoleToBoolean,reliesLogicFromBoolean,reliesLogicToBoolean,a182bN as getPassportErrorName,a182bO as getPassportErrorDescription};export{PASSPORT_TEMPLATES,PASSPORT_TEMPLATES_VERSION,a182bP as getAllPassportTemplates,a182bQ as getPassportTemplateById,a182bR as getPassportTemplatesByScenario,a182bS as getPassportTemplatesByIndustry,a182bT as suggestPassportTemplateForScenario,a182bU as listPassportTemplates,a182bV as fillPassportTemplate};export{PROOF_RISK_RULES,checkProofRisks};export{REPOSITORY_RISK_RULES,checkRepositoryRisks,parseIdFromForRiskCheck};export{assessEvidenceReview,reviewEvidenceList}from'./evidence-review.js';export{DEMAND_RISK_RULES,checkDemandRisks};export{CONTACT_RISK_RULES,CONTACT_RISK_VERSION,checkContactRisks};export{RESOURCE_RISK_RULES,RESOURCE_RISK_VERSION,checkResourceRisks};export{PAYMENT_RISK_RULES,PAYMENT_RISK_VERSION,checkPaymentRisks};export{ARB_RISK_RULES,ARB_RISK_VERSION,checkArbRisks};export{PERSONAL_RISK_RULES,PERSONAL_RISK_VERSION,checkPersonalRisks};export{UTIL_RISK_RULES,UTIL_RISK_VERSION,checkUtilRisks};export{REGISTRAR_RISK_RULES,REGISTRAR_RISK_VERSION,checkRegistrarRisks};export{BRIDGE_RISK_RULES,BRIDGE_RISK_VERSION,checkBridgeRisks};export{TOOLS_REFERENCE,getToolReference,searchToolReference,getToolSequence};export{SCENARIO_MODES,SCENARIO_MODES_VERSION,MODE_COMPOSITIONS,matchScenarioMode,inferScenarioTraits,getScenarioMode,listScenarioModes,getShippedModes,getModeCompositions};export{BUILTIN_TEMPLATES,BUILTIN_TEMPLATES_VERSION,getBuiltinTemplate,listBuiltinTemplates,TEMPLATE_KEYWORDS};export{resolveTemplatesDir,seedBuiltinTemplates,reloadTemplates,listTemplates,getTemplate,a182bW as getIndustryTemplates,parseTemplateFile,renderTemplateFile,loadAndValidate,INDUSTRY_VALUES,TemplateFrontmatterSchema};export{scanTemplate};export{GUARD_DESIGN_PATTERNS,GUARD_DESIGN_PATTERNS_VERSION,VERIFIER_LEVEL_GUIDANCE,getGuardDesignPattern,searchGuardDesignPatterns,getPatternsByHost,getPatternsByIndustry,getPatternsByDataSourceClass,getVerifierLevelGuidance,suggestPatternForRequirement};export function getKnowledgeBase(){return{'version':{'safety':SAFETY_RULES_VERSION,'tool_constraints':TOOL_CONSTRAINTS_VERSION,'reward_templates':REWARD_TEMPLATES_VERSION,'audit_rules':AUDIT_RULES_VERSION,'dynamic_pricing':DYNAMIC_PRICING_VERSION,'reputation_rules':REPUTATION_RULES_VERSION,'acquisition_flywheel':ACQUISITION_FLYWHEEL_VERSION,'industry_registry':INDUSTRY_REGISTRY_VERSION,'flywheel_loop':FLYWHEEL_LOOP_VERSION,'machine_ledger':MACHINE_LEDGER_VERSION,'machine_templates':MACHINE_TEMPLATES_VERSION,'machine_translation':MACHINE_TRANSLATION_VERSION,'machine_risk':MACHINE_RISK_VERSION,'machine_topology':MACHINE_TOPOLOGY_VERSION,'machine_puzzle':MACHINE_PUZZLE_VERSION,'service_ledger':SERVICE_LEDGER_VERSION,'service_risk':SERVICE_RISK_VERSION,'service_templates':SERVICE_TEMPLATES_VERSION,'allocation_ledger':ALLOCATION_LEDGER_VERSION,'allocation_puzzle':ALLOCATION_PUZZLE_VERSION,'allocation_risk':ALLOCATION_RISK_VERSION,'allocation_templates':ALLOCATION_TEMPLATES_VERSION,'treasury_ledger':TREASURY_LEDGER_VERSION,'treasury_templates':TREASURY_TEMPLATES_VERSION,'treasury_risk':TREASURY_RISK_VERSION,'order_ledger':ORDER_LEDGER_VERSION,'order_templates':ORDER_TEMPLATES_VERSION,'order_risk':ORDER_RISK_VERSION,'progress_ledger':PROGRESS_LEDGER_VERSION,'progress_templates':PROGRESS_TEMPLATES_VERSION,'progress_risk':PROGRESS_RISK_VERSION,'arbitration_ledger':ARBITRATION_LEDGER_VERSION,'arbitration_templates':ARBITRATION_TEMPLATES_VERSION,'arbitration_risk':ARBITRATION_RISK_VERSION,'reward_ledger':REWARD_LEDGER_VERSION,'reward_risk':REWARD_RISK_VERSION,'passport_ledger':PASSPORT_LEDGER_VERSION,'passport_templates':PASSPORT_TEMPLATES_VERSION,'contact_risk':CONTACT_RISK_VERSION,'resource_risk':RESOURCE_RISK_VERSION,'payment_risk':PAYMENT_RISK_VERSION,'arb_risk':ARB_RISK_VERSION,'personal_risk':PERSONAL_RISK_VERSION,'util_risk':UTIL_RISK_VERSION,'registrar_risk':REGISTRAR_RISK_VERSION,'bridge_risk':BRIDGE_RISK_VERSION,'scenario_modes':SCENARIO_MODES_VERSION,'guard_design_patterns':GUARD_DESIGN_PATTERNS_VERSION,'builtin_templates':BUILTIN_TEMPLATES_VERSION},'confirmation_rules':CONFIRMATION_RULES['length'],'confirmation_rule_ids':CONFIRMATION_RULES['map'](a=>a['id']),'tool_constraints_count':TOOL_CONSTRAINTS['length'],'reward_templates_count':REWARD_TEMPLATES['length'],'audit_rules_count':AUDIT_RULES['length'],'mutable_fields_count':MUTABLE_FIELDS['length'],'industry_flywheels_count':INDUSTRY_FLYWHEELS['length'],'industry_registry_count':getRegistrySize(),'intent_count':listIntents()['length'],'guard_scenes_count':GUARD_SCENES['length'],'guard_semantic_rules_count':SEMANTIC_TO_SCHEMA_RULES['length'],'guard_schema_rules_count':SCHEMA_TO_SEMANTIC_RULES['length'],'guard_constraint_rules_count':GUARD_CONSTRAINT_RULES['length'],'guard_risk_rules_count':getRiskRulesCount(),'guard_templates_count':GUARD_TEMPLATES_COUNT,'guard_lint_enabled':!![],'machine_scenes_count':MACHINE_SCENES_COUNT,'machine_templates_count':MACHINE_TEMPLATES['length'],'machine_patterns_count':SEMANTIC_TO_MACHINE_RULES['length'],'machine_constraint_rules_count':MACHINE_CONSTRAINT_RULES['length'],'machine_risk_rules_count':MACHINE_RISK_RULES['length'],'machine_on_chain_limits':{'max_node_count':MAX_NODE_COUNT,'max_node_pair_count':MAX_NODE_PAIR_COUNT,'max_forward_count':MAX_FORWARD_COUNT},'service_scenes_count':SERVICE_SCENES['length'],'service_permissions_count':SERVICE_PERMISSIONS['length'],'service_order_flow_stages_count':SERVICE_ORDER_FLOW_STAGES['length'],'service_cross_object_bindings_count':SERVICE_CROSS_OBJECT_BINDINGS['length'],'service_risk_rules_count':getAllServiceRiskRules()['length'],'service_templates_count':SERVICE_TEMPLATES['length'],'service_context_enabled':!![],'allocation_scenes_count':ALLOCATION_SCENES['length'],'allocation_risk_rules_count':a182L()['length'],'allocation_templates_count':ALLOCATION_TEMPLATES['length'],'allocation_context_enabled':!![],'treasury_scenes_count':TREASURY_SCENES['length'],'treasury_builtin_permissions_count':a182T['length'],'treasury_risk_rules_count':getAllTreasuryRiskRules()['length'],'treasury_templates_count':TREASURY_TEMPLATES['length'],'treasury_context_enabled':!![],'order_scenes_count':ORDER_SCENES['length'],'order_fields_count':ORDER_FIELDS['length'],'order_states_count':ORDER_STATES['length'],'order_lifecycle_events_count':ORDER_LIFECYCLE_EVENTS['length'],'order_risk_rules_count':getAllOrderRiskRules()['length'],'order_templates_count':ORDER_TEMPLATES['length'],'order_context_enabled':!![],'progress_scenes_count':PROGRESS_SCENES['length'],'progress_builtin_permissions_count':a182aL['length'],'progress_risk_rules_count':getAllProgressRiskRules()['length'],'progress_templates_count':PROGRESS_TEMPLATES['length'],'progress_context_enabled':!![],'arbitration_scenes_count':ARBITRATION_SCENES['length'],'arbitration_builtin_permissions_count':a182aY['length'],'arbitration_risk_rules_count':a182bl()['length'],'arbitration_templates_count':ARBITRATION_TEMPLATES['length'],'arbitration_context_enabled':!![],'reward_scenes_count':REWARD_SCENES['length'],'reward_builtin_permissions_count':REWARD_PERMISSIONS['length'],'reward_fields_count':REWARD_FIELDS['length'],'reward_guard_constructors_count':REWARD_GUARD_CONSTRUCTORS['length'],'reward_error_codes_count':REWARD_ERROR_CODES['length'],'reward_risk_rules_count':getAllRewardRiskRules()['length'],'reward_context_enabled':!![],'passport_scenarios_count':PASSPORT_SCENARIOS['length'],'passport_max_guard_count':MAX_GUARD_COUNT_PASSPORT,'passport_max_submission_size':MAX_SUBMISSION_SIZE_PASSPORT,'passport_templates_count':PASSPORT_TEMPLATES['length'],'passport_context_enabled':!![],'proof_risk_rules_count':PROOF_RISK_RULES['length'],'repository_risk_rules_count':REPOSITORY_RISK_RULES['length'],'demand_risk_rules_count':DEMAND_RISK_RULES['length'],'contact_risk_rules_count':CONTACT_RISK_RULES['length'],'resource_risk_rules_count':RESOURCE_RISK_RULES['length'],'payment_risk_rules_count':PAYMENT_RISK_RULES['length'],'arb_risk_rules_count':ARB_RISK_RULES['length'],'personal_risk_rules_count':PERSONAL_RISK_RULES['length'],'util_risk_rules_count':UTIL_RISK_RULES['length'],'registrar_risk_rules_count':REGISTRAR_RISK_RULES['length'],'bridge_risk_rules_count':BRIDGE_RISK_RULES['length'],'tools_reference_count':TOOLS_REFERENCE['length'],'scenario_modes_count':SCENARIO_MODES['length'],'scenario_mode_compositions_count':MODE_COMPOSITIONS['length'],'builtin_templates_count':BUILTIN_TEMPLATES['length'],'guard_design_patterns_count':GUARD_DESIGN_PATTERNS['length'],'verifier_level_guidance_count':VERIFIER_LEVEL_GUIDANCE['length']};}export{buildWorkflowGuidance,buildWorkflowReceipt,enrichWorkflowGuidance,mergeGuidanceIntoOutput,resolvePermissionRole,resolveLocalNamesFor,listLocalAccounts,accountCanExecuteForward,enumerateActionableForwards,forwardOperatorKind};export{buildWorkspaceLists}from'./workspace-lists.js';export{resolveSupplyChainGraph}from'./supply-chain.js';export{enumerateObjectOperations,operationCategoryOf,operationComplexityOf,isPermissionIndexType}from'./operation-dictionary.js';export{enumerateServices,enumerateDemands,enumerateArbs}from'./jsonrpc-enum.js';export{FIELD_MUTABILITY_RULES,LOCK_CONSTRAINTS,IRREVERSIBLE_OPERATIONS,STATE_MACHINE_TERMINALS,NUMERIC_LIMIT_CONSTRAINTS,EXTERNAL_ACCESS_MECHANISMS,fieldMutabilityOf,isActionForbidden,lockConstraintOf,numericLimitOf,externalAccessOf}from'./contract-invariants.js';export{GUARD_FIELD_COGNITION_VERSION,GUARD_FIELD_SITES,VALUE_ORIGIN_SEMANTICS,GUARD_PASSPORT_DOCTRINE,guardSitesFor,guardCognitionDoctrine,REPOSITORY_WRITE_ROUTE_MATRIX,repositoryRouteSlotConflicts}from'./guard-field-cognition.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getFlywheelForIndustry,listIndustries as
|
|
1
|
+
import{getFlywheelForIndustry,listIndustries as a185a,_setRegistryLookup as a185b}from'./acquisition-flywheel.js';import{getIndustryRiskChecks,getIndustryNeeds,getIndustryTemplate,SUPPORTED_INDUSTRIES}from'../customer/index.js';import{_setRegistryLookup as a185c}from'../customer/industry-risks.js';import{_setRegistryLookup as a185d}from'../customer/user-preferences.js';const BUILTIN_TRAITS={'freelance':{'has_logistics':![],'communication_heavy':!![],'pure_digital':!![],'long_cycle':![],'deposit_required':![],'multi_tier_allocation':![],'regulatory_intensity':'low','trust_sensitivity':'high','consumption_frequency':'occasional','avg_ticket_size':'medium'},'rental':{'has_logistics':!![],'communication_heavy':![],'pure_digital':![],'long_cycle':![],'deposit_required':!![],'multi_tier_allocation':![],'regulatory_intensity':'low','trust_sensitivity':'high','consumption_frequency':'occasional','avg_ticket_size':'medium'},'education':{'has_logistics':![],'communication_heavy':!![],'pure_digital':![],'long_cycle':!![],'deposit_required':![],'multi_tier_allocation':![],'regulatory_intensity':'medium','trust_sensitivity':'high','consumption_frequency':'one_time','avg_ticket_size':'large'},'travel':{'has_logistics':!![],'communication_heavy':!![],'pure_digital':![],'long_cycle':![],'deposit_required':![],'multi_tier_allocation':!![],'regulatory_intensity':'medium','trust_sensitivity':'high','consumption_frequency':'one_time','avg_ticket_size':'large'},'subscription':{'has_logistics':![],'communication_heavy':![],'pure_digital':!![],'long_cycle':![],'deposit_required':![],'multi_tier_allocation':![],'regulatory_intensity':'low','trust_sensitivity':'medium','consumption_frequency':'frequent','avg_ticket_size':'small'},'retail':{'has_logistics':!![],'communication_heavy':![],'pure_digital':![],'long_cycle':![],'deposit_required':![],'multi_tier_allocation':![],'regulatory_intensity':'low','trust_sensitivity':'medium','consumption_frequency':'frequent','avg_ticket_size':'small'}},BUILTIN_DISPLAY_NAMES={'freelance':'Freelance','rental':'Rental','education':'Education','travel':'Travel','subscription':'Subscription','retail':'Retail','general':'General','custom':'Custom'},INDUSTRY_ALIASES={'outsourcing':'freelance','design':'freelance','development':'freelance','consulting':'freelance','rent':'rental','lease':'rental','course':'education','training':'education','tourism':'travel','itinerary':'travel','membership':'subscription','ecommerce':'retail','goods':'retail','freelancer':'freelance','gig':'freelance','edu':'education','trip':'travel','tour':'travel','subscribe':'subscription','shop':'retail','general_industry':'general'};export const INDUSTRY_REGISTRY_VERSION=0x1;const registry=new Map();function seedBuiltinProfile(a){const b=BUILTIN_TRAITS[a];if(!b)return undefined;const c=getFlywheelForIndustry(a);if(!c)return undefined;const d=getIndustryRiskChecks(a),e=getIndustryNeeds(a),f=getIndustryTemplate(a);return{'name':a,'display_name':BUILTIN_DISPLAY_NAMES[a]??a,'traits':b,'source':'builtin','version':'v1','flywheel':c,'risk_checks':d,'preference_template':f,'needs':e};}function seedBuiltinIndustries(){for(const a of SUPPORTED_INDUSTRIES){const b=seedBuiltinProfile(a);b&®istry['set'](a,b);}}seedBuiltinIndustries(),injectRegistryLookup();function injectRegistryLookup(){a185b(a=>{const b=registry['get'](a);return b?{'flywheel':b['flywheel']}:undefined;}),a185c(a=>{const b=registry['get'](a);return b?{'risk_checks':b['risk_checks'],'needs':b['needs']}:undefined;}),a185d(a=>{const b=registry['get'](a);return b?{'preference_template':b['preference_template']}:undefined;});}export function getIndustryProfile(a){const b=registry['get'](a);return b?JSON['parse'](JSON['stringify'](b)):undefined;}export function listIndustries(a){const b=Array['from'](registry['values']());if(a?.['source'])return b['filter'](c=>c['source']===a['source']);return b;}export function registerIndustry(a){if(!a['name']||!a['traits']||!a['flywheel'])return![];return registry['set'](a['name'],a),!![];}export function getIndustryTraits(a){return registry['get'](a)?.['traits'];}export function resolveIndustryName(a){if(!a||typeof a!=='string')return undefined;const b=a['trim']();if(!b)return undefined;const c=b['toLowerCase']();if(INDUSTRY_ALIASES[b])return INDUSTRY_ALIASES[b];if(INDUSTRY_ALIASES[c])return INDUSTRY_ALIASES[c];if(registry['has'](b))return b;if(registry['has'](c))return c;return undefined;}export function getRegistrySize(){return registry['size'];}export function _resetRegistryForTest(){registry['clear'](),a185b(null),a185c(null),a185d(null),seedBuiltinIndustries(),injectRegistryLookup();}export function listBuiltinIndustryNames(){return a185a();}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IndustryRule } from "../extensions/industry-layers.js";
|
|
2
|
+
import { type NodeAnalyzer, type NodeRuleOutcome } from "../graph/onchain/index.js";
|
|
3
|
+
export declare const INDUSTRY_RULE_NODE_ANALYZER_ID = "IND1";
|
|
4
|
+
export declare function flattenPuzzleRecord(puzzles: Record<string, unknown>): Record<string, unknown>;
|
|
5
|
+
export declare function industryRuleSeverity(rule: IndustryRule): NodeRuleOutcome["severity"];
|
|
6
|
+
export declare function industryRuleOutcomesForFacts(facts: Record<string, unknown>): NodeRuleOutcome[];
|
|
7
|
+
export declare const industryRuleNodeAnalyzer: NodeAnalyzer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{evaluateIndustryCondition,listAllIndustryRules}from'../extensions/industry-layers.js';import{adaptNodeAnalyzer}from'../graph/onchain/index.js';import{puzzlePayloadOf}from'./rule-outcome.js';export const INDUSTRY_RULE_NODE_ANALYZER_ID='IND1';export function flattenPuzzleRecord(a){const b={},c=(d,e)=>{d&&(b[d]=e);if(e!=null&&typeof e==='object'&&!Array['isArray'](e))for(const [f,g]of Object['entries'](e)){c(d?d+'.'+f:f,g);}};for(const d of Object['values'](a??{})){c('',d);}return b;}function proposalPuzzlesOf(a){const b={};for(const c of a['visibleNodes']){const d=a['graph']['nodes']['get'](c);if(!d?.['proposal'])continue;const e=puzzlePayloadOf(d);if(e)b[d['proposal']['sourceKey']]=e;}return b;}export function industryRuleSeverity(a){if(a['red_flag']===!![])return'critical';if(a['severity']==='hard')return'high';return'medium';}function fixSuggestionOf(a){const b=a['condition'],c='\x27'+b['field']+'\x27';switch(b['op']){case'truthy':return'Set\x20'+c+'\x20to\x20a\x20non-empty\x20value.';case'falsy':return'Clear\x20or\x20unset\x20'+c+'.';case'missing':return'Remove\x20'+c+'\x20(industry\x20rule\x20requires\x20it\x20absent).';case'present':return'Provide\x20'+c+'\x20(industry\x20rule\x20requires\x20it).';case'eq':return'Set\x20'+c+'\x20to\x20'+JSON['stringify'](b['value']??null)+'.';case'neq':return'Change\x20'+c+'\x20away\x20from\x20'+JSON['stringify'](b['value']??null)+'.';default:return'Satisfy\x20the\x20industry\x20rule:\x20'+a['description'];}}export function industryRuleOutcomesForFacts(a){const b={'facts':a,'entities':{}},c=[];for(const d of listAllIndustryRules()){for(const e of d['rules']){if(!e['condition'])continue;if(evaluateIndustryCondition(e['condition'],b))continue;const f='pack.'+d['category']+'.'+e['rule_id'];c['push']({'severity':industryRuleSeverity(e),'title':e['description']+'\x20('+f+')','detail':'Industry\x20rule\x20condition\x20not\x20satisfied:\x20'+e['condition']['field']+'\x20'+e['condition']['op']+((e['condition']['value']!==undefined?'\x20'+JSON['stringify'](e['condition']['value']):'')+'.'),'suggestion':fixSuggestionOf(e),'roles':['neutral','merchant'],'ruleId':f,'evidence':e['condition']['field']});}}return c;}export const industryRuleNodeAnalyzer=adaptNodeAnalyzer({'id':INDUSTRY_RULE_NODE_ANALYZER_ID,'kind':'risk','objectType':'*','inspect'(a,b){if(!a['proposal'])return[];if(a['id']!==b['graph']['seed'])return[];return industryRuleOutcomesForFacts(flattenPuzzleRecord(proposalPuzzlesOf(b)));}});
|