()
| 43 | } |
| 44 | |
| 45 | async load(): Promise<void> { |
| 46 | const file = await readInstalled(this.kimiHomeDir); |
| 47 | const next = new Map<string, PluginRecord>(); |
| 48 | for (const entry of file.plugins) { |
| 49 | next.set(entry.id, await this.materialize(entry)); |
| 50 | } |
| 51 | this.records = next; |
| 52 | } |
| 53 | |
| 54 | list(): readonly PluginRecord[] { |
| 55 | return [...this.records.values()].toSorted((a, b) => a.id.localeCompare(b.id)); |
nothing calls this directly
no test coverage detected