@r5n/hydra 1.0.0 → 1.1.1

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 +5 -3
  2. package/dist/cli.js +193 -201
  3. package/package.json +1 -2
package/README.md CHANGED
@@ -18,6 +18,8 @@ bun add -g @r5n/hydra
18
18
 
19
19
  Hydra keeps its configuration, ledger and runner state in one home, `~/.hydra` by default, whichever directory you run it from. Set `HYDRA_HOME` or pass `--home <absolute path>` to use another one. `hydra -i` opens the interactive menu. Bare `hydra` prints help; `hydra <command> --help` shows that command's options.
20
20
 
21
+ Commands that report something, among them `doctor`, `driver list` and `check`, `guard check`, `image list`, `prune`, `host status`, `host-budget check`, `net verify`, `toolchain verify` and every `legacy` command, take the global `--json` and then write one JSON document to stdout, with logs on stderr; a failing check still writes its document before it exits 1. Hydra exits 0 on success, 1 on failure and 2 on a usage error, including a step that needs `--yes` when no terminal can confirm it; it never waits on a prompt in a script. `hydra --help --json` describes every command. See [output, exit codes and scripting](https://github.com/r5n-labs/clis/blob/develop/packages/hydra/docs/reference.md#output-exit-codes-and-scripting).
22
+
21
23
  ## Pools
22
24
 
23
25
  A pool is a label set and a runner group that Hydra serves with one guest per job:
@@ -45,7 +47,7 @@ A pool is a label set and a runner group that Hydra serves with one guest per jo
45
47
  | Print the pf anchor for container guests, or verify the loaded one | `hydra net print` / `hydra net verify` |
46
48
  | Print the pinned host toolchain and its root install script, or verify the installed one | `hydra toolchain print [--script]` / `hydra toolchain verify` |
47
49
  | Print the LaunchDaemons for the host daemon and this fleet | `hydra service print [--host] [--script]` |
48
- | Check the home, credentials, alert sinks, host toolchain, DNS and each runner's job hooks | `hydra doctor` |
50
+ | Check the home, credentials, alert sinks, host toolchain, DNS and each runner's job hooks (exits 1 on a failed check) | `hydra doctor` |
49
51
 
50
52
  ## Profiles (deprecated)
51
53
 
@@ -63,11 +65,11 @@ Hydra 1.0 keeps the profile commands under `hydra legacy`, and each warns that p
63
65
  | Tail the latest job log | `hydra legacy logs [id]` |
64
66
  | Preview disk cleanup | `hydra legacy cleanup --dry-run` |
65
67
  | Update runner binaries and job hooks | `hydra legacy update` |
66
- | Deregister and remove runners | `hydra legacy remove [profile] [ids...]` |
68
+ | Deregister and remove runners (all of a profile needs `--yes`) | `hydra legacy remove [profile] [ids...]` / `hydra legacy remove --dry-run` |
67
69
  | Manage fleet profiles | `hydra legacy profile` |
68
70
  | Retire a 0.x fleet without cutting off a job | `hydra legacy inventory \| drain \| stop \| deregister \| wipe` |
69
71
 
70
- Runners are background processes; start them again after a reboot. Cleanup preserves job workspaces by default, and automatic runner updates are disabled in favour of `hydra legacy update`. Every job first waits for DNS to resolve the GitHub hosts, so a brief resolver outage delays the job instead of failing its checkout. New profiles also remove each job's workspace when it finishes; runners still share one user, so keep them to private repositories you trust.
72
+ Runners are background processes with a minimal environment, so secrets in your shell do not reach jobs; start them again after a reboot. Cleanup preserves job workspaces by default, and automatic runner updates are disabled in favour of `hydra legacy update`. Every job first waits for DNS to resolve the GitHub hosts, so a brief resolver outage delays the job instead of failing its checkout. New profiles also remove each job's workspace when it finishes; runners still share one user, so keep them to private repositories you trust.
71
73
 
72
74
  See the [command and configuration reference](https://github.com/r5n-labs/clis/blob/develop/packages/hydra/docs/reference.md) for flags, profiles, pools, cleanup policy and storage details. Hydra 0.12 and earlier kept state in `.hydra` of the working directory; [upgrading](https://github.com/r5n-labs/clis/blob/develop/packages/hydra/docs/reference.md#upgrading-from-012-or-earlier) shows how to keep using such a fleet.
73
75