Download src/commands/agent-exec.configless.test.ts from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 877 Bytes
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/commands/agent-exec.configless.test.ts
- Command line
-
hf download hf://SaylorTwift/openclaw/src/commands/agent-exec.configless.test.ts
-
curl -L -o agent-exec.configless.test.ts https://huggingface.co/SaylorTwift/openclaw/resolve/main/src/commands/agent-exec.configless.test.ts
877 Bytes
| import { resolve } from "node:path"; | |
| import { describe, expect, it } from "vitest"; | |
| import { resolveRunWorkspaceDir } from "../agents/workspace-run.js"; | |
| import { buildExecRunConfig, resolveExecBaseConfig } from "./agent-exec-input.js"; | |
| describe("agent exec configless workspace ownership", () => { | |
| it.each([ | |
| { name: "environment-only auth", options: { authEnvOnly: true } }, | |
| { name: "isolated mode", options: { isolated: true } }, | |
| ])("materializes the main-agent roster for $name", async ({ options }) => { | |
| const config = buildExecRunConfig({ | |
| base: await resolveExecBaseConfig(options), | |
| cwd: "/run/here", | |
| }); | |
| expect( | |
| resolveRunWorkspaceDir({ | |
| agentId: "main", | |
| config, | |
| workspaceDir: "/run/here", | |
| }), | |
| ).toMatchObject({ | |
| agentId: "main", | |
| workspaceDir: resolve("/run/here"), | |
| }); | |
| }); | |
| }); | |