@cortexkit/opencode-antigravity-auth 1.1.0 → 2.0.1

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 (379) hide show
  1. package/README.md +225 -569
  2. package/dist/cli.js +4017 -0
  3. package/dist/cli.js.map +7 -0
  4. package/dist/index.d.ts +1 -3
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +20742 -14586
  7. package/dist/index.js.map +4 -4
  8. package/dist/src/antigravity/oauth.d.ts +1 -1
  9. package/dist/src/antigravity/oauth.js +1 -1
  10. package/dist/src/cli.d.ts +21 -0
  11. package/dist/src/cli.d.ts.map +1 -0
  12. package/dist/src/cli.js +237 -0
  13. package/dist/src/cli.js.map +1 -0
  14. package/dist/src/constants.d.ts +1 -1
  15. package/dist/src/constants.js +1 -1
  16. package/dist/src/hooks/auto-update-checker/cache.d.ts.map +1 -1
  17. package/dist/src/hooks/auto-update-checker/cache.js +13 -13
  18. package/dist/src/hooks/auto-update-checker/cache.js.map +1 -1
  19. package/dist/src/hooks/auto-update-checker/checker.d.ts +1 -1
  20. package/dist/src/hooks/auto-update-checker/checker.d.ts.map +1 -1
  21. package/dist/src/hooks/auto-update-checker/checker.js +75 -51
  22. package/dist/src/hooks/auto-update-checker/checker.js.map +1 -1
  23. package/dist/src/hooks/auto-update-checker/constants.d.ts.map +1 -1
  24. package/dist/src/hooks/auto-update-checker/constants.js +12 -12
  25. package/dist/src/hooks/auto-update-checker/constants.js.map +1 -1
  26. package/dist/src/hooks/auto-update-checker/index.d.ts +6 -6
  27. package/dist/src/hooks/auto-update-checker/index.d.ts.map +1 -1
  28. package/dist/src/hooks/auto-update-checker/index.js +17 -17
  29. package/dist/src/hooks/auto-update-checker/index.js.map +1 -1
  30. package/dist/src/hooks/auto-update-checker/logging.js +2 -2
  31. package/dist/src/hooks/auto-update-checker/logging.js.map +1 -1
  32. package/dist/src/hooks/auto-update-checker/types.d.ts.map +1 -1
  33. package/dist/src/plugin/account-access.d.ts +99 -0
  34. package/dist/src/plugin/account-access.d.ts.map +1 -0
  35. package/dist/src/plugin/account-access.js +480 -0
  36. package/dist/src/plugin/account-access.js.map +1 -0
  37. package/dist/src/plugin/account-command-oauth.d.ts +34 -0
  38. package/dist/src/plugin/account-command-oauth.d.ts.map +1 -0
  39. package/dist/src/plugin/account-command-oauth.js +156 -0
  40. package/dist/src/plugin/account-command-oauth.js.map +1 -0
  41. package/dist/src/plugin/accounts.d.ts +7 -256
  42. package/dist/src/plugin/accounts.d.ts.map +1 -1
  43. package/dist/src/plugin/accounts.js +31 -1367
  44. package/dist/src/plugin/accounts.js.map +1 -1
  45. package/dist/src/plugin/agy-request-metadata.d.ts +1 -1
  46. package/dist/src/plugin/agy-request-metadata.js +1 -1
  47. package/dist/src/plugin/agy-transport.d.ts +1 -1
  48. package/dist/src/plugin/agy-transport.js +1 -1
  49. package/dist/src/plugin/auth-doctor.d.ts +6 -6
  50. package/dist/src/plugin/auth-doctor.d.ts.map +1 -1
  51. package/dist/src/plugin/auth-doctor.js +74 -66
  52. package/dist/src/plugin/auth-doctor.js.map +1 -1
  53. package/dist/src/plugin/auth-drift.d.ts +4 -4
  54. package/dist/src/plugin/auth-drift.d.ts.map +1 -1
  55. package/dist/src/plugin/auth-drift.js +15 -15
  56. package/dist/src/plugin/auth-drift.js.map +1 -1
  57. package/dist/src/plugin/auth-loader.d.ts +50 -0
  58. package/dist/src/plugin/auth-loader.d.ts.map +1 -0
  59. package/dist/src/plugin/auth-loader.js +225 -0
  60. package/dist/src/plugin/auth-loader.js.map +1 -0
  61. package/dist/src/plugin/auth.d.ts +1 -1
  62. package/dist/src/plugin/auth.js +1 -1
  63. package/dist/src/plugin/background-quota-refresh.d.ts +146 -0
  64. package/dist/src/plugin/background-quota-refresh.d.ts.map +1 -0
  65. package/dist/src/plugin/background-quota-refresh.js +347 -0
  66. package/dist/src/plugin/background-quota-refresh.js.map +1 -0
  67. package/dist/src/plugin/cache/index.d.ts +1 -1
  68. package/dist/src/plugin/cache/index.d.ts.map +1 -1
  69. package/dist/src/plugin/cache/index.js +1 -1
  70. package/dist/src/plugin/cache/index.js.map +1 -1
  71. package/dist/src/plugin/cache/signature-cache.d.ts +1 -1
  72. package/dist/src/plugin/cache/signature-cache.d.ts.map +1 -1
  73. package/dist/src/plugin/cache/signature-cache.js +23 -24
  74. package/dist/src/plugin/cache/signature-cache.js.map +1 -1
  75. package/dist/src/plugin/cache.d.ts +6 -5
  76. package/dist/src/plugin/cache.d.ts.map +1 -1
  77. package/dist/src/plugin/cache.js +21 -7
  78. package/dist/src/plugin/cache.js.map +1 -1
  79. package/dist/src/plugin/catalog.d.ts +23 -0
  80. package/dist/src/plugin/catalog.d.ts.map +1 -0
  81. package/dist/src/plugin/catalog.js +60 -0
  82. package/dist/src/plugin/catalog.js.map +1 -0
  83. package/dist/src/plugin/cli.d.ts +7 -7
  84. package/dist/src/plugin/cli.d.ts.map +1 -1
  85. package/dist/src/plugin/cli.js +62 -55
  86. package/dist/src/plugin/cli.js.map +1 -1
  87. package/dist/src/plugin/command-data.d.ts +329 -0
  88. package/dist/src/plugin/command-data.d.ts.map +1 -0
  89. package/dist/src/plugin/command-data.js +517 -0
  90. package/dist/src/plugin/command-data.js.map +1 -0
  91. package/dist/src/plugin/commands.d.ts +154 -0
  92. package/dist/src/plugin/commands.d.ts.map +1 -0
  93. package/dist/src/plugin/commands.js +746 -0
  94. package/dist/src/plugin/commands.js.map +1 -0
  95. package/dist/src/plugin/config/index.d.ts +2 -2
  96. package/dist/src/plugin/config/index.d.ts.map +1 -1
  97. package/dist/src/plugin/config/index.js +2 -2
  98. package/dist/src/plugin/config/index.js.map +1 -1
  99. package/dist/src/plugin/config/loader.d.ts +1 -1
  100. package/dist/src/plugin/config/loader.d.ts.map +1 -1
  101. package/dist/src/plugin/config/loader.js +18 -16
  102. package/dist/src/plugin/config/loader.js.map +1 -1
  103. package/dist/src/plugin/config/models.d.ts +2 -2
  104. package/dist/src/plugin/config/models.d.ts.map +1 -1
  105. package/dist/src/plugin/config/models.js +1 -1
  106. package/dist/src/plugin/config/models.js.map +1 -1
  107. package/dist/src/plugin/config/operator-settings-schema.d.ts +29 -0
  108. package/dist/src/plugin/config/operator-settings-schema.d.ts.map +1 -0
  109. package/dist/src/plugin/config/operator-settings-schema.js +28 -0
  110. package/dist/src/plugin/config/operator-settings-schema.js.map +1 -0
  111. package/dist/src/plugin/config/schema.d.ts +23 -2
  112. package/dist/src/plugin/config/schema.d.ts.map +1 -1
  113. package/dist/src/plugin/config/schema.js +109 -25
  114. package/dist/src/plugin/config/schema.js.map +1 -1
  115. package/dist/src/plugin/config/updater.d.ts.map +1 -1
  116. package/dist/src/plugin/config/updater.js +15 -15
  117. package/dist/src/plugin/config/updater.js.map +1 -1
  118. package/dist/src/plugin/config/writer.d.ts +34 -0
  119. package/dist/src/plugin/config/writer.d.ts.map +1 -0
  120. package/dist/src/plugin/config/writer.js +81 -0
  121. package/dist/src/plugin/config/writer.js.map +1 -0
  122. package/dist/src/plugin/core/streaming/index.d.ts +1 -1
  123. package/dist/src/plugin/core/streaming/index.d.ts.map +1 -1
  124. package/dist/src/plugin/core/streaming/index.js +1 -1
  125. package/dist/src/plugin/core/streaming/index.js.map +1 -1
  126. package/dist/src/plugin/core/streaming/transformer.d.ts.map +1 -1
  127. package/dist/src/plugin/core/streaming/transformer.js +85 -44
  128. package/dist/src/plugin/core/streaming/transformer.js.map +1 -1
  129. package/dist/src/plugin/core/streaming/types.d.ts.map +1 -1
  130. package/dist/src/plugin/debug.d.ts +10 -3
  131. package/dist/src/plugin/debug.d.ts.map +1 -1
  132. package/dist/src/plugin/debug.js +110 -47
  133. package/dist/src/plugin/debug.js.map +1 -1
  134. package/dist/src/plugin/dependencies.d.ts +129 -0
  135. package/dist/src/plugin/dependencies.d.ts.map +1 -0
  136. package/dist/src/plugin/dependencies.js +107 -0
  137. package/dist/src/plugin/dependencies.js.map +1 -0
  138. package/dist/src/plugin/errors.d.ts +27 -0
  139. package/dist/src/plugin/errors.d.ts.map +1 -1
  140. package/dist/src/plugin/errors.js +29 -3
  141. package/dist/src/plugin/errors.js.map +1 -1
  142. package/dist/src/plugin/event-handler.d.ts +53 -0
  143. package/dist/src/plugin/event-handler.d.ts.map +1 -0
  144. package/dist/src/plugin/event-handler.js +101 -0
  145. package/dist/src/plugin/event-handler.js.map +1 -0
  146. package/dist/src/plugin/fetch/retry-state.d.ts +61 -0
  147. package/dist/src/plugin/fetch/retry-state.d.ts.map +1 -0
  148. package/dist/src/plugin/fetch/retry-state.js +248 -0
  149. package/dist/src/plugin/fetch/retry-state.js.map +1 -0
  150. package/dist/src/plugin/fetch/warmup.d.ts +30 -0
  151. package/dist/src/plugin/fetch/warmup.d.ts.map +1 -0
  152. package/dist/src/plugin/fetch/warmup.js +76 -0
  153. package/dist/src/plugin/fetch/warmup.js.map +1 -0
  154. package/dist/src/plugin/fetch-interceptor.d.ts +59 -0
  155. package/dist/src/plugin/fetch-interceptor.d.ts.map +1 -0
  156. package/dist/src/plugin/fetch-interceptor.js +1399 -0
  157. package/dist/src/plugin/fetch-interceptor.js.map +1 -0
  158. package/dist/src/plugin/fetch-routing.d.ts +26 -0
  159. package/dist/src/plugin/fetch-routing.d.ts.map +1 -0
  160. package/dist/src/plugin/fetch-routing.js +99 -0
  161. package/dist/src/plugin/fetch-routing.js.map +1 -0
  162. package/dist/src/plugin/fingerprint.d.ts +1 -1
  163. package/dist/src/plugin/fingerprint.js +1 -1
  164. package/dist/src/plugin/gemini-dump.d.ts +5 -5
  165. package/dist/src/plugin/gemini-dump.d.ts.map +1 -1
  166. package/dist/src/plugin/gemini-dump.js +109 -55
  167. package/dist/src/plugin/gemini-dump.js.map +1 -1
  168. package/dist/src/plugin/google-search-tool.d.ts +9 -0
  169. package/dist/src/plugin/google-search-tool.d.ts.map +1 -0
  170. package/dist/src/plugin/google-search-tool.js +56 -0
  171. package/dist/src/plugin/google-search-tool.js.map +1 -0
  172. package/dist/src/plugin/image-saver.d.ts.map +1 -1
  173. package/dist/src/plugin/image-saver.js +16 -16
  174. package/dist/src/plugin/image-saver.js.map +1 -1
  175. package/dist/src/plugin/index.d.ts +30 -0
  176. package/dist/src/plugin/index.d.ts.map +1 -0
  177. package/dist/src/plugin/index.js +411 -0
  178. package/dist/src/plugin/index.js.map +1 -0
  179. package/dist/src/plugin/killswitch.d.ts +94 -0
  180. package/dist/src/plugin/killswitch.d.ts.map +1 -0
  181. package/dist/src/plugin/killswitch.js +197 -0
  182. package/dist/src/plugin/killswitch.js.map +1 -0
  183. package/dist/src/plugin/lifecycle.d.ts +40 -0
  184. package/dist/src/plugin/lifecycle.d.ts.map +1 -0
  185. package/dist/src/plugin/lifecycle.js +73 -0
  186. package/dist/src/plugin/lifecycle.js.map +1 -0
  187. package/dist/src/plugin/logger.d.ts +10 -1
  188. package/dist/src/plugin/logger.d.ts.map +1 -1
  189. package/dist/src/plugin/logger.js +38 -12
  190. package/dist/src/plugin/logger.js.map +1 -1
  191. package/dist/src/plugin/logging-utils.d.ts +35 -1
  192. package/dist/src/plugin/logging-utils.d.ts.map +1 -1
  193. package/dist/src/plugin/logging-utils.js +98 -15
  194. package/dist/src/plugin/logging-utils.js.map +1 -1
  195. package/dist/src/plugin/model-registry.d.ts +1 -1
  196. package/dist/src/plugin/model-registry.js +1 -1
  197. package/dist/src/plugin/oauth-login.d.ts +22 -0
  198. package/dist/src/plugin/oauth-login.d.ts.map +1 -0
  199. package/dist/src/plugin/oauth-login.js +37 -0
  200. package/dist/src/plugin/oauth-login.js.map +1 -0
  201. package/dist/src/plugin/oauth-methods.d.ts +42 -0
  202. package/dist/src/plugin/oauth-methods.d.ts.map +1 -0
  203. package/dist/src/plugin/oauth-methods.js +1276 -0
  204. package/dist/src/plugin/oauth-methods.js.map +1 -0
  205. package/dist/src/plugin/operator-settings.d.ts +40 -0
  206. package/dist/src/plugin/operator-settings.d.ts.map +1 -0
  207. package/dist/src/plugin/operator-settings.js +148 -0
  208. package/dist/src/plugin/operator-settings.js.map +1 -0
  209. package/dist/src/plugin/persist-account-pool.d.ts +37 -0
  210. package/dist/src/plugin/persist-account-pool.d.ts.map +1 -0
  211. package/dist/src/plugin/persist-account-pool.js +142 -0
  212. package/dist/src/plugin/persist-account-pool.js.map +1 -0
  213. package/dist/src/plugin/project.d.ts +1 -1
  214. package/dist/src/plugin/project.js +1 -1
  215. package/dist/src/plugin/prompt-context.d.ts.map +1 -1
  216. package/dist/src/plugin/prompt-context.js +11 -11
  217. package/dist/src/plugin/prompt-context.js.map +1 -1
  218. package/dist/src/plugin/quota.d.ts +138 -41
  219. package/dist/src/plugin/quota.d.ts.map +1 -1
  220. package/dist/src/plugin/quota.js +417 -285
  221. package/dist/src/plugin/quota.js.map +1 -1
  222. package/dist/src/plugin/recovery/constants.d.ts.map +1 -1
  223. package/dist/src/plugin/recovery/constants.js +24 -15
  224. package/dist/src/plugin/recovery/constants.js.map +1 -1
  225. package/dist/src/plugin/recovery/index.d.ts +3 -3
  226. package/dist/src/plugin/recovery/index.d.ts.map +1 -1
  227. package/dist/src/plugin/recovery/index.js +3 -3
  228. package/dist/src/plugin/recovery/index.js.map +1 -1
  229. package/dist/src/plugin/recovery/storage.d.ts +1 -1
  230. package/dist/src/plugin/recovery/storage.d.ts.map +1 -1
  231. package/dist/src/plugin/recovery/storage.js +31 -39
  232. package/dist/src/plugin/recovery/storage.js.map +1 -1
  233. package/dist/src/plugin/recovery/types.d.ts +12 -12
  234. package/dist/src/plugin/recovery/types.d.ts.map +1 -1
  235. package/dist/src/plugin/recovery.d.ts +3 -3
  236. package/dist/src/plugin/recovery.d.ts.map +1 -1
  237. package/dist/src/plugin/recovery.js +62 -58
  238. package/dist/src/plugin/recovery.js.map +1 -1
  239. package/dist/src/plugin/refresh-queue.d.ts +5 -2
  240. package/dist/src/plugin/refresh-queue.d.ts.map +1 -1
  241. package/dist/src/plugin/refresh-queue.js +37 -15
  242. package/dist/src/plugin/refresh-queue.js.map +1 -1
  243. package/dist/src/plugin/request-helpers.d.ts +1 -1
  244. package/dist/src/plugin/request-helpers.d.ts.map +1 -1
  245. package/dist/src/plugin/request-helpers.js +451 -352
  246. package/dist/src/plugin/request-helpers.js.map +1 -1
  247. package/dist/src/plugin/request.d.ts +7 -7
  248. package/dist/src/plugin/request.d.ts.map +1 -1
  249. package/dist/src/plugin/request.js +622 -384
  250. package/dist/src/plugin/request.js.map +1 -1
  251. package/dist/src/plugin/rotation.d.ts +1 -168
  252. package/dist/src/plugin/rotation.d.ts.map +1 -1
  253. package/dist/src/plugin/rotation.js +1 -327
  254. package/dist/src/plugin/rotation.js.map +1 -1
  255. package/dist/src/plugin/search.d.ts.map +1 -1
  256. package/dist/src/plugin/search.js +39 -35
  257. package/dist/src/plugin/search.js.map +1 -1
  258. package/dist/src/plugin/server.d.ts +1 -1
  259. package/dist/src/plugin/server.d.ts.map +1 -1
  260. package/dist/src/plugin/server.js +42 -37
  261. package/dist/src/plugin/server.js.map +1 -1
  262. package/dist/src/plugin/session-context.d.ts +2 -1
  263. package/dist/src/plugin/session-context.d.ts.map +1 -1
  264. package/dist/src/plugin/session-context.js +11 -7
  265. package/dist/src/plugin/session-context.js.map +1 -1
  266. package/dist/src/plugin/storage.d.ts +59 -120
  267. package/dist/src/plugin/storage.d.ts.map +1 -1
  268. package/dist/src/plugin/storage.js +140 -485
  269. package/dist/src/plugin/storage.js.map +1 -1
  270. package/dist/src/plugin/stores/signature-store.d.ts.map +1 -1
  271. package/dist/src/plugin/stores/signature-store.js.map +1 -1
  272. package/dist/src/plugin/thinking-recovery.d.ts.map +1 -1
  273. package/dist/src/plugin/thinking-recovery.js +35 -33
  274. package/dist/src/plugin/thinking-recovery.js.map +1 -1
  275. package/dist/src/plugin/token.d.ts +2 -2
  276. package/dist/src/plugin/token.d.ts.map +1 -1
  277. package/dist/src/plugin/token.js +30 -21
  278. package/dist/src/plugin/token.js.map +1 -1
  279. package/dist/src/plugin/transform/cross-model-sanitizer.d.ts +1 -1
  280. package/dist/src/plugin/transform/cross-model-sanitizer.js +1 -1
  281. package/dist/src/plugin/transform/index.d.ts +1 -1
  282. package/dist/src/plugin/transform/index.js +1 -1
  283. package/dist/src/plugin/transform/model-resolver.d.ts +1 -1
  284. package/dist/src/plugin/transform/model-resolver.js +1 -1
  285. package/dist/src/plugin/transform/types.d.ts +1 -1
  286. package/dist/src/plugin/transform/types.js +1 -1
  287. package/dist/src/plugin/types.d.ts +25 -69
  288. package/dist/src/plugin/types.d.ts.map +1 -1
  289. package/dist/src/plugin/ui/ansi.d.ts.map +1 -1
  290. package/dist/src/plugin/ui/ansi.js.map +1 -1
  291. package/dist/src/plugin/ui/auth-menu.d.ts +1 -1
  292. package/dist/src/plugin/ui/auth-menu.d.ts.map +1 -1
  293. package/dist/src/plugin/ui/auth-menu.js +84 -35
  294. package/dist/src/plugin/ui/auth-menu.js.map +1 -1
  295. package/dist/src/plugin/ui/confirm.d.ts.map +1 -1
  296. package/dist/src/plugin/ui/confirm.js.map +1 -1
  297. package/dist/src/plugin/ui/model-status.d.ts +3 -3
  298. package/dist/src/plugin/ui/model-status.d.ts.map +1 -1
  299. package/dist/src/plugin/ui/model-status.js +3 -3
  300. package/dist/src/plugin/ui/model-status.js.map +1 -1
  301. package/dist/src/plugin/ui/quota-status.d.ts +4 -4
  302. package/dist/src/plugin/ui/quota-status.d.ts.map +1 -1
  303. package/dist/src/plugin/ui/quota-status.js +49 -49
  304. package/dist/src/plugin/ui/quota-status.js.map +1 -1
  305. package/dist/src/plugin/ui/select.d.ts.map +1 -1
  306. package/dist/src/plugin/ui/select.js +22 -12
  307. package/dist/src/plugin/ui/select.js.map +1 -1
  308. package/dist/src/plugin/version.d.ts +1 -1
  309. package/dist/src/plugin/version.js +1 -1
  310. package/dist/src/rpc/notifications.d.ts +6 -0
  311. package/dist/src/rpc/notifications.d.ts.map +1 -0
  312. package/dist/src/rpc/notifications.js +46 -0
  313. package/dist/src/rpc/notifications.js.map +1 -0
  314. package/dist/src/rpc/port-file.d.ts +13 -0
  315. package/dist/src/rpc/port-file.d.ts.map +1 -0
  316. package/dist/src/rpc/port-file.js +109 -0
  317. package/dist/src/rpc/port-file.js.map +1 -0
  318. package/dist/src/rpc/protocol.d.ts +22 -0
  319. package/dist/src/rpc/protocol.d.ts.map +1 -0
  320. package/dist/src/rpc/protocol.js +1 -0
  321. package/dist/src/rpc/protocol.js.map +1 -0
  322. package/dist/src/rpc/rpc-client.d.ts +10 -0
  323. package/dist/src/rpc/rpc-client.d.ts.map +1 -0
  324. package/dist/src/rpc/rpc-client.js +58 -0
  325. package/dist/src/rpc/rpc-client.js.map +1 -0
  326. package/dist/src/rpc/rpc-dir.d.ts +4 -0
  327. package/dist/src/rpc/rpc-dir.d.ts.map +1 -0
  328. package/dist/src/rpc/rpc-dir.js +19 -0
  329. package/dist/src/rpc/rpc-dir.js.map +1 -0
  330. package/dist/src/rpc/rpc-server.d.ts +13 -0
  331. package/dist/src/rpc/rpc-server.d.ts.map +1 -0
  332. package/dist/src/rpc/rpc-server.js +231 -0
  333. package/dist/src/rpc/rpc-server.js.map +1 -0
  334. package/dist/src/sidebar-state.d.ts +357 -0
  335. package/dist/src/sidebar-state.d.ts.map +1 -0
  336. package/dist/src/sidebar-state.js +680 -0
  337. package/dist/src/sidebar-state.js.map +1 -0
  338. package/dist/src/tui/command-dialogs.d.ts +61 -0
  339. package/dist/src/tui/command-dialogs.d.ts.map +1 -0
  340. package/dist/src/tui/command-dialogs.js +595 -0
  341. package/dist/src/tui/command-dialogs.js.map +1 -0
  342. package/dist/src/tui/file-logger.d.ts +41 -0
  343. package/dist/src/tui/file-logger.d.ts.map +1 -0
  344. package/dist/src/tui/file-logger.js +114 -0
  345. package/dist/src/tui/file-logger.js.map +1 -0
  346. package/dist/src/tui-preferences.d.ts +40 -0
  347. package/dist/src/tui-preferences.d.ts.map +1 -0
  348. package/dist/src/tui-preferences.js +328 -0
  349. package/dist/src/tui-preferences.js.map +1 -0
  350. package/dist/src/tui.d.ts +68 -0
  351. package/dist/src/tui.d.ts.map +1 -0
  352. package/dist/src/tui.js +697 -0
  353. package/dist/src/tui.js.map +1 -0
  354. package/package.json +46 -22
  355. package/src/plugin/command-data.ts +931 -0
  356. package/src/rpc/port-file.ts +143 -0
  357. package/src/rpc/protocol.ts +31 -0
  358. package/src/rpc/rpc-client.ts +102 -0
  359. package/src/rpc/rpc-dir.ts +24 -0
  360. package/src/sidebar-state.ts +991 -0
  361. package/src/tui/command-dialogs.tsx +832 -0
  362. package/src/tui/entry.mjs +74 -0
  363. package/src/tui/file-logger.ts +145 -0
  364. package/src/tui-compiled/plugin/command-data.ts +931 -0
  365. package/src/tui-compiled/rpc/port-file.ts +143 -0
  366. package/src/tui-compiled/rpc/protocol.ts +31 -0
  367. package/src/tui-compiled/rpc/rpc-client.ts +102 -0
  368. package/src/tui-compiled/rpc/rpc-dir.ts +24 -0
  369. package/src/tui-compiled/sidebar-state.ts +991 -0
  370. package/src/tui-compiled/tui/command-dialogs.tsx +779 -0
  371. package/src/tui-compiled/tui/file-logger.ts +145 -0
  372. package/src/tui-compiled/tui-preferences.ts +416 -0
  373. package/src/tui-compiled/tui.tsx +1193 -0
  374. package/src/tui-preferences.ts +416 -0
  375. package/src/tui.tsx +1171 -0
  376. package/dist/src/plugin.d.ts +0 -48
  377. package/dist/src/plugin.d.ts.map +0 -1
  378. package/dist/src/plugin.js +0 -3311
  379. package/dist/src/plugin.js.map +0 -1
@@ -0,0 +1,329 @@
1
+ /**
2
+ * Privacy-safe data service for the data-first slash-command dialogs.
3
+ *
4
+ * `/antigravity-quota` (this task) and the future `/antigravity-account`
5
+ * dialogs (Tasks 10-11) read from a single shared service so they
6
+ * never touch raw account storage, never see the email PII field, and
7
+ * never run quota network I/O during the dialog's open path — the
8
+ * Refresh action is the only path that performs a live fetch.
9
+ *
10
+ * Why this is a separate module:
11
+ *
12
+ * - `commands.ts` owns the slash-command orchestration; mixing the row
13
+ * projection + quota refresh logic in there would balloon the surface
14
+ * for what is fundamentally a small read/refresh service.
15
+ * - The row type (`CommandAccountRow`) is the projection that crosses
16
+ * the PII firewall into the dialog payload. Defining it here (next
17
+ * to the code that constructs it) keeps the firewall reviewable.
18
+ * - Tests can pin the read-vs-refresh boundary, the email redaction, and
19
+ * the refresh-token-keyed persistence in one file rather than chasing
20
+ * them across the dispatcher + RPC + apply layers.
21
+ *
22
+ * Cache-only opening contract (Task 9 operator requirement):
23
+ *
24
+ * `listAccounts()` is a pure read of the live AccountManager view
25
+ * the auth-loader materialized at session start. It performs
26
+ * ZERO quota manager calls — opening the dialog must be instant even
27
+ * when the network is unreachable, and quota refresh must remain an
28
+ * explicit user-driven action so the cached percentages never quietly
29
+ * rewrite themselves behind the user's back.
30
+ *
31
+ * Refresh-token-keyed persistence (Task 9 plan trap):
32
+ *
33
+ * `refreshQuota()` runs the shared quota manager across every enabled
34
+ * account and folds the results back into the live AccountManager +
35
+ * storage. Concurrent OAuth can renumber the flat `accounts[]` array
36
+ * between read and write, so we re-read under the lock and key the
37
+ * update by `refreshToken` (the canonical identity) rather than the
38
+ * array index. This way a successful OAuth add that lands between
39
+ * the read and the write cannot cause the refresh to overwrite the
40
+ * wrong account.
41
+ */
42
+ /**
43
+ * Local copies of the few core types the data service touches.
44
+ *
45
+ * The shipped TUI tree cannot depend on the `@cortexkit/antigravity-auth-core`
46
+ * barrel (only subpath imports like `./file-lock` are allowed) — the
47
+ * compiled `command-data.ts` is copied verbatim into `tui-compiled/`,
48
+ * and the type-import would otherwise leak the full core surface into
49
+ * the dialog render path. Declaring the structural shape locally keeps
50
+ * the compiled tree free of the barrel while preserving duck-typed
51
+ * compatibility with the production quota manager.
52
+ */
53
+ type CommandDataAccountMetadata = {
54
+ email?: string;
55
+ refreshToken: string;
56
+ projectId?: string;
57
+ managedProjectId?: string;
58
+ addedAt: number;
59
+ lastUsed: number;
60
+ enabled?: boolean;
61
+ label?: string;
62
+ cachedQuota?: Partial<Record<CommandDataQuotaGroup, CommandDataQuotaGroupSummary>>;
63
+ cachedQuotaUpdatedAt?: number;
64
+ cachedQuotaAccountId?: string;
65
+ accountIneligible?: boolean;
66
+ };
67
+ type CommandDataQuotaGroup = 'gemini' | 'non-gemini';
68
+ type CommandDataQuotaGroupSummary = {
69
+ remainingFraction?: number;
70
+ resetTime?: string;
71
+ modelCount: number;
72
+ windows?: Array<{
73
+ window: 'weekly' | '5h';
74
+ remainingFraction: number;
75
+ resetTime: string;
76
+ }>;
77
+ };
78
+ type CommandDataAccountQuotaResult = {
79
+ index: number;
80
+ status: 'ok' | 'disabled' | 'error';
81
+ error?: string;
82
+ disabled?: boolean;
83
+ quota?: {
84
+ groups: Partial<Record<CommandDataQuotaGroup, CommandDataQuotaGroupSummary>>;
85
+ perModel?: Array<{
86
+ modelId: string;
87
+ displayName?: string;
88
+ group: CommandDataQuotaGroup | null;
89
+ remainingFraction: number;
90
+ resetTime?: string;
91
+ }>;
92
+ modelCount: number;
93
+ error?: string;
94
+ };
95
+ updatedAccount?: CommandDataAccountMetadata;
96
+ };
97
+ export interface CommandDataAccountStorage {
98
+ version: 4;
99
+ activeIndex: number;
100
+ activeIndexByFamily?: {
101
+ claude?: number;
102
+ gemini?: number;
103
+ };
104
+ accounts: CommandDataAccountMetadata[];
105
+ }
106
+ /**
107
+ * Privacy-safe per-account row shown in `/antigravity-*` data-first
108
+ * dialogs. Carries the cached quota percentages and the labels the
109
+ * dialog needs, but NEVER the email — the email stays in private
110
+ * account storage and is invisible to the sidebar and the dialog.
111
+ *
112
+ * `index` is the position in the live account array at the time of
113
+ * projection. It is informational only and is NOT a stable identity
114
+ * across refreshes — concurrent OAuth can renumber the array between
115
+ * the dialog opening and a refresh.
116
+ */
117
+ export interface CommandAccountRow {
118
+ /** Stable identity for dialog keying (`acct-<index>`). */
119
+ id: string;
120
+ /** Position in the live account array at projection time. */
121
+ index: number;
122
+ /** Privacy-safe ordinal display label (for example, `Account 1`). */
123
+ label: string;
124
+ enabled: boolean;
125
+ /** `true` when this row matches the harness-active account. */
126
+ current: boolean;
127
+ /**
128
+ * Absolute timestamp (ms) until which this account is rate-limited.
129
+ * Carried on the row so the sidebar refresher can match cooldowns
130
+ * without relying on unstable numeric indices.
131
+ */
132
+ coolingDownUntil?: number;
133
+ /** Health score in [0, 100], forwarded from the live tracker. */
134
+ healthScore?: number;
135
+ quota: Array<{
136
+ key: 'gemini' | 'non-gemini';
137
+ label: string;
138
+ remainingPercent: number | null;
139
+ resetAt?: number;
140
+ windows?: Array<{
141
+ window: 'weekly' | '5h';
142
+ remainingPercent: number;
143
+ resetAt?: number;
144
+ }>;
145
+ }>;
146
+ /** Captured plan tier. Absent when unknown; never defaulted. */
147
+ tier?: {
148
+ id: string;
149
+ capturedAt: number;
150
+ };
151
+ }
152
+ interface LiveAccountSnapshot {
153
+ index: number;
154
+ refreshToken: string;
155
+ label?: string;
156
+ enabled: boolean;
157
+ active: boolean;
158
+ cachedQuota?: Partial<Record<CommandDataQuotaGroup, CommandDataQuotaGroupSummary>>;
159
+ cachedQuotaUpdatedAt?: number;
160
+ cachedQuotaAccountId?: string;
161
+ accountIneligible?: boolean;
162
+ coolingDownUntil?: number;
163
+ healthScore?: number;
164
+ /** Captured plan tier from the most recent loadCodeAssist response. */
165
+ capturedTierId?: string;
166
+ /** Captured paid-tier ID from the most recent loadCodeAssist response. */
167
+ capturedPaidTierId?: string;
168
+ /** Epoch ms when capturedTierId was last recorded. */
169
+ capturedTierAt?: number;
170
+ }
171
+ export declare function projectCommandAccountRows(storage: CommandDataAccountStorage | null | undefined): CommandAccountRow[];
172
+ /**
173
+ * Live AccountManager view the data service needs.
174
+ *
175
+ * - `getAccounts()` returns the in-memory snapshot — used for cache-only
176
+ * reads during dialog open and for re-reading the post-mutation state.
177
+ * `getAccountsForQuotaCheck()` returns the freshest `AccountMetadataV3`
178
+ * (the canonical shape the quota manager expects).
179
+ * - `updateQuotaCache(index, groups)` + `requestSaveToDisk()` fold the
180
+ * refreshed quota back into the live view and persist it. The service
181
+ * calls them together after the network fetch resolves.
182
+ * - `setAccountEnabled`, `setAccountCurrent`, `removeAccountByIndex`
183
+ * mirror the CLI menu's mutation primitives — the dialog actions
184
+ * (Task 10) reuse them so the TUI never invents its own mutation
185
+ * logic. Each method returns `true` when the live view changed.
186
+ * - `getRefreshTokenAt(index)` lets the service identify the canonical
187
+ * account identity before it reaches the locked storage mutator; a
188
+ * concurrent OAuth could renumber the flat array between the dialog
189
+ * opening and the apply, so keying by refresh token is mandatory.
190
+ * - `flushSaveToDisk()` drains the AccountManager's debounced save so a
191
+ * dialog-triggered mutation lands on disk before the dialog's response
192
+ * returns. Without it, the dialog could toast "Account removed" while
193
+ * the file still carries the old pool.
194
+ */
195
+ export interface CommandDataAccountManagerView {
196
+ getAccounts(): LiveAccountSnapshot[];
197
+ getAccountsForQuotaCheck(): CommandDataAccountMetadata[];
198
+ updateQuotaCache(index: number, groups: Partial<Record<CommandDataQuotaGroup, CommandDataQuotaGroupSummary>>, expectedRefreshToken?: string): void;
199
+ requestSaveToDisk(): void;
200
+ flushSaveToDisk(): Promise<void>;
201
+ /**
202
+ * Per-family live cursor. Used by the remove path so the persisted
203
+ * `activeIndexByFamily` follows each model's currently-active account
204
+ * independently — collapsing both families to a single index would
205
+ * silently unelect one family on every restart.
206
+ */
207
+ getActiveIndexByFamily(): {
208
+ claude: number;
209
+ gemini: number;
210
+ };
211
+ /** Enable/disable the account at `index`. Returns true when it changed. */
212
+ setAccountEnabled(index: number, enabled: boolean): boolean;
213
+ /** Pin `index` as the active account for every family the dialog cares about. */
214
+ setAccountCurrent(index: number): boolean;
215
+ /** Remove the account at `index` from the live view. Returns true when it changed. */
216
+ removeAccountByIndex(index: number): boolean;
217
+ /** Canonical refresh token for the account at `index`, or undefined. */
218
+ getRefreshTokenAt(index: number): string | undefined;
219
+ }
220
+ /**
221
+ * Storage adapter the data service uses for re-read-under-lock writes.
222
+ * `mutate` runs the supplied callback against the latest snapshot under
223
+ * the file lock — the callback receives the current storage and may
224
+ * return a replacement; returning the input unchanged is a no-op.
225
+ *
226
+ * The promise resolves with the (possibly mutated) storage snapshot so
227
+ * the data service can await it. A rejected promise signals a failed
228
+ * write — `AccountStorageUnreadableError`, lock contention, or any
229
+ * other I/O failure — which the data service surfaces to the dialog
230
+ * as a friendly error toast.
231
+ */
232
+ export interface CommandDataStorage {
233
+ mutate(mutator: (current: CommandDataAccountStorage) => CommandDataAccountStorage | undefined | Promise<CommandDataAccountStorage | undefined>): Promise<CommandDataAccountStorage | undefined> | undefined;
234
+ }
235
+ /**
236
+ * Options for `createCommandDataService`. Each field is required so
237
+ * production wiring is explicit — a missing dependency is a startup
238
+ * error, not a silent no-op at dialog-open time.
239
+ */
240
+ export interface CommandDataServiceOptions {
241
+ accountManagerView: CommandDataAccountManagerView;
242
+ quotaManager: {
243
+ refreshAccounts(accounts: CommandDataAccountMetadata[], options: {
244
+ indexFor?: (account: CommandDataAccountMetadata) => number;
245
+ force?: boolean;
246
+ }): Promise<CommandDataAccountQuotaResult[]>;
247
+ };
248
+ /** Path to the label-only sidebar state file. */
249
+ sidebarStateFile: string;
250
+ /**
251
+ * Optional storage adapter. When provided, the service persists the
252
+ * refreshed quota to disk via the lock-held mutator (best-effort —
253
+ * a lock contention never breaks the dialog response). When omitted,
254
+ * the service still folds results into the live AccountManager view;
255
+ * the auth-loader is responsible for the on-disk write.
256
+ */
257
+ storage?: CommandDataStorage;
258
+ /** Clock for `cachedQuotaUpdatedAt`. Tests inject a fixed clock. */
259
+ now?: () => number;
260
+ }
261
+ /**
262
+ * Public surface of the command-data service. Each method is the
263
+ * smallest possible projection so the dialog layer never has to know
264
+ * how the underlying quota manager or storage adapter is wired.
265
+ */
266
+ export interface CommandDataService {
267
+ /**
268
+ * Cache-only snapshot. Performs zero quota manager calls — safe to
269
+ * call as part of the dialog's open path.
270
+ */
271
+ listAccounts(): Promise<CommandAccountRow[]>;
272
+ /**
273
+ * Force-refresh quota through the shared quota manager, persist by
274
+ * refresh token, bump `cachedQuotaUpdatedAt`, and push a label-only
275
+ * sidebar snapshot. Returns the freshly persisted rows so the
276
+ * dialog can re-render in place.
277
+ *
278
+ * Bypass flag is intentional: explicit user-triggered refreshes
279
+ * ("Refresh" button, direct slash-command with `refresh` argument)
280
+ * must always fetch, even if the quota manager has backed off.
281
+ */
282
+ refreshQuota(): Promise<CommandAccountRow[]>;
283
+ /**
284
+ * Non-forced quota check that RESPECTS the quota manager's per-account
285
+ * backoff. Used by the dialog OPEN path — which is a VIEW, not a user
286
+ * request to fetch. Accounts already fresh (or in backoff) are skipped;
287
+ * the result is discarded (the sidebar poller carries the freshness
288
+ * guarantee for idle accounts).
289
+ */
290
+ refreshQuotaRespectingBackoff(): Promise<void>;
291
+ /**
292
+ * Pin `index` as the active account for every family the dialog
293
+ * tracks (claude + gemini). Mutates the live AccountManager AND the
294
+ * locked storage so the new active index survives a restart. Returns
295
+ * the freshly projected rows so the dialog can re-render in place.
296
+ * Returns `null` when the index is out of range or the account has
297
+ * no refresh token — the dialog surfaces the null as a toast.
298
+ */
299
+ setCurrentAccount(index: number): Promise<CommandAccountRow[] | null>;
300
+ /**
301
+ * Flip the `enabled` flag on the account at `index`. Mirrors the CLI
302
+ * menu's "manage" toggle so the on-disk state matches what the CLI
303
+ * would produce. Returns the freshly projected rows (or `null` when
304
+ * the index is invalid or the account is ineligible).
305
+ */
306
+ toggleAccountEnabled(index: number): Promise<CommandAccountRow[] | null>;
307
+ /**
308
+ * Remove the account at `index` from both the live view and the
309
+ * locked storage. Removal renumbers the flat `accounts[]` array so
310
+ * the returned rows use the freshest indices; callers MUST re-key
311
+ * their transient dialog IDs (`acct-${index}`) by the row's `id`
312
+ * field after this method returns.
313
+ *
314
+ * Returns `null` when the index is out of range — the dialog
315
+ * surfaces the null as a toast.
316
+ */
317
+ removeAccount(index: number): Promise<CommandAccountRow[] | null>;
318
+ }
319
+ /**
320
+ * Build the data service.
321
+ *
322
+ * The factory form (instead of a module-level singleton) keeps the
323
+ * service unit-testable: each test constructs its own dependencies
324
+ * (storage stub, quota manager stub, fixed clock) without touching
325
+ * the production quota path.
326
+ */
327
+ export declare function createCommandDataService(options: CommandDataServiceOptions): CommandDataService;
328
+ export {};
329
+ //# sourceMappingURL=command-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command-data.d.ts","sourceRoot":"","sources":["../../../src/plugin/command-data.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAYH;;;;;;;;;;GAUG;AACH,KAAK,0BAA0B,GAAG;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CACnB,MAAM,CAAC,qBAAqB,EAAE,4BAA4B,CAAC,CAC5D,CAAA;IACD,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AAED,KAAK,qBAAqB,GAAG,QAAQ,GAAG,YAAY,CAAA;AAEpD,KAAK,4BAA4B,GAAG;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC;QACd,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAA;QACvB,iBAAiB,EAAE,MAAM,CAAA;QACzB,SAAS,EAAE,MAAM,CAAA;KAClB,CAAC,CAAA;CACH,CAAA;AAED,KAAK,6BAA6B,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,IAAI,GAAG,UAAU,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