@benjamolina/pi-antigravity-guard 0.4.4 → 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.
Files changed (2) hide show
  1. package/dist/context.js +6 -2
  2. package/package.json +1 -1
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.4",
3
+ "version": "0.4.5",
4
4
  "description": "Pi adapter for Antigravity Guard",
5
5
  "type": "module",
6
6
  "license": "MIT",