(videoPath: string)
| 108 | } |
| 109 | |
| 110 | function temporarySiblingVideoPath(videoPath: string): string { |
| 111 | const parsed = path.parse(videoPath); |
| 112 | const suffix = `${process.pid}-${Date.now()}-${Math.random().toString(16).slice(2)}`; |
| 113 | return path.join(parsed.dir, `.${parsed.name}.agent-device-${suffix}${parsed.ext || '.mp4'}`); |
| 114 | } |
| 115 | |
| 116 | export async function trimRecordingStart(params: { |
| 117 | videoPath: string; |
no test coverage detected