Files
admin b52318eeae 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>
2026-01-28 00:27:56 +04:00

22 lines
542 B
Python

from prometheus.utils.str_util import (
pre_append_line_numbers,
)
def test_single_line():
text = "Hello world"
result = pre_append_line_numbers(text, start_line=1)
assert result == "1. Hello world"
def test_multiple_lines():
text = "First line\nSecond line\nThird line"
result = pre_append_line_numbers(text, start_line=1)
assert result == "1. First line\n2. Second line\n3. Third line"
def test_empty_string():
text = ""
result = pre_append_line_numbers(text, start_line=1)
assert result == ""