vision-language-service.js is becoming a "God Object." To improve maintainability and QoS (Quality of Service), we need to decouple its internal logic.
Proposed Architecture:
Split the file into the following modules:
core-inference.js: Pure model interaction.
processing.js: Pre-processing and post-processing logic.
telemetry.js: QoS and performance monitoring.
plugins/qr-service.js: Specialized logic like QR code handling.