UNPKG

build-in-public-bot

Version:

AI-powered CLI bot for automating build-in-public tweets with code screenshots

29 lines 981 B
import { EventEmitter } from 'events'; import { FileChange } from './watcher'; export interface CodingContext { projectName: string; recentChanges: FileChange[]; currentBranch: string; uncommittedFiles: string[]; lastCommitMessage?: string; workingSummary: string; suggestedTweet?: string; language?: string; framework?: string; } export declare class ContextAnalyzerService extends EventEmitter { private static instance; private git; private recentChanges; private maxRecentChanges; private constructor(); static getInstance(): ContextAnalyzerService; addFileChange(change: FileChange): void; analyzeCurrentContext(): Promise<CodingContext>; private detectProjectType; private generateWorkingSummary; generateTweetSuggestion(context: CodingContext): Promise<string>; clearRecentChanges(): void; getRecentChanges(limit?: number): FileChange[]; } //# sourceMappingURL=context-analyzer.d.ts.map