refactor: remove dead exports only used within their own files (#2431)

- withSpinner in commands/shared.ts
- ENTITY_DEFS in commands/shared.ts
- isValidManifest in manifest.ts
- waitForInstance in aws/aws.ts
- SignalEntry, ExitCodeEntry in guidance-data.ts

Bump version: 0.15.37 -> 0.15.38

Co-authored-by: spawn-qa-bot <qa@openrouter.ai>
This commit is contained in:
A 2026-03-10 05:51:15 -07:00 committed by GitHub
parent 15e4715555
commit 0380ad33f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 deletions

View file

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

View file

@ -960,7 +960,7 @@ export async function createInstance(name: string, tier?: CloudInitTier): Promis
// ─── Wait for Instance ──────────────────────────────────────────────────────
export async function waitForInstance(maxAttempts = 60): Promise<VMConnection> {
async function waitForInstance(maxAttempts = 60): Promise<VMConnection> {
logStep("Waiting for instance to become running...");
const pollDelay = 5000;

View file

@ -28,7 +28,7 @@ export function handleCancel(): never {
process.exit(0);
}
export async function withSpinner<T>(msg: string, fn: () => Promise<T>, doneMsg?: string): Promise<T> {
async function withSpinner<T>(msg: string, fn: () => Promise<T>, doneMsg?: string): Promise<T> {
const s = p.spinner();
s.start(msg);
try {
@ -191,7 +191,7 @@ interface EntityDef {
listCmd: string;
opposite: string;
}
export const ENTITY_DEFS: Record<"agent" | "cloud", EntityDef> = {
const ENTITY_DEFS: Record<"agent" | "cloud", EntityDef> = {
agent: {
label: "agent",
labelPlural: "agents",

View file

@ -5,13 +5,13 @@
import pc from "picocolors";
export interface SignalEntry {
interface SignalEntry {
header: string;
causes: string[];
includeDashboard: boolean;
}
export interface ExitCodeEntry {
interface ExitCodeEntry {
header: string;
lines: string[];
includeDashboard: boolean;

View file

@ -144,7 +144,7 @@ function stripDangerousKeys(obj: unknown): unknown {
return clean;
}
export function isValidManifest(data: unknown): data is Manifest {
function isValidManifest(data: unknown): data is Manifest {
return (
data !== null &&
typeof data === "object" &&