/** * The "how work runs" step of `aidlc init`: how implementation tasks run in this * repo, then whether to set up autopilot now (init-sets-work-mode/AC-1..AC-12). * * A sibling of `collectInteractiveAnswers`, called right after it, rather than more * questions inside it. The project questions and their tests stay as they were, and * the roadmap projection offer stays the last of them — the position * issue-tracker-in-init/AC-1 gave it so a project that never publishes reaches the * end of those questions without thinking about it. * * @module */ import type { Prompter } from '../core/prompt.js'; import type { ReleasePreset } from '../autopilot/presets.js'; import { type AutopilotPicks } from '../autopilot/questions.js'; import type { AutopilotConfig } from '../autopilot/state.js'; import type { TeamDefaults } from '../autopilot/team.js'; import { type SetupConfig, type TaskAgents } from './setup-compute.js'; /** * Which of these platforms declare sub-agents. Read from the same capability maps * that put the offer into the implementation skill, so "where one agent per task * works" has one source (init-sets-work-mode/AC-2, AC-3). */ export declare function subagentSupport(platforms: readonly string[]): { with: string[]; without: string[]; }; /** The task-agents answer already in `.aidlc/config.yaml`, or null. */ export declare function existingTaskAgents(existing: SetupConfig | null): TaskAgents | null; export interface WorkModeInput { existing: SetupConfig | null; /** The platforms configured once this init completes: existing plus selected. */ platforms: string[]; /** null outside a git repository, where autopilot cannot keep its state. */ autopilot: null | { /** `--autopilot`: skip the yes/no and go straight to the autopilot questions. */ flag: boolean; machine: AutopilotConfig | null; team: TeamDefaults; releases: ReleasePreset[]; }; } /** `undefined` fields were not asked, and change nothing. */ export interface WorkModeAnswers { taskAgents?: TaskAgents; autopilot?: AutopilotPicks; } /** * Ask the step. Returns null on any cancel, and `runInit` then cancels the whole * init with nothing written, as every other init question does (AC-11). */ export declare function collectWorkMode(input: WorkModeInput, prompt: Prompter): Promise; //# sourceMappingURL=work-mode.d.ts.map