mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
* refactor: Remove redundant loadTokenFromConfig wrappers in hetzner, daytona, digitalocean The previous PR (#2151) introduced shared loadApiToken() in shared/ui.ts and updated hetzner/daytona to delegate to it via thin wrapper functions. This commit removes the now-unnecessary wrapper functions entirely, inlining the loadApiToken() calls directly at the callsite. Also removes the 16-line duplicate loadTokenFromConfig() implementation in digitalocean.ts (which replicates the same api_key/token field reading and regex validation logic as loadApiToken) and replaces it with a direct call to loadApiToken("digitalocean"). -- qa/code-quality Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * bump version to 0.12.12 (main already has 0.12.11) --------- Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: L <6723574+louisgv@users.noreply.github.com>
25 lines
617 B
JSON
25 lines
617 B
JSON
{
|
|
"name": "@openrouter/spawn",
|
|
"version": "0.12.12",
|
|
"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"
|
|
}
|
|
}
|