Extending
Keep the CLI surface and domain types stable. Add capability behind the existing adapter contracts.
Add a package manager
- Implement EcosystemAdapter under src/ecosystems/
- Return accurate direct/transitive paths from the lockfile
- Fail loudly for unsupported shapes
- Add fixtures mirroring the npm lockfile tests
Add an advisory source
- Implement AdvisoryProvider under src/advisories/
- Normalize into the shared Advisory type
- Validate responses before use
- Keep OSV as the default unless the user opts in
AI providers
Extend the provider factory with another branch. Keep credentials in env vars, validate structured output, and soft-fail without changing findings.
ai: {
enabled: true,
provider: "openai-compatible",
model: "your-model",
baseURL: "http://localhost:11434/v1"
}Design principles
- Deterministic core, optional AI
- Explicit unsupported ecosystems over silent approximation
- Approval-first mutation
- Verify after change; restore on failure
- Prefer small, reviewable PRs for automation