/** * Preset application scaffolders. * * `applyPreset` copies agent charters into `.squad/agents/`, but to make the * resulting squad usable by the coordinator (and to satisfy the post-init * "Established Mode" mode-switch check) we must also wire the preset agents * into team.md, routing.md, and the casting state files. These helpers do * that in a merge-friendly way so calling `applyPreset` repeatedly is * idempotent and does not clobber pre-existing rows or entries. * * The cast command (`packages/squad-cli/src/cli/core/cast.ts`) has its own * fresh-write versions of these writers — see #1288 follow-up for a possible * future refactor that shares the logic. For now, the scope of #1288 is * focused on making preset apply produce a Coordinator-ready squad. * * @module presets/scaffold */ import type { PresetAgent } from './types.js'; /** * Wire a preset's agents into team.md, routing.md, and casting state files. * * Call this after `applyPreset` has copied the agent charters. The function * is merge-friendly: it preserves existing rows, agents, and snapshots, and * only adds entries that aren't already present. */ export declare function scaffoldPresetIntoSquad(squadDir: string, agents: PresetAgent[], presetName: string): void; //# sourceMappingURL=scaffold.d.ts.map