@cappa/cli 0.15.0 → 0.16.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.
@@ -11,7 +11,8 @@ Cappa captures screenshots (Storybook stories, pages) with Playwright and diffs
11
11
  approved baselines. `cappa agent` turns the diff into something you can judge cheaply: a heuristic
12
12
  labels each change, and only the ones it cannot settle are handed to you with small crops.
13
13
 
14
- Run the CLI as `{{cappa}}` in this project; the examples below write `cappa` for short.
14
+ Run the CLI as `{{cappa}}` from the project root — it already runs in the package holding
15
+ `cappa.config.ts`, so don't `cd` first. The examples below write `cappa` for short.
15
16
 
16
17
  Sibling files — read on demand:
17
18
  - `JUDGING.md` — judging changes when `pendingJudgments > 0`.
@@ -28,16 +29,13 @@ Sibling files — read on demand:
28
29
  non-passing screenshot.
29
30
 
30
31
  ## 1. Capture
31
- Run from the directory holding `cappa.config.ts`.
32
-
33
32
  ```sh
34
33
  cappa capture --json
35
34
  ```
36
35
 
37
- - Capture needs whatever the plugins point at to be reachable — read `cappa.config.ts`. For
38
- `@cappa/plugin-storybook`, the configured Storybook URL must be up (start it with the project's
39
- storybook script if it is not, and stop it when you are done). For `@cappa/plugin-pages`, the
40
- page URLs must be reachable.
36
+ - If the config has a `webServer`, capture starts and stops the app itself. If it reports an
37
+ unreachable URL (`Cannot reach …: connection refused`), follow what the error says.
38
+ - Without a `webServer`, make sure the plugin URLs in `cappa.config.ts` are reachable first.
41
39
  - `--json` prints one document to stdout: `{ ok, tasks, screenshots, errors, results, next }`.
42
40
  Progress is muted; warnings and errors go to stderr.
43
41
  - `errors[]` are tasks that broke (a story threw, a page timed out). Fix those first — there is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cappa/cli",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Command line interface for Cappa",
5
5
  "author": "Tim Richter",
6
6
  "license": "MIT",
@@ -37,10 +37,10 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@cappa/client": "0.10.0",
40
- "@cappa/config": "0.1.4",
41
- "@cappa/core": "0.15.0",
40
+ "@cappa/config": "0.2.0",
41
+ "@cappa/core": "0.16.0",
42
42
  "@cappa/logger": "0.0.12",
43
- "@cappa/server": "0.10.0",
43
+ "@cappa/server": "0.10.1",
44
44
  "chalk": "^6.0.0",
45
45
  "commander": "15.0.0",
46
46
  "picocolors": "1.1.1",