@cortexkit/opencode-magic-context 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -1
- package/dist/cli/doctor.d.ts +3 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli.js +9 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
<a href="#what-is-magic-context">What is Magic Context?</a> ·
|
|
23
23
|
<a href="#what-your-agent-gets">What Your Agent Gets</a> ·
|
|
24
24
|
<a href="#how-it-works">How It Works</a> ·
|
|
25
|
+
<a href="#magic-context-app">🖥️ Desktop App <sup>(NEW)</sup></a> ·
|
|
25
26
|
<a href="#commands">Commands</a> ·
|
|
26
27
|
<a href="#configuration">Configuration</a>
|
|
27
28
|
</p>
|
|
@@ -139,7 +140,13 @@ Already installed but something isn't working? Run the doctor to check and auto-
|
|
|
139
140
|
bunx @cortexkit/opencode-magic-context doctor
|
|
140
141
|
```
|
|
141
142
|
|
|
142
|
-
Doctor checks for conflicts (compaction, DCP, OMO hooks), ensures the TUI sidebar is configured,
|
|
143
|
+
Doctor checks for conflicts (compaction, DCP, OMO hooks), ensures the TUI sidebar is configured, verifies the plugin is registered, and checks the npm cache — fixing what it can automatically.
|
|
144
|
+
|
|
145
|
+
Use `--force` to force-clear the plugin cache even when versions match (fixes broken transitive dependencies):
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
bunx @cortexkit/opencode-magic-context doctor --force
|
|
149
|
+
```
|
|
143
150
|
|
|
144
151
|
---
|
|
145
152
|
|
|
@@ -316,6 +323,27 @@ On startup, Magic Context checks for common configuration problems — OpenCode'
|
|
|
316
323
|
|
|
317
324
|
---
|
|
318
325
|
|
|
326
|
+
## Magic Context App
|
|
327
|
+
|
|
328
|
+
A companion desktop app for browsing and managing Magic Context state outside of OpenCode.
|
|
329
|
+
|
|
330
|
+
<p align="center">
|
|
331
|
+
<a href="https://github.com/cortexkit/opencode-magic-context/releases?q=dashboard"><strong>⬇️ Download for macOS · Windows · Linux</strong></a>
|
|
332
|
+
</p>
|
|
333
|
+
|
|
334
|
+
**Features:**
|
|
335
|
+
- **Memory Browser** — search, filter, and edit project memories with category and project filtering
|
|
336
|
+
- **Session History** — browse compartments, facts, and notes for any session with timeline navigation
|
|
337
|
+
- **Cache Diagnostics** — real-time cache hit/miss timeline, bust cause detection, per-session stats
|
|
338
|
+
- **Dreamer Management** — view dream run history per project, trigger runs, inspect task results
|
|
339
|
+
- **Configuration Editor** — form-based editing for all settings including model selection with fallback chains
|
|
340
|
+
- **Log Viewer** — live-tailing log viewer with search
|
|
341
|
+
- **System Tray** — quick access to dreamer status and controls
|
|
342
|
+
|
|
343
|
+
The app reads directly from Magic Context's SQLite database — no additional server or API required. Auto-updates are built in.
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
319
347
|
## Configuration
|
|
320
348
|
|
|
321
349
|
All settings live in `magic-context.jsonc` as flat top-level keys. See **[CONFIGURATION.md](./CONFIGURATION.md)** for the full reference — cache TTL tuning, per-model execute thresholds, historian model selection, embedding providers, memory settings, sidekick, and dreamer.
|
package/dist/cli/doctor.d.ts
CHANGED
package/dist/cli/doctor.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA2GA,wBAAsB,SAAS,
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/cli/doctor.ts"],"names":[],"mappings":"AA2GA,wBAAsB,SAAS,CAAC,OAAO,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAuMlF"}
|
package/dist/cli.js
CHANGED
|
@@ -9610,7 +9610,7 @@ function getOpenCodeCacheDir() {
|
|
|
9610
9610
|
}
|
|
9611
9611
|
return join7(homedir3(), ".cache", "opencode");
|
|
9612
9612
|
}
|
|
9613
|
-
async function clearPluginCache() {
|
|
9613
|
+
async function clearPluginCache(force = false) {
|
|
9614
9614
|
const cacheDir = getOpenCodeCacheDir();
|
|
9615
9615
|
const pluginCacheDir = join7(cacheDir, "packages", PLUGIN_ENTRY_WITH_VERSION);
|
|
9616
9616
|
if (!existsSync5(pluginCacheDir)) {
|
|
@@ -9635,7 +9635,7 @@ async function clearPluginCache() {
|
|
|
9635
9635
|
break;
|
|
9636
9636
|
} catch {}
|
|
9637
9637
|
}
|
|
9638
|
-
if (cachedVersion && cachedVersion === selfVersion) {
|
|
9638
|
+
if (!force && cachedVersion && cachedVersion === selfVersion) {
|
|
9639
9639
|
return {
|
|
9640
9640
|
action: "up_to_date",
|
|
9641
9641
|
path: pluginCacheDir,
|
|
@@ -9656,7 +9656,7 @@ async function clearPluginCache() {
|
|
|
9656
9656
|
return { action: "error", path: pluginCacheDir, error: msg };
|
|
9657
9657
|
}
|
|
9658
9658
|
}
|
|
9659
|
-
async function runDoctor() {
|
|
9659
|
+
async function runDoctor(options = {}) {
|
|
9660
9660
|
Wt2("Magic Context Doctor");
|
|
9661
9661
|
let issues = 0;
|
|
9662
9662
|
let fixed = 0;
|
|
@@ -9744,7 +9744,7 @@ async function runDoctor() {
|
|
|
9744
9744
|
}
|
|
9745
9745
|
} catch {}
|
|
9746
9746
|
}
|
|
9747
|
-
const cacheResult = await clearPluginCache();
|
|
9747
|
+
const cacheResult = await clearPluginCache(options.force);
|
|
9748
9748
|
if (cacheResult.action === "cleared") {
|
|
9749
9749
|
const versionInfo = cacheResult.cached ? ` (cached: ${cacheResult.cached}${cacheResult.latest ? `, latest: ${cacheResult.latest}` : ""})` : "";
|
|
9750
9750
|
R2.success(`Cleared outdated plugin cache${versionInfo} — latest will download on restart`);
|
|
@@ -10103,15 +10103,17 @@ var command = process.argv[2];
|
|
|
10103
10103
|
if (command === "setup") {
|
|
10104
10104
|
runSetup().then((code) => process.exit(code));
|
|
10105
10105
|
} else if (command === "doctor") {
|
|
10106
|
-
|
|
10106
|
+
const force = process.argv.includes("--force");
|
|
10107
|
+
runDoctor({ force }).then((code) => process.exit(code));
|
|
10107
10108
|
} else {
|
|
10108
10109
|
console.log("");
|
|
10109
10110
|
console.log(" Magic Context CLI");
|
|
10110
10111
|
console.log(" ─────────────────");
|
|
10111
10112
|
console.log("");
|
|
10112
10113
|
console.log(" Commands:");
|
|
10113
|
-
console.log(" setup
|
|
10114
|
-
console.log(" doctor
|
|
10114
|
+
console.log(" setup Interactive setup wizard (first-time install)");
|
|
10115
|
+
console.log(" doctor Check and fix configuration issues");
|
|
10116
|
+
console.log(" doctor --force Force clear plugin cache (fixes broken dependencies)");
|
|
10115
10117
|
console.log("");
|
|
10116
10118
|
console.log(" Usage:");
|
|
10117
10119
|
console.log(" bunx @cortexkit/opencode-magic-context setup");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cortexkit/opencode-magic-context",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@clack/prompts": "^1.1.0",
|
|
47
|
-
"@huggingface/transformers": "
|
|
47
|
+
"@huggingface/transformers": "~3.7.6",
|
|
48
48
|
"@opencode-ai/plugin": "^1.2.26",
|
|
49
49
|
"@opencode-ai/sdk": "^1.2.26",
|
|
50
50
|
"ai-tokenizer": "^1.0.6",
|