feat: integrate Analyst into Plane/Orchestrator pipeline

- Add git fetch+checkout in agent launch cmd (ensures correct branch)
- Add git fetch+checkout in _monitor_agent before commit/push
- Post start comment in Plane when analyst launches
- Post :approved: request comment after analyst completes successfully
- Branch lookup moved before cmd construction for reuse
This commit is contained in:
2026-05-31 20:15:01 +03:00
parent 81e0e383e0
commit 51f7364532
4 changed files with 40 additions and 6 deletions

View File

@@ -28,7 +28,8 @@ def init_db():
stage TEXT DEFAULT 'created',
agent_running TEXT,
created_at TEXT DEFAULT (datetime('now')),
updated_at TEXT DEFAULT (datetime('now'))
updated_at TEXT DEFAULT (datetime('now')),
plane_issue_id TEXT
);
CREATE TABLE IF NOT EXISTS agent_runs (
id INTEGER PRIMARY KEY AUTOINCREMENT,