* Generates a unique team name by checking if the provided name already exists. * If the name already exists, generates a new word slug.
(providedName: string)
| 62 | * If the name already exists, generates a new word slug. |
| 63 | */ |
| 64 | function generateUniqueTeamName(providedName: string): string { |
| 65 | // If the team doesn't exist, use the provided name |
| 66 | if (!readTeamFile(providedName)) { |
| 67 | return providedName |
| 68 | } |
| 69 | |
| 70 | // Team exists, generate a new unique name |
| 71 | return generateWordSlug() |
| 72 | } |
| 73 | |
| 74 | export const TeamCreateTool: Tool<InputSchema, Output> = buildTool({ |
| 75 | name: TEAM_CREATE_TOOL_NAME, |
no test coverage detected