monoscope/cli/monoscope-cli.cabal
Anthony Alaribe 16246fde0c One operation table for the CLI and MCP; granite charts, table-layout tables
- shared/src/Web/Operations.hs declares every /api/v1 operation once: MCP tool
  name, agent access, description, and its CLI command, arguments and listing
  columns. AgentCatalog.apiOperations and the CLI's per-resource command types,
  parsers and dispatch now derive from it; a generic parser and runCall replace
  them, and ResourceKind is gone. Typed Method/Verb, Input, Arg and Listing keep
  invalid argument shapes unrepresentable.
- Agent local tools: single-use KQL/tool helpers folded into executeLocal; tool
  names in errors come from the operation. get_code_context no longer builds a
  throwaway cache (fetchSourceEvidence takes Maybe Cache).
- Derived names: constructorName (Generic) for actionName/operationName,
  slackReadName via encodeEnumSC (SearchPersonal -> SearchPublicAndPrivate),
  StreamFrame ToJSON via deriving-aeson.
- CLI charts on granite (round ticks, exact x range, width-exact) and tables on
  table-layout (widest column absorbs overflow, single-line header rule).
- retry replaces hand-rolled backoff in retryOnDeadlock, retryOnPoolExhaustion
  and the CLI's withRetry; agoText replaces prettyTimeShort; http-types urlEncode
  in the CLI; text-metrics levenshtein replaces editDistance.

Net about -970 lines.
2026-11-03 22:35:58 +01:00

156 lines
3.7 KiB