Follow-up to #410 / ADR 0005.
Today AutoRespondCoordinator selects the CLI binary name with inline ternaries:
provider == .gitlab ? \"glab\" : \"gh\"
in six places: Sources/Crow/App/AutoRespondCoordinator.swift:127,133,153,170,197,206.
With the new TaskBackend / CodeBackend abstraction in place, this can move
behind a backend method (e.g. backend.cliName or a richer prompt-vending API).
The prompt body still legitimately branches on provider for prose differences;
only the CLI token selection should move.
Acceptance
- All six call sites at the lines above use the backend abstraction instead of
provider == .gitlab ? "glab" : "gh".
- No behavior change in the resulting prompts.
References:
Follow-up to #410 / ADR 0005.
Today
AutoRespondCoordinatorselects the CLI binary name with inline ternaries:in six places:
Sources/Crow/App/AutoRespondCoordinator.swift:127,133,153,170,197,206.With the new
TaskBackend/CodeBackendabstraction in place, this can movebehind a backend method (e.g.
backend.cliNameor a richer prompt-vending API).The prompt body still legitimately branches on provider for prose differences;
only the CLI token selection should move.
Acceptance
provider == .gitlab ? "glab" : "gh".References: