agentctl/workflow/steps/screen_record.rs
1use super::automation::AutomationInvocation;
2use crate::workflow::schema::{AutomationStep, AutomationTool};
3
4pub fn build(step: &AutomationStep) -> AutomationInvocation {
5 let args = if step.args.is_empty() {
6 vec!["--preflight".to_string()]
7 } else {
8 step.args.clone()
9 };
10
11 AutomationInvocation::new(
12 AutomationTool::ScreenRecord,
13 "screen-record",
14 args,
15 Vec::new(),
16 )
17}