context-mode 0.9.1 → 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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/build/cli.js +22 -12
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
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
|
@@ -395,22 +395,32 @@ async function upgrade() {
|
|
|
395
395
|
catch {
|
|
396
396
|
s.stop(color.yellow("Cache migration skipped — using existing directory"));
|
|
397
397
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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;
|
|
408
413
|
}
|
|
409
414
|
}
|
|
410
|
-
|
|
411
|
-
|
|
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");
|
|
412
419
|
}
|
|
413
420
|
}
|
|
421
|
+
catch {
|
|
422
|
+
p.log.warn(color.yellow("Could not update installed_plugins.json — marketplace may show old version"));
|
|
423
|
+
}
|
|
414
424
|
// Update global npm package from same GitHub source
|
|
415
425
|
s.start("Updating npm global package");
|
|
416
426
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "context-mode",
|
|
3
|
-
"version": "0.9.
|
|
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",
|