Capabilities Artifacts & previews

Artifacts, Domain URIs & Live Previews

Language: English · 简体中文

Every durable entity in CrewDesk — artifacts, requirements, workflows, wiki pages, projects, chats, and agents — is addressable through a unified domain resource URI scheme shared across the Web UI, Markdown renderer, and the PA's resource_read tool.

Unified Domain Resource URIs (7 Protocols)

Insert any URI via @ Cite in the composer or let agents reference it directly in Markdown prose:

ProtocolExample URIWhat It Resolves To
artifacts://artifacts://reviews/delivery-gate-report.htmlTyped deliverable stored on disk with SHA-256 verification (optional #L1-L40 line range).
requirements://requirements://req_demo_idempotencyTracked Requirement (goal, constraints, acceptance criteria, linked runs).
workflows://workflows://nightly-quality-gate or .../runs/<execId>Workflow DAG definition or specific execution run.
wiki://wiki://decisions/idempotency-keys.md#overviewGit-backed Wiki page (optional heading anchor).
projects://projects://<projectId> (or /branch/..., /path/...)Registered Git project, branch, or repo file path.
chats://chats://<conversationId> (optional #seq=12-18)Historical conversation or ledger sequence span.
agents://agents://defaultTeam member definition (PA or Worker).

Every recognized URI renders as a compact clickable chip inline inside paragraphs and bullet lists — stripping noisy protocol boilerplate while preserving the full URI on hover. Clicking a chip opens its live preview in the right-hand Inspector / Cite Pane without navigating away from your chat.

Live Visual Previews in Chat

Deliverables published via artifact_upload (and pasted chat images stored as artifacts) render directly underneath the turn in the chat timeline:

File TypeIn-Chat DisplayInspector Drawer Display
HTML (.html, .htm)Capped 280px sandboxed <iframe sandbox="allow-scripts"> with inline Preview / Source toggle, Expand, and Download (lazy-mounted via IntersectionObserver).Full-height (72vh) sandboxed iframe + Preview / Source toggle.
SVG & Images (.svg, .png, .jpg, .gif, .webp)Centered inline image (max-h: 260px) at natural proportions + Expand & Download.Centered padded preview (max-h: 70vh) with proper MIME metadata (image/svg+xml, image/png, etc.).
JSON (.json)Compact row card (folder · size, Preview, Download).Automatic 2-space pretty-printed JSON.
Markdown (.md)Compact row card.Full rendered editorial Markdown.
PDF / Audio / Video / Plain TextCompact row card.Embedded PDF frame, HTML5 media controls, or monospace text viewer (capped at 256 KB preview; full bytes on download).

Security: HTML previews strictly use sandbox="allow-scripts" without allow-same-origin, isolating interactive scripts into an opaque null origin that cannot read console cookies or DOM state.

Open Work → Artifacts to browse every artifact stored across the workspace:

  • Filter by kind (All, Documents, Changes, Visual, Other), folder dropdown, or text search.
  • Upload local files manually via Upload to pass them into conversations or workflows.
  • Inspect provenance (which agent, run, conversation, or requirement produced the file) and SHA-256 verification status (GET /api/artifacts/verify).