@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.
- package/dist/context.js +6 -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
|
-
|
|
186
|
-
|
|
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)
|