@benjamolina/pi-antigravity-guard 0.4.3 → 0.4.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/README.md CHANGED
@@ -19,9 +19,9 @@ All seven rows below are registered for text. The exact `antigravity-gemini-3.8-
19
19
  | Public ID | Exposed Pi levels | Tool state | Admission |
20
20
  |---|---|---|---|
21
21
  | `antigravity-gemini-3.8-flash` | off, low, medium, high | Enabled (off, low, medium, high) | pi-json-tool-loop/gemini-3.8-flash-off-v1 |
22
- | `antigravity-gemini-3.7-flash` | off, low, medium, high | Disabled | missing-direct-evidence |
23
- | `antigravity-gemini-3.6-flash` | off, low, medium, high | Disabled | missing-direct-evidence |
24
- | `antigravity-gemini-3.1-pro` | off, low, high | Disabled | missing-direct-evidence |
22
+ | `antigravity-gemini-3.7-flash` | off, low, medium, high | Enabled (off, low, medium, high) | pi-json-tool-loop/gemini-3.7-flash-off-v1 |
23
+ | `antigravity-gemini-3.6-flash` | off, low, medium, high | Enabled (off, low, medium, high) | pi-json-tool-loop/gemini-3.6-flash-off-v1 |
24
+ | `antigravity-gemini-3.1-pro` | off, low, high | Enabled (off, low, high) | pi-json-tool-loop/gemini-3.1-pro-off-v1 |
25
25
  | `antigravity-claude-sonnet-4.6` | off, high | Disabled | claude-continuity-unproven |
26
26
  | `antigravity-claude-opus-4.6-thinking` | off, high | Disabled | claude-continuity-unproven |
27
27
  | `antigravity-gpt-oss-120b` | off, medium | Disabled | missing-direct-evidence |
package/dist/catalog.d.ts CHANGED
@@ -173,7 +173,7 @@ declare const CATALOG: readonly [{
173
173
  };
174
174
  };
175
175
  readonly replay: {
176
- readonly kind: "strip";
176
+ readonly kind: "same-public-model";
177
177
  };
178
178
  readonly response: {
179
179
  readonly kind: "gemini-envelope";
@@ -229,7 +229,7 @@ declare const CATALOG: readonly [{
229
229
  };
230
230
  };
231
231
  readonly replay: {
232
- readonly kind: "strip";
232
+ readonly kind: "same-public-model";
233
233
  };
234
234
  readonly response: {
235
235
  readonly kind: "gemini-envelope";
@@ -276,7 +276,7 @@ declare const CATALOG: readonly [{
276
276
  };
277
277
  };
278
278
  readonly replay: {
279
- readonly kind: "strip";
279
+ readonly kind: "same-public-model";
280
280
  };
281
281
  readonly response: {
282
282
  readonly kind: "gemini-envelope";
package/dist/catalog.js CHANGED
@@ -25,12 +25,12 @@ const CATALOG = freeze(defineCatalog([{
25
25
  maxTokens: 65_536,
26
26
  },
27
27
  routes: {
28
- off: { wireModel: "gemini-3.7-flash-low", thinking: { kind: "budget", budget: 0, includeThoughts: false }, tools: disabled("missing-direct-evidence") },
29
- low: { wireModel: "gemini-3.7-flash-low", thinking: { kind: "budget", budget: 1000, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
30
- medium: { wireModel: "gemini-3.7-flash-medium", thinking: { kind: "budget", budget: 4000, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
31
- high: { wireModel: "gemini-3.7-flash-high", thinking: { kind: "budget", budget: -1, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
28
+ off: { wireModel: "gemini-3.7-flash-low", thinking: { kind: "budget", budget: 0, includeThoughts: false }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.7-flash-off-v1", publicModelId: "antigravity-gemini-3.7-flash", reasoning: "off", wireModel: "gemini-3.7-flash-low" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
29
+ low: { wireModel: "gemini-3.7-flash-low", thinking: { kind: "budget", budget: 1000, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.7-flash-low-v1", publicModelId: "antigravity-gemini-3.7-flash", reasoning: "low", wireModel: "gemini-3.7-flash-low" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
30
+ medium: { wireModel: "gemini-3.7-flash-medium", thinking: { kind: "budget", budget: 4000, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.7-flash-medium-v1", publicModelId: "antigravity-gemini-3.7-flash", reasoning: "medium", wireModel: "gemini-3.7-flash-medium" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
31
+ high: { wireModel: "gemini-3.7-flash-high", thinking: { kind: "budget", budget: -1, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.7-flash-high-v1", publicModelId: "antigravity-gemini-3.7-flash", reasoning: "high", wireModel: "gemini-3.7-flash-high" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
32
32
  },
33
- replay: { kind: "strip" },
33
+ replay: { kind: "same-public-model" },
34
34
  response: { kind: "gemini-envelope", family: "gemini" },
35
35
  }, {
36
36
  publicId: "antigravity-gemini-3.6-flash",
@@ -41,12 +41,12 @@ const CATALOG = freeze(defineCatalog([{
41
41
  maxTokens: 65_536,
42
42
  },
43
43
  routes: {
44
- off: { wireModel: "gemini-3.6-flash-low", thinking: { kind: "omit" }, tools: disabled("missing-direct-evidence") },
45
- low: { wireModel: "gemini-3.6-flash-low", thinking: { kind: "budget", budget: 1000, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
46
- medium: { wireModel: "gemini-3.6-flash-medium", thinking: { kind: "budget", budget: 4000, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
47
- high: { wireModel: "gemini-3.6-flash-high", thinking: { kind: "budget", budget: -1, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
44
+ off: { wireModel: "gemini-3.6-flash-low", thinking: { kind: "omit" }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.6-flash-off-v1", publicModelId: "antigravity-gemini-3.6-flash", reasoning: "off", wireModel: "gemini-3.6-flash-low" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
45
+ low: { wireModel: "gemini-3.6-flash-low", thinking: { kind: "budget", budget: 1000, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.6-flash-low-v1", publicModelId: "antigravity-gemini-3.6-flash", reasoning: "low", wireModel: "gemini-3.6-flash-low" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
46
+ medium: { wireModel: "gemini-3.6-flash-medium", thinking: { kind: "budget", budget: 4000, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.6-flash-medium-v1", publicModelId: "antigravity-gemini-3.6-flash", reasoning: "medium", wireModel: "gemini-3.6-flash-medium" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
47
+ high: { wireModel: "gemini-3.6-flash-high", thinking: { kind: "budget", budget: -1, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.6-flash-high-v1", publicModelId: "antigravity-gemini-3.6-flash", reasoning: "high", wireModel: "gemini-3.6-flash-high" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
48
48
  },
49
- replay: { kind: "strip" },
49
+ replay: { kind: "same-public-model" },
50
50
  response: { kind: "gemini-envelope", family: "gemini" },
51
51
  }, {
52
52
  publicId: "antigravity-gemini-3.1-pro",
@@ -57,11 +57,11 @@ const CATALOG = freeze(defineCatalog([{
57
57
  maxTokens: 65_535,
58
58
  },
59
59
  routes: {
60
- off: { wireModel: "gemini-3.1-pro-low", thinking: { kind: "omit" }, tools: disabled("missing-direct-evidence") },
61
- low: { wireModel: "gemini-3.1-pro-low", thinking: { kind: "budget", budget: 1001, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
62
- high: { wireModel: "gemini-pro-agent", thinking: { kind: "budget", budget: 10001, includeThoughts: true }, tools: disabled("missing-direct-evidence") },
60
+ off: { wireModel: "gemini-3.1-pro-low", thinking: { kind: "omit" }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.1-pro-off-v1", publicModelId: "antigravity-gemini-3.1-pro", reasoning: "off", wireModel: "gemini-3.1-pro-low" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
61
+ low: { wireModel: "gemini-3.1-pro-low", thinking: { kind: "budget", budget: 1001, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.1-pro-low-v1", publicModelId: "antigravity-gemini-3.1-pro", reasoning: "low", wireModel: "gemini-3.1-pro-low" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
62
+ high: { wireModel: "gemini-pro-agent", thinking: { kind: "budget", budget: 10001, includeThoughts: true }, tools: enabled({ record: "pi-json-tool-loop", revision: "gemini-3.1-pro-high-v1", publicModelId: "antigravity-gemini-3.1-pro", reasoning: "high", wireModel: "gemini-pro-agent" }, GEMINI_PARAMETERS_JSON_SCHEMA_PROFILE) },
63
63
  },
64
- replay: { kind: "strip" },
64
+ replay: { kind: "same-public-model" },
65
65
  response: { kind: "gemini-envelope", family: "gemini" },
66
66
  }, {
67
67
  publicId: "antigravity-claude-sonnet-4.6",
package/dist/context.js CHANGED
@@ -182,8 +182,12 @@ function resolveOutputTokens(maxTokens, maxAllowed, thinking) {
182
182
  return thinking.kind === "budget" && thinking.budget > 0 ? Math.max(4096, thinking.budget + 1024) : 4096;
183
183
  }
184
184
  function geminiRequiresSignedToolReplay(wireModel) {
185
- const match = /^gemini-(\d+)(?:[.-])/.exec(wireModel);
186
- return match !== null && Number(match[1]) >= 3;
185
+ if (!wireModel.startsWith("gemini-"))
186
+ return false;
187
+ const match = /^gemini-(\d+)/.exec(wireModel);
188
+ if (match)
189
+ return Number(match[1]) >= 3;
190
+ return true;
187
191
  }
188
192
  function validThoughtSignature(value) {
189
193
  if (typeof value !== "string" || !value || value.length % 4 !== 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benjamolina/pi-antigravity-guard",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Pi adapter for Antigravity Guard",
5
5
  "type": "module",
6
6
  "license": "MIT",