small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
albedo cli tools apigen README.md
1.2 kB · 24 lines
Markdown
at main

Go API generator #

apigen generates the Go daemon protocol client and the shared API digest from the canonical OpenAPI document.

  • main.go reads docs/openapi.yaml. go -C cli/tools/apigen run . generates outputs from the repository root.
  • go -C cli/tools/apigen run . -check fails when generated outputs differ.
  • Outputs are api.gen.go, digest.gen.go, and the daemon's api_digest.gleam.
  • patches.go emits patch-only presence fields and containing serializers in patches.gen.go; response fields keep their ordinary types.
  • metadata.go emits open problem constants, operation recovery helpers, and audience reference pages from the canonical operation metadata. Audience grouping does not change authorization.
  • The generator adapts schemas for Go code generation. The daemon adapter owns response decoding and SSE framing.

See the testing reference.

See Change the HTTP API for the contract workflow.