MCPcopy
hub / github.com/callstack/agent-device / shouldReusePreviousConnectionState

Function shouldReusePreviousConnectionState

src/cli/commands/connection.ts:256–261  ·  view source on GitHub ↗
(
  flags: CliFlags,
  previous: RemoteConnectionState | null,
)

Source from the content-addressed store, hash-verified

254}
255
256function shouldReusePreviousConnectionState(
257 flags: CliFlags,
258 previous: RemoteConnectionState | null,
259): previous is RemoteConnectionState {
260 return Boolean(previous && !flags.force);
261}
262
263async function cleanupForcedPreviousConnection(
264 client: Parameters<ClientCommandHandler>[0]['client'],

Callers 1

buildConnectedStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected