Skip to content

chore: make a domain missing from domains.json a warning, not a failure - #62

Merged
guilherme-soares-deel merged 2 commits into
devfrom
fix/unknown-domain-is-a-warning
Nov 24, 2026
Merged

guilherme-soares-deel merged 2 commits into
devfrom
fix/unknown-domain-is-a-warning

Conversation

@guilherme-soares-deel

Copy link
Copy Markdown
Collaborator

Description

src/public-api/domains.json gives each domain its description and its place in deel --help (its stage orders the root list). It is presentation only: a domain it does not list works like any other and deel --help already lists it last, with just its command count (help.test.ts covers that). But npm run check:command-map failed on such a domain, so the first endpoint of a new domain (for example a new intents domain) 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 doctor passes (typecheck, tests with the coverage gate, manifest, lockfile, version and shell checks, build smoke).
  • The check's tests now expect a warning, with no failure, for a domain the file does not list; the whole-script test expects a warn line and no FAIL line for it.
  • Replayed 16 new commands in a new intents domain and in domains the file lists (names written into the map, manifest regenerated): command map: 0 failure(s), 2 warning(s), and deel --help shows intents 6 commands after contracts. Before this change the same replay failed with 'intents' is not in src/public-api/domains.json.

Release checklist

  • npm run check passes locally (typecheck, tests + coverage gate, manifest / lockfile / version / shell checks)
  • User-facing change → README updated
  • src/manifest.generated.ts untouched, or regenerated with the deel-cli-extractor skill (never hand-edited) and the PR labelled script-generated
  • No credentials, tokens or personal data in tests, fixtures, logs or this description
  • Exactly one type label: bug / enhancement / refactor / documentation / chore

🤖 Generated with Claude Code

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.
@guilherme-soares-deel guilherme-soares-deel added chore Maintenance and tooling ai-assisted PR created or modified with AI assistance labels Nov 24, 2026
@deel-ai-studio-app-9

This comment has been minimized.

@deel-ai-studio-app-9 deel-ai-studio-app-9 Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@guilherme-soares-deel
guilherme-soares-deel merged commit d86e1e0 into dev Nov 24, 2026
3 checks passed
@guilherme-soares-deel
guilherme-soares-deel deleted the fix/unknown-domain-is-a-warning branch November 24, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted PR created or modified with AI assistance chore Maintenance and tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant