Skip to content

Add bun kit - #247

Open
kristiyan-velkov wants to merge 1 commit into
docker:mainfrom
kristiyan-velkov:add-bun-kit
Open

Add bun kit#247
kristiyan-velkov wants to merge 1 commit into
docker:mainfrom
kristiyan-velkov:add-bun-kit

Conversation

@kristiyan-velkov

Copy link
Copy Markdown

Summary

  • Add a bun mixin that installs Bun v1.4.0 from a SHA256-verified GitHub release zip (bun-linux-x64 / bun-linux-aarch64).
  • Extract the binary with Python's zipfile so the kit does not need apt-get install unzip or Ubuntu/Docker apt hosts.
  • Keep the allowlist to the one-shot release download; bun install registries are opt-in per sandbox.

Spec choices worth flagging for review

  • No curl | bash from bun.sh. Version + per-arch SHA256 are pinned from the release SHASUMS256.txt.
  • Runtime package installs (registry.npmjs.org, etc.) are intentionally not allowlisted — same posture as keeping Vale/Task install-only. Documented in the README.
  • Python unzip instead of apt unzip keeps the network contract to three GitHub asset hosts.

Origin

New runtime mixin, patterned on vale/ / task/ (pinned GitHub release).

Test plan

  • ./scripts/test-kit.sh bun passes (the TCK)
  • ./scripts/test-kit-e2e.sh bun passes under deny-all
  • Manual smoke: sbx run --kit ./bun/ claude then bun --version

Made with Cursor

Avoid the unsigned curl|bash installer; pin version and SHA256 in git.

Signed-off-by: kristiyan.velkov <christiyanweb@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@kristiyan-velkov
kristiyan-velkov requested a review from a team as a code owner August 27, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant