From 1cd3dc523e09322a11f3d6ffe429d18a84731324 Mon Sep 17 00:00:00 2001 From: "developerz-ai[bot]" <286432749+developerz-ai[bot]@users.noreply.github.com> Date: Tue, 22 Sep 2026 06:55:25 +0000 Subject: [PATCH] docs(claude): list src/errors.ts under Architecture The Quality rule "Custom error classes. Never generic Error" pointed to a module that the Architecture bullet list did not name. Add the entry so enforcers find the owning module without grepping. Dz-Task-Id: tsk_7802db80eeb3476c87b37ab2487385ee --- CLAUDE.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index c17299c..b730e06 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -45,6 +45,9 @@ code, asks again. Loop until the UI works. No human clicking. - `src/config/` — load the project config (`.dz/ui-debugger/ui-debugger-mcp.json` first, root `.ui-debugger-mcp.json` fallback), resolve model/targets. - `src/services/` — business logic. Thin handlers, logic here. +- `src/errors.ts` — custom error classes (base `UiDebuggerError` + `ConfigError` / + `AdapterError` / `AuthError` / `AgentError` / `WorkspaceError` / `ProviderError` / + etc.). No generic `Error`. ## Targets (one project, many) | Target | Adapter | Protocol | Reads |