@hiper2d/ai-agents 0.23.0 → 0.24.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
@@ -821,7 +821,9 @@ var LLM_CONSTANTS = {
821
821
  // MiniMax. Single M3 entry; stable id without the version for the same repoint reason.
822
822
  MINIMAX: "minimax",
823
823
  // Meta Model API (api.meta.ai). Muse Spark; version-free id so a 1.3 → 1.4 repoint is entry-only.
824
- MUSE_SPARK: "muse-spark"
824
+ MUSE_SPARK: "muse-spark",
825
+ // Muse Wonder, Meta's larger model above Spark (added 2026-10-13); same version-free pattern.
826
+ MUSE_WONDER: "muse-wonder"
825
827
  };
826
828
  var DEFAULT_MAX_OUTPUT_TOKENS = 8192;
827
829
  var DEFAULT_REQUEST_TIMEOUT_MS = 6e4;
@@ -969,12 +971,17 @@ var SupportedAiModels = {
969
971
  // ceiling, so 'high' leaves the dynamic range open. No `temperature`: Gemini 4 accepts it
970
972
  // but Google deprecated sampling params (see the Pro note). Story-pipeline speed as Game
971
973
  // Master not measured yet — run the host's live story suite before trusting it there.
974
+ // Pinned medium 2026-10-14 (was high since it shipped on 2026-10-13). Two days of
975
+ // production turns at high measured p50 21s / p90 40s with three 60s timeouts, and the
976
+ // werewolf day-2 vote fixture took 16-34s (380-415 output tokens). At medium the same
977
+ // prompt took 4-11s (75-110 output tokens) with the same vote target and a reason just
978
+ // as specific — the same trade Grok 4.7 made on 2026-10-06.
972
979
  [LLM_CONSTANTS.GEMINI_ARGON]: {
973
980
  displayName: "Gemini 4 Argon",
974
981
  modelApiName: "gemini-4-argon",
975
982
  apiKeyName: API_KEY_CONSTANTS.GOOGLE,
976
983
  hasThinking: true,
977
- reasoningEffort: "high",
984
+ reasoningEffort: "medium",
978
985
  tags: ["expensive"]
979
986
  },
980
987
  [LLM_CONSTANTS.GEMINI_PRO]: {
@@ -1227,6 +1234,20 @@ var SupportedAiModels = {
1227
1234
  temperature: 1,
1228
1235
  reasoningEffort: "medium",
1229
1236
  tags: ["slow"]
1237
+ },
1238
+ // Muse Wonder 1.0 (added 2026-10-13, id verified against GET /v1/models): Meta's model above
1239
+ // Spark, Standard mode only (no Contributor tier). Same MetaAgent and effort vocabulary as
1240
+ // Spark; probed low/medium/high on a short game prompt: 347/455/565 reasoning tokens in
1241
+ // 5.9/7.3/8.5s, so the pin stays 'medium' like Spark. Game-length turns and the story
1242
+ // pipeline are unmeasured — not tagged 'slow' yet; the host decides on Game Master use.
1243
+ [LLM_CONSTANTS.MUSE_WONDER]: {
1244
+ displayName: "Muse Wonder 1.0",
1245
+ modelApiName: "muse-wonder-1.0",
1246
+ apiKeyName: API_KEY_CONSTANTS.META,
1247
+ hasThinking: true,
1248
+ temperature: 1,
1249
+ reasoningEffort: "medium",
1250
+ tags: ["expensive"]
1230
1251
  }
1231
1252
  };
1232
1253
  function createCatalog(overrides = {}) {
@@ -1515,6 +1536,13 @@ var MODEL_PRICING = {
1515
1536
  inputPrice: 1.25,
1516
1537
  outputPrice: 4.25,
1517
1538
  cacheHitPrice: 0.15
1539
+ },
1540
+ // Standard mode (Meta Model API pricing page, 2026-10-13); Contributor mode is not offered
1541
+ // for Wonder. Cached input at 5% of input.
1542
+ [SupportedAiModels[LLM_CONSTANTS.MUSE_WONDER].modelApiName]: {
1543
+ inputPrice: 4,
1544
+ outputPrice: 20,
1545
+ cacheHitPrice: 0.2
1518
1546
  }
1519
1547
  };
1520
1548
  var HYBRID_THINKING_API_NAMES = /* @__PURE__ */ new Set([
@@ -5384,6 +5412,7 @@ var AgentFactory = class {
5384
5412
  return new MiniMaxAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
5385
5413
  // Meta Muse Spark — Responses API with encrypted reasoning replay, effort from the catalog
5386
5414
  case LLM_CONSTANTS.MUSE_SPARK:
5415
+ case LLM_CONSTANTS.MUSE_WONDER:
5387
5416
  return new MetaAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
5388
5417
  default:
5389
5418
  throw new Error(`Unknown Key: ${modelName}`);