Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Merge remote-tracking branch 'origin/main' into feat/command-harness

Jeromebe1f8ac70a12
diff --cc .claude/agents/quality-reviewer.md
index 530fcb4b,b1c06e8a..f999172d
--- a/.claude/agents/quality-reviewer.md
+++ b/.claude/agents/quality-reviewer.md
@@@ -101,19 -113,9 +113,19 @@@ Read the ticket spec at `TICKET_FILE`,
git -C <WORKTREE_PATH> diff "session-base/$SHORT"..HEAD
```
`session-base/<short>` is the fixed session fork anchor — a local ref, independent of the base branch's name (main, master, or a working branch). It needs no fetch and is not polluted by other sessions' merges into the base branch.
- 2. **Apply the rubric** below (Parts A and B). Also apply `coding-style.md` and `security-triggers.md` rules.
+ 2. **Apply the rubric** below (Parts A and B). Also apply `coding-style.md` and `security-triggers.md` rules. Use the `LSP` tool for impact analysis — `findReferences` / `incomingCalls` to confirm every call site of a changed function is handled, `goToDefinition` to verify a type is what the diff assumes. See `.claude/rules/lsp-usage.md` (it is read-only intelligence, not a forbidden validation command).
3. **Evidence rule for "missing X" findings (HARD RULE)** — before issuing a REJECTED for a missing artifact (i18n key, test file, view column, export…), verify the absence yourself with one Grep/Glob against the CURRENT worktree HEAD, and cite that check in the finding. A REJECTED that the developer disproves with a grep costs a full wasted cycle.
-4. **Emit verdict** as the final line of output using the OUTPUT CONTRACT format above.
+4. **Record your verdict flag (COMPLEX wave — required, do this BEFORE emitting the contract line).** The merger is gated on a per-ticket verdict flag; YOU are the source of truth for it — write it yourself with a single Bash call so it never depends on a post-stop transcript read (which races the flush and silently drops APPROVED). The flag dir is the `reviews/` sibling of your ticket file, i.e. `$(dirname "${TICKET_FILE}")/reviews` (which is `<session_dir>/reviews`):
+ - **APPROVED** → create the flag:
+ ```
+ RD="$(dirname "${TICKET_FILE}")/reviews" && mkdir -p "$RD" && touch "$RD/${TASK_ID}-quality-reviewer"
+ ```
+ - **REJECTED** → remove any stale flag so a prior APPROVED can't leak into the merge:
+ ```
+ RD="$(dirname "${TICKET_FILE}")/reviews" && rm -f "$RD/${TASK_ID}-quality-reviewer"
+ ```
+ Substitute the literal `TICKET_FILE` and `TASK_ID` from your spawn prompt. This step is COMPLEX-wave only — skip it in SIMPLE mode and migration-review mode (no ticket, no per-ticket flag).
+5. **Emit verdict** as the final line of output using the OUTPUT CONTRACT format above.
**DO NOT:**
- Run validations (typecheck, prettier, unit, e2e) — hooks do this.
diff --cc .devcontainer/post-create.sh
index beae15b7,b32a062d..7befd052
--- a/.devcontainer/post-create.sh
+++ b/.devcontainer/post-create.sh
@@@ -1,12 -1,7 +1,16 @@@
#!/usr/bin/env bash
+set -euo pipefail
- sudo npm install -g supabase
+ claude plugin marketplace add anthropics/claude-plugins-official
+ claude plugin marketplace update claude-plugins-official
+ claude plugin install typescript-lsp
+
+ sudo npm install -g supabase typescript-language-server
+
+# Install Playwright browsers using the REPO's pinned playwright version (resolved
+# from node_modules after the ./npm feature ran `npm install`), so the downloaded
+# browser revision always matches what package.json/package-lock.json expect.
+# Doing it here — instead of the playwright feature's floating `npx playwright
+# install` — is what keeps the repo the single source of truth for the version and
+# avoids the "browser revision X installed but the repo wants Y" mismatch.
+npx playwright install chromium chromium-headless-shell
diff --cc makefile
index 0f8a06f7,ba7537cf..a47b2ce2
--- a/makefile
+++ b/makefile
@@@ -16,9 -16,16 +16,16 @@@ help
install: package.json ## install dependencies
npm install
-install-playwright-browsers: install ## install the playwright browsers (chromium, firefox, webkit)
- npx playwright install chromium
+install-playwright-browsers: install ## install the playwright browsers matching the repo's pinned version
+ npx playwright install chromium chromium-headless-shell
+ install-claude-plugins:
+ claude plugin marketplace update claude-plugins-official
+ claude plugin install typescript-lsp@claude-plugins-official
+
+ install-lsp:
+ npm install -g typescript-language-server
+
start-supabase: ## start supabase locally
npx supabase start