lantern-harness 0.1.43 → 0.1.45
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 +36 -0
- package/README.md +1 -1
- package/builtin/session/lh-nav-groups.mjs +18 -4
- package/dist/500.html +61 -5
- package/dist/_astro/Base.Bkt1lrgu.css +1 -0
- package/dist/_astro/{Base.astro_astro_type_script_index_0_lang.Chv7r8_9.js → Base.astro_astro_type_script_index_0_lang.UKTVQqk7.js} +1 -1
- package/dist/_astro/{CaseExecBoard.DUMjSunb.js → CaseExecBoard.DICluCbK.js} +1 -1
- package/dist/_astro/{CaseGenerateApp.DtuOyQuv.js → CaseGenerateApp.Be3h5XPG.js} +1 -1
- package/dist/_astro/{CasesLibrary.B9o_jvXb.js → CasesLibrary.Buys7Cy-.js} +3 -3
- package/dist/_astro/ChatApp.D3BheKci.js +227 -0
- package/dist/_astro/ConfirmDialog.DrrPf1MB.js +1 -0
- package/dist/_astro/{DashboardBoard.DEvgMoqo.js → DashboardBoard.Qvf8o4v1.js} +1 -1
- package/dist/_astro/{DocsFileBrowser.D66pN9rp.js → DocsFileBrowser.DwKBffbM.js} +1 -1
- package/dist/_astro/{DocsPager.ceBEecmd.js → DocsPager.Duf4I68E.js} +1 -1
- package/dist/_astro/{DrawerField.CWpOf3L_.js → DrawerField.BH3p4Q4D.js} +1 -1
- package/dist/_astro/{KnowledgeLibrary.DYqE2mRi.js → KnowledgeLibrary.MDpMqeOd.js} +1 -1
- package/dist/_astro/{LifeKrTasksBoard.B7UiEutA.js → LifeKrTasksBoard.DsvW_S66.js} +1 -1
- package/dist/_astro/{LifeKrTodosBoard.VL7HdhNY.js → LifeKrTodosBoard.D2KTqvg1.js} +1 -1
- package/dist/_astro/{LifeObjectivesBoard.lLBPOHEZ.js → LifeObjectivesBoard.B0cDK934.js} +1 -1
- package/dist/_astro/{LifePlanTypeSelect.CdKQmlEK.js → LifePlanTypeSelect.BELDvMWU.js} +1 -1
- package/dist/_astro/{LifeReviewsBoard.AjO4SbsR.js → LifeReviewsBoard.BPXeVpg1.js} +1 -1
- package/dist/_astro/{LifeShared.CtdsQI43.js → LifeShared.tnT7aQON.js} +1 -1
- package/dist/_astro/{LifeStagesBoard.Dl-kTZ6K.js → LifeStagesBoard.CZftLR9K.js} +1 -1
- package/dist/_astro/{LifeYearCycleSelect.BILJOKXK.js → LifeYearCycleSelect.Bw2eRbSm.js} +1 -1
- package/dist/_astro/{LifeYearPlansBoard.BzJmi7Hw.js → LifeYearPlansBoard.DB-RJFEl.js} +1 -1
- package/dist/_astro/{MultiSelectDropdown.y8JMbCxO.js → MultiSelectDropdown.CBC7aNOv.js} +1 -1
- package/dist/_astro/NavLibraries.DdQYsZbe.js +1 -0
- package/dist/_astro/OverflowHint.CHZeFfUj.js +1 -0
- package/dist/_astro/{PluginsPage.D2OrUGY3.js → PluginsPage.C1JnInH4.js} +1 -1
- package/dist/_astro/PluginsPage.C3eEwy3K.js +1 -0
- package/dist/_astro/{PmBugsBoard.BynUocbE.js → PmBugsBoard.CGpXUTPu.js} +1 -1
- package/dist/_astro/{PmIterationsBoard.CvFblvfX.js → PmIterationsBoard.BaKiFIam.js} +1 -1
- package/dist/_astro/{PmProjectDetail.Dlm6flwk.js → PmProjectDetail.DneFVBpy.js} +1 -1
- package/dist/_astro/{PmProjectsBoard.B5vaWuax.js → PmProjectsBoard.BxoMF9gK.js} +1 -1
- package/dist/_astro/PmRequirementsBoard.-SI8VZXI.js +1 -0
- package/dist/_astro/{PmRequirementsBoard.piRWjiYA.js → PmRequirementsBoard.DsK6RF7Q.js} +1 -1
- package/dist/_astro/PmShared.BK8kWRSV.js +1 -0
- package/dist/_astro/{PromptMountDialog.DYojFMok.js → PromptMountDialog.mrTx3U5T.js} +1 -1
- package/dist/_astro/PromptsLibrary.B_SUf47p.js +1 -0
- package/dist/_astro/{ReportsPage.B-xhGVEU.js → ReportsPage.B9lGg1_s.js} +1 -1
- package/dist/_astro/{ReqAnalysisBoard.B3sAOuAq.js → ReqAnalysisBoard.CIZKnCQH.js} +1 -1
- package/dist/_astro/{RequirementsLibrary.BGys7DeN.js → RequirementsLibrary.cJc-bnGQ.js} +1 -1
- package/dist/_astro/{SearchableSelect.DFZBUFIs.js → SearchableSelect.SyLRS-Jj.js} +1 -1
- package/dist/_astro/SelectDropdown.T3CKHaLt.js +1 -0
- package/dist/_astro/{SettingsDialog.CEyjZuxq.js → SettingsDialog.DYdtCvLc.js} +1 -1
- package/dist/_astro/{SpaceSwitcher.DJqvw5Lw.js → SpaceSwitcher.C47_S1g9.js} +1 -1
- package/dist/_astro/{TableFieldConfig.D0v9S2g3.js → TableFieldConfig.C7O-mL-p.js} +1 -1
- package/dist/_astro/{TasksBoard.DZ9LLl_c.js → TasksBoard.BUEg2BYk.js} +1 -1
- package/dist/_astro/{TemplatesLibrary.iyj_kFMO.js → TemplatesLibrary.BLVIphXO.js} +1 -1
- package/dist/_astro/{TestReportsLibrary.B6pf0d7W.js → TestReportsLibrary.DVq30Jae.js} +1 -1
- package/dist/_astro/{TestStatsBoard.DS_2bqWI.js → TestStatsBoard.-5BWQ6bI.js} +1 -1
- package/dist/_astro/{TodosBoard.CYAVDD1W.js → TodosBoard.DI_lTp2e.js} +1 -1
- package/dist/_astro/UiAutoBoard.ChFdgv7s.js +2 -0
- package/dist/_astro/UiAutoEnvPanel.B50q4kYb.js +19 -0
- package/dist/_astro/UiAutoGenerationDialog.CLkFAHrm.js +1 -0
- package/dist/_astro/UiAutoProjectsPage.DCsDeN5d.js +3 -0
- package/dist/_astro/app-config.DkyjuL-S.js +1 -0
- package/dist/_astro/app-version.Cy-5oZO2.js +1 -0
- package/dist/_astro/{bash-tools.CfNj2sh0.js → bash-tools.D9HCzC_7.js} +1 -1
- package/dist/_astro/{case-gen-run.nrr97yK3.js → case-gen-run.BklG1H8k.js} +1 -1
- package/dist/_astro/{case-types.B51yDRdf.js → case-types.DlFkbZJN.js} +1 -1
- package/dist/_astro/composer-draft.llpvz3MW.js +1 -0
- package/dist/_astro/composer-task.DRi5tAJs.js +5 -0
- package/dist/_astro/{hydrate-cache.CoD1FB3T.js → hydrate-cache.B15Nrpq0.js} +1 -1
- package/dist/_astro/i18n.D_aOCHSN.js +7 -0
- package/dist/_astro/{open-docs-in-session.DJtuI1C4.js → open-docs-in-session.CRiZT022.js} +1 -1
- package/dist/_astro/plugins.BRvXWHLe.js +1 -0
- package/dist/_astro/prompts-meta.BUGutlsk.js +2 -0
- package/dist/_astro/{req-analysis.qmyv5cBw.js → req-analysis.B12_MGMQ.js} +1 -1
- package/dist/_astro/{settings.CYERib3l.js → settings.38J2uD5M.js} +2 -2
- package/dist/_astro/{spaces-client.DvIgFink.js → spaces-client.DV04tRyD.js} +1 -1
- package/dist/_astro/{story-review.2UUlN3p-.js → story-review.D2W5tEOY.js} +1 -1
- package/dist/_astro/{test-reports.DPQ-FMsQ.js → test-reports.CuIjlEyK.js} +1 -1
- package/dist/_astro/ui-auto-prompt.H9_yhau9.js +9 -0
- package/dist/_astro/ui-auto.DMv940x4.js +1 -0
- package/dist/_astro/{view-prefs.GnvelRDj.js → view-prefs.DhdLZjGh.js} +1 -1
- package/dist/case-exec/index.html +62 -6
- package/dist/cases/generate/index.html +62 -6
- package/dist/cases/library/index.html +62 -6
- package/dist/dashboard/index.html +62 -6
- package/dist/docs/changelog/index.html +138 -50
- package/dist/docs/install/index.html +61 -5
- package/dist/docs/manual/index.html +129 -21
- package/dist/knowledge/index.html +62 -6
- package/dist/life/kr-tasks/index.html +62 -6
- package/dist/life/kr-todos/index.html +62 -6
- package/dist/life/objectives/index.html +62 -6
- package/dist/life/reviews/index.html +62 -6
- package/dist/life/stages/index.html +62 -6
- package/dist/life/year-plans/index.html +62 -6
- package/dist/plugins/index.html +62 -6
- package/dist/pm/bugs/index.html +62 -6
- package/dist/pm/iterations/index.html +62 -6
- package/dist/pm/projects/detail/index.html +62 -6
- package/dist/pm/projects/index.html +62 -6
- package/dist/pm/requirements/index.html +62 -6
- package/dist/prompts/index.html +62 -6
- package/dist/reports/index.html +62 -6
- package/dist/requirement-analysis/index.html +62 -6
- package/dist/requirements/index.html +62 -6
- package/dist/tasks/index.html +62 -6
- package/dist/templates/index.html +62 -6
- package/dist/test-automation/index.html +63 -7
- package/dist/test-automation/projects/index.html +980 -0
- package/dist/test-reports/index.html +62 -6
- package/dist/test-stats/index.html +62 -6
- package/dist/todos/index.html +62 -6
- package/dist/workbench/index.html +62 -6
- package/docs//345/205/250/345/261/200/346/217/222/344/273/266.md +1 -1
- package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +107 -63
- package/lh-plugins/lh-uiauto.mjs +2502 -51
- package/lh-plugins/plugin-prompts.mjs +62 -2
- package/lh-plugins/storage-domain.mjs +17 -4
- package/lh-plugins/uiauto-adapters/playwright.mjs +29 -14
- package/lh-plugins/uiauto-adapters/tasks.mjs +8 -2
- package/lh-plugins/uiauto-env.mjs +669 -0
- package/lh-plugins/uiauto-explorer/apps.mjs +4 -5
- package/lh-plugins/uiauto-explorer/emit-files.mjs +32 -9
- package/lh-plugins/uiauto-explorer/emit-ts.mjs +13 -2
- package/lh-plugins/uiauto-explorer/ir.mjs +20 -0
- package/lh-plugins/uiauto-explorer/sessions.mjs +36 -0
- package/lh-plugins/uiauto-node.mjs +327 -0
- package/lh-plugins/uiauto-pm.mjs +178 -0
- package/lh-plugins/uiauto-prompt.mjs +228 -18
- package/lh-plugins/uiauto-report.mjs +16 -0
- package/lh-plugins/uiauto-scaffold/audit.mjs +356 -0
- package/lh-plugins/uiauto-scaffold/index.mjs +25 -0
- package/lh-plugins/uiauto-scaffold/library.mjs +508 -0
- package/lh-plugins/uiauto-scaffold/manifest.mjs +83 -0
- package/lh-plugins/uiauto-scaffold/render.mjs +133 -0
- package/lh-plugins/uiauto-scaffold/templates/playwright-ts.json +225 -0
- package/lh-plugins/uiauto-scaffold/templates/playwright-ts.mjs +46 -0
- package/package.json +1 -1
- package/dist/_astro/Base.BnVp5Mf8.css +0 -1
- package/dist/_astro/ChatApp.CKPGFibd.js +0 -227
- package/dist/_astro/ConfirmDialog.D5qXeML0.js +0 -1
- package/dist/_astro/NavLibraries.BnaL-km5.js +0 -1
- package/dist/_astro/OverflowHint.pvo2Xc8R.js +0 -1
- package/dist/_astro/PluginsPage.CMW4hEFr.js +0 -1
- package/dist/_astro/PmRequirementsBoard.B8KTeso8.js +0 -1
- package/dist/_astro/PmShared.86HEsdd_.js +0 -1
- package/dist/_astro/PromptsLibrary.GpNbBTj1.js +0 -1
- package/dist/_astro/SelectDropdown.Dmk5n225.js +0 -1
- package/dist/_astro/SlideOverDrawer.C1IVOc_8.js +0 -1
- package/dist/_astro/UiAutoBoard.DSsiMfx2.js +0 -9
- package/dist/_astro/app-config.DwpFFa5D.js +0 -1
- package/dist/_astro/app-version.Dabxyva-.js +0 -1
- package/dist/_astro/composer-task.DJmluzPT.js +0 -5
- package/dist/_astro/i18n.vo2aElR9.js +0 -7
- package/dist/_astro/plugins.BmKRnp4a.js +0 -1
- package/dist/_astro/prompts-meta.bF2q5SUy.js +0 -2
- package/dist/_astro/ui-auto-prompt.COBTt5Gd.js +0 -4
- package/dist/_astro/ui-auto.BmC9JJ_X.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,i as t,p as n}from"./app-config.
|
|
1
|
+
import{d as e,i as t,p as n}from"./app-config.DkyjuL-S.js";import{o as r}from"./view-prefs.DhdLZjGh.js";import{s as i}from"./settings.38J2uD5M.js";var a=`/__tb_sessions`,o=`tw-chat-sessions`,s=`tw-chat-active-id`,c=`tw-chat-history`,l=`tw-session-rail-open`,u=!1,d=null;function f(e){return!(!e||e.archived||e.deleted)}function p(){return`s_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,8)}`}function m(e){let t=Date.now();return{id:p(),title:`新对话`,createdAt:t,updatedAt:t,archived:!1,pinned:!1,messages:[],...e}}function h(e){let t=(e.find(e=>e.role===`user`&&(e.content??``).trim())?.content??``).trim().replace(/\s+/g,` `);return t?t.length>24?`${t.slice(0,24)}…`:t:`新对话`}function g(){try{let e=localStorage.getItem(c);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function _(e){if(!e)return null;let t=(Array.isArray(e.sessions)?e.sessions:[]).filter(e=>!e.deleted);return t.length?{sessions:t,activeId:(typeof e.activeId==`string`?t.find(t=>t.id===e.activeId&&f(t)):void 0)?.id??t.find(e=>f(e))?.id??t[0].id}:null}function v(){return n(o)}function y(){return n(s)}function b(){try{let e=localStorage.getItem(v());return e?_(JSON.parse(e)):null}catch{return null}}function x(e){try{localStorage.setItem(v(),JSON.stringify(e)),localStorage.setItem(y(),e.activeId)}catch{}}function S(){let e=g(),t=m({title:e.length?h(e):`新对话`,messages:e}),n={sessions:[t],activeId:t.id};try{localStorage.removeItem(c)}catch{}return n}async function C(e){let t=e?.preferSessionId?.trim()||``,n=b();try{let e=await fetch(a,{signal:AbortSignal.timeout(2e3)});if(e.ok){let r=await e.json();u=!0;let i=_(r.store??null);if(!i){let e=t&&n?n.sessions.find(e=>e.id===t):void 0;i=e?{sessions:[e],activeId:t}:S(),await T(i)}else if(t&&n&&!i.sessions.some(e=>e.id===t)){let e=n.sessions.find(e=>e.id===t);e?(i={...i,sessions:[e,...i.sessions],activeId:f(e)?t:i.sessions.find(e=>f(e))?.id??i.activeId},await T(i)):x(i)}else t&&f(i.sessions.find(e=>e.id===t))&&(i={...i,activeId:t}),x(i);return i}}catch{}return u=!1,n??S()}function w(){return b()??S()}async function T(e){if(x(e),u)try{await fetch(a,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify({store:e})})}catch{}}function E(e){x(e),d&&clearTimeout(d),d=setTimeout(()=>{d=null,T(e)},320)}async function D(e){d&&=(clearTimeout(d),null),await T(e)}async function O(){if(!u)return null;try{let e=await fetch(a,{signal:AbortSignal.timeout(2e3)});return e.ok?_((await e.json()).store??null):null}catch{return null}}function k(e,t){let n=/<!--tb-schedule:([^>]+)-->/,r=!1,i=e.sessions.map(e=>{let i=t.sessions.find(t=>t.id===e.id);if(!i||!Array.isArray(i.messages))return e;let a=Array.isArray(e.messages)?[...e.messages]:[],o=new Set;for(let e of a){let t=e&&typeof e==`object`&&`content`in e?String(e.content??``):``,r=n.exec(t);r?.[1]&&o.add(r[1]);let i=e&&typeof e==`object`&&`scheduleId`in e?String(e.scheduleId??``):``;i&&o.add(i)}let s=!1;for(let e of i.messages){let t=e&&typeof e==`object`&&`content`in e?String(e.content??``):``,r=n.exec(t);r?.[1]&&!o.has(r[1])&&(a.push(e),o.add(r[1]),s=!0)}return s?(r=!0,{...e,messages:a,updatedAt:Date.now()}):e});return r?{...e,sessions:i}:e}function A(e,t){let n=m({workspacePath:t?.workspacePath,access:t?.access});return{sessions:[n,...e.sessions],activeId:n.id}}function j(e,t,n){let r=e.sessions.find(e=>e.id===t);if(!r)return e;let i=n?.titleSuffix??`(分叉)`,a=`${(r.title||`新对话`).replace(/(分叉)\s*$/,``).trim()||`新对话`}${i}`,o=m({title:a.length>40?`${a.slice(0,39)}…`:a,workspacePath:r.workspacePath,access:r.access,messages:Array.isArray(r.messages)?structuredClone(r.messages):[],archived:!1,pinned:!1,deleted:!1}),s=n?.activate!==!1;return{sessions:[o,...e.sessions],activeId:s?o.id:e.activeId}}function M(e,t,n){return{...e,sessions:e.sessions.map(e=>e.id===t?{...e,workspacePath:n||void 0,updatedAt:Date.now()}:e)}}function N(e,t,n){let r=n.trim()||`未命名`;return{...e,sessions:e.sessions.map(e=>e.id===t?{...e,title:r,updatedAt:Date.now()}:e)}}function P(e,t,n=!0){return{...e,sessions:e.sessions.map(e=>e.id===t?n&&e.archived?{...e,pinned:!0,archived:!1,updatedAt:Date.now()}:{...e,pinned:n,updatedAt:Date.now()}:e)}}function F(e,t){let n=e.sessions.filter(e=>e.id!==t);if(!n.length){let e=m();return{sessions:[e],activeId:e.id}}return{sessions:n,activeId:e.activeId===t?n.find(e=>!e.archived&&!e.deleted)?.id??n[0].id:e.activeId}}function I(e,t,n=!0){let r=e.sessions.map(e=>e.id===t?{...e,archived:n,deleted:!n&&e.deleted,pinned:!n&&e.pinned,updatedAt:Date.now()}:e),i=e.activeId;return n&&i===t&&(i=r.find(e=>!e.archived&&!e.deleted)?.id??r[0].id),{sessions:r,activeId:i}}function L(e,t){return{...e,sessions:e.sessions.map(e=>e.workspacePath===t?{...e,workspacePath:void 0,updatedAt:Date.now()}:e)}}function R(e){return!(e.archived||e.deleted||e.pinned||Array.isArray(e.messages)&&e.messages.length>0)}function z(e,t,n){let r=e;for(let i of e.sessions)t&&i.id===t||R(i)&&(n?.(i.id)||(r=F(r,i.id)));return t&&r.sessions.some(e=>e.id===t)&&r.activeId!==t&&(r={...r,activeId:t}),r}function B(e,t,n,r){let i=r?.touchUpdatedAt!==!1;return{...e,sessions:e.sessions.map(e=>{if(e.id!==t)return e;let a=r?.touchTitle&&(e.title===`新对话`||!e.title)||e.title===`新对话`?h(n):e.title;return{...e,messages:n.slice(-80),title:a,updatedAt:i?Date.now():e.updatedAt}})}}function V(e,t,n){return B(e,e.activeId,t,n)}function H(e){return Array.isArray(e)?e.map(e=>{if(!e||typeof e!=`object`)return e;let t=e;return t.role!==`assistant`||!Array.isArray(t.activitySteps)||!t.activitySteps.some(e=>e.status===`running`)?e:{...t,activitySteps:t.activitySteps.map(e=>e.status===`running`?{...e,status:`done`}:e)}}):e}function U(e){let t=!1,n=e.sessions.map(e=>{let n=H(e.messages);return n===e.messages?e:(t=!0,{...e,messages:n})});return t?{...e,sessions:n}:e}function W(e,t,n){return{...e,sessions:e.sessions.map(e=>{if(e.id!==t)return e;let r=[...Array.isArray(e.messages)?e.messages:[],n].slice(-80);return{...e,messages:r,updatedAt:Date.now()}})}}function G(e,t,n,r){let i=r?.touchUpdatedAt!==!1;return{...e,sessions:e.sessions.map(e=>e.id===t?{...e,...n,updatedAt:i?Date.now():e.updatedAt}:e)}}function K(e,t,n){return G(e,e.activeId,t,n)}function q(e,t){return e.sessions.some(e=>e.id===t)?{...e,activeId:t}:e}function J(e){return[...e].sort((e,t)=>{let n=+!!e.pinned,r=+!!t.pinned;return n===r?t.updatedAt-e.updatedAt:r-n})}function Y(){try{return localStorage.getItem(n(l))!==`0`}catch{return!0}}function X(e){try{localStorage.setItem(n(l),e?`1`:`0`)}catch{}}function Z(t){let n=e();return n?`tb:session-handoff:${n}:${t}`:`tb:session-handoff:${t}`}function Q(e){return e.replace(/\\/g,`/`).replace(/^\.\//,``).replace(/^\/+/,``)}function $(e,t,n){if(t!==`testReports`)return e.sessions.find(e=>{if(!f(e))return!1;if(t===`cases`){let t=e.caseGen?.linkedCasePath;return!!(t&&Q(t)===n)}let r=t===`prompts`?e.promptGen?.linkedPromptPath:e.knowledgeGen?.linkedKnowledgePath;return!!(r&&Q(r)===n)})}async function ee(e,n,a){await C().catch(()=>null),await t().catch(()=>null);let o=w(),s=Q(n.path),c=$(o,e,s);if(c||=(o=A(o,{access:i()}),await D(o),o.sessions.find(e=>e.id===o.activeId)),!c)throw Error(`无法创建或定位会话`);try{let e=o.sessions.find(e=>e.id===c.id)??c;sessionStorage.setItem(Z(c.id),JSON.stringify({session:e}))}catch{}r(`plugins.open`,`0`);let l=new URLSearchParams({session:c.id,focusRoot:e,focusPath:s,attachRoot:e,attachPath:s,attachName:n.name}),u=a?.attachPrompt?.trim();u&&l.set(`attachPrompt`,u),window.location.href=`/workbench/?${l.toString()}`}export{B as A,U as C,L as D,h as E,V as O,H as S,q as T,P as _,M as a,X as b,O as c,C as d,R as f,k as g,w as h,I as i,G as j,K as k,D as l,Y as m,Z as n,A as o,f as p,W as r,F as s,ee as t,j as u,z as v,J as w,E as x,N as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,t,u as n}from"./app-config.DkyjuL-S.js";var r=[`内置插件`,`测试技能`,`需求管理`,`生成能力`,`记忆与检索`,`待办与效率`,`人生管理`,`项目管理`,`仪表盘`,`开发工具`],i=[{id:`cases`,category:`测试技能`,name:`用例管理`,description:`侧栏进入用例库:浏览、搜索、打开与删除用例。关闭后入口隐藏,「生成测试用例」一并关闭;磁盘文件仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`caseGen`,category:`测试技能`,name:`生成测试用例`,description:`在工作台用「/」打开配置:选类型、模板与提示词后生成用例并写入用例库。需同时开启「用例管理」。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,hasPanel:!0,requires:`cases`},{id:`prompts`,category:`内置插件`,name:`提示词管理`,description:`侧栏进入提示词库:浏览、搜索、打开与删除提示词,并维护当前空间的「默认提示词」。每个空间都需要,属于内置能力,常开且没有开关。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!0,alwaysOn:!0},{id:`promptGen`,category:`内置插件`,name:`生成提示词`,description:`用「/」打开配置后对话生成提示词;质检通过后写入提示词库。属于内置能力,默认常开、没有开关。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!0,alwaysOn:!0,hasPanel:!0,requires:`prompts`},{id:`knowledgeLib`,category:`测试技能`,name:`知识库管理`,description:`侧栏进入知识库:浏览、搜索、打开与删除文档。关闭后入口隐藏,「生成知识库」一并关闭;磁盘文件仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`knowledgeGen`,category:`测试技能`,name:`生成知识库`,description:`用「/」打开配置后对话生成规范、方法论或环境约定;质检通过后写入知识库。需同时开启「知识库管理」。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,hasPanel:!0,requires:`knowledgeLib`},{id:`requirements`,category:`需求管理`,name:`需求文档库`,description:`侧栏进入需求文档库:浏览、搜索、上传与整理需求文档。关闭后入口隐藏;磁盘文件仍保留,生成用例时也不再引用。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`templates`,category:`测试技能`,name:`测试模板库`,description:`侧栏进入测试模板库:浏览、上传与整理用例 / 报告模板。关闭后入口隐藏;磁盘文件仍保留,生成用例时不再选用模板。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`testReports`,category:`测试技能`,name:`报告管理`,description:`侧栏进入报告库:按功能 / 接口 / 性能归档测试报告,可挂载提示词并在会话中打开修改。关闭后入口隐藏;磁盘文件仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`knowledge`,category:`记忆与检索`,name:`知识库检索`,description:`工作台输入「@」引用知识库与模板文档;发送后由模型按需读取。关闭后 @ 只列工作区文件。`,version:`1.4.0`,requiresDev:!1,defaultEnabled:!1},{id:`memory`,category:`记忆与检索`,name:`会话记忆`,description:`五轨记忆(用户档案 / 全局事实 / 项目关键 / 项目日志 / 每日):待确认、归档与便签,在工作台「记忆」Tab 管理。`,version:`2.0.0`,requiresDev:!0,defaultEnabled:!1},{id:`todos`,category:`待办与效率`,name:`待办事项`,description:`侧栏进入待办事项:按状态 / 紧急程度筛选、行内改状态与手动维护;工作台会话也能通过工具直接记录与更新同一份待办。关闭后入口隐藏,磁盘数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`tasks`,category:`待办与效率`,name:`任务管理`,description:`侧栏进入任务列表:按任务池 / 进行中 / 已完成 / 已关闭 / 已取消跟踪任务,并汇总每个任务下关联待办的数量与完成进度。关闭后入口隐藏,磁盘数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`reports`,category:`待办与效率`,name:`工作汇报`,description:`打开后在工作台注入「工作汇报提示词」,并把这份提示词写进提示词管理,方便随时修改;关闭时只停用,提示词文件保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`projects`,category:`项目管理`,name:`项目列表`,description:`侧栏进入项目列表:进度 / 规划 / 归档三种状态的项目卡片,汇总每个项目下的迭代、需求与缺陷数量;支持搜索、归档与删除。关闭后入口隐藏,数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`iterations`,category:`项目管理`,name:`迭代管理`,description:`侧栏进入迭代管理:按项目维护迭代的开始 / 截止日期与状态,按日期流逝算进度并标出逾期。需同时开启「项目列表」。关闭后入口隐藏,数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,requires:`projects`},{id:`pmRequirements`,category:`项目管理`,name:`需求管理`,description:`侧栏进入需求管理:按项目 / 迭代维护需求编号、优先级、状态与验收标准;需求挂在项目下,可关联迭代。需同时开启「项目列表」。关闭后入口隐藏,数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,requires:`projects`},{id:`bugs`,category:`项目管理`,name:`缺陷管理`,description:`侧栏进入缺陷管理:按项目 / 迭代 / 需求记录缺陷,含严重程度、状态、重现步骤、期望与实际结果;关闭后入口隐藏,数据仍保留。需同时开启「项目列表」。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,requires:`projects`},{id:`testStats`,category:`测试技能`,name:`测试统计`,description:`侧栏进入测试统计:按统计日期与测试统计维度(功能用例 / 自动化用例 / 接口用例 / 测试报告 / 缺陷统计等)记录统计数量,维度可搜索 / 创建 / 重命名 / 删除,下拉按创建时间倒序。打开开关即在当前空间生成 测试统计/测试统计.json。关闭后入口隐藏,磁盘数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`caseExec`,category:`测试技能`,name:`用例执行统计`,description:`侧栏进入用例执行统计:每个项目一张卡片,卡头是项目名称与开始 / 结束日期,并显示该项目的基线、累计已执行与执行率进度条;卡内按统计日期逐行记录用例总数与待执行数量,自动算出已执行用例、当前剩余用例与执行比例(比例按项目累计口径:以该项目第一条记录的用例总数为基线)。项目名称可搜索或直接创建,按创建时间倒序,下拉里可重命名(同步改记录)或删除未被引用的名称;卡头改周期会写穿该项目全部记录。打开开关即在当前空间生成 用例执行统计/用例执行统计.json。关闭后入口隐藏,磁盘数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`uiAuto`,category:`测试技能`,name:`自动化测试`,description:`侧栏出现「自动化项目」「自动化执行」两个入口:项目页管理已挂载 / 生成的项目,并能用固定模板从零生成 Playwright + TypeScript 企业级基础框架(生成前先做结构与选项体检,再按「自动化项目提示词」让 AI 审一遍骨架并给出可选补全,预览文件清单、自动挂载、不覆盖非空目录);执行页把已有的 Playwright / pytest / Selenium 项目挂进来(系统原生选目录,自动识别框架),一键运行 / 停止用例(先跑全量),实时看日志,查看 HTML 报告与结构化结果。执行的是目标项目自己的测试命令,不会自动安装依赖或联网。打开开关时在「提示词管理」生成两份提示词:「自动化执行提示词.md」(生成用例用)与「自动化项目提示词.md」(创建项目时的骨架体检用),已存在不覆盖,插件开启期间不可删除;旧的 Playwright提示词.md 会自动改名为前者,正文不动。关闭后两个入口一起隐藏,项目记录与报告仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`reqAnalysis`,category:`需求管理`,name:`需求分析`,description:`侧栏进入需求分析:选「需求文档库」里的原始需求,用当前模型拆成结构化用户故事(角色 / 前置 / 主流程 / 替代 / 异常 / 后置 / 验收),可编辑、可导出 Markdown;打开时默认一并开启「用户故事审查」,生成用户故事成功后自动审查。打开开关时在「提示词管理」生成「需求分析提示词.md」和「原文结构提示词.md」(已存在不覆盖,插件开启期间不可删除)。关闭后入口隐藏,已保存的分析仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`storyReview`,category:`需求管理`,name:`用户故事审查`,description:`打开后不新增侧栏入口:在「需求分析」页多出「审查结果」Tab;生成用户故事成功后自动初审,结果页可「重新审查 / 重新全量扫描」。先用固定规则核对覆盖率,再让模型专查场景遗漏与待确认项,缺口可勾选补写、可导出 Markdown。开启「需求分析」时默认一并打开,也可单独关掉。打开开关时在「提示词管理」生成「用户故事审查提示词.md」(已存在不覆盖,插件开启期间不可删除)。关闭后这些入口隐藏,审查结果仍保留在分析里。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!0,requires:`reqAnalysis`,autoEnableWith:`reqAnalysis`},{id:`testPoints`,category:`需求管理`,name:`生成测试点`,description:`打开后不新增侧栏入口:在「需求分析」页里多出「生成测试点」按钮与「测试点」Tab,基于拆好的用户故事按功能 / 边界值 / 异常 / 业务规则 / 非功能五个维度拆测试点,每条标注 P0–P3 优先级;界面与导出按 Ideal「一行一条」需求标题 → 五维 → 测试点归组(列表 / 左右导图 / XMind 向右逻辑图骨架,样式与原文结构导出一致 / Markdown),可下载。开启「需求分析」时默认一并打开,也可单独关掉。打开开关时在「提示词管理」生成「测试点生成提示词.md」(已存在不覆盖,插件开启期间不可删除)。关闭后这些入口隐藏,已生成的测试点仍保留在分析里。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!0,requires:`reqAnalysis`,autoEnableWith:`reqAnalysis`},{id:`caseReview`,category:`测试技能`,name:`用例质量评审`,description:`打开后不新增侧栏入口:在「用例管理」文件行上多出「评审」按钮与评审列,打开抽屉对整份用例做分级质检——逐条判定可用 / 待修改 / 错误无效,五维打分(需求覆盖 / 步骤可执行 / 预期可判定 / 数据与边界 / 规范完整),另给七项量化指标与逐条扣分原因、改进建议;报告可导出 Markdown。开启「用例管理」时默认一并打开,也可单独关掉。打开开关时在「提示词管理」生成「用例质量评审提示词.md」(已存在不覆盖,插件开启期间不可删除)。关闭后入口隐藏,评审结果仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,requires:`cases`,autoEnableWith:`cases`},{id:`caseBlindspot`,category:`测试技能`,name:`场景遗漏补全`,description:`打开后不新增侧栏入口:在「用例管理」的评审抽屉里多出「场景补全」Tab,专挖人工最容易漏的场景——非功能 / 安全边界与容错 / 兼容性 / 隐藏业务规则,逐条给出为什么容易漏与建议用例;勾选后跳到这条用例绑定的工作台会话,由模型按文件表头补进原用例文件(写前自动备份)。可根据文件名自动挂上对照需求。开启「用例管理」时默认一并打开,也可单独关掉。打开开关时在「提示词管理」生成「场景遗漏补全提示词.md」(已存在不覆盖,插件开启期间不可删除)。关闭后入口隐藏,探测结果仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,requires:`cases`,autoEnableWith:`cases`},{id:`life`,category:`人生管理`,name:`人生管理`,description:`侧栏进入人生管理六张表:KR 待办、KR 任务、Objective 目标、OKR 复盘、年度计划、人生阶段。数据落在当前空间各自目录,与待办事项 / 任务管理互不关联。关闭后入口隐藏,磁盘数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`dashboard`,category:`仪表盘`,name:`仪表盘`,description:`侧栏进入仪表盘:把当前空间的待办、任务、项目与测试统计聚合成一页(指标卡、倒计时、今日待办、进行中任务、测试统计柱状图、飞书式待办日历)。首次打开是空白画布,需在「编辑组件」里自行添加卡片;待办 / 任务为表格 + 分页。卡片摆在 12 列自由画布上,按住顶部圆点手柄拖位置、拖右下角把手改宽高,挡住相邻卡片时松手把它们挤开或让位;布局按空间记在浏览器本地。关闭后入口隐藏,数据仍保留。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1},{id:`pluginDev`,category:`开发工具`,name:`插件开发`,description:`用固定提示词开发扩展插件:先评估形态与范围并用选项确认,确认后才改代码,完成后并入「扩展插件」。需要读写项目源码。`,version:`0.1.0`,requiresDev:!0,defaultEnabled:!1,hasPanel:!0}];function a(e=i){return r.map(t=>({category:t,items:e.filter(e=>e.category===t)})).filter(e=>e.items.length>0)}var o=`tw-plugins-changed`;function s(){let e={};for(let t of i)e[t.id]=t.defaultEnabled;return e}function c(e,t){let n={...e};if(t&&!m(t.id)?.alwaysOn){if(n[t.id]=t.enabled,t.enabled){let e=m(t.id)?.requires;e&&(n[e]=!0);for(let e of i)e.autoEnableWith===t.id&&(n[e.id]=!0)}else for(let e of i)e.requires===t.id&&(n[e.id]=!1)}for(let e of i)e.alwaysOn&&(n[e.id]=!0);for(let e of i)e.requires&&!n[e.requires]&&(n[e.id]=!1);return n}function l(){let t=s(),n=e().plugins??{};for(let e of i)typeof n[e.id]==`boolean`&&(t[e.id]=n[e.id]);return c(t)}function u(e){return l()[e]}function d(e){let t=s();for(let n of i)typeof e[n.id]==`boolean`&&(t[n.id]=e[n.id]);return c(t)}function f(e,r){if(m(e)?.alwaysOn)return l();let i=c(l(),{id:e,enabled:r});return n({plugins:i}),t(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(o,{detail:i})),i}function p(e){if(typeof window>`u`)return()=>{};let t=t=>{let n=t.detail;e(n??l())};return window.addEventListener(o,t),()=>{window.removeEventListener(o,t)}}function m(e){return i.find(t=>t.id===e)}function h(e){let t=m(e),n=t?.name??e;return t?.requires&&!u(t.requires)?`请先在「我的插件」中启用「${m(t.requires)?.name??t.requires}」`:`请先在「我的插件」中启用「${n}」`}export{l as a,d as c,u as i,f as l,m as n,p as o,a as r,h as s,i as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=`默认提示词.md`,t=[`空间提示词.md`,`空间默认提示词.md`,`系统提示词.md`,`AI工作台系统提示词.md`],n=`你是 Lantern Harness 的 AI 助手,协助思考、写作、分析、编程与日常工作。
|
|
2
|
+
`,r={"工作汇报提示词.md":`reports`,"自动化执行提示词.md":`uiAuto`,"自动化项目提示词.md":`uiAuto`,"需求分析提示词.md":`reqAnalysis`,"原文结构提示词.md":`reqAnalysis`,"用户故事审查提示词.md":`storyReview`,"测试点生成提示词.md":`testPoints`,"用例质量评审提示词.md":`caseReview`,"场景遗漏补全提示词.md":`caseBlindspot`,"功能测试报告提示词.md":`testReports`,"接口测试报告提示词.md":`testReports`,"性能测试报告提示词.md":`testReports`},i={"自动化执行提示词.md":`generate`,"自动化项目提示词.md":`scaffold`},a={"自动化执行提示词.md":`自动化执行`,"自动化项目提示词.md":`自动化项目`},o=new Set([e,...t]);function s(e){let t=e.split(`/`).pop()??e;return o.has(t)}function c(e){return r[e.split(`/`).pop()??e]}function l(e,t){let n=c(e);return n&&t?t[n]===!0:!1}function u(e,t){return s(e)||l(e,t)}function d(e){return(e||``).replace(/\\/g,`/`).replace(/^\.\//,``).trim()}function f(e){return i[e.split(`/`).pop()??e]??``}function p(e){return a[e.split(`/`).pop()??e]??``}function m(e,t){return t?!!t[d(e)]:!1}function h(e,t){let n=e.split(`/`).pop()??e;return s(n)?`system`:c(n)||(t?t[d(e)]??``:``)}function g(e,t){if(s(e))return`默认提示词不可删除`;let n=c(e);return n&&t?.[n]?`插件开启中,这份提示词由插件自带并维护;先在「我的插件」里关闭对应插件再删除`:``}function _(e){return s(e.split(`/`).pop()??e)}export{u as a,d as c,h as d,c as f,l as i,g as l,n,m as o,f as p,_ as r,s,e as t,p as u};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/jszip.min.Bh2Mgo40.js","_astro/react.Blvh0GOs.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{s as e}from"./react.Blvh0GOs.js";import{t}from"./app-version.
|
|
2
|
+
import{s as e}from"./react.Blvh0GOs.js";import{t}from"./app-version.Cy-5oZO2.js";import{b as n}from"./settings.38J2uD5M.js";var r=`org.xmind.ui.logic.right`,i=`org.xmind.topicShape.roundedRect`,a=`org.xmind.branchConnection.elbow`,o=`#94a3b8`,s=`#d0d5dd`,c=`#1c3d5a`;function l(e,t){let n=2166136261;for(let e=0;e<t.length;e++)n^=t.charCodeAt(e),n=Math.imul(n,16777619);let r=(n>>>0).toString(36),i=t.replace(/[^A-Za-z0-9_-]/g,``).slice(0,24);return i?`${e}-${i}-${r}`:`${e}-${r}`}function u(e,t){return{id:l(`st`,`${i}-${e}-${t}`),properties:{"shape-class":i,"line-class":a,"line-color":o,"line-width":`1`,"svg:fill":e,"fo:color":t,"border-line-color":s,"border-line-width":`1`}}}var d=u(`#1c3d5a`,`#ffffff`),f=u(`#3370ff`,`#ffffff`),ee=u(`#ffffff`,c);function te(){let e=(e,t)=>({properties:{"shape-class":i,"line-class":a,"line-color":o,"line-width":`1`,"svg:fill":e,"fo:color":t,"border-line-color":s,"border-line-width":`1`}});return{centralTopic:e(`#1c3d5a`,`#ffffff`),mainTopic:e(`#3370ff`,`#ffffff`),subTopic:{properties:{"line-class":a,"svg:fill":`#ffffff`,"fo:color":c,"line-color":o,"line-width":`1`}},map:{properties:{"svg:fill":`#ffffff`,"line-color":o}}}}async function ne(r){let{default:i}=await n(async()=>{let{default:t}=await import(`./jszip.min.Bh2Mgo40.js`).then(t=>e(t.t(),1));return{default:t}},__vite__mapDeps([0,1])),a=new i;a.file(`content.json`,JSON.stringify(r));let o=Array.isArray(r)?r:[],s=o[0]&&typeof o[0]==`object`&&o[0].id||`sheet-1`;return a.file(`metadata.json`,JSON.stringify({creator:{name:`Lantern Harness`,version:t},activeSheetId:s})),a.file(`manifest.json`,JSON.stringify({"file-entries":{"content.json":{},"metadata.json":{}}})),a.generateAsync({type:`blob`,compression:`DEFLATE`})}function p(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),URL.revokeObjectURL(n)}var m=`/__tb_reqanalysis`,h=`需求分析提示词.md`,re=`原文结构提示词.md`,ie=`需求分析`,ae=12e3,oe=2e4,se={draft:{label:`待拆解`,tone:`gray`},decomposed:{label:`已拆解`,tone:`blue`},checked:{label:`已审查`,tone:`amber`},accepted:{label:`已验收`,tone:`green`}},ce={P0:`red`,P1:`amber`,P2:`gray`},le={"uncovered-outline":`待确认·未覆盖`,"pending-confirm":`待确认`,"missing-field":`字段缺失`,"missing-scenario":`场景遗漏`,"missing-dimension":`维度缺失`,"untestable-acceptance":`验收不可测`,conflict:`与原文冲突`,"over-split":`过度拆分`,other:`其它`},ue=new Set([`uncovered-outline`,`pending-confirm`,`conflict`,`other`]);function de(e){return ue.has(e.type)}function fe(e){return e.filter(de)}var pe={high:`高`,medium:`中`,low:`低`},me={high:`red`,medium:`amber`,low:`gray`},he=[{key:`permission`,label:`权限与角色`,keywords:[`权限`,`角色`,`授权`,`越权`,`未登录`,`登录`,`管理员`,`普通用户`],hint:`补充不同角色 / 未登录 / 越权访问时这条流程的行为。`},{key:`boundary`,label:`边界值`,keywords:[`边界`,`上限`,`下限`,`最大`,`最小`,`长度`,`超长`,`字数`,`为空`,`空值`],hint:`补充字段长度、数量上限、刚好等于阈值时的表现。`},{key:`concurrency`,label:`并发与幂等`,keywords:[`并发`,`重复`,`幂等`,`同时`,`加锁`,`冲突`,`重复提交`],hint:`补充重复提交、多人同时操作同一数据时的结果。`},{key:`empty`,label:`空数据`,keywords:[`空数据`,`无数据`,`没有数据`,`空列表`,`暂无`,`空态`],hint:`补充列表为空、首次使用、数据被清空时的空态。`},{key:`failure`,label:`超时与失败`,keywords:[`超时`,`失败`,`异常`,`错误`,`重试`,`断网`,`不可用`,`降级`,`回滚`],hint:`补充依赖超时、接口失败、网络中断时的提示与回滚。`},{key:`i18n`,label:`国际化与时区`,keywords:[`国际化`,`时区`,`多语言`,`语言`,`翻译`,`utc`,`夏令时`],hint:`补充跨时区时间展示、多语言文案与本地化格式。`}],ge=/创建|新增|新建|保存|提交|删除|编辑|修改|更新|上传|导入|导出|发布|审批|撤回|绑定|解绑|发送|支付|下单|配置|启停|启用|停用/;async function g(e,t){let n=await fetch(`${m}${e}`,{...t,headers:t?.body===void 0?void 0:{"Content-Type":`application/json`,...t?.headers}}),r=await n.json().catch(()=>({}));if(!n.ok||r.ok===!1)throw Error(r.error||`HTTP ${n.status}`);return r}async function _e(){try{return(await fetch(`${m}?health=1`,{signal:AbortSignal.timeout(1500)})).ok}catch{return!1}}async function ve(){return(await g(`/list`)).docs??[]}async function ye(e){return(await g(`/create`,{method:`POST`,body:JSON.stringify(e)})).doc}async function be(e,t){return(await g(`/`,{method:`PUT`,body:JSON.stringify({id:e,...t})})).doc}async function xe(e){await g(`/delete`,{method:`POST`,body:JSON.stringify({id:e})})}async function Se(){try{let e=await g(`/prompt`),t=e.decompose??``,n=e.stories??``;return{file:e.file||`需求分析提示词.md`,exists:e.exists===!0,decompose:t,stories:n||t,structure:e.structure??``,audit:e.audit??``,fix:e.fix??``}}catch(e){return{file:h,exists:!1,decompose:``,stories:``,structure:``,audit:``,fix:``,error:e instanceof Error?e.message:String(e)}}}async function Ce(e){return await g(`/prompt/sync`,{method:`POST`,body:JSON.stringify({enabled:e})})}async function we(e){return(await De(e)).content}async function Te(e,t=oe){try{let n=(await we(e)).trim();return{text:n.slice(0,t),total:n.length,truncated:n.length>t}}catch{return{text:``,total:0,truncated:!1}}}async function Ee(){return(await g(`/sources`)).files??[]}async function De(e){return g(`/source?path=${encodeURIComponent(e)}`)}var Oe=/[\s\p{P}\p{S}]+/gu;function _(e){return String(e??``).toLowerCase().replace(Oe,``)}function v(e){return Array.from(new Set(e.map(e=>String(e??``).trim()).filter(Boolean)))}function y(e,t=500){return typeof e==`string`?e.trim().slice(0,t):``}function b(e,t=30,n=500){return Array.isArray(e)?e.map(e=>y(e,n)).filter(Boolean).slice(0,t):[]}function ke(e){let t=2166136261,n=String(e??``);for(let e=0;e<n.length;e++)t^=n.charCodeAt(e),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,`0`)}function Ae(e){return ke(String(e??``))}function x(e,t=80){return String(e??``).replace(/\s+/g,` `).trim().slice(0,t)}function S(e){let t=String(e.sourceTitle||e.sourcePath||``).trim();if(t){let e=t.split(/[/\\]/).pop()?.trim();if(e)return e}return String(e.title||``).trim()||`未命名文档`}function je(e){return x((String(e??``).split(/[/\\]/).pop()?.replace(/\.[^.]+$/,``).trim()||``).replace(/_?需求文档$/u,``).replace(/_?需求说明$/u,``).replace(/_?需求$/u,``).trim())||`未命名需求`}function C(e){return String(e.sourceTitle||e.title||``).trim()||je(e.sourcePath)}function Me(e){let t=String(e??``).split(/[/\\]/).pop()?.trim()||``;return t=t.replace(/\.(xlsx|xls|docx|doc|md|txt|csv)$/i,``),t.replace(/_?需求文档$/u,``).replace(/_?需求说明$/u,``).replace(/_?需求$/u,``).replace(/迭代版本$/u,``).replace(/版本$/u,``).trim()}function Ne(e){let t=Me(e);return t=t.replace(/v?\d+(?:\.\d+)*/gi,``),t.replace(/[\s_\-—·()()[\]【】]+/gu,``).toLowerCase()}function w(e){let t=Me(e),n=/v(\d+(?:\.\d+)*)/i.exec(t)||/(\d+(?:\.\d+)+)/.exec(t);return n?.[1]?n[1].split(`.`).map(e=>{let t=Number(e);return Number.isFinite(t)?t:0}):null}function Pe(e,t){let n=Math.max(e.length,t.length);for(let r=0;r<n;r++){let n=e[r]??0,i=t[r]??0;if(n!==i)return n-i}return 0}function Fe(e,t){let n=C(e),r=Ne(n),i=w(n);return!r||!i?[]:t.filter(t=>{if(t.id===e.id)return!1;let n=C(t);if(Ne(n)!==r)return!1;let a=w(n);return a?Pe(a,i)<0:!1}).sort((e,t)=>Pe(w(C(e))??[],w(C(t))??[]))}function Ie(e){let t=[];for(let n of e){let e=C(n);for(let r of B(n.outline))t.push({docId:n.id,docLabel:e,point:r})}return t}function Le(e){let t=String(e??``).toLowerCase().replace(/\s+/g,` `).trim();if(!t)return[];let n=[];for(let e of t.matchAll(/[a-z0-9_]{2,}|[\u4e00-\u9fff]{2}/gu))n.push(e[0]);let r=t.replace(/[^\u4e00-\u9fff]/g,``);for(let e=0;e<r.length-1;e++)n.push(r.slice(e,e+2));return[...new Set(n)].slice(0,80)}var Re=40,ze=7e3;function Be(e,t,n){if(!t.length)return[];let r=Math.max(1,n?.maxItems??Re),i=Math.max(200,n?.maxChars??ze),a=Le(e),o=String(e??``).toLowerCase();if(!a.length&&!o.trim())return[];let s=[];for(let e of t){let t=e.point.title||``,n=(e.point.quote||e.point.body||``).slice(0,200),r=0;t&&o.includes(t.toLowerCase())&&(r+=8),n&&n.length>=4&&o.includes(n.toLowerCase().slice(0,40))&&(r+=5);let i=Le(`${t} ${n}`);for(let e of i)a.includes(e)&&(r+=e.length>=3?2:1);r<=0||s.push({...e,score:r})}s.sort((e,t)=>t.score-e.score||e.docLabel.localeCompare(t.docLabel,`zh`)||e.point.id.localeCompare(t.point.id));let c=[],l=0;for(let e of s){if(c.length>=r)break;let t=Ve(e);if(c.length>0&&l+t.length+1>i)break;c.push(e),l+=t.length+1}return c}function Ve(e){let t=e.point.kind===`query`?`查询`:e.point.kind===`mutate`?`修改`:`子点`,n=(e.point.quote||e.point.body||``).replace(/\s+/g,` `).trim().slice(0,120);return`- [${e.docLabel}] ${e.point.id} [${t}] ${e.point.title}${n?`(${n})`:``}`}function He(e){return e.length?[`## 历史迭代需求条目(检索参考,勿当作本版文档条目 id)`,`来源版本:${[...new Set(e.map(e=>e.docLabel))].join(`、`)}。下列 id 属于历史分析,禁止写入本版 sourceRefs;仅作能力对照与延伸参考。`,...e.map(Ve)].join(`
|
|
3
3
|
`):``}function Ue(e,t){if(!e?.length)return[];let n=new Map(t.map(e=>[e.id,e])),r=[];for(let t of e){let e=n.get(t);e&&B(e.outline).length&&r.push(e)}return r}function We(e){let t=String(e??``).trim();return t?!!(/^"+,{2,}/.test(t)||/^,{2,}/.test(t)&&/(待开发|已开发|需求\s*,\s*高|v\d+\.\d+)/.test(t)||!/【/.test(t)&&!/^\d+[、.]/.test(t)&&/,/.test(t)&&/(待开发|已关闭|已完成|需求\s*,\s*[高低中]|v\d+\.\d+|^\d{4}年\d{1,2}月)/.test(t)):!1}function Ge(e){let t=String(e??``),n=t.search(/"\s*,{2,}/);n>=0&&(t=t.slice(0,n));let r=t.split(`
|
|
4
4
|
`),i=[];for(let e of r){if(We(e))break;let t=e.search(/"\s*,{2,}/);if(t>=0){i.push(e.slice(0,t));break}i.push(e)}return i.join(`
|
|
5
5
|
`).replace(/^"/,``).replace(/"$/,``).trim()}function Ke(e){let t=Ge(e.body).slice(0,4e3),n=x(t.match(/【([^】\n]{1,40})】/)?.[1]||e.title||e.small);return{...e,title:n||e.small,body:t||`【${n||e.small}】`}}function T(e){return String(e??``).toLowerCase().replace(/[\s\p{P}\p{S}]+/gu,``)}function qe(e){let t=[],n=[],r=``,i=!1,a=!0;for(let o=0;o<e.length;o+=1){let s=e[o];i?s===`"`?e[o+1]===`"`?(r+=`"`,o+=1):i=!1:r+=s:s===`"`&&a?(i=!0,a=!1):s===`,`?(n.push(r),r=``,a=!0):s===`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/i18n.
|
|
2
|
-
import{c as e,l as t,o as n,r,s as i,t as a,u as o}from"./app-config.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_astro/i18n.D_aOCHSN.js","_astro/react.Blvh0GOs.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as e,l as t,o as n,r,s as i,t as a,u as o}from"./app-config.DkyjuL-S.js";var s=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),c=function(e){return`/`+e},l={},u=function(e){return e.pathname.endsWith(`.css`)},d=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},f=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function f(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=c(t,n);let r=f(t),i=u(r);return d(l,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:s,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function p(){let e=r(),t=e.model.providers.find(t=>t.id===e.model.activeId);return{contextWindow:typeof t?.contextWindow==`number`&&t.contextWindow>0?Math.floor(t.contextWindow):void 0,supportsTools:t?.supportsTools!==!1,supportsVision:t?.supportsVision===!0}}var m=[{label:`DeepSeek`,baseURL:`https://api.deepseek.com/v1`,model:``},{label:`通义千问`,baseURL:`https://dashscope.aliyuncs.com/compatible-mode/v1`,model:`qwen-plus`},{label:`OpenAI`,baseURL:`https://api.openai.com/v1`,model:`gpt-4o-mini`},{label:`自定义`,baseURL:``,model:``}],h=`tw-settings-changed`,g=`tw-open-settings`;function _(){return t()}function v(){return n()}function y(){return r().model.activeId}function b(t){let n=r(),s=[...n.model.providers],c=n.model.activeId,l=s.findIndex(e=>e.id===c);if(l<0){let e=i();s.push({id:e,name:`默认`,baseURL:t.baseURL.trim(),apiKey:t.apiKey.trim()||void 0,model:t.model.trim(),availableModels:t.availableModels}),c=e}else s[l]={...s[l],baseURL:t.baseURL.trim(),apiKey:t.apiKey.trim()||void 0,model:t.model.trim(),availableModels:t.availableModels};e(t.apiKey),o({model:{...n.model,activeId:c,reasoningEffort:t.reasoningEffort??n.model.reasoningEffort,providers:s}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(h))}function x(e,t){let n=r(),i=[...n.model.providers],s=i.findIndex(t=>t.id===e.id),c={...e,name:e.name.trim()||`未命名提供商`,baseURL:e.baseURL.trim(),model:e.model.trim(),apiKey:e.apiKey?.trim()||void 0};s>=0?i[s]=c:i.push(c);let l=t?.activate===!1&&n.model.activeId||c.id;return o({model:{...n.model,providers:i,activeId:l}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(h)),i}function S(e){let t=r(),n=t.model.providers.filter(t=>t.id!==e),i=t.model.activeId;return i===e&&(i=n[0]?.id??``),o({model:{...t.model,providers:n,activeId:i}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(h)),n}function C(e){let t=r();t.model.providers.some(t=>t.id===e)&&(o({model:{...t.model,activeId:e}}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(h)))}function w(e){let t=_();t&&b({...t,...e})}var T=`tw-access-changed`;function E(){return r().access}function D(e){o({access:e}),a(),typeof window<`u`&&window.dispatchEvent(new CustomEvent(T,{detail:e}))}function O(e){if(typeof window>`u`)return()=>{};let t=t=>{let n=t.detail;e(n??E())};return window.addEventListener(T,t),()=>window.removeEventListener(T,t)}function k(e){return window.addEventListener(h,e),()=>window.removeEventListener(h,e)}function A(e=`general`){window.dispatchEvent(new CustomEvent(g,{detail:{tab:e}}))}var j=`tw-general-prefs-changed`;function M(){return{...r().general}}function N(e){let t={...M(),...e};return t.sessionFontSize<12&&(t.sessionFontSize=12),t.sessionFontSize>22&&(t.sessionFontSize=22),o({general:t}),a(),R(t),typeof window<`u`&&window.dispatchEvent(new CustomEvent(j,{detail:t})),t}function P(e){if(typeof window>`u`)return()=>{};let t=t=>{e(t.detail??M())};return window.addEventListener(j,t),()=>window.removeEventListener(j,t)}var F=null,I=null;function L(e){return e===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:e}function R(e=M()){if(typeof document>`u`)return;let t=document.documentElement,n=L(e.appearance);t.dataset.theme=n,t.style.colorScheme=n,t.lang=e.language===`en`?`en`:`zh-CN`;let r=`${e.sessionFontSize}px`;t.style.setProperty(`--tw-ui-font-size`,r),t.style.setProperty(`--tw-session-font-size`,r),t.style.fontSize=``,F&&I&&(F.removeEventListener(`change`,I),F=null,I=null),e.appearance===`system`&&(F=window.matchMedia(`(prefers-color-scheme: dark)`),I=()=>{let e=L(`system`);t.dataset.theme=e,t.style.colorScheme=e},F.addEventListener(`change`,I));try{f(()=>import(`./i18n.D_aOCHSN.js`).then(e=>e.t).then(t=>t.applyDomI18n(e.language)),__vite__mapDeps([0,1]))}catch{}}export{N as _,p as a,f as b,M as c,O as d,P as f,D as g,w as h,S as i,v as l,A as m,m as n,y as o,k as p,R as r,E as s,g as t,_ as u,C as v,x as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e,t}from"./app-config.
|
|
1
|
+
import{f as e,t}from"./app-config.DkyjuL-S.js";import{n}from"./i18n.D_aOCHSN.js";var r=`/__tb_spaces`;async function i(e,t){try{let n=await fetch(e,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t??{})}),r=await n.json();return n.ok?r:{ok:!1,error:r?.error||`请求失败(HTTP ${n.status})`}}catch(e){return{ok:!1,error:e instanceof Error?e.message:String(e)}}}async function a(e){try{return(await fetch(r,{signal:e??AbortSignal.timeout(2e3)})).ok}catch{return!1}}async function o(t){try{let n=t?.stats?`${r}?stats=1`:r,i=await fetch(n);if(!i.ok)return null;let a=await i.json();return a?.activeId&&e(a.activeId),a}catch{return null}}async function s(n){await t();let a=await i(`${r}/switch`,{id:n});return a.ok&&e(n),a}function c(e,t){return i(`${r}/create`,{name:e,managedParent:t?.managedParent,switch:t?.switch===!0,systemPrompt:t?.systemPrompt,promptBrief:t?.promptBrief})}function l(e){let t=e instanceof Error?e.message:String(e??``);return!t.trim()||/^not found$/i.test(t.trim())?`本地服务版本较旧,还没有空间编辑接口;请重启本地服务后再试`:t}async function u(e){try{let t=await fetch(`${r}/detail?id=${encodeURIComponent(e)}`),n=await t.json();return t.ok?n:{ok:!1,error:l(n?.error??`HTTP ${t.status}`)}}catch(e){return{ok:!1,error:l(e)}}}async function d(e,t){let n=await i(`${r}/update`,{id:e,...t});return n.ok?n:{...n,error:l(n.error)}}function f(e,t){return i(`${r}/copy`,{id:e,name:t})}function p(e,t){return i(`${r}/delete`,{id:e,purge:t,confirm:t===!0})}function m(e,t=`full`){return`${r}/export?id=${encodeURIComponent(e)}${t===`content`?`&scope=content`:``}`}function h(e){return i(`${r}/discover`,Array.isArray(e)&&e.length?{adopt:e}:{})}async function g(e,t){let n=await e.arrayBuffer(),a=new Uint8Array(n),o=``,s=32768;for(let e=0;e<a.length;e+=s)o+=String.fromCharCode(...a.subarray(e,e+s));let c=btoa(o);return i(`${r}/import`,{zipBase64:c,name:t})}function _(e){return e.isPublic?n(`space.publicName`):e.name}function v(e,t){let n=e.includes(`\\`)?`\\`:`/`,r=t.replace(/[/\\]+$/,``),i=`${r}${n}空间池`;if(e===i)return r;let a=`${i}${n}`;return e.startsWith(a)?`${r}${n}${e.slice(a.length)}`:e}function y(e){if(!e||e<=0)return`—`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=0,r=e;for(;r>=1024&&n<t.length-1;)r/=1024,n+=1;return`${r<10&&n>0?r.toFixed(1):Math.round(r)} ${t[n]}`}export{_ as a,u as c,o as d,a as f,h as i,y as l,d as m,c as n,v as o,s as p,p as r,m as s,f as t,g as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{X as e,dt as t,ft as n,gt as r,ht as i,lt as a,mt as o,pt as s,r as c,s as l,t as u,ut as d}from"./req-analysis.
|
|
1
|
+
import{X as e,dt as t,ft as n,gt as r,ht as i,lt as a,mt as o,pt as s,r as c,s as l,t as u,ut as d}from"./req-analysis.B12_MGMQ.js";function f(t){return e(t)}var p=`/__tb_testpoints`,m=`测试点生成提示词.md`,h=[`functional`,`boundary`,`exception`,`business`,`nonfunctional`],g=[`P0`,`P1`,`P2`,`P3`],_={functional:{label:`功能`,hint:`主流程 / 替代流程 / 每个功能点`,tone:`blue`,accent:`bg-[#3370ff]`},boundary:{label:`边界值`,hint:`为空 / 上下限 / 刚好越界`,tone:`purple`,accent:`bg-[#7b5bd6]`},exception:{label:`异常`,hint:`失败路径 / 非法输入 / 并发`,tone:`red`,accent:`bg-[#e5484d]`},business:{label:`业务规则`,hint:`状态流转 / 权限 / 唯一性`,tone:`amber`,accent:`bg-[#d9820b]`},nonfunctional:{label:`非功能`,hint:`性能 / 安全 / 兼容 / 时区`,tone:`green`,accent:`bg-[#2f9e44]`}},v={P0:{label:`P0`,tone:`red`,markerId:`priority-1`},P1:{label:`P1`,tone:`amber`,markerId:`priority-2`},P2:{label:`P2`,tone:`blue`,markerId:`priority-3`},P3:{label:`P3`,tone:`gray`,markerId:`priority-4`}},y=Object.fromEntries(h.map(e=>[e,_[e].label]));async function b(e,t){let n=await fetch(`${p}${e}`,{...t,headers:t?.body===void 0?void 0:{"Content-Type":`application/json`,...t?.headers}}),r=await n.json().catch(()=>({}));if(!n.ok||r.ok===!1)throw Error(r.error||`HTTP ${n.status}`);return r}async function x(){try{let e=await b(`/prompt`);return{file:m,exists:e.exists===!0,generate:e.generate??``}}catch(e){return{file:m,exists:!1,generate:``,error:e instanceof Error?e.message:String(e)}}}async function S(e){return b(`/prompt/sync`,{method:`POST`,body:JSON.stringify({enabled:e})})}var C={P0:0,P1:1,P2:2,P3:3};function w(e){let t=e?.points??[],n={P0:0,P1:0,P2:0,P3:0};for(let e of t)e.priority in n&&(n[e.priority]+=1);return{total:t.length,byPriority:n,coveredDimensions:h.filter(e=>t.some(t=>t.dimension===e)).length}}function T(e){return[...e].sort((e,t)=>Number(!!e.supplemental)-Number(!!t.supplemental)||h.indexOf(e.dimension)-h.indexOf(t.dimension)||C[e.priority]-C[t.priority]||e.title.localeCompare(t.title,`zh`))}function E(e,t=[]){if(!e.length)return``;let n=D(e,t),r=[],i=`\0`;for(let e of n){let t=e.storyId||``;t!==i&&(i=t,r.push(t?`#### ${t}`:`#### 全局测试点`)),r.push(`- **[${e.priority}]** ${e.title}(${e.id})`),e.storyId&&r.push(` - 来源故事:${e.storyId}`),r.push(` - 维度:${_[e.dimension].label}`),e.precondition&&r.push(` - 前置:${e.precondition}`),e.steps.length&&r.push(` - 步骤:${e.steps.join(`;`)}`),e.expected&&r.push(` - 预期:${e.expected}`)}return r.join(`
|
|
2
2
|
`)}function D(e,t=[]){if(!e.length)return[];if(!t.length)return[...e];let n=new Map(t.map((e,t)=>[e,t]));return e.map((e,t)=>({point:e,index:t})).sort((e,r)=>(e.point.storyId?n.get(e.point.storyId)??t.length+1:t.length)-(r.point.storyId?n.get(r.point.storyId)??t.length+1:t.length)||e.index-r.index).map(e=>e.point)}function O(e){return(e||`需求分析`).replace(/[\\/:*?"<>|]/g,`_`).slice(0,60)}function k(e){let t=[];return e.precondition&&t.push(`前置条件:${e.precondition}`),e.steps.length&&(t.push(`步骤:`),e.steps.forEach((e,n)=>t.push(`${n+1}. ${e}`))),e.expected&&t.push(`预期:${e.expected}`),t.join(`
|
|
3
3
|
`)}function A(e){return{id:r(`tp`,e.id),title:`[${e.priority}] ${e.title}`,labels:[_[e.dimension].label],markers:[{markerId:v[e.priority].markerId}],notes:{plain:{content:k(e)}}}}var j=[{re:/ai\s*拆解|推送ai|回写拆解/i,title:`ai拆解`},{re:/ai自动同步|知识信息列表.*开关|知识信息管理/i,title:`知识信息管理`},{re:/信息审核|审核倒计时|出具审核结论|待审核信息/i,title:`政企通信息审核`},{re:/信息确认|确认无误|待确认信息/i,title:`政企通信息确认`},{re:/开通确认|确认开通/i,title:`政企通开通确认`},{re:/信息管理列表|承办单位修改|查看详情|政企通路径|关联信息标题/i,title:`政企通信息管理`},{re:/页面管理|页面树|节点|前台预览|本级节点布局|暂存|发给承办|信息列表|展示类型/i,title:`政企通页面管理`},{re:/菜单|子菜单|文案本地化|时间展示/i,title:`政企通`}];function M(e,t){return t.find(t=>t===e)||t.find(t=>e.length>=t.length&&e.includes(t))||t.find(t=>t.length>e.length&&t.includes(e))||null}function N(e,t,n){if(!n.length)return e.title||e.id;let r=e.title||``,i=`${r} ${e.sourceRefs.map(e=>t.get(e)||e).join(` `)}`,a=[...n].sort((e,t)=>t.length-e.length||e.localeCompare(t,`zh`));for(let e of j){if(!e.re.test(i))continue;let t=M(e.title,a);if(t)return t}for(let e of a)if(e&&r.includes(e))return e;for(let e of a)if(e&&i.includes(e))return e;for(let e of a){let t=e.split(` · `)[0]?.trim()??``;if(t&&r.includes(t))return e}for(let e of a){let t=e.split(` · `)[0]?.trim()??``;if(t&&i.includes(t))return e}return e.title||e.id}function P(e){let t=T(e);return h.map(e=>({key:e,label:_[e].label,hint:_[e].hint,points:t.filter(t=>t.dimension===e)}))}function F(e,t=[]){let n=e.testPoints?.points??[];if(!n.length)return[];let r=new Map(e.outline.map(e=>[e.id,e.title])),i=new Map(e.stories.map(e=>[e.id,e])),a=t.filter(Boolean),o=new Map,s=e=>{let t=o.get(e);return t||(t={title:e,storyIds:new Set,points:[]},o.set(e,t)),t};for(let e of a)s(e);for(let e of n){let t=e.storyId?i.get(e.storyId):void 0,n;n=t&&a.length?N(t,r,a):t?t.title||t.id:`全局测试点`;let o=s(n);o.points.push(e),e.storyId&&o.storyIds.add(e.storyId)}let c=[...a,...[...o.keys()].filter(e=>!a.includes(e)&&e!==`全局测试点`),...o.has(`全局测试点`)?[`全局测试点`]:[]],l=new Set,u=[];for(let e of c){if(l.has(e))continue;l.add(e);let t=o.get(e);t&&(t.points.length||a.includes(e))&&u.push({key:e,title:e,storyIds:[...t.storyIds],points:T(t.points),dimensions:P(t.points)})}return u}var I=a;function L(e,t){return t.map(t=>{let i=t.points.map(A);return{id:r(`dim`,`${e}:${t.key}`),title:`${t.label}(${t.points.length})`,structureClass:i.length?I:void 0,style:n,notes:{plain:{content:`${_[t.key].hint}\n测试点 ${t.points.length} 条`}},children:{attached:i}}})}function R(e){let t=L(e.key,e.dimensions);return{id:r(`req`,e.key),title:`${e.title}(${e.points.length})`,structureClass:I,style:d,notes:{plain:{content:[e.storyIds.length?`来源故事:${e.storyIds.join(`、`)}`:``,`测试点 ${e.points.length} 条`].filter(Boolean).join(`
|
|
4
4
|
`)}},children:{attached:t}}}function z(e,a=[]){let o=e.testPoints,s=F(e,a).filter(e=>e.points.length>0),c=f(e);if(!s.length)return[{id:`sheet-1`,class:`sheet`,title:c,theme:i(),rootTopic:{id:`root-topic`,title:`${c}(0)`,structureClass:I,style:t,notes:{plain:{content:o?.summary||`还没有测试点。`}},children:{attached:h.map(e=>({id:r(`dim`,e),title:`${_[e].label}(0)`,style:n,notes:{plain:{content:`${_[e].hint}\n测试点 0 条`}},children:{attached:[]}}))}}}];if(s.length===1){let e=s[0];return[{id:`sheet-1`,class:`sheet`,title:e.title,theme:i(),rootTopic:{id:r(`root`,e.key),title:`${e.title}(${e.points.length})`,structureClass:I,style:t,notes:{plain:{content:[o?.summary||``,e.storyIds.length?`来源故事:${e.storyIds.join(`、`)}`:``,`测试点 ${e.points.length} 条`].filter(Boolean).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as e}from"./app-config.
|
|
1
|
+
import{d as e}from"./app-config.DkyjuL-S.js";var t=[{id:`functional`,folder:`功能测试报告`,label:`功能测试报告`,defaultPrompt:`功能测试报告提示词.md`},{id:`api`,folder:`接口测试报告`,label:`接口测试报告`,defaultPrompt:`接口测试报告提示词.md`},{id:`perf`,folder:`性能测试报告`,label:`性能测试报告`,defaultPrompt:`性能测试报告提示词.md`}],n=`# 测试报告提示词
|
|
2
2
|
|
|
3
3
|
> 由「报告管理」插件按报告类型挂载。日常增删改请只改本空间「提示词管理」里的本文件。
|
|
4
4
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{p as e,v as t}from"./project-docs.CCjtiFjB.js";var n=`/__tb_uiauto`,r=`自动化执行提示词.md`,i=`自动化项目提示词.md`;function a(e,t){let n=String(e??``).trim();if(!n)return``;let r=n.split(`
|
|
2
|
+
`),i=[];if(r.forEach((e,t)=>{/^###\s+\S/.test(e)&&i.push(t)}),!i.length)return n;let a=r.slice(0,i[0]).join(`
|
|
3
|
+
`).trim(),o=String(t??``).trim().toLowerCase();if(!o)return a;for(let e=0;e<i.length;e+=1){let t=i[e],n=e+1<i.length?i[e+1]:r.length;if(r[t].replace(/^###\s+/,``).trim().toLowerCase().includes(o))return[a,r.slice(t+1,n).join(`
|
|
4
|
+
`).trim()].filter(Boolean).join(`
|
|
5
|
+
|
|
6
|
+
`)}return a}function o(e,t){let n=String(e??``),r={plan:``,agent:``,code:``,skeleton:``};if(!n.trim())return r;let i=``,o=[],s=()=>{let e=o.join(`
|
|
7
|
+
`).trim();i&&(r[i]=e),o=[]};for(let e of n.split(`
|
|
8
|
+
`)){let t=/^##\s+(.+?)\s*$/.exec(e);if(t){s();let e=t[1];i=/骨架/.test(e)?`skeleton`:/规划/.test(e)?`plan`:/探索/.test(e)?`agent`:/代码|出码/.test(e)?`code`:``}else(i||!/^#\s/.test(e)&&!/^>\s?/.test(e))&&i&&o.push(e)}return s(),r.skeleton=a(r.skeleton,t),r}function s(e){return[`# ${e.replace(/\.md$/i,``).trim()||`自动化执行提示词.md`.replace(/\.md$/i,``)}`,``,`> 自动化测试提示词:生成时按下面三段分别作为「规划 / 探索 / 出码」的系统提示词。`,``,`## 规划阶段`,``,`- 一行一步,只写「动作 + 目标」;`,`- 覆盖:打开页面、关键前置(登录 / 导航)、核心操作、至少一条结果断言。`,``,`## 探索阶段`,``,`- 每一步先用可读描述定位目标,再回填真实定位器;`,`- 关键节点截一张图,方便人确认;`,"- 账号 / 密码等占位数据写成 `${ENV_NAME}`,不要写死。",``,`## 生成代码`,``,`- 复用项目已有的 page object / fixture / 登录态,不要另起一套;`,`- 选择器用探索阶段确认过的定位器,不加与断言无关的 sleep。`,``].join(`
|
|
9
|
+
`)}function c(e){let t=Array.from(String(e??``)).map(e=>e.charCodeAt(0)<32||`\\/:*?"<>|`.includes(e)?` `:e).join(``).replace(/\s+/g,` `).trim();if(!t)return``;let n=/\.md$/i.test(t)?t:`${t}.md`;return n.length>120?``:n}async function l(n,r){let i=c(n);if(!i)throw Error(`文件名不合法:不能包含 / \\ : * ? " < > |`);let a=``;if(r)try{a=(await e(`prompts`,r)).content}catch{a=``}return await t(`prompts`,i,a.trim()?a:s(i)),i}async function u(e){let t=await fetch(`${n}/prompt/sync`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({enabled:e})});if(!t.ok)throw Error(`同步 UI 自动化测试提示词失败(${t.status})`);return await t.json()}async function d(t,n){let r=String(t??``).trim()||`自动化执行提示词.md`,i={ok:!1,file:r,exists:!1,plan:``,agent:``,code:``};try{let{content:t}=await e(`prompts`,r);return{ok:!0,file:r,exists:!!t.trim(),...o(t,n)}}catch(e){return{...i,error:e instanceof Error?e.message:String(e)}}}export{c as a,d as i,r as n,u as o,l as r,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`/__tb_uiauto`;function t(e){return e===`ui`?`UI`:e===`api`?`接口`:e===`test`?`测试`:``}var n={running:{label:`运行中`,tone:`blue`},passed:{label:`通过`,tone:`green`},failed:{label:`失败`,tone:`red`},cancelled:{label:`已取消`,tone:`gray`},error:{label:`错误`,tone:`red`},interrupted:{label:`已中断`,tone:`amber`}};function r(e){return e!==`running`}function i(e){if(!Number.isFinite(e)||e<=0)return`—`;if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<60)return`${t.toFixed(1)}s`;let n=Math.floor(t/60),r=Math.round(t%60);return n<60?`${n}m ${r}s`:`${Math.floor(n/60)}h ${n%60}m`}function a(e){let t=Date.parse(e);return Number.isFinite(t)?new Date(t).toLocaleString(`zh-CN`,{month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hour12:!1}):`—`}function o(e,t=`playwright`){if(!e)return`全量`;let n=[];return e.file&&n.push(e.file),e.grep&&(t===`pytest`?n.push(`-k ${e.grep}`):t===`selenium`?n.push(e.grep):n.push(`grep: ${e.grep}`)),t===`pytest`?(e.marker&&n.push(`-m ${e.marker}`),e.lastFailed&&n.push(`--lf`),e.bail&&n.push(`-x`),e.maxFail>0&&n.push(`--maxfail=${e.maxFail}`)):t===`playwright`&&(e.project&&n.push(e.project),e.headed&&n.push(`headed`),e.workers>0&&n.push(`workers=${e.workers}`),e.lastFailed&&n.push(`--last-failed`),e.bail&&n.push(`--max-failures=1`)),n.length?n.join(` · `):`全量`}function s(e){let t=(e??``).trim();if(!t)return``;let n=t[0]===`"`||t[0]===`'`?t[0]:``,r=t,i=``;if(n){let e=t.indexOf(n,1);r=e>0?t.slice(1,e):t.slice(1),i=e>0?t.slice(e+1).trim():``}else{let e=t.search(/\s/);r=e>0?t.slice(0,e):t,i=e>0?t.slice(e+1).trim():``}let a=/[\\/]/.test(r)?r.split(/[\\/]/).pop()??r:r;return i?`${a} ${i}`:a}function c(e){let t=[`共 ${e.total}`,`通过 ${e.passed}`,`失败 ${e.failed}`,`跳过 ${e.skipped}`];return e.flaky>0&&t.push(`不稳定 ${e.flaky}`),t.join(` · `)}async function l(t,n){let r=await fetch(`${e}${t}`,{...n,headers:n?.body===void 0?void 0:{"Content-Type":`application/json`,...n?.headers}}),i=await r.json().catch(()=>({}));if(!r.ok||i.ok===!1)throw Error(i.error||`HTTP ${r.status}`);return i}async function u(){let e=await l(`/projects`);return{projects:e.projects,frameworks:e.frameworks??[]}}function d(e){let t=String(e??``).trim().replace(/\\/g,`/`).replace(/\/+$/,``);return t?(/^[a-zA-Z]:$/.test(t)&&(t+=`/`),t):``}function f(e,t){let n=d(t);if(!n)return null;let r=e.find(e=>d(e.dir)===n);if(r)return r;let i=n.toLowerCase();return e.find(e=>d(e.dir).toLowerCase()===i)??null}async function p(){try{let{projects:e}=await u();return e.map(e=>(e.promptFile??``).trim()).filter(Boolean)}catch{return null}}async function m(e){return l(`/detect`,{method:`POST`,body:JSON.stringify({dir:e})})}async function h(){return(await l(`/scaffold/stacks`)).stacks??[]}async function g(e){return l(`/scaffold/preview`,{method:`POST`,body:JSON.stringify(e)})}async function _(e=`playwright`){return l(`/skeleton?stack=${encodeURIComponent(e)}`)}async function v(e){return l(`/scaffold/check`,{method:`POST`,body:JSON.stringify(e)})}async function y(e){return l(`/scaffold`,{method:`POST`,body:JSON.stringify(e)})}async function b(e){return l(`/scaffold/update`,{method:`POST`,body:JSON.stringify(e)})}var x=`lantern:uiauto:prompt-mounts`;function S(){typeof window<`u`&&window.dispatchEvent(new Event(x))}function C(e){return typeof window>`u`?()=>void 0:(window.addEventListener(x,e),()=>window.removeEventListener(x,e))}async function w(){let e=await l(`/pick-directory`,{method:`POST`});return e.canceled?``:e.dir??``}async function T(e,t=``,n){return(await l(`/projects`,{method:`POST`,body:JSON.stringify({dir:e,name:t,framework:n})})).project}async function E(e){return(await l(`/projects`,{method:`PATCH`,body:JSON.stringify(e)})).project}async function D(e){await l(`/projects?id=${encodeURIComponent(e)}`,{method:`DELETE`})}async function O(e,t={}){let n=await l(`/run`,{method:`POST`,body:JSON.stringify({projectId:e,...t})});return{run:n.run,envWarning:n.envWarning??``}}async function k(e){await l(`/stop`,{method:`POST`,body:JSON.stringify({runId:e})})}async function A(e){return l(`/run/allure`,{method:`POST`,body:JSON.stringify({runId:e})})}async function j(e,t=0){return l(`/run?${new URLSearchParams({id:e,offset:String(t)}).toString()}`)}async function M(e){return l(`/project/setup`,{method:`POST`,body:JSON.stringify({projectId:e})})}async function N(e,t=0){return l(`/project/setup?${new URLSearchParams({projectId:e,offset:String(t)}).toString()}`)}async function P(e){await l(`/project/setup/stop`,{method:`POST`,body:JSON.stringify({projectId:e})})}async function F(e){return(await l(`/scaffold/record?projectId=${encodeURIComponent(e)}`)).record}async function I(e){return(await l(`/runs?projectId=${encodeURIComponent(e)}`)).runs}async function L(e){await l(`/run?id=${encodeURIComponent(e)}`,{method:`DELETE`})}export{O as A,f as C,g as D,w as E,b as F,k as M,c as N,D as O,E as P,r as S,C as T,_,y as a,t as b,m as c,N as d,u as f,h as g,F as h,v as i,P as j,M as k,s as l,I as m,e as n,L as o,j as p,T as r,o as s,n as t,p as u,a as v,S as w,A as x,i as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e}from"./app-config.
|
|
1
|
+
import{p as e}from"./app-config.DkyjuL-S.js";var t=`tw.view.`;function n(n,r,i){try{let a=localStorage.getItem(e(`${t}${n}.v1`));return a&&r.includes(a)?a:i}catch{return i}}function r(n,r){try{localStorage.setItem(e(`${t}${n}.v1`),r)}catch{}}var i=200;function a(n,r=``){try{return localStorage.getItem(e(`${t}${n}.v1`))??r}catch{return r}}function o(n,r){try{let a=e(`${t}${n}.v1`),o=r.slice(0,i);o?localStorage.setItem(a,o):localStorage.removeItem(a)}catch{}}var s=2e4;function c(n,r){try{let i=localStorage.getItem(e(`${t}${n}.v1`));return!i||i.length>s?r:JSON.parse(i)}catch{return r}}function l(n,r){try{let i=JSON.stringify(r);if(typeof i!=`string`||i.length>s)return;localStorage.setItem(e(`${t}${n}.v1`),i)}catch{}}function u(n){try{localStorage.removeItem(e(`${t}${n}.v1`))}catch{}}export{l as a,u as i,n,r as o,a as r,o as s,c as t};
|
|
@@ -3,7 +3,62 @@
|
|
|
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.UKTVQqk7.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
|
+
/**
|
|
8
|
+
* 侧栏高亮兜底:按当前路径只留一个 is-active。
|
|
9
|
+
*
|
|
10
|
+
* React 岛屿(client:only + transition:persist)在某些场景会停在旧模块上
|
|
11
|
+
* (HMR 失败 / 缓存片段叠加),子路由相同的两个入口(自动化执行、自动化项目)
|
|
12
|
+
* 就可能同时亮着。这里不依赖岛屿,直接用 anchor href 的最长匹配校正一遍。
|
|
13
|
+
*/
|
|
14
|
+
(function () {
|
|
15
|
+
var dec = function (p) {
|
|
16
|
+
return (p || '/').replace(/\/+$/, '') || '/';
|
|
17
|
+
};
|
|
18
|
+
function syncNavActive() {
|
|
19
|
+
var host = document.querySelector('.tw-nav-libraries');
|
|
20
|
+
if (!host) return;
|
|
21
|
+
var here = dec(location.pathname);
|
|
22
|
+
var links = host.querySelectorAll('a.tw-nav-item-main');
|
|
23
|
+
// 岛屿还没渲染出菜单时不要动占位:否则首屏会短暂没有任何高亮
|
|
24
|
+
if (!links.length) return;
|
|
25
|
+
var best = null;
|
|
26
|
+
var bestLen = -1;
|
|
27
|
+
for (var i = 0; i < links.length; i++) {
|
|
28
|
+
var raw = (links[i].getAttribute('href') || '').split(/[?#]/)[0];
|
|
29
|
+
if (!raw) continue;
|
|
30
|
+
var target = dec(raw);
|
|
31
|
+
if (here !== target && here.indexOf(target + '/') !== 0) continue;
|
|
32
|
+
if (target.length > bestLen) {
|
|
33
|
+
bestLen = target.length;
|
|
34
|
+
best = links[i];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var rows = host.querySelectorAll('.tw-nav-item');
|
|
38
|
+
for (var j = 0; j < rows.length; j++) {
|
|
39
|
+
if (rows[j].classList.contains('tw-nav-summary')) continue;
|
|
40
|
+
rows[j].classList.remove('is-active');
|
|
41
|
+
rows[j].classList.remove('font-medium');
|
|
42
|
+
}
|
|
43
|
+
if (!best) return;
|
|
44
|
+
var row = best.closest('.tw-nav-item');
|
|
45
|
+
if (!row) return;
|
|
46
|
+
row.classList.add('is-active');
|
|
47
|
+
row.classList.add('font-medium');
|
|
48
|
+
}
|
|
49
|
+
function schedule() {
|
|
50
|
+
syncNavActive();
|
|
51
|
+
setTimeout(syncNavActive, 80);
|
|
52
|
+
setTimeout(syncNavActive, 320);
|
|
53
|
+
}
|
|
54
|
+
if (document.readyState === 'loading') {
|
|
55
|
+
document.addEventListener('DOMContentLoaded', schedule);
|
|
56
|
+
} else {
|
|
57
|
+
schedule();
|
|
58
|
+
}
|
|
59
|
+
document.addEventListener('astro:page-load', schedule);
|
|
60
|
+
})();
|
|
61
|
+
</script><script>
|
|
7
62
|
(function () {
|
|
8
63
|
try {
|
|
9
64
|
// 配置按空间分键(`tw.app.config.v1::<spaceId>`),主题必须从同一个键读,
|
|
@@ -100,7 +155,7 @@
|
|
|
100
155
|
}
|
|
101
156
|
} catch (e) {}
|
|
102
157
|
})();
|
|
103
|
-
</script><link rel="stylesheet" href="/_astro/Base.
|
|
158
|
+
</script><link rel="stylesheet" href="/_astro/Base.Bkt1lrgu.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) {
|
|
104
159
|
animation-duration: 180ms;
|
|
105
160
|
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
106
161
|
animation-fill-mode: both;
|
|
@@ -136,7 +191,7 @@
|
|
|
136
191
|
animation-duration: 180ms;
|
|
137
192
|
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
138
193
|
animation-fill-mode: both;
|
|
139
|
-
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.43">v0.1.43<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.DJqvw5Lw.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" 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 is-active font-medium" 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><a href="/test-reports/" class="tw-nav-item" data-plugin-nav="testReports" data-i18n-hint="nav.testReports"><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.testReports">报告管理</span></a></div><astro-island uid="Z1lgSd4" component-url="/_astro/NavLibraries.BnaL-km5.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";
|
|
194
|
+
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.45">v0.1.45<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.C47_S1g9.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" 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 is-active font-medium" 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><a href="/test-reports/" class="tw-nav-item" data-plugin-nav="testReports" data-i18n-hint="nav.testReports"><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.testReports">报告管理</span></a></div><astro-island uid="Z1lgSd4" component-url="/_astro/NavLibraries.DdQYsZbe.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";
|
|
140
195
|
const cacheKey = "tw.hydrate.nav";
|
|
141
196
|
const fixActive = true;
|
|
142
197
|
const capture = false;
|
|
@@ -429,7 +484,7 @@ const syncNavGroups = true;
|
|
|
429
484
|
// 缓存坏了就当没有
|
|
430
485
|
}
|
|
431
486
|
})();
|
|
432
|
-
})();</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.
|
|
487
|
+
})();</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.DYdtCvLc.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>
|
|
433
488
|
(function () {
|
|
434
489
|
try {
|
|
435
490
|
var raw = localStorage.getItem('tw.app.model.v1');
|
|
@@ -500,7 +555,8 @@ const syncNavGroups = true;
|
|
|
500
555
|
'nav.reports': 'Work Report',
|
|
501
556
|
'nav.testStats': 'Test Statistics',
|
|
502
557
|
'nav.caseExec': 'Case Execution',
|
|
503
|
-
'nav.
|
|
558
|
+
'nav.uiAutoProjects': 'Automation Projects',
|
|
559
|
+
'nav.uiAuto': 'Automation Runs',
|
|
504
560
|
'nav.reqAnalysis': 'Requirement Analysis',
|
|
505
561
|
'nav.caseManage': 'Test Cases',
|
|
506
562
|
'nav.prompts': 'Prompts',
|
|
@@ -537,7 +593,7 @@ const syncNavGroups = true;
|
|
|
537
593
|
});
|
|
538
594
|
} catch (e) {}
|
|
539
595
|
})();
|
|
540
|
-
</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">按项目分组记录每一轮用例执行情况:每个项目一张卡片,卡头是「项目 + 开始 / 结束日期」与该项目的累计执行率进度条,卡内按「统计日期」逐行填用例总数与待执行用例,已执行用例、当前剩余用例与执行比例都会自动算(比例按项目累计口径:以该项目第一条记录的用例总数为基线)。 卡头改周期会同步到该项目全部统计;项目名称在下拉里可以重命名或删除。 卡片按最新统计日期从新到旧排列,点「+ 添加项目」即写入数据文件(刷新不丢),单元格改完自动保存;支持搜索、批量删除与分页。数据保存在当前数据空间的<code class="mx-1 rounded bg-stone-100 px-1 py-0.5 text-[12px] text-stone-600">用例执行统计/用例执行统计.json</code>里。</p></header><div class="tw-hydrate-host"><astro-island uid="ZSO2RK" component-url="/_astro/CaseExecBoard.
|
|
596
|
+
</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">按项目分组记录每一轮用例执行情况:每个项目一张卡片,卡头是「项目 + 开始 / 结束日期」与该项目的累计执行率进度条,卡内按「统计日期」逐行填用例总数与待执行用例,已执行用例、当前剩余用例与执行比例都会自动算(比例按项目累计口径:以该项目第一条记录的用例总数为基线)。 卡头改周期会同步到该项目全部统计;项目名称在下拉里可以重命名或删除。 卡片按最新统计日期从新到旧排列,点「+ 添加项目」即写入数据文件(刷新不丢),单元格改完自动保存;支持搜索、批量删除与分页。数据保存在当前数据空间的<code class="mx-1 rounded bg-stone-100 px-1 py-0.5 text-[12px] text-stone-600">用例执行统计/用例执行统计.json</code>里。</p></header><div class="tw-hydrate-host"><astro-island uid="ZSO2RK" component-url="/_astro/CaseExecBoard.DICluCbK.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{}" ssr client="only" opts="{"name":"CaseExecBoard","value":"react"}"></astro-island><script>(function(){const host = ".tw-hydrate-host";
|
|
541
597
|
const cacheKey = "tw.hydrate.case-exec";
|
|
542
598
|
const fixActive = false;
|
|
543
599
|
const capture = true;
|