lantern-harness 0.1.12 → 0.1.14

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 (139) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/builtin/session/lh-nav-groups.mjs +177 -34
  3. package/cli/server.mjs +6 -0
  4. package/config/app.defaults.json +3 -1
  5. package/dist/500.html +5 -5
  6. package/dist/_astro/Base.XN4RkAyb.css +1 -0
  7. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.BS3Daz5F.js +1 -0
  8. package/dist/_astro/CaseExecBoard.6RFYgAq5.js +1 -0
  9. package/dist/_astro/CaseGenerateApp.BwvNF4eM.js +9 -0
  10. package/dist/_astro/CasesLibrary.LnLh6m6G.js +1 -0
  11. package/dist/_astro/ChatApp.bMYcVMLe.js +226 -0
  12. package/dist/_astro/{DashboardBoard.uPjTYpJZ.js → DashboardBoard.BKtXwr_n.js} +1 -1
  13. package/dist/_astro/{DocsFileBrowser.DvBPLCEp.js → DocsFileBrowser.nSAGUo3l.js} +1 -1
  14. package/dist/_astro/{DocsPager.EPT5-oEx.js → DocsPager.C6R2nQ60.js} +1 -1
  15. package/dist/_astro/{DrawerField.DqvXFCFh.js → DrawerField.BXWvezBs.js} +1 -1
  16. package/dist/_astro/ExcelFieldTags.CaD64a2w.js +152 -0
  17. package/dist/_astro/KnowledgeLibrary.fYr4VQkZ.js +1 -0
  18. package/dist/_astro/NavLibraries.CpnreEwA.js +1 -0
  19. package/dist/_astro/OverflowHint.DI-tZ2fv.js +1 -0
  20. package/dist/_astro/PluginsPage.B56V66Kk.js +7 -0
  21. package/dist/_astro/PluginsPage.DaLeNTSR.js +1 -0
  22. package/dist/_astro/PmBugsBoard.ifLSqDOs.js +1 -0
  23. package/dist/_astro/PmIterationsBoard.CVjphcgB.js +1 -0
  24. package/dist/_astro/{PmProjectDetail.BDKXOQJD.js → PmProjectDetail.Dudm02Xv.js} +1 -1
  25. package/dist/_astro/PmProjectsBoard.CKWUrQHF.js +1 -0
  26. package/dist/_astro/PmRequirementsBoard.CB33kbaD.js +1 -0
  27. package/dist/_astro/PmRequirementsBoard.CJFck3LB.js +1 -0
  28. package/dist/_astro/{PmShared.D69sPvec.js → PmShared.BwVlCk92.js} +1 -1
  29. package/dist/_astro/PromptMountDialog.D_94WQc3.js +58 -0
  30. package/dist/_astro/PromptsLibrary.Bn5Y9KTB.js +1 -0
  31. package/dist/_astro/{ReportsPage.N1EaH8E-.js → ReportsPage.BKcIJsLn.js} +1 -1
  32. package/dist/_astro/ReqAnalysisBoard.D1UGCxJd.js +28 -0
  33. package/dist/_astro/RequirementsLibrary.D5iItFfK.js +1 -0
  34. package/dist/_astro/SearchableSelect.BzNQ6oXG.js +1 -0
  35. package/dist/_astro/SelectDropdown.DqKxIust.js +1 -0
  36. package/dist/_astro/SettingsDialog.a99Y08tE.js +1 -0
  37. package/dist/_astro/SpaceSwitcher.DDGfnQBp.js +7 -0
  38. package/dist/_astro/TasksBoard.BniGtf89.js +1 -0
  39. package/dist/_astro/TemplatesLibrary.C3mqFIB0.js +1 -0
  40. package/dist/_astro/{TestStatsBoard.CgVvwMzN.js → TestStatsBoard.CyWsC1tC.js} +1 -1
  41. package/dist/_astro/Toast.BO2NFckG.js +1 -0
  42. package/dist/_astro/TodosBoard.Z4Ev2O0M.js +1 -0
  43. package/dist/_astro/UiAutoBoard.DOYiz3km.js +9 -0
  44. package/dist/_astro/app-config.Bm4oN4YP.js +1 -0
  45. package/dist/_astro/app-version.6yGkRTiD.js +1 -0
  46. package/dist/_astro/bash-tools.CPS0ZiKi.js +25 -0
  47. package/dist/_astro/fs-tools.3F9MFrLf.js +9 -0
  48. package/dist/_astro/{hydrate-cache.zljz1n5X.js → hydrate-cache.BJ2nzhRq.js} +1 -1
  49. package/dist/_astro/i18n.m5rqL3-h.js +7 -0
  50. package/dist/_astro/index.astro_astro_type_script_index_0_lang.CPKr56B1.js +1 -0
  51. package/dist/_astro/jszip.min.Bh2Mgo40.js +2 -0
  52. package/dist/_astro/{lib.BQbwbnfE.js → lib.S37S0T6S.js} +1 -1
  53. package/dist/_astro/{open-docs-in-session.LWVC43xp.js → open-docs-in-session.DPCjFUcv.js} +1 -1
  54. package/dist/_astro/plugins.CCqu2gnf.js +1 -0
  55. package/dist/_astro/prompts-meta.BiymOMAE.js +2 -0
  56. package/dist/_astro/{settings.HM3DiNh0.js → settings.DNkAyQxA.js} +2 -2
  57. package/dist/_astro/{spaces-client.CWqBZccW.js → spaces-client.D4EmN6SH.js} +1 -1
  58. package/dist/_astro/story-review.a7qZTroW.js +15 -0
  59. package/dist/_astro/{ui-auto-prompt.B09MVaTI.js → ui-auto-prompt.QcLCZoV6.js} +1 -1
  60. package/dist/_astro/update.DXCPfU4a.js +1 -0
  61. package/dist/_astro/{view-prefs.7wGuDpzi.js → view-prefs.Do8yjl1I.js} +1 -1
  62. package/dist/case-exec/index.html +6 -6
  63. package/dist/cases/generate/index.html +5 -5
  64. package/dist/cases/library/index.html +6 -6
  65. package/dist/dashboard/index.html +6 -6
  66. package/dist/docs/changelog/index.html +38 -6
  67. package/dist/docs/install/index.html +5 -5
  68. package/dist/docs/manual/index.html +7 -7
  69. package/dist/index.html +1 -1
  70. package/dist/knowledge/index.html +6 -6
  71. package/dist/knowledge//345/212/237/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/347/274/226/345/206/231/350/247/204/350/214/203/index.html +5 -5
  72. package/dist/plugins/index.html +5 -5
  73. package/dist/pm/bugs/index.html +6 -6
  74. package/dist/pm/iterations/index.html +6 -6
  75. package/dist/pm/projects/detail/index.html +6 -6
  76. package/dist/pm/projects/index.html +6 -6
  77. package/dist/pm/requirements/index.html +6 -6
  78. package/dist/prompts/index.html +6 -6
  79. package/dist/reports/index.html +6 -6
  80. package/dist/requirement-analysis/index.html +6 -6
  81. package/dist/requirements/index.html +6 -6
  82. package/dist/tasks/index.html +6 -6
  83. package/dist/templates/index.html +6 -6
  84. package/dist/templates//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +5 -5
  85. package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +5 -5
  86. package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +5 -5
  87. package/dist/templates//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +5 -5
  88. package/dist/templates//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +5 -5
  89. package/dist/test-automation/index.html +6 -6
  90. package/dist/test-stats/index.html +6 -6
  91. package/dist/todos/index.html +6 -6
  92. package/dist/workbench/index.html +5 -5
  93. package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +2 -2
  94. package/lh-plugins/lh-pm.mjs +21 -7
  95. package/lh-plugins/lh-req-analysis.mjs +62 -2
  96. package/lh-plugins/lh-story-review.mjs +98 -0
  97. package/lh-plugins/lh-test-points.mjs +98 -0
  98. package/lh-plugins/plugin-prompts.mjs +4 -0
  99. package/lh-plugins/req-analysis-prompt.mjs +8 -37
  100. package/lh-plugins/story-review-prompt.mjs +97 -0
  101. package/lh-plugins/test-points-prompt.mjs +88 -0
  102. package/package.json +1 -1
  103. package/dist/_astro/Base.UUIdmKid.css +0 -1
  104. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.kD0Cbs0F.js +0 -1
  105. package/dist/_astro/CaseExecBoard.D8K4NzrB.js +0 -1
  106. package/dist/_astro/CaseGenerateApp.bZ_K72NQ.js +0 -9
  107. package/dist/_astro/CasesLibrary.Dhg2pdwU.js +0 -1
  108. package/dist/_astro/ChatApp.B6I3gGKI.js +0 -221
  109. package/dist/_astro/ExcelFieldTags.De-C3dqn.js +0 -152
  110. package/dist/_astro/KnowledgeLibrary.BzFTmNwA.js +0 -1
  111. package/dist/_astro/NavLibraries.CVdolwYy.js +0 -1
  112. package/dist/_astro/OverflowHint.D6v4Uj2N.js +0 -1
  113. package/dist/_astro/PluginsPage.B8U4uvD2.js +0 -39
  114. package/dist/_astro/PluginsPage.v6afs984.js +0 -1
  115. package/dist/_astro/PmBugsBoard.CSIGq0wz.js +0 -1
  116. package/dist/_astro/PmIterationsBoard.BmBc90as.js +0 -1
  117. package/dist/_astro/PmProjectsBoard.DIVs_xJu.js +0 -1
  118. package/dist/_astro/PmRequirementsBoard.DcLiUhBe.js +0 -1
  119. package/dist/_astro/PmRequirementsBoard.N0LM5jHo.js +0 -1
  120. package/dist/_astro/PromptsLibrary.B1RVZqj8.js +0 -1
  121. package/dist/_astro/ReqAnalysisBoard.Bd69wB2p.js +0 -25
  122. package/dist/_astro/RequirementsLibrary.BZhxG9VU.js +0 -1
  123. package/dist/_astro/SearchableSelect.BIjXzTPD.js +0 -1
  124. package/dist/_astro/SelectDropdown.B3-XpBpn.js +0 -1
  125. package/dist/_astro/SettingsDialog.DbjLDMDJ.js +0 -1
  126. package/dist/_astro/SpaceSwitcher.BeCumAuj.js +0 -7
  127. package/dist/_astro/TasksBoard.B3SzQ5bR.js +0 -1
  128. package/dist/_astro/TemplatesLibrary.Ci3yHQTr.js +0 -1
  129. package/dist/_astro/Toast.R8_2OWRX.js +0 -1
  130. package/dist/_astro/TodosBoard.BNDF1iVZ.js +0 -1
  131. package/dist/_astro/UiAutoBoard.Bo0dpRuf.js +0 -9
  132. package/dist/_astro/app-config.Cq_F8I0l.js +0 -1
  133. package/dist/_astro/i18n.DPw-aTIZ.js +0 -7
  134. package/dist/_astro/index.astro_astro_type_script_index_0_lang.B9YrqBHf.js +0 -1
  135. package/dist/_astro/markdown-client.DRva7DS9.js +0 -58
  136. package/dist/_astro/plugins.CKkgnq4r.js +0 -1
  137. package/dist/_astro/prompts-meta.D_2wiFiH.js +0 -2
  138. package/dist/_astro/req-analysis.C1uUndMm.js +0 -6
  139. package/dist/_astro/update.BkHtINbZ.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # 版本日志
2
2
 
3
+ ## [0.1.14] - 2026-10-21
4
+
5
+ 新增「用户故事审查」「生成测试点」两个需求侧插件,插件页重做成「内置 / 测试技能 / 需求管理」分区并补上卡片式布局;同时修掉分组与内容根同名时空间里并排出现「需求管理」和「需求管理 (分组)」的老问题。
6
+
7
+ ### 新增
8
+
9
+ - **用户故事审查**:需求分析页打开时一并打开,按 INVEST 检查拆好的用户故事(独立性、可协商、有价值、可估算、小、可测试),结果以报告 tab 展示,指出每条故事的缺口与改法
10
+ - **生成测试点**:同样跟随需求分析打开,在需求条目下提供「测试点」tab,基于用户故事按功能 / 边界值 / 异常 / 业务规则 / 非功能五个维度拆测试点并标 P0–P3;可导出 XMind(「功能 → 对应测试点」逻辑图骨架)与 Markdown(按用户故事分组)
11
+ - 插件页重排分类:提示词管理、生成提示词、内置能力归「内置插件」,用例管理 / 生成测试用例 / 知识库 / 测试模板 / 测试统计 / 用例执行统计 / 自动化测试归「测试技能」,需求文档库 / 需求分析 / 用户故事审查 / 生成测试点归「需求管理」;卡片一行两张、可展开收起,卡片内容同时适配深色主题
12
+ - 设置页新增「内置插件」面板,按会话插件 / 全局插件分两组展示,可分别展开收起;「我的插件」页同步重做卡片与分类
13
+ - 提示词类型、知识库分类的增删改与「用例类型」统一成同一套交互(选中即编辑的 chip + 共用弹窗),不再有行内输入框
14
+ - 生成用例抽屉改为两列对齐:测试点与引用知识库并齐,提示词按用例类型挂载(一个类型一个提示词,未挂载时不允许确认,可直接新增)
15
+ - 侧栏分组里新增「加入分组 / 移动到其它分组」,自动过滤当前分组及其子组;图标库补充一批常用图标,选择面板加宽、只保留一条纵向滚动条
16
+ - 需求分析、用户故事、测试点等面板记住上次的 tab 与筛选
17
+
18
+ ### 修复
19
+
20
+ - **空间里同时存在「需求管理」和「需求管理 (分组)」**:分组名与插件数据目录同名时,旧逻辑让分组文件夹避让成 `xxx (分组)`,于是空间根并排出现两个近同名目录。现在分组直接接管同名目录,原数据整体收进组内(`需求管理/需求管理/需求管理.json`),对应菜单项也并入该分组以免重名;解散分组时数据搬回空间根。老空间下次读取分组时自动合并,不再生成后缀副本
21
+ - 需求分析、需求管理、项目 / 迭代 / 缺陷、自动化测试的数据目录现在也会跟着分组一起搬迁,插件侧统一按 `resolveContentRoot` 定位,搬家后仍能正常读写;搬迁逐条目合并、不覆盖已有文件,源目录搬空后清理
22
+ - 内置插件卡片展开一个会把会话、全局两侧同能力项一起展开(共享 id 导致状态串台)
23
+ - 深色主题下卡片分隔线过亮、内置插件卡片文字对比度不足
24
+ - 下拉菜单滚动时选项从吸顶搜索框上方漏出、边框遮不住文字
25
+ - 待办「所属任务」在详情、表格与新增行里加截断气泡预览;任务下拉按修改时间排序,与任务页一致
26
+ - Toast 移到页面上方显示,所有增删改操作补齐提示
27
+ - 测试点 tab 没有测试点时不再显示「生成测试点」按钮;测试点列表支持悬停预览
28
+
29
+ ## [0.1.13] - 2026-10-21
30
+
31
+ 修 0.1.12 的两个问题:npm 安装版的一体服务漏注册了「需求分析」中间件,页面一直提示未就绪;分组与内容根同名时侧栏菜单会带上「(分组)」后缀。顺带把「未挂载提示词」从强制弹窗改成内容区提示。
32
+
33
+ ### 修复
34
+
35
+ - **npm / 本地一体服务下「需求分析」不可用**:`cli/server.mjs` 自己维护了一份插件清单,0.1.12 加需求分析时只注册到了 `astro.config.mjs` 的 Vite 插件里,`lantern web` 启动的服务没有 `/__tb_reqanalysis`,页面因此一直停在「需求分析需要本地服务,当前未就绪」。现在两条入口都会注册;提示文案也改成可操作的(升级后重启服务),不再暗示只有 `npm run dev` 能用
36
+ - **分组菜单名带上「(分组)」后缀**:分组与内容根同名(例如分组也叫「用例管理」「需求管理」)时,文件夹必须避让成 `用例管理 (分组)`,而侧栏此前直接拿文件夹名当菜单名。现在 `.group.json` 里额外记 `name`(用户取的名字),界面与文件夹名解耦;老分组没有该字段,扫描时会把 ` (分组)` / ` (2)` 后缀还原掉,不用重新建组
37
+ - 自动化测试「未挂载提示词」不再自动弹窗:进页面 / 切项目时只把顶栏提示词框标黄,内容区按当前 Tab 给一句对应说明(运行要跑 / 生成要出码 / 历史需重跑)+ 「挂载提示词」按钮,点按钮才打开弹窗;取消后保持未挂载,不会再次弹出
38
+
3
39
  ## [0.1.12] - 2026-10-21
4
40
 
5
41
  新增「需求分析」插件:把需求文档拆成按 INVEST 写法的用户故事并做体检,拆好的故事可以直接带进工作台的用例生成;顺带把生成用例抽屉重排成两列、下拉框改成「只读值 + 菜单内搜索」。
@@ -24,11 +24,17 @@ import { DOC_ROOT_DIRS } from '../../lh-plugins/lh-project-docs.mjs';
24
24
  import { REPORT_ROOT_DIR } from '../../lh-plugins/lh-reports.mjs';
25
25
  import { TASK_DIR_NAME, TODO_DIR_NAME } from '../../lh-plugins/lh-work-store.mjs';
26
26
  import { CASE_EXEC_DIR_NAME, TEST_STATS_DIR_NAME } from '../../lh-plugins/lh-stats.mjs';
27
- import { PM_DIR_NAMES } from '../../lh-plugins/lh-pm.mjs';
27
+ import { PM_DIR_NAMES, PM_ENTITY_META } from '../../lh-plugins/lh-pm.mjs';
28
28
  import { REQ_ANALYSIS_DIR_NAME } from '../../lh-plugins/lh-req-analysis.mjs';
29
+ import { UIAUTO_DIR_NAME } from '../../lh-plugins/lh-uiauto.mjs';
29
30
  import { getUserConfigDir } from '../../cli/user-config.mjs';
30
31
  import { getDataRoot } from './space-context.mjs';
31
- import { GROUP_MANIFEST_FILE, resolveContentRoot, spaceLocalFile } from './space-layout.mjs';
32
+ import {
33
+ GROUP_MANIFEST_FILE,
34
+ isGroupDir,
35
+ resolveContentRoot,
36
+ spaceLocalFile,
37
+ } from './space-layout.mjs';
32
38
 
33
39
  const PREFIX = '/__tb_nav/groups';
34
40
 
@@ -72,8 +78,9 @@ const ITEM_DIR_NAMES = new Map(
72
78
  );
73
79
 
74
80
  /**
75
- * 不是内容库、但同样在空间里占一个目录的菜单项(待办 / 任务 / 工作汇报的数据)。
76
- * 分组同样是物理归档,所以这几项也要跟着搬进分组文件夹,否则「加了分组但目录没动」。
81
+ * 不是内容库、但同样在空间里占一个目录的菜单项(待办 / 任务 / 工作汇报的数据、
82
+ * 项目管理四类数据、需求分析、自动化测试)。
83
+ * 分组同样是物理归档,所以这些项也要跟着搬进分组文件夹,否则「加了分组但目录没动」。
77
84
  */
78
85
  const WORK_ITEM_DIR_NAMES = new Map([
79
86
  ['todos', TODO_DIR_NAME],
@@ -81,6 +88,14 @@ const WORK_ITEM_DIR_NAMES = new Map([
81
88
  ['reports', REPORT_ROOT_DIR],
82
89
  ['testStats', TEST_STATS_DIR_NAME],
83
90
  ['caseExec', CASE_EXEC_DIR_NAME],
91
+ // 项目管理四个插件各自的固定数据目录
92
+ ['projects', PM_ENTITY_META.projects.dir],
93
+ ['iterations', PM_ENTITY_META.iterations.dir],
94
+ ['pmRequirements', PM_ENTITY_META.requirements.dir],
95
+ ['bugs', PM_ENTITY_META.bugs.dir],
96
+ // 需求分析的分析结果、自动化测试的执行记录
97
+ ['reqAnalysis', REQ_ANALYSIS_DIR_NAME],
98
+ ['uiAuto', UIAUTO_DIR_NAME],
84
99
  ]);
85
100
  for (const [itemId, dirName] of WORK_ITEM_DIR_NAMES) {
86
101
  ITEM_DIR_NAMES.set(itemId, dirName);
@@ -96,8 +111,9 @@ const SKIP_DIR_NAMES = new Set([
96
111
  ...CONTENT_DIR_NAMES,
97
112
  // 项目管理四个插件的固定数据目录:与导航分组同名时靠改名避免冲突
98
113
  ...PM_DIR_NAMES,
99
- // 需求分析的空间数据目录,同样是插件的而不是导航分组
114
+ // 需求分析 / 自动化测试的空间数据目录,同样是插件的而不是导航分组
100
115
  REQ_ANALYSIS_DIR_NAME,
116
+ UIAUTO_DIR_NAME,
101
117
  'node_modules',
102
118
  'dist',
103
119
  '.astro',
@@ -136,10 +152,14 @@ function readManifest(dir) {
136
152
  const raw = readJson(fp, null);
137
153
  if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return null;
138
154
  const id = typeof raw.id === 'string' ? raw.id.trim() : '';
155
+ // 展示名与文件夹名分开存:分组叫「用例管理」时文件夹必须避让同名内容根(改叫
156
+ // 「用例管理 (分组)」),但侧栏仍应显示用户取的名字;旧数据把文件夹名写进
157
+ // name 的也在这里清掉后缀,避免侧栏出现「需求管理 (分组)」
158
+ const name = stripGroupSuffix(typeof raw.name === 'string' ? raw.name : '');
139
159
  const items = Array.isArray(raw.items)
140
160
  ? raw.items.filter((x) => typeof x === 'string' && x.trim())
141
161
  : [];
142
- return { id, items };
162
+ return { id, name, items };
143
163
  }
144
164
 
145
165
  function onlyManifest(dir) {
@@ -222,40 +242,49 @@ export function scanNavGroups(spaceDir) {
222
242
  };
223
243
 
224
244
  const top = [];
225
- for (const name of safeReaddir(root)) {
226
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
227
- const abs = path.join(root, name);
245
+ for (const dirName of safeReaddir(root)) {
246
+ // 只认带清单的目录:保留名(需求管理 / 缺陷管理 / 需求分析 …)被分组采纳后
247
+ // 本身就是分组文件夹,不能再按「插件数据目录」跳过
248
+ if (dirName.startsWith('.')) continue;
249
+ const abs = path.join(root, dirName);
228
250
  if (!isDir(abs)) continue;
229
251
  const manifest = readManifest(abs);
230
252
  if (!manifest) continue;
231
253
  const g = {
232
- id: takeId(manifest.id, `dir:${name}`),
233
- name,
254
+ id: takeId(manifest.id, `dir:${dirName}`),
255
+ // 展示名优先用清单里记的;老数据没有就从文件夹名还原(去掉为避让内容根加的「 (分组)」)
256
+ name: manifest.name || labelFromDir(dirName),
234
257
  items: takeItems([...manifest.items, ...nestedContentItems(abs)]),
258
+ /** 磁盘上的文件夹名:扫描时定位子分组用,不对外展示 */
259
+ dirName,
235
260
  };
236
261
  top.push(g);
237
262
  groups.push(g);
238
263
  }
239
264
 
240
265
  for (const parent of top) {
241
- const parentAbs = path.join(root, parent.name);
242
- for (const name of safeReaddir(parentAbs)) {
243
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
244
- const abs = path.join(parentAbs, name);
266
+ const parentAbs = path.join(root, parent.dirName);
267
+ for (const dirName of safeReaddir(parentAbs)) {
268
+ if (dirName.startsWith('.')) continue;
269
+ const abs = path.join(parentAbs, dirName);
245
270
  if (!isDir(abs)) continue;
246
271
  const manifest = readManifest(abs);
247
272
  if (!manifest) continue;
248
273
  groups.push({
249
- id: takeId(manifest.id, `dir:${parent.name}/${name}`),
250
- name,
274
+ id: takeId(manifest.id, `dir:${parent.dirName}/${dirName}`),
275
+ name: manifest.name || labelFromDir(dirName),
251
276
  items: takeItems([...manifest.items, ...nestedContentItems(abs)]),
252
277
  parentId: parent.id,
278
+ dirName,
253
279
  });
254
280
  }
255
281
  }
256
282
 
257
283
  const childOf = new Set(groups.map((g) => g.parentId).filter(Boolean));
258
- const kept = groups.filter((g) => g.items.length > 0 || childOf.has(g.id));
284
+ // dirName 只在扫描过程中定位子分组用,对外只给 id / name / items / parentId
285
+ const kept = groups
286
+ .filter((g) => g.items.length > 0 || childOf.has(g.id))
287
+ .map(({ dirName: _dirName, ...g }) => g);
259
288
  // 只有真正能还原出分组时才算「磁盘已有分组」;否则按尚未文件夹化处理,避免清空配置
260
289
  return { groups: kept, found: kept.length > 0 };
261
290
  }
@@ -414,19 +443,49 @@ export function markNavRootsDetected(spaceDir, rootIds) {
414
443
  return ids;
415
444
  }
416
445
 
417
- /** 文件夹名清洗:去掉路径分隔符与首尾点,避开内容根 / 保留目录名 */
418
- function safeName(raw) {
419
- let name = String(raw ?? '')
446
+ /** 用户取的名字:只清掉路径分隔符与首尾点 */
447
+ function cleanLabel(raw) {
448
+ return String(raw ?? '')
420
449
  .replace(/[\\/:*?"<>|]/g, '-')
421
450
  .replace(/^\.+/, '')
422
451
  .trim();
452
+ }
453
+
454
+ /** 文件夹名清洗:在用户名字基础上避开内容根 / 保留目录名 */
455
+ function safeName(raw) {
456
+ const name = cleanLabel(raw);
423
457
  if (!name) return '';
424
458
  if (SKIP_DIR_NAMES.has(name) || name === GROUP_MANIFEST_FILE) {
425
- name = `${name} (分组)`;
459
+ return `${name} (分组)`;
426
460
  }
427
461
  return name;
428
462
  }
429
463
 
464
+ /**
465
+ * 展示名归一:删掉为避让内容根加的「 (分组)」后缀。
466
+ *
467
+ * 为什么清单里也要清:分组名与插件固定数据目录同名时(需求管理 / 缺陷管理 /
468
+ * 项目列表 / 迭代管理 …),文件夹会被改名成「需求管理 (分组)」;旧版本某些路径
469
+ * 会把文件夹名当成展示名写进清单,于是侧栏出现「需求管理 (分组)」这种名字。
470
+ * 后缀只是磁盘避让手段,不该出现在界面上。
471
+ */
472
+ function stripGroupSuffix(name) {
473
+ return String(name ?? '')
474
+ .replace(/ \(\d+\)$/, '')
475
+ .replace(/ \(分组\)$/, '')
476
+ .trim();
477
+ }
478
+
479
+ /**
480
+ * 文件夹名 → 侧栏展示名(兼容没有在清单里存 name 的旧分组)。
481
+ * 旧数据里为了让开同名内容根,文件夹被改成了「用例管理 (分组)」,甚至再撞车时
482
+ * 「用例管理 (分组) (2)」;这些都应显示回用户取的名字。
483
+ */
484
+ function labelFromDir(name) {
485
+ const clean = stripGroupSuffix(name);
486
+ return clean || name;
487
+ }
488
+
430
489
  /** 在父目录里占一个不冲突的文件夹名;重名时依次加 (2)、(3) */
431
490
  function claimName(parentAbs, desired) {
432
491
  let name = desired;
@@ -437,6 +496,38 @@ function claimName(parentAbs, desired) {
437
496
  return name;
438
497
  }
439
498
 
499
+ /**
500
+ * 分组采纳保留目录名(分组叫「需求管理」,而「需求管理」本来是插件的数据目录)。
501
+ *
502
+ * 以前的做法是让分组文件夹避让成「需求管理 (分组)」,空间里于是并排出现
503
+ * 「需求管理」与「需求管理 (分组)」两个近同名目录。现在改成同名合并:
504
+ * 把原来的数据目录整份挪进分组文件夹里,成为组内目录
505
+ * (`需求管理/需求管理.json` → `需求管理/需求管理/需求管理.json`),
506
+ * 磁盘上只留一个「需求管理」,插件靠 resolveContentRoot 照样能找到数据。
507
+ */
508
+ function adoptReservedDir(root, name) {
509
+ const abs = path.join(root, name);
510
+ if (!isDir(abs) || isGroupDir(abs)) return; // 已经是分组文件夹(之前采纳过)就不动
511
+ const rest = safeReaddir(abs).filter((n) => n !== '.DS_Store' && n !== '.gitkeep');
512
+ if (!rest.length) {
513
+ // 空壳:直接删掉,让分组文件夹接管这个名字
514
+ try {
515
+ fs.rmSync(abs, { recursive: true, force: true });
516
+ } catch {
517
+ // 删不掉也没关系,下面 mkdir 幂等
518
+ }
519
+ return;
520
+ }
521
+ const tmp = path.join(root, `.adopt-${process.pid}-${Date.now()}`);
522
+ try {
523
+ fs.renameSync(abs, tmp);
524
+ } catch {
525
+ return; // 挪不动就保持原样,后续搬迁逻辑会按常规路径处理
526
+ }
527
+ fs.mkdirSync(abs, { recursive: true });
528
+ moveDir(tmp, path.join(abs, name));
529
+ }
530
+
440
531
  function moveDir(fromAbs, toAbs) {
441
532
  if (path.resolve(fromAbs) === path.resolve(toAbs)) return;
442
533
  if (!fs.existsSync(fromAbs)) return;
@@ -456,6 +547,13 @@ function moveDir(fromAbs, toAbs) {
456
547
  // 搬不动就保留原地,避免丢数据
457
548
  }
458
549
  }
550
+ // 合并搬完后源目录若已空,顺手删掉,别在空间里留空壳
551
+ try {
552
+ if (fs.readdirSync(fromAbs).length === 0)
553
+ fs.rmSync(fromAbs, { recursive: true, force: true });
554
+ } catch {
555
+ // 删不掉就留着
556
+ }
459
557
  }
460
558
  }
461
559
 
@@ -469,9 +567,10 @@ function moveDir(fromAbs, toAbs) {
469
567
  * @param {string} dirName 内容目录名
470
568
  * @param {string} targetAbs 目标绝对路径(<分组>/<dirName> 或 <空间根>/<dirName>)
471
569
  * @param {string[]} [extraSources] 额外来源(例如没有清单的残留文件夹里的同名目录)
570
+ * @param {Set<string>} [skipAbs] 不能当来源的绝对路径(分组自己的文件夹)
472
571
  * @returns {{ moved: boolean, conflicted: string[] }} conflicted 为冲突条目(未覆盖)
473
572
  */
474
- function relocateContentDir(spaceDir, dirName, targetAbs, extraSources = []) {
573
+ function relocateContentDir(spaceDir, dirName, targetAbs, extraSources = [], skipAbs = new Set()) {
475
574
  const root = path.resolve(spaceDir);
476
575
  const target = path.resolve(targetAbs);
477
576
  const conflicted = [];
@@ -486,6 +585,10 @@ function relocateContentDir(spaceDir, dirName, targetAbs, extraSources = []) {
486
585
  for (const raw of sources) {
487
586
  const src = path.resolve(raw);
488
587
  if (src === target || !fs.existsSync(src)) continue;
588
+ // 分组采纳了保留目录名时,来源可能就是分组文件夹本身:不能把它整个搬进自己
589
+ if (skipAbs.has(src)) continue;
590
+ // 目标在来源里面(<分组> → <分组>/<dirName>):整目录搬会把分组自己拖进去
591
+ if (target.startsWith(`${src}${path.sep}`)) continue;
489
592
  let st;
490
593
  try {
491
594
  st = fs.statSync(src);
@@ -591,13 +694,17 @@ export function syncNavGroups(spaceDir, groups) {
591
694
  for (const raw of Array.isArray(groups) ? groups : []) {
592
695
  if (!raw || typeof raw !== 'object') continue;
593
696
  const id = typeof raw.id === 'string' ? raw.id.trim() : '';
594
- const name = safeName(raw.name);
595
- if (!id || !name || byId.has(id)) continue;
697
+ // label = 用户取的名字(清单里存这个);name = 文件夹名(后面可能避让保留目录名)
698
+ const label = cleanLabel(raw.name);
699
+ if (!id || !label || byId.has(id)) continue;
596
700
  const g = {
597
701
  id,
598
- name,
702
+ label,
703
+ name: label,
599
704
  items: Array.isArray(raw.items) ? raw.items : [],
600
705
  parentId: typeof raw.parentId === 'string' ? raw.parentId.trim() : '',
706
+ /** 采纳了保留目录名时,记下要一并并入本组的菜单项 */
707
+ adoptItem: '',
601
708
  };
602
709
  byId.set(id, g);
603
710
  wanted.push(g);
@@ -608,6 +715,22 @@ export function syncNavGroups(spaceDir, groups) {
608
715
  g.parentId = parent && !parent.parentId && parent.id !== g.id ? parent.id : '';
609
716
  }
610
717
 
718
+ /*
719
+ * 分组名与保留目录同名(需求管理 / 缺陷管理 / 项目列表 / 需求分析 …):
720
+ * 让分组直接接管那一路目录,并把对应菜单项并入本组,空间里就只有一个同名文件夹。
721
+ * 那个菜单项已经挂在别的小组里时不接管(否则两个组共享一个数据目录),退回加后缀避让。
722
+ */
723
+ for (const g of wanted.filter((x) => !x.parentId)) {
724
+ const ownerItem = DIR_ITEM_IDS.get(g.name);
725
+ if (!ownerItem) continue;
726
+ if (wanted.some((x) => x.id !== g.id && x.items.includes(ownerItem))) continue;
727
+ g.adoptItem = ownerItem;
728
+ if (!g.items.includes(ownerItem)) g.items.push(ownerItem);
729
+ }
730
+ for (const g of wanted.filter((x) => !x.parentId && !x.adoptItem)) {
731
+ g.name = safeName(g.label);
732
+ }
733
+
611
734
  const warnings = [];
612
735
  const newRel = new Map();
613
736
 
@@ -615,11 +738,20 @@ export function syncNavGroups(spaceDir, groups) {
615
738
  for (const g of wanted.filter((x) => !x.parentId)) {
616
739
  const oldRel = before.get(g.id) ?? '';
617
740
  const oldAbs = oldRel ? path.join(root, oldRel) : '';
741
+ // 采纳保留目录名:先把原来的插件数据目录整份挪进分组文件夹里
742
+ if (g.adoptItem) adoptReservedDir(root, g.name);
618
743
  let name = g.name;
619
744
  if (oldRel !== name) {
745
+ const targetAbs = path.join(root, name);
746
+ const targetManifest = isDir(targetAbs) ? readManifest(targetAbs) : null;
747
+ // 采纳的目录本身就是本组的目标目录,不算「被占用」(别撞进别的分组)
748
+ const adopted =
749
+ Boolean(g.adoptItem) && isDir(targetAbs) && (!targetManifest || targetManifest.id === g.id);
620
750
  // 目标名被别的目录占着(包括没有清单的普通文件夹)时,另取一个不冲突的名字
621
- if (fs.existsSync(path.join(root, name))) name = claimName(root, name);
622
- if (oldAbs && fs.existsSync(oldAbs)) moveDir(oldAbs, path.join(root, name));
751
+ if (fs.existsSync(targetAbs) && !adopted) name = claimName(root, name);
752
+ if (oldAbs && fs.existsSync(oldAbs) && oldAbs !== path.join(root, name)) {
753
+ moveDir(oldAbs, path.join(root, name));
754
+ }
623
755
  }
624
756
  fs.mkdirSync(path.join(root, name), { recursive: true });
625
757
  newRel.set(g.id, name);
@@ -658,10 +790,12 @@ export function syncNavGroups(spaceDir, groups) {
658
790
  desiredRel.set(dirName, rel);
659
791
  }
660
792
  }
661
- for (const dirName of new Set(ITEM_DIR_NAMES.values())) {
793
+ const liveGroupAbs = new Set([...newRel.values()].map((rel) => path.resolve(root, rel)));
794
+ const itemDirNames = new Set(ITEM_DIR_NAMES.values());
795
+ for (const dirName of itemDirNames) {
662
796
  const groupRel = desiredRel.get(dirName);
663
797
  const targetAbs = groupRel ? path.join(root, groupRel, dirName) : path.join(root, dirName);
664
- const out = relocateContentDir(root, dirName, targetAbs);
798
+ const out = relocateContentDir(root, dirName, targetAbs, [], liveGroupAbs);
665
799
  if (out.conflicted.length) {
666
800
  warnings.push(
667
801
  `「${dirName}」里已有同名内容,未覆盖:${out.conflicted.slice(0, 5).join('、')}`,
@@ -680,6 +814,9 @@ export function syncNavGroups(spaceDir, groups) {
680
814
  id: g.id,
681
815
  items: [...new Set(g.items.filter((x) => typeof x === 'string'))],
682
816
  };
817
+ // 文件夹名被改过(叫「用例管理」这类与内容根同名、又没能接管的分组会存成「用例管理 (分组)」)
818
+ // 时把用户取的名字一并记下,侧栏才不会跟着显示改名后的文件夹名
819
+ if (g.label && g.label !== rel.split('/').pop()) manifest.name = g.label;
683
820
  const fp = path.join(root, rel, GROUP_MANIFEST_FILE);
684
821
  const body = `${JSON.stringify(manifest, null, 2)}\n`;
685
822
  try {
@@ -702,7 +839,9 @@ export function syncNavGroups(spaceDir, groups) {
702
839
  if (!fs.existsSync(abs)) continue;
703
840
  // 兜底:取消分组时把还留在这个目录里的已知内容目录搬出去(上面的通用搬运可能因为
704
841
  // 目录已被改名 / 清单丢失而没算到它),否则「取消分组」会留下一坨搬不走的数据
705
- for (const dirName of new Set(ITEM_DIR_NAMES.values())) {
842
+ for (const dirName of itemDirNames) {
843
+ // 空间根上那一路目录现在是别的分组(采纳了同名目录)时不要往里倒:通用搬运已经处理过
844
+ if (liveGroupAbs.has(path.resolve(root, dirName))) continue;
706
845
  const inside = path.join(abs, dirName);
707
846
  if (!fs.existsSync(inside)) continue;
708
847
  const out = relocateContentDir(root, dirName, path.join(root, dirName), [inside]);
@@ -719,7 +858,11 @@ export function syncNavGroups(spaceDir, groups) {
719
858
  } catch {
720
859
  // ignore
721
860
  }
722
- warnings.push(`分组目录「${rel}」里还有其它文件,已保留目录,仅移除分组关系`);
861
+ // 采纳过保留名的分组解散后,这个目录本身就是插件的数据目录(如「需求管理/需求管理.json」),
862
+ // 属于正常布局,不用提示「还有其它文件」
863
+ if (!itemDirNames.has(rel)) {
864
+ warnings.push(`分组目录「${rel}」里还有其它文件,已保留目录,仅移除分组关系`);
865
+ }
723
866
  continue;
724
867
  }
725
868
  try {
@@ -746,7 +889,7 @@ function scanGroupDirs(root) {
746
889
  };
747
890
  const top = [];
748
891
  for (const name of safeReaddir(root)) {
749
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
892
+ if (name.startsWith('.')) continue;
750
893
  const abs = path.join(root, name);
751
894
  if (!isDir(abs)) continue;
752
895
  const manifest = readManifest(abs);
@@ -758,7 +901,7 @@ function scanGroupDirs(root) {
758
901
  for (const parent of top) {
759
902
  const parentAbs = path.join(root, parent.name);
760
903
  for (const name of safeReaddir(parentAbs)) {
761
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
904
+ if (name.startsWith('.')) continue;
762
905
  const abs = path.join(parentAbs, name);
763
906
  if (!isDir(abs)) continue;
764
907
  const manifest = readManifest(abs);
package/cli/server.mjs CHANGED
@@ -22,6 +22,9 @@ import { lhPmPlugin } from '../lh-plugins/lh-pm.mjs';
22
22
  import { lhReportsPlugin } from '../lh-plugins/lh-reports.mjs';
23
23
  import { lhStatsPlugin } from '../lh-plugins/lh-stats.mjs';
24
24
  import { lhUiautoPlugin } from '../lh-plugins/lh-uiauto.mjs';
25
+ import { lhReqAnalysisPlugin } from '../lh-plugins/lh-req-analysis.mjs';
26
+ import { lhStoryReviewPlugin } from '../lh-plugins/lh-story-review.mjs';
27
+ import { lhTestPointsPlugin } from '../lh-plugins/lh-test-points.mjs';
25
28
  import { lhUpdatePlugin } from '../lh-plugins/lh-update.mjs';
26
29
  import { lhWebPlugin } from '../builtin/session/lh-web.mjs';
27
30
  import { tbSessionRunsPlugin } from '../builtin/session/session-runs.mjs';
@@ -61,6 +64,9 @@ function attachPlugins(app, dataRoot) {
61
64
  lhReportsPlugin(),
62
65
  lhStatsPlugin(),
63
66
  lhUiautoPlugin(),
67
+ lhReqAnalysisPlugin(),
68
+ lhStoryReviewPlugin(),
69
+ lhTestPointsPlugin(),
64
70
  lhUpdatePlugin(),
65
71
  lhNavGroupsPlugin(),
66
72
  lhConfigPlugin(),
@@ -17,7 +17,7 @@
17
17
  "cases": false,
18
18
  "caseGen": false,
19
19
  "prompts": true,
20
- "promptGen": false,
20
+ "promptGen": true,
21
21
  "knowledgeLib": false,
22
22
  "knowledgeGen": false,
23
23
  "requirements": false,
@@ -36,6 +36,8 @@
36
36
  "caseExec": false,
37
37
  "uiAuto": false,
38
38
  "reqAnalysis": false,
39
+ "storyReview": true,
40
+ "testPoints": true,
39
41
  "dashboard": false
40
42
  }
41
43
  }
package/dist/500.html CHANGED
@@ -3,7 +3,7 @@
3
3
  try {
4
4
  if ('scrollRestoration' in history) history.scrollRestoration = 'manual';
5
5
  } catch (e) {}
6
- </script><script type="module" src="/_astro/Base.astro_astro_type_script_index_0_lang.kD0Cbs0F.js"></script><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CO1cjG9V.js"></script><script>
6
+ </script><script type="module" src="/_astro/Base.astro_astro_type_script_index_0_lang.BS3Daz5F.js"></script><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CO1cjG9V.js"></script><script>
7
7
  (function () {
8
8
  try {
9
9
  // 配置按空间分键(`tw.app.config.v1::<spaceId>`),主题必须从同一个键读,
@@ -98,7 +98,7 @@
98
98
  }
99
99
  } catch (e) {}
100
100
  })();
101
- </script><link rel="stylesheet" href="/_astro/Base.UUIdmKid.css"><style>.tw-error-page[data-astro-cid-qnkxrarz]{text-align:center;background:var(--tw-surface-page);flex-direction:column;justify-content:center;align-items:center;gap:.75rem;min-height:100vh;padding:2rem 1.25rem;display:flex}.tw-error-title[data-astro-cid-qnkxrarz]{color:var(--tw-label-primary);margin:0;font-size:1.25rem;font-weight:650}.tw-error-desc[data-astro-cid-qnkxrarz]{color:var(--tw-label-secondary);margin:0;font-size:.875rem;line-height:1.5}.tw-error-pre[data-astro-cid-qnkxrarz]{border:1px solid var(--tw-border);background:color-mix(in srgb, var(--tw-surface-panel,#fff) 90%, transparent);text-align:left;max-width:28rem;max-height:8rem;color:var(--tw-label-secondary);white-space:pre-wrap;word-break:break-word;border-radius:.5rem;margin:.25rem 0 0;padding:.65rem .85rem;font-size:.7rem;line-height:1.5;overflow:auto}.tw-error-actions[data-astro-cid-qnkxrarz]{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.tw-error-btn[data-astro-cid-qnkxrarz]{cursor:pointer;border:1px solid #0000;border-radius:.5rem;justify-content:center;align-items:center;height:2.25rem;padding:0 1rem;font-size:.8125rem;font-weight:550;text-decoration:none;display:inline-flex}.tw-error-btn--primary[data-astro-cid-qnkxrarz]{color:#fff;background:#4176e6}.tw-error-btn--primary[data-astro-cid-qnkxrarz]:hover{background:#3565c7}.tw-error-btn--ghost[data-astro-cid-qnkxrarz]{color:var(--tw-label-secondary);border-color:var(--tw-border);background:0 0}.tw-error-btn--ghost[data-astro-cid-qnkxrarz]:hover{color:var(--tw-label-primary)}
101
+ </script><link rel="stylesheet" href="/_astro/Base.XN4RkAyb.css"><style>.tw-error-page[data-astro-cid-qnkxrarz]{text-align:center;background:var(--tw-surface-page);flex-direction:column;justify-content:center;align-items:center;gap:.75rem;min-height:100vh;padding:2rem 1.25rem;display:flex}.tw-error-title[data-astro-cid-qnkxrarz]{color:var(--tw-label-primary);margin:0;font-size:1.25rem;font-weight:650}.tw-error-desc[data-astro-cid-qnkxrarz]{color:var(--tw-label-secondary);margin:0;font-size:.875rem;line-height:1.5}.tw-error-pre[data-astro-cid-qnkxrarz]{border:1px solid var(--tw-border);background:color-mix(in srgb, var(--tw-surface-panel,#fff) 90%, transparent);text-align:left;max-width:28rem;max-height:8rem;color:var(--tw-label-secondary);white-space:pre-wrap;word-break:break-word;border-radius:.5rem;margin:.25rem 0 0;padding:.65rem .85rem;font-size:.7rem;line-height:1.5;overflow:auto}.tw-error-actions[data-astro-cid-qnkxrarz]{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.tw-error-btn[data-astro-cid-qnkxrarz]{cursor:pointer;border:1px solid #0000;border-radius:.5rem;justify-content:center;align-items:center;height:2.25rem;padding:0 1rem;font-size:.8125rem;font-weight:550;text-decoration:none;display:inline-flex}.tw-error-btn--primary[data-astro-cid-qnkxrarz]{color:#fff;background:#4176e6}.tw-error-btn--primary[data-astro-cid-qnkxrarz]:hover{background:#3565c7}.tw-error-btn--ghost[data-astro-cid-qnkxrarz]{color:var(--tw-label-secondary);border-color:var(--tw-border);background:0 0}.tw-error-btn--ghost[data-astro-cid-qnkxrarz]:hover{color:var(--tw-label-primary)}
102
102
  </style><script type="module" src="/_astro/page.Bx2KSkeL.js"></script><style>[data-astro-transition-scope="astro-bbhp3f5g-3"] { view-transition-name: astro-bbhp3f5g-3; }@layer astro { ::view-transition-old(astro-bbhp3f5g-3) {
103
103
  animation-duration: 180ms;
104
104
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
@@ -135,7 +135,7 @@
135
135
  animation-duration: 180ms;
136
136
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
137
137
  animation-fill-mode: both;
138
- animation-name: astroFadeIn; }</style></head><body class="tw-body antialiased"><div class="tw-shell min-h-screen"><aside class="tw-nav-aside fixed inset-y-0 left-0 flex flex-col z-45" id="tw-nav-aside"><div class="tw-nav-brand"><div class="tw-nav-brand-row"><a href="/" class="tw-nav-brand-link min-w-0 flex-1" data-astro-reload><span class="tw-nav-brand-mark" aria-hidden="true"><img class="tw-nav-brand-mark-img" src="/brand/brand-mark.png" alt="" width="36" height="36"></span><span class="tw-nav-brand-text"><span class="tw-nav-brand-title-row"><span class="tw-nav-brand-title" data-i18n="nav.brand">Lantern Harness</span><span class="tw-nav-brand-ver" data-hint="平台版本 v0.1.12">v0.1.12<span class="tw-nav-brand-dot" id="tw-update-dot" role="button" tabindex="-1" aria-label="有新版本可更新" hidden></span></span></span></span></a></div></div><div class="tw-nav-space-slot"><div class="tw-nav-space tw-nav-space-ph" id="tw-nav-space-ph" aria-hidden="true"><div class="tw-nav-space-ph-box"><span class="tw-nav-space-ph-ico"></span><span class="tw-nav-space-ph-lines"><span class="tw-nav-space-ph-bar is-cap"></span><span class="tw-nav-space-ph-bar is-name"></span></span></div></div><style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(function(){let e=async e=>{await(await e())()};(self.Astro||(self.Astro={})).only=e,window.dispatchEvent(new Event(`astro:only`))})();</script><script>(function(){function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(t,n){if(e(t)!=`object`||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n||`default`);if(e(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(t)}function n(n){var r=t(n,`string`);return e(r)==`symbol`?r:r+``}function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let i=/* @__PURE__ */ new Set([`__proto__`,`constructor`,`prototype`]);{let e={0:e=>a(e),1:e=>n(e),2:e=>new RegExp(e),3:e=>new Date(e),4:e=>new Map(n(e)),5:e=>new Set(n(e)),6:e=>BigInt(e),7:e=>new URL(e),8:e=>new Uint8Array(e),9:e=>new Uint16Array(e),10:e=>new Uint32Array(e),11:e=>1/0*e},t=t=>{let[n,r]=t;return n in e?e[n](r):void 0},n=e=>e.map(t),a=e=>typeof e!=`object`||!e?e:Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t(n)]));class o extends HTMLElement{constructor(...e){super(...e),r(this,`Component`,void 0),r(this,`hydrator`,void 0),r(this,`hydrate`,async()=>{var e;if(!this.hydrator||!this.isConnected)return;let t=(e=this.parentElement)==null?void 0:e.closest(`astro-island[ssr]`);if(t){t.addEventListener(`astro:hydrate`,this.hydrate,{once:!0});return}let n=this.querySelectorAll(`astro-slot`),r={},i=this.querySelectorAll(`template[data-astro-template]`);for(let e of i){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`data-astro-template`)||`default`]=e.innerHTML,e.remove())}for(let e of n){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`name`)||`default`]=e.innerHTML)}let o;try{o=this.hasAttribute(`props`)?a(JSON.parse(this.getAttribute(`props`))):{}}catch(e){let t=this.getAttribute(`component-url`)||`<unknown>`,n=this.getAttribute(`component-export`);throw n&&(t+=` (export ${n})`),console.error(`[hydrate] Error parsing props for component ${t}`,this.getAttribute(`props`),e),e}await this.hydrator(this)(this.Component,o,r,{client:this.getAttribute(`client`)}),this.removeAttribute(`ssr`),this.dispatchEvent(new CustomEvent(`astro:hydrate`))}),r(this,`unmount`,()=>{this.isConnected||this.dispatchEvent(new CustomEvent(`astro:unmount`))})}disconnectedCallback(){document.removeEventListener(`astro:after-swap`,this.unmount),document.addEventListener(`astro:after-swap`,this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute(`await-children`)||document.readyState===`interactive`||document.readyState===`complete`)this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener(`DOMContentLoaded`,e),t.disconnect(),this.childrenConnectedCallback()},t=new MutationObserver(()=>{var t;((t=this.lastChild)==null?void 0:t.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue===`astro:end`&&(this.lastChild.remove(),e())});t.observe(this,{childList:!0}),document.addEventListener(`DOMContentLoaded`,e)}}async childrenConnectedCallback(){let e=this.getAttribute(`before-hydration-url`);e&&await import(e),this.start()}getRetryImportUrl(e){let t=new URL(e,document.baseURI);return t.searchParams.set(`astro-retry`,Date.now().toString()),t.toString()}async importWithRetry(e){try{return await import(e)}catch(t){return await new Promise(e=>setTimeout(e,1e3)),import(this.getRetryImportUrl(e))}}handleHydrationError(e){let t=this.getAttribute(`component-url`),n=new CustomEvent(`astro:hydration-error`,{cancelable:!0,bubbles:!0,composed:!0,detail:{error:e,componentUrl:t}});this.dispatchEvent(n)&&console.error(`[astro-island] Error hydrating ${t}`,e)}async start(){let e=JSON.parse(this.getAttribute(`opts`)),t=this.getAttribute(`client`);if(Astro[t]===void 0)window.addEventListener(`astro:${t}`,()=>this.start(),{once:!0});else try{await Astro[t](async()=>{let e=this.getAttribute(`renderer-url`);try{let[t,{default:n}]=await Promise.all([this.importWithRetry(this.getAttribute(`component-url`)),e?this.importWithRetry(e):Promise.resolve({default:()=>()=>{}})]),r=this.getAttribute(`component-export`)||`default`;if(r.includes(`.`)){this.Component=t;for(let e of r.split(`.`)){if(i.has(e)||!this.Component||typeof this.Component!=`object`&&typeof this.Component!=`function`||!Object.hasOwn(this.Component,e))throw Error(`Invalid component export path: ${r}`);this.Component=this.Component[e]}}else{if(i.has(r))throw Error(`Invalid component export path: ${r}`);this.Component=t[r]}return this.hydrator=n,this.hydrate}catch(e){return this.handleHydrationError(e),()=>{}}},e,this)}catch(e){this.handleHydrationError(e)}}attributeChangedCallback(){this.hydrate()}}r(o,`observedAttributes`,[`props`]),customElements.get(`astro-island`)||customElements.define(`astro-island`,o)}})();</script><astro-island uid="2wH2Dz" component-url="/_astro/SpaceSwitcher.BeCumAuj.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;data-astro-transition-persist&quot;:[0,&quot;astro-gyrtbwwo-1&quot;]}" ssr client="only" opts="{&quot;name&quot;:&quot;SpaceSwitcher&quot;,&quot;value&quot;:&quot;react&quot;}" data-astro-transition-persist="astro-gyrtbwwo-1"></astro-island></div><button type="button" id="tw-nav-toggle" class="tw-nav-toggle" aria-label="收起或展开左侧导航" aria-expanded="true" aria-controls="tw-nav-aside"><svg class="tw-nav-toggle-icon is-collapse" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 6l-6 6 6 6"></path></svg><svg class="tw-nav-toggle-icon is-expand" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 6l6 6-6 6"></path></svg></button><nav class="tw-nav-list flex-1 overflow-y-auto"><a href="/workbench/" class="tw-nav-item" data-i18n-hint="nav.home" data-hint="我的工作台"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 10.5 12 3l9 7.5"></path><path d="M5 9.5V20h14V9.5"></path></svg><span class="tw-nav-label" data-i18n="nav.home">我的工作台</span></a><div class="tw-nav-libraries"><div class="tw-nav-libraries-ph"><a href="/dashboard/" class="tw-nav-item" data-plugin-nav="dashboard"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1.5"></rect><rect x="14" y="3" width="7" height="7" rx="1.5"></rect><rect x="3" y="14" width="7" height="7" rx="1.5"></rect><rect x="14" y="14" width="7" height="7" rx="1.5"></rect></svg><span class="tw-nav-label" data-i18n="nav.dashboard">仪表盘</span></a><a href="/tasks/" class="tw-nav-item" data-plugin-nav="tasks"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 5h10"></path><path d="M9 12h10"></path><path d="M9 19h10"></path><path d="M4 5h.01"></path><path d="M4 12h.01"></path><path d="M4 19h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.tasks">任务管理</span></a><a href="/todos/" class="tw-nav-item" data-plugin-nav="todos"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M8 6h13"></path><path d="M8 12h13"></path><path d="M8 18h13"></path><path d="M3 6h.01"></path><path d="M3 12h.01"></path><path d="M3 18h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.todos">待办事项</span></a><a href="/pm/projects/" class="tw-nav-item" data-plugin-nav="projects"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z"></path></svg><span class="tw-nav-label" data-i18n="nav.projects">项目列表</span></a><a href="/pm/iterations/" class="tw-nav-item" data-plugin-nav="iterations"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="5" width="18" height="16" rx="2"></rect><path d="M8 3v4"></path><path d="M16 3v4"></path><path d="M3 10h18"></path></svg><span class="tw-nav-label" data-i18n="nav.iterations">迭代管理</span></a><a href="/pm/requirements/" class="tw-nav-item" data-plugin-nav="pmRequirements"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h5"></path></svg><span class="tw-nav-label" data-i18n="nav.requirementsMgmt">需求管理</span></a><a href="/pm/bugs/" class="tw-nav-item" data-plugin-nav="bugs"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="14" r="5"></circle><path d="M9 6l2 2"></path><path d="M15 6l-2 2"></path><path d="M7 11H4"></path><path d="M20 11h-3"></path><path d="M7 17H4"></path><path d="M20 17h-3"></path></svg><span class="tw-nav-label" data-i18n="nav.bugs">缺陷管理</span></a><a href="/reports/" class="tw-nav-item" data-plugin-nav="reports"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h5"></path></svg><span class="tw-nav-label" data-i18n="nav.reports">工作汇报</span></a><a href="/test-stats/" class="tw-nav-item" data-plugin-nav="testStats"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M4 20V10"></path><path d="M10 20V4"></path><path d="M16 20v-7"></path><path d="M22 20H2"></path></svg><span class="tw-nav-label" data-i18n="nav.testStats">测试统计</span></a><a href="/case-exec/" class="tw-nav-item" data-plugin-nav="caseExec"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="12" r="9"></circle><circle cx="12" cy="12" r="5"></circle><circle cx="12" cy="12" r="1.4"></circle></svg><span class="tw-nav-label" data-i18n="nav.caseExec">用例执行统计</span></a><a href="/cases/library/" class="tw-nav-item" data-plugin-nav="cases"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 11l3 3L22 4"></path><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg><span class="tw-nav-label" data-i18n="nav.caseManage">用例管理</span></a><a href="/knowledge/" class="tw-nav-item" data-plugin-nav="knowledgeLib"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path></svg><span class="tw-nav-label" data-i18n="nav.knowledge">知识库管理</span></a><a href="/requirements/" class="tw-nav-item" data-plugin-nav="requirements" data-i18n-hint="nav.requirements"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h6"></path></svg><span class="tw-nav-label" data-i18n="nav.requirements">需求文档库</span></a><a href="/templates/" class="tw-nav-item" data-plugin-nav="templates" data-i18n-hint="nav.templates"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M12 3 3 8l9 5 9-5-9-5z"></path><path d="m3 13 9 5 9-5"></path></svg><span class="tw-nav-label" data-i18n="nav.templates">测试模板库</span></a></div><astro-island uid="Z1lgSd4" component-url="/_astro/NavLibraries.CVdolwYy.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;data-astro-transition-persist&quot;:[0,&quot;astro-iywf7oe7-2&quot;]}" ssr client="only" opts="{&quot;name&quot;:&quot;NavLibraries&quot;,&quot;value&quot;:&quot;react&quot;}" data-astro-transition-persist="astro-iywf7oe7-2"></astro-island><script>(function(){const host = ".tw-nav-libraries";
138
+ animation-name: astroFadeIn; }</style></head><body class="tw-body antialiased"><div class="tw-shell min-h-screen"><aside class="tw-nav-aside fixed inset-y-0 left-0 flex flex-col z-45" id="tw-nav-aside"><div class="tw-nav-brand"><div class="tw-nav-brand-row"><a href="/" class="tw-nav-brand-link min-w-0 flex-1" data-astro-reload><span class="tw-nav-brand-mark" aria-hidden="true"><img class="tw-nav-brand-mark-img" src="/brand/brand-mark.png" alt="" width="36" height="36"></span><span class="tw-nav-brand-text"><span class="tw-nav-brand-title-row"><span class="tw-nav-brand-title" data-i18n="nav.brand">Lantern Harness</span><span class="tw-nav-brand-ver" data-hint="平台版本 v0.1.14">v0.1.14<span class="tw-nav-brand-dot" id="tw-update-dot" role="button" tabindex="-1" aria-label="有新版本可更新" hidden></span></span></span></span></a></div></div><div class="tw-nav-space-slot"><div class="tw-nav-space tw-nav-space-ph" id="tw-nav-space-ph" aria-hidden="true"><div class="tw-nav-space-ph-box"><span class="tw-nav-space-ph-ico"></span><span class="tw-nav-space-ph-lines"><span class="tw-nav-space-ph-bar is-cap"></span><span class="tw-nav-space-ph-bar is-name"></span></span></div></div><style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(function(){let e=async e=>{await(await e())()};(self.Astro||(self.Astro={})).only=e,window.dispatchEvent(new Event(`astro:only`))})();</script><script>(function(){function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(t,n){if(e(t)!=`object`||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n||`default`);if(e(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(t)}function n(n){var r=t(n,`string`);return e(r)==`symbol`?r:r+``}function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let i=/* @__PURE__ */ new Set([`__proto__`,`constructor`,`prototype`]);{let e={0:e=>a(e),1:e=>n(e),2:e=>new RegExp(e),3:e=>new Date(e),4:e=>new Map(n(e)),5:e=>new Set(n(e)),6:e=>BigInt(e),7:e=>new URL(e),8:e=>new Uint8Array(e),9:e=>new Uint16Array(e),10:e=>new Uint32Array(e),11:e=>1/0*e},t=t=>{let[n,r]=t;return n in e?e[n](r):void 0},n=e=>e.map(t),a=e=>typeof e!=`object`||!e?e:Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t(n)]));class o extends HTMLElement{constructor(...e){super(...e),r(this,`Component`,void 0),r(this,`hydrator`,void 0),r(this,`hydrate`,async()=>{var e;if(!this.hydrator||!this.isConnected)return;let t=(e=this.parentElement)==null?void 0:e.closest(`astro-island[ssr]`);if(t){t.addEventListener(`astro:hydrate`,this.hydrate,{once:!0});return}let n=this.querySelectorAll(`astro-slot`),r={},i=this.querySelectorAll(`template[data-astro-template]`);for(let e of i){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`data-astro-template`)||`default`]=e.innerHTML,e.remove())}for(let e of n){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`name`)||`default`]=e.innerHTML)}let o;try{o=this.hasAttribute(`props`)?a(JSON.parse(this.getAttribute(`props`))):{}}catch(e){let t=this.getAttribute(`component-url`)||`<unknown>`,n=this.getAttribute(`component-export`);throw n&&(t+=` (export ${n})`),console.error(`[hydrate] Error parsing props for component ${t}`,this.getAttribute(`props`),e),e}await this.hydrator(this)(this.Component,o,r,{client:this.getAttribute(`client`)}),this.removeAttribute(`ssr`),this.dispatchEvent(new CustomEvent(`astro:hydrate`))}),r(this,`unmount`,()=>{this.isConnected||this.dispatchEvent(new CustomEvent(`astro:unmount`))})}disconnectedCallback(){document.removeEventListener(`astro:after-swap`,this.unmount),document.addEventListener(`astro:after-swap`,this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute(`await-children`)||document.readyState===`interactive`||document.readyState===`complete`)this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener(`DOMContentLoaded`,e),t.disconnect(),this.childrenConnectedCallback()},t=new MutationObserver(()=>{var t;((t=this.lastChild)==null?void 0:t.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue===`astro:end`&&(this.lastChild.remove(),e())});t.observe(this,{childList:!0}),document.addEventListener(`DOMContentLoaded`,e)}}async childrenConnectedCallback(){let e=this.getAttribute(`before-hydration-url`);e&&await import(e),this.start()}getRetryImportUrl(e){let t=new URL(e,document.baseURI);return t.searchParams.set(`astro-retry`,Date.now().toString()),t.toString()}async importWithRetry(e){try{return await import(e)}catch(t){return await new Promise(e=>setTimeout(e,1e3)),import(this.getRetryImportUrl(e))}}handleHydrationError(e){let t=this.getAttribute(`component-url`),n=new CustomEvent(`astro:hydration-error`,{cancelable:!0,bubbles:!0,composed:!0,detail:{error:e,componentUrl:t}});this.dispatchEvent(n)&&console.error(`[astro-island] Error hydrating ${t}`,e)}async start(){let e=JSON.parse(this.getAttribute(`opts`)),t=this.getAttribute(`client`);if(Astro[t]===void 0)window.addEventListener(`astro:${t}`,()=>this.start(),{once:!0});else try{await Astro[t](async()=>{let e=this.getAttribute(`renderer-url`);try{let[t,{default:n}]=await Promise.all([this.importWithRetry(this.getAttribute(`component-url`)),e?this.importWithRetry(e):Promise.resolve({default:()=>()=>{}})]),r=this.getAttribute(`component-export`)||`default`;if(r.includes(`.`)){this.Component=t;for(let e of r.split(`.`)){if(i.has(e)||!this.Component||typeof this.Component!=`object`&&typeof this.Component!=`function`||!Object.hasOwn(this.Component,e))throw Error(`Invalid component export path: ${r}`);this.Component=this.Component[e]}}else{if(i.has(r))throw Error(`Invalid component export path: ${r}`);this.Component=t[r]}return this.hydrator=n,this.hydrate}catch(e){return this.handleHydrationError(e),()=>{}}},e,this)}catch(e){this.handleHydrationError(e)}}attributeChangedCallback(){this.hydrate()}}r(o,`observedAttributes`,[`props`]),customElements.get(`astro-island`)||customElements.define(`astro-island`,o)}})();</script><astro-island uid="2wH2Dz" component-url="/_astro/SpaceSwitcher.DDGfnQBp.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;data-astro-transition-persist&quot;:[0,&quot;astro-gyrtbwwo-1&quot;]}" ssr client="only" opts="{&quot;name&quot;:&quot;SpaceSwitcher&quot;,&quot;value&quot;:&quot;react&quot;}" data-astro-transition-persist="astro-gyrtbwwo-1"></astro-island></div><button type="button" id="tw-nav-toggle" class="tw-nav-toggle" aria-label="收起或展开左侧导航" aria-expanded="true" aria-controls="tw-nav-aside"><svg class="tw-nav-toggle-icon is-collapse" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 6l-6 6 6 6"></path></svg><svg class="tw-nav-toggle-icon is-expand" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 6l6 6-6 6"></path></svg></button><nav class="tw-nav-list flex-1 overflow-y-auto"><a href="/workbench/" class="tw-nav-item" data-i18n-hint="nav.home" data-hint="我的工作台"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 10.5 12 3l9 7.5"></path><path d="M5 9.5V20h14V9.5"></path></svg><span class="tw-nav-label" data-i18n="nav.home">我的工作台</span></a><div class="tw-nav-libraries"><div class="tw-nav-libraries-ph"><a href="/dashboard/" class="tw-nav-item" data-plugin-nav="dashboard"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1.5"></rect><rect x="14" y="3" width="7" height="7" rx="1.5"></rect><rect x="3" y="14" width="7" height="7" rx="1.5"></rect><rect x="14" y="14" width="7" height="7" rx="1.5"></rect></svg><span class="tw-nav-label" data-i18n="nav.dashboard">仪表盘</span></a><a href="/tasks/" class="tw-nav-item" data-plugin-nav="tasks"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 5h10"></path><path d="M9 12h10"></path><path d="M9 19h10"></path><path d="M4 5h.01"></path><path d="M4 12h.01"></path><path d="M4 19h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.tasks">任务管理</span></a><a href="/todos/" class="tw-nav-item" data-plugin-nav="todos"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M8 6h13"></path><path d="M8 12h13"></path><path d="M8 18h13"></path><path d="M3 6h.01"></path><path d="M3 12h.01"></path><path d="M3 18h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.todos">待办事项</span></a><a href="/pm/projects/" class="tw-nav-item" data-plugin-nav="projects"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z"></path></svg><span class="tw-nav-label" data-i18n="nav.projects">项目列表</span></a><a href="/pm/iterations/" class="tw-nav-item" data-plugin-nav="iterations"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="5" width="18" height="16" rx="2"></rect><path d="M8 3v4"></path><path d="M16 3v4"></path><path d="M3 10h18"></path></svg><span class="tw-nav-label" data-i18n="nav.iterations">迭代管理</span></a><a href="/pm/requirements/" class="tw-nav-item" data-plugin-nav="pmRequirements"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h5"></path></svg><span class="tw-nav-label" data-i18n="nav.requirementsMgmt">需求管理</span></a><a href="/pm/bugs/" class="tw-nav-item" data-plugin-nav="bugs"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="14" r="5"></circle><path d="M9 6l2 2"></path><path d="M15 6l-2 2"></path><path d="M7 11H4"></path><path d="M20 11h-3"></path><path d="M7 17H4"></path><path d="M20 17h-3"></path></svg><span class="tw-nav-label" data-i18n="nav.bugs">缺陷管理</span></a><a href="/reports/" class="tw-nav-item" data-plugin-nav="reports"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h5"></path></svg><span class="tw-nav-label" data-i18n="nav.reports">工作汇报</span></a><a href="/test-stats/" class="tw-nav-item" data-plugin-nav="testStats"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M4 20V10"></path><path d="M10 20V4"></path><path d="M16 20v-7"></path><path d="M22 20H2"></path></svg><span class="tw-nav-label" data-i18n="nav.testStats">测试统计</span></a><a href="/case-exec/" class="tw-nav-item" data-plugin-nav="caseExec"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="12" r="9"></circle><circle cx="12" cy="12" r="5"></circle><circle cx="12" cy="12" r="1.4"></circle></svg><span class="tw-nav-label" data-i18n="nav.caseExec">用例执行统计</span></a><a href="/cases/library/" class="tw-nav-item" data-plugin-nav="cases"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 11l3 3L22 4"></path><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg><span class="tw-nav-label" data-i18n="nav.caseManage">用例管理</span></a><a href="/knowledge/" class="tw-nav-item" data-plugin-nav="knowledgeLib"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path></svg><span class="tw-nav-label" data-i18n="nav.knowledge">知识库管理</span></a><a href="/requirements/" class="tw-nav-item" data-plugin-nav="requirements" data-i18n-hint="nav.requirements"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h6"></path></svg><span class="tw-nav-label" data-i18n="nav.requirements">需求文档库</span></a><a href="/templates/" class="tw-nav-item" data-plugin-nav="templates" data-i18n-hint="nav.templates"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M12 3 3 8l9 5 9-5-9-5z"></path><path d="m3 13 9 5 9-5"></path></svg><span class="tw-nav-label" data-i18n="nav.templates">测试模板库</span></a></div><astro-island uid="Z1lgSd4" component-url="/_astro/NavLibraries.CpnreEwA.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;data-astro-transition-persist&quot;:[0,&quot;astro-iywf7oe7-2&quot;]}" ssr client="only" opts="{&quot;name&quot;:&quot;NavLibraries&quot;,&quot;value&quot;:&quot;react&quot;}" data-astro-transition-persist="astro-iywf7oe7-2"></astro-island><script>(function(){const host = ".tw-nav-libraries";
139
139
  const cacheKey = "tw.hydrate.nav";
140
140
  const fixActive = true;
141
141
  const capture = false;
@@ -365,7 +365,7 @@ const syncNavGroups = true;
365
365
  // 缓存坏了就当没有
366
366
  }
367
367
  })();
368
- })();</script></div><a href="/prompts/" class="tw-nav-item" data-plugin-nav="prompts" data-pinned-nav="prompts"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"></path></svg><span class="tw-nav-label" data-i18n="nav.prompts">提示词管理</span></a><a href="/docs/manual/" class="tw-nav-item" data-hint="帮助中心" data-i18n-hint="nav.helpCenter"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M5 4.5h9.5L19 9v10.5H5V4.5Z" stroke-linejoin="round"></path><path d="M14.5 4.5V9H19" stroke-linejoin="round"></path><path d="M8 13h8M8 16.5h6" stroke-linecap="round"></path></svg><span class="tw-nav-label" data-i18n="nav.helpCenter">帮助中心</span></a></nav><div class="tw-nav-foot"><script>(function(){let e=async e=>{await(await e())()};(self.Astro||(self.Astro={})).load=e,window.dispatchEvent(new Event(`astro:load`))})();</script><astro-island uid="Z12jkyC" prefix="r1" component-url="/_astro/SettingsDialog.DbjLDMDJ.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{}" ssr client="load" opts="{&quot;name&quot;:&quot;SettingsDialog&quot;,&quot;value&quot;:true}" await-children><div class="tw-nav-foot-row"><button type="button" class="tw-nav-settings-btn" data-hint="设置"><svg class="tw-nav-ico w-4.5 h-4.5 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9c.2.6.7 1 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"></path></svg><span data-i18n="nav.settings">设置</span></button><button type="button" class="tw-nav-provider-chip is-empty" data-hint="未配置模型"><span class="tw-nav-provider-dot" aria-hidden="true"></span><span class="tw-nav-provider-name">未配置</span></button></div><span hidden="" style="position:fixed;top:1px;left:1px;width:1px;height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;display:none"></span><!--astro:end--></astro-island></div></aside><script data-astro-rerun>
368
+ })();</script></div><a href="/prompts/" class="tw-nav-item" data-plugin-nav="prompts" data-pinned-nav="prompts"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M12 20h9"></path><path d="M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"></path></svg><span class="tw-nav-label" data-i18n="nav.prompts">提示词管理</span></a><a href="/docs/manual/" class="tw-nav-item" data-hint="帮助中心" data-i18n-hint="nav.helpCenter"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M5 4.5h9.5L19 9v10.5H5V4.5Z" stroke-linejoin="round"></path><path d="M14.5 4.5V9H19" stroke-linejoin="round"></path><path d="M8 13h8M8 16.5h6" stroke-linecap="round"></path></svg><span class="tw-nav-label" data-i18n="nav.helpCenter">帮助中心</span></a></nav><div class="tw-nav-foot"><script>(function(){let e=async e=>{await(await e())()};(self.Astro||(self.Astro={})).load=e,window.dispatchEvent(new Event(`astro:load`))})();</script><astro-island uid="Z12jkyC" prefix="r1" component-url="/_astro/SettingsDialog.a99Y08tE.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{}" ssr client="load" opts="{&quot;name&quot;:&quot;SettingsDialog&quot;,&quot;value&quot;:true}" await-children><div class="tw-nav-foot-row"><button type="button" class="tw-nav-settings-btn" data-hint="设置"><svg class="tw-nav-ico w-4.5 h-4.5 shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9c.2.6.7 1 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"></path></svg><span data-i18n="nav.settings">设置</span></button><button type="button" class="tw-nav-provider-chip is-empty" data-hint="未配置模型"><span class="tw-nav-provider-dot" aria-hidden="true"></span><span class="tw-nav-provider-name">未配置</span></button></div><span hidden="" style="position:fixed;top:1px;left:1px;width:1px;height:0;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;display:none"></span><!--astro:end--></astro-island></div></aside><script data-astro-rerun>
369
369
  (function () {
370
370
  try {
371
371
  var raw = localStorage.getItem('tw.app.model.v1');
@@ -472,7 +472,7 @@ const syncNavGroups = true;
472
472
  });
473
473
  } catch (e) {}
474
474
  })();
475
- </script><main data-astro-transition-scope="astro-bbhp3f5g-3" class="tw-main min-h-screen"><div id="tw-route-loading" class="tw-route-loading is-hidden" role="status" aria-live="polite" aria-label="页面加载中"><span class="tw-route-loading-spin" aria-hidden="true"></span></div><div class="tw-error-page" data-astro-cid-qnkxrarz><h1 class="tw-error-title" data-astro-cid-qnkxrarz>出错了</h1><p class="tw-error-desc" data-astro-cid-qnkxrarz>页面暂时无法打开,请返回重试。</p><div class="tw-error-actions" data-astro-cid-qnkxrarz><a href="/workbench/" class="tw-error-btn tw-error-btn--primary" data-astro-cid-qnkxrarz>返回工作台</a><button type="button" class="tw-error-btn tw-error-btn--ghost" onclick="location.reload()" data-astro-cid-qnkxrarz>刷新</button></div></div></main><astro-island uid="1ae4mb" component-url="/_astro/Toast.R8_2OWRX.js" component-export="GlobalToastHost" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;data-astro-transition-persist&quot;:[0,&quot;astro-34g7cspi-4&quot;]}" ssr client="only" opts="{&quot;name&quot;:&quot;GlobalToastHost&quot;,&quot;value&quot;:&quot;react&quot;}" data-astro-transition-persist="astro-34g7cspi-4"></astro-island></div><script>
475
+ </script><main data-astro-transition-scope="astro-bbhp3f5g-3" class="tw-main min-h-screen"><div id="tw-route-loading" class="tw-route-loading is-hidden" role="status" aria-live="polite" aria-label="页面加载中"><span class="tw-route-loading-spin" aria-hidden="true"></span></div><div class="tw-error-page" data-astro-cid-qnkxrarz><h1 class="tw-error-title" data-astro-cid-qnkxrarz>出错了</h1><p class="tw-error-desc" data-astro-cid-qnkxrarz>页面暂时无法打开,请返回重试。</p><div class="tw-error-actions" data-astro-cid-qnkxrarz><a href="/workbench/" class="tw-error-btn tw-error-btn--primary" data-astro-cid-qnkxrarz>返回工作台</a><button type="button" class="tw-error-btn tw-error-btn--ghost" onclick="location.reload()" data-astro-cid-qnkxrarz>刷新</button></div></div></main><astro-island uid="1ae4mb" component-url="/_astro/Toast.BO2NFckG.js" component-export="GlobalToastHost" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;data-astro-transition-persist&quot;:[0,&quot;astro-34g7cspi-4&quot;]}" ssr client="only" opts="{&quot;name&quot;:&quot;GlobalToastHost&quot;,&quot;value&quot;:&quot;react&quot;}" data-astro-transition-persist="astro-34g7cspi-4"></astro-island></div><script>
476
476
  (function () {
477
477
  /**
478
478
  * 切页滚回顶部。