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

@shelken/dsh-co-authored-by

v0.1.1

Published

dsh (DeepSeek Harness) 插件:agent 提交代码时自动注入 Co-authored-by 信息

Downloads

318

Readme

dsh-co-authored-by

dsh (DeepSeek Harness) 插件:agent 提交时自动注入 Co-authored-by 信息

[!NOTE] 本仓库代码完全使用 DeepSeek V4 进行规划和编码

功能

  • agent 直接执行 git commit 时懒安装 prepare-commit-msg hook,自动追加 Co-Authored-By: <model> <[email protected]>Generated-By: dsh <版本> trailer(不改命令,幂等)
  • hook 安装后覆盖该仓库后续所有 commit(含脚本内间接 commit)
  • 与仓库已有 hook 兼容:安装前备份、链式执行;会话结束自动卸载并恢复
  • 模型身份取当前会话实际使用的模型显示名,解析失败回退模型 id / unknown
  • read-only 沙箱下 commit 被拒时,可经用户批准一次性升级到 workspace-write

快速上手

  1. 本地开发用 patch 覆盖层:dsh web --patch ./cordis.patch.yml(需 dsh CLI)
  2. 安装到 profile:dsh plugin --profile demo add <包名或 tarball>
  3. agent 正常提交即可,无需额外命令

详细说明见用户指南

配置

零配置即用。全部字段有默认值,可按需在 profile 的 cordis.patch.yml 覆盖:

- insert:
    - id: co-authored-by
      config:
        enable: true
        emailDomain: [email protected]
        modelNameFormat: display
        sandboxUpgradeRequest: true

| 字段 | 默认值 | 作用 | | --- | --- | --- | | enable | true | 插件总开关 | | emailDomain | [email protected] | Co-Authored-By trailer 的邮箱域名 | | modelNameFormat | display | 模型名取显示名(display)还是 id(id) | | sandboxUpgradeRequest | true | read-only 沙箱下是否请求升级;false 时不请求,由 dsh 内置 sandbox_permissions 机制兜底 |

测试

  • 单元:trailer 注入逻辑、模型身份回退链、配置校验、hook 安装/链式/卸载
  • e2e:真实 dsh 栈(agent loop + bash 工具)驱动 git commit,断言注入与会话结束卸载

贡献

提 issue 或 PR,见 GitHub 仓库。规划与决策票见 wayfinder 地图 issue(wayfinder:map 标签)。版本发布流程见 docs/versioning.md

许可证

MIT