MCPcopy Index your code
hub / github.com/anomalyco/opencode / part

Function part

packages/opencode/src/session/message-v2.ts:87–93  ·  view source on GitHub ↗
(row: typeof PartTable.$inferSelect)

Source from the content-addressed store, hash-verified

85 }) as Info
86
87const part = (row: typeof PartTable.$inferSelect) =>
88 ({
89 ...row.data,
90 id: row.id,
91 sessionID: row.session_id,
92 messageID: row.message_id,
93 }) as Part
94
95const older = (row: Cursor) =>
96 or(lt(MessageTable.time_created, row.time), and(eq(MessageTable.time_created, row.time), lt(MessageTable.id, row.id)))

Callers 1

hydrateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected