context-mode 2.0.0-next.18 → 2.0.0-next.20
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 +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/SHA256SUMS +14 -14
- package/cli.mjs +18 -6
- package/copilot/plugin.json +1 -1
- package/gemini-extension.json +1 -1
- package/hook.mjs +62 -62
- package/opencode/plugin.js +70 -10
- package/package.json +5 -1
- package/pi/index.js +13 -7
- package/qwen-extension.json +1 -1
- package/run.mjs +2 -1
- package/search.mjs +2 -1
- package/server.mjs +13 -7
package/SHA256SUMS
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
1891466a144df85c1f933ef2177ceaa5e7d21d0f27ebce77a0276dffd5490180 .claude-plugin/marketplace.json
|
|
2
|
+
ce0bd4a4136a2ed741048b9b409ec6d7e2e4a6212f6d274a20300b939861b09b .claude-plugin/plugin.json
|
|
3
3
|
187503e1455560d4ab5a72e3b8cd2f274abd4ccc5faa60dd66c37e44bb5f10c2 .codex-plugin/hooks.json
|
|
4
4
|
4edea851775bc3f0418f8d9cf6ead74f2767c3a9e3b8c05749eacb78ebb3b896 .codex-plugin/mcp.json
|
|
5
|
-
|
|
5
|
+
5462e4e6f9cbf7e568ff3b97db119ed872b20fd7a9c4e827925762689b1d9ca2 .codex-plugin/plugin.json
|
|
6
6
|
1773e40a89384dd1af9023ba533da1908f3e2435dbaaa7cc941edf0514148313 claude-code/skills/ctx-doctor/SKILL.md
|
|
7
7
|
34fffb9c76d69c551f07036230bec0fbaca7a69177a5a47f89ddb9a9990a1fa2 claude-code/skills/ctx-stats/SKILL.md
|
|
8
8
|
d8f835d2f2b3eb70c5902f8707e7c5857977cec9e20ace76c499378a04e178e0 claude-code/skills/ctx-upgrade/SKILL.md
|
|
9
|
-
|
|
9
|
+
f8be0a11f3ffb0fff1555e12824652f8e9617fcd8e48f9ced88166f7f65ed006 cli.mjs
|
|
10
10
|
83c297020ed0c592fc68c9c482546a6999d41df5d06d8a329498f10edb1bd38e codex/skills/ctx-doctor/SKILL.md
|
|
11
11
|
adc2c374f699d3698110920bb48411965de09fc6e7232ce59c913f6d58c0d738 codex/skills/ctx-stats/SKILL.md
|
|
12
12
|
5c12cdd19a5e3ed7d9ba3a47b24d03864a28d36cf7006876284ee07cd4221ec4 codex/skills/ctx-upgrade/SKILL.md
|
|
13
|
-
|
|
13
|
+
fd06e1e104d35319418e62e3c16b81027e022f7f59666c25aad3b2db4090b133 copilot/plugin.json
|
|
14
14
|
e3bc6cae0bd51b806d81631879711bbc48c679fc929b2642ed4634438364167d fixtures/hook-roundtrip.json
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
fa093979cbd93b0716b9be153f9f581abd74d2c5a4963a10b7aa63dc386aaf4b gemini-extension.json
|
|
16
|
+
b58303ab9c463e36c85ad20ecf375080c049d82f7dd1e2dd5fbcff4b8830a72c hook.mjs
|
|
17
17
|
1f8d8650d2b38737522cab6b875878e8baf84a74acf98cd924c7af22852d873f hooks/claude-code.json
|
|
18
18
|
2524a0eb52683b65c65943c5097db513e9845ba14e84324b39e9a8ea2bb43193 hooks/codex.json
|
|
19
19
|
b656fed2b754ebcfd4c156bee81d5879c21a8083fc0d6b8e3241462b63a214b6 hooks/copilot-cli.json
|
|
@@ -22,16 +22,16 @@ f336d1db67de49e641687bbd41ba1a9424e31dfe2377b2284bf44358288ebd8b hooks/kiro.jso
|
|
|
22
22
|
017c9cc3997dd53231b8548b1a1609fddc51177af53501565a4f334602039860 hooks/qwen.json
|
|
23
23
|
33f69267645338d0dc392ce551dcd7c69a0b508113469d6ea637d3f34239ef1d hooks/vscode.json
|
|
24
24
|
085630bccf2073ac9a62be24ef91dfc47d106092dc82c822db70890b7d3ae1c0 hooks/zcode.json
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
0587b8de9dcd7c441f8a93c976e72637a6f2a33f5ded4398175df2c2fa3dc20c opencode/plugin.js
|
|
26
|
+
9ac18c9a8856bc75cb7b9a5a67af2650f19204b323cce625dca1ca3d2adfeeab package.json
|
|
27
|
+
8a04b0b071744eb616c24d509a60fe1c734a6f9ca611c4c2c2466cf61e543274 pi/index.js
|
|
28
28
|
8712881622c9905aa4836af50d903042d34a91506264e459bc7839331f6f0192 pi/skills/ctx-doctor/SKILL.md
|
|
29
29
|
8d6e8e2a82eb079bddc60727f52d9f9a6e0bf9e15391357fed82ee76ab5fe76c pi/skills/ctx-stats/SKILL.md
|
|
30
30
|
db6f9c006bc864a7271f1eeffb1e316ebb537a3414f1c22f8b9de0a896e8e3c5 pi/skills/ctx-upgrade/SKILL.md
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
4499d3a8d8ffab03a116a047fb69ad9bc0cd3f104d0d1e24c654878b22fa41ef qwen-extension.json
|
|
32
|
+
28a957921c1dd24aef587fc0f8c6835de1cbbe49eff18104c5d1dd70c0297aad run.mjs
|
|
33
|
+
28a957921c1dd24aef587fc0f8c6835de1cbbe49eff18104c5d1dd70c0297aad search.mjs
|
|
34
|
+
62f166931982ed258bdba4d9ec60fde0296ea39e8033171e42b169cda9acca0c server.mjs
|
|
35
35
|
e5503a22a6238901484d123efc11d2d933aa9a54c6ac2018812cfa65ec4e53e3 skills/ctx-doctor/SKILL.md
|
|
36
36
|
1044587a1906c69f2467c089a25e19819a290ea5728389bd1f086c6dfc0d0c51 skills/ctx-stats/SKILL.md
|
|
37
37
|
c1cac75b7506ee0d06089ce611ac6dc9314cf12435da318ce88ad50e2c5debbf skills/ctx-upgrade/SKILL.md
|
package/cli.mjs
CHANGED
|
@@ -1139,7 +1139,8 @@ var OPENCODE_EVENTS = {
|
|
|
1139
1139
|
"step-finish": "Usage"
|
|
1140
1140
|
};
|
|
1141
1141
|
var SHELL_TOOL_NAME = "bash";
|
|
1142
|
-
var
|
|
1142
|
+
var SHELL_TOOL_NAMES4 = Object.freeze([SHELL_TOOL_NAME, "shell"]);
|
|
1143
|
+
var NATIVE_TO_CANONICAL7 = { webfetch: "WebFetch", ...Object.fromEntries(SHELL_TOOL_NAMES4.map((n3) => [n3, "Bash"])) };
|
|
1143
1144
|
function toCanonicalTool(name) {
|
|
1144
1145
|
if (name.startsWith(OWN_WIRE_PREFIX)) return name.slice(OWN_WIRE_PREFIX.length);
|
|
1145
1146
|
return Object.prototype.hasOwnProperty.call(NATIVE_TO_CANONICAL7, name) ? NATIVE_TO_CANONICAL7[name] : name;
|
|
@@ -7608,7 +7609,7 @@ function hookInstallFor(ctx, row, command) {
|
|
|
7608
7609
|
kind: "plugin-list",
|
|
7609
7610
|
file: path3.join(opencodeDirOf(ctx.env, ctx.home), OPENCODE_BASE_CONFIG_FILE),
|
|
7610
7611
|
key: ["plugin"],
|
|
7611
|
-
entry:
|
|
7612
|
+
entry: ctx.pkgDir
|
|
7612
7613
|
};
|
|
7613
7614
|
}
|
|
7614
7615
|
return { kind: "package", via: ch.path };
|
|
@@ -8643,10 +8644,13 @@ function isNativeSpec(e) {
|
|
|
8643
8644
|
return typeof e === "string" && e.startsWith(NATIVE_PLUGIN_PREFIX);
|
|
8644
8645
|
}
|
|
8645
8646
|
function isStaleOwnPlugin(e, entry2) {
|
|
8646
|
-
if (typeof e !== "string" || e === entry2 || !path12.isAbsolute(e)
|
|
8647
|
+
if (typeof e !== "string" || e === entry2 || !path12.isAbsolute(e)) return false;
|
|
8648
|
+
if (e === path12.join(entry2, ...OPENCODE_PLUGIN_PATH)) return true;
|
|
8649
|
+
if (existsSync12(e)) return false;
|
|
8647
8650
|
const seg = e.split("\\").join("/").split("/");
|
|
8648
8651
|
const n3 = seg.length;
|
|
8649
|
-
|
|
8652
|
+
if (n3 >= 3 && seg[n3 - 1] === "plugin.js" && seg[n3 - 2] === "opencode" && seg[n3 - 3] === "context-mode") return true;
|
|
8653
|
+
return n3 >= 2 && seg[n3 - 1] === "context-mode" && seg[n3 - 2] === "node_modules";
|
|
8650
8654
|
}
|
|
8651
8655
|
function wantedPluginList(list2, entry2) {
|
|
8652
8656
|
const native = list2.some(isNativeSpec);
|
|
@@ -8754,9 +8758,17 @@ function statusOf(row, text2) {
|
|
|
8754
8758
|
}
|
|
8755
8759
|
return void 0;
|
|
8756
8760
|
}
|
|
8761
|
+
function opencodeListArgs(bin, env) {
|
|
8762
|
+
const r2 = runBin(bin, ["--version"], env);
|
|
8763
|
+
const text2 = `${r2.stdout}${r2.stderr}`;
|
|
8764
|
+
const digits = text2.split("").filter((c3) => c3 >= "0" && c3 <= "9" || c3 === ".").join("");
|
|
8765
|
+
const major = Number(digits.split(".")[0]);
|
|
8766
|
+
return major >= 2 ? ["mcp", "list", "--standalone"] : ["mcp", "list", "--pure"];
|
|
8767
|
+
}
|
|
8757
8768
|
function listState(row, env) {
|
|
8758
|
-
const
|
|
8759
|
-
if (!
|
|
8769
|
+
const l0 = row.listCommand;
|
|
8770
|
+
if (!l0 || !hostBin(l0.bin, env).file) return { status: void 0 };
|
|
8771
|
+
const l2 = row.id === "opencode" ? { bin: l0.bin, args: opencodeListArgs(l0.bin, env) } : l0;
|
|
8760
8772
|
const r2 = runBin(l2.bin, l2.args, env);
|
|
8761
8773
|
const ok = r2.status === 0 && `${r2.stdout}${r2.stderr}`.includes("context-mode");
|
|
8762
8774
|
const check = { name: "list", ok, detail: ok ? void 0 : `${l2.bin} ${l2.args.join(" ")} does not list context-mode` };
|
package/copilot/plugin.json
CHANGED
package/gemini-extension.json
CHANGED