context-mode 2.0.0-next.16 → 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.16"
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.16"
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.16"
11
+ "version": "2.0.0-next.17"
12
12
  }
package/SHA256SUMS CHANGED
@@ -1,18 +1,18 @@
1
- 02c25418b3ab565c948da579cca136fba45f6b5faa177118397e10683f7f85d3 .claude-plugin/marketplace.json
2
- cc49421ae4ae10b090317b6dfe484e32fb2e02853f6ad25102a807b509a5f0c4 .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
- e94ff133a4f8705cdfae85ae417d153e1f88492d7e09ed69d84bab55d4a8a79f .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
- a605e7979394cb0fb848b4e1336805e5a45814fe517a9facc8474254e4483f56 copilot/plugin.json
13
+ 63d9325cdd733b46ceda2db99ee851007ca119bb18c7a629424968f2422b192d copilot/plugin.json
14
14
  832bf0d31c37a448f3904bc41c7df071777aec2f8fce9d667f1fcf5b03a52a91 fixtures/hook-roundtrip.json
15
- 20eaeedf42fa0dcc82196ecfe398adaf362a18a3d98ef64e5fac652cfdc6baed gemini-extension.json
15
+ 3d2f7ba62431b5e28f2f46554c07e97b11aa94177a4a8926fee0a01993d1d52c gemini-extension.json
16
16
  cb152594b45336b91e76788733a12ef131488a616dcde1a18d96e419e0ab7de3 hook.mjs
17
17
  1f8d8650d2b38737522cab6b875878e8baf84a74acf98cd924c7af22852d873f hooks/claude-code.json
18
18
  2524a0eb52683b65c65943c5097db513e9845ba14e84324b39e9a8ea2bb43193 hooks/codex.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
- 1be3331f9d2c71d7a3f427523b54a5dc08c01400619b986f5f61fe21029ce6e1 opencode/plugin.js
26
- 006008c25fa1ab3e1f16fbfe2f18cf7b48e82ce6733ceda23bdd0aadd453bd9e package.json
27
- 2b7478497f9323b8dcd5127a660966c6addaa10c9567493d17449292b7ca8a72 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
- 713880ace22dd3d9f9ef1927d363fb2dd262f894778580b8bb98b5b5a51297fe qwen-extension.json
31
+ 6ee63d11f1780f3cbcd684b087dabb8c0afce170b6476e2bacd1eb1855687a46 qwen-extension.json
32
32
  5bd0fc5c12aec47a654699be60b54e10c9d69deee487e5dd86dfd319d0288e90 run.mjs
33
33
  5bd0fc5c12aec47a654699be60b54e10c9d69deee487e5dd86dfd319d0288e90 search.mjs
34
- 9e2bf2279b08e5ac0cec345e370fb920a393d535299cbf4e07ce7664abe158df server.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.16"
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.16"
14
+ "version": "2.0.0-next.17"
15
15
  }
@@ -359,7 +359,7 @@ var DECISION_OPTION_KEY = "option";
359
359
  var DECISION_LABEL_JOIN = " | ";
360
360
  var RELEASE_REPO_URL = "https://github.com/mksglu/context-mode.git";
361
361
  var RELEASE_BRANCH = "release";
362
- var BUNDLE_SHA = true ? "144e3495cd6f2e27afe44cf611493f68e5445793" : void 0;
362
+ var BUNDLE_SHA = true ? "d526f1e54835a809b09257c9587a22172141d4c3" : void 0;
363
363
  var DOCTOR_CHECK_ORDER = Object.freeze(["D1", "D2", "D3", "D4", "D5", "D5b", "D6", "D7", "D8", "D9", "D10", "D11"]);
364
364
  var DOCTOR_LABEL = Object.freeze({
365
365
  D1: "version",
package/package.json CHANGED
@@ -63,5 +63,5 @@
63
63
  "url": "git+https://github.com/mksglu/context-mode.git"
64
64
  },
65
65
  "type": "module",
66
- "version": "2.0.0-next.16"
66
+ "version": "2.0.0-next.17"
67
67
  }
package/pi/index.js CHANGED
@@ -11505,7 +11505,7 @@ var DECISION_OPTION_KEY = "option";
11505
11505
  var DECISION_LABEL_JOIN = " | ";
11506
11506
  var RELEASE_REPO_URL = "https://github.com/mksglu/context-mode.git";
11507
11507
  var RELEASE_BRANCH = "release";
11508
- var BUNDLE_SHA = true ? "144e3495cd6f2e27afe44cf611493f68e5445793" : void 0;
11508
+ var BUNDLE_SHA = true ? "d526f1e54835a809b09257c9587a22172141d4c3" : void 0;
11509
11509
  var DOCTOR_CHECK_ORDER = Object.freeze(["D1", "D2", "D3", "D4", "D5", "D5b", "D6", "D7", "D8", "D9", "D10", "D11"]);
11510
11510
  var DOCTOR_LABEL = Object.freeze({
11511
11511
  D1: "version",
@@ -12,5 +12,5 @@
12
12
  }
13
13
  },
14
14
  "name": "context-mode",
15
- "version": "2.0.0-next.16"
15
+ "version": "2.0.0-next.17"
16
16
  }
package/server.mjs CHANGED
@@ -28340,7 +28340,7 @@ var DECISION_SOURCE = "decision";
28340
28340
  var DECISION_USER_LABEL = "decision (user)";
28341
28341
  var RELEASE_REPO_URL = "https://github.com/mksglu/context-mode.git";
28342
28342
  var RELEASE_BRANCH = "release";
28343
- var BUNDLE_SHA = true ? "144e3495cd6f2e27afe44cf611493f68e5445793" : void 0;
28343
+ var BUNDLE_SHA = true ? "d526f1e54835a809b09257c9587a22172141d4c3" : void 0;
28344
28344
  var DOCTOR_CHECK_ORDER = Object.freeze(["D1", "D2", "D3", "D4", "D5", "D5b", "D6", "D7", "D8", "D9", "D10", "D11"]);
28345
28345
  var DOCTOR_LABEL = Object.freeze({
28346
28346
  D1: "version",