@remnic/core 10.0.165 → 10.0.166
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.js +128 -127
- package/dist/access-authorization-probe.js +4 -4
- package/dist/access-boundary.js +3 -3
- package/dist/access-cli.d.ts.map +1 -1
- package/dist/access-cli.js +144 -137
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +37 -0
- package/dist/access-coding-context-resolution.d.ts.map +1 -1
- package/dist/access-coding-context-resolution.js +48 -4
- package/dist/access-errors.d.ts +5 -0
- package/dist/access-errors.d.ts.map +1 -1
- package/dist/access-errors.js +3 -1
- package/dist/access-extraction-force-flush-preempt.js +128 -127
- package/dist/access-extraction-force-flush.js +128 -127
- package/dist/access-http-briefing.js +128 -127
- package/dist/access-http-query.js +128 -127
- package/dist/access-http.d.ts.map +1 -1
- package/dist/access-http.js +128 -127
- package/dist/access-identity-continuity-surface.js +128 -127
- package/dist/access-lcm-surface.js +128 -127
- package/dist/access-mcp.js +128 -127
- package/dist/access-memory-search-fanout.js +2 -2
- package/dist/access-namespace-preflight.js +4 -4
- package/dist/access-observe-transcript.js +3 -2
- package/dist/access-observe-write-category.js +9 -9
- package/dist/access-observe-write-surface.d.ts +1 -0
- package/dist/access-observe-write-surface.d.ts.map +1 -1
- package/dist/access-observe-write-surface.js +128 -127
- package/dist/access-offline-manifest.js +9 -8
- package/dist/access-operations-batch.js +128 -127
- package/dist/access-operations.d.ts +1 -1
- package/dist/access-operations.js +128 -127
- package/dist/access-recall-concurrency.d.ts +3 -16
- package/dist/access-recall-concurrency.d.ts.map +1 -1
- package/dist/access-recall-concurrency.js +128 -127
- package/dist/access-recall-corpus-versions.d.ts +4 -1
- package/dist/access-recall-corpus-versions.d.ts.map +1 -1
- package/dist/access-recall-corpus-versions.js +4 -1
- package/dist/access-recall-diagnostics.js +3 -3
- package/dist/access-recall-response.d.ts.map +1 -1
- package/dist/access-recall-response.js +128 -127
- package/dist/access-recall-surface.d.ts +1 -0
- package/dist/access-recall-surface.d.ts.map +1 -1
- package/dist/access-recall-surface.js +128 -127
- package/dist/access-schema.d.ts +1 -0
- package/dist/access-schema.d.ts.map +1 -1
- package/dist/access-schema.js +2 -2
- package/dist/access-service.d.ts +3 -15
- package/dist/access-service.d.ts.map +1 -1
- package/dist/access-service.js +130 -127
- package/dist/access-surface-catalog.js +5 -5
- package/dist/access-token-capabilities.js +2 -2
- package/dist/active-recall.js +21 -21
- package/dist/artifact-search.js +2 -2
- package/dist/auto-sync-L3M4RKJD.js +1 -1
- package/dist/briefing.js +19 -19
- package/dist/buffer-add-turns-bounded.js +2 -2
- package/dist/buffer-turn-helpers.d.ts.map +1 -1
- package/dist/buffer-turn-helpers.js +1 -1
- package/dist/buffer.js +11 -10
- package/dist/calibration.js +2 -2
- package/dist/capsule-import-gate.js +2 -2
- package/dist/causal-consolidation.js +20 -20
- package/dist/{chunk-5V3IBSVB.js → chunk-22V3CMIW.js} +4 -4
- package/dist/{chunk-IHOKB3L3.js → chunk-2FCZIWRI.js} +785 -515
- package/dist/chunk-2FCZIWRI.js.map +1 -0
- package/dist/{chunk-7IWRLYFJ.js → chunk-2TJSGIKT.js} +2 -2
- package/dist/{chunk-V6M6N3EE.js → chunk-333SBFXB.js} +2 -2
- package/dist/{chunk-XBW7U7GM.js → chunk-3PNJZTDV.js} +5 -2
- package/dist/chunk-3PNJZTDV.js.map +1 -0
- package/dist/{chunk-XE4UYWW3.js → chunk-3YOX2BQD.js} +3 -3
- package/dist/{chunk-V4ASAWRP.js → chunk-47LDDGAL.js} +3 -3
- package/dist/{chunk-XEBNSY7N.js → chunk-4D2EY4WM.js} +2 -2
- package/dist/{chunk-5HFCXTGY.js → chunk-4D77BI3J.js} +29 -189
- package/dist/chunk-4D77BI3J.js.map +1 -0
- package/dist/{chunk-LPV72KRQ.js → chunk-4IMOGAFF.js} +3 -3
- package/dist/{chunk-QBREZ4QL.js → chunk-4L25GAYL.js} +2 -2
- package/dist/{chunk-HADD45AR.js → chunk-4WCLZBM2.js} +2 -2
- package/dist/{chunk-B3GKQ6DU.js → chunk-5MA6ZQ4Z.js} +2 -2
- package/dist/{chunk-3QLAOYBL.js → chunk-5QDTZIGH.js} +3 -3
- package/dist/{chunk-WXDTOE6F.js → chunk-5VMRM2X3.js} +2 -2
- package/dist/{chunk-VE23DIBH.js → chunk-6QWFZ3X5.js} +2 -2
- package/dist/{chunk-SDGD6MYV.js → chunk-7F7HRJI2.js} +2 -2
- package/dist/{chunk-QFPNWSVH.js → chunk-7OCKK5M5.js} +6 -6
- package/dist/{chunk-YAVIBVCU.js → chunk-7QF26EWO.js} +5 -5
- package/dist/{chunk-WAJL65KW.js → chunk-7VIJUZYW.js} +3 -3
- package/dist/{chunk-EI2M2CFJ.js → chunk-A5UOREWD.js} +3 -3
- package/dist/{chunk-32CA7B6L.js → chunk-AQZL7JBZ.js} +2 -2
- package/dist/{chunk-EDA6CDBT.js → chunk-AVWOULJH.js} +2 -2
- package/dist/{chunk-4HKK5HUI.js → chunk-B3M56D2A.js} +2 -2
- package/dist/{chunk-SRN5M4LQ.js → chunk-BKTCVXMK.js} +4 -4
- package/dist/{chunk-TXVTNDQT.js → chunk-BPCR5DZP.js} +2 -2
- package/dist/chunk-CKELO7Q6.js +113 -0
- package/dist/chunk-CKELO7Q6.js.map +1 -0
- package/dist/{chunk-IEB6XYW6.js → chunk-CKZWLAHN.js} +2 -2
- package/dist/{chunk-JVIWVJ2A.js → chunk-CUPILBIP.js} +3 -3
- package/dist/{chunk-274UY54Z.js → chunk-DFZYZOLH.js} +3 -3
- package/dist/{chunk-6S4DM53Y.js → chunk-E6EESRJ6.js} +6 -6
- package/dist/{chunk-FSI45NUK.js → chunk-EZG54YDS.js} +2 -2
- package/dist/{chunk-7ZFB4VZS.js → chunk-FFWFFAP3.js} +2 -2
- package/dist/{chunk-22VXXA67.js → chunk-FGT7CUYZ.js} +2 -2
- package/dist/{chunk-Z3SXC3MP.js → chunk-FOTFLHBN.js} +2 -2
- package/dist/{chunk-RH6XWXMA.js → chunk-FRYCXXTB.js} +3 -3
- package/dist/{chunk-B377OKUP.js → chunk-G64WYD2S.js} +4 -4
- package/dist/{chunk-JJEQRSYU.js → chunk-GBSXTTLP.js} +2 -2
- package/dist/{chunk-2YODOG2O.js → chunk-GIL2M2OI.js} +3 -3
- package/dist/{chunk-YVRQ5JRA.js → chunk-GYOKVJPB.js} +14 -8
- package/dist/chunk-GYOKVJPB.js.map +1 -0
- package/dist/{chunk-ARJ3KCX4.js → chunk-HDLNSDLK.js} +2 -2
- package/dist/{chunk-VXUO5JZC.js → chunk-HDWISXFH.js} +6 -6
- package/dist/{chunk-RNFMFC37.js → chunk-IDYYGOOQ.js} +28 -1
- package/dist/chunk-IDYYGOOQ.js.map +1 -0
- package/dist/{chunk-EZ47HOJ6.js → chunk-IXI6S2VJ.js} +4 -4
- package/dist/{chunk-VXMWTRQX.js → chunk-J74YOBB3.js} +4 -4
- package/dist/{chunk-AMW3IDCO.js → chunk-JFMMEHVG.js} +2 -2
- package/dist/{chunk-6TPWIPE3.js → chunk-JFZZDMEZ.js} +3 -3
- package/dist/{chunk-JTSSSR4L.js → chunk-KIUFT2WZ.js} +3 -3
- package/dist/{chunk-L6BLTV4D.js → chunk-L7SEYUHS.js} +2 -2
- package/dist/{chunk-WRAK5LLB.js → chunk-LPUEBFX2.js} +3 -3
- package/dist/{chunk-DBVSU3HE.js → chunk-LVGTH6IQ.js} +9 -9
- package/dist/{chunk-33VVVP57.js → chunk-MEVBSF6T.js} +4 -1
- package/dist/chunk-MEVBSF6T.js.map +1 -0
- package/dist/{chunk-CJCTKL6Y.js → chunk-MGKCKY7X.js} +4 -1
- package/dist/chunk-MGKCKY7X.js.map +1 -0
- package/dist/{chunk-SOGOHLWN.js → chunk-N7AIFTSH.js} +1 -1
- package/dist/chunk-N7AIFTSH.js.map +1 -0
- package/dist/chunk-O3XGASU5.js +197 -0
- package/dist/chunk-O3XGASU5.js.map +1 -0
- package/dist/{chunk-OGBQMY46.js → chunk-O544TUJO.js} +2 -2
- package/dist/{chunk-TFNZXOXK.js → chunk-OAQRZ4SV.js} +2 -2
- package/dist/{chunk-IEEV27BC.js → chunk-OO2HEUZ4.js} +2 -2
- package/dist/{chunk-YMC4AYJK.js → chunk-OWM2VWNX.js} +10 -10
- package/dist/{chunk-4LPTSB5V.js → chunk-PFLN6TTW.js} +2 -2
- package/dist/{chunk-YOR5QBEU.js → chunk-QFTK6EDM.js} +4 -4
- package/dist/{chunk-A2WFUMUN.js → chunk-QKDXO4FD.js} +4 -4
- package/dist/{chunk-Y7HLGKKU.js → chunk-QLQUAVVP.js} +4 -4
- package/dist/{chunk-MUMQWCE2.js → chunk-QPFM6DHY.js} +2 -2
- package/dist/{chunk-YWPCDR3I.js → chunk-QVXEXGIM.js} +3 -3
- package/dist/{chunk-UPE7TJWN.js → chunk-QWWHYBPT.js} +2 -2
- package/dist/{chunk-NZHZQGLB.js → chunk-QXTKN25V.js} +2 -2
- package/dist/{chunk-OAGTKS73.js → chunk-RFLC6PKQ.js} +2 -2
- package/dist/{chunk-ZRLTQ2Y7.js → chunk-RO5EGRAI.js} +2 -2
- package/dist/{chunk-5D4NBANY.js → chunk-SIONKXLU.js} +2 -2
- package/dist/{chunk-6XTUZKCZ.js → chunk-SMDZTJ2D.js} +2 -2
- package/dist/{chunk-OFSAKEZB.js → chunk-T4BT4FQN.js} +2 -2
- package/dist/{chunk-IC35ZYLM.js → chunk-TAD6QMMD.js} +4 -4
- package/dist/{chunk-EAHNSQ7H.js → chunk-TB6VFEHQ.js} +2 -2
- package/dist/{chunk-6ARSFTLD.js → chunk-TNRGWJYT.js} +2 -2
- package/dist/{chunk-JCAMHTS2.js → chunk-UBG65KEY.js} +7 -5
- package/dist/{chunk-JCAMHTS2.js.map → chunk-UBG65KEY.js.map} +1 -1
- package/dist/{chunk-CGOPDXLK.js → chunk-UMEUU66X.js} +2 -2
- package/dist/{chunk-5LTXYM7D.js → chunk-UYIBNDQE.js} +2 -2
- package/dist/{chunk-UGQEJWR3.js → chunk-VHXRLD6S.js} +2 -2
- package/dist/{chunk-WJ6S54ES.js → chunk-VOLTQNAP.js} +2 -2
- package/dist/{chunk-SBU5GDOT.js → chunk-VRHY7Y5A.js} +7 -7
- package/dist/{chunk-E5RJPLNL.js → chunk-W7N7NWG5.js} +3 -3
- package/dist/{chunk-UPWOMMVU.js → chunk-WECKZ3KT.js} +7 -7
- package/dist/{chunk-PCUDFWX5.js → chunk-WEFFO2MJ.js} +2 -2
- package/dist/{chunk-QCP75JGO.js → chunk-WQUGCOKF.js} +5 -5
- package/dist/{chunk-FKBGK3NC.js → chunk-WWUQ6CP3.js} +2 -2
- package/dist/{chunk-KR6PEAM4.js → chunk-X67XNZ64.js} +8 -8
- package/dist/{chunk-UYHDMCY2.js → chunk-XUVCQ4YZ.js} +2 -2
- package/dist/{chunk-7IJ2H43M.js → chunk-YY57TRKN.js} +2 -2
- package/dist/{chunk-AU6AEUFD.js → chunk-YYXYZM2I.js} +2 -2
- package/dist/{chunk-3FBAEPCU.js → chunk-ZDUE44CC.js} +2 -2
- package/dist/{chunk-PRE7R3RQ.js → chunk-ZQUOUPP3.js} +12 -3
- package/dist/chunk-ZQUOUPP3.js.map +1 -0
- package/dist/{chunk-RDO6AMDL.js → chunk-ZWDDY4WF.js} +2 -2
- package/dist/{chunk-QASTQVGK.js → chunk-ZX546Y3Y.js} +2 -2
- package/dist/chunk-ZX546Y3Y.js.map +1 -0
- package/dist/cli.js +128 -127
- package/dist/coding/architecture-surfaces.d.ts +0 -24
- package/dist/coding/architecture-surfaces.d.ts.map +1 -1
- package/dist/coding/codegraph-surfaces.d.ts.map +1 -1
- package/dist/coding/export-okf-codegraph.js +51 -24
- package/dist/coding/export-okf-codegraph.js.map +1 -1
- package/dist/coding/git-context.d.ts +23 -0
- package/dist/coding/git-context.d.ts.map +1 -1
- package/dist/coding/git-context.js +31 -0
- package/dist/coding/git-context.js.map +1 -0
- package/dist/coding/session-delta-surfaces.d.ts +0 -23
- package/dist/coding/session-delta-surfaces.d.ts.map +1 -1
- package/dist/compounding/engine.js +20 -20
- package/dist/config.js +21 -21
- package/dist/connectors/codex-materialize-runner.js +19 -19
- 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 +23 -23
- package/dist/deep-recall-config.js +2 -2
- package/dist/deep-recall-http-glue.js +4 -4
- package/dist/entity-recall-cancellation.js +2 -2
- package/dist/entity-recall-reads.js +3 -3
- package/dist/entity-retrieval.js +21 -21
- package/dist/explicit-capture.js +128 -127
- package/dist/external-wiki-access.js +4 -4
- package/dist/extraction-judge.js +1 -1
- package/dist/extraction.js +31 -30
- package/dist/harmonic-retrieval.js +19 -19
- package/dist/index.js +207 -205
- package/dist/local-llm.js +2 -2
- 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-runner.js +21 -21
- package/dist/maintenance/rebuild-memory-projection.js +20 -20
- package/dist/memory-browse-http-glue.js +2 -2
- package/dist/memory-browse-operations.js +4 -4
- package/dist/memory-browse.js +6 -6
- package/dist/namespaces/migrate.js +20 -20
- package/dist/namespaces/search.js +8 -8
- package/dist/namespaces/storage.js +19 -19
- package/dist/offline-sync-impression-drain.js +8 -7
- package/dist/operator-doctor-corpus.js +26 -26
- package/dist/operator-doctor-replica.js +4 -4
- package/dist/operator-toolkit.js +35 -34
- package/dist/orchestration/backlog-scheduler.js +129 -128
- package/dist/orchestration/backlog-scheduler.js.map +1 -1
- package/dist/orchestration/buffer-drain-runner.js +129 -128
- package/dist/orchestration/episodic-context-section.d.ts +3 -2
- package/dist/orchestration/episodic-context-section.d.ts.map +1 -1
- package/dist/orchestration/maintenance.js +34 -33
- package/dist/orchestration/orchestrator-helpers.d.ts +10 -0
- package/dist/orchestration/orchestrator-helpers.d.ts.map +1 -1
- package/dist/orchestration/orchestrator-init.d.ts +12 -13
- package/dist/orchestration/orchestrator-init.d.ts.map +1 -1
- package/dist/orchestration/recall-entry.d.ts.map +1 -1
- package/dist/orchestration/recall-internal.d.ts.map +1 -1
- package/dist/orchestration/session-context.d.ts +5 -1
- package/dist/orchestration/session-context.d.ts.map +1 -1
- package/dist/orchestration/startup-search-sync.d.ts +73 -0
- package/dist/orchestration/startup-search-sync.d.ts.map +1 -0
- package/dist/orchestration/turn-ingestion.d.ts.map +1 -1
- package/dist/orchestrator.d.ts +4 -1
- package/dist/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator.js +128 -127
- package/dist/qmd-daemon-session.js +2 -2
- package/dist/qmd.js +3 -3
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.js +2 -2
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-navigation-http-glue.js +2 -2
- package/dist/recall-navigation-operations.js +4 -4
- package/dist/recall-navigation.js +128 -127
- package/dist/recall-qos.d.ts +26 -0
- package/dist/recall-qos.d.ts.map +1 -1
- package/dist/recall-qos.js +9 -1
- package/dist/recall-state-view-admission.js +6 -6
- package/dist/recall-why-service.js +6 -6
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.js +2 -2
- package/dist/relay/mission.d.ts +3 -3
- package/dist/replica-divergence.js +3 -3
- package/dist/resume-bundles.js +23 -23
- package/dist/search/factory.js +7 -7
- package/dist/search/index.js +9 -9
- package/dist/semantic-consolidation.js +20 -20
- package/dist/semantic-rule-promotion.js +19 -19
- package/dist/semantic-rule-verifier.js +19 -19
- package/dist/source-agent-qualifier.js +29 -28
- package/dist/standup/build.js +20 -20
- package/dist/storage/buffer-drain-claims.js +2 -2
- package/dist/storage/buffer-session-files.js +2 -2
- package/dist/storage.js +18 -18
- package/dist/summarizer.js +3 -3
- package/dist/support-passport/index.js +7 -7
- package/dist/tokens.js +3 -3
- package/dist/transfer/export-okf.js +19 -19
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +19 -19
- package/dist/who-knows-cli.js +21 -21
- package/dist/who-knows.js +20 -20
- package/package.json +12 -2
- package/src/access-cli.ts +18 -9
- package/src/access-coding-context-resolution.ts +138 -0
- package/src/access-errors.ts +5 -0
- package/src/access-http-admission.test.ts +76 -0
- package/src/access-http.test.ts +2 -0
- package/src/access-http.ts +4 -0
- package/src/access-observe-write-surface.ts +2 -1
- package/src/access-operations-batch.ts +2 -2
- package/src/access-recall-concurrency.ts +179 -22
- package/src/access-recall-corpus-versions.ts +12 -7
- package/src/access-recall-response.ts +25 -2
- package/src/access-recall-surface.ts +6 -4
- package/src/access-schema.ts +9 -0
- package/src/access-service-raw-excerpt-read-gate.test.ts +7 -2
- package/src/access-service-recall-concurrency.test.ts +242 -0
- package/src/access-service-set-coding-context.test.ts +210 -0
- package/src/access-service.ts +43 -58
- package/src/buffer-turn-helpers.ts +3 -0
- package/src/capsule-import-gate.test.ts +106 -0
- package/src/coding/access-coding-context.test.ts +3 -0
- package/src/coding/architecture-surfaces.ts +2 -1
- package/src/coding/codegraph-surfaces.test.ts +34 -0
- package/src/coding/codegraph-surfaces.ts +3 -2
- package/src/coding/git-context.test.ts +29 -0
- package/src/coding/git-context.ts +63 -2
- package/src/coding/session-delta-surfaces.ts +2 -1
- package/src/harmonic-graph-version.test.ts +63 -0
- package/src/orchestration/episodic-context-section.ts +6 -7
- package/src/orchestration/orchestrator-helpers.ts +10 -0
- package/src/orchestration/orchestrator-init.ts +57 -303
- package/src/orchestration/recall-entry.ts +59 -4
- package/src/orchestration/recall-internal.ts +10 -10
- package/src/orchestration/session-context.ts +11 -1
- package/src/orchestration/startup-search-sync.ts +492 -0
- package/src/orchestration/task-exit.test.ts +45 -0
- package/src/orchestration/turn-ingestion-buffered.test.ts +224 -0
- package/src/orchestration/turn-ingestion.ts +28 -35
- package/src/orchestrator-flush.test.ts +7 -7
- package/src/orchestrator-init.test.ts +364 -12
- package/src/orchestrator-source-attribution.test.ts +100 -0
- package/src/orchestrator-startup-ready-path.test.ts +133 -10
- package/src/orchestrator.ts +16 -1
- package/src/recall-qos.test.ts +62 -0
- package/src/recall-qos.ts +75 -0
- package/src/recall-retrieval-failure.test.ts +282 -18
- package/src/recall-search-options.test.ts +13 -1
- package/src/storage/buffer-drain-handin-memo.test.ts +140 -0
- package/src/types.ts +1 -1
- package/dist/chunk-33VVVP57.js.map +0 -1
- package/dist/chunk-3QNFHI6T.js +0 -38
- package/dist/chunk-3QNFHI6T.js.map +0 -1
- package/dist/chunk-5HFCXTGY.js.map +0 -1
- package/dist/chunk-CJCTKL6Y.js.map +0 -1
- package/dist/chunk-IHOKB3L3.js.map +0 -1
- package/dist/chunk-PRE7R3RQ.js.map +0 -1
- package/dist/chunk-QASTQVGK.js.map +0 -1
- package/dist/chunk-RNFMFC37.js.map +0 -1
- package/dist/chunk-SOGOHLWN.js.map +0 -1
- package/dist/chunk-XBW7U7GM.js.map +0 -1
- package/dist/chunk-YVRQ5JRA.js.map +0 -1
- /package/dist/{chunk-5V3IBSVB.js.map → chunk-22V3CMIW.js.map} +0 -0
- /package/dist/{chunk-7IWRLYFJ.js.map → chunk-2TJSGIKT.js.map} +0 -0
- /package/dist/{chunk-V6M6N3EE.js.map → chunk-333SBFXB.js.map} +0 -0
- /package/dist/{chunk-XE4UYWW3.js.map → chunk-3YOX2BQD.js.map} +0 -0
- /package/dist/{chunk-V4ASAWRP.js.map → chunk-47LDDGAL.js.map} +0 -0
- /package/dist/{chunk-XEBNSY7N.js.map → chunk-4D2EY4WM.js.map} +0 -0
- /package/dist/{chunk-LPV72KRQ.js.map → chunk-4IMOGAFF.js.map} +0 -0
- /package/dist/{chunk-QBREZ4QL.js.map → chunk-4L25GAYL.js.map} +0 -0
- /package/dist/{chunk-HADD45AR.js.map → chunk-4WCLZBM2.js.map} +0 -0
- /package/dist/{chunk-B3GKQ6DU.js.map → chunk-5MA6ZQ4Z.js.map} +0 -0
- /package/dist/{chunk-3QLAOYBL.js.map → chunk-5QDTZIGH.js.map} +0 -0
- /package/dist/{chunk-WXDTOE6F.js.map → chunk-5VMRM2X3.js.map} +0 -0
- /package/dist/{chunk-VE23DIBH.js.map → chunk-6QWFZ3X5.js.map} +0 -0
- /package/dist/{chunk-SDGD6MYV.js.map → chunk-7F7HRJI2.js.map} +0 -0
- /package/dist/{chunk-QFPNWSVH.js.map → chunk-7OCKK5M5.js.map} +0 -0
- /package/dist/{chunk-YAVIBVCU.js.map → chunk-7QF26EWO.js.map} +0 -0
- /package/dist/{chunk-WAJL65KW.js.map → chunk-7VIJUZYW.js.map} +0 -0
- /package/dist/{chunk-EI2M2CFJ.js.map → chunk-A5UOREWD.js.map} +0 -0
- /package/dist/{chunk-32CA7B6L.js.map → chunk-AQZL7JBZ.js.map} +0 -0
- /package/dist/{chunk-EDA6CDBT.js.map → chunk-AVWOULJH.js.map} +0 -0
- /package/dist/{chunk-4HKK5HUI.js.map → chunk-B3M56D2A.js.map} +0 -0
- /package/dist/{chunk-SRN5M4LQ.js.map → chunk-BKTCVXMK.js.map} +0 -0
- /package/dist/{chunk-TXVTNDQT.js.map → chunk-BPCR5DZP.js.map} +0 -0
- /package/dist/{chunk-IEB6XYW6.js.map → chunk-CKZWLAHN.js.map} +0 -0
- /package/dist/{chunk-JVIWVJ2A.js.map → chunk-CUPILBIP.js.map} +0 -0
- /package/dist/{chunk-274UY54Z.js.map → chunk-DFZYZOLH.js.map} +0 -0
- /package/dist/{chunk-6S4DM53Y.js.map → chunk-E6EESRJ6.js.map} +0 -0
- /package/dist/{chunk-FSI45NUK.js.map → chunk-EZG54YDS.js.map} +0 -0
- /package/dist/{chunk-7ZFB4VZS.js.map → chunk-FFWFFAP3.js.map} +0 -0
- /package/dist/{chunk-22VXXA67.js.map → chunk-FGT7CUYZ.js.map} +0 -0
- /package/dist/{chunk-Z3SXC3MP.js.map → chunk-FOTFLHBN.js.map} +0 -0
- /package/dist/{chunk-RH6XWXMA.js.map → chunk-FRYCXXTB.js.map} +0 -0
- /package/dist/{chunk-B377OKUP.js.map → chunk-G64WYD2S.js.map} +0 -0
- /package/dist/{chunk-JJEQRSYU.js.map → chunk-GBSXTTLP.js.map} +0 -0
- /package/dist/{chunk-2YODOG2O.js.map → chunk-GIL2M2OI.js.map} +0 -0
- /package/dist/{chunk-ARJ3KCX4.js.map → chunk-HDLNSDLK.js.map} +0 -0
- /package/dist/{chunk-VXUO5JZC.js.map → chunk-HDWISXFH.js.map} +0 -0
- /package/dist/{chunk-EZ47HOJ6.js.map → chunk-IXI6S2VJ.js.map} +0 -0
- /package/dist/{chunk-VXMWTRQX.js.map → chunk-J74YOBB3.js.map} +0 -0
- /package/dist/{chunk-AMW3IDCO.js.map → chunk-JFMMEHVG.js.map} +0 -0
- /package/dist/{chunk-6TPWIPE3.js.map → chunk-JFZZDMEZ.js.map} +0 -0
- /package/dist/{chunk-JTSSSR4L.js.map → chunk-KIUFT2WZ.js.map} +0 -0
- /package/dist/{chunk-L6BLTV4D.js.map → chunk-L7SEYUHS.js.map} +0 -0
- /package/dist/{chunk-WRAK5LLB.js.map → chunk-LPUEBFX2.js.map} +0 -0
- /package/dist/{chunk-DBVSU3HE.js.map → chunk-LVGTH6IQ.js.map} +0 -0
- /package/dist/{chunk-OGBQMY46.js.map → chunk-O544TUJO.js.map} +0 -0
- /package/dist/{chunk-TFNZXOXK.js.map → chunk-OAQRZ4SV.js.map} +0 -0
- /package/dist/{chunk-IEEV27BC.js.map → chunk-OO2HEUZ4.js.map} +0 -0
- /package/dist/{chunk-YMC4AYJK.js.map → chunk-OWM2VWNX.js.map} +0 -0
- /package/dist/{chunk-4LPTSB5V.js.map → chunk-PFLN6TTW.js.map} +0 -0
- /package/dist/{chunk-YOR5QBEU.js.map → chunk-QFTK6EDM.js.map} +0 -0
- /package/dist/{chunk-A2WFUMUN.js.map → chunk-QKDXO4FD.js.map} +0 -0
- /package/dist/{chunk-Y7HLGKKU.js.map → chunk-QLQUAVVP.js.map} +0 -0
- /package/dist/{chunk-MUMQWCE2.js.map → chunk-QPFM6DHY.js.map} +0 -0
- /package/dist/{chunk-YWPCDR3I.js.map → chunk-QVXEXGIM.js.map} +0 -0
- /package/dist/{chunk-UPE7TJWN.js.map → chunk-QWWHYBPT.js.map} +0 -0
- /package/dist/{chunk-NZHZQGLB.js.map → chunk-QXTKN25V.js.map} +0 -0
- /package/dist/{chunk-OAGTKS73.js.map → chunk-RFLC6PKQ.js.map} +0 -0
- /package/dist/{chunk-ZRLTQ2Y7.js.map → chunk-RO5EGRAI.js.map} +0 -0
- /package/dist/{chunk-5D4NBANY.js.map → chunk-SIONKXLU.js.map} +0 -0
- /package/dist/{chunk-6XTUZKCZ.js.map → chunk-SMDZTJ2D.js.map} +0 -0
- /package/dist/{chunk-OFSAKEZB.js.map → chunk-T4BT4FQN.js.map} +0 -0
- /package/dist/{chunk-IC35ZYLM.js.map → chunk-TAD6QMMD.js.map} +0 -0
- /package/dist/{chunk-EAHNSQ7H.js.map → chunk-TB6VFEHQ.js.map} +0 -0
- /package/dist/{chunk-6ARSFTLD.js.map → chunk-TNRGWJYT.js.map} +0 -0
- /package/dist/{chunk-CGOPDXLK.js.map → chunk-UMEUU66X.js.map} +0 -0
- /package/dist/{chunk-5LTXYM7D.js.map → chunk-UYIBNDQE.js.map} +0 -0
- /package/dist/{chunk-UGQEJWR3.js.map → chunk-VHXRLD6S.js.map} +0 -0
- /package/dist/{chunk-WJ6S54ES.js.map → chunk-VOLTQNAP.js.map} +0 -0
- /package/dist/{chunk-SBU5GDOT.js.map → chunk-VRHY7Y5A.js.map} +0 -0
- /package/dist/{chunk-E5RJPLNL.js.map → chunk-W7N7NWG5.js.map} +0 -0
- /package/dist/{chunk-UPWOMMVU.js.map → chunk-WECKZ3KT.js.map} +0 -0
- /package/dist/{chunk-PCUDFWX5.js.map → chunk-WEFFO2MJ.js.map} +0 -0
- /package/dist/{chunk-QCP75JGO.js.map → chunk-WQUGCOKF.js.map} +0 -0
- /package/dist/{chunk-FKBGK3NC.js.map → chunk-WWUQ6CP3.js.map} +0 -0
- /package/dist/{chunk-KR6PEAM4.js.map → chunk-X67XNZ64.js.map} +0 -0
- /package/dist/{chunk-UYHDMCY2.js.map → chunk-XUVCQ4YZ.js.map} +0 -0
- /package/dist/{chunk-7IJ2H43M.js.map → chunk-YY57TRKN.js.map} +0 -0
- /package/dist/{chunk-AU6AEUFD.js.map → chunk-YYXYZM2I.js.map} +0 -0
- /package/dist/{chunk-3FBAEPCU.js.map → chunk-ZDUE44CC.js.map} +0 -0
- /package/dist/{chunk-RDO6AMDL.js.map → chunk-ZWDDY4WF.js.map} +0 -0
|
@@ -15,6 +15,7 @@ import path from "path";
|
|
|
15
15
|
var DEFAULT_GIT_TIMEOUT_MS = 2e3;
|
|
16
16
|
var GIT_TIMEOUT_EXIT_CODE = 124;
|
|
17
17
|
var GIT_SPAWN_ERROR_EXIT_CODE = 127;
|
|
18
|
+
var NOT_A_GIT_REPOSITORY = /not a git repository|outside repository|this operation must be run in a work tree/i;
|
|
18
19
|
function defaultGitInvokerSync() {
|
|
19
20
|
return (cwd, args) => {
|
|
20
21
|
const result = launchProcessSync("git", args, {
|
|
@@ -26,6 +27,7 @@ function defaultGitInvokerSync() {
|
|
|
26
27
|
if (result.error) return { stdout: "", exitCode: GIT_SPAWN_ERROR_EXIT_CODE };
|
|
27
28
|
return {
|
|
28
29
|
stdout: typeof result.stdout === "string" ? result.stdout : "",
|
|
30
|
+
stderr: result.stderr ?? "",
|
|
29
31
|
exitCode: typeof result.status === "number" ? result.status : 1
|
|
30
32
|
};
|
|
31
33
|
};
|
|
@@ -39,10 +41,11 @@ function defaultGitInvoker() {
|
|
|
39
41
|
cwd,
|
|
40
42
|
encoding: "utf-8",
|
|
41
43
|
shell: false,
|
|
42
|
-
stdio: ["ignore", "pipe", "
|
|
44
|
+
stdio: ["ignore", "pipe", "pipe"]
|
|
43
45
|
});
|
|
44
46
|
const { promise, resolve, reject } = Promise.withResolvers();
|
|
45
47
|
let stdout = "";
|
|
48
|
+
let stderr = "";
|
|
46
49
|
let settled = false;
|
|
47
50
|
let timer;
|
|
48
51
|
const cleanup = () => {
|
|
@@ -71,9 +74,13 @@ function defaultGitInvoker() {
|
|
|
71
74
|
child.stdout?.on("data", (chunk) => {
|
|
72
75
|
stdout += chunk.toString();
|
|
73
76
|
});
|
|
77
|
+
child.stderr?.setEncoding("utf-8");
|
|
78
|
+
child.stderr?.on("data", (chunk) => {
|
|
79
|
+
stderr += chunk.toString();
|
|
80
|
+
});
|
|
74
81
|
child.once("error", () => finish({ stdout: "", exitCode: GIT_SPAWN_ERROR_EXIT_CODE }));
|
|
75
82
|
child.once("close", (exitCode) => {
|
|
76
|
-
finish({ stdout, exitCode:
|
|
83
|
+
finish({ stdout, stderr, exitCode: exitCode ?? 1 });
|
|
77
84
|
});
|
|
78
85
|
options.abortSignal?.addEventListener("abort", onAbort, { once: true });
|
|
79
86
|
const timeoutMs = Math.max(
|
|
@@ -288,186 +295,26 @@ async function resolveGitContextUncached(cwd, options) {
|
|
|
288
295
|
}
|
|
289
296
|
var sharedGitContextCache = new GitContextCache();
|
|
290
297
|
var sharedNonRepoGitContextCache = new GitContextCache({ cacheRepos: false });
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
const isSafe = cc >= 48 && cc <= 57 || cc >= 97 && cc <= 122 || cc === 46 || cc === 95;
|
|
302
|
-
if (isSafe) {
|
|
303
|
-
out += c;
|
|
304
|
-
prevIsDash = false;
|
|
305
|
-
} else if (!prevIsDash) {
|
|
306
|
-
out += "-";
|
|
307
|
-
prevIsDash = true;
|
|
298
|
+
async function probeGitContext(cwd, options = {}) {
|
|
299
|
+
let inconclusive = false;
|
|
300
|
+
const inner = options.invoker ?? defaultGitInvoker();
|
|
301
|
+
const invoker = async (probeCwd, args, invokeOptions) => {
|
|
302
|
+
let result;
|
|
303
|
+
try {
|
|
304
|
+
result = await inner(probeCwd, args, invokeOptions);
|
|
305
|
+
} catch (err) {
|
|
306
|
+
inconclusive = true;
|
|
307
|
+
throw err;
|
|
308
308
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
var MAX_NAMESPACE_LEN = 64;
|
|
314
|
-
var HASH_SUFFIX_LEN = 9;
|
|
315
|
-
function capLength(value) {
|
|
316
|
-
if (value.length <= MAX_NAMESPACE_LEN) return value;
|
|
317
|
-
const hash = stableHash(value);
|
|
318
|
-
let end = MAX_NAMESPACE_LEN - HASH_SUFFIX_LEN;
|
|
319
|
-
while (end > 0 && value.charCodeAt(end - 1) === 45) end -= 1;
|
|
320
|
-
return `${value.slice(0, end)}-${hash}`;
|
|
321
|
-
}
|
|
322
|
-
function projectNamespaceName(projectId) {
|
|
323
|
-
const frag = sanitizeFragment(projectId);
|
|
324
|
-
return capLength(`project-${frag || "unknown"}`);
|
|
325
|
-
}
|
|
326
|
-
function projectTagProjectId(projectTag) {
|
|
327
|
-
const trimmed = projectTag.trim();
|
|
328
|
-
const frag = sanitizeFragment(trimmed);
|
|
329
|
-
const disambig = trimmed.length > 0 && frag !== trimmed;
|
|
330
|
-
const suffix = disambig ? `-${stableHash(trimmed)}` : "";
|
|
331
|
-
return `tag:${frag || "unknown"}${suffix}`;
|
|
332
|
-
}
|
|
333
|
-
function sanitizeBaseFragment(input) {
|
|
334
|
-
if (typeof input !== "string") return "";
|
|
335
|
-
const trimmed = input.trim();
|
|
336
|
-
let out = "";
|
|
337
|
-
let prevIsDash = true;
|
|
338
|
-
for (let i = 0; i < trimmed.length; i += 1) {
|
|
339
|
-
const c = trimmed[i];
|
|
340
|
-
const cc = trimmed.charCodeAt(i);
|
|
341
|
-
const isSafe = cc >= 48 && cc <= 57 || cc >= 65 && cc <= 90 || cc >= 97 && cc <= 122 || cc === 46 || cc === 95;
|
|
342
|
-
if (isSafe) {
|
|
343
|
-
out += c;
|
|
344
|
-
prevIsDash = false;
|
|
345
|
-
} else if (!prevIsDash) {
|
|
346
|
-
out += "-";
|
|
347
|
-
prevIsDash = true;
|
|
309
|
+
if (result.exitCode === GIT_TIMEOUT_EXIT_CODE || result.exitCode === GIT_SPAWN_ERROR_EXIT_CODE) {
|
|
310
|
+
inconclusive = true;
|
|
311
|
+
} else if (args[0] === "rev-parse" && args.includes("--show-toplevel") && result.exitCode !== 0 && result.stderr !== void 0 && !NOT_A_GIT_REPOSITORY.test(result.stderr)) {
|
|
312
|
+
inconclusive = true;
|
|
348
313
|
}
|
|
349
|
-
|
|
350
|
-
if (out.endsWith("-")) out = out.slice(0, -1);
|
|
351
|
-
return out;
|
|
352
|
-
}
|
|
353
|
-
function combineNamespaces(base, overlay) {
|
|
354
|
-
const baseFrag = sanitizeBaseFragment(base);
|
|
355
|
-
const overlayFrag = sanitizeFragment(overlay);
|
|
356
|
-
if (!baseFrag) return capLength(overlayFrag || "unknown");
|
|
357
|
-
if (!overlayFrag) return capLength(baseFrag);
|
|
358
|
-
return capLength(`${baseFrag}-${overlayFrag}`);
|
|
359
|
-
}
|
|
360
|
-
function branchNamespaceName(projectId, branch) {
|
|
361
|
-
const projectFrag = sanitizeFragment(projectId);
|
|
362
|
-
const trimmedBranch = branch.trim();
|
|
363
|
-
const branchFrag = sanitizeFragment(trimmedBranch);
|
|
364
|
-
const disambig = trimmedBranch.length > 0 && branchFrag !== trimmedBranch;
|
|
365
|
-
const base = `project-${projectFrag || "unknown"}-branch-${branchFrag || "unknown"}`;
|
|
366
|
-
const suffixed = disambig ? `${base}-${stableHash(trimmedBranch)}` : base;
|
|
367
|
-
return capLength(suffixed);
|
|
368
|
-
}
|
|
369
|
-
function resolveCodingNamespaceOverlay(codingContext, config, defaultNamespace) {
|
|
370
|
-
if (!codingContext) return null;
|
|
371
|
-
if (!config.projectScope) return null;
|
|
372
|
-
const projectId = typeof codingContext.projectId === "string" ? codingContext.projectId.trim() : "";
|
|
373
|
-
if (!projectId) return null;
|
|
374
|
-
const projectNs = projectNamespaceName(projectId);
|
|
375
|
-
const includeRoot = config.globalFallback === true;
|
|
376
|
-
if (config.branchScope && typeof codingContext.branch === "string" && codingContext.branch.length > 0) {
|
|
377
|
-
const branchNs = branchNamespaceName(projectId, codingContext.branch);
|
|
378
|
-
const fallbacks = [projectNs];
|
|
379
|
-
if (includeRoot) fallbacks.push("");
|
|
380
|
-
return {
|
|
381
|
-
namespace: branchNs,
|
|
382
|
-
readFallbacks: fallbacks,
|
|
383
|
-
scope: "branch"
|
|
384
|
-
};
|
|
385
|
-
}
|
|
386
|
-
return {
|
|
387
|
-
namespace: projectNs,
|
|
388
|
-
readFallbacks: includeRoot ? [""] : [],
|
|
389
|
-
scope: "project"
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
function describeCodingScope(codingContext, config, defaultNamespace) {
|
|
393
|
-
const projectId = codingContext?.projectId ?? null;
|
|
394
|
-
const branch = codingContext?.branch ?? null;
|
|
395
|
-
if (!codingContext) {
|
|
396
|
-
return {
|
|
397
|
-
scope: "none",
|
|
398
|
-
projectId: null,
|
|
399
|
-
branch: null,
|
|
400
|
-
effectiveNamespace: null,
|
|
401
|
-
readFallbacks: [],
|
|
402
|
-
disabledReason: "no-context"
|
|
403
|
-
};
|
|
404
|
-
}
|
|
405
|
-
if (!config.projectScope) {
|
|
406
|
-
return {
|
|
407
|
-
scope: "none",
|
|
408
|
-
projectId,
|
|
409
|
-
branch,
|
|
410
|
-
effectiveNamespace: null,
|
|
411
|
-
readFallbacks: [],
|
|
412
|
-
disabledReason: "disabled"
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
const trimmedId = typeof projectId === "string" ? projectId.trim() : "";
|
|
416
|
-
if (!trimmedId) {
|
|
417
|
-
return {
|
|
418
|
-
scope: "none",
|
|
419
|
-
projectId,
|
|
420
|
-
branch,
|
|
421
|
-
effectiveNamespace: null,
|
|
422
|
-
readFallbacks: [],
|
|
423
|
-
disabledReason: "empty-project"
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
const overlay = resolveCodingNamespaceOverlay(codingContext, config, defaultNamespace);
|
|
427
|
-
if (!overlay) {
|
|
428
|
-
return {
|
|
429
|
-
scope: "none",
|
|
430
|
-
projectId,
|
|
431
|
-
branch,
|
|
432
|
-
effectiveNamespace: null,
|
|
433
|
-
readFallbacks: [],
|
|
434
|
-
disabledReason: "disabled"
|
|
435
|
-
};
|
|
436
|
-
}
|
|
437
|
-
return {
|
|
438
|
-
scope: overlay.scope,
|
|
439
|
-
projectId,
|
|
440
|
-
branch,
|
|
441
|
-
effectiveNamespace: overlay.namespace,
|
|
442
|
-
readFallbacks: overlay.readFallbacks,
|
|
443
|
-
disabledReason: null
|
|
314
|
+
return result;
|
|
444
315
|
};
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
function escapeDefaultLcmKey(sessionKey) {
|
|
448
|
-
return sessionKey.startsWith(LCM_NS_SENTINEL) ? `${LCM_NS_SENTINEL}${sessionKey}` : sessionKey;
|
|
449
|
-
}
|
|
450
|
-
function lcmSessionKeyForNamespace(namespace, sessionKey, defaultNamespace) {
|
|
451
|
-
if (typeof sessionKey !== "string" || sessionKey.length === 0) return sessionKey;
|
|
452
|
-
if (typeof namespace === "string" && namespace.length > 0 && namespace !== defaultNamespace) {
|
|
453
|
-
return `${LCM_NS_SENTINEL}${namespace}${LCM_NS_SENTINEL}${sessionKey}`;
|
|
454
|
-
}
|
|
455
|
-
return escapeDefaultLcmKey(sessionKey);
|
|
456
|
-
}
|
|
457
|
-
function lcmReadSessionIdsForNamespaces(namespaces, sessionKey, defaultNamespace) {
|
|
458
|
-
if (typeof sessionKey !== "string" || sessionKey.length === 0) {
|
|
459
|
-
return [void 0];
|
|
460
|
-
}
|
|
461
|
-
const out = [];
|
|
462
|
-
const seen = /* @__PURE__ */ new Set();
|
|
463
|
-
for (const namespace of namespaces) {
|
|
464
|
-
const key = lcmSessionKeyForNamespace(namespace, sessionKey, defaultNamespace) ?? sessionKey;
|
|
465
|
-
if (!seen.has(key)) {
|
|
466
|
-
seen.add(key);
|
|
467
|
-
out.push(key);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
return out;
|
|
316
|
+
const context = await resolveGitContext(cwd, { ...options, invoker });
|
|
317
|
+
return { context, conclusive: !inconclusive };
|
|
471
318
|
}
|
|
472
319
|
|
|
473
320
|
export {
|
|
@@ -475,17 +322,10 @@ export {
|
|
|
475
322
|
defaultGitInvoker,
|
|
476
323
|
stableHash,
|
|
477
324
|
normalizeOriginUrl,
|
|
325
|
+
GitContextCache,
|
|
478
326
|
resolveGitContext,
|
|
479
327
|
sharedGitContextCache,
|
|
480
328
|
sharedNonRepoGitContextCache,
|
|
481
|
-
|
|
482
|
-
projectNamespaceName,
|
|
483
|
-
projectTagProjectId,
|
|
484
|
-
combineNamespaces,
|
|
485
|
-
branchNamespaceName,
|
|
486
|
-
resolveCodingNamespaceOverlay,
|
|
487
|
-
describeCodingScope,
|
|
488
|
-
lcmSessionKeyForNamespace,
|
|
489
|
-
lcmReadSessionIdsForNamespaces
|
|
329
|
+
probeGitContext
|
|
490
330
|
};
|
|
491
|
-
//# sourceMappingURL=chunk-
|
|
331
|
+
//# sourceMappingURL=chunk-4D77BI3J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/coding/git-context.ts"],"sourcesContent":["/**\n * GitContextResolver — pure module for detecting the git project + branch\n * a session is operating in.\n *\n * Introduced by issue #569 (coding-agent project/branch-scoped namespaces).\n *\n * This module is deliberately pure:\n * - no orchestrator references\n * - no config side-effects\n * - no namespace wiring\n *\n * Downstream slices (PR 2+ of #569) wire `resolveGitContext` into the\n * `NamespaceResolver` / `Orchestrator` so that memories are scoped to a\n * detected project / branch without leaking across repos.\n *\n * CLAUDE.md rule 17 (expand `~`): the `rootPath` returned here is always an\n * absolute, tilde-expanded path. Callers must not re-expand.\n *\n * CLAUDE.md rule 51 (reject invalid input): `cwd` must be an absolute path\n * and must exist. `resolveGitContext` returns `null` — rather than throwing —\n * when the directory is not inside a git worktree, because being outside a\n * repo is a normal runtime state (e.g. agent opened in a scratch dir).\n */\nimport { lstat, readFile, stat } from \"node:fs/promises\";\nimport path from \"node:path\";\n\nimport { abortError } from \"../abort-error.js\";\nimport { launchProcess, launchProcessSync } from \"../runtime/child-process.js\";\nimport { expandTildePath } from \"../utils/path.js\";\n\n// Re-export so existing callers / tests that imported `expandTildePath` from\n// this module keep working. CLAUDE.md #17 requires consistent `~` expansion\n// across every user-facing path input; the canonical implementation now\n// lives in `utils/path.ts`.\nexport { expandTildePath };\n\n// ──────────────────────────────────────────────────────────────────────────\n// Public types\n// ──────────────────────────────────────────────────────────────────────────\n\nexport interface GitContext {\n /**\n * Stable identifier for the project. Derived from `git remote get-url origin`\n * when an origin remote is configured, otherwise from the repo root path.\n *\n * Formatted as `origin:<hex>` or `root:<hex>` so that the source is visible\n * to operators (see `remnic doctor`, issue #569 acceptance criteria).\n */\n projectId: string;\n /**\n * Current branch, e.g. `main`, `feat/foo`. `null` only in detached-HEAD\n * state (e.g. rebase in progress). Callers should treat `null` as \"no\n * branch-scope overlay applies\" without erroring.\n */\n branch: string | null;\n /**\n * Absolute path to the repository root (the directory containing `.git`).\n * Tilde-expanded per CLAUDE.md #17.\n */\n rootPath: string;\n /**\n * Best-effort default branch (usually `main` or `master`). Derived from the\n * `refs/remotes/origin/HEAD` symbolic ref. `null` when not available (e.g.\n * fresh clone without a default branch symref, or no origin remote).\n */\n defaultBranch: string | null;\n}\n\nexport interface GitInvokeOptions {\n abortSignal?: AbortSignal;\n timeoutMs?: number;\n}\n\nexport interface GitInvokeResult {\n stdout: string;\n exitCode: number;\n /** Captured when the invoker can supply it; used to tell a confirmed\n * \"not a git repository\" answer from operational failures (e.g. exit 128\n * for dubious ownership) that must stay inconclusive. */\n stderr?: string;\n}\n\n/**\n * Run `git <args>` with `cwd` as the working directory. Implementations\n * should return non-zero exit codes rather than throwing for command failure.\n */\nexport interface GitInvoker {\n (\n cwd: string,\n args: string[],\n options?: GitInvokeOptions,\n ): GitInvokeResult | Promise<GitInvokeResult>;\n}\n\nexport interface SyncGitInvoker {\n (cwd: string, args: string[]): GitInvokeResult;\n}\n\n// ──────────────────────────────────────────────────────────────────────────\n// Default git invoker — spawns real `git` via the shared child-process helper\n// ──────────────────────────────────────────────────────────────────────────\n\nconst DEFAULT_GIT_TIMEOUT_MS = 2_000;\nconst GIT_TIMEOUT_EXIT_CODE = 124;\nconst GIT_SPAWN_ERROR_EXIT_CODE = 127;\nconst NOT_A_GIT_REPOSITORY = /not a git repository|outside repository|this operation must be run in a work tree/i;\n\nexport function defaultGitInvokerSync(): SyncGitInvoker {\n return (cwd: string, args: string[]) => {\n const result = launchProcessSync(\"git\", args, {\n cwd,\n encoding: \"utf-8\",\n timeout: DEFAULT_GIT_TIMEOUT_MS,\n shell: false,\n });\n if (result.error) return { stdout: \"\", exitCode: GIT_SPAWN_ERROR_EXIT_CODE };\n return {\n stdout: typeof result.stdout === \"string\" ? result.stdout : \"\",\n stderr: result.stderr ?? \"\",\n exitCode: typeof result.status === \"number\" ? result.status : 1,\n };\n };\n}\n\nexport function defaultGitInvoker(): GitInvoker {\n return (cwd, args, options = {}) => {\n if (options.abortSignal?.aborted) {\n throw options.abortSignal.reason instanceof Error\n ? options.abortSignal.reason\n : abortError(\"git context resolution aborted\");\n }\n\n const child = launchProcess(\"git\", args, {\n cwd,\n encoding: \"utf-8\",\n shell: false,\n stdio: [\"ignore\", \"pipe\", \"pipe\"],\n });\n const { promise, resolve, reject } = Promise.withResolvers<GitInvokeResult>();\n let stdout = \"\";\n let stderr = \"\";\n let settled = false;\n let timer: NodeJS.Timeout | undefined;\n\n const cleanup = (): void => {\n clearTimeout(timer);\n options.abortSignal?.removeEventListener(\"abort\", onAbort);\n };\n const finish = (result: GitInvokeResult): void => {\n if (settled) return;\n settled = true;\n cleanup();\n resolve(result);\n };\n const fail = (error: Error): void => {\n if (settled) return;\n settled = true;\n cleanup();\n reject(error);\n };\n const onAbort = (): void => {\n child.kill(\"SIGTERM\");\n fail(\n options.abortSignal?.reason instanceof Error\n ? options.abortSignal.reason\n : abortError(\"git context resolution aborted\"),\n );\n };\n\n child.stdout?.setEncoding(\"utf-8\");\n child.stdout?.on(\"data\", (chunk: string | Buffer) => {\n stdout += chunk.toString();\n });\n child.stderr?.setEncoding(\"utf-8\");\n child.stderr?.on(\"data\", (chunk: string | Buffer) => {\n stderr += chunk.toString();\n });\n child.once(\"error\", () => finish({ stdout: \"\", exitCode: GIT_SPAWN_ERROR_EXIT_CODE }));\n child.once(\"close\", (exitCode: number | null) => {\n finish({ stdout, stderr, exitCode: exitCode ?? 1 });\n });\n options.abortSignal?.addEventListener(\"abort\", onAbort, { once: true });\n\n const timeoutMs = Math.max(\n 1,\n Math.min(DEFAULT_GIT_TIMEOUT_MS, options.timeoutMs ?? DEFAULT_GIT_TIMEOUT_MS),\n );\n timer = setTimeout(() => {\n child.kill(\"SIGTERM\");\n finish({ stdout: \"\", exitCode: GIT_TIMEOUT_EXIT_CODE });\n }, timeoutMs);\n if (options.abortSignal?.aborted) onAbort();\n return promise;\n };\n}\n\n// ──────────────────────────────────────────────────────────────────────────\n// Stable hashing\n// ──────────────────────────────────────────────────────────────────────────\n\n/**\n * Non-cryptographic stable hash. Used only to derive a deterministic\n * `projectId` from either the origin URL or the root path. The hash does not\n * need to be collision-resistant against adversarial input — it is purely a\n * namespace discriminator.\n *\n * Uses FNV-1a 32-bit so we don't pull in `node:crypto` for a simple bucket\n * key. Output is lowercase hex, zero-padded to 8 characters.\n */\nexport function stableHash(input: string): string {\n let hash = 0x811c9dc5;\n for (let i = 0; i < input.length; i++) {\n hash ^= input.charCodeAt(i);\n hash = Math.imul(hash, 0x01000193) >>> 0;\n }\n return hash.toString(16).padStart(8, \"0\");\n}\n\n// ──────────────────────────────────────────────────────────────────────────\n// Origin URL normalization\n// ──────────────────────────────────────────────────────────────────────────\n\n/**\n * Normalize a git remote URL so that equivalent SSH / HTTPS forms of the\n * same repo produce the same `projectId`. Handles:\n * - `git@github.com:foo/bar.git` → `github.com/foo/bar`\n * - `https://github.com/foo/bar` → `github.com/foo/bar`\n * - `https://github.com/foo/bar.git` → `github.com/foo/bar`\n * - `ssh://git@github.com/foo/bar` → `github.com/foo/bar`\n * - `ssh://git@github.com:2222/foo/bar` → `github.com/foo/bar` (port stripped)\n *\n * Case-insensitive (remote hostnames and most repo paths on major forges are\n * case-insensitive in practice).\n */\nexport function normalizeOriginUrl(rawUrl: string): string {\n let url = rawUrl.trim();\n if (!url) return \"\";\n\n // Strip trailing `.git` case-insensitively — the whole result is\n // lowercased at the end, so `.GIT` / `.Git` must be treated the same as\n // `.git`. Previously the `.endsWith(\".git\")` check let `.GIT` leak\n // through and appear in the output.\n if (/\\.git$/i.test(url)) url = url.slice(0, -4);\n\n // Windows drive-letter local path (e.g. `C:/repos/app`): detect here\n // so the scp matcher below can accept single-character SSH host aliases\n // (`h:foo/bar` from `.ssh/config`). A drive letter is exactly one ASCII\n // letter followed by `:/` or `:\\`; SSH aliases never have a slash\n // immediately after the colon.\n if (/^[A-Za-z]:[\\\\/]/.test(url)) {\n return url.toLowerCase();\n }\n\n // Protocol-prefixed: ssh://, https://, http://, git://, file://\n // Must be tried FIRST so that scp-style detection below doesn't\n // incorrectly swallow an ssh:// URL that happens to contain `:port/`.\n //\n // Matches:\n // 1: host — bracketed IPv6 `[2001:db8::1]`, plain host with no `:` / `/`,\n // OR empty (for `file:///path` which has no host component).\n // 2: port (optional) — preserved in the output so two repos on the same\n // host under different ports get distinct project namespaces.\n // Losing the port risked false-coalescing separate repos on custom\n // SSH mesh setups.\n // 3: path (optional)\n const protoMatch =\n /^[a-z][a-z0-9+.-]*:\\/\\/(?:[^@/]+@)?(\\[[^\\]]+\\]|[^/:]*)(?::(\\d+))?(\\/.*)?$/i.exec(url);\n if (protoMatch) {\n let host = protoMatch[1] ?? \"\";\n // Detect IPv6 via the bracketed input form BEFORE stripping brackets,\n // so that when we later re-attach a port we can preserve the\n // `[host]:port` boundary. Without the brackets, `host:2222` is\n // ambiguous with a longer bare IPv6 address like `2001:db8::1:2222`.\n const wasBracketed =\n host.startsWith(\"[\") && host.endsWith(\"]\");\n if (wasBracketed) host = host.slice(1, -1);\n const port = protoMatch[2];\n const repoPath = (protoMatch[3] ?? \"\").replace(/^\\/+/, \"\");\n const hostPort = port\n ? wasBracketed\n ? `[${host}]:${port}`\n : `${host}:${port}`\n : host;\n // For protocols without a host component (file:///path), fall back to\n // a stable prefix so distinct local paths don't collapse to \"/path\".\n const prefix = hostPort.length > 0 ? hostPort : \"localhost\";\n return `${prefix}/${repoPath}`.toLowerCase();\n }\n\n // scp-like syntax: [user@]host:path. Protocol-prefixed URLs (`scheme://`)\n // are handled above, so the scp branch below guards against them: a\n // matched `host` of `scheme` followed by a path starting with `//` is\n // a protocol URL that fell through and must NOT be parsed here.\n // `user@` is optional — git also accepts userless scp forms like\n // `host:org/repo`. Valid scp paths may start with digits (e.g.\n // `git@host:123/repo.git`), so no numeric guard is needed: port-bearing\n // URLs have the `://` prefix and match the protocol branch above before\n // reaching here.\n //\n // Windows drive letters were filtered above, so single-character SSH\n // host aliases (`h:foo/bar`) are accepted here.\n //\n // Bracketed IPv6 (`[2001:db8::1]`) is supported: the host alternative\n // matches the bracketed literal up to `]` without splitting on internal\n // `:`. Brackets are stripped in the normalised form so the scp and\n // `ssh://` forms of the same IPv6 remote produce identical projectIds.\n const scpMatch =\n /^(?:([^@\\s/]+)@)?(\\[[^\\]]+\\]|[^:@\\s/]+):(.+)$/.exec(url);\n if (scpMatch) {\n let host = scpMatch[2] ?? \"\";\n if (host.startsWith(\"[\") && host.endsWith(\"]\")) host = host.slice(1, -1);\n const repoPath = scpMatch[3] ?? \"\";\n // Reject protocol-like leftovers (e.g. `file:///path` where the scp\n // regex greedily matched `file` as host and `///path` as path).\n if (repoPath.startsWith(\"//\")) {\n return url.toLowerCase();\n }\n return `${host}/${repoPath.replace(/^\\/+/, \"\")}`.toLowerCase();\n }\n\n // Fallback: use raw lowercased\n return url.toLowerCase();\n}\n\n// ──────────────────────────────────────────────────────────────────────────\n// Resolver\n// ──────────────────────────────────────────────────────────────────────────\n\nexport interface ResolveGitContextOptions {\n /** Inject a git invoker (tests). Defaults to spawning real `git`. */\n invoker?: GitInvoker;\n abortSignal?: AbortSignal;\n /** Absolute epoch deadline shared with the extraction lifecycle. */\n deadlineMs?: number;\n /** Injectable clock for deadline tests. */\n now?: () => number;\n /**\n * Share results across calls. Each miss costs up to five `git` spawns on the\n * event loop, so per-request callers (recall, memory_store) pass one.\n */\n cache?: GitContextCache;\n}\n\n/** Short-lived, bounded memo of git resolution per cwd (COS-666). */\nexport class GitContextCache {\n private readonly entries = new Map<string, { value: GitContext | null; head?: string; at: number }>();\n private readonly ttlMs: number;\n private readonly maxEntries: number;\n private readonly now: () => number;\n\n private readonly cacheRepos: boolean;\n\n constructor(options: { ttlMs?: number; maxEntries?: number; now?: () => number; cacheRepos?: boolean } = {}) {\n this.cacheRepos = options.cacheRepos ?? true;\n this.ttlMs = options.ttlMs ?? 30_000;\n this.maxEntries = options.maxEntries ?? 256;\n this.now = options.now ?? Date.now;\n }\n\n has(key: string): boolean {\n return this.get(key) !== undefined;\n }\n\n /** `undefined` = miss; `value: null` = cached \"not a repo\". */\n get(key: string): { value: GitContext | null; head?: string } | undefined {\n const hit = this.entries.get(key);\n if (!hit) return undefined;\n if (this.now() - hit.at >= this.ttlMs) {\n this.entries.delete(key);\n return undefined;\n }\n return hit;\n }\n\n set(key: string, value: GitContext | null, head?: string): void {\n // Negative-only caches never hold a branch, so a session snapshot taken\n // from them cannot carry a stale one.\n if (value !== null && !this.cacheRepos) return;\n this.entries.delete(key);\n this.entries.set(key, { value, head, at: this.now() });\n if (this.entries.size > this.maxEntries) {\n const oldest = this.entries.keys().next();\n if (!oldest.done) this.entries.delete(oldest.value);\n }\n }\n}\n\n/**\n * Detect the git project + branch for `cwd`.\n *\n * Returns `null` when `cwd` is invalid, outside a worktree, or git is\n * unavailable. Unexpected command failures also resolve to `null`.\n *\n * Caller cancellation and an exhausted deadline reject so lifecycle callers\n * can stop promptly instead of treating an interrupted probe as \"not a repo\".\n */\nexport async function resolveGitContext(\n cwd: string,\n options: ResolveGitContextOptions = {},\n): Promise<GitContext | null> {\n const { cache } = options;\n if (!cache) return resolveGitContextUncached(cwd, options);\n // A cache hit must not mask cancellation or an exhausted deadline.\n throwIfInterrupted(options);\n const hit = cache.get(cwd);\n if (hit?.value === null) return null;\n // The branch picks the write/recall namespace and git alone decides it, so a\n // hit is served only while HEAD is byte-identical to what git answered for.\n if (hit?.value && hit.head !== undefined && (await readHeadFile(hit.value.rootPath)) === hit.head) {\n return { ...hit.value };\n }\n // Timeouts and spawn failures are not answers about the repo, so a lookup\n // that hit one (even partially) is never cached.\n let inconclusive = false;\n // HEAD is snapshotted once git names the root and BEFORE the branch probe: a\n // checkout racing the probe then leaves the entry older than HEAD, so the\n // next hit mismatches and re-resolves (never a stale branch pinned to a new HEAD).\n let head: string | undefined;\n const inner = options.invoker ?? defaultGitInvoker();\n const invoker: GitInvoker = async (probeCwd, args, invokeOptions) => {\n let result: GitInvokeResult;\n try {\n result = await inner(probeCwd, args, invokeOptions);\n } catch (err) {\n inconclusive = true;\n throw err;\n }\n if (result.exitCode === GIT_TIMEOUT_EXIT_CODE || result.exitCode === GIT_SPAWN_ERROR_EXIT_CODE) inconclusive = true;\n if (args[1] === \"--show-toplevel\" && result.exitCode === 0) head = await readHeadFile(result.stdout.trim());\n return result;\n };\n const value = await resolveGitContextUncached(cwd, { ...options, invoker });\n if (inconclusive || options.abortSignal?.aborted) return value;\n if (value === null || head !== undefined) cache.set(cwd, value && { ...value }, head);\n return value;\n}\n\n/**\n * Raw `HEAD` contents without spawning git, or `undefined` when they cannot\n * vouch for the branch: unreadable, a symlinked HEAD (old\n * `core.preferSymlinkRefs`), or reftable's constant `refs/heads/.invalid`\n * placeholder (HEAD never changes on checkout there). Callers then re-resolve.\n */\nasync function readHeadFile(rootPath: string): Promise<string | undefined> {\n try {\n let gitDir = path.join(rootPath, \".git\");\n if ((await stat(gitDir)).isFile()) {\n // Linked worktree: `.git` is a file pointing at the real git dir.\n const pointer = /^gitdir:\\s*(.+)$/m.exec(await readFile(gitDir, \"utf-8\"));\n if (!pointer?.[1]) return undefined;\n gitDir = path.resolve(rootPath, pointer[1].trim());\n }\n const headPath = path.join(gitDir, \"HEAD\");\n if ((await lstat(headPath)).isSymbolicLink()) return undefined;\n const head = await readFile(headPath, \"utf-8\");\n return head.includes(\"refs/heads/.invalid\") ? undefined : head;\n } catch {\n return undefined;\n }\n}\n\nfunction throwIfInterrupted(options: ResolveGitContextOptions): void {\n if (options.abortSignal?.aborted) {\n throw options.abortSignal.reason instanceof Error\n ? options.abortSignal.reason\n : abortError(\"git context resolution aborted\");\n }\n if (options.deadlineMs !== undefined && (options.now ?? Date.now)() >= options.deadlineMs) {\n throw abortError(\"git context resolution deadline exceeded\");\n }\n}\n\nasync function resolveGitContextUncached(\n cwd: string,\n options: ResolveGitContextOptions,\n): Promise<GitContext | null> {\n // Wrap the whole body so the documented \"Never throws\" contract is\n // enforced. Possible throw sites include:\n // - `expandTildePath` → `resolveHomeDir()` → `os.homedir()` when HOME\n // is unset (e.g. minimal containers)\n // - a custom `options.invoker` that raises instead of returning a\n // non-zero exitCode\n // - any future helper added to this chain\n // All of those map to \"not in a repo\" / `null`.\n try {\n // Validate input: must be a non-empty string.\n if (typeof cwd !== \"string\" || cwd.length === 0) return null;\n\n // Expand `~` per CLAUDE.md #17, then require absolute path.\n const expanded = expandTildePath(cwd);\n if (!path.isAbsolute(expanded)) return null;\n\n const invoker = options.invoker ?? defaultGitInvoker();\n const now = options.now ?? Date.now;\n const invoke = async (probeCwd: string, args: string[]): Promise<GitInvokeResult> => {\n if (options.abortSignal?.aborted) {\n throw options.abortSignal.reason instanceof Error\n ? options.abortSignal.reason\n : abortError(\"git context resolution aborted\");\n }\n const remainingMs =\n options.deadlineMs === undefined ? DEFAULT_GIT_TIMEOUT_MS : options.deadlineMs - now();\n if (remainingMs <= 0) throw abortError(\"git context resolution deadline exceeded\");\n return invoker(probeCwd, args, {\n abortSignal: options.abortSignal,\n timeoutMs: Math.min(DEFAULT_GIT_TIMEOUT_MS, remainingMs),\n });\n };\n\n // 1. Locate the repo root.\n const topLevel = await invoke(expanded, [\"rev-parse\", \"--show-toplevel\"]);\n if (topLevel.exitCode !== 0) return null;\n const rootPath = topLevel.stdout.trim();\n if (!rootPath) return null;\n\n // 2. Current branch. `--abbrev-ref HEAD` returns `HEAD` in detached\n // state, which we normalize to `null`. On a fresh `git init` the\n // HEAD ref is unborn and `--abbrev-ref HEAD` fails, but\n // `symbolic-ref HEAD` still returns the target branch. Fall back\n // so newly-initialized repos get a sensible branch name.\n const branchResult = await invoke(rootPath, [\"rev-parse\", \"--abbrev-ref\", \"HEAD\"]);\n let branch: string | null = null;\n if (branchResult.exitCode === 0) {\n const raw = branchResult.stdout.trim();\n branch = raw && raw !== \"HEAD\" ? raw : null;\n } else {\n const unbornRef = await invoke(rootPath, [\"symbolic-ref\", \"--quiet\", \"HEAD\"]);\n if (unbornRef.exitCode === 0) {\n const raw = unbornRef.stdout.trim();\n const prefix = \"refs/heads/\";\n if (raw.startsWith(prefix)) {\n const candidate = raw.slice(prefix.length);\n if (candidate) branch = candidate;\n }\n }\n }\n\n // 3. Origin URL — optional. Used to derive a stable `projectId`.\n const originResult = await invoke(rootPath, [\"remote\", \"get-url\", \"origin\"]);\n let projectId: string;\n if (originResult.exitCode === 0) {\n const normalized = normalizeOriginUrl(originResult.stdout);\n projectId = normalized ? `origin:${stableHash(normalized)}` : `root:${stableHash(rootPath)}`;\n } else {\n projectId = `root:${stableHash(rootPath)}`;\n }\n\n // 4. Default branch — best effort.\n const headRef = await invoke(rootPath, [\"symbolic-ref\", \"--quiet\", \"refs/remotes/origin/HEAD\"]);\n let defaultBranch: string | null = null;\n if (headRef.exitCode === 0) {\n const raw = headRef.stdout.trim();\n const prefix = \"refs/remotes/origin/\";\n if (raw.startsWith(prefix)) {\n const candidate = raw.slice(prefix.length);\n if (candidate) defaultBranch = candidate;\n }\n }\n\n return {\n projectId,\n branch,\n rootPath,\n defaultBranch,\n };\n } catch {\n if (options.abortSignal?.aborted) {\n throw options.abortSignal.reason instanceof Error\n ? options.abortSignal.reason\n : abortError(\"git context resolution aborted\");\n }\n if (options.deadlineMs !== undefined && (options.now ?? Date.now)() >= options.deadlineMs) {\n throw abortError(\"git context resolution deadline exceeded\");\n }\n return null;\n }\n}\n\n/** Process-wide cache for per-request callers (recall scope). */\nexport const sharedGitContextCache = new GitContextCache();\n\n/**\n * Session-attach callers snapshot the branch once per session, so they must\n * read a repo fresh; they only skip repeat probes of non-repo directories.\n */\nexport const sharedNonRepoGitContextCache = new GitContextCache({ cacheRepos: false });\n\n/**\n * A probe verdict: `context` is the resolved context or `null`, and\n * `conclusive` tells the two nulls apart. `conclusive: true` means git\n * answered (a real repo or a confirmed non-repo); `conclusive: false` means\n * the probe itself failed — spawn error, timeout, or an invoker throw —\n * so the null carries no evidence about the directory.\n */\nexport interface GitContextProbeResult {\n context: GitContext | null;\n conclusive: boolean;\n}\n\n/**\n * `resolveGitContext` with the inconclusive distinction surfaced: the\n * existing cache path already refuses to cache timeout/spawn-failure\n * results, so a cached `null` is conclusive by construction. Callers that\n * clear state on `null` (the plugin's coding-context sync) must only do so\n * on a conclusive verdict.\n */\nexport async function probeGitContext(\n cwd: string,\n options: ResolveGitContextOptions = {},\n): Promise<GitContextProbeResult> {\n let inconclusive = false;\n const inner = options.invoker ?? defaultGitInvoker();\n const invoker: GitInvoker = async (probeCwd, args, invokeOptions) => {\n let result: GitInvokeResult;\n try {\n result = await inner(probeCwd, args, invokeOptions);\n } catch (err) {\n inconclusive = true;\n throw err;\n }\n if (result.exitCode === GIT_TIMEOUT_EXIT_CODE || result.exitCode === GIT_SPAWN_ERROR_EXIT_CODE) {\n inconclusive = true;\n } else if (\n args[0] === \"rev-parse\" && args.includes(\"--show-toplevel\")\n && result.exitCode !== 0 && result.stderr !== undefined && !NOT_A_GIT_REPOSITORY.test(result.stderr)\n ) {\n // The repo probe's nonzero exit decides \"not a repo\", but dubious\n // ownership, a corrupt .git or an unreadable cwd exit the same 128 —\n // only git's own \"not a repository\" answer is conclusive.\n inconclusive = true;\n }\n return result;\n };\n const context = await resolveGitContext(cwd, { ...options, invoker });\n return { context, conclusive: !inconclusive };\n}\n"],"mappings":";;;;;;;;;;;;AAuBA,SAAS,OAAO,UAAU,YAAY;AACtC,OAAO,UAAU;AA8EjB,IAAM,yBAAyB;AAC/B,IAAM,wBAAwB;AAC9B,IAAM,4BAA4B;AAClC,IAAM,uBAAuB;AAEtB,SAAS,wBAAwC;AACtD,SAAO,CAAC,KAAa,SAAmB;AACtC,UAAM,SAAS,kBAAkB,OAAO,MAAM;AAAA,MAC5C;AAAA,MACA,UAAU;AAAA,MACV,SAAS;AAAA,MACT,OAAO;AAAA,IACT,CAAC;AACD,QAAI,OAAO,MAAO,QAAO,EAAE,QAAQ,IAAI,UAAU,0BAA0B;AAC3E,WAAO;AAAA,MACL,QAAQ,OAAO,OAAO,WAAW,WAAW,OAAO,SAAS;AAAA,MAC5D,QAAQ,OAAO,UAAU;AAAA,MACzB,UAAU,OAAO,OAAO,WAAW,WAAW,OAAO,SAAS;AAAA,IAChE;AAAA,EACF;AACF;AAEO,SAAS,oBAAgC;AAC9C,SAAO,CAAC,KAAK,MAAM,UAAU,CAAC,MAAM;AAClC,QAAI,QAAQ,aAAa,SAAS;AAChC,YAAM,QAAQ,YAAY,kBAAkB,QACxC,QAAQ,YAAY,SACpB,WAAW,gCAAgC;AAAA,IACjD;AAEA,UAAM,QAAQ,cAAc,OAAO,MAAM;AAAA,MACvC;AAAA,MACA,UAAU;AAAA,MACV,OAAO;AAAA,MACP,OAAO,CAAC,UAA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|
2
2
|
defineOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KIUFT2WZ.js";
|
|
4
4
|
import {
|
|
5
5
|
EngramAccessInputError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MGKCKY7X.js";
|
|
7
7
|
|
|
8
8
|
// src/memory-browse-operations.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -71,4 +71,4 @@ defineOperation({
|
|
|
71
71
|
})
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
//# sourceMappingURL=chunk-
|
|
74
|
+
//# sourceMappingURL=chunk-4IMOGAFF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OWM2VWNX.js";
|
|
4
4
|
import {
|
|
5
5
|
countRecallTokenOverlap,
|
|
6
6
|
normalizeRecallTokens
|
|
@@ -119,4 +119,4 @@ export {
|
|
|
119
119
|
compareVerifiedSemanticRuleResults,
|
|
120
120
|
searchVerifiedSemanticRules
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=chunk-
|
|
122
|
+
//# sourceMappingURL=chunk-4L25GAYL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
yieldToEventLoop
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IDYYGOOQ.js";
|
|
4
4
|
import {
|
|
5
5
|
throwIfAborted
|
|
6
6
|
} from "./chunk-R2MBW2S4.js";
|
|
@@ -72,4 +72,4 @@ export {
|
|
|
72
72
|
tokenizeArtifactSearchText,
|
|
73
73
|
selectArtifactMatches
|
|
74
74
|
};
|
|
75
|
-
//# sourceMappingURL=chunk-
|
|
75
|
+
//# sourceMappingURL=chunk-4WCLZBM2.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-ESG6ITGP.js";
|
|
5
5
|
import {
|
|
6
6
|
EngramAccessInputError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MGKCKY7X.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
10
10
|
} from "./chunk-3WCASNQZ.js";
|
|
@@ -207,4 +207,4 @@ export {
|
|
|
207
207
|
runScopedMemorySearch,
|
|
208
208
|
memorySearchThroughScope
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
210
|
+
//# sourceMappingURL=chunk-5MA6ZQ4Z.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
listNamespaces
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3YOX2BQD.js";
|
|
4
4
|
import {
|
|
5
5
|
corpusScanWorker
|
|
6
6
|
} from "./chunk-4LZ7SVKM.js";
|
|
7
7
|
import {
|
|
8
8
|
capabilityAllowsNamespace
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O544TUJO.js";
|
|
10
10
|
|
|
11
11
|
// src/corpus-watermark.ts
|
|
12
12
|
import { createHash } from "crypto";
|
|
@@ -292,4 +292,4 @@ export {
|
|
|
292
292
|
computeServiceCorpusWatermarks,
|
|
293
293
|
computeServiceCorpusCensus
|
|
294
294
|
};
|
|
295
|
-
//# sourceMappingURL=chunk-
|
|
295
|
+
//# sourceMappingURL=chunk-5QDTZIGH.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EngramAccessInputError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MGKCKY7X.js";
|
|
4
4
|
|
|
5
5
|
// src/recall-navigation-http-glue.ts
|
|
6
6
|
var VALID_RELATIONS = [
|
|
@@ -95,4 +95,4 @@ async function maybeRespondRecallNavigation(req, res, pathname, method, enforceT
|
|
|
95
95
|
export {
|
|
96
96
|
maybeRespondRecallNavigation
|
|
97
97
|
};
|
|
98
|
-
//# sourceMappingURL=chunk-
|
|
98
|
+
//# sourceMappingURL=chunk-5VMRM2X3.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-5HFVWYHL.js";
|
|
4
4
|
import {
|
|
5
5
|
isGenericRecallExcludedPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YY57TRKN.js";
|
|
7
7
|
import {
|
|
8
8
|
planRecallMode
|
|
9
9
|
} from "./chunk-CSAKJVXW.js";
|
|
@@ -132,4 +132,4 @@ async function findExpectedMemory(orchestrator, namespaces, expect) {
|
|
|
132
132
|
export {
|
|
133
133
|
runRecallWhy
|
|
134
134
|
};
|
|
135
|
-
//# sourceMappingURL=chunk-
|
|
135
|
+
//# sourceMappingURL=chunk-6QWFZ3X5.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bufferTurnIdentityKey,
|
|
3
3
|
subtractBufferTurns
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MEVBSF6T.js";
|
|
5
5
|
import {
|
|
6
6
|
withHeldFileLock
|
|
7
7
|
} from "./chunk-EBV6VXKF.js";
|
|
@@ -1302,4 +1302,4 @@ export {
|
|
|
1302
1302
|
legacyStateToEntries,
|
|
1303
1303
|
BufferSessionFiles
|
|
1304
1304
|
};
|
|
1305
|
-
//# sourceMappingURL=chunk-
|
|
1305
|
+
//# sourceMappingURL=chunk-7F7HRJI2.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NoopSearchBackend
|
|
3
|
+
} from "./chunk-CYEPCZN5.js";
|
|
1
4
|
import {
|
|
2
5
|
OramaBackend
|
|
3
6
|
} from "./chunk-DLR3SBOM.js";
|
|
@@ -13,18 +16,15 @@ import {
|
|
|
13
16
|
import {
|
|
14
17
|
MeilisearchBackend
|
|
15
18
|
} from "./chunk-66DUCUOC.js";
|
|
16
|
-
import {
|
|
17
|
-
NoopSearchBackend
|
|
18
|
-
} from "./chunk-CYEPCZN5.js";
|
|
19
19
|
import {
|
|
20
20
|
createConversationIndexBackend
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WQUGCOKF.js";
|
|
22
22
|
import {
|
|
23
23
|
FaissConversationIndexAdapter
|
|
24
24
|
} from "./chunk-F4TWWUMP.js";
|
|
25
25
|
import {
|
|
26
26
|
QmdClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4D2EY4WM.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveIndexingCapabilities,
|
|
30
30
|
resolvePipelineProcessingCapabilities,
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
createConversationSearchBackend,
|
|
180
180
|
createConversationIndexRuntime
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-7OCKK5M5.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadTokenStore,
|
|
6
6
|
revokeToken,
|
|
7
7
|
saveTokenStore
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SMDZTJ2D.js";
|
|
9
9
|
import {
|
|
10
10
|
getConnectorsDir,
|
|
11
11
|
getRegistryPath
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
coerceBool,
|
|
18
18
|
coerceInstallExtension
|
|
19
19
|
} from "./chunk-PQVCH2AE.js";
|
|
20
|
-
import {
|
|
21
|
-
resolveConversationContextCapabilities
|
|
22
|
-
} from "./chunk-C5LWPYS3.js";
|
|
23
20
|
import {
|
|
24
21
|
launchProcessSync
|
|
25
22
|
} from "./chunk-ZEFVK7XC.js";
|
|
23
|
+
import {
|
|
24
|
+
resolveConversationContextCapabilities
|
|
25
|
+
} from "./chunk-C5LWPYS3.js";
|
|
26
26
|
import {
|
|
27
27
|
expandTildePath
|
|
28
28
|
} from "./chunk-6KH5NLQS.js";
|
|
@@ -3407,4 +3407,4 @@ export {
|
|
|
3407
3407
|
resolveWeCloneProxyConfigPath,
|
|
3408
3408
|
buildWeCloneProxyConfig
|
|
3409
3409
|
};
|
|
3410
|
-
//# sourceMappingURL=chunk-
|
|
3410
|
+
//# sourceMappingURL=chunk-7QF26EWO.js.map
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
listMemoryGovernanceRuns,
|
|
6
6
|
readMemoryGovernanceRunArtifact
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZWDDY4WF.js";
|
|
8
8
|
import {
|
|
9
9
|
loadPersistedNativeKnowledgeChunks
|
|
10
10
|
} from "./chunk-2DQ2XREU.js";
|
|
11
11
|
import {
|
|
12
12
|
StorageManager
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OWM2VWNX.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeProjectionPreview,
|
|
16
16
|
normalizeProjectionTags
|
|
@@ -1156,4 +1156,4 @@ export {
|
|
|
1156
1156
|
verifyMemoryProjection,
|
|
1157
1157
|
repairMemoryProjection
|
|
1158
1158
|
};
|
|
1159
|
-
//# sourceMappingURL=chunk-
|
|
1159
|
+
//# sourceMappingURL=chunk-7VIJUZYW.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseEntityFile
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OWM2VWNX.js";
|
|
4
4
|
import {
|
|
5
5
|
inferMemoryStatus
|
|
6
6
|
} from "./chunk-7RJUVTVF.js";
|
|
7
7
|
import {
|
|
8
8
|
EngramAccessInputError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-MGKCKY7X.js";
|
|
10
10
|
|
|
11
11
|
// src/who-knows.ts
|
|
12
12
|
var WHO_KNOWS_DEFAULT_LIMIT = 5;
|
|
@@ -253,4 +253,4 @@ export {
|
|
|
253
253
|
WHO_KNOWS_MCP_TOOLS,
|
|
254
254
|
handleWhoKnowsHttpQuery
|
|
255
255
|
};
|
|
256
|
-
//# sourceMappingURL=chunk-
|
|
256
|
+
//# sourceMappingURL=chunk-A5UOREWD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
gateReportByCensus,
|
|
3
3
|
pollReplicaPeers
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2TJSGIKT.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveReplicaPeersConfig
|
|
7
7
|
} from "./chunk-WNIUPHWV.js";
|
|
@@ -67,4 +67,4 @@ async function summarizeReplicaDivergence(rawConfig, localWatermarks, options =
|
|
|
67
67
|
export {
|
|
68
68
|
summarizeReplicaDivergence
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-AQZL7JBZ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSearchBackend
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7OCKK5M5.js";
|
|
4
4
|
import {
|
|
5
5
|
reportSearchDegradation
|
|
6
6
|
} from "./chunk-B7HYXVME.js";
|
|
@@ -572,4 +572,4 @@ export {
|
|
|
572
572
|
normalizeQmdResultPath,
|
|
573
573
|
resolveNamespaceResultPath
|
|
574
574
|
};
|
|
575
|
-
//# sourceMappingURL=chunk-
|
|
575
|
+
//# sourceMappingURL=chunk-AVWOULJH.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RECALL_DISCLOSURE_LEVELS,
|
|
3
3
|
isRecallDisclosure
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N7AIFTSH.js";
|
|
5
5
|
|
|
6
6
|
// src/recall-navigate-disclosure.ts
|
|
7
7
|
function disclosureRank(level) {
|
|
@@ -27,4 +27,4 @@ export {
|
|
|
27
27
|
disclosureRank,
|
|
28
28
|
planDisclosureStep
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-B3M56D2A.js.map
|