@hiper2d/ai-agents 0.8.0 → 0.10.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,
@@ -954,10 +958,15 @@ var SupportedAiModels = {
954
958
  reasoningEffort: "minimal",
955
959
  tags: ["fast", "cheap"]
956
960
  },
957
- // Always-on reasoning (xAI default effort "high", cannot be disabled) — no non-thinking sibling
961
+ // Always-on reasoning — no non-thinking sibling. Bumped 4.6 → 4.7 on 2026-09-22 (id verified
962
+ // against GET /v1/models). Same price, same 200K extended-context boundary; the context
963
+ // window is 500K. NOTE 4.7 newly accepts `reasoning_effort` (low | medium | high | xhigh,
964
+ // default high) where 4.6 had no knob at all. GrokAgent still sends none, so behaviour is
965
+ // unchanged — but Grok is the app's most expensive model per turn (94% of its output is
966
+ // reasoning), so a lower pin is the obvious lever to measure before anything else.
958
967
  [LLM_CONSTANTS.GROK]: {
959
- displayName: "Grok 4.6",
960
- modelApiName: "grok-4.6",
968
+ displayName: "Grok 4.7",
969
+ modelApiName: "grok-4.7",
961
970
  apiKeyName: API_KEY_CONSTANTS.GROK,
962
971
  hasThinking: true,
963
972
  temperature: 0.7
@@ -1226,17 +1235,20 @@ var MODEL_PRICING = {
1226
1235
  extendedContextCacheHitPrice: 2,
1227
1236
  extendedContextThresholdTokens: 272e3
1228
1237
  },
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.
1238
+ // OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22),
1239
+ // plus GPT-5.6 Terra, which has no GPT-6 successor and keeps its old rates.
1240
+ // Sol: $2/$10 short, $4/$15 long, cache hits $0.20/$0.40 — half what GPT-5.6 Sol cost.
1241
+ // Luna: $0.10/$0.50 short, $0.20/$0.75 long, cache hits $0.01/$0.02 — also halved.
1242
+ // As with Astra, OpenAI's table doesn't restate the short/long boundary, so we keep the
1243
+ // 272k threshold the 5.6 siblings use. Cache WRITES (Sol $2.50/$5, Luna $0.125/$0.25) are
1244
+ // not modelled: OpenAI caching is automatic and the API only reports hits.
1233
1245
  [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,
1246
+ inputPrice: 2,
1247
+ outputPrice: 10,
1248
+ cacheHitPrice: 0.2,
1249
+ extendedContextInputPrice: 4,
1250
+ extendedContextOutputPrice: 15,
1251
+ extendedContextCacheHitPrice: 0.4,
1240
1252
  extendedContextThresholdTokens: 272e3
1241
1253
  },
1242
1254
  [SupportedAiModels[LLM_CONSTANTS.GPT].modelApiName]: {
@@ -1249,12 +1261,12 @@ var MODEL_PRICING = {
1249
1261
  extendedContextThresholdTokens: 272e3
1250
1262
  },
1251
1263
  [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,
1264
+ inputPrice: 0.1,
1265
+ outputPrice: 0.5,
1266
+ cacheHitPrice: 0.01,
1267
+ extendedContextInputPrice: 0.2,
1268
+ extendedContextOutputPrice: 0.75,
1269
+ extendedContextCacheHitPrice: 0.02,
1258
1270
  extendedContextThresholdTokens: 272e3
1259
1271
  },
1260
1272
  // DeepSeek V4 models
@@ -1366,8 +1378,9 @@ var MODEL_PRICING = {
1366
1378
  cacheHitPrice: 0.015
1367
1379
  },
1368
1380
  // Grok models. Cached price is per-model on xAI (not a uniform ratio):
1369
- // grok-4.6 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
1370
- // >= 200K tokens, per docs.x.ai/developers/models (verified 2026-08-12).
1381
+ // grok-4.7 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
1382
+ // >= 200K tokens, per docs.x.ai/docs/models (re-verified 2026-09-22 for 4.7).
1383
+ // 4.7 carries over 4.6's rates unchanged — the bump is capability-only, not a reprice.
1371
1384
  [SupportedAiModels[LLM_CONSTANTS.GROK].modelApiName]: {
1372
1385
  inputPrice: 2,
1373
1386
  outputPrice: 6,