Title: Consolidate coana launcher env vars into SOCKET_CLI_COANA_LAUNCHER by mtorp · Pull Request #233 · SocketDev/socket-python-cli · GitHub
Open Graph Title: Consolidate coana launcher env vars into SOCKET_CLI_COANA_LAUNCHER by mtorp · Pull Request #233 · SocketDev/socket-python-cli
X Title: Consolidate coana launcher env vars into SOCKET_CLI_COANA_LAUNCHER by mtorp · Pull Request #233 · SocketDev/socket-python-cli
Description: Motivation Follow-up from the review thread on #230 (#230 (comment)): the two coana launcher toggles introduced there (SOCKET_CLI_COANA_FORCE_NPM_INSTALL and SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK) are consolidated into a single variable, mirroring the same change landing in the Node CLI (socket-cli, branch martin/env-variable-cleanup). Changes New SOCKET_CLI_COANA_LAUNCHER variable with three values: auto (default / unset) — try npx first, fall back to npm install + node on launcher-level failures (unchanged default behavior). npx — npx only; never fall back (replaces SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK). npm-install — skip npx entirely; always npm install + node (replaces SOCKET_CLI_COANA_FORCE_NPM_INSTALL). Resolution rules (identical to the Node CLI): SOCKET_CLI_COANA_LAUNCHER is stripped/lowercased; a recognized value wins and the legacy vars are ignored entirely. A set-but-unrecognized value logs a warning and behaves as auto (legacy vars ignored here too). When unset/empty, the legacy vars apply: SOCKET_CLI_COANA_FORCE_NPM_INSTALL → npm-install, else SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK → npx, else auto. The legacy variables remain supported for back-compat but are deprecated and no longer documented. SOCKET_CLI_COANA_LOCAL_PATH is untouched. socketsecurity/core/tools/reachability.py: new _resolve_coana_launcher_mode() helper; the npm-install and no-fallback gates now key off the resolved mode. docs/cli-reference.md: the two legacy bullets replaced with the new variable and its three values. tests/unit/test_reachability.py: legacy-var tests kept as back-compat coverage; new tests for npm-install, npx, precedence over legacy vars, and unrecognized-value-as-auto. CHANGELOG.md: 2.4.12 entry. Testing uv run --extra test pytest tests/unit — 345 passed, 2 skipped (pre-existing).
Open Graph Description: Motivation Follow-up from the review thread on #230 (#230 (comment)): the two coana launcher toggles introduced there (SOCKET_CLI_COANA_FORCE_NPM_INSTALL and SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK) ...
X Description: Motivation Follow-up from the review thread on #230 (#230 (comment)): the two coana launcher toggles introduced there (SOCKET_CLI_COANA_FORCE_NPM_INSTALL and SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK) ...
Opengraph URL: https://github.com/SocketDev/socket-python-cli/pull/233
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c1141a62-3b8e-1939-cd32-558c4d2b71e7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D380:B6C89:3756107:4BFECBB:6A4F370C |
| html-safe-nonce | 1217d444e94bdefa733e236e3aca9fd029b68b71bd3cd73a3879d9f8a98649ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzgwOkI2Qzg5OjM3NTYxMDc6NEJGRUNCQjo2QTRGMzcwQyIsInZpc2l0b3JfaWQiOiIyMTY5MzYxOTYwMjY2NzI3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3cf9bd5c2fa5ab6d8ec2972224a4221a37a30c51cb670fc6222892c7bb399659 |
| hovercard-subject-tag | pull_request:3839019492 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/SocketDev/socket-python-cli/pull/233/files |
| twitter:image | https://avatars.githubusercontent.com/u/5579277?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5579277?s=400&v=4 |
| og:image:alt | Motivation Follow-up from the review thread on #230 (#230 (comment)): the two coana launcher toggles introduced there (SOCKET_CLI_COANA_FORCE_NPM_INSTALL and SOCKET_CLI_COANA_DISABLE_NPM_FALLBACK) ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/SocketDev/socket-python-cli git https://github.com/SocketDev/socket-python-cli.git |
| octolytics-dimension-user_id | 69326764 |
| octolytics-dimension-user_login | SocketDev |
| octolytics-dimension-repository_id | 802230750 |
| octolytics-dimension-repository_nwo | SocketDev/socket-python-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 802230750 |
| octolytics-dimension-repository_network_root_nwo | SocketDev/socket-python-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width