Skip to content

feat(cli): refactor devw add to use GitHub registry, remove blocks#43

Merged
gpolanco merged 9 commits intomainfrom
feat/refactor-add
Feb 12, 2026
Merged

feat(cli): refactor devw add to use GitHub registry, remove blocks#43
gpolanco merged 9 commits intomainfrom
feat/refactor-add

Conversation

@gpolanco
Copy link
Copy Markdown
Owner

Summary

  • Remove devw pull: absorbed into devw add, delete command + tests
  • Remove blocks system: delete blocks/registry.ts, blocks/installer.ts + tests, simplify prebuild
  • Rewrite devw add: interactive mode (category select → multi-select rules → multi-category flow → summary → confirm) and direct mode (devw add category/rule). Flags: --list, --force, --dry-run, --no-compile. Detects old block format with migration error. Back navigation, installed indicators, clean Ctrl+C
  • Rewrite devw remove: works with pulled rules (category/rule format), interactive + direct modes
  • Update list and init: blocks deprecation message, updated "What's next" hints
  • Update tests: remove block-dependent E2E/output tests, add new add/remove unit + E2E tests (243 pass)
  • Update docs: all public docs, CLAUDE.md, CONTRIBUTING.md reflect rules registry

Changes

Commit Scope
remove devw pull command Delete pull.ts + tests, remove from index.ts
remove blocks system Delete blocks/ + tests, simplify prebuild
rewrite devw add New add.ts with registry + interactive UX, new add.test.ts
rewrite devw remove New remove.ts for pulled rules, new remove.test.ts
update list and init Deprecation message + hints
update tests E2E + output tests cleaned
update documentation 9 doc files updated

Test plan

  • pnpm build — compiles without errors
  • pnpm test — 243 tests pass, 0 failures
  • devw add --list — lists categories from GitHub registry
  • devw add typescript/strict — downloads and installs rule
  • devw add (interactive) — category select → rule multi-select → summary → install
  • devw add typescript-strict (old format) — shows migration error
  • devw remove typescript/strict — removes rule + updates config
  • devw list blocks — shows deprecation message
  • devw list rules — shows installed rules with source

The pull command logic is absorbed into devw add.
Removes pull.ts, its tests, and the registerPullCommand call from index.ts.
Delete blocks/registry.ts, blocks/installer.ts and their tests.
Simplify prebuild script to only copy README.
Replace local blocks with rules fetched from the GitHub registry.
Two modes: interactive (category select + multi-select rules + multi-category flow)
and direct (devw add category/rule).

Features: --list, --force, --dry-run, --no-compile flags,
back navigation, installed indicators, clean Ctrl+C handling,
old block format detection with migration error.
Replace block-based removal with pulled rules management.
Interactive mode with multi-select, direct mode with category/rule format.
Old block format detected with migration error.
listBlocks() now shows deprecation message pointing to pulled rules.
init "What's next" messages updated from blocks to rules registry.
Remove block-dependent tests from cli.test.ts and output.test.ts.
Add tests for new add/remove error cases: non-TTY, old block format,
invalid format, non-installed rule removal.
Replace all references to blocks and devw pull with rules registry
and devw add <category>/<rule> format.

Updated: CLAUDE.md, CONTRIBUTING.md, content/rules/README.md,
docs/commands/add.mdx, docs/commands/remove.mdx, docs/commands/list.mdx,
docs/index.mdx, docs/quickstart.mdx, docs/concepts/blocks.mdx.
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
landing Ready Ready Preview, Comment Feb 12, 2026 0:35am

Replace block cards showcase with interactive mode terminal demo
(category select → rule select → confirm → install) plus direct mode
alternative. Update rule cards to category/rule format.

Update terminal tabs: add shows interactive flow, remove uses
category/rule format, init/doctor/list references updated.
Proof strip: "Rule blocks" → "Registry rules", 137 → 243 tests.
@gpolanco gpolanco merged commit e9f1b09 into main Feb 12, 2026
4 checks passed
@gpolanco gpolanco deleted the feat/refactor-add branch February 12, 2026 00:36
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