context-mode 1.0.120 → 1.0.121
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 +18 -0
- package/cli.bundle.mjs +112 -112
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
- package/scripts/postinstall.mjs +19 -8
- package/skills/.ignore +7 -0
|
@@ -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.121"
|
|
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.121",
|
|
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.121",
|
|
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.121",
|
|
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.121",
|
|
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
|
@@ -708,6 +708,24 @@ async function upgrade() {
|
|
|
708
708
|
},
|
|
709
709
|
};
|
|
710
710
|
writeFileSync(resolve(pluginRoot, ".mcp.json"), JSON.stringify(mcpConfig, null, 2) + "\n");
|
|
711
|
+
// Normalize hooks.json + plugin.json against the REAL pluginRoot now that
|
|
712
|
+
// files have been copied. Two reasons:
|
|
713
|
+
// 1. If a prior buggy postinstall (or any future regression) baked the
|
|
714
|
+
// tmpdir path into hooks.json, this rewrites it to pluginRoot before
|
|
715
|
+
// the next hook fires.
|
|
716
|
+
// 2. Closes the same gap #414 closed for fresh installs — the first
|
|
717
|
+
// hook fire after upgrade now works without waiting for MCP boot.
|
|
718
|
+
try {
|
|
719
|
+
const mod =
|
|
720
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
721
|
+
(await import("../hooks/normalize-hooks.mjs"));
|
|
722
|
+
mod.normalizeHooksOnStartup({
|
|
723
|
+
pluginRoot,
|
|
724
|
+
nodePath: process.execPath,
|
|
725
|
+
platform: process.platform,
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
catch { /* best effort — never block upgrade */ }
|
|
711
729
|
s.stop(color.green(`Updated in-place to v${newVersion}`));
|
|
712
730
|
// v1.0.114 hotfix — pre-flight: verify the in-place copy actually
|
|
713
731
|
// wrote a plugin.json carrying newVersion BEFORE we tell the
|