Windows only: runs a build command through cmd.exe, collects the artifacts with sizes and SHA-256 prefixes, verifies expected outputs, and writes a report for each run.
Install
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/474885697-alt/dsh-kit/releases/download/v0.1.0/dsh-build-ship-0.1.0.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:474885697-alt/dsh-kit#path:/plugins/dsh-build-ship
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.
一条命令跑完「构建 → 收集产物 → 校验 → 出报告」。
版本 0.1.0 | 包名 dsh-build-ship | 仅宿主侧(无客户端代码)| MIT
它解决什么问题
打包后最常见的问题是「产物到底生成了没、多大、是不是这次编的」。
ship_run 把三步串起来:跑构建命令(cmd.exe /d /s /c,带超时)、列产物(大小 + sha256 前 16 位)、按期望文件名校验,最后写一份报告。
输出像流水账但很好查:退出码、输出尾部 40 行、每个产物的哈希。
安装
plugin_manager install_bundle target="C:/Users/03/Documents/deepseek-harness/default-workspace/plugins/dsh-build-ship"
装完即可用,工具会出现在工具列表里;用 plugin_health 可以体检清单。要卸载就用插件页的开关。
工具
| 工具 | 用途 | 参数(* 表示必填,? 表示可选) |
|---|---|---|
ship_build |
在项目目录跑构建命令,返回退出码与输出尾部 | cwd stringbuild_cmd stringtimeout_ms? integer |
ship_collect |
列出产物的大小与短哈希,可校验期望文件名 | out_dir stringexpect? array |
ship_run |
完整流水线:构建 → 收集产物 → 校验 → 写报告 | cwd stringbuild_cmd stringout_dir? stringexpect? arraytimeout_ms? integer |
用法示例
示例:完整流水线
ship_run(cwd="D:/proj", build_cmd="npm run build", out_dir="D:/proj/dist", expect=["index.html","app.js"])
示例:只看产物
ship_collect(out_dir="D:/proj/dist")
# → { files: [{ name, bytes, sha256: "1a2b…" }], missing: [] }
HTTP 路由(仅本机 loopback)
| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /api/dsh-build-ship/report |
返回最近一次打包报告 |
配置
- 无需配置;
timeout_ms默认 10 分钟。
数据存在哪
- 报告:
~/.dsh/dsh-build-ship/reports/<时间戳>.json。
安全边界
- 构建命令由你显式传入,插件不读项目脚本自动执行;超时后杀进程树并返回已捕获输出。
已知行为
- Windows 下走
cmd.exe,&&、%VAR%语法可直接用;PowerShell 语法需自己包powershell -Command。
验收
- 假 ctx 单测覆盖成功/失败/超时;真宿主
/report200;对market/tarballs收集 10 个产物并出哈希。
宿主兼容性
- Web / 桌面宿主:HTTP 路由与工具都可用。
- headless / CLI(没有 webServer 服务):路由自动跳过,工具照常注册。
Links
More in this category
yjh051108/dsh-routing-suite★ 6994
One repository, three parts: a runtime injector for DSH plugin packages (inject, hot-reload, unload, promote a dev staging tool to the front, route self-heal, plus a settings-page plugin manager that lists, unloads and drags folders in to internalize), a task-aware reasoning-mode router agent preset (router-standard / router-spec / router-react), and a graded two-level task protocol whose six tools (commit_star, lock_stage, revise_do, edit_plan, mark_task, redteam_verdict) pin task state to disk. The injector implementation ships in-tree, so the install carries its own behaviour rather than a dependency list.
strukto-ai/mirage#dsh★ 3762
Swaps the filesystem and bash providers for a mirage virtual workspace: file tools and shell commands run over mounted resources (RAM, S3, Redis, Slack, Gmail, Notion, Postgres) instead of the host disk, with per-mount read/write/exec modes, per-command sandbox routing (monty, pyodide, quickjs in process; docker, e2b, daytona remote), and installed CLIs (git, gh, slack, linear, ntn, gws, or one you register) as head words in the virtual terminal.
first-fluke/oh-my-agent#dsh★ 1357
Runs project OMA checks before and after tool execution and when a turn tries to finish. Installs its OMA CLI dependency and initializes unconfigured projects on first use. Requires Node.js 22+; initial setup needs network access and project write access.
MichengAI/dsh-skills-manager★ 444
Manages local DeepSeek Harness skills in Settings and shows shared Agent skills as read-only.
hust-open-atom-club/oh-dsh★ 324
Community distribution: TUI, desktop, and Web UI as one bundle with layered installation.
Fishquito7/dsh-skill-mcp-panel★ 248
Manages DSH skills and MCP servers from the web settings: skill cards with hot enable/disable, workspace scopes, groups, batch migration and drag-and-drop import, plus stdio/HTTP MCP CRUD with connection tests, secret redaction and the unified dsh-panel CLI.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.