diff --git a/cli/package.json b/cli/package.json index e328081c..e502899d 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/spawn", - "version": "0.5.5", + "version": "0.5.6", "type": "module", "bin": { "spawn": "cli.js" diff --git a/cli/src/commands.ts b/cli/src/commands.ts index 91b3ec64..f4bd4e19 100644 --- a/cli/src/commands.ts +++ b/cli/src/commands.ts @@ -1682,7 +1682,7 @@ function renderListTable(records: SpawnRecord[], manifest: Manifest | null): voi console.log(); } -function isInteractiveTTY(): boolean { +export function isInteractiveTTY(): boolean { return !!(process.stdin.isTTY && process.stdout.isTTY); } diff --git a/cli/src/index.ts b/cli/src/index.ts index 50705096..5bbcddec 100644 --- a/cli/src/index.ts +++ b/cli/src/index.ts @@ -20,6 +20,7 @@ import { resolveAgentKey, resolveCloudKey, loadManifestWithSpinner, + isInteractiveTTY, } from "./commands.js"; import pc from "picocolors"; import pkg from "../package.json" with { type: "json" }; @@ -28,10 +29,6 @@ import { loadManifest, agentKeys, cloudKeys, getCacheAge } from "./manifest.js"; const VERSION = pkg.version; -function isInteractiveTTY(): boolean { - return process.stdin.isTTY && process.stdout.isTTY; -} - function handleError(err: unknown): never { // Use duck typing instead of instanceof to avoid prototype chain issues const msg = err && typeof err === "object" && "message" in err ? String(err.message) : String(err); diff --git a/ovh/lib/common.sh b/ovh/lib/common.sh index dda9487e..4d40558f 100644 --- a/ovh/lib/common.sh +++ b/ovh/lib/common.sh @@ -390,13 +390,6 @@ install_base_deps() { log_info "Base dependencies installed" } -# Inject environment variables using SSH -inject_env_vars_ovh() { - local server_ip="$1" - shift - inject_env_vars_ssh "${server_ip}" "upload_file_ovh ${server_ip}" "run_ovh ${server_ip}" "$@" -} - # List all OVH instances list_instances() { local response