feat(cte): add 'tht cte next' — first unapproved plan CTE
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -150,6 +150,24 @@ def plan_cmd(
|
||||
fg=typer.colors.GREEN)
|
||||
|
||||
|
||||
@cte_app.command("next")
|
||||
def next_cmd(
|
||||
session: str = typer.Option(..., "--session"),
|
||||
config: Path = CONFIG_OPT,
|
||||
) -> None:
|
||||
"""Primo CTE del piano non ancora approvato (stdout pulito; vuoto se nessuno).
|
||||
|
||||
Sorgente unica dell'ordine di approvazione CTE (F6): il gate lo usa per
|
||||
registrare cte_approved sul NOME del CTE (non su 'phase:6')."""
|
||||
from tht.phase import next_cte
|
||||
|
||||
cfg = _load_config_or_exit(config)
|
||||
load_session_or_exit(cfg, session)
|
||||
nxt = next_cte(session_dir(cfg, session))
|
||||
if nxt:
|
||||
typer.echo(nxt)
|
||||
|
||||
|
||||
@cte_app.command("list")
|
||||
def list_cmd(
|
||||
session: str = typer.Option(..., "--session"),
|
||||
|
||||
Reference in New Issue
Block a user