@remnic/core 10.0.37 → 10.0.39
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 +76 -76
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.js +77 -77
- package/dist/access-boundary.js +76 -76
- package/dist/access-citation-namespace.js +2 -2
- package/dist/access-cli.js +165 -164
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.js +76 -76
- package/dist/access-http-briefing.js +77 -77
- package/dist/access-http-query.js +78 -78
- package/dist/access-http.js +101 -101
- package/dist/access-identity-continuity-surface.js +76 -76
- package/dist/access-lcm-surface.js +76 -76
- package/dist/access-mcp.js +90 -90
- package/dist/access-namespace-preflight.js +76 -76
- package/dist/access-observe-write-category.js +15 -15
- package/dist/access-observe-write-surface.js +76 -76
- package/dist/access-offline-manifest.js +12 -12
- package/dist/access-operations-batch.js +80 -80
- package/dist/access-operations.js +87 -87
- package/dist/access-recall-concurrency.js +76 -76
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +76 -76
- package/dist/access-recall-surface.js +76 -76
- package/dist/access-schema.js +10 -10
- package/dist/access-service.js +76 -76
- package/dist/access-surface-catalog.js +78 -78
- package/dist/active-recall.js +31 -31
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/{auto-sync-R3XGJL5I.js → auto-sync-BNCBMU6H.js} +9 -9
- package/dist/briefing.js +21 -21
- package/dist/buffer-types.d.ts +59 -0
- package/dist/buffer-types.d.ts.map +1 -0
- package/dist/buffer-types.js +1 -0
- package/dist/buffer.d.ts +14 -22
- package/dist/buffer.d.ts.map +1 -1
- package/dist/buffer.js +11 -11
- package/dist/calibration.js +3 -3
- package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-GWVG7LGC.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-MH3LC7KB.js → chunk-22YJQTPN.js} +2 -2
- package/dist/{chunk-MKE5DP3S.js → chunk-23ZMQONL.js} +2 -2
- package/dist/{chunk-MGXFJOUR.js → chunk-2AV2U2SZ.js} +4 -4
- package/dist/{chunk-HJ3UTGIW.js → chunk-2JNBPOZ2.js} +3 -3
- package/dist/{chunk-EEOYF3IB.js → chunk-3RJDYZJE.js} +2 -2
- package/dist/{chunk-FBAHBFT5.js → chunk-4HJ2QK32.js} +2 -2
- package/dist/{chunk-UXXVOA4D.js → chunk-4LLV2N3R.js} +3 -3
- package/dist/{chunk-P5CUEB2Q.js → chunk-4QLKVZH6.js} +8 -8
- package/dist/{chunk-2RJO7VS4.js → chunk-4UT2NUAC.js} +2 -2
- package/dist/{chunk-R6TCM47S.js → chunk-5KZNWERU.js} +156 -143
- package/dist/chunk-5KZNWERU.js.map +1 -0
- package/dist/{chunk-MNDHKZZQ.js → chunk-5Q6CR65T.js} +2 -2
- package/dist/{chunk-XTBEXZFN.js → chunk-5SF7JOJB.js} +4 -4
- package/dist/{chunk-BQ6DGL6A.js → chunk-64WHWIPL.js} +2 -2
- package/dist/{chunk-TVIGN3XZ.js → chunk-6FRFVIKC.js} +10 -10
- package/dist/{chunk-A23DPFFI.js → chunk-6ITNEPJO.js} +2 -2
- package/dist/{chunk-UFBIOF7C.js → chunk-6X3J4NLZ.js} +10 -5
- package/dist/chunk-6X3J4NLZ.js.map +1 -0
- package/dist/{chunk-G6PPA4TH.js → chunk-6Z2ZWBOV.js} +6 -6
- package/dist/{chunk-QEGE5QCL.js → chunk-7IANFJ24.js} +58 -58
- package/dist/{chunk-PSQ2P2T3.js → chunk-7XZ7TOLQ.js} +3 -3
- package/dist/{chunk-Z5AQZRHF.js → chunk-AER3HD3B.js} +2 -2
- package/dist/{chunk-BPBUUGAO.js → chunk-ANV373S5.js} +2 -2
- package/dist/{chunk-GMMZ45C4.js → chunk-AVVCPA7U.js} +6 -8
- package/dist/chunk-AVVCPA7U.js.map +1 -0
- package/dist/{chunk-LSSCMZQ2.js → chunk-B3I2QQU7.js} +3 -3
- package/dist/{chunk-NSQSOLCE.js → chunk-B7VKRCAG.js} +2 -2
- package/dist/{chunk-HXFIILGF.js → chunk-BFPF5N3H.js} +4 -4
- package/dist/{chunk-KQAFEZQX.js → chunk-BUKK5SWA.js} +2 -2
- package/dist/{chunk-RBC4GIZU.js → chunk-BUKZ7MTN.js} +2 -2
- package/dist/{chunk-FO5AFCRI.js → chunk-CR72WZ3M.js} +9 -9
- package/dist/{chunk-YC2C67F7.js → chunk-CRXGQRNA.js} +3 -3
- package/dist/{chunk-WRDFYSUC.js → chunk-CZVNOTLR.js} +2 -2
- package/dist/{chunk-VPO53QMG.js → chunk-D6DOLQYK.js} +2 -2
- package/dist/{chunk-HRT2SJPC.js → chunk-E3NBMTTX.js} +2 -2
- package/dist/{chunk-HIMXDRSQ.js → chunk-E5IEI2MR.js} +2 -2
- package/dist/{chunk-Z2T5BPOZ.js → chunk-EIYJK7OD.js} +2 -2
- package/dist/{chunk-FRAL3EU4.js → chunk-EKPRLTAE.js} +2 -2
- package/dist/{chunk-EVVCE7S2.js → chunk-EKR6OO4P.js} +2 -2
- package/dist/{chunk-TYGLV6ZG.js → chunk-EYGOM6AI.js} +2 -2
- package/dist/{chunk-TYGLV6ZG.js.map → chunk-EYGOM6AI.js.map} +1 -1
- package/dist/{chunk-6R6CU3MR.js → chunk-F2IU6A2L.js} +57 -57
- package/dist/{chunk-FL6SLVAJ.js → chunk-FAKRTS3Y.js} +3 -3
- package/dist/{chunk-64IO6ZEE.js → chunk-FC3ZFEXF.js} +2 -2
- package/dist/{chunk-YGYT7S3G.js → chunk-FJ264QBP.js} +31 -9
- package/dist/chunk-FJ264QBP.js.map +1 -0
- package/dist/{chunk-DGBWPSM6.js → chunk-FLDXEJFX.js} +2 -2
- package/dist/{chunk-JH4FCVWJ.js → chunk-G6OFEGUR.js} +2 -2
- package/dist/{chunk-Z5QWUR3Y.js → chunk-GCW7UT5I.js} +2 -2
- package/dist/{chunk-ULUX6Q7R.js → chunk-GE5ZNDLE.js} +4 -4
- package/dist/{chunk-U4JXQCJ3.js → chunk-GLB6VV3J.js} +2 -2
- package/dist/{chunk-RWWYBE7E.js → chunk-GPVGAHXL.js} +3 -3
- package/dist/{chunk-3BPMYMPX.js → chunk-GSBSGT43.js} +2 -2
- package/dist/{chunk-645WOU5I.js → chunk-H7BZBSP6.js} +4 -4
- package/dist/{chunk-GFYFKXWZ.js → chunk-HUDPXTXW.js} +2 -2
- package/dist/{chunk-L2JQSG5M.js → chunk-I7TR2OCU.js} +2 -2
- package/dist/{chunk-HKEK27M4.js → chunk-IAOW2L6K.js} +2 -2
- package/dist/{chunk-STM4T335.js → chunk-IJH6METJ.js} +2 -2
- package/dist/{chunk-WADPRAZE.js → chunk-IZRNMXZC.js} +2 -2
- package/dist/{chunk-JWTUJVIF.js → chunk-JGS55BAS.js} +53 -2
- package/dist/chunk-JGS55BAS.js.map +1 -0
- package/dist/{chunk-LAQS5HYU.js → chunk-JM6U3SAE.js} +2 -2
- package/dist/{chunk-74AY3S7U.js → chunk-JNLYHJG7.js} +4 -4
- package/dist/{chunk-7ZBANI3M.js → chunk-JOOGPZJE.js} +2 -2
- package/dist/{chunk-V5RJCXLG.js → chunk-JORSMFL6.js} +6 -6
- package/dist/{chunk-VKTP3TZB.js → chunk-JQCP5QW3.js} +4 -4
- package/dist/{chunk-LRJKHXU4.js → chunk-JRTKYFFY.js} +2 -2
- package/dist/{chunk-UMFBHYPW.js → chunk-JT3IXJIL.js} +13 -13
- package/dist/{chunk-S53WZWGL.js → chunk-JZFJZLJY.js} +2 -2
- package/dist/{chunk-6QOL4G76.js → chunk-KQXRVELF.js} +2 -2
- package/dist/{chunk-USOXPN5H.js → chunk-L74NWAD4.js} +2 -2
- package/dist/{chunk-Y6Y3TRBN.js → chunk-LJXBFVI2.js} +4 -4
- package/dist/{chunk-3L5WH6CV.js → chunk-LPD6I2U6.js} +2 -2
- package/dist/{chunk-LDXS746V.js → chunk-LR7RW4T6.js} +3 -3
- package/dist/{chunk-FZVZYU5C.js → chunk-LXN737FX.js} +2 -2
- package/dist/{chunk-5U3NUHMA.js → chunk-MD3W2H3G.js} +301 -98
- package/dist/chunk-MD3W2H3G.js.map +1 -0
- package/dist/{chunk-ARFT6ZBE.js → chunk-MGYZENUY.js} +2 -2
- package/dist/{chunk-YQ6SLFNZ.js → chunk-MPJDQC4G.js} +3 -3
- package/dist/{chunk-5UWP5X3T.js → chunk-NJ2DZYEK.js} +2 -2
- package/dist/{chunk-MBMT5FUQ.js → chunk-O2O4FDAH.js} +2 -2
- package/dist/{chunk-GCVUBVEN.js → chunk-ODJ2HRFW.js} +10 -10
- package/dist/{chunk-2NLLXCJG.js → chunk-OWHERGF2.js} +2 -2
- package/dist/{chunk-I73ZSORJ.js → chunk-OXSTKCYK.js} +4 -4
- package/dist/{chunk-CNQQNYJ2.js → chunk-P3YUEPSQ.js} +2 -2
- package/dist/{chunk-A6PKEU7T.js → chunk-PARM6OYL.js} +1 -1
- package/dist/chunk-PARM6OYL.js.map +1 -0
- package/dist/{chunk-TPKB7T6Z.js → chunk-Q6UZREJK.js} +2 -2
- package/dist/{chunk-UJDTXWMT.js → chunk-QIMGULGN.js} +2 -2
- package/dist/{chunk-E24RUQEN.js → chunk-QNIYL5SK.js} +2 -2
- package/dist/{chunk-KOY25HUB.js → chunk-QYAXMXOB.js} +2 -2
- package/dist/{chunk-CU7WDDPV.js → chunk-RIAKNXZB.js} +4 -4
- package/dist/{chunk-UQWA5QDT.js → chunk-RO2NNWR5.js} +3 -3
- package/dist/{chunk-AYXRK264.js → chunk-RROFIAYI.js} +9 -9
- package/dist/{chunk-L46Y5FPE.js → chunk-RUAIO5UA.js} +2 -2
- package/dist/{chunk-QIC7YZ3D.js → chunk-RWW5KPIY.js} +18 -18
- package/dist/{chunk-E5PVMB3I.js → chunk-SDXBR5QO.js} +2 -2
- package/dist/{chunk-WSLNC5AL.js → chunk-SJHFU52W.js} +8 -8
- package/dist/{chunk-7PG7QBWD.js → chunk-SRPGA6WN.js} +2 -2
- package/dist/{chunk-CUWOSRCS.js → chunk-SUKPM6DV.js} +2 -2
- package/dist/{chunk-BBDASWNT.js → chunk-TJ5YGCPV.js} +81 -76
- package/dist/chunk-TJ5YGCPV.js.map +1 -0
- package/dist/{chunk-G2SRB62M.js → chunk-TTQYX7VU.js} +2 -2
- package/dist/{chunk-TDCR6PQL.js → chunk-TWRPWJJT.js} +2 -2
- package/dist/{chunk-KC5SVCUJ.js → chunk-U66CTIF5.js} +2 -2
- package/dist/{chunk-D2AKUKAQ.js → chunk-UIK3U36O.js} +2 -2
- package/dist/{chunk-XLEP7SS3.js → chunk-UMSH4I3E.js} +2 -2
- package/dist/{chunk-X7Y7WX73.js → chunk-UVYI6VIX.js} +1 -1
- package/dist/{chunk-LHBOFROT.js → chunk-V2XMG7GM.js} +2 -2
- package/dist/chunk-VA3GNAWQ.js +58 -0
- package/dist/chunk-VA3GNAWQ.js.map +1 -0
- package/dist/{chunk-NQOM6PHO.js → chunk-VCOCOBUS.js} +6 -6
- package/dist/{chunk-4P4VLPGB.js → chunk-VECRSYQG.js} +1 -1
- package/dist/{chunk-ID2PLENW.js → chunk-VHBGJAYC.js} +2 -2
- package/dist/{chunk-RVYXSS3Q.js → chunk-VIS23B6O.js} +8 -8
- package/dist/{chunk-NMKETOAX.js → chunk-VSHWPOUB.js} +2 -2
- package/dist/{chunk-UBN5AOLT.js → chunk-W5EO4USJ.js} +2 -2
- package/dist/{chunk-Y7427SL7.js → chunk-WCGJK4NQ.js} +4 -4
- package/dist/{chunk-CCYXCT4B.js → chunk-WQYS47G4.js} +2 -2
- package/dist/{chunk-JH2ALMPR.js → chunk-WR5POHQ3.js} +2 -2
- package/dist/{chunk-DK5VMJL3.js → chunk-WT2VVYBM.js} +2 -2
- package/dist/{chunk-EHIKY2IA.js → chunk-WU5WTCH5.js} +2 -2
- package/dist/{chunk-QKXPOLQD.js → chunk-WUBGMV3G.js} +6 -6
- package/dist/{chunk-O6YJI5VX.js → chunk-WUL6LDJ4.js} +2 -2
- package/dist/{chunk-5EILJ6W2.js → chunk-WXPBDEMW.js} +2 -2
- package/dist/{chunk-U7HJBODU.js → chunk-XKTHJHSQ.js} +5 -5
- package/dist/{chunk-JFI3ATK4.js → chunk-XMYWYJM2.js} +2 -2
- package/dist/{chunk-64S6X4IU.js → chunk-XTN54NML.js} +4 -4
- package/dist/{chunk-VGFNTY3Y.js → chunk-YFXRLRKP.js} +2 -2
- package/dist/{chunk-DAOMWGO2.js → chunk-ZX5N5D6M.js} +4 -4
- package/dist/{chunk-PTRPOJ7U.js → chunk-ZXFKG7VZ.js} +2 -2
- package/dist/cli.js +124 -124
- package/dist/coding/export-okf-codegraph.js +22 -22
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.js +23 -23
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +31 -31
- package/dist/connectors/codex-materialize-runner.js +21 -21
- package/dist/connectors/index.js +21 -21
- package/dist/contradiction/index.js +5 -5
- package/dist/convergence-refresh.js +23 -23
- package/dist/corpus-watermark.js +23 -23
- package/dist/deep-recall-http-glue.js +11 -11
- package/dist/deep-recall-policy-llm.js +2 -2
- package/dist/deep-recall.js +2 -2
- package/dist/entity-retrieval.js +22 -22
- package/dist/event-order-recall.js +2 -2
- package/dist/explicit-capture.js +6 -6
- package/dist/external-wiki-access.js +77 -77
- package/dist/extraction-faithfulness.js +2 -2
- package/dist/extraction-judge.d.ts +42 -2
- package/dist/extraction-judge.d.ts.map +1 -1
- package/dist/extraction-judge.js +12 -2
- package/dist/extraction-window-drain.d.ts +48 -0
- package/dist/extraction-window-drain.d.ts.map +1 -0
- package/dist/extraction-window-drain.js +14 -0
- package/dist/extraction.js +29 -29
- package/dist/fallback-llm.d.ts +1 -0
- package/dist/fallback-llm.d.ts.map +1 -1
- package/dist/fallback-llm.js +1 -1
- package/dist/{graph-edge-decay-2BZTY2IM.js → graph-edge-decay-3HVLMT6U.js} +5 -5
- package/dist/graph-edge-decay-3HVLMT6U.js.map +1 -0
- 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 +22 -22
- package/dist/harmonic-source-lookup.js +2 -2
- package/dist/index.js +212 -211
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.js +7 -7
- package/dist/local-llm.js +2 -2
- package/dist/location/index.js +24 -24
- 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-operations.js +77 -77
- package/dist/memory-browse.js +6 -6
- package/dist/memory-subject.js +3 -3
- 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-file-io.js +2 -2
- package/dist/offline-sync-impression-drain.js +3 -3
- package/dist/offline-sync-snapshot-stream.js +8 -8
- package/dist/offline-sync-upload-staging.js +3 -3
- package/dist/offline-sync.js +9 -9
- package/dist/operator-doctor-corpus.js +24 -24
- package/dist/operator-toolkit.js +42 -42
- package/dist/orchestration/extraction-drain.d.ts +90 -0
- package/dist/orchestration/extraction-drain.d.ts.map +1 -0
- package/dist/orchestration/extraction-run-helpers.d.ts +3 -0
- package/dist/orchestration/extraction-run-helpers.d.ts.map +1 -1
- package/dist/orchestration/extraction-run.d.ts +4 -1
- package/dist/orchestration/extraction-run.d.ts.map +1 -1
- package/dist/orchestration/maintenance.js +35 -35
- package/dist/orchestration/turn-ingestion.d.ts +3 -0
- package/dist/orchestration/turn-ingestion.d.ts.map +1 -1
- package/dist/orchestrator.d.ts +8 -0
- package/dist/orchestrator.d.ts.map +1 -1
- package/dist/orchestrator.js +165 -164
- package/dist/qmd.js +5 -5
- 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-operations.js +77 -77
- package/dist/recall-navigation.js +76 -76
- package/dist/recall-planner-llm.js +1 -1
- package/dist/recall-state-view-admission.js +6 -6
- package/dist/recall-why-service.js +6 -6
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/manifest.js +3 -3
- package/dist/{resolution-4ZEQPXUZ.js → resolution-NNYG37YB.js} +6 -6
- package/dist/resolution-NNYG37YB.js.map +1 -0
- package/dist/resume-bundles.js +32 -32
- package/dist/retrieval-agents.js +2 -2
- package/dist/salvage-envelope.js +5 -5
- package/dist/search/factory.js +6 -6
- package/dist/search/index.js +10 -10
- package/dist/secure-store/index.js +2 -2
- 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 +25 -25
- package/dist/standup/build.js +21 -21
- package/dist/storage/dropped-extraction-chunk.d.ts +8 -0
- package/dist/storage/dropped-extraction-chunk.d.ts.map +1 -0
- package/dist/storage.d.ts +1 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +20 -20
- package/dist/subject-config.js +4 -4
- package/dist/summarizer.js +4 -4
- package/dist/support-passport/index.js +79 -79
- 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 +22 -22
- package/dist/types.d.ts +19 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +21 -21
- package/dist/who-knows-cli.js +22 -22
- package/dist/who-knows.js +21 -21
- package/dist/write-envelope.js +4 -4
- package/package.json +2 -2
- package/src/buffer-drop-extraction-chunk.test.ts +196 -0
- package/src/buffer-types.ts +65 -0
- package/src/buffer.ts +60 -62
- package/src/config.test.ts +16 -0
- package/src/config.ts +22 -0
- package/src/extraction-judge-chain.test.ts +298 -2
- package/src/extraction-judge.ts +147 -82
- package/src/extraction-window-drain.test.ts +123 -0
- package/src/extraction-window-drain.ts +110 -0
- package/src/fallback-llm.test.ts +94 -0
- package/src/fallback-llm.ts +7 -7
- package/src/orchestration/extraction-drain.ts +261 -0
- package/src/orchestration/extraction-run-helpers.ts +8 -0
- package/src/orchestration/extraction-run.ts +5 -4
- package/src/orchestration/turn-ingestion.ts +9 -5
- package/src/orchestrator.ts +21 -0
- package/src/secure-store/secure-fs.ts +3 -1
- package/src/storage/dropped-extraction-chunk.ts +27 -0
- package/src/storage-dropped-chunk-filenames.test.ts +30 -0
- package/src/storage.ts +6 -7
- package/src/types.ts +19 -0
- package/dist/chunk-5U3NUHMA.js.map +0 -1
- package/dist/chunk-A6PKEU7T.js.map +0 -1
- package/dist/chunk-BBDASWNT.js.map +0 -1
- package/dist/chunk-GMMZ45C4.js.map +0 -1
- package/dist/chunk-JWTUJVIF.js.map +0 -1
- package/dist/chunk-R6TCM47S.js.map +0 -1
- package/dist/chunk-UFBIOF7C.js.map +0 -1
- package/dist/chunk-YGYT7S3G.js.map +0 -1
- /package/dist/{auto-sync-R3XGJL5I.js.map → auto-sync-BNCBMU6H.js.map} +0 -0
- /package/dist/{capsule-crypto-7FJQINUR.js.map → buffer-types.js.map} +0 -0
- /package/dist/{graph-edge-decay-2BZTY2IM.js.map → capsule-crypto-GWVG7LGC.js.map} +0 -0
- /package/dist/{chunk-MH3LC7KB.js.map → chunk-22YJQTPN.js.map} +0 -0
- /package/dist/{chunk-MKE5DP3S.js.map → chunk-23ZMQONL.js.map} +0 -0
- /package/dist/{chunk-MGXFJOUR.js.map → chunk-2AV2U2SZ.js.map} +0 -0
- /package/dist/{chunk-HJ3UTGIW.js.map → chunk-2JNBPOZ2.js.map} +0 -0
- /package/dist/{chunk-EEOYF3IB.js.map → chunk-3RJDYZJE.js.map} +0 -0
- /package/dist/{chunk-FBAHBFT5.js.map → chunk-4HJ2QK32.js.map} +0 -0
- /package/dist/{chunk-UXXVOA4D.js.map → chunk-4LLV2N3R.js.map} +0 -0
- /package/dist/{chunk-P5CUEB2Q.js.map → chunk-4QLKVZH6.js.map} +0 -0
- /package/dist/{chunk-2RJO7VS4.js.map → chunk-4UT2NUAC.js.map} +0 -0
- /package/dist/{chunk-MNDHKZZQ.js.map → chunk-5Q6CR65T.js.map} +0 -0
- /package/dist/{chunk-XTBEXZFN.js.map → chunk-5SF7JOJB.js.map} +0 -0
- /package/dist/{chunk-BQ6DGL6A.js.map → chunk-64WHWIPL.js.map} +0 -0
- /package/dist/{chunk-TVIGN3XZ.js.map → chunk-6FRFVIKC.js.map} +0 -0
- /package/dist/{chunk-A23DPFFI.js.map → chunk-6ITNEPJO.js.map} +0 -0
- /package/dist/{chunk-G6PPA4TH.js.map → chunk-6Z2ZWBOV.js.map} +0 -0
- /package/dist/{chunk-QEGE5QCL.js.map → chunk-7IANFJ24.js.map} +0 -0
- /package/dist/{chunk-PSQ2P2T3.js.map → chunk-7XZ7TOLQ.js.map} +0 -0
- /package/dist/{chunk-Z5AQZRHF.js.map → chunk-AER3HD3B.js.map} +0 -0
- /package/dist/{chunk-BPBUUGAO.js.map → chunk-ANV373S5.js.map} +0 -0
- /package/dist/{chunk-LSSCMZQ2.js.map → chunk-B3I2QQU7.js.map} +0 -0
- /package/dist/{chunk-NSQSOLCE.js.map → chunk-B7VKRCAG.js.map} +0 -0
- /package/dist/{chunk-HXFIILGF.js.map → chunk-BFPF5N3H.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-BUKK5SWA.js.map} +0 -0
- /package/dist/{chunk-RBC4GIZU.js.map → chunk-BUKZ7MTN.js.map} +0 -0
- /package/dist/{chunk-FO5AFCRI.js.map → chunk-CR72WZ3M.js.map} +0 -0
- /package/dist/{chunk-YC2C67F7.js.map → chunk-CRXGQRNA.js.map} +0 -0
- /package/dist/{chunk-WRDFYSUC.js.map → chunk-CZVNOTLR.js.map} +0 -0
- /package/dist/{chunk-VPO53QMG.js.map → chunk-D6DOLQYK.js.map} +0 -0
- /package/dist/{chunk-HRT2SJPC.js.map → chunk-E3NBMTTX.js.map} +0 -0
- /package/dist/{chunk-HIMXDRSQ.js.map → chunk-E5IEI2MR.js.map} +0 -0
- /package/dist/{chunk-Z2T5BPOZ.js.map → chunk-EIYJK7OD.js.map} +0 -0
- /package/dist/{chunk-FRAL3EU4.js.map → chunk-EKPRLTAE.js.map} +0 -0
- /package/dist/{chunk-EVVCE7S2.js.map → chunk-EKR6OO4P.js.map} +0 -0
- /package/dist/{chunk-6R6CU3MR.js.map → chunk-F2IU6A2L.js.map} +0 -0
- /package/dist/{chunk-FL6SLVAJ.js.map → chunk-FAKRTS3Y.js.map} +0 -0
- /package/dist/{chunk-64IO6ZEE.js.map → chunk-FC3ZFEXF.js.map} +0 -0
- /package/dist/{chunk-DGBWPSM6.js.map → chunk-FLDXEJFX.js.map} +0 -0
- /package/dist/{chunk-JH4FCVWJ.js.map → chunk-G6OFEGUR.js.map} +0 -0
- /package/dist/{chunk-Z5QWUR3Y.js.map → chunk-GCW7UT5I.js.map} +0 -0
- /package/dist/{chunk-ULUX6Q7R.js.map → chunk-GE5ZNDLE.js.map} +0 -0
- /package/dist/{chunk-U4JXQCJ3.js.map → chunk-GLB6VV3J.js.map} +0 -0
- /package/dist/{chunk-RWWYBE7E.js.map → chunk-GPVGAHXL.js.map} +0 -0
- /package/dist/{chunk-3BPMYMPX.js.map → chunk-GSBSGT43.js.map} +0 -0
- /package/dist/{chunk-645WOU5I.js.map → chunk-H7BZBSP6.js.map} +0 -0
- /package/dist/{chunk-GFYFKXWZ.js.map → chunk-HUDPXTXW.js.map} +0 -0
- /package/dist/{chunk-L2JQSG5M.js.map → chunk-I7TR2OCU.js.map} +0 -0
- /package/dist/{chunk-HKEK27M4.js.map → chunk-IAOW2L6K.js.map} +0 -0
- /package/dist/{chunk-STM4T335.js.map → chunk-IJH6METJ.js.map} +0 -0
- /package/dist/{chunk-WADPRAZE.js.map → chunk-IZRNMXZC.js.map} +0 -0
- /package/dist/{chunk-LAQS5HYU.js.map → chunk-JM6U3SAE.js.map} +0 -0
- /package/dist/{chunk-74AY3S7U.js.map → chunk-JNLYHJG7.js.map} +0 -0
- /package/dist/{chunk-7ZBANI3M.js.map → chunk-JOOGPZJE.js.map} +0 -0
- /package/dist/{chunk-V5RJCXLG.js.map → chunk-JORSMFL6.js.map} +0 -0
- /package/dist/{chunk-VKTP3TZB.js.map → chunk-JQCP5QW3.js.map} +0 -0
- /package/dist/{chunk-LRJKHXU4.js.map → chunk-JRTKYFFY.js.map} +0 -0
- /package/dist/{chunk-UMFBHYPW.js.map → chunk-JT3IXJIL.js.map} +0 -0
- /package/dist/{chunk-S53WZWGL.js.map → chunk-JZFJZLJY.js.map} +0 -0
- /package/dist/{chunk-6QOL4G76.js.map → chunk-KQXRVELF.js.map} +0 -0
- /package/dist/{chunk-USOXPN5H.js.map → chunk-L74NWAD4.js.map} +0 -0
- /package/dist/{chunk-Y6Y3TRBN.js.map → chunk-LJXBFVI2.js.map} +0 -0
- /package/dist/{chunk-3L5WH6CV.js.map → chunk-LPD6I2U6.js.map} +0 -0
- /package/dist/{chunk-LDXS746V.js.map → chunk-LR7RW4T6.js.map} +0 -0
- /package/dist/{chunk-FZVZYU5C.js.map → chunk-LXN737FX.js.map} +0 -0
- /package/dist/{chunk-ARFT6ZBE.js.map → chunk-MGYZENUY.js.map} +0 -0
- /package/dist/{chunk-YQ6SLFNZ.js.map → chunk-MPJDQC4G.js.map} +0 -0
- /package/dist/{chunk-5UWP5X3T.js.map → chunk-NJ2DZYEK.js.map} +0 -0
- /package/dist/{chunk-MBMT5FUQ.js.map → chunk-O2O4FDAH.js.map} +0 -0
- /package/dist/{chunk-GCVUBVEN.js.map → chunk-ODJ2HRFW.js.map} +0 -0
- /package/dist/{chunk-2NLLXCJG.js.map → chunk-OWHERGF2.js.map} +0 -0
- /package/dist/{chunk-I73ZSORJ.js.map → chunk-OXSTKCYK.js.map} +0 -0
- /package/dist/{chunk-CNQQNYJ2.js.map → chunk-P3YUEPSQ.js.map} +0 -0
- /package/dist/{chunk-TPKB7T6Z.js.map → chunk-Q6UZREJK.js.map} +0 -0
- /package/dist/{chunk-UJDTXWMT.js.map → chunk-QIMGULGN.js.map} +0 -0
- /package/dist/{chunk-E24RUQEN.js.map → chunk-QNIYL5SK.js.map} +0 -0
- /package/dist/{chunk-KOY25HUB.js.map → chunk-QYAXMXOB.js.map} +0 -0
- /package/dist/{chunk-CU7WDDPV.js.map → chunk-RIAKNXZB.js.map} +0 -0
- /package/dist/{chunk-UQWA5QDT.js.map → chunk-RO2NNWR5.js.map} +0 -0
- /package/dist/{chunk-AYXRK264.js.map → chunk-RROFIAYI.js.map} +0 -0
- /package/dist/{chunk-L46Y5FPE.js.map → chunk-RUAIO5UA.js.map} +0 -0
- /package/dist/{chunk-QIC7YZ3D.js.map → chunk-RWW5KPIY.js.map} +0 -0
- /package/dist/{chunk-E5PVMB3I.js.map → chunk-SDXBR5QO.js.map} +0 -0
- /package/dist/{chunk-WSLNC5AL.js.map → chunk-SJHFU52W.js.map} +0 -0
- /package/dist/{chunk-7PG7QBWD.js.map → chunk-SRPGA6WN.js.map} +0 -0
- /package/dist/{chunk-CUWOSRCS.js.map → chunk-SUKPM6DV.js.map} +0 -0
- /package/dist/{chunk-G2SRB62M.js.map → chunk-TTQYX7VU.js.map} +0 -0
- /package/dist/{chunk-TDCR6PQL.js.map → chunk-TWRPWJJT.js.map} +0 -0
- /package/dist/{chunk-KC5SVCUJ.js.map → chunk-U66CTIF5.js.map} +0 -0
- /package/dist/{chunk-D2AKUKAQ.js.map → chunk-UIK3U36O.js.map} +0 -0
- /package/dist/{chunk-XLEP7SS3.js.map → chunk-UMSH4I3E.js.map} +0 -0
- /package/dist/{chunk-X7Y7WX73.js.map → chunk-UVYI6VIX.js.map} +0 -0
- /package/dist/{chunk-LHBOFROT.js.map → chunk-V2XMG7GM.js.map} +0 -0
- /package/dist/{chunk-NQOM6PHO.js.map → chunk-VCOCOBUS.js.map} +0 -0
- /package/dist/{chunk-4P4VLPGB.js.map → chunk-VECRSYQG.js.map} +0 -0
- /package/dist/{chunk-ID2PLENW.js.map → chunk-VHBGJAYC.js.map} +0 -0
- /package/dist/{chunk-RVYXSS3Q.js.map → chunk-VIS23B6O.js.map} +0 -0
- /package/dist/{chunk-NMKETOAX.js.map → chunk-VSHWPOUB.js.map} +0 -0
- /package/dist/{chunk-UBN5AOLT.js.map → chunk-W5EO4USJ.js.map} +0 -0
- /package/dist/{chunk-Y7427SL7.js.map → chunk-WCGJK4NQ.js.map} +0 -0
- /package/dist/{chunk-CCYXCT4B.js.map → chunk-WQYS47G4.js.map} +0 -0
- /package/dist/{chunk-JH2ALMPR.js.map → chunk-WR5POHQ3.js.map} +0 -0
- /package/dist/{chunk-DK5VMJL3.js.map → chunk-WT2VVYBM.js.map} +0 -0
- /package/dist/{chunk-EHIKY2IA.js.map → chunk-WU5WTCH5.js.map} +0 -0
- /package/dist/{chunk-QKXPOLQD.js.map → chunk-WUBGMV3G.js.map} +0 -0
- /package/dist/{chunk-O6YJI5VX.js.map → chunk-WUL6LDJ4.js.map} +0 -0
- /package/dist/{chunk-5EILJ6W2.js.map → chunk-WXPBDEMW.js.map} +0 -0
- /package/dist/{chunk-U7HJBODU.js.map → chunk-XKTHJHSQ.js.map} +0 -0
- /package/dist/{chunk-JFI3ATK4.js.map → chunk-XMYWYJM2.js.map} +0 -0
- /package/dist/{chunk-64S6X4IU.js.map → chunk-XTN54NML.js.map} +0 -0
- /package/dist/{chunk-VGFNTY3Y.js.map → chunk-YFXRLRKP.js.map} +0 -0
- /package/dist/{chunk-DAOMWGO2.js.map → chunk-ZX5N5D6M.js.map} +0 -0
- /package/dist/{chunk-PTRPOJ7U.js.map → chunk-ZXFKG7VZ.js.map} +0 -0
- /package/dist/{resolution-4ZEQPXUZ.js.map → extraction-window-drain.js.map} +0 -0
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadSyncState,
|
|
7
7
|
syncWearableSource,
|
|
8
8
|
wearableSourceLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2AV2U2SZ.js";
|
|
10
10
|
import {
|
|
11
11
|
CompressionGuidelineCoordinator
|
|
12
12
|
} from "./chunk-5PHOU5QI.js";
|
|
13
13
|
import {
|
|
14
14
|
ActivityStore,
|
|
15
15
|
MaintenanceScheduler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JT3IXJIL.js";
|
|
17
17
|
import {
|
|
18
18
|
runPeerProfileReasoner
|
|
19
19
|
} from "./chunk-I74SUMNI.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-VZAKYDMJ.js";
|
|
23
23
|
import {
|
|
24
24
|
LcmEngine
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-WCGJK4NQ.js";
|
|
26
26
|
import {
|
|
27
27
|
chunkTranscriptEntries
|
|
28
28
|
} from "./chunk-TECVW3JP.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
CompoundingEngine,
|
|
34
34
|
defaultTierMigrationCycleBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VCOCOBUS.js";
|
|
36
36
|
import {
|
|
37
37
|
SharedContextManager
|
|
38
38
|
} from "./chunk-5KBIOI4G.js";
|
|
@@ -47,6 +47,9 @@ import {
|
|
|
47
47
|
import {
|
|
48
48
|
extractTopics
|
|
49
49
|
} from "./chunk-KVDUKH5E.js";
|
|
50
|
+
import {
|
|
51
|
+
buildTemporalTimelineRecallSection
|
|
52
|
+
} from "./chunk-VHF73MGU.js";
|
|
50
53
|
import {
|
|
51
54
|
CODEX_THREAD_KEY_PREFIX
|
|
52
55
|
} from "./chunk-4EX5WZ4M.js";
|
|
@@ -63,9 +66,6 @@ import {
|
|
|
63
66
|
buildTargetedFactRecallSection,
|
|
64
67
|
shouldRecallTargetedFactEvidence
|
|
65
68
|
} from "./chunk-T67LUYCR.js";
|
|
66
|
-
import {
|
|
67
|
-
buildTemporalTimelineRecallSection
|
|
68
|
-
} from "./chunk-VHF73MGU.js";
|
|
69
69
|
import {
|
|
70
70
|
memoriesToStandingEntries,
|
|
71
71
|
prefixStandingMemoryBlock,
|
|
@@ -74,24 +74,12 @@ import {
|
|
|
74
74
|
import {
|
|
75
75
|
SessionObserverState
|
|
76
76
|
} from "./chunk-ODZKV2F7.js";
|
|
77
|
-
import {
|
|
78
|
-
applyRuntimeRetrievalPolicy
|
|
79
|
-
} from "./chunk-5IZL4DCV.js";
|
|
80
|
-
import {
|
|
81
|
-
RerankCache,
|
|
82
|
-
reorderByRankedKeys,
|
|
83
|
-
rerankLocalOrNoop
|
|
84
|
-
} from "./chunk-LUDXM7MD.js";
|
|
85
|
-
import {
|
|
86
|
-
buildResponseGuidanceRecallSection,
|
|
87
|
-
shouldRecallResponseGuidance
|
|
88
|
-
} from "./chunk-6TCXIRP5.js";
|
|
89
77
|
import {
|
|
90
78
|
mergeWithAgentResults,
|
|
91
79
|
runDirectAgent,
|
|
92
80
|
runTemporalAgent,
|
|
93
81
|
shouldRunAgent
|
|
94
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-XMYWYJM2.js";
|
|
95
83
|
import {
|
|
96
84
|
clearIndexesAsync,
|
|
97
85
|
deindexMemoriesBatchAsync,
|
|
@@ -108,15 +96,27 @@ import {
|
|
|
108
96
|
resolvePromptTagPrefilterAsync
|
|
109
97
|
} from "./chunk-ZOKZIR5K.js";
|
|
110
98
|
import {
|
|
111
|
-
|
|
112
|
-
} from "./chunk-
|
|
99
|
+
applyRuntimeRetrievalPolicy
|
|
100
|
+
} from "./chunk-5IZL4DCV.js";
|
|
113
101
|
import {
|
|
114
102
|
RelevanceStore
|
|
115
103
|
} from "./chunk-X7J56GPG.js";
|
|
104
|
+
import {
|
|
105
|
+
RerankCache,
|
|
106
|
+
reorderByRankedKeys,
|
|
107
|
+
rerankLocalOrNoop
|
|
108
|
+
} from "./chunk-LUDXM7MD.js";
|
|
109
|
+
import {
|
|
110
|
+
buildResponseGuidanceRecallSection,
|
|
111
|
+
shouldRecallResponseGuidance
|
|
112
|
+
} from "./chunk-6TCXIRP5.js";
|
|
113
|
+
import {
|
|
114
|
+
findUnresolvedEntityRefs
|
|
115
|
+
} from "./chunk-X7XN6YU4.js";
|
|
116
116
|
import {
|
|
117
117
|
indexStateViewAnnotatedResults,
|
|
118
118
|
resolveRecallStateViewActive
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-E5IEI2MR.js";
|
|
120
120
|
import {
|
|
121
121
|
applyRecallStateViews
|
|
122
122
|
} from "./chunk-DBB5JPSL.js";
|
|
@@ -128,15 +128,15 @@ import {
|
|
|
128
128
|
import {
|
|
129
129
|
reorderRecallResultsWithMmr
|
|
130
130
|
} from "./chunk-IIK2PD3F.js";
|
|
131
|
-
import {
|
|
132
|
-
applyReasoningTraceBoost
|
|
133
|
-
} from "./chunk-EVWDNKQA.js";
|
|
134
131
|
import {
|
|
135
132
|
compactRecallContextFromBuckets,
|
|
136
133
|
decideRecallContextComposition,
|
|
137
134
|
notifyContextComposition,
|
|
138
135
|
recallFailureComposition
|
|
139
136
|
} from "./chunk-YK7ZJPQM.js";
|
|
137
|
+
import {
|
|
138
|
+
applyReasoningTraceBoost
|
|
139
|
+
} from "./chunk-EVWDNKQA.js";
|
|
140
140
|
import {
|
|
141
141
|
installPrioritizedEmbedding
|
|
142
142
|
} from "./chunk-ROI7BK7H.js";
|
|
@@ -154,12 +154,6 @@ import {
|
|
|
154
154
|
import {
|
|
155
155
|
runLiveConnectorsOnce
|
|
156
156
|
} from "./chunk-APYY5CX3.js";
|
|
157
|
-
import {
|
|
158
|
-
classifyMemoryKind
|
|
159
|
-
} from "./chunk-YAZNBMNF.js";
|
|
160
|
-
import {
|
|
161
|
-
scoreEvidencePathDetail
|
|
162
|
-
} from "./chunk-XXSOVESA.js";
|
|
163
157
|
import {
|
|
164
158
|
deriveHarmonicRecords,
|
|
165
159
|
harmonicEntityReferenceMatches,
|
|
@@ -168,15 +162,27 @@ import {
|
|
|
168
162
|
persistHarmonicRecords
|
|
169
163
|
} from "./chunk-LQ5SS4OP.js";
|
|
170
164
|
import {
|
|
171
|
-
|
|
172
|
-
} from "./chunk-
|
|
165
|
+
classifyMemoryKind
|
|
166
|
+
} from "./chunk-YAZNBMNF.js";
|
|
173
167
|
import {
|
|
174
|
-
|
|
175
|
-
} from "./chunk-
|
|
168
|
+
scoreEvidencePathDetail
|
|
169
|
+
} from "./chunk-XXSOVESA.js";
|
|
176
170
|
import {
|
|
177
171
|
buildFocusedListRecallSection,
|
|
178
172
|
shouldRecallFocusedListEvidence
|
|
179
173
|
} from "./chunk-OH7QLI6W.js";
|
|
174
|
+
import {
|
|
175
|
+
chunkExtractionWindow,
|
|
176
|
+
classifyDrainResult,
|
|
177
|
+
extractionWindowBudgetChars,
|
|
178
|
+
mergeDrainResults
|
|
179
|
+
} from "./chunk-VA3GNAWQ.js";
|
|
180
|
+
import {
|
|
181
|
+
ExtractionEngine
|
|
182
|
+
} from "./chunk-VIS23B6O.js";
|
|
183
|
+
import {
|
|
184
|
+
parseMemoryActionEligibilityContext
|
|
185
|
+
} from "./chunk-JHU4EYDV.js";
|
|
180
186
|
import {
|
|
181
187
|
recordJudgeTrainingPair
|
|
182
188
|
} from "./chunk-PWFCHOB3.js";
|
|
@@ -186,10 +192,13 @@ import {
|
|
|
186
192
|
getVerdictKind,
|
|
187
193
|
judgeFactDurability,
|
|
188
194
|
validateProcedureExtraction
|
|
189
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-TJ5YGCPV.js";
|
|
196
|
+
import {
|
|
197
|
+
buildExplicitCueRecallSection
|
|
198
|
+
} from "./chunk-TVIVY7KU.js";
|
|
190
199
|
import {
|
|
191
200
|
buildEventOrderRecallSection
|
|
192
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-H7BZBSP6.js";
|
|
193
202
|
import {
|
|
194
203
|
shouldRecallEventOrderEvidence
|
|
195
204
|
} from "./chunk-BUYVPUEM.js";
|
|
@@ -197,29 +206,26 @@ import {
|
|
|
197
206
|
pickFactEventTimeAnchor,
|
|
198
207
|
resolveFactEventTime
|
|
199
208
|
} from "./chunk-IAIPNEHD.js";
|
|
200
|
-
import {
|
|
201
|
-
buildExplicitCueRecallSection
|
|
202
|
-
} from "./chunk-TVIVY7KU.js";
|
|
203
209
|
import {
|
|
204
210
|
buildEntityRecallSection,
|
|
205
211
|
entityRecentTranscriptLookbackHours,
|
|
206
212
|
readRecentEntityTranscriptEntries
|
|
207
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-6Z2ZWBOV.js";
|
|
208
214
|
import {
|
|
209
215
|
planEpisodeWindowsWithFallback
|
|
210
216
|
} from "./chunk-T3GIETKV.js";
|
|
211
|
-
import {
|
|
212
|
-
tryDirectAnswer
|
|
213
|
-
} from "./chunk-5IIQU4JZ.js";
|
|
214
217
|
import {
|
|
215
218
|
EmbeddingFallback
|
|
216
219
|
} from "./chunk-DZPTR2XQ.js";
|
|
220
|
+
import {
|
|
221
|
+
tryDirectAnswer
|
|
222
|
+
} from "./chunk-5IIQU4JZ.js";
|
|
217
223
|
import {
|
|
218
224
|
formatDaySummaryMemories
|
|
219
225
|
} from "./chunk-7G5NTS7F.js";
|
|
220
226
|
import {
|
|
221
227
|
refreshConvergedNamespaces
|
|
222
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-LPD6I2U6.js";
|
|
223
229
|
import {
|
|
224
230
|
builtInConnectorPackageSpecifier,
|
|
225
231
|
ensureBuiltInWearableConnectors,
|
|
@@ -228,7 +234,7 @@ import {
|
|
|
228
234
|
runTimelinePublishCli,
|
|
229
235
|
screenCandidateFact,
|
|
230
236
|
summarizeVaultPublish
|
|
231
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-F2IU6A2L.js";
|
|
232
238
|
import {
|
|
233
239
|
normalizeReplaySessionKey
|
|
234
240
|
} from "./chunk-AJVLDJU6.js";
|
|
@@ -238,14 +244,14 @@ import {
|
|
|
238
244
|
import {
|
|
239
245
|
compareVerifiedEpisodeResults,
|
|
240
246
|
searchVerifiedEpisodes
|
|
241
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-JOOGPZJE.js";
|
|
242
248
|
import {
|
|
243
249
|
ThreadingManager
|
|
244
250
|
} from "./chunk-R7WYAXPO.js";
|
|
245
251
|
import {
|
|
246
252
|
compareVerifiedSemanticRuleResults,
|
|
247
253
|
searchVerifiedSemanticRules
|
|
248
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-U66CTIF5.js";
|
|
249
255
|
import {
|
|
250
256
|
searchWorkProductLedgerEntries
|
|
251
257
|
} from "./chunk-B2NXOVZN.js";
|
|
@@ -258,10 +264,10 @@ import {
|
|
|
258
264
|
import {
|
|
259
265
|
runNamespaceMaintenanceFanout,
|
|
260
266
|
summarizeNamespaceMaintenanceHealth
|
|
261
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-ODJ2HRFW.js";
|
|
262
268
|
import {
|
|
263
269
|
planNamespaceMaintenance
|
|
264
|
-
} from "./chunk-
|
|
270
|
+
} from "./chunk-B3I2QQU7.js";
|
|
265
271
|
import {
|
|
266
272
|
isAboveImportanceThreshold,
|
|
267
273
|
scoreImportance
|
|
@@ -290,10 +296,10 @@ import {
|
|
|
290
296
|
materializeAfterSemanticConsolidation,
|
|
291
297
|
parseConsolidationResponse,
|
|
292
298
|
parseOperatorAwareConsolidationResponse
|
|
293
|
-
} from "./chunk-
|
|
299
|
+
} from "./chunk-JRTKYFFY.js";
|
|
294
300
|
import {
|
|
295
301
|
SmartBuffer
|
|
296
|
-
} from "./chunk-
|
|
302
|
+
} from "./chunk-JGS55BAS.js";
|
|
297
303
|
import {
|
|
298
304
|
semanticChunkContent
|
|
299
305
|
} from "./chunk-2GBFKHBZ.js";
|
|
@@ -329,7 +335,7 @@ import {
|
|
|
329
335
|
embeddingsFromCosineHits,
|
|
330
336
|
normalizeConnectorScope,
|
|
331
337
|
runSeedGraduationPass
|
|
332
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-FJ264QBP.js";
|
|
333
339
|
import {
|
|
334
340
|
compileCorrectionRule,
|
|
335
341
|
correctionsFilePath,
|
|
@@ -367,7 +373,7 @@ import {
|
|
|
367
373
|
} from "./chunk-QW27DOHG.js";
|
|
368
374
|
import {
|
|
369
375
|
MeetingsInputError
|
|
370
|
-
} from "./chunk-
|
|
376
|
+
} from "./chunk-RWW5KPIY.js";
|
|
371
377
|
import {
|
|
372
378
|
WearablesInputError,
|
|
373
379
|
describeErrorForOperator
|
|
@@ -382,10 +388,10 @@ import {
|
|
|
382
388
|
import {
|
|
383
389
|
removeNodeEdgesForRewrite,
|
|
384
390
|
rollbackNodeEdgeRewrite
|
|
385
|
-
} from "./chunk-
|
|
391
|
+
} from "./chunk-LXN737FX.js";
|
|
386
392
|
import {
|
|
387
393
|
NamespaceCatalog
|
|
388
|
-
} from "./chunk-
|
|
394
|
+
} from "./chunk-SRPGA6WN.js";
|
|
389
395
|
import {
|
|
390
396
|
RecallResultFormatter,
|
|
391
397
|
SessionContextCoordinator,
|
|
@@ -394,10 +400,10 @@ import {
|
|
|
394
400
|
detectPassiveCorrections,
|
|
395
401
|
renderSessionExperiencePreview,
|
|
396
402
|
scoreSessionExperienceForPrompt
|
|
397
|
-
} from "./chunk-
|
|
403
|
+
} from "./chunk-7IANFJ24.js";
|
|
398
404
|
import {
|
|
399
405
|
importCapsule
|
|
400
|
-
} from "./chunk-
|
|
406
|
+
} from "./chunk-IJH6METJ.js";
|
|
401
407
|
import {
|
|
402
408
|
isCodingGraphInstalled
|
|
403
409
|
} from "./chunk-VQ7B2Q6M.js";
|
|
@@ -414,7 +420,7 @@ import {
|
|
|
414
420
|
} from "./chunk-JWX2Q6HS.js";
|
|
415
421
|
import {
|
|
416
422
|
HourlySummarizer
|
|
417
|
-
} from "./chunk-
|
|
423
|
+
} from "./chunk-FAKRTS3Y.js";
|
|
418
424
|
import {
|
|
419
425
|
LastRecallStore,
|
|
420
426
|
RecallHandleHistoryStore,
|
|
@@ -423,7 +429,7 @@ import {
|
|
|
423
429
|
} from "./chunk-HTTZ3GJ6.js";
|
|
424
430
|
import {
|
|
425
431
|
buildXraySnapshot
|
|
426
|
-
} from "./chunk-
|
|
432
|
+
} from "./chunk-VHBGJAYC.js";
|
|
427
433
|
import {
|
|
428
434
|
objectiveStateStoreOverrideForNamespace,
|
|
429
435
|
searchObjectiveStateSnapshots
|
|
@@ -434,10 +440,10 @@ import {
|
|
|
434
440
|
isTopLevelArchivePath,
|
|
435
441
|
journalPath,
|
|
436
442
|
writeJournalFile
|
|
437
|
-
} from "./chunk-
|
|
443
|
+
} from "./chunk-AER3HD3B.js";
|
|
438
444
|
import {
|
|
439
445
|
searchHarmonicRetrieval
|
|
440
|
-
} from "./chunk-
|
|
446
|
+
} from "./chunk-JQCP5QW3.js";
|
|
441
447
|
import {
|
|
442
448
|
ProfilingCollector
|
|
443
449
|
} from "./chunk-DOWACHYO.js";
|
|
@@ -450,7 +456,7 @@ import {
|
|
|
450
456
|
} from "./chunk-LTHVM4XN.js";
|
|
451
457
|
import {
|
|
452
458
|
shouldSkipImplicitExtraction
|
|
453
|
-
} from "./chunk-
|
|
459
|
+
} from "./chunk-WU5WTCH5.js";
|
|
454
460
|
import {
|
|
455
461
|
composeRecallContext,
|
|
456
462
|
contextBudgetForFooter,
|
|
@@ -458,15 +464,15 @@ import {
|
|
|
458
464
|
renderAuthorityBoundContent,
|
|
459
465
|
selectCuriosityQuestion
|
|
460
466
|
} from "./chunk-NVKO5YKP.js";
|
|
461
|
-
import {
|
|
462
|
-
NamespaceStorageRouter
|
|
463
|
-
} from "./chunk-FBAHBFT5.js";
|
|
464
467
|
import {
|
|
465
468
|
pruneOrphanCueAnchors
|
|
466
469
|
} from "./chunk-LXATZLSC.js";
|
|
470
|
+
import {
|
|
471
|
+
NamespaceStorageRouter
|
|
472
|
+
} from "./chunk-4HJ2QK32.js";
|
|
467
473
|
import {
|
|
468
474
|
GraphIndex
|
|
469
|
-
} from "./chunk-
|
|
475
|
+
} from "./chunk-WUBGMV3G.js";
|
|
470
476
|
import {
|
|
471
477
|
GraphEdgeAppendError
|
|
472
478
|
} from "./chunk-GKCXTSFF.js";
|
|
@@ -474,7 +480,7 @@ import {
|
|
|
474
480
|
ExtractionDeadlineError,
|
|
475
481
|
ExtractionRunCoordinator,
|
|
476
482
|
classifyExtractionOrigin
|
|
477
|
-
} from "./chunk-
|
|
483
|
+
} from "./chunk-6X3J4NLZ.js";
|
|
478
484
|
import {
|
|
479
485
|
ARTIFACT_STATUS_CACHE_TTL_MS,
|
|
480
486
|
BulkImportBatchPartialFailureError,
|
|
@@ -514,7 +520,7 @@ import {
|
|
|
514
520
|
throwIfRecallAborted,
|
|
515
521
|
tokenizeRecallQuery,
|
|
516
522
|
utcDateKeysForLocalDay
|
|
517
|
-
} from "./chunk-
|
|
523
|
+
} from "./chunk-UIK3U36O.js";
|
|
518
524
|
import {
|
|
519
525
|
inferIntentFromText,
|
|
520
526
|
intentCompatibilityScore,
|
|
@@ -523,12 +529,13 @@ import {
|
|
|
523
529
|
} from "./chunk-CSAKJVXW.js";
|
|
524
530
|
import {
|
|
525
531
|
LocalLlmClient
|
|
526
|
-
} from "./chunk-
|
|
532
|
+
} from "./chunk-JNLYHJG7.js";
|
|
527
533
|
import {
|
|
528
534
|
buildChainFollowupGenerator
|
|
529
|
-
} from "./chunk-
|
|
535
|
+
} from "./chunk-JZFJZLJY.js";
|
|
530
536
|
import {
|
|
531
537
|
bufferTurnsEqual,
|
|
538
|
+
describeError,
|
|
532
539
|
groupTurnsByExtractionScope
|
|
533
540
|
} from "./chunk-KZMRMKC7.js";
|
|
534
541
|
import {
|
|
@@ -555,7 +562,7 @@ import {
|
|
|
555
562
|
} from "./chunk-QDW3E4RD.js";
|
|
556
563
|
import {
|
|
557
564
|
searchCausalTrajectories
|
|
558
|
-
} from "./chunk-
|
|
565
|
+
} from "./chunk-VECRSYQG.js";
|
|
559
566
|
import {
|
|
560
567
|
QmdResultResolver,
|
|
561
568
|
StorageManager,
|
|
@@ -574,7 +581,7 @@ import {
|
|
|
574
581
|
reconstructFusionInputs,
|
|
575
582
|
selfDeps,
|
|
576
583
|
serializeFusionDay
|
|
577
|
-
} from "./chunk-
|
|
584
|
+
} from "./chunk-5KZNWERU.js";
|
|
578
585
|
import {
|
|
579
586
|
bodyIsEscaped,
|
|
580
587
|
decodeTranscriptBody,
|
|
@@ -591,12 +598,12 @@ import {
|
|
|
591
598
|
import {
|
|
592
599
|
NamespaceSearchRouter,
|
|
593
600
|
namespaceCollectionName
|
|
594
|
-
} from "./chunk-
|
|
601
|
+
} from "./chunk-V2XMG7GM.js";
|
|
595
602
|
import {
|
|
596
603
|
createConversationIndexRuntime,
|
|
597
604
|
createSearchBackend,
|
|
598
605
|
isSearchBackendEnabled
|
|
599
|
-
} from "./chunk-
|
|
606
|
+
} from "./chunk-4QLKVZH6.js";
|
|
600
607
|
import {
|
|
601
608
|
NoopSearchBackend
|
|
602
609
|
} from "./chunk-CYEPCZN5.js";
|
|
@@ -616,11 +623,11 @@ import {
|
|
|
616
623
|
applyFaithfulnessVerdict,
|
|
617
624
|
createFaithfulnessCounters,
|
|
618
625
|
runFaithfulnessGateBatch
|
|
619
|
-
} from "./chunk-
|
|
626
|
+
} from "./chunk-WXPBDEMW.js";
|
|
620
627
|
import {
|
|
621
628
|
canonicalSemanticFileText,
|
|
622
629
|
casCommittedRevisionOf
|
|
623
|
-
} from "./chunk-
|
|
630
|
+
} from "./chunk-MPJDQC4G.js";
|
|
624
631
|
import {
|
|
625
632
|
applyDirectorySidecarDrillDown,
|
|
626
633
|
isDirectorySidecarsEnabledForDir,
|
|
@@ -678,7 +685,7 @@ import {
|
|
|
678
685
|
import {
|
|
679
686
|
FallbackLlmClient,
|
|
680
687
|
gatewayTaskChainOptions
|
|
681
|
-
} from "./chunk-
|
|
688
|
+
} from "./chunk-AVVCPA7U.js";
|
|
682
689
|
import {
|
|
683
690
|
fallbackLlmRuntimeContextFromConfig
|
|
684
691
|
} from "./chunk-YIJECSIX.js";
|
|
@@ -699,14 +706,14 @@ import {
|
|
|
699
706
|
} from "./chunk-PJKTFXE2.js";
|
|
700
707
|
import {
|
|
701
708
|
confidenceTier
|
|
702
|
-
} from "./chunk-
|
|
709
|
+
} from "./chunk-PARM6OYL.js";
|
|
703
710
|
import {
|
|
704
711
|
extractJsonCandidates
|
|
705
712
|
} from "./chunk-YBA52OKG.js";
|
|
706
713
|
import {
|
|
707
714
|
localDayKey,
|
|
708
715
|
renderDayLocationContext
|
|
709
|
-
} from "./chunk-
|
|
716
|
+
} from "./chunk-YFXRLRKP.js";
|
|
710
717
|
import {
|
|
711
718
|
activityDayWindow,
|
|
712
719
|
assertValidTimezone,
|
|
@@ -718,7 +725,7 @@ import {
|
|
|
718
725
|
TAG_LIMITS,
|
|
719
726
|
composeMemoryEnvelope,
|
|
720
727
|
isMemoryCategory
|
|
721
|
-
} from "./chunk-
|
|
728
|
+
} from "./chunk-TWRPWJJT.js";
|
|
722
729
|
import {
|
|
723
730
|
normalizeTags
|
|
724
731
|
} from "./chunk-BT7NVCML.js";
|
|
@@ -726,7 +733,7 @@ import {
|
|
|
726
733
|
evaluateSubjectGuard,
|
|
727
734
|
isSharedPromotionTarget,
|
|
728
735
|
resolveWriteSubject
|
|
729
|
-
} from "./chunk-
|
|
736
|
+
} from "./chunk-SDXBR5QO.js";
|
|
730
737
|
import {
|
|
731
738
|
CAPSULE_ID_PATTERN
|
|
732
739
|
} from "./chunk-WEHSQBFR.js";
|
|
@@ -766,7 +773,7 @@ import {
|
|
|
766
773
|
} from "./chunk-PWPIERBM.js";
|
|
767
774
|
import {
|
|
768
775
|
ContentHashIndex
|
|
769
|
-
} from "./chunk-
|
|
776
|
+
} from "./chunk-W5EO4USJ.js";
|
|
770
777
|
import {
|
|
771
778
|
normalizeAttributePairs,
|
|
772
779
|
stripAttributesSuffix
|
|
@@ -782,7 +789,7 @@ import {
|
|
|
782
789
|
} from "./chunk-JAKIDQB2.js";
|
|
783
790
|
import {
|
|
784
791
|
storageBackedIndexStoreIo
|
|
785
|
-
} from "./chunk-
|
|
792
|
+
} from "./chunk-OXSTKCYK.js";
|
|
786
793
|
import {
|
|
787
794
|
assertIsDirectoryNotSymlink,
|
|
788
795
|
assertRealpathInsideRoot
|
|
@@ -864,7 +871,7 @@ import {
|
|
|
864
871
|
} from "./chunk-LDPPTPO5.js";
|
|
865
872
|
import {
|
|
866
873
|
SecureStoreLockedError
|
|
867
|
-
} from "./chunk-
|
|
874
|
+
} from "./chunk-EYGOM6AI.js";
|
|
868
875
|
import {
|
|
869
876
|
assertPathInsideRoot
|
|
870
877
|
} from "./chunk-C7HJ3NEI.js";
|
|
@@ -883,7 +890,7 @@ import {
|
|
|
883
890
|
|
|
884
891
|
// src/orchestrator.ts
|
|
885
892
|
import path23 from "path";
|
|
886
|
-
import { createHash as
|
|
893
|
+
import { createHash as createHash10 } from "crypto";
|
|
887
894
|
|
|
888
895
|
// src/orchestration/tier-migration-coordinator.ts
|
|
889
896
|
import path from "path";
|
|
@@ -15640,7 +15647,184 @@ var RecallSearchPipelineCoordinator = class {
|
|
|
15640
15647
|
};
|
|
15641
15648
|
|
|
15642
15649
|
// src/orchestration/turn-ingestion.ts
|
|
15643
|
-
import { createHash as
|
|
15650
|
+
import { createHash as createHash9, randomBytes } from "crypto";
|
|
15651
|
+
|
|
15652
|
+
// src/orchestration/extraction-drain.ts
|
|
15653
|
+
import { createHash as createHash8 } from "crypto";
|
|
15654
|
+
function chunkFingerprint(chunk) {
|
|
15655
|
+
const hash = createHash8("sha256");
|
|
15656
|
+
for (const turn of chunk) hash.update(`${turn.role}\0${turn.timestamp}\0${turn.content}`);
|
|
15657
|
+
return hash.digest("hex");
|
|
15658
|
+
}
|
|
15659
|
+
var ExtractionDrain = class {
|
|
15660
|
+
constructor(deps) {
|
|
15661
|
+
this.deps = deps;
|
|
15662
|
+
}
|
|
15663
|
+
deps;
|
|
15664
|
+
/**
|
|
15665
|
+
* Consecutive failed attempts on the head chunk, per buffer key. In memory on
|
|
15666
|
+
* purpose (a restart re-counts from zero). Bound to the chunk's content: a
|
|
15667
|
+
* count recorded for one chunk never applies to a different one, so a force
|
|
15668
|
+
* flush that clears a failing chunk cannot make unrelated content inherit its
|
|
15669
|
+
* failures.
|
|
15670
|
+
*/
|
|
15671
|
+
failures = /* @__PURE__ */ new Map();
|
|
15672
|
+
/**
|
|
15673
|
+
* Buffer key to the first turn of the chunk a qualified window stopped on.
|
|
15674
|
+
* The rest of such a window stays eligible on the next attempt even when it
|
|
15675
|
+
* is assistant-only or short: the window passed the thresholds as a whole,
|
|
15676
|
+
* and re-judging its tail would clear it unextracted. Cleared when the
|
|
15677
|
+
* window drains; one entry per key.
|
|
15678
|
+
*/
|
|
15679
|
+
qualified = /* @__PURE__ */ new Map();
|
|
15680
|
+
/** Characters the coordinator would count for this window: user/assistant text, trimmed and capped per turn, context-only turns left out. */
|
|
15681
|
+
windowChars(turns) {
|
|
15682
|
+
let total = 0;
|
|
15683
|
+
for (const turn of turns) {
|
|
15684
|
+
if (turn.role !== "user" && turn.role !== "assistant" || turn.extractionContextOnly === true) continue;
|
|
15685
|
+
total += turn.content.trim().slice(0, this.deps.config.extractionMaxTurnChars).length;
|
|
15686
|
+
}
|
|
15687
|
+
return total;
|
|
15688
|
+
}
|
|
15689
|
+
failureCount(bufferKey, chunk) {
|
|
15690
|
+
const entry = this.failures.get(bufferKey);
|
|
15691
|
+
return entry && entry.fingerprint === chunkFingerprint(chunk) ? entry.count : 0;
|
|
15692
|
+
}
|
|
15693
|
+
setFailureCount(bufferKey, chunk, count) {
|
|
15694
|
+
if (count <= 0) this.failures.delete(bufferKey);
|
|
15695
|
+
else this.failures.set(bufferKey, { fingerprint: chunkFingerprint(chunk), count });
|
|
15696
|
+
}
|
|
15697
|
+
/**
|
|
15698
|
+
* Run `runExtraction` over the trigger-drain window. When the window outgrows
|
|
15699
|
+
* the extraction model's input budget (the stall that keeps a session's buffer
|
|
15700
|
+
* growing forever: every observe re-fires the trigger on a window that can
|
|
15701
|
+
* never extract), split it into budget-fitting chunks and drain them in
|
|
15702
|
+
* order; each successful run clears its chunk, so the buffer shrinks across
|
|
15703
|
+
* observes. A chunk that fails `extractionChunkDropAfterFailures` times in a
|
|
15704
|
+
* row is dropped (side-file copy first). Breaker/backoff retention results
|
|
15705
|
+
* stop the drain without counting as chunk failures.
|
|
15706
|
+
*
|
|
15707
|
+
* Explicit drains (replay/import `clearBufferAfterExtraction: false`, force
|
|
15708
|
+
* flush, fail-closed callers, accepted captures) and windows that fit the
|
|
15709
|
+
* budget (or hosts without the budget accessor) take the single-run path.
|
|
15710
|
+
*
|
|
15711
|
+
* `preemptable`: the run was queued as preemptable automatic work. Each chunk's
|
|
15712
|
+
* persist step ends the host's preemption registration, so the drain registers
|
|
15713
|
+
* it again before every later chunk; a fail-closed flush can then abort the
|
|
15714
|
+
* next chunk's model request instead of waiting behind the whole window.
|
|
15715
|
+
*/
|
|
15716
|
+
async run(turns, runOptions, preemptable = false) {
|
|
15717
|
+
const budgetChars = this.deps.extractionWindowBudgetChars?.() ?? Number.POSITIVE_INFINITY;
|
|
15718
|
+
const chunkable = runOptions.clearBufferAfterExtraction && !runOptions.forceExtractionAttempt && !runOptions.failOnExtractionFailure && !turns.some((turn) => turn.acceptedCapture === true) && Number.isFinite(budgetChars) && budgetChars > 0;
|
|
15719
|
+
const chunks = chunkable ? chunkExtractionWindow(turns, budgetChars) : [];
|
|
15720
|
+
const resumed = chunks.length > 0 && this.qualified.get(runOptions.bufferKey) === chunkFingerprint(chunks[0].slice(0, 1));
|
|
15721
|
+
if (chunks.length <= 1 && !resumed) return await this.deps.runExtraction(turns, runOptions);
|
|
15722
|
+
if (!resumed) {
|
|
15723
|
+
const windowUserTurns = turns.filter((turn) => turn.role === "user").length;
|
|
15724
|
+
const belowChars = !runOptions.skipCharThreshold && this.windowChars(turns) < this.deps.config.extractionMinChars;
|
|
15725
|
+
if (!runOptions.skipUserTurnThreshold && windowUserTurns < this.deps.config.extractionMinUserTurns || belowChars) {
|
|
15726
|
+
return await this.deps.runExtraction(turns, runOptions);
|
|
15727
|
+
}
|
|
15728
|
+
}
|
|
15729
|
+
const baseOptions = { ...runOptions, skipCharThreshold: true, skipUserTurnThreshold: true };
|
|
15730
|
+
const bufferKey = runOptions.bufferKey;
|
|
15731
|
+
const byIdentity = runOptions.clearMatchingTurns === true;
|
|
15732
|
+
const dropAfter = this.deps.config.extractionChunkDropAfterFailures;
|
|
15733
|
+
let aggregate = null;
|
|
15734
|
+
for (const [position, chunk] of chunks.entries()) {
|
|
15735
|
+
this.qualified.set(bufferKey, chunkFingerprint(chunk.slice(0, 1)));
|
|
15736
|
+
let chunkOptions = { ...baseOptions, retentionWindow: chunks.slice(0, position + 1).flat() };
|
|
15737
|
+
let preempt;
|
|
15738
|
+
if (preemptable && position > 0) {
|
|
15739
|
+
const local = new AbortController();
|
|
15740
|
+
preempt = local;
|
|
15741
|
+
this.deps.extractionQueueCoordinator.beginPreemptable(() => local.abort(preemptedExtractionError()));
|
|
15742
|
+
chunkOptions = {
|
|
15743
|
+
...chunkOptions,
|
|
15744
|
+
abortSignal: runOptions.abortSignal ? AbortSignal.any([runOptions.abortSignal, local.signal]) : local.signal
|
|
15745
|
+
};
|
|
15746
|
+
}
|
|
15747
|
+
let failures = this.failureCount(bufferKey, chunk);
|
|
15748
|
+
let result;
|
|
15749
|
+
try {
|
|
15750
|
+
result = await this.deps.runExtraction(chunk, chunkOptions);
|
|
15751
|
+
} catch (err) {
|
|
15752
|
+
if (isAbortError(err)) throw preempt && preempt.signal.aborted && !runOptions.abortSignal?.aborted ? preempt.signal.reason : err;
|
|
15753
|
+
failures += 1;
|
|
15754
|
+
if (failures < dropAfter) {
|
|
15755
|
+
this.setFailureCount(bufferKey, chunk, failures);
|
|
15756
|
+
throw err;
|
|
15757
|
+
}
|
|
15758
|
+
const thrown = {
|
|
15759
|
+
status: "skipped",
|
|
15760
|
+
reason: `thrown: ${describeError(err)}`,
|
|
15761
|
+
persistedCount: 0,
|
|
15762
|
+
durableOutputCount: 0
|
|
15763
|
+
};
|
|
15764
|
+
if (!await this.dropFailedChunk(bufferKey, chunk, dropAfter, thrown, byIdentity)) {
|
|
15765
|
+
this.setFailureCount(bufferKey, chunk, failures);
|
|
15766
|
+
throw err;
|
|
15767
|
+
}
|
|
15768
|
+
this.setFailureCount(bufferKey, chunk, 0);
|
|
15769
|
+
continue;
|
|
15770
|
+
}
|
|
15771
|
+
const verdict = classifyDrainResult(result);
|
|
15772
|
+
if (verdict === "drained") {
|
|
15773
|
+
this.setFailureCount(bufferKey, chunk, 0);
|
|
15774
|
+
aggregate = mergeDrainResults(aggregate, result);
|
|
15775
|
+
continue;
|
|
15776
|
+
}
|
|
15777
|
+
if (verdict === "deferred") return mergeDrainResults(aggregate, result);
|
|
15778
|
+
if (result.failureClass === "provider_retryable" || result.failureClass === "auth_config") {
|
|
15779
|
+
return mergeDrainResults(aggregate, result);
|
|
15780
|
+
}
|
|
15781
|
+
failures += 1;
|
|
15782
|
+
if (failures >= dropAfter) {
|
|
15783
|
+
if (!await this.dropFailedChunk(bufferKey, chunk, dropAfter, result, byIdentity)) {
|
|
15784
|
+
this.setFailureCount(bufferKey, chunk, failures);
|
|
15785
|
+
return mergeDrainResults(aggregate, result);
|
|
15786
|
+
}
|
|
15787
|
+
this.setFailureCount(bufferKey, chunk, 0);
|
|
15788
|
+
aggregate = mergeDrainResults(aggregate, result);
|
|
15789
|
+
continue;
|
|
15790
|
+
}
|
|
15791
|
+
this.setFailureCount(bufferKey, chunk, failures);
|
|
15792
|
+
return mergeDrainResults(aggregate, result);
|
|
15793
|
+
}
|
|
15794
|
+
this.qualified.delete(bufferKey);
|
|
15795
|
+
return aggregate ?? { status: "skipped", persistedCount: 0, durableOutputCount: 0 };
|
|
15796
|
+
}
|
|
15797
|
+
/** Side-file copy first (content survives a failed drop), then remove the failing chunk from the buffer. Never throws:
|
|
15798
|
+
* the drop must not fail the extraction task that already settled its result. */
|
|
15799
|
+
async dropFailedChunk(bufferKey, chunk, dropAfter, result, byIdentity) {
|
|
15800
|
+
const reason = `dropped after ${dropAfter} repeated extraction failures (last result: status=${result.status} reason=${result.reason ?? "n/a"})`;
|
|
15801
|
+
try {
|
|
15802
|
+
const storage = await this.deps.getStorage();
|
|
15803
|
+
const path41 = await storage.saveDroppedExtractionChunk(bufferKey, reason, chunk);
|
|
15804
|
+
log.warn(`buffer[${bufferKey}]: dropping ${chunk.length} turns \u2014 ${reason}; copy saved to ${path41}`);
|
|
15805
|
+
} catch (err) {
|
|
15806
|
+
log.warn(
|
|
15807
|
+
`buffer[${bufferKey}]: could not save the dropped-chunk recovery copy; keeping the chunk in the buffer: ${describeError(err)}`
|
|
15808
|
+
);
|
|
15809
|
+
return false;
|
|
15810
|
+
}
|
|
15811
|
+
try {
|
|
15812
|
+
const dropped = await this.deps.buffer.dropExtractionChunk(bufferKey, chunk, { allowNonPrefix: byIdentity });
|
|
15813
|
+
if (dropped > 0) {
|
|
15814
|
+
log.warn(`buffer[${bufferKey}]: removed ${dropped} buffered turns \u2014 ${reason}`);
|
|
15815
|
+
return true;
|
|
15816
|
+
}
|
|
15817
|
+
log.warn(`buffer[${bufferKey}]: dropped chunk no longer matches the buffer; keeping it and its failure count`);
|
|
15818
|
+
} catch (err) {
|
|
15819
|
+
log.warn(
|
|
15820
|
+
`buffer[${bufferKey}]: failed to remove dropped chunk from buffer (will retry next trigger): ${describeError(err)}`
|
|
15821
|
+
);
|
|
15822
|
+
}
|
|
15823
|
+
return false;
|
|
15824
|
+
}
|
|
15825
|
+
};
|
|
15826
|
+
|
|
15827
|
+
// src/orchestration/turn-ingestion.ts
|
|
15644
15828
|
var ReplayAdmissionRefusedError = class extends Error {
|
|
15645
15829
|
constructor(message) {
|
|
15646
15830
|
super(message);
|
|
@@ -15653,10 +15837,13 @@ function isFlushPlanRecoveryTurn(turn) {
|
|
|
15653
15837
|
return typeof provenance?.sourceId === "string" && /:flush-plan(:\d+\/\d+)?$/.test(provenance.sourceId);
|
|
15654
15838
|
}
|
|
15655
15839
|
var TurnIngestionCoordinator = class {
|
|
15840
|
+
// chunked trigger-drain (extraction-drain.ts)
|
|
15656
15841
|
constructor(deps) {
|
|
15657
15842
|
this.deps = deps;
|
|
15843
|
+
this.drain = new ExtractionDrain(deps);
|
|
15658
15844
|
}
|
|
15659
15845
|
deps;
|
|
15846
|
+
drain;
|
|
15660
15847
|
async processTurn(role, content, sessionKey, options = {}) {
|
|
15661
15848
|
if (role !== "user" && role !== "assistant") {
|
|
15662
15849
|
log.debug(`processTurn: ignoring unsupported role=${String(role)}`);
|
|
@@ -15921,7 +16108,7 @@ var TurnIngestionCoordinator = class {
|
|
|
15921
16108
|
const shouldUseStableBatchKey = turns.some(
|
|
15922
16109
|
(turn) => turn.persistProcessedFingerprint === true || typeof turn.turnFingerprint === "string" && turn.turnFingerprint.length > 0
|
|
15923
16110
|
);
|
|
15924
|
-
const stableBatchFingerprint = shouldUseStableBatchKey ?
|
|
16111
|
+
const stableBatchFingerprint = shouldUseStableBatchKey ? createHash9("sha256").update(
|
|
15925
16112
|
turns.map(
|
|
15926
16113
|
(turn) => [
|
|
15927
16114
|
turn.role,
|
|
@@ -16267,7 +16454,7 @@ var TurnIngestionCoordinator = class {
|
|
|
16267
16454
|
effectiveScopePlan = fresh;
|
|
16268
16455
|
}
|
|
16269
16456
|
}
|
|
16270
|
-
const result = await this.
|
|
16457
|
+
const result = await this.drain.run(effectiveTurns, {
|
|
16271
16458
|
clearBufferAfterExtraction: options.clearBufferAfterExtraction ?? true,
|
|
16272
16459
|
clearMatchingTurns: options.clearMatchingTurns === true,
|
|
16273
16460
|
skipCharThreshold: options.skipCharThreshold ?? false,
|
|
@@ -16282,7 +16469,7 @@ var TurnIngestionCoordinator = class {
|
|
|
16282
16469
|
principalOverride: options.principalOverride,
|
|
16283
16470
|
scopeProfileWritePlan: effectiveScopePlan,
|
|
16284
16471
|
forceExtractionAttempt: options.forceExtractionAttempt === true
|
|
16285
|
-
});
|
|
16472
|
+
}, preemptable);
|
|
16286
16473
|
settleTask(void 0, result);
|
|
16287
16474
|
} catch (err) {
|
|
16288
16475
|
const reason2 = abortSignal.reason;
|
|
@@ -17674,7 +17861,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
17674
17861
|
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
17675
17862
|
if (!this.deps.wearablesAutoSyncHandle && this.deps.config.wearables.enabled && this.deps.config.wearables.autoSyncEnabled && Object.values(this.deps.config.wearables.sources).some((source) => source.enabled)) {
|
|
17676
17863
|
try {
|
|
17677
|
-
const { startWearablesAutoSync } = await import("./auto-sync-
|
|
17864
|
+
const { startWearablesAutoSync } = await import("./auto-sync-BNCBMU6H.js");
|
|
17678
17865
|
if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
|
|
17679
17866
|
this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
|
|
17680
17867
|
{
|
|
@@ -22572,7 +22759,7 @@ var Orchestrator = class {
|
|
|
22572
22759
|
utilityPromoteThresholdDelta: this.utilityRuntimeValues?.promoteThresholdDelta ?? 0,
|
|
22573
22760
|
utilityDemoteThresholdDelta: this.utilityRuntimeValues?.demoteThresholdDelta ?? 0
|
|
22574
22761
|
};
|
|
22575
|
-
return
|
|
22762
|
+
return createHash10("sha256").update(JSON.stringify(payload)).digest("hex").slice(0, 12);
|
|
22576
22763
|
}
|
|
22577
22764
|
effectiveLifecycleThresholds() {
|
|
22578
22765
|
const archiveDecayThreshold = this.config.lifecycleArchiveDecayThreshold;
|
|
@@ -23381,6 +23568,22 @@ ${doc.content}` : doc.content,
|
|
|
23381
23568
|
options
|
|
23382
23569
|
);
|
|
23383
23570
|
}
|
|
23571
|
+
/**
|
|
23572
|
+
* Max conversation characters the extraction model can take as input
|
|
23573
|
+
* (context window the ModelRegistry learned, capped by
|
|
23574
|
+
* `localLlmMaxContext` when set). Exposed for the trigger-drain chunking
|
|
23575
|
+
* in the turn-ingestion coordinator so an oversized buffer window is
|
|
23576
|
+
* drained in fitting chunks instead of failing whole.
|
|
23577
|
+
*/
|
|
23578
|
+
extractionWindowBudgetChars() {
|
|
23579
|
+
if (!this.modelRegistry) return Number.POSITIVE_INFINITY;
|
|
23580
|
+
return extractionWindowBudgetChars({
|
|
23581
|
+
registry: this.modelRegistry,
|
|
23582
|
+
localExtractionActive: this.config.modelSource !== "gateway" && resolveLocalLlmCapabilities(this.config).localLlm,
|
|
23583
|
+
model: this.config.localLlmModel,
|
|
23584
|
+
maxContext: this.config.localLlmMaxContext
|
|
23585
|
+
});
|
|
23586
|
+
}
|
|
23384
23587
|
normalizeExtractionFingerprintTurns(turns) {
|
|
23385
23588
|
return this.extractionRunCoordinator.normalizeExtractionFingerprintTurns(turns);
|
|
23386
23589
|
}
|
|
@@ -29381,7 +29584,7 @@ function readVerifiedDailyNote(root, filePath) {
|
|
|
29381
29584
|
}
|
|
29382
29585
|
|
|
29383
29586
|
// src/activity/journal-state.ts
|
|
29384
|
-
import { createHash as
|
|
29587
|
+
import { createHash as createHash11, randomBytes as randomBytes4 } from "crypto";
|
|
29385
29588
|
import { mkdirSync as mkdirSync2, readFileSync as readFileSync4, renameSync as renameSync2, writeFileSync as writeFileSync2 } from "fs";
|
|
29386
29589
|
import path36 from "path";
|
|
29387
29590
|
var STATE_DIR_NAME = "state";
|
|
@@ -29390,7 +29593,7 @@ function timelineStatePath(memoryDir) {
|
|
|
29390
29593
|
return path36.join(memoryDir, STATE_DIR_NAME, STATE_FILE_NAME);
|
|
29391
29594
|
}
|
|
29392
29595
|
function hashJournalText(text) {
|
|
29393
|
-
return
|
|
29596
|
+
return createHash11("sha256").update(text, "utf8").digest("hex");
|
|
29394
29597
|
}
|
|
29395
29598
|
function readTimelineState(memoryDir) {
|
|
29396
29599
|
const filePath = timelineStatePath(memoryDir);
|
|
@@ -30226,7 +30429,7 @@ function planVaultDryRun(inputs) {
|
|
|
30226
30429
|
}
|
|
30227
30430
|
|
|
30228
30431
|
// src/session-summaries/index.ts
|
|
30229
|
-
import { createHash as
|
|
30432
|
+
import { createHash as createHash12 } from "crypto";
|
|
30230
30433
|
import { lstat as lstat3, mkdir as mkdir7, readFile as readFile9, readdir as readdir4, rename, rm, stat as stat4, writeFile as writeFile7 } from "fs/promises";
|
|
30231
30434
|
import path39 from "path";
|
|
30232
30435
|
|
|
@@ -30728,7 +30931,7 @@ var DEFAULT_MAX_FILES = 5e3;
|
|
|
30728
30931
|
var DEFAULT_MAX_SESSIONS = 500;
|
|
30729
30932
|
var SUPPORTED_EXTENSIONS = /* @__PURE__ */ new Set([".json", ".jsonl"]);
|
|
30730
30933
|
function shortHash(value, length = 16) {
|
|
30731
|
-
return
|
|
30934
|
+
return createHash12("sha256").update(value).digest("hex").slice(0, length);
|
|
30732
30935
|
}
|
|
30733
30936
|
async function listTranscriptFiles(root, maxFiles) {
|
|
30734
30937
|
const out = [];
|
|
@@ -31367,4 +31570,4 @@ export {
|
|
|
31367
31570
|
qmdStartupCollectionChecksWithTimeout,
|
|
31368
31571
|
Orchestrator
|
|
31369
31572
|
};
|
|
31370
|
-
//# sourceMappingURL=chunk-
|
|
31573
|
+
//# sourceMappingURL=chunk-MD3W2H3G.js.map
|