Files
kandev/apps/backend/internal/agent/controller/errors.go
T
jcfs 0b8cd401c2 refactor: unify WebSocket patterns to Pattern A (handlers + controller + dto)
- Add missing repository action constants to pkg/websocket/actions.go
- Update repository_handlers.go to use action constants instead of string literals
- Refactor orchestrator module: create dto/, controller/, handlers/ packages
- Refactor agent module: create dto/, controller/, handlers/ packages
- Update main.go and integration tests to use new Pattern A wiring
- Remove old wshandlers/ directories from both modules

All modules now follow the same architecture:
  handlers/    → Parse WS messages, validate, call controller
  controller/  → Business logic coordination, convert to/from DTOs
  dto/         → Centralized request/response Data Transfer Objects
  service/     → Core business logic (unchanged)
2026-01-11 22:51:43 +00:00

16 lines
451 B
Go

package controller
import "errors"
var (
// ErrLifecycleManagerNotAvailable is returned when lifecycle manager is nil
ErrLifecycleManagerNotAvailable = errors.New("agent lifecycle manager not available")
// ErrRegistryNotAvailable is returned when registry is nil
ErrRegistryNotAvailable = errors.New("agent registry not available")
// ErrAgentNotFound is returned when agent is not found
ErrAgentNotFound = errors.New("agent not found")
)