feat(11-05): add mode parameter to spawnAgent procedure

- Update spawnAgentInputSchema to include optional mode field
- Pass mode through to agentManager.spawn() for mode-aware spawning
This commit is contained in:
Lukas May
2026-01-31 19:15:09 +01:00
parent 7abbfb4da1
commit 4843b95a7c

View File

@@ -103,6 +103,8 @@ export const spawnAgentInputSchema = z.object({
prompt: z.string().min(1),
/** Optional working directory (defaults to worktree path) */
cwd: z.string().optional(),
/** Agent operation mode (defaults to 'execute') */
mode: z.enum(['execute', 'discuss', 'breakdown']).optional(),
});
export type SpawnAgentInput = z.infer<typeof spawnAgentInputSchema>;
@@ -355,6 +357,7 @@ export const appRouter = router({
taskId: input.taskId,
prompt: input.prompt,
cwd: input.cwd,
mode: input.mode,
});
}),