@cortexkit/opencode-magic-context 0.49.7 → 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 +6 -6
- package/dist/compaction-marker-candidates-worker.js +2 -2
- package/dist/{compaction-marker-candidates-a0edbqrr.js → compaction-marker-candidates-xxz35vwp.js} +3 -3
- package/dist/{conflict-warning-hook-myk5hbt9.js → conflict-warning-hook-w3crzrar.js} +8 -8
- package/dist/{context-ffr7e0g7.js → context-x0ccfv0f.js} +65 -42
- 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/dreamer/cron.d.ts +2 -0
- package/dist/features/magic-context/dreamer/cron.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/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/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/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/inject-compartments.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/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts +8 -4
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/rust-mode-transform.d.ts +1 -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/tool-drop-target.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-g8qbdb03.js → index-0jz47061.js} +6 -3
- package/dist/{index-4mjhqadz.js → index-150zz6fh.js} +1 -1
- package/dist/{index-j58gqrn2.js → index-2rw244rh.js} +31 -24
- package/dist/{index-0gyq3djm.js → index-4hb8nt93.js} +3 -3
- package/dist/{index-ax2jhztn.js → index-7bjgyaj1.js} +4 -4
- package/dist/{index-h2wc01qk.js → index-8kk7yh6m.js} +2 -2
- package/dist/{index-n5a170gs.js → index-9g1c4bt9.js} +81 -58
- package/dist/{index-w6bd03dc.js → index-a43xq1pg.js} +5 -5
- package/dist/{index-tqf7yg27.js → index-a4b0gbyg.js} +1 -1
- package/dist/{index-37q80veb.js → index-angx1s0k.js} +4 -3
- package/dist/{index-wq16ahsn.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-ebnngykq.js → index-gzg9ekc1.js} +19 -18
- package/dist/{index-5tbvdff4.js → index-hxrvx6cy.js} +79 -40
- 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-rzmjkdd6.js → index-mp2kghkv.js} +3 -27
- package/dist/{index-nsjyysj0.js → index-mvvephtj.js} +5 -1
- package/dist/{index-9yyqq3mm.js → index-n78avt2p.js} +1 -1
- package/dist/{index-vt4sf4ep.js → index-pgy3h49n.js} +4 -4
- package/dist/{index-w6vr754t.js → index-pjgzdezw.js} +13 -9
- package/dist/{v2/server-1rfgbjfn.js → index-q28hsbpg.js} +15 -3
- package/dist/{index-a8acx4gc.js → index-q76br5zn.js} +3 -3
- package/dist/{index-j5hce1ab.js → index-qgp5vnt4.js} +5 -5
- package/dist/{index-sf94at64.js → index-rg1cezmj.js} +22 -22
- package/dist/{index-sh91t19a.js → index-s178h9z8.js} +4 -3
- package/dist/{index-tagss15p.js → index-w1ejb9qr.js} +105 -58
- package/dist/{index-k6xvbj2e.js → index-w28y7d0z.js} +2 -0
- package/dist/{index-j8epsc0g.js → index-wafzvyhg.js} +33 -10
- package/dist/{index-rwmpkss5.js → index-xf6k8szp.js} +4 -4
- package/dist/{index-tmtty2x5.js → index-xpn05jxq.js} +4 -4
- package/dist/{index-n7kwfw2r.js → index-ydjgz36f.js} +7 -7
- package/dist/{index-4btknbqh.js → index-zf9nydbd.js} +48 -38
- package/dist/index.js +51 -50
- package/dist/{logger-ewak5q1s.js → logger-wn328tfg.js} +1 -1
- package/dist/{message-index-bounded-04rycpx4.js → message-index-bounded-hxjp56qk.js} +16 -16
- package/dist/{message-index-rqtse28y.js → message-index-zs882h8e.js} +16 -16
- package/dist/{message-time-backfill-a5ytnp53.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/rpc-handlers.d.ts +2 -0
- package/dist/plugin/rpc-handlers.d.ts.map +1 -1
- package/dist/{project-embedding-registry-k0sd9k7v.js → project-embedding-registry-vy7sv9jt.js} +11 -11
- package/dist/raw-ordinal-warmup-worker.js +6 -6
- package/dist/{read-session-chunk-h1btx938.js → read-session-chunk-t9r7r0sg.js} +11 -11
- package/dist/{read-session-raw-vdf4wh78.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-3rbdx6hw.js → search-qjen1pmz.js} +24 -24
- package/dist/{send-session-notification-2tp44tfa.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/redaction.d.ts.map +1 -1
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/sqlite.d.ts +2 -0
- package/dist/shared/sqlite.d.ts.map +1 -1
- package/dist/shared/user-facing-codes.d.ts +2 -2
- package/dist/{sqlite-j3tvg8r0.js → sqlite-4pqyynrs.js} +3 -1
- package/dist/{storage-memory-8168bgef.js → storage-memory-j3v3hc83.js} +2 -2
- package/dist/{storage-tags-61z5j2f9.js → storage-tags-a513rkj3.js} +5 -5
- package/dist/{transform-postprocess-phase-7qts7h54.js → transform-postprocess-phase-yv463b7y.js} +30 -30
- package/dist/v2/auto-search-worker.js +6 -6
- package/dist/v2/{compaction-marker-candidates-6nypjkpf.js → compaction-marker-candidates-a15w3mqh.js} +3 -3
- package/dist/v2/compaction-marker-candidates-worker.js +2 -2
- package/dist/v2/{context-xq4rtywr.js → context-wd82v9z6.js} +137 -68
- 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/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-5vh1h2g7.js → message-index-bounded-madg2kfr.js} +16 -16
- package/dist/v2/{message-index-8e5z2xx8.js → message-index-yd94vt9n.js} +16 -16
- package/dist/v2/{message-time-backfill-2z365239.js → message-time-backfill-rz1pnpaj.js} +3 -3
- package/dist/v2/migration-worker.js +11 -11
- package/dist/v2/{project-embedding-registry-b77awytr.js → project-embedding-registry-ja23aygk.js} +11 -11
- package/dist/v2/raw-ordinal-warmup-worker.js +6 -6
- package/dist/v2/{read-session-chunk-4sat83cx.js → read-session-chunk-7qs791f3.js} +11 -11
- package/dist/v2/{read-session-raw-a3hw9jsp.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-ppgc8qdz.js → send-session-notification-6n7chhyp.js} +6 -6
- package/dist/v2/{server-v4fwha43.js → server-08k4zkfk.js} +48 -38
- package/dist/v2/{server-ras2sxnc.js → server-44ryn9rb.js} +9 -6
- package/dist/v2/{server-fw31krgq.js → server-4easnf78.js} +19 -19
- package/dist/v2/{server-hcvcxzx7.js → server-4gz0xkrc.js} +5 -5
- package/dist/v2/{server-d6g4whc2.js → server-4qr18rfg.js} +3 -3
- package/dist/v2/{server-sy4b1sra.js → server-4rs8sm06.js} +5 -5
- package/dist/v2/{server-brhj8qtd.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-fpqe39as.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-qcw43339.js → server-ak7w74j9.js} +4 -4
- package/dist/v2/{server-dd0nja67.js → server-bx59ezg6.js} +4 -3
- package/dist/v2/{server-676xw7at.js → server-ckrb5rm8.js} +1 -1
- package/dist/{index-w4mw92w3.js → v2/server-cxsr0ng6.js} +15 -3
- package/dist/v2/{server-t528t8qm.js → server-hn9fb3v0.js} +2 -2
- package/dist/v2/{server-7srtwsa4.js → server-j3dm74ey.js} +9 -9
- package/dist/v2/{server-w3zeywp1.js → server-jjsf29aq.js} +4 -4
- package/dist/v2/server-knvkbfvh.js +25 -0
- package/dist/v2/{server-9yyqq3mm.js → server-n78avt2p.js} +1 -1
- package/dist/v2/{server-kdrezdy0.js → server-njnx39q2.js} +6 -3
- package/dist/v2/{server-x08d1xf3.js → server-npm52h2q.js} +4 -3
- package/dist/v2/{server-vb7pbd9p.js → server-nveratm5.js} +1 -1
- package/dist/v2/{server-mv1w7t6z.js → server-q360kdb8.js} +77 -38
- 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-j8epsc0g.js → server-wafzvyhg.js} +33 -10
- package/dist/v2/{server-gtv9wbhq.js → server-xj4mewze.js} +81 -58
- package/dist/v2/{server-nfan6zb6.js → server-y5g32dhq.js} +31 -24
- package/dist/v2/{server-jdwd03ep.js → server-yak3sxya.js} +7 -7
- package/dist/v2/{server-wkdgjjch.js → server-zrwaj29a.js} +2 -2
- package/dist/v2/server.js +7 -6
- package/dist/v2/{sqlite-j3tvg8r0.js → sqlite-4pqyynrs.js} +3 -1
- package/dist/v2/{storage-memory-8168bgef.js → storage-memory-j3v3hc83.js} +2 -2
- package/dist/v2/{storage-tags-j2fzq3sw.js → storage-tags-spa92sgj.js} +5 -5
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{wrapup-orchestrator-s92ebfzv.js → wrapup-orchestrator-5wxy1ggv.js} +38 -35
- package/dist/wrapup-orchestrator-gv08c6f9.js +47 -0
- package/package.json +1 -1
- 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/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.ts +55 -14
- package/src/shared/user-facing-codes.ts +2 -2
- package/dist/embedding-backfill-re16xncd.js +0 -21
- package/dist/recomp-orchestrator-trcgmm23.js +0 -60
- package/dist/v2/embedding-backfill-xd9ygzgd.js +0 -20
- package/dist/v2/recomp-orchestrator-n11zv1f1.js +0 -59
- package/dist/v2/search-mvgqtkkz.js +0 -46
- package/dist/wrapup-orchestrator-df61jmz9.js +0 -47
|
@@ -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-ppgc8qdz.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,3 +1,18 @@
|
|
|
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";
|
|
1
16
|
import {
|
|
2
17
|
getHarness2,
|
|
3
18
|
harnessOwnsOpenCodeStore2
|
|
@@ -9,7 +24,7 @@ import {
|
|
|
9
24
|
importPluginModule,
|
|
10
25
|
writeForwardedLogLine2,
|
|
11
26
|
log2
|
|
12
|
-
} from "./server-
|
|
27
|
+
} from "./server-9e5r8y60.js";
|
|
13
28
|
import {
|
|
14
29
|
isOwnRpcServerRecord,
|
|
15
30
|
isPidAlive,
|
|
@@ -20,23 +35,13 @@ import {
|
|
|
20
35
|
parseRpcPortFile,
|
|
21
36
|
inspectProcessesAsync,
|
|
22
37
|
inspectWindowsProcessesSync
|
|
23
|
-
} from "./server-
|
|
24
|
-
import {
|
|
25
|
-
registerSlowWriteReporter2,
|
|
26
|
-
registerSqliteDiagnosticSink2,
|
|
27
|
-
detectSqliteRuntime2,
|
|
28
|
-
Database2,
|
|
29
|
-
withSqliteBackgroundWriter2,
|
|
30
|
-
withoutSqliteTransformPass2,
|
|
31
|
-
isTransientSqliteError2,
|
|
32
|
-
withPrivilegedWriter2
|
|
33
|
-
} from "./server-j8epsc0g.js";
|
|
38
|
+
} from "./server-cxsr0ng6.js";
|
|
34
39
|
import {
|
|
35
40
|
configureContextDatabasePragmas2
|
|
36
41
|
} from "./server-fb3zxn06.js";
|
|
37
42
|
import {
|
|
38
43
|
startMessageFtsRowidMapBackfill
|
|
39
|
-
} from "./server-
|
|
44
|
+
} from "./server-63ha7f0f.js";
|
|
40
45
|
import {
|
|
41
46
|
LKG_SLOT_CHUNKS_DDL,
|
|
42
47
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -46,24 +51,20 @@ import {
|
|
|
46
51
|
hasPendingMigrations,
|
|
47
52
|
getMainThreadMigrationBodyCount,
|
|
48
53
|
runMigrations
|
|
49
|
-
} from "./server-
|
|
54
|
+
} from "./server-4gz0xkrc.js";
|
|
50
55
|
import {
|
|
51
56
|
ensureColumn,
|
|
52
57
|
installV95PerfSchema,
|
|
53
58
|
installTagIdentityRevisionTrigger
|
|
54
|
-
} from "./server-
|
|
59
|
+
} from "./server-shme41gj.js";
|
|
55
60
|
import {
|
|
56
61
|
resolveOpenCodeDbPath,
|
|
57
62
|
hasV1MessageTables
|
|
58
63
|
} from "./server-2ra6pwf3.js";
|
|
59
|
-
import {
|
|
60
|
-
bootQuietRemainingMs,
|
|
61
|
-
scheduleAfterBootQuiet
|
|
62
|
-
} from "./server-kdrezdy0.js";
|
|
63
64
|
import {
|
|
64
65
|
setDatabase,
|
|
65
66
|
loadToolDefinitionMeasurements
|
|
66
|
-
} from "./server-
|
|
67
|
+
} from "./server-adfte03x.js";
|
|
67
68
|
import {
|
|
68
69
|
getErrorMessage
|
|
69
70
|
} from "./server-y8v6yerm.js";
|
|
@@ -80,7 +81,7 @@ import {
|
|
|
80
81
|
} from "./server-8ajstryz.js";
|
|
81
82
|
import {
|
|
82
83
|
logSlowWriteTransaction
|
|
83
|
-
} from "./server-
|
|
84
|
+
} from "./server-7dv9wt9r.js";
|
|
84
85
|
|
|
85
86
|
// src/features/magic-context/storage-db.ts
|
|
86
87
|
import {
|
|
@@ -324,15 +325,25 @@ var activeMigrations = 0;
|
|
|
324
325
|
var activeSince = 0;
|
|
325
326
|
var accumulatedMs = 0;
|
|
326
327
|
var idleWaiters = [];
|
|
327
|
-
|
|
328
|
-
|
|
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);
|
|
329
340
|
}
|
|
330
341
|
function isOffThreadMigrationRunning() {
|
|
331
342
|
return activeMigrations > 0;
|
|
332
343
|
}
|
|
333
344
|
function beginOffThreadMigration() {
|
|
334
345
|
if (activeMigrations === 0)
|
|
335
|
-
activeSince =
|
|
346
|
+
activeSince = now();
|
|
336
347
|
activeMigrations += 1;
|
|
337
348
|
let ended = false;
|
|
338
349
|
return () => {
|
|
@@ -342,7 +353,7 @@ function beginOffThreadMigration() {
|
|
|
342
353
|
activeMigrations -= 1;
|
|
343
354
|
if (activeMigrations > 0)
|
|
344
355
|
return;
|
|
345
|
-
accumulatedMs += Math.max(0,
|
|
356
|
+
accumulatedMs += Math.max(0, now() - activeSince);
|
|
346
357
|
const waiters = idleWaiters;
|
|
347
358
|
idleWaiters = [];
|
|
348
359
|
for (const wake of waiters)
|
|
@@ -355,10 +366,10 @@ function whenOffThreadMigrationIdle() {
|
|
|
355
366
|
return new Promise((resolve) => idleWaiters.push(resolve));
|
|
356
367
|
}
|
|
357
368
|
function startBootDeadline(timeoutMs, onDeferred) {
|
|
358
|
-
const startedAt =
|
|
369
|
+
const startedAt = now();
|
|
359
370
|
const migratedAtStart = offThreadMigrationMs(startedAt);
|
|
360
371
|
const budgetMs = Math.max(0, timeoutMs);
|
|
361
|
-
let
|
|
372
|
+
let cancelTimer;
|
|
362
373
|
let cancelled = false;
|
|
363
374
|
let deferredReported = false;
|
|
364
375
|
let resolveExpired;
|
|
@@ -366,12 +377,12 @@ function startBootDeadline(timeoutMs, onDeferred) {
|
|
|
366
377
|
resolveExpired = resolve;
|
|
367
378
|
});
|
|
368
379
|
const remainingMs = () => {
|
|
369
|
-
const
|
|
370
|
-
const countedMs =
|
|
380
|
+
const currentTime = now();
|
|
381
|
+
const countedMs = currentTime - startedAt - (offThreadMigrationMs(currentTime) - migratedAtStart);
|
|
371
382
|
return budgetMs - countedMs;
|
|
372
383
|
};
|
|
373
384
|
const check = () => {
|
|
374
|
-
|
|
385
|
+
cancelTimer = undefined;
|
|
375
386
|
if (cancelled)
|
|
376
387
|
return;
|
|
377
388
|
if (isOffThreadMigrationRunning()) {
|
|
@@ -384,19 +395,18 @@ function startBootDeadline(timeoutMs, onDeferred) {
|
|
|
384
395
|
}
|
|
385
396
|
const left = remainingMs();
|
|
386
397
|
if (left > 0) {
|
|
387
|
-
|
|
398
|
+
cancelTimer = scheduleTimeout(check, left);
|
|
388
399
|
return;
|
|
389
400
|
}
|
|
390
401
|
resolveExpired();
|
|
391
402
|
};
|
|
392
|
-
|
|
403
|
+
cancelTimer = scheduleTimeout(check, budgetMs);
|
|
393
404
|
return {
|
|
394
405
|
expired,
|
|
395
406
|
cancel: () => {
|
|
396
407
|
cancelled = true;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
timer = undefined;
|
|
408
|
+
cancelTimer?.();
|
|
409
|
+
cancelTimer = undefined;
|
|
400
410
|
}
|
|
401
411
|
};
|
|
402
412
|
}
|
|
@@ -413,7 +423,7 @@ function runMigrationsOffThread(data) {
|
|
|
413
423
|
return new Promise((resolve, reject) => {
|
|
414
424
|
let worker;
|
|
415
425
|
try {
|
|
416
|
-
worker = new Worker(workerEntryOverride ?? defaultWorkerEntry(), { workerData: data });
|
|
426
|
+
worker = inRootAsyncContext2(() => new Worker(workerEntryOverride ?? defaultWorkerEntry(), { workerData: data }));
|
|
417
427
|
} catch (error) {
|
|
418
428
|
reject(workerStartError(error instanceof Error ? error.message : String(error)));
|
|
419
429
|
return;
|
|
@@ -1199,8 +1209,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1199
1209
|
startMessageFtsRowidMapBackfill(db).then(async () => {
|
|
1200
1210
|
if (!readsOpenCodeStore)
|
|
1201
1211
|
return;
|
|
1202
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1203
|
-
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"));
|
|
1204
1214
|
await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
|
|
1205
1215
|
readPage: readRawSessionMessagePage
|
|
1206
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-kdrezdy0.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";
|
|
@@ -1,34 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withSqliteBackgroundWriter2,
|
|
3
3
|
withoutSqliteTransformPass2
|
|
4
|
-
} from "./server-
|
|
4
|
+
} from "./server-wafzvyhg.js";
|
|
5
5
|
import {
|
|
6
6
|
logSlowWriteTransaction
|
|
7
|
-
} from "./server-
|
|
8
|
-
|
|
9
|
-
// src/shared/project-directory-key.ts
|
|
10
|
-
import { realpathSync } from "node:fs";
|
|
11
|
-
import path from "node:path";
|
|
12
|
-
function projectDirectoryKey(directory) {
|
|
13
|
-
const slashed = directory.replaceAll("\\", "/").replace(/^\/\/\?\/UNC\//i, "//").replace(/^\/\/\?\//, "");
|
|
14
|
-
if (/^[a-z]:\//i.test(slashed) || slashed.startsWith("//")) {
|
|
15
|
-
return path.win32.normalize(slashed).replaceAll("\\", "/").replace(/\/$/, "").toLowerCase();
|
|
16
|
-
}
|
|
17
|
-
return path.resolve(directory);
|
|
18
|
-
}
|
|
19
|
-
function sameProjectDirectory(a, b) {
|
|
20
|
-
if (a.length === 0 || b.length === 0)
|
|
21
|
-
return false;
|
|
22
|
-
return projectDirectoryKey(a) === projectDirectoryKey(b);
|
|
23
|
-
}
|
|
24
|
-
var realpathForCanonicalDirectory = (directory) => realpathSync.native(directory);
|
|
25
|
-
function canonicalProjectDirectory(directory) {
|
|
26
|
-
let resolved = directory;
|
|
27
|
-
try {
|
|
28
|
-
resolved = realpathForCanonicalDirectory(directory);
|
|
29
|
-
} catch {}
|
|
30
|
-
return projectDirectoryKey(resolved);
|
|
31
|
-
}
|
|
7
|
+
} from "./server-7dv9wt9r.js";
|
|
32
8
|
|
|
33
9
|
// src/features/magic-context/message-fts-rowid-map.ts
|
|
34
10
|
import { createHash } from "node:crypto";
|
|
@@ -192,4 +168,4 @@ function deleteUnmappedMessageFtsRows(db, sessionIds) {
|
|
|
192
168
|
WHERE rowid > ? AND session_id IN (${placeholders})`).run(state.watermarkRowid, ...sessionIds);
|
|
193
169
|
}
|
|
194
170
|
|
|
195
|
-
export {
|
|
171
|
+
export { recordMessageFtsRowid, recordIndexedMessageTime, startMessageFtsRowidMapBackfill, messageFtsOrdinalRangeIsMapped, deleteUnmappedMessageFtsRows };
|
|
@@ -4947,6 +4947,7 @@ var FIELDS = [
|
|
|
4947
4947
|
];
|
|
4948
4948
|
var MINUTE_MS = 60000;
|
|
4949
4949
|
var MAX_SEARCH_MS = 4 * 366 * 24 * 60 * MINUTE_MS;
|
|
4950
|
+
var candidateVisitsForTests;
|
|
4950
4951
|
function parseField(token, spec) {
|
|
4951
4952
|
const values = new Set;
|
|
4952
4953
|
const normalize = (n) => spec.name === "day-of-week" && n === 7 ? 0 : n;
|
|
@@ -5066,6 +5067,7 @@ function nextOccurrence(cron, after, excludeCivilMinute, maxSearchMs = MAX_SEARC
|
|
|
5066
5067
|
let cursorMs = Math.floor(afterMs / MINUTE_MS) * MINUTE_MS + MINUTE_MS;
|
|
5067
5068
|
const capMs = afterMs + Math.max(0, Math.min(MAX_SEARCH_MS, maxSearchMs));
|
|
5068
5069
|
while (cursorMs <= capMs) {
|
|
5070
|
+
candidateVisitsForTests?.();
|
|
5069
5071
|
const candidate = new Date(cursorMs);
|
|
5070
5072
|
if (matchesCron(cron, candidate)) {
|
|
5071
5073
|
if (!excludeCivilMinute || civilMinuteKey(candidate) !== excludeCivilMinute) {
|