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

@veewo/dsh-claw-kit

v0.2.39-rc.2

Published

DSH (DeepSeek Harness) adapter for the claw-kit .claw workflow model: one claw_run tool that executes operations through the claw session daemon, auto-consumes CLI hostActions (progress projection + native goal sync), and returns compact guidance.

Readme

@veewo/dsh-claw-kit

DSH(DeepSeek Harness)的 claw-kit 适配器:一个 claw_run 工具,通过 claw session open --host dsh 常驻 daemon 执行 .claw 工作流操作,自动消费 CLI 生成的 hostActions(进度投影 + DSH 原生 Goal 同步),并只返回紧凑 guidance。

与 Codex 适配器共享同一份 hostActions 协议(schemaVersion: 1update_plan / create_goal / update_goal);区别在于 Codex 用模型求值的 code-mode driver 信封消费,这里在 claw_run 工具内部消费——不需要信封、不需要 模型 eval、工具面固定为一个工具。

Goal 动作遵循共享状态转换合同:create_goal 只在没有原生未完成 Goal 时创建; blocked 只允许由 active 发起,complete 允许由 active 或 blocked 发起。DSH 原生 Goals 没有 blocked 状态,因此将合法的 blocked 映射为原生完成;后续恢复会 创建新的原生 Goal。重复 action ID 与不匹配的状态均为 no-op。

架构

DSH 会话
  └─ claw_run 工具(本插件注册)
       └─ ClawSession(常驻子进程:claw session open <workdir> <sessionId> --host dsh)
            └─ claw/execute(JSON-RPC over stdio)
                 └─ CLI daemon → 返回 { output, hostActions, knowledgeDispatch }
                      ├─ consumeHostActions:create_goal/update_goal → DSH ctx.goals
                      └─ compactClawOutput:白名单字段(stage/nextsteps/notes/nextTask/
                         commandHints/askUser/planSummary/planStatus)→ 模型

生命周期钩子(fail-open):

  • agent/session-startclaw context --host dsh,恢复绑定计划并注入紧凑 workflow 快照(systemPrompt.contextclaw:workflow);
  • 无 turn-stopping 钩子:终态 plan mutation 写入 adapter 私有 final journal;统一的 claw-kit claim 流程随后调用 DSH collector 发布按时间排序的 report,knowledgeDispatch 经 DSH 原生 subagent 自动分发。

安装

# 已发布到 npm:直接安装(重启 DSH Host 后生效;验证组合:dsh --profile web --dump-config)
dsh plugin --profile web add @veewo/dsh-claw-kit

仓库内本地开发可用 tarball 流程(等价安装面):

npm run export:dsh-plugin     # 生成 dist/dsh-plugin/veewo-dsh-claw-kit-<v>.tgz
npm run install:dsh-plugin    # dsh plugin --profile web add <tarball>(可 --profile 指定)

前置条件:claw CLI 已安装且版本与仓库对齐(claw --version), CLI 需支持 --host dsh(见 claw-kit 仓库的 dsh host 支持)。

工具

claw_run

  • operation:点号形式(plan.createplan.starttask.doneplan.doneplan.showsearch 等);
  • args:操作字段(snake_case,与 daemon canonical contract 对齐);
    • plan.startgoalrequirementsquestionsacceptanceruleskey_decisionsreferences: [{ path, why }]add_tasks
    • plan.edit:上述 plan 字段,以及 summary、对应的 remove_* 字段、 retrospectivewhat_workedissuesfollow_upsstatus;需要保持 mutation 顺序时可直接传 canonical operations 数组;
    • plan.resume:可选 plan_idplan.done:完整 closeout 字段;
    • task.add:单个 title/detail 或批量 taskstask.done:单个 id/choice 或批量 tasks
  • 已映射 operation 遇到目录外参数会立即报 Unsupported ... argument(s),不再静默丢弃;
  • 会话身份与 workspace 由插件从 exec.agent 锻造,模型不得传 session/host/workdir;
  • 返回紧凑 guidance + goalSync(已自动消费的 goal hostAction 列表)。

Skills

安装即投递 8 个 skills(ctx.skills bundled provider,无需手动复制):

  • shared 同步:planningconfigcreate-claw-skillfeature-architectureclaw-kit-docnpm run sync:shared-skills 维护,勿手改——AUTO-GENERATED banner);
  • Host 特定(本包手写):using-claw-kit(claw_run 单路线主入口)、 researcher(recall → code index → exact source 调查顺序 + 可选 subagent 委派)、 update(CLI + adapter 联合升级,见 skills/update/SKILL.md)。

更新安装时若 pnpm 报旧 tarball ENOENT,先 dsh plugin --profile <name> remove @veewo/dsh-claw-kit 再重新 install:dsh-plugin(版本号即更新信号)。

测试

npm run build -w @veewo/dsh-claw-kit
npm test -w @veewo/dsh-claw-kit

覆盖:operation→daemon input 映射、hostActions 消费(含 fail-open)、Todo 投影与空表清理、 按 agent 隔离的 workflow snapshot、完整 canonical mutation 映射、白名单 compact、 ClawSession 协议(open/request/串行化/启动错误透传/真实 timeout)。

已知限制

  • systemPrompt.context 按 DSH agent scope 保存和读取 workflow snapshot, 并发 Web 会话不会共享全局 last-writer 状态;
  • 进度投影(update_plan → sessionProjections/UI)为 P2,当前以紧凑 guidance
    • DSH 原生 todo dock 承载。