feat(DIS-106): RunResult discriminated union replaces Promise<string> #51

Merged
dev merged 2 commits from phase-1/runner-api-runresult into main 2026-04-10 08:26:15 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit a1a0c80acc - Show all commits

View file

@ -4,7 +4,7 @@ export const DisclawConfigSchema = z.object({
workspaces_root: z.string().min(1),
management_channel: z.string().min(1).default("disclaw"),
claude_command: z.string().min(1).default("claude"),
claude_timeout_seconds: z.number().int().positive().default(120),
claude_timeout_seconds: z.number().positive().default(120),
max_concurrent_agents: z.number().int().positive().default(4),
env_blocklist: z.array(z.string()).default([]),
});

View file

@ -207,7 +207,7 @@ describe("RunResult discriminated union", () => {
const configPath = path.join(workspaceDir, "disclaw.yaml");
fs.writeFileSync(
configPath,
`workspace_root: /tmp\nmanagement_channel: disclaw\nclaude_command: claude\nclaude_timeout_seconds: 0.05\nmax_concurrent_agents: 4\nenv_blocklist: []\n`,
`workspaces_root: /tmp\nmanagement_channel: disclaw\nclaude_command: claude\nclaude_timeout_seconds: 0.05\nmax_concurrent_agents: 4\nenv_blocklist: []\n`,
"utf-8"
);
@ -253,7 +253,7 @@ describe("RunResult discriminated union", () => {
try {
fs.writeFileSync(
projectConfig,
`workspace_root: /tmp\nmanagement_channel: disclaw\nclaude_command: claude\nclaude_timeout_seconds: 0.05\nmax_concurrent_agents: 4\nenv_blocklist: []\n`,
`workspaces_root: /tmp\nmanagement_channel: disclaw\nclaude_command: claude\nclaude_timeout_seconds: 0.05\nmax_concurrent_agents: 4\nenv_blocklist: []\n`,
"utf-8"
);