dsh-oc-tui
github.com/rayafriandion/dsh-oc-tui
v0.1.5
界面与主题
可执行外部程序写入文件发起网络请求
A terminal UI (TUI) for DeepSeek Harness — an opencode-inspired chat client that boots as a dsh profile app plugin. | DeepSeek Harness 的终端界面(TUI),受 opencode 启发,以 dsh profile 应用插件形式启动。
该插件尚未翻译,显示作者原文。
deepseekdeepseek-harnessdshdsh-plugintuiterminalcliopencode
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注4需留意5一般14未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注5 处命中bin/apply-update.cjs:19const cp = require('node:child_process')bin/dsh-oc-tui.js:12import { spawn } from 'node:child_process'lib/rewind.js:1import { spawn } from 'node:child_process'lib/term.js:4import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意20 处命中bin/apply-update.cjs:65fs.mkdirSync(path.dirname(plan.marker), { recursive: true })bin/apply-update.cjs:66fs.writeFileSync(plan.marker, JSON.stringify({bin/apply-update.cjs:80try { fs.unlinkSync(path.join(path.dirname(plan.tarball), 'staged.json')) } catch { /* nothing staged */ }lib/rewind.js:208await mkdir(dirname(target), { recursive: true })- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意3 处命中lib/index.js:1628const res = await fetch(url)lib/updates.js:498response = await fetch(url, { signal: AbortSignal.timeout(METADATA_TIMEOUT_MS) })lib/updates.js:524const response = await fetch(url, { signal })- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 启动伪终端
spawns-pty需留意2 处命中bin/dsh-oc-tui.js:162return spawn('cmd.exe', ['/d', '/s', '/c', command, ...args], { stdio: 'inherit', env })- 伪终端等于给了一个完整 shell。确认这是插件的核心功能。
- 可终止进程
kills-processes需留意1 处命中bin/apply-update.cjs:29try { process.kill(pid, 0); return true } catch { return false }- 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
- 接触凭据或密钥
credentials一般82 处命中lib/index.js:40// purpose: it cannot be mistaken for an answer object, a secret string, alib/index.js:180const descriptor = settings.describe({ redactSecrets: true }).find((entry) => String(entry.ns) === 'agent-default-model'…lib/index.js:1045const descriptor = settings?.describe?.({ redactSecrets: true })?.find((entry) => String(entry.ns) === 'permission')lib/index.js:1263// Wait on the standalone secret prompt. `secret-input` is the one- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般35 处命中bin/apply-update.cjs:34const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'))bin/apply-update.cjs:47const manifest = JSON.parse(fs.readFileSync(manifestPath, 'utf8'))bin/apply-update.cjs:158plan = JSON.parse(fs.readFileSync(planFile, 'utf8'))bin/dsh-oc-tui.js:21const manifest = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'))- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般13 处命中bin/dsh-oc-tui.js:51let profile = process.env.DSH_TUI_PROFILE || 'tui'bin/dsh-oc-tui.js:79return process.env.DSH_HOME || join(homedir(), '.dsh')bin/dsh-oc-tui.js:106if (process.env.DSH_TUI_SKIP_CHECK === '1') return truebin/dsh-oc-tui.js:123const path = process.env.PATH || ''- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 文中出现远程脚本地址
remote-url-reference一般4 处命中README.md:122curl -fsSL https://raw.githubusercontent.com/rayafriandion/dsh-oc-tui/main/install.sh | bashREADME.md:127powershell -ExecutionPolicy Bypass -Command "iwr https://raw.githubusercontent.com/rayafriandion/dsh-oc-tui/main/install…docs/用户手册.md:101curl -fsSL https://raw.githubusercontent.com/rayafriandion/dsh-oc-tui/main/install.sh | bashdocs/用户手册.md:106powershell -ExecutionPolicy Bypass -Command "iwr https://raw.githubusercontent.com/rayafriandion/dsh-oc-tui/main/install…- 只是文本里出现了远程脚本地址,没有看到加载它的调用。多半是文档或注释;若确实可疑,搜一下这个地址在包里的其他出现位置。
- 动态加载模块
dynamic-import一般3 处命中lib/facet.js:69const { liveTui } = await import('./bridge.js')lib/facet.js:100({ createPresentationImplementations } = await import('./std/presentation.js'))lib/facet.js:118({ createCommandRuntimeImplementation } = await import('./std/commands.js'))- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 5 |
| 写入文件 | writes-files | 需留意 | 20 |
| 发起网络请求 | network | 需留意 | 3 |
| 启动伪终端 | spawns-pty | 需留意 | 2 |
| 可终止进程 | kills-processes | 需留意 | 1 |
| 接触凭据或密钥 | credentials | 一般 | 82 |
| 读取文件 | reads-files | 一般 | 35 |
| 读取环境变量 | reads-env | 一般 | 13 |
| 文中出现远程脚本地址 | remote-url-reference | 一般 | 4 |
| 动态加载模块 | dynamic-import | 一般 | 3 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 24 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)