On main: Pre-merge: synced agent files

This commit is contained in:
2026-04-13 12:42:00 +00:00
16 changed files with 933 additions and 94 deletions

View File

@@ -76,6 +76,14 @@ async def create_project(
VALUES ($1, $2::uuid, $3, $4, 'backlog', $5)""",
project_id, company_id, project_name, description[:500] if description else "", color,
)
# Create workspace pointing to the legal-ai repo root
workspace_id = str(uuid.uuid4())
await conn.execute(
"""INSERT INTO project_workspaces (id, company_id, project_id, name, cwd)
VALUES ($1, $2::uuid, $3::uuid, 'legal-ai', '/home/chaim/legal-ai')""",
workspace_id, company_id, project_id,
)
# Create initial issue linked to the project
issue_id, identifier = await _create_issue(
conn, company_id, project_id, case_number, title, prefix,