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

o2-workflow

v0.0.8

Published

> **Beta** — 面向 workflow 自动化实例的终端客户端。管理工作流、执行记录、凭证与空间/项目。

Downloads

112

Readme

o2-workflow

Beta — 面向 workflow 自动化实例的终端客户端。管理工作流、执行记录、凭证与空间/项目。

轻量、仅依赖 @oclif/core,通过浏览器 SSO 登录后调用实例 REST API(/rest),面向人类、脚本与 AI Agent。

安装

# 零安装直接运行
npx o2-workflow workflow list

# 或全局安装
npm install -g o2-workflow
pnpm add -g o2-workflow

登录

首次调用 API 前,通过浏览器 SSO 登录一次:

o2-workflow login

登录凭证保存在 ~/.o2-workflow/config.json(权限 0600)。若不存在,会回退读取 ~/.oxygen-cli/config.json(与 oxygen-cli 共用登录凭证)。

也可通过环境变量跳过登录(适合 CI / Agent):

  • WORKFLOW_SSO_COOKIE:直接提供 SSO Cookie
  • WORKFLOW_URL:覆盖实例地址(默认 https://oxygenflow.jd.com

常用命令

脚本与 Agent 场景建议加 --json 输出结构化结果;写操作需加 --confirm

# 元信息与诊断
o2-workflow info --json
o2-workflow doctor --json

# 工作流
o2-workflow workflow list --json
o2-workflow workflow export <id> --file=workflow.json
o2-workflow workflow create --file=workflow.json --confirm --json
o2-workflow workflow update <id> --file=updated.json --confirm --json
o2-workflow workflow copy <id> --confirm --json
o2-workflow workflow run <id> --json
o2-workflow workflow activate <id> --confirm --json
o2-workflow workflow deactivate <id> --confirm --json
o2-workflow workflow archive <id> --confirm --json
o2-workflow workflow unarchive <id> --confirm --json
o2-workflow workflow delete <id> --confirm --json

# 空间/项目
o2-workflow project list --json
o2-workflow project list --personalSpace --json
o2-workflow project get <id> --json

# 执行记录
o2-workflow execution list --json
o2-workflow execution get <id> --json
o2-workflow execution stop <id> --json
o2-workflow execution retry <id> --load-workflow --json
o2-workflow execution delete <id> --confirm --json

# 凭证
o2-workflow credential list --json
o2-workflow credential get <id> --json
o2-workflow credential create --file=credential.json --confirm --json
o2-workflow credential update <id> --file=credential.json --confirm --json
o2-workflow credential share <id> --projects=<projectId> --confirm --json
o2-workflow credential delete <id> --confirm --json

| Topic | 子命令 | |-------|--------| | — | logininfodoctor | | workflow | listexportcreateupdatecopyrunactivatedeactivatearchiveunarchivedelete | | project | listget | | execution | listgetstopretrydelete | | credential | listgetcreateupdatesharedelete |

完整列表:o2-workflow --help;各子命令详情:o2-workflow workflow --help

Agent 集成

  • SKILL:skills/o2-workflow/SKILL.md
  • 能力清单:capabilities.json(与 CLI 命令一一对应)

也可通过 oxygen-cli 安装与管理:

oxygen-cli install o2-workflow
oxygen-cli skill show o2-workflow

开发

pnpm install
pnpm verify    # typecheck + lint + test + build

说明

本包通过 SSO Cookie 调用 workflow 自动化平台 REST API(/rest)。