kylon-cli 0.7.11 → 0.7.12-next.1702
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 +65 -28
- package/dist/kylon-bundle.manifest.json +3 -3
- package/dist/kylon-bundle.mjs +437 -3
- package/dist/kylon-core-bundle.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -42,13 +42,17 @@ The CLI is also published to npm as
|
|
|
42
42
|
[`kylon-cli`](https://www.npmjs.com/package/kylon-cli). The Web UI provides
|
|
43
43
|
two distinct copy-paste entry points:
|
|
44
44
|
|
|
45
|
-
- **Settings → Developer tools → Kylon CLI**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
the browser
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
- **Settings → Developer tools → Kylon CLI** (also reached from the avatar
|
|
46
|
+
menu's **Install Kylon CLI**) offers two ways in. **Install in terminal**
|
|
47
|
+
shows the hosted install one-liner above for the visitor's OS; installing
|
|
48
|
+
chains straight into the browser sign-in, and on an installed machine
|
|
49
|
+
`kylon login` with no flags does the same and lets the browser approval page
|
|
50
|
+
choose the workspace. Below it, **No browser on this computer?** mints a
|
|
51
|
+
one-time setup-token command (`npx --yes kylon-cli@<tag> auth login
|
|
52
|
+
--setup-token …`) for a terminal nobody can approve from. **Install with AI**
|
|
53
|
+
gives a prompt to paste into a coding agent: it checks `kylon status`,
|
|
54
|
+
installs with `KYLON_INSTALL_NO_LOGIN=1`, signs in with
|
|
55
|
+
`kylon login --workspace <id>`, and then discovers and uses
|
|
52
56
|
`kylon workspace` commands without assuming a provider-specific interface.
|
|
53
57
|
- **An external agent's Profile** shows
|
|
54
58
|
`npx --yes kylon-cli@<version> agent link --url '<one-time link>'`. Custom
|
|
@@ -355,6 +359,13 @@ or a fish `conf.d` drop-in; decline with `--no-modify-path`). From then on the
|
|
|
355
359
|
human terminal, the agents, and the daemon all run the same file — one
|
|
356
360
|
artifact, one version, one upgrade.
|
|
357
361
|
|
|
362
|
+
On Windows, the managed command is `kylon.exe`. It launches the pinned Node
|
|
363
|
+
runtime directly and preserves multiline text and subsequent flags without
|
|
364
|
+
passing them through CMD. It is built during installation using Windows' .NET
|
|
365
|
+
Framework C# compiler, as is the provider job shim. No PowerShell execution-policy
|
|
366
|
+
change is needed. The old managed `kylon.cmd` entry fails with migration guidance;
|
|
367
|
+
restart an existing Agent to refresh `KYLON_BIN`, or invoke `kylon.exe` directly.
|
|
368
|
+
|
|
358
369
|
A leftover npm-global or npx-cached copy stays harmless: when it starts and
|
|
359
370
|
finds a strictly newer pinned install, it defers to it automatically
|
|
360
371
|
(installer commands — `agent …` and `gateway …` — always run as invoked, so a
|
|
@@ -368,10 +379,11 @@ The server checks an online computer for an eligible update at most once every
|
|
|
368
379
|
four hours. When it rolls an exact published version out to that computer, the
|
|
369
380
|
daemon uses the same drain-restart path as a manual upgrade: it waits for active
|
|
370
381
|
agent work to finish, installs the managed bundle under `~/.kylon/bin`, and
|
|
371
|
-
restarts onto it.
|
|
382
|
+
restarts onto it. Upgrades never interrupt running work. Automatic updates wait for the first idle
|
|
383
|
+
moment; if the idle deadline expires, they give up and retry later.
|
|
372
384
|
|
|
373
385
|
The owner can change the setting under **Settings → Developer tools → Kylon
|
|
374
|
-
CLI →
|
|
386
|
+
CLI → Devices** (open the computer's row), or from that computer:
|
|
375
387
|
|
|
376
388
|
```bash
|
|
377
389
|
kylon gateway auto-update status
|
|
@@ -432,8 +444,8 @@ upgrade described below, on a credential-only host the daemon-guarded
|
|
|
432
444
|
self-pin, and on a host with only an npm global the `npm install -g` hint
|
|
433
445
|
(that copy stays the operator's own). When it is already the resolved target
|
|
434
446
|
— `npx --yes kylon-cli@latest upgrade` runs the newest copy — it installs
|
|
435
|
-
in-process rather than downloading itself a second time. `--force`
|
|
436
|
-
|
|
447
|
+
in-process rather than downloading itself a second time. `--force` is rejected
|
|
448
|
+
before an install starts because an upgrade must not interrupt running tasks.
|
|
437
449
|
|
|
438
450
|
The mechanism underneath is `gateway service upgrade`:
|
|
439
451
|
|
|
@@ -474,18 +486,15 @@ captures this selection for health checks and agent turns. A missing or invalid
|
|
|
474
486
|
path fails instead of switching installations. Use the same path with
|
|
475
487
|
`kylon provider update codex --binary-path <path>` when updating that installation.
|
|
476
488
|
|
|
477
|
-
The drain waits up to five minutes for in-flight agent work
|
|
478
|
-
|
|
479
|
-
|
|
489
|
+
The drain waits up to five minutes for in-flight agent work. If that window
|
|
490
|
+
expires, the upgrade rolls back and the existing tasks keep running on the
|
|
491
|
+
previous version. Retry once the machine is idle. There is no force override,
|
|
492
|
+
including for automatic deadlines or legacy requests that carry a force flag.
|
|
493
|
+
A running daemon too old to drain safely must finish its tasks and be stopped
|
|
494
|
+
before it can be upgraded.
|
|
480
495
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
recovery semantics as a daemon crash (the durable inbox re-drives
|
|
484
|
-
interrupted work on the restarted daemon), and the new version activates
|
|
485
|
-
immediately.
|
|
486
|
-
- `kylon gateway service cancel` abandons an in-progress upgrade: the daemon
|
|
487
|
-
rolls back to the previous bundle and resumes accepting work on the old
|
|
488
|
-
version.
|
|
496
|
+
`kylon gateway service cancel` abandons a pending upgrade, restores the previous
|
|
497
|
+
bundle, and resumes accepting work without cancelling active tasks.
|
|
489
498
|
|
|
490
499
|
A request or staged bundle that nobody is honoring does not need an operator:
|
|
491
500
|
`gateway service upgrade` refuses only a *fresh* one ("already in progress",
|
|
@@ -569,6 +578,30 @@ version before writing (retrying for registry read lag), and writes through
|
|
|
569
578
|
`runtime_config_entry_revisions` audit row apply as for an admin edit. The
|
|
570
579
|
revision's change reason records the published version, commit and workflow run.
|
|
571
580
|
|
|
581
|
+
**npm processing a publish is not a dist-tag problem.** `npm publish` returns
|
|
582
|
+
as soon as the registry accepts the tarball ("Your package is being processed
|
|
583
|
+
and may take a few minutes to become available"); npm lists the version, and
|
|
584
|
+
moves `@next` onto it, only once it has finished processing it. For 40 of the
|
|
585
|
+
60 prereleases published from 2026-11-02 to 2026-11-07 that took 3-6 minutes;
|
|
586
|
+
the rest took 20 or 25 minutes (17), 55 minutes (2) or 85 minutes (1). The job
|
|
587
|
+
therefore waits for it in a step of its own
|
|
588
|
+
(`scripts/ci/wait-for-npm-publication.ts`, up to 90 minutes, before any secret
|
|
589
|
+
is loaded or the database tunnel is opened), and every registry read takes the
|
|
590
|
+
tag and the version list from one package document, which is what tells the
|
|
591
|
+
two cases apart:
|
|
592
|
+
|
|
593
|
+
- the version is not listed yet — npm is still processing it. Nothing is wrong
|
|
594
|
+
and nothing has to be moved; past the budget the run fails with
|
|
595
|
+
`published_version_unavailable`, names no dist-tag command, and is repaired
|
|
596
|
+
by re-running it once `npm view kylon-cli@<version> version` answers;
|
|
597
|
+
- the version is listed, but `@next` names an older one for a three-minute
|
|
598
|
+
settle window — another publish took the tag after this one, a real lost
|
|
599
|
+
race, handled as described below.
|
|
600
|
+
|
|
601
|
+
Before that wait existed, the sync gave up after 15 minutes and reported every
|
|
602
|
+
slow publish as a dist-tag to move by hand; all 17 sync failures in that window
|
|
603
|
+
were that case.
|
|
604
|
+
|
|
572
605
|
The write is fenced with the entry version the job read, so it is a
|
|
573
606
|
compare-and-swap rather than a blind overwrite. That matters because
|
|
574
607
|
`cli-publish.yml` deliberately gives every run its own concurrency group: two
|
|
@@ -611,7 +644,9 @@ Two mechanisms keep them agreeing:
|
|
|
611
644
|
The sync job reads an optional `NPM_DIST_TAG_TOKEN` from its `dev`
|
|
612
645
|
environment; when it is absent, the run fails with an `::error::` naming the
|
|
613
646
|
exact `npm dist-tag add kylon-cli@<winner> next` to run, instead of reporting
|
|
614
|
-
a convergence that did not happen.
|
|
647
|
+
a convergence that did not happen. It names that command only when npm lists
|
|
648
|
+
the winner: a winner npm does not list cannot be tagged, and is either a
|
|
649
|
+
publish still being processed or a hand-edited row.
|
|
615
650
|
|
|
616
651
|
Propagation is not part of the write's success condition. Committing the entry
|
|
617
652
|
also bumps a per-namespace revision counter and publishes a cache-invalidation
|
|
@@ -665,7 +700,8 @@ Two consequences worth knowing:
|
|
|
665
700
|
from an ordinary content-dedup skip: both start a sync, but only the re-run
|
|
666
701
|
has a release of its own to reconcile, so only it may claim one. If the re-run
|
|
667
702
|
also fails, set `cli_auto_update/next` in the dev admin runtime config by
|
|
668
|
-
hand
|
|
703
|
+
hand — except for `published_version_unavailable`: an entry naming a version
|
|
704
|
+
`@next` does not serve upgrades nobody, so wait for npm and re-run instead.
|
|
669
705
|
|
|
670
706
|
The classifier that tells those two skips apart is
|
|
671
707
|
`scripts/ci/cli-prerelease-npm.sh` — it emits `sync_reason`, and keeps
|
|
@@ -680,8 +716,8 @@ Two consequences worth knowing:
|
|
|
680
716
|
### Sign in for workspace commands
|
|
681
717
|
|
|
682
718
|
For a person using `kylon workspace ...` from their own terminal, open the
|
|
683
|
-
workspace's **Settings → Kylon CLI** section
|
|
684
|
-
command, or run:
|
|
719
|
+
workspace's **Settings → Kylon CLI** section (or the avatar menu's **Install
|
|
720
|
+
Kylon CLI**) and copy the install command, or run:
|
|
685
721
|
|
|
686
722
|
```bash
|
|
687
723
|
npx --yes kylon-cli@latest auth login --workspace <WORKSPACE_ID>
|
|
@@ -763,10 +799,11 @@ recently authorized entry. If Kylon cannot confirm revocation, it keeps the loca
|
|
|
763
799
|
credential so you can retry. `kylon auth logout --local-only` deliberately skips
|
|
764
800
|
the remote revocation. This logout is deliberately credential-only: it does not
|
|
765
801
|
disconnect the local agent runtime or change connected agents. If that installation
|
|
766
|
-
still runs external agents, it remains listed
|
|
802
|
+
still runs external agents, it remains listed under **Devices** so its
|
|
767
803
|
runtime access can still be removed without signing the CLI in again.
|
|
768
804
|
|
|
769
|
-
You can instead remove
|
|
805
|
+
You can instead remove a device from **Settings → Kylon CLI → Devices** (open
|
|
806
|
+
its row, then **Remove device**).
|
|
770
807
|
After warning about the impact, that workspace-scoped action revokes any active
|
|
771
808
|
installation credential, removes the local runtime access associated with the
|
|
772
809
|
same installation, and disconnects every external agent using it. The device's
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.7.
|
|
3
|
-
"fingerprint": "
|
|
4
|
-
"source_commit": "
|
|
2
|
+
"version": "0.7.12-next.1702",
|
|
3
|
+
"fingerprint": "9c15c4a214c48496687c7537e19905c0b303148484ec66b8137351133427e5d2",
|
|
4
|
+
"source_commit": "a240c999451a0867374052ccd953ed6862006476"
|
|
5
5
|
}
|