refactor: extract AI prompt templates into dedicated module}
* Move prompt generation logic from redis-query.mjs to new ai/prompt.mjs module
* Create reusable prompt template system for AI interactions
* Update build workflow configuration for new module structure
* Update project dependencies in package.json
* Regenerate yarn.lock with updated dependencies
* Reduce socket.io request handler complexity by 400+ lines