(prompt: string)
| 169 | } |
| 170 | } |
| 171 | |
| 172 | /** `--project` is a name-or-path union: a registered project's name, or a path to a |
| 173 | * directory. Resolve the name first, then fall back to treating the value as a path — |
| 174 | * but only if that path actually exists. |
| 175 | * |
| 176 | * Without the existence check a bare unregistered NAME resolves against the cwd, so |
| 177 | * `--project helm` run from `…/sild/helm` became `…/sild/helm/helm`. Nothing downstream |
| 178 | * verified it, so the kild was created, its worktree could not be created, no agent ever |
| 179 | * spawned, and the command still exited 0 with a kild id. A delegation that silently |
| 180 | * does nothing is worse than one that fails. */ |
| 181 | async function resolveProjectFlag(): Promise<string | undefined> { |
| 182 | if (!values.project) return undefined; |
no test coverage detected