(workspaceId: string)
| 248 | } |
| 249 | |
| 250 | export async function getConfigModel(workspaceId: string): Promise<string | null> { |
| 251 | const response = await invoke<{ model?: string | null }>("get_config_model", { |
| 252 | workspaceId, |
| 253 | }); |
| 254 | const model = response?.model; |
| 255 | if (typeof model !== "string") { |
| 256 | return null; |
| 257 | } |
| 258 | const trimmed = model.trim(); |
| 259 | return trimmed.length > 0 ? trimmed : null; |
| 260 | } |
| 261 | |
| 262 | export async function addWorkspace(path: string): Promise<WorkspaceInfo> { |
| 263 | return invoke<WorkspaceInfo>("add_workspace", { path }); |
no outgoing calls
no test coverage detected