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

Function bestDetection

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

Source from the content-addressed store, hash-verified

59};
60
61const bestDetection = (
62 results: readonly IntegrationDetectionResult[],
63): IntegrationDetectionResult | undefined =>
64 [...results].sort((a, b) => detectionRank[b.confidence] - detectionRank[a.confidence])[0];
65
66// ---------------------------------------------------------------------------
67// Page

Callers 1

ConnectDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected