@minhspark/codex-mcp-bridge 1.22.16 → 1.22.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex-mcp-bridge",
3
- "version": "1.22.16",
3
+ "version": "1.22.17",
4
4
  "description": "Connect ChatGPT to your own Codex Desktop projects and conversations.",
5
5
  "author": {
6
6
  "name": "Bui Dang Minh"
package/CHANGELOG.md CHANGED
@@ -4,6 +4,17 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [SemVer](ht
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.22.17] - 2026-10-22
8
+
9
+ ### Fixed
10
+
11
+ - `npm install -g @minhspark/codex-mcp-bridge` run from Claude Code's Bash tool no longer warns that the installed version could not be verified. Claude Code shell snapshots keep the `npm()` function from `scripts/npm-footer.sh` but drop functions whose names start with `_`, so the separate `_codex_bridge_installed_version` helper vanished and every install printed `Warning: npm completed, but the installed @minhspark/codex-mcp-bridge version could not be verified.` even though it succeeded. The version reader now lives inside `npm()` and the script defines no other function.
12
+ - The 1.22.14 changelog entry no longer reads "The wake It needs".
13
+
14
+ ### Verification
15
+
16
+ - New test `reports an upgrade when only the npm function survives a shell snapshot` loads only `typeset -f npm` in bash and zsh, the way a snapshot does. CI passed on Ubuntu, macOS and Windows with Node 22 and 24 (#151).
17
+
7
18
  ## [1.22.16] - 2026-10-22
8
19
 
9
20
  ### Fixed
@@ -53,7 +64,7 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [SemVer](ht
53
64
 
54
65
  - On macOS the wake opens the task without activating Codex Desktop. On Windows the `codex://` handler brings the Codex Desktop window forward.
55
66
  - The wake helps only when the opened task does not already have its MCP servers loaded. If the relay process died while its task stayed loaded, reopening that task does not restart it; open another task or reconnect the task's MCP servers.
56
- - The wake It needs either the destination task or an earlier Codex Desktop task in the sender's project; otherwise the bridge reports the relay-down guidance.
67
+ - The wake needs either the destination task or an earlier Codex Desktop task in the sender's project; otherwise the bridge reports the relay-down guidance.
57
68
  - Codex can unload a task's MCP servers when the task is idle; the next request wakes the relay again.
58
69
 
59
70
  ## [1.22.13] - 2026-10-20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minhspark/codex-mcp-bridge",
3
- "version": "1.22.16",
3
+ "version": "1.22.17",
4
4
  "description": "Two-way MCP bridge between Claude and Codex: prompts into a live Codex thread, messages into a running Claude Code session.",
5
5
  "keywords": [
6
6
  "mcp",
package/plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "codex-mcp-bridge",
4
- "version": "1.22.16",
4
+ "version": "1.22.17",
5
5
  "description": "Connect ChatGPT to your own Codex Desktop projects and conversations.",
6
6
  "author": {
7
7
  "name": "Bui Dang Minh",
@@ -24,7 +24,7 @@ import { stableInstallPath } from "../src/install-paths.mjs";
24
24
 
25
25
  exitForVersionRequest(import.meta.url);
26
26
 
27
- const VERSION = "1.22.16";
27
+ const VERSION = "1.22.17";
28
28
  const root = stableInstallPath(path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."));
29
29
  const entry = path.join(root, "src", "mcp-supervisor.mjs");
30
30
  const entryArgs = ["native-relay-companion.mjs"];
@@ -1,12 +1,9 @@
1
- _codex_bridge_installed_version() {
2
- command node --input-type=module -e 'import fs from "node:fs"; const value = JSON.parse(fs.readFileSync(process.argv[1], "utf8")); if (value.name !== "@minhspark/codex-mcp-bridge" || typeof value.version !== "string" || !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(value.version)) process.exit(1); process.stdout.write(value.version);' "$1/@minhspark/codex-mcp-bridge/package.json" 2>/dev/null
3
- }
4
-
5
1
  npm() {
6
2
  if [ "$#" -eq 0 ]; then command npm; return $?; fi
7
3
  local bridge_command="${1-}" bridge_global=0 bridge_packages=0 bridge_supported=1
8
4
  local bridge_dry_run=auto bridge_root= bridge_before= bridge_after= bridge_install_status=0
9
5
  local bridge_after_root= bridge_mode=unknown bridge_before_verified=1
6
+ local bridge_version_script='import fs from "node:fs"; const value = JSON.parse(fs.readFileSync(process.argv[1], "utf8")); if (value.name !== "@minhspark/codex-mcp-bridge" || typeof value.version !== "string" || !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(value.version)) process.exit(1); process.stdout.write(value.version);'
10
7
  local -a bridge_arguments bridge_context
11
8
  bridge_arguments=("$@")
12
9
  bridge_context=(--global)
@@ -49,7 +46,7 @@ npm() {
49
46
  case "$bridge_root" in
50
47
  /*)
51
48
  if [ -e "$bridge_root/@minhspark/codex-mcp-bridge/package.json" ]; then
52
- bridge_before="$(_codex_bridge_installed_version "$bridge_root")" || bridge_before_verified=0
49
+ bridge_before="$(command node --input-type=module -e "$bridge_version_script" "$bridge_root/@minhspark/codex-mcp-bridge/package.json" 2>/dev/null)" || bridge_before_verified=0
53
50
  fi
54
51
  ;;
55
52
  *) bridge_before_verified=0 ;;
@@ -65,7 +62,7 @@ npm() {
65
62
  else
66
63
  bridge_after_root="$(command npm root "${bridge_context[@]}" 2>/dev/null)" || bridge_after_root=
67
64
  case "$bridge_after_root" in
68
- /*) bridge_after="$(_codex_bridge_installed_version "$bridge_after_root")" || bridge_after= ;;
65
+ /*) bridge_after="$(command node --input-type=module -e "$bridge_version_script" "$bridge_after_root/@minhspark/codex-mcp-bridge/package.json" 2>/dev/null)" || bridge_after= ;;
69
66
  esac
70
67
  if [ -z "$bridge_after" ] || [ "$bridge_before_verified" -ne 1 ] || [ "$bridge_after_root" != "$bridge_root" ]; then
71
68
  printf 'Warning: npm completed, but the installed @minhspark/codex-mcp-bridge version could not be verified.\n' >&2
@@ -30,7 +30,7 @@ import { discoverClaudeProject } from "./claude-project-discovery.mjs";
30
30
 
31
31
  exitForVersionRequest(import.meta.url);
32
32
 
33
- const VERSION = "1.22.16";
33
+ const VERSION = "1.22.17";
34
34
  void import("./telemetry.mjs").then(({ startUsageReporting }) => startUsageReporting({ version: VERSION })).catch(() => {});
35
35
  const FORWARD_MIN_INTERVAL_MS = 5000;
36
36
  const FORWARD_MAX_PER_SESSION = 50;
package/src/index.mjs CHANGED
@@ -41,7 +41,7 @@ import { createRelayWake, relayKeeperEnabled, relayWakeStateFile, startRelayKeep
41
41
 
42
42
  exitForVersionRequest(import.meta.url);
43
43
 
44
- const VERSION = "1.22.16";
44
+ const VERSION = "1.22.17";
45
45
  void import("./telemetry.mjs").then(({ startUsageReporting }) => startUsageReporting({ version: VERSION })).catch(() => {});
46
46
  const log = (msg) => process.stderr.write(`[codex-mcp-bridge] ${msg}\n`);
47
47
 
@@ -39,7 +39,7 @@ import { NativeCreationReceipts, creationIdValid } from "./native-creation-recei
39
39
 
40
40
  exitForVersionRequest(import.meta.url);
41
41
 
42
- const VERSION = "1.22.16";
42
+ const VERSION = "1.22.17";
43
43
  const log = (msg) => process.stderr.write(`[native-relay] ${msg}\n`);
44
44
 
45
45
  function errorResponse(code, message, sent, details) {