refactor: consolidate CLI flags into interactive prompts#55
Merged
Conversation
added 6 commits
February 13, 2026 12:10
- Bump version 0.9.0 → 1.0.0, date CHANGELOG - Add Vitest test suite (59 tests across 6 files) - Extract pure functions from init.ts and uninstall.ts for testability - Add CI workflow (Node 18/20/22 matrix) and CONTRIBUTING.md - Remove devflow-catch-up and devflow-devlog plugins (superseded by Working Memory hooks) - Update all docs, registry, and marketplace to reflect 8-plugin architecture
Add platform-aware safe-delete tip after "Available commands" during init. Suggests trash-cli on macOS/Linux with install/alias hints.
Extract shared utilities from init.ts monolith: - cli.ts: shared isClaudeCliAvailable() - installer.ts: installViaCli(), installViaFileCopy(), copyDirectory(), chmodRecursive() - post-install.ts: installSettings(), installClaudeMd(), installClaudeignore(), updateGitignore(), createDocsStructure() Migrate uninstall.ts from raw console.log to @clack/prompts for consistent UX across both CLI commands. Fix Node 18/20 compat in build-plugins.ts (import.meta.dirname → fileURLToPath/dirname). init.ts reduced from 638 to 281 lines. All 67 tests pass unchanged.
Remove 3 flags from init (--list, --skip-docs, --override-settings) and replace them with interactive prompts as the primary UX: - Plugin selection via p.multiselect() with non-optional plugins pre-selected and devflow-core-skills silently injected - .docs/ creation conditional on scope=local (not a flag) - installSettings self-prompts when settings exist without hooks (no longer requires --override-settings flag gate) Uninstall gains two interactive prompts: - Scope selection when multiple scopes detected - .docs/ deletion confirmation (replaces warning-only behavior) Remaining flags (--scope, --plugin, --verbose, --keep-docs) stay as CI/scripting overrides. Non-TTY uses safe defaults.
…all parity Replace silent post-install config with an interactive multiselect so every system change is visible and opt-in. Add shell profile auto-install for safe-delete (bash/zsh/fish/PowerShell). Enhance uninstall to prompt for claudeignore, settings hooks, CLAUDE.md, and safe-delete removal. Fix spinner starting before path resolution. Return gitRoot from getInstallationPaths.
Eliminate 10 per-command `cd "$CWD"` subshell spawns in statusline.sh, replacing with a single `cd` at the top of the git block. Fixes 1-char-per-line rendering on cold session start. Remove `"model": "opus"` from settings.json template — users choose their own model.
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.
Summary
--scopeand--pluginflags with interactive@clack/promptsmultiselect/select prompts duringinitanduninstallp.multiselectwith all pre-selectedcd "$CWD"subshell spawns → singlecdat top of git block, fixing 1-char-per-line rendering on cold session start"model": "opus"— users choose their ownTest plan
npm run build— cleannpm test— all 100 tests passtime statusline.sh— 0.166s (was noticeably slower with subshells)modelfield