@cortexkit/opencode-magic-context 0.49.113 → 0.49.114
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/{context-v7jc2hf4.js → context-f8cpdm7w.js} +6 -3
- package/dist/hooks/magic-context/embed-history-runner.d.ts.map +1 -1
- package/dist/{index-3e21p6aw.js → index-ha2kwjws.js} +3 -1
- package/dist/index.js +3 -3
- package/dist/v2/{context-wkwh795k.js → context-dn06vca5.js} +8 -3
- package/dist/v2/hooks/embedding-lifecycle.d.ts +3 -1
- package/dist/v2/hooks/embedding-lifecycle.d.ts.map +1 -1
- package/dist/v2/hooks/transform-features.d.ts.map +1 -1
- package/dist/v2/server.js +2 -2
- package/package.json +1 -1
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
waitForEventSubscriptionRetry,
|
|
157
157
|
HiddenModelActivity,
|
|
158
158
|
startEventSubscriptionWorker
|
|
159
|
-
} from "./index-
|
|
159
|
+
} from "./index-ha2kwjws.js";
|
|
160
160
|
import {
|
|
161
161
|
invalidateAutoEmbedSession,
|
|
162
162
|
clearEmbedSessionState
|
|
@@ -6398,10 +6398,11 @@ function createV2EmbeddingScope(initialProject) {
|
|
|
6398
6398
|
if (initialProject)
|
|
6399
6399
|
claim(initialProject);
|
|
6400
6400
|
return {
|
|
6401
|
-
ensureRegistered(directory, db) {
|
|
6401
|
+
ensureRegistered(directory, db, options) {
|
|
6402
6402
|
if (disposed)
|
|
6403
6403
|
return Promise.resolve();
|
|
6404
6404
|
const registration = ensureProjectRegisteredFromOpenCodeDirectory(directory, db, {
|
|
6405
|
+
...options,
|
|
6405
6406
|
onRegistered: claim
|
|
6406
6407
|
});
|
|
6407
6408
|
pending.add(registration);
|
|
@@ -7643,7 +7644,9 @@ function createV2AutoEmbedSession(deps, ensureProjectRegistered = ensureProjectR
|
|
|
7643
7644
|
db: deps.db,
|
|
7644
7645
|
projectIdentity,
|
|
7645
7646
|
ensureRegistered: async () => {
|
|
7646
|
-
await ensureProjectRegistered(directory, deps.db
|
|
7647
|
+
await ensureProjectRegistered(directory, deps.db, {
|
|
7648
|
+
preflightLocalPooling: true
|
|
7649
|
+
});
|
|
7647
7650
|
deps.onDirectoryResolved?.(sessionId, directory);
|
|
7648
7651
|
}
|
|
7649
7652
|
}, sessionId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embed-history-runner.d.ts","sourceRoot":"","sources":["../../../src/hooks/magic-context/embed-history-runner.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAMjE;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,QAAQ,CAAC;IACb,gFAAgF;IAChF,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yDAAyD;IACzD,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACrD,wFAAwF;IACxF,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE;AAED,wFAAwF;AACxF,wBAAsB,oBAAoB,CACtC,IAAI,EAAE,gBAAgB,EACtB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GACrD,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"embed-history-runner.d.ts","sourceRoot":"","sources":["../../../src/hooks/magic-context/embed-history-runner.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAMjE;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,QAAQ,CAAC;IACb,gFAAgF;IAChF,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IAChD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,yDAAyD;IACzD,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACrD,wFAAwF;IACxF,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACxE;AAED,wFAAwF;AACxF,wBAAsB,oBAAoB,CACtC,IAAI,EAAE,gBAAgB,EACtB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GACrD,OAAO,CAAC,MAAM,CAAC,CAgHjB;AAED,8EAA8E;AAC9E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAaxF"}
|
|
@@ -13266,7 +13266,9 @@ async function runEmbedHistoryDrain(deps, sessionId, options) {
|
|
|
13266
13266
|
let sessionProjectIdentity;
|
|
13267
13267
|
let outcome;
|
|
13268
13268
|
try {
|
|
13269
|
-
await ensureProjectRegisteredFromOpenCodeDirectory(directory, deps.db
|
|
13269
|
+
await ensureProjectRegisteredFromOpenCodeDirectory(directory, deps.db, {
|
|
13270
|
+
preflightLocalPooling: true
|
|
13271
|
+
});
|
|
13270
13272
|
const identity = resolveProjectIdentityForSession(directory, deps.allowHomeProject);
|
|
13271
13273
|
if (!identity)
|
|
13272
13274
|
return "No project identity is bound for the home directory.";
|
package/dist/index.js
CHANGED
|
@@ -149,7 +149,7 @@ import {
|
|
|
149
149
|
MagicContextRpcServer,
|
|
150
150
|
applyHiddenSubagentTemperature,
|
|
151
151
|
startEventSubscriptionWorker
|
|
152
|
-
} from "./index-
|
|
152
|
+
} from "./index-ha2kwjws.js";
|
|
153
153
|
import {
|
|
154
154
|
resolveOpenCodeDbPath,
|
|
155
155
|
openCodeDbPathExists,
|
|
@@ -8223,7 +8223,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
8223
8223
|
// package.json
|
|
8224
8224
|
var package_default = {
|
|
8225
8225
|
name: "@cortexkit/opencode-magic-context",
|
|
8226
|
-
version: "0.49.
|
|
8226
|
+
version: "0.49.114",
|
|
8227
8227
|
type: "module",
|
|
8228
8228
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
8229
8229
|
main: "dist/index.js",
|
|
@@ -12232,7 +12232,7 @@ async function setup(context) {
|
|
|
12232
12232
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
12233
12233
|
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.`);
|
|
12234
12234
|
}
|
|
12235
|
-
const { registerContext } = await import("./context-
|
|
12235
|
+
const { registerContext } = await import("./context-f8cpdm7w.js");
|
|
12236
12236
|
setHarness2("opencode2");
|
|
12237
12237
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
12238
12238
|
const duties = await registerContext(context);
|
|
@@ -25744,7 +25744,9 @@ async function runEmbedHistoryDrain(deps, sessionId, options) {
|
|
|
25744
25744
|
let sessionProjectIdentity;
|
|
25745
25745
|
let outcome;
|
|
25746
25746
|
try {
|
|
25747
|
-
await ensureProjectRegisteredFromOpenCodeDirectory(directory, deps.db
|
|
25747
|
+
await ensureProjectRegisteredFromOpenCodeDirectory(directory, deps.db, {
|
|
25748
|
+
preflightLocalPooling: true
|
|
25749
|
+
});
|
|
25748
25750
|
const identity = resolveProjectIdentityForSession(directory, deps.allowHomeProject);
|
|
25749
25751
|
if (!identity)
|
|
25750
25752
|
return "No project identity is bound for the home directory.";
|
|
@@ -43236,10 +43238,11 @@ function createV2EmbeddingScope(initialProject) {
|
|
|
43236
43238
|
if (initialProject)
|
|
43237
43239
|
claim(initialProject);
|
|
43238
43240
|
return {
|
|
43239
|
-
ensureRegistered(directory, db) {
|
|
43241
|
+
ensureRegistered(directory, db, options) {
|
|
43240
43242
|
if (disposed)
|
|
43241
43243
|
return Promise.resolve();
|
|
43242
43244
|
const registration = ensureProjectRegisteredFromOpenCodeDirectory(directory, db, {
|
|
43245
|
+
...options,
|
|
43243
43246
|
onRegistered: claim
|
|
43244
43247
|
});
|
|
43245
43248
|
pending.add(registration);
|
|
@@ -58808,7 +58811,9 @@ function createV2AutoEmbedSession(deps, ensureProjectRegistered = ensureProjectR
|
|
|
58808
58811
|
db: deps.db,
|
|
58809
58812
|
projectIdentity,
|
|
58810
58813
|
ensureRegistered: async () => {
|
|
58811
|
-
await ensureProjectRegistered(directory, deps.db
|
|
58814
|
+
await ensureProjectRegistered(directory, deps.db, {
|
|
58815
|
+
preflightLocalPooling: true
|
|
58816
|
+
});
|
|
58812
58817
|
deps.onDirectoryResolved?.(sessionId, directory);
|
|
58813
58818
|
}
|
|
58814
58819
|
}, sessionId);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { Database } from "../../shared/sqlite";
|
|
2
2
|
/** Retain each project's embeddings once per context and release them when the context is disposed. */
|
|
3
3
|
export declare function createV2EmbeddingScope(initialProject?: string): {
|
|
4
|
-
ensureRegistered(directory: string, db: Database
|
|
4
|
+
ensureRegistered(directory: string, db: Database, options?: {
|
|
5
|
+
preflightLocalPooling?: boolean;
|
|
6
|
+
}): Promise<void>;
|
|
5
7
|
dispose(): Promise<void>;
|
|
6
8
|
};
|
|
7
9
|
//# sourceMappingURL=embedding-lifecycle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedding-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/embedding-lifecycle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,uGAAuG;AACvG,wBAAgB,sBAAsB,CAAC,cAAc,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"embedding-lifecycle.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/embedding-lifecycle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,uGAAuG;AACvG,wBAAgB,sBAAsB,CAAC,cAAc,CAAC,EAAE,MAAM;gCAWvC,MAAM,MACb,QAAQ,YACF;QAAE,qBAAqB,CAAC,EAAE,OAAO,CAAA;KAAE,GAC9C,OAAO,CAAC,IAAI,CAAC;eASL,OAAO,CAAC,IAAI,CAAC;EAW/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-features.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/transform-features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAQ7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,OAAO,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AAEhG,+EAA+E;AAC/E,wBAAgB,4BAA4B,CACxC,MAAM,EAAE,wBAAwB,EAChC,aAAa,EAAE,OAAO,EACtB,SAAS,EAAE,MAAM,EACjB,uBAAuB,sDAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCzE;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACpC,IAAI,EAAE,gBAAgB,EACtB,uBAAuB,sDAA+C,GACvE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,
|
|
1
|
+
{"version":3,"file":"transform-features.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/transform-features.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAQ7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAEvF,OAAO,EAAE,4CAA4C,EAAE,MAAM,kCAAkC,CAAC;AAEhG,+EAA+E;AAC/E,wBAAgB,4BAA4B,CACxC,MAAM,EAAE,wBAAwB,EAChC,aAAa,EAAE,OAAO,EACtB,SAAS,EAAE,MAAM,EACjB,uBAAuB,sDAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCzE;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,CACpC,IAAI,EAAE,gBAAgB,EACtB,uBAAuB,sDAA+C,GACvE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAmB7B"}
|
package/dist/v2/server.js
CHANGED
|
@@ -7878,7 +7878,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
7878
7878
|
// package.json
|
|
7879
7879
|
var package_default = {
|
|
7880
7880
|
name: "@cortexkit/opencode-magic-context",
|
|
7881
|
-
version: "0.49.
|
|
7881
|
+
version: "0.49.114",
|
|
7882
7882
|
type: "module",
|
|
7883
7883
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7884
7884
|
main: "dist/index.js",
|
|
@@ -8189,7 +8189,7 @@ async function setup(context) {
|
|
|
8189
8189
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8190
8190
|
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.`);
|
|
8191
8191
|
}
|
|
8192
|
-
const { registerContext } = await import("./context-
|
|
8192
|
+
const { registerContext } = await import("./context-dn06vca5.js");
|
|
8193
8193
|
setHarness2("opencode2");
|
|
8194
8194
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8195
8195
|
const duties = await registerContext(context);
|
package/package.json
CHANGED