← 输入框|github.com|刷新
Skip to content

Name hosted screen review Screens in the CLI - #81

Draft
raghubetina wants to merge 1 commit into
codex/plan-025-clifrom
claude/screens-rename
Draft

raghubetina wants to merge 1 commit into
codex/plan-025-clifrom
claude/screens-rename

Conversation

@raghubetina

@raghubetina raghubetina commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The CLI names hosted screen review Screens, matching the service. firstdraft screens publish replaces firstdraft sketches publish, sources live in screens/ with screens/board.json, and local receipts and a Compile's reviewed sources move to screen-review and design/screens paths. The request uses PUT /v1/projects/{project_id}/screen-reviews/{revision_id}, media type application/vnd.firstdraft.screen-review+json, header FirstDraft-Screen-Revision and response field screen_revision_id; failures report screen_review_failed with service codes screen_review_conflict, screen_review_changed, invalid_screen_review and screen_quota_reached.

The owner chose to finish the rename in the 0.25 release (firstdraft/firstdraft#1045), where users already upgrade and start new Projects, so the break lands once. Element keys and labels become data-screen-key and data-screen-label, the names the service's canvas reads (owner's choice, 2026-12-04); the changelog tells authors to rename them in an existing planning folder. A publication left pending by CLI 0.12.x is not replayed by this CLI.

Base: codex/plan-025-cli at 13f10e1. The rename is a re-runnable script; it will be re-applied to the refreshed candidate before landing, so this draft shows the full set of changes rather than final bytes. It needs the service's matching Screens rename to work end to end.

Docs: updated docs/commands.md (including the element key example), docs/errors.md and the 0.13.0 CHANGELOG entry.

Validation

npm run check on Node 24.18.0 passed: typecheck, lint, format, all 401 tests without skips, the package allowlist and the packed CLI smoke. After the attribute change, npm test, npm run lint, npm run format:check and npm run typecheck passed again. The service's script/review_theme_system_test.rb ran this CLI against firstdraft/firstdraft#1466: it published screens with firstdraft screens publish, selected a keyed element on the canvas, and downloaded and booted the generated app.

The service already calls the hosted review Screens, but the CLI
still published with `firstdraft sketches publish`, read `sketches/`
and spoke the API's sketch-review names. The owner chose to finish
the rename in the 0.25 release (firstdraft/firstdraft#1045), where
users already upgrade and start new Projects, so the break lands
once.

The command becomes `firstdraft screens publish`, sources move to
`screens/`, local receipts and reviewed sources follow, and the
request, header, response field and error codes match the service's
screen-review names. Element keys and labels become data-screen-key
and data-screen-label, the names the service's canvas now reads.
@raghubetina
raghubetina force-pushed the claude/screens-rename branch from 7d92f98 to d8a6761 Compare December 4, 2026 22:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant