@posthog/wizard
Version:
The PostHog wizard helps you to configure your project
29 lines (28 loc) • 785 B
TypeScript
export type StatusCheckResult = {
status: 'operational';
} | {
status: 'degraded';
description: string;
} | {
status: 'down';
description: string;
} | {
status: 'unknown';
error: string;
};
/**
* Check the Anthropic/Claude status page for service health.
* Returns the current status indicator.
*/
export declare function checkAnthropicStatus(): Promise<StatusCheckResult>;
/**
* Check Anthropic status and handle the result.
* - If down: Show error and exit
* - If degraded: Show warning and ask user to continue
* - If operational or unknown: Continue silently
*
* @returns true if the wizard should continue, false if it should abort
*/
export declare function checkAnthropicStatusWithPrompt(options?: {
ci?: boolean;
}): Promise<boolean>;