feat(vcs): expose repository branch metadata

This commit is contained in:
Brendan Allan 2026-07-21 19:02:18 +08:00
commit 305466e5ef
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
8 changed files with 48 additions and 3 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 yield* vcs.info()
}),
),
)
.handle("vcs.status", () =>
response(
Effect.gen(function* () {