(name: string, kind: string)
| 104 | * "GitHub REST" and "GitHub API" are one product; "Stripe API" and |
| 105 | * "Stripe MCP" are not. */ |
| 106 | const productKey = (name: string, kind: string): string => |
| 107 | `${name |
| 108 | .toLowerCase() |
| 109 | .replace(/\b(api|rest|graphql|mcp)\b/g, "") |
| 110 | .replace(/[^a-z0-9]/g, "")}|${kind}`; |
| 111 | |
| 112 | const detectionRank: Record<IntegrationDetectionResult["confidence"], number> = { |
| 113 | high: 3, |
no test coverage detected