Rename loop-claude to build-release, with no alias
This commit is contained in:
@@ -79,7 +79,7 @@ class Route:
|
||||
return WorkerLine(json.dumps({name: value for name, value in fields.items() if value}))
|
||||
|
||||
|
||||
# The Route fields a worker line holds beside the rung's model and effort. A human reads the line in the archive, so it is flatter than the JSON a reload hands over (loop_claude/loop/reload.py) and leaves out zeros. It leaves out unfinished, so a rerun restarts that count.
|
||||
# The Route fields a worker line holds beside the rung's model and effort. A human reads the line in the archive, so it is flatter than the JSON a reload hands over (build_release/loop/reload.py) and leaves out zeros. It leaves out unfinished, so a rerun restarts that count.
|
||||
WORKER_LINE_FIELDS = tuple(field.name for field in dataclasses.fields(Route) if field.name not in ("rung", "unfinished"))
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ def route_from(worker: str) -> Route | None:
|
||||
|
||||
|
||||
def route_of(fields: object) -> Route | None:
|
||||
"""The route these fields of a worker line name, with an unfinished count of 0; None for fields Route.worker_line could not have written. A reload decodes its route through it too (loop_claude/loop/reload.py), so Route has one decoder."""
|
||||
"""The route these fields of a worker line name, with an unfinished count of 0; None for fields Route.worker_line could not have written. A reload decodes its route through it too (build_release/loop/reload.py), so Route has one decoder."""
|
||||
if not isinstance(fields, dict) or not fields.keys() <= {"model", "effort", *WORKER_LINE_FIELDS}:
|
||||
return None
|
||||
if not isinstance(fields.get("model"), str) or not isinstance(fields.get("effort", ""), str):
|
||||
|
||||
Reference in New Issue
Block a user