@warlock.js/ai-google 4.3.0 → 4.5.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +3 -7
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -4,17 +4,13 @@ All notable changes to `@warlock.js/ai-google` are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
6
6
 
7
- ## [Unreleased]
8
-
9
7
  ## 4.3.0 - 2026-06-21
10
8
 
11
9
  ### Added
12
10
 
13
- - Cost-truth contract wiring (additive, non-breaking):
14
- - `Usage.reasoningTokens` is now populated from Gemini's `usageMetadata.thoughtsTokenCount` (thinking-phase tokens), alongside the existing `Usage.cachedTokens` from `cachedContentTokenCount`. Both surface only when reported `> 0`.
15
- - `ModelCallOptions.reasoning` maps to Gemini's `config.thinkingConfig`: `reasoning.maxTokens` `thinkingBudget` directly, `reasoning.effort` a bucketed budget (`low` 1024 / `medium` 8192 / `high` 24576). Honored only for `reasoning`-capable models.
16
- - `ModelCapabilities` now reports `reasoning: true`, `promptCaching: true`, and `audio` / `pdf` (mirroring the multimodal `vision` inference) for Gemini models. New `GoogleModelConfig` overrides: `reasoning`, `audio`, `pdf`.
17
- - `ModelCallOptions.cacheControl` is accepted as a graceful no-op (Gemini has no per-call cache-write breakpoint; read-side `cachedTokens` accounting is unaffected).
11
+ - `Usage.reasoningTokens` is populated from Gemini's `thoughtsTokenCount` (alongside `cachedTokens`), surfaced only when reported `> 0`.
12
+ - `ModelCallOptions.reasoning` maps to Gemini's `thinkingConfig` (`maxTokens` `thinkingBudget`, `effort` a bucketed budget) for reasoning-capable models.
13
+ - `ModelCapabilities` now reports `reasoning`, `promptCaching`, `audio`, and `pdf`; `cacheControl` is accepted as a graceful no-op.
18
14
 
19
15
  ## 4.1.15
20
16
 
package/package.json CHANGED
@@ -15,12 +15,12 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@google/genai": "^2.4.0",
18
- "@warlock.js/logger": "4.3.0"
18
+ "@warlock.js/logger": "4.5.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@warlock.js/ai": "4.3.0"
21
+ "@warlock.js/ai": "4.5.0"
22
22
  },
23
- "version": "4.3.0",
23
+ "version": "4.5.0",
24
24
  "main": "./cjs/index.cjs",
25
25
  "module": "./esm/index.mjs",
26
26
  "types": "./esm/index.d.mts",