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

Function canonicalDaemonHost

apps/cli/src/daemon-state.ts:58–61  ·  view source on GitHub ↗
(hostname: string)

Source from the content-addressed store, hash-verified

56const LOCAL_HOST_ALIASES = new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);
57
58export const canonicalDaemonHost = (hostname: string): string => {
59 const normalized = hostname.trim().toLowerCase();
60 return LOCAL_HOST_ALIASES.has(normalized) ? "localhost" : normalized;
61};
62
63export const currentDaemonScopeId = (): string => {
64 const explicitScope = process.env.EXECUTOR_SCOPE_DIR?.trim();

Callers 15

daemonBaseUrlFunction · 0.90
resolveDaemonTargetFunction · 0.90
ensureDaemonFunction · 0.90
stopDaemonFunction · 0.90
runDaemonSessionFunction · 0.90
runBackgroundDaemonStartFunction · 0.90
main.tsFile · 0.90
daemonRecordPathFunction · 0.85
daemonPointerPathFunction · 0.85
writeDaemonRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected