Types
AwaitCommandOptions
Section titled “AwaitCommandOptions”interface AwaitCommandOptions { command: string; maxDuration: number; successPattern?: string; errorPattern?: string; exitCodeSuccess?: number[]; pollMode?: PollModeOptions; persistLogs?: boolean; summarize?: SummarizeOptions; outputTemplate?: string; templateFile?: string; onSuccess?: string; onFailure?: string;}AwaitResult
Section titled “AwaitResult”interface AwaitResult { status: 'success' | 'error' | 'timeout' | 'cancelled'; exitCode: number | null; elapsedMs: number; output: string; outputTruncated: boolean; matchedPattern: string | null; formattedOutput?: string; logPath?: string; summary?: string;}PollModeOptions
Section titled “PollModeOptions”interface PollModeOptions { enabled: boolean; interval: number; // 1-60 seconds appendOutput?: boolean;}SummarizeOptions
Section titled “SummarizeOptions”interface SummarizeOptions { enabled: boolean; model?: string;}Constants
Section titled “Constants”const MAX_OUTPUT_SIZE = 10 * 1024 * 1024; // 10MBconst MAX_DURATION_SECONDS = 1800; // 30 minconst DEFAULT_POLL_INTERVAL = 5;const MIN_POLL_INTERVAL = 1;const MAX_POLL_INTERVAL = 60;