Inkotake/dsh-rich-artifacts0

dsh-rich-artifacts

DeepSeek Harness Artifact/Deliverable plugin: publish workspace files as chat artifacts with inline image previews and download cards.

包名
dsh-rich-artifacts
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Inkotake/dsh-rich-artifacts

Usage

The plugin registers a system-prompt section, so the model should call the tool on its own when it creates a deliverable. You can also ask for it directly:

Create a training-loss chart, export it to CSV, and publish both files as artifacts.

The agent then runs:

publish_artifact({ "path": "output/loss.png", "display": "auto" })
publish_artifact({ "path": "output/loss.csv" })

and the turn tail shows the image inline plus a CSV download card.

Configuration

In the profile cordis.patch.yml:

- id: dsh-rich-artifacts
  name: dsh-rich-artifacts
  config:
    root: ~/.dsh/artifacts
    maxFileBytes: 104857600
    maxTurnBytes: 524288000
    maxImageBytes: 20971520
    maxImagePixels: 40000000
    inline:
      png: true
      jpeg: true
      webp: true
      gif: true
      svg: false
FieldDefaultMeaning
root~/.dsh/artifactsArtifact storage root
maxFileBytes104857600Per-file size cap
maxTurnBytes524288000Reserved per-turn cap (not yet enforced in V0.1)
maxImageBytes20971520Max inline image size
maxImagePixels40000000Max inline image pixels (best-effort parse)
inline.*png/jpeg/webp/gif: true, svg: falseWhich image types may render inline