import type { ServiceConfig } from "./service.js"; export type ParsedArgs = { command: string[]; options: Record; json?: unknown; }; export type OutputOptions = { allowFull?: boolean; outputFile?: string; }; export type CliResult = { stdout: string; stderr: string; isError: boolean; exitCode: number; }; export type CliRunOptions = { appRoot?: string; entryFile?: string; launcher?: ServiceConfig["launcher"]; }; export type CliRuntime = { appRoot: string; entryFile: string; launcher?: ServiceConfig["launcher"]; }; export type CommandContext = { runtime: CliRuntime; args: ParsedArgs; };