@wowok/agent-mcp 3.1.2 → 3.1.3
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/runtime.js +1 -1
- 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/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/architecture.spec.d.ts +1 -0
- package/dist/evaluation/architecture.spec.js +1 -0
- 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/guard-scan.d.ts +10 -0
- package/dist/evaluation/guard-scan.js +1 -0
- package/dist/evaluation/standards.d.ts +31 -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 +9 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/index.d.ts +1 -1
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-layers.d.ts +6 -5
- package/dist/extensions/industry-layers.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/graph/onchain/analyze.d.ts +13 -0
- 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 +10 -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/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/index.d.ts +8 -2
- package/dist/graph/onchain/index.js +1 -1
- package/dist/graph/onchain/interest.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/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/table-ledger.spec.d.ts +1 -0
- package/dist/graph/onchain/table-ledger.spec.js +1 -0
- package/dist/graph/onchain/types.d.ts +46 -6
- 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/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +0 -2
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/arb-risk.d.ts +0 -1
- package/dist/knowledge/arb-risk.js +1 -1
- package/dist/knowledge/arbitration-risk.d.ts +0 -2
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/baselines/evaluation-baselines.json +79 -0
- 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/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/bridge-risk.d.ts +0 -1
- package/dist/knowledge/bridge-risk.js +1 -1
- package/dist/knowledge/contact-risk.d.ts +0 -1
- 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 +0 -1
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/getting-started.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-lint.d.ts +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-risk.d.ts +4 -19
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/index.d.ts +41 -43
- 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/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-risk.d.ts +0 -6
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/order-risk.d.ts +1 -9
- package/dist/knowledge/order-risk.js +1 -1
- package/dist/knowledge/payment-risk.d.ts +0 -1
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/permission-risk.d.ts +0 -3
- package/dist/knowledge/permission-risk.js +1 -1
- package/dist/knowledge/personal-risk.d.ts +0 -1
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/progress-risk.d.ts +0 -2
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/proof-risk.d.ts +0 -1
- 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/registrar-risk.d.ts +0 -1
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/repository-risk.d.ts +0 -1
- package/dist/knowledge/repository-risk.js +1 -1
- package/dist/knowledge/resource-risk.d.ts +0 -1
- package/dist/knowledge/resource-risk.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -5
- 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-topology.js +1 -1
- package/dist/knowledge/service-risk-node.js +1 -1
- package/dist/knowledge/service-risk.d.ts +0 -3
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-risk.d.ts +2 -3
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/util-risk.d.ts +0 -1
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/monitor/MonitorLoop.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/model.d.ts +2 -1
- package/dist/persona/model.js +1 -1
- package/dist/persona/topology-focus.d.ts +2 -2
- package/dist/persona/topology-focus.js +1 -1
- package/dist/persona/types.d.ts +12 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/facet-money.d.ts +22 -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 +3 -0
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +27 -27
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/pipeline-actions.d.ts +2 -2
- package/dist/playbooks/service-build/pipeline-actions.js +1 -1
- package/dist/playbooks/service-build/risk-aggregator.d.ts +2 -1
- package/dist/playbooks/service-build/risk-aggregator.js +1 -1
- package/dist/playbooks/service-build/service-panorama.d.ts +4 -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/review/arb.d.ts +0 -2
- package/dist/review/arb.js +1 -1
- package/dist/review/order.d.ts +0 -1
- package/dist/review/order.js +1 -1
- 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/call/base.d.ts +3372 -668
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/receipt.d.ts +28 -0
- package/dist/schema/call/receipt.js +1 -0
- 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/treasury.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +289 -211
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +1 -1
- package/dist/schema/goal/planning.d.ts +2 -2
- package/dist/schema/index.d.ts +0 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/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/operations.d.ts +26 -10
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +24 -24
- package/dist/schema/query/bi.d.ts +613 -0
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +9 -9
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workspace/index.d.ts +2 -2
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +1 -1
- package/dist/schemas/bridge_operation.output.json +1 -1
- package/dist/schemas/evaluation_operation.output.json +691 -163
- package/dist/schemas/evaluation_operation.schema.json +0 -429
- package/dist/schemas/index.json +1 -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/messenger_operation.output.json +1 -1
- 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 +1 -1
- package/dist/schemas/onchain_operations.output.json +6357 -3724
- package/dist/schemas/onchain_operations.schema.json +2 -2
- package/dist/schemas/onchain_operations_treasury.schema.json +2 -2
- package/dist/schemas/onchain_table_data.output.json +61 -71
- package/dist/schemas/query_toolkit.output.json +841 -8
- package/dist/schemas/query_toolkit.schema.json +59 -1
- package/dist/strategy/metrics.js +1 -1
- 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/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/evaluation.d.ts +2 -0
- package/dist/tools/registry/evaluation.js +1 -0
- package/dist/tools/registry/query.js +1 -1
- 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 +4 -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,51 +23,51 @@ 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
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, getMoveFunctionsForPermissionIndex as getTreasuryMoveFunctionsForPermissionIndex, 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
73
|
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";
|
|
@@ -76,7 +76,6 @@ export { TOOL_CONSTRAINTS, TOOL_CONSTRAINTS_VERSION, validateOperation, hasBlock
|
|
|
76
76
|
export { REWARD_TEMPLATES, REWARD_TEMPLATES_VERSION, getRewardTemplate, listRewardTemplates, suggestRewardTemplate, type RewardTemplateType, type RewardTemplate, };
|
|
77
77
|
export { AUDIT_RULES, AUDIT_RULES_VERSION, auditService, hasBlockingErrors, getErrors, getWarnings, summarizeFindings, type AuditSeverity, type AuditFinding, type AuditRule, type AuditContext, };
|
|
78
78
|
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
79
|
export { buildReviewRepositorySetup, computeReviewStats, isVerifiedReview, filterVerifiedReviews, detectReviewManipulation, REPUTATION_RULES_VERSION, type Review, type ReviewStats, type ReviewRepositorySetup, };
|
|
81
80
|
export { INDUSTRY_FLYWHEELS, getFlywheelForIndustry, listIndustries, suggestAcquisitionActions, generateTrustDescription, buildAcquisitionDashboard, ACQUISITION_FLYWHEEL_VERSION, type FlywheelAction, type AcquisitionFlywheel, type TrustDescriptionParams, type AcquisitionDashboard, };
|
|
82
81
|
export { STRATEGY_MANUAL_FILENAME, STRATEGY_MANUAL_VERSION, renderStrategyManual, parseManualSentinel, classifyManualFile, getBuiltinStrategyManual, listBuiltinStrategyManualIndustries, type ManualSentinel, type ManualFileState, type BuiltinStrategyManual, } from "./strategy-manuals.js";
|
|
@@ -89,56 +88,56 @@ export { BUILTIN_INTENT_SPECS, registerIntentProfile, getIntentProfile, listInte
|
|
|
89
88
|
export { GUARD_SCENES, findScene, inferSceneFromAction, getImmutableScenes, getNumericIdentifierScenes, type GuardScene, };
|
|
90
89
|
export { SEMANTIC_TO_SCHEMA_RULES, SCHEMA_TO_SEMANTIC_RULES, GUARD_CONSTRAINT_RULES, matchSemanticPattern, explainNode, explainWitness, getConstraintsByCategory, type SemanticToSchemaRule, type SchemaToSemanticRule, type GuardConstraintRule, };
|
|
91
90
|
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 {
|
|
91
|
+
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
92
|
export { MACHINE_SCENES, MACHINE_LEDGER_VERSION, MACHINE_SCENES_COUNT, findMachineScene, getMachineScenesByIndustry, getScenesByPattern, inferSceneFromFlow, type MachineScene, type ParticipantRoleDef, type GuardRequirement, };
|
|
94
93
|
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
94
|
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,
|
|
95
|
+
export { MACHINE_RISK_RULES, MACHINE_RISK_VERSION, assessMachineRisks, type MachineRiskRule, type MachineRiskLevel, type MachineRiskCategory, type MachineRisk, type MachineRiskAssessment, type ProjectContextForRisk, type MachineJsonForRisk, };
|
|
97
96
|
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
97
|
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
98
|
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
99
|
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,
|
|
100
|
+
export { SERVICE_RISK_VERSION, assessServiceRisks, getAllServiceRiskRules, type ServiceRisk, type ServiceRiskAssessment, type ServiceStakeholder, type ServiceRiskLevel, type ServiceRiskCategory, type ServiceRiskRule, type ServiceRiskCheckContext, };
|
|
102
101
|
export { SERVICE_TEMPLATES, SERVICE_TEMPLATES_VERSION, getServiceTemplateById, getServiceTemplatesByScene, getServiceTemplatesByIndustry, suggestServiceTemplateForScene, listServiceTemplates, fillServiceTemplate, getAllServiceTemplates, type ServiceTemplate, type ServiceTemplateParam, type FillServiceTemplateResult, };
|
|
103
102
|
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
103
|
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,
|
|
104
|
+
export { ALLOCATION_RISK_VERSION, assessAllocationRisks, getAllAllocationRiskRules, type AllocationRisk, type AllocationRiskAssessment, type AllocationStakeholder, type AllocationRiskLevel, type AllocationRiskCategory, type AllocationRiskRule, type AllocationRiskCheckContext, };
|
|
106
105
|
export { ALLOCATION_TEMPLATES, ALLOCATION_TEMPLATES_VERSION, getAllAllocationTemplates, getAllocationTemplateById, getAllocationTemplatesByScene, getAllocationTemplatesByIndustry, suggestAllocationTemplateForScene, listAllocationTemplates, fillAllocationTemplate, type AllocationTemplate, type AllocationTemplateParam, type AllocationTemplateParamType, };
|
|
107
106
|
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
107
|
export { paymentRelations, scanRecentPaymentEvents, resolveBeneficialOwners, extractionPlanForHolder, pendingWrappersAt, trackAccountPayments, type PaymentRelationKind, type ExtractionPlan, type PendingWrapper, type TrackedPayment, type TrackedPaymentLeg, };
|
|
109
108
|
export { TREASURY_LEDGER_VERSION, TREASURY_SCENES, TREASURY_BUILTIN_PERMISSIONS, getTreasuryScenesByHostObject, findTreasurySceneById, findTreasurySceneByPermissionIndex, getTreasuryBuiltinPermissionByIndex, isBuiltinTreasuryPermission, getActiveTreasuryBuiltinPermissions, getReservedTreasuryBuiltinPermissions, inferTreasurySceneFromIntent, getTreasuryScenesCount, getTreasuryMoveFunctionsForPermissionIndex, type TreasuryScene, type BuiltinTreasuryPermissionEntry, };
|
|
110
109
|
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
110
|
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,
|
|
111
|
+
export { TREASURY_RISK_VERSION, assessTreasuryRisks, getAllTreasuryRiskRules, type TreasuryRisk, type TreasuryRiskAssessment, type TreasuryRiskLevel, type TreasuryRiskCategory, type TreasuryRiskRule, type TreasuryStakeholder, type TreasuryRiskCheckContext, };
|
|
113
112
|
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
113
|
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
114
|
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,
|
|
115
|
+
export { ORDER_RISK_VERSION, assessOrderRisks, getAllOrderRiskRules, type OrderRisk, type OrderRiskAssessment, type OrderRiskLevel, type OrderRiskCategory, type OrderRiskRule, type OrderStakeholder, type OrderRiskCheckContext, };
|
|
117
116
|
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
117
|
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
118
|
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,
|
|
119
|
+
export { PROGRESS_RISK_VERSION, assessProgressRisks, getAllProgressRiskRules, type ProgressRisk, type ProgressRiskAssessment, type ProgressRiskLevel, type ProgressRiskCategory, type ProgressRiskRule, type ProgressStakeholder, type ProgressRiskCheckContext, };
|
|
121
120
|
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
121
|
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
122
|
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,
|
|
123
|
+
export { ARBITRATION_RISK_VERSION, assessArbitrationRisks, getAllArbitrationRiskRules, type ArbitrationRisk, type ArbitrationRiskAssessment, type ArbitrationRiskLevel, type ArbitrationRiskCategory, type ArbitrationRiskRule, type ArbitrationStakeholder, type ArbitrationRiskCheckContext, };
|
|
125
124
|
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
125
|
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,
|
|
126
|
+
export { REWARD_RISK_VERSION, assessRewardRisks, getAllRewardRiskRules, type RewardRisk, type RewardRiskLevel, type RewardRiskCategory, type RewardRiskRule, type RewardStakeholder, type RewardRiskCheckContext, type RewardRiskAssessment, type RewardGuardAddEntry, };
|
|
128
127
|
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
128
|
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,
|
|
129
|
+
export { PROOF_RISK_RULES, checkProofRisks, type ProofRiskLevel, type ProofRiskCategory, type ProofStakeholder, type ProofRisk, type ProofRiskCheckContext, };
|
|
130
|
+
export { REPOSITORY_RISK_RULES, checkRepositoryRisks, parseIdFromForRiskCheck, type RepositoryRiskLevel, type RepositoryRiskCategory, type RepositoryStakeholder, type RepositoryRisk, type RepositoryRiskCheckContext, };
|
|
132
131
|
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,
|
|
132
|
+
export { DEMAND_RISK_RULES, checkDemandRisks, type DemandRiskLevel, type DemandRiskCategory, type DemandStakeholder, type DemandRisk, type DemandRiskCheckContext, };
|
|
133
|
+
export { CONTACT_RISK_RULES, CONTACT_RISK_VERSION, checkContactRisks, type ContactRiskLevel, type ContactRiskCategory, type ContactStakeholder, type ContactRisk, type ContactRiskCheckContext, };
|
|
134
|
+
export { RESOURCE_RISK_RULES, RESOURCE_RISK_VERSION, checkResourceRisks, type ResourceRiskLevel, type ResourceRiskCategory, type ResourceStakeholder, type ResourceRisk, type ResourceRiskCheckContext, };
|
|
135
|
+
export { PAYMENT_RISK_RULES, PAYMENT_RISK_VERSION, checkPaymentRisks, type PaymentRiskLevel, type PaymentRiskCategory, type PaymentStakeholder, type PaymentRisk, type PaymentRiskCheckContext, };
|
|
136
|
+
export { ARB_RISK_RULES, ARB_RISK_VERSION, checkArbRisks, type ArbRiskLevel, type ArbRiskCategory, type ArbStakeholder, type ArbRisk, type ArbRiskCheckContext, };
|
|
137
|
+
export { PERSONAL_RISK_RULES, PERSONAL_RISK_VERSION, checkPersonalRisks, type PersonalRiskLevel, type PersonalRiskCategory, type PersonalStakeholder, type PersonalRisk, type PersonalRiskCheckContext, };
|
|
138
|
+
export { UTIL_RISK_RULES, UTIL_RISK_VERSION, checkUtilRisks, type UtilRiskLevel, type UtilRiskCategory, type UtilStakeholder, type UtilRisk, type UtilRiskCheckContext, };
|
|
139
|
+
export { REGISTRAR_RISK_RULES, REGISTRAR_RISK_VERSION, checkRegistrarRisks, type RegistrarRiskLevel, type RegistrarRiskCategory, type RegistrarStakeholder, type RegistrarRisk, type RegistrarRiskCheckContext, };
|
|
140
|
+
export { BRIDGE_RISK_RULES, BRIDGE_RISK_VERSION, checkBridgeRisks, type BridgeRiskLevel, type BridgeRiskCategory, type BridgeStakeholder, type BridgeRisk, type BridgeRiskCheckContext, };
|
|
142
141
|
export { TOOLS_REFERENCE, getToolReference, searchToolReference, getToolSequence, type ToolReferenceEntry, };
|
|
143
142
|
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, };
|
|
144
143
|
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, };
|
|
@@ -149,7 +148,6 @@ export declare function getKnowledgeBase(): {
|
|
|
149
148
|
reward_templates: number;
|
|
150
149
|
audit_rules: number;
|
|
151
150
|
dynamic_pricing: number;
|
|
152
|
-
trust_metrics: number;
|
|
153
151
|
reputation_rules: number;
|
|
154
152
|
acquisition_flywheel: number;
|
|
155
153
|
industry_registry: number;
|
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 a163a,getScenesByIndustry as a163b,getScenesByPattern,inferSceneFromFlow}from'./machine-ledger.js';import{MACHINE_TEMPLATES,MACHINE_TEMPLATES_VERSION,MACHINE_TEMPLATES_COUNT,getAllTemplates as a163c,getTemplateById as a163d,getTemplatesByScene as a163e,getTemplatesByIndustry as a163f,suggestTemplateForIntent,walkDecisionTree,fillTemplate as a163g,forkTemplate as a163h,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 a163i,identifyExecutionMode,identifyTopology,explainForwardPermission,getConstraintsByCategory as a163j,getConstraintById,getOnChainConstraints as a163k,getOffChainConstraints as a163l}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 a163m,initPuzzleFromTemplate,checkPuzzleCompleteness as a163n,recommendNextStep as a163o,derivePuzzleFromMachineJson,generateConfirmationText as a163p,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 a163q,findSceneById as a163r,getServicePermissionByIndex,isServicePermission,getPermissionsByMutability,getImmutablePostPublishPermissions,getLockedByDurationPermissions,inferSceneFromIntent as a163s,getAllServiceScenes,getServiceScenesCount,getServicePermissionsCount,getOrderFlowStage,getCrossObjectBindings as a163t}from'./service-ledger.js';import{initPuzzleFromIntent as a163u,checkPuzzleCompleteness as a163v,validateConstraints as a163w,generateConfirmationText as a163x,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 a163y,getScenesByMode as a163z,getScenesByStrategy as a163A,findSceneById as a163B,inferSceneFromIntent as a163C,getAllScenes as a163D,getScenesCount as a163E,allocationModeToNumber,allocationModeFromNumber,getRecipientType,isSignerRecipient,isEntityRecipient,isGuardIdentifierRecipient,getErrorName as a163F,getErrorDescription as a163G}from'./allocation-ledger.js';import{initPuzzleFromIntent as a163H,checkPuzzleCompleteness as a163I,validateConstraints as a163J,generateConfirmationText as a163K,buildDefaultAllocFlow,buildDefaultRecipientRules,buildDefaultLogicPuzzle,ALLOCATION_PUZZLE_VERSION}from'./allocation-puzzle.js';import{ALLOCATION_RISK_VERSION,assessAllocationRisks,getAllRiskRules as a163L}from'./allocation-risk.js';import{ALLOCATION_TEMPLATES,ALLOCATION_TEMPLATES_VERSION,getAllTemplates as a163M,getTemplateById as a163N,getTemplatesByScene as a163O,getTemplatesByIndustry as a163P,suggestTemplateForScene as a163Q,listTemplates as a163R,fillTemplate as a163S}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 a163T,getScenesByHostObject as a163U,findSceneById as a163V,findSceneByPermissionIndex as a163W,getBuiltinPermissionByIndex as a163X,isBuiltinTreasuryPermission,getActiveBuiltinPermissions as a163Y,getReservedBuiltinPermissions as a163Z,inferSceneFromIntent as a163a0,getTreasuryScenesCount,getMoveFunctionsForPermissionIndex as a163a1}from'./treasury-ledger.js';import{initPuzzleFromIntent as a163a2,checkPuzzleCompleteness as a163a3,validateConstraints as a163a4,generateConfirmationText as a163a5,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,MAX_DESCRIPTION_LENGTH as a163a6}from'./treasury-puzzle.js';import{TREASURY_TEMPLATES,TREASURY_TEMPLATES_VERSION,getAllTreasuryTemplates,getTemplateById as a163a7,getTemplatesByScene as a163a8,getTemplatesByIndustry as a163a9,suggestTemplateForScene as a163aa,listTemplates as a163ab,fillTemplate as a163ac}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 a163ad,findSceneById as a163ae,findSceneByMoveEntry as a163af,getScenesByPermissionLayer as a163ag,getScenesByReversibility as a163ah,getFieldDef as a163ai,getMutableFields as a163aj,getImmutableFields as a163ak,getFrozenAfterProgressFields as a163al,getOneTimeSetFields as a163am,inferSceneFromIntent as a163an,getEmittedEvents as a163ao,getInferredEvents as a163ap,getOrderScenesCount,sdkToMoveField as a163aq,moveToSdkField as a163ar}from'./order-ledger.js';import{initPuzzleFromIntent as a163as,checkPuzzleCompleteness as a163at,validateConstraints as a163au,generateConfirmationText as a163av,verifySnapshotMechanism as a163aw,inferLifecyclePhase as a163ax,matchSceneFromPuzzle as a163ay,listAllScenes as a163az,lookupScene as a163aA}from'./order-puzzle.js';import{ORDER_TEMPLATES,ORDER_TEMPLATES_VERSION,ORDER_TEMPLATES_COUNT,getAllOrderTemplates,getTemplateById as a163aB,getTemplatesByScene as a163aC,getTemplatesByIndustry as a163aD,getTemplatesByPermissionLayer as a163aE,getIrreversibleTemplates as a163aF,suggestTemplateForScene as a163aG,listOrderTemplates,fillTemplate as a163aH,suggestTemplateFromIntent as a163aI,getTemplateParameters as a163aJ,validateTemplateParams as a163aK}from'./order-templates.js';import{ORDER_RISK_VERSION,assessOrderRisks,getAllOrderRiskRules}from'./order-risk.js';import{PROGRESS_LEDGER_VERSION,PROGRESS_SCENES,PROGRESS_PERMISSIONS as a163aL,PROGRESS_NEW,PROGRESS_NAMED_OPERATOR,PROGRESS_TASK,PROGRESS_CONTEXT_REPOSITORY,PROGRESS_UNHOLD,PROGRESS_OWNER_RECEIVE,PROGRESS_CROSS_OBJECT_REFS,getScenesByPhase as a163aM,findSceneById as a163aN,getScenesByIndustry as a163aO,getBuiltinPermissionByIndex as a163aP,isProgressBuiltinPermission,inferSceneFromIntent as a163aQ,getAllBuiltinPermissions as a163aR,getProgressScenesCount,validateNamedOperatorAddressList,validateNamedOperatorCount,validateContextRepositoryCount}from'./progress-ledger.js';import{initPuzzleFromIntent as a163aS,checkPuzzleCompleteness as a163aT,validateConstraints as a163aU,generateConfirmationText as a163aV,resolveBuiltinPermission as a163aW,isOrderHolderForward,getRelevantDimensions as a163aX}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 a163aY,ARB_STATUS_CODE,ARB_TERMINAL_STATUSES,ARB_STATUS_ALIASES,DUAL_GUARD_MATRIX,getScenesByCategory as a163aZ,findSceneById as a163b0,findSceneByPermissionIndex as a163b1,getPermissionByIndex as a163b2,getPermissionByName as a163b3,isReservedIndex as a163b4,isUsedPermissionIndex as a163b5,getActivePermissionCount as a163b6,inferSceneFromIntent as a163b7,getDualGuardMatrixEntry,isValidArbStatusTransition,isTerminalArbStatus,getScenesProducingStatus as a163b8,getScenesRequiringStatus as a163b9,getArbitrationScenesCount,getAllArbitrationPermissions,getActiveArbitrationPermissions}from'./arbitration-ledger.js';import{initPuzzleFromIntent as a163ba,checkPuzzleCompleteness as a163bb,validateConstraints as a163bc,generateConfirmationText as a163bd}from'./arbitration-puzzle.js';import{ARBITRATION_TEMPLATES,ARBITRATION_TEMPLATES_VERSION,getAllTemplates as a163be,getTemplateById as a163bf,getTemplatesByScene as a163bg,getTemplatesByIndustry as a163bh,suggestTemplateForScene as a163bi,listTemplates as a163bj,fillTemplate as a163bk}from'./arbitration-templates.js';import{ARBITRATION_RISK_VERSION,assessArbitrationRisks,getAllRiskRules as a163bl}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 a163bm,findSceneById as a163bn,getScenesByIndustry as a163bo,getBuiltinPermissionByIndex as a163bp,isRewardBuiltinPermission,getAllBuiltinPermissions as a163bq,getRewardScenesCount,getGuardConstructorSpec as a163br,resolveGuardConstructor as a163bs,getRewardErrorByCode,getRewardErrorByName,validateGuardCount as a163bt,validateRecordCount as a163bu,inferSceneFromIntent as a163bv}from'./reward-ledger.js';import{REWARD_FIELD_MUTABILITY,initPuzzleFromIntent as a163bw,checkPuzzleCompleteness as a163bx,validateConstraints as a163by,generateConfirmationText as a163bz,resolveBuiltinPermission as a163bA,requiresGuardConfig as a163bB,requiresPassport as a163bC,getRelevantDimensions as a163bD,getFieldMutability as a163bE,isAdminMutableField as a163bF,getFieldPermissionIndex as a163bG}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 a163bH,getScenariosCount as a163bI,findScenarioById as a163bJ,getScenariosByConsumer as a163bK,getScenariosUsingRelies as a163bL,inferScenarioFromIntent as a163bM,impackRoleFromBoolean,impackRoleToBoolean,reliesLogicFromBoolean,reliesLogicToBoolean,getErrorName as a163bN,getErrorDescription as a163bO}from'./passport-ledger.js';import{PASSPORT_TEMPLATES,PASSPORT_TEMPLATES_VERSION,getAllTemplates as a163bP,getTemplateById as a163bQ,getTemplatesByScenario as a163bR,getTemplatesByIndustry as a163bS,suggestTemplateForScenario as a163bT,listTemplates as a163bU,fillTemplate as a163bV}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{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,a163a as findMachineScene,a163b as getMachineScenesByIndustry,getScenesByPattern,inferSceneFromFlow};export{MACHINE_TEMPLATES,MACHINE_TEMPLATES_VERSION,MACHINE_TEMPLATES_COUNT,a163c as getAllMachineTemplates,a163d as getMachineTemplateById,a163e as getMachineTemplatesByScene,a163f as getMachineTemplatesByIndustry,suggestTemplateForIntent,walkDecisionTree,a163g as fillMachineTemplate,a163h as forkMachineTemplate,verifyTemplateSceneReferences,getReferencedGuardTemplateIds,getReferencedRiskIds};export{SEMANTIC_TO_MACHINE_RULES,MACHINE_CONSTRAINT_RULES,MACHINE_TRANSLATION_VERSION,MACHINE_PATTERNS_COUNT,MACHINE_CONSTRAINTS_COUNT,a163i as matchMachinePattern,identifyExecutionMode,identifyTopology,explainForwardPermission,a163j as getMachineConstraintsByCategory,getConstraintById,a163k as getOnChainMachineConstraints,a163l 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{a163m as initMachinePuzzleFromIntent,initPuzzleFromTemplate,a163n as checkMachinePuzzleCompleteness,a163o as recommendMachineNextStep,derivePuzzleFromMachineJson,a163p as generateMachineConfirmationText,MACHINE_PUZZLE_VERSION};export{SERVICE_SCENES,SERVICE_LEDGER_VERSION,SERVICE_PERMISSIONS,SERVICE_ORDER_FLOW_STAGES,SERVICE_CROSS_OBJECT_BINDINGS,a163q as getServiceScenesByCategory,a163r as findServiceSceneById,getServicePermissionByIndex,isServicePermission,getPermissionsByMutability,getImmutablePostPublishPermissions,getLockedByDurationPermissions,a163s as inferServiceSceneFromIntent,getAllServiceScenes,getServiceScenesCount,getServicePermissionsCount,getOrderFlowStage,a163t as getServiceCrossObjectBindings};export{a163u as initServicePuzzleFromIntent,a163v as checkServicePuzzleCompleteness,a163w as validateServiceConstraints,a163x 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,a163y as getAllocationScenesByTriggerSource,a163z as getAllocationScenesByMode,a163A as getAllocationScenesByStrategy,a163B as findAllocationSceneById,a163C as inferAllocationSceneFromIntent,a163D as getAllAllocationScenes,a163E as getAllocationScenesCount,allocationModeToNumber,allocationModeFromNumber,getRecipientType,isSignerRecipient,isEntityRecipient,isGuardIdentifierRecipient,a163F as getAllocationErrorName,a163G as getAllocationErrorDescription};export{a163H as initAllocationPuzzleFromIntent,a163I as checkAllocationPuzzleCompleteness,a163J as validateAllocationConstraints,a163K as generateAllocationPuzzleConfirmationText,buildDefaultAllocFlow,buildDefaultRecipientRules,buildDefaultLogicPuzzle,ALLOCATION_PUZZLE_VERSION};export{ALLOCATION_RISK_VERSION,assessAllocationRisks,a163L as getAllAllocationRiskRules};export{ALLOCATION_TEMPLATES,ALLOCATION_TEMPLATES_VERSION,a163M as getAllAllocationTemplates,a163N as getAllocationTemplateById,a163O as getAllocationTemplatesByScene,a163P as getAllocationTemplatesByIndustry,a163Q as suggestAllocationTemplateForScene,a163R as listAllocationTemplates,a163S 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,a163T as TREASURY_BUILTIN_PERMISSIONS,a163U as getTreasuryScenesByHostObject,a163V as findTreasurySceneById,a163W as findTreasurySceneByPermissionIndex,a163X as getTreasuryBuiltinPermissionByIndex,isBuiltinTreasuryPermission,a163Y as getActiveTreasuryBuiltinPermissions,a163Z as getReservedTreasuryBuiltinPermissions,a163a0 as inferTreasurySceneFromIntent,getTreasuryScenesCount,a163a1 as getTreasuryMoveFunctionsForPermissionIndex};export{a163a2 as initTreasuryPuzzleFromIntent,a163a3 as checkTreasuryPuzzleCompleteness,a163a4 as validateTreasuryConstraints,a163a5 as generateTreasuryPuzzleConfirmationText,MAX_EXTERNAL_DEPOSIT_GUARD_COUNT,MAX_EXTERNAL_WITHDRAW_GUARD_COUNT,a163a6 as TREASURY_MAX_DESCRIPTION_LENGTH};export{TREASURY_TEMPLATES,TREASURY_TEMPLATES_VERSION,getAllTreasuryTemplates,a163a7 as getTreasuryTemplateById,a163a8 as getTreasuryTemplatesByScene,a163a9 as getTreasuryTemplatesByIndustry,a163aa as suggestTreasuryTemplateForScene,a163ab as listTreasuryTemplates,a163ac 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,a163ad as getOrderScenesByOperationField,a163ae as findOrderSceneById,a163af as findOrderSceneByMoveEntry,a163ag as getOrderScenesByPermissionLayer,a163ah as getOrderScenesByReversibility,a163ai as getOrderFieldDef,a163aj as getOrderMutableFields,a163ak as getOrderImmutableFields,a163al as getOrderFrozenAfterProgressFields,a163am as getOrderOneTimeSetFields,a163an as inferOrderSceneFromIntent,a163ao as getOrderEmittedEvents,a163ap as getOrderInferredEvents,getOrderScenesCount,a163aq as sdkToMoveOrderField,a163ar as moveToSdkOrderField};export{a163as as initOrderPuzzleFromIntent,a163at as checkOrderPuzzleCompleteness,a163au as validateOrderConstraints,a163av as generateOrderPuzzleConfirmationText,a163aw as verifyOrderSnapshotMechanism,a163ax as inferOrderLifecyclePhase,a163ay as matchOrderSceneFromPuzzle,a163az as listAllOrderScenes,a163aA as lookupOrderScene};export{ORDER_TEMPLATES,ORDER_TEMPLATES_VERSION,ORDER_TEMPLATES_COUNT,getAllOrderTemplates,a163aB as getOrderTemplateById,a163aC as getOrderTemplatesByScene,a163aD as getOrderTemplatesByIndustry,a163aE as getOrderTemplatesByPermissionLayer,a163aF as getIrreversibleOrderTemplates,a163aG as suggestOrderTemplateForScene,listOrderTemplates,a163aH as fillOrderTemplate,a163aI as suggestOrderTemplateFromIntent,a163aJ as getOrderTemplateParameters,a163aK as validateOrderTemplateParams};export{ORDER_RISK_VERSION,assessOrderRisks,getAllOrderRiskRules};export{PROGRESS_LEDGER_VERSION,PROGRESS_SCENES,a163aL as PROGRESS_BUILTIN_PERMISSIONS,PROGRESS_NEW,PROGRESS_NAMED_OPERATOR,PROGRESS_TASK,PROGRESS_CONTEXT_REPOSITORY,PROGRESS_UNHOLD,PROGRESS_OWNER_RECEIVE,PROGRESS_CROSS_OBJECT_REFS,a163aM as getProgressScenesByPhase,a163aN as findProgressSceneById,a163aO as getProgressScenesByIndustry,a163aP as getProgressBuiltinPermissionByIndex,isProgressBuiltinPermission,a163aQ as inferProgressSceneFromIntent,a163aR as getAllProgressBuiltinPermissions,getProgressScenesCount,validateNamedOperatorAddressList,validateNamedOperatorCount,validateContextRepositoryCount};export{a163aS as initProgressPuzzleFromIntent,a163aT as checkProgressPuzzleCompleteness,a163aU as validateProgressConstraints,a163aV as generateProgressPuzzleConfirmationText,a163aW as resolveProgressBuiltinPermission,isOrderHolderForward,a163aX 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,a163aY as ARBITRATION_BUILTIN_PERMISSIONS,ARB_STATUS_CODE,ARB_TERMINAL_STATUSES,ARB_STATUS_ALIASES,DUAL_GUARD_MATRIX,a163aZ as getArbitrationScenesByCategory,a163b0 as findArbitrationSceneById,a163b1 as findArbitrationSceneByPermissionIndex,a163b2 as getArbitrationPermissionByIndex,a163b3 as getArbitrationPermissionByName,a163b4 as isArbitrationReservedIndex,a163b5 as isArbitrationUsedPermissionIndex,a163b6 as getArbitrationActivePermissionCount,a163b7 as inferArbitrationSceneFromIntent,getDualGuardMatrixEntry,isValidArbStatusTransition,isTerminalArbStatus,a163b8 as getArbitrationScenesProducingStatus,a163b9 as getArbitrationScenesRequiringStatus,getArbitrationScenesCount,getAllArbitrationPermissions,getActiveArbitrationPermissions};export{a163ba as initArbitrationPuzzleFromIntent,a163bb as checkArbitrationPuzzleCompleteness,a163bc as validateArbitrationConstraints,a163bd as generateArbitrationPuzzleConfirmationText};export{ARBITRATION_TEMPLATES,ARBITRATION_TEMPLATES_VERSION,a163be as getAllArbitrationTemplates,a163bf as getArbitrationTemplateById,a163bg as getArbitrationTemplatesByScene,a163bh as getArbitrationTemplatesByIndustry,a163bi as suggestArbitrationTemplateForScene,a163bj as listArbitrationTemplates,a163bk as fillArbitrationTemplate};export{ARBITRATION_RISK_VERSION,assessArbitrationRisks,a163bl 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,a163bm as getRewardScenesByPhase,a163bn as findRewardSceneById,a163bo as getRewardScenesByIndustry,a163bp as getRewardBuiltinPermissionByIndex,isRewardBuiltinPermission,a163bq as getAllRewardBuiltinPermissions,getRewardScenesCount,a163br as getRewardGuardConstructorSpec,a163bs as resolveRewardGuardConstructor,getRewardErrorByCode,getRewardErrorByName,a163bt as validateRewardGuardCount,a163bu as validateRewardRecordCount,a163bv as inferRewardSceneFromIntent};export{REWARD_FIELD_MUTABILITY,a163bw as initRewardPuzzleFromIntent,a163bx as checkRewardPuzzleCompleteness,a163by as validateRewardConstraints,a163bz as generateRewardPuzzleConfirmationText,a163bA as resolveRewardBuiltinPermission,a163bB as requiresRewardGuardConfig,a163bC as requiresRewardPassport,a163bD as getRewardRelevantDimensions,a163bE as getRewardFieldMutability,a163bF as isRewardAdminMutableField,a163bG 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,a163bH as getAllPassportScenarios,a163bI as getPassportScenesCount,a163bJ as findPassportScenarioById,a163bK as getPassportScenariosByConsumer,a163bL as getPassportScenariosUsingRelies,a163bM as inferPassportScenarioFromIntent,impackRoleFromBoolean,impackRoleToBoolean,reliesLogicFromBoolean,reliesLogicToBoolean,a163bN as getPassportErrorName,a163bO as getPassportErrorDescription};export{PASSPORT_TEMPLATES,PASSPORT_TEMPLATES_VERSION,a163bP as getAllPassportTemplates,a163bQ as getPassportTemplateById,a163bR as getPassportTemplatesByScenario,a163bS as getPassportTemplatesByIndustry,a163bT as suggestPassportTemplateForScenario,a163bU as listPassportTemplates,a163bV 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{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},'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':a163L()['length'],'allocation_templates_count':ALLOCATION_TEMPLATES['length'],'allocation_context_enabled':!![],'treasury_scenes_count':TREASURY_SCENES['length'],'treasury_builtin_permissions_count':a163T['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':a163aL['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':a163aY['length'],'arbitration_risk_rules_count':a163bl()['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 +1 @@
|
|
|
1
|
-
import{getFlywheelForIndustry,listIndustries as
|
|
1
|
+
import{getFlywheelForIndustry,listIndustries as a166a,_setRegistryLookup as a166b}from'./acquisition-flywheel.js';import{getIndustryRiskChecks,getIndustryNeeds,getIndustryTemplate,SUPPORTED_INDUSTRIES}from'../customer/index.js';import{_setRegistryLookup as a166c}from'../customer/industry-risks.js';import{_setRegistryLookup as a166d}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(){a166b(a=>{const b=registry['get'](a);return b?{'flywheel':b['flywheel']}:undefined;}),a166c(a=>{const b=registry['get'](a);return b?{'risk_checks':b['risk_checks'],'needs':b['needs']}:undefined;}),a166d(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'](),a166b(null),a166c(null),a166d(null),seedBuiltinIndustries(),injectRegistryLookup();}export function listBuiltinIndustryNames(){return a166a();}
|
|
@@ -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)));}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{query_events}from'@wowok/wowok';import{batchQueryObjectsByIds as
|
|
1
|
+
import{query_events}from'@wowok/wowok';import{batchQueryObjectsByIds as a170a}from'../graph/onchain/sdk-batch.js';function toStr(a){if(typeof a==='string')return a;if(typeof a==='number'||typeof a==='bigint')return String(a);return undefined;}async function collectObjectIdsByEvent(a,b,c,d,e){const f=new Set();let g=null,h=![];while(f['size']<d){const i=await query_events({'type':a,'cursor':g,'limit':0x32,'order':'descending','no_cache':e,'network':c}),j=i?.['data']??[];if(j['length']===0x0)break;for(const k of j){const l=b(k);if(l)f['add'](l);}h=!!(i?.['hasNextPage']&&i?.['nextCursor']);if(!h)break;g=i?.['nextCursor']??null;}return{'ids':Array['from'](f)['slice'](0x0,d),'hasMore':h};}export async function enumerateServices(a,b={}){const c=b['max_objects']??0xc8,{ids:d,hasMore:e}=await collectObjectIdsByEvent('ServiceEvent',i=>typeof i?.['object']==='string'?i['object']:undefined,a,c,b['no_cache']),f=await a170a(d,a,b['no_cache']),g=(b['location_any']??[])['map'](i=>i['toLowerCase']()),h=f['filter'](i=>(i?.['type']??'')==='Service')['filter'](i=>{if(g['length']===0x0)return!![];const j=typeof i?.['location']==='string'?i['location']['toLowerCase']():'';return g['some'](k=>j['includes'](k));})['map'](i=>({'object':String(i['object']),'name':typeof i['name']==='string'?i['name']:undefined,'location':typeof i['location']==='string'?i['location']:'','json':{...i,'compensation_fund':toStr(i['compensation_fund']),'sales':Array['isArray'](i['sales'])?i['sales']['map'](j=>({...j,'price':toStr(j['price'])})):[]}}));return{'services':h,'total_enumerated':h['length'],'has_more':e};}export async function enumerateDemands(a,b={}){const c=b['max_objects']??0xc8,{ids:d,hasMore:e}=await collectObjectIdsByEvent('DemandChangedEvent',h=>typeof h?.['object']==='string'?h['object']:undefined,a,c,b['no_cache']),f=await a170a(d,a,b['no_cache']),g=f['filter'](h=>(h?.['type']??'')==='Demand')['map'](h=>h);return{'demands':g,'total_enumerated':g['length'],'has_more':e};}export async function enumerateArbs(a,b={}){const c=b['max_objects']??0xc8,{ids:d,hasMore:e}=await collectObjectIdsByEvent('ArbEvent',i=>typeof i?.['arb']==='string'?i['arb']:undefined,a,c,b['no_cache']),f=await a170a(d,a,b['no_cache']),g=b['status']===undefined?undefined:Array['isArray'](b['status'])?b['status']:[b['status']],h=f['filter'](i=>(i?.['type']??'')==='Arb')['map'](i=>i)['filter'](i=>b['arbitration']?i['arbitration']===b['arbitration']:!![])['filter'](i=>b['order']?i['order']===b['order']:!![])['filter'](i=>g?g['includes'](Number(i['status'])):!![]);return{'arbs':h,'total_enumerated':h['length'],'has_more':e};}
|
|
@@ -66,10 +66,4 @@ export interface ProjectContextForRisk {
|
|
|
66
66
|
}
|
|
67
67
|
export declare const MACHINE_RISK_RULES: MachineRiskRule[];
|
|
68
68
|
export declare function assessMachineRisks(machine: MachineJsonForRisk, context: ProjectContextForRisk): MachineRiskAssessment;
|
|
69
|
-
export declare function getRiskRulesByCategory(category: MachineRiskCategory): MachineRiskRule[];
|
|
70
|
-
export declare function getRiskRuleById(id: string): MachineRiskRule | undefined;
|
|
71
|
-
export declare function getRiskRulesBySeverity(severity: MachineRiskLevel): MachineRiskRule[];
|
|
72
|
-
export declare function getAutoFixableRules(): MachineRiskRule[];
|
|
73
|
-
export declare function getRiskSummary(assessment: MachineRiskAssessment): string;
|
|
74
69
|
export declare const MACHINE_RISK_VERSION = "1.0.0";
|
|
75
|
-
export declare const MACHINE_RISK_RULES_COUNT: number;
|