monoscope/cli/test
Anthony Alaribe 77e31fd6a4
Typed follow-ups: git errors, /api/v1 refusals in the route types, typed GET fragments (#802)
* Typed follow-ups: GitConnError, /api/v1 problem envelope declared per route, typed GET fragments

Pkg.Git local validation returns GitConnError instead of Text. /api/v1 refusals and
Servant's own rejections answer one {"error": ApiProblem} envelope, declared per
route via Refuses for OpenAPI/MCP; the CLI prints its message. Remaining
RespHeaders (Html ()) fragments (Telemetry, Issues, CodeContext, Dashboards,
Settings, LogExplorer) return typed view values.

* Review fixes: closed ProblemCode shared with the CLI, split git origin errors, MCP shows refusal messages

ApiProblem moves to monoscope-shared with a closed ProblemCode enum; ApiError
owns every code. Servant rejections no longer guess a field from message text.
Refuses takes one status per combinator. Origin/endpoint/connection errors are
separate types; snippets report ConnectionInvalid. Metric fragments share one
record; the code-mappings picker route returns the fragment it swaps.
History 2026-11-06 16:58:47 +01:00
..
Main.hs Typed follow-ups: git errors, /api/v1 refusals in the route types, typed GET fragments (#802) 2026-11-06 16:58:47 +01:00