feat: add configurable plans directory via SUPERPOWERS_PLANS_DIR #340
+10
−3
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.
Fixes #337
Add configurable plans directory via SUPERPOWERS_PLANS_DIR environment variable
Motivation and Context
Currently, plan documents are always saved to
docs/plans/within the project directory. This can clutter the repository with planning documents that may not need to be committed. This change allows users to configure an external location for saving plans, keeping them separate from the codebase while still organizing them by project.How Has This Been Tested?
Manual testing with
SUPERPOWERS_PLANS_DIRset and unset to verify both code paths work correctly.Breaking Changes
None. The default behavior remains unchanged - plans are still saved to
docs/plans/whenSUPERPOWERS_PLANS_DIRis not set.Types of changes
Checklist
Additional context
When
SUPERPOWERS_PLANS_DIRis set, plans are saved to a project-specific subdirectory based on the current working directory path relative to~. For example, working in~/code/myorg/webappwithSUPERPOWERS_PLANS_DIR=~/Documents/planssaves to~/Documents/plans/code/myorg/webapp/YYYY-MM-DD-<feature-name>.md. The directory is created automatically if it doesn't exist.Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.