@hiper2d/ai-agents 0.34.1 → 0.35.0

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/index.d.mts CHANGED
@@ -565,7 +565,7 @@ declare function getProviderSignatureFields(aiType: string, signature?: string):
565
565
  * Verified against provider docs 2026-08-30:
566
566
  * - OpenAI GPT-5.x: minimal|low|medium|high|xhigh
567
567
  * - Anthropic adaptive thinking (Fable 5 / Opus 4.8 / Sonnet 5): low|medium|high|xhigh|max
568
- * - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro and 3.7 Flash reject minimal)
568
+ * - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro, 4 Argon and 4 Hydrogen reject minimal)
569
569
  * - Z.AI GLM-5.3 / 5.3-Flash: low|high|max only
570
570
  * - DeepSeek V4: low|high|max (the API itself aliases medium → high)
571
571
  * - Sakana Fugu (verified live 2026-09-20): high|xhigh|max on every model ("low" → 400 naming
package/dist/index.d.ts CHANGED
@@ -565,7 +565,7 @@ declare function getProviderSignatureFields(aiType: string, signature?: string):
565
565
  * Verified against provider docs 2026-08-30:
566
566
  * - OpenAI GPT-5.x: minimal|low|medium|high|xhigh
567
567
  * - Anthropic adaptive thinking (Fable 5 / Opus 4.8 / Sonnet 5): low|medium|high|xhigh|max
568
- * - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro and 3.7 Flash reject minimal)
568
+ * - Gemini 3.x thinkingLevel: minimal|low|medium|high (3.1 Pro, 4 Argon and 4 Hydrogen reject minimal)
569
569
  * - Z.AI GLM-5.3 / 5.3-Flash: low|high|max only
570
570
  * - DeepSeek V4: low|high|max (the API itself aliases medium → high)
571
571
  * - Sakana Fugu (verified live 2026-09-20): high|xhigh|max on every model ("low" → 400 naming
package/dist/index.js CHANGED
@@ -1227,14 +1227,27 @@ var SupportedAiModels = {
1227
1227
  tags: ["expensive"]
1228
1228
  },
1229
1229
  [LLM_CONSTANTS.GEMINI_FLASH]: {
1230
- // Repointed 3.6 → 3.7 (2026-08-13) → 3.8 (2026-09-02); stable picker id, same pattern as gpt.
1231
- // 3.7 rejected thinkingLevel 'minimal' (low|medium|high only), unlike 3.5/3.6 — 3.8 untested
1232
- // on 'minimal', so keep the pin at 'medium' or above.
1233
- displayName: "Gemini 3.8 Flash",
1234
- modelApiName: "gemini-3.8-flash",
1230
+ // Repointed 3.6 → 3.7 (2026-08-13) → 3.8 (2026-09-02) → Gemini 4 Hydrogen (2026-11-12);
1231
+ // stable picker id, same pattern as gpt — the slot keeps the name `gemini-flash` although
1232
+ // Google dropped "Flash" from the model's name. Id verified against GET /v1beta/models
1233
+ // (1M in / 65K out). Accepts low|medium|high, rejects 'minimal' (400, probed — as did
1234
+ // 3.7 and 3.8 Flash).
1235
+ // Pinned 'low' (3.8 Flash ran 'medium'): Hydrogen is twice the price and thinks about
1236
+ // twice as much per level. Werewolf day-2 vote fixture, 3 runs a level, 2026-11-12:
1237
+ // Hydrogen low 3.4-3.9s 211-263 thinking tokens 0.58-0.60¢
1238
+ // Hydrogen medium 5.4-6.7s 528-761 0.81-0.98¢
1239
+ // Hydrogen high 6.4-7.8s 839-1175 1.03-1.29¢
1240
+ // 3.8 Flash medium 5.1-7.1s 203-315 0.29-0.34¢
1241
+ // 3.8 Flash low 2.1-2.3s 0 0.21¢
1242
+ // So 'low' is the level that thinks as much as the model it replaces did, a little
1243
+ // faster, at twice the cost instead of three times; every run named the same vote target
1244
+ // with a reason as specific. No `temperature` (see the Pro note). No speed tag until it
1245
+ // has 100+ production turns (3.8 Flash had none: p50 9.9s).
1246
+ displayName: "Gemini 4 Hydrogen",
1247
+ modelApiName: "gemini-4-hydrogen",
1235
1248
  apiKeyName: API_KEY_CONSTANTS.GOOGLE,
1236
1249
  hasThinking: true,
1237
- reasoningEffort: "medium"
1250
+ reasoningEffort: "low"
1238
1251
  },
1239
1252
  [LLM_CONSTANTS.GEMINI_LITE]: {
1240
1253
  displayName: "Gemini 3.5 Flash Lite",
@@ -1742,13 +1755,12 @@ var MODEL_PRICING = {
1742
1755
  extendedContextThresholdTokens: 2e5
1743
1756
  },
1744
1757
  [SupportedAiModels[LLM_CONSTANTS.GEMINI_FLASH].modelApiName]: {
1745
- // 3.8 Flash (2026-09-02) launched at the same rates as 3.7. 3.7's launch pricing was
1746
- // scheduled to double to $1.50/$7.50/$0.15 on 2027-01-01 (ai.google.dev pricing page,
1747
- // fetched 2026-08-13) — ACTION NEEDED then: re-check whether 3.8 follows and update.
1748
- // Cache storage cost ($0.50 / 1M tokens per hour) is not tracked here — the
1749
- // schema only models per-token call costs, not time-based storage.
1750
- inputPrice: 0.75,
1751
- outputPrice: 3.75,
1758
+ // Gemini 4 Hydrogen (ai.google.dev pricing page, Standard tier, read 2026-11-12): one
1759
+ // flat tier, twice the input and output rates of the 3.8 Flash it replaced
1760
+ // ($0.75 / $3.75) with the same $0.075 cached rate (5% of input, as on Argon). Implicit
1761
+ // caching only — explicit caching is not supported, so there is no storage cost.
1762
+ inputPrice: 1.5,
1763
+ outputPrice: 7.5,
1752
1764
  cacheHitPrice: 0.075
1753
1765
  },
1754
1766
  [SupportedAiModels[LLM_CONSTANTS.GEMINI_LITE].modelApiName]: {