Skip to content

Commit 0380ad3

Browse files
la14-1spawn-qa-bot
andauthored
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>
1 parent 15e4715 commit 0380ad3

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openrouter/spawn",
3-
"version": "0.15.37",
3+
"version": "0.15.38",
44
"type": "module",
55
"bin": {
66
"spawn": "cli.js"

packages/cli/src/aws/aws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ export async function createInstance(name: string, tier?: CloudInitTier): Promis
960960

961961
// ─── Wait for Instance ──────────────────────────────────────────────────────
962962

963-
export async function waitForInstance(maxAttempts = 60): Promise<VMConnection> {
963+
async function waitForInstance(maxAttempts = 60): Promise<VMConnection> {
964964
logStep("Waiting for instance to become running...");
965965
const pollDelay = 5000;
966966

packages/cli/src/commands/shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function handleCancel(): never {
2828
process.exit(0);
2929
}
3030

31-
export async function withSpinner<T>(msg: string, fn: () => Promise<T>, doneMsg?: string): Promise<T> {
31+
async function withSpinner<T>(msg: string, fn: () => Promise<T>, doneMsg?: string): Promise<T> {
3232
const s = p.spinner();
3333
s.start(msg);
3434
try {
@@ -191,7 +191,7 @@ interface EntityDef {
191191
listCmd: string;
192192
opposite: string;
193193
}
194-
export const ENTITY_DEFS: Record<"agent" | "cloud", EntityDef> = {
194+
const ENTITY_DEFS: Record<"agent" | "cloud", EntityDef> = {
195195
agent: {
196196
label: "agent",
197197
labelPlural: "agents",

packages/cli/src/guidance-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
import pc from "picocolors";
77

8-
export interface SignalEntry {
8+
interface SignalEntry {
99
header: string;
1010
causes: string[];
1111
includeDashboard: boolean;
1212
}
1313

14-
export interface ExitCodeEntry {
14+
interface ExitCodeEntry {
1515
header: string;
1616
lines: string[];
1717
includeDashboard: boolean;

packages/cli/src/manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function stripDangerousKeys(obj: unknown): unknown {
144144
return clean;
145145
}
146146

147-
export function isValidManifest(data: unknown): data is Manifest {
147+
function isValidManifest(data: unknown): data is Manifest {
148148
return (
149149
data !== null &&
150150
typeof data === "object" &&

0 commit comments

Comments
 (0)