context-mode 0.9.0 → 0.9.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.
@@ -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.2",
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.2",
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
@@ -396,6 +396,31 @@ async function upgrade() {
396
396
  s.stop(color.yellow("Cache migration skipped — using existing directory"));
397
397
  }
398
398
  }
399
+ // Update installed_plugins.json so Claude Code loads from new path
400
+ const installedPluginsPath = resolve(homedir(), ".claude", "plugins", "installed_plugins.json");
401
+ try {
402
+ const ipRaw = JSON.parse(readFileSync(installedPluginsPath, "utf-8"));
403
+ const plugins = ipRaw.plugins ?? {};
404
+ let updated = false;
405
+ for (const [key, entries] of Object.entries(plugins)) {
406
+ if (!key.toLowerCase().includes("context-mode"))
407
+ continue;
408
+ for (const entry of entries) {
409
+ entry.installPath = pluginRoot;
410
+ entry.version = newVersion;
411
+ entry.lastUpdated = new Date().toISOString();
412
+ updated = true;
413
+ }
414
+ }
415
+ if (updated) {
416
+ writeFileSync(installedPluginsPath, JSON.stringify(ipRaw, null, 2) + "\n", "utf-8");
417
+ p.log.success(color.green("Plugin registry updated") + color.dim(` — installed_plugins.json`));
418
+ changes.push("Updated plugin registry path");
419
+ }
420
+ }
421
+ catch {
422
+ p.log.warn(color.yellow("Could not update installed_plugins.json — marketplace may show old version"));
423
+ }
399
424
  // Update global npm package from same GitHub source
400
425
  s.start("Updating npm global package");
401
426
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-mode",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
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",