This commit is contained in:
2026-09-25 09:53:16 +05:30
parent 00317a00d8
commit db84a9a752
6 changed files with 317 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ type Facade struct {
CatalogueUploadController *controllers.CatalogueUploadController
ScanController *controllers.ScanController
AssistantController *controllers.AssistantController
HealthController *controllers.HealthController
MCPController *controllers.MCPController
// Tools is what Nearle Buddy is allowed to do.
@@ -189,6 +190,10 @@ func NewFacade(db *gorm.DB, catalogueDB *gorm.DB, embedder utils.Embedder, chat
}
assistantController := controllers.NewAssistantController(assistantService)
// What is running here. Unauthenticated, booleans only — see healthController.go
// for why a server that cannot say which build it is costs a day.
healthController := controllers.NewHealthController(assistantService, db != nil)
// The second door. Same registry, same agents, same session — see
// controllers/mcpController.go for why it is a door rather than a service.
mcpController := controllers.NewMCPController(toolRegistry, agents)
@@ -209,6 +214,7 @@ func NewFacade(db *gorm.DB, catalogueDB *gorm.DB, embedder utils.Embedder, chat
CatalogueUploadController: catalogueUploadController,
ScanController: scanController,
AssistantController: assistantController,
HealthController: healthController,
MCPController: mcpController,
Tools: toolRegistry,
posService: posService,