@remnic/core 10.0.190 → 10.0.192
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/abstraction-nodes.js +4 -4
- package/dist/access-admin-ops-surface.js +76 -75
- package/dist/access-cli.js +76 -75
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush-preempt.js +76 -75
- package/dist/access-extraction-force-flush.js +76 -75
- package/dist/access-http-briefing.js +76 -75
- package/dist/access-http-query.js +76 -75
- package/dist/access-http.js +76 -75
- package/dist/access-identity-continuity-surface.js +76 -75
- package/dist/access-lcm-surface.js +76 -75
- package/dist/access-mcp.js +76 -75
- package/dist/access-observe-write-surface.js +76 -75
- package/dist/access-operations-batch.js +76 -75
- package/dist/access-operations.js +76 -75
- package/dist/access-recall-concurrency.js +76 -75
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +76 -75
- package/dist/access-recall-surface.js +76 -75
- package/dist/access-service.js +76 -75
- package/dist/active-recall.js +16 -16
- package/dist/admin/admin-surfaces.d.ts +11 -0
- package/dist/admin/admin-surfaces.d.ts.map +1 -1
- package/dist/admin/admin-surfaces.js +43 -0
- package/dist/briefing.js +16 -16
- package/dist/buffer-persistence.d.ts +7 -0
- package/dist/buffer-persistence.d.ts.map +1 -1
- package/dist/buffer-persistence.js +1 -1
- package/dist/buffer.d.ts +2 -0
- package/dist/buffer.d.ts.map +1 -1
- package/dist/buffer.js +6 -6
- package/dist/{capsule-merge-BADOICNP.js → capsule-merge-3FARYIHP.js} +5 -5
- package/dist/causal-consolidation.js +17 -17
- package/dist/{chunk-IMSLPQJB.js → chunk-2QW5HPKU.js} +2 -2
- package/dist/{chunk-KNYUEYB6.js → chunk-2YJ2ST23.js} +2 -2
- package/dist/{chunk-X3ERYOLO.js → chunk-3BICT225.js} +2 -2
- package/dist/{chunk-UWKHLWUE.js → chunk-3RZ4GDOH.js} +2 -2
- package/dist/{chunk-ODIBCZLG.js → chunk-3YID7KZ6.js} +2 -2
- package/dist/{chunk-56BNHKZM.js → chunk-4EAVEDLG.js} +9 -9
- package/dist/{chunk-TLRIRISJ.js → chunk-4LCA2GEX.js} +2 -2
- package/dist/{chunk-4N33L4HY.js → chunk-5GIYIYJI.js} +2 -2
- package/dist/{chunk-65DWWJKI.js → chunk-75K6DRPN.js} +12 -9
- package/dist/chunk-75K6DRPN.js.map +1 -0
- package/dist/{chunk-ZDLVHGIC.js → chunk-7EP4FURO.js} +2 -2
- package/dist/{chunk-CAUADFDM.js → chunk-7SOKOEAZ.js} +2 -2
- package/dist/{chunk-7Q74DD2W.js → chunk-7V6GNQC2.js} +2 -2
- package/dist/{chunk-QXHWOUS6.js → chunk-AALJHIKH.js} +3 -3
- package/dist/{chunk-ATPY63F5.js → chunk-AJ7JHHRY.js} +2 -2
- package/dist/{chunk-B7GZL7PR.js → chunk-ARD2TEY2.js} +4 -4
- package/dist/{chunk-QSVWIKNY.js → chunk-BDFSVUUZ.js} +9 -7
- package/dist/chunk-BDFSVUUZ.js.map +1 -0
- package/dist/{chunk-3DADRUGW.js → chunk-BGA7S5EF.js} +3 -3
- package/dist/{chunk-RPOG6HLI.js → chunk-CJSTQNE5.js} +2 -2
- package/dist/{chunk-VQQZJ6KJ.js → chunk-DYUPSTCV.js} +3 -3
- package/dist/{chunk-E5QI6C6C.js → chunk-E3LGAZJC.js} +3 -3
- package/dist/{chunk-TAPF7T26.js → chunk-EEA2RM4B.js} +2 -2
- package/dist/{chunk-BL7WULM5.js → chunk-FDO7ITP6.js} +2 -2
- package/dist/{chunk-K3JGILZC.js → chunk-FGFU6J26.js} +3 -3
- package/dist/{chunk-6TIQLG7I.js → chunk-FKHXXL42.js} +2 -2
- package/dist/{chunk-QPD7EYGI.js → chunk-G2MS56KM.js} +2 -2
- package/dist/{chunk-2I3ETW3G.js → chunk-GH7IKABD.js} +2 -2
- package/dist/{chunk-KVTUUU7H.js → chunk-GYCUX3N4.js} +2 -2
- package/dist/{chunk-2VNMSEZR.js → chunk-HEJFE3BC.js} +3 -3
- package/dist/{chunk-KM4QO4LN.js → chunk-HLQANATZ.js} +2 -2
- package/dist/{chunk-AXSQGJSG.js → chunk-J7RQ3RP7.js} +11 -11
- package/dist/{chunk-H442UKDV.js → chunk-JITK24KX.js} +7 -7
- package/dist/{chunk-EJYUAN5F.js → chunk-K6UXWVQ6.js} +2 -2
- package/dist/{chunk-RVODERA5.js → chunk-KJ65WZHB.js} +2 -2
- package/dist/{chunk-QGT5KNQT.js → chunk-KOVQZJ27.js} +2 -2
- package/dist/{chunk-O6QSBI3U.js → chunk-KZ4BJRGQ.js} +2 -2
- package/dist/{chunk-D3FP4JQI.js → chunk-LR6LWX33.js} +4 -4
- package/dist/{chunk-NTS2RCQK.js → chunk-NAULI3EG.js} +2 -2
- package/dist/{chunk-V5W67PQV.js → chunk-NOKHMWMW.js} +4 -4
- package/dist/{chunk-7X6EZ2QB.js → chunk-ODI4K32P.js} +5 -5
- package/dist/{chunk-H7USCTPQ.js → chunk-OLD2GKQJ.js} +3 -3
- package/dist/{chunk-D7HOJFDS.js → chunk-ONSEODO2.js} +2 -2
- package/dist/{chunk-R3YMWUF3.js → chunk-P3IAZQPS.js} +2 -2
- package/dist/{chunk-LL6WEMTC.js → chunk-P3OONWJJ.js} +2 -2
- package/dist/chunk-P3OONWJJ.js.map +1 -0
- package/dist/{chunk-ZG4GNPRE.js → chunk-PBE7NFB5.js} +5 -5
- package/dist/{chunk-7KC6LT7U.js → chunk-PSQ347YP.js} +3 -3
- package/dist/{chunk-TQODBIMW.js → chunk-QFKNIKUF.js} +2 -2
- package/dist/{chunk-RFVX4WE7.js → chunk-QIPRDRGM.js} +1 -1
- package/dist/chunk-QIPRDRGM.js.map +1 -0
- package/dist/{chunk-C6Y2YHJL.js → chunk-QZMGZBTF.js} +2 -2
- package/dist/{chunk-PCGBESAN.js → chunk-SKJM4PKE.js} +2 -2
- package/dist/{chunk-T7R42MWB.js → chunk-STSORBX5.js} +2 -2
- package/dist/{chunk-XWPYK5T4.js → chunk-T765HQ5U.js} +3 -3
- package/dist/{chunk-RFEQ7DQN.js → chunk-TDG5NZAZ.js} +2 -2
- package/dist/{chunk-DLPS5YP3.js → chunk-TJV5HGSC.js} +4 -4
- package/dist/{chunk-YVXR7CPS.js → chunk-TWYYUMYO.js} +2 -2
- package/dist/{chunk-6MDHK6NO.js → chunk-TZ7ZA2LM.js} +2 -2
- package/dist/{chunk-ABPOW3SX.js → chunk-UAEJKURK.js} +92 -493
- package/dist/chunk-UAEJKURK.js.map +1 -0
- package/dist/{chunk-6OHCNTKU.js → chunk-UH2VY2QQ.js} +3 -3
- package/dist/{chunk-XQF2KLV5.js → chunk-VHQNJW4Q.js} +2 -2
- package/dist/{chunk-K6BS5RB4.js → chunk-WEI6HEUX.js} +11 -6
- package/dist/chunk-WEI6HEUX.js.map +1 -0
- package/dist/{chunk-3IA2SUWM.js → chunk-WRVKI6ZO.js} +2 -2
- package/dist/chunk-XC4PRJWM.js +593 -0
- package/dist/chunk-XC4PRJWM.js.map +1 -0
- package/dist/{chunk-R5S57GRK.js → chunk-XSRZM6CQ.js} +38 -13
- package/dist/chunk-XSRZM6CQ.js.map +1 -0
- package/dist/{chunk-OA7YDB6A.js → chunk-XZLCAL5O.js} +2 -2
- package/dist/{chunk-CIAQK2OU.js → chunk-XZMQLON4.js} +430 -292
- package/dist/chunk-XZMQLON4.js.map +1 -0
- package/dist/{chunk-HL53XYHC.js → chunk-YCJJODER.js} +5 -5
- package/dist/chunk-YCJJODER.js.map +1 -0
- package/dist/{chunk-GGQ3CJVH.js → chunk-YTT6XJNX.js} +4 -4
- package/dist/{chunk-A32EBVCZ.js → chunk-Z6EFSXU3.js} +2 -2
- package/dist/{chunk-GRX5BE73.js → chunk-ZNCCX7P6.js} +2 -2
- package/dist/cli.js +76 -75
- package/dist/coding/export-okf-codegraph.js +15 -15
- package/dist/compounding/engine.js +17 -17
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -16
- package/dist/connectors/codex-materialize-runner.js +16 -16
- package/dist/connectors/index.js +16 -16
- package/dist/consolidation-provenance-check.js +5 -5
- package/dist/consolidation-undo.js +4 -4
- package/dist/contradiction/index.js +3 -3
- package/dist/convergence-refresh.js +18 -18
- package/dist/corpus-watermark.js +18 -18
- package/dist/cue-anchors.js +5 -5
- package/dist/{entity-canonical-id-migration-74IDJFPB.js → entity-canonical-id-migration-46EMEXTB.js} +4 -4
- package/dist/entity-retrieval.d.ts.map +1 -1
- package/dist/entity-retrieval.js +16 -16
- package/dist/explicit-capture.js +76 -75
- package/dist/extraction.js +20 -20
- package/dist/harmonic-construction.js +6 -6
- package/dist/harmonic-graph-version.js +3 -3
- package/dist/harmonic-retrieval.d.ts +15 -0
- package/dist/harmonic-retrieval.d.ts.map +1 -1
- package/dist/harmonic-retrieval.js +21 -19
- package/dist/index.js +97 -96
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.js +5 -5
- package/dist/location/index.js +17 -17
- package/dist/maintenance/memory-governance.js +16 -16
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +16 -16
- package/dist/maintenance/rebuild-memory-projection-runner.js +18 -18
- package/dist/maintenance/rebuild-memory-projection.js +17 -17
- package/dist/memory-browse.js +5 -5
- package/dist/memory-cache.d.ts +44 -3
- package/dist/memory-cache.d.ts.map +1 -1
- package/dist/memory-cache.js +9 -1
- package/dist/memory-corpus-version.js +2 -2
- package/dist/namespaces/migrate.js +17 -17
- package/dist/namespaces/search.js +9 -9
- package/dist/namespaces/storage.js +16 -16
- package/dist/operator-doctor-corpus.js +19 -19
- package/dist/operator-toolkit.js +24 -24
- package/dist/orchestration/backlog-scheduler.js +77 -76
- package/dist/orchestration/backlog-scheduler.js.map +1 -1
- package/dist/orchestration/buffer-drain-runner.js +77 -76
- package/dist/orchestration/maintenance.js +24 -24
- package/dist/orchestration/recall-internal.d.ts.map +1 -1
- package/dist/orchestration/turn-ingestion-buffered.d.ts.map +1 -1
- package/dist/orchestrator.js +76 -75
- package/dist/page-versioning.js +4 -4
- package/dist/qmd.js +2 -2
- 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.js +76 -75
- package/dist/recall-state-view-admission.js +5 -5
- package/dist/recall-why-service.js +5 -5
- 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/{resolution-RWIGFH2W.js → resolution-4QPPLDEN.js} +4 -4
- package/dist/resolution-4QPPLDEN.js.map +1 -0
- package/dist/resume-bundles.js +17 -17
- package/dist/search/factory.js +8 -8
- package/dist/search/index.js +13 -13
- 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 +17 -17
- package/dist/semantic-rule-promotion.js +16 -16
- package/dist/semantic-rule-verifier.js +16 -16
- package/dist/source-agent-qualifier.js +19 -19
- package/dist/standup/build.js +16 -16
- package/dist/storage/entity-listing.d.ts +20 -0
- package/dist/storage/entity-listing.d.ts.map +1 -0
- package/dist/storage/entity-store.d.ts +5 -0
- package/dist/storage/entity-store.d.ts.map +1 -1
- package/dist/storage/hot-cache-validation.d.ts +60 -0
- package/dist/storage/hot-cache-validation.d.ts.map +1 -0
- package/dist/storage.d.ts +2 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +15 -15
- package/dist/transfer/capsule-import.js +5 -5
- package/dist/transfer/export-okf.js +16 -16
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +16 -16
- package/dist/who-knows-cli.js +17 -17
- package/dist/who-knows.js +16 -16
- package/package.json +12 -2
- package/src/admin/admin-surfaces.test.ts +171 -0
- package/src/admin/admin-surfaces.ts +215 -2
- package/src/buffer-large-session-defer.test.ts +81 -0
- package/src/buffer-persistence.ts +8 -1
- package/src/buffer.ts +9 -4
- package/src/config.test.ts +9 -0
- package/src/config.ts +3 -6
- package/src/entity-recall-hot-cache.test.ts +116 -0
- package/src/entity-retrieval.ts +22 -4
- package/src/harmonic-graph-cache.test.ts +28 -9
- package/src/harmonic-retrieval.ts +20 -4
- package/src/memory-cache-hot.test.ts +47 -0
- package/src/memory-cache.ts +96 -17
- package/src/observe-flush-force-keys.test.ts +130 -0
- package/src/orchestration/recall-internal.ts +1 -0
- package/src/orchestration/turn-ingestion-buffered.test.ts +6 -2
- package/src/orchestration/turn-ingestion-buffered.ts +5 -1
- package/src/storage/entity-listing.ts +73 -0
- package/src/storage/entity-store.ts +25 -26
- package/src/storage/hot-cache-validation.ts +149 -0
- package/src/storage-contract/cache-coherence.test.ts +42 -5
- package/src/storage-hot-cache-stat-validate.test.ts +112 -0
- package/src/storage.ts +58 -44
- package/src/types.ts +2 -0
- package/dist/chunk-65DWWJKI.js.map +0 -1
- package/dist/chunk-ABPOW3SX.js.map +0 -1
- package/dist/chunk-CIAQK2OU.js.map +0 -1
- package/dist/chunk-HL53XYHC.js.map +0 -1
- package/dist/chunk-K6BS5RB4.js.map +0 -1
- package/dist/chunk-LL6WEMTC.js.map +0 -1
- package/dist/chunk-QSVWIKNY.js.map +0 -1
- package/dist/chunk-R5S57GRK.js.map +0 -1
- package/dist/chunk-RFVX4WE7.js.map +0 -1
- /package/dist/{entity-canonical-id-migration-74IDJFPB.js.map → admin/admin-surfaces.js.map} +0 -0
- /package/dist/{capsule-merge-BADOICNP.js.map → capsule-merge-3FARYIHP.js.map} +0 -0
- /package/dist/{chunk-IMSLPQJB.js.map → chunk-2QW5HPKU.js.map} +0 -0
- /package/dist/{chunk-KNYUEYB6.js.map → chunk-2YJ2ST23.js.map} +0 -0
- /package/dist/{chunk-X3ERYOLO.js.map → chunk-3BICT225.js.map} +0 -0
- /package/dist/{chunk-UWKHLWUE.js.map → chunk-3RZ4GDOH.js.map} +0 -0
- /package/dist/{chunk-ODIBCZLG.js.map → chunk-3YID7KZ6.js.map} +0 -0
- /package/dist/{chunk-56BNHKZM.js.map → chunk-4EAVEDLG.js.map} +0 -0
- /package/dist/{chunk-TLRIRISJ.js.map → chunk-4LCA2GEX.js.map} +0 -0
- /package/dist/{chunk-4N33L4HY.js.map → chunk-5GIYIYJI.js.map} +0 -0
- /package/dist/{chunk-ZDLVHGIC.js.map → chunk-7EP4FURO.js.map} +0 -0
- /package/dist/{chunk-CAUADFDM.js.map → chunk-7SOKOEAZ.js.map} +0 -0
- /package/dist/{chunk-7Q74DD2W.js.map → chunk-7V6GNQC2.js.map} +0 -0
- /package/dist/{chunk-QXHWOUS6.js.map → chunk-AALJHIKH.js.map} +0 -0
- /package/dist/{chunk-ATPY63F5.js.map → chunk-AJ7JHHRY.js.map} +0 -0
- /package/dist/{chunk-B7GZL7PR.js.map → chunk-ARD2TEY2.js.map} +0 -0
- /package/dist/{chunk-3DADRUGW.js.map → chunk-BGA7S5EF.js.map} +0 -0
- /package/dist/{chunk-RPOG6HLI.js.map → chunk-CJSTQNE5.js.map} +0 -0
- /package/dist/{chunk-VQQZJ6KJ.js.map → chunk-DYUPSTCV.js.map} +0 -0
- /package/dist/{chunk-E5QI6C6C.js.map → chunk-E3LGAZJC.js.map} +0 -0
- /package/dist/{chunk-TAPF7T26.js.map → chunk-EEA2RM4B.js.map} +0 -0
- /package/dist/{chunk-BL7WULM5.js.map → chunk-FDO7ITP6.js.map} +0 -0
- /package/dist/{chunk-K3JGILZC.js.map → chunk-FGFU6J26.js.map} +0 -0
- /package/dist/{chunk-6TIQLG7I.js.map → chunk-FKHXXL42.js.map} +0 -0
- /package/dist/{chunk-QPD7EYGI.js.map → chunk-G2MS56KM.js.map} +0 -0
- /package/dist/{chunk-2I3ETW3G.js.map → chunk-GH7IKABD.js.map} +0 -0
- /package/dist/{chunk-KVTUUU7H.js.map → chunk-GYCUX3N4.js.map} +0 -0
- /package/dist/{chunk-2VNMSEZR.js.map → chunk-HEJFE3BC.js.map} +0 -0
- /package/dist/{chunk-KM4QO4LN.js.map → chunk-HLQANATZ.js.map} +0 -0
- /package/dist/{chunk-AXSQGJSG.js.map → chunk-J7RQ3RP7.js.map} +0 -0
- /package/dist/{chunk-H442UKDV.js.map → chunk-JITK24KX.js.map} +0 -0
- /package/dist/{chunk-EJYUAN5F.js.map → chunk-K6UXWVQ6.js.map} +0 -0
- /package/dist/{chunk-RVODERA5.js.map → chunk-KJ65WZHB.js.map} +0 -0
- /package/dist/{chunk-QGT5KNQT.js.map → chunk-KOVQZJ27.js.map} +0 -0
- /package/dist/{chunk-O6QSBI3U.js.map → chunk-KZ4BJRGQ.js.map} +0 -0
- /package/dist/{chunk-D3FP4JQI.js.map → chunk-LR6LWX33.js.map} +0 -0
- /package/dist/{chunk-NTS2RCQK.js.map → chunk-NAULI3EG.js.map} +0 -0
- /package/dist/{chunk-V5W67PQV.js.map → chunk-NOKHMWMW.js.map} +0 -0
- /package/dist/{chunk-7X6EZ2QB.js.map → chunk-ODI4K32P.js.map} +0 -0
- /package/dist/{chunk-H7USCTPQ.js.map → chunk-OLD2GKQJ.js.map} +0 -0
- /package/dist/{chunk-D7HOJFDS.js.map → chunk-ONSEODO2.js.map} +0 -0
- /package/dist/{chunk-R3YMWUF3.js.map → chunk-P3IAZQPS.js.map} +0 -0
- /package/dist/{chunk-ZG4GNPRE.js.map → chunk-PBE7NFB5.js.map} +0 -0
- /package/dist/{chunk-7KC6LT7U.js.map → chunk-PSQ347YP.js.map} +0 -0
- /package/dist/{chunk-TQODBIMW.js.map → chunk-QFKNIKUF.js.map} +0 -0
- /package/dist/{chunk-C6Y2YHJL.js.map → chunk-QZMGZBTF.js.map} +0 -0
- /package/dist/{chunk-PCGBESAN.js.map → chunk-SKJM4PKE.js.map} +0 -0
- /package/dist/{chunk-T7R42MWB.js.map → chunk-STSORBX5.js.map} +0 -0
- /package/dist/{chunk-XWPYK5T4.js.map → chunk-T765HQ5U.js.map} +0 -0
- /package/dist/{chunk-RFEQ7DQN.js.map → chunk-TDG5NZAZ.js.map} +0 -0
- /package/dist/{chunk-DLPS5YP3.js.map → chunk-TJV5HGSC.js.map} +0 -0
- /package/dist/{chunk-YVXR7CPS.js.map → chunk-TWYYUMYO.js.map} +0 -0
- /package/dist/{chunk-6MDHK6NO.js.map → chunk-TZ7ZA2LM.js.map} +0 -0
- /package/dist/{chunk-6OHCNTKU.js.map → chunk-UH2VY2QQ.js.map} +0 -0
- /package/dist/{chunk-XQF2KLV5.js.map → chunk-VHQNJW4Q.js.map} +0 -0
- /package/dist/{chunk-3IA2SUWM.js.map → chunk-WRVKI6ZO.js.map} +0 -0
- /package/dist/{chunk-OA7YDB6A.js.map → chunk-XZLCAL5O.js.map} +0 -0
- /package/dist/{chunk-GGQ3CJVH.js.map → chunk-YTT6XJNX.js.map} +0 -0
- /package/dist/{chunk-A32EBVCZ.js.map → chunk-Z6EFSXU3.js.map} +0 -0
- /package/dist/{chunk-GRX5BE73.js.map → chunk-ZNCCX7P6.js.map} +0 -0
- /package/dist/{resolution-RWIGFH2W.js.map → entity-canonical-id-migration-46EMEXTB.js.map} +0 -0
|
@@ -16,6 +16,9 @@ import {
|
|
|
16
16
|
syncWearableSource,
|
|
17
17
|
wearableSourceLabel
|
|
18
18
|
} from "./chunk-7KTORRIK.js";
|
|
19
|
+
import {
|
|
20
|
+
chatgptReplayNormalizer
|
|
21
|
+
} from "./chunk-MMACM5G2.js";
|
|
19
22
|
import {
|
|
20
23
|
claudeReplayNormalizer
|
|
21
24
|
} from "./chunk-54BGIBCR.js";
|
|
@@ -31,12 +34,12 @@ import {
|
|
|
31
34
|
WorkStorage
|
|
32
35
|
} from "./chunk-MPC7TYTZ.js";
|
|
33
36
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
exportJsonBundle
|
|
38
|
+
} from "./chunk-UP6MOYCB.js";
|
|
36
39
|
import {
|
|
37
40
|
exportOkfBundle,
|
|
38
41
|
parseIncludeStatus
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-EEA2RM4B.js";
|
|
40
43
|
import {
|
|
41
44
|
exportSqlite
|
|
42
45
|
} from "./chunk-BV2TIZ4F.js";
|
|
@@ -60,10 +63,7 @@ import {
|
|
|
60
63
|
} from "./chunk-765K3SAT.js";
|
|
61
64
|
import {
|
|
62
65
|
importCapsule
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import {
|
|
65
|
-
exportJsonBundle
|
|
66
|
-
} from "./chunk-UP6MOYCB.js";
|
|
66
|
+
} from "./chunk-NOKHMWMW.js";
|
|
67
67
|
import {
|
|
68
68
|
isSharedContextWriteInputError,
|
|
69
69
|
parseSharedWriteOutputControls
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
buildStandup,
|
|
73
73
|
parseStandupDate
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-QFKNIKUF.js";
|
|
75
75
|
import {
|
|
76
76
|
SupportPassportAccessSurface,
|
|
77
77
|
createSupportPassportModelAdapter,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
ActivityStore,
|
|
88
88
|
MaintenanceScheduler
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-JITK24KX.js";
|
|
90
90
|
import {
|
|
91
91
|
runPeerProfileReasoner
|
|
92
92
|
} from "./chunk-WTXUUZYI.js";
|
|
@@ -99,6 +99,9 @@ import {
|
|
|
99
99
|
isReplaySource,
|
|
100
100
|
normalizeReplaySessionKey
|
|
101
101
|
} from "./chunk-AJVLDJU6.js";
|
|
102
|
+
import {
|
|
103
|
+
migrateFromEngram
|
|
104
|
+
} from "./chunk-VZAKYDMJ.js";
|
|
102
105
|
import {
|
|
103
106
|
TailscaleHelper
|
|
104
107
|
} from "./chunk-SZDLX763.js";
|
|
@@ -110,13 +113,10 @@ import {
|
|
|
110
113
|
} from "./chunk-6PEEZSGL.js";
|
|
111
114
|
import {
|
|
112
115
|
rebuildMemoryLifecycleLedger
|
|
113
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-SKJM4PKE.js";
|
|
114
117
|
import {
|
|
115
118
|
rebuildObservations
|
|
116
119
|
} from "./chunk-2X4WP4GD.js";
|
|
117
|
-
import {
|
|
118
|
-
migrateFromEngram
|
|
119
|
-
} from "./chunk-VZAKYDMJ.js";
|
|
120
120
|
import {
|
|
121
121
|
backfillMemoryStorage,
|
|
122
122
|
runLocationBackfill,
|
|
@@ -124,13 +124,18 @@ import {
|
|
|
124
124
|
runLocationDay,
|
|
125
125
|
runLocationStatus,
|
|
126
126
|
runLocationSync
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-AALJHIKH.js";
|
|
128
128
|
import {
|
|
129
129
|
archiveObservations
|
|
130
130
|
} from "./chunk-SBQOBY3S.js";
|
|
131
131
|
import {
|
|
132
132
|
LcmEngine
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-PBE7NFB5.js";
|
|
134
|
+
import {
|
|
135
|
+
executeResolution,
|
|
136
|
+
isValidResolutionVerb,
|
|
137
|
+
runPreferenceDriftScan
|
|
138
|
+
} from "./chunk-2YJ2ST23.js";
|
|
134
139
|
import {
|
|
135
140
|
chunkTranscriptEntries
|
|
136
141
|
} from "./chunk-TECVW3JP.js";
|
|
@@ -140,7 +145,7 @@ import {
|
|
|
140
145
|
import {
|
|
141
146
|
CompoundingEngine,
|
|
142
147
|
defaultTierMigrationCycleBudget
|
|
143
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-FGFU6J26.js";
|
|
144
149
|
import {
|
|
145
150
|
SharedContextManager,
|
|
146
151
|
UNATTRIBUTED_ACCESS_WRITE_ORIGIN
|
|
@@ -151,10 +156,14 @@ import {
|
|
|
151
156
|
consolidatePreferences
|
|
152
157
|
} from "./chunk-VOVSZYCP.js";
|
|
153
158
|
import {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
AdminPromotionError,
|
|
160
|
+
auditTranscripts,
|
|
161
|
+
gatherMaintenanceHealth,
|
|
162
|
+
inspectScope,
|
|
163
|
+
listAdminNamespaces,
|
|
164
|
+
promoteMemory,
|
|
165
|
+
redactSensitive
|
|
166
|
+
} from "./chunk-XC4PRJWM.js";
|
|
158
167
|
import {
|
|
159
168
|
getBulkImportSource,
|
|
160
169
|
listBulkImportSources,
|
|
@@ -199,7 +208,7 @@ import {
|
|
|
199
208
|
handleWhoKnowsHttpQuery,
|
|
200
209
|
loadWhoKnowsEntities,
|
|
201
210
|
validateWhoKnowsInput
|
|
202
|
-
} from "./chunk-
|
|
211
|
+
} from "./chunk-TWYYUMYO.js";
|
|
203
212
|
import {
|
|
204
213
|
WriteQuarantineStore
|
|
205
214
|
} from "./chunk-BANSBRNX.js";
|
|
@@ -225,7 +234,7 @@ import {
|
|
|
225
234
|
import {
|
|
226
235
|
compareVerifiedEpisodeResults,
|
|
227
236
|
searchVerifiedEpisodes
|
|
228
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-UH2VY2QQ.js";
|
|
229
238
|
import {
|
|
230
239
|
applyTrustScoreStage,
|
|
231
240
|
buildTrustSignalsForRerank,
|
|
@@ -289,11 +298,11 @@ import {
|
|
|
289
298
|
} from "./chunk-WWDO7ZWM.js";
|
|
290
299
|
import {
|
|
291
300
|
promoteSemanticRuleFromMemory
|
|
292
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-QZMGZBTF.js";
|
|
293
302
|
import {
|
|
294
303
|
compareVerifiedSemanticRuleResults,
|
|
295
304
|
searchVerifiedSemanticRules
|
|
296
|
-
} from "./chunk-
|
|
305
|
+
} from "./chunk-T765HQ5U.js";
|
|
297
306
|
import {
|
|
298
307
|
buildResponseGuidanceRecallSection,
|
|
299
308
|
shouldRecallResponseGuidance
|
|
@@ -302,7 +311,7 @@ import {
|
|
|
302
311
|
buildResumeBundleFromState,
|
|
303
312
|
getResumeBundleStatus,
|
|
304
313
|
recordResumeBundle
|
|
305
|
-
} from "./chunk-
|
|
314
|
+
} from "./chunk-7EP4FURO.js";
|
|
306
315
|
import {
|
|
307
316
|
getWorkProductLedgerStatus,
|
|
308
317
|
recordWorkProductLedgerEntry,
|
|
@@ -352,10 +361,10 @@ import {
|
|
|
352
361
|
} from "./chunk-WBOJMAAV.js";
|
|
353
362
|
import {
|
|
354
363
|
runRecallWhy
|
|
355
|
-
} from "./chunk-
|
|
364
|
+
} from "./chunk-G2MS56KM.js";
|
|
356
365
|
import {
|
|
357
366
|
parseXrayCliOptions
|
|
358
|
-
} from "./chunk-
|
|
367
|
+
} from "./chunk-PSQ347YP.js";
|
|
359
368
|
import {
|
|
360
369
|
LastRecallStore,
|
|
361
370
|
RecallHandleHistoryStore,
|
|
@@ -370,7 +379,7 @@ import {
|
|
|
370
379
|
import {
|
|
371
380
|
indexStateViewAnnotatedResults,
|
|
372
381
|
resolveRecallStateViewActive
|
|
373
|
-
} from "./chunk-
|
|
382
|
+
} from "./chunk-5GIYIYJI.js";
|
|
374
383
|
import {
|
|
375
384
|
applyRecallStateViews
|
|
376
385
|
} from "./chunk-DBB5JPSL.js";
|
|
@@ -388,7 +397,7 @@ import {
|
|
|
388
397
|
} from "./chunk-KIW3OOZE.js";
|
|
389
398
|
import {
|
|
390
399
|
planDisclosureStep
|
|
391
|
-
} from "./chunk-
|
|
400
|
+
} from "./chunk-3YID7KZ6.js";
|
|
392
401
|
import {
|
|
393
402
|
DEFAULT_TRAVERSE_LIMIT,
|
|
394
403
|
selectTraverseNeighbors
|
|
@@ -401,12 +410,12 @@ import {
|
|
|
401
410
|
renderRecallExplain,
|
|
402
411
|
renderXray,
|
|
403
412
|
toRecallExplainJson
|
|
404
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-TDG5NZAZ.js";
|
|
405
414
|
import {
|
|
406
415
|
buildXraySnapshot,
|
|
407
416
|
estimateRecallTokens,
|
|
408
417
|
summarizeDisclosureTokens
|
|
409
|
-
} from "./chunk-
|
|
418
|
+
} from "./chunk-7SOKOEAZ.js";
|
|
410
419
|
import {
|
|
411
420
|
reorderRecallResultsWithMmr
|
|
412
421
|
} from "./chunk-IIK2PD3F.js";
|
|
@@ -461,12 +470,12 @@ import {
|
|
|
461
470
|
runOperatorRepair,
|
|
462
471
|
runOperatorSetup,
|
|
463
472
|
summarizeNamespaceMaintenanceHealth
|
|
464
|
-
} from "./chunk-
|
|
473
|
+
} from "./chunk-4EAVEDLG.js";
|
|
465
474
|
import {
|
|
466
475
|
NamespaceCatalog,
|
|
467
476
|
isNamespaceKind,
|
|
468
477
|
planNamespaceMaintenance
|
|
469
|
-
} from "./chunk-
|
|
478
|
+
} from "./chunk-3BICT225.js";
|
|
470
479
|
import {
|
|
471
480
|
analyzeSessionIntegrity,
|
|
472
481
|
applySessionRepair,
|
|
@@ -502,7 +511,7 @@ import {
|
|
|
502
511
|
} from "./chunk-EIB4FJVR.js";
|
|
503
512
|
import {
|
|
504
513
|
runMemoryBrowse
|
|
505
|
-
} from "./chunk-
|
|
514
|
+
} from "./chunk-KZ4BJRGQ.js";
|
|
506
515
|
import {
|
|
507
516
|
filterRecallCandidates,
|
|
508
517
|
isGenericRecallExcludedPath,
|
|
@@ -510,7 +519,7 @@ import {
|
|
|
510
519
|
isTopLevelArchivePath,
|
|
511
520
|
journalPath,
|
|
512
521
|
writeJournalFile
|
|
513
|
-
} from "./chunk-
|
|
522
|
+
} from "./chunk-ZNCCX7P6.js";
|
|
514
523
|
import {
|
|
515
524
|
REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
|
|
516
525
|
REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL,
|
|
@@ -573,11 +582,11 @@ import {
|
|
|
573
582
|
harmonicEntitySegment,
|
|
574
583
|
normalizedHarmonicEntityIdentity,
|
|
575
584
|
persistHarmonicRecords
|
|
576
|
-
} from "./chunk-
|
|
585
|
+
} from "./chunk-OLD2GKQJ.js";
|
|
577
586
|
import {
|
|
578
587
|
readProjectedHarmonicGraph,
|
|
579
588
|
searchHarmonicRetrieval
|
|
580
|
-
} from "./chunk-
|
|
589
|
+
} from "./chunk-75K6DRPN.js";
|
|
581
590
|
import {
|
|
582
591
|
removeNodeEdgesForRewrite,
|
|
583
592
|
rollbackNodeEdgeRewrite
|
|
@@ -587,13 +596,13 @@ import {
|
|
|
587
596
|
} from "./chunk-XXSOVESA.js";
|
|
588
597
|
import {
|
|
589
598
|
ExtractionEngine
|
|
590
|
-
} from "./chunk-
|
|
599
|
+
} from "./chunk-2QW5HPKU.js";
|
|
591
600
|
import {
|
|
592
601
|
wrapWorkLayerContext
|
|
593
602
|
} from "./chunk-EI6V5UXY.js";
|
|
594
603
|
import {
|
|
595
604
|
CONNECTOR_LABEL_MAX_LENGTH
|
|
596
|
-
} from "./chunk-
|
|
605
|
+
} from "./chunk-FKHXXL42.js";
|
|
597
606
|
import {
|
|
598
607
|
isValidConnectorId
|
|
599
608
|
} from "./chunk-NIIWKDIU.js";
|
|
@@ -673,7 +682,7 @@ import {
|
|
|
673
682
|
buildEntityRecallSection,
|
|
674
683
|
entityRecentTranscriptLookbackHours,
|
|
675
684
|
readRecentEntityTranscriptEntries
|
|
676
|
-
} from "./chunk-
|
|
685
|
+
} from "./chunk-WEI6HEUX.js";
|
|
677
686
|
import {
|
|
678
687
|
boundRecallContextComposition,
|
|
679
688
|
composeMissingMemoryContext,
|
|
@@ -716,15 +725,15 @@ import {
|
|
|
716
725
|
import {
|
|
717
726
|
CorpusWatermarkCache,
|
|
718
727
|
computeServiceCorpusCensus
|
|
719
|
-
} from "./chunk-
|
|
728
|
+
} from "./chunk-CJSTQNE5.js";
|
|
720
729
|
import {
|
|
721
730
|
listNamespaces,
|
|
722
731
|
runNamespaceMigration,
|
|
723
732
|
verifyNamespaces
|
|
724
|
-
} from "./chunk-
|
|
733
|
+
} from "./chunk-HEJFE3BC.js";
|
|
725
734
|
import {
|
|
726
735
|
NamespaceStorageRouter
|
|
727
|
-
} from "./chunk-
|
|
736
|
+
} from "./chunk-AJ7JHHRY.js";
|
|
728
737
|
import {
|
|
729
738
|
CrossNamespaceBudget,
|
|
730
739
|
toBudgetWarning
|
|
@@ -732,18 +741,18 @@ import {
|
|
|
732
741
|
import {
|
|
733
742
|
getCueAnchorStoreStatus,
|
|
734
743
|
pruneOrphanCueAnchors
|
|
735
|
-
} from "./chunk-
|
|
744
|
+
} from "./chunk-BGA7S5EF.js";
|
|
736
745
|
import {
|
|
737
746
|
GraphDashboardServer
|
|
738
747
|
} from "./chunk-EZ25VE3G.js";
|
|
739
748
|
import {
|
|
740
749
|
refreshConvergedNamespaces
|
|
741
|
-
} from "./chunk-
|
|
750
|
+
} from "./chunk-GYCUX3N4.js";
|
|
742
751
|
import {
|
|
743
752
|
rebuildMemoryProjection,
|
|
744
753
|
repairMemoryProjection,
|
|
745
754
|
verifyMemoryProjection
|
|
746
|
-
} from "./chunk-
|
|
755
|
+
} from "./chunk-DYUPSTCV.js";
|
|
747
756
|
import {
|
|
748
757
|
buildProposedActions,
|
|
749
758
|
buildQualityScore,
|
|
@@ -752,7 +761,7 @@ import {
|
|
|
752
761
|
readMemoryGovernanceRunArtifact,
|
|
753
762
|
restoreMemoryGovernanceRun,
|
|
754
763
|
runMemoryGovernance
|
|
755
|
-
} from "./chunk-
|
|
764
|
+
} from "./chunk-LR6LWX33.js";
|
|
756
765
|
import {
|
|
757
766
|
collectNativeKnowledgeChunks,
|
|
758
767
|
formatNativeKnowledgeSection,
|
|
@@ -785,7 +794,7 @@ import {
|
|
|
785
794
|
materializeAfterSemanticConsolidation,
|
|
786
795
|
parseConsolidationResponse,
|
|
787
796
|
parseOperatorAwareConsolidationResponse
|
|
788
|
-
} from "./chunk-
|
|
797
|
+
} from "./chunk-GH7IKABD.js";
|
|
789
798
|
import {
|
|
790
799
|
resolveNamespaceChildRoot
|
|
791
800
|
} from "./chunk-3UXOZBHV.js";
|
|
@@ -801,13 +810,13 @@ import {
|
|
|
801
810
|
} from "./chunk-GKCXTSFF.js";
|
|
802
811
|
import {
|
|
803
812
|
SmartBuffer
|
|
804
|
-
} from "./chunk-
|
|
813
|
+
} from "./chunk-YCJJODER.js";
|
|
805
814
|
import {
|
|
806
815
|
ExtractionDeadlineError,
|
|
807
816
|
ExtractionRunCoordinator,
|
|
808
817
|
ProviderCircuitBreaker,
|
|
809
818
|
classifyExtractionOrigin
|
|
810
|
-
} from "./chunk-
|
|
819
|
+
} from "./chunk-3RZ4GDOH.js";
|
|
811
820
|
import {
|
|
812
821
|
ARTIFACT_STATUS_CACHE_TTL_MS,
|
|
813
822
|
BulkImportBatchPartialFailureError,
|
|
@@ -847,7 +856,7 @@ import {
|
|
|
847
856
|
throwIfRecallAborted,
|
|
848
857
|
tokenizeRecallQuery,
|
|
849
858
|
utcDateKeysForLocalDay
|
|
850
|
-
} from "./chunk-
|
|
859
|
+
} from "./chunk-STSORBX5.js";
|
|
851
860
|
import {
|
|
852
861
|
inferIntentFromText,
|
|
853
862
|
intentCompatibilityScore,
|
|
@@ -885,7 +894,7 @@ import {
|
|
|
885
894
|
parseBriefingFocus,
|
|
886
895
|
parseBriefingWindow,
|
|
887
896
|
validateBriefingFormat
|
|
888
|
-
} from "./chunk-
|
|
897
|
+
} from "./chunk-KOVQZJ27.js";
|
|
889
898
|
import {
|
|
890
899
|
BriefingTimeoutError,
|
|
891
900
|
withBriefingDeadline
|
|
@@ -957,7 +966,7 @@ import {
|
|
|
957
966
|
validateCorrectionAction,
|
|
958
967
|
validateCorrectionRequest,
|
|
959
968
|
validateRedactionPattern
|
|
960
|
-
} from "./chunk-
|
|
969
|
+
} from "./chunk-BDFSVUUZ.js";
|
|
961
970
|
import {
|
|
962
971
|
compileCorrectionRule,
|
|
963
972
|
correctionsFilePath,
|
|
@@ -1070,7 +1079,7 @@ import {
|
|
|
1070
1079
|
reconstructFusionInputs,
|
|
1071
1080
|
selfDeps,
|
|
1072
1081
|
serializeFusionDay
|
|
1073
|
-
} from "./chunk-
|
|
1082
|
+
} from "./chunk-XZMQLON4.js";
|
|
1074
1083
|
import {
|
|
1075
1084
|
buildRetiredFactTombstoneInputs
|
|
1076
1085
|
} from "./chunk-QGVCFVX6.js";
|
|
@@ -1089,12 +1098,12 @@ import {
|
|
|
1089
1098
|
embeddingBacklogExceeds,
|
|
1090
1099
|
isSearchHealthDegraded,
|
|
1091
1100
|
namespaceCollectionName
|
|
1092
|
-
} from "./chunk-
|
|
1101
|
+
} from "./chunk-XZLCAL5O.js";
|
|
1093
1102
|
import {
|
|
1094
1103
|
createConversationIndexRuntime,
|
|
1095
1104
|
createSearchBackend,
|
|
1096
1105
|
isSearchBackendEnabled
|
|
1097
|
-
} from "./chunk-
|
|
1106
|
+
} from "./chunk-J7RQ3RP7.js";
|
|
1098
1107
|
import {
|
|
1099
1108
|
NoopSearchBackend
|
|
1100
1109
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -1138,7 +1147,7 @@ import {
|
|
|
1138
1147
|
recordStrandedCommit,
|
|
1139
1148
|
removeVersion,
|
|
1140
1149
|
revertToVersion
|
|
1141
|
-
} from "./chunk-
|
|
1150
|
+
} from "./chunk-E3LGAZJC.js";
|
|
1142
1151
|
import {
|
|
1143
1152
|
HistoricalEntityCanonicalIdCache,
|
|
1144
1153
|
canonicalizeEntityRefFrontmatter,
|
|
@@ -1149,7 +1158,7 @@ import {
|
|
|
1149
1158
|
requestEntityCanonicalIdReconcile,
|
|
1150
1159
|
requestEntityCanonicalIdReconcileSync,
|
|
1151
1160
|
withRawEntityPageMutation
|
|
1152
|
-
} from "./chunk-
|
|
1161
|
+
} from "./chunk-HLQANATZ.js";
|
|
1153
1162
|
import {
|
|
1154
1163
|
applyTemporalSupersession,
|
|
1155
1164
|
applyTemporalSupersessionPrimaryMutation,
|
|
@@ -1211,7 +1220,7 @@ import {
|
|
|
1211
1220
|
RECALL_WHY_MCP_TOOLS,
|
|
1212
1221
|
handleRecallWhyHttpQuery,
|
|
1213
1222
|
handleRecallXrayHttpQuery
|
|
1214
|
-
} from "./chunk-
|
|
1223
|
+
} from "./chunk-7V6GNQC2.js";
|
|
1215
1224
|
import {
|
|
1216
1225
|
runContradictionScan
|
|
1217
1226
|
} from "./chunk-NT7JD6D6.js";
|
|
@@ -1225,7 +1234,7 @@ import {
|
|
|
1225
1234
|
RECALL_DISCLOSURE_LEVELS,
|
|
1226
1235
|
confidenceTier,
|
|
1227
1236
|
isRecallDisclosure
|
|
1228
|
-
} from "./chunk-
|
|
1237
|
+
} from "./chunk-QIPRDRGM.js";
|
|
1229
1238
|
import {
|
|
1230
1239
|
extractJsonCandidates
|
|
1231
1240
|
} from "./chunk-YBA52OKG.js";
|
|
@@ -1583,14 +1592,14 @@ import {
|
|
|
1583
1592
|
} from "./chunk-R2MBW2S4.js";
|
|
1584
1593
|
import {
|
|
1585
1594
|
getAbstractionNodeStoreStatus
|
|
1586
|
-
} from "./chunk-
|
|
1595
|
+
} from "./chunk-P3IAZQPS.js";
|
|
1587
1596
|
import {
|
|
1588
1597
|
MEMORY_CORPUS_VERSION_SENTINEL,
|
|
1589
1598
|
bumpMemoryCorpusVersionForDir
|
|
1590
|
-
} from "./chunk-
|
|
1599
|
+
} from "./chunk-NAULI3EG.js";
|
|
1591
1600
|
import {
|
|
1592
1601
|
runInQmdSearchCacheRecallScope
|
|
1593
|
-
} from "./chunk-
|
|
1602
|
+
} from "./chunk-XSRZM6CQ.js";
|
|
1594
1603
|
import {
|
|
1595
1604
|
buildQmdRecallCacheKey,
|
|
1596
1605
|
getCachedQmdRecall,
|
|
@@ -6909,7 +6918,7 @@ var RecallRerankCoordinator = class _RecallRerankCoordinator {
|
|
|
6909
6918
|
namespaces,
|
|
6910
6919
|
{
|
|
6911
6920
|
readNamespaceMemories: async (ns) => (await this.getStorage(ns)).readAllMemories(),
|
|
6912
|
-
readMemoryFrontmatter: async (
|
|
6921
|
+
readMemoryFrontmatter: async (path62, preferredNamespace) => {
|
|
6913
6922
|
if (!fallbackReader) {
|
|
6914
6923
|
for (const ns of namespaces) {
|
|
6915
6924
|
try {
|
|
@@ -6921,7 +6930,7 @@ var RecallRerankCoordinator = class _RecallRerankCoordinator {
|
|
|
6921
6930
|
}
|
|
6922
6931
|
if (!fallbackReader) return null;
|
|
6923
6932
|
const memory = await this.readQmdResultMemory(
|
|
6924
|
-
|
|
6933
|
+
path62,
|
|
6925
6934
|
fallbackReader,
|
|
6926
6935
|
namespaces,
|
|
6927
6936
|
preferredNamespace
|
|
@@ -16670,7 +16679,8 @@ ${rows.join("\n")}
|
|
|
16670
16679
|
anchorsEnabled: resolveConsolidationCapabilities(this.deps.config).abstractionAnchors,
|
|
16671
16680
|
temporalExpiredInInjection: this.deps.config.temporalExpiredInInjection,
|
|
16672
16681
|
abortSignal: harmonicRetrievalAbort.signal,
|
|
16673
|
-
useGraphCache: true
|
|
16682
|
+
useGraphCache: true,
|
|
16683
|
+
graphCacheTtlMs: this.deps.config.harmonicGraphCacheTtlMs
|
|
16674
16684
|
})
|
|
16675
16685
|
)
|
|
16676
16686
|
);
|
|
@@ -20946,7 +20956,8 @@ async function ingestReplayBatchBuffered(deps, bySession, options) {
|
|
|
20946
20956
|
const outcomes = admissionKey ? await deps.buffer.addTurnsBoundedForObserveReplay(batches, admissionKey, onRefused) : await deps.buffer.addTurnsBounded(batches, onRefused);
|
|
20947
20957
|
if (outcomes === "duplicate") return;
|
|
20948
20958
|
if (outcomes === null) throw replayRefusal(refusal, batches);
|
|
20949
|
-
|
|
20959
|
+
const forceKeys = new Set(outcomes.map(({ bufferKey }) => bufferKey));
|
|
20960
|
+
await deps.buffer.flushPendingSave({ throwOnFailure: true, allowDeferral: true, forceKeys });
|
|
20950
20961
|
if (options.archiveLcm !== false && deps.lcmEngine?.enabled) {
|
|
20951
20962
|
for (const [bufferKey, sessionTurns] of bySession) {
|
|
20952
20963
|
await deps.lcmEngine.observeMessages(
|
|
@@ -42144,9 +42155,9 @@ function readStructuralSymbol(entry) {
|
|
|
42144
42155
|
const rec = entry;
|
|
42145
42156
|
const symbol = typeof rec.symbol === "string" ? rec.symbol.trim() : "";
|
|
42146
42157
|
if (!symbol) return null;
|
|
42147
|
-
const
|
|
42158
|
+
const path62 = typeof rec.path === "string" && rec.path.length > 0 ? rec.path : void 0;
|
|
42148
42159
|
const kind = typeof rec.kind === "string" && rec.kind.length > 0 ? rec.kind : void 0;
|
|
42149
|
-
const item =
|
|
42160
|
+
const item = path62 !== void 0 && kind !== void 0 ? { symbol, path: path62, kind } : path62 !== void 0 ? { symbol, path: path62 } : kind !== void 0 ? { symbol, kind } : { symbol };
|
|
42150
42161
|
return item;
|
|
42151
42162
|
}
|
|
42152
42163
|
function classifySpawnError(err) {
|
|
@@ -51629,7 +51640,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
|
|
|
51629
51640
|
);
|
|
51630
51641
|
}
|
|
51631
51642
|
}
|
|
51632
|
-
const { mergeCapsule } = await import("./capsule-merge-
|
|
51643
|
+
const { mergeCapsule } = await import("./capsule-merge-3FARYIHP.js");
|
|
51633
51644
|
const result = await mergeCapsule({
|
|
51634
51645
|
sourceArchive,
|
|
51635
51646
|
targetRoot: memoryDir,
|
|
@@ -54266,7 +54277,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
|
|
|
54266
54277
|
console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
|
|
54267
54278
|
process.exit(1);
|
|
54268
54279
|
}
|
|
54269
|
-
const { isValidResolutionVerb: isValidResolutionVerb2, executeResolution: executeResolution2 } = await import("./resolution-
|
|
54280
|
+
const { isValidResolutionVerb: isValidResolutionVerb2, executeResolution: executeResolution2 } = await import("./resolution-4QPPLDEN.js");
|
|
54270
54281
|
if (!isValidResolutionVerb2(verb)) {
|
|
54271
54282
|
console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
|
|
54272
54283
|
process.exit(1);
|
|
@@ -59741,418 +59752,6 @@ async function applySupportPassportOfflineSyncChangeset(storage, options) {
|
|
|
59741
59752
|
// src/access-service.ts
|
|
59742
59753
|
import * as nodePath3 from "path";
|
|
59743
59754
|
|
|
59744
|
-
// src/admin/admin-surfaces.ts
|
|
59745
|
-
import path61 from "path";
|
|
59746
|
-
var REDACTED = "<redacted>";
|
|
59747
|
-
var SENSITIVE_KEY_RE = /(token|secret|password|api[_-]?key|bearer|authorization|credential|private[_-]?key)/i;
|
|
59748
|
-
var BEARER_VALUE_RE = /^(bearer|sk-|pk-|xox[bp]-|AKIA)/i;
|
|
59749
|
-
var LONG_OPAQUE_RE = /^[A-Za-z0-9_\-]{32,}$/;
|
|
59750
|
-
var SAFE_DIAGNOSTIC_KEYS = /* @__PURE__ */ new Set(["identityToken"]);
|
|
59751
|
-
function redactSensitive(value) {
|
|
59752
|
-
return walkRedact(value, void 0);
|
|
59753
|
-
}
|
|
59754
|
-
function walkRedact(value, key) {
|
|
59755
|
-
if (typeof value === "string") {
|
|
59756
|
-
if (key && SENSITIVE_KEY_RE.test(key) && !SAFE_DIAGNOSTIC_KEYS.has(key)) {
|
|
59757
|
-
return REDACTED;
|
|
59758
|
-
}
|
|
59759
|
-
if (BEARER_VALUE_RE.test(value)) return REDACTED;
|
|
59760
|
-
if (!(key && SAFE_DIAGNOSTIC_KEYS.has(key)) && LONG_OPAQUE_RE.test(value) && value.length >= 40 && !/^[0-9a-f]{16}$/.test(value)) {
|
|
59761
|
-
return REDACTED;
|
|
59762
|
-
}
|
|
59763
|
-
return value;
|
|
59764
|
-
}
|
|
59765
|
-
if (Array.isArray(value)) {
|
|
59766
|
-
return value.map((entry) => walkRedact(entry, void 0));
|
|
59767
|
-
}
|
|
59768
|
-
if (value && typeof value === "object") {
|
|
59769
|
-
const record = value;
|
|
59770
|
-
const out = {};
|
|
59771
|
-
for (const [k, v] of Object.entries(record)) {
|
|
59772
|
-
out[k] = walkRedact(v, k);
|
|
59773
|
-
}
|
|
59774
|
-
return out;
|
|
59775
|
-
}
|
|
59776
|
-
return value;
|
|
59777
|
-
}
|
|
59778
|
-
function inspectScope(options) {
|
|
59779
|
-
const { config } = options;
|
|
59780
|
-
const namespacesEnabled = options.namespacesEnabled ?? resolveNamespaceCapabilities(config).namespaces === true;
|
|
59781
|
-
const plan = resolveScopePlan({
|
|
59782
|
-
config,
|
|
59783
|
-
sessionKey: options.sessionKey,
|
|
59784
|
-
namespace: options.namespace,
|
|
59785
|
-
principalOverride: options.principalOverride,
|
|
59786
|
-
codingContext: options.codingContext ?? null,
|
|
59787
|
-
namespacesEnabled
|
|
59788
|
-
});
|
|
59789
|
-
const warnings = [];
|
|
59790
|
-
if (namespacesEnabled && !plan.principal) {
|
|
59791
|
-
warnings.push("namespace routing is enabled but no principal resolved for this session key");
|
|
59792
|
-
}
|
|
59793
|
-
if (config.codingMode?.projectScope && namespacesEnabled && options.codingContext && !plan.codingOverlay) {
|
|
59794
|
-
warnings.push("coding project scope is enabled but the overlay was suppressed by an explicit namespace override");
|
|
59795
|
-
}
|
|
59796
|
-
if (options.namespace && options.namespace.trim().length > 0 && !plan.namespaceOverride) {
|
|
59797
|
-
warnings.push(
|
|
59798
|
-
`requested namespace override '${options.namespace}' is not readable by this principal and was ignored`
|
|
59799
|
-
);
|
|
59800
|
-
}
|
|
59801
|
-
if (plan.namespaceOverride && !canWriteNamespace(plan.principal, plan.namespaceOverride, config)) {
|
|
59802
|
-
warnings.push(
|
|
59803
|
-
`explicit namespace override '${plan.namespaceOverride}' is readable but not writable by this principal; it is the effective write namespace but writes will be rejected`
|
|
59804
|
-
);
|
|
59805
|
-
}
|
|
59806
|
-
const layers = [];
|
|
59807
|
-
const scopeProfilePlan = plan.scopeProfilePlan;
|
|
59808
|
-
if (scopeProfilePlan) {
|
|
59809
|
-
for (const layer of scopeProfilePlan.layers) {
|
|
59810
|
-
layers.push({
|
|
59811
|
-
id: layer.id,
|
|
59812
|
-
namespace: layer.namespace,
|
|
59813
|
-
readable: layer.readable,
|
|
59814
|
-
writable: layer.writable,
|
|
59815
|
-
promotable: layer.promotable,
|
|
59816
|
-
reason: layer.reason
|
|
59817
|
-
});
|
|
59818
|
-
}
|
|
59819
|
-
for (const target of scopeProfilePlan.promotionTargets) {
|
|
59820
|
-
if (!layers.some((layer) => layer.id === target.target)) {
|
|
59821
|
-
layers.push({
|
|
59822
|
-
id: target.target,
|
|
59823
|
-
namespace: target.namespace,
|
|
59824
|
-
readable: false,
|
|
59825
|
-
writable: false,
|
|
59826
|
-
promotable: target.authorized,
|
|
59827
|
-
reason: target.reason
|
|
59828
|
-
});
|
|
59829
|
-
}
|
|
59830
|
-
}
|
|
59831
|
-
} else {
|
|
59832
|
-
layers.push({
|
|
59833
|
-
id: "self",
|
|
59834
|
-
namespace: plan.baseNamespace,
|
|
59835
|
-
readable: canReadNamespace(plan.principal, plan.baseNamespace, config),
|
|
59836
|
-
writable: canWriteNamespace(plan.principal, plan.baseNamespace, config),
|
|
59837
|
-
promotable: false,
|
|
59838
|
-
reason: "principal self namespace (no scope profile active)"
|
|
59839
|
-
});
|
|
59840
|
-
}
|
|
59841
|
-
if (plan.codingOverlay) {
|
|
59842
|
-
layers.push({
|
|
59843
|
-
id: "coding",
|
|
59844
|
-
namespace: plan.codingOverlay.namespace,
|
|
59845
|
-
readable: true,
|
|
59846
|
-
writable: true,
|
|
59847
|
-
promotable: false,
|
|
59848
|
-
reason: "coding overlay namespace combined with the principal base (rule 42)"
|
|
59849
|
-
});
|
|
59850
|
-
}
|
|
59851
|
-
if (plan.namespaceOverride) {
|
|
59852
|
-
layers.push({
|
|
59853
|
-
id: "explicit",
|
|
59854
|
-
namespace: plan.namespaceOverride,
|
|
59855
|
-
readable: true,
|
|
59856
|
-
writable: canWriteNamespace(plan.principal, plan.namespaceOverride, config),
|
|
59857
|
-
promotable: false,
|
|
59858
|
-
reason: "explicit namespace override authorized for this principal"
|
|
59859
|
-
});
|
|
59860
|
-
}
|
|
59861
|
-
const promotionTargets = scopeProfilePlan ? scopeProfilePlan.promotionTargets.map((target) => ({
|
|
59862
|
-
target: target.target,
|
|
59863
|
-
namespace: target.namespace,
|
|
59864
|
-
authorized: target.authorized,
|
|
59865
|
-
reason: target.reason
|
|
59866
|
-
})) : [];
|
|
59867
|
-
for (const warning of scopeProfilePlan?.warnings ?? []) {
|
|
59868
|
-
warnings.push(warning);
|
|
59869
|
-
}
|
|
59870
|
-
return {
|
|
59871
|
-
principal: plan.principal,
|
|
59872
|
-
namespaceOverride: plan.namespaceOverride,
|
|
59873
|
-
writeNamespace: plan.baseNamespace,
|
|
59874
|
-
readNamespaces: [...plan.readNamespaces],
|
|
59875
|
-
codingOverlay: plan.codingOverlay ? {
|
|
59876
|
-
namespace: plan.codingOverlay.namespace,
|
|
59877
|
-
readFallbacks: plan.codingOverlay.readFallbacks
|
|
59878
|
-
} : null,
|
|
59879
|
-
scopeProfileId: scopeProfilePlan?.profileId ?? null,
|
|
59880
|
-
layers,
|
|
59881
|
-
promotionTargets,
|
|
59882
|
-
warnings,
|
|
59883
|
-
plan
|
|
59884
|
-
};
|
|
59885
|
-
}
|
|
59886
|
-
async function listAdminNamespaces(options) {
|
|
59887
|
-
const { catalog, filter } = options;
|
|
59888
|
-
if (!catalog.enabled) {
|
|
59889
|
-
return { enabled: false, entries: [] };
|
|
59890
|
-
}
|
|
59891
|
-
const staleMs = (options.staleThresholdDays ?? 30) * 24 * 60 * 60 * 1e3;
|
|
59892
|
-
const staleBefore = new Date(Date.now() - staleMs);
|
|
59893
|
-
const records = await catalog.listNamespaces({
|
|
59894
|
-
kind: filter?.kind,
|
|
59895
|
-
discoveredBy: filter?.discoveredBy,
|
|
59896
|
-
writtenSince: filter?.writtenSince
|
|
59897
|
-
});
|
|
59898
|
-
let entries = records.map((record) => toAdminEntry(record, staleBefore));
|
|
59899
|
-
if (filter?.staleBefore) {
|
|
59900
|
-
const cutoff = filter.staleBefore.getTime();
|
|
59901
|
-
entries = entries.filter((entry) => {
|
|
59902
|
-
if (!entry.lastWriteAt) return true;
|
|
59903
|
-
const ms = Date.parse(entry.lastWriteAt);
|
|
59904
|
-
return Number.isFinite(ms) && ms <= cutoff;
|
|
59905
|
-
});
|
|
59906
|
-
}
|
|
59907
|
-
return { enabled: true, entries };
|
|
59908
|
-
}
|
|
59909
|
-
function toAdminEntry(record, staleBefore) {
|
|
59910
|
-
const lastWriteMs = record.lastWriteAt ? Date.parse(record.lastWriteAt) : Number.NaN;
|
|
59911
|
-
const stale = !Number.isFinite(lastWriteMs) || lastWriteMs < staleBefore.getTime();
|
|
59912
|
-
return {
|
|
59913
|
-
namespace: record.namespace,
|
|
59914
|
-
identityToken: record.identityToken,
|
|
59915
|
-
kind: record.kind,
|
|
59916
|
-
createdAt: record.createdAt,
|
|
59917
|
-
lastReadAt: record.lastReadAt,
|
|
59918
|
-
lastWriteAt: record.lastWriteAt,
|
|
59919
|
-
lastMaintenanceAt: record.lastMaintenanceAt,
|
|
59920
|
-
storageDir: record.storageDir,
|
|
59921
|
-
discoveredBy: record.discoveredBy,
|
|
59922
|
-
stale
|
|
59923
|
-
};
|
|
59924
|
-
}
|
|
59925
|
-
function classifyQmdState(qmd) {
|
|
59926
|
-
if (!qmd.available) {
|
|
59927
|
-
return {
|
|
59928
|
-
state: "unavailable",
|
|
59929
|
-
reason: "QMD backend is unavailable for this namespace",
|
|
59930
|
-
degraded: true
|
|
59931
|
-
};
|
|
59932
|
-
}
|
|
59933
|
-
switch (qmd.collectionState) {
|
|
59934
|
-
case "present":
|
|
59935
|
-
return { state: "healthy", reason: "QMD collection is ready", degraded: false };
|
|
59936
|
-
case "skipped":
|
|
59937
|
-
return {
|
|
59938
|
-
state: "healthy",
|
|
59939
|
-
reason: "QMD is skipped for this namespace (intentionally disabled)",
|
|
59940
|
-
degraded: false
|
|
59941
|
-
};
|
|
59942
|
-
case "missing":
|
|
59943
|
-
return {
|
|
59944
|
-
state: "missing",
|
|
59945
|
-
reason: "QMD collection is not built for this namespace \u2014 add the collection to the QMD index",
|
|
59946
|
-
degraded: true
|
|
59947
|
-
};
|
|
59948
|
-
case "unknown":
|
|
59949
|
-
return {
|
|
59950
|
-
state: "unknown",
|
|
59951
|
-
reason: "QMD collection status could not be determined (transient during startup/reindex)",
|
|
59952
|
-
degraded: true
|
|
59953
|
-
};
|
|
59954
|
-
default:
|
|
59955
|
-
return {
|
|
59956
|
-
state: "unknown",
|
|
59957
|
-
reason: `QMD reported an unrecognized collection state '${qmd.collectionState}'`,
|
|
59958
|
-
degraded: false
|
|
59959
|
-
};
|
|
59960
|
-
}
|
|
59961
|
-
}
|
|
59962
|
-
async function gatherMaintenanceHealth(options) {
|
|
59963
|
-
const { catalog, qmdHealthProvider } = options;
|
|
59964
|
-
if (!catalog.enabled) {
|
|
59965
|
-
return { enabled: false, degradedMode: false, perNamespace: [] };
|
|
59966
|
-
}
|
|
59967
|
-
const records = await catalog.listNamespaces();
|
|
59968
|
-
let degradedMode = false;
|
|
59969
|
-
const perNamespace = await Promise.all(
|
|
59970
|
-
records.map(async (record) => {
|
|
59971
|
-
const entry = {
|
|
59972
|
-
namespace: record.namespace,
|
|
59973
|
-
kind: record.kind,
|
|
59974
|
-
lastMaintenanceAt: record.lastMaintenanceAt,
|
|
59975
|
-
maintenanceMissing: !record.lastMaintenanceAt || Object.keys(record.lastMaintenanceAt).length === 0,
|
|
59976
|
-
qmdDegraded: false,
|
|
59977
|
-
qmdState: "not_probed",
|
|
59978
|
-
qmdStateReason: "QMD health probe not run for this report"
|
|
59979
|
-
};
|
|
59980
|
-
if (qmdHealthProvider) {
|
|
59981
|
-
try {
|
|
59982
|
-
const qmd = await qmdHealthProvider(record.namespace);
|
|
59983
|
-
if (qmd) {
|
|
59984
|
-
entry.qmd = qmd;
|
|
59985
|
-
const classified = classifyQmdState(qmd);
|
|
59986
|
-
entry.qmdState = classified.state;
|
|
59987
|
-
entry.qmdStateReason = classified.reason;
|
|
59988
|
-
entry.qmdDegraded = classified.degraded;
|
|
59989
|
-
} else {
|
|
59990
|
-
entry.qmdState = "not_probed";
|
|
59991
|
-
entry.qmdStateReason = "QMD health not available for this namespace";
|
|
59992
|
-
}
|
|
59993
|
-
} catch (err) {
|
|
59994
|
-
entry.qmdDegraded = true;
|
|
59995
|
-
entry.qmdState = "unavailable";
|
|
59996
|
-
entry.qmdStateReason = "QMD health probe failed";
|
|
59997
|
-
entry.qmdError = "QMD health probe failed";
|
|
59998
|
-
}
|
|
59999
|
-
}
|
|
60000
|
-
if (entry.qmdDegraded) degradedMode = true;
|
|
60001
|
-
return entry;
|
|
60002
|
-
})
|
|
60003
|
-
);
|
|
60004
|
-
return { enabled: true, degradedMode, perNamespace };
|
|
60005
|
-
}
|
|
60006
|
-
async function auditTranscripts(memoryDir) {
|
|
60007
|
-
const plan = await planSessionTranscriptMigration({
|
|
60008
|
-
memoryDir,
|
|
60009
|
-
apply: false
|
|
60010
|
-
});
|
|
60011
|
-
const files = plan.files.map((file) => ({
|
|
60012
|
-
sourceRelPath: file.sourceRelPath,
|
|
60013
|
-
fileName: file.fileName,
|
|
60014
|
-
distinctSessions: file.groups.length,
|
|
60015
|
-
movedEntries: file.groups.reduce((sum, group) => sum + group.entryCount, 0),
|
|
60016
|
-
unmovableLines: file.unmovableLines
|
|
60017
|
-
}));
|
|
60018
|
-
const mixedOtherDefault = files.some((file) => file.sourceRelPath.split(path61.sep).includes("other"));
|
|
60019
|
-
const summary = plan.movedEntries === 0 ? "No mixed-session transcript data detected; nothing to migrate." : `Found ${plan.movedEntries} entries across ${plan.distinctSessions} distinct sessions stranded in shared/legacy directories. Run the CLI migration command to re-home them.`;
|
|
60020
|
-
return {
|
|
60021
|
-
generatedAt: plan.generatedAt,
|
|
60022
|
-
dryRun: true,
|
|
60023
|
-
transcriptsDir: plan.transcriptsDir,
|
|
60024
|
-
mixedOtherDefault,
|
|
60025
|
-
distinctSessions: plan.distinctSessions,
|
|
60026
|
-
movedEntries: plan.movedEntries,
|
|
60027
|
-
files,
|
|
60028
|
-
summary
|
|
60029
|
-
};
|
|
60030
|
-
}
|
|
60031
|
-
var AdminPromotionError = class extends Error {
|
|
60032
|
-
code;
|
|
60033
|
-
constructor(code, message) {
|
|
60034
|
-
super(message);
|
|
60035
|
-
this.name = "AdminPromotionError";
|
|
60036
|
-
this.code = code;
|
|
60037
|
-
}
|
|
60038
|
-
};
|
|
60039
|
-
async function promoteMemory(options) {
|
|
60040
|
-
const reason = options.reason.trim();
|
|
60041
|
-
if (reason.length === 0) {
|
|
60042
|
-
throw new AdminPromotionError("reason_required", "promotion requires a non-empty reason");
|
|
60043
|
-
}
|
|
60044
|
-
if (options.targets.length === 0) {
|
|
60045
|
-
throw new AdminPromotionError("targets_required", "promotion requires at least one target");
|
|
60046
|
-
}
|
|
60047
|
-
const { config, principal, scopeProfilePlan } = options;
|
|
60048
|
-
const resolvedTargets = options.targets.map((requested) => {
|
|
60049
|
-
if (requested.kind === "explicit") {
|
|
60050
|
-
const namespace = requested.namespace?.trim();
|
|
60051
|
-
if (!namespace) {
|
|
60052
|
-
return {
|
|
60053
|
-
target: requested.kind,
|
|
60054
|
-
namespace: "",
|
|
60055
|
-
authorized: false,
|
|
60056
|
-
promoted: false,
|
|
60057
|
-
reason: "explicit promotion requires a namespace"
|
|
60058
|
-
};
|
|
60059
|
-
}
|
|
60060
|
-
const authorized = canWriteNamespace(principal, namespace, config);
|
|
60061
|
-
return {
|
|
60062
|
-
target: requested.kind,
|
|
60063
|
-
namespace,
|
|
60064
|
-
authorized,
|
|
60065
|
-
promoted: false,
|
|
60066
|
-
reason: authorized ? "explicit namespace writable by this principal" : "explicit namespace is not writable by this principal"
|
|
60067
|
-
};
|
|
60068
|
-
}
|
|
60069
|
-
if (!scopeProfilePlan) {
|
|
60070
|
-
return {
|
|
60071
|
-
target: requested.kind,
|
|
60072
|
-
namespace: "",
|
|
60073
|
-
authorized: false,
|
|
60074
|
-
promoted: false,
|
|
60075
|
-
reason: requested.kind === "userProject" || requested.kind === "teamProject" ? `no active scope profile; '${requested.kind}' promotion requires an active scope profile with a coding context (pass a sessionKey)` : `no active scope profile; '${requested.kind}' promotion requires an active scope profile`
|
|
60076
|
-
};
|
|
60077
|
-
}
|
|
60078
|
-
const layer = scopeProfilePlan.promotionTargets.find((t) => t.target === requested.kind);
|
|
60079
|
-
if (!layer) {
|
|
60080
|
-
return {
|
|
60081
|
-
target: requested.kind,
|
|
60082
|
-
namespace: "",
|
|
60083
|
-
authorized: false,
|
|
60084
|
-
promoted: false,
|
|
60085
|
-
reason: `promotion target '${requested.kind}' is not configured on the active scope profile`
|
|
60086
|
-
};
|
|
60087
|
-
}
|
|
60088
|
-
return {
|
|
60089
|
-
target: requested.kind,
|
|
60090
|
-
namespace: layer.namespace ?? "",
|
|
60091
|
-
authorized: layer.authorized && Boolean(layer.namespace),
|
|
60092
|
-
promoted: false,
|
|
60093
|
-
reason: layer.reason
|
|
60094
|
-
};
|
|
60095
|
-
});
|
|
60096
|
-
const sourceMemory = await options.storage.readMemory(options.sourceNamespace, options.sourceMemoryId);
|
|
60097
|
-
if (!sourceMemory) {
|
|
60098
|
-
throw new AdminPromotionError(
|
|
60099
|
-
"source_not_found",
|
|
60100
|
-
`source memory ${options.sourceMemoryId} not found in namespace ${options.sourceNamespace}`
|
|
60101
|
-
);
|
|
60102
|
-
}
|
|
60103
|
-
const auditTargets = [];
|
|
60104
|
-
for (const target of resolvedTargets) {
|
|
60105
|
-
if (!target.authorized || !target.namespace) {
|
|
60106
|
-
auditTargets.push({ target: target.target, namespace: target.namespace, promoted: false });
|
|
60107
|
-
continue;
|
|
60108
|
-
}
|
|
60109
|
-
if (target.namespace === options.sourceNamespace) {
|
|
60110
|
-
target.reason = "target namespace equals source namespace; nothing to promote";
|
|
60111
|
-
auditTargets.push({ target: target.target, namespace: target.namespace, promoted: false });
|
|
60112
|
-
continue;
|
|
60113
|
-
}
|
|
60114
|
-
try {
|
|
60115
|
-
const promotedId = await options.storage.writePromotedMemory(target.namespace, {
|
|
60116
|
-
category: sourceMemory.category,
|
|
60117
|
-
content: sourceMemory.content,
|
|
60118
|
-
confidence: sourceMemory.frontmatter.confidence ?? 0.5,
|
|
60119
|
-
tags: [...sourceMemory.frontmatter.tags ?? [], `admin-promotion-${target.target}`],
|
|
60120
|
-
entityRef: sourceMemory.frontmatter.entityRef,
|
|
60121
|
-
sourceMemoryId: options.sourceMemoryId,
|
|
60122
|
-
sourceNamespace: options.sourceNamespace,
|
|
60123
|
-
reason,
|
|
60124
|
-
actor: options.actor,
|
|
60125
|
-
validAt: sourceMemory.frontmatter.valid_at,
|
|
60126
|
-
lineage: [options.sourceMemoryId],
|
|
60127
|
-
...sourceMemory.frontmatter.sourceConnector ? { sourceConnector: sourceMemory.frontmatter.sourceConnector } : {},
|
|
60128
|
-
...sourceMemory.frontmatter.toolScoped ? { toolScoped: true } : {}
|
|
60129
|
-
});
|
|
60130
|
-
target.promoted = true;
|
|
60131
|
-
target.promotedMemoryId = promotedId;
|
|
60132
|
-
auditTargets.push({ target: target.target, namespace: target.namespace, promoted: true });
|
|
60133
|
-
} catch (err) {
|
|
60134
|
-
target.reason = "promotion write failed";
|
|
60135
|
-
auditTargets.push({ target: target.target, namespace: target.namespace, promoted: false });
|
|
60136
|
-
}
|
|
60137
|
-
}
|
|
60138
|
-
const at2 = (/* @__PURE__ */ new Date()).toISOString();
|
|
60139
|
-
const audit = {
|
|
60140
|
-
at: at2,
|
|
60141
|
-
actor: options.actor,
|
|
60142
|
-
sourceMemoryId: options.sourceMemoryId,
|
|
60143
|
-
sourceNamespace: options.sourceNamespace,
|
|
60144
|
-
reason,
|
|
60145
|
-
targets: auditTargets
|
|
60146
|
-
};
|
|
60147
|
-
return {
|
|
60148
|
-
ok: resolvedTargets.some((t) => t.promoted),
|
|
60149
|
-
sourceMemoryId: options.sourceMemoryId,
|
|
60150
|
-
sourceNamespace: options.sourceNamespace,
|
|
60151
|
-
targets: resolvedTargets,
|
|
60152
|
-
audit
|
|
60153
|
-
};
|
|
60154
|
-
}
|
|
60155
|
-
|
|
60156
59755
|
// src/access-admin-ops-surface.ts
|
|
60157
59756
|
import * as nodeFs from "fs/promises";
|
|
60158
59757
|
import * as nodePath from "path";
|
|
@@ -63189,7 +62788,7 @@ import { createHash as createHash26 } from "crypto";
|
|
|
63189
62788
|
// src/review/review-deck-mutation.ts
|
|
63190
62789
|
import { createHash as createHash25, randomUUID as randomUUID8 } from "crypto";
|
|
63191
62790
|
import fs11 from "fs";
|
|
63192
|
-
import
|
|
62791
|
+
import path61 from "path";
|
|
63193
62792
|
var ACTOR = "admin-console.review-deck";
|
|
63194
62793
|
var RULE_VERSION = "admin-console.review-deck.v1";
|
|
63195
62794
|
var DECK_VERSIONING = {
|
|
@@ -63259,7 +62858,7 @@ function parseReviewLifecycleReceipt(value) {
|
|
|
63259
62858
|
if (!isReceiptAction(rec.action)) return null;
|
|
63260
62859
|
if (typeof rec.beforeRevision !== "string") return null;
|
|
63261
62860
|
if (typeof rec.afterRevision !== "string") return null;
|
|
63262
|
-
if (!isNonEmptyString(rec.sourcePath) ||
|
|
62861
|
+
if (!isNonEmptyString(rec.sourcePath) || path61.isAbsolute(rec.sourcePath)) return null;
|
|
63263
62862
|
if (rec.revisionArtifact !== void 0 && typeof rec.revisionArtifact !== "string") return null;
|
|
63264
62863
|
if (rec.undoOfReceiptId !== void 0 && typeof rec.undoOfReceiptId !== "string") return null;
|
|
63265
62864
|
const parsed = {
|
|
@@ -63291,11 +62890,11 @@ function findStoredReceipt(events, receiptId) {
|
|
|
63291
62890
|
return null;
|
|
63292
62891
|
}
|
|
63293
62892
|
function resolveInside(memoryDir, rel) {
|
|
63294
|
-
if (!rel ||
|
|
63295
|
-
const root =
|
|
63296
|
-
const abs =
|
|
63297
|
-
const next =
|
|
63298
|
-
if (next.startsWith("..") ||
|
|
62893
|
+
if (!rel || path61.isAbsolute(rel)) return null;
|
|
62894
|
+
const root = path61.resolve(memoryDir);
|
|
62895
|
+
const abs = path61.resolve(root, rel.split("/").join(path61.sep));
|
|
62896
|
+
const next = path61.relative(root, abs);
|
|
62897
|
+
if (next.startsWith("..") || path61.isAbsolute(next)) return null;
|
|
63299
62898
|
return abs;
|
|
63300
62899
|
}
|
|
63301
62900
|
function currentRevision(absPath) {
|
|
@@ -66916,7 +66515,7 @@ var EngramAccessService = class extends SupportPassportAccessServiceBase {
|
|
|
66916
66515
|
const resolvedNamespace = this.resolveReadableNamespace(options.namespace, options.principal);
|
|
66917
66516
|
const storage = await offlineSyncStorageForSnapshot(this.orchestrator, resolvedNamespace);
|
|
66918
66517
|
const storageHash = createHash27("sha256").update(storage.dir).digest("hex").slice(0, 16);
|
|
66919
|
-
const deletions = [...await storage.readDeletionRevisions()].map(([
|
|
66518
|
+
const deletions = [...await storage.readDeletionRevisions()].map(([path62, mtimeMs]) => ({ path: path62, mtimeMs }));
|
|
66920
66519
|
const snapshotBuilder = options.includeContent === false && options.baseFiles && options.baseFiles.length > 0 ? buildOfflineSyncSnapshotFromBase : buildOfflineSyncSnapshot;
|
|
66921
66520
|
const snapshot = await snapshotBuilder({
|
|
66922
66521
|
root: storage.dir,
|
|
@@ -66949,7 +66548,7 @@ var EngramAccessService = class extends SupportPassportAccessServiceBase {
|
|
|
66949
66548
|
excludeFile: createSupportPassportPrivateFileExclusion(storage),
|
|
66950
66549
|
readFile: async ({ filePath }) => storage.readOfflineSyncFile(filePath),
|
|
66951
66550
|
readFileDigest: async ({ filePath }) => storage.digestOfflineSyncFile(filePath),
|
|
66952
|
-
deletions: [...await storage.readDeletionRevisions()].map(([
|
|
66551
|
+
deletions: [...await storage.readDeletionRevisions()].map(([path62, mtimeMs]) => ({ path: path62, mtimeMs })),
|
|
66953
66552
|
signal: options.signal
|
|
66954
66553
|
}),
|
|
66955
66554
|
namespace: resolvedNamespace
|
|
@@ -68055,4 +67654,4 @@ export {
|
|
|
68055
67654
|
EngramAccessService,
|
|
68056
67655
|
AccessAdminOpsSurface
|
|
68057
67656
|
};
|
|
68058
|
-
//# sourceMappingURL=chunk-
|
|
67657
|
+
//# sourceMappingURL=chunk-UAEJKURK.js.map
|