@warlock.js/ai-google 4.4.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 -5
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -8,11 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
8
8
 
9
9
  ### Added
10
10
 
11
- - Cost-truth contract wiring (additive, non-breaking):
12
- - `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`.
13
- - `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.
14
- - `ModelCapabilities` now reports `reasoning: true`, `promptCaching: true`, and `audio` / `pdf` (mirroring the multimodal `vision` inference) for Gemini models. New `GoogleModelConfig` overrides: `reasoning`, `audio`, `pdf`.
15
- - `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.
16
14
 
17
15
  ## 4.1.15
18
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.4.0"
18
+ "@warlock.js/logger": "4.5.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@warlock.js/ai": "4.4.0"
21
+ "@warlock.js/ai": "4.5.0"
22
22
  },
23
- "version": "4.4.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",