baidd1011/dsh-code-impact1

dsh-code-impact

适用于 DeepSeek Harness 的只读 TypeScript 和 JavaScript 变更影响分析。

AI 分析

核心用途是分析代码修改对项目的影响范围。适合前端与 Node.js 开发者,在 Agent 修改代码前进行静态依赖分析,评估受波及的文件与潜在风险。

套件
dsh-code-impact
版本
0.2.0
授權
MIT
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baidd1011/dsh-code-impact

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.

maxSourceFilesmaxTotalSourceBytes 保护仓库级扫描;超过时返回 CODE_IMPACT_REPOSITORY_TOO_LARGE,不会伪造部分完整结果。maxFileBytes 阻止单个超大源码进入解析,报告会包含 warning 并标记不完整。maxChangedFilesmaxImpactedFilesmaxCausesPerImpactmaxResultChars 限制返回结果;截断时保留总数并返回 truncation