context-mode 0.9.0 → 0.9.1

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.
@@ -13,7 +13,7 @@
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": "0.9.0",
16
+ "version": "0.9.1",
17
17
  "author": {
18
18
  "name": "Mert Koseoğlu"
19
19
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-mode",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "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.",
5
5
  "author": {
6
6
  "name": "Mert Koseoğlu",
package/build/cli.js CHANGED
@@ -395,6 +395,21 @@ async function upgrade() {
395
395
  catch {
396
396
  s.stop(color.yellow("Cache migration skipped — using existing directory"));
397
397
  }
398
+ // Update installed_plugins.json so Claude Code loads from new path
399
+ const installedPluginsPath = resolve(homedir(), ".claude", "plugins", "installed_plugins.json");
400
+ try {
401
+ const raw = readFileSync(installedPluginsPath, "utf-8");
402
+ const updated = raw
403
+ .replace(new RegExp(oldDirVersion.replace(/\./g, "\\."), "g"), newVersion);
404
+ if (updated !== raw) {
405
+ writeFileSync(installedPluginsPath, updated, "utf-8");
406
+ p.log.success(color.green("Plugin registry updated") + color.dim(` — installed_plugins.json`));
407
+ changes.push("Updated plugin registry path");
408
+ }
409
+ }
410
+ catch {
411
+ p.log.warn(color.yellow("Could not update installed_plugins.json — marketplace may show old version"));
412
+ }
398
413
  }
399
414
  // Update global npm package from same GitHub source
400
415
  s.start("Updating npm global package");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-mode",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "description": "Claude Code MCP plugin that saves 98% of your context window. Sandboxed code execution, FTS5 knowledge base, and intent-driven search.",
6
6
  "author": "Mert Koseoğlu",