return { kind: 'stale', pid: state.pid };
}
logService.info(`${LOG_PREFIX} Found running agent host via ${lockfilePath}: PID ${state.pid}, port ${state.port}`);
return {
kind: 'compatible',
pid: state.pid,
host: dialAgentHostHost(state.host),
port: state.port,
connectionToken: state.connectionToken ?? undefined,
};
}