UNPKG

ai-dev-diary

Version:

Intelligent development diary system for AI-assisted projects

98 lines 2.17 kB
export type EntryType = 'journey' | 'insight' | 'mistake' | 'breakthrough' | 'context'; export interface DiaryEntry { id: string; timestamp: Date; type: EntryType; title: string; content: string; tags: string[]; metadata: EntryMetadata; } export interface EntryMetadata { author: string; aiAgent?: string; relatedFiles?: string[]; relatedCommits?: string[]; metrics?: Record<string, any>; correction?: string; impact?: string; } export interface DiaryConfig { author: string; team?: string; projectName?: string; teamMode?: boolean; githubUsername?: string; ai?: { model?: string; autoContext?: boolean; }; git?: { autoEntries?: boolean; linkCommits?: boolean; }; sharing?: { team?: boolean; public?: boolean; }; paths?: { entries?: string; knowledge?: string; context?: string; }; } export interface Context { projectState: string; currentFocus: string; recentChanges: string[]; importantNotes: string[]; nextSteps: string[]; lastUpdated: Date; } export interface SearchOptions { type?: EntryType; tags?: string[]; author?: string; dateRange?: { start: Date; end: Date; }; limit?: number; } export interface AnalyticsReport { totalEntries: number; entriesByType: Record<EntryType, number>; topTags: Array<{ tag: string; count: number; }>; mistakePatterns: Array<{ pattern: string; frequency: number; }>; learningVelocity: number; insightFrequency: number; contributorStats: Array<{ author: string; entries: number; }>; } export interface Pattern { id: string; name: string; description: string; category: string; examples: string[]; effectiveness: number; usageCount: number; } export interface Mistake { id: string; description: string; correction: string; preventionTips: string[]; occurrences: number; lastOccurred: Date; category: string; } //# sourceMappingURL=types.d.ts.map