Name human_needed.py for the exit-2 stops it holds
This commit was merged in pull request #126.
This commit is contained in:
@@ -2,7 +2,7 @@ import dataclasses
|
||||
import json
|
||||
import sys
|
||||
|
||||
from loop_claude import human
|
||||
from loop_claude import human_needed
|
||||
from loop_claude.claude_code.formats import catalog
|
||||
from loop_claude.file_writes import replace_json
|
||||
from loop_claude.outcome import Stop
|
||||
@@ -58,7 +58,7 @@ def read_models(saved):
|
||||
|
||||
|
||||
def ask_model(name, saved, folder):
|
||||
if stop := human.off_terminal(f"pick {name}'s model, or merge {{\"{name}\": \"<model>\"}} into {saved}"):
|
||||
if stop := human_needed.off_terminal(f"pick {name}'s model, or merge {{\"{name}\": \"<model>\"}} into {saved}"):
|
||||
return stop
|
||||
offered = catalog(folder)
|
||||
print(f"\nThe model to run {name} on, saved in {saved}:", file=sys.stderr)
|
||||
@@ -71,7 +71,7 @@ def ask_model(name, saved, folder):
|
||||
answer = input(f"{'A number, or any' if offered else 'A'} name claude --model takes: ").strip()
|
||||
except EOFError:
|
||||
print(file=sys.stderr)
|
||||
return human.needed(f"pick {name}'s model", "the input ended")
|
||||
return human_needed.stop(f"pick {name}'s model", "the input ended")
|
||||
if not answer:
|
||||
continue
|
||||
if not (offered and answer.isdecimal()):
|
||||
|
||||
Reference in New Issue
Block a user