lantern-harness 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +56 -0
- package/builtin/session/lh-nav-groups.mjs +141 -30
- package/cli/server.mjs +7 -0
- package/config/app.defaults.json +5 -1
- package/dist/500.html +5 -5
- package/dist/_astro/Base.VCz1UVxQ.css +1 -0
- package/dist/_astro/Base.astro_astro_type_script_index_0_lang.CpzwEBjx.js +1 -0
- package/dist/_astro/CaseExecBoard.cBdsZU9e.js +1 -0
- package/dist/_astro/CaseGenerateApp.D2ftaUXT.js +9 -0
- package/dist/_astro/CasesLibrary.DWXEje9u.js +19 -0
- package/dist/_astro/ChatApp.7piDha-y.js +226 -0
- package/dist/_astro/ColumnResize.BgYkV9Iy.js +1 -0
- package/dist/_astro/{DashboardBoard.uPjTYpJZ.js → DashboardBoard.BIP9es-t.js} +1 -1
- package/dist/_astro/DocsFileBrowser.-dkkxR4X.js +1 -0
- package/dist/_astro/{DocsPager.EPT5-oEx.js → DocsPager.v4kQH163.js} +1 -1
- package/dist/_astro/{DrawerField.DqvXFCFh.js → DrawerField.C0ehOlDt.js} +1 -1
- package/dist/_astro/ExcelFieldTags.ytbpKt-Z.js +5 -0
- package/dist/_astro/KnowledgeLibrary.Dw-IX3Zt.js +1 -0
- package/dist/_astro/NavLibraries.D1J9BwYo.js +1 -0
- package/dist/_astro/OverflowHint.pvo2Xc8R.js +1 -0
- package/dist/_astro/PluginsPage.DMTsFl_R.js +7 -0
- package/dist/_astro/PluginsPage.DMxVKmiY.js +1 -0
- package/dist/_astro/PmBugsBoard.BTtm1lki.js +1 -0
- package/dist/_astro/PmIterationsBoard.Dm67iXe_.js +1 -0
- package/dist/_astro/{PmProjectDetail.BDKXOQJD.js → PmProjectDetail.B7oWL7y-.js} +1 -1
- package/dist/_astro/PmProjectsBoard.8QI44RlE.js +1 -0
- package/dist/_astro/PmRequirementsBoard.DMJVLCqz.js +1 -0
- package/dist/_astro/PmRequirementsBoard.X98441HZ.js +1 -0
- package/dist/_astro/{PmShared.D69sPvec.js → PmShared.DbDseTcc.js} +1 -1
- package/dist/_astro/PromptMountDialog.YH2odDZx.js +58 -0
- package/dist/_astro/PromptsLibrary.B_qFbQGi.js +1 -0
- package/dist/_astro/{ReportsPage.N1EaH8E-.js → ReportsPage.BjcajHR6.js} +1 -1
- package/dist/_astro/ReqAnalysisBoard.hwNqRyim.js +28 -0
- package/dist/_astro/RequirementsLibrary.CGCNnQQG.js +1 -0
- package/dist/_astro/SearchableSelect.mvcBwegf.js +1 -0
- package/dist/_astro/SelectDropdown.Cb-QtC-D.js +1 -0
- package/dist/_astro/SettingsDialog.CnBZRaWE.js +1 -0
- package/dist/_astro/SpaceSwitcher.DMoqOVpS.js +7 -0
- package/dist/_astro/TasksBoard.DvfyDL76.js +1 -0
- package/dist/_astro/TemplatesLibrary.B5KmjjFw.js +1 -0
- package/dist/_astro/TestStatsBoard.EIDxmU_8.js +1 -0
- package/dist/_astro/Toast.BO2NFckG.js +1 -0
- package/dist/_astro/TodosBoard.7IptYUFY.js +1 -0
- package/dist/_astro/UiAutoBoard.DJljpjXT.js +9 -0
- package/dist/_astro/app-config.CF1xVPmo.js +1 -0
- package/dist/_astro/app-version.YyNOCGCb.js +1 -0
- package/dist/_astro/bash-tools.CPS0ZiKi.js +25 -0
- package/dist/_astro/case-review.DYyZat83.js +3 -0
- package/dist/_astro/case-types.DS1EQ5yP.js +1 -0
- package/dist/_astro/composer-task.DJmluzPT.js +5 -0
- package/dist/_astro/export.joBT53eb.js +148 -0
- package/dist/_astro/fs-tools.3F9MFrLf.js +9 -0
- package/dist/_astro/{hydrate-cache.zljz1n5X.js → hydrate-cache.CmC22o_H.js} +1 -1
- package/dist/_astro/i18n.B3BVhlok.js +7 -0
- package/dist/_astro/index.astro_astro_type_script_index_0_lang.CM78W1qz.js +1 -0
- package/dist/_astro/jszip.min.Bh2Mgo40.js +2 -0
- package/dist/_astro/{lib.BQbwbnfE.js → lib.S37S0T6S.js} +1 -1
- package/dist/_astro/{open-docs-in-session.LWVC43xp.js → open-docs-in-session.B6uyOxPn.js} +1 -1
- package/dist/_astro/plugins.DYyAjBXb.js +1 -0
- package/dist/_astro/prompts-meta.C_MeYq8G.js +2 -0
- package/dist/_astro/{req-analysis.C1uUndMm.js → req-analysis.CkLx8c9E.js} +2 -2
- package/dist/_astro/{settings.HM3DiNh0.js → settings.BvxRxdqa.js} +2 -2
- package/dist/_astro/{spaces-client.CWqBZccW.js → spaces-client.Dy3tSPta.js} +1 -1
- package/dist/_astro/story-review.CGcusNKf.js +10 -0
- package/dist/_astro/{ui-auto-prompt.B09MVaTI.js → ui-auto-prompt.QcLCZoV6.js} +1 -1
- package/dist/_astro/update.DXCPfU4a.js +1 -0
- package/dist/_astro/{view-prefs.7wGuDpzi.js → view-prefs.D1snIG5o.js} +1 -1
- package/dist/case-exec/index.html +6 -6
- package/dist/cases/generate/index.html +5 -5
- package/dist/cases/library/index.html +6 -6
- package/dist/dashboard/index.html +6 -6
- package/dist/docs/changelog/index.html +58 -6
- package/dist/docs/install/index.html +5 -5
- package/dist/docs/manual/index.html +86 -50
- package/dist/index.html +1 -1
- package/dist/knowledge/index.html +6 -6
- package/dist/knowledge//345/212/237/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/347/274/226/345/206/231/350/247/204/350/214/203/index.html +5 -5
- package/dist/plugins/index.html +5 -5
- package/dist/pm/bugs/index.html +6 -6
- package/dist/pm/iterations/index.html +6 -6
- package/dist/pm/projects/detail/index.html +6 -6
- package/dist/pm/projects/index.html +6 -6
- package/dist/pm/requirements/index.html +6 -6
- package/dist/prompts/index.html +6 -6
- package/dist/reports/index.html +6 -6
- package/dist/requirement-analysis/index.html +6 -6
- package/dist/requirements/index.html +6 -6
- package/dist/tasks/index.html +6 -6
- package/dist/templates/index.html +6 -6
- package/dist/templates//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +5 -5
- package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +5 -5
- package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +5 -5
- package/dist/templates//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +5 -5
- package/dist/templates//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +5 -5
- package/dist/test-automation/index.html +6 -6
- package/dist/test-stats/index.html +6 -6
- package/dist/todos/index.html +6 -6
- package/dist/workbench/index.html +5 -5
- package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +47 -30
- package/lh-plugins/case-review-prompt.mjs +181 -0
- package/lh-plugins/lh-case-review.mjs +627 -0
- package/lh-plugins/lh-pm.mjs +21 -7
- package/lh-plugins/lh-req-analysis.mjs +63 -3
- package/lh-plugins/lh-story-review.mjs +98 -0
- package/lh-plugins/lh-test-points.mjs +98 -0
- package/lh-plugins/plugin-prompts.mjs +8 -0
- package/lh-plugins/req-analysis-prompt.mjs +8 -37
- package/lh-plugins/story-review-prompt.mjs +97 -0
- package/lh-plugins/test-points-prompt.mjs +88 -0
- package/package.json +1 -1
- package/dist/_astro/Base.UUIdmKid.css +0 -1
- package/dist/_astro/Base.astro_astro_type_script_index_0_lang.DSWudA4D.js +0 -1
- package/dist/_astro/CaseExecBoard.D8K4NzrB.js +0 -1
- package/dist/_astro/CaseGenerateApp.bZ_K72NQ.js +0 -9
- package/dist/_astro/CasesLibrary.Dhg2pdwU.js +0 -1
- package/dist/_astro/ChatApp.B6I3gGKI.js +0 -221
- package/dist/_astro/ColumnResize.BEkEW7qw.js +0 -1
- package/dist/_astro/DocsFileBrowser.DvBPLCEp.js +0 -1
- package/dist/_astro/ExcelFieldTags.De-C3dqn.js +0 -152
- package/dist/_astro/KnowledgeLibrary.BzFTmNwA.js +0 -1
- package/dist/_astro/NavLibraries.CVdolwYy.js +0 -1
- package/dist/_astro/OverflowHint.D6v4Uj2N.js +0 -1
- package/dist/_astro/PluginsPage.B8U4uvD2.js +0 -39
- package/dist/_astro/PluginsPage.v6afs984.js +0 -1
- package/dist/_astro/PmBugsBoard.CSIGq0wz.js +0 -1
- package/dist/_astro/PmIterationsBoard.BmBc90as.js +0 -1
- package/dist/_astro/PmProjectsBoard.DIVs_xJu.js +0 -1
- package/dist/_astro/PmRequirementsBoard.DcLiUhBe.js +0 -1
- package/dist/_astro/PmRequirementsBoard.N0LM5jHo.js +0 -1
- package/dist/_astro/PromptsLibrary.B1RVZqj8.js +0 -1
- package/dist/_astro/ReqAnalysisBoard.BIIUqGVh.js +0 -25
- package/dist/_astro/RequirementsLibrary.BZhxG9VU.js +0 -1
- package/dist/_astro/SearchableSelect.BIjXzTPD.js +0 -1
- package/dist/_astro/SelectDropdown.B3-XpBpn.js +0 -1
- package/dist/_astro/SettingsDialog.DILea5eO.js +0 -1
- package/dist/_astro/SpaceSwitcher.BeCumAuj.js +0 -7
- package/dist/_astro/TasksBoard.B3SzQ5bR.js +0 -1
- package/dist/_astro/TemplatesLibrary.Ci3yHQTr.js +0 -1
- package/dist/_astro/TestStatsBoard.CgVvwMzN.js +0 -1
- package/dist/_astro/Toast.R8_2OWRX.js +0 -1
- package/dist/_astro/TodosBoard.BNDF1iVZ.js +0 -1
- package/dist/_astro/UiAutoBoard.BNLRrunE.js +0 -9
- package/dist/_astro/app-config.Cq_F8I0l.js +0 -1
- package/dist/_astro/i18n.DPw-aTIZ.js +0 -7
- package/dist/_astro/index.astro_astro_type_script_index_0_lang.B9YrqBHf.js +0 -1
- package/dist/_astro/markdown-client.DRva7DS9.js +0 -58
- package/dist/_astro/plugins.CKkgnq4r.js +0 -1
- package/dist/_astro/prompts-meta.D_2wiFiH.js +0 -2
- package/dist/_astro/update.BSnBvaFF.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.
|
|
6
|
+
</script><script type="module" src="/_astro/Base.astro_astro_type_script_index_0_lang.CpzwEBjx.js"></script><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CO1cjG9V.js"></script><script>
|
|
7
7
|
(function () {
|
|
8
8
|
try {
|
|
9
9
|
// 配置按空间分键(`tw.app.config.v1::<spaceId>`),主题必须从同一个键读,
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
}
|
|
99
99
|
} catch (e) {}
|
|
100
100
|
})();
|
|
101
|
-
</script><link rel="stylesheet" href="/_astro/Base.
|
|
101
|
+
</script><link rel="stylesheet" href="/_astro/Base.VCz1UVxQ.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.13">v0.1.13<span class="tw-nav-brand-dot" id="tw-update-dot" role="button" tabindex="-1" aria-label="有新版本可更新" hidden></span></span></span></span></a></div></div><div class="tw-nav-space-slot"><div class="tw-nav-space tw-nav-space-ph" id="tw-nav-space-ph" aria-hidden="true"><div class="tw-nav-space-ph-box"><span class="tw-nav-space-ph-ico"></span><span class="tw-nav-space-ph-lines"><span class="tw-nav-space-ph-bar is-cap"></span><span class="tw-nav-space-ph-bar is-name"></span></span></div></div><style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(function(){let e=async e=>{await(await e())()};(self.Astro||(self.Astro={})).only=e,window.dispatchEvent(new Event(`astro:only`))})();</script><script>(function(){function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(t,n){if(e(t)!=`object`||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n||`default`);if(e(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(t)}function n(n){var r=t(n,`string`);return e(r)==`symbol`?r:r+``}function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let i=/* @__PURE__ */ new Set([`__proto__`,`constructor`,`prototype`]);{let e={0:e=>a(e),1:e=>n(e),2:e=>new RegExp(e),3:e=>new Date(e),4:e=>new Map(n(e)),5:e=>new Set(n(e)),6:e=>BigInt(e),7:e=>new URL(e),8:e=>new Uint8Array(e),9:e=>new Uint16Array(e),10:e=>new Uint32Array(e),11:e=>1/0*e},t=t=>{let[n,r]=t;return n in e?e[n](r):void 0},n=e=>e.map(t),a=e=>typeof e!=`object`||!e?e:Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t(n)]));class o extends HTMLElement{constructor(...e){super(...e),r(this,`Component`,void 0),r(this,`hydrator`,void 0),r(this,`hydrate`,async()=>{var e;if(!this.hydrator||!this.isConnected)return;let t=(e=this.parentElement)==null?void 0:e.closest(`astro-island[ssr]`);if(t){t.addEventListener(`astro:hydrate`,this.hydrate,{once:!0});return}let n=this.querySelectorAll(`astro-slot`),r={},i=this.querySelectorAll(`template[data-astro-template]`);for(let e of i){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`data-astro-template`)||`default`]=e.innerHTML,e.remove())}for(let e of n){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`name`)||`default`]=e.innerHTML)}let o;try{o=this.hasAttribute(`props`)?a(JSON.parse(this.getAttribute(`props`))):{}}catch(e){let t=this.getAttribute(`component-url`)||`<unknown>`,n=this.getAttribute(`component-export`);throw n&&(t+=` (export ${n})`),console.error(`[hydrate] Error parsing props for component ${t}`,this.getAttribute(`props`),e),e}await this.hydrator(this)(this.Component,o,r,{client:this.getAttribute(`client`)}),this.removeAttribute(`ssr`),this.dispatchEvent(new CustomEvent(`astro:hydrate`))}),r(this,`unmount`,()=>{this.isConnected||this.dispatchEvent(new CustomEvent(`astro:unmount`))})}disconnectedCallback(){document.removeEventListener(`astro:after-swap`,this.unmount),document.addEventListener(`astro:after-swap`,this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute(`await-children`)||document.readyState===`interactive`||document.readyState===`complete`)this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener(`DOMContentLoaded`,e),t.disconnect(),this.childrenConnectedCallback()},t=new MutationObserver(()=>{var t;((t=this.lastChild)==null?void 0:t.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue===`astro:end`&&(this.lastChild.remove(),e())});t.observe(this,{childList:!0}),document.addEventListener(`DOMContentLoaded`,e)}}async childrenConnectedCallback(){let e=this.getAttribute(`before-hydration-url`);e&&await import(e),this.start()}getRetryImportUrl(e){let t=new URL(e,document.baseURI);return t.searchParams.set(`astro-retry`,Date.now().toString()),t.toString()}async importWithRetry(e){try{return await import(e)}catch(t){return await new Promise(e=>setTimeout(e,1e3)),import(this.getRetryImportUrl(e))}}handleHydrationError(e){let t=this.getAttribute(`component-url`),n=new CustomEvent(`astro:hydration-error`,{cancelable:!0,bubbles:!0,composed:!0,detail:{error:e,componentUrl:t}});this.dispatchEvent(n)&&console.error(`[astro-island] Error hydrating ${t}`,e)}async start(){let e=JSON.parse(this.getAttribute(`opts`)),t=this.getAttribute(`client`);if(Astro[t]===void 0)window.addEventListener(`astro:${t}`,()=>this.start(),{once:!0});else try{await Astro[t](async()=>{let e=this.getAttribute(`renderer-url`);try{let[t,{default:n}]=await Promise.all([this.importWithRetry(this.getAttribute(`component-url`)),e?this.importWithRetry(e):Promise.resolve({default:()=>()=>{}})]),r=this.getAttribute(`component-export`)||`default`;if(r.includes(`.`)){this.Component=t;for(let e of r.split(`.`)){if(i.has(e)||!this.Component||typeof this.Component!=`object`&&typeof this.Component!=`function`||!Object.hasOwn(this.Component,e))throw Error(`Invalid component export path: ${r}`);this.Component=this.Component[e]}}else{if(i.has(r))throw Error(`Invalid component export path: ${r}`);this.Component=t[r]}return this.hydrator=n,this.hydrate}catch(e){return this.handleHydrationError(e),()=>{}}},e,this)}catch(e){this.handleHydrationError(e)}}attributeChangedCallback(){this.hydrate()}}r(o,`observedAttributes`,[`props`]),customElements.get(`astro-island`)||customElements.define(`astro-island`,o)}})();</script><astro-island uid="2wH2Dz" component-url="/_astro/SpaceSwitcher.BeCumAuj.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{"data-astro-transition-persist":[0,"astro-gyrtbwwo-1"]}" ssr client="only" opts="{"name":"SpaceSwitcher","value":"react"}" 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.CVdolwYy.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{"data-astro-transition-persist":[0,"astro-iywf7oe7-2"]}" ssr client="only" opts="{"name":"NavLibraries","value":"react"}" 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.15">v0.1.15<span class="tw-nav-brand-dot" id="tw-update-dot" role="button" tabindex="-1" aria-label="有新版本可更新" hidden></span></span></span></span></a></div></div><div class="tw-nav-space-slot"><div class="tw-nav-space tw-nav-space-ph" id="tw-nav-space-ph" aria-hidden="true"><div class="tw-nav-space-ph-box"><span class="tw-nav-space-ph-ico"></span><span class="tw-nav-space-ph-lines"><span class="tw-nav-space-ph-bar is-cap"></span><span class="tw-nav-space-ph-bar is-name"></span></span></div></div><style>astro-island,astro-slot,astro-static-slot{display:contents}</style><script>(function(){let e=async e=>{await(await e())()};(self.Astro||(self.Astro={})).only=e,window.dispatchEvent(new Event(`astro:only`))})();</script><script>(function(){function e(t){"@babel/helpers - typeof";return e=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},e(t)}function t(t,n){if(e(t)!=`object`||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,n||`default`);if(e(i)!=`object`)return i;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(n===`string`?String:Number)(t)}function n(n){var r=t(n,`string`);return e(r)==`symbol`?r:r+``}function r(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let i=/* @__PURE__ */ new Set([`__proto__`,`constructor`,`prototype`]);{let e={0:e=>a(e),1:e=>n(e),2:e=>new RegExp(e),3:e=>new Date(e),4:e=>new Map(n(e)),5:e=>new Set(n(e)),6:e=>BigInt(e),7:e=>new URL(e),8:e=>new Uint8Array(e),9:e=>new Uint16Array(e),10:e=>new Uint32Array(e),11:e=>1/0*e},t=t=>{let[n,r]=t;return n in e?e[n](r):void 0},n=e=>e.map(t),a=e=>typeof e!=`object`||!e?e:Object.fromEntries(Object.entries(e).map(([e,n])=>[e,t(n)]));class o extends HTMLElement{constructor(...e){super(...e),r(this,`Component`,void 0),r(this,`hydrator`,void 0),r(this,`hydrate`,async()=>{var e;if(!this.hydrator||!this.isConnected)return;let t=(e=this.parentElement)==null?void 0:e.closest(`astro-island[ssr]`);if(t){t.addEventListener(`astro:hydrate`,this.hydrate,{once:!0});return}let n=this.querySelectorAll(`astro-slot`),r={},i=this.querySelectorAll(`template[data-astro-template]`);for(let e of i){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`data-astro-template`)||`default`]=e.innerHTML,e.remove())}for(let e of n){let t=e.closest(this.tagName);t!=null&&t.isSameNode(this)&&(r[e.getAttribute(`name`)||`default`]=e.innerHTML)}let o;try{o=this.hasAttribute(`props`)?a(JSON.parse(this.getAttribute(`props`))):{}}catch(e){let t=this.getAttribute(`component-url`)||`<unknown>`,n=this.getAttribute(`component-export`);throw n&&(t+=` (export ${n})`),console.error(`[hydrate] Error parsing props for component ${t}`,this.getAttribute(`props`),e),e}await this.hydrator(this)(this.Component,o,r,{client:this.getAttribute(`client`)}),this.removeAttribute(`ssr`),this.dispatchEvent(new CustomEvent(`astro:hydrate`))}),r(this,`unmount`,()=>{this.isConnected||this.dispatchEvent(new CustomEvent(`astro:unmount`))})}disconnectedCallback(){document.removeEventListener(`astro:after-swap`,this.unmount),document.addEventListener(`astro:after-swap`,this.unmount,{once:!0})}connectedCallback(){if(!this.hasAttribute(`await-children`)||document.readyState===`interactive`||document.readyState===`complete`)this.childrenConnectedCallback();else{let e=()=>{document.removeEventListener(`DOMContentLoaded`,e),t.disconnect(),this.childrenConnectedCallback()},t=new MutationObserver(()=>{var t;((t=this.lastChild)==null?void 0:t.nodeType)===Node.COMMENT_NODE&&this.lastChild.nodeValue===`astro:end`&&(this.lastChild.remove(),e())});t.observe(this,{childList:!0}),document.addEventListener(`DOMContentLoaded`,e)}}async childrenConnectedCallback(){let e=this.getAttribute(`before-hydration-url`);e&&await import(e),this.start()}getRetryImportUrl(e){let t=new URL(e,document.baseURI);return t.searchParams.set(`astro-retry`,Date.now().toString()),t.toString()}async importWithRetry(e){try{return await import(e)}catch(t){return await new Promise(e=>setTimeout(e,1e3)),import(this.getRetryImportUrl(e))}}handleHydrationError(e){let t=this.getAttribute(`component-url`),n=new CustomEvent(`astro:hydration-error`,{cancelable:!0,bubbles:!0,composed:!0,detail:{error:e,componentUrl:t}});this.dispatchEvent(n)&&console.error(`[astro-island] Error hydrating ${t}`,e)}async start(){let e=JSON.parse(this.getAttribute(`opts`)),t=this.getAttribute(`client`);if(Astro[t]===void 0)window.addEventListener(`astro:${t}`,()=>this.start(),{once:!0});else try{await Astro[t](async()=>{let e=this.getAttribute(`renderer-url`);try{let[t,{default:n}]=await Promise.all([this.importWithRetry(this.getAttribute(`component-url`)),e?this.importWithRetry(e):Promise.resolve({default:()=>()=>{}})]),r=this.getAttribute(`component-export`)||`default`;if(r.includes(`.`)){this.Component=t;for(let e of r.split(`.`)){if(i.has(e)||!this.Component||typeof this.Component!=`object`&&typeof this.Component!=`function`||!Object.hasOwn(this.Component,e))throw Error(`Invalid component export path: ${r}`);this.Component=this.Component[e]}}else{if(i.has(r))throw Error(`Invalid component export path: ${r}`);this.Component=t[r]}return this.hydrator=n,this.hydrate}catch(e){return this.handleHydrationError(e),()=>{}}},e,this)}catch(e){this.handleHydrationError(e)}}attributeChangedCallback(){this.hydrate()}}r(o,`observedAttributes`,[`props`]),customElements.get(`astro-island`)||customElements.define(`astro-island`,o)}})();</script><astro-island uid="2wH2Dz" component-url="/_astro/SpaceSwitcher.DMoqOVpS.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{"data-astro-transition-persist":[0,"astro-gyrtbwwo-1"]}" ssr client="only" opts="{"name":"SpaceSwitcher","value":"react"}" 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.D1J9BwYo.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{"data-astro-transition-persist":[0,"astro-iywf7oe7-2"]}" ssr client="only" opts="{"name":"NavLibraries","value":"react"}" 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.
|
|
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.CnBZRaWE.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{}" ssr client="load" opts="{"name":"SettingsDialog","value":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 class="tw-workbench-host"><astro-island uid="1DjyQy" component-url="/_astro/ChatApp.
|
|
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 class="tw-workbench-host"><astro-island uid="1DjyQy" component-url="/_astro/ChatApp.7piDha-y.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{"slashDocs":[1,[[0,{"collection":[0,"knowledge"],"id":[0,"功能测试用例编写规范"],"title":[0,"功能测试用例编写规范"],"category":[0,"测试规范"],"description":[0,"统一功能测试用例编写口径与质量标准"],"format":[0,"md"],"path":[0,"知识库管理/功能测试用例编写规范.md"]}],[0,{"collection":[0,"templates"],"id":[0,"功能测试报告/功能测试报告模板"],"title":[0,"功能测试报告模板"],"category":[0,"功能测试报告"],"description":[0,"版本迭代功能测试报告结构模板,含执行统计、缺陷分析与上线风险评估。"],"format":[0,"md"],"path":[0,"测试模板库/功能测试报告/功能测试报告模板.md"]}],[0,{"collection":[0,"templates"],"id":[0,"接口测试报告/接口测试报告模板"],"title":[0,"接口测试报告模板"],"category":[0,"接口测试报告"],"description":[0,"接口测试报告结构模板,含接口覆盖统计、失败分析与性能基线记录。"],"format":[0,"md"],"path":[0,"测试模板库/接口测试报告/接口测试报告模板.md"]}],[0,{"collection":[0,"templates"],"id":[0,"性能测试报告/性能测试报告模板"],"title":[0,"性能测试报告模板"],"category":[0,"性能测试报告"],"description":[0,"性能测试报告结构模板,含负载模型、结果汇总、资源监控与瓶颈分析。"],"format":[0,"md"],"path":[0,"测试模板库/性能测试报告/性能测试报告模板.md"]}],[0,{"collection":[0,"templates"],"id":[0,"性能测试用例/性能测试用例模板"],"title":[0,"性能测试用例(场景)模板"],"category":[0,"性能测试用例"],"description":[0,"性能测试场景设计模板,含负载模型、加压策略与通过标准的定义方式。"],"format":[0,"md"],"path":[0,"测试模板库/性能测试用例/性能测试用例模板.md"]}],[0,{"collection":[0,"templates"],"id":[0,"自动化测试用例/自动化测试用例模板"],"title":[0,"自动化测试用例模板"],"category":[0,"自动化测试用例"],"description":[0,"自动化脚本设计模板,强调步骤稳定、断言明确、数据可参数化与环境依赖。"],"format":[0,"md"],"path":[0,"测试模板库/自动化测试用例/自动化测试用例模板.md"]}]]]}" ssr client="only" opts="{"name":"ChatApp","value":"react"}"></astro-island></div></main><astro-island uid="1ae4mb" component-url="/_astro/Toast.BO2NFckG.js" component-export="GlobalToastHost" renderer-url="/_astro/client.BHNTqLjv.js" props="{"data-astro-transition-persist":[0,"astro-34g7cspi-4"]}" ssr client="only" opts="{"name":"GlobalToastHost","value":"react"}" data-astro-transition-persist="astro-34g7cspi-4"></astro-island></div><script>
|
|
475
475
|
(function () {
|
|
476
476
|
/**
|
|
477
477
|
* 切页滚回顶部。
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
|
|
167
167
|
| 库 | 操作 |
|
|
168
168
|
| ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
169
|
-
| 用例管理 |
|
|
169
|
+
| 用例管理 | 双击本地打开;批量删除;「在会话中打开」;开启评审插件后多出「评审」列与「评审」按钮(见下节) |
|
|
170
170
|
| 提示词管理 | 双击本地打开;删除(系统提示词不可删;插件开启期间,插件引用的提示词也不可删);「关联插件」列标出归属;行内可复制 / 改名(悬停文件名右侧出现改名按钮,重名会拦下);「生成提示词」跳转工作台 |
|
|
171
171
|
| 知识库管理 | 双击本地打开;批量删除;「在会话中打开」;「生成知识库」跳转工作台 |
|
|
172
172
|
| 需求文档库 | 新建文件夹 / 上传文件(`.md` / `.txt` / `.docx`);单击预览,双击本地打开;删除 |
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
|
|
175
175
|
> 双击本地打开、读写文件依赖本地文件服务(`lantern web` 或 `pnpm dev`);静态站仅能浏览与下载。
|
|
176
176
|
|
|
177
|
-
用例管理 / 提示词管理 / 知识库管理的列表都支持搜索与「按修改时间 /
|
|
177
|
+
用例管理 / 提示词管理 / 知识库管理的列表都支持搜索与「按修改时间 / 按文件名」排序;**搜索词与排序方式会记住**,刷新或重新进入页面仍是上次的样子(三个库各记各的,按当前数据空间分开存)。列宽也能调:拖动表头「评审 / 创建时间 / 修改时间 / 大小 / 操作」的右边缘改宽度;文件名那一列自动吃掉剩余宽度,调完不会在右边留空。列宽按库分别记住(`docs:cases:cols` 这类 key),刷新后保持。勾选列与文件名贴左固定、操作列贴右固定,横向滚动时不会滚丢;滚到哪儿也记着,刷新或切页回来仍是上次的位置。
|
|
178
178
|
|
|
179
179
|
提示词列表在「文件名」右侧多一列**关联插件**:`工作汇报提示词.md` 显示「工作汇报」、`Playwright提示词.md` 显示「自动化测试」、`默认提示词.md` 显示「系统默认」,其它提示词一律显示「未关联」。**按实际挂载的也算关联**:在自动化测试「挂载提示词」里给某个项目选了 `pytest提示词.md` 后,这里同样显示「自动化测试」;在工作汇报页把提示词换成自定义文件,则显示「工作汇报」。各项目各挂各的,互不影响。只有**此刻真的被挂载**的那份才会再标一个「引用中」——一个项目只挂一份,换掉挂载后上一份立刻变回普通提示词(`Playwright提示词.md` 没人挂时只显示「自动化测试」,不带「引用中」)。`引用中` 的行 `删除 / 改名` 置灰并锁定(服务端也会拒绝,避免绕过界面),先换挂载或关掉对应插件再操作;插件自带的那份提示词在插件开启期间也保持锁定(插件要拿它做种子 / 模板),关掉插件后可删,再打开会重新生成种子。文件没删的话,再次打开插件会继续引用原来那份,不会被模板盖掉。
|
|
180
180
|
|
|
@@ -208,33 +208,37 @@ version: '1.0' # 可选
|
|
|
208
208
|
工作台会话栏「新会话」下方点「插件」进入:
|
|
209
209
|
|
|
210
210
|
- **我的插件**(`/plugins/`):分「扩展插件 / 会话插件 / 全局插件」三个 Tab(默认打开扩展插件),Tab 标题带数量;点击卡片展开详情。扩展为可配置项,可开关;开关状态存本机。插件随仓库代码发布,不提供远程安装 / 更新。**Tab 记忆**:切到哪个 Tab,刷新或重新进入页面仍停在哪个 Tab,选择按当前数据空间记在浏览器本地。
|
|
211
|
-
-
|
|
212
|
-
|
|
213
|
-
| 分类 | 插件 | 新建空间默认 | 说明
|
|
214
|
-
| ---------- | ------------ | ------------ |
|
|
215
|
-
|
|
|
216
|
-
|
|
|
217
|
-
|
|
|
218
|
-
|
|
|
219
|
-
|
|
|
220
|
-
|
|
|
221
|
-
|
|
|
222
|
-
|
|
|
223
|
-
|
|
|
224
|
-
|
|
|
225
|
-
|
|
|
226
|
-
|
|
|
227
|
-
|
|
|
228
|
-
|
|
|
229
|
-
|
|
|
230
|
-
|
|
|
231
|
-
|
|
|
232
|
-
|
|
|
233
|
-
|
|
|
234
|
-
|
|
|
235
|
-
|
|
|
236
|
-
|
|
|
237
|
-
|
|
|
211
|
+
- 扩展插件按「内置插件 / 测试技能 / 需求管理 / 记忆与检索 / 待办与效率 / 项目管理 / 仪表盘 / 开发工具」分组展示(页面上只出现有插件的分类),分类标题带数量,可点击折叠 / 展开;分类与插件注册表的 `category` 字段一致。
|
|
212
|
+
|
|
213
|
+
| 分类 | 插件 | 新建空间默认 | 说明 |
|
|
214
|
+
| ---------- | ------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
215
|
+
| 内置插件 | 提示词管理 | 开(内置) | 侧栏进入提示词库,并维护当前空间的「默认提示词」;每个空间都需要,因此常开不可关闭 |
|
|
216
|
+
| 内置插件 | 生成提示词 | 关 | 配置类型后对话生成提示词,质检通过写入 `提示词管理/`(需本地服务) |
|
|
217
|
+
| 测试技能 | 用例管理 | 关 | 侧栏进入用例库;关闭后入口隐藏,「生成测试用例」「用例质量评审」「场景遗漏补全」一并关闭;磁盘文件仍保留 |
|
|
218
|
+
| 测试技能 | 生成测试用例 | 关 | 配置类型 / 输出格式 / 需求 / 模板 / 提示词后对话生成用例,写入 `用例管理/`(需本地服务落盘) |
|
|
219
|
+
| 测试技能 | 知识库管理 | 关 | 侧栏进入知识库;关闭后入口隐藏,「生成知识库」一并关闭;磁盘文件仍保留 |
|
|
220
|
+
| 测试技能 | 生成知识库 | 关 | 配置分类后对话生成规范 / 方法论等,质检通过写入 `知识库管理/`(需本地服务) |
|
|
221
|
+
| 测试技能 | 测试模板库 | 关 | 侧栏进入测试模板库;关闭后入口隐藏,生成用例时不再选用模板;磁盘文件仍保留 |
|
|
222
|
+
| 测试技能 | 用例质量评审 | 关 | 不新增侧栏入口:用例管理文件行多出「评审」列与「评审」按钮,抽屉里逐条判「可用 / 待修改 / 错误无效」、五维打分,并给扣分原因与可直接照改的建议;报告存 `用例评审/用例评审.json`,可导出 Markdown。开启「用例管理」时默认一并打开,也可单独关掉(需本地服务) |
|
|
223
|
+
| 测试技能 | 场景遗漏补全 | 关 | 不新增侧栏入口:评审抽屉多出「场景补全」Tab,按非功能 / 安全边界 / 兼容性 / 隐藏业务规则挖漏测场景,勾选后把建议带进这条用例的工作台会话写回原文件(写前自动备份);开启「用例管理」时默认一并打开(需本地服务) |
|
|
224
|
+
| 测试技能 | 测试统计 | 关 | 侧栏进入测试统计:按当前日期 + 测试统计维度记录数量,维度可搜索或直接创建(需本地服务) |
|
|
225
|
+
| 测试技能 | 用例执行统计 | 关 | 侧栏进入用例执行统计:按项目记录用例总数 / 待执行 / 已执行,自动算当前剩余与执行比例(需本地服务) |
|
|
226
|
+
| 测试技能 | 自动化测试 | 关 | 侧栏进入自动化测试:自动识别并挂载 Playwright / pytest / Selenium 项目,按项目自带任务运行,运行 / 停止用例、实时日志与 HTML 报告;「生成」Tab 先出可编辑步骤计划、再由 AI 驱动浏览器绑定定位器,写入时一次生成 spec + 页面对象 + 登录态文件(需本地服务) |
|
|
227
|
+
| 需求管理 | 需求文档库 | 关 | 侧栏进入需求文档库;关闭后入口隐藏,生成用例时不再引用需求文档;磁盘文件仍保留 |
|
|
228
|
+
| 需求管理 | 需求分析 | 关 | 侧栏进入需求分析:从需求文档库取原始需求,拆成结构化用户故事(角色 / 前置 / 主流程 / 替代 / 异常 / 后置 / 验收),再跑规则 + 模型体检,给出覆盖率矩阵与缺口清单,勾选缺口可让模型补写(需本地服务) |
|
|
229
|
+
| 需求管理 | 用户故事审查 | 关 | 需求分析页多出「用户故事审查」按钮与「审查结果」Tab,按 INVEST 校验拆好的用户故事,指出缺口与改法;开启「需求分析」时默认一并打开(需本地服务) |
|
|
230
|
+
| 需求管理 | 生成测试点 | 关 | 需求条目下多出「测试点」Tab,按功能 / 边界值 / 异常 / 业务规则 / 非功能五维拆测试点并标 P0–P3,可导出 XMind 与 Markdown;开启「需求分析」时默认一并打开(需本地服务) |
|
|
231
|
+
| 记忆与检索 | 知识库检索 | 关 | 工作台输入 `@` 引用 `知识库管理/`、`测试模板库/` 与工作区文档 |
|
|
232
|
+
| 记忆与检索 | 会话记忆 | 关 | 长期记忆 / 项目关键 / 项目日志等记忆轨 + 待确认队列;`.lantern/local/memories/`(需本地服务) |
|
|
233
|
+
| 待办与效率 | 任务管理 | 关 | 侧栏进入任务列表:任务池 / 进行中 / 已完成 / 已关闭 / 已取消,自动汇总任务下待办的数量与完成进度(需本地服务) |
|
|
234
|
+
| 待办与效率 | 待办事项 | 关 | 侧栏进入待办列表:筛选、行内改状态、手动增删改;工作台会话可用工具记录同一份待办(需本地服务) |
|
|
235
|
+
| 待办与效率 | 工作汇报 | 关 | 侧栏进入工作汇报:打开时生成「工作汇报提示词.md」;汇报文件写入后才出现 `工作汇报/日报 · 周报 · 月报`;页面按类型列出汇报文件,右上角下拉可换提示词(需本地服务) |
|
|
236
|
+
| 项目管理 | 项目列表 | 关 | 侧栏进入项目列表:项目卡片、规划 / 进行 / 归档状态、迭代 / 需求 / 缺陷汇总,支持搜索、归档与删除(需本地服务) |
|
|
237
|
+
| 项目管理 | 迭代管理 | 关 | 侧栏进入迭代管理:按项目维护迭代周期与状态,按日期计算进度、标出逾期(需同时开启「项目列表」;需本地服务) |
|
|
238
|
+
| 项目管理 | 需求管理 | 关 | 侧栏进入需求管理:需求编号 `REQ-###`、优先级 / 状态,可关联迭代(需同时开启「项目列表」;需本地服务) |
|
|
239
|
+
| 项目管理 | 缺陷管理 | 关 | 侧栏进入缺陷管理:缺陷编号 `BUG-###`、缺陷描述、附件上传(文件 / 图片),状态可行内改(需同时开启「项目列表」;需本地服务) |
|
|
240
|
+
| 仪表盘 | 仪表盘 | 关 | 侧栏进入仪表盘:聚合待办 / 任务 / 项目 / 测试统计的 12 张卡片,12 列自由画布可拖位置、拖右下角改宽高,右上角「编辑组件」增减(需本地服务) |
|
|
241
|
+
| 开发工具 | 插件开发 | 关 | 固定提示词开发扩展插件:先评估并用选项确认,确认后才改代码,完成后并入「扩展插件」;开发文档库、用例评审这类新插件也走这里(需本地服务) |
|
|
238
242
|
|
|
239
243
|
> **新建空间默认开启「提示词管理」,其余插件默认关闭**:每个空间都会带上自己的「默认提示词.md」,因此提示词管理是内置常开项;其余入口与「生成」能力仍要在「我的插件」里按分类手动开启,已有空间也保持原开关。种子文件(默认提示词、模板)不会让其它插件自动打开,只有用户自己放进空间的内容才会触发首次识别。
|
|
240
244
|
|
|
@@ -257,7 +261,7 @@ version: '1.0' # 可选
|
|
|
257
261
|
- 抽屉里的「待办状态」整行都可点:点击范围一直延伸到「待办名称」输入框的右边界,胶囊只是选中值的样子,点行的任意位置都会展开状态选项。
|
|
258
262
|
- 行尾的展开按钮可用同一个抽屉回看 / 修改整条记录;抽屉里的「待办周期」「剩余天数」是只读派生值,会随日期即时计算。
|
|
259
263
|
- 顶部可搜索,并按紧急程度筛选;支持批量删除,行尾「操作」列可删除单条,都会二次弹窗确认;表格右侧列较多时可横向滚动。**搜索词与紧急程度筛选会记住**(分组方式同样),刷新或重新进入页面仍是上次的样子,按当前数据空间存在浏览器本地。
|
|
260
|
-
- 列宽可拖:把鼠标放到表头字段的右边缘,出现竖线后左右拖即可调整;默认宽度就是设计稿宽度。调过的列宽存在浏览器本地(localStorage
|
|
264
|
+
- 列宽可拖:把鼠标放到表头字段的右边缘,出现竖线后左右拖即可调整;默认宽度就是设计稿宽度。调过的列宽存在浏览器本地(localStorage),刷新、切换页面后保持,不会写进数据空间。勾选列、行号列与「待办名称」贴左固定,「操作」列贴右固定;横向滚出去之后固定列边缘才出现一条细竖线做区分,滚回左端即收起。横向滚动位置同样会被记住。
|
|
261
265
|
- 新增行没有任何内容时,点页面其它位置会自动收起;已经填了名称则点空白处(或回车)即自动保存,不再有单独的 ✓ / ✕ 按钮。
|
|
262
266
|
- 「我的工作台」对话上方的 Tab 里有「待办」(待办插件开启时,排在「回合」右侧):默认「全部待办」,按 已逾期 / 今天截止 / 接下来 / 没有截止日期 / 已完成 分桶(今日与其它待办都在里面);也可只看「未完成」或「已完成」。每行显示待办名称、紧急程度,以及第二行的截止日期、剩余天数(逾期会标红)和所属任务;点左侧圆圈即可标记完成 / 恢复,右上角「打开待办页」跳到完整表格。停在 Tab 上每 15 秒自动刷新,AI 在会话里写入后不用手动刷。
|
|
263
267
|
- 输入框左侧「+」→「计划」下面会按插件开关给出「待办」「任务」两个手动入口(对应插件关闭时入口直接隐藏,不会触发新增):点开后弹出同一张确认卡片,手动入口的最后一个按钮是「提交」。待办分两页:第一页填待办自身字段(名称 / 状态 / 紧急程度 / 开始日期 / 截止日期 / 备注,开始 / 截止默认今天),第二页选「所属任务」并只读展示该任务的名称、状态、紧急程度与起止日期;选中任务后,任务有值的开始日期 / 截止日期 / 紧急程度会自动带到第一页(紧急程度仅在待办未设置时带出),仍可再改。任务没有所属任务,一页填完(名称 / 状态 / 紧急程度 / 开始日期 / 截止日期 / 备注)。填好「提交」直接落库,不经过模型;点「取消」或点卡片外面任意位置(包括切到别的 Tab)只会播放收起动画并放弃这次新增,不会写入待办 / 任务。
|
|
@@ -402,6 +406,19 @@ version: '1.0' # 可选
|
|
|
402
406
|
- **提示词**:打开开关时往当前空间的 `提示词管理/需求分析提示词.md` 写一份种子,分「拆解 / 体检 / 补写」三段(占位符 `{{source}}` / `{{outline}}` / `{{stories}}` / `{{gaps}}`)。**你改过的内容不会被覆盖**,没人改过的种子会跟着插件内置模板升级;插件开启期间这份文件不可删除 / 改名,关掉插件后可以删,再打开会重新生成种子。读不到「## 拆解」段落时页面会提示去补,也不会偷偷用兜底文案顶上。
|
|
403
407
|
- 拆解 / 体检 / 补写都走当前配置的模型(「模型配置」里那套 BYOK),没配模型时按钮会拦下来并提示先配置。
|
|
404
408
|
|
|
409
|
+
### 用例质量评审与场景遗漏补全
|
|
410
|
+
|
|
411
|
+
「我的插件」→「测试技能」→「用例质量评审 / 场景遗漏补全」开启后,不新增侧栏入口,能力长在「用例管理」里:文件行的「评审」列显示上次分数、补全条数与是否过期,右侧「评审」按钮打开评审抽屉。两个插件都跟随「用例管理」默认一并打开,也可单独关掉;关掉后入口隐藏,已生成的报告仍留在磁盘上。
|
|
412
|
+
|
|
413
|
+
- **抽屉三个 Tab**:质量评审 / 场景补全 / 用例表格。页头显示文件名、对照需求(按文件名自动猜一个,可换)、模型是否就绪与「开始评审 / 重新评审」「停止」「导出 Markdown」。
|
|
414
|
+
- **质量评审**:规则 + 模型两层。规则层先在本地算七项量化指标(总数 / 字段完整率 / 步骤可执行率 / 预期可判定率 / 需求覆盖率 / 重复率 / 优先级合规率)与硬伤(标题 / 步骤 / 预期为空或写「同上」、编号重复等);模型层逐条给五维分(需求覆盖 25% / 步骤可执行 25% / 预期可判定 20% / 数据与边界 15% / 规范完整 15%)与扣分原因、可直接照改的建议。
|
|
415
|
+
- **判定怎么来的**:总分 = 各维度得分 × 权重求和;`≥ 85` 可用、`60–84` 待修改、`< 60` 错误无效。模型可以判「错误无效」,但必须给出 `hard` 证据(与需求哪条冲突 / 和哪条重复),只给低分不给证据时按分数算——避免出现「86 分 · 错误无效」这种自相矛盾的结果。规则命中的硬伤模型不能推翻。
|
|
416
|
+
- **逐条明细**:每条一行显示判定、编号、标题、得分与「详情」;悬停行时标题右侧出现「修改」,带着编号、扣分原因与建议跳到这条用例绑定的工作台会话(没有会话就新建),由模型按文件表头改原文件。顶部可筛「可用 / 待修改 / 错误无效」、搜索编号或标题、按分数升序,也可点「批量修改」把当前筛选出的待修改项一次交给工作台。展开详情可看五维分与每条扣分原因。
|
|
417
|
+
- **用例表格**:固定六列(编号 / 标题 / 步骤 / 预期 / 判定 / 建议),只读对照,步骤与预期默认两行、超出省略号,悬停看全文;拖动表头右边缘可调列宽。表格里不放操作按钮,改用例回「用例管理」或到逐条明细点「修改」。
|
|
418
|
+
- **场景补全**:专挖人工容易漏的场景,按非功能 / 安全边界与容错 / 兼容性 / 隐藏业务规则四类给出「为什么容易漏 + 建议用例(前置 / 步骤 / 预期 / 优先级)」;勾选后点「写回用例」,把建议带进这条用例绑定的工作台会话补进原文件,写前自动备份到 `<空间>/.lantern/local/case-review/backup/`。场景补全同样有进度日志与停止。
|
|
419
|
+
- **数据位置**:报告存 `<空间>/用例评审/用例评审.json`,按用例文件路径分条;用例文件被改过会把报告标成「可能已过期」,重新评审即刷新。
|
|
420
|
+
- **提示词**:开启时在「提示词管理」写一份 `用例质量评审提示词.md` / `场景遗漏补全提示词.md`(已存在不覆盖,插件开启期间不可删)。改过的内容不会被覆盖,没改过的种子跟着内置模板升级。
|
|
421
|
+
|
|
405
422
|
### 仪表盘
|
|
406
423
|
|
|
407
424
|
「我的插件」→「仪表盘」→「仪表盘」开启后,侧栏出现「仪表盘」入口(`/dashboard/`;新空间默认在最前面,已有空间按已保存的菜单顺序追加,可在侧栏拖动调整)。
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 「用例质量评审」与「场景遗漏补全」的提示词文件:种子正文 + 分段解析。
|
|
3
|
+
*
|
|
4
|
+
* 文件放在当前空间的「提示词管理」里,由插件开关联动:
|
|
5
|
+
* 打开插件时缺就补种子(没人改过时会跟着内置模板升级),插件开启期间不允许删除 / 改名。
|
|
6
|
+
* 每次评审 / 探测 / 补全前各读一次,改完提示词不用重启服务。
|
|
7
|
+
*
|
|
8
|
+
* - 用例质量评审提示词.md:一段 `## 评审`
|
|
9
|
+
* 占位符:{{cases}} 待评审用例、{{requirement}} 对照需求、{{template}} 用例模板字段
|
|
10
|
+
* - 场景遗漏补全提示词.md:两段 `## 探测`、`## 补全`
|
|
11
|
+
* 占位符:{{cases}} 已有用例、{{requirement}} 对照需求、{{fields}} 字段对照、{{selected}} 勾选待补全项
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { BLINDSPOT_PROMPT_FILE, CASE_REVIEW_PROMPT_FILE } from './plugin-prompts.mjs';
|
|
15
|
+
|
|
16
|
+
export { BLINDSPOT_PROMPT_FILE, CASE_REVIEW_PROMPT_FILE };
|
|
17
|
+
|
|
18
|
+
export const REVIEW_SECTION = '评审';
|
|
19
|
+
export const DETECT_SECTION = '探测';
|
|
20
|
+
export const COMPLETE_SECTION = '补全';
|
|
21
|
+
|
|
22
|
+
export const CASE_REVIEW_PROMPT_TEMPLATE = `# 用例质量评审提示词
|
|
23
|
+
|
|
24
|
+
> 这份提示词由「用例质量评审」插件生成并引用。
|
|
25
|
+
> 插件开启期间不能删除本文件;关闭插件后可以删掉,再次打开会重新生成。
|
|
26
|
+
> 可用占位符:\`{{cases}}\` 待评审用例、\`{{requirement}}\` 对照需求、\`{{template}}\` 用例模板字段、\`{{fields}}\` 字段对照。
|
|
27
|
+
|
|
28
|
+
## 评审
|
|
29
|
+
|
|
30
|
+
你是 AI 生成用例的最后一道质检关。只做判定、打分与提出改进建议,不要改写用户的用例。
|
|
31
|
+
|
|
32
|
+
工作方式(必须遵守):
|
|
33
|
+
1. 先把全部用例通读一遍,再逐条判定;不要只看单条就下结论。
|
|
34
|
+
2. 先看「字段对照」:用例文件的表头常是项目自己的叫法(如标题列是 \`测试项目\`、预期列是 \`期望内容标准\`),这些列的内容就是标题 / 预期,**不要**因为字段名不叫「用例标题」就判为空。
|
|
35
|
+
3. 调用 \`case_save_review\` 一次提交整批结果,不要一条调一次。
|
|
36
|
+
4. 七项量化指标(总数 / 字段完整率 / 步骤可执行率 / 预期可判定率 / 需求覆盖率 / 重复率 / 优先级合规率)由系统按规则计算,不要重复报,也不要自己算。
|
|
37
|
+
5. 提交后用中文简述:一共几条、三档各几条、最该先改的几条是哪几条。
|
|
38
|
+
|
|
39
|
+
三档判定(系统最终按下面的规则重算,你给的时候要自洽):
|
|
40
|
+
- 可用(usable):维度加权分 ≥ 85,照着能执行,预期能判定;小瑕疵不影响使用。
|
|
41
|
+
- 待修改(revise):加权分 60–84,能看懂但执行会卡住或结论会扯皮(步骤跳步、预期模糊、前置缺失)。
|
|
42
|
+
- 错误无效(invalid):加权分 < 60,或命中下面的硬伤。系统按「需求覆盖 25 / 步骤可执行 25 / 预期可判定 20 / 数据与边界 15 / 规范完整 15」加权算分,所以你想判无效时,必须把相关维度的分压低,或者给出 \`hard\` 证据。
|
|
43
|
+
|
|
44
|
+
硬伤(命中任意一条直接判「错误无效」,不受分数影响):
|
|
45
|
+
- 用例标题 / 测试步骤 / 预期结果为空,或只有「同上」「同前」这类占位。
|
|
46
|
+
- 与对照需求冲突(角色、字段、状态、分支与需求不一致)。
|
|
47
|
+
- 预期结果与测试步骤无关(步骤做 A,预期写 B)。
|
|
48
|
+
- 与另一条用例完全重复(标题与步骤一致),却又占着不同编号。
|
|
49
|
+
- 命中硬伤时**必须**在 \`hard\` 里写一句证据(与需求哪条冲突 / 和哪条用例重复);只写「有硬伤」不算证据。
|
|
50
|
+
- 不要用 \`verdict\` 表达严重程度:分数 86 却给 invalid 会被系统按 86 分重算,页面只会出现自相矛盾的结果。
|
|
51
|
+
|
|
52
|
+
五个维度各自 0–100 分(系统会按权重 需求覆盖 25 / 步骤可执行 25 / 预期可判定 20 / 数据与边界 15 / 规范完整 15 合成总分):
|
|
53
|
+
- 需求覆盖:这条用例对应的需求点是否明确、是否覆盖主流程与关键分支。挂了对照需求时看是否真能对上;没挂需求时看用例自身是否写清了模块与业务目的。
|
|
54
|
+
- 步骤可执行:是否一步一个动作、有编号、可照着点;跳步(少了进入路径)、把多个校验塞成一步、只有一句「验证功能」都要扣分。
|
|
55
|
+
- 预期可判定:预期是否可被第三方判定。写「正常」「正确」「符合预期」「显示成功」这类没有状态码 / 具体文案 / 具体数值的,一律扣分;有阈值就应写出数值。
|
|
56
|
+
- 数据与边界:前置条件是否给出需要的账号、角色、数据与状态;是否覆盖空值、上下限、刚好越界、重复提交等边界。
|
|
57
|
+
- 规范完整:编号格式、标题是否一句话说清、优先级与类型是否填、字段是否与本项目模板一致。
|
|
58
|
+
|
|
59
|
+
每条提交这些字段:
|
|
60
|
+
- \`no\`:用例编号(原样,不要改写)。
|
|
61
|
+
- \`verdict\`:usable / revise / invalid 之一。
|
|
62
|
+
- \`dimensions\`:五个维度的分数 { coverage, steps, expected, data, convention },0–100 的整数。
|
|
63
|
+
- \`deductions\`:扣分项数组,每项 { dimension, points, reason, suggestion }。
|
|
64
|
+
- \`points\`:这一项扣了几分(正整数,合计不超过该维度满分)。
|
|
65
|
+
- \`reason\`:具体到位置与原因(「第 3 步没有写清提交后跳哪个页面」),不要写「不够详细」这种空话。
|
|
66
|
+
- \`suggestion\`:要补什么(「在第 3 步后补:点击提交,页面跳转到订单详情,状态变为已支付」)。
|
|
67
|
+
- 至少给 1 条扣分项;判「可用」的用例可以只给 0–1 条小建议。
|
|
68
|
+
- 判「错误无效 / 待修改」的用例,\`suggestion\` 要写成**可以直接照着改的一句话**(补什么、补在哪一步、改成什么),因为用户会点「修改」把这条交给 AI 去改文件;不要写「需要完善」这类没动作的建议。
|
|
69
|
+
|
|
70
|
+
宁可少报也不要编:用例里没有的信息不要当成缺陷;不确定的写在 \`suggestion\` 里让人确认。最后在 \`summary\` 里用两三句话给整体结论与本批最该先改的三条。
|
|
71
|
+
`;
|
|
72
|
+
|
|
73
|
+
export const BLINDSPOT_PROMPT_TEMPLATE = `# 场景遗漏补全提示词
|
|
74
|
+
|
|
75
|
+
> 这份提示词由「场景遗漏补全」插件生成并引用。
|
|
76
|
+
> 插件开启期间不能删除本文件;关闭插件后可以删掉,再次打开会重新生成。
|
|
77
|
+
> 可用占位符:\`{{cases}}\` 已有用例、\`{{requirement}}\` 对照需求、\`{{fields}}\` 字段对照、\`{{selected}}\` 勾选待补全项。
|
|
78
|
+
|
|
79
|
+
## 探测
|
|
80
|
+
|
|
81
|
+
你是专门找测试盲区的评审人。输入是已有用例(可能还有对照需求),找出「人工最容易漏、但真会出事」的场景。
|
|
82
|
+
|
|
83
|
+
工作方式(必须遵守):
|
|
84
|
+
1. 先通读全部已有用例,列出已经覆盖到的场景,再找缺口;开工前先看「字段对照」,按这份文件的真实表头读标题 / 步骤 / 预期。
|
|
85
|
+
2. 调用 \`case_save_blindspots\` 一次提交全部盲区,不要一条调一次。
|
|
86
|
+
3. 已有用例已经覆盖到的场景不要再报;同一个场景只报一次,归到最贴近的一类。
|
|
87
|
+
4. 每条都要能说清「为什么人工容易漏」,说不清就不要报。宁缺不凑数,四类合计 8–20 条为宜。
|
|
88
|
+
5. 提交后用中文简述:一共几条、四类各几条、风险最高的三条是什么。
|
|
89
|
+
|
|
90
|
+
四类盲区(每条标明 category):
|
|
91
|
+
- nonfunctional 非功能:响应时间与超时、并发与大数量(一次导入几千条 / 列表几万行)、长时间运行与内存、重试与限流、弱网与断网恢复。
|
|
92
|
+
- security 安全边界与容错:越权访问(换角色 / 改 id 访问别人的数据)、未登录直接调接口、参数注入与超长输入、重复提交与幂等、并发写同一条数据、金额与数量被篡改。
|
|
93
|
+
- compatibility 兼容性:不同分辨率与缩放、不同浏览器 / 客户端 / App 版本、深浅色主题、时区与语言、导入导出的文件格式兼容。
|
|
94
|
+
- business 隐藏业务规则:金额舍入与精度、状态互斥与顺序、唯一性与重复、软删除后被引用、跨模块联动(改 A 影响 B)、审批与回退、配额与上限。
|
|
95
|
+
|
|
96
|
+
每条盲区提交这些字段:
|
|
97
|
+
- \`category\`:nonfunctional / security / compatibility / business 之一。
|
|
98
|
+
- \`severity\`:high / medium / low(真出事的影响面)。
|
|
99
|
+
- \`title\`:一句话说清测什么(动词开头,带条件)。
|
|
100
|
+
- \`why\`:为什么人工容易漏(一两句话,写到点上)。
|
|
101
|
+
- \`precondition\`:执行前需要的账号 / 角色 / 数据 / 状态。
|
|
102
|
+
- \`steps\`:可执行步骤数组,一步一个动作。
|
|
103
|
+
- \`expected\`:可判定的预期结果,有阈值写具体数值。
|
|
104
|
+
- \`priority\`:P0 / P1 / P2 / P3 之一。
|
|
105
|
+
|
|
106
|
+
## 补全
|
|
107
|
+
|
|
108
|
+
你是测试工程师。用户勾选了若干条盲区,你要把它们的字段补齐到可以直接入库执行。
|
|
109
|
+
|
|
110
|
+
规则:
|
|
111
|
+
1. 只处理勾选的条目(\`{{selected}}\`),没有勾选的一条都不要动。
|
|
112
|
+
2. 步骤拆成「一步一个动作」,每步都能照着点;不要合并成「操作并校验」。
|
|
113
|
+
3. 预期写到可判定:具体页面 / 状态 / 文案 / 数值,有阈值写数值。
|
|
114
|
+
4. 前置条件补上需要的账号、角色、数据量与初始状态。
|
|
115
|
+
5. 编号、优先级、类型按文件里已有用例的写法保持一致(字段名以「字段对照」为准)。
|
|
116
|
+
6. 调用 \`case_save_blindspots\` 提交全部勾选条目(带原 \`id\` 原地更新),不要新增没勾选的条目。
|
|
117
|
+
7. 提交后简短说明改了哪几条、补了什么。
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* 解析「用例质量评审提示词.md」的 `## 评审` 段。
|
|
122
|
+
* 认 `## 评审`(也接受「质检」「检查」「审查」);
|
|
123
|
+
* 缺失或为空时返回空串,调用方拦下来提示,不用代码里的兜底顶替。
|
|
124
|
+
*/
|
|
125
|
+
export function parseCaseReviewPromptSections(text) {
|
|
126
|
+
const raw = String(text ?? '');
|
|
127
|
+
const out = { review: '' };
|
|
128
|
+
if (!raw.trim()) return out;
|
|
129
|
+
let current = false;
|
|
130
|
+
let buffer = [];
|
|
131
|
+
const flush = () => {
|
|
132
|
+
if (current) out.review = buffer.join('\n').trim();
|
|
133
|
+
buffer = [];
|
|
134
|
+
};
|
|
135
|
+
for (const line of raw.split('\n')) {
|
|
136
|
+
const heading = /^##\s+(.+?)\s*$/.exec(line);
|
|
137
|
+
if (heading) {
|
|
138
|
+
flush();
|
|
139
|
+
current = /评审|质检|检查|审查/.test(heading[1]);
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
// 一级标题 / 引用块在段外,忽略即可(段内保留引用)
|
|
143
|
+
if (!current && (/^#\s/.test(line) || /^>\s?/.test(line))) continue;
|
|
144
|
+
if (current) buffer.push(line);
|
|
145
|
+
}
|
|
146
|
+
flush();
|
|
147
|
+
return out;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* 解析「场景遗漏补全提示词.md」的两段正文。
|
|
152
|
+
* 认 `## 探测`(也接受「盲区」「遗漏」「扫描」)与 `## 补全`(也接受「补齐」「完善」「改写」)。
|
|
153
|
+
*/
|
|
154
|
+
export function parseBlindspotPromptSections(text) {
|
|
155
|
+
const raw = String(text ?? '');
|
|
156
|
+
const out = { detect: '', complete: '' };
|
|
157
|
+
if (!raw.trim()) return out;
|
|
158
|
+
let current = '';
|
|
159
|
+
let buffer = [];
|
|
160
|
+
const flush = () => {
|
|
161
|
+
const body = buffer.join('\n').trim();
|
|
162
|
+
if (current === 'detect') out.detect = body;
|
|
163
|
+
else if (current === 'complete') out.complete = body;
|
|
164
|
+
buffer = [];
|
|
165
|
+
};
|
|
166
|
+
for (const line of raw.split('\n')) {
|
|
167
|
+
const heading = /^##\s+(.+?)\s*$/.exec(line);
|
|
168
|
+
if (heading) {
|
|
169
|
+
flush();
|
|
170
|
+
const name = heading[1];
|
|
171
|
+
if (/探测|盲区|遗漏|扫描/.test(name)) current = 'detect';
|
|
172
|
+
else if (/补全|补齐|完善|改写/.test(name)) current = 'complete';
|
|
173
|
+
else current = '';
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
if (!current && (/^#\s/.test(line) || /^>\s?/.test(line))) continue;
|
|
177
|
+
if (current) buffer.push(line);
|
|
178
|
+
}
|
|
179
|
+
flush();
|
|
180
|
+
return out;
|
|
181
|
+
}
|