Name each entry shape written_by_human checks, and annotate every parameter in loop_claude
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
from loop_claude import human_needed
|
||||
from loop_claude.claude_code.transcript import human_turns, read
|
||||
from loop_claude.claude_code.trust import trust
|
||||
from loop_claude.effects import Effects
|
||||
from loop_claude.outcome import Failure, Stop
|
||||
from loop_claude.paths import Paths
|
||||
from loop_claude.project.checkout import checkouts
|
||||
|
||||
TO = "answer the question above"
|
||||
|
||||
|
||||
def interrupt(root, session_id, model, path, question, paths, effects: Effects) -> Stop | None:
|
||||
def interrupt(root: str, session_id: uuid.UUID, model: str, path: str, question: str, paths: Paths, effects: Effects) -> Stop | None:
|
||||
print(f"\n{question}", file=sys.stderr)
|
||||
if stop := human_needed.off_terminal(TO, effects.on_terminal()):
|
||||
return stop
|
||||
|
||||
Reference in New Issue
Block a user