chore: address coderabbit cleanup notes

This commit is contained in:
lda
2026-06-04 15:58:54 +07:00 Unverified
parent 6b30a96ad7
commit b211eef1c7
21 changed files with 397 additions and 96 deletions
+2
View File
@@ -49,6 +49,8 @@ class WorkflowAdminApi:
)
return {"statuses": statuses, "total": len(statuses)}
# Preserve provider order for events; event providers are expected to return
# chronological order and callers may rely on that ordering for diagnostics.
async def list_events(self) -> dict[str, Any]:
events = [_payload(event) for event in self.events.list_events()]
return {"events": events, "total": len(events)}
+3 -1
View File
@@ -19,7 +19,9 @@ class WorkflowSourceRegistryProvider(Protocol):
class WorkflowSourceRegistryMutationProvider(Protocol):
"""Write capabilities for source registry mutation operations."""
def add_registry_entry(self, entry: Mapping[str, Any]) -> Mapping[str, Any] | object: ...
def add_registry_entry(
self, entry: Mapping[str, Any]
) -> Mapping[str, Any] | object: ...
def update_registry_entry(
self, source_id: str, patch: Mapping[str, Any]
) -> Mapping[str, Any] | object: ...