agl 43.0.4 → 43.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.
Files changed (165) hide show
  1. package/changelog.md +25 -0
  2. package/dist_serve/bundle.js +5186 -4683
  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_serve/third-party-notices.md +1 -1
  7. package/dist_ts/00_commitinfo_data.js +1 -1
  8. package/dist_ts/aglapi/aglapisurface.document.js +475 -4
  9. package/dist_ts/aglapi/interfaces.d.ts +10 -0
  10. package/dist_ts/aglapi/interfaces.js +3 -1
  11. package/dist_ts/classes.claudeharness.d.ts +14 -5
  12. package/dist_ts/classes.claudeharness.js +62 -2
  13. package/dist_ts/classes.codexclientadapter.d.ts +7 -5
  14. package/dist_ts/classes.codexclientadapter.js +38 -3
  15. package/dist_ts/classes.controller.d.ts +9 -2
  16. package/dist_ts/classes.controller.js +116 -24
  17. package/dist_ts/classes.flexservice.d.ts +6 -7
  18. package/dist_ts/classes.flexservice.js +12 -45
  19. package/dist_ts/classes.flexsupervisor.d.ts +37 -3
  20. package/dist_ts/classes.flexsupervisor.js +164 -37
  21. package/dist_ts/classes.inferencegateway.d.ts +8 -5
  22. package/dist_ts/classes.inferencegateway.js +62 -19
  23. package/dist_ts/classes.inferencespend.d.ts +9 -3
  24. package/dist_ts/classes.inferencespend.js +44 -16
  25. package/dist_ts/classes.mcpclient.d.ts +6 -4
  26. package/dist_ts/classes.mcpclient.js +6 -2
  27. package/dist_ts/classes.mcpcontrollerhost.js +5 -1
  28. package/dist_ts/classes.mcptools.d.ts +1 -1
  29. package/dist_ts/classes.mcptools.js +17 -4
  30. package/dist_ts/classes.opencodeclient.js +3 -1
  31. package/dist_ts/classes.proxycontrol.d.ts +22 -11
  32. package/dist_ts/classes.proxycontrol.js +6 -3
  33. package/dist_ts/classes.proxycontrolclient.d.ts +6 -5
  34. package/dist_ts/classes.proxycontrolclient.js +8 -6
  35. package/dist_ts/classes.proxydaemon.d.ts +8 -6
  36. package/dist_ts/classes.proxydaemon.js +35 -21
  37. package/dist_ts/classes.proxyleaseholder.d.ts +12 -4
  38. package/dist_ts/classes.proxyleaseholder.js +39 -9
  39. package/dist_ts/classes.proxystore.d.ts +4 -3
  40. package/dist_ts/classes.proxystore.js +17 -7
  41. package/dist_ts/classes.sessionfeed.d.ts +1 -1
  42. package/dist_ts/classes.validation.d.ts +7 -0
  43. package/dist_ts/classes.validation.js +49 -2
  44. package/dist_ts/driver/functions.drivertools.js +2 -2
  45. package/dist_ts/fleet/classes.codexworkers.d.ts +4 -11
  46. package/dist_ts/fleet/classes.codexworkers.js +6 -3
  47. package/dist_ts/fleet/classes.workers.d.ts +25 -13
  48. package/dist_ts/fleet/classes.workers.js +105 -9
  49. package/dist_ts/fleet/functions.workervalidation.d.ts +26 -1
  50. package/dist_ts/fleet/functions.workervalidation.js +40 -11
  51. package/dist_ts/fleet/interfaces.workers.d.ts +17 -11
  52. package/dist_ts/fleet/interfaces.workers.js +10 -1
  53. package/dist_ts/flexharness.child.js +9 -4
  54. package/dist_ts/functions.confinedrelay.d.ts +21 -0
  55. package/dist_ts/functions.confinedrelay.js +65 -0
  56. package/dist_ts/functions.deviceapi.d.ts +4 -2
  57. package/dist_ts/functions.deviceapi.js +20 -2
  58. package/dist_ts/functions.elicitation.d.ts +49 -0
  59. package/dist_ts/functions.elicitation.js +418 -0
  60. package/dist_ts/functions.flexchildshutdown.d.ts +7 -0
  61. package/dist_ts/functions.flexchildshutdown.js +18 -1
  62. package/dist_ts/functions.inferencecli.d.ts +3 -3
  63. package/dist_ts/functions.inferencecli.js +33 -10
  64. package/dist_ts/functions.inferencecliarguments.d.ts +2 -1
  65. package/dist_ts/functions.inferencecliarguments.js +29 -8
  66. package/dist_ts/functions.inferencelaunch.d.ts +35 -7
  67. package/dist_ts/functions.inferencelaunch.js +143 -16
  68. package/dist_ts/functions.mcpfleetworkertools.d.ts +63 -70
  69. package/dist_ts/functions.mcpfleetworkertools.js +32 -4
  70. package/dist_ts/functions.proxycontract.d.ts +21 -4
  71. package/dist_ts/functions.proxycontract.js +12 -5
  72. package/dist_ts/functions.proxyharnessconfig.d.ts +7 -0
  73. package/dist_ts/functions.proxyharnessconfig.js +11 -1
  74. package/dist_ts/interfaces.auth.d.ts +1 -1
  75. package/dist_ts/interfaces.auth.js +2 -1
  76. package/dist_ts_interfaces/devices.d.ts +133 -3
  77. package/dist_ts_interfaces/devices.js +3 -2
  78. package/dist_ts_interfaces/elicitations.d.ts +125 -0
  79. package/dist_ts_interfaces/elicitations.js +7 -0
  80. package/dist_ts_interfaces/fleetworkers.d.ts +119 -5
  81. package/dist_ts_interfaces/fleetworkers.js +14 -2
  82. package/dist_ts_interfaces/index.d.ts +1 -0
  83. package/dist_ts_interfaces/index.js +2 -1
  84. package/dist_ts_interfaces/interfaces.d.ts +3 -1
  85. package/dist_ts_interfaces/interfaces.js +2 -2
  86. package/dist_ts_interfaces/mcprequests.d.ts +5 -1
  87. package/dist_ts_interfaces/mcprequests.js +2 -1
  88. package/dist_ts_interfaces/nativesessions.d.ts +14 -0
  89. package/dist_ts_interfaces/requests.d.ts +3 -3
  90. package/dist_ts_interfaces/requests.fleetworkers.js +2 -2
  91. package/dist_ts_interfaces/requests.js +1 -1
  92. package/dist_ts_interfaces/requests.promptreply.d.ts +18 -0
  93. package/dist_ts_interfaces/sessionfeed.d.ts +3 -2
  94. package/dist_ts_interfaces/sessionfeed.js +1 -1
  95. package/dist_ts_migration/index.d.ts +0 -2
  96. package/dist_ts_migration/index.js +1 -3
  97. package/dist_ts_migration/v43_flexpostharnessmigrationmarkers.d.ts +6 -17
  98. package/dist_ts_migration/v43_flexpostharnessmigrationmarkers.js +6 -36
  99. package/package.json +3 -3
  100. package/readme.md +191 -24
  101. package/third-party-notices.md +1 -1
  102. package/ts/00_commitinfo_data.ts +1 -1
  103. package/ts/aglapi/aglapisurface.document.ts +474 -3
  104. package/ts/aglapi/interfaces.ts +2 -0
  105. package/ts/classes.claudeharness.ts +80 -9
  106. package/ts/classes.codexclientadapter.ts +41 -5
  107. package/ts/classes.controller.ts +142 -29
  108. package/ts/classes.flexservice.ts +10 -66
  109. package/ts/classes.flexsupervisor.ts +214 -37
  110. package/ts/classes.inferencegateway.ts +69 -23
  111. package/ts/classes.inferencespend.ts +46 -13
  112. package/ts/classes.mcpclient.ts +8 -4
  113. package/ts/classes.mcpcontrollerhost.ts +4 -0
  114. package/ts/classes.mcptools.ts +17 -3
  115. package/ts/classes.opencodeclient.ts +2 -0
  116. package/ts/classes.proxycontrol.ts +27 -13
  117. package/ts/classes.proxycontrolclient.ts +9 -6
  118. package/ts/classes.proxydaemon.ts +49 -27
  119. package/ts/classes.proxyleaseholder.ts +43 -11
  120. package/ts/classes.proxystore.ts +21 -8
  121. package/ts/classes.sessionfeed.ts +1 -1
  122. package/ts/classes.validation.ts +52 -0
  123. package/ts/driver/functions.drivertools.ts +1 -1
  124. package/ts/fleet/classes.codexworkers.ts +8 -6
  125. package/ts/fleet/classes.workers.ts +101 -17
  126. package/ts/fleet/functions.workervalidation.ts +35 -9
  127. package/ts/fleet/interfaces.workers.ts +11 -4
  128. package/ts/flexharness.child.ts +8 -3
  129. package/ts/functions.confinedrelay.ts +65 -0
  130. package/ts/functions.deviceapi.ts +24 -1
  131. package/ts/functions.elicitation.ts +443 -0
  132. package/ts/functions.flexchildshutdown.ts +22 -0
  133. package/ts/functions.inferencecli.ts +38 -13
  134. package/ts/functions.inferencecliarguments.ts +26 -5
  135. package/ts/functions.inferencelaunch.ts +143 -16
  136. package/ts/functions.mcpfleetworkertools.ts +34 -4
  137. package/ts/functions.proxycontract.ts +17 -4
  138. package/ts/functions.proxyharnessconfig.ts +11 -0
  139. package/ts/interfaces.auth.ts +1 -0
  140. package/ts_interfaces/devices.schema.json +476 -2
  141. package/ts_interfaces/devices.ts +146 -2
  142. package/ts_interfaces/elicitations.ts +148 -0
  143. package/ts_interfaces/fleetworkers.ts +96 -4
  144. package/ts_interfaces/index.ts +1 -0
  145. package/ts_interfaces/interfaces.ts +3 -1
  146. package/ts_interfaces/mcprequests.ts +1 -0
  147. package/ts_interfaces/nativesessions.ts +16 -0
  148. package/ts_interfaces/requests.fleetworkers.ts +1 -1
  149. package/ts_interfaces/requests.promptreply.ts +22 -0
  150. package/ts_interfaces/requests.ts +4 -0
  151. package/ts_interfaces/sessionfeed.ts +3 -2
  152. package/ts_migration/index.ts +0 -2
  153. package/ts_migration/v43_flexpostharnessmigrationmarkers.ts +6 -49
  154. package/ts_web/00_commitinfo_data.ts +1 -1
  155. package/ts_web/classes.elicitationcards.ts +106 -0
  156. package/ts_web/classes.nativesessionstate.ts +38 -1
  157. package/ts_web/elements.fleetworker.ts +27 -2
  158. package/ts_web/elements.harnesscontrollerapp.ts +68 -1
  159. package/ts_web/functions.sessionchat.ts +5 -0
  160. package/dist_ts_migration/classes.flexpostharnessmigrationrunner.d.ts +0 -19
  161. package/dist_ts_migration/classes.flexpostharnessmigrationrunner.js +0 -34
  162. package/dist_ts_migration/v19_flexprojectmanagement.d.ts +0 -14
  163. package/dist_ts_migration/v19_flexprojectmanagement.js +0 -23
  164. package/ts_migration/classes.flexpostharnessmigrationrunner.ts +0 -54
  165. package/ts_migration/v19_flexprojectmanagement.ts +0 -32
package/changelog.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-11-11 - 43.1.0
4
+
5
+ ### Features
6
+
7
+ - MCP `fleet_worker_list` now defaults to compact summaries: pages of 50 (`limit` 1-100), newest first, continued with a cursor bound to its filter (`archived`, `ticketKey`, and the new `state` and `harness`), each row carrying the observed status, turn outcome and native wait, with `total`, `fenced` and `failed` (recorded errors and failed turn outcomes) counted over the whole filtered set; a mismatched or stale cursor is refused by name. `view: 'full'` returns the full records, which `agl fleet worker list` and the private request keep as their default (AGL-1530).
8
+ - Add MCP `fleet_worker_get`, one worker's full record and current view by name or id, and `fleet_worker_job_wait`, a wait of up to 240 s for a fleet operation job that never cancels it and reports a job the controller no longer holds as `JOB_UNAVAILABLE` instead of failed (AGL-1530).
9
+ - Show the MCP elicitations of Claude Code conversations and Codex threads as cards beside their permission and question cards (dees-catalog 24.2.0 `dees-harness-elicitation-card`), answered by the owner alone, in the browser or on a paired device (`controller.elicitation.reply`, `controller.nativesession.elicitation.reply`, `device.elicitation.reply`; device protocol 1.1). A card is a form, a URL or a request AGL cannot collect (`mode`: `form`, `url`, `unsupported`). A form takes MCP's flat primitive subset and the controller checks every value against it before anything reaches the server; a URL request shows its address as plain text, never opened or fetched, and accepting it reports the visit done; any other request (Codex's `openai/form`, `openaiForm`, `openai/userVerification`, a nested field, a form whose schema uses a constraint AGL cannot check such as `pattern`, `multipleOf` or `allOf`, a form too large to show) is a card with its reason that only Decline or Cancel answer, never a form with a field or a rule left out. Auto-accept never answers an elicitation, no agent can answer one, and the values entered reach no log, audit record, event or error text. Claude Code's own `Elicitation` hooks can still answer a request before AGL sees it. Before, Claude Code declined every elicitation by itself and AGL refused Codex's with `-32601`. The replies are audited as `elicitation.reply`, which 43.0.5, like every release since 41.1.0, reads as an unknown audit type (AGL-1531).
10
+ - Every session read now carries `elicitations` beside `permissions` and `questions`, empty while none is pending (also for OpenCode and Flex), and `device.session.read` carries it too; a device app of protocol 1.0 ignores the key. The controller protocol is 52, so an `agl mcp` bridge of an earlier release refuses this controller, as it refuses every other release.
11
+ - Run Codex CLI in confined containers on the ChatGPT pool (AGL-1614): `agl proxy confined run --harness codex -- docker run … <image> node /run/agl-proxy-relay/agl-relay.mjs -- codex exec …` takes a Codex run's credential, a lease of the ChatGPT pool's ChatGPT accounts alone (policy `{ provider: 'openai', credential: 'subscription' }`, never an OpenAI API key) whose sessions are the client `confined-codex`'s, accepted on the confined listener alone and ended with the container; `--provider anthropic` beside it is refused, and without `--harness` a run is a Claude Code run exactly as before. The confined listener serves a Codex run `GET /openai/v1/models` (Codex's catalog for its `client_version`) and `POST /openai/v1/responses` as the loopback listener serves Codex, refuses every other path and method (every `/anthropic/` path, `/openai/v1/messages`, `/responses/compact`, `/memories/…`, `/realtime/…`) and every connection upgrade with 404 before anything is read or routed, refuses a Responses request that declares a hosted tool (web search, file search, code interpreter, image generation, remote MCP, a hosted shell or tool search), or whose `tool_choice` names one, with 400 `hosted_tool_refused` before it is routed, and answers a Codex run's refusals in OpenAI's error shape; Claude Code runs are served exactly as before. Codex has no Unix-socket provider transport, so the command writes AGL's relay (`agl-relay.mjs`, plain Node.js) into a directory of the run's own, mounts it read-only at `/run/agl-proxy-relay` and removes it after the run: inside the container the relay listens on `127.0.0.1:4100` (`AGL_PROXY_RELAY_PORT`), pipes each connection to the confined socket alone, runs the command and exits with its status. The command passes `AGL_PROXY_SOCKET` and `MODELPROFILE_PROXY_TOKEN` by name, sets no model, and removes the OpenAI and Codex login, route and home variables (`OPENAI_API_KEY`, `OPENAI_BASE_URL`, `CODEX_API_KEY`, `CODEX_HOME`, …) and Claude Code's from the environment `docker` runs with; it refuses `--network host` and `--network container:…` (every spelling, `--net` and Docker's long form `name=…,…` included, and a long-form value whose network it cannot read) for a Codex run, whose relay port must stay on the container's own loopback. `agl.proxy.confined` takes `{ harness: 'codex' }` (an older proxy refuses the key, which the launcher reports as a proxy older than Codex runs), the grant names the run's `harness`, and `agl proxy status` lists a Codex run as `Codex on the ChatGPT pool (ChatGPT accounts only)` (`confinedRuns[].harness`). The readme's *Codex in a confined container* gives the kit's provider block, `codex exec` flags and managed configuration, verified with Codex CLI 0.164.0 by a new case of `test/e2e/e2e.proxyconfined.node.ts` (`debian:bookworm-slim`, `--network none --read-only --cap-drop ALL`, the host's static Codex and Node mounted). Downgrade: 43.0.5 and earlier refuse to start while the proxy's store keeps a Codex run's credential; let every confined run end first (`agl proxy confined end <run id>`), or start this release once with none going and wait out the 60-second reclaim window.
12
+
13
+ ### Fixes
14
+
15
+ - Show in the session list where a session that needs input waits in its own client ("Approve in Codex", "Answer in Claude Code") and label a completed session whose last turn was interrupted; a fleet worker's view, also as a direct report, shows a failed last turn with the limit that ended it, an interrupted one, and a wait in Claude Code or Codex itself. Before, the list showed only the group (AGL-1532).
16
+
17
+ ### Maintenance
18
+
19
+ - Release tooling: @git.zone/tsrepo 2.1.0 (from 1.1.1); 2.0.0 makes `@push.rocks/smartmongo` an optional peer it no longer installs; no AGL test calls `createSmartmongo()`. pnpm stays on 12.17.0 (12.18.0 does not yet meet the seven-day rule). The production dependency closure is unchanged; ten `sha1-` lockfile entries written by the Verdaccio resolve are restored to npmjs's sha512.
20
+
21
+ ## 2026-11-07 - 43.0.5
22
+
23
+ ### Fixes
24
+
25
+ - Write every Flex child stdout and stderr line to the controller log as it arrives, tagged `Flex child generation <n> (PID <pid>)`, with credentials hidden and each line cut to 2 KiB; a generation writes at most 200 lines a minute and reports the rest as one `N lines suppressed` record followed by the last 20 suppressed lines of each stream, so a child that floods and then crashes still leaves its error. A Flex child that ends through an uncaught exception or unhandled rejection now writes the error's name, message and stack to stderr before it exits 1, and the supervisor logs the exit code and signal of every exit it did not ask for or that failed, with the pipe errors it ignored for that generation, so a child failure can be quoted from the controller log (AGL-1538).
26
+ - Stop Flex `project.register` from walking a project's sessions at all: a big project whose v19 project-management walk never finished inside the 35 s budget under load (so 43.0.4 never recorded it) ran the walk again on every new child, which timed out and stopped that child in a loop. Registration now runs only the project's persistence migrations, whatever its size; each session's project-management state is loaded when it is first read, and that load copies a legacy scratchpad into it as before. A session whose stored state conflicts fails its own read instead of its project's registration. The markers 43.0.4 wrote stay in place and are no longer read (AGL-1543).
27
+
3
28
  ## 2026-11-07 - 43.0.4
4
29
 
5
30
  ### Fixes