@hiper2d/ai-agents 0.1.0 → 0.1.2

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
@@ -803,10 +803,10 @@ var LLM_CONSTANTS = {
803
803
  };
804
804
  var DEFAULT_MAX_OUTPUT_TOKENS = 8192;
805
805
  var SupportedAiModels = {
806
- // Claude Fable - frontier reasoning model. Thinking is always on (no non-thinking variant).
806
+ // Claude Fable 5.1 (2026-09-02, was Fable 5) - frontier reasoning model. Thinking is always on (no non-thinking variant).
807
807
  [LLM_CONSTANTS.CLAUDE_FABLE]: {
808
- displayName: "Claude Fable 5",
809
- modelApiName: "claude-fable-5",
808
+ displayName: "Claude Fable 5.1",
809
+ modelApiName: "claude-fable-5-1",
810
810
  apiKeyName: API_KEY_CONSTANTS.ANTHROPIC,
811
811
  hasThinking: true,
812
812
  reasoningEffort: "high",
@@ -905,10 +905,11 @@ var SupportedAiModels = {
905
905
  tags: ["expensive"]
906
906
  },
907
907
  [LLM_CONSTANTS.GEMINI_FLASH]: {
908
- // Repointed from gemini-3.6-flash 2026-08-13 (stable picker id, same pattern as gpt).
909
- // 3.7 rejects thinkingLevel 'minimal' (low|medium|high only), unlike 3.5/3.6.
910
- displayName: "Gemini 3.7 Flash",
911
- modelApiName: "gemini-3.7-flash",
908
+ // Repointed 3.6 → 3.7 (2026-08-13) → 3.8 (2026-09-02); stable picker id, same pattern as gpt.
909
+ // 3.7 rejected thinkingLevel 'minimal' (low|medium|high only), unlike 3.5/3.6 — 3.8 untested
910
+ // on 'minimal', so keep the pin at 'medium' or above.
911
+ displayName: "Gemini 3.8 Flash",
912
+ modelApiName: "gemini-3.8-flash",
912
913
  apiKeyName: API_KEY_CONSTANTS.GOOGLE,
913
914
  hasThinking: true,
914
915
  reasoningEffort: "medium",
@@ -1204,10 +1205,11 @@ var MODEL_PRICING = {
1204
1205
  },
1205
1206
  // Anthropic models
1206
1207
  [SupportedAiModels[LLM_CONSTANTS.CLAUDE_FABLE].modelApiName]: {
1207
- // Full 1M context window at standard pricing (no extended-context premium)
1208
+ // Full 1M context window at standard pricing (no extended-context premium).
1209
+ // Fable 5.1 (2026-09-02): same $10/$50 as Fable 5, but cache reads dropped to $0.25/MTok.
1208
1210
  inputPrice: 10,
1209
1211
  outputPrice: 50,
1210
- cacheHitPrice: 1
1212
+ cacheHitPrice: 0.25
1211
1213
  },
1212
1214
  [SupportedAiModels[LLM_CONSTANTS.CLAUDE_OPUS].modelApiName]: {
1213
1215
  inputPrice: 5,
@@ -1235,9 +1237,9 @@ var MODEL_PRICING = {
1235
1237
  extendedContextThresholdTokens: 2e5
1236
1238
  },
1237
1239
  [SupportedAiModels[LLM_CONSTANTS.GEMINI_FLASH].modelApiName]: {
1238
- // Launch pricing through 2026-12-31; doubles to $1.50/$7.50/$0.15 on 2027-01-01
1239
- // (ai.google.dev pricing page, fetched 2026-08-13) — ACTION NEEDED then: update these
1240
- // rates.
1240
+ // 3.8 Flash (2026-09-02) launched at the same rates as 3.7. 3.7's launch pricing was
1241
+ // scheduled to double to $1.50/$7.50/$0.15 on 2027-01-01 (ai.google.dev pricing page,
1242
+ // fetched 2026-08-13) — ACTION NEEDED then: re-check whether 3.8 follows and update.
1241
1243
  // Cache storage cost ($0.50 / 1M tokens per hour) is not tracked here — the
1242
1244
  // schema only models per-token call costs, not time-based storage.
1243
1245
  inputPrice: 0.75,