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:
A 2026-03-02 10:58:48 -08:00 committed by GitHub
parent b35ecdfaff
commit 0e145c2e8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 0 additions and 43 deletions

View file

@ -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> {

View file

@ -90,14 +90,6 @@ let doToken = "";
let doDropletId = "";
let doServerIp = "";
export function getState() {
return {
doToken,
doDropletId,
doServerIp,
};
}
// ─── API Client ──────────────────────────────────────────────────────────────
async function doApi(

View file

@ -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 {

View file

@ -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> {

View file

@ -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 }. */