dsh-license-guard
Manifest valid★ 1Dependency License Compliance: Scan node_modules licenses, normalize SPDX, classify, and perform pre-release compliance checks
dsh-license-guard · 依赖许可证合规
扫描项目 node_modules 中每个依赖的许可证,归一化为 SPDX 标识,按「宽松 / 弱传染 / 强传染 / 未知 / 未授权」分类,并支持发布前的允许/禁止策略校验。纯 Node 实现,无网络、无外部服务。
提供的工具
| 工具 | 作用 |
|---|---|
license_scan | 扫描全部依赖许可证,分类汇总 |
license_check | 按允许/禁止策略校验,返回违规依赖 |
安装
dsh plugin add dsh-license-guard
安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-license-guard"。
用法示例
看看这个项目依赖的许可证构成
→ 调用 license_scan(root="/workspace")
发布前做一次合规门禁
→ 调用 license_check(root="/workspace", deny=["AGPL-3.0"])
默认策略
- 默认允许:MIT、Apache-2.0、ISC、BSD、0BSD、Zlib、Unlicense、CC0-1.0 等宽松许可证。
- 默认禁止:GPL-3.0、AGPL-3.0、SSPL-1.0、GPL-2.0 等强传染许可证。
- 未知 / 未授权许可证默认计入违规(可用
includeUnknown: false关闭)。
说明
- 许可证识别基于各依赖
package.json的license/licenses字段,识别不到的会标记为「未知」。 - 这属于启发式合规筛查,正式商用/发布前请以法律复核为准。
安装
dsh plugin add github:uckkk/dsh-license-guard
安装即在本机运行第三方代码,请自行审阅源码。
安装
dsh plugin add github:uckkk/dsh-license-guard
使用
安装后在会话中调用该插件注册的工具即可。
许可
MIT
安装即在本机运行第三方代码,请自行审阅源码。
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
Comments
Loading…
From the same category
by toby-bridges
Local security audit for AI API relays and LLM proxies: detects prompt injection, model substitution, tool-call rewriting, SSE anomalies, error leakage, and Web3 wallet risks.
★ 857
AGPL-3.0
Python
Sep 16, 2026
dsh plugin --profile web add dsh-api-relay-auditby sandbaseai
Local-first, self-hosted AI agent runtime and MCP bridge with sandboxed sessions, memory, credentials, audit/replay, and a local Console.
★ 672
↓ 5/wk
Apache-2.0
TypeScript
Sep 25, 2026
dsh plugin --profile terminal add managed-agentsby hashgraph-online
Open-source antivirus for AI agents: block risky tools, secret access, prompt injection, malicious packages, MCP servers, plugins, and skills at runtime.
★ 668
Apache-2.0
Python
Sep 25, 2026
by SeaOf0
基于dsh web实现的多种模式,目的是服务于redteam进行授权的安全研究,覆盖渗透测试、红队评估、代码审计等范围领域,请勿用于非法行为。(允许二开,赋予模块各位自己的业务逻辑,方法论只有自己熟练的才好用,好的方法论=好的生态)
★ 618
MIT
Python
Sep 24, 2026
dsh plugin --profile web add @dsh-external/dsh-redteam-modelby howmp
面向 DeepSeek Harness(dsh)的渗透测试模式 @CloverSecLabs
★ 548
NOASSERTION
JavaScript
Sep 22, 2026
dsh plugin --profile web add @howmp/dsh-pentestby xiaods
k8e.sh - OpenSource Agentic AI Sandbox Matrix
★ 498
↓ 13/wk
Apache-2.0
Go
Sep 25, 2026
dsh plugin --profile agent add @k8e-sandbox/dsh-k8e-sandbox-bundle