Plan step
This commit is contained in:
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
import secrets
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
from typing import Any
|
||||
|
||||
from agents.coders.state import AgentState
|
||||
@@ -15,9 +16,13 @@ from common.youtrack_mcp_client import YouTrackMCPClient
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class AgentConfig:
|
||||
agent_dir: Path
|
||||
|
||||
# ── project-level ──────────────────────────────────────────
|
||||
youtrack_project: str
|
||||
gitea_repo: str
|
||||
git_name: str
|
||||
git_email: str
|
||||
gitea_repo: str = ""
|
||||
gitea_target_branch: str = "main"
|
||||
|
||||
# ── limits (snapshotted into state at run start) ───────────
|
||||
@@ -39,6 +44,13 @@ class AgentConfig:
|
||||
# ── language hints (for Plan) ──────────────────────────────
|
||||
language_markers: dict[str, list[str]] = None # filled from project
|
||||
|
||||
def project_mem_dir(self):
|
||||
p = self.agent_dir / "memory" / f"{self.youtrack_project}"
|
||||
if not p.exists():
|
||||
p.mkdir(parents=True, exist_ok=True)
|
||||
return p
|
||||
|
||||
|
||||
|
||||
@dataclass
|
||||
class RunContext:
|
||||
|
||||
Reference in New Issue
Block a user