refactor: Remove dead code and stale references (#2151)

- Extract duplicate loadTokenFromConfig helper (hetzner + daytona) into
  shared loadApiToken() in shared/ui.ts, eliminating 24 lines of
  duplicate validation logic across two cloud modules
- Move misplaced FETCH_TIMEOUT and UPDATE_BACKOFF_MS constants in
  update-check.ts from the Schemas section into the Constants section
  where they belong (stale empty section header fix)

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
A 2026-03-03 13:19:01 -08:00 committed by GitHub
parent 6423eb51f5
commit 796eaa9d02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 30 additions and 31 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.12.9",
"version": "0.12.10",
"type": "module",
"bin": {
"spawn": "cli.js"