Skip to content

dependabit / detector/src

detector/src

Detector

NameDescription
DetectorOrchestrates multi-stage detection of informational external dependencies inside a local repository clone.
GitHubCopilotProviderContract that all LLM provider implementations must satisfy.
DetectedDependencyA single dependency detected by the LLM.
DetectionResultThe result produced by Detector.detectDependencies or Detector.analyzeFiles.
DetectorOptionsConfiguration options for the Detector orchestrator.
LLMProviderContract that all LLM provider implementations must satisfy.
LLMProviderConfigConfiguration passed to an LLM provider at construction time.
LLMResponseThe structured response returned by LLMProvider.analyze.
LLMUsageMetadataToken usage and latency metadata included in every LLMResponse.
RateLimitInfoRate limit information returned by LLMProvider.getRateLimit.
SYSTEM_PROMPTDetection prompts for LLM-based dependency analysis.
createClassificationPromptRenders a classification prompt for a single URL, asking the LLM to determine the dependency type and best access method.
createDetectionPromptRenders a detection prompt by substituting the content-type, file path, and raw content into DETECTION_PROMPT_TEMPLATE.

Other

NameDescription
ChangedFilesResult-
CommentReferenceCode Comment Parser Extracts URLs and references from code comments
DiffParseResult-
ExtractedContent-
ExtractedReferenceREADME Parser Extracts URLs and references from README and markdown files
PackageMetadataPackage File Parser Extracts metadata and references from package manager files EXCLUDES actual dependencies (handled by dependabot)
extractAddedContentExtract meaningful content from added lines
extractDependencyChangesExtract all dependency-related content from commit diffs
extractGitHubReferencesExtract GitHub repository mentions (owner/repo format)
extractRemovedContentExtract meaningful content from removed lines
extractSpecReferencesExtract specification and RFC references from comments
getChangedFilesIdentify files relevant for dependency analysis
parseCargoTomlParse Cargo.toml and extract metadata URLs EXCLUDES actual dependencies (handled by dependabot)
parseCodeCommentsParse code files and extract references from comments
parseCommitDiffsParse all diffs from commit files
parseDiffParse a unified diff and extract additions and deletions
parseGoModParse go.mod and extract URLs from comments EXCLUDES actual dependencies (handled by dependabot)
parsePackageJsonParse package.json and extract metadata URLs (NOT dependencies)
parseReadmeParse README content and extract external references
parseRequirementsTxtParse requirements.txt and extract URLs from comments EXCLUDES actual packages (handled by dependabot)

Released under the MIT License.