Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ repository's [tags](https://github.com/firstdraft/cli/tags) identify the source

## 0.10.0

Lets First Draft tell a setup that it is out of date, and adds the account, report, note, and `start` commands and a
device login in two steps, so a person working alone hears when to update, their agent can log them in, and it can send
the progress and failure reports and the notes the person agreed to, for the application's whole life. Moves the Rails
Lets First Draft tell a setup that it is out of date, and adds the account, report, note, `maintain`, and `start`
commands and a device login in two steps, so a person working alone hears when to update, their agent can log them in,
it can send the progress and failure reports and the notes the person agreed to, for the application's whole life, and
it can work through what needs attention in the deployed application. Moves the Rails
target to profile `rails-sketch/2026-11` and the accepted API contract to `0.9.x`.

- `plan init` writes Plans that target `rails-sketch/2026-11`. `plan compile` and `compilation download` accept only
Expand Down Expand Up @@ -53,7 +54,7 @@ target to profile `rails-sketch/2026-11` and the accepted API contract to `0.9.x
`Sent.` only on First Draft's `201` acknowledgment; a `403 reports_off` answer to the report prints the reports-off
line and exits 0. `--step` is `setup`, `specs_first_run`, `behavior_written`, `specs_passing`, or
`preview_started`, with optional counts of at most 1000000. `--kind` is `spec_failure`, `setup_failure`,
`boot_error`, or `lint_failure`. A failure report keeps each field only in its shape: an RSpec run of the
`boot_error`, `lint_failure`, or `deployed_error`, which the `maintain` entries below describe. A failure report keeps each field only in its shape: an RSpec run of the
application's specs, a Ruby constant, up to 20 application frames sent as `path:LINE`, version numbers, and the plain
words of the first line of the message (at most 300 characters) and fix summary (at most 200). When anything is
left out, a `Left out:` line names each field left out, counts the frames that are not in the application's files
Expand Down Expand Up @@ -87,17 +88,28 @@ target to profile `rails-sketch/2026-11` and the accepted API contract to `0.9.x
removes that file; it also removes it once the grant is refused, expired, or spent. It prints `Logged in:`,
`Still waiting:`, `Expired:`, or `Refused:` with the next step. The device code is never printed. The browser login
and the one-process `login --interactive` are unchanged.
- `firstdraft maintain` prints a deployed Environment's open items, most severe first, 200 a page, each with its
GitHub issue as `issue_url`. It reads the account first and, only when reports are on, says on standard error when
to send a failure report about an item. `maintain show <item-id>` prints one item with its latest evidence, whose
`untrusted` list names the fields that can hold end users' text, and what done means. `maintain resolve <item-id>`
resolves it with a `--reason`, a `--cause` that says what caused the error (`unknown` when the agent could not
tell), and an optional `--detail`, such as the pull request. Each takes `--environment`, `production` by default,
runs from the generated application's root or the Project's directory, uses the Project's pinned origin, and changes
no local state.
- `report failure --kind deployed_error --item <item-id>` reports an error in a deployed application that
`maintain resolve` traced to code First Draft generated. It names the item and takes no `--message`.
- After an ambiguous push, from `plan push` or `plan compile`, or an ambiguous direct Compilation start,
`request_outcome_unknown` now says to run the same command once more with the same options and environment, and
what a `412` or `compilation_active` answer then means, instead of telling the caller to stop. The recovery for an
unconfirmed Publication under `plan compile --github` is unchanged.
- New `error` values, each with exit status 1: `update_required`, `api_contract_unsupported`, `rate_limited`,
`account_unavailable`, `report_rejected`, `report_unavailable`, `note_rejected`, `note_unavailable`,
`compilation_not_recorded`, and, from `login --finish`, `authorization_pending` and `login_not_started`; and, from the
`compilation_not_recorded`, `maintain_rejected`, `maintain_unavailable`, `invalid_maintain_response`, and, from
`login --finish`, `authorization_pending` and `login_not_started`; and, from the
note commands, `note_incomplete` with exit status 2. `account`, `start`, and the report and note commands also report
`authentication_required` and `invalid_server_response` (exit status 1) and `invalid_arguments` and
`invalid_configuration` (exit status 2). The report and note commands also report `local_input_unreadable` and
`project_not_pushed` (exit status 1). `login_failed` gains the reasons `device_login_invalid` and
`invalid_configuration` (exit status 2). The report, note, and `maintain` commands also report `local_input_unreadable`
and `project_not_pushed` (exit status 1). `login_failed` gains the reasons `device_login_invalid` and
`device_login_unavailable` for the waiting device login's file.

Use CLI 0.10.0 with a Service that serves API `0.9.x`. Once a response from an origin names API `0.8.x`, the CLI sends
Expand Down
Loading
Loading