@shop-os/modelkit 0.1.10 → 0.2.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/CHANGELOG.md +46 -3
- package/dist/catalog.cjs +463 -110
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +42 -9
- package/dist/catalog.d.ts +42 -9
- package/dist/catalog.js +463 -110
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +608 -227
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +44 -10
- package/dist/index.d.ts +44 -10
- package/dist/index.js +601 -227
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,48 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
-
## [0.
|
|
12
|
+
## [0.2.0] - 2026-09-14
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- `CatalogModelSchema` and `CatalogSchema` (`src/catalog/schema.ts`): Zod schema mirroring
|
|
16
|
+
`CatalogModel` field for field, tolerating unknown keys. Active rows need `display`, active
|
|
17
|
+
text rows need `capabilities.contextWindow`, `replacedBy` must not equal `id`, and ids and
|
|
18
|
+
aliases stay globally unique. `MODELS` passes it.
|
|
19
|
+
- `liveCatalog` (`src/catalog/live.ts`): the shared live catalog, starting as `MODELS`.
|
|
20
|
+
- `primeCatalog` and `resetLiveCatalog` (`src/catalog/load.ts`): fetch, validate and swap the
|
|
21
|
+
live catalog from `GET /models/catalog`, with `If-None-Match`, a `CatalogCache` last-good
|
|
22
|
+
fallback, the `MODELS` snapshot fallback, and a background refresh every `ttlMs`. Never
|
|
23
|
+
throws. Exported from both the node entry and `@shop-os/modelkit/catalog`.
|
|
24
|
+
- `fileCatalogCache` (`src/catalog/file-cache.ts`, node entry only): file-backed last-good
|
|
25
|
+
store, written atomically via `path + ".tmp"` plus rename.
|
|
26
|
+
- `Catalog.replace(rows)`: atomic swap of the id and alias maps.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- `createModelKit` reads `liveCatalog` when no `catalogOverride` is given, so a primed catalog
|
|
30
|
+
reaches an existing kit without a rebuild.
|
|
31
|
+
|
|
32
|
+
## [0.1.11] - 2026-09-13
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
- `display.logo` on every catalog row except `mmaudio` and `bg-remove`: text rows carry the
|
|
36
|
+
vendor mark per provider (the same CDN files Cowork's chat fallback used), MiniMax video rows
|
|
37
|
+
the MiniMax mark, and Kling, Flux 2 Pro and Topaz the lobe-icons marks (MIT) pinned on
|
|
38
|
+
jsDelivr.
|
|
39
|
+
|
|
40
|
+
### Removed
|
|
41
|
+
- Row fields no consumer or kit code read: `usage.modality` on rows (usage events keep it;
|
|
42
|
+
adapters set it), `capabilities.imageGenerate`, `capabilities.imageEdit`, `capabilities.tools`,
|
|
43
|
+
`capabilities.structuredOutput`, and the `hidden` lifecycle (`exposure: "internal"` is the
|
|
44
|
+
way to keep a row out of pickers). `capabilities` now carries only what a picker reads:
|
|
45
|
+
`vision`, `reasoning`, `contextWindow`, `acceptsSourceVideo`, `framesExcludeReferences`.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
- `kimi-k2.5` is `deprecated` with `replacedBy: "kimi-k3"`; Moonshot retired the model on
|
|
49
|
+
2026-08-31 and calls return model-not-found. 46 rows are `catalog`.
|
|
50
|
+
- Seedance 2.0 and 2.0 Fast declare `durations` as the range 4 to 15 s instead of listing every
|
|
51
|
+
second; Seedance 2.0 keeps its `durationPresets`.
|
|
52
|
+
|
|
53
|
+
## [0.1.10] - 2026-09-12
|
|
13
54
|
|
|
14
55
|
### Added
|
|
15
56
|
- Vendor logos on the ByteDance rows (Seedream 5 Pro, Seedance 2.0 Fast, Seedance 2.5) and the
|
|
@@ -168,8 +209,10 @@ First publish, renamed from `@shop-os/model-sdk`.
|
|
|
168
209
|
- Keys per tier (pro, enterprise with per-provider fallback); one retry classifier, one error
|
|
169
210
|
type, one usage event with the canonical id.
|
|
170
211
|
|
|
171
|
-
[Unreleased]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.
|
|
172
|
-
[0.
|
|
212
|
+
[Unreleased]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.2.0...dev
|
|
213
|
+
[0.2.0]: https://github.com/Shop-OS/shopos-backend-ts/compare/modelkit-0.1.11...modelkit-0.2.0
|
|
214
|
+
[0.1.11]: https://github.com/Shop-OS/shopos-backend-ts/compare/f0981d9b9...bb3b16354
|
|
215
|
+
[0.1.10]: https://github.com/Shop-OS/shopos-backend-ts/compare/f17e822e2...f0981d9b9
|
|
173
216
|
[0.1.9]: https://github.com/Shop-OS/shopos-backend-ts/compare/1958a5615...dev
|
|
174
217
|
[0.1.8]: https://github.com/Shop-OS/shopos-backend-ts/commit/9661a109d
|
|
175
218
|
[0.1.7]: https://github.com/Shop-OS/shopos-backend-ts/commit/2d3d19ac2
|