Skip to main content

parse_block

Function parse_block 

Source
pub fn parse_block(node: &KdlNode) -> Result<Option<AgentSpec>>
Expand description

Parse a workon node into an agent, if it declares one.

Ok(None) means the config deliberately drives no agent (workon {} with no agent child) — distinct from the absent-block case, which the caller maps to AgentSpec::claude_default.