@chatcode/cco-better-sidebar 0.18.0-rc.12 → 0.18.0-rc.13.022-rc1
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 +8 -2
- package/README_EN.md +8 -2
- package/lib/client-editor.js +267 -268
- package/lib/client-mermaid.js +266 -267
- package/lib/client-registry.js +1803 -1772
- package/lib/client-terminal.js +264 -265
- package/lib/client.js +1631 -1600
- package/lib/index.js +10 -6
- package/lib/types/client/AccountMenu.d.ts +4 -1
- package/lib/types/client/ContextMenu.d.ts +15 -0
- package/lib/types/client/service.d.ts +1 -1
- package/lib/types/client/ui-tweaks/index.d.ts +2 -0
- package/lib/types/client/ui-tweaks/notifier.d.ts +4 -2
- package/lib/types/client/useChatcodeAccount.d.ts +1 -0
- package/lib/types/ui-tweaks/turn-outcome.d.ts +1 -1
- package/package.json +59 -59
- package/src/client/AccountMenu.tsx +13 -17
- package/src/client/ContextMenu.tsx +22 -0
- package/src/client/FileTree.tsx +6 -13
- package/src/client/FreeWindow.tsx +4 -3
- package/src/client/GitView.tsx +8 -5
- package/src/client/Sidebar.tsx +0 -3
- package/src/client/TabBar.tsx +5 -4
- package/src/client/index.tsx +18 -40
- package/src/client/service.ts +1 -1
- package/src/client/shell-presets.ts +1 -1
- package/src/client/sidebar.module.css +23 -13
- package/src/client/ui-tweaks/index.tsx +45 -22
- package/src/client/ui-tweaks/notifier.ts +13 -12
- package/src/client/ui-tweaks/whale.tsx +1 -1
- package/src/client/useChatcodeAccount.ts +12 -2
- package/src/index.ts +6 -2
- package/src/ui-tweaks/git.ts +1 -1
- package/src/ui-tweaks/turn-outcome.ts +3 -3
- package/src/ui-tweaks/web.ts +1 -0
package/README.md
CHANGED
|
@@ -37,6 +37,8 @@
|
|
|
37
37
|
|
|
38
38
|
`0.18.0-rc.12` 修复正文含「发送」时,思考/工具摘要与回答选项被误涂成深红色的问题。摘要恢复宿主配色,回答选项仅在悬停、选中时使用 5%–10% 的浅红提示;文字、键盘焦点与选择交互不变。「新会话」保留现有红色主按钮样式。
|
|
39
39
|
|
|
40
|
+
浏览器无法查询账号状态时,页面会保留当前界面。账号是否需要重新登录由服务端的鉴权结果决定。
|
|
41
|
+
|
|
40
42
|
## 📑 目录
|
|
41
43
|
|
|
42
44
|
- [✨ 功能一览](#-功能一览)
|
|
@@ -496,8 +498,10 @@ GitHub topic [`dsh-better-sidebar`](https://github.com/topics/dsh-better-sidebar
|
|
|
496
498
|
|
|
497
499
|
## 🛠️ 开发与构建
|
|
498
500
|
|
|
501
|
+
`invariants` 校验服务由宿主注入。 本分支为上游 UI 包补齐了独立开发所需的依赖解析;菜单坐标适配同时支持公开版与宿主版接口。开发依赖按各包各自发布的版本锁定,以本仓库 `pnpm-lock.yaml` 为准。
|
|
502
|
+
|
|
499
503
|
```sh
|
|
500
|
-
pnpm install
|
|
504
|
+
pnpm install --frozen-lockfile # 安装本仓库锁定的依赖版本
|
|
501
505
|
pnpm typecheck # tsc --noEmit
|
|
502
506
|
pnpm build # → lib/index.js + lib/invariant.js + lib/client.js + lib/client-registry.js + lib/types
|
|
503
507
|
pnpm test # vitest(含 manifest 一致性守卫,需先 build)
|
|
@@ -566,9 +570,11 @@ Windows / Linux / macOS 三平台适配(macOS 日常验证;其余经单元
|
|
|
566
570
|
|
|
567
571
|
未登录时,每次进入登录页面都会重新发起一次登录并尝试打开登录网页;浏览器拦截自动弹窗时,页面始终显示可点击、可复制的登录链接。若登录网页被关闭,点击「重新打开登录页」即可在原请求仍有效时复用链接;请求失效后可重新发起,按钮不会一直禁用,也无需删除凭据文件。已有账号仅在校验成功后进入工作台,网络故障不会清除凭据。
|
|
568
572
|
|
|
573
|
+
账号菜单在页面启动、每次打开菜单、网络恢复及浏览器重新获得焦点时刷新登录状态,并持续定时检查。当前账号重新校验成功后,上一次登录失败或超时的历史提示自动消失;重新启动页面也不会恢复该旧提示。当前认证仍无效时保留失败提示。
|
|
574
|
+
|
|
569
575
|
`0.18.0-rc.6` 起,点击「退出登录」会先弹出确认窗口,默认聚焦「取消」;取消或按 Esc 保留登录状态,确认后才执行原有退出操作。
|
|
570
576
|
|
|
571
|
-
|
|
577
|
+
左下角账号入口与弹出菜单使用紧凑布局:用户名和菜单文字为 13px,头像为 24px,底部入口高度为 44px;展开的侧栏中,账号栏横向铺满底部,以细分隔线与工作区列表分开;圆形字母头像使用中性文字颜色,入口只保留头像和用户名。设置、登录与退出操作保持不变。
|
|
572
578
|
|
|
573
579
|
设置 →「插件市场」已替换为内部市场,也可从侧栏「+」菜单进入。先展示内部市场及默认 ChatCode 官方市场,点击市场后以「技能市场」同款卡片展示插件;项目级、用户级安装或卸载按钮直接位于卡片内。顶部显示当前项目目录,可通过“选择项目目录”更换目标。点击项目级安装仅弹窗显示插件名和完整目标目录,确认后开始安装;取消后可重新切换目录,未选择目录时提示先选择;安装期间显示带旋转图标的进度提示,完成或失败后自动恢复操作;取消不会安装,没有会话时也可选择目录。页面显示完整安装路径;用户级安装无需选目录。市场列表在 Web 启动时加载一次,插件目录首次进入时加载并缓存;返回、切换标签或重开设置不会重复请求,有更新时点击「刷新」。本机安装记录与 CLI `/plugins` 共用并自动同步。需要启用新版 config 插件,配置及加载能力见 [插件市场说明](../cco-llm-chatcode-config/docs/plugin-market.zh.md)。
|
|
574
580
|
|
package/README_EN.md
CHANGED
|
@@ -37,6 +37,8 @@ Brand adaptation applies to product identity and version notices; composer draft
|
|
|
37
37
|
|
|
38
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
39
|
|
|
40
|
+
When an account status check cannot reach the server, the current page stays open. The server’s authentication result determines whether the user must sign in.
|
|
41
|
+
|
|
40
42
|
## 📑 Contents
|
|
41
43
|
|
|
42
44
|
- [✨ Features](#-features)
|
|
@@ -492,8 +494,10 @@ The dashed cards at the end of the "Sidebar content" / "File viewers" grids in t
|
|
|
492
494
|
|
|
493
495
|
## 🛠️ Development & Build
|
|
494
496
|
|
|
497
|
+
The host supplies the `invariants` service used by the invariant companion. Package extensions supply runtime imports for standalone development, and the context-menu adapter supports the published and bundled host APIs. Development dependencies follow each package's published releases, as recorded in this repository's `pnpm-lock.yaml`.
|
|
498
|
+
|
|
495
499
|
```sh
|
|
496
|
-
pnpm install
|
|
500
|
+
pnpm install --frozen-lockfile # install the dependency versions recorded in this repository
|
|
497
501
|
pnpm typecheck # tsc --noEmit
|
|
498
502
|
pnpm build # → lib/index.js + lib/invariant.js + lib/client.js + lib/client-registry.js + lib/types
|
|
499
503
|
pnpm test # vitest (includes manifest consistency guard; build first)
|
|
@@ -575,9 +579,11 @@ Thanks to everyone who contributed:
|
|
|
575
579
|
|
|
576
580
|
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.
|
|
577
581
|
|
|
582
|
+
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.
|
|
583
|
+
|
|
578
584
|
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.
|
|
579
585
|
|
|
580
|
-
|
|
586
|
+
The bottom-left account control and its popup use a compact layout: 13px names and menu text, 24px avatars, and a 44px-high trigger. In the expanded sidebar, the account bar spans the bottom edge with a fine divider above it; the circular initial avatar uses neutral text, and the trigger shows only the avatar and username. Settings, sign-in and sign-out behavior is unchanged.
|
|
581
587
|
|
|
582
588
|
**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.
|
|
583
589
|
|