MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / generateConnectionName

Function generateConnectionName

packages/setupWizard/src/utils.ts:78–87  ·  view source on GitHub ↗
(platform: string, existing: Record<string, unknown>)

Source from the content-addressed store, hash-verified

76}
77
78export function generateConnectionName(platform: string, existing: Record<string, unknown>): string {
79 if (!existing[platform]) {
80 return platform;
81 }
82 let i = 1;
83 while (existing[`${platform}-${i}`]) {
84 i++;
85 }
86 return `${platform}-${i}`;
87}
88
89export async function multiInput(options: {
90 message: string;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected