@cortexkit/opencode-magic-context 0.49.2 → 0.49.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -38
- package/dist/auto-search-worker.js +3 -3
- package/dist/compaction-marker-candidates-dd638ypn.js +19 -0
- package/dist/compaction-marker-candidates-worker.js +24 -0
- package/dist/{conflict-warning-hook-asnt6hfc.js → conflict-warning-hook-ae8nmv7c.js} +5 -4
- package/dist/{context-tfyhtdcs.js → context-yg023c5r.js} +64 -30
- package/dist/{embedding-backfill-wyc3ykyf.js → embedding-backfill-aj488s8x.js} +5 -5
- package/dist/features/magic-context/compaction-marker-candidates-worker.d.ts +2 -0
- package/dist/features/magic-context/compaction-marker-candidates-worker.d.ts.map +1 -0
- package/dist/features/magic-context/compaction-marker-candidates.d.ts +47 -0
- package/dist/features/magic-context/compaction-marker-candidates.d.ts.map +1 -0
- package/dist/features/magic-context/compaction-marker.d.ts +12 -0
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/historian-failure-reason.d.ts +7 -0
- package/dist/features/magic-context/historian-failure-reason.d.ts.map +1 -0
- package/dist/features/magic-context/memory/project-identity.d.ts +5 -1
- package/dist/features/magic-context/memory/project-identity.d.ts.map +1 -1
- package/dist/features/magic-context/message-index-async.d.ts +3 -0
- package/dist/features/magic-context/message-index-async.d.ts.map +1 -1
- package/dist/features/magic-context/message-index.d.ts.map +1 -1
- package/dist/features/magic-context/storage-clone.d.ts +2 -0
- package/dist/features/magic-context/storage-clone.d.ts.map +1 -1
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/features/magic-context/storage-tags.d.ts +1 -1
- package/dist/features/magic-context/storage-tags.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts +3 -0
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- 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-types.d.ts +3 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/history-boundary-repair.d.ts +11 -2
- package/dist/hooks/magic-context/history-boundary-repair.d.ts.map +1 -1
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts +4 -3
- package/dist/hooks/magic-context/protected-tail-boundary.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts +10 -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/rust-mode-transform.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/{index-p0n5ryq8.js → index-2mqps3c1.js} +19 -9
- package/dist/{index-sfhndpcb.js → index-3wckxwfp.js} +39 -39
- package/dist/{index-gzky5rva.js → index-41gqa557.js} +4 -2
- package/dist/{index-r2zcs71c.js → index-7ndnvw7a.js} +1 -1
- package/dist/{index-sv0bb7vg.js → index-7zg9dvx0.js} +35 -4
- package/dist/{index-xgrwmj82.js → index-bhk710rw.js} +1 -1
- package/dist/{index-fg00p1cg.js → index-c0b01zrc.js} +2 -2
- package/dist/{index-eypn4ba6.js → index-dd18gej8.js} +3 -3
- package/dist/{index-rafsaxac.js → index-fjtgekd4.js} +2 -2
- package/dist/{index-fdtkt5r1.js → index-fst3t0d9.js} +9 -9
- package/dist/{index-h5zfkjyk.js → index-jpm52v9x.js} +6 -24
- package/dist/{index-s7fc0fkn.js → index-m4p77myp.js} +1 -1
- package/dist/{index-6tfxmc4n.js → index-p2hs3rps.js} +4 -4
- package/dist/{index-0pjvpfkf.js → index-qvr78ej6.js} +1 -1
- package/dist/index-v0p37hm2.js +22 -0
- package/dist/{index-zfzdpeq2.js → index-v4bqjy56.js} +4662 -4545
- package/dist/{index-xnanvj3w.js → index-x3y1np1h.js} +604 -576
- package/dist/{index-att4bfan.js → index-xfbfrngb.js} +1 -1
- package/dist/{index-nydv6g8r.js → index-yqps2zsv.js} +44 -6
- package/dist/index-yxawqmdd.js +212 -0
- package/dist/{index-zg8yq4ya.js → index-znzgze2v.js} +3 -3
- package/dist/index.js +38 -35
- package/dist/{message-index-bounded-hqktkhdy.js → message-index-bounded-pv6ct15d.js} +18 -17
- package/dist/message-index-jqa7qd0s.js +60 -0
- package/dist/migration-worker.js +3 -3
- package/dist/{project-embedding-registry-0gv3h6y8.js → project-embedding-registry-fcmszatg.js} +4 -4
- package/dist/raw-ordinal-warmup-worker.js +22 -5
- package/dist/{read-session-chunk-5mh0bh8y.js → read-session-chunk-cwgjwjd0.js} +7 -6
- package/dist/{read-session-raw-8sjbc9h0.js → read-session-raw-z38cn0as.js} +2 -1
- package/dist/{recomp-orchestrator-kpkhkjhq.js → recomp-orchestrator-xw9wt5bm.js} +19 -17
- package/dist/{search-p9w39qv4.js → search-v1t47s2q.js} +14 -13
- package/dist/{send-session-notification-xffh3bbe.js → send-session-notification-yp9m5g4p.js} +4 -3
- package/dist/shared/tag-owner-id.d.ts +1 -0
- package/dist/shared/tag-owner-id.d.ts.map +1 -1
- package/dist/{storage-tags-k0pda32s.js → storage-tags-0ssbmzg9.js} +2 -2
- package/dist/{transform-postprocess-phase-481j5a7z.js → transform-postprocess-phase-ttra554y.js} +19 -17
- package/dist/v2/auto-search-worker.js +3 -3
- package/dist/v2/compaction-marker-candidates-1s21e2fz.js +18 -0
- package/dist/v2/compaction-marker-candidates-worker.js +24 -0
- package/dist/v2/{context-gsdtha5v.js → context-6en6a8ar.js} +121 -50
- package/dist/v2/{embedding-backfill-dbvjbcmm.js → embedding-backfill-9hbkfvnz.js} +5 -5
- package/dist/v2/{message-index-bounded-p6v0n8qh.js → message-index-bounded-c0810p5w.js} +17 -16
- package/dist/v2/message-index-h8ssgq3q.js +59 -0
- package/dist/v2/migration-worker.js +3 -3
- package/dist/v2/{project-embedding-registry-nyq7z8y6.js → project-embedding-registry-42th7k1z.js} +4 -4
- package/dist/v2/raw-ordinal-warmup-worker.js +22 -5
- package/dist/v2/{read-session-chunk-fhyfe4qa.js → read-session-chunk-n86v9xfg.js} +6 -5
- package/dist/v2/{read-session-raw-j8dvp7f4.js → read-session-raw-3b3ehga4.js} +2 -1
- package/dist/v2/{recomp-orchestrator-5xy7w136.js → recomp-orchestrator-krvsbnds.js} +16 -14
- package/dist/v2/{search-j7bakcwa.js → search-048v8y02.js} +13 -12
- package/dist/v2/{send-session-notification-f6v698r5.js → send-session-notification-a4h2azxa.js} +2 -1
- package/dist/v2/{server-bgzy0phk.js → server-3bc6k4k4.js} +62 -33
- package/dist/v2/{server-7h861yms.js → server-3dqjhchy.js} +5 -18
- package/dist/v2/{server-c7n2ftng.js → server-4n2tknpc.js} +34 -3
- package/dist/v2/server-51779zs2.js +19 -0
- package/dist/v2/{server-kh958yj8.js → server-5zrpr764.js} +1 -1
- package/dist/v2/{server-6tcrjfw8.js → server-8pqnnmf9.js} +1 -1
- package/dist/v2/server-9290a1mb.js +212 -0
- package/dist/v2/{server-7vkj6zhb.js → server-9a6v0wth.js} +3 -3
- package/dist/v2/{server-1fszbabv.js → server-cjz51jm2.js} +2 -2
- package/dist/v2/{server-7spkq1y6.js → server-e2v4m8xe.js} +4084 -3967
- package/dist/v2/{server-mqvtz7wz.js → server-hetyb88z.js} +9 -9
- package/dist/v2/{server-4c7jt8gq.js → server-pcygfdbs.js} +44 -6
- package/dist/v2/{server-8xmq9h3f.js → server-q6j5dasr.js} +4 -2
- package/dist/v2/{server-zbxjj2mz.js → server-rygvffsf.js} +2 -2
- package/dist/v2/server.js +4 -4
- package/dist/v2/{storage-tags-5yxrvkaf.js → storage-tags-3a4cavqb.js} +2 -2
- package/dist/v2/{wrapup-orchestrator-yem5422s.js → wrapup-orchestrator-r2v7kgy3.js} +14 -12
- package/dist/{wrapup-orchestrator-xvrr27ws.js → wrapup-orchestrator-z7agncp8.js} +20 -18
- package/package.json +3 -3
- package/src/config/latch-permanence-guard.test.ts +6 -1
- package/src/shared/sqlite-writer-diagnostics.test.ts +21 -10
- package/src/shared/tag-owner-id.ts +13 -0
- package/src/shared/tag-transcript.test.ts +6 -1
- package/src/shared/tag-transcript.ts +2 -1
- package/src/shared/windows-hidden-spawns.test.ts +60 -4
- /package/dist/{index-69vas84q.js → index-e6xnpach.js} +0 -0
- /package/dist/{index-p1hnwfd8.js → index-gcdb3rqw.js} +0 -0
- /package/dist/v2/{index-69vas84q.js → index-e6xnpach.js} +0 -0
- /package/dist/v2/{server-s2st631p.js → server-8wcf79fe.js} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MESSAGE_INDEX_MAX_FTS_BYTES2,
|
|
3
|
+
messageIndexSkipKey2,
|
|
4
|
+
toMessageIndexSource2,
|
|
5
|
+
getMessageIndexSourceIdentity2,
|
|
6
|
+
isMessageIndexSourceCurrent2,
|
|
7
|
+
getLastIndexedOrdinal2,
|
|
8
|
+
getIndexedMessageCorpusSize2,
|
|
9
|
+
markMessageIndexDirty2,
|
|
10
|
+
getMessageIndexReconciliationStartOrdinal2,
|
|
11
|
+
isMessageIndexReconciledThrough2,
|
|
12
|
+
deleteIndexedMessage2,
|
|
13
|
+
clearIndexedMessagesInTransaction2,
|
|
14
|
+
clearIndexedMessages2,
|
|
15
|
+
getIndexableContent2,
|
|
16
|
+
indexSingleMessage2,
|
|
17
|
+
indexMessagesAfterOrdinal2,
|
|
18
|
+
indexSourcesAfterOrdinal2,
|
|
19
|
+
sweepOrphanedOpenCodeMessageIndexes2
|
|
20
|
+
} from "./index-3wckxwfp.js";
|
|
21
|
+
import"./index-gcdb3rqw.js";
|
|
22
|
+
import"./index-vkbqdnkj.js";
|
|
23
|
+
import"./index-6m7rdv7y.js";
|
|
24
|
+
import"./index-7w18gg78.js";
|
|
25
|
+
import"./index-7zg9dvx0.js";
|
|
26
|
+
import"./index-yqps2zsv.js";
|
|
27
|
+
import"./index-1zx87sdm.js";
|
|
28
|
+
import"./index-qvr78ej6.js";
|
|
29
|
+
import"./index-jpm52v9x.js";
|
|
30
|
+
import"./index-v0p37hm2.js";
|
|
31
|
+
import"./index-k6xvbj2e.js";
|
|
32
|
+
import"./index-h2wc01qk.js";
|
|
33
|
+
import"./index-1bt88epp.js";
|
|
34
|
+
import"./index-58e3y90n.js";
|
|
35
|
+
import"./index-4mjhqadz.js";
|
|
36
|
+
import"./index-kb9nn0a0.js";
|
|
37
|
+
import"./index-qx53vezw.js";
|
|
38
|
+
import"./index-nsjyysj0.js";
|
|
39
|
+
import"./index-0sahzkwr.js";
|
|
40
|
+
import"./index-pavzsdc6.js";
|
|
41
|
+
export {
|
|
42
|
+
MESSAGE_INDEX_MAX_FTS_BYTES2 as MESSAGE_INDEX_MAX_FTS_BYTES,
|
|
43
|
+
clearIndexedMessages2 as clearIndexedMessages,
|
|
44
|
+
clearIndexedMessagesInTransaction2 as clearIndexedMessagesInTransaction,
|
|
45
|
+
deleteIndexedMessage2 as deleteIndexedMessage,
|
|
46
|
+
getIndexableContent2 as getIndexableContent,
|
|
47
|
+
getIndexedMessageCorpusSize2 as getIndexedMessageCorpusSize,
|
|
48
|
+
getLastIndexedOrdinal2 as getLastIndexedOrdinal,
|
|
49
|
+
getMessageIndexReconciliationStartOrdinal2 as getMessageIndexReconciliationStartOrdinal,
|
|
50
|
+
getMessageIndexSourceIdentity2 as getMessageIndexSourceIdentity,
|
|
51
|
+
indexMessagesAfterOrdinal2 as indexMessagesAfterOrdinal,
|
|
52
|
+
indexSingleMessage2 as indexSingleMessage,
|
|
53
|
+
indexSourcesAfterOrdinal2 as indexSourcesAfterOrdinal,
|
|
54
|
+
isMessageIndexReconciledThrough2 as isMessageIndexReconciledThrough,
|
|
55
|
+
isMessageIndexSourceCurrent2 as isMessageIndexSourceCurrent,
|
|
56
|
+
markMessageIndexDirty2 as markMessageIndexDirty,
|
|
57
|
+
messageIndexSkipKey2 as messageIndexSkipKey,
|
|
58
|
+
sweepOrphanedOpenCodeMessageIndexes2 as sweepOrphanedOpenCodeMessageIndexes,
|
|
59
|
+
toMessageIndexSource2 as toMessageIndexSource
|
|
60
|
+
};
|
package/dist/migration-worker.js
CHANGED
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
import"./index-fr0wbhdn.js";
|
|
11
11
|
import {
|
|
12
12
|
runMigrationsWithRetry
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-xfbfrngb.js";
|
|
14
14
|
import"./index-1bt88epp.js";
|
|
15
15
|
import"./index-58e3y90n.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-41gqa557.js";
|
|
17
17
|
import"./index-6m7rdv7y.js";
|
|
18
18
|
import"./index-fb3zxn06.js";
|
|
19
19
|
import {
|
|
20
20
|
setSqlitePragmaConfig,
|
|
21
21
|
initializeDatabase
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-znzgze2v.js";
|
|
23
23
|
import"./index-7w18gg78.js";
|
|
24
24
|
import"./index-qx53vezw.js";
|
|
25
25
|
import"./index-h2wc01qk.js";
|
package/dist/{project-embedding-registry-0gv3h6y8.js → project-embedding-registry-fcmszatg.js}
RENAMED
|
@@ -34,18 +34,18 @@ import {
|
|
|
34
34
|
sweepAllRegisteredProjects2,
|
|
35
35
|
_setTestProviderFactoryForProject2,
|
|
36
36
|
_resetProjectEmbeddingRegistryForTests2
|
|
37
|
-
} from "./index-
|
|
38
|
-
import"./index-
|
|
37
|
+
} from "./index-c0b01zrc.js";
|
|
38
|
+
import"./index-gcdb3rqw.js";
|
|
39
39
|
import"./index-4dhv7mqz.js";
|
|
40
40
|
import"./index-qt1qqasc.js";
|
|
41
41
|
import"./index-gbmqa9x9.js";
|
|
42
42
|
import"./index-vkbqdnkj.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-41gqa557.js";
|
|
44
44
|
import"./index-7w18gg78.js";
|
|
45
45
|
import"./index-k6xvbj2e.js";
|
|
46
|
-
import"./index-qx53vezw.js";
|
|
47
46
|
import"./index-4mjhqadz.js";
|
|
48
47
|
import"./index-kb9nn0a0.js";
|
|
48
|
+
import"./index-qx53vezw.js";
|
|
49
49
|
import"./index-nsjyysj0.js";
|
|
50
50
|
import"./index-0sahzkwr.js";
|
|
51
51
|
import"./index-pavzsdc6.js";
|
|
@@ -7,14 +7,31 @@ var input = workerData;
|
|
|
7
7
|
port.postMessage({ kind: "accepted" });
|
|
8
8
|
var [{ Database }, { scanRawSessionSummaryRows }] = await Promise.all([
|
|
9
9
|
import("./sqlite-mhjkerzq.js"),
|
|
10
|
-
import("./read-session-raw-
|
|
10
|
+
import("./read-session-raw-z38cn0as.js")
|
|
11
11
|
]);
|
|
12
12
|
var db;
|
|
13
13
|
var reply;
|
|
14
14
|
try {
|
|
15
|
-
db = input.indexMessage ? new Database(input.path) : new Database(input.path, { readonly: true });
|
|
15
|
+
db = input.indexMessage || input.orphanSweep ? new Database(input.path) : new Database(input.path, { readonly: true });
|
|
16
16
|
db.exec("PRAGMA busy_timeout = 250");
|
|
17
|
-
if (input.
|
|
17
|
+
if (input.orphanSweep) {
|
|
18
|
+
const [
|
|
19
|
+
{ setHarness },
|
|
20
|
+
{ sweepOrphanedOpenCodeMessageIndexes },
|
|
21
|
+
{ configureContextDatabasePragmas }
|
|
22
|
+
] = await Promise.all([
|
|
23
|
+
import("./harness-e4avh192.js"),
|
|
24
|
+
import("./message-index-jqa7qd0s.js"),
|
|
25
|
+
import("./sqlite-context-pragmas-mv9jqwjh.js")
|
|
26
|
+
]);
|
|
27
|
+
setHarness(input.harness ?? "opencode");
|
|
28
|
+
configureContextDatabasePragmas(db);
|
|
29
|
+
const sourcePath = input.orphanSweep.sourcePath;
|
|
30
|
+
reply = {
|
|
31
|
+
kind: "orphan-sweep",
|
|
32
|
+
result: sweepOrphanedOpenCodeMessageIndexes(db, () => sourcePath ? new Database(sourcePath, { readonly: true }) : null, input.orphanSweep.options)
|
|
33
|
+
};
|
|
34
|
+
} else if (input.indexMessage) {
|
|
18
35
|
const { setHarness } = await import("./harness-e4avh192.js");
|
|
19
36
|
setHarness(input.harness ?? "opencode");
|
|
20
37
|
const [
|
|
@@ -22,7 +39,7 @@ try {
|
|
|
22
39
|
{ configureContextDatabasePragmas },
|
|
23
40
|
{ registerSqliteDiagnosticSink }
|
|
24
41
|
] = await Promise.all([
|
|
25
|
-
import("./message-index-bounded-
|
|
42
|
+
import("./message-index-bounded-pv6ct15d.js"),
|
|
26
43
|
import("./sqlite-context-pragmas-mv9jqwjh.js"),
|
|
27
44
|
import("./sqlite-mhjkerzq.js")
|
|
28
45
|
]);
|
|
@@ -35,7 +52,7 @@ try {
|
|
|
35
52
|
const result = await indexMessageInShortChunks(writer, input.sessionId, message, input, () => !cancellation || Atomics.load(cancellation, 0) === 0);
|
|
36
53
|
reply = { kind: "indexed", inserted: result.inserted, measurements: result.measurements };
|
|
37
54
|
} else if (input.tagRatio !== undefined) {
|
|
38
|
-
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-
|
|
55
|
+
const { scanTagOwnerSummary, scanTagOwnerDelta } = await import("./storage-tags-0ssbmzg9.js");
|
|
39
56
|
const delta = input.tagState ? scanTagOwnerDelta(db, input.sessionId, input.tagState) : null;
|
|
40
57
|
if (delta)
|
|
41
58
|
reply = { kind: "tag-delta", delta };
|
|
@@ -34,21 +34,22 @@ import {
|
|
|
34
34
|
readSessionChunk2,
|
|
35
35
|
getRawSessionMessageIdsThrough2,
|
|
36
36
|
readRawSessionSeedTail2
|
|
37
|
-
} from "./index-
|
|
38
|
-
import"./index-
|
|
37
|
+
} from "./index-7zg9dvx0.js";
|
|
38
|
+
import"./index-yqps2zsv.js";
|
|
39
39
|
import"./index-1zx87sdm.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-qvr78ej6.js";
|
|
41
|
+
import"./index-jpm52v9x.js";
|
|
42
|
+
import"./index-v0p37hm2.js";
|
|
42
43
|
import"./index-k6xvbj2e.js";
|
|
43
44
|
import"./index-h2wc01qk.js";
|
|
44
45
|
import"./index-1bt88epp.js";
|
|
45
46
|
import"./index-58e3y90n.js";
|
|
47
|
+
import"./index-4mjhqadz.js";
|
|
48
|
+
import"./index-kb9nn0a0.js";
|
|
46
49
|
import {
|
|
47
50
|
hasMeaningfulUserText2,
|
|
48
51
|
extractTexts2
|
|
49
52
|
} from "./index-qx53vezw.js";
|
|
50
|
-
import"./index-4mjhqadz.js";
|
|
51
|
-
import"./index-kb9nn0a0.js";
|
|
52
53
|
import"./index-nsjyysj0.js";
|
|
53
54
|
import"./index-0sahzkwr.js";
|
|
54
55
|
import"./index-pavzsdc6.js";
|
|
@@ -25,7 +25,8 @@ import {
|
|
|
25
25
|
hasRawSessionMessageByIdFromDb2,
|
|
26
26
|
readRawSeedTailFromDb2,
|
|
27
27
|
readRawSessionBoundaryEndpointsFromDb2
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-jpm52v9x.js";
|
|
29
|
+
import"./index-v0p37hm2.js";
|
|
29
30
|
import"./index-kb9nn0a0.js";
|
|
30
31
|
import"./index-nsjyysj0.js";
|
|
31
32
|
import"./index-0sahzkwr.js";
|
|
@@ -7,42 +7,44 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
10
|
+
} from "./index-dd18gej8.js";
|
|
11
|
+
import"./index-v4bqjy56.js";
|
|
12
|
+
import"./index-yxawqmdd.js";
|
|
13
|
+
import"./index-sd3egckz.js";
|
|
14
|
+
import"./index-fjtgekd4.js";
|
|
15
|
+
import"./index-3wckxwfp.js";
|
|
16
|
+
import"./index-7ndnvw7a.js";
|
|
15
17
|
import"./index-7jzrrxap.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
+
import"./index-c0b01zrc.js";
|
|
19
|
+
import"./index-gcdb3rqw.js";
|
|
18
20
|
import"./index-4dhv7mqz.js";
|
|
19
21
|
import"./index-w23dh319.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-xgrwmj82.js";
|
|
22
|
+
import"./index-bhk710rw.js";
|
|
22
23
|
import"./index-qt1qqasc.js";
|
|
23
24
|
import"./index-x8a7jmkh.js";
|
|
24
25
|
import"./index-tqf7yg27.js";
|
|
25
26
|
import"./index-gbmqa9x9.js";
|
|
26
27
|
import"./index-vkbqdnkj.js";
|
|
27
|
-
import"./index-
|
|
28
|
+
import"./index-znzgze2v.js";
|
|
28
29
|
import"./index-fb3zxn06.js";
|
|
29
|
-
import"./index-
|
|
30
|
+
import"./index-xfbfrngb.js";
|
|
30
31
|
import"./index-6m7rdv7y.js";
|
|
31
32
|
import"./index-fr0wbhdn.js";
|
|
32
|
-
import"./index-
|
|
33
|
+
import"./index-41gqa557.js";
|
|
33
34
|
import"./index-7w18gg78.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
35
|
+
import"./index-7zg9dvx0.js";
|
|
36
|
+
import"./index-yqps2zsv.js";
|
|
36
37
|
import"./index-1zx87sdm.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-qvr78ej6.js";
|
|
39
|
+
import"./index-jpm52v9x.js";
|
|
40
|
+
import"./index-v0p37hm2.js";
|
|
39
41
|
import"./index-k6xvbj2e.js";
|
|
40
42
|
import"./index-h2wc01qk.js";
|
|
41
43
|
import"./index-1bt88epp.js";
|
|
42
44
|
import"./index-58e3y90n.js";
|
|
43
|
-
import"./index-qx53vezw.js";
|
|
44
45
|
import"./index-4mjhqadz.js";
|
|
45
46
|
import"./index-kb9nn0a0.js";
|
|
47
|
+
import"./index-qx53vezw.js";
|
|
46
48
|
import"./index-nsjyysj0.js";
|
|
47
49
|
import"./index-0sahzkwr.js";
|
|
48
50
|
import"./index-pavzsdc6.js";
|
|
@@ -5,34 +5,35 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
8
|
+
} from "./index-fst3t0d9.js";
|
|
9
|
+
import"./index-fjtgekd4.js";
|
|
10
|
+
import"./index-3wckxwfp.js";
|
|
11
|
+
import"./index-7ndnvw7a.js";
|
|
12
12
|
import"./index-7jzrrxap.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
import"./index-c0b01zrc.js";
|
|
14
|
+
import"./index-gcdb3rqw.js";
|
|
15
15
|
import"./index-4dhv7mqz.js";
|
|
16
16
|
import"./index-qt1qqasc.js";
|
|
17
17
|
import"./index-gbmqa9x9.js";
|
|
18
18
|
import"./index-vkbqdnkj.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-xfbfrngb.js";
|
|
20
20
|
import"./index-6m7rdv7y.js";
|
|
21
21
|
import"./index-fr0wbhdn.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-41gqa557.js";
|
|
23
23
|
import"./index-7w18gg78.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-7zg9dvx0.js";
|
|
25
|
+
import"./index-yqps2zsv.js";
|
|
26
26
|
import"./index-1zx87sdm.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-qvr78ej6.js";
|
|
28
|
+
import"./index-jpm52v9x.js";
|
|
29
|
+
import"./index-v0p37hm2.js";
|
|
29
30
|
import"./index-k6xvbj2e.js";
|
|
30
31
|
import"./index-h2wc01qk.js";
|
|
31
32
|
import"./index-1bt88epp.js";
|
|
32
33
|
import"./index-58e3y90n.js";
|
|
33
|
-
import"./index-qx53vezw.js";
|
|
34
34
|
import"./index-4mjhqadz.js";
|
|
35
35
|
import"./index-kb9nn0a0.js";
|
|
36
|
+
import"./index-qx53vezw.js";
|
|
36
37
|
import"./index-nsjyysj0.js";
|
|
37
38
|
import"./index-0sahzkwr.js";
|
|
38
39
|
import"./index-pavzsdc6.js";
|
package/dist/{send-session-notification-xffh3bbe.js → send-session-notification-yp9m5g4p.js}
RENAMED
|
@@ -8,11 +8,12 @@ import {
|
|
|
8
8
|
clearIgnoredMessages2,
|
|
9
9
|
observeIgnoredNotificationEvent2,
|
|
10
10
|
sendStatusNotification2
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-bhk710rw.js";
|
|
12
12
|
import"./index-qt1qqasc.js";
|
|
13
13
|
import"./index-tqf7yg27.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-qvr78ej6.js";
|
|
15
|
+
import"./index-jpm52v9x.js";
|
|
16
|
+
import"./index-v0p37hm2.js";
|
|
16
17
|
import"./index-58e3y90n.js";
|
|
17
18
|
import"./index-kb9nn0a0.js";
|
|
18
19
|
import"./index-nsjyysj0.js";
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* tag is treated as belonging to a message that does not exist.
|
|
12
12
|
*/
|
|
13
13
|
export declare const TEXT_TAG_IDENTITY_MARKER = ":mc-text-v1:";
|
|
14
|
+
export declare const PI_FALLBACK_PREFIXES_JSON: string;
|
|
14
15
|
/**
|
|
15
16
|
* The owning message id of a content tag id. An id with neither suffix is
|
|
16
17
|
* returned unchanged: it already is the message id.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-owner-id.d.ts","sourceRoot":"","sources":["../../src/shared/tag-owner-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AAKvD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMlE"}
|
|
1
|
+
{"version":3,"file":"tag-owner-id.d.ts","sourceRoot":"","sources":["../../src/shared/tag-owner-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,wBAAwB,iBAAiB,CAAC;AAKvD,eAAO,MAAM,yBAAyB,QAQrC,CAAC;AAKF;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMlE"}
|
|
@@ -60,11 +60,11 @@ import {
|
|
|
60
60
|
adoptNullOwnerToolTag2,
|
|
61
61
|
getCandidateToolOwners2,
|
|
62
62
|
pickNearestPriorOwner2
|
|
63
|
-
} from "./index-
|
|
63
|
+
} from "./index-yqps2zsv.js";
|
|
64
64
|
import"./index-1zx87sdm.js";
|
|
65
65
|
import"./index-1bt88epp.js";
|
|
66
|
-
import"./index-qx53vezw.js";
|
|
67
66
|
import"./index-kb9nn0a0.js";
|
|
67
|
+
import"./index-qx53vezw.js";
|
|
68
68
|
import"./index-nsjyysj0.js";
|
|
69
69
|
import"./index-0sahzkwr.js";
|
|
70
70
|
import"./index-pavzsdc6.js";
|
package/dist/{transform-postprocess-phase-481j5a7z.js → transform-postprocess-phase-ttra554y.js}
RENAMED
|
@@ -18,42 +18,44 @@ import {
|
|
|
18
18
|
finalizeMessageRepresentation2,
|
|
19
19
|
runPostTransformPhase2,
|
|
20
20
|
checkM0MutationDriftAndSignal2
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
21
|
+
} from "./index-2mqps3c1.js";
|
|
22
|
+
import"./index-v4bqjy56.js";
|
|
23
|
+
import"./index-yxawqmdd.js";
|
|
24
|
+
import"./index-sd3egckz.js";
|
|
25
|
+
import"./index-fjtgekd4.js";
|
|
26
|
+
import"./index-3wckxwfp.js";
|
|
27
|
+
import"./index-7ndnvw7a.js";
|
|
26
28
|
import"./index-7jzrrxap.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
+
import"./index-c0b01zrc.js";
|
|
30
|
+
import"./index-gcdb3rqw.js";
|
|
29
31
|
import"./index-4dhv7mqz.js";
|
|
30
32
|
import"./index-w23dh319.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-xgrwmj82.js";
|
|
33
|
+
import"./index-bhk710rw.js";
|
|
33
34
|
import"./index-qt1qqasc.js";
|
|
34
35
|
import"./index-x8a7jmkh.js";
|
|
35
36
|
import"./index-tqf7yg27.js";
|
|
36
37
|
import"./index-gbmqa9x9.js";
|
|
37
38
|
import"./index-vkbqdnkj.js";
|
|
38
|
-
import"./index-
|
|
39
|
+
import"./index-znzgze2v.js";
|
|
39
40
|
import"./index-fb3zxn06.js";
|
|
40
|
-
import"./index-
|
|
41
|
+
import"./index-xfbfrngb.js";
|
|
41
42
|
import"./index-6m7rdv7y.js";
|
|
42
43
|
import"./index-fr0wbhdn.js";
|
|
43
|
-
import"./index-
|
|
44
|
+
import"./index-41gqa557.js";
|
|
44
45
|
import"./index-7w18gg78.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-7zg9dvx0.js";
|
|
47
|
+
import"./index-yqps2zsv.js";
|
|
47
48
|
import"./index-1zx87sdm.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-qvr78ej6.js";
|
|
50
|
+
import"./index-jpm52v9x.js";
|
|
51
|
+
import"./index-v0p37hm2.js";
|
|
50
52
|
import"./index-k6xvbj2e.js";
|
|
51
53
|
import"./index-h2wc01qk.js";
|
|
52
54
|
import"./index-1bt88epp.js";
|
|
53
55
|
import"./index-58e3y90n.js";
|
|
54
|
-
import"./index-qx53vezw.js";
|
|
55
56
|
import"./index-4mjhqadz.js";
|
|
56
57
|
import"./index-kb9nn0a0.js";
|
|
58
|
+
import"./index-qx53vezw.js";
|
|
57
59
|
import"./index-nsjyysj0.js";
|
|
58
60
|
import"./index-0sahzkwr.js";
|
|
59
61
|
import"./index-pavzsdc6.js";
|
|
@@ -17,11 +17,11 @@ var [
|
|
|
17
17
|
{ setHarness },
|
|
18
18
|
{ Database }
|
|
19
19
|
] = await Promise.all([
|
|
20
|
-
import("./embedding-backfill-
|
|
20
|
+
import("./embedding-backfill-9hbkfvnz.js"),
|
|
21
21
|
import("./embedding-cache-mgyr73ef.js"),
|
|
22
22
|
import("./storage-memory-07fx57k6.js"),
|
|
23
|
-
import("./project-embedding-registry-
|
|
24
|
-
import("./search-
|
|
23
|
+
import("./project-embedding-registry-42th7k1z.js"),
|
|
24
|
+
import("./search-048v8y02.js"),
|
|
25
25
|
import("./embedding-activity-g1dhes6g.js"),
|
|
26
26
|
import("./harness-e4avh192.js"),
|
|
27
27
|
import("./sqlite-mhjkerzq.js")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isMarkerCandidateBasisCurrent2,
|
|
3
|
+
invalidateMarkerCandidateBasis2,
|
|
4
|
+
readMarkerCandidateBasis2,
|
|
5
|
+
prepareMarkerCandidateBasis2,
|
|
6
|
+
scanMarkerCandidateSnapshot2
|
|
7
|
+
} from "./server-9290a1mb.js";
|
|
8
|
+
import"./server-51779zs2.js";
|
|
9
|
+
import"./server-kb9nn0a0.js";
|
|
10
|
+
import"./server-t4k4qexw.js";
|
|
11
|
+
import"./server-pavzsdc6.js";
|
|
12
|
+
export {
|
|
13
|
+
invalidateMarkerCandidateBasis2 as invalidateMarkerCandidateBasis,
|
|
14
|
+
isMarkerCandidateBasisCurrent2 as isMarkerCandidateBasisCurrent,
|
|
15
|
+
prepareMarkerCandidateBasis2 as prepareMarkerCandidateBasis,
|
|
16
|
+
readMarkerCandidateBasis2 as readMarkerCandidateBasis,
|
|
17
|
+
scanMarkerCandidateSnapshot2 as scanMarkerCandidateSnapshot
|
|
18
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/features/magic-context/compaction-marker-candidates-worker.ts
|
|
2
|
+
import { parentPort, workerData } from "node:worker_threads";
|
|
3
|
+
var port = parentPort;
|
|
4
|
+
if (!port)
|
|
5
|
+
throw new Error("marker candidate worker requires a parent port");
|
|
6
|
+
port.postMessage({ kind: "accepted" });
|
|
7
|
+
var [{ Database }, { scanMarkerCandidateSnapshot }] = await Promise.all([
|
|
8
|
+
import("./sqlite-mhjkerzq.js"),
|
|
9
|
+
import("./compaction-marker-candidates-1s21e2fz.js")
|
|
10
|
+
]);
|
|
11
|
+
var input = workerData;
|
|
12
|
+
var db;
|
|
13
|
+
var reply;
|
|
14
|
+
try {
|
|
15
|
+
db = new Database(input.path, { readonly: true });
|
|
16
|
+
db.exec("PRAGMA busy_timeout=250");
|
|
17
|
+
reply = { kind: "candidates", snapshot: scanMarkerCandidateSnapshot(db, input.sessionId) };
|
|
18
|
+
} catch (error) {
|
|
19
|
+
reply = { kind: "error", error: error instanceof Error ? error.message : String(error) };
|
|
20
|
+
} finally {
|
|
21
|
+
db?.close();
|
|
22
|
+
}
|
|
23
|
+
port.postMessage(reply);
|
|
24
|
+
port.close();
|