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
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ handled-error recovery in `docs/errors.md`, publication mechanics in `RELEASING.
`.codex/config.toml` get an independent review through the `cross-review` Skill, with `codex` as the reviewer from
Claude Code and `claude` from Codex. Pass the service repository's `docs/review-focus.md` as `--focus-file` (see
`CONTRIBUTING.md`). Put the reviewer, verdict, and finding counts in the pull request body, not the findings.
- `firstdraft plan compile` defaults to local output in the current directory. GitHub publication requires
`--github`; Codespaces is a fallback. Keep Skill callers and recovery instructions aligned with this boundary.
- `firstdraft plan compile` defaults to local output in the current directory; Codespaces is a fallback. Keep Skill
callers and recovery instructions aligned with this boundary.
- The service repository coordinates releases and owns their approval and smoke policy. One approved coordinated
release covers its named CLI steps; do not ask again between them. A merge alone does not authorize a release.
`RELEASING.md` covers the publication steps.
15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Lets First Draft tell a setup that it is out of date, and adds the account, repo
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`.
target to profile `rails-sketch/2026-11` and the accepted API contract to `0.9.x`. Removes GitHub publication, which
First Draft no longer offers.

- `plan init` writes Plans that target `rails-sketch/2026-11`. `plan compile` and `compilation download` accept only
artifacts for that profile; an artifact for `rails-sketch/2026-10` reports `invalid_artifact`. The CLI sends a
Expand Down Expand Up @@ -101,8 +102,12 @@ target to profile `rails-sketch/2026-11` and the accepted API contract to `0.9.x
`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.
what a `412` or `compilation_active` answer then means, instead of telling the caller to stop.
- `plan compile --github` is gone: `--github` fails with `invalid_arguments` (exit status 2), like any unknown option,
and the CLI no longer calls `/v1/projects/{project_id}/github-publication`. `request_outcome_unknown` no longer has
`phase: "publication"`, and these `error` values are gone: `publication_start_rejected`,
`publication_status_unavailable`, `invalid_publication_status`, `publication_changed`, `publication_wait_timed_out`,
`publication_failed`, and `publication_cancelled`.
- 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`, `maintain_rejected`, `maintain_unavailable`, `invalid_maintain_response`, and, from
Expand All @@ -118,7 +123,9 @@ nothing more and says to use the CLI version that origin supports. A plugin's la
`FIRSTDRAFT_PLUGIN_VERSION` and `FIRSTDRAFT_AGENT`; without the first, the CLI compares its own version with the CLI
versions. Callers that parse standard error should drop the `First Draft: ` lines, which any network command may now
write before its result; `start` writes its update line on standard output instead. A Skill that checked
`firstdraft --help` runs `firstdraft start` in its place and may run the two login steps itself.
`firstdraft --help` runs `firstdraft start` in its place and may run the two login steps itself. A caller that ran
`plan compile --github` runs `plan compile --output <absent-directory>`, which works on every platform and writes only
the application, then initializes, commits, and pushes that directory with `git` and `gh`.

## 0.9.0

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
# First Draft CLI

firstdraft is the command-line client shared by First Draft agents and automation. It manages local Foundation Plan
files, calls the versioned Service API, exposes reviewed analysis and GapSets, materializes verified Compilations,
and coordinates private GitHub publication.
files, calls the versioned Service API, exposes reviewed analysis and GapSets, and materializes verified
Compilations.

Start with the [local development guide](https://firstdraft.github.io/firstdraft/docs/guides/local-app.html):
install the CLI and Skill, then compile into your current folder with `firstdraft plan compile --output .`. No Drawing Board
clone or GitHub push is required. The [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft)
is the Codespaces fallback.

`--output .` is also the default, so `firstdraft plan compile` alone writes to the current folder. GitHub publication
requires `--github`.
`--output .` is also the default, so `firstdraft plan compile` alone writes to the current folder.

## What this repository owns

- local Plan initialization, UUIDs, application keys, and source hashing;
- conditional whole-document push and conflict reporting;
- analysis polling and complete GapSet output;
- direct Compile-and-materialize and private publish orchestration;
- direct Compile-and-materialize;
- retained Compilation inspection, cancellation, and artifact download;
- terminal output, exit status, and recovery contracts;
- the dependency-free npm package; and
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ npm pack --dry-run --json --ignore-scripts
Pass Node test options through `npm test` to focus a run while retaining discovery under `test/`:

```sh
npm test -- --test-name-pattern="publication"
npm test -- --test-name-pattern="compilation"
```

To reproduce the length-delimited SHA-256 used by external evidence to identify packaged JavaScript runtime inputs
Expand Down
Loading
Loading