@cortexkit/opencode-magic-context 0.49.6 → 0.49.8
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/auto-search-worker.js +10 -7
- package/dist/compaction-marker-candidates-worker.js +2 -2
- package/dist/{compaction-marker-candidates-cz72pm1t.js → compaction-marker-candidates-xxz35vwp.js} +3 -3
- package/dist/{conflict-warning-hook-1jq1rxx7.js → conflict-warning-hook-w3crzrar.js} +8 -8
- package/dist/{context-ae3gxdye.js → context-x0ccfv0f.js} +88 -53
- package/dist/{derive-budgets-j4ry8j8n.js → derive-budgets-3nbxsyss.js} +2 -2
- package/dist/embedding-backfill-3h2m5n0q.js +21 -0
- package/dist/embedding-worker-process.js +6 -2
- package/dist/embedding-worker.js +6 -5
- package/dist/features/magic-context/compaction-marker-candidates.d.ts.map +1 -1
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/cron.d.ts +2 -0
- package/dist/features/magic-context/dreamer/cron.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts +6 -3
- package/dist/features/magic-context/dreamer/hidden-single-shot.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts +7 -1
- package/dist/features/magic-context/dreamer/map-memories-prompt.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/map-memories.d.ts +2 -2
- package/dist/features/magic-context/dreamer/map-memories.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/primer-seed.d.ts +2 -0
- package/dist/features/magic-context/dreamer/primer-seed.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/provider-output-failure.d.ts +1 -0
- package/dist/features/magic-context/dreamer/provider-output-failure.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts +2 -2
- package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-worker-client.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/migration-worker-client.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/wake-plane.d.ts.map +1 -1
- package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +10 -3
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
- package/dist/features/magic-context/storage-replay-document.d.ts +4 -0
- package/dist/features/magic-context/storage-replay-document.d.ts.map +1 -1
- package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
- package/dist/history-owner-ty29fz0f.js +244 -0
- package/dist/hooks/auto-update-checker/checker.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts +7 -0
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/edit-marker.d.ts +2 -0
- package/dist/hooks/magic-context/edit-marker.d.ts.map +1 -1
- package/dist/hooks/magic-context/heuristic-cleanup.d.ts.map +1 -1
- package/dist/hooks/magic-context/history-boundary-repair.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-persist.d.ts.map +1 -1
- package/dist/hooks/magic-context/module-transport.d.ts +1 -0
- package/dist/hooks/magic-context/module-transport.d.ts.map +1 -1
- package/dist/hooks/magic-context/note-nudger.d.ts +5 -3
- package/dist/hooks/magic-context/note-nudger.d.ts.map +1 -1
- package/dist/hooks/magic-context/postprocess-read-cache.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts +15 -4
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/replay-committed-drops.d.ts +9 -0
- package/dist/hooks/magic-context/replay-committed-drops.d.ts.map +1 -0
- package/dist/hooks/magic-context/rust-lkg-freeze-registry.d.ts +2 -2
- package/dist/hooks/magic-context/rust-lkg-freeze-registry.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +4 -0
- package/dist/hooks/magic-context/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-refusal-recovery.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-served-raw.d.ts +29 -0
- package/dist/hooks/magic-context/rust-served-raw.d.ts.map +1 -0
- package/dist/hooks/magic-context/strip-content.d.ts +23 -24
- package/dist/hooks/magic-context/strip-content.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +2 -0
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/tool-drop-target.d.ts +2 -0
- package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/unresolved-history-boundary.d.ts +5 -1
- package/dist/hooks/magic-context/unresolved-history-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/wrapup-orchestrator.d.ts.map +1 -1
- package/dist/{index-g9exahnx.js → index-0jz47061.js} +6 -3
- package/dist/{index-4mjhqadz.js → index-150zz6fh.js} +1 -1
- package/dist/{index-ch08qwgd.js → index-2rw244rh.js} +88 -81
- package/dist/{index-6q5h70h2.js → index-4hb8nt93.js} +3 -3
- package/dist/{index-j55vn694.js → index-7bjgyaj1.js} +4 -4
- package/dist/{index-h2wc01qk.js → index-8kk7yh6m.js} +2 -2
- package/dist/{index-vztbgcdk.js → index-9g1c4bt9.js} +304 -92
- package/dist/{index-7q1m1qjk.js → index-a43xq1pg.js} +5 -5
- package/dist/{index-tqf7yg27.js → index-a4b0gbyg.js} +1 -1
- package/dist/{index-vnjhmkwk.js → index-angx1s0k.js} +4 -3
- package/dist/{index-1xaw2pq8.js → index-b4gcb3rk.js} +8 -8
- package/dist/{index-z1tjp257.js → index-b64n4d0h.js} +1 -1
- package/dist/{index-1bt88epp.js → index-bd9cjab3.js} +1 -1
- package/dist/{index-gbmqa9x9.js → index-bmwfzz28.js} +9 -6
- package/dist/{index-qx53vezw.js → index-gjvjh960.js} +1 -1
- package/dist/{index-zgzdm6dg.js → index-gzg9ekc1.js} +155 -103
- package/dist/{index-vh3e2mvr.js → index-hxrvx6cy.js} +121 -51
- package/dist/{index-w23dh319.js → index-jw4gbfkv.js} +1 -1
- package/dist/index-knvkbfvh.js +25 -0
- package/dist/{index-vkbqdnkj.js → index-kvw6xew3.js} +6 -3
- package/dist/{index-bg5qqene.js → index-mp2kghkv.js} +3 -27
- package/dist/{index-nsjyysj0.js → index-mvvephtj.js} +5 -1
- package/dist/{index-cm4hmxyk.js → index-n78avt2p.js} +1 -1
- package/dist/{index-hr64sth2.js → index-pgy3h49n.js} +4 -4
- package/dist/{index-a796ct3s.js → index-pjgzdezw.js} +13 -9
- package/dist/{index-9m7bn21d.js → index-q28hsbpg.js} +15 -3
- package/dist/{index-ab3bgm2m.js → index-q76br5zn.js} +3 -3
- package/dist/{index-xqyj5c85.js → index-qgp5vnt4.js} +5 -5
- package/dist/{index-9s58tq95.js → index-rg1cezmj.js} +22 -22
- package/dist/{index-f3dnvnw6.js → index-s178h9z8.js} +4 -3
- package/dist/{index-mj1fgfrk.js → index-w1ejb9qr.js} +939 -160
- package/dist/{index-k6xvbj2e.js → index-w28y7d0z.js} +2 -0
- package/dist/{index-0nnd4bry.js → index-wafzvyhg.js} +63 -19
- package/dist/{index-ck6y3td2.js → index-xf6k8szp.js} +4 -4
- package/dist/{index-1j8jcjpa.js → index-xpn05jxq.js} +4 -4
- package/dist/{index-s0gsmthp.js → index-ydjgz36f.js} +7 -7
- package/dist/{index-besxhcsh.js → index-zf9nydbd.js} +50 -39
- package/dist/index.js +53 -52
- package/dist/{logger-ewak5q1s.js → logger-wn328tfg.js} +1 -1
- package/dist/{message-index-bounded-630j53ps.js → message-index-bounded-hxjp56qk.js} +16 -16
- package/dist/{message-index-c84wm2g0.js → message-index-zs882h8e.js} +16 -16
- package/dist/{message-time-backfill-8kj57qe3.js → message-time-backfill-nb5hhnrt.js} +3 -3
- package/dist/migration-worker.js +11 -11
- package/dist/plugin/boot-quiet.d.ts.map +1 -1
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/plugin/messages-transform.d.ts.map +1 -1
- package/dist/plugin/rpc-handlers.d.ts +2 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/{project-embedding-registry-vv59t7ah.js → project-embedding-registry-vy7sv9jt.js} +11 -11
- package/dist/raw-ordinal-warmup-worker.js +17 -15
- package/dist/{read-session-chunk-t3vjd0h0.js → read-session-chunk-t9r7r0sg.js} +13 -11
- package/dist/{read-session-raw-gf7eytnm.js → read-session-raw-gm6xj30v.js} +3 -3
- package/dist/recomp-orchestrator-gr36zvd2.js +60 -0
- package/dist/{safe-notification-target-q0cyrx3x.js → safe-notification-target-jdynm677.js} +2 -2
- package/dist/{search-kth2p6cc.js → search-qjen1pmz.js} +24 -24
- package/dist/{send-session-notification-3j6krd4w.js → send-session-notification-q8ngbap3.js} +6 -6
- package/dist/shared/history-owner.d.ts +12 -0
- package/dist/shared/history-owner.d.ts.map +1 -0
- package/dist/shared/off-thread-migration-clock.d.ts +8 -1
- package/dist/shared/off-thread-migration-clock.d.ts.map +1 -1
- package/dist/shared/processed-image-eligibility.d.ts +22 -0
- package/dist/shared/processed-image-eligibility.d.ts.map +1 -0
- package/dist/shared/recovery-reasoning-prefix.d.ts +9 -0
- package/dist/shared/recovery-reasoning-prefix.d.ts.map +1 -0
- package/dist/shared/redaction.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/sqlite.d.ts +3 -1
- package/dist/shared/sqlite.d.ts.map +1 -1
- package/dist/shared/tag-transcript.d.ts +9 -0
- package/dist/shared/tag-transcript.d.ts.map +1 -1
- package/dist/shared/user-facing-codes.d.ts +2 -2
- package/dist/{sqlite-d7edbk1s.js → sqlite-4pqyynrs.js} +3 -1
- package/dist/{storage-memory-af5zdz98.js → storage-memory-j3v3hc83.js} +2 -2
- package/dist/{storage-tags-dyj7mmbq.js → storage-tags-a513rkj3.js} +5 -5
- package/dist/tools/ctx-expand/search-archive.d.ts +4 -0
- package/dist/tools/ctx-expand/search-archive.d.ts.map +1 -0
- package/dist/tools/ctx-expand/tools.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-bv3kb5s1.js → transform-postprocess-phase-yv463b7y.js} +30 -30
- package/dist/v2/auto-search-worker.js +10 -7
- package/dist/v2/{compaction-marker-candidates-6gqp5wrc.js → compaction-marker-candidates-a15w3mqh.js} +3 -3
- package/dist/v2/compaction-marker-candidates-worker.js +2 -2
- package/dist/v2/{context-p8f2shp1.js → context-wd82v9z6.js} +1133 -278
- package/dist/v2/{derive-budgets-enckmg7y.js → derive-budgets-0rmpmxjw.js} +3 -3
- package/dist/v2/embedding-backfill-vr7wdtrf.js +20 -0
- package/dist/v2/embedding-worker-process.js +6 -2
- package/dist/v2/embedding-worker.js +6 -5
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/history-owner-2cr9py37.js +243 -0
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/payload.d.ts.map +1 -1
- package/dist/v2/hooks/store.d.ts +1 -0
- package/dist/v2/hooks/store.d.ts.map +1 -1
- package/dist/v2/{logger-pj02s7sr.js → logger-te6e1j72.js} +1 -1
- package/dist/v2/{message-index-bounded-yzxmf6vp.js → message-index-bounded-madg2kfr.js} +16 -16
- package/dist/v2/{message-index-3ws17x1g.js → message-index-yd94vt9n.js} +16 -16
- package/dist/v2/{message-time-backfill-5nf10c65.js → message-time-backfill-rz1pnpaj.js} +3 -3
- package/dist/v2/migration-worker.js +11 -11
- package/dist/v2/{project-embedding-registry-rsnf2263.js → project-embedding-registry-ja23aygk.js} +11 -11
- package/dist/v2/raw-ordinal-warmup-worker.js +17 -15
- package/dist/v2/{read-session-chunk-vtb0w2kd.js → read-session-chunk-7qs791f3.js} +13 -11
- package/dist/v2/{read-session-raw-gpcddemt.js → read-session-raw-h4azh85b.js} +3 -3
- package/dist/v2/recomp-orchestrator-ee91r9s6.js +59 -0
- package/dist/v2/{safe-notification-target-y3p1hce9.js → safe-notification-target-936374xx.js} +2 -2
- package/dist/v2/search-pn15rr52.js +46 -0
- package/dist/v2/{send-session-notification-5aj2j7vf.js → send-session-notification-6n7chhyp.js} +6 -6
- package/dist/v2/{server-09g9pkvx.js → server-08k4zkfk.js} +50 -39
- package/dist/v2/{server-ras2sxnc.js → server-44ryn9rb.js} +9 -6
- package/dist/v2/{server-158ehmk2.js → server-4easnf78.js} +19 -19
- package/dist/v2/{server-ww9nr8pe.js → server-4gz0xkrc.js} +5 -5
- package/dist/v2/{server-d6g4whc2.js → server-4qr18rfg.js} +3 -3
- package/dist/v2/{server-f9py7s7a.js → server-4rs8sm06.js} +5 -5
- package/dist/v2/{server-yezz0cp2.js → server-63ha7f0f.js} +3 -27
- package/dist/v2/{server-3t0q2cqx.js → server-7dv9wt9r.js} +1 -1
- package/dist/v2/{server-cw6521wn.js → server-7e087rvk.js} +2 -0
- package/dist/v2/{server-hb6xhh9q.js → server-988cqjme.js} +6 -3
- package/dist/v2/{server-keswwkvv.js → server-9a6bwc12.js} +4 -4
- package/dist/v2/{server-t4k4qexw.js → server-9e5r8y60.js} +5 -1
- package/dist/v2/{server-7ekna9zs.js → server-adfte03x.js} +2 -2
- package/dist/v2/{server-9zqewm6g.js → server-ak7w74j9.js} +4 -4
- package/dist/v2/{server-387vkhjq.js → server-bx59ezg6.js} +4 -3
- package/dist/v2/{server-676xw7at.js → server-ckrb5rm8.js} +1 -1
- package/dist/v2/{server-wrem2nmz.js → server-cxsr0ng6.js} +15 -3
- package/dist/v2/{server-t528t8qm.js → server-hn9fb3v0.js} +2 -2
- package/dist/v2/{server-qn23p4h7.js → server-j3dm74ey.js} +9 -9
- package/dist/v2/{server-yd01snxq.js → server-jjsf29aq.js} +4 -4
- package/dist/v2/server-knvkbfvh.js +25 -0
- package/dist/v2/{server-cm4hmxyk.js → server-n78avt2p.js} +1 -1
- package/dist/v2/{server-btgnsv7w.js → server-njnx39q2.js} +6 -3
- package/dist/v2/{server-6a9mxnb2.js → server-npm52h2q.js} +4 -3
- package/dist/v2/{server-vb7pbd9p.js → server-nveratm5.js} +1 -1
- package/dist/v2/{server-7skbfb81.js → server-q360kdb8.js} +121 -51
- package/dist/v2/{server-kzns2hbz.js → server-s6jqh8bj.js} +1 -1
- package/dist/v2/{server-6byqfbqf.js → server-shme41gj.js} +1 -1
- package/dist/v2/{server-0nnd4bry.js → server-wafzvyhg.js} +63 -19
- package/dist/v2/{server-fby0cxbq.js → server-xj4mewze.js} +304 -92
- package/dist/v2/{server-aa9w15cs.js → server-y5g32dhq.js} +88 -81
- package/dist/v2/{server-x2r63c0x.js → server-yak3sxya.js} +7 -7
- package/dist/v2/{server-4tn95znb.js → server-zrwaj29a.js} +2 -2
- package/dist/v2/server.js +9 -8
- package/dist/v2/{sqlite-d7edbk1s.js → sqlite-4pqyynrs.js} +3 -1
- package/dist/v2/{storage-memory-af5zdz98.js → storage-memory-j3v3hc83.js} +2 -2
- package/dist/v2/{storage-tags-d47bpaqa.js → storage-tags-spa92sgj.js} +5 -5
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{wrapup-orchestrator-cahk37n7.js → wrapup-orchestrator-5wxy1ggv.js} +38 -35
- package/dist/wrapup-orchestrator-gv08c6f9.js +47 -0
- package/package.json +3 -3
- package/src/config/compaction-accessor-guard.test.ts +3 -0
- package/src/features/magic-context/dreamer/cron.ts +8 -0
- package/src/shared/history-owner.test.ts +60 -0
- package/src/shared/history-owner.ts +43 -0
- package/src/shared/host-stall-profiler-node.ts +3 -1
- package/src/shared/host-stall-profiler.ts +3 -1
- package/src/shared/off-thread-migration-clock.test.ts +80 -10
- package/src/shared/off-thread-migration-clock.ts +37 -13
- package/src/shared/processed-image-eligibility.test.ts +68 -0
- package/src/shared/processed-image-eligibility.ts +41 -0
- package/src/shared/processed-image-position-review.json +20 -0
- package/src/shared/processed-image-position-review.test.ts +19 -0
- package/src/shared/recovery-reasoning-prefix.test.ts +34 -0
- package/src/shared/recovery-reasoning-prefix.ts +35 -0
- package/src/shared/redaction.test.ts +16 -0
- package/src/shared/redaction.ts +8 -1
- package/src/shared/root-async-context.probe.mjs +36 -0
- package/src/shared/root-async-context.test.ts +49 -0
- package/src/shared/rpc-server.ts +27 -23
- package/src/shared/sqlite-busy-budget-review.test.ts +291 -0
- package/src/shared/sqlite-foreground-wait.test.ts +253 -1
- package/src/shared/sqlite-writer-diagnostics.test.ts +31 -0
- package/src/shared/sqlite.ts +112 -30
- package/src/shared/tag-transcript.ts +118 -0
- package/src/shared/user-facing-codes.ts +2 -2
- package/dist/embedding-backfill-dtjmyktb.js +0 -21
- package/dist/recomp-orchestrator-1d08g57a.js +0 -60
- package/dist/v2/embedding-backfill-cg4rv90f.js +0 -20
- package/dist/v2/recomp-orchestrator-v64r4s4r.js +0 -59
- package/dist/v2/search-bpa4fxq1.js +0 -46
- package/dist/wrapup-orchestrator-mqp0v195.js +0 -47
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
getRawSessionMessageOrdinalCount2,
|
|
12
12
|
RAW_MESSAGE_VISIT_PAGE_SIZE2,
|
|
13
13
|
visitRawSessionMessages2,
|
|
14
|
+
visitRawSessionMessagesAsync2,
|
|
14
15
|
readRawSessionMessageRange2,
|
|
15
16
|
prepareRawSessionOrdinals2,
|
|
16
17
|
primeTailRawMessageCache2,
|
|
@@ -34,23 +35,23 @@ import {
|
|
|
34
35
|
readSessionChunk2,
|
|
35
36
|
getRawSessionMessageIdsThrough2,
|
|
36
37
|
readRawSessionSeedTail2
|
|
37
|
-
} from "./server-
|
|
38
|
-
import"./server-
|
|
38
|
+
} from "./server-xj4mewze.js";
|
|
39
|
+
import"./server-jjsf29aq.js";
|
|
39
40
|
import"./server-1zx87sdm.js";
|
|
40
|
-
import"./server-
|
|
41
|
-
import"./server-
|
|
41
|
+
import"./server-zrwaj29a.js";
|
|
42
|
+
import"./server-bx59ezg6.js";
|
|
42
43
|
import"./server-51779zs2.js";
|
|
43
|
-
import"./server-
|
|
44
|
-
import"./server-
|
|
45
|
-
import"./server-
|
|
44
|
+
import"./server-7e087rvk.js";
|
|
45
|
+
import"./server-adfte03x.js";
|
|
46
|
+
import"./server-shme41gj.js";
|
|
46
47
|
import"./server-2ra6pwf3.js";
|
|
47
|
-
import"./server-
|
|
48
|
-
import"./server-0nnd4bry.js";
|
|
48
|
+
import"./server-7dv9wt9r.js";
|
|
49
49
|
import {
|
|
50
50
|
hasMeaningfulUserText2,
|
|
51
51
|
extractTexts2
|
|
52
|
-
} from "./server-
|
|
53
|
-
import"./server-
|
|
52
|
+
} from "./server-s6jqh8bj.js";
|
|
53
|
+
import"./server-wafzvyhg.js";
|
|
54
|
+
import"./server-9e5r8y60.js";
|
|
54
55
|
import"./server-pavzsdc6.js";
|
|
55
56
|
export {
|
|
56
57
|
RAW_MESSAGE_VISIT_PAGE_SIZE2 as RAW_MESSAGE_VISIT_PAGE_SIZE,
|
|
@@ -88,6 +89,7 @@ export {
|
|
|
88
89
|
setBoundedRawMessageProvider2 as setBoundedRawMessageProvider,
|
|
89
90
|
setRawMessageProvider2 as setRawMessageProvider,
|
|
90
91
|
visitRawSessionMessages2 as visitRawSessionMessages,
|
|
92
|
+
visitRawSessionMessagesAsync2 as visitRawSessionMessagesAsync,
|
|
91
93
|
withRawMessageProvider2 as withRawMessageProvider,
|
|
92
94
|
withRawSessionMessageCache2 as withRawSessionMessageCache
|
|
93
95
|
};
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
hasRawSessionMessageByIdFromDb2,
|
|
26
26
|
readRawSeedTailFromDb2,
|
|
27
27
|
readRawSessionBoundaryEndpointsFromDb2
|
|
28
|
-
} from "./server-
|
|
28
|
+
} from "./server-bx59ezg6.js";
|
|
29
29
|
import"./server-51779zs2.js";
|
|
30
|
-
import"./server-
|
|
31
|
-
import"./server-
|
|
30
|
+
import"./server-wafzvyhg.js";
|
|
31
|
+
import"./server-9e5r8y60.js";
|
|
32
32
|
import"./server-pavzsdc6.js";
|
|
33
33
|
export {
|
|
34
34
|
buildInMemoryTailRawMessages2 as buildInMemoryTailRawMessages,
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isRecompFailure2,
|
|
3
|
+
isRecompSkip2,
|
|
4
|
+
extractRecompReason2,
|
|
5
|
+
setRecompStarting2,
|
|
6
|
+
setRecompNote2,
|
|
7
|
+
setRecompTerminal2,
|
|
8
|
+
buildRecompDeps2,
|
|
9
|
+
runManagedRecomp2
|
|
10
|
+
} from "./server-q360kdb8.js";
|
|
11
|
+
import"./server-npm52h2q.js";
|
|
12
|
+
import"./server-yak3sxya.js";
|
|
13
|
+
import"./server-j3dm74ey.js";
|
|
14
|
+
import"./server-4rs8sm06.js";
|
|
15
|
+
import"./server-n78avt2p.js";
|
|
16
|
+
import"./server-4easnf78.js";
|
|
17
|
+
import"./server-9a6bwc12.js";
|
|
18
|
+
import"./server-4dhv7mqz.js";
|
|
19
|
+
import"./server-hn9fb3v0.js";
|
|
20
|
+
import"./server-ak7w74j9.js";
|
|
21
|
+
import"./server-qt1qqasc.js";
|
|
22
|
+
import"./server-ckrb5rm8.js";
|
|
23
|
+
import"./server-4qr18rfg.js";
|
|
24
|
+
import"./server-nveratm5.js";
|
|
25
|
+
import"./server-x8a7jmkh.js";
|
|
26
|
+
import"./server-44ryn9rb.js";
|
|
27
|
+
import"./server-988cqjme.js";
|
|
28
|
+
import"./server-08k4zkfk.js";
|
|
29
|
+
import"./server-fb3zxn06.js";
|
|
30
|
+
import"./server-4gz0xkrc.js";
|
|
31
|
+
import"./server-fr0wbhdn.js";
|
|
32
|
+
import"./server-njnx39q2.js";
|
|
33
|
+
import"./server-63ha7f0f.js";
|
|
34
|
+
import"./server-cxsr0ng6.js";
|
|
35
|
+
import"./server-xj4mewze.js";
|
|
36
|
+
import"./server-jjsf29aq.js";
|
|
37
|
+
import"./server-1zx87sdm.js";
|
|
38
|
+
import"./server-zrwaj29a.js";
|
|
39
|
+
import"./server-bx59ezg6.js";
|
|
40
|
+
import"./server-51779zs2.js";
|
|
41
|
+
import"./server-7e087rvk.js";
|
|
42
|
+
import"./server-adfte03x.js";
|
|
43
|
+
import"./server-shme41gj.js";
|
|
44
|
+
import"./server-2ra6pwf3.js";
|
|
45
|
+
import"./server-7dv9wt9r.js";
|
|
46
|
+
import"./server-s6jqh8bj.js";
|
|
47
|
+
import"./server-wafzvyhg.js";
|
|
48
|
+
import"./server-9e5r8y60.js";
|
|
49
|
+
import"./server-pavzsdc6.js";
|
|
50
|
+
export {
|
|
51
|
+
buildRecompDeps2 as buildRecompDeps,
|
|
52
|
+
extractRecompReason2 as extractRecompReason,
|
|
53
|
+
isRecompFailure2 as isRecompFailure,
|
|
54
|
+
isRecompSkip2 as isRecompSkip,
|
|
55
|
+
runManagedRecomp2 as runManagedRecomp,
|
|
56
|
+
setRecompNote2 as setRecompNote,
|
|
57
|
+
setRecompStarting2 as setRecompStarting,
|
|
58
|
+
setRecompTerminal2 as setRecompTerminal
|
|
59
|
+
};
|
package/dist/v2/{safe-notification-target-y3p1hce9.js → safe-notification-target-936374xx.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isDefaultSessionTitle2,
|
|
3
3
|
waitForSafeNotificationTarget2
|
|
4
|
-
} from "./server-
|
|
5
|
-
import"./server-
|
|
4
|
+
} from "./server-ckrb5rm8.js";
|
|
5
|
+
import"./server-9e5r8y60.js";
|
|
6
6
|
import"./server-pavzsdc6.js";
|
|
7
7
|
export {
|
|
8
8
|
isDefaultSessionTitle2 as isDefaultSessionTitle,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createUnifiedSearchDiagnostics2,
|
|
3
|
+
searchMessageHistory2,
|
|
4
|
+
parseIdShapedQuery2,
|
|
5
|
+
resolveMemoriesByIdsForSearch2,
|
|
6
|
+
unifiedSearch2,
|
|
7
|
+
formatSearchResults2
|
|
8
|
+
} from "./server-y5g32dhq.js";
|
|
9
|
+
import"./server-yak3sxya.js";
|
|
10
|
+
import"./server-j3dm74ey.js";
|
|
11
|
+
import"./server-4rs8sm06.js";
|
|
12
|
+
import"./server-n78avt2p.js";
|
|
13
|
+
import"./server-4easnf78.js";
|
|
14
|
+
import"./server-9a6bwc12.js";
|
|
15
|
+
import"./server-4dhv7mqz.js";
|
|
16
|
+
import"./server-qt1qqasc.js";
|
|
17
|
+
import"./server-44ryn9rb.js";
|
|
18
|
+
import"./server-988cqjme.js";
|
|
19
|
+
import"./server-4gz0xkrc.js";
|
|
20
|
+
import"./server-fr0wbhdn.js";
|
|
21
|
+
import"./server-njnx39q2.js";
|
|
22
|
+
import"./server-63ha7f0f.js";
|
|
23
|
+
import"./server-cxsr0ng6.js";
|
|
24
|
+
import"./server-xj4mewze.js";
|
|
25
|
+
import"./server-jjsf29aq.js";
|
|
26
|
+
import"./server-1zx87sdm.js";
|
|
27
|
+
import"./server-zrwaj29a.js";
|
|
28
|
+
import"./server-bx59ezg6.js";
|
|
29
|
+
import"./server-51779zs2.js";
|
|
30
|
+
import"./server-7e087rvk.js";
|
|
31
|
+
import"./server-adfte03x.js";
|
|
32
|
+
import"./server-shme41gj.js";
|
|
33
|
+
import"./server-2ra6pwf3.js";
|
|
34
|
+
import"./server-7dv9wt9r.js";
|
|
35
|
+
import"./server-s6jqh8bj.js";
|
|
36
|
+
import"./server-wafzvyhg.js";
|
|
37
|
+
import"./server-9e5r8y60.js";
|
|
38
|
+
import"./server-pavzsdc6.js";
|
|
39
|
+
export {
|
|
40
|
+
createUnifiedSearchDiagnostics2 as createUnifiedSearchDiagnostics,
|
|
41
|
+
formatSearchResults2 as formatSearchResults,
|
|
42
|
+
parseIdShapedQuery2 as parseIdShapedQuery,
|
|
43
|
+
resolveMemoriesByIdsForSearch2 as resolveMemoriesByIdsForSearch,
|
|
44
|
+
searchMessageHistory2 as searchMessageHistory,
|
|
45
|
+
unifiedSearch2 as unifiedSearch
|
|
46
|
+
};
|
package/dist/v2/{send-session-notification-5aj2j7vf.js → send-session-notification-6n7chhyp.js}
RENAMED
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
clearIgnoredMessages2,
|
|
9
9
|
observeIgnoredNotificationEvent2,
|
|
10
10
|
sendStatusNotification2
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-ak7w74j9.js";
|
|
12
12
|
import"./server-qt1qqasc.js";
|
|
13
|
-
import"./server-
|
|
14
|
-
import"./server-
|
|
15
|
-
import"./server-
|
|
13
|
+
import"./server-ckrb5rm8.js";
|
|
14
|
+
import"./server-zrwaj29a.js";
|
|
15
|
+
import"./server-bx59ezg6.js";
|
|
16
16
|
import"./server-51779zs2.js";
|
|
17
17
|
import"./server-2ra6pwf3.js";
|
|
18
|
-
import"./server-
|
|
19
|
-
import"./server-
|
|
18
|
+
import"./server-wafzvyhg.js";
|
|
19
|
+
import"./server-9e5r8y60.js";
|
|
20
20
|
import"./server-pavzsdc6.js";
|
|
21
21
|
export {
|
|
22
22
|
MAX_QUEUED_IGNORED_NOTIFICATIONS2 as MAX_QUEUED_IGNORED_NOTIFICATIONS,
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
+
inRootAsyncContext2,
|
|
3
|
+
registerSlowWriteReporter2,
|
|
4
|
+
registerSqliteDiagnosticSink2,
|
|
5
|
+
detectSqliteRuntime2,
|
|
6
|
+
Database2,
|
|
7
|
+
withSqliteBackgroundWriter2,
|
|
8
|
+
withoutSqliteTransformPass2,
|
|
9
|
+
isTransientSqliteError2,
|
|
10
|
+
withPrivilegedWriter2
|
|
11
|
+
} from "./server-wafzvyhg.js";
|
|
12
|
+
import {
|
|
13
|
+
bootQuietRemainingMs,
|
|
14
|
+
scheduleAfterBootQuiet
|
|
15
|
+
} from "./server-njnx39q2.js";
|
|
16
|
+
import {
|
|
17
|
+
getHarness2,
|
|
2
18
|
harnessOwnsOpenCodeStore2
|
|
3
19
|
} from "./server-pavzsdc6.js";
|
|
4
20
|
import {
|
|
@@ -8,7 +24,7 @@ import {
|
|
|
8
24
|
importPluginModule,
|
|
9
25
|
writeForwardedLogLine2,
|
|
10
26
|
log2
|
|
11
|
-
} from "./server-
|
|
27
|
+
} from "./server-9e5r8y60.js";
|
|
12
28
|
import {
|
|
13
29
|
isOwnRpcServerRecord,
|
|
14
30
|
isPidAlive,
|
|
@@ -19,23 +35,13 @@ import {
|
|
|
19
35
|
parseRpcPortFile,
|
|
20
36
|
inspectProcessesAsync,
|
|
21
37
|
inspectWindowsProcessesSync
|
|
22
|
-
} from "./server-
|
|
23
|
-
import {
|
|
24
|
-
registerSlowWriteReporter2,
|
|
25
|
-
registerSqliteDiagnosticSink2,
|
|
26
|
-
detectSqliteRuntime2,
|
|
27
|
-
Database2,
|
|
28
|
-
withSqliteBackgroundWriter2,
|
|
29
|
-
withoutSqliteTransformPass2,
|
|
30
|
-
isTransientSqliteError2,
|
|
31
|
-
withPrivilegedWriter2
|
|
32
|
-
} from "./server-0nnd4bry.js";
|
|
38
|
+
} from "./server-cxsr0ng6.js";
|
|
33
39
|
import {
|
|
34
40
|
configureContextDatabasePragmas2
|
|
35
41
|
} from "./server-fb3zxn06.js";
|
|
36
42
|
import {
|
|
37
43
|
startMessageFtsRowidMapBackfill
|
|
38
|
-
} from "./server-
|
|
44
|
+
} from "./server-63ha7f0f.js";
|
|
39
45
|
import {
|
|
40
46
|
LKG_SLOT_CHUNKS_DDL,
|
|
41
47
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -45,24 +51,20 @@ import {
|
|
|
45
51
|
hasPendingMigrations,
|
|
46
52
|
getMainThreadMigrationBodyCount,
|
|
47
53
|
runMigrations
|
|
48
|
-
} from "./server-
|
|
54
|
+
} from "./server-4gz0xkrc.js";
|
|
49
55
|
import {
|
|
50
56
|
ensureColumn,
|
|
51
57
|
installV95PerfSchema,
|
|
52
58
|
installTagIdentityRevisionTrigger
|
|
53
|
-
} from "./server-
|
|
59
|
+
} from "./server-shme41gj.js";
|
|
54
60
|
import {
|
|
55
61
|
resolveOpenCodeDbPath,
|
|
56
62
|
hasV1MessageTables
|
|
57
63
|
} from "./server-2ra6pwf3.js";
|
|
58
|
-
import {
|
|
59
|
-
bootQuietRemainingMs,
|
|
60
|
-
scheduleAfterBootQuiet
|
|
61
|
-
} from "./server-btgnsv7w.js";
|
|
62
64
|
import {
|
|
63
65
|
setDatabase,
|
|
64
66
|
loadToolDefinitionMeasurements
|
|
65
|
-
} from "./server-
|
|
67
|
+
} from "./server-adfte03x.js";
|
|
66
68
|
import {
|
|
67
69
|
getErrorMessage
|
|
68
70
|
} from "./server-y8v6yerm.js";
|
|
@@ -79,7 +81,7 @@ import {
|
|
|
79
81
|
} from "./server-8ajstryz.js";
|
|
80
82
|
import {
|
|
81
83
|
logSlowWriteTransaction
|
|
82
|
-
} from "./server-
|
|
84
|
+
} from "./server-7dv9wt9r.js";
|
|
83
85
|
|
|
84
86
|
// src/features/magic-context/storage-db.ts
|
|
85
87
|
import {
|
|
@@ -323,15 +325,25 @@ var activeMigrations = 0;
|
|
|
323
325
|
var activeSince = 0;
|
|
324
326
|
var accumulatedMs = 0;
|
|
325
327
|
var idleWaiters = [];
|
|
326
|
-
|
|
327
|
-
|
|
328
|
+
var testClock;
|
|
329
|
+
function now() {
|
|
330
|
+
return testClock?.now() ?? performance.now();
|
|
331
|
+
}
|
|
332
|
+
function scheduleTimeout(callback, delayMs) {
|
|
333
|
+
if (testClock)
|
|
334
|
+
return testClock.setTimeout(callback, delayMs);
|
|
335
|
+
const timer = setTimeout(callback, delayMs);
|
|
336
|
+
return () => clearTimeout(timer);
|
|
337
|
+
}
|
|
338
|
+
function offThreadMigrationMs(at = now()) {
|
|
339
|
+
return accumulatedMs + (activeMigrations > 0 ? Math.max(0, at - activeSince) : 0);
|
|
328
340
|
}
|
|
329
341
|
function isOffThreadMigrationRunning() {
|
|
330
342
|
return activeMigrations > 0;
|
|
331
343
|
}
|
|
332
344
|
function beginOffThreadMigration() {
|
|
333
345
|
if (activeMigrations === 0)
|
|
334
|
-
activeSince =
|
|
346
|
+
activeSince = now();
|
|
335
347
|
activeMigrations += 1;
|
|
336
348
|
let ended = false;
|
|
337
349
|
return () => {
|
|
@@ -341,7 +353,7 @@ function beginOffThreadMigration() {
|
|
|
341
353
|
activeMigrations -= 1;
|
|
342
354
|
if (activeMigrations > 0)
|
|
343
355
|
return;
|
|
344
|
-
accumulatedMs += Math.max(0,
|
|
356
|
+
accumulatedMs += Math.max(0, now() - activeSince);
|
|
345
357
|
const waiters = idleWaiters;
|
|
346
358
|
idleWaiters = [];
|
|
347
359
|
for (const wake of waiters)
|
|
@@ -354,10 +366,10 @@ function whenOffThreadMigrationIdle() {
|
|
|
354
366
|
return new Promise((resolve) => idleWaiters.push(resolve));
|
|
355
367
|
}
|
|
356
368
|
function startBootDeadline(timeoutMs, onDeferred) {
|
|
357
|
-
const startedAt =
|
|
369
|
+
const startedAt = now();
|
|
358
370
|
const migratedAtStart = offThreadMigrationMs(startedAt);
|
|
359
371
|
const budgetMs = Math.max(0, timeoutMs);
|
|
360
|
-
let
|
|
372
|
+
let cancelTimer;
|
|
361
373
|
let cancelled = false;
|
|
362
374
|
let deferredReported = false;
|
|
363
375
|
let resolveExpired;
|
|
@@ -365,12 +377,12 @@ function startBootDeadline(timeoutMs, onDeferred) {
|
|
|
365
377
|
resolveExpired = resolve;
|
|
366
378
|
});
|
|
367
379
|
const remainingMs = () => {
|
|
368
|
-
const
|
|
369
|
-
const countedMs =
|
|
380
|
+
const currentTime = now();
|
|
381
|
+
const countedMs = currentTime - startedAt - (offThreadMigrationMs(currentTime) - migratedAtStart);
|
|
370
382
|
return budgetMs - countedMs;
|
|
371
383
|
};
|
|
372
384
|
const check = () => {
|
|
373
|
-
|
|
385
|
+
cancelTimer = undefined;
|
|
374
386
|
if (cancelled)
|
|
375
387
|
return;
|
|
376
388
|
if (isOffThreadMigrationRunning()) {
|
|
@@ -383,19 +395,18 @@ function startBootDeadline(timeoutMs, onDeferred) {
|
|
|
383
395
|
}
|
|
384
396
|
const left = remainingMs();
|
|
385
397
|
if (left > 0) {
|
|
386
|
-
|
|
398
|
+
cancelTimer = scheduleTimeout(check, left);
|
|
387
399
|
return;
|
|
388
400
|
}
|
|
389
401
|
resolveExpired();
|
|
390
402
|
};
|
|
391
|
-
|
|
403
|
+
cancelTimer = scheduleTimeout(check, budgetMs);
|
|
392
404
|
return {
|
|
393
405
|
expired,
|
|
394
406
|
cancel: () => {
|
|
395
407
|
cancelled = true;
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
timer = undefined;
|
|
408
|
+
cancelTimer?.();
|
|
409
|
+
cancelTimer = undefined;
|
|
399
410
|
}
|
|
400
411
|
};
|
|
401
412
|
}
|
|
@@ -412,7 +423,7 @@ function runMigrationsOffThread(data) {
|
|
|
412
423
|
return new Promise((resolve, reject) => {
|
|
413
424
|
let worker;
|
|
414
425
|
try {
|
|
415
|
-
worker = new Worker(workerEntryOverride ?? defaultWorkerEntry(), { workerData: data });
|
|
426
|
+
worker = inRootAsyncContext2(() => new Worker(workerEntryOverride ?? defaultWorkerEntry(), { workerData: data }));
|
|
416
427
|
} catch (error) {
|
|
417
428
|
reject(workerStartError(error instanceof Error ? error.message : String(error)));
|
|
418
429
|
return;
|
|
@@ -749,7 +760,7 @@ function backfillToolOwnersInChunks(db, result) {
|
|
|
749
760
|
|
|
750
761
|
// src/features/magic-context/storage-db.ts
|
|
751
762
|
registerSlowWriteReporter2(logSlowWriteTransaction);
|
|
752
|
-
registerSqliteDiagnosticSink2((message) => log2(message));
|
|
763
|
+
registerSqliteDiagnosticSink2((message) => log2(message), getHarness2);
|
|
753
764
|
var databases = new Map;
|
|
754
765
|
var pendingAsyncOpens = new Map;
|
|
755
766
|
var persistenceByDatabase = new WeakMap;
|
|
@@ -1198,8 +1209,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1198
1209
|
startMessageFtsRowidMapBackfill(db).then(async () => {
|
|
1199
1210
|
if (!readsOpenCodeStore)
|
|
1200
1211
|
return;
|
|
1201
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1202
|
-
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-
|
|
1212
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-7qs791f3.js"));
|
|
1213
|
+
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-rz1pnpaj.js"));
|
|
1203
1214
|
await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
|
|
1204
1215
|
readPage: readRawSessionMessagePage
|
|
1205
1216
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_LOCAL_EMBEDDING_MODEL
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-7e087rvk.js";
|
|
4
4
|
import {
|
|
5
5
|
getHarness2
|
|
6
6
|
} from "./server-pavzsdc6.js";
|
|
@@ -8,10 +8,13 @@ import {
|
|
|
8
8
|
getMagicContextStorageDir,
|
|
9
9
|
importPluginModule,
|
|
10
10
|
log2
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-9e5r8y60.js";
|
|
12
12
|
import {
|
|
13
13
|
getSynapseLaneIdentity
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-988cqjme.js";
|
|
15
|
+
import {
|
|
16
|
+
inRootAsyncContext2
|
|
17
|
+
} from "./server-wafzvyhg.js";
|
|
15
18
|
import {
|
|
16
19
|
computeNormalizedHash
|
|
17
20
|
} from "./server-2bvekkfy.js";
|
|
@@ -307,7 +310,7 @@ class EmbeddingWorkerClient {
|
|
|
307
310
|
start() {
|
|
308
311
|
if (this.startPromise)
|
|
309
312
|
return this.startPromise;
|
|
310
|
-
this.startPromise = this.startOwner().finally(() => {
|
|
313
|
+
this.startPromise = inRootAsyncContext2(() => this.startOwner()).finally(() => {
|
|
311
314
|
this.startPromise = null;
|
|
312
315
|
});
|
|
313
316
|
return this.startPromise;
|
|
@@ -556,10 +559,10 @@ async function acquireModelLoadLock(lockPath) {
|
|
|
556
559
|
}
|
|
557
560
|
function startLockHeartbeat(lockPath) {
|
|
558
561
|
const HEARTBEAT_MS = Math.floor(STALE_LOCK_MS / 3);
|
|
559
|
-
const timer = setInterval(() => {
|
|
562
|
+
const timer = inRootAsyncContext2(() => setInterval(() => {
|
|
560
563
|
writeStorageFileAsync(lockPath, `pid=${process.pid} alive=${Date.now()}
|
|
561
564
|
`).catch(() => {});
|
|
562
|
-
}, HEARTBEAT_MS);
|
|
565
|
+
}, HEARTBEAT_MS));
|
|
563
566
|
timer.unref?.();
|
|
564
567
|
return () => clearInterval(timer);
|
|
565
568
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
+
inRootAsyncContext2,
|
|
2
3
|
withSqliteBackgroundWriter2,
|
|
3
4
|
withoutSqliteTransformPass2,
|
|
4
5
|
isTransientSqliteError2
|
|
5
|
-
} from "./server-
|
|
6
|
+
} from "./server-wafzvyhg.js";
|
|
6
7
|
import {
|
|
7
8
|
DEFAULT_LOCAL_EMBEDDING_MODEL
|
|
8
|
-
} from "./server-
|
|
9
|
+
} from "./server-7e087rvk.js";
|
|
10
|
+
import {
|
|
11
|
+
isUserHomeDirectory,
|
|
12
|
+
setBootQuietPeriodForTests
|
|
13
|
+
} from "./server-njnx39q2.js";
|
|
9
14
|
import {
|
|
10
15
|
isEmbeddingHostBusy2
|
|
11
16
|
} from "./server-qt1qqasc.js";
|
|
@@ -15,16 +20,16 @@ import {
|
|
|
15
20
|
import {
|
|
16
21
|
sanitizeDiagnosticText,
|
|
17
22
|
log2
|
|
18
|
-
} from "./server-
|
|
23
|
+
} from "./server-9e5r8y60.js";
|
|
19
24
|
import {
|
|
20
25
|
estimateTokens
|
|
21
|
-
} from "./server-
|
|
26
|
+
} from "./server-s6jqh8bj.js";
|
|
22
27
|
import {
|
|
23
28
|
SYNAPSE_DEFAULT_MODEL,
|
|
24
29
|
isSynapseEmbeddingTruncated,
|
|
25
30
|
getSynapseBatchRequestKey,
|
|
26
31
|
SynapseEmbeddingProvider
|
|
27
|
-
} from "./server-
|
|
32
|
+
} from "./server-988cqjme.js";
|
|
28
33
|
import {
|
|
29
34
|
CHUNK_WINDOW_SAFETY_RATIO,
|
|
30
35
|
normalizeCompartmentChunkMaxInputTokens,
|
|
@@ -40,7 +45,7 @@ import {
|
|
|
40
45
|
loadUnembeddedSessionChunkCandidatesPolite,
|
|
41
46
|
countSessionCompartmentEmbedCoverage,
|
|
42
47
|
countUnembeddedSessionCompartmentsPolite
|
|
43
|
-
} from "./server-
|
|
48
|
+
} from "./server-9a6bwc12.js";
|
|
44
49
|
import {
|
|
45
50
|
saveEmbeddingIfHashMatches,
|
|
46
51
|
getMemoryEmbedCoverage,
|
|
@@ -52,14 +57,10 @@ import {
|
|
|
52
57
|
resolveEmbeddingTextPrefixes,
|
|
53
58
|
getEmbeddingProviderIdentity,
|
|
54
59
|
LocalEmbeddingProvider
|
|
55
|
-
} from "./server-
|
|
56
|
-
import {
|
|
57
|
-
isUserHomeDirectory,
|
|
58
|
-
setBootQuietPeriodForTests
|
|
59
|
-
} from "./server-btgnsv7w.js";
|
|
60
|
+
} from "./server-44ryn9rb.js";
|
|
60
61
|
import {
|
|
61
62
|
logSlowWriteTransaction
|
|
62
|
-
} from "./server-
|
|
63
|
+
} from "./server-7dv9wt9r.js";
|
|
63
64
|
|
|
64
65
|
// src/shared/background-batch-drain.ts
|
|
65
66
|
async function drainBackgroundBatches(step, options = {}) {
|
|
@@ -1015,7 +1016,6 @@ function listShadowBackfillStalls2(db, projectIdentity) {
|
|
|
1015
1016
|
}
|
|
1016
1017
|
return stalls;
|
|
1017
1018
|
}
|
|
1018
|
-
|
|
1019
1019
|
// src/features/magic-context/project-embedding-registry.ts
|
|
1020
1020
|
var OFF_PROVIDER_IDENTITY = "embedding-provider:off";
|
|
1021
1021
|
var SWEEP_MAX_WALL_CLOCK_MS = 10 * 60 * 1000;
|
|
@@ -2607,12 +2607,12 @@ async function drainCommitBacklogForProject2(db, projectIdentity, deadline) {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
let total = 0;
|
|
2609
2609
|
let leaseLost = false;
|
|
2610
|
-
const renewal = setInterval(() => {
|
|
2610
|
+
const renewal = inRootAsyncContext2(() => setInterval(() => {
|
|
2611
2611
|
try {
|
|
2612
2612
|
if (!renewGitSweepLease(db, projectIdentity, holderId))
|
|
2613
2613
|
leaseLost = true;
|
|
2614
2614
|
} catch {}
|
|
2615
|
-
}, SESSION_EMBED_LEASE_RENEWAL_MS);
|
|
2615
|
+
}, SESSION_EMBED_LEASE_RENEWAL_MS));
|
|
2616
2616
|
renewal.unref?.();
|
|
2617
2617
|
try {
|
|
2618
2618
|
while (!leaseLost && !isEmbeddingHostBusy2() && Date.now() < deadline && total < COMMIT_DRAIN_MAX_PER_SWEEP) {
|
|
@@ -2776,12 +2776,12 @@ async function drainCompartmentChunkBacklogForProject(db, projectIdentity, deadl
|
|
|
2776
2776
|
}
|
|
2777
2777
|
let total = 0;
|
|
2778
2778
|
let leaseLost = false;
|
|
2779
|
-
const renewal = setInterval(() => {
|
|
2779
|
+
const renewal = inRootAsyncContext2(() => setInterval(() => {
|
|
2780
2780
|
try {
|
|
2781
2781
|
if (!renewGitSweepLease(db, projectIdentity, holderId))
|
|
2782
2782
|
leaseLost = true;
|
|
2783
2783
|
} catch {}
|
|
2784
|
-
}, SESSION_EMBED_LEASE_RENEWAL_MS);
|
|
2784
|
+
}, SESSION_EMBED_LEASE_RENEWAL_MS));
|
|
2785
2785
|
renewal.unref?.();
|
|
2786
2786
|
try {
|
|
2787
2787
|
while (!leaseLost && !isEmbeddingHostBusy2() && Date.now() < deadline && total < CHUNK_DRAIN_MAX_PER_SWEEP) {
|
|
@@ -2822,14 +2822,14 @@ async function embedSessionCompartmentChunks2(db, projectIdentity, sessionId, op
|
|
|
2822
2822
|
drainAbort.abort();
|
|
2823
2823
|
else
|
|
2824
2824
|
options?.signal?.addEventListener("abort", forwardCallerAbort, { once: true });
|
|
2825
|
-
const renewal = setInterval(() => {
|
|
2825
|
+
const renewal = inRootAsyncContext2(() => setInterval(() => {
|
|
2826
2826
|
try {
|
|
2827
2827
|
if (!renewGitSweepLease(db, projectIdentity, holderId)) {
|
|
2828
2828
|
leaseLost = true;
|
|
2829
2829
|
drainAbort.abort();
|
|
2830
2830
|
}
|
|
2831
2831
|
} catch {}
|
|
2832
|
-
}, SESSION_EMBED_LEASE_RENEWAL_MS);
|
|
2832
|
+
}, SESSION_EMBED_LEASE_RENEWAL_MS));
|
|
2833
2833
|
renewal.unref?.();
|
|
2834
2834
|
const batchSize = Math.max(1, options?.batchSize ?? CHUNK_DRAIN_BATCH_SIZE);
|
|
2835
2835
|
const skipIds = [];
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./server-fr0wbhdn.js";
|
|
4
4
|
import {
|
|
5
5
|
log2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-9e5r8y60.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureColumn,
|
|
9
9
|
healAllNullColumns,
|
|
10
10
|
installV95PerfSchema
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-shme41gj.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveOpenCodeDbPath,
|
|
14
14
|
openCodeDbPathExists,
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
} from "./server-2ra6pwf3.js";
|
|
17
17
|
import {
|
|
18
18
|
Database2
|
|
19
|
-
} from "./server-
|
|
19
|
+
} from "./server-wafzvyhg.js";
|
|
20
20
|
import {
|
|
21
21
|
normalizeStoredProjectPath,
|
|
22
22
|
storedPathBelongsToIdentity
|
|
23
|
-
} from "./server-
|
|
23
|
+
} from "./server-njnx39q2.js";
|
|
24
24
|
import {
|
|
25
25
|
logSlowWriteTransaction
|
|
26
|
-
} from "./server-
|
|
26
|
+
} from "./server-7dv9wt9r.js";
|
|
27
27
|
|
|
28
28
|
// src/features/magic-context/migrations.ts
|
|
29
29
|
import { isMainThread } from "node:worker_threads";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log2
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-9e5r8y60.js";
|
|
4
4
|
import {
|
|
5
5
|
setOutputReserveConfig
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-nveratm5.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
|
|
9
9
|
PROTECTED_TOKENS_MIN,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
PER_HARNESS_MODEL_KEYS,
|
|
12
12
|
ConfigProfilesSchema,
|
|
13
13
|
MagicContextConfigSchema
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-7e087rvk.js";
|
|
15
15
|
|
|
16
16
|
// src/config/index.ts
|
|
17
17
|
import { existsSync as existsSync4 } from "node:fs";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_LOCAL_EMBEDDING_MODEL
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-7e087rvk.js";
|
|
4
4
|
import {
|
|
5
5
|
log2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-9e5r8y60.js";
|
|
7
7
|
import {
|
|
8
8
|
isSynapseEmbeddingTruncated,
|
|
9
9
|
SynapseEmbeddingProvider
|
|
10
|
-
} from "./server-
|
|
10
|
+
} from "./server-988cqjme.js";
|
|
11
11
|
import {
|
|
12
12
|
LocalEmbeddingProvider
|
|
13
|
-
} from "./server-
|
|
13
|
+
} from "./server-44ryn9rb.js";
|
|
14
14
|
import {
|
|
15
15
|
OpenAICompatibleEmbeddingProvider,
|
|
16
16
|
getProjectEmbeddingSnapshot2,
|
|
17
17
|
embedBatchForProject2
|
|
18
|
-
} from "./server-
|
|
18
|
+
} from "./server-4easnf78.js";
|
|
19
19
|
import {
|
|
20
20
|
isEmbeddingHostBusy2
|
|
21
21
|
} from "./server-qt1qqasc.js";
|