context-mode 1.0.143 → 1.0.144
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/.codex-plugin/plugin.json +1 -1
- package/.openclaw-plugin/openclaw.plugin.json +1 -1
- package/.openclaw-plugin/package.json +1 -1
- package/build/adapters/pi/mcp-bridge.js +36 -12
- package/build/server.d.ts +35 -0
- package/build/server.js +49 -1
- package/cli.bundle.mjs +104 -104
- package/hooks/pretooluse.mjs +9 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/server.bundle.mjs +80 -80
package/hooks/pretooluse.mjs
CHANGED
|
@@ -127,7 +127,15 @@ await runHook(async () => {
|
|
|
127
127
|
// Extract the script filename (e.g., sessionstart.mjs, pretooluse.mjs)
|
|
128
128
|
const scriptMatch = h.command.match(/([a-z]+\.mjs)\s*"?\s*$/);
|
|
129
129
|
if (scriptMatch) {
|
|
130
|
-
|
|
130
|
+
// Issue #636: quote the script path so spaces in targetDir
|
|
131
|
+
// (e.g. Dropbox/iCloud display names like "Lucas Werneck",
|
|
132
|
+
// or CLAUDE_CONFIG_DIR pointed at a synced spaced folder)
|
|
133
|
+
// don't break /bin/sh's word-splitting at hook-spawn time.
|
|
134
|
+
// JSON.stringify is sufficient on Unix and safe on Windows
|
|
135
|
+
// (backslashes get escaped — Claude Code's hook layer
|
|
136
|
+
// normalizes to POSIX on Windows anyway via toHookPath).
|
|
137
|
+
const scriptPath = resolve(targetDir, "hooks", scriptMatch[1]);
|
|
138
|
+
h.command = `node ${JSON.stringify(scriptPath)}`;
|
|
131
139
|
changed = true;
|
|
132
140
|
}
|
|
133
141
|
}
|
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.144",
|
|
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.144",
|
|
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",
|