Name loop_claude's modules and words by what each holds, explain the reload, and tie each exit-1 clause of --help to its Stop
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
"""A loop runs unattended for hours, often on its own checkout: a reload puts an edit to loop-claude to work at the next cycle without the human rerunning it."""
|
||||
import dataclasses
|
||||
import hashlib
|
||||
import json
|
||||
@@ -6,7 +7,7 @@ import sys
|
||||
import typing
|
||||
|
||||
from loop_claude.effects import Effects
|
||||
from loop_claude.outcome import Stop
|
||||
from loop_claude.stop import Stop
|
||||
|
||||
RELOAD_FLAG = "--reloaded"
|
||||
T = typing.TypeVar("T")
|
||||
@@ -15,7 +16,7 @@ T = typing.TypeVar("T")
|
||||
# A field change stops a running loop at its next reload: the new script rejects the old fields.
|
||||
@dataclasses.dataclass(frozen=True)
|
||||
class LoopRun:
|
||||
"""One loop-claude run; a reload hands it to the new script as JSON on argv."""
|
||||
"""What a reload hands the edited script, as JSON on argv: the cycle number, checkout root and task."""
|
||||
cycle_number: int
|
||||
root: str
|
||||
task: str
|
||||
|
||||
Reference in New Issue
Block a user