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: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:
with:
node-version: ${{ matrix.node }}

# 含产物与源码同源(等价于 build.mjs --check);夹具与真 GUI 验收要宿主与浏览器,留在本机跑。
- name: Repository checks
run: node scripts/check-repo.mjs

- name: Build is reproducible
run: node scripts/build.mjs --check
run: node scripts/check.mjs
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
node_modules
scripts/.preview-build/
*.bak-pre-codex-ui-*
.DS_Store
Thumbs.db
scripts/host.local.json
346 changes: 346 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

289 changes: 289 additions & 0 deletions CHANGELOG.zh-CN.md

Large diffs are not rendered by default.

214 changes: 131 additions & 83 deletions README.md

Large diffs are not rendered by default.

201 changes: 119 additions & 82 deletions README.zh-CN.md

Large diffs are not rendered by default.

Binary file removed assets/screenshots/codex-ink-live-gui-dark.png
Binary file not shown.
Binary file removed assets/screenshots/composer-controls-idle.png
Binary file not shown.
Binary file removed assets/screenshots/composer-shadow-verify.png
Binary file not shown.
Binary file removed assets/screenshots/elevation-verify.png
Binary file not shown.
Binary file removed assets/screenshots/hero-verify.png
Binary file not shown.
Binary file removed assets/screenshots/live-gui-before.png
Binary file not shown.
Binary file removed assets/screenshots/model-picker-after.png
Binary file not shown.
Binary file removed assets/screenshots/model-picker-before.png
Binary file not shown.
Binary file removed assets/screenshots/power-rail-verify-dark.png
Binary file not shown.
Binary file removed assets/screenshots/power-rail-verify.png
Binary file not shown.
Binary file removed assets/screenshots/rightbar-after.png
Binary file not shown.
Binary file removed assets/screenshots/rightbar-before.png
Binary file not shown.
Binary file removed assets/screenshots/rightbar-web.png
Binary file not shown.
Binary file removed assets/screenshots/settings-page-default.png
Binary file not shown.
Binary file removed assets/screenshots/settings-page-translucent.png
Binary file not shown.
Binary file removed assets/screenshots/sidebar-align-verify.png
Binary file not shown.
Binary file added assets/screenshots/sidebar-color-verify-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshots/sidebar-color-verify-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/screenshots/sidebar-surface-verify.png
Binary file not shown.
Binary file removed assets/screenshots/strip-corner-4up.png
Binary file not shown.
2,178 changes: 1,170 additions & 1,008 deletions client.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/next-components.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ README 已承认:只做「文本往 ink 混合 + alpha 按比例缩放」,
| 批次 | 内容 | 验收 |
|---|---|---|
| P0 | §1.4 定点实测(决定动不动那批令牌)+ §1.2 圆角家族对齐(4 条声明,消除陷阱)+ §1.1b 10 条 box-shadow 环的颜色 | `npm run check` + 真 GUI 取样;§1.4 的取样命令见下 |
| P1 | §2 的 P0/P1 组件(tool / approval / skill / reference / commands / settings-* …) | 每项一条真 GUI 断言(沿用 `live-gui-probe.mjs` 的写法) |
| P1 | §2 的 P0/P1 组件(tool / approval / skill / reference / commands / settings-* …) | 每项一条真 GUI 断言(沿用 `scripts/live/gui.mjs` 的写法) |
| P2 | 字号行 + §4.1 漂移检查 + §4.2 覆盖矩阵 | 设置卡断言从 22 条扩到 24 条;漂移检查进 `npm run check` |
| 不做 | §3 的「不做」列 + §5 | — |

Expand All @@ -124,12 +124,12 @@ P1 才是真正「补组件」的工作量所在。

## 7. 本轮真 GUI 实测记录(可复跑)

临时 profile + 真 GUI(步骤与 `settings-page-verify.mjs` 相同):
临时 profile + 真 GUI(0.6.1 起用标准安装,见 README「安装」):

```
node scripts/build.mjs && node scripts/make-verify-profile.mjs
$env:DSH_HOME = "$env:TEMP\codex-ui-verify-home"
node scripts/install-plugin.mjs --profile verify --write
node scripts/build.mjs
dsh verify --from-default-profile web --dump-config
dsh plugin --profile verify add link:<仓库绝对路径>
dsh --profile verify --port 3098 --no-open # 终端会打印带 token 的 URL
node <codex-ref>/focus-ring-probe.mjs --url "<URL>" --chrome "<Chromium>" --dialog
node <codex-ref>/focus-mimic-probe.mjs --url "<URL>" --chrome "<Chromium>"
Expand Down Expand Up @@ -161,7 +161,7 @@ node <codex-ref>/focus-mimic-probe.mjs --url "<URL>" --chrome "<Chromium>"
| 侧栏行几何 | **不动**(会改现有观感,见 §3 的边界纪律)。宿主实测:新会话/面板行 36px、工作区行 34px、会话行 32px,圆角 12px;Codex 参考图约 42px 行高。要做必须先拍板。 |
| 侧栏面 = 滚动渐隐 | **已做**(⑱ `skins/codex-ink/sidebar-surface.css`)。 |

**这一项的诚实结论(可复跑:`node scripts/sidebar-surface-verify.mjs`)**:宿主那 24px 覆盖层
**这一项的诚实结论(可复跑:`node scripts/verify.mjs sidebar`)**:宿主那 24px 覆盖层
与 Codex 的 40px mask 斜坡前 24px **逐点差 ≤0.122**,底边亮度差 8.0/255 —— 按外观判据它**不值得做**。
做它的理由是机制:覆盖层靠不透明底色成立,而本皮肤有 `translucentSidebar` 开关
(`--dsw-specific-sidebar-fill` 变 `rgba(…,0.72)`);夹具四列并排实测,半透明底下
Expand Down
3 changes: 3 additions & 0 deletions docs/plan-model-picker.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
> **状态:已执行(0.6.0,2026-09-28)。** 组件 `src/model-picker.js`,样式 `skins/codex-ink/model-picker.css`,
> 设置卡开关 `modelPicker`(默认开)。验收:`scripts/power-rail-verify.mjs` 夹具 47/47、`check-repo` 3 条纯函数与样式纪律断言、
> 真 GUI(`dsh web` 0.1.7-rc.2)`live-gui-probe.mjs` B 面 7 条 + `settings-page-verify.mjs` 开关 5 条。
> 0.6.1 起:组件拆到 `src/client/model-picker/`(`index.js` / `component.js` / `view.js`),开关在 `src/client/settings-card.js`;
> 夹具并入 `scripts/verify.mjs model-picker`,真 GUI 并入 `scripts/live/gui.mjs` 与 `scripts/live/settings.mjs`;
> 席位隐藏改为给席位打 `data-codex-ui-seated` 标记(下文的直接子代 `:has()` 是 0.6.0 的做法)。下文保留 0.6.0 的原始计划。
>
> 注:606faea 曾以同名 0.6.0 提交过一次,但那次只提交了生成物 `client.js`,组件与样式的源文件、构建改动、
> 体检与真 GUI 探针都没进仓库(`build.mjs --check` 在它上面必然过期),随即 revert。本次是完整重做。
Expand Down
26 changes: 0 additions & 26 deletions docs/plan-settings-page.zh-CN.md

This file was deleted.

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codex-ui",
"version": "0.6.0",
"version": "0.7.0",
"private": true,
"description": "DSH Web 的 Codex 化界面插件 · A Codex-style interface plugin for DSH Web",
"license": "MIT",
Expand All @@ -16,11 +16,13 @@
"engines": {
"node": ">=22"
},
"peerDependencies": {
"@deepseek-ai/schemastery": "~3.18.4"
},
"scripts": {
"build": "node scripts/build.mjs",
"check": "node scripts/check-repo.mjs",
"install:web": "node scripts/install-plugin.mjs --write",
"install:desktop": "node scripts/install-plugin.mjs --profile desktop --write"
"check": "node scripts/check.mjs",
"verify": "node scripts/verify.mjs"
},
"main": "index.js",
"exports": {
Expand Down
Loading
Loading