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

qm-workflow

v0.0.6

Published

工作流 cli

Readme

@quantum-design-cli/workflow

一个强大的工作流 CLI 工具,用于自动化开发流程和团队协作。

功能特点

  • 飞书集成:支持与飞书平台的深度集成,实现工作流程自动化
  • 阿里云集成:支持阿里云相关服务的操作
  • AI 支持:集成 OpenAI 功能,提供智能化辅助
  • 命令行工具:提供简单易用的命令行界面

安装

# 使用 npm 安装
npm install @quantum-design-cli/workflow -g

# 或使用 yarn
yarn global add @quantum-design-cli/workflow

使用方法

工具提供了两个命令行别名:

  • qm-workflow
  • qw (简写)

阿里云工作流

运行 appstack

  • qw -a appstack

运行 codeup

  • qw -a || qw -a codeup

飞书工作流

  • qw -f

配置

在项目根目录创建 qm-workflow.json 配置文件:

{
    "feishuConfig": {
        "appId": "your_feishu_app_id",
        "appSecret": "your_feishu_app_secret",
    },
    "aliConfig": {
        "token": "your_ali_token",
        "appStackName": "your_app_stack_name",
        "repoName": "your_repo_name",
        "targetBranch": "your_target_branch"
    },
    "openaiConfig": {
        "apiKey": "your_openai_api_key"
    }
}

项目结构

src/
├── cli.ts          # CLI 入口文件
├── command/        # 命令实现
├── client/         # 客户端实现
├── enums/          # 枚举定义
├── questions/      # 交互式问题
├── types/          # 类型定义
└── utils/          # 工具函数

技术栈

  • Node.js (v18.18.2)
  • TypeScript
  • 主要依赖:
    • axios:HTTP 客户端
    • @larksuiteoapi/node-sdk:飞书 SDK
    • openai:OpenAI API 客户端
    • prompts:命令行交互
    • unbuild:构建工具

开发

# 安装依赖
pnpm install

# 开发模式
pnpm dev

# 构建
pnpm build

TODO

  1. 飞书集成
    • 获取飞书 userToken
      • 文件:src/client/feishu-client/feishu-base-client.ts
    • 获取知识库文档纯文本
      • 文件:src/client/feishu-client/docx-client.ts
    • 根据文档块内容的 token 获取图片地址,并下载到本地隐藏文件夹
      • 文件:src/client/feishu-client/docx-client.ts
    • 调用飞书 API 发送消息,创建云文档记录 MR 详情
      • 文件:src/command/codeup.ts

许可证

ISC License © Evan Wu

参数

参数等级

  1. 其次是 环境变量
vim ~/.zshrc

export FEISHU_APP_ID=xxxx # 飞书应用 id
export FEISHU_APP_SECRET=xxxx # 飞书应用 密钥
export FEISHU_PROJECT_APP_ID=xxxx # 飞书项目 id
export FEISHU_PROJECT_APP_SECRET=xxxx # 飞书项目 密钥
export FEISHU_APP_SPACE_NAME=xxxx # 飞书命名空间

export BAILIAN_API_KEY=xxxx # 百炼 api key
export BAILIAN_MODELNAME=xxxx # 百炼 api key

export REPO_NAME=xxxx # 仓库名称
export APP_STACK_NAME=xxxx # appstack名称

或者 具体参数同上

// .env 文件

FEISHU_APP_ID=xxx
FEISHU_APP_SECRET=xxx
  1. 最后是项目中的 qm-workflow.json

参数名称

普通变量

{
    "feishuConfig": {
        "appId": "your_feishu_app_id",
        "appSecret": "your_feishu_app_secret",
        "spaceName": "知识库名称"
    },
    "aliConfig": {
        "token": "your_ali_token",
        "appStackName": "your_app_stack_name",
        "repoName": "your_repo_name",
        "targetBranch": "your_target_branch"
    },
    "openaiConfig": {
        "apiKey": "your_openai_api_key",
        "modelName": "模型名称"
    }
}