@slayzone/cli 0.36.0-beta.10 → 0.36.0-beta.11

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 +23 -0
  2. package/dist/slay.js +864 -239
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -18,6 +18,29 @@ 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
+ ## Runners on this machine
22
+
23
+ A runner 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 runner create <name> --token <szjt1…> # install it here and keep it running
27
+ slay runner ls # every runner installed on this machine
28
+ slay runner logs <name>
29
+ slay runner stop <name> # stop it, keep it registered
30
+ slay runner start <name> # bring a stopped runner back
31
+ slay runner rm <name> # stop it and remove its registration
32
+
33
+ The token embeds the hub URL and its cert fingerprint, so `--token` is the only
34
+ configuration needed. It is stored in `<root>/config.json` (owner-only) — never in
35
+ the service unit. `--root <dir>` picks where the runner's config, credentials and
36
+ logs live (default: the current directory), and `--allow <dir>` (repeatable) sets
37
+ the filesystem roots it may touch. One runner per root.
38
+
39
+ `create` waits until the runner has actually reached its hub, and unregisters
40
+ itself again if it cannot — so a bad token fails loudly instead of leaving a
41
+ service that retries forever. `rm` leaves the runner's data on disk and does NOT
42
+ revoke it on the hub; revoke it there if the machine is going away.
43
+
21
44
  ## Targeting a hub
22
45
 
23
46
  slay hub use <name|url> # point this CLI at a hub