dsh-redteam-report 0.2.0 → 0.2.1
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/README.md +3 -3
- package/WORKSPACE-REPORTS.md +1 -1
- package/lib/client.js +0 -3
- package/package.json +2 -2
- package/src/workspace-client.js +0 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 红队报告 · DSH 插件
|
|
2
2
|
|
|
3
|
-
`dsh-redteam-report` **0.2.
|
|
3
|
+
`dsh-redteam-report` **0.2.1**:报告跟随当前工作区,切换工作区后自动采集文件、会话与证据,调用宿主模型生成报告,可编辑并导出 Markdown、HTML 或 Word。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
dsh plugin --profile web add dsh-redteam-memory@0.4.0
|
|
11
|
-
dsh plugin --profile web add dsh-redteam-report@0.2.
|
|
11
|
+
dsh plugin --profile web add dsh-redteam-report@0.2.1
|
|
12
12
|
# 完成后重启现有 dsh web
|
|
13
13
|
```
|
|
14
14
|
|
|
@@ -70,7 +70,7 @@ dsh plugin --profile web add dsh-redteam-report@0.2.0
|
|
|
70
70
|
|
|
71
71
|
工作区报告库为插件文件系统默认可写位置下的 `.redteam-report-ws-<工作区指纹>.json`,实际路径在面板中显示。工作区库路径固定,不能通过设置指向另一个工作区的报告库。
|
|
72
72
|
|
|
73
|
-
旧版 `.redteam-report.json`
|
|
73
|
+
旧版 `.redteam-report.json` 保留不动。新工作区继承旧库的默认配置,但旧报告没有可信的工作区归属,因此不自动迁移,也不会在界面上反复提示。
|
|
74
74
|
|
|
75
75
|
Word 是自实现的 ZIP/OOXML 输出,不需要 Office 服务。没有内嵌字体、页眉页脚等高级排版,需要时可在 Word 中二次编辑。
|
|
76
76
|
|
package/WORKSPACE-REPORTS.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 工作区自动报告
|
|
2
2
|
|
|
3
|
-
从 `dsh-redteam-report 0.2.
|
|
3
|
+
从 `dsh-redteam-report 0.2.1` 起,此功能已接入正式包的 `lib/host.js` 和 `lib/client.js`。旧报告引擎及 UI 模板保留用于每工作区隔离和回归测试,不再直接作为发布入口。此前的会话内动态加载仍只在进程内有效;正式安装后请重启 Harness,由 profile 自动挂载。
|
|
4
4
|
|
|
5
5
|
## 行为
|
|
6
6
|
|
package/lib/client.js
CHANGED
|
@@ -591,10 +591,7 @@ function applyClient(ctx) {
|
|
|
591
591
|
snap && draft ? setTab_() : el('div',{className:'rtr-dim'},'加载报告设置…'));
|
|
592
592
|
return el('div', { className: 'rtr-root' },
|
|
593
593
|
head(),
|
|
594
|
-
hint('当前工作区:' + (props.workspaceTitle || '') + ' · ' + props.workspacePath),
|
|
595
|
-
hint('切换工作区自动采集并生成;相同证据复用已有报告,五分钟内不重复自动生成。配置入口:设置 → 红队设置。'),
|
|
596
594
|
activationError ? el('div',{className:'rtr-warn'},activationError) : null,
|
|
597
|
-
st && st.legacyUnassignedReports ? hint('旧版未归属工作区报告 ' + st.legacyUnassignedReports + ' 份仍保存在旧报告库,未自动迁移。') : null,
|
|
598
595
|
st && st.queued ? hint('等待自动报告任务…') : null,
|
|
599
596
|
st && st.lastError ? el('div',{className:'rtr-warn'},st.lastError) : null,
|
|
600
597
|
error ? el('div', { className: 'rtr-errbar' }, el('span', null, error), el('button', { className: 'rtr-x', onClick: function () { setError(null) } }, '×')) : null,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-redteam-report",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "DSH 红队报告:按工作区隔离,切换时自动采集文件与会话并生成可导出的报告",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "fasthei",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@deepseek-ai/dsh-tools": "*",
|
|
53
|
-
"dsh-redteam-memory": "^0.4.
|
|
53
|
+
"dsh-redteam-memory": "^0.4.1"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build:lib": "node tools/build-lib.mjs",
|
package/src/workspace-client.js
CHANGED
|
@@ -80,10 +80,7 @@ export function rptBuildWorkspaceClientSource(input) {
|
|
|
80
80
|
snap && draft ? setTab_() : el('div',{className:'rtr-dim'},'加载报告设置…'));
|
|
81
81
|
return el('div', { className: 'rtr-root' },`);
|
|
82
82
|
once(' head(),', ` head(),
|
|
83
|
-
hint('当前工作区:' + (props.workspaceTitle || '') + ' · ' + props.workspacePath),
|
|
84
|
-
hint('切换工作区自动采集并生成;相同证据复用已有报告,五分钟内不重复自动生成。配置入口:设置 → 红队设置。'),
|
|
85
83
|
activationError ? el('div',{className:'rtr-warn'},activationError) : null,
|
|
86
|
-
st && st.legacyUnassignedReports ? hint('旧版未归属工作区报告 ' + st.legacyUnassignedReports + ' 份仍保存在旧报告库,未自动迁移。') : null,
|
|
87
84
|
st && st.queued ? hint('等待自动报告任务…') : null,
|
|
88
85
|
st && st.lastError ? el('div',{className:'rtr-warn'},st.lastError) : null,`);
|
|
89
86
|
once("btn('保存设置'", "btn('保存报告设置'");
|