@remnic/core 9.69.28 → 9.69.29
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 +1 -1
- package/dist/access-admin-ops-surface.js +56 -56
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +1 -1
- package/dist/access-authorization-probe.js +57 -57
- package/dist/access-boundary.d.ts +1 -1
- package/dist/access-boundary.js +56 -56
- package/dist/access-cli.js +129 -128
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.js +4 -4
- package/dist/access-extraction-force-flush.d.ts +1 -1
- package/dist/access-extraction-force-flush.js +56 -56
- package/dist/access-http-briefing.d.ts +1 -1
- package/dist/access-http-briefing.js +57 -57
- package/dist/access-http-lcm-compaction.d.ts +1 -1
- package/dist/access-http-lifecycle-flush.d.ts +1 -1
- package/dist/access-http-offline-stream.d.ts +1 -1
- package/dist/access-http-query.js +58 -58
- package/dist/access-http.d.ts +2 -2
- package/dist/access-http.js +74 -74
- package/dist/access-identity-continuity-surface.js +56 -56
- package/dist/access-lcm-surface.d.ts +1 -1
- package/dist/access-lcm-surface.js +56 -56
- package/dist/access-mcp.d.ts +1 -1
- package/dist/access-mcp.js +64 -64
- package/dist/access-namespace-preflight.js +56 -56
- package/dist/access-observe-transcript.js +4 -4
- package/dist/access-observe-write-surface.d.ts +1 -1
- package/dist/access-observe-write-surface.js +56 -56
- package/dist/access-offline-manifest.js +8 -8
- package/dist/access-operations-batch.js +58 -58
- package/dist/access-operations.d.ts +1 -1
- package/dist/access-operations.js +63 -63
- package/dist/access-recall-concurrency.d.ts +1 -1
- package/dist/access-recall-concurrency.js +56 -56
- package/dist/access-recall-response.d.ts +1 -1
- package/dist/access-recall-response.js +56 -56
- package/dist/access-recall-surface.d.ts +1 -1
- package/dist/access-recall-surface.js +56 -56
- package/dist/access-schema.js +3 -3
- package/dist/access-service-helpers.d.ts +1 -1
- package/dist/access-service.d.ts +1 -1
- package/dist/access-service.js +56 -56
- package/dist/access-surface-catalog.d.ts +1 -1
- package/dist/access-surface-catalog.js +58 -58
- package/dist/active-recall.js +8 -8
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/{auto-sync-WNGG2GC2.js → auto-sync-NSHLUAQI.js} +7 -7
- package/dist/briefing.js +19 -19
- package/dist/buffer.js +7 -7
- package/dist/calibration.js +4 -4
- package/dist/causal-consolidation.js +21 -21
- package/dist/{chunk-GRCREL6Q.js → chunk-22JQEBN3.js} +9 -9
- package/dist/{chunk-QW3FMKT2.js → chunk-2E3CG66I.js} +2 -2
- package/dist/{chunk-OO42R444.js → chunk-2MFH376S.js} +3 -3
- package/dist/{chunk-NXH34IPL.js → chunk-353KGBKY.js} +2 -2
- package/dist/{chunk-DZD3WGCD.js → chunk-3JVLGJCY.js} +2 -2
- package/dist/{chunk-NOPN47AL.js → chunk-47DEYNMR.js} +2 -2
- package/dist/chunk-4NZQ7IID.js +63 -0
- package/dist/chunk-4NZQ7IID.js.map +1 -0
- package/dist/{chunk-IE57QQSZ.js → chunk-565C6ZFO.js} +2 -2
- package/dist/{chunk-IES4QHLM.js → chunk-5OOSADXP.js} +5 -5
- package/dist/{chunk-EYIEWJNI.js → chunk-6KH5NLQS.js} +2 -2
- package/dist/{chunk-EMDLM3LW.js → chunk-7IRZK6MM.js} +2 -2
- package/dist/{chunk-TVVEYCNW.js → chunk-7K5Q6COX.js} +4 -4
- package/dist/{chunk-RFWEDCRC.js → chunk-7VJXIDOC.js} +12 -12
- package/dist/{chunk-R5T5FB2R.js → chunk-A5JPK3MZ.js} +60 -60
- package/dist/{chunk-IVKIODHO.js → chunk-A7XEPMQ6.js} +5 -5
- package/dist/{chunk-K6MV3TRQ.js → chunk-ADXCCZL2.js} +2 -2
- package/dist/{chunk-GC65K6DI.js → chunk-AOCP6JA7.js} +4 -4
- package/dist/{chunk-JBPKEARU.js → chunk-AU7Q3LSC.js} +4 -4
- package/dist/{chunk-S2DU3UBN.js → chunk-AYAIV5V5.js} +6 -6
- package/dist/{chunk-ND6IQGSZ.js → chunk-BA6WOZOT.js} +2 -2
- package/dist/{chunk-JI7U6AS3.js → chunk-C6FQJ52H.js} +2 -2
- package/dist/{chunk-IN673LEP.js → chunk-CARRTDKC.js} +2 -2
- package/dist/{chunk-HLTAZTN7.js → chunk-CBCNKKZD.js} +2 -2
- package/dist/{chunk-DXFG2VGN.js → chunk-CGC5UQCF.js} +2 -2
- package/dist/{chunk-COUYFFID.js → chunk-CLALC6ZB.js} +2 -2
- package/dist/{chunk-YSSAGB2O.js → chunk-CLLPJ6QT.js} +5 -5
- package/dist/{chunk-U6S754L6.js → chunk-D5LORF7A.js} +3 -3
- package/dist/{chunk-C24UZSFW.js → chunk-DBQWVT2H.js} +2 -2
- package/dist/{chunk-XSTNGNJP.js → chunk-DCJ3YFIC.js} +2 -2
- package/dist/{chunk-2YDWI2LO.js → chunk-DITMGZOL.js} +2 -2
- package/dist/{chunk-LVE64P5Y.js → chunk-E2ZHGBAK.js} +2 -2
- package/dist/{chunk-INBOGQ3E.js → chunk-EZZV7OQL.js} +2 -2
- package/dist/{chunk-N3SS45OW.js → chunk-FCSZ4K2X.js} +3 -3
- package/dist/{chunk-TWF35IC6.js → chunk-FDLDOEO6.js} +28 -23
- package/dist/chunk-FDLDOEO6.js.map +1 -0
- package/dist/{chunk-PKS56ZRR.js → chunk-FGGYSN4P.js} +2 -2
- package/dist/{chunk-ZMNT26KV.js → chunk-FHQSPTPZ.js} +2 -2
- package/dist/{chunk-MSSJSC2V.js → chunk-FJ5B36V2.js} +2 -2
- package/dist/{chunk-YFDJVB2K.js → chunk-GAYZTUIF.js} +2 -2
- package/dist/{chunk-MYB6DWE5.js → chunk-GBYCFJGV.js} +6 -6
- package/dist/{chunk-WFZBRS6N.js → chunk-GCRGBE72.js} +2 -2
- package/dist/{chunk-6GUG4YNM.js → chunk-GGRRF4PZ.js} +2 -2
- package/dist/{chunk-4KMGFWQY.js → chunk-GL4EC4RG.js} +6 -6
- package/dist/{chunk-YIHKAUS4.js → chunk-GTWHVXPA.js} +3 -3
- package/dist/{chunk-UY2RORVF.js → chunk-GVG3JYBI.js} +4 -4
- package/dist/{chunk-I3OQBP23.js → chunk-GY5WZBA6.js} +2 -2
- package/dist/{chunk-3GCK6ONU.js → chunk-HK32G473.js} +2 -2
- package/dist/{chunk-EWCNCQOU.js → chunk-HRICDLBE.js} +2 -2
- package/dist/{chunk-OVAJKCN3.js → chunk-HY55QQD7.js} +2 -2
- package/dist/{chunk-YJETZFLJ.js → chunk-I27RSQRR.js} +2 -2
- package/dist/{chunk-QIEUU4UK.js → chunk-I55KAVET.js} +2 -2
- package/dist/{chunk-UEEN7GXR.js → chunk-IY2FVXM6.js} +3 -3
- package/dist/{chunk-Z5XE7AMC.js → chunk-J5Q2YTOB.js} +2 -2
- package/dist/{chunk-2AMEUKCG.js → chunk-JEIXTYVG.js} +2 -2
- package/dist/{chunk-BIVJCVT2.js → chunk-JJPRWTOW.js} +2 -2
- package/dist/{chunk-ODW5GDFE.js → chunk-JT3EB7ZL.js} +2 -2
- package/dist/{chunk-R55WAWS3.js → chunk-K5DSKAVF.js} +39 -39
- package/dist/{chunk-7LCGFUMB.js → chunk-KQAFEZQX.js} +4 -4
- package/dist/{chunk-3K7V3HE6.js → chunk-KXRX7YC2.js} +2 -2
- package/dist/{chunk-WW3MR6T3.js → chunk-L5JP37BO.js} +7 -7
- package/dist/{chunk-7RZJWZ46.js → chunk-LEPOP46W.js} +5 -5
- package/dist/{chunk-54WHLA65.js → chunk-LRICZIGN.js} +3 -3
- package/dist/{chunk-EZKSOM5K.js → chunk-MFJBANPX.js} +2 -2
- package/dist/{chunk-OB3XMWX5.js → chunk-MKWKYHXJ.js} +4 -4
- package/dist/{chunk-HMKPFW7R.js → chunk-MPAJFFP3.js} +2 -2
- package/dist/{chunk-4P43SE4H.js → chunk-MPYD657E.js} +2 -2
- package/dist/{chunk-EIJR4PZL.js → chunk-N2CAORTC.js} +4 -4
- package/dist/{chunk-NLDVVWCL.js → chunk-NDNTNE3S.js} +2 -2
- package/dist/{chunk-OMLGLMWL.js → chunk-NEFKNR4V.js} +9 -9
- package/dist/{chunk-5ISVONB7.js → chunk-NWWXSJX5.js} +2 -2
- package/dist/{chunk-QBC33MPY.js → chunk-NZXEK3UF.js} +2 -2
- package/dist/{chunk-JUC24CTX.js → chunk-P2QRMMVQ.js} +6 -1
- package/dist/chunk-P2QRMMVQ.js.map +1 -0
- package/dist/{chunk-OYHGTHVX.js → chunk-PHNAB54Q.js} +2 -2
- package/dist/{chunk-BD7JTBYP.js → chunk-PSPABFN2.js} +4 -4
- package/dist/{chunk-WOOTZ6DH.js → chunk-PV36INNL.js} +3 -3
- package/dist/{chunk-HTPQJ32S.js → chunk-ROKKIMON.js} +2 -2
- package/dist/{chunk-5KND6CSX.js → chunk-RSVEP77Y.js} +2 -2
- package/dist/{chunk-SV4Z2S67.js → chunk-S5G2LAL7.js} +4 -4
- package/dist/{chunk-5PTRLTK2.js → chunk-S65WXHNK.js} +2 -2
- package/dist/{chunk-3FEH4C4V.js → chunk-SB6PSOP7.js} +1 -1
- package/dist/{chunk-JALOAKSZ.js → chunk-TLPZ6MKZ.js} +4 -4
- package/dist/{chunk-XR67IAXP.js → chunk-TXMAF7FZ.js} +5 -5
- package/dist/{chunk-W7OU4I3Y.js → chunk-UFDMVGUQ.js} +2 -2
- package/dist/{chunk-DFEODULB.js → chunk-V2HHAAPI.js} +2 -2
- package/dist/{chunk-KEF46KL2.js → chunk-V6EGNVUT.js} +3 -3
- package/dist/{chunk-ESNFSSO4.js → chunk-VGXM5B4H.js} +2 -2
- package/dist/{chunk-6TZWGQTT.js → chunk-VLLEWQIU.js} +4 -4
- package/dist/{chunk-MJUCDM3C.js → chunk-VLXBE57O.js} +2 -2
- package/dist/{chunk-YGTSOVCR.js → chunk-VP67GZ7T.js} +2 -2
- package/dist/{chunk-NVOFMARR.js → chunk-VT4MK674.js} +2 -2
- package/dist/{chunk-ALBYEXFX.js → chunk-VZWXFXLX.js} +2 -2
- package/dist/{chunk-NC7RM2XS.js → chunk-W64HKJJM.js} +3 -3
- package/dist/{chunk-BHHONFSK.js → chunk-W7SECYCQ.js} +2 -2
- package/dist/{chunk-EGALNSZ4.js → chunk-XU6OEECT.js} +3 -3
- package/dist/{chunk-C6XEXTSJ.js → chunk-XWSMJXIG.js} +42 -42
- package/dist/{chunk-UY7VPC6Q.js → chunk-Y3BGA7L5.js} +15 -15
- package/dist/{chunk-4FIH6MPS.js → chunk-YHLWPYHT.js} +3 -3
- package/dist/{chunk-PAZY2ZKP.js → chunk-YQAXP5AC.js} +2 -2
- package/dist/{chunk-ZNR5SVUI.js → chunk-YUMDFDUA.js} +3 -3
- package/dist/{chunk-7HYPN2GC.js → chunk-ZG74PWRW.js} +2 -2
- package/dist/{chunk-TDYAIXHK.js → chunk-ZHXSOMYH.js} +4 -4
- package/dist/{chunk-TNSCIPBQ.js → chunk-ZNJSBIP4.js} +4 -4
- package/dist/{cli-BqMNkQn5.d.ts → cli-B_YwqoIr.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +97 -97
- package/dist/coding/export-okf-codegraph.js +21 -21
- package/dist/compounding/engine.js +20 -20
- package/dist/config-discovery.d.ts +26 -0
- package/dist/config-discovery.js +11 -0
- package/dist/config-security.js +2 -2
- package/dist/config.js +8 -8
- package/dist/connectors/codex-materialize-runner.js +20 -20
- package/dist/connectors/codex-materialize.js +3 -3
- package/dist/connectors/index.js +23 -23
- package/dist/convergence-refresh.js +21 -21
- package/dist/conversation-index/backend.js +2 -2
- package/dist/corpus-watermark.js +21 -21
- package/dist/deep-recall-http-glue.d.ts +1 -1
- package/dist/deep-recall-http-glue.js +4 -4
- package/dist/deep-recall-mcp-tools.d.ts +1 -1
- package/dist/deep-recall-policy-llm.js +5 -5
- package/dist/deep-recall.js +2 -2
- package/dist/embedding-fallback.js +2 -2
- package/dist/emit-legacy-tools.js +3 -3
- package/dist/entity-retrieval.js +19 -19
- package/dist/external-wiki-access.d.ts +1 -1
- package/dist/external-wiki-access.js +57 -57
- package/dist/external-wiki-config.js +3 -3
- package/dist/external-wiki-mcp-tools.d.ts +1 -1
- package/dist/extraction-faithfulness.js +5 -5
- package/dist/extraction-judge.js +5 -5
- package/dist/extraction-source-grounding.js +3 -3
- package/dist/extraction.js +32 -32
- package/dist/fallback-llm.js +4 -4
- package/dist/harmonic-retrieval.js +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.js +147 -138
- package/dist/live-connectors-runner.js +5 -5
- package/dist/local-llm.js +3 -3
- package/dist/location/index.js +21 -21
- package/dist/maintenance/memory-governance.js +19 -19
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +19 -19
- package/dist/maintenance/rebuild-memory-projection.js +20 -20
- package/dist/mcp-memory-inspector-app.d.ts +1 -1
- package/dist/memory-subject-cli.d.ts +1 -1
- package/dist/memory-subject.d.ts +1 -1
- package/dist/migrate/from-engram.js +2 -2
- package/dist/namespaces/migrate.js +20 -20
- package/dist/namespaces/search.js +11 -11
- package/dist/namespaces/storage.js +19 -19
- package/dist/offline-sync-impression-drain.js +6 -6
- package/dist/operator-doctor-corpus.js +22 -22
- package/dist/operator-toolkit.js +35 -35
- package/dist/opik-exporter.js +1 -1
- package/dist/orchestration/maintenance.js +30 -30
- package/dist/orchestrator.js +129 -128
- package/dist/provenance.js +2 -2
- package/dist/{public-http-ByX2eTla.d.ts → public-http-D6d4W8x-.d.ts} +1 -1
- package/dist/qmd.js +2 -2
- package/dist/recall-planner-llm.js +4 -4
- package/dist/reconcile/manifest.js +1 -1
- package/dist/resolve-provider-secret.js +2 -2
- package/dist/resume-bundles.js +9 -9
- package/dist/runtime/env.d.ts +9 -1
- package/dist/runtime/env.js +3 -1
- package/dist/schemas.d.ts +42 -42
- package/dist/sdk-compat.js +1 -1
- package/dist/search/factory.js +10 -10
- package/dist/search/index.js +15 -15
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/orama-backend.js +2 -2
- package/dist/semantic-consolidation.js +21 -21
- package/dist/semantic-rule-promotion.js +19 -19
- package/dist/semantic-rule-verifier.js +19 -19
- package/dist/shared-context/manager.js +3 -3
- package/dist/source-agent-qualifier.js +29 -29
- package/dist/standup/build.js +19 -19
- package/dist/{state-store-Z3EN56O5.js → state-store-I5HLZTZT.js} +4 -4
- package/dist/state-store-I5HLZTZT.js.map +1 -0
- package/dist/storage.js +18 -18
- package/dist/summarizer.js +7 -7
- package/dist/support-passport/index.d.ts +4 -4
- package/dist/support-passport/index.js +59 -59
- package/dist/tokens.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/transfer/export-okf.js +20 -20
- package/dist/transfer/types.d.ts +12 -12
- package/dist/utils/path.js +2 -2
- package/dist/verified-recall.js +19 -19
- package/dist/who-knows-cli.d.ts +1 -1
- package/dist/who-knows-cli.js +20 -20
- package/dist/who-knows.d.ts +1 -1
- package/dist/who-knows.js +19 -19
- package/package.json +2 -2
- package/src/config-discovery.test.ts +63 -0
- package/src/config-discovery.ts +90 -0
- package/src/index.ts +2 -0
- package/src/reconcile/manifest.ts +59 -50
- package/src/runtime/env.ts +11 -0
- package/dist/chunk-JUC24CTX.js.map +0 -1
- package/dist/chunk-TWF35IC6.js.map +0 -1
- package/dist/{access-service-GrdVg_-Z.d.ts → access-service-Cv8Rizo0.d.ts} +6 -6
- /package/dist/{auto-sync-WNGG2GC2.js.map → auto-sync-NSHLUAQI.js.map} +0 -0
- /package/dist/{chunk-GRCREL6Q.js.map → chunk-22JQEBN3.js.map} +0 -0
- /package/dist/{chunk-QW3FMKT2.js.map → chunk-2E3CG66I.js.map} +0 -0
- /package/dist/{chunk-OO42R444.js.map → chunk-2MFH376S.js.map} +0 -0
- /package/dist/{chunk-NXH34IPL.js.map → chunk-353KGBKY.js.map} +0 -0
- /package/dist/{chunk-DZD3WGCD.js.map → chunk-3JVLGJCY.js.map} +0 -0
- /package/dist/{chunk-NOPN47AL.js.map → chunk-47DEYNMR.js.map} +0 -0
- /package/dist/{chunk-IE57QQSZ.js.map → chunk-565C6ZFO.js.map} +0 -0
- /package/dist/{chunk-IES4QHLM.js.map → chunk-5OOSADXP.js.map} +0 -0
- /package/dist/{chunk-EYIEWJNI.js.map → chunk-6KH5NLQS.js.map} +0 -0
- /package/dist/{chunk-EMDLM3LW.js.map → chunk-7IRZK6MM.js.map} +0 -0
- /package/dist/{chunk-TVVEYCNW.js.map → chunk-7K5Q6COX.js.map} +0 -0
- /package/dist/{chunk-RFWEDCRC.js.map → chunk-7VJXIDOC.js.map} +0 -0
- /package/dist/{chunk-R5T5FB2R.js.map → chunk-A5JPK3MZ.js.map} +0 -0
- /package/dist/{chunk-IVKIODHO.js.map → chunk-A7XEPMQ6.js.map} +0 -0
- /package/dist/{chunk-K6MV3TRQ.js.map → chunk-ADXCCZL2.js.map} +0 -0
- /package/dist/{chunk-GC65K6DI.js.map → chunk-AOCP6JA7.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-AU7Q3LSC.js.map} +0 -0
- /package/dist/{chunk-S2DU3UBN.js.map → chunk-AYAIV5V5.js.map} +0 -0
- /package/dist/{chunk-ND6IQGSZ.js.map → chunk-BA6WOZOT.js.map} +0 -0
- /package/dist/{chunk-JI7U6AS3.js.map → chunk-C6FQJ52H.js.map} +0 -0
- /package/dist/{chunk-IN673LEP.js.map → chunk-CARRTDKC.js.map} +0 -0
- /package/dist/{chunk-HLTAZTN7.js.map → chunk-CBCNKKZD.js.map} +0 -0
- /package/dist/{chunk-DXFG2VGN.js.map → chunk-CGC5UQCF.js.map} +0 -0
- /package/dist/{chunk-COUYFFID.js.map → chunk-CLALC6ZB.js.map} +0 -0
- /package/dist/{chunk-YSSAGB2O.js.map → chunk-CLLPJ6QT.js.map} +0 -0
- /package/dist/{chunk-U6S754L6.js.map → chunk-D5LORF7A.js.map} +0 -0
- /package/dist/{chunk-C24UZSFW.js.map → chunk-DBQWVT2H.js.map} +0 -0
- /package/dist/{chunk-XSTNGNJP.js.map → chunk-DCJ3YFIC.js.map} +0 -0
- /package/dist/{chunk-2YDWI2LO.js.map → chunk-DITMGZOL.js.map} +0 -0
- /package/dist/{chunk-LVE64P5Y.js.map → chunk-E2ZHGBAK.js.map} +0 -0
- /package/dist/{chunk-INBOGQ3E.js.map → chunk-EZZV7OQL.js.map} +0 -0
- /package/dist/{chunk-N3SS45OW.js.map → chunk-FCSZ4K2X.js.map} +0 -0
- /package/dist/{chunk-PKS56ZRR.js.map → chunk-FGGYSN4P.js.map} +0 -0
- /package/dist/{chunk-ZMNT26KV.js.map → chunk-FHQSPTPZ.js.map} +0 -0
- /package/dist/{chunk-MSSJSC2V.js.map → chunk-FJ5B36V2.js.map} +0 -0
- /package/dist/{chunk-YFDJVB2K.js.map → chunk-GAYZTUIF.js.map} +0 -0
- /package/dist/{chunk-MYB6DWE5.js.map → chunk-GBYCFJGV.js.map} +0 -0
- /package/dist/{chunk-WFZBRS6N.js.map → chunk-GCRGBE72.js.map} +0 -0
- /package/dist/{chunk-6GUG4YNM.js.map → chunk-GGRRF4PZ.js.map} +0 -0
- /package/dist/{chunk-4KMGFWQY.js.map → chunk-GL4EC4RG.js.map} +0 -0
- /package/dist/{chunk-YIHKAUS4.js.map → chunk-GTWHVXPA.js.map} +0 -0
- /package/dist/{chunk-UY2RORVF.js.map → chunk-GVG3JYBI.js.map} +0 -0
- /package/dist/{chunk-I3OQBP23.js.map → chunk-GY5WZBA6.js.map} +0 -0
- /package/dist/{chunk-3GCK6ONU.js.map → chunk-HK32G473.js.map} +0 -0
- /package/dist/{chunk-EWCNCQOU.js.map → chunk-HRICDLBE.js.map} +0 -0
- /package/dist/{chunk-OVAJKCN3.js.map → chunk-HY55QQD7.js.map} +0 -0
- /package/dist/{chunk-YJETZFLJ.js.map → chunk-I27RSQRR.js.map} +0 -0
- /package/dist/{chunk-QIEUU4UK.js.map → chunk-I55KAVET.js.map} +0 -0
- /package/dist/{chunk-UEEN7GXR.js.map → chunk-IY2FVXM6.js.map} +0 -0
- /package/dist/{chunk-Z5XE7AMC.js.map → chunk-J5Q2YTOB.js.map} +0 -0
- /package/dist/{chunk-2AMEUKCG.js.map → chunk-JEIXTYVG.js.map} +0 -0
- /package/dist/{chunk-BIVJCVT2.js.map → chunk-JJPRWTOW.js.map} +0 -0
- /package/dist/{chunk-ODW5GDFE.js.map → chunk-JT3EB7ZL.js.map} +0 -0
- /package/dist/{chunk-R55WAWS3.js.map → chunk-K5DSKAVF.js.map} +0 -0
- /package/dist/{chunk-7LCGFUMB.js.map → chunk-KQAFEZQX.js.map} +0 -0
- /package/dist/{chunk-3K7V3HE6.js.map → chunk-KXRX7YC2.js.map} +0 -0
- /package/dist/{chunk-WW3MR6T3.js.map → chunk-L5JP37BO.js.map} +0 -0
- /package/dist/{chunk-7RZJWZ46.js.map → chunk-LEPOP46W.js.map} +0 -0
- /package/dist/{chunk-54WHLA65.js.map → chunk-LRICZIGN.js.map} +0 -0
- /package/dist/{chunk-EZKSOM5K.js.map → chunk-MFJBANPX.js.map} +0 -0
- /package/dist/{chunk-OB3XMWX5.js.map → chunk-MKWKYHXJ.js.map} +0 -0
- /package/dist/{chunk-HMKPFW7R.js.map → chunk-MPAJFFP3.js.map} +0 -0
- /package/dist/{chunk-4P43SE4H.js.map → chunk-MPYD657E.js.map} +0 -0
- /package/dist/{chunk-EIJR4PZL.js.map → chunk-N2CAORTC.js.map} +0 -0
- /package/dist/{chunk-NLDVVWCL.js.map → chunk-NDNTNE3S.js.map} +0 -0
- /package/dist/{chunk-OMLGLMWL.js.map → chunk-NEFKNR4V.js.map} +0 -0
- /package/dist/{chunk-5ISVONB7.js.map → chunk-NWWXSJX5.js.map} +0 -0
- /package/dist/{chunk-QBC33MPY.js.map → chunk-NZXEK3UF.js.map} +0 -0
- /package/dist/{chunk-OYHGTHVX.js.map → chunk-PHNAB54Q.js.map} +0 -0
- /package/dist/{chunk-BD7JTBYP.js.map → chunk-PSPABFN2.js.map} +0 -0
- /package/dist/{chunk-WOOTZ6DH.js.map → chunk-PV36INNL.js.map} +0 -0
- /package/dist/{chunk-HTPQJ32S.js.map → chunk-ROKKIMON.js.map} +0 -0
- /package/dist/{chunk-5KND6CSX.js.map → chunk-RSVEP77Y.js.map} +0 -0
- /package/dist/{chunk-SV4Z2S67.js.map → chunk-S5G2LAL7.js.map} +0 -0
- /package/dist/{chunk-5PTRLTK2.js.map → chunk-S65WXHNK.js.map} +0 -0
- /package/dist/{chunk-3FEH4C4V.js.map → chunk-SB6PSOP7.js.map} +0 -0
- /package/dist/{chunk-JALOAKSZ.js.map → chunk-TLPZ6MKZ.js.map} +0 -0
- /package/dist/{chunk-XR67IAXP.js.map → chunk-TXMAF7FZ.js.map} +0 -0
- /package/dist/{chunk-W7OU4I3Y.js.map → chunk-UFDMVGUQ.js.map} +0 -0
- /package/dist/{chunk-DFEODULB.js.map → chunk-V2HHAAPI.js.map} +0 -0
- /package/dist/{chunk-KEF46KL2.js.map → chunk-V6EGNVUT.js.map} +0 -0
- /package/dist/{chunk-ESNFSSO4.js.map → chunk-VGXM5B4H.js.map} +0 -0
- /package/dist/{chunk-6TZWGQTT.js.map → chunk-VLLEWQIU.js.map} +0 -0
- /package/dist/{chunk-MJUCDM3C.js.map → chunk-VLXBE57O.js.map} +0 -0
- /package/dist/{chunk-YGTSOVCR.js.map → chunk-VP67GZ7T.js.map} +0 -0
- /package/dist/{chunk-NVOFMARR.js.map → chunk-VT4MK674.js.map} +0 -0
- /package/dist/{chunk-ALBYEXFX.js.map → chunk-VZWXFXLX.js.map} +0 -0
- /package/dist/{chunk-NC7RM2XS.js.map → chunk-W64HKJJM.js.map} +0 -0
- /package/dist/{chunk-BHHONFSK.js.map → chunk-W7SECYCQ.js.map} +0 -0
- /package/dist/{chunk-EGALNSZ4.js.map → chunk-XU6OEECT.js.map} +0 -0
- /package/dist/{chunk-C6XEXTSJ.js.map → chunk-XWSMJXIG.js.map} +0 -0
- /package/dist/{chunk-UY7VPC6Q.js.map → chunk-Y3BGA7L5.js.map} +0 -0
- /package/dist/{chunk-4FIH6MPS.js.map → chunk-YHLWPYHT.js.map} +0 -0
- /package/dist/{chunk-PAZY2ZKP.js.map → chunk-YQAXP5AC.js.map} +0 -0
- /package/dist/{chunk-ZNR5SVUI.js.map → chunk-YUMDFDUA.js.map} +0 -0
- /package/dist/{chunk-7HYPN2GC.js.map → chunk-ZG74PWRW.js.map} +0 -0
- /package/dist/{chunk-TDYAIXHK.js.map → chunk-ZHXSOMYH.js.map} +0 -0
- /package/dist/{chunk-TNSCIPBQ.js.map → chunk-ZNJSBIP4.js.map} +0 -0
- /package/dist/{state-store-Z3EN56O5.js.map → config-discovery.js.map} +0 -0
|
@@ -59,9 +59,7 @@ export interface ReconcileManifest {
|
|
|
59
59
|
files: ReconcileManifestFile[];
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export type ReconcileMemoryParser = (
|
|
63
|
-
raw: string,
|
|
64
|
-
) => { frontmatter: MemoryFrontmatter; content: string } | null;
|
|
62
|
+
export type ReconcileMemoryParser = (raw: string) => { frontmatter: MemoryFrontmatter; content: string } | null;
|
|
65
63
|
|
|
66
64
|
export interface BuildReconcileManifestOptions {
|
|
67
65
|
files: Iterable<ReconcileFileState>;
|
|
@@ -82,32 +80,26 @@ function isMemoryPath(filePath: string): boolean {
|
|
|
82
80
|
return MEMORY_DIRS.has(segments[index] ?? "");
|
|
83
81
|
}
|
|
84
82
|
|
|
85
|
-
|
|
86
83
|
function parsedMemoryIdentity(
|
|
87
84
|
filePath: string,
|
|
88
85
|
raw: Buffer | string,
|
|
89
86
|
parseMemory: ReconcileMemoryParser,
|
|
90
|
-
citationTemplate: string
|
|
87
|
+
citationTemplate: string
|
|
91
88
|
): ReconcileMemoryIdentity | undefined {
|
|
92
89
|
if (!isMemoryPath(filePath)) return undefined;
|
|
93
90
|
const parsed = parseMemory(Buffer.isBuffer(raw) ? raw.toString("utf8") : raw);
|
|
94
91
|
if (!parsed?.frontmatter.id) return undefined;
|
|
95
92
|
|
|
96
93
|
const storedHash =
|
|
97
|
-
parsed.frontmatter.contentHash &&
|
|
98
|
-
SHA256_PATTERN.test(parsed.frontmatter.contentHash)
|
|
94
|
+
parsed.frontmatter.contentHash && SHA256_PATTERN.test(parsed.frontmatter.contentHash)
|
|
99
95
|
? parsed.frontmatter.contentHash.toLowerCase()
|
|
100
96
|
: undefined;
|
|
101
97
|
const candidates = storedContentIdentityCandidates(parsed.content, (content) =>
|
|
102
98
|
stripCitationForTemplate(content, citationTemplate)
|
|
103
99
|
);
|
|
104
100
|
const bodyHash = ContentHashIndex.computeHash(candidates[0] ?? "");
|
|
105
|
-
const currentMatch = candidates.find(
|
|
106
|
-
|
|
107
|
-
);
|
|
108
|
-
const legacyMatch = [...candidates].reverse().find(
|
|
109
|
-
(content) => computeLegacyContentHash(content) === storedHash
|
|
110
|
-
);
|
|
101
|
+
const currentMatch = candidates.find((content) => ContentHashIndex.computeHash(content) === storedHash);
|
|
102
|
+
const legacyMatch = [...candidates].reverse().find((content) => computeLegacyContentHash(content) === storedHash);
|
|
111
103
|
let contentHash: string;
|
|
112
104
|
let contentHashAliases: string[] | undefined;
|
|
113
105
|
if (currentMatch) {
|
|
@@ -126,7 +118,7 @@ function parsedMemoryIdentity(
|
|
|
126
118
|
// An EMPTY legacy skeleton identifies nothing (every non-ASCII body maps
|
|
127
119
|
// to it), so preserving it would collapse unrelated records. Recovering
|
|
128
120
|
// the current identity here is repair, not replacement.
|
|
129
|
-
contentHash = legacyMatch ? ContentHashIndex.computeHash(legacyMatch) : storedHash ?? bodyHash;
|
|
121
|
+
contentHash = legacyMatch ? ContentHashIndex.computeHash(legacyMatch) : (storedHash ?? bodyHash);
|
|
130
122
|
}
|
|
131
123
|
|
|
132
124
|
return {
|
|
@@ -144,7 +136,7 @@ export async function buildReconcileManifestFile(
|
|
|
144
136
|
file: ReconcileFileState,
|
|
145
137
|
readFile: (file: ReconcileFileState) => Promise<Buffer | string | null>,
|
|
146
138
|
parseMemory: ReconcileMemoryParser,
|
|
147
|
-
citationTemplate = DEFAULT_CITATION_FORMAT
|
|
139
|
+
citationTemplate = DEFAULT_CITATION_FORMAT
|
|
148
140
|
): Promise<ReconcileManifestFile> {
|
|
149
141
|
let raw: Buffer | string | null = null;
|
|
150
142
|
if (isMemoryPath(file.path)) {
|
|
@@ -161,6 +153,15 @@ export async function buildReconcileManifestFile(
|
|
|
161
153
|
return { ...file, ...(memory ? { memory } : {}) };
|
|
162
154
|
}
|
|
163
155
|
|
|
156
|
+
/** Read-batch size for manifest builds. Uncached files are independent (a
|
|
157
|
+
* per-file read + sha256 + frontmatter parse); processing them in bounded
|
|
158
|
+
* batches amortizes the per-file promise/async-hook overhead that dominates
|
|
159
|
+
* boot-scale corpus builds (measured: ~66% of CPU in async_hooks._propagate +
|
|
160
|
+
* GC at ~100k files) and overlaps IO waits, while the bound keeps memory flat.
|
|
161
|
+
* Order is preserved: results land in input order regardless of completion
|
|
162
|
+
* order, so the manifest output is byte-identical to the sequential form. */
|
|
163
|
+
const MANIFEST_BUILD_BATCH_SIZE = 50;
|
|
164
|
+
|
|
164
165
|
export async function buildReconcileManifest(options: BuildReconcileManifestOptions): Promise<ReconcileManifest> {
|
|
165
166
|
const cachedByPath = new Map<string, ReconcileManifestFile>();
|
|
166
167
|
for (const cached of options.cachedFiles ?? []) {
|
|
@@ -168,24 +169,36 @@ export async function buildReconcileManifest(options: BuildReconcileManifestOpti
|
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
const files: ReconcileManifestFile[] = [];
|
|
171
|
-
|
|
172
|
+
// Cache hits stay on a synchronous fast path (no promise allocation, no
|
|
173
|
+
// Promise.all — a fully-cached rebuild must not regress); only the uncached
|
|
174
|
+
// entries ride the bounded batches. Order is preserved by index.
|
|
175
|
+
const uncached: Array<{ index: number; file: ReconcileFileState }> = [];
|
|
176
|
+
const allFiles = [...options.files];
|
|
177
|
+
for (let i = 0; i < allFiles.length; i += 1) {
|
|
178
|
+
const file = allFiles[i]!;
|
|
172
179
|
const cached = cachedByPath.get(file.path);
|
|
173
180
|
if (
|
|
174
|
-
cached
|
|
181
|
+
cached !== undefined &&
|
|
182
|
+
cached.sha256.toLowerCase() === file.sha256.toLowerCase() &&
|
|
175
183
|
(cached.memory === undefined ||
|
|
176
184
|
(cached.memory.normalizerVersion === CONTENT_HASH_NORMALIZER_VERSION &&
|
|
177
185
|
cached.memory.identityResolutionVersion === IDENTITY_RESOLUTION_VERSION))
|
|
178
186
|
) {
|
|
179
187
|
files.push({ ...file, ...(cached.memory ? { memory: cached.memory } : {}) });
|
|
180
|
-
|
|
188
|
+
} else {
|
|
189
|
+
uncached.push({ index: i, file });
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
for (let i = 0; i < uncached.length; i += MANIFEST_BUILD_BATCH_SIZE) {
|
|
193
|
+
const batch = uncached.slice(i, i + MANIFEST_BUILD_BATCH_SIZE);
|
|
194
|
+
const results = await Promise.all(
|
|
195
|
+
batch.map(({ file }) =>
|
|
196
|
+
buildReconcileManifestFile(file, options.readFile, options.parseMemory, options.citationTemplate)
|
|
197
|
+
)
|
|
198
|
+
);
|
|
199
|
+
for (let j = 0; j < batch.length; j += 1) {
|
|
200
|
+
files[batch[j]!.index] = results[j]!;
|
|
181
201
|
}
|
|
182
|
-
|
|
183
|
-
files.push(await buildReconcileManifestFile(
|
|
184
|
-
file,
|
|
185
|
-
options.readFile,
|
|
186
|
-
options.parseMemory,
|
|
187
|
-
options.citationTemplate,
|
|
188
|
-
));
|
|
189
202
|
}
|
|
190
203
|
files.sort((left, right) => (left.path < right.path ? -1 : left.path > right.path ? 1 : 0));
|
|
191
204
|
return {
|
|
@@ -209,10 +222,7 @@ function memoryIdentityHashes(memory: ReconcileMemoryIdentity): string[] {
|
|
|
209
222
|
return [memory.contentHash, ...(memory.contentHashAliases ?? [])];
|
|
210
223
|
}
|
|
211
224
|
|
|
212
|
-
function contentHashRows(
|
|
213
|
-
files: Iterable<ActiveFactManifestFile>,
|
|
214
|
-
contentHash: string,
|
|
215
|
-
): ContentHashPathEntry[] {
|
|
225
|
+
function contentHashRows(files: Iterable<ActiveFactManifestFile>, contentHash: string): ContentHashPathEntry[] {
|
|
216
226
|
const rows: ContentHashPathEntry[] = [];
|
|
217
227
|
for (const file of files) {
|
|
218
228
|
rows.push({ path: file.path, contentHash });
|
|
@@ -237,7 +247,7 @@ export function collapseActiveFactDuplicates(
|
|
|
237
247
|
plan: ReconcilePlan,
|
|
238
248
|
localManifests: ReadonlyMap<string, ReconcileManifest>,
|
|
239
249
|
peerManifests: ReadonlyMap<string, ReconcileManifest>,
|
|
240
|
-
priorSemanticAgreements?: ReadonlyMap<string, readonly ReconcileSemanticAgreement[]
|
|
250
|
+
priorSemanticAgreements?: ReadonlyMap<string, readonly ReconcileSemanticAgreement[]>
|
|
241
251
|
): ReconcilePlan {
|
|
242
252
|
const entriesByNamespace = new Map<string, ReconcilePlanEntry[]>();
|
|
243
253
|
for (const entry of plan.entries) {
|
|
@@ -256,10 +266,7 @@ export function collapseActiveFactDuplicates(
|
|
|
256
266
|
const localFilesByPath = new Map((localManifest?.files ?? []).map((file) => [file.path, file]));
|
|
257
267
|
const peerFilesByPath = new Map((peerManifest?.files ?? []).map((file) => [file.path, file]));
|
|
258
268
|
const priorSemanticByPathPair = new Map(
|
|
259
|
-
(priorSemanticAgreements?.get(namespace) ?? []).map((agreement) => [
|
|
260
|
-
semanticAgreementKey(agreement),
|
|
261
|
-
agreement,
|
|
262
|
-
])
|
|
269
|
+
(priorSemanticAgreements?.get(namespace) ?? []).map((agreement) => [semanticAgreementKey(agreement), agreement])
|
|
263
270
|
);
|
|
264
271
|
const localByHash = new Map<string, ActiveFactManifestFile[]>();
|
|
265
272
|
const peerByHash = new Map<string, ActiveFactManifestFile[]>();
|
|
@@ -286,17 +293,17 @@ export function collapseActiveFactDuplicates(
|
|
|
286
293
|
const localCandidates = (localByHash.get(hash) ?? []).filter((file) => {
|
|
287
294
|
const opposite = peerFilesByPath.get(file.path);
|
|
288
295
|
const activeOpposite = peerByPath.get(file.path);
|
|
289
|
-
return
|
|
290
|
-
|
|
291
|
-
memoryIdentityHashes(activeOpposite.memory).includes(hash)
|
|
296
|
+
return (
|
|
297
|
+
opposite === undefined ||
|
|
298
|
+
(activeOpposite !== undefined && memoryIdentityHashes(activeOpposite.memory).includes(hash))
|
|
292
299
|
);
|
|
293
300
|
});
|
|
294
301
|
const peerCandidates = (peerByHash.get(hash) ?? []).filter((file) => {
|
|
295
302
|
const opposite = localFilesByPath.get(file.path);
|
|
296
303
|
const activeOpposite = localByPath.get(file.path);
|
|
297
|
-
return
|
|
298
|
-
|
|
299
|
-
memoryIdentityHashes(activeOpposite.memory).includes(hash)
|
|
304
|
+
return (
|
|
305
|
+
opposite === undefined ||
|
|
306
|
+
(activeOpposite !== undefined && memoryIdentityHashes(activeOpposite.memory).includes(hash))
|
|
300
307
|
);
|
|
301
308
|
});
|
|
302
309
|
const localPath = ContentHashIndex.resolvePathByHash(hash, contentHashRows(localCandidates, hash));
|
|
@@ -313,19 +320,21 @@ export function collapseActiveFactDuplicates(
|
|
|
313
320
|
...localCandidates.map((file) => file.path),
|
|
314
321
|
...peerCandidates.map((file) => file.path),
|
|
315
322
|
]);
|
|
316
|
-
const authoritativeSamePathEntries = new Set(
|
|
317
|
-
(
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
+
const authoritativeSamePathEntries = new Set(
|
|
324
|
+
entries.filter(
|
|
325
|
+
(entry) =>
|
|
326
|
+
duplicatePaths.has(entry.path) &&
|
|
327
|
+
localFilesByPath.has(entry.path) &&
|
|
328
|
+
peerFilesByPath.has(entry.path) &&
|
|
329
|
+
entry.action !== "identical"
|
|
330
|
+
)
|
|
331
|
+
);
|
|
323
332
|
if (authoritativeSamePathEntries.size > 0) {
|
|
324
333
|
for (const entry of entries) {
|
|
325
334
|
if (
|
|
326
|
-
duplicatePaths.has(entry.path)
|
|
327
|
-
|
|
328
|
-
|
|
335
|
+
duplicatePaths.has(entry.path) &&
|
|
336
|
+
!authoritativeSamePathEntries.has(entry) &&
|
|
337
|
+
(entry.action === "pull" || entry.action === "push" || entry.action === "identical")
|
|
329
338
|
) {
|
|
330
339
|
removed.add(entry);
|
|
331
340
|
changed = true;
|
package/src/runtime/env.ts
CHANGED
|
@@ -25,6 +25,17 @@ export function readEnvVar(name: string): string | undefined {
|
|
|
25
25
|
}
|
|
26
26
|
return undefined;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Read an env var by its current name, falling back to a legacy name.
|
|
30
|
+
*
|
|
31
|
+
* Unlike `readEnvVar`, an explicitly-set empty string is returned as-is:
|
|
32
|
+
* callers that must distinguish set-but-invalid from unset (server config
|
|
33
|
+
* readiness, auth-token fallbacks) rely on `??`-only semantics.
|
|
34
|
+
*/
|
|
35
|
+
export function readCompatEnv(primary: string, legacy: string): string | undefined {
|
|
36
|
+
const env = getEnvMap();
|
|
37
|
+
return env?.[primary] ?? env?.[legacy];
|
|
38
|
+
}
|
|
28
39
|
|
|
29
40
|
export function resolveHomeDir(): string {
|
|
30
41
|
return readEnvVar("HOME") || os.homedir();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/runtime/env.ts"],"sourcesContent":["import os from \"node:os\";\n\ntype EnvMap = Record<string, string | undefined>;\n\nfunction getEnvMap(): EnvMap | undefined {\n const runtimeProcess = globalThis.process as { env?: EnvMap } | undefined;\n return runtimeProcess?.[\"env\"];\n}\n\nfunction legacyEnvCandidates(name: string): string[] {\n if (name.startsWith(\"REMNIC_\")) {\n return [name, `ENGRAM_${name.slice(\"REMNIC_\".length)}`];\n }\n if (name.startsWith(\"ENGRAM_\")) {\n return [`REMNIC_${name.slice(\"ENGRAM_\".length)}`, name];\n }\n return [name];\n}\n\nexport function readEnvVar(name: string): string | undefined {\n const env = getEnvMap();\n for (const candidate of legacyEnvCandidates(name)) {\n const value = env?.[candidate];\n if (typeof value === \"string\" && value.length > 0) return value;\n }\n return undefined;\n}\n\nexport function resolveHomeDir(): string {\n return readEnvVar(\"HOME\") || os.homedir();\n}\n\nfunction cloneEnv(): NodeJS.ProcessEnv {\n return { ...(getEnvMap() ?? {}) };\n}\n\nexport function mergeEnv(overrides: Record<string, string | undefined>): NodeJS.ProcessEnv {\n const merged = cloneEnv();\n for (const [key, value] of Object.entries(overrides)) {\n if (typeof value === \"string\") merged[key] = value;\n else delete merged[key];\n }\n return merged;\n}\n"],"mappings":";AAAA,OAAO,QAAQ;AAIf,SAAS,YAAgC;AACvC,QAAM,iBAAiB,WAAW;AAClC,SAAO,iBAAiB,KAAK;AAC/B;AAEA,SAAS,oBAAoB,MAAwB;AACnD,MAAI,KAAK,WAAW,SAAS,GAAG;AAC9B,WAAO,CAAC,MAAM,UAAU,KAAK,MAAM,UAAU,MAAM,CAAC,EAAE;AAAA,EACxD;AACA,MAAI,KAAK,WAAW,SAAS,GAAG;AAC9B,WAAO,CAAC,UAAU,KAAK,MAAM,UAAU,MAAM,CAAC,IAAI,IAAI;AAAA,EACxD;AACA,SAAO,CAAC,IAAI;AACd;AAEO,SAAS,WAAW,MAAkC;AAC3D,QAAM,MAAM,UAAU;AACtB,aAAW,aAAa,oBAAoB,IAAI,GAAG;AACjD,UAAM,QAAQ,MAAM,SAAS;AAC7B,QAAI,OAAO,UAAU,YAAY,MAAM,SAAS,EAAG,QAAO;AAAA,EAC5D;AACA,SAAO;AACT;AAEO,SAAS,iBAAyB;AACvC,SAAO,WAAW,MAAM,KAAK,GAAG,QAAQ;AAC1C;AAEA,SAAS,WAA8B;AACrC,SAAO,EAAE,GAAI,UAAU,KAAK,CAAC,EAAG;AAClC;AAEO,SAAS,SAAS,WAAkE;AACzF,QAAM,SAAS,SAAS;AACxB,aAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,SAAS,GAAG;AACpD,QAAI,OAAO,UAAU,SAAU,QAAO,GAAG,IAAI;AAAA,QACxC,QAAO,OAAO,GAAG;AAAA,EACxB;AACA,SAAO;AACT;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/reconcile/manifest.ts"],"sourcesContent":["import { createHash } from \"node:crypto\";\nimport { computeLegacyContentHash, normalizeLegacyContent } from \"../content-hash.js\";\nimport { inferMemoryStatus } from \"../memory-lifecycle-ledger-utils.js\";\nimport { ContentHashIndex, type ContentHashPathEntry } from \"../storage/content-hash-index.js\";\nimport { DEFAULT_CITATION_FORMAT, stripCitationForTemplate } from \"../source-attribution.js\";\nimport { storedContentIdentityCandidates } from \"../structured-attributes.js\";\nimport type { MemoryFrontmatter, MemoryStatus } from \"../types.js\";\nimport { RECALL_FALLBACK_DIRS } from \"../utils/category-dir.js\";\nimport {\n type ReconcileFileState,\n type ReconcilePlan,\n type ReconcilePlanEntry,\n type ReconcileSemanticAgreement,\n type ReconcileSemanticChange,\n compareReconcilePlanEntries,\n semanticAgreementKey,\n summarizeReconcilePlan,\n} from \"./plan.js\";\n\nexport const RECONCILE_MANIFEST_FORMAT = \"remnic-reconcile-manifest\";\nexport const RECONCILE_MANIFEST_SCHEMA_VERSION = 1;\nconst CONTENT_HASH_NORMALIZER_VERSION = 4;\n/**\n * Version of the identity-resolution LOGIC (alias recovery, candidate\n * ordering), independent of the content normalizer: a cached manifest entry\n * written before an identity-resolution change carries an older value and is\n * reparsed even when its normalizerVersion still matches (issue #2367\n * review round 2). Bump when parsedMemoryIdentity's output shape or\n * semantics change.\n */\nconst IDENTITY_RESOLUTION_VERSION = 2;\n\nexport interface ReconcileMemoryIdentity {\n id: string;\n category: string;\n contentHash: string;\n /**\n * Recovered current-normalizer identities for a record whose persisted hash\n * is ambiguous under the legacy normalizer (issue #2367). The persisted\n * hash stays primary; these participate in duplicate bucketing so a\n * replica carrying the current form of the same fact still collapses.\n */\n contentHashAliases?: readonly string[];\n /** See IDENTITY_RESOLUTION_VERSION; absent on pre-versioning cache entries. */\n normalizerVersion?: number;\n identityResolutionVersion?: number;\n status: MemoryStatus;\n}\n\nexport interface ReconcileManifestFile extends ReconcileFileState {\n memory?: ReconcileMemoryIdentity;\n}\n\ntype ActiveFactManifestFile = ReconcileManifestFile & { memory: ReconcileMemoryIdentity };\n\nexport interface ReconcileManifest {\n format: typeof RECONCILE_MANIFEST_FORMAT;\n schemaVersion: typeof RECONCILE_MANIFEST_SCHEMA_VERSION;\n files: ReconcileManifestFile[];\n}\n\nexport type ReconcileMemoryParser = (\n raw: string,\n) => { frontmatter: MemoryFrontmatter; content: string } | null;\n\nexport interface BuildReconcileManifestOptions {\n files: Iterable<ReconcileFileState>;\n readFile: (file: ReconcileFileState) => Promise<Buffer | string | null>;\n parseMemory: ReconcileMemoryParser;\n cachedFiles?: Iterable<ReconcileManifestFile>;\n citationTemplate?: string;\n}\n\nconst SHA256_PATTERN = /^[a-f0-9]{64}$/i;\nconst MEMORY_DIRS = new Set(RECALL_FALLBACK_DIRS);\n\nfunction isMemoryPath(filePath: string): boolean {\n if (!filePath.endsWith(\".md\")) return false;\n const segments = filePath.split(\"/\");\n let index = 0;\n if (segments[index] === \"cold\" || segments[index] === \"archive\") index += 1;\n return MEMORY_DIRS.has(segments[index] ?? \"\");\n}\n\n\nfunction parsedMemoryIdentity(\n filePath: string,\n raw: Buffer | string,\n parseMemory: ReconcileMemoryParser,\n citationTemplate: string,\n): ReconcileMemoryIdentity | undefined {\n if (!isMemoryPath(filePath)) return undefined;\n const parsed = parseMemory(Buffer.isBuffer(raw) ? raw.toString(\"utf8\") : raw);\n if (!parsed?.frontmatter.id) return undefined;\n\n const storedHash =\n parsed.frontmatter.contentHash &&\n SHA256_PATTERN.test(parsed.frontmatter.contentHash)\n ? parsed.frontmatter.contentHash.toLowerCase()\n : undefined;\n const candidates = storedContentIdentityCandidates(parsed.content, (content) =>\n stripCitationForTemplate(content, citationTemplate)\n );\n const bodyHash = ContentHashIndex.computeHash(candidates[0] ?? \"\");\n const currentMatch = candidates.find(\n (content) => ContentHashIndex.computeHash(content) === storedHash\n );\n const legacyMatch = [...candidates].reverse().find(\n (content) => computeLegacyContentHash(content) === storedHash\n );\n let contentHash: string;\n let contentHashAliases: string[] | undefined;\n if (currentMatch) {\n contentHash = ContentHashIndex.computeHash(currentMatch);\n } else if (legacyMatch && normalizeLegacyContent(legacyMatch).length > 0) {\n // A non-empty legacy equality is ambiguous (issue #2367): the persisted\n // hash may be an explicit contentHashSource identity that merely collides\n // with the body's ASCII skeleton under the lossy legacy normalizer, and\n // nothing in the record proves which it is. Keep the persisted hash as\n // the primary identity and expose the recovered current identity as an\n // alias so replicas carrying either form still collapse.\n contentHash = storedHash ?? bodyHash;\n const recovered = ContentHashIndex.computeHash(legacyMatch);\n if (recovered !== contentHash) contentHashAliases = [recovered];\n } else {\n // An EMPTY legacy skeleton identifies nothing (every non-ASCII body maps\n // to it), so preserving it would collapse unrelated records. Recovering\n // the current identity here is repair, not replacement.\n contentHash = legacyMatch ? ContentHashIndex.computeHash(legacyMatch) : storedHash ?? bodyHash;\n }\n\n return {\n id: parsed.frontmatter.id,\n category: parsed.frontmatter.category,\n contentHash,\n ...(contentHashAliases ? { contentHashAliases } : {}),\n normalizerVersion: CONTENT_HASH_NORMALIZER_VERSION,\n identityResolutionVersion: IDENTITY_RESOLUTION_VERSION,\n status: inferMemoryStatus(parsed.frontmatter, filePath),\n };\n}\n\nexport async function buildReconcileManifestFile(\n file: ReconcileFileState,\n readFile: (file: ReconcileFileState) => Promise<Buffer | string | null>,\n parseMemory: ReconcileMemoryParser,\n citationTemplate = DEFAULT_CITATION_FORMAT,\n): Promise<ReconcileManifestFile> {\n let raw: Buffer | string | null = null;\n if (isMemoryPath(file.path)) {\n try {\n raw = await readFile(file);\n } catch {\n raw = null;\n }\n }\n if (raw !== null && createHash(\"sha256\").update(raw).digest(\"hex\") !== file.sha256.toLowerCase()) {\n raw = null;\n }\n const memory = raw === null ? undefined : parsedMemoryIdentity(file.path, raw, parseMemory, citationTemplate);\n return { ...file, ...(memory ? { memory } : {}) };\n}\n\nexport async function buildReconcileManifest(options: BuildReconcileManifestOptions): Promise<ReconcileManifest> {\n const cachedByPath = new Map<string, ReconcileManifestFile>();\n for (const cached of options.cachedFiles ?? []) {\n cachedByPath.set(cached.path, cached);\n }\n\n const files: ReconcileManifestFile[] = [];\n for (const file of options.files) {\n const cached = cachedByPath.get(file.path);\n if (\n cached?.sha256.toLowerCase() === file.sha256.toLowerCase() &&\n (cached.memory === undefined ||\n (cached.memory.normalizerVersion === CONTENT_HASH_NORMALIZER_VERSION &&\n cached.memory.identityResolutionVersion === IDENTITY_RESOLUTION_VERSION))\n ) {\n files.push({ ...file, ...(cached.memory ? { memory: cached.memory } : {}) });\n continue;\n }\n\n files.push(await buildReconcileManifestFile(\n file,\n options.readFile,\n options.parseMemory,\n options.citationTemplate,\n ));\n }\n files.sort((left, right) => (left.path < right.path ? -1 : left.path > right.path ? 1 : 0));\n return {\n format: RECONCILE_MANIFEST_FORMAT,\n schemaVersion: RECONCILE_MANIFEST_SCHEMA_VERSION,\n files,\n };\n}\n\nfunction activeFactByPath(manifest: ReconcileManifest | undefined): Map<string, ActiveFactManifestFile> {\n const result = new Map<string, ActiveFactManifestFile>();\n for (const file of manifest?.files ?? []) {\n if (file.memory?.category === \"fact\" && file.memory.status === \"active\") {\n result.set(file.path, file as ActiveFactManifestFile);\n }\n }\n return result;\n}\n\nfunction memoryIdentityHashes(memory: ReconcileMemoryIdentity): string[] {\n return [memory.contentHash, ...(memory.contentHashAliases ?? [])];\n}\n\nfunction contentHashRows(\n files: Iterable<ActiveFactManifestFile>,\n contentHash: string,\n): ContentHashPathEntry[] {\n const rows: ContentHashPathEntry[] = [];\n for (const file of files) {\n rows.push({ path: file.path, contentHash });\n }\n return rows;\n}\n\nfunction classifySemanticChange(\n current: ReconcileSemanticAgreement,\n prior: ReconcileSemanticAgreement | undefined\n): ReconcileSemanticChange {\n if (!prior) return \"unchanged\";\n const localChanged = current.local.sha256 !== prior.local.sha256;\n const peerChanged = current.peer.sha256 !== prior.peer.sha256;\n if (localChanged && peerChanged) return \"both_modified\";\n if (localChanged) return \"local_changed\";\n if (peerChanged) return \"peer_changed\";\n return \"unchanged\";\n}\n\nexport function collapseActiveFactDuplicates(\n plan: ReconcilePlan,\n localManifests: ReadonlyMap<string, ReconcileManifest>,\n peerManifests: ReadonlyMap<string, ReconcileManifest>,\n priorSemanticAgreements?: ReadonlyMap<string, readonly ReconcileSemanticAgreement[]>,\n): ReconcilePlan {\n const entriesByNamespace = new Map<string, ReconcilePlanEntry[]>();\n for (const entry of plan.entries) {\n const entries = entriesByNamespace.get(entry.namespace) ?? [];\n entries.push({ ...entry });\n entriesByNamespace.set(entry.namespace, entries);\n }\n\n let changed = false;\n for (const namespace of new Set([...localManifests.keys(), ...peerManifests.keys()])) {\n const entries = entriesByNamespace.get(namespace) ?? [];\n const localManifest = localManifests.get(namespace);\n const peerManifest = peerManifests.get(namespace);\n const localByPath = activeFactByPath(localManifest);\n const peerByPath = activeFactByPath(peerManifest);\n const localFilesByPath = new Map((localManifest?.files ?? []).map((file) => [file.path, file]));\n const peerFilesByPath = new Map((peerManifest?.files ?? []).map((file) => [file.path, file]));\n const priorSemanticByPathPair = new Map(\n (priorSemanticAgreements?.get(namespace) ?? []).map((agreement) => [\n semanticAgreementKey(agreement),\n agreement,\n ])\n );\n const localByHash = new Map<string, ActiveFactManifestFile[]>();\n const peerByHash = new Map<string, ActiveFactManifestFile[]>();\n\n for (const file of localByPath.values()) {\n for (const hash of memoryIdentityHashes(file.memory)) {\n const bucket = localByHash.get(hash) ?? [];\n bucket.push(file);\n localByHash.set(hash, bucket);\n }\n }\n for (const file of peerByPath.values()) {\n for (const hash of memoryIdentityHashes(file.memory)) {\n const bucket = peerByHash.get(hash) ?? [];\n bucket.push(file);\n peerByHash.set(hash, bucket);\n }\n }\n\n const removed = new Set<ReconcilePlanEntry>();\n const replacements: ReconcilePlanEntry[] = [];\n const processedPathPairs = new Set<string>();\n for (const hash of new Set([...localByHash.keys(), ...peerByHash.keys()])) {\n const localCandidates = (localByHash.get(hash) ?? []).filter((file) => {\n const opposite = peerFilesByPath.get(file.path);\n const activeOpposite = peerByPath.get(file.path);\n return opposite === undefined || (\n activeOpposite !== undefined &&\n memoryIdentityHashes(activeOpposite.memory).includes(hash)\n );\n });\n const peerCandidates = (peerByHash.get(hash) ?? []).filter((file) => {\n const opposite = localFilesByPath.get(file.path);\n const activeOpposite = localByPath.get(file.path);\n return opposite === undefined || (\n activeOpposite !== undefined &&\n memoryIdentityHashes(activeOpposite.memory).includes(hash)\n );\n });\n const localPath = ContentHashIndex.resolvePathByHash(hash, contentHashRows(localCandidates, hash));\n const peerPath = ContentHashIndex.resolvePathByHash(hash, contentHashRows(peerCandidates, hash));\n\n if (localPath && peerPath && localPath !== peerPath) {\n const pathPair = `${localPath}\\0${peerPath}`;\n if (processedPathPairs.has(pathPair)) continue;\n processedPathPairs.add(pathPair);\n const localFile = localByPath.get(localPath);\n const peerFile = peerByPath.get(peerPath);\n if (!localFile || !peerFile) continue;\n const duplicatePaths = new Set([\n ...localCandidates.map((file) => file.path),\n ...peerCandidates.map((file) => file.path),\n ]);\n const authoritativeSamePathEntries = new Set(entries.filter(\n (entry) =>\n duplicatePaths.has(entry.path)\n && localFilesByPath.has(entry.path)\n && peerFilesByPath.has(entry.path)\n && entry.action !== \"identical\"\n ));\n if (authoritativeSamePathEntries.size > 0) {\n for (const entry of entries) {\n if (\n duplicatePaths.has(entry.path)\n && !authoritativeSamePathEntries.has(entry)\n && (entry.action === \"pull\" || entry.action === \"push\" || entry.action === \"identical\")\n ) {\n removed.add(entry);\n changed = true;\n }\n }\n continue;\n }\n const unsafeEntry = entries.some(\n (entry) => duplicatePaths.has(entry.path) && (entry.action === \"suppress\" || entry.action === \"conflict\")\n );\n if (unsafeEntry) continue;\n for (const entry of entries) {\n if (\n duplicatePaths.has(entry.path) &&\n (entry.action === \"pull\" || entry.action === \"push\" || entry.action === \"identical\")\n ) {\n removed.add(entry);\n }\n }\n const semanticAgreement: ReconcileSemanticAgreement = {\n local: { path: localPath, sha256: localFile.sha256 },\n peer: { path: peerPath, sha256: peerFile.sha256 },\n };\n replacements.push({\n path: localPath < peerPath ? localPath : peerPath,\n namespace,\n action: \"identical\",\n reason: \"semantic_duplicate\",\n semanticAgreement,\n semanticChange: classifySemanticChange(\n semanticAgreement,\n priorSemanticByPathPair.get(semanticAgreementKey(semanticAgreement))\n ),\n });\n changed = true;\n continue;\n }\n\n const sameSideEntries = entries.filter((entry) => {\n if (localPath && entry.reason === \"local_only\") {\n return localCandidates.some((file) => file.path === entry.path);\n }\n if (peerPath && entry.reason === \"peer_only\") {\n return peerCandidates.some((file) => file.path === entry.path);\n }\n return false;\n });\n const canonicalPath = localPath ?? peerPath;\n const hasSharedCanonical = localPath !== undefined && localPath === peerPath;\n if (!canonicalPath || sameSideEntries.length === 0 || (!hasSharedCanonical && sameSideEntries.length < 2)) {\n continue;\n }\n for (const entry of sameSideEntries) {\n if (entry.path !== canonicalPath) {\n removed.add(entry);\n changed = true;\n }\n }\n }\n\n if (removed.size > 0 || replacements.length > 0) {\n entriesByNamespace.set(\n namespace,\n [...entries.filter((entry) => !removed.has(entry)), ...replacements].sort(compareReconcilePlanEntries)\n );\n }\n }\n\n if (!changed) return plan;\n const entries = [...entriesByNamespace.values()].flat().sort(compareReconcilePlanEntries);\n return {\n entries,\n byNamespace: summarizeReconcilePlan(entries),\n converged: entries.every((entry) => entry.action === \"identical\"),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,kBAAkB;AAmBpB,IAAM,4BAA4B;AAClC,IAAM,oCAAoC;AACjD,IAAM,kCAAkC;AASxC,IAAM,8BAA8B;AA2CpC,IAAM,iBAAiB;AACvB,IAAM,cAAc,IAAI,IAAI,oBAAoB;AAEhD,SAAS,aAAa,UAA2B;AAC/C,MAAI,CAAC,SAAS,SAAS,KAAK,EAAG,QAAO;AACt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AM,WAAW,cAAc;AAC9C,iBAAO,gBAAgB,KAAK,CAAC,SAAS,KAAK,SAAS,MAAM,IAAI;AAAA,QAChE;AACA,YAAI,YAAY,MAAM,WAAW,aAAa;AAC5C,iBAAO,eAAe,KAAK,CAAC,SAAS,KAAK,SAAS,MAAM,IAAI;AAAA,QAC/D;AACA,eAAO;AAAA,MACT,CAAC;AACD,YAAM,gBAAgB,aAAa;AACnC,YAAM,qBAAqB,cAAc,UAAa,cAAc;AACpE,UAAI,CAAC,iBAAiB,gBAAgB,WAAW,KAAM,CAAC,sBAAsB,gBAAgB,SAAS,GAAI;AACzG;AAAA,MACF;AACA,iBAAW,SAAS,iBAAiB;AACnC,YAAI,MAAM,SAAS,eAAe;AAChC,kBAAQ,IAAI,KAAK;AACjB,oBAAU;AAAA,QACZ;AAAA,MACF;AAAA,IACF;AAEA,QAAI,QAAQ,OAAO,KAAK,aAAa,SAAS,GAAG;AAC/C,yBAAmB;AAAA,QACjB;AAAA,QACA,CAAC,GAAGA,SAAQ,OAAO,CAAC,UAAU,CAAC,QAAQ,IAAI,KAAK,CAAC,GAAG,GAAG,YAAY,EAAE,KAAK,2BAA2B;AAAA,MACvG;AAAA,IACF;AAAA,EACF;AAEA,MAAI,CAAC,QAAS,QAAO;AACrB,QAAM,UAAU,CAAC,GAAG,mBAAmB,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,2BAA2B;AACxF,SAAO;AAAA,IACL;AAAA,IACA,aAAa,uBAAuB,OAAO;AAAA,IAC3C,WAAW,QAAQ,MAAM,CAAC,UAAU,MAAM,WAAW,WAAW;AAAA,EAClE;AACF;","names":["entries"]}
|
|
@@ -1098,34 +1098,34 @@ declare const SupportPassportDraftModelInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1098
1098
|
memoryId: z.ZodString;
|
|
1099
1099
|
content: z.ZodString;
|
|
1100
1100
|
}, "strict", z.ZodTypeAny, {
|
|
1101
|
-
content: string;
|
|
1102
1101
|
memoryId: string;
|
|
1103
|
-
}, {
|
|
1104
1102
|
content: string;
|
|
1103
|
+
}, {
|
|
1105
1104
|
memoryId: string;
|
|
1105
|
+
content: string;
|
|
1106
1106
|
}>, "many">;
|
|
1107
1107
|
}, "strict", z.ZodTypeAny, {
|
|
1108
1108
|
memories: {
|
|
1109
|
-
content: string;
|
|
1110
1109
|
memoryId: string;
|
|
1110
|
+
content: string;
|
|
1111
1111
|
}[];
|
|
1112
1112
|
consent: true;
|
|
1113
1113
|
}, {
|
|
1114
1114
|
memories: {
|
|
1115
|
-
content: string;
|
|
1116
1115
|
memoryId: string;
|
|
1116
|
+
content: string;
|
|
1117
1117
|
}[];
|
|
1118
1118
|
consent: true;
|
|
1119
1119
|
}>, {
|
|
1120
1120
|
memories: {
|
|
1121
|
-
content: string;
|
|
1122
1121
|
memoryId: string;
|
|
1122
|
+
content: string;
|
|
1123
1123
|
}[];
|
|
1124
1124
|
consent: true;
|
|
1125
1125
|
}, {
|
|
1126
1126
|
memories: {
|
|
1127
|
-
content: string;
|
|
1128
1127
|
memoryId: string;
|
|
1128
|
+
content: string;
|
|
1129
1129
|
}[];
|
|
1130
1130
|
consent: true;
|
|
1131
1131
|
}>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|