@oh-my-pi/pi-catalog 18.1.12 → 18.1.13

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
@@ -15,6 +15,7 @@
15
15
  - Fixed OpenCode Go/Zen live model discovery (`GET /v1/models`) missing `x-opencode-session` and omp's `User-Agent`: discovery requests now attribute with the stable install id so the requests OpenCode flags as `Bun fetch` carry the required session header.
16
16
  - Fixed GPT-6 Astra requests through GitHub Copilot failing with an unsupported endpoint error ([#10874](https://github.com/can1357/oh-my-pi/pull/10874) by [@xpcmdshell](https://github.com/xpcmdshell)).
17
17
  - Fixed GPT-6 Astra showing as free with a 272K-token window in the OpenAI Codex catalog by applying its documented pricing; `/extended-context` enables the wire-advertised 872K-token maximum ([#10980](https://github.com/can1357/oh-my-pi/pull/10980) by [@H4vC](https://github.com/H4vC)).
18
+ - Fixed GPT-6 Astra compacting early at a 272K-token window with its full window gated behind `/extended-context`: it now defaults to the documented 1.05M-token window.
18
19
  - Made extended-context catalog rebuilds faster by resolving each model's maximum window once per process ([#11039](https://github.com/can1357/oh-my-pi/pull/11039) by [@H4vC](https://github.com/H4vC)).
19
20
 
20
21
  ## [18.1.9] - 2026-09-04
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-catalog",
4
- "version": "18.1.12",
4
+ "version": "18.1.13",
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": "Stencil Labs, Inc.",
@@ -35,12 +35,12 @@
35
35
  "gen:proto": "bun scripts/generate-protocols.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@oh-my-pi/omptype": "18.1.12",
39
- "@oh-my-pi/pi-utils": "18.1.12"
38
+ "@oh-my-pi/omptype": "18.1.13",
39
+ "@oh-my-pi/pi-utils": "18.1.13"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@bgotink/kdl": "0.4.0",
43
- "@oh-my-pi/pi-ai": "18.1.12",
43
+ "@oh-my-pi/pi-ai": "18.1.13",
44
44
  "@types/bun": "^1.3.14"
45
45
  },
46
46
  "engines": {
@@ -29,12 +29,16 @@ provider "openai-codex" {
29
29
  cache-write 15.625
30
30
  }
31
31
  }
32
- // Codex discovery currently reports Astra's legacy 272K window and no
33
- // pricing. Attribute subscription usage at the documented credit-equivalent
34
- // rates, with free cache writes and without the API's >272K multiplier.
35
- // The wire's 872K `max_context_window` (client 0.153.1, 2026-09-04) is the
36
- // `/extended-context` maximum (see the `max-context-window` fallback
37
- // below); the default stays at 272K so compaction fires first.
32
+ // Codex discovery still reports Astra's stale 272K window with
33
+ // max_context_window=872000 (client 0.153.1, 2026-09-04) — the same stale
34
+ // pair it reports for Luna/Sol/Terra. Public docs list a 1.05M window and
35
+ // live Codex traffic succeeds past the wire maximum (895,302 input tokens
36
+ // observed, including cached input), so floor to the documented window like
37
+ // the GPT-5.6 1M floor below. Astra carries no long-context surcharge, so
38
+ // the window must not be gated behind `/extended-context`; the
39
+ // `maximum > contextWindow` guard then ignores the stale 872K live maximum.
40
+ // Pricing stays at the documented credit-equivalent rates, with free cache
41
+ // writes and no >272K multiplier.
38
42
  models "gpt-6-astra" "gpt-6-astra-wm" {
39
43
  cost-patch {
40
44
  input 10.0
@@ -46,6 +50,7 @@ provider "openai-codex" {
46
50
  flex 0.5
47
51
  priority 2.5
48
52
  }
53
+ context-window-floor 1050000
49
54
  }
50
55
  class "openai" {
51
56
  revision ">=5.3 <5.7" {
@@ -136,13 +141,8 @@ provider "openai-codex" {
136
141
  models "gpt-5.6-luna" "gpt-5.6-sol" "gpt-5.6-terra" {
137
142
  context-window-floor 1000000
138
143
  }
139
- // Residue: the Codex registry advertises Astra's 272000 default prompt
140
- // window with max_context_window=872000 (client 0.153.1, 2026-09-04).
141
- // Older bundled and cached catalogs omit the maximum; live discovery
142
- // takes precedence. The fallback stays at the deployment-advertised
143
- // maximum so offline extended context never advertises a window the
144
- // deployment rejects.
145
- models "gpt-6-astra" "gpt-6-astra-wm" {
146
- max-context-window 872000
147
- }
144
+ // (No `max-context-window` fallback: the 1.05M floor already exceeds the
145
+ // stale 872K wire maximum, so offline and cached rows compose to the
146
+ // documented window and the live maximum is ignored by the
147
+ // `maximum > contextWindow` guard — same as Luna/Sol/Terra above.)
148
148
  }
@@ -10592,7 +10592,7 @@
10592
10592
  }
10593
10593
  },
10594
10594
  {
10595
- "source": "providers/openai-codex.kdl:38",
10595
+ "source": "providers/openai-codex.kdl:42",
10596
10596
  "providers": [
10597
10597
  "openai-codex"
10598
10598
  ],
@@ -10616,11 +10616,12 @@
10616
10616
  "serviceTierCost": {
10617
10617
  "flex": 0.5,
10618
10618
  "priority": 2.5
10619
- }
10619
+ },
10620
+ "contextWindowFloor": 1050000
10620
10621
  }
10621
10622
  },
10622
10623
  {
10623
- "source": "providers/openai-codex.kdl:51",
10624
+ "source": "providers/openai-codex.kdl:56",
10624
10625
  "class": "openai",
10625
10626
  "providers": [
10626
10627
  "openai-codex"
@@ -10640,7 +10641,7 @@
10640
10641
  }
10641
10642
  },
10642
10643
  {
10643
- "source": "providers/openai-codex.kdl:56",
10644
+ "source": "providers/openai-codex.kdl:61",
10644
10645
  "class": "openai",
10645
10646
  "providers": [
10646
10647
  "openai-codex"
@@ -10656,7 +10657,7 @@
10656
10657
  }
10657
10658
  },
10658
10659
  {
10659
- "source": "providers/openai-codex.kdl:59",
10660
+ "source": "providers/openai-codex.kdl:64",
10660
10661
  "class": "openai",
10661
10662
  "providers": [
10662
10663
  "openai-codex"
@@ -10672,7 +10673,7 @@
10672
10673
  }
10673
10674
  },
10674
10675
  {
10675
- "source": "providers/openai-codex.kdl:64",
10676
+ "source": "providers/openai-codex.kdl:69",
10676
10677
  "class": "openai",
10677
10678
  "providers": [
10678
10679
  "openai-codex"
@@ -10691,7 +10692,7 @@
10691
10692
  }
10692
10693
  },
10693
10694
  {
10694
- "source": "providers/openai-codex.kdl:76",
10695
+ "source": "providers/openai-codex.kdl:81",
10695
10696
  "class": "openai",
10696
10697
  "providers": [
10697
10698
  "openai-codex"
@@ -10717,7 +10718,7 @@
10717
10718
  }
10718
10719
  },
10719
10720
  {
10720
- "source": "providers/openai-codex.kdl:82",
10721
+ "source": "providers/openai-codex.kdl:87",
10721
10722
  "class": "openai",
10722
10723
  "providers": [
10723
10724
  "openai-codex"
@@ -10743,7 +10744,7 @@
10743
10744
  }
10744
10745
  },
10745
10746
  {
10746
- "source": "providers/openai-codex.kdl:74",
10747
+ "source": "providers/openai-codex.kdl:79",
10747
10748
  "class": "openai",
10748
10749
  "providers": [
10749
10750
  "openai-codex"
@@ -10760,7 +10761,7 @@
10760
10761
  }
10761
10762
  },
10762
10763
  {
10763
- "source": "providers/openai-codex.kdl:92",
10764
+ "source": "providers/openai-codex.kdl:97",
10764
10765
  "class": "openai",
10765
10766
  "providers": [
10766
10767
  "openai-codex"
@@ -10780,7 +10781,7 @@
10780
10781
  }
10781
10782
  },
10782
10783
  {
10783
- "source": "providers/openai-codex.kdl:98",
10784
+ "source": "providers/openai-codex.kdl:103",
10784
10785
  "class": "unknown",
10785
10786
  "providers": [
10786
10787
  "openai-codex"
@@ -10796,7 +10797,7 @@
10796
10797
  }
10797
10798
  },
10798
10799
  {
10799
- "source": "providers/openai-codex.kdl:101",
10800
+ "source": "providers/openai-codex.kdl:106",
10800
10801
  "class": "unknown",
10801
10802
  "providers": [
10802
10803
  "openai-codex"
@@ -10812,7 +10813,7 @@
10812
10813
  }
10813
10814
  },
10814
10815
  {
10815
- "source": "providers/openai-codex.kdl:107",
10816
+ "source": "providers/openai-codex.kdl:112",
10816
10817
  "providers": [
10817
10818
  "openai-codex"
10818
10819
  ],
@@ -10833,7 +10834,7 @@
10833
10834
  }
10834
10835
  },
10835
10836
  {
10836
- "source": "providers/openai-codex.kdl:116",
10837
+ "source": "providers/openai-codex.kdl:121",
10837
10838
  "providers": [
10838
10839
  "openai-codex"
10839
10840
  ],
@@ -10858,7 +10859,7 @@
10858
10859
  }
10859
10860
  },
10860
10861
  {
10861
- "source": "providers/openai-codex.kdl:125",
10862
+ "source": "providers/openai-codex.kdl:130",
10862
10863
  "providers": [
10863
10864
  "openai-codex"
10864
10865
  ],
@@ -10879,7 +10880,7 @@
10879
10880
  }
10880
10881
  },
10881
10882
  {
10882
- "source": "providers/openai-codex.kdl:136",
10883
+ "source": "providers/openai-codex.kdl:141",
10883
10884
  "providers": [
10884
10885
  "openai-codex"
10885
10886
  ],
@@ -10901,25 +10902,6 @@
10901
10902
  "contextWindowFloor": 1000000
10902
10903
  }
10903
10904
  },
10904
- {
10905
- "source": "providers/openai-codex.kdl:145",
10906
- "providers": [
10907
- "openai-codex"
10908
- ],
10909
- "models": [
10910
- {
10911
- "kind": "exact",
10912
- "value": "gpt-6-astra"
10913
- },
10914
- {
10915
- "kind": "exact",
10916
- "value": "gpt-6-astra-wm"
10917
- }
10918
- ],
10919
- "catalog": {
10920
- "maxContextWindow": 872000
10921
- }
10922
- },
10923
10905
  {
10924
10906
  "source": "providers/openai-codex.kdl:3",
10925
10907
  "providers": [
package/src/models.json CHANGED
@@ -261375,7 +261375,7 @@
261375
261375
  "api": "openai-codex-responses",
261376
261376
  "v2StreamingEnabled": true
261377
261377
  },
261378
- "contextWindow": 272000,
261378
+ "contextWindow": 1050000,
261379
261379
  "maxTokens": 128000,
261380
261380
  "preferWebsockets": true,
261381
261381
  "useResponsesLite": true,