updates on the airegistry and controllers and test files are been integrated
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 }{
|
||||
|
||||
Reference in New Issue
Block a user