omp-antigravity-acp-provider 0.1.10 → 0.1.12

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.
package/README.md CHANGED
@@ -19,7 +19,7 @@ The repository keeps the OMP adapter sources separately and installs upstream ve
19
19
 
20
20
  ## Status
21
21
 
22
- Version 0.1.10 supports all models advertised by the official ACP server. Tested with macOS, OMP 18.12.3, upstream provider 0.1.15 and official ACP runtime 1.4.1. Other platforms and OMP versions are not yet verified.
22
+ Version 0.1.12 supports all models advertised by the official ACP server. Tested with macOS, OMP 18.12.3, upstream provider 0.1.15 and official ACP runtime 1.4.1. Other platforms and OMP versions are not yet verified.
23
23
 
24
24
  Google's consumer-plan policies can restrict third-party agent access even through the official CLI or ACP executable. An official transport does not establish permission to use a subscription in OMP. Check the current [Antigravity FAQ](https://www.antigravity.google/docs/faq/) and [terms](https://antigravity.google/terms) for your account.
25
25
 
@@ -33,7 +33,7 @@ Google's consumer-plan policies can restrict third-party agent access even throu
33
33
  - Duplicate gray ACP tool-status lines are hidden by default, with an optional debug display switch. OMP tool calls/results and actual thought summaries remain visible.
34
34
  - Lazy ACP startup; model selection and cached listing do not launch the server.
35
35
  - Runtimes scoped to OMP sessions, including recovery after a planning session is disposed.
36
- - OMP `/login` support plus `/antigravity-acp login`, `logout` and `account` commands; the full local logout also removes the macOS keychain entry that the Antigravity server owns.
36
+ - OMP `/login` support plus `/antigravity-acp login`, `logout` and `account` commands; OMP's `/logout` automatically finishes the Antigravity-side logout, including the macOS keychain entry the Antigravity server owns.
37
37
  - API-equivalent cost estimates, not subscription billing or quota measurements.
38
38
 
39
39
  ## Install from the OMP marketplace
@@ -56,7 +56,7 @@ Or, inside OMP:
56
56
 
57
57
  Select **omp-antigravity-acp-provider** in the browser, install it, and restart OMP to load the provider.
58
58
 
59
- OMP's marketplace installer currently copies Git content without installing npm dependencies. This marketplace therefore ships a small source launcher that retrieves the exact published **0.1.10** prebuilt npm adapter and production dependencies on first load. It disables npm install scripts, skips Pi CLI peer installation, and performs no local compilation. Node.js 22.19+ and npm must be on PATH. First preparation needs internet access and roughly **150 MiB** of disk space; later loads reuse the installed cache without npm network access.
59
+ OMP's marketplace installer currently copies Git content without installing npm dependencies. This marketplace therefore ships a small source launcher that retrieves the exact published **0.1.12** prebuilt npm adapter and production dependencies on first load. It disables npm install scripts, skips Pi CLI peer installation, and performs no local compilation. Node.js 22.19+ and npm must be on PATH. First preparation needs internet access and roughly **150 MiB** of disk space; later loads reuse the installed cache without npm network access.
60
60
 
61
61
  The launcher stores its versioned dependencies in `.runtime/` inside the installed marketplace plugin's cache directory. Uninstalling the marketplace plugin removes that cache when it is no longer referenced by another scope. Google credentials and the separately downloaded official ACP runtime are unaffected.
62
62
 
@@ -80,7 +80,7 @@ omp plugin install npm:omp-antigravity-acp-provider
80
80
  To pin a specific release:
81
81
 
82
82
  ```sh
83
- omp plugin install npm:omp-antigravity-acp-provider@0.1.10
83
+ omp plugin install npm:omp-antigravity-acp-provider@0.1.12
84
84
  ```
85
85
 
86
86
  Restart OMP after installation. The npm package includes the built adapter; users do not need esbuild or a manual build step. Disable any older ACP adapter for the same provider before loading this package.
@@ -139,6 +139,8 @@ This repository does not change an existing OMP installation or overwrite its se
139
139
 
140
140
  `/antigravity-acp login` runs the same Google authorization through a command dialog without touching OMP's stored account record; use it to re-authenticate or switch the Antigravity-side Google account. `/antigravity-acp account` shows the current authentication state on both sides.
141
141
 
142
+ Both login paths always start a fresh Google sign-in: stored Antigravity credentials are cleared first, so the Google account chooser is always offered and a saved login cannot silently keep the previous account. The Google browser session itself is outside this adapter's control; pick the intended account (or "Use another account") on Google's consent screen.
143
+
142
144
  First use or login may download the official runtime. The observed macOS runtime occupies about **383 MiB**; size varies by platform/version. It lives outside this repository under `~/.local/opt/agy-acp/`. Do not remove it while ACP processes are running.
143
145
 
144
146
  If OMP's `enabledModels` whitelist is configured, add `antigravity-acp/*` alongside your existing entries in `~/.omp/agent/config.yml` to allow newly discovered models. Use individual `antigravity-acp/<server-model-id>` entries instead if you prefer a restricted list. The adapter does not rewrite that whitelist or any model-role preset.
@@ -177,7 +179,7 @@ The initial permission mode follows upstream configuration, whose default is `yo
177
179
 
178
180
  ### Sign out
179
181
 
180
- OMP's `/logout` removes only OMP's stored non-secret marker record for this provider; it cannot reach the Google credentials that the Antigravity runtime keeps in its own storage. `/antigravity-acp logout` performs the complete local logout: it closes this process's ACP runtimes, clears saved ACP session mappings, deletes the local token file and the settings auth choice, removes the matching macOS keychain entry when present, and removes OMP's marker record. It refuses to run while Antigravity requests are active. If OMP's marker cannot be removed through the host API, the command says so and OMP's `/logout` finishes the job.
182
+ OMP's oauth contract has no provider-side logout hook, so `/logout` by itself only removes OMP's stored non-secret marker record. This adapter watches the credential store and finishes the Antigravity-side logout automatically: after `/logout` removes the marker, it closes this process's ACP runtimes, clears saved ACP session mappings, deletes the local token file and the settings auth choice, and removes the matching macOS keychain entry, then confirms with one line (`/antigravity-acp account` shows the details). The keychain removal waits for this adapter's ACP server processes to fully exit and verifies the deletion, because a dying server can flush its token back. The cleanup waits for in-flight Antigravity requests to finish, a re-login before it runs cancels it, and automatic credential soft-disables (for example an expired refresh grant) never trigger it. Set `OMP_ACP_FOLLOW_LOGOUT=0` before starting OMP to keep OMP's `/logout` marker-only. `/antigravity-acp logout` performs the same complete logout in one command without waiting for OMP; it refuses to run while Antigravity requests are active. If its OMP-marker removal is unavailable through the host API, the command says so and OMP's `/logout` finishes that part.
181
183
 
182
184
  The debug switch controls gray `[Antigravity tool: …]` and `[Antigravity tool update: …]` lines. It defaults to off and applies immediately to this process's active ACP connections. Normal OMP tool displays/results, real thought chunks and plan messages are preserved. The option is saved as `debugToolUpdates` in `omp-tools.json` alongside `nativeTools`; toggling either option preserves the other. Existing policy files without the debug field default to off. Other OMP processes need a restart to read a setting changed elsewhere. `OMP_ACP_TRACE=1` is a separate, opt-in terminal diagnostic setting.
183
185
 
@@ -315,7 +317,7 @@ See the [0.1.8 context/compaction and usage benchmark](docs/context-compaction-0
315
317
 
316
318
  `npm run test:usage` uses Bun and mocked protocol responses to verify restored-session baselines, counter resets, query failures and advertised-command gating without starting ACP. `bun scripts/verify-continuity-live.ts --live` is a separate Flash-only probe of long history, synthetic tools, usage accounting and idle process reclamation/restoration; it consumes quota. Its one-second idle setting is isolated to the test process and is not the production default.
317
319
 
318
- `npm run test:auth` uses Bun with an isolated `GEMINI_HOME`, a stubbed keychain and a stubbed OAuth flow to verify the account view, login dialog mapping, logout cleanup and the active-request guard without starting ACP. Real Google login and logout change account state, so they are not part of any automated test.
320
+ `npm run test:auth` uses Bun with an isolated `GEMINI_HOME`, a stubbed keychain and a stubbed OAuth flow to verify the account view, login dialog mapping, logout cleanup, the active-request guard and the credential-store watch behind OMP-logout following (removal, automatic-disable suppression, re-login cancellation, opt-out and busy deferral) without starting ACP. Real Google login and logout change account state, so they are not part of any automated test.
319
321
 
320
322
  `npm run test:packed` additionally requires OMP on PATH. It installs the exact npm tarball into a temporary consumer directory with development dependencies omitted and install scripts disabled, checks runtime assets, and loads its model catalog with ACP execution disabled. It downloads production dependencies and removes the temporary installation afterward.
321
323
 
@@ -12,7 +12,7 @@ import { EFFORTS, projectCatalog, readModels, selectRuntimeModel } from "./model
12
12
  import { advertisedRecord, choices, selector } from "./selectors.ts";
13
13
  import { TOOL_ROUTING, parseNativeToolMode } from "./tool-routing.ts";
14
14
  import { loadNativeToolMode, loadToolPolicy, saveNativeToolMode, saveDebugToolUpdates } from "./tool-policy.ts";
15
- import { Type, createAntigravityProvider, AntigravityRuntime, PERMISSION_TOOL_NAME, PERMISSION_RESULT_KIND, loadConfig, savePermissionMode, inspectAntigravityAuth, hasAntigravityAuth, AcpSessionStore, ensureAntigravityAcpReady, TierConnection, planToolProjection, PiEventWriter, SessionCleanup } from "./runtime.mjs";
15
+ import { Type, createAntigravityProvider, AntigravityRuntime, PERMISSION_TOOL_NAME, PERMISSION_RESULT_KIND, loadConfig, savePermissionMode, inspectAntigravityAuth, hasAntigravityAuth, clearAntigravityCredentials, describeCredentialStorage, AcpSessionStore, ensureAntigravityAcpReady, TierConnection, planToolProjection, PiEventWriter, SessionCleanup } from "./runtime.mjs";
16
16
 
17
17
  const MARKER = "pi-antigravity-acp:managed-by-antigravity";
18
18
 
@@ -38,6 +38,10 @@ export const keychain = {
38
38
  },
39
39
  };
40
40
 
41
+ // Timing knobs for following OMP-side logouts; mutable so offline tests can
42
+ // run the delayed detection without real waits.
43
+ export const logoutFollow = { delayMs: 500, retryMs: 15_000 };
44
+
41
45
  function authReady() {
42
46
  return hasAntigravityAuth() || keychain.present() === true;
43
47
  }
@@ -50,7 +54,7 @@ function ompCredentialSummary(ctx: any) {
50
54
  if (!stored) return { present: false };
51
55
  return {
52
56
  present: true,
53
- record: stored.refresh === MARKER ? "managed marker (non-secret)" : "oauth",
57
+ record: stored.refresh === MARKER ? "non-secret managed marker" : "oauth credential",
54
58
  authorizedAt: typeof stored.authorizedAt === "number" ? new Date(stored.authorizedAt).toISOString() : undefined,
55
59
  };
56
60
  } catch (error: any) {
@@ -121,6 +125,104 @@ export async function registerOmpAdapter(pi: any, stateDir: string) {
121
125
  await runtimes.closeAll();
122
126
  }
123
127
  });
128
+ // OMP's oauth contract has no logout hook: /logout only removes the stored
129
+ // marker credential. Watching the credential store's generation counter lets
130
+ // this adapter finish the Antigravity-side logout when OMP reports removal.
131
+ let watchingCredentials = false;
132
+ let markerPresent: boolean | undefined;
133
+ let suppressFollow = false;
134
+ let selfLogout = false;
135
+ let followTimer: ReturnType<typeof setTimeout> | undefined;
136
+ let followRetry: ReturnType<typeof setTimeout> | undefined;
137
+ function ompMarkerStored(ctx: any): boolean | undefined {
138
+ try {
139
+ return Boolean(ctx?.modelRegistry?.authStorage?.credentials?.getOAuth?.("antigravity-acp"));
140
+ } catch { return undefined; }
141
+ }
142
+ // A dying ACP server can flush its in-memory token back to the keychain,
143
+ // racing a plain deletion and restoring the previous account. Wait for this
144
+ // adapter's server processes to fully exit first, then verify the removal.
145
+ async function removeKeychainCredentialDurably(): Promise<boolean | undefined> {
146
+ const pending = [...connections].map(connection => connection.process.exited.catch(() => undefined));
147
+ if (pending.length > 0) {
148
+ await Promise.race([Promise.allSettled(pending), new Promise(resolve => setTimeout(resolve, 10_000))]);
149
+ }
150
+ for (let attempt = 0; attempt < 3; attempt++) {
151
+ if (keychain.present() === false) return true;
152
+ const removed = keychain.remove();
153
+ if (removed !== true) return removed;
154
+ await new Promise(resolve => setTimeout(resolve, 400));
155
+ }
156
+ return keychain.present() === false;
157
+ }
158
+ // /login must mean a fresh Google sign-in: drop stored credentials (and this
159
+ // process's old-account servers) so a new server cannot silently reuse the
160
+ // saved login and keep the previous account.
161
+ async function beginFreshGoogleLogin() {
162
+ if (runtimes.values().some(bundle => bundle.isBusy())) {
163
+ throw new Error("Wait for active Antigravity requests to finish before logging in.");
164
+ }
165
+ await runtimes.closeAll();
166
+ clearAntigravityCredentials();
167
+ keychain.remove();
168
+ }
169
+ async function finishFollowedLogout(ctx: any) {
170
+ if (runtimes.values().some(bundle => bundle.isBusy())) {
171
+ // Never interrupt an in-flight Antigravity request; retry once idle.
172
+ clearTimeout(followRetry);
173
+ followRetry = setTimeout(() => {
174
+ followRetry = undefined;
175
+ if (ompMarkerStored(ctx) === false) void finishFollowedLogout(ctx);
176
+ }, logoutFollow.retryMs);
177
+ followRetry.unref?.();
178
+ return;
179
+ }
180
+ runtimes.get();
181
+ await Promise.all(runtimes.values().map(bundle => bundle.runtime.logout()));
182
+ await runtimes.closeAll();
183
+ const keychainRemoved = await removeKeychainCredentialDurably();
184
+ // Keep the confirmation terse; /antigravity-acp account shows the details.
185
+ const cleared = ["Google credentials", "saved ACP sessions"];
186
+ if (keychainRemoved === true) cleared.push("the macOS keychain entry");
187
+ const list = cleared.slice(0, -1).join(", ") + " and " + cleared[cleared.length - 1];
188
+ try {
189
+ ctx?.ui?.notify?.(`Antigravity ACP: finished the logout OMP started — ${list} cleared.${keychainRemoved === false ? " The macOS keychain entry was not present or not removable." : ""}`, "info");
190
+ } catch { /* the host UI may already be gone */ }
191
+ }
192
+ function watchOmpCredentials(ctx: any) {
193
+ if (watchingCredentials) return;
194
+ const credentials = ctx?.modelRegistry?.authStorage?.credentials;
195
+ if (!credentials?.getOAuth || !credentials.onGeneration) return;
196
+ const initial = ompMarkerStored(ctx);
197
+ if (initial === undefined) return;
198
+ watchingCredentials = true;
199
+ markerPresent = initial;
200
+ // Automatic soft-disables (for example an invalid_grant refresh) must not
201
+ // destroy the Antigravity-side login. OMP emits credential_disabled for
202
+ // those, but not for user-initiated removals such as /logout.
203
+ pi.on("credential_disabled", (event: any) => {
204
+ if (event?.provider === "antigravity-acp") suppressFollow = true;
205
+ });
206
+ credentials.onGeneration(() => {
207
+ const current = ompMarkerStored(ctx);
208
+ if (current === undefined) return;
209
+ const wasPresent = markerPresent === true;
210
+ markerPresent = current;
211
+ if (current) suppressFollow = false;
212
+ if (!wasPresent || current || selfLogout) return;
213
+ clearTimeout(followTimer);
214
+ followTimer = setTimeout(() => {
215
+ followTimer = undefined;
216
+ if (process.env.OMP_ACP_FOLLOW_LOGOUT === "0") return;
217
+ if (suppressFollow) { suppressFollow = false; return; }
218
+ // A quick re-login after the removal cancels the cleanup.
219
+ if (ompMarkerStored(ctx) !== false) return;
220
+ void finishFollowedLogout(ctx);
221
+ }, logoutFollow.delayMs);
222
+ followTimer.unref?.();
223
+ });
224
+ }
225
+ pi.on("session_start", async (_event: any, ctx: any) => { watchOmpCredentials(ctx); });
124
226
  pi.registerTool({
125
227
  name: PERMISSION_TOOL_NAME,
126
228
  label: "Antigravity ACP Permission",
@@ -141,6 +243,7 @@ export async function registerOmpAdapter(pi: any, stateDir: string) {
141
243
  pi.registerCommand("antigravity-acp", {
142
244
  description: "Inspect ACP status/account/tools/usage/context/cleanup, manage Antigravity login/logout, configure budgets, toggle debug, refresh models or set tool policies",
143
245
  async handler(args: string, ctx: any) {
246
+ watchOmpCredentials(ctx);
144
247
  const parts = args.trim().split(/\s+/);
145
248
  const [command, value] = parts;
146
249
  if (command === "cleanup") {
@@ -199,6 +302,7 @@ export async function registerOmpAdapter(pi: any, stateDir: string) {
199
302
  if (command === "login") {
200
303
  if (value) throw new Error("Usage: /antigravity-acp login");
201
304
  await prepareRuntime();
305
+ await beginFreshGoogleLogin();
202
306
  // Direct Antigravity Google login through the command UI. OMP's /login
203
307
  // runs the same flow and additionally stores the provider marker.
204
308
  await runtimes.get().provider.auth.oauth.login({
@@ -215,7 +319,7 @@ export async function registerOmpAdapter(pi: any, stateDir: string) {
215
319
  },
216
320
  });
217
321
  const auth = inspectAntigravityAuth();
218
- ctx.ui.notify(`Antigravity Google login finished. ACP auth: ${auth.status}${auth.authType ? ` (${auth.authType})` : ""}.\nRun /antigravity-acp account to inspect the stored state, or OMP /login to also record the provider marker in OMP's account list.`, "info");
322
+ ctx.ui.notify(`Antigravity Google login finished — fresh sign-in; ACP auth: ${auth.status}${auth.authType ? ` (${auth.authType})` : ""}.`, "info");
219
323
  return;
220
324
  }
221
325
  if (command === "logout") {
@@ -229,17 +333,17 @@ export async function registerOmpAdapter(pi: any, stateDir: string) {
229
333
  // removes the local token file plus the settings auth choice.
230
334
  await Promise.all(runtimes.values().map(bundle => bundle.runtime.logout()));
231
335
  await runtimes.closeAll();
232
- const keychainRemoved = keychain.remove();
233
- const ompMarker = await removeOmpCredentialRecord(ctx);
234
- const after = inspectAntigravityAuth();
235
- ctx.ui.notify([
236
- "Antigravity ACP logout",
237
- `ACP auth after logout: ${after.status}${after.authType ? ` (${after.authType})` : ""}`,
238
- `macOS keychain entry: ${keychainRemoved === undefined ? "not applicable (non-macOS)" : keychainRemoved ? "removed" : "not present or not removable"}`,
239
- "Saved ACP sessions: cleared",
240
- `OMP marker record: ${ompMarker === "removed" ? "removed" : ompMarker === "absent" ? "was not stored" : "could not be removed; run /logout to drop it"}`,
241
- "Run /antigravity-acp login or OMP /login to sign in again.",
242
- ].join("\n"), "info");
336
+ const keychainRemoved = await removeKeychainCredentialDurably();
337
+ // Removing the marker ourselves must not trigger the follow-up logout.
338
+ selfLogout = true;
339
+ let ompMarker: "removed" | "absent" | "unavailable";
340
+ try { ompMarker = await removeOmpCredentialRecord(ctx); } finally { selfLogout = false; }
341
+ // Keep the confirmation terse; /antigravity-acp account shows the details.
342
+ const cleared = ["Google credentials", "saved ACP sessions"];
343
+ if (keychainRemoved === true) cleared.push("the macOS keychain entry");
344
+ if (ompMarker === "removed") cleared.push("the OMP marker record");
345
+ const list = cleared.slice(0, -1).join(", ") + " and " + cleared[cleared.length - 1];
346
+ ctx.ui.notify(`Antigravity ACP: logged out — ${list} cleared.${ompMarker === "unavailable" ? " The OMP marker record could not be removed; run /logout to drop it." : ""}${keychainRemoved === false ? " The macOS keychain entry was not present or not removable." : ""}`, "info");
243
347
  return;
244
348
  }
245
349
  if (command === "account") {
@@ -247,17 +351,25 @@ export async function registerOmpAdapter(pi: any, stateDir: string) {
247
351
  const auth = inspectAntigravityAuth();
248
352
  let ompSource: string | undefined;
249
353
  try { ompSource = ctx?.modelRegistry?.authStorage?.keys?.describe?.("antigravity-acp", sessionIdOf(ctx)); } catch { /* host version dependent */ }
250
- const snapshot = await runtimes.get(sessionIdOf(ctx)).runtime.snapshot();
251
- ctx.ui.notify(JSON.stringify({
252
- provider: "antigravity-acp",
253
- ompCredential: ompCredentialSummary(ctx),
254
- ompAuthSource: ompSource,
255
- acpAuth: { status: auth.status, authType: auth.authType, tokenFile: auth.tokenFile, settingsFile: auth.settingsFile, usable: authReady() },
256
- macOSKeychainEntry: keychain.present(),
257
- savedAcpSessions: runtimes.get(sessionIdOf(ctx)).runtime.sessionStore?.read().length ?? 0,
258
- runtime: { permissionMode: snapshot.permissionMode, activeSessions: snapshot.bindings },
259
- note: "Google OAuth tokens stay in Antigravity-owned storage (~/.gemini/antigravity-acp or the macOS keychain). OMP stores only a non-secret marker. /antigravity-acp logout clears both sides; OMP /logout removes only the marker.",
260
- }, null, 2), "info");
354
+ const runtime = runtimes.get(sessionIdOf(ctx)).runtime;
355
+ const snapshot = await runtime.snapshot();
356
+ const omp = ompCredentialSummary(ctx);
357
+ const marker = omp.present === undefined ? "unknown (host did not expose the credential store)"
358
+ : omp.present ? `present, authorized ${omp.authorizedAt ?? "unknown time"} (${omp.record})`
359
+ : "not stored; run /login or /antigravity-acp login";
360
+ // Mirrors the upstream provider's status/doctor wording for the shared
361
+ // fields, with OMP-specific lines in the same style.
362
+ ctx.ui.notify([
363
+ "Antigravity ACP account",
364
+ `Authentication: ${auth.status}${auth.authType ? ` (${auth.authType})` : ""}`,
365
+ `Credential storage (preflight): ${describeCredentialStorage()}`,
366
+ `OMP marker record: ${marker}`,
367
+ ompSource ? `OMP auth source: ${ompSource}` : undefined,
368
+ `Saved ACP sessions: ${runtime.sessionStore?.read().length ?? 0}`,
369
+ `Requested permission mode: ${snapshot.permissionMode === "auto_edit" ? "auto-edit" : snapshot.permissionMode}`,
370
+ `Active bindings: ${snapshot.bindings}`,
371
+ "Google OAuth tokens stay in Antigravity-owned storage; OMP stores only a non-secret marker. /antigravity-acp logout clears both sides; OMP /logout also finishes the Antigravity-side cleanup.",
372
+ ].filter(Boolean).join("\n"), "info");
261
373
  return;
262
374
  }
263
375
  const { runtime } = runtimes.get(sessionIdOf(ctx));
@@ -423,6 +535,9 @@ export async function registerOmpAdapter(pi: any, stateDir: string) {
423
535
  name: "Google Antigravity (ACP)",
424
536
  async login(callbacks: any) {
425
537
  await prepareRuntime();
538
+ // Always offer a fresh Google sign-in; without this a new server
539
+ // process silently reuses the saved login and keeps the old account.
540
+ await beginFreshGoogleLogin();
426
541
  return runtimes.get().provider.auth.oauth.login({
427
542
  signal: callbacks.signal,
428
543
  notify(event: any) {
@@ -43549,6 +43549,21 @@ function applyCredentialStorageEnvironment(baseEnv = process.env, options = {})
43549
43549
  const decision = resolveCredentialStorageDecision({ ...options, env: baseEnv });
43550
43550
  return { ...baseEnv, ...decision.env };
43551
43551
  }
43552
+ function describeCredentialStorage(options = {}) {
43553
+ const decision = resolveCredentialStorageDecision(options);
43554
+ switch (decision.reason) {
43555
+ case "missing-keychain-entry":
43556
+ return `secure file (expected: keychain entry ${KEYCHAIN_SERVICE}/${KEYCHAIN_ACCOUNT} is absent, so spawned server processes are pinned with ${FORCE_FILE_STORAGE_ENV}=1)`;
43557
+ case "keychain-entry-present":
43558
+ return `macOS keychain (expected: keychain entry ${KEYCHAIN_SERVICE}/${KEYCHAIN_ACCOUNT} is present)`;
43559
+ case "explicit-override":
43560
+ return `${FORCE_FILE_STORAGE_ENV} set by the user`;
43561
+ case "no-refreshable-token-file":
43562
+ return "server default (expected: no refreshable token file to reuse)";
43563
+ default:
43564
+ return "server default (secure file)";
43565
+ }
43566
+ }
43552
43567
 
43553
43568
  // node_modules/pi-antigravity-acp-provider/src/acp/process.ts
43554
43569
  var STDERR_LIMIT = 16 * 1024;
@@ -60988,7 +61003,9 @@ export {
60988
61003
  SessionCleanup,
60989
61004
  TierConnection,
60990
61005
  typebox_exports as Type,
61006
+ clearAntigravityCredentials,
60991
61007
  createAntigravityProvider,
61008
+ describeCredentialStorage,
60992
61009
  ensureAntigravityAcpReady,
60993
61010
  hasAntigravityAuth,
60994
61011
  inspectAntigravityAuth,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-antigravity-acp-provider",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Google Antigravity ACP provider for Oh My Pi (OMP), with tool bridging and per-model thinking; derived from zacbemis/pi-antigravity-acp-provider",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/scripts/build.mjs CHANGED
@@ -11,7 +11,8 @@ const exports = [
11
11
  ["createAntigravityProvider", "provider.ts"],
12
12
  ["AntigravityRuntime, PERMISSION_TOOL_NAME, PERMISSION_RESULT_KIND", "runtime.ts"],
13
13
  ["loadConfig, savePermissionMode", "config.ts"],
14
- ["inspectAntigravityAuth, hasAntigravityAuth", "acp/antigravity.ts"],
14
+ ["inspectAntigravityAuth, hasAntigravityAuth, clearAntigravityCredentials", "acp/antigravity.ts"],
15
+ ["describeCredentialStorage", "acp/credential-storage.ts"],
15
16
  ["projectModels", "models.ts"],
16
17
  ["AcpSessionStore", "acp/session-store.ts"],
17
18
  ["ensureAntigravityAcpReady", "acp/setup.ts"],