Files
claude-config/bin/loop_claude/loop/this_loop.py
T

24 lines
767 B
Python

import dataclasses
import pathlib
import typing
from loop_effects.effects import Effects
from loop_state.running_loops import Listed
from loop_state.paths import Paths
from claude_code.session import Session
@dataclasses.dataclass(frozen=True)
class Loop:
"""One run of loop-claude, as it stays from its first cycle to its last; run_loop builds it once."""
# The checkout the loop runs in. LoopRun.root names it too, since a reload hands it on there.
root: str
# The worker's session, under whose id loop-inbox lists the loop and its questions.
session: Session
listed: Listed
paths: Paths
env: typing.Mapping[str, str]
# The loop-claude script, whose edits reload the loop and beside which chunk-preflight lies.
launcher: pathlib.Path
effects: Effects