goroutineSubagentManager implements builtin.SubagentManager using in-memory goroutines. It is used when async execution is enabled without process isolation so that tests and local runs don't rely on spawning external binaries.
| 15 | // It is used when async execution is enabled without process isolation so that tests |
| 16 | // and local runs don't rely on spawning external binaries. |
| 17 | type goroutineSubagentManager struct { |
| 18 | middleware *SubAgentMiddleware |
| 19 | |
| 20 | mu sync.RWMutex |
| 21 | instances map[string]*builtin.SubagentInstance |
| 22 | cancels map[string]context.CancelFunc |
| 23 | } |
| 24 | |
| 25 | func newGoroutineSubagentManager(mw *SubAgentMiddleware) *goroutineSubagentManager { |
| 26 | return &goroutineSubagentManager{ |
nothing calls this directly
no outgoing calls
no test coverage detected