diff --git a/.changeset/invalid-key-exit-code.md b/.changeset/invalid-key-exit-code.md deleted file mode 100644 index 89ac3dd75..000000000 --- a/.changeset/invalid-key-exit-code.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@qawolf/cli": patch ---- - -Exit with code 3 when the API rejects the key with HTTP 401. - -Before this change, a command that sent an invalid `QAWOLF_API_KEY` exited with code 1, which the documented contract reserves for flow failures. Only a missing key exited with code 3. Now the public API commands and `qawolf auth whoami` exit with code 3 for a missing key and for an invalid key. A CI wrapper that branches on the exit status can now tell an auth failure from a test failure. diff --git a/.changeset/tame-donkeys-listen.md b/.changeset/tame-donkeys-listen.md deleted file mode 100644 index 3cf0d8b45..000000000 --- a/.changeset/tame-donkeys-listen.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@qawolf/cli": minor ---- - -`qawolf flows run` now exits 2 when the pattern selects nothing runnable. It previously exited 0, so a typo'd pattern or a mis-scoped CI shard reported success with no flow executed. Three cases changed: the pattern matches no file, the matched files declare no `target`, and every matched flow has a target the CLI cannot run locally (iOS, Basic, Electron). The `--env` path already exited 2 for its own no-match case. - -Pass `--allow-no-match` to keep the old exit-0 behavior where an empty selection is expected. diff --git a/CHANGELOG.md b/CHANGELOG.md index a4fe52675..80cd2126e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # @qawolf/cli +## 1.14.0 + +### Minor Changes + +- 6bf56f9: `qawolf flows run` now exits 2 when the pattern selects nothing runnable. It previously exited 0, so a typo'd pattern or a mis-scoped CI shard reported success with no flow executed. Three cases changed: the pattern matches no file, the matched files declare no `target`, and every matched flow has a target the CLI cannot run locally (iOS, Basic, Electron). The `--env` path already exited 2 for its own no-match case. + + Pass `--allow-no-match` to keep the old exit-0 behavior where an empty selection is expected. + +### Patch Changes + +- b5673eb: Exit with code 3 when the API rejects the key with HTTP 401. + + Before this change, a command that sent an invalid `QAWOLF_API_KEY` exited with code 1, which the documented contract reserves for flow failures. Only a missing key exited with code 3. Now the public API commands and `qawolf auth whoami` exit with code 3 for a missing key and for an invalid key. A CI wrapper that branches on the exit status can now tell an auth failure from a test failure. + ## 1.13.0 ### Minor Changes diff --git a/package.json b/package.json index caafb04f9..8d70f9d59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@qawolf/cli", - "version": "1.13.0", + "version": "1.14.0", "description": "Run and manage QA Wolf flows from the terminal, CI, or an AI agent", "keywords": [ "automation",