Repository navigation
feat(cli): wire documented-but-unrouted commands (secrets validate, env diff) - #28
Merged
Merged
Conversation
…nv diff A command-surface audit (README/COMMANDS vs actual routing) found two commands advertised in the docs but routed nowhere — running them errored, while complete implementations sat orphaned (validateSecrets, diffEnvFiles). - kit secrets validate [--fix|--auto]: verify every declared key resolves in its backend (real availability via resolveViaBackend; env/config short-circuits). Read-only by default, exits non-zero on missing/unfixable; writes go through the existing gated backend writer. - kit env diff --compare <env>: drift between .env.local and .env.<env>; prints key presence + value hashes only, never raw values. Adds CLI integration tests for both (routing + exit codes). Closes the 'documented command that does not run' launch-credibility gap. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
|
✅ Docker image built successfully
|
Merged
sandstream
added a commit
that referenced
this pull request
Jun 22, 2026
Cut 1.13.0 from the 11 PRs merged since v1.12.0. Backfilled the CHANGELOG entries that landed without one (full-disk-encryption check #26, secrets validate + env diff #28, .gitignore shared-memory fix #24, ~30k-line dead-code flush #27/#30) and dated the section. Minor bump: all additive or dead-code removal, nothing breaking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A command-surface audit (every command in README/
COMMANDS.mdvs whatcli.ts/commands/actually route) found two documented commands that were routed nowhere — running them errored with "Unknown subcommand", while complete implementations sat orphaned and unimported (validateSecrets,diffEnvFiles). Classic "looks-real-but-unwired" — exactly the kind of thing a skeptic hits in the first 60 seconds and calls "vibe-coded".This wires them so the docs are true.
Changes
kit secrets validate [--fix] [--auto]— verifies every key declared in[secrets.keys]resolves to a non-empty value. Real availability viaresolveViaBackend(env/config short-circuit). Read-only by default, exits non-zero on missing/unfixable;--fixprompts interactively,--autopulls from.env.template. Writes go through the existing gated backend writer (read-only mode still refuses them).kit env diff --compare <env>— drift between.env.localand.env.<env>. Prints key presence + short value hashes only — never raw values, safe to run anywhere.Verification
npm run buildclean (0 tsc errors).cli.test.ts);env-diff/secrets-validatelib tests green (13/13).kit env diff --compare staging→ correctly shows keys only-in-local / only-in-staging / changed (hashes), exit 0.kit secrets validatewith one env key set, one missing → flags the missing key, exit 1.🤖 Generated with Claude Code
https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
Generated by Claude Code