context-mode 2.0.0-next.15 → 2.0.0-next.17

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.
@@ -9,7 +9,7 @@
9
9
  "name": "context-mode",
10
10
  "skills": "./claude-code/skills",
11
11
  "source": "./",
12
- "version": "2.0.0-next.15"
12
+ "version": "2.0.0-next.17"
13
13
  }
14
14
  ]
15
15
  }
@@ -13,5 +13,5 @@
13
13
  },
14
14
  "name": "context-mode",
15
15
  "skills": "./claude-code/skills",
16
- "version": "2.0.0-next.15"
16
+ "version": "2.0.0-next.17"
17
17
  }
@@ -8,5 +8,5 @@
8
8
  "mcpServers": "./.codex-plugin/mcp.json",
9
9
  "name": "context-mode",
10
10
  "skills": "./codex/skills/",
11
- "version": "2.0.0-next.15"
11
+ "version": "2.0.0-next.17"
12
12
  }
package/SHA256SUMS CHANGED
@@ -1,19 +1,19 @@
1
- ef05b0924cf9819e666b7faf5d62c1138f549094d2a4fc9c47688965e97f68e0 .claude-plugin/marketplace.json
2
- 13904c3bcfde680f4c9979b4f0941123cc083f6a608572aeb93c1810d9f1ac33 .claude-plugin/plugin.json
1
+ e376f587a10ea0f2c40e38e58b948dc99d1ee764ca54955ed0eaee5475b98416 .claude-plugin/marketplace.json
2
+ aedbf812c2d35886ab9d977031e616bd0c198546bbd57170aa523f6885d2de59 .claude-plugin/plugin.json
3
3
  187503e1455560d4ab5a72e3b8cd2f274abd4ccc5faa60dd66c37e44bb5f10c2 .codex-plugin/hooks.json
4
4
  4edea851775bc3f0418f8d9cf6ead74f2767c3a9e3b8c05749eacb78ebb3b896 .codex-plugin/mcp.json
5
- 41f67537a38a79599f5f6003ef44c46a50b46af2554ad7e89edab126756243e2 .codex-plugin/plugin.json
5
+ d86d1fa5965ba3516fb0e55ae329af47fb59445d8cd08d145dbc65c11e5bfd2d .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
- 9b2bdad78aec2d15fd3acd33b14f8f7172f2c8f27153daed68b0a493305e96c3 cli.mjs
9
+ 7ad2f6928bc8a66ef5e83826685382d2552b664bd0c57bca93593ab1f3676434 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
- d9138ea8934097596a4c6287294cdff38f9ae0c15ad41f06810872f56ef834cd copilot/plugin.json
13
+ 63d9325cdd733b46ceda2db99ee851007ca119bb18c7a629424968f2422b192d copilot/plugin.json
14
14
  832bf0d31c37a448f3904bc41c7df071777aec2f8fce9d667f1fcf5b03a52a91 fixtures/hook-roundtrip.json
15
- 1239399b90fbc43879f89c9738811e1df1f3c1bc0d954b396a4361e33f5c7740 gemini-extension.json
16
- fb7358e764e8f0b9a9d0f3052abce4c7a96f314335f22b02794a1e5494040dae hook.mjs
15
+ 3d2f7ba62431b5e28f2f46554c07e97b11aa94177a4a8926fee0a01993d1d52c gemini-extension.json
16
+ cb152594b45336b91e76788733a12ef131488a616dcde1a18d96e419e0ab7de3 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
- 4b6e4e1870573c24ebc5ea24ea319665ee2342fc84ae0b30afbaf461d27bc21e opencode/plugin.js
26
- 42b40c4a25e48c15b508e2a6f206eca0cca88260bfc54018112fead85345739b package.json
27
- 344af99a05ba9c0259f0ab327187e6dfdd6f6e99ec1960061397fea3ad35fc73 pi/index.js
25
+ 277ae6b36d315d67ae26a7bc635bc810c7bd94c540863f8d1ae1bc9efcc00fdd opencode/plugin.js
26
+ e43c7dd68e9e6154a2c2deaf4c4a614cdd56b4ea51b92e2c0a31e59548e08d13 package.json
27
+ 4c9894d7e392b117294bc9610181fb5fcebed6de30952d17e3105c9d20b41d73 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
- 52c085e4bb7ba09ab5cb3684341cdc477ac39482c34054854b22f202811ea7a6 qwen-extension.json
32
- b408612e309a93e3eeade62a23ccc740856da20bfd508a4456d8f44bc4dfa980 run.mjs
33
- b408612e309a93e3eeade62a23ccc740856da20bfd508a4456d8f44bc4dfa980 search.mjs
34
- c1e9e3983e24b51fb87f9ce9327845b24c83c5c1be3f1894e5a0425340113cdf server.mjs
31
+ 6ee63d11f1780f3cbcd684b087dabb8c0afce170b6476e2bacd1eb1855687a46 qwen-extension.json
32
+ 5bd0fc5c12aec47a654699be60b54e10c9d69deee487e5dd86dfd319d0288e90 run.mjs
33
+ 5bd0fc5c12aec47a654699be60b54e10c9d69deee487e5dd86dfd319d0288e90 search.mjs
34
+ dd9b4f40dd334ddd7bfe6e1acf723b60232bd4bb83556583fd30f2b765bcb429 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
@@ -7508,7 +7508,7 @@ function serverCmd(ctx, id) {
7508
7508
  }
7509
7509
  function hookCommandString(row) {
7510
7510
  const [node, file, flag, id] = row.hookCommand ?? [];
7511
- return `"${node}" "${file}" ${flag} ${id}`;
7511
+ return `${node === HOST_NODE_COMMAND ? node : `"${node}"`} "${file}" ${flag} ${id}`;
7512
7512
  }
7513
7513
  function golden(row, home) {
7514
7514
  const shell = row.nativeTools.shell?.[0];
@@ -7630,8 +7630,10 @@ function buildRegistry(ctx) {
7630
7630
  const id = row.id;
7631
7631
  const config = configFor(ctx, id);
7632
7632
  const hookFiles = hookFilesFor(ctx, id);
7633
- const hookCommand = [process.execPath, path3.join(ctx.pkgDir, HOOK_BUNDLE), AGENT_FLAG, id];
7634
- const command = `"${hookCommand[0]}" "${hookCommand[1]}" ${AGENT_FLAG} ${id}`;
7633
+ const runCommand2 = [process.execPath, path3.join(ctx.pkgDir, HOOK_BUNDLE), AGENT_FLAG, id];
7634
+ const bareNode = id === "codex" && (ctx.platform ?? process.platform) === "win32";
7635
+ const hookCommand = bareNode ? [HOST_NODE_COMMAND, ...runCommand2.slice(1)] : runCommand2;
7636
+ const command = `${bareNode ? HOST_NODE_COMMAND : `"${hookCommand[0]}"`} "${hookCommand[1]}" ${AGENT_FLAG} ${id}`;
7635
7637
  const hookInstall = hookInstallFor(ctx, getAdapter(id), command);
7636
7638
  const skillInstall = skillInstallFor(ctx, row);
7637
7639
  const copilotSettings = id === "copilot-cli" ? agentPath(ctx, id, [COPILOT_DIR, "settings.json"]) : void 0;
@@ -7653,7 +7655,7 @@ function buildRegistry(ctx) {
7653
7655
  hookFiles,
7654
7656
  hookInstall,
7655
7657
  skillInstall,
7656
- hookRunCommand: hookCommand,
7658
+ hookRunCommand: runCommand2,
7657
7659
  allowedWrites: [...new Set(writes.map((f2) => path3.resolve(f2)))],
7658
7660
  goldenPayload: golden(row, ctx.home)
7659
7661
  };
@@ -8253,8 +8255,13 @@ function listPluginHooks(env, pluginId, cwd) {
8253
8255
  send({ id: 1, method: "initialize", params: { clientInfo: { name: "context-mode-setup", version: "2.0.0" } } });
8254
8256
  });
8255
8257
  }
8258
+ var HASH_PART_SEP = "/";
8259
+ function hookHashOf(currentHash) {
8260
+ const cut = currentHash.indexOf(HASH_PART_SEP);
8261
+ return cut < 0 ? currentHash : currentHash.slice(0, cut);
8262
+ }
8256
8263
  function pluginTrustEntries(hooks) {
8257
- return hooks.filter((h2) => !h2.trusted).map((h2) => [[...TRUST_KEY, h2.key], { [HASH_FIELD]: h2.hash }]);
8264
+ return hooks.filter((h2) => !h2.trusted).map((h2) => [[...TRUST_KEY, h2.key], { [HASH_FIELD]: hookHashOf(h2.hash) }]);
8258
8265
  }
8259
8266
 
8260
8267
  // src/setup/copilot-hooks.ts
@@ -8860,7 +8867,7 @@ function mcpCheck(cmd, env) {
8860
8867
  });
8861
8868
  }
8862
8869
  function hookRound(row, env) {
8863
- const cmd = row.hookCommand;
8870
+ const cmd = row.hookRunCommand;
8864
8871
  const input = JSON.stringify(row.goldenPayload);
8865
8872
  const wall = [];
8866
8873
  const bare = [];
@@ -11,5 +11,5 @@
11
11
  }
12
12
  },
13
13
  "name": "context-mode",
14
- "version": "2.0.0-next.15"
14
+ "version": "2.0.0-next.17"
15
15
  }
@@ -11,5 +11,5 @@
11
11
  }
12
12
  },
13
13
  "name": "context-mode",
14
- "version": "2.0.0-next.15"
14
+ "version": "2.0.0-next.17"
15
15
  }