baidd1011/dsh-code-impact ↗★ 1
dsh-code-impact
适用于 DeepSeek Harness 的只读 TypeScript 和 JavaScript 变更影响分析。
AI 分析
核心用途是分析代码修改对项目的影响范围。适合前端与 Node.js 开发者,在 Agent 修改代码前进行静态依赖分析,评估受波及的文件与潜在风险。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baidd1011/dsh-code-impact说明文档
阅读完整 README ↗Configuration / 配置
All fields are validated by Schemastery when the plugin is loaded。
所有字段在插件加载时通过 Schemastery 校验。
gitCommand: git
maxSourceFiles: 10000
maxTotalSourceBytes: 100000000
maxFileBytes: 2000000
maxChangedFiles: 200
maxImpactedFiles: 500
maxTraversalDepth: 5
maxCausesPerImpact: 3
maxResultChars: 24000
timeoutMs: 120000
testPatterns:
- '**/*.test.*'
- '**/*.spec.*'
- '**/__tests__/**'
- '**/test/**'
- '**/tests/**'
excludePatterns:
- '**/node_modules/**'
- '**/dist/**'
- '**/build/**'
- '**/coverage/**'
- '**/.git/**'
maxSourceFiles and maxTotalSourceBytes protect repository-scale scans. Exceeding them returns CODE_IMPACT_REPOSITORY_TOO_LARGE instead of a partial report. maxFileBytes prevents an individual source file from entering the parser; the report carries a warning and is incomplete. maxChangedFiles, maxImpactedFiles, maxCausesPerImpact, and maxResultChars bound the returned presentation. The report retains total counts and includes truncation when result arrays or propagation causes are shortened.
maxSourceFiles 和 maxTotalSourceBytes 保护仓库级扫描;超过时返回 CODE_IMPACT_REPOSITORY_TOO_LARGE,不会伪造部分完整结果。maxFileBytes 阻止单个超大源码进入解析,报告会包含 warning 并标记不完整。maxChangedFiles、maxImpactedFiles、maxCausesPerImpact 和 maxResultChars 限制返回结果;截断时保留总数并返回 truncation。