kylon-cli 0.3.8 → 0.3.9-next.686
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 +41 -9
- package/dist/kylon-bundle.manifest.json +5 -0
- package/dist/kylon-bundle.mjs +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -67,16 +67,20 @@ hosted install script in `~/.kylon/server-url`, then production.
|
|
|
67
67
|
`agent link` authenticates only the link operation with its embedded
|
|
68
68
|
credential; it never creates a human CLI session. Linking mints or reuses an
|
|
69
69
|
installation credential stored locally with mode `0600` and starts the local
|
|
70
|
-
agent runtime. In release builds
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
agent runtime. In release builds a user-level service is installed so the
|
|
71
|
+
daemon survives terminal exit, reboot, and sleep/wake: `launchd` on macOS,
|
|
72
|
+
`systemd --user` on Linux, and on Windows a logon-triggered Scheduled Task
|
|
73
|
+
named `Kylon Gateway` that runs `kylon gateway supervise`, a small loop that
|
|
74
|
+
restarts `gateway run` after a crash and after a drained upgrade. When no
|
|
75
|
+
service can be installed (a source build, or a Windows machine whose policy
|
|
76
|
+
blocks scheduled tasks) the daemon runs in the foreground until `Ctrl+C`, and
|
|
77
|
+
`connect` says so.
|
|
74
78
|
|
|
75
79
|
The dist-tag tracks the environment: production uses `@latest`, dev uses
|
|
76
80
|
`@next` (newest prerelease). To pin a specific build, use `kylon-cli@X.Y.Z`.
|
|
77
81
|
|
|
78
|
-
Requirements: Linux
|
|
79
|
-
|
|
82
|
+
Requirements: macOS, Linux, or Windows. The hosted `install.sh` needs no
|
|
83
|
+
preinstalled Node.js; the Windows `install.ps1` and the `npx` spellings need
|
|
80
84
|
Node.js 22.15.0+ (npm ships with Node).
|
|
81
85
|
|
|
82
86
|
### One managed `kylon` for humans and agents
|
|
@@ -97,6 +101,28 @@ fresh `npx` can still install itself over an older pinned copy; set
|
|
|
97
101
|
|
|
98
102
|
### Upgrading a local runtime
|
|
99
103
|
|
|
104
|
+
Automatic Kylon CLI updates are enabled by default for each enrolled computer.
|
|
105
|
+
The server checks an online computer for an eligible update at most once every
|
|
106
|
+
four hours. When it rolls an exact published version out to that computer, the
|
|
107
|
+
daemon uses the same drain-restart path as a manual upgrade: it waits for active
|
|
108
|
+
agent work to finish, installs the managed bundle under `~/.kylon/bin`, and
|
|
109
|
+
restarts onto it. The server never requests `--force` automatically.
|
|
110
|
+
|
|
111
|
+
The owner can change the setting under **Settings → Developer tools → Kylon
|
|
112
|
+
CLI → Authorized devices**, or from that computer:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
kylon gateway auto-update status
|
|
116
|
+
kylon gateway auto-update on
|
|
117
|
+
kylon gateway auto-update off
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The setting controls future automatic requests only. Turning it off does not
|
|
121
|
+
cancel an upgrade whose drain has already started, and manual upgrades remain
|
|
122
|
+
available.
|
|
123
|
+
|
|
124
|
+
To upgrade manually:
|
|
125
|
+
|
|
100
126
|
```bash
|
|
101
127
|
npx --yes kylon-cli@latest gateway service upgrade
|
|
102
128
|
```
|
|
@@ -151,8 +177,13 @@ for the debugger-friendly tsx-based dev loop.
|
|
|
151
177
|
|
|
152
178
|
### Release channels
|
|
153
179
|
|
|
154
|
-
npm dist-tags
|
|
155
|
-
policy
|
|
180
|
+
npm dist-tags remain the publication pointer. A separate server runtime-config
|
|
181
|
+
policy (`cli_auto_update/latest` and `cli_auto_update/next`) selects an exact
|
|
182
|
+
currently published target plus a 0-100% stable per-computer rollout for
|
|
183
|
+
automatic updates. A missing, disabled, mismatched, or 0% policy sends no
|
|
184
|
+
automatic request; manual upgrades still resolve the dist-tag normally.
|
|
185
|
+
|
|
186
|
+
Every merge to `develop` publishes a prerelease to the `next` tag
|
|
156
187
|
(`.github/workflows/cli-publish.yml`). A production deployment dispatched from
|
|
157
188
|
`main` automatically invokes the same workflow in stable mode and publishes the
|
|
158
189
|
exact `packages/cli/package.json` version to `latest`; it is idempotent when that
|
|
@@ -262,7 +293,8 @@ workspace; sign in again to replace one with the per-installation flow.
|
|
|
262
293
|
|
|
263
294
|
`gateway run` starts the local runtime service from this environment's saved
|
|
264
295
|
connection. It is the command the installed `launchd` / `systemd --user`
|
|
265
|
-
service execs
|
|
296
|
+
service execs, and the child the Windows `gateway supervise` loop keeps
|
|
297
|
+
running; run it manually to keep connected agents available in the foreground.
|
|
266
298
|
|
|
267
299
|
```bash
|
|
268
300
|
kylon gateway run
|