agl 42.1.0 → 42.2.1
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/changelog.md +44 -0
- package/dist_serve/bundle.js +797 -785
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/aglapi/aglapisurface.document.js +124 -10
- package/dist_ts/classes.accountsactions.d.ts +3 -1
- package/dist_ts/classes.accountsactions.js +16 -1
- package/dist_ts/classes.authstore.js +9 -1
- package/dist_ts/classes.cli.js +19 -49
- package/dist_ts/classes.configurationauthority.js +2 -2
- package/dist_ts/classes.controllerservice.d.ts +20 -2
- package/dist_ts/classes.controllerservice.js +42 -6
- package/dist_ts/classes.flexservice.js +8 -3
- package/dist_ts/classes.inferencegateway.d.ts +30 -2
- package/dist_ts/classes.inferencegateway.js +115 -20
- package/dist_ts/classes.inferencerouter.d.ts +16 -0
- package/dist_ts/classes.inferencerouter.js +5 -3
- package/dist_ts/classes.inferenceservice.js +7 -3
- package/dist_ts/classes.ticketmodels.js +4 -3
- package/dist_ts/classes.ticketnotifier.js +9 -2
- package/dist_ts/classes.ticketstore.js +9 -5
- package/dist_ts/classes.upgradecoordinator.d.ts +6 -1
- package/dist_ts/classes.upgradecoordinator.js +9 -2
- package/dist_ts/classes.upgradetransaction.d.ts +27 -1
- package/dist_ts/classes.upgradetransaction.js +92 -2
- package/dist_ts/configuration/functions.master.d.ts +7 -2
- package/dist_ts/configuration/functions.master.js +7 -4
- package/dist_ts/driver/classes.drivereventrelay.d.ts +1 -1
- package/dist_ts/driver/classes.drivereventrelay.js +3 -3
- package/dist_ts/fleet/classes.boardpump.d.ts +1 -1
- package/dist_ts/fleet/classes.boardpump.js +7 -4
- package/dist_ts/fleet/classes.claudeworkers.d.ts +6 -0
- package/dist_ts/fleet/classes.claudeworkers.js +17 -7
- package/dist_ts/fleet/classes.deploymodels.d.ts +19 -0
- package/dist_ts/fleet/classes.deploymodels.js +140 -0
- package/dist_ts/fleet/functions.validation.d.ts +8 -1
- package/dist_ts/fleet/functions.validation.js +65 -3
- package/dist_ts/fleet/interfaces.workers.d.ts +6 -0
- package/dist_ts/fleet/interfaces.workers.js +65 -2
- package/dist_ts/functions.fleetworkercli.d.ts +16 -3
- package/dist_ts/functions.fleetworkercli.js +21 -7
- package/dist_ts/functions.inferencecli.js +4 -2
- package/dist_ts/functions.mcptickettools.d.ts +1 -0
- package/dist_ts/functions.ticketvalidation.d.ts +36 -3
- package/dist_ts/functions.ticketvalidation.js +45 -14
- package/dist_ts/interfaces.auth.d.ts +1 -1
- package/dist_ts/interfaces.auth.js +2 -1
- package/dist_ts_authswitch/authority-contract.d.ts +23 -0
- package/dist_ts_authswitch/authority-contract.js +1 -1
- package/dist_ts_authswitch/classes.authoritybroker.d.ts +12 -0
- package/dist_ts_authswitch/classes.authoritybroker.js +72 -22
- package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
- package/dist_ts_authswitch/classes.authoritycli.js +26 -1
- package/dist_ts_authswitch/classes.authorityclient.d.ts +3 -1
- package/dist_ts_authswitch/classes.authorityclient.js +10 -4
- package/dist_ts_authswitch/classes.authoritydaemon.js +7 -1
- package/dist_ts_authswitch/classes.authorityimport.js +2 -2
- package/dist_ts_authswitch/classes.authoritymodels.d.ts +3 -0
- package/dist_ts_authswitch/classes.authoritymodels.js +10 -3
- package/dist_ts_authswitch/classes.authorityusage.js +5 -3
- package/dist_ts_authswitch/classes.claudeauthority.js +2 -2
- package/dist_ts_authswitch/testsupport.js +4 -4
- package/dist_ts_authswitch/ts_migration/0012_account_claude_code.d.ts +11 -0
- package/dist_ts_authswitch/ts_migration/0012_account_claude_code.js +18 -0
- package/dist_ts_authswitch/ts_migration/index.js +3 -1
- package/dist_ts_interfaces/deployments.d.ts +104 -0
- package/dist_ts_interfaces/deployments.js +8 -0
- package/dist_ts_interfaces/fleet.d.ts +2 -0
- package/dist_ts_interfaces/index.d.ts +1 -0
- package/dist_ts_interfaces/index.js +2 -1
- package/dist_ts_interfaces/interfaces.d.ts +1 -1
- package/dist_ts_interfaces/interfaces.js +1 -1
- package/dist_ts_interfaces/requests.accounts.d.ts +18 -0
- package/dist_ts_interfaces/requests.accounts.js +1 -1
- package/dist_ts_interfaces/requests.d.ts +2 -2
- package/dist_ts_interfaces/requests.js +1 -1
- package/dist_ts_interfaces/tickets.d.ts +53 -4
- package/dist_ts_interfaces/tickets.js +6 -2
- package/dist_ts_migration/index.d.ts +1 -0
- package/dist_ts_migration/index.js +2 -1
- package/dist_ts_migration/v41_ticketmigrationmarkers.d.ts +19 -0
- package/dist_ts_migration/v41_ticketmigrationmarkers.js +85 -0
- package/docs/authswitch.md +9 -1
- package/package.json +5 -5
- package/readme.md +48 -12
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +123 -9
- package/ts/classes.accountsactions.ts +24 -0
- package/ts/classes.authstore.ts +8 -0
- package/ts/classes.cli.ts +17 -54
- package/ts/classes.configurationauthority.ts +1 -1
- package/ts/classes.controllerservice.ts +49 -6
- package/ts/classes.flexservice.ts +7 -2
- package/ts/classes.inferencegateway.ts +133 -19
- package/ts/classes.inferencerouter.ts +20 -2
- package/ts/classes.inferenceservice.ts +6 -3
- package/ts/classes.ticketmodels.ts +3 -2
- package/ts/classes.ticketnotifier.ts +8 -1
- package/ts/classes.ticketstore.ts +8 -4
- package/ts/classes.upgradecoordinator.ts +14 -4
- package/ts/classes.upgradetransaction.ts +118 -0
- package/ts/configuration/functions.master.ts +6 -3
- package/ts/driver/classes.drivereventrelay.ts +2 -2
- package/ts/fleet/classes.boardpump.ts +7 -4
- package/ts/fleet/classes.claudeworkers.ts +16 -6
- package/ts/fleet/classes.deploymodels.ts +44 -0
- package/ts/fleet/functions.validation.ts +50 -2
- package/ts/fleet/interfaces.workers.ts +56 -1
- package/ts/functions.fleetworkercli.ts +26 -8
- package/ts/functions.inferencecli.ts +3 -1
- package/ts/functions.ticketvalidation.ts +48 -13
- package/ts/interfaces.auth.ts +1 -0
- package/ts_authswitch/authority-contract.ts +18 -0
- package/ts_authswitch/classes.authoritybroker.ts +67 -19
- package/ts_authswitch/classes.authoritycli.ts +29 -0
- package/ts_authswitch/classes.authorityclient.ts +12 -4
- package/ts_authswitch/classes.authoritydaemon.ts +8 -1
- package/ts_authswitch/classes.authorityimport.ts +1 -1
- package/ts_authswitch/classes.authoritymodels.ts +5 -1
- package/ts_authswitch/classes.authorityusage.ts +5 -2
- package/ts_authswitch/classes.claudeauthority.ts +1 -1
- package/ts_authswitch/native-contracts.md +10 -0
- package/ts_authswitch/testsupport.ts +3 -3
- package/ts_authswitch/ts_migration/0012_account_claude_code.ts +17 -0
- package/ts_authswitch/ts_migration/index.ts +2 -0
- package/ts_interfaces/deployments.ts +98 -0
- package/ts_interfaces/fleet.ts +2 -0
- package/ts_interfaces/index.ts +1 -0
- package/ts_interfaces/interfaces.ts +1 -1
- package/ts_interfaces/requests.accounts.ts +16 -0
- package/ts_interfaces/requests.ts +2 -0
- package/ts_interfaces/tickets.ts +34 -4
- package/ts_migration/index.ts +1 -0
- package/ts_migration/v41_ticketmigrationmarkers.ts +28 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.accountsreadmodel.ts +12 -1
- package/ts_web/elements.accounts.ts +44 -0
- package/ts_web/elements.ticketboard.ts +15 -4
package/changelog.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-10-31 - 42.2.1
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- A login whose renewal stopped partway no longer stays stuck until the accounts service restarts (AGL-1207). AGL marks a login before it sends a renewal and never repeats one whose outcome it does not know, but only a service start settled a mark left behind. After a failed save such a login took no work, showed no usage and could not be removed, while **Settings → Accounts** called it ready and nothing reached the journal. The service now finds the mark within 30 seconds, moves the login to **Sign in again** and writes a line to its journal; a renewal still running keeps its mark. A login that cannot be used now also says so: its usage no longer reads "This login does not report usage."
|
|
8
|
+
|
|
9
|
+
## 2026-10-29 - 42.2.0
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- Keep an API key from Claude Code (AGL-1146): **Keep from Claude Code** under **Clients** on a key's page, or `authswitch account set <account-id> --claude-code off`, is for a key whose credit its provider grants for API use other than Claude Code. AGL's inference proxy then places no Claude Code request on the key and moves Claude Code sessions on it to other accounts at their next request; every other client still uses it. A request is Claude Code when it comes through the `claude` or `confined` client or its user agent names Claude Code. `agl proxy status` marks such a key **not for Claude Code**. Every account starts out serving Claude Code. Downgrade note: the accounts service store gains `claudeCode` on every account at its first start (migration `0012_account_claude_code`), so an older accounts service refuses the store; the only way back is a store backup from before the upgrade. The controller audits the change as `accounts.claudecode`.
|
|
14
|
+
|
|
15
|
+
### Fixes
|
|
16
|
+
|
|
17
|
+
- Flex runs on FlexHarness 18 (AGL-1130, AGL-820). A model's streamed answer ends at its provider's terminal event, not at the end of the connection: a stream cut before it fails the call instead of passing for a finished answer, an answer finished before a broken connection is kept, and a connection kept open after the answer no longer stalls it. The workspace capture cap counts what a turn's new files hold.
|
|
18
|
+
|
|
19
|
+
- Flex runs on Node.js 26 (AGL-1156). AGL's `engines` and `agl mcp` accept Node.js 24 to 26, but the Flex service refused 26 with `UNSUPPORTED_RUNTIME`, so a controller started from a Node.js 26 shell had no Flex. The Flex service now uses the same range. Its suites pass on 26.12.0, the restart-delivery test included.
|
|
20
|
+
|
|
21
|
+
- A Flex run whose provider stream breaks mid-answer now shows the provider's failure instead of `AI_TypeValidationError` (AGL-375): the `response.failed` event the proxy ends the stream with carries the `sequence_number` the AI SDK's Responses schema requires, numbered after the last event the client received.
|
|
22
|
+
- The proxy's journal names the path, user agent and credential shape (`missing`, `malformed`, `unknown`, `other_listener`) of a request it refuses before it knows the client, and writes the same refusal line at most once a minute with a count of the repeats (AGL-304). A client that retries a refused request in a loop can now be found from the journal without flooding it.
|
|
23
|
+
- `agl fleet worker message NAME|NATIVE_ID --message-file FILE` needs no `--ticket`: it steers the worker it resolved on that worker's own ticket (AGL-919). It demanded `--ticket`, and passing the ticket the message was about failed with "Worker is not associated with this ticket". A `--ticket` the worker is not on is now refused before anything is sent, naming the worker's ticket; `steer` and the MCP tools still require the ticket key.
|
|
24
|
+
|
|
25
|
+
- Steering a live Claude Code worker whose session is in the `default` or `plan` permission mode relays the message instead of refusing it (AGL-797). The relay runs in the recipient's own mode, read from its transcript, and knew only `acceptEdits`, `auto`, `bypassPermissions`, `dontAsk` and `manual`, so such a worker failed with "Claude recipient permission mode is absent or unsupported".
|
|
26
|
+
|
|
27
|
+
- Waking a Claude Code background job that has no name, from the browser's native send or `agl fleet worker native-message`, is confirmed instead of failing as an unconfirmed dispatch (AGL-796). Claude Code 2.1.282 and 2.1.306 print `backgrounded · <id>` for such a job, without the ` · <name>` the fleet waited for, so the wake reached the job while its job failed with "it named no backgrounded session".
|
|
28
|
+
|
|
29
|
+
- A worker report longer than 32 KiB keeps its head, its result line and its end, and says where it was cut (AGL-158). The fleet kept only a long report's last 32 KiB, so `agl fleet worker report --json`, the ticket comment and the driver relay started mid-table and lost the summary and the largest rows at the top. A report past 32 KiB of UTF-8 now keeps its head, its last marker line (its `result:` line, at most 1 KiB) when neither the head nor the end holds it, and its last 4 KiB from a line start, with a `[… N bytes cut; the worker's transcript holds the whole report …]` line for each part left out; it stays marked `truncated`, and the driver relay's note says what was kept.
|
|
30
|
+
|
|
31
|
+
- An Anthropic API key that Anthropic refuses with "credit balance is too low" (HTTP 400) is held with a payment problem, and the request moves to another account before a byte reaches the client (AGL-1147). Before, the refusal reached Claude Code as "Credit balance is too low", the key stayed first in line for new sessions, and its sessions stayed stuck on it. After adding credit in the Claude Console, **Re-check** the key (`authswitch account recheck <account-id>`) to lift the hold. Every other 400 still passes through unchanged.
|
|
32
|
+
|
|
33
|
+
- `agl service install` no longer drops tool directories from `agl-controller.service` (AGL-1108). The unit's `PATH` was the installing shell's alone, so installing from a shell without, say, `~/.bun/bin` left the controller, and every fleet test it runs, without Bun. A rewrite of an installed unit now keeps, after the shell's entries, each directory of the installed unit's `PATH` the shell lacks that still exists (empty, relative and removed directories are dropped), and names them; a first install is unchanged. `agl upgrade` never rewrites the unit: it restarts the controller as installed, so a unit installed without a tool directory keeps running without it until `agl service install` is run again from a shell that has it.
|
|
34
|
+
|
|
35
|
+
- `agl upgrade` no longer leaves its upgrade stuck in `starting` when the running controller refuses to launch the upgrade worker (AGL-327), as one still starting right after a restart does with "The controller is not ready to accept this operation.". Every later `agl upgrade` then failed with "A nonterminal upgrade transaction blocks a fresh upgrade." and no command recovered it. The controller takes the one-time launch grant before it launches a worker, so a grant the command can still revoke proves that none runs: the command now ends the upgrade failed and releases its lock, and the next `agl upgrade` proceeds. A launch that failed after the controller took the grant still keeps the upgrade open, since a worker the command cannot see may run.
|
|
36
|
+
|
|
37
|
+
- An AGL rolled back from a later release reads the shapes the Deployments work writes (AGL-909, readers). The ticket, link and Configuration master schemas are strict, so an AGL that meets a field it does not know refuses the whole ticket or master; this release reads what the later one writes and writes none of it, so that release can be rolled back to this one (see "Rolling back from a release that plans deploys" in the readme). A stored ticket may now hold a release plan (`releasePlan { repo, version? }`), a maintenance window (`maintenanceWindow { from, to, targets, questionId? }`, the question naming the owner's approval of a window the driver proposed), a deploy plan (`deployPlan { target, version, questionId }`), an `affects` link (`{ kind: 'affects', repo, version }`, the version a bug was found in) and a release link that names its repository and the commit its tag points at, with or without a package (`{ kind: 'release', version, package?, repo?, sha? }`, naming at least one of package and repository; a Rust or Swift repository's release has no package); its history may hold an `unlinked` entry; a stored fleet `released` event and its ticket effect may carry the same. The board shows a new column, Closed (for work that ships no code), folded beside Released; no request moves a ticket there yet. The Configuration master's `fleet` section may hold `deployTargets` (`{ id, name?, environment?, repo, project, deployWhen?, probe: { kind: 'controller' } | { kind: 'http', url, versionPointer?, shaPointer? }, deploys?, downtime? }`, validated: a lowercase id used once, the repository as `org/name`, the board project that owns the target, `deployWhen` `anytime` or `window` (never on the controller probe), an http(s) URL without credentials, JSON pointers, at most one controller probe); this release reads such a master but refuses to save one, since only the next release acts on it. Two collections are created and left empty: `agl_fleet_deploy_observations` (what a deploy target ran: version, commit and the artifacts it runs, a lockfile, an image, an installed dependency tree or a binary, numbered per target with `(targetId, seq)` unique) and `agl_ticket_migrations` (the ticket migrations that ran). The requests that would write any of this (`ticket update` with a plan, a window or a deploy plan, an `affects` link, a move to `closed`) are still refused. On a ticket a later release planned, only the owner answers the question of its deploy plan or maintenance window (`ticket_go_owner_only`), so a driver's answer can't stand in for the owner's go after the next upgrade, and the board pump tells nobody to pick up such a ticket in `ready`: it waits for the owner's go or its time, not for a worker. The board leaves `affects` links out and shows a release link without a package by its repository. Controller protocol 50: a CLI of 42.1.0 refuses this controller, whose answers may carry the closed column and these fields.
|
|
38
|
+
|
|
39
|
+
### Maintenance
|
|
40
|
+
|
|
41
|
+
- The Board's end-to-end test expects the Closed column AGL-909 added, folded beside Released, as the browser test already did.
|
|
42
|
+
- Give the Flex restart-delivery test its controller and OpenCode ports below the kernel's ephemeral range (AGL-841). It probed each port with `listen(0)`, closed it and bound it again at every controller start, so on a loaded host the kernel could hand the port to another process in between and a restart failed with `EADDRINUSE`. The stored runtime configuration is per controller port, so every start keeps the same two ports; they now come from the shared fixture helper `freePorts`, which the other restart tests use.
|
|
43
|
+
|
|
44
|
+
- Let the sidebar browser test's status bar and stats panel contrast checks wait until the theme's colour fades end (AGL-313). Every element of a shadow tree fades its colour and background over 0.1 s, and the checks sampled colours a fixed 350 ms (or, with reduced motion, one frame) after a theme change; on a loaded host the fade can still run then, and a stats-panel label read mid-fade failed the 4.5 contrast floor. They now wait until no CSS transition runs on a sampled element or on any element it inherits from, for at most 10 s. The contrast floor is unchanged.
|
|
45
|
+
- release tooling: pnpm 12.15.0
|
|
46
|
+
|
|
3
47
|
## 2026-10-27 - 42.1.0
|
|
4
48
|
|
|
5
49
|
### Features
|