Skip to content

fix(cli): require an explicit org for Coana builds - #1757

Open
John-David Dalton (jdalton) wants to merge 1 commit into
v1.xfrom
fix/native-coana-runtime-download
Open

John-David Dalton (jdalton) wants to merge 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

The SEA publish workflow passes SocketDev explicitly so the build can fetch and embed Coana. The standalone CLI copies the embedded Coana files into its cache on first use so reachability can run from a fresh cache.

@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 Oskar Haarklou Veileborg (BarrensZeppelin) left a comment •

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.

Hey! I'm not familiar with the SEA build, but I had Claude help me investigate.

Is it correct that we embed the analyzers component into the SEA binary?
If so, we should stop doing that. 🙃
Edit: it looks like it was this PR: #1756

You can embed the cli component if you want, which is public and is stable.
The Coana CLI itself downloads other components on-demand (private, components subject to change).

@jdalton

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

Copy link
Copy Markdown
Contributor Author

Oskar Haarklou Veileborg (@BarrensZeppelin) the download on demand is what can make breaking changes and "works on this version" hard to pin down. Are we doing it as a security through obscurity mechanism, as a way to side step versioning and release process, or some other reasoning? If the guidance is to embed just the Coana cli component, where should we get that from? The npm registry version seems to be lagged behind.

@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch 2 times, most recently from f4dd88a to fc4e917 Compare November 25, 2026 14:50
@jdalton
John-David Dalton (jdalton) force-pushed the fix/native-coana-runtime-download branch from fc4e917 to 826a079 Compare November 25, 2026 15:14

This branch has not been deployed

No deployments
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