Repository navigation
fix: default new CLI programs to 60-day cookies - #55
Merged
Merged
Conversation
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.
New programs created by
affitor initnow default to a 60-day cookie window, both when the option is omitted and when the interactive default is accepted. Explicit durations are preserved, and already configured projects still exit without writes. The README explains the default and override.Validation: reproduced both default cases failing against unchanged runtime (2 failed, 7 passed), then all 9 regression cases passed using real
runInit, the API client, a loopback HTTP server and saved config assertions. The interactive case uses the real prompt function with an input adapter returning its supplied default. Explicit 30/90/365-day options, a 90-day prompt choice, the registered CLI parser, and existing-file preservation are covered.Full workspace tests: 353 passed, 6 Windows-only tests skipped on macOS. Build, lint, secret scan and public-repository audit passed. No version bump or npm publish; this changes defaults for future creations only.