From b3da089fd3f0529bdd85b00868872794c00ddefd Mon Sep 17 00:00:00 2001 From: googleworkspace-bot Date: Thu, 12 Mar 2026 16:03:48 +0000 Subject: [PATCH] chore: release versions --- .changeset/fix-auth-keyring-backend.md | 5 ----- .changeset/structured-exit-codes.md | 18 ------------------ CHANGELOG.md | 23 +++++++++++++++++++++++ Cargo.lock | 10 +++++----- Cargo.toml | 2 +- flake.lock | 6 +++--- package.json | 2 +- 7 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 .changeset/fix-auth-keyring-backend.md delete mode 100644 .changeset/structured-exit-codes.md diff --git a/.changeset/fix-auth-keyring-backend.md b/.changeset/fix-auth-keyring-backend.md deleted file mode 100644 index 4b34bcd1..00000000 --- a/.changeset/fix-auth-keyring-backend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@googleworkspace/cli": patch ---- - -Fix `gws auth login` encrypted credential persistence by enabling native keyring backends for the `keyring` crate on supported desktop platforms instead of silently falling back to the in-memory mock store. diff --git a/.changeset/structured-exit-codes.md b/.changeset/structured-exit-codes.md deleted file mode 100644 index b1b0f35a..00000000 --- a/.changeset/structured-exit-codes.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -"@googleworkspace/cli": minor ---- - -Add structured exit codes for scriptable error handling - -`gws` now exits with a type-specific code instead of always using `1`: - -| Code | Meaning | -|------|---------| -| `0` | Success | -| `1` | API error — Google returned a 4xx/5xx response | -| `2` | Auth error — credentials missing, expired, or invalid | -| `3` | Validation error — bad arguments, unknown service, invalid flag | -| `4` | Discovery error — could not fetch the API schema document | -| `5` | Internal error — unexpected failure | - -Exit codes are documented in `gws --help` and in the README. diff --git a/CHANGELOG.md b/CHANGELOG.md index 7819ec5e..772d18a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # @googleworkspace/cli +## 0.12.0 + +### Minor Changes + +- 247e27a: Add structured exit codes for scriptable error handling + + `gws` now exits with a type-specific code instead of always using `1`: + + | Code | Meaning | + | ---- | --------------------------------------------------------------- | + | `0` | Success | + | `1` | API error — Google returned a 4xx/5xx response | + | `2` | Auth error — credentials missing, expired, or invalid | + | `3` | Validation error — bad arguments, unknown service, invalid flag | + | `4` | Discovery error — could not fetch the API schema document | + | `5` | Internal error — unexpected failure | + + Exit codes are documented in `gws --help` and in the README. + +### Patch Changes + +- 087066f: Fix `gws auth login` encrypted credential persistence by enabling native keyring backends for the `keyring` crate on supported desktop platforms instead of silently falling back to the in-memory mock store. + ## 0.11.1 ### Patch Changes diff --git a/Cargo.lock b/Cargo.lock index 6ac34932..2b469384 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -861,7 +861,7 @@ dependencies = [ [[package]] name = "gws" -version = "0.11.1" +version = "0.12.0" dependencies = [ "aes-gcm", "anyhow", @@ -1514,9 +1514,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.21.3" +version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "once_cell_polyfill" @@ -2496,9 +2496,9 @@ dependencies = [ [[package]] name = "tempfile" -version = "3.26.0" +version = "3.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82a72c767771b47409d2345987fda8628641887d5466101319899796367354a0" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", "getrandom 0.4.2", diff --git a/Cargo.toml b/Cargo.toml index e8b158a8..1e60d1f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "gws" -version = "0.11.1" +version = "0.12.0" edition = "2021" description = "Google Workspace CLI — dynamic command surface from Discovery Service" license = "Apache-2.0" diff --git a/flake.lock b/flake.lock index 38483124..48aa465d 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1772963539, - "narHash": "sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs=", + "lastModified": 1773122722, + "narHash": "sha256-FIqHByVqxCprNjor1NqF80F2QQoiiyqanNNefdlvOg4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9dcb002ca1690658be4a04645215baea8b95f31d", + "rev": "62dc67aa6a52b4364dd75994ec00b51fbf474e50", "type": "github" }, "original": { diff --git a/package.json b/package.json index ddac016c..8ba4a13f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@googleworkspace/cli", - "version": "0.11.1", + "version": "0.12.0", "private": true, "description": "Google Workspace CLI — dynamic command surface from Discovery Service", "license": "Apache-2.0",