mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
6d1fb6d219
* feat(runtime): add runtime detection utility for Bun/Node.js Add runtime-detect.ts module that detects whether opencli is running under Bun or Node.js via globalThis.Bun check. Includes helper functions for version string and label formatting. Add corresponding unit tests that work correctly under both runtimes. * feat(runtime): integrate Bun runtime support into CLI tooling - doctor: show runtime label (e.g. 'node v22.13.0') in diagnostic output - package.json: add dev:bun, start:bun, test:bun convenience scripts - E2E helpers: support OPENCLI_TEST_RUNTIME env var for runtime selection * ci: add Bun compatibility test job and document runtime support - ci.yml: add bun-test job using oven-sh/setup-bun@v2 - README.md: update Prerequisites to mention Bun, add Runtime Support section with usage examples for dev:bun, start:bun, test:bun * ci: pin Bun version in compatibility job --------- Co-authored-by: jackwener <jakevingoo@gmail.com>