← 返回列表
D

@jiyr0119/dsh-service-console

v0.1.1 · 0 天前发布

DeepSeek Harness 本地开发服务控制台(原生插件):发现监听端口,识别服务归属,安全查看/停止/重启。Local development service console for DSH.

deepseek-harnesscordisdsh-pluginlocal-dev-serverport-manager

README

DSH Service Console

A local development service console for DSH: discover listening ports, identify services related to the current conversation or workspace, and safely inspect, stop, or restart them.

>
DSH 本地开发服务控制台:发现监听端口,识别与当前对话或工作区相关的服务,并安全地查看、停止和重启。

面向 DeepSeek Harness Web UI 的单职责插件。当模型(或你)启动本地开发服务(npm run dev、Vite、Next.js、Uvicorn、Express、Rust 等)时,Service Console 在一个地方把它们展示出来:监听了哪些端口、由什么命令和目录启动、是否属于当前对话或工作区、能否安全停止或重启。

功能

  • 服务发现 — 扫描监听 TCP 端口,关联 PID、PPID、命令、工作目录、进程组与启动时间(macOS/Linux)。

  • 归属与风险 — 五级归属:本次对话(与会话启动台账匹配)、工作区、本机其他、未知、受保护。

  • 受控操作 — 对进程组优雅停止;对保存了安全启动命令的服务重启。每个动作均二次确认,并在操作前重新校验快照。

  • 安全防护 — 任何信号前校验 PID 复用 / fingerprint;未知与受保护服务只读;强制终止默认关闭;无隐式自动清理;命令输出脱敏。

  • 范围 / 搜索 / 配置 / 国际化 — 本次对话 / 工作区 / 本机三种范围、关键字过滤、刷新间隔 / 优雅超时 / 强制终止设置、中英文。
  • #

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    @jiyr0119/dsh-service-console
    Repo
    git+https://github.com/Jiyr0119/dsh-service-console.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-conversation"],"platform":"web"},"plugin":{"id":"dsh-service-console","kind":"dynamic-cordis-plugin","host":"dynamic/host.js","client":"dynamic/client.js","hostHandler":"scan","clientSlots":["conversation.session.header.utilities","shell.overlay","settings.section"]}}