(user_input)
| 70 | |
| 71 | |
| 72 | def handle_command(user_input): |
| 73 | cleaned = normalize_text(user_input) |
| 74 | if wants_developer_mode(user_input): |
| 75 | state.set_developer_mode(True) |
| 76 | return "Developer mode enabled. I will print prompts, raw AI outputs, and token usage when available." |
| 77 | if wants_normal_mode(user_input): |
| 78 | state.set_developer_mode(False) |
| 79 | return "Developer mode disabled." |
| 80 | if cleaned in {"help", "/help", "yardim", "yardım"}: |
| 81 | return help_text() |
| 82 | if cleaned in {"clear memory", "memory clear", "hafizayi temizle", "hafızayı temizle"}: |
| 83 | clear_memory() |
| 84 | return "Memory cleared." |
| 85 | if cleaned.startswith("/apps"): |
| 86 | query = user_input[5:].strip() |
| 87 | matches = search_apps(query) |
| 88 | return "Matching apps: " + (", ".join(matches) if matches else "none found") |
| 89 | return handle_user_text(user_input) |
| 90 | |
| 91 | |
| 92 | def handle_and_say(user_input): |
no test coverage detected