chore: return formatted transcript url

- Return formatted transcript and recording URL
- Harden campaign dispatcher logic
This commit is contained in:
Abhishek Kumar 2026-05-26 13:24:12 +05:30
parent 0716582aa7
commit 7810923bca
30 changed files with 525 additions and 136 deletions

11
api/utils/artifacts.py Normal file
View file

@ -0,0 +1,11 @@
"""Helpers for workflow run artifact access."""
from api.constants import BACKEND_API_ENDPOINT
def artifact_url(
token: str | None, artifact: str, fallback: str | None = None
) -> str | None:
if not token:
return fallback
return f"{BACKEND_API_ENDPOINT}/api/v1/public/download/workflow/{token}/{artifact}"