@oh-my-pi/pi-catalog 16.2.11 → 16.2.12
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 +6 -0
- package/dist/types/identity/bundled.d.ts +0 -3
- package/dist/types/identity/index.d.ts +0 -2
- package/package.json +3 -3
- package/src/identity/bundled.ts +5 -15
- package/src/identity/index.ts +0 -2
- package/src/models.json +483 -20
- package/dist/types/identity/equivalence.d.ts +0 -46
- package/dist/types/identity/selection.d.ts +0 -20
- package/src/identity/equivalence.ts +0 -870
- package/src/identity/selection.ts +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [16.2.12] - 2026-07-01
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- Removed runtime canonical-equivalence APIs from the identity module, including resolveCanonicalVariant, buildCanonicalModelOrder, CanonicalVariantPreferences, and getBundledCanonicalReferenceData. These utilities have been transitioned to a build-time generator script and are no longer exposed in the runtime bundle.
|
|
10
|
+
|
|
5
11
|
## [16.2.11] - 2026-07-01
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { type CanonicalReferenceData } from "./equivalence";
|
|
2
1
|
import { type ModelReferenceIndex } from "./reference";
|
|
3
|
-
/** Canonical-equivalence reference data over the bundled catalog. */
|
|
4
|
-
export declare function getBundledCanonicalReferenceData(): CanonicalReferenceData;
|
|
5
2
|
/** Proxy-reference index over the bundled catalog. */
|
|
6
3
|
export declare function getBundledModelReferenceIndex(): ModelReferenceIndex;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from "./bundled";
|
|
2
2
|
export * from "./classify";
|
|
3
3
|
export * from "./dialect";
|
|
4
|
-
export * from "./equivalence";
|
|
5
4
|
export * from "./family";
|
|
6
5
|
export * from "./id";
|
|
7
6
|
export * from "./markers";
|
|
8
7
|
export * from "./priority";
|
|
9
8
|
export * from "./reference";
|
|
10
|
-
export * from "./selection";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-catalog",
|
|
4
|
-
"version": "16.2.
|
|
4
|
+
"version": "16.2.12",
|
|
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,12 +34,12 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@bufbuild/protobuf": "^2.12.0",
|
|
37
|
-
"@oh-my-pi/pi-utils": "16.2.
|
|
37
|
+
"@oh-my-pi/pi-utils": "16.2.12",
|
|
38
38
|
"arktype": "^2.2.0",
|
|
39
39
|
"zod": "^4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@oh-my-pi/pi-ai": "16.2.
|
|
42
|
+
"@oh-my-pi/pi-ai": "16.2.12",
|
|
43
43
|
"@types/bun": "^1.3.14"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
package/src/identity/bundled.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Memoized reference
|
|
2
|
+
* Memoized proxy-reference index over the bundled model catalog.
|
|
3
3
|
*
|
|
4
|
-
* Lazy: walking every bundled model (~12K) triggers thinking enrichment, so
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* ({@link buildCanonicalReferenceData} / {@link buildModelReferenceIndex}).
|
|
4
|
+
* Lazy: walking every bundled model (~12K) triggers thinking enrichment, so the
|
|
5
|
+
* walk is deferred off module load and performed once. Consumers that need
|
|
6
|
+
* non-bundled reference data use the pure builder directly
|
|
7
|
+
* ({@link buildModelReferenceIndex}).
|
|
9
8
|
*/
|
|
10
9
|
import { getBundledModels, getBundledProviders } from "../models";
|
|
11
10
|
import type { Api, Model } from "../types";
|
|
12
|
-
import { buildCanonicalReferenceData, type CanonicalReferenceData } from "./equivalence";
|
|
13
11
|
import { buildModelReferenceIndex, type ModelReferenceIndex } from "./reference";
|
|
14
12
|
|
|
15
13
|
let bundledModels: readonly Model<Api>[] | undefined;
|
|
@@ -21,14 +19,6 @@ function getBundledModelList(): readonly Model<Api>[] {
|
|
|
21
19
|
return bundledModels;
|
|
22
20
|
}
|
|
23
21
|
|
|
24
|
-
let canonicalReference: CanonicalReferenceData | undefined;
|
|
25
|
-
|
|
26
|
-
/** Canonical-equivalence reference data over the bundled catalog. */
|
|
27
|
-
export function getBundledCanonicalReferenceData(): CanonicalReferenceData {
|
|
28
|
-
canonicalReference ??= buildCanonicalReferenceData(getBundledModelList());
|
|
29
|
-
return canonicalReference;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
22
|
let referenceIndex: ModelReferenceIndex | undefined;
|
|
33
23
|
|
|
34
24
|
/** Proxy-reference index over the bundled catalog. */
|
package/src/identity/index.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from "./bundled";
|
|
2
2
|
export * from "./classify";
|
|
3
3
|
export * from "./dialect";
|
|
4
|
-
export * from "./equivalence";
|
|
5
4
|
export * from "./family";
|
|
6
5
|
export * from "./id";
|
|
7
6
|
export * from "./markers";
|
|
8
7
|
export * from "./priority";
|
|
9
8
|
export * from "./reference";
|
|
10
|
-
export * from "./selection";
|