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
quality-gates / verify (push) Failing after 7s

This commit is contained in:
2026-09-01 14:40:29 +00:00
parent 0437539ea2
commit b080080e26
29 changed files with 355 additions and 134 deletions

View File

@@ -1,8 +1,13 @@
from .domain.models import IngestionRequest, SourceRef
from .validation import validate_request
from .kab_ingestion.domain.models import IngestionRequest
def ingest_route(payload: dict, source):
request = IngestionRequest(SourceRef(payload.get("repository", ""), payload.get("path", ""), payload.get("revision", "main")), payload.get("destination", "sharepoint"))
errors = validate_request(request)
if errors: return {"accepted": False, "errors": errors}
return {"accepted": True, "documents": len(source.fetch(request))}
def ingest_route(request: IngestionRequest, service):
return service.ingest(request)
def card_route(card):
return card
def health_route() -> dict[str, str]:
return {"status": "ok"}