@firstdraft.com/cli 0.7.0 → 0.8.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/RELEASING.md CHANGED
@@ -16,15 +16,19 @@ 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.7.x` requires API `0.6.x` and Plan `firstdraft.foundation-plan.sketch/0.22`. CLI `0.7.0` adds `--staging`
20
- and requires `FIRSTDRAFT_STAGING_API_TOKEN` for the staging origin, including existing pinned Projects. This token
21
- configuration change warrants a new CLI minor version; the API and Plan contracts stay unchanged. Production
22
- remains the default and uses `FIRSTDRAFT_API_TOKEN`, as do custom origins. No Project is migrated. The target stays
23
- `rails-sketch/2026-09`.
19
+ CLI `0.8.x` requires API `0.7.x`, Plan `firstdraft.foundation-plan.sketch/0.23`, and target
20
+ `rails-sketch/2026-09-bookmark-assets`. This breaking contract retires `application.pwa`; the Rails target retains
21
+ ordinary bookmark assets and metadata without a Plan switch. Earlier Plan formats and target profiles are not
22
+ accepted for artifact materialization. Existing applications and old Plans are not migrated.
23
+
24
+ Before publishing CLI `0.8.0`, align the Service and Skills companions for the bookmark-assets contract. Source
25
+ checks and packed-package smokes do not establish a published or deployed tuple. Staging continues to require
26
+ `FIRSTDRAFT_STAGING_API_TOKEN`, including existing pinned Projects. Production remains the default and uses
27
+ `FIRSTDRAFT_API_TOKEN`, as do custom origins.
24
28
 
25
29
  Local output remains the default introduced in CLI `0.4.x`: `firstdraft plan compile` is equivalent to
26
30
  `firstdraft plan compile --output .`, with GitHub publication selected by explicit `--github`. The root archive
27
- remains `.firstdraft/design`. Existing applications and old Plans are not migrated.
31
+ remains `.firstdraft/design`.
28
32
 
29
33
  `release/compatibility.json` declares the package version, accepted API-contract range, and accepted Plan formats.
30
34
  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.7.x` source line contains the auditable command shell, local Foundation Plan initialization, local
6
+ The current `0.8.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.7.x`
9
- requires the service's `0.6.x` API contract. See the [release policy](../RELEASING.md) for versioning and channel
8
+ Compile-and-materialize and private publish orchestration, and retained-Compilation inspection. CLI `0.8.x`
9
+ requires the service's `0.7.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
@@ -75,7 +75,7 @@ From the project that the Plan describes:
75
75
  firstdraft plan init --name "Oscar Party"
76
76
  ```
77
77
 
78
- This creates an empty `firstdraft.foundation-plan.sketch/0.22` Plan targeting `rails-sketch/2026-09` and a
78
+ This creates an empty `firstdraft.foundation-plan.sketch/0.23` Plan targeting `rails-sketch/2026-09-bookmark-assets` and a
79
79
  client-generated Project ID under `.firstdraft/`. A nested ignore file keeps that local scratch area out of Git
80
80
  without changing the project's own `.gitignore`. Initialization makes no network request and refuses to replace an
81
81
  existing `.firstdraft` path.
@@ -84,11 +84,10 @@ Provide either `--name`, `--application-key`, or both. Name-only initialization
84
84
  initialization derives a humanized display name. Supplying both preserves both values exactly after validating them
85
85
  against the Foundation Plan schema.
86
86
 
87
- The initialized Plan omits `application.pwa`, which uses the Rails target's default of `true` for basic online
88
- installation and Add to Home Screen support. Set `"pwa": false` within `application` to omit generated installation
89
- metadata, or use `true` explicitly. The CLI sends the authored bytes unchanged, preserving omission versus either
90
- boolean. This choice does not add offline caching, Web Push, or a native build; a browser may still save an ordinary
91
- site when it is disabled. The CLI does not qualify browser or device installation.
87
+ Plan `0.23` has no `application.pwa` option. The Rails target includes ordinary icons and bookmark metadata for
88
+ the application owner to edit. The CLI sends authored bytes unchanged; the Service diagnoses unsupported Plan
89
+ fields rather than the CLI removing them. These assets do not establish offline support or a complete PWA, and
90
+ the CLI does not qualify browser or device installation.
92
91
 
93
92
  ### Generate an application key
94
93
 
@@ -332,7 +331,7 @@ local paths, or environment values. Success writes exactly the validated private
332
331
  newline to stdout. If the command fails after progress has begun, its structured JSON error envelope is the final
333
332
  stderr document after the progress lines.
334
333
 
335
- The closed API `0.6.x` progress-reason allowlist is `github.configuration_missing`, `github.oauth_unavailable`,
334
+ The closed API `0.7.x` progress-reason allowlist is `github.configuration_missing`, `github.oauth_unavailable`,
336
335
  `github.api_unavailable`, `github.reauthorization_required`, `github.account_mismatch`,
337
336
  `github.installation_unavailable`, `github.installation_not_ready`, `github.preflight_unavailable`, the legacy-only
338
337
  `github.preflight_unclassified`, and these stage-specific fallbacks: `github.preflight_unavailable.configuration`,
@@ -381,8 +380,8 @@ when a retained direct Compilation succeeded but an earlier root materialization
381
380
  never starts replacement work. An incomplete rollback leaves `.firstdraft-root-output` and requires journal
382
381
  reconciliation before this command can run again.
383
382
 
384
- Artifact validation accepts only Plan format `firstdraft.foundation-plan.sketch/0.22` and target profile
385
- `rails-sketch/2026-09`, in addition to matching the retained Compilation's provenance and verifying file integrity.
383
+ Artifact validation accepts only Plan format `firstdraft.foundation-plan.sketch/0.23` and target profile
384
+ `rails-sketch/2026-09-bookmark-assets`, in addition to matching the retained Compilation's provenance and verifying file integrity.
386
385
  An earlier format or profile is rejected before materialization, even when the retained status names that profile.
387
386
 
388
387
  Successful root adoption is intentionally one-way. The original `.firstdraft` authoring state moves under
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firstdraft.com/cli",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Command-line interface for First Draft",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -26,8 +26,8 @@ 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.22";
30
- export const RAILS_TARGET_PROFILE = "rails-sketch/2026-09";
29
+ export const FOUNDATION_PLAN_FORMAT = "firstdraft.foundation-plan.sketch/0.23";
30
+ export const RAILS_TARGET_PROFILE = "rails-sketch/2026-09-bookmark-assets";
31
31
  export const MAX_ARTIFACT_BYTES = 128 * 1024 * 1024;
32
32
 
33
33
  const ARTIFACT_KEYS = ["format", "provenance", "manifest_sha256", "files"];