agent-usage-all-in-one 0.6.1 → 0.7.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/cli.js +37 -9
- package/dist/cli.js.map +1 -1
- package/dist/web/_app/immutable/chunks/D5pAC-T7.js +1 -0
- package/dist/web/_app/immutable/entry/{app.CtTSjPvR.js → app.Cum34GuE.js} +2 -2
- package/dist/web/_app/immutable/entry/start.C5EjL_LL.js +1 -0
- package/dist/web/_app/immutable/nodes/{1.Bmpb2sVB.js → 1.DfK51mq1.js} +1 -1
- package/dist/web/_app/immutable/nodes/{2.B4_wlGNX.js → 2.DJI_veG-.js} +5 -5
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +6 -6
- package/package.json +1 -1
- package/dist/web/_app/immutable/chunks/tIH2kMzb.js +0 -1
- package/dist/web/_app/immutable/entry/start.EiWwYI1w.js +0 -1
package/dist/cli.js
CHANGED
|
@@ -585,20 +585,21 @@ function antigravityEntry(options) {
|
|
|
585
585
|
source: options.source ?? GOOGLE_ANTIGRAVITY_SOURCE
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
|
|
588
|
+
function openAiCodexEntries(options) {
|
|
589
|
+
const aliases = options.aliases ?? [];
|
|
590
|
+
return options.periods.flatMap(([effectiveFrom, effectiveUntil, input, output]) => {
|
|
590
591
|
const versionDate = effectiveFrom.slice(0, 10);
|
|
591
592
|
const entry = (tier) => {
|
|
592
593
|
const long = tier === "prompt-above-272k";
|
|
593
594
|
const tierInput = long ? input * 2 : input;
|
|
594
595
|
const tierOutput = long ? output * 1.5 : output;
|
|
595
596
|
return {
|
|
596
|
-
id: `openai-${model}-${tier}-${versionDate}`,
|
|
597
|
-
priceVersion:
|
|
597
|
+
id: `openai-${options.model}-${tier}-${versionDate}`,
|
|
598
|
+
priceVersion: `${options.priceVersionPrefix}-${versionDate}`,
|
|
598
599
|
providerId: "codex",
|
|
599
600
|
billingDomainId: "subscription",
|
|
600
|
-
canonicalModel: model,
|
|
601
|
-
aliases
|
|
601
|
+
canonicalModel: options.model,
|
|
602
|
+
aliases,
|
|
602
603
|
currency: "USD",
|
|
603
604
|
effectiveFrom,
|
|
604
605
|
effectiveUntil,
|
|
@@ -611,12 +612,29 @@ function openAiGpt56Entries(model, periods) {
|
|
|
611
612
|
"cache-read": tierInput * 0.1,
|
|
612
613
|
"cache-write": tierInput * 1.25
|
|
613
614
|
},
|
|
614
|
-
source:
|
|
615
|
+
source: options.source
|
|
615
616
|
};
|
|
616
617
|
};
|
|
617
618
|
return [entry("standard"), entry("prompt-above-272k")];
|
|
618
619
|
});
|
|
619
620
|
}
|
|
621
|
+
function openAiGpt56Entries(model, periods) {
|
|
622
|
+
return openAiCodexEntries({
|
|
623
|
+
model,
|
|
624
|
+
periods,
|
|
625
|
+
priceVersionPrefix: "openai-gpt-5.6",
|
|
626
|
+
source: OPENAI_GPT_56_SOURCE
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
function openAiGpt6AstraEntries(model, periods, aliases = []) {
|
|
630
|
+
return openAiCodexEntries({
|
|
631
|
+
model,
|
|
632
|
+
aliases,
|
|
633
|
+
periods,
|
|
634
|
+
priceVersionPrefix: "openai-gpt-6-astra",
|
|
635
|
+
source: OPENAI_GPT_6_ASTRA_SOURCE
|
|
636
|
+
});
|
|
637
|
+
}
|
|
620
638
|
function openCodeGoEntry(model, tier, input, output, cacheRead, cacheWrite, contextRule) {
|
|
621
639
|
const history = OPEN_CODE_PRICE_HISTORY[model];
|
|
622
640
|
if (!history) throw new Error(`Missing pinned OpenCode Go price history for ${model}.`);
|
|
@@ -959,7 +977,7 @@ function matchContext(rule, observation) {
|
|
|
959
977
|
function preciseMoney(value) {
|
|
960
978
|
return Number(value.toFixed(12));
|
|
961
979
|
}
|
|
962
|
-
var ANTHROPIC_PRICING_CATALOG, OPENCODE_GO_SOURCE, XAI_PRICING_SOURCE, OPENAI_GPT_56_SOURCE, OPEN_CODE_GO_SOURCE_PATH, openCodeHistory, OPEN_CODE_BASE_HISTORY, OPEN_CODE_PRICE_HISTORY, OPEN_CODE_FLAT_MODELS, OPEN_CODE_CONTEXT_MODELS, DEEPSEEK_GO_MODELS, WEEKDAY_PEAK_RANGES, DEEPSEEK_OFFICIAL_SOURCE, DEEPSEEK_OFFICIAL_MODELS, DEEPSEEK_OFFICIAL_EFFECTIVE_FROM, GOOGLE_ANTIGRAVITY_SOURCE, GOOGLE_ANTIGRAVITY_EFFECTIVE_FROM, DIRECT_OFFICIAL_PRICING_CATALOG, OFFICIAL_PRICING_CATALOG;
|
|
980
|
+
var ANTHROPIC_PRICING_CATALOG, OPENCODE_GO_SOURCE, XAI_PRICING_SOURCE, OPENAI_GPT_56_SOURCE, OPENAI_GPT_6_ASTRA_SOURCE, OPEN_CODE_GO_SOURCE_PATH, openCodeHistory, OPEN_CODE_BASE_HISTORY, OPEN_CODE_PRICE_HISTORY, OPEN_CODE_FLAT_MODELS, OPEN_CODE_CONTEXT_MODELS, DEEPSEEK_GO_MODELS, WEEKDAY_PEAK_RANGES, DEEPSEEK_OFFICIAL_SOURCE, DEEPSEEK_OFFICIAL_MODELS, DEEPSEEK_OFFICIAL_EFFECTIVE_FROM, GOOGLE_ANTIGRAVITY_SOURCE, GOOGLE_ANTIGRAVITY_EFFECTIVE_FROM, DIRECT_OFFICIAL_PRICING_CATALOG, OFFICIAL_PRICING_CATALOG;
|
|
963
981
|
var init_retail_pricing = __esm({
|
|
964
982
|
"src/core/retail-pricing.ts"() {
|
|
965
983
|
"use strict";
|
|
@@ -1074,6 +1092,11 @@ var init_retail_pricing = __esm({
|
|
|
1074
1092
|
url: "https://openai.com/index/gpt-5-6/",
|
|
1075
1093
|
retrievedAt: "2026-08-28"
|
|
1076
1094
|
};
|
|
1095
|
+
OPENAI_GPT_6_ASTRA_SOURCE = {
|
|
1096
|
+
title: "OpenAI GPT-6 Astra pricing",
|
|
1097
|
+
url: "https://developers.openai.com/api/docs/models/gpt-6-astra",
|
|
1098
|
+
retrievedAt: "2026-09-05"
|
|
1099
|
+
};
|
|
1077
1100
|
OPEN_CODE_GO_SOURCE_PATH = "packages/web/src/content/docs/go.mdx";
|
|
1078
1101
|
openCodeHistory = (commit, effectiveFrom) => ({
|
|
1079
1102
|
effectiveFrom,
|
|
@@ -1209,6 +1232,11 @@ var init_retail_pricing = __esm({
|
|
|
1209
1232
|
["2026-07-09T00:00:00.000Z", "2026-07-30T00:00:00.000Z", 1, 6],
|
|
1210
1233
|
["2026-07-30T00:00:00.000Z", null, 0.2, 1.2]
|
|
1211
1234
|
]),
|
|
1235
|
+
...openAiGpt6AstraEntries(
|
|
1236
|
+
"gpt-6-astra",
|
|
1237
|
+
[["2026-09-03T00:00:00.000Z", null, 10, 50]],
|
|
1238
|
+
["GPT-6 Astra", "gpt-6-astra-2026-09-03", "gpt-6-astra-20260903", "astra"]
|
|
1239
|
+
),
|
|
1212
1240
|
...OPEN_CODE_FLAT_MODELS.map(
|
|
1213
1241
|
([model, input, output, cacheRead, cacheWrite]) => openCodeGoEntry(model, "standard", input, output, cacheRead, cacheWrite ?? null, {
|
|
1214
1242
|
kind: "fixed"
|
|
@@ -1413,7 +1441,7 @@ var init_retail_pricing = __esm({
|
|
|
1413
1441
|
]
|
|
1414
1442
|
};
|
|
1415
1443
|
OFFICIAL_PRICING_CATALOG = {
|
|
1416
|
-
version: "2026-09-
|
|
1444
|
+
version: "2026-09-05-gpt-6-astra",
|
|
1417
1445
|
entries: [
|
|
1418
1446
|
...DIRECT_OFFICIAL_PRICING_CATALOG.entries,
|
|
1419
1447
|
...openCodeLocalHistoryEntries(DIRECT_OFFICIAL_PRICING_CATALOG.entries)
|