MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / hostLabel

Function hostLabel

cli/src/commands/login.ts:11–17  ·  view source on GitHub ↗

* Render the URL's host for human-facing log lines. Falls back to the raw * input if it isn't a valid URL — better than throwing in the middle of * a status message.

(apiUrl: string)

Source from the content-addressed store, hash-verified

9 * a status message.
10 */
11function hostLabel(apiUrl: string): string {
12 try {
13 return new URL(apiUrl).host;
14 } catch {
15 return apiUrl;
16 }
17}
18
19const LOGIN_TIMEOUT_MS = 2 * 60 * 1000;
20

Callers 2

waitForBrowserLoginFunction · 0.85
loginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected