(id: string)
| 246 | } |
| 247 | |
| 248 | async function reimportAssistant(id: string): Promise<{ success: boolean; error?: string }> { |
| 249 | try { |
| 250 | const result = await useAssistantService().reimport(id) |
| 251 | if (result.success) { |
| 252 | await loadAssistants() |
| 253 | await loadBuiltinCatalog() |
| 254 | } |
| 255 | return result |
| 256 | } catch (error) { |
| 257 | return { success: false, error: String(error) } |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | async function createAssistant( |
| 262 | config: Omit<AssistantConfigFull, 'id'> |
nothing calls this directly
no test coverage detected