@hiper2d/ai-agents 0.22.1 → 0.24.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.d.mts CHANGED
@@ -372,6 +372,7 @@ declare const LLM_CONSTANTS: {
372
372
  GPT_SOL: string;
373
373
  GPT: string;
374
374
  GPT_MINI: string;
375
+ GEMINI_ARGON: string;
375
376
  GEMINI_PRO: string;
376
377
  GEMINI_FLASH: string;
377
378
  GEMINI_LITE: string;
@@ -385,6 +386,7 @@ declare const LLM_CONSTANTS: {
385
386
  QWEN_FLASH: string;
386
387
  MINIMAX: string;
387
388
  MUSE_SPARK: string;
389
+ MUSE_WONDER: string;
388
390
  };
389
391
  /**
390
392
  * Per-request output ceiling for ordinary requests. Reasoning tokens are billed inside this
package/dist/index.d.ts CHANGED
@@ -372,6 +372,7 @@ declare const LLM_CONSTANTS: {
372
372
  GPT_SOL: string;
373
373
  GPT: string;
374
374
  GPT_MINI: string;
375
+ GEMINI_ARGON: string;
375
376
  GEMINI_PRO: string;
376
377
  GEMINI_FLASH: string;
377
378
  GEMINI_LITE: string;
@@ -385,6 +386,7 @@ declare const LLM_CONSTANTS: {
385
386
  QWEN_FLASH: string;
386
387
  MINIMAX: string;
387
388
  MUSE_SPARK: string;
389
+ MUSE_WONDER: string;
388
390
  };
389
391
  /**
390
392
  * Per-request output ceiling for ordinary requests. Reasoning tokens are billed inside this
package/dist/index.js CHANGED
@@ -981,6 +981,8 @@ var LLM_CONSTANTS = {
981
981
  GPT_SOL: "gpt-sol",
982
982
  GPT: "gpt",
983
983
  GPT_MINI: "gpt-mini",
984
+ // Gemini 4 Argon sits above Pro; version-free id so a later Argon repoint keeps persisted ids.
985
+ GEMINI_ARGON: "gemini-argon",
984
986
  GEMINI_PRO: "gemini-pro",
985
987
  GEMINI_FLASH: "gemini-flash",
986
988
  GEMINI_LITE: "gemini-lite",
@@ -997,7 +999,9 @@ var LLM_CONSTANTS = {
997
999
  // MiniMax. Single M3 entry; stable id without the version for the same repoint reason.
998
1000
  MINIMAX: "minimax",
999
1001
  // Meta Model API (api.meta.ai). Muse Spark; version-free id so a 1.3 → 1.4 repoint is entry-only.
1000
- MUSE_SPARK: "muse-spark"
1002
+ MUSE_SPARK: "muse-spark",
1003
+ // Muse Wonder, Meta's larger model above Spark (added 2026-10-13); same version-free pattern.
1004
+ MUSE_WONDER: "muse-wonder"
1001
1005
  };
1002
1006
  var DEFAULT_MAX_OUTPUT_TOKENS = 8192;
1003
1007
  var DEFAULT_REQUEST_TIMEOUT_MS = 6e4;
@@ -1138,6 +1142,21 @@ var SupportedAiModels = {
1138
1142
  // 2.5-era thinkingBudget: 1024 (2026-08-06), which HAD been binding — so Flash Lite now
1139
1143
  // thinks noticeably less under its "minimal" default (0.8s/49-token votes vs 4.5s/650
1140
1144
  // budgeted); bump it to 'low' if its output quality visibly drops.
1145
+ // Gemini 4 Argon (added 2026-10-13, id verified against GET /v1beta/models): Google's
1146
+ // flagship reasoning model, 1M in / 32K out. Same thinkingLevel dialect as 3.x — accepts
1147
+ // low|medium|high, rejects 'minimal' (probed). Pinned 'high' like Pro: on a 1.7K-token game
1148
+ // prompt 'medium' thought 0 tokens (3.2s) while 'high' thought 622 (8.1s); the level is a
1149
+ // ceiling, so 'high' leaves the dynamic range open. No `temperature`: Gemini 4 accepts it
1150
+ // but Google deprecated sampling params (see the Pro note). Story-pipeline speed as Game
1151
+ // Master not measured yet — run the host's live story suite before trusting it there.
1152
+ [LLM_CONSTANTS.GEMINI_ARGON]: {
1153
+ displayName: "Gemini 4 Argon",
1154
+ modelApiName: "gemini-4-argon",
1155
+ apiKeyName: API_KEY_CONSTANTS.GOOGLE,
1156
+ hasThinking: true,
1157
+ reasoningEffort: "high",
1158
+ tags: ["expensive"]
1159
+ },
1141
1160
  [LLM_CONSTANTS.GEMINI_PRO]: {
1142
1161
  displayName: "Gemini 3.1 Pro Preview",
1143
1162
  modelApiName: "gemini-3.1-pro-preview",
@@ -1388,6 +1407,20 @@ var SupportedAiModels = {
1388
1407
  temperature: 1,
1389
1408
  reasoningEffort: "medium",
1390
1409
  tags: ["slow"]
1410
+ },
1411
+ // Muse Wonder 1.0 (added 2026-10-13, id verified against GET /v1/models): Meta's model above
1412
+ // Spark, Standard mode only (no Contributor tier). Same MetaAgent and effort vocabulary as
1413
+ // Spark; probed low/medium/high on a short game prompt: 347/455/565 reasoning tokens in
1414
+ // 5.9/7.3/8.5s, so the pin stays 'medium' like Spark. Game-length turns and the story
1415
+ // pipeline are unmeasured — not tagged 'slow' yet; the host decides on Game Master use.
1416
+ [LLM_CONSTANTS.MUSE_WONDER]: {
1417
+ displayName: "Muse Wonder 1.0",
1418
+ modelApiName: "muse-wonder-1.0",
1419
+ apiKeyName: API_KEY_CONSTANTS.META,
1420
+ hasThinking: true,
1421
+ temperature: 1,
1422
+ reasoningEffort: "medium",
1423
+ tags: ["expensive"]
1391
1424
  }
1392
1425
  };
1393
1426
  function createCatalog(overrides = {}) {
@@ -1573,6 +1606,15 @@ var MODEL_PRICING = {
1573
1606
  extendedContextThresholdTokens: 1e5
1574
1607
  },
1575
1608
  // Google models
1609
+ [SupportedAiModels[LLM_CONSTANTS.GEMINI_ARGON].modelApiName]: {
1610
+ // Launch pricing (ai.google.dev pricing page, fetched 2026-10-13), one flat tier — no
1611
+ // >200K long-context rows, unlike 3.1 Pro. DOUBLES on 2026-12-01 to $4.00 / $20.00 /
1612
+ // $0.20 — ACTION NEEDED then. Implicit caching only (explicit caching unsupported),
1613
+ // cached input bills at 5% of the input price. Not on Google's free tier or AI Pro plan.
1614
+ inputPrice: 2,
1615
+ outputPrice: 10,
1616
+ cacheHitPrice: 0.1
1617
+ },
1576
1618
  [SupportedAiModels[LLM_CONSTANTS.GEMINI_PRO].modelApiName]: {
1577
1619
  inputPrice: 2,
1578
1620
  outputPrice: 12,
@@ -1667,6 +1709,13 @@ var MODEL_PRICING = {
1667
1709
  inputPrice: 1.25,
1668
1710
  outputPrice: 4.25,
1669
1711
  cacheHitPrice: 0.15
1712
+ },
1713
+ // Standard mode (Meta Model API pricing page, 2026-10-13); Contributor mode is not offered
1714
+ // for Wonder. Cached input at 5% of input.
1715
+ [SupportedAiModels[LLM_CONSTANTS.MUSE_WONDER].modelApiName]: {
1716
+ inputPrice: 4,
1717
+ outputPrice: 20,
1718
+ cacheHitPrice: 0.2
1670
1719
  }
1671
1720
  };
1672
1721
  var HYBRID_THINKING_API_NAMES = /* @__PURE__ */ new Set([
@@ -5504,6 +5553,7 @@ var AgentFactory = class {
5504
5553
  case LLM_CONSTANTS.GPT:
5505
5554
  case LLM_CONSTANTS.GPT_MINI:
5506
5555
  return new Gpt5Agent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
5556
+ case LLM_CONSTANTS.GEMINI_ARGON:
5507
5557
  case LLM_CONSTANTS.GEMINI_PRO:
5508
5558
  case LLM_CONSTANTS.GEMINI_FLASH:
5509
5559
  case LLM_CONSTANTS.GEMINI_LITE:
@@ -5535,6 +5585,7 @@ var AgentFactory = class {
5535
5585
  return new MiniMaxAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
5536
5586
  // Meta Muse Spark — Responses API with encrypted reasoning replay, effort from the catalog
5537
5587
  case LLM_CONSTANTS.MUSE_SPARK:
5588
+ case LLM_CONSTANTS.MUSE_WONDER:
5538
5589
  return new MetaAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
5539
5590
  default:
5540
5591
  throw new Error(`Unknown Key: ${modelName}`);