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

Function loginHostLabel

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

Source from the content-addressed store, hash-verified

2269);
2270
2271const loginHostLabel = (origin: string): string => {
2272 try {
2273 const host = new URL(origin).hostname;
2274 const first = host.split(".")[0];
2275 return first && first.length > 0 ? first : host;
2276 } catch {
2277 return "server";
2278 }
2279};
2280
2281const sanitizeProfileName = (raw: string): string => {
2282 const cleaned = raw

Callers 1

chooseLoginProfileNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected