@wowok/agent-mcp 3.4.3 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-stamp.json +3 -3
- package/dist/build-stamp.js +1 -0
- package/dist/chain-semantics/composition-truth.js +1 -1
- package/dist/chain-semantics/eval-order.js +1 -1
- package/dist/chain-semantics/freeze-map.js +1 -1
- package/dist/chain-semantics/fund-flow.js +1 -1
- package/dist/chain-semantics/object-graph.js +1 -1
- package/dist/composition/audit.js +1 -1
- package/dist/composition/compile.js +1 -1
- package/dist/composition/emit-phases.js +1 -1
- package/dist/composition/generate.js +1 -1
- package/dist/composition/guard-fill.js +1 -1
- package/dist/composition/input-normalize.js +1 -1
- package/dist/composition/materialize.js +1 -1
- package/dist/composition/mode-gates.js +1 -1
- package/dist/composition/plan.js +1 -1
- package/dist/composition/product-card.js +1 -1
- package/dist/composition/shape-expand.js +1 -0
- package/dist/config/judgment.js +1 -1
- package/dist/config/template-params.js +1 -1
- package/dist/data/sync/cdc.js +1 -1
- package/dist/data/sync/graphql-source.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exposure.js +1 -1
- package/dist/graph/onchain/sdk-batch.js +1 -1
- package/dist/harness/entry-ignite-selfheal.js +1 -0
- package/dist/harness/forward-leg-preflight.js +1 -0
- package/dist/harness/recover.js +1 -1
- package/dist/keeper/detectors.js +1 -1
- package/dist/knowledge/allocator-rail-verifier.js +1 -1
- package/dist/knowledge/arb-operation-face.js +1 -0
- package/dist/knowledge/arbitration-rail-verifier.js +1 -1
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +15 -0
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/alloc_audit.json.good +310 -0
- package/dist/knowledge/baselines/rules/allocation.json.good +568 -0
- package/dist/knowledge/baselines/rules/arb.json.good +174 -0
- package/dist/knowledge/baselines/rules/arbitration.json.good +393 -0
- package/dist/knowledge/baselines/rules/bridge.json.good +197 -0
- package/dist/knowledge/baselines/rules/contact.json.good +152 -0
- package/dist/knowledge/baselines/rules/demand.json.good +158 -0
- package/dist/knowledge/baselines/rules/graph.json.good +534 -0
- package/dist/knowledge/baselines/rules/guard.json +18 -5
- package/dist/knowledge/baselines/rules/guard.json.good +1192 -0
- package/dist/knowledge/baselines/rules/machine.json.good +734 -0
- package/dist/knowledge/baselines/rules/oracle.json +1 -1
- package/dist/knowledge/baselines/rules/oracle.json.good +120 -0
- package/dist/knowledge/baselines/rules/order.json.good +549 -0
- package/dist/knowledge/baselines/rules/payment.json.good +205 -0
- package/dist/knowledge/baselines/rules/permission.json.good +330 -0
- package/dist/knowledge/baselines/rules/personal.json.good +139 -0
- package/dist/knowledge/baselines/rules/plan.json +343 -1
- package/dist/knowledge/baselines/rules/plan.json.good +1187 -0
- package/dist/knowledge/baselines/rules/progress.json.good +364 -0
- package/dist/knowledge/baselines/rules/proof.json.good +158 -0
- package/dist/knowledge/baselines/rules/registrar.json.good +159 -0
- package/dist/knowledge/baselines/rules/repository.json.good +244 -0
- package/dist/knowledge/baselines/rules/resource.json.good +117 -0
- package/dist/knowledge/baselines/rules/reward.json +10 -10
- package/dist/knowledge/baselines/rules/reward.json.good +586 -0
- package/dist/knowledge/baselines/rules/service.json.good +595 -0
- package/dist/knowledge/baselines/rules/treasury.json.good +440 -0
- package/dist/knowledge/baselines/rules/util.json.good +101 -0
- package/dist/knowledge/builtin-templates.d.ts +13 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/chain-query-registry.js +1 -1
- package/dist/knowledge/discount-threshold.js +1 -1
- package/dist/knowledge/fee-param-bindings.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +2 -0
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-binding-table.js +1 -1
- package/dist/knowledge/guard-binding-verifier.js +1 -1
- package/dist/knowledge/guard-create-preflight.js +1 -0
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-host-context.js +1 -1
- package/dist/knowledge/guard-leg-eval.js +1 -0
- package/dist/knowledge/guard-node-gates.js +1 -1
- package/dist/knowledge/guard-puzzle.js +1 -1
- package/dist/knowledge/guard-quality.js +1 -0
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-semantic-walk.js +1 -0
- package/dist/knowledge/guard-templates.d.ts +1 -0
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/param-schema.js +1 -1
- package/dist/knowledge/param-tiers.js +1 -1
- package/dist/knowledge/path-oracle/coverage.js +1 -1
- package/dist/knowledge/path-oracle/index.js +1 -1
- package/dist/knowledge/path-oracle/products/airbnb.js +1 -0
- package/dist/knowledge/path-oracle/products/algora.js +1 -0
- package/dist/knowledge/path-oracle/products/alibaba-1688.js +1 -0
- package/dist/knowledge/path-oracle/products/amazon.js +1 -0
- package/dist/knowledge/path-oracle/products/beatstars.js +1 -0
- package/dist/knowledge/path-oracle/products/booking-com.js +1 -0
- package/dist/knowledge/path-oracle/products/contra.js +1 -0
- package/dist/knowledge/path-oracle/products/costco.js +1 -0
- package/dist/knowledge/path-oracle/products/coursera.js +1 -0
- package/dist/knowledge/path-oracle/products/duoduo-maicai.js +1 -0
- package/dist/knowledge/path-oracle/products/etsy.js +1 -0
- package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
- package/dist/knowledge/path-oracle/products/gamefound.js +1 -0
- package/dist/knowledge/path-oracle/products/gofundme.js +1 -0
- package/dist/knowledge/path-oracle/products/hackerone.js +1 -0
- package/dist/knowledge/path-oracle/products/kickstarter.js +1 -0
- package/dist/knowledge/path-oracle/products/klook.js +1 -0
- package/dist/knowledge/path-oracle/products/ninety-nine-designs.js +1 -0
- package/dist/knowledge/path-oracle/products/onlyfans.js +1 -0
- package/dist/knowledge/path-oracle/products/patreon.js +1 -0
- package/dist/knowledge/path-oracle/products/pinduoduo-kuaituantuan.js +1 -0
- package/dist/knowledge/path-oracle/products/royalty-exchange.js +1 -0
- package/dist/knowledge/path-oracle/products/shansong.js +1 -0
- package/dist/knowledge/path-oracle/products/taobao-presale.js +1 -0
- package/dist/knowledge/path-oracle/products/upwork-catalog.js +1 -0
- package/dist/knowledge/path-oracle/products/upwork.js +1 -0
- package/dist/knowledge/path-oracle/products/yuanfudao.js +1 -0
- package/dist/knowledge/path-oracle/products/ziroom.js +1 -0
- package/dist/knowledge/pattern-resolutions.js +1 -1
- package/dist/knowledge/product-detail-source.js +1 -1
- package/dist/knowledge/product-doc-b5.js +1 -1
- package/dist/knowledge/product-doc-facets.js +1 -0
- package/dist/knowledge/projection.js +1 -1
- package/dist/knowledge/publish-gate.js +1 -1
- package/dist/knowledge/publish-surface-contract.js +1 -1
- package/dist/knowledge/recipient-constraint.d.ts +20 -0
- package/dist/knowledge/recipient-constraint.js +1 -1
- package/dist/knowledge/rule-declaration-types.d.ts +13 -0
- package/dist/knowledge/rule-declaration-types.js +1 -0
- package/dist/knowledge/rule-declarations.js +1 -0
- package/dist/knowledge/scenario-modes.d.ts +6 -0
- package/dist/knowledge/scenario-topology.js +1 -1
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-prose.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/review/service.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +9 -0
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/arbitration.d.ts +8 -0
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +8 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +2 -0
- package/dist/schema/call/error-codes.d.ts +1 -1
- package/dist/schema/call/error-codes.js +1 -1
- package/dist/schema/call/handler.d.ts +2 -1
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/order.d.ts +10 -0
- package/dist/schema/call/permission-handler.js +1 -1
- package/dist/schema/call/permission.js +1 -1
- package/dist/schema/call/progress.d.ts +15 -0
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/receipt.d.ts +1 -0
- package/dist/schema/call/receipt.js +1 -1
- package/dist/schema/call/repository.d.ts +12 -0
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.d.ts +1 -0
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +5 -3
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/envelope-unify.js +1 -1
- package/dist/schema/goal/index.d.ts +23 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +2 -2
- package/dist/schema/local/index.d.ts +20 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.d.ts +4 -0
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +5 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +944 -1
- package/dist/schema/operations.js +1 -1
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +5 -5
- package/dist/schema/query/index.js +1 -1
- 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.schema.json +1 -257
- package/dist/schemas/ask_user.schema.json +1 -78
- package/dist/schemas/benchmark_migration_operation.schema.json +1 -626
- package/dist/schemas/bridge_operation.schema.json +1 -1069
- package/dist/schemas/config_operation.schema.json +1 -82
- package/dist/schemas/employee_operation.schema.json +1 -319
- package/dist/schemas/evaluation_operation.schema.json +1 -3932
- package/dist/schemas/goal_operation.schema.json +1 -1650
- package/dist/schemas/guard2file.schema.json +1 -137
- package/dist/schemas/index.json +1 -285
- package/dist/schemas/industry_pack_operation.schema.json +1 -582
- package/dist/schemas/intent_radar.schema.json +1 -155
- package/dist/schemas/keeper_operation.schema.json +1 -364
- package/dist/schemas/local_cache_operation.schema.json +1 -116
- package/dist/schemas/local_history_operation.schema.json +1 -105
- package/dist/schemas/local_info_operation.schema.json +1 -140
- package/dist/schemas/local_mark_operation.schema.json +1 -124
- package/dist/schemas/machineNode2file.schema.json +1 -137
- package/dist/schemas/messenger_operation.schema.json +1 -2068
- package/dist/schemas/monitor_events.schema.json +1 -87
- package/dist/schemas/monitor_subscription.schema.json +1 -327
- package/dist/schemas/onchain_events.schema.json +1 -207
- package/dist/schemas/onchain_operations.schema.json +1 -28699
- package/dist/schemas/onchain_operations_allocation.schema.json +1 -1376
- package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1355
- package/dist/schemas/onchain_operations_contact.schema.json +1 -988
- package/dist/schemas/onchain_operations_demand.schema.json +1 -1146
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1 -663
- package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -180
- package/dist/schemas/onchain_operations_guard.schema.json +1 -8518
- package/dist/schemas/onchain_operations_machine.schema.json +1 -1879
- package/dist/schemas/onchain_operations_order.schema.json +1 -1121
- package/dist/schemas/onchain_operations_payment.schema.json +1 -316
- package/dist/schemas/onchain_operations_permission.schema.json +1 -1036
- package/dist/schemas/onchain_operations_personal.schema.json +1 -1463
- package/dist/schemas/onchain_operations_progress.schema.json +1 -1041
- package/dist/schemas/onchain_operations_proof.schema.json +1 -750
- package/dist/schemas/onchain_operations_repository.schema.json +1 -2046
- package/dist/schemas/onchain_operations_reward.schema.json +1 -1286
- package/dist/schemas/onchain_operations_service.schema.json +1 -2602
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -1527
- package/dist/schemas/onchain_table_data.schema.json +1 -1146
- package/dist/schemas/permission_operation.schema.json +1 -43
- package/dist/schemas/persona_operation.schema.json +1 -10424
- package/dist/schemas/query_toolkit.schema.json +1 -1867
- package/dist/schemas/schema_query.schema.json +1 -116
- package/dist/schemas/service_clone_operation.schema.json +1 -49
- package/dist/schemas/settle_sweep.schema.json +1 -0
- package/dist/schemas/strategy_review_operation.schema.json +1 -66
- package/dist/schemas/verify_guard_dry_run.schema.json +1 -0
- package/dist/schemas/watch_operation.schema.json +1 -145
- package/dist/schemas/wip_file.schema.json +1 -299
- package/dist/schemas/workflow_operation.schema.json +1 -722
- package/dist/schemas/workspace_operation.schema.json +1 -104
- package/dist/schemas/wowok_buildin_info.schema.json +1 -758
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/entry-edge-recipe.js +1 -1
- package/dist/tools/handlers/file-export.js +1 -1
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/pending-settlement-recipe.js +1 -0
- package/dist/tools/handlers/plan-recovery.js +1 -0
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/repository-row-id.js +1 -0
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/handlers/settle-sweep.js +1 -0
- package/dist/tools/handlers/stale-build-check.js +1 -1
- package/dist/tools/handlers/submission-assembly.js +1 -1
- package/dist/tools/handlers/verify-guard-dry-run.js +1 -0
- package/dist/tools/handlers/wip-upload.js +1 -1
- package/dist/tools/index.d.ts +3 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.js +1 -1
- package/dist/tools/publish-gate-state.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/types.d.ts +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +11 -4
- package/dist/chain-semantics/composition-truth.d.ts +0 -102
- package/dist/chain-semantics/eval-order.d.ts +0 -17
- package/dist/chain-semantics/field-capability.d.ts +0 -11
- package/dist/chain-semantics/freeze-map.d.ts +0 -11
- package/dist/chain-semantics/fund-flow.d.ts +0 -10
- package/dist/chain-semantics/guard-verbs.d.ts +0 -22
- package/dist/chain-semantics/index.d.ts +0 -12
- package/dist/chain-semantics/object-graph.d.ts +0 -18
- package/dist/communication/evidence.d.ts +0 -6
- package/dist/communication/message-cursors.d.ts +0 -35
- package/dist/communication/proof-reuse.d.ts +0 -9
- package/dist/communication/wts-attestation.d.ts +0 -39
- package/dist/composition/audit.d.ts +0 -15
- package/dist/composition/blueprint-view.d.ts +0 -63
- package/dist/composition/compile.d.ts +0 -83
- package/dist/composition/emit-phases.d.ts +0 -234
- package/dist/composition/generate.d.ts +0 -40
- package/dist/composition/guard-fill.d.ts +0 -52
- package/dist/composition/inflight.d.ts +0 -86
- package/dist/composition/input-normalize.d.ts +0 -15
- package/dist/composition/materialize.d.ts +0 -78
- package/dist/composition/mode-gates.d.ts +0 -35
- package/dist/composition/param-disclosure.d.ts +0 -61
- package/dist/composition/plan-retry-ledger.d.ts +0 -37
- package/dist/composition/plan.d.ts +0 -121
- package/dist/composition/product-card.d.ts +0 -94
- package/dist/composition/reflux.d.ts +0 -28
- package/dist/composition/supply-chain-emit.d.ts +0 -46
- package/dist/config/config-audit.spec.d.ts +0 -1
- package/dist/config/config-audit.spec.js +0 -1
- package/dist/config/config-warnings.d.ts +0 -2
- package/dist/config/index.d.ts +0 -4
- package/dist/config/judgment.spec.d.ts +0 -1
- package/dist/config/judgment.spec.js +0 -1
- package/dist/config/match-policy-file.d.ts +0 -34
- package/dist/config/match-policy-file.spec.d.ts +0 -1
- package/dist/config/match-policy-file.spec.js +0 -1
- package/dist/config/rule-engine.spec.d.ts +0 -1
- package/dist/config/rule-engine.spec.js +0 -1
- package/dist/config/runtime.d.ts +0 -29
- package/dist/config/store-policy.d.ts +0 -14
- package/dist/config/store-policy.spec.d.ts +0 -1
- package/dist/config/store-policy.spec.js +0 -1
- package/dist/config/template-params.d.ts +0 -42
- package/dist/config/template-params.spec.d.ts +0 -1
- package/dist/config/template-params.spec.js +0 -1
- package/dist/customer/account-events.d.ts +0 -32
- package/dist/data/api/api.spec.d.ts +0 -1
- package/dist/data/api/api.spec.js +0 -1
- package/dist/data/api/cli.d.ts +0 -1
- package/dist/data/api/head.d.ts +0 -16
- package/dist/data/api/head.spec.d.ts +0 -1
- package/dist/data/api/head.spec.js +0 -1
- package/dist/data/api/index.d.ts +0 -2
- package/dist/data/api/match.d.ts +0 -69
- package/dist/data/api/match.spec.d.ts +0 -1
- package/dist/data/api/match.spec.js +0 -1
- package/dist/data/api/server.d.ts +0 -13
- package/dist/data/projection/cli.d.ts +0 -1
- package/dist/data/projection/edges.d.ts +0 -8
- package/dist/data/projection/edges.spec.d.ts +0 -1
- package/dist/data/projection/edges.spec.js +0 -1
- package/dist/data/projection/facets.d.ts +0 -18
- package/dist/data/projection/facets.spec.d.ts +0 -1
- package/dist/data/projection/facets.spec.js +0 -1
- package/dist/data/projection/facts.d.ts +0 -40
- package/dist/data/projection/index.d.ts +0 -6
- package/dist/data/projection/project.d.ts +0 -10
- package/dist/data/projection/projection.spec.d.ts +0 -1
- package/dist/data/projection/projection.spec.js +0 -1
- package/dist/data/projection/schema.d.ts +0 -1
- package/dist/data/projection/store.d.ts +0 -51
- package/dist/data/projection/types.d.ts +0 -169
- package/dist/data/sync/cdc.d.ts +0 -33
- package/dist/data/sync/cdc.spec.d.ts +0 -1
- package/dist/data/sync/cdc.spec.js +0 -1
- package/dist/data/sync/graphql-source.d.ts +0 -16
- package/dist/data/sync/index.d.ts +0 -5
- package/dist/data/sync/reconciler.d.ts +0 -14
- package/dist/data/sync/reconciler.spec.d.ts +0 -1
- package/dist/data/sync/reconciler.spec.js +0 -1
- package/dist/data/sync/schema.d.ts +0 -1
- package/dist/data/sync/store.d.ts +0 -24
- package/dist/data/sync/sync.spec.d.ts +0 -1
- package/dist/data/sync/sync.spec.js +0 -1
- package/dist/data/sync/synchronizer.d.ts +0 -10
- package/dist/data/sync/types.d.ts +0 -164
- package/dist/evaluation/acceptance.d.ts +0 -33
- package/dist/evaluation/architecture.spec.d.ts +0 -1
- package/dist/evaluation/architecture.spec.js +0 -1
- package/dist/evaluation/builtins/arbitration-score.d.ts +0 -42
- package/dist/evaluation/builtins/demand-match.d.ts +0 -16
- package/dist/evaluation/builtins/graph-service.spec.d.ts +0 -1
- package/dist/evaluation/builtins/graph-service.spec.js +0 -1
- package/dist/evaluation/builtins/index.d.ts +0 -4
- package/dist/evaluation/builtins/purity.spec.d.ts +0 -1
- package/dist/evaluation/builtins/purity.spec.js +0 -1
- package/dist/evaluation/composer.d.ts +0 -38
- package/dist/evaluation/facets/catalog.d.ts +0 -19
- package/dist/evaluation/gap.d.ts +0 -2
- package/dist/evaluation/guard-scan.d.ts +0 -10
- package/dist/evaluation/index.d.ts +0 -14
- package/dist/evaluation/injection.d.ts +0 -6
- package/dist/evaluation/location-match.d.ts +0 -42
- package/dist/evaluation/match-operation.d.ts +0 -23
- package/dist/evaluation/match-policy-resolver.d.ts +0 -9
- package/dist/evaluation/match-policy.spec.d.ts +0 -1
- package/dist/evaluation/match-policy.spec.js +0 -1
- package/dist/evaluation/path-reasoning.d.ts +0 -37
- package/dist/evaluation/standards.d.ts +0 -11
- package/dist/evaluation/standards.spec.d.ts +0 -1
- package/dist/evaluation/standards.spec.js +0 -1
- package/dist/evaluation/structured-lines.d.ts +0 -8
- package/dist/evaluation/user-injection.d.ts +0 -6
- package/dist/experience/experience-reuse.d.ts +0 -10
- package/dist/experience/index.d.ts +0 -7
- package/dist/experience/persistence-config.d.ts +0 -6
- package/dist/experience/persistence.d.ts +0 -21
- package/dist/experience/realtime-feedback.d.ts +0 -5
- package/dist/experience/user-profile.d.ts +0 -25
- package/dist/extensions/capability.d.ts +0 -91
- package/dist/extensions/industry-audit.spec.d.ts +0 -1
- package/dist/extensions/industry-audit.spec.js +0 -1
- package/dist/goal/GoalClassifier.d.ts +0 -17
- package/dist/goal/GoalEngine.d.ts +0 -175
- package/dist/goal/GoalStore.d.ts +0 -27
- package/dist/goal/next-steps.d.ts +0 -12
- package/dist/goal/plan-approval.d.ts +0 -5
- package/dist/goal/pursue.d.ts +0 -18
- package/dist/graph/base.d.ts +0 -8
- package/dist/graph/onchain/analyze.d.ts +0 -59
- package/dist/graph/onchain/analyze.spec.d.ts +0 -1
- package/dist/graph/onchain/analyze.spec.js +0 -1
- package/dist/graph/onchain/anti-cheat.d.ts +0 -69
- package/dist/graph/onchain/anti-cheat.spec.d.ts +0 -1
- package/dist/graph/onchain/anti-cheat.spec.js +0 -1
- package/dist/graph/onchain/dataplane.d.ts +0 -44
- package/dist/graph/onchain/edge-batch.spec.d.ts +0 -1
- package/dist/graph/onchain/edge-batch.spec.js +0 -1
- package/dist/graph/onchain/edge-schema.d.ts +0 -69
- package/dist/graph/onchain/entity-profile.spec.d.ts +0 -1
- package/dist/graph/onchain/entity-profile.spec.js +0 -1
- package/dist/graph/onchain/event-history.spec.d.ts +0 -1
- package/dist/graph/onchain/event-history.spec.js +0 -1
- package/dist/graph/onchain/expand.d.ts +0 -4
- package/dist/graph/onchain/exploration.d.ts +0 -28
- package/dist/graph/onchain/exploration.spec.d.ts +0 -1
- package/dist/graph/onchain/exploration.spec.js +0 -1
- package/dist/graph/onchain/exposure.d.ts +0 -18
- package/dist/graph/onchain/exposure.spec.d.ts +0 -1
- package/dist/graph/onchain/exposure.spec.js +0 -1
- package/dist/graph/onchain/extract-deep.spec.d.ts +0 -1
- package/dist/graph/onchain/extract-deep.spec.js +0 -1
- package/dist/graph/onchain/extract.d.ts +0 -29
- package/dist/graph/onchain/facet-projection.d.ts +0 -99
- package/dist/graph/onchain/facet-projection.spec.d.ts +0 -1
- package/dist/graph/onchain/facet-projection.spec.js +0 -1
- package/dist/graph/onchain/facts.spec.d.ts +0 -1
- package/dist/graph/onchain/facts.spec.js +0 -1
- package/dist/graph/onchain/field-manifest.d.ts +0 -29
- package/dist/graph/onchain/field-manifest.spec.d.ts +0 -1
- package/dist/graph/onchain/field-manifest.spec.js +0 -1
- package/dist/graph/onchain/fixtures.d.ts +0 -80
- package/dist/graph/onchain/fixtures.spec.d.ts +0 -1
- package/dist/graph/onchain/fixtures.spec.js +0 -1
- package/dist/graph/onchain/graph-policy.spec.d.ts +0 -1
- package/dist/graph/onchain/graph-policy.spec.js +0 -1
- package/dist/graph/onchain/index.d.ts +0 -29
- package/dist/graph/onchain/interest.d.ts +0 -10
- package/dist/graph/onchain/interest.spec.d.ts +0 -1
- package/dist/graph/onchain/interest.spec.js +0 -1
- package/dist/graph/onchain/label-lint.spec.d.ts +0 -1
- package/dist/graph/onchain/label-lint.spec.js +0 -1
- package/dist/graph/onchain/names.d.ts +0 -23
- package/dist/graph/onchain/names.spec.d.ts +0 -1
- package/dist/graph/onchain/names.spec.js +0 -1
- package/dist/graph/onchain/object-held-receipts.d.ts +0 -20
- package/dist/graph/onchain/object-held-receipts.spec.d.ts +0 -1
- package/dist/graph/onchain/object-held-receipts.spec.js +0 -1
- package/dist/graph/onchain/onchain.spec.d.ts +0 -1
- package/dist/graph/onchain/onchain.spec.js +0 -1
- package/dist/graph/onchain/policy.d.ts +0 -8
- package/dist/graph/onchain/project-relationship.d.ts +0 -3
- package/dist/graph/onchain/proposal-graph.d.ts +0 -11
- package/dist/graph/onchain/proposal-graph.spec.d.ts +0 -1
- package/dist/graph/onchain/proposal-graph.spec.js +0 -1
- package/dist/graph/onchain/sdk-batch.d.ts +0 -129
- package/dist/graph/onchain/sdk-dataplane.d.ts +0 -44
- package/dist/graph/onchain/strategy.spec.d.ts +0 -1
- package/dist/graph/onchain/strategy.spec.js +0 -1
- package/dist/graph/onchain/synthesis.d.ts +0 -20
- package/dist/graph/onchain/synthesis.spec.d.ts +0 -1
- package/dist/graph/onchain/synthesis.spec.js +0 -1
- package/dist/graph/onchain/table-ledger.spec.d.ts +0 -1
- package/dist/graph/onchain/table-ledger.spec.js +0 -1
- package/dist/graph/onchain/viewport.d.ts +0 -6
- package/dist/harness/auto-escalation.d.ts +0 -15
- package/dist/intent/enrich.d.ts +0 -1
- package/dist/intent/index.d.ts +0 -23
- package/dist/intent/matcher.d.ts +0 -2
- package/dist/intent/store.d.ts +0 -19
- package/dist/intent/types.d.ts +0 -32
- package/dist/keeper/KeeperScan.d.ts +0 -41
- package/dist/keeper/KeeperStore.d.ts +0 -43
- package/dist/keeper/detectors.d.ts +0 -42
- package/dist/keeper/keeper.spec.d.ts +0 -1
- package/dist/keeper/keeper.spec.js +0 -1
- package/dist/keeper/types.d.ts +0 -67
- package/dist/knowledge/account-marks.d.ts +0 -36
- package/dist/knowledge/allocation-ledger.d.ts +0 -75
- package/dist/knowledge/allocation-puzzle.d.ts +0 -138
- package/dist/knowledge/allocation-risk.d.ts +0 -82
- package/dist/knowledge/allocation-templates.d.ts +0 -38
- package/dist/knowledge/allocator-rail-verifier.d.ts +0 -59
- package/dist/knowledge/anti-cheat.d.ts +0 -2
- package/dist/knowledge/arb-fund-facts.d.ts +0 -51
- package/dist/knowledge/arb-risk.d.ts +0 -39
- package/dist/knowledge/arbitration-puzzle.d.ts +0 -84
- package/dist/knowledge/arbitration-rail-verifier.d.ts +0 -35
- package/dist/knowledge/arbitration-risk.d.ts +0 -114
- package/dist/knowledge/arbitration-templates.d.ts +0 -39
- package/dist/knowledge/arbitration-venue-order.d.ts +0 -25
- package/dist/knowledge/baselines/guard-lint-baseline.spec.d.ts +0 -1
- package/dist/knowledge/baselines/guard-lint-baseline.spec.js +0 -1
- package/dist/knowledge/baselines/risk-baselines.spec.d.ts +0 -1
- package/dist/knowledge/baselines/risk-baselines.spec.js +0 -1
- package/dist/knowledge/baselines/risk-cases.d.ts +0 -8
- package/dist/knowledge/baselines/semantic-facts.d.ts +0 -12
- package/dist/knowledge/bridge-risk.d.ts +0 -36
- package/dist/knowledge/catalog-facts.d.ts +0 -4
- package/dist/knowledge/chain-query-registry.d.ts +0 -14
- package/dist/knowledge/commission-landing.d.ts +0 -26
- package/dist/knowledge/component-schema.d.ts +0 -64
- package/dist/knowledge/contact-risk.d.ts +0 -32
- package/dist/knowledge/contact-templates.d.ts +0 -26
- package/dist/knowledge/contract-invariants.d.ts +0 -54
- package/dist/knowledge/demand-risk.d.ts +0 -30
- package/dist/knowledge/discount-threshold.d.ts +0 -26
- package/dist/knowledge/dynamic-pricing.d.ts +0 -29
- package/dist/knowledge/entity-recipient-guard.d.ts +0 -21
- package/dist/knowledge/event-semantics.d.ts +0 -23
- package/dist/knowledge/evidence-review.d.ts +0 -35
- package/dist/knowledge/fee-param-bindings.d.ts +0 -28
- package/dist/knowledge/flywheel-loop.d.ts +0 -41
- package/dist/knowledge/game-scenarios.d.ts +0 -21
- package/dist/knowledge/getting-started.d.ts +0 -37
- package/dist/knowledge/goal-completion.d.ts +0 -31
- package/dist/knowledge/guard-anchor-reach.d.ts +0 -19
- package/dist/knowledge/guard-binding-table.d.ts +0 -52
- package/dist/knowledge/guard-binding-verifier.d.ts +0 -37
- package/dist/knowledge/guard-bindings.d.ts +0 -21
- package/dist/knowledge/guard-blueprint.d.ts +0 -68
- package/dist/knowledge/guard-design-patterns.d.ts +0 -38
- package/dist/knowledge/guard-eval.d.ts +0 -15
- package/dist/knowledge/guard-field-cognition.d.ts +0 -48
- package/dist/knowledge/guard-host-context.d.ts +0 -24
- package/dist/knowledge/guard-ledger.d.ts +0 -19
- package/dist/knowledge/guard-leg-map.d.ts +0 -5
- package/dist/knowledge/guard-lint.d.ts +0 -79
- package/dist/knowledge/guard-node-gates.d.ts +0 -9
- package/dist/knowledge/guard-puzzle.d.ts +0 -188
- package/dist/knowledge/guard-render.d.ts +0 -71
- package/dist/knowledge/guard-risk.d.ts +0 -71
- package/dist/knowledge/guard-submission-brief.d.ts +0 -94
- package/dist/knowledge/guard-submission-prompt.d.ts +0 -63
- package/dist/knowledge/guard-translation.d.ts +0 -58
- package/dist/knowledge/index.d.ts +0 -299
- package/dist/knowledge/industry-evolution.d.ts +0 -82
- package/dist/knowledge/industry-generalizer.d.ts +0 -63
- package/dist/knowledge/industry-rule-node.d.ts +0 -7
- package/dist/knowledge/industry-strategy.d.ts +0 -91
- package/dist/knowledge/intent-metrics.d.ts +0 -43
- package/dist/knowledge/jsonrpc-enum.d.ts +0 -102
- package/dist/knowledge/knob-docs.d.ts +0 -5
- package/dist/knowledge/machine-fork-watch.d.ts +0 -9
- package/dist/knowledge/machine-ledger.d.ts +0 -42
- package/dist/knowledge/machine-puzzle.d.ts +0 -206
- package/dist/knowledge/machine-risk.d.ts +0 -72
- package/dist/knowledge/machine-templates.d.ts +0 -92
- package/dist/knowledge/machine-topology.d.ts +0 -116
- package/dist/knowledge/machine-translation.d.ts +0 -96
- package/dist/knowledge/market-metrics.d.ts +0 -34
- package/dist/knowledge/market-operations.d.ts +0 -46
- package/dist/knowledge/migration-preflight.d.ts +0 -27
- package/dist/knowledge/object-dependency.d.ts +0 -31
- package/dist/knowledge/operation-dictionary.d.ts +0 -18
- package/dist/knowledge/order-ledger.d.ts +0 -69
- package/dist/knowledge/order-puzzle.d.ts +0 -162
- package/dist/knowledge/order-risk.d.ts +0 -62
- package/dist/knowledge/order-templates.d.ts +0 -50
- package/dist/knowledge/param-schema.d.ts +0 -93
- package/dist/knowledge/param-tiers.d.ts +0 -27
- package/dist/knowledge/passport-ledger.d.ts +0 -60
- package/dist/knowledge/passport-templates.d.ts +0 -40
- package/dist/knowledge/path-oracle/coverage.d.ts +0 -16
- package/dist/knowledge/path-oracle/index.d.ts +0 -5
- package/dist/knowledge/path-oracle/products/food-delivery.d.ts +0 -2
- package/dist/knowledge/path-oracle/schema.d.ts +0 -188
- package/dist/knowledge/pattern-resolutions.d.ts +0 -110
- package/dist/knowledge/payment-risk.d.ts +0 -38
- package/dist/knowledge/payment-tracker.d.ts +0 -63
- package/dist/knowledge/permission-ledger.d.ts +0 -49
- package/dist/knowledge/permission-puzzle.d.ts +0 -122
- package/dist/knowledge/permission-risk.d.ts +0 -70
- package/dist/knowledge/permission-templates.d.ts +0 -38
- package/dist/knowledge/personal-risk.d.ts +0 -36
- package/dist/knowledge/product-detail-source.d.ts +0 -37
- package/dist/knowledge/product-doc-b5.d.ts +0 -16
- package/dist/knowledge/progress-ledger.d.ts +0 -63
- package/dist/knowledge/progress-puzzle.d.ts +0 -82
- package/dist/knowledge/progress-risk.d.ts +0 -75
- package/dist/knowledge/progress-templates.d.ts +0 -38
- package/dist/knowledge/projection.d.ts +0 -54
- package/dist/knowledge/projection.spec.d.ts +0 -1
- package/dist/knowledge/projection.spec.js +0 -1
- package/dist/knowledge/proof-risk.d.ts +0 -33
- package/dist/knowledge/protocol-facts.d.ts +0 -17
- package/dist/knowledge/publish-gate.d.ts +0 -20
- package/dist/knowledge/publish-readiness.d.ts +0 -25
- package/dist/knowledge/publish-surface-contract.d.ts +0 -16
- package/dist/knowledge/puzzle-projections.d.ts +0 -11
- package/dist/knowledge/rail-exit-satisfiability.d.ts +0 -25
- package/dist/knowledge/registrar-risk.d.ts +0 -34
- package/dist/knowledge/release-sentinel.d.ts +0 -12
- package/dist/knowledge/repository-risk.d.ts +0 -46
- package/dist/knowledge/repository-write-semantics.d.ts +0 -27
- package/dist/knowledge/reputation-rules.d.ts +0 -36
- package/dist/knowledge/requirement-families.d.ts +0 -13
- package/dist/knowledge/resource-risk.d.ts +0 -32
- package/dist/knowledge/reward-ledger.d.ts +0 -97
- package/dist/knowledge/reward-puzzle.d.ts +0 -98
- package/dist/knowledge/reward-risk.d.ts +0 -86
- package/dist/knowledge/reward-templates.d.ts +0 -25
- package/dist/knowledge/rule-node-analyzers.d.ts +0 -49
- package/dist/knowledge/rule-outcome.d.ts +0 -5
- package/dist/knowledge/scenario-topology.d.ts +0 -48
- package/dist/knowledge/semantic-ir.d.ts +0 -136
- package/dist/knowledge/service-allocation-semantics.d.ts +0 -36
- package/dist/knowledge/service-allocator-audit-node.d.ts +0 -3
- package/dist/knowledge/service-ledger.d.ts +0 -87
- package/dist/knowledge/service-puzzle.d.ts +0 -158
- package/dist/knowledge/service-risk-node.d.ts +0 -3
- package/dist/knowledge/service-risk.d.ts +0 -110
- package/dist/knowledge/service-templates.d.ts +0 -41
- package/dist/knowledge/settlement-semantics.d.ts +0 -1
- package/dist/knowledge/strategy-manuals.d.ts +0 -15
- package/dist/knowledge/supply-chain.d.ts +0 -35
- package/dist/knowledge/template-index.d.ts +0 -19
- package/dist/knowledge/template-loader.d.ts +0 -425
- package/dist/knowledge/template-nav.d.ts +0 -9
- package/dist/knowledge/template-prose.d.ts +0 -50
- package/dist/knowledge/template-registry.d.ts +0 -48
- package/dist/knowledge/template-scanner.d.ts +0 -158
- package/dist/knowledge/template-test-profiles.d.ts +0 -17
- package/dist/knowledge/template-validation.d.ts +0 -3
- package/dist/knowledge/tools-reference.d.ts +0 -17
- package/dist/knowledge/treasury-ledger.d.ts +0 -42
- package/dist/knowledge/treasury-puzzle.d.ts +0 -163
- package/dist/knowledge/treasury-risk.d.ts +0 -88
- package/dist/knowledge/treasury-templates.d.ts +0 -38
- package/dist/knowledge/universal-template.d.ts +0 -22
- package/dist/knowledge/util-risk.d.ts +0 -30
- package/dist/knowledge/workflow-guidance.d.ts +0 -194
- package/dist/knowledge/workspace-lists.d.ts +0 -61
- package/dist/monitor/SuggestionBridge.spec.d.ts +0 -1
- package/dist/monitor/SuggestionBridge.spec.js +0 -1
- package/dist/participation/arbitrator-interest.d.ts +0 -22
- package/dist/participation/demander-interest.d.ts +0 -23
- package/dist/participation/employee-kpi.d.ts +0 -37
- package/dist/participation/employee-kpi.spec.d.ts +0 -1
- package/dist/participation/employee-kpi.spec.js +0 -1
- package/dist/participation/employee-store.d.ts +0 -16
- package/dist/participation/game-context.d.ts +0 -25
- package/dist/participation/index.d.ts +0 -2
- package/dist/participation/node-action-advisor.d.ts +0 -68
- package/dist/participation/time-window.d.ts +0 -48
- package/dist/persona/facet-profile.d.ts +0 -33
- package/dist/persona/persona-audit.spec.d.ts +0 -1
- package/dist/persona/persona-audit.spec.js +0 -1
- package/dist/playbooks/service-build/business-puzzle.d.ts +0 -48
- package/dist/playbooks/service-build/context-assembly.d.ts +0 -32
- package/dist/playbooks/service-build/facet-money.d.ts +0 -33
- package/dist/playbooks/service-build/facet-money.spec.d.ts +0 -1
- package/dist/playbooks/service-build/facet-money.spec.js +0 -1
- package/dist/playbooks/service-build/game-theory.d.ts +0 -47
- package/dist/playbooks/service-build/index.d.ts +0 -15
- package/dist/playbooks/service-build/intent-analyzer.d.ts +0 -72
- package/dist/playbooks/service-build/machine-nodes.d.ts +0 -27
- package/dist/playbooks/service-build/machine-panorama.d.ts +0 -71
- package/dist/playbooks/service-build/merchant-guide.d.ts +0 -382
- package/dist/playbooks/service-build/migration-planner.d.ts +0 -61
- package/dist/playbooks/service-build/mode-actions.d.ts +0 -260
- package/dist/playbooks/service-build/object-panorama.d.ts +0 -317
- package/dist/playbooks/service-build/object-type.d.ts +0 -1
- package/dist/playbooks/service-build/participation-radar.d.ts +0 -20
- package/dist/playbooks/service-build/pipeline-actions.d.ts +0 -108
- package/dist/playbooks/service-build/process.d.ts +0 -6
- package/dist/playbooks/service-build/relationship-profile.d.ts +0 -3
- package/dist/playbooks/service-build/reverse-mapping-nk4.spec.d.ts +0 -1
- package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +0 -1
- package/dist/playbooks/service-build/reverse-mapping-refund-p0-5.spec.d.ts +0 -1
- package/dist/playbooks/service-build/reverse-mapping-refund-p0-5.spec.js +0 -1
- package/dist/playbooks/service-build/reverse-mapping.d.ts +0 -66
- package/dist/playbooks/service-build/risk-aggregator.d.ts +0 -59
- package/dist/playbooks/service-build/service-panorama.d.ts +0 -229
- package/dist/playbooks/service-build/service-quote.d.ts +0 -2
- package/dist/playbooks/service-build/service-quote.spec.d.ts +0 -1
- package/dist/playbooks/service-build/service-quote.spec.js +0 -1
- package/dist/playbooks/service-build/topology-evaluation.spec.d.ts +0 -1
- package/dist/playbooks/service-build/topology-evaluation.spec.js +0 -1
- package/dist/playbooks/service-build/topology-query.d.ts +0 -25
- package/dist/playbooks/service-build/workflow-design-assessment.d.ts +0 -33
- package/dist/relationship/derivation.d.ts +0 -95
- package/dist/relationship/derivation.spec.d.ts +0 -1
- package/dist/relationship/derivation.spec.js +0 -1
- package/dist/relationship/incentive.d.ts +0 -38
- package/dist/relationship/index.d.ts +0 -4
- package/dist/relationship/registry.d.ts +0 -13
- package/dist/relationship/types.d.ts +0 -45
- package/dist/review/arb.d.ts +0 -4
- package/dist/review/demand.d.ts +0 -3
- package/dist/review/index.d.ts +0 -3
- package/dist/review/machine.d.ts +0 -3
- package/dist/review/order.d.ts +0 -8
- package/dist/review/progress.d.ts +0 -3
- package/dist/review/repository.d.ts +0 -3
- package/dist/review/service.d.ts +0 -5
- package/dist/review/types.d.ts +0 -163
- package/dist/role/derivation.d.ts +0 -35
- package/dist/role/index.d.ts +0 -6
- package/dist/role/intent.d.ts +0 -23
- package/dist/role/model.d.ts +0 -9
- package/dist/role/profiles.d.ts +0 -26
- package/dist/role/resolution.d.ts +0 -27
- package/dist/runtime/instance-registry.d.ts +0 -14
- package/dist/safety/index.d.ts +0 -3
- package/dist/schema/call/permission-handler.d.ts +0 -5
- package/dist/schema/call/semantic-customer-advice.spec.d.ts +0 -1
- package/dist/schema/call/semantic-customer-advice.spec.js +0 -1
- package/dist/schema/common/tokentype-short-probe.spec.d.ts +0 -1
- package/dist/schema/common/tokentype-short-probe.spec.js +0 -1
- package/dist/schema/envelope-unify.d.ts +0 -5
- package/dist/schema/goal/planning.d.ts +0 -742
- package/dist/schema/industry-pack/modes.d.ts +0 -447
- package/dist/schema/query/bi.d.ts +0 -3369
- package/dist/schema/utils/guard-query-utils.d.ts +0 -18
- package/dist/schema/utils/permission-index-utils.d.ts +0 -2
- package/dist/schema/utils/skills-recommendation.d.ts +0 -2
- package/dist/schema-query-impl/index.d.ts +0 -83
- package/dist/schemas/account_operation.output.json +0 -3869
- package/dist/schemas/ask_user.output.json +0 -54
- package/dist/schemas/benchmark_migration_operation.output.json +0 -1669
- package/dist/schemas/bridge_operation.output.json +0 -1548
- package/dist/schemas/config_operation.output.json +0 -896
- package/dist/schemas/employee_operation.output.json +0 -307
- package/dist/schemas/evaluation_operation.output.json +0 -4716
- package/dist/schemas/guard2file.output.json +0 -83
- package/dist/schemas/industry_pack_operation.output.json +0 -2985
- package/dist/schemas/intent_radar.output.json +0 -326
- package/dist/schemas/keeper_operation.output.json +0 -1441
- package/dist/schemas/local_cache_operation.output.json +0 -1718
- package/dist/schemas/local_history_operation.output.json +0 -1644
- package/dist/schemas/local_info_operation.output.json +0 -1530
- package/dist/schemas/local_mark_operation.output.json +0 -1622
- package/dist/schemas/machineNode2file.output.json +0 -88
- package/dist/schemas/messenger_operation.output.json +0 -4692
- package/dist/schemas/monitor_events.output.json +0 -1602
- package/dist/schemas/monitor_subscription.output.json +0 -1629
- package/dist/schemas/onchain_events.output.json +0 -4053
- package/dist/schemas/onchain_operations.output.json +0 -7788
- package/dist/schemas/onchain_table_data.output.json +0 -11868
- package/dist/schemas/permission_operation.output.json +0 -205
- package/dist/schemas/persona_operation.output.json +0 -64612
- package/dist/schemas/query_toolkit.output.json +0 -28302
- package/dist/schemas/schema_query.output.json +0 -81
- package/dist/schemas/service_clone_operation.output.json +0 -247
- package/dist/schemas/strategy_review_operation.output.json +0 -532
- package/dist/schemas/watch_operation.output.json +0 -930
- package/dist/schemas/wip_file.output.json +0 -360
- package/dist/schemas/workflow_operation.output.json +0 -422
- package/dist/schemas/workspace_operation.output.json +0 -477
- package/dist/schemas/wowok_buildin_info.output.json +0 -2477
- package/dist/strategy/collectors.d.ts +0 -66
- package/dist/strategy/collectors.spec.d.ts +0 -1
- package/dist/strategy/collectors.spec.js +0 -1
- package/dist/strategy/index.d.ts +0 -5
- package/dist/strategy/metrics.d.ts +0 -20
- package/dist/strategy/review.d.ts +0 -48
- package/dist/strategy/scorecard.d.ts +0 -32
- package/dist/strategy/store.d.ts +0 -26
- package/dist/task/ProcessStore.d.ts +0 -98
- package/dist/task/playbook.d.ts +0 -11
- package/dist/task/substep-trace.d.ts +0 -91
- package/dist/tools/build-fingerprint.d.ts +0 -28
- package/dist/tools/error-catalog.d.ts +0 -17
- package/dist/tools/handlers/ask-user.d.ts +0 -3
- package/dist/tools/handlers/benchmark-migration.d.ts +0 -121
- package/dist/tools/handlers/bridge.d.ts +0 -8
- package/dist/tools/handlers/config.d.ts +0 -2
- package/dist/tools/handlers/dispatch-expectations.d.ts +0 -2
- package/dist/tools/handlers/dispatch-expectations.spec.d.ts +0 -1
- package/dist/tools/handlers/dispatch-expectations.spec.js +0 -1
- package/dist/tools/handlers/employee.d.ts +0 -8
- package/dist/tools/handlers/employee.spec.d.ts +0 -1
- package/dist/tools/handlers/employee.spec.js +0 -1
- package/dist/tools/handlers/entry-edge-recipe.d.ts +0 -101
- package/dist/tools/handlers/escrow-deficit.d.ts +0 -10
- package/dist/tools/handlers/evaluation.d.ts +0 -2
- package/dist/tools/handlers/evaluation.spec.d.ts +0 -1
- package/dist/tools/handlers/evaluation.spec.js +0 -1
- package/dist/tools/handlers/file-export.d.ts +0 -3
- package/dist/tools/handlers/fund-rail-recipe.d.ts +0 -10
- package/dist/tools/handlers/goal.d.ts +0 -4
- package/dist/tools/handlers/industry-pack.d.ts +0 -3
- package/dist/tools/handlers/intent-radar.d.ts +0 -2
- package/dist/tools/handlers/keeper.d.ts +0 -12
- package/dist/tools/handlers/local.d.ts +0 -6
- package/dist/tools/handlers/mark-namespace.d.ts +0 -30
- package/dist/tools/handlers/messenger.d.ts +0 -24
- package/dist/tools/handlers/monitor.d.ts +0 -26
- package/dist/tools/handlers/name-resolution.d.ts +0 -4
- package/dist/tools/handlers/name-resolution.spec.d.ts +0 -1
- package/dist/tools/handlers/name-resolution.spec.js +0 -1
- package/dist/tools/handlers/network.d.ts +0 -1
- package/dist/tools/handlers/onchain-name-registration.d.ts +0 -49
- package/dist/tools/handlers/onchain-name-registration.spec.d.ts +0 -1
- package/dist/tools/handlers/onchain-name-registration.spec.js +0 -1
- package/dist/tools/handlers/onchain.d.ts +0 -132
- package/dist/tools/handlers/permission.d.ts +0 -2
- package/dist/tools/handlers/persona.d.ts +0 -4
- package/dist/tools/handlers/publish-binding-echo.d.ts +0 -22
- package/dist/tools/handlers/review-chain.d.ts +0 -19
- package/dist/tools/handlers/schema-query.d.ts +0 -2
- package/dist/tools/handlers/service-clone.d.ts +0 -20
- package/dist/tools/handlers/stale-build-check.d.ts +0 -9
- package/dist/tools/handlers/strategy-review.d.ts +0 -2
- package/dist/tools/handlers/submission-assembly.d.ts +0 -55
- package/dist/tools/handlers/watch.d.ts +0 -2
- package/dist/tools/handlers/winner-derivation.d.ts +0 -20
- package/dist/tools/handlers/wip-upload.d.ts +0 -22
- package/dist/tools/handlers/wip.d.ts +0 -2
- package/dist/tools/handlers/workflow.d.ts +0 -2
- package/dist/tools/handlers/workspace.d.ts +0 -4
- package/dist/tools/move-fn-index.gen.d.ts +0 -3
- package/dist/tools/publish-gate-state.d.ts +0 -5
- package/dist/tools/registry/agent.d.ts +0 -2
- package/dist/tools/registry/bridge.d.ts +0 -2
- package/dist/tools/registry/business.d.ts +0 -2
- package/dist/tools/registry/config.d.ts +0 -2
- package/dist/tools/registry/evaluation.d.ts +0 -2
- package/dist/tools/registry/files.d.ts +0 -2
- package/dist/tools/registry/identity.d.ts +0 -2
- package/dist/tools/registry/interaction.d.ts +0 -2
- package/dist/tools/registry/local.d.ts +0 -2
- package/dist/tools/registry/messenger.d.ts +0 -2
- package/dist/tools/registry/monitor.d.ts +0 -2
- package/dist/tools/registry/onchain.d.ts +0 -2
- package/dist/tools/registry/query.d.ts +0 -2
- package/dist/tools/retry.d.ts +0 -8
- package/dist/tools/rules-hook.d.ts +0 -5
- package/dist/tools/runtime-health.d.ts +0 -10
- package/dist/tools/sanitize-description-roundtrip.spec.d.ts +0 -1
- package/dist/tools/sanitize-description-roundtrip.spec.js +0 -1
- package/dist/tools/sanitize-output.d.ts +0 -4
- package/dist/tools/sanitize-output.spec.d.ts +0 -1
- package/dist/tools/sanitize-output.spec.js +0 -1
- package/dist/tools/shared.d.ts +0 -20
- package/dist/tools/transport-integrity.d.ts +0 -7
- package/dist/tools/upgrade-check.d.ts +0 -75
- package/dist/tools/wip-deploy-assist.d.ts +0 -34
- package/dist/tools/wip-verify-ledger.d.ts +0 -16
- package/dist/tools/wrap.d.ts +0 -45
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { ALLOCATION_ERROR_CODES, type AllocationScene } from "./allocation-ledger.js";
|
|
2
|
-
import { type Facts, type FindingExposure } from "../config/rule-engine.js";
|
|
3
|
-
export type AllocationRiskLevel = "critical" | "high" | "medium" | "low";
|
|
4
|
-
export type AllocationRiskCategory = "structural" | "semantic" | "authority" | "lifecycle" | "cross_object";
|
|
5
|
-
export interface AllocationRisk {
|
|
6
|
-
id: string;
|
|
7
|
-
level: AllocationRiskLevel;
|
|
8
|
-
category: AllocationRiskCategory;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
affected_stakeholders: AllocationStakeholder[];
|
|
12
|
-
scenario: string;
|
|
13
|
-
mitigation: string;
|
|
14
|
-
evidence?: string;
|
|
15
|
-
related_move_error?: string;
|
|
16
|
-
related_guard_risk?: string;
|
|
17
|
-
auto_fixable: boolean;
|
|
18
|
-
exposure?: FindingExposure;
|
|
19
|
-
}
|
|
20
|
-
export type AllocationStakeholder = "owner" | "allocator" | "recipient" | "service_provider" | "system";
|
|
21
|
-
export interface AllocationRiskRule {
|
|
22
|
-
id: string;
|
|
23
|
-
category: AllocationRiskCategory;
|
|
24
|
-
trigger: string;
|
|
25
|
-
check: (ctx: AllocationRiskCheckContext) => AllocationRisk | null;
|
|
26
|
-
}
|
|
27
|
-
export interface AllocationRiskCheckContext {
|
|
28
|
-
object?: string | null;
|
|
29
|
-
allocators_config?: {
|
|
30
|
-
description?: string;
|
|
31
|
-
threshold: string | number;
|
|
32
|
-
allocators: {
|
|
33
|
-
guard: string;
|
|
34
|
-
sharing: {
|
|
35
|
-
who: {
|
|
36
|
-
GuardIdentifier: number;
|
|
37
|
-
} | {
|
|
38
|
-
Entity: string;
|
|
39
|
-
} | {
|
|
40
|
-
Signer: "signer";
|
|
41
|
-
};
|
|
42
|
-
sharing: string | number;
|
|
43
|
-
mode: "Amount" | "Rate" | "Surplus" | "RateGross" | "Formula";
|
|
44
|
-
}[];
|
|
45
|
-
fix?: string | number;
|
|
46
|
-
max?: string | number | null;
|
|
47
|
-
}[];
|
|
48
|
-
};
|
|
49
|
-
operation_type?: "create" | "receive" | "alloc_by_guard" | "query";
|
|
50
|
-
coin_type?: string;
|
|
51
|
-
has_payment_info?: boolean;
|
|
52
|
-
payment_info_for_object?: string | null;
|
|
53
|
-
trigger_source?: "service_order_allocators" | "arbitration_fees" | "standalone";
|
|
54
|
-
host_service_published?: boolean;
|
|
55
|
-
host_service_permission?: string;
|
|
56
|
-
referenced_treasuries_permissions?: Record<string, string>;
|
|
57
|
-
guard_signer_bindings?: Record<string, boolean>;
|
|
58
|
-
guard_has_time_lock?: Record<string, boolean>;
|
|
59
|
-
passport_identifier_types?: Record<number, string>;
|
|
60
|
-
has_fallback_allocator?: boolean;
|
|
61
|
-
guard_conditions_mutually_exclusive?: boolean;
|
|
62
|
-
bound_order?: string;
|
|
63
|
-
order_already_has_allocation?: boolean;
|
|
64
|
-
builder_address?: string;
|
|
65
|
-
}
|
|
66
|
-
export declare const STUCK_POOL_REMEDY: string;
|
|
67
|
-
export declare function allocationRiskFacts(ctx: AllocationRiskCheckContext): Facts;
|
|
68
|
-
export declare const ALLOCATION_RISK_VERSION = "1.2.0";
|
|
69
|
-
export declare function getAllRiskRules(): AllocationRiskRule[];
|
|
70
|
-
export interface AllocationRiskAssessment {
|
|
71
|
-
summary: string;
|
|
72
|
-
scene?: AllocationScene;
|
|
73
|
-
risks: AllocationRisk[];
|
|
74
|
-
overall_risk: AllocationRiskLevel;
|
|
75
|
-
risks_by_category: Partial<Record<AllocationRiskCategory, number>>;
|
|
76
|
-
risks_by_level: Partial<Record<AllocationRiskLevel, number>>;
|
|
77
|
-
stakeholder_advice: Partial<Record<AllocationStakeholder, string[]>>;
|
|
78
|
-
needs_human_review: boolean;
|
|
79
|
-
blocks_publish: boolean;
|
|
80
|
-
}
|
|
81
|
-
export declare function assessAllocationRisks(ctx: AllocationRiskCheckContext): AllocationRiskAssessment;
|
|
82
|
-
export { ALLOCATION_ERROR_CODES };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export type TemplateParamType = "address" | "string" | "number" | "string[]" | "address[]";
|
|
2
|
-
export interface AllocationTemplateParam {
|
|
3
|
-
name: string;
|
|
4
|
-
type: TemplateParamType;
|
|
5
|
-
description: string;
|
|
6
|
-
required: boolean;
|
|
7
|
-
default?: string | number | string[];
|
|
8
|
-
}
|
|
9
|
-
export interface AllocationTemplate {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
applicable_scenes: string[];
|
|
14
|
-
industry_tags: string[];
|
|
15
|
-
params: AllocationTemplateParam[];
|
|
16
|
-
body: (params: Record<string, string | number | string[]>) => object;
|
|
17
|
-
notes?: string[];
|
|
18
|
-
}
|
|
19
|
-
export declare const ALLOCATION_TEMPLATES: AllocationTemplate[];
|
|
20
|
-
export declare const ALLOCATION_TEMPLATES_VERSION = "1.1.0";
|
|
21
|
-
export declare function getAllTemplates(): AllocationTemplate[];
|
|
22
|
-
export declare function getTemplateById(id: string): AllocationTemplate | undefined;
|
|
23
|
-
export declare function getTemplatesByScene(sceneId: string): AllocationTemplate[];
|
|
24
|
-
export declare function getTemplatesByIndustry(industry: string): AllocationTemplate[];
|
|
25
|
-
export declare function suggestTemplateForScene(sceneId: string): AllocationTemplate | undefined;
|
|
26
|
-
export declare function listTemplates(): {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
description: string;
|
|
30
|
-
scenes: string[];
|
|
31
|
-
}[];
|
|
32
|
-
export declare function fillTemplate(templateId: string, params: Record<string, string | number | string[]>): {
|
|
33
|
-
ok: true;
|
|
34
|
-
body: object;
|
|
35
|
-
} | {
|
|
36
|
-
ok: false;
|
|
37
|
-
error: string;
|
|
38
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface GuardTreeNode {
|
|
2
|
-
type?: string;
|
|
3
|
-
nodes?: GuardTreeNode[];
|
|
4
|
-
node?: GuardTreeNode;
|
|
5
|
-
query?: string;
|
|
6
|
-
object?: {
|
|
7
|
-
identifier?: number;
|
|
8
|
-
};
|
|
9
|
-
identifier?: number;
|
|
10
|
-
[k: string]: unknown;
|
|
11
|
-
}
|
|
12
|
-
export interface GuardTableRow {
|
|
13
|
-
identifier?: number;
|
|
14
|
-
b_submission?: boolean;
|
|
15
|
-
value_type?: string;
|
|
16
|
-
value?: unknown;
|
|
17
|
-
[k: string]: unknown;
|
|
18
|
-
}
|
|
19
|
-
export interface RailGuardInput {
|
|
20
|
-
key: string;
|
|
21
|
-
track: "settlement" | "refund";
|
|
22
|
-
table: unknown[];
|
|
23
|
-
recoverTwin?: boolean;
|
|
24
|
-
recipient?: string;
|
|
25
|
-
root?: unknown;
|
|
26
|
-
}
|
|
27
|
-
export interface RailNodeInput {
|
|
28
|
-
name: string;
|
|
29
|
-
semanticRole?: string;
|
|
30
|
-
fromNodes?: string[];
|
|
31
|
-
}
|
|
32
|
-
export type RailFindingCode = "RAIL_TERMINAL_UNCOVERED" | "RAIL_AWARD_EXIT_MISSING" | "RAIL_CLAIMED_BY_LEG" | "RAIL_DEAD_LITERAL" | "RAIL_NO_CALLER_IDENTITY_BOUND" | "RAIL_NO_CALLER_IDENTITY" | "REFUND_RAIL_REPLAY_DISCLOSURE" | "REFUND_GATE_POLARITY_MIX" | "RAIL_NODE_SET_OVERLAP" | "RECOVER_COVERS_REFUND_TERMINAL";
|
|
33
|
-
export type RailFindingLevel = "critical" | "info";
|
|
34
|
-
export interface RailFinding {
|
|
35
|
-
code: RailFindingCode;
|
|
36
|
-
level: RailFindingLevel;
|
|
37
|
-
detail: string;
|
|
38
|
-
railKey?: string;
|
|
39
|
-
}
|
|
40
|
-
type Value = {
|
|
41
|
-
known: true;
|
|
42
|
-
value: unknown;
|
|
43
|
-
} | {
|
|
44
|
-
known: false;
|
|
45
|
-
};
|
|
46
|
-
export declare function resolveValue(table: GuardTableRow[], side: GuardTreeNode | undefined): Value;
|
|
47
|
-
export declare function railNodePins(tree: unknown, table: GuardTableRow[]): {
|
|
48
|
-
pos: Set<string>;
|
|
49
|
-
neg: Set<string>;
|
|
50
|
-
};
|
|
51
|
-
export declare function hasCallerIdentityLeg(tree: unknown): boolean;
|
|
52
|
-
export declare function refundGatePolarityMix(root: unknown): {
|
|
53
|
-
arms: string;
|
|
54
|
-
} | undefined;
|
|
55
|
-
export declare function verifyAllocatorRails(guards: RailGuardInput[], nodes: RailNodeInput[], opts?: {
|
|
56
|
-
arbitrationBound?: boolean;
|
|
57
|
-
declaredKeys?: ReadonlySet<string>;
|
|
58
|
-
}): RailFinding[];
|
|
59
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export interface ArbFundFactsOptions {
|
|
2
|
-
arbRef?: string;
|
|
3
|
-
orderRef?: string;
|
|
4
|
-
network?: string;
|
|
5
|
-
noCache?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface OrderFundFacts {
|
|
8
|
-
arb_case?: string;
|
|
9
|
-
arb_status?: number;
|
|
10
|
-
arb_indemnity?: string | number | null;
|
|
11
|
-
order: string;
|
|
12
|
-
order_amount: string;
|
|
13
|
-
claimed_by: string | null;
|
|
14
|
-
progress_node: string | null;
|
|
15
|
-
allocation: string | null;
|
|
16
|
-
allocation_balance: string | null;
|
|
17
|
-
escrow_deficit: string | null;
|
|
18
|
-
withdraw_history: {
|
|
19
|
-
payment: string;
|
|
20
|
-
amount: string;
|
|
21
|
-
time: string | number;
|
|
22
|
-
remark?: string;
|
|
23
|
-
released_to?: "order" | "other" | "mixed";
|
|
24
|
-
}[];
|
|
25
|
-
escrow_payouts_after_case: {
|
|
26
|
-
payment: string;
|
|
27
|
-
amount: string;
|
|
28
|
-
time: string | number;
|
|
29
|
-
}[];
|
|
30
|
-
order_time?: string | number;
|
|
31
|
-
case_time?: string | number;
|
|
32
|
-
object_versions: {
|
|
33
|
-
arb_case?: string;
|
|
34
|
-
order?: string;
|
|
35
|
-
allocation?: string;
|
|
36
|
-
progress?: string;
|
|
37
|
-
};
|
|
38
|
-
read_consistency: string;
|
|
39
|
-
}
|
|
40
|
-
export interface BuiltOrderFundFacts {
|
|
41
|
-
structured: OrderFundFacts;
|
|
42
|
-
text: string;
|
|
43
|
-
arb_key_diagnostic?: ArbKeyDiagnostic;
|
|
44
|
-
}
|
|
45
|
-
export interface ArbKeyDiagnostic {
|
|
46
|
-
ref: string;
|
|
47
|
-
resolved_address?: string;
|
|
48
|
-
resolved_type?: string;
|
|
49
|
-
note: string;
|
|
50
|
-
}
|
|
51
|
-
export declare function buildOrderFundFacts(opts: ArbFundFactsOptions): Promise<BuiltOrderFundFacts | undefined>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type Facts } from "../config/rule-engine.js";
|
|
2
|
-
export type ArbRiskLevel = "critical" | "high" | "medium" | "low" | "info";
|
|
3
|
-
export type ArbRiskCategory = "structural" | "lifecycle" | "semantic" | "permission" | "knowledge";
|
|
4
|
-
export type ArbStakeholder = "principal" | "arbitrator" | "voter" | "system";
|
|
5
|
-
export interface ArbRisk {
|
|
6
|
-
id: string;
|
|
7
|
-
level: ArbRiskLevel;
|
|
8
|
-
category: ArbRiskCategory;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
affected_stakeholders: ArbStakeholder[];
|
|
12
|
-
scenario: string;
|
|
13
|
-
mitigation: string;
|
|
14
|
-
evidence?: string;
|
|
15
|
-
related_move_error?: string;
|
|
16
|
-
auto_fixable: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface ArbRiskCheckContext {
|
|
19
|
-
status?: number;
|
|
20
|
-
invalid_transition?: boolean;
|
|
21
|
-
withdraw_too_early?: boolean;
|
|
22
|
-
proposition_count?: number;
|
|
23
|
-
votor_count?: number;
|
|
24
|
-
voting_deadline_none?: boolean;
|
|
25
|
-
expects_proposition_event?: boolean;
|
|
26
|
-
indemnity_none?: boolean;
|
|
27
|
-
weight_concentrated?: boolean;
|
|
28
|
-
expects_status_enum?: boolean;
|
|
29
|
-
order_mismatch?: boolean;
|
|
30
|
-
constants_synced?: boolean;
|
|
31
|
-
escrow_released_before_case?: boolean;
|
|
32
|
-
escrow_deficit_display?: string;
|
|
33
|
-
}
|
|
34
|
-
export declare function arbRiskFacts(ctx: ArbRiskCheckContext): Facts;
|
|
35
|
-
export declare const ARB_RISK_VERSION = "1.1.0";
|
|
36
|
-
export declare const ARB_RISK_RULES: Array<ArbRisk & {
|
|
37
|
-
trigger?: string;
|
|
38
|
-
}>;
|
|
39
|
-
export declare function checkArbRisks(ctx: ArbRiskCheckContext): ArbRisk[];
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { type ArbStatus, type VotingGuardEntry, type DualGuardMatrix } from "./arbitration-ledger.js";
|
|
2
|
-
export interface IntentPuzzle {
|
|
3
|
-
action: "create_arbitration" | "configure" | "configure_voting_guard" | "configure_usage_guard" | "file_dispute" | "confirm_materials" | "vote" | "provide_feedback" | "make_ruling" | "reset_arbitration" | "withdraw_fees" | "allocate_fees" | "pause_resume" | "transfer_ownership";
|
|
4
|
-
target_arb?: string;
|
|
5
|
-
target_order?: string;
|
|
6
|
-
rule_sentence: string;
|
|
7
|
-
failure_conditions: string[];
|
|
8
|
-
}
|
|
9
|
-
export interface ArbitrationConfigPuzzle {
|
|
10
|
-
description?: string;
|
|
11
|
-
location?: string;
|
|
12
|
-
fee?: string;
|
|
13
|
-
bPaused?: boolean;
|
|
14
|
-
coin_type?: string;
|
|
15
|
-
permission_address?: string;
|
|
16
|
-
um?: string | null;
|
|
17
|
-
}
|
|
18
|
-
export interface VotingGuardPuzzle {
|
|
19
|
-
guards: VotingGuardEntry[];
|
|
20
|
-
weight_mode: "GuardIdentifier" | "FixedValue" | "mixed" | "none";
|
|
21
|
-
cooperation_matrix?: DualGuardMatrix;
|
|
22
|
-
}
|
|
23
|
-
export interface UsageGuardPuzzle {
|
|
24
|
-
guard: string | null;
|
|
25
|
-
passport_required: boolean;
|
|
26
|
-
filter_rules: string[];
|
|
27
|
-
}
|
|
28
|
-
export interface ArbiterConfigPuzzle {
|
|
29
|
-
arbitrators: string[];
|
|
30
|
-
vote_distribution: "open" | "weighted" | "committee";
|
|
31
|
-
ruling_authority: "single_arbiter" | "multi_arbiter_vote" | "delegated_committee";
|
|
32
|
-
fees_split?: {
|
|
33
|
-
allocation?: string;
|
|
34
|
-
treasury?: string;
|
|
35
|
-
remark?: string;
|
|
36
|
-
payment_index?: number;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export interface ConstraintChecklist {
|
|
40
|
-
F_AB_01_coin_type_valid: boolean;
|
|
41
|
-
F_AB_02_permission_address_valid: boolean;
|
|
42
|
-
F_AB_03_bPaused_default_true: boolean;
|
|
43
|
-
F_AB_04_fee_u64_nonneg: boolean;
|
|
44
|
-
F_AB_05_voting_guard_count_le_50: boolean;
|
|
45
|
-
F_AB_06_voting_guard_no_duplicate: boolean;
|
|
46
|
-
F_AB_07_usage_guard_single: boolean;
|
|
47
|
-
F_AB_08_arb_status_transition_valid: boolean;
|
|
48
|
-
F_AB_09_arb_belongs_to_arbitration: boolean;
|
|
49
|
-
F_AB_10_order_op_permission: boolean;
|
|
50
|
-
F_AB_11_dispute_fee_sufficient: boolean;
|
|
51
|
-
F_AB_12_dual_guard_coherent: boolean;
|
|
52
|
-
}
|
|
53
|
-
export type PuzzleDimension = "A" | "B" | "C" | "D" | "E" | "F";
|
|
54
|
-
export interface ArbitrationPuzzle {
|
|
55
|
-
intent?: IntentPuzzle;
|
|
56
|
-
arbitration_config?: ArbitrationConfigPuzzle;
|
|
57
|
-
voting_guard?: VotingGuardPuzzle;
|
|
58
|
-
usage_guard?: UsageGuardPuzzle;
|
|
59
|
-
arbiter_config?: ArbiterConfigPuzzle;
|
|
60
|
-
constraints?: ConstraintChecklist;
|
|
61
|
-
current_arb_status?: ArbStatus;
|
|
62
|
-
expected_arb_status?: ArbStatus;
|
|
63
|
-
}
|
|
64
|
-
export interface PuzzleCompleteness {
|
|
65
|
-
dimensions: PuzzleDimension[];
|
|
66
|
-
missing: PuzzleDimension[];
|
|
67
|
-
missing_details: {
|
|
68
|
-
dimension: PuzzleDimension;
|
|
69
|
-
reason: string;
|
|
70
|
-
}[];
|
|
71
|
-
complete: boolean;
|
|
72
|
-
next_step: string;
|
|
73
|
-
}
|
|
74
|
-
export declare function initPuzzleFromIntent(intent: Partial<IntentPuzzle>): ArbitrationPuzzle;
|
|
75
|
-
export declare function checkPuzzleCompleteness(puzzle: ArbitrationPuzzle): PuzzleCompleteness;
|
|
76
|
-
export interface ConstraintViolation {
|
|
77
|
-
constraint_id: string;
|
|
78
|
-
severity: "critical" | "high" | "medium" | "low";
|
|
79
|
-
message: string;
|
|
80
|
-
current_value?: string | number;
|
|
81
|
-
limit?: string | number;
|
|
82
|
-
}
|
|
83
|
-
export declare function validateConstraints(puzzle: ArbitrationPuzzle): ConstraintViolation[];
|
|
84
|
-
export declare function generateConfirmationText(puzzle: ArbitrationPuzzle): string;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface ArbRulingReading {
|
|
2
|
-
ruling: boolean;
|
|
3
|
-
won: boolean;
|
|
4
|
-
dismissed: boolean;
|
|
5
|
-
amountUnresolved: boolean;
|
|
6
|
-
presence: boolean;
|
|
7
|
-
presenceNegated: boolean;
|
|
8
|
-
statusGate: boolean;
|
|
9
|
-
venueBound: boolean;
|
|
10
|
-
orderBound: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function readArbRulingGuard(root: unknown, table?: unknown): ArbRulingReading;
|
|
13
|
-
export interface ArbRailEdge {
|
|
14
|
-
prev: string;
|
|
15
|
-
next: string;
|
|
16
|
-
forward: string;
|
|
17
|
-
guardRef?: string;
|
|
18
|
-
unguarded: boolean;
|
|
19
|
-
openOperator: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare function projectMachineEdges(nodes: unknown): ArbRailEdge[];
|
|
22
|
-
export type ArbRailFindingCode = "ARB_RULING_PRESENCE_ONLY" | "ARB_RULING_STATUS_GATE" | "ARB_RULING_VENUE_UNBOUND" | "ARB_RULING_ONE_SIDED" | "ARB_RULING_ZERO_EXIT";
|
|
23
|
-
export type ArbRailFindingLevel = "critical" | "warning" | "info";
|
|
24
|
-
export interface ArbRailFinding {
|
|
25
|
-
code: ArbRailFindingCode;
|
|
26
|
-
level: ArbRailFindingLevel;
|
|
27
|
-
detail: string;
|
|
28
|
-
guardRef?: string;
|
|
29
|
-
node?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface ArbRailInput {
|
|
32
|
-
edges: ArbRailEdge[];
|
|
33
|
-
readings: Map<string, ArbRulingReading>;
|
|
34
|
-
}
|
|
35
|
-
export declare function verifyArbitrationRulingRails(input: ArbRailInput): ArbRailFinding[];
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { type Facts, type FindingExposure } from "../config/rule-engine.js";
|
|
2
|
-
import { type ArbStatus } from "./arbitration-ledger.js";
|
|
3
|
-
export type RiskLevel = "critical" | "high" | "medium" | "low";
|
|
4
|
-
export type RiskCategory = "structural" | "semantic" | "authority" | "lifecycle" | "cross_object";
|
|
5
|
-
export interface ArbitrationRisk {
|
|
6
|
-
id: string;
|
|
7
|
-
level: RiskLevel;
|
|
8
|
-
category: RiskCategory;
|
|
9
|
-
title: string;
|
|
10
|
-
description: string;
|
|
11
|
-
affected_stakeholders: ArbitrationStakeholder[];
|
|
12
|
-
scenario: string;
|
|
13
|
-
mitigation: string;
|
|
14
|
-
evidence?: string;
|
|
15
|
-
exposure?: FindingExposure;
|
|
16
|
-
}
|
|
17
|
-
export type ArbitrationStakeholder = "owner" | "arbiter" | "voter" | "disputant" | "system";
|
|
18
|
-
export interface RiskRule {
|
|
19
|
-
id: string;
|
|
20
|
-
category: RiskCategory;
|
|
21
|
-
trigger: string;
|
|
22
|
-
check: (ctx: RiskCheckContext) => ArbitrationRisk | null;
|
|
23
|
-
}
|
|
24
|
-
export interface RiskCheckContext {
|
|
25
|
-
object?: string | null;
|
|
26
|
-
description?: string;
|
|
27
|
-
location?: string;
|
|
28
|
-
fee?: string | number;
|
|
29
|
-
pause?: boolean;
|
|
30
|
-
dispute?: {
|
|
31
|
-
order: string;
|
|
32
|
-
description: string;
|
|
33
|
-
proposition: string[];
|
|
34
|
-
fee: {
|
|
35
|
-
type?: string;
|
|
36
|
-
balance?: string | number;
|
|
37
|
-
} | unknown;
|
|
38
|
-
};
|
|
39
|
-
confirm?: {
|
|
40
|
-
arb: string;
|
|
41
|
-
voting_deadline: number | null;
|
|
42
|
-
};
|
|
43
|
-
voting_deadline_change?: {
|
|
44
|
-
arb: string;
|
|
45
|
-
voting_deadline: number | null;
|
|
46
|
-
};
|
|
47
|
-
vote?: {
|
|
48
|
-
arb: string;
|
|
49
|
-
votes: number[];
|
|
50
|
-
voting_guard?: string;
|
|
51
|
-
};
|
|
52
|
-
feedback?: {
|
|
53
|
-
arb: string;
|
|
54
|
-
feedback: string;
|
|
55
|
-
};
|
|
56
|
-
arbitration?: {
|
|
57
|
-
arb: string;
|
|
58
|
-
feedback: string;
|
|
59
|
-
indemnity: number;
|
|
60
|
-
};
|
|
61
|
-
reset?: {
|
|
62
|
-
arb: string;
|
|
63
|
-
feedback: string;
|
|
64
|
-
};
|
|
65
|
-
arb_withdraw?: {
|
|
66
|
-
arb: string;
|
|
67
|
-
};
|
|
68
|
-
fees_transfer?: {
|
|
69
|
-
to: {
|
|
70
|
-
allocation: string;
|
|
71
|
-
} | {
|
|
72
|
-
treasury: string;
|
|
73
|
-
};
|
|
74
|
-
payment_remark: string;
|
|
75
|
-
payment_index: number;
|
|
76
|
-
};
|
|
77
|
-
usage_guard?: string | null;
|
|
78
|
-
voting_guard?: {
|
|
79
|
-
op: "add" | "set";
|
|
80
|
-
guards: {
|
|
81
|
-
guard: string;
|
|
82
|
-
vote_weight: unknown;
|
|
83
|
-
}[];
|
|
84
|
-
} | {
|
|
85
|
-
op: "remove";
|
|
86
|
-
guards: string[];
|
|
87
|
-
} | {
|
|
88
|
-
op: "clear";
|
|
89
|
-
};
|
|
90
|
-
um?: string | null;
|
|
91
|
-
builder?: string;
|
|
92
|
-
current_arb_status?: ArbStatus;
|
|
93
|
-
expected_arb_status?: ArbStatus;
|
|
94
|
-
current_voting_guard_count?: number;
|
|
95
|
-
current_voting_guard_addresses?: string[];
|
|
96
|
-
current_arbitration_fee?: string | number;
|
|
97
|
-
current_bPaused?: boolean;
|
|
98
|
-
current_voting_deadline?: number | null;
|
|
99
|
-
current_timestamp_ms?: number;
|
|
100
|
-
target_objects_types?: string[];
|
|
101
|
-
}
|
|
102
|
-
export declare function arbitrationRiskFacts(ctx: RiskCheckContext): Facts;
|
|
103
|
-
export declare const ARBITRATION_RISK_VERSION = "1.0.0";
|
|
104
|
-
export declare function getAllRiskRules(): RiskRule[];
|
|
105
|
-
export interface ArbitrationRiskAssessment {
|
|
106
|
-
summary: string;
|
|
107
|
-
risks: ArbitrationRisk[];
|
|
108
|
-
overall_risk: RiskLevel;
|
|
109
|
-
risks_by_category: Partial<Record<RiskCategory, number>>;
|
|
110
|
-
stakeholder_advice: Partial<Record<ArbitrationStakeholder, string[]>>;
|
|
111
|
-
needs_human_review: boolean;
|
|
112
|
-
}
|
|
113
|
-
export declare function disputeFeeReconciliation(venueFee: unknown, attachedFee: unknown): string;
|
|
114
|
-
export declare function assessArbitrationRisks(ctx: RiskCheckContext): ArbitrationRiskAssessment;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export type TemplateParamType = "address" | "string" | "number" | "string[]" | "object";
|
|
2
|
-
export interface ArbitrationTemplateParam {
|
|
3
|
-
name: string;
|
|
4
|
-
type: TemplateParamType;
|
|
5
|
-
description: string;
|
|
6
|
-
required: boolean;
|
|
7
|
-
default?: string | number | string[] | object;
|
|
8
|
-
}
|
|
9
|
-
export interface ArbitrationTemplate {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
applicable_scenes: string[];
|
|
14
|
-
industry_tags: string[];
|
|
15
|
-
params: ArbitrationTemplateParam[];
|
|
16
|
-
body: (params: Record<string, string | number | string[] | object>) => object;
|
|
17
|
-
notes?: string[];
|
|
18
|
-
}
|
|
19
|
-
export declare const ARBITRATION_ACTIVATION_NOTES: string[];
|
|
20
|
-
export declare const ARBITRATION_TEMPLATES: ArbitrationTemplate[];
|
|
21
|
-
export declare const ARBITRATION_TEMPLATES_VERSION = "1.0.0";
|
|
22
|
-
export declare function getAllTemplates(): ArbitrationTemplate[];
|
|
23
|
-
export declare function getTemplateById(id: string): ArbitrationTemplate | undefined;
|
|
24
|
-
export declare function getTemplatesByScene(sceneId: string): ArbitrationTemplate[];
|
|
25
|
-
export declare function getTemplatesByIndustry(industry: string): ArbitrationTemplate[];
|
|
26
|
-
export declare function suggestTemplateForScene(sceneId: string): ArbitrationTemplate | undefined;
|
|
27
|
-
export declare function listTemplates(): {
|
|
28
|
-
id: string;
|
|
29
|
-
name: string;
|
|
30
|
-
description: string;
|
|
31
|
-
scenes: string[];
|
|
32
|
-
}[];
|
|
33
|
-
export declare function fillTemplate(templateId: string, params: Record<string, string | number | string[] | object>): {
|
|
34
|
-
ok: true;
|
|
35
|
-
body: object;
|
|
36
|
-
} | {
|
|
37
|
-
ok: false;
|
|
38
|
-
error: string;
|
|
39
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type VenueOrderSeverity = "must" | "should";
|
|
2
|
-
export interface VenueOrderEntry {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
severity: VenueOrderSeverity;
|
|
6
|
-
requirement: string;
|
|
7
|
-
rationale: string;
|
|
8
|
-
}
|
|
9
|
-
export interface VenueOrderFinding {
|
|
10
|
-
order_id: string;
|
|
11
|
-
severity: VenueOrderSeverity;
|
|
12
|
-
title: string;
|
|
13
|
-
message: string;
|
|
14
|
-
}
|
|
15
|
-
export interface VenueOrderContext {
|
|
16
|
-
unpaused_at_creation?: boolean;
|
|
17
|
-
voting_guard_count?: number;
|
|
18
|
-
max_weight_share?: number;
|
|
19
|
-
fee?: number | string;
|
|
20
|
-
has_description?: boolean;
|
|
21
|
-
}
|
|
22
|
-
export declare const ARBITRATION_VENUE_ORDER: VenueOrderEntry[];
|
|
23
|
-
export declare const ARBITRATION_VENUE_ORDER_VERSION = "1.0.0";
|
|
24
|
-
export declare function venueOperatingDoctrine(): string;
|
|
25
|
-
export declare function checkArbitrationVenueOrder(ctx: VenueOrderContext): VenueOrderFinding[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{describe,expect,it}from'vitest';import{readFileSync,writeFileSync}from'node:fs';import{fileURLToPath}from'node:url';import{dirname,join}from'node:path';import{lintGuard}from'../guard-lint.js';const CASES={'whitelist':{'description':'Whitelist\x20purchase\x20validation','table':[{'identifier':0x0,'b_submission':![],'value_type':'VecAddress','value':['0xabc','0xdef'],'name':'Authorized\x20purchase\x20whitelist'}],'root':{'type':'vec_contains_address','nodes':[{'type':'identifier','identifier':0x0},{'type':'context','context':'Signer'}]}},'allocator_identifier':{'description':'Allocator\x20selector','table':[{'identifier':0x0,'b_submission':![],'value_type':'Address','value':'0xabc','name':'selector'}],'root':{'type':'identifier','identifier':0x0},'binding_hint':{'host_object':'Service','binding_field':'order_allocators'}}};async function runCase(a){const b=await lintGuard(a,{'auto_fix':![]});return{'risk_diagnostics':b['diagnostics']['filter'](c=>c['source']==='risk')['map'](c=>({'code':c['code'],'severity':c['severity'],'path':c['location']['path']})),'risk_assessment':(b['risk_assessment']?.['risks']??[])['map'](c=>({'id':c['id'],'level':c['level']})),'summary':{'errors':b['summary']['errors'],'warnings':b['summary']['warnings'],'infos':b['summary']['infos'],'ready':b['summary']['ready']}};}const here=dirname(fileURLToPath(import.meta.url)),SNAPSHOT=join(here,'guard-lint-baseline.json');describe('guard-lint\x20risk\x20section\x20—\x20pre-migration\x20baseline',()=>{it('matches\x20the\x20committed\x20snapshot\x20(regenerate\x20only\x20with\x20UPDATE_RISK_BASELINE=1)',async()=>{const a={};for(const [c,d]of Object['entries'](CASES)){a[c]=await runCase(d);}if(process['env']['UPDATE_RISK_BASELINE']==='1'){writeFileSync(SNAPSHOT,JSON['stringify'](a,null,0x2)+'\x0a','utf8');return;}const b=JSON['parse'](readFileSync(SNAPSHOT,'utf8'));expect(a)['toEqual'](b);}),it('every\x20case\x20reaches\x20the\x20risk\x20section\x20(at\x20least\x20one\x20risk\x20diagnostic)',async()=>{for(const [a,b]of Object['entries'](CASES)){const c=await runCase(b);expect(c['risk_diagnostics']['length'],a+':\x20risk\x20section\x20silent')['toBeGreaterThan'](0x0);}});});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{describe,expect,it}from'vitest';import{readFileSync,writeFileSync}from'node:fs';import{fileURLToPath}from'node:url';import{dirname,join}from'node:path';import{RISK_CASES}from'./risk-cases.js';import{aggregateProjectRisks}from'../../playbooks/service-build/risk-aggregator.js';import{assessTreasuryRisks}from'../treasury-risk.js';import{assessRewardRisks}from'../reward-risk.js';function toArray(a){if(Array['isArray'](a))return a;if(a&&typeof a==='object')for(const b of['risks','detected_risks']){const c=a[b];if(Array['isArray'](c))return c;}return[];}function normalize(a){return toArray(a)['map'](b=>{const c=b??{};return{'id':String(c['id']??c['risk_rule_id']??c['rule_id']??'?'),'level':String(c['level']??c['severity']??'?')['toLowerCase'](),...c['evidence']!=null?{'evidence':String(c['evidence'])}:{}};})['sort']((c,d)=>c['id']===d['id']?(c['evidence']??'')['localeCompare'](d['evidence']??''):c['id']['localeCompare'](d['id']));}function runCase(a,b){try{return{'risks':normalize(a(b)),'threw':![]};}catch(c){return{'risks':[],'threw':!![]};}}function collect(){const a={};for(const b of RISK_CASES){const d=runCase(b['run'],b['empty']),e=runCase(b['run'],b['trigger']);a[b['pack']]={'objectType':b['objectType'],'empty':d['risks'],'emptyThrew':d['threw'],'trigger':e['risks']};}return a;}const here=dirname(fileURLToPath(import.meta.url)),SNAPSHOT=join(here,'risk-baselines.json'),AGG_SNAPSHOT=join(here,'aggregator-baselines.json');function puzzlesFrom(a){const b={};for(const d of RISK_CASES){if(d['pack']==='arb')continue;b[d['objectType']]={'puzzle':a(d)};}return b;}async function runAggregator(a){const b=await aggregateProjectRisks({'project_prefix':'baseline','version':'v1','industry':'general','puzzles':puzzlesFrom(a)});return{'severity_summary':b['severity_summary'],'status':b['status'],'findings':b['findings']['map'](c=>({'risk_rule_id':c['risk_rule_id'],'object_type':c['object_type'],'severity':c['severity']})),'warnings':b['warnings']};}describe('write-side\x20risk\x20packs\x20—\x20pre-migration\x20baseline',()=>{it('every\x20pack\x20trigger\x20context\x20fires\x20at\x20least\x20one\x20pack-specific\x20rule',()=>{for(const a of RISK_CASES){const {risks:b}=runCase(a['run'],a['trigger']);expect(b['length'],'pack\x20'+a['pack']+'\x20trigger\x20fired\x20nothing')['toBeGreaterThan'](0x0);}}),it('matches\x20the\x20committed\x20snapshot\x20(regenerate\x20only\x20with\x20--update)',()=>{const a=collect();if(process['env']['UPDATE_RISK_BASELINE']==='1'){writeFileSync(SNAPSHOT,JSON['stringify'](a,null,0x2)+'\x0a','utf8');return;}const b=JSON['parse'](readFileSync(SNAPSHOT,'utf8'));expect(new Set(Object['keys'](a)))['toEqual'](new Set(Object['keys'](b)));for(const c of Object['keys'](a)['sort']()){expect(a[c],'pack\x20'+c+'\x20drifted')['toEqual'](b[c]);}});}),describe('risk\x20aggregator\x20—\x20Task\x2026\x20parity\x20(id/severity/status)',()=>{const a=[['empty',b=>b['empty']],['trigger',b=>b['trigger']]];it('matches\x20the\x20committed\x20snapshot\x20(regenerate\x20only\x20with\x20--update)',async()=>{const b={};for(const [d,e]of a)b[d]=await runAggregator(e);if(process['env']['UPDATE_RISK_BASELINE']==='1'){writeFileSync(AGG_SNAPSHOT,JSON['stringify'](b,null,0x2)+'\x0a','utf8');return;}const c=JSON['parse'](readFileSync(AGG_SNAPSHOT,'utf8'));expect(b)['toEqual'](c);}),it('trigger\x20row\x20produces\x20CRITICAL\x20blockers\x20(sanity:\x20status\x20machine\x20alive)',async()=>{const b=await runAggregator(d=>d['trigger']);expect(b['findings']['some'](c=>c['severity']==='critical'))['toBe'](!![]),expect(b['status'])['not']['toBe']('STATIC_ANALYZERS_CLEAN');}),it('TR-26.2\x20every\x20finding\x20carries\x20its\x20proposal-graph\x20path\x20(explainability)',async()=>{const b=await aggregateProjectRisks({'project_prefix':'baseline','version':'v1','industry':'general','puzzles':puzzlesFrom(d=>d['trigger'])});expect(b['findings']['length'])['toBeGreaterThan'](0x0);for(const c of b['findings']){expect(c['details']?.['proposal_node'],'finding\x20'+c['risk_rule_id']+'\x20has\x20no\x20proposal\x20node')['toMatch'](/^proposal::/),expect(c['details']?.['rule_source'],'finding\x20'+c['risk_rule_id']+'\x20has\x20no\x20analyzer\x20source')['not']['toBe']('');}});}),describe('R-T-2-04\x20—\x20external_withdraw\x20pays\x20only\x20the\x20transaction\x20sender',()=>{const a={'withdraw':{'amount_by_external_withdraw_guard':'release-guard','recipient':'0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'}};it('flags\x20HIGH\x20(code\x2010\x20abort\x20ahead)\x20when\x20recipient\x20!=\x20known\x20sender',()=>{const {risks:b}=assessTreasuryRisks({...a,'sender_address':'0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'}),c=b['find'](d=>d['id']==='R-T-2-04');expect(c?.['level'])['toBe']('high'),expect(c?.['description']??'')['toContain']('code\x2010');}),it('stays\x20silent\x20when\x20recipient\x20equals\x20the\x20sender',()=>{const {risks:b}=assessTreasuryRisks({...a,'sender_address':'0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'});expect(b['some'](c=>c['id']==='R-T-2-04'))['toBe'](![]);}),it('advises\x20MEDIUM\x20when\x20the\x20sender\x20is\x20not\x20known\x20at\x20analysis\x20time',()=>{const {risks:b}=assessTreasuryRisks(a),c=b['find'](d=>d['id']==='R-T-2-04');expect(c?.['level'])['toBe']('medium');}),it('does\x20not\x20fire\x20on\x20the\x20fixed\x20(permissioned)\x20withdraw\x20path',()=>{const {risks:b}=assessTreasuryRisks({'withdraw':{'amount_fixed':'1000','recipient':'0xcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc'},'sender_address':'0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb'});expect(b['some'](c=>c['id']==='R-T-2-04'))['toBe'](![]);});}),describe('R-T-4-04\x20—\x20mounting\x20external\x20Guards\x20(owner\x20diligence\x20reminder)',()=>{it('flags\x20MEDIUM\x20when\x20mounting\x20external\x20withdraw\x20Guards',()=>{const {risks:a}=assessTreasuryRisks({'external_withdraw_guard':{'op':'add','guards':[{'guard':'0xg1','identifier':0x0}]}}),b=a['find'](c=>c['id']==='R-T-4-04');expect(b?.['level'])['toBe']('medium'),expect(b?.['description']??'')['toContain']('code\x2010');}),it('flags\x20LOW\x20when\x20mounting\x20external\x20deposit\x20Guards',()=>{const {risks:a}=assessTreasuryRisks({'external_deposit_guard':{'op':'add','guards':[{'guard':'0xg2'}]}}),b=a['find'](c=>c['id']==='R-T-4-04');expect(b?.['level'])['toBe']('low');}),it('stays\x20silent\x20on\x20remove/clear',()=>{const {risks:a}=assessTreasuryRisks({'external_withdraw_guard':{'op':'remove','guards':['0xg1']}});expect(a['some'](b=>b['id']==='R-T-4-04'))['toBe'](![]);});}),describe('R-R-2-05\x20—\x20mounting\x20a\x20claim\x20Guard\x20with\x20a\x20GuardIdentifier\x20payout\x20slot',()=>{const a={'guard':'0xg1','amount':{'type':'fixed','value':'100'}};it('flags\x20MEDIUM\x20when\x20the\x20recipient\x20is\x20a\x20GuardIdentifier\x20slot',()=>{const {risks:b}=assessRewardRisks({'guard_add':[{...a,'recipient':{'GuardIdentifier':0x0}}]}),c=b['find'](d=>d['id']==='R-R-2-05');expect(c?.['level'])['toBe']('medium'),expect(c?.['description']??'')['toContain']('GuardIdentifier');}),it('stays\x20silent\x20for\x20Entity/Signer\x20recipients',()=>{const {risks:b}=assessRewardRisks({'guard_add':[{...a,'recipient':{'Entity':'0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'}}]});expect(b['some'](c=>c['id']==='R-R-2-05'))['toBe'](![]);});});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface SemanticFact {
|
|
2
|
-
fact_id: string;
|
|
3
|
-
subject: string;
|
|
4
|
-
authoritative: string;
|
|
5
|
-
falsehoods: string[];
|
|
6
|
-
harm: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const SEMANTIC_FACTS: SemanticFact[];
|
|
9
|
-
export declare function scanContent(filePath: string, content: string): Array<{
|
|
10
|
-
fact_id: string;
|
|
11
|
-
phrasing: string;
|
|
12
|
-
}>;
|