chittycan
Version:
Your completely autonomous network that grows with you - DNA ownership platform with encrypted vaults, PDX portability, and ChittyFoundation governance
50 lines • 1.33 kB
TypeScript
/**
* Usage Tracker - "Grow With Me" Intelligence
*
* Tracks command usage to personalize ChittyCan for each user.
* Learns patterns, builds custom shortcuts, suggests optimizations.
*/
export interface CommandUsage {
cli: string;
naturalLanguage: string;
interpretedCommand: string;
timestamp: string;
successful: boolean;
}
export interface UsageStats {
commands: CommandUsage[];
cliUsageCount: Record<string, number>;
frequentPatterns: Array<{
pattern: string;
count: number;
lastUsed: string;
}>;
}
/**
* Load usage stats
*/
export declare function loadUsageStats(): UsageStats;
/**
* Track command usage
*/
export declare function trackCommandUsage(cli: string, naturalLanguage: string, interpretedCommand: string, successful?: boolean): void;
/**
* Get most used CLIs
*/
export declare function getMostUsedCLIs(limit?: number): Array<{
cli: string;
count: number;
}>;
/**
* Get frequent patterns for a CLI
*/
export declare function getFrequentPatternsForCLI(cli: string, limit?: number): string[];
/**
* Get personalized suggestions
*/
export declare function getPersonalizedSuggestions(cli?: string): string[];
/**
* Show usage insights
*/
export declare function showUsageInsights(): void;
//# sourceMappingURL=usage-tracker.d.ts.map