dsh-at-file
FSMargoo/dsh-at-fileCodex 风格的 `@file` 文件引用,输入框里直接搜索并引用工作区文件。
浏览器像素画与精灵动画编辑器,支持兼容 Aseprite 的文件、本地裁剪/描边蓝图和可选的 LLM 工作流节点。
兼容 Aseprite 文件格式的像素画 / 精灵动画编辑器插件,运行在 DeepSeek Harness 的 Web GUI 中。
画布特写:
透明背景使用标准方形棋盘格:
lib/index.js):仅作为 loader 行存在,让 dsh.client 声明被扫描;编辑器本身 100% 运行在浏览器里。client/client.js):遵循 window.__ModuleLoader__.load({ id, factory }) 契约,通过 ctx.slots 注册到 conversation.session.header.actions(头部按钮)和 conversation.input.dock(停靠面板)。src/ase-codec.js):按 Aseprite 文件格式规范 实现,写入 32bpp RGBA + raw cel + 新版调色板 chunk,Aseprite 可直接打开。dsh-aseprite/
├── package.json # dsh.bundle.patch + dsh.client 声明
├── README.md # English documentation
├── README.zh-CN.md # 中文文档
├── LICENSE
├── assets/ # GitHub 演示图
├── cordis.patch.yml # loader 行:- id: aseprite, name: 'dsh-aseprite'
├── lib/index.js # 宿主端(极简)
├── client/client.js # 浏览器 bundle(构建产物)
├── src/ase-codec.js # ASE 二进制编解码
├── src/editor.js # 文档模型 + 绘制/图层/帧操作 + 导出
├── src/blueprints.js # 安全声明式蓝图图引擎 + 本地库
├── src/client.js # React UI + apply()
├── tests/blueprints.test.mjs # 蓝图规范化/执行/解析测试
└── scripts/build.mjs # 零依赖构建脚本
node scripts/build.mjs # 重新生成 client/client.js
pnpm test:blueprints # 运行蓝图引擎测试
已通过 dsh plugin --profile web add 安装。手动重装:
# 将路径替换为本地插件目录;如无需显式 store-dir 可省略该参数
dsh plugin --profile web add --store-dir "<your-pnpm-store>" "file:<path-to-dsh-aseprite>"
装完后重启 DeepSeek Harness(关闭并重新打开),刷新页面,会话头部出现 🎨 按钮即成功。
dsh plugin --profile web remove dsh-aseprite
并删除 profile cordis.patch.yml 里手写的 aseprite 条目(如有),重启应用。