feature/ariadne #11

Merged
bstein merged 416 commits from feature/ariadne into main 2026-01-28 14:05:40 +00:00
Showing only changes of commit 270dc93966 - Show all commits

View File

@ -335,7 +335,11 @@ def _has_any(text: str, phrases: tuple[str, ...]) -> bool:
return any(p in text for p in phrases) return any(p in text for p in phrases)
def _detect_operation(q: str) -> str | None: def _detect_operation(q: str) -> str | None:
if _has_any(q, OPERATION_HINTS["top"]):
return "top"
for op, phrases in OPERATION_HINTS.items(): for op, phrases in OPERATION_HINTS.items():
if op == "top":
continue
if _has_any(q, phrases): if _has_any(q, phrases):
return op return op
return None return None