decomposer: fix validation failure for Migrate the kab_ingestion domain models, ports, GitHub SCM connector, and SharePoint CMS connector into the repository's app/ package.; Wire the migrated ingestion components into the agent application entry point, card, settings, triggers, governance, publication, and validation layers.; Populate every remaining placeholder file with working application, package, test, dependency, and Kubernetes content.; Verify the migrated agent and completed repository end to end.
Some checks failed
ci / test (push) Failing after 7s
Some checks failed
ci / test (push) Failing after 7s
This commit is contained in:
27
app/domain/models.py
Normal file
27
app/domain/models.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from dataclasses import dataclass, field
|
||||
from datetime import datetime, timezone
|
||||
from typing import Any
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class SourceRef:
|
||||
repository: str
|
||||
path: str
|
||||
revision: str = "main"
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Document:
|
||||
source: SourceRef
|
||||
content: str
|
||||
metadata: dict[str, Any] = field(default_factory=dict)
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class IngestionRequest:
|
||||
source: SourceRef
|
||||
destination: str = "sharepoint"
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class IngestionResult:
|
||||
accepted: bool
|
||||
document: Document | None = None
|
||||
message: str = ""
|
||||
created_at: datetime = field(default_factory=lambda: datetime.now(timezone.utc))
|
||||
Reference in New Issue
Block a user