@firstdraft.com/cli 0.9.0 → 0.10.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 +8 -6
- package/docs/README.md +1 -1
- package/docs/commands.md +591 -119
- package/docs/errors.md +171 -70
- package/package.json +4 -1
- package/src/agent-sentences.js +210 -0
- package/src/api-authentication.js +25 -6
- package/src/api-response.js +50 -5
- package/src/cli.js +3113 -1076
- package/src/commands/account.js +97 -0
- package/src/commands/login.js +246 -42
- package/src/commands/maintain.js +662 -0
- package/src/commands/note.js +204 -0
- package/src/commands/plan-compile.js +2 -56
- package/src/commands/report.js +469 -0
- package/src/commands/start.js +52 -0
- package/src/compilation-artifact.js +4 -1
- package/src/credentials.js +145 -7
- package/src/oauth.js +33 -25
- package/src/plan-compile-progress.js +8 -81
- package/src/plan-state.js +250 -1
- package/src/service-client.js +513 -0
- package/src/commands/plan-publish.js +0 -1146
package/README.md
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
# First Draft CLI
|
|
2
2
|
|
|
3
3
|
firstdraft is the command-line client shared by First Draft agents and automation. It manages local Foundation Plan
|
|
4
|
-
files, calls the versioned Service API, exposes reviewed analysis and GapSets, materializes verified
|
|
5
|
-
|
|
4
|
+
files, calls the versioned Service API, exposes reviewed analysis and GapSets, and materializes verified
|
|
5
|
+
Compilations.
|
|
6
6
|
|
|
7
7
|
Start with the [local development guide](https://firstdraft.github.io/firstdraft/docs/guides/local-app.html):
|
|
8
8
|
install the CLI and Skill, then compile into your current folder with `firstdraft plan compile --output .`. No Drawing Board
|
|
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
|
-
`--output .` is also the default, so `firstdraft plan compile` alone writes to the current folder.
|
|
13
|
-
requires `--github`.
|
|
12
|
+
`--output .` is also the default, so `firstdraft plan compile` alone writes to the current folder.
|
|
14
13
|
|
|
15
14
|
## What this repository owns
|
|
16
15
|
|
|
17
16
|
- local Plan initialization, UUIDs, application keys, and source hashing;
|
|
18
17
|
- conditional whole-document push and conflict reporting;
|
|
19
18
|
- analysis polling and complete GapSet output;
|
|
20
|
-
- direct Compile-and-materialize
|
|
19
|
+
- direct Compile-and-materialize;
|
|
21
20
|
- retained Compilation inspection, cancellation, and artifact download;
|
|
22
21
|
- terminal output, exit status, and recovery contracts;
|
|
23
22
|
- the dependency-free npm package; and
|
|
@@ -97,7 +96,10 @@ The published package:
|
|
|
97
96
|
- installs the firstdraft executable;
|
|
98
97
|
- runs reviewed JavaScript source directly;
|
|
99
98
|
- has no runtime dependencies or install scripts;
|
|
100
|
-
-
|
|
99
|
+
- sends nothing in the background or beyond the command the caller runs. [What the CLI sends](docs/commands.md#what-the-cli-sends)
|
|
100
|
+
lists each command's requests and their `FirstDraft-Client` header: CLI and plugin versions, agent, and operating
|
|
101
|
+
system. `report` and `note` read the account first and, only with reports on, print their exact body and then send it;
|
|
102
|
+
- makes no update check of its own: its update line comes from First Draft's answer to the command;
|
|
101
103
|
- reads Bearer credentials from the environment or its private `firstdraft login` credentials file; and
|
|
102
104
|
- carries npm provenance linking registry bytes to its GitHub workflow and commit.
|
|
103
105
|
|
package/docs/README.md
CHANGED
|
@@ -50,7 +50,7 @@ npm pack --dry-run --json --ignore-scripts
|
|
|
50
50
|
Pass Node test options through `npm test` to focus a run while retaining discovery under `test/`:
|
|
51
51
|
|
|
52
52
|
```sh
|
|
53
|
-
npm test -- --test-name-pattern="
|
|
53
|
+
npm test -- --test-name-pattern="compilation"
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
To reproduce the length-delimited SHA-256 used by external evidence to identify packaged JavaScript runtime inputs
|