Skip to content

fix: default new CLI programs to 60-day cookies - #55

Merged
sonpiaz merged 1 commit into
mainfrom
fix/init-cookie-default60
Oct 19, 2026
Merged

sonpiaz merged 1 commit into
mainfrom
fix/init-cookie-default60

Conversation

@sonpiaz

@sonpiaz sonpiaz commented Oct 19, 2026

Copy link
Copy Markdown
Member

New programs created by affitor init now 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.

@sonpiaz
sonpiaz merged commit 7a1efbe into main Oct 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant