()
| 267 | |
| 268 | // Export model settings for backup |
| 269 | exportSettings(): string { |
| 270 | const models = this.getDownloadedModels(); |
| 271 | return JSON.stringify({ |
| 272 | version: '1.0', |
| 273 | timestamp: new Date().toISOString(), |
| 274 | models: models.map(m => ({ |
| 275 | id: m.id, |
| 276 | name: m.name, |
| 277 | size: m.size, |
| 278 | downloadDate: m.downloadDate, |
| 279 | lastUsed: m.lastUsed, |
| 280 | })), |
| 281 | }, null, 2); |
| 282 | } |
| 283 | |
| 284 | // Import model settings from backup |
| 285 | importSettings(settingsJson: string): void { |
nothing calls this directly
no test coverage detected