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

@agent-pipeline/core

v3.0.0

Published

Agent Pipeline 引擎层,提供类型定义、关卡状态机、DAG 工具和核心服务。

Readme

@agent-pipeline/core

Agent Pipeline 引擎层,提供类型定义、关卡状态机、DAG 工具和核心服务。

模块结构

src/
├── types/              类型定义
│   ├── config.ts       管线配置(LevelConfig, PipelineConfig)
│   ├── state.ts        管线状态(LevelState, PipelineState)
│   ├── protocol.ts     文件协议常量(FILE_PROTOCOL)
│   ├── ipc.ts          IPC 通道定义(21 个通道)
│   ├── reference.ts    引用类型(ReferenceEntry, ReferencesManifest)
│   ├── action-guide.ts 行动指引(ActionGuide, ActionPhase, ActionActor)
│   └── mcp.ts          MCP 类型(资源 URI、工具参数)
├── state-machine/
│   └── levelMachine.ts XState v5 状态机(9 状态,7 事件)
├── services/
│   ├── ConfigParser.ts       配置解析 + depends_on 校验 + DAG 环检测
│   ├── StateMachineService.ts 状态机管理 + DAG 解锁(checkAndUnlockDependents)
│   ├── MigrationEngine.ts    关卡流转引擎 + 引用式迁移(generateReferences)
│   ├── FileWatcherService.ts 文件监听(chokidar, 含 _references.yaml)
│   ├── ReadmeGenerator.ts    README 自动生成
│   ├── ReferenceResolver.ts  引用解析 + 上下文链查询
│   └── SystemPromptManager.ts 系统提示词管理
├── utils/
│   ├── fileOps.ts            文件操作工具
│   ├── markdownParser.ts     Markdown 解析(验收清单 checkbox)
│   └── dagUtils.ts           拓扑排序、环检测、上下游查询
├── constants.ts              业务常量
└── index.ts                  统一导出

使用

其他包通过 workspace 协议引用:

{
  "dependencies": {
    "@agent-pipeline/core": "^2.0.0"
  }
}
import { ConfigParser, StateMachineService, FILE_PROTOCOL } from '@agent-pipeline/core'
import type { LevelConfig, PipelineState, ActionGuide } from '@agent-pipeline/core'

脚本

pnpm test          # 运行 106 个测试
pnpm build         # tsup 构建(ESM + CJS + DTS)
pnpm typecheck     # TypeScript 类型检查