(wire: WireWorkspace)
| 114 | } |
| 115 | |
| 116 | export function toAppWorkspace(wire: WireWorkspace): AppWorkspace { |
| 117 | return { |
| 118 | id: wire.id, |
| 119 | root: wire.root, |
| 120 | name: wire.name, |
| 121 | isGitRepo: wire.is_git_repo, |
| 122 | branch: wire.branch ?? undefined, |
| 123 | lastOpenedAt: wire.last_opened_at, |
| 124 | sessionCount: wire.session_count, |
| 125 | }; |
| 126 | } |
| 127 | |
| 128 | // --------------------------------------------------------------------------- |
| 129 | // Message mappers |
no outgoing calls
no test coverage detected