Skip to content

fix(cli): align ADB package-name schemas - #9675

Merged
morluto merged 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/adb-package-schema-v2
Nov 9, 2026
Merged

morluto merged 1 commit into
morluto:mainfrom
ShuaixinHuang:fix/adb-package-schema-v2

Conversation

@ShuaixinHuang

Copy link
Copy Markdown
Contributor

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T15:41:42.782242Z a2e19c7 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@morluto
morluto merged commit e9b6c87 into morluto:main Nov 9, 2026
4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 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".

Comment thread src/cli/adbCommands.ts
Comment on lines +44 to +47
const packageName = z
.string()
.min(1)
.max(256)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

lifetoldme added a commit to lifetoldme/rea that referenced this pull request Nov 9, 2026
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.
@morluto morluto added area: cli CLI adapter and one-shot commands bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants