mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
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:
parent
15e4715555
commit
0380ad33f9
5 changed files with 7 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@openrouter/spawn",
|
||||
"version": "0.15.37",
|
||||
"version": "0.15.38",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"spawn": "cli.js"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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" &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue