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

Function rowToHubMemory

packages/memos-core/src/storage/sqlite.ts:3325–3340  ·  view source on GitHub ↗
(row: HubMemoryRow)

Source from the content-addressed store, hash-verified

3323}
3324
3325function rowToHubMemory(row: HubMemoryRow): HubMemoryRecord {
3326 return {
3327 id: row.id,
3328 sourceChunkId: row.source_chunk_id,
3329 sourceUserId: row.source_user_id,
3330 sourceAgent: row.source_agent || "",
3331 role: row.role,
3332 content: row.content,
3333 summary: row.summary,
3334 kind: row.kind,
3335 groupId: row.group_id,
3336 visibility: row.visibility as SharedVisibility,
3337 createdAt: row.created_at,
3338 updatedAt: row.updated_at,
3339 };
3340}
3341
3342interface HubMemorySearchRow {
3343 id: string;

Callers 2

getHubMemoryBySourceMethod · 0.70
getHubMemoryByIdMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected