Skip to content

feat(enrichment): dependency-diff (added/removed deps) surface analyzer #2020

Description

@JSONbored

New REES local analyzer that emits a plain, informational summary of dependency manifest changes — which direct deps were added, removed, or version-changed across package.json / requirements.txt / pyproject / go.mod / Cargo.toml — as a compact reviewer surface. Distinct from the vuln-scanning dependency analyzer: this is the neutral inventory delta (no registry calls), useful even when nothing is vulnerable. Pure compute over manifest patches.

Deliverables

  • Add DependencyDiffFinding ({ ecosystem, package, from: string|null, to: string|null, direction: 'add'|'remove'|'change' }) + dependencyDiff? key to review-enrichment/src/types.ts
  • Create review-enrichment/src/analyzers/dependency-diff.ts: reuse the existing manifest parsing/extraction from the dependency analyzer helpers where possible; report add/remove/change for direct deps only; cap with maxFindings
  • Register a local descriptor (category 'supply-chain', cost 'local', requires ['files']) with inline render() in review-enrichment/src/analyzers/registry.ts
  • Add review-enrichment/test/dependency-diff.test.ts covering add/remove/change across npm + one non-npm ecosystem and the cap

References

  • review-enrichment/src/analyzers/dependency/descriptor.ts (existing dependency analyzer to draw manifest parsing from — do NOT duplicate its OSV vuln scan)
  • review-enrichment/src/analyzers/dependency-scan.ts (manifest extraction logic)
  • review-enrichment/src/analyzers/registry.ts:36-63 (supply-chain local descriptor template)

Part of #1499.


size: S · gittensor:feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions