@sailorbridge/client 0.2.1 → 0.2.3

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
@@ -17,6 +17,30 @@ writable and its `bin` directory is on `PATH`. Prefer a user-owned Node install
17
17
  from tools such as nvm/asdf over `sudo npm install -g`. Linux and macOS are the
18
18
  supported targets; Windows packaging support is deferred.
19
19
 
20
+ Upgrade an npm-installed client and reload a running managed host daemon in one
21
+ step:
22
+
23
+ ```bash
24
+ sailorbridge upgrade
25
+ ```
26
+
27
+ The command installs `@sailorbridge/client@latest`, compares the running and
28
+ installed versions, and restarts the product-managed user systemd unit or
29
+ LaunchAgent when it is running. If the host runs in the foreground or under
30
+ another supervisor, the command prints the exact manual restart action. An npm
31
+ failure is returned immediately with npm's stderr unchanged.
32
+
33
+ The host daemon also keeps itself current: the relay broadcasts the latest
34
+ released client version on every register/heartbeat, and `host run` upgrades
35
+ through the same npm channel when the host is idle (active sessions defer the
36
+ update; after 24 hours of continuous activity it upgrades at the next job gap).
37
+ A failed attempt is logged and reported to the relay as `update_error`, then
38
+ retried on a cooldown. Opt out with `sailorbridge host run
39
+ --disable-auto-update` or `"auto_update": false` in
40
+ `~/.sailorbridge/host-config.json` — but hosts below the relay's minimum
41
+ supported version are refused at the handshake (HTTP 426) until upgraded, so a
42
+ disabled host must be kept current manually.
43
+
20
44
  For a managed host daemon, use the compiled single-binary path instead of a
21
45
  Node-based global install. Build or download the native `sailorbridge` binary,
22
46
  then log in once — `login` installs and starts the user service itself:
@@ -63,6 +87,7 @@ Common commands:
63
87
  ```bash
64
88
  sailorbridge --help
65
89
  sailorbridge login
90
+ sailorbridge upgrade
66
91
  sailorbridge workflow
67
92
  sailorbridge mailbox peek "$SAILORBRIDGE_AGENT_NAME"
68
93
  sailorbridge mailbox ack MESSAGE_ID --lease-token LEASE_TOKEN