diff --git a/.changeset/add-watch-command.md b/.changeset/add-watch-command.md new file mode 100644 index 0000000..3187056 --- /dev/null +++ b/.changeset/add-watch-command.md @@ -0,0 +1,22 @@ +--- +"dev-workflows": minor +--- + +### CLI + +- Add `devw watch` command — watches `.dwf/` for YAML changes and recompiles automatically +- Extract `executePipeline` from compile with structured return types (`BridgeResult`, `CompileResult`) +- Add `reload` icon to shared `ICONS` in `utils/ui.ts` +- Add chokidar v3 dependency for filesystem watching + +### Documentation + +- Add `devw watch` to README commands table +- Add `docs/commands/watch.mdx` for Mintlify docs site +- Register watch page in `docs.json` navigation + +### Landing + +- Add watch tab to terminal demo section +- Add global `*:focus-visible` with `var(--accent)` for consistent focus styling +- Fix active tab border to use `var(--accent)` diff --git a/CLAUDE.md b/CLAUDE.md index 33bfd3b..456c5aa 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -29,8 +29,9 @@ pnpm dev # dev mode - `docs/internal/CLI_SPEC.md` → v0.1 specification (COMPLETE) - `docs/internal/CLI_SPEC_v0.2.md` → v0.2 specification (COMPLETE) -- `docs/internal/CLI_SPEC_v0.2.1.md` → v0.2.1 UX polish specification (ACTIVE — implement this) -- `docs/internal/DOCS_SPEC.md` → Mintlify documentation spec +- `docs/internal/CLI_SPEC_v0.2.1.md` → v0.2.1 UX polish specification (COMPLETE) +- `docs/internal/DOCS_SPEC.md` → Mintlify documentation spec (COMPLETE) +- `docs/internal/WATCH_SPEC.md` → v0.3 watch mode specification (ACTIVE — implement this) - `docs/internal/DECISIONS.md` → accepted decisions (source of truth if conflict) - `docs/internal/` is gitignored — internal specs not published diff --git a/README.md b/README.md index c8f6826..ffbcd74 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ You define rules in YAML. The compiler generates each editor's native format. Ch | `devw add ` | Install a prebuilt rule block | | `devw remove ` | Remove a rule block | | `devw compile` | Generate editor-specific rule files | +| `devw watch` | Watch `.dwf/` and recompile on changes | | `devw doctor` | Validate config and detect rule drift | | `devw list rules` | List all active rules | | `devw list blocks` | List installed blocks | diff --git a/apps/landing/index.html b/apps/landing/index.html index 0356c4e..e3814d9 100644 --- a/apps/landing/index.html +++ b/apps/landing/index.html @@ -98,6 +98,7 @@ } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } * { scrollbar-width: thin; scrollbar-color: var(--border) transparent; } +*:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; } /* Reduced motion */ @media (prefers-reduced-motion: reduce) { @@ -1050,8 +1051,8 @@ } .term-tab.active { color: var(--accent); - border-bottom-color: var(--accent); - background: rgba(34,211,126,0.03); + border: 1px solid var(--accent); + background: rgba(34,211,126,0.08); } .term-tab-arrow { font-weight: 700; @@ -1439,7 +1440,7 @@