refactor: replace Bun APIs with Node.js equivalents

Replace Bun.argv with process.argv, Bun.file() with fs/promises,
Bun.stringWidth with string-width package, and Bun.wrapAnsi with
wrap-ansi package for better compatibility.
This commit is contained in:
mitchell 2026-05-25 23:13:16 -04:00
parent b212fee200
commit 0c71e2cd54
7 changed files with 39 additions and 18 deletions

View file

@ -7,7 +7,7 @@ import { Conversation } from "./src/conversation";
import Renderer from "./src/render";
const { values: args, positionals } = parseArgs({
args: Bun.argv,
args: process.argv,
options: {
model: { type: "string" },
m: { type: "string" },