context-mode 1.0.64 → 1.0.65
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.
|
|
9
|
+
"version": "1.0.65"
|
|
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.65",
|
|
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.65",
|
|
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.65",
|
|
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.65",
|
|
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/hooks/ensure-deps.mjs
CHANGED
|
@@ -83,6 +83,7 @@ export function ensureNativeCompat(pluginRoot) {
|
|
|
83
83
|
// Fast path: cached binary for this ABI already exists
|
|
84
84
|
if (existsSync(abiCachePath)) {
|
|
85
85
|
copyFileSync(abiCachePath, binaryPath);
|
|
86
|
+
codesignBinary(binaryPath);
|
|
86
87
|
return;
|
|
87
88
|
}
|
|
88
89
|
|
|
@@ -112,6 +113,28 @@ export function ensureNativeCompat(pluginRoot) {
|
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Ad-hoc codesign a native binary on macOS.
|
|
118
|
+
*
|
|
119
|
+
* When a cached .node binary is copied over the active one, macOS hardened
|
|
120
|
+
* runtime (e.g. Zed, VS Code with runtime hardening) will SIGKILL the
|
|
121
|
+
* process on the next dlopen because the code signature is invalidated.
|
|
122
|
+
* SIGKILL is uncatchable — the only fix is to re-sign after the copy.
|
|
123
|
+
*
|
|
124
|
+
* No-op on non-macOS. Swallows errors (codesign may not be available in
|
|
125
|
+
* all environments, e.g. Docker containers).
|
|
126
|
+
*/
|
|
127
|
+
export function codesignBinary(binaryPath) {
|
|
128
|
+
if (process.platform === "darwin") {
|
|
129
|
+
try {
|
|
130
|
+
execSync(`codesign --sign - --force "${binaryPath}"`, {
|
|
131
|
+
stdio: "pipe",
|
|
132
|
+
timeout: 10000,
|
|
133
|
+
});
|
|
134
|
+
} catch { /* codesign unavailable — continue without signing */ }
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
115
138
|
// Auto-run on import (like suppress-stderr.mjs)
|
|
116
139
|
ensureDeps();
|
|
117
140
|
ensureNativeCompat(root);
|
package/openclaw.plugin.json
CHANGED
|
@@ -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.65",
|
|
7
7
|
"sandbox": {
|
|
8
8
|
"mode": "permissive",
|
|
9
9
|
"filesystem_access": "full",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "context-mode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.65",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP plugin that saves 98% of your context window. Works with Claude Code, Gemini CLI, VS Code Copilot, OpenCode, and Codex CLI. Sandboxed code execution, FTS5 knowledge base, and intent-driven search.",
|
|
6
6
|
"author": "Mert Koseoğlu",
|