34 lines
1.5 KiB
Python
34 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
"""V107 - Add Orchestrator + Training + AllIA agents to catalog (doctrine #14 additif)"""
|
|
path = "/var/www/html/api/agents-catalog-api.php"
|
|
with open(path, "rb") as f:
|
|
raw = f.read()
|
|
|
|
if b"Multi-Agent Orchestrator" in raw:
|
|
print("ALREADY")
|
|
exit(0)
|
|
|
|
# Find end of CORE agents block - insert before "// OH-MY-CLAUDECODE"
|
|
marker = b' \n // OH-MY-CLAUDECODE AGENTS (19)'
|
|
if marker not in raw:
|
|
# Try alt marker
|
|
marker = b'// OH-MY-CLAUDECODE AGENTS (19)'
|
|
|
|
if marker not in raw:
|
|
print("MARKER NOT FOUND")
|
|
exit(1)
|
|
|
|
# New agents (doctrine #14 additif pur)
|
|
new_agents = b''' ["name"=>"Multi-Agent Orchestrator","desc"=>"15 agents parallel SSE, V102 regex, natural language V103","cat"=>"core","status"=>"ready","icon"=>""],
|
|
["name"=>"Training Hub","desc"=>"Fine-tune HF yace222/weval-brain-v4, Qdrant KB, cognitive-opus46 635 functions","cat"=>"core","status"=>"ready","icon"=>""],
|
|
["name"=>"All-IA Hub","desc"=>"Combines wevia-master + wevcode + arena + opus-replacement streaming","cat"=>"core","status"=>"ready","icon"=>""],
|
|
["name"=>"WEVIA Master Streaming","desc"=>"SSE getReader timeout 1h, multi-agent, tool exec, session+files","cat"=>"core","status"=>"ready","icon"=>""],
|
|
["name"=>"Arena Multi-Provider","desc"=>"14 providers cascade: cerebras/groq/gemini/sambanova/nvidia/mistral/hf/openrouter/github/cf","cat"=>"core","status"=>"ready","icon"=>""],
|
|
|
|
'''
|
|
|
|
raw = raw.replace(marker, new_agents + marker, 1)
|
|
with open(path, "wb") as f:
|
|
f.write(raw)
|
|
print(f"PATCHED size={len(raw)}")
|