Skip to content

Rename runtime branding from bun to poly - #8

Merged
liooil merged 2 commits into
mainfrom
claude/rename-bun-poly
Aug 8, 2026
Merged

Rename runtime branding from bun to poly#8
liooil merged 2 commits into
mainfrom
claude/rename-bun-poly

Conversation

@liooil

@liooil liooil commented Aug 8, 2026

Copy link
Copy Markdown
Owner

What

Renames the user-facing `bun` branding to `poly` per the agreed scope (package identity, banners, CLI commands, completions, install artifacts, dockerhub). Unchanged: `bun.lock`/`bunfig.toml` filenames, runtime version string, `BUN_` env vars, `packages/` dirs, `Bun.*` JS API.

Changes

Area Detail
package.json `name`: bun -> poly; `scripts/build/config.ts` findRepoRoot matches `poly`
CLI `bunx` -> `polyx` (argv0 detection keeps legacy `bunx`); `bun` build alias -> `poly`; cache dirs/symlinks/usage strings
Install artifacts Windows shim files `.bunx` -> `.polyx` (writer + reader, legacy suffix accepted); shebang detection + node->poly rewrite
Banners node:repl welcome, html dev banner, bake overlay, upgrade copy -> `Poly`; links -> liooil/poly
Completions files renamed to `poly.{bash,fish,zsh}` + `poly-cli.json`; spec.yaml, generator, install-completions filenames
dockerhub Dockerfiles pull liooil/poly release tarballs (SHA256SUMS-verified), install `/usr/local/bin/poly`, poly user/polyx
Tests `.bunx` expectations -> `.polyx`, `polyx npm login` message

Verification

  • `cargo check -p bun_runtime -p bun_install` (both bun_shim_impl compile modes) pass
  • `bun build misctools/generate-cli-completions.ts` passes
  • Completion scripts validated for `poly` command tokens (bunfig/bundle words preserved)

liooil added 2 commits August 8, 2026 10:01
Per-language feature parity in the poly REPL:

- History is now isolated per language (.bun_repl_history.{js,py,sh,sql,c});
  switching modes swaps the active history file
- Python: expression results bind to _ (CPython REPL convention);
  Tab completion lists names from the persistent RustPython scope
- Shell/SQL/C: multiline input collection (unclosed quotes, backslash
  continuation, unbalanced braces/brackets, SQL statements collected
  until the trailing semicolon); Tab completion from per-language word
  lists (shell commands, SQLite keywords, C keywords)
- All non-JS modes get lightweight syntax highlighting (keywords cyan,
  strings green, comments dim, numbers yellow)
- _ / _error already flowed through the shared evaluate_and_print path
  for Shell/SQL/C; Python now matches
- package.json name: bun -> poly (build scripts' findRepoRoot updated)
- CLI: bunx command/shim -> polyx (argv0 detection keeps legacy bunx),
  'bun' build alias -> 'poly', polyx cache dirs, polyx symlinks
- Install artifacts: Windows .bunx shim files -> .polyx (writer + reader),
  shebang node/poly detection, node->poly command-line rewrite
- Error/welcome banners: node:repl welcome, html dev-server banner,
  bake overlay, upgrade copy ("Welcome to Poly", fork repo links)
- Completions: files renamed to poly.{bash,fish,zsh}, poly-cli.json;
  spec.yaml, generator output, install-completions filenames updated
- dockerhub: Dockerfiles pull liooil/poly release assets (tar.gz +
  SHA256SUMS), install /usr/local/bin/poly, poly user/polyx links
- Tests: .bunx -> .polyx expectations, 'polyx npm login' message
@liooil
liooil merged commit 57b8c29 into main Aug 8, 2026
4 of 6 checks passed
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