Move the judge, the interrupt, trust and model resolution into their own modules

This commit is contained in:
2026-09-28 16:42:32 +02:00
parent 5e773f8460
commit b0afcfab57
12 changed files with 315 additions and 256 deletions
+13
View File
@@ -0,0 +1,13 @@
import sys
from loop_claude.outcome import Stop
def needed(to, but):
return Stop(2, f"the human is needed to {to}, but {but}")
def off_terminal(to):
if sys.stdin.isatty() and sys.stdout.isatty():
return None
return needed(to, "stdin or stdout is not a terminal")