mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-29 04:19:30 +00:00
Explicitly convert string chunks to Buffer.from(chunk, 'utf8') before writing to process.stdout. This fixes UTF-8 mojibake (â instead of ◆/│) seen in some Bun + terminal combinations (e.g. Ghostty on macOS) where process.stdout.write(string) doesn't encode as UTF-8 by default. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
516 B
JSON
22 lines
516 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.2.10",
|
|
"type": "module",
|
|
"bin": {
|
|
"spawn": "cli.js"
|
|
},
|
|
"scripts": {
|
|
"dev": "bun run src/index.ts",
|
|
"build": "bun build src/index.ts --outfile cli.js --target node --minify",
|
|
"compile": "bun build src/index.ts --compile --outfile spawn",
|
|
"test": "bun test",
|
|
"test:watch": "bun test --watch"
|
|
},
|
|
"dependencies": {
|
|
"@clack/prompts": "^1.0.0",
|
|
"picocolors": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.3.8"
|
|
}
|
|
}
|