@chatcode/cco-better-sidebar 0.18.0-rc.11 → 0.18.0-rc.13

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
@@ -35,6 +35,8 @@
35
35
 
36
36
  `0.18.0-rc.10` 按反馈恢复「新会话」最初的品牌红色底与白色图标、文字,保留紧凑布局、快捷键和交互状态。登录恢复逻辑与「插件」菜单临时隐藏保持不变。
37
37
 
38
+ `0.18.0-rc.12` 修复正文含「发送」时,思考/工具摘要与回答选项被误涂成深红色的问题。摘要恢复宿主配色,回答选项仅在悬停、选中时使用 5%–10% 的浅红提示;文字、键盘焦点与选择交互不变。「新会话」保留现有红色主按钮样式。
39
+
38
40
  ## 📑 目录
39
41
 
40
42
  - [✨ 功能一览](#-功能一览)
@@ -60,7 +62,7 @@
60
62
  - **📌 固定终端**:右键终端 Tab 可「固定到工作区 / 固定到全局」——固定后切换会话不消失,在 TabBar 内联呈现(跨会话虚拟 Tab,点击就地激活,PTY 按 home 会话 id+tab 直连宿主 PTY,无需切回宿主会话);Agent 终端被 reconcile 移除时豁免保留
61
63
  - **🔁 会话隔离**:布局 / Tab / 面板按会话持久化,陈旧状态自动净化
62
64
  - **⚙️ 声明式设置**:设置页「侧边卡片」逐项独立开关,二级设置经齿轮弹窗
63
- - **🎛️ 界面调整(已合并 dsh-ui-tweaks)**:消息/代码字号与行距、Claude 风格表格、GitBar、归档与 MCP 管理、`/init`、鲸鱼工作指示、任务通知和精确缓存命中率均由本插件直接提供;在 DSH 0.1.7 中与侧边卡片设置一起由 `better-sidebar` 配置表单实时管理。默认正文 14px、代码 13px,与主界面一致;消息与表格共用字号和行高,标题只增加少量字号;字体设置保留粗体、斜体及主题字体,并同步输入框的文字尺寸;归档管理中的单条删除和全部删除入口暂时隐藏,查看与恢复保持可用。
65
+ - **🎛️ 界面调整(已合并 dsh-ui-tweaks)**:消息/代码字号与行距、Claude 风格表格、GitBar、归档与 MCP 管理、`/init`、鲸鱼工作指示、任务通知和精确缓存命中率均由本插件直接提供;在 DSH 0.1.7 中与侧边卡片设置一起由 `better-sidebar` 配置表单实时管理。默认正文 14px、代码 13px,与主界面一致;消息与表格共用字号和行高,标题只增加少量字号;字体设置保留粗体、斜体及主题字体,并同步输入框的文字尺寸;归档管理支持逐项勾选、全选、取消选择和删除所选,保留恢复、单条删除与全部删除,均调用 Web/CLI 共用的宿主接口;永久删除先确认所选会话与含子代理的记录总数,默认取消,部分失败时只保留失败项重试,不直接删除日志文件。
64
66
  - **⚡ 按需加载**:启动只拉 ~325KB 核心,终端 / 编辑器 / Mermaid 图表等重依赖用到才按需拉取([设计文档](docs/plans/2026-08-12-lazy-chunks-design.md))
65
67
  - **🌏 多语言**:界面文案跟随 ChatCode CLI 语言(zh / en)实时切换;安装 `@huanlin/dsh-plugin-better-locale` 后支持日语(ja)等第三语言覆盖(见下方「🌏 第三语言覆盖」)
66
68
  - **🆕 版本更新日志**:升级后首次打开 Web 端时展示后台配置的当前版本 Markdown 更新内容;跨多个版本升级也只展示当前版本的一条日志
@@ -131,8 +133,8 @@ chatcode-cli plugin --profile web add @chatcode/cco-better-sidebar@latest
131
133
  调试本地改动或跟随开发分支时,把依赖指向本地克隆并自行构建:
132
134
 
133
135
  ```text
134
- 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/DSH-better-sidebar
135
- cd ~/Code/DSH-better-sidebar && pnpm install && pnpm build
136
+ 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/cco-better-sidebar
137
+ cd ~/Code/cco-better-sidebar && pnpm install && pnpm build
136
138
  2. ~/.chatcode-cli/profiles/web/package.json 的 dependencies 写 "@chatcode/cco-better-sidebar": "link:<克隆目录绝对路径>"
137
139
  3. ~/.chatcode-cli/profiles/web/cordis.patch.yml 追加挂载行(需要指定终端 shell 时,在行内加 `config.shell`;`config.shellArgs` 可带参启动,非空时替换默认的 `-l`。不填则自动解析 `$SHELL` / 登录 shell / powershell.exe):
138
140
  - insert:
@@ -165,7 +167,7 @@ config:
165
167
  前置:ChatCode CLI 已集成 [plugin-registry](https://github.com/dsh-external/plugin-registry)(`chatcode-cli registry` 可用)。**同时启用两个通道会双挂载**(Node 半挂两次、页面两个侧边栏)。
166
168
 
167
169
  ```sh
168
- git clone https://github.com/omdsh-dev/DSH-better-sidebar.git && cd DSH-better-sidebar
170
+ git clone https://github.com/omdsh-dev/DSH-better-sidebar.git cco-better-sidebar && cd cco-better-sidebar
169
171
  pnpm install && pnpm build
170
172
  node scripts/package-registry.mjs # 组装 registry/ 暂存(含清单 + 产物 + README,不入库)
171
173
  chatcode-cli registry install ./registry # 安装(默认禁用)
@@ -564,10 +566,12 @@ Windows / Linux / macOS 三平台适配(macOS 日常验证;其余经单元
564
566
 
565
567
  未登录时,每次进入登录页面都会重新发起一次登录并尝试打开登录网页;浏览器拦截自动弹窗时,页面始终显示可点击、可复制的登录链接。若登录网页被关闭,点击「重新打开登录页」即可在原请求仍有效时复用链接;请求失效后可重新发起,按钮不会一直禁用,也无需删除凭据文件。已有账号仅在校验成功后进入工作台,网络故障不会清除凭据。
566
568
 
569
+ 账号菜单在页面启动、每次打开菜单、网络恢复及浏览器重新获得焦点时刷新登录状态,并持续定时检查。当前账号重新校验成功后,上一次登录失败或超时的历史提示自动消失;重新启动页面也不会恢复该旧提示。当前认证仍无效时保留失败提示。
570
+
567
571
  `0.18.0-rc.6` 起,点击「退出登录」会先弹出确认窗口,默认聚焦「取消」;取消或按 Esc 保留登录状态,确认后才执行原有退出操作。
568
572
 
569
573
  `0.18.0-rc.5` 起,左下角账号入口与弹出菜单使用更紧凑的布局:用户名和菜单文字为 13px,头像为 24px,底部入口高度为 44px;设置、登录与退出操作保持不变。
570
574
 
571
- 设置 →「插件市场」已替换为内部市场,也可从侧栏「+」菜单进入。先展示内部市场及默认 ChatCode 官方市场,点击市场后以「技能市场」同款卡片展示插件;项目级、用户级安装或卸载按钮直接位于卡片内。顶部显示当前项目目录,可通过“选择项目目录”更换目标。点击项目级安装仅弹窗显示插件名和完整目标目录,确认后开始安装;取消后可重新切换目录,未选择目录时提示先选择;安装期间显示带旋转图标的进度提示,完成或失败后自动恢复操作;取消不会安装,没有会话时也可选择目录。页面显示完整安装路径;用户级安装无需选目录。市场列表在 Web 启动时加载一次,插件目录首次进入时加载并缓存;返回、切换标签或重开设置不会重复请求,有更新时点击「刷新」。本机安装记录与 CLI `/plugins` 共用并自动同步。需要启用新版 config 插件,配置及加载能力见 [插件市场说明](../dsh-llm-chatcode-config/docs/plugin-market.zh.md)。
575
+ 设置 →「插件市场」已替换为内部市场,也可从侧栏「+」菜单进入。先展示内部市场及默认 ChatCode 官方市场,点击市场后以「技能市场」同款卡片展示插件;项目级、用户级安装或卸载按钮直接位于卡片内。顶部显示当前项目目录,可通过“选择项目目录”更换目标。点击项目级安装仅弹窗显示插件名和完整目标目录,确认后开始安装;取消后可重新切换目录,未选择目录时提示先选择;安装期间显示带旋转图标的进度提示,完成或失败后自动恢复操作;取消不会安装,没有会话时也可选择目录。页面显示完整安装路径;用户级安装无需选目录。市场列表在 Web 启动时加载一次,插件目录首次进入时加载并缓存;返回、切换标签或重开设置不会重复请求,有更新时点击「刷新」。本机安装记录与 CLI `/plugins` 共用并自动同步。需要启用新版 config 插件,配置及加载能力见 [插件市场说明](../cco-llm-chatcode-config/docs/plugin-market.zh.md)。
572
576
 
573
- 从当前主库源码执行 `pnpm cco web` 时,启动包装器会自动叠加本侧栏和 `dsh-llm-chatcode-config`,无需向 `web` profile 安装。未登录时显示全屏门禁;登录后左下角账号菜单提供状态与退出。令牌由配置插件通过兼容凭据服务管理,Web 只展示账号和操作结果。浏览器未自动打开时可使用备用链接。两端共享条件及操作步骤见相邻配置插件仓库的 [使用手册](../dsh-llm-chatcode-config/docs/chatcode-login.zh.md)。
577
+ 从当前主库源码执行 `pnpm cco web` 时,启动包装器会自动叠加本侧栏和 `cco-llm-chatcode-config`,无需向 `web` profile 安装。未登录时显示全屏门禁;登录后左下角账号菜单提供状态与退出。令牌由配置插件通过兼容凭据服务管理,Web 只展示账号和操作结果。浏览器未自动打开时可使用备用链接。两端共享条件及操作步骤见相邻配置插件仓库的 [使用手册](../cco-llm-chatcode-config/docs/chatcode-login.zh.md)。
package/README_EN.md CHANGED
@@ -35,6 +35,8 @@ Brand adaptation applies to product identity and version notices; composer draft
35
35
 
36
36
  `0.18.0-rc.10` restores the original brand-red **New session** fill with white text and icon, keeping the compact layout, shortcut and interaction states. Login recovery and the temporary sidebar **Plugins** hide are unchanged.
37
37
 
38
+ `0.18.0-rc.12` fixes reasoning/tool summaries and answer choices incorrectly receiving a solid red background when their text mentions sending. Summaries retain host colors; answer choices use only a 5%–10% red tint on hover or selection. Text, keyboard focus, selection behavior and the existing red **New session** button are unchanged.
39
+
38
40
  ## 📑 Contents
39
41
 
40
42
  - [✨ Features](#-features)
@@ -60,7 +62,7 @@ Brand adaptation applies to product identity and version notices; composer draft
60
62
  - **📌 Pinned Terminals**: right-click a terminal tab to "Pin to Workspace / Pin Globally" — pinned terminals survive session switches and surface inline in the TabBar as virtual tabs (click activates in-place, PTY connects directly to the home session's PTY via WS, no session jump needed); agent terminals exempted from reconcile removal
61
63
  - **🔁 Session Isolation**: layout / tabs / panels persisted per session, stale state auto-purged
62
64
  - **⚙️ Declarative Settings**: per-item toggles in the "Side Cards" settings section, secondary settings via the gear dialog
63
- - **🎛️ UI Tweaks (dsh-ui-tweaks merged)**: message/code sizing and spacing, Claude-style tables, GitBar, archive and MCP managers, `/init`, whale activity indicator, task notifications, and precise cache-hit percentages now ship in this plugin; on DSH 0.1.7 they are live fields in the shared `better-sidebar` entry form. Defaults match the host: 14px prose and 13px code. Messages and tables share size and leading, headings add only a small size increment, and font settings retain emphasis, italics and live theme families while keeping the composer in step; per-session and bulk archive deletion controls are temporarily hidden, while browsing and restoration remain available.
65
+ - **🎛️ UI Tweaks (dsh-ui-tweaks merged)**: message/code sizing and spacing, Claude-style tables, GitBar, archive and MCP managers, `/init`, whale activity indicator, task notifications, and precise cache-hit percentages now ship in this plugin; on DSH 0.1.7 they are live fields in the shared `better-sidebar` entry form. Defaults match the host: 14px prose and 13px code. Messages and tables share size and leading, headings add only a small size increment, and font settings retain emphasis, italics and live theme families while keeping the composer in step; archive management supports individual selection, select all, clear selection and delete selected alongside restoration, single deletion and delete all, using the shared Web/CLI Host operations. Permanent deletion confirms the selected sessions and full subagent record count with Cancel focused; partial failures retain only failed items for retry, without deleting log files directly.
64
66
  - **⚡ On-demand Loading**: only ~325KB core at startup; heavy deps (terminal / editor / mermaid diagrams) load on demand ([design](docs/plans/2026-08-12-lazy-chunks-design.md))
65
67
  - **🌏 i18n**: UI text follows ChatCode CLI's language (zh / en) with live switching; with the optional `@huanlin/dsh-plugin-better-locale` peer, 19 third-language overlays (ja / de / fr / …) are available
66
68
  - **🆕 Release notes**: on the first Web launch after an upgrade, shows the backend-configured Markdown note for the current version only; skipped versions are never merged
@@ -131,8 +133,8 @@ or bump the version in `~/.chatcode-cli/profiles/web/package.json` (e.g. `"^0.16
131
133
  To debug local changes or track the dev branch, point the dependency at a local clone and build it yourself:
132
134
 
133
135
  ```text
134
- 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/DSH-better-sidebar
135
- cd ~/Code/DSH-better-sidebar && pnpm install && pnpm build
136
+ 1. git clone https://github.com/omdsh-dev/DSH-better-sidebar.git ~/Code/cco-better-sidebar
137
+ cd ~/Code/cco-better-sidebar && pnpm install && pnpm build
136
138
  2. In ~/.chatcode-cli/profiles/web/package.json dependencies write "@chatcode/cco-better-sidebar": "link:<absolute path of the clone>"
137
139
  3. Append this mount line to ~/.chatcode-cli/profiles/web/cordis.patch.yml (to pick the terminal shell, add `config.shell`; `config.shellArgs` starts it with explicit args — when non-empty they replace the default `-l`. When omitted the host resolves `$SHELL` / the login shell / powershell.exe):
138
140
  - insert:
@@ -165,7 +167,7 @@ config:
165
167
  Prerequisite: ChatCode CLI with [plugin-registry](https://github.com/dsh-external/plugin-registry) integrated (`chatcode-cli registry` available). **Enabling both channels double-mounts** (the Node half loads twice, the page gets two sidebars).
166
168
 
167
169
  ```sh
168
- git clone https://github.com/omdsh-dev/DSH-better-sidebar.git && cd DSH-better-sidebar
170
+ git clone https://github.com/omdsh-dev/DSH-better-sidebar.git cco-better-sidebar && cd cco-better-sidebar
169
171
  pnpm install && pnpm build
170
172
  node scripts/package-registry.mjs # assemble the registry/ staging (manifest + artifacts + README, not committed)
171
173
  chatcode-cli registry install ./registry # install (disabled by default)
@@ -573,10 +575,12 @@ Thanks to everyone who contributed:
573
575
 
574
576
  Each signed-out visit starts one fresh login and attempts to open its page automatically. A visible, copyable link remains available if the browser blocks the popup. **Reopen sign-in page** reuses the current request while it is valid; an expired request can be restarted without deleting credentials. The button never remains permanently disabled. Only a verified account enters the workbench, and network failures retain the stored grant.
575
577
 
578
+ The account menu refreshes sign-in status on page startup, every menu opening, network recovery and browser focus, alongside its regular polling. Once the current account validates successfully, a previous sign-in failure or timeout warning disappears automatically; restarting the page does not restore that historical warning. A currently invalid account retains its failure warning.
579
+
576
580
  From `0.18.0-rc.6`, **Log out** opens a confirmation dialog with **Cancel** focused by default. Cancel or Escape preserves the session; confirming runs the existing logout operation.
577
581
 
578
582
  From `0.18.0-rc.5`, the bottom-left account control and its popup use a more compact layout: 13px names and menu text, 24px avatars, and a 44px-high trigger. Settings, sign-in and sign-out behavior is unchanged.
579
583
 
580
- **Settings → Plugin marketplace** opens the internal catalog, also available from the sidebar's **+** menu. Browse internal marketplaces and the default official ChatCode marketplace first, then open one to see plugin cards styled like the Skill marketplace. Each card has project/user install and uninstall buttons. The current project directory is shown at the top; use **Choose project directory** to change it. Project installation opens a confirmation dialog with the plugin name and full target path, then installs only after confirmation. Cancel to choose another directory; if none is selected, the page prompts you to choose one first; a spinner and progress message remain visible until installation and local status sync finish, with controls restored on success or failure; cancelling installs nothing, and no conversation is required. Full installation paths are shown. User installation needs no directory selection. The marketplace list loads once at Web startup; plugin catalogs load on first access and remain cached across navigation, tab switches and reopening Settings. Click **Refresh** to fetch updates. Local installed records sync automatically with CLI `/plugins`. See the [marketplace guide](../dsh-llm-chatcode-config/docs/plugin-market.md) for configuration and supported assets.
584
+ **Settings → Plugin marketplace** opens the internal catalog, also available from the sidebar's **+** menu. Browse internal marketplaces and the default official ChatCode marketplace first, then open one to see plugin cards styled like the Skill marketplace. Each card has project/user install and uninstall buttons. The current project directory is shown at the top; use **Choose project directory** to change it. Project installation opens a confirmation dialog with the plugin name and full target path, then installs only after confirmation. Cancel to choose another directory; if none is selected, the page prompts you to choose one first; a spinner and progress message remain visible until installation and local status sync finish, with controls restored on success or failure; cancelling installs nothing, and no conversation is required. Full installation paths are shown. User installation needs no directory selection. The marketplace list loads once at Web startup; plugin catalogs load on first access and remain cached across navigation, tab switches and reopening Settings. Click **Refresh** to fetch updates. Local installed records sync automatically with CLI `/plugins`. See the [marketplace guide](../cco-llm-chatcode-config/docs/plugin-market.md) for configuration and supported assets.
581
585
 
582
- When `pnpm cco web` runs from the current ChatCode CLI checkout, its source wrapper applies this sidebar and `dsh-llm-chatcode-config` automatically, with no Web-profile installation. Signed-out users see a full-page gate; after sign-in, the bottom-left menu shows status and sign-out. The configuration plugin manages tokens through the compatible credential service, and Web displays only account metadata and outcomes. A fallback link is provided if the browser blocks the popup. See the sibling configuration repository’s [guide](../dsh-llm-chatcode-config/docs/chatcode-login.md).
586
+ When `pnpm cco web` runs from the current ChatCode CLI checkout, its source wrapper applies this sidebar and `cco-llm-chatcode-config` automatically, with no Web-profile installation. Signed-out users see a full-page gate; after sign-in, the bottom-left menu shows status and sign-out. The configuration plugin manages tokens through the compatible credential service, and Web displays only account metadata and outcomes. A fallback link is provided if the browser blocks the popup. See the sibling configuration repository’s [guide](../cco-llm-chatcode-config/docs/chatcode-login.md).