#!/usr/bin/env node /** * Stack Status Command * * Reports CloudFormation stack status and BenchlingIntegration parameter state * for a given configuration profile. * * @module commands/status */ import type { XDGBase } from "../../lib/xdg-base"; export interface StatusCommandOptions { /** Configuration profile name */ profile?: string; /** AWS profile to use */ awsProfile?: string; /** Config storage implementation (for testing) */ configStorage?: XDGBase; /** Show detailed stack events */ detailed?: boolean; /** Auto-refresh interval in seconds (0 or non-numeric to disable) */ timer?: string | number; /** Exit after reaching terminal status (default: true, use --no-exit to keep monitoring) */ exit?: boolean; } export interface StatusResult { success: boolean; stackStatus?: string; benchlingIntegrationEnabled?: boolean; lastUpdateTime?: string; stackArn?: string; region?: string; error?: string; athenaWorkgroup?: string; stackOutputs?: { webhookEndpoint?: string; benchlingUrl?: string; secretArn?: string; dockerImage?: string; ecsLogGroup?: string; apiGatewayLogGroup?: string; }; secretInfo?: { name: string; lastModified?: Date; accessible: boolean; error?: string; }; listenerRules?: Array<{ priority: string; path: string; targetGroupArn: string; }>; ecsServices?: Array<{ serviceName: string; status: string; desiredCount: number; runningCount: number; pendingCount: number; rolloutState?: string; logGroup?: string; logStreamPrefix?: string; }>; albTargetGroups?: Array<{ targetGroupName: string; healthyCount: number; unhealthyCount: number; drainingCount: number; targets: Array<{ id: string; health: string; reason?: string; }>; }>; stackEvents?: Array<{ timestamp: Date; resourceId: string; status: string; reason?: string; }>; } /** * Stack identification result * Determines which CloudFormation stack to query based on profile configuration */ export interface StackIdentification { /** Full stack ARN if available (null for standalone until resolved) */ stackArn: string | null; /** Stack name for CloudFormation queries */ stackName: string; /** AWS region */ region: string; /** Deployment mode */ mode: "integrated" | "standalone"; /** Whether deployment tracking exists */ hasDeployment: boolean; } /** * Get the least-ready (most critical) ECS rollout status for a stack * Returns the "worst" rollout state across all services for quick status checks */ export declare function getEcsRolloutStatus(stackName: string, region: string, awsProfile?: string): Promise; /** * Formats stack status with color coding */ export declare function formatStackStatus(status: string): string; /** * Status command implementation */ export declare function statusCommand(options?: StatusCommandOptions): Promise; //# sourceMappingURL=status.d.ts.map