22 lines
1.1 KiB
PHP
22 lines
1.1 KiB
PHP
<?php
|
|
header('Content-Type: application/json; charset=utf-8');
|
|
// DeerFlow = notre outil research agent open-source adapté WEVAL
|
|
$skills = @glob('/opt/deer-flow/skills/*') ?: [];
|
|
$skills_dirs = array_filter($skills, 'is_dir');
|
|
$config_path = '/opt/deer-flow/';
|
|
$out = [
|
|
'ok' => true,
|
|
'ts' => date('c'),
|
|
'module' => 'DeerFlow',
|
|
'tagline' => 'Research agent open-source customisé WEVAL',
|
|
'path' => $config_path,
|
|
'skills_count' => count($skills_dirs),
|
|
'skills_list' => array_map('basename', $skills_dirs),
|
|
'commit' => trim(shell_exec('cd /opt/deer-flow && git log --oneline -1 2>/dev/null') ?: 'no-git'),
|
|
'systemd_status' => trim(shell_exec("systemctl list-units --type=service --state=running --no-pager --no-legend 2>/dev/null | grep -iE 'deer|research' | head -3") ?: 'no systemd service found'),
|
|
'usage' => 'DeerFlow est utilisé pour research agent autonome · cascade SambaNova primary → Groq → Cerebras',
|
|
'triggers_in_wevia' => 'deerflow · research agent · tendances research · deep research',
|
|
'related_apis' => ['/api/openclaw-proxy.php','/api/wevia-master-api.php']
|
|
];
|
|
echo json_encode($out, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|