@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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -999,7 +999,9 @@ var LLM_CONSTANTS = {
|
|
|
999
999
|
// MiniMax. Single M3 entry; stable id without the version for the same repoint reason.
|
|
1000
1000
|
MINIMAX: "minimax",
|
|
1001
1001
|
// Meta Model API (api.meta.ai). Muse Spark; version-free id so a 1.3 → 1.4 repoint is entry-only.
|
|
1002
|
-
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"
|
|
1003
1005
|
};
|
|
1004
1006
|
var DEFAULT_MAX_OUTPUT_TOKENS = 8192;
|
|
1005
1007
|
var DEFAULT_REQUEST_TIMEOUT_MS = 6e4;
|
|
@@ -1147,12 +1149,17 @@ var SupportedAiModels = {
|
|
|
1147
1149
|
// ceiling, so 'high' leaves the dynamic range open. No `temperature`: Gemini 4 accepts it
|
|
1148
1150
|
// but Google deprecated sampling params (see the Pro note). Story-pipeline speed as Game
|
|
1149
1151
|
// Master not measured yet — run the host's live story suite before trusting it there.
|
|
1152
|
+
// Pinned medium 2026-10-14 (was high since it shipped on 2026-10-13). Two days of
|
|
1153
|
+
// production turns at high measured p50 21s / p90 40s with three 60s timeouts, and the
|
|
1154
|
+
// werewolf day-2 vote fixture took 16-34s (380-415 output tokens). At medium the same
|
|
1155
|
+
// prompt took 4-11s (75-110 output tokens) with the same vote target and a reason just
|
|
1156
|
+
// as specific — the same trade Grok 4.7 made on 2026-10-06.
|
|
1150
1157
|
[LLM_CONSTANTS.GEMINI_ARGON]: {
|
|
1151
1158
|
displayName: "Gemini 4 Argon",
|
|
1152
1159
|
modelApiName: "gemini-4-argon",
|
|
1153
1160
|
apiKeyName: API_KEY_CONSTANTS.GOOGLE,
|
|
1154
1161
|
hasThinking: true,
|
|
1155
|
-
reasoningEffort: "
|
|
1162
|
+
reasoningEffort: "medium",
|
|
1156
1163
|
tags: ["expensive"]
|
|
1157
1164
|
},
|
|
1158
1165
|
[LLM_CONSTANTS.GEMINI_PRO]: {
|
|
@@ -1405,6 +1412,20 @@ var SupportedAiModels = {
|
|
|
1405
1412
|
temperature: 1,
|
|
1406
1413
|
reasoningEffort: "medium",
|
|
1407
1414
|
tags: ["slow"]
|
|
1415
|
+
},
|
|
1416
|
+
// Muse Wonder 1.0 (added 2026-10-13, id verified against GET /v1/models): Meta's model above
|
|
1417
|
+
// Spark, Standard mode only (no Contributor tier). Same MetaAgent and effort vocabulary as
|
|
1418
|
+
// Spark; probed low/medium/high on a short game prompt: 347/455/565 reasoning tokens in
|
|
1419
|
+
// 5.9/7.3/8.5s, so the pin stays 'medium' like Spark. Game-length turns and the story
|
|
1420
|
+
// pipeline are unmeasured — not tagged 'slow' yet; the host decides on Game Master use.
|
|
1421
|
+
[LLM_CONSTANTS.MUSE_WONDER]: {
|
|
1422
|
+
displayName: "Muse Wonder 1.0",
|
|
1423
|
+
modelApiName: "muse-wonder-1.0",
|
|
1424
|
+
apiKeyName: API_KEY_CONSTANTS.META,
|
|
1425
|
+
hasThinking: true,
|
|
1426
|
+
temperature: 1,
|
|
1427
|
+
reasoningEffort: "medium",
|
|
1428
|
+
tags: ["expensive"]
|
|
1408
1429
|
}
|
|
1409
1430
|
};
|
|
1410
1431
|
function createCatalog(overrides = {}) {
|
|
@@ -1693,6 +1714,13 @@ var MODEL_PRICING = {
|
|
|
1693
1714
|
inputPrice: 1.25,
|
|
1694
1715
|
outputPrice: 4.25,
|
|
1695
1716
|
cacheHitPrice: 0.15
|
|
1717
|
+
},
|
|
1718
|
+
// Standard mode (Meta Model API pricing page, 2026-10-13); Contributor mode is not offered
|
|
1719
|
+
// for Wonder. Cached input at 5% of input.
|
|
1720
|
+
[SupportedAiModels[LLM_CONSTANTS.MUSE_WONDER].modelApiName]: {
|
|
1721
|
+
inputPrice: 4,
|
|
1722
|
+
outputPrice: 20,
|
|
1723
|
+
cacheHitPrice: 0.2
|
|
1696
1724
|
}
|
|
1697
1725
|
};
|
|
1698
1726
|
var HYBRID_THINKING_API_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -5562,6 +5590,7 @@ var AgentFactory = class {
|
|
|
5562
5590
|
return new MiniMaxAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
|
|
5563
5591
|
// Meta Muse Spark — Responses API with encrypted reasoning replay, effort from the catalog
|
|
5564
5592
|
case LLM_CONSTANTS.MUSE_SPARK:
|
|
5593
|
+
case LLM_CONSTANTS.MUSE_WONDER:
|
|
5565
5594
|
return new MetaAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
|
|
5566
5595
|
default:
|
|
5567
5596
|
throw new Error(`Unknown Key: ${modelName}`);
|