Open
Conversation
added 4 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. init.ts reduced from 638 to 281 lines. No test changes needed — all 67 tests pass with unchanged exports.
import.meta.dirname only exists in Node 21.7+, causing CI failures on Node 18 and 20. Use the standard fileURLToPath/dirname pattern.
dean0x
pushed a commit
that referenced
this pull request
Feb 13, 2026
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.
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
init.tsmonolith into focused modules:src/cli/utils/cli.ts— sharedisClaudeCliAvailable()(was copy-pasted in both init.ts and uninstall.ts)src/cli/utils/installer.ts—installViaCli(),installViaFileCopy(),copyDirectory(),chmodRecursive()src/cli/utils/post-install.ts— 5 post-install step functions +NodeSystemErrorguard + pure helpersuninstall.tsto@clack/prompts— replaced all 38console.log/console.errorcalls with clack equivalents for consistent UX across both CLI commandsTest plan
npm run buildsucceeds (8 plugins)npm test— all 67 tests pass (no test changes needed, exports unchanged)node dist/cli.js init --list— renders with clack formattingnode dist/cli.js uninstall --help— runs without errorconsole.logcalls remaining in uninstall.ts