@estebanforge/pi-antigravity-bridge 1.10.4 → 1.10.5

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.10.5] - 2026-11-13
6
+
7
+ ### Changed
8
+
9
+ - **The AskAntigravity default model is now `gemini-4-hydrogen` (was `flash`).** The default resolves as a catalog tiered base: the tier suffix comes from `AGY_DEFAULT_THINKING` or the call's thinking param (`gemini-4-hydrogen-medium` at the default medium), so the default no longer tracks the newest Flash generation. To make that resolution possible the shared resolver (`@estebanforge/pi-ask-shared`, also consumed by pi-ask-antigravity) now resolves a single-base catalog tiered slug BEFORE the bare-"gemini" Flash fallthrough — before, any unrecognized `gemini-<line>` base silently resolved as Flash; version pins across mixed bases (`gemini-3.6`) keep the Flash family semantics. Sequencing: publish shared first, then bump this package's shared floor to the version carrying that change and run npm install, then publish this package (a floor must point at a version npm has). The offline fallback catalog lists `gemini-4-hydrogen` first so the default stays resolvable when `agy models` fails, and the `/agy model` picker offers the exact slug alongside the aliases.
10
+
5
11
  ## [1.10.4] - 2026-11-10
6
12
 
7
13
  ### Fixed
package/README.md CHANGED
@@ -184,7 +184,7 @@ For isolation when running any agent that executes commands without a confirmati
184
184
  | `AGY_READONLY` | `1`/`true`/`on` (or any set value except `0`/`false`/`off`/empty) turns every provider turn and the `AskAntigravity` tool into a visible refusal (fail-closed: the CLI has no review-only enforcement on any path, [#1181](https://github.com/google-antigravity/antigravity-cli/issues/1181)). Wins over the config file. |
185
185
  | `AGY_SKIP_PERMISSIONS` | `1`/`true` (default) to pass `--dangerously-skip-permissions` so commands don't hang on an unanswerable prompt in `-p` mode. `0`/`false` to prompt (hangs any `run_command` non-interactively). Wins over the config file. |
186
186
  | `AGY_USAGE_ESTIMATE` | Fallback ACP token display when the server omits usage: `estimate` (default; live client-side per-delta estimates), `direct`, `off`. Exact server usage always wins. Wins over the config file. |
187
- | `AGY_DEFAULT_MODEL` | Default model alias for the `AskAntigravity` tool (`flash`/`pro`/`gemini`, or a tier/version qualifier). Wins over the config file. |
187
+ | `AGY_DEFAULT_MODEL` | Default model for the `AskAntigravity` tool: `flash`/`pro`/`gemini`, or an exact id such as `gemini-4-hydrogen`. Default `gemini-4-hydrogen`; the tier suffix rides `AGY_DEFAULT_THINKING`. Wins over the config file. |
188
188
  | `AGY_DEFAULT_THINKING` | Default thinking tier for the `AskAntigravity` tool: `low`/`medium`/`high`. Anything else falls back to `medium`. Wins over the config file. |
189
189
  | `AGY_DEBUG` | `1`/`true`/`on` writes the full trail to the daily log (driver lifecycle, raw bridge traffic). Default off: **only `error` records land on disk** - routine disk writes are zero for regular users, and warnings surface as UI toasts instead. |
190
190
  | `AGY_APPROVALS` | Approval gate mode: `auto` (default; gate on only when a pi permission extension is detected), `shadow` (force the shadow-tool gate on), `dedicated`, `off`. Unknown values fall back to `auto`, so a typo can never force the gate on. Wins over `config.approvals.gateMode`. |
@@ -1738,7 +1738,7 @@ async function openAgyPicker(ui: ExtensionUIContext, ctx: AgyCommandCtx): Promis
1738
1738
  description:
1739
1739
  "AskAntigravity one-shot delegation tool: model used when its caller omits the model param. Callers may override per call; this is only the fallback. flash/pro/gemini, or an exact id. Does not affect the provider model you pick in /model.",
1740
1740
  currentValue: config.defaultModel,
1741
- values: ["flash", "pro", "gemini"],
1741
+ values: ["flash", "pro", "gemini", "gemini-4-hydrogen"],
1742
1742
  },
1743
1743
  {
1744
1744
  id: "thinking",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@estebanforge/pi-antigravity-bridge",
3
- "version": "1.10.4",
3
+ "version": "1.10.5",
4
4
  "description": "Gemini provider for Pi on the Antigravity ACP server (official Google ACP) or the stream-json agy CLI. Use antigravity/* models in Pi. Full /model picker support. Models runs Pi's tools. ToS safe to use.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -54,7 +54,7 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
- "@estebanforge/pi-ask-shared": "^0.1.4",
57
+ "@estebanforge/pi-ask-shared": "^0.1.6",
58
58
  "@estebanforge/pi-tui-dialogs": "^0.1.3",
59
59
  "@modelcontextprotocol/sdk": "^1.31.0"
60
60
  }
package/src/config.ts CHANGED
@@ -201,7 +201,7 @@ const DEFAULTS: AgyConfig = {
201
201
  mode: "accept-edits",
202
202
  readOnly: false,
203
203
  skipPermissions: true,
204
- defaultModel: "flash",
204
+ defaultModel: "gemini-4-hydrogen",
205
205
  defaultThinking: "medium",
206
206
  askTool: true,
207
207
  webTools: false,
package/src/models.ts CHANGED
@@ -395,6 +395,10 @@ export function toPiModel(entry: AgyModelEntry, input: Array<"text" | "image"> =
395
395
  * can still select a model and get a clear runtime error instead of an empty
396
396
  * list. Update these when agy ships new Gemini versions. */
397
397
  export const FALLBACK_MODELS: AgyModelEntry[] = [
398
+ // First entry = offline picker default; keep it aligned with the configured
399
+ // AskAntigravity default (config.ts) so the default stays resolvable when
400
+ // `agy models` fails.
401
+ { full: "gemini-4-hydrogen", id: "gemini-4-hydrogen", efforts: ["low", "medium", "high"] },
398
402
  { full: "gemini-3.8-flash", id: "gemini-3-8-flash", efforts: ["low", "medium", "high"] },
399
403
  { full: "gemini-3.1-pro", id: "gemini-3-1-pro", efforts: ["low", "high"] },
400
404
  { full: "claude-sonnet-5-5", id: "claude-sonnet-5-5", efforts: ["low", "medium", "high"] },