mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
41d5f5e0fb
Add SubagentEvent type to extension API and OnEvent field to SubagentConfig so extensions can watch subagent tool calls, text chunks, reasoning deltas, and turn lifecycle events in real time. The SDK's Kit.Subagent() already had OnEvent via kit.SubagentConfig. This wires it through to the extension layer with a concrete SubagentEvent struct (Yaegi-safe) and bridges SDK events to it in both cmd/root.go and the ACP server.