@hiper2d/ai-agents 0.39.0 → 0.40.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/dist/index.js CHANGED
@@ -1149,8 +1149,8 @@ var SupportedAiModels = {
1149
1149
  // OpenAI documents the default for Sol, Luna and the 5.6 family but never states Astra's.
1150
1150
  // Pinning it changes no behaviour today; it stops the default moving under us silently.
1151
1151
  [LLM_CONSTANTS.GPT_ASTRA]: {
1152
- displayName: "GPT-6 Astra",
1153
- modelApiName: "gpt-6-astra",
1152
+ displayName: "GPT-6.2 Astra",
1153
+ modelApiName: "gpt-6.2-astra",
1154
1154
  apiKeyName: API_KEY_CONSTANTS.OPENAI,
1155
1155
  reasoningEffort: "medium",
1156
1156
  hasThinking: true,
@@ -1168,9 +1168,12 @@ var SupportedAiModels = {
1168
1168
  // Terra → GPT-6.1 Terra on 2026-10-26 (id verified against GET /v1/models; gpt-5.6-terra is
1169
1169
  // still served). Half the price of 5.6 Terra ($2/$12 → $1/$5) and back in its place below
1170
1170
  // Sol. Its no-param default effort measures `medium`, like its siblings.
1171
+ // Astra → GPT-6.2 Astra and Sol → GPT-6.2 Sol on 2026-11-17 (both ids verified against
1172
+ // GET /v1/models; gpt-6-astra and gpt-6.1-sol are still served). Both no-param defaults
1173
+ // measure `medium`. Astra got 20% cheaper; Sol kept its price.
1171
1174
  [LLM_CONSTANTS.GPT_SOL]: {
1172
- displayName: "GPT-6.1 Sol",
1173
- modelApiName: "gpt-6.1-sol",
1175
+ displayName: "GPT-6.2 Sol",
1176
+ modelApiName: "gpt-6.2-sol",
1174
1177
  apiKeyName: API_KEY_CONSTANTS.OPENAI,
1175
1178
  reasoningEffort: "medium",
1176
1179
  hasThinking: true,
@@ -1619,13 +1622,16 @@ var MODEL_PRICING = {
1619
1622
  // short context, $20/$75 cache-hit $2 long context. OpenAI's pricing table doesn't restate
1620
1623
  // the boundary; we assume the same 272k threshold as the GPT-5.6 siblings. Cache writes
1621
1624
  // ($12.50/$25) are not modelled — caching is automatic and we only see hits.
1625
+ // GPT-6.2 Astra (pricing page, read 2026-11-17, both Short and Long tabs): $8/$40 cache-hit
1626
+ // $0.40 short, $16/$60 cache-hit $0.80 long; cache writes $10/$20 (30m/12h), not modelled.
1627
+ // The cache hit is now 5% of input, like Sol and Terra (6 Astra was 10%).
1622
1628
  [SupportedAiModels[LLM_CONSTANTS.GPT_ASTRA].modelApiName]: {
1623
- inputPrice: 10,
1624
- outputPrice: 50,
1625
- cacheHitPrice: 1,
1626
- extendedContextInputPrice: 20,
1627
- extendedContextOutputPrice: 75,
1628
- extendedContextCacheHitPrice: 2,
1629
+ inputPrice: 8,
1630
+ outputPrice: 40,
1631
+ cacheHitPrice: 0.4,
1632
+ extendedContextInputPrice: 16,
1633
+ extendedContextOutputPrice: 60,
1634
+ extendedContextCacheHitPrice: 0.8,
1629
1635
  extendedContextThresholdTokens: 272e3
1630
1636
  },
1631
1637
  // OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22).
@@ -1638,6 +1644,7 @@ var MODEL_PRICING = {
1638
1644
  // Re-read 2026-10-26 with the Terra launch: the page now lists Sol's cache hit at $0.10
1639
1645
  // (5% of input, the same share as Terra), not the $0.20 recorded on 2026-09-22; Astra and
1640
1646
  // Luna still show 10%. Followed the page.
1647
+ // GPT-6.2 Sol (read 2026-11-17, Short and Long tabs) is priced exactly like 6.1 Sol.
1641
1648
  [SupportedAiModels[LLM_CONSTANTS.GPT_SOL].modelApiName]: {
1642
1649
  inputPrice: 2,
1643
1650
  outputPrice: 10,