@cortexkit/opencode-magic-context 0.49.85 → 0.49.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-search-worker.js +1 -1
- package/dist/{context-bjfwzbts.js → context-xesm7rj3.js} +6 -6
- package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -1
- package/dist/{index-qvn3q9f1.js → index-022w6314.js} +7 -7
- package/dist/{index-pw279hmt.js → index-1bqkqde0.js} +3 -2
- package/dist/{index-9fsxmjs6.js → index-25nktq8n.js} +2 -2
- package/dist/{index-0rge5rkh.js → index-d0rtbv0f.js} +1 -1
- package/dist/{index-kqnef2tg.js → index-e32b3x4n.js} +2 -2
- package/dist/{index-sbr58jaf.js → index-gxdc95cp.js} +2 -2
- package/dist/{index-tzbcb8yt.js → index-ttk3trse.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/{recomp-orchestrator-xzs0a455.js → recomp-orchestrator-7ecg8ryx.js} +3 -3
- package/dist/{search-ztgy3ya6.js → search-bw22d7zc.js} +2 -2
- package/dist/{transform-postprocess-phase-39a5hm2a.js → transform-postprocess-phase-t99yj9vt.js} +3 -3
- package/dist/v2/auto-search-worker.js +1 -1
- package/dist/v2/{context-k2rrqzf4.js → context-k8sx1nyy.js} +5 -5
- package/dist/v2/{recomp-orchestrator-jnbxbsc8.js → recomp-orchestrator-ssde9ft1.js} +2 -2
- package/dist/v2/{search-h5w7510x.js → search-m251amra.js} +2 -2
- package/dist/v2/{server-s76ty4ws.js → server-fsw8kbng.js} +1 -1
- package/dist/v2/{server-x77hd658.js → server-ssg29wjg.js} +1 -1
- package/dist/v2/{server-98hsp35q.js → server-y31y6gws.js} +3 -2
- package/dist/v2/server.js +2 -2
- package/dist/v2/{wrapup-orchestrator-mmje3etf.js → wrapup-orchestrator-eg5b1p89.js} +2 -2
- package/dist/{wrapup-orchestrator-sm6pwf3p.js → wrapup-orchestrator-nmk6yf7f.js} +4 -4
- package/package.json +1 -1
- package/src/tui/compaction-off.ts +2 -2
- package/src/tui/slots/sidebar-content-render.test.ts +309 -0
- package/src/tui/slots/sidebar-content.tsx +134 -99
- package/src/tui-compiled/compaction-off.ts +2 -2
- package/src/tui-compiled/slots/sidebar-content.tsx +321 -247
|
@@ -31,7 +31,7 @@ serveWorkerJobs(async (initial, port) => {
|
|
|
31
31
|
import("./embedding-cache-mgyr73ef.js"),
|
|
32
32
|
import("./storage-memory-e6a7mb0k.js"),
|
|
33
33
|
import("./project-embedding-registry-q80scexh.js"),
|
|
34
|
-
import("./search-
|
|
34
|
+
import("./search-bw22d7zc.js"),
|
|
35
35
|
import("./compartment-chunk-embedding-ymc9mtwv.js"),
|
|
36
36
|
import("./embedding-activity-g1dhes6g.js"),
|
|
37
37
|
import("./harness-e4avh192.js"),
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
resolveOpenCodeProtectedTailBoundary,
|
|
45
45
|
nonNarrativeStoredGapRanges,
|
|
46
46
|
getActiveCompartmentRun
|
|
47
|
-
} from "./index-
|
|
47
|
+
} from "./index-ttk3trse.js";
|
|
48
48
|
import"./index-sd3egckz.js";
|
|
49
49
|
import {
|
|
50
50
|
getHarness2
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
applyJsonSchemaParameterDescriptions,
|
|
141
141
|
MagicContextRpcServer,
|
|
142
142
|
subagentTemperature
|
|
143
|
-
} from "./index-
|
|
143
|
+
} from "./index-022w6314.js";
|
|
144
144
|
import {
|
|
145
145
|
invalidateAutoEmbedSession,
|
|
146
146
|
clearEmbedSessionState
|
|
@@ -319,7 +319,7 @@ import {
|
|
|
319
319
|
servedHeadChanged,
|
|
320
320
|
noteHostCheckpointCommit,
|
|
321
321
|
isSyntheticHeadMessage2
|
|
322
|
-
} from "./index-
|
|
322
|
+
} from "./index-gxdc95cp.js";
|
|
323
323
|
import"./index-832w615x.js";
|
|
324
324
|
import"./index-qt1qqasc.js";
|
|
325
325
|
import {
|
|
@@ -331,7 +331,7 @@ import"./index-k50xhjw1.js";
|
|
|
331
331
|
import {
|
|
332
332
|
renderUserFacingFailure,
|
|
333
333
|
userFacingFailureCode
|
|
334
|
-
} from "./index-
|
|
334
|
+
} from "./index-1bqkqde0.js";
|
|
335
335
|
import"./index-k0tb2z28.js";
|
|
336
336
|
import"./index-jjvbk92s.js";
|
|
337
337
|
import {
|
|
@@ -341,8 +341,8 @@ import {
|
|
|
341
341
|
} from "./index-fzgyvsb1.js";
|
|
342
342
|
import"./index-e6ncz7a6.js";
|
|
343
343
|
import"./index-g6hfh4h4.js";
|
|
344
|
-
import"./index-
|
|
345
|
-
import"./index-
|
|
344
|
+
import"./index-d0rtbv0f.js";
|
|
345
|
+
import"./index-e32b3x4n.js";
|
|
346
346
|
import"./index-2kf73btc.js";
|
|
347
347
|
import {
|
|
348
348
|
detectConflicts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-paths.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/memory/verification-paths.ts"],"names":[],"mappings":"AAQA,UAAU,4BAA4B;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,IAAI,CAAC;CACrB;AAED,KAAK,2BAA2B,GAAG;IAC/B,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,yBAAyB,GAAG,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,4BAA4B,KACpC,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAc1C,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AA6CD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAI5E;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAIrE;AAED,wBAAsB,wBAAwB,CAC1C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAO7B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,2BAA2B,CAC7C,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,CA6BrC;
|
|
1
|
+
{"version":3,"file":"verification-paths.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/memory/verification-paths.ts"],"names":[],"mappings":"AAQA,UAAU,4BAA4B;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,IAAI,CAAC;CACrB;AAED,KAAK,2BAA2B,GAAG;IAC/B,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,yBAAyB,GAAG,CAC7B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE,4BAA4B,KACpC,OAAO,CAAC,2BAA2B,CAAC,CAAC;AAc1C,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AA6CD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAI5E;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAIrE;AAED,wBAAsB,wBAAwB,CAC1C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAO7B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,2BAA2B,CAC7C,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,CA6BrC;AA+BD,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAKlF;AAED;;;GAGG;AACH,wBAAsB,0BAA0B,CAAC,IAAI,EAAE;IACnD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAkHvC;AAED,wBAAgB,+BAA+B,CAAC,KAAK,EAAE;IACnD,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACxC,GAAG,IAAI,CAKP;AAED,wBAAgB,gCAAgC,IAAI,IAAI,CAEvD"}
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
snapRangeToCompartments,
|
|
213
213
|
getActiveCompartmentRun,
|
|
214
214
|
startCompartmentAgent
|
|
215
|
-
} from "./index-
|
|
215
|
+
} from "./index-ttk3trse.js";
|
|
216
216
|
import {
|
|
217
217
|
hasTrustedAbsoluteWall,
|
|
218
218
|
applyProvenInputFloor,
|
|
@@ -666,7 +666,7 @@ import {
|
|
|
666
666
|
readGitFileChangeTimesSince,
|
|
667
667
|
verificationFileExists,
|
|
668
668
|
normalizeVerificationFiles
|
|
669
|
-
} from "./index-
|
|
669
|
+
} from "./index-1bqkqde0.js";
|
|
670
670
|
import {
|
|
671
671
|
computeCueContentHash,
|
|
672
672
|
hasMuralCueColumns,
|
|
@@ -714,7 +714,7 @@ import {
|
|
|
714
714
|
resolveMemoriesByIdsForSearch2,
|
|
715
715
|
unifiedSearch2,
|
|
716
716
|
formatSearchResults2
|
|
717
|
-
} from "./index-
|
|
717
|
+
} from "./index-d0rtbv0f.js";
|
|
718
718
|
import {
|
|
719
719
|
scheduleReconciliation,
|
|
720
720
|
scheduleIncrementalIndex,
|
|
@@ -730,7 +730,7 @@ import {
|
|
|
730
730
|
import {
|
|
731
731
|
setRecompStarting2,
|
|
732
732
|
setRecompTerminal2
|
|
733
|
-
} from "./index-
|
|
733
|
+
} from "./index-e32b3x4n.js";
|
|
734
734
|
import {
|
|
735
735
|
makeToolCompositeKey,
|
|
736
736
|
searchMessageHistoryOffThread,
|
|
@@ -815,7 +815,7 @@ import {
|
|
|
815
815
|
abortSessionFailClosed2,
|
|
816
816
|
evaluateEmergencyFailClosed2,
|
|
817
817
|
runPostTransformPhase2
|
|
818
|
-
} from "./index-
|
|
818
|
+
} from "./index-gxdc95cp.js";
|
|
819
819
|
import {
|
|
820
820
|
ANNOUNCEMENT_VERSION2,
|
|
821
821
|
ANNOUNCEMENT_FEATURES2,
|
|
@@ -16787,7 +16787,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16787
16787
|
const db = readDatabase();
|
|
16788
16788
|
if (!db)
|
|
16789
16789
|
return { ok: false, error: "db unavailable" };
|
|
16790
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
16790
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-7ecg8ryx.js"));
|
|
16791
16791
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-7x518gew.js"));
|
|
16792
16792
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
16793
16793
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -16872,7 +16872,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
16872
16872
|
const db = readDatabase();
|
|
16873
16873
|
if (!db)
|
|
16874
16874
|
return { ok: false, error: "db unavailable" };
|
|
16875
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
16875
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-nmk6yf7f.js"));
|
|
16876
16876
|
const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
|
|
16877
16877
|
const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
|
|
16878
16878
|
if (!window)
|
|
@@ -780,6 +780,7 @@ async function readGitFileChangeTimesSince(cwd, sinceMs, knownGitRoot) {
|
|
|
780
780
|
}
|
|
781
781
|
return times;
|
|
782
782
|
}
|
|
783
|
+
var TRACKED_FILES_ARGS = ["ls-files", "--recurse-submodules", "-z", "--full-name"];
|
|
783
784
|
async function gitTrackedPath(gitRoot, repoRelativePath) {
|
|
784
785
|
const stdout = await runGit(gitRoot, [
|
|
785
786
|
"ls-files",
|
|
@@ -789,7 +790,7 @@ async function gitTrackedPath(gitRoot, repoRelativePath) {
|
|
|
789
790
|
"--",
|
|
790
791
|
repoRelativePath
|
|
791
792
|
]);
|
|
792
|
-
const fallbackStdout = stdout === null ? await runGit(gitRoot,
|
|
793
|
+
const fallbackStdout = stdout === null ? await runGit(gitRoot, TRACKED_FILES_ARGS) : null;
|
|
793
794
|
if (stdout === null && fallbackStdout === null)
|
|
794
795
|
return null;
|
|
795
796
|
const matches = (stdout ?? fallbackStdout ?? "").split("\x00").filter(Boolean);
|
|
@@ -856,7 +857,7 @@ async function normalizeVerificationFiles(args) {
|
|
|
856
857
|
if (!trackedPaths) {
|
|
857
858
|
let trackedOutput = null;
|
|
858
859
|
try {
|
|
859
|
-
trackedOutput = await runGit(gitRoot,
|
|
860
|
+
trackedOutput = await runGit(gitRoot, TRACKED_FILES_ARGS);
|
|
860
861
|
} catch {}
|
|
861
862
|
trackedPaths = new Set(trackedOutput?.split("\x00").filter(Boolean) ?? []);
|
|
862
863
|
}
|
|
@@ -35,14 +35,14 @@ import {
|
|
|
35
35
|
getActiveCompartmentRun,
|
|
36
36
|
markActiveCompartmentRunPublished,
|
|
37
37
|
registerActiveCompartmentRun
|
|
38
|
-
} from "./index-
|
|
38
|
+
} from "./index-ttk3trse.js";
|
|
39
39
|
import {
|
|
40
40
|
sendStatusNotification2
|
|
41
41
|
} from "./index-g6hfh4h4.js";
|
|
42
42
|
import {
|
|
43
43
|
setRecompStarting2,
|
|
44
44
|
setRecompTerminal2
|
|
45
|
-
} from "./index-
|
|
45
|
+
} from "./index-e32b3x4n.js";
|
|
46
46
|
|
|
47
47
|
// src/hooks/magic-context/wrapup-orchestrator.ts
|
|
48
48
|
import * as crypto from "node:crypto";
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "./index-w6v4dw5f.js";
|
|
11
11
|
import {
|
|
12
12
|
executeContextRecomp
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-ttk3trse.js";
|
|
14
14
|
import {
|
|
15
15
|
renderUserFacingFailure,
|
|
16
16
|
userFacingFailureCode
|
|
17
|
-
} from "./index-
|
|
17
|
+
} from "./index-1bqkqde0.js";
|
|
18
18
|
|
|
19
19
|
// src/hooks/magic-context/recomp-orchestrator.ts
|
|
20
20
|
function resolveLiveModelKey(liveSessionState, sessionId) {
|
|
@@ -240,7 +240,7 @@ import {
|
|
|
240
240
|
} from "./index-qt1qqasc.js";
|
|
241
241
|
import {
|
|
242
242
|
userFacingFailureCode
|
|
243
|
-
} from "./index-
|
|
243
|
+
} from "./index-1bqkqde0.js";
|
|
244
244
|
import {
|
|
245
245
|
getMessageIndexEpoch,
|
|
246
246
|
isMessageIndexSearchable,
|
|
@@ -285,7 +285,7 @@ import {
|
|
|
285
285
|
peekNoteNudgeText,
|
|
286
286
|
markNoteNudgeDelivered,
|
|
287
287
|
getActiveCompartmentRun
|
|
288
|
-
} from "./index-
|
|
288
|
+
} from "./index-ttk3trse.js";
|
|
289
289
|
import {
|
|
290
290
|
getErrorMessage
|
|
291
291
|
} from "./index-y8v6yerm.js";
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
checkCompactionMarkerConsistency,
|
|
59
59
|
clearInjectionCache,
|
|
60
60
|
clearNoteNudgeTriggerOnly
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-ttk3trse.js";
|
|
62
62
|
import"./index-sd3egckz.js";
|
|
63
63
|
import"./index-gqf8r04r.js";
|
|
64
64
|
import {
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
parameterDescriptionsFor,
|
|
153
153
|
MagicContextRpcServer,
|
|
154
154
|
applyHiddenSubagentTemperature
|
|
155
|
-
} from "./index-
|
|
155
|
+
} from "./index-022w6314.js";
|
|
156
156
|
import {
|
|
157
157
|
resolveOpenCodeDbPath,
|
|
158
158
|
openCodeDbPathExists,
|
|
@@ -238,7 +238,7 @@ import"./index-pxnzyvjc.js";
|
|
|
238
238
|
import {
|
|
239
239
|
getDefaultSubcConnectionFile,
|
|
240
240
|
SubcModuleTransport
|
|
241
|
-
} from "./index-
|
|
241
|
+
} from "./index-d0rtbv0f.js";
|
|
242
242
|
import"./index-qt1qqasc.js";
|
|
243
243
|
import"./index-e6ncz7a6.js";
|
|
244
244
|
import {
|
|
@@ -312,7 +312,7 @@ import {
|
|
|
312
312
|
getEmbeddingCoverageStatus2
|
|
313
313
|
} from "./index-s8ks5nz4.js";
|
|
314
314
|
import"./index-4dhv7mqz.js";
|
|
315
|
-
import"./index-
|
|
315
|
+
import"./index-1bqkqde0.js";
|
|
316
316
|
import"./index-k0tb2z28.js";
|
|
317
317
|
import"./index-jjvbk92s.js";
|
|
318
318
|
import"./index-832w615x.js";
|
|
@@ -325,13 +325,13 @@ import {
|
|
|
325
325
|
armBindingRecoverySafely,
|
|
326
326
|
collectForeignTextParts,
|
|
327
327
|
resetDegradedCacheCount2
|
|
328
|
-
} from "./index-
|
|
328
|
+
} from "./index-gxdc95cp.js";
|
|
329
329
|
import {
|
|
330
330
|
scheduleClearAndReindex
|
|
331
331
|
} from "./index-798s7c8s.js";
|
|
332
332
|
import {
|
|
333
333
|
runManagedRecomp2
|
|
334
|
-
} from "./index-
|
|
334
|
+
} from "./index-e32b3x4n.js";
|
|
335
335
|
import {
|
|
336
336
|
isValidSemver,
|
|
337
337
|
compareSemverCore
|
|
@@ -339,7 +339,7 @@ import {
|
|
|
339
339
|
import"./index-fmsr7v69.js";
|
|
340
340
|
import {
|
|
341
341
|
runManagedWrapup2
|
|
342
|
-
} from "./index-
|
|
342
|
+
} from "./index-25nktq8n.js";
|
|
343
343
|
import"./index-70cv85b0.js";
|
|
344
344
|
import"./index-52x68mj4.js";
|
|
345
345
|
import"./index-1pf5qrx4.js";
|
|
@@ -8205,7 +8205,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8205
8205
|
// package.json
|
|
8206
8206
|
var package_default = {
|
|
8207
8207
|
name: "@cortexkit/opencode-magic-context",
|
|
8208
|
-
version: "0.49.
|
|
8208
|
+
version: "0.49.86",
|
|
8209
8209
|
type: "module",
|
|
8210
8210
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8211
8211
|
main: "dist/index.js",
|
|
@@ -12085,7 +12085,7 @@ async function setup(context) {
|
|
|
12085
12085
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12086
12086
|
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.`);
|
|
12087
12087
|
}
|
|
12088
|
-
const { registerContext } = await import("./context-
|
|
12088
|
+
const { registerContext } = await import("./context-xesm7rj3.js");
|
|
12089
12089
|
setHarness2("opencode2");
|
|
12090
12090
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12091
12091
|
const duties = await registerContext(context);
|
|
@@ -12558,7 +12558,7 @@ var server = async (ctx) => {
|
|
|
12558
12558
|
rustReplayParticipant: () => magicContextRuntime.magicContext?.getRustReplayParticipant?.() ?? null,
|
|
12559
12559
|
onStorageBusyRefusal: async (sessionId, message) => {
|
|
12560
12560
|
const { sendStatusNotification } = await importPluginModule(() => import("./send-session-notification-7x518gew.js"));
|
|
12561
|
-
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-
|
|
12561
|
+
const { abortSessionFailClosed } = await importPluginModule(() => import("./transform-postprocess-phase-t99yj9vt.js"));
|
|
12562
12562
|
await sendStatusNotification(ctx.client, sessionId, message, {
|
|
12563
12563
|
toastDurationMs: 15000
|
|
12564
12564
|
});
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
10
|
+
} from "./index-e32b3x4n.js";
|
|
11
|
+
import"./index-ttk3trse.js";
|
|
12
12
|
import"./index-832w615x.js";
|
|
13
13
|
import"./index-sd3egckz.js";
|
|
14
|
-
import"./index-
|
|
14
|
+
import"./index-1bqkqde0.js";
|
|
15
15
|
import"./index-k0tb2z28.js";
|
|
16
16
|
import"./index-jjvbk92s.js";
|
|
17
17
|
import"./index-s8ks5nz4.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-d0rtbv0f.js";
|
|
9
9
|
import"./index-798s7c8s.js";
|
|
10
10
|
import"./index-52x68mj4.js";
|
|
11
|
-
import"./index-
|
|
11
|
+
import"./index-1bqkqde0.js";
|
|
12
12
|
import"./index-k0tb2z28.js";
|
|
13
13
|
import"./index-jjvbk92s.js";
|
|
14
14
|
import"./index-s8ks5nz4.js";
|
package/dist/{transform-postprocess-phase-39a5hm2a.js → transform-postprocess-phase-t99yj9vt.js}
RENAMED
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
finalizeMessageRepresentation2,
|
|
20
20
|
runPostTransformPhase2,
|
|
21
21
|
checkM0MutationDriftAndSignal2
|
|
22
|
-
} from "./index-
|
|
22
|
+
} from "./index-gxdc95cp.js";
|
|
23
23
|
import"./index-798s7c8s.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-ttk3trse.js";
|
|
25
25
|
import"./index-832w615x.js";
|
|
26
26
|
import"./index-sd3egckz.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-1bqkqde0.js";
|
|
28
28
|
import"./index-k0tb2z28.js";
|
|
29
29
|
import"./index-jjvbk92s.js";
|
|
30
30
|
import"./index-s8ks5nz4.js";
|
|
@@ -31,7 +31,7 @@ serveWorkerJobs(async (initial, port) => {
|
|
|
31
31
|
import("./embedding-cache-mgyr73ef.js"),
|
|
32
32
|
import("./storage-memory-e6a7mb0k.js"),
|
|
33
33
|
import("./project-embedding-registry-2jp1antr.js"),
|
|
34
|
-
import("./search-
|
|
34
|
+
import("./search-m251amra.js"),
|
|
35
35
|
import("./compartment-chunk-embedding-x6qw6mjk.js"),
|
|
36
36
|
import("./embedding-activity-g1dhes6g.js"),
|
|
37
37
|
import("./harness-e4avh192.js"),
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
startCompartmentAgent,
|
|
243
243
|
setRecompStarting2,
|
|
244
244
|
setRecompTerminal2
|
|
245
|
-
} from "./server-
|
|
245
|
+
} from "./server-fsw8kbng.js";
|
|
246
246
|
import {
|
|
247
247
|
embedPauseBySession,
|
|
248
248
|
embedRunStateBySession,
|
|
@@ -818,7 +818,7 @@ import {
|
|
|
818
818
|
resolveMemoriesByIdsForSearch2,
|
|
819
819
|
unifiedSearch2,
|
|
820
820
|
formatSearchResults2
|
|
821
|
-
} from "./server-
|
|
821
|
+
} from "./server-ssg29wjg.js";
|
|
822
822
|
import {
|
|
823
823
|
startBootDeadline,
|
|
824
824
|
getUnconfirmedMigrationHolders,
|
|
@@ -955,7 +955,7 @@ import {
|
|
|
955
955
|
readGitFileChangeTimesSince,
|
|
956
956
|
verificationFileExists,
|
|
957
957
|
normalizeVerificationFiles
|
|
958
|
-
} from "./server-
|
|
958
|
+
} from "./server-y31y6gws.js";
|
|
959
959
|
import"./server-mbkwcwgw.js";
|
|
960
960
|
import {
|
|
961
961
|
computeCueContentHash,
|
|
@@ -26412,7 +26412,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
26412
26412
|
const db = readDatabase();
|
|
26413
26413
|
if (!db)
|
|
26414
26414
|
return { ok: false, error: "db unavailable" };
|
|
26415
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
26415
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-ssde9ft1.js"));
|
|
26416
26416
|
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-p52rhjzy.js"));
|
|
26417
26417
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
26418
26418
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
@@ -26497,7 +26497,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
26497
26497
|
const db = readDatabase();
|
|
26498
26498
|
if (!db)
|
|
26499
26499
|
return { ok: false, error: "db unavailable" };
|
|
26500
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
26500
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-eg5b1p89.js"));
|
|
26501
26501
|
const model = await args.readSelectedSessionModel?.(sessionId) ?? liveSessionState.liveModelBySession.get(sessionId);
|
|
26502
26502
|
const window = resolveOpenCodeWrapupWindow(db, sessionId, model);
|
|
26503
26503
|
if (!window)
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
setRecompTerminal2,
|
|
8
8
|
buildRecompDeps2,
|
|
9
9
|
runManagedRecomp2
|
|
10
|
-
} from "./server-
|
|
10
|
+
} from "./server-fsw8kbng.js";
|
|
11
11
|
import"./server-at0v0z4t.js";
|
|
12
|
-
import"./server-
|
|
12
|
+
import"./server-y31y6gws.js";
|
|
13
13
|
import"./server-mbkwcwgw.js";
|
|
14
14
|
import"./server-jjvbk92s.js";
|
|
15
15
|
import"./server-hn8b7sfe.js";
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./server-
|
|
8
|
+
} from "./server-ssg29wjg.js";
|
|
9
9
|
import"./server-52x68mj4.js";
|
|
10
|
-
import"./server-
|
|
10
|
+
import"./server-y31y6gws.js";
|
|
11
11
|
import"./server-mbkwcwgw.js";
|
|
12
12
|
import"./server-jjvbk92s.js";
|
|
13
13
|
import"./server-hn8b7sfe.js";
|
|
@@ -777,6 +777,7 @@ async function readGitFileChangeTimesSince(cwd, sinceMs, knownGitRoot) {
|
|
|
777
777
|
}
|
|
778
778
|
return times;
|
|
779
779
|
}
|
|
780
|
+
var TRACKED_FILES_ARGS = ["ls-files", "--recurse-submodules", "-z", "--full-name"];
|
|
780
781
|
async function gitTrackedPath(gitRoot, repoRelativePath) {
|
|
781
782
|
const stdout = await runGit(gitRoot, [
|
|
782
783
|
"ls-files",
|
|
@@ -786,7 +787,7 @@ async function gitTrackedPath(gitRoot, repoRelativePath) {
|
|
|
786
787
|
"--",
|
|
787
788
|
repoRelativePath
|
|
788
789
|
]);
|
|
789
|
-
const fallbackStdout = stdout === null ? await runGit(gitRoot,
|
|
790
|
+
const fallbackStdout = stdout === null ? await runGit(gitRoot, TRACKED_FILES_ARGS) : null;
|
|
790
791
|
if (stdout === null && fallbackStdout === null)
|
|
791
792
|
return null;
|
|
792
793
|
const matches = (stdout ?? fallbackStdout ?? "").split("\x00").filter(Boolean);
|
|
@@ -853,7 +854,7 @@ async function normalizeVerificationFiles(args) {
|
|
|
853
854
|
if (!trackedPaths) {
|
|
854
855
|
let trackedOutput = null;
|
|
855
856
|
try {
|
|
856
|
-
trackedOutput = await runGit(gitRoot,
|
|
857
|
+
trackedOutput = await runGit(gitRoot, TRACKED_FILES_ARGS);
|
|
857
858
|
} catch {}
|
|
858
859
|
trackedPaths = new Set(trackedOutput?.split("\x00").filter(Boolean) ?? []);
|
|
859
860
|
}
|
package/dist/v2/server.js
CHANGED
|
@@ -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.86",
|
|
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-k8sx1nyy.js");
|
|
8202
8202
|
setHarness2("opencode2");
|
|
8203
8203
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8204
8204
|
const duties = await registerContext(context);
|
|
@@ -65,13 +65,13 @@ import {
|
|
|
65
65
|
registerActiveCompartmentRun,
|
|
66
66
|
setRecompStarting2,
|
|
67
67
|
setRecompTerminal2
|
|
68
|
-
} from "./server-
|
|
68
|
+
} from "./server-fsw8kbng.js";
|
|
69
69
|
import"./server-qt1qqasc.js";
|
|
70
70
|
import"./server-hn8b7sfe.js";
|
|
71
71
|
import"./server-3p6b0qya.js";
|
|
72
72
|
import"./server-4dhv7mqz.js";
|
|
73
73
|
import"./server-b93f0bqh.js";
|
|
74
|
-
import"./server-
|
|
74
|
+
import"./server-y31y6gws.js";
|
|
75
75
|
import"./server-mbkwcwgw.js";
|
|
76
76
|
import"./server-jjvbk92s.js";
|
|
77
77
|
import"./server-e2k9mt86.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runManagedWrapup2
|
|
3
|
-
} from "./index-
|
|
4
|
-
import"./index-
|
|
5
|
-
import"./index-
|
|
3
|
+
} from "./index-25nktq8n.js";
|
|
4
|
+
import"./index-e32b3x4n.js";
|
|
5
|
+
import"./index-ttk3trse.js";
|
|
6
6
|
import"./index-832w615x.js";
|
|
7
7
|
import"./index-sd3egckz.js";
|
|
8
|
-
import"./index-
|
|
8
|
+
import"./index-1bqkqde0.js";
|
|
9
9
|
import"./index-k0tb2z28.js";
|
|
10
10
|
import"./index-jjvbk92s.js";
|
|
11
11
|
import"./index-s8ks5nz4.js";
|
package/package.json
CHANGED
|
@@ -18,8 +18,8 @@ export function nativeCompactionContextLabel(snapshot: SidebarSnapshot): string
|
|
|
18
18
|
|
|
19
19
|
export function compactionOffSidebarRows(snapshot: SidebarSnapshot): CompactionOffSidebarRow[] {
|
|
20
20
|
const rows: CompactionOffSidebarRow[] = [
|
|
21
|
-
{ label: "Memories", value: String(snapshot.memoryCount) },
|
|
22
|
-
{ label: "Notes", value: String(snapshot.sessionNoteCount) },
|
|
21
|
+
{ label: "Memories", value: String(snapshot.memoryCount ?? "") },
|
|
22
|
+
{ label: "Notes", value: String(snapshot.sessionNoteCount ?? "") },
|
|
23
23
|
];
|
|
24
24
|
const archivedCount = snapshot.archivedCompartmentCount ?? 0;
|
|
25
25
|
if (archivedCount > 0) {
|