Electron was using an undocumented API. There is no guarantee at all that undocumented APIs will continue to work or to be supported. Why should Apple encourage this behaviour?
If you ask yourself whether this could be depression, go and see immediately a doctor. There is nothing wrong with having it, there is no fault on your side, it something that just gets unbalanced in the brain's biochemistry: diagnosing it will lead to proper medication and improvements. Ignoring it can be very dangerous. I repeat, there is nothing to be ashamed of, it is an illness that can hit anybody at any moment in time. I suffer from depression and handling it has helped me incredibly. You treat it, and you win,
If it is not depression, then you also win, because you have ruled out one hypothesis.
Yes it is detectable, if IT wants to, and they should be monitoring what software is installed on the work PC because of potential security issues. This means you could end up in trouble (including termination).