agl 43.6.0 → 43.8.0
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 +27 -0
- package/dist_serve/bundle.js +1801 -1783
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/aglapi/interfaces.d.ts +35 -0
- package/dist_ts/aglapi/interfaces.js +9 -1
- package/dist_ts/classes.accountsactions.d.ts +3 -1
- package/dist_ts/classes.accountsactions.js +17 -1
- package/dist_ts/classes.apnsclient.d.ts +97 -0
- package/dist_ts/classes.apnsclient.js +363 -0
- package/dist_ts/classes.authmodels.js +19 -6
- package/dist_ts/classes.authstore.js +15 -2
- package/dist_ts/classes.cli.js +8 -1
- package/dist_ts/classes.controller.d.ts +33 -6
- package/dist_ts/classes.controller.js +254 -12
- package/dist_ts/classes.controllerdevices.d.ts +35 -7
- package/dist_ts/classes.controllerdevices.js +86 -13
- package/dist_ts/classes.controllerpush.d.ts +111 -0
- package/dist_ts/classes.controllerpush.js +299 -0
- package/dist_ts/classes.fcmclient.d.ts +78 -0
- package/dist_ts/classes.fcmclient.js +278 -0
- package/dist_ts/classes.inbox.d.ts +10 -2
- package/dist_ts/classes.inbox.js +9 -2
- package/dist_ts/classes.inferencerouter.d.ts +21 -3
- package/dist_ts/classes.inferencerouter.js +40 -17
- package/dist_ts/classes.inferenceservice.js +2 -2
- package/dist_ts/classes.mcpclient.d.ts +5 -0
- package/dist_ts/classes.mcpclient.js +18 -6
- package/dist_ts/classes.mcpcontrollerhost.d.ts +3 -0
- package/dist_ts/classes.mcpcontrollerhost.js +19 -1
- package/dist_ts/classes.mcpvalidation.js +4 -1
- package/dist_ts/classes.mcpworkercaller.d.ts +6 -0
- package/dist_ts/classes.mcpworkercaller.js +26 -4
- package/dist_ts/classes.pushdelivery.d.ts +115 -0
- package/dist_ts/classes.pushdelivery.js +311 -0
- package/dist_ts/classes.pushhandover.d.ts +46 -0
- package/dist_ts/classes.pushhandover.js +131 -0
- package/dist_ts/classes.pushregistrations.d.ts +96 -0
- package/dist_ts/classes.pushregistrations.js +263 -0
- package/dist_ts/classes.pushsettings.d.ts +125 -0
- package/dist_ts/classes.pushsettings.js +377 -0
- package/dist_ts/classes.workercallers.d.ts +73 -2
- package/dist_ts/classes.workercallers.js +354 -43
- package/dist_ts/driver/classes.directreports.d.ts +5 -0
- package/dist_ts/driver/classes.directreports.js +3 -2
- package/dist_ts/fleet/classes.workerlaunches.d.ts +6 -4
- package/dist_ts/fleet/classes.workerlaunches.js +10 -9
- package/dist_ts/fleet/classes.workers.d.ts +12 -2
- package/dist_ts/fleet/classes.workers.js +82 -2
- package/dist_ts/functions.deviceapi.d.ts +23 -3
- package/dist_ts/functions.deviceapi.js +41 -3
- package/dist_ts/functions.inferencecli.js +2 -1
- package/dist_ts/functions.pushcli.d.ts +43 -0
- package/dist_ts/functions.pushcli.js +201 -0
- package/dist_ts/functions.pushcredentials.d.ts +53 -0
- package/dist_ts/functions.pushcredentials.js +111 -0
- package/dist_ts/functions.pushwire.d.ts +8 -0
- package/dist_ts/functions.pushwire.js +83 -0
- package/dist_ts/functions.remotecli.d.ts +2 -2
- package/dist_ts/functions.remotecli.js +4 -4
- package/dist_ts/functions.workercallervalidation.js +3 -2
- package/dist_ts/functions.workerprocessproof.d.ts +12 -0
- package/dist_ts/functions.workerprocessproof.js +32 -1
- package/dist_ts/interfaces.auth.d.ts +27 -3
- package/dist_ts/interfaces.auth.js +10 -1
- package/dist_ts/interfaces.lifecycle.d.ts +7 -1
- package/dist_ts/interfaces.push.d.ts +69 -0
- package/dist_ts/interfaces.push.js +25 -0
- package/dist_ts/plugins.d.ts +5 -2
- package/dist_ts/plugins.js +7 -3
- package/dist_ts_authswitch/authority-contract.d.ts +26 -0
- package/dist_ts_authswitch/authority-contract.js +1 -1
- package/dist_ts_authswitch/authority-overview.d.ts +8 -0
- package/dist_ts_authswitch/authority-overview.js +10 -4
- package/dist_ts_authswitch/authority-placement.d.ts +16 -9
- package/dist_ts_authswitch/authority-placement.js +10 -7
- package/dist_ts_authswitch/authority-priority.d.ts +20 -0
- package/dist_ts_authswitch/authority-priority.js +21 -0
- package/dist_ts_authswitch/classes.authoritybroker.d.ts +7 -0
- package/dist_ts_authswitch/classes.authoritybroker.js +26 -2
- package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
- package/dist_ts_authswitch/classes.authoritycli.js +43 -3
- package/dist_ts_authswitch/classes.authorityclient.d.ts +6 -1
- package/dist_ts_authswitch/classes.authorityclient.js +12 -4
- package/dist_ts_authswitch/classes.authoritydaemon.js +7 -1
- package/dist_ts_authswitch/classes.authoritydatabase.d.ts +6 -0
- package/dist_ts_authswitch/classes.authoritydatabase.js +13 -2
- package/dist_ts_authswitch/classes.authoritymodels.d.ts +7 -0
- package/dist_ts_authswitch/classes.authoritymodels.js +17 -8
- package/dist_ts_interfaces/devices.d.ts +178 -2
- package/dist_ts_interfaces/devices.js +24 -2
- package/dist_ts_interfaces/index.d.ts +1 -0
- package/dist_ts_interfaces/index.js +2 -1
- package/dist_ts_interfaces/mcprequests.d.ts +3 -2
- package/dist_ts_interfaces/mcprequests.js +3 -1
- package/dist_ts_interfaces/push.d.ts +166 -0
- package/dist_ts_interfaces/push.js +24 -0
- package/dist_ts_interfaces/requests.accounts.d.ts +19 -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/workercallers.d.ts +43 -3
- package/docs/authswitch.md +25 -0
- package/package.json +1 -1
- package/readme.md +93 -16
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/interfaces.ts +8 -0
- package/ts/classes.accountsactions.ts +25 -0
- package/ts/classes.apnsclient.ts +389 -0
- package/ts/classes.authmodels.ts +21 -5
- package/ts/classes.authstore.ts +14 -1
- package/ts/classes.cli.ts +7 -0
- package/ts/classes.controller.ts +277 -10
- package/ts/classes.controllerdevices.ts +94 -12
- package/ts/classes.controllerpush.ts +351 -0
- package/ts/classes.fcmclient.ts +292 -0
- package/ts/classes.inbox.ts +13 -2
- package/ts/classes.inferencerouter.ts +61 -16
- package/ts/classes.inferenceservice.ts +1 -1
- package/ts/classes.mcpclient.ts +20 -5
- package/ts/classes.mcpcontrollerhost.ts +20 -0
- package/ts/classes.mcpvalidation.ts +2 -0
- package/ts/classes.mcpworkercaller.ts +24 -2
- package/ts/classes.pushdelivery.ts +378 -0
- package/ts/classes.pushhandover.ts +98 -0
- package/ts/classes.pushregistrations.ts +244 -0
- package/ts/classes.pushsettings.ts +428 -0
- package/ts/classes.workercallers.ts +329 -37
- package/ts/driver/classes.directreports.ts +7 -1
- package/ts/fleet/classes.workerlaunches.ts +9 -7
- package/ts/fleet/classes.workers.ts +65 -2
- package/ts/functions.deviceapi.ts +52 -2
- package/ts/functions.inferencecli.ts +1 -0
- package/ts/functions.pushcli.ts +212 -0
- package/ts/functions.pushcredentials.ts +129 -0
- package/ts/functions.pushwire.ts +106 -0
- package/ts/functions.remotecli.ts +3 -2
- package/ts/functions.workercallervalidation.ts +2 -1
- package/ts/functions.workerprocessproof.ts +34 -0
- package/ts/interfaces.auth.ts +27 -3
- package/ts/interfaces.lifecycle.ts +7 -1
- package/ts/interfaces.push.ts +78 -0
- package/ts/plugins.ts +6 -1
- package/ts_authswitch/authority-contract.ts +21 -0
- package/ts_authswitch/authority-overview.ts +19 -5
- package/ts_authswitch/authority-placement.ts +18 -10
- package/ts_authswitch/authority-priority.ts +25 -0
- package/ts_authswitch/classes.authoritybroker.ts +26 -1
- package/ts_authswitch/classes.authoritycli.ts +48 -2
- package/ts_authswitch/classes.authorityclient.ts +14 -4
- package/ts_authswitch/classes.authoritydaemon.ts +8 -1
- package/ts_authswitch/classes.authoritydatabase.ts +11 -1
- package/ts_authswitch/classes.authoritymodels.ts +17 -6
- package/ts_authswitch/readme.md +1 -1
- package/ts_interfaces/devices.schema.json +327 -0
- package/ts_interfaces/devices.ts +206 -1
- package/ts_interfaces/index.ts +1 -0
- package/ts_interfaces/mcprequests.ts +3 -0
- package/ts_interfaces/push.ts +162 -0
- package/ts_interfaces/requests.accounts.ts +17 -0
- package/ts_interfaces/requests.ts +2 -0
- package/ts_interfaces/workercallers.ts +34 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/accounts.plugins.ts +4 -2
- package/ts_web/classes.accountsreadmodel.ts +36 -2
- package/ts_web/elements.accounts.ts +48 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-11-14 - 43.8.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Device protocol 1.4, the contract for push notifications of Inbox items (AGL-1639): a paired device's host entry can carry `push` (`reports`, `previews`, `available`, the last failure), and the notification payloads are typed for both apps: an Inbox item, a summary, a direct report's result, a clear and the owner's test, with one fixed sentence per kind for previews off. Additive: an app on 1.3 is served as before.
|
|
8
|
+
- Push registrations (AGL-1639): a paired device registers its APNs or FCM token over its authenticated connection (`device.push.register`, `device.push.unregister`); registering again replaces it. AGL keeps one registration per device in its own collection (`agl_controller_push_registrations`), removes it when the device is revoked or the controller's origin moves, and sweeps registrations of devices that are gone at start. The token is never logged, audited or returned. Downgrade: an older controller does not read the collection; nothing else changes.
|
|
9
|
+
- `agl push`: the owner sets what AGL needs to send notifications, on the host (AGL-1639): `agl push apns set --key-id KEY_ID --team-id TEAM_ID [--topic BUNDLE_ID] < AuthKey.p8`, `agl push fcm set < SERVICE_ACCOUNT.json`, `agl push apns|fcm unset`, `agl push previews on|off` and `agl push status [--json]`. A key is read from standard input only, sealed with the TPM and never printed, logged or audited; the service account's `token_uri` is ignored. Previews are off unless turned on: a notification then says one fixed sentence per kind of item. Every change is audited (`push.*`). The settings live in their own collection (`agl_controller_push_settings`), which an older controller does not read.
|
|
10
|
+
- The APNs and FCM senders (AGL-1639): AGL talks to Apple's and Google's push services itself, over HTTP/2 and HTTPS with Node's own modules and no new dependency, to hosts fixed in the code. An Inbox item, a summary and the test arrive as an alert with the default sound, a direct report's result quietly, a clear in the background. What the service answers becomes one of delivered, unregistered, credential refused, rate limited, refused, service failed or unreachable; only its code is kept, never its message.
|
|
11
|
+
- Delivery and `agl push test [--device DEVICE_ID] [--json]` (AGL-1639): a send never holds up the controller. Each device has a bounded queue that keeps the newest notification per key, waits from 1 second up to 5 minutes between attempts (longer when the service says so) and drops what is older than an hour; a stop ends every request, timer and connection. A device whose token the service no longer knows loses its registration, and a refused credential stops that platform until it is set again, shown by `agl push status`. `agl push test` sends "Push from AGL works." to the registered devices and prints what Apple or Google answered for each. A paired device's host entry now tells whether notifications can reach it, whether previews are on and its last failed send.
|
|
12
|
+
- Push holds up better against a wrong host clock and a quiet connection (AGL-1639): Apple's "expired provider token" on a fresh token and Google's `invalid_grant` while its clock and the host's are more than 60 seconds apart are retried instead of stopping the platform, and `agl push status` names the clock difference. A connection to Apple that sat idle for a minute must answer a ping within 3 seconds before it is used again. `agl push test` answers "no answer in time" for a device after 20 seconds.
|
|
13
|
+
- Notifications for Inbox items (AGL-1639): a new item in the Inbox sends a notification to the registered devices, an item that leaves clears it, and more than four new items at once arrive as one summary; a direct report's new result goes quietly to devices that asked for reports. With previews off, the default, a notification says one fixed sentence per kind of item and names nothing. The Inbox is now also worked out with no browser or app connected, as long as a notification could go out: a host without a push credential or a registered device does nothing more than before. A clean stop hands the next start what it already announced, so an upgrade does not announce again what waited before it; after a stop that was not clean, what waits is sent once more under the same key, which replaces the notification. The handover lives in its own collection (`agl_controller_push_handover`), which an older controller does not read.
|
|
14
|
+
|
|
15
|
+
### Fixes
|
|
16
|
+
|
|
17
|
+
- A project driver keeps its verified identity across an `agl upgrade` when Claude Code has updated itself under its running job (AGL-1888): the driver's ticket writes were refused with `TICKET_IDENTITY_REQUIRED` from the first upgrade after such an update. A job process the controller has already proved keeps its proof on the Claude Code release it was proved on; only a new process for the job must run the current release.
|
|
18
|
+
- A fleet Claude Code worker is identified by its process, so a session adopted without a relaunch can write to its ticket and keeps that across controller restarts (AGL-1888): the caller's bridge must be a direct child of the job process that the fleet's inventory lists for exactly one live worker, running an installed Claude Code release. No relaunch and no adoption step is needed; a session is identified at its next tool call. A launch the controller no longer knows falls back to the same proof. A stop, an archive and a re-bind always end the worker's identity, and an identification that ran across such a change is discarded. A session identified this way no longer presents a credential it inherited from its environment.
|
|
19
|
+
|
|
20
|
+
## 2026-11-13 - 43.7.0
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
- Give any account priority for 24 hours, to be used up before anything else (AGL-1809): `authswitch account set <account-id> --priority|--clear-priority [--json]` (`authswitch.authority.priority`, at the revision read) and **Give priority**, **Restart 24 hours** and **Turn off** on the account's page in Settings → Accounts (`controller.accounts.priority`, audited `accounts.priority` with no details, which 41.1.0 and later read as an unknown type). The accounts service sets the end, its clock plus 24 hours, and keeps it on the account as `priorityUntil`; giving it again restarts the 24 hours, and it ends by itself, as every reader judges it against its own clock. Several accounts can have it, of any kind.
|
|
25
|
+
- While it holds, the inference proxy places a new session on a priority account before any account of its pool without priority, of any credential tier, as long as one takes the request: one at its limit or reserve (a priority lifts no maximum usage), resting after a provider 429 (also one model's rest, AGL-1797), lapsed or without the model is passed over. Among several the existing placement order decides; priority ranks above the renewal preference (AGL-1644). Flex's default account for a new conversation follows the same order.
|
|
26
|
+
- Running sessions stay where they are: priority moves no session to an account, and its end moves no session between accounts, except that a session on an API key returns to a sign-in of the better tier at its first request once the key's priority ended, as a session on any key does. While the key holds priority, it returns only to a sign-in that has priority too.
|
|
27
|
+
- Shown while it holds: the account's row (`priority until 14:05`, `tomorrow 14:05` on the next day, in the browser's time) and its page beside its actions; `authswitch list`, `limits` and `account list`; `agl proxy status` (`--json`: `priorityUntil` per account, null without one). `agl proxy capacity` is unchanged: its member answer is checked for exact keys by earlier readers.
|
|
28
|
+
- The account record holds `priorityUntil` only while it is set: ending it removes it, and so does the account's first write after its end or its removal. Downgrade: an older accounts service refuses the store while any account record holds a priority; run `authswitch account set <id> --clear-priority` on every account before downgrading: a priority that ran out is listed nowhere, yet its record keeps it until the account's next change. A controller or proxy of this release names an older accounts service outdated (`AuthSwitchDaemonOutdatedError`), as for every account member added before.
|
|
29
|
+
|
|
3
30
|
## 2026-11-13 - 43.6.0
|
|
4
31
|
|
|
5
32
|
### Features
|