@cortexkit/opencode-magic-context 0.49.86 → 0.49.89
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-fnyxaahs.js → announcement-4ynkaf0d.js} +2 -2
- package/dist/auto-search-worker.js +13 -7
- package/dist/chunk-embedding-write-worker.js +7 -7
- package/dist/{compartment-chunk-embedding-ymc9mtwv.js → compartment-chunk-embedding-fey2bsyf.js} +3 -1
- package/dist/{conflict-warning-hook-a0wrnzch.js → conflict-warning-hook-kbq6ppjf.js} +2 -2
- package/dist/{context-xesm7rj3.js → context-grdg1k2k.js} +132 -52
- package/dist/{derive-budgets-90869322.js → derive-budgets-hzzq71rm.js} +2 -2
- package/dist/{embedding-backfill-v6sw58m8.js → embedding-backfill-qjkaee9s.js} +8 -8
- package/dist/{v2/embedding-cache-mgyr73ef.js → embedding-cache-zn4r1c31.js} +5 -1
- package/dist/embedding-worker.js +2 -2
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +1 -0
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/token-budget.d.ts +8 -3
- package/dist/features/magic-context/dreamer/token-budget.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-cache.d.ts +7 -0
- package/dist/features/magic-context/memory/embedding-cache.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts +6 -0
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/tool-definition-tokens.d.ts +2 -0
- package/dist/features/magic-context/tool-definition-tokens.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-worker-client.d.ts.map +1 -1
- package/dist/hooks/magic-context/auto-search-worker-probe.fixture.d.ts +2 -0
- package/dist/hooks/magic-context/auto-search-worker-probe.fixture.d.ts.map +1 -0
- package/dist/hooks/magic-context/compartment-runner-partial-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-recomp-carry.d.ts +4 -0
- package/dist/hooks/magic-context/compartment-runner-recomp-carry.d.ts.map +1 -0
- package/dist/hooks/magic-context/compartment-runner-recomp.d.ts +8 -2
- package/dist/hooks/magic-context/compartment-runner-recomp.d.ts.map +1 -1
- package/dist/hooks/magic-context/dropped-input-guard.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-fail-closed.d.ts +2 -0
- package/dist/hooks/magic-context/emergency-fail-closed.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts +3 -5
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- package/dist/hooks/magic-context/send-session-notification.d.ts +11 -1
- package/dist/hooks/magic-context/send-session-notification.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-s8ks5nz4.js → index-2pdgy88n.js} +5 -5
- package/dist/{index-7j2zv9nm.js → index-2qsca7h7.js} +47 -11
- package/dist/{index-1bqkqde0.js → index-39rzef89.js} +9 -7
- package/dist/{index-snbpdpa3.js → index-3pdknr07.js} +4 -4
- package/dist/{index-c5tmzym6.js → index-5df2fw5b.js} +108 -13
- package/dist/{index-7svecf3m.js → index-5pgyqgmx.js} +1 -1
- package/dist/{index-xrnhxkz7.js → index-60wnwcwz.js} +1 -1
- package/dist/{index-k50xhjw1.js → index-60x5d68t.js} +1 -1
- package/dist/{index-4ntnt8ee.js → index-61knrt52.js} +1 -1
- package/dist/{index-g6hfh4h4.js → index-6zewd2n5.js} +14 -8
- package/dist/{index-70cv85b0.js → index-78t37mcq.js} +2 -2
- package/dist/{index-stx8zd81.js → index-83qd3n7s.js} +2 -2
- package/dist/{index-nny4gm06.js → index-9d3qgwq0.js} +2 -2
- package/dist/{index-jjvbk92s.js → index-9emdjcb5.js} +1 -1
- package/dist/{index-05bm2ndp.js → index-chpzb6xy.js} +1 -1
- package/dist/{index-2kf73btc.js → index-cr483vx6.js} +1 -1
- package/dist/{index-d0rtbv0f.js → index-dk3hy2a2.js} +21 -14
- package/dist/{index-gxdc95cp.js → index-g0mb2kb4.js} +585 -82
- package/dist/{index-w6v4dw5f.js → index-h9hybzr5.js} +5 -5
- package/dist/{index-1pf5qrx4.js → index-jzfsnbmm.js} +3 -3
- package/dist/{index-jrj95cce.js → index-m6dnydf8.js} +9 -2
- package/dist/{index-xccywqdj.js → index-mrjat4eq.js} +77 -14
- package/dist/{index-022w6314.js → index-n1ty0vd3.js} +116 -512
- package/dist/{index-ttk3trse.js → index-q7msfgwz.js} +311 -111
- package/dist/{index-e32b3x4n.js → index-qfcjrnpe.js} +7 -6
- package/dist/{v2/server-4dhv7mqz.js → index-qjwpqvnf.js} +48 -1
- package/dist/{index-3dtzyred.js → index-r4y0dczp.js} +1 -1
- package/dist/{index-4w5rx7de.js → index-tt0vs4x5.js} +2 -2
- package/dist/{index-k0tb2z28.js → index-w51n3576.js} +2 -2
- package/dist/{index-25nktq8n.js → index-wmb2mcdw.js} +7 -7
- package/dist/{index-zmqx48vt.js → index-xsqw8kbd.js} +1 -1
- package/dist/{index-fzgyvsb1.js → index-y14pawe1.js} +3 -0
- package/dist/{index-798s7c8s.js → index-zxhev8ze.js} +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +68 -59
- package/dist/{message-index-bounded-6fr624zf.js → message-index-bounded-r1qys471.js} +4 -4
- package/dist/migration-worker.js +5 -5
- package/dist/plugin/messages-transform.d.ts +3 -4
- package/dist/plugin/messages-transform.d.ts.map +1 -1
- package/dist/plugin/refusal-notice.d.ts +3 -0
- package/dist/plugin/refusal-notice.d.ts.map +1 -0
- package/dist/{project-embedding-registry-q80scexh.js → project-embedding-registry-m3fp1pa4.js} +7 -7
- package/dist/raw-ordinal-warmup-worker.js +4 -4
- package/dist/{read-session-chunk-6wedfths.js → read-session-chunk-xv9f0wgb.js} +3 -3
- package/dist/{recomp-orchestrator-7ecg8ryx.js → recomp-orchestrator-dgyb394j.js} +23 -23
- package/dist/{render-yqp7q79f.js → render-d014e603.js} +12 -12
- package/dist/{rpc-notifications-t9q0ynq7.js → rpc-notifications-ta2zsxpq.js} +1 -1
- package/dist/{search-bw22d7zc.js → search-9gceftb9.js} +18 -18
- package/dist/{search-archive-r4h96j2z.js → search-archive-gybn6q7s.js} +5 -5
- package/dist/{send-session-notification-7x518gew.js → send-session-notification-gzxz88vq.js} +1 -1
- package/dist/shared/assistant-message-extractor.d.ts +2 -0
- package/dist/shared/assistant-message-extractor.d.ts.map +1 -1
- package/dist/shared/prompt-async-transport.d.ts.map +1 -1
- package/dist/shared/recomp-outcome.d.ts +4 -0
- package/dist/shared/recomp-outcome.d.ts.map +1 -0
- package/dist/shared/rpc-notifications.d.ts +1 -1
- package/dist/shared/rpc-notifications.d.ts.map +1 -1
- package/dist/shared/storage-permissions.d.ts +16 -2
- package/dist/shared/storage-permissions.d.ts.map +1 -1
- package/dist/shared/user-facing-codes.d.ts +4 -1
- package/dist/shared/user-facing-codes.d.ts.map +1 -1
- package/dist/{storage-memory-e6a7mb0k.js → storage-memory-hhrvfw0x.js} +2 -2
- package/dist/{storage-tags-y2mrb8e6.js → storage-tags-f1ftvjpw.js} +2 -2
- package/dist/{transform-postprocess-phase-t99yj9vt.js → transform-postprocess-phase-34k1zwsy.js} +24 -24
- package/dist/v2/auto-search-worker.js +13 -7
- package/dist/v2/chunk-embedding-write-worker.js +7 -7
- package/dist/v2/{compartment-chunk-embedding-x6qw6mjk.js → compartment-chunk-embedding-knt2468v.js} +3 -1
- package/dist/v2/{context-k8sx1nyy.js → context-8bzydxfy.js} +227 -70
- package/dist/v2/{derive-budgets-ecjy1aqh.js → derive-budgets-hr4qqrnv.js} +3 -3
- package/dist/v2/{embedding-backfill-k8kqnwfq.js → embedding-backfill-0ar1bm97.js} +8 -8
- package/dist/{embedding-cache-mgyr73ef.js → v2/embedding-cache-zn4r1c31.js} +5 -1
- package/dist/v2/embedding-worker.js +2 -2
- package/dist/v2/fold/native-replay.d.ts +3 -1
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +1 -0
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/{message-index-bounded-jqy7283g.js → message-index-bounded-b07r9cjv.js} +4 -4
- package/dist/v2/migration-worker.js +5 -5
- package/dist/v2/{project-embedding-registry-2jp1antr.js → project-embedding-registry-gx2waee8.js} +7 -7
- package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
- package/dist/v2/{read-session-chunk-n3nhfvd7.js → read-session-chunk-38wdy8nd.js} +3 -3
- package/dist/v2/{recomp-orchestrator-ssde9ft1.js → recomp-orchestrator-wq7gbkqa.js} +24 -24
- package/dist/v2/{render-fezgh7pa.js → render-2dan17xc.js} +12 -12
- package/dist/v2/{rpc-notifications-t9q0ynq7.js → rpc-notifications-ta2zsxpq.js} +1 -1
- package/dist/v2/{search-archive-zz1kza50.js → search-archive-89hdy0a2.js} +5 -5
- package/dist/v2/{search-m251amra.js → search-nyqykx7q.js} +17 -17
- package/dist/v2/{send-session-notification-p52rhjzy.js → send-session-notification-zazaxxpf.js} +1 -1
- package/dist/v2/{server-4wwwm2ya.js → server-09h2vyvs.js} +5 -5
- package/dist/v2/{server-r2es6zt7.js → server-0tv6kytx.js} +108 -13
- package/dist/v2/{server-rz4snd3x.js → server-1rrmxhd1.js} +1 -1
- package/dist/v2/{server-wdq85mxj.js → server-6250cxzs.js} +14 -8
- package/dist/v2/{server-xa8fefhw.js → server-96nm9vk4.js} +1 -1
- package/dist/v2/{server-jjvbk92s.js → server-9emdjcb5.js} +1 -1
- package/dist/v2/{server-ap81bk3c.js → server-9n2qgk29.js} +1 -1
- package/dist/v2/{server-ps6rz88g.js → server-a85j3kam.js} +2 -2
- package/dist/v2/{server-y31y6gws.js → server-add0j5n3.js} +9 -7
- package/dist/v2/{server-97w51d8n.js → server-b0a9h3ds.js} +3 -3
- package/dist/v2/{server-2k8tkbhz.js → server-c7awk5s2.js} +10 -4
- package/dist/v2/{server-hn8b7sfe.js → server-dgjqvpgd.js} +5 -5
- package/dist/v2/{server-fsw8kbng.js → server-dtcwkdqj.js} +314 -114
- package/dist/v2/{server-mbkwcwgw.js → server-f7tzvmzs.js} +2 -2
- package/dist/v2/{server-n5zr7190.js → server-fb5hvvfc.js} +77 -14
- package/dist/v2/{server-w7mpvkpj.js → server-fn4ky6mn.js} +1 -1
- package/dist/v2/{server-3p6b0qya.js → server-gqkdfdvw.js} +1 -1
- package/dist/v2/{server-cwtehwbb.js → server-j4jjtdc5.js} +1 -1
- package/dist/v2/{server-b93f0bqh.js → server-pjk9spbf.js} +1 -1
- package/dist/v2/{server-s15knz0w.js → server-pmws7we9.js} +1 -1
- package/dist/{index-4dhv7mqz.js → v2/server-qjwpqvnf.js} +48 -1
- package/dist/v2/{server-a2f1bhyj.js → server-stjy5dxv.js} +9 -2
- package/dist/v2/{server-ssg29wjg.js → server-ta4h0fch.js} +21 -14
- package/dist/v2/{server-e2k9mt86.js → server-tj65pgvg.js} +1 -1
- package/dist/v2/{server-brgandk4.js → server-vy0beygw.js} +2 -2
- package/dist/v2/{server-fzgyvsb1.js → server-y14pawe1.js} +3 -0
- package/dist/v2/{server-8pdfmc27.js → server-y17r5ryz.js} +4 -4
- package/dist/v2/{server-sxfbjdye.js → server-yx0nyj1q.js} +2 -2
- package/dist/v2/server.js +6 -6
- package/dist/v2/{storage-memory-e6a7mb0k.js → storage-memory-hhrvfw0x.js} +2 -2
- package/dist/v2/{storage-tags-xq81zgt2.js → storage-tags-pmw33chf.js} +2 -2
- package/dist/v2/{v2-archive-reader-e2w39c3p.js → v2-archive-reader-gh1jghf7.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-eg5b1p89.js → wrapup-orchestrator-2h7ayss9.js} +24 -24
- package/dist/{v2-archive-reader-8dsngf2j.js → v2-archive-reader-8158kyfd.js} +1 -1
- package/dist/{wrapup-orchestrator-nmk6yf7f.js → wrapup-orchestrator-ct59br0c.js} +24 -24
- package/package.json +1 -1
- package/src/shared/assistant-message-extractor.test.ts +22 -0
- package/src/shared/assistant-message-extractor.ts +13 -0
- package/src/shared/model-suggestion-retry.test.ts +43 -12
- package/src/shared/prompt-async-transport.test.ts +275 -8
- package/src/shared/prompt-async-transport.ts +41 -2
- package/src/shared/recomp-outcome.ts +8 -0
- package/src/shared/reusable-worker.fixture.ts +15 -3
- package/src/shared/reusable-worker.test.ts +20 -10
- package/src/shared/rpc-notifications.ts +4 -1
- package/src/shared/sqlite-foreground-wait.test.ts +2 -2
- package/src/shared/startup-maintenance-policy.test.ts +4 -2
- package/src/shared/storage-permissions-startup.test.ts +296 -6
- package/src/shared/storage-permissions.ts +143 -18
- package/src/shared/user-facing-codes.ts +5 -2
- package/src/tui/dialogs/status-dialog.tsx +3 -0
- package/src/tui/slots/sidebar-content.tsx +6 -2
- package/src/tui-compiled/dialogs/status-dialog.tsx +12 -0
- package/src/tui-compiled/slots/sidebar-content.tsx +7 -2
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
readSearchBackfillCursor2,
|
|
11
11
|
writeSearchBackfillCursor2,
|
|
12
12
|
embedItemsWindowBounded2
|
|
13
|
-
} from "./server-
|
|
13
|
+
} from "./server-dgjqvpgd.js";
|
|
14
14
|
import {
|
|
15
15
|
saveEmbeddingIfHashMatches
|
|
16
|
-
} from "./server-
|
|
16
|
+
} from "./server-qjwpqvnf.js";
|
|
17
17
|
|
|
18
18
|
// src/features/magic-context/memory/embedding-backfill.ts
|
|
19
19
|
var SEARCH_BACKFILL_LIMIT = 50;
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./server-gzy5w8ya.js";
|
|
14
14
|
import {
|
|
15
15
|
scheduleAfterBootQuiet
|
|
16
|
-
} from "./server-
|
|
16
|
+
} from "./server-1rrmxhd1.js";
|
|
17
17
|
import {
|
|
18
18
|
getHarness2,
|
|
19
19
|
harnessOwnsOpenCodeStore2
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
copyStorageFileSync,
|
|
47
47
|
copyStorageTreeSync,
|
|
48
48
|
tightenStorageTreeSync
|
|
49
|
-
} from "./server-
|
|
49
|
+
} from "./server-0tv6kytx.js";
|
|
50
50
|
import {
|
|
51
51
|
attachFailClosedBlockingProcessEvidence
|
|
52
52
|
} from "./server-39bcszk4.js";
|
|
@@ -65,14 +65,14 @@ import {
|
|
|
65
65
|
hasPendingMigrations,
|
|
66
66
|
getMainThreadMigrationBodyCount,
|
|
67
67
|
runMigrations
|
|
68
|
-
} from "./server-
|
|
68
|
+
} from "./server-a85j3kam.js";
|
|
69
69
|
import {
|
|
70
70
|
ensureColumn,
|
|
71
71
|
setDatabase,
|
|
72
72
|
loadToolDefinitionMeasurements,
|
|
73
73
|
installV95PerfSchema,
|
|
74
74
|
installTagIdentityRevisionTrigger
|
|
75
|
-
} from "./server-
|
|
75
|
+
} from "./server-stjy5dxv.js";
|
|
76
76
|
import {
|
|
77
77
|
resolveOpenCodeDbPath,
|
|
78
78
|
hasV1MessageTables
|
|
@@ -90,6 +90,7 @@ import {
|
|
|
90
90
|
// src/features/magic-context/storage-db.ts
|
|
91
91
|
import {
|
|
92
92
|
existsSync as existsSync2,
|
|
93
|
+
lstatSync,
|
|
93
94
|
readdirSync,
|
|
94
95
|
readFileSync,
|
|
95
96
|
rmdirSync,
|
|
@@ -583,11 +584,73 @@ function getMigrationOnOpenRefusal() {
|
|
|
583
584
|
}
|
|
584
585
|
var LATEST_SUPPORTED_VERSION = 95;
|
|
585
586
|
var BOOT_SQLITE_BUSY_TIMEOUT_MS = 5000;
|
|
586
|
-
function
|
|
587
|
-
|
|
587
|
+
function isLinkedStorageRoot(dir) {
|
|
588
|
+
if (process.platform === "win32")
|
|
589
|
+
return false;
|
|
590
|
+
try {
|
|
591
|
+
return lstatSync(dir).isSymbolicLink();
|
|
592
|
+
} catch {
|
|
593
|
+
return false;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
function ensureSecureStorageDir(dir, dbPath) {
|
|
597
|
+
try {
|
|
598
|
+
ensureStorageDirectorySync(dir);
|
|
599
|
+
} catch (error) {
|
|
600
|
+
if (shouldEnforcePrivateStoragePermissions() && isLinkedStorageRoot(dir)) {
|
|
601
|
+
tightenStorageTree(dbPath, true);
|
|
602
|
+
}
|
|
603
|
+
throw error;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
function describeLinkedStorageSkip(reason) {
|
|
607
|
+
switch (reason) {
|
|
608
|
+
case "filesystem-root":
|
|
609
|
+
return "it is a filesystem root";
|
|
610
|
+
case "home-folder":
|
|
611
|
+
return "it is your home folder";
|
|
612
|
+
case "mount-point":
|
|
613
|
+
return "it is a mount point";
|
|
614
|
+
default: {
|
|
615
|
+
const entries = reason === 1 ? "entry" : "entries";
|
|
616
|
+
return `it holds ${reason} ${entries} that Magic Context did not create`;
|
|
617
|
+
}
|
|
618
|
+
}
|
|
588
619
|
}
|
|
589
|
-
function
|
|
590
|
-
|
|
620
|
+
function describeLinkedStorageFailure(failure, nonDirectoryPath) {
|
|
621
|
+
if (nonDirectoryPath !== undefined)
|
|
622
|
+
return `${nonDirectoryPath} is not a directory`;
|
|
623
|
+
switch (failure) {
|
|
624
|
+
case "ENOENT":
|
|
625
|
+
return "ENOENT";
|
|
626
|
+
case "ELOOP":
|
|
627
|
+
return "ELOOP";
|
|
628
|
+
case "EACCES":
|
|
629
|
+
return "EACCES";
|
|
630
|
+
case "EPERM":
|
|
631
|
+
return "EPERM";
|
|
632
|
+
case "ENOTDIR":
|
|
633
|
+
return "ENOTDIR";
|
|
634
|
+
default:
|
|
635
|
+
return "could not resolve or inspect the linked target";
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
function tightenStorageTree(dbPath, reportResolvedLink = false) {
|
|
639
|
+
const { failures, rootLink } = tightenStorageTreeSync(dirname(dbPath), dbPath);
|
|
640
|
+
if (rootLink && "failure" in rootLink) {
|
|
641
|
+
log2(`[magic-context] storage permission tightening failures=${failures}: storage root link ${rootLink.path}: ${describeLinkedStorageFailure(rootLink.failure, rootLink.nonDirectoryTarget)}`);
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
if (rootLink?.skipped !== undefined) {
|
|
645
|
+
if (reportResolvedLink) {
|
|
646
|
+
const { path: linkPath, target: targetPath } = rootLink;
|
|
647
|
+
log2(`[magic-context] linked storage folder ${linkPath} -> ${targetPath} was not made private because ${describeLinkedStorageSkip(rootLink.skipped)}. Move the store to a folder of its own so Magic Context can protect it.`);
|
|
648
|
+
}
|
|
649
|
+
return;
|
|
650
|
+
}
|
|
651
|
+
if (rootLink && reportResolvedLink) {
|
|
652
|
+
log2(`[magic-context] resolved storage root link ${rootLink.path} -> ${rootLink.target}`);
|
|
653
|
+
}
|
|
591
654
|
log2(`[magic-context] storage permission tightening failures=${failures}`);
|
|
592
655
|
}
|
|
593
656
|
function resolveBootBusyTimeoutMs(value) {
|
|
@@ -623,7 +686,7 @@ function migrateLegacyStorageIfNeeded(targetDbPath, targetDbDir) {
|
|
|
623
686
|
if (!existsSync2(legacyDbPath))
|
|
624
687
|
return;
|
|
625
688
|
log2(`[magic-context] migrating legacy plugin storage: ${legacyDir} -> ${targetDbDir} (legacy left in place as backup)`);
|
|
626
|
-
ensureSecureStorageDir(targetDbDir);
|
|
689
|
+
ensureSecureStorageDir(targetDbDir, targetDbPath);
|
|
627
690
|
try {
|
|
628
691
|
const legacyDb = new Database2(legacyDbPath);
|
|
629
692
|
try {
|
|
@@ -1021,7 +1084,7 @@ function finishDatabaseOpen(db, dbPath, explicitDbPath, latestSupportedVersion)
|
|
|
1021
1084
|
state.running = startMessageFtsRowidMapBackfill2(db, signal).then(async () => {
|
|
1022
1085
|
if (signal.aborted || !readsOpenCodeStore)
|
|
1023
1086
|
return;
|
|
1024
|
-
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-
|
|
1087
|
+
const { readRawSessionMessagePage, readRawSessionMessages } = await importPluginModule(() => import("./read-session-chunk-38wdy8nd.js"));
|
|
1025
1088
|
const { startMessageTimeBackfill } = await importPluginModule(() => import("./message-time-backfill-ynb3vg6r.js"));
|
|
1026
1089
|
if (signal.aborted)
|
|
1027
1090
|
return;
|
|
@@ -2346,8 +2409,8 @@ function openDatabase(dbPathOrOptions) {
|
|
|
2346
2409
|
if (!explicitDbPath) {
|
|
2347
2410
|
migrateLegacyStorageIfNeeded(dbPath, dbDir);
|
|
2348
2411
|
}
|
|
2349
|
-
ensureSecureStorageDir(dbDir);
|
|
2350
|
-
tightenStorageTree(dbPath);
|
|
2412
|
+
ensureSecureStorageDir(dbDir, dbPath);
|
|
2413
|
+
tightenStorageTree(dbPath, true);
|
|
2351
2414
|
if (!existsSync2(dbPath) && shouldEnforcePrivateStoragePermissions()) {
|
|
2352
2415
|
try {
|
|
2353
2416
|
writeStorageFileSync(dbPath, new Uint8Array, { flag: "wx" });
|
|
@@ -2443,8 +2506,8 @@ async function openDatabaseAsync(dbPathOrOptions) {
|
|
|
2443
2506
|
try {
|
|
2444
2507
|
if (!explicitDbPath)
|
|
2445
2508
|
migrateLegacyStorageIfNeeded(dbPath, dbDir);
|
|
2446
|
-
ensureSecureStorageDir(dbDir);
|
|
2447
|
-
tightenStorageTree(dbPath);
|
|
2509
|
+
ensureSecureStorageDir(dbDir, dbPath);
|
|
2510
|
+
tightenStorageTree(dbPath, true);
|
|
2448
2511
|
if (!existsSync2(dbPath) && shouldEnforcePrivateStoragePermissions()) {
|
|
2449
2512
|
try {
|
|
2450
2513
|
writeStorageFileSync(dbPath, new Uint8Array, { flag: "wx" });
|
|
@@ -72,6 +72,41 @@ function getMemoryEmbedCoverage(db, projectPath, modelId) {
|
|
|
72
72
|
var DEFAULT_EMBEDDING_CACHE_TTL_MS = 60000;
|
|
73
73
|
var projectEmbeddingCache = new Map;
|
|
74
74
|
var embeddingCacheTtlMs = DEFAULT_EMBEDDING_CACHE_TTL_MS;
|
|
75
|
+
var keptWorkerCaches = new WeakMap;
|
|
76
|
+
function keepWorkerMemoryEmbeddings2(db) {
|
|
77
|
+
keptWorkerCaches.set(db, {
|
|
78
|
+
entries: new Map,
|
|
79
|
+
lastBackgroundReloadAt: -Infinity
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
function readDataVersion(db, cache) {
|
|
83
|
+
cache.version ??= db.prepare("PRAGMA data_version");
|
|
84
|
+
return Number(cache.version.get().data_version);
|
|
85
|
+
}
|
|
86
|
+
function loadKeptWorkerEntry(db, cache, projectPath, modelId, version, loadedAt) {
|
|
87
|
+
const embeddings = loadAllEmbeddings(db, projectPath, modelId);
|
|
88
|
+
cache.entries.set(projectPath, {
|
|
89
|
+
projectPath,
|
|
90
|
+
modelId,
|
|
91
|
+
version,
|
|
92
|
+
loadedAt,
|
|
93
|
+
embeddings
|
|
94
|
+
});
|
|
95
|
+
return embeddings;
|
|
96
|
+
}
|
|
97
|
+
function maintainKeptWorkerMemoryEmbeddings2(db) {
|
|
98
|
+
const cache = keptWorkerCaches.get(db);
|
|
99
|
+
const now = Date.now();
|
|
100
|
+
if (!cache?.entries.size || now - cache.lastBackgroundReloadAt < DEFAULT_EMBEDDING_CACHE_TTL_MS)
|
|
101
|
+
return;
|
|
102
|
+
const version = readDataVersion(db, cache);
|
|
103
|
+
for (const entry of cache.entries.values()) {
|
|
104
|
+
if (entry.version === version || now - entry.loadedAt < DEFAULT_EMBEDDING_CACHE_TTL_MS)
|
|
105
|
+
continue;
|
|
106
|
+
cache.lastBackgroundReloadAt = now;
|
|
107
|
+
loadKeptWorkerEntry(db, cache, entry.projectPath, entry.modelId, version, now);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
75
110
|
function cacheKey(projectPath, modelId) {
|
|
76
111
|
return `${projectPath}\x00${modelId}`;
|
|
77
112
|
}
|
|
@@ -87,6 +122,18 @@ function getValidCacheEntry(projectPath, modelId) {
|
|
|
87
122
|
return entry;
|
|
88
123
|
}
|
|
89
124
|
function getProjectEmbeddings2(db, projectPath, modelId) {
|
|
125
|
+
const kept = keptWorkerCaches.get(db);
|
|
126
|
+
if (kept) {
|
|
127
|
+
const now = Date.now();
|
|
128
|
+
const cached = kept.entries.get(projectPath);
|
|
129
|
+
const entry = cached?.modelId === modelId ? cached : undefined;
|
|
130
|
+
if (entry && now - entry.loadedAt < DEFAULT_EMBEDDING_CACHE_TTL_MS)
|
|
131
|
+
return entry.embeddings;
|
|
132
|
+
const version = readDataVersion(db, kept);
|
|
133
|
+
if (entry?.version === version)
|
|
134
|
+
return entry.embeddings;
|
|
135
|
+
return loadKeptWorkerEntry(db, kept, projectPath, modelId, version, now);
|
|
136
|
+
}
|
|
90
137
|
const cached = getValidCacheEntry(projectPath, modelId);
|
|
91
138
|
if (cached) {
|
|
92
139
|
return cached.embeddings;
|
|
@@ -128,4 +175,4 @@ function setEmbeddingCacheTtlForTests2(ttlMs) {
|
|
|
128
175
|
embeddingCacheTtlMs = Math.max(0, Math.floor(ttlMs));
|
|
129
176
|
}
|
|
130
177
|
|
|
131
|
-
export { saveEmbeddingIfHashMatches, getMemoryEmbedCoverage, getProjectEmbeddings2, peekProjectEmbeddings2, invalidateProject2, invalidateMemory2, resetEmbeddingCacheForTests2, setEmbeddingCacheTtlForTests2 };
|
|
178
|
+
export { saveEmbeddingIfHashMatches, getMemoryEmbedCoverage, keepWorkerMemoryEmbeddings2, maintainKeptWorkerMemoryEmbeddings2, getProjectEmbeddings2, peekProjectEmbeddings2, invalidateProject2, invalidateMemory2, resetEmbeddingCacheForTests2, setEmbeddingCacheTtlForTests2 };
|
|
@@ -863,7 +863,10 @@ function recordToolDefinitionSet(providerID, modelID, agentName, tools, sessionI
|
|
|
863
863
|
for (const [toolID, slot] of next)
|
|
864
864
|
writeSlot(route, toolID, slot);
|
|
865
865
|
if (sessionId)
|
|
866
|
-
sessionFlights.set(sessionId, {
|
|
866
|
+
sessionFlights.set(sessionId, {
|
|
867
|
+
key,
|
|
868
|
+
exact: { ...summarize([...next.entries()], true), providerID, modelID }
|
|
869
|
+
});
|
|
867
870
|
}
|
|
868
871
|
function getCurrentToolSetHash(providerID, modelID, agentName, sessionId) {
|
|
869
872
|
return resolve(providerID, modelID, agentName, sessionId)?.hash ?? "";
|
|
@@ -874,6 +877,10 @@ function getToolDefinitionMeasurementSignature(providerID, modelID, agentName, s
|
|
|
874
877
|
function getMeasuredToolDefinitionTokens(providerID, modelID, agentName, sessionId) {
|
|
875
878
|
return resolve(providerID, modelID, agentName, sessionId)?.total;
|
|
876
879
|
}
|
|
880
|
+
function getExactSessionToolDefinitionTokens(providerID, modelID, sessionId) {
|
|
881
|
+
const exact = sessionFlights.peek(sessionId)?.exact;
|
|
882
|
+
return exact && exact.providerID === providerID && exact.modelID === modelID ? exact.total : undefined;
|
|
883
|
+
}
|
|
877
884
|
function getSessionToolDefinitionTokens(sessionId) {
|
|
878
885
|
if (!sessionId)
|
|
879
886
|
return;
|
|
@@ -886,4 +893,4 @@ function getSessionToolDefinitionTokens(sessionId) {
|
|
|
886
893
|
return route ? summarize(currentTools(route), route.live).total : undefined;
|
|
887
894
|
}
|
|
888
895
|
|
|
889
|
-
export { BoundedSessionMap, getTableColumnNames, ensureColumn, healAllNullColumns, stableStringify, stableStringifyHash, setDatabase, loadToolDefinitionMeasurements, recordToolDefinitionSet, getCurrentToolSetHash, getToolDefinitionMeasurementSignature, getMeasuredToolDefinitionTokens, getSessionToolDefinitionTokens, getTemporalDecisions, observeTemporalDecisions, freezeTemporalDecisions, installV95PerfSchema, tagOrderConstraintIndex, tagTombstoneOwnerRange, tagTombstoneOwnerKey, tagRevisionKey, tagIdentityRevisionKey, installTagIdentityRevisionTrigger, deleteTagIdentityRevisions };
|
|
896
|
+
export { BoundedSessionMap, getTableColumnNames, ensureColumn, healAllNullColumns, stableStringify, stableStringifyHash, setDatabase, loadToolDefinitionMeasurements, recordToolDefinitionSet, getCurrentToolSetHash, getToolDefinitionMeasurementSignature, getMeasuredToolDefinitionTokens, getExactSessionToolDefinitionTokens, getSessionToolDefinitionTokens, getTemporalDecisions, observeTemporalDecisions, freezeTemporalDecisions, installV95PerfSchema, tagOrderConstraintIndex, tagTombstoneOwnerRange, tagTombstoneOwnerKey, tagRevisionKey, tagIdentityRevisionKey, installTagIdentityRevisionTrigger, deleteTagIdentityRevisions };
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "./server-gzy5w8ya.js";
|
|
13
13
|
import {
|
|
14
14
|
scheduleAfterBootQuiet
|
|
15
|
-
} from "./server-
|
|
15
|
+
} from "./server-1rrmxhd1.js";
|
|
16
16
|
import {
|
|
17
17
|
isRecord
|
|
18
|
-
} from "./server-
|
|
18
|
+
} from "./server-pmws7we9.js";
|
|
19
19
|
import {
|
|
20
20
|
cleanSearchText,
|
|
21
21
|
hintKeywordRelevance,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isMessageIndexReconciledThrough,
|
|
26
26
|
clearIndexedMessages,
|
|
27
27
|
indexMessagesAfterOrdinal
|
|
28
|
-
} from "./server-
|
|
28
|
+
} from "./server-9n2qgk29.js";
|
|
29
29
|
import {
|
|
30
30
|
Priority,
|
|
31
31
|
AdmissionClass,
|
|
@@ -38,9 +38,10 @@ import {
|
|
|
38
38
|
import {
|
|
39
39
|
buildCanonicalChunkTextFromFts2,
|
|
40
40
|
loadCompartmentChunkEmbeddingsForSearch2,
|
|
41
|
+
trackCompartmentChunkSearchPool2,
|
|
41
42
|
peekCompartmentChunkSearchPool2,
|
|
42
43
|
warmCompartmentChunkSearchPool2
|
|
43
|
-
} from "./server-
|
|
44
|
+
} from "./server-y17r5ryz.js";
|
|
44
45
|
import {
|
|
45
46
|
saveCommitEmbedding,
|
|
46
47
|
loadProjectCommitEmbeddings,
|
|
@@ -56,13 +57,13 @@ import {
|
|
|
56
57
|
enqueueShadowEmbeddingItems2,
|
|
57
58
|
getProjectEmbeddingSnapshot2,
|
|
58
59
|
embedItemsForProject2
|
|
59
|
-
} from "./server-
|
|
60
|
+
} from "./server-dgjqvpgd.js";
|
|
60
61
|
import {
|
|
61
62
|
recordEmbeddingMeasurement
|
|
62
63
|
} from "./server-2amn2s73.js";
|
|
63
64
|
import {
|
|
64
65
|
getProjectEmbeddings2
|
|
65
|
-
} from "./server-
|
|
66
|
+
} from "./server-qjwpqvnf.js";
|
|
66
67
|
import {
|
|
67
68
|
USER_FACING_FAILURES,
|
|
68
69
|
cosineSimilarity,
|
|
@@ -72,16 +73,16 @@ import {
|
|
|
72
73
|
sanitizeFtsQuery,
|
|
73
74
|
searchMemoriesFTS,
|
|
74
75
|
searchMemoriesFTSUnion
|
|
75
|
-
} from "./server-
|
|
76
|
+
} from "./server-add0j5n3.js";
|
|
76
77
|
import {
|
|
77
78
|
ModuleMemoryAuthorityError2,
|
|
78
79
|
getMemoriesByProject2,
|
|
79
80
|
getMemoriesByProjects2,
|
|
80
81
|
updateMemoryRetrievalCount2
|
|
81
|
-
} from "./server-
|
|
82
|
+
} from "./server-9emdjcb5.js";
|
|
82
83
|
import {
|
|
83
84
|
ensureMemoryEmbeddings2
|
|
84
|
-
} from "./server-
|
|
85
|
+
} from "./server-f7tzvmzs.js";
|
|
85
86
|
import {
|
|
86
87
|
MESSAGE_FTS_SESSION_FILTER_SQL,
|
|
87
88
|
withMessageFtsSessionFilter
|
|
@@ -92,11 +93,11 @@ import {
|
|
|
92
93
|
expandWorkspaceIdentitySetWithAliases,
|
|
93
94
|
resolveStoredPathWorkspaceIdentity,
|
|
94
95
|
sourceNameForMemory
|
|
95
|
-
} from "./server-
|
|
96
|
+
} from "./server-a85j3kam.js";
|
|
96
97
|
import {
|
|
97
98
|
getNotes,
|
|
98
99
|
getActivePrimers
|
|
99
|
-
} from "./server-
|
|
100
|
+
} from "./server-fn4ky6mn.js";
|
|
100
101
|
import {
|
|
101
102
|
isKnownAutocommit
|
|
102
103
|
} from "./server-8ajstryz.js";
|
|
@@ -3086,8 +3087,12 @@ async function searchCompartmentChunks(args) {
|
|
|
3086
3087
|
if (args.diagnostics)
|
|
3087
3088
|
args.diagnostics.pool = "no-vector";
|
|
3088
3089
|
args.reportDiagnostics?.();
|
|
3089
|
-
if (args.warmOnly)
|
|
3090
|
-
|
|
3090
|
+
if (args.warmOnly) {
|
|
3091
|
+
if (args.deferWarmup)
|
|
3092
|
+
trackCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
|
|
3093
|
+
else
|
|
3094
|
+
warmCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
|
|
3095
|
+
}
|
|
3091
3096
|
return [];
|
|
3092
3097
|
}
|
|
3093
3098
|
const cutoff = args.maxOrdinal != null && args.maxOrdinal >= 0 ? args.maxOrdinal : null;
|
|
@@ -3102,7 +3107,8 @@ async function searchCompartmentChunks(args) {
|
|
|
3102
3107
|
args.diagnostics.poolRows = 0;
|
|
3103
3108
|
}
|
|
3104
3109
|
args.reportDiagnostics?.();
|
|
3105
|
-
|
|
3110
|
+
if (!args.deferWarmup)
|
|
3111
|
+
warmCompartmentChunkSearchPool2(args.db, args.sessionId, args.projectPath, args.modelId);
|
|
3106
3112
|
return [];
|
|
3107
3113
|
}
|
|
3108
3114
|
if (args.timings)
|
|
@@ -3512,6 +3518,7 @@ async function unifiedSearch2(db, sessionId, projectPath, query, options = {}) {
|
|
|
3512
3518
|
modelId: chunkModelId && chunkModelId !== "off" ? chunkModelId : null,
|
|
3513
3519
|
dateRange,
|
|
3514
3520
|
warmOnly: options.chunkPoolWarmOnly,
|
|
3521
|
+
deferWarmup: options.deferChunkPoolWarmup,
|
|
3515
3522
|
signal: options.signal,
|
|
3516
3523
|
timings,
|
|
3517
3524
|
diagnostics: options.autoSearchDiagnostics,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
rawMessageWorkerSource2,
|
|
20
20
|
rawMessageOffThreadRangeReader2,
|
|
21
21
|
readRawSessionMessageIdOrdinalsForRange2
|
|
22
|
-
} from "./server-
|
|
22
|
+
} from "./server-c7awk5s2.js";
|
|
23
23
|
import {
|
|
24
24
|
readV2ArchiveOffThread2
|
|
25
|
-
} from "./server-
|
|
25
|
+
} from "./server-b0a9h3ds.js";
|
|
26
26
|
|
|
27
27
|
// src/tools/ctx-expand/search-archive.ts
|
|
28
28
|
var archiveReadsOnThisThread = 0;
|
|
@@ -17,13 +17,16 @@ function notificationMatchesSink(notification, sink) {
|
|
|
17
17
|
}
|
|
18
18
|
function pushLiveNotification2(type, payload, sessionId) {
|
|
19
19
|
const notification = { id: nextNotificationId++, type, payload, sessionId };
|
|
20
|
+
let delivered = false;
|
|
20
21
|
for (const sink of sinks) {
|
|
21
22
|
if (sink.sessionId !== sessionId)
|
|
22
23
|
continue;
|
|
23
24
|
try {
|
|
24
25
|
sink.send(notification);
|
|
26
|
+
delivered = true;
|
|
25
27
|
} catch {}
|
|
26
28
|
}
|
|
29
|
+
return delivered;
|
|
27
30
|
}
|
|
28
31
|
function pushNotification2(type, payload, sessionId, options) {
|
|
29
32
|
const notification = { id: nextNotificationId++, type, payload, sessionId };
|
|
@@ -954,7 +954,7 @@ async function loadCompartmentChunkEmbeddingsForSearch2(db, sessionId, projectPa
|
|
|
954
954
|
var CHUNK_POOL_FULL_PROBE_INTERVAL_MS = 60000;
|
|
955
955
|
var TRACKED_SEARCH_POOL_LIMIT = 8;
|
|
956
956
|
var trackedSearchPools = new WeakMap;
|
|
957
|
-
function
|
|
957
|
+
function trackCompartmentChunkSearchPool2(db, sessionId, projectPath, modelId) {
|
|
958
958
|
let tracked = trackedSearchPools.get(db);
|
|
959
959
|
if (!tracked) {
|
|
960
960
|
tracked = new Map;
|
|
@@ -981,7 +981,7 @@ function peekCompartmentChunkSearchPool2(db, sessionId, projectPath, modelId, da
|
|
|
981
981
|
diagnostic.peek = "no-model";
|
|
982
982
|
return null;
|
|
983
983
|
}
|
|
984
|
-
|
|
984
|
+
trackCompartmentChunkSearchPool2(db, sessionId, projectPath, modelId);
|
|
985
985
|
const entry = getDecodedSearchPool(db).get(searchPoolKey(sessionId, projectPath, modelId));
|
|
986
986
|
if (!entry || searchPoolInTransaction(db)) {
|
|
987
987
|
if (diagnostic)
|
|
@@ -1009,7 +1009,7 @@ async function warmCompartmentChunkSearchPool2(db, sessionId, projectPath, model
|
|
|
1009
1009
|
});
|
|
1010
1010
|
if (!modelId)
|
|
1011
1011
|
return report("current");
|
|
1012
|
-
|
|
1012
|
+
trackCompartmentChunkSearchPool2(db, sessionId, projectPath, modelId);
|
|
1013
1013
|
const key = searchPoolKey(sessionId, projectPath, modelId);
|
|
1014
1014
|
try {
|
|
1015
1015
|
if (pendingSearchPools.get(db)?.has(key))
|
|
@@ -1466,4 +1466,4 @@ async function countUnembeddedSessionCompartmentsPolite2(db, projectPath, sessio
|
|
|
1466
1466
|
return count;
|
|
1467
1467
|
}
|
|
1468
1468
|
|
|
1469
|
-
export { DEFAULT_COMPARTMENT_CHUNK_MAX_INPUT_TOKENS2, CHUNK_WINDOW_SAFETY_RATIO2, normalizeCompartmentChunkMaxInputTokens2, buildCanonicalChunkTextFromFts2, buildCompartmentSummaryFallbackText2, canonicalizeInMemoryChunkTextForEmbedding2, chunkCanonicalText2, chunkEmbeddingWindowsAreCurrent2, replaceCompartmentChunkEmbeddings2, loadCompartmentChunkEmbeddingsForSearch2, getLastCompartmentChunkPoolWarm2, peekCompartmentChunkSearchPool2, warmCompartmentChunkSearchPool2, maintainCompartmentChunkSearchPools2, loadUnembeddedShadowChunkCandidates2, loadUnembeddedCompartmentChunkCandidatesPolite2, deleteChunkEmbedBackoffForSession2, recordChunkEmbedBackoff2, chunkWindowSourceKey2, loadUnembeddedSessionChunkCandidates2, loadUnembeddedSessionChunkCandidatesPolite2, countUnembeddedSessionCompartments2, countSessionCompartmentEmbedCoverage2, countSessionCompartmentEmbedCoveragePolite2, countUnembeddedSessionCompartmentsPolite2 };
|
|
1469
|
+
export { DEFAULT_COMPARTMENT_CHUNK_MAX_INPUT_TOKENS2, CHUNK_WINDOW_SAFETY_RATIO2, normalizeCompartmentChunkMaxInputTokens2, buildCanonicalChunkTextFromFts2, buildCompartmentSummaryFallbackText2, canonicalizeInMemoryChunkTextForEmbedding2, chunkCanonicalText2, chunkEmbeddingWindowsAreCurrent2, replaceCompartmentChunkEmbeddings2, loadCompartmentChunkEmbeddingsForSearch2, trackCompartmentChunkSearchPool2, getLastCompartmentChunkPoolWarm2, peekCompartmentChunkSearchPool2, warmCompartmentChunkSearchPool2, maintainCompartmentChunkSearchPools2, loadUnembeddedShadowChunkCandidates2, loadUnembeddedCompartmentChunkCandidatesPolite2, deleteChunkEmbedBackoffForSession2, recordChunkEmbedBackoff2, chunkWindowSourceKey2, loadUnembeddedSessionChunkCandidates2, loadUnembeddedSessionChunkCandidatesPolite2, countUnembeddedSessionCompartments2, countSessionCompartmentEmbedCoverage2, countSessionCompartmentEmbedCoveragePolite2, countUnembeddedSessionCompartmentsPolite2 };
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
} from "./server-y8xjr8rx.js";
|
|
4
4
|
import {
|
|
5
5
|
getTagById2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-pmws7we9.js";
|
|
7
7
|
import {
|
|
8
8
|
expandToolPart,
|
|
9
9
|
visitRawSessionMessages2,
|
|
10
10
|
readRawSessionMessageById2
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-c7awk5s2.js";
|
|
12
12
|
|
|
13
13
|
// src/tools/ctx-expand/render.ts
|
|
14
14
|
import { createHash } 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-tj65pgvg.js";
|
|
4
4
|
import {
|
|
5
5
|
setHarness2
|
|
6
6
|
} from "./server-pavzsdc6.js";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
} from "./server-j8376q08.js";
|
|
15
15
|
import"./server-z4p0ry94.js";
|
|
16
16
|
import"./server-jdfe07mp.js";
|
|
17
|
-
import"./server-
|
|
18
|
-
import"./server-
|
|
17
|
+
import"./server-0tv6kytx.js";
|
|
18
|
+
import"./server-96nm9vk4.js";
|
|
19
19
|
import {
|
|
20
20
|
string,
|
|
21
21
|
unknown,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./server-rz6g5xne.js";
|
|
28
28
|
import {
|
|
29
29
|
pushNotification2
|
|
30
|
-
} from "./server-
|
|
30
|
+
} from "./server-y14pawe1.js";
|
|
31
31
|
import"./server-gzy5w8ya.js";
|
|
32
32
|
import {
|
|
33
33
|
compareSemverCore
|
|
@@ -7877,7 +7877,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
7877
7877
|
// package.json
|
|
7878
7878
|
var package_default = {
|
|
7879
7879
|
name: "@cortexkit/opencode-magic-context",
|
|
7880
|
-
version: "0.49.
|
|
7880
|
+
version: "0.49.89",
|
|
7881
7881
|
type: "module",
|
|
7882
7882
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7883
7883
|
main: "dist/index.js",
|
|
@@ -8198,7 +8198,7 @@ async function setup(context) {
|
|
|
8198
8198
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8199
8199
|
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.`);
|
|
8200
8200
|
}
|
|
8201
|
-
const { registerContext } = await import("./context-
|
|
8201
|
+
const { registerContext } = await import("./context-8bzydxfy.js");
|
|
8202
8202
|
setHarness2("opencode2");
|
|
8203
8203
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8204
8204
|
const duties = await registerContext(context);
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
deleteMemory2,
|
|
32
32
|
getMemoryCount2,
|
|
33
33
|
getMemoryCountsByStatus2
|
|
34
|
-
} from "./server-
|
|
35
|
-
import"./server-
|
|
34
|
+
} from "./server-9emdjcb5.js";
|
|
35
|
+
import"./server-qjwpqvnf.js";
|
|
36
36
|
import"./server-fr0wbhdn.js";
|
|
37
37
|
import"./server-gzy5w8ya.js";
|
|
38
38
|
export {
|
|
@@ -64,10 +64,10 @@ import {
|
|
|
64
64
|
adoptNullOwnerToolTag2,
|
|
65
65
|
getCandidateToolOwners2,
|
|
66
66
|
pickNearestPriorOwner2
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-pmws7we9.js";
|
|
68
68
|
import"./server-1zx87sdm.js";
|
|
69
69
|
import"./server-rz6g5xne.js";
|
|
70
|
-
import"./server-
|
|
70
|
+
import"./server-stjy5dxv.js";
|
|
71
71
|
import"./server-5sbsnpkn.js";
|
|
72
72
|
import"./server-y8xjr8rx.js";
|
|
73
73
|
import"./server-gzy5w8ya.js";
|