kylon-cli 0.2.2-next.310 → 0.2.2-next.312
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 +28 -27
- package/dist/kylon-bundle.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,15 +16,21 @@ two distinct copy-paste entry points:
|
|
|
16
16
|
installation for human workspace commands. Its **Use with Your Agents**
|
|
17
17
|
prompt teaches Claude Code, Codex, Hermes, or OpenClaw to discover and use
|
|
18
18
|
`kylon workspace` commands without assuming a provider-specific interface.
|
|
19
|
-
- **An external agent's
|
|
20
|
-
`npx --yes kylon-cli@<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
- **An external agent's Onboarding tab** shows
|
|
20
|
+
`npx --yes kylon-cli@<version> agent link --url '<one-time link>'`. The link
|
|
21
|
+
embeds a short-lived credential, so the CLI does not open a browser or reuse
|
|
22
|
+
a human workspace credential. It checks that the selected Claude Code or
|
|
23
|
+
Codex CLI is installed and authenticated, shows the exact agent and
|
|
24
|
+
workspace for confirmation, registers this installation as a computer,
|
|
25
|
+
assigns the agent, and starts the host daemon. The credential expires after
|
|
26
|
+
30 minutes and can be redeemed only once; rerunning the same installation's
|
|
27
|
+
interrupted redemption is idempotent.
|
|
28
|
+
|
|
29
|
+
`auth login` browser-authenticates the human operator for `kylon workspace`
|
|
30
|
+
commands. `agent link` authenticates only the link operation with its embedded
|
|
31
|
+
credential; it never creates a human CLI session. Linking mints or reuses a
|
|
32
|
+
machine-scoped credential stored locally with mode `0600` and starts the host
|
|
33
|
+
daemon. In release builds on supported hosts a user-level
|
|
28
34
|
`launchd` / `systemd --user` service is installed so the daemon survives
|
|
29
35
|
terminal exit, reboot, and sleep/wake; otherwise the daemon runs in the
|
|
30
36
|
foreground until `Ctrl+C`.
|
|
@@ -37,7 +43,7 @@ Requirements: Node.js 22.15.0+ (npm ships with Node). Linux / macOS only
|
|
|
37
43
|
|
|
38
44
|
### One managed `kylon` for humans and agents
|
|
39
45
|
|
|
40
|
-
|
|
46
|
+
The bootstrap commands (`agent link`, `connect`, and `auth login`) pin the CLI under
|
|
41
47
|
`~/.kylon/bin`: the exact bundle the daemon and its agents execute, exposed as
|
|
42
48
|
the `kylon` command. After the bootstrap they offer to add that directory to
|
|
43
49
|
your shell PATH (a marker-wrapped `. "$HOME/.kylon/env"` line in your shell rc,
|
|
@@ -47,7 +53,7 @@ artifact, one version, one upgrade.
|
|
|
47
53
|
|
|
48
54
|
A leftover npm-global or npx-cached copy stays harmless: when it starts and
|
|
49
55
|
finds a strictly newer pinned install, it defers to it automatically
|
|
50
|
-
(installer commands — `connect`, `gateway …` — always run as invoked, so a
|
|
56
|
+
(installer commands — `agent …`, `connect`, and `gateway …` — always run as invoked, so a
|
|
51
57
|
fresh `npx` can still install itself over an older pinned copy; set
|
|
52
58
|
`KYLON_PINNED_TRAMPOLINE=0` to disable the deferral).
|
|
53
59
|
|
|
@@ -190,36 +196,31 @@ Credentials created by the earlier browser flow appear as **Legacy user API
|
|
|
190
196
|
key** in Settings. They can be revoked there, but they are not bound to a single
|
|
191
197
|
workspace; sign in again to replace one with the per-installation flow.
|
|
192
198
|
|
|
193
|
-
###
|
|
199
|
+
### Register a computer for manual placement
|
|
194
200
|
|
|
195
|
-
`kylon connect`
|
|
201
|
+
`kylon connect` remains the advanced computer-first entrypoint when the user
|
|
202
|
+
explicitly wants to register a host before choosing an agent:
|
|
196
203
|
|
|
197
204
|
```bash
|
|
198
|
-
# Register this machine directly, then assign agents from the web:
|
|
199
205
|
npx --yes kylon-cli@latest connect --workspace <WORKSPACE_ID>
|
|
200
|
-
|
|
201
|
-
# From an agent's page — register this machine AND assign that agent to it:
|
|
202
|
-
npx --yes kylon-cli@latest connect --url 'https://api.kylon.io/docs/computer-setup/<opaque-token>'
|
|
203
206
|
```
|
|
204
207
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
authorized as the signed-in user, so an account that cannot manage the agent
|
|
211
|
-
gets a clear error and the computer registration still stands.
|
|
208
|
+
This browser-authenticates the operator (the same PKCE flow as `kylon auth
|
|
209
|
+
login`), enrolls the machine as a **computer** keyed on its stable install id
|
|
210
|
+
(re-running is idempotent), persists the machine-scoped credential, and starts
|
|
211
|
+
the host daemon. New external-agent onboarding should use the agent-specific
|
|
212
|
+
`agent link` command instead; creation never asks the user to select a computer.
|
|
212
213
|
|
|
213
214
|
The daemon then reconciles the computer's assigned agents from the server:
|
|
214
215
|
each agent gets an isolated state root under `~/.kylon/agents/<agent-id>/`,
|
|
215
216
|
provider readiness (Codex / Claude Code install + authentication) is reported
|
|
216
217
|
per agent, and assignments arrive over the computer's single SSE stream.
|
|
217
|
-
|
|
218
|
-
daemon picks the change up without re-running `connect`.
|
|
218
|
+
Linking or relinking an agent later happens from that agent's Onboarding tab;
|
|
219
|
+
the daemon picks the change up without re-running `connect`.
|
|
219
220
|
|
|
220
221
|
Use `--no-start` to register without starting the daemon, `--json` for
|
|
221
222
|
machine-readable output, and `--server-url` to target a non-default API origin
|
|
222
|
-
|
|
223
|
+
for direct computer registration.
|
|
223
224
|
|
|
224
225
|
### Run
|
|
225
226
|
|