:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(tasks): support local skill bundle artifacts (#65862)
Alessandro Pogliaghi67c7c4c4bae4
diff --git a/posthog/settings/web.py b/posthog/settings/web.pyindex 9d0f2d7ac2f3..7512cd020430 100644--- a/posthog/settings/web.py+++ b/posthog/settings/web.py@@ -633,6 +633,7 @@ SPECTACULAR_SETTINGS = {"artifact","tree_snapshot","user_attachment",+ "skill_bundle",],# Same-value collisions: identical choice sets appear on fields with different names.# href_matching, text_matching, url_matching on ActionStep all share the same choices.diff --git a/products/tasks/backend/facade/api.py b/products/tasks/backend/facade/api.pyindex 34a967d3dcdc..cfe16588d67f 100644--- a/products/tasks/backend/facade/api.py+++ b/products/tasks/backend/facade/api.py@@ -1446,8 +1446,9 @@ def _build_artifact_manifest_entry(content_type: str,storage_path: str,uploaded_at: str,-) -> dict[str, str | int]:- return {+ metadata: dict[str, Any] | None = None,+) -> dict[str, Any]:+ entry: dict[str, Any] = {"id": artifact_id,"name": name,"type": artifact_type,@@ -1457,6 +1458,9 @@ def _build_artifact_manifest_entry("storage_path": storage_path,"uploaded_at": uploaded_at,}+ if metadata:+ entry["metadata"] = metadata+ return entrydef _find_artifact_manifest_entry(manifest: list[dict], artifact_id: str, storage_path: str) -> dict | None:@@ -1507,6 +1511,7 @@ def upload_task_run_artifacts(content_type=content_type or "",storage_path=storage_path,uploaded_at=django_timezone.now().isoformat(),+ metadata=artifact.get("metadata"),))logger.info(@@ -1563,19 +1568,20 @@ def prepare_task_run_artifact_uploads(if not presigned_post:return None, False- prepared.append(- {- "id": artifact_id,- "name": safe_name,- "type": artifact["type"],- "source": artifact.get("source") or "",- "size": artifact["size"],- "content_type": content_type,- "storage_path": storage_path,- "expires_in": upload_expiration_seconds,- "presigned_post": presigned_post,- }- )+ prepared_artifact = {+ "id": artifact_id,+ "name": safe_name,+ "type": artifact["type"],+ "source": artifact.get("source") or "",+ "size": artifact["size"],+ "content_type": content_type,+ "storage_path": storage_path,+ "expires_in": upload_expiration_seconds,+ "presigned_post": presigned_post,+ }+ if metadata := artifact.get("metadata"):+ prepared_artifact["metadata"] = metadata+ prepared.append(prepared_artifact)return prepared, True@@ -1641,6 +1647,7 @@ def finalize_task_run_artifact_uploads(content_type=content_type,storage_path=storage_path,uploaded_at=django_timezone.now().isoformat(),+ metadata=artifact.get("metadata"),)manifest.append(entry)finalized_entries.append(entry)@@ -2821,6 +2828,7 @@ def prepare_task_staged_artifacts(storage_path=storage_path,expires_in=upload_expiration_seconds,presigned_post=presigned_post,+ metadata=artifact.get("metadata"),))@@ -2888,6 +2896,7 @@ def finalize_task_staged_artifacts(size=content_length,content_type=content_type,storage_path=storage_path,+ metadata=artifact.get("metadata"),))diff --git a/products/tasks/backend/facade/contracts.py b/products/tasks/backend/facade/contracts.pyindex 34c790d8fb4f..4ab2550cabf9 100644--- a/products/tasks/backend/facade/contracts.py+++ b/products/tasks/backend/facade/contracts.py@@ -187,6 +187,7 @@ class StagedArtifactPreparedDTO:storage_path: strexpires_in: intpresigned_post: dict+ metadata: dict | None = None@dataclass(frozen=True)diff --git a/products/tasks/backend/logic/services/staged_artifacts.py b/products/tasks/backend/logic/services/staged_artifacts.pyindex 458a9cc0b65f..a216e1b76f25 100644--- a/products/tasks/backend/logic/services/staged_artifacts.py+++ b/products/tasks/backend/logic/services/staged_artifacts.py@@ -50,9 +50,10 @@ def build_task_artifact_entry(size: int | None,content_type: str,storage_path: str,+ metadata: dict[str, Any] | None = None,uploaded_at: str | None = None,) -> dict[str, Any]:- return {+ artifact_entry: dict[str, Any] = {"id": artifact_id,"name": name,"type": artifact_type,@@ -62,6 +63,9 @@ def build_task_artifact_entry("storage_path": storage_path,"uploaded_at": uploaded_at or timezone.now().isoformat(),}+ if metadata:+ artifact_entry["metadata"] = metadata+ return artifact_entrydef cache_task_staged_artifact(task: Task, artifact: dict[str, Any]) -> None:diff --git a/products/tasks/backend/presentation/serializers.py b/products/tasks/backend/presentation/serializers.pyindex 7eef5208edd0..a54fd7515bf7 100644--- a/products/tasks/backend/presentation/serializers.py+++ b/products/tasks/backend/presentation/serializers.py@@ -1,6 +1,6 @@import base64import binascii-from typing import cast+from typing import Any, castfrom zoneinfo import available_timezonesfrom croniter import croniter@@ -51,8 +51,11 @@ TASK_RUN_ARTIFACT_TYPE_CHOICES = ["artifact","tree_snapshot","user_attachment",+ "skill_bundle",]TASK_RUN_ARTIFACT_CONTENT_ENCODING_CHOICES = ["utf-8", "base64"]+TASK_RUN_SKILL_BUNDLE_FORMAT_CHOICES = ["zip"]+TASK_RUN_SKILL_SOURCE_CHOICES = ["user", "repo", "marketplace", "codex"]def get_task_run_artifact_max_size_bytes(@@ -125,6 +128,43 @@ class TaskRunUpdateSerializer(serializers.Serializer):)+class TaskRunArtifactMetadataSerializer(serializers.Serializer):+ skill_name = serializers.CharField(+ allow_blank=False,+ max_length=255,+ help_text="Name of the local skill included in a skill_bundle artifact.",+ )+ skill_source = serializers.ChoiceField(+ choices=TASK_RUN_SKILL_SOURCE_CHOICES,+ help_text="Local source for the uploaded skill bundle, such as user or repo.",+ )+ content_sha256 = serializers.RegexField(+ regex=r"^[a-f0-9]{64}$",+ help_text="SHA-256 hex digest of the uploaded skill bundle bytes.",+ )+ bundle_format = serializers.ChoiceField(+ choices=TASK_RUN_SKILL_BUNDLE_FORMAT_CHOICES,+ help_text="Archive format used for the local skill bundle.",+ )+ schema_version = serializers.IntegerField(+ min_value=1,+ help_text="Version of the local skill bundle metadata schema.",+ )+++def validate_task_run_artifact_metadata(attrs: dict[str, Any]) -> dict[str, Any]:+ artifact_type = attrs.get("type")+ metadata = attrs.get("metadata")++ if artifact_type != "skill_bundle":+ return attrs++ if not metadata:+ raise serializers.ValidationError({"metadata": "Skill bundle artifacts require metadata"})++ return attrs++class TaskRunArtifactResponseSerializer(serializers.Serializer):id = serializers.CharField(required=False, help_text="Stable identifier for the artifact within this run")name = serializers.CharField(help_text="Artifact file name")@@ -136,6 +176,10 @@ class TaskRunArtifactResponseSerializer(serializers.Serializer):)size = serializers.IntegerField(required=False, help_text="Artifact size in bytes")content_type = serializers.CharField(required=False, allow_blank=True, help_text="Optional MIME type")+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )storage_path = serializers.CharField(help_text="S3 object key for the artifact")uploaded_at = serializers.CharField(help_text="Timestamp when the artifact was uploaded")@@ -512,8 +556,13 @@ class TaskRunArtifactUploadSerializer(serializers.Serializer):allow_blank=True,help_text="Optional MIME type for the artifact",)+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )def validate(self, attrs):+ attrs = validate_task_run_artifact_metadata(attrs)content = attrs["content"]content_encoding = attrs.get("content_encoding", "utf-8")@@ -572,8 +621,13 @@ class TaskRunArtifactPrepareUploadSerializer(serializers.Serializer):allow_blank=True,help_text="Optional MIME type for the artifact upload",)+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )def validate(self, attrs):+ attrs = validate_task_run_artifact_metadata(attrs)max_size_bytes = get_task_run_artifact_max_size_bytes(attrs.get("name"),attrs.get("content_type"),@@ -614,6 +668,10 @@ class TaskRunArtifactPrepareUploadResponseSerializer(serializers.Serializer):)size = serializers.IntegerField(help_text="Expected upload size in bytes")content_type = serializers.CharField(required=False, allow_blank=True, help_text="Optional MIME type")+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )storage_path = serializers.CharField(help_text="S3 object key reserved for the artifact")expires_in = serializers.IntegerField(help_text="Presigned POST expiry in seconds")presigned_post = S3PresignedPostSerializer(help_text="Presigned S3 POST configuration for uploading the file")@@ -643,6 +701,13 @@ class TaskRunArtifactFinalizeUploadSerializer(serializers.Serializer):allow_blank=True,help_text="Optional MIME type recorded for the artifact",)+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )++ def validate(self, attrs):+ return validate_task_run_artifact_metadata(attrs)class TaskRunArtifactsFinalizeUploadRequestSerializer(serializers.Serializer):@@ -679,8 +744,13 @@ class TaskStagedArtifactPrepareUploadSerializer(serializers.Serializer):allow_blank=True,help_text="Optional MIME type for the artifact upload",)+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )def validate(self, attrs):+ attrs = validate_task_run_artifact_metadata(attrs)max_size_bytes = get_task_run_artifact_max_size_bytes(attrs.get("name"),attrs.get("content_type"),@@ -715,10 +785,20 @@ class TaskStagedArtifactPrepareUploadResponseSerializer(serializers.Serializer):)size = serializers.IntegerField(help_text="Expected upload size in bytes")content_type = serializers.CharField(required=False, allow_blank=True, help_text="Optional MIME type")+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )storage_path = serializers.CharField(help_text="S3 object key reserved for the staged artifact")expires_in = serializers.IntegerField(help_text="Presigned POST expiry in seconds")presigned_post = S3PresignedPostSerializer(help_text="Presigned S3 POST configuration for uploading the file")+ def to_representation(self, instance: Any) -> dict[str, Any]:+ data = super().to_representation(instance)+ if data.get("metadata") is None:+ data.pop("metadata", None)+ return data+class TaskStagedArtifactsPrepareUploadResponseSerializer(serializers.Serializer):artifacts = TaskStagedArtifactPrepareUploadResponseSerializer(@@ -744,6 +824,13 @@ class TaskStagedArtifactFinalizeUploadSerializer(serializers.Serializer):allow_blank=True,help_text="Optional MIME type recorded for the artifact",)+ metadata = TaskRunArtifactMetadataSerializer(+ required=False,+ help_text="Optional structured metadata for special artifact types, such as skill bundles.",+ )++ def validate(self, attrs):+ return validate_task_run_artifact_metadata(attrs)class TaskStagedArtifactsFinalizeUploadRequestSerializer(serializers.Serializer):diff --git a/products/tasks/backend/tests/test_api.py b/products/tasks/backend/tests/test_api.pyindex eae45f61a6ba..f3f29893f8ce 100644--- a/products/tasks/backend/tests/test_api.py+++ b/products/tasks/backend/tests/test_api.py@@ -4088,6 +4088,71 @@ class TestTaskRunAPI(BaseTaskAPITest):self.assertEqual(artifact["source"], "user_attachment")self.assertEqual(artifact["size"], len(binary_content))+ @patch("posthog.storage.object_storage.write")+ @patch("posthog.storage.object_storage.tag")+ def test_upload_artifacts_preserves_skill_bundle_metadata(self, mock_tag, mock_write):+ task = self.create_task()+ run = TaskRun.objects.create(task=task, team=self.team, status=TaskRun.Status.IN_PROGRESS)+ binary_content = b"skill zip"+ metadata = {+ "skill_name": "local-skill",+ "skill_source": "user",+ "content_sha256": "a" * 64,+ "bundle_format": "zip",+ "schema_version": 1,+ }++ response = self.client.post(+ f"/api/projects/@current/tasks/{task.id}/runs/{run.id}/artifacts/",+ {+ "artifacts": [+ {+ "name": "local-skill.zip",+ "type": "skill_bundle",+ "source": "posthog_code_skill",+ "content": base64.b64encode(binary_content).decode("ascii"),+ "content_encoding": "base64",+ "content_type": "application/zip",+ "metadata": metadata,+ }+ ]+ },+ format="json",+ )++ self.assertEqual(response.status_code, status.HTTP_200_OK)+ mock_write.assert_called_once()+ mock_tag.assert_called_once()++ run.refresh_from_db()+ artifact = run.artifacts[0]+ self.assertEqual(artifact["type"], "skill_bundle")+ self.assertEqual(artifact["metadata"], metadata)++ def test_upload_artifacts_rejects_skill_bundle_without_metadata(self):+ task = self.create_task()+ run = TaskRun.objects.create(task=task, team=self.team, status=TaskRun.Status.IN_PROGRESS)++ response = self.client.post(+ f"/api/projects/@current/tasks/{task.id}/runs/{run.id}/artifacts/",+ {+ "artifacts": [+ {+ "name": "local-skill.zip",+ "type": "skill_bundle",+ "source": "posthog_code_skill",+ "content": "c2tpbGw=",+ "content_encoding": "base64",+ "content_type": "application/zip",+ }+ ]+ },+ format="json",+ )++ self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ self.assertIn("metadata", json.dumps(response.json()))+def test_upload_artifacts_rejects_invalid_base64_content(self):task = self.create_task()run = TaskRun.objects.create(task=task, team=self.team, status=TaskRun.Status.IN_PROGRESS)@@ -4190,6 +4255,44 @@ class TestTaskRunAPI(BaseTaskAPITest):self.assertEqual(get_presigned_post_kwargs["expiration"], 3600)self.assertEqual(get_presigned_post_kwargs["conditions"], [["content-length-range", 0, 4096 + 65536]])+ @patch("posthog.storage.object_storage.get_presigned_post")+ def test_prepare_artifact_uploads_preserves_skill_bundle_metadata(self, mock_get_presigned_post):+ mock_get_presigned_post.return_value = {+ "url": "https://example-bucket.s3.amazonaws.com",+ "fields": {"key": "placeholder", "policy": "policy", "x-amz-signature": "sig"},+ }+ task = self.create_task()+ run = TaskRun.objects.create(task=task, team=self.team, status=TaskRun.Status.IN_PROGRESS)+ metadata = {+ "skill_name": "local-skill",+ "skill_source": "repo",+ "content_sha256": "b" * 64,+ "bundle_format": "zip",+ "schema_version": 1,+ }++ response = self.client.post(+ f"/api/projects/@current/tasks/{task.id}/runs/{run.id}/artifacts/prepare_upload/",+ {+ "artifacts": [+ {+ "name": "local-skill.zip",+ "type": "skill_bundle",+ "source": "posthog_code_skill",+ "size": 4096,+ "content_type": "application/zip",+ "metadata": metadata,+ }+ ]+ },+ format="json",+ )++ self.assertEqual(response.status_code, status.HTTP_200_OK)+ prepared = response.json()["artifacts"][0]+ self.assertEqual(prepared["type"], "skill_bundle")+ self.assertEqual(prepared["metadata"], metadata)+def test_prepare_artifact_uploads_rejects_oversized_size(self):task = self.create_task()run = TaskRun.objects.create(task=task, team=self.team, status=TaskRun.Status.IN_PROGRESS)@@ -4307,6 +4410,7 @@ class TestTaskRunAPI(BaseTaskAPITest):self.assertEqual(prepared["name"], "spec.pdf")self.assertEqual(prepared["type"], "user_attachment")self.assertEqual(prepared["source"], "user_attachment")+ self.assertNotIn("metadata", prepared)self.assertIn(f"tasks/artifacts/team_{self.team.id}/task_{task.id}/staged/", prepared["storage_path"])self.assertEqual(mock_get_presigned_post.call_args.args[0], prepared["storage_path"])diff --git a/products/tasks/frontend/generated/api.schemas.ts b/products/tasks/frontend/generated/api.schemas.tsindex c7460c8d6048..05299b49394b 100644--- a/products/tasks/frontend/generated/api.schemas.ts+++ b/products/tasks/frontend/generated/api.schemas.ts@@ -873,6 +873,7 @@ export type TaskRunCreateRequestSchemaApi =* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot* * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle*/export type TaskRunArtifactTypeEnumApi = (typeof TaskRunArtifactTypeEnumApi)[keyof typeof TaskRunArtifactTypeEnumApi]@@ -884,8 +885,62 @@ export const TaskRunArtifactTypeEnumApi = {Artifact: 'artifact',TreeSnapshot: 'tree_snapshot',UserAttachment: 'user_attachment',+ SkillBundle: 'skill_bundle',} as const+/**+ * * `user` - user+ * * `repo` - repo+ * * `marketplace` - marketplace+ * * `codex` - codex+ */+export type SkillSourceEnumApi = (typeof SkillSourceEnumApi)[keyof typeof SkillSourceEnumApi]++export const SkillSourceEnumApi = {+ User: 'user',+ Repo: 'repo',+ Marketplace: 'marketplace',+ Codex: 'codex',+} as const++/**+ * * `zip` - zip+ */+export type BundleFormatEnumApi = (typeof BundleFormatEnumApi)[keyof typeof BundleFormatEnumApi]++export const BundleFormatEnumApi = {+ Zip: 'zip',+} as const++export interface TaskRunArtifactMetadataApi {+ /**+ * Name of the local skill included in a skill_bundle artifact.+ * @maxLength 255+ */+ skill_name: string+ /** Local source for the uploaded skill bundle, such as user or repo.+ *+ * * `user` - user+ * * `repo` - repo+ * * `marketplace` - marketplace+ * * `codex` - codex */+ skill_source: SkillSourceEnumApi+ /**+ * SHA-256 hex digest of the uploaded skill bundle bytes.+ * @pattern ^[a-f0-9]{64}$+ */+ content_sha256: string+ /** Archive format used for the local skill bundle.+ *+ * * `zip` - zip */+ bundle_format: BundleFormatEnumApi+ /**+ * Version of the local skill bundle metadata schema.+ * @minimum 1+ */+ schema_version: number+}+export interface TaskStagedArtifactFinalizeUploadApi {/** Stable identifier returned by the staged prepare upload endpoint */id: string@@ -902,7 +957,8 @@ export interface TaskStagedArtifactFinalizeUploadApi {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnumApi/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -919,6 +975,8 @@ export interface TaskStagedArtifactFinalizeUploadApi {* @maxLength 255*/content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi}export interface TaskStagedArtifactsFinalizeUploadRequestApi {@@ -939,6 +997,8 @@ export interface TaskRunArtifactResponseApi {size?: number/** Optional MIME type */content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi/** S3 object key for the artifact */storage_path: string/** Timestamp when the artifact was uploaded */@@ -964,7 +1024,8 @@ export interface TaskStagedArtifactPrepareUploadApi {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnumApi/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -982,6 +1043,8 @@ export interface TaskStagedArtifactPrepareUploadApi {* @maxLength 255*/content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi}export interface TaskStagedArtifactsPrepareUploadRequestApi {@@ -1014,6 +1077,8 @@ export interface TaskStagedArtifactPrepareUploadResponseApi {size: number/** Optional MIME type */content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi/** S3 object key reserved for the staged artifact */storage_path: string/** Presigned POST expiry in seconds */@@ -1315,7 +1380,8 @@ export interface TaskRunArtifactUploadApi {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnumApi/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -1334,6 +1400,8 @@ export interface TaskRunArtifactUploadApi {* @maxLength 255*/content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi}export interface TaskRunArtifactsUploadRequestApi {@@ -1370,7 +1438,8 @@ export interface TaskRunArtifactFinalizeUploadApi {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnumApi/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -1387,6 +1456,8 @@ export interface TaskRunArtifactFinalizeUploadApi {* @maxLength 255*/content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi}export interface TaskRunArtifactsFinalizeUploadRequestApi {@@ -1413,7 +1484,8 @@ export interface TaskRunArtifactPrepareUploadApi {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnumApi/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -1431,6 +1503,8 @@ export interface TaskRunArtifactPrepareUploadApi {* @maxLength 255*/content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi}export interface TaskRunArtifactsPrepareUploadRequestApi {@@ -1451,6 +1525,8 @@ export interface TaskRunArtifactPrepareUploadResponseApi {size: number/** Optional MIME type */content_type?: string+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadataApi/** S3 object key reserved for the artifact */storage_path: string/** Presigned POST expiry in seconds */diff --git a/products/tasks/frontend/generated/api.zod.ts b/products/tasks/frontend/generated/api.zod.tsindex bc40132fa888..205b7efad09d 100644--- a/products/tasks/frontend/generated/api.zod.ts+++ b/products/tasks/frontend/generated/api.zod.ts@@ -798,6 +798,12 @@ export const tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemStoragePatexport const tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemContentTypeMax = 255+export const tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneSkillNameMax = 255++export const tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp = new RegExp(+ '^[a-f0-9]{64}$'+)+export const TasksStagedArtifactsFinalizeUploadCreateBody = /* @__PURE__ */ zod.object({artifacts: zod.array(@@ -808,12 +814,21 @@ export const TasksStagedArtifactsFinalizeUploadCreateBody = /* @__PURE__ */ zod..max(tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemNameMax).describe('File name associated with the staged artifact'),type: zod- .enum(['plan', 'context', 'reference', 'output', 'artifact', 'tree_snapshot', 'user_attachment'])+ .enum([+ 'plan',+ 'context',+ 'reference',+ 'output',+ 'artifact',+ 'tree_snapshot',+ 'user_attachment',+ 'skill_bundle',+ ]).describe(- '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle').describe(- 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle'),source: zod.string()@@ -829,6 +844,37 @@ export const TasksStagedArtifactsFinalizeUploadCreateBody = /* @__PURE__ */ zod..max(tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemContentTypeMax).optional().describe('Optional MIME type recorded for the artifact'),+ metadata: zod+ .object({+ skill_name: zod+ .string()+ .max(tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneSkillNameMax)+ .describe('Name of the local skill included in a skill_bundle artifact.'),+ skill_source: zod+ .enum(['user', 'repo', 'marketplace', 'codex'])+ .describe(+ '\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ )+ .describe(+ 'Local source for the uploaded skill bundle, such as user or repo.\n\n\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ ),+ content_sha256: zod+ .string()+ .regex(+ tasksStagedArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp+ )+ .describe('SHA-256 hex digest of the uploaded skill bundle bytes.'),+ bundle_format: zod+ .enum(['zip'])+ .describe('\* `zip` - zip')+ .describe('Archive format used for the local skill bundle.\n\n\* `zip` - zip'),+ schema_version: zod+ .number()+ .min(1)+ .describe('Version of the local skill bundle metadata schema.'),+ })+ .optional()+ .describe('Optional structured metadata for special artifact types, such as skill bundles.'),})).describe('Array of staged artifacts to finalize after upload'),@@ -847,6 +893,12 @@ export const tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemSizeMax = 3export const tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemContentTypeMax = 255+export const tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneSkillNameMax = 255++export const tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp = new RegExp(+ '^[a-f0-9]{64}$'+)+export const TasksStagedArtifactsPrepareUploadCreateBody = /* @__PURE__ */ zod.object({artifacts: zod.array(@@ -856,12 +908,21 @@ export const TasksStagedArtifactsPrepareUploadCreateBody = /* @__PURE__ */ zod.o.max(tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemNameMax).describe('File name to associate with the staged artifact'),type: zod- .enum(['plan', 'context', 'reference', 'output', 'artifact', 'tree_snapshot', 'user_attachment'])+ .enum([+ 'plan',+ 'context',+ 'reference',+ 'output',+ 'artifact',+ 'tree_snapshot',+ 'user_attachment',+ 'skill_bundle',+ ]).describe(- '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle').describe(- 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle'),source: zod.string()@@ -878,6 +939,37 @@ export const TasksStagedArtifactsPrepareUploadCreateBody = /* @__PURE__ */ zod.o.max(tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemContentTypeMax).optional().describe('Optional MIME type for the artifact upload'),+ metadata: zod+ .object({+ skill_name: zod+ .string()+ .max(tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneSkillNameMax)+ .describe('Name of the local skill included in a skill_bundle artifact.'),+ skill_source: zod+ .enum(['user', 'repo', 'marketplace', 'codex'])+ .describe(+ '\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ )+ .describe(+ 'Local source for the uploaded skill bundle, such as user or repo.\n\n\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ ),+ content_sha256: zod+ .string()+ .regex(+ tasksStagedArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp+ )+ .describe('SHA-256 hex digest of the uploaded skill bundle bytes.'),+ bundle_format: zod+ .enum(['zip'])+ .describe('\* `zip` - zip')+ .describe('Archive format used for the local skill bundle.\n\n\* `zip` - zip'),+ schema_version: zod+ .number()+ .min(1)+ .describe('Version of the local skill bundle metadata schema.'),+ })+ .optional()+ .describe('Optional structured metadata for special artifact types, such as skill bundles.'),})).describe('Array of staged artifacts to prepare before creating a run'),@@ -1026,6 +1118,10 @@ export const tasksRunsArtifactsCreateBodyArtifactsItemSourceMax = 64export const tasksRunsArtifactsCreateBodyArtifactsItemContentEncodingDefault = `utf-8`export const tasksRunsArtifactsCreateBodyArtifactsItemContentTypeMax = 255+export const tasksRunsArtifactsCreateBodyArtifactsItemMetadataOneSkillNameMax = 255++export const tasksRunsArtifactsCreateBodyArtifactsItemMetadataOneContentSha256RegExp = new RegExp('^[a-f0-9]{64}$')+export const TasksRunsArtifactsCreateBody = /* @__PURE__ */ zod.object({artifacts: zod.array(@@ -1035,12 +1131,21 @@ export const TasksRunsArtifactsCreateBody = /* @__PURE__ */ zod.object({.max(tasksRunsArtifactsCreateBodyArtifactsItemNameMax).describe('File name to associate with the artifact'),type: zod- .enum(['plan', 'context', 'reference', 'output', 'artifact', 'tree_snapshot', 'user_attachment'])+ .enum([+ 'plan',+ 'context',+ 'reference',+ 'output',+ 'artifact',+ 'tree_snapshot',+ 'user_attachment',+ 'skill_bundle',+ ]).describe(- '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle').describe(- 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle'),source: zod.string()@@ -1060,6 +1165,35 @@ export const TasksRunsArtifactsCreateBody = /* @__PURE__ */ zod.object({.max(tasksRunsArtifactsCreateBodyArtifactsItemContentTypeMax).optional().describe('Optional MIME type for the artifact'),+ metadata: zod+ .object({+ skill_name: zod+ .string()+ .max(tasksRunsArtifactsCreateBodyArtifactsItemMetadataOneSkillNameMax)+ .describe('Name of the local skill included in a skill_bundle artifact.'),+ skill_source: zod+ .enum(['user', 'repo', 'marketplace', 'codex'])+ .describe(+ '\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ )+ .describe(+ 'Local source for the uploaded skill bundle, such as user or repo.\n\n\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ ),+ content_sha256: zod+ .string()+ .regex(tasksRunsArtifactsCreateBodyArtifactsItemMetadataOneContentSha256RegExp)+ .describe('SHA-256 hex digest of the uploaded skill bundle bytes.'),+ bundle_format: zod+ .enum(['zip'])+ .describe('\* `zip` - zip')+ .describe('Archive format used for the local skill bundle.\n\n\* `zip` - zip'),+ schema_version: zod+ .number()+ .min(1)+ .describe('Version of the local skill bundle metadata schema.'),+ })+ .optional()+ .describe('Optional structured metadata for special artifact types, such as skill bundles.'),})).describe('Array of artifacts to upload'),@@ -1091,6 +1225,12 @@ export const tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemStoragePathMexport const tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemContentTypeMax = 255+export const tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneSkillNameMax = 255++export const tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp = new RegExp(+ '^[a-f0-9]{64}$'+)+export const TasksRunsArtifactsFinalizeUploadCreateBody = /* @__PURE__ */ zod.object({artifacts: zod.array(@@ -1101,12 +1241,21 @@ export const TasksRunsArtifactsFinalizeUploadCreateBody = /* @__PURE__ */ zod.ob.max(tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemNameMax).describe('File name associated with the artifact'),type: zod- .enum(['plan', 'context', 'reference', 'output', 'artifact', 'tree_snapshot', 'user_attachment'])+ .enum([+ 'plan',+ 'context',+ 'reference',+ 'output',+ 'artifact',+ 'tree_snapshot',+ 'user_attachment',+ 'skill_bundle',+ ]).describe(- '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle').describe(- 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle'),source: zod.string()@@ -1122,6 +1271,37 @@ export const TasksRunsArtifactsFinalizeUploadCreateBody = /* @__PURE__ */ zod.ob.max(tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemContentTypeMax).optional().describe('Optional MIME type recorded for the artifact'),+ metadata: zod+ .object({+ skill_name: zod+ .string()+ .max(tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneSkillNameMax)+ .describe('Name of the local skill included in a skill_bundle artifact.'),+ skill_source: zod+ .enum(['user', 'repo', 'marketplace', 'codex'])+ .describe(+ '\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ )+ .describe(+ 'Local source for the uploaded skill bundle, such as user or repo.\n\n\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ ),+ content_sha256: zod+ .string()+ .regex(+ tasksRunsArtifactsFinalizeUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp+ )+ .describe('SHA-256 hex digest of the uploaded skill bundle bytes.'),+ bundle_format: zod+ .enum(['zip'])+ .describe('\* `zip` - zip')+ .describe('Archive format used for the local skill bundle.\n\n\* `zip` - zip'),+ schema_version: zod+ .number()+ .min(1)+ .describe('Version of the local skill bundle metadata schema.'),+ })+ .optional()+ .describe('Optional structured metadata for special artifact types, such as skill bundles.'),})).describe('Array of uploaded artifacts to finalize'),@@ -1140,6 +1320,12 @@ export const tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemSizeMax = 314export const tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemContentTypeMax = 255+export const tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneSkillNameMax = 255++export const tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp = new RegExp(+ '^[a-f0-9]{64}$'+)+export const TasksRunsArtifactsPrepareUploadCreateBody = /* @__PURE__ */ zod.object({artifacts: zod.array(@@ -1149,12 +1335,21 @@ export const TasksRunsArtifactsPrepareUploadCreateBody = /* @__PURE__ */ zod.obj.max(tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemNameMax).describe('File name to associate with the artifact'),type: zod- .enum(['plan', 'context', 'reference', 'output', 'artifact', 'tree_snapshot', 'user_attachment'])+ .enum([+ 'plan',+ 'context',+ 'reference',+ 'output',+ 'artifact',+ 'tree_snapshot',+ 'user_attachment',+ 'skill_bundle',+ ]).describe(- '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ '\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle').describe(- 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment'+ 'Classification for the artifact\n\n\* `plan` - plan\n\* `context` - context\n\* `reference` - reference\n\* `output` - output\n\* `artifact` - artifact\n\* `tree_snapshot` - tree_snapshot\n\* `user_attachment` - user_attachment\n\* `skill_bundle` - skill_bundle'),source: zod.string()@@ -1171,6 +1366,35 @@ export const TasksRunsArtifactsPrepareUploadCreateBody = /* @__PURE__ */ zod.obj.max(tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemContentTypeMax).optional().describe('Optional MIME type for the artifact upload'),+ metadata: zod+ .object({+ skill_name: zod+ .string()+ .max(tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneSkillNameMax)+ .describe('Name of the local skill included in a skill_bundle artifact.'),+ skill_source: zod+ .enum(['user', 'repo', 'marketplace', 'codex'])+ .describe(+ '\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ )+ .describe(+ 'Local source for the uploaded skill bundle, such as user or repo.\n\n\* `user` - user\n\* `repo` - repo\n\* `marketplace` - marketplace\n\* `codex` - codex'+ ),+ content_sha256: zod+ .string()+ .regex(tasksRunsArtifactsPrepareUploadCreateBodyArtifactsItemMetadataOneContentSha256RegExp)+ .describe('SHA-256 hex digest of the uploaded skill bundle bytes.'),+ bundle_format: zod+ .enum(['zip'])+ .describe('\* `zip` - zip')+ .describe('Archive format used for the local skill bundle.\n\n\* `zip` - zip'),+ schema_version: zod+ .number()+ .min(1)+ .describe('Version of the local skill bundle metadata schema.'),+ })+ .optional()+ .describe('Optional structured metadata for special artifact types, such as skill bundles.'),})).describe('Array of artifacts to prepare'),diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex eb9c0b0f21e9..b6660f240c16 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -12182,6 +12182,16 @@ export namespace Schemas {skipped: BulkUpdateTagsError[];}+ /**+ * * `zip` - zip+ */+ export type BundleFormatEnum = typeof BundleFormatEnum[keyof typeof BundleFormatEnum];+++ export const BundleFormatEnum = {+ Zip: 'zip',+ } as const;+/*** * `b2b` - B2B* * `b2c` - B2C@@ -34163,6 +34173,51 @@ export namespace Schemas {Openai: 'openai',} as const;+ /**+ * * `user` - user+ * * `repo` - repo+ * * `marketplace` - marketplace+ * * `codex` - codex+ */+ export type SkillSourceEnum = typeof SkillSourceEnum[keyof typeof SkillSourceEnum];+++ export const SkillSourceEnum = {+ User: 'user',+ Repo: 'repo',+ Marketplace: 'marketplace',+ Codex: 'codex',+ } as const;++ export interface TaskRunArtifactMetadata {+ /**+ * Name of the local skill included in a skill_bundle artifact.+ * @maxLength 255+ */+ skill_name: string;+ /** Local source for the uploaded skill bundle, such as user or repo.+ *+ * * `user` - user+ * * `repo` - repo+ * * `marketplace` - marketplace+ * * `codex` - codex */+ skill_source: SkillSourceEnum;+ /**+ * SHA-256 hex digest of the uploaded skill bundle bytes.+ * @pattern ^[a-f0-9]{64}$+ */+ content_sha256: string;+ /** Archive format used for the local skill bundle.+ *+ * * `zip` - zip */+ bundle_format: BundleFormatEnum;+ /**+ * Version of the local skill bundle metadata schema.+ * @minimum 1+ */+ schema_version: number;+ }+export interface TaskRunArtifactResponse {/** Stable identifier for the artifact within this run */id?: string;@@ -34176,6 +34231,8 @@ export namespace Schemas {size?: number;/** Optional MIME type */content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;/** S3 object key for the artifact */storage_path: string;/** Timestamp when the artifact was uploaded */@@ -51412,6 +51469,7 @@ export namespace Schemas {* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot* * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle*/export type TaskRunArtifactTypeEnum = typeof TaskRunArtifactTypeEnum[keyof typeof TaskRunArtifactTypeEnum];@@ -51424,6 +51482,7 @@ export namespace Schemas {Artifact: 'artifact',TreeSnapshot: 'tree_snapshot',UserAttachment: 'user_attachment',+ SkillBundle: 'skill_bundle',} as const;export interface TaskRunArtifactFinalizeUpload {@@ -51442,7 +51501,8 @@ export namespace Schemas {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnum;/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -51459,6 +51519,8 @@ export namespace Schemas {* @maxLength 255*/content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;}export interface TaskRunArtifactPrepareUpload {@@ -51475,7 +51537,8 @@ export namespace Schemas {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnum;/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -51493,6 +51556,8 @@ export namespace Schemas {* @maxLength 255*/content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;}export interface TaskRunArtifactPrepareUploadResponse {@@ -51508,6 +51573,8 @@ export namespace Schemas {size: number;/** Optional MIME type */content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;/** S3 object key reserved for the artifact */storage_path: string;/** Presigned POST expiry in seconds */@@ -51545,7 +51612,8 @@ export namespace Schemas {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnum;/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -51564,6 +51632,8 @@ export namespace Schemas {* @maxLength 255*/content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;}export interface TaskRunArtifactsFinalizeUploadRequest {@@ -51847,7 +51917,8 @@ export namespace Schemas {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnum;/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -51864,6 +51935,8 @@ export namespace Schemas {* @maxLength 255*/content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;}export interface TaskStagedArtifactPrepareUpload {@@ -51880,7 +51953,8 @@ export namespace Schemas {* * `output` - output* * `artifact` - artifact* * `tree_snapshot` - tree_snapshot- * * `user_attachment` - user_attachment */+ * * `user_attachment` - user_attachment+ * * `skill_bundle` - skill_bundle */type: TaskRunArtifactTypeEnum;/*** Optional source label for the artifact, such as agent_output or user_attachment@@ -51898,6 +51972,8 @@ export namespace Schemas {* @maxLength 255*/content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;}export interface TaskStagedArtifactPrepareUploadResponse {@@ -51913,6 +51989,8 @@ export namespace Schemas {size: number;/** Optional MIME type */content_type?: string;+ /** Optional structured metadata for special artifact types, such as skill bundles. */+ metadata?: TaskRunArtifactMetadata;/** S3 object key reserved for the staged artifact */storage_path: string;/** Presigned POST expiry in seconds */