mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
Running any CLI command — even `omniroute --version` or `--help` — generated a 32-byte STORAGE_ENCRYPTION_KEY and created `~/.omniroute/.env` (or DATA_DIR/.env). A read-only command should never mutate the data dir. Gate the provisioning behind shouldProvisionStorageKey(): skip for --version/--help/help/completion and bare invocations; still provision for real commands (serve, keys, …) so the encryption key persists before storage is accessed (#1622).