This commit is contained in:
lda
2026-06-02 02:49:50 +07:00 Verified
parent 1260dc1abd
commit 1ce897cabf
3 changed files with 864 additions and 6 deletions
-6
View File
@@ -5,7 +5,6 @@ from typing import TYPE_CHECKING, Any
from wf_artifacts import (
ArtifactKind,
DraftWorkspaceStore,
)
from wf_core.models.steps import (
InputBinding,
@@ -175,11 +174,6 @@ class WorkflowSurfaceHandlers:
) -> dict[str, Any]:
return await self._drafts.patch_draft(draft=draft, patch=patch)
def _draft_store(self) -> DraftWorkspaceStore:
if self.service.draft_workspace_store is None:
raise KeyError("draft workspace store is not configured")
return self.service.draft_workspace_store
async def list_draft_workspaces(self) -> dict[str, Any]:
"""Return compact summaries for stored draft workspaces."""
return await self._drafts.list_draft_workspaces()