agl 43.2.0 → 43.3.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 (184) hide show
  1. package/changelog.md +20 -0
  2. package/dist_serve/bundle.js +2845 -2638
  3. package/dist_serve/bundle.js.map +2 -2
  4. package/dist_serve/bundle.js.third-party-notices.json +1 -1
  5. package/dist_serve/bundle.js.third-party-notices.txt +1 -1
  6. package/dist_ts/00_commitinfo_data.js +1 -1
  7. package/dist_ts/aglapi/aglapisurface.document.js +197 -17
  8. package/dist_ts/classes.accountsactions.d.ts +3 -1
  9. package/dist_ts/classes.accountsactions.js +21 -3
  10. package/dist_ts/classes.claudeharness.d.ts +16 -0
  11. package/dist_ts/classes.claudeharness.js +24 -2
  12. package/dist_ts/classes.codexclientadapter.d.ts +11 -0
  13. package/dist_ts/classes.codexclientadapter.js +14 -2
  14. package/dist_ts/classes.controller.d.ts +165 -11
  15. package/dist_ts/classes.controller.js +1095 -170
  16. package/dist_ts/classes.controllerdevices.d.ts +2 -0
  17. package/dist_ts/classes.controllerdevices.js +6 -1
  18. package/dist_ts/classes.inbox.d.ts +72 -0
  19. package/dist_ts/classes.inbox.js +231 -0
  20. package/dist_ts/classes.inferencerouter.d.ts +10 -0
  21. package/dist_ts/classes.inferencerouter.js +5 -3
  22. package/dist_ts/classes.inferenceservice.js +2 -2
  23. package/dist_ts/classes.mcpclient.d.ts +1 -1
  24. package/dist_ts/classes.mcpclient.js +24 -6
  25. package/dist_ts/classes.mcpcontrollerhost.js +3 -1
  26. package/dist_ts/classes.mcptools.js +13 -8
  27. package/dist_ts/classes.mcpvalidation.d.ts +5 -0
  28. package/dist_ts/classes.mcpvalidation.js +32 -2
  29. package/dist_ts/classes.nativesessions.d.ts +17 -4
  30. package/dist_ts/classes.nativesessions.js +41 -9
  31. package/dist_ts/classes.opencodeclient.d.ts +23 -2
  32. package/dist_ts/classes.opencodeclient.js +47 -3
  33. package/dist_ts/classes.publishedset.d.ts +38 -0
  34. package/dist_ts/classes.publishedset.js +50 -0
  35. package/dist_ts/classes.sessionfeed.d.ts +3 -3
  36. package/dist_ts/classes.sessionfeed.js +18 -26
  37. package/dist_ts/classes.systemmetricssampler.d.ts +6 -0
  38. package/dist_ts/classes.systemmetricssampler.js +15 -3
  39. package/dist_ts/classes.ticketstore.d.ts +50 -3
  40. package/dist_ts/classes.ticketstore.js +45 -8
  41. package/dist_ts/driver/classes.directreports.d.ts +14 -4
  42. package/dist_ts/driver/classes.directreports.js +25 -6
  43. package/dist_ts/driver/classes.driverservice.d.ts +44 -3
  44. package/dist_ts/driver/classes.driverservice.js +50 -16
  45. package/dist_ts/fleet/classes.claudeworkers.d.ts +21 -5
  46. package/dist_ts/fleet/classes.claudeworkers.js +142 -46
  47. package/dist_ts/fleet/classes.codexworkers.d.ts +16 -4
  48. package/dist_ts/fleet/classes.codexworkers.js +22 -5
  49. package/dist_ts/fleet/classes.workercommand.d.ts +6 -1
  50. package/dist_ts/fleet/classes.workercommand.js +15 -4
  51. package/dist_ts/fleet/classes.workers.d.ts +5 -1
  52. package/dist_ts/fleet/classes.workers.js +8 -2
  53. package/dist_ts/fleet/functions.unbounddrivers.js +2 -2
  54. package/dist_ts/fleet/functions.workervalidation.js +2 -2
  55. package/dist_ts/fleet/interfaces.workers.d.ts +21 -3
  56. package/dist_ts/fleet/interfaces.workers.js +1 -1
  57. package/dist_ts/functions.agentmessage.d.ts +3 -0
  58. package/dist_ts/functions.agentmessage.js +4 -1
  59. package/dist_ts/functions.deviceapi.d.ts +151 -4
  60. package/dist_ts/functions.deviceapi.js +893 -38
  61. package/dist_ts/functions.fleetworkercli.d.ts +1 -1
  62. package/dist_ts/functions.fleetworkercli.js +11 -8
  63. package/dist_ts/functions.inferencecli.js +3 -1
  64. package/dist_ts/functions.mcpfleetworkertools.js +2 -2
  65. package/dist_ts/functions.ticketvalidation.js +11 -2
  66. package/dist_ts/interfaces.auth.d.ts +1 -1
  67. package/dist_ts/interfaces.auth.js +9 -1
  68. package/dist_ts/plugins.d.ts +3 -1
  69. package/dist_ts/plugins.js +7 -2
  70. package/dist_ts_authswitch/authority-contract.d.ts +25 -0
  71. package/dist_ts_authswitch/authority-contract.js +1 -1
  72. package/dist_ts_authswitch/authority-overview.d.ts +8 -0
  73. package/dist_ts_authswitch/authority-overview.js +17 -6
  74. package/dist_ts_authswitch/authority-placement.d.ts +20 -16
  75. package/dist_ts_authswitch/authority-placement.js +17 -10
  76. package/dist_ts_authswitch/authority-renewal.d.ts +34 -0
  77. package/dist_ts_authswitch/authority-renewal.js +56 -0
  78. package/dist_ts_authswitch/classes.authoritybroker.d.ts +8 -0
  79. package/dist_ts_authswitch/classes.authoritybroker.js +35 -2
  80. package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
  81. package/dist_ts_authswitch/classes.authoritycli.js +44 -3
  82. package/dist_ts_authswitch/classes.authorityclient.d.ts +6 -1
  83. package/dist_ts_authswitch/classes.authorityclient.js +12 -4
  84. package/dist_ts_authswitch/classes.authoritydaemon.js +8 -1
  85. package/dist_ts_authswitch/classes.authoritydatabase.js +6 -2
  86. package/dist_ts_authswitch/classes.authoritymodels.d.ts +7 -0
  87. package/dist_ts_authswitch/classes.authoritymodels.js +21 -5
  88. package/dist_ts_interfaces/devices.d.ts +1012 -5
  89. package/dist_ts_interfaces/devices.js +68 -2
  90. package/dist_ts_interfaces/fleetworkers.d.ts +5 -3
  91. package/dist_ts_interfaces/inbox.d.ts +234 -0
  92. package/dist_ts_interfaces/inbox.js +101 -0
  93. package/dist_ts_interfaces/index.d.ts +1 -0
  94. package/dist_ts_interfaces/index.js +2 -1
  95. package/dist_ts_interfaces/interfaces.d.ts +10 -3
  96. package/dist_ts_interfaces/interfaces.js +4 -2
  97. package/dist_ts_interfaces/mcprequests.d.ts +34 -4
  98. package/dist_ts_interfaces/mcprequests.js +11 -1
  99. package/dist_ts_interfaces/mcpworkspacerequests.d.ts +4 -1
  100. package/dist_ts_interfaces/mcpworkspacerequests.js +1 -1
  101. package/dist_ts_interfaces/nativesessions.d.ts +16 -3
  102. package/dist_ts_interfaces/plugins.d.ts +2 -1
  103. package/dist_ts_interfaces/plugins.js +4 -2
  104. package/dist_ts_interfaces/requests.accounts.d.ts +21 -0
  105. package/dist_ts_interfaces/requests.accounts.js +3 -1
  106. package/dist_ts_interfaces/requests.d.ts +3 -2
  107. package/dist_ts_interfaces/requests.js +1 -1
  108. package/docs/authswitch.md +20 -1
  109. package/package.json +3 -3
  110. package/readme.md +112 -26
  111. package/ts/00_commitinfo_data.ts +1 -1
  112. package/ts/aglapi/aglapisurface.document.ts +196 -16
  113. package/ts/classes.accountsactions.ts +30 -3
  114. package/ts/classes.claudeharness.ts +27 -1
  115. package/ts/classes.codexclientadapter.ts +14 -1
  116. package/ts/classes.controller.ts +1294 -246
  117. package/ts/classes.controllerdevices.ts +6 -0
  118. package/ts/classes.inbox.ts +239 -0
  119. package/ts/classes.inferencerouter.ts +15 -2
  120. package/ts/classes.inferenceservice.ts +1 -1
  121. package/ts/classes.mcpclient.ts +24 -3
  122. package/ts/classes.mcpcontrollerhost.ts +2 -0
  123. package/ts/classes.mcptools.ts +12 -7
  124. package/ts/classes.mcpvalidation.ts +27 -1
  125. package/ts/classes.nativesessions.ts +50 -12
  126. package/ts/classes.opencodeclient.ts +55 -4
  127. package/ts/classes.publishedset.ts +56 -0
  128. package/ts/classes.sessionfeed.ts +17 -20
  129. package/ts/classes.systemmetricssampler.ts +13 -2
  130. package/ts/classes.ticketstore.ts +73 -12
  131. package/ts/driver/classes.directreports.ts +25 -6
  132. package/ts/driver/classes.driverservice.ts +75 -14
  133. package/ts/fleet/classes.claudeworkers.ts +112 -39
  134. package/ts/fleet/classes.codexworkers.ts +21 -6
  135. package/ts/fleet/classes.workercommand.ts +14 -4
  136. package/ts/fleet/classes.workers.ts +9 -2
  137. package/ts/fleet/functions.unbounddrivers.ts +1 -1
  138. package/ts/fleet/functions.workervalidation.ts +1 -1
  139. package/ts/fleet/interfaces.workers.ts +20 -5
  140. package/ts/functions.agentmessage.ts +3 -0
  141. package/ts/functions.deviceapi.ts +1071 -34
  142. package/ts/functions.fleetworkercli.ts +10 -7
  143. package/ts/functions.inferencecli.ts +2 -0
  144. package/ts/functions.mcpfleetworkertools.ts +1 -1
  145. package/ts/functions.ticketvalidation.ts +11 -1
  146. package/ts/interfaces.auth.ts +8 -0
  147. package/ts/plugins.ts +7 -0
  148. package/ts_authswitch/authority-contract.ts +20 -0
  149. package/ts_authswitch/authority-overview.ts +28 -6
  150. package/ts_authswitch/authority-placement.ts +25 -17
  151. package/ts_authswitch/authority-renewal.ts +64 -0
  152. package/ts_authswitch/classes.authoritybroker.ts +34 -1
  153. package/ts_authswitch/classes.authoritycli.ts +49 -2
  154. package/ts_authswitch/classes.authorityclient.ts +14 -4
  155. package/ts_authswitch/classes.authoritydaemon.ts +9 -1
  156. package/ts_authswitch/classes.authoritydatabase.ts +5 -1
  157. package/ts_authswitch/classes.authoritymodels.ts +23 -3
  158. package/ts_authswitch/native-contracts.md +21 -0
  159. package/ts_authswitch/readme.md +1 -1
  160. package/ts_interfaces/devices.schema.json +3573 -603
  161. package/ts_interfaces/devices.ts +1093 -4
  162. package/ts_interfaces/fleetworkers.ts +5 -3
  163. package/ts_interfaces/inbox.ts +287 -0
  164. package/ts_interfaces/index.ts +1 -0
  165. package/ts_interfaces/interfaces.ts +9 -2
  166. package/ts_interfaces/mcprequests.ts +43 -4
  167. package/ts_interfaces/mcpworkspacerequests.ts +4 -2
  168. package/ts_interfaces/nativesessions.ts +17 -3
  169. package/ts_interfaces/plugins.ts +3 -1
  170. package/ts_interfaces/requests.accounts.ts +20 -0
  171. package/ts_interfaces/requests.ts +4 -0
  172. package/ts_web/00_commitinfo_data.ts +1 -1
  173. package/ts_web/accounts.plugins.ts +4 -2
  174. package/ts_web/classes.accountsreadmodel.ts +33 -0
  175. package/ts_web/classes.browserpresentation.ts +10 -5
  176. package/ts_web/classes.inboxfeed.ts +329 -0
  177. package/ts_web/classes.nativesessionstate.ts +9 -23
  178. package/ts_web/elements.accounts.ts +81 -0
  179. package/ts_web/elements.deployments.ts +66 -2
  180. package/ts_web/elements.harnesscontrollerapp.ts +107 -37
  181. package/ts_web/elements.inbox.ts +808 -0
  182. package/ts_web/functions.inbox.ts +95 -0
  183. package/ts_web/functions.sessioncards.ts +40 -0
  184. package/ts_web/plugins.ts +2 -0
@@ -10,7 +10,8 @@ import type { IProxyCapacityAnswer, IProxyCapacityRequest } from './proxycapacit
10
10
  import type { IReq_ControllerMcpWorkerEnroll, IWorkerCallerSubject } from './workercallers.js';
11
11
  import type { IReq_ControllerSettingsGet, IReq_ControllerSettingsUpdate } from './requests.js';
12
12
  import type { IConfigurationHarness, IConfigurationOperation, IConfigurationProjectionRun, IConfigurationState, TConfigurationNativeTargetId, TConfigurationTargetId } from './configuration.js';
13
- import type { IControllerProject, IControllerSession, IControllerSessionDetail, IControllerSessionScratchpad, IControllerStatus, IControllerRuntimeId, TControllerSessionId, TControllerModelChoice, TControllerPromptDelivery } from './interfaces.js';
13
+ import type { IControllerNativeSession, TControllerNativeJobDelivery } from './nativesessions.js';
14
+ import type { IControllerMessagePage, IControllerProject, IControllerSession, IControllerSessionDetail, IControllerSessionScratchpad, IControllerStatus, IControllerRuntimeId, TControllerSessionId, TControllerModelChoice, TControllerPromptDelivery } from './interfaces.js';
14
15
  export declare const controllerMcpTypedRequestPath: '/mcp/typedrequest';
15
16
  /** Admits one master configuration document (at most 4 MiB) with its request envelope. */
16
17
  export declare const controllerMcpTypedRequestMaximumBodyBytes: number;
@@ -316,9 +317,15 @@ export interface IReq_ControllerMcpProjectsList extends plugins.typedrequestInte
316
317
  projects: IControllerProject[];
317
318
  };
318
319
  }
320
+ /** The most settled Claude Code sessions `agl.mcp.sessions.list` lists in `nativeSessions`; running ones are all listed. */
321
+ export declare const controllerMcpNativeSessionSettledLimit = 50;
319
322
  /**
320
- * Discovers a project's OpenCode, Flex and Codex tasks from its folder and configured connections,
321
- * tasks created outside AGL included.
323
+ * Discovers a project's OpenCode, Flex and Codex tasks and AGL's own Claude Code conversations from its folder and
324
+ * configured connections, tasks created outside AGL included (`sessions`), and, apart from them, the Claude Code
325
+ * sessions of the host's own Claude Code home whose directory is the project folder itself (`nativeSessions`): running
326
+ * ones first, all of them, then at most `controllerMcpNativeSessionSettledLimit` settled ones, newest first
327
+ * (`nativeSessionsTruncated` when more may exist). `nativeSessionsError` names why the Claude Code inventory could not
328
+ * be read; `nativeSessions` is then empty.
322
329
  */
323
330
  export interface IReq_ControllerMcpSessionsList extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ControllerMcpSessionsList> {
324
331
  method: 'agl.mcp.sessions.list';
@@ -327,8 +334,26 @@ export interface IReq_ControllerMcpSessionsList extends plugins.typedrequestInte
327
334
  };
328
335
  response: {
329
336
  sessions: IControllerSession[];
337
+ nativeSessions: IControllerNativeSession[];
338
+ nativeSessionsTruncated?: true;
339
+ nativeSessionsError?: string;
330
340
  };
331
341
  }
342
+ /**
343
+ * A Claude Code session outside AGL as `agl.mcp.session.read` answers it: the session with why it takes no message
344
+ * (`readOnly`) or how it takes one (`jobDelivery`), its newest transcript page and its scratchpad.
345
+ */
346
+ export interface IControllerMcpNativeSessionDetail {
347
+ kind: 'native';
348
+ session: IControllerNativeSession;
349
+ messagePage: IControllerMessagePage;
350
+ scratchpad: IControllerSessionScratchpad;
351
+ }
352
+ /**
353
+ * How an agent message to a Claude Code background job was delivered, in `session_message`'s delivery terms: a wake
354
+ * starts the job's next turn, an inbox message waits in its queue until the job reads it.
355
+ */
356
+ export declare const controllerMcpNativeDeliveries: Readonly<Record<TControllerNativeJobDelivery, TControllerPromptDelivery>>;
332
357
  /**
333
358
  * Reads the bounded current detail of one task: its newest messages, pending prompts, permissions,
334
359
  * questions, todos, scratchpad, model and, for Codex, the running turn. Read it again to follow the
@@ -340,7 +365,7 @@ export interface IReq_ControllerMcpSessionRead extends plugins.typedrequestInter
340
365
  projectId: string;
341
366
  sessionId: IControllerRuntimeId;
342
367
  };
343
- response: TControllerMcpSessionDetail;
368
+ response: TControllerMcpSessionDetail | IControllerMcpNativeSessionDetail;
344
369
  }
345
370
  export interface IReq_ControllerMcpSessionSend extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ControllerMcpSessionSend> {
346
371
  method: 'agl.mcp.session.send';
@@ -391,6 +416,11 @@ export interface IReq_ControllerMcpSessionMessage extends plugins.typedrequestIn
391
416
  delivery: TControllerPromptDelivery;
392
417
  /** The Codex or Claude Code turn a steer went into. */
393
418
  turnId?: string;
419
+ /**
420
+ * For a Claude Code background job outside AGL: how it took the message; `delivery` is then
421
+ * `controllerMcpNativeDeliveries[native]`.
422
+ */
423
+ native?: TControllerNativeJobDelivery;
394
424
  };
395
425
  }
396
426
  /** Reads the current scratchpad text and revision of one task. */
@@ -77,4 +77,14 @@ export const controllerMcpSessionDetailFields = {
77
77
  export const controllerMcpCallerCredentialEnvironmentVariable = 'AGL_MCP_CALLER_CREDENTIAL';
78
78
  /** Optional browser-minted owner capability; when absent, the CLI mints one through same-user controller database access. */
79
79
  export const configurationOwnerTokenEnvironmentVariable = 'AGL_CONFIG_OWNER_TOKEN';
80
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWNwcmVxdWVzdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL21jcHJlcXVlc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSwrQkFBK0IsRUFBOEMsTUFBTSw0QkFBNEIsQ0FBQztBQUN6SCxPQUFPLEVBQUUsNkJBQTZCLEVBQTRDLE1BQU0sMkJBQTJCLENBQUM7QUFDcEgsT0FBTyxFQUFFLHVCQUF1QixFQUFzQyxNQUFNLHFCQUFxQixDQUFDO0FBQ2xHLE9BQU8sRUFBRSwwQk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+ /** The most settled Claude Code sessions `agl.mcp.sessions.list` lists in `nativeSessions`; running ones are all listed. */
81
+ export const controllerMcpNativeSessionSettledLimit = 50;
82
+ /**
83
+ * How an agent message to a Claude Code background job was delivered, in `session_message`'s delivery terms: a wake
84
+ * starts the job's next turn, an inbox message waits in its queue until the job reads it.
85
+ */
86
+ export const controllerMcpNativeDeliveries = {
87
+ wake: 'next-turn',
88
+ inbox: 'queue',
89
+ };
90
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWNwcmVxdWVzdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL21jcHJlcXVlc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSwrQkFBK0IsRUFBOEMsTUFBTSw0QkFBNEIsQ0FBQztBQUN6SCxPQUFPLEVBQUUsNkJBQTZCLEVBQTRDLE1BQU0sMkJBQTJCLENBQUM7QUFDcEgsT0FBTyxFQUFFLHVCQUF1QixFQUFzQyxNQUFNLHFCQUFxQixDQUFDO0FBQ2xHLE9BQU8sRUFBRSwwQkFBMEIsRUFBeUMsTUFBTSx1QkFBdUIsQ0FBQztBQUMxRyxPQUFPLEVBQUUseUJBQXlCLEVBQXdDLE1BQU0scUJBQXFCLENBQUM7QUFDdEcsT0FBTyxFQUFFLCtCQUErQixFQUE4QyxNQUFNLGtCQUFrQixDQUFDO0FBQy9HLE9BQU8sRUFBRSwwQkFBMEIsRUFBeUMsTUFBTSxrQkFBa0IsQ0FBQztBQUNyRyxPQUFPLEtBQUssT0FBTyxNQUFNLGNBQWMsQ0FBQztBQTBCeEMsTUFBTSxDQUFDLE1BQU0sNkJBQTZCLEdBQUcsbUJBQTRCLENBQUM7QUFDMUUsMEZBQTBGO0FBQzFGLE1BQU0sQ0FBQyxNQUFNLHlDQUF5QyxHQUFHLENBQUMsR0FBRyxJQUFJLEdBQUcsS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UFFLFFBQVEsRUFBRSxJQUFJLEVBQUU7SUFDOUQsaUJBQWlCLEVBQUUsRUFBRSxJQUFJLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQUU7SUFDckQsS0FBSyxFQUFFLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFFO0lBQ3pDLE1BQU0sRUFBRSxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLElBQUksRUFBRTtJQUMxQyxnQkFBZ0IsRUFBRSxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBRTtJQUNyRCxtQkFBbUIsRUFBRSxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBRTtDQUNvQixDQUFDO0FBRS9FOzs7Ozs7R0FNRztBQUNILE1BQU0sQ0FBQyxNQUFNLGdEQUFnRCxHQUFHLDJCQUEyQixDQUFDO0FBQzVGLDZIQUE2SDtBQUM3SCxNQUFNLENBQUMsTUFBTSwwQ0FBMEMsR0FBRyx3QkFBd0IsQ0FBQztBQWtNbkYsNEhBQTRIO0FBQzVILE1BQU0sQ0FBQyxNQUFNLHNDQUFzQyxHQUFHLEVBQUUsQ0FBQztBQW1DekQ7OztHQUdHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sNkJBQTZCLEdBQThFO0lBQ3RILElBQUksRUFBRSxXQUFXO0lBQ2pCLEtBQUssRUFBRSxPQUFPO0NBQ2YsQ0FBQyJ9
@@ -1,5 +1,6 @@
1
1
  import * as plugins from './plugins.js';
2
2
  import type * as requests from './requests.js';
3
+ import type { IControllerNativeSession } from './nativesessions.js';
3
4
  import type { IControllerProject, IControllerSession, TControllerResourceKind, TControllerSessionId, TControllerTerminalAgentKind } from './interfaces.js';
4
5
  export declare const controllerMcpBrowserMaximumImageBytes: number;
5
6
  export declare const controllerMcpBrowserOperationTimeoutMs = 20000;
@@ -197,7 +198,8 @@ export interface IReq_ControllerMcpWorkspaceReveal extends plugins.typedrequestI
197
198
  }
198
199
  /**
199
200
  * Resolves an absolute project directory and, optionally, one of its existing native tasks to AGL's
200
- * project and qualified session. It does not take over a running task.
201
+ * project and qualified session. It does not take over a running task. A Claude Code session outside
202
+ * AGL (`sessions_list`'s `nativeSessions`) answers as `nativeSession` and is recorded nowhere.
201
203
  */
202
204
  export interface IReq_ControllerMcpContextResolve extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ControllerMcpContextResolve> {
203
205
  method: 'agl.mcp.context.resolve';
@@ -208,6 +210,7 @@ export interface IReq_ControllerMcpContextResolve extends plugins.typedrequestIn
208
210
  response: {
209
211
  project: IControllerProject;
210
212
  session?: IControllerSession;
213
+ nativeSession?: IControllerNativeSession;
211
214
  };
212
215
  }
213
216
  export declare const controllerMcpWorkspaceMethods: readonly ['agl.mcp.browser.action', 'agl.mcp.project.create', 'agl.mcp.model.list', 'agl.mcp.session.create', 'agl.mcp.session.model.update', 'agl.mcp.session.rename', 'agl.mcp.session.archive', 'agl.mcp.session.abort', 'agl.mcp.resource.list', 'agl.mcp.resource.create', 'agl.mcp.resource.rename', 'agl.mcp.resource.attach', 'agl.mcp.resource.detach', 'agl.mcp.resource.start', 'agl.mcp.resource.stop', 'agl.mcp.resource.retire', 'agl.mcp.workspace.reveal', 'agl.mcp.context.resolve'];
@@ -21,4 +21,4 @@ export const controllerMcpWorkspaceMethods = [
21
21
  'agl.mcp.workspace.reveal',
22
22
  'agl.mcp.context.resolve',
23
23
  ];
24
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWNwd29ya3NwYWNlcmVxdWVzdHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL21jcHdvcmtzcGFjZXJlcXVlc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFw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QUFvQjtJQUNwQix3QkFBd0I7SUFDeEIsOEJBQThCO0lBQzlCLHdCQUF3QjtJQUN4Qix5QkFBeUI7SUFDekIsdUJBQXVCO0lBQ3ZCLHVCQUF1QjtJQUN2Qix5QkFBeUI7SUFDekIseUJBQXlCO0lBQ3pCLHlCQUF5QjtJQUN6Qix5QkFBeUI7SUFDekIsd0JBQXdCO0lBQ3hCLHVCQUF1QjtJQUN2Qix5QkFBeUI7SUFDekIsMEJBQTBCO0lBQzFCLHlCQUF5QjtDQUNqQixDQUFDIn0=
@@ -13,9 +13,19 @@ export interface IControllerNativeSessionRef {
13
13
  /** The fleet worker profile whose Claude Code home holds the session; absent for the host's own home and for Codex. */
14
14
  profileId?: string;
15
15
  }
16
+ /**
17
+ * How a message reaches a Claude Code background job (`claude --bg`) that AGL does not run: `wake` continues a settled
18
+ * (done, blocked or stopped) job through Claude Code's own `claude --bg --resume`, `inbox` puts it into a running job's
19
+ * inbox through Claude Code's own SendMessage, accepted and queued there, not yet read.
20
+ */
21
+ export type TControllerNativeJobDelivery = 'wake' | 'inbox';
16
22
  /**
17
23
  * Why AGL does not write to a native session:
18
24
  * `running`: another process runs it, and AGL never becomes its second writer;
25
+ * `unaddressable`: a running background job takes a message only by a session name no other running session shares, and
26
+ * it has none or shares it;
27
+ * `notBackgroundJob`: an agent reaches only a background job (MCP `session_message`); the owner's own native session view
28
+ * resumes another settled session;
19
29
  * `profileHome`: it lives in a fleet profile's Claude Code home, which AGL's own Claude Code does not resume;
20
30
  * `directoryMissing`: its directory is gone, so nothing resumes it;
21
31
  * `projectConversation`: an AGL project conversation records it, and that project sends to it;
@@ -23,7 +33,7 @@ export interface IControllerNativeSessionRef {
23
33
  * `jobFailed`: a Claude Code background job holds it and failed, and AGL wakes only a settled job;
24
34
  * `jobHeld`: AGL's own Claude Code still holds a background job's conversation, so Claude Code would wake a copy.
25
35
  */
26
- export type TControllerNativeSessionReadOnlyReason = 'running' | 'profileHome' | 'directoryMissing' | 'projectConversation' | 'fleetWorker' | 'jobFailed' | 'jobHeld';
36
+ export type TControllerNativeSessionReadOnlyReason = 'running' | 'unaddressable' | 'notBackgroundJob' | 'profileHome' | 'directoryMissing' | 'projectConversation' | 'fleetWorker' | 'jobFailed' | 'jobHeld';
27
37
  export interface IControllerNativeSession extends IControllerNativeSessionRef {
28
38
  cwd: string;
29
39
  title: string;
@@ -39,6 +49,8 @@ export interface IControllerNativeSession extends IControllerNativeSessionRef {
39
49
  reason: TControllerNativeSessionReadOnlyReason;
40
50
  message: string;
41
51
  };
52
+ /** How a message reaches the session, present exactly while it is a Claude Code background job that takes one. */
53
+ jobDelivery?: TControllerNativeJobDelivery;
42
54
  }
43
55
  /** A native session, its newest transcript page and its session state. */
44
56
  export interface IReq_ControllerNativeSessionRead extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ControllerNativeSessionRead> {
@@ -71,8 +83,9 @@ export interface IReq_ControllerNativeSessionAuxiliaryGet extends plugins.typedr
71
83
  }
72
84
  /**
73
85
  * Sends the owner's message to a native session that AGL may write to: a settled Claude Code session of the host's
74
- * own home, resumed in its own directory, or a Codex thread through the shared app-server that owns it. Attachments
75
- * follow the conversation send's contract and limits.
86
+ * own home, resumed in its own directory, a Claude Code background job (`jobDelivery`), or a Codex thread through the
87
+ * shared app-server that owns it. A job's inbox takes the text as the owner's agent message. Attachments follow the
88
+ * conversation send's contract and limits.
76
89
  */
77
90
  export interface IReq_ControllerNativeSessionSend extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ControllerNativeSessionSend> {
78
91
  method: 'controller.nativesession.send';
@@ -2,8 +2,9 @@ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
2
2
  import type * as browserRuntime from '@push.rocks/smartbrowser/runtime';
3
3
  import * as authswitchAuthority from '../dist_ts_authswitch/authority-contract.js';
4
4
  import * as authswitchSpend from '../dist_ts_authswitch/authority-spend.js';
5
+ import * as authswitchRenewal from '../dist_ts_authswitch/authority-renewal.js';
5
6
  import type { AuthenticationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON } from '@simplewebauthn/server';
6
7
  export { typedrequestInterfaces };
7
8
  export type { browserRuntime };
8
- export { authswitchAuthority, authswitchSpend };
9
+ export { authswitchAuthority, authswitchRenewal, authswitchSpend };
9
10
  export type { AuthenticationResponseJSON, PublicKeyCredentialCreationOptionsJSON, PublicKeyCredentialRequestOptionsJSON, RegistrationResponseJSON, };
@@ -7,6 +7,8 @@ import * as typedrequestInterfaces from '@api.global/typedrequest-interfaces';
7
7
  import * as authswitchAuthority from '../dist_ts_authswitch/authority-contract.js';
8
8
  // An API key's monthly spend: the spend limit rule and dollar amounts, a leaf that imports nothing.
9
9
  import * as authswitchSpend from '../dist_ts_authswitch/authority-spend.js';
10
+ // A Claude sign-in's monthly renewal: the anchor rule and the next renewal, a leaf that imports nothing.
11
+ import * as authswitchRenewal from '../dist_ts_authswitch/authority-renewal.js';
10
12
  export { typedrequestInterfaces };
11
- export { authswitchAuthority, authswitchSpend };
12
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX2ludGVyZmFjZXMvcGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssc0JBQXNCLE1BQU0scUNBQXFDLENBQUM7QUFFOUUsa0dBQWtHO0FBQ2xHLG9HQUFvRztBQUNwRyxxR0FBcUc7QUFDckcsdUdBQXVHO0FBQ3ZHLFlBQVk7QUFDWixPQUFPLEtBQUssbUJBQW1CLE1BQU0sd0NBQXdDLENBQUM7QUFDOUUsb0dBQW9HO0FBQ3BHLE9BQU8sS0FBSyxlQUFlLE1BQU0scUNBQXFDLENBQUM7QUFRdkUsT0FBTyxFQUFFLHNCQUFzQixFQUFFLENBQUM7QUFFbEMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLGVBQWUsRUFBRSxDQUFDIn0=
13
+ export { authswitchAuthority, authswitchRenewal, authswitchSpend };
14
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3RzX2ludGVyZmFjZXMvcGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssc0JBQXNCLE1BQU0scUNBQXFDLENBQUM7QUFFOUUsa0dBQWtHO0FBQ2xHLG9HQUFvRztBQUNwRyxxR0FBcUc7QUFDckcsdUdBQXVHO0FBQ3ZHLFlBQVk7QUFDWixPQUFPLEtBQUssbUJBQW1CLE1BQU0sd0NBQXdDLENBQUM7QUFDOUUsb0dBQW9HO0FBQ3BHLE9BQU8sS0FBSyxlQUFlLE1BQU0scUNBQXFDLENBQUM7QUFDdkUseUdBQXlHO0FBQ3pHLE9BQU8sS0FBSyxpQkFBaUIsTUFBTSx1Q0FBdUMsQ0FBQztBQVEzRSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsQ0FBQztBQUVsQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsaUJBQWlCLEVBQUUsZUFBZSxFQUFFLENBQUMifQ==
@@ -200,6 +200,8 @@ export declare const controllerSpendLimitRange: Readonly<{
200
200
  min: number;
201
201
  max: number;
202
202
  }>;
203
+ /** The renewal anchor rule of the accounts service (`IReq_ControllerAccountsRenewal`); a past date and time is valid. */
204
+ export declare const isControllerRenewsAt: typeof plugins.authswitchRenewal.isAuthSwitchRenewsAt;
203
205
  /** The longest API key the accounts service holds, in characters; a longer value is refused before it is sent. */
204
206
  export declare const controllerApiKeyMaxLength = 512;
205
207
  /**
@@ -259,6 +261,25 @@ export interface IReq_ControllerAccountsClaudeCode extends plugins.typedrequestI
259
261
  answer: TControllerAccountsAnswer<TControllerAccount>;
260
262
  };
261
263
  }
264
+ /**
265
+ * Sets the anchor of a Claude sign-in's monthly renewal (AGL-1644), or clears it with `null`: any date and time the
266
+ * subscription renewed or renews, a past one too, by the accounts service's rule (`isControllerRenewsAt`). AGL's
267
+ * inference proxy then spends first the usage a window would still hold at the next renewal. `expectedRevision` is
268
+ * the revision the view showed, so a change of an account that changed meanwhile is refused as `account_changed`, and a
269
+ * value that breaks the rule, or an account other than a Claude sign-in, as `invalid_input`, both by the service. The
270
+ * answer arrives only once the projection shows the result.
271
+ */
272
+ export interface IReq_ControllerAccountsRenewal extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IReq_ControllerAccountsRenewal> {
273
+ method: 'controller.accounts.renewal';
274
+ request: {
275
+ accountId: string;
276
+ expectedRevision: number;
277
+ renewsAt: string | null;
278
+ };
279
+ response: {
280
+ answer: TControllerAccountsAnswer<TControllerAccount>;
281
+ };
282
+ }
262
283
  /** Duration validation shared with the authority; no implicit duration is supplied. */
263
284
  export declare const isControllerReserveLiftHours: typeof plugins.authswitchAuthority.isAuthSwitchReserveLiftHours;
264
285
  /** Lift only the saved reserve. The authority sets the expiry; the projection must show the change before answering. */
@@ -24,8 +24,10 @@ export const controllerAccountMaxUsageRange = plugins.authswitchAuthority.authSw
24
24
  export const isControllerSpendLimitMicroUsd = plugins.authswitchSpend.isAuthSwitchSpendLimitMicroUsd;
25
25
  /** The range of a spend limit, in micro-dollars. */
26
26
  export const controllerSpendLimitRange = plugins.authswitchSpend.authSwitchSpendLimitRange;
27
+ /** The renewal anchor rule of the accounts service (`IReq_ControllerAccountsRenewal`); a past date and time is valid. */
28
+ export const isControllerRenewsAt = plugins.authswitchRenewal.isAuthSwitchRenewsAt;
27
29
  /** The longest API key the accounts service holds, in characters; a longer value is refused before it is sent. */
28
30
  export const controllerApiKeyMaxLength = 512;
29
31
  /** Duration validation shared with the authority; no implicit duration is supplied. */
30
32
  export const isControllerReserveLiftHours = plugins.authswitchAuthority.isAuthSwitchReserveLiftHours;
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdHMuYWNjb3VudHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90c19pbnRlcmZhY2VzL3JlcXVlc3RzLmFjY291bnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxPQUFPLE1BQU0sY0FBYyxDQUFDO0FBOEd4QyxvR0FBb0c7QUFDcEcsTUFBTSxDQUFDLE1BQU0sZ0NBQWdDLEdBQUcsQ0FBQyxTQUFrQyxFQUFXLEVBQUUsQ0FBQyxDQUMvRixTQUFTLENBQUMsS0FBSyxLQUFLLFNBQVMsSUFBSSxTQUFTLENBQUMsS0FBSyxLQUFLLFlBQVksQ0FDbEUsQ0FBQztBQThCRjs7O0dBR0c7QUFDSCxNQUFNLENBQUMsTUFBTSx3QkFBd0IsR0FBRyxPQUFPLENBQUMsbUJBQW1CLENBQUMsd0JBQXdCLENBQUM7QUFDN0YsdUVBQXVFO0FBQ3ZFLE1BQU0sQ0FBQyxNQUFNLCtCQUErQixHQUFHLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQywrQkFBK0IsQ0FBQztBQWlCM0c7Ozs7R0FJRztBQUNILE1BQU0sQ0FBQyxNQUFNLGtDQUFrQyxHQUFHLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQywyQkFBMkIsQ0FBQztBQUMxRyxtRUFBbUU7QUFDbkUsTUFBTSxDQUFDLE1BQU0sOEJBQThCLEdBQUcsT0FBTyxDQUFDLG1CQUFtQixDQUFDLHVCQUF1QixDQUFDO0FBcUJsRzs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sOEJBQThCLEdBQUcsT0FBTyxDQUFDLGVBQWUsQ0FBQyw4QkFBOEIsQ0FBQztBQUNyRyxvREFBb0Q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ztBQUMxRyxtRUFBbUU7QUFDbkUsTUFBTSxDQUFDLE1BQU0sOEJBQThCLEdBQUcsT0FBTyxDQUFDLG1CQUFtQixDQUFDLHVCQUF1QixDQUFDO0FBcUJsRzs7OztHQUlHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sOEJBQThCLEdBQUcsT0FBTyxDQUFDLGVBQWUsQ0FBQyw4QkFBOEIsQ0FBQztBQUNyRyxvREFBb0Q7QUFDcEQsTUFBTSxDQUFDLE1BQU0seUJBQXlCLEdBQUcsT0FBTyxDQUFDLGVBQWUsQ0FBQyx5QkFBeUIsQ0FBQztBQUUzRix5SEFBeUg7QUFDekgsTUFBTSxDQUFDLE1BQU0sb0JBQW9CLEdBQUcsT0FBTyxDQUFDLGlCQUFpQixDQUFDLG9CQUFvQixDQUFDO0FBRW5GLGtIQUFrSDtBQUNsSCxNQUFNLENBQUMsTUFBTSx5QkFBeUIsR0FBRyxHQUFHLENBQUM7QUFrRTdDLHVGQUF1RjtBQUN2RixNQUFNLENBQUMsTUFBTSw0QkFBNEIsR0FBRyxPQUFPLENBQUMsbUJBQW1CLENBQUMsNEJBQTRCLENBQUMifQ==
@@ -1,10 +1,11 @@
1
1
  import type { IReq_ControllerConfigurationResourceGet, IReq_ControllerConfigurationStateGet, IReq_ControllerConfigurationSummaryGet, IReq_ControllerConfigurationMasterGet, IReq_ControllerConfigurationMasterSave, IReq_ControllerConfigurationProject, IReq_ControllerConfigurationReview, IReq_ControllerConfigurationApply, IReq_ControllerConfigurationRestoreReview, IReq_ControllerConfigurationRestore, IReq_ControllerConfigurationTargetBind, IReq_ControllerConfigurationOperationRetry, IReq_ControllerConfigurationOperationRecover, IReq_ControllerConfigurationOperationAbandon, IReq_ControllerConfigurationOwnerIssue, IReq_ControllerConfigurationOwnerRevoke } from './requests.configuration.js';
2
- import type { IReq_ControllerAccountsAdd, IReq_ControllerAccountsDoctorGet, IReq_ControllerAccountsOperationCancel, IReq_ControllerAccountsOperationGet, IReq_ControllerAccountsPreuseCancel, IReq_ControllerAccountsPreuseGet, IReq_ControllerAccountsPreuseStart, IReq_ControllerAccountsReauth, IReq_ControllerAccountsRemove, IReq_ControllerAccountsRename, IReq_ControllerAccountsMaxUsage, IReq_ControllerAccountsReserveLift, IReq_ControllerAccountsApiKeyAdd, IReq_ControllerAccountsSpendLimit, IReq_ControllerAccountsClaudeCode, IReq_ControllerAccountsSnapshot, IReq_ControllerAccountsUsageGet, IReq_ControllerAccountsUsageRecheck, IReq_ControllerAccountsClaudeHostGet, IReq_ControllerAccountsClaudeRelease, IReq_ControllerAccountsClaudeReleaseGet, IReq_ControllerAccountsClaudeRepair, IReq_ControllerAccountsClaudeSignInCancel, IReq_ControllerAccountsClaudeSignInGet, IReq_ControllerAccountsClaudeSignInStart, IReq_ControllerAccountsCodexAdopt, IReq_ControllerCodexAccountUse, IReq_ControllerAccountsCodexRelease } from './requests.accounts.js';
2
+ import type { IReq_ControllerAccountsAdd, IReq_ControllerAccountsDoctorGet, IReq_ControllerAccountsOperationCancel, IReq_ControllerAccountsOperationGet, IReq_ControllerAccountsPreuseCancel, IReq_ControllerAccountsPreuseGet, IReq_ControllerAccountsPreuseStart, IReq_ControllerAccountsReauth, IReq_ControllerAccountsRemove, IReq_ControllerAccountsRename, IReq_ControllerAccountsMaxUsage, IReq_ControllerAccountsReserveLift, IReq_ControllerAccountsApiKeyAdd, IReq_ControllerAccountsSpendLimit, IReq_ControllerAccountsClaudeCode, IReq_ControllerAccountsRenewal, IReq_ControllerAccountsSnapshot, IReq_ControllerAccountsUsageGet, IReq_ControllerAccountsUsageRecheck, IReq_ControllerAccountsClaudeHostGet, IReq_ControllerAccountsClaudeRelease, IReq_ControllerAccountsClaudeReleaseGet, IReq_ControllerAccountsClaudeRepair, IReq_ControllerAccountsClaudeSignInCancel, IReq_ControllerAccountsClaudeSignInGet, IReq_ControllerAccountsClaudeSignInStart, IReq_ControllerAccountsCodexAdopt, IReq_ControllerCodexAccountUse, IReq_ControllerAccountsCodexRelease } from './requests.accounts.js';
3
3
  import type { IReq_ControllerOpenCodeRestart, IReq_ControllerProxyStatusGet, IReq_ControllerRestart, IReq_ControllerStatus } from './requests.status.js';
4
4
  import type { IReq_ControllerDriverGet, IReq_ControllerDriverEnsure, IReq_ControllerDriverSeen } from './requests.driver.js';
5
5
  import type { IReq_ControllerFleetWorkerList, IReq_ControllerFleetWorkerRead, IReq_ControllerFleetWorkerSteer } from './requests.fleetworkers.js';
6
6
  import type { IReq_ControllerDirectReportAdopt, IReq_ControllerDirectReportAppoint, IReq_ControllerDirectReportPreflight, IReq_ControllerDirectReportList, IReq_ControllerDirectReportMessage, IReq_ControllerDirectReportRead } from './requests.directreports.js';
7
7
  import type { IReq_ControllerSessionFeedAcknowledge, IReq_ControllerSessionFeedList } from './sessionfeed.js';
8
+ import type { IReq_ControllerInboxList } from './inbox.js';
8
9
  import type { TControllerDeployTypedRequest } from './deployments.js';
9
10
  import type { IReq_ControllerNativeSessionAuxiliaryGet, IReq_ControllerNativeSessionElicitationReply, IReq_ControllerNativeSessionIntelligenceAsk, IReq_ControllerNativeSessionPermissionReply, IReq_ControllerNativeSessionQuestionReply, IReq_ControllerNativeSessionRead, IReq_ControllerNativeSessionScratchpadSave, IReq_ControllerNativeSessionSend } from './nativesessions.js';
10
11
  import type { IReq_ControllerUsageUnwatch, IReq_ControllerUsageWatch } from './metrics.js';
@@ -42,4 +43,4 @@ export * from './requests.browser.js';
42
43
  export * from './requests.terminal.js';
43
44
  export * from './requests.workspace.js';
44
45
  export * from './requests.events.js';
45
- export type TControllerRequest = IReq_ControllerConfigurationResourceGet | IReq_ControllerConfigurationStateGet | IReq_ControllerConfigurationSummaryGet | IReq_ControllerConfigurationMasterGet | IReq_ControllerConfigurationMasterSave | IReq_ControllerConfigurationProject | IReq_ControllerConfigurationReview | IReq_ControllerConfigurationApply | IReq_ControllerConfigurationRestoreReview | IReq_ControllerConfigurationRestore | IReq_ControllerConfigurationTargetBind | IReq_ControllerConfigurationOperationRetry | IReq_ControllerConfigurationOperationRecover | IReq_ControllerConfigurationOperationAbandon | IReq_ControllerConfigurationOwnerIssue | IReq_ControllerConfigurationOwnerRevoke | IReq_ControllerStatus | IReq_ControllerProxyStatusGet | IReq_ControllerOpenCodeRestart | IReq_ControllerRestart | IReq_ControllerDriverGet | IReq_ControllerDriverEnsure | IReq_ControllerDriverSeen | IReq_ControllerFleetWorkerList | IReq_ControllerFleetWorkerRead | IReq_ControllerFleetWorkerSteer | IReq_ControllerDirectReportList | IReq_ControllerDirectReportMessage | IReq_ControllerDirectReportRead | IReq_ControllerDirectReportPreflight | IReq_ControllerDirectReportAppoint | IReq_ControllerDirectReportAdopt | IReq_ControllerSessionFeedList | IReq_ControllerSessionFeedAcknowledge | TControllerDeployTypedRequest | IReq_ControllerNativeSessionRead | IReq_ControllerNativeSessionAuxiliaryGet | IReq_ControllerNativeSessionSend | IReq_ControllerNativeSessionScratchpadSave | IReq_ControllerNativeSessionIntelligenceAsk | IReq_ControllerNativeSessionPermissionReply | IReq_ControllerNativeSessionQuestionReply | IReq_ControllerNativeSessionElicitationReply | IReq_ControllerUsageWatch | IReq_ControllerUsageUnwatch | IReq_ControllerSystemMetrics | IReq_ControllerSystemMetricsHistory | IReq_ControllerFailureDetailGet | IReq_ControllerAuthState | IReq_ControllerSetupBegin | IReq_ControllerSetupFinish | IReq_ControllerAuthenticationBegin | IReq_ControllerAuthenticationFinish | IReq_ControllerTempPasswordLogin | IReq_ControllerAuthResume | IReq_ControllerAuthHandoff | IReq_ControllerAuthSignout | IReq_ControllerProjectList | IReq_ControllerProjectCreate | IReq_ControllerProjectRemove | IReq_ControllerProjectRemovalRetry | IReq_ControllerProjectAgentMessagesUpdate | IReq_ControllerProjectSuggest | IReq_ControllerProviderConnectionList | IReq_ControllerProviderModelRefreshBegin | IReq_ControllerProviderModelRefreshGet | IReq_ControllerSlashList | IReq_ControllerSlashExecute | IReq_ControllerModelList | IReq_ControllerSettingsGet | IReq_ControllerSettingsUpdate | IReq_ControllerConversationList | IReq_ControllerConversationSearch | IReq_ControllerConversationOpen | IReq_ControllerConversationArchive | IReq_ControllerConversationReopen | IReq_ControllerSessionGet | IReq_ControllerSessionChildGet | IReq_ControllerSessionChildStatusGet | IReq_ControllerFlexChildGet | IReq_ControllerCodexChildGet | IReq_ControllerSessionChildMessagesPage | IReq_ControllerSessionChildMessageGet | IReq_ControllerSessionChildPermissionReply | IReq_ControllerSessionChildQuestionReply | IReq_ControllerSessionAuxiliaryGet | IReq_ControllerSessionModelUpdate | IReq_ControllerSessionScratchpadSave | IReq_ControllerSessionIntelligenceAsk | IReq_ControllerSessionMessagesPage | IReq_ControllerSessionMessageGet | IReq_ControllerSessionCreate | IReq_ControllerSessionDelete | IReq_ControllerSessionDiscardEmpty | IReq_ControllerSessionDraftGet | IReq_ControllerSessionDraftUpdate | IReq_ControllerSessionSend | import('./codex.js').IReq_ControllerCodexRestart | import('./codex.js').IReq_ControllerCodexWriterUpdate | import('./codex.js').IReq_ControllerCodexModeUpdate | import('./codex.js').IReq_ControllerCodexProfilesList | import('./codex.js').IReq_ControllerCodexAccountProfile | import('./codex.js').IReq_ControllerCodexProfileCreate | import('./codex.js').IReq_ControllerCodexProfileUpdate | import('./codex.js').IReq_ControllerCodexProfileTest | import('./codex.js').IReq_ControllerCodexMappingUpdate | import('./codex.js').IReq_ControllerCodexThreadsList | import('./codex.js').IReq_ControllerCodexThreadEnroll | IReq_ControllerSessionAbort | IReq_ControllerSessionHarnessRestart | IReq_ControllerSessionCompactionUpdate | IReq_ControllerSessionLimitResumeUpdate | IReq_ControllerSessionPromptQueueRelease | IReq_ControllerSessionHeldPromptRelease | IReq_ControllerSessionPendingPromptAction | IReq_ControllerPermissionReply | IReq_ControllerQuestionReply | IReq_ControllerElicitationReply | IReq_ControllerSessionRename | IReq_ControllerSessionArchive | IReq_ControllerSessionGroupsGet | IReq_ControllerSessionGroupsUpdate | IReq_ControllerSessionYolo | IReq_ControllerResourceList | IReq_ControllerResourceCreate | IReq_ControllerResourceRename | IReq_ControllerResourceAttach | IReq_ControllerResourceDetach | IReq_ControllerResourceRetire | IReq_ControllerResourceStart | IReq_ControllerResourceStop | IReq_ControllerBrowserViewOpen | IReq_ControllerBrowserViewActivate | IReq_ControllerBrowserViewRecover | IReq_ControllerBrowserViewClose | IReq_ControllerBrowserDevToolsOpen | IReq_ControllerBrowserDevToolsClose | IReq_ControllerBrowserPaintOpen | IReq_ControllerBrowserPaintClose | IReq_ControllerBrowserAudioOpen | IReq_ControllerBrowserAudioClose | IReq_ControllerBrowserPaintRearm | IReq_ControllerBrowserAssetsGet | IReq_ControllerBrowserPaintVideoRouteOpen | IReq_ControllerTerminalList | IReq_ControllerTerminalCreate | IReq_ControllerTerminalRename | IReq_ControllerTerminalRemove | IReq_ControllerTerminalAttach | IReq_ControllerTerminalDetach | IReq_ControllerTerminalInput | IReq_ControllerTerminalResize | IReq_ControllerWorkspaceList | IReq_ControllerWorkspaceStat | IReq_ControllerWorkspaceRead | IReq_ControllerWorkspaceWrite | IReq_ControllerWorkspaceMkdir | IReq_ControllerWorkspaceRemove | IReq_ControllerWorkspaceRename | IReq_ControllerWorkspaceCopy | IReq_ControllerWorkspaceWatch | IReq_ControllerWorkspaceUnwatch | IReq_ControllerWorkspaceBaseSet | IReq_ControllerTerminalOutput | IReq_ControllerTerminalDetached | IReq_ControllerWorkspaceChanged | IReq_ControllerAccountsSnapshot | IReq_ControllerAccountsRename | IReq_ControllerAccountsMaxUsage | IReq_ControllerAccountsReserveLift | IReq_ControllerAccountsApiKeyAdd | IReq_ControllerAccountsSpendLimit | IReq_ControllerAccountsClaudeCode | IReq_ControllerAccountsRemove | IReq_ControllerAccountsAdd | IReq_ControllerAccountsReauth | IReq_ControllerAccountsOperationGet | IReq_ControllerAccountsOperationCancel | IReq_ControllerAccountsUsageGet | IReq_ControllerAccountsUsageRecheck | IReq_ControllerAccountsPreuseStart | IReq_ControllerAccountsPreuseGet | IReq_ControllerAccountsPreuseCancel | IReq_ControllerAccountsDoctorGet | IReq_ControllerAccountsClaudeSignInStart | IReq_ControllerAccountsClaudeSignInGet | IReq_ControllerAccountsClaudeSignInCancel | IReq_ControllerAccountsClaudeHostGet | IReq_ControllerAccountsClaudeRelease | IReq_ControllerAccountsClaudeReleaseGet | IReq_ControllerAccountsClaudeRepair | IReq_ControllerCodexAccountUse | IReq_ControllerAccountsCodexRelease | IReq_ControllerAccountsCodexAdopt | IReq_ControllerDevicesList | IReq_ControllerDevicesPairingBegin | IReq_ControllerDevicesPairingCancel | IReq_ControllerDevicesRevoke | import('./requests.tickets.js').TControllerTicketTypedRequest | IReq_ControllerEvent | IReq_ControllerSessionChildEvent;
46
+ export type TControllerRequest = IReq_ControllerConfigurationResourceGet | IReq_ControllerConfigurationStateGet | IReq_ControllerConfigurationSummaryGet | IReq_ControllerConfigurationMasterGet | IReq_ControllerConfigurationMasterSave | IReq_ControllerConfigurationProject | IReq_ControllerConfigurationReview | IReq_ControllerConfigurationApply | IReq_ControllerConfigurationRestoreReview | IReq_ControllerConfigurationRestore | IReq_ControllerConfigurationTargetBind | IReq_ControllerConfigurationOperationRetry | IReq_ControllerConfigurationOperationRecover | IReq_ControllerConfigurationOperationAbandon | IReq_ControllerConfigurationOwnerIssue | IReq_ControllerConfigurationOwnerRevoke | IReq_ControllerStatus | IReq_ControllerProxyStatusGet | IReq_ControllerOpenCodeRestart | IReq_ControllerRestart | IReq_ControllerDriverGet | IReq_ControllerDriverEnsure | IReq_ControllerDriverSeen | IReq_ControllerFleetWorkerList | IReq_ControllerFleetWorkerRead | IReq_ControllerFleetWorkerSteer | IReq_ControllerDirectReportList | IReq_ControllerDirectReportMessage | IReq_ControllerDirectReportRead | IReq_ControllerDirectReportPreflight | IReq_ControllerDirectReportAppoint | IReq_ControllerDirectReportAdopt | IReq_ControllerSessionFeedList | IReq_ControllerSessionFeedAcknowledge | TControllerDeployTypedRequest | IReq_ControllerNativeSessionRead | IReq_ControllerNativeSessionAuxiliaryGet | IReq_ControllerNativeSessionSend | IReq_ControllerNativeSessionScratchpadSave | IReq_ControllerNativeSessionIntelligenceAsk | IReq_ControllerNativeSessionPermissionReply | IReq_ControllerNativeSessionQuestionReply | IReq_ControllerNativeSessionElicitationReply | IReq_ControllerUsageWatch | IReq_ControllerUsageUnwatch | IReq_ControllerSystemMetrics | IReq_ControllerSystemMetricsHistory | IReq_ControllerFailureDetailGet | IReq_ControllerAuthState | IReq_ControllerSetupBegin | IReq_ControllerSetupFinish | IReq_ControllerAuthenticationBegin | IReq_ControllerAuthenticationFinish | IReq_ControllerTempPasswordLogin | IReq_ControllerAuthResume | IReq_ControllerAuthHandoff | IReq_ControllerAuthSignout | IReq_ControllerProjectList | IReq_ControllerProjectCreate | IReq_ControllerProjectRemove | IReq_ControllerProjectRemovalRetry | IReq_ControllerProjectAgentMessagesUpdate | IReq_ControllerProjectSuggest | IReq_ControllerProviderConnectionList | IReq_ControllerProviderModelRefreshBegin | IReq_ControllerProviderModelRefreshGet | IReq_ControllerSlashList | IReq_ControllerSlashExecute | IReq_ControllerModelList | IReq_ControllerSettingsGet | IReq_ControllerSettingsUpdate | IReq_ControllerConversationList | IReq_ControllerConversationSearch | IReq_ControllerConversationOpen | IReq_ControllerConversationArchive | IReq_ControllerConversationReopen | IReq_ControllerSessionGet | IReq_ControllerSessionChildGet | IReq_ControllerSessionChildStatusGet | IReq_ControllerFlexChildGet | IReq_ControllerCodexChildGet | IReq_ControllerSessionChildMessagesPage | IReq_ControllerSessionChildMessageGet | IReq_ControllerSessionChildPermissionReply | IReq_ControllerSessionChildQuestionReply | IReq_ControllerSessionAuxiliaryGet | IReq_ControllerSessionModelUpdate | IReq_ControllerSessionScratchpadSave | IReq_ControllerSessionIntelligenceAsk | IReq_ControllerSessionMessagesPage | IReq_ControllerSessionMessageGet | IReq_ControllerSessionCreate | IReq_ControllerSessionDelete | IReq_ControllerSessionDiscardEmpty | IReq_ControllerSessionDraftGet | IReq_ControllerSessionDraftUpdate | IReq_ControllerSessionSend | import('./codex.js').IReq_ControllerCodexRestart | import('./codex.js').IReq_ControllerCodexWriterUpdate | import('./codex.js').IReq_ControllerCodexModeUpdate | import('./codex.js').IReq_ControllerCodexProfilesList | import('./codex.js').IReq_ControllerCodexAccountProfile | import('./codex.js').IReq_ControllerCodexProfileCreate | import('./codex.js').IReq_ControllerCodexProfileUpdate | import('./codex.js').IReq_ControllerCodexProfileTest | import('./codex.js').IReq_ControllerCodexMappingUpdate | import('./codex.js').IReq_ControllerCodexThreadsList | import('./codex.js').IReq_ControllerCodexThreadEnroll | IReq_ControllerSessionAbort | IReq_ControllerSessionHarnessRestart | IReq_ControllerSessionCompactionUpdate | IReq_ControllerSessionLimitResumeUpdate | IReq_ControllerSessionPromptQueueRelease | IReq_ControllerSessionHeldPromptRelease | IReq_ControllerSessionPendingPromptAction | IReq_ControllerPermissionReply | IReq_ControllerQuestionReply | IReq_ControllerElicitationReply | IReq_ControllerSessionRename | IReq_ControllerSessionArchive | IReq_ControllerSessionGroupsGet | IReq_ControllerSessionGroupsUpdate | IReq_ControllerSessionYolo | IReq_ControllerResourceList | IReq_ControllerResourceCreate | IReq_ControllerResourceRename | IReq_ControllerResourceAttach | IReq_ControllerResourceDetach | IReq_ControllerResourceRetire | IReq_ControllerResourceStart | IReq_ControllerResourceStop | IReq_ControllerBrowserViewOpen | IReq_ControllerBrowserViewActivate | IReq_ControllerBrowserViewRecover | IReq_ControllerBrowserViewClose | IReq_ControllerBrowserDevToolsOpen | IReq_ControllerBrowserDevToolsClose | IReq_ControllerBrowserPaintOpen | IReq_ControllerBrowserPaintClose | IReq_ControllerBrowserAudioOpen | IReq_ControllerBrowserAudioClose | IReq_ControllerBrowserPaintRearm | IReq_ControllerBrowserAssetsGet | IReq_ControllerBrowserPaintVideoRouteOpen | IReq_ControllerTerminalList | IReq_ControllerTerminalCreate | IReq_ControllerTerminalRename | IReq_ControllerTerminalRemove | IReq_ControllerTerminalAttach | IReq_ControllerTerminalDetach | IReq_ControllerTerminalInput | IReq_ControllerTerminalResize | IReq_ControllerWorkspaceList | IReq_ControllerWorkspaceStat | IReq_ControllerWorkspaceRead | IReq_ControllerWorkspaceWrite | IReq_ControllerWorkspaceMkdir | IReq_ControllerWorkspaceRemove | IReq_ControllerWorkspaceRename | IReq_ControllerWorkspaceCopy | IReq_ControllerWorkspaceWatch | IReq_ControllerWorkspaceUnwatch | IReq_ControllerWorkspaceBaseSet | IReq_ControllerTerminalOutput | IReq_ControllerTerminalDetached | IReq_ControllerWorkspaceChanged | IReq_ControllerAccountsSnapshot | IReq_ControllerAccountsRename | IReq_ControllerAccountsMaxUsage | IReq_ControllerAccountsReserveLift | IReq_ControllerAccountsApiKeyAdd | IReq_ControllerAccountsSpendLimit | IReq_ControllerAccountsClaudeCode | IReq_ControllerAccountsRenewal | IReq_ControllerAccountsRemove | IReq_ControllerAccountsAdd | IReq_ControllerAccountsReauth | IReq_ControllerAccountsOperationGet | IReq_ControllerAccountsOperationCancel | IReq_ControllerAccountsUsageGet | IReq_ControllerAccountsUsageRecheck | IReq_ControllerAccountsPreuseStart | IReq_ControllerAccountsPreuseGet | IReq_ControllerAccountsPreuseCancel | IReq_ControllerAccountsDoctorGet | IReq_ControllerAccountsClaudeSignInStart | IReq_ControllerAccountsClaudeSignInGet | IReq_ControllerAccountsClaudeSignInCancel | IReq_ControllerAccountsClaudeHostGet | IReq_ControllerAccountsClaudeRelease | IReq_ControllerAccountsClaudeReleaseGet | IReq_ControllerAccountsClaudeRepair | IReq_ControllerCodexAccountUse | IReq_ControllerAccountsCodexRelease | IReq_ControllerAccountsCodexAdopt | IReq_ControllerDevicesList | IReq_ControllerDevicesPairingBegin | IReq_ControllerDevicesPairingCancel | IReq_ControllerDevicesRevoke | IReq_ControllerInboxList | import('./requests.tickets.js').TControllerTicketTypedRequest | IReq_ControllerEvent | IReq_ControllerSessionChildEvent;
@@ -18,4 +18,4 @@ export * from './requests.browser.js';
18
18
  export * from './requests.terminal.js';
19
19
  export * from './requests.workspace.js';
20
20
  export * from './requests.events.js';
21
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QUN0QyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLHFCQUFxQixDQUFDO0FBQ3BDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyxxQkFBcUIsQ0FBQztBQUNwQyxjQUFjLHdCQUF3QixDQUFDO0FBQ3ZDLGNBQWMsNkJBQTZCLENBQUM7QUFDNUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsd0JBQXdCLENBQUM7QUFDdkMsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLHNCQUFzQixDQUFDIn0=
@@ -446,11 +446,30 @@ lapses, by which the proxy places new sessions (`ts_authswitch/authority-placeme
446
446
  migration 0008 at its first start: every existing account reads back with no lapse date. This is forward-only, as the
447
447
  maximum usage is: an older service cannot read the accounts once this release's service has opened the store.
448
448
 
449
+ `account set --renews-at <date-time>` sets the anchor of a Claude sign-in's monthly renewal, at the revision `account
450
+ list` reads just before (`authswitch.authority.renewal { accountId, expectedRevision, renewsAt }`,
451
+ `AuthSwitchClient.setAccountRenewal`); `--clear-renewal` removes it. The anchor follows the lapse date's rule
452
+ (`isAuthSwitchRenewsAt`, `ts_authswitch/authority-renewal.ts`) and is stored in UTC; a past anchor is valid. Every
453
+ renewal is a calendar month from the anchor, always computed from the anchor itself: its UTC day clamped to the month's
454
+ last day, at its UTC time (`authSwitchNextRenewal`), and an anchor still ahead is itself the next one. Only an account on
455
+ a Claude sign-in has one; any other is refused as `invalid_input`, an unreadable value too, and a stale revision as
456
+ `account_changed`. The renewal is set by the owner only: nothing is derived from the profile's
457
+ `subscription_created_at` or anything else Claude states. Placement uses the next renewal as one more deadline of each
458
+ counted window -- the earliest of the window's reset, the lapse and the renewal, at least an hour -- so usage a window
459
+ would still hold at the renewal is spent first; an account with a lapse date ignores it (a canceled subscription does
460
+ not renew), and lifecycle, eligibility and pool capacity never read it. Whether a provider resets usage windows at a
461
+ renewal is not known. `account set` and `account list` print the next renewal (`renews <ISO> (set by the owner)`);
462
+ `list` and `limits` show `renews in …` (`--json`: `renewal { at, source: 'manual' }` or null on the overview and each
463
+ limit row). The account record holds `renewsAt` only while it is set; clearing it removes the member, so a record that
464
+ never had one is the record an earlier service reads. An earlier service refuses the store while any account holds a
465
+ renewal: clear every renewal (`authswitch account set <id> --clear-renewal`) before downgrading.
466
+
449
467
  A Claude account's reading states what its profile says of the subscription as facts (`summaryKey: 'subscription'`):
450
468
  `Subscription status` -- `organization.subscription_status` as received, then what it means from the one shared map
451
469
  (`authority-subscription.ts`, empty: no value is described yet, so each shows `(not described yet)`) -- and
452
470
  `Subscription created`, `organization.subscription_created_at` as received, each without control characters and
453
- within the 500-character fact bound. Nothing is derived from either: no renewal or cancellation date. `list --json`
471
+ within the 500-character fact bound. Nothing is derived from either: no renewal or cancellation date (a renewal is the
472
+ owner's to set, `--renews-at`). `list --json`
454
473
  carries them per account as `subscription [{ label, value }]`. The daemon logs each distinct status the first time it
455
474
  reads it after its start, up to 32, then one line that says further values are not logged, so the map can be filled
456
475
  from what was seen; it keeps no record of them.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agl",
3
- "version": "43.2.0",
3
+ "version": "43.3.0",
4
4
  "controllerUpgradeManagementVersion": 2,
5
5
  "controllerManagementProtocolVersion": 1,
6
6
  "controllerGatewaySourcesVersion": 1,
@@ -46,7 +46,7 @@
46
46
  "@modelprofile.com/mcp-crossharness": "5.9.0",
47
47
  "@modelprofile.com/mcp-system": "3.1.0",
48
48
  "@opencode-ai/sdk": "1.18.15",
49
- "@push.rocks/smartbrowser": "8.0.1",
49
+ "@push.rocks/smartbrowser": "8.1.0",
50
50
  "@push.rocks/smartconsole": "^2.1.0",
51
51
  "@push.rocks/smartdaemon": "2.21.0",
52
52
  "@push.rocks/smartfs": "1.9.0",
@@ -54,7 +54,7 @@
54
54
  "@push.rocks/smartserve": "^10.0.1",
55
55
  "@push.rocks/smartshell": "4.2.0",
56
56
  "@push.rocks/smartstring": "4.3.0",
57
- "@push.rocks/smartsystem": "3.1.1",
57
+ "@push.rocks/smartsystem": "4.0.2",
58
58
  "@serve.zone/interfaces": "32.75.0",
59
59
  "@simplewebauthn/browser": "13.3.0",
60
60
  "@simplewebauthn/server": "13.3.2",