oh-langfuse 0.1.66 → 0.1.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-langfuse",
3
- "version": "0.1.66",
3
+ "version": "0.1.67",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Use npm scripts to configure Claude Code / OpenCode / Codex with Langfuse tracing.",
@@ -983,8 +983,10 @@ function writeOpencodeCommandShim(opencodeDir, { publicKey, secretKey, baseUrl,
983
983
  cmd.push(" exit /b %ERRORLEVEL%");
984
984
  cmd.push(" )");
985
985
  cmd.push(")");
986
- cmd.push("call npx.cmd -y opencode@latest %*");
987
- cmd.push("exit /b %ERRORLEVEL%");
986
+ cmd.push("echo [ERROR] OpenCode CLI not found. Install OpenCode CLI first. 1>&2");
987
+ cmd.push("echo Try: npm install -g opencode-windows-x64 1>&2");
988
+ cmd.push("echo Then run: npx oh-langfuse@latest update opencode 1>&2");
989
+ cmd.push("exit /b 127");
988
990
  fs.writeFileSync(shim, cmd.join("\r\n") + "\r\n", "utf8");
989
991
  return { shim, shimDir };
990
992
  }
@@ -1008,7 +1010,11 @@ function writeOpencodeCommandShim(opencodeDir, { publicKey, secretKey, baseUrl,
1008
1010
  ' resolved="$(command -v opencode)"',
1009
1011
  ' if [ "$resolved" != "$0" ]; then exec "$resolved" "$@"; fi',
1010
1012
  "fi",
1011
- 'exec npx -y opencode@latest "$@"',
1013
+ 'echo "[ERROR] OpenCode CLI not found. Install OpenCode CLI first." >&2',
1014
+ 'echo "Try: npm install -g opencode-linux-x64" >&2',
1015
+ 'echo "If that package fails on your host, try opencode-linux-x64-baseline or opencode-linux-x64-musl." >&2',
1016
+ 'echo "Then run: npx oh-langfuse@latest update opencode" >&2',
1017
+ "exit 127",
1012
1018
  ""
1013
1019
  ].filter(Boolean);
1014
1020
  fs.writeFileSync(shim, lines.join("\n"), "utf8");