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

Function bestDetection

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

Source from the content-addressed store, hash-verified

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

Callers 1

ConnectDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected