feat: post init config command - #4577
Open
therightstuff wants to merge 3 commits into
Open
therightstuff wants to merge 3 commits into
therightstuff wants to merge 3 commits into
Conversation
Expose persisted project settings and extension management through specify config. Keep integration-owned settings protected and reject invalid configuration before updating it. Add an isolated workflow verifier, regression coverage, and configuration documentation. Assisted-by: Codex (model: GPT-6, autonomous)
The upstream artifact catalog discovers scripts at the core script root. Move the contributor-only verifier into scripts/dev and update its callers so it does not appear as a runtime artifact. Assisted-by: Codex (model: GPT-6, autonomous)
Reject config writes that would disable legacy command registration. Add script-upgrade regression coverage and document the supported configuration and lint workflows. Assisted-by: Codex (model: GPT-6, autonomous)
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.
Add post-initialization project configuration
Description
Adds
specify configso users can inspect and change supported project settingsafter initialization:
listandlist --jsonshow persisted settings and installed extensions.get <key>reads a setting;set feature-numbering sequential|timestampupdates numbering while preserving other settings.
specify integration useorupgrade, which regenerate the affected agent files. Read-only metadata andunknown keys receive distinct errors.
config extensionexposes the existing extension lifecycle commands.Configuration writes reject malformed or unreadable initialization files.
Legacy projects without an options file must select or install an integration
first, preventing a settings update from disabling legacy command registration.
Includes configuration reference documentation and a developer verifier that
exercises the workflow in a disposable project, including when
SPECIFY_INIT_DIRpoints to an existing project.Testing
179 focused tests passed:
source .venv/bin/activate python -m pytest tests/test_config_cli.py \ tests/test_verify_post_initialization_configuration_script.py \ tests/integrations/test_integration_subcommand.py -qCoverage includes configuration validation and persistence, legacy extension
registration, disposable-project verification, script-upgrade regeneration,
and preservation of customized commands and saved settings on refused upgrades.
uvx --offline ruff@0.15.0 check src testsandgit diff --checkpassed.The full repository test suite was not run.
AI Disclosure
Codex (GPT-6) assisted with implementation, review, tests, and documentation.