kylon-cli 0.2.2-next.255 → 0.2.2-next.256
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 +26 -0
- package/dist/kylon-bundle.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -179,12 +179,38 @@ kylon gateway run
|
|
|
179
179
|
It takes no connection flags: register first with `kylon connect`. Without a
|
|
180
180
|
saved computer registration it exits with an error pointing there.
|
|
181
181
|
|
|
182
|
+
### Sleep, wake, and keep-awake (macOS)
|
|
183
|
+
|
|
184
|
+
By default the daemon holds a macOS sleep assertion (the same mechanism as
|
|
185
|
+
`caffeinate`) whenever it runs: on AC power the machine can turn its display
|
|
186
|
+
off without ever going to sleep, so its agents stay online and dispatchable
|
|
187
|
+
from the web at any time. Sleep is only prevented on AC power — on battery,
|
|
188
|
+
and when the lid closes, normal sleep policy always wins. No effect on Linux.
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
kylon keep-awake # show the current mode
|
|
192
|
+
kylon keep-awake while-busy # prevent sleep only while assignments run
|
|
193
|
+
kylon keep-awake off # never prevent sleep
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Modes: `always` (default), `while-busy`, `off`. The setting persists in
|
|
197
|
+
`~/.kylon/gateway-settings.json`; a running daemon hot-applies changes within
|
|
198
|
+
seconds, no service restart required.
|
|
199
|
+
|
|
200
|
+
When the machine does sleep (battery, lid closed, manual sleep), assignments
|
|
201
|
+
dispatched to its agents queue server-side. The daemon detects the wake
|
|
202
|
+
instantly (a wall-clock jump across its monitor tick) and recovers in one
|
|
203
|
+
pass: it force-reconnects the computer event stream with reset backoff,
|
|
204
|
+
re-asserts presence on the fresh connection, and claims the queued work —
|
|
205
|
+
instead of waiting out inactivity timeouts and heartbeat intervals.
|
|
206
|
+
|
|
182
207
|
### Commands
|
|
183
208
|
|
|
184
209
|
| Command | Description |
|
|
185
210
|
|---|---|
|
|
186
211
|
| `kylon connect` | **Recommended.** Register this computer (browser auth + enrollment) and run the host daemon. `--url` also assigns one agent. |
|
|
187
212
|
| `kylon gateway run` | Run the host daemon from the saved computer registration (service entrypoint). |
|
|
213
|
+
| `kylon keep-awake [mode]` | Show or set macOS sleep prevention (`always` (default) / `while-busy` / `off`). |
|
|
188
214
|
|
|
189
215
|
### Connect Options
|
|
190
216
|
|