(config: RuntimeConfig | undefined)
| 127 | * Handles legacy "local" with srcBaseDir → "worktree" mapping. |
| 128 | */ |
| 129 | export function getRuntimeType(config: RuntimeConfig | undefined): RuntimeMode { |
| 130 | if (!config) return "worktree"; // Default to worktree for undefined config |
| 131 | if (isSSHRuntime(config)) return "ssh"; |
| 132 | if (isDockerRuntime(config)) return "docker"; |
| 133 | if (isDevcontainerRuntime(config)) return "devcontainer"; |
| 134 | if (isWorktreeRuntime(config)) return "worktree"; |
| 135 | return "local"; |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Line-buffered logger that splits stream output into lines and logs them |
no test coverage detected