Repository navigation
refactor(cli): split config command implementation - #113248
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 24, 2026 05:58
steipete
force-pushed
the
codex/z-config-cli-split
branch
from
July 24, 2026 06:37
1d6f5f1 to
ee8868a
Compare
Contributor
Author
|
Final-head real CLI proof on This exercises a real non-destructive write, validation/readback, and a dry-run whose proposed value is not persisted. The branch was also rebased cleanly onto current |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 25, 2026
* refactor(cli): split config command implementation * refactor(cli): keep split helpers private * style(cli): format private unset result
This was referenced Oct 8, 2026
This was referenced Oct 15, 2026
This was referenced Oct 21, 2026
This was referenced Nov 2, 2026
Closed
1 of 2 tasks
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.
What Problem This Solves
src/cli/config-cli.tshad grown to 2,913 lines and was the largest production TypeScript file in the repository. Path parsing, config mutation, SecretRef/provider input handling, validation, write execution, and Commander registration all lived in one module behind a grandfathered max-lines suppression.Why This Change Was Made
Split the implementation along existing responsibility boundaries while retaining
src/cli/config-cli.tsas the public command/export surface:Every production module is now below 700 lines. The obsolete
src/cli/config-cli.tsmax-lines baseline entry is removed. No config, environment, protocol, schema, or CLI contract changed.User Impact
None. This is a behavior-neutral internal refactor; command names, options, outputs, exports, validation, and config writes remain unchanged.
Evidence
LOC (
git diff --numstat origin/main...HEAD):Proof:
node scripts/check-changed.mjs -- src/cli/config-cli.ts src/cli/config-cli-input.ts src/cli/config-cli-model-normalization.ts src/cli/config-cli-path.ts src/cli/config-cli-runner.ts src/cli/config-cli-validation.ts config/max-lines-baseline.txt— passed on Blacksmith Testbox (tbx_01ky99jexevzce78ach8nhw2q9), including production/test typecheck, formatting, core lint, max-lines ratchet, dependency guards, and zero runtime import cycles.node scripts/run-vitest.mjs src/cli/config-cli.test.ts src/cli/config-cli.integration.test.ts src/cli/program.smoke.test.ts— passed, 3 files / 158 tests.node scripts/crabbox-wrapper.mjs run --provider blacksmith-testbox --timing-json --shell -- "corepack pnpm build"— passed on Blacksmith Testbox (tbx_01ky9an2m5m082vb2ys9yrgn8b).pnpm deadcode:dependenciesandpnpm deadcode:exports— passed on Blacksmith Testbox (tbx_01ky9byy2vtkd8m34zf0c3p8vs) with zero unused exports after keeping split-only helpers private..agents/skills/autoreview/scripts/autoreview --mode uncommitted— clean after fixing the accepted segment-comparison finding; no accepted/actionable findings remain.git diff --check— passed.