@hiper2d/ai-agents 0.8.0 → 0.9.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.mjs CHANGED
@@ -894,11 +894,15 @@ var SupportedAiModels = {
894
894
  temperature: 1,
895
895
  tags: ["expensive"]
896
896
  },
897
- // GPT-5.6 family (promoted July 2026 when the limited preview opened up):
898
- // sol is the flagship, terra the mainline, luna the cheap tier.
897
+ // Sol and Luna moved to GPT-6 on 2026-09-22 (both ids verified against GET /v1/models).
898
+ // GPT-6 ships Astra, Sol and Luna only — there is NO gpt-6-terra, so the Terra slot stays on
899
+ // gpt-5.6-terra, which OpenAI still serves. Both moves are big price cuts: Sol halved
900
+ // ($4/$20 → $2/$10) and Luna halved ($0.20/$1.20 → $0.10/$0.50). Note GPT-6 Sol now
901
+ // undercuts GPT-5.6 Terra ($2/$12) on output at the same input rate, which makes the Terra
902
+ // slot largely redundant — retiring it is a product call, not a catalog one.
899
903
  [LLM_CONSTANTS.GPT_SOL]: {
900
- displayName: "GPT-5.6 Sol",
901
- modelApiName: "gpt-5.6-sol",
904
+ displayName: "GPT-6 Sol",
905
+ modelApiName: "gpt-6-sol",
902
906
  apiKeyName: API_KEY_CONSTANTS.OPENAI,
903
907
  hasThinking: true,
904
908
  temperature: 1,
@@ -913,8 +917,8 @@ var SupportedAiModels = {
913
917
  tags: ["fast", "expensive"]
914
918
  },
915
919
  [LLM_CONSTANTS.GPT_MINI]: {
916
- displayName: "GPT-5.6 Luna",
917
- modelApiName: "gpt-5.6-luna",
920
+ displayName: "GPT-6 Luna",
921
+ modelApiName: "gpt-6-luna",
918
922
  apiKeyName: API_KEY_CONSTANTS.OPENAI,
919
923
  hasThinking: true,
920
924
  temperature: 1,
@@ -1226,17 +1230,20 @@ var MODEL_PRICING = {
1226
1230
  extendedContextCacheHitPrice: 2,
1227
1231
  extendedContextThresholdTokens: 272e3
1228
1232
  },
1229
- // OpenAI GPT-5.6 models
1230
- // Sol repriced 2026-08-30 (developers.openai.com/api/docs/pricing): $4/$20 short context,
1231
- // $8/$30 past the long-context threshold — the same 272k boundary its siblings use.
1232
- // Cache writes ($5/$10) are not modelled; OpenAI caching is automatic and we only see hits.
1233
+ // OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22),
1234
+ // plus GPT-5.6 Terra, which has no GPT-6 successor and keeps its old rates.
1235
+ // Sol: $2/$10 short, $4/$15 long, cache hits $0.20/$0.40 — half what GPT-5.6 Sol cost.
1236
+ // Luna: $0.10/$0.50 short, $0.20/$0.75 long, cache hits $0.01/$0.02 — also halved.
1237
+ // As with Astra, OpenAI's table doesn't restate the short/long boundary, so we keep the
1238
+ // 272k threshold the 5.6 siblings use. Cache WRITES (Sol $2.50/$5, Luna $0.125/$0.25) are
1239
+ // not modelled: OpenAI caching is automatic and the API only reports hits.
1233
1240
  [SupportedAiModels[LLM_CONSTANTS.GPT_SOL].modelApiName]: {
1234
- inputPrice: 4,
1235
- outputPrice: 20,
1236
- cacheHitPrice: 0.4,
1237
- extendedContextInputPrice: 8,
1238
- extendedContextOutputPrice: 30,
1239
- extendedContextCacheHitPrice: 0.8,
1241
+ inputPrice: 2,
1242
+ outputPrice: 10,
1243
+ cacheHitPrice: 0.2,
1244
+ extendedContextInputPrice: 4,
1245
+ extendedContextOutputPrice: 15,
1246
+ extendedContextCacheHitPrice: 0.4,
1240
1247
  extendedContextThresholdTokens: 272e3
1241
1248
  },
1242
1249
  [SupportedAiModels[LLM_CONSTANTS.GPT].modelApiName]: {
@@ -1249,12 +1256,12 @@ var MODEL_PRICING = {
1249
1256
  extendedContextThresholdTokens: 272e3
1250
1257
  },
1251
1258
  [SupportedAiModels[LLM_CONSTANTS.GPT_MINI].modelApiName]: {
1252
- inputPrice: 0.2,
1253
- outputPrice: 1.2,
1254
- cacheHitPrice: 0.02,
1255
- extendedContextInputPrice: 0.4,
1256
- extendedContextOutputPrice: 1.8,
1257
- extendedContextCacheHitPrice: 0.04,
1259
+ inputPrice: 0.1,
1260
+ outputPrice: 0.5,
1261
+ cacheHitPrice: 0.01,
1262
+ extendedContextInputPrice: 0.2,
1263
+ extendedContextOutputPrice: 0.75,
1264
+ extendedContextCacheHitPrice: 0.02,
1258
1265
  extendedContextThresholdTokens: 272e3
1259
1266
  },
1260
1267
  // DeepSeek V4 models