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

Method getTeamSharedSkill

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

Source from the content-addressed store, hash-verified

2697 }
2698
2699 getTeamSharedSkill(skillId: string): { skillId: string; hubSkillId: string; visibility: string; groupId: string | null; hubInstanceId: string; sharedAt: number } | null {
2700 const r = this.db.prepare("SELECT * FROM team_shared_skills WHERE skill_id = ?").get(skillId) as any;
2701 if (!r) return null;
2702 return { skillId: r.skill_id, hubSkillId: r.hub_skill_id, visibility: r.visibility, groupId: r.group_id, hubInstanceId: r.hub_instance_id || "", sharedAt: r.shared_at };
2703 }
2704
2705 deleteTeamSharedSkill(skillId: string): boolean {
2706 return this.db.prepare("DELETE FROM team_shared_skills WHERE skill_id = ?").run(skillId).changes > 0;

Callers 1

getHubSkillForLocalMethod · 0.45

Calls 2

prepareMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected