@firstdraft.com/cli 0.2.2 → 0.4.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 +12 -9
- package/RELEASING.md +89 -192
- package/SECURITY.md +2 -4
- package/docs/README.md +17 -10
- package/docs/commands.md +72 -45
- package/docs/errors.md +22 -15
- package/docs/release-history.md +13 -0
- package/package.json +2 -2
- package/src/cli.js +22 -20
- package/src/commands/plan-compile.js +3 -3
- package/src/commands/plan-init.js +5 -2
- package/src/compilation-artifact.js +15 -13
- package/src/root-output.js +53 -26
package/README.md
CHANGED
|
@@ -4,9 +4,13 @@ firstdraft is the command-line client shared by First Draft agents and automatio
|
|
|
4
4
|
files, calls the versioned Service API, exposes reviewed analysis and GapSets, materializes verified Compilations,
|
|
5
5
|
and coordinates private GitHub publication.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Start with the [local development guide](https://gist.github.com/raghubetina/3d424a97a1eaa6de8c406e67f32a237e):
|
|
8
|
+
install the CLI and Skill, then compile into your current folder with `firstdraft plan compile --output .`. No Drawing Board
|
|
9
|
+
clone or GitHub push is required. The [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft)
|
|
10
|
+
is the Codespaces fallback.
|
|
11
|
+
|
|
12
|
+
CLI 0.4 makes `--output .` the default. Keep the explicit flag with CLI 0.3, whose zero-flag command selects GitHub
|
|
13
|
+
publication.
|
|
10
14
|
|
|
11
15
|
## What this repository owns
|
|
12
16
|
|
|
@@ -17,7 +21,7 @@ compatible CLI and Skill together.
|
|
|
17
21
|
- retained Compilation inspection and artifact download;
|
|
18
22
|
- terminal output, exit status, and recovery contracts;
|
|
19
23
|
- the dependency-free npm package; and
|
|
20
|
-
- package provenance and
|
|
24
|
+
- package provenance and publication.
|
|
21
25
|
|
|
22
26
|
The Service owns Foundation Plan meaning and server-side lifecycle. Skills own the agent conversation. This
|
|
23
27
|
repository owns the exact command and transport behavior between them.
|
|
@@ -29,7 +33,7 @@ repository owns the exact command and transport behavior between them.
|
|
|
29
33
|
| Change the CLI | [Agent instructions](https://github.com/firstdraft/cli/blob/main/AGENTS.md), then [documentation map](docs/README.md) |
|
|
30
34
|
| Find a command or output contract | [Command reference](docs/commands.md) |
|
|
31
35
|
| Interpret an error or recover safely | [Errors and recovery](docs/errors.md) |
|
|
32
|
-
| Prepare or
|
|
36
|
+
| Prepare or publish a package | [Release runbook](RELEASING.md) |
|
|
33
37
|
| Inspect dated package observations | [Release history](docs/release-history.md) |
|
|
34
38
|
| Report a vulnerability | [Security policy](SECURITY.md) |
|
|
35
39
|
|
|
@@ -84,7 +88,7 @@ npm install --global @firstdraft.com/cli
|
|
|
84
88
|
```
|
|
85
89
|
|
|
86
90
|
Pin an exact compatible version when a repeatable installation matters; [RELEASING.md](RELEASING.md) owns channel
|
|
87
|
-
and
|
|
91
|
+
and release meaning.
|
|
88
92
|
|
|
89
93
|
The published package:
|
|
90
94
|
|
|
@@ -101,6 +105,5 @@ including the release runbook and dated release history, ships with the package.
|
|
|
101
105
|
|
|
102
106
|
## Release boundary
|
|
103
107
|
|
|
104
|
-
Merging source is not package publication.
|
|
105
|
-
|
|
106
|
-
digest and Service compatibility before any promotion.
|
|
108
|
+
Merging source is not package publication. An approved coordinated release publishes directly to `latest`, reusing
|
|
109
|
+
successful CI for the exact source. [RELEASING.md](RELEASING.md) owns the short release and recovery procedure.
|
package/RELEASING.md
CHANGED
|
@@ -1,210 +1,107 @@
|
|
|
1
1
|
# Releasing First Draft CLI
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
##
|
|
31
|
-
|
|
32
|
-
`release/compatibility.json
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
2. Confirm `main` has pull-request and CI requirements and a `v*` tag ruleset restricts tag creation, update, and
|
|
67
|
-
deletion.
|
|
68
|
-
3. Confirm the GitHub environment named `npm` is restricted to release tags, requires an explicit reviewer, disables
|
|
69
|
-
administrator bypass, and defines `NPM_RELEASE_ENABLED=true`. The workflow fails before publishing when this
|
|
70
|
-
variable is absent.
|
|
71
|
-
4. Confirm that the `firstdraft.com` npm organization and `@firstdraft.com/cli` package still identify the intended
|
|
72
|
-
publisher and repository. The publisher account must have write-protecting 2FA enabled. Verify authenticated
|
|
73
|
-
identity, organization membership, package identity, and current tags:
|
|
74
|
-
|
|
75
|
-
```sh
|
|
76
|
-
npm whoami
|
|
77
|
-
npm org ls firstdraft.com --json
|
|
78
|
-
npm view '@firstdraft.com/cli' name repository.url versions dist-tags --json
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
5. Before creating a `v<package-version>` tag, verify [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/)
|
|
82
|
-
for the exact package, repository, workflow, protected environment, and allowed publish operation. No persistent
|
|
83
|
-
npm credential is permitted for a release workflow.
|
|
84
|
-
|
|
85
|
-
Use the repository-pinned Node.js 24.18.0 toolchain with npm 11.16.0 to verify the organization's durable read/write
|
|
86
|
-
access:
|
|
87
|
-
|
|
88
|
-
```sh
|
|
89
|
-
npm --version
|
|
90
|
-
npm access list packages firstdraft.com:developers '@firstdraft.com/cli' --json
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
Require the package to report `read-write` access for the `developers` team. If access is missing or changed, stop:
|
|
94
|
-
restoring it is a separate administrator and security mutation, not a routine release step.
|
|
95
|
-
|
|
96
|
-
For every release, inspect the existing trusted-publisher relationship read-only:
|
|
97
|
-
|
|
98
|
-
```sh
|
|
99
|
-
npm trust list '@firstdraft.com/cli'
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Confirm `npm trust list` reports type `github`, repository `firstdraft/cli`, file `publish.yml`, environment `npm`,
|
|
103
|
-
and permission `createPackage`, which is npm's trust-list vocabulary for the allowed publish operation. npm does not
|
|
104
|
-
validate the saved relationship by attempting an exchange, so each case-sensitive value must be inspected. If the
|
|
105
|
-
relationship is missing or changed, stop: restoring it is a separate administrator and security mutation, not a
|
|
106
|
-
routine release step. The publish job must remain on a GitHub-hosted runner with `id-token: write` and must not read
|
|
107
|
-
`NODE_AUTH_TOKEN`, an npm token, or any GitHub Actions secret. Confirm the repository and `npm` environment secret
|
|
108
|
-
lists contain no npm automation secret. Trusted publishing's short-lived OIDC exchange is the sole workflow
|
|
109
|
-
publication credential; an authentication failure stops the release and must never fall back to a persistent token.
|
|
110
|
-
|
|
111
|
-
As optional defense-in-depth after trusted publication is operationally proven, an npm administrator may complete
|
|
112
|
-
the separate security-key ceremony and set package **Publishing access** to **Require two-factor authentication and
|
|
113
|
-
disallow tokens**. Do not report that setting as enabled until it is directly observed.
|
|
114
|
-
|
|
115
|
-
## Prepare a release
|
|
116
|
-
|
|
117
|
-
1. Update `package.json`, `package-lock.json`, and `release/compatibility.json` to the exact release version.
|
|
118
|
-
2. When that version changes, coordinate the matching explicit CLI comparator in `firstdraft/skills` before
|
|
119
|
-
qualification; a stale comparator intentionally makes the three-repository candidate ineligible.
|
|
120
|
-
3. Apply the pre-1.0 policy: use a minor increment for a breaking compatibility line and a patch increment for a
|
|
121
|
-
change that is otherwise backward-compatible. Keep the initial distribution under `next` independently of that
|
|
122
|
-
version choice. Do not move `latest` during release publication.
|
|
123
|
-
4. Confirm neither the exact package version nor its `v<package-version>` tag already exists. If both remain absent,
|
|
124
|
-
the unpublished candidate may retain its proposed version while its exact SHA and digests are revised.
|
|
125
|
-
5. Re-run `npm trust list '@firstdraft.com/cli'`, verify the exact `github`/repository/file/environment/`createPackage`
|
|
126
|
-
relationship described above, and confirm the workflow contains no persistent npm credential or GitHub Actions
|
|
127
|
-
secret.
|
|
128
|
-
6. Update user-facing documentation and release notes for behavior changes.
|
|
129
|
-
7. Run:
|
|
130
|
-
|
|
131
|
-
```sh
|
|
132
|
-
npm ci --ignore-scripts
|
|
133
|
-
npm audit
|
|
134
|
-
npm run check
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
8. Merge the reviewed pull request only after local and hosted checks pass.
|
|
138
|
-
|
|
139
|
-
## Publish
|
|
140
|
-
|
|
141
|
-
The manual boundary is creation of the version tag. From an up-to-date, clean `main`, verify the intended commit and
|
|
142
|
-
confirm that both the intended package version and `v<package-version>` tag are absent. If either identity is already
|
|
143
|
-
consumed, prepare the next version required by the pre-1.0 policy rather than moving or reusing it. Otherwise create
|
|
144
|
-
and push the tag. Push one release tag at a time; the workflow serializes publication, but GitHub retains at most one
|
|
145
|
-
pending run in a concurrency group.
|
|
146
|
-
|
|
147
|
-
The workflow rejects accidental or stale inputs unless they use a protected `v*` tag in `firstdraft/cli`, the tag
|
|
148
|
-
equals `v` plus the version in `package.json`, the remote tag still identifies the triggering commit, and that commit
|
|
149
|
-
appears in the first-parent history of `origin/main`. First-parent membership allows an older reviewed `main` state
|
|
150
|
-
after another change lands while rejecting intermediate commits from a merged side branch. The workflow reruns the
|
|
151
|
-
complete check, waits for approval in the `npm` environment, reverifies the remote refs, and publishes to the public
|
|
152
|
-
registry with provenance under `next`. It authenticates only through the exact npm trusted-publisher relationship and
|
|
153
|
-
the job's short-lived GitHub OIDC token; it reads no persistent npm credential or GitHub Actions secret.
|
|
154
|
-
|
|
155
|
-
The tag ruleset and `npm` environment approval are the external trust boundary because a tag-push run loads its
|
|
156
|
-
workflow from the tagged commit. Before approving the `npm` deployment, the reviewer must confirm:
|
|
157
|
-
|
|
158
|
-
- The tag, package version, and commit SHA are the intended release.
|
|
159
|
-
- The commit is a known reviewed state in protected `main` history and its required checks passed.
|
|
160
|
-
- `.github/workflows/publish.yml` at that commit is the reviewed workflow, still selects the `npm` environment, and
|
|
161
|
-
publishes the public `@firstdraft.com/cli` package only under `next` with provenance.
|
|
162
|
-
- npm lists the exact `github`/`firstdraft/cli`/`publish.yml`/`npm`/`createPackage` trusted-publisher relationship,
|
|
163
|
-
and the GitHub repository and `npm` environment contain no npm automation secret.
|
|
164
|
-
- The unprivileged verification job passed for that exact commit.
|
|
165
|
-
|
|
166
|
-
Do not move or reuse a release tag. If the tagged commit is not a first-parent state of `main`, merge the intended
|
|
167
|
-
change and prepare a new version rather than moving an already shared tag.
|
|
3
|
+
An approved coordinated release publishes directly to npm's `latest` channel. Tests and review belong before merge;
|
|
4
|
+
publication reuses successful CI for the exact source. It does not repeat the suite or require a second
|
|
5
|
+
`next`-to-`latest` promotion. Dated observations remain in [release history](docs/release-history.md).
|
|
6
|
+
|
|
7
|
+
A merge alone does not authorize publication. Obtain one approval for the intended coordinated release, or use the
|
|
8
|
+
approval already given for that scope. The existing GitHub `npm` environment protection still applies; its approval
|
|
9
|
+
executes the same release decision. Do not ask for another conversational approval between already-approved steps.
|
|
10
|
+
|
|
11
|
+
## Version and compatibility policy
|
|
12
|
+
|
|
13
|
+
Before `1.0.0`, use ordinary `0.MINOR.PATCH` versions: increase `MINOR` for a breaking compatibility-line change and
|
|
14
|
+
`PATCH` for a backward-compatible change within that line. Never reuse a published version or move a protected
|
|
15
|
+
release tag. An unpublished, untagged candidate can retain its proposed version while its source changes.
|
|
16
|
+
The published version may remain in source during documentation and test maintenance; recording its release history
|
|
17
|
+
does not require preparing another version. Choose an unused version when preparing the next publication.
|
|
18
|
+
|
|
19
|
+
CLI `0.4.x` makes `firstdraft plan compile` equivalent to `firstdraft plan compile --output .`; the former GitHub
|
|
20
|
+
default becomes explicit `--github`. This is a breaking CLI change from `0.3.x`, without a Service API change.
|
|
21
|
+
Both lines use API `0.4.x`, Plan `firstdraft.foundation-plan.sketch/0.20`, target `rails-sketch/2026-09`, and the
|
|
22
|
+
`.firstdraft/design` root archive. Existing applications and old Plans are not migrated.
|
|
23
|
+
|
|
24
|
+
`release/compatibility.json` declares the package version, accepted API-contract range, and accepted Plan formats.
|
|
25
|
+
It is source-only metadata, validated by the normal test suite and absent from the npm tarball. Coordinate the
|
|
26
|
+
explicit CLI comparator and bundled CLI pin in `firstdraft/skills` when this version changes. The service's
|
|
27
|
+
`script/release_compatibility_check` compares the three exact revisions; compatibility establishes eligibility,
|
|
28
|
+
not authorization or runtime proof. Its closed `firstdraft.release-compatibility/1` format rejects unknown keys.
|
|
29
|
+
|
|
30
|
+
## Prepare before merge
|
|
31
|
+
|
|
32
|
+
1. Update `package.json`, `package-lock.json`, and `release/compatibility.json`, and align the Skills CLI requirement.
|
|
33
|
+
2. Update the command, error, and Skill guidance affected by the change. Preserve dated release evidence.
|
|
34
|
+
3. Run focused checks while developing and the repository's required CI for the merge candidate. For a fresh
|
|
35
|
+
checkout, the complete local check is `npm ci --ignore-scripts`, `npm audit`, then `npm run check`.
|
|
36
|
+
4. Review and merge the change. Wait for the existing `CI` workflow to pass for the selected `main` SHA; publication
|
|
37
|
+
uses that run instead of starting another one.
|
|
38
|
+
|
|
39
|
+
Use existing smoke evidence when it covers the changed behavior. If changed CLI/Service/Skill behavior warrants a
|
|
40
|
+
live smoke, use a simple Plan, compile locally with `firstdraft plan compile --output .`, and boot the generated app locally
|
|
41
|
+
when runtime behavior changed. A CLI dispatch-only change can be covered by local command and packed-package tests.
|
|
42
|
+
Do not require Codespaces, GitHub Publication, native builds, or Revyl for a routine release. Codespaces is a fallback
|
|
43
|
+
development environment. Additional integration checks belong only to changes affecting those integrations.
|
|
44
|
+
|
|
45
|
+
## Publish the approved source
|
|
46
|
+
|
|
47
|
+
From a clean checkout of the selected `main` revision:
|
|
48
|
+
|
|
49
|
+
1. Confirm the exact package version and `v<package-version>` tag are both unused. If either identity is already
|
|
50
|
+
consumed, prepare the next version required by the pre-1.0 policy rather than moving or reusing it.
|
|
51
|
+
2. Confirm the intended three revisions are compatible and the coordinated release approval covers them.
|
|
52
|
+
3. Create and push `v<package-version>` at that source revision. Push one release tag at a time; the workflow
|
|
53
|
+
serializes publication and GitHub retains at most one pending run in a concurrency group.
|
|
54
|
+
4. Approve the existing `npm` environment deployment for that tag. The workflow publishes with provenance under
|
|
55
|
+
`latest`; no separate dist-tag mutation is needed.
|
|
56
|
+
|
|
57
|
+
The workflow requires a protected `v*` tag in `firstdraft/cli`, the matching `package.json` version, an unchanged
|
|
58
|
+
remote tag, and a commit in the first-parent history of protected `main`. It finds a successful `CI` push run for
|
|
59
|
+
that exact SHA using `gh run list`, checks the package file allowlist, then rechecks mutable refs after environment
|
|
60
|
+
approval. It does not install development dependencies, rerun tests or audit, or request interactive npm login.
|
|
61
|
+
Both source checks invoke `scripts/check-release-source.sh`; the postapproval invocation must remain before publish.
|
|
62
|
+
|
|
63
|
+
If CI is still running, let that run finish and rerun the failed publication verification job. Resolve failing
|
|
64
|
+
checks in CI itself; publication does not start a duplicate suite. A source fix after tagging requires a new version.
|
|
65
|
+
Do not retest unrelated surfaces merely because time has passed since merge.
|
|
168
66
|
|
|
169
67
|
## Verify and recover
|
|
170
68
|
|
|
171
|
-
After publication, inspect the registry before retrying
|
|
172
|
-
the tagged checkout, verify the exact version, `next` dist-tag, unchanged `latest` dist-tag, integrity metadata, and
|
|
173
|
-
provenance metadata:
|
|
69
|
+
After publication, inspect the registry before retrying a failed workflow; the immutable version may already exist:
|
|
174
70
|
|
|
175
71
|
```sh
|
|
176
72
|
FD_CLI_RELEASE_VERSION="$(node -p "require('./package.json').version")"
|
|
177
73
|
npm view "@firstdraft.com/cli@$FD_CLI_RELEASE_VERSION" \
|
|
178
|
-
version dist.integrity dist.shasum repository.url engines bin --json
|
|
74
|
+
version dist.integrity dist.shasum dist.attestations repository.url engines bin --json
|
|
179
75
|
npm dist-tag ls '@firstdraft.com/cli'
|
|
180
76
|
```
|
|
181
77
|
|
|
182
|
-
|
|
183
|
-
|
|
78
|
+
Confirm the intended version is `latest` and has integrity/provenance metadata. Install that exact version in a
|
|
79
|
+
temporary prefix, confirm `firstdraft --version`, and run `npm audit signatures` there to verify the published
|
|
80
|
+
artifact. This checks distribution; it does not repeat application qualification. Record the version, source,
|
|
81
|
+
package integrity, and any relevant smoke evidence in the dated release record.
|
|
184
82
|
|
|
185
|
-
If OIDC authentication fails, reconcile
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
the protected tag is immutable: prepare the next version rather than moving the tag. Never add a token fallback.
|
|
83
|
+
If OIDC authentication fails, reconcile the registry version and protected tag before retrying. Correct a broken
|
|
84
|
+
trusted-publisher relationship when necessary, then rerun failed jobs at the existing tag. If the tagged workflow
|
|
85
|
+
identity itself is wrong, prepare a new version; never move the tag or add a persistent-token fallback.
|
|
189
86
|
|
|
190
|
-
|
|
191
|
-
version
|
|
192
|
-
unpublishing as an exceptional incident response, not a routine rollback.
|
|
87
|
+
For a bad release, move `latest` to a known-good compatible version as an incident rollback, or deprecate the bad
|
|
88
|
+
version and publish a corrected higher version. Unpublishing is exceptional incident response, not routine rollback.
|
|
193
89
|
|
|
194
|
-
##
|
|
90
|
+
## Publisher configuration
|
|
195
91
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
to that exact version from the tagged checkout:
|
|
92
|
+
These are durable repository and npm controls, not a per-release account audit. Verify them when provisioning,
|
|
93
|
+
changing publisher configuration, or diagnosing an actual failure:
|
|
199
94
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
npm
|
|
204
|
-
|
|
95
|
+
- `firstdraft/cli` is public; `main` requires pull requests and CI, and a `v*` ruleset restricts tag mutation.
|
|
96
|
+
- The `npm` GitHub environment is limited to release tags, requires its existing reviewer, disables administrator
|
|
97
|
+
bypass, and defines `NPM_RELEASE_ENABLED=true`.
|
|
98
|
+
- npm trusted publishing identifies package `@firstdraft.com/cli`, repository `firstdraft/cli`, workflow
|
|
99
|
+
`publish.yml`, environment `npm`, and permission `createPackage`. The publishing account retains the intended
|
|
100
|
+
organization access and write-protecting 2FA. Configure these with an administrator only when needed.
|
|
101
|
+
- Publication runs on a GitHub-hosted runner with `id-token: write`, pinned Node.js 24.18.0 and npm 11.16.0. npm's
|
|
102
|
+
short-lived OIDC exchange is the only publication credential; no persistent npm token or Actions secret is used.
|
|
103
|
+
The CI lookup uses GitHub's read-only workflow token.
|
|
205
104
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
observed. Do not move `latest` merely because a release merged, published successfully, or passed candidate
|
|
210
|
-
compatibility checks, and do not use a dist-tag change to repair or disguise a bad immutable version.
|
|
105
|
+
Ordinary installation and use require no npm login. Ordinary trusted publication requires no local maintainer
|
|
106
|
+
login or per-release security-key ceremony. Request npm interaction only when npm requires it for a governance
|
|
107
|
+
change or an actual authentication failure. See [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/).
|
package/SECURITY.md
CHANGED
|
@@ -6,10 +6,8 @@ sensitive details in a public Issue.
|
|
|
6
6
|
|
|
7
7
|
## Supported versions
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
qualification; it does not displace the stable release before separate promotion approval. When `next` and `latest`
|
|
12
|
-
identify the same version, that release fills both roles.
|
|
9
|
+
The release currently identified by npm's `latest` tag receives security fixes. Approved releases publish directly
|
|
10
|
+
to `latest`; historical `next` tags do not establish a separate supported channel.
|
|
13
11
|
|
|
14
12
|
Distribution channels are independent of version syntax. Before `1.0.0`, increasing the minor version starts a
|
|
15
13
|
breaking compatibility line; increasing the patch version is otherwise backward-compatible within that line. All
|
package/docs/README.md
CHANGED
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
Use this page to find the narrowest authoritative document for a task. Runtime source and tests remain the final
|
|
4
4
|
evidence for implemented behavior; if they contradict a document, surface the contradiction instead of guessing.
|
|
5
5
|
|
|
6
|
-
|
|
|
7
|
-
|
|
|
8
|
-
|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
6
|
+
| Task | Read first |
|
|
7
|
+
| -------------------------------- | ------------------------------------------------------------------------------------------------ |
|
|
8
|
+
| Local app development | [Local guide](https://gist.github.com/raghubetina/3d424a97a1eaa6de8c406e67f32a237e) |
|
|
9
|
+
| Codespaces fallback | [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft) |
|
|
10
|
+
| Installation or package contract | [Root README](../README.md) |
|
|
11
|
+
| Commands, API, or output | [Command reference](commands.md) |
|
|
12
|
+
| Errors and recovery | [Errors and recovery](errors.md) |
|
|
13
|
+
| Versioning and publication | [Release policy and runbook](../RELEASING.md) |
|
|
14
|
+
| Dated release observations | [Release history](release-history.md) |
|
|
15
|
+
| Vulnerability reporting | [Security policy](../SECURITY.md) |
|
|
15
16
|
|
|
16
17
|
## Authority boundaries
|
|
17
18
|
|
|
@@ -21,7 +22,7 @@ evidence for implemented behavior; if they contradict a document, surface the co
|
|
|
21
22
|
- [errors.md](errors.md) owns handled-error interpretation and recovery guidance.
|
|
22
23
|
- [RELEASING.md](../RELEASING.md) owns living release policy and the operator runbook.
|
|
23
24
|
- [release-history.md](release-history.md) preserves dated release observations. Recheck live tags, package versions,
|
|
24
|
-
dist-tags
|
|
25
|
+
and dist-tags before relying on them operationally; publisher configuration is checked when it changes or fails.
|
|
25
26
|
- The source repository's `AGENTS.md` routes agent work; it should stay compact rather than duplicate these documents.
|
|
26
27
|
|
|
27
28
|
## Retrieval quality
|
|
@@ -51,6 +52,12 @@ smoke test. To inspect the package manifest without writing a tarball:
|
|
|
51
52
|
npm pack --dry-run --json --ignore-scripts
|
|
52
53
|
```
|
|
53
54
|
|
|
55
|
+
Pass Node test options through `npm test` to focus a run while retaining discovery under `test/`:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
npm test -- --test-name-pattern="publication"
|
|
59
|
+
```
|
|
60
|
+
|
|
54
61
|
To reproduce the length-delimited SHA-256 used by external evidence to identify packaged JavaScript runtime inputs
|
|
55
62
|
(`package.json`, `bin/firstdraft.js`, and every `.js` file under `src/`), run:
|
|
56
63
|
|