@firstdraft.com/cli 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/RELEASING.md +8 -4
- package/docs/commands.md +14 -8
- package/docs/release-history.md +16 -0
- package/package.json +1 -1
- package/src/compilation-artifact.js +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ install the CLI and Skill, then compile into your current folder with `firstdraf
|
|
|
9
9
|
clone or GitHub push is required. The [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft)
|
|
10
10
|
is the Codespaces fallback.
|
|
11
11
|
|
|
12
|
-
CLI 0.4
|
|
12
|
+
CLI 0.4 and later make `--output .` the default. Keep the explicit flag with CLI 0.3, whose zero-flag command selects GitHub
|
|
13
13
|
publication.
|
|
14
14
|
|
|
15
15
|
## What this repository owns
|
package/RELEASING.md
CHANGED
|
@@ -16,10 +16,14 @@ release tag. An unpublished, untagged candidate can retain its proposed version
|
|
|
16
16
|
The published version may remain in source during documentation and test maintenance; recording its release history
|
|
17
17
|
does not require preparing another version. Choose an unused version when preparing the next publication.
|
|
18
18
|
|
|
19
|
-
CLI `0.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
CLI `0.6.x` requires API `0.6.x` and Plan `firstdraft.foundation-plan.sketch/0.22`. Plan `0.22` adds the optional
|
|
20
|
+
`application.pwa` boolean and replaces the sole accepted `0.21` input format. The new API and CLI minor
|
|
21
|
+
versions record that input and artifact compatibility break; they add no migration or compatibility bridge.
|
|
22
|
+
The target stays `rails-sketch/2026-09`.
|
|
23
|
+
|
|
24
|
+
Local output remains the default introduced in CLI `0.4.x`: `firstdraft plan compile` is equivalent to
|
|
25
|
+
`firstdraft plan compile --output .`, with GitHub publication selected by explicit `--github`. The root archive
|
|
26
|
+
remains `.firstdraft/design`. Existing applications and old Plans are not migrated.
|
|
23
27
|
|
|
24
28
|
`release/compatibility.json` declares the package version, accepted API-contract range, and accepted Plan formats.
|
|
25
29
|
It is source-only metadata, validated by the normal test suite and absent from the npm tarball. Coordinate the
|
package/docs/commands.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
This page owns the detailed public semantics of the current command surface. Run `firstdraft --help` or a command
|
|
4
4
|
group's `--help` for concise executable syntax. See [Errors and recovery](errors.md) before retrying a failed mutation.
|
|
5
5
|
|
|
6
|
-
The current `0.
|
|
6
|
+
The current `0.6.x` source line contains the auditable command shell, local Foundation Plan initialization, local
|
|
7
7
|
application-key and UUID generation, conditional whole-document push, whole-graph analysis status polling, direct
|
|
8
|
-
Compile-and-materialize and private publish orchestration, and retained-Compilation inspection. CLI `0.
|
|
9
|
-
requires the service's `0.
|
|
8
|
+
Compile-and-materialize and private publish orchestration, and retained-Compilation inspection. CLI `0.6.x`
|
|
9
|
+
requires the service's `0.6.x` API contract. See the [release policy](../RELEASING.md) for versioning and channel
|
|
10
10
|
semantics and [release history](release-history.md) for the transition from prereleases.
|
|
11
11
|
|
|
12
12
|
## Command map
|
|
@@ -45,7 +45,7 @@ From the project that the Plan describes:
|
|
|
45
45
|
firstdraft plan init --name "Oscar Party"
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
This creates an empty `firstdraft.foundation-plan.sketch/0.
|
|
48
|
+
This creates an empty `firstdraft.foundation-plan.sketch/0.22` Plan targeting `rails-sketch/2026-09` and a
|
|
49
49
|
client-generated Project ID under `.firstdraft/`. A nested ignore file keeps that local scratch area out of Git
|
|
50
50
|
without changing the project's own `.gitignore`. Initialization makes no network request and refuses to replace an
|
|
51
51
|
existing `.firstdraft` path.
|
|
@@ -54,6 +54,12 @@ Provide either `--name`, `--application-key`, or both. Name-only initialization
|
|
|
54
54
|
initialization derives a humanized display name. Supplying both preserves both values exactly after validating them
|
|
55
55
|
against the Foundation Plan schema.
|
|
56
56
|
|
|
57
|
+
The initialized Plan omits `application.pwa`, which uses the Rails target's default of `true` for basic online
|
|
58
|
+
installation and Add to Home Screen support. Set `"pwa": false` within `application` to omit generated installation
|
|
59
|
+
metadata, or use `true` explicitly. The CLI sends the authored bytes unchanged, preserving omission versus either
|
|
60
|
+
boolean. This choice does not add offline caching, Web Push, or a native build; a browser may still save an ordinary
|
|
61
|
+
site when it is disabled. The CLI does not qualify browser or device installation.
|
|
62
|
+
|
|
57
63
|
### Generate an application key
|
|
58
64
|
|
|
59
65
|
To inspect the name-to-key derivation without initializing a project, run:
|
|
@@ -145,7 +151,7 @@ This is equivalent to `firstdraft plan compile --output .`. Use `--output ./appl
|
|
|
145
151
|
directory, or `--github` to publish to a private GitHub repository. `--github` and `--output` are mutually exclusive.
|
|
146
152
|
No GitHub connection, repository clone, or push is required for local compilation. Compilation runs on the First
|
|
147
153
|
Draft service; output and the application runtime are local. CLI `0.3.x` used GitHub Publication as its default;
|
|
148
|
-
scripts that require that behavior must add `--github` when upgrading to `0.4.x
|
|
154
|
+
scripts that require that behavior must add `--github` when upgrading to `0.4.x` or later.
|
|
149
155
|
|
|
150
156
|
Both `plan compile` modes first push the exact current bytes in
|
|
151
157
|
`.firstdraft/foundation-plan.json`, even when those bytes are unchanged, and save the accepted ETag using the same
|
|
@@ -167,7 +173,7 @@ destination is checked again after analysis; root adoption instead holds its own
|
|
|
167
173
|
pre-move identity recheck described below. Other existing destinations remain invalid, so
|
|
168
174
|
`--output ./application` retains its absent-directory contract.
|
|
169
175
|
|
|
170
|
-
The nested archive layout below is shared by CLI `0.3.x` and
|
|
176
|
+
The nested archive layout below is shared by CLI `0.3.x` and later.
|
|
171
177
|
[Published CLI `0.2.2`](release-history.md#022-publication-and-registry-observation) archives at top-level `design/`;
|
|
172
178
|
existing applications are not migrated automatically.
|
|
173
179
|
|
|
@@ -296,7 +302,7 @@ local paths, or environment values. Success writes exactly the validated private
|
|
|
296
302
|
newline to stdout. If the command fails after progress has begun, its structured JSON error envelope is the final
|
|
297
303
|
stderr document after the progress lines.
|
|
298
304
|
|
|
299
|
-
The closed API `0.
|
|
305
|
+
The closed API `0.6.x` progress-reason allowlist is `github.configuration_missing`, `github.oauth_unavailable`,
|
|
300
306
|
`github.api_unavailable`, `github.reauthorization_required`, `github.account_mismatch`,
|
|
301
307
|
`github.installation_unavailable`, `github.installation_not_ready`, `github.preflight_unavailable`, the legacy-only
|
|
302
308
|
`github.preflight_unclassified`, and these stage-specific fallbacks: `github.preflight_unavailable.configuration`,
|
|
@@ -345,7 +351,7 @@ when a retained direct Compilation succeeded but an earlier root materialization
|
|
|
345
351
|
never starts replacement work. An incomplete rollback leaves `.firstdraft-root-output` and requires journal
|
|
346
352
|
reconciliation before this command can run again.
|
|
347
353
|
|
|
348
|
-
Artifact validation accepts only Plan format `firstdraft.foundation-plan.sketch/0.
|
|
354
|
+
Artifact validation accepts only Plan format `firstdraft.foundation-plan.sketch/0.22` and target profile
|
|
349
355
|
`rails-sketch/2026-09`, in addition to matching the retained Compilation's provenance and verifying file integrity.
|
|
350
356
|
An earlier format or profile is rejected before materialization, even when the retained status names that profile.
|
|
351
357
|
|
package/docs/release-history.md
CHANGED
|
@@ -5,6 +5,22 @@ npm, GitHub, service, or qualification state. Before acting, recheck the registr
|
|
|
5
5
|
compatibility declarations, trusted-publisher relationship, and named release-specific qualification by following
|
|
6
6
|
the living [release policy and runbook](../RELEASING.md).
|
|
7
7
|
|
|
8
|
+
## 0.4.0 local-output release
|
|
9
|
+
|
|
10
|
+
- On September 23, 2026 UTC, protected tag `v0.4.0` published CLI `0.4.0` from
|
|
11
|
+
`a555f8d39862109b8c28b392c0439470e88f4ba8` directly to `latest` through
|
|
12
|
+
[GitHub trusted publishing](https://github.com/firstdraft/cli/actions/runs/35807891432).
|
|
13
|
+
- `plan compile` now defaults to current-folder output, equivalent to `--output .`. GitHub Publication requires
|
|
14
|
+
`--github`. API compatibility remains `0.4.x`; this is a breaking CLI-default change from `0.3.x`.
|
|
15
|
+
- npm SHA-1 is `65b6b960b9029cb8f2352273db9fb551132f2ac9`. Public exact-version installation reported `0.4.0`, and
|
|
16
|
+
registry signature and provenance verification passed. `latest` selected `0.4.0`; `next` remained `0.3.0`.
|
|
17
|
+
- The packed candidate compiled a reviewed Reading List Plan against service `2bfdf6bf`, materialized 360 files at
|
|
18
|
+
the local root, and passed local Rails boot, browser creation, and source-edit refresh. Existing warnings and gaps
|
|
19
|
+
remained disclosed. No Codespace, GitHub Publication, native build, or Revyl session was part of this release smoke.
|
|
20
|
+
- Plugin `0.4.0` bundles this exact CLI source. Its publication workflow matched all 27 files with the registry CLI.
|
|
21
|
+
The [plugin release record](https://github.com/firstdraft/skills/blob/main/evidence/2026-09-22-plugin-0.4.0-release.md)
|
|
22
|
+
records the companion package, catalog, and post-publication Drawing Board follow-up.
|
|
23
|
+
|
|
8
24
|
## 0.1.0 alpha publications
|
|
9
25
|
|
|
10
26
|
- On July 31, 2026, npm rejected the unscoped `firstdraft` name for `v0.1.0-alpha.1` as too similar to the existing
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
export const ARTIFACT_MEDIA_TYPE =
|
|
27
27
|
"application/vnd.firstdraft.compilation-artifact+json";
|
|
28
28
|
export const ARTIFACT_FORMAT = "firstdraft.compilation-artifact/1";
|
|
29
|
-
export const FOUNDATION_PLAN_FORMAT = "firstdraft.foundation-plan.sketch/0.
|
|
29
|
+
export const FOUNDATION_PLAN_FORMAT = "firstdraft.foundation-plan.sketch/0.22";
|
|
30
30
|
export const RAILS_TARGET_PROFILE = "rails-sketch/2026-09";
|
|
31
31
|
export const MAX_ARTIFACT_BYTES = 128 * 1024 * 1024;
|
|
32
32
|
|