(row: HubMemoryRow)
| 3323 | } |
| 3324 | |
| 3325 | function 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 | |
| 3342 | interface HubMemorySearchRow { |
| 3343 | id: string; |
no outgoing calls
no test coverage detected