MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / bestDetection

Function bestDetection

packages/react/src/pages/integrations.tsx:65–68  ·  view source on GitHub ↗
(
  results: readonly IntegrationDetectionResult[],
)

Source from the content-addressed store, hash-verified

63};
64
65const bestDetection = (
66 results: readonly IntegrationDetectionResult[],
67): IntegrationDetectionResult | undefined =>
68 [...results].sort((a, b) => detectionRank[b.confidence] - detectionRank[a.confidence])[0];
69
70// Hosts where a two-segment path (owner/repo) is unambiguously a git remote.
71const GIT_REPO_HOSTS = new Set(["github.com", "gitlab.com", "bitbucket.org", "codeberg.org"]);

Callers 1

ConnectDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected