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

Function loginHostLabel

apps/cli/src/main.ts:2246–2254  ·  view source on GitHub ↗
(origin: string)

Source from the content-addressed store, hash-verified

2244);
2245
2246const loginHostLabel = (origin: string): string => {
2247 try {
2248 const host = new URL(origin).hostname;
2249 const first = host.split(".")[0];
2250 return first && first.length > 0 ? first : host;
2251 } catch {
2252 return "server";
2253 }
2254};
2255
2256const sanitizeProfileName = (raw: string): string => {
2257 const cleaned = raw

Callers 1

chooseLoginProfileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected