Adds a Trade Desk panel to the DSH sidebar for foreign-trade documents and container loading: quotation, PI/CI/PL/contract/customs documents, carton loading plans and a step-by-step loading animation. The existing offline single-file workbench is served same-origin inside the panel.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-plugin-demian-trade-suite
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:southcul/demian-trade-suite-dsh-plugin
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
把外贸单证、装柜计算与报价工作台接入 DeepSeek Harness Web UI。

功能
- 装柜计算:20GP / 40GP / 40HQ / 45HQ、4.2–7.6 米货车;多货物、包装填充、堆码/承压、摆放方向、间隙、整托;CBM、毛净重、装载率、重量饱和度、重心偏移、底层压强
- 装柜动画:按当前方案逐层播放,HUD 显示柜型、总箱数、箱规、层数与箱数;支持暂停 / 继续 / 重播
- 外贸单证:报价单、PI、CI、销售合同、装箱单、出口报关单、代理报关委托书;A4 实时预览、整套打印、金额大写、定金/尾款拆分
- 卖方信息:公司抬头、地址、税号、银行、Logo、公章、签名集中填写;保存后新建订单自动带出
- 导出:装柜方案 PDF、单证 PDF、草稿 JSON
安装
从 npm
dsh plugin --profile <profile> add dsh-plugin-demian-trade-suite
或使用官方桌面端:Settings → Plugins,搜索 dsh-plugin-demian-trade-suite 安装。刷新 DSH Web GUI 后,左侧栏出现 「外贸工作台」。
从 GitHub Release(推荐)
- 下载 最新 Release 里的
demian-trade-suite-dsh-plugin.zip - 解压,得到
demian-trade-suite-plugin/目录 - 打开 DSH Plugin Manager → 安装本地 bundle,选择这个目录
- 刷新 DSH Web GUI,左侧栏出现 「外贸工作台」
从源码
git clone https://github.com/southcul/demian-trade-suite-dsh-plugin.git
然后在 DSH Plugin Manager 里选择仓库根目录安装 bundle,刷新页面。
使用
点击左侧栏的「外贸工作台」图标,中间栏会打开完整工作台:
- 顶部切换 装柜计算 / 外贸单证
- 装柜页点「载入示例」或「开始计算」播放动画
- 单证页顶部「卖方信息」填一次并保存,之后自动带出
- 单证页右上「预览并打印 A4 单据」
结构
| 文件 | 作用 |
|---|---|
index.js |
Host 半:在 DSH 同源 Web 服务上提供 /plugins/demian-trade-suite/workbench.html |
client.js |
Client 半:左侧栏入口 + 中间栏 iframe 页面 |
assets/workbench.html |
现有单文件工作台,原样打包 |
locale/*.json |
插件标题 / 描述 |
icon.svg |
插件图标 |
scripts/package.py |
重新生成 Release zip |
数据与迁移
- 插件运行在 DSH 的 origin(默认
http://127.0.0.1:13807)。 - 直接双击
workbench.html时是file://origin;两者的localStorage不共享。 - 需要迁移旧数据时,在旧版用「导出」保存草稿,再在插件版「导入」;卖方信息包含在草稿里。
说明与边界
- 现有版本是完整的单文件应用,本插件用同源 iframe 作为兼容层,避免重写单证、画布和打印逻辑。
- 切换到其他侧栏页面时 iframe 会被卸载;工作台会自动保存草稿,回来后会恢复。
- 插件只负责 UI 入口;Agent 出单技能需另装 demian-trade-suite。
- 如果要完全贴合 DSH 主题的原生 React 面板,需要后续把工作台拆成组件。
开发
python scripts/package.py
产物:dist/demian-trade-suite-dsh-plugin.zip,只含安装需要的文件。
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 9925
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 9925
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 6712
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
ccch1mneyyy/dsh-TUI★ 6538
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
omdsh-dev/DSH-better-sidebar★ 4808
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1672
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.