@gapi/gcli 1.8.275 → 1.8.277

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).
@@ -0,0 +1,12 @@
1
+ ## 2026-11-19 - workflows: help texts say runtime, not Fission
2
+
3
+ **Feature:** workflows · **Type:** fix
4
+
5
+ - Owner rule: shown text never names Fission. `workflow:trigger:add`
6
+ ("Needs runtime 1.26+ on the cluster") and the `cluster:create` virtual
7
+ cluster option ("own Kubernetes API + the Lambforge runtime") said
8
+ Fission in `--help`.
9
+ - **Test:** `node release/index.js workflow:trigger:add --help` after a build.
10
+ - **Debug:** grep `Fission` in `src/commands/*/index.ts` descriptions.
11
+ - **Verification:** grep: no Fission left in descriptions or printed
12
+ messages (type names only). Not released.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gapi/gcli",
3
- "version": "1.8.275",
3
+ "version": "1.8.277",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Stradivario/gapi.git"
package/release/index.js CHANGED
@@ -37640,7 +37640,10 @@ var init_gql_client = __esm({
37640
37640
  refresh,
37641
37641
  key,
37642
37642
  timeGenerated,
37643
- expired: force || (Date.now() - timeGenerated) / 1e3 > 1800,
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)(
@@ -325564,7 +325567,7 @@ function registerClusterCommands(program2) {
325564
325567
  "Provision a private Talos cluster, or with --virtual a virtual cluster, for a project (runs in the background; use --wait to block)"
325565
325568
  ).option("-p, --project <project>").option("-spec, --spec <spec>").option("-n, --name <name>").option("--imageId <imageId>", "hcloud Talos snapshot id").option("--serverType <serverType>").option("-l, --location <location>").option("--workers <workers>", "Worker count (ignored when --singleNode)").option("--singleNode", "Control plane carries the workload too").option(
325566
325569
  "--virtual",
325567
- "A virtual cluster (own Kubernetes API + Fission, no servers, ~2 minutes) instead of a private Talos cluster"
325570
+ "A virtual cluster (own Kubernetes API + the Lambforge runtime, no servers, ~2 minutes) instead of a private Talos cluster"
325568
325571
  ).option(
325569
325572
  "--host <host>",
325570
325573
  "With --virtual: name of a private cluster of this project to run on (default: the shared cluster)"
@@ -326137,7 +326140,7 @@ function registerWorkflowCommands(program2) {
326137
326140
  ).option("-p, --project <project>").option("-n, --name <name>", "Workflow name").option("-r, --run <run>", "Run name (see workflow:runs)").option("-f, --follow", "Keep printing events until the run ends").action(lazy(() => Promise.resolve().then(() => (init_status2(), status_exports2)).then((m2) => m2.default)));
326138
326141
  program2.command("workflow:cancel").description("Cancel a running run").option("-p, --project <project>").option("-n, --name <name>", "Workflow name").option("-r, --run <run>", "Run name (see workflow:runs)").action(lazy(() => Promise.resolve().then(() => (init_cancel(), cancel_exports)).then((m2) => m2.default)));
326139
326142
  program2.command("workflow:trigger:add").description(
326140
- "Start runs from an HTTP URL (--http; the JSON body is the input) or a schedule (--cron). Needs Fission 1.26+ on the cluster"
326143
+ "Start runs from an HTTP URL (--http; the JSON body is the input) or a schedule (--cron). Needs runtime 1.26+ on the cluster"
326141
326144
  ).option("-p, --project <project>").option("-n, --name <name>", "Workflow name").option("--http", "An HTTP trigger: <router>/<project>/workflows/<path>").option(
326142
326145
  "--path <path>",
326143
326146
  "HTTP path under /workflows/ (default: the workflow name)"
@@ -326254,7 +326257,7 @@ if (!isWebContainer) {
326254
326257
  } else {
326255
326258
  }
326256
326259
  }
326257
- var version2 = true ? "1.8.274" : "development";
326260
+ var version2 = true ? "1.8.276" : "development";
326258
326261
  var main = (argv) => {
326259
326262
  import_commander.program.name("gcli").version(version2);
326260
326263
  commands.map((command) => command(import_commander.program));