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

Method setChunkSkillId

packages/memos-core/src/storage/sqlite.ts:2020–2022  ·  view source on GitHub ↗
(chunkId: string, skillId: string)

Source from the content-addressed store, hash-verified

2018 // ─── Chunk-Skill ───
2019
2020 setChunkSkillId(chunkId: string, skillId: string): void {
2021 this.db.prepare("UPDATE chunks SET skill_id = ?, updated_at = ? WHERE id = ?").run(skillId, Date.now(), chunkId);
2022 }
2023
2024 getDistinctSessionKeys(): string[] {
2025 return (this.db.prepare("SELECT DISTINCT session_key FROM chunks ORDER BY session_key").all() as Array<{ session_key: string }>)

Callers 1

markChunksWithSkillMethod · 0.45

Calls 2

prepareMethod · 0.80
runMethod · 0.65

Tested by

no test coverage detected