Open-source, local-first AI agent for real work.
TypeScript agent-toolsai-agentbyokcoding-agentcross-platformdesktop-appdeveloper-toolselectronharnessknowledge-basellmwikilocal-firstmcpplugin-systemprivacy-firstskillstypescriptvettaworkflow-automation
import { useThemeHost } from "../host";
import type { ThemeUsageModel } from "./types";
export function useThemeUsageStats(): ThemeUsageModel {
const host = useThemeHost();
const useHostThemeUsageStats = host.usage?.useThemeUsageStats;
if (!useHostThemeUsageStats) {
throw new Error("Theme host does not provide theme usage capability.");
}
return useHostThemeUsageStats();
}