MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / init

Method init

packages/node-runtime/src/ai/skill-manager-core.ts:123–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

ensureInitializedMethod · 0.95

Calls 3

loadAllMethod · 0.95
ensureDirMethod · 0.65
infoMethod · 0.65

Tested by

no test coverage detected