Software companies once sold themselves as the indispensable layer between workers and work. Now, artificial intelligence is threatening to slip underneath them — or replace them outright.