@remnic/core 9.64.4 → 9.65.1
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 +12 -11
- package/dist/access-admin-ops-surface.js +36 -35
- package/dist/access-authorization-probe.d.ts +12 -11
- package/dist/access-authorization-probe.js +37 -36
- package/dist/access-boundary.d.ts +12 -11
- package/dist/access-boundary.js +36 -35
- package/dist/access-cli.js +91 -88
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +2 -1
- package/dist/access-extraction-force-flush.d.ts +12 -11
- package/dist/access-extraction-force-flush.js +36 -35
- package/dist/access-health-types.d.ts +2 -1
- package/dist/access-http-lcm-compaction.d.ts +12 -11
- package/dist/access-http-lifecycle-flush.d.ts +12 -11
- package/dist/access-http-offline-stream.d.ts +12 -11
- package/dist/access-http-query.d.ts +3 -2
- package/dist/access-http-query.js +38 -37
- package/dist/access-http.d.ts +13 -12
- package/dist/access-http.js +49 -48
- package/dist/access-identity-continuity-surface.d.ts +10 -9
- package/dist/access-identity-continuity-surface.js +36 -35
- package/dist/access-lcm-surface.d.ts +12 -11
- package/dist/access-lcm-surface.js +36 -35
- package/dist/access-mcp.d.ts +12 -11
- package/dist/access-mcp.js +42 -41
- package/dist/access-memory-search-fanout.d.ts +3 -2
- package/dist/{access-namespace-preflight-CYeI1R2_.d.ts → access-namespace-preflight-BKUnKsBv.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +4 -3
- package/dist/access-namespace-preflight.js +36 -35
- package/dist/access-observe-write-surface.d.ts +12 -11
- package/dist/access-observe-write-surface.js +36 -35
- package/dist/access-offline-manifest.d.ts +10 -9
- package/dist/access-operations-batch.js +38 -37
- package/dist/access-operations.d.ts +12 -11
- package/dist/access-operations.js +41 -40
- package/dist/access-recall-concurrency.d.ts +12 -11
- package/dist/access-recall-concurrency.js +36 -35
- package/dist/access-recall-response.d.ts +12 -11
- package/dist/access-recall-response.js +36 -35
- package/dist/access-recall-surface.d.ts +12 -11
- package/dist/access-recall-surface.js +36 -35
- package/dist/{access-service-BKtdXnyk.d.ts → access-service-B1Lbb-nQ.d.ts} +13 -13
- package/dist/access-service-helpers.d.ts +12 -11
- package/dist/access-service.d.ts +12 -11
- package/dist/access-service.js +36 -35
- package/dist/access-surface-catalog.d.ts +12 -11
- package/dist/access-surface-catalog.js +38 -37
- package/dist/access-surface-catalog.js.map +1 -1
- package/dist/access-wearables-meetings-surface.d.ts +4 -3
- package/dist/action-confidence.d.ts +2 -1
- package/dist/active-memory-bridge.d.ts +2 -1
- package/dist/active-recall.d.ts +2 -1
- package/dist/active-recall.js +4 -2
- package/dist/active-recall.js.map +1 -1
- package/dist/ambient-provenance.d.ts +2 -1
- package/dist/artifact-search.d.ts +2 -1
- package/dist/behavior-learner.d.ts +2 -1
- package/dist/behavior-signals.d.ts +2 -1
- package/dist/bootstrap.d.ts +10 -9
- package/dist/briefing-window.d.ts +3 -2
- package/dist/briefing.d.ts +3 -2
- package/dist/briefing.js +15 -14
- package/dist/buffer-surprise-report.d.ts +2 -1
- package/dist/buffer-turn-helpers.d.ts +2 -1
- package/dist/buffer.d.ts +3 -2
- package/dist/buffer.js +5 -5
- package/dist/bulk-import/index.d.ts +4 -3
- package/dist/calibration.d.ts +2 -1
- package/dist/capabilities.d.ts +2 -1
- package/dist/{catalog-CLAqQO2L.d.ts → catalog-DjVhJoRM.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +2 -1
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.d.ts +2 -1
- package/dist/causal-consolidation.js +18 -17
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.d.ts +2 -1
- package/dist/causal-trajectory-graph.js +2 -2
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-5HERQ5FX.js → chunk-256FBCVX.js} +5 -5
- package/dist/{chunk-GVRLED7R.js → chunk-2572MRP2.js} +2 -2
- package/dist/{chunk-TY35YQ6E.js → chunk-3MADV4YC.js} +2 -2
- package/dist/{chunk-XACYILRA.js → chunk-3PXVYJMC.js} +31 -31
- package/dist/{chunk-DC4FJY2G.js → chunk-3RHFGGI5.js} +4 -4
- package/dist/{chunk-LOETWOEB.js → chunk-3TMYV3LP.js} +2 -2
- package/dist/chunk-3WU7XOFN.js +102 -0
- package/dist/chunk-3WU7XOFN.js.map +1 -0
- package/dist/{chunk-XH4IQVTN.js → chunk-4W6INNXO.js} +2 -2
- package/dist/{chunk-SB6YBB2V.js → chunk-53ENM6F6.js} +2 -2
- package/dist/{chunk-7V3AZWWZ.js → chunk-5UYSCYR7.js} +9 -7
- package/dist/{chunk-7V3AZWWZ.js.map → chunk-5UYSCYR7.js.map} +1 -1
- package/dist/{chunk-Z6CJLYXT.js → chunk-63FHSH7E.js} +3 -3
- package/dist/{chunk-DG6MJD7W.js → chunk-6JJT5AKI.js} +2 -2
- package/dist/{chunk-7BVO64UC.js → chunk-6L27N6YI.js} +2 -2
- package/dist/chunk-7PHI6GUI.js +95 -0
- package/dist/chunk-7PHI6GUI.js.map +1 -0
- package/dist/{chunk-YXGU3MDQ.js → chunk-7PWWGYGO.js} +2 -2
- package/dist/{chunk-CKZHKFY3.js → chunk-7QFBLYFP.js} +3 -3
- package/dist/{chunk-RWLRKMZK.js → chunk-AGKIG3YA.js} +2 -2
- package/dist/{chunk-A2IBK3TG.js → chunk-ALCJRQ72.js} +2 -2
- package/dist/{chunk-44DSGZFF.js → chunk-BC4QD3FM.js} +2 -2
- package/dist/{chunk-YMOPYG3K.js → chunk-BIJAWZYW.js} +6 -6
- package/dist/{chunk-KRPE7ANR.js → chunk-CCTVAVTT.js} +2 -2
- package/dist/{chunk-VYEPACWY.js → chunk-CEH2AFXG.js} +7 -7
- package/dist/{chunk-XBRGJJK7.js → chunk-CEQF6L5K.js} +3 -3
- package/dist/{chunk-PVIXAMWM.js → chunk-CFRBTATE.js} +2 -2
- package/dist/{chunk-UIYYS2YI.js → chunk-CTQRPANJ.js} +2 -2
- package/dist/{chunk-XZUCNVGE.js → chunk-CUS6S7PN.js} +10 -10
- package/dist/{chunk-KWIGDKM2.js → chunk-D2YNNDML.js} +2 -2
- package/dist/{chunk-MJRVF7SF.js → chunk-DBXZZIDU.js} +87 -56
- package/dist/chunk-DBXZZIDU.js.map +1 -0
- package/dist/{chunk-2QI2JBLQ.js → chunk-DEFI2QBT.js} +16 -10
- package/dist/chunk-DEFI2QBT.js.map +1 -0
- package/dist/{chunk-JCSUNXYJ.js → chunk-ESCQ6LY7.js} +3 -3
- package/dist/{chunk-652S5A5D.js → chunk-EUYWQ7TS.js} +2 -2
- package/dist/{chunk-ML3U4KPR.js → chunk-GIC6BASP.js} +2 -2
- package/dist/{chunk-ZSYE2QVJ.js → chunk-GXWDWOWP.js} +2 -2
- package/dist/{chunk-55SJFHVD.js → chunk-HJQZQUPC.js} +11 -11
- package/dist/{chunk-6LTCUN3T.js → chunk-HQSBYI5X.js} +2 -2
- package/dist/{chunk-H5CGAD7L.js → chunk-HQSPXTQO.js} +1 -1
- package/dist/{chunk-EJDLQRUO.js → chunk-HUNSEO5U.js} +2 -2
- package/dist/{chunk-ON2P3SHG.js → chunk-IAY7YBXS.js} +2 -2
- package/dist/{chunk-MB6GLPRY.js → chunk-IVKIODHO.js} +4 -4
- package/dist/{chunk-CUIAHZPZ.js → chunk-IXRC7EQG.js} +2 -2
- package/dist/{chunk-VRYEXPRX.js → chunk-JFJ3MHGV.js} +1 -1
- package/dist/{chunk-VRYEXPRX.js.map → chunk-JFJ3MHGV.js.map} +1 -1
- package/dist/{chunk-LZKCMK3U.js → chunk-JTSVMJHV.js} +2 -2
- package/dist/{chunk-URS5GSM7.js → chunk-JXN77SGO.js} +1 -1
- package/dist/chunk-JXN77SGO.js.map +1 -0
- package/dist/{chunk-WBM5NR4E.js → chunk-KPBLJCCV.js} +2 -2
- package/dist/{chunk-VLES5S4K.js → chunk-LWVO2QZV.js} +36 -36
- package/dist/{chunk-NO7B6DRB.js → chunk-LYIZXQYY.js} +2 -2
- package/dist/{chunk-7RAJ3GXO.js → chunk-M6L7HI7R.js} +2 -156
- package/dist/chunk-M6L7HI7R.js.map +1 -0
- package/dist/{chunk-VUP47UJI.js → chunk-MIBKEW7A.js} +3 -3
- package/dist/{chunk-OQIRBGUU.js → chunk-N37X5RU7.js} +2 -2
- package/dist/{chunk-C6AKYOFO.js → chunk-N6TRHP72.js} +2 -2
- package/dist/{chunk-VANZKHTN.js → chunk-NNBZS3DY.js} +2 -2
- package/dist/{chunk-2PSX5BJU.js → chunk-NZPFCP5A.js} +2 -2
- package/dist/{chunk-LTBKKSCX.js → chunk-OLBZ2WGG.js} +2 -2
- package/dist/{chunk-PD66CVSD.js → chunk-OUKBMQ2O.js} +2 -2
- package/dist/{chunk-GPFZFCRN.js → chunk-PP7R754B.js} +1 -1
- package/dist/{chunk-TKI2WOL5.js → chunk-R3AAOKR2.js} +2 -2
- package/dist/{chunk-RNORDDD6.js → chunk-S2VBSTTA.js} +2 -2
- package/dist/{chunk-3A46U7XG.js → chunk-SYJ6EKKE.js} +2 -2
- package/dist/{chunk-YFQTDE7N.js → chunk-VJ6ECBIP.js} +2 -2
- package/dist/{chunk-IFK3PVM7.js → chunk-VPGRXEAB.js} +2 -2
- package/dist/{chunk-246HFJVG.js → chunk-VZVP2W4O.js} +2 -2
- package/dist/{chunk-SHQFYZTD.js → chunk-W6TSGWYS.js} +2 -2
- package/dist/{chunk-DA2O3F5V.js → chunk-WTOE7CW4.js} +13 -13
- package/dist/{chunk-IJXECCUV.js → chunk-X5SDZMO7.js} +2 -2
- package/dist/chunk-XAB6STPO.js +160 -0
- package/dist/chunk-XAB6STPO.js.map +1 -0
- package/dist/{chunk-DHKV6E4A.js → chunk-Y23B2QXP.js} +2 -2
- package/dist/{chunk-PE76XIDM.js → chunk-YEQEGSJA.js} +3 -3
- package/dist/{chunk-UMDZXW5J.js → chunk-YQ3CBLL4.js} +5 -85
- package/dist/chunk-YQ3CBLL4.js.map +1 -0
- package/dist/{chunk-VYISFWVX.js → chunk-YQNNHLCG.js} +2 -2
- package/dist/{chunk-3LOQN3TO.js → chunk-Z54TXZ2F.js} +3 -3
- package/dist/{cli-CLvBewKf.d.ts → cli-Pulnz-qm.d.ts} +5 -5
- package/dist/cli.d.ts +14 -13
- package/dist/cli.js +70 -67
- package/dist/coding/pre-action-gate.d.ts +2 -1
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.d.ts +3 -2
- package/dist/compounding/engine.js +15 -14
- package/dist/compounding/preference-consolidator.d.ts +2 -1
- package/dist/compression-optimizer.d.ts +2 -1
- package/dist/config.d.ts +2 -1
- package/dist/config.js +4 -2
- package/dist/connectors/codex-materialize-runner.d.ts +2 -1
- package/dist/connectors/codex-materialize-runner.js +15 -14
- package/dist/connectors/codex-materialize.d.ts +2 -1
- package/dist/connectors/index.d.ts +2 -1
- package/dist/connectors/index.js +15 -14
- package/dist/consolidation-provenance-check.d.ts +3 -2
- package/dist/consolidation-undo.d.ts +3 -2
- package/dist/contradiction/index.d.ts +3 -2
- package/dist/converge-config.d.ts +2 -1
- package/dist/convergence-refresh.d.ts +3 -2
- package/dist/convergence-refresh.js +17 -16
- package/dist/conversation-index/backend.d.ts +2 -1
- package/dist/conversation-index/chunker.d.ts +2 -1
- package/dist/conversation-index/faiss-adapter.d.ts +2 -1
- package/dist/conversation-index/indexer.d.ts +2 -1
- package/dist/conversation-index/search.d.ts +2 -1
- package/dist/corpus-watermark.d.ts +2 -1
- package/dist/corpus-watermark.js +17 -16
- package/dist/cross-lingual-recall.d.ts +70 -0
- package/dist/cross-lingual-recall.js +14 -0
- package/dist/day-summary.d.ts +2 -1
- package/dist/delinearize.d.ts +2 -1
- package/dist/dependency-propagation-config.d.ts +2 -1
- package/dist/{dependency-propagation-delivery-DMqIw9Zh.d.ts → dependency-propagation-delivery-Co17gxYb.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +2 -1
- package/dist/direct-answer.d.ts +2 -1
- package/dist/embedding-fallback.d.ts +2 -1
- package/dist/enrichment/index.d.ts +2 -1
- package/dist/entity-origin-fields.d.ts +2 -1
- package/dist/entity-retrieval.d.ts +3 -2
- package/dist/entity-retrieval.js +15 -14
- package/dist/entity-schema.d.ts +2 -1
- package/dist/episodic-context.d.ts +2 -1
- package/dist/explicit-capture.d.ts +10 -9
- package/dist/external-wiki-access.d.ts +12 -11
- package/dist/external-wiki-access.js +37 -36
- package/dist/external-wiki-collection-registration.d.ts +2 -1
- package/dist/external-wiki-collection.d.ts +2 -1
- package/dist/external-wiki-mcp-tools.d.ts +12 -11
- package/dist/extraction-error-classification.d.ts +2 -1
- package/dist/extraction-faithfulness.d.ts +2 -1
- package/dist/extraction-judge-telemetry.d.ts +2 -1
- package/dist/extraction-judge-training.d.ts +2 -1
- package/dist/extraction-judge.d.ts +2 -1
- package/dist/extraction-liveness.d.ts +2 -1
- package/dist/extraction-normalization.d.ts +2 -1
- package/dist/extraction-prompt.d.ts +2 -1
- package/dist/extraction-source-grounding-rules.d.ts +2 -1
- package/dist/extraction-source-grounding.d.ts +2 -1
- package/dist/extraction.d.ts +2 -1
- package/dist/extraction.js +20 -19
- package/dist/fallback-llm.d.ts +2 -1
- package/dist/graph-dashboard-diff.d.ts +2 -1
- package/dist/graph-dashboard-key.d.ts +2 -1
- package/dist/graph-dashboard-parser.d.ts +2 -1
- package/dist/{graph-edge-decay-A4SDFMMS.js → graph-edge-decay-FXGELBFA.js} +4 -4
- package/dist/graph-edge-decay-FXGELBFA.js.map +1 -0
- package/dist/graph-edge-reinforcement.d.ts +2 -1
- package/dist/graph-path-reconstruction.d.ts +2 -1
- package/dist/graph-path-scoring.d.ts +2 -1
- package/dist/graph-snapshot.d.ts +2 -1
- package/dist/graph-snapshot.js +3 -3
- package/dist/graph.d.ts +2 -1
- package/dist/graph.js +3 -3
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/importance.d.ts +2 -1
- package/dist/importers/index.d.ts +2 -1
- package/dist/in-flight-reads.d.ts +2 -1
- package/dist/index.d.ts +24 -23
- package/dist/index.js +130 -126
- package/dist/intent.d.ts +2 -1
- package/dist/lcm/engine.d.ts +2 -1
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.d.ts +2 -1
- package/dist/lcm/index.js +5 -5
- package/dist/lcm/tools.d.ts +2 -1
- package/dist/lifecycle.d.ts +2 -1
- package/dist/live-connectors-runner.d.ts +2 -1
- package/dist/local-llm.d.ts +2 -1
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +2 -1
- package/dist/location/index.d.ts +295 -0
- package/dist/location/index.js +798 -0
- package/dist/location/index.js.map +1 -0
- package/dist/maintenance/memory-governance.d.ts +2 -1
- package/dist/maintenance/memory-governance.js +15 -14
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +15 -14
- package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-projection.js +16 -15
- package/dist/{maintenance-DITiehFX.d.ts → maintenance-DiSLtVN7.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +12 -11
- package/dist/memory-action-policy.d.ts +2 -1
- package/dist/memory-cache.d.ts +2 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
- package/dist/memory-projection-store.d.ts +2 -1
- package/dist/memory-provenance.d.ts +2 -1
- package/dist/memory-snapshot.d.ts +2 -1
- package/dist/memory-worth-outcomes.d.ts +3 -2
- package/dist/models-json.d.ts +2 -1
- package/dist/namespaces/migrate.d.ts +4 -3
- package/dist/namespaces/migrate.js +16 -15
- package/dist/namespaces/principal.d.ts +2 -1
- package/dist/namespaces/search.d.ts +2 -1
- package/dist/namespaces/search.js +10 -10
- package/dist/namespaces/storage.d.ts +4 -3
- package/dist/namespaces/storage.js +15 -14
- package/dist/native-knowledge.d.ts +2 -1
- package/dist/offline-sync-impression-drain.d.ts +2 -1
- package/dist/operator-doctor-corpus.d.ts +2 -1
- package/dist/operator-doctor-corpus.js +18 -17
- package/dist/operator-doctor-replica.d.ts +2 -1
- package/dist/operator-toolkit.d.ts +4 -3
- package/dist/operator-toolkit.js +29 -26
- package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
- package/dist/orchestration/maintenance.d.ts +5 -4
- package/dist/orchestration/maintenance.js +23 -21
- package/dist/{orchestrator-6fPa2l9x.d.ts → orchestrator-DzCaxNS4.d.ts} +8 -8
- package/dist/orchestrator.d.ts +10 -9
- package/dist/orchestrator.js +92 -89
- package/dist/patterns-cli.d.ts +2 -1
- package/dist/{pipeline-DHpYtfM3.d.ts → pipeline-HJ8DKbFl.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +2 -1
- package/dist/proactive-contention.d.ts +2 -1
- package/dist/provenance.d.ts +2 -1
- package/dist/{public-http-BT36aBb-.d.ts → public-http-DwXauTX3.d.ts} +1 -1
- package/dist/{qmd-BaX31tM0.d.ts → qmd-BzxluoLt.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +3 -2
- package/dist/qmd-recall-cache.d.ts +2 -1
- package/dist/qmd.d.ts +3 -2
- package/dist/qmd.js +5 -5
- package/dist/recall-concurrency-config.d.ts +2 -1
- package/dist/recall-disclosure-escalation.d.ts +2 -1
- package/dist/recall-explain-renderer.d.ts +2 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +2 -1
- package/dist/recall-planner-llm.d.ts +2 -1
- package/dist/recall-state.d.ts +2 -1
- package/dist/recall-tag-filter.d.ts +2 -1
- package/dist/recall-timings.d.ts +2 -1
- package/dist/recall-xray-cli.d.ts +2 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +2 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +2 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +2 -1
- package/dist/reconcile/manifest.d.ts +2 -1
- package/dist/reconcile/plan.d.ts +2 -1
- package/dist/replay/normalizers/chatgpt.d.ts +2 -1
- package/dist/replay/normalizers/claude.d.ts +2 -1
- package/dist/replay/normalizers/openclaw.d.ts +2 -1
- package/dist/replay/normalizers/shared.d.ts +2 -1
- package/dist/replay/runner.d.ts +2 -1
- package/dist/replay/types.d.ts +2 -1
- package/dist/replica-divergence.d.ts +2 -1
- package/dist/replica-peers-config.d.ts +2 -1
- package/dist/resolve-auth-token.d.ts +2 -1
- package/dist/resume-bundles.js +5 -3
- package/dist/retrieval-agents.d.ts +3 -2
- package/dist/retrieval-tiers.d.ts +2 -1
- package/dist/routing/engine.d.ts +2 -1
- package/dist/routing/store.d.ts +2 -1
- package/dist/salvage-envelope.d.ts +2 -1
- package/dist/schemas.d.ts +30 -30
- package/dist/{scope-profiles-1hYWJ9bM.d.ts → scope-profiles-CEMZz0t5.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +2 -1
- package/dist/search/factory.d.ts +2 -1
- package/dist/search/factory.js +9 -9
- package/dist/search/index.d.ts +2 -1
- package/dist/search/index.js +13 -13
- package/dist/search/lancedb-backend.d.ts +2 -1
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.d.ts +2 -1
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/noop-backend.d.ts +2 -1
- package/dist/search/orama-backend.d.ts +2 -1
- package/dist/search/orama-backend.js +2 -2
- package/dist/search/port.d.ts +3 -2
- package/dist/search/port.js +1 -1
- package/dist/search/remote-backend.d.ts +2 -1
- package/dist/search/remote-backend.js +2 -2
- package/dist/{semantic-consolidation-Chmddvcg.d.ts → semantic-consolidation-D9dYj6vu.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +3 -2
- package/dist/semantic-consolidation.js +16 -15
- package/dist/semantic-rule-promotion.js +15 -14
- package/dist/semantic-rule-verifier.d.ts +2 -1
- package/dist/semantic-rule-verifier.js +15 -14
- package/dist/{service-DMs_dCCg.d.ts → service-_qgST_0y.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +2 -1
- package/dist/session-observer-state.d.ts +2 -1
- package/dist/shared-context/manager.d.ts +2 -1
- package/dist/signal.d.ts +2 -1
- package/dist/source-agent-qualifier.d.ts +2 -1
- package/dist/source-agent-qualifier.js +17 -16
- package/dist/{storage-CzorrpcN.d.ts → storage-B9lbNTYE.d.ts} +1 -1
- package/dist/storage.d.ts +3 -2
- package/dist/storage.js +14 -13
- package/dist/summarizer.d.ts +2 -1
- package/dist/summarizer.js +3 -3
- package/dist/summary-snapshot.d.ts +2 -1
- package/dist/support-passport/index.d.ts +15 -14
- package/dist/support-passport/index.js +39 -38
- package/dist/temporal-supersession.d.ts +3 -2
- package/dist/temporal-timeline-recall.d.ts +2 -1
- package/dist/temporal-validity.d.ts +2 -1
- package/dist/threading.d.ts +2 -1
- package/dist/tier-migration.d.ts +3 -2
- package/dist/tier-routing.d.ts +2 -1
- package/dist/topics.d.ts +2 -1
- package/dist/transcript.d.ts +2 -1
- package/dist/transfer/types.d.ts +12 -12
- package/dist/trust-score-stage.d.ts +2 -1
- package/dist/trust-score.d.ts +2 -1
- package/dist/{types-BP5MC8UU.d.ts → types-BrEzuxPA.d.ts} +3 -23
- package/dist/types-CM86alG1.d.ts +89 -0
- package/dist/types.d.ts +2 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +2 -1
- package/dist/verified-recall.js +15 -14
- package/dist/who-knows-cli.d.ts +12 -11
- package/dist/who-knows-cli.js +16 -15
- package/dist/who-knows.d.ts +12 -11
- package/dist/who-knows.js +15 -14
- package/dist/write-envelope.d.ts +2 -1
- package/package.json +12 -2
- package/src/cross-lingual-recall.test.ts +47 -0
- package/src/cross-lingual-recall.ts +186 -0
- package/src/location/adapter-isolation.test.ts +44 -0
- package/src/location/index.ts +16 -0
- package/src/orchestration/recall-internal-deps.ts +2 -0
- package/src/orchestration/recall-internal.ts +35 -33
- package/src/orchestration/recall-search-pipeline.ts +16 -0
- package/src/search/port.ts +2 -1
- package/src/storage.ts +5 -1
- package/src/types.ts +2 -0
- package/dist/chunk-2QI2JBLQ.js.map +0 -1
- package/dist/chunk-7RAJ3GXO.js.map +0 -1
- package/dist/chunk-MJRVF7SF.js.map +0 -1
- package/dist/chunk-UMDZXW5J.js.map +0 -1
- package/dist/chunk-URS5GSM7.js.map +0 -1
- /package/dist/{chunk-5HERQ5FX.js.map → chunk-256FBCVX.js.map} +0 -0
- /package/dist/{chunk-GVRLED7R.js.map → chunk-2572MRP2.js.map} +0 -0
- /package/dist/{chunk-TY35YQ6E.js.map → chunk-3MADV4YC.js.map} +0 -0
- /package/dist/{chunk-XACYILRA.js.map → chunk-3PXVYJMC.js.map} +0 -0
- /package/dist/{chunk-DC4FJY2G.js.map → chunk-3RHFGGI5.js.map} +0 -0
- /package/dist/{chunk-LOETWOEB.js.map → chunk-3TMYV3LP.js.map} +0 -0
- /package/dist/{chunk-XH4IQVTN.js.map → chunk-4W6INNXO.js.map} +0 -0
- /package/dist/{chunk-SB6YBB2V.js.map → chunk-53ENM6F6.js.map} +0 -0
- /package/dist/{chunk-Z6CJLYXT.js.map → chunk-63FHSH7E.js.map} +0 -0
- /package/dist/{chunk-DG6MJD7W.js.map → chunk-6JJT5AKI.js.map} +0 -0
- /package/dist/{chunk-7BVO64UC.js.map → chunk-6L27N6YI.js.map} +0 -0
- /package/dist/{chunk-YXGU3MDQ.js.map → chunk-7PWWGYGO.js.map} +0 -0
- /package/dist/{chunk-CKZHKFY3.js.map → chunk-7QFBLYFP.js.map} +0 -0
- /package/dist/{chunk-RWLRKMZK.js.map → chunk-AGKIG3YA.js.map} +0 -0
- /package/dist/{chunk-A2IBK3TG.js.map → chunk-ALCJRQ72.js.map} +0 -0
- /package/dist/{chunk-44DSGZFF.js.map → chunk-BC4QD3FM.js.map} +0 -0
- /package/dist/{chunk-YMOPYG3K.js.map → chunk-BIJAWZYW.js.map} +0 -0
- /package/dist/{chunk-KRPE7ANR.js.map → chunk-CCTVAVTT.js.map} +0 -0
- /package/dist/{chunk-VYEPACWY.js.map → chunk-CEH2AFXG.js.map} +0 -0
- /package/dist/{chunk-XBRGJJK7.js.map → chunk-CEQF6L5K.js.map} +0 -0
- /package/dist/{chunk-PVIXAMWM.js.map → chunk-CFRBTATE.js.map} +0 -0
- /package/dist/{chunk-UIYYS2YI.js.map → chunk-CTQRPANJ.js.map} +0 -0
- /package/dist/{chunk-XZUCNVGE.js.map → chunk-CUS6S7PN.js.map} +0 -0
- /package/dist/{chunk-KWIGDKM2.js.map → chunk-D2YNNDML.js.map} +0 -0
- /package/dist/{chunk-JCSUNXYJ.js.map → chunk-ESCQ6LY7.js.map} +0 -0
- /package/dist/{chunk-652S5A5D.js.map → chunk-EUYWQ7TS.js.map} +0 -0
- /package/dist/{chunk-ML3U4KPR.js.map → chunk-GIC6BASP.js.map} +0 -0
- /package/dist/{chunk-ZSYE2QVJ.js.map → chunk-GXWDWOWP.js.map} +0 -0
- /package/dist/{chunk-55SJFHVD.js.map → chunk-HJQZQUPC.js.map} +0 -0
- /package/dist/{chunk-6LTCUN3T.js.map → chunk-HQSBYI5X.js.map} +0 -0
- /package/dist/{chunk-H5CGAD7L.js.map → chunk-HQSPXTQO.js.map} +0 -0
- /package/dist/{chunk-EJDLQRUO.js.map → chunk-HUNSEO5U.js.map} +0 -0
- /package/dist/{chunk-ON2P3SHG.js.map → chunk-IAY7YBXS.js.map} +0 -0
- /package/dist/{chunk-MB6GLPRY.js.map → chunk-IVKIODHO.js.map} +0 -0
- /package/dist/{chunk-CUIAHZPZ.js.map → chunk-IXRC7EQG.js.map} +0 -0
- /package/dist/{chunk-LZKCMK3U.js.map → chunk-JTSVMJHV.js.map} +0 -0
- /package/dist/{chunk-WBM5NR4E.js.map → chunk-KPBLJCCV.js.map} +0 -0
- /package/dist/{chunk-VLES5S4K.js.map → chunk-LWVO2QZV.js.map} +0 -0
- /package/dist/{chunk-NO7B6DRB.js.map → chunk-LYIZXQYY.js.map} +0 -0
- /package/dist/{chunk-VUP47UJI.js.map → chunk-MIBKEW7A.js.map} +0 -0
- /package/dist/{chunk-OQIRBGUU.js.map → chunk-N37X5RU7.js.map} +0 -0
- /package/dist/{chunk-C6AKYOFO.js.map → chunk-N6TRHP72.js.map} +0 -0
- /package/dist/{chunk-VANZKHTN.js.map → chunk-NNBZS3DY.js.map} +0 -0
- /package/dist/{chunk-2PSX5BJU.js.map → chunk-NZPFCP5A.js.map} +0 -0
- /package/dist/{chunk-LTBKKSCX.js.map → chunk-OLBZ2WGG.js.map} +0 -0
- /package/dist/{chunk-PD66CVSD.js.map → chunk-OUKBMQ2O.js.map} +0 -0
- /package/dist/{chunk-GPFZFCRN.js.map → chunk-PP7R754B.js.map} +0 -0
- /package/dist/{chunk-TKI2WOL5.js.map → chunk-R3AAOKR2.js.map} +0 -0
- /package/dist/{chunk-RNORDDD6.js.map → chunk-S2VBSTTA.js.map} +0 -0
- /package/dist/{chunk-3A46U7XG.js.map → chunk-SYJ6EKKE.js.map} +0 -0
- /package/dist/{chunk-YFQTDE7N.js.map → chunk-VJ6ECBIP.js.map} +0 -0
- /package/dist/{chunk-IFK3PVM7.js.map → chunk-VPGRXEAB.js.map} +0 -0
- /package/dist/{chunk-246HFJVG.js.map → chunk-VZVP2W4O.js.map} +0 -0
- /package/dist/{chunk-SHQFYZTD.js.map → chunk-W6TSGWYS.js.map} +0 -0
- /package/dist/{chunk-DA2O3F5V.js.map → chunk-WTOE7CW4.js.map} +0 -0
- /package/dist/{chunk-IJXECCUV.js.map → chunk-X5SDZMO7.js.map} +0 -0
- /package/dist/{chunk-DHKV6E4A.js.map → chunk-Y23B2QXP.js.map} +0 -0
- /package/dist/{chunk-PE76XIDM.js.map → chunk-YEQEGSJA.js.map} +0 -0
- /package/dist/{chunk-VYISFWVX.js.map → chunk-YQNNHLCG.js.map} +0 -0
- /package/dist/{chunk-3LOQN3TO.js.map → chunk-Z54TXZ2F.js.map} +0 -0
- /package/dist/{graph-edge-decay-A4SDFMMS.js.map → cross-lingual-recall.js.map} +0 -0
package/dist/lcm/index.js
CHANGED
|
@@ -5,7 +5,11 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
LcmEngine,
|
|
7
7
|
extractLcmConfig
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-256FBCVX.js";
|
|
9
|
+
import {
|
|
10
|
+
ensureLcmStateDir,
|
|
11
|
+
openLcmDatabase
|
|
12
|
+
} from "../chunk-DDA47TES.js";
|
|
9
13
|
import {
|
|
10
14
|
LcmSummarizer
|
|
11
15
|
} from "../chunk-ZPUIRTIZ.js";
|
|
@@ -21,10 +25,6 @@ import {
|
|
|
21
25
|
assembleCompressedHistory,
|
|
22
26
|
assembleCompressedHistoryWithTrace
|
|
23
27
|
} from "../chunk-UXPUUL3G.js";
|
|
24
|
-
import {
|
|
25
|
-
ensureLcmStateDir,
|
|
26
|
-
openLcmDatabase
|
|
27
|
-
} from "../chunk-DDA47TES.js";
|
|
28
28
|
import "../chunk-4RA3C3EV.js";
|
|
29
29
|
import "../chunk-AQEJKOKI.js";
|
|
30
30
|
import {
|
package/dist/lcm/tools.d.ts
CHANGED
|
@@ -7,8 +7,9 @@ import './summarizer.js';
|
|
|
7
7
|
import './dag.js';
|
|
8
8
|
import './recall.js';
|
|
9
9
|
import './queue.js';
|
|
10
|
-
import '../types-
|
|
10
|
+
import '../types-BrEzuxPA.js';
|
|
11
11
|
import '../bounded-jsonl-state.js';
|
|
12
|
+
import '../types-CM86alG1.js';
|
|
12
13
|
import '../operator-doctor-types.js';
|
|
13
14
|
import '../external-wiki-config.js';
|
|
14
15
|
import '../contradiction-config.js';
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { V as LifecycleState, x as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter } from './types-
|
|
1
|
+
import { V as LifecycleState, x as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter } from './types-BrEzuxPA.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
3
|
import './bounded-jsonl-state.js';
|
|
4
|
+
import './types-CM86alG1.js';
|
|
4
5
|
import './operator-doctor-types.js';
|
|
5
6
|
import './external-wiki-config.js';
|
|
6
7
|
import './contradiction-config.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { L as LiveConnector, C as ConnectorConfig, a as ConnectorDocument } from './framework-CNDn2164.js';
|
|
2
|
-
import { L as LiveConnectorsConfig } from './types-
|
|
2
|
+
import { L as LiveConnectorsConfig } from './types-BrEzuxPA.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
import './bounded-jsonl-state.js';
|
|
5
|
+
import './types-CM86alG1.js';
|
|
5
6
|
import './operator-doctor-types.js';
|
|
6
7
|
import './external-wiki-config.js';
|
|
7
8
|
import './contradiction-config.js';
|
package/dist/local-llm.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { P as PluginConfig } from './types-
|
|
1
|
+
import { P as PluginConfig } from './types-BrEzuxPA.js';
|
|
2
2
|
import { ModelRegistry } from './model-registry.js';
|
|
3
3
|
import './message-parts/index.js';
|
|
4
4
|
import './bounded-jsonl-state.js';
|
|
5
|
+
import './types-CM86alG1.js';
|
|
5
6
|
import './operator-doctor-types.js';
|
|
6
7
|
import './external-wiki-config.js';
|
|
7
8
|
import './contradiction-config.js';
|
package/dist/local-llm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LocalLlmClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-JUXOTY6J.js";
|
|
3
|
+
} from "./chunk-IVKIODHO.js";
|
|
5
4
|
import "./chunk-WKDFJXW5.js";
|
|
5
|
+
import "./chunk-JUXOTY6J.js";
|
|
6
6
|
import "./chunk-TOTT6S2V.js";
|
|
7
7
|
import "./chunk-JUOZ62Y7.js";
|
|
8
8
|
import "./chunk-O75CRYGF.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { P as PluginConfig } from './types-
|
|
1
|
+
import { P as PluginConfig } from './types-BrEzuxPA.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
3
|
import './bounded-jsonl-state.js';
|
|
4
|
+
import './types-CM86alG1.js';
|
|
4
5
|
import './operator-doctor-types.js';
|
|
5
6
|
import './external-wiki-config.js';
|
|
6
7
|
import './contradiction-config.js';
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { L as LocationProvider, a as LocationConfig, b as LocationPlace, c as LocationObservation, d as LocationSegment } from '../types-CM86alG1.js';
|
|
2
|
+
export { e as LocationObservationPage, f as LocationProviderCheck, g as LocationSourceConfig } from '../types-CM86alG1.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Location provider registry (issue #2044).
|
|
6
|
+
*
|
|
7
|
+
* In-memory only: host adapters register provider implementations at startup.
|
|
8
|
+
* Core never statically imports an optional provider package — the registry
|
|
9
|
+
* holds whatever the host wired in, and a configured source whose provider is
|
|
10
|
+
* not registered is skipped (not an error), so partial installs keep working.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare function registerLocationProvider(provider: LocationProvider): void;
|
|
14
|
+
declare function getLocationProvider(id: string): LocationProvider | undefined;
|
|
15
|
+
declare function listLocationProviders(): string[];
|
|
16
|
+
/** Test-only: reset the registry between cases. */
|
|
17
|
+
declare function clearLocationProviders(): void;
|
|
18
|
+
|
|
19
|
+
/** The inert default: disabled, UTC days, one day per run, no sources, no coordinates. */
|
|
20
|
+
declare function defaultLocationConfig(): LocationConfig;
|
|
21
|
+
/**
|
|
22
|
+
* Parse the unified `location.*` block. `enabled` gates everything and
|
|
23
|
+
* requires at least one source; a source's own `enabled` gates that source
|
|
24
|
+
* only. `retainCoordinates` defaults to `false` — coordinates are privacy
|
|
25
|
+
* data and are dropped everywhere unless explicitly retained.
|
|
26
|
+
*/
|
|
27
|
+
declare function parseLocationConfig(raw: unknown): LocationConfig;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Location interval math (issue #2044).
|
|
31
|
+
*
|
|
32
|
+
* Pure, deterministic helpers over UTC ISO-8601 instants: half-open
|
|
33
|
+
* [start, end) day windows (reusing the DST-correct activity day-window), IANA
|
|
34
|
+
* local-day bucketing, overlap, observation→segment dwell, and dominant-place
|
|
35
|
+
* selection with stable tie-breaking. No IO, no clocks, no randomness.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
declare function isValidLocationDate(date: string): boolean;
|
|
39
|
+
/** Half-open [start, end) UTC ISO bounds of a local day. */
|
|
40
|
+
declare function locationDayWindow(date: string, timezone: string): {
|
|
41
|
+
startUtc: string;
|
|
42
|
+
endUtc: string;
|
|
43
|
+
};
|
|
44
|
+
/** The IANA local calendar day (YYYY-MM-DD) an instant falls in. */
|
|
45
|
+
declare function localDayKey(instantUtc: string, timezone: string): string;
|
|
46
|
+
/** Bucket observations into their IANA local days, sorted within each day. */
|
|
47
|
+
declare function bucketObservationsByDay(observations: readonly LocationObservation[], timezone: string): Map<string, LocationObservation[]>;
|
|
48
|
+
/** Overlap in ms of two half-open intervals; 0 when disjoint. */
|
|
49
|
+
declare function intervalOverlapMs(a: {
|
|
50
|
+
startUtc: string;
|
|
51
|
+
endUtc: string;
|
|
52
|
+
}, b: {
|
|
53
|
+
startUtc: string;
|
|
54
|
+
endUtc: string;
|
|
55
|
+
}): number;
|
|
56
|
+
/**
|
|
57
|
+
* Derive place-visit segments from a day's observations: each observation
|
|
58
|
+
* covers [its instant, the next observation's instant ∩ window end). The last
|
|
59
|
+
* observation is capped by the window end, so dwell never crosses the day
|
|
60
|
+
* boundary. Out-of-window observations are a provider contract violation and
|
|
61
|
+
* are rejected loudly rather than silently reshaping the day. Coordinates are
|
|
62
|
+
* stripped unless `retainCoordinates` is set.
|
|
63
|
+
*/
|
|
64
|
+
declare function observationSegments(observations: readonly LocationObservation[], window: {
|
|
65
|
+
startUtc: string;
|
|
66
|
+
endUtc: string;
|
|
67
|
+
}, options: {
|
|
68
|
+
retainCoordinates: boolean;
|
|
69
|
+
}): LocationSegment[];
|
|
70
|
+
/** Total time a place was occupied (union of its segment intervals, ms). */
|
|
71
|
+
interface PlaceDuration {
|
|
72
|
+
place: LocationPlace;
|
|
73
|
+
totalMs: number;
|
|
74
|
+
/** Earliest segment start contributing to this place's total. */
|
|
75
|
+
firstStartUtc: string;
|
|
76
|
+
}
|
|
77
|
+
/** Per-place totals across every segment given (multi-source safe). */
|
|
78
|
+
declare function placeDurations(segments: readonly LocationSegment[]): PlaceDuration[];
|
|
79
|
+
interface DominantPlaceResult {
|
|
80
|
+
place: LocationPlace;
|
|
81
|
+
totalMs: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* The place with the longest total occupancy. Ties are stable and
|
|
85
|
+
* deterministic: earlier first start wins, then the lexicographically smaller
|
|
86
|
+
* place id — never insertion order.
|
|
87
|
+
*/
|
|
88
|
+
declare function dominantPlace(segments: readonly LocationSegment[]): DominantPlaceResult | null;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Location day-file + sync-state store (issue #2044).
|
|
92
|
+
*
|
|
93
|
+
* Day documents live at `<memoryDir>/locations/<YYYY-MM-DD>.md` — OUTSIDE the
|
|
94
|
+
* memory scan roots (facts/, entities/, …) so raw location history never
|
|
95
|
+
* surfaces as a memory in recall or governance passes, and INSIDE the QMD
|
|
96
|
+
* collection root so the markdown stays full-text searchable once an index
|
|
97
|
+
* update runs. Per-source sync state lives at
|
|
98
|
+
* `<memoryDir>/state/locations/sync.json` and is written only after the day
|
|
99
|
+
* document is durable (see pipeline.ts).
|
|
100
|
+
*
|
|
101
|
+
* Both writes are atomic (temp file + rename) and containment-checked: a
|
|
102
|
+
* symlinked `locations/` root or day file is rejected even when it resolves
|
|
103
|
+
* inside the memory dir (AGENTS.md pattern #3), and a path that escapes the
|
|
104
|
+
* memory dir is refused outright.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
declare const LOCATIONS_DIR_NAME = "locations";
|
|
108
|
+
declare const LOCATION_DAY_KIND = "location-day";
|
|
109
|
+
declare const LOCATION_DAY_FORMAT_VERSION = 1;
|
|
110
|
+
declare function locationDayFilePath(memoryDir: string, date: string): string;
|
|
111
|
+
declare function locationSyncStateFilePath(memoryDir: string): string;
|
|
112
|
+
/** A source's derived day payload, kept in sync state for multi-source merges. */
|
|
113
|
+
interface LocationSourceDayPayload {
|
|
114
|
+
observationCount: number;
|
|
115
|
+
segments: LocationSegment[];
|
|
116
|
+
providerDisplayName?: string;
|
|
117
|
+
}
|
|
118
|
+
interface LocationSourceSyncState {
|
|
119
|
+
lastSyncedAtUtc?: string;
|
|
120
|
+
days?: Record<string, LocationSourceDayPayload>;
|
|
121
|
+
}
|
|
122
|
+
interface LocationSyncStateFile {
|
|
123
|
+
version: 1;
|
|
124
|
+
sources: Record<string, LocationSourceSyncState>;
|
|
125
|
+
}
|
|
126
|
+
declare function emptyLocationSyncState(): LocationSyncStateFile;
|
|
127
|
+
declare function loadLocationSyncState(memoryDir: string): Promise<LocationSyncStateFile>;
|
|
128
|
+
declare function saveLocationSyncState(memoryDir: string, state: LocationSyncStateFile): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Record one source's completed day sync. Runs the whole read-modify-write
|
|
131
|
+
* under the per-directory state lock so concurrent sources cannot clobber
|
|
132
|
+
* each other, and prunes day payloads beyond the retention cap.
|
|
133
|
+
*/
|
|
134
|
+
declare function updateLocationSourceDay(memoryDir: string, sourceId: string, date: string, payload: LocationSourceDayPayload, completedAtUtc: string): Promise<LocationSyncStateFile>;
|
|
135
|
+
/** Frontmatter persisted on a rendered day document. */
|
|
136
|
+
interface LocationDayMeta {
|
|
137
|
+
kind: typeof LOCATION_DAY_KIND;
|
|
138
|
+
date: string;
|
|
139
|
+
timezone: string;
|
|
140
|
+
formatVersion: number;
|
|
141
|
+
sources: string[];
|
|
142
|
+
observationCount: number;
|
|
143
|
+
/** SHA-256 of the rendered body (rebuild idempotency). */
|
|
144
|
+
contentHash: string;
|
|
145
|
+
}
|
|
146
|
+
/** A parsed day document (frontmatter + rendered body). */
|
|
147
|
+
interface LocationDayDocument {
|
|
148
|
+
meta: LocationDayMeta;
|
|
149
|
+
body: string;
|
|
150
|
+
}
|
|
151
|
+
/** The per-source view a day document is composed from. */
|
|
152
|
+
interface LocationDaySourceEntry extends LocationSourceDayPayload {
|
|
153
|
+
/** Provider display name for the timeline heading; falls back to the id. */
|
|
154
|
+
providerDisplayName?: string;
|
|
155
|
+
}
|
|
156
|
+
declare function hashLocationBody(body: string): string;
|
|
157
|
+
declare function composeLocationDayBody(date: string, timezone: string, sources: Record<string, LocationDaySourceEntry>): string;
|
|
158
|
+
declare function composeLocationDayMeta(date: string, timezone: string, sources: Record<string, LocationDaySourceEntry>, body: string): LocationDayMeta;
|
|
159
|
+
declare function serializeLocationDay(meta: LocationDayMeta, body: string): string;
|
|
160
|
+
/** A day document's frontmatter, parsed for idempotency checks and status. */
|
|
161
|
+
interface LocationDaySummary {
|
|
162
|
+
date: string;
|
|
163
|
+
timezone: string;
|
|
164
|
+
sources: string[];
|
|
165
|
+
observationCount: number;
|
|
166
|
+
contentHash: string;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Parse a day document's frontmatter. Returns null when the content is not a
|
|
170
|
+
* location day document (wrong kind, missing frontmatter) so callers can
|
|
171
|
+
* distinguish a foreign file from a corrupt one.
|
|
172
|
+
*/
|
|
173
|
+
declare function parseLocationDaySummary(raw: string): LocationDaySummary | null;
|
|
174
|
+
/**
|
|
175
|
+
* Idempotently persist a day document: skip the write when the on-disk
|
|
176
|
+
* contentHash already matches. The write is atomic and containment-checked;
|
|
177
|
+
* the caller (pipeline) advances sync state only after this resolves.
|
|
178
|
+
*/
|
|
179
|
+
declare function writeLocationDay(memoryDir: string, date: string, serialized: string): Promise<boolean>;
|
|
180
|
+
/** Read a stored day document's raw markdown; null when absent. */
|
|
181
|
+
declare function readLocationDay(memoryDir: string, date: string): Promise<string | null>;
|
|
182
|
+
/** List dates that have a stored day document, newest first. */
|
|
183
|
+
declare function listLocationDayDates(memoryDir: string): Promise<string[]>;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Location day-sync pipeline (issue #2044).
|
|
187
|
+
*
|
|
188
|
+
* For one local day, each configured (enabled, registered) provider's
|
|
189
|
+
* observations are fetched over the day's half-open UTC window, folded into
|
|
190
|
+
* place-visit segments, merged with the other sources' last-known day
|
|
191
|
+
* payloads from sync state, and rendered to the day document. Sync state
|
|
192
|
+
* advances only AFTER the day document (when any) is durable, so a failed
|
|
193
|
+
* write never moves the watermark past data that did not land. An empty
|
|
194
|
+
* fetch is a successful sync — never conflated with a provider failure
|
|
195
|
+
* (AGENTS.md rule 22).
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
interface LocationDaySyncOptions {
|
|
199
|
+
config: LocationConfig;
|
|
200
|
+
memoryDir: string;
|
|
201
|
+
date: string;
|
|
202
|
+
signal?: AbortSignal;
|
|
203
|
+
/** Runaway-pagination guard; defaults to MAX_SYNC_PAGES. */
|
|
204
|
+
maxPages?: number;
|
|
205
|
+
now?: () => Date;
|
|
206
|
+
/** Provider lookup seam (defaults to the registry); tests inject doubles. */
|
|
207
|
+
getProvider?: (id: string) => LocationProvider | undefined;
|
|
208
|
+
}
|
|
209
|
+
interface LocationSourceSyncResult {
|
|
210
|
+
sourceId: string;
|
|
211
|
+
status: "synced" | "skipped" | "failed";
|
|
212
|
+
skipReason?: "source-disabled" | "provider-not-registered";
|
|
213
|
+
fetched: number;
|
|
214
|
+
dayWritten: boolean;
|
|
215
|
+
stateSaved: boolean;
|
|
216
|
+
/** Sanitized provider error (no tokens, URLs, or coordinates). */
|
|
217
|
+
error?: string;
|
|
218
|
+
}
|
|
219
|
+
/** Redact credential, URL query, and coordinate shapes from a provider error. */
|
|
220
|
+
declare function sanitizeProviderError(error: unknown): string;
|
|
221
|
+
/**
|
|
222
|
+
* Sync every configured source for one local day. The master gate
|
|
223
|
+
* (`config.enabled === false`) short-circuits every path: no providers are
|
|
224
|
+
* contacted and nothing touches the filesystem. A provider failure fails
|
|
225
|
+
* that source only (state not advanced) and never blocks the others.
|
|
226
|
+
*/
|
|
227
|
+
declare function syncLocationDay(options: LocationDaySyncOptions): Promise<LocationSourceSyncResult[]>;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Location surface helpers (issue #2044): status, provider health checks, and
|
|
231
|
+
* multi-day sync. Pure `@remnic/core` — no optional packages, no host CLI
|
|
232
|
+
* wiring; a host adapter (or the core CLI, in a later slice) renders these
|
|
233
|
+
* structured results into its own command surface.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
interface LocationSourceStatus {
|
|
237
|
+
id: string;
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
providerRegistered: boolean;
|
|
240
|
+
lastSyncedAtUtc?: string;
|
|
241
|
+
trackedDays: number;
|
|
242
|
+
}
|
|
243
|
+
interface LocationDayStatus {
|
|
244
|
+
date: string;
|
|
245
|
+
sources: string[];
|
|
246
|
+
observationCount: number;
|
|
247
|
+
}
|
|
248
|
+
interface LocationStatusReport {
|
|
249
|
+
enabled: boolean;
|
|
250
|
+
timezone: string;
|
|
251
|
+
sources: LocationSourceStatus[];
|
|
252
|
+
/** Stored day documents, newest first (at most `maxDays`). */
|
|
253
|
+
recentDays: LocationDayStatus[];
|
|
254
|
+
}
|
|
255
|
+
interface LocationStatusOptions {
|
|
256
|
+
/** Provider lookup seam (defaults to the registry); tests inject doubles. */
|
|
257
|
+
getProvider?: (id: string) => LocationProvider | undefined;
|
|
258
|
+
/** Cap on day documents listed; defaults to 7. */
|
|
259
|
+
maxDays?: number;
|
|
260
|
+
now?: () => Date;
|
|
261
|
+
}
|
|
262
|
+
declare function locationStatus(config: LocationConfig, memoryDir: string, options?: LocationStatusOptions): Promise<LocationStatusReport>;
|
|
263
|
+
interface LocationSourceCheckResult {
|
|
264
|
+
id: string;
|
|
265
|
+
ok: boolean;
|
|
266
|
+
detail?: string;
|
|
267
|
+
skipped?: "location-disabled" | "source-disabled" | "provider-not-registered";
|
|
268
|
+
}
|
|
269
|
+
interface LocationCheckOptions {
|
|
270
|
+
signal?: AbortSignal;
|
|
271
|
+
getProvider?: (id: string) => LocationProvider | undefined;
|
|
272
|
+
}
|
|
273
|
+
/** Probe every configured provider's health. The master gate short-circuits. */
|
|
274
|
+
declare function checkLocationSources(config: LocationConfig, options?: LocationCheckOptions): Promise<LocationSourceCheckResult[]>;
|
|
275
|
+
interface LocationSyncRunOptions extends Omit<LocationDaySyncOptions, "config" | "date" | "memoryDir"> {
|
|
276
|
+
config: LocationConfig;
|
|
277
|
+
memoryDir: string;
|
|
278
|
+
/** Exclusive end date (local YYYY-MM-DD); defaults to today in config.timezone. */
|
|
279
|
+
endDate?: string;
|
|
280
|
+
/** Number of days to sync ending at endDate; defaults to config.syncDays. */
|
|
281
|
+
days?: number;
|
|
282
|
+
now?: () => Date;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Sync the trailing `days` local days ending AT `endDate` (inclusive).
|
|
286
|
+
* `endDate` defaults to yesterday in config.timezone (today is incomplete);
|
|
287
|
+
* days run oldest-first so a failure stops before newer days, matching the
|
|
288
|
+
* incremental-sync intent of `syncDays`.
|
|
289
|
+
*/
|
|
290
|
+
declare function syncLocation(options: LocationSyncRunOptions): Promise<Array<{
|
|
291
|
+
date: string;
|
|
292
|
+
results: LocationSourceSyncResult[];
|
|
293
|
+
}>>;
|
|
294
|
+
|
|
295
|
+
export { type DominantPlaceResult, LOCATIONS_DIR_NAME, LOCATION_DAY_FORMAT_VERSION, LOCATION_DAY_KIND, type LocationCheckOptions, LocationConfig, type LocationDayDocument, type LocationDayMeta, type LocationDaySourceEntry, type LocationDayStatus, type LocationDaySummary, type LocationDaySyncOptions, LocationObservation, LocationPlace, LocationProvider, LocationSegment, type LocationSourceCheckResult, type LocationSourceDayPayload, type LocationSourceStatus, type LocationSourceSyncResult, type LocationSourceSyncState, type LocationStatusOptions, type LocationStatusReport, type LocationSyncRunOptions, type LocationSyncStateFile, type PlaceDuration, bucketObservationsByDay, checkLocationSources, clearLocationProviders, composeLocationDayBody, composeLocationDayMeta, defaultLocationConfig, dominantPlace, emptyLocationSyncState, getLocationProvider, hashLocationBody, intervalOverlapMs, isValidLocationDate, listLocationDayDates, listLocationProviders, loadLocationSyncState, localDayKey, locationDayFilePath, locationDayWindow, locationStatus, locationSyncStateFilePath, observationSegments, parseLocationConfig, parseLocationDaySummary, placeDurations, readLocationDay, registerLocationProvider, sanitizeProviderError, saveLocationSyncState, serializeLocationDay, syncLocation, syncLocationDay, updateLocationSourceDay, writeLocationDay };
|