@cortexkit/opencode-magic-context 0.49.16 → 0.49.18
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 +76 -63
- package/dist/chunk-embedding-write-worker.js +11 -11
- package/dist/{compaction-marker-candidates-v5c6997n.js → compaction-marker-candidates-n4krhat4.js} +2 -2
- package/dist/compaction-marker-candidates-worker.js +2 -2
- package/dist/config/schema/magic-context.d.ts +394 -394
- package/dist/{conflict-warning-hook-znry4j76.js → conflict-warning-hook-4pmz879v.js} +5 -5
- package/dist/{context-3znk23va.js → context-m897gfp9.js} +304 -145
- package/dist/{embedding-backfill-q4n8dend.js → embedding-backfill-fmz50tsy.js} +11 -11
- package/dist/embedding-worker-process.js +1 -1
- package/dist/embedding-worker.js +4 -4
- 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/git-commits/indexer.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-openai.d.ts.map +1 -1
- package/dist/features/magic-context/memory/project-identity-cache.d.ts +2 -0
- package/dist/features/magic-context/memory/project-identity-cache.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.d.ts +1 -1
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts +5 -0
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts +6 -1
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/storage-host-instruction-retention.d.ts +11 -0
- package/dist/features/magic-context/storage-host-instruction-retention.d.ts.map +1 -0
- package/dist/features/magic-context/storage-meta-session.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-shared.d.ts +2 -2
- package/dist/features/magic-context/storage-meta-shared.d.ts.map +1 -1
- package/dist/features/magic-context/storage-session-tables.d.ts +9 -1
- package/dist/features/magic-context/storage-session-tables.d.ts.map +1 -1
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-deadline.d.ts +2 -1
- package/dist/hooks/magic-context/auto-search-deadline.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-hint.d.ts +3 -0
- package/dist/hooks/magic-context/auto-search-hint.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts +10 -2
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts +22 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts +2 -0
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts +4 -2
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/file-token-coverage.d.ts +11 -0
- package/dist/hooks/magic-context/file-token-coverage.d.ts.map +1 -0
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts +9 -0
- package/dist/hooks/magic-context/final-wire-token-estimate.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-host-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/host-served-rows.d.ts +25 -0
- package/dist/hooks/magic-context/host-served-rows.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +7 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-recovery-fence.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-replay.d.ts.map +1 -1
- package/dist/hooks/magic-context/lkg-slot.d.ts +1 -1
- package/dist/hooks/magic-context/lkg-slot.d.ts.map +1 -1
- package/dist/hooks/magic-context/pass-outcome.d.ts +2 -0
- package/dist/hooks/magic-context/pass-outcome.d.ts.map +1 -1
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts +2 -1
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/signed-thinking-hold.d.ts +59 -0
- package/dist/hooks/magic-context/signed-thinking-hold.d.ts.map +1 -0
- package/dist/hooks/magic-context/system-prompt-diagnostics.d.ts +8 -0
- package/dist/hooks/magic-context/system-prompt-diagnostics.d.ts.map +1 -0
- package/dist/hooks/magic-context/system-prompt-hash.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-content-primitives.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +6 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/todo-view.d.ts +2 -2
- package/dist/hooks/magic-context/tool-drop-target.d.ts +3 -2
- package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +6 -0
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-context-state.d.ts +19 -0
- package/dist/hooks/magic-context/transform-context-state.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +19 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-stage-logger.d.ts +3 -0
- package/dist/hooks/magic-context/transform-stage-logger.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +1 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-9nkg2dzk.js → index-24fezq97.js} +3 -3
- package/dist/{index-v9asb16b.js → index-24jbw52d.js} +5 -5
- package/dist/{index-a8bvhwqs.js → index-2vxtcb95.js} +32 -3
- package/dist/{index-f71thw8j.js → index-4s3t0nd0.js} +1 -1
- package/dist/{index-6a6dq53h.js → index-6s5941tm.js} +5 -5
- package/dist/{index-fkx2qnvw.js → index-6x57ar45.js} +2 -2
- package/dist/{index-ek1yxvvz.js → index-936py2wm.js} +361 -70
- package/dist/{index-dqe8pq4x.js → index-a6mc0v4d.js} +6 -3
- package/dist/{index-hehkf6zm.js → index-b5vqckbw.js} +12 -6
- package/dist/{v2/server-wafzvyhg.js → index-beht37jy.js} +8 -0
- package/dist/{index-7b2cfmaz.js → index-bjcnntmz.js} +2 -2
- package/dist/{index-hqkczed7.js → index-c5pytzne.js} +22 -2
- package/dist/{index-nd7m2a5a.js → index-cf74k5ak.js} +27 -5
- package/dist/{index-kn4t1haw.js → index-e4xv8890.js} +531 -253
- package/dist/{index-cj9g0j7a.js → index-fgncb0ng.js} +7 -7
- package/dist/{index-5mwk1nek.js → index-jn12fvvh.js} +1 -1
- package/dist/{index-n6m03s3n.js → index-ke416mdc.js} +1 -1
- package/dist/{index-mtw9e71a.js → index-kq82mtg0.js} +2 -2
- package/dist/{index-n78avt2p.js → index-n37sebck.js} +1 -1
- package/dist/{index-wk0n1cgt.js → index-qn7xstt2.js} +2 -2
- package/dist/{index-v63beg1z.js → index-r4nkrs05.js} +3 -3
- package/dist/{index-j6zw70pf.js → index-rmwykbbb.js} +60 -21
- package/dist/{index-saews2s3.js → index-rr2bb45z.js} +1 -1
- package/dist/{index-ayym1x7f.js → index-s1ex9y6p.js} +195 -748
- package/dist/{index-7pa32z07.js → index-s734jcsr.js} +1 -1
- package/dist/{index-b17m64g9.js → index-s74zqahq.js} +1 -1
- package/dist/{index-4qfy7v57.js → index-s7j8tvhv.js} +31 -20
- package/dist/{index-wv9n2zcq.js → index-v8awdgvd.js} +4 -4
- package/dist/{index-p4vde22c.js → index-x4njr8df.js} +965 -77
- package/dist/{index-qrahzcqv.js → index-ze7mvk54.js} +10 -7
- package/dist/index.js +39 -39
- package/dist/{message-fts-rowid-map-yvx5a9jw.js → message-fts-rowid-map-17s0dfn4.js} +5 -3
- package/dist/{message-index-t4pz7akd.js → message-index-66jv6fh4.js} +13 -13
- package/dist/{message-index-bounded-6th8djy9.js → message-index-bounded-n1frdn85.js} +17 -17
- package/dist/{message-time-backfill-8egzkd3z.js → message-time-backfill-73mmm76q.js} +1 -1
- package/dist/migration-worker.js +8 -8
- package/dist/plugin/dream-timer.d.ts +11 -0
- package/dist/plugin/dream-timer.d.ts.map +1 -1
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-2dea0a77.js → project-embedding-registry-z74mhqkf.js} +10 -10
- package/dist/raw-ordinal-warmup-worker.js +10 -10
- package/dist/{read-session-chunk-4pwqxm5a.js → read-session-chunk-v06g3vka.js} +7 -7
- package/dist/{read-session-raw-5ar8se5v.js → read-session-raw-rsc8c7qy.js} +2 -2
- package/dist/{recomp-orchestrator-tjcaj5x7.js → recomp-orchestrator-ghpk2dtq.js} +24 -24
- package/dist/{search-archive-02jws7hw.js → search-archive-4d53y23e.js} +8 -8
- package/dist/{search-rb01n29x.js → search-nkf271d4.js} +20 -20
- package/dist/{send-session-notification-2x9edkrp.js → send-session-notification-6ve0e8p4.js} +4 -4
- package/dist/shared/historian-cache.d.ts +8 -0
- package/dist/shared/historian-cache.d.ts.map +1 -0
- package/dist/shared/model-suggestion-retry.d.ts +2 -0
- package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
- package/dist/shared/rpc-discovery-cleanup.d.ts +3 -0
- package/dist/shared/rpc-discovery-cleanup.d.ts.map +1 -0
- package/dist/shared/rpc-server.d.ts +2 -0
- package/dist/shared/rpc-server.d.ts.map +1 -1
- package/dist/shared/search-text.d.ts +8 -0
- package/dist/shared/search-text.d.ts.map +1 -0
- package/dist/shared/sqlite.d.ts +4 -2
- package/dist/shared/sqlite.d.ts.map +1 -1
- package/dist/shared/storage-file-mutex.d.ts.map +1 -1
- package/dist/shared/subagent-runner.d.ts +2 -0
- package/dist/shared/subagent-runner.d.ts.map +1 -1
- package/dist/shared/system-directive.d.ts +2 -0
- package/dist/shared/system-directive.d.ts.map +1 -1
- package/dist/{sqlite-4pqyynrs.js → sqlite-zf72c52d.js} +1 -1
- package/dist/{storage-memory-j3v3hc83.js → storage-memory-y3qmy00r.js} +2 -2
- package/dist/{storage-tags-4z1w27xa.js → storage-tags-r7k9tjcv.js} +8 -4
- package/dist/{transform-postprocess-phase-xaw5c3xp.js → transform-postprocess-phase-zpgav0h7.js} +24 -24
- package/dist/v2/auto-search-worker.js +76 -63
- package/dist/v2/chunk-embedding-write-worker.js +11 -11
- package/dist/v2/{compaction-marker-candidates-1vqwr3s5.js → compaction-marker-candidates-ebx3388k.js} +2 -2
- package/dist/v2/compaction-marker-candidates-worker.js +2 -2
- package/dist/v2/{context-acw1nhv8.js → context-f2xh7ba4.js} +1171 -448
- package/dist/v2/embedding-backfill-7c7yr69y.js +23 -0
- package/dist/v2/embedding-worker-process.js +1 -1
- package/dist/v2/embedding-worker.js +4 -4
- package/dist/v2/fold/native-replay.d.ts +11 -2
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/fold/policy.d.ts.map +1 -1
- package/dist/v2/fold/restore.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +8 -0
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/hooks/payload.d.ts.map +1 -1
- package/dist/v2/hooks/types.d.ts +17 -0
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/{message-fts-rowid-map-8vf0v7cr.js → message-fts-rowid-map-wfx67gfd.js} +5 -3
- package/dist/v2/{message-index-e6qzw477.js → message-index-48f7hw7a.js} +13 -13
- package/dist/v2/{message-index-bounded-dsrf49y7.js → message-index-bounded-w3hfm29z.js} +17 -17
- package/dist/v2/{message-time-backfill-q5pgxf0d.js → message-time-backfill-04t0km1z.js} +1 -1
- package/dist/v2/migration-worker.js +8 -8
- package/dist/v2/{project-embedding-registry-rek75aqw.js → project-embedding-registry-gnkj56xp.js} +10 -10
- package/dist/v2/raw-ordinal-warmup-worker.js +10 -10
- package/dist/v2/{read-session-chunk-7bpygfv2.js → read-session-chunk-zpgmxwte.js} +7 -7
- package/dist/v2/{read-session-raw-pw2n1qgc.js → read-session-raw-yaegtjzh.js} +2 -2
- package/dist/v2/{recomp-orchestrator-hzpgg06e.js → recomp-orchestrator-4vfxej9t.js} +24 -24
- package/dist/v2/{search-archive-fn4wy8sx.js → search-archive-vv48s2aa.js} +8 -8
- package/dist/v2/{search-sf2vg5pk.js → search-kza414f0.js} +20 -20
- package/dist/v2/{send-session-notification-hmr7q0nt.js → send-session-notification-3pxn658x.js} +4 -4
- package/dist/v2/{server-n5q841qn.js → server-1nyybqan.js} +31 -20
- package/dist/v2/{server-785mb90s.js → server-1wy7b9de.js} +6 -3
- package/dist/v2/{server-0mzjjw3s.js → server-27gq4mfz.js} +27 -5
- package/dist/v2/{server-g59aatsz.js → server-2ehj0bw7.js} +965 -77
- package/dist/v2/{server-kqpawe1a.js → server-46neh5fa.js} +12 -6
- package/dist/v2/{server-rrqpvwqd.js → server-6tmj0s7j.js} +2 -2
- package/dist/v2/{server-kr2kc9dz.js → server-8by8qfec.js} +10 -7
- package/dist/v2/{server-r9gjxcte.js → server-a2eqhkxr.js} +7 -7
- package/dist/v2/{server-vbe4se57.js → server-a9xqj88f.js} +1 -1
- package/dist/{index-wafzvyhg.js → v2/server-beht37jy.js} +8 -0
- package/dist/v2/{server-6fyp0v67.js → server-bfpda1tb.js} +195 -749
- package/dist/v2/{server-05xjtq6c.js → server-d04vrx0j.js} +1 -1
- package/dist/v2/{server-zs8d0s3b.js → server-g3qma5c0.js} +1 -1
- package/dist/v2/{server-00hx04yn.js → server-gpvay0xz.js} +2 -2
- package/dist/v2/{server-gha9x4qq.js → server-h1v0pyxb.js} +2 -2
- package/dist/v2/{server-hgg55hde.js → server-hy3d3vsx.js} +1 -1
- package/dist/v2/{server-vgpab6rd.js → server-my7k4eds.js} +4 -4
- package/dist/v2/{server-d8tj10db.js → server-n1prf1g6.js} +1 -1
- package/dist/v2/{server-n78avt2p.js → server-n37sebck.js} +1 -1
- package/dist/v2/{server-y5pznjt9.js → server-nj659894.js} +5 -5
- package/dist/v2/{server-zyw55ygv.js → server-qv7f0hhe.js} +5 -5
- package/dist/v2/{server-e3ftpk7v.js → server-rmygf5pn.js} +32 -3
- package/dist/v2/{server-0ppsweh6.js → server-tgnbmwah.js} +22 -2
- package/dist/v2/{server-1hcbw661.js → server-xhab8jx8.js} +60 -21
- package/dist/v2/{server-6714jebr.js → server-xj136kt8.js} +1 -1
- package/dist/v2/{server-aavz8pm6.js → server-zzkj2fch.js} +3 -3
- package/dist/v2/server.js +4 -4
- package/dist/v2/{sqlite-4pqyynrs.js → sqlite-zf72c52d.js} +1 -1
- package/dist/v2/{storage-memory-j3v3hc83.js → storage-memory-y3qmy00r.js} +2 -2
- package/dist/v2/{storage-tags-hkwtbp3g.js → storage-tags-3wdb8zph.js} +8 -4
- package/dist/v2/store-reader.d.ts +8 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{wrapup-orchestrator-x4xj1782.js → wrapup-orchestrator-psqz7yh0.js} +24 -24
- package/dist/wrapup-orchestrator-s9zc5b00.js +48 -0
- package/package.json +1 -1
- package/src/config/latch-permanence-guard.test.ts +4 -0
- package/src/shared/historian-cache.test.ts +69 -0
- package/src/shared/historian-cache.ts +55 -0
- package/src/shared/model-suggestion-retry.ts +2 -0
- package/src/shared/rpc-discovery-cleanup.test.ts +57 -0
- package/src/shared/rpc-discovery-cleanup.ts +57 -0
- package/src/shared/rpc-server.ts +36 -13
- package/src/shared/search-text.test.ts +47 -0
- package/src/shared/search-text.ts +63 -0
- package/src/shared/sqlite.test.ts +56 -0
- package/src/shared/sqlite.ts +51 -2
- package/src/shared/storage-file-mutex-review.test.ts +22 -2
- package/src/shared/storage-file-mutex.ts +11 -1
- package/src/shared/subagent-runner.ts +2 -0
- package/src/shared/system-directive.ts +19 -1
- package/src/shared/tag-transcript.ts +12 -4
- package/dist/v2/embedding-backfill-jyd6492b.js +0 -23
- package/dist/wrapup-orchestrator-vj2tbp22.js +0 -48
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
withSqliteBackgroundWriter2,
|
|
5
5
|
withoutSqliteTransformPass2,
|
|
6
6
|
isTransientSqliteError2
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-beht37jy.js";
|
|
8
8
|
import {
|
|
9
9
|
estimateTokens
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-c5pytzne.js";
|
|
11
11
|
import {
|
|
12
12
|
getHarness2
|
|
13
13
|
} from "./index-pavzsdc6.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
isSynapseEmbeddingTruncated,
|
|
21
21
|
getSynapseBatchRequestKey,
|
|
22
22
|
SynapseEmbeddingProvider
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-6x57ar45.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_COMPARTMENT_CHUNK_MAX_INPUT_TOKENS,
|
|
26
26
|
CHUNK_WINDOW_SAFETY_RATIO,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
countSessionCompartmentEmbedCoverage,
|
|
39
39
|
countSessionCompartmentEmbedCoveragePolite,
|
|
40
40
|
countUnembeddedSessionCompartmentsPolite
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-b5vqckbw.js";
|
|
42
42
|
import {
|
|
43
43
|
DEFAULT_LOCAL_EMBEDDING_MODEL
|
|
44
44
|
} from "./index-wgypt3cs.js";
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
getEmbeddingProviderIdentity,
|
|
49
49
|
dominantEmbeddingFailure,
|
|
50
50
|
LocalEmbeddingProvider
|
|
51
|
-
} from "./index-
|
|
51
|
+
} from "./index-bjcnntmz.js";
|
|
52
52
|
import {
|
|
53
53
|
setBootQuietPeriodForTests
|
|
54
|
-
} from "./index-
|
|
54
|
+
} from "./index-2vxtcb95.js";
|
|
55
55
|
import {
|
|
56
56
|
isEmbeddingHostBusy2
|
|
57
57
|
} from "./index-qt1qqasc.js";
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
acquireGitSweepLease,
|
|
63
63
|
renewGitSweepLease,
|
|
64
64
|
releaseGitSweepLease
|
|
65
|
-
} from "./index-
|
|
65
|
+
} from "./index-rr2bb45z.js";
|
|
66
66
|
import {
|
|
67
67
|
saveEmbeddingIfHashMatches,
|
|
68
68
|
getMemoryEmbedCoverage,
|
|
@@ -438,6 +438,7 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
438
438
|
return Array.from({ length: texts.length }, () => null);
|
|
439
439
|
}
|
|
440
440
|
const isQuery = purpose === "query";
|
|
441
|
+
let rateLimitedResponses = 0;
|
|
441
442
|
for (;; ) {
|
|
442
443
|
if (Date.now() < this.rateLimit.until) {
|
|
443
444
|
if (isQuery)
|
|
@@ -451,6 +452,8 @@ class OpenAICompatibleEmbeddingProvider {
|
|
|
451
452
|
return outcome;
|
|
452
453
|
if (isQuery)
|
|
453
454
|
return Array.from({ length: texts.length }, () => null);
|
|
455
|
+
if (++rateLimitedResponses >= 8)
|
|
456
|
+
return Array.from({ length: texts.length }, () => null);
|
|
454
457
|
}
|
|
455
458
|
}
|
|
456
459
|
async requestOnce(texts, requestTexts, signal, purpose) {
|
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-rmwykbbb.js";
|
|
32
32
|
import {
|
|
33
33
|
setHarness2
|
|
34
34
|
} from "./index-pavzsdc6.js";
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
checkCompactionMarkerConsistency,
|
|
98
98
|
clearInjectionCache,
|
|
99
99
|
clearNoteNudgeTriggerOnly
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-s1ex9y6p.js";
|
|
101
101
|
import"./index-sd3egckz.js";
|
|
102
102
|
import {
|
|
103
103
|
hasTrustedAbsoluteWall,
|
|
@@ -185,7 +185,7 @@ import {
|
|
|
185
185
|
parameterDescriptionsFor,
|
|
186
186
|
MagicContextRpcServer,
|
|
187
187
|
applyHiddenSubagentTemperature
|
|
188
|
-
} from "./index-
|
|
188
|
+
} from "./index-936py2wm.js";
|
|
189
189
|
import {
|
|
190
190
|
resolveOpenCodeDbPath,
|
|
191
191
|
openCodeDbPathExists,
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
} from "./index-58e3y90n.js";
|
|
195
195
|
import {
|
|
196
196
|
inRootAsyncContext2
|
|
197
|
-
} from "./index-
|
|
197
|
+
} from "./index-beht37jy.js";
|
|
198
198
|
import {
|
|
199
199
|
formatFailClosedBlockingMessage,
|
|
200
200
|
createFailClosedController,
|
|
@@ -209,7 +209,7 @@ import {
|
|
|
209
209
|
openDatabaseAsync,
|
|
210
210
|
isDatabasePersisted,
|
|
211
211
|
getDatabasePersistenceError
|
|
212
|
-
} from "./index-
|
|
212
|
+
} from "./index-fgncb0ng.js";
|
|
213
213
|
import {
|
|
214
214
|
setHomeProjectPermission,
|
|
215
215
|
ProjectIdentityError,
|
|
@@ -220,7 +220,7 @@ import {
|
|
|
220
220
|
beginBootQuietPeriod,
|
|
221
221
|
bootQuietRemainingMs,
|
|
222
222
|
scheduleAfterBootQuiet
|
|
223
|
-
} from "./index-
|
|
223
|
+
} from "./index-2vxtcb95.js";
|
|
224
224
|
import {
|
|
225
225
|
deleteTemporalDecision
|
|
226
226
|
} from "./index-bp5083x2.js";
|
|
@@ -229,10 +229,10 @@ import {
|
|
|
229
229
|
observeSessionActivity,
|
|
230
230
|
backfillSessionActivity,
|
|
231
231
|
deleteIndexedMessage2
|
|
232
|
-
} from "./index-
|
|
232
|
+
} from "./index-x4njr8df.js";
|
|
233
233
|
import {
|
|
234
234
|
recordSessionProjectIdentity
|
|
235
|
-
} from "./index-
|
|
235
|
+
} from "./index-rr2bb45z.js";
|
|
236
236
|
import"./index-nj7yykkx.js";
|
|
237
237
|
import"./index-fb3zxn06.js";
|
|
238
238
|
import {
|
|
@@ -241,33 +241,33 @@ import {
|
|
|
241
241
|
} from "./index-v0p37hm2.js";
|
|
242
242
|
import {
|
|
243
243
|
forgetRawSessionOrdinalWatermark2
|
|
244
|
-
} from "./index-
|
|
245
|
-
import"./index-
|
|
246
|
-
import"./index-
|
|
244
|
+
} from "./index-s734jcsr.js";
|
|
245
|
+
import"./index-a6mc0v4d.js";
|
|
246
|
+
import"./index-qn7xstt2.js";
|
|
247
247
|
import"./index-fr0wbhdn.js";
|
|
248
248
|
import {
|
|
249
249
|
preloadTokenizer
|
|
250
|
-
} from "./index-
|
|
250
|
+
} from "./index-c5pytzne.js";
|
|
251
251
|
import {
|
|
252
252
|
getCurrentToolSetHash,
|
|
253
253
|
recordToolDefinition
|
|
254
|
-
} from "./index-
|
|
255
|
-
import"./index-
|
|
254
|
+
} from "./index-ke416mdc.js";
|
|
255
|
+
import"./index-6x57ar45.js";
|
|
256
256
|
import {
|
|
257
257
|
getDefaultSubcConnectionFile,
|
|
258
258
|
SubcModuleTransport
|
|
259
|
-
} from "./index-
|
|
259
|
+
} from "./index-s7j8tvhv.js";
|
|
260
260
|
import"./index-qt1qqasc.js";
|
|
261
261
|
import"./index-y9f76s3f.js";
|
|
262
262
|
import {
|
|
263
263
|
observeOpenCodeTurnEvent,
|
|
264
264
|
clearTrackedOpenCodeSession,
|
|
265
265
|
findLastAssistantModelFromOpenCodeDb
|
|
266
|
-
} from "./index-
|
|
266
|
+
} from "./index-kq82mtg0.js";
|
|
267
267
|
import {
|
|
268
268
|
sendCommandResult2,
|
|
269
269
|
sendStatusNotification2
|
|
270
|
-
} from "./index-
|
|
270
|
+
} from "./index-s74zqahq.js";
|
|
271
271
|
import {
|
|
272
272
|
detectConflicts,
|
|
273
273
|
resolveCompactionForBoot
|
|
@@ -275,13 +275,13 @@ import {
|
|
|
275
275
|
import {
|
|
276
276
|
sendConflictWarning2,
|
|
277
277
|
cleanupConflictWarnings2
|
|
278
|
-
} from "./index-
|
|
278
|
+
} from "./index-jn12fvvh.js";
|
|
279
279
|
import"./index-1zx87sdm.js";
|
|
280
280
|
import {
|
|
281
281
|
stripPersistedAssistantText,
|
|
282
282
|
deleteTagsByMessageId2,
|
|
283
283
|
getMaxTagNumberBySession2
|
|
284
|
-
} from "./index-
|
|
284
|
+
} from "./index-cf74k5ak.js";
|
|
285
285
|
import {
|
|
286
286
|
resolveHistorianModel2,
|
|
287
287
|
resolveOpenCodeAgentOverrides2,
|
|
@@ -291,27 +291,27 @@ import {
|
|
|
291
291
|
getEmbedDrainUiStatus,
|
|
292
292
|
clearEmbedSessionState,
|
|
293
293
|
getEmbeddingCoverageStatus2
|
|
294
|
-
} from "./index-
|
|
295
|
-
import"./index-
|
|
296
|
-
import"./index-
|
|
294
|
+
} from "./index-ze7mvk54.js";
|
|
295
|
+
import"./index-b5vqckbw.js";
|
|
296
|
+
import"./index-v8awdgvd.js";
|
|
297
297
|
import {
|
|
298
298
|
pushNotification2
|
|
299
299
|
} from "./index-x8a7jmkh.js";
|
|
300
|
-
import"./index-
|
|
300
|
+
import"./index-bjcnntmz.js";
|
|
301
301
|
import"./index-4dhv7mqz.js";
|
|
302
|
-
import"./index-
|
|
303
|
-
import"./index-
|
|
304
|
-
import"./index-
|
|
302
|
+
import"./index-24fezq97.js";
|
|
303
|
+
import"./index-n37sebck.js";
|
|
304
|
+
import"./index-4s3t0nd0.js";
|
|
305
305
|
import {
|
|
306
306
|
createTagger,
|
|
307
307
|
cavemanWordRulesForLanguage,
|
|
308
308
|
setCtxReduceRegisteredGlobally,
|
|
309
309
|
clearToolPermissionDenied,
|
|
310
310
|
resetDegradedCacheCount2
|
|
311
|
-
} from "./index-
|
|
311
|
+
} from "./index-e4xv8890.js";
|
|
312
312
|
import {
|
|
313
313
|
runManagedRecomp2
|
|
314
|
-
} from "./index-
|
|
314
|
+
} from "./index-r4nkrs05.js";
|
|
315
315
|
import {
|
|
316
316
|
isValidSemver,
|
|
317
317
|
compareSemverCore
|
|
@@ -319,9 +319,9 @@ import {
|
|
|
319
319
|
import"./index-fmsr7v69.js";
|
|
320
320
|
import {
|
|
321
321
|
runManagedWrapup2
|
|
322
|
-
} from "./index-
|
|
322
|
+
} from "./index-24jbw52d.js";
|
|
323
323
|
import"./index-kaqs6h31.js";
|
|
324
|
-
import"./index-
|
|
324
|
+
import"./index-6s5941tm.js";
|
|
325
325
|
import {
|
|
326
326
|
isDreamerRunnable,
|
|
327
327
|
isSmartNoteSurfaceAvailable,
|
|
@@ -8189,7 +8189,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8189
8189
|
// package.json
|
|
8190
8190
|
var package_default = {
|
|
8191
8191
|
name: "@cortexkit/opencode-magic-context",
|
|
8192
|
-
version: "0.49.
|
|
8192
|
+
version: "0.49.18",
|
|
8193
8193
|
type: "module",
|
|
8194
8194
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8195
8195
|
main: "dist/index.js",
|
|
@@ -12035,7 +12035,7 @@ async function setup(context) {
|
|
|
12035
12035
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12036
12036
|
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.`);
|
|
12037
12037
|
}
|
|
12038
|
-
const { registerContext } = await import("./context-
|
|
12038
|
+
const { registerContext } = await import("./context-m897gfp9.js");
|
|
12039
12039
|
setHarness2("opencode2");
|
|
12040
12040
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12041
12041
|
const duties = await registerContext(context);
|
|
@@ -12114,7 +12114,7 @@ var server = async (ctx) => {
|
|
|
12114
12114
|
if (hasBannerEntries)
|
|
12115
12115
|
setTimeout(async () => {
|
|
12116
12116
|
try {
|
|
12117
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12117
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
|
|
12118
12118
|
const clientWithSessions = ctx.client;
|
|
12119
12119
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12120
12120
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12132,7 +12132,7 @@ var server = async (ctx) => {
|
|
|
12132
12132
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12133
12133
|
setTimeout(async () => {
|
|
12134
12134
|
try {
|
|
12135
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12135
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
|
|
12136
12136
|
const clientWithSessions = ctx.client;
|
|
12137
12137
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12138
12138
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12409,12 +12409,12 @@ var server = async (ctx) => {
|
|
|
12409
12409
|
{
|
|
12410
12410
|
const fence = getSchemaFenceRejection();
|
|
12411
12411
|
if (fence) {
|
|
12412
|
-
importPluginModule(() => import("./conflict-warning-hook-
|
|
12412
|
+
importPluginModule(() => import("./conflict-warning-hook-4pmz879v.js")).then(({ sendSchemaFenceWarning }) => sendSchemaFenceWarning(ctx.client, ctx.directory, fence)).catch((error) => log2("[magic-context] schema-fence warning unavailable:", error));
|
|
12413
12413
|
}
|
|
12414
12414
|
}
|
|
12415
12415
|
const serverUrl = ctx.serverUrl;
|
|
12416
12416
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12417
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12417
|
+
importPluginModule(() => import("./send-session-notification-6ve0e8p4.js")).then(({ setNotificationServerUrl }) => {
|
|
12418
12418
|
setNotificationServerUrl(serverUrlStr);
|
|
12419
12419
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12420
12420
|
if (conflictResult?.hasConflict) {
|
|
@@ -12437,7 +12437,7 @@ var server = async (ctx) => {
|
|
|
12437
12437
|
}) => {
|
|
12438
12438
|
if (!shouldShowAnnouncement())
|
|
12439
12439
|
return;
|
|
12440
|
-
return importPluginModule(() => import("./conflict-warning-hook-
|
|
12440
|
+
return importPluginModule(() => import("./conflict-warning-hook-4pmz879v.js")).then(({ sendStartupAnnouncement }) => sendStartupAnnouncement(ctx.client, ctx.directory, ANNOUNCEMENT_VERSION, ANNOUNCEMENT_FEATURES, ANNOUNCEMENT_FOOTER, markAnnouncementSeen));
|
|
12441
12441
|
}).catch(() => {});
|
|
12442
12442
|
}, 8000);
|
|
12443
12443
|
}
|
|
@@ -12511,8 +12511,8 @@ var server = async (ctx) => {
|
|
|
12511
12511
|
tryReopenStorage,
|
|
12512
12512
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12513
12513
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12514
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12515
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12514
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
|
|
12515
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-zpgav0h7.js"));
|
|
12516
12516
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12517
12517
|
toastDurationMs: 15000
|
|
12518
12518
|
});
|
|
@@ -4,17 +4,19 @@ import {
|
|
|
4
4
|
runMessageFtsRowidMapBackfill2,
|
|
5
5
|
startMessageFtsRowidMapBackfill2,
|
|
6
6
|
messageFtsOrdinalRangeIsMapped2,
|
|
7
|
+
getMessageFtsRowidMapBackfillProgress2,
|
|
7
8
|
deleteUnmappedMessageFtsRows2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
9
|
+
} from "./index-a6mc0v4d.js";
|
|
10
|
+
import"./index-s734jcsr.js";
|
|
10
11
|
import"./index-v0p37hm2.js";
|
|
11
12
|
import"./index-k29z4aqh.js";
|
|
12
|
-
import"./index-
|
|
13
|
+
import"./index-beht37jy.js";
|
|
13
14
|
import"./index-j75v2476.js";
|
|
14
15
|
import"./index-g2q4htwp.js";
|
|
15
16
|
import"./index-pavzsdc6.js";
|
|
16
17
|
export {
|
|
17
18
|
deleteUnmappedMessageFtsRows2 as deleteUnmappedMessageFtsRows,
|
|
19
|
+
getMessageFtsRowidMapBackfillProgress2 as getMessageFtsRowidMapBackfillProgress,
|
|
18
20
|
messageFtsOrdinalRangeIsMapped2 as messageFtsOrdinalRangeIsMapped,
|
|
19
21
|
recordIndexedMessageTime2 as recordIndexedMessageTime,
|
|
20
22
|
recordMessageFtsRowid2 as recordMessageFtsRowid,
|
|
@@ -16,25 +16,25 @@ import {
|
|
|
16
16
|
indexSingleMessage2,
|
|
17
17
|
indexMessagesAfterOrdinal2,
|
|
18
18
|
indexSourcesAfterOrdinal2,
|
|
19
|
-
|
|
20
|
-
} from "./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
19
|
+
sweepOrphanedOpenCodeMessageIndexesCooperatively2
|
|
20
|
+
} from "./index-x4njr8df.js";
|
|
21
|
+
import"./index-rmwykbbb.js";
|
|
22
|
+
import"./index-cf74k5ak.js";
|
|
23
23
|
import"./index-1zx87sdm.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-kq82mtg0.js";
|
|
25
25
|
import"./index-wgypt3cs.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
26
|
+
import"./index-b5vqckbw.js";
|
|
27
|
+
import"./index-6x57ar45.js";
|
|
28
|
+
import"./index-a6mc0v4d.js";
|
|
29
29
|
import"./index-nj7yykkx.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-ke416mdc.js";
|
|
31
31
|
import"./index-bp5083x2.js";
|
|
32
32
|
import"./index-58e3y90n.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-s734jcsr.js";
|
|
34
34
|
import"./index-v0p37hm2.js";
|
|
35
35
|
import"./index-k29z4aqh.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
import"./index-c5pytzne.js";
|
|
37
|
+
import"./index-beht37jy.js";
|
|
38
38
|
import"./index-j75v2476.js";
|
|
39
39
|
import"./index-g2q4htwp.js";
|
|
40
40
|
import"./index-pavzsdc6.js";
|
|
@@ -55,6 +55,6 @@ export {
|
|
|
55
55
|
isMessageIndexSourceCurrent2 as isMessageIndexSourceCurrent,
|
|
56
56
|
markMessageIndexDirty2 as markMessageIndexDirty,
|
|
57
57
|
messageIndexSkipKey2 as messageIndexSkipKey,
|
|
58
|
-
|
|
58
|
+
sweepOrphanedOpenCodeMessageIndexesCooperatively2 as sweepOrphanedOpenCodeMessageIndexesCooperatively,
|
|
59
59
|
toMessageIndexSource2 as toMessageIndexSource
|
|
60
60
|
};
|
|
@@ -2,21 +2,11 @@ import {
|
|
|
2
2
|
withSqliteBackgroundWriter2,
|
|
3
3
|
withIndexChunk2,
|
|
4
4
|
yieldIndexChunk2
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-1zx87sdm.js";
|
|
7
|
-
import"./index-nd7m2a5a.js";
|
|
8
|
-
import"./index-hqkczed7.js";
|
|
5
|
+
} from "./index-beht37jy.js";
|
|
9
6
|
import"./index-pavzsdc6.js";
|
|
10
7
|
import"./index-g2q4htwp.js";
|
|
11
8
|
import"./index-j75v2476.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-wgypt3cs.js";
|
|
14
|
-
import"./index-v0p37hm2.js";
|
|
15
|
-
import"./index-7pa32z07.js";
|
|
16
|
-
import"./index-58e3y90n.js";
|
|
17
|
-
import"./index-mtw9e71a.js";
|
|
18
|
-
import"./index-j6zw70pf.js";
|
|
19
|
-
import"./index-n6m03s3n.js";
|
|
9
|
+
import"./index-nj7yykkx.js";
|
|
20
10
|
import {
|
|
21
11
|
MESSAGE_INDEX_MAX_FTS_BYTES2,
|
|
22
12
|
messageIndexSkipKey2,
|
|
@@ -24,11 +14,21 @@ import {
|
|
|
24
14
|
markMessageIndexDirty2,
|
|
25
15
|
getIndexableContent2,
|
|
26
16
|
indexSingleMessage2
|
|
27
|
-
} from "./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
17
|
+
} from "./index-x4njr8df.js";
|
|
18
|
+
import"./index-1zx87sdm.js";
|
|
19
|
+
import"./index-cf74k5ak.js";
|
|
20
|
+
import"./index-c5pytzne.js";
|
|
21
|
+
import"./index-bp5083x2.js";
|
|
22
|
+
import"./index-wgypt3cs.js";
|
|
23
|
+
import"./index-v0p37hm2.js";
|
|
24
|
+
import"./index-s734jcsr.js";
|
|
25
|
+
import"./index-58e3y90n.js";
|
|
26
|
+
import"./index-kq82mtg0.js";
|
|
27
|
+
import"./index-rmwykbbb.js";
|
|
28
|
+
import"./index-ke416mdc.js";
|
|
29
|
+
import"./index-a6mc0v4d.js";
|
|
30
|
+
import"./index-6x57ar45.js";
|
|
31
|
+
import"./index-b5vqckbw.js";
|
|
32
32
|
import"./index-k29z4aqh.js";
|
|
33
33
|
|
|
34
34
|
// src/features/magic-context/message-index-bounded.ts
|
package/dist/migration-worker.js
CHANGED
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
} from "./index-j75v2476.js";
|
|
7
7
|
import {
|
|
8
8
|
Database2
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-beht37jy.js";
|
|
10
10
|
import"./index-fr0wbhdn.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrationsWithRetry
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-qn7xstt2.js";
|
|
14
14
|
import"./index-bp5083x2.js";
|
|
15
15
|
import"./index-58e3y90n.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-2vxtcb95.js";
|
|
17
17
|
import"./index-nj7yykkx.js";
|
|
18
18
|
import"./index-fb3zxn06.js";
|
|
19
19
|
import {
|
|
20
20
|
setSqlitePragmaConfig,
|
|
21
21
|
initializeDatabase
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-fgncb0ng.js";
|
|
23
23
|
import"./index-v0p37hm2.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
24
|
+
import"./index-s734jcsr.js";
|
|
25
|
+
import"./index-a6mc0v4d.js";
|
|
26
|
+
import"./index-c5pytzne.js";
|
|
27
|
+
import"./index-ke416mdc.js";
|
|
28
28
|
import {
|
|
29
29
|
closeQuietly
|
|
30
30
|
} from "./index-8ajstryz.js";
|
|
@@ -127,6 +127,17 @@ export declare function _getDreamTimerStateForTests(): {
|
|
|
127
127
|
active: boolean;
|
|
128
128
|
directories: string[];
|
|
129
129
|
};
|
|
130
|
+
export declare function _isDreamTimerTickInFlightForTests(): boolean;
|
|
130
131
|
export declare function _resetDreamTimerForTests(): void;
|
|
132
|
+
export declare function sweepGitCommits(args: {
|
|
133
|
+
directory: string;
|
|
134
|
+
projectIdentity: string;
|
|
135
|
+
db: Database;
|
|
136
|
+
gitCommitIndexing: {
|
|
137
|
+
enabled: boolean;
|
|
138
|
+
since_days: number;
|
|
139
|
+
max_commits: number;
|
|
140
|
+
};
|
|
141
|
+
}): Promise<void>;
|
|
131
142
|
export {};
|
|
132
143
|
//# sourceMappingURL=dream-timer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"A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;uBAAiB,CAAC;;;;;;;;;;;;;qBAA77F,CAAC;mBAA6B,CAAC;iBAA2B,CAAC;iBAA2B,CAAC;0BAAc,CAAC;uBAAiB,CAAC;;;iBAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;0BAAq35C,CAAC;;;;;;;;;;;;;;;;GADh49C"}
|
package/dist/{project-embedding-registry-2dea0a77.js → project-embedding-registry-z74mhqkf.js}
RENAMED
|
@@ -34,21 +34,21 @@ import {
|
|
|
34
34
|
sweepAllRegisteredProjects2,
|
|
35
35
|
_setTestProviderFactoryForProject2,
|
|
36
36
|
_resetProjectEmbeddingRegistryForTests2
|
|
37
|
-
} from "./index-
|
|
37
|
+
} from "./index-ze7mvk54.js";
|
|
38
38
|
import"./index-4dhv7mqz.js";
|
|
39
39
|
import"./index-qt1qqasc.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-bjcnntmz.js";
|
|
41
41
|
import"./index-wgypt3cs.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
42
|
+
import"./index-rr2bb45z.js";
|
|
43
|
+
import"./index-b5vqckbw.js";
|
|
44
|
+
import"./index-6x57ar45.js";
|
|
45
|
+
import"./index-2vxtcb95.js";
|
|
46
|
+
import"./index-a6mc0v4d.js";
|
|
47
|
+
import"./index-s734jcsr.js";
|
|
48
48
|
import"./index-v0p37hm2.js";
|
|
49
49
|
import"./index-k29z4aqh.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
50
|
+
import"./index-c5pytzne.js";
|
|
51
|
+
import"./index-beht37jy.js";
|
|
52
52
|
import"./index-j75v2476.js";
|
|
53
53
|
import"./index-g2q4htwp.js";
|
|
54
54
|
import"./index-pavzsdc6.js";
|
|
@@ -11,8 +11,8 @@ var [
|
|
|
11
11
|
{ getHarness, setHarness },
|
|
12
12
|
{ log }
|
|
13
13
|
] = await Promise.all([
|
|
14
|
-
import("./sqlite-
|
|
15
|
-
import("./read-session-raw-
|
|
14
|
+
import("./sqlite-zf72c52d.js"),
|
|
15
|
+
import("./read-session-raw-rsc8c7qy.js"),
|
|
16
16
|
import("./harness-e4avh192.js"),
|
|
17
17
|
import("./logger-jm3sqqzr.js")
|
|
18
18
|
]);
|
|
@@ -27,13 +27,13 @@ try {
|
|
|
27
27
|
db = input.indexMessage || input.orphanSweep || input.ftsRowidBackfill ? new Database(input.path) : new Database(input.path, { readonly: true });
|
|
28
28
|
db.exec("PRAGMA busy_timeout = 250");
|
|
29
29
|
if (input.ftsRowidBackfill) {
|
|
30
|
-
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-
|
|
30
|
+
const { runMessageFtsRowidMapBackfill } = await import("./message-fts-rowid-map-17s0dfn4.js");
|
|
31
31
|
db.exec("PRAGMA busy_timeout = 0");
|
|
32
32
|
await runMessageFtsRowidMapBackfill(db);
|
|
33
33
|
reply = { kind: "fts-rowid-backfill" };
|
|
34
34
|
} else if (input.searchArchive) {
|
|
35
|
-
const { renderSearchArchive } = await import("./search-archive-
|
|
36
|
-
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-
|
|
35
|
+
const { renderSearchArchive } = await import("./search-archive-4d53y23e.js");
|
|
36
|
+
const { readRawSessionMessageIdOrdinalsForRangeFromDb } = await import("./read-session-raw-rsc8c7qy.js");
|
|
37
37
|
const archive = input.searchArchive;
|
|
38
38
|
let raw;
|
|
39
39
|
try {
|
|
@@ -58,11 +58,11 @@ try {
|
|
|
58
58
|
} else if (input.orphanSweep) {
|
|
59
59
|
const [
|
|
60
60
|
{ setHarness },
|
|
61
|
-
{
|
|
61
|
+
{ sweepOrphanedOpenCodeMessageIndexesCooperatively },
|
|
62
62
|
{ configureContextDatabasePragmas }
|
|
63
63
|
] = await Promise.all([
|
|
64
64
|
import("./harness-e4avh192.js"),
|
|
65
|
-
import("./message-index-
|
|
65
|
+
import("./message-index-66jv6fh4.js"),
|
|
66
66
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
67
67
|
]);
|
|
68
68
|
setHarness(input.harness ?? "opencode");
|
|
@@ -70,13 +70,13 @@ try {
|
|
|
70
70
|
const sourcePath = input.orphanSweep.sourcePath;
|
|
71
71
|
reply = {
|
|
72
72
|
kind: "orphan-sweep",
|
|
73
|
-
result:
|
|
73
|
+
result: await sweepOrphanedOpenCodeMessageIndexesCooperatively(db, () => sourcePath ? new Database(sourcePath, { readonly: true }) : null, input.orphanSweep.options)
|
|
74
74
|
};
|
|
75
75
|
} else if (input.indexMessage) {
|
|
76
76
|
const { setHarness } = await import("./harness-e4avh192.js");
|
|
77
77
|
setHarness(input.harness ?? "opencode");
|
|
78
78
|
const [{ indexMessageInShortChunks }, { configureContextDatabasePragmas }] = await Promise.all([
|
|
79
|
-
import("./message-index-bounded-
|
|
79
|
+
import("./message-index-bounded-n1frdn85.js"),
|
|
80
80
|
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
81
81
|
]);
|
|
82
82
|
configureContextDatabasePragmas(db);
|
|
@@ -86,7 +86,7 @@ try {
|
|
|
86
86
|
const result = await indexMessageInShortChunks(writer, input.sessionId, message, input, () => !cancellation || Atomics.load(cancellation, 0) === 0);
|
|
87
87
|
reply = { kind: "indexed", inserted: result.inserted, measurements: result.measurements };
|
|
88
88
|
} else if (input.tagRatio !== undefined) {
|
|
89
|
-
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-
|
|
89
|
+
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-r7k9tjcv.js");
|
|
90
90
|
const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
|
|
91
91
|
if (delta)
|
|
92
92
|
reply = { kind: "tag-delta", delta };
|
|
@@ -35,22 +35,22 @@ import {
|
|
|
35
35
|
readSessionChunk2,
|
|
36
36
|
getRawSessionMessageIdsThrough2,
|
|
37
37
|
readRawSessionSeedTail2
|
|
38
|
-
} from "./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
} from "./index-rmwykbbb.js";
|
|
39
|
+
import"./index-cf74k5ak.js";
|
|
40
40
|
import"./index-1zx87sdm.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-kq82mtg0.js";
|
|
42
42
|
import"./index-wgypt3cs.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-ke416mdc.js";
|
|
44
44
|
import"./index-bp5083x2.js";
|
|
45
45
|
import"./index-58e3y90n.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-s734jcsr.js";
|
|
47
47
|
import"./index-v0p37hm2.js";
|
|
48
48
|
import"./index-k29z4aqh.js";
|
|
49
49
|
import {
|
|
50
50
|
hasMeaningfulUserText2,
|
|
51
51
|
extractTexts2
|
|
52
|
-
} from "./index-
|
|
53
|
-
import"./index-
|
|
52
|
+
} from "./index-c5pytzne.js";
|
|
53
|
+
import"./index-beht37jy.js";
|
|
54
54
|
import"./index-j75v2476.js";
|
|
55
55
|
import"./index-g2q4htwp.js";
|
|
56
56
|
import"./index-pavzsdc6.js";
|