MCPcopy Index your code
hub / github.com/callstack/agent-device / shouldUseProxyConnectShortcut

Function shouldUseProxyConnectShortcut

src/cli/commands/connection.ts:438–443  ·  view source on GitHub ↗
(flags: CliFlags)

Source from the content-addressed store, hash-verified

436}
437
438function shouldUseProxyConnectShortcut(flags: CliFlags): boolean {
439 if (!flags.daemonBaseUrl || flags.tenant || flags.runId || flags.leaseId || flags.leaseBackend) {
440 return false;
441 }
442 return isAgentDeviceProxyBaseUrl(flags.daemonBaseUrl);
443}
444
445function isAgentDeviceProxyBaseUrl(value: string): boolean {
446 try {

Callers 1

resolveConnectProfileFunction · 0.85

Calls 1

Tested by

no test coverage detected