feat(ux): improve CLI usability across add, remove, compile, and list#54
Merged
feat(ux): improve CLI usability across add, remove, compile, and list#54
Conversation
- add: parallelize fetchRegistry with Promise.all (faster --list) - add --list: show available assets (commands/templates/hooks/presets) - add interactive: offer rules vs assets at startup - add/remove: block format error now suggests category/name equivalent - remove interactive: shows rules and assets together with separators - compile --verbose: shows asset deployment separately from bridge files - list assets: show output path for each installed asset - assets: warn when template falls back to default output path - docs: update remove.mdx to document asset removal
- add.test.ts: tests for updateConfigAssets (preserve, replace, multi-type) - remove.test.ts: tests for mixed pulled+assets config state - assets.test.ts: tests for deployTemplates fallback and custom output_path - e2e/cli.test.ts: tests for block format hint in add/remove error messages
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
devw add --listnow shows available assets (commands, templates, hooks, presets) from the registry in addition to rulesdevw addinteractive mode offers an initial prompt to choose between Rules or Assets (commands/templates/hooks/presets)devw removeinteractive mode shows rules and assets together in a single checkbox list with group separatorsdevw compile --verboseshows asset deployment paths separately from bridge output filesdevw list assetsnow includes the output path for each installed asset typecategory/nameequivalent (e.g.typescript-strict→typescript/strict)output_pathis defined and the defaultdocs/specs/is usedfetchRegistrynow usesPromise.allfor parallel API calls (faster--list)Test plan
pnpm test)pnpm build)updateConfigAssets(3), mixed config state (2), template fallback (2), block format hint e2e (2)🤖 Generated with Claude Code