home-hosted 0.9.6 β†’ 0.9.8

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.
package/README.md CHANGED
@@ -285,7 +285,7 @@ can be told what to be: *"Help me build a UI for home-hosted: nostalgic game the
285
285
  | πŸ”— **Ordered startup** | `dependsOn` waits for a dependency to be *healthy* β€” not merely spawned. `stop-all`/`down` stop dependents before their dependencies; stopping one server names the dependents it leaves running. [SERVERS.md](./docs/SERVERS.md#field-reference) |
286
286
  | πŸ“œ **Logs** | Live per-server stream, buffer plus rotated files on disk, search, filter to one stream, download, one click to clear. |
287
287
  | πŸ“ˆ **Resources** | CPU and RSS of the whole process tree, with an optional memory ceiling that triggers a restart. |
288
- | 🌑️ **Host vitals** | Load, memory, swap, disk and CPU temperature, with thresholds that notify once and again on recovery. |
288
+ | 🌑️ **Host vitals** | CPU usage, memory, swap, disk and CPU temperature, plus the load average as a per-cpu count, with thresholds that notify once and again on recovery. |
289
289
  | πŸ€– **Token API** | Scripts and agents drive it with `Authorization: Bearer` β€” no browser, no session. [↑](#-agents-scripts-and-tools) |
290
290
  | πŸ”” **Notifications** | One list of **destinations** β€” Telegram chats and webhooks (ntfy, Discord, Slack, your own endpoint) β€” on crash, unhealthy, forced restart, recovery, host thresholds and DNS changes. The event toggles and throttle are set once, and each destination may inherit them or carry its own. [Setup here](./docs/NOTIFICATIONS.md). |
291
291
  | 🌐 **Dynamic DNS** | Keep hostnames pointed at your public IP β€” Cloudflare, Namecheap, Spaceship, Porkbun, GoDaddy, Gandi and more. [DDNS.md](./docs/DDNS.md) |
@@ -360,7 +360,7 @@ restarts itself), and how hand-edits are validated: [SERVERS.md](./docs/SERVERS.
360
360
  | `home-hosted stop <id>` | stop one server, nothing else (`--workspace <id>`) |
361
361
  | `home-hosted restart <id>` | restart one server, nothing else (`--workspace <id>`) β€” the same as the panel's per-server Restart |
362
362
  | `home-hosted logs` | read the panel's own console output β€” the file `up` redirects it into (`--lines`, `--follow`, `--json`) |
363
- | `home-hosted backup` | list, create or restore an archive without a browser, **and without the panel running** (`create --all --confirm`, `restore <name> --all --confirm`, `--password`, `--include`) β€” see [RESTORE_DEMO.md](./docs/RESTORE_DEMO.md) |
363
+ | `home-hosted backup` | list, create or restore an archive without a browser, **and without the panel running** (`create --all --exclude global:secrets --confirm`, `restore <name> --all --confirm`, `--password`, `--include`, `--exclude`) β€” see [RESTORE_DEMO.md](./docs/RESTORE_DEMO.md), and `dump`/`load` hooks in [SERVERS.md](./docs/SERVERS.md) |
364
364
  | `home-hosted set-password` | set the panel password without opening a browser; a running panel picks it up at once and signs every existing session out |
365
365
  | `home-hosted set-token` | set the API token scripts and agents use (`--generate`, `--clear`) |
366
366
  | `home-hosted migrate` | bring every config up to the schema this release understands (`--dry-run`, `--yes`) |
@@ -375,18 +375,18 @@ restarts itself), and how hand-edits are validated: [SERVERS.md](./docs/SERVERS.
375
375
  `home-hosted <command> --help` prints what that command takes.
376
376
 
377
377
  ```text
378
- up -c/--config -p/--port --host --open --no-autostart --foreground --print-config
378
+ up -p/--port --host --open --no-autostart --foreground --print-config
379
379
 
380
380
  down (no flags)
381
381
  status --json
382
382
  logs --lines <n> --follow --json
383
- backup [list|create|restore] [<name>] (--include <ids> | --all) --password --confirm --json
383
+ backup [list|create|restore] [<name>] (--include <ids> | --all) [--exclude <ids>] --password --confirm --json
384
384
  start, stop <id> [-w/--workspace <id>] (both need the panel up)
385
385
  restart [<id>] [-w/--workspace <id>] (no id: the panel; with one: that server)
386
386
  init --dir --name --pm --no-install -y/--yes
387
387
  set-password --clear
388
388
  set-token --generate --clear
389
- migrate --config --dry-run -y/--yes
389
+ migrate --dry-run -y/--yes
390
390
  ui-switch --repo --tag --asset --file --list --token -y/--yes
391
391
  ui-update --check --tag --asset --old --repo --token -y/--yes
392
392
  ui-revert (no flags)
@@ -397,8 +397,7 @@ env vars HHOSTED_PASSWORD, HHOSTED_MIGRATE=allow, HHOSTED_TOKEN, GITHUB
397
397
 
398
398
  `up` and `restart` share the same flags: bare `restart` is `down`, then `up` with exactly what it was
399
399
  given. Given a server id β€” `restart web` β€” it restarts only that entry, and the panel keeps running.
400
- `-c/--config` is the **default workspace's** servers file (`<state>/.hh/default/servers.config.json`),
401
- for a launcher that pins one; a workspace picked in the UI keeps its own. `start`/`stop` omit
400
+ A workspace's entries always come from its own `servers.config.json`. `start`/`stop` omit
402
401
  `--workspace` to act in the panel's default workspace.
403
402
 
404
403
  A misspelled command or option names the one you meant β€” `home-hosted restar` answers
@@ -519,6 +518,22 @@ stores `intervalMs` β€” with a retention of its own (`Keep automatic`). The two
519
518
  room for its own. Both land in the same directory, and an automatic archive is named `auto-…` so you
520
519
  can tell them apart β€” a name you drop in by hand with that prefix is treated as one, so do not use it.
521
520
 
521
+ **What an automatic backup contains** is yours to choose: *What an automatic backup contains β†’
522
+ Choose…* offers the same two-level list as *Create backup…*, and writes the result into the schedule
523
+ as `scope`. Two modes, the same two the CLI has:
524
+
525
+ - **Only these** β€” the archive carries only what you tick. The command-line spelling is
526
+ `--include <ids>`.
527
+ - **Everything except** β€” the archive carries everything but what you tick, *including workspaces you
528
+ add later*. The command-line spelling is `--all --exclude <ids>`.
529
+
530
+ Leave it at **Everything** (no `scope` in the file) and the schedule keeps taking the whole default
531
+ scope β€” every workspace plus `includePaths` β€” which is exactly what a schedule written before this
532
+ existed means. That is also the only setting that follows a workspace you add tomorrow; a stored list
533
+ of ids does not, because it names today's ids. Ticking everything in the dialog is therefore saved as
534
+ no scope at all, not as the list it currently amounts to. An empty selection is refused: it cannot be
535
+ told apart from "everything" in the file, and it would capture nothing.
536
+
522
537
  <details>
523
538
  <summary><b>πŸ”‘ Restoring a secret</b></summary>
524
539