@plune-ai/cli 0.39.13 → 0.39.15

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
@@ -118,14 +118,14 @@ the last resort, used only when `PLUNE_TOKEN` is set nowhere else. Nothing write
118
118
 
119
119
  | Command | Summary |
120
120
  | ------- | ------- |
121
- | `plune run` | Run the suite. Flags: `--dry-run` (price the run from the model's rates — no provider key, no network; it prints the estimate with no verdict and does not replace the last run; with a [list of models](docs/guide/configuration.md#several-models-a-model--eval-matrix) each is priced at its own rates), `--only <id\|tag>` (repeatable; an eval id selects its cells on every model), `--bail`, `--no-cache`, `--cache-strict`, `--cache-max-age <duration>`, `--concurrency <n>`, `--format console\|json\|markdown`, `-o, --output <file>`. |
122
- | `plune report` | Re-render the most recent run. Flags: `--format`, `-o`. |
121
+ | `plune run` | Run the suite. Flags: `--dry-run` (price the run from the model's rates — no provider key, no network; it prints the estimate with no verdict and does not replace the last run; with a [list of models](docs/guide/configuration.md#several-models-a-model--eval-matrix) each is priced at its own rates), `--only <id\|tag>` (repeatable; an eval id selects its cells on every model), `--bail`, `--no-cache`, `--cache-strict`, `--cache-max-age <duration>`, `--concurrency <n>`, `--format console\|json\|markdown\|junit` (`junit` is JUnit XML: a `<testsuite>` per eval, a `<testcase>` per row, the file `plune run import` and CI systems read), `-o, --output <file>`. |
122
+ | `plune report` | Re-render the most recent run. Flags: `--format` (the formats of `plune run`, `junit` included), `-o`. |
123
123
  | `plune judge-check <labels.jsonl>` | How well a model judge agrees with a person's pass/fail labels of the saved run's rows: agreement, TPR, TNR, Cohen's kappa with a 95% interval. Offline; changes nothing. Flags: `--init`, `--force`, `--run`, `--eval`, `--check`, `--min-kappa`, `--max-interval-width`. See [the CLI reference](./docs/guide/cli.md#plune-judge-check). |
124
124
  | `plune diff <baseline> <current>` | Compare two `plune run --format json` outputs and report pass→fail regressions. Flags: `--fail-on-regression` (exit `1` on a regression, `3` when none but an eval was not measured), `--format`, `-o`. |
125
125
  | `plune init` | Scaffold `plune.yaml`, a sample dataset, and `.env.example`. Flags: `--yes` (non-interactive), `--force`, `--from-openai-eval <eval.json>` (build it from an exported OpenAI eval). |
126
126
  | `plune login` | Save a [Plune platform](https://plune.ai/platform) API token so `sync` and `ingest` can reach it. The token is **checked against the API before it is saved**, so a wrong one fails here rather than two commands later. Get one at `https://beta.plune.ai` → Account → API tokens. Flags: `--token <token>` (omit to paste it or pipe it via stdin), `--skip-verify` (save without checking, for offline setup). In CI, skip this step: every platform command reads `PLUNE_TOKEN` from the environment first, and the saved login only when it is not set. |
127
127
  | `plune logout` | Remove the saved token. |
128
- | `plune mcp serve` | Serve the Plune tools to an AI agent (Claude Code, Codex, any MCP client) over **MCP stdio**. See [Plune tools for AI agents](#plune-tools-for-ai-agents-plune-mcp). Flags: `--project <id>` (default `PLUNE_PROJECT`), `--read-only` (offer only the read tools). |
128
+ | `plune mcp serve` | Serve the Plune tools to an AI agent (Claude Code, Codex, any MCP client) over **MCP stdio**. See [Plune tools for AI agents](#plune-tools-for-ai-agents-plune-mcp). Flags: `--project <id>` (default `PLUNE_PROJECT`), `--read-only` (offer only the read tools), `--disable-tool <name>` (switch one tool off; repeatable). |
129
129
  | `plune mcp check` | Check that **any** MCP server starts and answers: handshake, protocol version, capabilities, the lists, `ping`. See [Is the server alive](#is-the-server-alive-plune-mcp-check). Flags: `--check-timeout <duration>`, `--wait <duration>`, `--smoke` (with `--smoke-limit`, `--smoke-timeout`, `--budget`, `--allow-write-calls`), `--out [<format>=]<path>` (repeatable), `--reporter junit-xml`, `--format human\|json\|github\|markdown`, and the connection flags. Exit `0` healthy, `1` a check failed, `2` the server did not start, could not be reached or wants credentials, or a flag is wrong, `3` something could not be measured. |
130
130
  | `plune mcp lint` | Check the tool list of **any** MCP server for what confuses a model — no account, no model. See [Checking any MCP server](#checking-any-mcp-server-plune-mcp-lint). Flags: `--fail-on error\|warn\|info\|never`, `--show-info`, `--format human\|json\|github\|markdown`, `--reporter junit-xml`, `--out [<format>=]<path>`, `--ignore-file <path>`, `--list-rules`, `--call`, `--call-limit <n>`, `--call-timeout <duration>`, and the connection flags (`--url`, `--header-env`, `--env`, …). Exit `0` clean, `1` findings, `2` the server did not start or a flag is wrong, `3` nothing measured. |
131
131
  | `plune mcp snapshot` | Write the contract of **any** MCP server — tools, resources, resource templates, prompts, capabilities, instructions — as one stable JSON file to commit. See [Contract snapshots](#contract-snapshots-plune-mcp-snapshot-and-plune-mcp-diff). Flags: `--out <path>` (default stdout), `--push` with `--server <id>` or `--server-name <name>` and optional `--environment <text>` (send it to the platform's MCP catalog; nothing is sent without `--push`), and the connection flags. Exit `0` written (or sent), `1` with `--push` the platform could not be reached (the snapshot is kept in a file), `2` the server did not start, a declared list could not be read, or the platform refused the push (login, body, quota), `3` the server lists nothing. |
@@ -153,7 +153,16 @@ the last resort, used only when `PLUNE_TOKEN` is set nowhere else. Nothing write
153
153
 
154
154
  Global flags: `-c, --config <path>` · `-v, --verbose` · `--no-color`.
155
155
 
156
- **Exit codes:** `0` everything passed · `1` an assertion failed · `2` configuration or execution error · `3` `pull` refused to overwrite uncommitted changes · `4` `push` had refusals · `5` `plune run --cache-strict` found rows with no cache entry (it wins over `1` and `2`: the run is incomplete).
156
+ **Exit codes of `plune run`:**
157
+
158
+ | Code | When |
159
+ | --- | --- |
160
+ | `0` | Every row passed. Also a `--dry-run`, a run where `--only` matched no eval, and a run whose rows that did not pass are all `blocked` or `skipped` (never judged). |
161
+ | `1` | At least one row **failed** an assertion, whether or not other rows errored. Also an error the CLI did not expect (it says «This one is on us»), and an option `run` does not have or an option given without its value. |
162
+ | `2` | The run **could not start or could not finish**: a configuration or usage error (no `plune.yaml`, YAML that does not parse, a config that does not validate, a missing provider key, an unknown prompt variable, `--runs` out of range, a bad `--tool-description`, flags that do not go together, a file or folder that cannot be read or written), **or** a run where rows **errored** (a provider outage) and none failed. |
163
+ | `5` | `--cache-strict` found rows with no cache entry. It wins over `1` and `2`: the run is incomplete. |
164
+
165
+ `--bail` and `--format` do not change the code. `plune run` returns no other code. Of the other commands, `plune pull` exits `3` when it refuses to overwrite uncommitted changes and `plune push` exits `4` when it had refusals; the rest say their codes in the table above and in the [CLI guide](docs/guide/cli.md).
157
166
 
158
167
  ### Completion cache
159
168
 
@@ -740,6 +749,18 @@ The server reads the token the way every platform command does: `PLUNE_TOKEN` fr
740
749
  (set it in the client's `env` block), else the login `plune login` saved. A read token, or
741
750
  `--read-only`, offers only the read tools.
742
751
 
752
+ `--disable-tool <name>` switches one tool off, and can be given several times: the tool is not in the
753
+ tool list, `plune_discover_tools` neither lists nor reveals it, and a call by its name is answered with
754
+ a tool error (code `tool_disabled`) that says it is switched off, before anything is sent to Plune, a
755
+ `dry_run` included. `plune_discover_tools` itself leaves the list once every tool it could find is off.
756
+ A name that is not a Plune tool ends the command with exit `2` and the list of names. Switching a tool
757
+ off hides that tool, not the API route behind it: `plune_api_request` can still reach any route the
758
+ token may use, so switch it off too, or use `--read-only`, when the point is to stop changes.
759
+
760
+ ```bash
761
+ claude mcp add plune -- npx -y @plune-ai/cli mcp serve --disable-tool plune_api_request --disable-tool plune_cases_update
762
+ ```
763
+
743
764
  `plune_project_context`, the call an agent starts with, also answers `memoryRules`: the rules of the
744
765
  project's memory that a person accepted in the review queue and has not retired, each as its `id` and
745
766
  `text`, for the agent to follow without asking again. A rule that is only proposed, or was rejected, is