@remnic/core 9.66.0 → 9.66.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 +11 -11
- package/dist/access-admin-ops-surface.js +22 -22
- package/dist/access-authorization-probe.d.ts +11 -11
- package/dist/access-authorization-probe.js +23 -23
- package/dist/access-boundary.d.ts +11 -11
- package/dist/access-boundary.js +22 -22
- package/dist/access-cli.js +86 -84
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +1 -1
- package/dist/access-extraction-force-flush.d.ts +11 -11
- package/dist/access-extraction-force-flush.js +22 -22
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +11 -11
- package/dist/access-http-lifecycle-flush.d.ts +11 -11
- package/dist/access-http-offline-stream.d.ts +11 -11
- package/dist/access-http-query.d.ts +2 -2
- package/dist/access-http-query.js +24 -24
- package/dist/access-http.d.ts +12 -12
- package/dist/access-http.js +39 -39
- package/dist/access-identity-continuity-surface.d.ts +9 -9
- package/dist/access-identity-continuity-surface.js +22 -22
- package/dist/access-lcm-surface.d.ts +11 -11
- package/dist/access-lcm-surface.js +22 -22
- package/dist/access-mcp.d.ts +11 -11
- package/dist/access-mcp.js +29 -29
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight-CLWUoMyW.d.ts → access-namespace-preflight-50VIkPhB.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +22 -22
- package/dist/access-observe-write-surface.d.ts +11 -11
- package/dist/access-observe-write-surface.js +22 -22
- package/dist/access-offline-manifest.d.ts +9 -9
- package/dist/access-operations-batch.js +24 -24
- package/dist/access-operations.d.ts +16 -16
- package/dist/access-operations.js +28 -28
- package/dist/access-recall-concurrency.d.ts +11 -11
- package/dist/access-recall-concurrency.js +22 -22
- package/dist/access-recall-response.d.ts +11 -11
- package/dist/access-recall-response.js +22 -22
- package/dist/access-recall-surface.d.ts +11 -11
- package/dist/access-recall-surface.js +22 -22
- package/dist/access-schema.d.ts +89 -89
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-CEUE1Isj.d.ts → access-service-C2tV2-uL.d.ts} +65 -65
- package/dist/access-service-helpers.d.ts +11 -11
- package/dist/access-service.d.ts +11 -11
- package/dist/access-service.js +22 -22
- package/dist/access-surface-catalog.d.ts +11 -11
- package/dist/access-surface-catalog.js +24 -24
- package/dist/access-wearables-meetings-surface.d.ts +3 -3
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +2 -2
- package/dist/adapters/index.js +7 -7
- package/dist/adapters/registry.js +3 -3
- package/dist/ambient-provenance.d.ts +1 -1
- package/dist/artifact-search.d.ts +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +9 -9
- package/dist/briefing-window.d.ts +2 -2
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +9 -9
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer-turn-helpers.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{catalog-D1HgugTA.d.ts → catalog-C2jA-gLm.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +10 -10
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-J3OND5QT.js → chunk-2FA7U5XY.js} +2 -2
- package/dist/{chunk-GEJKYA7D.js → chunk-2ITZ74A6.js} +9 -9
- package/dist/{chunk-2LBAFHOQ.js → chunk-2X6BGKQL.js} +8 -8
- package/dist/{chunk-KODXCHXJ.js → chunk-46XR5FNZ.js} +39 -3
- package/dist/chunk-46XR5FNZ.js.map +1 -0
- package/dist/{chunk-4STAANV7.js → chunk-4XLTUR6R.js} +3 -3
- package/dist/{chunk-FTTJRVB7.js → chunk-65JOGLIS.js} +2 -2
- package/dist/{chunk-FESUGFIL.js → chunk-7UOXCCCI.js} +2 -2
- package/dist/{chunk-PEBH5DCK.js → chunk-AF5H7TKI.js} +100 -18
- package/dist/chunk-AF5H7TKI.js.map +1 -0
- package/dist/{chunk-6CEGSTBD.js → chunk-B4AOWRYF.js} +4 -4
- package/dist/{chunk-FYWLSFFS.js → chunk-C5IUOBCN.js} +2 -2
- package/dist/{chunk-FKKGCGYL.js → chunk-CHGG74CY.js} +2 -2
- package/dist/{chunk-H7VDIF2V.js → chunk-CX4OLNIH.js} +2 -2
- package/dist/{chunk-Z3YEGSR4.js → chunk-D3UXGE5D.js} +10 -10
- package/dist/{chunk-7XOG75AU.js → chunk-D6Q5EPOV.js} +2 -2
- package/dist/{chunk-MJRGVXPQ.js → chunk-EH65UV2Z.js} +2 -2
- package/dist/{chunk-VQ4AMTGZ.js → chunk-EWKVYCFP.js} +1 -1
- package/dist/{chunk-23CVL7HS.js → chunk-FFUMTH27.js} +2 -2
- package/dist/{chunk-GX6FTSYH.js → chunk-GAJK3DQ5.js} +2 -2
- package/dist/{chunk-O57GM3FR.js → chunk-GBEOUCBB.js} +2 -2
- package/dist/{chunk-DMEHOEC7.js → chunk-H2IRSXZN.js} +3 -3
- package/dist/{chunk-CFVTRUR3.js → chunk-H6RSANGQ.js} +2 -2
- package/dist/chunk-HVAEXYPL.js +98 -0
- package/dist/chunk-HVAEXYPL.js.map +1 -0
- package/dist/{chunk-OAJMQKQR.js → chunk-IGZCAHFL.js} +2 -2
- package/dist/{chunk-CN4VKV3S.js → chunk-INUBU6I5.js} +2 -2
- package/dist/{chunk-CTCGHNWN.js → chunk-J2R275FN.js} +4 -4
- package/dist/{chunk-2QSZNTDO.js → chunk-JBPKEARU.js} +7 -7
- package/dist/{chunk-VQNRICAQ.js → chunk-JKTV3JNX.js} +3 -3
- package/dist/{chunk-33MFRY25.js → chunk-KI64TTBL.js} +2 -2
- package/dist/{chunk-VCKWULAK.js → chunk-KJXCD7VR.js} +5 -5
- package/dist/{chunk-7LCGFUMB.js → chunk-KQAFEZQX.js} +4 -4
- package/dist/{chunk-GSKINLAK.js → chunk-LJABGXC4.js} +3 -3
- package/dist/{chunk-NPIBN2VL.js → chunk-LK4TOYPU.js} +2 -2
- package/dist/{chunk-EZSCW4EM.js → chunk-LYUUA6QB.js} +2 -2
- package/dist/{chunk-I5VB44ZK.js → chunk-M5ERTI4I.js} +2 -2
- package/dist/{chunk-IHGMRDEE.js → chunk-MUEGIKKY.js} +227 -144
- package/dist/chunk-MUEGIKKY.js.map +1 -0
- package/dist/{chunk-QCRJMU5V.js → chunk-NFP4KPTA.js} +2 -2
- package/dist/{chunk-YXFCALVT.js → chunk-NSTNGMSS.js} +8 -8
- package/dist/{chunk-L4X4PJYK.js → chunk-NUF7VSEX.js} +2 -2
- package/dist/{chunk-IVIAHQBR.js → chunk-OJUEUQDJ.js} +2 -2
- package/dist/{chunk-ZW4VXELZ.js → chunk-OMX6TKXH.js} +2 -2
- package/dist/{chunk-EFQCDJZ2.js → chunk-QBNE55VA.js} +2 -2
- package/dist/{chunk-6QDXA26G.js → chunk-RPIS5FQ7.js} +47 -47
- package/dist/{chunk-HJXA6ZM7.js → chunk-S4CDUXQY.js} +2 -2
- package/dist/{chunk-72OIT7KS.js → chunk-S4Z2OBTX.js} +3 -3
- package/dist/{chunk-4FHRZD5T.js → chunk-SZMYGDSM.js} +2 -2
- package/dist/{chunk-MAH64N55.js → chunk-TBCDF556.js} +4 -4
- package/dist/{chunk-56IV4J5W.js → chunk-TCF4MU7L.js} +443 -58
- package/dist/chunk-TCF4MU7L.js.map +1 -0
- package/dist/{chunk-K66OY4EI.js → chunk-TCQRIIIN.js} +2 -2
- package/dist/{chunk-KXIXO76C.js → chunk-U65VJSCJ.js} +14 -14
- package/dist/{chunk-HNPE66LB.js → chunk-U6NGKS32.js} +7 -7
- package/dist/{chunk-WKJFIMVN.js → chunk-UW4RYPWC.js} +2 -2
- package/dist/{chunk-MN5NOOI7.js → chunk-VG4SSPAW.js} +2 -2
- package/dist/chunk-WFCWP4XU.js +17 -0
- package/dist/chunk-WFCWP4XU.js.map +1 -0
- package/dist/{chunk-UNUMFURP.js → chunk-X5PIDJ3L.js} +3 -3
- package/dist/{chunk-RZ3IZIJG.js → chunk-XOHYGIWF.js} +2 -2
- package/dist/{chunk-MINHJ55X.js → chunk-XXW32OL7.js} +1 -1
- package/dist/{chunk-MINHJ55X.js.map → chunk-XXW32OL7.js.map} +1 -1
- package/dist/{chunk-6RUHELWR.js → chunk-YWPLOJ7T.js} +2 -2
- package/dist/{chunk-ZJPM7GZ3.js → chunk-ZPS724LT.js} +2 -2
- package/dist/{chunk-7UTDHQZ5.js → chunk-ZZZWEDF4.js} +2 -2
- package/dist/{cli-BEkm2MEf.d.ts → cli-CsfFMe6n.d.ts} +5 -5
- package/dist/cli.d.ts +13 -13
- package/dist/cli.js +63 -63
- package/dist/coding/export-okf-codegraph.d.ts +1 -1
- package/dist/coding/export-okf-codegraph.js +9 -9
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +9 -9
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +2 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +9 -9
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +9 -9
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +3 -3
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +11 -11
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/corpus-watermark.d.ts +1 -1
- package/dist/corpus-watermark.js +11 -11
- package/dist/cross-lingual-recall.d.ts +1 -1
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +1 -1
- package/dist/{dependency-propagation-delivery-BCpeo14F.d.ts → dependency-propagation-delivery-D4WMbOwA.d.ts} +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-origin-fields.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +9 -9
- package/dist/entity-schema.d.ts +1 -1
- package/dist/episodic-context.d.ts +1 -1
- package/dist/eval-trajectory-contracts.d.ts +1 -1
- package/dist/eval-trajectory-store.d.ts +1 -1
- package/dist/eval-trajectory.d.ts +1 -1
- package/dist/explicit-capture.d.ts +9 -9
- package/dist/external-wiki-access.d.ts +11 -11
- package/dist/external-wiki-access.js +23 -23
- package/dist/external-wiki-collection-registration.d.ts +1 -1
- package/dist/external-wiki-collection.d.ts +1 -1
- package/dist/external-wiki-mcp-tools.d.ts +11 -11
- package/dist/extraction-error-classification.d.ts +1 -1
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction-liveness.d.ts +1 -1
- package/dist/extraction-normalization.d.ts +1 -1
- package/dist/extraction-prompt.d.ts +1 -1
- package/dist/extraction-source-grounding-rules.d.ts +1 -1
- package/dist/extraction-source-grounding.d.ts +1 -1
- package/dist/extraction.d.ts +1 -1
- package/dist/extraction.js +9 -9
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-path-reconstruction.d.ts +1 -1
- package/dist/graph-path-scoring.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +1 -1
- package/dist/{index-D_pyMUaP.d.ts → index-DuJnzwHv.d.ts} +2 -2
- package/dist/index.d.ts +807 -698
- package/dist/index.js +130 -102
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +10 -10
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/location/index.d.ts +3 -3
- package/dist/location/index.js +11 -11
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +9 -9
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +9 -9
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +10 -10
- package/dist/{maintenance-DDUX9d6D.d.ts → maintenance-BBeaeYRR.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +11 -11
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-controller.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-snapshot.d.ts +1 -1
- package/dist/memory-subject-cli.d.ts +11 -11
- package/dist/memory-subject.d.ts +11 -11
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +3 -3
- package/dist/namespaces/migrate.js +10 -10
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +5 -5
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +9 -9
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +12 -12
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +19 -19
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +18 -18
- package/dist/{orchestrator-3F4jihCo.d.ts → orchestrator-CaqnwNwM.d.ts} +8 -8
- package/dist/orchestrator.d.ts +9 -9
- package/dist/orchestrator.js +86 -84
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-CB1dj6Uh.d.ts → pipeline-CrxVjlJr.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/proactive-contention.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/{public-http-34-JIAGQ.d.ts → public-http-Cwvl4QZr.d.ts} +1 -1
- package/dist/{qmd-edLLZXc5.d.ts → qmd-BZgbJm0g.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/recall-concurrency-config.d.ts +1 -1
- package/dist/recall-deep.d.ts +37 -0
- package/dist/recall-deep.js +81 -0
- package/dist/recall-deep.js.map +1 -0
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +1 -1
- package/dist/recall-navigate.d.ts +70 -0
- package/dist/recall-navigate.js +51 -0
- package/dist/recall-navigate.js.map +1 -0
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state-view-wire.d.ts +14 -0
- package/dist/recall-state-view-wire.js +11 -0
- package/dist/recall-state-view-wire.js.map +1 -0
- package/dist/recall-state-view.d.ts +25 -0
- package/dist/recall-state-view.js +22 -0
- package/dist/recall-state-view.js.map +1 -0
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +1 -1
- package/dist/reconcile/manifest.d.ts +1 -1
- package/dist/reconcile/plan.d.ts +1 -1
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/replica-divergence.d.ts +1 -1
- package/dist/replica-peers-config.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +3 -3
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/salvage-envelope.d.ts +1 -1
- package/dist/schemas.d.ts +152 -152
- package/dist/{scope-profiles-BF2lu81V.d.ts → scope-profiles-DFaojvoP.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +4 -4
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +10 -10
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-5OuWXBRt.d.ts → semantic-consolidation-BiX68wZA.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +10 -10
- package/dist/semantic-rule-promotion.js +9 -9
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +9 -9
- package/dist/{service-CrqEhLXD.d.ts → service-D5h2zZ0M.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +7 -7
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +1 -1
- package/dist/source-agent-qualifier.js +9 -9
- package/dist/{storage-BQn-xnxm.d.ts → storage-CtsaojWD.d.ts} +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +8 -8
- package/dist/subject-config.d.ts +1 -1
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/support-passport/index.d.ts +14 -14
- package/dist/support-passport/index.js +25 -25
- package/dist/temporal-supersession.d.ts +2 -2
- package/dist/temporal-timeline-recall.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +2 -2
- package/dist/tier-routing.d.ts +1 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/transfer/export-okf.d.ts +1 -1
- package/dist/transfer/export-okf.js +10 -10
- package/dist/transfer/types.d.ts +78 -78
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-BRpcNjHZ.d.ts → types-CIpfYz1I.d.ts} +16 -11
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +9 -9
- package/dist/who-knows-cli.d.ts +11 -11
- package/dist/who-knows-cli.js +10 -10
- package/dist/who-knows.d.ts +11 -11
- package/dist/who-knows.js +9 -9
- package/dist/write-envelope.d.ts +1 -1
- package/package.json +2 -2
- package/src/activity/config.test.ts +1 -1
- package/src/activity/config.ts +48 -3
- package/src/activity/index.ts +2 -0
- package/src/activity/journal.test.ts +97 -0
- package/src/activity/journal.ts +113 -0
- package/src/activity/privacy.test.ts +53 -0
- package/src/activity/privacy.ts +80 -0
- package/src/activity/timeline/index.ts +2 -0
- package/src/activity/timeline/journal-recap.test.ts +113 -0
- package/src/activity/timeline/journal-recap.ts +130 -0
- package/src/activity/timeline/query.test.ts +198 -0
- package/src/activity/timeline/query.ts +313 -0
- package/src/activity/timeline/weekly.test.ts +215 -0
- package/src/activity/timeline/weekly.ts +234 -0
- package/src/activity/types.ts +14 -0
- package/src/activity/vault-publish.test.ts +166 -0
- package/src/activity/vault-publish.ts +101 -0
- package/src/config.test.ts +1 -1
- package/src/config.ts +2 -22
- package/src/dedup/merge-on-write.test.ts +91 -0
- package/src/dedup/merge-on-write.ts +75 -0
- package/src/dedup/novelty-gate.test.ts +143 -0
- package/src/dedup/novelty-gate.ts +163 -0
- package/src/location/recall-exclusion.test.ts +1 -0
- package/src/orchestration/extraction-persist.ts +22 -23
- package/src/orchestration/generic-recall-paths.ts +11 -0
- package/src/orchestration/recall-entry.ts +8 -3
- package/src/recall-deep.test.ts +72 -0
- package/src/recall-deep.ts +113 -0
- package/src/recall-navigate.test.ts +84 -0
- package/src/recall-navigate.ts +100 -0
- package/src/recall-state-view-wire.test.ts +35 -0
- package/src/recall-state-view-wire.ts +28 -0
- package/src/recall-state-view.test.ts +131 -0
- package/src/recall-state-view.ts +138 -0
- package/src/shared-context/governance.test.ts +53 -0
- package/src/shared-context/governance.ts +86 -0
- package/src/types.ts +3 -10
- package/dist/chunk-56IV4J5W.js.map +0 -1
- package/dist/chunk-IHGMRDEE.js.map +0 -1
- package/dist/chunk-KODXCHXJ.js.map +0 -1
- package/dist/chunk-PEBH5DCK.js.map +0 -1
- /package/dist/{chunk-J3OND5QT.js.map → chunk-2FA7U5XY.js.map} +0 -0
- /package/dist/{chunk-GEJKYA7D.js.map → chunk-2ITZ74A6.js.map} +0 -0
- /package/dist/{chunk-2LBAFHOQ.js.map → chunk-2X6BGKQL.js.map} +0 -0
- /package/dist/{chunk-4STAANV7.js.map → chunk-4XLTUR6R.js.map} +0 -0
- /package/dist/{chunk-FTTJRVB7.js.map → chunk-65JOGLIS.js.map} +0 -0
- /package/dist/{chunk-FESUGFIL.js.map → chunk-7UOXCCCI.js.map} +0 -0
- /package/dist/{chunk-6CEGSTBD.js.map → chunk-B4AOWRYF.js.map} +0 -0
- /package/dist/{chunk-FYWLSFFS.js.map → chunk-C5IUOBCN.js.map} +0 -0
- /package/dist/{chunk-FKKGCGYL.js.map → chunk-CHGG74CY.js.map} +0 -0
- /package/dist/{chunk-H7VDIF2V.js.map → chunk-CX4OLNIH.js.map} +0 -0
- /package/dist/{chunk-Z3YEGSR4.js.map → chunk-D3UXGE5D.js.map} +0 -0
- /package/dist/{chunk-7XOG75AU.js.map → chunk-D6Q5EPOV.js.map} +0 -0
- /package/dist/{chunk-MJRGVXPQ.js.map → chunk-EH65UV2Z.js.map} +0 -0
- /package/dist/{chunk-VQ4AMTGZ.js.map → chunk-EWKVYCFP.js.map} +0 -0
- /package/dist/{chunk-23CVL7HS.js.map → chunk-FFUMTH27.js.map} +0 -0
- /package/dist/{chunk-GX6FTSYH.js.map → chunk-GAJK3DQ5.js.map} +0 -0
- /package/dist/{chunk-O57GM3FR.js.map → chunk-GBEOUCBB.js.map} +0 -0
- /package/dist/{chunk-DMEHOEC7.js.map → chunk-H2IRSXZN.js.map} +0 -0
- /package/dist/{chunk-CFVTRUR3.js.map → chunk-H6RSANGQ.js.map} +0 -0
- /package/dist/{chunk-OAJMQKQR.js.map → chunk-IGZCAHFL.js.map} +0 -0
- /package/dist/{chunk-CN4VKV3S.js.map → chunk-INUBU6I5.js.map} +0 -0
- /package/dist/{chunk-CTCGHNWN.js.map → chunk-J2R275FN.js.map} +0 -0
- /package/dist/{chunk-2QSZNTDO.js.map → chunk-JBPKEARU.js.map} +0 -0
- /package/dist/{chunk-VQNRICAQ.js.map → chunk-JKTV3JNX.js.map} +0 -0
- /package/dist/{chunk-33MFRY25.js.map → chunk-KI64TTBL.js.map} +0 -0
- /package/dist/{chunk-VCKWULAK.js.map → chunk-KJXCD7VR.js.map} +0 -0
- /package/dist/{chunk-7LCGFUMB.js.map → chunk-KQAFEZQX.js.map} +0 -0
- /package/dist/{chunk-GSKINLAK.js.map → chunk-LJABGXC4.js.map} +0 -0
- /package/dist/{chunk-NPIBN2VL.js.map → chunk-LK4TOYPU.js.map} +0 -0
- /package/dist/{chunk-EZSCW4EM.js.map → chunk-LYUUA6QB.js.map} +0 -0
- /package/dist/{chunk-I5VB44ZK.js.map → chunk-M5ERTI4I.js.map} +0 -0
- /package/dist/{chunk-QCRJMU5V.js.map → chunk-NFP4KPTA.js.map} +0 -0
- /package/dist/{chunk-YXFCALVT.js.map → chunk-NSTNGMSS.js.map} +0 -0
- /package/dist/{chunk-L4X4PJYK.js.map → chunk-NUF7VSEX.js.map} +0 -0
- /package/dist/{chunk-IVIAHQBR.js.map → chunk-OJUEUQDJ.js.map} +0 -0
- /package/dist/{chunk-ZW4VXELZ.js.map → chunk-OMX6TKXH.js.map} +0 -0
- /package/dist/{chunk-EFQCDJZ2.js.map → chunk-QBNE55VA.js.map} +0 -0
- /package/dist/{chunk-6QDXA26G.js.map → chunk-RPIS5FQ7.js.map} +0 -0
- /package/dist/{chunk-HJXA6ZM7.js.map → chunk-S4CDUXQY.js.map} +0 -0
- /package/dist/{chunk-72OIT7KS.js.map → chunk-S4Z2OBTX.js.map} +0 -0
- /package/dist/{chunk-4FHRZD5T.js.map → chunk-SZMYGDSM.js.map} +0 -0
- /package/dist/{chunk-MAH64N55.js.map → chunk-TBCDF556.js.map} +0 -0
- /package/dist/{chunk-K66OY4EI.js.map → chunk-TCQRIIIN.js.map} +0 -0
- /package/dist/{chunk-KXIXO76C.js.map → chunk-U65VJSCJ.js.map} +0 -0
- /package/dist/{chunk-HNPE66LB.js.map → chunk-U6NGKS32.js.map} +0 -0
- /package/dist/{chunk-WKJFIMVN.js.map → chunk-UW4RYPWC.js.map} +0 -0
- /package/dist/{chunk-MN5NOOI7.js.map → chunk-VG4SSPAW.js.map} +0 -0
- /package/dist/{chunk-UNUMFURP.js.map → chunk-X5PIDJ3L.js.map} +0 -0
- /package/dist/{chunk-RZ3IZIJG.js.map → chunk-XOHYGIWF.js.map} +0 -0
- /package/dist/{chunk-6RUHELWR.js.map → chunk-YWPLOJ7T.js.map} +0 -0
- /package/dist/{chunk-ZJPM7GZ3.js.map → chunk-ZPS724LT.js.map} +0 -0
- /package/dist/{chunk-7UTDHQZ5.js.map → chunk-ZZZWEDF4.js.map} +0 -0
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
ActivityStore,
|
|
15
15
|
MaintenanceScheduler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NSTNGMSS.js";
|
|
17
17
|
import {
|
|
18
18
|
runPeerProfileReasoner
|
|
19
19
|
} from "./chunk-I74SUMNI.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-7HYPN2GC.js";
|
|
23
23
|
import {
|
|
24
24
|
LcmEngine
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-D3UXGE5D.js";
|
|
26
26
|
import {
|
|
27
27
|
chunkTranscriptEntries
|
|
28
28
|
} from "./chunk-TECVW3JP.js";
|
|
@@ -32,27 +32,18 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
CompoundingEngine,
|
|
34
34
|
defaultTierMigrationCycleBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IGZCAHFL.js";
|
|
36
36
|
import {
|
|
37
37
|
SharedContextManager
|
|
38
38
|
} from "./chunk-VI637ILW.js";
|
|
39
|
-
import {
|
|
40
|
-
cleanArchivedUserMessage
|
|
41
|
-
} from "./chunk-47DU4SGJ.js";
|
|
42
39
|
import {
|
|
43
40
|
applyUtilityPromotionRuntimePolicy,
|
|
44
41
|
applyUtilityRankingRuntimeDelta,
|
|
45
42
|
loadUtilityRuntimeValues
|
|
46
43
|
} from "./chunk-SEF4IOFE.js";
|
|
47
44
|
import {
|
|
48
|
-
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
buildTemporalTimelineRecallSection
|
|
52
|
-
} from "./chunk-2NKY7OC6.js";
|
|
53
|
-
import {
|
|
54
|
-
CODEX_THREAD_KEY_PREFIX
|
|
55
|
-
} from "./chunk-4EX5WZ4M.js";
|
|
45
|
+
cleanArchivedUserMessage
|
|
46
|
+
} from "./chunk-47DU4SGJ.js";
|
|
56
47
|
import {
|
|
57
48
|
TierMigrationExecutor
|
|
58
49
|
} from "./chunk-YRFAYOFQ.js";
|
|
@@ -62,6 +53,15 @@ import {
|
|
|
62
53
|
import {
|
|
63
54
|
TmtBuilder
|
|
64
55
|
} from "./chunk-ECZU5BJH.js";
|
|
56
|
+
import {
|
|
57
|
+
extractTopics
|
|
58
|
+
} from "./chunk-KVDUKH5E.js";
|
|
59
|
+
import {
|
|
60
|
+
buildTemporalTimelineRecallSection
|
|
61
|
+
} from "./chunk-2NKY7OC6.js";
|
|
62
|
+
import {
|
|
63
|
+
CODEX_THREAD_KEY_PREFIX
|
|
64
|
+
} from "./chunk-4EX5WZ4M.js";
|
|
65
65
|
import {
|
|
66
66
|
HourlySummarizer
|
|
67
67
|
} from "./chunk-IEZ6CGTW.js";
|
|
@@ -72,10 +72,6 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
SessionObserverState
|
|
74
74
|
} from "./chunk-ODZKV2F7.js";
|
|
75
|
-
import {
|
|
76
|
-
buildResponseGuidanceRecallSection,
|
|
77
|
-
shouldRecallResponseGuidance
|
|
78
|
-
} from "./chunk-6TCXIRP5.js";
|
|
79
75
|
import {
|
|
80
76
|
mergeWithAgentResults,
|
|
81
77
|
runDirectAgent,
|
|
@@ -100,9 +96,6 @@ import {
|
|
|
100
96
|
import {
|
|
101
97
|
applyRuntimeRetrievalPolicy
|
|
102
98
|
} from "./chunk-5IZL4DCV.js";
|
|
103
|
-
import {
|
|
104
|
-
findUnresolvedEntityRefs
|
|
105
|
-
} from "./chunk-X7XN6YU4.js";
|
|
106
99
|
import {
|
|
107
100
|
RelevanceStore
|
|
108
101
|
} from "./chunk-KATEWTQJ.js";
|
|
@@ -111,6 +104,16 @@ import {
|
|
|
111
104
|
reorderByRankedKeys,
|
|
112
105
|
rerankLocalOrNoop
|
|
113
106
|
} from "./chunk-LUDXM7MD.js";
|
|
107
|
+
import {
|
|
108
|
+
buildResponseGuidanceRecallSection,
|
|
109
|
+
shouldRecallResponseGuidance
|
|
110
|
+
} from "./chunk-6TCXIRP5.js";
|
|
111
|
+
import {
|
|
112
|
+
findUnresolvedEntityRefs
|
|
113
|
+
} from "./chunk-X7XN6YU4.js";
|
|
114
|
+
import {
|
|
115
|
+
applyRecallStateViews
|
|
116
|
+
} from "./chunk-WFCWP4XU.js";
|
|
114
117
|
import {
|
|
115
118
|
dedupeResultsByNamespace,
|
|
116
119
|
hasMemoryForResult,
|
|
@@ -191,7 +194,7 @@ import {
|
|
|
191
194
|
buildEntityRecallSection,
|
|
192
195
|
entityRecentTranscriptLookbackHours,
|
|
193
196
|
readRecentEntityTranscriptEntries
|
|
194
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-LYUUA6QB.js";
|
|
195
198
|
import {
|
|
196
199
|
planEpisodeWindowsWithFallback
|
|
197
200
|
} from "./chunk-T3GIETKV.js";
|
|
@@ -206,31 +209,31 @@ import {
|
|
|
206
209
|
} from "./chunk-LVXBC6YB.js";
|
|
207
210
|
import {
|
|
208
211
|
refreshConvergedNamespaces
|
|
209
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-KI64TTBL.js";
|
|
210
213
|
import {
|
|
211
214
|
builtInConnectorPackageSpecifier,
|
|
212
215
|
ensureBuiltInWearableConnectors,
|
|
213
216
|
getWearableConnector,
|
|
214
217
|
listWearableConnectors,
|
|
215
218
|
screenCandidateFact
|
|
216
|
-
} from "./chunk-
|
|
217
|
-
import {
|
|
218
|
-
RoutingRulesStore
|
|
219
|
-
} from "./chunk-TBUEE7XF.js";
|
|
219
|
+
} from "./chunk-RPIS5FQ7.js";
|
|
220
220
|
import {
|
|
221
221
|
normalizeReplaySessionKey
|
|
222
222
|
} from "./chunk-AJVLDJU6.js";
|
|
223
|
+
import {
|
|
224
|
+
RoutingRulesStore
|
|
225
|
+
} from "./chunk-TBUEE7XF.js";
|
|
223
226
|
import {
|
|
224
227
|
compareVerifiedEpisodeResults,
|
|
225
228
|
searchVerifiedEpisodes
|
|
226
|
-
} from "./chunk-
|
|
229
|
+
} from "./chunk-ZPS724LT.js";
|
|
227
230
|
import {
|
|
228
231
|
ThreadingManager
|
|
229
232
|
} from "./chunk-OJP3N7UK.js";
|
|
230
233
|
import {
|
|
231
234
|
compareVerifiedSemanticRuleResults,
|
|
232
235
|
searchVerifiedSemanticRules
|
|
233
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-M5ERTI4I.js";
|
|
234
237
|
import {
|
|
235
238
|
searchWorkProductLedgerEntries
|
|
236
239
|
} from "./chunk-NRLELHAY.js";
|
|
@@ -243,17 +246,17 @@ import {
|
|
|
243
246
|
import {
|
|
244
247
|
runNamespaceMaintenanceFanout,
|
|
245
248
|
summarizeNamespaceMaintenanceHealth
|
|
246
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-2X6BGKQL.js";
|
|
247
250
|
import {
|
|
248
251
|
planNamespaceMaintenance
|
|
249
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-S4Z2OBTX.js";
|
|
250
253
|
import {
|
|
251
254
|
isAboveImportanceThreshold,
|
|
252
255
|
scoreImportance
|
|
253
256
|
} from "./chunk-UOBPK2OS.js";
|
|
254
257
|
import {
|
|
255
258
|
searchHarmonicRetrieval
|
|
256
|
-
} from "./chunk-
|
|
259
|
+
} from "./chunk-EWKVYCFP.js";
|
|
257
260
|
import {
|
|
258
261
|
EXTRACTION_JUDGE_VERDICT_CATEGORY,
|
|
259
262
|
recordJudgeVerdict
|
|
@@ -281,7 +284,7 @@ import {
|
|
|
281
284
|
materializeAfterSemanticConsolidation,
|
|
282
285
|
parseConsolidationResponse,
|
|
283
286
|
parseOperatorAwareConsolidationResponse
|
|
284
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-INUBU6I5.js";
|
|
285
288
|
import {
|
|
286
289
|
semanticChunkContent
|
|
287
290
|
} from "./chunk-2GBFKHBZ.js";
|
|
@@ -311,8 +314,10 @@ import {
|
|
|
311
314
|
evaluateMemoryActionPolicy
|
|
312
315
|
} from "./chunk-MI2OTWV5.js";
|
|
313
316
|
import {
|
|
314
|
-
|
|
315
|
-
|
|
317
|
+
applyNoveltyGate,
|
|
318
|
+
detectMeetings,
|
|
319
|
+
embeddingsFromCosineHits
|
|
320
|
+
} from "./chunk-AF5H7TKI.js";
|
|
316
321
|
import {
|
|
317
322
|
compileCorrectionRule,
|
|
318
323
|
correctionsFilePath,
|
|
@@ -325,14 +330,14 @@ import {
|
|
|
325
330
|
} from "./chunk-QW27DOHG.js";
|
|
326
331
|
import {
|
|
327
332
|
MeetingsInputError
|
|
328
|
-
} from "./chunk-
|
|
333
|
+
} from "./chunk-U65VJSCJ.js";
|
|
329
334
|
import {
|
|
330
335
|
WearablesInputError,
|
|
331
336
|
describeErrorForOperator
|
|
332
337
|
} from "./chunk-V7IZKJI3.js";
|
|
333
338
|
import {
|
|
334
339
|
NamespaceCatalog
|
|
335
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-GAJK3DQ5.js";
|
|
336
341
|
import {
|
|
337
342
|
recordDreamsPhaseRun
|
|
338
343
|
} from "./chunk-EQWEIIKQ.js";
|
|
@@ -349,10 +354,10 @@ import {
|
|
|
349
354
|
filterRecallCandidates,
|
|
350
355
|
isGenericRecallExcludedPath,
|
|
351
356
|
isTopLevelArchivePath
|
|
352
|
-
} from "./chunk-
|
|
357
|
+
} from "./chunk-MUEGIKKY.js";
|
|
353
358
|
import {
|
|
354
359
|
importCapsule
|
|
355
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-J2R275FN.js";
|
|
356
361
|
import {
|
|
357
362
|
isCodingGraphInstalled
|
|
358
363
|
} from "./chunk-VQ7B2Q6M.js";
|
|
@@ -375,7 +380,7 @@ import {
|
|
|
375
380
|
} from "./chunk-ZVZHG7AI.js";
|
|
376
381
|
import {
|
|
377
382
|
buildXraySnapshot
|
|
378
|
-
} from "./chunk-
|
|
383
|
+
} from "./chunk-LK4TOYPU.js";
|
|
379
384
|
import {
|
|
380
385
|
objectiveStateStoreOverrideForNamespace,
|
|
381
386
|
searchObjectiveStateSnapshots
|
|
@@ -403,7 +408,7 @@ import {
|
|
|
403
408
|
} from "./chunk-7ZNJN5WZ.js";
|
|
404
409
|
import {
|
|
405
410
|
NamespaceStorageRouter
|
|
406
|
-
} from "./chunk-
|
|
411
|
+
} from "./chunk-S4CDUXQY.js";
|
|
407
412
|
import {
|
|
408
413
|
GraphIndex
|
|
409
414
|
} from "./chunk-YMOPYG3K.js";
|
|
@@ -460,7 +465,7 @@ import {
|
|
|
460
465
|
} from "./chunk-TBBDFYXW.js";
|
|
461
466
|
import {
|
|
462
467
|
buildChainFollowupGenerator
|
|
463
|
-
} from "./chunk-
|
|
468
|
+
} from "./chunk-7UOXCCCI.js";
|
|
464
469
|
import {
|
|
465
470
|
QmdResultResolver,
|
|
466
471
|
StorageManager,
|
|
@@ -479,7 +484,10 @@ import {
|
|
|
479
484
|
reconstructFusionInputs,
|
|
480
485
|
selfDeps,
|
|
481
486
|
serializeFusionDay
|
|
482
|
-
} from "./chunk-
|
|
487
|
+
} from "./chunk-2ITZ74A6.js";
|
|
488
|
+
import {
|
|
489
|
+
buildRetiredFactTombstoneInputs
|
|
490
|
+
} from "./chunk-4ZWCQJNM.js";
|
|
483
491
|
import {
|
|
484
492
|
bodyIsEscaped,
|
|
485
493
|
decodeTranscriptBody,
|
|
@@ -490,18 +498,15 @@ import {
|
|
|
490
498
|
saveSpeakerRegistry,
|
|
491
499
|
speakerRegistryKey
|
|
492
500
|
} from "./chunk-UHVXE24Y.js";
|
|
493
|
-
import {
|
|
494
|
-
buildRetiredFactTombstoneInputs
|
|
495
|
-
} from "./chunk-4ZWCQJNM.js";
|
|
496
501
|
import {
|
|
497
502
|
NamespaceSearchRouter,
|
|
498
503
|
namespaceCollectionName
|
|
499
|
-
} from "./chunk-
|
|
504
|
+
} from "./chunk-C5IUOBCN.js";
|
|
500
505
|
import {
|
|
501
506
|
createConversationIndexRuntime,
|
|
502
507
|
createSearchBackend,
|
|
503
508
|
isSearchBackendEnabled
|
|
504
|
-
} from "./chunk-
|
|
509
|
+
} from "./chunk-U6NGKS32.js";
|
|
505
510
|
import {
|
|
506
511
|
NoopSearchBackend
|
|
507
512
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -515,7 +520,7 @@ import {
|
|
|
515
520
|
} from "./chunk-S2V7RUCL.js";
|
|
516
521
|
import {
|
|
517
522
|
confidenceTier
|
|
518
|
-
} from "./chunk-
|
|
523
|
+
} from "./chunk-XXW32OL7.js";
|
|
519
524
|
import {
|
|
520
525
|
lintWorkspaceFiles,
|
|
521
526
|
rotateMarkdownFileToArchive
|
|
@@ -606,7 +611,9 @@ import {
|
|
|
606
611
|
normalizeRecallTokenSet
|
|
607
612
|
} from "./chunk-YCVB7X56.js";
|
|
608
613
|
import {
|
|
609
|
-
coerceBool
|
|
614
|
+
coerceBool,
|
|
615
|
+
coerceBooleanLike,
|
|
616
|
+
coerceNumber
|
|
610
617
|
} from "./chunk-PQVCH2AE.js";
|
|
611
618
|
import {
|
|
612
619
|
graphemeUnits,
|
|
@@ -673,6 +680,9 @@ import {
|
|
|
673
680
|
assertIsDirectoryNotSymlink,
|
|
674
681
|
assertRealpathInsideRoot
|
|
675
682
|
} from "./chunk-GCGJW34D.js";
|
|
683
|
+
import {
|
|
684
|
+
parseFlexibleIsoTimestamp
|
|
685
|
+
} from "./chunk-P7FMDTKL.js";
|
|
676
686
|
import {
|
|
677
687
|
canReadNamespace,
|
|
678
688
|
defaultNamespaceForPrincipal,
|
|
@@ -6072,8 +6082,23 @@ var ExtractionPersistCoordinator = class {
|
|
|
6072
6082
|
);
|
|
6073
6083
|
const requireSpansPendingStatus = this.deps.config.provenance?.requireSpans === true && fact.requireSpansPending === true ? "pending_review" : void 0;
|
|
6074
6084
|
const faithfulnessEnforceStatus = faithfulnessGateStatus ?? requireSpansPendingStatus ?? injectionScreenStatus;
|
|
6085
|
+
const novelty = await applyNoveltyGate({
|
|
6086
|
+
enabled: this.deps.config["noveltyGateEnabled"] === true,
|
|
6087
|
+
addThreshold: this.deps.config.noveltyAddThreshold,
|
|
6088
|
+
noopThreshold: this.deps.config.noveltyNoopThreshold,
|
|
6089
|
+
lookup: async () => embeddingsFromCosineHits(
|
|
6090
|
+
await this.deps.semanticDedupLookup(
|
|
6091
|
+
fact.content,
|
|
6092
|
+
this.deps.config.semanticDedupCandidates,
|
|
6093
|
+
targetStorage
|
|
6094
|
+
),
|
|
6095
|
+
// Same connector scoping as decideSemanticDedup below: a
|
|
6096
|
+
// cross-connector neighbor must not noop this candidate.
|
|
6097
|
+
{ candidateConnector: sourceContext?.sourceConnector }
|
|
6098
|
+
)
|
|
6099
|
+
});
|
|
6075
6100
|
let pendingSemanticSkip = null;
|
|
6076
|
-
if (resolvePipelineProcessingCapabilities(this.deps.config).semanticDedup && injectionScreenStatus !== "pending_review") {
|
|
6101
|
+
if (novelty.decision !== "add" && resolvePipelineProcessingCapabilities(this.deps.config).semanticDedup && injectionScreenStatus !== "pending_review") {
|
|
6077
6102
|
let semanticDecision;
|
|
6078
6103
|
if (batchBackendUnavailable) {
|
|
6079
6104
|
semanticDecision = { action: "keep", reason: "backend_unavailable" };
|
|
@@ -6149,11 +6174,11 @@ var ExtractionPersistCoordinator = class {
|
|
|
6149
6174
|
}
|
|
6150
6175
|
}
|
|
6151
6176
|
const isCorrection = writeCategory === "correction";
|
|
6152
|
-
if (pendingSemanticSkip && !contradictionDetected && !isCorrection && faithfulnessEnforceStatus !== "pending_review") {
|
|
6177
|
+
if ((pendingSemanticSkip || novelty.decision === "noop") && !contradictionDetected && !isCorrection && faithfulnessEnforceStatus !== "pending_review") {
|
|
6153
6178
|
log.debug(
|
|
6154
|
-
`dedup: skipping semantic near-duplicate fact "${fact.content.slice(0, 60).replace(/\s+/g, " ")}\u2026" score=${pendingSemanticSkip
|
|
6179
|
+
`dedup: skipping ${pendingSemanticSkip ? "semantic near-duplicate" : "novelty-noop"} fact "${fact.content.slice(0, 60).replace(/\s+/g, " ")}\u2026" score=${(pendingSemanticSkip?.topScore ?? novelty.score).toFixed(
|
|
6155
6180
|
3
|
|
6156
|
-
)} neighbor=${pendingSemanticSkip.
|
|
6181
|
+
)} neighbor=${pendingSemanticSkip?.topId ?? novelty.neighborId}`
|
|
6157
6182
|
);
|
|
6158
6183
|
dedupedCount++;
|
|
6159
6184
|
continue;
|
|
@@ -18959,14 +18984,14 @@ var NamespaceReadFanoutCoordinator = class {
|
|
|
18959
18984
|
for (const { memory, namespace } of memories) {
|
|
18960
18985
|
const status = memory.frontmatter.status ?? "active";
|
|
18961
18986
|
if (!options?.allowArchived && status !== "active") continue;
|
|
18962
|
-
const
|
|
18987
|
+
const haystack2 = [
|
|
18963
18988
|
memory.content,
|
|
18964
18989
|
memory.frontmatter.category,
|
|
18965
18990
|
...memory.frontmatter.tags ?? []
|
|
18966
18991
|
].join(" ").toLowerCase();
|
|
18967
18992
|
let hits = 0;
|
|
18968
18993
|
for (const token of tokens) {
|
|
18969
|
-
if (
|
|
18994
|
+
if (haystack2.includes(token)) hits += 1;
|
|
18970
18995
|
}
|
|
18971
18996
|
const score = tokens.length > 0 ? hits / tokens.length : 0.01;
|
|
18972
18997
|
if (tokens.length > 0 && hits === 0) continue;
|
|
@@ -19182,7 +19207,11 @@ var RecallEntryCoordinator = class {
|
|
|
19182
19207
|
publishRecallResults(options) {
|
|
19183
19208
|
const sectionId = "memories";
|
|
19184
19209
|
const trustByPath = options.trustByPath ?? null;
|
|
19185
|
-
const injectable =
|
|
19210
|
+
const injectable = applyRecallStateViews(
|
|
19211
|
+
trustByPath ? options.results.filter((r) => !trustResultFor(trustByPath, r)?.quarantined) : options.results,
|
|
19212
|
+
options.retrievalQuery,
|
|
19213
|
+
this.deps.config
|
|
19214
|
+
);
|
|
19186
19215
|
if (injectable.length === 0) return;
|
|
19187
19216
|
const formatted = this.deps.recallResultFormatter.formatQmdResultEntries(
|
|
19188
19217
|
options.title,
|
|
@@ -26299,6 +26328,306 @@ function applyTimelineCorrections(cards, corrections) {
|
|
|
26299
26328
|
});
|
|
26300
26329
|
}
|
|
26301
26330
|
|
|
26331
|
+
// src/activity/timeline/query.ts
|
|
26332
|
+
var RANGE_FORMATS = ["cards", "compact"];
|
|
26333
|
+
var MS_PER_DAY = 864e5;
|
|
26334
|
+
var DEFAULT_MAX_RANGE_DAYS = 31;
|
|
26335
|
+
var DEFAULT_SEARCH_LIMIT = 10;
|
|
26336
|
+
var MIN_SEARCH_LIMIT = 1;
|
|
26337
|
+
var MAX_SEARCH_LIMIT = 50;
|
|
26338
|
+
var USAGE = `Usage: timeline <command> [options]
|
|
26339
|
+
|
|
26340
|
+
Commands:
|
|
26341
|
+
range --from <ISO> --to <ISO> [--format cards|compact] [--categories id,id] [--include-distractions]
|
|
26342
|
+
search --query <text> [--from <ISO>] [--to <ISO>] [--limit N]
|
|
26343
|
+
`;
|
|
26344
|
+
var VALUE_FLAGS = {
|
|
26345
|
+
"--from": true,
|
|
26346
|
+
"--to": true,
|
|
26347
|
+
"--format": true,
|
|
26348
|
+
"--categories": true,
|
|
26349
|
+
"--query": true,
|
|
26350
|
+
"--limit": true
|
|
26351
|
+
};
|
|
26352
|
+
var BOOLEAN_FLAGS = { "--include-distractions": true };
|
|
26353
|
+
function parseInstant(value, label) {
|
|
26354
|
+
const ms = parseFlexibleIsoTimestamp(value);
|
|
26355
|
+
if (ms === null) {
|
|
26356
|
+
throw new TypeError(`${label} must be an ISO date or datetime`);
|
|
26357
|
+
}
|
|
26358
|
+
return ms;
|
|
26359
|
+
}
|
|
26360
|
+
function assertRange(fromMs, toMs, maxRangeDays) {
|
|
26361
|
+
if (fromMs > toMs) {
|
|
26362
|
+
throw new RangeError("reversed range: from must be <= to");
|
|
26363
|
+
}
|
|
26364
|
+
if (fromMs === toMs) return;
|
|
26365
|
+
if (toMs - fromMs > maxRangeDays * MS_PER_DAY) {
|
|
26366
|
+
throw new RangeError(`range exceeds timeline.qa.maxRangeDays (${maxRangeDays})`);
|
|
26367
|
+
}
|
|
26368
|
+
}
|
|
26369
|
+
function cardOverlaps(card, fromMs, toMs) {
|
|
26370
|
+
const start = Date.parse(card.startUtc);
|
|
26371
|
+
const end = Date.parse(card.endUtc);
|
|
26372
|
+
if (fromMs === toMs) return start <= fromMs && fromMs < end;
|
|
26373
|
+
return start < toMs && end > fromMs;
|
|
26374
|
+
}
|
|
26375
|
+
function passesFilters(card, categories, includeDistractions) {
|
|
26376
|
+
if (!includeDistractions && card.distraction === true) return false;
|
|
26377
|
+
if (categories && !categories.has(card.categoryId)) return false;
|
|
26378
|
+
return true;
|
|
26379
|
+
}
|
|
26380
|
+
function filterRange(cards, fromMs, toMs, categories, includeDistractions) {
|
|
26381
|
+
return cards.filter(
|
|
26382
|
+
(card) => cardOverlaps(card, fromMs, toMs) && passesFilters(card, categories, includeDistractions)
|
|
26383
|
+
);
|
|
26384
|
+
}
|
|
26385
|
+
function toCompact(cards, from) {
|
|
26386
|
+
const day = from.length >= 10 ? from.slice(0, 10) : cards[0]?.dayKey ?? from;
|
|
26387
|
+
return {
|
|
26388
|
+
day,
|
|
26389
|
+
cards: cards.map((card) => ({
|
|
26390
|
+
start: card.startUtc,
|
|
26391
|
+
end: card.endUtc,
|
|
26392
|
+
category: card.categoryId,
|
|
26393
|
+
title: card.title,
|
|
26394
|
+
summary: card.summary
|
|
26395
|
+
}))
|
|
26396
|
+
};
|
|
26397
|
+
}
|
|
26398
|
+
function queryTimelineRange(cards, query) {
|
|
26399
|
+
if (!RANGE_FORMATS.includes(query.format)) {
|
|
26400
|
+
throw new TypeError(`format must be one of: ${RANGE_FORMATS.join(", ")}`);
|
|
26401
|
+
}
|
|
26402
|
+
const maxRangeDays = query.maxRangeDays ?? DEFAULT_MAX_RANGE_DAYS;
|
|
26403
|
+
const fromMs = parseInstant(query.from, "from");
|
|
26404
|
+
const toMs = parseInstant(query.to, "to");
|
|
26405
|
+
assertRange(fromMs, toMs, maxRangeDays);
|
|
26406
|
+
const categories = query.categories ? new Set(query.categories) : void 0;
|
|
26407
|
+
const matched = filterRange(cards, fromMs, toMs, categories, query.includeDistractions === true);
|
|
26408
|
+
if (query.format === "compact") return toCompact(matched, query.from);
|
|
26409
|
+
return matched;
|
|
26410
|
+
}
|
|
26411
|
+
function haystack(card) {
|
|
26412
|
+
const parts = [card.title, card.summary];
|
|
26413
|
+
if (card.detailedSummary) parts.push(card.detailedSummary);
|
|
26414
|
+
return parts.join(" ").toLowerCase();
|
|
26415
|
+
}
|
|
26416
|
+
function tokenMatchCount(card, tokens) {
|
|
26417
|
+
const text = haystack(card);
|
|
26418
|
+
let count = 0;
|
|
26419
|
+
for (const token of tokens) {
|
|
26420
|
+
if (text.includes(token)) count += 1;
|
|
26421
|
+
}
|
|
26422
|
+
return count;
|
|
26423
|
+
}
|
|
26424
|
+
function queryTimelineSearch(cards, query) {
|
|
26425
|
+
if (!Array.isArray(cards)) return { ok: false, error: "store_unreadable" };
|
|
26426
|
+
const tokens = query.query.trim().toLowerCase().split(/\s+/).filter(Boolean);
|
|
26427
|
+
const limit = query.limit ?? DEFAULT_SEARCH_LIMIT;
|
|
26428
|
+
if (!Number.isInteger(limit) || limit < MIN_SEARCH_LIMIT || limit > MAX_SEARCH_LIMIT) {
|
|
26429
|
+
throw new RangeError(`limit must be an integer from ${MIN_SEARCH_LIMIT} to ${MAX_SEARCH_LIMIT}`);
|
|
26430
|
+
}
|
|
26431
|
+
let pool = cards;
|
|
26432
|
+
if (query.from !== void 0 || query.to !== void 0) {
|
|
26433
|
+
const fromMs = parseInstant(query.from ?? query.to, "from");
|
|
26434
|
+
const toMs = parseInstant(query.to ?? query.from, "to");
|
|
26435
|
+
assertRange(fromMs, toMs, DEFAULT_MAX_RANGE_DAYS);
|
|
26436
|
+
pool = filterRange(cards, fromMs, toMs, void 0, true);
|
|
26437
|
+
}
|
|
26438
|
+
if (tokens.length === 0) return { ok: true, results: [] };
|
|
26439
|
+
const ranked = pool.map((card) => ({ card, matches: tokenMatchCount(card, tokens) })).filter((row) => row.matches > 0).sort((a, b) => {
|
|
26440
|
+
if (a.matches !== b.matches) return b.matches - a.matches;
|
|
26441
|
+
const recency = Date.parse(b.card.endUtc) - Date.parse(a.card.endUtc);
|
|
26442
|
+
if (recency !== 0) return recency;
|
|
26443
|
+
return a.card.id < b.card.id ? -1 : a.card.id > b.card.id ? 1 : 0;
|
|
26444
|
+
}).slice(0, limit).map((row) => row.card);
|
|
26445
|
+
return { ok: true, results: ranked };
|
|
26446
|
+
}
|
|
26447
|
+
function parseFlags(args) {
|
|
26448
|
+
const flags = /* @__PURE__ */ new Map();
|
|
26449
|
+
const positional = [];
|
|
26450
|
+
for (let i = 0; i < args.length; i++) {
|
|
26451
|
+
const arg = args[i];
|
|
26452
|
+
if (!arg.startsWith("--")) {
|
|
26453
|
+
positional.push(arg);
|
|
26454
|
+
continue;
|
|
26455
|
+
}
|
|
26456
|
+
if (VALUE_FLAGS[arg] === true) {
|
|
26457
|
+
const value = args[i + 1];
|
|
26458
|
+
if (value === void 0 || value.startsWith("--")) {
|
|
26459
|
+
throw new TypeError(`flag ${arg} requires a value`);
|
|
26460
|
+
}
|
|
26461
|
+
flags.set(arg, value);
|
|
26462
|
+
i += 1;
|
|
26463
|
+
continue;
|
|
26464
|
+
}
|
|
26465
|
+
if (BOOLEAN_FLAGS[arg] === true) {
|
|
26466
|
+
flags.set(arg, true);
|
|
26467
|
+
continue;
|
|
26468
|
+
}
|
|
26469
|
+
const known = [...Object.keys(VALUE_FLAGS), ...Object.keys(BOOLEAN_FLAGS)].sort().join(", ");
|
|
26470
|
+
throw new TypeError(`unknown flag ${arg} (valid: ${known})`);
|
|
26471
|
+
}
|
|
26472
|
+
return { flags, positional };
|
|
26473
|
+
}
|
|
26474
|
+
function flagString(flags, name) {
|
|
26475
|
+
const value = flags.get(name);
|
|
26476
|
+
return typeof value === "string" ? value : void 0;
|
|
26477
|
+
}
|
|
26478
|
+
async function runTimelineCliCommand(deps, args, io) {
|
|
26479
|
+
const [command, ...rest] = args;
|
|
26480
|
+
try {
|
|
26481
|
+
if (command === void 0 || command === "help" || command === "--help") {
|
|
26482
|
+
io.stdout.write(USAGE);
|
|
26483
|
+
return command === void 0 ? 1 : 0;
|
|
26484
|
+
}
|
|
26485
|
+
if (deps.timelineEnabled === false || !deps.qa.enabled) {
|
|
26486
|
+
io.stderr.write("timeline qa disabled \u2014 set activity.timeline.qa.enabled=true\n");
|
|
26487
|
+
return 1;
|
|
26488
|
+
}
|
|
26489
|
+
const { flags } = parseFlags(rest);
|
|
26490
|
+
if (command === "range") {
|
|
26491
|
+
const from = flagString(flags, "--from");
|
|
26492
|
+
const to = flagString(flags, "--to");
|
|
26493
|
+
if (!from || !to) throw new TypeError("range requires --from and --to");
|
|
26494
|
+
if (!Array.isArray(deps.cards)) {
|
|
26495
|
+
io.stderr.write("store_unreadable\n");
|
|
26496
|
+
return 1;
|
|
26497
|
+
}
|
|
26498
|
+
const formatRaw = flagString(flags, "--format") ?? "compact";
|
|
26499
|
+
if (formatRaw !== "cards" && formatRaw !== "compact") {
|
|
26500
|
+
throw new TypeError("format must be one of: cards, compact");
|
|
26501
|
+
}
|
|
26502
|
+
const categoriesRaw = flagString(flags, "--categories");
|
|
26503
|
+
const result = queryTimelineRange(deps.cards, {
|
|
26504
|
+
from,
|
|
26505
|
+
to,
|
|
26506
|
+
format: formatRaw,
|
|
26507
|
+
categories: categoriesRaw ? categoriesRaw.split(",").filter(Boolean) : void 0,
|
|
26508
|
+
includeDistractions: flags.get("--include-distractions") === true,
|
|
26509
|
+
maxRangeDays: deps.qa.maxRangeDays
|
|
26510
|
+
});
|
|
26511
|
+
io.stdout.write(`${JSON.stringify(result)}
|
|
26512
|
+
`);
|
|
26513
|
+
return 0;
|
|
26514
|
+
}
|
|
26515
|
+
if (command === "search") {
|
|
26516
|
+
const q = flagString(flags, "--query");
|
|
26517
|
+
if (q === void 0) throw new TypeError("search requires --query");
|
|
26518
|
+
const limitRaw = flagString(flags, "--limit");
|
|
26519
|
+
const limit = limitRaw === void 0 ? void 0 : Number(limitRaw);
|
|
26520
|
+
if (limitRaw !== void 0 && !Number.isInteger(limit)) {
|
|
26521
|
+
throw new RangeError("limit must be an integer from 1 to 50");
|
|
26522
|
+
}
|
|
26523
|
+
const result = queryTimelineSearch(deps.cards, {
|
|
26524
|
+
query: q,
|
|
26525
|
+
from: flagString(flags, "--from"),
|
|
26526
|
+
to: flagString(flags, "--to"),
|
|
26527
|
+
limit
|
|
26528
|
+
});
|
|
26529
|
+
io.stdout.write(`${JSON.stringify(result)}
|
|
26530
|
+
`);
|
|
26531
|
+
return result.ok ? 0 : 1;
|
|
26532
|
+
}
|
|
26533
|
+
throw new TypeError(`unknown command ${command} (valid: range, search)`);
|
|
26534
|
+
} catch (err) {
|
|
26535
|
+
io.stderr.write(`${err instanceof Error ? err.message : String(err)}
|
|
26536
|
+
`);
|
|
26537
|
+
return 1;
|
|
26538
|
+
}
|
|
26539
|
+
}
|
|
26540
|
+
|
|
26541
|
+
// src/activity/timeline/journal-recap.ts
|
|
26542
|
+
function formatMinutes(ms) {
|
|
26543
|
+
return `${Math.round(ms / 6e4)}m`;
|
|
26544
|
+
}
|
|
26545
|
+
function clipToWindow(cards, winStart, winEnd) {
|
|
26546
|
+
const clipped = [];
|
|
26547
|
+
for (const card of cards) {
|
|
26548
|
+
const start = Date.parse(card.startUtc);
|
|
26549
|
+
const end = Date.parse(card.endUtc);
|
|
26550
|
+
if (!Number.isFinite(start) || !Number.isFinite(end)) continue;
|
|
26551
|
+
const startMs = Math.max(start, winStart);
|
|
26552
|
+
const endMs = Math.min(end, winEnd);
|
|
26553
|
+
if (endMs <= startMs) continue;
|
|
26554
|
+
clipped.push({ card, startMs, endMs, durationMs: endMs - startMs });
|
|
26555
|
+
}
|
|
26556
|
+
clipped.sort((left, right) => {
|
|
26557
|
+
const byStart = left.startMs - right.startMs;
|
|
26558
|
+
if (byStart !== 0) return byStart;
|
|
26559
|
+
const byTitle = left.card.title.localeCompare(right.card.title);
|
|
26560
|
+
if (byTitle !== 0) return byTitle;
|
|
26561
|
+
return left.card.id.localeCompare(right.card.id);
|
|
26562
|
+
});
|
|
26563
|
+
return clipped;
|
|
26564
|
+
}
|
|
26565
|
+
function categoryLines(clipped) {
|
|
26566
|
+
const totals = /* @__PURE__ */ new Map();
|
|
26567
|
+
for (const row of clipped) {
|
|
26568
|
+
totals.set(row.card.categoryId, (totals.get(row.card.categoryId) ?? 0) + row.durationMs);
|
|
26569
|
+
}
|
|
26570
|
+
const rows = [...totals.entries()].sort((left, right) => {
|
|
26571
|
+
const byDuration = right[1] - left[1];
|
|
26572
|
+
return byDuration !== 0 ? byDuration : left[0].localeCompare(right[0]);
|
|
26573
|
+
});
|
|
26574
|
+
if (rows.length === 0) return ["_No categories._"];
|
|
26575
|
+
return rows.map(([categoryId, durationMs]) => `- ${formatMinutes(durationMs)} ${categoryId}`);
|
|
26576
|
+
}
|
|
26577
|
+
function mergeIntervals(intervals) {
|
|
26578
|
+
const ordered = [...intervals].sort((left, right) => left[0] - right[0] || left[1] - right[1]);
|
|
26579
|
+
const merged = [];
|
|
26580
|
+
for (const [start, end] of ordered) {
|
|
26581
|
+
const last = merged[merged.length - 1];
|
|
26582
|
+
if (!last || start > last[1]) merged.push([start, end]);
|
|
26583
|
+
else last[1] = Math.max(last[1], end);
|
|
26584
|
+
}
|
|
26585
|
+
return merged;
|
|
26586
|
+
}
|
|
26587
|
+
function countGaps(winStart, winEnd, intervals) {
|
|
26588
|
+
const merged = mergeIntervals(intervals);
|
|
26589
|
+
let gaps = 0;
|
|
26590
|
+
let cursor = winStart;
|
|
26591
|
+
for (const [start, end] of merged) {
|
|
26592
|
+
if (start > cursor) gaps += 1;
|
|
26593
|
+
cursor = Math.max(cursor, end);
|
|
26594
|
+
}
|
|
26595
|
+
if (cursor < winEnd) gaps += 1;
|
|
26596
|
+
return gaps;
|
|
26597
|
+
}
|
|
26598
|
+
function renderDeterministicJournal(cards, options) {
|
|
26599
|
+
const window = activityDayWindow(options.date, options.timezone);
|
|
26600
|
+
const winStart = Date.parse(window.startUtc);
|
|
26601
|
+
const winEnd = Date.parse(window.endUtc);
|
|
26602
|
+
const clipped = clipToWindow(cards, winStart, winEnd);
|
|
26603
|
+
const idle = clipped.filter((row) => row.card.kind === "idle").length;
|
|
26604
|
+
const pause = clipped.filter((row) => row.card.kind === "pause").length;
|
|
26605
|
+
const gaps = countGaps(
|
|
26606
|
+
winStart,
|
|
26607
|
+
winEnd,
|
|
26608
|
+
clipped.map((row) => [row.startMs, row.endMs])
|
|
26609
|
+
);
|
|
26610
|
+
const cardLines = clipped.length === 0 ? ["_No cards._"] : clipped.map((row) => `- ${formatMinutes(row.durationMs)} ${row.card.title}`);
|
|
26611
|
+
return [
|
|
26612
|
+
`# Journal \u2014 ${options.date} (${options.timezone})`,
|
|
26613
|
+
"",
|
|
26614
|
+
"## Categories",
|
|
26615
|
+
"",
|
|
26616
|
+
...categoryLines(clipped),
|
|
26617
|
+
"",
|
|
26618
|
+
"## Cards",
|
|
26619
|
+
"",
|
|
26620
|
+
...cardLines,
|
|
26621
|
+
"",
|
|
26622
|
+
"## Gaps / idle / pause",
|
|
26623
|
+
"",
|
|
26624
|
+
`- Gaps: ${gaps}`,
|
|
26625
|
+
`- Idle: ${idle}`,
|
|
26626
|
+
`- Pause: ${pause}`,
|
|
26627
|
+
""
|
|
26628
|
+
].join("\n");
|
|
26629
|
+
}
|
|
26630
|
+
|
|
26302
26631
|
// src/activity/memory-gen.ts
|
|
26303
26632
|
var ACTIVITY_ALLOWED_CATEGORIES = {
|
|
26304
26633
|
decision: true,
|
|
@@ -26555,6 +26884,54 @@ async function generateActivityMemories(date, digestBody, config, deps) {
|
|
|
26555
26884
|
return result;
|
|
26556
26885
|
}
|
|
26557
26886
|
|
|
26887
|
+
// src/activity/privacy.ts
|
|
26888
|
+
var MS_PER_DAY2 = 864e5;
|
|
26889
|
+
function asRecord(value, name) {
|
|
26890
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
26891
|
+
throw new TypeError(`${name} must be an object`);
|
|
26892
|
+
}
|
|
26893
|
+
return value;
|
|
26894
|
+
}
|
|
26895
|
+
function parseGate(value, key, fallback) {
|
|
26896
|
+
if (value === void 0) return fallback;
|
|
26897
|
+
const parsed = coerceBooleanLike(value, key);
|
|
26898
|
+
if (parsed === void 0) throw new TypeError(`${key} must be a boolean`);
|
|
26899
|
+
return parsed;
|
|
26900
|
+
}
|
|
26901
|
+
function parseActivityPrivacy(raw) {
|
|
26902
|
+
if (raw === void 0 || raw === null) {
|
|
26903
|
+
return { enabled: false, retentionDays: 0, exportIncludeObservations: false };
|
|
26904
|
+
}
|
|
26905
|
+
const config = asRecord(raw, "activity");
|
|
26906
|
+
const enabled = parseGate(config.enabled, "activity.enabled", false);
|
|
26907
|
+
let retentionDays = 0;
|
|
26908
|
+
if (config.retentionDays !== void 0) {
|
|
26909
|
+
const parsed = coerceNumber(config.retentionDays, "activity.retentionDays");
|
|
26910
|
+
if (parsed === void 0 || !Number.isInteger(parsed) || parsed < 0) {
|
|
26911
|
+
throw new RangeError("activity.retentionDays must be a non-negative integer");
|
|
26912
|
+
}
|
|
26913
|
+
retentionDays = parsed;
|
|
26914
|
+
}
|
|
26915
|
+
const exportIncludeObservations = parseGate(
|
|
26916
|
+
config.exportIncludeObservations,
|
|
26917
|
+
"activity.exportIncludeObservations",
|
|
26918
|
+
false
|
|
26919
|
+
);
|
|
26920
|
+
return { enabled, retentionDays, exportIncludeObservations };
|
|
26921
|
+
}
|
|
26922
|
+
function shouldRetain(capturedAtMs, nowMs, retentionDays, enabled = true) {
|
|
26923
|
+
if (!enabled) return false;
|
|
26924
|
+
if (retentionDays < 0 || !Number.isInteger(retentionDays)) {
|
|
26925
|
+
throw new RangeError("activity.retentionDays must be a non-negative integer");
|
|
26926
|
+
}
|
|
26927
|
+
if (retentionDays === 0) return true;
|
|
26928
|
+
return nowMs - capturedAtMs < retentionDays * MS_PER_DAY2;
|
|
26929
|
+
}
|
|
26930
|
+
function observationsForExport(observations, policy) {
|
|
26931
|
+
if (!policy.enabled || !policy.exportIncludeObservations) return [];
|
|
26932
|
+
return observations;
|
|
26933
|
+
}
|
|
26934
|
+
|
|
26558
26935
|
// src/session-summaries/index.ts
|
|
26559
26936
|
import { createHash as createHash10 } from "crypto";
|
|
26560
26937
|
import { lstat as lstat3, mkdir as mkdir7, readFile as readFile7, readdir as readdir4, rename, rm, stat as stat4, writeFile as writeFile7 } from "fs/promises";
|
|
@@ -27605,8 +27982,16 @@ export {
|
|
|
27605
27982
|
timelineCorrectionDatabasePath,
|
|
27606
27983
|
TimelineCorrectionStore,
|
|
27607
27984
|
applyTimelineCorrections,
|
|
27985
|
+
queryTimelineRange,
|
|
27986
|
+
queryTimelineSearch,
|
|
27987
|
+
runTimelineCliCommand,
|
|
27988
|
+
renderDeterministicJournal,
|
|
27608
27989
|
isEligibleActivityFact,
|
|
27609
27990
|
generateActivityMemories,
|
|
27991
|
+
MS_PER_DAY2 as MS_PER_DAY,
|
|
27992
|
+
parseActivityPrivacy,
|
|
27993
|
+
shouldRetain,
|
|
27994
|
+
observationsForExport,
|
|
27610
27995
|
fuseMeeting,
|
|
27611
27996
|
buildMeetingRecordsForDay,
|
|
27612
27997
|
MeetingsBuilder,
|
|
@@ -27640,4 +28025,4 @@ export {
|
|
|
27640
28025
|
blendGraphExpandedRecallScore,
|
|
27641
28026
|
Orchestrator
|
|
27642
28027
|
};
|
|
27643
|
-
//# sourceMappingURL=chunk-
|
|
28028
|
+
//# sourceMappingURL=chunk-TCF4MU7L.js.map
|