clawdforge/clients
Kayos 3c62613c30 clients/go: initial Go SDK for clawdforge
Idiomatic Go client wrapping the FastAPI surface in server.py — Healthz,
Run, UploadFile/UploadReader, and admin token CRUD. stdlib net/http only,
context-first signatures, typed errors (ErrAuth sentinel, RunFailure for
/run 502s, APIError for other 4xx/5xx, TransportError for network/EOF).

RunResult.Result is captured as json.RawMessage and materialized via
.AsJSON(out) / .AsText() because claude returns either parsed JSON or
plain text depending on prompt. UploadFile streams via io.Pipe + multipart
without buffering the file in memory.

Module: gitea.sulkta.com/Sulkta-Coop/clawdforge/clients/go
Includes cmd/cf-cli demo binary and httptest-based test suite (13 tests).
2026-04-28 22:36:56 -07:00
..
bash clients/bash: cf — single-file bash CLI for clawdforge 2026-04-28 22:25:50 -07:00
go clients/go: initial Go SDK for clawdforge 2026-04-28 22:36:56 -07:00
python clients/python: initial Python SDK for clawdforge 2026-04-28 22:27:21 -07:00
ruby clients/ruby: initial Ruby SDK for clawdforge 2026-04-28 22:34:01 -07:00
rust clients/rust: initial Rust SDK for clawdforge 2026-04-28 22:35:16 -07:00