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

@dootask/cli

v3.3.0

Published

DooTask 命令行工具 doo(gh 式 CLI,覆盖任务/项目/对话/消息/页面操作/应用插件等)

Readme

@dootask/cli

DooTask 的命令行工具 doo(gh 式 CLI)的 npm 分发渠道。既可供人使用,也面向 AI Agent 设计——结构化输出、明确退出码、环境变量注入认证、危险操作护栏。

安装

# 全局
npm i -g @dootask/cli
# 或
yarn global add @dootask/cli

# 项目内
npm i @dootask/cli

# 免安装一次性运行
npx @dootask/cli --help

npm/yarn 会按 optionalDependencies 与 os/cpu 字段自动只装与当前平台匹配的二进制子包(约 8 MB)。

使用

doo --help
doo auth login --server https://your-dootask.com --email [email protected]
doo task list --project 130
doo app catalog --search 客户管理

认证优先级:--token / --server 命令行参数 > DOO_TOKEN / DOO_SERVER 环境变量 > 配置文件(doo auth login 写入 ~/.config/doo/config.json)。

更完整的命令说明见 doo CLI 文档。


For AI Agents

doo 适合作为工具交给 LLM Agent。把下面这段贴进 system prompt 即可接入:

你可以使用 `doo` 命令行调用 DooTask。约定:
- 认证已通过 DOO_SERVER / DOO_TOKEN 环境变量注入,无需登录。
- 命令都加 --json:stdout 只输出一行 JSON,成功 {"ok":true,"data":...},失败 {"ok":false,"code":"...","message":"..."},按 code 判断原因(not_found、permission_denied、auth_required 等)。
- 退出码:0=成功;1=其他错误;2=参数错误;3=未认证;4=需要确认。
- 删除、解散群、撤回消息等危险操作不带 --yes 时不会执行,而是返回 code=needs_confirm 和 confirm.summary(操作摘要);先把摘要告诉用户,同意后再带 --yes 重发。
- 结果太大时用 --fields 只取需要的字段、--limit 限制条数,或用 --jq 处理;拿不准的写操作先加 --dry-run 预演。
- 用 `doo --help` / `doo <命令> --help` 自查参数,不要臆造。
先运行 `doo user info --json` 确认认证可用。

封装成工具时:

  • argv 传数组,认证只经环境变量,不要开放 auth 子命令。
  • 启动时运行一次 doo meta --json,拿到全部命令及其风险级别(read / write / danger),据此做只读模式或权限控制;清单里没有的命令按 write 处理。
  • 收到 needs_confirm 时用 confirm 字段(摘要、命令、涉及对象)向用户弹确认,确认后带 --yes 重跑。

错误码、输出信封的完整说明见 doo CLI 文档,生产环境的参考实现见 DooTask AI 插件。


平台支持

| 子包 | OS | CPU | |---|---|---| | @dootask/cli-linux-x64 | linux | x64 | | @dootask/cli-linux-arm64 | linux | arm64 | | @dootask/cli-darwin-x64 | darwin | x64 (Intel Mac) | | @dootask/cli-darwin-arm64 | darwin | arm64 (Apple Silicon) | | @dootask/cli-win32-x64 | win32 | x64 |

其他平台请从 源码构建。

源码

doo 本身用 Go 编写,源码在 server/go/cmd/doo/。本 npm 包仅做分发。