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

@ -1,7 +1,12 @@
export * as Vcs from "./vcs.js"
import { Schema } from "effect"
import { NonNegativeInt } from "./schema.js"
import { NonNegativeInt, optional } from "./schema.js"
export const Info = Schema.Struct({
branch: optional(Schema.String),
}).annotate({ identifier: "Vcs.Info" })
export interface Info extends Schema.Schema.Type<typeof Info> {}
export const Mode = Schema.Literals(["working", "branch"]).annotate({ identifier: "Vcs.Mode" })
export type Mode = typeof Mode.Type