@@ -34,6 +34,7 @@ import { ensureVmRunning, resolveUbuntuVmName } from "./parallels-vm.ts";
|
34 | 34 | interface NpmUpdateOptions { |
35 | 35 | betaValidation?: string; |
36 | 36 | freshTargetSpec?: string; |
| 37 | +hostIp?: string; |
37 | 38 | packageSpec: string; |
38 | 39 | updateTarget: string; |
39 | 40 | platforms: Set<Platform>; |
@@ -111,6 +112,7 @@ Options:
|
111 | 112 | Default: all |
112 | 113 | --provider <openai|anthropic|minimax> |
113 | 114 | --model <provider/model> Override the model used for agent-turn smoke checks. |
| 115 | + --host-ip <ip> Override Parallels host IP. |
114 | 116 | --api-key-env <var> Host env var name for provider API key. |
115 | 117 | --openai-api-key-env <var> Alias for --api-key-env (backward compatible) |
116 | 118 | --json Print machine-readable JSON summary. |
@@ -170,6 +172,10 @@ function parseArgs(argv: string[]): NpmUpdateOptions {
|
170 | 172 | options.modelId = ensureValue(argv, i, arg); |
171 | 173 | i++; |
172 | 174 | break; |
| 175 | +case "--host-ip": |
| 176 | +options.hostIp = ensureValue(argv, i, arg); |
| 177 | +i++; |
| 178 | +break; |
173 | 179 | case "--api-key-env": |
174 | 180 | case "--openai-api-key-env": |
175 | 181 | options.apiKeyEnv = ensureValue(argv, i, arg); |
@@ -251,7 +257,7 @@ class NpmUpdateSmoke {
|
251 | 257 | this.currentHeadShort = run("git", ["rev-parse", "--short=7", "HEAD"], { |
252 | 258 | quiet: true, |
253 | 259 | }).stdout.trim(); |
254 | | -this.hostIp = resolveHostIp(""); |
| 260 | +this.hostIp = resolveHostIp(this.options.hostIp ?? ""); |
255 | 261 | this.configurePublishedTargets(); |
256 | 262 | |
257 | 263 | if (this.options.platforms.has("linux")) { |
|