context-mode 1.0.35 → 1.0.37

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.35"
9
+ "version": "1.0.37"
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.35",
16
+ "version": "1.0.37",
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.35",
3
+ "version": "1.0.37",
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.35",
6
+ "version": "1.0.37",
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.35",
3
+ "version": "1.0.37",
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",
@@ -456,7 +456,10 @@ export default {
456
456
  name: "ctx-doctor",
457
457
  description: "Run context-mode diagnostics",
458
458
  handler: () => {
459
- const cmd = `node "${_latestPluginRoot}/build/cli.js" doctor`;
459
+ const bundlePath = resolve(_latestPluginRoot, "cli.bundle.mjs");
460
+ const fallbackPath = resolve(_latestPluginRoot, "build", "cli.js");
461
+ const cliPath = existsSync(bundlePath) ? bundlePath : fallbackPath;
462
+ const cmd = `node "${cliPath}" doctor`;
460
463
  return {
461
464
  text: [
462
465
  "## ctx-doctor",
@@ -474,7 +477,10 @@ export default {
474
477
  name: "ctx-upgrade",
475
478
  description: "Upgrade context-mode to the latest version",
476
479
  handler: () => {
477
- const cmd = `node "${_latestPluginRoot}/build/cli.js" upgrade`;
480
+ const bundlePath = resolve(_latestPluginRoot, "cli.bundle.mjs");
481
+ const fallbackPath = resolve(_latestPluginRoot, "build", "cli.js");
482
+ const cliPath = existsSync(bundlePath) ? bundlePath : fallbackPath;
483
+ const cmd = `node "${cliPath}" upgrade`;
478
484
  return {
479
485
  text: [
480
486
  "## ctx-upgrade",
package/build/server.js CHANGED
@@ -1513,7 +1513,10 @@ server.registerTool("ctx_doctor", {
1513
1513
  inputSchema: z.object({}),
1514
1514
  }, async () => {
1515
1515
  const pluginRoot = dirname(dirname(fileURLToPath(import.meta.url)));
1516
- const cmd = `node "${pluginRoot}/build/cli.js" doctor`;
1516
+ const bundlePath = resolve(pluginRoot, "cli.bundle.mjs");
1517
+ const fallbackPath = resolve(pluginRoot, "build", "cli.js");
1518
+ const cliPath = existsSync(bundlePath) ? bundlePath : fallbackPath;
1519
+ const cmd = `node "${cliPath}" doctor`;
1517
1520
  const text = [
1518
1521
  "## ctx-doctor",
1519
1522
  "",
@@ -1550,7 +1553,10 @@ server.registerTool("ctx_upgrade", {
1550
1553
  inputSchema: z.object({}),
1551
1554
  }, async () => {
1552
1555
  const pluginRoot = dirname(dirname(fileURLToPath(import.meta.url)));
1553
- const cmd = `node "${pluginRoot}/build/cli.js" upgrade`;
1556
+ const bundlePath = resolve(pluginRoot, "cli.bundle.mjs");
1557
+ const fallbackPath = resolve(pluginRoot, "build", "cli.js");
1558
+ const cliPath = existsSync(bundlePath) ? bundlePath : fallbackPath;
1559
+ const cmd = `node "${cliPath}" upgrade`;
1554
1560
  const text = [
1555
1561
  "## ctx-upgrade",
1556
1562
  "",