Repository navigation
fix(cli): parse inspect options before checking diagram type - #829
rudycelekli wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review.
|
Codex Review SummaryThis 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. |
|
Refreshed the description against the current head The focused result is 5 passed, 0 failed, 0 skipped on Node 22.23.2; the matching-head upstream checks have no failures or pending jobs. |
de39d66 to
ae094d8
Compare
tt-a1i
left a comment
There was a problem hiding this comment.
Agent-assisted technical review; this pass reuses the identified earlier evidence, with no new local test run.
The inspect fix is technically sound at ae094d8125a72797ea40d89144550ac1bdec27f4. Checking the architecture-only restriction after the shared parser removes the flag-ordering bug without expanding inspect’s supported diagram types. The independent same-head focused comparison passed 5 cases and failed the added regression on base; that evidence remains applicable because the head is unchanged. Currentdev still contains the raw args[0] check. The red CI result is the old README signal-flow artifact drift, separate from inspect. Please integrate current dev with the author history intact, rebuild the combined package and verify final-head checks; do not add another option parser or repeat the unchanged full suite simply to restate the earlier result.
The contributor's personal-review confirmation remains unchecked. Please complete it before final acceptance; the technical conclusion above does not claim human sign-off.
Problem and value
archify inspect --json architecture input.jsonfails withcli/unsupported-optionand reports--jsonas the diagram type. The shared validate parser already supports options before positionals, but inspect checks raw argv first.Check inspect's architecture-only restriction after the shared parser extracts the positional type. The committed regressions protect leading
--jsonand--qualityoptions through the same parser. Leading--repo-rootwas separately exercised through the actual public CLI in the verification below; that manual proof is not described as a new committed regression.AI assistance and accountability
gpt-6.1-sol) investigated the source, wrote the change and its tests, ran the checks reported below, and drafted this description. Claude Code (Claude Opus) rebased the change onto currentdevon 2026-10-24, re-ran the focused checks listed under Rebase onto current dev, and edited this description.Stability impact
Tests run
Original comparison base:
0b8f9f341760662bad37a6ff4716877220a8dedc. Verified current candidate:de39d662c84ff1f3dd5d9873ee384dc7761ec137.node scripts/run-tests.mjs --require-files --test-name-pattern=cli: inspect test/cli.test.mjs— 5 passed, 0 failed, 0 skipped.--repo-root,architecture, the real web-app fixture and trailing--jsonalso exited 0 with component/connection layout output. This establishes the leading repo-root claim without claiming a new committed regression.Generated artifacts
Rebuilt
archify.zipfrom staged tracked sources using official Node 22.23.2 and bundled zlib1.3.1-e00f703. The first staging attempt encountered local ENOSPC and cleaned its temporary stage; a retry succeeded. No Gallery, website, version, or release change.Rebase onto current dev
The branch conflicted with
dev. It is now rebuilt as one commit ondev82c7e0f089a02a4d514714adf37dc2061682da5f: headae094d8125a72797ea40d89144550ac1bdec27f4, previouslyde39d662c84ff1f3dd5d9873ee384dc7761ec137. The source and test diff is unchanged.archify.zipwas rebuilt from the combined source with official Node 22.23.2 (zlib1.3.1-e00f703). Before applying the change,scripts/build-zip.shon unmodifieddevreproduced the committed archive byte for byte.node --test --test-name-pattern='cli: inspect' test/cli.test.mjs: 5 passed, 0 failed. Witharchify/bin/archify.mjsreverted to dev, the added test fails.