context-mode 1.0.84 → 1.0.86

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.84"
9
+ "version": "1.0.86"
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.84",
16
+ "version": "1.0.86",
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.84",
3
+ "version": "1.0.86",
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.84",
6
+ "version": "1.0.86",
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.84",
3
+ "version": "1.0.86",
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
@@ -362,7 +362,7 @@ async function doctor() {
362
362
  async function insight(port) {
363
363
  const { execSync, spawn } = await import("node:child_process");
364
364
  const { statSync, mkdirSync, cpSync } = await import("node:fs");
365
- const insightSource = resolve(__dirname, "insight");
365
+ const insightSource = resolve(getPluginRoot(), "insight");
366
366
  // Adapter-agnostic cache: use ~/.claude/context-mode/insight-cache as default
367
367
  // (matches server.ts pattern but CLI doesn't have adapter detection)
368
368
  const cacheDir = join(homedir(), ".claude", "context-mode", "insight-cache");
@@ -461,9 +461,13 @@ async function upgrade() {
461
461
  s.start("Updating files in-place");
462
462
  // Old version dirs are cleaned lazily by sessionstart.mjs (age-gated >1h)
463
463
  // to avoid breaking active sessions that still reference them (#181).
464
+ // Read files list from cloned repo's package.json so new directories
465
+ // (like insight/) are automatically included without chicken-and-egg issues
466
+ // where the old CLI doesn't know about new directories.
467
+ const clonedPkg = JSON.parse(readFileSync(resolve(srcDir, "package.json"), "utf-8"));
464
468
  const items = [
465
- "build", "src", "hooks", "skills", "scripts", "insight", ".claude-plugin",
466
- "start.mjs", "server.bundle.mjs", "cli.bundle.mjs", "package.json",
469
+ ...(clonedPkg.files || []),
470
+ "src", "package.json",
467
471
  ];
468
472
  for (const item of items) {
469
473
  try {