@shop-os/modelkit 0.1.11 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -9,7 +9,57 @@ header in the release PR.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
- ## [0.1.11] - unreleased (publish pending)
12
+ ## [0.2.2] - 2026-09-15
13
+
14
+ Option audit against provider docs, limited to options a product surface sets.
15
+
16
+ ### Added
17
+ - Veo 3.1, 3.1 Fast and 3.1 Lite accept `seed` (sent as `config.seed`).
18
+ - Seedream 5.0 Pro accepts `outputFormat` png/jpeg (sent as `output_format`; webp is coerced to png with a warning).
19
+ - Gemini 3 image rows declare `references.images: 14`, the provider cap.
20
+
21
+ ### Fixed
22
+ - `liveCatalog` and the prime state are one process-wide singleton (on `globalThis`). The root and `./catalog` bundles each carried their own copy, so a server that primed through the root entry still served the snapshot to code importing `@shop-os/modelkit/catalog`.
23
+
24
+ ### Changed
25
+ - gpt-image-2.5-sunburst/flare `qualityOptions` add `xhigh` and `max`.
26
+ - Veo 3.1 Fast and Lite durations add 6 s. Veo 3.1 Lite drops `references` (not supported for Lite).
27
+ - Gemini Omni rows allow 3 reference videos (was 1).
28
+ - Seedance rows declare `ratioIgnoredWith: ["firstFrame", "sourceVideo"]` to match the adapter.
29
+ - kling-v3-omni-video aspect ratios are 16:9, 9:16, 1:1, adaptive (provider list).
30
+ - seedream-4.5 drops the 1K tier (provider minimum 2K). gemini-2.5-flash-image is 1K only. muse-image-1.0 drops 4:5 and 5:4.
31
+ - qwen-image-2-pro no longer requires a reference image.
32
+ - Prodia nano-banana rows drop `seed` (the adapter never sent it).
33
+
34
+ ## [0.2.1] - 2026-09-15
35
+
36
+ ### Added
37
+ - `gpt-image-2`, `gpt-image-2.5-sunburst` and `gpt-image-2.5-flare` declare `outputFormat`; the `openai-image` adapter sends `output_format` (png or jpeg) and labels the result mime to match.
38
+
39
+ ### Changed
40
+ - `outputFormat: "webp"` on GPT image models is coerced to png with an `option_ignored` warning: the API returns PNG bytes for webp (openai/openai-node#1850).
41
+
42
+ ## [0.2.0] - 2026-09-14
43
+
44
+ ### Added
45
+ - `CatalogModelSchema` and `CatalogSchema` (`src/catalog/schema.ts`): Zod schema mirroring
46
+ `CatalogModel` field for field, tolerating unknown keys. Active rows need `display`, active
47
+ text rows need `capabilities.contextWindow`, `replacedBy` must not equal `id`, and ids and
48
+ aliases stay globally unique. `MODELS` passes it.
49
+ - `liveCatalog` (`src/catalog/live.ts`): the shared live catalog, starting as `MODELS`.
50
+ - `primeCatalog` and `resetLiveCatalog` (`src/catalog/load.ts`): fetch, validate and swap the
51
+ live catalog from `GET /models/catalog`, with `If-None-Match`, a `CatalogCache` last-good
52
+ fallback, the `MODELS` snapshot fallback, and a background refresh every `ttlMs`. Never
53
+ throws. Exported from both the node entry and `@shop-os/modelkit/catalog`.
54
+ - `fileCatalogCache` (`src/catalog/file-cache.ts`, node entry only): file-backed last-good
55
+ store, written atomically via `path + ".tmp"` plus rename.
56
+ - `Catalog.replace(rows)`: atomic swap of the id and alias maps.
57
+
58
+ ### Changed
59
+ - `createModelKit` reads `liveCatalog` when no `catalogOverride` is given, so a primed catalog
60
+ reaches an existing kit without a rebuild.
61
+
62
+ ## [0.1.11] - 2026-09-13
13
63
 
14
64
  ### Added
15
65
  - `display.logo` on every catalog row except `mmaudio` and `bg-remove`: text rows carry the
@@ -189,8 +239,11 @@ First publish, renamed from `@shop-os/model-sdk`.
189
239
  - Keys per tier (pro, enterprise with per-provider fallback); one retry classifier, one error
190
240
  type, one usage event with the canonical id.
191
241
 
192
- [Unreleased]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.1.11...dev
193
- [0.1.11]: https://github.com/Shop-OS/shopos-backend-ts/compare/f0981d9b9...dev
242
+ [Unreleased]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.2.0...dev
243
+ [0.2.2]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.2.1...modelkit-0.2.2
244
+ [0.2.1]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.2.0...modelkit-0.2.1
245
+ [0.2.0]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.1.11...modelkit-0.2.0
246
+ [0.1.11]: https://github.com/Shop-OS/shopos-backend-ts/compare/f0981d9b9...bb3b16354
194
247
  [0.1.10]: https://github.com/Shop-OS/shopos-backend-ts/compare/f17e822e2...f0981d9b9
195
248
  [0.1.9]: https://github.com/Shop-OS/shopos-backend-ts/compare/1958a5615...dev
196
249
  [0.1.8]: https://github.com/Shop-OS/shopos-backend-ts/commit/9661a109d