Skip to main content

Module fetch_detector

Module fetch_detector 

Source
Expand description

Repository fetch detector middleware.

Monitors web fetch calls for GitHub raw content URLs. After 3+ fetches from the same repository, emits a PromptSuggestion recommending the user clone the repository for faster access.

Structsยง

RepoFetchDetector
Detects repeated HTTP fetches from the same GitHub repository and suggests cloning it locally once the fetch count exceeds a threshold.