Commit Graph

4 Commits

Author SHA1 Message Date
Geutebruck API Developer
49b9fdfb81 Implement Server CRUD with bool type fix and auto-increment IDs
CRITICAL FIX: Changed boolean fields from int32 to bool type
- Enabled, DeactivateEcho, DeactivateLiveCheck now use proper bool type (type code 1)
- Previous int32 implementation (type code 4) caused servers to be written but not recognized by GeViSet
- Fixed field order to match working reference implementation

Server CRUD Implementation:
- Create, Read, Update, Delete operations via gRPC and REST API
- Auto-increment server ID logic to prevent conflicts
- Proper field ordering: Alias, DeactivateEcho, DeactivateLiveCheck, Enabled, Host, Password, User

Files Added/Modified:
- src/sdk-bridge/GeViScopeBridge/Services/ConfigurationServiceImplementation.cs (bool type fix, CRUD methods)
- src/sdk-bridge/Protos/configuration.proto (protocol definitions)
- src/api/routers/configuration.py (REST endpoints)
- src/api/protos/ (generated protobuf files)
- SERVER_CRUD_IMPLEMENTATION.md (comprehensive documentation)

Verified:
- Servers persist correctly in GeViSoft configuration
- Servers visible in GeViSet with correct boolean values
- Action mappings CRUD functional
- All test scripts working (server_manager.py, cleanup_to_base.py, add_claude_test_data.py)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 18:35:36 +01:00
Geutebruck API Developer
24a11cecdd feat: Add GeViSet file format reverse engineering specification
- Add comprehensive spec for .set file format parsing
- Document binary structure, data types, and sections
- Add research notes from binary analysis
- Fix SetupClient password encryption (GeViAPI_EncodeString)
- Add DiagnoseSetupClient tool for testing
- Successfully tested: read/write 281KB config, byte-perfect round-trip
- Found 64 action mappings in live server configuration

Next: Full binary parser implementation for complete structure

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-12 12:50:46 +01:00
Geutebruck API Developer
48fafae9d2 Phase 2 Complete: SDK Bridge Foundation (T011-T026)
Implemented complete C# gRPC service wrapping GeViScope SDK:

 gRPC Protocol Definitions (T011-T014):
- common.proto: Status, Error, Timestamp messages
- camera.proto: CameraService with ListCameras, GetCamera RPCs
- monitor.proto: MonitorService with ListMonitors, GetMonitor RPCs
- crossswitch.proto: CrossSwitchService with ExecuteCrossSwitch, ClearMonitor, GetRoutingState, HealthCheck RPCs

 SDK Wrapper Classes (T015-T021):
- GeViDatabaseWrapper.cs: Connection lifecycle with retry logic (3 attempts, exponential backoff)
- StateQueryHandler.cs: GetFirst/GetNext enumeration pattern for cameras/monitors
- ActionDispatcher.cs: CrossSwitch and ClearVideoOutput action execution
- ErrorTranslator.cs: SDK errors → gRPC status codes → HTTP status codes

 gRPC Service Implementations (T022-T026):
- CameraService.cs: List/get camera information from GeViServer
- MonitorService.cs: List/get monitor/viewer information from GeViServer
- CrossSwitchService.cs: Execute cross-switching, clear monitors, query routing state
- Program.cs: gRPC server with Serilog logging, dependency injection
- appsettings.json: GeViServer connection configuration

Key Features:
- Async/await pattern throughout
- Comprehensive error handling and logging
- In-memory routing state tracking
- Health check endpoint
- Connection retry with exponential backoff
- Proper resource disposal

Architecture:
FastAPI (Python) ←gRPC→ SDK Bridge (C# .NET 8.0) ←SDK→ GeViServer

Ready for Phase 3: Python API Foundation

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 08:38:20 +01:00
Geutebruck API Developer
733b3b924a Phase 1 Complete: Project Setup & Configuration
Completed Tasks (T001-T010):
-  Project structure created (src/, tests/, docs/, scripts/)
-  Python dependencies defined (requirements.txt)
-  C# SDK Bridge project initialized (.csproj)
-  Configuration template (.env.example)
-  Database migration config (alembic.ini)
-  Code quality tools (pyproject.toml with ruff, black, mypy)
-  Development setup script (setup_dev_environment.ps1)
-  Service startup script (start_services.ps1)
-  Architecture documentation (docs/architecture.md)
-  Revised MVP tasks (tasks-revised-mvp.md - 84 tasks focused on cross-switching)

MVP Scope Refined:
- Focus: Cross-switching control for GSCView viewers
- NO recordings, NO analytics, NO LPR in MVP
- REST API only, no UI needed
- Phase 2: GeViSet configuration management

Ready for Phase 2: SDK Bridge Foundation

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 08:25:26 +01:00