/** * AIエージェント向け出力ユーティリティ * Claude Codeなどのコーディングエージェントが機械可読な形式で結果を取得するための機能 */ export interface AgentSuccessOutput { success: true; data: T; message?: string; timestamp: string; } export interface AgentErrorOutput { success: false; error: { code: string; message: string; recoverable: boolean; suggestion?: string; details?: any; }; timestamp: string; } export type AgentOutput = AgentSuccessOutput | AgentErrorOutput; /** * Exit codes for agent consumption */ export declare enum ExitCode { SUCCESS = 0, GENERAL_ERROR = 1, CONFIG_ERROR = 2,// GITHUB_TOKEN missing, etc. VALIDATION_ERROR = 3,// Directory exists, invalid args, etc. NETWORK_ERROR = 4,// GitHub API unreachable AUTH_ERROR = 5 } /** * Check if JSON output is requested */ export declare function isJsonMode(): boolean; /** * Check if auto-yes mode is enabled */ export declare function isAutoYes(): boolean; /** * Check if verbose mode is enabled */ export declare function isVerbose(): boolean; /** * Output success result */ export declare function outputSuccess(data: T, message?: string): void; /** * Output error and exit */ export declare function outputError(code: string, message: string, recoverable?: boolean, suggestion?: string, details?: any): never; /** * Log verbose message */ export declare function logVerbose(message: string, data?: any): void; /** * Log debug message */ export declare function logDebug(message: string, data?: any): void; /** * Confirm action with user (or auto-yes in agent mode) */ export declare function confirmAction(message: string, defaultValue?: boolean): Promise; /** * Get GitHub token from environment or config */ export declare function getGitHubToken(): string; //# sourceMappingURL=agent-output.d.ts.map