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
|
@@ -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,10 +155,10 @@
|
|
|
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"><style>.tw-docs[data-astro-cid-lpetmyok]{grid-template-columns:11.5rem minmax(0,1fr);gap:0;min-height:100vh;display:grid}@media (width>=1280px){.tw-docs[data-astro-cid-lpetmyok].has-toc{grid-template-columns:11.5rem minmax(0,1fr) 15rem}}.tw-docs-toc[data-astro-cid-lpetmyok]{display:none}@media (width>=1280px){.tw-docs[data-astro-cid-lpetmyok].has-toc .tw-docs-toc[data-astro-cid-lpetmyok]{border-left:1px solid var(--tw-border);display:block}}.tw-docs-toc-inner[data-astro-cid-lpetmyok]{max-height:100vh;padding:2.5rem 1.25rem 3rem 1.15rem;position:sticky;top:0;overflow-y:auto}.tw-docs-toc-title[data-astro-cid-lpetmyok]{letter-spacing:.08em;text-transform:uppercase;color:var(--tw-label-tertiary);margin:0 0 .65rem .55rem;font-size:.6875rem;font-weight:650}.tw-docs-toc-nav[data-astro-cid-lpetmyok]{flex-direction:column;gap:.1rem;display:flex}.tw-docs-toc-link[data-astro-cid-lpetmyok]{color:var(--tw-label-secondary);border-radius:8px;padding:.35rem .6rem;font-size:.8125rem;line-height:1.45;text-decoration:none;transition:background .12s,color .12s;display:block}.tw-docs-toc-link[data-astro-cid-lpetmyok].is-sub{padding-left:1.15rem;font-size:.78125rem}.tw-docs-toc-link[data-astro-cid-lpetmyok]:hover{color:var(--tw-label-primary);background:color-mix(in srgb, var(--tw-accent) 8%, transparent)}.tw-docs-rail[data-astro-cid-lpetmyok]{background:color-mix(in srgb, var(--tw-surface-rail-solid) 55%, var(--tw-surface-panel))}.tw-docs-rail-inner[data-astro-cid-lpetmyok]{max-height:100vh;padding:1.75rem .85rem 2.5rem 1.25rem;position:sticky;top:0;overflow-y:auto}.tw-docs-rail-title[data-astro-cid-lpetmyok]{letter-spacing:.08em;text-transform:uppercase;color:var(--tw-label-tertiary);margin:0 0 .65rem .55rem;font-size:.6875rem;font-weight:650}.tw-docs-rail-nav[data-astro-cid-lpetmyok]{flex-direction:column;gap:.2rem;display:flex}.tw-docs-rail-ext[data-astro-cid-lpetmyok]{border-top:1px solid var(--tw-border);flex-direction:column;gap:.2rem;margin-top:.85rem;padding-top:.55rem;display:flex}.tw-docs-rail-link[data-astro-cid-lpetmyok]{color:var(--tw-label-secondary);border-radius:8px;padding:.45rem .65rem;font-size:.875rem;line-height:1.35;text-decoration:none;transition:background .12s,color .12s;display:block}.tw-docs-rail-link[data-astro-cid-lpetmyok]:hover{color:var(--tw-label-primary);background:color-mix(in srgb, var(--tw-accent) 8%, transparent)}.tw-docs-rail-link[data-astro-cid-lpetmyok].is-active{color:var(--tw-accent);background:var(--tw-accent-soft);font-weight:600}.tw-docs-rail-link--ext[data-astro-cid-lpetmyok]:after{content:"↗";opacity:.65;margin-left:.35rem;font-size:.8em}.tw-docs-main[data-astro-cid-lpetmyok]{border-left:1px solid var(--tw-border);min-width:0}@media (width<=860px){.tw-docs[data-astro-cid-lpetmyok]{grid-template-columns:1fr}.tw-docs-rail[data-astro-cid-lpetmyok]{border-bottom:1px solid var(--tw-border)}.tw-docs-rail-inner[data-astro-cid-lpetmyok]{max-height:none;padding:1rem 1rem .75rem;position:static}.tw-docs-main[data-astro-cid-lpetmyok]{border-left:none}.tw-docs-rail-nav[data-astro-cid-lpetmyok]{flex-flow:wrap;gap:.35rem}.tw-docs-rail-title[data-astro-cid-lpetmyok]{width:100%;margin:0 0 .45rem .15rem}}
|
|
104
159
|
</style><script type="module" src="/_astro/page.Bx2KSkeL.js"></script><style>[data-astro-transition-scope="astro-v4xhcqov-3"] { view-transition-name: astro-v4xhcqov-3; }@layer astro { ::view-transition-old(astro-v4xhcqov-3) { animation: none; opacity: 0; mix-blend-mode: normal; }::view-transition-new(astro-v4xhcqov-3) { animation: none; mix-blend-mode: normal; }::view-transition-group(astro-v4xhcqov-3) { animation: none } }[data-astro-transition-fallback="old"] [data-astro-transition-scope="astro-v4xhcqov-3"],
|
|
105
160
|
[data-astro-transition-fallback="old"][data-astro-transition-scope="astro-v4xhcqov-3"] { animation: none; mix-blend-mode: normal; }[data-astro-transition-fallback="new"] [data-astro-transition-scope="astro-v4xhcqov-3"],
|
|
106
|
-
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-v4xhcqov-3"] { animation: none; mix-blend-mode: normal; }</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" 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";
|
|
161
|
+
[data-astro-transition-fallback="new"][data-astro-transition-scope="astro-v4xhcqov-3"] { animation: none; mix-blend-mode: normal; }</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" 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";
|
|
107
162
|
const cacheKey = "tw.hydrate.nav";
|
|
108
163
|
const fixActive = true;
|
|
109
164
|
const capture = false;
|
|
@@ -396,7 +451,7 @@ const syncNavGroups = true;
|
|
|
396
451
|
// 缓存坏了就当没有
|
|
397
452
|
}
|
|
398
453
|
})();
|
|
399
|
-
})();</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 is-active font-medium" 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.
|
|
454
|
+
})();</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 is-active font-medium" 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>
|
|
400
455
|
(function () {
|
|
401
456
|
try {
|
|
402
457
|
var raw = localStorage.getItem('tw.app.model.v1');
|
|
@@ -467,7 +522,8 @@ const syncNavGroups = true;
|
|
|
467
522
|
'nav.reports': 'Work Report',
|
|
468
523
|
'nav.testStats': 'Test Statistics',
|
|
469
524
|
'nav.caseExec': 'Case Execution',
|
|
470
|
-
'nav.
|
|
525
|
+
'nav.uiAutoProjects': 'Automation Projects',
|
|
526
|
+
'nav.uiAuto': 'Automation Runs',
|
|
471
527
|
'nav.reqAnalysis': 'Requirement Analysis',
|
|
472
528
|
'nav.caseManage': 'Test Cases',
|
|
473
529
|
'nav.prompts': 'Prompts',
|
|
@@ -592,6 +648,7 @@ const syncNavGroups = true;
|
|
|
592
648
|
<li>会话可置顶、重命名、归档、软删除;永久删除仅对已归档会话开放。标题由首条消息经模型自动生成短标题。</li>
|
|
593
649
|
<li>顶部搜索框可按工作区 / 会话标题 / 消息内容检索。</li>
|
|
594
650
|
<li>会话按工作区文件夹组织;输入区可切换 / 添加本地工作区,模型读写文件即落在该工作区。</li>
|
|
651
|
+
<li>侧栏工作区行点一下展开 / 再点收起(同时把它设为当前文件工作区,其它工作区收起);收起不会改当前工作区。切换会话时文件工作区跟着该会话的归属走,但同一条会话里手动点选 / 新增的工作区不会被列表刷新拉回去。展开的空工作区显示一行「该工作区还没有会话」,与嵌套会话标题左对齐。</li>
|
|
595
652
|
</ul>
|
|
596
653
|
<h3 id="对话-tab">对话 Tab</h3>
|
|
597
654
|
<ul>
|
|
@@ -697,7 +754,7 @@ const syncNavGroups = true;
|
|
|
697
754
|
<p>目录<strong>按插件开关懒建</strong>:新建 / 首次选中的数据空间只有隐藏的 <code>.lantern/</code> 元数据,启用对应内容库插件后才出现上表目录并补入种子文件;旧版本留下的空目录(只有 <code>.gitkeep</code>)会自动收起,已有文件的目录不动。<strong><code>提示词管理/</code> 是唯一例外</strong>:每个空间都有默认提示词,因此该目录与 <code>默认提示词.md</code> 会始终铺好。</p>
|
|
698
755
|
</blockquote>
|
|
699
756
|
<blockquote>
|
|
700
|
-
<p>待办、任务、工作汇报、测试统计、用例执行统计、项目管理的四个插件、人生管理的六张表的数据也直接放在空间里,跟侧栏入口对应:<code>待办事项/待办.json</code>、<code>任务管理/任务.json</code>、<code>工作汇报/日报 · 周报 · 月报/</code>、<code>测试统计/测试统计.json</code>、<code>用例执行统计/用例执行统计.json</code>、<code>项目列表/项目列表.json</code>、<code>迭代管理/迭代管理.json</code>、<code>需求管理/需求管理.json</code>、<code>缺陷管理/缺陷管理.json</code>、<code
|
|
757
|
+
<p>待办、任务、工作汇报、测试统计、用例执行统计、项目管理的四个插件、人生管理的六张表的数据也直接放在空间里,跟侧栏入口对应:<code>待办事项/待办.json</code>、<code>任务管理/任务.json</code>、<code>工作汇报/日报 · 周报 · 月报/</code>、<code>测试统计/测试统计.json</code>、<code>用例执行统计/用例执行统计.json</code>、<code>项目列表/项目列表.json</code>、<code>迭代管理/迭代管理.json</code>、<code>需求管理/需求管理.json</code>、<code>缺陷管理/缺陷管理.json</code>、<code>自动化项目/自动化项目.json</code>(挂载 / 生成的项目)、<code>自动化执行/自动化执行.json</code>(运行历史)、<code>KR待办/KR待办.json</code>、<code>KR任务/KR任务.json</code>、<code>Objective目标/Objective目标.json</code>、<code>OKR复盘/OKR复盘.json</code>、<code>年度计划/年度计划.json</code>、<code>人生阶段/人生阶段.json</code>;人生管理共用的计划类型 / 年度周期 / 人生周期目录配置落在 <code>.lantern/config/life/计划类型.json</code>、<code>.lantern/config/life/年度周期.json</code>、<code>.lantern/config/life/人生周期.json</code>(无侧栏入口、不单独建内容文件夹;首次读取人生管理时落盘种子;旧版 <code>计划类型/</code>、<code>年度周期/</code> 内容目录会在首次读取时自动迁入)。这些内容目录只在真的有数据时创建,没有数据就保持干净:打开开关、进入页面都不会预建空目录 / 空文件,第一次写入(新增记录、保存汇报文件)时才落盘。旧版放在 <code>.lantern/local/todos.json</code>、<code>tasks.json</code> 的数据读取时仍能直接看到,第一次写入时自动搬进 <code>待办事项/</code>、<code>任务管理/</code>;旧版四插件共用的 <code>项目管理/项目管理.json</code> 也会在首次读取或打开开关时自动拆到四个目录。</p>
|
|
701
758
|
</blockquote>
|
|
702
759
|
<blockquote>
|
|
703
760
|
<p>「空间管理」默认展示全部空间:右上角「+ 新增空间」新建并立即写入默认提示词;每行的「编辑」可修改空间名称、提示词要求与默认提示词正文,保存后工作台立即生效。</p>
|
|
@@ -788,7 +845,7 @@ const syncNavGroups = true;
|
|
|
788
845
|
<p>需求文档库的列表、文件夹计数以及<strong>需求分析的来源文档下拉</strong>,都会自动忽略系统 / 办公软件生成的临时文件:<code>.DS_Store</code>、<code>.gitkeep</code>、Office / WPS 的 <code>~$xxx.docx</code> 锁文件、Word 的 <code>~WRL*.tmp</code>、LibreOffice 的 <code>.~lock.*#</code>。这些文件仍保留在磁盘上,只是不显示、不计入数量;关掉对应的 Office 文档后 <code>~$</code> 文件会自动消失。</p>
|
|
789
846
|
</blockquote>
|
|
790
847
|
<p>用例管理 / 提示词管理 / 知识库管理的列表都支持搜索与「按修改日期 / 按文件名」排序;<strong>搜索词与排序方式会记住</strong>,刷新或重新进入页面仍是上次的样子(三个库各记各的,按当前数据空间分开存)。列宽也能调:拖动表头「评审 / 创建日期 / 修改日期 / 大小 / 操作」的右边缘改宽度;文件名那一列自动吃掉剩余宽度,调完不会在右边留空。列宽按库分别记住(<code>docs:cases:cols</code> 这类 key),刷新后保持。勾选列与文件名贴左固定、操作列贴右固定,横向滚动时不会滚丢;滚到哪儿也记着,刷新或切页回来仍是上次的位置。</p>
|
|
791
|
-
<p>提示词列表在「文件名」右侧多一列<strong>关联插件</strong>:<code>工作汇报提示词.md</code> 显示「工作汇报」、<code>
|
|
848
|
+
<p>提示词列表在「文件名」右侧多一列<strong>关联插件</strong>:<code>工作汇报提示词.md</code> 显示「工作汇报」、<code>自动化执行提示词.md</code> 显示「自动化执行」、<code>自动化项目提示词.md</code> 显示「自动化项目」(这两份都归自动化测试插件,按侧栏菜单分开显示)、<code>功能 / 接口 / 性能测试报告提示词.md</code> 显示「报告管理」、<code>默认提示词.md</code> 显示「系统默认」,其它提示词一律显示「未关联」。<strong>按实际挂载的也算关联</strong>:在自动化测试「挂载提示词」里给某个项目选了 <code>pytest提示词.md</code> 后,这里同样显示「自动化测试」;在工作汇报页把提示词换成自定义文件,则显示「工作汇报」;在报告管理按类型挂载的自定义文件同理显示「报告管理」。各项目 / 各报告类型各挂各的,互不影响。只有<strong>此刻真的被引用</strong>的那份才会再标一个「引用中」——一个项目或一个报告类型只挂一份,换掉挂载后上一份立刻变回普通提示词(<code>自动化执行提示词.md</code> 没人挂时只显示「自动化执行」,不带「引用中」)。另外有两类是<strong>入口固定引用</strong>、不需要挂载:需求分析插件开着就固定读「需求分析提示词.md」与「原文结构提示词.md」;自动化测试插件开着时,新建项目会固定读「自动化项目提示词.md」做骨架体检,所以这三份也会带「引用中」。<code>引用中</code> 的行 <code>删除 / 改名</code> 置灰并锁定(服务端也会拒绝,避免绕过界面),先换挂载或关掉对应插件再操作;插件自带的那份提示词在插件开启期间也保持锁定(插件要拿它做种子 / 模板),关掉插件后可删,再打开会重新生成种子。文件没删的话,再次打开插件会继续引用原来那份,不会被模板盖掉。旧版本的 <code>Playwright提示词.md</code> 会在打开插件时<strong>就地改名</strong>为 <code>自动化执行提示词.md</code>,正文一个字不动(用户改过的改动也一起保留);如果两份都在,新名字那份为准,旧的那份变成普通提示词,可以自行删掉。</p>
|
|
792
849
|
<p>每行还能直接经营:操作列在「在会话中打开」右侧有<strong>复制</strong>(同名同目录复制一份,先弹命名,默认 <code>原名(副本)</code>;同名会拦下)与<strong>删除</strong>(带图标),三者同一行对齐;文件名右侧悬停出现<strong>改名</strong>按钮,只改主名、扩展名锁定,同一目录下重名同样拦下并提示。改名 / 删除后列表立即刷新。移出自动化测试项目时,它挂载的提示词会自动取消挂载,这里立刻回到「未关联」(同页在线时即时刷新,不用等切页)。</p>
|
|
793
850
|
<h3 id="测试模板库格式">测试模板库格式</h3>
|
|
794
851
|
<table>
|
|
@@ -922,7 +979,7 @@ version: '1.0' # 可选
|
|
|
922
979
|
<td>测试技能</td>
|
|
923
980
|
<td>自动化测试</td>
|
|
924
981
|
<td>关</td>
|
|
925
|
-
<td
|
|
982
|
+
<td>侧栏出现「自动化项目」「自动化执行」两个入口:项目页挂载已有的 Playwright / pytest / Selenium 项目(自动识别框架)或按平台模板从零生成企业级框架,卡片上进入项目、项目配置(改名 / 一键安装依赖 / <code>.env.<ENV></code> 环境配置)、改目录、回看生成过程、在会话中打开、移出;执行页按项目自带任务运行,运行 / 停止用例、实时日志与 HTML 报告;「生成」Tab 先出可编辑步骤计划、再由 AI 驱动浏览器绑定定位器,写入时一次生成 spec + 页面对象 + 登录态文件(需本地服务);Playwright 项目可直接编辑 <code>.env.<ENV></code> 环境配置并在运行条选择 ENV</td>
|
|
926
983
|
</tr>
|
|
927
984
|
<tr>
|
|
928
985
|
<td>需求管理</td>
|
|
@@ -1199,33 +1256,81 @@ version: '1.0' # 可选
|
|
|
1199
1256
|
<li>顶部汇总显示记录数、项目数、已执行 / 基线用例数与整体执行率;<strong>整体执行率与卡头同一口径</strong>:Σ各项目(基线 − 该项目最新一条的剩余)÷ Σ各项目基线,每个项目的基线只算一次、不累加每轮的用例总数,也不会因为某轮把用例总数重填成更大的值而超过 100%。工具条支持「全选本页」与批量删除(二次确认),也支持按项目 / 统计日期搜索(项目名命中保留整卡,只命中行时只显示命中的行,基线仍按整组算),行尾还可删除单条。搜索词会记住(刷新 / 重新进入页面仍按上次的关键词过滤)。分页按<strong>项目</strong>计数(默认每页 20 个项目,可切换每页条数),卡片本身不再有整页横向滚动,窄屏时只有卡内小表横向滚动。卡内小表另有只读「创建日期 / 修改日期」;顶栏「字段」可勾选显示 / 隐藏卡内小表列(勾选、统计日期、操作始终保留;用例总数 / 待执行 / 已执行 / 剩余 / 执行比例 / 创建与修改日期可关),偏好按空间记在浏览器本地。</li>
|
|
1200
1257
|
</ul>
|
|
1201
1258
|
<h3 id="自动化测试">自动化测试</h3>
|
|
1202
|
-
<p
|
|
1259
|
+
<p>「我的插件」→「测试技能」→「自动化测试」开启后,侧栏出现两个入口:「自动化项目」(<code>/test-automation/projects/</code>)管理挂载 / 生成的项目,「自动化执行」(<code>/test-automation/</code>)跑用例、看日志与报告。项目页点「进入项目」会跳到执行页并带上该项目,也可以「在会话中打开」按项目目录接着聊。站点根 <code>/</code> 仍默认进「我的工作台」;自动化测试需从侧栏进入。</p>
|
|
1203
1260
|
<ul>
|
|
1204
|
-
<li
|
|
1261
|
+
<li><strong>项目页</strong>(<code>/test-automation/projects/</code>):卡片流(每行 1–4 张,随屏宽),卡上显示项目名与真实目录、框架徽标、UI / 接口类型、用例文件数、来源(挂载 / 生成)、上次运行状态与时间;目录被移走时标黄提示「目录已不存在」,项目没挂提示词时标「未挂载提示词」。顶部是项目数 + 搜索(按名称 / 目录,前端即时过滤)+「新建项目」。卡片底部是「进入项目」+「项目配置」(滑杆图标)+「更多」菜单:在会话中打开(把项目目录注册成工作区,并跳到工作台里同目录已有的会话;没有才新建)、打开本地目录(访达)、查看生成过程(只有生成过的项目才有)、重新指定目录(只改挂载记录,不动旧目录文件,新目录要能被识别出框架)、移出项目(二次确认,只删挂载记录,项目文件与历史报告都留,同时取消该项目挂载的提示词)。依赖在装时卡片状态行显示「正在安装依赖…」,失败会标红提醒重试(在「项目配置 → 运行环境」里重装);「在会话中打开」需要本地文件服务在线,否则置灰。没有项目时给两个按钮:「创建全新项目」「挂载本地项目」。</li>
|
|
1262
|
+
<li>「新建项目」是一个弹窗,先选方式(点卡片直接带进对应流程,也能在弹窗里切换):<ul>
|
|
1263
|
+
<li><strong>挂载本地项目</strong>:只有一步——「浏览…」调系统原生选目录,也可以直接粘贴 / 输入绝对路径(系统不允许弹窗时照样能挂载),确认后识别框架并挂载;同一个目录重复挂载会切到已有记录。</li>
|
|
1264
|
+
<li><strong>创建全新项目</strong>:选技术栈 → 填项目名与父目录 → 勾选可选内容 → <strong>检查</strong>(平台体检 + AI 审骨架)→ 看预览的文件清单 → 生成并自动挂载。预览按骨架的目录结构分组展示(<code>pages/</code>、<code>utils/</code>、<code>fixtures/</code>、<code>tests/smoke/</code> 这样一层层折起来,目录行右侧汇总「N 个 · 体积」,点目录可收起 / 展开,右上「全部展开」一键还原),不是平铺清单。目标目录必须不存在或为空,已有文件一律不覆盖;写盘后还会按插件口径复核一次,认不出来就整套回滚,不留半成品。</li>
|
|
1265
|
+
<li><strong>检查这一步看什么</strong>:左栏是实时日志(读骨架 → 结构检查 → 渲染检查 → 目标目录 → 读提示词 → AI 分析),每条带时间与阶段,AI 流式输出会边写边滚,底部可展开「AI 原始输出」;右栏上半是平台确定性检查(必需文件、路径安全、选项与产出文件是否对得上、目标目录可用性、<code>networkidle</code> 与写死凭据这类红线),<code>必须</code> 表示不修不该生成,下半是 AI 按「自动化项目提示词」给的建议。<strong>只有 AI 建议能勾选</strong>,每条下面列出会动到的文件(<code>+新增</code> / <code>~替换</code> / <code>-删除</code>),默认全选;点「应用 N 条建议并预览」会先把补丁应用到<strong>本次生成用的骨架副本</strong>上、再复核一遍,仍有 <code>必须</code> 项就停在检查页并说明原因。<strong>勾选只影响这一次生成</strong>,空间里的骨架文件不会被动;也可以「跳过检查,直接预览」(平台有 <code>必须</code> 项时不可用)。没配模型或没读到提示词时只跑平台检查,右栏会说明缺的是哪一份。</li>
|
|
1266
|
+
<li>AI 建议的补丁只有四种原子操作:<code>addFile</code>(新增文件,可带 <code>when</code> 选项条件)、<code>replaceFile</code>(整文件替换,必须命中已有文件)、<code>removeFile</code>、<code>setOptions</code>(增删选项)。模型只输出这些,不直接产出整份骨架。</li>
|
|
1267
|
+
<li><strong>完成页</strong>(生成成功后)不再让你复制命令:直接给「运行环境」面板,两行步骤是 <code>npm/pnpm/yarn install</code> 与对应的 <code>playwright install chromium</code>(按项目锁文件自动选包管理器),点「一键安装依赖」串行跑完两步,实时日志滚动、显示已用时,可随时「停止安装」;跑完会按插件自己的识别口径复核一遍,只要运行环境没就绪就标失败并给出原因,可「重试安装」。安装进程在服务端,关掉弹窗也不会中断,回到项目卡片还能看到进度。完成页还有「查看生成过程」。</li>
|
|
1268
|
+
<li><strong>生成过程留档</strong>:每次生成的检查日志(含阶段与时间)、平台体检与 AI 建议(标出哪几条真的应用了、每条会动哪些文件)、模型原始输出、最终文件清单,会随项目一起写入 <code><空间>/自动化执行/<项目名>/生成记录/生成过程.json</code>(同一项目只留最近一次,重新生成即覆盖)。项目卡片菜单与完成页的「查看生成过程」用弹窗分四个 Tab 回看:过程日志 / 检查与建议 / 文件清单(按骨架目录树折叠)/ 运行环境(安装记录,可当场重装)。手动挂载的项目没有这份记录,菜单里不显示入口。</li>
|
|
1269
|
+
</ul>
|
|
1270
|
+
</li>
|
|
1271
|
+
<li>执行页右上角也保留「挂载项目」:在卡片里展开目录面板(不是弹窗,按钮带箭头,再点一次收起),用来快速补挂;没挂载任何项目时面板常驻在空状态下方。首期支持:<ul>
|
|
1205
1272
|
<li><strong>Playwright</strong>(<code>playwright.config.*</code> 或依赖 <code>@playwright/test</code>)</li>
|
|
1206
1273
|
<li><strong>pytest</strong>(<code>pytest.ini</code> / <code>pyproject.toml</code> / <code>conftest.py</code> / 依赖 <code>pytest</code>;按依赖自动区分接口与 UI,<code>requests</code> / <code>httpx</code> 为接口自动化,<code>selenium</code> / <code>playwright</code> 为 UI 自动化)</li>
|
|
1207
1274
|
<li><strong>Selenium</strong>(Java 的 <code>pom.xml</code> / <code>build.gradle(.kts)</code> 含 selenium 依赖,或 Node 依赖 <code>selenium-webdriver</code> / <code>webdriverio</code>)</li>
|
|
1208
1275
|
</ul>
|
|
1209
1276
|
</li>
|
|
1277
|
+
<li><strong>新建项目</strong>(企业级骨架):见上面项目页的「创建全新项目」,选框架 → 填项目名与父目录(「浏览…」调系统选目录,也可直接粘贴路径)→ 勾选可选内容 → 看预览的文件清单 → 生成并自动挂载。生成的是根级分层:<ul>
|
|
1278
|
+
<li><code>pages/</code>(页面对象,<code>BasePage</code> 提供导航 / 表格等待 / toast 与 URL 断言,不用 <code>networkidle</code>)、<code>utils/</code>(<code>config</code> 环境变量、<code>env-loader</code> 多环境、<code>logger</code>、<code>data-generator</code> 造数、<code>api-auth</code> 接口登录)、<code>fixtures/test.ts</code>(注入 <code>loginPage</code> / <code>api</code> / <code>trackCleanup</code>,清理按逆序执行且单条失败不影响其它)、<code>data/</code>;</li>
|
|
1279
|
+
<li>用例只在 <code>tests/</code> 下按级别分:<code>tests/smoke/</code>(@smoke,P0 主流程)、<code>tests/regression/</code>(@regression,P1)、<code>tests/edge/</code>(@edge,P2/P3 与边界)、<code>tests/iteration/</code>(每个迭代一个文件,<code>npm run test:iteration</code>);</li>
|
|
1280
|
+
<li><strong>文件夹是归属维度,标签是分级维度</strong>,执行靠 <code>--grep</code> 全程生效:<code>test:smoke</code> / <code>test:regression</code>(同时含 <code>@smoke</code>)/ <code>test:edge</code> / <code>test:no-flaky</code>(<code>--grep-invert @flaky</code>)/ <code>test:last-failed</code>;</li>
|
|
1281
|
+
<li>平台出码按用例优先级映射标签:<code>P0 → @smoke</code>、<code>P1 → @regression</code>、<code>P2/P3 → @edge</code>(不双写 <code>@p0</code>);页面对象写根级 <code>pages/</code>,spec 里用相对 import(<code>../pages/LoginPage</code>)。</li>
|
|
1282
|
+
<li>可选内容(默认勾登录态 / CI / lint):<code>authState</code>(管理员 + 普通用户两份登录态,先试接口登录、失败退回 UI;生成后<strong>真实挂到 project 上</strong>——<code>chromium</code> 默认用 admin 身份,打了 <code>@user</code> 的用例只在 <code>chromium-user</code> 里跑 user 身份,登录类用例自己用 <code>test.use({ storageState: { cookies: [], origins: [] } })</code> 回到匿名;没配 <code>ADMIN_*</code> / <code>USER_*</code> 时不挂,避免读到不存在的 <code>.auth</code> 文件)、<code>ci</code>(<code>.github/workflows/playwright.yml</code> 门禁 format / lint / typecheck → 冒烟 2 分片 → blob 合并出 HTML;<code>regression.yml</code> 每日 02:00 跑 4 分片;Node 版本取 <code>.nvmrc</code>,有 <code>package-lock.json</code> 用 <code>npm ci</code>、没有退回 <code>npm install</code> 并告警;勾了 Allure 时结果也作为 artifact 上传;另带 <code>dependabot.yml</code> 与 PR 模板)、<code>lint</code>(ESLint + Prettier)、<code>husky</code>(commitlint + lint-staged + pre-push 跑 <code>tsc --noEmit</code>;没勾 lint 时 pre-commit 改跑 typecheck;<code>prepare</code> 带 <code>|| true</code>,目录还不是 git 仓库时 <code>npm install</code> 不会因此失败)、<code>allure</code>(<code>reports/allure-results</code> + <code>report:allure</code>,需本机装 Allure CLI)、<code>docker</code>(<code>Dockerfile</code> + <code>.dockerignore</code> + <code>Jenkinsfile</code>,参数化 LEVEL / TEST_ENV,CI 下测试失败也先合并 HTML 再归档)、<code>webServer</code>(本地自拉起被测系统,命令取 <code>WEB_SERVER_COMMAND</code>;CI 下不启动,直接打已部署环境)。</li>
|
|
1283
|
+
<li><strong>Node 版本有约束</strong>:根目录生成 <code>.nvmrc</code>(<code>package.json</code> 的 <code>engines.node</code> 同步),CI / 本地都按它对齐。</li>
|
|
1284
|
+
<li><strong>多环境是默认能力</strong>(不是选项):<code>ENV</code> + <code>.env.<ENV></code>(样板 <code>.env.test.example</code> / <code>.env.uat.example</code>),加载顺序 <code>.env.<ENV></code> → <code>.env</code>(不覆盖已有值);<code>ENV=prod</code> 时必须显式 <code>ALLOW_PROD=true</code> 才允许跑,避免误打到生产。账号一律走 <code>ADMIN_USERNAME</code> / <code>ADMIN_PASSWORD</code> / <code>USER_USERNAME</code> / <code>USER_PASSWORD</code>,不落仓库(不再生成空密码的 <code>data/test-users.json</code>)。</li>
|
|
1285
|
+
<li>建完自动把 <code>自动化执行提示词.md</code> 挂到该项目(文件不存在时补种子),不用再手选。</li>
|
|
1286
|
+
<li>生成后自己跑 <code>npm install</code> 与 <code>npx playwright install chromium</code>(插件不代装依赖 / 浏览器内核),<strong>装完把 <code>package-lock.json</code> 一起提交</strong>——CI 与 Dockerfile 有锁文件才走 <code>npm ci</code> 精确还原。</li>
|
|
1287
|
+
</ul>
|
|
1288
|
+
</li>
|
|
1289
|
+
<li><strong>骨架可改</strong>:骨架就是空间里的一份 JSON——<code>.lantern/config/uiauto/skeleton/playwright-ts.json</code>。向导里的选项、生成出来的文件都以它为准,改完刷新页面即生效(新空间缺文件时按内置种子补一份)。新建项目的<strong>结构</strong>只由这份骨架决定,提示词不会自己改它:<code>自动化执行提示词.md</code> 只影响生成用例,<code>自动化项目提示词.md</code> 只影响检查步骤里 AI 给出的建议(勾选后的补丁只应用于本次生成,不动这份文件)。格式:<code>files[]</code> 的 <code>when</code> 控制文件级开关(<code>"lint"</code> / <code>"!lint"</code>),正文里 <code>{{projectName}}</code> / <code>{{packageName}}</code> / <code>{{baseURL}}</code> / <code>{{stack}}</code> 是占位符,<code>{{#if lint}}…{{/if}}</code> / <code>{{#unless lint}}…{{/unless}}</code> 是文件内条件块(支持嵌套;GitHub Actions 的 <code>${{ … }}</code> 不会被当成模板)。种子指纹记在 <code>.lantern/local/uiauto-skeletons.json</code>:没人改过会随版本升级,你改过一个字不动;JSON 写坏了会回退内置骨架,并在预览里说明原因,不会挡住新建项目。</li>
|
|
1290
|
+
<li><strong>项目配置</strong>:卡片底部的滑杆按钮打开一个弹窗,左侧三个 Tab,一个入口管完单个项目的日常设置(「更多」菜单里不再重复这一项)。切 Tab 不会卸载面板,所以未保存的环境改动、正在跑的安装日志都还在。<ul>
|
|
1291
|
+
<li><strong>基本信息</strong>:改项目名(<strong>只改展示名</strong>,目录、报告 / 日志路径与历史链接都不变),看真实目录(可复制、可「打开」到访达)、框架 / 来源 / 用例文件数 / 最近运行时间,以及当前挂载的提示词(只读,换提示词在「自动化执行」顶栏)。底部收着一个折叠区「骨架同步(高级)」。</li>
|
|
1292
|
+
<li><strong>骨架同步(高级)</strong>:选技术栈、勾选附带内容、可选填写入 <code>.env.example</code> 的地址,点一次「同步骨架文件」就按空间骨架重渲染模板:缺的补上、旧模板更新,同名文件先备份到 <code><空间>/.lantern/local/uiauto-scaffold/backup/</code> 再覆盖。结果行显示「新增 X · 更新 Y · 未变 Z」与备份目录;<strong>不跑检查、不生成过程留档</strong>——要检查和预览请走「新建项目」的向导。</li>
|
|
1293
|
+
<li><strong>运行环境</strong>:就是「一键安装依赖」面板(<code>npm/pnpm/yarn install</code> + <code>playwright install chromium</code>,串行执行、实时日志、可停止 / 重装);日志区会撑满分区剩余高度,面板四边留 24px。安装进程在服务端,关掉弹窗也不中断。pytest / Selenium 显示只读说明,仍需自己装解释器与依赖。</li>
|
|
1294
|
+
<li><strong>环境配置</strong>:与执行页运行条上的环境弹窗是同一份面板(<code>.env</code> / <code>.env.<ENV></code> 分组编辑,详见下一节)。非 Playwright 项目这个 Tab 只给只读说明。</li>
|
|
1295
|
+
<li>左栏分区自带状态行:运行环境(已就绪 / 未就绪 / 安装中 / 失败 / 手动安装)、环境配置(当前 <code>.env.<ENV></code> 或「不支持」),不用点进去就知道哪一项要处理。目录已不存在时顶部标黄,并禁用所有写操作,先去「重新指定目录」。</li>
|
|
1296
|
+
<li>环境 Tab 有未保存改动时,点右上「✕」或遮罩会先确认一次;安装进行中允许直接关闭。</li>
|
|
1297
|
+
</ul>
|
|
1298
|
+
</li>
|
|
1299
|
+
<li><strong>环境配置(Playwright)</strong>:「项目配置 → 环境配置」,或执行页运行条上的「环境配置」按钮,直接读写项目里的 <code>.env</code> / <code>.env.<ENV></code>(环境面板不是第二套配置中心,CLI 与面板读的是同一份文件)。<ul>
|
|
1300
|
+
<li>面板顶部是环境 tab:<code>.env</code>(共用默认)、<code>.env.dev</code> / <code>.env.test</code> / <code>.env.uat</code>,以及「新建环境」自定义(名字只能是小写字母开头,允许数字 / <code>_</code> / <code>-</code>,最长 20 位)。切换环境时会先拦一下未保存的改动。</li>
|
|
1301
|
+
<li>变量按固定的四组展示(跟着骨架的 env-loader 口径走,不是自由分组):「基础」(<code>ENV</code> / <code>BASE_URL</code> / <code>ALLOW_PROD</code>)、「账号」(<code>ADMIN_*</code> / <code>USER_*</code>)、「接口登录」(<code>LOGIN_API_PATH</code> / <code>LOGIN_API_BODY</code> / <code>LOGIN_API_TOKEN_PATH</code> / <code>LOGIN_TOKEN_STORAGE_KEY</code>)、「其它变量」(<code>WEB_SERVER_COMMAND</code> 以及项目里已有的自定义 key)。已知 key 都有中文名与说明;自定义变量归到「其它变量」,也可以在「添加变量」里自己加、或删掉自定义变量。每组右侧的数字是这组的变量个数。</li>
|
|
1302
|
+
<li>「其它变量」会<strong>按文件里的注释块再分小节</strong>:某个自定义 key 上面紧挨着的 <code># 注释</code>(如 <code># SIP 自动应答(UDP)</code>、<code># 签入、内部呼叫</code>)会显示成小节标题,所以从别的项目搬过来的业务分组不会被压成一长条;连续几条 key 共用一个小节。</li>
|
|
1303
|
+
<li>变量多时不用一条条敲:「添加变量」右侧的「批量粘贴」可以直接贴一整段 <code>.env</code> 片段(带 <code># 注释</code> 也行),面板先显示识别到多少个变量,确认后写入当前环境文件——文件里已有的 key 只覆盖值(保留原行与行尾注释),新 key 连它上面的注释按粘贴顺序追加到文件末尾。</li>
|
|
1304
|
+
<li>「记为该项目默认环境」反映的是<strong>当前环境是不是项目默认</strong>,只可能有一个环境被勾上;切换环境时勾选状态跟着变(右上角会写「当前默认:<code>.env.dev</code>」)。勾上 + 保存 = 设为默认,取消勾选 + 保存 = 解除(仅当它本来就是默认时)。</li>
|
|
1305
|
+
<li>保存<strong>只改你动过的 key</strong>:注释、空行、<code>export KEY=</code> 写法与别的变量一个字符都不动;文件里缺的已知 key 追加到末尾。值里有空格或 <code>#</code> 时自动加引号,读回来还是原值。<code>.env.<ENV></code> 文件里的 <code>ENV</code> 固定成环境名(界面只读),避免文件和选择器打架。</li>
|
|
1306
|
+
<li>密钥(<code>PASSWORD</code> / <code>TOKEN</code> / <code>SECRET</code> / <code>API_KEY</code> / 名字里带这些的自定义变量)保存后只显示「已设置(留空不改)」,接口响应里没有明文;留空保存等于保留原值。</li>
|
|
1307
|
+
<li>保存前校验:<code>BASE_URL</code> 必须以 <code>http://</code> 或 <code>https://</code> 开头(结尾带 <code>/</code> 只提示);管理员 / 普通用户账号与密码要成对填写;<code>prod</code> 环境必须 <code>ALLOW_PROD=true</code>,否则不允许保存(项目里的 env-loader 也会直接拒绝运行)。</li>
|
|
1308
|
+
<li>文件是唯一真相,加载顺序仍是 <code>.env.<ENV></code> → <code>.env</code>(不覆盖已有值);<code>.env</code> / <code>.env.*</code> 已在骨架的 <code>.gitignore</code> 里,面板底部会显示当前文件的真实路径与「还没创建」状态。</li>
|
|
1309
|
+
<li>执行页运行条在「运行任务」右侧也有「环境」下拉(默认取项目记录的默认环境,「沿用文件 ENV」表示不覆盖文件里的值):选中的环境作为 <code>ENV</code> 传给子进程,只对 Playwright 生效;选择会写回项目记录,下次进来还是这套。任务命令里写死了别的 <code>ENV</code>(如 <code>cross-env ENV=uat</code>)而面板选的是 dev 时,下拉下方直接提示冲突,因为 shell 里后设的值会盖掉选择器。</li>
|
|
1310
|
+
<li>切换环境后 <code>.auth/admin.json</code> / <code>.auth/user.json</code> 里的旧 cookie 通常已失效:面板显示登录态文件数量,点「清理登录态」二次确认后只删这两个文件,不动目录。</li>
|
|
1311
|
+
<li>非 Playwright 项目只显示只读说明(pytest / Selenium 的配置方式各不相同,不在面板里编辑)。</li>
|
|
1312
|
+
</ul>
|
|
1313
|
+
</li>
|
|
1210
1314
|
<li><strong>运行任务</strong>是个下拉,对齐 Jenkins 的 choice 参数:除了「全量运行」(框架默认命令),还会把项目里<strong>原本就声明好的跑法</strong>列出来,挂载时扫一次,不用自己背命令:<ul>
|
|
1211
1315
|
<li>Playwright / Node:<code>package.json</code> 的 <code>scripts</code>,筛 <code>test</code>、<code>test:*</code>、<code>e2e*</code>、<code>smoke*</code> 这类名字(<code>lint</code> / <code>format</code> / <code>--ui</code> / <code>--debug</code> 这类打开界面或会导致挂住的跳过),显示成 <code>npm run test:smoke</code>(pnpm / yarn 自动换),执行时透传 <code>--reporter=list,json,html</code> 以拿到 JSON 汇总</li>
|
|
1212
1316
|
<li>pytest:<code>Makefile</code> 里带 <code>## 说明</code> 的测试目标(<code>make smoke</code>)+ <code>pyproject.toml</code> / <code>pytest.ini</code> 的 markers(<code>pytest -m smoke</code>),解释器按 <code>.venv</code> → <code>uv</code> / <code>poetry</code> → <code>python3</code> 自动选</li>
|
|
1213
1317
|
<li>Selenium:<code>pom.xml</code> 的 <code><profiles></code>(<code>mvn test -Psmoke</code>);Node 项目退回 <code>package.json</code> 脚本</li>
|
|
1214
1318
|
<li>下拉里的任务名统一显示成「<strong>名称(命令)</strong>」,例如 <code>smoke(make smoke)</code>、<code>test:smoke(npm run test:smoke)</code>;自定义命令没填名称就直接显示命令</li>
|
|
1215
1319
|
<li>下拉右侧的「<strong>配置</strong>」按钮打开运行配置弹窗,命令再多也只在弹窗里滚动,不会把卡片撑高:<ul>
|
|
1320
|
+
<li>面板顶部「<strong>运行方式</strong>」:无头(不弹窗口,和 CI 一致)/ 有头(弹出浏览器窗口,便于排查),默认无头并记成本机全局偏好,换项目也沿用;只有 Playwright 认这个开关,pytest / Selenium 项目显示「当前框架固定」不可切</li>
|
|
1216
1321
|
<li>上半「自定义命令」:自己写「名称 + 命令」(比如 <code>uv run pytest -m "smoke or regression"</code>),在项目目录下<strong>用 shell 执行</strong>,支持引号与 <code>&&</code>,可删除;名称可以不填,不填时下拉里直接显示命令</li>
|
|
1217
|
-
<li>下半「自动发现」:挂载时扫出来的任务,每行显示短名 + 完整命令 + 来源说明(过长自动省略号),可以<strong>修改</strong>(改名 / 改命令,改完标「已改」,命令按原样执行、不再追加框架参数)或<strong>删除</strong>;改动只存差异(<code>taskOverrides</code> / <code>hiddenTasks</code>),项目配置变了也不串。右上角「<strong>重新扫描</strong>」会立刻重扫项目配置(比如刚在 <code>package.json</code>
|
|
1322
|
+
<li>下半「自动发现」:挂载时扫出来的任务,每行显示短名 + 完整命令 + 来源说明(过长自动省略号),可以<strong>修改</strong>(改名 / 改命令,改完标「已改」,命令按原样执行、不再追加框架参数)或<strong>删除</strong>;改动只存差异(<code>taskOverrides</code> / <code>hiddenTasks</code>),项目配置变了也不串。右上角「<strong>重新扫描</strong>」会立刻重扫项目配置(比如刚在 <code>package.json</code> 里补了脚本),有改动时旁边还有「恢复默认」一键清空;删掉(忽略)的任务不留在下拉里,而是排到自动发现列表最后,可逐条「恢复」或「全部恢复」</li>
|
|
1218
1323
|
<li>面板底部不再放「完成」按钮:点右上 ✕、点遮罩或按 Esc 关闭即可,面板配色跟随深浅主题</li>
|
|
1219
1324
|
</ul>
|
|
1220
1325
|
</li>
|
|
1221
1326
|
</ul>
|
|
1222
1327
|
</li>
|
|
1223
|
-
<li>运行状态直接落在「运行」按钮上(按钮固定在运行条最右侧):运行中显示「运行中…」并禁用、旁边出现「停止」;跑完后按钮变成「重新运行」,并用绿 / 红 / 黄小圆点标出上次是通过 / 失败 / 中断。失败策略(仅上次失败 / 失败即停)由框架自身限制,界面上不再提供。文件、<code>-k</code> / <code>-m</code
|
|
1224
|
-
<li
|
|
1328
|
+
<li>运行状态直接落在「运行」按钮上(按钮固定在运行条最右侧):运行中显示「运行中…」并禁用、旁边出现「停止」;跑完后按钮变成「重新运行」,并用绿 / 红 / 黄小圆点标出上次是通过 / 失败 / 中断。失败策略(仅上次失败 / 失败即停)由框架自身限制,界面上不再提供。文件、<code>-k</code> / <code>-m</code>、并发这些筛选控件先收起,后续再定(有头 / 无头已移到运行配置弹窗顶部)。同一项目同时只允许一个运行,全局最多同时跑 2 个。</li>
|
|
1329
|
+
<li>移出最后一个项目后页面不跳走:仍在同一张卡片里,只是没有挂载内容,顶栏与「重新指定目录」面板的兜底说明还在。侧栏菜单与页面首屏会用上次渲染的缓存先铺一遍,刷新不再空白闪烁,数据挂载后自动刷新(空闲时每 15 秒对一次)。</li>
|
|
1225
1330
|
<li>停止:先向进程组发 SIGTERM,5 秒未退出再 SIGKILL,浏览器 / 子进程会一起结束,状态记为「已取消」。</li>
|
|
1226
1331
|
<li>日志:运行中每秒增量拉取,显示在卡片内的浅色日志面板里并默认自动滚底(往上翻时暂停,滚回底部自动恢复,不再有「自动滚动」勾选框);结束后保留原始日志,历史里点「日志」可回看。常见失败会额外给一句可操作提示(缺浏览器内核、没装 pytest、Maven 依赖下载失败等)。</li>
|
|
1227
|
-
<li>报告:运行结束后把项目自己生成的 HTML 报告快照到 <code
|
|
1228
|
-
<li>目录:页面上有「运行」「生成」「历史」三个 Tab,顶部是一行(下划线 Tab + 固定宽度提示词框 + 项目下拉 + 框架只读徽标 + 打开方式 +
|
|
1332
|
+
<li>报告:运行结束后把项目自己生成的 HTML 报告快照到 <code>自动化执行/<项目名>/报告/<runId>/</code>(Playwright 的 <code>playwright-report/</code>、Gradle 的 <code>build/reports/tests/test</code> 等;pytest 声明 <code>pytest-html</code> 时直接写进该目录),点「查看报告」在新标签打开,历史记录不会被下次运行覆盖;汇总条显示总数 / 通过 / 失败 / 跳过 / 耗时与本次命令(命令里的本机绝对路径收掉,只显示 <code>playwright test …</code> 这样的命令名 + 参数),Playwright 失败时可直接「重跑失败用例」(<code>--last-failed</code>)。</li>
|
|
1333
|
+
<li>目录:页面上有「运行」「生成」「历史」三个 Tab,顶部是一行(下划线 Tab + 固定宽度提示词框 + 项目下拉 + 框架只读徽标 + 打开方式 + 更多菜单),不再有左侧项目文件树,也不再有「挂载 / 新建」入口(两者统一在「自动化项目」页做);提示词框只显示当前挂载的文件名(超长省略号 + 气泡),点它打开挂载弹窗;项目下拉宽度固定,菜单每一项第二行显示真实目录(过长省略号 + 气泡),整项悬停右侧出现删除按钮,点它会二次确认后移出项目(只删挂载记录,项目文件与历史报告都留,<strong>该项目的提示词同时取消挂载</strong>,提示词管理里对应的「引用中」立即消失);更多菜单里有「复制项目路径 / 在访达中显示 / 重新指定目录 / 移出项目」;除「生成」里用户确认写入脚本外,插件不会修改项目文件。</li>
|
|
1229
1334
|
<li><strong>打开方式</strong>:顶栏右侧是一个分裂按钮——左侧显示当前应用的真实图标(默认 VS Code,点一下就用它打开项目目录),右侧箭头展开本机已安装的应用列表(VS Code / Cursor / Xcode / Sourcetree / iTerm / 终端 / 访达等,只列真装了的)。图标由后端从 <code>.app</code> 的 <code>.icns</code> 转成 PNG 缓存在本机配置目录 <code>.lantern/local/uiauto/app-icons/</code>,升级应用后自动重抽;选中项记在浏览器本地,下次沿用。</li>
|
|
1230
1335
|
<li><strong>生成</strong>(AI 写脚本):切到「生成」Tab 后整页铺满(隐藏页面标题、去掉卡片外边距与描边)。布局是左右两栏:左边「需求 / 步骤计划」占满整列全高(300–560px,可拖分隔条调宽),右边上半是「探索活动 / 代码 / 变更」+ 最近一步截图,下半是可拖高(160px–65vh)、可收起到 36px 的「控制台 / 网络 / 试跑」面板;面板 Tab 行正中有展开 / 收起图标,收起 / 展开带高度过渡。<ul>
|
|
1231
1336
|
<li><strong>探索不自动试跑</strong>:探索阶段模型只提交步骤、不调用 <code>ui_test_verify</code>;试跑由你在右下「试跑」里发起,失败才会带着日志让模型修步骤。</li>
|
|
@@ -1233,14 +1338,16 @@ version: '1.0' # 可选
|
|
|
1233
1338
|
<li><strong>探索时才绑定定位器</strong>:模型真的开一个浏览器把流程点一遍(默认有头,可以围观;也可以切无头),按无障碍快照里的临时 <code>ref</code> 操作,每步用 <code>locator_probe</code> 把 <code>ref</code> 换成定位器并校验「唯一 + 指的就是刚才点的元素」,带 <code>stepId</code> 时结果直接回填到左侧对应步骤(状态变「已绑定」并显示 <code>role=button name="登录"</code> 这样的摘要;没绑上会写原因)。随后由同一份步骤 JSON 渲染 TS(<code>@playwright/test</code>)或 pytest(<code>playwright.sync_api</code>)脚本,两种语言共用步骤,换语言只重新出码、不重跑模型。</li>
|
|
1234
1339
|
<li>定位器优先级按官方建议:<code>data-testid</code> → <code>getByRole</code> → <code>getByLabel</code> / <code>getByPlaceholder</code> → <code>getByText</code> → 稳定属性 → 短 CSS;只能靠长 CSS 或第 N 个同名元素时提示「低置信度」,不承诺全自动自愈。</li>
|
|
1235
1340
|
<li>账号等敏感值写成 <code>${ENV_NAME}</code>,出码变成 <code>process.env.NAME</code> / <code>os.environ.get("NAME")</code>,不会把凭据写进脚本;活动日志里填写 / 选择的值会打码,只保留 <code>${ENV}</code> 占位。</li>
|
|
1236
|
-
<li><strong>生成会话</strong>:需求、步骤计划、定位器绑定、试跑记录与每步截图只对本机有意义,存在本机缓存 <code>.lantern/local/uiauto/sessions/</code>(不进 <code
|
|
1341
|
+
<li><strong>生成会话</strong>:需求、步骤计划、定位器绑定、试跑记录与每步截图只对本机有意义,存在本机缓存 <code>.lantern/local/uiauto/sessions/</code>(不进 <code>自动化执行/</code> 内容目录,也不随空间同步);旧版本留在 <code>自动化测试/sessions/</code> 的会话会在插件启动后自动搬过来。</li>
|
|
1237
1342
|
<li><strong>草稿工作区</strong>:试跑写在项目内 <code>.lantern-ai/<会话>/</code>(目录自带 <code>.gitignore</code>,内容为 <code>*</code>),结构是 <code>playwright.config.ts</code>(继承项目配置,只把 <code>testDir</code> 指向 <code>./draft</code>)、<code>draft/<标题>.spec.ts</code>、<code>results/</code>。<strong>跑完不删</strong>:失败现场可以「打开草稿」「打开目录」、看 trace,也可以「调试运行」(<code>--headed --trace=on</code>)或「Playwright UI」(长驻进程,面板里给地址,可「结束 UI」;离开页面 / 服务退出会自动结束)。「清理草稿」手动清,超过 7 天的草稿在下次建会话时顺手清掉。</li>
|
|
1238
1343
|
<li>流程分三步、不自动串起来:<strong>生成步骤 → 开始探索 → 生成代码 → 试跑</strong>。探索只负责在浏览器里把流程点一遍并产出步骤;结束后按步骤出码(左栏「生成代码」可手动重出),<strong>不会自动试跑</strong>。试跑是右下「试跑」子 Tab 里的动作:失败时让模型只改步骤(定位器 / 等待 / 断言),最多 3 轮;没配模型就只跑一次、保留日志。页面行为本身不符合需求时保留失败并提示疑似缺陷,不会为了跑绿改断言。右下「试跑」子 Tab 显示状态、耗时、草稿 / trace 路径与上述调试按钮。</li>
|
|
1239
|
-
<li>确认路径后再「写入项目」:一条用例会同时产出<strong>整组文件</strong>——主用例(spec)、按页面拆出的 page object
|
|
1344
|
+
<li>确认路径后再「写入项目」:一条用例会同时产出<strong>整组文件</strong>——主用例(spec)、按页面拆出的 page object(新骨架落根级 <code>pages/<Page>.ts</code>,老项目回退 <code>tests/pages/<Page>.ts</code>;Python 为 <code><pagesDir>/<page>_page.py</code>)、项目有登录态时再加一个 <code><fixturesDir>/auth-state.ts</code> 常量文件(落点按项目实际目录判定:根上有 <code>pages/</code> 就用根级,否则用 <code>tests/</code> 下那套)。右上「代码」Tab 左侧是文件清单(标出「用例 / 页面 / 登录态」),右侧预览与可编辑的写入路径,左下按钮明确写「写入 N 个文件」;路径都在项目目录内、写入前整批预检。<strong>目标文件已存在时默认合并,不整文件覆盖</strong>:spec 只在原有文件末尾追加这个新用例(缺的 <code>import</code> 补到 import 区,<code>test.use</code> / <code>BASE_URL</code> 不重复),page object 只在类里补缺失的方法,登录态文件已有 <code>STORAGE_STATE</code> 就不动;合并写不进去(例如文件名撞上别的类)才按冲突处理,整批不写,此时勾选「整文件覆盖」再重试。写盘中途失败会按 before 回滚已写过的文件,不留半套。写入时记录 before / after,右上「变更」Tab 立刻出精确到行的 diff(新增绿 / 删除红 / 3 行上下文,追加的条目标「追加」),并能「打开文件」「打开目录」;下面还有一段只读的「项目工作区其它改动」(<code>git status</code>,过滤 <code>node_modules</code> / <code>.lantern-ai</code> 等噪音)。</li>
|
|
1240
1345
|
<li>写入后点「<strong>按项目配置验收</strong>」:用项目自己的 Playwright / pytest 命令跑正式文件(不再走草稿配置)。若文件被项目 <code>testMatch</code> 排除,会明确提示「没被项目配置识别为用例」,而不是笼统判失败。</li>
|
|
1241
|
-
<li><strong>提示词</strong
|
|
1346
|
+
<li><strong>提示词</strong>:打开「自动化测试」开关时(以及每次打开「自动化执行」页时补一次),会往当前空间的 <code>提示词管理/</code> 写两份种子,都不覆盖你改过的内容:<code>自动化执行提示词.md</code>(生成用例用,「自动化执行」入口读它)与 <code>自动化项目提示词.md</code>(新建项目时体检 / 补全骨架用,「自动化项目」入口读它);同一时刻还会把骨架种子写到 <code>.lantern/config/uiauto/skeleton/playwright-ts.json</code>。旧名 <code>Playwright提示词.md</code> 会在这一步就地改名成 <code>自动化执行提示词.md</code>,正文不动。</li>
|
|
1347
|
+
<li><strong>自动化执行提示词</strong>分「项目骨架 / 规划阶段 / 探索阶段 / 生成代码」四段,都是**「生成」这一侧的引导与规范**(不参与新建项目):「项目骨架」写目录与标签口径,会和「生成代码」一起拼进探索阶段的 system prompt;这一段支持<strong>按框架分子段</strong>(<code>### playwright</code> / <code>### pytest</code> / <code>### selenium</code>),平台按当前项目的框架只取对应那一份——命中时给「第一个子段之前的共用部分 + 该子段」,没命中(例如项目是 selenium、而文件里只写了 playwright / pytest)只给共用部分,不会把别的框架的标签口径(比如 <code>@smoke</code>)塞给 Python 项目;整段没写 <code>###</code> 子段的老提示词仍按整段使用。子段里的口径与实际出码一致:TS 页面对象是普通类(不继承骨架的 <code>BasePage</code>)、主用例落 testDir 根不自动分 <code>smoke/</code> <code>regression/</code> <code>edge/</code> 目录、级别只靠 tag;Python 出码不写 pytest marker;<code>selenium</code> 子段只说明「能跑现有用例、没有对应出码模板」。后三段分别用于「生成步骤」、「开始探索」和出码约定——出码与写入项目由平台按模板完成(模型没有读写项目文件的工具),这段只约束模型交给平台的用例标题、定位器与环境变量写法,并说明文件落点(TS 与 Python 都按 <code>playwright.config</code> 的 <code>testDir</code> 推,读不到就是 <code>tests/</code>)、页面对象 / 登录态由模板生成、已有文件默认只在末尾追加合并;支持占位符 <code>{{project}}</code> / <code>{{dir}}</code> / <code>{{kind}}</code> / <code>{{language}}</code> / <code>{{plan}}</code>(只在前两段生效);<code>{{kind}}</code> 按项目实际类型替换成「UI / 接口 / 测试」,没识别出来时是「未识别」。提示词开头有「本章范围」一段,明确本功能只产出浏览器 UI 自动化脚本(Playwright 或 pytest + playwright.sync_api),接口(requests / httpx)、App、性能自动化没有对应工具与出码模板——项目类型是「接口」或需求要测接口时,模型会直接说明不支持并停下,不会用浏览器硬编一段页面流程。</li>
|
|
1348
|
+
<li><strong>自动化项目提示词</strong>是给模型的「骨架评审协议」:输入是空间骨架的<strong>完整文件清单</strong>(含「仅当勾选某选项」的条件文件)+ 正文节选(配置 / 工具链类优先,其余文件只在清单里出现)+ 平台检查结论 + 本次项目信息,输出只允许一个 JSON(<code>{"findings":[...],"notes":""}</code>),每条问题可带 <code>addFile</code> / <code>replaceFile</code> / <code>removeFile</code> / <code>setOptions</code> 四种补丁。清单是判断「缺不缺文件」的唯一依据,正文没展开不算缺失;里面写死了硬约束(相对路径、必须保留清单里标为必需的入口配置——当前 Playwright 栈是 <code>package.json</code> / <code>playwright.config.ts</code> / 至少一个 spec、不写死凭据、不用 <code>networkidle</code>、不随手加依赖),还要求同一问题只报一条、补丁路径必须在清单里;改这份就等于改 AI 的检查口径;没这份文件时新建项目只跑平台检查,向导里会提示。顶栏项目下拉<strong>左边</strong>是一个固定宽度的提示词框:只显示当前项目挂载的那份文件名,超出省略号、悬停弹气泡显示全名,<strong>不做下拉、旁边也没有添加按钮</strong>;点它就打开「挂载提示词」弹窗——只列出<strong>能用来生成的</strong>提示词(<code>自动化执行提示词.md</code> + 用户在提示词管理里自己建的 <code>.md</code>,工作汇报 / 默认提示词这类别的用途不显示,<code>自动化项目提示词.md</code> 只给新建项目用、也不会出现在这里),选一份点「挂载」即挂到当前项目并存盘,<strong>挂上即被引用</strong>——提示词管理里立刻标「引用中」。弹窗里没有「跟随插件默认」,也没有新建入口;要新建提示词去「提示词管理 / 工作台」建,回到本页就能选到。<strong>项目没挂提示词时内容区会被拦住</strong>:顶栏提示词框标黄显示「未挂载提示词 · 点击挂载」,运行 / 生成 / 历史三个 Tab 都不显示内容,只给一句对应说明(运行要跑、生成要出码、历史需重跑)和「挂载提示词」按钮。<strong>不再一进页面 / 一切项目就自动弹窗</strong>——点按钮或提示词框才打开弹窗,随时可以取消,取消后保持未挂载、回到原来的拦截说明。挂载结果<strong>按项目保存、一个项目只挂一份</strong>:Playwright 项目和 pytest 项目可以各挂各的,换项目自动带出上次选的那份;在弹窗里换一份就替换掉原来那份,<strong>上一份立刻取消引用</strong>(提示词管理里不再标「引用中」,也恢复可删 / 可改名);项目里存的那份被删 / 改名时,同样按「未挂载」拦截,重新挂一份即可。</li>
|
|
1242
1349
|
<li><strong>新增提示词</strong>:在「提示词管理」或工作台里新建 / 编辑(<code>提示词管理</code> 支持直接复制一份再用改名按钮改成想要的名字),回到本页(切走再切回或刷新)就能在挂载弹窗里选到;自动化测试页不再内置新建入口。</li>
|
|
1243
|
-
<li><strong>平台约定</strong>:<strong>增删改提示词只改「提示词管理」里的文件</strong
|
|
1350
|
+
<li><strong>平台约定</strong>:<strong>增删改提示词只改「提示词管理」里的文件</strong>(系统运行时读的就是这里)。代码里只留几句缺省短种子(新空间缺文件时补种用);仓库 <code>提示词示例/</code> 下是完整参考稿(如 <code>自动化执行提示词.md</code>),写稿时可对照,不参与运行。点「生成步骤」/「开始探索」前读不到提示词(文件不存在,或没有可用的规划 / 探索段)时,会弹错误 toast 并停下,不会悄悄用兜底文案顶上。<strong>升级规则</strong>:你改过的内容一个字都不动;没改过的种子(内容与上次插件写入一致)会跟着代码里的短种子自动升级;老版本留下的种子第一次见到只登记指纹、不覆盖。插件开启期间这份文件不可删除 / 改名,关掉插件后可以删,再打开会重新生成种子。种子指纹记在 <code>.lantern/local/plugin-prompts.json</code>。</li>
|
|
1244
1351
|
<li>项目里已有 <code>auth-admin.json</code> / <code>auth-user.json</code> 会自动当登录态复用(填 <code>-</code> 表示不用)。需要验证码 / 2FA 时点「手动登录」:模型会在下一个工具调用前停住,你在已经弹出的浏览器窗口里把登录做完,再点「我已登录,继续」放行;这个按钮只在探索阶段、有头浏览器时出现(规划阶段没有浏览器窗口,不显示)。</li>
|
|
1245
1352
|
<li>重新点「生成步骤」或「开始探索」等于开新一轮:服务端会清掉上一轮的步骤 IR、试跑结果与活动日志,代码页 / 试跑面板同步清空,不会把上一条用例的脚本当成这次的产出。探索活动会跟着会话存下来,切走的 Tab 再回来、刷新页面都还能看到上一轮的过程。</li>
|
|
1246
1353
|
<li>步骤计划里只写测试动作(打开页面 / 点击 / 填写 / 断言 / 等待等),<strong>不会有「截图」步骤</strong>(计划不接受截图动作,提交了会被丢掉);探索时的截图用截图工具,那只是给你看的过程记录。步骤 IR 本身允许 <code>screenshot</code> 动作,一旦提交会出成 <code>page.screenshot</code> 写进脚本,所以提示词里明确要求不要用。</li>
|
|
@@ -1248,9 +1355,10 @@ version: '1.0' # 可选
|
|
|
1248
1355
|
<li>依赖项目自己装好的 Playwright(或 pytest-playwright),Harness 不额外下载浏览器;草稿放在被挂载项目的 <code>.lantern-ai/</code>。</li>
|
|
1249
1356
|
</ul>
|
|
1250
1357
|
</li>
|
|
1251
|
-
<li>数据按项目分目录:<code
|
|
1358
|
+
<li>数据按项目分目录:<code>自动化项目/自动化项目.json</code> 记挂载 / 生成的项目,<code>自动化执行/自动化执行.json</code> 记运行历史;每个项目的报告 / 结果 / 原始日志 / 生成记录各在自己的目录里(<code>自动化执行/<项目名>/报告/</code>、<code>结果/</code>、<code>日志/</code>、<code>生成记录/生成过程.json</code>),同名项目会自动加后缀;切换空间各用各的。这些目录只在实际写入时才创建,打开插件或进入页面不会预建空目录 / 空文件。</li>
|
|
1359
|
+
<li>工作台输入栏会自动认项目:当前工作区正好是某个自动化项目的目录时,工作区名称旁多一个「自动化项目」入口,可以直接一键安装依赖、查看生成过程,或跳到自动化项目页;别的工作区不显示这个入口。</li>
|
|
1252
1360
|
<li>旧版本的 <code>UI自动化/</code> 目录与平铺的 <code>报告/ 结果/ 日志/</code> 在首次读取时自动改名 / 搬迁到新结构,不需要重新打开插件开关,历史报告链接也不会失效。老数据没有框架字段时按 Playwright 处理。</li>
|
|
1253
|
-
<li>首次运行前请先在项目目录装好依赖 /
|
|
1361
|
+
<li>首次运行前请先在项目目录装好依赖 / 解释器:Playwright 项目可以直接用「一键安装依赖」(<code>npm/pnpm/yarn install</code> + <code>playwright install chromium</code>,服务端串行执行、有日志),其余技术栈(pytest / Selenium)仍需自己装 <code>pip install</code> / <code>mvn</code>,环境未就绪时卡片上会直接给提示。</li>
|
|
1254
1362
|
</ul>
|
|
1255
1363
|
<h3 id="需求分析">需求分析</h3>
|
|
1256
1364
|
<p>「我的插件」→「生成能力」→「需求分析」开启后,侧栏出现「需求分析」入口(<code>/requirement-analysis/</code>)。</p>
|