(kind: Kind)
| 338 | } |
| 339 | |
| 340 | function patchName(kind: Kind): "opencode" | "tui" { |
| 341 | if (kind === "server") return "opencode" |
| 342 | return "tui" |
| 343 | } |
| 344 | |
| 345 | async function patchOne(dir: string, target: Target, spec: string, force: boolean, dep: PatchDeps): Promise<PatchOne> { |
| 346 | const name = patchName(target.kind) |