@remnic/core 9.65.2 → 9.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-admin-ops-surface.d.ts +44 -44
- package/dist/access-admin-ops-surface.js +14 -14
- package/dist/access-authorization-probe.d.ts +38 -38
- package/dist/access-authorization-probe.js +15 -15
- package/dist/access-boundary.d.ts +40 -40
- package/dist/access-boundary.js +14 -14
- package/dist/access-cli.js +52 -52
- package/dist/access-coding-context-resolution.d.ts +3 -1
- package/dist/access-extraction-force-flush.d.ts +25 -25
- package/dist/access-extraction-force-flush.js +14 -14
- package/dist/access-health-types.d.ts +3 -1
- package/dist/access-http-lcm-compaction.d.ts +39 -39
- package/dist/access-http-lifecycle-flush.d.ts +39 -39
- package/dist/access-http-offline-stream.d.ts +25 -25
- package/dist/access-http-query.d.ts +4 -2
- package/dist/access-http-query.js +16 -16
- package/dist/access-http.d.ts +51 -44
- package/dist/access-http.js +30 -30
- package/dist/access-identity-continuity-surface.d.ts +12 -12
- package/dist/access-identity-continuity-surface.js +14 -14
- package/dist/access-lcm-surface.d.ts +27 -27
- package/dist/access-lcm-surface.js +14 -14
- package/dist/access-mcp-admin-tools.d.ts +9 -1
- package/dist/access-mcp-admin-tools.js +3 -1
- package/dist/access-mcp-output-schemas.js +1 -1
- package/dist/access-mcp.d.ts +39 -39
- package/dist/access-mcp.js +24 -24
- package/dist/access-memory-search-fanout.d.ts +4 -2
- package/dist/{access-namespace-preflight-Dhvcl-T0.d.ts → access-namespace-preflight-B7Usyz-K.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +5 -3
- package/dist/access-namespace-preflight.js +14 -14
- package/dist/access-observe-write-surface.d.ts +39 -39
- package/dist/access-observe-write-surface.js +14 -14
- package/dist/access-offline-manifest.d.ts +12 -12
- package/dist/access-operations-batch.js +18 -18
- package/dist/access-operations.d.ts +40 -40
- package/dist/access-operations.js +21 -21
- package/dist/access-recall-concurrency.d.ts +40 -40
- package/dist/access-recall-concurrency.js +14 -14
- package/dist/access-recall-response.d.ts +24 -24
- package/dist/access-recall-response.js +14 -14
- package/dist/access-recall-surface.d.ts +24 -24
- package/dist/access-recall-surface.js +14 -14
- package/dist/access-schema.d.ts +45 -45
- package/dist/{access-service-Bke1alZO.d.ts → access-service-DkaIG3n8.d.ts} +219 -75
- package/dist/access-service-helpers.d.ts +40 -40
- package/dist/access-service.d.ts +47 -47
- package/dist/access-service.js +14 -14
- package/dist/access-surface-catalog.d.ts +40 -40
- package/dist/access-surface-catalog.js +20 -16
- package/dist/access-surface-catalog.js.map +1 -1
- 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 +6 -1
- package/dist/active-recall.js.map +1 -1
- package/dist/ambient-provenance.d.ts +3 -1
- 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 +12 -12
- package/dist/briefing-window.d.ts +4 -2
- package/dist/briefing.d.ts +4 -2
- package/dist/briefing.js +3 -3
- 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/bulk-import/index.d.ts +5 -3
- package/dist/calibration.d.ts +3 -1
- package/dist/capabilities.d.ts +3 -1
- package/dist/{catalog-DV6qnbr7.d.ts → catalog-CX2BZEJh.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +3 -1
- package/dist/causal-consolidation.js +7 -7
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-R7JAM2XF.js → chunk-2VXWFYJE.js} +3 -3
- package/dist/{chunk-UXO5IMBK.js → chunk-4XDGYCZI.js} +2 -2
- package/dist/{chunk-OTHZWLUD.js → chunk-57HVIG5U.js} +2 -2
- package/dist/{chunk-EILZG5VC.js → chunk-6TAX66IA.js} +2 -2
- package/dist/{chunk-NKKD4ZAU.js → chunk-6VALIZKG.js} +2 -2
- package/dist/{chunk-BWLRUMOG.js → chunk-76PL4XLG.js} +435 -1
- package/dist/chunk-76PL4XLG.js.map +1 -0
- package/dist/{chunk-2E36UXVW.js → chunk-7KFIMGMP.js} +2 -2
- package/dist/{chunk-LGO6A7GJ.js → chunk-7QOO4LGC.js} +28 -28
- package/dist/{chunk-TBOJ76ER.js → chunk-AB3A7EFH.js} +18 -2
- package/dist/{chunk-TBOJ76ER.js.map → chunk-AB3A7EFH.js.map} +1 -1
- package/dist/{chunk-DZUJ46DO.js → chunk-AUO2LJ3K.js} +2 -2
- package/dist/{chunk-ZO6AXLEH.js → chunk-AYDDB3XI.js} +2 -2
- package/dist/{chunk-NTWN6HB2.js → chunk-AYYGRVRP.js} +2 -2
- package/dist/{chunk-7YQ4IYS2.js → chunk-AZAA5DNP.js} +2 -2
- package/dist/{chunk-4KYOLI6M.js → chunk-BKYPJUQL.js} +120 -14
- package/dist/chunk-BKYPJUQL.js.map +1 -0
- package/dist/{chunk-Z7PBQPJ4.js → chunk-BQUEAVNW.js} +2 -2
- package/dist/{chunk-35NN3ZFA.js → chunk-CTVWELNK.js} +21 -3
- package/dist/chunk-CTVWELNK.js.map +1 -0
- package/dist/{chunk-5YQ63T4B.js → chunk-D27J626P.js} +2 -2
- package/dist/{chunk-LZH5FR2W.js → chunk-DHTQP334.js} +2 -2
- package/dist/{chunk-Y7DK7HHJ.js → chunk-E4MVQQVX.js} +2 -2
- package/dist/{chunk-JYYBA7TF.js → chunk-EIVIB73I.js} +2 -2
- package/dist/{chunk-S2DPMJXH.js → chunk-EV3YFLCB.js} +2 -2
- package/dist/{chunk-TZNQUNKL.js → chunk-FC7TIRFS.js} +15 -1
- package/dist/chunk-FC7TIRFS.js.map +1 -0
- package/dist/{chunk-3I7ASZN3.js → chunk-G57LQRP6.js} +2 -2
- package/dist/{chunk-UIN2BWDD.js → chunk-GN55KU2P.js} +2 -2
- package/dist/{chunk-PE255F4T.js → chunk-GUXS322H.js} +2 -2
- package/dist/{chunk-V3MXUL3D.js → chunk-H5FW4S5Q.js} +319 -643
- package/dist/chunk-H5FW4S5Q.js.map +1 -0
- package/dist/chunk-I32NKXE2.js +879 -0
- package/dist/chunk-I32NKXE2.js.map +1 -0
- package/dist/{chunk-YB42WZCY.js → chunk-IQSC3V2E.js} +2 -2
- package/dist/{chunk-MN4KB2A4.js → chunk-MBDJJTAT.js} +3 -3
- package/dist/{chunk-SQI57UCJ.js → chunk-MRTUN665.js} +2 -2
- package/dist/{chunk-SBDCZ2AX.js → chunk-NXKJHSDN.js} +1 -1
- package/dist/chunk-NXKJHSDN.js.map +1 -0
- package/dist/{chunk-SPUJNJJC.js → chunk-NZWEEALH.js} +2 -2
- package/dist/{chunk-2XDWWPTN.js → chunk-OJD4WS2E.js} +2 -2
- package/dist/{chunk-ZWXJBFZU.js → chunk-OLWTCWQ2.js} +8 -8
- package/dist/{chunk-XRYZRW54.js → chunk-P4DHENRE.js} +2 -2
- package/dist/{chunk-J275IYMG.js → chunk-PAYGC3BD.js} +29 -2
- package/dist/chunk-PAYGC3BD.js.map +1 -0
- package/dist/{chunk-IID2CMUU.js → chunk-PDVQ5JU3.js} +2 -2
- package/dist/{chunk-7BY7V4YX.js → chunk-Q4WONDMJ.js} +4 -3
- package/dist/{chunk-7BY7V4YX.js.map → chunk-Q4WONDMJ.js.map} +1 -1
- package/dist/{chunk-5NM4OH4P.js → chunk-QFMO32TO.js} +3 -3
- package/dist/{chunk-SIHSCCUQ.js → chunk-QXIQPCCN.js} +1 -1
- package/dist/{chunk-2YI72KM3.js → chunk-R47WINCY.js} +2 -2
- package/dist/{chunk-ZQHI2BZB.js → chunk-RK4WXUI2.js} +2 -2
- package/dist/{chunk-QOS5LBZN.js → chunk-S7Q5CM7E.js} +2 -2
- package/dist/{chunk-GDFVPUJ5.js → chunk-TDKSCV62.js} +2 -2
- package/dist/{chunk-OCZIYAE5.js → chunk-TYUS5TLG.js} +3 -3
- package/dist/{chunk-GNCCUR6K.js → chunk-URHCUXKI.js} +2 -2
- package/dist/{chunk-TF77C7SV.js → chunk-VA5KMSAE.js} +7 -5
- package/dist/chunk-VA5KMSAE.js.map +1 -0
- package/dist/{chunk-SB7D4BT7.js → chunk-WN5FSGLE.js} +1545 -105
- package/dist/chunk-WN5FSGLE.js.map +1 -0
- package/dist/{chunk-YLDXWCZP.js → chunk-YF6UHWOV.js} +14 -9
- package/dist/chunk-YF6UHWOV.js.map +1 -0
- package/dist/{chunk-CT56C22C.js → chunk-Z4RPXHJH.js} +4 -4
- package/dist/{cli-cShQ13XG.d.ts → cli-ChKeYMZv.d.ts} +5 -5
- package/dist/cli.d.ts +25 -25
- package/dist/cli.js +44 -43
- package/dist/coding/pre-action-gate.d.ts +2 -60
- package/dist/compounding/engine.d.ts +4 -2
- package/dist/compounding/engine.js +3 -3
- 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 +6 -1
- package/dist/connectors/codex-materialize-runner.d.ts +3 -1
- package/dist/connectors/codex-materialize-runner.js +3 -3
- package/dist/connectors/codex-materialize.d.ts +3 -1
- package/dist/connectors/index.d.ts +3 -1
- package/dist/connectors/index.js +3 -3
- package/dist/consolidation-provenance-check.d.ts +4 -2
- package/dist/consolidation-undo.d.ts +4 -2
- package/dist/contradiction/index.d.ts +10 -270
- package/dist/contradiction/index.js +11 -6
- package/dist/{contradiction-review-QKJH5DKD.js → contradiction-review-WRVLRWHS.js} +6 -2
- package/dist/{contradiction-scan-VOTQRRSX.js → contradiction-scan-AKUWPX5N.js} +5 -3
- package/dist/converge-config.d.ts +3 -1
- package/dist/convergence-refresh.d.ts +4 -2
- package/dist/convergence-refresh.js +5 -5
- 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 +5 -5
- package/dist/cross-lingual-recall.d.ts +3 -1
- 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/{dependency-propagation-delivery-CsGg-VwS.d.ts → dependency-propagation-delivery-B8ZMBBCY.d.ts} +1 -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-origin-fields.d.ts +3 -1
- package/dist/entity-retrieval.d.ts +4 -2
- package/dist/entity-retrieval.js +3 -3
- package/dist/entity-schema.d.ts +3 -1
- package/dist/episodic-context.d.ts +3 -1
- package/dist/explicit-capture.d.ts +12 -12
- package/dist/external-wiki-access.d.ts +40 -40
- package/dist/external-wiki-access.js +15 -15
- 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 +40 -40
- 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 +3 -3
- package/dist/fallback-llm.d.ts +3 -1
- package/dist/graph-dashboard-diff.d.ts +3 -1
- package/dist/graph-dashboard-key.d.ts +3 -1
- package/dist/graph-dashboard-parser.d.ts +3 -1
- package/dist/graph-edge-reinforcement.d.ts +3 -1
- package/dist/graph-path-reconstruction.d.ts +3 -1
- package/dist/graph-path-scoring.d.ts +3 -1
- package/dist/graph-snapshot.d.ts +3 -1
- package/dist/graph.d.ts +3 -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-CexDrJzC.d.ts +284 -0
- package/dist/index.d.ts +251 -29
- package/dist/index.js +129 -75
- package/dist/intent.d.ts +3 -1
- package/dist/lcm/engine.d.ts +3 -1
- package/dist/lcm/index.d.ts +3 -1
- 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 +3 -3
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +4 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
- package/dist/maintenance/rebuild-memory-projection.d.ts +4 -2
- package/dist/maintenance/rebuild-memory-projection.js +4 -4
- package/dist/{maintenance-jhMpeGne.d.ts → maintenance-nkdtSrVr.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +37 -37
- 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-subject-cli.d.ts +40 -40
- package/dist/memory-subject.d.ts +42 -42
- 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 +4 -4
- package/dist/namespaces/principal.d.ts +3 -1
- package/dist/namespaces/search.d.ts +3 -1
- package/dist/namespaces/storage.d.ts +5 -3
- package/dist/namespaces/storage.js +3 -3
- 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 +6 -6
- package/dist/operator-doctor-replica.d.ts +3 -1
- package/dist/operator-toolkit.d.ts +5 -3
- package/dist/operator-toolkit.js +15 -12
- package/dist/orchestration/compression-guideline-coordinator.d.ts +4 -2
- package/dist/orchestration/maintenance.d.ts +6 -4
- package/dist/orchestration/maintenance.js +9 -9
- package/dist/{orchestrator-DyGUC7re.d.ts → orchestrator-Bvq1-RQs.d.ts} +23 -9
- package/dist/orchestrator.d.ts +12 -12
- package/dist/orchestrator.js +52 -52
- package/dist/patterns-cli.d.ts +3 -1
- package/dist/{pipeline-C25Oxtp1.d.ts → pipeline-C8vfIiTX.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/{public-http-CMe7NQzj.d.ts → public-http-Cy0aYbys.d.ts} +1 -1
- package/dist/{qmd-DkDVCbgF.d.ts → qmd-B9p1SZTZ.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/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-state.d.ts +3 -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 +3 -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/{resolution-MFY72STR.js → resolution-4552BNRV.js} +13 -3
- package/dist/resolve-auth-token.d.ts +3 -1
- package/dist/resume-bundles.js +4 -2
- 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 +44 -44
- package/dist/{scope-profiles-B9xMoFO-.d.ts → scope-profiles-DLrRxFWR.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +3 -1
- package/dist/search/factory.d.ts +3 -1
- package/dist/search/index.d.ts +3 -1
- 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-TddhF0y7.d.ts → semantic-BalR6EXU.d.ts} +1 -1
- package/dist/{semantic-consolidation-C4uykW84.d.ts → semantic-consolidation-DlN6xe20.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +4 -2
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.d.ts +3 -1
- package/dist/semantic-rule-verifier.js +3 -3
- package/dist/{service-DCZDZNcV.d.ts → service-GkYyVfm9.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 +3 -1
- package/dist/signal.d.ts +3 -1
- package/dist/source-agent-qualifier.d.ts +3 -1
- package/dist/source-agent-qualifier.js +3 -3
- package/dist/{storage-CcKmEjL8.d.ts → storage-BIDzuKIn.d.ts} +1 -1
- package/dist/storage.d.ts +4 -2
- package/dist/storage.js +2 -2
- package/dist/subject-config.d.ts +3 -1
- package/dist/summarizer.d.ts +3 -1
- package/dist/summary-snapshot.d.ts +3 -1
- package/dist/support-passport/index.d.ts +43 -43
- package/dist/support-passport/index.js +17 -17
- 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/types.d.ts +20 -20
- package/dist/trust-score-stage.d.ts +3 -1
- package/dist/trust-score.d.ts +3 -1
- package/dist/{types-Pi0lfaEt.d.ts → types-BxAcOl5Q.d.ts} +323 -4
- 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 +3 -3
- package/dist/who-knows-cli.d.ts +40 -40
- package/dist/who-knows-cli.js +4 -4
- package/dist/who-knows.d.ts +42 -42
- package/dist/who-knows.js +3 -3
- package/dist/write-envelope.d.ts +3 -1
- package/package.json +2 -2
- package/src/access-boundary.ts +4 -0
- package/src/access-http.ts +6 -5
- package/src/access-mcp-admin-tools.ts +24 -0
- package/src/access-mcp-output-schemas.ts +14 -0
- package/src/access-mcp.ts +2 -2
- package/src/access-operations-batch.ts +5 -0
- package/src/access-service.ts +27 -0
- package/src/access-surface-catalog.test.ts +24 -0
- package/src/access-surface-catalog.ts +4 -0
- package/src/coding/action-gate.test.ts +341 -0
- package/src/coding/action-gate.ts +556 -0
- package/src/config.ts +5 -0
- package/src/contradiction/contradiction-review.ts +50 -4
- package/src/contradiction/contradiction-scan.ts +14 -3
- package/src/contradiction/resolution.ts +50 -2
- package/src/index.ts +4 -3
- package/src/orchestration/recall-rerank-coordinator.ts +123 -4
- package/src/orchestration/recall-result-formatter.ts +6 -2
- package/src/orchestration/recall-search-pipeline.ts +14 -1
- package/src/preferences/drift-config.ts +118 -0
- package/src/preferences/drift-recall.ts +133 -0
- package/src/preferences/drift-types.ts +87 -0
- package/src/preferences/index.ts +12 -0
- package/src/preferences/preference-drift.test.ts +690 -0
- package/src/preferences/preference-drift.ts +724 -0
- package/src/review/review-deck-access.test.ts +325 -0
- package/src/review/review-deck-http-base.ts +133 -0
- package/src/review/review-deck-mutation.test.ts +417 -0
- package/src/review/review-deck-mutation.ts +677 -0
- package/src/review/review-deck-snapshot.ts +196 -0
- package/src/review/review-deck-surface.ts +117 -0
- package/src/review/review-deck.test.ts +347 -0
- package/src/review/review-deck.ts +311 -0
- package/src/storage.ts +4 -6
- package/src/types.ts +7 -3
- package/dist/chunk-35NN3ZFA.js.map +0 -1
- package/dist/chunk-4KYOLI6M.js.map +0 -1
- package/dist/chunk-BWLRUMOG.js.map +0 -1
- package/dist/chunk-J275IYMG.js.map +0 -1
- package/dist/chunk-SB7D4BT7.js.map +0 -1
- package/dist/chunk-SBDCZ2AX.js.map +0 -1
- package/dist/chunk-TF77C7SV.js.map +0 -1
- package/dist/chunk-TZNQUNKL.js.map +0 -1
- package/dist/chunk-V3MXUL3D.js.map +0 -1
- package/dist/chunk-XCTXS7VY.js +0 -402
- package/dist/chunk-XCTXS7VY.js.map +0 -1
- package/dist/chunk-YLDXWCZP.js.map +0 -1
- /package/dist/{chunk-R7JAM2XF.js.map → chunk-2VXWFYJE.js.map} +0 -0
- /package/dist/{chunk-UXO5IMBK.js.map → chunk-4XDGYCZI.js.map} +0 -0
- /package/dist/{chunk-OTHZWLUD.js.map → chunk-57HVIG5U.js.map} +0 -0
- /package/dist/{chunk-EILZG5VC.js.map → chunk-6TAX66IA.js.map} +0 -0
- /package/dist/{chunk-NKKD4ZAU.js.map → chunk-6VALIZKG.js.map} +0 -0
- /package/dist/{chunk-2E36UXVW.js.map → chunk-7KFIMGMP.js.map} +0 -0
- /package/dist/{chunk-LGO6A7GJ.js.map → chunk-7QOO4LGC.js.map} +0 -0
- /package/dist/{chunk-DZUJ46DO.js.map → chunk-AUO2LJ3K.js.map} +0 -0
- /package/dist/{chunk-ZO6AXLEH.js.map → chunk-AYDDB3XI.js.map} +0 -0
- /package/dist/{chunk-NTWN6HB2.js.map → chunk-AYYGRVRP.js.map} +0 -0
- /package/dist/{chunk-7YQ4IYS2.js.map → chunk-AZAA5DNP.js.map} +0 -0
- /package/dist/{chunk-Z7PBQPJ4.js.map → chunk-BQUEAVNW.js.map} +0 -0
- /package/dist/{chunk-5YQ63T4B.js.map → chunk-D27J626P.js.map} +0 -0
- /package/dist/{chunk-LZH5FR2W.js.map → chunk-DHTQP334.js.map} +0 -0
- /package/dist/{chunk-Y7DK7HHJ.js.map → chunk-E4MVQQVX.js.map} +0 -0
- /package/dist/{chunk-JYYBA7TF.js.map → chunk-EIVIB73I.js.map} +0 -0
- /package/dist/{chunk-S2DPMJXH.js.map → chunk-EV3YFLCB.js.map} +0 -0
- /package/dist/{chunk-3I7ASZN3.js.map → chunk-G57LQRP6.js.map} +0 -0
- /package/dist/{chunk-UIN2BWDD.js.map → chunk-GN55KU2P.js.map} +0 -0
- /package/dist/{chunk-PE255F4T.js.map → chunk-GUXS322H.js.map} +0 -0
- /package/dist/{chunk-YB42WZCY.js.map → chunk-IQSC3V2E.js.map} +0 -0
- /package/dist/{chunk-MN4KB2A4.js.map → chunk-MBDJJTAT.js.map} +0 -0
- /package/dist/{chunk-SQI57UCJ.js.map → chunk-MRTUN665.js.map} +0 -0
- /package/dist/{chunk-SPUJNJJC.js.map → chunk-NZWEEALH.js.map} +0 -0
- /package/dist/{chunk-2XDWWPTN.js.map → chunk-OJD4WS2E.js.map} +0 -0
- /package/dist/{chunk-ZWXJBFZU.js.map → chunk-OLWTCWQ2.js.map} +0 -0
- /package/dist/{chunk-XRYZRW54.js.map → chunk-P4DHENRE.js.map} +0 -0
- /package/dist/{chunk-IID2CMUU.js.map → chunk-PDVQ5JU3.js.map} +0 -0
- /package/dist/{chunk-5NM4OH4P.js.map → chunk-QFMO32TO.js.map} +0 -0
- /package/dist/{chunk-SIHSCCUQ.js.map → chunk-QXIQPCCN.js.map} +0 -0
- /package/dist/{chunk-2YI72KM3.js.map → chunk-R47WINCY.js.map} +0 -0
- /package/dist/{chunk-ZQHI2BZB.js.map → chunk-RK4WXUI2.js.map} +0 -0
- /package/dist/{chunk-QOS5LBZN.js.map → chunk-S7Q5CM7E.js.map} +0 -0
- /package/dist/{chunk-GDFVPUJ5.js.map → chunk-TDKSCV62.js.map} +0 -0
- /package/dist/{chunk-OCZIYAE5.js.map → chunk-TYUS5TLG.js.map} +0 -0
- /package/dist/{chunk-GNCCUR6K.js.map → chunk-URHCUXKI.js.map} +0 -0
- /package/dist/{chunk-CT56C22C.js.map → chunk-Z4RPXHJH.js.map} +0 -0
- /package/dist/{contradiction-review-QKJH5DKD.js.map → contradiction-review-WRVLRWHS.js.map} +0 -0
- /package/dist/{contradiction-scan-VOTQRRSX.js.map → contradiction-scan-AKUWPX5N.js.map} +0 -0
- /package/dist/{resolution-MFY72STR.js.map → resolution-4552BNRV.js.map} +0 -0
package/dist/transfer/types.d.ts
CHANGED
|
@@ -11,12 +11,12 @@ declare const ExportManifestV1Schema: z.ZodObject<{
|
|
|
11
11
|
sha256: z.ZodString;
|
|
12
12
|
bytes: z.ZodNumber;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
path: string;
|
|
15
14
|
sha256: string;
|
|
15
|
+
path: string;
|
|
16
16
|
bytes: number;
|
|
17
17
|
}, {
|
|
18
|
-
path: string;
|
|
19
18
|
sha256: string;
|
|
19
|
+
path: string;
|
|
20
20
|
bytes: number;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -24,8 +24,8 @@ declare const ExportManifestV1Schema: z.ZodObject<{
|
|
|
24
24
|
createdAt: string;
|
|
25
25
|
pluginVersion: string;
|
|
26
26
|
files: {
|
|
27
|
-
path: string;
|
|
28
27
|
sha256: string;
|
|
28
|
+
path: string;
|
|
29
29
|
bytes: number;
|
|
30
30
|
}[];
|
|
31
31
|
schemaVersion: 1;
|
|
@@ -35,8 +35,8 @@ declare const ExportManifestV1Schema: z.ZodObject<{
|
|
|
35
35
|
createdAt: string;
|
|
36
36
|
pluginVersion: string;
|
|
37
37
|
files: {
|
|
38
|
-
path: string;
|
|
39
38
|
sha256: string;
|
|
39
|
+
path: string;
|
|
40
40
|
bytes: number;
|
|
41
41
|
}[];
|
|
42
42
|
schemaVersion: 1;
|
|
@@ -66,12 +66,12 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
66
66
|
sha256: z.ZodString;
|
|
67
67
|
bytes: z.ZodNumber;
|
|
68
68
|
}, "strip", z.ZodTypeAny, {
|
|
69
|
-
path: string;
|
|
70
69
|
sha256: string;
|
|
70
|
+
path: string;
|
|
71
71
|
bytes: number;
|
|
72
72
|
}, {
|
|
73
|
-
path: string;
|
|
74
73
|
sha256: string;
|
|
74
|
+
path: string;
|
|
75
75
|
bytes: number;
|
|
76
76
|
}>, "many">;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -79,8 +79,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
79
79
|
createdAt: string;
|
|
80
80
|
pluginVersion: string;
|
|
81
81
|
files: {
|
|
82
|
-
path: string;
|
|
83
82
|
sha256: string;
|
|
83
|
+
path: string;
|
|
84
84
|
bytes: number;
|
|
85
85
|
}[];
|
|
86
86
|
schemaVersion: 1;
|
|
@@ -90,8 +90,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
90
90
|
createdAt: string;
|
|
91
91
|
pluginVersion: string;
|
|
92
92
|
files: {
|
|
93
|
-
path: string;
|
|
94
93
|
sha256: string;
|
|
94
|
+
path: string;
|
|
95
95
|
bytes: number;
|
|
96
96
|
}[];
|
|
97
97
|
schemaVersion: 1;
|
|
@@ -113,8 +113,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
113
113
|
createdAt: string;
|
|
114
114
|
pluginVersion: string;
|
|
115
115
|
files: {
|
|
116
|
-
path: string;
|
|
117
116
|
sha256: string;
|
|
117
|
+
path: string;
|
|
118
118
|
bytes: number;
|
|
119
119
|
}[];
|
|
120
120
|
schemaVersion: 1;
|
|
@@ -130,8 +130,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
130
130
|
createdAt: string;
|
|
131
131
|
pluginVersion: string;
|
|
132
132
|
files: {
|
|
133
|
-
path: string;
|
|
134
133
|
sha256: string;
|
|
134
|
+
path: string;
|
|
135
135
|
bytes: number;
|
|
136
136
|
}[];
|
|
137
137
|
schemaVersion: 1;
|
|
@@ -367,12 +367,12 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
367
367
|
sha256: z.ZodString;
|
|
368
368
|
bytes: z.ZodNumber;
|
|
369
369
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
-
path: string;
|
|
371
370
|
sha256: string;
|
|
371
|
+
path: string;
|
|
372
372
|
bytes: number;
|
|
373
373
|
}, {
|
|
374
|
-
path: string;
|
|
375
374
|
sha256: string;
|
|
375
|
+
path: string;
|
|
376
376
|
bytes: number;
|
|
377
377
|
}>, "many">;
|
|
378
378
|
capsule: z.ZodObject<{
|
|
@@ -511,8 +511,8 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
511
511
|
createdAt: string;
|
|
512
512
|
pluginVersion: string;
|
|
513
513
|
files: {
|
|
514
|
-
path: string;
|
|
515
514
|
sha256: string;
|
|
515
|
+
path: string;
|
|
516
516
|
bytes: number;
|
|
517
517
|
}[];
|
|
518
518
|
capsule: {
|
|
@@ -544,8 +544,8 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
544
544
|
createdAt: string;
|
|
545
545
|
pluginVersion: string;
|
|
546
546
|
files: {
|
|
547
|
-
path: string;
|
|
548
547
|
sha256: string;
|
|
548
|
+
path: string;
|
|
549
549
|
bytes: number;
|
|
550
550
|
}[];
|
|
551
551
|
capsule: {
|
|
@@ -586,12 +586,12 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
586
586
|
sha256: z.ZodString;
|
|
587
587
|
bytes: z.ZodNumber;
|
|
588
588
|
}, "strip", z.ZodTypeAny, {
|
|
589
|
-
path: string;
|
|
590
589
|
sha256: string;
|
|
590
|
+
path: string;
|
|
591
591
|
bytes: number;
|
|
592
592
|
}, {
|
|
593
|
-
path: string;
|
|
594
593
|
sha256: string;
|
|
594
|
+
path: string;
|
|
595
595
|
bytes: number;
|
|
596
596
|
}>, "many">;
|
|
597
597
|
capsule: z.ZodObject<{
|
|
@@ -730,8 +730,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
730
730
|
createdAt: string;
|
|
731
731
|
pluginVersion: string;
|
|
732
732
|
files: {
|
|
733
|
-
path: string;
|
|
734
733
|
sha256: string;
|
|
734
|
+
path: string;
|
|
735
735
|
bytes: number;
|
|
736
736
|
}[];
|
|
737
737
|
capsule: {
|
|
@@ -763,8 +763,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
763
763
|
createdAt: string;
|
|
764
764
|
pluginVersion: string;
|
|
765
765
|
files: {
|
|
766
|
-
path: string;
|
|
767
766
|
sha256: string;
|
|
767
|
+
path: string;
|
|
768
768
|
bytes: number;
|
|
769
769
|
}[];
|
|
770
770
|
capsule: {
|
|
@@ -808,8 +808,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
808
808
|
createdAt: string;
|
|
809
809
|
pluginVersion: string;
|
|
810
810
|
files: {
|
|
811
|
-
path: string;
|
|
812
811
|
sha256: string;
|
|
812
|
+
path: string;
|
|
813
813
|
bytes: number;
|
|
814
814
|
}[];
|
|
815
815
|
capsule: {
|
|
@@ -847,8 +847,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
847
847
|
createdAt: string;
|
|
848
848
|
pluginVersion: string;
|
|
849
849
|
files: {
|
|
850
|
-
path: string;
|
|
851
850
|
sha256: string;
|
|
851
|
+
path: string;
|
|
852
852
|
bytes: number;
|
|
853
853
|
}[];
|
|
854
854
|
capsule: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FaithfulnessFrontmatter, O as ProvenanceSource, U as TrustWeights, Q as QmdSearchResult } from './types-
|
|
1
|
+
import { F as FaithfulnessFrontmatter, O as ProvenanceSource, U as TrustWeights, Q as QmdSearchResult } from './types-BxAcOl5Q.js';
|
|
2
2
|
import { TrustScoreResult, TrustSignals, TrustBand, TrustScoreComponent } from './trust-score.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
import './bounded-jsonl-state.js';
|
|
@@ -7,6 +7,8 @@ import './operator-doctor-types.js';
|
|
|
7
7
|
import './external-wiki-config.js';
|
|
8
8
|
import './contradiction-config.js';
|
|
9
9
|
import './graph-path-scoring-config.js';
|
|
10
|
+
import './causal-trajectory.js';
|
|
11
|
+
import './objective-state.js';
|
|
10
12
|
import './types-continuity.js';
|
|
11
13
|
|
|
12
14
|
/** Stable key for a recall result whose path may repeat across namespaces. */
|
package/dist/trust-score.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as TrustWeights } from './types-
|
|
1
|
+
import { U as TrustWeights } from './types-BxAcOl5Q.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
3
|
import './bounded-jsonl-state.js';
|
|
4
4
|
import './types-CM86alG1.js';
|
|
@@ -6,6 +6,8 @@ import './operator-doctor-types.js';
|
|
|
6
6
|
import './external-wiki-config.js';
|
|
7
7
|
import './contradiction-config.js';
|
|
8
8
|
import './graph-path-scoring-config.js';
|
|
9
|
+
import './causal-trajectory.js';
|
|
10
|
+
import './objective-state.js';
|
|
9
11
|
import './types-continuity.js';
|
|
10
12
|
|
|
11
13
|
/**
|
|
@@ -5,6 +5,7 @@ import { OperatorDoctorCheck } from './operator-doctor-types.js';
|
|
|
5
5
|
import { ExternalWikiRoot } from './external-wiki-config.js';
|
|
6
6
|
import { ContradictionScanConfig, ContradictionLocalizationConfig } from './contradiction-config.js';
|
|
7
7
|
import { GraphPathScoringConfig } from './graph-path-scoring-config.js';
|
|
8
|
+
import { ActionStrategyId, CausalTrajectoryStrictReadResult, ActionIntent } from './causal-trajectory.js';
|
|
8
9
|
import './types-continuity.js';
|
|
9
10
|
|
|
10
11
|
interface BulkImportSource {
|
|
@@ -1174,6 +1175,92 @@ declare function parseReplicaPeersConfig(cfg: Record<string, unknown>): ReplicaP
|
|
|
1174
1175
|
*/
|
|
1175
1176
|
declare function resolveReplicaPeersConfig(block: unknown): ReplicaPeersConfig;
|
|
1176
1177
|
|
|
1178
|
+
/**
|
|
1179
|
+
* Preference drift detection config (issue #2371).
|
|
1180
|
+
*
|
|
1181
|
+
* Standalone top-level block, parsed the same way `contradictionScan` and
|
|
1182
|
+
* `procedural.maintenance` are: shape-validated, string-coercion safe (§24),
|
|
1183
|
+
* and honoring documented zero/no-op values (§33) rather than clamping them
|
|
1184
|
+
* to something non-zero.
|
|
1185
|
+
*/
|
|
1186
|
+
interface DriftDetectionConfig {
|
|
1187
|
+
/** Master switch for drift classification and its apply mode. Default false. */
|
|
1188
|
+
enabled: boolean;
|
|
1189
|
+
/** A preference younger than this is never a scan candidate. Default 60. */
|
|
1190
|
+
minAgeDays: number;
|
|
1191
|
+
/** Evidence-gathering window, in days back from the run instant. Default 45. */
|
|
1192
|
+
lookbackDays: number;
|
|
1193
|
+
/** Cap on preferences classified per run. `0` disables the scan entirely. Default 25. */
|
|
1194
|
+
maxCandidatesPerRun: number;
|
|
1195
|
+
/** When true, recall damps `driftState: stale` preferences. Default false. */
|
|
1196
|
+
recallDamping: boolean;
|
|
1197
|
+
/** Multiplier applied to stale preferences in (0, 1]; `1` is a documented no-op. Default 0.8. */
|
|
1198
|
+
stalePenalty: number;
|
|
1199
|
+
/** Annotate injected preferences uncorroborated for this many days. `0` = off. Default 0. */
|
|
1200
|
+
annotateAfterDays: number;
|
|
1201
|
+
}
|
|
1202
|
+
declare const DRIFT_DETECTION_DEFAULTS: DriftDetectionConfig;
|
|
1203
|
+
declare function parseDriftDetectionConfig(raw: unknown): DriftDetectionConfig;
|
|
1204
|
+
|
|
1205
|
+
/**
|
|
1206
|
+
* Shared preference-drift type surfaces (issue #2371).
|
|
1207
|
+
*
|
|
1208
|
+
* These live in the preferences module rather than in `types.ts` so the
|
|
1209
|
+
* cross-cutting fields drift detection introduces are declared next to the
|
|
1210
|
+
* subsystem that owns them, and `types.ts` composes them through `extends`
|
|
1211
|
+
* instead of growing another inline block.
|
|
1212
|
+
*/
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Drift verdict persisted on `preference` memories. `corroborated` is
|
|
1216
|
+
* deliberately NOT a member: a corroborated preference clears `driftState` and
|
|
1217
|
+
* stamps `lastCorroborated`, so the stored enum only carries a negative
|
|
1218
|
+
* verdict.
|
|
1219
|
+
*/
|
|
1220
|
+
type MemoryDriftState = "stale" | "drifted";
|
|
1221
|
+
/**
|
|
1222
|
+
* Derived drift provenance stamped by the scan AFTER a memory exists — never
|
|
1223
|
+
* supplied at compose time, which is why these fields stay outside the sealed
|
|
1224
|
+
* write envelope for exactly the reason `mw_success` / `mw_fail` do.
|
|
1225
|
+
*
|
|
1226
|
+
* Mixed into `MemoryFrontmatter`.
|
|
1227
|
+
*/
|
|
1228
|
+
interface MemoryDriftProvenance {
|
|
1229
|
+
/**
|
|
1230
|
+
* `stale` means the lookback window held no corroborating evidence either
|
|
1231
|
+
* way; `drifted` means recent evidence pointed away from the preference and
|
|
1232
|
+
* a review item was opened. Absent means "not classified".
|
|
1233
|
+
*/
|
|
1234
|
+
driftState?: MemoryDriftState;
|
|
1235
|
+
/** ISO 8601 timestamp of the last run that found corroborating evidence. */
|
|
1236
|
+
lastCorroborated?: string;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Per-recall render hint, mixed into `QmdSearchResult`. Set by the
|
|
1240
|
+
* preference-drift recall stage when `driftDetection.annotateAfterDays` is on
|
|
1241
|
+
* and absent otherwise. Never persisted — this annotates one injection, it is
|
|
1242
|
+
* not memory state.
|
|
1243
|
+
*/
|
|
1244
|
+
interface RecallDriftAnnotation {
|
|
1245
|
+
driftNote?: string;
|
|
1246
|
+
}
|
|
1247
|
+
/** Mixed into `PluginConfig`. */
|
|
1248
|
+
interface DriftDetectionSettings {
|
|
1249
|
+
driftDetection: DriftDetectionConfig;
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* Frontmatter codec for the drift stamps. Lives here, beside the interface it
|
|
1253
|
+
* serializes, so `storage.ts` stays a caller rather than growing another
|
|
1254
|
+
* field-specific block.
|
|
1255
|
+
*/
|
|
1256
|
+
declare function serializeDriftProvenance(fm: MemoryDriftProvenance): string[];
|
|
1257
|
+
/**
|
|
1258
|
+
* Read the drift stamps back. A hand-edited or unrecognized stored verdict
|
|
1259
|
+
* round-trips to `undefined` rather than poisoning recall damping — the same
|
|
1260
|
+
* policy the Memory Worth counters use for corrupt values.
|
|
1261
|
+
*/
|
|
1262
|
+
declare function parseDriftProvenance(fm: Record<string, string | undefined>): MemoryDriftProvenance;
|
|
1263
|
+
|
|
1177
1264
|
interface ProceduralMaintenanceConfig {
|
|
1178
1265
|
enabled: boolean;
|
|
1179
1266
|
retireIdleDays: number;
|
|
@@ -1182,6 +1269,236 @@ interface ProceduralMaintenanceConfig {
|
|
|
1182
1269
|
mergeEnabled: boolean;
|
|
1183
1270
|
}
|
|
1184
1271
|
|
|
1272
|
+
declare const PRE_ACTION_FINGERPRINT_VERSION = 1;
|
|
1273
|
+
declare const PRE_ACTION_WARNING_VERSION = 1;
|
|
1274
|
+
declare const PRE_ACTION_GATE_DEFAULT_TIMEOUT_MS = 50;
|
|
1275
|
+
type PreActionGateStatus = "NO_MATCH" | "MATCH_WARN" | "ERROR_FAIL_OPEN";
|
|
1276
|
+
interface PreActionGateRequest {
|
|
1277
|
+
sessionKey: string;
|
|
1278
|
+
strategyId: ActionStrategyId;
|
|
1279
|
+
intent: ActionIntent;
|
|
1280
|
+
codingContext: CodingContext;
|
|
1281
|
+
memoryDir?: string;
|
|
1282
|
+
causalTrajectoryStoreDir?: string;
|
|
1283
|
+
signal?: AbortSignal;
|
|
1284
|
+
}
|
|
1285
|
+
interface PreActionGateResult {
|
|
1286
|
+
status: PreActionGateStatus;
|
|
1287
|
+
reason?: string;
|
|
1288
|
+
advisoryText?: string;
|
|
1289
|
+
fingerprint?: string;
|
|
1290
|
+
matchedTrajectoryId?: string;
|
|
1291
|
+
revision?: string;
|
|
1292
|
+
}
|
|
1293
|
+
interface NormalizedActionIntent {
|
|
1294
|
+
kind: "command" | "edit";
|
|
1295
|
+
strategyId: ActionStrategyId;
|
|
1296
|
+
fingerprint: string;
|
|
1297
|
+
}
|
|
1298
|
+
interface PreActionGateDependencies {
|
|
1299
|
+
readStrict?: (options: {
|
|
1300
|
+
memoryDir: string;
|
|
1301
|
+
causalTrajectoryStoreDir?: string;
|
|
1302
|
+
signal?: AbortSignal;
|
|
1303
|
+
}) => Promise<CausalTrajectoryStrictReadResult>;
|
|
1304
|
+
getRevision?: (options: {
|
|
1305
|
+
memoryDir: string;
|
|
1306
|
+
causalTrajectoryStoreDir?: string;
|
|
1307
|
+
}) => Promise<string>;
|
|
1308
|
+
clock?: () => number;
|
|
1309
|
+
maxCacheSize?: number;
|
|
1310
|
+
timeoutMs?: number;
|
|
1311
|
+
}
|
|
1312
|
+
declare function sanitizePayloadString(input: string): string;
|
|
1313
|
+
declare function normalizeActionIntent(intent: ActionIntent, strategyId: ActionStrategyId, codingContext: CodingContext): NormalizedActionIntent;
|
|
1314
|
+
declare class PreActionFailureGate {
|
|
1315
|
+
private readonly cache;
|
|
1316
|
+
private readonly maxCacheSize;
|
|
1317
|
+
private readonly readStrict;
|
|
1318
|
+
private readonly getRevision;
|
|
1319
|
+
private readonly clock;
|
|
1320
|
+
private readonly timeoutMs;
|
|
1321
|
+
constructor(deps?: PreActionGateDependencies);
|
|
1322
|
+
clearCache(): void;
|
|
1323
|
+
evaluate(request: PreActionGateRequest): Promise<PreActionGateResult>;
|
|
1324
|
+
private evaluateInternal;
|
|
1325
|
+
private setCache;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Action-site failure gate (issue #2382, slice 1 — core contract).
|
|
1330
|
+
*
|
|
1331
|
+
* The H6 study (#1963) measured that a failure memory delivered in the prompt
|
|
1332
|
+
* preamble barely changes behaviour, while the same memory delivered at the
|
|
1333
|
+
* moment the agent proposes the matched action removes the repeated failure.
|
|
1334
|
+
* This module productionises that delivery point: `ActionGateService` wraps the
|
|
1335
|
+
* experimental `PreActionFailureGate` primitive, adds failure-class memory
|
|
1336
|
+
* candidates, a per-turn budget, cross-channel suppression, and telemetry.
|
|
1337
|
+
*
|
|
1338
|
+
* Scope, per the study's honest limit: the gate removes a known failure mode.
|
|
1339
|
+
* It does not improve task completion. It is advisory only — it never blocks an
|
|
1340
|
+
* action, never outruns its deadline, and fails open on every error path.
|
|
1341
|
+
*/
|
|
1342
|
+
|
|
1343
|
+
declare const ACTION_GATE_DEFAULT_MAX_ADVISORIES_PER_TURN = 3;
|
|
1344
|
+
interface ActionGateConfig {
|
|
1345
|
+
/**
|
|
1346
|
+
* Master gate. Default `false`: when disabled no lookup, no matching, and no
|
|
1347
|
+
* suppression bookkeeping runs on any path.
|
|
1348
|
+
*/
|
|
1349
|
+
enabled: boolean;
|
|
1350
|
+
/** Hard latency cap for a whole gate evaluation. Overrun fails open. */
|
|
1351
|
+
timeoutMs: number;
|
|
1352
|
+
/** Advisories injected per turn. `0` disables injection and all lookups. */
|
|
1353
|
+
maxAdvisoriesPerTurn: number;
|
|
1354
|
+
}
|
|
1355
|
+
declare const ACTION_GATE_DEFAULTS: ActionGateConfig;
|
|
1356
|
+
declare function parseActionGateConfig(raw: unknown): ActionGateConfig;
|
|
1357
|
+
type ActionGateStatus = "DISABLED" | "NO_MATCH" | "MATCH_WARN" | "ERROR_FAIL_OPEN";
|
|
1358
|
+
interface ActionGateRequest {
|
|
1359
|
+
sessionKey: string;
|
|
1360
|
+
/** Turn identity: the per-turn budget and dedupe reset when this changes. */
|
|
1361
|
+
turnId: string;
|
|
1362
|
+
strategyId: ActionStrategyId;
|
|
1363
|
+
intent: ActionIntent;
|
|
1364
|
+
codingContext: CodingContext;
|
|
1365
|
+
/** Memory directory ALREADY resolved for the caller's readable namespace. */
|
|
1366
|
+
memoryDir: string;
|
|
1367
|
+
/** Resolved readable namespace, passed verbatim to candidate sources. */
|
|
1368
|
+
namespace?: string;
|
|
1369
|
+
causalTrajectoryStoreDir?: string;
|
|
1370
|
+
signal?: AbortSignal;
|
|
1371
|
+
}
|
|
1372
|
+
interface ActionGateAdvisory {
|
|
1373
|
+
/** Trajectory id or memory id — the unit of dedupe and suppression. */
|
|
1374
|
+
memoryId: string;
|
|
1375
|
+
sourceId: string;
|
|
1376
|
+
text: string;
|
|
1377
|
+
}
|
|
1378
|
+
interface ActionGateDecision {
|
|
1379
|
+
status: ActionGateStatus;
|
|
1380
|
+
advisories: ActionGateAdvisory[];
|
|
1381
|
+
/** Candidates withheld: already delivered this turn/session, or over budget. */
|
|
1382
|
+
suppressedIds: string[];
|
|
1383
|
+
/** Source failures, kept distinct from "no candidates" (rule 22). */
|
|
1384
|
+
degradations: string[];
|
|
1385
|
+
fingerprint?: string;
|
|
1386
|
+
reason?: string;
|
|
1387
|
+
latencyMs: number;
|
|
1388
|
+
}
|
|
1389
|
+
interface ActionGateCandidate {
|
|
1390
|
+
memoryId: string;
|
|
1391
|
+
advisoryText: string;
|
|
1392
|
+
/** Deterministic ranking key; higher wins, ties break on `memoryId`. */
|
|
1393
|
+
score?: number;
|
|
1394
|
+
}
|
|
1395
|
+
interface ActionGateCandidateQuery {
|
|
1396
|
+
sessionKey: string;
|
|
1397
|
+
fingerprint: string;
|
|
1398
|
+
/** Normalized, deduplicated lexical terms describing the proposed action. */
|
|
1399
|
+
actionTerms: string[];
|
|
1400
|
+
strategyId: ActionStrategyId;
|
|
1401
|
+
intent: ActionIntent;
|
|
1402
|
+
codingContext: CodingContext;
|
|
1403
|
+
memoryDir: string;
|
|
1404
|
+
namespace?: string;
|
|
1405
|
+
causalTrajectoryStoreDir?: string;
|
|
1406
|
+
signal?: AbortSignal;
|
|
1407
|
+
}
|
|
1408
|
+
type ActionGateSourceResult = {
|
|
1409
|
+
ok: true;
|
|
1410
|
+
candidates: ActionGateCandidate[];
|
|
1411
|
+
} | {
|
|
1412
|
+
ok: false;
|
|
1413
|
+
reason: string;
|
|
1414
|
+
};
|
|
1415
|
+
interface ActionGateCandidateSource {
|
|
1416
|
+
readonly id: string;
|
|
1417
|
+
find(query: ActionGateCandidateQuery): Promise<ActionGateSourceResult>;
|
|
1418
|
+
}
|
|
1419
|
+
interface ActionGateAuditRecord {
|
|
1420
|
+
ts: string;
|
|
1421
|
+
sessionKey: string;
|
|
1422
|
+
turnId: string;
|
|
1423
|
+
status: ActionGateStatus;
|
|
1424
|
+
latencyMs: number;
|
|
1425
|
+
fingerprint?: string;
|
|
1426
|
+
deliveredIds: string[];
|
|
1427
|
+
suppressedIds: string[];
|
|
1428
|
+
degradations: string[];
|
|
1429
|
+
reason?: string;
|
|
1430
|
+
}
|
|
1431
|
+
type ActionGateAuditSink = (record: ActionGateAuditRecord) => void | Promise<void>;
|
|
1432
|
+
interface ActionGateServiceDependencies {
|
|
1433
|
+
sources?: ActionGateCandidateSource[];
|
|
1434
|
+
audit?: ActionGateAuditSink;
|
|
1435
|
+
clock?: () => number;
|
|
1436
|
+
now?: () => Date;
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Deterministic, local term extraction from a proposed action. No LLM and no
|
|
1440
|
+
* I/O: this runs in the hot path ahead of the tool call.
|
|
1441
|
+
*/
|
|
1442
|
+
declare function actionTermsFor(intent: ActionIntent): string[];
|
|
1443
|
+
/**
|
|
1444
|
+
* Failure-class markers on stored memories, read from frontmatter only so the
|
|
1445
|
+
* decision stays deterministic: explicit corrections, procedures flagged for
|
|
1446
|
+
* repair by library maintenance, and memories whose recorded outcomes are
|
|
1447
|
+
* failure-dominant.
|
|
1448
|
+
*/
|
|
1449
|
+
declare function isFailureClassMemory(memory: MemoryFile): boolean;
|
|
1450
|
+
interface FailureMemorySourceDependencies {
|
|
1451
|
+
/**
|
|
1452
|
+
* Namespace-scoped listing of candidate memories. Callers wire this to a
|
|
1453
|
+
* storage read for the SAME namespace the gate request resolved, so a
|
|
1454
|
+
* principal can never receive another principal's advisories.
|
|
1455
|
+
*/
|
|
1456
|
+
listMemories: (options: {
|
|
1457
|
+
namespace?: string;
|
|
1458
|
+
memoryDir: string;
|
|
1459
|
+
signal?: AbortSignal;
|
|
1460
|
+
}) => Promise<MemoryFile[]>;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Failure-class memory candidates, matched by bounded lexical overlap against
|
|
1464
|
+
* the proposed action's terms. Deterministic and local by construction.
|
|
1465
|
+
*/
|
|
1466
|
+
declare function createFailureMemoryCandidateSource(deps: FailureMemorySourceDependencies): ActionGateCandidateSource;
|
|
1467
|
+
/**
|
|
1468
|
+
* Candidate source over recorded causal-trajectory failures, delegating the
|
|
1469
|
+
* fingerprint match to the existing `PreActionFailureGate` primitive.
|
|
1470
|
+
*/
|
|
1471
|
+
declare function createTrajectoryCandidateSource(gate: PreActionFailureGate): ActionGateCandidateSource;
|
|
1472
|
+
/**
|
|
1473
|
+
* Advisory gate evaluated immediately before an agent action.
|
|
1474
|
+
*
|
|
1475
|
+
* Delivery is bounded three ways: a hard deadline, `maxAdvisoriesPerTurn`, and
|
|
1476
|
+
* dedupe per memory per turn. Cross-channel suppression keeps one memory from
|
|
1477
|
+
* arriving twice in a session — once here and once from turn-start recall.
|
|
1478
|
+
*/
|
|
1479
|
+
declare class ActionGateService {
|
|
1480
|
+
private readonly config;
|
|
1481
|
+
private readonly sources;
|
|
1482
|
+
private readonly audit?;
|
|
1483
|
+
private readonly clock;
|
|
1484
|
+
private readonly now;
|
|
1485
|
+
private readonly sessions;
|
|
1486
|
+
constructor(config: ActionGateConfig, deps?: ActionGateServiceDependencies);
|
|
1487
|
+
/**
|
|
1488
|
+
* Memory ids the gate already delivered in this session. Turn-start recall
|
|
1489
|
+
* filters these out before its own cap, honouring the filter-then-cap order.
|
|
1490
|
+
*/
|
|
1491
|
+
suppressedForTurnStart(sessionKey: string): string[];
|
|
1492
|
+
/** Record ids turn-start recall injected, so the gate will not repeat them. */
|
|
1493
|
+
noteTurnStartDelivery(sessionKey: string, memoryIds: readonly string[]): void;
|
|
1494
|
+
resetSession(sessionKey: string): void;
|
|
1495
|
+
evaluate(request: ActionGateRequest): Promise<ActionGateDecision>;
|
|
1496
|
+
private collect;
|
|
1497
|
+
private finish;
|
|
1498
|
+
private sessionState;
|
|
1499
|
+
private addTracked;
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1185
1502
|
interface BufferTurnOwner {
|
|
1186
1503
|
/**
|
|
1187
1504
|
* Server-resolved principal that owns this session at the authenticated
|
|
@@ -1864,7 +2181,7 @@ interface SemanticChunkingConfigShape {
|
|
|
1864
2181
|
embeddingBatchSize: number;
|
|
1865
2182
|
fallbackToRecursive: boolean;
|
|
1866
2183
|
}
|
|
1867
|
-
interface PluginConfig extends BoundedJsonlStateConfig, SecurityConfig {
|
|
2184
|
+
interface PluginConfig extends BoundedJsonlStateConfig, SecurityConfig, DriftDetectionSettings {
|
|
1868
2185
|
openaiApiKey: string | undefined;
|
|
1869
2186
|
openaiBaseUrl: string | undefined;
|
|
1870
2187
|
model: string;
|
|
@@ -2405,6 +2722,8 @@ interface PluginConfig extends BoundedJsonlStateConfig, SecurityConfig {
|
|
|
2405
2722
|
secureStoreEncryptOnWrite: boolean;
|
|
2406
2723
|
codingMode: CodingModeConfig;
|
|
2407
2724
|
codingKnowledge: CodingKnowledgeConfig;
|
|
2725
|
+
/** Action-site failure gate (issue #2382). Off by default; advisory only. */
|
|
2726
|
+
actionGate: ActionGateConfig;
|
|
2408
2727
|
heartbeat: HeartbeatConfig;
|
|
2409
2728
|
chat: ChatConfig;
|
|
2410
2729
|
/** Owner-controlled support passport. Off by default. */
|
|
@@ -3836,7 +4155,7 @@ interface ImportanceScore {
|
|
|
3836
4155
|
/** Salient keywords extracted */
|
|
3837
4156
|
keywords: string[];
|
|
3838
4157
|
}
|
|
3839
|
-
interface MemoryFrontmatter extends SourceConnectorProvenance, OriginMetadata {
|
|
4158
|
+
interface MemoryFrontmatter extends SourceConnectorProvenance, OriginMetadata, MemoryDriftProvenance {
|
|
3840
4159
|
/** True when write-time classification ties this memory to its source connector's tools or commands. */
|
|
3841
4160
|
toolScoped?: true;
|
|
3842
4161
|
id: string;
|
|
@@ -4428,7 +4747,7 @@ interface ConsolidationObservation {
|
|
|
4428
4747
|
merged: number;
|
|
4429
4748
|
invalidated: number;
|
|
4430
4749
|
}
|
|
4431
|
-
interface QmdSearchResult extends OriginMetadata {
|
|
4750
|
+
interface QmdSearchResult extends OriginMetadata, RecallDriftAnnotation {
|
|
4432
4751
|
docid: string;
|
|
4433
4752
|
path: string;
|
|
4434
4753
|
snippet: string;
|
|
@@ -4754,4 +5073,4 @@ interface HourlySummary {
|
|
|
4754
5073
|
generatedAt: string;
|
|
4755
5074
|
}
|
|
4756
5075
|
|
|
4757
|
-
export { type ExtractionFailureClass as $, type AgentPersonaModelConfig as A, type BriefingSections as B, type CodingContext as C, type DreamsPhase as D, type EntityFile as E, type FaithfulnessFrontmatter as F, type GatewayConfig as G, type HourlySummary as H, type IdentityInjectionMode as I, type MemoryProjectionCurrentState as J, type MemoryLifecycleEvent as K, type LiveConnectorsConfig as L, type MemoryFile as M, type MemorySubject as N, type ProvenanceSource as O, type PluginConfig as P, type QmdSearchResult as Q, type RecallPlanMode as R, type SessionObserverBandConfig as S, type TranscriptEntry as T, type TrustWeights as U, type ConversationThread as V, type LifecycleState as W, type VerificationState as X, type PolicyClass as Y, type ReplicaPeersConfig as Z, type ReplicaPeerConfig as _, type DreamsRunResult as a, type WearableSyncSummary as a$, type ImportanceLevel as a0, type ConvergeConflictPolicy as a1, type ActiveRecallChatType as a2, type ActiveRecallQueryMode as a3, type ActiveRecallPromptStyle as a4, type ActiveRecallThinking as a5, type ActiveRecallModelFallbackPolicy as a6, type ExtractionResult as a7, type BehaviorSignalEvent as a8, type BufferSurpriseEvent as a9, type NativeKnowledgeConfig as aA, type ExtractionBufferSource as aB, type MetaState as aC, summarizeExtractionLiveness as aD, type RetrievalTier as aE, type SignalScanResult as aF, type TopicScore as aG, type ConsolidationResult as aH, type DaySummaryResult as aI, type QmdSearchExplain as aJ, type ActivitySnapshot as aK, type ActivityConfig as aL, type ActivitySourceConfig as aM, type ActivitySourceClient as aN, type MeetingBuildInput as aO, type MeetingsConfig as aP, type FusedMeeting as aQ, type MeetingRecord as aR, type MeetingsDetectionInput as aS, type FusionConversationInput as aT, type DetectedMeeting as aU, type WearableConversation as aV, type WearableSourceSettings as aW, type WearableNativeMemory as aX, type WearableMemoryMode as aY, type WearableSourceConnector as aZ, type WearablesConfig as a_, type ImportTurn as aa, type BulkImportOptions as ab, type BulkImportSource as ac, type BulkImportResult as ad, type CompressionGuidelineOptimizerEventCounts as ae, type CompressionGuidelineOptimizerActionSummary as af, type CompressionGuidelineOptimizerRuleUpdate as ag, type MemoryActionType as ah, type MemoryActionEvent as ai, type CompressionGuidelineOptimizerState as aj, type ConvergeConfig as ak, type EntityMention as al, type DependencyPropagationConfig as am, type EntityStructuredSection as an, type EntitySchemaDefinition as ao, type EntitySchemaSectionDefinition as ap, type ExtractedFact as aq, type ProvenanceConfig as ar, type ImportanceScore as as, type MemoryIntent as at, type SubjectGuardMode as au, type MemoryActionEligibilityContext as av, type MemoryActionPolicyResult as aw, type MemoryLifecycleEventType as ax, type MemoryLifecycleStateSummary as ay, type ModelProviderConfig as az, type RecallTierExplain as b, type WearableTranscriptSegment as b$, type WearableSourceStatus as b0, type WearableDayTranscript as b1, type FusedWearableConversation as b2, type WearableCorrectionRule as b3, type FusedDayMeta as b4, type FusedDayFile as b5, type MeetingDetectionSource as b6, type EntityTimelineEntry as b7, type MemoryLink as b8, type BufferState as b9, type MeetingAudioWindow as bA, type MeetingAppSpan as bB, type ActivityExtractionMode as bC, type BriefingConfig as bD, type BriefingWindow as bE, type BulkImportError as bF, type BulkImportSourceAdapter as bG, type CodexCompatConfig as bH, DEFAULT_RECALL_DISCLOSURE as bI, type DisagreementKind as bJ, type FusedContribution as bK, type FusedConversationProvenance as bL, type FusedSegmentProvenance as bM, type FusionSegmentInput as bN, type ImportSourceRole as bO, type ImportTurnValidationIssue as bP, type MeetingScreenContextEvent as bQ, type MeetingSummaryMode as bR, type MemoryActionEligibilitySource as bS, type MemoryObservation as bT, type MemoryScope as bU, RECALL_DISCLOSURE_LEVELS as bV, type SegmentPickReason as bW, type WearableAuthCheck as bX, type WearableFetchOptions as bY, type WearableFetchPage as bZ, type WearableNativeMemoryPage as b_, type FileHygieneConfig as ba, type EntityRelationship as bb, type EntityActivityEntry as bc, type AccessTrackingEntry as bd, type MemorySummary as be, type DreamsStatusResult as bf, type RecallSectionConfig as bg, type BootstrapOptions as bh, type BootstrapResult as bi, type ConsolidationObservation as bj, type CodingModeConfig as bk, type FusedSpeaker as bl, type FusedSegment as bm, type FusedDisagreement as bn, type FusionOptions as bo, type FusionDayResult as bp, type CodingKnowledgeConfig as bq, type WearableCleanupSettings as br, type WearableFusionConfig as bs, type OffTheRecordMarkerSettings as bt, type WearableDayTranscriptMeta as bu, type ActivityDayMeta as bv, type ActivityDayDigest as bw, type ActivitySourceCheck as bx, type ActivitySnapshotPage as by, type MeetingsDetectionConfig as bz, type BriefingFollowup as c, type ExtractedRelationship as c$, isImportRole as c0, isRecallDisclosure as c1, parseIsoTimestamp as c2, validateImportTurn as c3, type SupportPassportConfig as c4, type ExtractionLivenessConfig as c5, ExtractionLivenessWarnThrottle as c6, type ExtractionRootStats as c7, type ExtractionWatermarkOrStorage as c8, type ExtractionWatermarkRead as c9, type BehaviorSignalType as cA, type BriefingCalendarSourceError as cB, type BufferEntryState as cC, type ChatConfig as cD, type CodexCliReasoningEffort as cE, type CodexCompactionFlushMode as cF, type CodexConnectorConfig as cG, type CodingGraphLspConfig as cH, type CompressionGuidelineActivationState as cI, type CompressionGuidelineOptimizerSourceWindow as cJ, type ConfidenceTier as cK, type ConsolidationAction as cL, type ConsolidationItem as cM, type CronConversationRecallMode as cN, type CronRecallMode as cO, type DreamingConfig as cP, type DreamingNarrativePromptStyle as cQ, type DreamsDeepSleepConfig as cR, type DreamsLightSleepConfig as cS, type DreamsPhaseStatus as cT, type DreamsPhasesConfig as cU, type DreamsRemConfig as cV, type EngramTraceEvent as cW, type ExtractedProcedureStep as cX, type ExtractedQuestion as cY, type ExtractedReasoningTrace as cZ, type ExtractedReasoningTraceStep as c_, coerceExtractionWatermark as ca, computeExtractionLivenessStatus as cb, evaluateExtractionLiveness as cc, formatAgeMs as cd, gatherExtractionLivenessStatus as ce, parseExtractionLivenessConfig as cf, renderExtractionLivenessStats as cg, resolveExtractionLivenessConfig as ch, parseReplicaPeersConfig as ci, resolveReplicaPeersConfig as cj, type AmbientCaptureProvenance as ck, type BufferTurnOwner as cl, ProbeTimeoutError as cm, bufferTurnArrayIsSuffixOfSnapshot as cn, bufferTurnArraysEqual as co, bufferTurnsEqual as cp, copyBufferTurn as cq, describeError as cr, liveTurnsFromExtractionSnapshot as cs, matchingQueuedExtractionPrefixLength as ct, probeWithTimeout as cu, type AgentAccessHttpConfig as cv, type AgentDefaultsConfig as cw, type AgentPersona as cx, type BehaviorLoopAdjustment as cy, type BehaviorSignalDirection as cz, type BriefingFocus as d, type ExtractionPassSource as d0, type GitHubLiveConnectorConfig as d1, type GmailLiveConnectorConfig as d2, type GoogleDriveLiveConnectorConfig as d3, type HeartbeatConfig as d4, type HeartbeatDetectionMode as d5, type LlmTraceCallback as d6, type LlmTraceEvent as d7, type MemoryActionOutcome as d8, type MemoryActionPolicyDecision as d9, type SignalLevel as dA, type SlotBehaviorConfig as dB, type SlotMismatchMode as dC, type TriggerMode as dD, confidenceTier as dE, type MemoryActionStatus as da, type MemoryLinkType as db, type MemoryOsPresetName as dc, type ModelApi as dd, type ModelDefinitionConfig as de, type ModelProviderAuthMode as df, type NamespacePolicy as dg, type NativeKnowledgeFolderRuleConfig as dh, type NativeKnowledgeObsidianVaultConfig as di, type NativeKnowledgeOpenClawWorkspaceConfig as dj, type NotionLiveConnectorConfig as dk, type PrincipalFromSessionKeyMode as dl, type PrincipalRule as dm, type ProceduralConfig as dn, type QuestionEntry as dp, type ReasoningEffort as dq, type RecallPipelineConfig as dr, type RecallTraceEvent as ds, type RelevanceFeedback as dt, SPECULATIVE_TTL_DAYS as du, type ScopeProfileAutoPromoteConfig as dv, type ScopeProfileTeamProjectConfig as dw, type ScopeTeamConfig as dx, type ScoredEntity as dy, type SemanticChunkingConfigShape as dz, type CalendarSource as e, type CalendarEvent as f, type BriefingActiveThread as g, type BriefingResult as h, type BriefingOpenCommitment as i, type BriefingRecentEntity as j, type BufferTurn as k, type ExtractionBufferSnapshot as l, type MemoryFrontmatter as m, type Checkpoint as n, type RecallDisclosure as o, type SourceConnectorProvenance as p, type ScopeProfileConfig as q, type ScopeProfileLayerId as r, type ScopeProfilePromotionTarget as s, type BehaviorLoopPolicyState as t, type ExtractionLivenessStatus as u, type SecretRef as v, type AgentAccessAuthToken as w, type MemoryCategory as x, type CaptureMode as y, type MemoryStatus as z };
|
|
5076
|
+
export { type ExtractionFailureClass as $, type AgentPersonaModelConfig as A, type BriefingSections as B, type CodingContext as C, type DreamsPhase as D, type EntityFile as E, type FaithfulnessFrontmatter as F, type GatewayConfig as G, type HourlySummary as H, type IdentityInjectionMode as I, type MemoryProjectionCurrentState as J, type MemoryLifecycleEvent as K, type LiveConnectorsConfig as L, type MemoryFile as M, type MemorySubject as N, type ProvenanceSource as O, type PluginConfig as P, type QmdSearchResult as Q, type RecallPlanMode as R, type SessionObserverBandConfig as S, type TranscriptEntry as T, type TrustWeights as U, type ConversationThread as V, type LifecycleState as W, type VerificationState as X, type PolicyClass as Y, type ReplicaPeersConfig as Z, type ReplicaPeerConfig as _, type DreamsRunResult as a, type WearableSyncSummary as a$, type ImportanceLevel as a0, type ConvergeConflictPolicy as a1, type ActiveRecallChatType as a2, type ActiveRecallQueryMode as a3, type ActiveRecallPromptStyle as a4, type ActiveRecallThinking as a5, type ActiveRecallModelFallbackPolicy as a6, type ExtractionResult as a7, type BehaviorSignalEvent as a8, type BufferSurpriseEvent as a9, type NativeKnowledgeConfig as aA, type ExtractionBufferSource as aB, type MetaState as aC, summarizeExtractionLiveness as aD, type RetrievalTier as aE, type SignalScanResult as aF, type TopicScore as aG, type ConsolidationResult as aH, type DaySummaryResult as aI, type QmdSearchExplain as aJ, type ActivitySnapshot as aK, type ActivityConfig as aL, type ActivitySourceConfig as aM, type ActivitySourceClient as aN, type MeetingBuildInput as aO, type MeetingsConfig as aP, type FusedMeeting as aQ, type MeetingRecord as aR, type MeetingsDetectionInput as aS, type FusionConversationInput as aT, type DetectedMeeting as aU, type WearableConversation as aV, type WearableSourceSettings as aW, type WearableNativeMemory as aX, type WearableMemoryMode as aY, type WearableSourceConnector as aZ, type WearablesConfig as a_, type ImportTurn as aa, type BulkImportOptions as ab, type BulkImportSource as ac, type BulkImportResult as ad, type CompressionGuidelineOptimizerEventCounts as ae, type CompressionGuidelineOptimizerActionSummary as af, type CompressionGuidelineOptimizerRuleUpdate as ag, type MemoryActionType as ah, type MemoryActionEvent as ai, type CompressionGuidelineOptimizerState as aj, type ConvergeConfig as ak, type EntityMention as al, type DependencyPropagationConfig as am, type EntityStructuredSection as an, type EntitySchemaDefinition as ao, type EntitySchemaSectionDefinition as ap, type ExtractedFact as aq, type ProvenanceConfig as ar, type ImportanceScore as as, type MemoryIntent as at, type SubjectGuardMode as au, type MemoryActionEligibilityContext as av, type MemoryActionPolicyResult as aw, type MemoryLifecycleEventType as ax, type MemoryLifecycleStateSummary as ay, type ModelProviderConfig as az, type RecallTierExplain as b, type DisagreementKind as b$, type WearableSourceStatus as b0, type WearableDayTranscript as b1, type FusedWearableConversation as b2, type WearableCorrectionRule as b3, type FusedDayMeta as b4, type FusedDayFile as b5, type MeetingDetectionSource as b6, type EntityTimelineEntry as b7, type MemoryLink as b8, type BufferState as b9, type ActivitySnapshotPage as bA, type MeetingsDetectionConfig as bB, type MeetingAudioWindow as bC, type MeetingAppSpan as bD, ACTION_GATE_DEFAULTS as bE, ACTION_GATE_DEFAULT_MAX_ADVISORIES_PER_TURN as bF, type ActionGateAdvisory as bG, type ActionGateAuditRecord as bH, type ActionGateAuditSink as bI, type ActionGateCandidate as bJ, type ActionGateCandidateQuery as bK, type ActionGateCandidateSource as bL, type ActionGateConfig as bM, type ActionGateDecision as bN, type ActionGateRequest as bO, ActionGateService as bP, type ActionGateServiceDependencies as bQ, type ActionGateSourceResult as bR, type ActionGateStatus as bS, type ActivityExtractionMode as bT, type BriefingConfig as bU, type BriefingWindow as bV, type BulkImportError as bW, type BulkImportSourceAdapter as bX, type CodexCompatConfig as bY, DEFAULT_RECALL_DISCLOSURE as bZ, DRIFT_DETECTION_DEFAULTS as b_, type FileHygieneConfig as ba, type EntityRelationship as bb, type EntityActivityEntry as bc, type AccessTrackingEntry as bd, type MemorySummary as be, type RecallSectionConfig as bf, type BootstrapOptions as bg, type BootstrapResult as bh, type ConsolidationObservation as bi, type DreamsStatusResult as bj, type CodingModeConfig as bk, type FusedSpeaker as bl, type FusedSegment as bm, type FusedDisagreement as bn, type FusionOptions as bo, type FusionDayResult as bp, type MemoryDriftState as bq, type DriftDetectionConfig as br, type CodingKnowledgeConfig as bs, type WearableCleanupSettings as bt, type WearableFusionConfig as bu, type OffTheRecordMarkerSettings as bv, type WearableDayTranscriptMeta as bw, type ActivityDayMeta as bx, type ActivityDayDigest as by, type ActivitySourceCheck as bz, type BriefingFollowup as c, ProbeTimeoutError as c$, type DriftDetectionSettings as c0, type FailureMemorySourceDependencies as c1, type FusedContribution as c2, type FusedConversationProvenance as c3, type FusedSegmentProvenance as c4, type FusionSegmentInput as c5, type ImportSourceRole as c6, type ImportTurnValidationIssue as c7, type MeetingScreenContextEvent as c8, type MeetingSummaryMode as c9, isRecallDisclosure as cA, normalizeActionIntent as cB, parseActionGateConfig as cC, parseDriftDetectionConfig as cD, parseDriftProvenance as cE, parseIsoTimestamp as cF, sanitizePayloadString as cG, serializeDriftProvenance as cH, validateImportTurn as cI, type SupportPassportConfig as cJ, type ExtractionLivenessConfig as cK, ExtractionLivenessWarnThrottle as cL, type ExtractionRootStats as cM, type ExtractionWatermarkOrStorage as cN, type ExtractionWatermarkRead as cO, coerceExtractionWatermark as cP, computeExtractionLivenessStatus as cQ, evaluateExtractionLiveness as cR, formatAgeMs as cS, gatherExtractionLivenessStatus as cT, parseExtractionLivenessConfig as cU, renderExtractionLivenessStats as cV, resolveExtractionLivenessConfig as cW, parseReplicaPeersConfig as cX, resolveReplicaPeersConfig as cY, type AmbientCaptureProvenance as cZ, type BufferTurnOwner as c_, type MemoryActionEligibilitySource as ca, type MemoryDriftProvenance as cb, type MemoryObservation as cc, type MemoryScope as cd, type NormalizedActionIntent as ce, PRE_ACTION_FINGERPRINT_VERSION as cf, PRE_ACTION_GATE_DEFAULT_TIMEOUT_MS as cg, PRE_ACTION_WARNING_VERSION as ch, PreActionFailureGate as ci, type PreActionGateDependencies as cj, type PreActionGateRequest as ck, type PreActionGateResult as cl, type PreActionGateStatus as cm, RECALL_DISCLOSURE_LEVELS as cn, type RecallDriftAnnotation as co, type SegmentPickReason as cp, type WearableAuthCheck as cq, type WearableFetchOptions as cr, type WearableFetchPage as cs, type WearableNativeMemoryPage as ct, type WearableTranscriptSegment as cu, actionTermsFor as cv, createFailureMemoryCandidateSource as cw, createTrajectoryCandidateSource as cx, isFailureClassMemory as cy, isImportRole as cz, type BriefingFocus as d, type PrincipalFromSessionKeyMode as d$, bufferTurnArrayIsSuffixOfSnapshot as d0, bufferTurnArraysEqual as d1, bufferTurnsEqual as d2, copyBufferTurn as d3, describeError as d4, liveTurnsFromExtractionSnapshot as d5, matchingQueuedExtractionPrefixLength as d6, probeWithTimeout as d7, type AgentAccessHttpConfig as d8, type AgentDefaultsConfig as d9, type EngramTraceEvent as dA, type ExtractedProcedureStep as dB, type ExtractedQuestion as dC, type ExtractedReasoningTrace as dD, type ExtractedReasoningTraceStep as dE, type ExtractedRelationship as dF, type ExtractionPassSource as dG, type GitHubLiveConnectorConfig as dH, type GmailLiveConnectorConfig as dI, type GoogleDriveLiveConnectorConfig as dJ, type HeartbeatConfig as dK, type HeartbeatDetectionMode as dL, type LlmTraceCallback as dM, type LlmTraceEvent as dN, type MemoryActionOutcome as dO, type MemoryActionPolicyDecision as dP, type MemoryActionStatus as dQ, type MemoryLinkType as dR, type MemoryOsPresetName as dS, type ModelApi as dT, type ModelDefinitionConfig as dU, type ModelProviderAuthMode as dV, type NamespacePolicy as dW, type NativeKnowledgeFolderRuleConfig as dX, type NativeKnowledgeObsidianVaultConfig as dY, type NativeKnowledgeOpenClawWorkspaceConfig as dZ, type NotionLiveConnectorConfig as d_, type AgentPersona as da, type BehaviorLoopAdjustment as db, type BehaviorSignalDirection as dc, type BehaviorSignalType as dd, type BriefingCalendarSourceError as de, type BufferEntryState as df, type ChatConfig as dg, type CodexCliReasoningEffort as dh, type CodexCompactionFlushMode as di, type CodexConnectorConfig as dj, type CodingGraphLspConfig as dk, type CompressionGuidelineActivationState as dl, type CompressionGuidelineOptimizerSourceWindow as dm, type ConfidenceTier as dn, type ConsolidationAction as dp, type ConsolidationItem as dq, type CronConversationRecallMode as dr, type CronRecallMode as ds, type DreamingConfig as dt, type DreamingNarrativePromptStyle as du, type DreamsDeepSleepConfig as dv, type DreamsLightSleepConfig as dw, type DreamsPhaseStatus as dx, type DreamsPhasesConfig as dy, type DreamsRemConfig as dz, type CalendarSource as e, type PrincipalRule as e0, type ProceduralConfig as e1, type QuestionEntry as e2, type ReasoningEffort as e3, type RecallPipelineConfig as e4, type RecallTraceEvent as e5, type RelevanceFeedback as e6, SPECULATIVE_TTL_DAYS as e7, type ScopeProfileAutoPromoteConfig as e8, type ScopeProfileTeamProjectConfig as e9, type ScopeTeamConfig as ea, type ScoredEntity as eb, type SemanticChunkingConfigShape as ec, type SignalLevel as ed, type SlotBehaviorConfig as ee, type SlotMismatchMode as ef, type TriggerMode as eg, confidenceTier as eh, type CalendarEvent as f, type BriefingActiveThread as g, type BriefingResult as h, type BriefingOpenCommitment as i, type BriefingRecentEntity as j, type BufferTurn as k, type ExtractionBufferSnapshot as l, type MemoryFrontmatter as m, type Checkpoint as n, type RecallDisclosure as o, type SourceConnectorProvenance as p, type ScopeProfileConfig as q, type ScopeProfileLayerId as r, type ScopeProfilePromotionTarget as s, type BehaviorLoopPolicyState as t, type SecretRef as u, type AgentAccessAuthToken as v, type MemoryStatus as w, type ExtractionLivenessStatus as x, type MemoryCategory as y, type CaptureMode as z };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bd as AccessTrackingEntry, a2 as ActiveRecallChatType, a6 as ActiveRecallModelFallbackPolicy, a4 as ActiveRecallPromptStyle, a3 as ActiveRecallQueryMode, a5 as ActiveRecallThinking,
|
|
1
|
+
export { bd as AccessTrackingEntry, a2 as ActiveRecallChatType, a6 as ActiveRecallModelFallbackPolicy, a4 as ActiveRecallPromptStyle, a3 as ActiveRecallQueryMode, a5 as ActiveRecallThinking, v as AgentAccessAuthToken, d8 as AgentAccessHttpConfig, d9 as AgentDefaultsConfig, da as AgentPersona, A as AgentPersonaModelConfig, db as BehaviorLoopAdjustment, t as BehaviorLoopPolicyState, dc as BehaviorSignalDirection, a8 as BehaviorSignalEvent, dd as BehaviorSignalType, bg as BootstrapOptions, bh as BootstrapResult, g as BriefingActiveThread, de as BriefingCalendarSourceError, bU as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, i as BriefingOpenCommitment, j as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bV as BriefingWindow, df as BufferEntryState, b9 as BufferState, a9 as BufferSurpriseEvent, k as BufferTurn, f as CalendarEvent, e as CalendarSource, z as CaptureMode, dg as ChatConfig, n as Checkpoint, dh as CodexCliReasoningEffort, di as CodexCompactionFlushMode, bY as CodexCompatConfig, dj as CodexConnectorConfig, C as CodingContext, dk as CodingGraphLspConfig, bs as CodingKnowledgeConfig, bk as CodingModeConfig, dl as CompressionGuidelineActivationState, af as CompressionGuidelineOptimizerActionSummary, ae as CompressionGuidelineOptimizerEventCounts, ag as CompressionGuidelineOptimizerRuleUpdate, dm as CompressionGuidelineOptimizerSourceWindow, aj as CompressionGuidelineOptimizerState, dn as ConfidenceTier, dp as ConsolidationAction, dq as ConsolidationItem, bi as ConsolidationObservation, aH as ConsolidationResult, ak as ConvergeConfig, a1 as ConvergeConflictPolicy, V as ConversationThread, dr as CronConversationRecallMode, ds as CronRecallMode, bZ as DEFAULT_RECALL_DISCLOSURE, aI as DaySummaryResult, am as DependencyPropagationConfig, dt as DreamingConfig, du as DreamingNarrativePromptStyle, dv as DreamsDeepSleepConfig, dw as DreamsLightSleepConfig, D as DreamsPhase, dx as DreamsPhaseStatus, dy as DreamsPhasesConfig, dz as DreamsRemConfig, a as DreamsRunResult, bj as DreamsStatusResult, dA as EngramTraceEvent, bc as EntityActivityEntry, E as EntityFile, al as EntityMention, bb as EntityRelationship, ao as EntitySchemaDefinition, ap as EntitySchemaSectionDefinition, an as EntityStructuredSection, b7 as EntityTimelineEntry, aq as ExtractedFact, dB as ExtractedProcedureStep, dC as ExtractedQuestion, dD as ExtractedReasoningTrace, dE as ExtractedReasoningTraceStep, dF as ExtractedRelationship, $ as ExtractionFailureClass, dG as ExtractionPassSource, a7 as ExtractionResult, F as FaithfulnessFrontmatter, ba as FileHygieneConfig, G as GatewayConfig, dH as GitHubLiveConnectorConfig, dI as GmailLiveConnectorConfig, dJ as GoogleDriveLiveConnectorConfig, dK as HeartbeatConfig, dL as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, a0 as ImportanceLevel, as as ImportanceScore, W as LifecycleState, L as LiveConnectorsConfig, dM as LlmTraceCallback, dN as LlmTraceEvent, av as MemoryActionEligibilityContext, ca as MemoryActionEligibilitySource, ai as MemoryActionEvent, dO as MemoryActionOutcome, dP as MemoryActionPolicyDecision, aw as MemoryActionPolicyResult, dQ as MemoryActionStatus, ah as MemoryActionType, y as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter, at as MemoryIntent, K as MemoryLifecycleEvent, ax as MemoryLifecycleEventType, ay as MemoryLifecycleStateSummary, b8 as MemoryLink, dR as MemoryLinkType, cc as MemoryObservation, dS as MemoryOsPresetName, J as MemoryProjectionCurrentState, cd as MemoryScope, w as MemoryStatus, N as MemorySubject, be as MemorySummary, aC as MetaState, dT as ModelApi, dU as ModelDefinitionConfig, dV as ModelProviderAuthMode, az as ModelProviderConfig, dW as NamespacePolicy, aA as NativeKnowledgeConfig, dX as NativeKnowledgeFolderRuleConfig, dY as NativeKnowledgeObsidianVaultConfig, dZ as NativeKnowledgeOpenClawWorkspaceConfig, d_ as NotionLiveConnectorConfig, P as PluginConfig, Y as PolicyClass, d$ as PrincipalFromSessionKeyMode, e0 as PrincipalRule, e1 as ProceduralConfig, ar as ProvenanceConfig, O as ProvenanceSource, aJ as QmdSearchExplain, Q as QmdSearchResult, e2 as QuestionEntry, cn as RECALL_DISCLOSURE_LEVELS, e3 as ReasoningEffort, o as RecallDisclosure, e4 as RecallPipelineConfig, R as RecallPlanMode, bf as RecallSectionConfig, b as RecallTierExplain, e5 as RecallTraceEvent, e6 as RelevanceFeedback, aE as RetrievalTier, e7 as SPECULATIVE_TTL_DAYS, e8 as ScopeProfileAutoPromoteConfig, q as ScopeProfileConfig, r as ScopeProfileLayerId, s as ScopeProfilePromotionTarget, e9 as ScopeProfileTeamProjectConfig, ea as ScopeTeamConfig, eb as ScoredEntity, u as SecretRef, ec as SemanticChunkingConfigShape, S as SessionObserverBandConfig, ed as SignalLevel, aF as SignalScanResult, ee as SlotBehaviorConfig, ef as SlotMismatchMode, p as SourceConnectorProvenance, au as SubjectGuardMode, cJ as SupportPassportConfig, aG as TopicScore, T as TranscriptEntry, eg as TriggerMode, U as TrustWeights, X as VerificationState, eh as confidenceTier, cA as isRecallDisclosure } from './types-BxAcOl5Q.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
3
|
import './bounded-jsonl-state.js';
|
|
4
4
|
import './types-CM86alG1.js';
|
|
@@ -7,3 +7,5 @@ export { ContradictionLocalizationConfig, ContradictionScanConfig } from './cont
|
|
|
7
7
|
export { GraphPathScoringConfig } from './graph-path-scoring-config.js';
|
|
8
8
|
export { ContinuityImprovementLoop, ContinuityIncidentCloseInput, ContinuityIncidentOpenInput, ContinuityIncidentRecord, ContinuityIncidentState, ContinuityLoopCadence, ContinuityLoopReviewInput, ContinuityLoopStatus, ContinuityLoopUpsertInput } from './types-continuity.js';
|
|
9
9
|
import './operator-doctor-types.js';
|
|
10
|
+
import './causal-trajectory.js';
|
|
11
|
+
import './objective-state.js';
|