lantern-harness 0.1.22 → 0.1.23

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 (54) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/500.html +4 -4
  3. package/dist/_astro/{Base.I--fR8aT.css → Base.GThhapKd.css} +1 -1
  4. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.CWRCetQl.js +2 -0
  5. package/dist/_astro/{CasesLibrary.DfuTkbJN.js → CasesLibrary.CDjuLV_E.js} +2 -2
  6. package/dist/_astro/ChatApp.Td2xCiQG.js +216 -0
  7. package/dist/_astro/{DashboardBoard.D8-oufgg.js → DashboardBoard.D-zHXRds.js} +1 -1
  8. package/dist/_astro/DocsFileBrowser.BM3nH4VD.js +1 -0
  9. package/dist/_astro/{KnowledgeLibrary.DGhU2p3S.js → KnowledgeLibrary.D9KnqXzr.js} +1 -1
  10. package/dist/_astro/{PluginsPage.DjeMQX3i.js → PluginsPage.DBRfSxtq.js} +2 -2
  11. package/dist/_astro/PluginsPage.DMDyUktn.js +1 -0
  12. package/dist/_astro/PromptMountDialog.CpTT6L0a.js +62 -0
  13. package/dist/_astro/{PromptsLibrary.CbGja6mq.js → PromptsLibrary.sz6MivVn.js} +1 -1
  14. package/dist/_astro/{ReqAnalysisBoard.By08xNFf.js → ReqAnalysisBoard.CazI9SU-.js} +1 -1
  15. package/dist/_astro/RequirementsLibrary.R4dNZa9y.js +1 -0
  16. package/dist/_astro/{SettingsDialog.DgpH_BVN.js → SettingsDialog.Bs1I8b27.js} +1 -1
  17. package/dist/_astro/{UiAutoBoard.nrtcQJDl.js → UiAutoBoard.B-7mL3ez.js} +1 -1
  18. package/dist/_astro/app-version.yT2l6J8H.js +1 -0
  19. package/dist/_astro/docs-format.BlGh-XA_.js +1 -0
  20. package/dist/_astro/{story-review.E_go1fvj.js → story-review.BbdIf5zg.js} +1 -1
  21. package/dist/case-exec/index.html +4 -4
  22. package/dist/cases/generate/index.html +4 -4
  23. package/dist/cases/library/index.html +5 -5
  24. package/dist/dashboard/index.html +5 -5
  25. package/dist/docs/changelog/index.html +23 -5
  26. package/dist/docs/install/index.html +4 -4
  27. package/dist/docs/manual/index.html +8 -7
  28. package/dist/knowledge/index.html +5 -5
  29. package/dist/plugins/index.html +5 -5
  30. package/dist/pm/bugs/index.html +4 -4
  31. package/dist/pm/iterations/index.html +4 -4
  32. package/dist/pm/projects/detail/index.html +4 -4
  33. package/dist/pm/projects/index.html +4 -4
  34. package/dist/pm/requirements/index.html +4 -4
  35. package/dist/prompts/index.html +5 -5
  36. package/dist/reports/index.html +4 -4
  37. package/dist/requirement-analysis/index.html +5 -5
  38. package/dist/requirements/index.html +5 -5
  39. package/dist/tasks/index.html +4 -4
  40. package/dist/templates/index.html +4 -4
  41. package/dist/test-automation/index.html +5 -5
  42. package/dist/test-stats/index.html +4 -4
  43. package/dist/todos/index.html +4 -4
  44. package/dist/workbench/index.html +5 -5
  45. package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +4 -3
  46. package/lh-plugins/lh-reports.mjs +6 -5
  47. package/package.json +1 -1
  48. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.BQtZbum2.js +0 -1
  49. package/dist/_astro/ChatApp.CAgrwilW.js +0 -214
  50. package/dist/_astro/DocsFileBrowser.CTICuWFf.js +0 -1
  51. package/dist/_astro/PluginsPage.C9vaY-lo.js +0 -1
  52. package/dist/_astro/PromptMountDialog.YH2odDZx.js +0 -58
  53. package/dist/_astro/RequirementsLibrary.BSDgdppH.js +0 -1
  54. package/dist/_astro/app-version.5UudQEyk.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.BQtZbum2.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.CWRCetQl.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.I--fR8aT.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.GThhapKd.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.22">v0.1.22<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.Dw9LjKiJ.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.RH3Sinuh.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.23">v0.1.23<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.Dw9LjKiJ.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.RH3Sinuh.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.DgpH_BVN.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.Bs1I8b27.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.CAgrwilW.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.Td2xCiQG.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
  * 切页滚回顶部。
@@ -171,7 +171,7 @@
171
171
  | 用例管理 | 双击本地打开;批量删除;「在会话中打开」;工具栏「备份」可查看旁路 `.bak*` 与评审写回备份、过期时间并手动删除(超过 7 天仍会自动清理);开启评审插件后多出「评审」列与「评审」按钮(见下节) |
172
172
  | 提示词管理 | 双击本地打开;删除(系统提示词不可删;插件开启期间,插件引用的提示词也不可删);「关联插件」列标出归属;行内可复制 / 改名(悬停文件名右侧出现改名按钮,重名会拦下);「生成提示词」跳转工作台 |
173
173
  | 知识库管理 | 双击本地打开;批量删除;「在会话中打开」;「生成知识库」跳转工作台 |
174
- | 需求文档库 | 新建文件夹 / 上传文件(`.md` / `.txt` / `.docx` / `.xlsx` / `.csv`);单击预览(仅 `.md` / `.txt`),双击本地打开;删除 |
174
+ | 需求文档库 | 新建文件夹 / 上传文件(`.md` / `.txt` / `.docx` / `.xlsx` / `.csv`);文件列表按**上传时间**新→旧,行内显示大小与上传时间;左侧文件夹名过长悬停出气泡;单击预览(仅 `.md` / `.txt`),双击本地打开;删除 |
175
175
  | 测试模板库 | 分类浏览;双击本地打开;`.md` 可在线预览与下载 |
176
176
 
177
177
  > 双击本地打开、读写文件依赖本地文件服务(`lantern web` 或 `pnpm dev`);静态站仅能浏览与下载。
@@ -316,6 +316,7 @@ version: '1.0' # 可选
316
316
  - **汇报列表**:侧栏「工作汇报」页按「日报 / 周报 / 月报」三个 Tab 展示各自目录里的 `.md` / `.txt` / `.html` 文件,每条汇报是一张卡片:左边类型角标,中间汇报名称(去掉扩展名,如 `周报(2026.10.12-2026.10.18)`)与「生成时间 · 文件大小」,右侧「打开」。宽屏按可用宽度一行两张 / 三张铺满(只有一条时撑满整行),不再是一张只有两列、右侧大片留白的表。按生成日期倒序分页(可切换每页条数);**点卡片用系统默认程序在本地打开**(macOS 的访达 / 默认编辑器、Windows 的关联程序)——打开的是本机文件,所以页面上不再有预览弹窗。没有汇报时只显示一句「保存到 … 后会自动出现在这里」,不给跳转按钮。文件就是数据:手工放进目录,或让 AI 按提示词的约定存盘(如 `工作汇报/日报/2026-10-18.md`),刷新即可看到。
317
317
  - **Tab 记忆**:切换成周报后刷新、关掉页面再进来,仍停在周报(月报同理);选择按当前数据空间记在浏览器本地,换空间后各记各的。
318
318
  - **去工作台写汇报**:点页面右上角「去工作台写汇报」,会把当前 Tab 带进工作台,输入框上方挂上「生成日报 / 生成周报 / 生成月报」胶囊;直接回车或点发送,就按页面下拉里选中的提示词写一份,点胶囊上的 × 可取消。斜杠菜单里只有插件,不列这三项。
319
+ - **本期工作数据**:发送「生成日报 / 周报 / 月报」时,会按区间把**当前空间已开启**的待办、任务、测试统计、用例执行统计拼进消息(气泡仍只显示短指令);对应插件关闭则该段不出现。种子提示词「数据来源」已写上这四类;空间里已有的自定义提示词文件不会被覆盖。
319
320
  - **修改提示词**:到「提示词管理」找到 `工作汇报提示词.md`,行尾点「在会话中打开」把文件挂到工作台作曲区,直接让 AI 改并保存;也可以双击本地打开编辑。改完重新进入工作台生效(提示词在进入页面时读取一次)。
320
321
  - 开关、提示词与汇报目录都跟当前数据空间走,切换空间后各用各的。
321
322
 
@@ -420,7 +421,7 @@ version: '1.0' # 可选
420
421
  - **质量评审**:规则 + 模型两层。规则层先在本地算七项量化指标(总数 / 字段完整率 / 步骤可执行率 / 预期可判定率 / 需求覆盖率 / 重复率 / 优先级合规率)与硬伤(标题 / 步骤 / 预期为空或写「同上」、编号重复等);模型层逐条给五维分(需求覆盖 25% / 步骤可执行 25% / 预期可判定 20% / 数据与边界 15% / 规范完整 15%)与扣分原因、可直接照改的建议。
421
422
  - **判定怎么来的**:总分 = 各维度得分 × 权重求和;`≥ 85` 可用、`60–84` 待修改、`< 60` 错误无效。模型可以判「错误无效」,但必须给出 `hard` 证据(与需求哪条冲突 / 和哪条重复),只给低分不给证据时按分数算——避免出现「86 分 · 错误无效」这种自相矛盾的结果。规则命中的硬伤模型不能推翻。
422
423
  - **逐条明细**:每条一行显示判定、编号、标题、得分与「详情」;悬停行时标题右侧出现「修改」,带着编号、扣分原因与建议跳到这条用例绑定的工作台会话(没有会话就新建),由模型按文件表头改原文件;跳转后该条立刻标「已修改」,不再计入「需改」、也不能再点修改。顶部可筛「可用 / 待修改 / 错误无效」、搜索编号或标题、按分数升序,也可点「批量修改」把当前筛选出的待修改项一次交给工作台。展开详情可看五维分与每条扣分原因。**重新评审**时已修改的条不进模型、确认后记为「可用」仍留在全表(不会缺行),只对其余条重评。
423
- - **用例表格**:固定六列(编号 / 标题 / 步骤 / 预期 / 判定 / 建议),只读对照,步骤与预期默认两行、超出省略号,悬停看全文;拖动表头右边缘可调列宽。判定列与质量评审一致,已交给工作台改的会多标「已修改」。表格里不放操作按钮,改用例回「用例管理」或到逐条明细点「修改」。
424
+ - **用例表格**:固定六列(编号 / 标题 / 步骤 / 预期 / 判定 / 建议),只读对照,步骤与预期默认两行、超出省略号,悬停看全文;拖动表头右边缘可调列宽。判定列与质量评审一致:已交给工作台改的只显示绿色「已修改 xx」,不再叠「待修改 xx」。表格里不放操作按钮,改用例回「用例管理」或到逐条明细点「修改」。
424
425
  - **场景补全**:专挖人工容易漏的场景,按非功能 / 安全边界与容错 / 兼容性 / 隐藏业务规则四类给出「为什么容易漏 + 建议用例(前置 / 步骤 / 预期 / 优先级 / 归属需求)」;勾选后可先「补全选中」写全字段,再点「去工作台写回」——按归属需求插到对应分组最后一行之后(有编号原样用、没有再补自定义编号;对不上组才落到末尾),写前自动备份到 `<空间>/.lantern/local/case-review/backup/`;写回后该条标「已修改」仍显示在列表,重新探测会去掉已确认写回的场景(角标只计未修改)。场景补全同样有进度日志与停止。旁路 `.bak*`(对话改用例时留在用例目录旁)与该 backup 目录内文件按修改时间保留 7 天:打开用例库或再次写回时会自动删掉过期备份。
425
426
  - **对照需求匹配**:页头按用例文件名猜对照需求分析时,只比「产品前缀 + 版本号」(「版本 / 迭代版本」写法不影响对上)。
426
427
  - **改完标待验证**:明细里「修改 / 批量修改」跳工作台写回时,会把有「用例状态」列的条目标为「待验证」;对照表只写在对话里,不会另存进用例管理目录。
@@ -441,7 +442,7 @@ version: '1.0' # 可选
441
442
  - **待办完成率** / **任务完成率**:已完成 ÷ 可计完成(待办排除已取消、任务排除已关闭 / 已取消);分母为 0 时显示 0%,带进度条与「已完成 / 总数」。每个指标各是一张独立卡片,不再合并成一张「待办概览」;旧布局里存过的「待办概览」会在读取时自动拆成五张。活跃项目与数据空间也是同样样式的独立指标卡。
442
443
  - **活跃项目**:项目管理里状态为「进行中」的项目数量,下方补充项目总数,点卡片进入项目列表(需要同时开启「项目列表」与本地服务)。
443
444
  - **数据空间**:当前账号下一共有多少个数据空间,下方标出正在使用的空间名;静态部署 / 服务不可用时显示「—」。
444
- - **倒计时**:四格数字块显示天 / 时 / 分 / 秒,右上角四格切换终点:**今天**(到今天 24:00)、**下班**(到自己设的下班时间)、**周末**(到下一个休息日,默认 00:00,可改成 18:00 之类)、**今年**(到次年 1 月 1 日 00:00),选择按空间记住。第一次点「下班」会先在说明行弹出时间输入框(预填 18:00,回车或点「确定」保存,点「取消」退回原来的终点并清掉这次的选择),之后按这个点倒计时;「下班」和「周末」说明行的「修改」都可随时改时分(平时隐藏,鼠标移入这一行才出现),时间按空间记住。过了下班点就停在 0 并写「已经下班啦」,不会自动跳到明天。周末设了非 00:00 的时点后,按休息日前一天的该时点算(下一个休息日是 10-24 周六时,设 18:00 就倒到 10-23 周五 18:00,下班即算进入周末),过了这个点直接显示「愉快」,不用等到周六;设回 00:00 时终点仍是休息日当天 0 点(周六 0 点 = 周五 24 点)。底部一行注明终点,例如「到 2026-10-23 18:00 开始休息」。休息日 = 法定节假日 + 周末,调休补班的周六 / 周日不算(例如 2026-10-10 补班,倒计时直接跳到 10-11 周日)。当天已在休息(周末或假期)时,周末终点显示全 0 并写「周末愉快 / XX 假期愉快」。节假日与调休数据单独放在 `public/cn-holidays.json`(不参与编译,改完刷新即生效),每年国务院办公厅公布次年安排后照通知往 `years` 里加一年即可,逻辑不用动;没有收录的年份按普通周末算。已录入 2026(正式)与 2027(官方尚未公布,只录了法定假日,卡片上会标「2027 年安排待公布」)。
445
+ - **倒计时**:四格数字块显示天 / 时 / 分 / 秒,右上角四格切换终点:**今天**(到今天 24:00)、**下班**(到自己设的下班时间)、**周末**(到下一个休息日,默认 00:00,可改成 18:00 之类)、**今年**(到次年 1 月 1 日 00:00),选择按空间记住。第一次点「下班」会先在说明行弹出时间输入框(预填 18:00,回车或点「确定」保存,点「取消」退回原来的终点并清掉这次的选择),之后按这个点倒计时;「下班」和「周末」说明行的「修改」都可随时改时分(平时隐藏,鼠标移入这一行才出现),时间按空间记住。过了下班点就停在 0 并写「已经下班啦」,不会自动跳到明天。**当天已是休息日(周末 / 法定节假日;调休补班除外)时,「下班」终点四格全 0,说明改为「今天休息,不上班」**。周末设了非 00:00 的时点后,按休息日前一天的该时点算(下一个休息日是 10-24 周六时,设 18:00 就倒到 10-23 周五 18:00,下班即算进入周末),过了这个点直接显示「愉快」,不用等到周六;设回 00:00 时终点仍是休息日当天 0 点(周六 0 点 = 周五 24 点)。底部一行注明终点,例如「到 2026-10-23 18:00 开始休息」。休息日 = 法定节假日 + 周末,调休补班的周六 / 周日不算(例如 2026-10-10 补班,倒计时直接跳到 10-11 周日)。当天已在休息(周末或假期)时,周末终点显示全 0 并写「周末愉快 / XX 假期愉快」。节假日与调休数据单独放在 `public/cn-holidays.json`(不参与编译,改完刷新即生效),每年国务院办公厅公布次年安排后照通知往 `years` 里加一年即可,逻辑不用动;没有收录的年份按普通周末算。已录入 2026(正式)与 2027(官方尚未公布,只录了法定假日,卡片上会标「2027 年安排待公布」)。
445
446
  - **今日待办**:表格展示「开始时间 ~ 截止时间」区间包含今天的未完成待办(只填一端时按那一天算),已过截止日期的「已延期」待办也会留在列表里继续跟进,列为待办名称 / 待办状态 / 所属任务 / 开始日期 / 截止日期,每页 5 条可翻页;点名称前的圆圈可直接标记完成(立即写回待办,完成后会从本卡移出);状态胶囊只读展示,改状态请到待办页。
446
447
  - **进行中任务**:表格展示状态为「进行中」的任务,列为任务描述 / 任务状态 / 重要紧急程度 / 开始日期 / 结束日期,每页 5 条可翻页;结束日期逾期标红。
447
448
  - **测试统计**:每个维度取最新一天的数量,按数量降序最多 10 个维度;照飞书柱状图带纵轴刻度(居中贴网格线)、横向网格线与柱顶数值,拉高时柱子一起变高。
@@ -46,7 +46,7 @@ const PROMPT_EXTS = new Set(['.md', '.markdown', '.txt']);
46
46
  export const REPORT_PROMPT_TEMPLATE = `# 工作汇报提示词
47
47
 
48
48
  > 这份提示词由「工作汇报」插件生成并引用,运行时**整份追加**进系统提示词。
49
- > 待办、任务进度由插件随会话带入,不要去找 \`{{...}}\` 这类变量。
49
+ > 待办、任务、测试统计、用例执行由插件按区间随「生成X报」消息带入(见「本期工作数据」),不要去找 \`{{...}}\` 这类变量;对应插件关闭则该段为空。
50
50
 
51
51
  ## 角色
52
52
 
@@ -58,11 +58,12 @@ export const REPORT_PROMPT_TEMPLATE = `# 工作汇报提示词
58
58
 
59
59
  ## 数据来源
60
60
 
61
- - 一级:待办事项(完成状态、所属项目、计划时间)
62
- - 二级:用户本轮补充、任务管理中的进度
63
- - 区间:周报 = 本周一至本周日;日报 = 当天;月报 = 本自然月(Asia/Shanghai)
61
+ - 一级:待办事项(完成状态、所属任务、计划时间)
62
+ - 二级:任务管理中的进度、用户本轮补充
63
+ - 三级:测试统计(当期各维度数量)、用例执行统计(项目用例总数 / 待执行 / 已执行 / 剩余与执行比例)
64
+ - 区间:周报 = 本周一至本周日;日报 = 当天;月报 = 本自然月(本地时区)
64
65
  - 冲突时以用户明确说明为准;无说明取较新状态,可注「(以待办状态为准)」
65
- - 不编造数字、进度、日期、人名
66
+ - 不编造数字、进度、日期、人名;测试统计与用例执行以「本期工作数据」里的条目为准
66
67
 
67
68
  ## 正文结构(按此顺序,不要改成别的模板口径)
68
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lantern-harness",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "AI 工作台:对话与插件工具、内容库、模板库、会话记忆,数据留在本机。",
@@ -1 +0,0 @@
1
- import{i as e}from"./app-config.CF1xVPmo.js";import{i as t,o as n}from"./plugins.CVM1IaoC.js";import{t as r}from"./settings.B1yetppp.js";import{t as i}from"./app-version.5UudQEyk.js";import{t as ee}from"./update.Fq2CGmCX.js";var te=100,ne=420,a=14,re=150,o=6,ie=3200,ae=180,s=null,c=null,l=null,u=null,d=null,f=!1,p=0,m=0,h=0,g=0,_=!1,v=0,y=null,b=null,x=0,S=!1,C=null,w=!1;function T(e){if(!e.isConnected||e.closest(`[data-closed]`)||e.checkVisibility&&!e.checkVisibility({checkVisibilityCSS:!0}))return!0;let t=e.getBoundingClientRect();return t.width===0&&t.height===0}function E(e){let t=e.getBoundingClientRect(),n=t.left+t.width/2,r=t.top+t.height/2;if(n<0||r<0||n>window.innerWidth||r>window.innerHeight)return!1;let i=document.elementFromPoint(n,r);return i?!(i===e||e.contains(i)||i.contains(e)):!1}function D(e){let t=e.getBoundingClientRect();y&&y.left===t.left&&y.top===t.top&&y.width===t.width&&y.height===t.height||(j(),M())}function O(e){let t=e.getBoundingClientRect();return t.bottom<=0||t.top>=window.innerHeight||t.right<=0||t.left>=window.innerWidth}function oe(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function k(){g&&=(cancelAnimationFrame(g),0)}function A(){b=null,x&&=(window.clearTimeout(x),0)}function se(){k();let e=()=>{g=0;let t=u;t&&(T(t)||O(t)||E(t)||S&&C&&!oe(t.getBoundingClientRect(),C.x,C.y)||!S&&!t.contains(document.activeElement)?L():(D(t),g=requestAnimationFrame(e)))};g=requestAnimationFrame(e)}function ce(){s&&s.isConnected||(s=document.createElement(`div`),s.setAttribute(`role`,`tooltip`),s.className=`tw-tooltip tw-tooltip-anim pointer-events-none fixed rounded-md px-2 py-1 text-[12px] leading-5 break-all text-stone-700 shadow-lg`,s.style.zIndex=String(te),s.dataset.closed=``,c=document.createElement(`span`),c.setAttribute(`aria-hidden`,`true`),c.className=`tw-tooltip-arrow absolute h-2 w-2`,c.style.transform=`translateX(-50%) rotate(45deg)`,l=document.createTextNode(``),s.append(c,l),document.body.appendChild(s))}function j(){if(!u)return;let e=u.getBoundingClientRect(),t=Math.min(Math.max(e.width,160),ne),n=e.bottom+72>window.innerHeight-8,r=n?e.top-o:e.bottom+o,i=Math.max(8,Math.min(e.left,Math.max(8,window.innerWidth-t-8)));d={top:r,left:i,maxWidth:t,openUp:n,arrowLeft:Math.max(a,Math.min(e.left+e.width/2-i,t-a))},y={left:e.left,top:e.top,width:e.width,height:e.height}}function M(){s&&c&&d&&(s.style.top=`${d.top}px`,s.style.left=`${d.left}px`,s.style.maxWidth=`${d.maxWidth}px`,s.classList.toggle(`is-up`,d.openUp),s.classList.toggle(`is-down`,!d.openUp),c.classList.toggle(`is-up`,d.openUp),c.classList.toggle(`is-down`,!d.openUp),c.style.left=`${d.arrowLeft}px`,c.style.top=d.openUp?``:`-5px`,c.style.bottom=d.openUp?`-5px`:``)}function N(e){let t=e.innerText||``;return e.querySelectorAll(`[class*="sr-only"]`).forEach(e=>{let n=e.innerText;n&&(t=t.replace(n,``))}),t.replace(/\s+/g,` `).trim()}function le(e){return e.scrollWidth>e.clientWidth+1}function P(e){return e.dataset.hintAlways!==void 0||e.dataset.hintFit===void 0&&!N(e)||le(e)}function F(e){return!!e.dataset.hint&&P(e)}function I(e,t){let n=e.dataset.hint??``;if(!n||!P(e))return;let r=e.getBoundingClientRect();if(!r.width||!r.height||e.checkVisibility&&!e.checkVisibility({checkVisibilityCSS:!0})||E(e)||(ce(),!s||!l))return;u=e,S=t,m&&=(window.clearTimeout(m),0),l.data=n,j(),M(),s.style.display=``,f||(s.dataset.closed=``),cancelAnimationFrame(p);let i=++v;p=requestAnimationFrame(()=>{p=requestAnimationFrame(()=>{s&&i===v&&u===e&&(f=!0,delete s.dataset.closed)})}),se(),h&&window.clearTimeout(h),h=window.setTimeout(()=>{h=0,u===e&&L()},ie)}function L(){k(),A(),v+=1,p&&=(cancelAnimationFrame(p),0),u=null,S=!1,y=null,h&&=(window.clearTimeout(h),0),s&&(f=!1,s.dataset.closed=``,m&&window.clearTimeout(m),m=window.setTimeout(()=>{m=0,!f&&s&&(s.style.display=`none`)},re))}function R(e){if(!(e instanceof Element))return null;let t=e.closest(`[data-hint]`);return t instanceof HTMLElement?t:null}function z(e){w=!0,(e.clientX!==0||e.clientY!==0)&&(C={x:e.clientX,y:e.clientY});let t=R(e.target);t!==u&&(!t||!F(t)?(A(),u&&L()):t!==b&&(A(),b=t,x=window.setTimeout(()=>{x=0;let e=b;b=null,e&&e!==u&&I(e,!0)},ae)))}function B(e){let t=R(e.target);if(t&&t===b&&A(),!t||t!==u)return;let n=e.relatedTarget;n instanceof Node&&t.contains(n)||L()}function V(e){if(w)return;let t=R(e.target);t!==u&&(!t||!F(t)?u&&L():I(t,!1))}function H(e){let t=R(e.target);if(!t||t!==u)return;let n=e.relatedTarget;n instanceof Node&&t.contains(n)||L()}function U(){A(),u&&L()}function W(){u&&(T(u)||O(u)||E(u)?L():D(u))}function ue(e){C={x:e.clientX,y:e.clientY},w=!0}function de(){w=!0,A(),u&&L()}function fe(e){w=!1,e.key===`Escape`&&u&&L()}function pe(){typeof document>`u`||_||(_=!0,document.addEventListener(`mouseover`,z,!0),document.addEventListener(`mouseout`,B,!0),document.addEventListener(`pointermove`,ue,{capture:!0,passive:!0}),document.addEventListener(`pointerdown`,de,!0),document.addEventListener(`focusin`,V,!0),document.addEventListener(`focusout`,H,!0),document.addEventListener(`click`,U,!0),document.addEventListener(`keydown`,fe,!0),window.addEventListener(`scroll`,W,!0),window.addEventListener(`resize`,W),window.addEventListener(`blur`,()=>{u&&L()}),document.addEventListener(`visibilitychange`,()=>{document.hidden&&u&&L()}),document.documentElement.addEventListener(`mouseleave`,()=>{u&&L()}),document.addEventListener(`astro:after-swap`,()=>{k(),v+=1,p&&=(cancelAnimationFrame(p),0),h&&=(window.clearTimeout(h),0),u=null,f=!1,y=null,s?.isConnected&&s.remove(),s=null,c=null,l=null}))}var me=[`dashboard`,`tasks`,`todos`,`projects`,`iterations`,`pmRequirements`,`bugs`,`reports`,`testStats`,`caseExec`,`cases`,`prompts`,`knowledgeLib`,`requirements`,`templates`];function he(e){return`pluginOff${e.charAt(0).toUpperCase()}${e.slice(1)}`}function G(){let e=document.documentElement;for(let n of me){let r=he(n);t(n)?delete e.dataset[r]:e.dataset[r]=`1`}}function ge(){G(),n(()=>G()),e().then(()=>G()),document.addEventListener(`astro:page-load`,G)}var _e=`tw-update-dot`,ve=3e5,K=`tw.update.badge.checked-at.v1`,ye=15e3,be=4,q=0,J=null,Y=!1,X=`tw.update.stale.reload.v1`;function xe(e){let t=e.status?.phase;return t===`installing`||t===`restarting`}function Se(e){if(e.mode!==`dev`&&!xe(e)&&e.current&&e.current!==i){try{let e=Number(localStorage.getItem(X))||0;if(Date.now()-e<6e4)return;localStorage.setItem(X,String(Date.now()))}catch{}window.location.reload()}}function Ce(){try{return Number(localStorage.getItem(K))||0}catch{return 0}}function Z(){try{localStorage.setItem(K,String(Date.now()))}catch{}}function we(e,t,n){e.hidden=!n,e.closest(`.tw-nav-brand-ver`)?.classList.toggle(`has-update`,n),n&&e.setAttribute(`aria-label`,t?`有新版本可用 v${t}`:`有新版本可更新`)}function Te(e,t){q>=be||(q+=1,J!==null&&window.clearTimeout(J),J=window.setTimeout(()=>{J=null,Q(e,t)},ye))}async function Q(e,t){if(!Y){Y=!0;try{let n=await ee(t);if(!n){Te(e,t);return}q=0,Z();let r=!!n.current&&n.current!==i;we(e,n.latest,!!n.hasUpdate||r),n.hasUpdate||Se(n)}finally{Y=!1}}}function $(){let e=document.getElementById(_e);if(!e)return;e.dataset.bound!==`1`&&(e.dataset.bound=`1`,e.addEventListener(`click`,e=>{e.preventDefault(),e.stopPropagation(),window.dispatchEvent(new CustomEvent(r,{detail:{tab:`general`}}))}));let t=Date.now()-Ce()>ve;q=0,Q(e,t)}function Ee(){document.addEventListener(`astro:page-load`,$),document.addEventListener(`visibilitychange`,()=>{document.visibilityState===`visible`&&$()}),document.readyState!==`loading`&&$()}pe(),ge(),Ee();