forked from okami.mom/albedo
README.md

Albedo CLI #

The Go client provides the terminal client, command-line workflows, ACP adapter, and local web server for the daemon.

Build or install all five executables with go build -o bin/ ./cmd/albedo... or go install ./cmd/albedo... from this directory. Keep them together. The dispatcher resolves companions beside its executable when needed. A missing companion exits 127 and an unlaunchable companion exits 126.

  • cmd/albedo builds the albedo executable. internal/cli parses commands and dispatches application workflows.
  • albedo-tui owns interactive open, new, resume and login.
  • albedo-web serves the browser client and albedo-acp serves editor stdio.
  • albedo-server replaces itself with the selected foreground Gleam runtime. albedo daemon manages the lifecycle.
  • internal/tui owns the interactive terminal application. internal/daemon adapts the daemon HTTP and event protocols.
  • internal/acp runs the line-delimited JSON-RPC editor adapter through albedo acp.
  • internal/webui serves the browser client through albedo web and forwards authenticated API requests.
  • tools/apigen generates wire code. cmd/tuifixture captures transcript fixtures for TUI benchmarks.

See the tui reference.