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

Method disableSkill

packages/memos-core/src/storage/sqlite.ts:1559–1565  ·  view source on GitHub ↗
(skillId: string)

Source from the content-addressed store, hash-verified

1557 }
1558
1559 disableSkill(skillId: string): boolean {
1560 const skill = this.getSkill(skillId);
1561 if (!skill || skill.status === "archived") return false;
1562 this.db.prepare("DELETE FROM skill_embeddings WHERE skill_id = ?").run(skillId);
1563 this.updateSkill(skillId, { status: "archived", installed: 0 });
1564 return true;
1565 }
1566
1567 enableSkill(skillId: string): boolean {
1568 const skill = this.getSkill(skillId);

Callers 1

handleSkillDisableMethod · 0.45

Calls 4

getSkillMethod · 0.95
updateSkillMethod · 0.95
prepareMethod · 0.80
runMethod · 0.65

Tested by

no test coverage detected