()
| 121 | // ==================== Init ==================== |
| 122 | |
| 123 | init(): SkillInitResult { |
| 124 | const { fs, skillsDir } = this.deps |
| 125 | fs.ensureDir(skillsDir) |
| 126 | this.loadAll() |
| 127 | |
| 128 | this.initialized = true |
| 129 | this.deps.logger?.info('SkillManager', 'Initialized', { total: this.cache.size }) |
| 130 | |
| 131 | return { total: this.cache.size } |
| 132 | } |
| 133 | |
| 134 | private loadAll(): void { |
| 135 | const { fs, skillsDir } = this.deps |
no test coverage detected