MCPcopy
hub / github.com/CapSoftware/Cap / recordForeground

Function recordForeground

scripts/verify-recording-pipeline.mjs:331–350  ·  view source on GitHub ↗
(selected)

Source from the content-addressed store, hash-verified

329}
330
331async 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
352async function recordDetached(selected) {
353 const projectPath = path.join(runDir, "cli-detached.cap");

Callers 1

Calls 1

runCommandFunction · 0.85

Tested by

no test coverage detected