feat(self-meta-intent): self_meta intent ajoute dans wevia-master-api.php - retourne registry count + priority intents NL + OSS exec + brain JSONs + plugins + DeerFlow + doctrines + crons - guard early-primary - tool=self_meta_real - architecture pipeline display - bonus root cause fix toolhub_count Python broken cmd dans /opt/wevia-brain/wevia-tool-registry.json - replace par jq clean output - now retourne TOOLHUB v7.4 count=375 tools_array=375 OK
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
This commit is contained in:
@@ -576,6 +576,50 @@ if (!empty($_mam)) {
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
// === SELF_META INTENT (22avr Opus - vrai count tools) ===
|
||||
if (preg_match('/\b(?:self[_\s-]?meta|tool[s]?[_\s-]?count|combien.*tool|tools[\s_]?meta|capabilities[_\s-]?count|stats?\s+(?:wevia|master|tools)|tu\s+as\s+combien)\b/iu', $__bm)) {
|
||||
$__sm = [];
|
||||
$__sm[] = "=== WEVIA MASTER SELF_META ===";
|
||||
// Tool registry count
|
||||
$__reg = @file_get_contents('/opt/wevia-brain/wevia-tool-registry.json');
|
||||
if ($__reg) {
|
||||
$__rj = json_decode($__reg, true);
|
||||
$__sm[] = "Tool registry: v" . ($__rj['v'] ?? '?') . " · count=" . ($__rj['count'] ?? '?') . " · array_size=" . count($__rj['tools'] ?? []);
|
||||
} else { $__sm[] = "Tool registry: NOT FOUND"; }
|
||||
// Priority intents NL
|
||||
$__pi = trim(@shell_exec('wc -l < /opt/wevia-brain/priority-intents-nl.json 2>/dev/null'));
|
||||
$__sm[] = "Priority intents NL: " . ($__pi ?: '?') . " lines";
|
||||
// OSS exec registry
|
||||
$__oss = trim(@shell_exec('cat /opt/wevia-brain/oss-exec-registry.json 2>/dev/null | python3 -c "import sys,json; d=json.load(sys.stdin); print(len(d) if isinstance(d,(list,dict)) else 0)" 2>/dev/null'));
|
||||
$__sm[] = "OSS exec registry tools: " . ($__oss ?: '?');
|
||||
// Brain JSONs
|
||||
$__bj = trim(@shell_exec('find /opt/wevia-brain -maxdepth 2 -name "*.json" 2>/dev/null | wc -l'));
|
||||
$__sm[] = "Brain knowledge JSONs: " . ($__bj ?: '?');
|
||||
// Top-IA scripts
|
||||
$__ti = trim(@shell_exec('ls /opt/weval-ops/top-ia/ 2>/dev/null | wc -l'));
|
||||
$__sm[] = "Top-IA scripts: " . ($__ti ?: '?');
|
||||
// Plugins
|
||||
$__pl = trim(@shell_exec('find /opt/weval-plugins -maxdepth 2 -type d 2>/dev/null | wc -l'));
|
||||
$__sm[] = "Plugins dirs: " . ($__pl ?: '?');
|
||||
// DeerFlow skills
|
||||
$__df = trim(@shell_exec('find /opt/deer-flow -name "*.py" 2>/dev/null | wc -l'));
|
||||
$__sm[] = "DeerFlow Python scripts: " . ($__df ?: '?');
|
||||
// Doctrines
|
||||
$__dc = trim(@shell_exec('ls /var/www/html/wiki/doctrine-*.md 2>/dev/null | wc -l'));
|
||||
$__sm[] = "Doctrines wiki: " . ($__dc ?: '?');
|
||||
// Crons WEVIA
|
||||
$__cr = trim(@shell_exec('ls /etc/cron.d/wevia* 2>/dev/null | wc -l'));
|
||||
$__sm[] = "Active WEVIA crons: " . ($__cr ?: '?');
|
||||
$__sm[] = "";
|
||||
$__sm[] = "=== ARCHITECTURE ===";
|
||||
$__sm[] = "S204 nginx PHP-FPM dual-pool · S95 PMTA email PostgreSQL · 0eur month all sovereign";
|
||||
$__sm[] = "Pipeline: nl-priority(80) -> pareto -> fast-path-v3 -> opus-intents(66) -> conv-guard -> arena -> dynamic-resolver -> wave200 -> gap-intents -> master-router -> LLM";
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(['provider'=>'opus-early-guard','content'=>implode("\n", $__sm),'tool'=>'self_meta_real','source'=>'early-guard-primary']);
|
||||
exit;
|
||||
}
|
||||
|
||||
// === END OPUS_BUSINESS_COUNT_GUARD_17AVR ===
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user