@plurnk/plurnk-models 1.17.0 → 1.19.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/README.md CHANGED
@@ -50,14 +50,23 @@ Context windows, output envelopes, reasoning activation, and prices resolve by
50
50
  different rules in the provider contract ({§model-fact-resolution}). In
51
51
  particular, PLURNK does not fetch live per-token prices.
52
52
 
53
- ## Refresh
53
+ ## Build and refresh
54
54
 
55
- The committed snapshot is refreshed deliberately at release time:
55
+ The lockfile selects Models.dev's official
56
+ [`@opencode-ai/models/snapshot`](https://github.com/anomalyco/models.dev/tree/dev/packages/sdk#snapshot)
57
+ as a build-only dependency. Normal build and prepack generate the pruned source
58
+ JSON and include it in `dist`; generated JSON stays out of Git. Generation
59
+ works offline after dependency installation, and consumers need no upstream SDK.
60
+
61
+ To refresh the catalog from the repository root:
56
62
 
57
63
  ```sh
58
- npm run generate
64
+ npm install --save-dev @opencode-ai/models@latest --workspace plurnk-models --no-audit --no-fund
65
+ npm run build --workspace plurnk-models
66
+ npm test --workspace plurnk-models
59
67
  ```
60
68
 
61
- That command fetches `https://models.dev/api.json`, retains providers whose AI
62
- SDK package PLURNK supports, prunes the model facts, and rewrites the two source
63
- JSON files.
69
+ Commit the dependency/lockfile change, not the generated catalogs. `npm run
70
+ generate --workspace plurnk-models` regenerates from the already installed
71
+ snapshot without selecting a newer version. See {§model-catalog-build} and
72
+ {§model-catalog-projection}.