npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dsh-wisp-ops

v0.13.0

Published

Server management, an independent encrypted credential vault, and per-server recurring operations for DeepSeek Harness.

Readme

中文 · English

WispOps(dsh-wisp-ops)

DeepSeek Harness 的多主机服务器运维插件:服务器管理、独立加密密码库、按服务器的例行任务,以及巡检、磁盘诊断、安全排查和批量命令。变更、sudo、破坏性操作逐主机授权;密码只交给 SSH,不返回给页面或模型。不需要 WispTerm。

安装

需要 DeepSeek Harness >=0.2.1-rc.3 <0.3.0。推荐使用 npm 版:直接下载已打包的发行版本,安装更方便,无需访问 GitHub。npm 和 GitHub 是同一插件的两种安装来源,选择一种即可,均无需本地编译。

方式一:npm 版(推荐)

在终端中安装 npm 最新稳定版:

dsh plugin --profile desktop add dsh-wisp-ops@latest

需要固定版本时,例如安装 0.13.0:

dsh plugin --profile desktop add [email protected]

desktop 是桌面版的默认 profile;Web 版通常改为 web。安装完成后重启 Harness,确认插件已启用。

方式二:GitHub 版

此方式需要能访问 GitHub,支持从插件页面或命令行安装。

插件页面安装:

  1. Harness 左侧 插件 → + 添加插件,粘贴 https://github.com/wisp-science/WispOps。
  2. 安装源:国内网络选 中国大陆镜像源,其他选 npm 官方源。此选项只影响依赖下载,插件本身仍从 GitHub 获取。
  3. 点击 安装,确认插件已启用。
  4. 完全退出并重新打开 Harness。

命令行安装:

dsh plugin --profile desktop add github:wisp-science/WispOps

安装完成后重启 Harness。

升级与切换来源

  • npm 版:重新执行上面的 @latest 命令升级,或指定要安装的版本。
  • GitHub 版:在运维面板的 版本更新 中检查并安装稳定 Release,也可开启自动更新。面板内更新目前仅支持 GitHub 来源。
  • Windows 从 GitHub 切换到 npm:先完全退出 Harness(含托盘),再从外部 PowerShell 执行 npm 版安装命令,完成后重开。遇到 EPERM rename 时见恢复步骤。

两种来源使用相同的包名和安装目录。服务器、密码库和任务默认保存在 ~/.dsh-wisp-ops/,卸载重装不会删除这个目录。本地开发链接不会被面板更新覆盖。

本地源码安装和常见报错见 docs/install.md。

上手

打开左侧 服务器运维(或会话右侧栏 开始 → 服务器运维):

  1. 服务器:添加地址、用户名和端口,或从 ~/.ssh/config 批量导入;保存后自动探测能力。不需要的 WispTerm / 配置服务器可从 WispOps 移除,并从“已移除”列表恢复,原始配置保留。
  2. 密码库:新建凭据,只填名称和密码。再到服务器详情为 SSH 登录、sudo 提权分别关联凭据,可先测试再保存。密钥登录、免密 sudo 可跳过。
  3. 任务库:选择内置模板或自建,点击 关联服务器,设置检查对象和运行时间。
  4. 例行任务:选择接收报告的会话,点击 运行一次 立即执行看效果,或点击 启用调度 定时运行。Harness 需保持运行;漏跑的任务会在卡片上标出。
  5. 操作审计:查看模型、面板和任务执行过的每条远程命令及其授权和结果。

也可以手写 ~/.dsh-wisp-ops/inventory.yml,参考 examples/inventory.yml。

能做什么

| 工具 | 用途 | |---|---| | ops_inspect | 巡检负载、内存、磁盘、systemd、GPU、Slurm、OOM 等,按阈值告警并与上次对比 | | ops_disk | 磁盘诊断:大目录和大文件、是否被进程或作业占用、已删除仍占用的空间、各类缓存 | | ops_files | 近期新增文件:按目录和属主统计,识别测序/生信文件并生成清理计划 | | ops_security | 攻击排查:SSH 暴力破解、可疑进程与外连、异常账户、近期改动的启动项 | | ops_change | 文件、新建文件和目录的备份、变更、验证和失败恢复;按组逐台滚动,首台失败即停 | | ops_exec | 批量命令:并发执行,执行前做风险分级 | | ops_hosts / ops_history | 能力探测;操作审计、巡检历史与磁盘/内存趋势(审计按月、巡检按条数自动保留) | | ops_task | 运行例行任务:内置采集器、只读命令或检查脚本,附上一次结果供对比;mode=last 直接读取 WispOps 定时器已保存的结果 | | ops_template_draft | 提交检查模板草稿,由你在面板审核后保存;不能直接写任务库、关联服务器或启用调度 | | ops_script_draft | 提交检查脚本草稿,由你在面板测试、审核后保存;脚本任务可由 WispOps 定时器运行,只在异常时才唤醒 agent |

另带 6 个技能:磁盘写满、生信存储清理、安全排查、定时汇报、安全变更、GPU/Slurm。详见 docs/features.md。

支持企业微信、钉钉、飞书和邮件网关 webhook 通知,可只在异常、仅状态变化时投递并设置静默时段;面板随 Harness 切换中英文。设备同步 可通过坚果云 WebDAV 传输加密凭据、任务配置和明确选定的 SSH 私钥。详见通知、变更、同步与更新。

权限

每条命令分为 read / change / sudo / destructive,按 主机策略 > 分组 > 默认 裁决为 allow、ask 或 deny。默认只读直接执行,其余逐次审批;也可以在服务器详情的“操作权限”里按服务器改成 allow / ask / deny,或用 /ops-allow sudo @gpu 2h 临时放行,/ops-revoke all 撤销。模型不能读写清单、数据目录和密码库,包括通过只读命令读取密钥文件。

密码库使用 XChaCha20-Poly1305 加密,密钥存放在 macOS 钥匙串、Windows DPAPI 或权限为 0600 的文件中。详见 docs/security.md。

文档

开发

npm install
npm test
npm run typecheck
npm run build

lib/ 已纳入 Git,GitHub 安装直接使用。修改 src/ 或 client/ 后执行 npm run build,并把 lib/ 一起提交。测试中的 tests/fixtures/fake-ssh.sh 在本机模拟远程命令。

限制

  • 目标主机按 GNU/Linux 处理,不支持 Windows 目标。
  • 外部通知发送采集摘要;没有 commands 的 custom 任务仍需模型继续采集,不会伪装成已完成报告。
  • 调度依赖 Harness 常驻和已打开的报告会话;错过的时间点不自动补跑,面板只标出疑似漏跑(cron 不判断)。
  • 安全变更恢复范围限于列出的路径;设备同步是人工触发的快照替换,更新安装后需重启。

License

MIT