@gapi/gcli 1.8.261 → 1.8.263

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-13 - node-storage: Attached machines can carry volumes on their own disk
2
+
3
+ **Feature:** node-storage · **Type:** feat
4
+
5
+ - `cluster:attach --storage`; new `cluster:node-storage --name <machine>
6
+ [--off] [--no-wait] [--timeout]` (follows the platform's steps);
7
+ `cluster:nodes` shows a `storage` column.
8
+ - `cluster.machines` in the cluster spec (`lambforge.yaml` / cluster.yaml):
9
+ `cluster:apply` turns storage on / off for attached machines and prints
10
+ the attach command for the others (`helpers/machines.ts`, `apply.ts`).
11
+ - `GraphqlClienAPI.setClusterNodeStorage`, `storage` on the join config and
12
+ the node fragment.
13
+ - **Test:** `npx jest test/cluster` (`cluster-machines.spec.ts` new).
14
+ - **Debug:** `gcli cluster:nodes`; server side in graphql-server-functions
15
+ `docs/features/node-storage.md`.
16
+ - **Verification:** 5 cluster suites / 49 tests pass, tsc + eslint clean.
17
+ Not run against a live API.
@@ -37,6 +37,7 @@ Outline (drop sections that don't apply):
37
37
  | `ci-token-scopes` | [ci-token-scopes.md](ci-token-scopes.md) | Which permission each command needs; `mq-trigger:*` commands; canonical doc in graphql-server |
38
38
  | `workflows` | [workflows.md](workflows.md) | `workflow:*` commands incl. AI drafts (`workflow:generate`); canonical doc in graphql-server-lambdas |
39
39
  | `virtual-clusters` | [virtual-clusters.md](virtual-clusters.md) | cluster:create --virtual, provider: vcluster (slice; canonical in graphql-server-functions) |
40
+ | `node-storage` | [node-storage.md](node-storage.md) | `cluster:attach --storage`, `cluster:node-storage`, `cluster.machines` in the cluster spec - slice; canonical in graphql-server-functions |
40
41
  | `self-managed-nodes` | [self-managed-nodes.md](self-managed-nodes.md) | `cluster:attach/nodes/detach` - your own machine as a Talos worker (slice; canonical in graphql-server-functions) |
41
42
  | `mcp-proxy` | [mcp-proxy.md](mcp-proxy.md) | `gcli mcp:start` - local stdio MCP server forwarding to the platform MCP endpoint; token refreshed per request |
42
43
  | `cli-browser-login` | [cli-browser-login.md](cli-browser-login.md) | Slice (canonical: graphql-server): `gcli login` with no token through the browser; `mcp:start` LambforgeLogin |
@@ -0,0 +1,33 @@
1
+ # node-storage - gcli slice
2
+
3
+ **Status:** built 2026-11-13, uncommitted. Canonical doc:
4
+ graphql-server-functions `docs/features/node-storage.md`.
5
+
6
+ | Command | What it does |
7
+ |---|---|
8
+ | `cluster:attach ... --storage` | The machine installs Talos with the storage extensions and carries volumes once it joined (default: lambdas only) |
9
+ | `cluster:node-storage --cluster <id> --name home-1 [--off] [--no-wait] [--timeout m]` | Turns storage on for an attached machine (it may restart once; the platform does it, gcli only follows the steps) or off with `--off` (refused while it holds a volume) |
10
+ | `cluster:nodes` | New `storage` column: `yes`, `preparing: <step>`, `failed: <why>` |
11
+ | `cluster:apply` | Reads `cluster.machines` (below) |
12
+
13
+ ```yaml
14
+ cluster:
15
+ name: home-lab
16
+ machines:
17
+ - name: home-1
18
+ storage: true # carries volumes
19
+ - name: home-2 # listed, left as it is
20
+ ```
21
+
22
+ `cluster:apply` only changes `storage` of machines that are attached, one
23
+ at a time, waiting for each; turning it off needs `--yes`. A machine that
24
+ is not attached is reported with the `cluster:attach` command to run from
25
+ its network - apply never attaches or detaches. Machines not in the list
26
+ are not touched. Not valid for a virtual cluster.
27
+
28
+ Code: `src/commands/cluster/node-storage.ts`, `helpers/machines.ts` (pure:
29
+ `validateMachines`, `planMachines`, `attachHint`, `storageCell`), `apply.ts`
30
+ (`applyMachines`). Test: `npx jest test/cluster-machines.spec.ts`.
31
+
32
+ Needs the cluster-provisioner with `setClusterNodeStorage` deployed first -
33
+ an older one rejects the new `storage` fields of `cluster:nodes`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gapi/gcli",
3
- "version": "1.8.261",
3
+ "version": "1.8.263",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Stradivario/gapi.git"