Repository navigation
chore(docs): publish the CLI sidebar with the command spec - #7745
Conversation
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 135.5 MB, unchanged. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: not applicable (no reference sources changed).
Verified both reviews and merged the duplicate finding about manual sidebar fixes. The publisher can overwrite those fixes on open reference PRs, and custom layouts without the default sidebar directory now fail. Local previews can leave the two files out of sync after a write failure or replace the YAML with JSON when both destinations refer to the same file. The README also omits what remains on disk after a formatting failure. The supplied next context showed no conflict, and the CLI reference prose check was not applicable. End-to-end tests were not run because workspace dependencies are absent.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟠 MAJOR | apps/cli/scripts/publish-docs-spec.ts:49 |
compatibility |
codex | Custom publishing and preview layouts that previously needed only the configured spec directory now fail if they lack the default sidebar directory. |
| 🟠 MAJOR | apps/cli/scripts/publish-docs-spec.ts:120 |
data-loss |
claude+codex | A later release can overwrite manual sidebar fixes committed to an open reference PR under the previous publishing instructions. |
| 🟡 MINOR | apps/cli/scripts/publish-docs-spec.ts:120 |
error-handling |
codex | If the sidebar write fails, --local leaves the checkout with the new YAML spec and a sidebar that may be stale or incomplete. |
| 🟡 MINOR | apps/cli/scripts/publish-docs-spec.ts:55 |
filesystem |
codex | The same-path guard misses symlink aliases, so a local preview can replace the YAML with sidebar JSON and still report success. |
| ⚪ NIT | apps/cli/docs/README.md:61 |
documentation |
claude | The local preview instructions omit that a YAML formatting failure can leave the spec already overwritten and the sidebar unchanged. |
Stats
Claude findings: 2 · Codex findings: 4 · Confirmed: 5 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
Prashansa-K
left a comment
There was a problem hiding this comment.
Changes look good to me.
One suggestion added as a comment, but it is non-blocking.
Generate the CLI sidebar in the docs publisher and include it with the command spec in the same stable release PR. A sidebar-only change can open a release PR. Local previews write both files, and the release PR no longer asks maintainers to copy the sidebar by hand.
The one-time sidebar catch-up and redirect are in supabase/supabase#53749.
CLI-3175