(name: string)
| 168 | |
| 169 | const NAMESPACE_SEPARATOR = "__NS__"; |
| 170 | export function convertToUserFriendlyName(name: string): string { |
| 171 | if (!name) return "Unknown Source"; |
| 172 | name = name.replace(NAMESPACE_SEPARATOR, "/"); |
| 173 | return name.replace(/_/g, "-"); |
| 174 | } |
| 175 | |
| 176 | export function isAgentToolName(name: string | undefined): boolean { |
| 177 | return typeof name === "string" && name.includes(NAMESPACE_SEPARATOR); |
no outgoing calls
no test coverage detected