dsh-knj-reqwork
Manifest validDSH Plugin: Requirements Workbench (Requirements Import, Breakdown, and Tracking)
dsh-knj-reqwork
dsh-knj-reqwork is a private PM workbench for DeepSeek Harness (DSH). It treats the local frontend codebase as the source of truth: instead of recreating a design file, it reads the configured Vue Router and presents the resulting pages in the DSH web workspace.
Not a Figma replacement. This plugin borrows the useful interaction contracts of selection, source inspection, layout, and snapshots, but it is not a vector-design or collaboration product. It does not implement vector editing, multi-user collaboration, comments or approvals, remote-file permissions, cloud files, or component publishing. The relevant product-research notes are in
docs/research/2026-09-05-figma-private-workbench-patterns.mdwhen present in the larger project.
M0: available now
M0 is deliberately read-only and has no persistence. Its capabilities are:
- Vue Router page list — scans supported Vue Router entry files and lists discovered route pages.
- Fixed project root — by default, reads
D:\workspace\knsearch-test\knsearch_web; a host configuration may supplyprojectRootfor a different local project root. - Stable PageRef — selecting a page exposes a stable
@page:<path>reference, for example@page:/home. - Source inspector — shows the selected route, component source, and available layout metadata.
- Host API — registers the read-only
GET /dsh-knj-reqwork/pagesendpoint through the DSHwebServerservice. It returns{ ok, root, pages }on success and uses 404/405/500 for unsupported paths, methods, and scanner failures. - Sidebar/main-area workbench panel — injects a
需求工坊entry into theknj.menu.itemslot and mounts the panel in the DSH conversation/main area. The client lifecycle is reversible: it removes its menu entry, DOM, styles, observer, and listeners when disposed.
The host entry exports scanVueRouter, mountReqworkRoutes, BASE, PAGES_PATH, and DEFAULT_PROJECT_ROOT; the client entry is exported as dsh-knj-reqwork/client for DSH web loading.
Install
-
Build and package this plugin:
npm.cmd run check npm.cmd test npm.cmd pack -
Install the generated tarball into the DSH web profile:
dsh plugin --profile web add ./dsh-knj-reqwork-<ver>.tgz -
Restart or reload the DSH web host as appropriate for the host environment, then open the
需求工坊menu item.
<ver> is the package version in package.json; M0 currently produces dsh-knj-reqwork-2026.9.5.tgz.
Development and verification
This package requires Node.js 20 or newer. Use npm.cmd in PowerShell so the npm PowerShell shim is not invoked.
npm.cmd install
npm.cmd run typecheck
npm.cmd run build
npm.cmd run check
npm.cmd test
npm.cmd pack
checkruns both TypeScript configurations and builds the host and client artifacts.testuses Node's built-in test runner (node --test).packproduces an ignored.tgzarchive for package-content inspection; do not commit it.
The repository .npmrc enables legacy-peer-deps because the pinned DSH pre-release package peers require it during install.
Architecture
DSH host (Cordis) DSH web client
┌─────────────────────────┐ ┌─────────────────────────────────┐
│ apply(ctx) │ │ client apply({ slots }) │
│ inject: webServer │ │ inject: ['slots'] │
│ /dsh-knj-reqwork/pages │──────▶│ knj.menu.item → panel mount │
│ scanVueRouter(root) │ JSON │ page list → PageRef + inspector │
└───────────┬─────────────┘ └─────────────────────────────────┘
│
▼
local Vue Router source beneath projectRoot
The host scanner looks only for these router candidates beneath projectRoot:
src/router/index.jssrc/router/index.tssrc/router.jssrc/router.ts
It extracts route paths, names, dynamic-imported .vue components, and the current home-child layout metadata convention. The client fetches the pages endpoint with an abortable request and is defensive about repeated apply/dispose calls.
Data and security boundaries
- Local and read-only: M0 reads local router/component metadata only. It creates no database, cache, project file, cloud record, or other persistent state.
- Configured-root boundary: the scanner resolves component paths relative to the selected router and rejects paths outside
projectRoot; only the router candidate list above is considered. - Endpoint boundary: only same-host requests to the fixed endpoint path are served, and only
GETis accepted. The DSH host is responsible for the surrounding origin/session boundary; the plugin does not expose a cross-origin API. - No remote collaboration surface: no upload, remote file browsing, sharing, permission management, comments, approval flow, or cloud component registry exists in M0.
- Code is authoritative:
@page:<path>identifies a router route; it is not a separate editable design document.
Roadmap
- M1:
CanvasNode, Layers, Inspector, and local layout-oriented workbench primitives. - M2: richer layout work, source-aware comparison/diff, and snapshot-oriented flows.
- M3: follow-on workflow capabilities, still constrained by the private, code-as-truth model.
Future milestones may borrow familiar Figma-like interaction vocabulary, but the boundary remains: this project is a private code workbench, not a replacement for Figma.
License
MIT © 2026 yangdongzhen
Comments
Loading…
Similar plugins
by CHAAAAA
DeepSeek Harness(DSH)的项目与工程管理插件,把需求、项目文档、Git 提交、AI 提交信息、代码评审、工作树、后台任务与周报聚合到一个侧边栏工作台里。
★ 0
MIT
TypeScript
Nov 2, 2026
dsh plugin --profile web add dsh-devbench-pluginby callmesoul
DSH (DeepSeek Harness) 任务看板插件:主机状态机 + git 调度 + 浏览器看板 UI,agent 自动执行任务、审核后自动合并回基础分支
★ 4
Vue
Nov 12, 2026
dsh plugin --profile web add @deepseek-kanban/pluginby wuyh
DSH (DeepSeek Harness) Web 工作区工具箱插件:文件浏览、Docker 与 Vite 项目管控、SSH/容器终端。
★ 0
MIT
TypeScript
Aug 19, 2026
dsh plugin --profile web add dsh-workspace-toolboxby Songran241
DeepSeek Harness Web UI 插件:需求管理工作台,从对话/文本/本地文件解析并管理需求与子任务,支持截止时间与超时提醒。
★ 0
MIT
TypeScript
Aug 17, 2026
dsh plugin --profile web add @dsh-community/dsh-req-workbenchby Lorvaste
DSH 插件:项目初始化插件,通过结构化的整理编排,需求与要素确认,无论是项目刚起步还是准备维护,都有一个好的开始.
★ 0
Apache-2.0
Go Template
Sep 1, 2026
dsh plugin --profile web add dsh-project-initializationby JohnXu22786
DSH 插件:为任务自动创建隔离的 git 工作区,管理创建/同步/收尾全生命周期 (task-isolated git worktrees for DeepSeek Harness)
★ 2
MIT
JavaScript
Oct 24, 2026
dsh plugin --profile web add worktree-mgr