D

dsh-tui

github.com/dsh-tui/dsh-tui

v0.1.2 界面与主题 以 shell 执行命令可执行外部程序写入文件

DeepSeek Harness 智能体的交互式终端(TUI)入口——在终端里获得 Claude Code / Codex 同款的对话体验,以树外(out-of-tree)dsh 插件 bundle 的形式安装。基于 `@earendil-works/pi-tui` 构建。

作者原文(英文)

Claude Code-style interactive terminal UI for DeepSeek Harness agents

中文简介由 DeepSeek 模型翻译,仅供参考。

分类
ui
发布
2026-08-14
版本
v0.1.2

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注2需留意3一般17未命中
高关注需留意一般

能力清单

  • 以 shell 执行命令shell-exec高关注3 处命中
    • lib/index.js:2484return execSync("tmux display-message -p '#{client_termfeatures}'", {
    • lib/index.js:10257const branch = execFileSync("git", ["branch", "--show-current"], {
    • src/chat/helpers.ts:71const branch = execFileSync('git', ['branch', '--show-current'], {
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 可执行外部程序spawns-processes高关注2 处命中
    • lib/index.js:14import { execFileSync, execSync } from "node:child_process";
    • src/chat/helpers.ts:9import { execFileSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 写入文件writes-files需留意6 处命中
    • lib/index.js:3378fs.appendFileSync(logPath, msg);
    • lib/index.js:3521fs.mkdirSync(path.dirname(crashLogPath), { recursive: true });
    • lib/index.js:3522fs.writeFileSync(crashLogPath, crashData);
    • lib/index.js:3550fs.mkdirSync(debugDir, { recursive: true });
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 可终止进程kills-processes需留意1 处命中
    • lib/index.js:6607if (process.platform !== "win32") process.kill(process.pid, "SIGWINCH");
    • 看它终止的是自己启动的进程,还是按名字匹配到的任意进程。
  • 读取环境变量reads-env一般29 处命中
    • lib/index.js:1824return Boolean(process.env.WT_SESSION) && !process.env.SSH_CONNECTION && !process.env.SSH_CLIENT && !process.env.SSH_TTY…
    • lib/index.js:2498const termProgram = process.env.TERM_PROGRAM?.toLowerCase() || "";
    • lib/index.js:2499const terminalEmulator = process.env.TERMINAL_EMULATOR?.toLowerCase() || "";
    • lib/index.js:2500const term = process.env.TERM?.toLowerCase() || "";
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般6 处命中
    • lib/index.js:438if (!statSync(baseDir).isDirectory()) return null;
    • lib/index.js:475const entries = readdirSync(searchDir, { withFileTypes: true });
    • lib/index.js:482isDirectory = statSync(fullPath).isDirectory();
    • lib/index.js:6584if (fs.statSync(env).isDirectory()) {
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 接触凭据或密钥credentials一般4 处命中
    • README.md:38Set `DEEPSEEK_API_KEY` in your environment (or a `.env` in the launch directory or `$DSH_HOME`).
    • README.md:441. **Environment**: `DEEPSEEK_BASE_URL=http://localhost:8000/v1` alongside `DEEPSEEK_API_KEY`.
    • README.zh.md:38在环境变量(或启动目录 / `$DSH_HOME` 下的 `.env`)里设置 `DEEPSEEK_API_KEY`。
    • README.zh.md:441. **环境变量**:`DEEPSEEK_BASE_URL=http://localhost:8000/v1` 搭配 `DEEPSEEK_API_KEY`。
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
逐条扫描明细
能力标识关注度命中次数
以 shell 执行命令shell-exec高关注3
可执行外部程序spawns-processes高关注2
写入文件writes-files需留意6
可终止进程kills-processes需留意1
读取环境变量reads-env一般29
读取文件reads-files一般6
接触凭据或密钥credentials一般4

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 58 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件