Files
kandev/apps/backend/internal/agent/runtime/lifecycle/manager_capabilities.go
T

26 lines
951 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()
}
// SupportsRepositoryCheckoutOptions advertises only managed preparation paths.
func (m *Manager) SupportsRepositoryCheckoutOptions(executorType, prepareScript string) (bool, bool) {
supported := (executorType == "worktree" || executorType == "local_docker") && (prepareScript == "" || prepareScript == DefaultPrepareScript(executorType))
return supported, supported
}