@cortexkit/opencode-magic-context 0.49.33 → 0.49.35
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 +11 -6
- package/dist/chunk-embedding-write-worker.js +16 -14
- package/dist/{compaction-marker-candidates-31h86ph0.js → compaction-marker-candidates-g0p67ced.js} +3 -2
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-5q5gj67r.js → compartment-chunk-embedding-y4136are.js} +8 -7
- package/dist/{conflict-warning-hook-xgskea1v.js → conflict-warning-hook-hhw8z5ak.js} +9 -8
- package/dist/{context-jyzkstnr.js → context-fk8e3h9p.js} +1400 -701
- package/dist/{derive-budgets-pqybnx09.js → derive-budgets-htj16n4x.js} +3 -2
- package/dist/embedding-backfill-q6n72sy0.js +27 -0
- package/dist/embedding-worker-process.js +2 -1
- package/dist/embedding-worker.js +5 -4
- package/dist/expand-attachments-h33jbgyz.js +21 -0
- package/dist/features/magic-context/auto-search-diagnostics.d.ts +21 -0
- package/dist/features/magic-context/auto-search-diagnostics.d.ts.map +1 -0
- package/dist/features/magic-context/compaction-marker.d.ts +22 -6
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts +4 -0
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +7 -0
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/store-generation-rebase-labels.d.ts +6 -0
- package/dist/features/magic-context/store-generation-rebase-labels.d.ts.map +1 -0
- package/dist/features/magic-context/store-generation-rebase.d.ts.map +1 -1
- package/dist/{history-owner-36wp3mkb.js → history-owner-0z620wgz.js} +3 -2
- package/dist/hooks/magic-context/apply-operations.d.ts +20 -3
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-observation.d.ts +13 -0
- package/dist/hooks/magic-context/auto-search-observation.d.ts.map +1 -0
- package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts +5 -1
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts +5 -5
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-publication.d.ts +9 -0
- package/dist/hooks/magic-context/compaction-marker-publication.d.ts.map +1 -0
- package/dist/hooks/magic-context/compartment-commit-hashes.d.ts +4 -0
- package/dist/hooks/magic-context/compartment-commit-hashes.d.ts.map +1 -0
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts +1 -0
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
- package/dist/hooks/magic-context/final-wire-completeness.d.ts +15 -0
- package/dist/hooks/magic-context/final-wire-completeness.d.ts.map +1 -0
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts +1 -0
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts +11 -0
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-formatting.d.ts +2 -0
- package/dist/hooks/magic-context/read-session-formatting.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/{index-as2amvn3.js → index-0c7p8mq5.js} +6 -531
- package/dist/{index-51rdvtkz.js → index-1rhgxqs8.js} +2 -2
- package/dist/index-2amn2s73.js +123 -0
- package/dist/{index-c7phnbvk.js → index-2p37txes.js} +1 -1
- package/dist/index-2qbtqg1w.js +529 -0
- package/dist/{index-waktfbjy.js → index-2v6nvy3k.js} +4 -4
- package/dist/{index-dq5xzeb9.js → index-3d3872c6.js} +7 -5
- package/dist/{index-qr2mb02j.js → index-3j9t1v4n.js} +55 -21
- package/dist/{index-2xh37qn5.js → index-4bgk5ztz.js} +576 -5524
- package/dist/{index-b88dwwrh.js → index-4xyjr62e.js} +1 -1
- package/dist/index-66a50f3e.js +777 -0
- package/dist/{index-94ef0qe2.js → index-87ctnzz9.js} +33 -5
- package/dist/{index-xrnsygfq.js → index-9wnbnx8f.js} +1 -1
- package/dist/{index-3fkk2gwj.js → index-b6xz3qbe.js} +246 -420
- package/dist/{index-0fe4q77z.js → index-brg2w6qc.js} +146 -134
- package/dist/{index-spwjbkc7.js → index-dnqqqc5f.js} +1 -1
- package/dist/index-dy7w6wm4.js +194 -0
- package/dist/{index-3jmx3fae.js → index-ezv6dz3y.js} +37 -7
- package/dist/index-f297z1n8.js +4557 -0
- package/dist/{index-qgh1qwjj.js → index-f9b3vtt1.js} +1 -1
- package/dist/{index-v15ne3a3.js → index-faxb7mck.js} +2 -2
- package/dist/{index-rrv26qjz.js → index-fw42ms3m.js} +1 -1
- package/dist/{index-t5pck3ss.js → index-fxbk7gk3.js} +1 -1
- package/dist/{index-wfybj1dw.js → index-g4t7850m.js} +2 -2
- package/dist/{index-hbt0sbv2.js → index-gyaa159j.js} +18 -276
- package/dist/{index-4pnsgvfk.js → index-hacf2tyx.js} +1 -1
- package/dist/{index-s1n8dd2n.js → index-jkanybgq.js} +2 -2
- package/dist/{index-2743x98y.js → index-jn0ddrhp.js} +29 -138
- package/dist/{index-h7tgn49j.js → index-jrfre9ah.js} +5 -222
- package/dist/{index-kfyb3k6n.js → index-jz5bk7xd.js} +2 -2
- package/dist/{index-np3rgfw4.js → index-ksv0a31x.js} +3 -3
- package/dist/{index-7kkphb6c.js → index-nj360hcs.js} +4 -4
- package/dist/{index-gkee6p4g.js → index-p56dszfp.js} +3 -3
- package/dist/{index-4s4zq97n.js → index-pq0dpwrc.js} +4 -4
- package/dist/{index-rfxzazzy.js → index-pswsyf1w.js} +4 -4
- package/dist/{index-y1qwzvxn.js → index-pztqab6k.js} +2 -2
- package/dist/{index-rverk2vz.js → index-qncw9hey.js} +1 -1
- package/dist/index-qx8j6kds.js +270 -0
- package/dist/{index-kq5w68dp.js → index-txs8tce6.js} +1 -1
- package/dist/index-vzhhr1ht.js +532 -0
- package/dist/index-wh9fxds5.js +265 -0
- package/dist/{index-b7w46fp2.js → index-x2mrq5xv.js} +170 -48
- package/dist/{index-43vqx0za.js → index-xwwsbsd3.js} +15 -13
- package/dist/index-z4p0ry94.js +222 -0
- package/dist/index-z9zygwse.js +89 -0
- package/dist/{index-v7287tzq.js → index-zhqwda72.js} +19 -8
- package/dist/index.js +83 -72
- package/dist/{logger-94kew5wm.js → logger-qwnbcfj9.js} +2 -1
- package/dist/{message-fts-rowid-map-va36knh4.js → message-fts-rowid-map-xg7hr0mk.js} +5 -4
- package/dist/{message-index-bounded-zq7a5nm6.js → message-index-bounded-narw7bnz.js} +12 -11
- package/dist/{message-time-backfill-4qva0b4f.js → message-time-backfill-39bm498k.js} +3 -2
- package/dist/migration-worker.js +13 -11
- package/dist/{project-embedding-registry-6yex0r9f.js → project-embedding-registry-tdz7985n.js} +13 -11
- package/dist/raw-ordinal-warmup-worker.js +12 -7
- package/dist/{read-session-chunk-1ndphmb8.js → read-session-chunk-vmg1zjg0.js} +15 -10
- package/dist/{read-session-raw-b2sd67v4.js → read-session-raw-mncmzbm9.js} +3 -2
- package/dist/recomp-orchestrator-qyyhnc9b.js +68 -0
- package/dist/render-c5p0k846.js +43 -0
- package/dist/{safe-notification-target-mkr9yzvr.js → safe-notification-target-wztd7bgk.js} +3 -2
- package/dist/{search-archive-sr07c6aj.js → search-archive-0ny7p3bw.js} +13 -11
- package/dist/{search-040pac3a.js → search-f6hwvcxk.js} +26 -23
- package/dist/{send-session-notification-vz86nt79.js → send-session-notification-0gwcz3fw.js} +7 -6
- package/dist/{storage-tags-6hvkk01c.js → storage-tags-zx1023km.js} +5 -4
- package/dist/store-620rjzt9.js +21 -0
- package/dist/store-reader-yh19h38c.js +14 -0
- package/dist/tools/ctx-expand/render.d.ts +5 -3
- package/dist/tools/ctx-expand/render.d.ts.map +1 -1
- package/dist/tools/ctx-expand/search-archive.d.ts.map +1 -1
- package/dist/tools/ctx-expand/tools.d.ts +2 -0
- package/dist/tools/ctx-expand/tools.d.ts.map +1 -1
- package/dist/tools/ctx-expand/v2-archive-reader.d.ts +33 -0
- package/dist/tools/ctx-expand/v2-archive-reader.d.ts.map +1 -0
- package/dist/{transform-postprocess-phase-zx1peqma.js → transform-postprocess-phase-807ff6t2.js} +36 -30
- package/dist/v2/auto-search-worker.js +11 -6
- package/dist/v2/chunk-embedding-write-worker.js +16 -14
- package/dist/v2/{compaction-marker-candidates-m4vmye3w.js → compaction-marker-candidates-t1aq6gsj.js} +3 -2
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{compartment-chunk-embedding-rc31e6md.js → compartment-chunk-embedding-ncsk0r9e.js} +8 -7
- package/dist/v2/{context-3c4z2wj5.js → context-znqfkap4.js} +1725 -1095
- package/dist/v2/{derive-budgets-knf763tt.js → derive-budgets-sa0v7bz0.js} +4 -3
- package/dist/v2/embedding-backfill-11j425e0.js +26 -0
- package/dist/v2/embedding-worker-process.js +2 -1
- package/dist/v2/embedding-worker.js +5 -4
- package/dist/v2/expand-attachments-h33jbgyz.js +21 -0
- package/dist/v2/fold/idle.d.ts +15 -0
- package/dist/v2/fold/idle.d.ts.map +1 -0
- package/dist/v2/fold/native-replay-v3.d.ts +68 -0
- package/dist/v2/fold/native-replay-v3.d.ts.map +1 -0
- package/dist/v2/fold/native-replay.d.ts +58 -2
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/fold/policy.d.ts +2 -1
- package/dist/v2/fold/policy.d.ts.map +1 -1
- package/dist/v2/{history-owner-ad0crnrn.js → history-owner-fpka43cn.js} +3 -2
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/expand-attachments.d.ts +8 -0
- package/dist/v2/hooks/expand-attachments.d.ts.map +1 -0
- package/dist/v2/hooks/overflow-recovery.d.ts +45 -0
- package/dist/v2/hooks/overflow-recovery.d.ts.map +1 -0
- package/dist/v2/hooks/store.d.ts +7 -2
- package/dist/v2/hooks/store.d.ts.map +1 -1
- package/dist/v2/{logger-p34mjtja.js → logger-4cj6d03m.js} +2 -1
- package/dist/v2/{message-fts-rowid-map-78awh03v.js → message-fts-rowid-map-rmk571mb.js} +5 -4
- package/dist/v2/{message-index-bounded-jvgz7vk9.js → message-index-bounded-620bppw7.js} +12 -11
- package/dist/v2/{message-time-backfill-zvthw6xb.js → message-time-backfill-0c4h7sg6.js} +3 -2
- package/dist/v2/migration-worker.js +13 -11
- package/dist/v2/ordinal-range.fixture.d.ts +7 -0
- package/dist/v2/ordinal-range.fixture.d.ts.map +1 -0
- package/dist/v2/{project-embedding-registry-1x5qe2fy.js → project-embedding-registry-bm5fe1a8.js} +13 -11
- package/dist/v2/raw-ordinal-warmup-worker.js +12 -7
- package/dist/v2/{read-session-chunk-djzgm4jg.js → read-session-chunk-qfwv1k71.js} +15 -10
- package/dist/v2/{read-session-raw-5x088amc.js → read-session-raw-q294t8xs.js} +3 -2
- package/dist/v2/recomp-orchestrator-fcnjref7.js +67 -0
- package/dist/v2/render-98a1qv0b.js +42 -0
- package/dist/v2/{safe-notification-target-khnzg57c.js → safe-notification-target-gphhast7.js} +3 -2
- package/dist/v2/{search-archive-n3dhns4r.js → search-archive-r0y1bafr.js} +13 -11
- package/dist/v2/{search-q3wkpe8t.js → search-z1zqzsmh.js} +25 -22
- package/dist/v2/{send-session-notification-x5nzy34v.js → send-session-notification-fst6hkg7.js} +7 -6
- package/dist/v2/{server-rb8m4vry.js → server-1xesqm5h.js} +146 -134
- package/dist/v2/server-2amn2s73.js +123 -0
- package/dist/v2/{server-6g98c227.js → server-3schkz95.js} +4 -4
- package/dist/v2/server-468mya5v.js +209 -0
- package/dist/v2/server-55v5hpth.js +270 -0
- package/dist/v2/server-5jp38p98.js +532 -0
- package/dist/v2/{server-qjvk4a9t.js → server-69m30b21.js} +1 -1
- package/dist/v2/{server-d01pe8q5.js → server-7ccxt4nq.js} +14 -216
- package/dist/v2/{server-3mz2qh5a.js → server-969cdpmg.js} +1 -1
- package/dist/v2/{server-835q39kd.js → server-9k0mjef7.js} +2 -2
- package/dist/v2/{server-qc915kw2.js → server-bez34e60.js} +4 -4
- package/dist/v2/{server-nxas8v1d.js → server-bpvsvtph.js} +3 -3
- package/dist/v2/{server-ab8017gw.js → server-bxpz2dcn.js} +29 -138
- package/dist/v2/{server-bsgd4dk1.js → server-dcws5831.js} +2 -2
- package/dist/v2/server-ef1mskas.js +777 -0
- package/dist/v2/{server-1bw1wcbp.js → server-f0j864ma.js} +1 -1
- package/dist/v2/{server-aqbm9c8d.js → server-fqj6ddpr.js} +632 -5540
- package/dist/v2/{server-rr4cbkr0.js → server-hnknwaz8.js} +37 -7
- package/dist/v2/{server-h1byrhwx.js → server-hsf0qsn5.js} +19 -8
- package/dist/v2/{server-6495nmn9.js → server-jb6tjyeb.js} +5 -222
- package/dist/v2/{server-2aasmpsp.js → server-kkxzwa6w.js} +4 -4
- package/dist/v2/{server-a7x00tw8.js → server-mfn1yf9d.js} +1 -1
- package/dist/v2/{server-tkdabx8q.js → server-q0z2q2dx.js} +5 -530
- package/dist/v2/{server-n14edf07.js → server-qa74bj91.js} +77 -17
- package/dist/v2/server-qf2kzsh2.js +4513 -0
- package/dist/v2/{server-gyy4k6mf.js → server-qmmkhz2z.js} +1 -1
- package/dist/v2/{server-29qp8nz4.js → server-qxzbmtqt.js} +1 -1
- package/dist/v2/{server-hwag0khr.js → server-r3chnxs5.js} +4 -4
- package/dist/v2/{server-vr4szghm.js → server-rktnzs89.js} +2 -2
- package/dist/v2/{server-6vd2n183.js → server-s9xgyyj9.js} +1 -1
- package/dist/v2/{server-53eh1r8r.js → server-sd8hvzte.js} +2 -2
- package/dist/v2/{server-k3t06fxr.js → server-sefxj8k1.js} +1 -1
- package/dist/v2/{server-v77xa5wj.js → server-tpt7bwq8.js} +1 -1
- package/dist/v2/{server-awr8qa4c.js → server-ws5exe6q.js} +2 -2
- package/dist/v2/server-x4m6xcn4.js +194 -0
- package/dist/v2/{server-806rzhs6.js → server-xbtw0p9t.js} +1 -1
- package/dist/v2/{server-cqjvxyrp.js → server-xy7w7hrd.js} +2 -2
- package/dist/v2/server-ypf1ap0v.js +529 -0
- package/dist/v2/server-z4p0ry94.js +222 -0
- package/dist/v2/server-z9zygwse.js +89 -0
- package/dist/v2/{server-ab1g0wn9.js → server-zzgtgqmd.js} +2 -2
- package/dist/v2/server.js +6 -5
- package/dist/v2/{storage-tags-18nbaanf.js → storage-tags-19s0ebf0.js} +5 -4
- package/dist/v2/store-reader-cgx47zkp.js +14 -0
- package/dist/v2/store-reader.d.ts +9 -2
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/store-vdm8v3jd.js +21 -0
- package/dist/v2/v2-archive-reader-t2c0eypn.js +11 -0
- package/dist/v2/{wrapup-orchestrator-ga5vfmwr.js → wrapup-orchestrator-aqpqsveg.js} +46 -39
- package/dist/v2-archive-reader-tm2eayp2.js +11 -0
- package/dist/wrapup-orchestrator-k5yp19a6.js +55 -0
- package/package.json +1 -1
- package/src/shared/sqlite-transaction-mode-guard.test.ts +4 -0
- package/dist/embedding-backfill-0jgtqxen.js +0 -25
- package/dist/recomp-orchestrator-skqzzvby.js +0 -62
- package/dist/v2/embedding-backfill-f43hd8y6.js +0 -24
- package/dist/v2/recomp-orchestrator-qfqdvbta.js +0 -61
- package/dist/wrapup-orchestrator-dy8r3gp8.js +0 -49
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
detectOverflow,
|
|
29
29
|
isAnthropicFamilyRoute,
|
|
30
30
|
readRawSessionMessages2
|
|
31
|
-
} from "./index-
|
|
31
|
+
} from "./index-brg2w6qc.js";
|
|
32
32
|
import {
|
|
33
33
|
setHarness2
|
|
34
34
|
} from "./index-pavzsdc6.js";
|
|
@@ -38,13 +38,14 @@ import {
|
|
|
38
38
|
isMagicContextStorageOutsideEngram,
|
|
39
39
|
claimStorageBackupWarningCheck
|
|
40
40
|
} from "./index-g2q4htwp.js";
|
|
41
|
+
import"./index-z4p0ry94.js";
|
|
41
42
|
import {
|
|
42
43
|
registerStalePluginBuildHost,
|
|
43
44
|
importPluginModule,
|
|
44
45
|
log2,
|
|
45
46
|
sessionLog2,
|
|
46
47
|
flushLogger2
|
|
47
|
-
} from "./index-
|
|
48
|
+
} from "./index-jrfre9ah.js";
|
|
48
49
|
import {
|
|
49
50
|
withContentLanguageDirective,
|
|
50
51
|
string,
|
|
@@ -72,25 +73,9 @@ import {
|
|
|
72
73
|
dreamerRunConfig,
|
|
73
74
|
pluginConfigReader,
|
|
74
75
|
createDreamerOutputCapSampler,
|
|
75
|
-
observeSessionActivity,
|
|
76
|
-
backfillSessionActivity,
|
|
77
76
|
COMPARTMENT_AGENT_SYSTEM_PROMPT,
|
|
78
77
|
HISTORIAN_EDITOR_SYSTEM_PROMPT,
|
|
79
78
|
COMPARTMENT_STRUCTURAL_SYSTEM_PROMPT,
|
|
80
|
-
providerResponseFailed,
|
|
81
|
-
isSuccessfulProviderCompletion,
|
|
82
|
-
forgetUnpublishedAutoSearchNoHint,
|
|
83
|
-
getOrCreateSessionMeta,
|
|
84
|
-
updateSessionMeta,
|
|
85
|
-
markSessionCleanupPending,
|
|
86
|
-
clearSession,
|
|
87
|
-
requestPendingMaterialization,
|
|
88
|
-
lkgProviderInputTotal,
|
|
89
|
-
noteLkgProviderResponse,
|
|
90
|
-
clearLkgMeasuredRequest,
|
|
91
|
-
createDbLkgPersistence,
|
|
92
|
-
registerLkgPersistence,
|
|
93
|
-
dropSlot,
|
|
94
79
|
recordPromptSessionError,
|
|
95
80
|
CTX_NOTE_LIGHT_DESCRIPTION,
|
|
96
81
|
createPromptSurfaceRuntime,
|
|
@@ -99,7 +84,7 @@ import {
|
|
|
99
84
|
checkCompactionMarkerConsistency,
|
|
100
85
|
clearInjectionCache,
|
|
101
86
|
clearNoteNudgeTriggerOnly
|
|
102
|
-
} from "./index-
|
|
87
|
+
} from "./index-4bgk5ztz.js";
|
|
103
88
|
import"./index-sd3egckz.js";
|
|
104
89
|
import {
|
|
105
90
|
hasTrustedAbsoluteWall,
|
|
@@ -109,7 +94,7 @@ import {
|
|
|
109
94
|
deriveHistorianChunkTokens2,
|
|
110
95
|
resolveKnownHistorianContextLimit2,
|
|
111
96
|
resolveHistorianContextLimit2
|
|
112
|
-
} from "./index-
|
|
97
|
+
} from "./index-dnqqqc5f.js";
|
|
113
98
|
import {
|
|
114
99
|
buildDreamTaskRuntimeConfigs2,
|
|
115
100
|
userMemoryCollectionEnabled2,
|
|
@@ -186,7 +171,7 @@ import {
|
|
|
186
171
|
parameterDescriptionsFor,
|
|
187
172
|
MagicContextRpcServer,
|
|
188
173
|
applyHiddenSubagentTemperature
|
|
189
|
-
} from "./index-
|
|
174
|
+
} from "./index-b6xz3qbe.js";
|
|
190
175
|
import {
|
|
191
176
|
resolveOpenCodeDbPath,
|
|
192
177
|
openCodeDbPathExists,
|
|
@@ -201,16 +186,8 @@ import {
|
|
|
201
186
|
createFailClosedController,
|
|
202
187
|
recordHookInitFailure,
|
|
203
188
|
clearHookInitFailure,
|
|
204
|
-
getLastHookInitFailure
|
|
205
|
-
|
|
206
|
-
getSchemaFenceRejection,
|
|
207
|
-
setSqlitePragmaConfig,
|
|
208
|
-
openDatabase,
|
|
209
|
-
openCurrentDatabase,
|
|
210
|
-
openDatabaseAsync,
|
|
211
|
-
isDatabasePersisted,
|
|
212
|
-
getDatabasePersistenceError
|
|
213
|
-
} from "./index-hbt0sbv2.js";
|
|
189
|
+
getLastHookInitFailure
|
|
190
|
+
} from "./index-wh9fxds5.js";
|
|
214
191
|
import {
|
|
215
192
|
setHomeProjectPermission,
|
|
216
193
|
ProjectIdentityError,
|
|
@@ -221,15 +198,43 @@ import {
|
|
|
221
198
|
beginBootQuietPeriod,
|
|
222
199
|
bootQuietRemainingMs,
|
|
223
200
|
scheduleAfterBootQuiet
|
|
224
|
-
} from "./index-
|
|
201
|
+
} from "./index-txs8tce6.js";
|
|
225
202
|
import {
|
|
226
203
|
deleteTemporalDecision
|
|
227
|
-
} from "./index-
|
|
204
|
+
} from "./index-9wnbnx8f.js";
|
|
205
|
+
import {
|
|
206
|
+
observeSessionActivity,
|
|
207
|
+
backfillSessionActivity,
|
|
208
|
+
providerResponseFailed,
|
|
209
|
+
isSuccessfulProviderCompletion,
|
|
210
|
+
forgetUnpublishedAutoSearchNoHint,
|
|
211
|
+
getOrCreateSessionMeta,
|
|
212
|
+
updateSessionMeta,
|
|
213
|
+
markSessionCleanupPending,
|
|
214
|
+
clearSession,
|
|
215
|
+
requestPendingMaterialization,
|
|
216
|
+
lkgProviderInputTotal,
|
|
217
|
+
noteLkgProviderResponse,
|
|
218
|
+
clearLkgMeasuredRequest,
|
|
219
|
+
createDbLkgPersistence,
|
|
220
|
+
registerLkgPersistence,
|
|
221
|
+
dropSlot
|
|
222
|
+
} from "./index-f297z1n8.js";
|
|
228
223
|
import {
|
|
229
224
|
recordSessionProjectIdentity
|
|
230
|
-
} from "./index-
|
|
231
|
-
import"./index-
|
|
225
|
+
} from "./index-jz5bk7xd.js";
|
|
226
|
+
import"./index-2p37txes.js";
|
|
232
227
|
import"./index-fb3zxn06.js";
|
|
228
|
+
import {
|
|
229
|
+
startBootDeadline,
|
|
230
|
+
getSchemaFenceRejection,
|
|
231
|
+
setSqlitePragmaConfig,
|
|
232
|
+
openDatabase,
|
|
233
|
+
openCurrentDatabase,
|
|
234
|
+
openDatabaseAsync,
|
|
235
|
+
isDatabasePersisted,
|
|
236
|
+
getDatabasePersistenceError
|
|
237
|
+
} from "./index-gyaa159j.js";
|
|
233
238
|
import {
|
|
234
239
|
registerExitAbort,
|
|
235
240
|
unregisterExitAbort
|
|
@@ -237,48 +242,48 @@ import {
|
|
|
237
242
|
import"./index-cpjk5jd2.js";
|
|
238
243
|
import {
|
|
239
244
|
forgetRawSessionOrdinalWatermark2
|
|
240
|
-
} from "./index-
|
|
241
|
-
import"./index-
|
|
242
|
-
import"./index-
|
|
245
|
+
} from "./index-qncw9hey.js";
|
|
246
|
+
import"./index-faxb7mck.js";
|
|
247
|
+
import"./index-nj360hcs.js";
|
|
243
248
|
import"./index-fr0wbhdn.js";
|
|
244
249
|
import {
|
|
245
250
|
preloadTokenizer
|
|
246
|
-
} from "./index-
|
|
251
|
+
} from "./index-4xyjr62e.js";
|
|
247
252
|
import {
|
|
248
253
|
BoundedSessionMap,
|
|
249
254
|
recordToolDefinition,
|
|
250
255
|
getCurrentToolSetHash
|
|
251
|
-
} from "./index-
|
|
252
|
-
import"./index-
|
|
256
|
+
} from "./index-jkanybgq.js";
|
|
257
|
+
import"./index-g4t7850m.js";
|
|
253
258
|
import {
|
|
254
259
|
getDefaultSubcConnectionFile,
|
|
255
260
|
SubcModuleTransport
|
|
256
|
-
} from "./index-
|
|
261
|
+
} from "./index-3j9t1v4n.js";
|
|
257
262
|
import"./index-qt1qqasc.js";
|
|
258
|
-
import"./index-
|
|
263
|
+
import"./index-fw42ms3m.js";
|
|
259
264
|
import {
|
|
260
265
|
observeOpenCodeTurnEvent,
|
|
261
266
|
clearTrackedOpenCodeSession,
|
|
262
267
|
findLastAssistantModelFromOpenCodeDb
|
|
263
|
-
} from "./index-
|
|
268
|
+
} from "./index-pztqab6k.js";
|
|
264
269
|
import {
|
|
265
270
|
sendCommandResult2,
|
|
266
271
|
sendStatusNotification2
|
|
267
|
-
} from "./index-
|
|
272
|
+
} from "./index-2v6nvy3k.js";
|
|
268
273
|
import {
|
|
269
274
|
detectConflicts,
|
|
270
275
|
resolveCompactionForBoot
|
|
271
|
-
} from "./index-
|
|
276
|
+
} from "./index-hacf2tyx.js";
|
|
272
277
|
import {
|
|
273
278
|
sendConflictWarning2,
|
|
274
279
|
cleanupConflictWarnings2
|
|
275
|
-
} from "./index-
|
|
280
|
+
} from "./index-p56dszfp.js";
|
|
276
281
|
import"./index-1zx87sdm.js";
|
|
277
282
|
import {
|
|
278
283
|
stripPersistedAssistantText,
|
|
279
284
|
deleteTagsByMessageId2,
|
|
280
285
|
getMaxTagNumberBySession2
|
|
281
|
-
} from "./index-
|
|
286
|
+
} from "./index-ksv0a31x.js";
|
|
282
287
|
import {
|
|
283
288
|
resolveHistorianModel2,
|
|
284
289
|
resolveOpenCodeAgentOverrides2,
|
|
@@ -286,22 +291,26 @@ import {
|
|
|
286
291
|
} from "./index-5kym00ag.js";
|
|
287
292
|
import {
|
|
288
293
|
getEmbedDrainUiStatus,
|
|
289
|
-
clearEmbedSessionState
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
import"./index-v7287tzq.js";
|
|
294
|
+
clearEmbedSessionState
|
|
295
|
+
} from "./index-2amn2s73.js";
|
|
296
|
+
import"./index-zhqwda72.js";
|
|
293
297
|
import {
|
|
294
298
|
deleteIndexedMessage
|
|
295
|
-
} from "./index-
|
|
296
|
-
import"./index-
|
|
299
|
+
} from "./index-pq0dpwrc.js";
|
|
300
|
+
import"./index-66a50f3e.js";
|
|
301
|
+
import"./index-2qbtqg1w.js";
|
|
297
302
|
import {
|
|
298
303
|
pushNotification2
|
|
299
304
|
} from "./index-x8a7jmkh.js";
|
|
300
|
-
import"./index-
|
|
305
|
+
import"./index-1rhgxqs8.js";
|
|
306
|
+
import {
|
|
307
|
+
getEmbeddingCoverageStatus2
|
|
308
|
+
} from "./index-jn0ddrhp.js";
|
|
301
309
|
import"./index-4dhv7mqz.js";
|
|
302
|
-
import"./index-
|
|
310
|
+
import"./index-pswsyf1w.js";
|
|
303
311
|
import"./index-jjvbk92s.js";
|
|
304
|
-
import"./index-
|
|
312
|
+
import"./index-0c7p8mq5.js";
|
|
313
|
+
import"./index-f9b3vtt1.js";
|
|
305
314
|
import {
|
|
306
315
|
createTagger,
|
|
307
316
|
cavemanWordRulesForLanguage,
|
|
@@ -309,13 +318,13 @@ import {
|
|
|
309
318
|
clearToolPermissionDenied,
|
|
310
319
|
collectForeignTextParts,
|
|
311
320
|
resetDegradedCacheCount2
|
|
312
|
-
} from "./index-
|
|
321
|
+
} from "./index-x2mrq5xv.js";
|
|
313
322
|
import {
|
|
314
323
|
scheduleClearAndReindex
|
|
315
|
-
} from "./index-
|
|
324
|
+
} from "./index-87ctnzz9.js";
|
|
316
325
|
import {
|
|
317
326
|
runManagedRecomp2
|
|
318
|
-
} from "./index-
|
|
327
|
+
} from "./index-3d3872c6.js";
|
|
319
328
|
import {
|
|
320
329
|
isValidSemver,
|
|
321
330
|
compareSemverCore
|
|
@@ -323,9 +332,11 @@ import {
|
|
|
323
332
|
import"./index-fmsr7v69.js";
|
|
324
333
|
import {
|
|
325
334
|
runManagedWrapup2
|
|
326
|
-
} from "./index-
|
|
335
|
+
} from "./index-xwwsbsd3.js";
|
|
336
|
+
import"./index-qx8j6kds.js";
|
|
327
337
|
import"./index-kaqs6h31.js";
|
|
328
|
-
import"./index-
|
|
338
|
+
import"./index-dy7w6wm4.js";
|
|
339
|
+
import"./index-ezv6dz3y.js";
|
|
329
340
|
import {
|
|
330
341
|
isDreamerRunnable,
|
|
331
342
|
isSmartNoteSurfaceAvailable,
|
|
@@ -345,7 +356,7 @@ import {
|
|
|
345
356
|
import {
|
|
346
357
|
closeQuietly
|
|
347
358
|
} from "./index-8ajstryz.js";
|
|
348
|
-
import"./index-
|
|
359
|
+
import"./index-fxbk7gk3.js";
|
|
349
360
|
import {
|
|
350
361
|
setStoragePrivatePermissionEnforcement,
|
|
351
362
|
ensureStorageDirectorySync,
|
|
@@ -8193,7 +8204,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8193
8204
|
// package.json
|
|
8194
8205
|
var package_default = {
|
|
8195
8206
|
name: "@cortexkit/opencode-magic-context",
|
|
8196
|
-
version: "0.49.
|
|
8207
|
+
version: "0.49.35",
|
|
8197
8208
|
type: "module",
|
|
8198
8209
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8199
8210
|
main: "dist/index.js",
|
|
@@ -12047,7 +12058,7 @@ async function setup(context) {
|
|
|
12047
12058
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12048
12059
|
log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
|
|
12049
12060
|
}
|
|
12050
|
-
const { registerContext } = await import("./context-
|
|
12061
|
+
const { registerContext } = await import("./context-fk8e3h9p.js");
|
|
12051
12062
|
setHarness2("opencode2");
|
|
12052
12063
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12053
12064
|
const duties = await registerContext(context);
|
|
@@ -12126,7 +12137,7 @@ var server = async (ctx) => {
|
|
|
12126
12137
|
if (hasBannerEntries)
|
|
12127
12138
|
setTimeout(async () => {
|
|
12128
12139
|
try {
|
|
12129
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12140
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0gwcz3fw.js"));
|
|
12130
12141
|
const clientWithSessions = ctx.client;
|
|
12131
12142
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12132
12143
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12144,7 +12155,7 @@ var server = async (ctx) => {
|
|
|
12144
12155
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12145
12156
|
setTimeout(async () => {
|
|
12146
12157
|
try {
|
|
12147
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12158
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0gwcz3fw.js"));
|
|
12148
12159
|
const clientWithSessions = ctx.client;
|
|
12149
12160
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12150
12161
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12417,12 +12428,12 @@ var server = async (ctx) => {
|
|
|
12417
12428
|
{
|
|
12418
12429
|
const fence = getSchemaFenceRejection();
|
|
12419
12430
|
if (fence) {
|
|
12420
|
-
importPluginModule(() => import("./conflict-warning-hook-
|
|
12431
|
+
importPluginModule(() => import("./conflict-warning-hook-hhw8z5ak.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
|
|
12421
12432
|
}
|
|
12422
12433
|
}
|
|
12423
12434
|
const serverUrl = ctx.serverUrl;
|
|
12424
12435
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12425
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12436
|
+
importPluginModule(() => import("./send-session-notification-0gwcz3fw.js")).then(({ setNotificationServerUrl }) => {
|
|
12426
12437
|
setNotificationServerUrl(serverUrlStr);
|
|
12427
12438
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12428
12439
|
if (conflictResult?.hasConflict) {
|
|
@@ -12445,7 +12456,7 @@ var server = async (ctx) => {
|
|
|
12445
12456
|
}) => {
|
|
12446
12457
|
if (!shouldShowAnnouncement())
|
|
12447
12458
|
return;
|
|
12448
|
-
return importPluginModule(() => import("./conflict-warning-hook-
|
|
12459
|
+
return importPluginModule(() => import("./conflict-warning-hook-hhw8z5ak.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
|
|
12449
12460
|
}).catch(() => {});
|
|
12450
12461
|
}, 8000);
|
|
12451
12462
|
}
|
|
@@ -12519,8 +12530,8 @@ var server = async (ctx) => {
|
|
|
12519
12530
|
tryReopenStorage,
|
|
12520
12531
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12521
12532
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12522
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12523
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12533
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-0gwcz3fw.js"));
|
|
12534
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-807ff6t2.js"));
|
|
12524
12535
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12525
12536
|
toastDurationMs: 15000
|
|
12526
12537
|
});
|
|
@@ -6,9 +6,10 @@ import {
|
|
|
6
6
|
getLoggerDiagnostics2,
|
|
7
7
|
flushLogger2,
|
|
8
8
|
getLogFilePath2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-jrfre9ah.js";
|
|
10
10
|
import"./index-g2q4htwp.js";
|
|
11
11
|
import"./index-pavzsdc6.js";
|
|
12
|
+
import"./index-z4p0ry94.js";
|
|
12
13
|
export {
|
|
13
14
|
flushLogger2 as flushLogger,
|
|
14
15
|
getLogFilePath2 as getLogFilePath,
|
|
@@ -5,14 +5,15 @@ import {
|
|
|
5
5
|
startMessageFtsRowidMapBackfill2,
|
|
6
6
|
messageFtsOrdinalRangeIsMapped2,
|
|
7
7
|
deleteUnmappedMessageFtsRows2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
8
|
+
} from "./index-faxb7mck.js";
|
|
9
|
+
import"./index-qncw9hey.js";
|
|
10
10
|
import"./index-v0p37hm2.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-fxbk7gk3.js";
|
|
12
12
|
import"./index-gzy5w8ya.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-jrfre9ah.js";
|
|
14
14
|
import"./index-g2q4htwp.js";
|
|
15
15
|
import"./index-pavzsdc6.js";
|
|
16
|
+
import"./index-z4p0ry94.js";
|
|
16
17
|
import"./index-cpjk5jd2.js";
|
|
17
18
|
export {
|
|
18
19
|
deleteUnmappedMessageFtsRows2 as deleteUnmappedMessageFtsRows,
|
|
@@ -4,20 +4,21 @@ import {
|
|
|
4
4
|
yieldIndexChunk2
|
|
5
5
|
} from "./index-gzy5w8ya.js";
|
|
6
6
|
import"./index-1zx87sdm.js";
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
import"./index-ksv0a31x.js";
|
|
8
|
+
import"./index-4xyjr62e.js";
|
|
9
9
|
import"./index-pavzsdc6.js";
|
|
10
10
|
import"./index-g2q4htwp.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
11
|
+
import"./index-z4p0ry94.js";
|
|
12
|
+
import"./index-jrfre9ah.js";
|
|
13
|
+
import"./index-9wnbnx8f.js";
|
|
13
14
|
import"./index-nxrsns5x.js";
|
|
14
15
|
import"./index-v0p37hm2.js";
|
|
15
16
|
import"./index-cpjk5jd2.js";
|
|
16
|
-
import"./index-
|
|
17
|
+
import"./index-qncw9hey.js";
|
|
17
18
|
import"./index-58e3y90n.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-pztqab6k.js";
|
|
20
|
+
import"./index-brg2w6qc.js";
|
|
21
|
+
import"./index-jkanybgq.js";
|
|
21
22
|
import {
|
|
22
23
|
MESSAGE_INDEX_MAX_FTS_BYTES,
|
|
23
24
|
messageIndexSkipKey,
|
|
@@ -25,9 +26,9 @@ import {
|
|
|
25
26
|
markMessageIndexDirty,
|
|
26
27
|
getIndexableContent,
|
|
27
28
|
indexSingleMessage
|
|
28
|
-
} from "./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
} from "./index-pq0dpwrc.js";
|
|
30
|
+
import"./index-faxb7mck.js";
|
|
31
|
+
import"./index-fxbk7gk3.js";
|
|
31
32
|
|
|
32
33
|
// src/features/magic-context/message-index-bounded.ts
|
|
33
34
|
import { createHash } from "node:crypto";
|
|
@@ -4,10 +4,11 @@ import {
|
|
|
4
4
|
} from "./index-gzy5w8ya.js";
|
|
5
5
|
import"./index-pavzsdc6.js";
|
|
6
6
|
import"./index-g2q4htwp.js";
|
|
7
|
-
import"./index-
|
|
7
|
+
import"./index-z4p0ry94.js";
|
|
8
|
+
import"./index-jrfre9ah.js";
|
|
8
9
|
import {
|
|
9
10
|
logSlowWriteTransaction
|
|
10
|
-
} from "./index-
|
|
11
|
+
} from "./index-fxbk7gk3.js";
|
|
11
12
|
|
|
12
13
|
// src/features/magic-context/message-time-backfill.ts
|
|
13
14
|
var MESSAGE_TIME_BACKFILL_BATCH_SIZE = 500;
|
package/dist/migration-worker.js
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
import"./index-pavzsdc6.js";
|
|
2
2
|
import"./index-g2q4htwp.js";
|
|
3
|
+
import"./index-z4p0ry94.js";
|
|
3
4
|
import {
|
|
4
5
|
setLogLineForwarder2,
|
|
5
6
|
log2
|
|
6
|
-
} from "./index-
|
|
7
|
+
} from "./index-jrfre9ah.js";
|
|
7
8
|
import {
|
|
8
9
|
Database2
|
|
9
10
|
} from "./index-gzy5w8ya.js";
|
|
10
11
|
import"./index-fr0wbhdn.js";
|
|
11
12
|
import {
|
|
12
13
|
runMigrationsWithRetry
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
14
|
+
} from "./index-nj360hcs.js";
|
|
15
|
+
import"./index-9wnbnx8f.js";
|
|
15
16
|
import"./index-58e3y90n.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-txs8tce6.js";
|
|
18
|
+
import"./index-2p37txes.js";
|
|
18
19
|
import"./index-fb3zxn06.js";
|
|
19
20
|
import {
|
|
20
21
|
setSqlitePragmaConfig,
|
|
21
22
|
initializeDatabase
|
|
22
|
-
} from "./index-
|
|
23
|
+
} from "./index-gyaa159j.js";
|
|
24
|
+
import"./index-wh9fxds5.js";
|
|
23
25
|
import"./index-v0p37hm2.js";
|
|
24
26
|
import"./index-cpjk5jd2.js";
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-qncw9hey.js";
|
|
28
|
+
import"./index-faxb7mck.js";
|
|
29
|
+
import"./index-4xyjr62e.js";
|
|
30
|
+
import"./index-jkanybgq.js";
|
|
29
31
|
import {
|
|
30
32
|
closeQuietly
|
|
31
33
|
} from "./index-8ajstryz.js";
|
|
32
|
-
import"./index-
|
|
34
|
+
import"./index-fxbk7gk3.js";
|
|
33
35
|
|
|
34
36
|
// src/features/magic-context/migration-worker.ts
|
|
35
37
|
import { parentPort, workerData } from "node:worker_threads";
|
package/dist/{project-embedding-registry-6yex0r9f.js → project-embedding-registry-tdz7985n.js}
RENAMED
|
@@ -35,24 +35,26 @@ import {
|
|
|
35
35
|
sweepAllRegisteredProjects2,
|
|
36
36
|
_setTestProviderFactoryForProject2,
|
|
37
37
|
_resetProjectEmbeddingRegistryForTests2
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-jn0ddrhp.js";
|
|
39
39
|
import"./index-4dhv7mqz.js";
|
|
40
|
+
import"./index-2amn2s73.js";
|
|
40
41
|
import"./index-qt1qqasc.js";
|
|
41
|
-
import"./index-
|
|
42
|
+
import"./index-1rhgxqs8.js";
|
|
42
43
|
import"./index-nxrsns5x.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
44
|
+
import"./index-jz5bk7xd.js";
|
|
45
|
+
import"./index-zhqwda72.js";
|
|
46
|
+
import"./index-g4t7850m.js";
|
|
47
|
+
import"./index-txs8tce6.js";
|
|
48
|
+
import"./index-faxb7mck.js";
|
|
49
|
+
import"./index-qncw9hey.js";
|
|
49
50
|
import"./index-v0p37hm2.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-fxbk7gk3.js";
|
|
52
|
+
import"./index-4xyjr62e.js";
|
|
52
53
|
import"./index-gzy5w8ya.js";
|
|
53
|
-
import"./index-
|
|
54
|
+
import"./index-jrfre9ah.js";
|
|
54
55
|
import"./index-g2q4htwp.js";
|
|
55
56
|
import"./index-pavzsdc6.js";
|
|
57
|
+
import"./index-z4p0ry94.js";
|
|
56
58
|
import"./index-cpjk5jd2.js";
|
|
57
59
|
export {
|
|
58
60
|
_resetProjectEmbeddingRegistryForTests2 as _resetProjectEmbeddingRegistryForTests,
|
|
@@ -23,6 +23,11 @@ main().catch((error) => {
|
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
async function main() {
|
|
26
|
+
if (input.v2ArchiveReader) {
|
|
27
|
+
const { serveV2ArchiveReads } = await import("./v2-archive-reader-tm2eayp2.js");
|
|
28
|
+
await serveV2ArchiveReads(port, openConnections);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
26
31
|
const [
|
|
27
32
|
{ Database, registerSqliteDiagnosticSink },
|
|
28
33
|
{ readRawSessionMessageIdsAtOrdinalsFromDb, scanRawSessionSummaryRows },
|
|
@@ -30,9 +35,9 @@ async function main() {
|
|
|
30
35
|
{ log }
|
|
31
36
|
] = await Promise.all([
|
|
32
37
|
import("./sqlite-zdgm52sv.js"),
|
|
33
|
-
import("./read-session-raw-
|
|
38
|
+
import("./read-session-raw-mncmzbm9.js"),
|
|
34
39
|
import("./harness-e4avh192.js"),
|
|
35
|
-
import("./logger-
|
|
40
|
+
import("./logger-qwnbcfj9.js")
|
|
36
41
|
]);
|
|
37
42
|
setHarness(input.harness ?? "opencode");
|
|
38
43
|
registerSqliteDiagnosticSink(log, getHarness);
|
|
@@ -46,13 +51,13 @@ async function main() {
|
|
|
46
51
|
openConnections.add(db);
|
|
47
52
|
db.exec("PRAGMA busy_timeout = 250");
|
|
48
53
|
if (input.ftsRowidBackfill) {
|
|
49
|
-
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-
|
|
54
|
+
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-xg7hr0mk.js");
|
|
50
55
|
db.exec("PRAGMA busy_timeout = 0");
|
|
51
56
|
await runMessageFtsRowidMapBackfill(db);
|
|
52
57
|
reply = { kind: "fts-rowid-backfill" };
|
|
53
58
|
} else if (input.searchArchive) {
|
|
54
|
-
const { renderSearchArchive } = await import("./search-archive-
|
|
55
|
-
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-
|
|
59
|
+
const { renderSearchArchive } = await import("./search-archive-0ny7p3bw.js");
|
|
60
|
+
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-mncmzbm9.js");
|
|
56
61
|
const archive = input.searchArchive;
|
|
57
62
|
let raw;
|
|
58
63
|
try {
|
|
@@ -81,7 +86,7 @@ async function main() {
|
|
|
81
86
|
const { setHarness } = await import("./harness-e4avh192.js");
|
|
82
87
|
setHarness(input.harness ?? "opencode");
|
|
83
88
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
84
|
-
import("./message-index-bounded-
|
|
89
|
+
import("./message-index-bounded-narw7bnz.js"),
|
|
85
90
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
86
91
|
]);
|
|
87
92
|
configureContextDatabasePragmas(db);
|
|
@@ -95,7 +100,7 @@ async function main() {
|
|
|
95
100
|
measurements: result.measurements
|
|
96
101
|
};
|
|
97
102
|
} else if (input.tagRatio !== undefined) {
|
|
98
|
-
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-
|
|
103
|
+
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-zx1023km.js");
|
|
99
104
|
const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
|
|
100
105
|
if (delta)
|
|
101
106
|
reply = { kind: "tag-delta", delta };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveHostServedBoundaryId2,
|
|
3
3
|
hasRawMessageProvider2,
|
|
4
|
+
rawMessageWorkerSource2,
|
|
5
|
+
rawMessageOffThreadRangeReader2,
|
|
4
6
|
setRawMessageProvider2,
|
|
5
7
|
setBoundedRawMessageProvider2,
|
|
6
8
|
withRawMessageProvider2,
|
|
@@ -36,25 +38,26 @@ import {
|
|
|
36
38
|
readSessionChunk2,
|
|
37
39
|
getRawSessionMessageIdsThrough2,
|
|
38
40
|
readRawSessionSeedTail2
|
|
39
|
-
} from "./index-
|
|
40
|
-
import"./index-
|
|
41
|
+
} from "./index-brg2w6qc.js";
|
|
42
|
+
import"./index-ksv0a31x.js";
|
|
41
43
|
import"./index-1zx87sdm.js";
|
|
42
|
-
import"./index-
|
|
44
|
+
import"./index-pztqab6k.js";
|
|
43
45
|
import"./index-nxrsns5x.js";
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-rverk2vz.js";
|
|
46
|
+
import"./index-jkanybgq.js";
|
|
47
|
+
import"./index-9wnbnx8f.js";
|
|
48
|
+
import"./index-qncw9hey.js";
|
|
48
49
|
import"./index-v0p37hm2.js";
|
|
49
|
-
import"./index-
|
|
50
|
+
import"./index-58e3y90n.js";
|
|
51
|
+
import"./index-fxbk7gk3.js";
|
|
50
52
|
import {
|
|
51
53
|
hasMeaningfulUserText2,
|
|
52
54
|
extractTexts2
|
|
53
|
-
} from "./index-
|
|
55
|
+
} from "./index-4xyjr62e.js";
|
|
54
56
|
import"./index-gzy5w8ya.js";
|
|
55
|
-
import"./index-
|
|
57
|
+
import"./index-jrfre9ah.js";
|
|
56
58
|
import"./index-g2q4htwp.js";
|
|
57
59
|
import"./index-pavzsdc6.js";
|
|
60
|
+
import"./index-z4p0ry94.js";
|
|
58
61
|
import"./index-cpjk5jd2.js";
|
|
59
62
|
export {
|
|
60
63
|
RAW_MESSAGE_VISIT_PAGE_SIZE2 as RAW_MESSAGE_VISIT_PAGE_SIZE,
|
|
@@ -76,6 +79,8 @@ export {
|
|
|
76
79
|
prepareRawSessionOrdinals2 as prepareRawSessionOrdinals,
|
|
77
80
|
primeInMemoryTailRawMessageCache2 as primeInMemoryTailRawMessageCache,
|
|
78
81
|
primeTailRawMessageCache2 as primeTailRawMessageCache,
|
|
82
|
+
rawMessageOffThreadRangeReader2 as rawMessageOffThreadRangeReader,
|
|
83
|
+
rawMessageWorkerSource2 as rawMessageWorkerSource,
|
|
79
84
|
readRawSessionBoundaryEndpoints2 as readRawSessionBoundaryEndpoints,
|
|
80
85
|
readRawSessionMessageById2 as readRawSessionMessageById,
|
|
81
86
|
readRawSessionMessageIdOrdinals2 as readRawSessionMessageIdOrdinals,
|
|
@@ -29,12 +29,13 @@ import {
|
|
|
29
29
|
hasRawSessionMessageByIdFromDb2,
|
|
30
30
|
readRawSeedTailFromDb2,
|
|
31
31
|
readRawSessionBoundaryEndpointsFromDb2
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-qncw9hey.js";
|
|
33
33
|
import"./index-v0p37hm2.js";
|
|
34
34
|
import"./index-gzy5w8ya.js";
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-jrfre9ah.js";
|
|
36
36
|
import"./index-g2q4htwp.js";
|
|
37
37
|
import"./index-pavzsdc6.js";
|
|
38
|
+
import"./index-z4p0ry94.js";
|
|
38
39
|
import"./index-cpjk5jd2.js";
|
|
39
40
|
export {
|
|
40
41
|
RawOrdinalsNotReady2 as RawOrdinalsNotReady,
|