use super::decide::DecisionPacket;
use anyhow::Result;
use atlas::{invocation::SkillContext, outcome::SkillOutcome, SkillRegistry};

pub fn execute_all(
    decision: DecisionPacket,
    registry: &SkillRegistry,
    ctx: &SkillContext,
) -> Vec<Result<SkillOutcome>> {
    let coordinator = atlas::coordinator::SkillCoordinator::new(registry);
    coordinator.execute_batch(decision.invocations, ctx)
}
