Agent LSP: AI Agent Code Refactoring with Stateful LSP Runtime