feat: Add intelligent auto-router and enhanced integrations

- Add intelligent-router.sh hook for automatic agent routing
- Add AUTO-TRIGGER-SUMMARY.md documentation
- Add FINAL-INTEGRATION-SUMMARY.md documentation
- Complete Prometheus integration (6 commands + 4 tools)
- Complete Dexto integration (12 commands + 5 tools)
- Enhanced Ralph with access to all agents
- Fix /clawd command (removed disable-model-invocation)
- Update hooks.json to v5 with intelligent routing
- 291 total skills now available
- All 21 commands with automatic routing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
admin
2026-01-28 00:27:56 +04:00
Unverified
parent 3b128ba3bd
commit b52318eeae
1724 changed files with 351216 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
from prometheus.utils.issue_util import (
format_issue_comments,
format_issue_info,
format_test_commands,
)
def test_format_issue_comments():
comments = [
{"username": "alice", "comment": "This looks good!"},
{"username": "bob", "comment": "Can we add tests?"},
]
result = format_issue_comments(comments)
expected = "alice: This looks good!\n\nbob: Can we add tests?"
assert result == expected
def test_format_issue_info():
title = "Bug in login flow"
body = "Users can't login on mobile devices"
comments = [
{"username": "alice", "comment": "I can reproduce this"},
{"username": "bob", "comment": "Working on a fix"},
]
result = format_issue_info(title, body, comments)
expected = """\
Issue title:
Bug in login flow
Issue description:
Users can't login on mobile devices
Issue comments:
alice: I can reproduce this
bob: Working on a fix"""
assert result == expected
def test_format_test_commands():
commands = ["pytest test_login.py", "pytest test_auth.py -v"]
result = format_test_commands(commands)
expected = "$ pytest test_login.py\n$ pytest test_auth.py -v"
assert result == expected