MCPcopy Create free account
hub / github.com/callstack/agent-device / buildDaemonArtifactUrl

Function buildDaemonArtifactUrl

src/remote/daemon-artifacts.ts:437–440  ·  view source on GitHub ↗
(baseUrl: string, artifactId: string)

Source from the content-addressed store, hash-verified

435}
436
437function buildDaemonArtifactUrl(baseUrl: string, artifactId: string): string {
438 const normalizedBase = baseUrl.endsWith('/') ? baseUrl : `${baseUrl}/`;
439 return new URL(`artifacts/${encodeURIComponent(artifactId)}`, normalizedBase).toString();
440}
441
442function isRemoteDaemon(info: DaemonArtifactEndpoint): boolean {
443 return typeof info.baseUrl === 'string' && info.baseUrl.length > 0;

Callers 1

downloadRemoteArtifactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…