Answer the architecture pass's first round
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
import json
|
||||
|
||||
from loop_claude.claude_code.entries import assistant_parts, human_text, parse, part_text, tool_call
|
||||
from loop_claude.claude_code.entries import assistant_parts, human_text, parse_entry, part_text, tool_call
|
||||
from loop_claude.failure import Failure
|
||||
|
||||
JUDGED_TOOL_INPUT = 400
|
||||
|
||||
|
||||
def read(path: str) -> list[dict] | Failure:
|
||||
def read_transcript(path: str) -> list[dict] | Failure:
|
||||
try:
|
||||
with open(path, "rb") as handle:
|
||||
return [entry for raw in handle if (entry := parse(raw))]
|
||||
return [entry for raw in handle if (entry := parse_entry(raw))]
|
||||
except OSError as failure:
|
||||
return Failure(f"could not read the transcript {path}: {failure.strerror}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user