@gapi/gcli 1.8.275 → 1.8.276
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## 2026-11-18 - local-workspaces: a --ci login is never refreshed
|
|
2
|
+
|
|
3
|
+
**Feature:** local-workspaces · **Type:** fix
|
|
4
|
+
|
|
5
|
+
- `GraphqlClienAPI.getConfig` (`src/services/gql-client.ts`): a login
|
|
6
|
+
without an API key (`gcli login --ci --token`) is not "expired" after 30
|
|
7
|
+
minutes any more. It used to call the Firebase refresh with an empty key
|
|
8
|
+
and overwrite the stored token with nothing, so every command failed half
|
|
9
|
+
an hour after the login. CI pipelines never noticed (they log in per
|
|
10
|
+
run); a cloud workspace pod signed in with a project token (plan 37) is
|
|
11
|
+
logged in once and lives for weeks.
|
|
12
|
+
- **Test:** `gcli login --ci --token <ci token>`, set
|
|
13
|
+
`~/.gapi/...` generation time back an hour, run `gcli lambda:list`.
|
|
14
|
+
- **Debug:** "not logged in" / 401 some time after a --ci login on an
|
|
15
|
+
older gcli = this bug.
|
|
16
|
+
- **Verification:** tsc clean. Not run against a live token yet (checked
|
|
17
|
+
with the cloud workspace change that uses it).
|
package/package.json
CHANGED
package/release/index.js
CHANGED
|
@@ -37640,7 +37640,10 @@ var init_gql_client = __esm({
|
|
|
37640
37640
|
refresh,
|
|
37641
37641
|
key,
|
|
37642
37642
|
timeGenerated,
|
|
37643
|
-
|
|
37643
|
+
// A `--ci` login has no API key: its token is long-lived and is
|
|
37644
|
+
// never refreshed (refreshing it broke every command 30 minutes
|
|
37645
|
+
// after the login - a cloud workspace stays signed in for weeks).
|
|
37646
|
+
expired: !!key && (force || (Date.now() - timeGenerated) / 1e3 > 1800),
|
|
37644
37647
|
uploadUrl: resolveUploadUrl(uploadUrl, url2)
|
|
37645
37648
|
})),
|
|
37646
37649
|
(0, import_operators.switchMap)(
|
|
@@ -326254,7 +326257,7 @@ if (!isWebContainer) {
|
|
|
326254
326257
|
} else {
|
|
326255
326258
|
}
|
|
326256
326259
|
}
|
|
326257
|
-
var version2 = true ? "1.8.
|
|
326260
|
+
var version2 = true ? "1.8.275" : "development";
|
|
326258
326261
|
var main = (argv) => {
|
|
326259
326262
|
import_commander.program.name("gcli").version(version2);
|
|
326260
326263
|
commands.map((command) => command(import_commander.program));
|