@remnic/core 9.50.3 → 9.51.0
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/access-admin-ops-surface.d.ts +13 -11
- package/dist/access-admin-ops-surface.js +41 -39
- package/dist/access-authorization-probe.d.ts +13 -11
- package/dist/access-authorization-probe.js +42 -40
- package/dist/access-boundary.d.ts +13 -11
- package/dist/access-boundary.js +41 -39
- package/dist/access-cli.js +109 -104
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +3 -1
- package/dist/access-extraction-force-flush.d.ts +13 -11
- package/dist/access-extraction-force-flush.js +41 -39
- package/dist/access-health-types.d.ts +3 -1
- package/dist/access-http-lcm-compaction.d.ts +13 -11
- package/dist/access-http-lifecycle-flush.d.ts +13 -11
- package/dist/access-http-offline-stream.d.ts +13 -11
- package/dist/access-http-query.js +41 -39
- package/dist/access-http.d.ts +13 -11
- package/dist/access-http.js +52 -50
- package/dist/access-identity-continuity-surface.d.ts +11 -9
- package/dist/access-identity-continuity-surface.js +41 -39
- package/dist/access-lcm-surface.d.ts +13 -11
- package/dist/access-lcm-surface.js +41 -39
- package/dist/access-mcp.d.ts +13 -11
- package/dist/access-mcp.js +47 -45
- package/dist/access-memory-search-fanout.d.ts +4 -2
- package/dist/{access-namespace-preflight-Dj2QolFE.d.ts → access-namespace-preflight-Ds6CGlCP.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +5 -3
- package/dist/access-namespace-preflight.js +41 -39
- package/dist/access-observe-write-surface.d.ts +13 -11
- package/dist/access-observe-write-surface.js +41 -39
- package/dist/access-offline-manifest.d.ts +11 -9
- package/dist/access-operations-batch.js +43 -41
- package/dist/access-operations.d.ts +16 -14
- package/dist/access-operations.js +46 -44
- package/dist/access-recall-concurrency.d.ts +13 -11
- package/dist/access-recall-concurrency.js +41 -39
- package/dist/access-recall-response.d.ts +13 -11
- package/dist/access-recall-response.js +41 -39
- package/dist/access-recall-surface.d.ts +13 -11
- package/dist/access-recall-surface.js +41 -39
- package/dist/access-schema.d.ts +88 -88
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-DesbnTSa.d.ts → access-service-BY0KJ44c.d.ts} +7 -7
- package/dist/access-service-helpers.d.ts +13 -11
- package/dist/access-service.d.ts +13 -11
- package/dist/access-service.js +41 -39
- package/dist/access-surface-catalog.d.ts +13 -11
- package/dist/access-wearables-meetings-surface.d.ts +5 -3
- package/dist/action-confidence.d.ts +3 -1
- package/dist/active-memory-bridge.d.ts +3 -1
- package/dist/active-recall.d.ts +3 -1
- package/dist/active-recall.js +5 -3
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/ambient-provenance.d.ts +3 -1
- package/dist/archive-mutation-version.d.ts +9 -0
- package/dist/archive-mutation-version.js +20 -0
- package/dist/artifact-search.d.ts +3 -1
- package/dist/behavior-learner.d.ts +3 -1
- package/dist/behavior-signals.d.ts +3 -1
- package/dist/bootstrap.d.ts +11 -9
- package/dist/briefing.d.ts +4 -2
- package/dist/briefing.js +10 -9
- package/dist/buffer-surprise-report.d.ts +3 -1
- package/dist/buffer-turn-helpers.d.ts +3 -1
- package/dist/buffer.d.ts +4 -2
- package/dist/buffer.js +5 -5
- package/dist/bulk-import/index.d.ts +5 -3
- package/dist/calibration.d.ts +3 -1
- package/dist/capabilities.d.ts +3 -1
- package/dist/{catalog-D-G7RgXR.d.ts → catalog-D3B4RDy1.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +3 -1
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.d.ts +3 -1
- package/dist/causal-consolidation.js +13 -12
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.d.ts +4 -2
- package/dist/causal-trajectory-graph.js +2 -1
- package/dist/causal-trajectory-graph.js.map +1 -1
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-KDG2KTWW.js → chunk-33SV3E43.js} +4 -4
- package/dist/{chunk-2HGUDBRJ.js → chunk-37ZO6LLJ.js} +2 -2
- package/dist/{chunk-QW3WFHKU.js → chunk-45BRYON6.js} +2 -2
- package/dist/{chunk-GZICBRWK.js → chunk-4F6X3RXW.js} +2 -2
- package/dist/{chunk-7BAYBYY5.js → chunk-4PC4PRJE.js} +2 -2
- package/dist/{chunk-VJXY5ZCT.js → chunk-52UKFTUK.js} +2 -2
- package/dist/{chunk-ESG7Z255.js → chunk-5UDMFE3Q.js} +2 -2
- package/dist/{chunk-JPHEOE6Z.js → chunk-6MTSFX7A.js} +15 -15
- package/dist/chunk-6ZN34ISG.js +44 -0
- package/dist/chunk-6ZN34ISG.js.map +1 -0
- package/dist/{chunk-M4MP34AQ.js → chunk-AHZOMHWN.js} +1 -1
- package/dist/{chunk-Z3RHPGSY.js → chunk-AIUBBHSF.js} +3 -3
- package/dist/{chunk-S3AYIQCU.js → chunk-AXIDQG5A.js} +12 -12
- package/dist/{chunk-QN7NTKRC.js → chunk-AZ2QBGYB.js} +1 -1
- package/dist/{chunk-47J4EDGR.js → chunk-AZM4CCAC.js} +8 -8
- package/dist/{chunk-IXXABW5A.js → chunk-BHXYAVUM.js} +11 -5
- package/dist/chunk-BHXYAVUM.js.map +1 -0
- package/dist/{chunk-L2DPF4DF.js → chunk-BIJAWZYW.js} +54 -12
- package/dist/chunk-BIJAWZYW.js.map +1 -0
- package/dist/{chunk-LEJPSMKM.js → chunk-C5QLI33R.js} +3 -3
- package/dist/{chunk-SV3PSA7Y.js → chunk-CV6BBVYV.js} +5 -5
- package/dist/{chunk-V7X767RT.js → chunk-DCZBSE4F.js} +52 -52
- package/dist/chunk-FC67T4E6.js +70 -0
- package/dist/chunk-FC67T4E6.js.map +1 -0
- package/dist/{chunk-7PKFPLLZ.js → chunk-FXTYIA46.js} +2 -2
- package/dist/{chunk-64BHFFKZ.js → chunk-HLYR2TQL.js} +5 -5
- package/dist/{chunk-5C2HNJMO.js → chunk-J5LLX6IL.js} +32 -32
- package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
- package/dist/{chunk-PLKFO2HJ.js → chunk-JL43BVDE.js} +2 -2
- package/dist/{chunk-2S72LWKX.js → chunk-JYL3BVVZ.js} +2 -2
- package/dist/{chunk-IPLYGWQF.js → chunk-KQAFEZQX.js} +5 -5
- package/dist/chunk-LXY5VVGM.js +61 -0
- package/dist/chunk-LXY5VVGM.js.map +1 -0
- package/dist/{chunk-PYKKWQZ2.js → chunk-M7BXDKPR.js} +6 -6
- package/dist/{chunk-Z54EM5YZ.js → chunk-MAXVH44E.js} +7 -7
- package/dist/{chunk-LYMNZZIM.js → chunk-NIS256NW.js} +2 -2
- package/dist/{chunk-67QG75MJ.js → chunk-NLK2VZYZ.js} +2 -2
- package/dist/{chunk-A4QMKFFO.js → chunk-O5FFBO2M.js} +14 -28
- package/dist/chunk-O5FFBO2M.js.map +1 -0
- package/dist/{chunk-JYIFGGEM.js → chunk-OUKBMQ2O.js} +2 -2
- package/dist/{chunk-75XOWNRS.js → chunk-OYESWJ43.js} +4 -4
- package/dist/{chunk-TS4AJ2GI.js → chunk-PA45XCUD.js} +3 -3
- package/dist/{chunk-BJYET5TX.js → chunk-PRDJMOST.js} +7 -1
- package/dist/chunk-PRDJMOST.js.map +1 -0
- package/dist/{chunk-4MBPIL4V.js → chunk-PUSLMZBQ.js} +2 -2
- package/dist/{chunk-RVO6TCTU.js → chunk-QCECHYZL.js} +6 -6
- package/dist/{chunk-GFIKG4FR.js → chunk-QGR6OVGT.js} +2 -2
- package/dist/{chunk-NSGU76YO.js → chunk-QHFV6VNU.js} +6 -2
- package/dist/chunk-QHFV6VNU.js.map +1 -0
- package/dist/{chunk-PDEKQWDV.js → chunk-QT2FRYI4.js} +18 -2
- package/dist/chunk-QT2FRYI4.js.map +1 -0
- package/dist/{chunk-HNZKVLAN.js → chunk-S354QO4R.js} +2 -2
- package/dist/{chunk-NO37MR45.js → chunk-SOEN6KCF.js} +2 -2
- package/dist/{chunk-FXX6RQYC.js → chunk-TPTECFWR.js} +2 -2
- package/dist/{chunk-GDDGZVFI.js → chunk-UEVLYVNW.js} +2 -2
- package/dist/{chunk-YQ4IQ2GA.js → chunk-UT5BV5OG.js} +2 -2
- package/dist/{chunk-LAQ33B5D.js → chunk-UU3G6GUP.js} +1 -1
- package/dist/chunk-UU3G6GUP.js.map +1 -0
- package/dist/{chunk-LNTUXKBT.js → chunk-UYYW2KPU.js} +2 -2
- package/dist/{chunk-BOFVT6P3.js → chunk-VBHPOWBJ.js} +175 -98
- package/dist/chunk-VBHPOWBJ.js.map +1 -0
- package/dist/{chunk-QSYL5CXK.js → chunk-VKXWK44Q.js} +3 -3
- package/dist/{chunk-KMWYZTIE.js → chunk-VMMQDEN5.js} +2 -2
- package/dist/{chunk-JB6D7EFB.js → chunk-VVG2BOKA.js} +2 -2
- package/dist/chunk-W5BIQOAJ.js +69 -0
- package/dist/chunk-W5BIQOAJ.js.map +1 -0
- package/dist/{chunk-V5H6OJCR.js → chunk-W5XVQFLM.js} +2 -2
- package/dist/{chunk-OIOZ6MOP.js → chunk-W6FNX2LP.js} +2 -2
- package/dist/{chunk-6QPHF6RR.js → chunk-WQM326GS.js} +2 -2
- package/dist/{chunk-TQFHQPWD.js → chunk-XADV5IZ3.js} +8 -8
- package/dist/{chunk-DATDLJAO.js → chunk-XAPMEU3K.js} +2 -2
- package/dist/chunk-XXSOVESA.js +42 -0
- package/dist/chunk-XXSOVESA.js.map +1 -0
- package/dist/{chunk-IK6X5QPO.js → chunk-ZHY5TMJG.js} +1193 -443
- package/dist/chunk-ZHY5TMJG.js.map +1 -0
- package/dist/{chunk-N3LL5NEU.js → chunk-ZMYDYNI4.js} +2 -2
- package/dist/{cli-D4vvtxjY.d.ts → cli-CnOkH9hA.d.ts} +6 -6
- package/dist/cli.d.ts +15 -13
- package/dist/cli.js +74 -70
- package/dist/coding/pre-action-gate.d.ts +3 -1
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.d.ts +4 -2
- package/dist/compounding/engine.js +10 -9
- package/dist/compounding/preference-consolidator.d.ts +3 -1
- package/dist/compression-optimizer.d.ts +3 -1
- package/dist/config.d.ts +3 -1
- package/dist/config.js +5 -3
- package/dist/connectors/codex-materialize-runner.d.ts +3 -1
- package/dist/connectors/codex-materialize-runner.js +10 -9
- package/dist/connectors/codex-materialize.d.ts +3 -1
- package/dist/connectors/index.d.ts +3 -1
- package/dist/connectors/index.js +10 -9
- package/dist/consolidation-provenance-check.d.ts +4 -2
- package/dist/consolidation-undo.d.ts +4 -2
- package/dist/contradiction/index.d.ts +4 -2
- package/dist/contradiction-config.d.ts +29 -0
- package/dist/contradiction-config.js +12 -0
- package/dist/contradiction-config.js.map +1 -0
- package/dist/converge-config.d.ts +3 -1
- package/dist/convergence-refresh.d.ts +4 -2
- package/dist/convergence-refresh.js +12 -11
- package/dist/conversation-index/backend.d.ts +3 -1
- package/dist/conversation-index/chunker.d.ts +3 -1
- package/dist/conversation-index/faiss-adapter.d.ts +3 -1
- package/dist/conversation-index/indexer.d.ts +3 -1
- package/dist/conversation-index/search.d.ts +3 -1
- package/dist/corpus-watermark.d.ts +3 -1
- package/dist/corpus-watermark.js +21 -20
- package/dist/day-summary.d.ts +3 -1
- package/dist/delinearize.d.ts +3 -1
- package/dist/dependency-propagation-config.d.ts +3 -1
- package/dist/direct-answer-wiring.d.ts +3 -1
- package/dist/direct-answer.d.ts +3 -1
- package/dist/embedding-fallback.d.ts +3 -1
- package/dist/enrichment/index.d.ts +3 -1
- package/dist/entity-retrieval.d.ts +4 -2
- package/dist/entity-retrieval.js +10 -9
- package/dist/entity-schema.d.ts +3 -1
- package/dist/explicit-capture.d.ts +11 -9
- package/dist/explicit-capture.js +3 -2
- package/dist/external-wiki-access.d.ts +13 -11
- package/dist/external-wiki-access.js +42 -40
- package/dist/external-wiki-collection-registration.d.ts +3 -1
- package/dist/external-wiki-collection.d.ts +3 -1
- package/dist/external-wiki-mcp-tools.d.ts +13 -11
- package/dist/extraction-error-classification.d.ts +3 -1
- package/dist/extraction-faithfulness.d.ts +3 -1
- package/dist/extraction-judge-telemetry.d.ts +3 -1
- package/dist/extraction-judge-training.d.ts +3 -1
- package/dist/extraction-judge.d.ts +3 -1
- package/dist/extraction-liveness.d.ts +3 -1
- package/dist/extraction-normalization.d.ts +3 -1
- package/dist/extraction-prompt.d.ts +3 -1
- package/dist/extraction-source-grounding-rules.d.ts +3 -1
- package/dist/extraction-source-grounding.d.ts +3 -1
- package/dist/extraction.d.ts +3 -1
- package/dist/extraction.js +22 -21
- package/dist/fallback-llm.d.ts +3 -1
- package/dist/graph-444E-DrF.d.ts +349 -0
- package/dist/graph-dashboard-diff.d.ts +4 -2
- package/dist/graph-dashboard-key.d.ts +4 -2
- package/dist/graph-dashboard-parser.d.ts +4 -2
- package/dist/{graph-edge-decay-Z6ENALU2.js → graph-edge-decay-65KMOJWY.js} +4 -3
- package/dist/graph-edge-decay-65KMOJWY.js.map +1 -0
- package/dist/graph-edge-reinforcement.d.ts +4 -2
- package/dist/graph-path-reconstruction.d.ts +10 -0
- package/dist/graph-path-reconstruction.js +12 -0
- package/dist/graph-path-reconstruction.js.map +1 -0
- package/dist/graph-path-scoring-config.d.ts +8 -0
- package/dist/graph-path-scoring-config.js +10 -0
- package/dist/graph-path-scoring-config.js.map +1 -0
- package/dist/graph-path-scoring.d.ts +36 -0
- package/dist/graph-path-scoring.js +11 -0
- package/dist/graph-path-scoring.js.map +1 -0
- package/dist/graph-snapshot.d.ts +4 -2
- package/dist/graph-snapshot.js +3 -2
- package/dist/graph.d.ts +5 -318
- package/dist/graph.js +5 -1
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/importance.d.ts +3 -1
- package/dist/importers/index.d.ts +3 -1
- package/dist/in-flight-reads.d.ts +3 -1
- package/dist/index.d.ts +696 -694
- package/dist/index.js +149 -144
- package/dist/intent.d.ts +3 -1
- package/dist/lcm/engine.d.ts +3 -1
- package/dist/lcm/engine.js +3 -3
- package/dist/lcm/index.d.ts +3 -1
- package/dist/lcm/index.js +6 -6
- package/dist/lcm/tools.d.ts +3 -1
- package/dist/lifecycle.d.ts +3 -1
- package/dist/live-connectors-runner.d.ts +3 -1
- package/dist/local-llm.d.ts +3 -1
- package/dist/local-model-endpoint.d.ts +3 -1
- package/dist/maintenance/memory-governance.d.ts +3 -1
- package/dist/maintenance/memory-governance.js +10 -9
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +4 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -9
- package/dist/maintenance/rebuild-memory-projection.d.ts +4 -2
- package/dist/maintenance/rebuild-memory-projection.js +11 -10
- package/dist/{maintenance-ClmUVpGI.d.ts → maintenance-CKwxpdRx.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +13 -11
- package/dist/memory-action-policy.d.ts +3 -1
- package/dist/memory-cache.d.ts +3 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +3 -1
- package/dist/memory-projection-store.d.ts +3 -1
- package/dist/memory-provenance.d.ts +3 -1
- package/dist/memory-snapshot.d.ts +3 -1
- package/dist/memory-worth-outcomes.d.ts +4 -2
- package/dist/models-json.d.ts +3 -1
- package/dist/namespaces/migrate.d.ts +5 -3
- package/dist/namespaces/migrate.js +20 -19
- package/dist/namespaces/principal.d.ts +3 -1
- package/dist/namespaces/search.d.ts +3 -1
- package/dist/namespaces/search.js +7 -7
- package/dist/namespaces/storage.d.ts +5 -3
- package/dist/namespaces/storage.js +10 -9
- package/dist/native-knowledge.d.ts +3 -1
- package/dist/offline-sync-impression-drain.d.ts +3 -1
- package/dist/operator-doctor-corpus.d.ts +3 -1
- package/dist/operator-doctor-corpus.js +22 -21
- package/dist/operator-doctor-replica.d.ts +3 -1
- package/dist/operator-toolkit.d.ts +6 -4
- package/dist/operator-toolkit.js +33 -29
- package/dist/orchestration/compression-guideline-coordinator.d.ts +4 -2
- package/dist/orchestration/maintenance.d.ts +6 -4
- package/dist/orchestration/maintenance.js +15 -14
- package/dist/{orchestrator-qJ07zI8H.d.ts → orchestrator-BshGam-o.d.ts} +45 -19
- package/dist/orchestrator.d.ts +11 -9
- package/dist/orchestrator.js +109 -104
- package/dist/patterns-cli.d.ts +3 -1
- package/dist/{pipeline-WFCxhHOn.d.ts → pipeline-D21Rs6gW.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +3 -1
- package/dist/proactive-contention.d.ts +3 -1
- package/dist/provenance.d.ts +3 -1
- package/dist/{qmd-5tzkQ44y.d.ts → qmd-Dhle1P4X.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +4 -2
- package/dist/qmd-recall-cache.d.ts +3 -1
- package/dist/qmd.d.ts +4 -2
- package/dist/qmd.js +4 -4
- package/dist/recall-concurrency-config.d.ts +3 -1
- package/dist/recall-disclosure-escalation.d.ts +3 -1
- package/dist/recall-explain-renderer.d.ts +3 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +3 -1
- package/dist/recall-planner-llm.d.ts +3 -1
- package/dist/recall-planner-llm.js +3 -3
- package/dist/recall-state.d.ts +7 -1
- package/dist/recall-state.js +1 -1
- package/dist/recall-tag-filter.d.ts +3 -1
- package/dist/recall-timings.d.ts +3 -1
- package/dist/recall-xray-cli.d.ts +3 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +3 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +7 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +3 -1
- package/dist/reconcile/manifest.d.ts +3 -1
- package/dist/reconcile/plan.d.ts +3 -1
- package/dist/replay/normalizers/chatgpt.d.ts +3 -1
- package/dist/replay/normalizers/claude.d.ts +3 -1
- package/dist/replay/normalizers/openclaw.d.ts +3 -1
- package/dist/replay/normalizers/shared.d.ts +3 -1
- package/dist/replay/runner.d.ts +3 -1
- package/dist/replay/types.d.ts +3 -1
- package/dist/replica-divergence.d.ts +3 -1
- package/dist/replica-peers-config.d.ts +3 -1
- package/dist/resolve-auth-token.d.ts +3 -1
- package/dist/resume-bundles.js +6 -4
- package/dist/retrieval-agents.d.ts +4 -2
- package/dist/retrieval-tiers.d.ts +3 -1
- package/dist/routing/engine.d.ts +3 -1
- package/dist/routing/store.d.ts +3 -1
- package/dist/salvage-envelope.d.ts +3 -1
- package/dist/schemas.d.ts +116 -116
- package/dist/{scope-profiles--vfXPl3X.d.ts → scope-profiles-NzGPDXLn.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +3 -1
- package/dist/search/factory.d.ts +3 -1
- package/dist/search/factory.js +6 -6
- package/dist/search/index.d.ts +3 -1
- package/dist/search/index.js +12 -12
- package/dist/search/lancedb-backend.d.ts +3 -1
- package/dist/search/meilisearch-backend.d.ts +3 -1
- package/dist/search/noop-backend.d.ts +3 -1
- package/dist/search/orama-backend.d.ts +3 -1
- package/dist/search/port.d.ts +3 -1
- package/dist/search/remote-backend.d.ts +3 -1
- package/dist/{semantic-consolidation-BBDuP9nJ.d.ts → semantic-consolidation-DLDKvyy5.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +4 -2
- package/dist/semantic-consolidation.js +11 -10
- package/dist/semantic-rule-promotion.js +10 -9
- package/dist/semantic-rule-verifier.d.ts +3 -1
- package/dist/semantic-rule-verifier.js +10 -9
- package/dist/{service-B8DtbpCM.d.ts → service-BIgVM7fL.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +3 -1
- package/dist/session-observer-state.d.ts +3 -1
- package/dist/shared-context/manager.d.ts +11 -9
- package/dist/signal.d.ts +3 -1
- package/dist/source-agent-qualifier.d.ts +3 -1
- package/dist/source-agent-qualifier.js +18 -17
- package/dist/{storage-BkYN1RIy.d.ts → storage-CVfGWqCI.d.ts} +7 -6
- package/dist/storage.d.ts +4 -2
- package/dist/storage.js +9 -8
- package/dist/summarizer.d.ts +3 -1
- package/dist/summary-snapshot.d.ts +3 -1
- package/dist/temporal-supersession.d.ts +4 -2
- package/dist/temporal-timeline-recall.d.ts +3 -1
- package/dist/temporal-validity.d.ts +3 -1
- package/dist/threading.d.ts +3 -1
- package/dist/tier-migration.d.ts +4 -2
- package/dist/tier-routing.d.ts +3 -1
- package/dist/topics.d.ts +3 -1
- package/dist/transcript.d.ts +3 -1
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +1 -1
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/types.d.ts +66 -66
- package/dist/trust-score-stage.d.ts +3 -1
- package/dist/trust-score.d.ts +3 -1
- package/dist/{types-u2s9j1uD.d.ts → types-CkiDUorT.d.ts} +10 -16
- package/dist/types.d.ts +3 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +3 -1
- package/dist/verified-recall.js +10 -9
- package/dist/write-envelope.d.ts +3 -1
- package/package.json +2 -2
- package/src/archive-mutation-version.ts +59 -0
- package/src/config.test.ts +45 -0
- package/src/config.ts +10 -30
- package/src/contradiction/contradiction.test.ts +86 -1
- package/src/contradiction-config.ts +92 -0
- package/src/graph-path-reconstruction.ts +91 -0
- package/src/graph-path-scoring-config.ts +55 -0
- package/src/graph-path-scoring.test.ts +238 -0
- package/src/graph-path-scoring.ts +77 -0
- package/src/graph.test.ts +225 -5
- package/src/graph.ts +72 -5
- package/src/orchestration/contradiction-linking-coordinator.ts +246 -76
- package/src/orchestration/contradiction-localization.integration.test.ts +1953 -0
- package/src/orchestration/extraction-anchor-snapshot.ts +83 -0
- package/src/orchestration/extraction-persist-deps.ts +8 -2
- package/src/orchestration/extraction-persist.ts +43 -34
- package/src/orchestration/graph-path-state-loader.test.ts +801 -0
- package/src/orchestration/graph-path-state-loader.ts +318 -0
- package/src/orchestration/graph-recall-coordinator.integration.test.ts +1163 -0
- package/src/orchestration/graph-recall-coordinator.ts +206 -29
- package/src/orchestration/graph-recall-seam.ts +19 -0
- package/src/orchestration/recall-internal-deps.ts +7 -13
- package/src/orchestration/recall-internal.ts +5 -0
- package/src/orchestration/recall-introspection.ts +9 -1
- package/src/orchestration/recall-search-pipeline.ts +8 -13
- package/src/orchestration/update-localization.test.ts +784 -0
- package/src/orchestration/update-localization.ts +173 -0
- package/src/orchestrator.ts +19 -18
- package/src/recall-state.test.ts +29 -1
- package/src/recall-state.ts +13 -0
- package/src/recall-xray-renderer.test.ts +45 -0
- package/src/recall-xray-renderer.ts +16 -0
- package/src/recall-xray.ts +13 -0
- package/src/storage/supersession-side-effects.ts +97 -0
- package/src/storage/tombstone-blocked-capture-sync.ts +13 -5
- package/src/storage-contract/cache-coherence.test.ts +299 -0
- package/src/storage.ts +86 -88
- package/src/types.ts +12 -15
- package/dist/chunk-A4QMKFFO.js.map +0 -1
- package/dist/chunk-BJYET5TX.js.map +0 -1
- package/dist/chunk-BOFVT6P3.js.map +0 -1
- package/dist/chunk-IK6X5QPO.js.map +0 -1
- package/dist/chunk-IXXABW5A.js.map +0 -1
- package/dist/chunk-L2DPF4DF.js.map +0 -1
- package/dist/chunk-LAQ33B5D.js.map +0 -1
- package/dist/chunk-NSGU76YO.js.map +0 -1
- package/dist/chunk-PDEKQWDV.js.map +0 -1
- /package/dist/{graph-edge-decay-Z6ENALU2.js.map → archive-mutation-version.js.map} +0 -0
- /package/dist/{chunk-KDG2KTWW.js.map → chunk-33SV3E43.js.map} +0 -0
- /package/dist/{chunk-2HGUDBRJ.js.map → chunk-37ZO6LLJ.js.map} +0 -0
- /package/dist/{chunk-QW3WFHKU.js.map → chunk-45BRYON6.js.map} +0 -0
- /package/dist/{chunk-GZICBRWK.js.map → chunk-4F6X3RXW.js.map} +0 -0
- /package/dist/{chunk-7BAYBYY5.js.map → chunk-4PC4PRJE.js.map} +0 -0
- /package/dist/{chunk-VJXY5ZCT.js.map → chunk-52UKFTUK.js.map} +0 -0
- /package/dist/{chunk-ESG7Z255.js.map → chunk-5UDMFE3Q.js.map} +0 -0
- /package/dist/{chunk-JPHEOE6Z.js.map → chunk-6MTSFX7A.js.map} +0 -0
- /package/dist/{chunk-M4MP34AQ.js.map → chunk-AHZOMHWN.js.map} +0 -0
- /package/dist/{chunk-Z3RHPGSY.js.map → chunk-AIUBBHSF.js.map} +0 -0
- /package/dist/{chunk-S3AYIQCU.js.map → chunk-AXIDQG5A.js.map} +0 -0
- /package/dist/{chunk-QN7NTKRC.js.map → chunk-AZ2QBGYB.js.map} +0 -0
- /package/dist/{chunk-47J4EDGR.js.map → chunk-AZM4CCAC.js.map} +0 -0
- /package/dist/{chunk-LEJPSMKM.js.map → chunk-C5QLI33R.js.map} +0 -0
- /package/dist/{chunk-SV3PSA7Y.js.map → chunk-CV6BBVYV.js.map} +0 -0
- /package/dist/{chunk-V7X767RT.js.map → chunk-DCZBSE4F.js.map} +0 -0
- /package/dist/{chunk-7PKFPLLZ.js.map → chunk-FXTYIA46.js.map} +0 -0
- /package/dist/{chunk-64BHFFKZ.js.map → chunk-HLYR2TQL.js.map} +0 -0
- /package/dist/{chunk-5C2HNJMO.js.map → chunk-J5LLX6IL.js.map} +0 -0
- /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
- /package/dist/{chunk-PLKFO2HJ.js.map → chunk-JL43BVDE.js.map} +0 -0
- /package/dist/{chunk-2S72LWKX.js.map → chunk-JYL3BVVZ.js.map} +0 -0
- /package/dist/{chunk-IPLYGWQF.js.map → chunk-KQAFEZQX.js.map} +0 -0
- /package/dist/{chunk-PYKKWQZ2.js.map → chunk-M7BXDKPR.js.map} +0 -0
- /package/dist/{chunk-Z54EM5YZ.js.map → chunk-MAXVH44E.js.map} +0 -0
- /package/dist/{chunk-LYMNZZIM.js.map → chunk-NIS256NW.js.map} +0 -0
- /package/dist/{chunk-67QG75MJ.js.map → chunk-NLK2VZYZ.js.map} +0 -0
- /package/dist/{chunk-JYIFGGEM.js.map → chunk-OUKBMQ2O.js.map} +0 -0
- /package/dist/{chunk-75XOWNRS.js.map → chunk-OYESWJ43.js.map} +0 -0
- /package/dist/{chunk-TS4AJ2GI.js.map → chunk-PA45XCUD.js.map} +0 -0
- /package/dist/{chunk-4MBPIL4V.js.map → chunk-PUSLMZBQ.js.map} +0 -0
- /package/dist/{chunk-RVO6TCTU.js.map → chunk-QCECHYZL.js.map} +0 -0
- /package/dist/{chunk-GFIKG4FR.js.map → chunk-QGR6OVGT.js.map} +0 -0
- /package/dist/{chunk-HNZKVLAN.js.map → chunk-S354QO4R.js.map} +0 -0
- /package/dist/{chunk-NO37MR45.js.map → chunk-SOEN6KCF.js.map} +0 -0
- /package/dist/{chunk-FXX6RQYC.js.map → chunk-TPTECFWR.js.map} +0 -0
- /package/dist/{chunk-GDDGZVFI.js.map → chunk-UEVLYVNW.js.map} +0 -0
- /package/dist/{chunk-YQ4IQ2GA.js.map → chunk-UT5BV5OG.js.map} +0 -0
- /package/dist/{chunk-LNTUXKBT.js.map → chunk-UYYW2KPU.js.map} +0 -0
- /package/dist/{chunk-QSYL5CXK.js.map → chunk-VKXWK44Q.js.map} +0 -0
- /package/dist/{chunk-KMWYZTIE.js.map → chunk-VMMQDEN5.js.map} +0 -0
- /package/dist/{chunk-JB6D7EFB.js.map → chunk-VVG2BOKA.js.map} +0 -0
- /package/dist/{chunk-V5H6OJCR.js.map → chunk-W5XVQFLM.js.map} +0 -0
- /package/dist/{chunk-OIOZ6MOP.js.map → chunk-W6FNX2LP.js.map} +0 -0
- /package/dist/{chunk-6QPHF6RR.js.map → chunk-WQM326GS.js.map} +0 -0
- /package/dist/{chunk-TQFHQPWD.js.map → chunk-XADV5IZ3.js.map} +0 -0
- /package/dist/{chunk-DATDLJAO.js.map → chunk-XAPMEU3K.js.map} +0 -0
- /package/dist/{chunk-N3LL5NEU.js.map → chunk-ZMYDYNI4.js.map} +0 -0
|
@@ -7,9 +7,6 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
openclawReplayNormalizer
|
|
9
9
|
} from "./chunk-H4CKS5B2.js";
|
|
10
|
-
import {
|
|
11
|
-
exportJsonBundle
|
|
12
|
-
} from "./chunk-UP6MOYCB.js";
|
|
13
10
|
import {
|
|
14
11
|
exportSqlite
|
|
15
12
|
} from "./chunk-BV2TIZ4F.js";
|
|
@@ -28,12 +25,12 @@ import {
|
|
|
28
25
|
import {
|
|
29
26
|
backupMemoryDir
|
|
30
27
|
} from "./chunk-2NLLXCJG.js";
|
|
28
|
+
import {
|
|
29
|
+
exportJsonBundle
|
|
30
|
+
} from "./chunk-UP6MOYCB.js";
|
|
31
31
|
import {
|
|
32
32
|
exportMarkdownBundle
|
|
33
33
|
} from "./chunk-765K3SAT.js";
|
|
34
|
-
import {
|
|
35
|
-
RoutingRulesStore
|
|
36
|
-
} from "./chunk-XL24QQ63.js";
|
|
37
34
|
import {
|
|
38
35
|
buildReplayNormalizerRegistry,
|
|
39
36
|
clampBatchSize,
|
|
@@ -43,6 +40,9 @@ import {
|
|
|
43
40
|
isReplaySource,
|
|
44
41
|
normalizeReplaySessionKey
|
|
45
42
|
} from "./chunk-AJVLDJU6.js";
|
|
43
|
+
import {
|
|
44
|
+
RoutingRulesStore
|
|
45
|
+
} from "./chunk-XL24QQ63.js";
|
|
46
46
|
import {
|
|
47
47
|
TailscaleHelper
|
|
48
48
|
} from "./chunk-EEC4PCG5.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "./chunk-IIFFC3RL.js";
|
|
55
55
|
import {
|
|
56
56
|
rebuildMemoryLifecycleLedger
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-UEVLYVNW.js";
|
|
58
58
|
import {
|
|
59
59
|
rebuildObservations
|
|
60
60
|
} from "./chunk-DQTCGVFK.js";
|
|
@@ -70,9 +70,6 @@ import {
|
|
|
70
70
|
registerBulkImportSource,
|
|
71
71
|
runBulkImportPipeline
|
|
72
72
|
} from "./chunk-HSSERO3E.js";
|
|
73
|
-
import {
|
|
74
|
-
searchVerifiedEpisodes
|
|
75
|
-
} from "./chunk-7PKFPLLZ.js";
|
|
76
73
|
import {
|
|
77
74
|
getUtilityLearningStatus,
|
|
78
75
|
learnUtilityPromotionWeights
|
|
@@ -81,20 +78,23 @@ import {
|
|
|
81
78
|
getUtilityTelemetryStatus,
|
|
82
79
|
recordUtilityTelemetryEvent
|
|
83
80
|
} from "./chunk-6FC3IZ26.js";
|
|
81
|
+
import {
|
|
82
|
+
searchVerifiedEpisodes
|
|
83
|
+
} from "./chunk-FXTYIA46.js";
|
|
84
84
|
import {
|
|
85
85
|
ThreadingManager
|
|
86
86
|
} from "./chunk-OJP3N7UK.js";
|
|
87
87
|
import {
|
|
88
88
|
promoteSemanticRuleFromMemory
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-4F6X3RXW.js";
|
|
90
90
|
import {
|
|
91
91
|
searchVerifiedSemanticRules
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-QGR6OVGT.js";
|
|
93
93
|
import {
|
|
94
94
|
buildResumeBundleFromState,
|
|
95
95
|
getResumeBundleStatus,
|
|
96
96
|
recordResumeBundle
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-XAPMEU3K.js";
|
|
98
98
|
import {
|
|
99
99
|
getWorkProductLedgerStatus,
|
|
100
100
|
recordWorkProductLedgerEntry,
|
|
@@ -105,7 +105,16 @@ import {
|
|
|
105
105
|
} from "./chunk-HYQJQGD3.js";
|
|
106
106
|
import {
|
|
107
107
|
parseXrayCliOptions
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-VKXWK44Q.js";
|
|
109
|
+
import {
|
|
110
|
+
collectPatternMemories,
|
|
111
|
+
explainPatternMemory,
|
|
112
|
+
parsePatternsExplainOptions,
|
|
113
|
+
parsePatternsListOptions,
|
|
114
|
+
parseStrictCliDate,
|
|
115
|
+
renderPatternExplain,
|
|
116
|
+
renderPatternsList
|
|
117
|
+
} from "./chunk-3T74IZB3.js";
|
|
109
118
|
import {
|
|
110
119
|
readRuntimePolicySnapshot,
|
|
111
120
|
sanitizeRuntimePolicyValues
|
|
@@ -118,21 +127,12 @@ import {
|
|
|
118
127
|
runOperatorInventory,
|
|
119
128
|
runOperatorRepair,
|
|
120
129
|
runOperatorSetup
|
|
121
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-6MTSFX7A.js";
|
|
122
131
|
import {
|
|
123
132
|
analyzeSessionIntegrity,
|
|
124
133
|
applySessionRepair,
|
|
125
134
|
planSessionRepair
|
|
126
135
|
} from "./chunk-KFY3SGN7.js";
|
|
127
|
-
import {
|
|
128
|
-
collectPatternMemories,
|
|
129
|
-
explainPatternMemory,
|
|
130
|
-
parsePatternsExplainOptions,
|
|
131
|
-
parsePatternsListOptions,
|
|
132
|
-
parseStrictCliDate,
|
|
133
|
-
renderPatternExplain,
|
|
134
|
-
renderPatternsList
|
|
135
|
-
} from "./chunk-3T74IZB3.js";
|
|
136
136
|
import {
|
|
137
137
|
GITHUB_CONNECTOR_ID,
|
|
138
138
|
GMAIL_CONNECTOR_ID,
|
|
@@ -150,12 +150,12 @@ import {
|
|
|
150
150
|
import {
|
|
151
151
|
listConnectorStates
|
|
152
152
|
} from "./chunk-6GUG4YNM.js";
|
|
153
|
+
import {
|
|
154
|
+
searchHarmonicRetrieval
|
|
155
|
+
} from "./chunk-AZ2QBGYB.js";
|
|
153
156
|
import {
|
|
154
157
|
rescoreMemoryImportance
|
|
155
158
|
} from "./chunk-JXS5PDQ7.js";
|
|
156
|
-
import {
|
|
157
|
-
searchHarmonicRetrieval
|
|
158
|
-
} from "./chunk-QN7NTKRC.js";
|
|
159
159
|
import {
|
|
160
160
|
createEvalBaselineSnapshot,
|
|
161
161
|
getEvalHarnessStatus,
|
|
@@ -165,6 +165,11 @@ import {
|
|
|
165
165
|
runEvalStoredBaselineCiGate,
|
|
166
166
|
validateEvalBenchmarkPack
|
|
167
167
|
} from "./chunk-MCA2X4WH.js";
|
|
168
|
+
import {
|
|
169
|
+
rebuildMemoryProjection,
|
|
170
|
+
repairMemoryProjection,
|
|
171
|
+
verifyMemoryProjection
|
|
172
|
+
} from "./chunk-AIUBBHSF.js";
|
|
168
173
|
import {
|
|
169
174
|
getCueAnchorStoreStatus
|
|
170
175
|
} from "./chunk-ACPCA4NO.js";
|
|
@@ -180,11 +185,6 @@ import {
|
|
|
180
185
|
renderConnectorsRunResult,
|
|
181
186
|
runConnectorPollOnce
|
|
182
187
|
} from "./chunk-OKTXM5H4.js";
|
|
183
|
-
import {
|
|
184
|
-
rebuildMemoryProjection,
|
|
185
|
-
repairMemoryProjection,
|
|
186
|
-
verifyMemoryProjection
|
|
187
|
-
} from "./chunk-Z3RHPGSY.js";
|
|
188
188
|
import {
|
|
189
189
|
applyCommitmentLedgerLifecycle,
|
|
190
190
|
getCommitmentLedgerStatus,
|
|
@@ -196,11 +196,11 @@ import {
|
|
|
196
196
|
} from "./chunk-UQ7RN5HK.js";
|
|
197
197
|
import {
|
|
198
198
|
parseConfig
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-O5FFBO2M.js";
|
|
200
200
|
import {
|
|
201
201
|
EngramAccessHttpServer,
|
|
202
202
|
MeetingsInputError
|
|
203
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-XADV5IZ3.js";
|
|
204
204
|
import {
|
|
205
205
|
WearablesInputError
|
|
206
206
|
} from "./chunk-V7IZKJI3.js";
|
|
@@ -213,13 +213,13 @@ import {
|
|
|
213
213
|
createProductionChatLlmAdapter,
|
|
214
214
|
loadChatSession,
|
|
215
215
|
sessionBelongsToPrincipal
|
|
216
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-C5QLI33R.js";
|
|
217
217
|
import {
|
|
218
218
|
getAbstractionNodeStoreStatus
|
|
219
219
|
} from "./chunk-DJUKBGAD.js";
|
|
220
220
|
import {
|
|
221
221
|
EngramAccessService
|
|
222
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-J5LLX6IL.js";
|
|
223
223
|
import {
|
|
224
224
|
WorkStorage
|
|
225
225
|
} from "./chunk-GDB4J2H3.js";
|
|
@@ -236,43 +236,43 @@ import {
|
|
|
236
236
|
parseRecallExplainFormat,
|
|
237
237
|
renderRecallExplain,
|
|
238
238
|
renderXray
|
|
239
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-QT2FRYI4.js";
|
|
240
240
|
import {
|
|
241
241
|
readAggregateExtractionWatermark
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-JYL3BVVZ.js";
|
|
243
243
|
import {
|
|
244
244
|
getObjectiveStateStoreStatus
|
|
245
245
|
} from "./chunk-HTP6XRUI.js";
|
|
246
|
-
import {
|
|
247
|
-
listNamespaces,
|
|
248
|
-
runNamespaceMigration,
|
|
249
|
-
verifyNamespaces
|
|
250
|
-
} from "./chunk-TS4AJ2GI.js";
|
|
251
246
|
import {
|
|
252
247
|
listMemoryGovernanceRuns,
|
|
253
248
|
readMemoryGovernanceRunArtifact,
|
|
254
249
|
restoreMemoryGovernanceRun,
|
|
255
250
|
runMemoryGovernance
|
|
256
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-TPTECFWR.js";
|
|
257
252
|
import {
|
|
258
|
-
|
|
259
|
-
|
|
253
|
+
listNamespaces,
|
|
254
|
+
runNamespaceMigration,
|
|
255
|
+
verifyNamespaces
|
|
256
|
+
} from "./chunk-PA45XCUD.js";
|
|
260
257
|
import {
|
|
261
|
-
|
|
262
|
-
} from "./chunk-
|
|
258
|
+
resolveNamespaceChildRoot
|
|
259
|
+
} from "./chunk-PUSLMZBQ.js";
|
|
263
260
|
import {
|
|
264
261
|
getCausalTrajectoryStoreStatus
|
|
265
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-AHZOMHWN.js";
|
|
263
|
+
import {
|
|
264
|
+
analyzeGraphHealth
|
|
265
|
+
} from "./chunk-BIJAWZYW.js";
|
|
266
266
|
import {
|
|
267
267
|
meetingIdDate
|
|
268
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-VBHPOWBJ.js";
|
|
269
269
|
import {
|
|
270
270
|
isValidTranscriptDate
|
|
271
271
|
} from "./chunk-UHVXE24Y.js";
|
|
272
272
|
import {
|
|
273
273
|
RECALL_DISCLOSURE_LEVELS,
|
|
274
274
|
isRecallDisclosure
|
|
275
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-UU3G6GUP.js";
|
|
276
276
|
import {
|
|
277
277
|
bumpMemoryCorpusVersionForDir
|
|
278
278
|
} from "./chunk-KMAP7SNQ.js";
|
|
@@ -7989,4 +7989,4 @@ export {
|
|
|
7989
7989
|
listMemoryMarkdownFilePaths,
|
|
7990
7990
|
registerCli
|
|
7991
7991
|
};
|
|
7992
|
-
//# sourceMappingURL=chunk-
|
|
7992
|
+
//# sourceMappingURL=chunk-DCZBSE4F.js.map
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
coerceBool,
|
|
3
|
+
coerceNumber
|
|
4
|
+
} from "./chunk-PQVCH2AE.js";
|
|
5
|
+
|
|
6
|
+
// src/contradiction-config.ts
|
|
7
|
+
function parseContradictionScanConfig(raw) {
|
|
8
|
+
if (!raw || typeof raw !== "object") {
|
|
9
|
+
return {
|
|
10
|
+
enabled: false,
|
|
11
|
+
similarityFloor: 0.82,
|
|
12
|
+
topicOverlapFloor: 0.4,
|
|
13
|
+
maxPairsPerRun: 500,
|
|
14
|
+
cooldownDays: 14,
|
|
15
|
+
autoMergeDuplicates: false
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
const src = raw;
|
|
19
|
+
const simFloor = coerceNumber(src.similarityFloor) ?? 0.82;
|
|
20
|
+
const topicFloor = coerceNumber(src.topicOverlapFloor) ?? 0.4;
|
|
21
|
+
const maxPairs = coerceNumber(src.maxPairsPerRun) ?? 500;
|
|
22
|
+
const cooldown = coerceNumber(src.cooldownDays) ?? 14;
|
|
23
|
+
return {
|
|
24
|
+
enabled: coerceBool(src.enabled) === true,
|
|
25
|
+
similarityFloor: Math.min(1, Math.max(0, simFloor)),
|
|
26
|
+
topicOverlapFloor: Math.min(1, Math.max(0, topicFloor)),
|
|
27
|
+
maxPairsPerRun: Math.max(1, maxPairs),
|
|
28
|
+
cooldownDays: Math.max(0, cooldown),
|
|
29
|
+
autoMergeDuplicates: coerceBool(src.autoMergeDuplicates) === true
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function parseContradictionLocalizationConfig(raw) {
|
|
33
|
+
const defaults = {
|
|
34
|
+
anchorEnabled: true,
|
|
35
|
+
anchorCandidates: 5,
|
|
36
|
+
searchCandidates: 5,
|
|
37
|
+
maxCandidates: 8
|
|
38
|
+
};
|
|
39
|
+
if (raw === void 0 || raw === null) return defaults;
|
|
40
|
+
if (typeof raw !== "object" || Array.isArray(raw)) {
|
|
41
|
+
throw new Error("contradictionLocalization must be an object");
|
|
42
|
+
}
|
|
43
|
+
const src = raw;
|
|
44
|
+
const rawEnabled = src.anchorEnabled;
|
|
45
|
+
const anchorEnabled = rawEnabled === void 0 || rawEnabled === null ? true : coerceBool(rawEnabled);
|
|
46
|
+
if (anchorEnabled === void 0) {
|
|
47
|
+
throw new Error("contradictionLocalization.anchorEnabled must be a boolean-like value");
|
|
48
|
+
}
|
|
49
|
+
const parseCap = (key) => {
|
|
50
|
+
const rawValue = src[key];
|
|
51
|
+
if (rawValue === void 0) return defaults[key];
|
|
52
|
+
const parsed = coerceNumber(rawValue);
|
|
53
|
+
if (parsed === void 0 || !Number.isInteger(parsed) || parsed < 0) {
|
|
54
|
+
throw new Error(`contradictionLocalization.${key} must be an integer >= 0`);
|
|
55
|
+
}
|
|
56
|
+
return parsed;
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
anchorEnabled,
|
|
60
|
+
anchorCandidates: parseCap("anchorCandidates"),
|
|
61
|
+
searchCandidates: parseCap("searchCandidates"),
|
|
62
|
+
maxCandidates: parseCap("maxCandidates")
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export {
|
|
67
|
+
parseContradictionScanConfig,
|
|
68
|
+
parseContradictionLocalizationConfig
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=chunk-FC67T4E6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/contradiction-config.ts"],"sourcesContent":["import { coerceBool, coerceNumber } from \"./connectors/coerce.js\";\n\n/** Configuration for the nightly contradiction-scan cron (issue #520). */\nexport interface ContradictionScanConfig {\n /** Master switch for the contradiction scan cron. Default true. */\n enabled: boolean;\n /** Embedding cosine similarity floor for candidate pair generation. Default 0.82. */\n similarityFloor: number;\n /** Minimum topic-token Jaccard overlap for unstructured pairs. Default 0.4. */\n topicOverlapFloor: number;\n /** Cap on candidate pairs evaluated per cron run. Default 500. */\n maxPairsPerRun: number;\n /** Cooldown in days before re-evaluating a pair judged independent/both-valid. Default 14. */\n cooldownDays: number;\n /** When true, pairs judged \"duplicates\" are auto-flagged for dedup (still need user approval). Default false. */\n autoMergeDuplicates: boolean;\n}\n\nexport interface ContradictionLocalizationConfig {\n /** Enable the entity/category anchor pass before QMD search. */\n anchorEnabled: boolean;\n /** Maximum anchor candidates. Zero disables the anchor pass. */\n anchorCandidates: number;\n /** Maximum QMD search candidates. Zero disables text search. */\n searchCandidates: number;\n /** Maximum merged candidates passed to contradiction verification. */\n maxCandidates: number;\n}\n\nexport function parseContradictionScanConfig(raw: unknown): ContradictionScanConfig {\n if (!raw || typeof raw !== \"object\") {\n return {\n enabled: false,\n similarityFloor: 0.82,\n topicOverlapFloor: 0.4,\n maxPairsPerRun: 500,\n cooldownDays: 14,\n autoMergeDuplicates: false,\n };\n }\n const src = raw as Record<string, unknown>;\n const simFloor = coerceNumber(src.similarityFloor) ?? 0.82;\n const topicFloor = coerceNumber(src.topicOverlapFloor) ?? 0.4;\n const maxPairs = coerceNumber(src.maxPairsPerRun) ?? 500;\n const cooldown = coerceNumber(src.cooldownDays) ?? 14;\n return {\n enabled: coerceBool(src.enabled) === true,\n similarityFloor: Math.min(1, Math.max(0, simFloor)),\n topicOverlapFloor: Math.min(1, Math.max(0, topicFloor)),\n maxPairsPerRun: Math.max(1, maxPairs),\n cooldownDays: Math.max(0, cooldown),\n autoMergeDuplicates: coerceBool(src.autoMergeDuplicates) === true,\n };\n}\n\nexport function parseContradictionLocalizationConfig(raw: unknown): ContradictionLocalizationConfig {\n const defaults: ContradictionLocalizationConfig = {\n anchorEnabled: true,\n anchorCandidates: 5,\n searchCandidates: 5,\n maxCandidates: 8,\n };\n if (raw === undefined || raw === null) return defaults;\n if (typeof raw !== \"object\" || Array.isArray(raw)) {\n throw new Error(\"contradictionLocalization must be an object\");\n }\n const src = raw as Record<string, unknown>;\n const rawEnabled = src.anchorEnabled;\n const anchorEnabled = rawEnabled === undefined || rawEnabled === null ? true : coerceBool(rawEnabled);\n if (anchorEnabled === undefined) {\n throw new Error(\"contradictionLocalization.anchorEnabled must be a boolean-like value\");\n }\n\n const parseCap = (\n key: keyof Pick<ContradictionLocalizationConfig, \"anchorCandidates\" | \"searchCandidates\" | \"maxCandidates\">,\n ): number => {\n const rawValue = src[key];\n if (rawValue === undefined) return defaults[key];\n const parsed = coerceNumber(rawValue);\n if (parsed === undefined || !Number.isInteger(parsed) || parsed < 0) {\n throw new Error(`contradictionLocalization.${key} must be an integer >= 0`);\n }\n return parsed;\n };\n\n return {\n anchorEnabled,\n anchorCandidates: parseCap(\"anchorCandidates\"),\n searchCandidates: parseCap(\"searchCandidates\"),\n maxCandidates: parseCap(\"maxCandidates\"),\n };\n}\n"],"mappings":";;;;;;AA6BO,SAAS,6BAA6B,KAAuC;AAClF,MAAI,CAAC,OAAO,OAAO,QAAQ,UAAU;AACnC,WAAO;AAAA,MACL,SAAS;AAAA,MACT,iBAAiB;AAAA,MACjB,mBAAmB;AAAA,MACnB,gBAAgB;AAAA,MAChB,cAAc;AAAA,MACd,qBAAqB;AAAA,IACvB;AAAA,EACF;AACA,QAAM,MAAM;AACZ,QAAM,WAAW,aAAa,IAAI,eAAe,KAAK;AACtD,QAAM,aAAa,aAAa,IAAI,iBAAiB,KAAK;AAC1D,QAAM,WAAW,aAAa,IAAI,cAAc,KAAK;AACrD,QAAM,WAAW,aAAa,IAAI,YAAY,KAAK;AACnD,SAAO;AAAA,IACL,SAAS,WAAW,IAAI,OAAO,MAAM;AAAA,IACrC,iBAAiB,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,QAAQ,CAAC;AAAA,IAClD,mBAAmB,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,IACtD,gBAAgB,KAAK,IAAI,GAAG,QAAQ;AAAA,IACpC,cAAc,KAAK,IAAI,GAAG,QAAQ;AAAA,IAClC,qBAAqB,WAAW,IAAI,mBAAmB,MAAM;AAAA,EAC/D;AACF;AAEO,SAAS,qCAAqC,KAA+C;AAClG,QAAM,WAA4C;AAAA,IAChD,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,eAAe;AAAA,EACjB;AACA,MAAI,QAAQ,UAAa,QAAQ,KAAM,QAAO;AAC9C,MAAI,OAAO,QAAQ,YAAY,MAAM,QAAQ,GAAG,GAAG;AACjD,UAAM,IAAI,MAAM,6CAA6C;AAAA,EAC/D;AACA,QAAM,MAAM;AACZ,QAAM,aAAa,IAAI;AACvB,QAAM,gBAAgB,eAAe,UAAa,eAAe,OAAO,OAAO,WAAW,UAAU;AACpG,MAAI,kBAAkB,QAAW;AAC/B,UAAM,IAAI,MAAM,sEAAsE;AAAA,EACxF;AAEA,QAAM,WAAW,CACf,QACW;AACX,UAAM,WAAW,IAAI,GAAG;AACxB,QAAI,aAAa,OAAW,QAAO,SAAS,GAAG;AAC/C,UAAM,SAAS,aAAa,QAAQ;AACpC,QAAI,WAAW,UAAa,CAAC,OAAO,UAAU,MAAM,KAAK,SAAS,GAAG;AACnE,YAAM,IAAI,MAAM,6BAA6B,GAAG,0BAA0B;AAAA,IAC5E;AACA,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,kBAAkB,SAAS,kBAAkB;AAAA,IAC7C,kBAAkB,SAAS,kBAAkB;AAAA,IAC7C,eAAe,SAAS,eAAe;AAAA,EACzC;AACF;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-B7RWBZXW.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VBHPOWBJ.js";
|
|
7
7
|
import {
|
|
8
8
|
getCachedEpisodeMap,
|
|
9
9
|
setCachedEpisodeMap
|
|
@@ -109,4 +109,4 @@ export {
|
|
|
109
109
|
compareVerifiedEpisodeResults,
|
|
110
110
|
searchVerifiedEpisodes
|
|
111
111
|
};
|
|
112
|
-
//# sourceMappingURL=chunk-
|
|
112
|
+
//# sourceMappingURL=chunk-FXTYIA46.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
scanSignals
|
|
3
|
+
} from "./chunk-H3FZVNRN.js";
|
|
1
4
|
import {
|
|
2
5
|
bufferTurnArrayIsSuffixOfSnapshot,
|
|
3
6
|
bufferTurnArraysEqual,
|
|
@@ -8,12 +11,9 @@ import {
|
|
|
8
11
|
matchingQueuedExtractionPrefixLength,
|
|
9
12
|
probeWithTimeout
|
|
10
13
|
} from "./chunk-2AD5SXO4.js";
|
|
11
|
-
import {
|
|
12
|
-
scanSignals
|
|
13
|
-
} from "./chunk-H3FZVNRN.js";
|
|
14
14
|
import {
|
|
15
15
|
ExtractionDeadlineError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZMYDYNI4.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePrincipal
|
|
19
19
|
} from "./chunk-3GD2HFR6.js";
|
|
@@ -792,4 +792,4 @@ var SmartBuffer = class {
|
|
|
792
792
|
export {
|
|
793
793
|
SmartBuffer
|
|
794
794
|
};
|
|
795
|
-
//# sourceMappingURL=chunk-
|
|
795
|
+
//# sourceMappingURL=chunk-HLYR2TQL.js.map
|
|
@@ -30,37 +30,37 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
planSessionTranscriptMigration
|
|
32
32
|
} from "./chunk-P5FPO2BR.js";
|
|
33
|
+
import {
|
|
34
|
+
boundRecallContextComposition,
|
|
35
|
+
composeRecallContext
|
|
36
|
+
} from "./chunk-AHVEHR6K.js";
|
|
33
37
|
import {
|
|
34
38
|
decideDisclosureEscalation
|
|
35
39
|
} from "./chunk-H7XKCNR6.js";
|
|
36
40
|
import {
|
|
37
41
|
toRecallExplainJson
|
|
38
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-QT2FRYI4.js";
|
|
39
43
|
import {
|
|
40
44
|
estimateRecallTokens
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import {
|
|
43
|
-
boundRecallContextComposition,
|
|
44
|
-
composeRecallContext
|
|
45
|
-
} from "./chunk-AHVEHR6K.js";
|
|
45
|
+
} from "./chunk-QHFV6VNU.js";
|
|
46
46
|
import {
|
|
47
47
|
readAggregateExtractionWatermark
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import {
|
|
50
|
-
recordObjectiveStateSnapshotsFromObservedMessages
|
|
51
|
-
} from "./chunk-2HIJHXB3.js";
|
|
52
|
-
import {
|
|
53
|
-
objectiveStateStoreOverrideForNamespace
|
|
54
|
-
} from "./chunk-HTP6XRUI.js";
|
|
48
|
+
} from "./chunk-JYL3BVVZ.js";
|
|
55
49
|
import {
|
|
56
50
|
ReplicaDivergenceMonitor
|
|
57
51
|
} from "./chunk-CVILPI77.js";
|
|
58
52
|
import {
|
|
59
53
|
recordMemoryOutcome
|
|
60
54
|
} from "./chunk-EIR5VLIH.js";
|
|
55
|
+
import {
|
|
56
|
+
recordObjectiveStateSnapshotsFromObservedMessages
|
|
57
|
+
} from "./chunk-2HIJHXB3.js";
|
|
58
|
+
import {
|
|
59
|
+
objectiveStateStoreOverrideForNamespace
|
|
60
|
+
} from "./chunk-HTP6XRUI.js";
|
|
61
61
|
import {
|
|
62
62
|
buildGraphSnapshot
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-OUKBMQ2O.js";
|
|
64
64
|
import {
|
|
65
65
|
REDACTION_RULES_SUBDIR
|
|
66
66
|
} from "./chunk-LTHVM4XN.js";
|
|
@@ -84,54 +84,54 @@ import {
|
|
|
84
84
|
persistExplicitCapture,
|
|
85
85
|
queueExplicitCaptureForReview,
|
|
86
86
|
validateExplicitCaptureInput
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-37ZO6LLJ.js";
|
|
88
88
|
import {
|
|
89
89
|
lcmEvidenceIdentity
|
|
90
90
|
} from "./chunk-C37ZRXX7.js";
|
|
91
|
+
import {
|
|
92
|
+
buildProposedActions,
|
|
93
|
+
buildQualityScore,
|
|
94
|
+
groupActionsByStatus,
|
|
95
|
+
listMemoryGovernanceRuns,
|
|
96
|
+
readMemoryGovernanceRunArtifact,
|
|
97
|
+
runMemoryGovernance
|
|
98
|
+
} from "./chunk-TPTECFWR.js";
|
|
91
99
|
import {
|
|
92
100
|
CorpusWatermarkCache,
|
|
93
101
|
computeServiceCorpusCensus
|
|
94
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-NLK2VZYZ.js";
|
|
95
103
|
import {
|
|
96
104
|
namespaceCollectionName
|
|
97
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-VMMQDEN5.js";
|
|
98
106
|
import {
|
|
99
107
|
CrossNamespaceBudget,
|
|
100
108
|
toBudgetWarning
|
|
101
109
|
} from "./chunk-UFGFMWAD.js";
|
|
102
|
-
import {
|
|
103
|
-
buildProposedActions,
|
|
104
|
-
buildQualityScore,
|
|
105
|
-
groupActionsByStatus,
|
|
106
|
-
listMemoryGovernanceRuns,
|
|
107
|
-
readMemoryGovernanceRunArtifact,
|
|
108
|
-
runMemoryGovernance
|
|
109
|
-
} from "./chunk-FXX6RQYC.js";
|
|
110
110
|
import {
|
|
111
111
|
defaultCapsulesDir
|
|
112
112
|
} from "./chunk-ZY2MNJR6.js";
|
|
113
113
|
import {
|
|
114
114
|
filterTrajectoriesByLookbackDays,
|
|
115
115
|
readCausalTrajectoryRecords
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-AHZOMHWN.js";
|
|
117
117
|
import {
|
|
118
118
|
FileCalendarSource,
|
|
119
119
|
buildBriefing,
|
|
120
120
|
enqueuePassiveCorrectionNotification,
|
|
121
121
|
parseBriefingFocus,
|
|
122
122
|
parseBriefingWindow
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-52UKFTUK.js";
|
|
124
124
|
import {
|
|
125
125
|
parseEntityFile,
|
|
126
126
|
parseFrontmatter,
|
|
127
127
|
qmdCollectionPathParts,
|
|
128
128
|
qmdResultPathCandidates,
|
|
129
129
|
selfDeps
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-VBHPOWBJ.js";
|
|
131
131
|
import {
|
|
132
132
|
DEFAULT_RECALL_DISCLOSURE,
|
|
133
133
|
isRecallDisclosure
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-UU3G6GUP.js";
|
|
135
135
|
import {
|
|
136
136
|
normalizeProjectionPreview,
|
|
137
137
|
normalizeProjectionTags
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
isActivityDigestPath,
|
|
163
163
|
isArtifactMemoryPath,
|
|
164
164
|
isMeetingRecordPath
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-ZMYDYNI4.js";
|
|
166
166
|
import {
|
|
167
167
|
ExtractionLivenessWarnThrottle,
|
|
168
168
|
computeExtractionLivenessStatus
|
|
@@ -179,7 +179,7 @@ import {
|
|
|
179
179
|
} from "./chunk-JAKIDQB2.js";
|
|
180
180
|
import {
|
|
181
181
|
exportCapsule
|
|
182
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-KQAFEZQX.js";
|
|
183
183
|
import {
|
|
184
184
|
evaluateActionConfidence
|
|
185
185
|
} from "./chunk-Z2YFLXHU.js";
|
|
@@ -13523,4 +13523,4 @@ export {
|
|
|
13523
13523
|
EngramAccessService,
|
|
13524
13524
|
AccessAdminOpsSurface
|
|
13525
13525
|
};
|
|
13526
|
-
//# sourceMappingURL=chunk-
|
|
13526
|
+
//# sourceMappingURL=chunk-J5LLX6IL.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ReplitAdapter
|
|
3
|
+
} from "./chunk-TMSXWOBZ.js";
|
|
1
4
|
import {
|
|
2
5
|
ClaudeCodeAdapter
|
|
3
6
|
} from "./chunk-J64TK33U.js";
|
|
@@ -7,9 +10,6 @@ import {
|
|
|
7
10
|
import {
|
|
8
11
|
HermesAdapter
|
|
9
12
|
} from "./chunk-42NQ7AVG.js";
|
|
10
|
-
import {
|
|
11
|
-
ReplitAdapter
|
|
12
|
-
} from "./chunk-TMSXWOBZ.js";
|
|
13
13
|
|
|
14
14
|
// src/adapters/registry.ts
|
|
15
15
|
var AdapterRegistry = class {
|
|
@@ -53,4 +53,4 @@ var AdapterRegistry = class {
|
|
|
53
53
|
export {
|
|
54
54
|
AdapterRegistry
|
|
55
55
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
56
|
+
//# sourceMappingURL=chunk-JBPKEARU.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7T4TOGMS.js";
|
|
4
4
|
import {
|
|
5
5
|
defineOperation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-J5LLX6IL.js";
|
|
7
7
|
|
|
8
8
|
// src/external-wiki-access.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -26,4 +26,4 @@ var externalWikiSearchOperation = defineOperation({
|
|
|
26
26
|
export {
|
|
27
27
|
externalWikiSearchOperation
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-JL43BVDE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCorpusNamespaceRoots
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NLK2VZYZ.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeNamespaceIdentity
|
|
6
6
|
} from "./chunk-EGGE52UU.js";
|
|
@@ -200,4 +200,4 @@ async function readAggregateExtractionWatermark(options) {
|
|
|
200
200
|
export {
|
|
201
201
|
readAggregateExtractionWatermark
|
|
202
202
|
};
|
|
203
|
-
//# sourceMappingURL=chunk-
|
|
203
|
+
//# sourceMappingURL=chunk-JYL3BVVZ.js.map
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CAPSULE_SCHEMA_VERSION,
|
|
3
|
-
EXPORT_FORMAT
|
|
4
|
-
} from "./chunk-J4EB7DNW.js";
|
|
5
1
|
import {
|
|
6
2
|
CAPSULE_ID_PATTERN,
|
|
7
3
|
CapsuleBlockSchema,
|
|
@@ -11,6 +7,10 @@ import {
|
|
|
11
7
|
import {
|
|
12
8
|
encryptCapsuleFile
|
|
13
9
|
} from "./chunk-X7Y7WX73.js";
|
|
10
|
+
import {
|
|
11
|
+
CAPSULE_SCHEMA_VERSION,
|
|
12
|
+
EXPORT_FORMAT
|
|
13
|
+
} from "./chunk-J4EB7DNW.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_TRANSFER_EXCLUDE_DIRS,
|
|
16
16
|
computeTransferOutputRel
|
|
@@ -261,4 +261,4 @@ export {
|
|
|
261
261
|
exportCapsule,
|
|
262
262
|
isValidCapsuleSince
|
|
263
263
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-KQAFEZQX.js.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
// src/graph-path-reconstruction.ts
|
|
2
|
+
function compareActivationPathCandidates(left, right) {
|
|
3
|
+
if (left.hopDepth !== right.hopDepth) return right.hopDepth - left.hopDepth;
|
|
4
|
+
if (left.landingStrength !== right.landingStrength) return left.landingStrength - right.landingStrength;
|
|
5
|
+
if (left.pathKey === right.pathKey) return 0;
|
|
6
|
+
return left.pathKey < right.pathKey ? 1 : -1;
|
|
7
|
+
}
|
|
8
|
+
var ActivationPathTracker = class {
|
|
9
|
+
predecessors = /* @__PURE__ */ new Map();
|
|
10
|
+
winners = /* @__PURE__ */ new Map();
|
|
11
|
+
pathKeys = /* @__PURE__ */ new Map();
|
|
12
|
+
constructor(seeds) {
|
|
13
|
+
for (const seed of seeds) {
|
|
14
|
+
this.pathKeys.set(`${seed}\0${seed}`, seed);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
consider(seed, node, neighbor, hopDepth, landingStrength, edgeConfidence, graphType) {
|
|
18
|
+
const sourcePathKey = this.pathKeys.get(`${seed}\0${node}`);
|
|
19
|
+
if (!sourcePathKey) return "";
|
|
20
|
+
const key = `${seed}\0${neighbor}`;
|
|
21
|
+
const pathKey = `${sourcePathKey}\0${neighbor}`;
|
|
22
|
+
const candidate = { hopDepth, landingStrength, pathKey };
|
|
23
|
+
const previous = this.winners.get(key);
|
|
24
|
+
if (!previous || compareActivationPathCandidates(candidate, previous) > 0) {
|
|
25
|
+
this.winners.set(key, candidate);
|
|
26
|
+
this.pathKeys.set(key, pathKey);
|
|
27
|
+
this.predecessors.set(key, { prev: node, edgeConfidence, graphType });
|
|
28
|
+
}
|
|
29
|
+
return pathKey;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function reconstructActivationPath(seed, candidate, predecessors, maxSteps) {
|
|
33
|
+
const nodeIds = [candidate];
|
|
34
|
+
const edgeConfidences = [];
|
|
35
|
+
const graphTypes = [];
|
|
36
|
+
let current = candidate;
|
|
37
|
+
const stepCap = Number.isFinite(maxSteps) ? Math.max(0, Math.ceil(maxSteps)) : predecessors.size + 1;
|
|
38
|
+
for (let step = 0; step < stepCap && current !== seed; step += 1) {
|
|
39
|
+
const predecessor = predecessors.get(`${seed}\0${current}`);
|
|
40
|
+
if (!predecessor) return null;
|
|
41
|
+
nodeIds.push(predecessor.prev);
|
|
42
|
+
edgeConfidences.push(predecessor.edgeConfidence);
|
|
43
|
+
graphTypes.push(predecessor.graphType);
|
|
44
|
+
current = predecessor.prev;
|
|
45
|
+
}
|
|
46
|
+
if (current !== seed) return null;
|
|
47
|
+
nodeIds.reverse();
|
|
48
|
+
edgeConfidences.reverse();
|
|
49
|
+
graphTypes.reverse();
|
|
50
|
+
if (edgeConfidences.length !== nodeIds.length - 1 || graphTypes.length !== nodeIds.length - 1) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return { nodeIds, edgeConfidences, graphTypes };
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
compareActivationPathCandidates,
|
|
58
|
+
ActivationPathTracker,
|
|
59
|
+
reconstructActivationPath
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=chunk-LXY5VVGM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/graph-path-reconstruction.ts"],"sourcesContent":["import type { ActivationPath, GraphType } from \"./graph.js\";\n\nexport interface ActivationPredecessor {\n prev: string;\n edgeConfidence: number;\n graphType: GraphType;\n}\n\nexport interface ActivationPathCandidate {\n hopDepth: number;\n landingStrength: number;\n pathKey: string;\n}\n\n/** Compare path winners: fewer hops, stronger landing, then lexical path order. */\nexport function compareActivationPathCandidates(\n left: ActivationPathCandidate,\n right: ActivationPathCandidate,\n): number {\n if (left.hopDepth !== right.hopDepth) return right.hopDepth - left.hopDepth;\n if (left.landingStrength !== right.landingStrength) return left.landingStrength - right.landingStrength;\n if (left.pathKey === right.pathKey) return 0;\n return left.pathKey < right.pathKey ? 1 : -1;\n}\n\nexport class ActivationPathTracker {\n readonly predecessors = new Map<string, ActivationPredecessor>();\n private readonly winners = new Map<string, ActivationPathCandidate>();\n private readonly pathKeys = new Map<string, string>();\n\n constructor(seeds: Iterable<string>) {\n for (const seed of seeds) {\n this.pathKeys.set(`${seed}\\0${seed}`, seed);\n }\n }\n\n consider(\n seed: string,\n node: string,\n neighbor: string,\n hopDepth: number,\n landingStrength: number,\n edgeConfidence: number,\n graphType: GraphType,\n ): string {\n const sourcePathKey = this.pathKeys.get(`${seed}\\0${node}`);\n if (!sourcePathKey) return \"\";\n\n const key = `${seed}\\0${neighbor}`;\n const pathKey = `${sourcePathKey}\\0${neighbor}`;\n const candidate: ActivationPathCandidate = { hopDepth, landingStrength, pathKey };\n const previous = this.winners.get(key);\n if (!previous || compareActivationPathCandidates(candidate, previous) > 0) {\n this.winners.set(key, candidate);\n this.pathKeys.set(key, pathKey);\n this.predecessors.set(key, { prev: node, edgeConfidence, graphType });\n }\n return pathKey;\n }\n}\nexport function reconstructActivationPath(\n seed: string,\n candidate: string,\n predecessors: Map<string, ActivationPredecessor>,\n maxSteps: number,\n): ActivationPath | null {\n const nodeIds = [candidate];\n const edgeConfidences: number[] = [];\n const graphTypes: GraphType[] = [];\n let current = candidate;\n const stepCap = Number.isFinite(maxSteps)\n ? Math.max(0, Math.ceil(maxSteps))\n : predecessors.size + 1;\n for (let step = 0; step < stepCap && current !== seed; step += 1) {\n const predecessor = predecessors.get(`${seed}\\0${current}`);\n if (!predecessor) return null;\n nodeIds.push(predecessor.prev);\n edgeConfidences.push(predecessor.edgeConfidence);\n graphTypes.push(predecessor.graphType);\n current = predecessor.prev;\n }\n\n if (current !== seed) return null;\n nodeIds.reverse();\n edgeConfidences.reverse();\n graphTypes.reverse();\n if (edgeConfidences.length !== nodeIds.length - 1 || graphTypes.length !== nodeIds.length - 1) {\n return null;\n }\n return { nodeIds, edgeConfidences, graphTypes };\n}\n"],"mappings":";AAeO,SAAS,gCACd,MACA,OACQ;AACR,MAAI,KAAK,aAAa,MAAM,SAAU,QAAO,MAAM,WAAW,KAAK;AACnE,MAAI,KAAK,oBAAoB,MAAM,gBAAiB,QAAO,KAAK,kBAAkB,MAAM;AACxF,MAAI,KAAK,YAAY,MAAM,QAAS,QAAO;AAC3C,SAAO,KAAK,UAAU,MAAM,UAAU,IAAI;AAC5C;AAEO,IAAM,wBAAN,MAA4B;AAAA,EACxB,eAAe,oBAAI,IAAmC;AAAA,EAC9C,UAAU,oBAAI,IAAqC;AAAA,EACnD,WAAW,oBAAI,IAAoB;AAAA,EAEpD,YAAY,OAAyB;AACnC,eAAW,QAAQ,OAAO;AACxB,WAAK,SAAS,IAAI,GAAG,IAAI,KAAK,IAAI,IAAI,IAAI;AAAA,IAC5C;AAAA,EACF;AAAA,EAEA,SACE,MACA,MACA,UACA,UACA,iBACA,gBACA,WACQ;AACR,UAAM,gBAAgB,KAAK,SAAS,IAAI,GAAG,IAAI,KAAK,IAAI,EAAE;AAC1D,QAAI,CAAC,cAAe,QAAO;AAE3B,UAAM,MAAM,GAAG,IAAI,KAAK,QAAQ;AAChC,UAAM,UAAU,GAAG,aAAa,KAAK,QAAQ;AAC7C,UAAM,YAAqC,EAAE,UAAU,iBAAiB,QAAQ;AAChF,UAAM,WAAW,KAAK,QAAQ,IAAI,GAAG;AACrC,QAAI,CAAC,YAAY,gCAAgC,WAAW,QAAQ,IAAI,GAAG;AACzE,WAAK,QAAQ,IAAI,KAAK,SAAS;AAC/B,WAAK,SAAS,IAAI,KAAK,OAAO;AAC9B,WAAK,aAAa,IAAI,KAAK,EAAE,MAAM,MAAM,gBAAgB,UAAU,CAAC;AAAA,IACtE;AACA,WAAO;AAAA,EACT;AACF;AACO,SAAS,0BACd,MACA,WACA,cACA,UACuB;AACvB,QAAM,UAAU,CAAC,SAAS;AAC1B,QAAM,kBAA4B,CAAC;AACnC,QAAM,aAA0B,CAAC;AACjC,MAAI,UAAU;AACd,QAAM,UAAU,OAAO,SAAS,QAAQ,IACpC,KAAK,IAAI,GAAG,KAAK,KAAK,QAAQ,CAAC,IAC/B,aAAa,OAAO;AACxB,WAAS,OAAO,GAAG,OAAO,WAAW,YAAY,MAAM,QAAQ,GAAG;AAChE,UAAM,cAAc,aAAa,IAAI,GAAG,IAAI,KAAK,OAAO,EAAE;AAC1D,QAAI,CAAC,YAAa,QAAO;AACzB,YAAQ,KAAK,YAAY,IAAI;AAC7B,oBAAgB,KAAK,YAAY,cAAc;AAC/C,eAAW,KAAK,YAAY,SAAS;AACrC,cAAU,YAAY;AAAA,EACxB;AAEA,MAAI,YAAY,KAAM,QAAO;AAC7B,UAAQ,QAAQ;AAChB,kBAAgB,QAAQ;AACxB,aAAW,QAAQ;AACnB,MAAI,gBAAgB,WAAW,QAAQ,SAAS,KAAK,WAAW,WAAW,QAAQ,SAAS,GAAG;AAC7F,WAAO;AAAA,EACT;AACA,SAAO,EAAE,SAAS,iBAAiB,WAAW;AAChD;","names":[]}
|