@hiper2d/ai-agents 0.1.0 → 0.1.2
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/README.md +3 -0
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,9 @@ Extracted from the [AI Werewolf](https://aiwerewolf.net) game so its model layer
|
|
|
9
9
|
shared across apps. Text agents today; TTS, STT and image-generation agents are planned as
|
|
10
10
|
subpath exports.
|
|
11
11
|
|
|
12
|
+
Migrating a project that has its own agent implementations? Hand [`MIGRATION.md`](./MIGRATION.md)
|
|
13
|
+
to your AI coding assistant — it is written for that job.
|
|
14
|
+
|
|
12
15
|
## Install
|
|
13
16
|
|
|
14
17
|
```bash
|
package/dist/index.js
CHANGED
|
@@ -934,10 +934,10 @@ var LLM_CONSTANTS = {
|
|
|
934
934
|
};
|
|
935
935
|
var DEFAULT_MAX_OUTPUT_TOKENS = 8192;
|
|
936
936
|
var SupportedAiModels = {
|
|
937
|
-
// Claude Fable - frontier reasoning model. Thinking is always on (no non-thinking variant).
|
|
937
|
+
// Claude Fable 5.1 (2026-09-02, was Fable 5) - frontier reasoning model. Thinking is always on (no non-thinking variant).
|
|
938
938
|
[LLM_CONSTANTS.CLAUDE_FABLE]: {
|
|
939
|
-
displayName: "Claude Fable 5",
|
|
940
|
-
modelApiName: "claude-fable-5",
|
|
939
|
+
displayName: "Claude Fable 5.1",
|
|
940
|
+
modelApiName: "claude-fable-5-1",
|
|
941
941
|
apiKeyName: API_KEY_CONSTANTS.ANTHROPIC,
|
|
942
942
|
hasThinking: true,
|
|
943
943
|
reasoningEffort: "high",
|
|
@@ -1036,10 +1036,11 @@ var SupportedAiModels = {
|
|
|
1036
1036
|
tags: ["expensive"]
|
|
1037
1037
|
},
|
|
1038
1038
|
[LLM_CONSTANTS.GEMINI_FLASH]: {
|
|
1039
|
-
// Repointed
|
|
1040
|
-
// 3.7
|
|
1041
|
-
|
|
1042
|
-
|
|
1039
|
+
// Repointed 3.6 → 3.7 (2026-08-13) → 3.8 (2026-09-02); stable picker id, same pattern as gpt.
|
|
1040
|
+
// 3.7 rejected thinkingLevel 'minimal' (low|medium|high only), unlike 3.5/3.6 — 3.8 untested
|
|
1041
|
+
// on 'minimal', so keep the pin at 'medium' or above.
|
|
1042
|
+
displayName: "Gemini 3.8 Flash",
|
|
1043
|
+
modelApiName: "gemini-3.8-flash",
|
|
1043
1044
|
apiKeyName: API_KEY_CONSTANTS.GOOGLE,
|
|
1044
1045
|
hasThinking: true,
|
|
1045
1046
|
reasoningEffort: "medium",
|
|
@@ -1335,10 +1336,11 @@ var MODEL_PRICING = {
|
|
|
1335
1336
|
},
|
|
1336
1337
|
// Anthropic models
|
|
1337
1338
|
[SupportedAiModels[LLM_CONSTANTS.CLAUDE_FABLE].modelApiName]: {
|
|
1338
|
-
// Full 1M context window at standard pricing (no extended-context premium)
|
|
1339
|
+
// Full 1M context window at standard pricing (no extended-context premium).
|
|
1340
|
+
// Fable 5.1 (2026-09-02): same $10/$50 as Fable 5, but cache reads dropped to $0.25/MTok.
|
|
1339
1341
|
inputPrice: 10,
|
|
1340
1342
|
outputPrice: 50,
|
|
1341
|
-
cacheHitPrice:
|
|
1343
|
+
cacheHitPrice: 0.25
|
|
1342
1344
|
},
|
|
1343
1345
|
[SupportedAiModels[LLM_CONSTANTS.CLAUDE_OPUS].modelApiName]: {
|
|
1344
1346
|
inputPrice: 5,
|
|
@@ -1366,9 +1368,9 @@ var MODEL_PRICING = {
|
|
|
1366
1368
|
extendedContextThresholdTokens: 2e5
|
|
1367
1369
|
},
|
|
1368
1370
|
[SupportedAiModels[LLM_CONSTANTS.GEMINI_FLASH].modelApiName]: {
|
|
1369
|
-
//
|
|
1370
|
-
// (ai.google.dev pricing page,
|
|
1371
|
-
//
|
|
1371
|
+
// 3.8 Flash (2026-09-02) launched at the same rates as 3.7. 3.7's launch pricing was
|
|
1372
|
+
// scheduled to double to $1.50/$7.50/$0.15 on 2027-01-01 (ai.google.dev pricing page,
|
|
1373
|
+
// fetched 2026-08-13) — ACTION NEEDED then: re-check whether 3.8 follows and update.
|
|
1372
1374
|
// Cache storage cost ($0.50 / 1M tokens per hour) is not tracked here — the
|
|
1373
1375
|
// schema only models per-token call costs, not time-based storage.
|
|
1374
1376
|
inputPrice: 0.75,
|