会话与记忆 · v0.10.0-rc.21
cco-tui
一个美观且实用的 Claude Code 风格 TUI 插件:ChatCode CLI 风格首屏、深灰终端界面、实时工作状态行、思考流式展开、双击 Esc 时间回溯、上下文进度条 + TPS 仪表。
作者原文(英文)
Interactive terminal frontend for ChatCode CLI, built on the ported Ink core.
简介取自插件自己的 README 原文。
安装命令
dsh plugin --profile web add @chatcode/cco-tui@0.10.0-rc.21
声明可安装
这个包的 tarball 里确实有 dsh.bundle.patch,补丁文件存在且可解析。但「有补丁」是静态检查的结果,不是装过——它能不能在这台机器上装成,还没有验证。
检测报告
能力清单
- 以 shell 执行命令
shell-exec高关注11 处命中bin/dsh-tui.js:98const shellOpt = isWin ? { shell: true } : {}bin/dsh-tui.js:99// DEP0190(issue #148):shell:true + 非空参数数组触发语法级弃用告警——lib/types/update.js:440execFileSync('tar', ['--version'], { stdio: 'ignore' });lib/types/update.js:691execFileSync(plan.tool, plan.args);- 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
- 可执行外部程序
spawns-processes高关注9 处命中…types/dsh-adapter/childStderr.js:28import childProcess from 'node:child_process';lib/types/utils/clipboard.js:36import { execFile, spawn } from 'node:child_process';bin/dsh-tui.js:31import { spawn, spawnSync } from 'node:child_process'lib/types/utils/execFileNoThrow.js:1import { spawn } from 'node:child_process';- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意109 处命中lib/types/activityPrefs.js:70mkdirSync(dir, { recursive: true });lib/types/activityPrefs.js:71writeFileSync(join(dir, 'working-activity.json'), JSON.stringify({ frames: name }, null, 2));lib/types/dsh-adapter/channel.js:4159const renamed = await workspaceService.rename(state.cwd, title);lib/types/dsh-adapter/channel.js:5790writeFileSync(target, parts.join('\n'), 'utf8');- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意7 处命中…ypes/dsh-adapter/chatcode-api.js:22const request = (accessToken) => fetch(destination, {lib/types/releaseNotes.js:62const response = await fetch(url, { signal: controller.signal });lib/types/update.js:189const response = await fetch(`${registryBase}/${PACKAGE_NAME}/latest`, {lib/types/update.js:295const response = await fetch(url, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 可终止进程
kills-processes需留意3 处命中lib/types/ink/components/App.js:543process.kill(process.pid, "SIGSTOP");bin/dsh-tui.js:359process.kill(process.pid, signal)…es/dsh-adapter/inject-channel.js:112* Whether a process id is still alive. `process.kill(pid, 0)` sends no signal…es/dsh-adapter/inject-channel.js:120process.kill(pid, 0);- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 启动伪终端
spawns-pty需留意3 处命中lib/types/utils/clipboard.js:474const child = execFile('powershell', ['-NoProfile', '-NonInteractive', '-Command', buildPsScript(imagePath)], { encoding…lib/types/utils/execFileNoThrow.js:23return spawn(process.env.ComSpec ?? 'cmd.exe', ['/d', '/s', '/c', command], {lib/types/utils/externalEditor.js:170child = spawn(cmd.file, cmd.args, {- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 清单可疑
manifest-obfuscation需留意1 处命中- 安装脚本:prepare
- 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
- 读取环境变量
reads-env一般134 处命中lib/types/ink/components/App.js:231!isEnvTruthy(process.env.CLAUDE_CODE_ACCESSIBILITY)) {lib/types/ink/components/App.js:532if (!isEnvTruthy(process.env.CLAUDE_CODE_ACCESSIBILITY)) {lib/types/ink/components/App.js:1037if (url && process.env.TERM_PROGRAM !== "vscode" && !isXtermJs()) {lib/types/ink/bidi.js:24typeof process.env['WT_SESSION'] === 'string' || // WSL in Windows Terminal- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 读取文件
reads-files一般112 处命中lib/types/activityPrefs.js:40return parseActivityFrames(readFileSync(join(dir, 'working-activity.json'), 'utf8'));lib/types/activityPrefs.js:56return parseWorkingActivityConfig(readFileSync(join(dir, 'working-activity.json'), 'utf8')).config;…dsh-adapter/sessions/artifact.js:10names = readdirSync(directory);…dsh-adapter/sessions/artifact.js:48workspaces = readdirSync(root);- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 接触凭据或密钥
credentials一般40 处命中…ypes/dsh-adapter/chatcode-api.js:8if (destination.origin !== CHATCODE_API_BASE_URL || destination.username || destination.password) {…ypes/dsh-adapter/chatcode-api.js:19let token = await auth.accessToken(signal);…ypes/dsh-adapter/chatcode-api.js:36token = await auth.accessToken(signal);…h-adapter/customModelSettings.js:141if (input.apiKey === undefined || !/^[\x21-\x7e]+$/u.test(input.apiKey))- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 动态加载模块
dynamic-import一般18 处命中…s/dsh-adapter/catalogDefaults.js:22return await import(new URL(target.replace('*', 'all'), pathToFileURL(manifestPath)).href);lib/types/cc/cliHighlight.js:3// that only typecheck because this file's `typeof import('highlight.js')` pullslib/types/cc/cliHighlight.js:10// the module cache, so the second import() is a cache hit — no extra byteslib/types/cc/cliHighlight.js:18const cliHighlight = await import('cli-highlight');- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 以 shell 执行命令 | shell-exec | 高关注 | 11 |
| 可执行外部程序 | spawns-processes | 高关注 | 9 |
| 写入文件 | writes-files | 需留意 | 109 |
| 发起网络请求 | network | 需留意 | 7 |
| 可终止进程 | kills-processes | 需留意 | 3 |
| 启动伪终端 | spawns-pty | 需留意 | 3 |
| 清单可疑 | manifest-obfuscation | 需留意 | 1 |
| 读取环境变量 | reads-env | 一般 | 134 |
| 读取文件 | reads-files | 一般 | 112 |
| 接触凭据或密钥 | credentials | 一般 | 40 |
| 动态加载模块 | dynamic-import | 一般 | 18 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 871 个文件,扫描于 2026-10-20。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
可信度
- 0没有可扣分的项
认证等级 未评级
- L0静态结构与契约—有 npm 哈希,但本站没有本地包可比对
- L1配置组合与依赖图—还没有组合检查记录
- L2隔离沙箱冒烟—尚未试装
- L3运行时健康监控—未抽样(本层是抽样检测:没有会话不等于干净)
评分口径与作者信息
从 100 分开始按规则扣减:fail −20 / major −10 / warn −5 / minor −2;star 数、下载量、LLM 输出都不参与评分
- 维护者
- shiguifeng、lull30、wangf505
- 仓库
- https://github.com/ccch1mneyyy/dsh-TUI
- 许可
- MIT
- 最后发布
- 2026-10-20
- 周下载
- 465
- star
- 4567
扫描状态:已扫描。能力是事实,不是缺陷; 周下载与 star 只作参考,不参与评分。
认证等级只回答四件事:包本身是否完整可解析(L0)、能不能与别的插件组合(L1)、隔离环境里装不装得上并起得来(L2)、抽样运行时有没有异常(L3)。依赖漏洞、仓库存活、下载量都不参与评级,只作为独立信号标注。可信 ≠ 无漏洞,上架 ≠ 推荐。
| DSH peer 依赖 | 28 个cordisdsh-agentdsh-agent-instructionsdsh-atomic-writedsh-commandsdsh-cordis-host-runnerdsh-invariantsdsh-llmdsh-llm-pi-aidsh-personadsh-sessiondsh-session-projection等 28 个均为 @deepseek-ai/ 下的包 |
|---|---|
| Node 要求 | ^22.19 || >=24 |
| 第三方依赖 | 32 个 |
| bundle patch | ./cordis.patch.yml |
| 依赖安全公告 | 9 条,见下方 |
这个插件声明的依赖中,有 9 条已公开的安全公告 (最高等级:严重):
| 等级 | 依赖包 | 编号 | 摘要 |
|---|---|---|---|
| 严重 | lodash-es | CVE-2021-23337 | Command Injection in lodash 修复版本:4.17.21 详情 |
| 严重 | lodash-es | CVE-2019-10744 | Prototype Pollution in lodash 修复版本:4.17.12, 4.17.13, 4.17.14 详情 |
| 严重 | lodash-es | CVE-2020-8203 | Prototype Pollution in lodash 修复版本:4.17.19, 4.17.20 详情 |
| 严重 | lodash-es | CVE-2026-4800 | lodash vulnerable to Code Injection via `_.template` imports key names 修复版本:4.18.0 详情 |
| 中 | lodash-es | CVE-2026-2950 | lodash vulnerable to Prototype Pollution via array path bypass in `_.unset` and `_.omit` 修复版本:4.18.0 详情 |
| 中 | lodash-es | CVE-2019-1010266 | Regular Expression Denial of Service (ReDoS) in lodash 修复版本:4.17.11 详情 |
| 中 | lodash-es | CVE-2025-13465 | Lodash has Prototype Pollution Vulnerability in `_.unset` and `_.omit` functions 修复版本:4.17.23 详情 |
| 中 | semver | CVE-2022-25883 | semver vulnerable to Regular Expression Denial of Service 修复版本:5.7.2, 6.3.1, 7.5.2 详情 |
| 低 | lodash-es | CVE-2020-28500 | Regular Expression Denial of Service (ReDoS) in lodash 修复版本:4.17.21 详情 |
查询的是依赖声明范围的下界(如 ^4.2.0 查 4.2.0),
不是实际安装到的版本。真正装的时候如果解析到了修复版本,就不受影响——
所以这是「可能受影响」,不是「这个插件有漏洞」。数据来自
OSV.dev。
元数据
| 主页 | https://github.com/ccch1mneyyy/dsh-TUI#readme |
|---|---|
| 仓库最近提交 | 2026-10-14 |
| 仓库创建 | 2026-08-13 |
DSH