@remnic/core 10.0.145 → 10.0.147
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 +156 -152
- package/dist/access-cli.js +156 -152
- package/dist/access-cli.js.map +1 -1
- package/dist/access-correlation.d.ts +4 -0
- package/dist/access-correlation.d.ts.map +1 -0
- package/dist/access-correlation.js +10 -0
- package/dist/access-extraction-force-flush-preempt.js +156 -152
- package/dist/access-extraction-force-flush.js +156 -152
- package/dist/access-http-briefing.js +156 -152
- package/dist/access-http-query.js +156 -152
- package/dist/access-http.d.ts.map +1 -1
- package/dist/access-http.js +156 -152
- package/dist/access-identity-continuity-surface.js +156 -152
- package/dist/access-lcm-surface.js +156 -152
- package/dist/access-mcp.js +156 -152
- package/dist/access-observe-write-category.js +11 -11
- package/dist/access-observe-write-surface.js +156 -152
- package/dist/access-offline-manifest.js +10 -10
- package/dist/access-operations-batch.js +156 -152
- package/dist/access-operations.js +156 -152
- package/dist/access-recall-concurrency.js +156 -152
- package/dist/access-recall-response.js +156 -152
- package/dist/access-recall-surface.js +156 -152
- package/dist/access-schema.js +7 -7
- package/dist/access-service.d.ts.map +1 -1
- package/dist/access-service.js +156 -152
- package/dist/active-memory-bridge.js +2 -2
- package/dist/active-recall.js +30 -30
- package/dist/adapters/index.js +7 -7
- package/dist/adapters/registry.js +3 -3
- package/dist/auto-sync-PSZJHHXB.js +2 -2
- package/dist/briefing.js +21 -21
- package/dist/buffer.js +1 -1
- package/dist/calibration.js +3 -3
- package/dist/{capsule-crypto-GWVG7LGC.js → capsule-crypto-7FJQINUR.js} +2 -2
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.js +24 -24
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.js +2 -2
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-GB442ZFG.js → chunk-2NGTY22Z.js} +5 -5
- package/dist/{chunk-OWHERGF2.js → chunk-2NLLXCJG.js} +2 -2
- package/dist/{chunk-XVZA6VXC.js → chunk-3SL52JKD.js} +4 -4
- package/dist/chunk-4IJBNRMZ.js +45 -0
- package/dist/chunk-4IJBNRMZ.js.map +1 -0
- package/dist/{chunk-GTW6GPQU.js → chunk-4JKIOAOF.js} +6 -6
- package/dist/{chunk-WN2DASTS.js → chunk-5BE3FLKL.js} +4 -4
- package/dist/{chunk-QFBBSKEU.js → chunk-5BKH4XG5.js} +2 -2
- package/dist/chunk-5JD4DXQX.js +91 -0
- package/dist/chunk-5JD4DXQX.js.map +1 -0
- package/dist/{chunk-FZ6QUOTL.js → chunk-5UYP5IQB.js} +2 -2
- package/dist/{chunk-DCLOMXQL.js → chunk-5ZSN2OFB.js} +31 -31
- package/dist/{chunk-FBV4QGXT.js → chunk-6S37C5UK.js} +2 -2
- package/dist/{chunk-M4IEZGCK.js → chunk-73TPOGS4.js} +6 -6
- package/dist/{chunk-MEYPQLXV.js → chunk-7OWV3GVD.js} +2 -2
- package/dist/{chunk-XIWRF7TG.js → chunk-7P72BY4F.js} +2 -2
- package/dist/{chunk-UWP6PGWN.js → chunk-7QKZOZF4.js} +2 -2
- package/dist/{chunk-DBNZYQCL.js → chunk-AHNGWFNG.js} +2 -2
- package/dist/{chunk-YIOP7IFD.js → chunk-AO5LKFGO.js} +4 -4
- package/dist/{chunk-D3ZISMKY.js → chunk-AWZ5CWSR.js} +10 -10
- package/dist/{chunk-63MKTHYT.js → chunk-B5MB2G3H.js} +2 -2
- package/dist/{chunk-TYOS62PM.js → chunk-BGSYM3SH.js} +2 -2
- package/dist/{chunk-64TIBZPZ.js → chunk-BHZ72ZQ3.js} +2 -2
- package/dist/{chunk-G4NKURT4.js → chunk-C6S353AG.js} +30 -1
- package/dist/chunk-C6S353AG.js.map +1 -0
- package/dist/{chunk-T3M5KJRV.js → chunk-C6Z3H23R.js} +2 -2
- package/dist/{chunk-SEIFDQ6U.js → chunk-CA56BOUE.js} +4 -4
- package/dist/{chunk-UIFWZMO7.js → chunk-CLVILSBR.js} +7 -7
- package/dist/{chunk-GDREJ32D.js → chunk-DOFLNJZD.js} +3 -3
- package/dist/{chunk-Z2OKWO35.js → chunk-E6VI7POW.js} +327 -318
- package/dist/chunk-E6VI7POW.js.map +1 -0
- package/dist/{chunk-SV6OLWPF.js → chunk-EIEANUBO.js} +15 -15
- package/dist/{chunk-PJKTFXE2.js → chunk-EMMUQUHF.js} +16 -6
- package/dist/chunk-EMMUQUHF.js.map +1 -0
- package/dist/{chunk-X2FEUBKD.js → chunk-EYES6ALH.js} +2 -2
- package/dist/{chunk-ENPJX3BB.js → chunk-FMFCQRDM.js} +3 -3
- package/dist/{chunk-IJVU4ILJ.js → chunk-GCHM5BYL.js} +7 -7
- package/dist/{chunk-KCU2ZWBS.js → chunk-GCQIXPWZ.js} +2 -2
- package/dist/{chunk-GKL6QYZO.js → chunk-GMO3BGOF.js} +1 -1
- package/dist/{chunk-OMPX3KLG.js → chunk-H6OTEBPK.js} +2 -2
- package/dist/{chunk-DK3T3Q6A.js → chunk-HADCITEA.js} +8 -8
- package/dist/{chunk-QCJ7Q5BM.js → chunk-HIUIJ4AB.js} +2 -2
- package/dist/{chunk-F4ZHKDBW.js → chunk-HLWXCDUQ.js} +2 -2
- package/dist/{chunk-4RASUAN3.js → chunk-HXFIILGF.js} +4 -4
- package/dist/{chunk-CIEEYVUB.js → chunk-IMULTENA.js} +2 -2
- package/dist/{chunk-EUL3S3LE.js → chunk-J5WI4QRP.js} +4 -4
- package/dist/{chunk-TFHL4WWY.js → chunk-JPVUBL4L.js} +5 -5
- package/dist/{chunk-KBMJWNSY.js → chunk-K6RKNQRD.js} +2 -2
- package/dist/{chunk-BUKK5SWA.js → chunk-KQAFEZQX.js} +2 -2
- package/dist/{chunk-PDVEY4QS.js → chunk-LD7I5AZW.js} +9 -9
- package/dist/{chunk-G3ZUQZGM.js → chunk-MBQVWTCS.js} +2 -2
- package/dist/{chunk-BKR2YCQ5.js → chunk-MKJBZR7J.js} +2 -2
- package/dist/{chunk-ETUMOYGL.js → chunk-NQJAF2Q4.js} +2 -2
- package/dist/{chunk-7TDJZV2S.js → chunk-O7CHKXSF.js} +4 -4
- package/dist/{chunk-ODHFX5JX.js → chunk-OFFT2B5R.js} +15 -15
- package/dist/{chunk-W7K5BP3M.js → chunk-OM5ESBES.js} +2 -2
- package/dist/{chunk-5JW2QIFH.js → chunk-ORPYIVT3.js} +3 -3
- package/dist/chunk-PXY2B7BG.js +51 -0
- package/dist/chunk-PXY2B7BG.js.map +1 -0
- package/dist/{chunk-MVTMKFBW.js → chunk-QDY4TSKK.js} +2 -2
- package/dist/{chunk-7TY5ZHFA.js → chunk-QGV6JVQ7.js} +2 -2
- package/dist/{chunk-4XINO77L.js → chunk-RB7NXZ2E.js} +2 -2
- package/dist/{chunk-GQDO6KHO.js → chunk-RQ6HMDA5.js} +2 -2
- package/dist/{chunk-E7WMDXAW.js → chunk-RSPPAPFI.js} +2 -2
- package/dist/{chunk-LS5VJO5O.js → chunk-SLZJ7HQX.js} +2 -2
- package/dist/{chunk-WQUGCOKF.js → chunk-TFA6HPOA.js} +4 -4
- package/dist/{chunk-6P7U3HWG.js → chunk-TH6OYP6I.js} +3 -3
- package/dist/{chunk-P4YYUDR5.js → chunk-TNACU47L.js} +3 -3
- package/dist/{chunk-KYZFW4LW.js → chunk-TQU2RB4B.js} +2 -2
- package/dist/{chunk-2UOU6CZZ.js → chunk-TVRUUT7U.js} +2 -2
- package/dist/{chunk-IHCXMYSE.js → chunk-U2PSE7MB.js} +2 -2
- package/dist/{chunk-D3ZKHLN2.js → chunk-ULLGI6XR.js} +2 -2
- package/dist/{chunk-U62EINFH.js → chunk-UMC6F3Y4.js} +3 -3
- package/dist/{chunk-FF6N7BXC.js → chunk-UWVMD54T.js} +2 -2
- package/dist/{chunk-PCMGMPQZ.js → chunk-X4EF7IG3.js} +4 -4
- package/dist/{chunk-UVYI6VIX.js → chunk-X7Y7WX73.js} +1 -1
- package/dist/{chunk-GA3Y7GZR.js → chunk-XCJDDXJX.js} +2 -2
- package/dist/{chunk-YGPRFYV6.js → chunk-YCASWFI6.js} +3 -3
- package/dist/chunk-YRHBSYQR.js +15 -0
- package/dist/chunk-YRHBSYQR.js.map +1 -0
- package/dist/{chunk-IBPE3Q5M.js → chunk-Z3GZRG5Z.js} +2 -2
- package/dist/{chunk-K3FH3LAQ.js → chunk-ZG4GNPRE.js} +10 -10
- package/dist/{chunk-ADBON4FI.js → chunk-ZIXP27JK.js} +10 -10
- package/dist/cli.js +156 -152
- package/dist/coding/export-okf-codegraph.js +20 -20
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.js +22 -22
- package/dist/config.js +30 -30
- package/dist/connectors/codex-materialize-runner.js +21 -21
- package/dist/connectors/index.js +21 -21
- package/dist/contradiction/index.js +7 -7
- package/dist/convergence-refresh.js +23 -23
- package/dist/conversation-index/backend.js +2 -2
- package/dist/corpus-watermark.js +23 -23
- package/dist/deep-recall-http-glue.js +8 -8
- package/dist/deep-recall.js +2 -2
- package/dist/entity-retrieval.js +22 -22
- package/dist/explicit-capture.js +156 -152
- package/dist/extraction-evidence-class.js +2 -2
- package/dist/extraction-source-grounding.js +3 -3
- package/dist/extraction-span-materialize.js +2 -2
- package/dist/extraction.js +29 -29
- package/dist/{graph-edge-decay-OEX5OGMI.js → graph-edge-decay-BC3IO2J4.js} +5 -5
- package/dist/graph-jsonl.js +3 -3
- package/dist/graph-snapshot.js +3 -3
- package/dist/graph.js +4 -4
- package/dist/harmonic-retrieval.js +21 -21
- package/dist/index.js +265 -261
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/index.js +10 -10
- package/dist/local-llm.js +2 -2
- package/dist/location/index.js +22 -22
- package/dist/maintenance/memory-governance.js +21 -21
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +21 -21
- package/dist/maintenance/rebuild-memory-projection-runner.js +23 -23
- package/dist/maintenance/rebuild-memory-projection.js +22 -22
- package/dist/memory-browse.js +1 -1
- package/dist/memory-subject.js +1 -1
- package/dist/namespaces/migrate.js +22 -22
- package/dist/namespaces/search.js +7 -7
- package/dist/namespaces/storage.js +21 -21
- package/dist/offline-sync-changeset-generations.js +3 -3
- package/dist/offline-sync-embedding-generation.js +2 -2
- package/dist/offline-sync-snapshot-stream.js +5 -5
- package/dist/offline-sync.js +7 -7
- package/dist/operator-doctor-corpus.js +24 -24
- package/dist/operator-toolkit.js +39 -39
- package/dist/orchestration/backlog-scheduler.js +157 -153
- package/dist/orchestration/backlog-scheduler.js.map +1 -1
- package/dist/orchestration/buffer-drain-runner.js +157 -153
- package/dist/orchestration/maintenance.js +32 -32
- package/dist/orchestration/recall-internal.d.ts.map +1 -1
- package/dist/orchestrator.js +156 -152
- package/dist/provenance.js +2 -2
- package/dist/recall-attempt-timing.d.ts +18 -0
- package/dist/recall-attempt-timing.d.ts.map +1 -0
- package/dist/recall-attempt-timing.js +14 -0
- package/dist/recall-attempt-timing.js.map +1 -0
- package/dist/recall-enrichment-promise.d.ts +22 -0
- package/dist/recall-enrichment-promise.d.ts.map +1 -0
- package/dist/recall-enrichment-promise.js +10 -0
- package/dist/recall-enrichment-promise.js.map +1 -0
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-navigation.js +156 -152
- package/dist/recall-phase2-timing.d.ts +44 -0
- package/dist/recall-phase2-timing.d.ts.map +1 -0
- package/dist/recall-phase2-timing.js +22 -0
- package/dist/recall-phase2-timing.js.map +1 -0
- package/dist/recall-timings.d.ts +35 -0
- package/dist/recall-timings.d.ts.map +1 -1
- package/dist/recall-timings.js +2 -1
- package/dist/recall-why-service.js +2 -2
- 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/reconcile/manifest.js +3 -3
- package/dist/{resolution-A3NAI3YE.js → resolution-TCO63RRC.js} +8 -8
- package/dist/resolution-TCO63RRC.js.map +1 -0
- package/dist/resume-bundles.js +31 -31
- package/dist/salvage-envelope.js +1 -1
- package/dist/search/factory.js +6 -6
- package/dist/search/index.js +12 -12
- package/dist/semantic-consolidation.js +22 -22
- package/dist/semantic-rule-promotion.js +21 -21
- package/dist/semantic-rule-verifier.js +21 -21
- package/dist/source-agent-qualifier.js +23 -23
- package/dist/standup/build.js +21 -21
- package/dist/storage.js +20 -20
- package/dist/subject-config.js +1 -1
- package/dist/summarizer.js +4 -4
- package/dist/support-passport/index.js +7 -7
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/transfer/export-okf.js +21 -21
- package/dist/verified-recall.js +21 -21
- package/dist/whitespace.d.ts.map +1 -1
- package/dist/whitespace.js +1 -1
- package/dist/who-knows-cli.js +22 -22
- package/dist/who-knows.js +21 -21
- package/dist/write-envelope.js +1 -1
- package/package.json +2 -2
- package/src/access-correlation.ts +17 -0
- package/src/access-http.ts +7 -8
- package/src/access-service.ts +3 -1
- package/src/orchestration/recall-internal.ts +63 -75
- package/src/recall-attempt-timing.ts +78 -0
- package/src/recall-enrichment-promise.ts +62 -0
- package/src/recall-phase2-timing.ts +146 -0
- package/src/recall-timings-access.test.ts +140 -2
- package/src/recall-timings-request-contract.test.ts +488 -0
- package/src/recall-timings.ts +70 -0
- package/src/whitespace.test.ts +48 -0
- package/src/whitespace.ts +19 -5
- package/dist/chunk-G4NKURT4.js.map +0 -1
- package/dist/chunk-PJKTFXE2.js.map +0 -1
- package/dist/chunk-Z2OKWO35.js.map +0 -1
- /package/dist/{capsule-crypto-GWVG7LGC.js.map → access-correlation.js.map} +0 -0
- /package/dist/{graph-edge-decay-OEX5OGMI.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
- /package/dist/{chunk-GB442ZFG.js.map → chunk-2NGTY22Z.js.map} +0 -0
- /package/dist/{chunk-OWHERGF2.js.map → chunk-2NLLXCJG.js.map} +0 -0
- /package/dist/{chunk-XVZA6VXC.js.map → chunk-3SL52JKD.js.map} +0 -0
- /package/dist/{chunk-GTW6GPQU.js.map → chunk-4JKIOAOF.js.map} +0 -0
- /package/dist/{chunk-WN2DASTS.js.map → chunk-5BE3FLKL.js.map} +0 -0
- /package/dist/{chunk-QFBBSKEU.js.map → chunk-5BKH4XG5.js.map} +0 -0
- /package/dist/{chunk-FZ6QUOTL.js.map → chunk-5UYP5IQB.js.map} +0 -0
- /package/dist/{chunk-DCLOMXQL.js.map → chunk-5ZSN2OFB.js.map} +0 -0
- /package/dist/{chunk-FBV4QGXT.js.map → chunk-6S37C5UK.js.map} +0 -0
- /package/dist/{chunk-M4IEZGCK.js.map → chunk-73TPOGS4.js.map} +0 -0
- /package/dist/{chunk-MEYPQLXV.js.map → chunk-7OWV3GVD.js.map} +0 -0
- /package/dist/{chunk-XIWRF7TG.js.map → chunk-7P72BY4F.js.map} +0 -0
- /package/dist/{chunk-UWP6PGWN.js.map → chunk-7QKZOZF4.js.map} +0 -0
- /package/dist/{chunk-DBNZYQCL.js.map → chunk-AHNGWFNG.js.map} +0 -0
- /package/dist/{chunk-YIOP7IFD.js.map → chunk-AO5LKFGO.js.map} +0 -0
- /package/dist/{chunk-D3ZISMKY.js.map → chunk-AWZ5CWSR.js.map} +0 -0
- /package/dist/{chunk-63MKTHYT.js.map → chunk-B5MB2G3H.js.map} +0 -0
- /package/dist/{chunk-TYOS62PM.js.map → chunk-BGSYM3SH.js.map} +0 -0
- /package/dist/{chunk-64TIBZPZ.js.map → chunk-BHZ72ZQ3.js.map} +0 -0
- /package/dist/{chunk-T3M5KJRV.js.map → chunk-C6Z3H23R.js.map} +0 -0
- /package/dist/{chunk-SEIFDQ6U.js.map → chunk-CA56BOUE.js.map} +0 -0
- /package/dist/{chunk-UIFWZMO7.js.map → chunk-CLVILSBR.js.map} +0 -0
- /package/dist/{chunk-GDREJ32D.js.map → chunk-DOFLNJZD.js.map} +0 -0
- /package/dist/{chunk-SV6OLWPF.js.map → chunk-EIEANUBO.js.map} +0 -0
- /package/dist/{chunk-X2FEUBKD.js.map → chunk-EYES6ALH.js.map} +0 -0
- /package/dist/{chunk-ENPJX3BB.js.map → chunk-FMFCQRDM.js.map} +0 -0
- /package/dist/{chunk-IJVU4ILJ.js.map → chunk-GCHM5BYL.js.map} +0 -0
- /package/dist/{chunk-KCU2ZWBS.js.map → chunk-GCQIXPWZ.js.map} +0 -0
- /package/dist/{chunk-GKL6QYZO.js.map → chunk-GMO3BGOF.js.map} +0 -0
- /package/dist/{chunk-OMPX3KLG.js.map → chunk-H6OTEBPK.js.map} +0 -0
- /package/dist/{chunk-DK3T3Q6A.js.map → chunk-HADCITEA.js.map} +0 -0
- /package/dist/{chunk-QCJ7Q5BM.js.map → chunk-HIUIJ4AB.js.map} +0 -0
- /package/dist/{chunk-F4ZHKDBW.js.map → chunk-HLWXCDUQ.js.map} +0 -0
- /package/dist/{chunk-4RASUAN3.js.map → chunk-HXFIILGF.js.map} +0 -0
- /package/dist/{chunk-CIEEYVUB.js.map → chunk-IMULTENA.js.map} +0 -0
- /package/dist/{chunk-EUL3S3LE.js.map → chunk-J5WI4QRP.js.map} +0 -0
- /package/dist/{chunk-TFHL4WWY.js.map → chunk-JPVUBL4L.js.map} +0 -0
- /package/dist/{chunk-KBMJWNSY.js.map → chunk-K6RKNQRD.js.map} +0 -0
- /package/dist/{chunk-BUKK5SWA.js.map → chunk-KQAFEZQX.js.map} +0 -0
- /package/dist/{chunk-PDVEY4QS.js.map → chunk-LD7I5AZW.js.map} +0 -0
- /package/dist/{chunk-G3ZUQZGM.js.map → chunk-MBQVWTCS.js.map} +0 -0
- /package/dist/{chunk-BKR2YCQ5.js.map → chunk-MKJBZR7J.js.map} +0 -0
- /package/dist/{chunk-ETUMOYGL.js.map → chunk-NQJAF2Q4.js.map} +0 -0
- /package/dist/{chunk-7TDJZV2S.js.map → chunk-O7CHKXSF.js.map} +0 -0
- /package/dist/{chunk-ODHFX5JX.js.map → chunk-OFFT2B5R.js.map} +0 -0
- /package/dist/{chunk-W7K5BP3M.js.map → chunk-OM5ESBES.js.map} +0 -0
- /package/dist/{chunk-5JW2QIFH.js.map → chunk-ORPYIVT3.js.map} +0 -0
- /package/dist/{chunk-MVTMKFBW.js.map → chunk-QDY4TSKK.js.map} +0 -0
- /package/dist/{chunk-7TY5ZHFA.js.map → chunk-QGV6JVQ7.js.map} +0 -0
- /package/dist/{chunk-4XINO77L.js.map → chunk-RB7NXZ2E.js.map} +0 -0
- /package/dist/{chunk-GQDO6KHO.js.map → chunk-RQ6HMDA5.js.map} +0 -0
- /package/dist/{chunk-E7WMDXAW.js.map → chunk-RSPPAPFI.js.map} +0 -0
- /package/dist/{chunk-LS5VJO5O.js.map → chunk-SLZJ7HQX.js.map} +0 -0
- /package/dist/{chunk-WQUGCOKF.js.map → chunk-TFA6HPOA.js.map} +0 -0
- /package/dist/{chunk-6P7U3HWG.js.map → chunk-TH6OYP6I.js.map} +0 -0
- /package/dist/{chunk-P4YYUDR5.js.map → chunk-TNACU47L.js.map} +0 -0
- /package/dist/{chunk-KYZFW4LW.js.map → chunk-TQU2RB4B.js.map} +0 -0
- /package/dist/{chunk-2UOU6CZZ.js.map → chunk-TVRUUT7U.js.map} +0 -0
- /package/dist/{chunk-IHCXMYSE.js.map → chunk-U2PSE7MB.js.map} +0 -0
- /package/dist/{chunk-D3ZKHLN2.js.map → chunk-ULLGI6XR.js.map} +0 -0
- /package/dist/{chunk-U62EINFH.js.map → chunk-UMC6F3Y4.js.map} +0 -0
- /package/dist/{chunk-FF6N7BXC.js.map → chunk-UWVMD54T.js.map} +0 -0
- /package/dist/{chunk-PCMGMPQZ.js.map → chunk-X4EF7IG3.js.map} +0 -0
- /package/dist/{chunk-UVYI6VIX.js.map → chunk-X7Y7WX73.js.map} +0 -0
- /package/dist/{chunk-GA3Y7GZR.js.map → chunk-XCJDDXJX.js.map} +0 -0
- /package/dist/{chunk-YGPRFYV6.js.map → chunk-YCASWFI6.js.map} +0 -0
- /package/dist/{chunk-IBPE3Q5M.js.map → chunk-Z3GZRG5Z.js.map} +0 -0
- /package/dist/{chunk-K3FH3LAQ.js.map → chunk-ZG4GNPRE.js.map} +0 -0
- /package/dist/{chunk-ADBON4FI.js.map → chunk-ZIXP27JK.js.map} +0 -0
- /package/dist/{resolution-A3NAI3YE.js.map → graph-edge-decay-BC3IO2J4.js.map} +0 -0
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
listMemoryGovernanceRuns,
|
|
6
6
|
readMemoryGovernanceRunArtifact
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AHNGWFNG.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-5ZSN2OFB.js";
|
|
14
14
|
import {
|
|
15
15
|
normalizeProjectionPreview,
|
|
16
16
|
normalizeProjectionTags
|
|
@@ -43,12 +43,12 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
openBetterSqlite3
|
|
45
45
|
} from "./chunk-RL6NEVXT.js";
|
|
46
|
-
import {
|
|
47
|
-
commitPreparedFileAtomically
|
|
48
|
-
} from "./chunk-BTNNL7ZW.js";
|
|
49
46
|
import {
|
|
50
47
|
isSupportPassportPrivateMemory
|
|
51
48
|
} from "./chunk-TSUSHXBW.js";
|
|
49
|
+
import {
|
|
50
|
+
commitPreparedFileAtomically
|
|
51
|
+
} from "./chunk-BTNNL7ZW.js";
|
|
52
52
|
import {
|
|
53
53
|
throwIfAborted
|
|
54
54
|
} from "./chunk-R2MBW2S4.js";
|
|
@@ -1156,4 +1156,4 @@ export {
|
|
|
1156
1156
|
verifyMemoryProjection,
|
|
1157
1157
|
repairMemoryProjection
|
|
1158
1158
|
};
|
|
1159
|
-
//# sourceMappingURL=chunk-
|
|
1159
|
+
//# sourceMappingURL=chunk-4JKIOAOF.js.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
matchesOfflineSyncDefaultExclude
|
|
3
|
+
} from "./chunk-63LFM77Z.js";
|
|
1
4
|
import {
|
|
2
5
|
EMBEDDING_SHARD_FILE_PATTERN
|
|
3
6
|
} from "./chunk-LDWE7OZS.js";
|
|
@@ -5,9 +8,6 @@ import {
|
|
|
5
8
|
prepareSafeArchiveRoot,
|
|
6
9
|
resolveSafeArchiveTarget
|
|
7
10
|
} from "./chunk-GCGJW34D.js";
|
|
8
|
-
import {
|
|
9
|
-
matchesOfflineSyncDefaultExclude
|
|
10
|
-
} from "./chunk-63LFM77Z.js";
|
|
11
11
|
import {
|
|
12
12
|
assertEmbeddingGenerationLockHeld,
|
|
13
13
|
embeddingGenerationLockPath,
|
|
@@ -709,4 +709,4 @@ export {
|
|
|
709
709
|
divergedEmbeddingGenerationDeferrals,
|
|
710
710
|
applyIncomingEmbeddingGenerations
|
|
711
711
|
};
|
|
712
|
-
//# sourceMappingURL=chunk-
|
|
712
|
+
//# sourceMappingURL=chunk-5BE3FLKL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ZSN2OFB.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-5BKH4XG5.js.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// src/recall-phase2-timing.ts
|
|
2
|
+
var PHASE2_AWAIT_NAMES = [
|
|
3
|
+
"Harmonic",
|
|
4
|
+
"GraphSnapshot",
|
|
5
|
+
"IntentSnapshot",
|
|
6
|
+
"Compression",
|
|
7
|
+
"Compounding",
|
|
8
|
+
"Questions",
|
|
9
|
+
"Prefilter"
|
|
10
|
+
];
|
|
11
|
+
var PHASE2_AWAIT_TOTAL_NAMES = [
|
|
12
|
+
"Harmonic",
|
|
13
|
+
"Compounding",
|
|
14
|
+
"Prefilter"
|
|
15
|
+
];
|
|
16
|
+
var PHASE2_AWAIT_STATUSES = [
|
|
17
|
+
"ok",
|
|
18
|
+
"timeout",
|
|
19
|
+
"error",
|
|
20
|
+
"skipped"
|
|
21
|
+
];
|
|
22
|
+
function phase2MsField(name) {
|
|
23
|
+
return `phase2${name}Ms`;
|
|
24
|
+
}
|
|
25
|
+
function phase2StatusField(name) {
|
|
26
|
+
return `phase2${name}Status`;
|
|
27
|
+
}
|
|
28
|
+
function phase2TotalField(name) {
|
|
29
|
+
return `phase2${name}TotalMs`;
|
|
30
|
+
}
|
|
31
|
+
function recordPhase2Await(sink, name, timing) {
|
|
32
|
+
sink[phase2MsField(name)] = `${Math.max(0, Math.round(timing.ms))}ms`;
|
|
33
|
+
sink[phase2StatusField(name)] = timing.status;
|
|
34
|
+
if (timing.totalMs !== void 0) {
|
|
35
|
+
sink[phase2TotalField(name)] = `${Math.max(0, Math.round(timing.totalMs))}ms`;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function createPhase2Timer(sink, isAborted) {
|
|
39
|
+
return {
|
|
40
|
+
async step(name, run) {
|
|
41
|
+
const awaitStartMs = performance.now();
|
|
42
|
+
try {
|
|
43
|
+
const value = await run();
|
|
44
|
+
recordPhase2Await(sink, name, { status: "ok", ms: performance.now() - awaitStartMs });
|
|
45
|
+
return value;
|
|
46
|
+
} catch (err) {
|
|
47
|
+
recordPhase2Await(sink, name, {
|
|
48
|
+
status: isAborted() ? "skipped" : "error",
|
|
49
|
+
ms: performance.now() - awaitStartMs
|
|
50
|
+
});
|
|
51
|
+
throw err;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
skipped(name) {
|
|
55
|
+
recordPhase2Await(sink, name, { status: "skipped", ms: 0 });
|
|
56
|
+
},
|
|
57
|
+
async enrichment(name, startedMs, isSkipped, run) {
|
|
58
|
+
const awaitStartMs = performance.now();
|
|
59
|
+
const reported = [];
|
|
60
|
+
let threw = false;
|
|
61
|
+
try {
|
|
62
|
+
return await run((status) => {
|
|
63
|
+
reported.push(status);
|
|
64
|
+
});
|
|
65
|
+
} catch (err) {
|
|
66
|
+
threw = true;
|
|
67
|
+
throw err;
|
|
68
|
+
} finally {
|
|
69
|
+
const nowMs = performance.now();
|
|
70
|
+
const status = threw ? isAborted() ? "skipped" : "error" : reported.at(-1) ?? "ok";
|
|
71
|
+
recordPhase2Await(
|
|
72
|
+
sink,
|
|
73
|
+
name,
|
|
74
|
+
status === "ok" && isSkipped() ? { status: "skipped", ms: 0, totalMs: 0 } : { status, ms: nowMs - awaitStartMs, totalMs: nowMs - startedMs }
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
PHASE2_AWAIT_NAMES,
|
|
83
|
+
PHASE2_AWAIT_TOTAL_NAMES,
|
|
84
|
+
PHASE2_AWAIT_STATUSES,
|
|
85
|
+
phase2MsField,
|
|
86
|
+
phase2StatusField,
|
|
87
|
+
phase2TotalField,
|
|
88
|
+
recordPhase2Await,
|
|
89
|
+
createPhase2Timer
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=chunk-5JD4DXQX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/recall-phase2-timing.ts"],"sourcesContent":["/**\n * Phase-2 await timing fields for the recall-timings attempt record (issue\n * #1830). Each instrumented phase-2 await contributes three optionally-named\n * fields: `phase2<Name>Ms` (monotonic elapsed of the await itself),\n * `phase2<Name>Status` (ok | timeout | error | skipped), and — for promises\n * started earlier in phase 1 and awaited later — `phase2<Name>TotalMs`\n * (monotonic time since the promise was created). The await fields are\n * OVERLAPPING, not additive: awaits of promises started earlier include time\n * spent doing other phase-2 work.\n */\n\nexport type Phase2AwaitStatus = \"ok\" | \"timeout\" | \"error\" | \"skipped\";\n\nexport const PHASE2_AWAIT_NAMES = [\n \"Harmonic\",\n \"GraphSnapshot\",\n \"IntentSnapshot\",\n \"Compression\",\n \"Compounding\",\n \"Questions\",\n \"Prefilter\",\n] as const;\n\nexport type Phase2AwaitName = (typeof PHASE2_AWAIT_NAMES)[number];\n\n/** Awaits of promises started earlier in phase 1; their await time overlaps earlier work. */\nexport const PHASE2_AWAIT_TOTAL_NAMES: readonly Phase2AwaitName[] = [\n \"Harmonic\",\n \"Compounding\",\n \"Prefilter\",\n];\n\nexport const PHASE2_AWAIT_STATUSES: readonly Phase2AwaitStatus[] = [\n \"ok\",\n \"timeout\",\n \"error\",\n \"skipped\",\n];\n\nexport function phase2MsField(name: Phase2AwaitName): string {\n return `phase2${name}Ms`;\n}\n\nexport function phase2StatusField(name: Phase2AwaitName): string {\n return `phase2${name}Status`;\n}\n\nexport function phase2TotalField(name: Phase2AwaitName): string {\n return `phase2${name}TotalMs`;\n}\n\nexport interface Phase2AwaitTiming {\n status: Phase2AwaitStatus;\n /** Monotonic elapsed ms of the await itself (measured at the await site). */\n ms: number;\n /** Monotonic ms since the awaited promise was created (started-earlier awaits only). */\n totalMs?: number;\n}\n\n/** Fold one await's timing into the recall pipeline's flat timing payload. Values stay string-encoded (\"12ms\") so the recall-timings sanitizer parses them like every other phase. */\nexport function recordPhase2Await(\n sink: Record<string, string>,\n name: Phase2AwaitName,\n timing: Phase2AwaitTiming,\n): void {\n sink[phase2MsField(name)] = `${Math.max(0, Math.round(timing.ms))}ms`;\n sink[phase2StatusField(name)] = timing.status;\n if (timing.totalMs !== undefined) {\n sink[phase2TotalField(name)] = `${Math.max(0, Math.round(timing.totalMs))}ms`;\n }\n}\n\nexport interface Phase2Timer {\n /** Time one direct phase-2 await. A throw is re-thrown unchanged after its status is recorded. */\n step<T>(name: Phase2AwaitName, run: () => Promise<T>): Promise<T>;\n /** Record a phase-2 await that did not run (section disabled): 0 ms, status skipped. */\n skipped(name: Phase2AwaitName): void;\n /**\n * Time one await of an enrichment promise started earlier (`startedMs` is its\n * performance.now() creation time). `run` reports the await's own outcome\n * through `onStatus`; `isSkipped` is read after the await so a section that\n * skipped itself (disabled / limit 0) is recorded as skipped, not ok.\n */\n enrichment<T>(\n name: Phase2AwaitName,\n startedMs: number,\n isSkipped: () => boolean,\n run: (onStatus: (status: Phase2AwaitStatus) => void) => Promise<T>,\n ): Promise<T>;\n}\n\n/** Per-recall phase-2 await timer; all durations are performance.now() deltas, never wall clock. */\nexport function createPhase2Timer(\n sink: Record<string, string>,\n isAborted: () => boolean,\n): Phase2Timer {\n return {\n async step<T>(name: Phase2AwaitName, run: () => Promise<T>): Promise<T> {\n const awaitStartMs = performance.now();\n try {\n const value = await run();\n recordPhase2Await(sink, name, { status: \"ok\", ms: performance.now() - awaitStartMs });\n return value;\n } catch (err) {\n recordPhase2Await(sink, name, {\n status: isAborted() ? \"skipped\" : \"error\",\n ms: performance.now() - awaitStartMs,\n });\n throw err;\n }\n },\n skipped(name: Phase2AwaitName): void {\n recordPhase2Await(sink, name, { status: \"skipped\", ms: 0 });\n },\n async enrichment<T>(\n name: Phase2AwaitName,\n startedMs: number,\n isSkipped: () => boolean,\n run: (onStatus: (status: Phase2AwaitStatus) => void) => Promise<T>,\n ): Promise<T> {\n const awaitStartMs = performance.now();\n const reported: Phase2AwaitStatus[] = [];\n let threw = false;\n try {\n return await run((status) => {\n reported.push(status);\n });\n } catch (err) {\n threw = true;\n throw err;\n } finally {\n const nowMs = performance.now();\n const status: Phase2AwaitStatus = threw\n ? (isAborted() ? \"skipped\" : \"error\")\n : (reported.at(-1) ?? \"ok\");\n recordPhase2Await(\n sink,\n name,\n status === \"ok\" && isSkipped()\n ? { status: \"skipped\", ms: 0, totalMs: 0 }\n : { status, ms: nowMs - awaitStartMs, totalMs: nowMs - startedMs },\n );\n }\n },\n };\n}\n"],"mappings":";AAaO,IAAM,qBAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAKO,IAAM,2BAAuD;AAAA,EAClE;AAAA,EACA;AAAA,EACA;AACF;AAEO,IAAM,wBAAsD;AAAA,EACjE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,SAAS,cAAc,MAA+B;AAC3D,SAAO,SAAS,IAAI;AACtB;AAEO,SAAS,kBAAkB,MAA+B;AAC/D,SAAO,SAAS,IAAI;AACtB;AAEO,SAAS,iBAAiB,MAA+B;AAC9D,SAAO,SAAS,IAAI;AACtB;AAWO,SAAS,kBACd,MACA,MACA,QACM;AACN,OAAK,cAAc,IAAI,CAAC,IAAI,GAAG,KAAK,IAAI,GAAG,KAAK,MAAM,OAAO,EAAE,CAAC,CAAC;AACjE,OAAK,kBAAkB,IAAI,CAAC,IAAI,OAAO;AACvC,MAAI,OAAO,YAAY,QAAW;AAChC,SAAK,iBAAiB,IAAI,CAAC,IAAI,GAAG,KAAK,IAAI,GAAG,KAAK,MAAM,OAAO,OAAO,CAAC,CAAC;AAAA,EAC3E;AACF;AAsBO,SAAS,kBACd,MACA,WACa;AACb,SAAO;AAAA,IACL,MAAM,KAAQ,MAAuB,KAAmC;AACtE,YAAM,eAAe,YAAY,IAAI;AACrC,UAAI;AACF,cAAM,QAAQ,MAAM,IAAI;AACxB,0BAAkB,MAAM,MAAM,EAAE,QAAQ,MAAM,IAAI,YAAY,IAAI,IAAI,aAAa,CAAC;AACpF,eAAO;AAAA,MACT,SAAS,KAAK;AACZ,0BAAkB,MAAM,MAAM;AAAA,UAC5B,QAAQ,UAAU,IAAI,YAAY;AAAA,UAClC,IAAI,YAAY,IAAI,IAAI;AAAA,QAC1B,CAAC;AACD,cAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,QAAQ,MAA6B;AACnC,wBAAkB,MAAM,MAAM,EAAE,QAAQ,WAAW,IAAI,EAAE,CAAC;AAAA,IAC5D;AAAA,IACA,MAAM,WACJ,MACA,WACA,WACA,KACY;AACZ,YAAM,eAAe,YAAY,IAAI;AACrC,YAAM,WAAgC,CAAC;AACvC,UAAI,QAAQ;AACZ,UAAI;AACF,eAAO,MAAM,IAAI,CAAC,WAAW;AAC3B,mBAAS,KAAK,MAAM;AAAA,QACtB,CAAC;AAAA,MACH,SAAS,KAAK;AACZ,gBAAQ;AACR,cAAM;AAAA,MACR,UAAE;AACA,cAAM,QAAQ,YAAY,IAAI;AAC9B,cAAM,SAA4B,QAC7B,UAAU,IAAI,YAAY,UAC1B,SAAS,GAAG,EAAE,KAAK;AACxB;AAAA,UACE;AAAA,UACA;AAAA,UACA,WAAW,QAAQ,UAAU,IACzB,EAAE,QAAQ,WAAW,IAAI,GAAG,SAAS,EAAE,IACvC,EAAE,QAAQ,IAAI,QAAQ,cAAc,SAAS,QAAQ,UAAU;AAAA,QACrE;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KJTKLXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5ZSN2OFB.js";
|
|
7
7
|
import {
|
|
8
8
|
assertInjectedStorageRooted
|
|
9
9
|
} from "./chunk-BNZAR6PO.js";
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
backupExistingLedger,
|
|
261
261
|
rebuildMemoryLifecycleLedger
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-5UYP5IQB.js.map
|
|
@@ -4,11 +4,6 @@ import {
|
|
|
4
4
|
buildRetiredFactTombstoneInputs,
|
|
5
5
|
collectRetiredMemoriesForRebuild
|
|
6
6
|
} from "./chunk-QGVCFVX6.js";
|
|
7
|
-
import {
|
|
8
|
-
getFingerprint,
|
|
9
|
-
migrateLegacyEntityCanonicalIds,
|
|
10
|
-
validateRoots
|
|
11
|
-
} from "./chunk-AW56K4SI.js";
|
|
12
7
|
import {
|
|
13
8
|
WEARABLES_DIR_NAME,
|
|
14
9
|
escapeSegmentText,
|
|
@@ -20,13 +15,18 @@ import {
|
|
|
20
15
|
unescapeSegmentText,
|
|
21
16
|
unescapeSpeakerLabel
|
|
22
17
|
} from "./chunk-UHVXE24Y.js";
|
|
18
|
+
import {
|
|
19
|
+
getFingerprint,
|
|
20
|
+
migrateLegacyEntityCanonicalIds,
|
|
21
|
+
validateRoots
|
|
22
|
+
} from "./chunk-AW56K4SI.js";
|
|
23
23
|
import {
|
|
24
24
|
BufferSessionFiles
|
|
25
25
|
} from "./chunk-SDGD6MYV.js";
|
|
26
26
|
import {
|
|
27
27
|
normalizeQmdResultPath,
|
|
28
28
|
resolveNamespaceResultPath
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XCJDDXJX.js";
|
|
30
30
|
import {
|
|
31
31
|
withholdToolScopedFromSharedNamespace
|
|
32
32
|
} from "./chunk-S2V7RUCL.js";
|
|
@@ -45,9 +45,6 @@ import {
|
|
|
45
45
|
createMemorySnapshot,
|
|
46
46
|
loadTimeStamps
|
|
47
47
|
} from "./chunk-L76BQSWB.js";
|
|
48
|
-
import {
|
|
49
|
-
rotateMarkdownFileToArchive
|
|
50
|
-
} from "./chunk-DM2T26WE.js";
|
|
51
48
|
import {
|
|
52
49
|
closeContinuityIncidentRecord,
|
|
53
50
|
createContinuityIncidentRecord,
|
|
@@ -57,12 +54,15 @@ import {
|
|
|
57
54
|
serializeContinuityIncident,
|
|
58
55
|
upsertContinuityLoopInMarkdown
|
|
59
56
|
} from "./chunk-LDXUBPMO.js";
|
|
57
|
+
import {
|
|
58
|
+
rotateMarkdownFileToArchive
|
|
59
|
+
} from "./chunk-DM2T26WE.js";
|
|
60
60
|
import {
|
|
61
61
|
parseProvenanceSources,
|
|
62
62
|
parseProvenanceTag,
|
|
63
63
|
reconcileProvenanceRead,
|
|
64
64
|
serializeProvenanceFields
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-UWVMD54T.js";
|
|
66
66
|
import {
|
|
67
67
|
parseFaithfulnessField,
|
|
68
68
|
serializeFaithfulnessFields
|
|
@@ -126,12 +126,6 @@ import {
|
|
|
126
126
|
import {
|
|
127
127
|
supersessionKeysForFact
|
|
128
128
|
} from "./chunk-5WITETWU.js";
|
|
129
|
-
import {
|
|
130
|
-
parseOriginClass
|
|
131
|
-
} from "./chunk-23G5P7TA.js";
|
|
132
|
-
import {
|
|
133
|
-
scopedCaptureWriteLockLimits
|
|
134
|
-
} from "./chunk-7VLBZKNB.js";
|
|
135
129
|
import {
|
|
136
130
|
TombstoneBlockedCaptureWriteLock,
|
|
137
131
|
buildCapturePathLockIdentity,
|
|
@@ -142,8 +136,11 @@ import {
|
|
|
142
136
|
tombstoneBlocked
|
|
143
137
|
} from "./chunk-Y33KJ556.js";
|
|
144
138
|
import {
|
|
145
|
-
|
|
146
|
-
} from "./chunk-
|
|
139
|
+
parseOriginClass
|
|
140
|
+
} from "./chunk-23G5P7TA.js";
|
|
141
|
+
import {
|
|
142
|
+
scopedCaptureWriteLockLimits
|
|
143
|
+
} from "./chunk-7VLBZKNB.js";
|
|
147
144
|
import {
|
|
148
145
|
archive_mutation_version_exports,
|
|
149
146
|
bumpArchiveMutationForPath,
|
|
@@ -151,6 +148,13 @@ import {
|
|
|
151
148
|
getArchiveMutationVersionForDir,
|
|
152
149
|
recordArchiveDelete
|
|
153
150
|
} from "./chunk-W5BIQOAJ.js";
|
|
151
|
+
import {
|
|
152
|
+
selectArtifactMatches
|
|
153
|
+
} from "./chunk-HADD45AR.js";
|
|
154
|
+
import {
|
|
155
|
+
SPECULATIVE_TTL_DAYS,
|
|
156
|
+
confidenceTier
|
|
157
|
+
} from "./chunk-KJ3Z7JHF.js";
|
|
154
158
|
import {
|
|
155
159
|
composeMemoryEnvelope,
|
|
156
160
|
isSealedMemoryEnvelope,
|
|
@@ -194,6 +198,9 @@ import {
|
|
|
194
198
|
readProjectedMemoryTimeline,
|
|
195
199
|
updateProjectedMemoryPath
|
|
196
200
|
} from "./chunk-AL3UYZ5N.js";
|
|
201
|
+
import {
|
|
202
|
+
isSupportPassportPrivateMemory
|
|
203
|
+
} from "./chunk-TSUSHXBW.js";
|
|
197
204
|
import {
|
|
198
205
|
CONTENT_HASH_INDEX_RETRY_MAX_DELAY_MS,
|
|
199
206
|
ContentHashIndex,
|
|
@@ -202,18 +209,6 @@ import {
|
|
|
202
209
|
import {
|
|
203
210
|
computeLegacyContentHash
|
|
204
211
|
} from "./chunk-5FVVY2EB.js";
|
|
205
|
-
import {
|
|
206
|
-
serializeMutations,
|
|
207
|
-
updateMetaSerialized,
|
|
208
|
-
withHeldFileLock
|
|
209
|
-
} from "./chunk-EBV6VXKF.js";
|
|
210
|
-
import {
|
|
211
|
-
SPECULATIVE_TTL_DAYS,
|
|
212
|
-
confidenceTier
|
|
213
|
-
} from "./chunk-KJ3Z7JHF.js";
|
|
214
|
-
import {
|
|
215
|
-
isSupportPassportPrivateMemory
|
|
216
|
-
} from "./chunk-TSUSHXBW.js";
|
|
217
212
|
import {
|
|
218
213
|
assemblePersistedBody,
|
|
219
214
|
storedContentIdentityCandidates,
|
|
@@ -222,6 +217,11 @@ import {
|
|
|
222
217
|
import {
|
|
223
218
|
sanitizeMemoryContent
|
|
224
219
|
} from "./chunk-5GKPFL3S.js";
|
|
220
|
+
import {
|
|
221
|
+
serializeMutations,
|
|
222
|
+
updateMetaSerialized,
|
|
223
|
+
withHeldFileLock
|
|
224
|
+
} from "./chunk-EBV6VXKF.js";
|
|
225
225
|
import {
|
|
226
226
|
parseFlexibleIsoTimestamp
|
|
227
227
|
} from "./chunk-P7FMDTKL.js";
|
|
@@ -13318,4 +13318,4 @@ export {
|
|
|
13318
13318
|
isValidBufferSurpriseEvent,
|
|
13319
13319
|
StorageManager3 as StorageManager
|
|
13320
13320
|
};
|
|
13321
|
-
//# sourceMappingURL=chunk-
|
|
13321
|
+
//# sourceMappingURL=chunk-5ZSN2OFB.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
computeCorpusWatermarks,
|
|
6
6
|
resolveCorpusNamespaceRoots
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NQJAF2Q4.js";
|
|
8
8
|
|
|
9
9
|
// src/operator-doctor-corpus.ts
|
|
10
10
|
var DIGEST_PREFIX_LENGTH = 12;
|
|
@@ -78,4 +78,4 @@ export {
|
|
|
78
78
|
corpusWatermarksFromCheck,
|
|
79
79
|
summarizeCorpusAndReplica
|
|
80
80
|
};
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
81
|
+
//# sourceMappingURL=chunk-6S37C5UK.js.map
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ActivationPathTracker,
|
|
3
|
+
compareActivationPathCandidates,
|
|
4
|
+
reconstructActivationPath
|
|
5
|
+
} from "./chunk-LXY5VVGM.js";
|
|
1
6
|
import {
|
|
2
7
|
assertGraphLockHeld,
|
|
3
8
|
withGraphWriteLock,
|
|
@@ -12,11 +17,6 @@ import {
|
|
|
12
17
|
import {
|
|
13
18
|
emitGraphEvent
|
|
14
19
|
} from "./chunk-DEUNUKTD.js";
|
|
15
|
-
import {
|
|
16
|
-
ActivationPathTracker,
|
|
17
|
-
compareActivationPathCandidates,
|
|
18
|
-
reconstructActivationPath
|
|
19
|
-
} from "./chunk-LXY5VVGM.js";
|
|
20
20
|
import {
|
|
21
21
|
isErrnoCode
|
|
22
22
|
} from "./chunk-KNA3BXXL.js";
|
|
@@ -758,4 +758,4 @@ export {
|
|
|
758
758
|
applyPageRankRefinement,
|
|
759
759
|
applyLateralInhibition
|
|
760
760
|
};
|
|
761
|
-
//# sourceMappingURL=chunk-
|
|
761
|
+
//# sourceMappingURL=chunk-73TPOGS4.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultNamespaceRoot,
|
|
3
3
|
resolveNamespaceStorageRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7QKZOZF4.js";
|
|
5
5
|
import {
|
|
6
6
|
getConfiguredNamespaces
|
|
7
7
|
} from "./chunk-UPWOMMVU.js";
|
|
@@ -2308,4 +2308,4 @@ export {
|
|
|
2308
2308
|
runNamespaceMaintenancePlan,
|
|
2309
2309
|
runNamespaceMaintenanceBatchPlan
|
|
2310
2310
|
};
|
|
2311
|
-
//# sourceMappingURL=chunk-
|
|
2311
|
+
//# sourceMappingURL=chunk-7OWV3GVD.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-QNUNAXBE.js";
|
|
12
12
|
import {
|
|
13
13
|
LocalLlmClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2NGTY22Z.js";
|
|
15
15
|
import {
|
|
16
16
|
completeBackgroundGeneration,
|
|
17
17
|
parseBackgroundGenerationJson
|
|
@@ -808,4 +808,4 @@ export {
|
|
|
808
808
|
summarizeHourlyStatus,
|
|
809
809
|
HourlySummarizer
|
|
810
810
|
};
|
|
811
|
-
//# sourceMappingURL=chunk-
|
|
811
|
+
//# sourceMappingURL=chunk-7P72BY4F.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ZSN2OFB.js";
|
|
4
4
|
import {
|
|
5
5
|
keyring_exports,
|
|
6
6
|
secureStoreDir
|
|
@@ -416,4 +416,4 @@ export {
|
|
|
416
416
|
resolveNamespaceStorageRoot,
|
|
417
417
|
NamespaceStorageRouter
|
|
418
418
|
};
|
|
419
|
-
//# sourceMappingURL=chunk-
|
|
419
|
+
//# sourceMappingURL=chunk-7QKZOZF4.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-TBBDFYXW.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5ZSN2OFB.js";
|
|
7
7
|
import {
|
|
8
8
|
requestEntityCanonicalIdReconcile
|
|
9
9
|
} from "./chunk-UUSL22HE.js";
|
|
@@ -769,4 +769,4 @@ export {
|
|
|
769
769
|
listMemoryGovernanceRuns,
|
|
770
770
|
readMemoryGovernanceRunArtifact
|
|
771
771
|
};
|
|
772
|
-
//# sourceMappingURL=chunk-
|
|
772
|
+
//# sourceMappingURL=chunk-AHNGWFNG.js.map
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
offlineSyncStorageForSnapshot
|
|
11
11
|
} from "./chunk-5WZT6WQW.js";
|
|
12
|
-
import {
|
|
13
|
-
iterateOfflineSyncSnapshotFileRecords
|
|
14
|
-
} from "./chunk-UIFWZMO7.js";
|
|
15
12
|
import {
|
|
16
13
|
createPersistedSupportPassportPrivateFileExclusion
|
|
17
14
|
} from "./chunk-TSUSHXBW.js";
|
|
15
|
+
import {
|
|
16
|
+
iterateOfflineSyncSnapshotFileRecords
|
|
17
|
+
} from "./chunk-CLVILSBR.js";
|
|
18
18
|
|
|
19
19
|
// src/access-offline-manifest.ts
|
|
20
20
|
import * as nodePath from "path";
|
|
@@ -250,4 +250,4 @@ export {
|
|
|
250
250
|
retainExcludedClassifications,
|
|
251
251
|
createOfflineSyncManifestStream
|
|
252
252
|
};
|
|
253
|
-
//# sourceMappingURL=chunk-
|
|
253
|
+
//# sourceMappingURL=chunk-AO5LKFGO.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
readNamespaceMaintenanceLastRanStatuses,
|
|
4
4
|
readNamespaceMaintenanceStatuses,
|
|
5
5
|
runNamespaceMaintenancePlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7OWV3GVD.js";
|
|
7
7
|
import {
|
|
8
8
|
analyzeSessionIntegrity,
|
|
9
9
|
applySessionRepair,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-CMTINOFS.js";
|
|
15
15
|
import {
|
|
16
16
|
summarizeCorpusAndReplica
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6S37C5UK.js";
|
|
18
18
|
import {
|
|
19
19
|
readJudgeVerdictStats
|
|
20
20
|
} from "./chunk-OZKOPQCM.js";
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
} from "./chunk-JKMIGCK6.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveCorpusNamespaceRoots
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NQJAF2Q4.js";
|
|
31
31
|
import {
|
|
32
32
|
listNamespaces
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YCASWFI6.js";
|
|
34
34
|
import {
|
|
35
35
|
listMemoryGovernanceRuns,
|
|
36
36
|
readMemoryGovernanceRunArtifact
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-AHNGWFNG.js";
|
|
38
38
|
import {
|
|
39
39
|
resolveCuratedIncludeFilesStatePath,
|
|
40
40
|
resolveNativeKnowledgeStatePath,
|
|
@@ -45,19 +45,19 @@ import {
|
|
|
45
45
|
} from "./chunk-ZFJOPBQD.js";
|
|
46
46
|
import {
|
|
47
47
|
analyzeGraphHealth
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-73TPOGS4.js";
|
|
49
49
|
import {
|
|
50
50
|
reportBufferSurpriseDistribution
|
|
51
51
|
} from "./chunk-YBPYIAA5.js";
|
|
52
52
|
import {
|
|
53
53
|
parseConfig
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-ZIXP27JK.js";
|
|
55
55
|
import {
|
|
56
56
|
summarizeExtractionLiveness
|
|
57
57
|
} from "./chunk-DURQZFVJ.js";
|
|
58
58
|
import {
|
|
59
59
|
StorageManager
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-5ZSN2OFB.js";
|
|
61
61
|
import {
|
|
62
62
|
lintWorkspaceFiles
|
|
63
63
|
} from "./chunk-DM2T26WE.js";
|
|
@@ -1261,7 +1261,7 @@ async function summarizeBufferSurpriseDistribution(storage, config) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
1263
1263
|
async function summarizeGraphEdgeDecayStatus(config) {
|
|
1264
|
-
const { readGraphEdgeDecayStatus } = await import("./graph-edge-decay-
|
|
1264
|
+
const { readGraphEdgeDecayStatus } = await import("./graph-edge-decay-BC3IO2J4.js");
|
|
1265
1265
|
const { graphEdgeDecayEnabled } = config;
|
|
1266
1266
|
const enabled = graphEdgeDecayEnabled === true;
|
|
1267
1267
|
if (!enabled) {
|
|
@@ -1876,4 +1876,4 @@ export {
|
|
|
1876
1876
|
runBenchmarkRecall,
|
|
1877
1877
|
runOperatorRepair
|
|
1878
1878
|
};
|
|
1879
|
-
//# sourceMappingURL=chunk-
|
|
1879
|
+
//# sourceMappingURL=chunk-AWZ5CWSR.js.map
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-3UXOZBHV.js";
|
|
15
15
|
import {
|
|
16
16
|
StorageManager
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5ZSN2OFB.js";
|
|
18
18
|
import {
|
|
19
19
|
OKF_PROFILE_TYPE,
|
|
20
20
|
okfTypeForMemory
|
|
@@ -272,4 +272,4 @@ export {
|
|
|
272
272
|
exportOkfBundle,
|
|
273
273
|
firstHeading
|
|
274
274
|
};
|
|
275
|
-
//# sourceMappingURL=chunk-
|
|
275
|
+
//# sourceMappingURL=chunk-B5MB2G3H.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collapseWhitespace,
|
|
3
3
|
truncateCodePointSafe
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EMMUQUHF.js";
|
|
5
5
|
import {
|
|
6
6
|
isSupportPassportPrivateMemory
|
|
7
7
|
} from "./chunk-TSUSHXBW.js";
|
|
@@ -189,4 +189,4 @@ export {
|
|
|
189
189
|
recallForActiveMemory,
|
|
190
190
|
getMemoryForActiveMemory
|
|
191
191
|
};
|
|
192
|
-
//# sourceMappingURL=chunk-
|
|
192
|
+
//# sourceMappingURL=chunk-BGSYM3SH.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-YAVIBVCU.js";
|
|
6
6
|
import {
|
|
7
7
|
applyExtractionSourceGrounding
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ULLGI6XR.js";
|
|
9
9
|
import {
|
|
10
10
|
deriveSourceConnector
|
|
11
11
|
} from "./chunk-LMFINE37.js";
|
|
@@ -130,4 +130,4 @@ export {
|
|
|
130
130
|
renderExtractionConversation,
|
|
131
131
|
applyGroundingWithConnector
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-BHZ72ZQ3.js.map
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PHASE2_AWAIT_NAMES,
|
|
3
|
+
PHASE2_AWAIT_STATUSES,
|
|
4
|
+
PHASE2_AWAIT_TOTAL_NAMES,
|
|
5
|
+
phase2MsField,
|
|
6
|
+
phase2StatusField,
|
|
7
|
+
phase2TotalField
|
|
8
|
+
} from "./chunk-5JD4DXQX.js";
|
|
9
|
+
|
|
1
10
|
// src/recall-timings.ts
|
|
2
11
|
var RECALL_TIMING_HISTORY_LIMIT = 50;
|
|
3
12
|
var TIMING_FIELD_ALLOWLIST = [
|
|
@@ -48,11 +57,31 @@ function sanitizeRecallTiming(input) {
|
|
|
48
57
|
const value = numericMilliseconds(input[field]);
|
|
49
58
|
if (value !== void 0) timingsMs[field] = value;
|
|
50
59
|
}
|
|
60
|
+
const requestId = String(input.requestId);
|
|
61
|
+
const phase2Fields = {};
|
|
62
|
+
for (const name of PHASE2_AWAIT_NAMES) {
|
|
63
|
+
const ms = numericMilliseconds(input[phase2MsField(name)]);
|
|
64
|
+
if (ms !== void 0) phase2Fields[phase2MsField(name)] = ms;
|
|
65
|
+
const status = PHASE2_AWAIT_STATUSES.find((candidate) => candidate === input[phase2StatusField(name)]);
|
|
66
|
+
if (status !== void 0) phase2Fields[phase2StatusField(name)] = status;
|
|
67
|
+
}
|
|
68
|
+
for (const name of PHASE2_AWAIT_TOTAL_NAMES) {
|
|
69
|
+
const totalMs = numericMilliseconds(input[phase2TotalField(name)]);
|
|
70
|
+
if (totalMs !== void 0) phase2Fields[phase2TotalField(name)] = totalMs;
|
|
71
|
+
}
|
|
51
72
|
return {
|
|
52
73
|
timestamp: typeof input.timestamp === "string" ? input.timestamp : "",
|
|
53
74
|
namespace: typeof input.namespace === "string" ? input.namespace : "",
|
|
54
75
|
recallPlan: typeof input.recallPlan === "string" ? input.recallPlan : "",
|
|
55
76
|
queryPolicy: typeof input.queryPolicy === "string" ? input.queryPolicy : "",
|
|
77
|
+
// Attempt contract, copied field-by-field like the dimension strings:
|
|
78
|
+
// non-string requestIds drop, anything but the literal error/abort marks
|
|
79
|
+
// is "ok", and the monotonic total rides the same numeric-ms parsing as
|
|
80
|
+
// the phases (absent or negative floors to 0 for legacy emitters).
|
|
81
|
+
requestId: requestId === input.requestId ? requestId : "",
|
|
82
|
+
outcome: input.outcome === "error" || input.outcome === "aborted" ? input.outcome : "ok",
|
|
83
|
+
httpTotalMs: numericMilliseconds(input.httpTotalMs) ?? 0,
|
|
84
|
+
...phase2Fields,
|
|
56
85
|
timingsMs
|
|
57
86
|
};
|
|
58
87
|
}
|
|
@@ -113,4 +142,4 @@ export {
|
|
|
113
142
|
getRecallTimingStatus,
|
|
114
143
|
lastRecallTimingsFor
|
|
115
144
|
};
|
|
116
|
-
//# sourceMappingURL=chunk-
|
|
145
|
+
//# sourceMappingURL=chunk-C6S353AG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/recall-timings.ts"],"sourcesContent":["import type { PluginConfig } from \"./types.js\";\nimport {\n PHASE2_AWAIT_NAMES,\n PHASE2_AWAIT_STATUSES,\n PHASE2_AWAIT_TOTAL_NAMES,\n phase2MsField,\n phase2StatusField,\n phase2TotalField,\n type Phase2AwaitStatus,\n} from \"./recall-phase2-timing.js\";\n\nexport type RecallTimingOutcome = \"ok\" | \"error\" | \"aborted\";\n\n/**\n * Flat per-phase timing payload the recall pipeline emits (recall-timings\n * attempt contract). `timestamp`/`namespace` are required; every other key is\n * a phase or dimension the recall-timings sanitizer already knows how to\n * parse (string durations like \"12ms\", plus `recallPlan`/`queryPolicy`).\n */\nexport type RecallTimingEmission = {\n timestamp: string;\n namespace: string;\n} & Record<string, string>;\n\nexport interface RecallTimingRecord {\n readonly timestamp: string;\n readonly namespace: string;\n readonly recallPlan: string;\n readonly queryPolicy: string;\n /** Server-generated id for the recall attempt; never caller-supplied input. */\n readonly requestId: string;\n readonly outcome: RecallTimingOutcome;\n /** Monotonic (performance.now) total for the whole recall attempt, in ms. */\n readonly httpTotalMs: number;\n /** Phase-2 await timings: overlapping, not additive (see recall-phase2-timing.ts). */\n readonly phase2HarmonicMs?: number;\n readonly phase2HarmonicStatus?: Phase2AwaitStatus;\n readonly phase2HarmonicTotalMs?: number;\n readonly phase2GraphSnapshotMs?: number;\n readonly phase2GraphSnapshotStatus?: Phase2AwaitStatus;\n readonly phase2IntentSnapshotMs?: number;\n readonly phase2IntentSnapshotStatus?: Phase2AwaitStatus;\n readonly phase2CompressionMs?: number;\n readonly phase2CompressionStatus?: Phase2AwaitStatus;\n readonly phase2CompoundingMs?: number;\n readonly phase2CompoundingStatus?: Phase2AwaitStatus;\n readonly phase2CompoundingTotalMs?: number;\n readonly phase2QuestionsMs?: number;\n readonly phase2QuestionsStatus?: Phase2AwaitStatus;\n readonly phase2PrefilterMs?: number;\n readonly phase2PrefilterStatus?: Phase2AwaitStatus;\n readonly phase2PrefilterTotalMs?: number;\n readonly timingsMs: Readonly<Record<string, number>>;\n}\n\nexport interface RecallTimingStatus {\n readonly generatedAt: string;\n readonly processStartedAt: string;\n readonly capacity: number;\n readonly count: number;\n readonly order: \"newest-first\";\n readonly records: RecallTimingRecord[];\n}\n\nconst RECALL_TIMING_HISTORY_LIMIT = 50;\nconst TIMING_FIELD_ALLOWLIST = [\n \"total\",\n \"sharedCtx\",\n \"profile\",\n \"peerProfile\",\n \"identityContinuity\",\n \"entityRetrieval\",\n \"ki\",\n \"artifacts\",\n \"objectiveState\",\n \"causalTrajectories\",\n \"cmcCausalChains\",\n \"calibrationRules\",\n \"trustZones\",\n \"harmonicRetrieval\",\n \"verifiedRecall\",\n \"verifiedRules\",\n \"workProducts\",\n \"qmd\",\n \"transcript\",\n \"summaries\",\n \"nativeKnowledge\",\n \"convRecall\",\n \"compounding\",\n \"graphShadow\",\n \"qmdPost\",\n \"trustStage\",\n \"queueWaitMs\",\n] as const;\n// The ring buffer is process-local: a daemon restart or haproxy failover to\n// the other backend starts an empty history. processStartedAt lets consumers\n// detect that discontinuity. Derived from the process time origin, not module\n// initialization, so lazy imports cannot skew it.\nconst PROCESS_STARTED_AT = new Date(Date.now() - process.uptime() * 1000).toISOString();\nconst histories = new WeakMap<PluginConfig, RecallTimingRecord[]>();\n\nfunction numericMilliseconds(value: unknown): number | undefined {\n if (typeof value === \"number\" && Number.isFinite(value) && value >= 0) {\n return value;\n }\n if (typeof value !== \"string\") return undefined;\n const match = /^(\\d+)ms/.exec(value);\n return match ? Number(match[1]) : undefined;\n}\n\nfunction sanitizeRecallTiming(\n input: Record<string, unknown>,\n): RecallTimingRecord {\n // Serialization boundary: ONLY allowlisted numeric phases reach timingsMs,\n // and the four dimension strings are copied field-by-field. Never spread\n // the internal record into the public shape.\n const timingsMs: Record<string, number> = {\n total: numericMilliseconds(input.total) ?? 0,\n };\n for (const field of TIMING_FIELD_ALLOWLIST) {\n if (field === \"total\") continue;\n const value = numericMilliseconds(input[field]);\n // Phases that did not run are omitted; 0 means \"ran, measured zero\".\n if (value !== undefined) timingsMs[field] = value;\n }\n // Attempt-contract id decode: String(x) === x holds exactly for string\n // primitives; every other value coalesces to \"\" (no runtime typeof here).\n const requestId = String(input.requestId);\n // Phase-2 await fields ride the same boundary decode: durations parse like\n // every other ms string, statuses must be enum literals, and anything else\n // is omitted so legacy emitters carry no phase-2 noise.\n const phase2Fields: Record<string, number | Phase2AwaitStatus> = {};\n for (const name of PHASE2_AWAIT_NAMES) {\n const ms = numericMilliseconds(input[phase2MsField(name)]);\n if (ms !== undefined) phase2Fields[phase2MsField(name)] = ms;\n const status = PHASE2_AWAIT_STATUSES.find((candidate) => candidate === input[phase2StatusField(name)]);\n if (status !== undefined) phase2Fields[phase2StatusField(name)] = status;\n }\n for (const name of PHASE2_AWAIT_TOTAL_NAMES) {\n const totalMs = numericMilliseconds(input[phase2TotalField(name)]);\n if (totalMs !== undefined) phase2Fields[phase2TotalField(name)] = totalMs;\n }\n return {\n timestamp: typeof input.timestamp === \"string\" ? input.timestamp : \"\",\n namespace: typeof input.namespace === \"string\" ? input.namespace : \"\",\n recallPlan: typeof input.recallPlan === \"string\" ? input.recallPlan : \"\",\n queryPolicy: typeof input.queryPolicy === \"string\" ? input.queryPolicy : \"\",\n // Attempt contract, copied field-by-field like the dimension strings:\n // non-string requestIds drop, anything but the literal error/abort marks\n // is \"ok\", and the monotonic total rides the same numeric-ms parsing as\n // the phases (absent or negative floors to 0 for legacy emitters).\n requestId: requestId === input.requestId ? requestId : \"\",\n outcome: input.outcome === \"error\" || input.outcome === \"aborted\" ? input.outcome : \"ok\",\n httpTotalMs: numericMilliseconds(input.httpTotalMs) ?? 0,\n ...phase2Fields,\n timingsMs,\n };\n}\n\n/**\n * Build the recall `timings` map, seeding the additive queue-wait phase (issue\n * #1906) when the caller measured a real per-principal slot / single-flight\n * wait. `queueWaitMs` 0/undefined/non-finite omits the phase so recall-timings\n * stays byte-identical to the uncontended pre-#1906 path.\n */\nexport function foldQueueWaitTiming(queueWaitMs?: number): Record<string, string> {\n const timings: Record<string, string> = {};\n if (typeof queueWaitMs === \"number\" && Number.isFinite(queueWaitMs) && queueWaitMs >= 0) {\n timings.queueWaitMs = `${queueWaitMs}ms`;\n }\n return timings;\n}\n\nexport function recordRecallTiming(\n config: PluginConfig,\n input: Record<string, unknown>,\n): void {\n const history = histories.get(config) ?? [];\n history.push(sanitizeRecallTiming(input));\n if (history.length > RECALL_TIMING_HISTORY_LIMIT) history.shift();\n histories.set(config, history);\n}\n\nexport function resolveRecallTimingsOperatorPrincipal(\n config: PluginConfig,\n transportPrincipal?: string,\n): string | undefined {\n return config.agentAccessHttp.principal?.trim()\n || transportPrincipal?.trim()\n || undefined;\n}\n\nexport function isRecallTimingsOperator(\n config: PluginConfig,\n authenticatedPrincipal?: string,\n transportPrincipal?: string,\n): boolean {\n const operatorPrincipal = resolveRecallTimingsOperatorPrincipal(\n config,\n transportPrincipal,\n );\n return Boolean(\n operatorPrincipal\n && authenticatedPrincipal\n && authenticatedPrincipal === operatorPrincipal,\n );\n}\n\nexport function getRecallTimings(config: PluginConfig): RecallTimingRecord[] {\n const history = histories.get(config) ?? [];\n return history.slice().reverse().map((record) => ({\n ...record,\n timingsMs: { ...record.timingsMs },\n }));\n}\n\nexport function getRecallTimingStatus(config: PluginConfig): RecallTimingStatus {\n const records = getRecallTimings(config);\n return {\n generatedAt: new Date().toISOString(),\n processStartedAt: PROCESS_STARTED_AT,\n capacity: RECALL_TIMING_HISTORY_LIMIT,\n count: records.length,\n order: \"newest-first\",\n records,\n };\n}\n\n/**\n * Read the section-timing map the last-recall store kept for the recall that\n * produced `traceId`. The traceId match pins the record to that run so an\n * interleaved same-session recall cannot lend its timings to the wrong reply.\n */\nexport function lastRecallTimingsFor(\n store: { get(sessionKey: string): { traceId?: string; timings?: Record<string, string> } | null;\n getMostRecent(): { traceId?: string; timings?: Record<string, string> } | null },\n sessionKey: string | undefined,\n traceId: string | undefined,\n): Record<string, string> | undefined {\n const record = sessionKey ? store.get(sessionKey) : store.getMostRecent();\n return record != null && record.traceId === traceId ? record.timings : undefined;\n}\n"],"mappings":"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","names":[]}
|