@hiper2d/ai-agents 0.33.0 → 0.34.1

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
@@ -869,10 +869,11 @@ var LLM_CONSTANTS = {
869
869
  var DEFAULT_MAX_OUTPUT_TOKENS = 8192;
870
870
  var DEFAULT_REQUEST_TIMEOUT_MS = 6e4;
871
871
  var SupportedAiModels = {
872
- // Claude Fable 5.1 (2026-09-02, was Fable 5) - frontier reasoning model. Thinking is always on (no non-thinking variant).
872
+ // Claude Fable 5.2 (2026-11-10, was 5.1 since 2026-09-02, Fable 5 before) - frontier reasoning model.
873
+ // Thinking is always on (no non-thinking variant). Id verified against GET /v1/models.
873
874
  [LLM_CONSTANTS.CLAUDE_FABLE]: {
874
- displayName: "Claude Fable 5.1",
875
- modelApiName: "claude-fable-5-1",
875
+ displayName: "Claude Fable 5.2",
876
+ modelApiName: "claude-fable-5-2",
876
877
  apiKeyName: API_KEY_CONSTANTS.ANTHROPIC,
877
878
  hasThinking: true,
878
879
  reasoningEffort: "high",
@@ -1507,9 +1508,11 @@ var MODEL_PRICING = {
1507
1508
  [SupportedAiModels[LLM_CONSTANTS.CLAUDE_FABLE].modelApiName]: {
1508
1509
  // Full 1M context window at standard pricing (no extended-context premium).
1509
1510
  // Fable 5.1 (2026-09-02): same $10/$50 as Fable 5, but cache reads dropped to $0.25/MTok.
1510
- inputPrice: 10,
1511
- outputPrice: 50,
1512
- cacheHitPrice: 0.25
1511
+ // Fable 5.2 (2026-11-10): $8/$40, cache reads $0.20 (pricing page, 2026-11-11) — 20% under
1512
+ // 5.1's $10/$50/$0.25. Cache writes $10 (5m) / $16 (1h) = the usual 1.25x / 2x of input.
1513
+ inputPrice: 8,
1514
+ outputPrice: 40,
1515
+ cacheHitPrice: 0.2
1513
1516
  },
1514
1517
  [SupportedAiModels[LLM_CONSTANTS.CLAUDE_OPUS].modelApiName]: {
1515
1518
  // Opus 5.5 (2026-09-22): $4/$20, down from Opus 5's $5/$25. Cache reads are 5% of input