chore: sync NemoClaw agent options
Add the upstream NemoClaw Deep Agents Code sandbox option and keep managed agent create args generalized. Validated with tests, build, diff check, and local read-only runtime/API smokes.
This commit is contained in:
@@ -77,7 +77,7 @@ type NemoClawCreateCommand = {
|
||||
|
||||
type CreateInferenceMode = "auto" | "vllm" | "nim"
|
||||
type CreateGpuMode = "none" | "auto" | "required"
|
||||
type NemoClawAgent = "openclaw" | "hermes"
|
||||
type NemoClawAgent = "openclaw" | "hermes" | "langchain-deepagents-code"
|
||||
|
||||
type CreateInferenceSettings = {
|
||||
mode: CreateInferenceMode
|
||||
@@ -151,14 +151,15 @@ function nemoClawGpuArgs(mode: CreateGpuMode) {
|
||||
}
|
||||
|
||||
function nemoClawAgentArgs(agent: NemoClawAgent) {
|
||||
return agent === "hermes" ? ["--agent", "hermes"] : []
|
||||
return agent === "openclaw" ? [] : ["--agent", agent]
|
||||
}
|
||||
|
||||
function isNemoClawOnboardBlueprint(blueprint: string) {
|
||||
return blueprint === "nemoclaw-blueprint" || blueprint === "nemoclaw-hermes"
|
||||
return blueprint === "nemoclaw-blueprint" || blueprint === "nemoclaw-hermes" || blueprint === "nemoclaw-deepagents-code"
|
||||
}
|
||||
|
||||
function nemoClawAgentForBlueprint(blueprint: string): NemoClawAgent {
|
||||
if (blueprint === "nemoclaw-deepagents-code") return "langchain-deepagents-code"
|
||||
return blueprint === "nemoclaw-hermes" ? "hermes" : "openclaw"
|
||||
}
|
||||
|
||||
@@ -180,8 +181,8 @@ function buildNemoClawCreateCommand(gpuMode: CreateGpuMode, agent: NemoClawAgent
|
||||
? { file: NODE_BIN, args: [NEMOCLAW_BIN, ...args], mode: "cli-onboard" }
|
||||
: { file: NEMOCLAW_BIN, args, mode: "cli-onboard" }
|
||||
}
|
||||
if (agent === "hermes") {
|
||||
throw new Error("Hermes sandbox creation requires the current NemoClaw CLI with --agent hermes support. Set NEMOCLAW_BIN in .env.local.")
|
||||
if (agent !== "openclaw") {
|
||||
throw new Error(`${agent} sandbox creation requires the current NemoClaw CLI with --agent support. Set NEMOCLAW_BIN in .env.local.`)
|
||||
}
|
||||
if (NEMOCLAW_SETUP && commandExists(NEMOCLAW_SETUP)) {
|
||||
return { file: "/bin/bash", args: [NEMOCLAW_SETUP], mode: "legacy-setup" }
|
||||
@@ -732,6 +733,14 @@ export async function GET() {
|
||||
source: "~/NemoClaw/agents/hermes/Dockerfile",
|
||||
supportsTailscale: false,
|
||||
},
|
||||
{
|
||||
id: "nemoclaw-deepagents-code",
|
||||
label: "Fresh Deep Agents Code Sandbox",
|
||||
description: "Bootstraps LangChain Deep Agents Code using NemoClaw's terminal-agent workflow.",
|
||||
type: "blueprint",
|
||||
source: "~/NemoClaw/agents/langchain-deepagents-code/manifest.yaml",
|
||||
supportsTailscale: false,
|
||||
},
|
||||
{
|
||||
id: "custom-sandbox",
|
||||
label: "New Custom Sandbox",
|
||||
|
||||
@@ -128,7 +128,7 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre
|
||||
const assembledPolicy = useMemo(() => ({ ...policy, network_policies: blocksToPolicy(blocks) }), [policy, blocks])
|
||||
const activePreset = selectedPreset ? getSecurityPreset(selectedPreset) : null
|
||||
const activeBlueprint = blueprints.find((bp) => bp.id === selectedBlueprint)
|
||||
const isNemoClawOnboardBlueprint = selectedBlueprint === 'nemoclaw-blueprint' || selectedBlueprint === 'nemoclaw-hermes'
|
||||
const isNemoClawOnboardBlueprint = selectedBlueprint === 'nemoclaw-blueprint' || selectedBlueprint === 'nemoclaw-hermes' || selectedBlueprint === 'nemoclaw-deepagents-code'
|
||||
|
||||
function applyPreset(presetId: SecurityPresetId) {
|
||||
const preset = getSecurityPreset(presetId); if (!preset) return
|
||||
@@ -219,7 +219,7 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre
|
||||
</div>
|
||||
<div>
|
||||
<label className="text-xs uppercase tracking-wider text-[var(--foreground-dim)]">Sandbox Name<FieldHelp text="Lowercase letters, numbers, and hyphens only." /></label>
|
||||
<input value={sandboxName} onChange={(e) => setSandboxName(e.target.value)} placeholder={selectedBlueprint === 'nemoclaw-hermes' ? 'my-hermes' : selectedBlueprint === 'nemoclaw-blueprint' ? 'my-assistant' : selectedBlueprint === 'redeploy-image' ? 'my-assistant-copy' : 'custom-sandbox'} className="mt-2 w-full rounded-sm border border-[var(--border-subtle)] bg-[var(--background)] px-3 py-2 text-xs font-mono text-[var(--foreground)]" />
|
||||
<input value={sandboxName} onChange={(e) => setSandboxName(e.target.value)} placeholder={selectedBlueprint === 'nemoclaw-hermes' ? 'my-hermes' : selectedBlueprint === 'nemoclaw-deepagents-code' ? 'my-deepagents-code' : selectedBlueprint === 'nemoclaw-blueprint' ? 'my-assistant' : selectedBlueprint === 'redeploy-image' ? 'my-assistant-copy' : 'custom-sandbox'} className="mt-2 w-full rounded-sm border border-[var(--border-subtle)] bg-[var(--background)] px-3 py-2 text-xs font-mono text-[var(--foreground)]" />
|
||||
</div>
|
||||
<div className="rounded-sm border border-[var(--border-subtle)] bg-[var(--background)] p-4 space-y-4">
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user