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

Function requiredConnectionFieldsMatch

src/cli/commands/connection.ts:497–508  ·  view source on GitHub ↗
(
  state: RemoteConnectionState,
  options: Parameters<typeof isCompatibleConnection>[1],
)

Source from the content-addressed store, hash-verified

495}
496
497function requiredConnectionFieldsMatch(
498 state: RemoteConnectionState,
499 options: Parameters<typeof isCompatibleConnection>[1],
500): boolean {
501 return [
502 [state.remoteConfigPath, options.remoteConfigPath],
503 [state.remoteConfigHash, options.remoteConfigHash],
504 [state.session, options.session],
505 [state.tenant, options.flags.tenant],
506 [state.runId, options.flags.runId],
507 ].every(([left, right]) => left === right);
508}
509
510function optionalConnectionFieldsMatch(
511 state: RemoteConnectionState,

Callers 1

isCompatibleConnectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected