updates on the airegistry and controllers and test files are been integrated

This commit is contained in:
2026-09-30 16:38:34 +05:30
parent 0ac5d3d54f
commit cb3108ffdb
5 changed files with 127 additions and 0 deletions

View File

@@ -465,6 +465,9 @@ func RegisterRoutes(app *fiber.App, cfg *config.Config) {
// from agent_decisions, live heartbeat from Redis. Read-only.
aiRegistry.Get("/insights", controllers.GetAIInsights)
aiRegistry.Get("/decisions", controllers.GetAIDecisions)
// What is actually wired (engine reading the registry, Test tab model), for
// the Skills & Tools banner.
aiRegistry.Get("/status", controllers.GetAIStatus)
// Test tab (Phase 6): one prompt through Claude with a skill's tools. Reads
// run redacted; writes only become proposals. Admin only — every run is a
// paid API call — and rate-limited per user in the handler.

View File

@@ -35,6 +35,7 @@ var aiReads = []string{
"/api/v1/admin/ai/insights",
"/api/v1/admin/ai/insights?days=30",
"/api/v1/admin/ai/decisions",
"/api/v1/admin/ai/status",
}
var aiWrites = []struct{ method, path, body string }{