feat: add artifact create-from-plan cli

This commit is contained in:
lda
2026-06-15 03:49:16 +07:00 Verified
parent a77483c628
commit acd599d09f
4 changed files with 180 additions and 1 deletions
+15
View File
@@ -144,6 +144,21 @@ class WorkflowArtifactSurface(Protocol):
version: int,
) -> dict[str, Any]: ...
async def create_artifact_from_plan(
self,
*,
artifact_id: str,
version: int,
title: str,
plan: dict[str, Any],
outcomes: Sequence[str],
kind: ArtifactKind = "workflow",
description: str | None = None,
required_capabilities: dict[str, dict[str, Any]] | None = None,
source_bindings: dict[str, str] | None = None,
created_from_catalog_version: str | None = None,
) -> dict[str, Any]: ...
class WorkflowDeploymentSurface(Protocol):
"""Deployment methods exposed by workflow frontends."""