Sort the added imports and type the parallel-chunks value for mypy

This commit is contained in:
2026-11-16 12:02:41 +01:00
parent 3fd7e15255
commit 4e02971bfe
5 changed files with 23 additions and 22 deletions
+14 -14
View File
@@ -5,21 +5,21 @@ import pathlib
import re
import typing
from chunk_preflight.choices import planned
from chunk_preflight.gathered import NoItem, Plan
from claude_code.session import Session, session_named, transcript_file
from claude_code.transcript import read_transcript
from failure import Failure
from git_cli.git_repo import default_ref
from loop_claude import tmux
from loop_claude.cycle import chunk_items
from loop_claude.loop.reload import LoopRun
from loop_effects.effects import Effects, say
from loop_state.paths import Paths
from project_config.main import located
from release_plan.release_standing import project_plan
from touch_predictions.beside import Beside, chunks_beside
from loop_claude.cycle import chunk_items
from git_cli.git_repo import default_ref
from loop_effects.effects import Effects, say
from failure import Failure
from project_config.main import located
from loop_claude.loop.reload import LoopRun
from chunk_preflight.gathered import NoItem, Plan
from loop_state.paths import Paths
from chunk_preflight.choices import planned
from transcript_archive.project_key import project_key
from release_plan.release_standing import project_plan
from claude_code.transcript import read_transcript
from claude_code.session import Session, session_named, transcript_file
from loop_claude import tmux
# Under the home folder, a folder per project key holds LOCK.
STATE = ".local/state/loop-claude"
@@ -62,7 +62,7 @@ def starting(home: pathlib.Path, key: str) -> typing.Iterator[None]:
def held_items(chunks: typing.Iterable[str], key: str, claude_code_transcripts: pathlib.Path) -> set[int]:
"""The plan items these chunks hold: the one each started from, and those its worker names on its latest `Chunk items:` line so far. A chunk whose transcript cannot be read holds the item it started from."""
held = set()
held: set[int] = set()
for chunk in chunks:
held.update(filter(None, [item_of(chunk)]))
transcript = transcript_file(chunk_session(key, chunk, claude_code_transcripts))