agl 43.3.2 → 43.5.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.
Files changed (110) hide show
  1. package/changelog.md +33 -0
  2. package/dist_serve/bundle.js +2248 -2236
  3. package/dist_serve/bundle.js.map +2 -2
  4. package/dist_serve/bundle.js.third-party-notices.json +29 -29
  5. package/dist_serve/bundle.js.third-party-notices.txt +29 -29
  6. package/dist_ts/00_commitinfo_data.js +1 -1
  7. package/dist_ts/aglapi/interfaces.d.ts +5 -0
  8. package/dist_ts/aglapi/interfaces.js +2 -1
  9. package/dist_ts/classes.authstore.js +5 -2
  10. package/dist_ts/classes.claudeharness.js +4 -3
  11. package/dist_ts/classes.codexclientadapter.d.ts +5 -0
  12. package/dist_ts/classes.codexclientadapter.js +12 -6
  13. package/dist_ts/classes.controller.d.ts +32 -6
  14. package/dist_ts/classes.controller.js +165 -62
  15. package/dist_ts/classes.inferencegateway.js +14 -2
  16. package/dist_ts/classes.inferencerouter.d.ts +9 -1
  17. package/dist_ts/classes.inferencerouter.js +68 -14
  18. package/dist_ts/classes.mcpclient.d.ts +2 -2
  19. package/dist_ts/classes.mcpclient.js +14 -9
  20. package/dist_ts/classes.mcptools.d.ts +1 -1
  21. package/dist_ts/classes.mcptools.js +2 -1
  22. package/dist_ts/classes.opencodeclient.js +20 -4
  23. package/dist_ts/driver/functions.driverinstructions.d.ts +1 -1
  24. package/dist_ts/driver/functions.driverinstructions.js +2 -1
  25. package/dist_ts/fleet/classes.claudeworkers.d.ts +8 -5
  26. package/dist_ts/fleet/classes.claudeworkers.js +13 -8
  27. package/dist_ts/fleet/classes.deploymodels.d.ts +58 -1
  28. package/dist_ts/fleet/classes.deploymodels.js +121 -2
  29. package/dist_ts/fleet/classes.deploymonitor.d.ts +193 -47
  30. package/dist_ts/fleet/classes.deploymonitor.js +548 -180
  31. package/dist_ts/fleet/classes.gitfacts.d.ts +4 -1
  32. package/dist_ts/fleet/classes.gitfacts.js +13 -10
  33. package/dist_ts/fleet/classes.service.d.ts +2 -0
  34. package/dist_ts/fleet/classes.service.js +6 -3
  35. package/dist_ts/fleet/functions.deployprobes.js +21 -2
  36. package/dist_ts/fleet/functions.deploystatus.d.ts +26 -0
  37. package/dist_ts/fleet/functions.deploystatus.js +33 -0
  38. package/dist_ts/fleet/functions.deployvalidation.d.ts +1 -0
  39. package/dist_ts/fleet/functions.deployvalidation.js +5 -2
  40. package/dist_ts/functions.claudecoderelease.d.ts +1 -1
  41. package/dist_ts/functions.claudecoderelease.js +1 -1
  42. package/dist_ts/functions.deploycli.js +3 -2
  43. package/dist_ts/functions.deviceapi.d.ts +7 -6
  44. package/dist_ts/functions.deviceapi.js +13 -5
  45. package/dist_ts/functions.inferencecli.js +10 -2
  46. package/dist_ts/functions.inferencelaunch.d.ts +19 -8
  47. package/dist_ts/functions.inferencelaunch.js +23 -12
  48. package/dist_ts/functions.mcpdeploytools.js +3 -1
  49. package/dist_ts/functions.promptreply.d.ts +13 -0
  50. package/dist_ts/functions.promptreply.js +17 -0
  51. package/dist_ts/functions.proxyharnessconfig.d.ts +18 -0
  52. package/dist_ts/functions.proxyharnessconfig.js +30 -1
  53. package/dist_ts_authswitch/authority-renewal.d.ts +12 -3
  54. package/dist_ts_authswitch/authority-renewal.js +14 -5
  55. package/dist_ts_authswitch/classes.claudenative.d.ts +8 -8
  56. package/dist_ts_authswitch/classes.claudenative.js +13 -13
  57. package/dist_ts_interfaces/deployments.d.ts +38 -6
  58. package/dist_ts_interfaces/deployments.js +7 -3
  59. package/dist_ts_interfaces/devices.d.ts +2 -1
  60. package/dist_ts_interfaces/devices.js +1 -1
  61. package/dist_ts_interfaces/inbox.d.ts +10 -1
  62. package/dist_ts_interfaces/inbox.js +1 -1
  63. package/dist_ts_interfaces/mcprequests.d.ts +1 -1
  64. package/dist_ts_interfaces/requests.accounts.d.ts +5 -0
  65. package/dist_ts_interfaces/requests.accounts.js +3 -1
  66. package/docs/authswitch.md +5 -4
  67. package/package.json +2 -2
  68. package/readme.md +49 -21
  69. package/ts/00_commitinfo_data.ts +1 -1
  70. package/ts/aglapi/interfaces.ts +1 -0
  71. package/ts/classes.authstore.ts +4 -1
  72. package/ts/classes.claudeharness.ts +3 -2
  73. package/ts/classes.codexclientadapter.ts +11 -5
  74. package/ts/classes.controller.ts +177 -73
  75. package/ts/classes.inferencegateway.ts +15 -1
  76. package/ts/classes.inferencerouter.ts +72 -13
  77. package/ts/classes.mcpclient.ts +14 -5
  78. package/ts/classes.mcptools.ts +1 -0
  79. package/ts/classes.opencodeclient.ts +23 -3
  80. package/ts/driver/functions.driverinstructions.ts +1 -0
  81. package/ts/fleet/classes.claudeworkers.ts +12 -7
  82. package/ts/fleet/classes.deploymodels.ts +113 -1
  83. package/ts/fleet/classes.deploymonitor.ts +565 -179
  84. package/ts/fleet/classes.gitfacts.ts +10 -8
  85. package/ts/fleet/classes.service.ts +7 -1
  86. package/ts/fleet/functions.deployprobes.ts +16 -1
  87. package/ts/fleet/functions.deploystatus.ts +56 -0
  88. package/ts/fleet/functions.deployvalidation.ts +4 -1
  89. package/ts/functions.claudecoderelease.ts +1 -1
  90. package/ts/functions.deploycli.ts +2 -1
  91. package/ts/functions.deviceapi.ts +19 -9
  92. package/ts/functions.inferencecli.ts +7 -1
  93. package/ts/functions.inferencelaunch.ts +35 -14
  94. package/ts/functions.mcpdeploytools.ts +2 -0
  95. package/ts/functions.promptreply.ts +20 -0
  96. package/ts/functions.proxyharnessconfig.ts +32 -0
  97. package/ts_authswitch/authority-renewal.ts +14 -4
  98. package/ts_authswitch/classes.claudenative.ts +12 -12
  99. package/ts_authswitch/native-contracts.md +250 -28
  100. package/ts_interfaces/deployments.ts +39 -6
  101. package/ts_interfaces/devices.schema.json +1 -1
  102. package/ts_interfaces/devices.ts +2 -1
  103. package/ts_interfaces/inbox.ts +8 -1
  104. package/ts_interfaces/requests.accounts.ts +2 -0
  105. package/ts_web/00_commitinfo_data.ts +1 -1
  106. package/ts_web/classes.accountsreadmodel.ts +19 -7
  107. package/ts_web/elements.accounts.ts +31 -18
  108. package/ts_web/elements.deployments.ts +20 -4
  109. package/ts_web/elements.harnesscontrollerapp.ts +43 -13
  110. package/ts_web/elements.inbox.ts +3 -3
package/changelog.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-11-13 - 43.5.0
4
+
5
+ ### Features
6
+
7
+ - AGL verified Claude Code 2.1.322 (AGL-1780). Only a release newer than 2.1.322 is now mentioned to the driver, once, and the mention names 2.1.322 as the release AGL verified. The fleet still runs 2.1.282 and every newer release; its floor stays 2.1.282.
8
+ - The accounts service lists 2.1.322 among the releases whose credential handling it read. Its usage read still takes every release from 2.1.282 on.
9
+ - The check is in `ts_authswitch/native-contracts.md` ("Claude Code compatibility check"). 2.1.322 keeps every fleet item, and a relay on it is still left with only `Read`, `SendMessage` and `ToolSearch` in `default`, `acceptEdits` and `bypassPermissions`. Its `api-request` transcript records are about 30 % of what it writes, and the fleet's 4 MiB window still holds an hour or more and dozens of a driver's turns.
10
+
11
+ ### Fixes
12
+
13
+ - A Claude account whose limit was reset takes work again, and one model's limit no longer stops the account's other models (AGL-1797). A provider 429 that named a wait of a day used to rest the whole account for that day, whatever its usage showed afterwards; only a proxy restart ended it.
14
+ - A usage reading made after the 429 now ends the rest when it shows room. Only a wait of up to five minutes (a rate limit) still runs its course.
15
+ - On a Claude sign-in a longer wait rests only the model the request asked for. `agl proxy status` names the resting model with the account.
16
+ - The proxy's journal has one line per provider 429: the account, the model, the `Retry-After` and the provider's rate-limit headers.
17
+ - A Claude sign-in's renewal is picked in a calendar (AGL-1782): the account's **Renewal** in Settings → Accounts is a date picker with a calendar and a time (`dees-input-datepicker`), no longer a narrow text field the date and time had to be typed into. The date and time are picked, or typed into the picker's field (`2026-12-05 09:30`, `05.12.2026 09:30` or `12/05/2026 09:30`), in the browser's time zone, shown as the page shows dates, and sent as their UTC instant only with **Save**. Save follows the typing: a date typed enables it without Enter or leaving the field, one click saves that date, and Enter in the field saves nothing. The picker takes exactly what the accounts service takes, from the year 2000 to 9999 (`controllerRenewsAtRange`, the rule's range `authSwitchRenewsAtRange`), and says in its own words what it cannot take; Save then waits for a correction. Clearing the field clears only the draft: **No renewal** still removes the renewal. Needs @design.estate/dees-catalog 24.6.2, whose date picker reports a date as it is typed.
18
+ - Claude Code 2.1.322 no longer blocks handing Claude Code's sign-in to AGL (AGL-1780). Its bundle was read against the custody items of the compatibility check, and its credential handling keeps them, so a 2.1.322 process on Claude Code's home no longer refuses **Hand to AGL** with `claude_native_sessions`. A hand-over or sign-out now also clears `managedSettingsNoticeSeenOrg`, which 2.1.322's own sign-out clears.
19
+ - AGL's policy hook no longer goes quiet because Claude Code inherits a variable that switches hooks off (AGL-1783). `CLAUDE_CODE_SIMPLE`, `CLAUDE_CODE_SAFE_MODE` and `CLAUDE_CODE_RESTRICTED` keep the hooks of the user's Claude Code settings from running, and with them AGL's deny rules; `CLAUDE_CODE_REMOTE_SESSION_ORIGIN=review` does so together with Claude Code's three other review-mode variables, and `CLAUDE_CODE_IGNORE_PERSISTED_TRUST`, as read from Claude Code 2.1.322's bundle and not yet shown by a run, makes Claude Code count no workspace trust and skip every hook of a background session it then runs untrusted. Set in the shell or service environment that started the controller or `agl proxy run`, such a variable reached every fleet worker, every Claude chat of the controller and every `agl proxy run claude`.
20
+ - AGL now drops these names, whatever their value, from the environment of the Claude Code sessions it starts: fleet workers, its own Claude chats, `agl proxy run claude` on either pool, and a confined Claude Code run's `docker run`, so `-e NAME` passes none of them. A flag you type for the run (`--bare`, `--safe-mode`, `-e NAME=1`) still applies, and `CLAUDE_CODE_PERSONAL_HOOKS_OFF` is left alone: it keeps no hook out.
21
+ - `agl proxy run` and `agl proxy confined run` print one line on stderr naming what they dropped, and nothing when there was nothing to drop. The controller logs once at start which of these names its own environment holds.
22
+ - This covers the environment AGL hands over, not every way to lose the hook: it still does not run in a checkout whose `.claude/settings.json` sets `disableAllHooks: true`, and the drop may not reach a Claude Code daemon that was started from another environment. AGL does not yet check per session that its hook is live (AGL-1790).
23
+
24
+ ## 2026-11-12 - 43.4.0
25
+
26
+ ### Features
27
+
28
+ - The Deployments status is stored and refreshed in the background (AGL-1704): the Deployments view, `agl deploy status`, `agl release status` without a repository, the driver's `deploy_status`, a device's host view and the Inbox's deploy go's answer at once from the status the controller last computed, instead of walking the workspace roots and reading the board and git for every target on each read. The controller computes it after every pass (at start, every five minutes, after a fleet release and after a saved configuration) and once board changes settle, one run at a time; a request during a run shares the one run after it. The status is kept in the controller's database (`agl_fleet_deploy_status`, one document per controller), so after a restart it is shown at once with the time it was checked, and the `undeployed` AutoLabel shows from the first board read. Where a maintenance window stands, whether a target may deploy now and the busy sessions are applied when the status is read. A read before the first computation waits up to 20 s and is then refused as still being computed (`deploy_unavailable` with its own message), which a device reads as `failed` with a reference instead of `not_running`. A remote whose fetched tags cannot be read now fails the computation, naming the repository, and the last status stands with the failure recorded beside it (before, the repository read as one without releases); a status over 4 MiB fails its computation instead of being cut. A probe's error text no longer repeats a token in the probe URL's query or fragment. `agl release status REPO`, `agl deploy history` and a ticket's "Where it runs" are still read when asked. Board changes are computed 2 s after the last one and at most 10 s after the first, so a steady stream of changes no longer holds the status off; a fleet landing asks for a pass as a release does, so what the next release ships shows at once; a maintenance window opening or ending reaches the views at that moment, no longer with the next pass; and saving the standard directories, adding a project or removing one makes the next computation walk the workspace again. The browser no longer reads the Deployments view again on every board change: the controller tells it when the status changed. While the newest computation failed, the status says so beside the last one computed: the Deployments view and `agl deploy status` show "The last check failed at …" with its reference, `agl deploy status --json` and the driver's `deploy_status` carry `failure`, and an open view hears when a failure appears and when the next check clears it. A device reading the host before the first computation stored a status no longer leaves a failure journal entry per read: it reads `failed`, with the reference the failed computation was recorded under, or without one while it still runs. The owner (in the browser or through the owner's MCP tools) and the driver can now ask for a full check at once ("update deployments"): `controller.deploy.refresh`, `agl.mcp.deploy.refresh` with the local owner capability and the MCP and driver tool `deploy_refresh` fetch, probe and compute now, sharing the pass in progress' follow-up with every other request, wait up to 60 s and answer `refreshed` or `refreshing` with when the status was checked; its end reaches open views also when nothing changed. Opening the Deployments view asks for one in the background while it shows the stored status, and **Probe all** is now one full check instead of a probe per target. The driver's instructions say when to call it. `agl deploy` has no `refresh` verb. An earlier release starts with the new collection in place and ignores it.
29
+
30
+ ### Fixes
31
+
32
+ - The device contract's `child` answer names only the replies a child takes (AGL-1701): `TDeviceInboxAnswer` said a `child` item is answered with "the same replies" as a session's, `device.elicitation.reply` included, but a direct child (an OpenCode subagent) asks only permissions and questions, since OpenCode hands AGL no MCP forms. A `child` item is answered with `device.permission.reply` or `device.question.reply` and the child's `childSessionId`, as since device protocol 1.2; the Inbox's MCP form item can no longer live in or be answered as a child (`IControllerInboxElicitationItem`'s `where` and `answer`), and the web Inbox drops its unreachable child checks for one. No wire change; the device protocol stays 1.3.
33
+ - An answer to a permission or question the session no longer holds is refused as a concurrent change, not as a malformed request (AGL-1687): when another client answered it first, or its turn moved on, a conversation's and a direct child's reply refused it `invalid_request` (OpenCode), a Codex or Claude Code conversation's as a controller fault with a failure journal reference, a Flex conversation's as `flex_operation_failed`, a native session's `not_found`, and one answered between AGL's read and its answer as a controller fault (OpenCode, Codex) or `flex_operation_failed` (Flex). Every reply path now refuses one the session does not hold with `concurrent_change` ("answered or changed meanwhile, so nothing was sent"), whether AGL's read finds it gone or the harness refuses it at the send, which the browser and devices receive alike; a malformed answer (an unsupported reply, an id of another harness, an answer of the wrong shape) stays `invalid_request`. In the browser a conversation says so at the composer, drops the answer its card showed and reads the conversation again, with no error journal entry, and the Inbox shows the sentence on the card and lists again. MCP elicitations keep their own refusals (`not_found`).
34
+ - The session, terminal and resource lists appear as soon as the projects load (AGL-1704), no longer after the Deployments, driver, direct report, session feed and Inbox reads: the page load waited for all of them before it listed the conversations, terminals and resources, so one slow read held the whole workspace back.
35
+
3
36
  ## 2026-11-12 - 43.3.2
4
37
 
5
38
  ### Fixes