omp-antigravity-acp-provider 0.1.37 → 0.1.38

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/AGENT_INSTALL.md CHANGED
@@ -18,5 +18,9 @@ Steps:
18
18
  5. Run `omp models antigravity-acp --json`. Cached listing must not start the ACP server. An empty catalog before sign-in is acceptable; report it instead of retrying in a loop.
19
19
  6. Tell the user to restart OMP, then run `/login` → "Google Antigravity (ACP)" and `/antigravity-acp refresh` inside OMP. Do not perform these steps yourself.
20
20
 
21
+ Notes:
22
+ - The adapter auto-selects the newer of the `agy` CLI's bundled server and its managed registry runtime; no channel configuration is required. An explicit `AGY_ACP_BIN` environment variable overrides the choice — do not set it unless the user asks.
23
+ - ACP sessions are stored under `~/.gemini/antigravity-acp/`. The user's personal `agy` CLI chats under `~/.gemini/antigravity-cli/` are never read or deleted by the adapter.
24
+
21
25
  Acceptance: one adapter installed, `omp models antigravity-acp --json` returns valid JSON, and no credential material appears in any output. Report the commands run, the adapter version, any model IDs and the first step that failed.
22
26
  ```
package/README.md CHANGED
@@ -97,6 +97,23 @@ This shows the runtime, native-tool mode and usage state. Send a short prompt to
97
97
 
98
98
  The installation runbook is in [AGENT_INSTALL.md](AGENT_INSTALL.md). Hand that file to an agent with terminal access; it installs and verifies the adapter without starting an interactive login. For example: `Read AGENT_INSTALL.md and follow it.`
99
99
 
100
+ ## ACP server channels and selection
101
+
102
+ Google ships the same ACP server through two channels; the adapter picks between them automatically at every OMP startup.
103
+
104
+ - **`agy` CLI** — the self-updating command-line product. When its bundled server is newer than the registry runtime, the adapter launches it through a generated `AGY_ACP_BIN` wrapper, so CLI-first models (for example Claude and GPT-OSS) appear without manual setup.
105
+ - **Managed runtime** — the registry-signed release downloaded and verified into `~/.local/opt/agy-acp/`. Used when the CLI is missing or not newer, and installed automatically when neither channel exists.
106
+
107
+ Selection order:
108
+
109
+ 1. An explicit `AGY_ACP_BIN` always wins. Point it at an `agy acp`-capable executable or wrapper to force a channel.
110
+ 2. Otherwise the newer server version wins; ties go to the managed runtime.
111
+ 3. With neither present, the managed runtime is downloaded from Google's registry on next use.
112
+
113
+ Session storage follows the server's own `--app_data_dir`. The generated wrapper pins `antigravity-acp` — the managed runtime's own default — so CLI-launched ACP sessions land in `~/.gemini/antigravity-acp/`, where `/antigravity-acp cleanup` and session ownership tracking operate. Personal `agy` CLI chats stay in `~/.gemini/antigravity-cli/` and are never read or deleted by the adapter. `GEMINI_HOME` relocates the managed runtime's tree (upstream behavior); the `agy` CLI stores under `~/.gemini` regardless.
114
+
115
+ The active channel and its versions are recorded in `~/.omp/agent/antigravity-acp-provider/acp-runtime-source.json` whenever the CLI is chosen.
116
+
100
117
  ## Commands
101
118
 
102
119
  | Command | Purpose |
@@ -102,7 +102,10 @@ function compareVersions(left: string, right: string): number {
102
102
  }
103
103
 
104
104
  function writeCliWrapper(file: string, agyPath: string): void {
105
- const script = `#!/bin/sh\nexec '${agyPath.replace(/'/g, "'\\''")}' acp "$@"\n`;
105
+ // --app_data_dir=antigravity-acp is the managed .par's own default: the CLI
106
+ // binary would otherwise default to antigravity-cli, mixing ACP sessions
107
+ // with personal CLI chats outside session cleanup's tracked tree.
108
+ const script = `#!/bin/sh\nexec '${agyPath.replace(/'/g, "'\\''")}' acp --app_data_dir=antigravity-acp "$@"\n`;
106
109
  try {
107
110
  if (fs.readFileSync(file, "utf8") === script) return;
108
111
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omp-antigravity-acp-provider",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "ompAcpBundle": 1,
5
5
  "description": "Google Antigravity ACP provider for Oh My Pi (OMP), with tool bridging and per-model thinking; derived from zacbemis/pi-antigravity-acp-provider",
6
6
  "type": "module",