cctoolstats
Version:
Claude Codeのツール呼び出し/サブエージェント実行履歴の統計を分かりやすく表示するCLIツール
48 lines • 1.35 kB
TypeScript
/**
* Common utilities for CLI modules
* Shared functionality between cli.ts and cli-commander.ts
*/
/**
* Options for processing log files
*/
export interface ProcessOptions {
verbose: boolean;
format: 'table' | 'json' | 'csv';
color?: boolean;
thousandSeparator: boolean;
}
/**
* Result of processing log files
*/
export interface ProcessResult {
toolStats: any;
subagentStats: any;
}
/**
* Process log files and analyze tool/subagent usage
*/
export declare function processLogFiles(logFiles: string[], options: Pick<ProcessOptions, 'verbose'>): Promise<ProcessResult>;
/**
* Format statistics as JSON
*/
export declare function formatJson(toolStats: any, subagentStats: any): string;
/**
* Format statistics as CSV
*/
export declare function formatCsv(toolStats: any, subagentStats: any): string;
/**
* Format statistics as table
*/
export declare function formatTable(toolStats: any, subagentStats: any, options: {
useColors?: boolean;
useThousandSeparator?: boolean;
}): string;
/**
* Format output based on requested format
*/
export declare function formatOutput(toolStats: any, subagentStats: any, options: ProcessOptions): string;
/**
* Handle output to console or file
*/
export declare function handleOutput(output: string, outputFile?: string): void;
//# sourceMappingURL=cli-common.d.ts.map