@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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +52 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -803,6 +803,8 @@ var LLM_CONSTANTS = {
|
|
|
803
803
|
GPT_SOL: "gpt-sol",
|
|
804
804
|
GPT: "gpt",
|
|
805
805
|
GPT_MINI: "gpt-mini",
|
|
806
|
+
// Gemini 4 Argon sits above Pro; version-free id so a later Argon repoint keeps persisted ids.
|
|
807
|
+
GEMINI_ARGON: "gemini-argon",
|
|
806
808
|
GEMINI_PRO: "gemini-pro",
|
|
807
809
|
GEMINI_FLASH: "gemini-flash",
|
|
808
810
|
GEMINI_LITE: "gemini-lite",
|
|
@@ -819,7 +821,9 @@ var LLM_CONSTANTS = {
|
|
|
819
821
|
// MiniMax. Single M3 entry; stable id without the version for the same repoint reason.
|
|
820
822
|
MINIMAX: "minimax",
|
|
821
823
|
// Meta Model API (api.meta.ai). Muse Spark; version-free id so a 1.3 → 1.4 repoint is entry-only.
|
|
822
|
-
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"
|
|
823
827
|
};
|
|
824
828
|
var DEFAULT_MAX_OUTPUT_TOKENS = 8192;
|
|
825
829
|
var DEFAULT_REQUEST_TIMEOUT_MS = 6e4;
|
|
@@ -960,6 +964,21 @@ var SupportedAiModels = {
|
|
|
960
964
|
// 2.5-era thinkingBudget: 1024 (2026-08-06), which HAD been binding — so Flash Lite now
|
|
961
965
|
// thinks noticeably less under its "minimal" default (0.8s/49-token votes vs 4.5s/650
|
|
962
966
|
// budgeted); bump it to 'low' if its output quality visibly drops.
|
|
967
|
+
// Gemini 4 Argon (added 2026-10-13, id verified against GET /v1beta/models): Google's
|
|
968
|
+
// flagship reasoning model, 1M in / 32K out. Same thinkingLevel dialect as 3.x — accepts
|
|
969
|
+
// low|medium|high, rejects 'minimal' (probed). Pinned 'high' like Pro: on a 1.7K-token game
|
|
970
|
+
// prompt 'medium' thought 0 tokens (3.2s) while 'high' thought 622 (8.1s); the level is a
|
|
971
|
+
// ceiling, so 'high' leaves the dynamic range open. No `temperature`: Gemini 4 accepts it
|
|
972
|
+
// but Google deprecated sampling params (see the Pro note). Story-pipeline speed as Game
|
|
973
|
+
// Master not measured yet — run the host's live story suite before trusting it there.
|
|
974
|
+
[LLM_CONSTANTS.GEMINI_ARGON]: {
|
|
975
|
+
displayName: "Gemini 4 Argon",
|
|
976
|
+
modelApiName: "gemini-4-argon",
|
|
977
|
+
apiKeyName: API_KEY_CONSTANTS.GOOGLE,
|
|
978
|
+
hasThinking: true,
|
|
979
|
+
reasoningEffort: "high",
|
|
980
|
+
tags: ["expensive"]
|
|
981
|
+
},
|
|
963
982
|
[LLM_CONSTANTS.GEMINI_PRO]: {
|
|
964
983
|
displayName: "Gemini 3.1 Pro Preview",
|
|
965
984
|
modelApiName: "gemini-3.1-pro-preview",
|
|
@@ -1210,6 +1229,20 @@ var SupportedAiModels = {
|
|
|
1210
1229
|
temperature: 1,
|
|
1211
1230
|
reasoningEffort: "medium",
|
|
1212
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"]
|
|
1213
1246
|
}
|
|
1214
1247
|
};
|
|
1215
1248
|
function createCatalog(overrides = {}) {
|
|
@@ -1395,6 +1428,15 @@ var MODEL_PRICING = {
|
|
|
1395
1428
|
extendedContextThresholdTokens: 1e5
|
|
1396
1429
|
},
|
|
1397
1430
|
// Google models
|
|
1431
|
+
[SupportedAiModels[LLM_CONSTANTS.GEMINI_ARGON].modelApiName]: {
|
|
1432
|
+
// Launch pricing (ai.google.dev pricing page, fetched 2026-10-13), one flat tier — no
|
|
1433
|
+
// >200K long-context rows, unlike 3.1 Pro. DOUBLES on 2026-12-01 to $4.00 / $20.00 /
|
|
1434
|
+
// $0.20 — ACTION NEEDED then. Implicit caching only (explicit caching unsupported),
|
|
1435
|
+
// cached input bills at 5% of the input price. Not on Google's free tier or AI Pro plan.
|
|
1436
|
+
inputPrice: 2,
|
|
1437
|
+
outputPrice: 10,
|
|
1438
|
+
cacheHitPrice: 0.1
|
|
1439
|
+
},
|
|
1398
1440
|
[SupportedAiModels[LLM_CONSTANTS.GEMINI_PRO].modelApiName]: {
|
|
1399
1441
|
inputPrice: 2,
|
|
1400
1442
|
outputPrice: 12,
|
|
@@ -1489,6 +1531,13 @@ var MODEL_PRICING = {
|
|
|
1489
1531
|
inputPrice: 1.25,
|
|
1490
1532
|
outputPrice: 4.25,
|
|
1491
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
|
|
1492
1541
|
}
|
|
1493
1542
|
};
|
|
1494
1543
|
var HYBRID_THINKING_API_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -5326,6 +5375,7 @@ var AgentFactory = class {
|
|
|
5326
5375
|
case LLM_CONSTANTS.GPT:
|
|
5327
5376
|
case LLM_CONSTANTS.GPT_MINI:
|
|
5328
5377
|
return new Gpt5Agent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
|
|
5378
|
+
case LLM_CONSTANTS.GEMINI_ARGON:
|
|
5329
5379
|
case LLM_CONSTANTS.GEMINI_PRO:
|
|
5330
5380
|
case LLM_CONSTANTS.GEMINI_FLASH:
|
|
5331
5381
|
case LLM_CONSTANTS.GEMINI_LITE:
|
|
@@ -5357,6 +5407,7 @@ var AgentFactory = class {
|
|
|
5357
5407
|
return new MiniMaxAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
|
|
5358
5408
|
// Meta Muse Spark — Responses API with encrypted reasoning replay, effort from the catalog
|
|
5359
5409
|
case LLM_CONSTANTS.MUSE_SPARK:
|
|
5410
|
+
case LLM_CONSTANTS.MUSE_WONDER:
|
|
5360
5411
|
return new MetaAgent(name, instruction, model.modelApiName, key, model.temperature, shouldEnableThinking);
|
|
5361
5412
|
default:
|
|
5362
5413
|
throw new Error(`Unknown Key: ${modelName}`);
|