(builtinId: string)
| 233 | } |
| 234 | |
| 235 | async function importAssistant(builtinId: string): Promise<{ success: boolean; error?: string }> { |
| 236 | try { |
| 237 | const result = await useAssistantService().importBuiltin(builtinId) |
| 238 | if (result.success) { |
| 239 | await loadAssistants() |
| 240 | await loadBuiltinCatalog() |
| 241 | } |
| 242 | return result |
| 243 | } catch (error) { |
| 244 | return { success: false, error: String(error) } |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | async function reimportAssistant(id: string): Promise<{ success: boolean; error?: string }> { |
| 249 | try { |
nothing calls this directly
no test coverage detected