Skip to content

fix(cli): enable bundled SEA tools and download Coana on demand - #1757

Merged
John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/native-coana-runtime-download
Nov 25, 2026
Merged

John-David Dalton (jdalton) merged 1 commit into
v1.xfrom
fix/native-coana-runtime-download

Conversation

@jdalton

@jdalton John-David Dalton (jdalton) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Both CLI variants download Coana from the Socket API on a cache miss and honor the version override. The Node CLI uses the installed Node executable, and the SEA carries a separate Node executable to launch Coana. SEA builds need no Coana credentials.

The SEA bundles cdxgen for npm lockfile v3, synp for Yarn Classic conversion, uv 0.13.10, and socket-patch. CI and the SEA share the uv release and checksums. Tracked Termless snapshots cover npm and Yarn Classic SBOM output and the embedded uv version.

@cursor

cursor Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Shifts Coana delivery from build-time embedding to runtime download with API/network dependency, but reuses the existing cache and spawn path already used outside SEA.

Overview
Standalone SEA builds no longer vendor the Coana CLI and analyzers at compile time. The builder embeds only a Coana Node runtime (stageCoanaNode) so the executable can run Coana’s JavaScript wrapper after a first-use download.

At runtime, Coana follows the same Socket API + shared cache path as the regular CLI (getCoanaCliDir in release.mts); the large cacheEmbeddedCoana / embedded-VFS path is removed. Smoke tests and manifests now record coana-node instead of full Coana payloads.

Release CI drops SOCKET_CLI_API_TOKEN and SOCKET_CLI_COANA_REQUIRED from native SEA build jobs, so 2.x RC native packages can build without Coana artifact credentials. Docs describe runtime download under ${XDG_CACHE_HOME:-~/.cache}/socket/coana.

Reviewed by Cursor Bugbot for commit ab91f1f. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit ab91f1f. Configure here.

Comment thread src/utils/coana/release.mts Resolved
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch 3 times, most recently from a9154e8 to 83276e7 Compare November 25, 2026 01:37
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from 83276e7 to 0b234ff Compare November 25, 2026 01:58
@jdalton John-David Dalton (jdalton) changed the title fix(cli): download Coana at runtime in SEA builds fix(cli): use SocketDev for Coana release artifacts Nov 25, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from 0b234ff to d15ed9d Compare November 25, 2026 01:59
@jdalton John-David Dalton (jdalton) changed the title fix(cli): use SocketDev for Coana release artifacts fix(cli): fetch Coana build artifacts from SocketDev Nov 25, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch 4 times, most recently from 44919b1 to dcb294c Compare November 25, 2026 02:07
@jdalton John-David Dalton (jdalton) changed the title fix(cli): fetch Coana build artifacts from SocketDev fix(cli): require an explicit org for Coana builds Nov 25, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch 7 times, most recently from 4aa3660 to 551fe1f Compare November 25, 2026 02:47
BarrensZeppelin

This comment was marked as resolved.

@jdalton

This comment was marked as resolved.

@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch 3 times, most recently from fc4e917 to 826a079 Compare November 25, 2026 15:14
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from 826a079 to cc7017f Compare November 25, 2026 16:26
@jdalton John-David Dalton (jdalton) changed the title fix(cli): require an explicit org for Coana builds fix(cli): share Coana downloads with native SEA builds Nov 25, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from cc7017f to ec8a85a Compare November 25, 2026 16:36
@jdalton John-David Dalton (jdalton) changed the title fix(cli): share Coana downloads with native SEA builds fix(cli): download Coana on demand in native SEA builds Nov 25, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch 5 times, most recently from ab067eb to 71e2036 Compare November 25, 2026 17:06
@jdalton John-David Dalton (jdalton) changed the title fix(cli): download Coana on demand in native SEA builds fix(cli): enable SEA SBOM tools and fetch Coana on demand Nov 25, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from 71e2036 to 624c578 Compare November 25, 2026 17:10
@jdalton John-David Dalton (jdalton) changed the title fix(cli): enable SEA SBOM tools and fetch Coana on demand fix(cli): enable bundled SEA tools and download Coana on demand Nov 25, 2026
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from 624c578 to aaaac4c Compare November 25, 2026 17:21
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from aaaac4c to bba7d90 Compare November 25, 2026 17:26

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks for looking into this! 🎉

@jdalton
John-David Dalton (jdalton) merged commit 90f76b2 into v1.x Nov 25, 2026
23 checks passed
@jdalton
John-David Dalton (jdalton) deleted the fix/native-coana-runtime-download branch November 25, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants