context-mode 1.0.40 → 1.0.41
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 +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/.openclaw-plugin/openclaw.plugin.json +1 -1
- package/.openclaw-plugin/package.json +1 -1
- package/build/cli.js +2 -2
- package/build/server.js +4 -2
- package/cli.bundle.mjs +89 -88
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/server.bundle.mjs +71 -70
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
8
|
"description": "Claude Code plugins by Mert Koseoğlu",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.41"
|
|
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.
|
|
16
|
+
"version": "1.0.41",
|
|
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.
|
|
3
|
+
"version": "1.0.41",
|
|
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.
|
|
6
|
+
"version": "1.0.41",
|
|
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.
|
|
3
|
+
"version": "1.0.41",
|
|
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
|
@@ -367,12 +367,12 @@ async function upgrade() {
|
|
|
367
367
|
execSync("npm install --no-audit --no-fund", {
|
|
368
368
|
cwd: srcDir,
|
|
369
369
|
stdio: "pipe",
|
|
370
|
-
timeout:
|
|
370
|
+
timeout: 120000,
|
|
371
371
|
});
|
|
372
372
|
execSync("npm run build", {
|
|
373
373
|
cwd: srcDir,
|
|
374
374
|
stdio: "pipe",
|
|
375
|
-
timeout:
|
|
375
|
+
timeout: 60000,
|
|
376
376
|
});
|
|
377
377
|
s.stop("Built successfully");
|
|
378
378
|
// Step 3: Update in-place
|
package/build/server.js
CHANGED
|
@@ -1512,7 +1512,8 @@ server.registerTool("ctx_doctor", {
|
|
|
1512
1512
|
inputSchema: z.object({}),
|
|
1513
1513
|
}, async () => {
|
|
1514
1514
|
const lines = ["## context-mode doctor", ""];
|
|
1515
|
-
|
|
1515
|
+
// __pkg_dir is build/ for tsc, plugin root for bundle — resolve to plugin root
|
|
1516
|
+
const pluginRoot = existsSync(resolve(__pkg_dir, "package.json")) ? __pkg_dir : dirname(__pkg_dir);
|
|
1516
1517
|
// Runtimes
|
|
1517
1518
|
const total = 11;
|
|
1518
1519
|
const pct = ((available.length / total) * 100).toFixed(0);
|
|
@@ -1579,7 +1580,8 @@ server.registerTool("ctx_upgrade", {
|
|
|
1579
1580
|
"Tell the user to restart their session after upgrade.",
|
|
1580
1581
|
inputSchema: z.object({}),
|
|
1581
1582
|
}, async () => {
|
|
1582
|
-
|
|
1583
|
+
// __pkg_dir is build/ for tsc, plugin root for bundle — resolve to plugin root
|
|
1584
|
+
const pluginRoot = existsSync(resolve(__pkg_dir, "package.json")) ? __pkg_dir : dirname(__pkg_dir);
|
|
1583
1585
|
const bundlePath = resolve(pluginRoot, "cli.bundle.mjs");
|
|
1584
1586
|
const fallbackPath = resolve(pluginRoot, "build", "cli.js");
|
|
1585
1587
|
let cmd;
|