@y9931666/dsh-plugin-crossfire 0.1.3 → 0.2.0

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.
Files changed (39) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +10 -7
  3. package/lib/index.js +675 -66
  4. package/lib/types/budget.d.ts +86 -0
  5. package/lib/types/client/ReviewCard.d.ts +41 -0
  6. package/lib/types/client/SettingsView.d.ts +34 -0
  7. package/lib/types/client/brand.d.ts +55 -0
  8. package/lib/types/client/defectTitle.d.ts +32 -0
  9. package/lib/types/client/icons.d.ts +23 -0
  10. package/lib/types/client/index.d.ts +21 -0
  11. package/lib/types/client/locales.d.ts +19 -0
  12. package/lib/types/client/merge.d.ts +27 -0
  13. package/lib/types/client/promptView.d.ts +63 -0
  14. package/lib/types/client/session-cache.d.ts +49 -0
  15. package/lib/types/client/slot-boundary.d.ts +46 -0
  16. package/lib/types/client/wire.d.ts +192 -0
  17. package/lib/types/dimensions.d.ts +47 -0
  18. package/lib/types/engine.d.ts +190 -0
  19. package/lib/types/etag.d.ts +40 -0
  20. package/lib/types/expert-events.d.ts +110 -0
  21. package/lib/types/export-md.d.ts +21 -0
  22. package/lib/types/harness-compat.d.ts +104 -0
  23. package/lib/types/index.d.ts +89 -0
  24. package/lib/types/members.d.ts +143 -0
  25. package/lib/types/noise.d.ts +29 -0
  26. package/lib/types/plan.d.ts +111 -0
  27. package/lib/types/preferences.d.ts +134 -0
  28. package/lib/types/prompt.d.ts +16 -0
  29. package/lib/types/redteam.d.ts +123 -0
  30. package/lib/types/review.d.ts +152 -0
  31. package/lib/types/rpc.d.ts +176 -0
  32. package/lib/types/split.d.ts +156 -0
  33. package/lib/types/state.d.ts +84 -0
  34. package/lib/types/tools.d.ts +60 -0
  35. package/lib/types/types.d.ts +336 -0
  36. package/lib/types/version.d.ts +18 -0
  37. package/lib/types/web-guard.d.ts +55 -0
  38. package/package.json +40 -37
  39. package/release-notes/v0.2.0.md +44 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 dsh-plugin-crossfire 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
@@ -31,26 +31,27 @@ dsh plugin --profile web add @y9931666/dsh-plugin-crossfire
31
31
 
32
32
  安装后**重启 Harness 进程**并刷新浏览器(host 侧改动不热重载)。
33
33
 
34
- 环境要求:DeepSeek Harness `0.2.0-rc.2+`、Node `>= 22`(开发时为 `24.x`)。
34
+ 环境要求:DeepSeek Harness `0.2.2-rc.1+`、Node `>= 22`(开发时为 `24.x`)。
35
35
 
36
36
  ## 用法
37
37
 
38
38
  在对话里说一句「用针锋评审一下这个方案」,或者在卡片上点按钮 —— 两条路驱动的是**同一套状态机**。
39
39
 
40
40
  ```
41
- draft ──送红队上场──▶ attacking ──收集观点──▶ judging ──定稿──▶ settled
42
- ▲ │
43
- └──── 开复审 ─────┘
44
- (只核对旧账)
41
+ crossfire_plan_review ──▶ crossfire_open ──送红队上场──▶ attacking ──收集观点──▶ judging ──定稿──▶ settled
42
+ (设置确认卡,不落盘) (draft) ▲ │
43
+ └──── 开复审 ─────┘
44
+ (只核对旧账)
45
45
  ```
46
46
 
47
47
  ### 工具面(`crossfire_*`)
48
48
 
49
49
  | 工具 | 作用 |
50
50
  | --- | --- |
51
- | `crossfire_open` | 把待验证对象摆上台(标题 + 正文 + 维度 + 强度)。状态 `draft` |
51
+ | `crossfire_plan_review` | **开评第一步**:弹设置确认卡(表 1 评审设置 + 表 2 红队阵容),阻塞等用户「确定开始 / 仍需修改」;**不落盘、不拉专家**。确认后把返回的完整配置(含 `experts`)原样传给 `crossfire_open` |
52
+ | `crossfire_open` | 把待验证对象摆上台(标题 + 正文 + 维度 + 强度 + 确认过的 `experts`)。状态 `draft` |
52
53
  | `crossfire_stance` | 写入用户的立场与理由;没有就**从对话提炼**(`distilled=true`),但绝不虚构 |
53
- | `crossfire_attack` | 按维度拉起只读红队专家。状态 `attacking` |
54
+ | `crossfire_attack` | 按维度拉起只读红队专家(优先用确认卡落盘的 `expertRoster`)。状态 `attacking` |
54
55
  | `crossfire_collect` | 把专家发言拆成逐条可裁决的缺陷。状态 `judging` |
55
56
  | `crossfire_finish` | 定稿,固化 known-flaws 清单并写入历史。状态 `settled` |
56
57
  | `crossfire_recheck` | 复审:只核对上一轮已认定的缺陷是否修复 |
@@ -61,6 +62,8 @@ draft ──送红队上场──▶ attacking ──收集观点──▶ judgi
61
62
 
62
63
  在对话轨迹里占一张卡(`tool.call.toolview`,key = `crossfire_open`),每张缺陷一张子卡,可内联**认定 / 驳回(必填理由)/ 待定**,三态可互切。卡片每秒轮询快照,因此状态机一变它立刻跟着变。
63
64
 
65
+ **启动前确认卡(v0.2.0)**:`crossfire_plan_review` 在轨迹里先占一张设置卡 —— 两张 Markdown 表(评审设置 / 红队阵容),按钮「确定开始」/「仍需修改」。改完再弹时顶部列「本次变更」;主持人没写就如实标「(本次未标注具体变更)」。确认卡**只确认怎么开评**,认定 / 驳回仍在评审卡上由人完成。
66
+
64
67
  顶部影响条显示 `认定 / 驳回 / 待定` 与"打穿立场"的条数。
65
68
 
66
69
  **视觉(v0.1.3)**:每条缺陷左侧有一条 3px 状态色条(认定=绿 / 驳回=红 / 待定=灰),十几条缺陷的分布一眼可见;折叠标题不再把长定位串塞进标题,改为「观点 N · 核心句」(完整路径留在展开后的正文);状态区文案从「待定 9 / 表态 9」改为「待定 9 / 共 9 条」。设置页改为卡片分组、控件统一 32px 高,并用内联 SVG 图标做区块目录。