feat(tui): show current branch in location labels

This commit is contained in:
Aiden Cline 2026-08-03 13:45:33 +00:00
commit 4b58478b6f
16 changed files with 176 additions and 14 deletions

View file

@ -7,6 +7,14 @@ import { response } from "../location"
export const VcsHandler = HttpApiBuilder.group(Api, "server.vcs", (handlers) =>
Effect.gen(function* () {
return handlers
.handle("vcs.get", () =>
response(
Effect.gen(function* () {
const vcs = yield* Vcs.Service
return { branch: yield* vcs.branch() }
}),
),
)
.handle("vcs.status", () =>
response(
Effect.gen(function* () {