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-im

v1.0.5

Published

统一 IM 桥核心:让 DeepSeek Harness 通过 IM 可指挥、可通知、可审批(会话映射 / 命令 / 通知总线 / 审批流 / MockChannel)。

Readme

dsh-im(核心)

统一 IM 桥核心插件:ctx.im 服务、会话映射、命令、渲染、通知总线、审批管理、MockChannel。

  • 依赖:inject: ['agents'](需要 dsh-agent/dsh-agent-loop)、可选 approvaldsh-user-approval,缺省 ask→deny)
  • 配置:见 docs/example-cordis.patch.ymldocs/install.md
  • 测试:npm run test:im(44 个:单测 + 真实 agent-loop 全链路 e2e,无网络/无 key)

扩展点(§8.3)

// 第三方渠道:实现 send() 契约后注册即可
ctx.im.registerChannel({
  platform: 'my-im',
  send: async (out) => { /* 发消息 */ },
  sendFile: async (chatId, name, text, mime) => { /* 发文件 */ },
});
// 入站:构造 ImMessage 后交给核心
ctx.im.dispatchInbound({ platform: 'my-im', chatId, userId, text, msgId, chatType });
// 按钮回调:data 载荷约定 approve:<id>:yes|no / trust:<platform>:<userId> / retry:<sessionId>
ctx.im.handleCallback({ platform, chatId, userId, userName, data });

事件(其他插件可复用):im/messageim/commandim/dispatchim/approval

审批接线(FR-6)

  • tools/pre-execute 风险门:仅拦截 IM 会话的工具调用(不双弹窗,§10),风险规则见 lib/risk.js
  • approval/request answerer:把官方审批缝路由到 IM 卡片;超时 → pending(可恢复拒绝 FR-6.4)
  • 文本降级:/approve <id> yes|no;首个响应者生效(FR-6.5);approvals.log 审计(FR-6.7)