You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consolidate Coana launcher env vars into SOCKET_CLI_COANA_LAUNCHER (#1360)
* feat(reach): consolidate Coana launcher env vars into SOCKET_CLI_COANA_LAUNCHER
The npm-install launcher path could previously be tuned via two boolean
env vars: SOCKET_CLI_COANA_FORCE_NPM_INSTALL (skip npx, always npm
install + node) and SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK (npx only,
never fall back). They really express three modes of one setting, so
replace them with a single SOCKET_CLI_COANA_LAUNCHER variable taking
auto (default), npx, or npm-install.
The legacy variables remain supported for backward compatibility when
the new variable is unset, but are intentionally left undocumented.
Unrecognized values warn and behave as auto.
Follow-up from the review discussion on SocketDev/socket-python-cli#230;
the Python CLI is getting the same change.
* fix(reach): honor requested stdio on all Coana launch paths
The dlx branch resolves the caller's requested stdio from both the
options and spawnExtra arguments, but spawnCoanaScriptViaNode only read
spawnExtra. The local-path, forced npm-install, and auto-mode fallback
branches therefore dropped stdio passed via options and defaulted to
inherit — `socket fix --silence` requests stdio 'pipe' via options, so
those paths leaked Coana output to the terminal. Resolve the requested
stdio once and thread it through every launch path.
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,6 +110,7 @@ npm exec socket
110
110
-`SOCKET_CLI_API_BASE_URL` - API base URL (default: `https://api.socket.dev/v0/`)
111
111
-`SOCKET_CLI_API_PROXY` - Proxy for API requests (aliases: `HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, `http_proxy`)
112
112
-`SOCKET_CLI_API_TIMEOUT` - API request timeout in milliseconds
113
+
-`SOCKET_CLI_COANA_LAUNCHER` - How the reachability engine (`@coana-tech/cli`) is launched: `auto` (default; try `npx`, fall back to `npm install` + `node` if the launcher fails), `npx` (never fall back), or `npm-install` (skip `npx` entirely)
0 commit comments