import type { AgentModelsResponse } from "@/shared/api/types"; import { invokeTauri } from "@/shared/api/tauri"; export type DiscoverAgentModelsInput = { acpCommand?: string; agentCommand: string; agentArgs?: string[]; provider?: string; envVars?: Record; /** Definition-level env from the harness definition (custom/preset). Merged below user envVars. */ definitionEnv?: Record; }; export async function discoverAgentModels(input: DiscoverAgentModelsInput) { return invokeTauri("discover_agent_models", { input }); }