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

@master0071/tfs-cli

v1.0.8

Published

TFS (tf.exe) 命令行包装工具,为 AI Agent 提供结构化 JSON 输出、自动签出/冲突检测、凭证管理。

Readme

tfs-cli

TFS (tf.exe) 命令行包装工具,为 AI Agent + 人类 协作场景设计。

# 安装
npm install -g @master0071/tfs-cli

# 初始化配置
tfs-cli init -U http://your-tfs:8080/tfs/YOUR_COLLECTION -u <username>
TFS_PASSWORD=<password> tfs-cli init -U http://your-tfs:8080/tfs/YOUR_COLLECTION -u <username>

# 编辑前自动签出
tfs-cli edit src/Program.cs

# 注入 AI Agent 规则
tfs-cli inject --trae --claude

命令

| 命令 | 用途 | |------|------| | init | 初始化配置 | | edit <path> | 自动签出 + 冲突检测 | | checkout / undo / add / getlatest / status / diff / history [path] | 签出/撤销/添加/更新/状态/差异/历史 | | test | 测试连接 | | inject | 注入规则到项目 | | config show\|set\|reset | 配置管理 |

输出:默认 compact JSON,加 --text 切换人类可读。

配置

  • 文件:~/.config/tfs-cli/config.json(server/username/domain/workspace/collection)
  • 凭证:Windows 凭据管理器,密码不落盘
  • config set 可改 server/domain/workspace/collection不可改 username
  • 密码不能含逗号或分号tf.exe /login 不支持转义)

AI Agent 注入

tfs-cli inject --trae --claude --cursor --cline --qwen --gemini # 指定 agent
tfs-cli inject -a all                                            # 全部
tfs-cli inject                                                    # 自动检测

⚠️ AI Agent 规则:所有 TFS 操作必须通过 tfs-cli 执行,禁止直接调用 tf.exe tfs-cli 提供结构化 JSON 输出,便于 AI 解析;直接调用 tf 会绕过这些能力。

| 文件 | 适用 | |------|------| | AGENTS.md | opencode / kilo / qoder / zcode / omp | | CLAUDE.md / QWEN.md / GEMINI.md / .clinerules | claude / qwen / gemini / cline | | .trae/rules/tfs-command.md / .codebuddy/rules/tfs-command.md / .cursor/rules/tfs-command.mdc | trae / codebuddy / cursor |