monoscope/cli/exe
Anthony Alaribe 26a0d78df8 Split the CLI into its own package so it no longer needs libpq
The monoscope binary linked lib:monoscope, which drags in libpq, librdkafka,
grpc, protobuf, snappy, lz4 and zstd. Anyone installing just the CLI had to
install all of them first.

- New monoscope-shared package holds the DB-free modules the server and CLI
  genuinely share (wire types, KQL grammar, HTTP effect, formatting).
- New monoscope-cli package owns CLI.*; it depends on monoscope-shared only.
- Pkg.Deriving splits the pure DerivingVia wrappers out of Pkg.DeriveUtils
  (which re-exports them, so no call site changes).
- Web.Wire homes Paged / device-flow / FacetValue away from their DB-bound
  modules.
- runCLILifecycle moves into the integration suite, which can see both packages.

The produced binary now links only libSystem, zlib, ncurses, iconv and ffi.
History 2026-08-06 01:17:03 +02:00
..
Main.hs Split the CLI into its own package so it no longer needs libpq 2026-08-06 01:17:03 +02:00