Updated repo onboarding

This commit is contained in:
2026-05-04 19:18:10 +02:00
parent 5429340f21
commit 47f6971c56
4 changed files with 213 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
import uuid
from datetime import date, datetime
from typing import Any
from typing import Any, Literal
from pydantic import BaseModel, ConfigDict, Field
@@ -32,6 +32,23 @@ class RepoPathRegister(BaseModel):
path: str
class RepoOnboardRequest(BaseModel):
"""Start scripted onboarding for a working copy that is visible to State Hub."""
domain_slug: str
project_path: str
agent_profile: Literal["claude-code", "codex"] = "codex"
additional: bool = False
class RepoOnboardResult(BaseModel):
ok: bool
repo_slug: str | None = None
agent_profile: str
command: list[str]
stdout: str = ""
stderr: str = ""
class RepoRead(BaseModel):
model_config = ConfigDict(from_attributes=True)
id: uuid.UUID