lantern-harness 0.1.28 → 0.1.31

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 (98) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/cli/server.mjs +10 -0
  3. package/dist/500.html +4 -4
  4. package/dist/_astro/{Base.BbqRC8BF.css → Base.9LLJ6KVG.css} +1 -1
  5. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.Cd3ccDN-.js +2 -0
  6. package/dist/_astro/CaseExecBoard.CTuf_Nom.js +1 -0
  7. package/dist/_astro/{CaseGenerateApp.nE3RR7bV.js → CaseGenerateApp.CHQnkY5R.js} +1 -1
  8. package/dist/_astro/CasesLibrary.B7wyxL0p.js +21 -0
  9. package/dist/_astro/ChatApp.OW9jzZNM.js +226 -0
  10. package/dist/_astro/{DashboardBoard.DAUPgVh3.js → DashboardBoard.B5Qo5Y3e.js} +2 -2
  11. package/dist/_astro/DocsFileBrowser.DnxVsmed.js +1 -0
  12. package/dist/_astro/DocsPager.CnXEnQqa.js +1 -0
  13. package/dist/_astro/{KnowledgeLibrary.DKci9jN8.js → KnowledgeLibrary.DARUegK8.js} +1 -1
  14. package/dist/_astro/{NavLibraries.BybmHnXn.js → NavLibraries.FAj9zUuq.js} +1 -1
  15. package/dist/_astro/PluginsPage.Bof7KzU6.js +1 -0
  16. package/dist/_astro/{PluginsPage.C11wTsH4.js → PluginsPage.CRBtbpx-.js} +1 -1
  17. package/dist/_astro/{PmBugsBoard.DVhrHxD2.js → PmBugsBoard.uNPzbw-N.js} +1 -1
  18. package/dist/_astro/{PmIterationsBoard.BQPHdbpp.js → PmIterationsBoard.CjR8L71i.js} +1 -1
  19. package/dist/_astro/{PmProjectDetail.DZmqbZLO.js → PmProjectDetail.Cpug99Lt.js} +1 -1
  20. package/dist/_astro/{PmProjectsBoard.tk8cI-lO.js → PmProjectsBoard.VLqrwucj.js} +1 -1
  21. package/dist/_astro/PmRequirementsBoard.B5ypu68O.js +1 -0
  22. package/dist/_astro/PmRequirementsBoard.CdP4gEzq.js +1 -0
  23. package/dist/_astro/{PmShared.DRYCFoRc.js → PmShared.ChKKU3Ww.js} +1 -1
  24. package/dist/_astro/{PromptsLibrary.BQVt94VI.js → PromptsLibrary.CK6nLgdD.js} +1 -1
  25. package/dist/_astro/{ReportsPage.B7MOskzc.js → ReportsPage.iSM5TWMq.js} +1 -1
  26. package/dist/_astro/{ReqAnalysisBoard.C-lpty5D.js → ReqAnalysisBoard.D94a1NoW.js} +1 -1
  27. package/dist/_astro/{RequirementsLibrary._OviMClB.js → RequirementsLibrary.X89V8-QF.js} +1 -1
  28. package/dist/_astro/{SettingsDialog.CMEBX59L.js → SettingsDialog.FHQTm21D.js} +1 -1
  29. package/dist/_astro/{SpaceSwitcher.DQOG363O.js → SpaceSwitcher.MmSkP3wb.js} +1 -1
  30. package/dist/_astro/TagSelect.UUXgkMqJ.js +1 -0
  31. package/dist/_astro/TasksBoard.Z8rBCO1F.js +1 -0
  32. package/dist/_astro/{TemplatesLibrary.CEVQPDDz.js → TemplatesLibrary.DBHSAPQ0.js} +1 -1
  33. package/dist/_astro/TestStatsBoard.BtqoPuLc.js +1 -0
  34. package/dist/_astro/TodosBoard.ETI63YgA.js +1 -0
  35. package/dist/_astro/{UiAutoBoard.DegcBc_3.js → UiAutoBoard.DxrlgvI7.js} +1 -1
  36. package/dist/_astro/app-config.Bg6v8zQQ.js +1 -0
  37. package/dist/_astro/app-version.C6rzHe1M.js +1 -0
  38. package/dist/_astro/{bash-tools.D4DBYc9k.js → bash-tools.cciCC33C.js} +1 -1
  39. package/dist/_astro/case-exec.BLqTXR7U.js +1 -0
  40. package/dist/_astro/{case-gen-run.Byxy6M5X.js → case-gen-run.CKShZ1Ha.js} +1 -1
  41. package/dist/_astro/{case-types.B6MLX3iE.js → case-types.CJ5PHz59.js} +1 -1
  42. package/dist/_astro/{hydrate-cache.C0F0L04c.js → hydrate-cache.B7--LFB_.js} +1 -1
  43. package/dist/_astro/{i18n.ele1lM9e.js → i18n.CH6ZNsHf.js} +1 -1
  44. package/dist/_astro/{open-docs-in-session.D608wzlx.js → open-docs-in-session.DQ2_5fkC.js} +1 -1
  45. package/dist/_astro/plugins.SqANn3ZB.js +1 -0
  46. package/dist/_astro/{settings.DbhUT6Ao.js → settings.Cu00if4D.js} +2 -2
  47. package/dist/_astro/spaces-client.Czm-VPh5.js +1 -0
  48. package/dist/_astro/{story-review.Ckqr7i5_.js → story-review.BzBFIFt-.js} +1 -1
  49. package/dist/_astro/test-stats.Cf3_L4wu.js +1 -0
  50. package/dist/_astro/{view-prefs.DkS1ldnh.js → view-prefs.SdItxolG.js} +1 -1
  51. package/dist/case-exec/index.html +5 -5
  52. package/dist/cases/generate/index.html +5 -5
  53. package/dist/cases/library/index.html +5 -5
  54. package/dist/dashboard/index.html +5 -5
  55. package/dist/docs/changelog/index.html +73 -34
  56. package/dist/docs/install/index.html +5 -5
  57. package/dist/docs/manual/index.html +34 -14
  58. package/dist/knowledge/index.html +5 -5
  59. package/dist/plugins/index.html +5 -5
  60. package/dist/pm/bugs/index.html +5 -5
  61. package/dist/pm/iterations/index.html +5 -5
  62. package/dist/pm/projects/detail/index.html +5 -5
  63. package/dist/pm/projects/index.html +5 -5
  64. package/dist/pm/requirements/index.html +5 -5
  65. package/dist/prompts/index.html +5 -5
  66. package/dist/reports/index.html +5 -5
  67. package/dist/requirement-analysis/index.html +5 -5
  68. package/dist/requirements/index.html +5 -5
  69. package/dist/tasks/index.html +5 -5
  70. package/dist/templates/index.html +5 -5
  71. package/dist/test-automation/index.html +5 -5
  72. package/dist/test-stats/index.html +5 -5
  73. package/dist/todos/index.html +5 -5
  74. package/dist/workbench/index.html +5 -5
  75. package/docs//345/256/211/350/243/205/346/211/213/345/206/214.md +1 -1
  76. package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +26 -10
  77. package/lh-plugins/lh-config.mjs +9 -0
  78. package/lh-plugins/lh-stats.mjs +308 -16
  79. package/package.json +1 -1
  80. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.CrXreVpw.js +0 -2
  81. package/dist/_astro/CaseExecBoard.cl2Od7av.js +0 -1
  82. package/dist/_astro/CasesLibrary.BkQY421S.js +0 -21
  83. package/dist/_astro/ChatApp.Y5LwY4qZ.js +0 -226
  84. package/dist/_astro/DocsFileBrowser.BdpWp8zQ.js +0 -1
  85. package/dist/_astro/DocsPager.D55FTK9d.js +0 -1
  86. package/dist/_astro/PluginsPage.DWAMKQXl.js +0 -1
  87. package/dist/_astro/PmRequirementsBoard.BjC9CEFr.js +0 -1
  88. package/dist/_astro/PmRequirementsBoard.CtuavIey.js +0 -1
  89. package/dist/_astro/TagSelect.B9W63KWq.js +0 -1
  90. package/dist/_astro/TasksBoard.Uj4XWtWz.js +0 -1
  91. package/dist/_astro/TestStatsBoard.CO4JMh4N.js +0 -1
  92. package/dist/_astro/TodosBoard.BkszTn-p.js +0 -1
  93. package/dist/_astro/app-config.DAIyT--R.js +0 -1
  94. package/dist/_astro/app-version.q6kHEFsx.js +0 -1
  95. package/dist/_astro/case-exec.BipZCK6G.js +0 -1
  96. package/dist/_astro/plugins.Di6uuouN.js +0 -1
  97. package/dist/_astro/spaces-client.OuJPy3GP.js +0 -1
  98. package/dist/_astro/test-stats.MEm3K2rB.js +0 -1
@@ -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.CrXreVpw.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.Cd3ccDN-.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.BbqRC8BF.css"><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) {
101
+ </script><link rel="stylesheet" href="/_astro/Base.9LLJ6KVG.css"><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) {
102
102
  animation-duration: 180ms;
103
103
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
104
104
  animation-fill-mode: both;
@@ -134,7 +134,7 @@
134
134
  animation-duration: 180ms;
135
135
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
136
136
  animation-fill-mode: both;
137
- 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.28">v0.1.28<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.DQOG363O.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 is-active font-medium" 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.BybmHnXn.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";
137
+ 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.31">v0.1.31<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.MmSkP3wb.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 is-active font-medium" 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.FAj9zUuq.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
138
  const cacheKey = "tw.hydrate.nav";
139
139
  const fixActive = true;
140
140
  const capture = false;
@@ -364,7 +364,7 @@ const syncNavGroups = true;
364
364
  // 缓存坏了就当没有
365
365
  }
366
366
  })();
367
- })();</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.CMEBX59L.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>
367
+ })();</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.FHQTm21D.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
368
  (function () {
369
369
  try {
370
370
  var raw = localStorage.getItem('tw.app.model.v1');
@@ -471,7 +471,7 @@ const syncNavGroups = true;
471
471
  });
472
472
  } catch (e) {}
473
473
  })();
474
- </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 data-astro-transition-persist="workbench-chat" class="tw-workbench-host"><astro-island uid="XhrnG" component-url="/_astro/ChatApp.Y5LwY4qZ.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;slashDocs&quot;:[1,[]]}" ssr client="only" opts="{&quot;name&quot;:&quot;ChatApp&quot;,&quot;value&quot;:&quot;react&quot;}"></astro-island></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>
474
+ </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 data-astro-transition-persist="workbench-chat" class="tw-workbench-host"><astro-island uid="XhrnG" component-url="/_astro/ChatApp.OW9jzZNM.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{&quot;slashDocs&quot;:[1,[]]}" ssr client="only" opts="{&quot;name&quot;:&quot;ChatApp&quot;,&quot;value&quot;:&quot;react&quot;}"></astro-island></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>
475
475
  (function () {
476
476
  /**
477
477
  * 切页滚回顶部。
@@ -12,7 +12,7 @@ npx lantern-harness
12
12
 
13
13
  执行后会安装全局短命令 **`lantern`**。产品名 **Lantern Harness**;npm 包名 `lantern-harness`,命令 `lantern`。
14
14
 
15
- - 升级:`lantern update`(最新版本)或 `lantern update <版本>`(指定版本)。若后台服务正在运行,更新完成后会自动用新版本重启;没有运行则下次 `lantern web` 生效。
15
+ - 升级:`lantern update`(最新版本)或 `lantern update <版本>`(指定版本)。若后台服务正在运行,更新完成后会自动用新版本重启;没有运行则下次 `lantern web` 生效。升级后在浏览器里正常刷新一次即可看到新版本,不用清缓存(从 0.1.28 及更早版本升上来时,仍需手动刷新一次)。
16
16
  - 卸载命令:`lantern uninstall`(保留数据空间)
17
17
  - 查看可用版本:`lantern list`
18
18
 
@@ -129,6 +129,7 @@
129
129
  - 复制品里的工作区注册表会被改指新目录,所以新空间的「工作区」停在自己身上,而不是被复制的那个空间。
130
130
  - 有会话正在运行时不允许复制(与切换空间一致,先停止再操作)。
131
131
  - 复制**不会**自动切过去;切到新空间时页面会重载,待办 / 任务等按新空间的数据重新加载。
132
+ - 切换前会先完成当前空间待写的配置;服务端同时校验配置所属空间。切换后才到达的旧请求会被拒绝,不会把上一空间的插件开关或菜单配置写进新空间。
132
133
  - 浏览器本地存储里按空间 id 记的界面偏好(列宽、侧栏展开状态等)不会跟着复制,新空间用默认值。
133
134
 
134
135
  同一目录里其它**不是空间**的文件夹会在扫描后列出来,勾选并确认才纳入:
@@ -231,8 +232,8 @@ version: '1.0' # 可选
231
232
  | 测试技能 | 测试模板库 | 关 | 侧栏进入测试模板库;关闭后入口隐藏,生成用例时不再选用模板;磁盘文件仍保留 |
232
233
  | 测试技能 | 用例质量评审 | 关 | 不新增侧栏入口:用例管理文件行多出「评审」列与「评审」按钮,抽屉里逐条判「可用 / 待修改 / 错误无效」、五维打分,并给扣分原因与可直接照改的建议;报告存 `用例评审/用例评审.json`,可导出 Markdown。开启「用例管理」时默认一并打开,也可单独关掉(需本地服务) |
233
234
  | 测试技能 | 场景遗漏补全 | 关 | 不新增侧栏入口:评审抽屉多出「场景补全」Tab,按非功能 / 安全边界 / 兼容性 / 隐藏业务规则挖漏测场景,勾选后把建议带进这条用例的工作台会话写回原文件(写前自动备份);开启「用例管理」时默认一并打开(需本地服务) |
234
- | 测试技能 | 测试统计 | 关 | 侧栏进入测试统计:按当前日期 + 测试统计维度记录数量,维度可搜索或直接创建(需本地服务) |
235
- | 测试技能 | 用例执行统计 | 关 | 侧栏进入用例执行统计:按项目记录用例总数 / 待执行 / 已执行,自动算当前剩余与执行比例(需本地服务) |
235
+ | 测试技能 | 测试统计 | 关 | 侧栏进入测试统计:按统计日期 + 测试统计维度记录数量,维度可搜索 / 创建 / 重命名 / 删除,按创建时间倒序排列(需本地服务) |
236
+ | 测试技能 | 用例执行统计 | 关 | 侧栏进入用例执行统计:每个项目一张卡片(卡头是项目 + 起止日期 + 累计执行率进度条,卡内按统计日期记录数量),自动算出已执行、当前剩余与执行比例(按项目累计口径);项目名称可重命名 / 删除,卡头改周期写穿整组(需本地服务) |
236
237
  | 测试技能 | 自动化测试 | 关 | 侧栏进入自动化测试:自动识别并挂载 Playwright / pytest / Selenium 项目,按项目自带任务运行,运行 / 停止用例、实时日志与 HTML 报告;「生成」Tab 先出可编辑步骤计划、再由 AI 驱动浏览器绑定定位器,写入时一次生成 spec + 页面对象 + 登录态文件(需本地服务) |
237
238
  | 需求管理 | 需求文档库 | 关 | 侧栏进入需求文档库;关闭后入口隐藏,生成用例时不再引用需求文档;磁盘文件仍保留 |
238
239
  | 需求管理 | 需求分析 | 关 | 侧栏进入需求分析:按需求文档结构播种条目并拆查询/修改子点与用户故事;条目可展开对照原文;审查待确认可补充/忽略/落成故事(需本地服务) |
@@ -331,9 +332,13 @@ version: '1.0' # 可选
331
332
  「我的插件」→「测试统计」→「测试统计」开启后,侧栏出现「测试统计」入口(`/test-stats/`)。
332
333
 
333
334
  - 数据落在当前数据空间的 `测试统计/测试统计.json`(放进侧栏分组后跟着走,如 `质量数据/测试统计/测试统计.json`);切换空间后看到各空间自己的记录。**打开开关或进入页面不会预建目录 / 空文件**,第一次添加记录(含空占位行)才铺出 `测试统计/` 与这份 JSON。
334
- - 字段只有三个:**当前日期**(点一下弹卡片日历)、**测试统计维度**(单选彩色胶囊:功能测试用例 / 自动化测试用例 / 接口测试用例 / 测试报告 / 缺陷统计 / 自动化缺陷统计 / 测试计划)、**统计数量**。
335
+ - 字段只有三个:**统计日期**(点一下弹卡片日历)、**测试统计维度**(单选彩色胶囊:功能测试用例 / 自动化测试用例 / 接口测试用例 / 测试报告 / 缺陷统计 / 自动化缺陷统计 / 测试计划)、**统计数量**。
335
336
  - 维度下拉带「查找或创建选项」:输入后回车或点「创建「…」」即可新增维度,新维度会存进这份数据里,下次直接可选;每条记录只对应一个维度。
336
- - 维度名称较长、列宽放不下时单元格里显示省略号,**鼠标悬停弹出气泡显示完整维度名**(没被截断就不弹)。
337
+ - **下拉里的维度按创建时间倒序排列,最新创建的在最上面**(刚新建的维度直接出现在第一条);创建时间会记进数据文件(`dimensionCreatedAt`),即使碰到某个维度的记录被删光,它的位置也不会乱跳。旧数据第一次读取时会按记录创建时间补出这份时间并写回(没用过又没时间的排在最后)。
338
+ - **维度可以改、可以删**:在维度下拉里把鼠标移到某个选项上,右侧会出现铅笔(重命名)与垃圾桶(删除)——
339
+ - 重命名:改成新名称并**保留原来的创建时间位置**,引用该维度的记录会一起改名(提示「同步了 N 条记录」);改成已存在的名称时两边合并成一个。
340
+ - 删除:只允许删**没有任何记录在用**的维度(还在用会提示「还有 N 条记录在用…先改掉再删除」),避免记录指向一个不存在的维度。
341
+ - 维度名称较长、列宽放不下时单元格里显示省略号,**鼠标悬停弹出气泡显示完整维度名**(没被截断就不弹);下拉里的维度同样单行截断 + 悬停预览。
337
342
  - 点右上角「+ 添加记录」会**立即生成一行并写入 JSON**(还没选维度的空行也算一条占位记录,刷新页面不会消失);选好维度后它自动变成正式记录。可以连点追加多行,**列表按日期从新到旧排列**(最新的记录在最上面,同一天按创建时间倒序)。
338
343
  - 单元格改完即自动保存(数量停止输入约 0.6 秒、失焦或回车落库),没有保存 / 取消按钮,行尾只有删除;删除占位行同样会把它从 JSON 里去掉。
339
344
  - 顶部汇总显示记录数、覆盖维度数与数量合计,并支持按日期 / 维度 / 数量搜索;支持勾选后「批量删除」(二次确认),行尾也可删除单条。搜索词会记住(刷新 / 重新进入页面仍按上次的关键词过滤)。列表默认每页 20 条,可切换每页条数;列宽可拖表头右边缘调整,存在浏览器本地。
@@ -343,12 +348,23 @@ version: '1.0' # 可选
343
348
  「我的插件」→「测试统计」→「用例执行统计」开启后,侧栏出现「用例执行统计」入口(`/case-exec/`)。
344
349
 
345
350
  - 数据落在当前数据空间的 `用例执行统计/用例执行统计.json`(放进侧栏分组后跟着走);切换空间后看到各空间自己的记录。**打开开关或进入页面不会预建目录 / 空文件**,第一次添加记录(含空占位行)才铺出 `用例执行统计/` 与这份 JSON。
346
- - 字段:当前日期、项目名称、开始日期、结束日期、用例总数、待执行用例、已执行用例;**当前剩余用例**与**执行比例**是只读派生列——剩余 = 用例总数 − 已执行用例,比例 = 已执行用例 ÷ 用例总数(保留两位小数,最多 100%)。
347
- - 项目名称是彩色胶囊单选,同样支持「查找或创建选项」:输入新项目回车即创建,之后可直接复用。
348
- - 项目名称过长时同样显示省略号,悬停弹出气泡预览完整名称。
349
- - 点右上角「+ 添加记录」会**立即生成一行并写入 JSON**(还没填项目名称的空行也算一条占位记录,刷新页面不会消失);填好项目后自动变成正式记录。开始 / 结束日期默认当天,结束日期早于开始日期时会提示并且不保存。可连点追加多行,**列表按日期从新到旧排列**(最新的记录在最上面,同一天按创建时间倒序)。
350
- - 单元格改完即自动保存(数字停止输入约 0.6 秒、失焦或回车落库),没有保存 / 取消按钮,行尾只有删除(删掉该行会一并删掉 JSON 里的记录)。
351
- - 顶部汇总显示记录数、项目数、已执行 / 用例总数与整体执行率;支持按项目 / 日期搜索,支持勾选本页后批量删除(二次确认),行尾也可删除单条。搜索词会记住(刷新 / 重新进入页面仍按上次的关键词过滤)。列表默认每页 20 条,可切换每页条数;列宽可拖表头右边缘调整,列窄时「执行比例」的进度条也会保留最小宽度,不会压成一条线。
351
+ - 每个项目一张**卡片**:卡头第一行是「勾选框 + 折叠箭头 + 项目名称 + 开始~结束日期」,右侧常驻「N 条统计」「添加统计」「删除整组」;卡头第二行是进度:左边「基线 N · 已执行 X / N」,右边百分比,下面一条全宽进度条(≥80% 蓝 / ≥40% 橙 / <40% 灰)。卡内是**统计日期小表**(统计日期 / 用例总数 / 待执行用例 / 已执行用例 / 当前剩余用例 / 执行比例 / 删除),点卡头可折叠整块表,展开 / 收起带高度 + 淡入淡出过渡(约 200ms)。
352
+ - 卡内只填用例总数、待执行用例,**「已执行用例」是只读派生列**(= 用例总数 − 待执行用例),**当前剩余用例**与**执行比例**随之更新(剩余 = 用例总数 − 已执行用例)。只有总数与待执行的老记录打开页面也是对的,不需要逐条补填;只填了总数、待执行还是 0 时按「还没开始」显示 0%,不会误判成全部执行完。
353
+ - **一个项目只有一个周期**:在卡头改进度周期(开始 / 结束日期)会**写穿该项目的全部统计记录**,不用逐条改;老数据里周期不一致时,卡头显示最新一条写了日期的记录,第一次改周期后整组就收敛了。结束日期早于开始日期时会提示并且不保存。
354
+ - **执行比例按项目累计算**:分母是该项目的**基线**——这个项目**第一条记录**(统计日期最早,同一天取创建时间更早的)的用例总数,而不是本行的用例总数。同一项目每天新增一行时,新行的用例总数往往只是上一轮的剩余量,拿它当分母会把「累计做完了多少」算错。分子是「基线 − 本行当前剩余用例」,所以同一项目越新的行比例越高,比例保留两位小数、最多 100%,剩余超过基线时按 0% 显示。没填项目名称 / 用例总数为 0 的记录当不了基线,读数回落到这一行自己的总数。
355
+ - **卡头进度**按「基线 − 该项目最新一条的剩余」算累计已执行,与卡内最新一行同一口径。刚点「添加统计」加出来的行还没填用例总数时不算进度数据点,不会把执行率误抬到 100%。
356
+ - 「执行比例」列上行是「百分比 + 已执行 x / 基线」(这里的已执行是**累计值**,与百分比同一口径,右端与下面的进度条右端对齐),下行是全宽细条,按完成度分档着色:≥80% 蓝、≥40% 橙、<40% 灰,一列扫下来就知道哪个项目落后。
357
+ - 项目名称是彩色胶囊单选,同样支持「查找或创建选项」:输入新项目回车即创建,之后可直接复用。**下拉里的项目名称按创建时间倒序排列,最新创建的在最上面**(刚新建的项目直接出现在第一条);创建时间会记进数据文件(`projectCreatedAt`),即使某个项目的记录都删掉了,它的位置也不会乱跳。旧数据第一次读取时会按记录创建时间补出这份时间并写回。
358
+ - 下拉里的项目名称**单行显示**:名称太长时截断成省略号,鼠标悬停弹出气泡预览完整名称(与表格单元格同一套)。
359
+ - **项目名称可以改、可以删**:在项目名称下拉里把鼠标移到某个选项上,右侧会出现铅笔(重命名)与垃圾桶(删除)——
360
+ - 重命名:改成新名称并**保留原来的创建时间位置**,引用该项目的记录会一起改名(提示「同步了 N 条记录」);改成已存在的名称时两边合并成一个。
361
+ - 删除:只允许删**没有任何记录在用**的名称(还在用会提示「还有 N 条记录在用…先改掉再删除」),避免记录指向一个不存在的项目。
362
+ - 别名 / 大小写不同的名称需要合并时,先重命名成同一个名称即可。
363
+ - 项目名称过长时卡头里同样显示省略号,悬停弹出气泡预览完整名称。
364
+ - 点右上角「+ 添加项目」会**立即生成一张空卡片并写入 JSON**(还没选项目名称的占位卡片刷新页面不会消失);选好项目后它自动变成正式卡片,再用卡头的「添加统计」按天补记录(统计日期默认当天、周期自动沿用整组)。也可以直接用卡头下拉切到已有项目,等同把这一组并过去。
365
+ - **卡片与折叠**:卡片按最新统计日期从新到旧排列(最新的项目在最上面),卡内行同样按统计日期倒序;**点卡头任意空白处(或左侧箭头)折叠 / 展开整张卡片**,刚进入页面时默认全部展开,折叠只在本次页面停留期间有效(刷新或重新进入会恢复展开)。
366
+ - 单元格改完即自动保存(数字停止输入约 0.6 秒、失焦或回车落库),没有保存 / 取消按钮,行尾只有删除(删掉该行会一并删掉 JSON 里的记录);卡头的「删除整组」会删掉该项目的全部统计记录(二次确认,项目名称仍保留在下拉里,需要的话在项目下拉里再删)。
367
+ - 顶部汇总显示记录数、项目数、已执行 / 基线用例数与整体执行率;**整体执行率与卡头同一口径**:Σ各项目(基线 − 该项目最新一条的剩余)÷ Σ各项目基线,每个项目的基线只算一次、不累加每轮的用例总数,也不会因为某轮把用例总数重填成更大的值而超过 100%。工具条支持「全选本页」与批量删除(二次确认),也支持按项目 / 统计日期搜索(项目名命中保留整卡,只命中行时只显示命中的行,基线仍按整组算),行尾还可删除单条。搜索词会记住(刷新 / 重新进入页面仍按上次的关键词过滤)。分页按**项目**计数(默认每页 20 个项目,可切换每页条数),卡片本身不再有整页横向滚动,窄屏时只有卡内小表横向滚动。
352
368
 
353
369
  ### 自动化测试
354
370
 
@@ -307,6 +307,7 @@ export function lhConfigPlugin() {
307
307
  return sendJson(res, 200, {
308
308
  ok: true,
309
309
  config,
310
+ configTarget: root,
310
311
  apiKey: readApiKey(root, config),
311
312
  paths: {
312
313
  defaults: defaultsPath(root),
@@ -318,6 +319,14 @@ export function lhConfigPlugin() {
318
319
 
319
320
  if (url === PREFIX && req.method === 'PUT') {
320
321
  const body = JSON.parse((await readBody(req)) || '{}');
322
+ const configTarget =
323
+ typeof body.configTarget === 'string' ? path.resolve(body.configTarget) : '';
324
+ if (!configTarget || configTarget !== path.resolve(root)) {
325
+ return sendJson(res, 409, {
326
+ ok: false,
327
+ error: '数据空间已切换,已拒绝旧空间的配置写入,请刷新页面后重试',
328
+ });
329
+ }
321
330
  const defaults = readJson(defaultsPath(root), {});
322
331
  const incoming = body.config ?? body;
323
332
  const merged = sanitizeForLocalWrite(mergeWithDefaults(defaults, incoming));