@cortexkit/opencode-magic-context 0.49.15 → 0.49.17
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 +12 -10
- 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 +343 -343
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-mgq17yr3.js → conflict-warning-hook-4pmz879v.js} +6 -6
- package/dist/{context-0m46day0.js → context-yhetp0kn.js} +297 -141
- package/dist/embedding-backfill-fmz50tsy.js +24 -0
- package/dist/embedding-worker-process.js +1 -1
- package/dist/embedding-worker.js +5 -5
- 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-fts-rowid-map.d.ts +2 -2
- package/dist/features/magic-context/message-fts-rowid-map.d.ts.map +1 -1
- package/dist/features/magic-context/message-fts-session-filter.d.ts +2 -0
- package/dist/features/magic-context/message-fts-session-filter.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/message-time-backfill.d.ts +2 -2
- package/dist/features/magic-context/message-time-backfill.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-db.d.ts +2 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- 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/compartment-runner-historian.d.ts +4 -2
- package/dist/hooks/magic-context/compartment-runner-historian.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-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-host-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-prompt-fit.d.ts +2 -1
- 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/lkg-recovery-fence.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts +26 -0
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-chunk.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts +3 -3
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- 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-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-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-3kdm78zp.js → index-24fezq97.js} +4 -4
- package/dist/{index-a8bvhwqs.js → index-2vxtcb95.js} +32 -3
- package/dist/{index-f71thw8j.js → index-4s3t0nd0.js} +1 -1
- package/dist/{index-ts1hjk1h.js → index-4yt7dtf4.js} +453 -227
- package/dist/{index-mc1cqza6.js → index-5a1ex6x8.js} +5 -5
- package/dist/{index-fkx2qnvw.js → index-6x57ar45.js} +2 -2
- package/dist/{index-dyvbsvga.js → index-a6mc0v4d.js} +25 -11
- package/dist/{index-snp5wbge.js → index-a7c4r5re.js} +160 -749
- package/dist/{index-42vcjcwe.js → index-aabzay3h.js} +180 -103
- package/dist/{index-3kx0kg0f.js → index-b5vqckbw.js} +14 -8
- package/dist/{v2/server-wafzvyhg.js → index-beht37jy.js} +8 -0
- package/dist/{index-e20m7284.js → index-bjcnntmz.js} +3 -3
- package/dist/{index-hqkczed7.js → index-c5pytzne.js} +22 -2
- package/dist/{index-thvnpfsv.js → index-cwzfcbtq.js} +967 -88
- package/dist/{index-yxycg7fs.js → index-fb2qxs2y.js} +26 -18
- package/dist/{index-mht7bq0z.js → index-hqhm3wke.js} +32 -8
- package/dist/{index-e4dsjj1p.js → index-jn12fvvh.js} +1 -1
- package/dist/index-kaqs6h31.js +58 -0
- package/dist/{index-n6m03s3n.js → index-ke416mdc.js} +1 -1
- package/dist/index-kmdj7dsq.js +96 -0
- package/dist/{index-1d289pq2.js → index-kq82mtg0.js} +2 -2
- package/dist/{index-n78avt2p.js → index-n37sebck.js} +1 -1
- package/dist/{index-1vc7jrkg.js → index-nkpmm9q8.js} +3 -3
- package/dist/{index-944w16m0.js → index-p7m7j0cp.js} +25 -17
- package/dist/{index-wk0n1cgt.js → index-qn7xstt2.js} +2 -2
- package/dist/{index-saews2s3.js → index-rr2bb45z.js} +1 -1
- package/dist/{index-mmfa86mt.js → index-s734jcsr.js} +169 -149
- package/dist/{index-dgs16axy.js → index-s74zqahq.js} +1 -1
- package/dist/{index-bxdg2nbt.js → index-v8awdgvd.js} +4 -4
- package/dist/{index-xn6q9pg6.js → index-vrzjhftj.js} +36 -76
- package/dist/{index-1sarmj9z.js → index-wgypt3cs.js} +6 -6
- package/dist/{index-y1qysm3q.js → index-ze7mvk54.js} +11 -8
- package/dist/index.js +47 -45
- package/dist/message-fts-rowid-map-17s0dfn4.js +25 -0
- package/dist/{message-index-bounded-vtgpq6b4.js → message-index-bounded-1633vc7f.js} +17 -17
- package/dist/{message-index-a6gztaqx.js → message-index-dprebmtt.js} +15 -15
- package/dist/{message-time-backfill-qjge9044.js → message-time-backfill-73mmm76q.js} +5 -5
- package/dist/migration-worker.js +9 -7
- 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-x45bv3qr.js → project-embedding-registry-z74mhqkf.js} +12 -10
- package/dist/raw-ordinal-warmup-worker.js +40 -10
- package/dist/{read-session-chunk-3ae3nfdn.js → read-session-chunk-4zp09ejb.js} +9 -9
- package/dist/{read-session-raw-m56hc7v2.js → read-session-raw-rsc8c7qy.js} +2 -2
- package/dist/{recomp-orchestrator-nwzcfhx4.js → recomp-orchestrator-z3ecszx6.js} +26 -26
- package/dist/{search-deajrd90.js → search-6mee3vty.js} +23 -22
- package/dist/search-archive-znyy44ve.js +25 -0
- package/dist/{send-session-notification-24r4esbh.js → send-session-notification-6ve0e8p4.js} +5 -5
- 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 +4 -0
- package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
- package/dist/shared/resolve-fallbacks.d.ts +3 -3
- 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-s5bg1ahx.js → storage-tags-8qns3012.js} +8 -4
- package/dist/tools/ctx-expand/search-archive.d.ts +5 -1
- package/dist/tools/ctx-expand/search-archive.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-ne3z1zmt.js → transform-postprocess-phase-3ydzxa62.js} +26 -26
- package/dist/v2/auto-search-worker.js +76 -63
- package/dist/v2/chunk-embedding-write-worker.js +12 -10
- 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-4qczzck7.js → context-jn3zpeqh.js} +909 -454
- package/dist/v2/embedding-backfill-7c7yr69y.js +23 -0
- package/dist/v2/embedding-worker-process.js +1 -1
- package/dist/v2/embedding-worker.js +5 -5
- 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/types.d.ts +17 -0
- package/dist/v2/hooks/types.d.ts.map +1 -1
- package/dist/v2/message-fts-rowid-map-wfx67gfd.js +24 -0
- package/dist/v2/{message-index-bounded-rxxznd34.js → message-index-bounded-hpejqyd8.js} +17 -17
- package/dist/v2/{message-index-f947qtbz.js → message-index-pxehjpzx.js} +15 -15
- package/dist/v2/{message-time-backfill-bsteyc4d.js → message-time-backfill-04t0km1z.js} +5 -5
- package/dist/v2/migration-worker.js +9 -7
- package/dist/v2/{project-embedding-registry-0msp56p8.js → project-embedding-registry-gnkj56xp.js} +12 -10
- package/dist/v2/raw-ordinal-warmup-worker.js +40 -10
- package/dist/v2/{read-session-chunk-rq9nx1nn.js → read-session-chunk-zdppn4bj.js} +9 -9
- package/dist/v2/{read-session-raw-b3tf6ra1.js → read-session-raw-yaegtjzh.js} +2 -2
- package/dist/v2/{recomp-orchestrator-5zhxtwha.js → recomp-orchestrator-cmqnfpp3.js} +26 -26
- package/dist/v2/{search-n8wqxb1j.js → search-66842dya.js} +23 -22
- package/dist/v2/search-archive-gfh11vs0.js +24 -0
- package/dist/v2/{send-session-notification-8ghn9tnv.js → send-session-notification-3pxn658x.js} +5 -5
- package/dist/v2/{server-yrvqaswb.js → server-1wy7b9de.js} +25 -11
- package/dist/v2/{server-th4y11y7.js → server-271qxsf5.js} +6 -6
- package/dist/v2/{server-e298hswg.js → server-3rhpvy84.js} +967 -88
- package/dist/v2/{server-qhfvvfxj.js → server-46neh5fa.js} +14 -8
- package/dist/v2/{server-rrqpvwqd.js → server-6tmj0s7j.js} +2 -2
- package/dist/v2/{server-hek6z3w6.js → server-8by8qfec.js} +11 -8
- 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-05xjtq6c.js → server-d04vrx0j.js} +1 -1
- package/dist/v2/server-ec4ca92p.js +96 -0
- package/dist/v2/{server-dd0tz6cn.js → server-fw7wrk01.js} +160 -750
- package/dist/v2/{server-zs8d0s3b.js → server-g3qma5c0.js} +1 -1
- package/dist/v2/{server-k2bzedxk.js → server-gpvay0xz.js} +2 -2
- package/dist/v2/{server-kmbarfmn.js → server-gtfhttbr.js} +26 -18
- package/dist/v2/{server-g10mdym6.js → server-h1v0pyxb.js} +3 -3
- package/dist/v2/{server-4gn3z5an.js → server-hy3d3vsx.js} +1 -1
- package/dist/v2/server-kaqs6h31.js +58 -0
- package/dist/v2/{server-ehyava47.js → server-kh7dpa1a.js} +25 -17
- package/dist/v2/{server-6cdy4rc0.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-zc3e54vy.js → server-nj659894.js} +6 -6
- package/dist/v2/{server-gvkm8xaj.js → server-rmygf5pn.js} +32 -3
- package/dist/v2/{server-0ppsweh6.js → server-tgnbmwah.js} +22 -2
- package/dist/v2/{server-cfbr1s2x.js → server-vsw8tmm6.js} +36 -76
- package/dist/v2/{server-prg55b7k.js → server-xj136kt8.js} +23 -3
- package/dist/v2/{server-atbc19ab.js → server-zyzawhdw.js} +32 -8
- package/dist/v2/{server-ef89gdsx.js → server-zzkj2fch.js} +4 -4
- package/dist/v2/server.js +5 -5
- 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-hcc2adpf.js → storage-tags-1h8k6ra9.js} +8 -4
- package/dist/v2/store-reader.d.ts +2 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{wrapup-orchestrator-65pwye0d.js → wrapup-orchestrator-xs8redz9.js} +26 -26
- package/dist/wrapup-orchestrator-j7d7ry5b.js +48 -0
- package/package.json +1 -1
- package/src/config/latch-permanence-guard.test.ts +4 -0
- package/src/config/schema/magic-context.ts +14 -6
- package/src/shared/historian-cache.test.ts +69 -0
- package/src/shared/historian-cache.ts +55 -0
- package/src/shared/model-resolution.test.ts +22 -0
- package/src/shared/model-suggestion-retry.ts +11 -3
- package/src/shared/resolve-fallbacks.test.ts +2 -3
- package/src/shared/resolve-fallbacks.ts +3 -3
- 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/embedding-backfill-5e1t5wha.js +0 -22
- package/dist/v2/embedding-backfill-jmaf8zrr.js +0 -21
- package/dist/wrapup-orchestrator-28xzsj5q.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,20 +38,20 @@ 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
|
-
} from "./index-
|
|
44
|
+
} from "./index-wgypt3cs.js";
|
|
45
45
|
import {
|
|
46
46
|
embeddingModelsMatch,
|
|
47
47
|
resolveEmbeddingTextPrefixes,
|
|
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-p7m7j0cp.js";
|
|
32
32
|
import {
|
|
33
33
|
setHarness2
|
|
34
34
|
} from "./index-pavzsdc6.js";
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
record,
|
|
57
57
|
DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
|
|
58
58
|
DEFAULT_HISTORIAN_TIMEOUT_MS
|
|
59
|
-
} from "./index-
|
|
59
|
+
} from "./index-wgypt3cs.js";
|
|
60
60
|
import {
|
|
61
61
|
denyTaskRoutingToCallerAgents,
|
|
62
62
|
buildHiddenAgentRegistrations,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
checkCompactionMarkerConsistency,
|
|
98
98
|
clearInjectionCache,
|
|
99
99
|
clearNoteNudgeTriggerOnly
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-a7c4r5re.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-aabzay3h.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-fb2qxs2y.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,45 +229,45 @@ import {
|
|
|
229
229
|
observeSessionActivity,
|
|
230
230
|
backfillSessionActivity,
|
|
231
231
|
deleteIndexedMessage2
|
|
232
|
-
} from "./index-
|
|
232
|
+
} from "./index-cwzfcbtq.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
|
-
import
|
|
239
|
-
|
|
238
|
+
import {
|
|
239
|
+
registerExitAbort,
|
|
240
|
+
unregisterExitAbort
|
|
241
|
+
} from "./index-v0p37hm2.js";
|
|
242
|
+
import {
|
|
243
|
+
forgetRawSessionOrdinalWatermark2
|
|
244
|
+
} from "./index-s734jcsr.js";
|
|
245
|
+
import"./index-a6mc0v4d.js";
|
|
246
|
+
import"./index-qn7xstt2.js";
|
|
240
247
|
import"./index-fr0wbhdn.js";
|
|
241
248
|
import {
|
|
242
249
|
preloadTokenizer
|
|
243
|
-
} from "./index-
|
|
250
|
+
} from "./index-c5pytzne.js";
|
|
244
251
|
import {
|
|
245
252
|
getCurrentToolSetHash,
|
|
246
253
|
recordToolDefinition
|
|
247
|
-
} from "./index-
|
|
248
|
-
import"./index-
|
|
254
|
+
} from "./index-ke416mdc.js";
|
|
255
|
+
import"./index-6x57ar45.js";
|
|
249
256
|
import {
|
|
250
257
|
getDefaultSubcConnectionFile,
|
|
251
258
|
SubcModuleTransport
|
|
252
|
-
} from "./index-
|
|
259
|
+
} from "./index-vrzjhftj.js";
|
|
253
260
|
import"./index-qt1qqasc.js";
|
|
254
261
|
import"./index-y9f76s3f.js";
|
|
255
|
-
import {
|
|
256
|
-
registerExitAbort,
|
|
257
|
-
unregisterExitAbort
|
|
258
|
-
} from "./index-v0p37hm2.js";
|
|
259
|
-
import {
|
|
260
|
-
forgetRawSessionOrdinalWatermark2
|
|
261
|
-
} from "./index-mmfa86mt.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-hqhm3wke.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-4yt7dtf4.js";
|
|
312
312
|
import {
|
|
313
313
|
runManagedRecomp2
|
|
314
|
-
} from "./index-
|
|
314
|
+
} from "./index-nkpmm9q8.js";
|
|
315
315
|
import {
|
|
316
316
|
isValidSemver,
|
|
317
317
|
compareSemverCore
|
|
@@ -319,7 +319,9 @@ import {
|
|
|
319
319
|
import"./index-fmsr7v69.js";
|
|
320
320
|
import {
|
|
321
321
|
runManagedWrapup2
|
|
322
|
-
} from "./index-
|
|
322
|
+
} from "./index-5a1ex6x8.js";
|
|
323
|
+
import"./index-kaqs6h31.js";
|
|
324
|
+
import"./index-kmdj7dsq.js";
|
|
323
325
|
import {
|
|
324
326
|
isDreamerRunnable,
|
|
325
327
|
isSmartNoteSurfaceAvailable,
|
|
@@ -8187,7 +8189,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8187
8189
|
// package.json
|
|
8188
8190
|
var package_default = {
|
|
8189
8191
|
name: "@cortexkit/opencode-magic-context",
|
|
8190
|
-
version: "0.49.
|
|
8192
|
+
version: "0.49.17",
|
|
8191
8193
|
type: "module",
|
|
8192
8194
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8193
8195
|
main: "dist/index.js",
|
|
@@ -12033,7 +12035,7 @@ async function setup(context) {
|
|
|
12033
12035
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12034
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.`);
|
|
12035
12037
|
}
|
|
12036
|
-
const { registerContext } = await import("./context-
|
|
12038
|
+
const { registerContext } = await import("./context-yhetp0kn.js");
|
|
12037
12039
|
setHarness2("opencode2");
|
|
12038
12040
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12039
12041
|
const duties = await registerContext(context);
|
|
@@ -12112,7 +12114,7 @@ var server = async (ctx) => {
|
|
|
12112
12114
|
if (hasBannerEntries)
|
|
12113
12115
|
setTimeout(async () => {
|
|
12114
12116
|
try {
|
|
12115
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12117
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
|
|
12116
12118
|
const clientWithSessions = ctx.client;
|
|
12117
12119
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12118
12120
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12130,7 +12132,7 @@ var server = async (ctx) => {
|
|
|
12130
12132
|
log2(`[magic-context] opencode_db_missing path=${openCodeDbResolution.path} source=${openCodeDbResolution.source}`);
|
|
12131
12133
|
setTimeout(async () => {
|
|
12132
12134
|
try {
|
|
12133
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12135
|
+
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-6ve0e8p4.js"));
|
|
12134
12136
|
const clientWithSessions = ctx.client;
|
|
12135
12137
|
const sessions = await Promise.resolve(clientWithSessions.session?.list?.()).catch(() => null);
|
|
12136
12138
|
const sessionList = Array.isArray(sessions) ? sessions : sessions?.data;
|
|
@@ -12407,12 +12409,12 @@ var server = async (ctx) => {
|
|
|
12407
12409
|
{
|
|
12408
12410
|
const fence = getSchemaFenceRejection();
|
|
12409
12411
|
if (fence) {
|
|
12410
|
-
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));
|
|
12411
12413
|
}
|
|
12412
12414
|
}
|
|
12413
12415
|
const serverUrl = ctx.serverUrl;
|
|
12414
12416
|
const serverUrlStr = serverUrl instanceof URL ? serverUrl.toString().replace(/\/$/, "") : typeof serverUrl === "string" ? serverUrl.replace(/\/$/, "") : undefined;
|
|
12415
|
-
importPluginModule(() => import("./send-session-notification-
|
|
12417
|
+
importPluginModule(() => import("./send-session-notification-6ve0e8p4.js")).then(({ setNotificationServerUrl }) => {
|
|
12416
12418
|
setNotificationServerUrl(serverUrlStr);
|
|
12417
12419
|
}).catch((error) => log2("[magic-context] notification transport unavailable:", error));
|
|
12418
12420
|
if (conflictResult?.hasConflict) {
|
|
@@ -12435,7 +12437,7 @@ var server = async (ctx) => {
|
|
|
12435
12437
|
}) => {
|
|
12436
12438
|
if (!shouldShowAnnouncement())
|
|
12437
12439
|
return;
|
|
12438
|
-
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));
|
|
12439
12441
|
}).catch(() => {});
|
|
12440
12442
|
}, 8000);
|
|
12441
12443
|
}
|
|
@@ -12509,8 +12511,8 @@ var server = async (ctx) => {
|
|
|
12509
12511
|
tryReopenStorage,
|
|
12510
12512
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12511
12513
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12512
|
-
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-
|
|
12513
|
-
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-3ydzxa62.js"));
|
|
12514
12516
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12515
12517
|
toastDurationMs: 15000
|
|
12516
12518
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
recordMessageFtsRowid2,
|
|
3
|
+
recordIndexedMessageTime2,
|
|
4
|
+
runMessageFtsRowidMapBackfill2,
|
|
5
|
+
startMessageFtsRowidMapBackfill2,
|
|
6
|
+
messageFtsOrdinalRangeIsMapped2,
|
|
7
|
+
getMessageFtsRowidMapBackfillProgress2,
|
|
8
|
+
deleteUnmappedMessageFtsRows2
|
|
9
|
+
} from "./index-a6mc0v4d.js";
|
|
10
|
+
import"./index-s734jcsr.js";
|
|
11
|
+
import"./index-v0p37hm2.js";
|
|
12
|
+
import"./index-k29z4aqh.js";
|
|
13
|
+
import"./index-beht37jy.js";
|
|
14
|
+
import"./index-j75v2476.js";
|
|
15
|
+
import"./index-g2q4htwp.js";
|
|
16
|
+
import"./index-pavzsdc6.js";
|
|
17
|
+
export {
|
|
18
|
+
deleteUnmappedMessageFtsRows2 as deleteUnmappedMessageFtsRows,
|
|
19
|
+
getMessageFtsRowidMapBackfillProgress2 as getMessageFtsRowidMapBackfillProgress,
|
|
20
|
+
messageFtsOrdinalRangeIsMapped2 as messageFtsOrdinalRangeIsMapped,
|
|
21
|
+
recordIndexedMessageTime2 as recordIndexedMessageTime,
|
|
22
|
+
recordMessageFtsRowid2 as recordMessageFtsRowid,
|
|
23
|
+
runMessageFtsRowidMapBackfill2 as runMessageFtsRowidMapBackfill,
|
|
24
|
+
startMessageFtsRowidMapBackfill2 as startMessageFtsRowidMapBackfill
|
|
25
|
+
};
|
|
@@ -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-mht7bq0z.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-1sarmj9z.js";
|
|
14
|
-
import"./index-v0p37hm2.js";
|
|
15
|
-
import"./index-mmfa86mt.js";
|
|
16
|
-
import"./index-58e3y90n.js";
|
|
17
|
-
import"./index-1d289pq2.js";
|
|
18
|
-
import"./index-944w16m0.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-cwzfcbtq.js";
|
|
18
|
+
import"./index-1zx87sdm.js";
|
|
19
|
+
import"./index-hqhm3wke.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-p7m7j0cp.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
|
|
@@ -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-cwzfcbtq.js";
|
|
21
|
+
import"./index-p7m7j0cp.js";
|
|
22
|
+
import"./index-hqhm3wke.js";
|
|
23
23
|
import"./index-1zx87sdm.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-fkx2qnvw.js";
|
|
30
|
-
import"./index-dyvbsvga.js";
|
|
24
|
+
import"./index-kq82mtg0.js";
|
|
25
|
+
import"./index-wgypt3cs.js";
|
|
26
|
+
import"./index-b5vqckbw.js";
|
|
27
|
+
import"./index-6x57ar45.js";
|
|
28
|
+
import"./index-a6mc0v4d.js";
|
|
31
29
|
import"./index-nj7yykkx.js";
|
|
32
|
-
import"./index-
|
|
30
|
+
import"./index-ke416mdc.js";
|
|
33
31
|
import"./index-bp5083x2.js";
|
|
34
32
|
import"./index-58e3y90n.js";
|
|
33
|
+
import"./index-s734jcsr.js";
|
|
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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withSqliteBackgroundWriter2,
|
|
3
3
|
withoutSqliteTransformPass2
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-beht37jy.js";
|
|
5
5
|
import"./index-pavzsdc6.js";
|
|
6
6
|
import"./index-g2q4htwp.js";
|
|
7
7
|
import"./index-j75v2476.js";
|
|
@@ -96,20 +96,20 @@ function backfillMessageTimesBatch(db, reader, batchSize = MESSAGE_TIME_BACKFILL
|
|
|
96
96
|
completed
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
async function runMessageTimeBackfill(db, reader) {
|
|
99
|
+
async function runMessageTimeBackfill(db, reader, signal) {
|
|
100
100
|
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
101
|
-
|
|
101
|
+
while (!signal?.aborted) {
|
|
102
102
|
const progress = backfillMessageTimesBatch(db, reader);
|
|
103
103
|
if (progress.completed)
|
|
104
104
|
return;
|
|
105
105
|
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function startMessageTimeBackfill(db, reader) {
|
|
108
|
+
function startMessageTimeBackfill(db, reader, signal) {
|
|
109
109
|
const active = activeBackfills.get(db);
|
|
110
110
|
if (active)
|
|
111
111
|
return active;
|
|
112
|
-
const run = withoutSqliteTransformPass2(() => withSqliteBackgroundWriter2(() => runMessageTimeBackfill(db, reader))).finally(() => activeBackfills.delete(db));
|
|
112
|
+
const run = withoutSqliteTransformPass2(() => withSqliteBackgroundWriter2(() => runMessageTimeBackfill(db, reader, signal))).finally(() => activeBackfills.delete(db));
|
|
113
113
|
activeBackfills.set(db, run);
|
|
114
114
|
return run;
|
|
115
115
|
}
|
package/dist/migration-worker.js
CHANGED
|
@@ -6,23 +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-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
22
|
+
} from "./index-fb2qxs2y.js";
|
|
23
|
+
import"./index-v0p37hm2.js";
|
|
24
|
+
import"./index-s734jcsr.js";
|
|
25
|
+
import"./index-a6mc0v4d.js";
|
|
26
|
+
import"./index-c5pytzne.js";
|
|
27
|
+
import"./index-ke416mdc.js";
|
|
26
28
|
import {
|
|
27
29
|
closeQuietly
|
|
28
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":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAUvF,OAAO,EAEH,KAAK,wBAAwB,EAChC,MAAM,8DAA8D,CAAC;AAOtE,OAAO,KAAK,EACR,aAAa,EACb,iBAAiB,EACpB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"dream-timer.d.ts","sourceRoot":"","sources":["../../src/plugin/dream-timer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAUvF,OAAO,EAEH,KAAK,wBAAwB,EAChC,MAAM,8DAA8D,CAAC;AAOtE,OAAO,KAAK,EACR,aAAa,EACb,iBAAiB,EACpB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kDAAkD,CAAC;AAoC/F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAC;AAEhG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAIpF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,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BAA2D,CAAC;;oBAA4D,CAAC;uBAAiC,CAAC;yBAAoC,CAAC;;;;;;0BAAq35C,CAAC;;;;;;;;;;;;;;;;GADh49C"}
|
package/dist/{project-embedding-registry-x45bv3qr.js → project-embedding-registry-z74mhqkf.js}
RENAMED
|
@@ -34,19 +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-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
40
|
+
import"./index-bjcnntmz.js";
|
|
41
|
+
import"./index-wgypt3cs.js";
|
|
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
|
+
import"./index-v0p37hm2.js";
|
|
47
49
|
import"./index-k29z4aqh.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
+
import"./index-c5pytzne.js";
|
|
51
|
+
import"./index-beht37jy.js";
|
|
50
52
|
import"./index-j75v2476.js";
|
|
51
53
|
import"./index-g2q4htwp.js";
|
|
52
54
|
import"./index-pavzsdc6.js";
|