(selected)
| 329 | } |
| 330 | |
| 331 | async function recordForeground(selected) { |
| 332 | const projectPath = path.join(runDir, "cli-foreground.cap"); |
| 333 | await runCommand("cli-foreground-record", capBin, [ |
| 334 | "--log-level", |
| 335 | "debug", |
| 336 | "--json", |
| 337 | "record", |
| 338 | "start", |
| 339 | "--screen", |
| 340 | selected.screenId, |
| 341 | "--path", |
| 342 | projectPath, |
| 343 | "--duration", |
| 344 | String(recordingSeconds), |
| 345 | "--fps", |
| 346 | "30", |
| 347 | ]); |
| 348 | summary.flows.push({ name: "cli-foreground-studio", projectPath }); |
| 349 | return projectPath; |
| 350 | } |
| 351 | |
| 352 | async function recordDetached(selected) { |
| 353 | const projectPath = path.join(runDir, "cli-detached.cap"); |
no test coverage detected