@remnic/core 9.64.3 → 9.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/access-admin-ops-surface.d.ts +12 -11
- package/dist/access-admin-ops-surface.js +13 -13
- package/dist/access-authorization-probe.d.ts +12 -11
- package/dist/access-authorization-probe.js +14 -14
- package/dist/access-boundary.d.ts +12 -11
- package/dist/access-boundary.js +13 -13
- package/dist/access-cli.js +51 -49
- 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 +13 -13
- 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 +15 -15
- package/dist/access-http.d.ts +13 -12
- package/dist/access-http.js +24 -24
- package/dist/access-identity-continuity-surface.d.ts +10 -9
- package/dist/access-identity-continuity-surface.js +13 -13
- package/dist/access-lcm-surface.d.ts +12 -11
- package/dist/access-lcm-surface.js +13 -13
- package/dist/access-mcp.d.ts +12 -11
- package/dist/access-mcp.js +18 -18
- package/dist/access-memory-search-fanout.d.ts +3 -2
- package/dist/{access-namespace-preflight-CYeI1R2_.d.ts → access-namespace-preflight-AqlR0w02.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +4 -3
- package/dist/access-namespace-preflight.js +13 -13
- package/dist/access-observe-write-surface.d.ts +12 -11
- package/dist/access-observe-write-surface.js +13 -13
- package/dist/access-offline-manifest.d.ts +10 -9
- package/dist/access-operations-batch.js +14 -14
- package/dist/access-operations.d.ts +12 -11
- package/dist/access-operations.js +17 -17
- package/dist/access-recall-concurrency.d.ts +12 -11
- package/dist/access-recall-concurrency.js +13 -13
- package/dist/access-recall-response.d.ts +12 -11
- package/dist/access-recall-response.js +13 -13
- package/dist/access-recall-surface.d.ts +12 -11
- package/dist/access-recall-surface.js +13 -13
- package/dist/{access-service-BKtdXnyk.d.ts → access-service-BHmtl9BA.d.ts} +7 -7
- package/dist/access-service-helpers.d.ts +12 -11
- package/dist/access-service.d.ts +12 -11
- package/dist/access-service.js +13 -13
- package/dist/access-surface-catalog.d.ts +12 -11
- package/dist/access-surface-catalog.js +15 -15
- 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 +5 -5
- 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/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-gBoyN-IW.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +2 -1
- package/dist/causal-consolidation.d.ts +2 -1
- package/dist/causal-consolidation.js +6 -6
- package/dist/causal-trajectory-graph.d.ts +2 -1
- package/dist/{chunk-TY35YQ6E.js → chunk-34BMUGRA.js} +2 -2
- package/dist/{chunk-XH4IQVTN.js → chunk-4E6IJCLC.js} +2 -2
- package/dist/{chunk-LZKCMK3U.js → chunk-4GD7YV4Y.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-XZUCNVGE.js → chunk-A4VJKT2H.js} +8 -8
- package/dist/{chunk-NO7B6DRB.js → chunk-A6LBDIFS.js} +2 -2
- package/dist/{chunk-ON2P3SHG.js → chunk-CCP6LXQJ.js} +2 -2
- package/dist/{chunk-DHKV6E4A.js → chunk-CESQ4CMC.js} +2 -2
- package/dist/{chunk-RWLRKMZK.js → chunk-E6EQTCOQ.js} +2 -2
- package/dist/{chunk-DG6MJD7W.js → chunk-FFPBTNLC.js} +2 -2
- package/dist/{chunk-PE76XIDM.js → chunk-GOGHZVY3.js} +3 -3
- package/dist/{chunk-6LTCUN3T.js → chunk-GQ5OJVTM.js} +2 -2
- package/dist/{chunk-GVRLED7R.js → chunk-H6B6GPVH.js} +2 -2
- package/dist/{chunk-DA2O3F5V.js → chunk-HBKFYXBA.js} +9 -9
- package/dist/{chunk-DC4FJY2G.js → chunk-HDD4RRIX.js} +3 -3
- package/dist/{chunk-LOETWOEB.js → chunk-IWUN4RZL.js} +2 -2
- package/dist/{chunk-246HFJVG.js → chunk-JNSLW2O4.js} +2 -2
- package/dist/{chunk-VLES5S4K.js → chunk-JXMXTV6C.js} +27 -27
- package/dist/{chunk-7V3AZWWZ.js → chunk-K7JMKLKV.js} +9 -7
- package/dist/{chunk-7V3AZWWZ.js.map → chunk-K7JMKLKV.js.map} +1 -1
- package/dist/{chunk-TKI2WOL5.js → chunk-KLPVXLQJ.js} +2 -2
- package/dist/{chunk-YFQTDE7N.js → chunk-LA2MSK23.js} +2 -2
- package/dist/{chunk-IJXECCUV.js → chunk-LWVG6U7L.js} +2 -2
- package/dist/{chunk-7RAJ3GXO.js → chunk-M6L7HI7R.js} +2 -156
- package/dist/chunk-M6L7HI7R.js.map +1 -0
- package/dist/{chunk-A2IBK3TG.js → chunk-MXJU4GCA.js} +2 -2
- package/dist/{chunk-SB6YBB2V.js → chunk-NTERJOFA.js} +2 -2
- package/dist/{chunk-H5CGAD7L.js → chunk-OXL5QKTV.js} +1 -1
- package/dist/{chunk-EJDLQRUO.js → chunk-P4CQCL27.js} +2 -2
- package/dist/{chunk-44DSGZFF.js → chunk-PDKBKBC2.js} +2 -2
- package/dist/{chunk-7BVO64UC.js → chunk-PHX3ET3C.js} +2 -2
- package/dist/{chunk-PVIXAMWM.js → chunk-QCNB4BRE.js} +2 -2
- package/dist/{chunk-JCSUNXYJ.js → chunk-RNKNL5GQ.js} +3 -3
- package/dist/{chunk-3LOQN3TO.js → chunk-RQYV6M2T.js} +3 -3
- package/dist/{chunk-CKZHKFY3.js → chunk-RRJUMSFX.js} +3 -3
- package/dist/{chunk-C6AKYOFO.js → chunk-T6QMNVMO.js} +2 -2
- package/dist/{chunk-Z6CJLYXT.js → chunk-U56TGYVS.js} +3 -3
- package/dist/{chunk-MJRVF7SF.js → chunk-UPIKAT5A.js} +22 -22
- package/dist/{chunk-KRPE7ANR.js → chunk-VNIETTMR.js} +2 -2
- package/dist/{chunk-3A46U7XG.js → chunk-WHA6ISFX.js} +2 -2
- package/dist/chunk-XAB6STPO.js +160 -0
- package/dist/chunk-XAB6STPO.js.map +1 -0
- package/dist/{chunk-WBM5NR4E.js → chunk-Y5UT73VZ.js} +2 -2
- package/dist/{chunk-XACYILRA.js → chunk-YHSNAGN3.js} +8 -8
- package/dist/{chunk-ZSYE2QVJ.js → chunk-YIZRTHHF.js} +2 -2
- package/dist/{chunk-UMDZXW5J.js → chunk-YQ3CBLL4.js} +5 -85
- package/dist/chunk-YQ3CBLL4.js.map +1 -0
- package/dist/{chunk-2QI2JBLQ.js → chunk-ZAI5R6DW.js} +2 -2
- package/dist/{chunk-55SJFHVD.js → chunk-ZFBZ4QTS.js} +4 -4
- package/dist/{cli-CLvBewKf.d.ts → cli-BpwTNHTm.d.ts} +5 -5
- package/dist/cli.d.ts +14 -13
- package/dist/cli.js +43 -41
- package/dist/coding/pre-action-gate.d.ts +2 -1
- package/dist/compounding/engine.d.ts +3 -2
- package/dist/compounding/engine.js +5 -5
- 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 +5 -5
- package/dist/connectors/codex-materialize.d.ts +2 -1
- package/dist/connectors/index.d.ts +2 -1
- package/dist/connectors/index.js +5 -5
- 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 +7 -7
- 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 +7 -7
- 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-QYJ1-c2M.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 +5 -5
- 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 +14 -14
- 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 +5 -5
- 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-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.d.ts +2 -1
- 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 +22 -21
- package/dist/index.js +56 -53
- package/dist/intent.d.ts +2 -1
- package/dist/lcm/engine.d.ts +2 -1
- package/dist/lcm/index.d.ts +2 -1
- 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-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 +5 -5
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +5 -5
- package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-projection.js +6 -6
- package/dist/{maintenance-DITiehFX.d.ts → maintenance-BjEr3WKG.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 +6 -6
- package/dist/namespaces/principal.d.ts +2 -1
- package/dist/namespaces/search.d.ts +2 -1
- package/dist/namespaces/search.js +3 -3
- package/dist/namespaces/storage.d.ts +4 -3
- package/dist/namespaces/storage.js +5 -5
- 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 +8 -8
- package/dist/operator-doctor-replica.d.ts +2 -1
- package/dist/operator-toolkit.d.ts +4 -3
- package/dist/operator-toolkit.js +17 -15
- package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
- package/dist/orchestration/maintenance.d.ts +5 -4
- package/dist/orchestration/maintenance.js +13 -12
- package/dist/{orchestrator-6fPa2l9x.d.ts → orchestrator-CC4USYcD.d.ts} +8 -8
- package/dist/orchestrator.d.ts +10 -9
- package/dist/orchestrator.js +51 -49
- package/dist/patterns-cli.d.ts +2 -1
- package/dist/{pipeline-DHpYtfM3.d.ts → pipeline-DWgAgvJN.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-CkQC8VpD.d.ts} +1 -1
- package/dist/{qmd-BaX31tM0.d.ts → qmd-BJGhj4ta.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/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-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-renderer.d.ts +2 -1
- package/dist/recall-xray.d.ts +2 -1
- 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/{scope-profiles-1hYWJ9bM.d.ts → scope-profiles-C4PdBYKc.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 +2 -2
- package/dist/search/index.d.ts +2 -1
- package/dist/search/index.js +4 -4
- package/dist/search/lancedb-backend.d.ts +2 -1
- package/dist/search/meilisearch-backend.d.ts +2 -1
- package/dist/search/noop-backend.d.ts +2 -1
- package/dist/search/orama-backend.d.ts +2 -1
- package/dist/search/port.d.ts +2 -1
- package/dist/search/remote-backend.d.ts +2 -1
- package/dist/{semantic-consolidation-Chmddvcg.d.ts → semantic-consolidation-5-HOmIhL.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +3 -2
- package/dist/semantic-consolidation.js +6 -6
- package/dist/semantic-rule-promotion.js +5 -5
- package/dist/semantic-rule-verifier.d.ts +2 -1
- package/dist/semantic-rule-verifier.js +5 -5
- package/dist/{service-DMs_dCCg.d.ts → service-8pDy6w8u.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 +5 -5
- package/dist/{storage-CzorrpcN.d.ts → storage-VpDzURiA.d.ts} +1 -1
- package/dist/storage.d.ts +3 -2
- package/dist/storage.js +4 -4
- package/dist/summarizer.d.ts +2 -1
- package/dist/summary-snapshot.d.ts +2 -1
- package/dist/support-passport/index.d.ts +15 -14
- package/dist/support-passport/index.js +16 -16
- 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/trust-score-stage.d.ts +2 -1
- package/dist/trust-score.d.ts +2 -1
- package/dist/types-CM86alG1.d.ts +89 -0
- package/dist/{types-BP5MC8UU.d.ts → types-D9gKdB79.d.ts} +1 -23
- package/dist/types.d.ts +2 -1
- package/dist/utility-runtime.d.ts +2 -1
- package/dist/verified-recall.js +5 -5
- package/dist/who-knows-cli.d.ts +12 -11
- package/dist/who-knows-cli.js +6 -6
- package/dist/who-knows.d.ts +12 -11
- package/dist/who-knows.js +5 -5
- package/dist/write-envelope.d.ts +2 -1
- package/package.json +12 -2
- package/src/location/adapter-isolation.test.ts +44 -0
- package/src/location/index.ts +16 -0
- package/dist/chunk-7RAJ3GXO.js.map +0 -1
- package/dist/chunk-UMDZXW5J.js.map +0 -1
- /package/dist/{chunk-TY35YQ6E.js.map → chunk-34BMUGRA.js.map} +0 -0
- /package/dist/{chunk-XH4IQVTN.js.map → chunk-4E6IJCLC.js.map} +0 -0
- /package/dist/{chunk-LZKCMK3U.js.map → chunk-4GD7YV4Y.js.map} +0 -0
- /package/dist/{chunk-YXGU3MDQ.js.map → chunk-7PWWGYGO.js.map} +0 -0
- /package/dist/{chunk-XZUCNVGE.js.map → chunk-A4VJKT2H.js.map} +0 -0
- /package/dist/{chunk-NO7B6DRB.js.map → chunk-A6LBDIFS.js.map} +0 -0
- /package/dist/{chunk-ON2P3SHG.js.map → chunk-CCP6LXQJ.js.map} +0 -0
- /package/dist/{chunk-DHKV6E4A.js.map → chunk-CESQ4CMC.js.map} +0 -0
- /package/dist/{chunk-RWLRKMZK.js.map → chunk-E6EQTCOQ.js.map} +0 -0
- /package/dist/{chunk-DG6MJD7W.js.map → chunk-FFPBTNLC.js.map} +0 -0
- /package/dist/{chunk-PE76XIDM.js.map → chunk-GOGHZVY3.js.map} +0 -0
- /package/dist/{chunk-6LTCUN3T.js.map → chunk-GQ5OJVTM.js.map} +0 -0
- /package/dist/{chunk-GVRLED7R.js.map → chunk-H6B6GPVH.js.map} +0 -0
- /package/dist/{chunk-DA2O3F5V.js.map → chunk-HBKFYXBA.js.map} +0 -0
- /package/dist/{chunk-DC4FJY2G.js.map → chunk-HDD4RRIX.js.map} +0 -0
- /package/dist/{chunk-LOETWOEB.js.map → chunk-IWUN4RZL.js.map} +0 -0
- /package/dist/{chunk-246HFJVG.js.map → chunk-JNSLW2O4.js.map} +0 -0
- /package/dist/{chunk-VLES5S4K.js.map → chunk-JXMXTV6C.js.map} +0 -0
- /package/dist/{chunk-TKI2WOL5.js.map → chunk-KLPVXLQJ.js.map} +0 -0
- /package/dist/{chunk-YFQTDE7N.js.map → chunk-LA2MSK23.js.map} +0 -0
- /package/dist/{chunk-IJXECCUV.js.map → chunk-LWVG6U7L.js.map} +0 -0
- /package/dist/{chunk-A2IBK3TG.js.map → chunk-MXJU4GCA.js.map} +0 -0
- /package/dist/{chunk-SB6YBB2V.js.map → chunk-NTERJOFA.js.map} +0 -0
- /package/dist/{chunk-H5CGAD7L.js.map → chunk-OXL5QKTV.js.map} +0 -0
- /package/dist/{chunk-EJDLQRUO.js.map → chunk-P4CQCL27.js.map} +0 -0
- /package/dist/{chunk-44DSGZFF.js.map → chunk-PDKBKBC2.js.map} +0 -0
- /package/dist/{chunk-7BVO64UC.js.map → chunk-PHX3ET3C.js.map} +0 -0
- /package/dist/{chunk-PVIXAMWM.js.map → chunk-QCNB4BRE.js.map} +0 -0
- /package/dist/{chunk-JCSUNXYJ.js.map → chunk-RNKNL5GQ.js.map} +0 -0
- /package/dist/{chunk-3LOQN3TO.js.map → chunk-RQYV6M2T.js.map} +0 -0
- /package/dist/{chunk-CKZHKFY3.js.map → chunk-RRJUMSFX.js.map} +0 -0
- /package/dist/{chunk-C6AKYOFO.js.map → chunk-T6QMNVMO.js.map} +0 -0
- /package/dist/{chunk-Z6CJLYXT.js.map → chunk-U56TGYVS.js.map} +0 -0
- /package/dist/{chunk-MJRVF7SF.js.map → chunk-UPIKAT5A.js.map} +0 -0
- /package/dist/{chunk-KRPE7ANR.js.map → chunk-VNIETTMR.js.map} +0 -0
- /package/dist/{chunk-3A46U7XG.js.map → chunk-WHA6ISFX.js.map} +0 -0
- /package/dist/{chunk-WBM5NR4E.js.map → chunk-Y5UT73VZ.js.map} +0 -0
- /package/dist/{chunk-XACYILRA.js.map → chunk-YHSNAGN3.js.map} +0 -0
- /package/dist/{chunk-ZSYE2QVJ.js.map → chunk-YIZRTHHF.js.map} +0 -0
- /package/dist/{chunk-2QI2JBLQ.js.map → chunk-ZAI5R6DW.js.map} +0 -0
- /package/dist/{chunk-55SJFHVD.js.map → chunk-ZFBZ4QTS.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZAI5R6DW.js";
|
|
4
4
|
import {
|
|
5
5
|
bumpMemoryCorpusVersionForDir
|
|
6
6
|
} from "./chunk-XCB6QDL6.js";
|
|
@@ -765,4 +765,4 @@ export {
|
|
|
765
765
|
listMemoryGovernanceRuns,
|
|
766
766
|
readMemoryGovernanceRunArtifact
|
|
767
767
|
};
|
|
768
|
-
//# sourceMappingURL=chunk-
|
|
768
|
+
//# sourceMappingURL=chunk-WHA6ISFX.js.map
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import {
|
|
2
|
+
assertValidTimezone
|
|
3
|
+
} from "./chunk-M6L7HI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
coerceBooleanLike,
|
|
6
|
+
coerceNumber
|
|
7
|
+
} from "./chunk-PQVCH2AE.js";
|
|
8
|
+
|
|
9
|
+
// src/activity/config.ts
|
|
10
|
+
var EXTRACTION_MODES = ["off", "smart"];
|
|
11
|
+
var IMPORTANCE_LEVELS = ["critical", "high", "normal", "low", "trivial"];
|
|
12
|
+
var LOOPBACK_HOSTS = { localhost: true, "127.0.0.1": true, "::1": true };
|
|
13
|
+
function defaultActivityConfig() {
|
|
14
|
+
return {
|
|
15
|
+
enabled: false,
|
|
16
|
+
timezone: "UTC",
|
|
17
|
+
syncDays: 1,
|
|
18
|
+
autoSyncIntervalMinutes: 15,
|
|
19
|
+
sources: [],
|
|
20
|
+
extractionMode: "off",
|
|
21
|
+
sourceTrust: 0.6,
|
|
22
|
+
autoApproveTrust: 0.8,
|
|
23
|
+
reviewTrust: 0.5,
|
|
24
|
+
minConfidence: 0.7,
|
|
25
|
+
minImportance: "normal",
|
|
26
|
+
maxMemoriesPerDay: 0
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function asRecord(value, name) {
|
|
30
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
31
|
+
throw new TypeError(`${name} must be an object`);
|
|
32
|
+
}
|
|
33
|
+
return value;
|
|
34
|
+
}
|
|
35
|
+
function optionalString(value, name) {
|
|
36
|
+
if (value === void 0) return void 0;
|
|
37
|
+
if (typeof value !== "string" || value.length === 0) throw new TypeError(`${name} must be a non-empty string`);
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
function parseUnitInterval(value, key, fallback) {
|
|
41
|
+
if (value === void 0) return fallback;
|
|
42
|
+
const parsed = coerceNumber(value);
|
|
43
|
+
if (parsed === void 0 || !Number.isFinite(parsed) || parsed < 0 || parsed > 1) {
|
|
44
|
+
throw new RangeError(`activity.${key} must be a number in [0, 1]`);
|
|
45
|
+
}
|
|
46
|
+
return parsed;
|
|
47
|
+
}
|
|
48
|
+
function validateActivityBaseUrl(baseUrl) {
|
|
49
|
+
let parsed;
|
|
50
|
+
try {
|
|
51
|
+
parsed = new URL(baseUrl);
|
|
52
|
+
} catch {
|
|
53
|
+
throw new RangeError(`activity source baseUrl must be a valid URL: ${baseUrl}`);
|
|
54
|
+
}
|
|
55
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
|
|
56
|
+
throw new RangeError("activity source baseUrl must use HTTP or HTTPS");
|
|
57
|
+
}
|
|
58
|
+
const host = parsed.hostname.replace(/^\[|\]$/g, "");
|
|
59
|
+
if (LOOPBACK_HOSTS[host] !== true && !/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(host)) {
|
|
60
|
+
throw new RangeError(`activity source baseUrl must target a loopback host (got ${parsed.hostname})`);
|
|
61
|
+
}
|
|
62
|
+
return parsed;
|
|
63
|
+
}
|
|
64
|
+
function parseSource(value) {
|
|
65
|
+
const raw = asRecord(value, "activity source");
|
|
66
|
+
const machineLabel = optionalString(raw.machineLabel, "activity source machineLabel");
|
|
67
|
+
const baseUrl = optionalString(raw.baseUrl, "activity source baseUrl");
|
|
68
|
+
if (machineLabel === void 0 || baseUrl === void 0) {
|
|
69
|
+
throw new TypeError("activity source requires machineLabel and baseUrl");
|
|
70
|
+
}
|
|
71
|
+
if (machineLabel.trim().length === 0) {
|
|
72
|
+
throw new RangeError("activity source machineLabel must not be blank");
|
|
73
|
+
}
|
|
74
|
+
validateActivityBaseUrl(baseUrl);
|
|
75
|
+
const token = optionalString(raw.token, "activity source token");
|
|
76
|
+
return { machineLabel, baseUrl, ...token === void 0 ? {} : { token } };
|
|
77
|
+
}
|
|
78
|
+
function parseActivityConfig(raw) {
|
|
79
|
+
const defaults = defaultActivityConfig();
|
|
80
|
+
if (raw === void 0 || raw === null) {
|
|
81
|
+
return { ...defaults };
|
|
82
|
+
}
|
|
83
|
+
const config = asRecord(raw, "activity");
|
|
84
|
+
const enabledValue = coerceBooleanLike(config.enabled, "activity.enabled");
|
|
85
|
+
if (config.enabled !== void 0 && enabledValue === void 0) {
|
|
86
|
+
throw new TypeError("activity.enabled must be a boolean");
|
|
87
|
+
}
|
|
88
|
+
const timezone = optionalString(config.timezone, "activity.timezone") ?? "UTC";
|
|
89
|
+
assertValidTimezone(timezone);
|
|
90
|
+
const syncDaysValue = coerceNumber(config.syncDays, "activity.syncDays");
|
|
91
|
+
if (config.syncDays !== void 0 && syncDaysValue === void 0) {
|
|
92
|
+
throw new TypeError("activity.syncDays must be a finite number");
|
|
93
|
+
}
|
|
94
|
+
const syncDays = syncDaysValue ?? 1;
|
|
95
|
+
if (!Number.isInteger(syncDays) || syncDays < 1 || syncDays > 90) {
|
|
96
|
+
throw new RangeError("activity.syncDays must be an integer from 1 to 90");
|
|
97
|
+
}
|
|
98
|
+
const intervalValue = coerceNumber(config.autoSyncIntervalMinutes, "activity.autoSyncIntervalMinutes");
|
|
99
|
+
if (config.autoSyncIntervalMinutes !== void 0 && intervalValue === void 0) {
|
|
100
|
+
throw new TypeError("activity.autoSyncIntervalMinutes must be a finite number");
|
|
101
|
+
}
|
|
102
|
+
const autoSyncIntervalMinutes = intervalValue ?? 15;
|
|
103
|
+
if (!Number.isInteger(autoSyncIntervalMinutes) || autoSyncIntervalMinutes < 1 || autoSyncIntervalMinutes > 1440) {
|
|
104
|
+
throw new RangeError("activity.autoSyncIntervalMinutes must be an integer from 1 to 1440");
|
|
105
|
+
}
|
|
106
|
+
if (config.sources !== void 0 && !Array.isArray(config.sources)) {
|
|
107
|
+
throw new TypeError("activity.sources must be an array");
|
|
108
|
+
}
|
|
109
|
+
const sources = (config.sources ?? []).map(parseSource);
|
|
110
|
+
const labels = /* @__PURE__ */ new Set();
|
|
111
|
+
for (const source of sources) {
|
|
112
|
+
if (labels.has(source.machineLabel)) {
|
|
113
|
+
throw new RangeError(`activity source machineLabel must be unique: ${source.machineLabel}`);
|
|
114
|
+
}
|
|
115
|
+
labels.add(source.machineLabel);
|
|
116
|
+
}
|
|
117
|
+
const enabled = enabledValue ?? false;
|
|
118
|
+
if (enabled && sources.length === 0) throw new RangeError("activity.enabled requires at least one source");
|
|
119
|
+
const extractionMode = config.extractionMode === void 0 ? defaults.extractionMode : config.extractionMode;
|
|
120
|
+
if (typeof extractionMode !== "string" || !EXTRACTION_MODES.includes(extractionMode)) {
|
|
121
|
+
throw new RangeError(`activity.extractionMode must be one of: ${EXTRACTION_MODES.join(", ")}`);
|
|
122
|
+
}
|
|
123
|
+
const minImportance = config.minImportance === void 0 ? defaults.minImportance : config.minImportance;
|
|
124
|
+
if (typeof minImportance !== "string" || !IMPORTANCE_LEVELS.includes(minImportance)) {
|
|
125
|
+
throw new RangeError(`activity.minImportance must be one of: ${IMPORTANCE_LEVELS.join(", ")}`);
|
|
126
|
+
}
|
|
127
|
+
const rawMaxMemoriesPerDay = config.maxMemoriesPerDay === void 0 ? defaults.maxMemoriesPerDay : config.maxMemoriesPerDay;
|
|
128
|
+
const maxMemoriesPerDay = coerceNumber(rawMaxMemoriesPerDay);
|
|
129
|
+
if (maxMemoriesPerDay === void 0 || !Number.isInteger(maxMemoriesPerDay) || maxMemoriesPerDay < 0) {
|
|
130
|
+
throw new RangeError("activity.maxMemoriesPerDay must be a non-negative integer");
|
|
131
|
+
}
|
|
132
|
+
const autoApproveTrust = parseUnitInterval(config.autoApproveTrust, "autoApproveTrust", defaults.autoApproveTrust);
|
|
133
|
+
const reviewTrust = parseUnitInterval(config.reviewTrust, "reviewTrust", defaults.reviewTrust);
|
|
134
|
+
if (reviewTrust >= autoApproveTrust) {
|
|
135
|
+
throw new RangeError(
|
|
136
|
+
`activity.reviewTrust (${reviewTrust}) must be below autoApproveTrust (${autoApproveTrust})`
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
enabled,
|
|
141
|
+
timezone,
|
|
142
|
+
syncDays,
|
|
143
|
+
autoSyncIntervalMinutes,
|
|
144
|
+
sources,
|
|
145
|
+
extractionMode,
|
|
146
|
+
sourceTrust: parseUnitInterval(config.sourceTrust, "sourceTrust", defaults.sourceTrust),
|
|
147
|
+
autoApproveTrust,
|
|
148
|
+
reviewTrust,
|
|
149
|
+
minConfidence: parseUnitInterval(config.minConfidence, "minConfidence", defaults.minConfidence),
|
|
150
|
+
minImportance,
|
|
151
|
+
maxMemoriesPerDay
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export {
|
|
156
|
+
defaultActivityConfig,
|
|
157
|
+
validateActivityBaseUrl,
|
|
158
|
+
parseActivityConfig
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=chunk-XAB6STPO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/activity/config.ts"],"sourcesContent":["import { coerceBooleanLike, coerceNumber } from \"../connectors/coerce.js\";\nimport { assertValidTimezone } from \"./digest.js\";\nimport type { ImportanceLevel } from \"../types.js\";\nimport type { ActivityConfig, ActivityExtractionMode, ActivitySourceConfig } from \"./types.js\";\n\nconst EXTRACTION_MODES: readonly ActivityExtractionMode[] = [\"off\", \"smart\"];\nconst IMPORTANCE_LEVELS: readonly ImportanceLevel[] = [\"critical\", \"high\", \"normal\", \"low\", \"trivial\"];\nconst LOOPBACK_HOSTS: Record<string, true> = { localhost: true, \"127.0.0.1\": true, \"::1\": true };\n\n/** The inert default: disabled, search-only, no sources, no extraction. */\nexport function defaultActivityConfig(): ActivityConfig {\n return {\n enabled: false,\n timezone: \"UTC\",\n syncDays: 1,\n autoSyncIntervalMinutes: 15,\n sources: [],\n extractionMode: \"off\",\n sourceTrust: 0.6,\n autoApproveTrust: 0.8,\n reviewTrust: 0.5,\n minConfidence: 0.7,\n minImportance: \"normal\",\n maxMemoriesPerDay: 0,\n };\n}\n\nfunction asRecord(value: unknown, name: string): Record<string, unknown> {\n if (typeof value !== \"object\" || value === null || Array.isArray(value)) {\n throw new TypeError(`${name} must be an object`);\n }\n return value as Record<string, unknown>;\n}\n\nfunction optionalString(value: unknown, name: string): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value !== \"string\" || value.length === 0) throw new TypeError(`${name} must be a non-empty string`);\n return value;\n}\n\nfunction parseUnitInterval(value: unknown, key: string, fallback: number): number {\n if (value === undefined) return fallback;\n const parsed = coerceNumber(value);\n if (parsed === undefined || !Number.isFinite(parsed) || parsed < 0 || parsed > 1) {\n throw new RangeError(`activity.${key} must be a number in [0, 1]`);\n }\n return parsed;\n}\n\n/**\n * Parse, protocol-check, and confine an activity source base URL to a local\n * loopback host. Shared with ActivityHttpSourceClient so config-load and client\n * construction reject the exact same shapes with the same prefixed message. The\n * bearer token travels in an Authorization header, so a non-loopback baseUrl\n * would exfiltrate it; the subsystem contract is local capture daemons only.\n */\nexport function validateActivityBaseUrl(baseUrl: string): URL {\n let parsed: URL;\n try {\n parsed = new URL(baseUrl);\n } catch {\n throw new RangeError(`activity source baseUrl must be a valid URL: ${baseUrl}`);\n }\n if (parsed.protocol !== \"http:\" && parsed.protocol !== \"https:\") {\n throw new RangeError(\"activity source baseUrl must use HTTP or HTTPS\");\n }\n // URL keeps IPv6 hosts bracketed (e.g. \"[::1]\"); normalize before the lookup.\n const host = parsed.hostname.replace(/^\\[|\\]$/g, \"\");\n if (LOOPBACK_HOSTS[host] !== true && !/^127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/.test(host)) {\n throw new RangeError(`activity source baseUrl must target a loopback host (got ${parsed.hostname})`);\n }\n return parsed;\n}\n\nfunction parseSource(value: unknown): ActivitySourceConfig {\n const raw = asRecord(value, \"activity source\");\n const machineLabel = optionalString(raw.machineLabel, \"activity source machineLabel\");\n const baseUrl = optionalString(raw.baseUrl, \"activity source baseUrl\");\n if (machineLabel === undefined || baseUrl === undefined) {\n throw new TypeError(\"activity source requires machineLabel and baseUrl\");\n }\n // Reject whitespace-only labels here so config-load fails loudly rather than\n // parsing clean and then failing on the first sync (the client and pipeline\n // both reject a blank label via trim()).\n if (machineLabel.trim().length === 0) {\n throw new RangeError(\"activity source machineLabel must not be blank\");\n }\n validateActivityBaseUrl(baseUrl);\n const token = optionalString(raw.token, \"activity source token\");\n return { machineLabel, baseUrl, ...(token === undefined ? {} : { token }) };\n}\n\n/**\n * Parse the unified `activity.*` block. `enabled` gates source ingestion (and\n * requires at least one source); `extractionMode` independently gates durable\n * trust-gated memory extraction (default `off`, i.e. search-only).\n */\nexport function parseActivityConfig(raw: unknown): ActivityConfig {\n const defaults = defaultActivityConfig();\n if (raw === undefined || raw === null) {\n return { ...defaults };\n }\n const config = asRecord(raw, \"activity\");\n const enabledValue = coerceBooleanLike(config.enabled, \"activity.enabled\");\n if (config.enabled !== undefined && enabledValue === undefined) {\n throw new TypeError(\"activity.enabled must be a boolean\");\n }\n const timezone = optionalString(config.timezone, \"activity.timezone\") ?? \"UTC\";\n // Validate the IANA zone at parse so a typo fails before any daemon is\n // contacted; otherwise activityDayWindow() throws mid-sync after snapshot\n // pages may already be persisted, and every retry replays the same window.\n assertValidTimezone(timezone);\n const syncDaysValue = coerceNumber(config.syncDays, \"activity.syncDays\");\n if (config.syncDays !== undefined && syncDaysValue === undefined) {\n throw new TypeError(\"activity.syncDays must be a finite number\");\n }\n const syncDays = syncDaysValue ?? 1;\n if (!Number.isInteger(syncDays) || syncDays < 1 || syncDays > 90) {\n throw new RangeError(\"activity.syncDays must be an integer from 1 to 90\");\n }\n const intervalValue = coerceNumber(config.autoSyncIntervalMinutes, \"activity.autoSyncIntervalMinutes\");\n if (config.autoSyncIntervalMinutes !== undefined && intervalValue === undefined) {\n throw new TypeError(\"activity.autoSyncIntervalMinutes must be a finite number\");\n }\n const autoSyncIntervalMinutes = intervalValue ?? 15;\n if (!Number.isInteger(autoSyncIntervalMinutes) || autoSyncIntervalMinutes < 1 || autoSyncIntervalMinutes > 1440) {\n throw new RangeError(\"activity.autoSyncIntervalMinutes must be an integer from 1 to 1440\");\n }\n if (config.sources !== undefined && !Array.isArray(config.sources)) {\n throw new TypeError(\"activity.sources must be an array\");\n }\n const sources = (config.sources ?? []).map(parseSource);\n // Cursors and row dedup are keyed on machineLabel alone; two sources sharing\n // a label would share a cursor and dedup namespace, silently skipping or\n // conflating snapshots. Reject the collision at parse.\n const labels = new Set<string>();\n for (const source of sources) {\n if (labels.has(source.machineLabel)) {\n throw new RangeError(`activity source machineLabel must be unique: ${source.machineLabel}`);\n }\n labels.add(source.machineLabel);\n }\n const enabled = enabledValue ?? false;\n if (enabled && sources.length === 0) throw new RangeError(\"activity.enabled requires at least one source\");\n\n // Extraction gate (independent of `enabled` ingestion). Default `off`.\n // Default only for a missing key; an explicit null/non-string is a malformed\n // enum and must fail rather than silently disabling extraction.\n const extractionMode = config.extractionMode === undefined ? defaults.extractionMode : config.extractionMode;\n if (typeof extractionMode !== \"string\" || !EXTRACTION_MODES.includes(extractionMode as ActivityExtractionMode)) {\n throw new RangeError(`activity.extractionMode must be one of: ${EXTRACTION_MODES.join(\", \")}`);\n }\n const minImportance = config.minImportance === undefined ? defaults.minImportance : config.minImportance;\n if (typeof minImportance !== \"string\" || !IMPORTANCE_LEVELS.includes(minImportance as ImportanceLevel)) {\n throw new RangeError(`activity.minImportance must be one of: ${IMPORTANCE_LEVELS.join(\", \")}`);\n }\n // Default only for a missing key; an explicit null/unparseable value must fail\n // rather than silently uncapping (parity with the enum/unit-interval fields).\n const rawMaxMemoriesPerDay =\n config.maxMemoriesPerDay === undefined ? defaults.maxMemoriesPerDay : config.maxMemoriesPerDay;\n const maxMemoriesPerDay = coerceNumber(rawMaxMemoriesPerDay);\n if (maxMemoriesPerDay === undefined || !Number.isInteger(maxMemoriesPerDay) || maxMemoriesPerDay < 0) {\n throw new RangeError(\"activity.maxMemoriesPerDay must be a non-negative integer\");\n }\n const autoApproveTrust = parseUnitInterval(config.autoApproveTrust, \"autoApproveTrust\", defaults.autoApproveTrust);\n const reviewTrust = parseUnitInterval(config.reviewTrust, \"reviewTrust\", defaults.reviewTrust);\n if (reviewTrust >= autoApproveTrust) {\n throw new RangeError(\n `activity.reviewTrust (${reviewTrust}) must be below autoApproveTrust (${autoApproveTrust})`,\n );\n }\n return {\n enabled,\n timezone,\n syncDays,\n autoSyncIntervalMinutes,\n sources,\n extractionMode: extractionMode as ActivityExtractionMode,\n sourceTrust: parseUnitInterval(config.sourceTrust, \"sourceTrust\", defaults.sourceTrust),\n autoApproveTrust,\n reviewTrust,\n minConfidence: parseUnitInterval(config.minConfidence, \"minConfidence\", defaults.minConfidence),\n minImportance: minImportance as ImportanceLevel,\n maxMemoriesPerDay,\n };\n}\n"],"mappings":";;;;;;;;;AAKA,IAAM,mBAAsD,CAAC,OAAO,OAAO;AAC3E,IAAM,oBAAgD,CAAC,YAAY,QAAQ,UAAU,OAAO,SAAS;AACrG,IAAM,iBAAuC,EAAE,WAAW,MAAM,aAAa,MAAM,OAAO,KAAK;AAGxF,SAAS,wBAAwC;AACtD,SAAO;AAAA,IACL,SAAS;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,IACV,yBAAyB;AAAA,IACzB,SAAS,CAAC;AAAA,IACV,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,kBAAkB;A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gB;AACjH,QAAM,cAAc,kBAAkB,OAAO,aAAa,eAAe,SAAS,WAAW;AAC7F,MAAI,eAAe,kBAAkB;AACnC,UAAM,IAAI;AAAA,MACR,yBAAyB,WAAW,qCAAqC,gBAAgB;AAAA,IAC3F;AAAA,EACF;AACA,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,aAAa,kBAAkB,OAAO,aAAa,eAAe,SAAS,WAAW;AAAA,IACtF;AAAA,IACA;AAAA,IACA,eAAe,kBAAkB,OAAO,eAAe,iBAAiB,SAAS,aAAa;AAAA,IAC9F;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7T4TOGMS.js";
|
|
4
4
|
import {
|
|
5
5
|
defineOperation
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YHSNAGN3.js";
|
|
7
7
|
|
|
8
8
|
// src/external-wiki-access.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -26,4 +26,4 @@ var externalWikiSearchOperation = defineOperation({
|
|
|
26
26
|
export {
|
|
27
27
|
externalWikiSearchOperation
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-Y5UT73VZ.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
computeWhoKnows,
|
|
22
22
|
loadWhoKnowsEntities,
|
|
23
23
|
validateWhoKnowsInput
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-KLPVXLQJ.js";
|
|
25
25
|
import {
|
|
26
26
|
trustResultFor
|
|
27
27
|
} from "./chunk-GNVZQ5JN.js";
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
} from "./chunk-H7XKCNR6.js";
|
|
52
52
|
import {
|
|
53
53
|
readAggregateExtractionWatermark
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-4E6IJCLC.js";
|
|
55
55
|
import {
|
|
56
56
|
ReplicaDivergenceMonitor
|
|
57
57
|
} from "./chunk-CVILPI77.js";
|
|
@@ -112,11 +112,11 @@ import {
|
|
|
112
112
|
listMemoryGovernanceRuns,
|
|
113
113
|
readMemoryGovernanceRunArtifact,
|
|
114
114
|
runMemoryGovernance
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-WHA6ISFX.js";
|
|
116
116
|
import {
|
|
117
117
|
CorpusWatermarkCache,
|
|
118
118
|
computeServiceCorpusCensus
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-NTERJOFA.js";
|
|
120
120
|
import {
|
|
121
121
|
CrossNamespaceBudget,
|
|
122
122
|
toBudgetWarning
|
|
@@ -141,17 +141,17 @@ import {
|
|
|
141
141
|
enqueuePassiveCorrectionNotification,
|
|
142
142
|
parseBriefingFocus,
|
|
143
143
|
parseBriefingWindow
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-IWUN4RZL.js";
|
|
145
145
|
import {
|
|
146
146
|
parseEntityFile,
|
|
147
147
|
parseFrontmatter,
|
|
148
148
|
qmdCollectionPathParts,
|
|
149
149
|
qmdResultPathCandidates,
|
|
150
150
|
selfDeps
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-ZAI5R6DW.js";
|
|
152
152
|
import {
|
|
153
153
|
namespaceCollectionName
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-LWVG6U7L.js";
|
|
155
155
|
import {
|
|
156
156
|
DEFAULT_RECALL_DISCLOSURE,
|
|
157
157
|
isRecallDisclosure
|
|
@@ -17705,4 +17705,4 @@ export {
|
|
|
17705
17705
|
EngramAccessService,
|
|
17706
17706
|
AccessAdminOpsSurface
|
|
17707
17707
|
};
|
|
17708
|
-
//# sourceMappingURL=chunk-
|
|
17708
|
+
//# sourceMappingURL=chunk-YHSNAGN3.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KJTKLXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZAI5R6DW.js";
|
|
7
7
|
import {
|
|
8
8
|
copyExistingFileToBackup,
|
|
9
9
|
writeFileAtomically
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
backupExistingLedger,
|
|
261
261
|
rebuildMemoryLifecycleLedger
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-YIZRTHHF.js.map
|
|
@@ -6,9 +6,11 @@ import {
|
|
|
6
6
|
parseSupportPassportConfig
|
|
7
7
|
} from "./chunk-62OKGIJA.js";
|
|
8
8
|
import {
|
|
9
|
-
assertValidTimezone,
|
|
10
9
|
parseActivityConfig
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XAB6STPO.js";
|
|
11
|
+
import {
|
|
12
|
+
parseLocationConfig
|
|
13
|
+
} from "./chunk-7PHI6GUI.js";
|
|
12
14
|
import {
|
|
13
15
|
cloneDefaultSessionObserverBands
|
|
14
16
|
} from "./chunk-Z5LAYHGJ.js";
|
|
@@ -857,88 +859,6 @@ function parseCaptureCompanionConfigs(cfg) {
|
|
|
857
859
|
};
|
|
858
860
|
}
|
|
859
861
|
|
|
860
|
-
// src/location/config.ts
|
|
861
|
-
var PROVIDER_ID_PATTERN = /^[a-z0-9][a-z0-9-]*$/;
|
|
862
|
-
function defaultLocationConfig() {
|
|
863
|
-
return {
|
|
864
|
-
enabled: false,
|
|
865
|
-
timezone: "UTC",
|
|
866
|
-
syncDays: 1,
|
|
867
|
-
retainCoordinates: false,
|
|
868
|
-
sources: []
|
|
869
|
-
};
|
|
870
|
-
}
|
|
871
|
-
function asRecord(value, name) {
|
|
872
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
873
|
-
throw new TypeError(`${name} must be an object`);
|
|
874
|
-
}
|
|
875
|
-
return value;
|
|
876
|
-
}
|
|
877
|
-
function optionalNonEmptyString(value, name) {
|
|
878
|
-
if (value === void 0) return void 0;
|
|
879
|
-
if (typeof value !== "string" || value.length === 0) throw new TypeError(`${name} must be a non-empty string`);
|
|
880
|
-
return value;
|
|
881
|
-
}
|
|
882
|
-
function parseLocationSource(value) {
|
|
883
|
-
const raw = asRecord(value, "location source");
|
|
884
|
-
const id = optionalNonEmptyString(raw.id, "location source id");
|
|
885
|
-
if (id === void 0) {
|
|
886
|
-
throw new TypeError("location source requires id");
|
|
887
|
-
}
|
|
888
|
-
if (!PROVIDER_ID_PATTERN.test(id)) {
|
|
889
|
-
throw new RangeError(
|
|
890
|
-
`location source id must be a lowercase kebab string (a-z, 0-9, hyphens): got "${id}"`
|
|
891
|
-
);
|
|
892
|
-
}
|
|
893
|
-
const enabledValue = coerceBooleanLike(raw.enabled, "location source enabled");
|
|
894
|
-
if (raw.enabled !== void 0 && enabledValue === void 0) {
|
|
895
|
-
throw new TypeError(`location source '${id}' enabled must be a boolean`);
|
|
896
|
-
}
|
|
897
|
-
return { id, enabled: enabledValue ?? true };
|
|
898
|
-
}
|
|
899
|
-
function parseLocationConfig(raw) {
|
|
900
|
-
const defaults = defaultLocationConfig();
|
|
901
|
-
if (raw === void 0 || raw === null) {
|
|
902
|
-
return { ...defaults };
|
|
903
|
-
}
|
|
904
|
-
const config = asRecord(raw, "location");
|
|
905
|
-
const enabledValue = coerceBooleanLike(config.enabled, "location.enabled");
|
|
906
|
-
if (config.enabled !== void 0 && enabledValue === void 0) {
|
|
907
|
-
throw new TypeError("location.enabled must be a boolean");
|
|
908
|
-
}
|
|
909
|
-
const enabled = enabledValue ?? false;
|
|
910
|
-
const timezone = optionalNonEmptyString(config.timezone, "location.timezone") ?? "UTC";
|
|
911
|
-
assertValidTimezone(timezone);
|
|
912
|
-
const syncDaysValue = coerceNumber(config.syncDays, "location.syncDays");
|
|
913
|
-
if (config.syncDays !== void 0 && syncDaysValue === void 0) {
|
|
914
|
-
throw new TypeError("location.syncDays must be a finite number");
|
|
915
|
-
}
|
|
916
|
-
const syncDays = syncDaysValue ?? 1;
|
|
917
|
-
if (!Number.isInteger(syncDays) || syncDays < 1 || syncDays > 90) {
|
|
918
|
-
throw new RangeError("location.syncDays must be an integer from 1 to 90");
|
|
919
|
-
}
|
|
920
|
-
const retainCoordinatesValue = coerceBooleanLike(config.retainCoordinates, "location.retainCoordinates");
|
|
921
|
-
if (config.retainCoordinates !== void 0 && retainCoordinatesValue === void 0) {
|
|
922
|
-
throw new TypeError("location.retainCoordinates must be a boolean");
|
|
923
|
-
}
|
|
924
|
-
const retainCoordinates = retainCoordinatesValue ?? false;
|
|
925
|
-
if (config.sources !== void 0 && !Array.isArray(config.sources)) {
|
|
926
|
-
throw new TypeError("location.sources must be an array");
|
|
927
|
-
}
|
|
928
|
-
const sources = (config.sources ?? []).map(parseLocationSource);
|
|
929
|
-
const ids = /* @__PURE__ */ new Set();
|
|
930
|
-
for (const source of sources) {
|
|
931
|
-
if (ids.has(source.id)) {
|
|
932
|
-
throw new RangeError(`location source id must be unique: ${source.id}`);
|
|
933
|
-
}
|
|
934
|
-
ids.add(source.id);
|
|
935
|
-
}
|
|
936
|
-
if (enabled && sources.length === 0) {
|
|
937
|
-
throw new RangeError("location.enabled requires at least one source");
|
|
938
|
-
}
|
|
939
|
-
return { enabled, timezone, syncDays, retainCoordinates, sources };
|
|
940
|
-
}
|
|
941
|
-
|
|
942
862
|
// src/okf/config.ts
|
|
943
863
|
var DEFAULT_OKF_CONFIG = Object.freeze({
|
|
944
864
|
conformanceEnabled: true,
|
|
@@ -4016,4 +3936,4 @@ export {
|
|
|
4016
3936
|
VALID_MEMORY_CATEGORIES,
|
|
4017
3937
|
parseConfig
|
|
4018
3938
|
};
|
|
4019
|
-
//# sourceMappingURL=chunk-
|
|
3939
|
+
//# sourceMappingURL=chunk-YQ3CBLL4.js.map
|