24 Commits

Author SHA1 Message Date
9cc29c2329 feat: include ai-gateway in Dockerfiles for discord-bot and ha-gateway
All checks were successful
CI / test (push) Successful in 5s
CI / build-ai-gateway (push) Successful in 49s
CI / build-ha-gateway (push) Successful in 56s
CI / build-discord-bot (push) Successful in 48s
2026-04-21 21:59:45 +09:00
5d732405b8 feat: integrate AI gateway for free-form queries in discord-bot
Some checks failed
CI / test (push) Successful in 34s
CI / build-ai-gateway (push) Successful in 2m34s
CI / build-ha-gateway (push) Failing after 23s
CI / build-discord-bot (push) Failing after 25s
2026-04-21 21:52:41 +09:00
520f5d1ffb feat: add ai-gateway microservice with gRPC API for AI logic
Some checks failed
CI / build-ai-gateway (push) Has been cancelled
CI / build-ha-gateway (push) Has been cancelled
CI / build-discord-bot (push) Has been cancelled
CI / test (push) Has been cancelled
- Implemented new gRPC service `AIService` in `proto/ai/v1/ai.proto` for handling natural language queries.
- Generated Go code for the gRPC service and messages in `gen/ai/v1/`.
- Created `services/ai-gateway/` directory structure with necessary files for the service.
- Added configuration loading and structured logging.
- Implemented domain logic for intent parsing and interaction with Home Assistant.
- Established outbound adapters for Ollama and Home Assistant with mTLS support.
- Updated `go.work` to include the new service and maintain existing dependencies.
- Modified `discord-bot` to use the new `ai-gateway` for AI interactions.
- Added deployment manifest for Kubernetes and CI/CD configuration for building and deploying the service.
2026-04-21 21:52:28 +09:00
fb62076fbc Add gRPC tests for entity and light services
All checks were successful
CI / test (push) Successful in 5s
CI / build-ha-gateway (push) Successful in 44s
CI / build-discord-bot (push) Successful in 46s
- Implement tests for the Entity gRPC service, covering GetState and ListStates methods.
- Create tests for the Light gRPC service, including TurnOn, TurnOff, Toggle, and ListLights methods.
- Introduce mock service implementations to simulate behavior and validate interactions.
- Add logging interceptor tests to ensure proper logging levels based on handler errors.
- Develop application layer tests for entity and light functionalities, ensuring correct state management and error propagation.
2026-04-09 23:12:04 +09:00
c581e79434 feat: add mTLS support and TLS directory configuration for ha-gateway and discord-bot
All checks were successful
CI / test (push) Successful in 5s
CI / build-ha-gateway (push) Successful in 48s
CI / build-discord-bot (push) Successful in 40s
2026-04-09 22:34:22 +09:00
c918c8674a feat: set process-wide default logger for discord-bot
All checks were successful
CI / test (push) Successful in 4s
CI / build-ha-gateway (push) Successful in 59s
CI / build-discord-bot (push) Successful in 48s
2026-04-09 06:09:44 +09:00
551a38db24 feat: update OpenTelemetry dependencies in go.mod for discord-bot and ha-gateway
All checks were successful
CI / test (push) Successful in 3s
CI / build-ha-gateway (push) Successful in 43s
CI / build-discord-bot (push) Successful in 49s
2026-04-09 06:04:11 +09:00
6ea4e84949 Enhance Discord bot and HA gateway with improved structure and documentation
All checks were successful
CI / test (push) Successful in 4s
CI / build-ha-gateway (push) Successful in 1m7s
CI / build-discord-bot (push) Successful in 51s
- Added detailed comments to clarify the purpose of various functions and types in the Discord bot and HA gateway.
- Introduced new methods in the CommandApp for handling light and switch operations, including HandleLightOn, HandleLightOff, HandleLightToggle, and their respective autocomplete functions.
- Updated the HAClient interface to include methods for fetching states and calling services, enhancing the interaction with Home Assistant.
- Improved the structure of entity and light domain models to include additional attributes and clearer documentation.
- Implemented logging enhancements in both the Discord bot and HA gateway to ensure better traceability and context in logs.
- Refactored the configuration loading process to streamline environment variable handling and defaults.
- Stubbed out switch control methods in the gRPC adapter, indicating future implementation plans.
- Enhanced telemetry setup to ensure proper initialization and shutdown procedures for observability.
2026-04-09 06:00:59 +09:00
b5592a1705 feat: enhance telemetry setup and command tracing in discord-bot and ha-gateway
All checks were successful
CI / test (push) Successful in 9s
CI / build-ha-gateway (push) Successful in 2m17s
CI / build-discord-bot (push) Successful in 59s
2026-04-09 05:18:47 +09:00
1d3e223dbb feat: implement structured logging and error handling in discord-bot
All checks were successful
CI / test (push) Successful in 4s
CI / build-ha-gateway (push) Successful in 1m7s
CI / build-discord-bot (push) Successful in 47s
2026-04-09 05:06:38 +09:00
4186f864f9 Added new .env.example parameter
All checks were successful
CI / test (push) Successful in 3s
CI / build-ha-gateway (push) Successful in 49s
CI / build-discord-bot (push) Successful in 46s
2026-04-07 23:01:02 +09:00
dc0476eead feat: implement structured logging and enhance error handling in HA client and gRPC server
All checks were successful
CI / test (push) Successful in 5s
CI / build-ha-gateway (push) Successful in 59s
CI / build-discord-bot (push) Successful in 59s
2026-04-07 22:32:29 +09:00
d6236d70b9 feat: update README.md to enhance project overview and clarify service architecture
All checks were successful
CI / test (push) Successful in 4s
CI / build-ha-gateway (push) Successful in 1m2s
CI / build-discord-bot (push) Successful in 45s
2026-04-07 08:13:05 +09:00
7a0b0f1540 feat: add health check service to gRPC server
All checks were successful
CI / test (push) Successful in 3s
CI / build-ha-gateway (push) Successful in 52s
CI / build-discord-bot (push) Successful in 45s
2026-04-06 21:17:21 +09:00
5f0ae449b2 feat: add .dockerignore file and update Dockerfile to include discord-bot directory
All checks were successful
CI / test (push) Successful in 4s
CI / build-ha-gateway (push) Successful in 55s
CI / build-discord-bot (push) Successful in 43s
2026-04-06 20:49:51 +09:00
066224715a feat: add environment variables for Go caching in CI workflow
Some checks failed
CI / test (push) Successful in 26s
CI / build-ha-gateway (push) Failing after 2m28s
CI / build-discord-bot (push) Failing after 7s
2026-04-06 20:37:50 +09:00
854f19c11b feat: enable manual triggering of CI workflow
Some checks failed
CI / test (push) Failing after 51s
CI / build-ha-gateway (push) Has been skipped
CI / build-discord-bot (push) Has been skipped
2026-04-06 20:35:45 +09:00
97f9f5350e feat: add CI workflow for testing and building ha-gateway and discord-bot
Some checks failed
CI / test (push) Failing after 9s
CI / build-ha-gateway (push) Has been skipped
CI / build-discord-bot (push) Has been skipped
2026-04-06 20:29:37 +09:00
94ab7ea42b feat(discord-bot): implement Discord command handler and register commands for light and switch control
- Added command handler for processing Discord interactions related to lights and switches.
- Implemented command registration for light control commands: list, on, off, and toggle.
- Created a gRPC client for communicating with the home automation gateway.
- Developed application logic for handling light and switch commands, including listing, turning on/off, and toggling lights.
- Introduced telemetry setup for OpenTelemetry integration.
- Added configuration loading for Discord token, gateway address, and OpenTelemetry endpoint.
- Defined core driven ports for interacting with the home automation gateway.
2026-04-06 20:13:15 +09:00
a03d707904 feat: enable gRPC reflection for service registration 2026-04-06 19:32:30 +09:00
abb6774b77 feat: implement SwitchService with ListSwitches method
- Added ListSwitches method to SwitchService in switch_grpc.pb.go.
- Implemented SwitchGRPC adapter for ListSwitches in switch.go.
- Created SwitchApp for managing switch states and added ListSwitches logic.
- Updated core domain with Switch struct and associated methods.
- Enhanced LightApp to include ListLights functionality.
- Updated protobuf definitions for Switch and Light services to include new request and response messages.
- Introduced error handling for unimplemented methods in the gRPC server.
2026-04-06 19:25:06 +09:00
2e99c464ff Added new app, ha-gateway 2026-03-25 19:52:15 +09:00
3d9690e939 Added gitignore 2026-03-25 19:51:34 +09:00
9bab03cf45 first commit 2026-03-25 19:35:19 +09:00