Output schemas are anonymous structs and maps #126

closed cmc opened this on 2026-09-03 05:16 UTC · control · milestone v1.12.0

Discussion

cmc 2026-09-03 05:16 UTC

Most show commands declare an inline type out struct; small writes return map[string]any (issue.go:191, mr.go:322, repo.go:402). The web type-asserts data["number"].(float64) (mractions.go:217). Nothing ties what a command emits to what the iOS client decodes.

Remedy: name output types at package level so httpd and a client SDK can import them.

referenced in commit 4bfcb3893d by cmc: control: named payloads for what other surfaces decode

2026-09-04 01:34 UTC

closed by commit 332a13feaa by cmc: control: the payloads other surfaces decode are named types

2026-09-04 15:58 UTC