@oh-my-pi/pi-catalog 15.10.12 → 15.11.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 CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [15.11.0] - 2026-06-10
6
+
7
+ ### Fixed
8
+
9
+ - Fixed `buildModel` so malformed explicit thinking metadata without `efforts` is treated as sparse input and inferred instead of crashing during model resolution ([#2251](https://github.com/can1357/oh-my-pi/issues/2251)).
10
+
5
11
  ## [15.10.12] - 2026-06-10
6
12
 
7
13
  ### Added
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-catalog",
4
- "version": "15.10.12",
4
+ "version": "15.11.0",
5
5
  "description": "Model catalog for omp: bundled model database, provider discovery descriptors, model identity, classification, and equivalence",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -34,11 +34,11 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@bufbuild/protobuf": "^2.12.0",
37
- "@oh-my-pi/pi-utils": "15.10.12",
37
+ "@oh-my-pi/pi-utils": "15.11.0",
38
38
  "zod": "4.4.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@oh-my-pi/pi-ai": "15.10.12",
41
+ "@oh-my-pi/pi-ai": "15.11.0",
42
42
  "@types/bun": "^1.3.14"
43
43
  },
44
44
  "engines": {
@@ -97,7 +97,7 @@ export function resolveModelThinking<TApi extends Api>(
97
97
  ): ThinkingConfig | undefined {
98
98
  if (!spec.reasoning) return undefined;
99
99
  if (omitsWireReasoningEffort(spec.api, compat)) return undefined;
100
- if (spec.thinking && spec.thinking.efforts.length > 0) {
100
+ if (spec.thinking && Array.isArray(spec.thinking.efforts) && spec.thinking.efforts.length > 0) {
101
101
  return fillThinkingWireDefaults(spec, spec.thinking);
102
102
  }
103
103
  // Empty/malformed explicit metadata is treated as absent — infer instead.