@ccusage/codex 17.0.2 → 17.1.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.
Files changed (3) hide show
  1. package/README.md +3 -0
  2. package/dist/index.js +52 -12
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -68,6 +68,9 @@ npx @ccusage/codex@latest monthly
68
68
 
69
69
  # Monthly JSON report for integrations
70
70
  npx @ccusage/codex@latest monthly --json
71
+
72
+ # Session-level detailed report
73
+ npx @ccusage/codex@latest sessions
71
74
  ```
72
75
 
73
76
  Useful environment variables:
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.0.2";
900
+ var version = "17.1.0";
901
901
  var description = "Usage analysis tool for OpenAI Codex sessions";
902
902
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
903
903
  let messages = [];
@@ -2744,6 +2744,14 @@ const sharedArgs = {
2744
2744
  type: "boolean",
2745
2745
  description: "Force compact table layout for narrow terminals",
2746
2746
  default: false
2747
+ },
2748
+ color: {
2749
+ type: "boolean",
2750
+ description: "Enable colored output (default: auto). FORCE_COLOR=1 has the same effect."
2751
+ },
2752
+ noColor: {
2753
+ type: "boolean",
2754
+ description: "Disable colored output (default: auto). NO_COLOR=1 has the same effect."
2747
2755
  }
2748
2756
  };
2749
2757
  var castComparer = function(comparer) {
@@ -6991,6 +6999,14 @@ const PREFETCHED_CODEX_PRICING = {
6991
6999
  "max_input_tokens": 272e3,
6992
7000
  "max_output_tokens": 128e3
6993
7001
  },
7002
+ "azure/gpt-5-codex": {
7003
+ "input_cost_per_token": 125e-8,
7004
+ "output_cost_per_token": 1e-5,
7005
+ "cache_read_input_token_cost": 125e-9,
7006
+ "max_tokens": 128e3,
7007
+ "max_input_tokens": 272e3,
7008
+ "max_output_tokens": 128e3
7009
+ },
6994
7010
  "azure/gpt-5-mini": {
6995
7011
  "input_cost_per_token": 25e-8,
6996
7012
  "output_cost_per_token": 2e-6,
@@ -7028,7 +7044,7 @@ const PREFETCHED_CODEX_PRICING = {
7028
7044
  "output_cost_per_token": 1e-5,
7029
7045
  "cache_read_input_token_cost": 125e-9,
7030
7046
  "max_tokens": 128e3,
7031
- "max_input_tokens": 4e5,
7047
+ "max_input_tokens": 272e3,
7032
7048
  "max_output_tokens": 128e3
7033
7049
  },
7034
7050
  "gpt-5-2025-08-07": {
@@ -7036,7 +7052,7 @@ const PREFETCHED_CODEX_PRICING = {
7036
7052
  "output_cost_per_token": 1e-5,
7037
7053
  "cache_read_input_token_cost": 125e-9,
7038
7054
  "max_tokens": 128e3,
7039
- "max_input_tokens": 4e5,
7055
+ "max_input_tokens": 272e3,
7040
7056
  "max_output_tokens": 128e3
7041
7057
  },
7042
7058
  "gpt-5-chat": {
@@ -7044,7 +7060,7 @@ const PREFETCHED_CODEX_PRICING = {
7044
7060
  "output_cost_per_token": 1e-5,
7045
7061
  "cache_read_input_token_cost": 125e-9,
7046
7062
  "max_tokens": 128e3,
7047
- "max_input_tokens": 4e5,
7063
+ "max_input_tokens": 272e3,
7048
7064
  "max_output_tokens": 128e3
7049
7065
  },
7050
7066
  "gpt-5-chat-latest": {
@@ -7052,7 +7068,15 @@ const PREFETCHED_CODEX_PRICING = {
7052
7068
  "output_cost_per_token": 1e-5,
7053
7069
  "cache_read_input_token_cost": 125e-9,
7054
7070
  "max_tokens": 128e3,
7055
- "max_input_tokens": 4e5,
7071
+ "max_input_tokens": 272e3,
7072
+ "max_output_tokens": 128e3
7073
+ },
7074
+ "gpt-5-codex": {
7075
+ "input_cost_per_token": 125e-8,
7076
+ "output_cost_per_token": 1e-5,
7077
+ "cache_read_input_token_cost": 125e-9,
7078
+ "max_tokens": 128e3,
7079
+ "max_input_tokens": 272e3,
7056
7080
  "max_output_tokens": 128e3
7057
7081
  },
7058
7082
  "gpt-5-mini": {
@@ -7060,7 +7084,7 @@ const PREFETCHED_CODEX_PRICING = {
7060
7084
  "output_cost_per_token": 2e-6,
7061
7085
  "cache_read_input_token_cost": 25e-9,
7062
7086
  "max_tokens": 128e3,
7063
- "max_input_tokens": 4e5,
7087
+ "max_input_tokens": 272e3,
7064
7088
  "max_output_tokens": 128e3
7065
7089
  },
7066
7090
  "gpt-5-mini-2025-08-07": {
@@ -7068,7 +7092,7 @@ const PREFETCHED_CODEX_PRICING = {
7068
7092
  "output_cost_per_token": 2e-6,
7069
7093
  "cache_read_input_token_cost": 25e-9,
7070
7094
  "max_tokens": 128e3,
7071
- "max_input_tokens": 4e5,
7095
+ "max_input_tokens": 272e3,
7072
7096
  "max_output_tokens": 128e3
7073
7097
  },
7074
7098
  "gpt-5-nano": {
@@ -7076,7 +7100,7 @@ const PREFETCHED_CODEX_PRICING = {
7076
7100
  "output_cost_per_token": 4e-7,
7077
7101
  "cache_read_input_token_cost": 5e-9,
7078
7102
  "max_tokens": 128e3,
7079
- "max_input_tokens": 4e5,
7103
+ "max_input_tokens": 272e3,
7080
7104
  "max_output_tokens": 128e3
7081
7105
  },
7082
7106
  "gpt-5-nano-2025-08-07": {
@@ -7084,7 +7108,7 @@ const PREFETCHED_CODEX_PRICING = {
7084
7108
  "output_cost_per_token": 4e-7,
7085
7109
  "cache_read_input_token_cost": 5e-9,
7086
7110
  "max_tokens": 128e3,
7087
- "max_input_tokens": 4e5,
7111
+ "max_input_tokens": 272e3,
7088
7112
  "max_output_tokens": 128e3
7089
7113
  },
7090
7114
  "openrouter/openai/gpt-5-chat": {
@@ -7092,7 +7116,23 @@ const PREFETCHED_CODEX_PRICING = {
7092
7116
  "output_cost_per_token": 1e-5,
7093
7117
  "cache_read_input_token_cost": 125e-9,
7094
7118
  "max_tokens": 128e3,
7095
- "max_input_tokens": 4e5,
7119
+ "max_input_tokens": 272e3,
7120
+ "max_output_tokens": 128e3
7121
+ },
7122
+ "openrouter/openai/gpt-5-codex": {
7123
+ "input_cost_per_token": 125e-8,
7124
+ "output_cost_per_token": 1e-5,
7125
+ "cache_read_input_token_cost": 125e-9,
7126
+ "max_tokens": 128e3,
7127
+ "max_input_tokens": 272e3,
7128
+ "max_output_tokens": 128e3
7129
+ },
7130
+ "openrouter/openai/gpt-5": {
7131
+ "input_cost_per_token": 125e-8,
7132
+ "output_cost_per_token": 1e-5,
7133
+ "cache_read_input_token_cost": 125e-9,
7134
+ "max_tokens": 128e3,
7135
+ "max_input_tokens": 272e3,
7096
7136
  "max_output_tokens": 128e3
7097
7137
  },
7098
7138
  "openrouter/openai/gpt-5-mini": {
@@ -7100,7 +7140,7 @@ const PREFETCHED_CODEX_PRICING = {
7100
7140
  "output_cost_per_token": 2e-6,
7101
7141
  "cache_read_input_token_cost": 25e-9,
7102
7142
  "max_tokens": 128e3,
7103
- "max_input_tokens": 4e5,
7143
+ "max_input_tokens": 272e3,
7104
7144
  "max_output_tokens": 128e3
7105
7145
  },
7106
7146
  "openrouter/openai/gpt-5-nano": {
@@ -7108,7 +7148,7 @@ const PREFETCHED_CODEX_PRICING = {
7108
7148
  "output_cost_per_token": 4e-7,
7109
7149
  "cache_read_input_token_cost": 5e-9,
7110
7150
  "max_tokens": 128e3,
7111
- "max_input_tokens": 4e5,
7151
+ "max_input_tokens": 272e3,
7112
7152
  "max_output_tokens": 128e3
7113
7153
  }
7114
7154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccusage/codex",
3
- "version": "17.0.2",
3
+ "version": "17.1.0",
4
4
  "description": "Usage analysis tool for OpenAI Codex sessions",
5
5
  "homepage": "https://github.com/ryoppippi/ccusage#readme",
6
6
  "bugs": {