kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-17 18:29:32 +02:00
parent 94591ab7ae
commit 3d9b5766ab
10 changed files with 250 additions and 30 deletions

View file

@ -618,11 +618,13 @@ def run_task(ctx, task_id, dry_run, allow_write):
# Step 1: PM decomposes
click.echo("Running PM to decompose task...")
pm_started_at = datetime.utcnow().isoformat()
pm_result = run_agent(
conn, "pm", task_id, project_id,
model="sonnet", dry_run=dry_run,
allow_write=allow_write, noninteractive=is_noninteractive,
)
pm_ended_at = datetime.utcnow().isoformat()
if dry_run:
click.echo("\n--- PM Prompt (dry-run) ---")
@ -691,7 +693,10 @@ def run_task(ctx, task_id, dry_run, allow_write):
click.echo("\nExecuting pipeline...")
result = run_pipeline(conn, task_id, pipeline_steps,
allow_write=allow_write,
noninteractive=is_noninteractive)
noninteractive=is_noninteractive,
pm_result=pm_result,
pm_started_at=pm_started_at,
pm_ended_at=pm_ended_at)
if result["success"]:
click.echo(f"\nPipeline completed: {result['steps_completed']} steps")