mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-10 12:20:07 +00:00
refactor: Remove dead getState() exports from cloud modules (#2108)
Removed `getState()` from hetzner, gcp, daytona, sprite, and digitalocean modules. These functions were exported but never called from production code or tests. The aws module retains its `getState()` which is tested in custom-flag.test.ts to verify region state mutation. Also bumps CLI patch version (0.12.2 → 0.12.3) as required per project rules. Co-authored-by: spawn-qa-bot <qa@openrouter.ai> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b35ecdfaff
commit
0e145c2e8a
5 changed files with 0 additions and 43 deletions
|
|
@ -34,16 +34,6 @@ let sshToken = "";
|
|||
let sshHost = "";
|
||||
let sshPort = "";
|
||||
|
||||
export function getState() {
|
||||
return {
|
||||
daytonaApiKey,
|
||||
sandboxId,
|
||||
sshToken,
|
||||
sshHost,
|
||||
sshPort,
|
||||
};
|
||||
}
|
||||
|
||||
// ─── API Client ──────────────────────────────────────────────────────────────
|
||||
|
||||
async function daytonaApi(method: string, endpoint: string, body?: string, maxRetries = 3): Promise<string> {
|
||||
|
|
|
|||
|
|
@ -90,14 +90,6 @@ let doToken = "";
|
|||
let doDropletId = "";
|
||||
let doServerIp = "";
|
||||
|
||||
export function getState() {
|
||||
return {
|
||||
doToken,
|
||||
doDropletId,
|
||||
doServerIp,
|
||||
};
|
||||
}
|
||||
|
||||
// ─── API Client ──────────────────────────────────────────────────────────────
|
||||
|
||||
async function doApi(
|
||||
|
|
|
|||
|
|
@ -143,16 +143,6 @@ let gcpInstanceName = "";
|
|||
let gcpServerIp = "";
|
||||
let gcpUsername = "";
|
||||
|
||||
export function getState() {
|
||||
return {
|
||||
gcpProject,
|
||||
gcpZone,
|
||||
gcpInstanceName,
|
||||
gcpServerIp,
|
||||
gcpUsername,
|
||||
};
|
||||
}
|
||||
|
||||
// ─── gcloud CLI Wrapper ─────────────────────────────────────────────────────
|
||||
|
||||
function getGcloudCmd(): string | null {
|
||||
|
|
|
|||
|
|
@ -40,14 +40,6 @@ let hcloudToken = "";
|
|||
let hetznerServerId = "";
|
||||
let hetznerServerIp = "";
|
||||
|
||||
export function getState() {
|
||||
return {
|
||||
hcloudToken,
|
||||
hetznerServerId,
|
||||
hetznerServerIp,
|
||||
};
|
||||
}
|
||||
|
||||
// ─── API Client ──────────────────────────────────────────────────────────────
|
||||
|
||||
async function hetznerApi(method: string, endpoint: string, body?: string, maxRetries = 3): Promise<string> {
|
||||
|
|
|
|||
|
|
@ -27,13 +27,6 @@ const CONNECTIVITY_POLL_DELAY = Number.parseInt(process.env.SPRITE_CONNECTIVITY_
|
|||
let spriteName = "";
|
||||
let spriteOrg = "";
|
||||
|
||||
export function getState() {
|
||||
return {
|
||||
spriteName,
|
||||
spriteOrg,
|
||||
};
|
||||
}
|
||||
|
||||
// ─── Helpers ─────────────────────────────────────────────────────────────────
|
||||
|
||||
/** Run a command locally and return { exitCode, stdout, stderr }. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue