Files
kandev/apps/backend/internal/agent/runtime/lifecycle/manager_capabilities.go
T
2026-05-16 20:07:57 +01:00

20 lines
579 B
Go

package lifecycle
// RequiresCloneURL implements orchestrator/executor.ExecutorTypeCapabilities.
func (m *Manager) RequiresCloneURL(executorType string) bool {
backend, err := m.getExecutorBackend(executorType)
if err != nil {
return false
}
return backend.RequiresCloneURL()
}
// ShouldApplyPreferredShell implements orchestrator/executor.ExecutorTypeCapabilities.
func (m *Manager) ShouldApplyPreferredShell(executorType string) bool {
backend, err := m.getExecutorBackend(executorType)
if err != nil {
return false
}
return backend.ShouldApplyPreferredShell()
}