dsh-artifact
Claude-Code 风格的 Artifacts 插件,支持写入独立 HTML、沙箱预览、侧边栏导航及专属浏览器。
AI 分析
核心用途是让 Agent 能够生成并实时预览富媒体、交互式 HTML 页面。适合需要 AI 编写前端网页、小游戏或可视化图表并直接在 DSH 中查看的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Jannchie/dsh-artifact说明文档
阅读完整 README ↗Configuration
Override in your profile's cordis.patch.yml:
- id: artifact
config:
# Artifact directory. Omit or null for $DSH_HOME/artifacts.
root: /absolute/path/to/artifacts
# Maximum characters accepted in one write.
maxArtifactChars: 400000
# Inject the system-prompt section about when to write an artifact.
promptSection: true
# Register the bundled writing-artifacts skill.
skill: true
# Colors handed to previewed artifacts, layered over the live theme.
# A key without a leading `--` is read as an alias token.
palette:
state-business-primary: '#e0552b'