lantern-harness 0.1.7 → 0.1.9

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 (90) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +2 -2
  3. package/cli/server.mjs +2 -0
  4. package/config/app.defaults.json +1 -0
  5. package/dist/500.html +3 -3
  6. package/dist/_astro/Base.4X_wsSoR.css +1 -0
  7. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.Dy7fJoxu.js +1 -0
  8. package/dist/_astro/{CaseExecBoard.BAV4EE3o.js → CaseExecBoard.DKdfW5fM.js} +1 -1
  9. package/dist/_astro/{CaseGenerateApp.Bz4ryNJG.js → CaseGenerateApp.Bm8AyH9s.js} +1 -1
  10. package/dist/_astro/{CasesLibrary.BPifyHUA.js → CasesLibrary.CvVJZ74h.js} +1 -1
  11. package/dist/_astro/{ChatApp.DLo31SYZ.js → ChatApp.BS-wLBRa.js} +3 -3
  12. package/dist/_astro/{DashboardBoard.DtuJX0Oi.js → DashboardBoard.DCtfrrJz.js} +2 -2
  13. package/dist/_astro/{DocsFileBrowser.D3cKurQE.js → DocsFileBrowser.BtRoZ787.js} +1 -1
  14. package/dist/_astro/{DocsPager.rzu4mnzw.js → DocsPager.C20ue_JZ.js} +1 -1
  15. package/dist/_astro/{KnowledgeLibrary.B0sO4QR1.js → KnowledgeLibrary.CV4DyStj.js} +1 -1
  16. package/dist/_astro/{NavLibraries.Cvg3wery.js → NavLibraries.DmD2lZBZ.js} +1 -1
  17. package/dist/_astro/PluginsPage.B59AMDrB.js +1 -0
  18. package/dist/_astro/{PluginsPage.DIltPILi.js → PluginsPage.BEAPymNL.js} +1 -1
  19. package/dist/_astro/PmBugsBoard.CPEyBp0l.js +1 -0
  20. package/dist/_astro/PmIterationsBoard.zCeLpcBo.js +1 -0
  21. package/dist/_astro/{PmProjectDetail.DqDoIg8a.js → PmProjectDetail.ejIam5sD.js} +1 -1
  22. package/dist/_astro/{PmProjectsBoard.nOC1Hugt.js → PmProjectsBoard.DbXzir8o.js} +1 -1
  23. package/dist/_astro/PmRequirementsBoard.CynewRfv.js +1 -0
  24. package/dist/_astro/PmRequirementsBoard.D9eUMJWI.js +1 -0
  25. package/dist/_astro/{PmShared.CZnXaUq-.js → PmShared.BxTHKdjY.js} +1 -1
  26. package/dist/_astro/{PromptsLibrary.DU9EuSim.js → PromptsLibrary.Bkruu80b.js} +1 -1
  27. package/dist/_astro/{ReportsPage.Cr88iz8c.js → ReportsPage.BoBQshMQ.js} +1 -1
  28. package/dist/_astro/{RequirementsLibrary.BwriF8F0.js → RequirementsLibrary.BC0A8qdk.js} +1 -1
  29. package/dist/_astro/{SearchableSelect.Ctg8V1Z1.js → SearchableSelect.CXa1hiDd.js} +1 -1
  30. package/dist/_astro/SettingsDialog.Dc-9QNJI.js +1 -0
  31. package/dist/_astro/{SpaceSwitcher.BEJo5KFi.js → SpaceSwitcher.CI3KDBOA.js} +1 -1
  32. package/dist/_astro/{TasksBoard.BZi_GBPG.js → TasksBoard.Bb--oVV8.js} +1 -1
  33. package/dist/_astro/{TemplatesLibrary.T4K9jUex.js → TemplatesLibrary.D1wZq94E.js} +1 -1
  34. package/dist/_astro/{TestStatsBoard.Dd1Kcmx6.js → TestStatsBoard.DlVezlXl.js} +1 -1
  35. package/dist/_astro/{TodosBoard.C4yd_JFb.js → TodosBoard.S84wqcWY.js} +1 -1
  36. package/dist/_astro/UiAutoBoard.BKp9ifxg.js +1 -0
  37. package/dist/_astro/app-config.DUyozIL9.js +1 -0
  38. package/dist/_astro/i18n.B52gLzii.js +7 -0
  39. package/dist/_astro/{open-docs-in-session.B0ZdZNj2.js → open-docs-in-session.Xg3OSOfc.js} +1 -1
  40. package/dist/_astro/{plugins.D5ypJIXn.js → plugins.BDZqJNOy.js} +1 -1
  41. package/dist/_astro/{pm.BsnTv63L.js → pm.Bl3hz9fF.js} +4 -4
  42. package/dist/_astro/{settings.CnDCvwnQ.js → settings.C6NWuiFO.js} +2 -2
  43. package/dist/_astro/{spaces-client.Cai2tHEI.js → spaces-client.k_ciWMai.js} +1 -1
  44. package/dist/_astro/update.Bl_HfSe6.js +1 -0
  45. package/dist/_astro/{view-prefs.HCowOWXL.js → view-prefs.Dyu_lmN2.js} +1 -1
  46. package/dist/case-exec/index.html +4 -4
  47. package/dist/cases/generate/index.html +4 -4
  48. package/dist/cases/library/index.html +4 -4
  49. package/dist/dashboard/index.html +4 -4
  50. package/dist/docs/changelog/index.html +33 -4
  51. package/dist/docs/install/index.html +3 -3
  52. package/dist/docs/manual/index.html +24 -6
  53. package/dist/index.html +4 -4
  54. package/dist/knowledge/index.html +4 -4
  55. package/dist/knowledge//345/212/237/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/347/274/226/345/206/231/350/247/204/350/214/203/index.html +3 -3
  56. package/dist/plugins/index.html +4 -4
  57. package/dist/pm/bugs/index.html +4 -4
  58. package/dist/pm/iterations/index.html +4 -4
  59. package/dist/pm/projects/detail/index.html +4 -4
  60. package/dist/pm/projects/index.html +4 -4
  61. package/dist/pm/requirements/index.html +4 -4
  62. package/dist/prompts/index.html +4 -4
  63. package/dist/reports/index.html +4 -4
  64. package/dist/requirements/index.html +4 -4
  65. package/dist/tasks/index.html +4 -4
  66. package/dist/templates/index.html +4 -4
  67. package/dist/templates//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +3 -3
  68. package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +3 -3
  69. package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +3 -3
  70. package/dist/templates//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +3 -3
  71. package/dist/templates//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +3 -3
  72. package/dist/test-stats/index.html +4 -4
  73. package/dist/todos/index.html +4 -4
  74. package/dist/ui-automation/index.html +281 -0
  75. package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +17 -3
  76. package/lh-plugins/lh-uiauto.mjs +1237 -0
  77. package/lh-plugins/storage-domain.mjs +7 -0
  78. package/lh-plugins/uiauto-argv-guard.cjs +41 -0
  79. package/package.json +1 -1
  80. package/dist/_astro/Base.Bum3N3jp.css +0 -1
  81. package/dist/_astro/Base.astro_astro_type_script_index_0_lang.D0snmAJ_.js +0 -1
  82. package/dist/_astro/PluginsPage.uvmSuXzi.js +0 -1
  83. package/dist/_astro/PmBugsBoard.CiaIhCHv.js +0 -1
  84. package/dist/_astro/PmIterationsBoard.H67QwKFw.js +0 -1
  85. package/dist/_astro/PmRequirementsBoard.BPjZ7khP.js +0 -1
  86. package/dist/_astro/PmRequirementsBoard.CanxvcKg.js +0 -1
  87. package/dist/_astro/SettingsDialog.kpJwoEl3.js +0 -1
  88. package/dist/_astro/app-config.DKMxjv3g.js +0 -1
  89. package/dist/_astro/i18n.BXeGGutk.js +0 -7
  90. package/dist/_astro/update.DXCPfU4a.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.D0snmAJ_.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.Dy7fJoxu.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
  var raw = localStorage.getItem('tw.app.config.v1');
@@ -76,7 +76,7 @@
76
76
  }
77
77
  } catch (e) {}
78
78
  })();
79
- </script><link rel="stylesheet" href="/_astro/Base.Bum3N3jp.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) {
79
+ </script><link rel="stylesheet" href="/_astro/Base.4X_wsSoR.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) {
80
80
  animation-duration: 180ms;
81
81
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
82
82
  animation-fill-mode: both;
@@ -112,7 +112,7 @@
112
112
  animation-duration: 180ms;
113
113
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
114
114
  animation-fill-mode: both;
115
- 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"><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.7">v0.1.7<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.BEJo5KFi.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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="/" class="tw-nav-item" data-i18n-hint="nav.home" data-hint="我的工作台"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 10.5 12 3l9 7.5"></path><path d="M5 9.5V20h14V9.5"></path></svg><span class="tw-nav-label" data-i18n="nav.home">我的工作台</span></a><div class="tw-nav-libraries"><div class="tw-nav-libraries-ph"><a href="/dashboard/" class="tw-nav-item" data-plugin-nav="dashboard"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1.5"></rect><rect x="14" y="3" width="7" height="7" rx="1.5"></rect><rect x="3" y="14" width="7" height="7" rx="1.5"></rect><rect x="14" y="14" width="7" height="7" rx="1.5"></rect></svg><span class="tw-nav-label" data-i18n="nav.dashboard">仪表盘</span></a><a href="/tasks/" class="tw-nav-item" data-plugin-nav="tasks"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 5h10"></path><path d="M9 12h10"></path><path d="M9 19h10"></path><path d="M4 5h.01"></path><path d="M4 12h.01"></path><path d="M4 19h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.tasks">任务管理</span></a><a href="/todos/" class="tw-nav-item is-active font-medium" 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.Cvg3wery.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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></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.kpJwoEl3.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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>
115
+ 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"><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.9">v0.1.9<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.CI3KDBOA.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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="/" class="tw-nav-item" data-i18n-hint="nav.home" data-hint="我的工作台"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 10.5 12 3l9 7.5"></path><path d="M5 9.5V20h14V9.5"></path></svg><span class="tw-nav-label" data-i18n="nav.home">我的工作台</span></a><div class="tw-nav-libraries"><div class="tw-nav-libraries-ph"><a href="/dashboard/" class="tw-nav-item" data-plugin-nav="dashboard"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1.5"></rect><rect x="14" y="3" width="7" height="7" rx="1.5"></rect><rect x="3" y="14" width="7" height="7" rx="1.5"></rect><rect x="14" y="14" width="7" height="7" rx="1.5"></rect></svg><span class="tw-nav-label" data-i18n="nav.dashboard">仪表盘</span></a><a href="/tasks/" class="tw-nav-item" data-plugin-nav="tasks"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 5h10"></path><path d="M9 12h10"></path><path d="M9 19h10"></path><path d="M4 5h.01"></path><path d="M4 12h.01"></path><path d="M4 19h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.tasks">任务管理</span></a><a href="/todos/" class="tw-nav-item is-active font-medium" 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.DmD2lZBZ.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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></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.Dc-9QNJI.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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>
116
116
  (function () {
117
117
  var root = document.documentElement;
118
118
  var btn = document.getElementById('tw-nav-toggle');
@@ -187,7 +187,7 @@
187
187
  });
188
188
  } catch (e) {}
189
189
  })();
190
- </script><main data-astro-transition-scope="astro-bbhp3f5g-3" class="tw-main min-h-screen"><div id="tw-route-loading" class="tw-route-loading is-hidden" role="status" aria-live="polite" aria-label="页面加载中"><span class="tw-route-loading-spin" aria-hidden="true"></span></div><div class="tw-library-page tw-library-wide px-8 py-8"><header class="mb-6 shrink-0"><h1 class="text-2xl font-bold text-stone-900">待办事项</h1><p class="mt-2 text-sm text-stone-500">按状态与紧急程度跟踪待办;工作台会话里也能让 AI 直接记录、更新同一份待办。</p></header><astro-island uid="7kN3O" component-url="/_astro/TodosBoard.C4yd_JFb.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.js" props="{}" ssr client="only" opts="{&quot;name&quot;:&quot;TodosBoard&quot;,&quot;value&quot;:&quot;react&quot;}"></astro-island></div></main></div><script>
190
+ </script><main data-astro-transition-scope="astro-bbhp3f5g-3" class="tw-main min-h-screen"><div id="tw-route-loading" class="tw-route-loading is-hidden" role="status" aria-live="polite" aria-label="页面加载中"><span class="tw-route-loading-spin" aria-hidden="true"></span></div><div class="tw-library-page tw-library-wide px-8 py-8"><header class="mb-6 shrink-0"><h1 class="text-2xl font-bold text-stone-900">待办事项</h1><p class="mt-2 text-sm text-stone-500">按状态与紧急程度跟踪待办;工作台会话里也能让 AI 直接记录、更新同一份待办。</p></header><astro-island uid="7kN3O" component-url="/_astro/TodosBoard.S84wqcWY.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.js" props="{}" ssr client="only" opts="{&quot;name&quot;:&quot;TodosBoard&quot;,&quot;value&quot;:&quot;react&quot;}"></astro-island></div></main></div><script>
191
191
  (function () {
192
192
  /**
193
193
  * 切页滚回顶部。
@@ -0,0 +1,281 @@
1
+ <!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><link rel="icon" type="image/png" sizes="32x32" href="/brand/favicon.png"><link rel="apple-touch-icon" href="/brand/apple-touch-icon.png"><title>自动化测试 · Lantern Harness</title><script>
2
+ // 尽早禁用滚动恢复,避免整页跳转/切页时停在旧滚动位置造成文字叠影
3
+ try {
4
+ if ('scrollRestoration' in history) history.scrollRestoration = 'manual';
5
+ } catch (e) {}
6
+ </script><script type="module" src="/_astro/Base.astro_astro_type_script_index_0_lang.Dy7fJoxu.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
+ (function () {
8
+ try {
9
+ var raw = localStorage.getItem('tw.app.config.v1');
10
+ if (raw) {
11
+ var cfg = JSON.parse(raw);
12
+ var g = (cfg && cfg.general) || {};
13
+ var root = document.documentElement;
14
+ var size = typeof g.sessionFontSize === 'number' ? Math.round(g.sessionFontSize) : 14;
15
+ if (size < 12) size = 12;
16
+ if (size > 22) size = 22;
17
+ var px = size + 'px';
18
+ root.style.setProperty('--tw-ui-font-size', px);
19
+ root.style.setProperty('--tw-session-font-size', px);
20
+ var appearance = g.appearance;
21
+ var theme =
22
+ appearance === 'dark' || appearance === 'light'
23
+ ? appearance
24
+ : window.matchMedia('(prefers-color-scheme: dark)').matches
25
+ ? 'dark'
26
+ : 'light';
27
+ root.dataset.theme = theme;
28
+ root.style.colorScheme = theme;
29
+ if (g.language === 'en') root.lang = 'en';
30
+ }
31
+ if (localStorage.getItem('tw.nav.collapsed') === '1') {
32
+ document.documentElement.dataset.navCollapsed = '1';
33
+ }
34
+ var spaceId = (
35
+ sessionStorage.getItem('tw.space.active-id') ||
36
+ localStorage.getItem('tw.space.active-id') ||
37
+ ''
38
+ ).trim();
39
+ var cfgKey = spaceId ? 'tw.app.config.v1::' + spaceId : 'tw.app.config.v1';
40
+ var cfgRaw = localStorage.getItem(cfgKey) || localStorage.getItem('tw.app.config.v1');
41
+ if (cfgRaw) {
42
+ var savedCfg = JSON.parse(cfgRaw) || {};
43
+ var plugins = savedCfg.plugins || {};
44
+ if (plugins.cases === false) document.documentElement.dataset.pluginOffCases = '1';
45
+ if (plugins.todos === false) document.documentElement.dataset.pluginOffTodos = '1';
46
+ if (plugins.tasks === false) document.documentElement.dataset.pluginOffTasks = '1';
47
+ if (plugins.projects !== true) document.documentElement.dataset.pluginOffProjects = '1';
48
+ if (plugins.iterations !== true)
49
+ document.documentElement.dataset.pluginOffIterations = '1';
50
+ if (plugins.pmRequirements !== true)
51
+ document.documentElement.dataset.pluginOffPmRequirements = '1';
52
+ if (plugins.bugs !== true) document.documentElement.dataset.pluginOffBugs = '1';
53
+ if (plugins.reports !== true) document.documentElement.dataset.pluginOffReports = '1';
54
+ if (plugins.testStats !== true)
55
+ document.documentElement.dataset.pluginOffTestStats = '1';
56
+ if (plugins.caseExec !== true) document.documentElement.dataset.pluginOffCaseExec = '1';
57
+ if (plugins.dashboard !== true)
58
+ document.documentElement.dataset.pluginOffDashboard = '1';
59
+ if (plugins.knowledgeLib === false)
60
+ document.documentElement.dataset.pluginOffKnowledgeLib = '1';
61
+ if (plugins.requirements === false)
62
+ document.documentElement.dataset.pluginOffRequirements = '1';
63
+ if (plugins.templates === false)
64
+ document.documentElement.dataset.pluginOffTemplates = '1';
65
+ // 本地已有菜单布局:静态占位(固定顺序平铺)不再亮相,避免闪一下「排序前」
66
+ if (Array.isArray(savedCfg.navGroups) || Array.isArray(savedCfg.navOrder)) {
67
+ document.documentElement.dataset.navCached = '1';
68
+ // 兜底:脚本没跑起来(岛始终为空)时把占位放回来,别让侧栏彻底空着
69
+ window.setTimeout(function () {
70
+ var island = document.querySelector('.tw-nav-libraries astro-island');
71
+ if (!island || !island.querySelector('.tw-nav-item-main')) {
72
+ document.documentElement.removeAttribute('data-nav-cached');
73
+ }
74
+ }, 3000);
75
+ }
76
+ }
77
+ } catch (e) {}
78
+ })();
79
+ </script><link rel="stylesheet" href="/_astro/Base.4X_wsSoR.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) {
80
+ animation-duration: 180ms;
81
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
82
+ animation-fill-mode: both;
83
+ animation-name: astroFadeOut; }::view-transition-new(astro-bbhp3f5g-3) {
84
+ animation-duration: 180ms;
85
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
86
+ animation-fill-mode: both;
87
+ animation-name: astroFadeIn; }[data-astro-transition=back]::view-transition-old(astro-bbhp3f5g-3) {
88
+ animation-duration: 180ms;
89
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
90
+ animation-fill-mode: both;
91
+ animation-name: astroFadeOut; }[data-astro-transition=back]::view-transition-new(astro-bbhp3f5g-3) {
92
+ animation-duration: 180ms;
93
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
94
+ animation-fill-mode: both;
95
+ animation-name: astroFadeIn; } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-bbhp3f5g-3"],
96
+ [data-astro-transition-fallback="old"][data-astro-transition-scope="astro-bbhp3f5g-3"] {
97
+ animation-duration: 180ms;
98
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
99
+ animation-fill-mode: both;
100
+ animation-name: astroFadeOut; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-bbhp3f5g-3"],
101
+ [data-astro-transition-fallback="new"][data-astro-transition-scope="astro-bbhp3f5g-3"] {
102
+ animation-duration: 180ms;
103
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
104
+ animation-fill-mode: both;
105
+ animation-name: astroFadeIn; }[data-astro-transition=back][data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-bbhp3f5g-3"],
106
+ [data-astro-transition=back][data-astro-transition-fallback="old"][data-astro-transition-scope="astro-bbhp3f5g-3"] {
107
+ animation-duration: 180ms;
108
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
109
+ animation-fill-mode: both;
110
+ animation-name: astroFadeOut; }[data-astro-transition=back][data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-bbhp3f5g-3"],
111
+ [data-astro-transition=back][data-astro-transition-fallback="new"][data-astro-transition-scope="astro-bbhp3f5g-3"] {
112
+ animation-duration: 180ms;
113
+ animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
114
+ animation-fill-mode: both;
115
+ 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"><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.9">v0.1.9<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.CI3KDBOA.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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="/" class="tw-nav-item" data-i18n-hint="nav.home" data-hint="我的工作台"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 10.5 12 3l9 7.5"></path><path d="M5 9.5V20h14V9.5"></path></svg><span class="tw-nav-label" data-i18n="nav.home">我的工作台</span></a><div class="tw-nav-libraries"><div class="tw-nav-libraries-ph"><a href="/dashboard/" class="tw-nav-item" data-plugin-nav="dashboard"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1.5"></rect><rect x="14" y="3" width="7" height="7" rx="1.5"></rect><rect x="3" y="14" width="7" height="7" rx="1.5"></rect><rect x="14" y="14" width="7" height="7" rx="1.5"></rect></svg><span class="tw-nav-label" data-i18n="nav.dashboard">仪表盘</span></a><a href="/tasks/" class="tw-nav-item" data-plugin-nav="tasks"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 5h10"></path><path d="M9 12h10"></path><path d="M9 19h10"></path><path d="M4 5h.01"></path><path d="M4 12h.01"></path><path d="M4 19h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.tasks">任务管理</span></a><a href="/todos/" class="tw-nav-item" data-plugin-nav="todos"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M8 6h13"></path><path d="M8 12h13"></path><path d="M8 18h13"></path><path d="M3 6h.01"></path><path d="M3 12h.01"></path><path d="M3 18h.01"></path></svg><span class="tw-nav-label" data-i18n="nav.todos">待办事项</span></a><a href="/pm/projects/" class="tw-nav-item" data-plugin-nav="projects"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z"></path></svg><span class="tw-nav-label" data-i18n="nav.projects">项目列表</span></a><a href="/pm/iterations/" class="tw-nav-item" data-plugin-nav="iterations"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><rect x="3" y="5" width="18" height="16" rx="2"></rect><path d="M8 3v4"></path><path d="M16 3v4"></path><path d="M3 10h18"></path></svg><span class="tw-nav-label" data-i18n="nav.iterations">迭代管理</span></a><a href="/pm/requirements/" class="tw-nav-item" data-plugin-nav="pmRequirements"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h5"></path></svg><span class="tw-nav-label" data-i18n="nav.requirementsMgmt">需求管理</span></a><a href="/pm/bugs/" class="tw-nav-item" data-plugin-nav="bugs"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="14" r="5"></circle><path d="M9 6l2 2"></path><path d="M15 6l-2 2"></path><path d="M7 11H4"></path><path d="M20 11h-3"></path><path d="M7 17H4"></path><path d="M20 17h-3"></path></svg><span class="tw-nav-label" data-i18n="nav.bugs">缺陷管理</span></a><a href="/reports/" class="tw-nav-item" data-plugin-nav="reports"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h5"></path></svg><span class="tw-nav-label" data-i18n="nav.reports">工作汇报</span></a><a href="/test-stats/" class="tw-nav-item" data-plugin-nav="testStats"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M4 20V10"></path><path d="M10 20V4"></path><path d="M16 20v-7"></path><path d="M22 20H2"></path></svg><span class="tw-nav-label" data-i18n="nav.testStats">测试统计</span></a><a href="/case-exec/" class="tw-nav-item" data-plugin-nav="caseExec"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><circle cx="12" cy="12" r="9"></circle><circle cx="12" cy="12" r="5"></circle><circle cx="12" cy="12" r="1.4"></circle></svg><span class="tw-nav-label" data-i18n="nav.caseExec">用例执行统计</span></a><a href="/cases/library/" class="tw-nav-item" data-plugin-nav="cases"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M9 11l3 3L22 4"></path><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path></svg><span class="tw-nav-label" data-i18n="nav.caseManage">用例管理</span></a><a href="/knowledge/" class="tw-nav-item" data-plugin-nav="knowledgeLib"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path></svg><span class="tw-nav-label" data-i18n="nav.knowledge">知识库管理</span></a><a href="/requirements/" class="tw-nav-item" data-plugin-nav="requirements" data-i18n-hint="nav.requirements"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M14 3v5h5"></path><path d="M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z"></path><path d="M8 13h8"></path><path d="M8 17h6"></path></svg><span class="tw-nav-label" data-i18n="nav.requirements">需求文档库</span></a><a href="/templates/" class="tw-nav-item" data-plugin-nav="templates" data-i18n-hint="nav.templates"><svg class="tw-nav-ico" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="M12 3 3 8l9 5 9-5-9-5z"></path><path d="m3 13 9 5 9-5"></path></svg><span class="tw-nav-label" data-i18n="nav.templates">测试模板库</span></a></div><astro-island uid="Z1lgSd4" component-url="/_astro/NavLibraries.DmD2lZBZ.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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></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.Dc-9QNJI.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.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>
116
+ (function () {
117
+ var root = document.documentElement;
118
+ var btn = document.getElementById('tw-nav-toggle');
119
+ function apply(collapsed) {
120
+ if (collapsed) root.dataset.navCollapsed = '1';
121
+ else delete root.dataset.navCollapsed;
122
+ try {
123
+ localStorage.setItem('tw.nav.collapsed', collapsed ? '1' : '0');
124
+ } catch (e) {}
125
+ if (btn) {
126
+ btn.setAttribute('aria-expanded', collapsed ? 'false' : 'true');
127
+ // 气泡已移除;改为动态更新不可见标签,读屏仍能获知当前动作
128
+ btn.setAttribute('aria-label', collapsed ? '展开导航' : '收起导航');
129
+ }
130
+ }
131
+ apply(root.dataset.navCollapsed === '1');
132
+ if (btn) {
133
+ btn.addEventListener('click', function () {
134
+ apply(root.dataset.navCollapsed !== '1');
135
+ });
136
+ }
137
+
138
+ try {
139
+ var raw = localStorage.getItem('tw.app.config.v1');
140
+ if (!raw) return;
141
+ var g = JSON.parse(raw).general || {};
142
+ if (g.language !== 'en') return;
143
+ var en = {
144
+ 'nav.brand': 'Lantern Harness',
145
+ 'nav.home': 'My Workbench',
146
+ 'nav.dashboard': 'Dashboard',
147
+ 'nav.tasks': 'Tasks',
148
+ 'nav.todos': 'Todos',
149
+ 'nav.projects': 'Projects',
150
+ 'nav.iterations': 'Iterations',
151
+ 'nav.requirementsMgmt': 'Requirements Mgmt',
152
+ 'nav.bugs': 'Bugs',
153
+ 'nav.reports': 'Work Report',
154
+ 'nav.testStats': 'Test Statistics',
155
+ 'nav.caseExec': 'Case Execution',
156
+ 'nav.caseManage': 'Test Cases',
157
+ 'nav.prompts': 'Prompts',
158
+ 'nav.knowledge': 'Knowledge Mgmt',
159
+ 'nav.plugins': 'My Plugins',
160
+ 'nav.docs': 'Documents',
161
+ 'nav.requirements': 'Requirements',
162
+ 'nav.templates': 'Test Templates',
163
+ 'nav.settings': 'Settings',
164
+ 'nav.changelog': 'Changelog',
165
+ 'nav.changelogShort': 'Changelog',
166
+ 'nav.helpCenter': 'Help Center',
167
+ 'docs.nav.title': 'Docs',
168
+ 'docs.nav.changelog': 'Changelog',
169
+ 'docs.nav.manual': 'User Guide',
170
+ 'docs.nav.install': 'Install Guide',
171
+ 'nav.repo': 'GitHub',
172
+ 'nav.repoShort': 'Repo',
173
+ 'nav.npm': 'npm package',
174
+ 'nav.npmShort': 'npm',
175
+ 'nav.site': 'Yycy Docs',
176
+ 'nav.siteShort': 'Site',
177
+ 'nav.board': 'Questions & suggestions',
178
+ 'nav.boardShort': 'Suggestions',
179
+ };
180
+ document.querySelectorAll('[data-i18n]').forEach(function (el) {
181
+ var key = el.getAttribute('data-i18n');
182
+ if (key && en[key]) el.textContent = en[key];
183
+ });
184
+ document.querySelectorAll('[data-i18n-hint]').forEach(function (el) {
185
+ var key = el.getAttribute('data-i18n-hint');
186
+ if (key && en[key]) el.setAttribute('data-hint', en[key]);
187
+ });
188
+ } catch (e) {}
189
+ })();
190
+ </script><main data-astro-transition-scope="astro-bbhp3f5g-3" class="tw-main min-h-screen"><div id="tw-route-loading" class="tw-route-loading is-hidden" role="status" aria-live="polite" aria-label="页面加载中"><span class="tw-route-loading-spin" aria-hidden="true"></span></div><div class="tw-library-page tw-library-wide px-8 py-8"><header class="mb-5 flex shrink-0 items-start gap-3"><span class="tw-pm-page-ico" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6.5h16v11H4Z"></path><path d="m7.5 10 2.5 2-2.5 2"></path><path d="M12.5 14h3.5"></path></svg></span><div class="min-w-0"><h1 class="text-lg font-semibold text-stone-800">自动化测试</h1><p class="mt-0.5 text-xs leading-relaxed text-stone-400">挂载已有的 Playwright 项目:运行 / 停止用例、实时看日志、查看 HTML 报告,并只读浏览项目目录。执行目标项目自己的 Playwright,不自动安装依赖。</p></div></header><astro-island uid="Z1FkwIF" component-url="/_astro/UiAutoBoard.BKp9ifxg.js" component-export="default" renderer-url="/_astro/client.Be_SakrB.js" props="{}" ssr client="only" opts="{&quot;name&quot;:&quot;UiAutoBoard&quot;,&quot;value&quot;:&quot;react&quot;}"></astro-island></div></main></div><script>
191
+ (function () {
192
+ /**
193
+ * 切页滚回顶部。
194
+ * 只在「换页后」重置:若在 before-preparation(点击瞬间)就重置,
195
+ * 当前页面会先跳回顶部、再等新页到达,用户看到的就是「打开时还在滚动」。
196
+ * 带锚点(#)时交给浏览器定位,不强制回顶。
197
+ */
198
+ try {
199
+ if ('scrollRestoration' in history) history.scrollRestoration = 'manual';
200
+ } catch (e) {}
201
+ function twScrollTop() {
202
+ if (location.hash) return;
203
+ if (window.scrollY === 0 && document.documentElement.scrollTop === 0) return;
204
+ try {
205
+ // instant:不受将来可能加入的 scroll-behavior: smooth 影响
206
+ window.scrollTo({ top: 0, left: 0, behavior: 'instant' });
207
+ } catch (e) {
208
+ // 旧浏览器不认 instant,会抛 TypeError,退回普通写法
209
+ window.scrollTo(0, 0);
210
+ }
211
+ document.documentElement.scrollTop = 0;
212
+ document.body.scrollTop = 0;
213
+ var main = document.querySelector('.tw-main');
214
+ if (main) main.scrollTop = 0;
215
+ }
216
+ document.addEventListener('astro:after-swap', twScrollTop);
217
+ document.addEventListener('astro:page-load', twScrollTop);
218
+
219
+ /**
220
+ * 软导航「闪白」修复。
221
+ * ClientRouter 交换文档时,会用新文档 <html> 的属性整体替换当前 <html>,
222
+ * 于是 data-theme 连同 style 里的 color-scheme 一起被清空;在主题属性
223
+ * 恢复之前,color-scheme 回落到 normal,画布变白 —— 深色主题下就是
224
+ * 切页瞬间的闪白(与具体页面无关,所有路由都受影响)。
225
+ * 在交换前把主题 / 语言写进新文档的 <html>,交换完成时即已带上,不留空档。
226
+ */
227
+ document.addEventListener('astro:before-swap', function (e) {
228
+ var next = e.newDocument;
229
+ if (!next || !next.documentElement) return;
230
+ var cur = document.documentElement;
231
+ var nextRoot = next.documentElement;
232
+ var theme = cur.dataset.theme;
233
+ if (theme) {
234
+ nextRoot.dataset.theme = theme;
235
+ nextRoot.style.colorScheme = theme;
236
+ }
237
+ if (cur.lang) nextRoot.lang = cur.lang;
238
+ // 新文档是「解析」出来的:head 里的内联脚本在解析阶段不会执行,
239
+ // 于是所有运行期写在 <html> 上的状态都不会自带。主题 / 语言之外,
240
+ // 侧栏收起状态与空间服务可用性同样要显式搬过去,否则每次软导航都会丢
241
+ // (表现为侧栏自己弹开、骨架又冒出来)。
242
+ if (cur.dataset.navCollapsed === '1') nextRoot.dataset.navCollapsed = '1';
243
+ if (cur.dataset.spaceService) nextRoot.dataset.spaceService = cur.dataset.spaceService;
244
+ // 插件开关同理:不搬过去会先亮出被隐藏的侧栏入口,等 page-load 再收起
245
+ [
246
+ 'pluginOffTasks',
247
+ 'pluginOffTodos',
248
+ 'pluginOffProjects',
249
+ 'pluginOffIterations',
250
+ 'pluginOffPmRequirements',
251
+ 'pluginOffBugs',
252
+ 'pluginOffReports',
253
+ 'pluginOffTestStats',
254
+ 'pluginOffCaseExec',
255
+ 'pluginOffDashboard',
256
+ 'pluginOffCases',
257
+ 'pluginOffKnowledgeLib',
258
+ 'pluginOffRequirements',
259
+ 'pluginOffTemplates',
260
+ ].forEach(function (key) {
261
+ if (cur.dataset[key]) nextRoot.dataset[key] = cur.dataset[key];
262
+ });
263
+ });
264
+
265
+ /** 版本日志「查看更多」:委托绑定,兼容 View Transitions 软导航 */
266
+ document.addEventListener('click', function (e) {
267
+ var t = e.target;
268
+ if (!(t instanceof Element)) return;
269
+ var btn = t.closest('.tw-changelog-toggle');
270
+ if (!(btn instanceof HTMLButtonElement)) return;
271
+ var card = btn.closest('.tw-changelog-card');
272
+ if (!(card instanceof HTMLElement)) return;
273
+ e.preventDefault();
274
+ var next = card.getAttribute('data-open') !== 'true';
275
+ card.setAttribute('data-open', next ? 'true' : 'false');
276
+ btn.setAttribute('aria-expanded', next ? 'true' : 'false');
277
+ var label = btn.querySelector('.tw-changelog-toggle-label');
278
+ if (label) label.textContent = next ? '收起' : '查看更多';
279
+ });
280
+ })();
281
+ </script></body></html>
@@ -105,7 +105,7 @@
105
105
 
106
106
  > 目录**按插件开关懒建**:新建 / 首次选中的数据空间只有隐藏的 `.lantern/` 元数据,启用对应内容库插件后才出现上表目录并补入种子文件;旧版本留下的空目录(只有 `.gitkeep`)会自动收起,已有文件的目录不动。**`提示词管理/` 是唯一例外**:每个空间都有默认提示词,因此该目录与 `默认提示词.md` 会始终铺好。
107
107
 
108
- > 待办、任务、工作汇报、测试统计、用例执行统计、项目管理的四个插件的数据也直接放在空间里,跟侧栏入口对应:`待办事项/待办.json`、`任务管理/任务.json`、`工作汇报/日报 · 周报 · 月报/`、`测试统计/测试统计.json`、`用例执行统计/用例执行统计.json`、`项目列表/项目列表.json`、`迭代管理/迭代管理.json`、`需求管理/需求管理.json`、`缺陷管理/缺陷管理.json`。这些目录只在真的有数据时创建,没有数据就保持干净:打开开关、进入页面都不会预建空目录 / 空文件,第一次写入(新增记录、保存汇报文件)时才落盘。旧版放在 `.lantern/local/todos.json`、`tasks.json` 的数据读取时仍能直接看到,第一次写入时自动搬进 `待办事项/`、`任务管理/`;旧版四插件共用的 `项目管理/项目管理.json` 也会在首次读取或打开开关时自动拆到四个目录。
108
+ > 待办、任务、工作汇报、测试统计、用例执行统计、项目管理的四个插件的数据也直接放在空间里,跟侧栏入口对应:`待办事项/待办.json`、`任务管理/任务.json`、`工作汇报/日报 · 周报 · 月报/`、`测试统计/测试统计.json`、`用例执行统计/用例执行统计.json`、`项目列表/项目列表.json`、`迭代管理/迭代管理.json`、`需求管理/需求管理.json`、`缺陷管理/缺陷管理.json`、`UI自动化/UI自动化.json`。这些目录只在真的有数据时创建,没有数据就保持干净:打开开关、进入页面都不会预建空目录 / 空文件,第一次写入(新增记录、保存汇报文件)时才落盘。旧版放在 `.lantern/local/todos.json`、`tasks.json` 的数据读取时仍能直接看到,第一次写入时自动搬进 `待办事项/`、`任务管理/`;旧版四插件共用的 `项目管理/项目管理.json` 也会在首次读取或打开开关时自动拆到四个目录。
109
109
 
110
110
  > 「空间管理」默认展示全部空间:右上角「+ 新增空间」新建并立即写入默认提示词;每行的「编辑」可修改空间名称、提示词要求与默认提示词正文,保存后工作台立即生效。
111
111
 
@@ -227,6 +227,7 @@ version: '1.0' # 可选
227
227
  | 项目管理 | 缺陷管理 | 关 | 侧栏进入缺陷管理:缺陷编号 `BUG-###`、缺陷描述、附件上传(文件 / 图片),状态可行内改(需同时开启「项目列表」;需本地服务) |
228
228
  | 测试统计 | 测试统计 | 关 | 侧栏进入测试统计:按当前日期 + 测试统计维度记录数量,维度可搜索或直接创建(需本地服务) |
229
229
  | 测试统计 | 用例执行统计 | 关 | 侧栏进入用例执行统计:按项目记录用例总数 / 待执行 / 已执行,自动算当前剩余与执行比例(需本地服务) |
230
+ | 测试统计 | 自动化测试 | 关 | 侧栏进入自动化测试:顶部下拉切换已挂载的 Playwright 项目,运行 / 停止用例、实时日志、HTML 报告与只读目录浏览(需本地服务) |
230
231
  | 仪表盘 | 仪表盘 | 关 | 侧栏进入仪表盘:聚合待办 / 任务 / 项目 / 测试统计的 12 张卡片,12 列自由画布可拖位置、拖右下角改宽高,右上角「编辑组件」增减(需本地服务) |
231
232
  | 开发工具 | 插件开发 | 关 | 固定提示词开发扩展插件:先评估并用选项确认,确认后才改代码,完成后并入「扩展插件」(需本地服务) |
232
233
 
@@ -288,7 +289,7 @@ version: '1.0' # 可选
288
289
  - **项目列表**(`/pm/projects/`):卡片显示项目名首字、状态徽标、描述与「N 迭代 · N 需求 · N 缺陷」,右下角显示需求完成度;顶部可按状态筛选、搜索,卡片三点菜单提供「编辑 / 归档(或取消归档)/ 删除」。**点卡片(或卡片上的箭头)进入项目详情二级页** `/pm/projects/detail/?id=<项目 id>`:页头是返回按钮 + 项目名 / 描述 / 状态,下面用「迭代 / 需求 / 缺陷」三个页签切换当前项目的数据,可直接新建、改状态、编辑与删除;关闭「项目列表」插件后详情页同样不可用。
289
290
  - **迭代管理**(`/pm/iterations/`):按项目与状态下拉筛选,卡片显示「项目 · 开始 → 截止」、时间进度条与百分比;未完成且过了截止日期会标出逾期天数,未到期显示还剩几天。行内可「开始 / 完成」、编辑或删除;结束日期不能早于开始日期。
290
291
  - **需求管理**(`/pm/requirements/`):表格列 ID / 需求描述 / 优先级 / 需求状态 / 所属项目 / 所属迭代;顶部用状态胶囊(全部 / 待评估 / 待开发 / 开发中 / 测试中 / 已完成 / 已取消)筛选,状态下拉可在行内直接改。右侧抽屉可改所属项目、迭代(按项目联动)、需求描述(多行)、优先级、状态、备注与附件;附件支持上传文件 / 图片、拖拽或直接粘贴截图(可多张),抽屉里显示缩略图 / 文件名,点 X 单个移除,切换项目时会清空不属于新项目的迭代。分页与「测试统计」一致(每页条数可选,首页 / 末页)。
291
- - **缺陷管理**(`/pm/bugs/`):表格列 ID / 缺陷标题 / 严重程度 / 缺陷状态 / 所属项目 / 所属迭代;顶部用状态胶囊筛选,另可按项目、迭代、严重程度筛选与搜索;状态可行内改。抽屉只填缺陷描述(第一行自动作为列表标题)、附件与备注,另可关联同一项目的需求;附件支持上传文件 / 图片(可多选),落到当前空间的 `缺陷管理/附件/`,可单个移除,删除缺陷时一并清理。分页与「测试统计」一致(每页条数可选,首页 / 末页)。
292
+ - **缺陷管理**(`/pm/bugs/`):表格列 ID / 缺陷标题 / 严重程度 / 缺陷状态 / 所属项目 / 所属迭代;**默认按创建时间倒序排列**(新建的在最前,所以编号通常是倒着看的),顶部用状态胶囊筛选,另可按项目、迭代、严重程度筛选与搜索;状态可行内改。抽屉只填缺陷描述(第一行自动作为列表标题)、附件与备注,另可关联同一项目的需求;附件支持上传文件 / 图片(可多选),落到当前空间的 `缺陷管理/附件/`,可单个移除,删除缺陷时一并清理。分页与「测试统计」一致(每页条数可选,首页 / 末页)。
292
293
  - **AI 工具**:项目 / 迭代 / 需求 / 缺陷各有一组 `list / add / update / delete`(共 16 个,名称为 `pm_project_*` 等)。可以让 AI「把登录需求挂到 v1.0 迭代」「把这条缺陷改成待验证」;写操作直接落库、不弹确认卡片,执行前 AI 会用 `list` 拿真实 id。计划模式下只允许查询,写入会被拦截。项目 / 迭代 / 需求也支持直接传名称,系统先精确、再忽略大小写匹配。
293
294
 
294
295
  ### 工作汇报
@@ -329,6 +330,19 @@ version: '1.0' # 可选
329
330
  - 单元格改完即自动保存(数字停止输入约 0.6 秒、失焦或回车落库),没有保存 / 取消按钮,行尾只有删除(删掉该行会一并删掉 JSON 里的记录)。
330
331
  - 顶部汇总显示记录数、项目数、已执行 / 用例总数与整体执行率;支持按项目 / 日期搜索,支持勾选本页后批量删除(二次确认),行尾也可删除单条。搜索词会记住(刷新 / 重新进入页面仍按上次的关键词过滤)。列表默认每页 20 条,可切换每页条数;列宽可拖表头右边缘调整,列窄时「执行比例」的进度条也会保留最小宽度,不会压成一条线。
331
332
 
333
+ ### 自动化测试
334
+
335
+ 「我的插件」→「测试统计」→「自动化测试」开启后,侧栏出现「自动化测试」入口(`/ui-automation/`)。
336
+
337
+ - 挂载目标项目里**已有的 Playwright**,不新增 npm 依赖:点「添加」用系统原生选目录选择项目根目录(含 `playwright.config.*`,或 `package.json` 声明了 `@playwright/test`),可记住多个项目;目录被移动 / 换机器后该项目标灰,点「重选目录」即可恢复挂载,历史报告不会丢。
338
+ - 运行:可指定测试文件(自动从项目里筛 `*.spec` / `*.test`)、grep、Playwright 项目名(`setup` / `chromium-login` 这类,首次运行后自动带出候选)、headed 与并发数;同一项目同时只允许一个运行,全局最多同时跑 2 个。
339
+ - 停止:先向进程组发 SIGTERM,5 秒未退出再 SIGKILL,Playwright 的浏览器子进程会一起结束,状态记为「已取消」。
340
+ - 日志:运行中每秒增量拉取,显示在卡片内的浅色日志面板里并自动滚底(往上翻时暂停);结束后保留原始日志,历史里点「日志」可回看。
341
+ - 报告:Playwright HTML reporter 直接写到 `UI自动化/报告/<runId>/`,点「查看报告」在新标签打开;结束后的汇总条显示总数 / 通过 / 失败 / 跳过 / 耗时,失败时可直接「重跑失败用例」(`--last-failed`)。
342
+ - 目录:只读浏览项目文件树(忽略 `node_modules`、`test-results`、`playwright-report`、`dist`、`coverage` 等),点文件在右侧预览(≤256KB,二进制文件不预览);不在插件里修改项目文件。
343
+ - 数据落在当前数据空间的 `UI自动化/UI自动化.json`,报告 / 结果 / 原始日志分别在同级的 `报告/`、`结果/`、`日志/`;切换空间各用各的。
344
+ - 首次运行前请先在项目目录装好依赖:插件**不自动** `npm install`、也**不自动** `playwright install`;找不到本地 Playwright 时会提示可直接复制的安装命令。
345
+
332
346
  ### 仪表盘
333
347
 
334
348
  「我的插件」→「仪表盘」→「仪表盘」开启后,侧栏出现「仪表盘」入口(`/dashboard/`;新空间默认在最前面,已有空间按已保存的菜单顺序追加,可在侧栏拖动调整)。
@@ -343,7 +357,7 @@ version: '1.0' # 可选
343
357
  - **待办完成率** / **任务完成率**:已完成 ÷ 可计完成(待办排除已取消、任务排除已关闭 / 已取消);分母为 0 时显示 0%,带进度条与「已完成 / 总数」。每个指标各是一张独立卡片,不再合并成一张「待办概览」;旧布局里存过的「待办概览」会在读取时自动拆成五张。活跃项目与数据空间也是同样样式的独立指标卡。
344
358
  - **活跃项目**:项目管理里状态为「进行中」的项目数量,下方补充项目总数,点卡片进入项目列表(需要同时开启「项目列表」与本地服务)。
345
359
  - **数据空间**:当前账号下一共有多少个数据空间,下方标出正在使用的空间名;静态部署 / 服务不可用时显示「—」。
346
- - **倒计时**:四格数字块显示天 / 时 / 分 / 秒,右上角四格切换终点:**今天**(到今天 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 年安排待公布」)。
360
+ - **倒计时**:四格数字块显示天 / 时 / 分 / 秒,右上角四格切换终点:**今天**(到今天 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 年安排待公布」)。
347
361
  - **今日待办**:表格展示「开始时间 ~ 截止时间」区间包含今天的未完成待办(只填一端时按那一天算),已过截止日期的「已延期」待办也会留在列表里继续跟进,列为待办名称 / 待办状态 / 所属任务 / 开始日期 / 截止日期,每页 5 条可翻页;点名称前的圆圈可直接标记完成(立即写回待办,完成后会从本卡移出);状态胶囊只读展示,改状态请到待办页。
348
362
  - **进行中任务**:表格展示状态为「进行中」的任务,列为任务描述 / 任务状态 / 重要紧急程度 / 开始日期 / 结束日期,每页 5 条可翻页;结束日期逾期标红。
349
363
  - **测试统计**:每个维度取最新一天的数量,按数量降序最多 10 个维度;照飞书柱状图带纵轴刻度(居中贴网格线)、横向网格线与柱顶数值,拉高时柱子一起变高。