context-mode 1.0.66 → 1.0.67

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.
@@ -6,14 +6,14 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Claude Code plugins by Mert Koseoğlu",
9
- "version": "1.0.66"
9
+ "version": "1.0.67"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "context-mode",
14
14
  "source": "./",
15
15
  "description": "Claude Code MCP plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.",
16
- "version": "1.0.66",
16
+ "version": "1.0.67",
17
17
  "author": {
18
18
  "name": "Mert Koseoğlu"
19
19
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-mode",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "description": "MCP server that saves 98% of your context window with session continuity. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and automatic state restore across compactions.",
5
5
  "author": {
6
6
  "name": "Mert Koseoğlu",
@@ -3,7 +3,7 @@
3
3
  "name": "Context Mode",
4
4
  "kind": "tool",
5
5
  "description": "OpenClaw plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.",
6
- "version": "1.0.66",
6
+ "version": "1.0.67",
7
7
  "sandbox": {
8
8
  "mode": "permissive",
9
9
  "filesystem_access": "full",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-mode",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "description": "OpenClaw plugin that saves 98% of your context window. Sandboxed code execution in 11 languages, FTS5 knowledge base with BM25 ranking, and intent-driven search.",
5
5
  "author": {
6
6
  "name": "Mert Koseoğlu",
package/build/cli.js CHANGED
@@ -472,6 +472,28 @@ async function upgrade() {
472
472
  }
473
473
  // Cleanup
474
474
  rmSync(tmpDir, { recursive: true, force: true });
475
+ // Sync skills to the active install path from installed_plugins.json (#228).
476
+ // Only targets the ACTUAL directory Claude Code reads from — not spraying everywhere.
477
+ try {
478
+ const registryPath = resolve(homedir(), ".claude", "plugins", "installed_plugins.json");
479
+ if (existsSync(registryPath)) {
480
+ const registry = JSON.parse(readFileSync(registryPath, "utf-8"));
481
+ const entries = registry?.plugins?.["context-mode@context-mode"];
482
+ if (Array.isArray(entries)) {
483
+ for (const entry of entries) {
484
+ const installPath = entry.installPath;
485
+ if (installPath && installPath !== pluginRoot && existsSync(installPath)) {
486
+ const srcSkills = resolve(srcDir, "skills");
487
+ if (existsSync(srcSkills)) {
488
+ cpSync(srcSkills, resolve(installPath, "skills"), { recursive: true });
489
+ changes.push(`Synced skills to active install path`);
490
+ }
491
+ }
492
+ }
493
+ }
494
+ }
495
+ }
496
+ catch { /* best effort — registry may not exist or be malformed */ }
475
497
  changes.push(newVersion !== localVersion
476
498
  ? `Updated v${localVersion} → v${newVersion}`
477
499
  : `Reinstalled v${localVersion} from GitHub`);
@@ -541,6 +563,12 @@ async function upgrade() {
541
563
  else {
542
564
  p.log.info(color.dim("No changes were needed."));
543
565
  }
566
+ // Restart notice — new MCP tools require MCP server restart
567
+ const restartHint = adapter.name === "Claude Code"
568
+ ? "/reload-plugins, new terminal, or restart session"
569
+ : "new terminal or restart session";
570
+ p.log.warn(color.yellow("Restart for new MCP tools to take effect.") +
571
+ color.dim(` (${restartHint})`));
544
572
  // Step 7: Run doctor
545
573
  p.log.step("Running doctor to verify...");
546
574
  console.log();