MCPcopy Create free account
hub / github.com/anomalyco/opencode / fromRow

Function fromRow

packages/opencode/src/control-plane/workspace.ts:49–60  ·  view source on GitHub ↗
(row: typeof WorkspaceTable.$inferSelect)

Source from the content-addressed store, hash-verified

47export const Event = WorkspaceEvent
48
49function fromRow(row: typeof WorkspaceTable.$inferSelect): Info {
50 return {
51 id: row.id,
52 type: row.type,
53 branch: row.branch,
54 name: row.name,
55 directory: row.directory,
56 extra: row.extra,
57 projectID: row.project_id,
58 timeUsed: row.time_used,
59 }
60}
61
62export const CreateInput = Schema.Struct({
63 id: Schema.optional(WorkspaceV2.ID),

Callers 1

workspace.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected