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

goal-diffusion

v0.1.10

Published

A Goal Pack CLI for long-running AI coding loops.

Downloads

1,567

Readme

goal-diffusion

English | 中文

用于查看进度、读取下一步、记录证据的 Goal Diffusion CLI。

在任何把 Goal Diffusion 目标文件夹放到 docs/goal-diffusion/goals/<goal-id> 的项目内都可使用。CLI 先回答运行问题:项目里有哪些目标、哪些已完成、哪些待办、当前下一步是什么、文件是否一致。

npm install -g goal-diffusion

常用流程

goal-diffusion summary .
goal-diffusion list . --completion todo
goal-diffusion inspect <goal-id>
goal-diffusion tasks <goal-id>
goal-diffusion receipts list <goal-id> --limit 5
goal-diffusion relations goals . --thread <thread-id> --completion todo --json
goal-diffusion relations tasks . --thread <thread-id> --completion todo --json
goal-diffusion relations check . --thread <thread-id>
goal-diffusion brief <goal-id>
goal-diffusion check <goal-id>

summarylist 面向项目级使用。inspecttasksreceiptsbriefrecordadvancecheck 面向单个目标文件夹。 relations 面向项目或 goals 目录使用,用来检查连续性元数据,并发现 thread 成员 goal/task 候选。它不创建队列、worklist、scheduler、thread 生命周期或执行顺序。

命令

goal-diffusion --help
goal-diffusion <command> --help
goal-diffusion inspect <goal-pack> [--json]
goal-diffusion summary [project-root|goals-dir] [--completion all|todo|done] [--status <status>] [--depth repo|groups|items] [--limit N] [--include fields] [--show-empty] [--json]
goal-diffusion list [project-root|goals-dir] [--completion all|todo|done] [--status <status>] [--limit N] [--include fields] [--show-empty] [--json]
goal-diffusion tasks <goal-pack> [--completion all|todo|done] [--status queued|active|blocked|done] [--limit N] [--include fields] [--show-empty] [--json]
goal-diffusion receipts list <goal-pack> [--limit N] [--task T###] [--type <value>] [--result done|blocked] [--decision <value>] [--next-decision <value>] [--oracle-satisfied true|false] [--changed-file <glob>] [--command-status pass|fail] [--contains <text>] [--include fields] [--show-empty] [--json]
goal-diffusion receipts show <goal-pack> --index N [--json]
goal-diffusion relations list [project-root|goals-dir] [--thread <id>] [--limit N] [--include fields] [--show-empty] [--json]
goal-diffusion relations goals [project-root|goals-dir] [--thread <id>] [--completion all|todo|done] [--status forming|ready|running|blocked|done|retired] [--next-decision edge|continue|plan_required|blocked|audit|done|needs-human] [--limit N] [--include fields] [--show-empty] [--json]
goal-diffusion relations tasks [project-root|goals-dir] [--thread <id>] [--completion all|todo|done] [--status queued|active|blocked|done] [--goal-completion all|todo|done] [--goal-status forming|ready|running|blocked|done|retired] [--goal <goal-id>] [--limit N] [--include fields] [--show-empty] [--json]
goal-diffusion relations check [project-root|goals-dir] [--thread <id>] [--json]
goal-diffusion relations graph [project-root|goals-dir] [--thread <id>] [--json]
goal-diffusion brief <goal-pack> [--task T###] [--json]
goal-diffusion dispatch <goal-pack> [--task T###]
goal-diffusion activate <goal-pack> --task T### [--dry-run]
goal-diffusion record <goal-pack> (--file receipt.json | --json '<json>' | --stdin) [--advance] [--check]
goal-diffusion advance <goal-pack> [--dry-run]
goal-diffusion check <goal-pack>

<goal-pack> 可以是目录,也可以是 docs/goal-diffusion/goals/ 下的裸 goal id。 summary 可接收项目根目录或 docs/goal-diffusion/goals 目录;不传参数时从当前目录向上查找。 对 summarylist--completion todo 表示 goal status 既不是 done 也不是 retired--status 过滤原始 Goal Pack status。 读类 JSON 命令使用统一输出控制:--limit 限制可见集合,--include path,objective,links 补回省略字段,--show-empty 显示空值和默认值。summary 默认 --depth groups--limit 20--depth items 把 threaded goals 放在 threads 下,顶层 items 只放 unthreaded goals。 对 tasks--completion todo 表示 task status 不是 done--status 过滤原始 task status。 对 receipts list,多个过滤条件按 AND 组合,默认输出 compact receipt 摘要。需要展开单条完整 receipt 时使用 receipts show --index N。 对 record,必须在 --file--json--stdin 三个输入源里选一个。--stdin 用于 heredoc receipt JSON;常见追加、确定性 advance、校验路径可用 --advance --checkactivateadvance 仍是状态转移命令,不接收 payload。 对 relationslist 显示关系元数据,check 用 token-aware 方式跨 receipt evidence 字段校验硬关系证据,graph 渲染派生视图。 goals 发现 thread 成员 Goal Pack。tasks 发现 thread 成员 task;--status 过滤 task status,--goal-status--goal-completion 过滤父 Goal Pack。 --threadgoal_relations.thread_id 过滤;这些命令不会创建 thread 文件、graph 状态或执行顺序。

典型执行环:

check -> inspect -> brief -> work -> record -> advance -> check

发布

从仓库根目录执行发布:

bun run release:check patch
bun run release patch
# 或
bun run release 0.2.0

bun run release:check 验证发布所需 git 状态,不改文件。 bun run release 在临时本地 release 分支写版本,给该提交打 tag,并且只 push tag。GitHub Actions 通过 npm Trusted Publishing 发布。

开发

bun install
bun run --filter goal-diffusion build
bun run --filter goal-diffusion typecheck
bun run --filter goal-diffusion test