feat(cli): add config file support and content gate mode#55
Merged
Conversation
Adjust user config discovery to keep compatibility with existing macOS and Windows config locations while preserving the new preferred paths. Honor `XDG_CONFIG_HOME` on macOS before `$HOME/.config`, keep `$HOME/Library/Application Support` as a legacy fallback, and use `%USERPROFILE%\.config` on Windows with `%AppData%` as a fallback. Also keep inspect engine-view validation after config resolution, prevent debug-only config defaults from activating without debug, remove behavior-changing skipped-file defaults from example configs, and sync tests and docs to the final lookup contract.
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.
Summary
This PR adds first-class CLI config file support and related follow-up fixes, then updates repository automation to keep Node 22 CI/CD runs on the latest March 24, 2026 security patch release.
Changes
src/cli/config/examples/wc-config/Node.js >=22.18.0setup-nodepins from22.18.0to22.22.2in CI and release jobsMain Files Affected
.github/workflows/ci.yml.github/workflows/release.ymlREADME.mddocs/config-usage-guide.mddocs/schemas/default-config.mdexamples/wc-config/wc-intl-seg.config.jsonexamples/wc-config/wc-intl-seg.config.jsoncexamples/wc-config/wc-intl-seg.config.tomlsrc/cli/config/src/command.tstest/cli-config.test.tstest/command-config.test.tstest/example-config-files.test.tsBranch Delta Against
mainNotable commits in this branch:
feat(cli): add config parsing and discovery foundationfeat(cli): wire config precedence and detector defaultsfeat(cli): complete config file support and docsfeat(cli): add config support for content gate modefix(cli): restore config path compatibility fallbacksfix(cli): restore flag precedence for recursive and progress modesci(workflows): patch Node 22 CI/CD pins to 22.22.2Suggested Validation
bun run type-check bun test bun run build bun run verify:package-contentsNotes
package.jsonengines.nodebeyond>=22.18.0.