()
| 217 | return c.json({ error: 'path is not under the worktree root' }, 403); |
| 218 | } |
| 219 | try { |
| 220 | const opener = process.platform === 'darwin' ? 'open' : 'xdg-open'; |
| 221 | await execFile(opener, [resolved]); |
| 222 | return c.json({ ok: true }); |
| 223 | } catch (err) { |
| 224 | return c.json({ error: String(err instanceof Error ? err.message : err) }, 400); |
nothing calls this directly
no outgoing calls
no test coverage detected