Skip to content

Stop paying the multimodal tax. Your AI agent keeps every image it has seen but only sends the ones it needs: lighter chats, no endless reconnecting, no starting over. Works with Codex, Claude Code, Cline, Gemini CLI, OpenCode, WorkBuddy and more. Install once, forget it.

fix(claude): 找不到 Node 24 时的提示也给只装了 Claude 的用户指路

chipfighter93dc2c2fb71a
diff --git a/plugin/scripts/launch b/plugin/scripts/launch
index 4f6b88d..db0edb7 100755
--- a/plugin/scripts/launch
+++ b/plugin/scripts/launch
@@ -2,6 +2,7 @@
# Purpose: v0.1 - start one of the plugin's scripts (the MCP server, the command line) on macOS and Linux with a Node
# that runs TypeScript directly (Node 24 or newer). Tries the Node runtimes that Codex ships first, then a node on PATH.
# Codex runs this file for the plugin's MCP server (.mcp.json: ./scripts/launch); on Windows it finds launch.cmd.
+# v0.4: Claude Code runs it too (.claude-plugin/plugin.json); without Codex, the node on PATH must be Node 24 or newer.
# Input: the script to run and its arguments. Output: whatever the script prints (the MCP stdio stream).
set -eu
@@ -36,5 +37,5 @@ if node_path=$(command -v node 2>/dev/null) && "$node_path" -e 'process.exit(Num
exec "$node_path" "$@"
fi
-printf '%s\n' 'codex-attachment-manager: no Node 24 or newer found; update Codex or install Node 24' >&2
+printf '%s\n' 'codex-attachment-manager: no Node 24 or newer found; install Node 24 or newer from nodejs.org (with Codex, updating Codex also works)' >&2
exit 127
diff --git a/plugin/scripts/launch.cmd b/plugin/scripts/launch.cmd
index 180fc33..cad35ae 100644
--- a/plugin/scripts/launch.cmd
+++ b/plugin/scripts/launch.cmd
@@ -3,6 +3,7 @@ rem Purpose: P5 - start one of the plugin's scripts (the MCP server, the command
rem directly (Node 24 or newer). Tries the Node runtimes that Codex ships first, then a node on PATH.
rem Codex finds this file for the plugin's MCP server (.mcp.json: ./scripts/launch); scripts/launch is the macOS and
rem Linux version. Input: the script to run and its arguments. Output: whatever the script prints (the MCP stdio stream).
+rem v0.4: Claude Code runs it too (.claude-plugin/plugin.json); without Codex, the node on PATH must be Node 24 or newer.
setlocal
if "%~1"=="" (
@@ -44,5 +45,5 @@ node %*
exit /b
:missing
-echo codex-attachment-manager: no Node 24 or newer found; update Codex or install Node 24 1>&2
+echo codex-attachment-manager: no Node 24 or newer found; install Node 24 or newer from nodejs.org ^(with Codex, updating Codex also works^) 1>&2
exit /b 127