Repository navigation
fix(cli): align ADB package-name schemas - #9675
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a2e19c7012
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const packageName = z | ||
| .string() | ||
| .min(1) | ||
| .max(256) |
There was a problem hiding this comment.
Reuse the domain-owned ADB package-name schema
This introduces a second hand-maintained copy of packageNameSchema from src/domain/adb/adbDeviceAnalysis.ts, although that validator is already accessible through the exported adbInputSchemas. All five CLI declarations now use this independent copy while shared CLI/MCP admission continues using the domain definition, so contract changes still require synchronized edits in two places—the source of the discovery/admission drift this fix addresses. Reuse adbInputSchemas.pull_adb_package.shape.package or export the domain primitive, completing the directly related single-owner refactor required by AGENTS.md.
AGENTS.md reference: AGENTS.md:L25-L25
Useful? React with 👍 / 👎.
Address the review finding: keep adbInputSchemas.pull_adb_package.shape.package as the single domain-owned rule and remove the inline duplicate added by morluto#9675.
Addresses #9674.
Aligns ADB CLI package arguments with the runtime package-name contract: dot-separated Java identifiers, non-empty, and at most 256 characters. This keeps CLI schema discovery consistent with runtime admission.