Kanshō/Artifact stack

Artifact stack

A vertical stack of generated artifacts — files, screenshots, reports, patches, structured JSON, charts, links. Keeps the rows aligned and surfaces an empty state; per-row rendering is delegated to the artifact preview row.

Included in the single kansho full pack. Components are not offered as separate installs.

Populated

Mixed types and states · Static preview: artifact actions require host callbacks
Generated artifacts5

fix/retry-backoff.diff

Code agent· 1m ago· 3.1 KB· 96% conf.
Ready

postmortem-draft.md

Audit writer· 2m ago· 12.4 KB
Generating

dashboard-after-fix.png

Browser agent· 5m ago· 248 KB· 88% conf.
Ready

timeline.json

Audit writer· 6m ago· 6.0 KB
Partial

error-rate-over-time

Metrics agent· 8m ago
Stale

Empty

Nothing generated yet
Generated artifacts0

No artifacts yet

Component documentation

Artifact Stack

components/tasks/artifact-stack.tsx

Purpose

Groups artifact rows under an optional heading and empty state.

Appropriate use

Use for the output collection of one task when shared row actions can be addressed by artifact id.

Example

components/tasks/artifact-stack.tsx has a representative live example in the "Populated" section on /components/artifact-stack.

States

Supports populated and empty collections; each row retains its artifact type, lifecycle, and optional metadata.

API and props

ArtifactStack accepts title, artifacts, onOpen, onDownload, onCopy, and className; each ArtifactStackItem extends ArtifactPreviewRowProps with an id.

Dependencies

Direct imports are React, Lucide icons, ArtifactPreviewRow, and cn.

Accessibility

The optional heading and empty copy are visible text, and row action names come from ArtifactPreviewRow.

Limitations

It forwards only open, download, and copy actions; retry and inspect are not stack-level callbacks, and the host owns data changes and feedback.

Source

Source: components/tasks/artifact-stack.tsx.

Full pack

components/tasks/artifact-stack.tsx is documented at /components/artifact-stack and installs only through the single Kansho full pack; no individual component install is offered.