mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 11:59:29 +00:00
refactor: Remove dead code and stale references (#2154)
* 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>
This commit is contained in:
parent
a6b92e1e86
commit
4d3f2ba54a
4 changed files with 5 additions and 29 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.12.11",
|
||||
"version": "0.12.12",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue