@plune-ai/cli 0.36.0 → 0.37.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 +11 -0
- package/dist/cli.cjs +695 -147
- package/dist/index.cjs +118 -40
- package/dist/index.d.cts +26 -3
- package/dist/index.d.ts +26 -3
- package/dist/index.js +118 -40
- package/dist/mcp-tools.cjs +50 -12
- package/dist/mcp-tools.d.cts +9 -0
- package/dist/mcp-tools.d.ts +9 -0
- package/dist/mcp-tools.js +50 -12
- package/package.json +2 -1
- package/skills/qa-mission/SKILL.md +160 -0
- package/skills/qa-mission/references/tool-calls.md +117 -0
package/README.md
CHANGED
|
@@ -143,6 +143,7 @@ the last resort, used only when `PLUNE_TOKEN` is set nowhere else. Nothing write
|
|
|
143
143
|
| `plune requirements links <file.md>` | Import a **traceability matrix** (a Markdown table of requirement key to test) as links between requirements and cases. With no flags it lists the tables the file has and exits `0`; with `--table`, `--requirement-column` and `--test-column` it is a **dry run** that writes nothing until you add `--yes`. See [Links from a traceability matrix](#links-from-a-traceability-matrix). Needs a platform that serves `POST /v1/projects/:id/requirements/import/links` (plune-ai/plune#1608). |
|
|
144
144
|
| `plune verify` | Compare the project's **automated cases** with the Playwright tests in the code, **read-only** (plune-ai/plune#1291). Prints both sides: cases in Plune that the code no longer has (already `detached`, or one a full run would detach) and tests in the code that Plune has no case for. A test is matched by the id it names (`PluneId` annotation or `@P<id>` in its title), else by its `path-title` key. Nothing is written to Plune and no id is added to your source. Playwright only. Flags: `--from <file>` (a saved `playwright test --list --reporter=json`, instead of running Playwright), `--playwright-config <path>`, `--json`, `--fail-on-drift` (exit `1` when either side has something the other lacks). |
|
|
145
145
|
| `plune ids [--write]` | Write the Plune **case id of each Playwright test that names none** into a mapfile, `plune/ids.json` (`{ "<path-title>": "<case id>" }`), instead of editing your test files (plune-ai/plune#1291). A **dry run** unless `--write`: it prints what it would add. Only tests whose case Plune already holds get an entry (matched by the `path-title` key); a test with no case yet is listed and skipped. Idempotent: entries are only added, never overwritten or removed (an entry for a test no longer in the code is kept and listed), the file is sorted so diffs stay small, and nothing is written when nothing changes. A mapfile that is not a JSON object of strings is refused (exit `2`) and left as it is. Playwright only. The Playwright reporter reads the mapfile: an entry names the case after the `PluneId` annotation, `@P<id>` and a metadata attachment, and before the `playwright-id` and `path-title` keys, so a renamed test keeps its case when the entry is updated with `plune ids --write` (override the path with `PLUNE_IDS_FILE` or the reporter option `idsFile`). Flags: `--write`, `--file <path>` (default `plune/ids.json`), `--from <file>`, `--playwright-config <path>`, `--json`. Exit codes as `plune verify`. |
|
|
146
|
+
| `plune automate <caseId>` | Run [Cairn](https://github.com/plune-ai/cairn)'s `automate` on **one case from Plune** and print the code it wrote as a diff of new files (#148). Cairn runs in `--repo <dir>` (default: the current directory) with an environment that holds **no `PLUNE_*` variable and no token**, and reads a copy of that directory's `.env` without them. Nothing is written into the repo. With `--send`, the same files go to the **review queue** as an automation proposal (`POST /v1/review-items/automations`), the spec file's `test()` call named as the case's code; the bounds (10 files, 16 KB each, 64 KiB in all) are checked first, and the queue entry's id is printed, new or replacing the one waiting for the case. Flags: `--repo`, `--cairn <path>`, `--url <url>`, `--send`; arguments after `--` go to Cairn. See [the CLI reference](./docs/guide/cli.md#plune-automate). |
|
|
146
147
|
| `plune plan grep <id>` | Print a [test plan](https://docs.plune.ai/platform/plans/) as **one `--grep` pattern** — `npx playwright test --grep "$(plune plan grep <id>)"` or `npx vitest run -t "$(plune plan grep <id>)"` runs exactly what the plan collects. Each case contributes its title path from the `path-title` key the reporter wrote (the file left out, `[ >#]+` between the segments — a space for Playwright, jest, mocha and vitest ≤ 4, ` > ` for vitest 5), escaped, joined with `\|`; a case without one goes in by title. The pattern is all that reaches stdout; the summary — how many cases, how many keyed — goes to stderr. An empty plan prints `(?!)`, which matches nothing, because an empty `--grep` would run everything. |
|
|
147
148
|
| `plune run grep <run> [--failed]` | Print a run's **automated** cases as one `--grep` pattern, built the way `plan grep` builds a plan's — so the commands Plune shows for a run work as they are: `npx playwright test --grep "$(plune run grep <run-id> --failed)"` re-runs an automated run's failures where your tests run (Plune starts no CI), and `PLUNE_RUN=<key> npx playwright test --grep "$(plune run grep <key>)"` runs the automated half of a mixed run launched without a plan. `<run>` is the run's id (a UUID) or its key (`rk_` and ten hex); anything else is refused with exit `2` before anything is sent, and a key no run carries exits `1`. The cases are the ones the run expected — cases added on its page among them, run or not — or holds a result of; manual cases are left out. `--failed` keeps the cases whose latest result the platform counts as failed or broken, so a muted case's failure stays out, as from **Re-run N failed**. Only the pattern reaches stdout; how many cases were taken and how many left out goes to stderr; nothing taken prints `(?!)`. Needs a Plune that serves `GET /v1/runs/:id/cases` (plune-ai/plune#1333). |
|
|
148
149
|
|
|
@@ -671,6 +672,16 @@ The server reads the token the way every platform command does: `PLUNE_TOKEN` fr
|
|
|
671
672
|
(set it in the client's `env` block), else the login `plune login` saved. A read token, or
|
|
672
673
|
`--read-only`, offers only the read tools.
|
|
673
674
|
|
|
675
|
+
`plune_project_context`, the call an agent starts with, also answers `memoryRules`: the rules of the
|
|
676
|
+
project's memory that a person accepted in the review queue and has not retired, each as its `id` and
|
|
677
|
+
`text`, for the agent to follow without asking again. A rule that is only proposed, or was rejected, is
|
|
678
|
+
never among them. A platform that keeps no project memory answers no rules, and the rest of the
|
|
679
|
+
context stands.
|
|
680
|
+
|
|
681
|
+
To run a whole testing mission with these tools, give the agent the [`qa-mission` skill](docs/guide/qa-mission.md)
|
|
682
|
+
(it ships in the package under `skills/qa-mission`): it reads the product's docs, asks 3 to 5 questions,
|
|
683
|
+
writes a test strategy file and proposes 20 or more cases to the review queue.
|
|
684
|
+
|
|
674
685
|
The server speaks both MCP protocol eras: a client that opens with `initialize` (revision
|
|
675
686
|
`2025-11-25` and earlier) and a client on revision `2026-07-28` that sends `server/discover` and
|
|
676
687
|
per-request `_meta`. In the newer revision a client learns that `plune_discover_tools` changed the
|