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 { SidebarModel, SidebarModelInput } from "./types";
export function useSidebarModel(input: SidebarModelInput): SidebarModel {
const host = useThemeHost();
const useHostSidebarModel = host.sidebar?.useSidebarModel;
if (!useHostSidebarModel) {
throw new Error("Theme host does not provide sidebar model capability.");
}
return useHostSidebarModel(input);
}