From 9db800678939ecd42f45309ba26994babaedc02e Mon Sep 17 00:00:00 2001 From: Carlos Villela Date: Sun, 7 Jun 2026 00:40:28 -0700 Subject: [PATCH 1/5] test(cli): stabilize permission fixtures under umask --- src/lib/onboard/config-sync.test.ts | 1 + src/lib/state/config-io.test.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/lib/onboard/config-sync.test.ts b/src/lib/onboard/config-sync.test.ts index 02775908dc2..5c3d0c9c7d4 100644 --- a/src/lib/onboard/config-sync.test.ts +++ b/src/lib/onboard/config-sync.test.ts @@ -128,6 +128,7 @@ describe("sandbox config sync helpers", () => { try { const nemoclawDir = path.join(homeDir, ".nemoclaw"); fs.mkdirSync(nemoclawDir, { mode: 0o755 }); + fs.chmodSync(nemoclawDir, 0o755); writeFakeCommand(fakeBin, "id", "1234"); writeFakeCommand(fakeBin, "stat", "0"); const script = buildSandboxConfigSyncScript({ diff --git a/src/lib/state/config-io.test.ts b/src/lib/state/config-io.test.ts index f1c8c03dcae..22bcb7e14ed 100644 --- a/src/lib/state/config-io.test.ts +++ b/src/lib/state/config-io.test.ts @@ -215,10 +215,12 @@ describe("config-io", () => { const sibling = path.join(dir, "should-be-healed.json"); fs.writeFileSync(sibling, "stale", { mode: 0o644 }); + fs.chmodSync(sibling, 0o644); const outsideDir = makeTempDir(); const outside = path.join(outsideDir, "target"); fs.writeFileSync(outside, "outside", { mode: 0o644 }); + fs.chmodSync(outside, 0o644); const linkPath = path.join(dir, "rogue-link"); fs.symlinkSync(outside, linkPath); @@ -243,6 +245,7 @@ describe("config-io", () => { const outsideDir = makeTempDir(); const outside = path.join(outsideDir, "target.json"); fs.writeFileSync(outside, JSON.stringify({ outside: true }), { mode: 0o644 }); + fs.chmodSync(outside, 0o644); const symlinkPath = path.join(dir, "config.json"); fs.symlinkSync(outside, symlinkPath); @@ -281,6 +284,7 @@ describe("config-io", () => { fs.writeFileSync(target, JSON.stringify({ ok: true }), { mode: 0o600 }); const sibling = path.join(unrelatedDir, "other.json"); fs.writeFileSync(sibling, "stale", { mode: 0o644 }); + fs.chmodSync(sibling, 0o644); readConfigFile(target, null); From be9ea0608ea7261e877720dcfad75ab7045d6b4e Mon Sep 17 00:00:00 2001 From: Carlos Villela Date: Sun, 7 Jun 2026 00:47:36 -0700 Subject: [PATCH 2/5] test(cli): isolate policy temp dir assertion --- ci/test-file-size-budget.json | 2 +- test/policies.test.ts | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/ci/test-file-size-budget.json b/ci/test-file-size-budget.json index 236a84beffe..abea2f688de 100644 --- a/ci/test-file-size-budget.json +++ b/ci/test-file-size-budget.json @@ -12,7 +12,7 @@ "test/onboard-messaging.test.ts": 2122, "test/onboard-selection.test.ts": 7757, "test/onboard.test.ts": 4887, - "test/policies.test.ts": 3147, + "test/policies.test.ts": 3145, "test/sandbox-connect-inference.test.ts": 1577 } } diff --git a/test/policies.test.ts b/test/policies.test.ts index e6940886dad..e7a1d845bab 100644 --- a/test/policies.test.ts +++ b/test/policies.test.ts @@ -1045,24 +1045,19 @@ exit 1 // `process.exit(1)` the matching `finally` does not run, so a temp dir // created before the exit gets orphaned in $TMPDIR. A mocked exit (which // throws) doesn't reproduce that — `finally` still runs and cleans up. To - // catch the real-world bug, snapshot $TMPDIR at the *moment* of exit: + // catch the real-world bug, spy on this process's mkdtempSync calls: // if the assertion fires before mkdtempSync, no nemoclaw-policy-* dir - // should exist yet. + // should be requested. it("applyPreset does not create temp dirs before the openshell resolvability check", () => { - const beforeCount = fs - .readdirSync(os.tmpdir()) - .filter((entry) => entry.startsWith("nemoclaw-policy-")).length; - let countAtExit = -1; + const policyTempPrefix = path.join(os.tmpdir(), "nemoclaw-policy-"); const resolveSpy = vi .spyOn(resolveOpenshellModule, "resolveOpenshell") .mockReturnValue(null); + const mkdtempSpy = vi.spyOn(fs, "mkdtempSync"); const errSpy = vi.spyOn(console, "error").mockImplementation(() => undefined); const logSpy = vi.spyOn(console, "log").mockImplementation(() => undefined); const exitSpy = vi.spyOn(process, "exit").mockImplementation(((_code?: number) => { - countAtExit = fs - .readdirSync(os.tmpdir()) - .filter((entry) => entry.startsWith("nemoclaw-policy-")).length; throw new Error("__test_exit__"); }) as never); @@ -1073,9 +1068,12 @@ exit 1 expect(exitSpy).toHaveBeenCalledWith(1); // No `nemoclaw-policy-*` temp dir should have been created before // the resolvability check exited. - expect(countAtExit).toBe(beforeCount); + expect( + mkdtempSpy.mock.calls.filter(([prefix]) => String(prefix).startsWith(policyTempPrefix)), + ).toEqual([]); } finally { resolveSpy.mockRestore(); + mkdtempSpy.mockRestore(); errSpy.mockRestore(); logSpy.mockRestore(); exitSpy.mockRestore(); From df83d1c879409026a8554b25a1895dd6b864d31f Mon Sep 17 00:00:00 2001 From: Carlos Villela Date: Sun, 7 Jun 2026 00:50:09 -0700 Subject: [PATCH 3/5] test(cli): remove unused test declarations --- ci/test-file-size-budget.json | 2 +- src/lib/cli/command-display-metadata.test.ts | 2 -- src/lib/dashboard-url-command.test.ts | 6 +----- test/cli-oclif-compatibility.test.ts | 1 - .../framework-tests/e2e-scenario-registry.test.ts | 2 +- test/e2e/brev-e2e.test.ts | 1 - test/gateway-state-reconcile-2276.test.ts | 2 -- test/nemoclaw-start.test.ts | 9 --------- test/sandbox-provisioning.test.ts | 3 --- test/skills-frontmatter.test.ts | 1 - 10 files changed, 3 insertions(+), 26 deletions(-) diff --git a/ci/test-file-size-budget.json b/ci/test-file-size-budget.json index abea2f688de..d9e09a4ffbf 100644 --- a/ci/test-file-size-budget.json +++ b/ci/test-file-size-budget.json @@ -8,7 +8,7 @@ "test/channels-add-preset.test.ts": 1915, "test/generate-openclaw-config.test.ts": 2106, "test/install-preflight.test.ts": 4397, - "test/nemoclaw-start.test.ts": 5319, + "test/nemoclaw-start.test.ts": 5310, "test/onboard-messaging.test.ts": 2122, "test/onboard-selection.test.ts": 7757, "test/onboard.test.ts": 4887, diff --git a/src/lib/cli/command-display-metadata.test.ts b/src/lib/cli/command-display-metadata.test.ts index 823abe99b0b..42d737a6db8 100644 --- a/src/lib/cli/command-display-metadata.test.ts +++ b/src/lib/cli/command-display-metadata.test.ts @@ -4,7 +4,6 @@ import { Config as OclifConfig } from "@oclif/core"; import { describe, expect, it } from "vitest"; -import { getRegisteredOclifCommandsMetadata } from "./oclif-metadata"; import { COMMANDS, visibleCommands } from "./command-registry"; describe("public command display metadata", () => { @@ -36,5 +35,4 @@ describe("public command display metadata", () => { expect(invalid).toEqual([]); }); - }); diff --git a/src/lib/dashboard-url-command.test.ts b/src/lib/dashboard-url-command.test.ts index 9b4701a7e49..4fab599ca27 100644 --- a/src/lib/dashboard-url-command.test.ts +++ b/src/lib/dashboard-url-command.test.ts @@ -3,11 +3,7 @@ import { describe, expect, it, vi } from "vitest"; -import { - DashboardUrlCommandError, - buildDashboardUrl, - runDashboardUrlCommand, -} from "./dashboard-url-command"; +import { buildDashboardUrl, runDashboardUrlCommand } from "./dashboard-url-command"; function makeSinks() { const out: string[] = []; diff --git a/test/cli-oclif-compatibility.test.ts b/test/cli-oclif-compatibility.test.ts index 93ba59e5ddb..b24b1e2a984 100644 --- a/test/cli-oclif-compatibility.test.ts +++ b/test/cli-oclif-compatibility.test.ts @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -import fs from "node:fs"; import { spawnSync } from "node:child_process"; import { createRequire } from "node:module"; import { afterEach, describe, expect, it, vi } from "vitest"; diff --git a/test/e2e-scenario/framework-tests/e2e-scenario-registry.test.ts b/test/e2e-scenario/framework-tests/e2e-scenario-registry.test.ts index 32b9fb2abbe..075f917cfc3 100644 --- a/test/e2e-scenario/framework-tests/e2e-scenario-registry.test.ts +++ b/test/e2e-scenario/framework-tests/e2e-scenario-registry.test.ts @@ -7,7 +7,7 @@ import path from "node:path"; import { scenario } from "../scenarios/builder.ts"; import { compileRunPlans } from "../scenarios/compiler.ts"; -import { buildScenarioRegistry, listScenarios } from "../scenarios/registry.ts"; +import { buildScenarioRegistry } from "../scenarios/registry.ts"; const REPO_ROOT = path.resolve(import.meta.dirname, "../../.."); const RUN_SCENARIOS = path.join(REPO_ROOT, "test/e2e-scenario/scenarios/run.ts"); diff --git a/test/e2e/brev-e2e.test.ts b/test/e2e/brev-e2e.test.ts index bec8462db3e..840f9a7efe2 100644 --- a/test/e2e/brev-e2e.test.ts +++ b/test/e2e/brev-e2e.test.ts @@ -52,7 +52,6 @@ import { describe, it, expect, beforeAll, afterAll } from "vitest"; import { execSync, execFileSync, spawnSync, type StdioOptions } from "node:child_process"; -import fs from "node:fs"; import path from "node:path"; // Instance configuration diff --git a/test/gateway-state-reconcile-2276.test.ts b/test/gateway-state-reconcile-2276.test.ts index 4a83b6b1da5..64e642542f3 100644 --- a/test/gateway-state-reconcile-2276.test.ts +++ b/test/gateway-state-reconcile-2276.test.ts @@ -57,8 +57,6 @@ const STATUS_MALFORMED = "??? garbage output ???"; const SANDBOX_GET_READY = "Sandbox:\n\n Id: abc\n Name: my-assistant\n Namespace: openshell\n Phase: Ready\n"; const SANDBOX_GET_NOT_FOUND = "Error: × Not Found: sandbox not found"; -const SANDBOX_GET_TRANSPORT_ERROR = - "Error: × transport error\n ╰─▶ Connection reset by peer (os error 104)"; interface ScenarioScript { // sandbox get responses, one per call (cycled / stops at last) diff --git a/test/nemoclaw-start.test.ts b/test/nemoclaw-start.test.ts index 9c383b5e025..53129834d7e 100644 --- a/test/nemoclaw-start.test.ts +++ b/test/nemoclaw-start.test.ts @@ -13,15 +13,6 @@ const APPROVAL_POLICY_DIR = path.join(import.meta.dirname, "..", "scripts", "lib const PRELOAD_SCRIPTS = path.join(import.meta.dirname, "..", "nemoclaw-blueprint", "scripts"); const JSON5_MODULE = path.join(import.meta.dirname, "..", "nemoclaw", "node_modules", "json5"); -function configureGuardBlock(src: string): string { - const start = src.indexOf("# nemoclaw-configure-guard begin"); - const end = src.indexOf("# nemoclaw-configure-guard end", start); - const endMarker = "# nemoclaw-configure-guard end"; - expect(start).toBeGreaterThan(-1); - expect(end).toBeGreaterThan(start); - return src.slice(start, end + endMarker.length); -} - function runtimeShellEnvBlock(src: string): string { const start = src.indexOf("write_runtime_shell_env() {"); const end = src.indexOf("# cleanup_on_signal", start); diff --git a/test/sandbox-provisioning.test.ts b/test/sandbox-provisioning.test.ts index 7398918c540..0c171563ed2 100644 --- a/test/sandbox-provisioning.test.ts +++ b/test/sandbox-provisioning.test.ts @@ -24,9 +24,6 @@ const DOCKERFILE_BASE = path.join(ROOT, "Dockerfile.base"); const DOCKERFILE_SANDBOX = path.join(ROOT, "test", "Dockerfile.sandbox"); const HERMES_DOCKERFILE = path.join(ROOT, "agents", "hermes", "Dockerfile"); const HERMES_DOCKERFILE_BASE = path.join(ROOT, "agents", "hermes", "Dockerfile.base"); -const HERMES_POLICY = path.join(ROOT, "agents", "hermes", "policy-additions.yaml"); -const HERMES_POLICY_PERMISSIVE = path.join(ROOT, "agents", "hermes", "policy-permissive.yaml"); -const HERMES_START = path.join(ROOT, "agents", "hermes", "start.sh"); function dockerRunCommandBetween( dockerfile: string, diff --git a/test/skills-frontmatter.test.ts b/test/skills-frontmatter.test.ts index d7943bd517e..1bcf9bd6ab5 100644 --- a/test/skills-frontmatter.test.ts +++ b/test/skills-frontmatter.test.ts @@ -44,7 +44,6 @@ describe("repo skill markdown files", () => { for (const markdownFile of generatedUserSkillFiles) { const relPath = path.relative(repoRoot, markdownFile); - const isSkill = path.basename(markdownFile) === "SKILL.md"; it(`does not include generated SPDX comments for ${relPath}`, () => { const raw = fs.readFileSync(markdownFile, "utf8"); From c990235e8d1017674291f9a20ad88458d85f56b0 Mon Sep 17 00:00:00 2001 From: Carlos Villela Date: Sun, 7 Jun 2026 00:53:07 -0700 Subject: [PATCH 4/5] chore(cli): remove unused inference helpers --- scripts/find-source-shape-tests.ts | 12 ------------ src/lib/inference/ollama/proxy.ts | 6 ------ src/lib/inference/onboard-probes.ts | 1 - 3 files changed, 19 deletions(-) diff --git a/scripts/find-source-shape-tests.ts b/scripts/find-source-shape-tests.ts index bf2b59c74a0..ad3396fae94 100755 --- a/scripts/find-source-shape-tests.ts +++ b/scripts/find-source-shape-tests.ts @@ -210,18 +210,6 @@ function isReadFileCall(node: ts.CallExpression): boolean { return false; } -function isSourceTextLikeName(name: string): boolean { - return /(src|source|text|content|body|block|snippet|heredoc|docker|script|shell|fn|lines?|matches|calls|usages)/i.test( - name, - ); -} - -function isTextDerivation(initText: string): boolean { - return /(\.indexOf\b|\.search\b|\.includes\b|\.match(All)?\b|\.slice\b|\.split\b|\.replace(All)?\b|\.trim(End)?\b|\.join\b|String\(|(?:YAML|yaml|JSON)\.parse\b|yaml\.load\b|Heredoc\b|Snippet\b|Block\b|extract[A-Z]|load[A-Z]|parse[A-Z])/.test( - initText, - ); -} - function isExecutionResultDerivation(initText: string): boolean { return /\b(?:spawnSync|execFileSync|execSync|run(?:Logged|Docker|Bash|WithLib|Embedded|Patch|Hermes|Openclaw|Daemon|Fetch|Command)\w*)\b/.test( initText, diff --git a/src/lib/inference/ollama/proxy.ts b/src/lib/inference/ollama/proxy.ts index e693be542c0..a31f2c58e21 100644 --- a/src/lib/inference/ollama/proxy.ts +++ b/src/lib/inference/ollama/proxy.ts @@ -9,7 +9,6 @@ import type { GpuInfo } from "../local"; const path = require("path"); const { spawn, spawnSync } = require("child_process"); -const http = require("http"); const { ROOT, SCRIPTS, run, runCapture, shellQuote } = require("../../runner"); const { OLLAMA_PORT, OLLAMA_PROXY_PORT } = require("../../core/ports"); const { waitForPort } = require("../../core/wait"); @@ -38,7 +37,6 @@ const { loadLocalAdapterPid, persistLocalAdapterPid, readLocalAdapterTextFile, - removeLocalAdapterFile, spawnDetachedNodeAdapter, writeLocalAdapterSecretFile, } = require("../local-adapter-lifecycle"); @@ -122,10 +120,6 @@ function loadPersistedProxyPid(): number | null { return loadLocalAdapterPid(PROXY_PID_PATH); } -function clearPersistedProxyPid(): void { - removeLocalAdapterFile(PROXY_PID_PATH); -} - // ── Process management ─────────────────────────────────────────── function isOllamaProxyProcess(pid: number | null | undefined): boolean { diff --git a/src/lib/inference/onboard-probes.ts b/src/lib/inference/onboard-probes.ts index 3272d8fd070..cef3f795146 100644 --- a/src/lib/inference/onboard-probes.ts +++ b/src/lib/inference/onboard-probes.ts @@ -15,7 +15,6 @@ const { const { isNvcfFunctionNotFoundForAccount, nvcfFunctionNotFoundMessage, - shouldForceCompletionsApi, } = require("../validation"); const { From 1ffa8a7b60fd5b05346591f2252143f9bf046cc9 Mon Sep 17 00:00:00 2001 From: Carlos Villela Date: Sun, 7 Jun 2026 00:56:15 -0700 Subject: [PATCH 5/5] chore(onboard): remove unused legacy bindings --- src/lib/onboard.ts | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/src/lib/onboard.ts b/src/lib/onboard.ts index d770c058d31..cbee766b170 100644 --- a/src/lib/onboard.ts +++ b/src/lib/onboard.ts @@ -62,9 +62,6 @@ const { createGatewayBootstrapRepairHelpers, getGatewayBootstrapRepairPlan, }: typeof import("./onboard/gateway-bootstrap") = require("./onboard/gateway-bootstrap"); -const { - verifyWebSearchInsideSandbox: verifyWebSearchInsideSandboxWithDeps, -}: typeof import("./onboard/web-search-verify") = require("./onboard/web-search-verify"); const { buildDirectGpuPolicyYaml, buildDirectSandboxGpuProofCommands, @@ -123,11 +120,10 @@ const pRetry = require("p-retry"); * Covers CSI (color, erase, cursor), OSC, and C1 two-byte escapes per ECMA-48. */ const ANSI_RE = /\x1B(?:\[[0-?]*[ -/]*[@-~]|\][^\x07]*(?:\x07|\x1B\\)|[@-_])/g; const runner: typeof import("./runner") = require("./runner"); -const { ROOT, SCRIPTS, redact, run, runShell, runCapture, runFile, shellQuote, validateName } = - runner; +const { ROOT, SCRIPTS, redact, run, runCapture, runFile, validateName } = runner; const braveProviderProfile: typeof import("./onboard/brave-provider-profile") = require("./onboard/brave-provider-profile"); const nameValidation: typeof import("./name-validation") = require("./name-validation"); -const { NAME_ALLOWED_FORMAT, getNameValidationGuidance } = nameValidation; +const { getNameValidationGuidance } = nameValidation; const docker: typeof import("./adapters/docker") = require("./adapters/docker"); const { dockerContainerInspectFormat, @@ -178,14 +174,12 @@ const localInference: typeof import("./inference/local") = require("./inference/ const { findReachableOllamaHost, resetOllamaHostCache, - getDefaultOllamaModel, getLocalProviderBaseUrl, getLocalProviderHealthCheck, getLocalProviderValidationBaseUrl, getOllamaModelOptions, getOllamaWarmupCommand, OLLAMA_HOST_DOCKER_INTERNAL, - validateOllamaModel, validateLocalProvider, } = localInference; const { @@ -227,8 +221,6 @@ const { HERMES_AUTH_METHOD_API_KEY, HERMES_AUTH_METHOD_OAUTH, HERMES_NOUS_API_KEY_CREDENTIAL_ENV, - HERMES_NOUS_API_KEY_HELP_URL, - getRequestedHermesAuthMethod, hermesAuthMethodLabel, normalizeHermesAuthMethod, } = hermesAuth; @@ -258,7 +250,6 @@ const { OLLAMA_PROXY_CREDENTIAL_ENV, VLLM_LOCAL_CREDENTIAL_ENV, getProviderLabel, - getEffectiveProviderName, getNonInteractiveProvider, getNonInteractiveModel, getSandboxInferenceConfig, @@ -270,7 +261,6 @@ const { OLLAMA_PROXY_CREDENTIAL_ENV: string; VLLM_LOCAL_CREDENTIAL_ENV: string; getProviderLabel: (key: string) => string; - getEffectiveProviderName: (key: string | null | undefined) => string | null; getNonInteractiveProvider: () => string | null; getNonInteractiveModel: (providerKey: string) => string | null; getSandboxInferenceConfig: ( @@ -285,7 +275,7 @@ const { inferenceCompat: LooseObject | null; }; }; -const { sleepSeconds, waitForHttp, waitUntil } = require("./core/wait"); +const { sleepSeconds, waitUntil } = require("./core/wait"); const platformUtils: typeof import("./platform") = require("./platform"); const { isWsl, shouldPatchCoredns } = platformUtils; const { @@ -353,7 +343,6 @@ const { exitOnSandboxGpuConfigErrors, formatSandboxGpuPassthroughNote, resolveSandboxGpuFlagFromOptions, - sandboxGpuRemediationLines, validateSandboxGpuPreflight, } = sandboxGpuPreflight; const openshellVersion: typeof import("./onboard/openshell-version") = require("./onboard/openshell-version"); @@ -473,8 +462,6 @@ const { getDockerDriverGatewayEndpoint } = dockerDriverGatewayEnv; const dockerDriverGatewayRuntimeMarker: typeof import("./onboard/docker-driver-gateway-runtime-marker") = require("./onboard/docker-driver-gateway-runtime-marker"); const gatewayBinding: typeof import("./onboard/gateway-binding") = require("./onboard/gateway-binding"); -const hostGatewayProcess: typeof import("./onboard/host-gateway-process") = - require("./onboard/host-gateway-process"); const vmDriverProcess: typeof import("./onboard/vm-driver-process") = require("./onboard/vm-driver-process"); const preflightUtils: typeof import("./onboard/preflight") = require("./onboard/preflight"); const clusterImagePatch: typeof import("./cluster-image-patch") = require("./cluster-image-patch"); @@ -572,9 +559,6 @@ const DIM = USE_COLOR ? "\x1b[2m" : ""; const RESET = USE_COLOR ? "\x1b[0m" : ""; let OPENSHELL_BIN: string | null = null; const GATEWAY_NAME = gatewayBinding.resolveGatewayName(GATEWAY_PORT); -const OPENCLAW_LAUNCH_AGENT_PLIST = "~/Library/LaunchAgents/ai.openclaw.gateway.plist"; - -const BRAVE_SEARCH_HELP_URL = "https://brave.com/search/api/"; import type { JsonObject as LooseObject, @@ -647,7 +631,6 @@ const { openshellArgv, runOpenshell, runCaptureOpenshell, - safeOpenShellArgument, getGatewayPortArg, getDockerDriverGatewayEndpointArg, } = createOpenshellCliHelpers({ @@ -708,7 +691,7 @@ const selectOnboardAgent = createSelectOnboardAgent({ }); -const { getTransportRecoveryMessage, getProbeRecovery } = validationRecovery; +const { getTransportRecoveryMessage } = validationRecovery; // Validation functions — delegated to src/lib/validation.ts const { @@ -718,7 +701,6 @@ const { validateNvidiaApiKeyValue, isSafeModelId, shouldSkipResponsesProbe, - shouldForceCompletionsApi, } = validation; // validateNvidiaApiKeyValue — see validation import above @@ -731,7 +713,6 @@ const { resolveHermesNousApiKey, stageNousApiKeyProviderEnv, ensureHermesNousApiKeyEnv, - openshellResultMessage, checkHermesProviderStoreReachable, } = hermesAuth.createHermesAuthHelpers({ isNonInteractive, @@ -959,7 +940,6 @@ function isInferenceRouteReady(provider: string, model: string): boolean { } const { - sandboxExistsInGateway, pruneStaleSandboxEntry, shouldRestoreLatestBackupOnRecreate, confirmRecreateForSelectionDrift, @@ -974,9 +954,6 @@ const { const { - validateBraveSearchApiKey, - promptBraveSearchRecovery, - promptBraveSearchApiKey, ensureValidatedBraveSearchCredential, configureWebSearch, verifyWebSearchInsideSandbox, @@ -1000,8 +977,6 @@ const { verifyOnboardInferenceSmoke, getProbeAuthMode, getValidationProbeCurlArgs, - probeOpenAiLikeEndpoint, - probeAnthropicEndpoint, } = require("./inference/onboard-probes"); const { @@ -3840,7 +3815,7 @@ async function createSandbox( type ProviderChoice = { key: string; label: string }; -const { readLiveInference, readRecordedProvider, readRecordedNimContainer, readRecordedModel } = +const { readRecordedProvider, readRecordedNimContainer, readRecordedModel } = providerRecovery.createProviderRecoveryHelpers({ parseGatewayInference, runCaptureOpenshell, @@ -6238,7 +6213,6 @@ async function onboard(opts: OnboardOptions = {}): Promise { const recordedSandboxName = session?.steps?.sandbox?.status === "complete" ? session?.sandboxName || null : null; - const resumeSandboxNameForGpu = recordedSandboxName || requestedSandboxName || null; console.log(""); console.log(` ${cliDisplayName()} Onboarding`);