DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Console Hub — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
C

dsh-console-hub

Console Hub

DSH 插件:网络设备 console 映射端口(Telnet / Raw TCP)会话管理 —— 配置增删改查(敏感信息存 credentials)、连接/关闭/发送/读取、分页自动处理,模型侧 console_* 工具,高危指令 approval 拦截。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:RBkreb/dsh-console-hub#572d0e669292838235e754a6509efe1c5fc04c9e
README兼容性版本

兼容性与来源证明

Console Hub 以 dsh-console-hub 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/13

版本

0.1.0stable
2026/9/13

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/20
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Plugindsh-pluginDeepSeek Harness 社区插件市场,遵循官方插件规范——无需离开应用即可浏览、搜索并安装 9000+ 个由人工精选的社区插件。· DeepSeek Harness 社区插件市场(遵循官方开发规范):9000+ 人工精选社区插件,每日更新。Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话

README

dsh-console-hub

面向网络设备 console 映射端口(串口服务器 / 终端服务器)的 DSH 插件:经 Telnet 或 Raw TCP 连接设备控制台,提供会话管理、命令交互。

  • 插件类型:工具类
  • 包版本:0.1.0

前提条件

  • Node.js:^22.19.0 || >=24.0.0
  • Harness:@deepseek-ai/dsh^0.1.5-rc.1、@deepseek-ai/cordis ^4.0.2
  • 前置插件:dsh-better-sidebar ≥ 0.19

安装

dsh plugin --profile web add github:RBkreb/dsh-console-hub

安装后重启 dsh

服务 API / 扩展点

注册的模型工具

工具作用关键参数返回要点
console_list已连接控制台(全宿主共享池)—consoles[]:handle、label、地址、state、openedBy、dormant
console_list_views已配置设备清单—views[]:viewId、地址、凭据是否已配置
console_upsert_view新建 / 更新设备配置viewId?、name、host、port、kind、encoding、user、promptPattern、pagerPattern、pagingMode、tags、notes、passwordviewId、created、secretConfigured
console_remove_view删除配置及其凭据viewIdremoved、secretRemoved
console_connect连接设备viewId 或 host+port、kind、encoding、label、passwordhandle、state、banner、prompt、reused
console_send发送consoleId、text、submit、submitKey、encodingstate、written、pagingActive、dormant
console_wake回车唤醒控制台consoleIdanswered、dormant
console_read游标增量读consoleId、after、encoding、stripEcho、maxBytestext、cursor、truncated、prompt、dormant
console_wait_for等提示符 / 模式 / 静默consoleId、for(prompt/pattern/idle)、pattern、timeoutMs、after、idleMsmatched、reason、matchedText、cursor、dormantBlocked
console_close关闭并释放端口consoleId、forceclosed
console_describe控制台详情与发送审计consoleId字节数、prompt、分页状态、audit[]
console_clear丢弃本进程已读回显consoleIdcursor、droppedBytes

事件

本插件的监听与注册全部挂在 fiber 的 effect 上(端口管理器、策略 watcher、模型闸门、HTTP 路由),fiber 释放后回收。

  • inject: ['settings']——唯一硬依赖;
  • 按需注入:tools、systemPrompt、webServer;
  • 调用时读取:credentials、approval、connection、sessions;

配置项

插件行配置

字段类型默认说明
requestBodyLimitBytesnumber1048576插件 API 单次请求体上限
sessionIdleSweepMsnumber15000空闲控制台回收的扫描间隔
trustedHostsstring[][]非回环部署被访问的 host:port(或仅 host);未声明拒绝所有请求

设置文档

连接与读取:

字段类型默认说明
defaultKind'telnet' | 'raw'telnettelnet 剥离协商字节
defaultEncodingencoding 枚举utf-8utf-8 / gbk / gb18030 / big5 / shift_jis / euc-kr / latin1
connectTimeoutMsnumber8000socket 连接预算
readTimeoutMsnumber15000单次 read 等待新字节的时长
idleTimeoutMsnumber600000空闲控制台回收时长(不记保活)
maxConsolesnumber16并发控制台上限
outputLimitBytesnumber65536单次 read/wait 携带的字节上限
scrollbackLimitBytesnumber262144会话为游标保留的原字节数
idleQuietMsnumber1500for: "idle" 的静默窗口
views对象{}设备清单,字段同 console_upsert_view

分页、提示与休眠:

字段类型默认说明
pagingModepagingMode 枚举auto-more缺省分页反应:auto-more 发空格 / auto-quit 发 q / auto-interrupt 发 Ctrl+C / manual 无处理
pagingMaxPagesnumber50自动分页上限
pagingQuietMsnumber120分页命中后等待静默窗口
promptPatternstring(正则)同时接受 <...> / [...]缺省提示符模式,大小写不敏感
pagerPatternstring(正则)--More-- / more: / 按任意键等缺省分页正则
dormantPatternstring(正则)Vty connection is timed out. … Please press ENTER.设备半关闭标记
dormantAutoWakebooleantrue检测到半关闭标记时自动唤醒
dormantProbeMsnumber120000无输入保活间隔
wakeOnConnectbooleantrue连接自动输入回车

拦截与模型:

字段类型默认说明
approvalMode'always' | 'high-risk'high-riskalways 每条提问;high-risk 未命中规则放行
fenceRules规则数组回滚 + 重启两条 ask有序规则表,第一条命中即定;每条 { id, action, tokens, pattern, note },tokens 与 pattern 二选一
highRiskPatternsstring[][]遗留字段,仅保留旧式已声明的拦截
agentConsoleToolsbooleantrue是否注册 console_* 工具与 systemPrompt 段落
agentInstructionsstring''进模型提示段落的约定

拦截规则格式

动作:deny直接拒绝| ask人工确认| allow放行。

配置示例

# cordis.yml
- id: dsh-console-hub
  name: dsh-console-hub
  config:
    trustedHosts: [console.example.com:43120]
# 设置文档 
dsh-console-hub:
  fenceRules:
    - id: config-rollback
      action: ask
      tokens: configuration rollback
      note: 用保存的配置覆盖运行配置
    - id: no-erase
      action: deny
      pattern: erase\s+startup-config
      note: 抹掉已保存的配置
    - id: show-config
      action: allow
      tokens: show configuration
  approvalMode: high-risk

凭据

  • 存储:credentials seam 的 GrantRecord,key 为 dsh-console-hub/<recordId>
  • 覆盖:环境变量 DSH_CONSOLE_<RECORDID>(user:pass 或裸密码)优先于存储记录

已知限制

  • 仅 Telnet / Raw TCP;不支持 SSH 或串口直连
  • 提示符 / 分页 / 休眠靠正则识别,部分 CLI 需要调整
  • 控制台池全宿主共享、无会话隔离
  • 高危拦截只是防护栏不是沙箱,建议同时在设备侧限制权限

安全说明

  • 权限范围:对已配置设备发起出站 TCP;不执行 shell;无 PTY
  • 网络:插件 API 与内置 /api 共享 Host/Origin