MCPcopy Create free account
hub / github.com/MemTensor/MemOS / autoInstallIfNeeded

Method autoInstallIfNeeded

packages/memos-core/src/skill/evolver.ts:369–380  ·  view source on GitHub ↗
(skill: Skill)

Source from the content-addressed store, hash-verified

367 }
368
369 private autoInstallIfNeeded(skill: Skill): void {
370 if (skill.status !== "active") return;
371
372 const explicitAutoInstall = this.ctx.config.skillEvolution?.autoInstall ?? DEFAULTS.skillAutoInstall;
373 if (!explicitAutoInstall) {
374 this.ctx.log.debug(`SkillEvolver: skipping auto-install for "${skill.name}" (autoInstall=false)`);
375 return;
376 }
377
378 this.installer.install(skill.id);
379 this.ctx.log.info(`SkillEvolver: auto-installed "${skill.name}" (autoInstall=true)`);
380 }
381
382 private readSkillContent(skill: Skill): string | null {
383 const filePath = path.join(skill.dirPath, "SKILL.md");

Callers 2

handleExistingSkillMethod · 0.95
handleNewSkillMethod · 0.95

Calls 3

debugMethod · 0.65
infoMethod · 0.65
installMethod · 0.45

Tested by

no test coverage detected