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

@lystran/pi-mvn-compact

v0.2.0

Published

Compact Maven output for Pi coding agent

Readme

@lystran/pi-mvn-compact

给 Pi coding agent 提供 Maven 工具,压缩 Maven 的高噪声命令输出

使用边界

这个工具只适用于 Maven 项目。它优先执行当前工作目录的 ./mvnw,不存在时执行 PATH 中的 mvn

AI 调用工具时只传 Maven 参数数组:

{
  "args": ["clean", "test"]
}

不要在 args 中传入 mvn./mvnw、管道、重定向或其他 shell 语法

默认使用 compact 模式:成功时返回短摘要,失败时返回分类诊断、测试报告目录和完整日志路径。完整日志保存到项目下的 .agent-logs/maven/,失败日志保留,成功日志默认保留在当前运行期间但不会返回全部内容

mode: "full" 用于需要查看 Maven 原始输出的调试场景

工具还会识别影响结果可信度的常见参数:

  • -DskipTests-Dmaven.test.skip-DskipITs 会返回 NOT_RUN
  • -DtestFailureIgnore-Dmaven.test.failure.ignore-fn 不会让被忽略的测试/构建失败伪装成 PASS
  • -Dtest-Dit.testfailIfNoSpecifiedTests 会标记空测试选择
  • -q-l、自定义日志配置导致测试证据缺失时会返回 UNKNOWN
  • 重试成功的测试会返回 PASS_WITH_FLAKES
  • -pl-am-amd-N-rf-T 和 Reactor 失败策略会在摘要中显示构建范围提示

结果状态包括 PASSFAILNOT_RUNPASS_WITH_FLAKESINCOMPLETEUNKNOWNMaven exit code: 0 只代表 Maven 进程返回成功,不代表测试一定完整通过