mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
- 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.
156 lines
3.7 KiB
156 lines
3.7 KiB