agl 42.0.0 → 42.1.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 +6 -0
- package/dist_serve/bundle.js +2493 -2143
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/aglapi/aglapisurface.document.js +2 -2
- package/dist_ts/classes.authstore.d.ts +2 -0
- package/dist_ts/classes.authstore.js +50 -17
- package/dist_ts/classes.controller.d.ts +71 -2
- package/dist_ts/classes.controller.js +500 -113
- package/dist_ts/classes.controllerdevices.d.ts +128 -0
- package/dist_ts/classes.controllerdevices.js +472 -0
- package/dist_ts/classes.sessionfeed.d.ts +10 -1
- package/dist_ts/classes.sessionfeed.js +12 -2
- package/dist_ts/classes.validation.d.ts +2 -0
- package/dist_ts/classes.validation.js +2 -2
- package/dist_ts/functions.deviceapi.d.ts +28 -0
- package/dist_ts/functions.deviceapi.js +246 -0
- package/dist_ts/functions.deviceproof.d.ts +33 -0
- package/dist_ts/functions.deviceproof.js +93 -0
- package/dist_ts/functions.remotecli.d.ts +1 -1
- package/dist_ts/functions.remotecli.js +12 -7
- package/dist_ts/interfaces.auth.d.ts +1 -1
- package/dist_ts/interfaces.auth.js +6 -1
- package/dist_ts_interfaces/devices.d.ts +331 -0
- package/dist_ts_interfaces/devices.js +34 -0
- package/dist_ts_interfaces/index.d.ts +2 -0
- package/dist_ts_interfaces/index.js +3 -1
- package/dist_ts_interfaces/interfaces.d.ts +4 -2
- package/dist_ts_interfaces/interfaces.js +3 -2
- package/dist_ts_interfaces/mcprequests.d.ts +1 -1
- package/dist_ts_interfaces/requests.d.ts +2 -1
- package/dist_ts_interfaces/requests.devices.d.ts +89 -0
- package/dist_ts_interfaces/requests.devices.js +2 -0
- package/dist_ts_interfaces/requests.js +1 -1
- package/package.json +1 -1
- package/readme.md +36 -4
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +2 -2
- package/ts/classes.authstore.ts +46 -14
- package/ts/classes.controller.ts +697 -167
- package/ts/classes.controllerdevices.ts +469 -0
- package/ts/classes.sessionfeed.ts +13 -1
- package/ts/classes.validation.ts +1 -1
- package/ts/functions.deviceapi.ts +295 -0
- package/ts/functions.deviceproof.ts +118 -0
- package/ts/functions.remotecli.ts +11 -5
- package/ts/interfaces.auth.ts +5 -0
- package/ts_interfaces/devices.schema.json +890 -0
- package/ts_interfaces/devices.ts +392 -0
- package/ts_interfaces/index.ts +2 -0
- package/ts_interfaces/interfaces.ts +4 -1
- package/ts_interfaces/mcprequests.ts +1 -1
- package/ts_interfaces/requests.devices.ts +95 -0
- package/ts_interfaces/requests.ts +10 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.controllersocketclient.ts +27 -0
- package/ts_web/elements.devices.ts +752 -0
- package/ts_web/elements.harnesscontrollerapp.ts +18 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-10-27 - 42.1.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Pair a phone or desktop app with a controller and reach it as a device (AGL-829). Settings → Devices → **Pair a device** shows a single-use code as a QR code (`dees-qrcode`) of `agl-pair:?origin=…&controller=…&code=…`, and **Copy pairing link** beside it puts that same link on the clipboard for a device without a camera (the Linux desktop app pastes it), only when pressed and never while pairing is unavailable: 32 random bytes, valid five minutes and once, at most four waiting, kept in memory only, refused in local mode (a device reaches the controller only through its public HTTPS origin). The app pairs with a P-256 key of its own, signing the code bound to the controller id and origin; the dialog then shows the device's name and key fingerprint, with **Revoke**. Each connection of a device authenticates by signing a fresh nonce; a connection is the owner's browser or a device, never both (neither signs in as the other); a device's unauthenticated requests count per connection and against the controller-wide limit the browser's sign-in shares; and the device reaches only its own two scopes, never the browser's: `devicePairing` (`device.hello`, `device.pair`, `device.auth.challenge`, `device.auth.prove`) and `device` (`device.sessions.list`, `device.session.read`, `device.session.send`, `device.permission.reply`, `device.question.reply`): the session feed without terminals, host paths or tickets, bounded transcript pages with tool calls reduced to name, title and status (the newest page by the controller's own bound, older pages of `limit` 1–50), direct messages (never the shared draft) and permission and question answers through the same functions the browser's answers now use, each audited under `device:<id>`, plus an allowlist of events in a reduced shape through queues of its own. Revoking a device closes its connections with 4403 at once; at most 16 devices pair with a controller; `agl remote set` to another origin and `agl remote unset` remove every device, which signed the old origin, in the move's own transaction (a move that fails keeps them), and say so. The device contract is `ts_interfaces/devices.ts` with its own version (`device.hello`: 1.0) and ships with its JSON Schema, `ts_interfaces/devices.schema.json`; devices are kept in a new collection, `agl_controller_devices`. Downgrade: an earlier release from 41.1.0 on (42.0.0 included) starts on a store that holds it and leaves the devices for a later upgrade, and reads and prunes the `device.*` audit events as audit types it does not know. A port that 42.0.0 moves to another origin meanwhile (`agl remote set` or `unset`) keeps its devices: back on this release they stay listed but never authenticate, since a device authenticates only on the origin it paired with, so revoke them. Controller protocol 49.
|
|
8
|
+
|
|
3
9
|
## 2026-10-27 - 42.0.0
|
|
4
10
|
|
|
5
11
|
### Breaking Changes
|