55 lines
3.3 KiB
PHP
55 lines
3.3 KiB
PHP
<?php
|
|
// manager-agents.php - Liste des agents WEVAL
|
|
header("Content-Type: application/json; charset=utf-8");
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
|
$agents = [
|
|
["id" => "wevia", "name" => "WEVIA", "status" => "active", "color" => "#a855f7"],
|
|
["id" => "wedroid", "name" => "WEDROID", "status" => "active", "color" => "#ef4444"],
|
|
["id" => "wevcode", "name" => "WEVCODE", "status" => "active", "color" => "#10b981"],
|
|
["id" => "wevia_life", "name" => "WEVIA Life", "status" => "active", "color" => "#f59e0b"],
|
|
["id" => "bladerazor", "name" => "BladeRazor", "status" => "active", "color" => "#06b6d4"],
|
|
["id" => "ethica", "name" => "Ethica", "status" => "active", "color" => "#ec4899"],
|
|
["id" => "tech_advisor", "name" => "Tech Advisor", "status" => "active", "color" => "#8b5cf6"],
|
|
["id" => "data_analyst", "name" => "Data Analyst", "status" => "active", "color" => "#3b82f6"],
|
|
["id" => "meditron", "name" => "Meditron", "status" => "active", "color" => "#14b8a6"],
|
|
["id" => "deerflow", "name" => "DeerFlow", "status" => "active", "color" => "#f97316"]
|
|
];
|
|
|
|
$capabilities = [
|
|
["id" => "kb", "name" => "KB", "category" => "core", "active" => true],
|
|
["id" => "git", "name" => "GIT", "category" => "core", "active" => true],
|
|
["id" => "infra", "name" => "INFRA", "category" => "core", "active" => true],
|
|
["id" => "sql", "name" => "SQL", "category" => "data", "active" => true],
|
|
["id" => "crm", "name" => "CRM", "category" => "data", "active" => true],
|
|
["id" => "deerflow", "name" => "DeerFlow", "category" => "research", "active" => true],
|
|
["id" => "nuclei", "name" => "Nuclei", "category" => "security", "active" => true],
|
|
["id" => "playwright", "name" => "Playwright", "category" => "test", "active" => true],
|
|
["id" => "harvester", "name" => "Harvester", "category" => "data", "active" => false],
|
|
["id" => "coderabbit", "name" => "CodeRabbit", "category" => "code", "active" => false],
|
|
["id" => "mattermost", "name" => "Mattermost", "category" => "comm", "active" => true],
|
|
["id" => "searxng", "name" => "SearXNG", "category" => "research", "active" => true],
|
|
["id" => "toolfk", "name" => "ToolFK", "category" => "utility", "active" => true],
|
|
["id" => "pdf", "name" => "PDF", "category" => "doc", "active" => true],
|
|
["id" => "consensus", "name" => "Consensus", "category" => "core", "active" => true],
|
|
["id" => "chain", "name" => "Chain", "category" => "core", "active" => true],
|
|
["id" => "code", "name" => "Code", "category" => "code", "active" => true],
|
|
["id" => "sequences", "name" => "Sequences", "category" => "core", "active" => false],
|
|
["id" => "wevads", "name" => "WEVADS", "category" => "biz", "active" => false],
|
|
["id" => "wevia_plus", "name" => "WEVIA+", "category" => "biz", "active" => false],
|
|
["id" => "n8n", "name" => "n8n", "category" => "automation", "active" => false],
|
|
["id" => "hermes", "name" => "Hermes", "category" => "comm", "active" => false]
|
|
];
|
|
|
|
echo json_encode([
|
|
"agents" => $agents,
|
|
"capabilities" => $capabilities,
|
|
"stats" => [
|
|
"agents_total" => count($agents),
|
|
"agents_active" => count(array_filter($agents, fn($a) => $a["status"] === "active")),
|
|
"capabilities_total" => count($capabilities),
|
|
"capabilities_active" => count(array_filter($capabilities, fn($c) => $c["active"])),
|
|
],
|
|
"timestamp" => date("c")
|
|
]);
|