@cortexkit/opencode-antigravity-auth 3.0.11 → 3.0.13

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 (253) hide show
  1. package/dist/cli.js +5120 -2863
  2. package/dist/cli.js.map +4 -4
  3. package/dist/cli.meta.json +581 -211
  4. package/dist/index.js +4806 -2343
  5. package/dist/index.js.map +4 -4
  6. package/dist/index.meta.json +618 -244
  7. package/dist/server.js +14300 -11649
  8. package/dist/server.js.map +4 -4
  9. package/dist/server.meta.json +1 -1
  10. package/dist/src/cli.d.ts +15 -0
  11. package/dist/src/cli.d.ts.map +1 -1
  12. package/dist/src/cli.js +27 -1
  13. package/dist/src/cli.js.map +1 -1
  14. package/dist/src/common-auth-embedded/claustrum/consumer.d.ts +83 -2
  15. package/dist/src/common-auth-embedded/claustrum/consumer.js +337 -37
  16. package/dist/src/common-auth-embedded/claustrum/custody.d.ts +36 -1
  17. package/dist/src/common-auth-embedded/claustrum/custody.js +95 -11
  18. package/dist/src/common-auth-embedded/claustrum/enrollment.js +37 -12
  19. package/dist/src/common-auth-embedded/claustrum/errors.d.ts +1 -1
  20. package/dist/src/common-auth-embedded/claustrum/hub.d.ts +195 -0
  21. package/dist/src/common-auth-embedded/claustrum/hub.js +988 -0
  22. package/dist/src/common-auth-embedded/claustrum/index.d.ts +13 -3
  23. package/dist/src/common-auth-embedded/claustrum/index.js +37 -4
  24. package/dist/src/common-auth-embedded/claustrum/quota-writer.d.ts +8 -1
  25. package/dist/src/common-auth-embedded/claustrum/quota-writer.js +38 -66
  26. package/dist/src/common-auth-embedded/claustrum/roster.d.ts +80 -1
  27. package/dist/src/common-auth-embedded/claustrum/roster.js +259 -12
  28. package/dist/src/common-auth-embedded/claustrum/shutdown.js +42 -0
  29. package/dist/src/common-auth-embedded/commands/builtins.d.ts +37 -0
  30. package/dist/src/common-auth-embedded/commands/builtins.js +95 -13
  31. package/dist/src/common-auth-embedded/commands/index.d.ts +1 -1
  32. package/dist/src/common-auth-embedded/fs/file-read-cache.js +57 -0
  33. package/dist/src/common-auth-embedded/fs/refresh-file-lock.d.ts +1 -1
  34. package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +20 -11
  35. package/dist/src/common-auth-embedded/opencode2/errors.d.ts +4 -1
  36. package/dist/src/common-auth-embedded/opencode2/index.d.ts +2 -2
  37. package/dist/src/common-auth-embedded/opencode2/index.js +1 -1
  38. package/dist/src/common-auth-embedded/opencode2/install.d.ts +10 -7
  39. package/dist/src/common-auth-embedded/opencode2/install.js +318 -71
  40. package/dist/src/common-auth-embedded/opencode2/types.d.ts +78 -9
  41. package/dist/src/common-auth-embedded/quota/commit-interval.d.ts +9 -0
  42. package/dist/src/common-auth-embedded/quota/commit-interval.js +18 -0
  43. package/dist/src/common-auth-embedded/quota/pending.js +48 -0
  44. package/dist/src/common-auth-embedded/rpc/rpc-server.js +29 -19
  45. package/dist/src/common-auth-embedded/setup/command.js +52 -14
  46. package/dist/src/common-auth-embedded/setup/enroll.d.ts +1 -1
  47. package/dist/src/common-auth-embedded/setup/enroll.js +1 -1
  48. package/dist/src/common-auth-embedded/setup/register.d.ts +2 -0
  49. package/dist/src/common-auth-embedded/setup/register.js +90 -11
  50. package/dist/src/common-auth-embedded/source-output.json +188 -124
  51. package/dist/src/common-auth-embedded/store/attribution.d.ts +5 -0
  52. package/dist/src/common-auth-embedded/store/attribution.js +39 -25
  53. package/dist/src/common-auth-embedded/store/mutate.d.ts +2 -0
  54. package/dist/src/common-auth-embedded/store/mutate.js +4 -0
  55. package/dist/src/common-auth-embedded/store/pool.d.ts +22 -0
  56. package/dist/src/common-auth-embedded/store/pool.js +18 -3
  57. package/dist/src/common-auth-embedded/store/pull.js +3 -1
  58. package/dist/src/common-auth-embedded/store/quota-writer.js +312 -0
  59. package/dist/src/common-auth-embedded/store/runtime.d.ts +2 -0
  60. package/dist/src/common-auth-embedded/store/settings.d.ts +1 -1
  61. package/dist/src/common-auth-embedded/store/settings.js +16 -6
  62. package/dist/src/ga/rpc/protocol.d.ts +2 -0
  63. package/dist/src/ga/rpc/protocol.d.ts.map +1 -1
  64. package/dist/src/ga/rpc/protocol.js +2 -2
  65. package/dist/src/ga/rpc/protocol.js.map +1 -1
  66. package/dist/src/ga/server/index.d.ts.map +1 -1
  67. package/dist/src/ga/server/index.js +11 -0
  68. package/dist/src/ga/server/index.js.map +1 -1
  69. package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
  70. package/dist/src/ga/tui/host-ga.js +2 -1
  71. package/dist/src/ga/tui/host-ga.js.map +1 -1
  72. package/dist/src/plugin/background-vault-quota-refresh.d.ts +10 -0
  73. package/dist/src/plugin/background-vault-quota-refresh.d.ts.map +1 -1
  74. package/dist/src/plugin/background-vault-quota-refresh.js +33 -5
  75. package/dist/src/plugin/background-vault-quota-refresh.js.map +1 -1
  76. package/dist/src/plugin/command-data.d.ts +2 -2
  77. package/dist/src/plugin/command-data.d.ts.map +1 -1
  78. package/dist/src/plugin/command-data.js +2 -0
  79. package/dist/src/plugin/command-data.js.map +1 -1
  80. package/dist/src/plugin/config/operator-settings-schema.d.ts +1 -1
  81. package/dist/src/plugin/config/schema.d.ts +1 -1
  82. package/dist/src/plugin/ga-location-services.d.ts +28 -2
  83. package/dist/src/plugin/ga-location-services.d.ts.map +1 -1
  84. package/dist/src/plugin/ga-location-services.js +80 -16
  85. package/dist/src/plugin/ga-location-services.js.map +1 -1
  86. package/dist/src/plugin/ga-shared-vault-custody.d.ts +64 -0
  87. package/dist/src/plugin/ga-shared-vault-custody.d.ts.map +1 -0
  88. package/dist/src/plugin/ga-shared-vault-custody.js +169 -0
  89. package/dist/src/plugin/ga-shared-vault-custody.js.map +1 -0
  90. package/dist/src/plugin/index.d.ts.map +1 -1
  91. package/dist/src/plugin/index.js +11 -1
  92. package/dist/src/plugin/index.js.map +1 -1
  93. package/dist/src/plugin/killswitch.d.ts.map +1 -1
  94. package/dist/src/plugin/killswitch.js +13 -7
  95. package/dist/src/plugin/killswitch.js.map +1 -1
  96. package/dist/src/plugin/oauth-methods.d.ts.map +1 -1
  97. package/dist/src/plugin/oauth-methods.js +3 -0
  98. package/dist/src/plugin/oauth-methods.js.map +1 -1
  99. package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
  100. package/dist/src/plugin/shared/request-services.js +3 -3
  101. package/dist/src/plugin/shared/request-services.js.map +1 -1
  102. package/dist/src/plugin/shared/vault-request-credentials.d.ts +8 -1
  103. package/dist/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
  104. package/dist/src/plugin/shared/vault-request-credentials.js +38 -5
  105. package/dist/src/plugin/shared/vault-request-credentials.js.map +1 -1
  106. package/dist/src/plugin/ui/auth-menu.d.ts.map +1 -1
  107. package/dist/src/plugin/ui/auth-menu.js +3 -0
  108. package/dist/src/plugin/ui/auth-menu.js.map +1 -1
  109. package/dist/src/plugin/ui/quota-status.d.ts.map +1 -1
  110. package/dist/src/plugin/ui/quota-status.js +4 -2
  111. package/dist/src/plugin/ui/quota-status.js.map +1 -1
  112. package/dist/src/plugin/vault-custody.d.ts +28 -7
  113. package/dist/src/plugin/vault-custody.d.ts.map +1 -1
  114. package/dist/src/plugin/vault-custody.js +200 -37
  115. package/dist/src/plugin/vault-custody.js.map +1 -1
  116. package/dist/src/plugin/vault-insula-quota.d.ts.map +1 -1
  117. package/dist/src/plugin/vault-insula-quota.js +4 -0
  118. package/dist/src/plugin/vault-insula-quota.js.map +1 -1
  119. package/dist/src/plugin/vault-sidebar-projection.d.ts.map +1 -1
  120. package/dist/src/process-heartbeat.d.ts +76 -0
  121. package/dist/src/process-heartbeat.d.ts.map +1 -0
  122. package/dist/src/process-heartbeat.js +248 -0
  123. package/dist/src/process-heartbeat.js.map +1 -0
  124. package/dist/src/setup.d.ts.map +1 -1
  125. package/dist/src/setup.js +3 -0
  126. package/dist/src/setup.js.map +1 -1
  127. package/dist/src/sidebar-projection.d.ts +3 -1
  128. package/dist/src/sidebar-projection.d.ts.map +1 -1
  129. package/dist/src/sidebar-projection.js +10 -1
  130. package/dist/src/sidebar-projection.js.map +1 -1
  131. package/dist/src/sidebar-state.d.ts +10 -1
  132. package/dist/src/sidebar-state.d.ts.map +1 -1
  133. package/dist/src/sidebar-state.js +12 -2
  134. package/dist/src/sidebar-state.js.map +1 -1
  135. package/dist/src/tui/quota-layout.d.ts +3 -1
  136. package/dist/src/tui/quota-layout.d.ts.map +1 -1
  137. package/dist/src/tui/quota-layout.js +6 -1
  138. package/dist/src/tui/quota-layout.js.map +1 -1
  139. package/dist/tui-build-map.json +9 -9
  140. package/dist/tui-ga-build-map.json +13 -13
  141. package/dist/types/src/cli.d.ts +15 -0
  142. package/dist/types/src/cli.d.ts.map +1 -1
  143. package/dist/types/src/common-auth-embedded/claustrum/consumer.d.ts +83 -2
  144. package/dist/types/src/common-auth-embedded/claustrum/custody.d.ts +36 -1
  145. package/dist/types/src/common-auth-embedded/claustrum/errors.d.ts +1 -1
  146. package/dist/types/src/common-auth-embedded/claustrum/hub.d.ts +195 -0
  147. package/dist/types/src/common-auth-embedded/claustrum/index.d.ts +13 -3
  148. package/dist/types/src/common-auth-embedded/claustrum/quota-writer.d.ts +8 -1
  149. package/dist/types/src/common-auth-embedded/claustrum/roster.d.ts +80 -1
  150. package/dist/types/src/common-auth-embedded/commands/builtins.d.ts +37 -0
  151. package/dist/types/src/common-auth-embedded/commands/index.d.ts +1 -1
  152. package/dist/types/src/common-auth-embedded/fs/refresh-file-lock.d.ts +1 -1
  153. package/dist/types/src/common-auth-embedded/opencode2/errors.d.ts +4 -1
  154. package/dist/types/src/common-auth-embedded/opencode2/index.d.ts +2 -2
  155. package/dist/types/src/common-auth-embedded/opencode2/install.d.ts +10 -7
  156. package/dist/types/src/common-auth-embedded/opencode2/types.d.ts +78 -9
  157. package/dist/types/src/common-auth-embedded/quota/commit-interval.d.ts +9 -0
  158. package/dist/types/src/common-auth-embedded/setup/enroll.d.ts +1 -1
  159. package/dist/types/src/common-auth-embedded/setup/register.d.ts +2 -0
  160. package/dist/types/src/common-auth-embedded/store/attribution.d.ts +5 -0
  161. package/dist/types/src/common-auth-embedded/store/mutate.d.ts +2 -0
  162. package/dist/types/src/common-auth-embedded/store/pool.d.ts +22 -0
  163. package/dist/types/src/common-auth-embedded/store/runtime.d.ts +2 -0
  164. package/dist/types/src/common-auth-embedded/store/settings.d.ts +1 -1
  165. package/dist/types/src/ga/rpc/protocol.d.ts +2 -0
  166. package/dist/types/src/ga/rpc/protocol.d.ts.map +1 -1
  167. package/dist/types/src/ga/server/index.d.ts.map +1 -1
  168. package/dist/types/src/plugin/background-vault-quota-refresh.d.ts +10 -0
  169. package/dist/types/src/plugin/background-vault-quota-refresh.d.ts.map +1 -1
  170. package/dist/types/src/plugin/command-data.d.ts +2 -2
  171. package/dist/types/src/plugin/command-data.d.ts.map +1 -1
  172. package/dist/types/src/plugin/ga-location-services.d.ts +28 -2
  173. package/dist/types/src/plugin/ga-location-services.d.ts.map +1 -1
  174. package/dist/types/src/plugin/ga-shared-vault-custody.d.ts +64 -0
  175. package/dist/types/src/plugin/ga-shared-vault-custody.d.ts.map +1 -0
  176. package/dist/types/src/plugin/index.d.ts.map +1 -1
  177. package/dist/types/src/plugin/killswitch.d.ts.map +1 -1
  178. package/dist/types/src/plugin/oauth-methods.d.ts.map +1 -1
  179. package/dist/types/src/plugin/shared/request-services.d.ts.map +1 -1
  180. package/dist/types/src/plugin/shared/vault-request-credentials.d.ts +8 -1
  181. package/dist/types/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
  182. package/dist/types/src/plugin/ui/auth-menu.d.ts.map +1 -1
  183. package/dist/types/src/plugin/ui/quota-status.d.ts.map +1 -1
  184. package/dist/types/src/plugin/vault-custody.d.ts +28 -7
  185. package/dist/types/src/plugin/vault-custody.d.ts.map +1 -1
  186. package/dist/types/src/plugin/vault-insula-quota.d.ts.map +1 -1
  187. package/dist/types/src/plugin/vault-sidebar-projection.d.ts.map +1 -1
  188. package/dist/types/src/process-heartbeat.d.ts +76 -0
  189. package/dist/types/src/process-heartbeat.d.ts.map +1 -0
  190. package/dist/types/src/setup.d.ts.map +1 -1
  191. package/dist/types/src/sidebar-state.d.ts +10 -1
  192. package/dist/types/src/sidebar-state.d.ts.map +1 -1
  193. package/package.json +2 -2
  194. package/src/common-auth-embedded/claustrum/consumer.d.ts +83 -2
  195. package/src/common-auth-embedded/claustrum/consumer.js +337 -37
  196. package/src/common-auth-embedded/claustrum/custody.d.ts +36 -1
  197. package/src/common-auth-embedded/claustrum/custody.js +95 -11
  198. package/src/common-auth-embedded/claustrum/enrollment.js +37 -12
  199. package/src/common-auth-embedded/claustrum/errors.d.ts +1 -1
  200. package/src/common-auth-embedded/claustrum/hub.d.ts +195 -0
  201. package/src/common-auth-embedded/claustrum/hub.js +988 -0
  202. package/src/common-auth-embedded/claustrum/index.d.ts +13 -3
  203. package/src/common-auth-embedded/claustrum/index.js +37 -4
  204. package/src/common-auth-embedded/claustrum/quota-writer.d.ts +8 -1
  205. package/src/common-auth-embedded/claustrum/quota-writer.js +38 -66
  206. package/src/common-auth-embedded/claustrum/roster.d.ts +80 -1
  207. package/src/common-auth-embedded/claustrum/roster.js +259 -12
  208. package/src/common-auth-embedded/claustrum/shutdown.js +42 -0
  209. package/src/common-auth-embedded/commands/builtins.d.ts +37 -0
  210. package/src/common-auth-embedded/commands/builtins.js +95 -13
  211. package/src/common-auth-embedded/commands/index.d.ts +1 -1
  212. package/src/common-auth-embedded/fs/file-read-cache.js +57 -0
  213. package/src/common-auth-embedded/fs/refresh-file-lock.d.ts +1 -1
  214. package/src/common-auth-embedded/fs/refresh-file-lock.js +20 -11
  215. package/src/common-auth-embedded/opencode2/errors.d.ts +4 -1
  216. package/src/common-auth-embedded/opencode2/index.d.ts +2 -2
  217. package/src/common-auth-embedded/opencode2/index.js +1 -1
  218. package/src/common-auth-embedded/opencode2/install.d.ts +10 -7
  219. package/src/common-auth-embedded/opencode2/install.js +318 -71
  220. package/src/common-auth-embedded/opencode2/types.d.ts +78 -9
  221. package/src/common-auth-embedded/quota/commit-interval.d.ts +9 -0
  222. package/src/common-auth-embedded/quota/commit-interval.js +18 -0
  223. package/src/common-auth-embedded/quota/pending.js +48 -0
  224. package/src/common-auth-embedded/rpc/rpc-server.js +29 -19
  225. package/src/common-auth-embedded/setup/command.js +52 -14
  226. package/src/common-auth-embedded/setup/enroll.d.ts +1 -1
  227. package/src/common-auth-embedded/setup/enroll.js +1 -1
  228. package/src/common-auth-embedded/setup/register.d.ts +2 -0
  229. package/src/common-auth-embedded/setup/register.js +90 -11
  230. package/src/common-auth-embedded/source-output.json +188 -124
  231. package/src/common-auth-embedded/store/attribution.d.ts +5 -0
  232. package/src/common-auth-embedded/store/attribution.js +39 -25
  233. package/src/common-auth-embedded/store/mutate.d.ts +2 -0
  234. package/src/common-auth-embedded/store/mutate.js +4 -0
  235. package/src/common-auth-embedded/store/pool.d.ts +22 -0
  236. package/src/common-auth-embedded/store/pool.js +18 -3
  237. package/src/common-auth-embedded/store/pull.js +3 -1
  238. package/src/common-auth-embedded/store/quota-writer.js +312 -0
  239. package/src/common-auth-embedded/store/runtime.d.ts +2 -0
  240. package/src/common-auth-embedded/store/settings.d.ts +1 -1
  241. package/src/common-auth-embedded/store/settings.js +16 -6
  242. package/src/plugin/command-data.ts +4 -2
  243. package/src/sidebar-state.ts +23 -3
  244. package/src/tui-compiled/sidebar-state.js +4 -3
  245. package/src/tui-compiled/tui/quota-layout.js +3 -2
  246. package/src/tui-ga-compiled/host-ga.js +2 -1
  247. package/src/tui-ga-compiled/shared/8ae1927e5910ea81-sidebar-projection.js +9 -2
  248. package/src/tui-ga-compiled/shared/dd4c9e1a907f8ef0-quota-layout.js +3 -2
  249. package/src/tui-ga-raw/host-ga.tsx +12 -1
  250. package/src/tui-ga-raw/shared/8ae1927e5910ea81-sidebar-projection.js +9 -2
  251. package/src/tui-ga-raw/shared/dd4c9e1a907f8ef0-quota-layout.tsx +9 -2
  252. package/src/tui-raw/sidebar-state.js +4 -3
  253. package/src/tui-raw/tui/quota-layout.tsx +9 -2
@@ -38,7 +38,7 @@ export interface QuotaAppearance {
38
38
  * has no preferences file. A test keeps it equal to `DEFAULT_PREFS.appearance`.
39
39
  */
40
40
  export declare const DEFAULT_QUOTA_APPEARANCE: QuotaAppearance;
41
- export type QuotaGroupKey = 'gemini' | 'non-gemini';
41
+ export type QuotaGroupKey = 'gemini' | 'non-gemini' | 'gemini-argon';
42
42
  export interface QuotaLayoutWindow {
43
43
  readonly window: 'weekly' | '5h';
44
44
  readonly remainingPercent: number;
@@ -57,6 +57,8 @@ export interface QuotaLayoutAccount {
57
57
  readonly quota: {
58
58
  readonly gemini?: QuotaLayoutEntry;
59
59
  readonly 'non-gemini'?: QuotaLayoutEntry;
60
+ /** Present only on accounts whose reading reports the Argon pool. */
61
+ readonly 'gemini-argon'?: QuotaLayoutEntry;
60
62
  };
61
63
  }
62
64
  export declare const GROUP_NAMES: Record<QuotaGroupKey, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"quota-layout.d.ts","sourceRoot":"","sources":["../../../src/tui/quota-layout.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAO,KAAK,GAAG,EAAQ,MAAM,UAAU,CAAA;AAC9C,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,eAAe,EAGrB,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE3E,0EAA0E;AAC1E,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;AAElD;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,UAAU,CAAA;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,UAAU,CAAA;IAChC,QAA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kBAAkB,CAAA;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,SAAS,CAAA;IACrB,GAAG,EAAE,MAAM,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACvB,GAAG,GAAG,CAAC,OAAO,CAyFd"}
@@ -16,8 +16,13 @@ export const DEFAULT_QUOTA_APPEARANCE = {
16
16
  export const GROUP_NAMES = {
17
17
  gemini: 'Gemini',
18
18
  'non-gemini': 'Other models',
19
+ 'gemini-argon': 'Argon',
19
20
  };
20
- export const QUOTA_ORDER = ['gemini', 'non-gemini'];
21
+ export const QUOTA_ORDER = [
22
+ 'gemini',
23
+ 'non-gemini',
24
+ 'gemini-argon',
25
+ ];
21
26
  // Shown instead of a stored figure once the window has reset since it was
22
27
  // read: the stored figure describes the window before the reset.
23
28
  export const RESET_SINCE_READING = 'reset since last check';
@@ -1 +1 @@
1
- {"version":3,"file":"quota-layout.js","sourceRoot":"","sources":["../../../src/tui/quota-layout.tsx"],"names":[],"mappings":";AAeA,OAAO,EAAE,GAAG,EAAY,IAAI,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,EACL,gBAAgB,EAGhB,eAAe,EACf,eAAe,GAChB,MAAM,uBAAuB,CAAA;AA0B9B;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAoB;IACvD,QAAQ,EAAE,EAAE;IACZ,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,GAAG;IACjB,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,EAAE;CACnB,CAAA;AA2BD,qDAAqD;AACrD,MAAM,CAAC,MAAM,WAAW,GAAkC;IACxD,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,cAAc;CAC7B,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAA6B,CAAC,QAAQ,EAAE,YAAY,CAAC,CA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KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,YAC5C,gBAAgB,GACZ,YAGT,KAAC,GAAG,IAAC,IAAI,EAAE,MAAM,EAAE,YAChB,CAAC,KAAK,EAAE,EAAE,CAAC,CACV,8BACE,eAAM,QAAQ,EAAC,MAAM,EAAC,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,YAC5C,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,GAClB,EACP,KAAC,GAAG,IAAC,IAAI,EAAE,KAAK,CAAC,OAAO,YACrB,CAAC,MAAM,EAAE,EAAE,CAAC,CACX,KAAC,SAAS,IACR,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,GACzB,CACH,GACG,IACL,CACJ,GACG,GACD,EACN,KAAK,CAAC,QAAQ,IACX,CACP,CAAA;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "compiler": "@cortexkit/common-auth/tui-build@0.24.0",
3
+ "compiler": "@cortexkit/common-auth/tui-build@0.27.1",
4
4
  "bun": "1.4.2",
5
5
  "raw": {
6
6
  "selector": "selector.js",
@@ -68,8 +68,8 @@
68
68
  {
69
69
  "source": "src/sidebar-state.ts",
70
70
  "output": "src/tui-raw/sidebar-state.js",
71
- "bytes": 16741,
72
- "sha256": "5c56611518def17861fc7c7c1fb67f705bda32e6be5ef4932d1481db12378359",
71
+ "bytes": 16859,
72
+ "sha256": "15814d60c1a7b57a87ee7ae00024513699cbb7f1c3bb1762bf55278c7d94f859",
73
73
  "transform": "public-raw"
74
74
  },
75
75
  {
@@ -180,8 +180,8 @@
180
180
  {
181
181
  "source": "src/tui/quota-layout.tsx",
182
182
  "output": "src/tui-raw/tui/quota-layout.tsx",
183
- "bytes": 12435,
184
- "sha256": "55e8e69249c5a86f525d8b8fe94535af38e7f8725bb41ab464b0599496644eb0",
183
+ "bytes": 12625,
184
+ "sha256": "a25f6354143a00c3408f78833e50b6786949fe3c375bd9501bc34f43d4f5acea",
185
185
  "transform": "public-raw"
186
186
  },
187
187
  {
@@ -276,8 +276,8 @@
276
276
  {
277
277
  "source": "src/sidebar-state.ts",
278
278
  "output": "src/tui-compiled/sidebar-state.js",
279
- "bytes": 16741,
280
- "sha256": "5c56611518def17861fc7c7c1fb67f705bda32e6be5ef4932d1481db12378359",
279
+ "bytes": 16859,
280
+ "sha256": "15814d60c1a7b57a87ee7ae00024513699cbb7f1c3bb1762bf55278c7d94f859",
281
281
  "transform": "public-solid-runtime"
282
282
  },
283
283
  {
@@ -388,8 +388,8 @@
388
388
  {
389
389
  "source": "src/tui/quota-layout.tsx",
390
390
  "output": "src/tui-compiled/tui/quota-layout.js",
391
- "bytes": 14605,
392
- "sha256": "b7c1e40c1c2c1eb7926c229ca450ab1a42577dc5bb78e2483ec4a1c5f606735f",
391
+ "bytes": 14648,
392
+ "sha256": "c2a4c12f1098f912bb322d282efefb8cbfa2f1e705aec6c7b6c1ceb3cff7927e",
393
393
  "transform": "public-solid-runtime"
394
394
  },
395
395
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "compiler": "@cortexkit/common-auth/tui-build@0.24.0",
3
+ "compiler": "@cortexkit/common-auth/tui-build@0.27.1",
4
4
  "bun": "1.4.2",
5
5
  "raw": {
6
6
  "selector": "selector.js",
@@ -61,8 +61,8 @@
61
61
  {
62
62
  "source": "src/sidebar-projection.ts",
63
63
  "output": "src/tui-ga-raw/shared/8ae1927e5910ea81-sidebar-projection.js",
64
- "bytes": 3669,
65
- "sha256": "a54f74f5b037e836775bbc37fef0e272e465827c832b57900976e68dc6b52cf3",
64
+ "bytes": 3772,
65
+ "sha256": "c9aeb65eb03552ef021eb6a16b2f7aae0d5465eb3a2248b38d70ed1fb331ff4e",
66
66
  "transform": "public-raw"
67
67
  },
68
68
  {
@@ -82,8 +82,8 @@
82
82
  {
83
83
  "source": "src/tui/quota-layout.tsx",
84
84
  "output": "src/tui-ga-raw/shared/dd4c9e1a907f8ef0-quota-layout.tsx",
85
- "bytes": 12451,
86
- "sha256": "6d80b0991007d009fd9788f3c72f79166683c7326310c031d5ef0889aeaa2fe0",
85
+ "bytes": 12641,
86
+ "sha256": "52d4a3d9bc35340e9977d580f9790274a0f2df473d1eb7bef320d851bef6a3fd",
87
87
  "transform": "public-raw"
88
88
  },
89
89
  {
@@ -96,8 +96,8 @@
96
96
  {
97
97
  "source": "src/ga/tui/host-ga.tsx",
98
98
  "output": "src/tui-ga-raw/host-ga.tsx",
99
- "bytes": 56869,
100
- "sha256": "f464a410f095963ebdf8803142df10522d15cb16288cbe51919cbb570d51f33f",
99
+ "bytes": 57034,
100
+ "sha256": "34e97c37719fcf2892de1c8c0092dc06fe082bd43b21bbb354c2690e1747cd13",
101
101
  "transform": "public-raw"
102
102
  },
103
103
  {
@@ -165,8 +165,8 @@
165
165
  {
166
166
  "source": "src/sidebar-projection.ts",
167
167
  "output": "src/tui-ga-compiled/shared/8ae1927e5910ea81-sidebar-projection.js",
168
- "bytes": 3669,
169
- "sha256": "a54f74f5b037e836775bbc37fef0e272e465827c832b57900976e68dc6b52cf3",
168
+ "bytes": 3772,
169
+ "sha256": "c9aeb65eb03552ef021eb6a16b2f7aae0d5465eb3a2248b38d70ed1fb331ff4e",
170
170
  "transform": "public-solid-runtime"
171
171
  },
172
172
  {
@@ -186,8 +186,8 @@
186
186
  {
187
187
  "source": "src/tui/quota-layout.tsx",
188
188
  "output": "src/tui-ga-compiled/shared/dd4c9e1a907f8ef0-quota-layout.js",
189
- "bytes": 14621,
190
- "sha256": "a7d3c3c4b96107fad66c6d64bed713fb15526f210c3afeb752164ff31ed4e43d",
189
+ "bytes": 14664,
190
+ "sha256": "0a8b50e7dc861b8d3cef393b1f226a3fd360c7e1276277dc090c9fbd8da18677",
191
191
  "transform": "public-solid-runtime"
192
192
  },
193
193
  {
@@ -200,8 +200,8 @@
200
200
  {
201
201
  "source": "src/ga/tui/host-ga.tsx",
202
202
  "output": "src/tui-ga-compiled/host-ga.js",
203
- "bytes": 47854,
204
- "sha256": "b15dcab49371354f03c21f474cb820f8db01c0b4aebd5a2acc49a8aed0e3d8f6",
203
+ "bytes": 47958,
204
+ "sha256": "65ada827ae4a288d234d62dca0c4c6f0386a168bd0093ba422261c1d716f7503",
205
205
  "transform": "public-solid-runtime"
206
206
  },
207
207
  {
@@ -7,6 +7,12 @@ interface WritableOutput {
7
7
  export interface CliDependencies {
8
8
  stdout: WritableOutput;
9
9
  stderr: WritableOutput;
10
+ /**
11
+ * Puts this process's heartbeat on disk once a command is about to use the
12
+ * plugin's data. `runCliProcess` supplies it; when it is absent (a caller
13
+ * driving `runCli` directly), no heartbeat is written.
14
+ */
15
+ processHeartbeat?: () => Promise<void>;
10
16
  prompt(message: string): Promise<string>;
11
17
  openBrowser(url: string): Promise<void>;
12
18
  isHeadless?(): boolean;
@@ -51,6 +57,15 @@ export type CliAccountsRead = {
51
57
  reason: string;
52
58
  };
53
59
  export declare function runCli(argv: string[], deps: CliDependencies): Promise<number>;
60
+ /**
61
+ * Run one CLI command as this process's whole run. Commands put the
62
+ * heartbeat on disk through `processHeartbeat` only once they are about to use
63
+ * the plugin's data: never for help, a rejected command line, a setup preview
64
+ * or a setup that refuses before its first change, which must leave the disk
65
+ * untouched. The heartbeat is removed when the command finishes, because the
66
+ * process exits right after.
67
+ */
68
+ export declare function runCliProcess(argv: string[], deps: CliDependencies): Promise<number>;
54
69
  export declare function createDefaultCliDependencies(): CliDependencies;
55
70
  /**
56
71
  * One store row in the account shape `list` and `quota` print. Only display
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/cli.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EAEvB,KAAK,UAAU,EACf,KAAK,gBAAgB,EAQtB,MAAM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AC,uBAAuB,CAAC,CAAA;IAChE,+DAA+D;IAC/D,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAAA;CACnD;AAED;;;;GAIG;AACH,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,iBAAiB,EAAE,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,GAClB;IAAE,IAAI,EAAE,eAAe,CAAA;CAAE,GACzB;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAiN3C,wBAAsB,MAAM,CAC1B,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,CAyHjB;AAID;;;;;;;GAOG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,MAAM,CAAC,CAWjB;AAYD,wBAAgB,4BAA4B,IAAI,eAAe,CAiE9D;AAmED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,GAAG,iBAAiB,CAoC/D;AAqDD;;;;;GAKG;AACH,wBAAgB,mCAAmC,IAAI,sBAAsB,CAuB5E;AAsBD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -3,8 +3,9 @@ import type { QuotaObservation } from '../quota/index.js';
3
3
  import type { RoutingRow } from '../routing/index.js';
4
4
  import { type ClaustrumFamily, type ClaustrumScopedAttempt, type ClaustrumScopedClient, type IdentityParser, type KeptReceiptState, type VaultGrantReach } from './custody.js';
5
5
  import { type ClaustrumLogger } from './errors.js';
6
+ import type { CustodyLease } from './hub.js';
6
7
  import { type InsulaQuotaOptions, type InsulaQuotaResult } from './insula.js';
7
- import { type AccountMapper, type QuotaReceipt, type VaultRosterFile } from './roster.js';
8
+ import { type AccountMapper, type ProjectionOptions, type QuotaReceipt, type ReorderVaultRosterResult, type VaultRosterFile } from './roster.js';
8
9
  import { type WatchMode } from './watch.js';
9
10
  export interface ClaustrumConsumerOptions<Q = QuotaObservation> {
10
11
  /**
@@ -17,6 +18,14 @@ export interface ClaustrumConsumerOptions<Q = QuotaObservation> {
17
18
  tokenPath: string;
18
19
  family: ClaustrumFamily;
19
20
  connect: () => Promise<ClaustrumScopedClient>;
21
+ /**
22
+ * How long one `connect()` attempt may take before this consumer treats the
23
+ * vault as unreachable (default 10 s). A connect that never settles would
24
+ * otherwise leave every later `refresh()` waiting on the same promise. After
25
+ * the limit the waiters get an unreachable error, the next `refresh()`
26
+ * connects again, and a client that arrives late is closed.
27
+ */
28
+ connectTimeoutMs?: number;
20
29
  /**
21
30
  * Whether the plugin currently takes its accounts from the vault (custody
22
31
  * mode) rather than from local logins. Checked before every discovery,
@@ -65,6 +74,72 @@ export interface ClaustrumWatchState {
65
74
  readonly vault: WatchMode;
66
75
  readonly insula?: WatchMode;
67
76
  }
77
+ /**
78
+ * What a hub member asks of the `ClaustrumDiscoveryHub` that built it.
79
+ * Package-internal: the hub implements it, and `/claustrum` exports neither
80
+ * it nor `createHubMember`.
81
+ */
82
+ export interface HubMemberPort {
83
+ readonly provider: string;
84
+ /** The member's `start()`: make sure the hub's own driver runs. */
85
+ start(): void;
86
+ /**
87
+ * One hub refresh, coalesced across members (one list, one fan-out).
88
+ * Undefined while vault mode is off, or when the connection it ran on was
89
+ * ended before its fan-out finished. `errors` holds each member's own
90
+ * commit error; a failed list rejects instead.
91
+ */
92
+ refresh(): Promise<HubRefreshOutcome | undefined>;
93
+ /**
94
+ * The hub's authority read. The hub, not the member, decides what a false
95
+ * read means: it runs its inactive transition on the first one.
96
+ */
97
+ readAuthority(): Promise<boolean>;
98
+ acquire(signal?: AbortSignal): Promise<CustodyLease>;
99
+ /** False once a lease was released or its connection ended. */
100
+ leaseLive(lease: CustodyLease): boolean;
101
+ /** The hub's grant reach, only while `view` is the view it was read with. */
102
+ grantReach(view: string | undefined): VaultGrantReach | undefined;
103
+ watchMode(): WatchMode;
104
+ keptReceiptState(): KeptReceiptState;
105
+ /** Apply the union of every member's roster in memory to kept receipts. */
106
+ retainUnion(): void;
107
+ forget(credentialId: string): void;
108
+ /** The member closed: the hub stops committing and pushing to it. */
109
+ detach(): void;
110
+ }
111
+ export interface HubRefreshOutcome {
112
+ readonly errors: ReadonlyMap<string, unknown>;
113
+ }
114
+ /** What the hub may do to one member's memory. Package-internal. */
115
+ export interface HubMemberHooks {
116
+ /**
117
+ * Set the roster in memory as a consumer's own refresh does (pending quota
118
+ * readings included) and notify `onRoster` when its view changed.
119
+ */
120
+ install(roster: VaultRosterFile): void;
121
+ /** Vault mode went off: forget the roster. */
122
+ reset(): void;
123
+ roster(): VaultRosterFile | undefined;
124
+ projection(): ProjectionOptions;
125
+ onError(error: unknown): void;
126
+ }
127
+ /**
128
+ * How long one connect attempt may take by default. It bounds a connect that
129
+ * never settles; the client's own handshake limit is not guaranteed to cover
130
+ * every stall, and callers waiting on discovery need an answer either way.
131
+ */
132
+ export declare const DEFAULT_CONNECT_TIMEOUT_MS = 10000;
133
+ /**
134
+ * Build the consumer for one hub member. `options` holds only what the member
135
+ * uses: the hub's roster path for this member and the member's own fields.
136
+ * Hub-mode paths never read `tokenPath`, `family` or `connect`, which the hub
137
+ * owns. Package-internal: only `ClaustrumDiscoveryHub.member` calls it.
138
+ */
139
+ export declare function createHubMember<Q>(port: HubMemberPort, options: ClaustrumConsumerOptions<Q>): {
140
+ consumer: ClaustrumConsumer<Q>;
141
+ hooks: HubMemberHooks;
142
+ };
68
143
  export interface SendOptions {
69
144
  /**
70
145
  * What kind of request this is (for example `model`, `quota`, `profile`),
@@ -157,6 +232,12 @@ export declare class ClaustrumConsumer<Q = QuotaObservation> {
157
232
  /** Decline a vault account: it stays listed and never routes until accepted. */
158
233
  decline(routeId: string): Promise<void>;
159
234
  accept(routeId: string): Promise<void>;
235
+ /**
236
+ * Set the order vault accounts are tried in (`reorderVaultRoster`), then
237
+ * re-read the roster, so the next routing decision in this process uses
238
+ * the new order without waiting for a discovery. Never contacts the vault.
239
+ */
240
+ reorder(routeIds: readonly string[]): Promise<ReorderVaultRosterResult>;
160
241
  /**
161
242
  * Store a quota or profile observation for a vault route. The receipt the
162
243
  * reading was taken with is required: the observation lands only while the
@@ -173,6 +254,6 @@ export declare class ClaustrumConsumer<Q = QuotaObservation> {
173
254
  */
174
255
  recordAccountQuota(routeId: string, accountIdentity: string, observation: QuotaObservation): Promise<boolean>;
175
256
  close(): void;
176
- /** Close immediately; the last consumer also waits for the writer's bounded drain. */
257
+ /** Close immediately; background work gets 2 s and the quota writer its own 1 s. */
177
258
  dispose(): Promise<void>;
178
259
  }
@@ -22,10 +22,35 @@ export interface ClaustrumFamily {
22
22
  category: string;
23
23
  apiKeys?: boolean;
24
24
  }
25
+ /** Non-secret classification facts, including rows decoded by older clients. */
26
+ export interface VaultRowFacts {
27
+ readonly credentialId: string;
28
+ readonly credentialType: string;
29
+ readonly authMethod?: string;
30
+ readonly refreshAdapter?: string;
31
+ readonly providerIds?: readonly string[];
32
+ readonly categories: readonly string[];
33
+ }
34
+ /** A policy that partitions one category without requiring one OAuth adapter. */
35
+ export interface ClassifyingClaustrumFamily<Code extends string> {
36
+ category: string;
37
+ refusalCodes: readonly Code[];
38
+ classify(row: VaultRowFacts): {
39
+ kind: 'not-mine';
40
+ } | {
41
+ kind: 'mine';
42
+ member: string;
43
+ } | {
44
+ kind: 'refused';
45
+ code: Code;
46
+ };
47
+ }
48
+ export type ClaustrumFamilyInput = ClaustrumFamily | ClassifyingClaustrumFamily<string>;
25
49
  /** One vault credential this consumer may serve. Never carries bearer material. */
26
50
  export interface VaultCredential {
27
51
  readonly credentialId: string;
28
52
  readonly credentialType: VaultCredentialType;
53
+ readonly member?: string;
29
54
  /**
30
55
  * The provider account the credential logs into, when the vault's adapter
31
56
  * claims one. Absent means the adapter makes no claim, not a mismatch.
@@ -47,6 +72,7 @@ export type SkippedVaultReason = 'empty credential id' | 'duplicate credential i
47
72
  */
48
73
  export interface SkippedVaultRecord {
49
74
  readonly credentialId?: string;
75
+ readonly member?: string;
50
76
  readonly reason: SkippedVaultReason;
51
77
  }
52
78
  /**
@@ -82,6 +108,13 @@ export interface VaultInventory {
82
108
  readonly view: string;
83
109
  readonly credentials: readonly VaultCredential[];
84
110
  readonly skipped: readonly SkippedVaultRecord[];
111
+ /** Classifying families only: fixed refusal codes, never classifier errors. */
112
+ readonly refused?: readonly {
113
+ credentialId?: string;
114
+ code: string;
115
+ }[];
116
+ /** Classifying families only: rows outside this family's responsibility. */
117
+ readonly notMine?: number;
85
118
  /**
86
119
  * The consumer's grants, as the vault's list reply named them. Undefined means unknown
87
120
  * (the vault or client predates the fields), never zero grants.
@@ -221,7 +254,7 @@ export declare class ClaustrumScopedCustody {
221
254
  #private;
222
255
  constructor(options: {
223
256
  client: ClaustrumScopedClient;
224
- family: ClaustrumFamily;
257
+ family: ClaustrumFamilyInput;
225
258
  tokenPath?: string;
226
259
  readToken?: () => Promise<EnrollmentTokenFile>;
227
260
  parseIdentity?: IdentityParser;
@@ -296,4 +329,6 @@ export declare class ClaustrumScopedCustody {
296
329
  */
297
330
  watchRoster(options: ClaustrumRosterWatchOptions): ClaustrumRosterWatch;
298
331
  close(): void;
332
+ /** Stop immediately; allow token reads 2 s and share an owner's timeout warning. */
333
+ dispose(onTimeout?: (pendingOperations: number) => void): Promise<void>;
299
334
  }
@@ -4,7 +4,7 @@
4
4
  * `code`, a `class` and an `action`), so callers can tell the vault's verdict
5
5
  * apart from a check made on this side.
6
6
  */
7
- export type ClaustrumConsumerFailureKind = 'closed' | 'not-enrolled' | 'invalid-token' | 'unavailable' | 'identity-changed' | 'identity-unasserted' | 'insufficient-validity' | 'invalid-material' | 'not-active' | 'route-unavailable' | 'route-declined' | 'no-receipt' | 'unsafe-file' | 'invalid-state' | 'wrong-consumer' | 'roster-busy' | 'host-slot-login' | 'host-slot-placeholder' | 'placeholder-refresh';
7
+ export type ClaustrumConsumerFailureKind = 'closed' | 'not-enrolled' | 'invalid-token' | 'unavailable' | 'identity-changed' | 'identity-unasserted' | 'insufficient-validity' | 'invalid-material' | 'not-active' | 'route-unavailable' | 'route-declined' | 'no-receipt' | 'unsafe-file' | 'invalid-state' | 'wrong-consumer' | 'roster-busy' | 'host-slot-login' | 'host-slot-placeholder' | 'placeholder-refresh' | 'invalid-order';
8
8
  export declare class ClaustrumConsumerError extends Error {
9
9
  readonly kind: ClaustrumConsumerFailureKind;
10
10
  constructor(kind: ClaustrumConsumerFailureKind, message: string);
@@ -0,0 +1,195 @@
1
+ import type { QuotaObservation } from '../quota/index.js';
2
+ import { type ClaustrumConsumer } from './consumer.js';
3
+ import { type ClassifyingClaustrumFamily, type ClaustrumScopedClient, ClaustrumScopedCustody, type IdentityParser, type KeptReceiptState, type VaultGrantReach } from './custody.js';
4
+ import { type ClaustrumLogger } from './errors.js';
5
+ import { type AccountMapper, type VaultRosterFile } from './roster.js';
6
+ import { type WatchMode } from './watch.js';
7
+ export interface ClaustrumDiscoveryHubOptions {
8
+ /**
9
+ * The plugin's owner-only state directory. Member rosters live under
10
+ * `<stateDir>/rosters/<hostGeneration>/<fingerprint>/<provider>.json`.
11
+ */
12
+ stateDir: string;
13
+ /**
14
+ * Which host generation this process runs (for example `opencode1`,
15
+ * `opencode2` or `pi`). Hosts that classify rows differently keep separate
16
+ * roster directories.
17
+ */
18
+ hostGeneration: string;
19
+ /**
20
+ * Everything the plugin's classifier decides with, as plain JSON: the
21
+ * exact object it hands the classifier (its version, the supported-table
22
+ * entries, the reserved provider set and every host fact it reads). The
23
+ * hub hashes it, with the member set, `routePrefix` and `mapAccount`, into
24
+ * the roster key, so processes whose classifiers or projections could
25
+ * disagree never share a roster file. Configuration that `mapAccount`
26
+ * reads, beyond its own source text, belongs here too.
27
+ */
28
+ classifierInput: unknown;
29
+ /**
30
+ * Every provider the plugin serves on this host, fixed for the hub's life.
31
+ * Each is the `member` a classified row names and a roster file name, so
32
+ * it is lowercase ASCII: letters, digits, `.`, `_` and `-`.
33
+ */
34
+ members: readonly string[];
35
+ /** Prefix of every member's vault route ids; part of the roster key. */
36
+ routePrefix?: string;
37
+ /**
38
+ * How every member presents a vault credential (the credential names its
39
+ * member). Part of the roster key by its source text.
40
+ */
41
+ mapAccount?: AccountMapper;
42
+ /** This host's enrollment token, written by setup. */
43
+ tokenPath: string;
44
+ /**
45
+ * The plugin's classifying family. A legacy `ClaustrumFamily` names no
46
+ * member for any row and is refused.
47
+ */
48
+ family: ClassifyingClaustrumFamily<string>;
49
+ connect: () => Promise<ClaustrumScopedClient>;
50
+ /**
51
+ * How long one `connect()` attempt may take before the hub treats the vault
52
+ * as unreachable (default 10 s, as `ClaustrumConsumerOptions`). The hub's
53
+ * connect is shared by every member waiting for a lease, so an attempt that
54
+ * never settles would hold every one of them; after the limit they get an
55
+ * unreachable error and the next acquire connects again.
56
+ */
57
+ connectTimeoutMs?: number;
58
+ /**
59
+ * Whether the plugin takes its accounts from the vault. Read from local
60
+ * state only, never from the vault: on every hub tick, and when a member
61
+ * refreshes or authorizes. The first false read revokes every lease,
62
+ * closes the connection and clears every member.
63
+ */
64
+ isCustodyActive?: () => boolean | Promise<boolean>;
65
+ parseIdentity?: IdentityParser;
66
+ /** As `ClaustrumConsumerOptions.requireAssertion`, for every member. */
67
+ requireAssertion?: boolean;
68
+ /**
69
+ * How often the hub ticks (default 5 s). A tick reads authority, installs
70
+ * member roster files another writer changed under the same view, and
71
+ * lists when a list is due: on every tick while no vault watch is open,
72
+ * when a pending member's retry is due (a member the last list did not
73
+ * commit, retried with a backoff), otherwise every five minutes as a
74
+ * safety net.
75
+ */
76
+ pollIntervalMs?: number;
77
+ setTimeoutImpl?: typeof setTimeout;
78
+ clearTimeoutImpl?: typeof clearTimeout;
79
+ now?: () => number;
80
+ logger?: ClaustrumLogger;
81
+ /**
82
+ * Errors of the hub's own tick, list and watch. A failed list and a vault
83
+ * refusal of the watch also reach every member's `onError`.
84
+ */
85
+ onError?: (error: unknown) => void;
86
+ }
87
+ /**
88
+ * What one hub member takes: only what is per provider. The hub owns the
89
+ * roster path, the enrollment token, the family, the connection, the
90
+ * authority check, the poll timer and the projection inputs that are part of
91
+ * the roster key (`routePrefix`, `mapAccount`), so none of them can be given
92
+ * here. The type parameter matches the consumer `member` returns; members
93
+ * have no insula source.
94
+ */
95
+ export interface ClaustrumHubMemberOptions<_Q = QuotaObservation> {
96
+ /**
97
+ * Ids of the plugin's local pool rows; no vault route id may equal one.
98
+ * Read on every projection and install, so it may change at any time.
99
+ */
100
+ reservedRouteIds?: () => Iterable<string>;
101
+ /** As `ClaustrumConsumerOptions.onRoster`: once per change of view. */
102
+ onRoster?: (roster: VaultRosterFile) => void;
103
+ /** This member's own failures, such as a roster commit that failed. */
104
+ onError?: (error: unknown) => void;
105
+ logger?: ClaustrumLogger;
106
+ }
107
+ /** What a lease may do with the shared custody. */
108
+ export type ClaustrumLeasedCustody = Pick<ClaustrumScopedCustody, 'authorize' | 'reportFailure' | 'forget' | 'keptReceiptState'>;
109
+ /**
110
+ * One acquisition of the hub's shared custody. `custody` throws `closed`
111
+ * after `release()`, and once the connection it belongs to ended for any
112
+ * reason, vault mode going off included. `release()` is idempotent.
113
+ */
114
+ export interface CustodyLease {
115
+ readonly custody: ClaustrumLeasedCustody;
116
+ /** The connection this lease belongs to; each new connection counts up. */
117
+ readonly generation: number;
118
+ release(): void;
119
+ }
120
+ /** The rows the hub's last complete discovery refused or left to others. */
121
+ export interface ClaustrumHubRefusals {
122
+ readonly view: string;
123
+ readonly refused: readonly {
124
+ credentialId?: string;
125
+ code: string;
126
+ }[];
127
+ readonly notMine: number;
128
+ }
129
+ /**
130
+ * One discovery hub per host process: the only vault connection and the only
131
+ * `ClaustrumScopedCustody`, one vault watch and one list per refresh, fanned
132
+ * out to one roster per provider. Members (`member()`) are ordinary
133
+ * `ClaustrumConsumer`s that never connect, list or watch themselves; each
134
+ * holds a custody lease. The connection stays open while vault mode is on,
135
+ * because the hub's own discovery holds a lease of its own, and closes when
136
+ * the last lease of a connection is released, when vault mode goes off, or
137
+ * at `close()`.
138
+ */
139
+ export declare class ClaustrumDiscoveryHub {
140
+ #private;
141
+ constructor(options: ClaustrumDiscoveryHubOptions);
142
+ /** The roster file member `provider` reads and the hub commits. */
143
+ rosterPath(provider: string): string;
144
+ /**
145
+ * Build the consumer for `provider`, once. It is an ordinary
146
+ * `ClaustrumConsumer` whose roster path is `rosterPath(provider)`; it
147
+ * connects, lists and watches only through this hub.
148
+ */
149
+ member<Q = QuotaObservation>(provider: string, options: ClaustrumHubMemberOptions<Q>): ClaustrumConsumer<Q>;
150
+ /**
151
+ * Take a lease on the current connection, connecting first when there is
152
+ * none. The acquirer's count is taken before anything is awaited, so a
153
+ * release elsewhere meanwhile cannot end the connection under it. An abort
154
+ * or a failed connect gives that count back; an acquirer whose connection
155
+ * ended while it waited tries once more on the current one. Rejects with
156
+ * `not-active` while vault mode is off.
157
+ */
158
+ acquire(signal?: AbortSignal): Promise<CustodyLease>;
159
+ /** The current connection and its lease count, for status and tests. */
160
+ leaseState(): {
161
+ readonly generation?: number;
162
+ readonly count: number;
163
+ };
164
+ /**
165
+ * Start the hub's tick, which runs until `close()`. While vault mode is
166
+ * off a tick only reads authority and makes no vault request.
167
+ */
168
+ start(): void;
169
+ /**
170
+ * List once and commit every member, as a tick does. Resolves once every
171
+ * member's memory holds its new roster. Rejects when the list fails; a
172
+ * member's own commit error goes to that member's `onError`.
173
+ */
174
+ refresh(): Promise<void>;
175
+ /**
176
+ * Rows the last discovery every member committed refused, with their fixed
177
+ * codes, and how many rows it left to other plugins. Undefined while
178
+ * unknown: before a complete discovery, and while vault mode is off.
179
+ */
180
+ refusals(): ClaustrumHubRefusals | undefined;
181
+ /** The grant reach of the same discovery as `refusals()`. */
182
+ grantReach(): VaultGrantReach | undefined;
183
+ /** How the hub learns about changes; `polling` until a watch is open. */
184
+ watchState(): WatchMode;
185
+ /** The shared custody's kept receipts, host-wide. */
186
+ keptReceiptState(): KeptReceiptState;
187
+ /**
188
+ * Stop the tick and the watch and close the connection. Members are not
189
+ * closed; they fail `closed` from then on. Use `dispose()` to also allow
190
+ * in-flight discovery up to two seconds to release its file handles.
191
+ */
192
+ close(): void;
193
+ /** Close immediately, then join background work for at most two seconds. */
194
+ dispose(): Promise<void>;
195
+ }