@cortexkit/opencode-magic-context 0.49.10 → 0.49.12
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/README.md +1 -1
- package/dist/agents/smart-notes-dreamer-gate.fixture.d.ts +28 -0
- package/dist/agents/smart-notes-dreamer-gate.fixture.d.ts.map +1 -0
- package/dist/{announcement-hdbkt8v5.js → announcement-g789dmt6.js} +2 -2
- package/dist/auto-search-worker.js +4 -4
- package/dist/{compaction-marker-candidates-xxz35vwp.js → compaction-marker-candidates-v5c6997n.js} +3 -3
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/config/agent-disable.d.ts +14 -0
- package/dist/config/agent-disable.d.ts.map +1 -1
- package/dist/config/dependency-notes.d.ts +34 -0
- package/dist/config/dependency-notes.d.ts.map +1 -0
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-w3crzrar.js → conflict-warning-hook-f4x5wed7.js} +8 -8
- package/dist/{context-ey3ap3cc.js → context-dam8p201.js} +306 -119
- package/dist/{derive-budgets-3nbxsyss.js → derive-budgets-5306b1jt.js} +3 -3
- package/dist/embedding-backfill-qbfcbp87.js +21 -0
- package/dist/embedding-worker-process.js +2 -2
- package/dist/embedding-worker.js +6 -6
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +12 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-config.d.ts +22 -4
- package/dist/features/magic-context/dreamer/task-config.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +22 -0
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +4 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-openai.d.ts +32 -0
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/project-identity.d.ts +1 -0
- package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
- package/dist/features/magic-context/memory/unborn-head.d.ts +34 -0
- package/dist/features/magic-context/memory/unborn-head.d.ts.map +1 -0
- package/dist/features/magic-context/memory-enabled.d.ts +5 -0
- package/dist/features/magic-context/memory-enabled.d.ts.map +1 -0
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/search-pool-fixture.d.ts +39 -0
- package/dist/features/magic-context/search-pool-fixture.d.ts.map +1 -0
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/storage-tags.d.ts +2 -0
- package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
- package/dist/features/magic-context/transform-decision-log.d.ts +57 -2
- package/dist/features/magic-context/transform-decision-log.d.ts.map +1 -1
- package/dist/{history-owner-ty29fz0f.js → history-owner-xp3pngv7.js} +3 -3
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-prompt.d.ts +6 -0
- package/dist/hooks/magic-context/compartment-prompt.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +3 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger-error.d.ts +12 -0
- package/dist/hooks/magic-context/compartment-trigger-error.d.ts.map +1 -0
- package/dist/hooks/magic-context/historian-prompt-fit.d.ts +14 -2
- package/dist/hooks/magic-context/historian-prompt-fit.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/pending-materialization.d.ts +2 -0
- package/dist/hooks/magic-context/pending-materialization.d.ts.map +1 -1
- package/dist/hooks/magic-context/producer-window-guard.d.ts.map +1 -1
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts +12 -0
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-exact-ordinal-read.d.ts +58 -0
- package/dist/hooks/magic-context/raw-exact-ordinal-read.d.ts.map +1 -0
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts +7 -0
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-db.d.ts +5 -0
- package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-raw.d.ts +19 -0
- package/dist/hooks/magic-context/read-session-raw.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts +2 -0
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- package/dist/hooks/magic-context/render-options.d.ts +21 -0
- package/dist/hooks/magic-context/render-options.d.ts.map +1 -0
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +4 -0
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +2 -0
- package/dist/hooks/magic-context/transform-compartment-phase.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 +5 -7
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/wrapup-orchestrator.d.ts.map +1 -1
- package/dist/{index-21919gcq.js → index-05n6ykca.js} +4 -4
- package/dist/{index-q76br5zn.js → index-1d289pq2.js} +26 -21
- package/dist/{index-w28y7d0z.js → index-1sarmj9z.js} +15 -15
- package/dist/{index-x57ep4fp.js → index-1wwh38fk.js} +323 -121
- package/dist/{index-pgy3h49n.js → index-2pgxcncf.js} +4 -4
- package/dist/{index-ffa8x2as.js → index-6sytd5w3.js} +18 -13
- package/dist/{index-16vwdyy5.js → index-6sz25c3s.js} +3 -3
- package/dist/{index-4hb8nt93.js → index-7h8a1xpc.js} +3 -3
- package/dist/{index-rg1cezmj.js → index-7zd5asz9.js} +140 -17
- package/dist/{index-jw4gbfkv.js → index-8ketfacn.js} +2 -2
- package/dist/{index-nenz4gpb.js → index-95s8xaj1.js} +6 -5
- package/dist/{index-bmwfzz28.js → index-9vqb5p1s.js} +4 -4
- package/dist/{index-0jz47061.js → index-a8bvhwqs.js} +190 -30
- package/dist/{index-wpwpn7nj.js → index-b16gpywn.js} +9 -9
- package/dist/{index-g7jkrz0x.js → index-bp5083x2.js} +1 -1
- package/dist/{index-mp2kghkv.js → index-dyvbsvga.js} +1 -1
- package/dist/{index-s178h9z8.js → index-f71thw8j.js} +1 -1
- package/dist/{index-kvw6xew3.js → index-fkx2qnvw.js} +2 -2
- package/dist/{index-f8cn4xqa.js → index-fwefky9w.js} +18 -5
- package/dist/{index-a43xq1pg.js → index-fx90bvjd.js} +5 -5
- package/dist/{index-0sahzkwr.js → index-g2q4htwp.js} +46 -2
- package/dist/{index-7bjgyaj1.js → index-gf0psee3.js} +243 -135
- package/dist/{index-mw7c950g.js → index-gp3kcpc4.js} +1 -1
- package/dist/{index-gjvjh960.js → index-hqkczed7.js} +1 -1
- package/dist/{index-mvvephtj.js → index-j75v2476.js} +1 -1
- package/dist/{index-150zz6fh.js → index-k29z4aqh.js} +1 -1
- package/dist/{index-b64n4d0h.js → index-kee4kn5j.js} +1 -1
- package/dist/index-ksdyrrav.js +52 -0
- package/dist/{index-angx1s0k.js → index-mmfa86mt.js} +16 -6
- package/dist/{index-9jvab89d.js → index-n6m03s3n.js} +2 -2
- package/dist/{index-q28hsbpg.js → index-nj7yykkx.js} +1 -1
- package/dist/{index-ghc9f0n7.js → index-p5y3k4g7.js} +29 -1
- package/dist/{index-6k86es2p.js → index-qtbdx42g.js} +54 -25
- package/dist/{index-a865mj02.js → index-tdn0zkw4.js} +4 -4
- package/dist/{index-0x9cn9w1.js → index-wqs4q74r.js} +8 -8
- package/dist/{index-swgpe402.js → index-x2xjyq8f.js} +11 -11
- package/dist/{index-a4b0gbyg.js → index-y9f76s3f.js} +1 -1
- package/dist/{index-3403gbzj.js → index-yx5kgp2x.js} +288 -127
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +97 -76
- package/dist/{logger-wn328tfg.js → logger-jm3sqqzr.js} +2 -2
- package/dist/{message-index-bounded-fskdyc81.js → message-index-bounded-nq6rp8xa.js} +16 -16
- package/dist/{message-index-6r1x9cqh.js → message-index-df7swgy1.js} +16 -16
- package/dist/{message-time-backfill-nb5hhnrt.js → message-time-backfill-qjge9044.js} +3 -3
- package/dist/migration-worker.js +11 -11
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/plugin/tool-registry.d.ts.map +1 -1
- package/dist/{project-embedding-registry-vy7sv9jt.js → project-embedding-registry-q0ysjyzc.js} +11 -11
- package/dist/raw-ordinal-warmup-worker.js +12 -7
- package/dist/{read-session-chunk-zgpvs423.js → read-session-chunk-ax05f7gr.js} +11 -11
- package/dist/{read-session-raw-gm6xj30v.js → read-session-raw-m56hc7v2.js} +7 -3
- package/dist/{recomp-orchestrator-77xc8wpe.js → recomp-orchestrator-a0mvby4e.js} +29 -29
- package/dist/{safe-notification-target-jdynm677.js → safe-notification-target-1szv1k5k.js} +3 -3
- package/dist/{search-72fkjwk2.js → search-fm002702.js} +23 -23
- package/dist/{send-session-notification-q8ngbap3.js → send-session-notification-y2wg3fkh.js} +6 -6
- package/dist/shared/data-path.d.ts +4 -0
- package/dist/shared/data-path.d.ts.map +1 -1
- package/dist/shared/prompt-surface-runtime.d.ts +5 -0
- package/dist/shared/prompt-surface-runtime.d.ts.map +1 -1
- package/dist/{storage-tags-35m4gms2.js → storage-tags-yygfb9c8.js} +7 -5
- package/dist/{task-config-cgpg0nvh.js → task-config-x3qmayd2.js} +6 -2
- package/dist/tools/ctx-note/tools.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-r8d406j0.js → transform-postprocess-phase-s84rdf32.js} +29 -29
- package/dist/v2/auto-search-worker.js +4 -4
- package/dist/v2/{compaction-marker-candidates-a15w3mqh.js → compaction-marker-candidates-1vqwr3s5.js} +2 -2
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{context-z2yagwy4.js → context-x60fa16g.js} +758 -286
- package/dist/v2/{derive-budgets-0rmpmxjw.js → derive-budgets-z25jw3py.js} +3 -3
- package/dist/v2/embedding-backfill-mbjyza2a.js +20 -0
- package/dist/v2/embedding-worker-process.js +1 -1
- package/dist/v2/embedding-worker.js +5 -5
- package/dist/v2/{history-owner-2cr9py37.js → history-owner-42e16w0n.js} +2 -2
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/dream-manual.d.ts +1 -0
- package/dist/v2/hooks/dream-manual.d.ts.map +1 -1
- package/dist/v2/hooks/dream-timer.d.ts +3 -1
- package/dist/v2/hooks/dream-timer.d.ts.map +1 -1
- package/dist/v2/hooks/dream-trigger.d.ts +6 -1
- package/dist/v2/hooks/dream-trigger.d.ts.map +1 -1
- package/dist/v2/hooks/payload.d.ts +1 -1
- package/dist/v2/hooks/payload.d.ts.map +1 -1
- package/dist/v2/hooks/transform-decision-binding.d.ts +15 -0
- package/dist/v2/hooks/transform-decision-binding.d.ts.map +1 -0
- package/dist/v2/hooks/transform-features.d.ts +40 -0
- package/dist/v2/hooks/transform-features.d.ts.map +1 -0
- package/dist/v2/{logger-te6e1j72.js → logger-7qt02bnb.js} +1 -1
- package/dist/v2/{message-index-9ezq6wze.js → message-index-5nayhm1r.js} +15 -15
- package/dist/v2/{message-index-bounded-rqc603f2.js → message-index-bounded-pgv1ndpb.js} +15 -15
- package/dist/v2/{message-time-backfill-rz1pnpaj.js → message-time-backfill-bsteyc4d.js} +2 -2
- package/dist/v2/migration-worker.js +10 -10
- package/dist/v2/{project-embedding-registry-ja23aygk.js → project-embedding-registry-jbmjc0p4.js} +12 -10
- package/dist/v2/raw-ordinal-warmup-worker.js +12 -7
- package/dist/v2/{read-session-chunk-7f87tg2q.js → read-session-chunk-hr3w5bjk.js} +10 -10
- package/dist/v2/{read-session-raw-h4azh85b.js → read-session-raw-b3tf6ra1.js} +6 -2
- package/dist/v2/recomp-orchestrator-8w3449eb.js +59 -0
- package/dist/v2/{safe-notification-target-936374xx.js → safe-notification-target-qg7n2s77.js} +2 -2
- package/dist/v2/{search-2td1b1wy.js → search-mhmxgq0e.js} +22 -22
- package/dist/v2/{send-session-notification-6n7chhyp.js → send-session-notification-jevgj9fe.js} +5 -5
- package/dist/v2/{server-npm52h2q.js → server-05xjtq6c.js} +1 -1
- package/dist/v2/{server-s6jqh8bj.js → server-0ppsweh6.js} +1 -1
- package/dist/v2/server-0s95v3en.js +49 -0
- package/dist/v2/{server-2hxypdx5.js → server-25tg45b4.js} +17 -12
- package/dist/v2/{server-44ryn9rb.js → server-2x42esxd.js} +3 -3
- package/dist/v2/{server-4qr18rfg.js → server-37ngj8qw.js} +10 -51
- package/dist/v2/{server-4zwx20yg.js → server-4c10404h.js} +3 -3
- package/dist/v2/{server-23znwjqk.js → server-50mkkhy1.js} +14 -11
- package/dist/v2/{server-c9w52qss.js → server-5gvkzzrf.js} +290 -76
- package/dist/v2/{server-7dv9wt9r.js → server-6pmqg9m4.js} +1 -1
- package/dist/v2/{server-ak7w74j9.js → server-83ygfha2.js} +4 -4
- package/dist/v2/{server-4rs8sm06.js → server-9ewkzqgd.js} +5 -5
- package/dist/v2/{server-kmapq3v0.js → server-bxpwy6fy.js} +18 -5
- package/dist/v2/{server-zrwaj29a.js → server-d8tj10db.js} +25 -20
- package/dist/v2/{server-cxsr0ng6.js → server-da07v4xp.js} +1 -1
- package/dist/v2/{server-9e5r8y60.js → server-f2xf5gcb.js} +46 -2
- package/dist/v2/{server-hn9fb3v0.js → server-f7jfmrrz.js} +2 -2
- package/dist/v2/{server-f27he3j1.js → server-fa75w6gp.js} +4 -4
- package/dist/v2/{server-njnx39q2.js → server-gvkm8xaj.js} +189 -29
- package/dist/v2/{server-ckrb5rm8.js → server-h0410h0v.js} +1 -1
- package/dist/v2/{server-nveratm5.js → server-kn9n2qgd.js} +1 -1
- package/dist/v2/{server-gc8x2xdb.js → server-m97brnat.js} +9 -9
- package/dist/v2/{server-z0rjemg1.js → server-nmrm2rjy.js} +8 -8
- package/dist/v2/{server-bx59ezg6.js → server-prg55b7k.js} +16 -6
- package/dist/v2/{server-89fcbe37.js → server-pwv4ezb0.js} +1 -1
- package/dist/v2/{server-r5p3b1wy.js → server-qd11g795.js} +29 -1
- package/dist/v2/{server-988cqjme.js → server-rrqpvwqd.js} +2 -2
- package/dist/v2/{server-4easnf78.js → server-sz8jj92q.js} +150 -18
- package/dist/v2/{server-7e087rvk.js → server-th4y11y7.js} +16 -16
- package/dist/v2/{server-9a6bwc12.js → server-vknbt0gq.js} +255 -135
- package/dist/v2/{server-63ha7f0f.js → server-yrvqaswb.js} +1 -1
- package/dist/v2/{server-xqf2d2mg.js → server-zs8d0s3b.js} +2 -2
- package/dist/v2/server.d.ts.map +1 -1
- package/dist/v2/server.js +13 -6
- package/dist/v2/{storage-tags-c4zfcxv4.js → storage-tags-a2gq6dw7.js} +6 -4
- package/dist/v2/store-reader.d.ts +4 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{task-config-x0hq3qfd.js → task-config-nvz8mapa.js} +6 -2
- package/dist/v2/{wrapup-orchestrator-wg8dmmm9.js → wrapup-orchestrator-r82y780v.js} +30 -29
- package/dist/wrapup-orchestrator-vmt6z3q5.js +47 -0
- package/package.json +1 -1
- package/src/agents/smart-notes-dreamer-gate.fixture.ts +171 -0
- package/src/agents/smart-notes-dreamer-gate.golden.json +245 -0
- package/src/agents/smart-notes-dreamer-gate.test.ts +161 -0
- package/src/config/agent-disable.ts +13 -0
- package/src/config/dependency-notes.test.ts +114 -0
- package/src/config/dependency-notes.ts +80 -0
- package/src/config/schema/magic-context.ts +23 -14
- package/src/features/magic-context/dreamer/task-registry.ts +40 -0
- package/src/shared/chunk-vector-writer-guard.test.ts +72 -0
- package/src/shared/data-path.test.ts +35 -1
- package/src/shared/data-path.ts +57 -1
- package/src/shared/prompt-surface-runtime.test.ts +15 -0
- package/src/shared/prompt-surface-runtime.ts +12 -0
- package/dist/embedding-backfill-3h2m5n0q.js +0 -21
- package/dist/v2/embedding-backfill-vr7wdtrf.js +0 -20
- package/dist/v2/recomp-orchestrator-s5tdpsbs.js +0 -59
- package/dist/wrapup-orchestrator-b1z99yg5.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-5gvkzzrf.js";
|
|
11
|
+
import"./server-05xjtq6c.js";
|
|
12
|
+
import"./server-4c10404h.js";
|
|
13
|
+
import"./server-nmrm2rjy.js";
|
|
14
|
+
import"./server-9ewkzqgd.js";
|
|
15
|
+
import"./server-n78avt2p.js";
|
|
16
|
+
import"./server-sz8jj92q.js";
|
|
17
|
+
import"./server-vknbt0gq.js";
|
|
18
|
+
import"./server-4dhv7mqz.js";
|
|
19
|
+
import"./server-f7jfmrrz.js";
|
|
20
|
+
import"./server-83ygfha2.js";
|
|
21
|
+
import"./server-qt1qqasc.js";
|
|
22
|
+
import"./server-h0410h0v.js";
|
|
23
|
+
import"./server-37ngj8qw.js";
|
|
24
|
+
import"./server-kn9n2qgd.js";
|
|
25
|
+
import"./server-x8a7jmkh.js";
|
|
26
|
+
import"./server-2x42esxd.js";
|
|
27
|
+
import"./server-rrqpvwqd.js";
|
|
28
|
+
import"./server-50mkkhy1.js";
|
|
29
|
+
import"./server-fb3zxn06.js";
|
|
30
|
+
import"./server-fa75w6gp.js";
|
|
31
|
+
import"./server-fr0wbhdn.js";
|
|
32
|
+
import"./server-gvkm8xaj.js";
|
|
33
|
+
import"./server-yrvqaswb.js";
|
|
34
|
+
import"./server-da07v4xp.js";
|
|
35
|
+
import"./server-m97brnat.js";
|
|
36
|
+
import"./server-bxpwy6fy.js";
|
|
37
|
+
import"./server-1zx87sdm.js";
|
|
38
|
+
import"./server-d8tj10db.js";
|
|
39
|
+
import"./server-prg55b7k.js";
|
|
40
|
+
import"./server-51779zs2.js";
|
|
41
|
+
import"./server-th4y11y7.js";
|
|
42
|
+
import"./server-zs8d0s3b.js";
|
|
43
|
+
import"./server-pwv4ezb0.js";
|
|
44
|
+
import"./server-2ra6pwf3.js";
|
|
45
|
+
import"./server-6pmqg9m4.js";
|
|
46
|
+
import"./server-0ppsweh6.js";
|
|
47
|
+
import"./server-wafzvyhg.js";
|
|
48
|
+
import"./server-f2xf5gcb.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-936374xx.js → safe-notification-target-qg7n2s77.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isDefaultSessionTitle2,
|
|
3
3
|
waitForSafeNotificationTarget2
|
|
4
|
-
} from "./server-
|
|
5
|
-
import"./server-
|
|
4
|
+
} from "./server-h0410h0v.js";
|
|
5
|
+
import"./server-f2xf5gcb.js";
|
|
6
6
|
import"./server-pavzsdc6.js";
|
|
7
7
|
export {
|
|
8
8
|
isDefaultSessionTitle2 as isDefaultSessionTitle,
|
|
@@ -5,36 +5,36 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./server-
|
|
9
|
-
import"./server-
|
|
10
|
-
import"./server-
|
|
11
|
-
import"./server-
|
|
8
|
+
} from "./server-25tg45b4.js";
|
|
9
|
+
import"./server-4c10404h.js";
|
|
10
|
+
import"./server-nmrm2rjy.js";
|
|
11
|
+
import"./server-9ewkzqgd.js";
|
|
12
12
|
import"./server-n78avt2p.js";
|
|
13
|
-
import"./server-
|
|
14
|
-
import"./server-
|
|
13
|
+
import"./server-sz8jj92q.js";
|
|
14
|
+
import"./server-vknbt0gq.js";
|
|
15
15
|
import"./server-4dhv7mqz.js";
|
|
16
16
|
import"./server-qt1qqasc.js";
|
|
17
|
-
import"./server-
|
|
18
|
-
import"./server-
|
|
19
|
-
import"./server-
|
|
17
|
+
import"./server-2x42esxd.js";
|
|
18
|
+
import"./server-rrqpvwqd.js";
|
|
19
|
+
import"./server-fa75w6gp.js";
|
|
20
20
|
import"./server-fr0wbhdn.js";
|
|
21
|
-
import"./server-
|
|
22
|
-
import"./server-
|
|
23
|
-
import"./server-
|
|
24
|
-
import"./server-
|
|
25
|
-
import"./server-
|
|
21
|
+
import"./server-gvkm8xaj.js";
|
|
22
|
+
import"./server-yrvqaswb.js";
|
|
23
|
+
import"./server-da07v4xp.js";
|
|
24
|
+
import"./server-m97brnat.js";
|
|
25
|
+
import"./server-bxpwy6fy.js";
|
|
26
26
|
import"./server-1zx87sdm.js";
|
|
27
|
-
import"./server-
|
|
28
|
-
import"./server-
|
|
27
|
+
import"./server-d8tj10db.js";
|
|
28
|
+
import"./server-prg55b7k.js";
|
|
29
29
|
import"./server-51779zs2.js";
|
|
30
|
-
import"./server-
|
|
31
|
-
import"./server-
|
|
32
|
-
import"./server-
|
|
30
|
+
import"./server-th4y11y7.js";
|
|
31
|
+
import"./server-zs8d0s3b.js";
|
|
32
|
+
import"./server-pwv4ezb0.js";
|
|
33
33
|
import"./server-2ra6pwf3.js";
|
|
34
|
-
import"./server-
|
|
35
|
-
import"./server-
|
|
34
|
+
import"./server-6pmqg9m4.js";
|
|
35
|
+
import"./server-0ppsweh6.js";
|
|
36
36
|
import"./server-wafzvyhg.js";
|
|
37
|
-
import"./server-
|
|
37
|
+
import"./server-f2xf5gcb.js";
|
|
38
38
|
import"./server-pavzsdc6.js";
|
|
39
39
|
export {
|
|
40
40
|
createUnifiedSearchDiagnostics2 as createUnifiedSearchDiagnostics,
|
package/dist/v2/{send-session-notification-6n7chhyp.js → send-session-notification-jevgj9fe.js}
RENAMED
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
clearIgnoredMessages2,
|
|
9
9
|
observeIgnoredNotificationEvent2,
|
|
10
10
|
sendStatusNotification2
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-83ygfha2.js";
|
|
12
12
|
import"./server-qt1qqasc.js";
|
|
13
|
-
import"./server-
|
|
14
|
-
import"./server-
|
|
15
|
-
import"./server-
|
|
13
|
+
import"./server-h0410h0v.js";
|
|
14
|
+
import"./server-d8tj10db.js";
|
|
15
|
+
import"./server-prg55b7k.js";
|
|
16
16
|
import"./server-51779zs2.js";
|
|
17
17
|
import"./server-2ra6pwf3.js";
|
|
18
18
|
import"./server-wafzvyhg.js";
|
|
19
|
-
import"./server-
|
|
19
|
+
import"./server-f2xf5gcb.js";
|
|
20
20
|
import"./server-pavzsdc6.js";
|
|
21
21
|
export {
|
|
22
22
|
MAX_QUEUED_IGNORED_NOTIFICATIONS2 as MAX_QUEUED_IGNORED_NOTIFICATIONS,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// src/config/agent-disable.ts
|
|
2
|
+
var COMPACTION_ENABLED_PATH = `compaction${"."}enabled`;
|
|
3
|
+
function isDreamerRunnable(config) {
|
|
4
|
+
return !!config.dreamer && config.dreamer.disable !== true;
|
|
5
|
+
}
|
|
6
|
+
function isSmartNoteSurfaceAvailable(config) {
|
|
7
|
+
return config.smart_notes?.enabled !== false && isDreamerRunnable(config);
|
|
8
|
+
}
|
|
9
|
+
function isCompactionEnabled(config) {
|
|
10
|
+
return config.compaction?.enabled !== false;
|
|
11
|
+
}
|
|
12
|
+
function clonePlainObject(value) {
|
|
13
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
return { ...value };
|
|
17
|
+
}
|
|
18
|
+
function migrateLegacyEnabledForAgent(args) {
|
|
19
|
+
const agent = clonePlainObject(args.patched[args.agentName]);
|
|
20
|
+
if (!agent || !("enabled" in agent))
|
|
21
|
+
return;
|
|
22
|
+
const enabled = agent.enabled;
|
|
23
|
+
const disable = agent.disable;
|
|
24
|
+
delete agent.enabled;
|
|
25
|
+
if (args.agentName === "historian") {
|
|
26
|
+
args.warnings.push('Removed invalid "historian.enabled" in-memory (run doctor to persist).');
|
|
27
|
+
args.patched.historian = agent;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (disable !== true && enabled === false) {
|
|
31
|
+
agent.disable = true;
|
|
32
|
+
args.warnings.push('Migrated "dreamer.enabled=false" → "dreamer.disable=true" in-memory (run doctor to persist). This now also disables manual /ctx-dream; for manual-only remove disable and set schedule="".');
|
|
33
|
+
}
|
|
34
|
+
args.patched.dreamer = agent;
|
|
35
|
+
}
|
|
36
|
+
function migrateLegacyAgentEnabledInMemory(rawConfig, warnings) {
|
|
37
|
+
const shouldPatch = ["dreamer", "historian"].some((key) => {
|
|
38
|
+
const agent = rawConfig[key];
|
|
39
|
+
return typeof agent === "object" && agent !== null && !Array.isArray(agent) && "enabled" in agent;
|
|
40
|
+
});
|
|
41
|
+
if (!shouldPatch)
|
|
42
|
+
return rawConfig;
|
|
43
|
+
const patched = { ...rawConfig };
|
|
44
|
+
migrateLegacyEnabledForAgent({ patched, agentName: "dreamer", warnings });
|
|
45
|
+
migrateLegacyEnabledForAgent({ patched, agentName: "historian", warnings });
|
|
46
|
+
return patched;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { COMPACTION_ENABLED_PATH, isDreamerRunnable, isSmartNoteSurfaceAvailable, isCompactionEnabled, migrateLegacyAgentEnabledInMemory };
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
StaleRouteHandleError,
|
|
7
7
|
SubcClient,
|
|
8
8
|
isConsumerReconnectTransient
|
|
9
|
-
} from "./server-
|
|
9
|
+
} from "./server-rrqpvwqd.js";
|
|
10
10
|
import {
|
|
11
11
|
getHarness2
|
|
12
12
|
} from "./server-pavzsdc6.js";
|
|
13
13
|
import {
|
|
14
14
|
getDataDir,
|
|
15
15
|
log2
|
|
16
|
-
} from "./server-
|
|
16
|
+
} from "./server-f2xf5gcb.js";
|
|
17
17
|
import {
|
|
18
18
|
inRootAsyncContext2
|
|
19
19
|
} from "./server-wafzvyhg.js";
|
|
20
20
|
import {
|
|
21
21
|
buildCanonicalChunkTextFromFts,
|
|
22
22
|
loadCompartmentChunkEmbeddingsForSearch
|
|
23
|
-
} from "./server-
|
|
23
|
+
} from "./server-vknbt0gq.js";
|
|
24
24
|
import {
|
|
25
25
|
recordEmbeddingMeasurement,
|
|
26
26
|
saveCommitEmbedding,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
enqueueShadowEmbeddingItems2,
|
|
38
38
|
getProjectEmbeddingSnapshot2,
|
|
39
39
|
embedItemsForProject2
|
|
40
|
-
} from "./server-
|
|
40
|
+
} from "./server-sz8jj92q.js";
|
|
41
41
|
import {
|
|
42
42
|
getProjectEmbeddings2
|
|
43
43
|
} from "./server-4dhv7mqz.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
isEmbeddingEnabled,
|
|
47
47
|
embedText,
|
|
48
48
|
ensureMemoryEmbeddings2
|
|
49
|
-
} from "./server-
|
|
49
|
+
} from "./server-9ewkzqgd.js";
|
|
50
50
|
import {
|
|
51
51
|
ModuleMemoryAuthorityError2,
|
|
52
52
|
getMemoriesByProject2,
|
|
@@ -61,20 +61,20 @@ import {
|
|
|
61
61
|
sanitizeFtsQuery,
|
|
62
62
|
searchMemoriesFTS,
|
|
63
63
|
searchMemoriesFTSUnion
|
|
64
|
-
} from "./server-
|
|
64
|
+
} from "./server-4c10404h.js";
|
|
65
65
|
import {
|
|
66
66
|
isRecord
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-bxpwy6fy.js";
|
|
68
68
|
import {
|
|
69
69
|
getIndexedMessageCorpusSize2
|
|
70
|
-
} from "./server-
|
|
70
|
+
} from "./server-nmrm2rjy.js";
|
|
71
71
|
import {
|
|
72
72
|
resolveWorkspaceShareCategories,
|
|
73
73
|
resolveWorkspaceIdentitySet,
|
|
74
74
|
expandWorkspaceIdentitySetWithAliases,
|
|
75
75
|
resolveStoredPathWorkspaceIdentity,
|
|
76
76
|
sourceNameForMemory
|
|
77
|
-
} from "./server-
|
|
77
|
+
} from "./server-fa75w6gp.js";
|
|
78
78
|
import {
|
|
79
79
|
isKnownAutocommit
|
|
80
80
|
} from "./server-8ajstryz.js";
|
|
@@ -2656,15 +2656,20 @@ function searchNotes(args) {
|
|
|
2656
2656
|
sourceSessionId: entry.entry.note.sessionId
|
|
2657
2657
|
}));
|
|
2658
2658
|
}
|
|
2659
|
-
function searchCompartmentChunks(args) {
|
|
2659
|
+
async function searchCompartmentChunks(args) {
|
|
2660
2660
|
if (!args.queryEmbedding || args.limit <= 0 || !args.modelId || args.modelId === "off")
|
|
2661
2661
|
return [];
|
|
2662
2662
|
const cutoff = args.maxOrdinal != null && args.maxOrdinal >= 0 ? args.maxOrdinal : null;
|
|
2663
|
-
const rows = loadCompartmentChunkEmbeddingsForSearch(args.db, args.sessionId, args.projectPath, args.modelId, args.dateRange);
|
|
2663
|
+
const rows = await loadCompartmentChunkEmbeddingsForSearch(args.db, args.sessionId, args.projectPath, args.modelId, args.dateRange);
|
|
2664
2664
|
if (rows.length === 0)
|
|
2665
2665
|
return [];
|
|
2666
2666
|
const byCompartment = new Map;
|
|
2667
|
+
let sliceStarted = performance.now();
|
|
2667
2668
|
for (const row of rows) {
|
|
2669
|
+
if (performance.now() - sliceStarted >= 4) {
|
|
2670
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
2671
|
+
sliceStarted = performance.now();
|
|
2672
|
+
}
|
|
2668
2673
|
if (cutoff !== null && row.endOrdinal > cutoff) {
|
|
2669
2674
|
continue;
|
|
2670
2675
|
}
|
|
@@ -3020,7 +3025,7 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
|
|
|
3020
3025
|
const workspace = resolveSearchWorkspaceContext(db, projectPath);
|
|
3021
3026
|
const embeddingModelId = queryContract?.modelId ?? options.embeddingModelIdOverride ?? embeddingSnapshot?.modelId;
|
|
3022
3027
|
const chunkModelId = queryContract?.chunkModelId ?? options.chunkModelIdOverride ?? embeddingSnapshot?.chunkModelId;
|
|
3023
|
-
const compartmentResults = runCompartmentChunks ? searchCompartmentChunks({
|
|
3028
|
+
const compartmentResults = runCompartmentChunks ? await searchCompartmentChunks({
|
|
3024
3029
|
db,
|
|
3025
3030
|
sessionId,
|
|
3026
3031
|
projectPath,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_LOCAL_EMBEDDING_MODEL
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-th4y11y7.js";
|
|
4
4
|
import {
|
|
5
5
|
getHarness2
|
|
6
6
|
} from "./server-pavzsdc6.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
getMagicContextStorageDir,
|
|
9
9
|
importPluginModule,
|
|
10
10
|
log2
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-f2xf5gcb.js";
|
|
12
12
|
import {
|
|
13
13
|
getSynapseLaneIdentity
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-rrqpvwqd.js";
|
|
15
15
|
import {
|
|
16
16
|
inRootAsyncContext2
|
|
17
17
|
} from "./server-wafzvyhg.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log2
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-f2xf5gcb.js";
|
|
4
4
|
import {
|
|
5
5
|
setOutputReserveConfig
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-kn9n2qgd.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
|
|
9
9
|
PROTECTED_TOKENS_MIN,
|
|
@@ -11,15 +11,19 @@ import {
|
|
|
11
11
|
PER_HARNESS_MODEL_KEYS,
|
|
12
12
|
ConfigProfilesSchema,
|
|
13
13
|
MagicContextConfigSchema
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-th4y11y7.js";
|
|
15
|
+
import {
|
|
16
|
+
isCompactionEnabled,
|
|
17
|
+
migrateLegacyAgentEnabledInMemory
|
|
18
|
+
} from "./server-0s95v3en.js";
|
|
15
19
|
|
|
16
20
|
// src/config/index.ts
|
|
17
21
|
import { existsSync as existsSync4 } from "node:fs";
|
|
18
22
|
|
|
19
23
|
// src/shared/builtin-commands.ts
|
|
20
|
-
var
|
|
24
|
+
var COMPACTION_ENABLED_PATH = `compaction${".enabled"}`;
|
|
21
25
|
function getMagicContextBuiltinCommands(compactionEnabled = true) {
|
|
22
|
-
const unavailableInCompactionOff = (command) => `Unavailable when ${
|
|
26
|
+
const unavailableInCompactionOff = (command) => `Unavailable when ${COMPACTION_ENABLED_PATH} is false: /${command} manages compacted history.`;
|
|
23
27
|
return {
|
|
24
28
|
"ctx-status": {
|
|
25
29
|
template: "ctx-status",
|
|
@@ -1638,51 +1642,6 @@ function detectConfigFile(basePath) {
|
|
|
1638
1642
|
return { format: "none", path: jsoncPath };
|
|
1639
1643
|
}
|
|
1640
1644
|
|
|
1641
|
-
// src/config/agent-disable.ts
|
|
1642
|
-
var COMPACTION_ENABLED_PATH = `compaction${"."}enabled`;
|
|
1643
|
-
function isDreamerRunnable(config) {
|
|
1644
|
-
return !!config.dreamer && config.dreamer.disable !== true;
|
|
1645
|
-
}
|
|
1646
|
-
function isCompactionEnabled(config) {
|
|
1647
|
-
return config.compaction?.enabled !== false;
|
|
1648
|
-
}
|
|
1649
|
-
function clonePlainObject(value) {
|
|
1650
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
1651
|
-
return;
|
|
1652
|
-
}
|
|
1653
|
-
return { ...value };
|
|
1654
|
-
}
|
|
1655
|
-
function migrateLegacyEnabledForAgent(args) {
|
|
1656
|
-
const agent = clonePlainObject(args.patched[args.agentName]);
|
|
1657
|
-
if (!agent || !("enabled" in agent))
|
|
1658
|
-
return;
|
|
1659
|
-
const enabled = agent.enabled;
|
|
1660
|
-
const disable = agent.disable;
|
|
1661
|
-
delete agent.enabled;
|
|
1662
|
-
if (args.agentName === "historian") {
|
|
1663
|
-
args.warnings.push('Removed invalid "historian.enabled" in-memory (run doctor to persist).');
|
|
1664
|
-
args.patched.historian = agent;
|
|
1665
|
-
return;
|
|
1666
|
-
}
|
|
1667
|
-
if (disable !== true && enabled === false) {
|
|
1668
|
-
agent.disable = true;
|
|
1669
|
-
args.warnings.push('Migrated "dreamer.enabled=false" → "dreamer.disable=true" in-memory (run doctor to persist). This now also disables manual /ctx-dream; for manual-only remove disable and set schedule="".');
|
|
1670
|
-
}
|
|
1671
|
-
args.patched.dreamer = agent;
|
|
1672
|
-
}
|
|
1673
|
-
function migrateLegacyAgentEnabledInMemory(rawConfig, warnings) {
|
|
1674
|
-
const shouldPatch = ["dreamer", "historian"].some((key) => {
|
|
1675
|
-
const agent = rawConfig[key];
|
|
1676
|
-
return typeof agent === "object" && agent !== null && !Array.isArray(agent) && "enabled" in agent;
|
|
1677
|
-
});
|
|
1678
|
-
if (!shouldPatch)
|
|
1679
|
-
return rawConfig;
|
|
1680
|
-
const patched = { ...rawConfig };
|
|
1681
|
-
migrateLegacyEnabledForAgent({ patched, agentName: "dreamer", warnings });
|
|
1682
|
-
migrateLegacyEnabledForAgent({ patched, agentName: "historian", warnings });
|
|
1683
|
-
return patched;
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
1645
|
// src/config/deprecated-config.ts
|
|
1687
1646
|
var MURAL_MODEL_DEPRECATION_WARNING = "mural.model is deprecated and ignored; compress-cues now uses the dreamer model for each harness, like every other dreamer task. To override it, set dreamer.opencode.tasks.compress-cues.model (or the pi/omp equivalent). This key no longer does anything; remove it.";
|
|
1688
1647
|
var WINDOW_OVERLAY_PATH_DEPRECATION_WARNING = "models.window_overlay_path is deprecated and ignored; Fusiform no longer publishes window-overlay data, so this setting no longer changes model window geometry. Remove this key.";
|
|
@@ -3884,4 +3843,4 @@ function loadPluginConfigDetailed(directory, applyRuntimeGlobals = true) {
|
|
|
3884
3843
|
};
|
|
3885
3844
|
}
|
|
3886
3845
|
|
|
3887
|
-
export { getMagicContextBuiltinCommands, parseJsoncRecovering, readJsoncFile, detectConfigFile,
|
|
3846
|
+
export { getMagicContextBuiltinCommands, parseJsoncRecovering, readJsoncFile, detectConfigFile, cortexKitUserConfigBasePath, cortexKitProjectConfigBasePath, resolveLegacyConfigSources, resolveLegacyConfigSourcesForHarness, getProtectedTokensTierOverrides, loadPluginConfigDetailed };
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
sanitizeDiagnosticText,
|
|
13
13
|
sessionLog2
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-f2xf5gcb.js";
|
|
15
15
|
import {
|
|
16
16
|
managedAuthorityNoteRow
|
|
17
|
-
} from "./server-
|
|
17
|
+
} from "./server-fa75w6gp.js";
|
|
18
18
|
import {
|
|
19
19
|
embedTextForProject2
|
|
20
|
-
} from "./server-
|
|
20
|
+
} from "./server-sz8jj92q.js";
|
|
21
21
|
import {
|
|
22
22
|
saveEmbeddingIfHashMatches
|
|
23
23
|
} from "./server-4dhv7mqz.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
bootQuietRemainingMs,
|
|
14
14
|
scheduleAfterBootQuiet
|
|
15
|
-
} from "./server-
|
|
15
|
+
} from "./server-gvkm8xaj.js";
|
|
16
16
|
import {
|
|
17
17
|
getHarness2,
|
|
18
18
|
harnessOwnsOpenCodeStore2
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
importPluginModule,
|
|
25
25
|
writeForwardedLogLine2,
|
|
26
26
|
log2
|
|
27
|
-
} from "./server-
|
|
27
|
+
} from "./server-f2xf5gcb.js";
|
|
28
28
|
import {
|
|
29
29
|
isOwnRpcServerRecord,
|
|
30
30
|
isPidAlive,
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
parseRpcPortFile,
|
|
36
36
|
inspectProcessesAsync,
|
|
37
37
|
inspectWindowsProcessesSync
|
|
38
|
-
} from "./server-
|
|
38
|
+
} from "./server-da07v4xp.js";
|
|
39
39
|
import {
|
|
40
40
|
configureContextDatabasePragmas2
|
|
41
41
|
} from "./server-fb3zxn06.js";
|
|
42
42
|
import {
|
|
43
43
|
startMessageFtsRowidMapBackfill
|
|
44
|
-
} from "./server-
|
|
44
|
+
} from "./server-yrvqaswb.js";
|
|
45
45
|
import {
|
|
46
46
|
LKG_SLOT_CHUNKS_DDL,
|
|
47
47
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -51,12 +51,12 @@ import {
|
|
|
51
51
|
hasPendingMigrations,
|
|
52
52
|
getMainThreadMigrationBodyCount,
|
|
53
53
|
runMigrations
|
|
54
|
-
} from "./server-
|
|
54
|
+
} from "./server-fa75w6gp.js";
|
|
55
55
|
import {
|
|
56
56
|
ensureColumn,
|
|
57
57
|
installV95PerfSchema,
|
|
58
58
|
installTagIdentityRevisionTrigger
|
|
59
|
-
} from "./server-
|
|
59
|
+
} from "./server-pwv4ezb0.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveOpenCodeDbPath,
|
|
62
62
|
hasV1MessageTables
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
import {
|
|
65
65
|
setDatabase,
|
|
66
66
|
loadToolDefinitionMeasurements
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-zs8d0s3b.js";
|
|
68
68
|
import {
|
|
69
69
|
getErrorMessage
|
|
70
70
|
} from "./server-y8v6yerm.js";
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
} from "./server-8ajstryz.js";
|
|
82
82
|
import {
|
|
83
83
|
logSlowWriteTransaction
|
|
84
|
-
} from "./server-
|
|
84
|
+
} from "./server-6pmqg9m4.js";
|
|
85
85
|
|
|
86
86
|
// src/features/magic-context/storage-db.ts
|
|
87
87
|
import {
|
|
@@ -809,6 +809,9 @@ function isFileBackedPath(dbPath) {
|
|
|
809
809
|
const trimmed = dbPath.trim();
|
|
810
810
|
return trimmed !== "" && trimmed !== ":memory:" && !trimmed.startsWith("file:");
|
|
811
811
|
}
|
|
812
|
+
function getDatabasePath(db) {
|
|
813
|
+
return pathByDatabase.get(db) ?? null;
|
|
814
|
+
}
|
|
812
815
|
function migrateLegacyStorageIfNeeded(targetDbPath, targetDbDir) {
|
|
813
816
|
if (existsSync2(targetDbPath))
|
|
814
817
|
return;
|
|
@@ -1209,8 +1212,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1209
1212
|
startMessageFtsRowidMapBackfill(db).then(async () => {
|
|
1210
1213
|
if (!readsOpenCodeStore)
|
|
1211
1214
|
return;
|
|
1212
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1213
|
-
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-
|
|
1215
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-hr3w5bjk.js"));
|
|
1216
|
+
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-bsteyc4d.js"));
|
|
1214
1217
|
await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
|
|
1215
1218
|
readPage: readRawSessionMessagePage
|
|
1216
1219
|
}));
|
|
@@ -2701,4 +2704,4 @@ function getDatabasePersistenceError(db) {
|
|
|
2701
2704
|
return persistenceErrorByDatabase.get(db) ?? null;
|
|
2702
2705
|
}
|
|
2703
2706
|
|
|
2704
|
-
export { FAIL_CLOSED_DOCTOR_COMMAND, formatFailClosedBlockingMessage, formatFailClosedBlockingSummary, createFailClosedBlockingError, isFailClosedBlockingError, shouldBypassFailClosedBlock, resolveAgentNameFromMessages, startBootDeadline, getUnconfirmedMigrationHolders, getSchemaFenceRejection, getMigrationOnOpenRefusal, LATEST_SUPPORTED_VERSION, BOOT_SQLITE_BUSY_TIMEOUT_MS, getPersistedSchemaVersion, setSqlitePragmaConfig, runSqliteOptimize, initializeDatabase, openDatabase, openCurrentDatabase, openDatabaseAsync, isDatabasePersisted, getDatabasePersistenceError };
|
|
2707
|
+
export { FAIL_CLOSED_DOCTOR_COMMAND, formatFailClosedBlockingMessage, formatFailClosedBlockingSummary, createFailClosedBlockingError, isFailClosedBlockingError, shouldBypassFailClosedBlock, resolveAgentNameFromMessages, startBootDeadline, getUnconfirmedMigrationHolders, getSchemaFenceRejection, getMigrationOnOpenRefusal, LATEST_SUPPORTED_VERSION, BOOT_SQLITE_BUSY_TIMEOUT_MS, getDatabasePath, getPersistedSchemaVersion, setSqlitePragmaConfig, runSqliteOptimize, initializeDatabase, openDatabase, openCurrentDatabase, openDatabaseAsync, isDatabasePersisted, getDatabasePersistenceError };
|