Anthropic, one of the world’s leading artificial intelligence companies, on Monday made public its plans to sell shares on the stock market, revealing soaring sales but also potentially dire safety risks in a major test of whether the AI boom can deliver profits.