omp-antigravity-acp-provider 0.1.17 → 0.1.18

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.17 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.18 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
 
@@ -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.17** 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.18** 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.17
83
+ omp plugin install npm:omp-antigravity-acp-provider@0.1.18
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.
@@ -27,16 +27,9 @@ export const keychain = {
27
27
  return true;
28
28
  } catch { return false; }
29
29
  },
30
- // Extract only the email claim from the ACP item's stored id_token. The
31
- // token bytes stay in this process and are never logged or persisted; the
32
- // agy CLI's separate keychain item is never read.
33
- accountEmail(): string | undefined {
34
- if (process.platform !== "darwin") return undefined;
35
- try {
36
- const raw = execFileSync("/usr/bin/security", ["find-generic-password", "-s", "gemini", "-a", "antigravity-acp", "-w"], { timeout: 3000 });
37
- return emailFromTokenJson(raw.toString("utf8"));
38
- } catch { return undefined; }
39
- },
30
+ // Never read the stored secret: the item's ACL does not authorize the
31
+ // security CLI, so every `find-generic-password -w` would pop the macOS
32
+ // keychain password dialog. Only attribute-only lookups are prompt-free.
40
33
  };
41
34
 
42
35
  function emailFromTokenJson(raw: string): string | undefined {
@@ -49,13 +42,14 @@ function emailFromTokenJson(raw: string): string | undefined {
49
42
  } catch { return undefined; }
50
43
  }
51
44
 
52
- // The signed-in Google account, from the ACP server's own stored token. The
53
- // token file is preferred because it needs no keychain access.
45
+ // The signed-in Google account, from the ACP server's token file only.
46
+ // Keychain-stored tokens report no email: reading the macOS keychain secret
47
+ // would require the account password on every call, so that path is removed.
54
48
  export function antigravityAccountEmail(): string | undefined {
55
49
  try {
56
50
  return emailFromTokenJson(fs.readFileSync(path.join(resolveAntigravityAcpDirectory(), "acp_token.json"), "utf8"));
57
- } catch { /* keychain storage or signed out */ }
58
- return keychain.accountEmail();
51
+ } catch { /* no token file */ }
52
+ return undefined;
59
53
  }
60
54
 
61
55
  // Timing knobs for following OMP-side logouts; mutable so offline tests can
@@ -1,6 +1,5 @@
1
1
  import { describeCredentialStorage, inspectAntigravityAuth, savePermissionMode } from "./runtime.mjs";
2
- import { antigravityAccountEmail, authReady, formatLogoutSummary, ompCredentialSummary, type OmpAuthCoordinator, type OmpCommandContext } from "./auth-sync.ts";
3
- import { resolveContextOptions, saveContextSettings, updateContextSettings, type ContextSettings } from "./context-settings.ts";
2
+ import { antigravityAccountEmail, authReady, formatLogoutSummary, keychain, ompCredentialSummary, type OmpAuthCoordinator, type OmpCommandContext } from "./auth-sync.ts";
4
3
  import { parseNativeToolMode, type NativeToolMode } from "./tool-routing.ts";
5
4
  import { saveToolPolicy, type ToolPolicy } from "./tool-policy.ts";
6
5
  import type { CatalogStore, ConfiguredCatalogModel } from "./catalog-store.ts";
@@ -216,7 +215,7 @@ export function createAntigravityCommandHandler(deps: CommandControllerDeps) {
216
215
  // fields, with OMP-specific lines in the same style.
217
216
  ctx.ui.notify([
218
217
  "Antigravity ACP account",
219
- `Google account: ${antigravityAccountEmail() ?? "not signed in"}`,
218
+ `Google account: ${antigravityAccountEmail() ?? (keychain.present() === true ? "signed in (token in macOS keychain; email not read)" : "not signed in")}`,
220
219
  `Authentication: ${auth.status}${auth.authType ? ` (${auth.authType})` : ""}`,
221
220
  `Credential storage (preflight): ${describeCredentialStorage()}`,
222
221
  `OMP marker record: ${marker}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-antigravity-acp-provider",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
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",