v0.2.0
Two additions, both about getting data safely off the server — which was the one gap in v0.1.0's safety story: it could run a migration but not back up before one.
Added
db_dump(cdmon db:dump [file]) — export the whole database as SQL, schema and data, every table. Read-only, so it needs noCDMON_ALLOW_WRITES, the same standing asdb_query. The backup to take before letting anything neardb_execute. A response that comes back as an HTML page rather than SQL is raised, never returned — a backup that is secretly an error page is worse than none.cdmon files:download <remote> <local>— stream a remote file to disk, byte for byte, any size. For backups and binaries, whichfiles:readcannot handle: reading a JPEG throughfiles:readdecodes it as UTF-8 and corrupts it. Command line only, because the MCP tools never take a local filesystem path.
Both verified against a live cdmon site: a 31-table dump that ends on the proper trailer, and a 126 KB JPEG downloaded with its magic bytes intact.
No breaking changes. See the CHANGELOG and docs/tools.md.