fn finish_created(
mstore: &Store,
broker: &Broker,
def: &AgentDefinition,
cmd: &CommandAgentDefineData,
create_stub: bool,
now: i64,
) -> AgentDefineResultExpand description
A freshly inserted definition (def.slug is set by agent_def_find_or_insert). The stub is
created first so listeners handling agents:changed can immediately find the new agent via
ListRecentSessionsCommand. The definition is already committed, so a stub failure is non-fatal
and the broadcast still goes out.