Skip to content

v0.6.2

Choose a tag to compare

@AusafMo AusafMo released this 28 Nov 23:33
304797e

cfgit 0.6.2

Try cfgit in one command, with no database, Docker or config to set up first:

uvx --python 3.12 --from 'cfgit[demo]' cfg demo

cfg demo starts a throwaway Postgres, seeds a few sample config records (two agent configs and a feature flag) and plays the core story with real commands:

  1. a tracked change;
  2. someone edits a record straight in the database;
  3. cfgit refuses the next write and explains the fix;
  4. diff, then adopt;
  5. restore --discard-drift throws away an unreviewed flag flip;
  6. log, then restore @1.

It takes about 6 seconds.

  • No Docker needed: Postgres comes embedded via the new demo extra. Where that build is missing (Linux ARM, Python 3.13+), it uses a postgres:16-alpine Docker container instead.
  • Isolated: it runs in a temp directory, never touches your own .cfg.toml or CFG_* settings, and cleans up when it ends, including on Ctrl-C.
  • Options:
    • --step waits for Enter between steps; --fast drops the pauses.
    • --keep leaves the database running and prints the MCP server config, so you can hand it to an agent and watch the same refusal happen there.
    • cfg demo --stop shuts it down.

The --python 3.12 pin is there because the embedded Postgres package ships builds up to Python 3.12. uv downloads that Python for you.

PR: #83.