aiwg
Version:
Deployment tool and support utility for AI context. Copies agents, skills, commands, rules, and behaviors into the paths each AI platform reads (Claude Code, Codex, Copilot, Cursor, Warp, OpenClaw, and 6 more) so one source of truth works across 10 platfo
89 lines • 2.74 kB
TypeScript
/**
* Shared CLI Display Utility Module
*
* Provides consistent, professional terminal output across all CLI commands.
* Wraps chalk, ora, and cli-table3 with TTY/CI-aware fallbacks.
*
* @issue #461
*/
declare const isTTY: boolean;
declare const isCI: boolean;
declare const BRAND_HEX = "#818CF8";
/**
* Brand mark — ◆ in brand indigo color
*/
export declare function brandMark(): string;
/**
* Brand-colored text for inline use
*/
export declare function accent(text: string): string;
/**
* Horizontal rule separator
*/
export declare function rule(width?: number): void;
/**
* Styled message output functions
*/
export declare function success(msg: string): void;
export declare function error(msg: string): void;
export declare function warn(msg: string): void;
export declare function info(msg: string): void;
export declare function header(msg: string): void;
export declare function dim(msg: string): void;
export declare function blank(): void;
/**
* Section — a labeled block with › prefixed items
*/
export declare function section(title: string, items: string[]): void;
/**
* Key-value display — aligned pairs
*/
export declare function keyValue(pairs: Record<string, string>): void;
/**
* Deployment summary line — "✓ Agents 101 deployed"
*/
export declare function deployCount(label: string, count: number): void;
/**
* Spinner wrapper (ora) — returns noop in non-TTY/CI
*/
export interface Spinner {
start(): Spinner;
stop(): Spinner;
succeed(text?: string): Spinner;
fail(text?: string): Spinner;
text: string;
}
export declare function spinner(msg: string): Promise<Spinner>;
/**
* Table display — wraps cli-table3 if available, falls back to padded columns
*/
export declare function table(headers: string[], rows: string[][]): Promise<void>;
/**
* Format a channel label with color
*/
export declare function channelLabel(channel: string): string;
/**
* Format a status check result line (for doctor)
*/
export declare function checkResult(name: string, status: 'ok' | 'warn' | 'error' | 'info', message: string): void;
/**
* Summary bar for doctor results
*/
export declare function summaryBar(pass: number, warnings: number, errors: number): void;
/**
* Bold text for inline use
*/
export declare function bold(text: string): string;
/**
* Dimmed text for inline use
*/
export declare function dimText(text: string): string;
/**
* Colored text for inline use
*/
export declare function green(text: string): string;
export declare function red(text: string): string;
export declare function yellow(text: string): string;
export declare function cyan(text: string): string;
export { isTTY, isCI, BRAND_HEX };
//# sourceMappingURL=ui.d.ts.map