@slayzone/cli 0.36.0-beta.8 → 0.36.0

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.
Files changed (3) hide show
  1. package/README.md +22 -0
  2. package/dist/slay.js +7854 -21897
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -18,6 +18,28 @@ systemd --user on Linux), so it restarts if it crashes and starts again when you
18
18
  log in. Names are unique per machine — `create` fails if one already exists. To
19
19
  run a hub in the foreground instead, use `npx @slayzone/hub`.
20
20
 
21
+ ## Computers on this machine
22
+
23
+ A computer is an execution node: it dials out to a hub and runs terminals, agents
24
+ and git there. Mint a join token on the hub, then:
25
+
26
+ slay computer create <name> --token <szjt1…> # install it here and keep it running
27
+ slay computer ls # every computer installed on this machine
28
+ slay computer logs <name>
29
+ slay computer stop <name> # stop it, keep it registered
30
+ slay computer start <name> # bring a stopped computer back
31
+ slay computer rm <name> # stop it and remove its registration
32
+
33
+ The token embeds the hub URL, so `--token` is the only configuration needed. It is stored in `<root>/config.json` (owner-only) — never in
34
+ the service unit. `--root <dir>` picks where the computer's config, credentials and
35
+ logs live (default: the current directory), and `--allow <dir>` (repeatable) sets
36
+ the filesystem roots it may touch. One computer per root.
37
+
38
+ `create` waits until the computer has actually reached its hub, and unregisters
39
+ itself again if it cannot — so a bad token fails loudly instead of leaving a
40
+ service that retries forever. `rm` leaves the computer's data on disk and does NOT
41
+ revoke it on the hub; revoke it there if the machine is going away.
42
+
21
43
  ## Targeting a hub
22
44
 
23
45
  slay hub use <name|url> # point this CLI at a hub