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-plugin-adapter-qq

v1.1.0

Published

QQ Official Bot Adapter for DeepSeek Harness

Readme

QQ 官方机器人适配器 (adapter-qq)

为 DeepSeek Harness 提供 QQ 官方机器人的接入能力。

功能特性

  • 消息收发:支持频道 @机器人、群聊 @机器人 和单聊消息。
  • 会话管理:按频道、群或单聊用户创建或恢复独立的 Agent 会话。
  • 沙箱支持:开启后使用 QQ 官方沙箱 OpenAPI 接入点。
  • 自动重连:维持 WebSocket 心跳,并在连接断开后重连。
  • 模型自定义:支持在配置中指定默认使用的 AI 提供方和模型。

接入指南

1. 安装依赖

在项目根目录执行:

pnpm install

2. 配置插件

在你的 cordis.ymlcordis.patch.yml 中添加以下配置:

- id: adapter-qq
  name: 'file://D:/dev/dsh/plugins/adapter-qq/src/index.ts'
  config:
    id: '你的 AppID'
    secret: '你的 AppSecret'
    sandbox: true # 调试阶段建议开启
    # 默认同时订阅频道 @ 消息、群聊 @ 消息和单聊消息。
    # 如需自定义,保留 PUBLIC_GUILD_MESSAGES (1 << 30) 与 USER_MESSAGE (1 << 25)。
    # intents: 1107296256
    provider: 'deepseek' # 可选,默认为 deepseek
    model: 'deepseek-chat' # 可选,默认为 deepseek-chat
    cwd: 'D:/dev/your-project' # 新建 QQ 会话运行的绝对目录

3. 启动项目

确保使用正确的配置文件启动。如果你在根目录编辑了 cordis.yml,请使用以下命令启动:

pnpm dsh web --patch cordis.yml

或者将配置直接添加到你正在使用的 profile 中(例如 ~/.dsh/profiles/web/cordis.patch.yml)。

注意事项

  • 权限要求:机器人需要在 QQ 开放平台开通相应消息权限。默认订阅“公域消息”与“用户消息”;群聊和单聊使用用户消息事件。未获批的事件不会推送到网关。
  • 自定义订阅intents 会完整替换默认掩码。若只配置其他事件而遗漏 PUBLIC_GUILD_MESSAGESUSER_MESSAGE,对应的频道、群聊和单聊消息不会到达适配器。
  • 回复规则:适配器会按收到事件的来源调用频道、群聊或单聊发送接口,并携带原始消息 ID 作为被动回复关联。
  • 工作目录cwd 必须是绝对目录,并写入新建会话的持久化元数据。已恢复的 QQ 会话保留原有目录;要为旧会话切换目录,请新建会话。
  • 调试日志:设置 debug: true 后会记录网关事件和会话恢复失败,便于确认 QQ 是否已推送消息。