Sort the planning imports and type the pick
This commit is contained in:
+3
-4
@@ -10,7 +10,6 @@ import typing
|
||||
|
||||
from loop_claude.loop.chunk_start import archived_route, routed
|
||||
from do_epic import chunk_prompt, findings, finish, gates, parked, planning, scheduler, split, status
|
||||
from claude_code.reply import Limited
|
||||
from do_epic.repo_pick import ClaudeWork, HumanTask, recorded, Repo
|
||||
from loop_claude.loop.close import closed_cycle
|
||||
from project_config.main import located as config_located
|
||||
@@ -28,6 +27,7 @@ from loop_claude.project.model_choice import get_or_ask_models, Models
|
||||
from plan_store.jira_epic import ISSUE_KEY
|
||||
from do_epic.backend.jira import JiraEpic
|
||||
from agent_cycle.routing import judge_rung
|
||||
from claude_code.reply import Limited
|
||||
from do_epic.repos import locate
|
||||
from loop_claude.loop.this_loop import Loop
|
||||
from loop_claude.loop.reload import LoopRun
|
||||
@@ -157,9 +157,8 @@ def epic_written(key: str, writes: tuple[str, str, tuple[str, ...]] | None, path
|
||||
|
||||
def windows_opened(epic: EpicRun) -> Stop:
|
||||
"""What the do-epic the human runs does: plans the open issues (`planning`), starts each chunk that may start now, says why each other open issue waits, then puts the epic's session on the terminal until the human detaches."""
|
||||
issues = epic.store.read()
|
||||
if not isinstance(issues, Failure):
|
||||
issues = planning.planned(planning.Planned(epic.key, epic.config, epic.store, epic.record, epic.paths.home, epic.effects), issues)
|
||||
read = epic.store.read()
|
||||
issues = read if isinstance(read, Failure) else planning.planned(planning.Planned(epic.key, epic.config, epic.store, epic.record, epic.paths.home, epic.effects), read)
|
||||
if isinstance(issues, Limited):
|
||||
return Stop(1, f"the epic is not planned, so no chunk started: {issues.said}")
|
||||
started = issues if isinstance(issues, Failure) else chunks_started(epic, issues, None)
|
||||
|
||||
Reference in New Issue
Block a user