@cortexkit/opencode-antigravity-auth 3.0.6 → 3.0.8

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 (211) hide show
  1. package/dist/cli.js +1621 -183
  2. package/dist/cli.js.map +4 -4
  3. package/dist/cli.meta.json +228 -62
  4. package/dist/index.js +2728 -883
  5. package/dist/index.js.map +4 -4
  6. package/dist/index.meta.json +291 -104
  7. package/dist/server.js +2255 -390
  8. package/dist/server.js.map +4 -4
  9. package/dist/server.meta.json +1 -1
  10. package/dist/src/common-auth-embedded/claustrum/availability.d.ts +89 -0
  11. package/dist/src/common-auth-embedded/claustrum/availability.js +106 -0
  12. package/dist/src/common-auth-embedded/claustrum/consumer.d.ts +41 -1
  13. package/dist/src/common-auth-embedded/claustrum/consumer.js +152 -6
  14. package/dist/src/common-auth-embedded/claustrum/custody.d.ts +135 -14
  15. package/dist/src/common-auth-embedded/claustrum/custody.js +311 -16
  16. package/dist/src/common-auth-embedded/claustrum/errors.d.ts +1 -0
  17. package/dist/src/common-auth-embedded/claustrum/index.d.ts +5 -3
  18. package/dist/src/common-auth-embedded/claustrum/index.js +4 -1
  19. package/dist/src/common-auth-embedded/claustrum/insula.d.ts +48 -0
  20. package/dist/src/common-auth-embedded/claustrum/insula.js +286 -21
  21. package/dist/src/common-auth-embedded/claustrum/watch.d.ts +141 -0
  22. package/dist/src/common-auth-embedded/claustrum/watch.js +254 -0
  23. package/dist/src/common-auth-embedded/fs/private-files.js +10 -2
  24. package/dist/src/common-auth-embedded/fs/refresh-file-lock.d.ts +8 -2
  25. package/dist/src/common-auth-embedded/fs/refresh-file-lock.js +6 -1
  26. package/dist/src/common-auth-embedded/pi-slot/lock.js +7 -3
  27. package/dist/src/common-auth-embedded/quota/format.d.ts +17 -3
  28. package/dist/src/common-auth-embedded/quota/format.js +203 -18
  29. package/dist/src/common-auth-embedded/quota/index.d.ts +2 -2
  30. package/dist/src/common-auth-embedded/quota/index.js +1 -1
  31. package/dist/src/common-auth-embedded/quota/projection.d.ts +16 -0
  32. package/dist/src/common-auth-embedded/setup/command-error.d.ts +32 -0
  33. package/dist/src/common-auth-embedded/setup/command-error.js +79 -0
  34. package/dist/src/common-auth-embedded/setup/command-runner.js +118 -24
  35. package/dist/src/common-auth-embedded/setup/command.js +75 -19
  36. package/dist/src/common-auth-embedded/setup/enroll.js +17 -5
  37. package/dist/src/common-auth-embedded/setup/index.d.ts +2 -1
  38. package/dist/src/common-auth-embedded/setup/index.js +1 -0
  39. package/dist/src/common-auth-embedded/setup/register.js +8 -2
  40. package/dist/src/common-auth-embedded/setup/types.d.ts +14 -0
  41. package/dist/src/common-auth-embedded/source-output.json +142 -94
  42. package/dist/src/common-auth-embedded/store/pool.d.ts +1 -1
  43. package/dist/src/common-auth-embedded/store/pool.js +0 -1
  44. package/dist/src/common-auth-embedded/store/refresh-lock.d.ts +0 -1
  45. package/dist/src/common-auth-embedded/store/refresh-lock.js +0 -1
  46. package/dist/src/ga/server/index.d.ts +2 -0
  47. package/dist/src/ga/server/index.d.ts.map +1 -1
  48. package/dist/src/ga/server/index.js +18 -3
  49. package/dist/src/ga/server/index.js.map +1 -1
  50. package/dist/src/ga/tui/host-ga.d.ts.map +1 -1
  51. package/dist/src/ga/tui/host-ga.js +37 -3
  52. package/dist/src/ga/tui/host-ga.js.map +1 -1
  53. package/dist/src/plugin/auth-loader.d.ts +2 -1
  54. package/dist/src/plugin/auth-loader.d.ts.map +1 -1
  55. package/dist/src/plugin/auth-loader.js +5 -4
  56. package/dist/src/plugin/auth-loader.js.map +1 -1
  57. package/dist/src/plugin/config/schema.d.ts.map +1 -1
  58. package/dist/src/plugin/config/schema.js +2 -1
  59. package/dist/src/plugin/config/schema.js.map +1 -1
  60. package/dist/src/plugin/fetch-interceptor.d.ts +2 -1
  61. package/dist/src/plugin/fetch-interceptor.d.ts.map +1 -1
  62. package/dist/src/plugin/fetch-interceptor.js +8 -6
  63. package/dist/src/plugin/fetch-interceptor.js.map +1 -1
  64. package/dist/src/plugin/ga-location-services.d.ts.map +1 -1
  65. package/dist/src/plugin/ga-location-services.js +7 -3
  66. package/dist/src/plugin/ga-location-services.js.map +1 -1
  67. package/dist/src/plugin/gemini-dump.d.ts.map +1 -1
  68. package/dist/src/plugin/gemini-dump.js +2 -5
  69. package/dist/src/plugin/gemini-dump.js.map +1 -1
  70. package/dist/src/plugin/index.d.ts.map +1 -1
  71. package/dist/src/plugin/index.js +3 -3
  72. package/dist/src/plugin/index.js.map +1 -1
  73. package/dist/src/plugin/logging-utils.d.ts.map +1 -1
  74. package/dist/src/plugin/logging-utils.js +2 -5
  75. package/dist/src/plugin/logging-utils.js.map +1 -1
  76. package/dist/src/plugin/request.d.ts +1 -2
  77. package/dist/src/plugin/request.d.ts.map +1 -1
  78. package/dist/src/plugin/request.js +8 -12
  79. package/dist/src/plugin/request.js.map +1 -1
  80. package/dist/src/plugin/shared/after-handoff.d.ts +14 -0
  81. package/dist/src/plugin/shared/after-handoff.d.ts.map +1 -0
  82. package/dist/src/plugin/shared/after-handoff.js +89 -0
  83. package/dist/src/plugin/shared/after-handoff.js.map +1 -0
  84. package/dist/src/plugin/shared/request-services.d.ts +16 -3
  85. package/dist/src/plugin/shared/request-services.d.ts.map +1 -1
  86. package/dist/src/plugin/shared/request-services.js +193 -90
  87. package/dist/src/plugin/shared/request-services.js.map +1 -1
  88. package/dist/src/plugin/shared/vault-request-credentials.d.ts +13 -4
  89. package/dist/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
  90. package/dist/src/plugin/shared/vault-request-credentials.js +17 -1
  91. package/dist/src/plugin/shared/vault-request-credentials.js.map +1 -1
  92. package/dist/src/plugin/vault-custody.d.ts +16 -1
  93. package/dist/src/plugin/vault-custody.d.ts.map +1 -1
  94. package/dist/src/plugin/vault-custody.js +60 -10
  95. package/dist/src/plugin/vault-custody.js.map +1 -1
  96. package/dist/src/sidebar-projection.d.ts +4 -0
  97. package/dist/src/sidebar-projection.d.ts.map +1 -1
  98. package/dist/src/sidebar-projection.js +6 -2
  99. package/dist/src/sidebar-projection.js.map +1 -1
  100. package/dist/src/tui/quota-layout.d.ts +94 -0
  101. package/dist/src/tui/quota-layout.d.ts.map +1 -0
  102. package/dist/src/tui/quota-layout.js +139 -0
  103. package/dist/src/tui/quota-layout.js.map +1 -0
  104. package/dist/src/tui/route-layout.d.ts +8 -0
  105. package/dist/src/tui/route-layout.d.ts.map +1 -0
  106. package/dist/src/tui/route-layout.js +36 -0
  107. package/dist/src/tui/route-layout.js.map +1 -0
  108. package/dist/src/tui.d.ts.map +1 -1
  109. package/dist/src/tui.js +105 -191
  110. package/dist/src/tui.js.map +1 -1
  111. package/dist/tui-build-map.json +60 -31
  112. package/dist/tui-ga-build-map.json +46 -17
  113. package/dist/types/src/common-auth-embedded/claustrum/availability.d.ts +89 -0
  114. package/dist/types/src/common-auth-embedded/claustrum/consumer.d.ts +41 -1
  115. package/dist/types/src/common-auth-embedded/claustrum/custody.d.ts +135 -14
  116. package/dist/types/src/common-auth-embedded/claustrum/errors.d.ts +1 -0
  117. package/dist/types/src/common-auth-embedded/claustrum/index.d.ts +5 -3
  118. package/dist/types/src/common-auth-embedded/claustrum/insula.d.ts +48 -0
  119. package/dist/types/src/common-auth-embedded/claustrum/watch.d.ts +141 -0
  120. package/dist/types/src/common-auth-embedded/fs/refresh-file-lock.d.ts +8 -2
  121. package/dist/types/src/common-auth-embedded/quota/format.d.ts +17 -3
  122. package/dist/types/src/common-auth-embedded/quota/index.d.ts +2 -2
  123. package/dist/types/src/common-auth-embedded/quota/projection.d.ts +16 -0
  124. package/dist/types/src/common-auth-embedded/setup/command-error.d.ts +32 -0
  125. package/dist/types/src/common-auth-embedded/setup/index.d.ts +2 -1
  126. package/dist/types/src/common-auth-embedded/setup/types.d.ts +14 -0
  127. package/dist/types/src/common-auth-embedded/store/pool.d.ts +1 -1
  128. package/dist/types/src/common-auth-embedded/store/refresh-lock.d.ts +0 -1
  129. package/dist/types/src/ga/server/index.d.ts +2 -0
  130. package/dist/types/src/ga/server/index.d.ts.map +1 -1
  131. package/dist/types/src/plugin/auth-loader.d.ts +2 -1
  132. package/dist/types/src/plugin/auth-loader.d.ts.map +1 -1
  133. package/dist/types/src/plugin/config/schema.d.ts.map +1 -1
  134. package/dist/types/src/plugin/fetch-interceptor.d.ts +2 -1
  135. package/dist/types/src/plugin/fetch-interceptor.d.ts.map +1 -1
  136. package/dist/types/src/plugin/ga-location-services.d.ts.map +1 -1
  137. package/dist/types/src/plugin/gemini-dump.d.ts.map +1 -1
  138. package/dist/types/src/plugin/index.d.ts.map +1 -1
  139. package/dist/types/src/plugin/logging-utils.d.ts.map +1 -1
  140. package/dist/types/src/plugin/request.d.ts +1 -2
  141. package/dist/types/src/plugin/request.d.ts.map +1 -1
  142. package/dist/types/src/plugin/shared/after-handoff.d.ts +14 -0
  143. package/dist/types/src/plugin/shared/after-handoff.d.ts.map +1 -0
  144. package/dist/types/src/plugin/shared/request-services.d.ts +16 -3
  145. package/dist/types/src/plugin/shared/request-services.d.ts.map +1 -1
  146. package/dist/types/src/plugin/shared/vault-request-credentials.d.ts +13 -4
  147. package/dist/types/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
  148. package/dist/types/src/plugin/vault-custody.d.ts +16 -1
  149. package/dist/types/src/plugin/vault-custody.d.ts.map +1 -1
  150. package/package.json +4 -4
  151. package/src/common-auth-embedded/claustrum/availability.d.ts +89 -0
  152. package/src/common-auth-embedded/claustrum/availability.js +106 -0
  153. package/src/common-auth-embedded/claustrum/consumer.d.ts +41 -1
  154. package/src/common-auth-embedded/claustrum/consumer.js +152 -6
  155. package/src/common-auth-embedded/claustrum/custody.d.ts +135 -14
  156. package/src/common-auth-embedded/claustrum/custody.js +311 -16
  157. package/src/common-auth-embedded/claustrum/errors.d.ts +1 -0
  158. package/src/common-auth-embedded/claustrum/index.d.ts +5 -3
  159. package/src/common-auth-embedded/claustrum/index.js +4 -1
  160. package/src/common-auth-embedded/claustrum/insula.d.ts +48 -0
  161. package/src/common-auth-embedded/claustrum/insula.js +286 -21
  162. package/src/common-auth-embedded/claustrum/watch.d.ts +141 -0
  163. package/src/common-auth-embedded/claustrum/watch.js +254 -0
  164. package/src/common-auth-embedded/fs/private-files.js +10 -2
  165. package/src/common-auth-embedded/fs/refresh-file-lock.d.ts +8 -2
  166. package/src/common-auth-embedded/fs/refresh-file-lock.js +6 -1
  167. package/src/common-auth-embedded/pi-slot/lock.js +7 -3
  168. package/src/common-auth-embedded/quota/format.d.ts +17 -3
  169. package/src/common-auth-embedded/quota/format.js +203 -18
  170. package/src/common-auth-embedded/quota/index.d.ts +2 -2
  171. package/src/common-auth-embedded/quota/index.js +1 -1
  172. package/src/common-auth-embedded/quota/projection.d.ts +16 -0
  173. package/src/common-auth-embedded/setup/command-error.d.ts +32 -0
  174. package/src/common-auth-embedded/setup/command-error.js +79 -0
  175. package/src/common-auth-embedded/setup/command-runner.js +118 -24
  176. package/src/common-auth-embedded/setup/command.js +75 -19
  177. package/src/common-auth-embedded/setup/enroll.js +17 -5
  178. package/src/common-auth-embedded/setup/index.d.ts +2 -1
  179. package/src/common-auth-embedded/setup/index.js +1 -0
  180. package/src/common-auth-embedded/setup/register.js +8 -2
  181. package/src/common-auth-embedded/setup/types.d.ts +14 -0
  182. package/src/common-auth-embedded/source-output.json +142 -94
  183. package/src/common-auth-embedded/store/pool.d.ts +1 -1
  184. package/src/common-auth-embedded/store/pool.js +0 -1
  185. package/src/common-auth-embedded/store/refresh-lock.d.ts +0 -1
  186. package/src/common-auth-embedded/store/refresh-lock.js +0 -1
  187. package/src/tui-compiled/common-auth-embedded/fs/private-files.js +10 -2
  188. package/src/tui-compiled/common-auth-embedded/quota/format.js +203 -18
  189. package/src/tui-compiled/common-auth-embedded/quota/index.js +1 -1
  190. package/src/tui-compiled/tui/quota-layout.js +378 -0
  191. package/src/tui-compiled/tui/route-layout.js +30 -0
  192. package/src/tui-compiled/tui.js +245 -501
  193. package/src/tui-ga-compiled/host-ga.js +82 -52
  194. package/src/tui-ga-compiled/shared/6ca47cd4ec33fe72-route-layout.js +30 -0
  195. package/src/tui-ga-compiled/shared/8ae1927e5910ea81-sidebar-projection.js +2 -2
  196. package/src/tui-ga-compiled/shared/aef2402f8fc342f0-format.js +203 -18
  197. package/src/tui-ga-compiled/shared/bf17cbee28e58197-index.js +1 -1
  198. package/src/tui-ga-compiled/shared/dd4c9e1a907f8ef0-quota-layout.js +378 -0
  199. package/src/tui-ga-raw/host-ga.tsx +71 -30
  200. package/src/tui-ga-raw/shared/6ca47cd4ec33fe72-route-layout.js +30 -0
  201. package/src/tui-ga-raw/shared/8ae1927e5910ea81-sidebar-projection.js +2 -2
  202. package/src/tui-ga-raw/shared/aef2402f8fc342f0-format.js +203 -18
  203. package/src/tui-ga-raw/shared/bf17cbee28e58197-index.js +1 -1
  204. package/src/tui-ga-raw/shared/dd4c9e1a907f8ef0-quota-layout.tsx +391 -0
  205. package/src/tui-raw/common-auth-embedded/fs/private-files.js +10 -2
  206. package/src/tui-raw/common-auth-embedded/quota/format.js +203 -18
  207. package/src/tui-raw/common-auth-embedded/quota/index.js +1 -1
  208. package/src/tui-raw/tui/quota-layout.tsx +391 -0
  209. package/src/tui-raw/tui/route-layout.js +30 -0
  210. package/src/tui-raw/tui.tsx +171 -411
  211. package/src/tui.tsx +171 -411
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": 1,
3
- "compiler": "@cortexkit/common-auth/tui-build@0.17.2",
3
+ "compiler": "@cortexkit/common-auth/tui-build@0.21.1",
4
4
  "bun": "1.4.2",
5
5
  "raw": {
6
6
  "selector": "selector.js",
@@ -9,6 +9,7 @@
9
9
  "@cortexkit/antigravity-auth-core/file-lock",
10
10
  "@cortexkit/private-files",
11
11
  "@opencode-ai/plugin/tui",
12
+ "@opentui/core",
12
13
  "@opentui/solid",
13
14
  "jsonc-parser",
14
15
  "solid-js",
@@ -39,8 +40,8 @@
39
40
  {
40
41
  "source": "src/common-auth-embedded/quota/format.js",
41
42
  "output": "src/tui-raw/common-auth-embedded/quota/format.js",
42
- "bytes": 7317,
43
- "sha256": "be82fbb583247da651565e89d5f42baded960f8cc468acbf8a7492e0e930804b",
43
+ "bytes": 16323,
44
+ "sha256": "ffa9cb0a06d952e6bf258928dcbbe9e446c5fc7e7b3d57e8e226a365bd220f2d",
44
45
  "transform": "public-raw"
45
46
  },
46
47
  {
@@ -53,15 +54,8 @@
53
54
  {
54
55
  "source": "src/common-auth-embedded/quota/index.js",
55
56
  "output": "src/tui-raw/common-auth-embedded/quota/index.js",
56
- "bytes": 497,
57
- "sha256": "aa011324f0429617564cf26b4ba67c31390fc8f7a3547784ca4860059af7422b",
58
- "transform": "public-raw"
59
- },
60
- {
61
- "source": "src/quota-presentation.ts",
62
- "output": "src/tui-raw/quota-presentation.js",
63
- "bytes": 2428,
64
- "sha256": "1db4a0acf6381406e220f88a8c89698fa33ca9fda9318fa38b7baed92c8acef6",
57
+ "bytes": 511,
58
+ "sha256": "4567b82cc19673867983e53939f2e69daadd49ecf6174a3be180e7780a4bf889",
65
59
  "transform": "public-raw"
66
60
  },
67
61
  {
@@ -88,8 +82,8 @@
88
82
  {
89
83
  "source": "src/common-auth-embedded/fs/private-files.js",
90
84
  "output": "src/tui-raw/common-auth-embedded/fs/private-files.js",
91
- "bytes": 12025,
92
- "sha256": "a550d91f9dd95021fee2596fcdb2a47633adef6461ce0dea35bdd7bba3e83be5",
85
+ "bytes": 12448,
86
+ "sha256": "004b99daba0df2ce0aa43f21678e13242612966751035dd2459cd69866dadb52",
93
87
  "transform": "public-raw"
94
88
  },
95
89
  {
@@ -176,6 +170,27 @@
176
170
  "sha256": "db04199203d3e9d850ca4f0882548cfdb8e9125cd8c760bf79a4462d174b3226",
177
171
  "transform": "public-raw"
178
172
  },
173
+ {
174
+ "source": "src/quota-presentation.ts",
175
+ "output": "src/tui-raw/quota-presentation.js",
176
+ "bytes": 2428,
177
+ "sha256": "1db4a0acf6381406e220f88a8c89698fa33ca9fda9318fa38b7baed92c8acef6",
178
+ "transform": "public-raw"
179
+ },
180
+ {
181
+ "source": "src/tui/quota-layout.tsx",
182
+ "output": "src/tui-raw/tui/quota-layout.tsx",
183
+ "bytes": 12435,
184
+ "sha256": "55e8e69249c5a86f525d8b8fe94535af38e7f8725bb41ab464b0599496644eb0",
185
+ "transform": "public-raw"
186
+ },
187
+ {
188
+ "source": "src/tui/route-layout.ts",
189
+ "output": "src/tui-raw/tui/route-layout.js",
190
+ "bytes": 923,
191
+ "sha256": "9068f78ed678253631390ee0459a80246ef94c778aee4d2f69f17566efd3eaa8",
192
+ "transform": "public-raw"
193
+ },
179
194
  {
180
195
  "source": "src/tui-preferences.ts",
181
196
  "output": "src/tui-raw/tui-preferences.js",
@@ -186,8 +201,8 @@
186
201
  {
187
202
  "source": "src/tui.tsx",
188
203
  "output": "src/tui-raw/tui.tsx",
189
- "bytes": 44392,
190
- "sha256": "6ce49b90c9c5953aa8bffd7780fb9442981795ac37abd223096d4f0140a1bd78",
204
+ "bytes": 36632,
205
+ "sha256": "ed13a5a3f5e9a8dd33b2aedf675286a9662bb71d3cbd659bf93eab5042e6246d",
191
206
  "transform": "public-raw"
192
207
  },
193
208
  {
@@ -233,8 +248,8 @@
233
248
  {
234
249
  "source": "src/common-auth-embedded/quota/format.js",
235
250
  "output": "src/tui-compiled/common-auth-embedded/quota/format.js",
236
- "bytes": 7317,
237
- "sha256": "be82fbb583247da651565e89d5f42baded960f8cc468acbf8a7492e0e930804b",
251
+ "bytes": 16323,
252
+ "sha256": "ffa9cb0a06d952e6bf258928dcbbe9e446c5fc7e7b3d57e8e226a365bd220f2d",
238
253
  "transform": "public-solid-runtime"
239
254
  },
240
255
  {
@@ -247,15 +262,8 @@
247
262
  {
248
263
  "source": "src/common-auth-embedded/quota/index.js",
249
264
  "output": "src/tui-compiled/common-auth-embedded/quota/index.js",
250
- "bytes": 497,
251
- "sha256": "aa011324f0429617564cf26b4ba67c31390fc8f7a3547784ca4860059af7422b",
252
- "transform": "public-solid-runtime"
253
- },
254
- {
255
- "source": "src/quota-presentation.ts",
256
- "output": "src/tui-compiled/quota-presentation.js",
257
- "bytes": 2428,
258
- "sha256": "1db4a0acf6381406e220f88a8c89698fa33ca9fda9318fa38b7baed92c8acef6",
265
+ "bytes": 511,
266
+ "sha256": "4567b82cc19673867983e53939f2e69daadd49ecf6174a3be180e7780a4bf889",
259
267
  "transform": "public-solid-runtime"
260
268
  },
261
269
  {
@@ -282,8 +290,8 @@
282
290
  {
283
291
  "source": "src/common-auth-embedded/fs/private-files.js",
284
292
  "output": "src/tui-compiled/common-auth-embedded/fs/private-files.js",
285
- "bytes": 12025,
286
- "sha256": "a550d91f9dd95021fee2596fcdb2a47633adef6461ce0dea35bdd7bba3e83be5",
293
+ "bytes": 12448,
294
+ "sha256": "004b99daba0df2ce0aa43f21678e13242612966751035dd2459cd69866dadb52",
287
295
  "transform": "public-solid-runtime"
288
296
  },
289
297
  {
@@ -370,6 +378,27 @@
370
378
  "sha256": "b658119ee1ba6a7ab8b97c51600078dc1430a1d373a3092fb74b395830eb69b4",
371
379
  "transform": "public-solid-runtime"
372
380
  },
381
+ {
382
+ "source": "src/quota-presentation.ts",
383
+ "output": "src/tui-compiled/quota-presentation.js",
384
+ "bytes": 2428,
385
+ "sha256": "1db4a0acf6381406e220f88a8c89698fa33ca9fda9318fa38b7baed92c8acef6",
386
+ "transform": "public-solid-runtime"
387
+ },
388
+ {
389
+ "source": "src/tui/quota-layout.tsx",
390
+ "output": "src/tui-compiled/tui/quota-layout.js",
391
+ "bytes": 14605,
392
+ "sha256": "b7c1e40c1c2c1eb7926c229ca450ab1a42577dc5bb78e2483ec4a1c5f606735f",
393
+ "transform": "public-solid-runtime"
394
+ },
395
+ {
396
+ "source": "src/tui/route-layout.ts",
397
+ "output": "src/tui-compiled/tui/route-layout.js",
398
+ "bytes": 923,
399
+ "sha256": "9068f78ed678253631390ee0459a80246ef94c778aee4d2f69f17566efd3eaa8",
400
+ "transform": "public-solid-runtime"
401
+ },
373
402
  {
374
403
  "source": "src/tui-preferences.ts",
375
404
  "output": "src/tui-compiled/tui-preferences.js",
@@ -380,8 +409,8 @@
380
409
  {
381
410
  "source": "src/tui.tsx",
382
411
  "output": "src/tui-compiled/tui.js",
383
- "bytes": 49988,
384
- "sha256": "180134f3cbda65fd065075872eb93f6403b28fed88df70a4c3f3ea71fc74877b",
412
+ "bytes": 39922,
413
+ "sha256": "bbc6c4f668abe7359a7cee9667dd1a3b787d5600248069be2ff97866e3b9cc22",
385
414
  "transform": "public-solid-runtime"
386
415
  },
387
416
  {
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "schema": 1,
3
- "compiler": "@cortexkit/common-auth/tui-build@0.17.2",
3
+ "compiler": "@cortexkit/common-auth/tui-build@0.21.1",
4
4
  "bun": "1.4.2",
5
5
  "raw": {
6
6
  "selector": "selector.js",
7
7
  "externals": [
8
+ "@opentui/core",
8
9
  "solid-js"
9
10
  ],
10
11
  "files": [
@@ -32,8 +33,8 @@
32
33
  {
33
34
  "source": "src/common-auth-embedded/quota/format.js",
34
35
  "output": "src/tui-ga-raw/shared/aef2402f8fc342f0-format.js",
35
- "bytes": 7334,
36
- "sha256": "390b5d8474db7cfc8f6f61b6c2e8aea1d8dd19e02a1dc66e93956378db2bce9c",
36
+ "bytes": 16340,
37
+ "sha256": "ae8be4fb26c87778c2869706021caccd5460cf13723cee1afa36db2dfb361caf",
37
38
  "transform": "public-raw"
38
39
  },
39
40
  {
@@ -46,8 +47,8 @@
46
47
  {
47
48
  "source": "src/common-auth-embedded/quota/index.js",
48
49
  "output": "src/tui-ga-raw/shared/bf17cbee28e58197-index.js",
49
- "bytes": 582,
50
- "sha256": "8e7bc90dbe700d9117588b07dc2ebc3badfe4191c701e34e57d42537096bf2b2",
50
+ "bytes": 596,
51
+ "sha256": "3e20155e41d2559599fd38e9261dbecec04fff32fdd2d028564e359fa5687ecc",
51
52
  "transform": "public-raw"
52
53
  },
53
54
  {
@@ -60,8 +61,8 @@
60
61
  {
61
62
  "source": "src/sidebar-projection.ts",
62
63
  "output": "src/tui-ga-raw/shared/8ae1927e5910ea81-sidebar-projection.js",
63
- "bytes": 3655,
64
- "sha256": "7b5cd300da61536f7bf1ad3a05b7a121758a587d99582681f4fd5171eb462956",
64
+ "bytes": 3669,
65
+ "sha256": "a54f74f5b037e836775bbc37fef0e272e465827c832b57900976e68dc6b52cf3",
65
66
  "transform": "public-raw"
66
67
  },
67
68
  {
@@ -78,11 +79,25 @@
78
79
  "sha256": "c97d7b942476301768f4c74e3ba277ed56ab450b3b179dea08d5f561b42ee622",
79
80
  "transform": "public-raw"
80
81
  },
82
+ {
83
+ "source": "src/tui/quota-layout.tsx",
84
+ "output": "src/tui-ga-raw/shared/dd4c9e1a907f8ef0-quota-layout.tsx",
85
+ "bytes": 12451,
86
+ "sha256": "6d80b0991007d009fd9788f3c72f79166683c7326310c031d5ef0889aeaa2fe0",
87
+ "transform": "public-raw"
88
+ },
89
+ {
90
+ "source": "src/tui/route-layout.ts",
91
+ "output": "src/tui-ga-raw/shared/6ca47cd4ec33fe72-route-layout.js",
92
+ "bytes": 923,
93
+ "sha256": "9068f78ed678253631390ee0459a80246ef94c778aee4d2f69f17566efd3eaa8",
94
+ "transform": "public-raw"
95
+ },
81
96
  {
82
97
  "source": "src/ga/tui/host-ga.tsx",
83
98
  "output": "src/tui-ga-raw/host-ga.tsx",
84
- "bytes": 55361,
85
- "sha256": "d633350ddeb7d3ac2c39df0c5e7c8c916022c56185f8f12cff17fd5d12a9e720",
99
+ "bytes": 56869,
100
+ "sha256": "f464a410f095963ebdf8803142df10522d15cb16288cbe51919cbb570d51f33f",
86
101
  "transform": "public-raw"
87
102
  },
88
103
  {
@@ -122,8 +137,8 @@
122
137
  {
123
138
  "source": "src/common-auth-embedded/quota/format.js",
124
139
  "output": "src/tui-ga-compiled/shared/aef2402f8fc342f0-format.js",
125
- "bytes": 7334,
126
- "sha256": "390b5d8474db7cfc8f6f61b6c2e8aea1d8dd19e02a1dc66e93956378db2bce9c",
140
+ "bytes": 16340,
141
+ "sha256": "ae8be4fb26c87778c2869706021caccd5460cf13723cee1afa36db2dfb361caf",
127
142
  "transform": "public-solid-runtime"
128
143
  },
129
144
  {
@@ -136,8 +151,8 @@
136
151
  {
137
152
  "source": "src/common-auth-embedded/quota/index.js",
138
153
  "output": "src/tui-ga-compiled/shared/bf17cbee28e58197-index.js",
139
- "bytes": 582,
140
- "sha256": "8e7bc90dbe700d9117588b07dc2ebc3badfe4191c701e34e57d42537096bf2b2",
154
+ "bytes": 596,
155
+ "sha256": "3e20155e41d2559599fd38e9261dbecec04fff32fdd2d028564e359fa5687ecc",
141
156
  "transform": "public-solid-runtime"
142
157
  },
143
158
  {
@@ -150,8 +165,8 @@
150
165
  {
151
166
  "source": "src/sidebar-projection.ts",
152
167
  "output": "src/tui-ga-compiled/shared/8ae1927e5910ea81-sidebar-projection.js",
153
- "bytes": 3655,
154
- "sha256": "7b5cd300da61536f7bf1ad3a05b7a121758a587d99582681f4fd5171eb462956",
168
+ "bytes": 3669,
169
+ "sha256": "a54f74f5b037e836775bbc37fef0e272e465827c832b57900976e68dc6b52cf3",
155
170
  "transform": "public-solid-runtime"
156
171
  },
157
172
  {
@@ -168,11 +183,25 @@
168
183
  "sha256": "0f03fad2e1c68cf827b44b749807c1760222a577775a37bb500df0f721e6f26a",
169
184
  "transform": "public-solid-runtime"
170
185
  },
186
+ {
187
+ "source": "src/tui/quota-layout.tsx",
188
+ "output": "src/tui-ga-compiled/shared/dd4c9e1a907f8ef0-quota-layout.js",
189
+ "bytes": 14621,
190
+ "sha256": "a7d3c3c4b96107fad66c6d64bed713fb15526f210c3afeb752164ff31ed4e43d",
191
+ "transform": "public-solid-runtime"
192
+ },
193
+ {
194
+ "source": "src/tui/route-layout.ts",
195
+ "output": "src/tui-ga-compiled/shared/6ca47cd4ec33fe72-route-layout.js",
196
+ "bytes": 923,
197
+ "sha256": "9068f78ed678253631390ee0459a80246ef94c778aee4d2f69f17566efd3eaa8",
198
+ "transform": "public-solid-runtime"
199
+ },
171
200
  {
172
201
  "source": "src/ga/tui/host-ga.tsx",
173
202
  "output": "src/tui-ga-compiled/host-ga.js",
174
- "bytes": 46935,
175
- "sha256": "3d9e4dda9b48e6849266369e284987017850a86acfd1ddb07c0b0a243a7700c4",
203
+ "bytes": 47854,
204
+ "sha256": "b15dcab49371354f03c21f474cb820f8db01c0b4aebd5a2acc49a8aed0e3d8f6",
176
205
  "transform": "public-solid-runtime"
177
206
  },
178
207
  {
@@ -0,0 +1,89 @@
1
+ import { ClaustrumConsumerError } from './errors.js';
2
+ export type VaultFailureClass = 'unreachable' | 'answered';
3
+ /**
4
+ * Codes from claustrum-client's decoder and its subc transport. A retry action
5
+ * alone is not evidence of an outage: even transient vault refusals must win
6
+ * over a previously served credential. New codes fail closed until reviewed.
7
+ */
8
+ export declare const VAULT_FAILURE_CLASSES: Readonly<{
9
+ ECONNREFUSED: "unreachable";
10
+ ENOENT: "unreachable";
11
+ ECONNRESET: "unreachable";
12
+ EPIPE: "unreachable";
13
+ ETIMEDOUT: "unreachable";
14
+ transport_error: "unreachable";
15
+ unavailable: "unreachable";
16
+ timeout: "unreachable";
17
+ route_closed: "unreachable";
18
+ daemon_draining: "unreachable";
19
+ connection_closed: "unreachable";
20
+ connection_dropped: "unreachable";
21
+ request_deadline: "unreachable";
22
+ deadline_exceeded_no_drop_observed: "unreachable";
23
+ module_reloading: "unreachable";
24
+ module_warming: "unreachable";
25
+ target_unavailable: "unreachable";
26
+ module_timeout: "unreachable";
27
+ invalid_response: "answered";
28
+ invalid_record_version: "answered";
29
+ invalid_expiry: "answered";
30
+ invalid_status: "answered";
31
+ invalid_params: "answered";
32
+ ttl_unsatisfiable: "answered";
33
+ not_found: "answered";
34
+ enrollment_revoked: "answered";
35
+ enrollment_invalid: "answered";
36
+ grant_denied: "answered";
37
+ credential_unavailable: "answered";
38
+ needs_reauth: "answered";
39
+ declined: "answered";
40
+ disabled: "answered";
41
+ identity_changed: "answered";
42
+ closed: "answered";
43
+ client_closed: "answered";
44
+ pending_exists: "answered";
45
+ pending_queue_full: "answered";
46
+ already_consumed: "answered";
47
+ superseded: "answered";
48
+ stale_generation: "answered";
49
+ missing_identity: "answered";
50
+ invalid_control_body: "answered";
51
+ unknown_module: "answered";
52
+ module_removed: "answered";
53
+ capability_denied: "answered";
54
+ unknown_channel: "unreachable";
55
+ stale_route_epoch: "unreachable";
56
+ capability_forbidden: "answered";
57
+ capability_unprovided: "answered";
58
+ capability_ambiguous: "answered";
59
+ invalid_capability_identifier: "answered";
60
+ binary_body_required: "answered";
61
+ binary_call_requires_call_binary: "answered";
62
+ corr_exhausted: "answered";
63
+ late_route_cleanup_failed: "answered";
64
+ reverse_request_capability_not_declared: "answered";
65
+ stale_route_handle: "answered";
66
+ reverse_request_unhandled: "answered";
67
+ handler_error: "answered";
68
+ health_error: "answered";
69
+ duplicate_module_id: "answered";
70
+ route_rejected: "answered";
71
+ lock_busy: "answered";
72
+ owner_invalid: "answered";
73
+ renewal_failed: "answered";
74
+ unsupported_platform: "answered";
75
+ EACCES: "answered";
76
+ EPERM: "answered";
77
+ ERR_PRIVATE_FILES_SECURITY: "answered";
78
+ }>;
79
+ /**
80
+ * An injected adapter may throw this ONLY when its connection/transport is
81
+ * unreachable, including a failed connect before getScoped. Do not wrap an
82
+ * adapter shutdown, cancellation, validation error or vault refusal in it.
83
+ * Its fixed message cannot echo enrollment or credential material, and its
84
+ * kind stays `unavailable` for callers handling ClaustrumConsumerError.
85
+ */
86
+ export declare class ClaustrumUnreachableError extends ClaustrumConsumerError {
87
+ constructor();
88
+ }
89
+ export declare function classifyVaultFailure(error: unknown): VaultFailureClass;
@@ -1,10 +1,11 @@
1
1
  import type { ClaustrumReporterSource } from '@cortexkit/claustrum-client';
2
2
  import type { QuotaObservation } from '../quota/index.js';
3
3
  import type { RoutingRow } from '../routing/index.js';
4
- import { type ClaustrumFamily, type ClaustrumScopedAttempt, type ClaustrumScopedClient, type IdentityParser } from './custody.js';
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
6
  import { type InsulaQuotaOptions } from './insula.js';
7
7
  import { type AccountMapper, type QuotaReceipt, type VaultRosterFile } from './roster.js';
8
+ import { type WatchMode } from './watch.js';
8
9
  export interface ClaustrumConsumerOptions<Q = QuotaObservation> {
9
10
  /**
10
11
  * The roster file: one row per vault account (route id, credential id,
@@ -41,6 +42,12 @@ export interface ClaustrumConsumerOptions<Q = QuotaObservation> {
41
42
  */
42
43
  onRoster?: (roster: VaultRosterFile) => void;
43
44
  onError?: (error: unknown) => void;
45
+ /**
46
+ * How often `start()` ticks. A tick lists the vault when no vault watch is
47
+ * open (before it is accepted, or when the vault or the client cannot
48
+ * watch), and otherwise only every five minutes, as a safety net. A tick
49
+ * polls insula (at most once a minute) only while its watch is not open.
50
+ */
44
51
  pollIntervalMs?: number;
45
52
  setTimeoutImpl?: typeof setTimeout;
46
53
  clearTimeoutImpl?: typeof clearTimeout;
@@ -49,6 +56,15 @@ export interface ClaustrumConsumerOptions<Q = QuotaObservation> {
49
56
  /** Optional background quota source. In-band readings still use recordQuota. */
50
57
  insula?: InsulaQuotaOptions<Q>;
51
58
  }
59
+ /**
60
+ * How a started consumer learns about changes, for logs and status displays.
61
+ * `insula` is present when the consumer was given an insula source. Never
62
+ * carries secrets.
63
+ */
64
+ export interface ClaustrumWatchState {
65
+ readonly vault: WatchMode;
66
+ readonly insula?: WatchMode;
67
+ }
52
68
  export interface SendOptions {
53
69
  /**
54
70
  * What kind of request this is (for example `model`, `quota`, `profile`),
@@ -71,9 +87,33 @@ export declare class ClaustrumConsumer<Q = QuotaObservation> {
71
87
  constructor(options: ClaustrumConsumerOptions<Q>);
72
88
  /** The last committed roster this instance saw, without any I/O. */
73
89
  snapshot(): VaultRosterFile | undefined;
90
+ /**
91
+ * What this consumer is granted, from its latest discovery, without any I/O.
92
+ * It explains an empty roster: `grants === 0` means no grant at all, while
93
+ * `grants > 0` means a grant that reaches no credential (`tuples` names its
94
+ * selector). Undefined means unknown, never zero: the vault or client is too
95
+ * old to send it, nothing was discovered yet, or the roster now in memory is
96
+ * a different view than the one this instance discovered (a peer process
97
+ * held the discovery lease and its newer roster was served instead).
98
+ */
99
+ grantReach(): VaultGrantReach | undefined;
100
+ /** How this consumer currently learns about changes, without I/O. */
101
+ watchState(): ClaustrumWatchState;
102
+ /** Whether any account is using an in-memory outage receipt, without I/O. */
103
+ keptReceiptState(): KeptReceiptState;
74
104
  /** Rows for `/routing`, from the last committed roster. */
75
105
  routingRows(): RoutingRow[];
76
106
  refresh(): Promise<VaultRosterFile | undefined>;
107
+ /**
108
+ * Poll in the background and open the vault and insula watches. Until the
109
+ * vault watch is accepted, and whenever it is unavailable, every tick lists
110
+ * the vault exactly as before watches existed. While it is open a tick
111
+ * lists only when five minutes have passed since the last discovery, since
112
+ * the watch keeps no history; it still checks `isCustodyActive`, so a switch
113
+ * to local mode closes the connection as quickly as before. Insula is
114
+ * polled on the tick only while its own watch is not open. A host not in
115
+ * vault mode makes no request.
116
+ */
77
117
  start(): void;
78
118
  /**
79
119
  * Fetch on a background tick, at most once per minute across projects with