@cortexkit/opencode-antigravity-auth 3.0.1 → 3.0.3

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 (149) hide show
  1. package/dist/cli.js.map +2 -2
  2. package/dist/cli.meta.json +5 -5
  3. package/dist/index.d.ts +1 -1
  4. package/dist/index.js +2877 -2851
  5. package/dist/index.js.map +4 -4
  6. package/dist/index.meta.json +120 -33
  7. package/dist/server.js +475 -427
  8. package/dist/server.js.map +4 -4
  9. package/dist/server.meta.json +1 -7313
  10. package/dist/src/cli.d.ts +1 -1
  11. package/dist/src/constants.d.ts +1 -1
  12. package/dist/src/ga/rpc/protocol.d.ts +1 -1
  13. package/dist/src/ga/server/index.d.ts +6 -6
  14. package/dist/src/ga/server/index.d.ts.map +1 -1
  15. package/dist/src/ga/server/index.js +29 -1
  16. package/dist/src/ga/server/index.js.map +1 -1
  17. package/dist/src/ga/tui/host-ga.d.ts +2 -2
  18. package/dist/src/hooks/auto-update-checker/checker.d.ts +1 -1
  19. package/dist/src/hooks/auto-update-checker/index.d.ts +4 -4
  20. package/dist/src/plugin/account-access.d.ts +6 -6
  21. package/dist/src/plugin/account-command-oauth.d.ts +2 -2
  22. package/dist/src/plugin/accounts.d.ts +3 -3
  23. package/dist/src/plugin/auth-doctor.d.ts +2 -2
  24. package/dist/src/plugin/auth-drift.d.ts +2 -2
  25. package/dist/src/plugin/auth-loader.d.ts +8 -8
  26. package/dist/src/plugin/auth-loader.d.ts.map +1 -1
  27. package/dist/src/plugin/auth-loader.js +1 -0
  28. package/dist/src/plugin/auth-loader.js.map +1 -1
  29. package/dist/src/plugin/background-quota-refresh.d.ts +3 -3
  30. package/dist/src/plugin/background-vault-quota-refresh.d.ts +43 -0
  31. package/dist/src/plugin/background-vault-quota-refresh.d.ts.map +1 -0
  32. package/dist/src/plugin/background-vault-quota-refresh.js +155 -0
  33. package/dist/src/plugin/background-vault-quota-refresh.js.map +1 -0
  34. package/dist/src/plugin/cache/index.d.ts +1 -1
  35. package/dist/src/plugin/cache/signature-cache.d.ts +2 -2
  36. package/dist/src/plugin/cache.d.ts +6 -6
  37. package/dist/src/plugin/cli.d.ts +6 -6
  38. package/dist/src/plugin/command-apply.d.ts +1 -1
  39. package/dist/src/plugin/command-data.d.ts +2 -246
  40. package/dist/src/plugin/command-data.d.ts.map +1 -1
  41. package/dist/src/plugin/command-data.js +4 -418
  42. package/dist/src/plugin/command-data.js.map +1 -1
  43. package/dist/src/plugin/commands.d.ts +4 -4
  44. package/dist/src/plugin/config/index.d.ts +2 -2
  45. package/dist/src/plugin/config/loader.d.ts +2 -2
  46. package/dist/src/plugin/config/models.d.ts +2 -2
  47. package/dist/src/plugin/config/writer.d.ts +2 -2
  48. package/dist/src/plugin/core/streaming/index.d.ts +2 -2
  49. package/dist/src/plugin/core/streaming/transformer.d.ts +1 -1
  50. package/dist/src/plugin/debug.d.ts +1 -1
  51. package/dist/src/plugin/dependencies.d.ts +3 -3
  52. package/dist/src/plugin/event-handler.d.ts +3 -3
  53. package/dist/src/plugin/fetch-interceptor.d.ts +10 -10
  54. package/dist/src/plugin/fetch-routing.d.ts +3 -3
  55. package/dist/src/plugin/ga-location-services.d.ts +10 -10
  56. package/dist/src/plugin/gemini-dump.d.ts +0 -22
  57. package/dist/src/plugin/gemini-dump.d.ts.map +1 -1
  58. package/dist/src/plugin/gemini-dump.js +0 -39
  59. package/dist/src/plugin/gemini-dump.js.map +1 -1
  60. package/dist/src/plugin/google-search-tool.d.ts +1 -1
  61. package/dist/src/plugin/index.d.ts +8 -6
  62. package/dist/src/plugin/index.d.ts.map +1 -1
  63. package/dist/src/plugin/index.js +41 -18
  64. package/dist/src/plugin/index.js.map +1 -1
  65. package/dist/src/plugin/killswitch.d.ts +1 -1
  66. package/dist/src/plugin/lifecycle.d.ts +2 -2
  67. package/dist/src/plugin/logger.d.ts +2 -2
  68. package/dist/src/plugin/oauth-login.d.ts +1 -1
  69. package/dist/src/plugin/oauth-methods.d.ts +9 -9
  70. package/dist/src/plugin/operator-settings.d.ts +3 -3
  71. package/dist/src/plugin/persist-account-pool.d.ts +1 -1
  72. package/dist/src/plugin/quota.d.ts +5 -4
  73. package/dist/src/plugin/quota.d.ts.map +1 -1
  74. package/dist/src/plugin/quota.js +1 -0
  75. package/dist/src/plugin/quota.js.map +1 -1
  76. package/dist/src/plugin/recovery/index.d.ts +3 -3
  77. package/dist/src/plugin/recovery/storage.d.ts +1 -1
  78. package/dist/src/plugin/recovery.d.ts +3 -3
  79. package/dist/src/plugin/refresh-queue.d.ts +3 -3
  80. package/dist/src/plugin/request-helpers.d.ts +1 -1
  81. package/dist/src/plugin/request-helpers.d.ts.map +1 -1
  82. package/dist/src/plugin/request-helpers.js +10 -417
  83. package/dist/src/plugin/request-helpers.js.map +1 -1
  84. package/dist/src/plugin/request.d.ts +9 -9
  85. package/dist/src/plugin/request.js +4 -4
  86. package/dist/src/plugin/session-context.d.ts +1 -1
  87. package/dist/src/plugin/shared/request-services.d.ts +9 -9
  88. package/dist/src/plugin/shared/runtime.d.ts +11 -11
  89. package/dist/src/plugin/shared/source-sidebar.d.ts +1 -1
  90. package/dist/src/plugin/shared/vault-menu.d.ts +1 -1
  91. package/dist/src/plugin/shared/vault-request-credentials.d.ts +3 -1
  92. package/dist/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
  93. package/dist/src/plugin/shared/vault-request-credentials.js +1 -1
  94. package/dist/src/plugin/shared/vault-request-credentials.js.map +1 -1
  95. package/dist/src/plugin/stores/signature-store.d.ts +1 -1
  96. package/dist/src/plugin/token.d.ts +1 -1
  97. package/dist/src/plugin/ui/auth-menu.d.ts +4 -4
  98. package/dist/src/plugin/ui/model-status.d.ts +3 -3
  99. package/dist/src/plugin/ui/quota-status.d.ts +2 -2
  100. package/dist/src/plugin/vault-activation.d.ts +1 -1
  101. package/dist/src/plugin/vault-quota-refresh.d.ts +7 -0
  102. package/dist/src/plugin/vault-quota-refresh.d.ts.map +1 -0
  103. package/dist/src/plugin/vault-quota-refresh.js +12 -0
  104. package/dist/src/plugin/vault-quota-refresh.js.map +1 -0
  105. package/dist/src/plugin/vault-sidebar-projection.d.ts +27 -0
  106. package/dist/src/plugin/vault-sidebar-projection.d.ts.map +1 -0
  107. package/dist/src/plugin/vault-sidebar-projection.js +34 -0
  108. package/dist/src/plugin/vault-sidebar-projection.js.map +1 -0
  109. package/dist/src/rpc/notifications.d.ts +1 -1
  110. package/dist/src/rpc/rpc-server.d.ts +1 -1
  111. package/dist/src/server.d.ts +3 -3
  112. package/dist/src/sidebar-state.d.ts +20 -13
  113. package/dist/src/sidebar-state.d.ts.map +1 -1
  114. package/dist/src/sidebar-state.js +20 -10
  115. package/dist/src/sidebar-state.js.map +1 -1
  116. package/dist/src/tui/command-dialogs.d.ts +1 -1
  117. package/dist/src/tui/host-v1.d.ts +3 -3
  118. package/dist/src/tui.d.ts +3 -3
  119. package/dist/src/tui.js +1 -1
  120. package/dist/tui-build-map.json +6 -6
  121. package/dist/types/src/ga/server/index.d.ts.map +1 -1
  122. package/dist/types/src/plugin/auth-loader.d.ts.map +1 -1
  123. package/dist/types/src/plugin/background-vault-quota-refresh.d.ts +43 -0
  124. package/dist/types/src/plugin/background-vault-quota-refresh.d.ts.map +1 -0
  125. package/dist/types/src/plugin/command-data.d.ts +2 -246
  126. package/dist/types/src/plugin/command-data.d.ts.map +1 -1
  127. package/dist/types/src/plugin/gemini-dump.d.ts +0 -22
  128. package/dist/types/src/plugin/gemini-dump.d.ts.map +1 -1
  129. package/dist/types/src/plugin/index.d.ts +2 -0
  130. package/dist/types/src/plugin/index.d.ts.map +1 -1
  131. package/dist/types/src/plugin/quota.d.ts +1 -0
  132. package/dist/types/src/plugin/quota.d.ts.map +1 -1
  133. package/dist/types/src/plugin/request-helpers.d.ts.map +1 -1
  134. package/dist/types/src/plugin/shared/vault-request-credentials.d.ts +2 -0
  135. package/dist/types/src/plugin/shared/vault-request-credentials.d.ts.map +1 -1
  136. package/dist/types/src/plugin/vault-quota-refresh.d.ts +7 -0
  137. package/dist/types/src/plugin/vault-quota-refresh.d.ts.map +1 -0
  138. package/dist/types/src/plugin/vault-sidebar-projection.d.ts +27 -0
  139. package/dist/types/src/plugin/vault-sidebar-projection.d.ts.map +1 -0
  140. package/dist/types/src/sidebar-state.d.ts +20 -13
  141. package/dist/types/src/sidebar-state.d.ts.map +1 -1
  142. package/package.json +2 -2
  143. package/src/plugin/command-data.ts +6 -712
  144. package/src/sidebar-state.ts +34 -15
  145. package/src/tui-compiled/sidebar-state.js +12 -5
  146. package/src/tui-compiled/tui.js +1 -1
  147. package/src/tui-raw/sidebar-state.js +12 -5
  148. package/src/tui-raw/tui.tsx +1 -1
  149. package/src/tui.tsx +1 -1
@@ -0,0 +1,155 @@
1
+ import { acquireFencedFileLock } from '@cortexkit/antigravity-auth-core/file-lock';
2
+ import { ensureSidebarStateDir } from '../sidebar-state';
3
+ import { fetchVaultAccountQuota, } from './quota';
4
+ import { checkAndPublishVaultQuota } from './vault-quota-refresh';
5
+ import { quotaReadingForVaultRoute } from './vault-sidebar-projection';
6
+ /** Vault-only quota producer. No local account, token refresh or repository is opened. */
7
+ export class BackgroundVaultQuotaRefresh {
8
+ options;
9
+ timer = null;
10
+ inFlight = null;
11
+ controller = null;
12
+ disposed = false;
13
+ started = false;
14
+ now;
15
+ random;
16
+ acquireLock;
17
+ constructor(options) {
18
+ this.options = options;
19
+ this.now = options.now ?? Date.now;
20
+ this.random = options.random ?? Math.random;
21
+ this.acquireLock = options.acquireLock ?? acquireFencedFileLock;
22
+ }
23
+ start() {
24
+ if (this.disposed || this.started)
25
+ return;
26
+ this.started = true;
27
+ this.schedule(Math.floor(this.random() * 30_000));
28
+ }
29
+ /** Custody notifications cancel admitted work as soon as authority changes. */
30
+ abortTick() {
31
+ this.controller?.abort();
32
+ }
33
+ async dispose() {
34
+ this.disposed = true;
35
+ if (this.timer !== null)
36
+ clearTimeout(this.timer);
37
+ this.timer = null;
38
+ this.abortTick();
39
+ await this.inFlight;
40
+ }
41
+ schedule(delay) {
42
+ if (this.disposed || !this.started)
43
+ return;
44
+ this.timer = setTimeout(() => {
45
+ this.timer = null;
46
+ void this.tick();
47
+ }, delay);
48
+ this.timer.unref?.();
49
+ }
50
+ /** One serialized tick; also used by deterministic composition tests. */
51
+ tick() {
52
+ if (this.disposed)
53
+ return Promise.resolve();
54
+ if (this.inFlight)
55
+ return this.inFlight;
56
+ const controller = new AbortController();
57
+ this.controller = controller;
58
+ let extraJitter = 0;
59
+ this.inFlight = this.runTick(controller)
60
+ .catch(() => {
61
+ // Filesystem, authority and transport errors fail closed until the next tick.
62
+ extraJitter = 15_000;
63
+ })
64
+ .finally(() => {
65
+ this.inFlight = null;
66
+ this.controller = null;
67
+ this.schedule(this.options.intervalMs +
68
+ Math.floor(this.random() * this.options.intervalMs * 0.1) +
69
+ extraJitter);
70
+ });
71
+ return this.inFlight;
72
+ }
73
+ async assertActive(controller) {
74
+ if (this.disposed || (await this.options.readAuthority()) !== 'vault')
75
+ controller.abort();
76
+ controller.signal.throwIfAborted();
77
+ }
78
+ async runTick(controller) {
79
+ await this.assertActive(controller);
80
+ ensureSidebarStateDir(this.options.sidebarStateFile);
81
+ const lock = await this.acquireLock({
82
+ path: this.options.sidebarStateFile,
83
+ name: 'bg-vault-quota-poll',
84
+ ttlMs: 60_000,
85
+ renew: true,
86
+ });
87
+ if (!lock)
88
+ return;
89
+ // Renewal lasts through quota commits and publication. Losing the fence cancels I/O.
90
+ let released = false;
91
+ void lock.whenLost().then(() => {
92
+ if (!released)
93
+ controller.abort();
94
+ });
95
+ try {
96
+ await this.assertActive(controller);
97
+ await lock.assertOwned();
98
+ const { source, pool } = await this.options.currentVaultPool();
99
+ await this.assertActive(controller);
100
+ await pool.sync();
101
+ await this.assertActive(controller);
102
+ // Read durable observations inside the fence, including another process's
103
+ // updates. Sidebar publication time must never postpone quota fetching.
104
+ const state = await this.options.readProviderState();
105
+ await this.assertActive(controller);
106
+ await lock.assertOwned();
107
+ const threshold = Math.max(this.options.intervalMs - 60_000, Math.floor(this.options.intervalMs / 2));
108
+ const now = this.now();
109
+ const due = pool.selector.rows.some((row) => {
110
+ const quota = quotaReadingForVaultRoute(row.route, state);
111
+ const at = quota?.cachedQuotaUpdatedAt;
112
+ return (quota?.cachedQuota == null ||
113
+ typeof at !== 'number' ||
114
+ !Number.isFinite(at) ||
115
+ at < 0 ||
116
+ now - at >= threshold);
117
+ });
118
+ if (!due)
119
+ return;
120
+ await checkAndPublishVaultQuota({
121
+ pool,
122
+ signal: controller.signal,
123
+ now: this.now,
124
+ fetchReading: async (ref, signal) => {
125
+ await this.assertActive(controller);
126
+ const reading = await fetchVaultAccountQuota({
127
+ source,
128
+ ref,
129
+ signal,
130
+ logger: this.options.logger,
131
+ transport: async (url, init, extra) => {
132
+ // Re-check just before every physical request, including retries/fallbacks.
133
+ await this.assertActive(controller);
134
+ await lock.assertOwned();
135
+ controller.signal.throwIfAborted();
136
+ return this.options.transport(url, { ...init, signal: extra.signal ?? controller.signal }, extra);
137
+ },
138
+ });
139
+ await this.assertActive(controller);
140
+ await lock.assertOwned();
141
+ return reading;
142
+ },
143
+ }, async () => {
144
+ await this.assertActive(controller);
145
+ await lock.assertOwned();
146
+ await this.options.publishSidebar();
147
+ });
148
+ }
149
+ finally {
150
+ released = true;
151
+ await lock.release().catch(() => { });
152
+ }
153
+ }
154
+ }
155
+ //# sourceMappingURL=background-vault-quota-refresh.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background-vault-quota-refresh.js","sourceRoot":"","sources":["../../../src/plugin/background-vault-quota-refresh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAA;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EACL,sBAAsB,GAGvB,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,EAAE,yBA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,EAAE;4BACpC,4EAA4E;4BAC5E,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;4BACnC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;4BACxB,UAAU,CAAC,MAAM,CAAC,cAAc,EAAE,CAAA;4BAClC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAC3B,GAAG,EACH,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,UAAU,CAAC,MAAM,EAAE,EACtD,KAAK,CACN,CAAA;wBACH,CAAC;qBACF,CAAC,CAAA;oBACF,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;oBACnC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;oBACxB,OAAO,OAAO,CAAA;gBAChB,CAAC;aACF,EACD,KAAK,IAAI,EAAE;gBACT,MAAM,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;gBACnC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;gBACxB,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAA;YACrC,CAAC,CACF,CAAA;QACH,CAAC;gBAAS,CAAC;YACT,QAAQ,GAAG,IAAI,CAAA;YACf,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;QACtC,CAAC;IACH,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Cache module for opencode-antigravity-auth plugin.
3
3
  */
4
- export { createSignatureCache, getSignatureCacheFilePath, SignatureCache, type SignatureCacheOptions, type SignatureCacheRetention, type ThinkingCacheData, } from './signature-cache';
4
+ export { createSignatureCache, getSignatureCacheFilePath, SignatureCache, type SignatureCacheOptions, type SignatureCacheRetention, type ThinkingCacheData, } from './signature-cache.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -16,8 +16,8 @@
16
16
  *
17
17
  * Cache key format: `${sessionId}:${modelId}`
18
18
  */
19
- import type { SignatureCacheConfig } from '../config';
20
- import type { Clock } from '../neutral-types';
19
+ import type { SignatureCacheConfig } from '../config/index.js';
20
+ import type { Clock } from '../neutral-types.js';
21
21
  interface CacheStats {
22
22
  memoryHits: number;
23
23
  diskHits: number;
@@ -1,7 +1,7 @@
1
- import { SignatureCache } from './cache/signature-cache';
2
- import type { SignatureCacheConfig } from './config';
3
- import type { SignatureStore } from './core/streaming/types';
4
- import type { Clock } from './neutral-types';
1
+ import { SignatureCache } from './cache/signature-cache.js';
2
+ import type { SignatureCacheConfig } from './config/index.js';
3
+ import type { SignatureStore } from './core/streaming/types.js';
4
+ import type { Clock } from './neutral-types.js';
5
5
  export interface LocationSignatureOptions {
6
6
  /** The location's keep_thinking setting. */
7
7
  keepThinking: boolean;
@@ -104,6 +104,6 @@ export declare function getCachedSignature(sessionId: string, text: string): str
104
104
  * Disk entries are left to expire through their TTL.
105
105
  */
106
106
  export declare function clearSignatureCache(sessionId?: string): void;
107
- export { createSignatureCache, getSignatureCacheFilePath, SignatureCache, } from './cache/signature-cache';
108
- export type { SignatureCacheConfig } from './config';
107
+ export { createSignatureCache, getSignatureCacheFilePath, SignatureCache, } from './cache/signature-cache.js';
108
+ export type { SignatureCacheConfig } from './config/index.js';
109
109
  //# sourceMappingURL=cache.d.ts.map
@@ -1,7 +1,7 @@
1
- import type { CooldownReason } from './accounts';
2
- import type { FingerprintVersion } from './fingerprint';
3
- import type { QuotaGroupSummary } from './quota';
4
- import { type AccountStatus } from './ui/auth-menu';
1
+ import type { CooldownReason } from './accounts.js';
2
+ import type { FingerprintVersion } from './fingerprint.js';
3
+ import type { QuotaGroupSummary } from './quota.js';
4
+ import { type AccountStatus } from './ui/auth-menu.js';
5
5
  export declare function promptProjectId(): Promise<string>;
6
6
  export declare function promptAddAnotherAccount(currentCount: number): Promise<boolean>;
7
7
  export type LoginMode = 'add' | 'fresh' | 'manage' | 'check' | 'doctor' | 'repair' | 'current' | 'switch-account' | 'restore-fingerprint' | 'verify' | 'verify-all' | 'cancel';
@@ -39,6 +39,6 @@ export interface LoginMenuResult {
39
39
  deleteAll?: boolean;
40
40
  }
41
41
  export declare function promptLoginMode(existingAccounts: ExistingAccountInfo[]): Promise<LoginMenuResult>;
42
- export type { AccountStatus } from './ui/auth-menu';
43
- export { isTTY } from './ui/auth-menu';
42
+ export type { AccountStatus } from './ui/auth-menu.js';
43
+ export { isTTY } from './ui/auth-menu.js';
44
44
  //# sourceMappingURL=cli.d.ts.map
@@ -6,7 +6,7 @@
6
6
  * SDK and no process-wide state; every collaborator is passed in.
7
7
  */
8
8
  import { type AccountRepository, type AntigravityAccountLimitSource, type AntigravityMenuSettingsSource, type CommonAuthCommandsModule } from '@cortexkit/antigravity-auth-core';
9
- import { type OperatorSettings, type OperatorSettingsController } from './operator-settings.ts';
9
+ import { type OperatorSettings, type OperatorSettingsController } from './operator-settings.js';
10
10
  type CommonAuthMenuOptions = Parameters<CommonAuthCommandsModule['createCommandMenu']>[0];
11
11
  type MenuPluginSection = NonNullable<CommonAuthMenuOptions['cache']>;
12
12
  /**
@@ -1,55 +1,5 @@
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
- */
1
+ /** Privacy-safe cached account rows for OpenCode's account OAuth replies. */
2
+ /** Pool-file fields needed to project cached account rows without importing core's barrel into renderer source. */
53
3
  type CommandDataAccountMetadata = {
54
4
  email?: string;
55
5
  refreshToken: string;
@@ -75,25 +25,6 @@ type CommandDataQuotaGroupSummary = {
75
25
  resetTime: string;
76
26
  }>;
77
27
  };
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
28
  export interface CommandDataAccountStorage {
98
29
  version: 4;
99
30
  activeIndex: number;
@@ -150,181 +81,6 @@ export interface CommandAccountRow {
150
81
  capturedAt: number;
151
82
  };
152
83
  }
153
- interface LiveAccountSnapshot {
154
- index: number;
155
- refreshToken: string;
156
- label?: string;
157
- enabled: boolean;
158
- active: boolean;
159
- cachedQuota?: Partial<Record<CommandDataQuotaGroup, CommandDataQuotaGroupSummary>>;
160
- cachedQuotaUpdatedAt?: number;
161
- cachedQuotaAccountId?: string;
162
- accountIneligible?: boolean;
163
- coolingDownUntil?: number;
164
- healthScore?: number;
165
- /** Captured plan tier from the most recent loadCodeAssist response. */
166
- capturedTierId?: string;
167
- /** Captured paid-tier ID from the most recent loadCodeAssist response. */
168
- capturedPaidTierId?: string;
169
- /** Epoch ms when capturedTierId was last recorded. */
170
- capturedTierAt?: number;
171
- }
172
84
  export declare function projectCommandAccountRows(storage: CommandDataAccountStorage | null | undefined): CommandAccountRow[];
173
- /**
174
- * Live AccountManager view the data service needs.
175
- *
176
- * - `getAccounts()` returns the in-memory snapshot — used for cache-only
177
- * reads during dialog open and for re-reading the post-mutation state.
178
- * `getAccountsForQuotaCheck()` returns the freshest `AccountMetadataV3`
179
- * (the canonical shape the quota manager expects).
180
- * - `updateQuotaCache(index, groups)` + `requestSaveToDisk()` fold the
181
- * refreshed quota back into the live view and persist it. The service
182
- * calls them together after the network fetch resolves.
183
- * - `setAccountEnabled`, `setAccountCurrent`, `removeAccountByIndex`
184
- * mirror the CLI menu's mutation primitives — the dialog actions
185
- * (Task 10) reuse them so the TUI never invents its own mutation
186
- * logic. Each method returns `true` when the live view changed.
187
- * - `getRefreshTokenAt(index)` lets the service identify the canonical
188
- * account identity before it reaches the locked storage mutator; a
189
- * concurrent OAuth could renumber the flat array between the dialog
190
- * opening and the apply, so keying by refresh token is mandatory.
191
- * - `flushSaveToDisk()` drains the AccountManager's debounced save so a
192
- * dialog-triggered mutation lands on disk before the dialog's response
193
- * returns. Without it, the dialog could toast "Account removed" while
194
- * the file still carries the old pool.
195
- */
196
- export interface CommandDataAccountManagerView {
197
- getAccounts(): LiveAccountSnapshot[];
198
- getAccountsForQuotaCheck(): CommandDataAccountMetadata[];
199
- updateQuotaCache(index: number, groups: Partial<Record<CommandDataQuotaGroup, CommandDataQuotaGroupSummary>>, expectedRefreshToken?: string): void;
200
- requestSaveToDisk(): void;
201
- flushSaveToDisk(): Promise<void>;
202
- /**
203
- * Per-family live cursor. Used by the remove path so the persisted
204
- * `activeIndexByFamily` follows each model's currently-active account
205
- * independently — collapsing both families to a single index would
206
- * silently unelect one family on every restart.
207
- */
208
- getActiveIndexByFamily(): {
209
- claude: number;
210
- gemini: number;
211
- };
212
- /** Enable/disable the account at `index`. Returns true when it changed. */
213
- setAccountEnabled(index: number, enabled: boolean): boolean;
214
- /** Pin `index` as the active account for every family the dialog cares about. */
215
- setAccountCurrent(index: number): boolean;
216
- /** Remove the account at `index` from the live view. Returns true when it changed. */
217
- removeAccountByIndex(index: number): boolean;
218
- /** Canonical refresh token for the account at `index`, or undefined. */
219
- getRefreshTokenAt(index: number): string | undefined;
220
- }
221
- /**
222
- * Storage adapter the data service uses for re-read-under-lock writes.
223
- * `mutate` runs the supplied callback against the latest snapshot under
224
- * the file lock — the callback receives the current storage and may
225
- * return a replacement; returning the input unchanged is a no-op.
226
- *
227
- * The promise resolves with the (possibly mutated) storage snapshot so
228
- * the data service can await it. A rejected promise signals a failed
229
- * write — `AccountStorageUnreadableError`, lock contention, or any
230
- * other I/O failure — which the data service surfaces to the dialog
231
- * as a friendly error toast.
232
- */
233
- export interface CommandDataStorage {
234
- mutate(mutator: (current: CommandDataAccountStorage) => CommandDataAccountStorage | undefined | Promise<CommandDataAccountStorage | undefined>): Promise<CommandDataAccountStorage | undefined> | undefined;
235
- }
236
- /**
237
- * Options for `createCommandDataService`. Each field is required so
238
- * production wiring is explicit — a missing dependency is a startup
239
- * error, not a silent no-op at dialog-open time.
240
- */
241
- export interface CommandDataServiceOptions {
242
- accountManagerView: CommandDataAccountManagerView;
243
- quotaManager: {
244
- refreshAccounts(accounts: CommandDataAccountMetadata[], options: {
245
- indexFor?: (account: CommandDataAccountMetadata) => number;
246
- force?: boolean;
247
- }): Promise<CommandDataAccountQuotaResult[]>;
248
- };
249
- /** Path to the label-only sidebar state file. */
250
- sidebarStateFile: string;
251
- /**
252
- * Optional storage adapter. When provided, the service persists the
253
- * refreshed quota to disk via the lock-held mutator (best-effort —
254
- * a lock contention never breaks the dialog response). When omitted,
255
- * the service still folds results into the live AccountManager view;
256
- * the auth-loader is responsible for the on-disk write.
257
- */
258
- storage?: CommandDataStorage;
259
- /** Clock for `cachedQuotaUpdatedAt`. Tests inject a fixed clock. */
260
- now?: () => number;
261
- }
262
- /**
263
- * Public surface of the command-data service. Each method is the
264
- * smallest possible projection so the dialog layer never has to know
265
- * how the underlying quota manager or storage adapter is wired.
266
- */
267
- export interface CommandDataService {
268
- /**
269
- * Cache-only snapshot. Performs zero quota manager calls — safe to
270
- * call as part of the dialog's open path.
271
- */
272
- listAccounts(): Promise<CommandAccountRow[]>;
273
- /**
274
- * Force-refresh quota through the shared quota manager, persist by
275
- * refresh token, bump `cachedQuotaUpdatedAt`, and push a label-only
276
- * sidebar snapshot. Returns the freshly persisted rows so the
277
- * dialog can re-render in place.
278
- *
279
- * Bypass flag is intentional: explicit user-triggered refreshes
280
- * ("Refresh" button, direct slash-command with `refresh` argument)
281
- * must always fetch, even if the quota manager has backed off.
282
- */
283
- refreshQuota(): Promise<CommandAccountRow[]>;
284
- /**
285
- * Non-forced quota check that RESPECTS the quota manager's per-account
286
- * backoff. Used by the dialog OPEN path — which is a VIEW, not a user
287
- * request to fetch. Accounts already fresh (or in backoff) are skipped;
288
- * the result is discarded (the sidebar poller carries the freshness
289
- * guarantee for idle accounts).
290
- */
291
- refreshQuotaRespectingBackoff(): Promise<void>;
292
- /**
293
- * Pin `index` as the active account for every family the dialog
294
- * tracks (claude + gemini). Mutates the live AccountManager AND the
295
- * locked storage so the new active index survives a restart. Returns
296
- * the freshly projected rows so the dialog can re-render in place.
297
- * Returns `null` when the index is out of range or the account has
298
- * no refresh token — the dialog surfaces the null as a toast.
299
- */
300
- setCurrentAccount(index: number): Promise<CommandAccountRow[] | null>;
301
- /**
302
- * Flip the `enabled` flag on the account at `index`. Mirrors the CLI
303
- * menu's "manage" toggle so the on-disk state matches what the CLI
304
- * would produce. Returns the freshly projected rows (or `null` when
305
- * the index is invalid or the account is ineligible).
306
- */
307
- toggleAccountEnabled(index: number): Promise<CommandAccountRow[] | null>;
308
- /**
309
- * Remove the account at `index` from both the live view and the
310
- * locked storage. Removal renumbers the flat `accounts[]` array so
311
- * the returned rows use the freshest indices; callers MUST re-key
312
- * their transient dialog IDs (`acct-${index}`) by the row's `id`
313
- * field after this method returns.
314
- *
315
- * Returns `null` when the index is out of range — the dialog
316
- * surfaces the null as a toast.
317
- */
318
- removeAccount(index: number): Promise<CommandAccountRow[] | null>;
319
- }
320
- /**
321
- * Build the data service.
322
- *
323
- * The factory form (instead of a module-level singleton) keeps the
324
- * service unit-testable: each test constructs its own dependencies
325
- * (storage stub, quota manager stub, fixed clock) without touching
326
- * the production quota path.
327
- */
328
- export declare function createCommandDataService(options: CommandDataServiceOptions): CommandDataService;
329
85
  export {};
330
86
  //# sourceMappingURL=command-data.d.ts.map
@@ -1 +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,EA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