UNPKG

cc-code-status

Version:

Enhanced Claude Code launcher with statusline - supports multiple custom API configurations and code statistics

51 lines 1.52 kB
#!/usr/bin/env node interface TodayStats { conversations: number; rounds: number; codeAdded: number; codeDeleted: number; } declare class StatusLinePlugin { private readonly CACHE_DIR; private readonly CACHE_FILE; private readonly CONVERSATIONS_FILE; private readonly CONFIG_FILE; private readonly CACHE_TTL; private readonly DEFAULT_SYNC_INTERVAL; run(): Promise<void>; static addExcludedProject(projectName: string): void; static removeExcludedProject(projectName: string): void; static listExcludedProjects(): void; static manualSync(): void; /** * 获取今日统计数据(用于 CLI 命令) */ getTodayStats(): Promise<TodayStats>; private readStdin; private parseInput; private ensureCacheDir; private isCacheValid; private readCache; private writeCache; private getDateString; private getTodayStart; private getTodayEnd; private normalizePath; private shouldExcludeProject; private splitLines; private analyzeAndCache; private getGitUser; private loadConfig; private saveConfig; private readConversationsData; private writeConversationsData; private cleanupOldConversations; private collectAndSyncConversations; private collectTodayConversations; private collectUserMessagesFromHistory; private extractAssistantAnswer; private syncToBackend; private formatStatusLine; } export { StatusLinePlugin }; //# sourceMappingURL=index.d.ts.map