context-mode 1.0.23 → 1.0.24

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.23"
9
+ "version": "1.0.24"
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.23",
16
+ "version": "1.0.24",
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.23",
3
+ "version": "1.0.24",
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.23",
6
+ "version": "1.0.24",
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.23",
3
+ "version": "1.0.24",
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/server.js CHANGED
@@ -15,8 +15,19 @@ import { detectRuntimes, getRuntimeSummary, getAvailableLanguages, hasBunRuntime
15
15
  import { classifyNonZeroExit } from "./exit-classify.js";
16
16
  import { startLifecycleGuard } from "./lifecycle.js";
17
17
  import { getWorktreeSuffix } from "./session/db.js";
18
- const require = createRequire(import.meta.url);
19
- const VERSION = require("../package.json").version;
18
+ const __pkg_dir = dirname(fileURLToPath(import.meta.url));
19
+ const VERSION = (() => {
20
+ for (const rel of ["../package.json", "./package.json"]) {
21
+ const p = resolve(__pkg_dir, rel);
22
+ if (existsSync(p)) {
23
+ try {
24
+ return JSON.parse(readFileSync(p, "utf8")).version;
25
+ }
26
+ catch { }
27
+ }
28
+ }
29
+ return "unknown";
30
+ })();
20
31
  // Prevent silent server death from unhandled async errors
21
32
  process.on("unhandledRejection", (err) => {
22
33
  process.stderr.write(`[context-mode] unhandledRejection: ${err}\n`);