dsh-sa-workbench 0.0.0-stage → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +17 -3
- package/bootstrap.js +21 -0
- package/client.js +4326 -0
- package/cordis.patch.yml +4 -0
- package/icon.svg +1 -0
- package/index.js +12 -0
- package/modules/dsh-pm-core/documents.js +85 -0
- package/modules/dsh-pm-core/engine.js +1186 -0
- package/modules/dsh-pm-core/index.js +300 -0
- package/modules/dsh-pm-core/methodology.js +81 -0
- package/modules/dsh-pm-core/releases.js +71 -0
- package/modules/dsh-pm-core/settings.js +95 -0
- package/modules/dsh-pm-core/sources.js +60 -0
- package/modules/dsh-pm-skills/index.js +94 -0
- package/modules/dsh-pm-skills/manager.js +172 -0
- package/modules/dsh-pm-skills/skills/pm-archive/SKILL.md +14 -0
- package/modules/dsh-pm-skills/skills/pm-clarify/SKILL.md +12 -0
- package/modules/dsh-pm-skills/skills/pm-deliver/SKILL.md +16 -0
- package/modules/dsh-pm-skills/skills/pm-intake/SKILL.md +14 -0
- package/modules/dsh-pm-skills/skills/pm-prd/SKILL.md +20 -0
- package/modules/dsh-pm-skills/skills/pm-prd/references/analysis.md +26 -0
- package/modules/dsh-pm-skills/skills/pm-prd/templates/prd-template.md +47 -0
- package/modules/dsh-pm-skills/skills/pm-prototype/SKILL.md +20 -0
- package/modules/dsh-pm-skills/skills/pm-solution/SKILL.md +18 -0
- package/modules/dsh-pm-ui/assets/Outfit-LICENSE.txt +93 -0
- package/modules/dsh-pm-ui/assets/outfit-latin-wght-normal.woff2 +0 -0
- package/modules/dsh-pm-ui/assets/sa-glass.css +609 -0
- package/modules/dsh-pm-ui/assets/version-plan-template.xlsx +0 -0
- package/modules/dsh-pm-ui/client.js +4326 -0
- package/modules/dsh-pm-ui/directories.js +34 -0
- package/modules/dsh-pm-ui/file-location.js +63 -0
- package/modules/dsh-pm-ui/index.js +536 -0
- package/modules/dsh-pm-ui/package.json +1 -0
- package/modules/dsh-pm-ui/spreadsheets.js +53 -0
- package/modules/dsh-pm-ui/vendor/ExcelJS-LICENSE.txt +22 -0
- package/modules/dsh-pm-ui/vendor/README.md +1 -0
- package/modules/dsh-pm-ui/vendor/exceljs.cjs +45 -0
- package/package.json +72 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 SA Workbench contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# SA 工作台 · dsh-sa-workbench
|
|
2
|
+
|
|
3
|
+
在 DeepSeek Harness 桌面版插件页输入 `dsh-sa-workbench` 安装。已安装后通过同一插件页检查、选择并更新版本,无须安装 EXE。安装名在首次公开发布后可用;测试构建与正式发布记录以仓库交付说明为准。
|
|
4
|
+
|
|
5
|
+
需求总览、版本计划、业务资料上传、需求/高阶方案/PRD/原型、节点 Skill、文档历史和交付归档在一个包里同步更新。复用 DSH 的模型、会话、权限和工具,不包含模型凭据或业务资料。
|
|
6
|
+
|
|
7
|
+
首次打开 SA 工作台会进入目录设置。选择资料工作目录,保存后按提示完整重启 DSH。默认提供的目录也可以直接确认。插件更新、回退和卸载保留工作目录及配置。
|
|
8
|
+
|
|
9
|
+
需要 Node 24.9+ 运行时与 DSH 0.2.2-rc.1 系列;当前实机验证版本以发布验收文档为准,版本范围不代表所有未来宿主均已测试。
|
|
10
|
+
|
|
11
|
+
已有 EXE/三个 dsh-pm-* 本地包的用户需先执行旧版迁移流程,保留原始目录和设置,避免两份插件同时注册。迁移不会搬移或删除业务资料。
|
|
12
|
+
|
|
13
|
+
配置默认存放在 DSH_HOME/plugins/dsh-sa-workbench/settings.json;迁移时 bootstrap.json 可指向原来的设置位置。目录切换只改变连接,不自动搬移文档。用户 Skill 副本独立于发布包,更新不覆盖。
|
|
14
|
+
|
|
15
|
+
公开仓库:https://github.com/SacharnYan/pm-agent
|
|
16
|
+
|
|
17
|
+
MIT
|
package/bootstrap.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import fs from 'node:fs'
|
|
2
|
+
import os from 'node:os'
|
|
3
|
+
import path from 'node:path'
|
|
4
|
+
|
|
5
|
+
/** All paths are user-owned, outside the npm install directory. No profile files are rewritten. */
|
|
6
|
+
export function resolveBootstrap(config = {}, env = process.env, userHome = os.homedir()) {
|
|
7
|
+
const home = path.resolve(env.DSH_HOME || path.join(userHome, '.dsh'))
|
|
8
|
+
const stateDir = path.join(home, 'plugins', 'dsh-sa-workbench')
|
|
9
|
+
const pointerFile = path.join(stateDir, 'bootstrap.json')
|
|
10
|
+
let pointer = {}
|
|
11
|
+
try { pointer = JSON.parse(fs.readFileSync(pointerFile, 'utf8').replace(/^\uFEFF/, '')) }
|
|
12
|
+
catch (error) { if (error.code !== 'ENOENT') throw new Error('SA 启动配置无法读取:' + error.message) }
|
|
13
|
+
if (pointer.schemaVersion !== undefined && pointer.schemaVersion !== 1) throw new Error('不支持的 SA 启动配置版本')
|
|
14
|
+
const workspaceRoot = config.workspaceRoot || env.DSH_PM_WORKSPACE || pointer.workspaceRoot || path.join(home, 'workspaces', 'sa-workbench')
|
|
15
|
+
const settingsFile = config.settingsFile || pointer.settingsFile || path.join(stateDir, 'settings.json')
|
|
16
|
+
for (const [key,value] of Object.entries({workspaceRoot,settingsFile})) {
|
|
17
|
+
if (typeof value !== 'string' || !path.isAbsolute(value)) throw new Error('SA ' + key + ' 必须是绝对路径')
|
|
18
|
+
}
|
|
19
|
+
return {...config, workspaceRoot:path.resolve(workspaceRoot), settingsFile:path.resolve(settingsFile),
|
|
20
|
+
requireSetup: !(config.workspaceRoot || env.DSH_PM_WORKSPACE || pointer.configured), registryDistribution:true}
|
|
21
|
+
}
|