e2dc801d44
Shared the bundled task prewalk default between runtime execution and the Agent Control Center. Added dashboard regression coverage for task.prewalk. Fixes #6306
7 lines
364 B
TypeScript
7 lines
364 B
TypeScript
import type { AgentDefinition } from "./types";
|
|
|
|
/** Resolve an agent's prewalk default, including the bundled task opt-in. */
|
|
export function resolveAgentPrewalkDefault(agent: AgentDefinition, taskPrewalk: boolean): boolean | string | undefined {
|
|
return agent.prewalk ?? (taskPrewalk && agent.source === "bundled" && agent.name === "task" ? true : undefined);
|
|
}
|