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

Function loginHostLabel

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

Source from the content-addressed store, hash-verified

2322);
2323
2324const loginHostLabel = (origin: string): string => {
2325 try {
2326 const host = new URL(origin).hostname;
2327 const first = host.split(".")[0];
2328 return first && first.length > 0 ? first : host;
2329 } catch {
2330 return "server";
2331 }
2332};
2333
2334const sanitizeProfileName = (raw: string): string => {
2335 const cleaned = raw

Callers 1

chooseLoginProfileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected