()
| 283 | } |
| 284 | |
| 285 | private async persist(): Promise<void> { |
| 286 | const installed: InstalledRecord[] = [...this.records.values()].map((record) => ({ |
| 287 | id: record.id, |
| 288 | root: record.root, |
| 289 | source: record.source, |
| 290 | enabled: record.enabled, |
| 291 | installedAt: record.installedAt, |
| 292 | updatedAt: record.updatedAt, |
| 293 | originalSource: record.originalSource, |
| 294 | capabilities: record.capabilities, |
| 295 | github: record.github, |
| 296 | })); |
| 297 | await writeInstalled(this.kimiHomeDir, { version: 1, plugins: installed }); |
| 298 | } |
| 299 | |
| 300 | private async materialize(entry: InstalledRecord): Promise<PluginRecord> { |
| 301 | const parsed = await parseManifest(entry.root); |
no test coverage detected