dependabit / detector/src
detector/src
Detector
| Name | Description |
|---|---|
| Detector | Orchestrates multi-stage detection of informational external dependencies inside a local repository clone. |
| GitHubCopilotProvider | Contract that all LLM provider implementations must satisfy. |
| DetectedDependency | A single dependency detected by the LLM. |
| DetectionResult | The result produced by Detector.detectDependencies or Detector.analyzeFiles. |
| DetectorOptions | Configuration options for the Detector orchestrator. |
| LLMProvider | Contract that all LLM provider implementations must satisfy. |
| LLMProviderConfig | Configuration passed to an LLM provider at construction time. |
| LLMResponse | The structured response returned by LLMProvider.analyze. |
| LLMUsageMetadata | Token usage and latency metadata included in every LLMResponse. |
| RateLimitInfo | Rate limit information returned by LLMProvider.getRateLimit. |
| SYSTEM_PROMPT | Detection prompts for LLM-based dependency analysis. |
| createClassificationPrompt | Renders a classification prompt for a single URL, asking the LLM to determine the dependency type and best access method. |
| createDetectionPrompt | Renders a detection prompt by substituting the content-type, file path, and raw content into DETECTION_PROMPT_TEMPLATE. |
Other
| Name | Description |
|---|---|
| ChangedFilesResult | - |
| CommentReference | Code Comment Parser Extracts URLs and references from code comments |
| DiffParseResult | - |
| ExtractedContent | - |
| ExtractedReference | README Parser Extracts URLs and references from README and markdown files |
| PackageMetadata | Package File Parser Extracts metadata and references from package manager files EXCLUDES actual dependencies (handled by dependabot) |
| extractAddedContent | Extract meaningful content from added lines |
| extractDependencyChanges | Extract all dependency-related content from commit diffs |
| extractGitHubReferences | Extract GitHub repository mentions (owner/repo format) |
| extractRemovedContent | Extract meaningful content from removed lines |
| extractSpecReferences | Extract specification and RFC references from comments |
| getChangedFiles | Identify files relevant for dependency analysis |
| parseCargoToml | Parse Cargo.toml and extract metadata URLs EXCLUDES actual dependencies (handled by dependabot) |
| parseCodeComments | Parse code files and extract references from comments |
| parseCommitDiffs | Parse all diffs from commit files |
| parseDiff | Parse a unified diff and extract additions and deletions |
| parseGoMod | Parse go.mod and extract URLs from comments EXCLUDES actual dependencies (handled by dependabot) |
| parsePackageJson | Parse package.json and extract metadata URLs (NOT dependencies) |
| parseReadme | Parse README content and extract external references |
| parseRequirementsTxt | Parse requirements.txt and extract URLs from comments EXCLUDES actual packages (handled by dependabot) |