Fz2hOpenSource/firmware-forge--plugins-harness-ui ↗★ 3
@local/firmware-workbench-ui
基于 DSH 的 AI 嵌入式固件工程工作台,覆盖固件设计、协议设计、测试验证、编译、烧录与调试闭环。
설치
npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:Fz2hOpenSource/firmware-forge#6d97a435360c3b0591c63f8bb2bcfdc2bae187c3&path:plugins/harness-ui'Firmware workbench UI bundle
A local DSH Web UI bundle that adds a Firmware workbench tab to the session's
right sidebar. It coexists with the shipped right-sidebar tabs (files,
document previews, guide, terminal, browser, etc.) and never replaces
them.
Behaviour
- Registers a right-sidebar tab type through
ctx.sidebarRightTabs.register(id = @local/firmware-workbench-ui,kind = firmware-workbench) and its body through the keyedsidebar.right.pane.tabslot. - The tab body is session-scoped: it scans the session workspace through
remote.workspaceFiles.list(depth 6, skips.git,node_modules,Objects,Listings, etc.) and fills a project dropdown with the.uvprojxfiles it finds. Single-project workspaces select it automatically; multi-project workspaces require a choice and never ask for a manual path. - Controls: project dropdown, rescan,
Build(/build),Rebuild(/build -r),Flash(/flash), status text, and a collapsible output area. - Flash requires a second click on
Confirm flashbefore running. - Commands execute through
ctx.remote.commands.executein the current session, so the existing/buildand/flashcommand plugin owns the actual work.
Opening
- In a session using the
embeddedagent preset, a Workbench action appears beside the session title; clicking it opens (or focuses) the right-sidebar tab. - The first time such a session is shown, the tab is opened automatically through
ctx.sidebarRight.openTab. Closing the tab or the sidebar does not make the bundle reopen it repeatedly; use the header action to reopen. - Non-embedded sessions get no header action and no automatic tab.
Install
install.ps1 copies this directory to the workbench install root
($DSH_HOME/embedded-workbench/plugins/harness-ui) and registers it in every
profile that already exists: it writes the @local/firmware-workbench-ui
dependency and the dsh.profile.bundles entry into the profile manifest, then
runs the DSH-bundled pnpm. DSH resolves profile bundles at startup, so restart
the app after installing.
- First install before any profile exists: start DSH once, then rerun
install.ps1. - Skip it with
install.ps1 -SkipUi(skills, commands and scripts still deploy). - Manual fallback: install the directory from the install root with
plugin_manager action=install_bundle target=or the Plugin Manager UI. A failed registration rollback is reported with this path.
Reload the Web page after changing client code; a browser page keeps the old client module generation until it reloads.
Limitations (first version)
- Profile-wide bundle with a render-time preset check; DSH agent presets do not currently carry their own browser bundles.
- Project paths are passed as relative paths to the mdk command; paths containing
spaces would need command parsing support in
plugins/mdk. - Only build/rebuild/flash are wired. Structured UV4 errors, map/RAM summaries, serial/RTT and debugging are later slices.
- Build/flash require the embedded preset's
/buildand/flashcommands in the current session; the panel shows the command error when they are absent. install.ps1registers the bundle only for profiles that exist at install time; after creating a new profile, rerun it or install manually.
File map
| File | Purpose |
|---|---|
package.json | Bundle manifest: dsh.bundle.patch, dsh.client, exports, display icon. |
cordis.patch.yml | Inserts the Host row for this package. |
index.js | Host half (no Host services yet). |
client.js | Web UI: locale dictionaries, right-sidebar tab type/body, header action, workspace scan, build/flash controls. |
locale/en.json, locale/zh.json | Plugin Manager display metadata. |
icon.svg | Display icon. |