lantern-harness 0.1.11 → 0.1.13

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 (119) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/builtin/session/lh-nav-groups.mjs +55 -17
  3. package/cli/server.mjs +2 -0
  4. package/config/app.defaults.json +1 -0
  5. package/dist/500.html +52 -4
  6. package/dist/_astro/Base.UUIdmKid.css +1 -0
  7. package/dist/_astro/{Base.astro_astro_type_script_index_0_lang.CvbRi7Tl.js → Base.astro_astro_type_script_index_0_lang.DSWudA4D.js} +1 -1
  8. package/dist/_astro/{CaseExecBoard.Dttqp0wg.js → CaseExecBoard.D8K4NzrB.js} +1 -1
  9. package/dist/_astro/CaseGenerateApp.bZ_K72NQ.js +9 -0
  10. package/dist/_astro/{CasesLibrary.8aMUUGp_.js → CasesLibrary.Dhg2pdwU.js} +1 -1
  11. package/dist/_astro/ChatApp.B6I3gGKI.js +221 -0
  12. package/dist/_astro/{ConfirmDialog.BZzZWDci.js → ConfirmDialog.CsMwWevK.js} +1 -1
  13. package/dist/_astro/{DashboardBoard.CkSbhEDI.js → DashboardBoard.uPjTYpJZ.js} +1 -1
  14. package/dist/_astro/{DocsFileBrowser.MKVCfZrE.js → DocsFileBrowser.DvBPLCEp.js} +1 -1
  15. package/dist/_astro/{DocsPager.DJY4foYL.js → DocsPager.EPT5-oEx.js} +1 -1
  16. package/dist/_astro/{DrawerField.CHRg77LG.js → DrawerField.DqvXFCFh.js} +1 -1
  17. package/dist/_astro/{ExcelFieldTags.DXMeaDa5.js → ExcelFieldTags.De-C3dqn.js} +1 -1
  18. package/dist/_astro/{KnowledgeLibrary.B-p1aoQN.js → KnowledgeLibrary.BzFTmNwA.js} +1 -1
  19. package/dist/_astro/{NamePromptDialog.Wa9O530a.js → NamePromptDialog.CS1pTTVl.js} +1 -1
  20. package/dist/_astro/{NavLibraries.C6LImMO_.js → NavLibraries.CVdolwYy.js} +1 -1
  21. package/dist/_astro/PluginsPage.B8U4uvD2.js +39 -0
  22. package/dist/_astro/{PluginsPage.DkmRPfbU.js → PluginsPage.v6afs984.js} +1 -1
  23. package/dist/_astro/{PmBugsBoard.CMT4-eoB.js → PmBugsBoard.CSIGq0wz.js} +1 -1
  24. package/dist/_astro/{PmIterationsBoard.BQM_dzdZ.js → PmIterationsBoard.BmBc90as.js} +1 -1
  25. package/dist/_astro/{PmProjectDetail.CzU80pat.js → PmProjectDetail.BDKXOQJD.js} +1 -1
  26. package/dist/_astro/{PmProjectsBoard.Cxsa7SYQ.js → PmProjectsBoard.DIVs_xJu.js} +1 -1
  27. package/dist/_astro/{PmRequirementsBoard.4_JMDDN0.js → PmRequirementsBoard.DcLiUhBe.js} +1 -1
  28. package/dist/_astro/PmRequirementsBoard.N0LM5jHo.js +1 -0
  29. package/dist/_astro/PmShared.D69sPvec.js +1 -0
  30. package/dist/_astro/PromptsLibrary.B1RVZqj8.js +1 -0
  31. package/dist/_astro/{ReportsPage.Fh5DRKLT.js → ReportsPage.N1EaH8E-.js} +1 -1
  32. package/dist/_astro/ReqAnalysisBoard.BIIUqGVh.js +25 -0
  33. package/dist/_astro/{RequirementsLibrary.CBkuWE8X.js → RequirementsLibrary.BZhxG9VU.js} +1 -1
  34. package/dist/_astro/SearchableSelect.BIjXzTPD.js +1 -0
  35. package/dist/_astro/SelectDropdown.B3-XpBpn.js +1 -0
  36. package/dist/_astro/{SettingsDialog.CVB5Gtk4.js → SettingsDialog.DILea5eO.js} +1 -1
  37. package/dist/_astro/SlideOverDrawer.HqVYaIjP.js +1 -0
  38. package/dist/_astro/{SpaceSwitcher.BVQLt_tL.js → SpaceSwitcher.BeCumAuj.js} +1 -1
  39. package/dist/_astro/{TasksBoard.Bu-fpIZ7.js → TasksBoard.B3SzQ5bR.js} +1 -1
  40. package/dist/_astro/{TemplatesLibrary.DSylQGlN.js → TemplatesLibrary.Ci3yHQTr.js} +1 -1
  41. package/dist/_astro/{TestStatsBoard.CPyKW4wc.js → TestStatsBoard.CgVvwMzN.js} +1 -1
  42. package/dist/_astro/{TodosBoard.8kvRTEW-.js → TodosBoard.BNDF1iVZ.js} +1 -1
  43. package/dist/_astro/UiAutoBoard.BNLRrunE.js +9 -0
  44. package/dist/_astro/app-config.Cq_F8I0l.js +1 -0
  45. package/dist/_astro/dialog.DZHZCe_T.js +1 -0
  46. package/dist/_astro/{hydrate-cache.BXX604Bw.js → hydrate-cache.zljz1n5X.js} +1 -1
  47. package/dist/_astro/i18n.DPw-aTIZ.js +7 -0
  48. package/dist/_astro/index.astro_astro_type_script_index_0_lang.B9YrqBHf.js +1 -0
  49. package/dist/_astro/{lib.CgXLzMMd.js → lib.BQbwbnfE.js} +1 -1
  50. package/dist/_astro/listbox.DNxAJmEo.js +1 -0
  51. package/dist/_astro/menu.Dnrpz489.js +1 -0
  52. package/dist/_astro/{open-docs-in-session.CyFNgh1I.js → open-docs-in-session.LWVC43xp.js} +1 -1
  53. package/dist/_astro/{plugins.C2BMfzv1.js → plugins.CKkgnq4r.js} +1 -1
  54. package/dist/_astro/{portal.C0hAhXDF.js → portal.Chh6O5xk.js} +2 -2
  55. package/dist/_astro/prompts-meta.D_2wiFiH.js +2 -0
  56. package/dist/_astro/req-analysis.C1uUndMm.js +6 -0
  57. package/dist/_astro/{settings.Ceefeil5.js → settings.HM3DiNh0.js} +2 -2
  58. package/dist/_astro/{spaces-client.BocUabwy.js → spaces-client.CWqBZccW.js} +1 -1
  59. package/dist/_astro/ui-auto-prompt.B09MVaTI.js +4 -0
  60. package/dist/_astro/{update.CtF8vsag.js → update.BSnBvaFF.js} +1 -1
  61. package/dist/_astro/{use-text-value.DBQvHeNl.js → use-text-value.B3mOiuGb.js} +1 -1
  62. package/dist/_astro/{view-prefs.BEAZRcxF.js → view-prefs.7wGuDpzi.js} +1 -1
  63. package/dist/case-exec/index.html +83 -5
  64. package/dist/cases/generate/index.html +53 -5
  65. package/dist/cases/library/index.html +83 -5
  66. package/dist/dashboard/index.html +83 -5
  67. package/dist/docs/changelog/index.html +86 -5
  68. package/dist/docs/install/index.html +52 -4
  69. package/dist/docs/manual/index.html +82 -6
  70. package/dist/index.html +1 -1
  71. package/dist/knowledge/index.html +83 -5
  72. 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 +52 -4
  73. package/dist/plugins/index.html +53 -5
  74. package/dist/pm/bugs/index.html +83 -5
  75. package/dist/pm/iterations/index.html +83 -5
  76. package/dist/pm/projects/detail/index.html +83 -5
  77. package/dist/pm/projects/index.html +83 -5
  78. package/dist/pm/requirements/index.html +83 -5
  79. package/dist/prompts/index.html +83 -5
  80. package/dist/reports/index.html +83 -5
  81. package/dist/requirement-analysis/index.html +795 -0
  82. package/dist/requirements/index.html +83 -5
  83. package/dist/tasks/index.html +83 -5
  84. package/dist/templates/index.html +83 -5
  85. 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 +52 -4
  86. 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 +52 -4
  87. 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 +52 -4
  88. 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 +52 -4
  89. 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 +52 -4
  90. package/dist/test-automation/index.html +83 -5
  91. package/dist/test-stats/index.html +83 -5
  92. package/dist/todos/index.html +83 -5
  93. package/dist/workbench/index.html +53 -5
  94. package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +24 -2
  95. package/lh-plugins/lh-req-analysis.mjs +672 -0
  96. package/lh-plugins/plugin-prompts.mjs +2 -0
  97. package/lh-plugins/req-analysis-prompt.mjs +118 -0
  98. package/package.json +1 -1
  99. package/dist/_astro/Base.Bgxs1QQl.css +0 -1
  100. package/dist/_astro/CaseGenerateApp.DqW_nWMc.js +0 -9
  101. package/dist/_astro/ChatApp.BLxf0h1d.js +0 -219
  102. package/dist/_astro/PluginsPage.-97n3x2U.js +0 -39
  103. package/dist/_astro/PmRequirementsBoard.B8HL07cw.js +0 -1
  104. package/dist/_astro/PmShared.Ca2Ao7v_.js +0 -1
  105. package/dist/_astro/PromptsLibrary.C9BcIxKK.js +0 -1
  106. package/dist/_astro/SearchableSelect.DnjoSslK.js +0 -1
  107. package/dist/_astro/SelectDropdown.CuuDHa8s.js +0 -1
  108. package/dist/_astro/SlideOverDrawer.B7B5Wu8I.js +0 -1
  109. package/dist/_astro/UiAutoBoard.DFTiDqCp.js +0 -9
  110. package/dist/_astro/active-element-history.CED-m1Zp.js +0 -1
  111. package/dist/_astro/app-config.BUPzGl9f.js +0 -1
  112. package/dist/_astro/dialog.BAPTk9a_.js +0 -1
  113. package/dist/_astro/i18n.BGPnP1Bg.js +0 -7
  114. package/dist/_astro/index.astro_astro_type_script_index_0_lang.LPL9mPQY.js +0 -1
  115. package/dist/_astro/listbox.C96OCanh.js +0 -1
  116. package/dist/_astro/menu.IPWdRoNM.js +0 -1
  117. package/dist/_astro/prompts-meta.Bua-j14I.js +0 -2
  118. package/dist/_astro/ui-auto-prompt.CX8fju7r.js +0 -3
  119. package/dist/_astro/use-tree-walker.DFU2AaAP.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # 版本日志
2
2
 
3
+ ## [0.1.13] - 2026-10-21
4
+
5
+ 修 0.1.12 的两个问题:npm 安装版的一体服务漏注册了「需求分析」中间件,页面一直提示未就绪;分组与内容根同名时侧栏菜单会带上「(分组)」后缀。顺带把「未挂载提示词」从强制弹窗改成内容区提示。
6
+
7
+ ### 修复
8
+
9
+ - **npm / 本地一体服务下「需求分析」不可用**:`cli/server.mjs` 自己维护了一份插件清单,0.1.12 加需求分析时只注册到了 `astro.config.mjs` 的 Vite 插件里,`lantern web` 启动的服务没有 `/__tb_reqanalysis`,页面因此一直停在「需求分析需要本地服务,当前未就绪」。现在两条入口都会注册;提示文案也改成可操作的(升级后重启服务),不再暗示只有 `npm run dev` 能用
10
+ - **分组菜单名带上「(分组)」后缀**:分组与内容根同名(例如分组也叫「用例管理」「需求管理」)时,文件夹必须避让成 `用例管理 (分组)`,而侧栏此前直接拿文件夹名当菜单名。现在 `.group.json` 里额外记 `name`(用户取的名字),界面与文件夹名解耦;老分组没有该字段,扫描时会把 ` (分组)` / ` (2)` 后缀还原掉,不用重新建组
11
+ - 自动化测试「未挂载提示词」不再自动弹窗:进页面 / 切项目时只把顶栏提示词框标黄,内容区按当前 Tab 给一句对应说明(运行要跑 / 生成要出码 / 历史需重跑)+ 「挂载提示词」按钮,点按钮才打开弹窗;取消后保持未挂载,不会再次弹出
12
+
13
+ ## [0.1.12] - 2026-10-21
14
+
15
+ 新增「需求分析」插件:把需求文档拆成按 INVEST 写法的用户故事并做体检,拆好的故事可以直接带进工作台的用例生成;顺带把生成用例抽屉重排成两列、下拉框改成「只读值 + 菜单内搜索」。
16
+
17
+ ### 新增
18
+
19
+ - 「需求分析」插件(`/requirement-analysis/`):选一份来源需求文档即新建一次分析,服务端落在 `<空间>/需求分析/需求分析.json`,一条分析 = 来源 + 需求条目 + 用户故事 + 体检报告
20
+ - 拆解:按「需求分析提示词.md」的 `## 拆解` 段落分批(单批上限 12000 字)跑模型,产出需求条目(带原文引用)与用户故事(`US-001` 起由服务端编号、角色 / 目标 / 价值 / 主流程 / 替代流程 / 异常 / 验收 / 优先级 / 覆盖维度);重新拆解会清掉旧故事与旧体检并从头编号
21
+ - 体检:`auditStories` 纯函数先跑规则检查(条目覆盖率、字段完整性、维度覆盖),再由模型补语义缺口(漏角色、替代流程不成立、验收不可测、故事冲突、拆得过碎),两类缺口都落到同一份报告里,按高 / 中 / 低标色
22
+ - 补写:勾选缺口后让模型只补被选中的部分,补完重新跑一次规则体检,避免「补一条坏一条」
23
+ - 故事视图:卡片式展示,可按优先级 / 维度筛、勾选故事后一键「用选中故事生成用例」跳到 `/workbench/?plugin=caseGen&reqDoc=...&stories=...`,工作台抽屉自动带出这份分析与勾选的故事
24
+ - 工作台「生成测试用例」抽屉接用户故事:需求来源分「需求文档 / 用户故事」,选用户故事时列出该分析的全部故事可全选 / 全不选,抽屉里显示「已选 N 个故事」的摘要;会话上记 `reqSource` / `docTitle`,生成的系统提示词按故事逐条覆盖
25
+ - 用例类型维护(新增 / 编辑 / 删除)改成弹窗 `CaseTypeDialog`,与抽屉的 Esc 分层(先关弹窗,再关抽屉)
26
+ - 侧栏新增「需求分析」入口,`docs/操作手册.md` 补一节说明
27
+
28
+ ### 修复
29
+
30
+ - 抽屉里的下拉框:原来点开就进入「编辑已选值」,误删一个字等于清空选择,且输入框留下的是查询词。现在触发器只显示当前值(不可编辑),搜索框放在菜单顶部;展开时值按占位文字色置灰表示「这是当前值、不是正在输入」,不选任何项关掉仍是原值
31
+ - 菜单展开时按 Esc 会把整个抽屉一起关掉:抽屉的捕获监听抢在菜单前面。现在有展开的 listbox 时先放行给菜单
32
+ - 抽屉出现横向滚动条:`ExcelFieldTags` 的隐藏测量层没有宽度约束,把内容宽度撑到 895px;限定容器宽度并裁剪
33
+ - 用例类型下方「新增 / 编辑 / 删除」与右侧模板字段 chip 错行:原先左右两列各有独立内边距,现在两行共用一个 grid,按钮与 chip 同一水平线
34
+
35
+ ### 优化
36
+
37
+ - 生成用例抽屉加宽到 768px:用例类型 / 用例模板、输出格式 / 提示词改成两列并排,需求来源与故事勾选占整行,底部汇总本配置
38
+ - 下拉框的值被省略号截断时悬停出气泡看全称(需求来源、用例模板、提示词、故事标题都适用,只有真截断才弹)
39
+
3
40
  ## [0.1.11] - 2026-10-21
4
41
 
5
42
  修 0.1.10 的仪表盘排版:刷新缓存的包裹层把仪表盘岛当成了横向容器,页头与画布被并排摆放。
@@ -25,6 +25,7 @@ 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
27
  import { PM_DIR_NAMES } from '../../lh-plugins/lh-pm.mjs';
28
+ import { REQ_ANALYSIS_DIR_NAME } from '../../lh-plugins/lh-req-analysis.mjs';
28
29
  import { getUserConfigDir } from '../../cli/user-config.mjs';
29
30
  import { getDataRoot } from './space-context.mjs';
30
31
  import { GROUP_MANIFEST_FILE, resolveContentRoot, spaceLocalFile } from './space-layout.mjs';
@@ -95,6 +96,8 @@ const SKIP_DIR_NAMES = new Set([
95
96
  ...CONTENT_DIR_NAMES,
96
97
  // 项目管理四个插件的固定数据目录:与导航分组同名时靠改名避免冲突
97
98
  ...PM_DIR_NAMES,
99
+ // 需求分析的空间数据目录,同样是插件的而不是导航分组
100
+ REQ_ANALYSIS_DIR_NAME,
98
101
  'node_modules',
99
102
  'dist',
100
103
  '.astro',
@@ -133,10 +136,13 @@ function readManifest(dir) {
133
136
  const raw = readJson(fp, null);
134
137
  if (!raw || typeof raw !== 'object' || Array.isArray(raw)) return null;
135
138
  const id = typeof raw.id === 'string' ? raw.id.trim() : '';
139
+ // 展示名与文件夹名分开存:分组叫「用例管理」时文件夹必须避让同名内容根(改叫
140
+ // 「用例管理 (分组)」),但侧栏仍应显示用户取的名字
141
+ const name = typeof raw.name === 'string' ? raw.name.trim() : '';
136
142
  const items = Array.isArray(raw.items)
137
143
  ? raw.items.filter((x) => typeof x === 'string' && x.trim())
138
144
  : [];
139
- return { id, items };
145
+ return { id, name, items };
140
146
  }
141
147
 
142
148
  function onlyManifest(dir) {
@@ -219,40 +225,47 @@ export function scanNavGroups(spaceDir) {
219
225
  };
220
226
 
221
227
  const top = [];
222
- for (const name of safeReaddir(root)) {
223
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
224
- const abs = path.join(root, name);
228
+ for (const dirName of safeReaddir(root)) {
229
+ if (dirName.startsWith('.') || SKIP_DIR_NAMES.has(dirName)) continue;
230
+ const abs = path.join(root, dirName);
225
231
  if (!isDir(abs)) continue;
226
232
  const manifest = readManifest(abs);
227
233
  if (!manifest) continue;
228
234
  const g = {
229
- id: takeId(manifest.id, `dir:${name}`),
230
- name,
235
+ id: takeId(manifest.id, `dir:${dirName}`),
236
+ // 展示名优先用清单里记的;老数据没有就从文件夹名还原(去掉为避让内容根加的「 (分组)」)
237
+ name: manifest.name || labelFromDir(dirName),
231
238
  items: takeItems([...manifest.items, ...nestedContentItems(abs)]),
239
+ /** 磁盘上的文件夹名:扫描时定位子分组用,不对外展示 */
240
+ dirName,
232
241
  };
233
242
  top.push(g);
234
243
  groups.push(g);
235
244
  }
236
245
 
237
246
  for (const parent of top) {
238
- const parentAbs = path.join(root, parent.name);
239
- for (const name of safeReaddir(parentAbs)) {
240
- if (name.startsWith('.') || SKIP_DIR_NAMES.has(name)) continue;
241
- const abs = path.join(parentAbs, name);
247
+ const parentAbs = path.join(root, parent.dirName);
248
+ for (const dirName of safeReaddir(parentAbs)) {
249
+ if (dirName.startsWith('.') || SKIP_DIR_NAMES.has(dirName)) continue;
250
+ const abs = path.join(parentAbs, dirName);
242
251
  if (!isDir(abs)) continue;
243
252
  const manifest = readManifest(abs);
244
253
  if (!manifest) continue;
245
254
  groups.push({
246
- id: takeId(manifest.id, `dir:${parent.name}/${name}`),
247
- name,
255
+ id: takeId(manifest.id, `dir:${parent.dirName}/${dirName}`),
256
+ name: manifest.name || labelFromDir(dirName),
248
257
  items: takeItems([...manifest.items, ...nestedContentItems(abs)]),
249
258
  parentId: parent.id,
259
+ dirName,
250
260
  });
251
261
  }
252
262
  }
253
263
 
254
264
  const childOf = new Set(groups.map((g) => g.parentId).filter(Boolean));
255
- const kept = groups.filter((g) => g.items.length > 0 || childOf.has(g.id));
265
+ // dirName 只在扫描过程中定位子分组用,对外只给 id / name / items / parentId
266
+ const kept = groups
267
+ .filter((g) => g.items.length > 0 || childOf.has(g.id))
268
+ .map(({ dirName: _dirName, ...g }) => g);
256
269
  // 只有真正能还原出分组时才算「磁盘已有分组」;否则按尚未文件夹化处理,避免清空配置
257
270
  return { groups: kept, found: kept.length > 0 };
258
271
  }
@@ -411,19 +424,38 @@ export function markNavRootsDetected(spaceDir, rootIds) {
411
424
  return ids;
412
425
  }
413
426
 
414
- /** 文件夹名清洗:去掉路径分隔符与首尾点,避开内容根 / 保留目录名 */
415
- function safeName(raw) {
416
- let name = String(raw ?? '')
427
+ /** 用户取的名字:只清掉路径分隔符与首尾点 */
428
+ function cleanLabel(raw) {
429
+ return String(raw ?? '')
417
430
  .replace(/[\\/:*?"<>|]/g, '-')
418
431
  .replace(/^\.+/, '')
419
432
  .trim();
433
+ }
434
+
435
+ /** 文件夹名清洗:在用户名字基础上避开内容根 / 保留目录名 */
436
+ function safeName(raw) {
437
+ const name = cleanLabel(raw);
420
438
  if (!name) return '';
421
439
  if (SKIP_DIR_NAMES.has(name) || name === GROUP_MANIFEST_FILE) {
422
- name = `${name} (分组)`;
440
+ return `${name} (分组)`;
423
441
  }
424
442
  return name;
425
443
  }
426
444
 
445
+ /**
446
+ * 文件夹名 → 侧栏展示名(兼容没有在清单里存 name 的旧分组)。
447
+ * 旧数据里为了让开同名内容根,文件夹被改成了「用例管理 (分组)」,甚至再撞车时
448
+ * 「用例管理 (分组) (2)」;这些都应显示回用户取的名字。
449
+ */
450
+ 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;
457
+ }
458
+
427
459
  /** 在父目录里占一个不冲突的文件夹名;重名时依次加 (2)、(3) */
428
460
  function claimName(parentAbs, desired) {
429
461
  let name = desired;
@@ -588,10 +620,13 @@ export function syncNavGroups(spaceDir, groups) {
588
620
  for (const raw of Array.isArray(groups) ? groups : []) {
589
621
  if (!raw || typeof raw !== 'object') continue;
590
622
  const id = typeof raw.id === 'string' ? raw.id.trim() : '';
623
+ // label = 用户取的名字(清单里存这个);name = 文件夹名(与同名内容根避让)
624
+ const label = cleanLabel(raw.name);
591
625
  const name = safeName(raw.name);
592
626
  if (!id || !name || byId.has(id)) continue;
593
627
  const g = {
594
628
  id,
629
+ label,
595
630
  name,
596
631
  items: Array.isArray(raw.items) ? raw.items : [],
597
632
  parentId: typeof raw.parentId === 'string' ? raw.parentId.trim() : '',
@@ -677,6 +712,9 @@ export function syncNavGroups(spaceDir, groups) {
677
712
  id: g.id,
678
713
  items: [...new Set(g.items.filter((x) => typeof x === 'string'))],
679
714
  };
715
+ // 文件夹名被改过(叫「用例管理」这类与内容根同名的分组会存成「用例管理 (分组)」)时
716
+ // 把用户取的名字一并记下,侧栏才不会跟着显示改名后的文件夹名
717
+ if (g.label && g.label !== rel.split('/').pop()) manifest.name = g.label;
680
718
  const fp = path.join(root, rel, GROUP_MANIFEST_FILE);
681
719
  const body = `${JSON.stringify(manifest, null, 2)}\n`;
682
720
  try {
package/cli/server.mjs CHANGED
@@ -22,6 +22,7 @@ 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';
25
26
  import { lhUpdatePlugin } from '../lh-plugins/lh-update.mjs';
26
27
  import { lhWebPlugin } from '../builtin/session/lh-web.mjs';
27
28
  import { tbSessionRunsPlugin } from '../builtin/session/session-runs.mjs';
@@ -61,6 +62,7 @@ function attachPlugins(app, dataRoot) {
61
62
  lhReportsPlugin(),
62
63
  lhStatsPlugin(),
63
64
  lhUiautoPlugin(),
65
+ lhReqAnalysisPlugin(),
64
66
  lhUpdatePlugin(),
65
67
  lhNavGroupsPlugin(),
66
68
  lhConfigPlugin(),
@@ -35,6 +35,7 @@
35
35
  "testStats": false,
36
36
  "caseExec": false,
37
37
  "uiAuto": false,
38
+ "reqAnalysis": false,
38
39
  "dashboard": false
39
40
  }
40
41
  }
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.CvbRi7Tl.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.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>
7
7
  (function () {
8
8
  try {
9
9
  // 配置按空间分键(`tw.app.config.v1::<spaceId>`),主题必须从同一个键读,
@@ -80,9 +80,25 @@
80
80
  }, 3000);
81
81
  }
82
82
  }
83
+ // 有了侧栏刷新缓存(上次真实渲染的 DOM)也不必再摆平铺占位:
84
+ // 否则收起的分组会先以「平铺展开」的样子闪一下再变成分组
85
+ try {
86
+ var navCacheKey = spaceId ? 'tw.hydrate.nav::' + spaceId : 'tw.hydrate.nav';
87
+ if (localStorage.getItem(navCacheKey)) {
88
+ document.documentElement.dataset.navCached = '1';
89
+ window.setTimeout(function () {
90
+ var island = document.querySelector('.tw-nav-libraries astro-island');
91
+ if (!island || !island.querySelector('.tw-nav-item-main')) {
92
+ document.documentElement.removeAttribute('data-nav-cached');
93
+ }
94
+ }, 3000);
95
+ }
96
+ } catch (e) {
97
+ /* ignore */
98
+ }
83
99
  } catch (e) {}
84
100
  })();
85
- </script><link rel="stylesheet" href="/_astro/Base.Bgxs1QQl.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.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)}
86
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) {
87
103
  animation-duration: 180ms;
88
104
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
@@ -119,10 +135,11 @@
119
135
  animation-duration: 180ms;
120
136
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
121
137
  animation-fill-mode: both;
122
- 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.11">v0.1.11<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.BVQLt_tL.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.C6LImMO_.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.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";
123
139
  const cacheKey = "tw.hydrate.nav";
124
140
  const fixActive = true;
125
141
  const capture = false;
142
+ const syncNavGroups = true;
126
143
 
127
144
  (function () {
128
145
  try {
@@ -156,6 +173,35 @@ const capture = false;
156
173
  nodes[i].setAttribute('data-hydrate-cache', '');
157
174
  nodes[i].setAttribute('aria-hidden', 'true');
158
175
  }
176
+ // 侧栏分组:缓存里的展开 / 收起状态可能过期(用户收起后又刷新),
177
+ // 按 localStorage 校正一遍再插入,避免「先展开、再收起」闪一下
178
+ if (syncNavGroups) {
179
+ for (var gi = 0; gi < nodes.length; gi++) {
180
+ // 缓存片段是按岛屿的顶层子节点逐个存的:分组本身就是顶层 <details>,
181
+ // 只查后代会漏掉它,所以自己也要算一个候选
182
+ var candidates = [nodes[gi]];
183
+ var nested = nodes[gi].querySelectorAll
184
+ ? nodes[gi].querySelectorAll('[data-nav-group]')
185
+ : [];
186
+ for (var ni = 0; ni < nested.length; ni++) candidates.push(nested[ni]);
187
+ for (var gj = 0; gj < candidates.length; gj++) {
188
+ var groupEl = candidates[gj];
189
+ if (!groupEl.hasAttribute || !groupEl.hasAttribute('data-nav-group')) continue;
190
+ var gid = groupEl.getAttribute('data-nav-group');
191
+ if (!gid) continue;
192
+ var gKey = 'tw.nav.groupOpen.' + gid;
193
+ if (spaceId) gKey += '::' + spaceId;
194
+ var gVal = null;
195
+ try {
196
+ gVal = localStorage.getItem(gKey);
197
+ } catch (e) {
198
+ /* ignore */
199
+ }
200
+ if (gVal === '0') groupEl.removeAttribute('open');
201
+ else if (gVal === '1') groupEl.setAttribute('open', '');
202
+ }
203
+ }
204
+ }
159
205
  // 片段并列插入:挂在岛屿前面,挂载后由 CSS 隐藏
160
206
  var frag = document.createDocumentFragment();
161
207
  for (var j = 0; j < nodes.length; j++) frag.appendChild(nodes[j]);
@@ -319,7 +365,7 @@ const capture = false;
319
365
  // 缓存坏了就当没有
320
366
  }
321
367
  })();
322
- })();</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.CVB5Gtk4.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.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>
323
369
  (function () {
324
370
  try {
325
371
  var raw = localStorage.getItem('tw.app.model.v1');
@@ -390,6 +436,8 @@ const capture = false;
390
436
  'nav.reports': 'Work Report',
391
437
  'nav.testStats': 'Test Statistics',
392
438
  'nav.caseExec': 'Case Execution',
439
+ 'nav.uiAuto': 'Automation Testing',
440
+ 'nav.reqAnalysis': 'Requirement Analysis',
393
441
  'nav.caseManage': 'Test Cases',
394
442
  'nav.prompts': 'Prompts',
395
443
  'nav.knowledge': 'Knowledge Mgmt',