towerops/lib/towerops_web
Graham McIntire 9a6369bd27
Fix agent API protobuf support and Mix.env runtime error
Fixed two critical issues preventing agent communication:

1. Fix Mix.env() runtime error in production
   - Replace Mix.env() with Application.get_env(:towerops, :env)
   - Add :env config to test.exs
   - Mix module not available in production releases

2. Add Protocol Buffers support to agent API endpoints
   - GET /api/v1/agent/config now accepts application/x-protobuf
   - POST /api/v1/agent/heartbeat now accepts application/x-protobuf
   - Added conversion functions for config/equipment/sensors/interfaces
   - Maintains JSON backward compatibility as fallback

All agent controller tests passing (14 tests, 0 failures)
2026-01-14 16:35:47 -06:00
..
components Add Agents navigation link to authenticated layout 2026-01-13 13:14:23 -06:00
controllers Fix agent API protobuf support and Mix.env runtime error 2026-01-14 16:35:47 -06:00
live Enhance agent assignment UI with clear inheritance indicators 2026-01-14 16:20:20 -06:00
plugs Fix agent API protobuf support and Mix.env runtime error 2026-01-14 16:35:47 -06:00
endpoint.ex Fix health check logging with dynamic log level in endpoint 2026-01-06 13:57:32 -06:00
gettext.ex init 2025-12-21 11:10:43 -06:00
router.ex add remote agent setup 2026-01-09 13:15:31 -06:00
telemetry.ex format 2025-12-21 11:31:08 -06:00
user_auth.ex Streamline login flow and fix test failures 2026-01-13 13:08:24 -06:00