Repository navigation
[CTX-2246] feat(cli): inspect and scaffold per-plugin settings - #2299
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 20, 2026
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.
Priority: P2 | Area: area:config | Labels: feat,P2,area:config | Milestone: 0.0.25 | RFC: CTX-1195 per-plugin config files | Task: CTX-2246
Closes #2246
Summary
Adds
bitty plugin config show <id>andbitty plugin config scaffold <id>for per-plugin settings, following the corrected resolution model (<owner>.<name>.luacanonical → unambiguous<name>.luaalias → legacy<owner>.<name>.toml→ manifest defaults).config show <id>prints the declared[settings]schema (key, type, default, description when present), the canonical/alias/legacy candidate paths and the selected file, and every effective value with its serving layer (manifest-default,host,user-file). The bounded plain settings VM resolves the file exactly as activation does; the plugin VM is never created or executed.config scaffold <id>writes a commented canonical Lua template from manifest defaults only.--initis the issue-shape alias. It refuses to overwrite without--force, always refuses symlinked targets and symlinkedplugins/directories, keeps the write inside the environment-derived config root, and commits atomically (create_newtemp + hard-link no-clobber, or atomic rename with--force, mode 0600).UnknownPlugin,SchemaUnreadable,ConfigRejected,UndeclaredKey,NoSettings,AlreadyExists,SymlinkTarget,InvalidTarget,UnsafePath(exit 4),IoError(exit 4).--json/--format json) envelope for scripting.Tests
bitty-runtime: per-key layer attribution, selected-file kind (canonical/alias/legacy/none), config path fail-closed rules.bitty-terminalunit: parser shapes/aliases/conflicts, scaffold round-trip through the plain settings VM, hostile-default escaping, refuse-overwrite, no-settings, unsafe id, symlink target + symlink dir.cli_pluginend-to-end: schema/source rendering, JSON envelope, canonical vs legacy selection, unknown plugin, undeclared key, malformed file, unreadable stored schema, scaffold round-trip → show, refuse-overwrite,--force,--init, symlink refusal, owner-only mode, no temp-file leftovers.Gates
cargo fmt --allcargo clippy --workspace --all-targets --locked -- -D warningscargo clippy -p bitty-terminal --features dev-tools --all-targets -- -D warningscargo nextest run -p bitty-terminal -p bitty-runtime -p bitty-config --locked(4337 passed, 3 skipped)cargo check --target x86_64-pc-windows-gnu --workspace --all-targets --lockedDocumentation follows in a docs-only
bitty-terminal-docsPR.