@hiper2d/ai-agents 0.23.0 → 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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +25 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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;
|
|
@@ -1227,6 +1229,20 @@ var SupportedAiModels = {
|
|
|
1227
1229
|
temperature: 1,
|
|
1228
1230
|
reasoningEffort: "medium",
|
|
1229
1231
|
tags: ["slow"]
|
|
1232
|
+
},
|
|
1233
|
+
// Muse Wonder 1.0 (added 2026-10-13, id verified against GET /v1/models): Meta's model above
|
|
1234
|
+
// Spark, Standard mode only (no Contributor tier). Same MetaAgent and effort vocabulary as
|
|
1235
|
+
// Spark; probed low/medium/high on a short game prompt: 347/455/565 reasoning tokens in
|
|
1236
|
+
// 5.9/7.3/8.5s, so the pin stays 'medium' like Spark. Game-length turns and the story
|
|
1237
|
+
// pipeline are unmeasured — not tagged 'slow' yet; the host decides on Game Master use.
|
|
1238
|
+
[LLM_CONSTANTS.MUSE_WONDER]: {
|
|
1239
|
+
displayName: "Muse Wonder 1.0",
|
|
1240
|
+
modelApiName: "muse-wonder-1.0",
|
|
1241
|
+
apiKeyName: API_KEY_CONSTANTS.META,
|
|
1242
|
+
hasThinking: true,
|
|
1243
|
+
temperature: 1,
|
|
1244
|
+
reasoningEffort: "medium",
|
|
1245
|
+
tags: ["expensive"]
|
|
1230
1246
|
}
|
|
1231
1247
|
};
|
|
1232
1248
|
function createCatalog(overrides = {}) {
|
|
@@ -1515,6 +1531,13 @@ var MODEL_PRICING = {
|
|
|
1515
1531
|
inputPrice: 1.25,
|
|
1516
1532
|
outputPrice: 4.25,
|
|
1517
1533
|
cacheHitPrice: 0.15
|
|
1534
|
+
},
|
|
1535
|
+
// Standard mode (Meta Model API pricing page, 2026-10-13); Contributor mode is not offered
|
|
1536
|
+
// for Wonder. Cached input at 5% of input.
|
|
1537
|
+
[SupportedAiModels[LLM_CONSTANTS.MUSE_WONDER].modelApiName]: {
|
|
1538
|
+
inputPrice: 4,
|
|
1539
|
+
outputPrice: 20,
|
|
1540
|
+
cacheHitPrice: 0.2
|
|
1518
1541
|
}
|
|
1519
1542
|
};
|
|
1520
1543
|
var HYBRID_THINKING_API_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -5384,6 +5407,7 @@ var AgentFactory = class {
|
|
|
5384
5407
|
return new MiniMaxAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
|
|
5385
5408
|
// Meta Muse Spark — Responses API with encrypted reasoning replay, effort from the catalog
|
|
5386
5409
|
case LLM_CONSTANTS.MUSE_SPARK:
|
|
5410
|
+
case LLM_CONSTANTS.MUSE_WONDER:
|
|
5387
5411
|
return new MetaAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
|
|
5388
5412
|
default:
|
|
5389
5413
|
throw new Error(`Unknown Key: ${modelName}`);
|