Inkotake/dsh-rich-artifacts ↗★ 0
dsh-rich-artifacts
富媒体产物插件:将工作区文件发布为聊天交互卡片,支持图片行内预览和文件下载卡片。
AI 分析
核心用途是优化 AI 生成文件的展示与获取。适合经常让 AI 生成图表、CSV 或其他文件,并希望在聊天中直接预览和下载的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Inkotake/dsh-rich-artifacts說明文件
閱讀完整 README ↗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
| Field | Default | Meaning |
|---|---|---|
root | ~/.dsh/artifacts | Artifact storage root |
maxFileBytes | 104857600 | Per-file size cap |
maxTurnBytes | 524288000 | Reserved per-turn cap (not yet enforced in V0.1) |
maxImageBytes | 20971520 | Max inline image size |
maxImagePixels | 40000000 | Max inline image pixels (best-effort parse) |
inline.* | png/jpeg/webp/gif: true, svg: false | Which image types may render inline |