@hiper2d/ai-agents 0.1.3 → 0.1.4
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 +26 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -0
- 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
|
@@ -919,6 +919,7 @@ var LLM_CONSTANTS = {
|
|
|
919
919
|
DEEPSEEK_PRO: "deepseek-pro",
|
|
920
920
|
// GPT-5.6 family. 'gpt' and 'gpt-mini' are stable picker ids carried over from the
|
|
921
921
|
// GPT-5.5 / GPT-5.4-mini era so existing consumers keep working across the repoint.
|
|
922
|
+
GPT_ASTRA: "gpt-astra",
|
|
922
923
|
GPT_SOL: "gpt-sol",
|
|
923
924
|
GPT: "gpt",
|
|
924
925
|
GPT_MINI: "gpt-mini",
|
|
@@ -1003,6 +1004,17 @@ var SupportedAiModels = {
|
|
|
1003
1004
|
tags: ["cheap"]
|
|
1004
1005
|
},
|
|
1005
1006
|
// Models with always-on reasoning
|
|
1007
|
+
// GPT-6 Astra (2026-09-03): OpenAI's frontier tier above Sol. No `none` reasoning effort;
|
|
1008
|
+
// temperature/top_p are rejected — Gpt5Agent sends neither, so the same agent serves it.
|
|
1009
|
+
// The catalog temperature is only carried for the agent constructor signature.
|
|
1010
|
+
[LLM_CONSTANTS.GPT_ASTRA]: {
|
|
1011
|
+
displayName: "GPT-6 Astra",
|
|
1012
|
+
modelApiName: "gpt-6-astra",
|
|
1013
|
+
apiKeyName: API_KEY_CONSTANTS.OPENAI,
|
|
1014
|
+
hasThinking: true,
|
|
1015
|
+
temperature: 1,
|
|
1016
|
+
tags: ["expensive"]
|
|
1017
|
+
},
|
|
1006
1018
|
// GPT-5.6 family (promoted July 2026 when the limited preview opened up):
|
|
1007
1019
|
// sol is the flagship, terra the mainline, luna the cheap tier.
|
|
1008
1020
|
[LLM_CONSTANTS.GPT_SOL]: {
|
|
@@ -1274,6 +1286,19 @@ var DEEPSEEK_PEAK_SCHEDULE = {
|
|
|
1274
1286
|
weekendOffPeak: { utcOffsetHours: 8 }
|
|
1275
1287
|
};
|
|
1276
1288
|
var MODEL_PRICING = {
|
|
1289
|
+
// OpenAI GPT-6 Astra (developers.openai.com/api/docs/pricing, 2026-09-03): $10/$50 cache-hit $1
|
|
1290
|
+
// short context, $20/$75 cache-hit $2 long context. OpenAI's pricing table doesn't restate
|
|
1291
|
+
// the boundary; we assume the same 272k threshold as the GPT-5.6 siblings. Cache writes
|
|
1292
|
+
// ($12.50/$25) are not modelled — caching is automatic and we only see hits.
|
|
1293
|
+
[SupportedAiModels[LLM_CONSTANTS.GPT_ASTRA].modelApiName]: {
|
|
1294
|
+
inputPrice: 10,
|
|
1295
|
+
outputPrice: 50,
|
|
1296
|
+
cacheHitPrice: 1,
|
|
1297
|
+
extendedContextInputPrice: 20,
|
|
1298
|
+
extendedContextOutputPrice: 75,
|
|
1299
|
+
extendedContextCacheHitPrice: 2,
|
|
1300
|
+
extendedContextThresholdTokens: 272e3
|
|
1301
|
+
},
|
|
1277
1302
|
// OpenAI GPT-5.6 models
|
|
1278
1303
|
// Sol repriced 2026-08-30 (developers.openai.com/api/docs/pricing): $4/$20 short context,
|
|
1279
1304
|
// $8/$30 past the long-context threshold — the same 272k boundary its siblings use.
|
|
@@ -4390,6 +4415,7 @@ var AgentFactory = class {
|
|
|
4390
4415
|
case LLM_CONSTANTS.CLAUDE_HAIKU:
|
|
4391
4416
|
return new ClaudeAgent(name, instruction, model.modelApiName, key, shouldEnableThinking);
|
|
4392
4417
|
// Always-on reasoning models
|
|
4418
|
+
case LLM_CONSTANTS.GPT_ASTRA:
|
|
4393
4419
|
case LLM_CONSTANTS.GPT_SOL:
|
|
4394
4420
|
case LLM_CONSTANTS.GPT:
|
|
4395
4421
|
case LLM_CONSTANTS.GPT_MINI:
|