CharlotteN7/dsh-plugin-inspector0

dsh-plugin-inspector

DSH 插件静态分析工具,支持在安装前对插件目录或 tarball 进行静态分析,识别潜在风险与权限声明。

AI 分析

核心用途是评估第三方插件的安全性。适合在安装未知插件前,需要对其进行静态代码与权限审计的系统管理员或安全人员。

套件
dsh-plugin-inspector
版本
0.2.1
授權
MIT
最近更新
2026年8月16日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

Usage

dsh-inspect  [options]
dsh-inspect --from-npm [@] [options]

                  A plugin directory, or an npm tarball (.tgz / .tar.gz).

Options
  --from-npm        Fetch a published package from the registry, verify its
                          dist.integrity hash, and analyse it in memory.
  --registry         Registry base URL for --from-npm.
                          (default: https://registry.npmjs.org)
  --json                  Emit the machine-readable JSON document on stdout.
  --fail-on     Exit 1 at or above this severity.
                          critical | high | medium | low | none    (default: high)
  --no-color              Plain text, no ANSI.
  --version, --help

Exit codes, which are the CI contract:

CodeMeaning
0Analysis completed; nothing at or above --fail-on
1Analysis completed; at least one finding at or above --fail-on
2Analysis could not be performed

2 is deliberately distinct from 1. A job that cannot tell "the analyzer broke" from "the plugin is clean" is the failure this split exists to prevent.

Getting a package without installing it

Never pnpm add a package you have not read.