lantern-harness 0.1.13 → 0.1.15

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 (149) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/builtin/session/lh-nav-groups.mjs +141 -30
  3. package/cli/server.mjs +7 -0
  4. package/config/app.defaults.json +5 -1
  5. package/dist/500.html +5 -5
  6. package/dist/_astro/Base.VCz1UVxQ.css +1 -0
  7. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.CpzwEBjx.js +1 -0
  8. package/dist/_astro/CaseExecBoard.cBdsZU9e.js +1 -0
  9. package/dist/_astro/CaseGenerateApp.D2ftaUXT.js +9 -0
  10. package/dist/_astro/CasesLibrary.DWXEje9u.js +19 -0
  11. package/dist/_astro/ChatApp.7piDha-y.js +226 -0
  12. package/dist/_astro/ColumnResize.BgYkV9Iy.js +1 -0
  13. package/dist/_astro/{DashboardBoard.uPjTYpJZ.js → DashboardBoard.BIP9es-t.js} +1 -1
  14. package/dist/_astro/DocsFileBrowser.-dkkxR4X.js +1 -0
  15. package/dist/_astro/{DocsPager.EPT5-oEx.js → DocsPager.v4kQH163.js} +1 -1
  16. package/dist/_astro/{DrawerField.DqvXFCFh.js → DrawerField.C0ehOlDt.js} +1 -1
  17. package/dist/_astro/ExcelFieldTags.ytbpKt-Z.js +5 -0
  18. package/dist/_astro/KnowledgeLibrary.Dw-IX3Zt.js +1 -0
  19. package/dist/_astro/NavLibraries.D1J9BwYo.js +1 -0
  20. package/dist/_astro/OverflowHint.pvo2Xc8R.js +1 -0
  21. package/dist/_astro/PluginsPage.DMTsFl_R.js +7 -0
  22. package/dist/_astro/PluginsPage.DMxVKmiY.js +1 -0
  23. package/dist/_astro/PmBugsBoard.BTtm1lki.js +1 -0
  24. package/dist/_astro/PmIterationsBoard.Dm67iXe_.js +1 -0
  25. package/dist/_astro/{PmProjectDetail.BDKXOQJD.js → PmProjectDetail.B7oWL7y-.js} +1 -1
  26. package/dist/_astro/PmProjectsBoard.8QI44RlE.js +1 -0
  27. package/dist/_astro/PmRequirementsBoard.DMJVLCqz.js +1 -0
  28. package/dist/_astro/PmRequirementsBoard.X98441HZ.js +1 -0
  29. package/dist/_astro/{PmShared.D69sPvec.js → PmShared.DbDseTcc.js} +1 -1
  30. package/dist/_astro/PromptMountDialog.YH2odDZx.js +58 -0
  31. package/dist/_astro/PromptsLibrary.B_qFbQGi.js +1 -0
  32. package/dist/_astro/{ReportsPage.N1EaH8E-.js → ReportsPage.BjcajHR6.js} +1 -1
  33. package/dist/_astro/ReqAnalysisBoard.hwNqRyim.js +28 -0
  34. package/dist/_astro/RequirementsLibrary.CGCNnQQG.js +1 -0
  35. package/dist/_astro/SearchableSelect.mvcBwegf.js +1 -0
  36. package/dist/_astro/SelectDropdown.Cb-QtC-D.js +1 -0
  37. package/dist/_astro/SettingsDialog.CnBZRaWE.js +1 -0
  38. package/dist/_astro/SpaceSwitcher.DMoqOVpS.js +7 -0
  39. package/dist/_astro/TasksBoard.DvfyDL76.js +1 -0
  40. package/dist/_astro/TemplatesLibrary.B5KmjjFw.js +1 -0
  41. package/dist/_astro/TestStatsBoard.EIDxmU_8.js +1 -0
  42. package/dist/_astro/Toast.BO2NFckG.js +1 -0
  43. package/dist/_astro/TodosBoard.7IptYUFY.js +1 -0
  44. package/dist/_astro/UiAutoBoard.DJljpjXT.js +9 -0
  45. package/dist/_astro/app-config.CF1xVPmo.js +1 -0
  46. package/dist/_astro/app-version.YyNOCGCb.js +1 -0
  47. package/dist/_astro/bash-tools.CPS0ZiKi.js +25 -0
  48. package/dist/_astro/case-review.DYyZat83.js +3 -0
  49. package/dist/_astro/case-types.DS1EQ5yP.js +1 -0
  50. package/dist/_astro/composer-task.DJmluzPT.js +5 -0
  51. package/dist/_astro/export.joBT53eb.js +148 -0
  52. package/dist/_astro/fs-tools.3F9MFrLf.js +9 -0
  53. package/dist/_astro/{hydrate-cache.zljz1n5X.js → hydrate-cache.CmC22o_H.js} +1 -1
  54. package/dist/_astro/i18n.B3BVhlok.js +7 -0
  55. package/dist/_astro/index.astro_astro_type_script_index_0_lang.CM78W1qz.js +1 -0
  56. package/dist/_astro/jszip.min.Bh2Mgo40.js +2 -0
  57. package/dist/_astro/{lib.BQbwbnfE.js → lib.S37S0T6S.js} +1 -1
  58. package/dist/_astro/{open-docs-in-session.LWVC43xp.js → open-docs-in-session.B6uyOxPn.js} +1 -1
  59. package/dist/_astro/plugins.DYyAjBXb.js +1 -0
  60. package/dist/_astro/prompts-meta.C_MeYq8G.js +2 -0
  61. package/dist/_astro/{req-analysis.C1uUndMm.js → req-analysis.CkLx8c9E.js} +2 -2
  62. package/dist/_astro/{settings.HM3DiNh0.js → settings.BvxRxdqa.js} +2 -2
  63. package/dist/_astro/{spaces-client.CWqBZccW.js → spaces-client.Dy3tSPta.js} +1 -1
  64. package/dist/_astro/story-review.CGcusNKf.js +10 -0
  65. package/dist/_astro/{ui-auto-prompt.B09MVaTI.js → ui-auto-prompt.QcLCZoV6.js} +1 -1
  66. package/dist/_astro/update.DXCPfU4a.js +1 -0
  67. package/dist/_astro/{view-prefs.7wGuDpzi.js → view-prefs.D1snIG5o.js} +1 -1
  68. package/dist/case-exec/index.html +6 -6
  69. package/dist/cases/generate/index.html +5 -5
  70. package/dist/cases/library/index.html +6 -6
  71. package/dist/dashboard/index.html +6 -6
  72. package/dist/docs/changelog/index.html +58 -6
  73. package/dist/docs/install/index.html +5 -5
  74. package/dist/docs/manual/index.html +86 -50
  75. package/dist/index.html +1 -1
  76. package/dist/knowledge/index.html +6 -6
  77. 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
  78. package/dist/plugins/index.html +5 -5
  79. package/dist/pm/bugs/index.html +6 -6
  80. package/dist/pm/iterations/index.html +6 -6
  81. package/dist/pm/projects/detail/index.html +6 -6
  82. package/dist/pm/projects/index.html +6 -6
  83. package/dist/pm/requirements/index.html +6 -6
  84. package/dist/prompts/index.html +6 -6
  85. package/dist/reports/index.html +6 -6
  86. package/dist/requirement-analysis/index.html +6 -6
  87. package/dist/requirements/index.html +6 -6
  88. package/dist/tasks/index.html +6 -6
  89. package/dist/templates/index.html +6 -6
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. package/dist/test-automation/index.html +6 -6
  96. package/dist/test-stats/index.html +6 -6
  97. package/dist/todos/index.html +6 -6
  98. package/dist/workbench/index.html +5 -5
  99. package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +47 -30
  100. package/lh-plugins/case-review-prompt.mjs +181 -0
  101. package/lh-plugins/lh-case-review.mjs +627 -0
  102. package/lh-plugins/lh-pm.mjs +21 -7
  103. package/lh-plugins/lh-req-analysis.mjs +63 -3
  104. package/lh-plugins/lh-story-review.mjs +98 -0
  105. package/lh-plugins/lh-test-points.mjs +98 -0
  106. package/lh-plugins/plugin-prompts.mjs +8 -0
  107. package/lh-plugins/req-analysis-prompt.mjs +8 -37
  108. package/lh-plugins/story-review-prompt.mjs +97 -0
  109. package/lh-plugins/test-points-prompt.mjs +88 -0
  110. package/package.json +1 -1
  111. package/dist/_astro/Base.UUIdmKid.css +0 -1
  112. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.DSWudA4D.js +0 -1
  113. package/dist/_astro/CaseExecBoard.D8K4NzrB.js +0 -1
  114. package/dist/_astro/CaseGenerateApp.bZ_K72NQ.js +0 -9
  115. package/dist/_astro/CasesLibrary.Dhg2pdwU.js +0 -1
  116. package/dist/_astro/ChatApp.B6I3gGKI.js +0 -221
  117. package/dist/_astro/ColumnResize.BEkEW7qw.js +0 -1
  118. package/dist/_astro/DocsFileBrowser.DvBPLCEp.js +0 -1
  119. package/dist/_astro/ExcelFieldTags.De-C3dqn.js +0 -152
  120. package/dist/_astro/KnowledgeLibrary.BzFTmNwA.js +0 -1
  121. package/dist/_astro/NavLibraries.CVdolwYy.js +0 -1
  122. package/dist/_astro/OverflowHint.D6v4Uj2N.js +0 -1
  123. package/dist/_astro/PluginsPage.B8U4uvD2.js +0 -39
  124. package/dist/_astro/PluginsPage.v6afs984.js +0 -1
  125. package/dist/_astro/PmBugsBoard.CSIGq0wz.js +0 -1
  126. package/dist/_astro/PmIterationsBoard.BmBc90as.js +0 -1
  127. package/dist/_astro/PmProjectsBoard.DIVs_xJu.js +0 -1
  128. package/dist/_astro/PmRequirementsBoard.DcLiUhBe.js +0 -1
  129. package/dist/_astro/PmRequirementsBoard.N0LM5jHo.js +0 -1
  130. package/dist/_astro/PromptsLibrary.B1RVZqj8.js +0 -1
  131. package/dist/_astro/ReqAnalysisBoard.BIIUqGVh.js +0 -25
  132. package/dist/_astro/RequirementsLibrary.BZhxG9VU.js +0 -1
  133. package/dist/_astro/SearchableSelect.BIjXzTPD.js +0 -1
  134. package/dist/_astro/SelectDropdown.B3-XpBpn.js +0 -1
  135. package/dist/_astro/SettingsDialog.DILea5eO.js +0 -1
  136. package/dist/_astro/SpaceSwitcher.BeCumAuj.js +0 -7
  137. package/dist/_astro/TasksBoard.B3SzQ5bR.js +0 -1
  138. package/dist/_astro/TemplatesLibrary.Ci3yHQTr.js +0 -1
  139. package/dist/_astro/TestStatsBoard.CgVvwMzN.js +0 -1
  140. package/dist/_astro/Toast.R8_2OWRX.js +0 -1
  141. package/dist/_astro/TodosBoard.BNDF1iVZ.js +0 -1
  142. package/dist/_astro/UiAutoBoard.BNLRrunE.js +0 -9
  143. package/dist/_astro/app-config.Cq_F8I0l.js +0 -1
  144. package/dist/_astro/i18n.DPw-aTIZ.js +0 -7
  145. package/dist/_astro/index.astro_astro_type_script_index_0_lang.B9YrqBHf.js +0 -1
  146. package/dist/_astro/markdown-client.DRva7DS9.js +0 -58
  147. package/dist/_astro/plugins.CKkgnq4r.js +0 -1
  148. package/dist/_astro/prompts-meta.D_2wiFiH.js +0 -2
  149. package/dist/_astro/update.BSnBvaFF.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # 版本日志
2
2
 
3
+ ## [0.1.15] - 2026-10-23
4
+
5
+ 新增「用例质量评审」「场景遗漏补全」两个测试技能插件:在用例管理里就能对整份用例做分级质检、挖漏测场景,并把要改的地方直接带到工作台会话里改原文件。工作台同时补上输入框记忆与「任务卡」胶囊,需求分析的拆解 / 审查 / 生成测试点都能看到实时进度并可中断;全站表格 / 列表的列宽拖拽、固定列与横向滚动记忆也统一成「用例执行统计」这一套。
6
+
7
+ ### 新增
8
+
9
+ - **用例质量评审**:用例管理文件行多出「评审」列(上次分数 / 补全条数 / 是否过期)与「评审」按钮,抽屉分「质量评审 / 场景补全 / 用例表格」三个 Tab。规则层先算七项量化指标与硬伤,模型层逐条给五维分(需求覆盖 25 / 步骤可执行 25 / 预期可判定 20 / 数据与边界 15 / 规范完整 15)与可直接照改的扣分建议;总分按权重加权,≥85 可用、60–84 待修改、<60 错误无效。报告存 `<空间>/用例评审/用例评审.json`,可导出 Markdown
10
+ - **场景遗漏补全**:评审抽屉的「场景补全」Tab 按非功能 / 安全边界与容错 / 兼容性 / 隐藏业务规则四类挖人工最容易漏的场景,每条给出为什么容易漏与前置 / 步骤 / 预期 / 优先级;勾选后把建议带进这条用例绑定的工作台会话写回原文件,写前自动备份
11
+ - **评审结论可一键跳工作台改**:逐条明细悬停标题右侧出现「修改」,带着编号、扣分原因与建议跳到该用例绑定的会话(没有就新建),由模型按文件表头改原文件;也能按当前筛选「批量修改」
12
+ - **用例表格(评审抽屉)**:固定六列为编号 / 标题 / 步骤 / 预期 / 判定 / 建议,步骤与预期默认两行、超出省略号 + 悬停气泡,表头右边缘可拖拽改列宽
13
+ - **工作台任务卡**:评审 / 补全带过来的大批改法不再整段灌进输入框,改成输入框上方的胶囊,点开可预览、编辑、移除;发送时正文随消息一起带上
14
+ - **输入框记忆**:切到别的页面再回工作台,上次没发出去的文字还在(按空间分开存,防抖写入并在页面隐藏 / 卸载时补写)
15
+ - **需求分析实时进度**:拆解按批次、审查与生成测试点按阶段显示「第 N/M 批」与当前动作,可随时中断;生成测试点后自动切到「测试点」Tab,右上角提示也换成对应文案
16
+ - **全站表格列宽与固定列统一**:表格 / 列表一律照「用例执行统计」来——勾选列与关键字段列贴左固定、操作列贴右固定,操作列前留一个填充列吸掉剩余宽度;表头右边缘拖拽改列宽,按页面分别记住(用例执行统计、测试统计、任务、待办、用例评审表、用例 / 提示词 / 知识库列表)。已去掉双击复位,误触双击不会再悄悄改列宽
17
+ - **横向滚动位置记忆**:刷新、切页回来都停在上次的横向位置;恢复在首帧绘制前完成,不再先闪一遍「本应被固定列遮住」的内容
18
+ - **列表列宽可调**:用例管理 / 提示词管理 / 知识库管理的列表也能拖动表头右边缘改列宽,按库分别记住;操作列按钮改为居中并与表头对齐
19
+
20
+ ### 修复
21
+
22
+ - **整批判成「错误无效」**:模型一边给 77–86 分一边把每条都标成错误无效,旧逻辑无条件采信模型的 `verdict`,于是 48 条用例全被判无效。现在判定只由「硬伤证据 + 加权分」决定,模型想判无效必须在 `hard` 里写清证据;提示词同步要求分数与判定自洽。读旧报告时也会按分数重算一次,不必重跑模型
23
+ - **标题显示成「(无标题)」**:`测试项目 / 测试分项目` 这类两级表头的模板,之前把迭代名当成了用例标题。现在 `测试分项目` 优认为标题、`测试项目` 归到所属模块,标题下也不再重复显示与文件名相同的迭代名
24
+ - **用例表格被撑高**:修改建议列原来只吃剩余宽度,抽屉里被挤成一条竖线,一行建议竖排十几行。现在各列都有默认像素宽度(可拖),并且修掉 `block` 覆盖 `line-clamp` 导致两行截断失效的问题
25
+ - **详情行错位**:逐条明细的「修改」按钮与编号、标题、得分不在同一基线上;状态徽标宽度随「可用 / 待修改 / 错误无效」变化,编号列左右跳动
26
+ - **挂载提示词后列表里看不到**:新建提示词后没重新读提示词库,出现「挂载成功但可选列表里没有、界面还显示未挂载」;现在写完配置再广播刷新,并重新拉一次列表。挂载弹窗加了搜索、限高与滚动,弹出时不再触发右侧滚动条
27
+ - **操作列表头与按钮错开**:文档库操作列只传了宽度、把默认的 `text-right` 覆盖掉了,表头左对齐而按钮右对齐
28
+ - **固定列分隔线消失 / 断成虚线**:之前线挂在「是否滚动过」上,滚回左端或惯性回弹到 0 就整条消失;列表里又用内阴影画,只有文字那么高,行与行之间断开。现在只要真的横向滚出去就一直画着,改用整行拉满的绝对定位线,表格与列表都是连续一根
29
+ - **待办「待办名称」与表头对不齐**:表体这一格漏了 `68px` 的固定列偏移,压在勾选列与行号列上,固定线跑到比表头更左的位置;补齐偏移与内边距后表头表体完全重合
30
+ - **深色主题表格**:列宽手柄的竖线在深色表头上隐形,现在换亮色;单元格聚焦时不再变成白底浅字
31
+ - **删除图标不统一**:全站删除按钮常态即红色(`tw-icon-danger`),不再是悬停才红
32
+
33
+ ## [0.1.14] - 2026-10-21
34
+
35
+ 新增「用户故事审查」「生成测试点」两个需求侧插件,插件页重做成「内置 / 测试技能 / 需求管理」分区并补上卡片式布局;同时修掉分组与内容根同名时空间里并排出现「需求管理」和「需求管理 (分组)」的老问题。
36
+
37
+ ### 新增
38
+
39
+ - **用户故事审查**:需求分析页打开时一并打开,按 INVEST 检查拆好的用户故事(独立性、可协商、有价值、可估算、小、可测试),结果以报告 tab 展示,指出每条故事的缺口与改法
40
+ - **生成测试点**:同样跟随需求分析打开,在需求条目下提供「测试点」tab,基于用户故事按功能 / 边界值 / 异常 / 业务规则 / 非功能五个维度拆测试点并标 P0–P3;可导出 XMind(「功能 → 对应测试点」逻辑图骨架)与 Markdown(按用户故事分组)
41
+ - 插件页重排分类:提示词管理、生成提示词、内置能力归「内置插件」,用例管理 / 生成测试用例 / 知识库 / 测试模板 / 测试统计 / 用例执行统计 / 自动化测试归「测试技能」,需求文档库 / 需求分析 / 用户故事审查 / 生成测试点归「需求管理」;卡片一行两张、可展开收起,卡片内容同时适配深色主题
42
+ - 设置页新增「内置插件」面板,按会话插件 / 全局插件分两组展示,可分别展开收起;「我的插件」页同步重做卡片与分类
43
+ - 提示词类型、知识库分类的增删改与「用例类型」统一成同一套交互(选中即编辑的 chip + 共用弹窗),不再有行内输入框
44
+ - 生成用例抽屉改为两列对齐:测试点与引用知识库并齐,提示词按用例类型挂载(一个类型一个提示词,未挂载时不允许确认,可直接新增)
45
+ - 侧栏分组里新增「加入分组 / 移动到其它分组」,自动过滤当前分组及其子组;图标库补充一批常用图标,选择面板加宽、只保留一条纵向滚动条
46
+ - 需求分析、用户故事、测试点等面板记住上次的 tab 与筛选
47
+
48
+ ### 修复
49
+
50
+ - **空间里同时存在「需求管理」和「需求管理 (分组)」**:分组名与插件数据目录同名时,旧逻辑让分组文件夹避让成 `xxx (分组)`,于是空间根并排出现两个近同名目录。现在分组直接接管同名目录,原数据整体收进组内(`需求管理/需求管理/需求管理.json`),对应菜单项也并入该分组以免重名;解散分组时数据搬回空间根。老空间下次读取分组时自动合并,不再生成后缀副本
51
+ - 需求分析、需求管理、项目 / 迭代 / 缺陷、自动化测试的数据目录现在也会跟着分组一起搬迁,插件侧统一按 `resolveContentRoot` 定位,搬家后仍能正常读写;搬迁逐条目合并、不覆盖已有文件,源目录搬空后清理
52
+ - 内置插件卡片展开一个会把会话、全局两侧同能力项一起展开(共享 id 导致状态串台)
53
+ - 深色主题下卡片分隔线过亮、内置插件卡片文字对比度不足
54
+ - 下拉菜单滚动时选项从吸顶搜索框上方漏出、边框遮不住文字
55
+ - 待办「所属任务」在详情、表格与新增行里加截断气泡预览;任务下拉按修改时间排序,与任务页一致
56
+ - Toast 移到页面上方显示,所有增删改操作补齐提示
57
+ - 测试点 tab 没有测试点时不再显示「生成测试点」按钮;测试点列表支持悬停预览
58
+
3
59
  ## [0.1.13] - 2026-10-21
4
60
 
5
61
  修 0.1.12 的两个问题:npm 安装版的一体服务漏注册了「需求分析」中间件,页面一直提示未就绪;分组与内容根同名时侧栏菜单会带上「(分组)」后缀。顺带把「未挂载提示词」从强制弹窗改成内容区提示。
@@ -24,11 +24,18 @@ 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';
30
+ import { CASE_REVIEW_DIR_NAME } from '../../lh-plugins/lh-case-review.mjs';
29
31
  import { getUserConfigDir } from '../../cli/user-config.mjs';
30
32
  import { getDataRoot } from './space-context.mjs';
31
- import { GROUP_MANIFEST_FILE, resolveContentRoot, spaceLocalFile } from './space-layout.mjs';
33
+ import {
34
+ GROUP_MANIFEST_FILE,
35
+ isGroupDir,
36
+ resolveContentRoot,
37
+ spaceLocalFile,
38
+ } from './space-layout.mjs';
32
39
 
33
40
  const PREFIX = '/__tb_nav/groups';
34
41
 
@@ -72,8 +79,9 @@ const ITEM_DIR_NAMES = new Map(
72
79
  );
73
80
 
74
81
  /**
75
- * 不是内容库、但同样在空间里占一个目录的菜单项(待办 / 任务 / 工作汇报的数据)。
76
- * 分组同样是物理归档,所以这几项也要跟着搬进分组文件夹,否则「加了分组但目录没动」。
82
+ * 不是内容库、但同样在空间里占一个目录的菜单项(待办 / 任务 / 工作汇报的数据、
83
+ * 项目管理四类数据、需求分析、自动化测试)。
84
+ * 分组同样是物理归档,所以这些项也要跟着搬进分组文件夹,否则「加了分组但目录没动」。
77
85
  */
78
86
  const WORK_ITEM_DIR_NAMES = new Map([
79
87
  ['todos', TODO_DIR_NAME],
@@ -81,6 +89,14 @@ const WORK_ITEM_DIR_NAMES = new Map([
81
89
  ['reports', REPORT_ROOT_DIR],
82
90
  ['testStats', TEST_STATS_DIR_NAME],
83
91
  ['caseExec', CASE_EXEC_DIR_NAME],
92
+ // 项目管理四个插件各自的固定数据目录
93
+ ['projects', PM_ENTITY_META.projects.dir],
94
+ ['iterations', PM_ENTITY_META.iterations.dir],
95
+ ['pmRequirements', PM_ENTITY_META.requirements.dir],
96
+ ['bugs', PM_ENTITY_META.bugs.dir],
97
+ // 需求分析的分析结果、自动化测试的执行记录
98
+ ['reqAnalysis', REQ_ANALYSIS_DIR_NAME],
99
+ ['uiAuto', UIAUTO_DIR_NAME],
84
100
  ]);
85
101
  for (const [itemId, dirName] of WORK_ITEM_DIR_NAMES) {
86
102
  ITEM_DIR_NAMES.set(itemId, dirName);
@@ -96,8 +112,11 @@ const SKIP_DIR_NAMES = new Set([
96
112
  ...CONTENT_DIR_NAMES,
97
113
  // 项目管理四个插件的固定数据目录:与导航分组同名时靠改名避免冲突
98
114
  ...PM_DIR_NAMES,
99
- // 需求分析的空间数据目录,同样是插件的而不是导航分组
115
+ // 需求分析 / 自动化测试的空间数据目录,同样是插件的而不是导航分组
100
116
  REQ_ANALYSIS_DIR_NAME,
117
+ UIAUTO_DIR_NAME,
118
+ // 用例评审 / 场景补全的报告目录
119
+ CASE_REVIEW_DIR_NAME,
101
120
  'node_modules',
102
121
  'dist',
103
122
  '.astro',
@@ -137,8 +156,9 @@ function readManifest(dir) {
137
156
  if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return null;
138
157
  const id = typeof raw.id === 'string' ? raw.id.trim() : '';
139
158
  // 展示名与文件夹名分开存:分组叫「用例管理」时文件夹必须避让同名内容根(改叫
140
- // 「用例管理 (分组)」),但侧栏仍应显示用户取的名字
141
- const name = typeof raw.name === 'string' ? raw.name.trim() : '';
159
+ // 「用例管理 (分组)」),但侧栏仍应显示用户取的名字;旧数据把文件夹名写进
160
+ // name 的也在这里清掉后缀,避免侧栏出现「需求管理 (分组)」
161
+ const name = stripGroupSuffix(typeof raw.name === 'string' ? raw.name : '');
142
162
  const items = Array.isArray(raw.items)
143
163
  ? raw.items.filter((x) => typeof x === 'string' && x.trim())
144
164
  : [];
@@ -226,7 +246,9 @@ export function scanNavGroups(spaceDir) {
226
246
 
227
247
  const top = [];
228
248
  for (const dirName of safeReaddir(root)) {
229
- if (dirName.startsWith('.') || SKIP_DIR_NAMES.has(dirName)) continue;
249
+ // 只认带清单的目录:保留名(需求管理 / 缺陷管理 / 需求分析 …)被分组采纳后
250
+ // 本身就是分组文件夹,不能再按「插件数据目录」跳过
251
+ if (dirName.startsWith('.')) continue;
230
252
  const abs = path.join(root, dirName);
231
253
  if (!isDir(abs)) continue;
232
254
  const manifest = readManifest(abs);
@@ -246,7 +268,7 @@ export function scanNavGroups(spaceDir) {
246
268
  for (const parent of top) {
247
269
  const parentAbs = path.join(root, parent.dirName);
248
270
  for (const dirName of safeReaddir(parentAbs)) {
249
- if (dirName.startsWith('.') || SKIP_DIR_NAMES.has(dirName)) continue;
271
+ if (dirName.startsWith('.')) continue;
250
272
  const abs = path.join(parentAbs, dirName);
251
273
  if (!isDir(abs)) continue;
252
274
  const manifest = readManifest(abs);
@@ -442,18 +464,29 @@ function safeName(raw) {
442
464
  return name;
443
465
  }
444
466
 
467
+ /**
468
+ * 展示名归一:删掉为避让内容根加的「 (分组)」后缀。
469
+ *
470
+ * 为什么清单里也要清:分组名与插件固定数据目录同名时(需求管理 / 缺陷管理 /
471
+ * 项目列表 / 迭代管理 …),文件夹会被改名成「需求管理 (分组)」;旧版本某些路径
472
+ * 会把文件夹名当成展示名写进清单,于是侧栏出现「需求管理 (分组)」这种名字。
473
+ * 后缀只是磁盘避让手段,不该出现在界面上。
474
+ */
475
+ function stripGroupSuffix(name) {
476
+ return String(name ?? '')
477
+ .replace(/ \(\d+\)$/, '')
478
+ .replace(/ \(分组\)$/, '')
479
+ .trim();
480
+ }
481
+
445
482
  /**
446
483
  * 文件夹名 → 侧栏展示名(兼容没有在清单里存 name 的旧分组)。
447
484
  * 旧数据里为了让开同名内容根,文件夹被改成了「用例管理 (分组)」,甚至再撞车时
448
485
  * 「用例管理 (分组) (2)」;这些都应显示回用户取的名字。
449
486
  */
450
487
  function labelFromDir(name) {
451
- let base = name;
452
- const dup = /^(.*) \(\d+\)$/.exec(base);
453
- if (dup) base = dup[1];
454
- const reserved = /^(.*) \(分组\)$/.exec(base);
455
- if (reserved && SKIP_DIR_NAMES.has(reserved[1])) return reserved[1];
456
- return name;
488
+ const clean = stripGroupSuffix(name);
489
+ return clean || name;
457
490
  }
458
491
 
459
492
  /** 在父目录里占一个不冲突的文件夹名;重名时依次加 (2)、(3) */
@@ -466,6 +499,38 @@ function claimName(parentAbs, desired) {
466
499
  return name;
467
500
  }
468
501
 
502
+ /**
503
+ * 分组采纳保留目录名(分组叫「需求管理」,而「需求管理」本来是插件的数据目录)。
504
+ *
505
+ * 以前的做法是让分组文件夹避让成「需求管理 (分组)」,空间里于是并排出现
506
+ * 「需求管理」与「需求管理 (分组)」两个近同名目录。现在改成同名合并:
507
+ * 把原来的数据目录整份挪进分组文件夹里,成为组内目录
508
+ * (`需求管理/需求管理.json` → `需求管理/需求管理/需求管理.json`),
509
+ * 磁盘上只留一个「需求管理」,插件靠 resolveContentRoot 照样能找到数据。
510
+ */
511
+ function adoptReservedDir(root, name) {
512
+ const abs = path.join(root, name);
513
+ if (!isDir(abs) || isGroupDir(abs)) return; // 已经是分组文件夹(之前采纳过)就不动
514
+ const rest = safeReaddir(abs).filter((n) => n !== '.DS_Store' && n !== '.gitkeep');
515
+ if (!rest.length) {
516
+ // 空壳:直接删掉,让分组文件夹接管这个名字
517
+ try {
518
+ fs.rmSync(abs, { recursive: true, force: true });
519
+ } catch {
520
+ // 删不掉也没关系,下面 mkdir 幂等
521
+ }
522
+ return;
523
+ }
524
+ const tmp = path.join(root, `.adopt-${process.pid}-${Date.now()}`);
525
+ try {
526
+ fs.renameSync(abs, tmp);
527
+ } catch {
528
+ return; // 挪不动就保持原样,后续搬迁逻辑会按常规路径处理
529
+ }
530
+ fs.mkdirSync(abs, { recursive: true });
531
+ moveDir(tmp, path.join(abs, name));
532
+ }
533
+
469
534
  function moveDir(fromAbs, toAbs) {
470
535
  if (path.resolve(fromAbs) === path.resolve(toAbs)) return;
471
536
  if (!fs.existsSync(fromAbs)) return;
@@ -485,6 +550,13 @@ function moveDir(fromAbs, toAbs) {
485
550
  // 搬不动就保留原地,避免丢数据
486
551
  }
487
552
  }
553
+ // 合并搬完后源目录若已空,顺手删掉,别在空间里留空壳
554
+ try {
555
+ if (fs.readdirSync(fromAbs).length === 0)
556
+ fs.rmSync(fromAbs, { recursive: true, force: true });
557
+ } catch {
558
+ // 删不掉就留着
559
+ }
488
560
  }
489
561
  }
490
562
 
@@ -498,9 +570,10 @@ function moveDir(fromAbs, toAbs) {
498
570
  * @param {string} dirName 内容目录名
499
571
  * @param {string} targetAbs 目标绝对路径(<分组>/<dirName> 或 <空间根>/<dirName>)
500
572
  * @param {string[]} [extraSources] 额外来源(例如没有清单的残留文件夹里的同名目录)
573
+ * @param {Set<string>} [skipAbs] 不能当来源的绝对路径(分组自己的文件夹)
501
574
  * @returns {{ moved: boolean, conflicted: string[] }} conflicted 为冲突条目(未覆盖)
502
575
  */
503
- function relocateContentDir(spaceDir, dirName, targetAbs, extraSources = []) {
576
+ function relocateContentDir(spaceDir, dirName, targetAbs, extraSources = [], skipAbs = new Set()) {
504
577
  const root = path.resolve(spaceDir);
505
578
  const target = path.resolve(targetAbs);
506
579
  const conflicted = [];
@@ -515,6 +588,10 @@ function relocateContentDir(spaceDir, dirName, targetAbs, extraSources = []) {
515
588
  for (const raw of sources) {
516
589
  const src = path.resolve(raw);
517
590
  if (src === target || !fs.existsSync(src)) continue;
591
+ // 分组采纳了保留目录名时,来源可能就是分组文件夹本身:不能把它整个搬进自己
592
+ if (skipAbs.has(src)) continue;
593
+ // 目标在来源里面(<分组> → <分组>/<dirName>):整目录搬会把分组自己拖进去
594
+ if (target.startsWith(`${src}${path.sep}`)) continue;
518
595
  let st;
519
596
  try {
520
597
  st = fs.statSync(src);
@@ -620,16 +697,17 @@ export function syncNavGroups(spaceDir, groups) {
620
697
  for (const raw of Array.isArray(groups) ? groups : []) {
621
698
  if (!raw || typeof raw !== 'object') continue;
622
699
  const id = typeof raw.id === 'string' ? raw.id.trim() : '';
623
- // label = 用户取的名字(清单里存这个);name = 文件夹名(与同名内容根避让)
700
+ // label = 用户取的名字(清单里存这个);name = 文件夹名(后面可能避让保留目录名)
624
701
  const label = cleanLabel(raw.name);
625
- const name = safeName(raw.name);
626
- if (!id || !name || byId.has(id)) continue;
702
+ if (!id || !label || byId.has(id)) continue;
627
703
  const g = {
628
704
  id,
629
705
  label,
630
- name,
706
+ name: label,
631
707
  items: Array.isArray(raw.items) ? raw.items : [],
632
708
  parentId: typeof raw.parentId === 'string' ? raw.parentId.trim() : '',
709
+ /** 采纳了保留目录名时,记下要一并并入本组的菜单项 */
710
+ adoptItem: '',
633
711
  };
634
712
  byId.set(id, g);
635
713
  wanted.push(g);
@@ -640,6 +718,22 @@ export function syncNavGroups(spaceDir, groups) {
640
718
  g.parentId = parent && !parent.parentId && parent.id !== g.id ? parent.id : '';
641
719
  }
642
720
 
721
+ /*
722
+ * 分组名与保留目录同名(需求管理 / 缺陷管理 / 项目列表 / 需求分析 …):
723
+ * 让分组直接接管那一路目录,并把对应菜单项并入本组,空间里就只有一个同名文件夹。
724
+ * 那个菜单项已经挂在别的小组里时不接管(否则两个组共享一个数据目录),退回加后缀避让。
725
+ */
726
+ for (const g of wanted.filter((x) => !x.parentId)) {
727
+ const ownerItem = DIR_ITEM_IDS.get(g.name);
728
+ if (!ownerItem) continue;
729
+ if (wanted.some((x) => x.id !== g.id && x.items.includes(ownerItem))) continue;
730
+ g.adoptItem = ownerItem;
731
+ if (!g.items.includes(ownerItem)) g.items.push(ownerItem);
732
+ }
733
+ for (const g of wanted.filter((x) => !x.parentId && !x.adoptItem)) {
734
+ g.name = safeName(g.label);
735
+ }
736
+
643
737
  const warnings = [];
644
738
  const newRel = new Map();
645
739
 
@@ -647,11 +741,20 @@ export function syncNavGroups(spaceDir, groups) {
647
741
  for (const g of wanted.filter((x) => !x.parentId)) {
648
742
  const oldRel = before.get(g.id) ?? '';
649
743
  const oldAbs = oldRel ? path.join(root, oldRel) : '';
744
+ // 采纳保留目录名:先把原来的插件数据目录整份挪进分组文件夹里
745
+ if (g.adoptItem) adoptReservedDir(root, g.name);
650
746
  let name = g.name;
651
747
  if (oldRel !== name) {
748
+ const targetAbs = path.join(root, name);
749
+ const targetManifest = isDir(targetAbs) ? readManifest(targetAbs) : null;
750
+ // 采纳的目录本身就是本组的目标目录,不算「被占用」(别撞进别的分组)
751
+ const adopted =
752
+ Boolean(g.adoptItem) && isDir(targetAbs) && (!targetManifest || targetManifest.id === g.id);
652
753
  // 目标名被别的目录占着(包括没有清单的普通文件夹)时,另取一个不冲突的名字
653
- if (fs.existsSync(path.join(root, name))) name = claimName(root, name);
654
- if (oldAbs && fs.existsSync(oldAbs)) moveDir(oldAbs, path.join(root, name));
754
+ if (fs.existsSync(targetAbs) && !adopted) name = claimName(root, name);
755
+ if (oldAbs && fs.existsSync(oldAbs) && oldAbs !== path.join(root, name)) {
756
+ moveDir(oldAbs, path.join(root, name));
757
+ }
655
758
  }
656
759
  fs.mkdirSync(path.join(root, name), { recursive: true });
657
760
  newRel.set(g.id, name);
@@ -690,10 +793,12 @@ export function syncNavGroups(spaceDir, groups) {
690
793
  desiredRel.set(dirName, rel);
691
794
  }
692
795
  }
693
- for (const dirName of new Set(ITEM_DIR_NAMES.values())) {
796
+ const liveGroupAbs = new Set([...newRel.values()].map((rel) => path.resolve(root, rel)));
797
+ const itemDirNames = new Set(ITEM_DIR_NAMES.values());
798
+ for (const dirName of itemDirNames) {
694
799
  const groupRel = desiredRel.get(dirName);
695
800
  const targetAbs = groupRel ? path.join(root, groupRel, dirName) : path.join(root, dirName);
696
- const out = relocateContentDir(root, dirName, targetAbs);
801
+ const out = relocateContentDir(root, dirName, targetAbs, [], liveGroupAbs);
697
802
  if (out.conflicted.length) {
698
803
  warnings.push(
699
804
  `「${dirName}」里已有同名内容,未覆盖:${out.conflicted.slice(0, 5).join('、')}`,
@@ -712,8 +817,8 @@ export function syncNavGroups(spaceDir, groups) {
712
817
  id: g.id,
713
818
  items: [...new Set(g.items.filter((x) => typeof x === 'string'))],
714
819
  };
715
- // 文件夹名被改过(叫「用例管理」这类与内容根同名的分组会存成「用例管理 (分组)」)时
716
- // 把用户取的名字一并记下,侧栏才不会跟着显示改名后的文件夹名
820
+ // 文件夹名被改过(叫「用例管理」这类与内容根同名、又没能接管的分组会存成「用例管理 (分组)」)
821
+ // 时把用户取的名字一并记下,侧栏才不会跟着显示改名后的文件夹名
717
822
  if (g.label && g.label !== rel.split('/').pop()) manifest.name = g.label;
718
823
  const fp = path.join(root, rel, GROUP_MANIFEST_FILE);
719
824
  const body = `${JSON.stringify(manifest, null, 2)}\n`;
@@ -737,7 +842,9 @@ export function syncNavGroups(spaceDir, groups) {
737
842
  if (!fs.existsSync(abs)) continue;
738
843
  // 兜底:取消分组时把还留在这个目录里的已知内容目录搬出去(上面的通用搬运可能因为
739
844
  // 目录已被改名 / 清单丢失而没算到它),否则「取消分组」会留下一坨搬不走的数据
740
- for (const dirName of new Set(ITEM_DIR_NAMES.values())) {
845
+ for (const dirName of itemDirNames) {
846
+ // 空间根上那一路目录现在是别的分组(采纳了同名目录)时不要往里倒:通用搬运已经处理过
847
+ if (liveGroupAbs.has(path.resolve(root, dirName))) continue;
741
848
  const inside = path.join(abs, dirName);
742
849
  if (!fs.existsSync(inside)) continue;
743
850
  const out = relocateContentDir(root, dirName, path.join(root, dirName), [inside]);
@@ -754,7 +861,11 @@ export function syncNavGroups(spaceDir, groups) {
754
861
  } catch {
755
862
  // ignore
756
863
  }
757
- warnings.push(`分组目录「${rel}」里还有其它文件,已保留目录,仅移除分组关系`);
864
+ // 采纳过保留名的分组解散后,这个目录本身就是插件的数据目录(如「需求管理/需求管理.json」),
865
+ // 属于正常布局,不用提示「还有其它文件」
866
+ if (!itemDirNames.has(rel)) {
867
+ warnings.push(`分组目录「${rel}」里还有其它文件,已保留目录,仅移除分组关系`);
868
+ }
758
869
  continue;
759
870
  }
760
871
  try {
@@ -781,7 +892,7 @@ function scanGroupDirs(root) {
781
892
  };
782
893
  const top = [];
783
894
  for (const name of safeReaddir(root)) {
784
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
895
+ if (name.startsWith('.')) continue;
785
896
  const abs = path.join(root, name);
786
897
  if (!isDir(abs)) continue;
787
898
  const manifest = readManifest(abs);
@@ -793,7 +904,7 @@ function scanGroupDirs(root) {
793
904
  for (const parent of top) {
794
905
  const parentAbs = path.join(root, parent.name);
795
906
  for (const name of safeReaddir(parentAbs)) {
796
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
907
+ if (name.startsWith('.')) continue;
797
908
  const abs = path.join(parentAbs, name);
798
909
  if (!isDir(abs)) continue;
799
910
  const manifest = readManifest(abs);
package/cli/server.mjs CHANGED
@@ -23,6 +23,9 @@ 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
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';
28
+ import { lhCaseBlindspotPlugin, lhCaseReviewPlugin } from '../lh-plugins/lh-case-review.mjs';
26
29
  import { lhUpdatePlugin } from '../lh-plugins/lh-update.mjs';
27
30
  import { lhWebPlugin } from '../builtin/session/lh-web.mjs';
28
31
  import { tbSessionRunsPlugin } from '../builtin/session/session-runs.mjs';
@@ -63,6 +66,10 @@ function attachPlugins(app, dataRoot) {
63
66
  lhStatsPlugin(),
64
67
  lhUiautoPlugin(),
65
68
  lhReqAnalysisPlugin(),
69
+ lhStoryReviewPlugin(),
70
+ lhTestPointsPlugin(),
71
+ lhCaseReviewPlugin(),
72
+ lhCaseBlindspotPlugin(),
66
73
  lhUpdatePlugin(),
67
74
  lhNavGroupsPlugin(),
68
75
  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,10 @@
36
36
  "caseExec": false,
37
37
  "uiAuto": false,
38
38
  "reqAnalysis": false,
39
+ "storyReview": true,
40
+ "testPoints": true,
41
+ "caseReview": false,
42
+ "caseBlindspot": false,
39
43
  "dashboard": false
40
44
  }
41
45
  }
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.DSWudA4D.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.CpzwEBjx.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.VCz1UVxQ.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.13">v0.1.13<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.15">v0.1.15<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.DMoqOVpS.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.D1J9BwYo.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.DILea5eO.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.CnBZRaWE.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
  * 切页滚回顶部。