Files
html/api/wevia-architecture-hooks.php
2026-04-12 22:57:03 +02:00

20 lines
595 B
PHP

<?php
// WEVIA Architecture Hooks v1.0
if (!isset($msg) || empty($msg)) return;
// Agent dispatch (oh-my-claudecode 19 agents)
if (function_exists('wevia_agent_dispatch')) {
$__ag = wevia_agent_dispatch($msg);
if (!empty($__ag['active']) && !empty($__ag['system_prompt'])) {
$msg = "[AGENT:{$__ag['agent']}] " . $msg;
}
}
// SuperClaude /sc: commands
if (function_exists('wevia_sc_command') && strpos($msg, '/sc:') !== false) {
$__sc = wevia_sc_command($msg);
if ($__sc) {
$msg = "[MODE:{$__sc['mode']}] " . str_replace($__sc['command'], '', $msg);
}
}