@cortexkit/opencode-magic-context 0.49.57 → 0.49.59
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/{announcement-9pr71hd5.js → announcement-p41dde4h.js} +2 -2
- package/dist/auto-search-worker.js +5 -5
- package/dist/chunk-embedding-write-worker.js +13 -13
- package/dist/{compaction-marker-candidates-8hazqfvj.js → compaction-marker-candidates-1ndjqh9k.js} +2 -2
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-gfd093f8.js → compartment-chunk-embedding-ymc9mtwv.js} +7 -7
- package/dist/{conflict-warning-hook-56qpq7ws.js → conflict-warning-hook-m8yezwdj.js} +7 -7
- package/dist/{context-a617pcqe.js → context-aexc6pbs.js} +41 -40
- package/dist/{derive-budgets-z53424qx.js → derive-budgets-heypxqdz.js} +2 -2
- package/dist/{embedding-backfill-2dvf3rcn.js → embedding-backfill-sk7agn5v.js} +12 -12
- package/dist/embedding-worker-process.js +1 -1
- package/dist/embedding-worker.js +4 -4
- package/dist/{history-owner-n50e0e8y.js → history-owner-xqfsvf9k.js} +2 -2
- package/dist/hooks/magic-context/command-handler.d.ts +2 -0
- package/dist/hooks/magic-context/command-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/{index-5ptp2de1.js → index-0cz8bsyx.js} +9 -9
- package/dist/{index-r9agn061.js → index-1sq1krqw.js} +4 -4
- package/dist/{index-b6rdv8re.js → index-3hk445am.js} +4 -4
- package/dist/{index-by14cr73.js → index-3yyfftqq.js} +11 -11
- package/dist/{index-wpcjxzrm.js → index-575njz7q.js} +39 -39
- package/dist/{index-gapnh6tk.js → index-5ps3axh5.js} +1 -1
- package/dist/{index-0tz2fzpq.js → index-5vsk2cpp.js} +1 -1
- package/dist/{index-90z05d0p.js → index-832w615x.js} +1 -1
- package/dist/{index-sk6p6esd.js → index-8sc7vqt7.js} +4 -4
- package/dist/{index-cd3vp8xa.js → index-98qy103c.js} +1 -1
- package/dist/{index-3600gm9z.js → index-a09sw9fx.js} +113 -73
- package/dist/{index-29ff546v.js → index-d0feqcs5.js} +6 -6
- package/dist/{index-gz001bx7.js → index-e6ncz7a6.js} +1 -1
- package/dist/{index-reyws9fy.js → index-esqcwes7.js} +1 -1
- package/dist/{index-h62j8z2r.js → index-ev2rrjfc.js} +4 -4
- package/dist/{index-sx1sppd6.js → index-gq1g9a3a.js} +8 -8
- package/dist/{index-ga5q492k.js → index-gqf8r04r.js} +1 -1
- package/dist/{index-x8e50d8f.js → index-gth4t4ar.js} +5 -5
- package/dist/{index-0r2jk2na.js → index-j4aeh6tx.js} +14 -14
- package/dist/{index-qperbvjn.js → index-jg7sbt3v.js} +2 -2
- package/dist/{index-9mggb1nv.js → index-jrj95cce.js} +2 -2
- package/dist/{index-1wsb0e8h.js → index-kv4ntrr6.js} +5 -5
- package/dist/{index-tad3can2.js → index-m0pwswv9.js} +1 -1
- package/dist/{index-pdh4tdcq.js → index-n6aye6ny.js} +2 -2
- package/dist/{index-hsyczpn7.js → index-pxnzyvjc.js} +2 -2
- package/dist/{index-kn1bx21r.js → index-pzvdf7sr.js} +3 -3
- package/dist/{index-36wseasx.js → index-q7q6qp1f.js} +1 -1
- package/dist/{index-zyanqxtc.js → index-s2jdky2x.js} +3 -3
- package/dist/{index-2ny9xwdn.js → index-s32f8y67.js} +2 -2
- package/dist/{index-pdnan1e3.js → index-s3t4vk21.js} +7 -7
- package/dist/{index-hexdee98.js → index-snbpdpa3.js} +4 -4
- package/dist/{index-dhdv88e5.js → index-tebcx987.js} +1 -1
- package/dist/{index-5gqszjq9.js → index-tq20edcs.js} +3 -3
- package/dist/{index-0k283v27.js → index-tzy5h4x6.js} +1 -1
- package/dist/{index-em92bp7f.js → index-x40zr813.js} +2 -2
- package/dist/{index-sv5tn72j.js → index-xx05vta0.js} +4 -4
- package/dist/{index-82dfe8en.js → index-ywrz4wy2.js} +9 -4
- package/dist/{index-bev3zks1.js → index-ywxvdwmj.js} +9 -9
- package/dist/{index-xstbytjn.js → index-zb4h9nrk.js} +2 -2
- package/dist/{index-2vsd5064.js → index-zxj39ba2.js} +4 -4
- package/dist/index.js +51 -50
- package/dist/{logger-sw7z6sjz.js → logger-d7c8akh9.js} +1 -1
- package/dist/{message-fts-rowid-map-kx1bsdyg.js → message-fts-rowid-map-0xx8ge09.js} +4 -4
- package/dist/{message-index-bounded-xav3h8qe.js → message-index-bounded-f6yz4xq8.js} +10 -10
- package/dist/{message-time-backfill-hp2jgn49.js → message-time-backfill-pz5981mf.js} +2 -2
- package/dist/migration-worker.js +10 -10
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-f2azrq24.js → project-embedding-registry-c2sfnamh.js} +11 -11
- package/dist/raw-ordinal-warmup-worker.js +8 -8
- package/dist/{read-session-chunk-70aam2c1.js → read-session-chunk-8b1g06nz.js} +8 -8
- package/dist/{read-session-raw-04ger9zt.js → read-session-raw-3sc9231y.js} +2 -2
- package/dist/{recomp-orchestrator-xwsjrqcs.js → recomp-orchestrator-zqn9zwxn.js} +29 -29
- package/dist/{render-22ebrmep.js → render-nrfbtkkw.js} +19 -19
- package/dist/{safe-notification-target-mx5khyxf.js → safe-notification-target-d21swr3n.js} +2 -2
- package/dist/{search-archive-bqqf5p7f.js → search-archive-1ppdjfm9.js} +10 -10
- package/dist/{search-jfwb4ms3.js → search-xha0r30f.js} +22 -22
- package/dist/{send-session-notification-gamjee2f.js → send-session-notification-ykvt5k2s.js} +5 -5
- package/dist/shared/data-path.d.ts +31 -36
- package/dist/shared/data-path.d.ts.map +1 -1
- package/dist/shared/test-temp-dir.d.ts +28 -0
- package/dist/shared/test-temp-dir.d.ts.map +1 -1
- package/dist/{storage-tags-arnkn5t1.js → storage-tags-spet01yb.js} +5 -5
- package/dist/{transform-postprocess-phase-nejydt3q.js → transform-postprocess-phase-gxb3sp91.js} +30 -30
- package/dist/v2/auto-search-worker.js +5 -5
- package/dist/v2/chunk-embedding-write-worker.js +13 -13
- package/dist/v2/{compaction-marker-candidates-re14353a.js → compaction-marker-candidates-bp1bn579.js} +2 -2
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{compartment-chunk-embedding-0pxsrzrt.js → compartment-chunk-embedding-x6qw6mjk.js} +7 -7
- package/dist/v2/{context-4gxr2xd4.js → context-wszt0gbq.js} +43 -42
- package/dist/v2/{derive-budgets-w0815q82.js → derive-budgets-gw030jzt.js} +3 -3
- package/dist/v2/{embedding-backfill-48qbnh7p.js → embedding-backfill-j2xj86zn.js} +12 -12
- package/dist/v2/embedding-worker-process.js +1 -1
- package/dist/v2/embedding-worker.js +4 -4
- package/dist/v2/{history-owner-ep91wgqj.js → history-owner-260djmv5.js} +2 -2
- package/dist/v2/hooks/claude-agent-instructions.d.ts +27 -0
- package/dist/v2/hooks/claude-agent-instructions.d.ts.map +1 -0
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +15 -2
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/{logger-xnscpj6w.js → logger-zyf43np1.js} +1 -1
- package/dist/v2/{message-fts-rowid-map-57jh6xpb.js → message-fts-rowid-map-n8mcvcpz.js} +4 -4
- package/dist/v2/{message-index-bounded-sw8hyqw1.js → message-index-bounded-0w8eh8fc.js} +10 -10
- package/dist/v2/{message-time-backfill-baxebka0.js → message-time-backfill-ynb3vg6r.js} +2 -2
- package/dist/v2/migration-worker.js +10 -10
- package/dist/v2/{project-embedding-registry-kwahtjgg.js → project-embedding-registry-k0hjqt11.js} +11 -11
- package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
- package/dist/v2/{read-session-chunk-nqkn0yb4.js → read-session-chunk-dxs1tgt9.js} +8 -8
- package/dist/v2/{read-session-raw-3e482h3c.js → read-session-raw-wg5zc29f.js} +2 -2
- package/dist/v2/{recomp-orchestrator-1de5c0zr.js → recomp-orchestrator-76rv3b89.js} +30 -30
- package/dist/v2/{render-g44ksejs.js → render-9knrdrjs.js} +19 -19
- package/dist/v2/{safe-notification-target-9r79xnbt.js → safe-notification-target-y55z2zat.js} +2 -2
- package/dist/v2/{search-8dc9ex0a.js → search-a2a0qs3t.js} +21 -21
- package/dist/v2/{search-archive-5ycchnyp.js → search-archive-2jmyvj69.js} +10 -10
- package/dist/v2/{send-session-notification-95p89k7q.js → send-session-notification-8g4r97bp.js} +5 -5
- package/dist/v2/{server-7vrtk78d.js → server-3ap5dmhc.js} +1 -1
- package/dist/v2/{server-avfc9ezb.js → server-4r86tcs2.js} +3 -3
- package/dist/v2/{server-np27dgyt.js → server-5sbsnpkn.js} +1 -1
- package/dist/v2/{server-rz5jnhnv.js → server-6ash6z8z.js} +1 -1
- package/dist/v2/{server-beydmd68.js → server-88n85n60.js} +4 -4
- package/dist/v2/{server-g61hgy1y.js → server-8pdfmc27.js} +4 -4
- package/dist/v2/{server-gge95a03.js → server-8ycacd59.js} +6 -6
- package/dist/v2/{server-t5c8awdm.js → server-9ab9jnpq.js} +3 -3
- package/dist/v2/{server-dqwx9pdh.js → server-9emfsa60.js} +115 -75
- package/dist/v2/{server-r7nj8ga0.js → server-9m5r04ws.js} +5 -5
- package/dist/v2/{server-3yk44ddz.js → server-afsz3cmx.js} +1 -1
- package/dist/v2/{server-c8z2grq0.js → server-at0v0z4t.js} +1 -1
- package/dist/v2/{server-v817sf79.js → server-d07yxksx.js} +2 -2
- package/dist/v2/{server-kwtnrhv3.js → server-d706s5xn.js} +2 -2
- package/dist/v2/{server-ycvqg2s3.js → server-d9aayyxk.js} +4 -4
- package/dist/v2/{server-966dq3pd.js → server-ds8vpfkr.js} +2 -2
- package/dist/v2/{server-bb6kf05j.js → server-j8376q08.js} +9 -4
- package/dist/v2/{server-7waad75d.js → server-ja6swvmb.js} +11 -11
- package/dist/v2/{server-tmf0ayqp.js → server-jdfe07mp.js} +1 -1
- package/dist/v2/{server-6k0rnwbd.js → server-jn4pktdk.js} +4 -4
- package/dist/v2/{server-qp5sj6n5.js → server-jtq03rkb.js} +2 -2
- package/dist/v2/{server-sa1fdt41.js → server-kc5kb9ya.js} +1 -1
- package/dist/v2/{server-91gb0vh8.js → server-npdey91q.js} +1 -1
- package/dist/v2/{server-vqq3g1t7.js → server-qjff96a6.js} +4 -4
- package/dist/v2/{server-4x0xq8a1.js → server-rbtx6q5v.js} +1 -1
- package/dist/v2/{server-jwydbwcx.js → server-svx20ra2.js} +4 -4
- package/dist/v2/{server-v57wr0r9.js → server-t8tmrtcg.js} +9 -9
- package/dist/v2/{server-0ayyh3mx.js → server-tzh55x6d.js} +9 -9
- package/dist/v2/{server-5p0bjk3y.js → server-v1s0cb4v.js} +2 -2
- package/dist/v2/{server-mxsy9h1d.js → server-x6fn9x8q.js} +2 -2
- package/dist/v2/{server-b0357as4.js → server-xepx8t43.js} +2 -2
- package/dist/v2/{server-3jc6qmdz.js → server-y8xjr8rx.js} +1 -1
- package/dist/v2/{server-5kgesxck.js → server-ypaat9rj.js} +2 -2
- package/dist/v2/{server-rpmkz5ta.js → server-z5255w05.js} +8 -8
- package/dist/v2/server.js +5 -5
- package/dist/v2/{storage-tags-19da4c0m.js → storage-tags-50wsqg3t.js} +5 -5
- package/dist/v2/{v2-archive-reader-tgydjgfy.js → v2-archive-reader-ycjh6a2d.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-3871zj7c.js → wrapup-orchestrator-ejcx02g2.js} +30 -30
- package/dist/{v2-archive-reader-2czwvyc9.js → v2-archive-reader-wec0a8fx.js} +1 -1
- package/dist/wrapup-orchestrator-e7mczz6e.js +54 -0
- package/package.json +1 -1
- package/src/shared/data-path.test.ts +27 -10
- package/src/shared/data-path.ts +39 -39
- package/src/shared/test-temp-dir.ts +59 -0
- package/dist/wrapup-orchestrator-m1yzmgq4.js +0 -54
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./server-fr0wbhdn.js";
|
|
4
4
|
import {
|
|
5
5
|
log2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-j8376q08.js";
|
|
7
7
|
import {
|
|
8
8
|
ensureColumn,
|
|
9
9
|
healAllNullColumns,
|
|
10
10
|
installV95PerfSchema
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-xepx8t43.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveOpenCodeDbPath,
|
|
14
14
|
openCodeDbPathExists,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
normalizeStoredProjectPath,
|
|
22
22
|
storedPathBelongsToIdentity
|
|
23
|
-
} from "./server-
|
|
23
|
+
} from "./server-afsz3cmx.js";
|
|
24
24
|
import {
|
|
25
25
|
logSlowWriteTransaction
|
|
26
|
-
} from "./server-
|
|
26
|
+
} from "./server-5sbsnpkn.js";
|
|
27
27
|
|
|
28
28
|
// src/features/magic-context/migrations.ts
|
|
29
29
|
import { isMainThread } from "node:worker_threads";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./server-pavzsdc6.js";
|
|
4
4
|
import {
|
|
5
5
|
isUserHomeDirectory
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-afsz3cmx.js";
|
|
7
7
|
import {
|
|
8
8
|
logSlowWriteTransaction
|
|
9
|
-
} from "./server-
|
|
9
|
+
} from "./server-5sbsnpkn.js";
|
|
10
10
|
|
|
11
11
|
// src/features/magic-context/git-commits/sweep-coordinator.ts
|
|
12
12
|
var GIT_SWEEP_COOLDOWN_MS = 10 * 60 * 1000;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
importPluginModule,
|
|
6
6
|
sessionLog2
|
|
7
|
-
} from "./server-
|
|
7
|
+
} from "./server-j8376q08.js";
|
|
8
8
|
import {
|
|
9
9
|
isDefaultSessionTitle2
|
|
10
|
-
} from "./server-
|
|
10
|
+
} from "./server-npdey91q.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldHoldIgnoredNotification
|
|
13
|
-
} from "./server-
|
|
13
|
+
} from "./server-3ap5dmhc.js";
|
|
14
14
|
import {
|
|
15
15
|
getErrorMessage
|
|
16
16
|
} from "./server-y8v6yerm.js";
|
|
@@ -142,7 +142,7 @@ async function sendIgnoredMessageNow(client, sessionId, text, params, forcePersi
|
|
|
142
142
|
holdIgnoredNotification({ client, sessionId, text, params, forcePersist }, "during target checks");
|
|
143
143
|
return "queued";
|
|
144
144
|
}
|
|
145
|
-
const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-
|
|
145
|
+
const { waitForSafeNotificationTarget } = await importPluginModule(() => import("./safe-notification-target-y55z2zat.js"));
|
|
146
146
|
if (await waitForSafeNotificationTarget(client, sessionId) === "skip") {
|
|
147
147
|
sessionLog2(sessionId, "notification skipped (session not titled yet)");
|
|
148
148
|
return "skipped";
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
removeNestedBlocks,
|
|
4
4
|
hasMeaningfulUserText2,
|
|
5
5
|
extractTexts2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-y8xjr8rx.js";
|
|
7
7
|
import {
|
|
8
8
|
getHarness2
|
|
9
9
|
} from "./server-pavzsdc6.js";
|
|
10
10
|
import {
|
|
11
11
|
cleanUserText2
|
|
12
|
-
} from "./server-
|
|
12
|
+
} from "./server-8ycacd59.js";
|
|
13
13
|
import {
|
|
14
14
|
recordMessageFtsRowid2,
|
|
15
15
|
recordIndexedMessageTime2,
|
|
16
16
|
messageFtsOrdinalRangeIsMapped2,
|
|
17
17
|
deleteUnmappedMessageFtsRows2
|
|
18
|
-
} from "./server-
|
|
18
|
+
} from "./server-ds8vpfkr.js";
|
|
19
19
|
import {
|
|
20
20
|
logSlowWriteTransaction
|
|
21
|
-
} from "./server-
|
|
21
|
+
} from "./server-5sbsnpkn.js";
|
|
22
22
|
|
|
23
23
|
// src/features/magic-context/message-index.ts
|
|
24
24
|
import { createHash } from "node:crypto";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getMagicContextStorageDir,
|
|
11
11
|
log2,
|
|
12
12
|
sessionLog2
|
|
13
|
-
} from "./server-
|
|
13
|
+
} from "./server-j8376q08.js";
|
|
14
14
|
import {
|
|
15
15
|
prepareCachedStatement2,
|
|
16
16
|
withSqliteBackgroundWriter2,
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
} from "./server-gzy5w8ya.js";
|
|
19
19
|
import {
|
|
20
20
|
deleteUnmappedMessageFtsRows2
|
|
21
|
-
} from "./server-
|
|
21
|
+
} from "./server-ds8vpfkr.js";
|
|
22
22
|
import {
|
|
23
23
|
deleteChunkEmbedBackoffForSession2
|
|
24
|
-
} from "./server-
|
|
24
|
+
} from "./server-8pdfmc27.js";
|
|
25
25
|
import {
|
|
26
26
|
isPidAlive,
|
|
27
27
|
readProcessStartTime
|
|
28
|
-
} from "./server-
|
|
28
|
+
} from "./server-jdfe07mp.js";
|
|
29
29
|
import {
|
|
30
30
|
stripTagPrefix,
|
|
31
31
|
isRecord,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
getPendingPiCompactionMarkerState,
|
|
58
58
|
logPiCompactionMarkerClear,
|
|
59
59
|
isPrefixBoundThinkingModel
|
|
60
|
-
} from "./server-
|
|
60
|
+
} from "./server-88n85n60.js";
|
|
61
61
|
import {
|
|
62
62
|
BoundedSessionMap,
|
|
63
63
|
getMeasuredToolDefinitionTokens,
|
|
@@ -67,14 +67,14 @@ import {
|
|
|
67
67
|
tagRevisionKey,
|
|
68
68
|
tagIdentityRevisionKey,
|
|
69
69
|
deleteTagIdentityRevisions
|
|
70
|
-
} from "./server-
|
|
70
|
+
} from "./server-xepx8t43.js";
|
|
71
71
|
import {
|
|
72
72
|
withReadOnlySessionDb
|
|
73
|
-
} from "./server-
|
|
73
|
+
} from "./server-3ap5dmhc.js";
|
|
74
74
|
import {
|
|
75
75
|
layoutLkgPrefix,
|
|
76
76
|
assembleLkgPrefix
|
|
77
|
-
} from "./server-
|
|
77
|
+
} from "./server-jn4pktdk.js";
|
|
78
78
|
import {
|
|
79
79
|
gaDatabasePath2,
|
|
80
80
|
V2StoreReader2
|
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
} from "./server-avwt563y.js";
|
|
92
92
|
import {
|
|
93
93
|
logSlowWriteTransaction
|
|
94
|
-
} from "./server-
|
|
94
|
+
} from "./server-5sbsnpkn.js";
|
|
95
95
|
import {
|
|
96
96
|
ensurePrivateStorageDirectorySync,
|
|
97
97
|
writeStorageFileSync,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./server-gzy5w8ya.js";
|
|
14
14
|
import {
|
|
15
15
|
scheduleAfterBootQuiet
|
|
16
|
-
} from "./server-
|
|
16
|
+
} from "./server-afsz3cmx.js";
|
|
17
17
|
import {
|
|
18
18
|
getHarness2,
|
|
19
19
|
harnessOwnsOpenCodeStore2
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
importPluginModule,
|
|
25
25
|
writeForwardedLogLine2,
|
|
26
26
|
log2
|
|
27
|
-
} from "./server-
|
|
27
|
+
} from "./server-j8376q08.js";
|
|
28
28
|
import {
|
|
29
29
|
isOwnRpcServerRecord,
|
|
30
30
|
isPidAlive,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
parseRpcPortFile,
|
|
36
36
|
inspectProcessesAsync,
|
|
37
37
|
inspectWindowsProcessesSync
|
|
38
|
-
} from "./server-
|
|
38
|
+
} from "./server-jdfe07mp.js";
|
|
39
39
|
import {
|
|
40
40
|
configureContextDatabasePragmas2
|
|
41
41
|
} from "./server-fb3zxn06.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./server-96ztjvkn.js";
|
|
48
48
|
import {
|
|
49
49
|
startMessageFtsRowidMapBackfill2
|
|
50
|
-
} from "./server-
|
|
50
|
+
} from "./server-ds8vpfkr.js";
|
|
51
51
|
import {
|
|
52
52
|
LKG_SLOT_CHUNKS_DDL,
|
|
53
53
|
SESSION_REPLAY_DECISIONS_DDL,
|
|
@@ -57,14 +57,14 @@ import {
|
|
|
57
57
|
hasPendingMigrations,
|
|
58
58
|
getMainThreadMigrationBodyCount,
|
|
59
59
|
runMigrations
|
|
60
|
-
} from "./server-
|
|
60
|
+
} from "./server-jn4pktdk.js";
|
|
61
61
|
import {
|
|
62
62
|
setDatabase,
|
|
63
63
|
loadToolDefinitionMeasurements,
|
|
64
64
|
ensureColumn,
|
|
65
65
|
installV95PerfSchema,
|
|
66
66
|
installTagIdentityRevisionTrigger
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-xepx8t43.js";
|
|
68
68
|
import {
|
|
69
69
|
resolveOpenCodeDbPath,
|
|
70
70
|
hasV1MessageTables
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
} from "./server-8ajstryz.js";
|
|
78
78
|
import {
|
|
79
79
|
logSlowWriteTransaction
|
|
80
|
-
} from "./server-
|
|
80
|
+
} from "./server-5sbsnpkn.js";
|
|
81
81
|
import {
|
|
82
82
|
shouldEnforcePrivateStoragePermissions,
|
|
83
83
|
ensureStorageDirectorySync,
|
|
@@ -1021,8 +1021,8 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1021
1021
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1022
1022
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1023
1023
|
return;
|
|
1024
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1025
|
-
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-
|
|
1024
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-dxs1tgt9.js"));
|
|
1025
|
+
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-ynb3vg6r.js"));
|
|
1026
1026
|
if (signal.aborted)
|
|
1027
1027
|
return;
|
|
1028
1028
|
await startMessageTimeBackfill(db, Object.assign(readRawSessionMessages, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
estimateTokens
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-y8xjr8rx.js";
|
|
4
4
|
import {
|
|
5
5
|
getHarness2
|
|
6
6
|
} from "./server-pavzsdc6.js";
|
|
7
7
|
import {
|
|
8
8
|
log2
|
|
9
|
-
} from "./server-
|
|
9
|
+
} from "./server-j8376q08.js";
|
|
10
10
|
import {
|
|
11
11
|
inRootAsyncContext2
|
|
12
12
|
} from "./server-gzy5w8ya.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log2
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-j8376q08.js";
|
|
4
4
|
import {
|
|
5
5
|
getSdkWindowGeometry,
|
|
6
6
|
getSdkContextLimit,
|
|
7
7
|
getSdkInputLimit
|
|
8
|
-
} from "./server-
|
|
8
|
+
} from "./server-kc5kb9ya.js";
|
|
9
9
|
import {
|
|
10
10
|
localBudget,
|
|
11
11
|
calibrationForModelKey
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./server-gzy5w8ya.js";
|
|
16
16
|
import {
|
|
17
17
|
setBootQuietPeriodForTests
|
|
18
|
-
} from "./server-
|
|
18
|
+
} from "./server-afsz3cmx.js";
|
|
19
19
|
import {
|
|
20
20
|
isEmbeddingHostBusy2
|
|
21
21
|
} from "./server-qt1qqasc.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./server-pavzsdc6.js";
|
|
25
25
|
import {
|
|
26
26
|
log2
|
|
27
|
-
} from "./server-
|
|
27
|
+
} from "./server-j8376q08.js";
|
|
28
28
|
import {
|
|
29
29
|
sanitizeDiagnosticText
|
|
30
30
|
} from "./server-z4p0ry94.js";
|
|
@@ -39,10 +39,10 @@ import {
|
|
|
39
39
|
isSynapseEmbeddingTruncated,
|
|
40
40
|
getSynapseBatchRequestKey,
|
|
41
41
|
SynapseEmbeddingProvider
|
|
42
|
-
} from "./server-
|
|
42
|
+
} from "./server-x6fn9x8q.js";
|
|
43
43
|
import {
|
|
44
44
|
estimateTokens
|
|
45
|
-
} from "./server-
|
|
45
|
+
} from "./server-y8xjr8rx.js";
|
|
46
46
|
import {
|
|
47
47
|
DEFAULT_COMPARTMENT_CHUNK_MAX_INPUT_TOKENS2,
|
|
48
48
|
CHUNK_WINDOW_SAFETY_RATIO2,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
countSessionCompartmentEmbedCoverage2,
|
|
61
61
|
countSessionCompartmentEmbedCoveragePolite2,
|
|
62
62
|
countUnembeddedSessionCompartmentsPolite2
|
|
63
|
-
} from "./server-
|
|
63
|
+
} from "./server-8pdfmc27.js";
|
|
64
64
|
import {
|
|
65
65
|
acquireGitSweepLease,
|
|
66
66
|
renewGitSweepLease,
|
|
@@ -68,7 +68,7 @@ import {
|
|
|
68
68
|
findMisScopedCompartmentChunkEmbeddingIdsForProject,
|
|
69
69
|
recordSessionProjectIdentity,
|
|
70
70
|
repairMisScopedCompartmentChunkEmbeddingsForProject
|
|
71
|
-
} from "./server-
|
|
71
|
+
} from "./server-jtq03rkb.js";
|
|
72
72
|
import {
|
|
73
73
|
saveEmbeddingIfHashMatches,
|
|
74
74
|
getMemoryEmbedCoverage,
|
|
@@ -83,13 +83,13 @@ import {
|
|
|
83
83
|
logLocalEmbeddingPoolingUnavailableOnce,
|
|
84
84
|
getEmbeddingProviderIdentity,
|
|
85
85
|
LocalEmbeddingProvider
|
|
86
|
-
} from "./server-
|
|
86
|
+
} from "./server-d706s5xn.js";
|
|
87
87
|
import {
|
|
88
88
|
isKnownAutocommit
|
|
89
89
|
} from "./server-8ajstryz.js";
|
|
90
90
|
import {
|
|
91
91
|
logSlowWriteTransaction
|
|
92
|
-
} from "./server-
|
|
92
|
+
} from "./server-5sbsnpkn.js";
|
|
93
93
|
|
|
94
94
|
// src/features/magic-context/project-embedding-registry.ts
|
|
95
95
|
import { createHash as createHash2, randomUUID } from "node:crypto";
|
package/dist/v2/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPluginConfigDetailed
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-v1s0cb4v.js";
|
|
4
4
|
import {
|
|
5
5
|
setHarness2
|
|
6
6
|
} from "./server-pavzsdc6.js";
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
registerStalePluginBuildHost,
|
|
12
12
|
log2,
|
|
13
13
|
flushLogger2
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-j8376q08.js";
|
|
15
15
|
import"./server-z4p0ry94.js";
|
|
16
|
-
import"./server-
|
|
16
|
+
import"./server-kc5kb9ya.js";
|
|
17
17
|
import {
|
|
18
18
|
string,
|
|
19
19
|
unknown,
|
|
@@ -7875,7 +7875,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
7875
7875
|
// package.json
|
|
7876
7876
|
var package_default = {
|
|
7877
7877
|
name: "@cortexkit/opencode-magic-context",
|
|
7878
|
-
version: "0.49.
|
|
7878
|
+
version: "0.49.59",
|
|
7879
7879
|
type: "module",
|
|
7880
7880
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7881
7881
|
main: "dist/index.js",
|
|
@@ -8196,7 +8196,7 @@ async function setup(context) {
|
|
|
8196
8196
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8197
8197
|
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.`);
|
|
8198
8198
|
}
|
|
8199
|
-
const { registerContext } = await import("./context-
|
|
8199
|
+
const { registerContext } = await import("./context-wszt0gbq.js");
|
|
8200
8200
|
setHarness2("opencode2");
|
|
8201
8201
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8202
8202
|
const duties = await registerContext(context);
|
|
@@ -64,14 +64,14 @@ import {
|
|
|
64
64
|
adoptNullOwnerToolTag2,
|
|
65
65
|
getCandidateToolOwners2,
|
|
66
66
|
pickNearestPriorOwner2
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-88n85n60.js";
|
|
68
68
|
import"./server-1zx87sdm.js";
|
|
69
69
|
import"./server-rz6g5xne.js";
|
|
70
|
-
import"./server-
|
|
71
|
-
import"./server-
|
|
72
|
-
import"./server-
|
|
70
|
+
import"./server-xepx8t43.js";
|
|
71
|
+
import"./server-5sbsnpkn.js";
|
|
72
|
+
import"./server-y8xjr8rx.js";
|
|
73
73
|
import"./server-gzy5w8ya.js";
|
|
74
|
-
import"./server-
|
|
74
|
+
import"./server-j8376q08.js";
|
|
75
75
|
import"./server-pavzsdc6.js";
|
|
76
76
|
import"./server-z4p0ry94.js";
|
|
77
77
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import"./server-pavzsdc6.js";
|
|
2
2
|
import {
|
|
3
3
|
sessionLog2
|
|
4
|
-
} from "./server-
|
|
4
|
+
} from "./server-j8376q08.js";
|
|
5
5
|
import"./server-z4p0ry94.js";
|
|
6
|
-
import"./server-
|
|
6
|
+
import"./server-jdfe07mp.js";
|
|
7
7
|
import {
|
|
8
8
|
COMPARTMENT_LEASE_RENEWAL_MS,
|
|
9
9
|
acquireCompartmentLease,
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
releaseCompartmentLeaseBestEffort,
|
|
12
12
|
getCompartments,
|
|
13
13
|
getLastCompartmentEndMessage
|
|
14
|
-
} from "./server-
|
|
14
|
+
} from "./server-t8tmrtcg.js";
|
|
15
15
|
import"./server-2amn2s73.js";
|
|
16
|
-
import"./server-
|
|
17
|
-
import"./server-
|
|
16
|
+
import"./server-y8xjr8rx.js";
|
|
17
|
+
import"./server-x6fn9x8q.js";
|
|
18
18
|
import {
|
|
19
19
|
inRootAsyncContext2
|
|
20
20
|
} from "./server-gzy5w8ya.js";
|
|
21
21
|
import"./server-v0p37hm2.js";
|
|
22
22
|
import"./server-96ztjvkn.js";
|
|
23
23
|
import"./server-1d042x6w.js";
|
|
24
|
-
import"./server-
|
|
25
|
-
import"./server-
|
|
26
|
-
import"./server-
|
|
27
|
-
import"./server-
|
|
24
|
+
import"./server-6ash6z8z.js";
|
|
25
|
+
import"./server-ds8vpfkr.js";
|
|
26
|
+
import"./server-8pdfmc27.js";
|
|
27
|
+
import"./server-svx20ra2.js";
|
|
28
28
|
import {
|
|
29
29
|
getWrapupInProgressState,
|
|
30
30
|
acquireWrapupInProgress,
|
|
@@ -32,27 +32,27 @@ import {
|
|
|
32
32
|
releaseWrapupInProgress,
|
|
33
33
|
getHistorianFailureState,
|
|
34
34
|
clearEmergencyRecovery
|
|
35
|
-
} from "./server-
|
|
36
|
-
import"./server-
|
|
37
|
-
import"./server-
|
|
35
|
+
} from "./server-88n85n60.js";
|
|
36
|
+
import"./server-xepx8t43.js";
|
|
37
|
+
import"./server-tzh55x6d.js";
|
|
38
38
|
import"./server-1zx87sdm.js";
|
|
39
39
|
import"./server-rz6g5xne.js";
|
|
40
40
|
import"./server-2ra6pwf3.js";
|
|
41
|
-
import"./server-
|
|
41
|
+
import"./server-3ap5dmhc.js";
|
|
42
42
|
import {
|
|
43
43
|
prepareRawSessionOrdinals2
|
|
44
|
-
} from "./server-
|
|
44
|
+
} from "./server-8ycacd59.js";
|
|
45
45
|
import"./server-fr0wbhdn.js";
|
|
46
|
-
import"./server-
|
|
47
|
-
import"./server-
|
|
46
|
+
import"./server-jn4pktdk.js";
|
|
47
|
+
import"./server-afsz3cmx.js";
|
|
48
48
|
import"./server-rthnpmbp.js";
|
|
49
49
|
import"./server-fb3zxn06.js";
|
|
50
50
|
import"./server-468mya5v.js";
|
|
51
|
-
import"./server-
|
|
51
|
+
import"./server-rbtx6q5v.js";
|
|
52
52
|
import {
|
|
53
53
|
pushNotification2
|
|
54
54
|
} from "./server-x8a7jmkh.js";
|
|
55
|
-
import"./server-
|
|
55
|
+
import"./server-at0v0z4t.js";
|
|
56
56
|
import {
|
|
57
57
|
describeBoundaryDiagnostics,
|
|
58
58
|
resolveWrapupProtectedTailBoundary,
|
|
@@ -63,23 +63,23 @@ import {
|
|
|
63
63
|
registerActiveCompartmentRun,
|
|
64
64
|
setRecompStarting2,
|
|
65
65
|
setRecompTerminal2
|
|
66
|
-
} from "./server-
|
|
66
|
+
} from "./server-9emfsa60.js";
|
|
67
67
|
import"./server-qt1qqasc.js";
|
|
68
|
-
import"./server-
|
|
69
|
-
import"./server-
|
|
68
|
+
import"./server-z5255w05.js";
|
|
69
|
+
import"./server-jtq03rkb.js";
|
|
70
70
|
import"./server-4dhv7mqz.js";
|
|
71
|
-
import"./server-
|
|
72
|
-
import"./server-
|
|
71
|
+
import"./server-d706s5xn.js";
|
|
72
|
+
import"./server-d9aayyxk.js";
|
|
73
73
|
import"./server-jjvbk92s.js";
|
|
74
|
-
import"./server-
|
|
75
|
-
import"./server-
|
|
76
|
-
import"./server-
|
|
77
|
-
import"./server-
|
|
78
|
-
import"./server-
|
|
74
|
+
import"./server-d07yxksx.js";
|
|
75
|
+
import"./server-v1s0cb4v.js";
|
|
76
|
+
import"./server-kc5kb9ya.js";
|
|
77
|
+
import"./server-ypaat9rj.js";
|
|
78
|
+
import"./server-npdey91q.js";
|
|
79
79
|
import {
|
|
80
80
|
sendStatusNotification2
|
|
81
|
-
} from "./server-
|
|
82
|
-
import"./server-
|
|
81
|
+
} from "./server-qjff96a6.js";
|
|
82
|
+
import"./server-5sbsnpkn.js";
|
|
83
83
|
|
|
84
84
|
// src/hooks/magic-context/wrapup-orchestrator.ts
|
|
85
85
|
import * as crypto from "node:crypto";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runManagedWrapup2
|
|
3
|
+
} from "./index-s3t4vk21.js";
|
|
4
|
+
import"./index-gth4t4ar.js";
|
|
5
|
+
import"./index-a09sw9fx.js";
|
|
6
|
+
import"./index-832w615x.js";
|
|
7
|
+
import"./index-sd3egckz.js";
|
|
8
|
+
import"./index-n6aye6ny.js";
|
|
9
|
+
import"./index-zxj39ba2.js";
|
|
10
|
+
import"./index-jjvbk92s.js";
|
|
11
|
+
import"./index-gq1g9a3a.js";
|
|
12
|
+
import"./index-4dhv7mqz.js";
|
|
13
|
+
import"./index-ywxvdwmj.js";
|
|
14
|
+
import"./index-tebcx987.js";
|
|
15
|
+
import"./index-ev2rrjfc.js";
|
|
16
|
+
import"./index-2amn2s73.js";
|
|
17
|
+
import"./index-6athgjba.js";
|
|
18
|
+
import"./index-5ps3axh5.js";
|
|
19
|
+
import"./index-1sq1krqw.js";
|
|
20
|
+
import"./index-qt1qqasc.js";
|
|
21
|
+
import"./index-d0feqcs5.js";
|
|
22
|
+
import"./index-8sc7vqt7.js";
|
|
23
|
+
import"./index-1zx87sdm.js";
|
|
24
|
+
import"./index-x40zr813.js";
|
|
25
|
+
import"./index-x8a7jmkh.js";
|
|
26
|
+
import"./index-e6ncz7a6.js";
|
|
27
|
+
import"./index-zb4h9nrk.js";
|
|
28
|
+
import"./index-6nqz8hsz.js";
|
|
29
|
+
import"./index-jg7sbt3v.js";
|
|
30
|
+
import"./index-snbpdpa3.js";
|
|
31
|
+
import"./index-pxnzyvjc.js";
|
|
32
|
+
import"./index-0cz8bsyx.js";
|
|
33
|
+
import"./index-fb3zxn06.js";
|
|
34
|
+
import"./index-xx05vta0.js";
|
|
35
|
+
import"./index-fr0wbhdn.js";
|
|
36
|
+
import"./index-tzy5h4x6.js";
|
|
37
|
+
import"./index-s32f8y67.js";
|
|
38
|
+
import"./index-wh9fxds5.js";
|
|
39
|
+
import"./index-gqf8r04r.js";
|
|
40
|
+
import"./index-jrj95cce.js";
|
|
41
|
+
import"./index-q7q6qp1f.js";
|
|
42
|
+
import"./index-96ztjvkn.js";
|
|
43
|
+
import"./index-v0p37hm2.js";
|
|
44
|
+
import"./index-58e3y90n.js";
|
|
45
|
+
import"./index-m0pwswv9.js";
|
|
46
|
+
import"./index-5vsk2cpp.js";
|
|
47
|
+
import"./index-gzy5w8ya.js";
|
|
48
|
+
import"./index-ywrz4wy2.js";
|
|
49
|
+
import"./index-pavzsdc6.js";
|
|
50
|
+
import"./index-z4p0ry94.js";
|
|
51
|
+
import"./index-1d042x6w.js";
|
|
52
|
+
export {
|
|
53
|
+
runManagedWrapup2 as runManagedWrapup
|
|
54
|
+
};
|
package/package.json
CHANGED