/** * `ruflo start all` (#1177): bring up everything in one command. * * 0. project init — only when the project was never initialized (same path as `start quick`) * 1. memory init — only when the memory database is missing (never overwrites) * 2. daemon start — only when no daemon is running * 3. start — the main `start` action * * Every step is injectable through `deps` so tests can mock each one. */ import type { CommandContext, CommandResult } from '../types.js'; /** Steps `start all` runs, injectable so tests can replace each one. */ export interface StartAllDeps { isProjectInitialized: (cwd: string) => boolean | Promise; initProject: (ctx: CommandContext) => Promise; isMemoryInitialized: () => Promise; initMemory: () => Promise<{ success: boolean; error?: string; }>; isDaemonRunning: (cwd: string) => boolean | Promise; startDaemon: (ctx: CommandContext) => Promise; start: (ctx: CommandContext) => Promise; } export declare const defaultStartAllDeps: StartAllDeps; /** Runs the steps in order; stops at the first failure with a non-zero result naming it. */ export declare function runStartAll(ctx: CommandContext, deps?: StartAllDeps): Promise; //# sourceMappingURL=start-all.d.ts.map