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

@zhaeng/dsh-subprocess-ssh

v0.1.0

Published

SSH subprocess provider for DeepSeek Harness

Readme

@zhaeng/dsh-subprocess-ssh

English | 中文

@deepseek-ai/dsh-subprocess 能力在远程 SSH 主机上的 Service Provider:SshSubprocessRuntime(默认导出,ctx.subprocess)把每个 spawn spec 作为共享 ctx.ssh 连接上的一条 ssh2 exec 通道执行。@zhaeng/dsh-fs-routing 为每个 host key 构造一个实例;spec 的 cwd 选定主机。

Behavior

  • 远程命令形态 —— 一个 spawn 变为 cd '<cwd>' && [env k=v …] '<argv0>' '<argv1>' …,POSIX 单引号转义;任何部分都不经本地 shell 解释。
  • 有界收集 —— collect 模式的 stdout/stderr 在 spec 的 maxBytes 内保留内存尾部,退出后仍可按偏移读取。
  • spawn 失败响亮 —— getClient 被拒(未知 profile、连接失败)或 exec 出错时,handle 的 done 携带底层消息 reject,符合 seam 的 spawn 级失败契约。
  • 可执行文件解析 —— resolveExecutable 用 command -v 探测远程登录 shell,含路径分隔符的名字直接 reject。
  • 销毁汇合存活工作 —— fiber 销毁等待存活 handle 并终止存活终端,之后连接池才关闭客户端。

Model Experience

Indirectly, through dsh-fs-routing and dsh-tool-bash, which render remote command results exactly as local ones.

KV Cache effect

No direct invalidation; the named consumers own any request-prefix changes.

Known Limitations and Deferred Work

  • 无 stdin —— 远程 spawn 一律关闭 stdin;需要输入的调用方必须把输入嵌入命令。
  • 无 PTY —— spawnTerminal 直接抛错(subprocess-ssh: spawnTerminal is not yet implemented);SSH 上的终端会话仍属延后。
  • 无远程 pid —— handle 报告 pid: -1;不采集远程进程号,终止通过关闭 exec 通道而非按 pid 发信号。
  • pollMs 保留 —— 该 config 字段经过校验但未使用;尚不存在轮询面。