agl 43.6.0 → 43.7.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 (67) hide show
  1. package/changelog.md +10 -0
  2. package/dist_serve/bundle.js +1801 -1783
  3. package/dist_serve/bundle.js.map +2 -2
  4. package/dist_ts/00_commitinfo_data.js +1 -1
  5. package/dist_ts/classes.accountsactions.d.ts +3 -1
  6. package/dist_ts/classes.accountsactions.js +17 -1
  7. package/dist_ts/classes.controller.d.ts +3 -3
  8. package/dist_ts/classes.controller.js +5 -4
  9. package/dist_ts/classes.inferencerouter.d.ts +21 -3
  10. package/dist_ts/classes.inferencerouter.js +40 -17
  11. package/dist_ts/classes.inferenceservice.js +2 -2
  12. package/dist_ts/functions.inferencecli.js +2 -1
  13. package/dist_ts/interfaces.auth.d.ts +1 -1
  14. package/dist_ts/interfaces.auth.js +2 -1
  15. package/dist_ts/plugins.d.ts +2 -1
  16. package/dist_ts/plugins.js +4 -2
  17. package/dist_ts_authswitch/authority-contract.d.ts +26 -0
  18. package/dist_ts_authswitch/authority-contract.js +1 -1
  19. package/dist_ts_authswitch/authority-overview.d.ts +8 -0
  20. package/dist_ts_authswitch/authority-overview.js +10 -4
  21. package/dist_ts_authswitch/authority-placement.d.ts +16 -9
  22. package/dist_ts_authswitch/authority-placement.js +10 -7
  23. package/dist_ts_authswitch/authority-priority.d.ts +20 -0
  24. package/dist_ts_authswitch/authority-priority.js +21 -0
  25. package/dist_ts_authswitch/classes.authoritybroker.d.ts +7 -0
  26. package/dist_ts_authswitch/classes.authoritybroker.js +26 -2
  27. package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
  28. package/dist_ts_authswitch/classes.authoritycli.js +43 -3
  29. package/dist_ts_authswitch/classes.authorityclient.d.ts +6 -1
  30. package/dist_ts_authswitch/classes.authorityclient.js +12 -4
  31. package/dist_ts_authswitch/classes.authoritydaemon.js +7 -1
  32. package/dist_ts_authswitch/classes.authoritydatabase.d.ts +6 -0
  33. package/dist_ts_authswitch/classes.authoritydatabase.js +13 -2
  34. package/dist_ts_authswitch/classes.authoritymodels.d.ts +7 -0
  35. package/dist_ts_authswitch/classes.authoritymodels.js +17 -8
  36. package/dist_ts_interfaces/requests.accounts.d.ts +19 -0
  37. package/dist_ts_interfaces/requests.accounts.js +1 -1
  38. package/dist_ts_interfaces/requests.d.ts +2 -2
  39. package/dist_ts_interfaces/requests.js +1 -1
  40. package/docs/authswitch.md +25 -0
  41. package/package.json +1 -1
  42. package/readme.md +29 -5
  43. package/ts/00_commitinfo_data.ts +1 -1
  44. package/ts/classes.accountsactions.ts +25 -0
  45. package/ts/classes.controller.ts +4 -3
  46. package/ts/classes.inferencerouter.ts +61 -16
  47. package/ts/classes.inferenceservice.ts +1 -1
  48. package/ts/functions.inferencecli.ts +1 -0
  49. package/ts/interfaces.auth.ts +1 -0
  50. package/ts/plugins.ts +3 -0
  51. package/ts_authswitch/authority-contract.ts +21 -0
  52. package/ts_authswitch/authority-overview.ts +19 -5
  53. package/ts_authswitch/authority-placement.ts +18 -10
  54. package/ts_authswitch/authority-priority.ts +25 -0
  55. package/ts_authswitch/classes.authoritybroker.ts +26 -1
  56. package/ts_authswitch/classes.authoritycli.ts +48 -2
  57. package/ts_authswitch/classes.authorityclient.ts +14 -4
  58. package/ts_authswitch/classes.authoritydaemon.ts +8 -1
  59. package/ts_authswitch/classes.authoritydatabase.ts +11 -1
  60. package/ts_authswitch/classes.authoritymodels.ts +17 -6
  61. package/ts_authswitch/readme.md +1 -1
  62. package/ts_interfaces/requests.accounts.ts +17 -0
  63. package/ts_interfaces/requests.ts +2 -0
  64. package/ts_web/00_commitinfo_data.ts +1 -1
  65. package/ts_web/accounts.plugins.ts +4 -2
  66. package/ts_web/classes.accountsreadmodel.ts +36 -2
  67. package/ts_web/elements.accounts.ts +48 -0
package/changelog.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026-11-13 - 43.7.0
4
+
5
+ ### Features
6
+
7
+ - Give any account priority for 24 hours, to be used up before anything else (AGL-1809): `authswitch account set <account-id> --priority|--clear-priority [--json]` (`authswitch.authority.priority`, at the revision read) and **Give priority**, **Restart 24 hours** and **Turn off** on the account's page in Settings → Accounts (`controller.accounts.priority`, audited `accounts.priority` with no details, which 41.1.0 and later read as an unknown type). The accounts service sets the end, its clock plus 24 hours, and keeps it on the account as `priorityUntil`; giving it again restarts the 24 hours, and it ends by itself, as every reader judges it against its own clock. Several accounts can have it, of any kind.
8
+ - While it holds, the inference proxy places a new session on a priority account before any account of its pool without priority, of any credential tier, as long as one takes the request: one at its limit or reserve (a priority lifts no maximum usage), resting after a provider 429 (also one model's rest, AGL-1797), lapsed or without the model is passed over. Among several the existing placement order decides; priority ranks above the renewal preference (AGL-1644). Flex's default account for a new conversation follows the same order.
9
+ - Running sessions stay where they are: priority moves no session to an account, and its end moves no session between accounts, except that a session on an API key returns to a sign-in of the better tier at its first request once the key's priority ended, as a session on any key does. While the key holds priority, it returns only to a sign-in that has priority too.
10
+ - Shown while it holds: the account's row (`priority until 14:05`, `tomorrow 14:05` on the next day, in the browser's time) and its page beside its actions; `authswitch list`, `limits` and `account list`; `agl proxy status` (`--json`: `priorityUntil` per account, null without one). `agl proxy capacity` is unchanged: its member answer is checked for exact keys by earlier readers.
11
+ - The account record holds `priorityUntil` only while it is set: ending it removes it, and so does the account's first write after its end or its removal. Downgrade: an older accounts service refuses the store while any account record holds a priority; run `authswitch account set <id> --clear-priority` on every account before downgrading: a priority that ran out is listed nowhere, yet its record keeps it until the account's next change. A controller or proxy of this release names an older accounts service outdated (`AuthSwitchDaemonOutdatedError`), as for every account member added before.
12
+
3
13
  ## 2026-11-13 - 43.6.0
4
14
 
5
15
  ### Features