ccus-cli 0.2.14 → 0.2.15
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
CHANGED
|
@@ -170,6 +170,7 @@ ccus aggregate serve --input-dir ./team-exports
|
|
|
170
170
|
- 当前导出 bundle / weeklySummary 的 `schemaVersion` 为 `10`。顶层 `pricing` 记录本地价格目录版本、USD 币种和 `event-time-standard-api` 基准;`weeklySummary.apiEquivalentCost` 与 `dailySummaries[].apiEquivalentCost` 分别包含 `claude`、`codex`、`total` 的金额及定价覆盖度。v10 延续 v9 的 Codex token 口径:`inputTokens = max(0, input_tokens - cached_input_tokens)`,缓存输入由 `cacheReadInputTokens` 单列
|
|
171
171
|
- 等效 API 成本按每次请求的模型、发生时间和 token 分类套用内置标准同步 API 价格。Claude 区分输入、输出、缓存读取及 5 分钟/1 小时缓存写入;Codex 区分净输入、缓存输入和输出。它不是 Claude/Codex 订阅账单,也不含税费、折扣、批处理、工具附加费或区域溢价
|
|
172
172
|
- 未知模型不会丢弃:有部分请求可定价时金额是已知小计,页面显示“至少为”;全部请求均无法定价时金额为不可用。个人 dashboard 在顶部第五张卡显示 Claude 与 Codex 的合计成本,不显示来源分项。全部模型价格集中维护在 `src/lib/api-pricing-catalog.json`,价格目录随 ccus 发布,统计过程不联网;个人与多人 dashboard 的合计成本卡下链接独立 `pricing.html` 并在新页面打开,价格页只保留一套标题,Codex 排在 Claude 前并按模型版本从新到旧排列。当前 Claude 目录包含 Opus 4.7、Opus 4.8、Opus 5、Sonnet 5 和 Fable 5;Sonnet 5 按事件时间区分活动价与标准价
|
|
173
|
+
- GPT-6 使用 `gpt-6-astra` 定价,兼容 `gpt-6` 别名及推理强度后缀。自 2026-09-03 起,每百万 token 输入 / 缓存读取 / 输出为 $10 / $1 / $50;输入与缓存读取合计超过 272K 时为 $20 / $2 / $75。来源:[OpenAI 模型定价](https://developers.openai.com/api/docs/models/gpt-6-astra)。价格目录版本为 `2026-09-07`,导出 schemaVersion 仍为 10
|
|
173
174
|
- 默认文件名会带 git email 的帐号名前缀和起止日期,例如:`alice_export_2026-05-26_to_2026-06-01.json.gz`
|
|
174
175
|
- `userMessageCount` 来自 `~/.claude/projects/**/*.jsonl` 的非 meta `type:user` 事件
|
|
175
176
|
- `apiRequestCount` 与 token 指标来自 `~/.claude/projects/**/*.jsonl` 中带 `message.usage` 的 `type:assistant` 事件
|
|
@@ -115,6 +115,9 @@ function normalizeCodexModel(model) {
|
|
|
115
115
|
if (value === "gpt-5.6") {
|
|
116
116
|
return "gpt-5.6-sol";
|
|
117
117
|
}
|
|
118
|
+
if (value === "gpt-6") {
|
|
119
|
+
return "gpt-6-astra";
|
|
120
|
+
}
|
|
118
121
|
return /^gpt-[a-z0-9.-]+$/.test(value) ? value : null;
|
|
119
122
|
}
|
|
120
123
|
function normalizeApiModel(provider, model) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"catalogVersion": "2026-
|
|
2
|
+
"catalogVersion": "2026-09-07",
|
|
3
3
|
"currency": "USD",
|
|
4
4
|
"basis": "event-time-standard-api",
|
|
5
5
|
"entries": [
|
|
@@ -265,6 +265,17 @@
|
|
|
265
265
|
"thresholdInputTokens": 272000,
|
|
266
266
|
"prices": { "inputUsdPerMillion": 2, "outputUsdPerMillion": 9, "cacheReadInputUsdPerMillion": 0.2 }
|
|
267
267
|
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"provider": "codex",
|
|
271
|
+
"model": "gpt-6-astra",
|
|
272
|
+
"effectiveFrom": "2026-09-03T00:00:00.000Z",
|
|
273
|
+
"effectiveTo": null,
|
|
274
|
+
"prices": { "inputUsdPerMillion": 10, "outputUsdPerMillion": 50, "cacheReadInputUsdPerMillion": 1 },
|
|
275
|
+
"longContext": {
|
|
276
|
+
"thresholdInputTokens": 272000,
|
|
277
|
+
"prices": { "inputUsdPerMillion": 20, "outputUsdPerMillion": 75, "cacheReadInputUsdPerMillion": 2 }
|
|
278
|
+
}
|
|
268
279
|
}
|
|
269
280
|
]
|
|
270
281
|
}
|