diff --git a/docs/inference/declarative-agents-manifest.mdx b/docs/inference/declarative-agents-manifest.mdx index 4e65ed3633c..b91aad1f80c 100644 --- a/docs/inference/declarative-agents-manifest.mdx +++ b/docs/inference/declarative-agents-manifest.mdx @@ -169,6 +169,8 @@ Workspaces under `/sandbox/.openclaw/workspace-` are preserved across rebuil The runtime startup script provisions them on first boot rather than baking their contents. For ad-hoc per-agent edits inside an existing sandbox without a rebuild, use the in-sandbox CLI, `nemoclaw agents add|delete|list`. +To reconcile the roster against a manifest, use `nemoclaw agents apply -f `. +See [Apply to an Existing Sandbox](#apply-to-an-existing-sandbox). Use the manifest for fixed, checked-in layouts. Use the CLI passthrough for interactive work. diff --git a/docs/inference/switch-providers.mdx b/docs/inference/switch-providers.mdx index abd40c393d4..ad3a7839839 100644 --- a/docs/inference/switch-providers.mdx +++ b/docs/inference/switch-providers.mdx @@ -35,7 +35,8 @@ Run `$$nemoclaw onboard` to register the provider, then retry the switch. Pass the target provider and model together. -Pass `--sandbox ` when you do not want to use the default sandbox. +Target a non-default sandbox by name. +The `shields` commands take a positional name. `inference set` takes `--sandbox `. ```bash $$nemoclaw shields down @@ -61,10 +62,10 @@ This flag does not bypass shared-gateway compatibility checks. -## Recreate a Deep Agents Sandbox - +## Recreate a Deep Agents Sandbox + Deep Agents uses fresh sandbox recreation for provider changes. The recreation validates the provider and rewrites `/sandbox/.deepagents/config.toml` with the OpenShell route. diff --git a/test/agent-variant-docs.test.ts b/test/agent-variant-docs.test.ts index 4dfd4c713d2..68af7171bc5 100644 --- a/test/agent-variant-docs.test.ts +++ b/test/agent-variant-docs.test.ts @@ -247,6 +247,51 @@ import { AgentOnly } from "../_components/AgentGuide"; ); }); + it("lists only implemented commands in manifest iteration guidance (#7308)", () => { + const manifest = readFileSync( + new URL("../docs/inference/declarative-agents-manifest.mdx", import.meta.url), + "utf8", + ); + const rendered = renderAgentVariantPage(manifest, "openclaw", { + sourcePath: "/repo/docs/inference/declarative-agents-manifest.mdx", + }); + const iteratingStart = rendered.indexOf("## Iterating"); + const iteratingEnd = rendered.indexOf("## Apply to an Existing Sandbox", iteratingStart); + const iterating = rendered.slice(iteratingStart, iteratingEnd); + + expect(iteratingStart).toBeGreaterThanOrEqual(0); + expect(iteratingEnd).toBeGreaterThan(iteratingStart); + expect(iterating).toContain("agents add|delete|list"); + expect(iterating).toContain("agents apply -f "); + expect(iterating).not.toContain("agents show"); + }); + + it("renders provider-switch instructions for the applicable agent variants (#7309)", () => { + const source = readFileSync( + new URL("../docs/inference/switch-providers.mdx", import.meta.url), + "utf8", + ); + const render = (variant: "openclaw" | "hermes" | "deepagents") => + renderAgentVariantPage(source, variant, { + sourcePath: "/repo/docs/inference/switch-providers.mdx", + }); + const openclaw = render("openclaw"); + const hermes = render("hermes"); + const deepAgents = render("deepagents"); + const recreationHeading = "## Recreate a Deep Agents Sandbox"; + const namedSandboxSyntax = + "The `shields` commands take a positional name. `inference set` takes `--sandbox `."; + + expect(openclaw).toContain(namedSandboxSyntax); + expect(openclaw).toContain("nemoclaw shields down"); + expect(openclaw).not.toContain(recreationHeading); + expect(hermes).toContain(namedSandboxSyntax); + expect(hermes).toContain("nemohermes shields down"); + expect(hermes).not.toContain(recreationHeading); + expect(deepAgents).toContain(recreationHeading); + expect(deepAgents).not.toContain(namedSandboxSyntax); + }); + it("keeps the troubleshooting security review link within each agent guide (#6558)", () => { const troubleshooting = readFileSync( new URL("../docs/reference/troubleshooting.mdx", import.meta.url),