@hiper2d/ai-agents 0.9.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
@@ -958,10 +958,15 @@ var SupportedAiModels = {
958
958
  reasoningEffort: "minimal",
959
959
  tags: ["fast", "cheap"]
960
960
  },
961
- // 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.
962
967
  [LLM_CONSTANTS.GROK]: {
963
- displayName: "Grok 4.6",
964
- modelApiName: "grok-4.6",
968
+ displayName: "Grok 4.7",
969
+ modelApiName: "grok-4.7",
965
970
  apiKeyName: API_KEY_CONSTANTS.GROK,
966
971
  hasThinking: true,
967
972
  temperature: 0.7
@@ -1373,8 +1378,9 @@ var MODEL_PRICING = {
1373
1378
  cacheHitPrice: 0.015
1374
1379
  },
1375
1380
  // Grok models. Cached price is per-model on xAI (not a uniform ratio):
1376
- // grok-4.6 is $0.50/M cached vs $2.00/M input, and all rates double for prompts
1377
- // >= 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.
1378
1384
  [SupportedAiModels[LLM_CONSTANTS.GROK].modelApiName]: {
1379
1385
  inputPrice: 2,
1380
1386
  outputPrice: 6,