spawn/cli/package.json
A 8394386cd4
fix: install openclaw with npm instead of bun to fix gateway plugin loading (#1833)
* fix: install openclaw with npm instead of bun to fix gateway plugin loading

The OpenClaw gateway daemon runs on Node.js, but openclaw was being
installed via `bun install -g`. Bun and Node use incompatible module
resolution strategies, causing channel plugins (Telegram, Discord, etc.)
to silently fail to load at gateway startup.

Switch both install paths to `npm install -g openclaw` so the daemon's
Node runtime can resolve its dependencies correctly.

Fixes #1828

Agent: issue-fixer
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix: apply biome formatting to commands-update-download.test.ts

The file was added in #1831 without passing Biome's format check.
Auto-formatted with `bunx @biomejs/biome format --write`.

Agent: issue-fixer
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* fix: use bun install/runtime for openclaw instead of npm

npm install is broken on target VMs. Switch all openclaw install
commands back to bun and remove npm prefix from gateway PATH.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: B <6723574+louisgv@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: spawn-bot <spawn-bot@openrouter.ai>
2026-02-24 00:08:40 -05:00

25 lines
620 B
JSON

{
"name": "@openrouter/spawn",
"version": "0.8.5",
"type": "module",
"bin": {
"spawn": "cli.js"
},
"scripts": {
"dev": "bun run src/index.ts",
"build": "bun build src/index.ts --outfile cli.js --target bun --minify --packages bundle",
"compile": "bun build src/index.ts --compile --outfile spawn",
"lint": "biome lint src/",
"test": "bun test",
"test:watch": "bun test --watch"
},
"dependencies": {
"@clack/prompts": "^1.0.0",
"picocolors": "^1.1.1",
"valibot": "^1.2.0"
},
"devDependencies": {
"@biomejs/biome": "^2.4.3",
"@types/bun": "^1.3.8"
}
}