@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,317 +0,0 @@
|
|
|
1
|
-
import type { ObjectPanoramaInput } from "../../schema/query/bi.js";
|
|
2
|
-
import { type AnchorCrossCheck } from "../../communication/wts-attestation.js";
|
|
3
|
-
type ProjectInput = ObjectPanoramaInput;
|
|
4
|
-
interface PanoRelatedList {
|
|
5
|
-
key: string | null;
|
|
6
|
-
items: {
|
|
7
|
-
address: string;
|
|
8
|
-
object_type: string;
|
|
9
|
-
time: number | null;
|
|
10
|
-
}[];
|
|
11
|
-
count: number;
|
|
12
|
-
window_saturated: boolean;
|
|
13
|
-
preview_truncated: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface PanoBase {
|
|
16
|
-
action: "object_panorama";
|
|
17
|
-
object: string;
|
|
18
|
-
network: string;
|
|
19
|
-
head: {
|
|
20
|
-
name: string | null;
|
|
21
|
-
tags: string[];
|
|
22
|
-
description: string | null;
|
|
23
|
-
};
|
|
24
|
-
freshness?: {
|
|
25
|
-
read_at_ms: number;
|
|
26
|
-
version: string | null;
|
|
27
|
-
note: string;
|
|
28
|
-
};
|
|
29
|
-
data_gaps: string[];
|
|
30
|
-
}
|
|
31
|
-
export interface ProgressPanoramaResult extends PanoBase {
|
|
32
|
-
object_type: "Progress";
|
|
33
|
-
fields: {
|
|
34
|
-
machine: string | null;
|
|
35
|
-
current: string | null;
|
|
36
|
-
task: string | null;
|
|
37
|
-
history_count: number | null;
|
|
38
|
-
current_time: number | null;
|
|
39
|
-
};
|
|
40
|
-
context_repositories: string[];
|
|
41
|
-
operators: {
|
|
42
|
-
name: string;
|
|
43
|
-
operators: string[];
|
|
44
|
-
}[];
|
|
45
|
-
session: {
|
|
46
|
-
next_node: string | null;
|
|
47
|
-
weights: number | null;
|
|
48
|
-
threshold: number | null;
|
|
49
|
-
forwards: {
|
|
50
|
-
forward: string;
|
|
51
|
-
who: string | null;
|
|
52
|
-
accomplished: boolean;
|
|
53
|
-
msg: string | null;
|
|
54
|
-
time: number | null;
|
|
55
|
-
}[];
|
|
56
|
-
} | null;
|
|
57
|
-
related: PanoRelatedList;
|
|
58
|
-
}
|
|
59
|
-
export interface DemandPanoramaResult extends PanoBase {
|
|
60
|
-
object_type: "Demand";
|
|
61
|
-
fields: {
|
|
62
|
-
location: string | null;
|
|
63
|
-
um: string | null;
|
|
64
|
-
permission: string | null;
|
|
65
|
-
presenters_count: number | null;
|
|
66
|
-
};
|
|
67
|
-
rewards: string[];
|
|
68
|
-
guards: {
|
|
69
|
-
guard: string;
|
|
70
|
-
}[];
|
|
71
|
-
presenters: {
|
|
72
|
-
count: number;
|
|
73
|
-
window_saturated: boolean;
|
|
74
|
-
preview_truncated: boolean;
|
|
75
|
-
items: {
|
|
76
|
-
presenter: string;
|
|
77
|
-
service: string;
|
|
78
|
-
recommend: string | null;
|
|
79
|
-
acceptance_score: number | null;
|
|
80
|
-
feedback: string | null;
|
|
81
|
-
feedback_time: number | null;
|
|
82
|
-
update_time: number | null;
|
|
83
|
-
structured: {
|
|
84
|
-
key: string;
|
|
85
|
-
raw_key: string;
|
|
86
|
-
value: string;
|
|
87
|
-
}[];
|
|
88
|
-
quote: string | null;
|
|
89
|
-
score_covers_current_service: boolean | null;
|
|
90
|
-
}[];
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
export interface OrderPanoramaResult extends PanoBase {
|
|
94
|
-
object_type: "Order";
|
|
95
|
-
coin_type: string | null;
|
|
96
|
-
fields: {
|
|
97
|
-
service: string | null;
|
|
98
|
-
machine: string | null;
|
|
99
|
-
progress: string | null;
|
|
100
|
-
allocation: string | null;
|
|
101
|
-
discount: string | null;
|
|
102
|
-
amount: string | null;
|
|
103
|
-
amount_display: string;
|
|
104
|
-
amount_tip: string;
|
|
105
|
-
owner: string | null;
|
|
106
|
-
claimed_by: string | null;
|
|
107
|
-
required_info: string | null;
|
|
108
|
-
time: number | null;
|
|
109
|
-
};
|
|
110
|
-
items: {
|
|
111
|
-
name: string | null;
|
|
112
|
-
price: string | null;
|
|
113
|
-
price_display: string;
|
|
114
|
-
price_tip: string;
|
|
115
|
-
quantity: string | null;
|
|
116
|
-
wip_hash: string | null;
|
|
117
|
-
}[];
|
|
118
|
-
allocation_state: "none" | "pending" | "allocated";
|
|
119
|
-
progress_current: string | null;
|
|
120
|
-
progress_next: string | null;
|
|
121
|
-
progress_since: number | null;
|
|
122
|
-
escrow_deficit: string | null;
|
|
123
|
-
escrow_deficit_note?: string;
|
|
124
|
-
disputes: string[];
|
|
125
|
-
agents: string[];
|
|
126
|
-
updated_ms: number | null;
|
|
127
|
-
related: PanoRelatedList;
|
|
128
|
-
}
|
|
129
|
-
export interface AllocationPanoramaResult extends PanoBase {
|
|
130
|
-
object_type: "Allocation";
|
|
131
|
-
coin_type: string | null;
|
|
132
|
-
fields: {
|
|
133
|
-
balance: string | null;
|
|
134
|
-
balance_display: string;
|
|
135
|
-
balance_tip: string;
|
|
136
|
-
threshold: string | null;
|
|
137
|
-
for_object: string | null;
|
|
138
|
-
for_guard: string | null;
|
|
139
|
-
remark: string | null;
|
|
140
|
-
index: string | null;
|
|
141
|
-
};
|
|
142
|
-
allocators: {
|
|
143
|
-
guard: string | null;
|
|
144
|
-
sharing: {
|
|
145
|
-
who_kind: "guard_identifier" | "entity" | "signer" | "unknown";
|
|
146
|
-
who_value: string | number | null;
|
|
147
|
-
resolution_note: string;
|
|
148
|
-
sharing: string | null;
|
|
149
|
-
mode: number | null;
|
|
150
|
-
mode_label: string;
|
|
151
|
-
}[];
|
|
152
|
-
}[];
|
|
153
|
-
updated_ms: number | null;
|
|
154
|
-
related: PanoRelatedList;
|
|
155
|
-
}
|
|
156
|
-
export interface ArbPanoramaResult extends PanoBase {
|
|
157
|
-
object_type: "Arb";
|
|
158
|
-
coin_type: string | null;
|
|
159
|
-
fields: {
|
|
160
|
-
arbitration: string | null;
|
|
161
|
-
order: string | null;
|
|
162
|
-
service: string | null;
|
|
163
|
-
fee: string | null;
|
|
164
|
-
fee_display: string;
|
|
165
|
-
fee_tip: string;
|
|
166
|
-
feedback: string | null;
|
|
167
|
-
indemnity: {
|
|
168
|
-
amount: string | null;
|
|
169
|
-
amount_display: string;
|
|
170
|
-
amount_tip: string;
|
|
171
|
-
time: number | null;
|
|
172
|
-
} | null;
|
|
173
|
-
voting_deadline: number | null;
|
|
174
|
-
objection: string | null;
|
|
175
|
-
status: string | null;
|
|
176
|
-
compensation_time: number | null;
|
|
177
|
-
time: number | null;
|
|
178
|
-
type_raw: string | null;
|
|
179
|
-
};
|
|
180
|
-
voted: {
|
|
181
|
-
voter: string;
|
|
182
|
-
agrees: number[];
|
|
183
|
-
weight: number;
|
|
184
|
-
time: number;
|
|
185
|
-
}[];
|
|
186
|
-
proposition: {
|
|
187
|
-
name: string;
|
|
188
|
-
votes: number;
|
|
189
|
-
}[];
|
|
190
|
-
updated_ms: number | null;
|
|
191
|
-
related: PanoRelatedList;
|
|
192
|
-
}
|
|
193
|
-
export interface ArbitrationPanoramaResult extends PanoBase {
|
|
194
|
-
object_type: "Arbitration";
|
|
195
|
-
coin_type: string | null;
|
|
196
|
-
fields: {
|
|
197
|
-
location: string | null;
|
|
198
|
-
um: string | null;
|
|
199
|
-
permission: string | null;
|
|
200
|
-
fee: string | null;
|
|
201
|
-
fee_display: string;
|
|
202
|
-
fee_tip: string;
|
|
203
|
-
balance: string | null;
|
|
204
|
-
balance_display: string;
|
|
205
|
-
balance_tip: string;
|
|
206
|
-
paused: boolean | null;
|
|
207
|
-
usage_guard: string | null;
|
|
208
|
-
};
|
|
209
|
-
voting_guards: {
|
|
210
|
-
guard: string;
|
|
211
|
-
vote_weight: string | null;
|
|
212
|
-
}[];
|
|
213
|
-
cases: {
|
|
214
|
-
count: number;
|
|
215
|
-
window_saturated: boolean;
|
|
216
|
-
preview_truncated: boolean;
|
|
217
|
-
stats: {
|
|
218
|
-
first_created_ms: number | null;
|
|
219
|
-
last_created_ms: number | null;
|
|
220
|
-
};
|
|
221
|
-
drilldown?: {
|
|
222
|
-
total_count: number;
|
|
223
|
-
analyzed_count: number;
|
|
224
|
-
prompt: string;
|
|
225
|
-
};
|
|
226
|
-
items: {
|
|
227
|
-
arb: string;
|
|
228
|
-
order: string | null;
|
|
229
|
-
status: string | null;
|
|
230
|
-
time: number | null;
|
|
231
|
-
}[];
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
export interface RepositoryPanoramaResult extends PanoBase {
|
|
235
|
-
object_type: "Repository";
|
|
236
|
-
fields: {
|
|
237
|
-
um: string | null;
|
|
238
|
-
permission: string | null;
|
|
239
|
-
data_count: number | null;
|
|
240
|
-
};
|
|
241
|
-
policies: {
|
|
242
|
-
name: string;
|
|
243
|
-
description: string | null;
|
|
244
|
-
id_from: string | null;
|
|
245
|
-
value_type: string | null;
|
|
246
|
-
write_guards: number;
|
|
247
|
-
write_guard_addresses?: string[];
|
|
248
|
-
quote_guard: string | null;
|
|
249
|
-
write_once: boolean;
|
|
250
|
-
}[];
|
|
251
|
-
rewards: string[];
|
|
252
|
-
data_entries: {
|
|
253
|
-
count: number | null;
|
|
254
|
-
items: {
|
|
255
|
-
entity: string | null;
|
|
256
|
-
name: string | null;
|
|
257
|
-
value: string | null;
|
|
258
|
-
value_type: string | null;
|
|
259
|
-
}[];
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
export interface RewardPanoramaResult extends PanoBase {
|
|
263
|
-
object_type: "Reward";
|
|
264
|
-
coin_type: string | null;
|
|
265
|
-
fields: {
|
|
266
|
-
pool_balance: string | null;
|
|
267
|
-
pool_balance_display: string | null;
|
|
268
|
-
claims: {
|
|
269
|
-
guard: string;
|
|
270
|
-
amount_type: "fixed" | "guard_submission" | "unknown";
|
|
271
|
-
amount: string | null;
|
|
272
|
-
amount_display: string | null;
|
|
273
|
-
expiration_time: number | null;
|
|
274
|
-
expiration_display: string | null;
|
|
275
|
-
expired: boolean | null;
|
|
276
|
-
}[];
|
|
277
|
-
};
|
|
278
|
-
claim_records: {
|
|
279
|
-
count: number | null;
|
|
280
|
-
note: string;
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
export interface ProofPanoramaResult extends PanoBase {
|
|
284
|
-
object_type: "Proof";
|
|
285
|
-
fields: {
|
|
286
|
-
description: string | null;
|
|
287
|
-
anchored_root: string | null;
|
|
288
|
-
item_count: number | null;
|
|
289
|
-
proof_type: number | null;
|
|
290
|
-
proof_type_label: string;
|
|
291
|
-
about: string | null;
|
|
292
|
-
signer: string | null;
|
|
293
|
-
time_ms: number | null;
|
|
294
|
-
time_iso: string | null;
|
|
295
|
-
};
|
|
296
|
-
server_pubkey: {
|
|
297
|
-
present: boolean;
|
|
298
|
-
length: number | null;
|
|
299
|
-
fingerprint: string | null;
|
|
300
|
-
};
|
|
301
|
-
server_signature: {
|
|
302
|
-
present: boolean;
|
|
303
|
-
length: number | null;
|
|
304
|
-
fingerprint: string | null;
|
|
305
|
-
};
|
|
306
|
-
wts_anchor_check?: AnchorCrossCheck;
|
|
307
|
-
}
|
|
308
|
-
export interface UnknownPanoramaResult extends PanoBase {
|
|
309
|
-
object_type: "Unknown";
|
|
310
|
-
raw_type: string;
|
|
311
|
-
coin_type: string | null;
|
|
312
|
-
fields: Record<string, unknown>;
|
|
313
|
-
}
|
|
314
|
-
export type ObjectPanoramaResult = ProgressPanoramaResult | DemandPanoramaResult | OrderPanoramaResult | AllocationPanoramaResult | ArbPanoramaResult | ArbitrationPanoramaResult | RepositoryPanoramaResult | RewardPanoramaResult | ProofPanoramaResult | UnknownPanoramaResult;
|
|
315
|
-
export declare function coinOfTypeRaw(typeRaw: unknown): string | null;
|
|
316
|
-
export declare function handleObjectPanorama(v: ProjectInput): Promise<ObjectPanoramaResult>;
|
|
317
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function normalizeObjectType(objectType: string | null | undefined): string;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type ENTRYPOINT } from "@wowok/wowok";
|
|
2
|
-
import { type OrderRadarResult } from "../../participation/radar-core.js";
|
|
3
|
-
import type { ParticipationRadarInput } from "../../schema/query/bi.js";
|
|
4
|
-
type ProjectInput = ParticipationRadarInput;
|
|
5
|
-
export declare function fetchEntityPermissions(permissionAddress: string, network: ENTRYPOINT): Promise<Map<string, number[]>>;
|
|
6
|
-
export declare function handleParticipationRadar(v: ProjectInput): Promise<{
|
|
7
|
-
action: "participation_radar";
|
|
8
|
-
account: string;
|
|
9
|
-
now_ms: number;
|
|
10
|
-
orders_analyzed: number;
|
|
11
|
-
actionable: OrderRadarResult[];
|
|
12
|
-
waiting: OrderRadarResult[];
|
|
13
|
-
all_pending_claims: (import("../../participation/radar-core.js").PendingClaim & {
|
|
14
|
-
progress: string;
|
|
15
|
-
})[];
|
|
16
|
-
unread_messages_total: number;
|
|
17
|
-
data_gaps: string[];
|
|
18
|
-
summary: string;
|
|
19
|
-
}>;
|
|
20
|
-
export {};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import type { ObjectPuzzleEntry } from "./business-puzzle.js";
|
|
2
|
-
import type { SubstepRecord, SubstepEdge } from "../../task/types.js";
|
|
3
|
-
export interface AnalyzeIntentInput {
|
|
4
|
-
intent?: string;
|
|
5
|
-
project_description?: string;
|
|
6
|
-
project_name?: string;
|
|
7
|
-
target_objects?: string[];
|
|
8
|
-
project_industry?: string;
|
|
9
|
-
project?: string;
|
|
10
|
-
version?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function handleAnalyzeIntent(v: AnalyzeIntentInput): {
|
|
13
|
-
intent_parsed: import("./business-puzzle.js").IntentParsed;
|
|
14
|
-
puzzles: Record<string, ObjectPuzzleEntry>;
|
|
15
|
-
overall_completeness: "complete" | "partial" | "empty";
|
|
16
|
-
next_step: string;
|
|
17
|
-
recommended_creation_order: string[];
|
|
18
|
-
warnings: string[];
|
|
19
|
-
action: "analyze_intent";
|
|
20
|
-
};
|
|
21
|
-
export interface AggregateRisksInput {
|
|
22
|
-
project?: string;
|
|
23
|
-
version?: string;
|
|
24
|
-
project_industry?: string;
|
|
25
|
-
intent?: string;
|
|
26
|
-
project_description?: string;
|
|
27
|
-
project_name?: string;
|
|
28
|
-
puzzles?: Record<string, {
|
|
29
|
-
puzzle?: unknown;
|
|
30
|
-
completeness?: unknown;
|
|
31
|
-
missing_dimensions: string[];
|
|
32
|
-
}>;
|
|
33
|
-
severity_threshold?: "critical" | "high" | "medium" | "low" | "info";
|
|
34
|
-
user_confirmed_high_risks?: string[];
|
|
35
|
-
planned_objects?: {
|
|
36
|
-
object_type: string;
|
|
37
|
-
is_new: boolean;
|
|
38
|
-
name?: string;
|
|
39
|
-
}[];
|
|
40
|
-
planned_operations?: {
|
|
41
|
-
object_type: string;
|
|
42
|
-
trigger: "create" | "publish";
|
|
43
|
-
name?: string;
|
|
44
|
-
}[];
|
|
45
|
-
}
|
|
46
|
-
export declare function handleAggregateRisks(v: AggregateRisksInput): Promise<{
|
|
47
|
-
intent_echo?: {
|
|
48
|
-
classification_source: "aggregate_risks_intent_echo";
|
|
49
|
-
primary_object: string;
|
|
50
|
-
industry: string;
|
|
51
|
-
overall_completeness: "complete" | "partial" | "empty";
|
|
52
|
-
} | undefined;
|
|
53
|
-
safety_findings?: import("../../knowledge/safety-rules.js").SafetyRiskItem[] | undefined;
|
|
54
|
-
status: string;
|
|
55
|
-
status_note: string;
|
|
56
|
-
objects_inspected: number;
|
|
57
|
-
evidence_scope: "puzzle_snapshots_only";
|
|
58
|
-
object_grounded: boolean;
|
|
59
|
-
publish_authorized: boolean;
|
|
60
|
-
publish_authorized_reason: string;
|
|
61
|
-
warnings: string[];
|
|
62
|
-
namespace: {
|
|
63
|
-
prefix: string;
|
|
64
|
-
version: string;
|
|
65
|
-
industry?: import("./namespace.js").IndustryMode;
|
|
66
|
-
};
|
|
67
|
-
findings: import("./risk-aggregator.js").AggregatedRisk[];
|
|
68
|
-
severity_summary: Record<import("./risk-aggregator.js").RiskSeverity, number>;
|
|
69
|
-
pending_confirmations?: Array<{
|
|
70
|
-
risk_rule_id: string;
|
|
71
|
-
description: string;
|
|
72
|
-
fix_suggestion: string;
|
|
73
|
-
object_type: import("./namespace.js").ProjectObjectType;
|
|
74
|
-
entry_id: string;
|
|
75
|
-
}>;
|
|
76
|
-
calibrated_at: number;
|
|
77
|
-
fix_suggestions_grouped?: Record<string, Array<{
|
|
78
|
-
risk_rule_id: string;
|
|
79
|
-
severity: import("./risk-aggregator.js").RiskSeverity;
|
|
80
|
-
message: string;
|
|
81
|
-
fix_suggestion: string;
|
|
82
|
-
entry_id: string;
|
|
83
|
-
}>>;
|
|
84
|
-
action: "aggregate_risks";
|
|
85
|
-
}>;
|
|
86
|
-
export interface TraceSubstepsInput {
|
|
87
|
-
project?: string;
|
|
88
|
-
version?: string;
|
|
89
|
-
network?: "testnet" | "mainnet";
|
|
90
|
-
substeps?: SubstepRecord[];
|
|
91
|
-
substep_edges?: SubstepEdge[];
|
|
92
|
-
}
|
|
93
|
-
export declare function handleTraceSubsteps(v: TraceSubstepsInput): Promise<{
|
|
94
|
-
namespace: {
|
|
95
|
-
prefix: string;
|
|
96
|
-
version: string;
|
|
97
|
-
};
|
|
98
|
-
network: string;
|
|
99
|
-
coherent: boolean;
|
|
100
|
-
dangling_inputs: import("../../task/substep-trace.js").DanglingInput[];
|
|
101
|
-
circular_refs: import("../../task/substep-trace.js").CircularRef[];
|
|
102
|
-
missing_outputs: import("../../task/substep-trace.js").MissingOutput[];
|
|
103
|
-
cross_step_breaks: import("../../task/substep-trace.js").CrossStepBreak[];
|
|
104
|
-
step_details: import("../../task/substep-trace.js").StepTraceDetail[];
|
|
105
|
-
topological_order: string[];
|
|
106
|
-
d10_check: import("../../task/substep-trace.js").D10CheckResult;
|
|
107
|
-
action: "trace_substeps";
|
|
108
|
-
}>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const SERVICE_BUILD_STAGES: string[];
|
|
2
|
-
export declare function serviceBuildRootDir(): string;
|
|
3
|
-
export declare function serviceBuildDir(prefix: string, version: string): string;
|
|
4
|
-
export declare function openServiceBuildProcessDir(prefix: string, version: string): string;
|
|
5
|
-
export declare function ensureServiceBuildProcess(prefix: string, version: string, mcpVersion: string): string;
|
|
6
|
-
export declare function openServiceBuildProcessDirById(processId: string): string;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { RelationshipProfileInput, RelationshipProfileResult } from "../../schema/query/bi.js";
|
|
2
|
-
export declare function resolveAddress(nameOrAddress: string, what: string): Promise<string>;
|
|
3
|
-
export declare function handleRelationshipProfile(v: RelationshipProfileInput): Promise<RelationshipProfileResult>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{describe,expect,it}from'vitest';import{generateBusinessReport,PENDING_STALE_HOURS_DEFAULT}from'./reverse-mapping.js';const svc=(a={})=>({'type':'0x2::service::Service','object':'0xsvc','name':'NK4\x20Test\x20Service','description':'Deterministic\x20report\x20fixture','bPublished':!![],'bPaused':![],'sales':[{'id':'0xsale'}],'arbitrations':['0xarb'],'compensation_fund':'1000','buy_guard':'0xbuyguard','um':'0xum','rewards':[],'order_allocators':{'allocators':[{'sharing':[{'who':{'GuardIdentifier':0x0}}]}]},...a}),machine=(a={})=>({'type':'0x2::machine::Machine','object':'0xmachine','bPublished':!![],'bPaused':![],'node_count':0x2,...a}),EDGE_OK=[{'from':'','to':'open'},{'from':'open','to':'done_ok'}];describe('N-K4\x20—\x20topology\x20stop\x20derivation',()=>{it('stop\x20nodes\x20come\x20from\x20edges\x20even\x20when\x20names\x20match\x20no\x20suffix',()=>{const a=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'beta'}],'machine_edges':[{'from':'','to':'open'},{'from':'open','to':'beta'}]});expect(a['merchantProfile']['workflowDescription'])['toContain']('Stop\x20nodes\x20(derived\x20from\x20workflow\x20edges):\x20beta'),expect(a['merchantProfile']['workflowDescription'])['not']['toContain']('name\x20convention');}),it('an\x20edge\x20table\x20with\x20no\x20entry\x20edge\x20keeps\x20topology\x20stops\x20but\x20degrades\x20reachability',()=>{const a=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'alpha'},{'name':'beta'}],'machine_edges':[{'from':'alpha','to':'beta'}]});expect(a['merchantProfile']['workflowDescription'])['toContain']('Stop\x20nodes\x20(derived\x20from\x20workflow\x20edges):\x20beta'),expect(a['merchantProfile']['refundPolicy'])['not']['toContain']('verify\x20the\x20reversal\x20rail');});}),describe('N-K4\x20—\x20refund-rail\x20verification\x20grades',()=>{const a=[{'name':'open'},{'name':'done_ok'},{'name':'refund'}],b=[{'from':'','to':'open'},{'from':'open','to':'refund'},{'from':'open','to':'done_ok'}],c=[{'from':'','to':'open'},{'from':'open','to':'done_ok'}];it('statically\x20reachable\x20—\x20reachable\x20rail\x20plus\x20an\x20order-routed\x20allocation\x20slot',()=>{const d=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':a,'machine_edges':b});expect(d['merchantProfile']['refundPolicy'])['toContain']('Workflow\x20edges\x20verify\x20the\x20reversal\x20rail\x20is\x20reachable:\x20node(s)\x20refund.'),expect(d['merchantProfile']['refundPolicy'])['toContain']('Escrow\x20can\x20be\x20routed\x20back\x20to\x20the\x20payer\x20or\x20to\x20the\x20order\x20by\x20an\x20allocation\x20slot.'),expect(d['userRiskAssessment']['protections'])['toContain']('Refund\x20path\x20statically\x20reachable\x20—\x20workflow\x20edges\x20reach\x20the\x20rail\x20and\x20an\x20order-routed\x20allocation\x20slot\x20exists\x20(static\x20graph\x20check\x20only;\x20leg\x20executability\x20is\x20audited\x20by\x20the\x20allocator\x20guard\x20lint,\x20not\x20here).');}),it('reachable\x20—\x20rail\x20reachable\x20but\x20no\x20order-routed\x20slot',()=>{const d=generateBusinessReport({'objects':[svc({'order_allocators':{'allocators':[{'sharing':[{'who':{'Entity':'0xseller'}}]}]}}),machine()],'machine_nodes':a,'machine_edges':b});expect(d['merchantProfile']['refundPolicy'])['toContain']('verify\x20the\x20reversal\x20rail\x20is\x20reachable'),expect(d['merchantProfile']['refundPolicy'])['not']['toContain']('allocation\x20slot.'),expect(d['userRiskAssessment']['protections'])['toContain']('Refund\x20path\x20statically\x20reachable\x20via\x20workflow\x20edges\x20(no\x20order-routed\x20allocation\x20slot\x20found).');}),it('dead\x20rail\x20without\x20a\x20slot\x20—\x20NO\x20refund\x20path\x20at\x20all',()=>{const d=generateBusinessReport({'objects':[svc({'order_allocators':{'allocators':[{'sharing':[{'who':{'Entity':'0xseller'}}]}]}}),machine()],'machine_nodes':a,'machine_edges':c});expect(d['merchantProfile']['refundPolicy'])['toContain']('NO\x20refund\x20path\x20detected'),expect(d['merchantProfile']['refundPolicy'])['toContain']('the\x20named\x20refund\x20node(s)\x20refund\x20are\x20UNREACHABLE\x20from\x20the\x20workflow\x20entry'),expect(d['userRiskAssessment']['keyRisks'])['toContain']('No\x20refund\x20path\x20—\x20escrowed\x20funds\x20may\x20be\x20unrecoverable.');}),it('dead\x20rail\x20with\x20a\x20slot\x20—\x20the\x20slot\x20is\x20the\x20only\x20remaining\x20return\x20leg',()=>{const d=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':a,'machine_edges':c});expect(d['merchantProfile']['refundPolicy'])['toContain']('A\x20refund\x20path\x20is\x20present.'),expect(d['merchantProfile']['refundPolicy'])['toContain']('the\x20named\x20refund\x20node(s)\x20refund\x20are\x20UNREACHABLE\x20from\x20the\x20workflow\x20entry'),expect(d['userRiskAssessment']['keyRisks']['find'](e=>e['includes']('unreachable')))['toContain']('that\x20rail\x20is\x20dead;\x20only\x20the\x20allocation\x20slot\x20can\x20still\x20return\x20funds.');});}),describe('N-K4\x20—\x20pending-order\x20aging',()=>{const a=0x18bcfe56800,b=0x36ee80,c=0x5265c00,d=(e,f=null,g='0xo')=>({'id':g,'created_at_ms':a-e,'claimed_by':f});it('3\x20overdue\x20pending\x20orders\x20floor\x20the\x20risk\x20level\x20to\x20high',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[d(0x8*c,null,'0x1'),d(0x9*c,null,'0x2'),d(0xa*c,null,'0x3')],'now_ms':a});expect(e['orderHealth'])['toMatchObject']({'observed':0x3,'pending':0x3,'agingKnown':!![],'overdue':0x3,'staleHours':0xa8}),expect(e['orderHealth']?.['oldestPendingAgeDays'])['toBe'](0xa),expect(e['userRiskAssessment']['riskLevel'])['toBe']('high'),expect(e['userRiskAssessment']['keyRisks']['find'](f=>f['includes']('settlement\x20window')))['toContain']('oldest:\x2010d');}),it('1\x20overdue\x20pending\x20order\x20floors\x20the\x20risk\x20level\x20to\x20medium',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[d(0x8*c,null,'0x1')],'now_ms':a});expect(e['orderHealth']?.['overdue'])['toBe'](0x1),expect(e['userRiskAssessment']['riskLevel'])['toBe']('medium');}),it('fresh\x20pending\x20orders\x20are\x20a\x20notice,\x20never\x20a\x20risk\x20floor',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[d(0x2*b,null,'0x1'),d(0x5*b,null,'0x2')],'now_ms':a});expect(e['orderHealth']?.['overdue'])['toBe'](0x0),expect(e['userRiskAssessment']['riskLevel'])['toBe']('low'),expect(e['userRiskAssessment']['notices'])['toContain']('2\x20order(s)\x20in\x20the\x20recent\x20window\x20are\x20pending\x20(not\x20yet\x20settled).');}),it('claimed\x20orders\x20are\x20not\x20pending\x20and\x20never\x20age',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[d(0x1e*c,'0xbuyer','0x1')],'now_ms':a});expect(e['orderHealth'])['toMatchObject']({'observed':0x1,'pending':0x0,'overdue':0x0}),expect(e['userRiskAssessment']['riskLevel'])['toBe']('low'),expect(e['userRiskAssessment']['notices']['join']('\x20'))['not']['toContain']('pending');}),it('an\x20order\x20resting\x20on\x20a\x20topology\x20stop\x20node\x20is\x20settled,\x20not\x20pending\x20(F-26,\x20nnd-tn-261025)',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[{'id':'0x1','created_at_ms':a-0x1e*c,'claimed_by':null,'current_node':'done_ok'},d(0x2*b,null,'0x2')],'now_ms':a});expect(e['orderHealth'])['toMatchObject']({'observed':0x2,'pending':0x1,'settled':0x1,'overdue':0x0}),expect(e['userRiskAssessment']['riskLevel'])['toBe']('low'),expect(e['userRiskAssessment']['notices'])['toContain']('1\x20order(s)\x20in\x20the\x20recent\x20window\x20are\x20pending\x20(not\x20yet\x20settled).');}),it('the\x20name-suffix\x20stop\x20approximation\x20never\x20reclassifies\x20(F-26\x20false-negative\x20guard)',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'orders':[{'id':'0x1','created_at_ms':a-0x1e*c,'claimed_by':null,'current_node':'done_ok'}],'now_ms':a});expect(e['orderHealth'])['toMatchObject']({'observed':0x1,'pending':0x1}),expect(e['orderHealth']?.['settled'])['toBeUndefined']();}),it('orders\x20without\x20a\x20readable\x20timestamp\x20count\x20as\x20pending\x20but\x20never\x20overdue',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[{'id':'0x1','claimed_by':null}],'now_ms':a});expect(e['orderHealth'])['toMatchObject']({'observed':0x1,'pending':0x1,'agingKnown':!![],'overdue':0x0,'oldestPendingAgeDays':null}),expect(e['userRiskAssessment']['riskLevel'])['toBe']('low');}),it('no\x20clock\x20supplied\x20—\x20agingKnown=false\x20and\x20overdue\x20is\x200\x20BY\x20CONVENTION',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[d(0x1e*c,null,'0x1')]});expect(e['orderHealth'])['toMatchObject']({'pending':0x1,'agingKnown':![],'overdue':0x0,'oldestPendingAgeDays':null}),expect(e['userRiskAssessment']['riskLevel'])['toBe']('low');}),it('a\x20custom\x20stale\x20threshold\x20overrides\x20the\x20168h\x20default',()=>{const e=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'}],'machine_edges':EDGE_OK,'orders':[d(0x2*c,null,'0x1')],'now_ms':a,'pending_stale_hours':0x18});expect(e['orderHealth']?.['staleHours'])['toBe'](0x18),expect(e['orderHealth']?.['overdue'])['toBe'](0x1);}),it('the\x20default\x20stale\x20threshold\x20constant\x20is\x20168h',()=>{expect(PENDING_STALE_HOURS_DEFAULT)['toBe'](0xa8);});}),describe('N-K4\x20—\x20determinism\x20and\x20backward\x20compatibility',()=>{it('identical\x20inputs\x20produce\x20byte-identical\x20reports\x20(fixed\x20clock)',()=>{const c={'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'},{'name':'refund'}],'machine_edges':[{'from':'','to':'open'},{'from':'open','to':'refund'},{'from':'open','to':'done_ok'}],'orders':[{'id':'0x1','created_at_ms':0x18b944a9e00,'claimed_by':null}],'now_ms':0x18bcfe56800},d=JSON['stringify'](generateBusinessReport(c)),e=JSON['stringify'](generateBusinessReport(c));expect(d)['toBe'](e);}),it('no\x20edges\x20and\x20no\x20orders\x20reproduce\x20the\x20legacy\x20name-convention\x20behavior',()=>{const a=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'},{'name':'done_ok'},{'name':'refund'}]});expect(a['orderHealth'])['toBeUndefined'](),expect(a['merchantProfile']['workflowDescription'])['toContain']('name\x20convention\x20only'),expect(a['merchantProfile']['refundPolicy'])['toContain']('A\x20refund\x20path\x20is\x20present.'),expect(a['merchantProfile']['refundPolicy'])['toContain']('Reversal\x20rail:\x20workflow\x20node(s)\x20refund.');}),it('an\x20empty\x20order\x20window\x20emits\x20no\x20orderHealth',()=>{const a=generateBusinessReport({'objects':[svc(),machine()],'machine_nodes':[{'name':'open'}],'machine_edges':[{'from':'','to':'open'}],'orders':[],'now_ms':0x18bcfe56800});expect(a['orderHealth'])['toBeUndefined']();});});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{describe,it,expect}from'vitest';import{generateBusinessReport}from'./reverse-mapping.js';const SERVICE='0x'+'11'['repeat'](0x20),MACHINE='0x'+'22'['repeat'](0x20),ORDER='0x'+'33'['repeat'](0x20),PROPERTY='0x00b64bf4a1be99dd096a03e7dfbbaaae100c6d9660700de19a9ce4be310cf0cc',PLATFORM='0x008656aed73fd829199c2b45a72180f61100de3b9f9838fb05cfaf08112033ce',OTA_NODES=['paid','confirmed','in_stay','completed','reviewed','claim_open','closed_cancel']['map'](a=>({'name':a}));function otaInput(a,b=OTA_NODES){return{'objects':[{'type':'Service','object':SERVICE,'description':'Booking.com\x20merchant-mode\x20accommodation\x20store','bPublished':!![],'bPaused':![],'salesCount':0x3,'arbitrations':[{'object':'0x'+'44'['repeat'](0x20)}],'compensation_fund':'3000000000','order_allocators':a},{'type':'Machine','object':MACHINE,'bPublished':!![],'bPaused':![],'node_count':0x7}],'machine_nodes':b,'order_amount':'189000000'};}const REAL_OTA_ALLOCATORS={'threshold':'0','allocators':[{'guard':'0xsettle','sharing':[{'who':{'GuardIdentifier':0x0},'mode':'rate','value':'0'},{'who':{'Entity':PROPERTY},'mode':'rate','value':'8400'},{'who':{'Entity':PLATFORM},'mode':'rate','value':'1500'},{'who':{'Entity':PLATFORM},'mode':'surplus','value':'0'}]},{'guard':'0xrefund','sharing':[{'who':{'GuardIdentifier':0x0},'mode':'rate','value':'10000'}]},{'guard':'0xnoshow','sharing':[{'who':{'Entity':PROPERTY},'mode':'rate','value':'8400'},{'who':{'Entity':PLATFORM},'mode':'rate','value':'1600'}]},{'guard':'0xarb','sharing':[{'who':{'GuardIdentifier':0x0},'mode':'rate','value':'10000'}]}]},report=a=>generateBusinessReport(a);describe('P0-5\x20reverse_map\x20refund-path\x20detection',()=>{describe('root\x20cause\x201\x20—\x20word-list\x20drift\x20on\x20stop-node\x20names',()=>{it('treats\x20the\x20house-style\x20node\x20name\x20`closed_cancel`\x20as\x20a\x20refund\x20rail',()=>{const a=report(otaInput(undefined));expect(a['merchantProfile']['refundPolicy'])['not']['toContain']('NO\x20refund\x20path');}),it['each'](['closed_cancel','free_cancel','cancelled','canceled','refunded','refund','returned','return_complete','expired','voided','walk_claim','chargeback'])('recognises\x20%s\x20as\x20refund-indicating',a=>{const b=report(otaInput(undefined,[a,'paid']['map'](c=>({'name':c}))));expect(b['merchantProfile']['refundPolicy'])['not']['toContain']('NO\x20refund\x20path');}),it('does\x20NOT\x20treat\x20a\x20charge\x20node\x20(no_show)\x20as\x20a\x20refund\x20rail',()=>{const a=report(otaInput(undefined,['no_show','paid']['map'](b=>({'name':b}))));expect(a['merchantProfile']['refundPolicy'])['toContain']('NO\x20refund\x20path');}),it('still\x20reports\x20NO\x20refund\x20path\x20when\x20there\x20is\x20genuinely\x20nothing',()=>{const a=report(otaInput(undefined,['paid','delivering','delivered']['map'](b=>({'name':b}))));expect(a['merchantProfile']['refundPolicy'])['toContain']('NO\x20refund\x20path');}),it('cites\x20the\x20concrete\x20reversal\x20node\x20in\x20the\x20refund\x20policy',()=>{const a=report(otaInput(undefined));expect(a['merchantProfile']['refundPolicy'])['toContain']('closed_cancel');});}),describe('root\x20cause\x202\x20—\x20the\x20SAFE\x20recipient\x20shape\x20was\x20the\x20one\x20flagged',()=>{it('detects\x20a\x20refund\x20slot\x20routed\x20through\x20GuardIdentifier\x20(the\x20recommended\x20safe\x20form)',()=>{const a=report(otaInput(REAL_OTA_ALLOCATORS,['paid','completed']['map'](b=>({'name':b}))));expect(a['merchantProfile']['refundPolicy'])['not']['toContain']('NO\x20refund\x20path'),expect(a['merchantProfile']['refundPolicy'])['toContain']('routed\x20back\x20to\x20the\x20payer\x20or\x20to\x20the\x20order');}),it('detects\x20the\x20rendered\x20panorama\x20form\x20\x22Guard\x20identifier\x20#0\x22',()=>{const a={'allocators':[{'guard':'0xg','sharing':[{'who':'Guard\x20identifier\x20#0','entity':null,'mode':'rate','value':'10000'}]}]},b=report(otaInput(a,['paid','completed']['map'](c=>({'name':c}))));expect(b['merchantProfile']['refundPolicy'])['not']['toContain']('NO\x20refund\x20path');}),it('still\x20detects\x20the\x20legacy\x20Signer\x20form',()=>{const a={'allocators':[{'guard':'0xg','sharing':[{'who':{'Signer':'signer'},'mode':'rate','value':'10000'}]}]},b=report(otaInput(a,['paid','completed']['map'](c=>({'name':c}))));expect(b['merchantProfile']['refundPolicy'])['not']['toContain']('NO\x20refund\x20path');}),it('does\x20NOT\x20treat\x20a\x20pure\x20Entity\x20split\x20as\x20a\x20refund\x20path',()=>{const a={'allocators':[{'guard':'0xsettle','sharing':[{'who':{'Entity':PROPERTY},'mode':'rate','value':'8400'},{'who':{'Entity':PLATFORM},'mode':'rate','value':'1600'}]}]},b=report(otaInput(a,['paid','completed','reviewed']['map'](c=>({'name':c}))));expect(b['merchantProfile']['refundPolicy'])['toContain']('NO\x20refund\x20path');});}),describe('buyer-facing\x20risk\x20level',()=>{it('does\x20not\x20flag\x20HIGH\x20risk\x20for\x20a\x20store\x20with\x20a\x20working\x20refund\x20rail',()=>{const a=report(otaInput(REAL_OTA_ALLOCATORS)),b=JSON['stringify'](a);expect(b)['not']['toContain']('NO\x20refund\x20path'),expect(a['userRiskAssessment']['keyRisks']['join']('\x20'))['not']['toContain']('No\x20refund\x20path');}),it('keeps\x20flagging\x20a\x20store\x20that\x20genuinely\x20has\x20no\x20refund\x20rail',()=>{const a=report(otaInput(undefined,['paid','delivering','delivered']['map'](b=>({'name':b}))));expect(a['userRiskAssessment']['keyRisks']['join']('\x20'))['toContain']('No\x20refund\x20path');});}),describe('determinism\x20(K3\x2003\x20contract)',()=>{it('produces\x20byte-identical\x20output\x20for\x20identical\x20input',()=>{expect(JSON['stringify'](report(otaInput(REAL_OTA_ALLOCATORS))))['toBe'](JSON['stringify'](report(otaInput(REAL_OTA_ALLOCATORS))));});}),describe('degenerate\x20inputs',()=>{it('does\x20not\x20throw\x20when\x20the\x20Machine\x20is\x20absent',()=>{const a=generateBusinessReport({'objects':[{'type':'Service','object':SERVICE,'order_allocators':REAL_OTA_ALLOCATORS}]});expect(a['merchantProfile']['refundPolicy'])['not']['toContain']('NO\x20refund\x20path');}),it('tolerates\x20a\x20Service\x20with\x20no\x20order_allocators\x20field\x20at\x20all',()=>{const a=report(otaInput(undefined));expect(typeof a['merchantProfile']['refundPolicy'])['toBe']('string');}),it('tolerates\x20an\x20empty\x20allocator\x20list',()=>{const a=report(otaInput({'threshold':'0','allocators':[]}));expect(typeof a['merchantProfile']['refundPolicy'])['toBe']('string');});}),it('keeps\x20ORDER\x20referenced\x20so\x20the\x20escrow\x20mention\x20stays\x20grounded',()=>{expect(ORDER)['toMatch'](/^0x[0-9a-f]{64}$/),expect(report(otaInput(REAL_OTA_ALLOCATORS,[{'name':'closed_cancel'}]))['merchantProfile']['refundPolicy'])['toContain']('closed_cancel');});});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
export interface MerchantProfile {
|
|
2
|
-
serviceDescription: string;
|
|
3
|
-
workflowDescription: string;
|
|
4
|
-
refundPolicy: string;
|
|
5
|
-
arbitrationPolicy: string;
|
|
6
|
-
}
|
|
7
|
-
export interface UserRiskAssessment {
|
|
8
|
-
riskLevel: "low" | "medium" | "high" | "critical";
|
|
9
|
-
keyRisks: string[];
|
|
10
|
-
protections: string[];
|
|
11
|
-
missingProtections: string[];
|
|
12
|
-
notices: string[];
|
|
13
|
-
}
|
|
14
|
-
export interface GameTheoryAnalysis {
|
|
15
|
-
merchantIncentives: string[];
|
|
16
|
-
userIncentives: string[];
|
|
17
|
-
potentialConflicts: string[];
|
|
18
|
-
wowAlignments: string[];
|
|
19
|
-
}
|
|
20
|
-
export interface BusinessReport {
|
|
21
|
-
summary: string;
|
|
22
|
-
merchantProfile: MerchantProfile;
|
|
23
|
-
userRiskAssessment: UserRiskAssessment;
|
|
24
|
-
gameTheoryAnalysis: GameTheoryAnalysis;
|
|
25
|
-
orderHealth?: OrderHealthStats;
|
|
26
|
-
}
|
|
27
|
-
export interface ReverseMappingEdge {
|
|
28
|
-
from: string;
|
|
29
|
-
to: string;
|
|
30
|
-
forward_count?: number;
|
|
31
|
-
unguarded_forward_count?: number;
|
|
32
|
-
}
|
|
33
|
-
export interface ReverseMappingOrder {
|
|
34
|
-
id?: string;
|
|
35
|
-
created_at_ms?: number | string;
|
|
36
|
-
claimed_by?: string | null;
|
|
37
|
-
current_node?: string | null;
|
|
38
|
-
}
|
|
39
|
-
export interface OrderHealthStats {
|
|
40
|
-
observed: number;
|
|
41
|
-
pending: number;
|
|
42
|
-
settled?: number;
|
|
43
|
-
agingKnown: boolean;
|
|
44
|
-
overdue: number;
|
|
45
|
-
oldestPendingAgeDays: number | null;
|
|
46
|
-
staleHours: number;
|
|
47
|
-
}
|
|
48
|
-
export interface ReverseMappingInput {
|
|
49
|
-
objects: unknown[];
|
|
50
|
-
machine_nodes?: Array<{
|
|
51
|
-
name: string;
|
|
52
|
-
}>;
|
|
53
|
-
machine_edges?: ReverseMappingEdge[];
|
|
54
|
-
orders?: ReverseMappingOrder[];
|
|
55
|
-
now_ms?: number;
|
|
56
|
-
pending_stale_hours?: number;
|
|
57
|
-
order_amount?: string;
|
|
58
|
-
arbitrations?: Array<{
|
|
59
|
-
found?: boolean;
|
|
60
|
-
paused?: boolean;
|
|
61
|
-
}>;
|
|
62
|
-
}
|
|
63
|
-
export declare const PENDING_STALE_HOURS_DEFAULT = 168;
|
|
64
|
-
export declare function generateBusinessReport(input: ReverseMappingInput): BusinessReport;
|
|
65
|
-
export declare function classifyObjectType(obj: unknown): string;
|
|
66
|
-
export declare function extractObjectFields(obj: unknown): Record<string, unknown>;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { ProjectObjectType, IndustryMode } from "./namespace.js";
|
|
2
|
-
import type { ObjectPuzzleEntry } from "./business-puzzle.js";
|
|
3
|
-
import { type Severity } from "../../config/severity.js";
|
|
4
|
-
export type RiskSeverity = Severity;
|
|
5
|
-
export interface RiskAggregationInput {
|
|
6
|
-
project_prefix: string;
|
|
7
|
-
version: string;
|
|
8
|
-
industry?: IndustryMode | string;
|
|
9
|
-
puzzles: Record<string, ObjectPuzzleEntry>;
|
|
10
|
-
severity_threshold?: RiskSeverity;
|
|
11
|
-
user_confirmed_high_risks?: string[];
|
|
12
|
-
}
|
|
13
|
-
export interface AggregatedRisk {
|
|
14
|
-
risk_rule_id: string;
|
|
15
|
-
object_type: ProjectObjectType;
|
|
16
|
-
entry_id: string;
|
|
17
|
-
severity: RiskSeverity;
|
|
18
|
-
message: string;
|
|
19
|
-
fix_suggestion: string;
|
|
20
|
-
details?: {
|
|
21
|
-
field_path?: string;
|
|
22
|
-
actual_value?: unknown;
|
|
23
|
-
expected_value?: unknown;
|
|
24
|
-
rule_source?: string;
|
|
25
|
-
proposal_node?: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface RiskAggregationResult {
|
|
29
|
-
namespace: {
|
|
30
|
-
prefix: string;
|
|
31
|
-
version: string;
|
|
32
|
-
industry?: IndustryMode;
|
|
33
|
-
};
|
|
34
|
-
findings: AggregatedRisk[];
|
|
35
|
-
severity_summary: Record<RiskSeverity, number>;
|
|
36
|
-
status: "STATIC_ANALYZERS_CLEAN" | "RISK_BLOCKED" | "RISK_PENDING_CONFIRM" | "RISK_CANCELLED";
|
|
37
|
-
pending_confirmations?: Array<{
|
|
38
|
-
risk_rule_id: string;
|
|
39
|
-
description: string;
|
|
40
|
-
fix_suggestion: string;
|
|
41
|
-
object_type: ProjectObjectType;
|
|
42
|
-
entry_id: string;
|
|
43
|
-
}>;
|
|
44
|
-
calibrated_at: number;
|
|
45
|
-
fix_suggestions_grouped?: Record<string, Array<{
|
|
46
|
-
risk_rule_id: string;
|
|
47
|
-
severity: RiskSeverity;
|
|
48
|
-
message: string;
|
|
49
|
-
fix_suggestion: string;
|
|
50
|
-
entry_id: string;
|
|
51
|
-
}>>;
|
|
52
|
-
warnings: string[];
|
|
53
|
-
}
|
|
54
|
-
export declare function aggregateProjectRisks(input: RiskAggregationInput): Promise<RiskAggregationResult>;
|
|
55
|
-
export declare function sortFindings(findings: AggregatedRisk[]): AggregatedRisk[];
|
|
56
|
-
export declare function countBySeverity(findings: AggregatedRisk[]): Record<RiskSeverity, number>;
|
|
57
|
-
export declare function determineStatus(severity_summary: Record<RiskSeverity, number>, threshold: RiskSeverity, user_confirmed_high_risks: string[], findings: AggregatedRisk[]): RiskAggregationResult["status"];
|
|
58
|
-
export declare function getCriticalRisks(result: RiskAggregationResult): AggregatedRisk[];
|
|
59
|
-
export declare function summarizeRiskReport(result: RiskAggregationResult): string;
|