@plune-ai/cli 0.40.0 → 0.40.2

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 CHANGED
@@ -175,13 +175,13 @@ call, and so is a `timeout` stub without `provider.timeout`. A run that holds a
175
175
  | `plune mcp scan` | Scan what a model or a person cannot see in **any** MCP server, sending no probe unless `--active` asks for the declared ones (see the CLI guide): descriptions (hidden Unicode, override phrases), a pin file, client configuration (`.mcp.json`, `.cursor/mcp.json`, `.vscode/mcp.json`: secrets, plain http, shell launchers) and tool names across servers. See the [CLI guide](docs/guide/cli.md#plune-mcp-scan). Flags: `--snapshot [label=]file`, `--config <file>`, `--client claude-code\|cursor\|vscode`, `--pin-file`, `--only`/`--skip`, `--active` with `--probes`, `--confirm-host`, `--max-calls`, `--max-requests`, `--token-env`, `--other-token-env`, `--fail-on error\|warn\|never`, `--gate-heuristics`, `--allow-partial`, `--ignore-file`, `--allow-long-exceptions`, `--format human\|json\|github\|sarif`, `--reporter junit-xml`, `--out`, and the connection flags. Exit `0` nothing that gates, `1` a finding at `--fail-on`, `2` a usage error, `3` something could not be measured. |
176
176
  | `plune mcp conformance` | Check **any** MCP server against the protocol: a catalog of checks with their requirement level and spec section, a score from the `MUST` checks only, a frozen profile so a score means the same thing next month. `--list-checks` prints the catalog without connecting; `--fixture <file>` names the only tools a run may call; `--format human|json`, `--reporter junit-xml` and `--out [<format>=]<path>` (repeatable) write JSON and JUnit XML for `plune run import` from one run. See the [CLI guide](docs/guide/cli.md#plune-mcp-conformance). |
177
177
  | `plune sync` | Upload the latest local run to the platform. Flags: `--file <path>` to send a specific run JSON, `--fail-on-failures` to read the run's summary back once after the upload and exit with [the gate](#a-release-gate---fail-on-failures)'s code. Each upload carries an `Idempotency-Key` (SHA-256 of the body), so sending the same run again returns the same run rather than creating a second one. Against a platform with `POST /v1/jobs` the upload is also reported as a job (kind `sync`, counting the run's rows) that ends completed, or failed with the error text if the sync fails; an older platform without the route is not told, and a job report never fails the sync: when the sync goes through, one the platform did not take is said in one line on stderr. |
178
- | `plune run import <file \| folder>` | Turn a **JUnit XML** or **Playwright JSON** report, a **k6 summary** or **Lighthouse JSON** report, a **folder of JUnit XML files** (Maven Surefire's `target/surefire-reports`, Gradle's `build/test-results/test`), or an **Allure `allure-results` folder**, into a run in Plune. Needs no provider key — nothing is generated. Flags: `--format junit\|playwright-json\|allure\|k6\|lighthouse` (detected when omitted: a folder with a `*-result.json` is Allure, any other folder is read as the JUnit `*.xml` files in it), `--name <text>` to call the run something other than the [folder-based default](#what-the-run-is-called), `--min-score <category>=<0-100>` (repeatable) for the score a [Lighthouse](#a-k6-summary-or-a-lighthouse-report) category needs to pass, `--key <externalKey>` to land several reports in one run (with `PLUNE_SHARED_RUN=1` — see below), `--create` to offer unmatched tests to the review queue, `--fail-on-missing-attachments` to exit 1 when a file a JUnit report names with `[[ATTACHMENT\|path]]`, or an Allure result names as a `source`, is not there (the results are sent either way), `--upload-concurrency <n>` for files uploaded at once ([1 to 32, default 16](#many-screenshots-upload-concurrency-and-retries)), `--fail-on-failures` to exit with [the gate](#a-release-gate---fail-on-failures)'s code on the summary the platform froze when this import finished the run. |
178
+ | `plune run import <file \| folder>` | Turn a **JUnit XML** or **Playwright JSON** report, a **k6 summary** or **Lighthouse JSON** report, an **e2e `report.json`** (report-1), a **folder of JUnit XML files** (Maven Surefire's `target/surefire-reports`, Gradle's `build/test-results/test`), or an **Allure `allure-results` folder**, into a run in Plune. Needs no provider key — nothing is generated. Flags: `--format junit\|playwright-json\|allure\|k6\|lighthouse\|e2e` (detected when omitted: a folder with a `*-result.json` is Allure, any other folder is read as the JUnit `*.xml` files in it), `--name <text>` to call the run something other than the [folder-based default](#what-the-run-is-called), `--min-score <category>=<0-100>` (repeatable) for the score a [Lighthouse](#a-k6-summary-or-a-lighthouse-report) category needs to pass, `--key <externalKey>` to land several reports in one run (with `PLUNE_SHARED_RUN=1` — see below), `--create` to offer unmatched tests to the review queue, `--fail-on-missing-attachments` to exit 1 when a file a JUnit report names with `[[ATTACHMENT\|path]]`, or an Allure result names as a `source`, is not there (the results are sent either way), `--upload-concurrency <n>` for files uploaded at once ([1 to 32, default 16](#many-screenshots-upload-concurrency-and-retries)), `--fail-on-failures` to exit with [the gate](#a-release-gate---fail-on-failures)'s code on the summary the platform froze when this import finished the run. |
179
179
  | `plune run start` | Open a platform run — or join the one already carrying `--key` — and print its id. Flags: `--key <externalKey>` (generated when absent), `--name <text>` to call the run something other than the [default](#what-the-run-is-called), `--json` for one machine-readable line. |
180
180
  | `plune run finish <id>` | Close a platform run. This is what the reporter tells you to do for a run it had to leave open. Flags: `--terminate` to record it as cut short, `--reason <text>`, `--fail-on-failures` to exit with [the gate](#a-release-gate---fail-on-failures)'s code on the summary the platform froze. |
181
181
  | `plune run exec -- <command>` | Open a run, run the command inside it, close the run — and exit with whatever the command returned. Sets `PLUNE_SHARED_RUN` for you, so anything reporting inside joins that run. Flags: `--key <externalKey>`, `--name <text>` (as on `run start`), `--fail-on-failures` to exit with [the gate](#a-release-gate---fail-on-failures)'s code instead — or with the command's own when no result reached the run. |
182
182
  | `plune run delete <id>` | Delete a run and everything it produced — its results and the review-queue entries it raised. Approved test cases and the audit log stay. **Recoverable for 30 days** (an owner of the project can put it back from Settings → Bin), then gone for good. No prompt: it is your data, and this command belongs in scripts. |
183
183
  | `plune run report` | Replay `.plune/pending-results.jsonl` — send what the reporter could not. The lines of one reporter run go back as one run, with the commit and branch the reporter recorded. Once every result has gone the file is renamed to `pending-results.<time>.sent.jsonl`; if anything did not go, it stays as it was. Flags: `--file <path>`. |
184
- | `plune ingest [dir]` | Record a [Cairn](https://github.com/plune-ai/cairn) run in Plune. Omit `[dir]` for the newest run under `./runs`, or name the directory holding `report.json`. Generated cases arrive as **review proposals** — nothing is created until a person approves it. A case of a `design` or `explore` report that carries `traceUrl`, the address of the run's trace, is sent with it; an address that is not a plain https link (http, a user name or password in it, over 2048 characters) is left out with a line saying why, and the case is still sent. A run recorded with `--screencast` also sends each case's video and trace to its proposal (or to its result, for a case approved before), up to 100 MiB a file; a file that does not go is a line under the counters, never a failure. The ingest declares those recordings on each case first (title, chapters, and each file's run-relative path, kind and size, a file over 100 MiB included), so the proposal can show what each file became. Against a platform with `POST /v1/jobs` the ingest is also reported as a job (kind `ingest`, counting the cases sent, linked to the run it landed in) that ends completed, or failed with the error text if the ingest fails; as with `sync`, an older platform is not told and a job report never fails the ingest or changes its exit code. |
184
+ | `plune ingest [dir]` | Record a [Cairn](https://github.com/plune-ai/cairn) run in Plune. Omit `[dir]` for the newest run under `./runs`, or name the directory holding `report.json`. Generated cases arrive as **review proposals** — nothing is created until a person approves it. A case of a `design`, `explore` or proposed-scenarios report that carries `rationale`, the reason the case exists, is sent with it, and the proposal shows it when opened; the platform takes at most 400 characters, so a longer one is sent cut to 400, with a line saying how many cases were cut. A case of a `design` or `explore` report that carries `traceUrl`, the address of the run's trace, is sent with it; an address that is not a plain https link (http, a user name or password in it, over 2048 characters) is left out with a line saying why, and the case is still sent. A run recorded with `--screencast` also sends each case's video and trace to its proposal (or to its result, for a case approved before), up to 100 MiB a file; a file that does not go is a line under the counters, never a failure. The ingest declares those recordings on each case first (title, chapters, and each file's run-relative path, kind and size, a file over 100 MiB included), so the proposal can show what each file became. Against a platform with `POST /v1/jobs` the ingest is also reported as a job (kind `ingest`, counting the cases sent, linked to the run it landed in) that ends completed, or failed with the error text if the ingest fails; as with `sync`, an older platform is not told and a job report never fails the ingest or changes its exit code. |
185
185
  | `plune pull [file]` | Write the project's test cases as **one Markdown document** — Testomat's classical format, plus Plune's own columns — to `plune/cases.md` (or `[file]`). Refuses to overwrite a file git sees as modified; `--force` overrides, `--suite <id>` takes one suite or folder and what is under it. |
186
186
  | `plune push [file] [--dry-run]` | Send the document back. Cases are matched by `id`; a block without one becomes a draft; an unknown id is refused by line; **nothing is deleted**. Prints the report — created, updated, unchanged, refused, warnings — and with `--dry-run` writes nothing. Exit `4` when anything was refused. |
187
187
  | `plune requirements import <file.md>` | Import requirements from a **Markdown file** (an SRS, a PRD, a page exported from a wiki). With no mapping flags it lists the tables and sections the file has and exits `0`; with `--table` or `--sections` it is a **dry run** that writes nothing until you add `--yes`. See [Requirements from a Markdown file](#requirements-from-a-markdown-file). Needs a Plune platform that serves `POST /v1/projects/:id/requirements/import`. |
@@ -308,6 +308,7 @@ plune run import ./playwright.json # or Playwright's own JSON report
308
308
  plune run import ./allure-results # or the folder an Allure adapter wrote — see below
309
309
  plune run import ./summary.json # or a k6 summary, thresholds as pass or fail — see below
310
310
  plune run import ./lighthouse.json # or a Lighthouse report, a category per result — see below
311
+ plune run import .e2e/report.json # or the report-1 JSON the e2e runner writes — see below
311
312
  ```
312
313
 
313
314
  The format is read from the file, not from its name. Statuses go over as the report wrote them and
@@ -558,6 +559,35 @@ Both are recognised by their own keys (`metrics` for k6, `lighthouseVersion` and
558
559
  Lighthouse), never by the file name; `--format k6` or `--format lighthouse` says it outright. A report file
559
560
  that starts with a UTF-8 byte order mark is read as if it did not, in every format.
560
561
 
562
+ ### An e2e report (report-1)
563
+
564
+ The `e2e` runner writes `report.json` under its output folder (`.e2e/` by default), in its `report-1`
565
+ format. Import that file; the artifacts it names are read from the `results/` folder beside it, where the
566
+ runner puts them.
567
+
568
+ ```bash
569
+ plune run import .e2e/report.json
570
+ ```
571
+
572
+ Each attempt of a test is one result, as with Playwright's retries: a flaky test arrives as its failed
573
+ attempts and the one that passed. The statuses go over as Plune's own words, under the runner name `e2e`:
574
+ `passed`, `failed`, `skipped`; a `timed-out` attempt is **broken** (the test gave up, the product did not
575
+ answer wrongly) and an `interrupted` one is **blocked** (the run was cut short). A project can remap them under
576
+ `e2e` as for any runner. A failed attempt carries its error (`ASSERTION_FAILED: expect.toHaveText failed` and
577
+ the expected and observed text), the step that did not pass (`expect.toHaveText locator("[role=status]")`),
578
+ and the files the runner kept: screenshots and text files are uploaded, and a file that is not under
579
+ `results/` is listed as not found (`--fail-on-missing-attachments` turns that into exit 1). A video the
580
+ runner gives as a hosted `url` is sent as a link. A test is known by its target, file and title
581
+ (`e2e#web#tests/todos.e2e.ts#counts what remains`); the commit and branch come from the report's `vcs` when it
582
+ has one.
583
+
584
+ Not sent as results: the tests a filter left out of the run (`selected: false`); the tests a `--last-failed`
585
+ rerun carried from an earlier run (`run.carried`; they did not run in this one), counted in one line;
586
+ run-level errors such as a failed `afterAll`, one line each; and the model tokens and estimated cost the
587
+ report counts, printed in one line, since Plune keeps no cost for an imported run. Only `schemaVersion: "report-1"` is
588
+ read: the format is young and changes often, and another version is refused with exit 2 and the version it
589
+ found. `--format e2e` says it outright; without it the file is recognised by its `schemaVersion`.
590
+
561
591
  ### Several jobs, one run
562
592
 
563
593
  Two suites, or a sharded matrix, report into a single run when every job shares a key **and** knows