pub async fn run_single_task(
workspace: &str,
session_key: &str,
description: &str,
skill_dirs: Option<&[String]>,
) -> Result<AgentResult>Expand description
Run a single task (one turn) and return AgentResult. Used by P2P swarm when routing decides to execute locally.
When skill_dirs is Some, loads skills from those directories (e.g. swarm’s --skills-dir).
When None, auto-discovers from workspace/.skills and workspace/skills.