@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.js CHANGED
@@ -1065,11 +1065,15 @@ var SupportedAiModels = {
1065
1065
  temperature: 1,
1066
1066
  tags: ["expensive"]
1067
1067
  },
1068
- // GPT-5.6 family (promoted July 2026 when the limited preview opened up):
1069
- // sol is the flagship, terra the mainline, luna the cheap tier.
1068
+ // Sol and Luna moved to GPT-6 on 2026-09-22 (both ids verified against GET /v1/models).
1069
+ // GPT-6 ships Astra, Sol and Luna only — there is NO gpt-6-terra, so the Terra slot stays on
1070
+ // gpt-5.6-terra, which OpenAI still serves. Both moves are big price cuts: Sol halved
1071
+ // ($4/$20 → $2/$10) and Luna halved ($0.20/$1.20 → $0.10/$0.50). Note GPT-6 Sol now
1072
+ // undercuts GPT-5.6 Terra ($2/$12) on output at the same input rate, which makes the Terra
1073
+ // slot largely redundant — retiring it is a product call, not a catalog one.
1070
1074
  [LLM_CONSTANTS.GPT_SOL]: {
1071
- displayName: "GPT-5.6 Sol",
1072
- modelApiName: "gpt-5.6-sol",
1075
+ displayName: "GPT-6 Sol",
1076
+ modelApiName: "gpt-6-sol",
1073
1077
  apiKeyName: API_KEY_CONSTANTS.OPENAI,
1074
1078
  hasThinking: true,
1075
1079
  temperature: 1,
@@ -1084,8 +1088,8 @@ var SupportedAiModels = {
1084
1088
  tags: ["fast", "expensive"]
1085
1089
  },
1086
1090
  [LLM_CONSTANTS.GPT_MINI]: {
1087
- displayName: "GPT-5.6 Luna",
1088
- modelApiName: "gpt-5.6-luna",
1091
+ displayName: "GPT-6 Luna",
1092
+ modelApiName: "gpt-6-luna",
1089
1093
  apiKeyName: API_KEY_CONSTANTS.OPENAI,
1090
1094
  hasThinking: true,
1091
1095
  temperature: 1,
@@ -1125,10 +1129,15 @@ var SupportedAiModels = {
1125
1129
  reasoningEffort: "minimal",
1126
1130
  tags: ["fast", "cheap"]
1127
1131
  },
1128
- // Always-on reasoning (xAI default effort "high", cannot be disabled) — no non-thinking sibling
1132
+ // Always-on reasoning — no non-thinking sibling. Bumped 4.6 → 4.7 on 2026-09-22 (id verified
1133
+ // against GET /v1/models). Same price, same 200K extended-context boundary; the context
1134
+ // window is 500K. NOTE 4.7 newly accepts `reasoning_effort` (low | medium | high | xhigh,
1135
+ // default high) where 4.6 had no knob at all. GrokAgent still sends none, so behaviour is
1136
+ // unchanged — but Grok is the app's most expensive model per turn (94% of its output is
1137
+ // reasoning), so a lower pin is the obvious lever to measure before anything else.
1129
1138
  [LLM_CONSTANTS.GROK]: {
1130
- displayName: "Grok 4.6",
1131
- modelApiName: "grok-4.6",
1139
+ displayName: "Grok 4.7",
1140
+ modelApiName: "grok-4.7",
1132
1141
  apiKeyName: API_KEY_CONSTANTS.GROK,
1133
1142
  hasThinking: true,
1134
1143
  temperature: 0.7
@@ -1397,17 +1406,20 @@ var MODEL_PRICING = {
1397
1406
  extendedContextCacheHitPrice: 2,
1398
1407
  extendedContextThresholdTokens: 272e3
1399
1408
  },
1400
- // OpenAI GPT-5.6 models
1401
- // Sol repriced 2026-08-30 (developers.openai.com/api/docs/pricing): $4/$20 short context,
1402
- // $8/$30 past the long-context threshold — the same 272k boundary its siblings use.
1403
- // Cache writes ($5/$10) are not modelled; OpenAI caching is automatic and we only see hits.
1409
+ // OpenAI GPT-6 Sol and GPT-6 Luna (developers.openai.com/api/docs/pricing, read 2026-09-22),
1410
+ // plus GPT-5.6 Terra, which has no GPT-6 successor and keeps its old rates.
1411
+ // Sol: $2/$10 short, $4/$15 long, cache hits $0.20/$0.40 — half what GPT-5.6 Sol cost.
1412
+ // Luna: $0.10/$0.50 short, $0.20/$0.75 long, cache hits $0.01/$0.02 — also halved.
1413
+ // As with Astra, OpenAI's table doesn't restate the short/long boundary, so we keep the
1414
+ // 272k threshold the 5.6 siblings use. Cache WRITES (Sol $2.50/$5, Luna $0.125/$0.25) are
1415
+ // not modelled: OpenAI caching is automatic and the API only reports hits.
1404
1416
  [SupportedAiModels[LLM_CONSTANTS.GPT_SOL].modelApiName]: {
1405
- inputPrice: 4,
1406
- outputPrice: 20,
1407
- cacheHitPrice: 0.4,
1408
- extendedContextInputPrice: 8,
1409
- extendedContextOutputPrice: 30,
1410
- extendedContextCacheHitPrice: 0.8,
1417
+ inputPrice: 2,
1418
+ outputPrice: 10,
1419
+ cacheHitPrice: 0.2,
1420
+ extendedContextInputPrice: 4,
1421
+ extendedContextOutputPrice: 15,
1422
+ extendedContextCacheHitPrice: 0.4,
1411
1423
  extendedContextThresholdTokens: 272e3
1412
1424
  },
1413
1425
  [SupportedAiModels[LLM_CONSTANTS.GPT].modelApiName]: {
@@ -1420,12 +1432,12 @@ var MODEL_PRICING = {
1420
1432
  extendedContextThresholdTokens: 272e3
1421
1433
  },
1422
1434
  [SupportedAiModels[LLM_CONSTANTS.GPT_MINI].modelApiName]: {
1423
- inputPrice: 0.2,
1424
- outputPrice: 1.2,
1425
- cacheHitPrice: 0.02,
1426
- extendedContextInputPrice: 0.4,
1427
- extendedContextOutputPrice: 1.8,
1428
- extendedContextCacheHitPrice: 0.04,
1435
+ inputPrice: 0.1,
1436
+ outputPrice: 0.5,
1437
+ cacheHitPrice: 0.01,
1438
+ extendedContextInputPrice: 0.2,
1439
+ extendedContextOutputPrice: 0.75,
1440
+ extendedContextCacheHitPrice: 0.02,
1429
1441
  extendedContextThresholdTokens: 272e3
1430
1442
  },
1431
1443
  // DeepSeek V4 models
@@ -1537,8 +1549,9 @@ var MODEL_PRICING = {
1537
1549
  cacheHitPrice: 0.015
1538
1550
  },
1539
1551
  // Grok models. Cached price is per-model on xAI (not a uniform ratio):
1540
- // grok-4.6 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
1541
- // >= 200K tokens, per docs.x.ai/developers/models (verified 2026-08-12).
1552
+ // grok-4.7 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
1553
+ // >= 200K tokens, per docs.x.ai/docs/models (re-verified 2026-09-22 for 4.7).
1554
+ // 4.7 carries over 4.6's rates unchanged — the bump is capability-only, not a reprice.
1542
1555
  [SupportedAiModels[LLM_CONSTANTS.GROK].modelApiName]: {
1543
1556
  inputPrice: 2,
1544
1557
  outputPrice: 6,