Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ node src/cli.mjs language validate `

| Channel | Current example | Updated when |
| --- | --- | --- |
| CCU | `v0.1.9` | Installer, manager, content, or documentation changes |
| CCU | `v0.1.10` | Installer, manager, content, or documentation changes |
| CCU-I18N fork | `0.144.6-ccu.i18n.2` | Codex source or the i18n interface changes |
| OpenAI Codex | `0.144.6` | A new official stable version is released |

Expand All @@ -207,12 +207,12 @@ Automation checks upstream stable Releases every six hours. A CCU-only update do
| Item | Status |
| --- | --- |
| Supported platform | Windows x64 |
| CCU | `v0.1.9` |
| CCU | `v0.1.10` |
| CCU-I18N | `0.144.6-ccu.i18n.2` |
| Reference locale | Simplified Chinese (`zh-CN`) |
| FTL coverage | 1,396 actively used message keys |
| Fallback | Built-in English per message |
| Customization | Fresh installs enable the Hermes color status line by default; upgrades preserve existing choices |
| Customization | Fresh installs enable the Macchiato-colored Hermes status line by default; upgrades preserve existing choices |

## Contributing

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ node src/cli.mjs language validate `

| 通道 | 当前版本示例 | 更新条件 |
| --- | --- | --- |
| CCU | `v0.1.9` | 安装器、管理器、内容包或文档发生变化 |
| CCU | `v0.1.10` | 安装器、管理器、内容包或文档发生变化 |
| CCU-I18N fork | `0.144.6-ccu.i18n.2` | Codex 源码或 i18n 接口发生变化 |
| OpenAI Codex | `0.144.6` | 官方发布新的稳定版本 |

Expand All @@ -209,12 +209,12 @@ node src/cli.mjs language validate `
| 项目 | 状态 |
| --- | --- |
| 支持平台 | Windows x64 |
| CCU | `v0.1.9` |
| CCU | `v0.1.10` |
| CCU-I18N | `0.144.6-ccu.i18n.2` |
| 参考语言包 | 简体中文 `zh-CN` |
| FTL 覆盖 | 1,396 个实际使用的消息键 |
| 回退机制 | 按消息回退到内置英文 |
| 个性化 | 全新安装默认启用 Hermes 彩色状态栏;已有选择在升级时保留 |
| 个性化 | 全新安装默认启用 Macchiato 配色的 Hermes 状态栏;已有选择在升级时保留 |

Mac 和 Linux也许以后会做,主要是我手上没有Mac

Expand Down
2 changes: 1 addition & 1 deletion docs/PLAN2_PROGRESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
- `/model`、Tips、命令列表和二级界面的调用点已进入 fork 分支;仅修改既有 FTL 文案时仍无需重新编译 Codex。
- 自包含安装已实现:CCU ZIP 内置 fork manifest/资产、安装/卸载脚本、FTL、模板、主题和管理器。
- 状态栏 `ContextTokens` 已从 session 累计令牌改为 `last_token_usage.tokens_in_context_window()`;`11.6M/353K` 回归为 `42.7K/353K`,百分比仍为 9%。
- `ccu.hermes` 四段式彩色状态栏在全新安装时默认启用;交互安装可输入 `n` 关闭,升级和重装保留已有选择。启用后自动备份并写入 `[tui].status_line`,禁用或卸载时安全恢复,用户后续修改不会被覆盖。
- `ccu.hermes` 四段式彩色状态栏在全新安装时默认启用;前景强调色采用 Macchiato 风格的玫红、薰衣草、青绿、橙色与金色,不改终端背景或界面结构。交互安装可输入 `n` 关闭,升级和重装保留已有选择。启用后自动备份并写入 `[tui].status_line`,禁用或卸载时安全恢复,用户后续修改不会被覆盖。

## 已完成验证

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codex-cli-ultra",
"version": "0.1.9",
"version": "0.1.10",
"private": true,
"type": "module",
"packageManager": "npm@11.12.1",
Expand Down
50 changes: 27 additions & 23 deletions packages/themes/ccu-hermes/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "theme",
"id": "ccu.hermes",
"displayName": "Hermes 风格",
"version": "0.1.0",
"version": "0.2.0",
"statusLine": {
"separator": " │ ",
"progressWidth": 10,
Expand Down Expand Up @@ -32,33 +32,37 @@
"🌈"
],
"palette": [
"#F5E0DC",
"#F2CDCD",
"#F5C2E7",
"#FAB387",
"#F9E2AF",
"#A6E3A1",
"#94E2D5",
"#89DCEB",
"#74C7EC",
"#CBA6F7"
"#F4DBD6",
"#F0C6C6",
"#F5BDE6",
"#C6A0F6",
"#ED8796",
"#EE99A0",
"#F5A97F",
"#EED49F",
"#A6DA95",
"#8BD5CA",
"#91D7E3",
"#7DC4E4",
"#8AADF4",
"#B7BDF8"
],
"modelReasoningStyle": "bracketed",
"colors": {
"model": "#94E2D5",
"usage": "#89DCEB",
"progress": "#A6E3A1",
"time": "#F9E2AF",
"quota": "#F5C2E7",
"separator": "#CBA6F7"
"model": "#ED8796",
"usage": "#C6A0F6",
"progress": "#8BD5CA",
"time": "#F5A97F",
"quota": "#EED49F",
"separator": "#B7BDF8"
}
},
"welcome": {
"title": "#94E2D5",
"version": "#F5E0DC",
"label": "#CBA6F7",
"model": "#F2CDCD",
"path": "#A6E3A1",
"permissions": "#FAB387"
"title": "#F5BDE6",
"version": "#CAD3F5",
"label": "#ED8796",
"model": "#B7BDF8",
"path": "#8BD5CA",
"permissions": "#ED8796"
}
}
2 changes: 1 addition & 1 deletion scripts/package-release.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[CmdletBinding()]
param(
[string]$Version = '0.1.9',
[string]$Version = '0.1.10',
[string]$MinimumManagerVersion = '0.1.5',
[string]$OutputDirectory = $(Join-Path (Split-Path -Parent $PSScriptRoot) 'artifacts'),
[string]$ForkReleaseDir = $env:CCU_FORK_RELEASE_DIR
Expand Down
2 changes: 1 addition & 1 deletion src/version.mjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const CCU_VERSION = "0.1.9";
export const CCU_VERSION = "0.1.10";
2 changes: 1 addition & 1 deletion test/content-sync.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test("content sync migrates the legacy zh-Hans preference and preserves the them
assert.equal(theme.statusLine.separator, " │ ");
assert.equal(theme.statusLine.modelReasoningStyle, "bracketed");
assert.equal(theme.statusLine.modelEmojis.length, 20);
assert.equal(theme.statusLine.palette.length, 10);
assert.equal(theme.statusLine.palette.length, 14);
const quotaExample = JSON.parse(
await readFile(join(installRoot, "quota.example.json"), "utf8")
);
Expand Down
35 changes: 35 additions & 0 deletions test/theme.test.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import test from "node:test";

import { validateThemePack } from "../src/theme/validate.mjs";
Expand Down Expand Up @@ -61,3 +62,37 @@ test("theme validator rejects unknown model reasoning formats", () => {
/modelReasoningStyle must be spaced or bracketed/
);
});

test("bundled Hermes theme uses the Macchiato-inspired color roles", async () => {
const source = JSON.parse(
await readFile(
new URL("../packages/themes/ccu-hermes/theme.json", import.meta.url),
"utf8"
)
);
const validated = validateThemePack(source);

assert.equal(validated.version, "0.2.0");
assert.deepEqual(validated.statusLine.colors, {
model: "#ed8796",
usage: "#c6a0f6",
progress: "#8bd5ca",
time: "#f5a97f",
quota: "#eed49f",
separator: "#b7bdf8"
});
assert.deepEqual(validated.welcome, {
title: "#f5bde6",
version: "#cad3f5",
label: "#ed8796",
model: "#b7bdf8",
path: "#8bd5ca",
permissions: "#ed8796"
});
assert.deepEqual(validated.statusLine.palette.slice(0, 4), [
"#f4dbd6",
"#f0c6c6",
"#f5bde6",
"#c6a0f6"
]);
});
Loading