Repository navigation
chore: make a domain missing from domains.json a warning, not a failure - #62
Conversation
domains.json gives a domain its description and its place in deel --help. A domain it does not list works like any other and is listed last, with only its command count, but the command map check failed on it, so the first endpoint of a new domain stopped every new command from being added. It is a warning now.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Universal code reviewer
🟢 Approval recommended · Confidence 99 / 100
Round 1 · head e3409d6 · full review of 4 files · Duration: 5m 45s · View DCA Session
Found: 0 🔴 CRITICAL · 0 🟠 HIGH · 0 🟡 MEDIUM · 1 ⚪ LOW
Open (0)
No must-fix or advisory inline findings.
Low priority, not posted inline (1)
README.md:519· README calls domains.json optional; CONTRIBUTING.md:90 still says every domain needs an entry in it
What changed in this PR
scripts/check-command-map.ts now reports a command-map domain that is missing from src/public-api/domains.json as a warning instead of a failure (the file only supplies descriptions and deel --help ordering). Tests and README are updated, and scripts/doctor-hashes.json is regenerated (hashes verified).
| File | Change |
|---|---|
README.md |
domains.json described as optional |
scripts/check-command-map.ts |
unlisted domain is a warning, comment updated |
scripts/doctor-hashes.json |
hashes for the three changed files |
test/check-command-map.test.ts |
tests expect a warning, not a failure |
Reviewers run: ucr-bugs-reviewer, ucr-security-reviewer, ucr-performance-reviewer, ucr-types-conventions-reviewer, ucr-repo-rules-reviewer, ucr-tests-reviewer, ucr-infosec-reviewer, permission-framework-auth-sdk-ucr-reviewer, public-api-reviewer-subagent, dba-ucr-reviewer. Rules referenced: none.
Description
src/public-api/domains.jsongives each domain its description and its place indeel --help(its stage orders the root list). It is presentation only: a domain it does not list works like any other anddeel --helpalready lists it last, with just its command count (help.test.tscovers that). Butnpm run check:command-mapfailed on such a domain, so the first endpoint of a new domain (for example a newintentsdomain) failed the command checks and every command added with it had to wait for someone to edit this file.It is a warning now:
warn 'intents' is not in src/public-api/domains.json: deel --help lists it last, without a description, until it has a stage and a description there. The other checks on the map are unchanged, and so is the warning for a domain the file lists that no command uses. The README says the file is optional.Testing
How I Tested:
npm run doctorpasses (typecheck, tests with the coverage gate, manifest, lockfile, version and shell checks, build smoke).warnline and noFAILline for it.intentsdomain and in domains the file lists (names written into the map, manifest regenerated):command map: 0 failure(s), 2 warning(s), anddeel --helpshowsintents 6 commandsaftercontracts. Before this change the same replay failed with'intents' is not in src/public-api/domains.json.Release checklist
npm run checkpasses locally (typecheck, tests + coverage gate, manifest / lockfile / version / shell checks)src/manifest.generated.tsuntouched, or regenerated with thedeel-cli-extractorskill (never hand-edited) and the PR labelledscript-generatedbug/enhancement/refactor/documentation/chore🤖 Generated with Claude Code