chore: sync NemoClaw provider onboarding
Sync create-time NemoClaw provider onboarding with upstream custom endpoint and hosted NVIDIA credential contracts.
This commit is contained in:
@@ -258,7 +258,8 @@ The UI supports per-sandbox route profiles and can apply them live to OpenClaw w
|
|||||||
Supported provider categories in the UI:
|
Supported provider categories in the UI:
|
||||||
|
|
||||||
- Ollama
|
- Ollama
|
||||||
- NVIDIA NIM
|
- NVIDIA hosted API with `nvapi-*` credentials through NemoClaw's `build` provider
|
||||||
|
- OpenAI-compatible NVIDIA/enterprise inference endpoints through NemoClaw's `custom` provider with `NEMOCLAW_ENDPOINT_URL`, `COMPATIBLE_API_KEY`, and `NEMOCLAW_PROVIDER_KEY`
|
||||||
- vLLM
|
- vLLM
|
||||||
- external HTTP-compatible endpoints
|
- external HTTP-compatible endpoints
|
||||||
|
|
||||||
|
|||||||
@@ -75,13 +75,14 @@ type NemoClawCreateCommand = {
|
|||||||
mode: "cli-onboard" | "legacy-setup"
|
mode: "cli-onboard" | "legacy-setup"
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateInferenceMode = "auto" | "vllm" | "nim"
|
type CreateInferenceMode = "auto" | "vllm" | "nvidia" | "compatible" | "nim"
|
||||||
type CreateGpuMode = "none" | "auto" | "required"
|
type CreateGpuMode = "none" | "auto" | "required"
|
||||||
type NemoClawAgent = "openclaw" | "hermes" | "langchain-deepagents-code"
|
type NemoClawAgent = "openclaw" | "hermes" | "langchain-deepagents-code"
|
||||||
|
|
||||||
type CreateInferenceSettings = {
|
type CreateInferenceSettings = {
|
||||||
mode: CreateInferenceMode
|
mode: CreateInferenceMode
|
||||||
model: string
|
model: string
|
||||||
|
endpointUrl: string
|
||||||
hasApiKey: boolean
|
hasApiKey: boolean
|
||||||
envSummary: string[]
|
envSummary: string[]
|
||||||
}
|
}
|
||||||
@@ -101,21 +102,45 @@ function parseCreateGpuMode(body: any): CreateGpuMode {
|
|||||||
function parseCreateInferenceSettings(body: any): CreateInferenceSettings {
|
function parseCreateInferenceSettings(body: any): CreateInferenceSettings {
|
||||||
const raw = body?.createInference && typeof body.createInference === "object" ? body.createInference : {}
|
const raw = body?.createInference && typeof body.createInference === "object" ? body.createInference : {}
|
||||||
const requestedMode = typeof raw.mode === "string" ? raw.mode : "vllm"
|
const requestedMode = typeof raw.mode === "string" ? raw.mode : "vllm"
|
||||||
const mode: CreateInferenceMode = requestedMode === "vllm" || requestedMode === "nim" ? requestedMode : "auto"
|
const mode: CreateInferenceMode = requestedMode === "vllm" || requestedMode === "nvidia" || requestedMode === "compatible" || requestedMode === "nim" ? requestedMode : "auto"
|
||||||
const model = typeof raw.model === "string" ? raw.model.trim() : ""
|
const model = typeof raw.model === "string" ? raw.model.trim() : ""
|
||||||
|
const endpointUrl = typeof raw.endpointUrl === "string" ? raw.endpointUrl.trim() : ""
|
||||||
const apiKey = typeof raw.apiKey === "string" ? raw.apiKey.trim() : ""
|
const apiKey = typeof raw.apiKey === "string" ? raw.apiKey.trim() : ""
|
||||||
|
|
||||||
return {
|
return {
|
||||||
mode,
|
mode: mode === "nim" ? "nvidia" : mode,
|
||||||
model,
|
model,
|
||||||
|
endpointUrl,
|
||||||
hasApiKey: Boolean(apiKey),
|
hasApiKey: Boolean(apiKey),
|
||||||
envSummary: [],
|
envSummary: [],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isNvapiKey(apiKey: string) {
|
||||||
|
return /^nvapi-/i.test(apiKey)
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyCompatibleEndpointEnv(env: NodeJS.ProcessEnv, settings: CreateInferenceSettings, apiKey: string) {
|
||||||
|
if (!settings.endpointUrl) {
|
||||||
|
throw new Error("OpenAI-compatible NemoClaw onboarding requires an endpoint URL (NEMOCLAW_ENDPOINT_URL).")
|
||||||
|
}
|
||||||
|
env.NEMOCLAW_PROVIDER = "custom"
|
||||||
|
env.NEMOCLAW_ENDPOINT_URL = settings.endpointUrl
|
||||||
|
env.COMPATIBLE_API_KEY = apiKey || "dummy"
|
||||||
|
env.NEMOCLAW_PROVIDER_KEY = env.COMPATIBLE_API_KEY
|
||||||
|
settings.envSummary.push(
|
||||||
|
"NEMOCLAW_PROVIDER=custom",
|
||||||
|
"NEMOCLAW_ENDPOINT_URL=<provided>",
|
||||||
|
apiKey ? "COMPATIBLE_API_KEY=<provided>" : "COMPATIBLE_API_KEY=<dummy-no-auth>",
|
||||||
|
apiKey ? "NEMOCLAW_PROVIDER_KEY=<provided>" : "NEMOCLAW_PROVIDER_KEY=<dummy-no-auth>",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
function applyCreateInferenceEnv(env: NodeJS.ProcessEnv, settings: CreateInferenceSettings, body: any) {
|
function applyCreateInferenceEnv(env: NodeJS.ProcessEnv, settings: CreateInferenceSettings, body: any) {
|
||||||
if (settings.mode === "auto") return settings
|
if (settings.mode === "auto") return settings
|
||||||
|
|
||||||
|
const apiKey = typeof body?.createInference?.apiKey === "string" ? body.createInference.apiKey.trim() : ""
|
||||||
|
|
||||||
env.NEMOCLAW_EXPERIMENTAL = "1"
|
env.NEMOCLAW_EXPERIMENTAL = "1"
|
||||||
settings.envSummary.push("NEMOCLAW_EXPERIMENTAL=1")
|
settings.envSummary.push("NEMOCLAW_EXPERIMENTAL=1")
|
||||||
|
|
||||||
@@ -124,10 +149,32 @@ function applyCreateInferenceEnv(env: NodeJS.ProcessEnv, settings: CreateInferen
|
|||||||
settings.envSummary.push("NEMOCLAW_PROVIDER=vllm")
|
settings.envSummary.push("NEMOCLAW_PROVIDER=vllm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (settings.mode === "nvidia") {
|
||||||
|
if (apiKey && !isNvapiKey(apiKey)) {
|
||||||
|
if (settings.endpointUrl) {
|
||||||
|
applyCompatibleEndpointEnv(env, settings, apiKey)
|
||||||
|
} else {
|
||||||
|
throw new Error("Hosted NVIDIA Build onboarding requires an nvapi-* NVIDIA API key. For OpenAI-compatible NVIDIA inference keys, select the OpenAI-compatible endpoint mode and provide NEMOCLAW_ENDPOINT_URL.")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
env.NEMOCLAW_PROVIDER = "build"
|
||||||
|
settings.envSummary.push("NEMOCLAW_PROVIDER=build")
|
||||||
|
if (apiKey) {
|
||||||
|
env.NVIDIA_INFERENCE_API_KEY = apiKey
|
||||||
|
env.NVIDIA_API_KEY = apiKey
|
||||||
|
env.NEMOCLAW_PROVIDER_KEY = apiKey
|
||||||
|
settings.envSummary.push("NVIDIA_INFERENCE_API_KEY=<provided>", "NVIDIA_API_KEY=<legacy-alias>", "NEMOCLAW_PROVIDER_KEY=<provided>")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.mode === "compatible") {
|
||||||
|
applyCompatibleEndpointEnv(env, settings, apiKey)
|
||||||
|
}
|
||||||
|
|
||||||
if (settings.mode === "nim") {
|
if (settings.mode === "nim") {
|
||||||
env.NEMOCLAW_PROVIDER = "nim-local"
|
env.NEMOCLAW_PROVIDER = "nim-local"
|
||||||
settings.envSummary.push("NEMOCLAW_PROVIDER=nim-local")
|
settings.envSummary.push("NEMOCLAW_PROVIDER=nim-local")
|
||||||
const apiKey = typeof body?.createInference?.apiKey === "string" ? body.createInference.apiKey.trim() : ""
|
|
||||||
if (apiKey) {
|
if (apiKey) {
|
||||||
env.NVIDIA_INFERENCE_API_KEY = apiKey
|
env.NVIDIA_INFERENCE_API_KEY = apiKey
|
||||||
env.NVIDIA_API_KEY = apiKey
|
env.NVIDIA_API_KEY = apiKey
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ type EndpointProtocol = "" | "rest"
|
|||||||
type EndpointTls = "" | "terminate" | "passthrough"
|
type EndpointTls = "" | "terminate" | "passthrough"
|
||||||
type EndpointEnforcement = "" | "enforce" | "audit"
|
type EndpointEnforcement = "" | "enforce" | "audit"
|
||||||
type EndpointAccess = "" | "read-only" | "read-write" | "full"
|
type EndpointAccess = "" | "read-only" | "read-write" | "full"
|
||||||
type CreateInferenceMode = "auto" | "vllm" | "nim"
|
type CreateInferenceMode = "auto" | "vllm" | "nvidia" | "compatible"
|
||||||
type CreateGpuMode = "none" | "auto" | "required"
|
type CreateGpuMode = "none" | "auto" | "required"
|
||||||
|
|
||||||
interface NetworkRule { method: string; path: string }
|
interface NetworkRule { method: string; path: string }
|
||||||
@@ -92,6 +92,7 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre
|
|||||||
const [createGpuMode, setCreateGpuMode] = useState<CreateGpuMode>("none")
|
const [createGpuMode, setCreateGpuMode] = useState<CreateGpuMode>("none")
|
||||||
const [createInferenceMode, setCreateInferenceMode] = useState<CreateInferenceMode>("vllm")
|
const [createInferenceMode, setCreateInferenceMode] = useState<CreateInferenceMode>("vllm")
|
||||||
const [createInferenceModel, setCreateInferenceModel] = useState<string>("")
|
const [createInferenceModel, setCreateInferenceModel] = useState<string>("")
|
||||||
|
const [createInferenceEndpointUrl, setCreateInferenceEndpointUrl] = useState<string>("")
|
||||||
const [createNvidiaApiKey, setCreateNvidiaApiKey] = useState<string>("")
|
const [createNvidiaApiKey, setCreateNvidiaApiKey] = useState<string>("")
|
||||||
const [restoreFromBackup, setRestoreFromBackup] = useState<boolean>(false)
|
const [restoreFromBackup, setRestoreFromBackup] = useState<boolean>(false)
|
||||||
const [restoreArchive, setRestoreArchive] = useState<File | null>(null)
|
const [restoreArchive, setRestoreArchive] = useState<File | null>(null)
|
||||||
@@ -144,7 +145,8 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre
|
|||||||
const createInference = {
|
const createInference = {
|
||||||
mode: createInferenceMode,
|
mode: createInferenceMode,
|
||||||
model: createInferenceModel.trim(),
|
model: createInferenceModel.trim(),
|
||||||
apiKey: createInferenceMode === 'nim' ? createNvidiaApiKey.trim() : '',
|
endpointUrl: createInferenceEndpointUrl.trim(),
|
||||||
|
apiKey: (createInferenceMode === 'nvidia' || createInferenceMode === 'compatible') ? createNvidiaApiKey.trim() : '',
|
||||||
}
|
}
|
||||||
const res = await fetch('/api/sandbox/create', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ blueprint: selectedBlueprint, sandboxName: sandboxName.trim(), enableTailscale, gpuMode: createGpuMode, createInference, policy: assembledPolicy, preset: selectedPreset || null }) })
|
const res = await fetch('/api/sandbox/create', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ blueprint: selectedBlueprint, sandboxName: sandboxName.trim(), enableTailscale, gpuMode: createGpuMode, createInference, policy: assembledPolicy, preset: selectedPreset || null }) })
|
||||||
const data = await res.json()
|
const data = await res.json()
|
||||||
@@ -257,7 +259,7 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre
|
|||||||
<h6 className="text-xs font-semibold uppercase tracking-wider text-[var(--foreground)]">Inference at Create</h6>
|
<h6 className="text-xs font-semibold uppercase tracking-wider text-[var(--foreground)]">Inference at Create</h6>
|
||||||
<p className="mt-1 text-xs text-[var(--foreground-dim)]">Choose the provider NemoClaw should use while onboarding this sandbox.</p>
|
<p className="mt-1 text-xs text-[var(--foreground-dim)]">Choose the provider NemoClaw should use while onboarding this sandbox.</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-1 gap-3 md:grid-cols-3">
|
<div className="grid grid-cols-1 gap-3 md:grid-cols-4">
|
||||||
<label className={`flex items-start gap-3 rounded-sm border p-3 text-sm text-[var(--foreground)] ${createInferenceMode === 'auto' ? 'border-[var(--nvidia-green)] bg-[rgba(118,185,0,0.08)]' : 'border-[var(--border-subtle)] bg-[var(--background-tertiary)]'}`}>
|
<label className={`flex items-start gap-3 rounded-sm border p-3 text-sm text-[var(--foreground)] ${createInferenceMode === 'auto' ? 'border-[var(--nvidia-green)] bg-[rgba(118,185,0,0.08)]' : 'border-[var(--border-subtle)] bg-[var(--background-tertiary)]'}`}>
|
||||||
<input type="checkbox" checked={createInferenceMode === 'auto'} onChange={() => setCreateInferenceMode('auto')} className="mt-0.5 h-4 w-4 accent-[var(--nvidia-green)]" />
|
<input type="checkbox" checked={createInferenceMode === 'auto'} onChange={() => setCreateInferenceMode('auto')} className="mt-0.5 h-4 w-4 accent-[var(--nvidia-green)]" />
|
||||||
<span><span className="block text-xs font-mono uppercase tracking-wider">Auto</span><span className="mt-1 block text-[11px] text-[var(--foreground-dim)]">Let NemoClaw choose.</span></span>
|
<span><span className="block text-xs font-mono uppercase tracking-wider">Auto</span><span className="mt-1 block text-[11px] text-[var(--foreground-dim)]">Let NemoClaw choose.</span></span>
|
||||||
@@ -266,9 +268,13 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre
|
|||||||
<input type="checkbox" checked={createInferenceMode === 'vllm'} onChange={() => setCreateInferenceMode('vllm')} className="mt-0.5 h-4 w-4 accent-[var(--nvidia-green)]" />
|
<input type="checkbox" checked={createInferenceMode === 'vllm'} onChange={() => setCreateInferenceMode('vllm')} className="mt-0.5 h-4 w-4 accent-[var(--nvidia-green)]" />
|
||||||
<span><span className="block text-xs font-mono uppercase tracking-wider">Use vLLM in experimental mode</span><span className="mt-1 block text-[11px] text-[var(--foreground-dim)]">Sets NEMOCLAW_EXPERIMENTAL and vLLM.</span></span>
|
<span><span className="block text-xs font-mono uppercase tracking-wider">Use vLLM in experimental mode</span><span className="mt-1 block text-[11px] text-[var(--foreground-dim)]">Sets NEMOCLAW_EXPERIMENTAL and vLLM.</span></span>
|
||||||
</label>
|
</label>
|
||||||
<label className={`flex items-start gap-3 rounded-sm border p-3 text-sm text-[var(--foreground)] ${createInferenceMode === 'nim' ? 'border-[var(--nvidia-green)] bg-[rgba(118,185,0,0.08)]' : 'border-[var(--border-subtle)] bg-[var(--background-tertiary)]'}`}>
|
<label className={`flex items-start gap-3 rounded-sm border p-3 text-sm text-[var(--foreground)] ${createInferenceMode === 'nvidia' ? 'border-[var(--nvidia-green)] bg-[rgba(118,185,0,0.08)]' : 'border-[var(--border-subtle)] bg-[var(--background-tertiary)]'}`}>
|
||||||
<input type="checkbox" checked={createInferenceMode === 'nim'} onChange={() => setCreateInferenceMode('nim')} className="mt-0.5 h-4 w-4 accent-[var(--nvidia-green)]" />
|
<input type="checkbox" checked={createInferenceMode === 'nvidia'} onChange={() => setCreateInferenceMode('nvidia')} className="mt-0.5 h-4 w-4 accent-[var(--nvidia-green)]" />
|
||||||
<span><span className="block text-xs font-mono uppercase tracking-wider">Use NVIDIA NIM</span><span className="mt-1 block text-[11px] text-[var(--foreground-dim)]">Uses the experimental local NIM provider.</span></span>
|
<span><span className="block text-xs font-mono uppercase tracking-wider">NVIDIA hosted API</span><span className="mt-1 block text-[11px] text-[var(--foreground-dim)]">Uses NemoClaw build provider and requires an nvapi-* key.</span></span>
|
||||||
|
</label>
|
||||||
|
<label className={`flex items-start gap-3 rounded-sm border p-3 text-sm text-[var(--foreground)] ${createInferenceMode === 'compatible' ? 'border-[var(--nvidia-green)] bg-[rgba(118,185,0,0.08)]' : 'border-[var(--border-subtle)] bg-[var(--background-tertiary)]'}`}>
|
||||||
|
<input type="checkbox" checked={createInferenceMode === 'compatible'} onChange={() => setCreateInferenceMode('compatible')} className="mt-0.5 h-4 w-4 accent-[var(--nvidia-green)]" />
|
||||||
|
<span><span className="block text-xs font-mono uppercase tracking-wider">OpenAI-compatible endpoint</span><span className="mt-1 block text-[11px] text-[var(--foreground-dim)]">Sets NEMOCLAW_PROVIDER=custom, endpoint URL, and compatible API key.</span></span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
{createInferenceMode !== 'auto' && (
|
{createInferenceMode !== 'auto' && (
|
||||||
@@ -277,10 +283,16 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre
|
|||||||
<label className="text-[10px] uppercase tracking-wider text-[var(--foreground-dim)]">Model</label>
|
<label className="text-[10px] uppercase tracking-wider text-[var(--foreground-dim)]">Model</label>
|
||||||
<input value={createInferenceModel} onChange={(e) => setCreateInferenceModel(e.target.value)} placeholder={createInferenceMode === 'vllm' ? 'auto-detect from vLLM' : 'model name'} className="w-full rounded-sm border border-[var(--border-subtle)] bg-[var(--background-tertiary)] px-3 py-2 text-xs font-mono text-[var(--foreground)]" />
|
<input value={createInferenceModel} onChange={(e) => setCreateInferenceModel(e.target.value)} placeholder={createInferenceMode === 'vllm' ? 'auto-detect from vLLM' : 'model name'} className="w-full rounded-sm border border-[var(--border-subtle)] bg-[var(--background-tertiary)] px-3 py-2 text-xs font-mono text-[var(--foreground)]" />
|
||||||
</div>
|
</div>
|
||||||
{createInferenceMode === 'nim' && (
|
{createInferenceMode === 'compatible' && (
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label className="text-[10px] uppercase tracking-wider text-[var(--foreground-dim)]">NVIDIA API Key</label>
|
<label className="text-[10px] uppercase tracking-wider text-[var(--foreground-dim)]">Endpoint URL</label>
|
||||||
<input type="password" value={createNvidiaApiKey} onChange={(e) => setCreateNvidiaApiKey(e.target.value)} placeholder="nvapi-..." className="w-full rounded-sm border border-[var(--border-subtle)] bg-[var(--background-tertiary)] px-3 py-2 text-xs font-mono text-[var(--foreground)]" />
|
<input value={createInferenceEndpointUrl} onChange={(e) => setCreateInferenceEndpointUrl(e.target.value)} placeholder="https://integrate.api.nvidia.com/v1" className="w-full rounded-sm border border-[var(--border-subtle)] bg-[var(--background-tertiary)] px-3 py-2 text-xs font-mono text-[var(--foreground)]" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{(createInferenceMode === 'nvidia' || createInferenceMode === 'compatible') && (
|
||||||
|
<div className="space-y-2">
|
||||||
|
<label className="text-[10px] uppercase tracking-wider text-[var(--foreground-dim)]">Provider API Key</label>
|
||||||
|
<input type="password" value={createNvidiaApiKey} onChange={(e) => setCreateNvidiaApiKey(e.target.value)} placeholder={createInferenceMode === 'nvidia' ? 'nvapi-...' : 'endpoint token or blank for no auth'} className="w-full rounded-sm border border-[var(--border-subtle)] bg-[var(--background-tertiary)] px-3 py-2 text-xs font-mono text-[var(--foreground)]" />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -114,8 +114,12 @@ assert.match(createRouteSource, /createAttempt\.readyVerification\?\.verified[\s
|
|||||||
assert.match(createRouteSource, /const requestedMode = typeof raw\.mode === "string" \? raw\.mode : "vllm"/, 'blueprint create must default to vLLM experimental onboarding when the UI payload is absent')
|
assert.match(createRouteSource, /const requestedMode = typeof raw\.mode === "string" \? raw\.mode : "vllm"/, 'blueprint create must default to vLLM experimental onboarding when the UI payload is absent')
|
||||||
assert.match(createRouteSource, /NEMOCLAW_EXPERIMENTAL = "1"/, 'blueprint create must support NemoClaw experimental provider onboarding')
|
assert.match(createRouteSource, /NEMOCLAW_EXPERIMENTAL = "1"/, 'blueprint create must support NemoClaw experimental provider onboarding')
|
||||||
assert.match(createRouteSource, /NEMOCLAW_PROVIDER = "vllm"/, 'blueprint create must support the vLLM onboarding provider')
|
assert.match(createRouteSource, /NEMOCLAW_PROVIDER = "vllm"/, 'blueprint create must support the vLLM onboarding provider')
|
||||||
assert.match(createRouteSource, /NEMOCLAW_PROVIDER = "nim-local"/, 'blueprint create must support the NVIDIA NIM onboarding provider')
|
assert.match(createRouteSource, /NEMOCLAW_PROVIDER = "build"/, 'blueprint create must use NemoClaw build provider only for nvapi-* NVIDIA API keys')
|
||||||
assert.match(createRouteSource, /NEMOCLAW_PROVIDER_KEY = apiKey/, 'blueprint create must pass NVIDIA API keys through provider env without changing NemoClaw')
|
assert.match(createRouteSource, /NEMOCLAW_PROVIDER = "custom"/, 'blueprint create must support OpenAI-compatible endpoint onboarding')
|
||||||
|
assert.match(createRouteSource, /NEMOCLAW_ENDPOINT_URL = settings\.endpointUrl/, 'OpenAI-compatible onboarding must pass the NemoClaw endpoint URL')
|
||||||
|
assert.match(createRouteSource, /COMPATIBLE_API_KEY = apiKey \|\| "dummy"/, 'OpenAI-compatible onboarding must pass COMPATIBLE_API_KEY or a no-auth placeholder')
|
||||||
|
assert.match(createRouteSource, /NEMOCLAW_PROVIDER_KEY = env\.COMPATIBLE_API_KEY/, 'OpenAI-compatible onboarding must bridge the provider key without printing secrets')
|
||||||
|
assert.match(createRouteSource, /Hosted NVIDIA Build onboarding requires an nvapi-\*/, 'blueprint create must reject non-nvapi keys for the hosted NVIDIA build provider')
|
||||||
assert.match(versionedInstallerSource, /OPENSHELL_VERSION="\$\{OPENSHELL_VERSION:-v0\.0\.44\}"/, 'versioned installer must default to the OpenShell release supported by current NemoClaw main')
|
assert.match(versionedInstallerSource, /OPENSHELL_VERSION="\$\{OPENSHELL_VERSION:-v0\.0\.44\}"/, 'versioned installer must default to the OpenShell release supported by current NemoClaw main')
|
||||||
assert.match(versionedInstallerSource, /NEMOCLAW_INSTALL_REF="\$\{NEMOCLAW_INSTALL_REF:-\$\{NEMOCLAW_INSTALL_TAG:-main\}\}"/, 'versioned installer must track the current NemoClaw main ref by default while preserving the legacy tag override')
|
assert.match(versionedInstallerSource, /NEMOCLAW_INSTALL_REF="\$\{NEMOCLAW_INSTALL_REF:-\$\{NEMOCLAW_INSTALL_TAG:-main\}\}"/, 'versioned installer must track the current NemoClaw main ref by default while preserving the legacy tag override')
|
||||||
assert.match(versionedInstallerSource, /OPENCLAW_VERSION="\$\{OPENCLAW_VERSION:-2026\.5\.27\}"/, 'versioned installer must pin the current NemoClaw-compatible OpenClaw base image version')
|
assert.match(versionedInstallerSource, /OPENCLAW_VERSION="\$\{OPENCLAW_VERSION:-2026\.5\.27\}"/, 'versioned installer must pin the current NemoClaw-compatible OpenClaw base image version')
|
||||||
@@ -320,7 +324,9 @@ assert.match(
|
|||||||
assert.doesNotMatch(pageSource, /console\.log\('Destroying sandbox:'/, 'destroy workflow must not be a UI-only placeholder')
|
assert.doesNotMatch(pageSource, /console\.log\('Destroying sandbox:'/, 'destroy workflow must not be a UI-only placeholder')
|
||||||
assert.doesNotMatch(configPanelSource, /onInventoryRefresh/, 'create panel must leave post-create inventory orchestration to the parent')
|
assert.doesNotMatch(configPanelSource, /onInventoryRefresh/, 'create panel must leave post-create inventory orchestration to the parent')
|
||||||
assert.match(configPanelSource, /Use vLLM in experimental mode/, 'create panel must expose vLLM experimental onboarding')
|
assert.match(configPanelSource, /Use vLLM in experimental mode/, 'create panel must expose vLLM experimental onboarding')
|
||||||
assert.match(configPanelSource, /Use NVIDIA NIM/, 'create panel must expose NVIDIA NIM onboarding')
|
assert.match(configPanelSource, /NVIDIA hosted API/, 'create panel must expose hosted NVIDIA API onboarding')
|
||||||
|
assert.match(configPanelSource, /OpenAI-compatible endpoint/, 'create panel must expose custom OpenAI-compatible endpoint onboarding')
|
||||||
|
assert.match(configPanelSource, /createInferenceEndpointUrl/, 'create panel must send NEMOCLAW_ENDPOINT_URL for compatible endpoint onboarding')
|
||||||
assert.match(configPanelSource, /type CreateGpuMode = "none" \| "auto" \| "required"/, 'create panel must expose explicit GPU passthrough modes')
|
assert.match(configPanelSource, /type CreateGpuMode = "none" \| "auto" \| "required"/, 'create panel must expose explicit GPU passthrough modes')
|
||||||
assert.match(configPanelSource, /gpuMode: createGpuMode/, 'create panel must send the selected GPU mode to the create API')
|
assert.match(configPanelSource, /gpuMode: createGpuMode/, 'create panel must send the selected GPU mode to the create API')
|
||||||
assert.match(configPanelSource, /Require GPU/, 'create panel must let operators require GPU passthrough')
|
assert.match(configPanelSource, /Require GPU/, 'create panel must let operators require GPU passthrough')
|
||||||
|
|||||||
Reference in New Issue
Block a user