@remnic/core 9.54.4 → 9.54.5
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 +46 -44
- package/dist/access-authorization-probe.d.ts +12 -11
- package/dist/access-authorization-probe.js +47 -45
- package/dist/access-boundary.d.ts +12 -11
- package/dist/access-boundary.js +46 -44
- package/dist/access-cli.js +92 -90
- 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 +12 -11
- package/dist/access-extraction-force-flush.js +46 -44
- package/dist/access-health-types.d.ts +1 -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.js +46 -44
- package/dist/access-http.d.ts +12 -11
- package/dist/access-http.js +56 -54
- package/dist/access-identity-continuity-surface.d.ts +9 -9
- package/dist/access-identity-continuity-surface.js +46 -44
- package/dist/access-lcm-surface.d.ts +12 -11
- package/dist/access-lcm-surface.js +46 -44
- package/dist/access-mcp.d.ts +12 -11
- package/dist/access-mcp.js +52 -50
- package/dist/access-memory-search-fanout.d.ts +22 -2
- package/dist/access-memory-search-fanout.js +1 -1
- package/dist/{access-namespace-preflight-C7n4tgWC.d.ts → access-namespace-preflight-BdHlGd_T.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +46 -44
- package/dist/access-observe-write-surface.d.ts +12 -11
- package/dist/access-observe-write-surface.js +46 -44
- package/dist/access-offline-manifest.d.ts +10 -9
- package/dist/access-offline-manifest.js +12 -10
- package/dist/access-operations-batch.js +48 -46
- package/dist/access-operations.d.ts +15 -14
- package/dist/access-operations.js +51 -49
- package/dist/access-recall-concurrency.d.ts +12 -11
- package/dist/access-recall-concurrency.js +46 -44
- package/dist/access-recall-response.d.ts +12 -11
- package/dist/access-recall-response.js +46 -44
- package/dist/access-recall-surface.d.ts +12 -11
- package/dist/access-recall-surface.js +46 -44
- package/dist/access-schema.d.ts +90 -90
- package/dist/access-schema.js +3 -2
- package/dist/{access-service-CXvbxLK-.d.ts → access-service-DL7X9hrg.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 +46 -44
- package/dist/access-surface-catalog.d.ts +12 -11
- 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 +13 -1
- package/dist/active-memory-bridge.js +6 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +3 -2
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/ambient-provenance.d.ts +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.d.ts +2 -2
- package/dist/briefing.js +30 -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/buffer.js +3 -3
- 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-BOOxl-I2.d.ts → catalog-B90is4d8.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 +31 -10
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-6LAPLZOS.js → chunk-2DD6ZHOM.js} +8 -3
- package/dist/chunk-2DD6ZHOM.js.map +1 -0
- package/dist/{chunk-47P3RYZP.js → chunk-2INWPC6E.js} +2 -2
- package/dist/{chunk-3CSX3ETE.js → chunk-2LWQSV6A.js} +23 -11
- package/dist/chunk-2LWQSV6A.js.map +1 -0
- package/dist/{chunk-7BZOBA5J.js → chunk-2PNXOQ4P.js} +69 -11
- package/dist/chunk-2PNXOQ4P.js.map +1 -0
- package/dist/{chunk-WOPA3SGI.js → chunk-3OTSVCPK.js} +8 -8
- package/dist/{chunk-PX2LSHYM.js → chunk-3SXLD5T3.js} +3 -3
- package/dist/{chunk-T2JHZWH6.js → chunk-3WGI7F4V.js} +237 -93
- package/dist/chunk-3WGI7F4V.js.map +1 -0
- package/dist/{chunk-C4ZNGVK3.js → chunk-5JKUSBMX.js} +2 -2
- package/dist/{chunk-S75M5ZRK.js → chunk-6LEIWWAF.js} +16 -1
- package/dist/chunk-6LEIWWAF.js.map +1 -0
- package/dist/{chunk-MAXVH44E.js → chunk-6NNNURLK.js} +4 -4
- package/dist/{chunk-LJS7KUPV.js → chunk-6PZGKGAO.js} +2 -2
- package/dist/{chunk-YN6ASZUG.js → chunk-6QPI2ITJ.js} +5 -5
- package/dist/{chunk-CYF6WVE7.js → chunk-7HG7MGAP.js} +2688 -496
- package/dist/chunk-7HG7MGAP.js.map +1 -0
- package/dist/{chunk-CGVHPCP2.js → chunk-7Q7JWLQ4.js} +2 -2
- package/dist/{chunk-227UFSEQ.js → chunk-7RZJWZ46.js} +5 -5
- package/dist/{chunk-JBPKEARU.js → chunk-AU7Q3LSC.js} +4 -4
- package/dist/{chunk-PDDTI7IC.js → chunk-B4T3FQMT.js} +1 -1
- package/dist/{chunk-UU3G6GUP.js → chunk-BIF4SHMD.js} +1 -1
- package/dist/{chunk-UU3G6GUP.js.map → chunk-BIF4SHMD.js.map} +1 -1
- package/dist/{chunk-APPFNGX6.js → chunk-BSXGTDVJ.js} +2 -2
- package/dist/{chunk-4IIFL7GC.js → chunk-CLKBV3Z3.js} +10 -10
- package/dist/{chunk-ZYLC7NFO.js → chunk-CSY44OKU.js} +4 -4
- package/dist/{chunk-HLYR2TQL.js → chunk-CUTFSLSD.js} +2 -2
- package/dist/{chunk-RDJRFDJY.js → chunk-DBY26JJJ.js} +2 -2
- package/dist/{chunk-QWGE2PUH.js → chunk-DDA55IVB.js} +10 -10
- package/dist/{chunk-VMMQDEN5.js → chunk-DN2IDKI5.js} +2 -2
- package/dist/{chunk-2GFK22OZ.js → chunk-DOOWFDWN.js} +2 -2
- package/dist/{chunk-7FGL6CGA.js → chunk-DVYRD4HY.js} +2 -2
- package/dist/{chunk-YGLY6QFV.js → chunk-F2Y6I74C.js} +2 -2
- package/dist/{chunk-UU7TRFNE.js → chunk-FFEBSFVT.js} +2 -2
- package/dist/chunk-HNDIND7P.js +331 -0
- package/dist/chunk-HNDIND7P.js.map +1 -0
- package/dist/{chunk-NIS256NW.js → chunk-JKW663ZN.js} +2 -2
- package/dist/{chunk-G7A5HLUS.js → chunk-KJH6W2I7.js} +2 -2
- package/dist/{chunk-IXEBUYO4.js → chunk-KM55SMLG.js} +11 -2
- package/dist/{chunk-IXEBUYO4.js.map → chunk-KM55SMLG.js.map} +1 -1
- package/dist/{chunk-G2LUMAUF.js → chunk-L7RTUEDG.js} +12 -5
- package/dist/chunk-L7RTUEDG.js.map +1 -0
- package/dist/chunk-LC2BDILZ.js +57 -0
- package/dist/chunk-LC2BDILZ.js.map +1 -0
- package/dist/{chunk-JV5YUBIZ.js → chunk-LC3FD4BV.js} +52 -46
- package/dist/chunk-LC3FD4BV.js.map +1 -0
- package/dist/{chunk-HWRD23DW.js → chunk-LVKYLMSM.js} +3 -3
- package/dist/{chunk-RUMNY5DT.js → chunk-MRGJZ75M.js} +6 -2
- package/dist/chunk-MRGJZ75M.js.map +1 -0
- package/dist/{chunk-ZMYDYNI4.js → chunk-N7CXQ5TA.js} +4 -4
- package/dist/{chunk-3JLPGJ43.js → chunk-NGT35IGQ.js} +5 -5
- package/dist/{chunk-GUKBW4HL.js → chunk-NQMSEB5D.js} +6 -6
- package/dist/{chunk-WRJVB3C2.js → chunk-PO7NXBG2.js} +2 -2
- package/dist/{chunk-WM65LU67.js → chunk-QOQQMVR2.js} +2 -2
- package/dist/{chunk-QHFV6VNU.js → chunk-QPAQSG3F.js} +2 -2
- package/dist/{chunk-UTRO5UJU.js → chunk-QPW3PAIH.js} +5 -1
- package/dist/chunk-QPW3PAIH.js.map +1 -0
- package/dist/{chunk-6R4G7N4S.js → chunk-QQXWFDRD.js} +128 -74
- package/dist/chunk-QQXWFDRD.js.map +1 -0
- package/dist/{chunk-UES4BHA2.js → chunk-QTO6BMQZ.js} +2 -2
- package/dist/{chunk-THPPCISA.js → chunk-RBII7637.js} +5 -5
- package/dist/{chunk-QT2FRYI4.js → chunk-RG426DJO.js} +2 -2
- package/dist/{chunk-XUAMCLY4.js → chunk-TKFGFDPJ.js} +17 -13
- package/dist/chunk-TKFGFDPJ.js.map +1 -0
- package/dist/{chunk-VKXWK44Q.js → chunk-TY6MKIWP.js} +3 -3
- package/dist/{chunk-AZM4CCAC.js → chunk-UWJNKGBA.js} +5 -5
- package/dist/{chunk-JDZPNCMA.js → chunk-UYOXFFEY.js} +6 -3
- package/dist/chunk-UYOXFFEY.js.map +1 -0
- package/dist/{chunk-ZPJ4QSGP.js → chunk-VTU5IEKY.js} +2 -2
- package/dist/{chunk-RZ4XGKOJ.js → chunk-VYQ4URQB.js} +8 -8
- package/dist/{chunk-WDBX6VER.js → chunk-VZRFGJCH.js} +5 -5
- package/dist/{chunk-IBKR2TFR.js → chunk-WM5LD6AT.js} +2 -2
- package/dist/{chunk-K4QS7LXU.js → chunk-WZWZRZ2V.js} +2 -2
- package/dist/{chunk-G4T7L557.js → chunk-XKAR4RF6.js} +2 -2
- package/dist/{chunk-DZD576ZU.js → chunk-XSV2YDCJ.js} +2 -2
- package/dist/{chunk-G7Z6EENO.js → chunk-YDWPYDML.js} +4 -4
- package/dist/{chunk-6HPHEFXT.js → chunk-YKZLOPTC.js} +2 -2
- package/dist/{chunk-NH5IR2WM.js → chunk-YR65W7BV.js} +6 -2
- package/dist/chunk-YR65W7BV.js.map +1 -0
- package/dist/{chunk-GYPQL6XN.js → chunk-Z4N7SVVF.js} +35 -47
- package/dist/chunk-Z4N7SVVF.js.map +1 -0
- package/dist/{cli-DVUFIa5E.d.ts → cli-jfuZXixq.d.ts} +5 -5
- package/dist/cli.d.ts +14 -13
- package/dist/cli.js +74 -72
- package/dist/coding/pre-action-gate.d.ts +1 -1
- package/dist/compounding/engine.d.ts +2 -2
- package/dist/compounding/engine.js +30 -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 +3 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +30 -9
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +29 -9
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/contradiction/index.d.ts +2 -2
- package/dist/contradiction/index.js +3 -1
- package/dist/contradiction-scan-KCADHXPE.js +20 -0
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +2 -2
- package/dist/convergence-refresh.js +32 -11
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/backend.js +2 -2
- 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 +21 -20
- 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-XzF76C9n.d.ts → dependency-propagation-delivery-CTDuAVJc.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-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +30 -9
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +9 -9
- package/dist/explicit-capture.js +6 -4
- package/dist/external-wiki-access.d.ts +12 -11
- package/dist/external-wiki-access.js +47 -45
- 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 +12 -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 +29 -13
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/{first-start-migration-626C5554.js → first-start-migration-LMMZFLKK.js} +13 -5
- package/dist/first-start-migration-LMMZFLKK.js.map +1 -0
- 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.ts +1439 -716
- package/dist/index.js +207 -121
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +5 -5
- 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/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +30 -9
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +30 -9
- package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
- package/dist/maintenance/rebuild-memory-projection.js +31 -10
- package/dist/{maintenance-BJzNIKBE.d.ts → maintenance-heMZSq7G.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +12 -11
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-mutations.js +2 -2
- package/dist/memory-projection-store.d.ts +6 -2
- package/dist/memory-projection-store.js +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-snapshot.d.ts +1 -1
- 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 +20 -19
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +6 -6
- package/dist/namespaces/storage.d.ts +3 -3
- package/dist/namespaces/storage.js +30 -9
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/offline-sync-file-io.d.ts +20 -0
- package/dist/offline-sync-file-io.js +18 -0
- package/dist/offline-sync-file-io.js.map +1 -0
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/offline-sync-impression-drain.js +5 -5
- package/dist/offline-sync.d.ts +8 -6
- package/dist/offline-sync.js +2 -1
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +22 -21
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +34 -32
- package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +35 -15
- package/dist/{orchestrator-BiXgBJBQ.d.ts → orchestrator-BQQPsSjs.d.ts} +11 -8
- package/dist/orchestrator.d.ts +9 -9
- package/dist/orchestrator.js +93 -91
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-sz_dcuLg.d.ts → pipeline-DFfmsnGk.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/{purge-533FZLS4.js → purge-GB7PZHT2.js} +2 -2
- package/dist/{qmd-eAWObK4M.d.ts → qmd-BF5bcVRs.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-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-planner-llm.d.ts +1 -1
- 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 +2 -1
- package/dist/reconcile/manifest.d.ts +2 -1
- package/dist/reconcile/manifest.js +6 -5
- package/dist/reconcile/plan.d.ts +2 -1
- package/dist/reconcile/plan.js +3 -2
- 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 +4 -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 +138 -138
- package/dist/{scope-profiles-BBQsXuyj.d.ts → scope-profiles-CbUOsE_E.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 +6 -6
- 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-HD8RkzVA.d.ts → semantic-consolidation-DAB3xdKM.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +31 -10
- package/dist/semantic-rule-promotion.js +30 -9
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +30 -9
- package/dist/{service-DIrtHHEg.d.ts → service-DGKg2O6r.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 +9 -9
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +1 -1
- package/dist/source-agent-qualifier.js +28 -12
- package/dist/{storage-DqCzXi56.d.ts → storage-CC1jKcWg.d.ts} +46 -13
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +30 -9
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- 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 +2 -2
- package/dist/tier-routing.js +7 -1
- package/dist/{tier-stats-2JCZYEF7.js → tier-stats-JDN6HRNT.js} +8 -2
- package/dist/{tier-stats-2JCZYEF7.js.map → tier-stats-JDN6HRNT.js.map} +1 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/types.d.ts +66 -66
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-d_j4vC6N.d.ts → types-BnQza1y8.d.ts} +2 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +2 -2
- package/dist/verified-recall.js +30 -9
- package/dist/write-envelope.d.ts +1 -1
- package/package.json +2 -2
- package/src/access-http.test.ts +31 -0
- package/src/access-memory-search-fanout.ts +24 -1
- package/src/access-offline-manifest.ts +5 -0
- package/src/access-service-namespace.test.ts +14 -0
- package/src/access-service-observe-scope.test.ts +2 -0
- package/src/access-service-offline-file-content.test.ts +211 -0
- package/src/access-service.ts +20 -43
- package/src/active-memory-bridge.test.ts +151 -0
- package/src/active-memory-bridge.ts +87 -11
- package/src/briefing.test.ts +38 -0
- package/src/briefing.ts +3 -3
- package/src/cli.ts +6 -1
- package/src/connectors/codex-materialize-runner.ts +2 -0
- package/src/contradiction/contradiction-scan.ts +2 -0
- package/src/contradiction/contradiction.test.ts +42 -0
- package/src/correction/correction-access-wiring.ts +8 -2
- package/src/correction/correction-storage-integration.test.ts +7 -0
- package/src/explicit-capture.test.ts +24 -0
- package/src/explicit-capture.ts +2 -0
- package/src/index.ts +3 -0
- package/src/maintenance/first-start-migration.ts +2 -1
- package/src/maintenance/memory-governance.test.ts +25 -0
- package/src/maintenance/memory-governance.ts +4 -1
- package/src/maintenance/pattern-reinforcement.test.ts +20 -0
- package/src/maintenance/pattern-reinforcement.ts +2 -1
- package/src/maintenance/rebuild-memory-projection.ts +8 -8
- package/src/memory-projection-store.ts +25 -27
- package/src/offline-sync-file-io.ts +68 -0
- package/src/offline-sync.ts +43 -57
- package/src/orchestration/consolidation-run.ts +5 -4
- package/src/orchestration/contradiction-linking-coordinator.ts +7 -0
- package/src/orchestration/contradiction-localization.integration.test.ts +115 -0
- package/src/orchestration/lifecycle-policy-coordinator.ts +2 -1
- package/src/orchestration/qmd-result-resolver.test.ts +215 -14
- package/src/orchestration/qmd-result-resolver.ts +142 -82
- package/src/orchestration/recall-search-pipeline.test.ts +41 -0
- package/src/orchestration/recall-search-pipeline.ts +12 -0
- package/src/orchestration/semantic-consolidation-coordinator.ts +2 -1
- package/src/orchestration/tier-migration-coordinator.ts +23 -56
- package/src/orchestration/workspace-ops.test.ts +37 -0
- package/src/orchestration/workspace-ops.ts +5 -29
- package/src/orchestrator.ts +7 -8
- package/src/storage/supersession-audit.ts +7 -1
- package/src/storage/supersession-side-effects.ts +17 -5
- package/src/storage.ts +18 -19
- package/src/support-passport/card-projection.test.ts +129 -0
- package/src/support-passport/card-projection.ts +287 -0
- package/src/support-passport/card-service.test.ts +2462 -0
- package/src/support-passport/card-service.ts +1042 -0
- package/src/support-passport/contracts.test.ts +143 -0
- package/src/support-passport/contracts.ts +136 -0
- package/src/support-passport/errors.ts +24 -0
- package/src/support-passport/grant-contracts.ts +139 -0
- package/src/support-passport/grant-service-cache.test.ts +148 -0
- package/src/support-passport/grant-service-cancellation.test.ts +81 -0
- package/src/support-passport/grant-service.test.ts +2882 -0
- package/src/support-passport/grant-service.ts +364 -0
- package/src/support-passport/grant-store-commit-hook.test.ts +123 -0
- package/src/support-passport/grant-store-order.test.ts +60 -0
- package/src/support-passport/grant-store-path-safety.test.ts +30 -0
- package/src/support-passport/grant-store-recovery.test.ts +448 -0
- package/src/support-passport/grant-store.ts +902 -0
- package/src/support-passport/index.ts +7 -0
- package/src/support-passport/offline-sync-guard.ts +230 -0
- package/src/support-passport/owner-lock.ts +53 -0
- package/src/support-passport/private-file.ts +371 -0
- package/src/tier-routing.ts +28 -17
- package/src/training-export/converter.test.ts +24 -0
- package/src/training-export/converter.ts +2 -0
- package/src/types.ts +1 -1
- package/src/wearables/service.test.ts +13 -0
- package/src/wearables/service.ts +2 -0
- package/dist/chunk-3CSX3ETE.js.map +0 -1
- package/dist/chunk-6LAPLZOS.js.map +0 -1
- package/dist/chunk-6R4G7N4S.js.map +0 -1
- package/dist/chunk-7BZOBA5J.js.map +0 -1
- package/dist/chunk-CYF6WVE7.js.map +0 -1
- package/dist/chunk-G2LUMAUF.js.map +0 -1
- package/dist/chunk-GYPQL6XN.js.map +0 -1
- package/dist/chunk-JDZPNCMA.js.map +0 -1
- package/dist/chunk-JV5YUBIZ.js.map +0 -1
- package/dist/chunk-NH5IR2WM.js.map +0 -1
- package/dist/chunk-RUMNY5DT.js.map +0 -1
- package/dist/chunk-S75M5ZRK.js.map +0 -1
- package/dist/chunk-T2JHZWH6.js.map +0 -1
- package/dist/chunk-UTRO5UJU.js.map +0 -1
- package/dist/chunk-XUAMCLY4.js.map +0 -1
- package/dist/contradiction-scan-HYLIRMJ2.js +0 -14
- package/dist/first-start-migration-626C5554.js.map +0 -1
- /package/dist/{chunk-47P3RYZP.js.map → chunk-2INWPC6E.js.map} +0 -0
- /package/dist/{chunk-WOPA3SGI.js.map → chunk-3OTSVCPK.js.map} +0 -0
- /package/dist/{chunk-PX2LSHYM.js.map → chunk-3SXLD5T3.js.map} +0 -0
- /package/dist/{chunk-C4ZNGVK3.js.map → chunk-5JKUSBMX.js.map} +0 -0
- /package/dist/{chunk-MAXVH44E.js.map → chunk-6NNNURLK.js.map} +0 -0
- /package/dist/{chunk-LJS7KUPV.js.map → chunk-6PZGKGAO.js.map} +0 -0
- /package/dist/{chunk-YN6ASZUG.js.map → chunk-6QPI2ITJ.js.map} +0 -0
- /package/dist/{chunk-CGVHPCP2.js.map → chunk-7Q7JWLQ4.js.map} +0 -0
- /package/dist/{chunk-227UFSEQ.js.map → chunk-7RZJWZ46.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-AU7Q3LSC.js.map} +0 -0
- /package/dist/{chunk-PDDTI7IC.js.map → chunk-B4T3FQMT.js.map} +0 -0
- /package/dist/{chunk-APPFNGX6.js.map → chunk-BSXGTDVJ.js.map} +0 -0
- /package/dist/{chunk-4IIFL7GC.js.map → chunk-CLKBV3Z3.js.map} +0 -0
- /package/dist/{chunk-ZYLC7NFO.js.map → chunk-CSY44OKU.js.map} +0 -0
- /package/dist/{chunk-HLYR2TQL.js.map → chunk-CUTFSLSD.js.map} +0 -0
- /package/dist/{chunk-RDJRFDJY.js.map → chunk-DBY26JJJ.js.map} +0 -0
- /package/dist/{chunk-QWGE2PUH.js.map → chunk-DDA55IVB.js.map} +0 -0
- /package/dist/{chunk-VMMQDEN5.js.map → chunk-DN2IDKI5.js.map} +0 -0
- /package/dist/{chunk-2GFK22OZ.js.map → chunk-DOOWFDWN.js.map} +0 -0
- /package/dist/{chunk-7FGL6CGA.js.map → chunk-DVYRD4HY.js.map} +0 -0
- /package/dist/{chunk-YGLY6QFV.js.map → chunk-F2Y6I74C.js.map} +0 -0
- /package/dist/{chunk-UU7TRFNE.js.map → chunk-FFEBSFVT.js.map} +0 -0
- /package/dist/{chunk-NIS256NW.js.map → chunk-JKW663ZN.js.map} +0 -0
- /package/dist/{chunk-G7A5HLUS.js.map → chunk-KJH6W2I7.js.map} +0 -0
- /package/dist/{chunk-HWRD23DW.js.map → chunk-LVKYLMSM.js.map} +0 -0
- /package/dist/{chunk-ZMYDYNI4.js.map → chunk-N7CXQ5TA.js.map} +0 -0
- /package/dist/{chunk-3JLPGJ43.js.map → chunk-NGT35IGQ.js.map} +0 -0
- /package/dist/{chunk-GUKBW4HL.js.map → chunk-NQMSEB5D.js.map} +0 -0
- /package/dist/{chunk-WRJVB3C2.js.map → chunk-PO7NXBG2.js.map} +0 -0
- /package/dist/{chunk-WM65LU67.js.map → chunk-QOQQMVR2.js.map} +0 -0
- /package/dist/{chunk-QHFV6VNU.js.map → chunk-QPAQSG3F.js.map} +0 -0
- /package/dist/{chunk-UES4BHA2.js.map → chunk-QTO6BMQZ.js.map} +0 -0
- /package/dist/{chunk-THPPCISA.js.map → chunk-RBII7637.js.map} +0 -0
- /package/dist/{chunk-QT2FRYI4.js.map → chunk-RG426DJO.js.map} +0 -0
- /package/dist/{chunk-VKXWK44Q.js.map → chunk-TY6MKIWP.js.map} +0 -0
- /package/dist/{chunk-AZM4CCAC.js.map → chunk-UWJNKGBA.js.map} +0 -0
- /package/dist/{chunk-ZPJ4QSGP.js.map → chunk-VTU5IEKY.js.map} +0 -0
- /package/dist/{chunk-RZ4XGKOJ.js.map → chunk-VYQ4URQB.js.map} +0 -0
- /package/dist/{chunk-WDBX6VER.js.map → chunk-VZRFGJCH.js.map} +0 -0
- /package/dist/{chunk-IBKR2TFR.js.map → chunk-WM5LD6AT.js.map} +0 -0
- /package/dist/{chunk-K4QS7LXU.js.map → chunk-WZWZRZ2V.js.map} +0 -0
- /package/dist/{chunk-G4T7L557.js.map → chunk-XKAR4RF6.js.map} +0 -0
- /package/dist/{chunk-DZD576ZU.js.map → chunk-XSV2YDCJ.js.map} +0 -0
- /package/dist/{chunk-G7Z6EENO.js.map → chunk-YDWPYDML.js.map} +0 -0
- /package/dist/{chunk-6HPHEFXT.js.map → chunk-YKZLOPTC.js.map} +0 -0
- /package/dist/{contradiction-scan-HYLIRMJ2.js.map → contradiction-scan-KCADHXPE.js.map} +0 -0
- /package/dist/{purge-533FZLS4.js.map → purge-GB7PZHT2.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-D24OXEPB.js";
|
|
10
10
|
import {
|
|
11
11
|
validateRequest
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JKW663ZN.js";
|
|
13
13
|
import {
|
|
14
14
|
REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
|
|
15
15
|
REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-YYQAKIDJ.js";
|
|
26
26
|
import {
|
|
27
27
|
getOperation
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3WGI7F4V.js";
|
|
29
29
|
import {
|
|
30
30
|
assertOperationAllowed,
|
|
31
31
|
capabilityAllowsOp,
|
|
@@ -3761,4 +3761,4 @@ export {
|
|
|
3761
3761
|
MCP_SUPPORTED_PROTOCOL_VERSIONS,
|
|
3762
3762
|
EngramMcpServer
|
|
3763
3763
|
};
|
|
3764
|
-
//# sourceMappingURL=chunk-
|
|
3764
|
+
//# sourceMappingURL=chunk-3SXLD5T3.js.map
|
|
@@ -12,12 +12,6 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
WriteQuarantineStore
|
|
14
14
|
} from "./chunk-PJSK6OJM.js";
|
|
15
|
-
import {
|
|
16
|
-
trustResultFor
|
|
17
|
-
} from "./chunk-GNVZQ5JN.js";
|
|
18
|
-
import {
|
|
19
|
-
renderEpistemicHedge
|
|
20
|
-
} from "./chunk-YN2UN7N3.js";
|
|
21
15
|
import {
|
|
22
16
|
getTrustZoneStoreStatus,
|
|
23
17
|
isTrustZoneName,
|
|
@@ -27,6 +21,12 @@ import {
|
|
|
27
21
|
seedTrustZoneDemoDataset,
|
|
28
22
|
summarizeTrustZonePromotionReadiness
|
|
29
23
|
} from "./chunk-KQS72GCR.js";
|
|
24
|
+
import {
|
|
25
|
+
trustResultFor
|
|
26
|
+
} from "./chunk-GNVZQ5JN.js";
|
|
27
|
+
import {
|
|
28
|
+
renderEpistemicHedge
|
|
29
|
+
} from "./chunk-YN2UN7N3.js";
|
|
30
30
|
import {
|
|
31
31
|
planSessionTranscriptMigration
|
|
32
32
|
} from "./chunk-P5FPO2BR.js";
|
|
@@ -39,13 +39,13 @@ import {
|
|
|
39
39
|
} from "./chunk-H7XKCNR6.js";
|
|
40
40
|
import {
|
|
41
41
|
toRecallExplainJson
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-RG426DJO.js";
|
|
43
43
|
import {
|
|
44
44
|
estimateRecallTokens
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-QPAQSG3F.js";
|
|
46
46
|
import {
|
|
47
47
|
readAggregateExtractionWatermark
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-7Q7JWLQ4.js";
|
|
49
49
|
import {
|
|
50
50
|
ReplicaDivergenceMonitor
|
|
51
51
|
} from "./chunk-CVILPI77.js";
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
persistExplicitCapture,
|
|
85
85
|
queueExplicitCaptureForReview,
|
|
86
86
|
validateExplicitCaptureInput
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-MRGJZ75M.js";
|
|
88
88
|
import {
|
|
89
89
|
lcmEvidenceIdentity
|
|
90
90
|
} from "./chunk-C37ZRXX7.js";
|
|
@@ -95,14 +95,11 @@ import {
|
|
|
95
95
|
listMemoryGovernanceRuns,
|
|
96
96
|
readMemoryGovernanceRunArtifact,
|
|
97
97
|
runMemoryGovernance
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-2DD6ZHOM.js";
|
|
99
99
|
import {
|
|
100
100
|
CorpusWatermarkCache,
|
|
101
101
|
computeServiceCorpusCensus
|
|
102
|
-
} from "./chunk-
|
|
103
|
-
import {
|
|
104
|
-
namespaceCollectionName
|
|
105
|
-
} from "./chunk-VMMQDEN5.js";
|
|
102
|
+
} from "./chunk-BSXGTDVJ.js";
|
|
106
103
|
import {
|
|
107
104
|
CrossNamespaceBudget,
|
|
108
105
|
toBudgetWarning
|
|
@@ -120,18 +117,21 @@ import {
|
|
|
120
117
|
enqueuePassiveCorrectionNotification,
|
|
121
118
|
parseBriefingFocus,
|
|
122
119
|
parseBriefingWindow
|
|
123
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-UYOXFFEY.js";
|
|
124
121
|
import {
|
|
125
122
|
parseEntityFile,
|
|
126
123
|
parseFrontmatter,
|
|
127
124
|
qmdCollectionPathParts,
|
|
128
125
|
qmdResultPathCandidates,
|
|
129
126
|
selfDeps
|
|
130
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-QQXWFDRD.js";
|
|
128
|
+
import {
|
|
129
|
+
namespaceCollectionName
|
|
130
|
+
} from "./chunk-DN2IDKI5.js";
|
|
131
131
|
import {
|
|
132
132
|
DEFAULT_RECALL_DISCLOSURE,
|
|
133
133
|
isRecallDisclosure
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-BIF4SHMD.js";
|
|
135
135
|
import {
|
|
136
136
|
normalizeProjectionPreview,
|
|
137
137
|
normalizeProjectionTags
|
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
isActivityDigestPath,
|
|
160
160
|
isArtifactMemoryPath,
|
|
161
161
|
isMeetingRecordPath
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-N7CXQ5TA.js";
|
|
163
163
|
import {
|
|
164
164
|
ExtractionLivenessWarnThrottle,
|
|
165
165
|
computeExtractionLivenessStatus
|
|
@@ -191,41 +191,35 @@ import {
|
|
|
191
191
|
memorySearchThroughScope,
|
|
192
192
|
mergeMemorySearchDefaultFallback,
|
|
193
193
|
resolveMemorySearchDefaultFallback
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-KM55SMLG.js";
|
|
195
195
|
import {
|
|
196
196
|
PendingObserveExtractionTracker,
|
|
197
197
|
pendingObserveScopeHint
|
|
198
198
|
} from "./chunk-LNEWDF2A.js";
|
|
199
199
|
import {
|
|
200
200
|
createOfflineSyncManifestStream
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-L7RTUEDG.js";
|
|
202
202
|
import {
|
|
203
203
|
offlineSyncStorageForSnapshot
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-NQMSEB5D.js";
|
|
205
205
|
import {
|
|
206
206
|
resolveScopePlan,
|
|
207
207
|
resolveScopedWritableNamespaceValue,
|
|
208
208
|
resolveWritableNamespaceValue
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-6QPI2ITJ.js";
|
|
210
210
|
import {
|
|
211
211
|
writeFileAtomically
|
|
212
212
|
} from "./chunk-AW4QUFQF.js";
|
|
213
|
-
import {
|
|
214
|
-
namespaceIdentityFromToken
|
|
215
|
-
} from "./chunk-EGGE52UU.js";
|
|
216
213
|
import {
|
|
217
214
|
inferMemoryStatus,
|
|
218
215
|
toMemoryPathRel
|
|
219
216
|
} from "./chunk-7RJUVTVF.js";
|
|
220
217
|
import {
|
|
221
218
|
getMemoryProjectionPath
|
|
222
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-2LWQSV6A.js";
|
|
223
220
|
import {
|
|
224
221
|
displayErrorDetail
|
|
225
222
|
} from "./chunk-RL6NEVXT.js";
|
|
226
|
-
import {
|
|
227
|
-
stripAttributesSuffix
|
|
228
|
-
} from "./chunk-JDSVLVCG.js";
|
|
229
223
|
import {
|
|
230
224
|
serializeMutations
|
|
231
225
|
} from "./chunk-FFAZ2XFU.js";
|
|
@@ -236,6 +230,16 @@ import {
|
|
|
236
230
|
expandScopeProfileReadNamespaces,
|
|
237
231
|
resolveScopeProfilePlan
|
|
238
232
|
} from "./chunk-BGLY7EEM.js";
|
|
233
|
+
import {
|
|
234
|
+
createSupportPassportPrivateFileExclusion,
|
|
235
|
+
isSupportPassportPrivateMemory
|
|
236
|
+
} from "./chunk-HNDIND7P.js";
|
|
237
|
+
import {
|
|
238
|
+
namespaceIdentityFromToken
|
|
239
|
+
} from "./chunk-EGGE52UU.js";
|
|
240
|
+
import {
|
|
241
|
+
stripAttributesSuffix
|
|
242
|
+
} from "./chunk-JDSVLVCG.js";
|
|
239
243
|
import {
|
|
240
244
|
sanitizeMemoryContent
|
|
241
245
|
} from "./chunk-5GKPFL3S.js";
|
|
@@ -253,8 +257,12 @@ import {
|
|
|
253
257
|
compileOfflineSyncExcludeGlobs,
|
|
254
258
|
filterOfflineSyncDeletionRevisions,
|
|
255
259
|
iterateOfflineSyncSnapshotFileRecords,
|
|
260
|
+
normalizeOfflineSyncChangeset,
|
|
256
261
|
readOfflineSyncFileContentChunk
|
|
257
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-Z4N7SVVF.js";
|
|
263
|
+
import {
|
|
264
|
+
validateArchiveRelativePath
|
|
265
|
+
} from "./chunk-GCGJW34D.js";
|
|
258
266
|
import {
|
|
259
267
|
assertOperationAuthorizationAllowed,
|
|
260
268
|
capabilityAllowsOp,
|
|
@@ -4012,7 +4020,7 @@ async function resolveTargetMemories(wiring, targetIds, namespaces) {
|
|
|
4012
4020
|
for (const ns of namespaces) {
|
|
4013
4021
|
const storage = await wiring.orchestrator.getStorage(ns);
|
|
4014
4022
|
const m = await storage.getMemoryById(id);
|
|
4015
|
-
if (m) {
|
|
4023
|
+
if (m && isEligibleCorrectionCandidate(m)) {
|
|
4016
4024
|
found = toCandidate(m, ns, 1);
|
|
4017
4025
|
break;
|
|
4018
4026
|
}
|
|
@@ -4034,7 +4042,7 @@ async function expandEntityNeighbors(wiring, seedIds, namespaces, limit) {
|
|
|
4034
4042
|
const storage = await wiring.orchestrator.getStorage(ns);
|
|
4035
4043
|
const all = await storage.readAllMemories();
|
|
4036
4044
|
for (const m of all) {
|
|
4037
|
-
if (seedIds.includes(m.frontmatter.id) && m.frontmatter.entityRef) {
|
|
4045
|
+
if (seedIds.includes(m.frontmatter.id) && m.frontmatter.entityRef && isEligibleCorrectionCandidate(m)) {
|
|
4038
4046
|
seedRefs.add(m.frontmatter.entityRef);
|
|
4039
4047
|
}
|
|
4040
4048
|
}
|
|
@@ -4380,6 +4388,7 @@ function toCandidate(m, namespace, score) {
|
|
|
4380
4388
|
};
|
|
4381
4389
|
}
|
|
4382
4390
|
function isEligibleCorrectionCandidate(m) {
|
|
4391
|
+
if (isSupportPassportPrivateMemory(m)) return false;
|
|
4383
4392
|
if (m.frontmatter.status && m.frontmatter.status !== "active") return false;
|
|
4384
4393
|
if (typeof m.frontmatter.archivedAt === "string" && m.frontmatter.archivedAt.length > 0) return false;
|
|
4385
4394
|
return true;
|
|
@@ -4902,10 +4911,167 @@ function filterRecallCandidates(candidates, options) {
|
|
|
4902
4911
|
return scopedByNamespace.filter((r) => !isGenericRecallExcludedPath(r.path, pathPolicy, "qmd")).slice(0, Math.max(0, options.limit));
|
|
4903
4912
|
}
|
|
4904
4913
|
|
|
4914
|
+
// src/support-passport/offline-sync-guard.ts
|
|
4915
|
+
import path7 from "path";
|
|
4916
|
+
var MAX_SUPPORT_PASSPORT_FRONTMATTER_BYTES = 1048576;
|
|
4917
|
+
var SUPPORT_PASSPORT_MARKER = "support-passport-";
|
|
4918
|
+
var FRONTMATTER_PREFIXES = ["---\n", "---\r\n"];
|
|
4919
|
+
function frontmatterPrefixState(raw) {
|
|
4920
|
+
const prefix = raw.subarray(0, Math.min(raw.length, 5)).toString("utf8");
|
|
4921
|
+
if (FRONTMATTER_PREFIXES.some((candidate) => prefix.startsWith(candidate))) return "present";
|
|
4922
|
+
if (FRONTMATTER_PREFIXES.some((candidate) => candidate.startsWith(prefix))) return "pending";
|
|
4923
|
+
return "absent";
|
|
4924
|
+
}
|
|
4925
|
+
function completeFrontmatter(raw) {
|
|
4926
|
+
const text = raw.toString("utf8");
|
|
4927
|
+
return /^---\r?\n[\s\S]*?\r?\n---(?:\r?\n|$)/.exec(text)?.[0] ?? null;
|
|
4928
|
+
}
|
|
4929
|
+
function assertFrontmatterAllowed(frontmatter, relativePath) {
|
|
4930
|
+
if (frontmatter.includes(SUPPORT_PASSPORT_MARKER)) {
|
|
4931
|
+
throw new Error(`offline sync cannot modify private support-passport record: ${relativePath}`);
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
function inspectBufferedFrontmatter(raw, relativePath, endOfFile) {
|
|
4935
|
+
const prefixState = frontmatterPrefixState(raw);
|
|
4936
|
+
if (prefixState === "absent") return "allow";
|
|
4937
|
+
if (prefixState === "pending" && !endOfFile) return "wait";
|
|
4938
|
+
const frontmatter = completeFrontmatter(raw);
|
|
4939
|
+
if (frontmatter !== null) {
|
|
4940
|
+
assertFrontmatterAllowed(frontmatter, relativePath);
|
|
4941
|
+
return "allow";
|
|
4942
|
+
}
|
|
4943
|
+
if (raw.length > MAX_SUPPORT_PASSPORT_FRONTMATTER_BYTES) {
|
|
4944
|
+
throw new Error(`offline sync frontmatter is too large: ${relativePath}`);
|
|
4945
|
+
}
|
|
4946
|
+
if (endOfFile) {
|
|
4947
|
+
assertFrontmatterAllowed(raw.toString("utf8"), relativePath);
|
|
4948
|
+
return "allow";
|
|
4949
|
+
}
|
|
4950
|
+
return "wait";
|
|
4951
|
+
}
|
|
4952
|
+
async function* guardSupportPassportChunks(chunks, relativePath) {
|
|
4953
|
+
const buffered = [];
|
|
4954
|
+
let bufferedBytes = 0;
|
|
4955
|
+
let passThrough = false;
|
|
4956
|
+
for await (const chunk of chunks) {
|
|
4957
|
+
if (passThrough) {
|
|
4958
|
+
yield chunk;
|
|
4959
|
+
continue;
|
|
4960
|
+
}
|
|
4961
|
+
buffered.push(chunk);
|
|
4962
|
+
bufferedBytes += chunk.length;
|
|
4963
|
+
const raw = Buffer.concat(buffered, bufferedBytes);
|
|
4964
|
+
if (inspectBufferedFrontmatter(raw, relativePath, false) === "wait") continue;
|
|
4965
|
+
for (const bufferedChunk of buffered) yield bufferedChunk;
|
|
4966
|
+
passThrough = true;
|
|
4967
|
+
}
|
|
4968
|
+
if (!passThrough && bufferedBytes > 0) {
|
|
4969
|
+
const raw = Buffer.concat(buffered, bufferedBytes);
|
|
4970
|
+
inspectBufferedFrontmatter(raw, relativePath, true);
|
|
4971
|
+
for (const bufferedChunk of buffered) yield bufferedChunk;
|
|
4972
|
+
}
|
|
4973
|
+
}
|
|
4974
|
+
function createSupportPassportOfflineSyncGuard(storage) {
|
|
4975
|
+
const excludePrivateFile = createSupportPassportPrivateFileExclusion(storage);
|
|
4976
|
+
const targetForPath = (relativePath) => {
|
|
4977
|
+
const normalizedPath = validateArchiveRelativePath(relativePath, "path");
|
|
4978
|
+
return {
|
|
4979
|
+
root: storage.dir,
|
|
4980
|
+
path: normalizedPath,
|
|
4981
|
+
filePath: path7.resolve(storage.dir, ...normalizedPath.split("/"))
|
|
4982
|
+
};
|
|
4983
|
+
};
|
|
4984
|
+
const assertTargetAllowed = async (target) => {
|
|
4985
|
+
if (await excludePrivateFile(target)) {
|
|
4986
|
+
throw new Error(`offline sync cannot modify private support-passport record: ${target.path}`);
|
|
4987
|
+
}
|
|
4988
|
+
};
|
|
4989
|
+
return {
|
|
4990
|
+
async assertPathAllowed(relativePath) {
|
|
4991
|
+
await assertTargetAllowed(targetForPath(relativePath));
|
|
4992
|
+
},
|
|
4993
|
+
assertContentAllowed(relativePath, content) {
|
|
4994
|
+
inspectBufferedFrontmatter(content, relativePath, true);
|
|
4995
|
+
},
|
|
4996
|
+
assertTargetAllowed,
|
|
4997
|
+
guardChunks(relativePath, chunks) {
|
|
4998
|
+
return guardSupportPassportChunks(chunks, relativePath);
|
|
4999
|
+
},
|
|
5000
|
+
excludePrivateFile
|
|
5001
|
+
};
|
|
5002
|
+
}
|
|
5003
|
+
async function applySupportPassportOfflineSyncFileContent(storage, options) {
|
|
5004
|
+
const guard = createSupportPassportOfflineSyncGuard(storage);
|
|
5005
|
+
await guard.assertPathAllowed(options.path);
|
|
5006
|
+
return applyOfflineSyncFileContentChunk({
|
|
5007
|
+
root: storage.dir,
|
|
5008
|
+
sourceId: options.sourceId,
|
|
5009
|
+
path: options.path,
|
|
5010
|
+
sha256: options.sha256,
|
|
5011
|
+
bytes: options.bytes,
|
|
5012
|
+
mtimeMs: options.mtimeMs,
|
|
5013
|
+
offset: options.offset,
|
|
5014
|
+
baseSha256: options.baseSha256,
|
|
5015
|
+
content: options.content,
|
|
5016
|
+
includeTranscripts: options.includeTranscripts !== false,
|
|
5017
|
+
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
5018
|
+
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
5019
|
+
writeFile: async ({ filePath, content }) => storage.writeOfflineSyncFile(filePath, content),
|
|
5020
|
+
writeStagingFile: async ({ filePath, content }) => storage.writeOfflineSyncStagingFile(filePath, content),
|
|
5021
|
+
writeFileChunks: async (target) => {
|
|
5022
|
+
await guard.assertTargetAllowed(target);
|
|
5023
|
+
await storage.writeOfflineSyncFileChunks(
|
|
5024
|
+
target.filePath,
|
|
5025
|
+
guard.guardChunks(target.path, target.chunks)
|
|
5026
|
+
);
|
|
5027
|
+
}
|
|
5028
|
+
});
|
|
5029
|
+
}
|
|
5030
|
+
async function applySupportPassportOfflineSyncChangeset(storage, options) {
|
|
5031
|
+
const guard = createSupportPassportOfflineSyncGuard(storage);
|
|
5032
|
+
const changeset = normalizeOfflineSyncChangeset(options.changeset);
|
|
5033
|
+
for (const change of changeset.changes) {
|
|
5034
|
+
await guard.assertPathAllowed(change.path);
|
|
5035
|
+
if (change.type === "upsert") {
|
|
5036
|
+
guard.assertContentAllowed(change.path, Buffer.from(change.file.contentBase64, "base64"));
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
const result = await applyOfflineSyncChangeset({
|
|
5040
|
+
root: storage.dir,
|
|
5041
|
+
changeset,
|
|
5042
|
+
returnCurrentFiles: false,
|
|
5043
|
+
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
5044
|
+
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
5045
|
+
writeFile: async (target) => {
|
|
5046
|
+
await guard.assertTargetAllowed(target);
|
|
5047
|
+
guard.assertContentAllowed(target.path, target.content);
|
|
5048
|
+
await storage.writeOfflineSyncFile(target.filePath, target.content);
|
|
5049
|
+
},
|
|
5050
|
+
deleteFile: async (target) => {
|
|
5051
|
+
await guard.assertTargetAllowed(target);
|
|
5052
|
+
await storage.deleteOfflineSyncFile(target.filePath, target.mtimeMs ?? null);
|
|
5053
|
+
},
|
|
5054
|
+
recordDeletionRevision: async ({ filePath, mtimeMs }) => storage.recordReplicatedDeletionRevision(filePath, mtimeMs)
|
|
5055
|
+
});
|
|
5056
|
+
if (options.returnCurrentFiles === false) return result;
|
|
5057
|
+
const current = await buildOfflineSyncSnapshot({
|
|
5058
|
+
root: storage.dir,
|
|
5059
|
+
sourceId: "local",
|
|
5060
|
+
includeContent: false,
|
|
5061
|
+
includeTranscripts: changeset.includeTranscripts,
|
|
5062
|
+
excludeNodeLocalState: false,
|
|
5063
|
+
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
5064
|
+
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
5065
|
+
excludeFile: guard.excludePrivateFile
|
|
5066
|
+
});
|
|
5067
|
+
const { currentFiles: _partialFiles, currentFilesComplete: _incomplete, ...counts } = result;
|
|
5068
|
+
return { ...counts, currentFiles: current.files };
|
|
5069
|
+
}
|
|
5070
|
+
|
|
4905
5071
|
// src/procedural/procedure-miner.ts
|
|
4906
5072
|
import { createHash as createHash3 } from "crypto";
|
|
4907
5073
|
import { mkdir as mkdir2, rm, stat } from "fs/promises";
|
|
4908
|
-
import
|
|
5074
|
+
import path8 from "path";
|
|
4909
5075
|
|
|
4910
5076
|
// src/procedural/reinforcement-core.ts
|
|
4911
5077
|
function clusterByKey(items, keyFn) {
|
|
@@ -4958,8 +5124,8 @@ function sleep(ms) {
|
|
|
4958
5124
|
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
4959
5125
|
}
|
|
4960
5126
|
async function acquireClusterWriteLock(memoryDir, clusterHash) {
|
|
4961
|
-
const lockRoot =
|
|
4962
|
-
const lockDir =
|
|
5127
|
+
const lockRoot = path8.join(path8.resolve(memoryDir), "state", "procedure-miner-locks");
|
|
5128
|
+
const lockDir = path8.join(lockRoot, `${clusterHash}.lock`);
|
|
4963
5129
|
await mkdir2(lockRoot, { recursive: true });
|
|
4964
5130
|
const startedAt = Date.now();
|
|
4965
5131
|
let attempts = 0;
|
|
@@ -4990,7 +5156,7 @@ async function acquireClusterWriteLock(memoryDir, clusterHash) {
|
|
|
4990
5156
|
}
|
|
4991
5157
|
}
|
|
4992
5158
|
async function withClusterWriteLock(memoryDir, clusterHash, fn) {
|
|
4993
|
-
const inProcessKey = `${
|
|
5159
|
+
const inProcessKey = `${path8.resolve(memoryDir)}:${clusterHash}`;
|
|
4994
5160
|
const previous = inProcessClusterWriteLocks.get(inProcessKey) ?? Promise.resolve();
|
|
4995
5161
|
let releaseInProcess;
|
|
4996
5162
|
const current = previous.catch(() => void 0).then(
|
|
@@ -5447,10 +5613,10 @@ function formatZodIssues(error) {
|
|
|
5447
5613
|
const parts = [];
|
|
5448
5614
|
for (const issue of error.issues) {
|
|
5449
5615
|
const hasNumeric = issue.path.some((p) => typeof p === "number");
|
|
5450
|
-
const
|
|
5616
|
+
const path11 = hasNumeric ? issue.path.filter((p) => typeof p === "string").join(".") || "(root)" : issue.path.length > 0 ? issue.path.join(".") : "(root)";
|
|
5451
5617
|
const options = enumOptionsFromIssue(issue);
|
|
5452
5618
|
const suffix = options ? `. Valid: ${options.join(", ")}` : "";
|
|
5453
|
-
parts.push(`${
|
|
5619
|
+
parts.push(`${path11}: ${issue.message}${suffix}`);
|
|
5454
5620
|
}
|
|
5455
5621
|
return parts.length > 0 ? `request validation failed: ${parts.join("; ")}` : "request validation failed";
|
|
5456
5622
|
}
|
|
@@ -5589,7 +5755,7 @@ function resolveQueryNamespaceWritablePreflight(caps, params, authenticatedPrinc
|
|
|
5589
5755
|
}
|
|
5590
5756
|
|
|
5591
5757
|
// src/admin/admin-surfaces.ts
|
|
5592
|
-
import
|
|
5758
|
+
import path9 from "path";
|
|
5593
5759
|
var REDACTED = "<redacted>";
|
|
5594
5760
|
var SENSITIVE_KEY_RE = /(token|secret|password|api[_-]?key|bearer|authorization|credential|private[_-]?key)/i;
|
|
5595
5761
|
var BEARER_VALUE_RE = /^(bearer|sk-|pk-|xox[bp]-|AKIA)/i;
|
|
@@ -5872,7 +6038,7 @@ async function auditTranscripts(memoryDir) {
|
|
|
5872
6038
|
movedEntries: file.groups.reduce((sum, group) => sum + group.entryCount, 0),
|
|
5873
6039
|
unmovableLines: file.unmovableLines
|
|
5874
6040
|
}));
|
|
5875
|
-
const mixedOtherDefault = files.some((file) => file.sourceRelPath.split(
|
|
6041
|
+
const mixedOtherDefault = files.some((file) => file.sourceRelPath.split(path9.sep).includes("other"));
|
|
5876
6042
|
const summary = plan.movedEntries === 0 ? "No mixed-session transcript data detected; nothing to migrate." : `Found ${plan.movedEntries} entries across ${plan.distinctSessions} distinct sessions stranded in shared/legacy directories. Run the CLI migration command to re-home them.`;
|
|
5877
6043
|
return {
|
|
5878
6044
|
generatedAt: plan.generatedAt,
|
|
@@ -8238,7 +8404,7 @@ import { createHash as createHash5 } from "crypto";
|
|
|
8238
8404
|
import * as nodePath2 from "path";
|
|
8239
8405
|
|
|
8240
8406
|
// src/orchestration/recall-result-formatter.ts
|
|
8241
|
-
import
|
|
8407
|
+
import path10 from "path";
|
|
8242
8408
|
function renderConnectorLabel(connector) {
|
|
8243
8409
|
if (!isValidConnectorId(connector)) return null;
|
|
8244
8410
|
return connector.length <= CONNECTOR_LABEL_MAX_LENGTH ? connector : `${connector.slice(0, CONNECTOR_LABEL_MAX_LENGTH - 1)}\u2026`;
|
|
@@ -8260,15 +8426,15 @@ function resolveEffectiveIdentityInjectionMode(options) {
|
|
|
8260
8426
|
return { mode: options.configuredMode, shouldInject: true };
|
|
8261
8427
|
}
|
|
8262
8428
|
function displayResultPath(resultPath, memoryDir, namespace) {
|
|
8263
|
-
if (!
|
|
8264
|
-
const root =
|
|
8265
|
-
const nsRoot =
|
|
8266
|
-
if (namespace && (resultPath === nsRoot || resultPath.startsWith(nsRoot +
|
|
8267
|
-
const afterNs =
|
|
8429
|
+
if (!path10.isAbsolute(resultPath)) return resultPath;
|
|
8430
|
+
const root = path10.resolve(memoryDir);
|
|
8431
|
+
const nsRoot = path10.join(root, "namespaces");
|
|
8432
|
+
if (namespace && (resultPath === nsRoot || resultPath.startsWith(nsRoot + path10.sep))) {
|
|
8433
|
+
const afterNs = path10.relative(nsRoot, resultPath).split(path10.sep).slice(1).join("/");
|
|
8268
8434
|
if (afterNs) return `${namespace}/${afterNs}`;
|
|
8269
8435
|
}
|
|
8270
|
-
const rel =
|
|
8271
|
-
return rel && !rel.startsWith("..") && !
|
|
8436
|
+
const rel = path10.relative(root, resultPath);
|
|
8437
|
+
return rel && !rel.startsWith("..") && !path10.isAbsolute(rel) ? rel.split(path10.sep).join("/") : resultPath;
|
|
8272
8438
|
}
|
|
8273
8439
|
function displaySafeBudgetsApplied(budgetsApplied, memoryDir) {
|
|
8274
8440
|
if (!budgetsApplied?.includedMemoryPaths) return budgetsApplied;
|
|
@@ -11035,9 +11201,7 @@ var EngramAccessService = class {
|
|
|
11035
11201
|
const resolvedNamespace = this.resolveReadableNamespace(namespace, principal);
|
|
11036
11202
|
const storage = await this.orchestrator.getStorage(resolvedNamespace);
|
|
11037
11203
|
const memory = await storage.getMemoryById(resolvedId);
|
|
11038
|
-
if (!memory) {
|
|
11039
|
-
return { found: false, namespace: resolvedNamespace };
|
|
11040
|
-
}
|
|
11204
|
+
if (!memory || isSupportPassportPrivateMemory(memory)) return { found: false, namespace: resolvedNamespace };
|
|
11041
11205
|
return {
|
|
11042
11206
|
found: true,
|
|
11043
11207
|
namespace: resolvedNamespace,
|
|
@@ -11337,6 +11501,7 @@ var EngramAccessService = class {
|
|
|
11337
11501
|
query,
|
|
11338
11502
|
status: statusFilter,
|
|
11339
11503
|
category: categoryFilter,
|
|
11504
|
+
excludePrivateRecords: true,
|
|
11340
11505
|
sort,
|
|
11341
11506
|
limit,
|
|
11342
11507
|
offset
|
|
@@ -11354,6 +11519,7 @@ var EngramAccessService = class {
|
|
|
11354
11519
|
}
|
|
11355
11520
|
let memories = [...await storage.readAllMemories(), ...await storage.readArchivedMemories()];
|
|
11356
11521
|
memories = memories.filter((memory) => {
|
|
11522
|
+
if (isSupportPassportPrivateMemory(memory)) return false;
|
|
11357
11523
|
const status = inferMemoryStatus(memory.frontmatter, toMemoryPathRel(storage.dir, memory.path)).toLowerCase();
|
|
11358
11524
|
if (statusFilter && status !== statusFilter) return false;
|
|
11359
11525
|
if (categoryFilter && memory.frontmatter.category.toLowerCase() !== categoryFilter) return false;
|
|
@@ -11382,6 +11548,8 @@ var EngramAccessService = class {
|
|
|
11382
11548
|
async memoryTimeline(memoryId, namespace, limit = 200, principal) {
|
|
11383
11549
|
const resolvedNamespace = this.resolveReadableNamespace(namespace, principal);
|
|
11384
11550
|
const storage = await this.orchestrator.getStorage(resolvedNamespace);
|
|
11551
|
+
const memory = await storage.getMemoryByIdIncludingArchived(memoryId);
|
|
11552
|
+
if (!memory || isSupportPassportPrivateMemory(memory)) return { found: false, namespace: resolvedNamespace, count: 0, timeline: [] };
|
|
11385
11553
|
const timeline = await storage.getMemoryTimeline(memoryId, limit);
|
|
11386
11554
|
return {
|
|
11387
11555
|
found: timeline.length > 0,
|
|
@@ -11744,7 +11912,7 @@ var EngramAccessService = class {
|
|
|
11744
11912
|
);
|
|
11745
11913
|
const storage = await this.orchestrator.getStorage(resolvedNamespace);
|
|
11746
11914
|
const memory = await storage.getMemoryById(memoryId);
|
|
11747
|
-
if (!memory) {
|
|
11915
|
+
if (!memory || isSupportPassportPrivateMemory(memory)) {
|
|
11748
11916
|
throw new EngramAccessInputError(`memory not found: ${memoryId}`);
|
|
11749
11917
|
}
|
|
11750
11918
|
const previousStatus = memory.frontmatter.status ?? "active";
|
|
@@ -12141,7 +12309,6 @@ var EngramAccessService = class {
|
|
|
12141
12309
|
request
|
|
12142
12310
|
);
|
|
12143
12311
|
}
|
|
12144
|
-
// ── Shared Context / Compounding ────────────────────────────────────────
|
|
12145
12312
|
async sharedContextWriteOutput(request) {
|
|
12146
12313
|
if (!this.orchestrator.sharedContext) {
|
|
12147
12314
|
return { enabled: false, reason: "Shared context is disabled. Enable `sharedContextEnabled: true`." };
|
|
@@ -12234,7 +12401,6 @@ var EngramAccessService = class {
|
|
|
12234
12401
|
dryRun: request.dryRun
|
|
12235
12402
|
});
|
|
12236
12403
|
}
|
|
12237
|
-
// ── Compression Guidelines ────────────────────────────────────────────
|
|
12238
12404
|
async compressionGuidelinesOptimize(request) {
|
|
12239
12405
|
if (!resolveCompressionCapabilities(this.orchestrator.config).compressionGuidelineLearning) {
|
|
12240
12406
|
return { enabled: false, reason: "Compression guideline learning is disabled. Enable `compressionGuidelineLearningEnabled: true`." };
|
|
@@ -12253,12 +12419,12 @@ var EngramAccessService = class {
|
|
|
12253
12419
|
expectedGuidelineVersion: request.expectedGuidelineVersion
|
|
12254
12420
|
});
|
|
12255
12421
|
}
|
|
12256
|
-
// ── Memory search & debug ─────────────────────────────────────────────
|
|
12257
12422
|
async memorySearch(request) {
|
|
12258
12423
|
const { qmd, config } = this.orchestrator;
|
|
12259
12424
|
return memorySearchThroughScope(
|
|
12260
12425
|
{
|
|
12261
12426
|
namespacesEnabled: resolveNamespaceCapabilities(config).namespaces,
|
|
12427
|
+
memoryCollections: [config.qmdCollection, config.qmdColdCollection ?? "openclaw-engram-cold"],
|
|
12262
12428
|
// `0` is preserved, never coerced: a zero limit is a runtime
|
|
12263
12429
|
// compatibility guarantee (AGENTS.md guardrail 4), and it means the
|
|
12264
12430
|
// same thing here as an explicit `maxResults: 0` from the caller - an
|
|
@@ -12275,9 +12441,8 @@ var EngramAccessService = class {
|
|
|
12275
12441
|
{ ...config, requestedCollection: request.collection?.trim() || void 0 },
|
|
12276
12442
|
"qmd"
|
|
12277
12443
|
),
|
|
12278
|
-
|
|
12279
|
-
|
|
12280
|
-
},
|
|
12444
|
+
filterPrivate: this.orchestrator.filterPrivateSearchResults,
|
|
12445
|
+
authorizeFlatCorpus: (namespace, principal) => void this.resolveReadableNamespace(namespace, principal),
|
|
12281
12446
|
authorizeNamespaces: async (namespace, principal, collection) => this.resolveMemorySearchNamespacesForCollection(
|
|
12282
12447
|
collection,
|
|
12283
12448
|
await this.resolveReadableNamespacesForSearch(namespace, principal),
|
|
@@ -12810,7 +12975,7 @@ var EngramAccessService = class {
|
|
|
12810
12975
|
const resolvedNamespace = this.resolveReadableNamespace(options.namespace, options.principal);
|
|
12811
12976
|
const storage = await offlineSyncStorageForSnapshot(this.orchestrator, resolvedNamespace);
|
|
12812
12977
|
const storageHash = createHash6("sha256").update(storage.dir).digest("hex").slice(0, 16);
|
|
12813
|
-
const deletions = [...await storage.readDeletionRevisions()].map(([
|
|
12978
|
+
const deletions = [...await storage.readDeletionRevisions()].map(([path11, mtimeMs]) => ({ path: path11, mtimeMs }));
|
|
12814
12979
|
const snapshotBuilder = options.includeContent === false && options.baseFiles && options.baseFiles.length > 0 ? buildOfflineSyncSnapshotFromBase : buildOfflineSyncSnapshot;
|
|
12815
12980
|
const snapshot = await snapshotBuilder({
|
|
12816
12981
|
root: storage.dir,
|
|
@@ -12822,7 +12987,8 @@ var EngramAccessService = class {
|
|
|
12822
12987
|
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
12823
12988
|
signal: options.signal,
|
|
12824
12989
|
userExcludeRegexps: this.offlineSyncUserExcludes,
|
|
12825
|
-
deletions
|
|
12990
|
+
deletions,
|
|
12991
|
+
excludeFile: createSupportPassportPrivateFileExclusion(storage)
|
|
12826
12992
|
});
|
|
12827
12993
|
return {
|
|
12828
12994
|
namespace: resolvedNamespace,
|
|
@@ -12835,7 +13001,7 @@ var EngramAccessService = class {
|
|
|
12835
13001
|
const storageHash = createHash6("sha256").update(storage.dir).digest("hex").slice(0, 16);
|
|
12836
13002
|
const deletions = await filterOfflineSyncDeletionRevisions({
|
|
12837
13003
|
root: storage.dir,
|
|
12838
|
-
deletions: [...await storage.readDeletionRevisions()].map(([
|
|
13004
|
+
deletions: [...await storage.readDeletionRevisions()].map(([path11, mtimeMs]) => ({ path: path11, mtimeMs })),
|
|
12839
13005
|
includeTranscripts: options.includeTranscripts !== false,
|
|
12840
13006
|
userExcludeRegexps: this.offlineSyncUserExcludes
|
|
12841
13007
|
});
|
|
@@ -12854,7 +13020,8 @@ var EngramAccessService = class {
|
|
|
12854
13020
|
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
12855
13021
|
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
12856
13022
|
signal: options.signal,
|
|
12857
|
-
userExcludeRegexps: this.offlineSyncUserExcludes
|
|
13023
|
+
userExcludeRegexps: this.offlineSyncUserExcludes,
|
|
13024
|
+
excludeFile: createSupportPassportPrivateFileExclusion(storage)
|
|
12858
13025
|
})
|
|
12859
13026
|
};
|
|
12860
13027
|
}
|
|
@@ -12880,7 +13047,8 @@ var EngramAccessService = class {
|
|
|
12880
13047
|
includeContent: true,
|
|
12881
13048
|
includeTranscripts: options.includeTranscripts !== false,
|
|
12882
13049
|
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
12883
|
-
userExcludeRegexps: this.offlineSyncUserExcludes
|
|
13050
|
+
userExcludeRegexps: this.offlineSyncUserExcludes,
|
|
13051
|
+
excludeFile: createSupportPassportPrivateFileExclusion(storage)
|
|
12884
13052
|
});
|
|
12885
13053
|
return {
|
|
12886
13054
|
namespace: resolvedNamespace,
|
|
@@ -12905,7 +13073,8 @@ var EngramAccessService = class {
|
|
|
12905
13073
|
length: options.length,
|
|
12906
13074
|
includeTranscripts: options.includeTranscripts !== false,
|
|
12907
13075
|
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
12908
|
-
userExcludeRegexps: this.offlineSyncUserExcludes
|
|
13076
|
+
userExcludeRegexps: this.offlineSyncUserExcludes,
|
|
13077
|
+
excludeFile: createSupportPassportPrivateFileExclusion(storage)
|
|
12909
13078
|
});
|
|
12910
13079
|
return {
|
|
12911
13080
|
namespace: resolvedNamespace,
|
|
@@ -12927,23 +13096,7 @@ var EngramAccessService = class {
|
|
|
12927
13096
|
);
|
|
12928
13097
|
const storage = await this.orchestrator.getStorage(resolvedNamespace);
|
|
12929
13098
|
try {
|
|
12930
|
-
const result = await
|
|
12931
|
-
root: storage.dir,
|
|
12932
|
-
sourceId: options.sourceId,
|
|
12933
|
-
path: options.path,
|
|
12934
|
-
sha256: options.sha256,
|
|
12935
|
-
bytes: options.bytes,
|
|
12936
|
-
mtimeMs: options.mtimeMs,
|
|
12937
|
-
offset: options.offset,
|
|
12938
|
-
baseSha256: options.baseSha256,
|
|
12939
|
-
content: options.content,
|
|
12940
|
-
includeTranscripts: options.includeTranscripts !== false,
|
|
12941
|
-
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
12942
|
-
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
12943
|
-
writeFile: async ({ filePath, content }) => storage.writeOfflineSyncFile(filePath, content),
|
|
12944
|
-
writeStagingFile: async ({ filePath, content }) => storage.writeOfflineSyncStagingFile(filePath, content),
|
|
12945
|
-
writeFileChunks: async ({ filePath, chunks }) => storage.writeOfflineSyncFileChunks(filePath, chunks)
|
|
12946
|
-
});
|
|
13099
|
+
const result = await applySupportPassportOfflineSyncFileContent(storage, options);
|
|
12947
13100
|
return {
|
|
12948
13101
|
namespace: resolvedNamespace,
|
|
12949
13102
|
...result
|
|
@@ -12982,16 +13135,7 @@ var EngramAccessService = class {
|
|
|
12982
13135
|
);
|
|
12983
13136
|
const storage = await this.orchestrator.getStorage(resolvedNamespace);
|
|
12984
13137
|
try {
|
|
12985
|
-
const result = await
|
|
12986
|
-
root: storage.dir,
|
|
12987
|
-
changeset: options.changeset,
|
|
12988
|
-
returnCurrentFiles: options.returnCurrentFiles,
|
|
12989
|
-
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
12990
|
-
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
12991
|
-
writeFile: async ({ filePath, content }) => storage.writeOfflineSyncFile(filePath, content),
|
|
12992
|
-
deleteFile: async ({ filePath, mtimeMs }) => storage.deleteOfflineSyncFile(filePath, mtimeMs ?? null),
|
|
12993
|
-
recordDeletionRevision: async ({ filePath, mtimeMs }) => storage.recordReplicatedDeletionRevision(filePath, mtimeMs)
|
|
12994
|
-
});
|
|
13138
|
+
const result = await applySupportPassportOfflineSyncChangeset(storage, options);
|
|
12995
13139
|
return {
|
|
12996
13140
|
namespace: resolvedNamespace,
|
|
12997
13141
|
...result
|
|
@@ -13523,4 +13667,4 @@ export {
|
|
|
13523
13667
|
EngramAccessService,
|
|
13524
13668
|
AccessAdminOpsSurface
|
|
13525
13669
|
};
|
|
13526
|
-
//# sourceMappingURL=chunk-
|
|
13670
|
+
//# sourceMappingURL=chunk-3WGI7F4V.js.map
|