@route_33/opencode 0.4.0 → 0.4.1

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/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1014,7 +1014,8 @@ function cloneModels(patch) {
1014
1014
  function fillModelEntry(existing, patchEntry) {
1015
1015
  for (const [field, value] of Object.entries(patchEntry)) {
1016
1016
  if (value === void 0) continue;
1017
- if (existing[field] === void 0) existing[field] = value;
1017
+ if (field === "limit" || existing[field] === void 0)
1018
+ existing[field] = value;
1018
1019
  }
1019
1020
  }
1020
1021
  function mergeModels(target, patch) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@route_33/opencode",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "description": "opencode provider plugin for the route33.ai AI gateway — key-scoped model discovery, cost/limit enrichment, auth, and the key-setup wizard.",