← 返回
开发者工具 中文

Wip License Hook

License rug-pull detection. Scans dependencies and forks for license changes, gates upstream merges, maintains a license ledger, and generates a public compl...
License rug-pull detection. Scans dependencies and forks for license changes, gates upstream merges, maintains a license ledger, and generates a public compl...
parkertoddbrooks parkertoddbrooks 来源
开发者工具 clawhub v1.9.72 3 版本 99915.3 Key: 无需
★ 0
Stars
📥 1,179
下载
💾 0
安装
3
版本
#latest

概述

wip-license-hook

Detect license rug-pulls before they reach your codebase.

Commands

Initialize ledger for a project

wip-license-hook init --repo /path/to/repo

Scans all current dependencies and forks, records their licenses, creates LICENSE-LEDGER.json.

Scan all dependencies

wip-license-hook scan --all

Checks every dependency and fork against the ledger. Updates last_checked. Flags any changes.

Pre-merge gate

wip-license-hook gate --upstream <remote>

Fetches upstream without merging. Checks license. Returns exit code 0 (safe) or 1 (changed/blocked).

Use in git hooks or CI.

Generate report

wip-license-hook report

Outputs a human-readable license health report.

Generate dashboard

wip-license-hook dashboard --output ./docs

Creates a static HTML dashboard from the ledger. Deploy to GitHub Pages.

Daily Cron Usage

Add to HEARTBEAT.md or as a cron job:

wip-license-hook scan --all --alert

If any license changed, sends alert via configured channel (email, iMessage, Discord).

What It Detects

  • LICENSE file content changes
  • package.json license field changes
  • SPDX header changes
  • License removal (file deleted)
  • License downgrade (permissive → restrictive)

What It Does NOT Do

  • It does not legal advice make
  • It does not auto-merge anything ever
  • It does not modify upstream code

Alert Levels

  • 🟢 Clean — license unchanged since adoption
  • 🟡 Warning — license metadata inconsistency (e.g., LICENSE file says MIT but package.json says ISC)
  • 🔴 Blocked — license changed from what was adopted. Merge blocked. Human review required.

MCP

Tools: license_scan, license_audit, license_gate, license_ledger

Add to .mcp.json:

{
  "wip-license-hook": {
    "command": "node",
    "args": ["/path/to/tools/wip-license-hook/mcp-server.mjs"]
  }
}

版本历史

共 3 个版本

  • v1.9.72 当前
    2026-04-30 16:36 安全 安全
  • v1.9.33
    2026-03-27 21:31
  • v1.9.8
    2026-03-14 02:08

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,392
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,721
dev-programming

Markdown Viewer

parkertoddbrooks
用于 AI 配对编辑的实时 Markdown 查看器,协作时更新即时渲染,支持任意 AI 代理和网页浏览器。
★ 2 📥 1,613