@ccusage/codex 17.1.0 → 17.1.1
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.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -897,7 +897,7 @@ async function executeCommand(cmd, ctx, name$1) {
|
|
|
897
897
|
await resolved.run(ctx);
|
|
898
898
|
}
|
|
899
899
|
var name = "@ccusage/codex";
|
|
900
|
-
var version = "17.1.
|
|
900
|
+
var version = "17.1.1";
|
|
901
901
|
var description = "Usage analysis tool for OpenAI Codex sessions";
|
|
902
902
|
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
903
903
|
let messages = [];
|
|
@@ -2686,7 +2686,7 @@ function formatCurrency(amount) {
|
|
|
2686
2686
|
return `$${amount.toFixed(2)}`;
|
|
2687
2687
|
}
|
|
2688
2688
|
function formatModelName(modelName) {
|
|
2689
|
-
const match = modelName.match(/claude-(\w+)-(\d+)
|
|
2689
|
+
const match = modelName.match(/claude-(\w+)-([\d-]+)-(\d{8})/);
|
|
2690
2690
|
if (match != null) return `${match[1]}-${match[2]}`;
|
|
2691
2691
|
return modelName;
|
|
2692
2692
|
}
|
|
@@ -7047,7 +7047,7 @@ const PREFETCHED_CODEX_PRICING = {
|
|
|
7047
7047
|
"max_input_tokens": 272e3,
|
|
7048
7048
|
"max_output_tokens": 128e3
|
|
7049
7049
|
},
|
|
7050
|
-
"gpt-5-
|
|
7050
|
+
"gpt-5-codex": {
|
|
7051
7051
|
"input_cost_per_token": 125e-8,
|
|
7052
7052
|
"output_cost_per_token": 1e-5,
|
|
7053
7053
|
"cache_read_input_token_cost": 125e-9,
|
|
@@ -7055,7 +7055,7 @@ const PREFETCHED_CODEX_PRICING = {
|
|
|
7055
7055
|
"max_input_tokens": 272e3,
|
|
7056
7056
|
"max_output_tokens": 128e3
|
|
7057
7057
|
},
|
|
7058
|
-
"gpt-5-
|
|
7058
|
+
"gpt-5-2025-08-07": {
|
|
7059
7059
|
"input_cost_per_token": 125e-8,
|
|
7060
7060
|
"output_cost_per_token": 1e-5,
|
|
7061
7061
|
"cache_read_input_token_cost": 125e-9,
|
|
@@ -7063,7 +7063,7 @@ const PREFETCHED_CODEX_PRICING = {
|
|
|
7063
7063
|
"max_input_tokens": 272e3,
|
|
7064
7064
|
"max_output_tokens": 128e3
|
|
7065
7065
|
},
|
|
7066
|
-
"gpt-5-chat
|
|
7066
|
+
"gpt-5-chat": {
|
|
7067
7067
|
"input_cost_per_token": 125e-8,
|
|
7068
7068
|
"output_cost_per_token": 1e-5,
|
|
7069
7069
|
"cache_read_input_token_cost": 125e-9,
|
|
@@ -7071,7 +7071,7 @@ const PREFETCHED_CODEX_PRICING = {
|
|
|
7071
7071
|
"max_input_tokens": 272e3,
|
|
7072
7072
|
"max_output_tokens": 128e3
|
|
7073
7073
|
},
|
|
7074
|
-
"gpt-5-
|
|
7074
|
+
"gpt-5-chat-latest": {
|
|
7075
7075
|
"input_cost_per_token": 125e-8,
|
|
7076
7076
|
"output_cost_per_token": 1e-5,
|
|
7077
7077
|
"cache_read_input_token_cost": 125e-9,
|