@oh-my-pi/pi-catalog 18.7.0 → 18.8.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.
- package/CHANGELOG.md +13 -0
- package/dist/types/compat/taxonomy.d.ts +0 -10
- package/package.json +4 -4
- package/src/compat/cascade.ts +6 -1
- package/src/compat/rules/providers/openai-codex.kdl +5 -9
- package/src/compat/rules.json +1 -1
- package/src/compat/taxonomy.ts +3 -3
- package/src/model-cache.ts +113 -47
- package/src/models.json +1 -1
- package/src/provider-models/openai-compat.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [18.8.1] - 2026-10-07
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed Codex Fast (`priority`) pricing to use OpenAI’s 2.5× included-usage rate for supported models, excluding GPT-5.5 and GPT-6 Astra.
|
|
10
|
+
- Fixed GitHub Copilot models with tier-specific prompt limits incorrectly defaulting to the long-context window.
|
|
11
|
+
|
|
12
|
+
## [18.8.0] - 2026-10-07
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Improved catalog performance by speeding up model cache reads and repeated catalog-wide model builds, especially for large catalogs.
|
|
17
|
+
|
|
5
18
|
## [18.7.0] - 2026-10-06
|
|
6
19
|
|
|
7
20
|
### Added
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Runtime model-identity taxonomy: classifies wire model ids into
|
|
3
|
-
* `(class, family, revision)` ranks, applies reviewed identity overrides, and
|
|
4
|
-
* exposes the collapse/discovery vocabularies.
|
|
5
|
-
*
|
|
6
|
-
* Faithful port of the o2 reference (`taxonomy.rs` / `classify.rs`):
|
|
7
|
-
* matchers rank `exact(4) > bounded(3) > namespace(2) > prefix(1) > glob(0)`
|
|
8
|
-
* with token byte length as tiebreak; equal cross-class or cross-family ranks
|
|
9
|
-
* throw unless classification is `lenient` (discovery normalization).
|
|
10
|
-
*/
|
|
11
1
|
import type { Effort } from "../effort.js";
|
|
12
2
|
import type { ModelIdentity } from "./types.js";
|
|
13
3
|
/** Two classes, families, or reviewed override patterns tie for one model id. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-catalog",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.8.1",
|
|
4
4
|
"description": "Model catalog for omp: bundled model database, provider discovery descriptors, model identity, classification, and equivalence",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -93,12 +93,12 @@
|
|
|
93
93
|
"gen:proto": "bun scripts/generate-protocols.ts"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@oh-my-pi/omptype": "18.
|
|
97
|
-
"@oh-my-pi/pi-utils": "18.
|
|
96
|
+
"@oh-my-pi/omptype": "18.8.1",
|
|
97
|
+
"@oh-my-pi/pi-utils": "18.8.1"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@bgotink/kdl": "0.4.0",
|
|
101
|
-
"@oh-my-pi/pi-ai": "18.
|
|
101
|
+
"@oh-my-pi/pi-ai": "18.8.1",
|
|
102
102
|
"@types/bun": "^1.3.14"
|
|
103
103
|
},
|
|
104
104
|
"engines": {
|
package/src/compat/cascade.ts
CHANGED
|
@@ -288,7 +288,12 @@ function collect(winners: WinnerTable, pick: (rule: CompiledRule) => Record<stri
|
|
|
288
288
|
return out;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
|
|
291
|
+
/**
|
|
292
|
+
* Sized above the bundled catalog (~5.6k targets) plus discovered rows so a
|
|
293
|
+
* catalog-wide buildModel pass (discovery, then merge rebuilding the same ids)
|
|
294
|
+
* hits instead of thrashing. Entries share rule values: a few hundred bytes each.
|
|
295
|
+
*/
|
|
296
|
+
const resolveCache = new LRUCache<string, ResolvedAxes>({ max: 16384 });
|
|
292
297
|
|
|
293
298
|
function keyPart(value: string | undefined): string {
|
|
294
299
|
return value === undefined ? "-1:" : `${value.length}:${value}`;
|
|
@@ -25,9 +25,13 @@ provider "openai-codex" {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// Replaces the Codex provider's handwritten flex/priority pricing fallback.
|
|
28
|
+
// Fast (priority) draws included subscription usage at 2.5x Standard on
|
|
29
|
+
// every model that supports it; purchased credits and Enterprise
|
|
30
|
+
// pay-as-you-go bill 2x. See
|
|
31
|
+
// https://learn.chatgpt.com/docs/agent-configuration/speed.
|
|
28
32
|
service-tier-cost {
|
|
29
33
|
flex 0.5
|
|
30
|
-
priority 2
|
|
34
|
+
priority 2.5
|
|
31
35
|
}
|
|
32
36
|
// Harmony-protocol leak detection/mitigation applies to every Codex model,
|
|
33
37
|
// current and future; replaces the provider check in harmony-leak.ts.
|
|
@@ -133,14 +137,6 @@ provider "openai-codex" {
|
|
|
133
137
|
revision "<5.4" {
|
|
134
138
|
supports-reasoning-summary #false
|
|
135
139
|
}
|
|
136
|
-
// Subscription Codex rates the priority service tier at 2.5x for the
|
|
137
|
-
// GPT-5.5 generation (2x elsewhere).
|
|
138
|
-
revision "=5.5" {
|
|
139
|
-
service-tier-cost {
|
|
140
|
-
flex 0.5
|
|
141
|
-
priority 2.5
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
140
|
// Codex discovery reports inconsistent priorities for the GPT-5.4
|
|
145
141
|
// family; normalize by variant. Mini/nano also keep the lower prompt
|
|
146
142
|
// budget despite their plain OpenAI ids.
|