lantern-harness 0.1.20 → 0.1.21
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 +26 -0
- package/builtin/session/lh-fs.mjs +41 -1
- package/cli/data-root.mjs +11 -6
- package/cli/seed-skip.mjs +72 -0
- package/cli/spaces.mjs +23 -9
- package/dist/500.html +4 -4
- package/dist/_astro/Base.NUwtco4a.css +1 -0
- package/dist/_astro/{Base.astro_astro_type_script_index_0_lang.D3Mv75pF.js → Base.astro_astro_type_script_index_0_lang.2J3Qrd4B.js} +1 -1
- package/dist/_astro/{CaseExecBoard.cBdsZU9e.js → CaseExecBoard.CwH1rd8R.js} +1 -1
- package/dist/_astro/CaseGenerateApp.CpL1po9n.js +9 -0
- package/dist/_astro/CasesLibrary.DAZMRzzt.js +19 -0
- package/dist/_astro/ChatApp.iDy6-iVA.js +212 -0
- package/dist/_astro/{DashboardBoard.BNuKH_zX.js → DashboardBoard.BDURPamv.js} +1 -1
- package/dist/_astro/ExcelFieldTags.CXif3Ilh.js +1 -0
- package/dist/_astro/{KnowledgeLibrary.D0r8ieOZ.js → KnowledgeLibrary.B_99kzox.js} +1 -1
- package/dist/_astro/{NavLibraries.D1J9BwYo.js → NavLibraries.RH3Sinuh.js} +1 -1
- package/dist/_astro/PluginsPage.B349vNQ7.js +1 -0
- package/dist/_astro/{PluginsPage.BkwleEJf.js → PluginsPage.aQKIWMKz.js} +1 -1
- package/dist/_astro/{PmBugsBoard.BTtm1lki.js → PmBugsBoard.Catlw5fm.js} +1 -1
- package/dist/_astro/{PmIterationsBoard.Dm67iXe_.js → PmIterationsBoard.D4Bg969F.js} +1 -1
- package/dist/_astro/{PmProjectDetail.B7oWL7y-.js → PmProjectDetail.BYVt43oh.js} +1 -1
- package/dist/_astro/{PmProjectsBoard.8QI44RlE.js → PmProjectsBoard.D06_aCFK.js} +1 -1
- package/dist/_astro/PmRequirementsBoard.CyW9CfFH.js +1 -0
- package/dist/_astro/{PmRequirementsBoard.X98441HZ.js → PmRequirementsBoard.DuXUq0HB.js} +1 -1
- package/dist/_astro/PmShared.CwcLNMW2.js +1 -0
- package/dist/_astro/{PromptsLibrary.CjSQTnKT.js → PromptsLibrary.dMO4dOAT.js} +1 -1
- package/dist/_astro/{ReportsPage.BjcajHR6.js → ReportsPage.DOW1fswe.js} +1 -1
- package/dist/_astro/ReqAnalysisBoard.DQpPjNNr.js +29 -0
- package/dist/_astro/RequirementsLibrary.Dd2DRKxL.js +1 -0
- package/dist/_astro/SearchableSelect.DZb-mxqw.js +1 -0
- package/dist/_astro/{SettingsDialog.CmY3q7-S.js → SettingsDialog.BBYaIU0N.js} +1 -1
- package/dist/_astro/{SlideOverDrawer.HqVYaIjP.js → SlideOverDrawer.DMWJPD_W.js} +1 -1
- package/dist/_astro/{SpaceSwitcher.B8dzGxrR.js → SpaceSwitcher.DyzMNGfy.js} +2 -2
- package/dist/_astro/{TasksBoard.Bz_JL_uQ.js → TasksBoard.BODqpiYV.js} +1 -1
- package/dist/_astro/TemplatesLibrary.DDJLVEZk.js +1 -0
- package/dist/_astro/{TestStatsBoard.EIDxmU_8.js → TestStatsBoard.diX5s3sH.js} +1 -1
- package/dist/_astro/{TodosBoard.DV1VzVDe.js → TodosBoard.DQBEeiWU.js} +1 -1
- package/dist/_astro/{UiAutoBoard.BwKG4DcV.js → UiAutoBoard.3Xs5RjDq.js} +3 -3
- package/dist/_astro/app-version.BqfBCSsN.js +1 -0
- package/dist/_astro/case-fields.CtFiDM_d.js +1 -0
- package/dist/_astro/case-gen-run.BI_ld4oo.js +16 -0
- package/dist/_astro/case-review._K-6xl4v.js +3 -0
- package/dist/_astro/case-template.BGCVpSKI.js +5 -0
- package/dist/_astro/{i18n.B3BVhlok.js → i18n.CjqQGCAI.js} +1 -1
- package/dist/_astro/{index.astro_astro_type_script_index_0_lang.CM78W1qz.js → index.astro_astro_type_script_index_0_lang.DMnFoepS.js} +1 -1
- package/dist/_astro/{open-docs-in-session.B6uyOxPn.js → open-docs-in-session.Cj0J2-XT.js} +1 -1
- package/dist/_astro/{plugins.DYyAjBXb.js → plugins.CVM1IaoC.js} +1 -1
- package/dist/_astro/req-analysis.Dkbi-5A_.js +9 -0
- package/dist/_astro/{settings.BvxRxdqa.js → settings.B1yetppp.js} +2 -2
- package/dist/_astro/{spaces-client.Dy3tSPta.js → spaces-client.DnS6MgGy.js} +1 -1
- package/dist/_astro/story-review.DvCTzGfr.js +12 -0
- package/dist/case-exec/index.html +5 -5
- package/dist/cases/generate/index.html +5 -5
- package/dist/cases/library/index.html +5 -5
- package/dist/dashboard/index.html +5 -5
- package/dist/docs/changelog/index.html +29 -5
- package/dist/docs/install/index.html +4 -4
- package/dist/docs/manual/index.html +7 -5
- package/dist/index.html +1 -1
- package/dist/knowledge/index.html +5 -5
- package/dist/plugins/index.html +5 -5
- package/dist/pm/bugs/index.html +5 -5
- package/dist/pm/iterations/index.html +5 -5
- package/dist/pm/projects/detail/index.html +5 -5
- package/dist/pm/projects/index.html +5 -5
- package/dist/pm/requirements/index.html +5 -5
- package/dist/prompts/index.html +5 -5
- package/dist/reports/index.html +5 -5
- package/dist/requirement-analysis/index.html +5 -5
- package/dist/requirements/index.html +5 -5
- package/dist/tasks/index.html +5 -5
- package/dist/templates/index.html +5 -5
- package/dist/test-automation/index.html +5 -5
- package/dist/test-stats/index.html +5 -5
- package/dist/todos/index.html +5 -5
- package/dist/workbench/index.html +5 -5
- package/docs/lantern-harness.code-workspace +11 -0
- package/docs//346/223/215/344/275/234/346/211/213/345/206/214.md +3 -1
- package/lh-plugins/case-review-prompt.mjs +16 -13
- package/lh-plugins/lh-case-review.mjs +2 -0
- package/lh-plugins/lh-project-docs.mjs +17 -0
- package/lh-plugins/lh-reports.mjs +28 -44
- package/package.json +1 -1
- package/dist/_astro/Base.8d5eaaN-.css +0 -1
- package/dist/_astro/CaseGenerateApp.DLcUOrpS.js +0 -9
- package/dist/_astro/CasesLibrary.BghGVLeb.js +0 -19
- package/dist/_astro/ChatApp.DFRI7l4j.js +0 -226
- package/dist/_astro/ExcelFieldTags.ytbpKt-Z.js +0 -5
- package/dist/_astro/PluginsPage.tkNDzVHL.js +0 -1
- package/dist/_astro/PmRequirementsBoard.DMJVLCqz.js +0 -1
- package/dist/_astro/PmShared.DbDseTcc.js +0 -1
- package/dist/_astro/ReqAnalysisBoard.C9g4p0Q1.js +0 -29
- package/dist/_astro/RequirementsLibrary.B5TE-2Ds.js +0 -1
- package/dist/_astro/SearchableSelect.mvcBwegf.js +0 -1
- package/dist/_astro/TemplatesLibrary.DazYm5Sh.js +0 -1
- package/dist/_astro/app-version.BRO_L8TS.js +0 -1
- package/dist/_astro/case-review.DYyZat83.js +0 -3
- package/dist/_astro/req-analysis.DGQa1vaH.js +0 -6
- package/dist/_astro/story-review.BXXv0Ko_.js +0 -10
- package/dist/knowledge//345/212/237/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/347/274/226/345/206/231/350/247/204/350/214/203/index.html +0 -851
- package/dist/raw/knowledge//345/212/237/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/347/274/226/345/206/231/350/247/204/350/214/203.md +0 -168
- package/dist/raw/templates//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277.md +0 -58
- package/dist/raw/templates//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277.md +0 -54
- package/dist/raw/templates//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277.md +0 -35
- package/dist/raw/templates//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277.md +0 -48
- package/dist/raw/templates//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277.md +0 -30
- package/dist/templates//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//345/212/237/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +0 -710
- package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212//346/200/247/350/203/275/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +0 -690
- package/dist/templates//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213//346/200/247/350/203/275/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +0 -652
- package/dist/templates//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212//346/216/245/345/217/243/346/265/213/350/257/225/346/212/245/345/221/212/346/250/241/346/235/277/index.html +0 -679
- package/dist/templates//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213//350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/347/224/250/344/276/213/346/250/241/346/235/277/index.html +0 -654
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# 版本日志
|
|
2
2
|
|
|
3
|
+
## [0.1.21] - 2026-10-24
|
|
4
|
+
|
|
5
|
+
用例评审 / 场景补全写回与 Ideal 用例链路的一轮体验收口:补全用例按归属需求插入分组、评审改动能落到「待验证」,抽屉与工作台跳转不再丢状态或堆空会话。
|
|
6
|
+
|
|
7
|
+
### 新增
|
|
8
|
+
|
|
9
|
+
- **场景补全「归属需求」**:探测条目可带 `reqAnchor`;有编号原样用(前缀不限),没有编号再补自定义编号(同组共用),写回时插到对应需求分组最后一行之后,不再整批发到文件末尾
|
|
10
|
+
- **Ideal 需求一行一条归组**:测试点 / 导图 / 逻辑图 / 导出按 Ideal 表行标题归组;用例生成文件名与对照需求按「产品前缀 + 版本号」对齐(「版本 / 迭代版本」写法不影响匹配)
|
|
11
|
+
- **Ideal 模板下拉与默认状态**:生成 xlsx 时注入与理想功能模板一致的列下拉;「用例状态」空值默认「待验证」
|
|
12
|
+
|
|
13
|
+
### 修复
|
|
14
|
+
|
|
15
|
+
- **评审抽屉关了再开不丢进度**:模块级会话保住评审 / 探测 / 补全状态;关抽屉、切菜单再回来可续跑,支持停止
|
|
16
|
+
- **抽屉滑动动画**:`SlideOverDrawer` 改用 `transition-[translate]`,侧滑可见
|
|
17
|
+
- **工作台跳转不再堆空「新对话」**:优先复用当前 / 其它空会话,并顺手清理无草稿、无任务卡的空会话
|
|
18
|
+
- **批量修改胶囊名过长**:统一为短名「批量修改用例」,条数与文件放 detail;发送后以「要求」蓝条展示,可同步去掉对应用例 chip
|
|
19
|
+
- **对照表误进用例管理**:批量改完的对照表只写在对话里;用例库列表隐藏 `.bak*` 与「对照表」类噪音文件
|
|
20
|
+
- **作曲区 Ctrl+Z / Ctrl+Shift+Z**:受控输入补上撤销 / 重做栈,避免改任务卡后无法还原
|
|
21
|
+
|
|
22
|
+
### 优化
|
|
23
|
+
|
|
24
|
+
- **质评改完标「待验证」**:单条 / 批量修改写回时把「用例状态」标为待验证(无该列则跳过)
|
|
25
|
+
- **去掉评审预计耗时**:进度条不再展示容易卡住的 ETA
|
|
26
|
+
- **场景补全提示词**:探测要求尽量填归属需求;补全阶段原样保留 `reqAnchor`
|
|
27
|
+
- **操作手册**:场景补全写回改为「按归属需求插入分组」口径
|
|
28
|
+
|
|
3
29
|
## [0.1.20] - 2026-10-23
|
|
4
30
|
|
|
5
31
|
需求分析工作台的活动日志、测试点视图与会话压缩三处体验问题集中修复:日志不再切按钮就清空,测试点新增逻辑图视图,生成测试用例确认后自动预填指令。
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import { convertOfficeToPdf, probeOfficeToPdf } from './office-to-pdf.mjs';
|
|
22
22
|
import { listWorkspaceSkills, loadWorkspaceSkill } from './skill-fs.mjs';
|
|
23
23
|
import { getDataRoot } from './space-context.mjs';
|
|
24
|
-
import { LOCAL_REL } from './space-layout.mjs';
|
|
24
|
+
import { LOCAL_REL, resolveContentRoot } from './space-layout.mjs';
|
|
25
25
|
import { loadWorkspaceDependencies } from './workspace-deps.mjs';
|
|
26
26
|
|
|
27
27
|
const execFileAsync = promisify(execFile);
|
|
@@ -314,6 +314,39 @@ function isSystemSensitive(abs) {
|
|
|
314
314
|
return false;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
/**
|
|
318
|
+
* 内容目录若被拖进导航分组(如「工作管理/工作汇报」),相对路径仍写「工作汇报/…」时,
|
|
319
|
+
* 转到分组内的真实目录,避免在空间根再铺一份空壳导致列表读不到。
|
|
320
|
+
* @returns {{ abs: string, display: string } | null}
|
|
321
|
+
*/
|
|
322
|
+
function remapGroupedContentPath(workspaceRoot, cleanedRel) {
|
|
323
|
+
const parts = String(cleanedRel || '')
|
|
324
|
+
.split('/')
|
|
325
|
+
.filter(Boolean);
|
|
326
|
+
if (!parts.length) return null;
|
|
327
|
+
const leaf = parts[0];
|
|
328
|
+
if (leaf.startsWith('.')) return null;
|
|
329
|
+
let resolved;
|
|
330
|
+
try {
|
|
331
|
+
resolved = resolveContentRoot(workspaceRoot, leaf);
|
|
332
|
+
} catch {
|
|
333
|
+
return null;
|
|
334
|
+
}
|
|
335
|
+
const plain = path.join(path.resolve(workspaceRoot), leaf);
|
|
336
|
+
if (!resolved?.abs || path.resolve(resolved.abs) === path.resolve(plain)) return null;
|
|
337
|
+
// 分组内已有该目录,或 resolve 明确标了 grouped
|
|
338
|
+
let exists = false;
|
|
339
|
+
try {
|
|
340
|
+
exists = fs.statSync(resolved.abs).isDirectory();
|
|
341
|
+
} catch {
|
|
342
|
+
exists = false;
|
|
343
|
+
}
|
|
344
|
+
if (!resolved.grouped && !exists) return null;
|
|
345
|
+
const abs = parts.length > 1 ? path.join(resolved.abs, ...parts.slice(1)) : resolved.abs;
|
|
346
|
+
const display = path.relative(path.resolve(workspaceRoot), abs).split(path.sep).join('/') || '.';
|
|
347
|
+
return { abs, display };
|
|
348
|
+
}
|
|
349
|
+
|
|
317
350
|
/**
|
|
318
351
|
* @returns {{ abs: string, display: string, inWorkspace: boolean }}
|
|
319
352
|
*/
|
|
@@ -338,6 +371,13 @@ function resolvePath(workspaceRoot, input, access) {
|
|
|
338
371
|
}
|
|
339
372
|
|
|
340
373
|
const cleaned = raw.replace(/\\/g, '/').replace(/^\/+/, '');
|
|
374
|
+
const remapped = remapGroupedContentPath(ws, cleaned);
|
|
375
|
+
if (remapped) {
|
|
376
|
+
if (remapped.abs !== ws && !remapped.abs.startsWith(ws + path.sep)) {
|
|
377
|
+
throw new Error('路径超出当前工作区');
|
|
378
|
+
}
|
|
379
|
+
return { abs: remapped.abs, display: remapped.display, inWorkspace: true };
|
|
380
|
+
}
|
|
341
381
|
const abs = path.resolve(ws, cleaned);
|
|
342
382
|
if (abs !== ws && !abs.startsWith(ws + path.sep)) {
|
|
343
383
|
throw new Error('路径超出当前工作区');
|
package/cli/data-root.mjs
CHANGED
|
@@ -40,6 +40,7 @@ import {
|
|
|
40
40
|
migrateLegacyRoot,
|
|
41
41
|
} from '../lh-plugins/lh-project-docs.mjs';
|
|
42
42
|
import { markNavRootsDetected } from '../builtin/session/lh-nav-groups.mjs';
|
|
43
|
+
import { isSkippedSeed } from './seed-skip.mjs';
|
|
43
44
|
|
|
44
45
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
45
46
|
const PKG_ROOT = path.resolve(__dirname, '..');
|
|
@@ -344,8 +345,8 @@ export function seedSpaceDir(spaceDir) {
|
|
|
344
345
|
fs.writeFileSync(to, buf);
|
|
345
346
|
}
|
|
346
347
|
|
|
347
|
-
/** @param {string} srcDir @param {string} destDir @param {string} relPrefix */
|
|
348
|
-
function walk(srcDir, destDir, relPrefix) {
|
|
348
|
+
/** @param {string} srcDir @param {string} destDir @param {string} relPrefix @param {string} dirName */
|
|
349
|
+
function walk(srcDir, destDir, relPrefix, dirName) {
|
|
349
350
|
for (const name of fs.readdirSync(srcDir, { withFileTypes: true })) {
|
|
350
351
|
// .gitkeep / .DS_Store 等占位与系统文件不入种子
|
|
351
352
|
if (name.name.startsWith('.')) continue;
|
|
@@ -353,10 +354,12 @@ export function seedSpaceDir(spaceDir) {
|
|
|
353
354
|
const to = path.join(destDir, name.name);
|
|
354
355
|
const rel = relPrefix ? `${relPrefix}/${name.name}` : name.name;
|
|
355
356
|
if (name.isDirectory()) {
|
|
356
|
-
walk(from, to, rel);
|
|
357
|
+
walk(from, to, rel, dirName);
|
|
357
358
|
continue;
|
|
358
359
|
}
|
|
359
360
|
if (fs.existsSync(to)) continue;
|
|
361
|
+
// 用户删过的种子:记在 seed-skip,不再自动补回
|
|
362
|
+
if (isSkippedSeed(root, `${dirName}/${rel}`)) continue;
|
|
360
363
|
try {
|
|
361
364
|
fs.mkdirSync(path.dirname(to), { recursive: true });
|
|
362
365
|
copyFileNew(from, to);
|
|
@@ -398,7 +401,8 @@ export function seedSpaceDir(spaceDir) {
|
|
|
398
401
|
if (!isPublic && dirName === DOC_ROOT_DIRS.prompts.dirName) {
|
|
399
402
|
const from = path.join(seedDir, SPACE_SYSTEM_PROMPT_FILE);
|
|
400
403
|
const to = path.join(destDir, SPACE_SYSTEM_PROMPT_FILE);
|
|
401
|
-
|
|
404
|
+
const skipKey = `${dirName}/${SPACE_SYSTEM_PROMPT_FILE}`;
|
|
405
|
+
if (fs.existsSync(from) && !fs.existsSync(to) && !isSkippedSeed(root, skipKey)) {
|
|
402
406
|
try {
|
|
403
407
|
copyFileNew(from, to);
|
|
404
408
|
planted.push(SPACE_SYSTEM_PROMPT_FILE);
|
|
@@ -408,7 +412,7 @@ export function seedSpaceDir(spaceDir) {
|
|
|
408
412
|
}
|
|
409
413
|
continue;
|
|
410
414
|
}
|
|
411
|
-
walk(seedDir, destDir, '');
|
|
415
|
+
walk(seedDir, destDir, '', dirName);
|
|
412
416
|
}
|
|
413
417
|
return planted;
|
|
414
418
|
}
|
|
@@ -424,7 +428,8 @@ export function ensureSpaceSystemPrompt(spaceDir) {
|
|
|
424
428
|
const dir = resolveContentRoot(root, DOC_ROOT_DIRS.prompts.dirName).abs;
|
|
425
429
|
fs.mkdirSync(dir, { recursive: true });
|
|
426
430
|
const dest = path.join(dir, SPACE_SYSTEM_PROMPT_FILE);
|
|
427
|
-
|
|
431
|
+
const skipKey = `${DOC_ROOT_DIRS.prompts.dirName}/${SPACE_SYSTEM_PROMPT_FILE}`;
|
|
432
|
+
if (!fs.existsSync(dest) && !isSkippedSeed(root, skipKey)) {
|
|
428
433
|
const seed = path.join(PKG_SEEDS, DOC_ROOT_DIRS.prompts.dirName, SPACE_SYSTEM_PROMPT_FILE);
|
|
429
434
|
try {
|
|
430
435
|
if (fs.existsSync(seed)) {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 用户删过的随包种子:记在空间 `.lantern/local/seed-skip.json`,
|
|
3
|
+
* 下次 seedSpaceDir 不再自动补回(否则删了重启又冒出来)。
|
|
4
|
+
*
|
|
5
|
+
* 键格式:`<内容目录名>/<相对路径>`,posix,例如
|
|
6
|
+
* `测试模板库/功能测试用例/功能测试用例模板.xlsx`
|
|
7
|
+
*/
|
|
8
|
+
import fs from 'node:fs';
|
|
9
|
+
import path from 'node:path';
|
|
10
|
+
|
|
11
|
+
import { spaceLocalFile } from '../builtin/session/space-layout.mjs';
|
|
12
|
+
|
|
13
|
+
const SEED_SKIP_FILE = 'seed-skip.json';
|
|
14
|
+
|
|
15
|
+
function skipFile(spaceDir) {
|
|
16
|
+
return spaceLocalFile(spaceDir, SEED_SKIP_FILE);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function normalizeKey(key) {
|
|
20
|
+
return String(key || '')
|
|
21
|
+
.replace(/\\/g, '/')
|
|
22
|
+
.replace(/^\/+/, '')
|
|
23
|
+
.trim();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** @param {string} spaceDir */
|
|
27
|
+
export function listSkippedSeeds(spaceDir) {
|
|
28
|
+
try {
|
|
29
|
+
const raw = JSON.parse(fs.readFileSync(skipFile(spaceDir), 'utf8'));
|
|
30
|
+
const list = Array.isArray(raw?.paths) ? raw.paths : Array.isArray(raw) ? raw : [];
|
|
31
|
+
return list.map(normalizeKey).filter(Boolean);
|
|
32
|
+
} catch {
|
|
33
|
+
return [];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** @param {string} spaceDir @param {string} key */
|
|
38
|
+
export function isSkippedSeed(spaceDir, key) {
|
|
39
|
+
const k = normalizeKey(key);
|
|
40
|
+
if (!k) return false;
|
|
41
|
+
return listSkippedSeeds(spaceDir).includes(k);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** @param {string} spaceDir @param {string} key */
|
|
45
|
+
export function rememberSkippedSeed(spaceDir, key) {
|
|
46
|
+
const k = normalizeKey(key);
|
|
47
|
+
if (!k) return;
|
|
48
|
+
const prev = listSkippedSeeds(spaceDir);
|
|
49
|
+
if (prev.includes(k)) return;
|
|
50
|
+
const fp = skipFile(spaceDir);
|
|
51
|
+
fs.mkdirSync(path.dirname(fp), { recursive: true });
|
|
52
|
+
fs.writeFileSync(fp, `${JSON.stringify({ paths: [...prev, k] }, null, 2)}\n`, 'utf8');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** 用户又上传了同名文件:允许以后缺了再被种子补回 */
|
|
56
|
+
/** @param {string} spaceDir @param {string} key */
|
|
57
|
+
export function forgetSkippedSeed(spaceDir, key) {
|
|
58
|
+
const k = normalizeKey(key);
|
|
59
|
+
if (!k) return;
|
|
60
|
+
const next = listSkippedSeeds(spaceDir).filter((p) => p !== k);
|
|
61
|
+
const fp = skipFile(spaceDir);
|
|
62
|
+
if (!next.length) {
|
|
63
|
+
try {
|
|
64
|
+
fs.unlinkSync(fp);
|
|
65
|
+
} catch {
|
|
66
|
+
/* ignore */
|
|
67
|
+
}
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
fs.mkdirSync(path.dirname(fp), { recursive: true });
|
|
71
|
+
fs.writeFileSync(fp, `${JSON.stringify({ paths: next }, null, 2)}\n`, 'utf8');
|
|
72
|
+
}
|
package/cli/spaces.mjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* 文件位置:`~/.config/lantern-harness/spaces.json`(与 CLI 的 config.json 同目录)
|
|
5
5
|
*
|
|
6
6
|
* 一份文件里按「池根」分区:每个空间条目记着自己属于哪个数据目录(`root`),
|
|
7
|
-
* 激活项也按池根分别记录(`activeByRoot
|
|
8
|
-
*
|
|
7
|
+
* 激活项也按池根分别记录(`activeByRoot`)。空间管理列表会跨池根展示全部已登记空间,
|
|
8
|
+
* 方便在同一面板里切换;新建 / 扫描仍只落在当前池根。
|
|
9
9
|
* 旧版全局 `activeId` / 无 `root` 的条目在读取时按路径推断归属,向后兼容。
|
|
10
10
|
*
|
|
11
11
|
* 「公共空间」是内建虚拟项,不入库:用户数据目录下直接是 `公共空间/`,源码仓库则在 `空间池/公共空间/`。
|
|
@@ -632,7 +632,12 @@ export function discoverSpaces(opts = {}) {
|
|
|
632
632
|
}
|
|
633
633
|
|
|
634
634
|
/**
|
|
635
|
-
*
|
|
635
|
+
* 列举全部空间(含当前池根的内建「公共空间」)。
|
|
636
|
+
*
|
|
637
|
+
* 自定义空间按注册表**跨池根**返回:本机其它数据目录里已登记的空间也会出现在列表里,
|
|
638
|
+
* 可直接切换;当前池根的排在前面,其它池根的跟在后面。
|
|
639
|
+
* 「公共空间」仍只展示当前 `baseRoot` 下那一份(它是虚拟项,不入库)。
|
|
640
|
+
*
|
|
636
641
|
* @param {string} baseRoot 池根
|
|
637
642
|
*/
|
|
638
643
|
export function listSpaces(baseRoot) {
|
|
@@ -640,8 +645,11 @@ export function listSpaces(baseRoot) {
|
|
|
640
645
|
setRegistryRoot(root);
|
|
641
646
|
relocateSpaceRegistryPaths(root);
|
|
642
647
|
const reg = loadSpacesRegistry(root);
|
|
643
|
-
|
|
644
|
-
const
|
|
648
|
+
const mine = [];
|
|
649
|
+
const others = [];
|
|
650
|
+
for (const s of reg.spaces) {
|
|
651
|
+
(sameRoot(s.root, root) ? mine : others).push(s);
|
|
652
|
+
}
|
|
645
653
|
// 公共空间也是选中文件夹里的一个目录,与自定义空间同构
|
|
646
654
|
const publicRoot = path.resolve(publicSpacePath(root));
|
|
647
655
|
const all = [
|
|
@@ -651,8 +659,10 @@ export function listSpaces(baseRoot) {
|
|
|
651
659
|
path: publicRoot,
|
|
652
660
|
createdAt: 0,
|
|
653
661
|
isPublic: true,
|
|
662
|
+
root,
|
|
654
663
|
},
|
|
655
664
|
...mine.map((s) => ({ ...s, isPublic: false })),
|
|
665
|
+
...others.map((s) => ({ ...s, isPublic: false })),
|
|
656
666
|
];
|
|
657
667
|
const activeId = activeIdForRoot(reg, root);
|
|
658
668
|
return {
|
|
@@ -952,10 +962,14 @@ export function setActiveSpace(id) {
|
|
|
952
962
|
const reg = loadSpacesRegistry();
|
|
953
963
|
const wanted = String(id || PUBLIC_SPACE_ID);
|
|
954
964
|
const owner = reg.spaces.find((s) => s.id === wanted);
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
965
|
+
if (!reg.activeByRoot) reg.activeByRoot = {};
|
|
966
|
+
// 当前进程池根:保证本进程 getActiveSpaceId / 列表「当前」标记正确
|
|
967
|
+
// 空间所属池根:跨根切换后,回到那个数据目录时激活项也还在
|
|
968
|
+
const keys = new Set();
|
|
969
|
+
if (rootKey()) keys.add(path.resolve(rootKey()));
|
|
970
|
+
if (owner?.root) keys.add(path.resolve(owner.root));
|
|
971
|
+
for (const key of keys) {
|
|
972
|
+
reg.activeByRoot[key] = wanted;
|
|
959
973
|
}
|
|
960
974
|
reg.activeId = wanted;
|
|
961
975
|
saveSpacesRegistry(reg);
|
package/dist/500.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if ('scrollRestoration' in history) history.scrollRestoration = 'manual';
|
|
5
5
|
} catch (e) {}
|
|
6
|
-
</script><script type="module" src="/_astro/Base.astro_astro_type_script_index_0_lang.
|
|
6
|
+
</script><script type="module" src="/_astro/Base.astro_astro_type_script_index_0_lang.2J3Qrd4B.js"></script><meta name="astro-view-transitions-enabled" content="true"><meta name="astro-view-transitions-fallback" content="animate"><script type="module" src="/_astro/ClientRouter.astro_astro_type_script_index_0_lang.CO1cjG9V.js"></script><script>
|
|
7
7
|
(function () {
|
|
8
8
|
try {
|
|
9
9
|
// 配置按空间分键(`tw.app.config.v1::<spaceId>`),主题必须从同一个键读,
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
}
|
|
99
99
|
} catch (e) {}
|
|
100
100
|
})();
|
|
101
|
-
</script><link rel="stylesheet" href="/_astro/Base.
|
|
101
|
+
</script><link rel="stylesheet" href="/_astro/Base.NUwtco4a.css"><style>.tw-error-page[data-astro-cid-qnkxrarz]{text-align:center;background:var(--tw-surface-page);flex-direction:column;justify-content:center;align-items:center;gap:.75rem;min-height:100vh;padding:2rem 1.25rem;display:flex}.tw-error-title[data-astro-cid-qnkxrarz]{color:var(--tw-label-primary);margin:0;font-size:1.25rem;font-weight:650}.tw-error-desc[data-astro-cid-qnkxrarz]{color:var(--tw-label-secondary);margin:0;font-size:.875rem;line-height:1.5}.tw-error-pre[data-astro-cid-qnkxrarz]{border:1px solid var(--tw-border);background:color-mix(in srgb, var(--tw-surface-panel,#fff) 90%, transparent);text-align:left;max-width:28rem;max-height:8rem;color:var(--tw-label-secondary);white-space:pre-wrap;word-break:break-word;border-radius:.5rem;margin:.25rem 0 0;padding:.65rem .85rem;font-size:.7rem;line-height:1.5;overflow:auto}.tw-error-actions[data-astro-cid-qnkxrarz]{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin-top:.5rem;display:flex}.tw-error-btn[data-astro-cid-qnkxrarz]{cursor:pointer;border:1px solid #0000;border-radius:.5rem;justify-content:center;align-items:center;height:2.25rem;padding:0 1rem;font-size:.8125rem;font-weight:550;text-decoration:none;display:inline-flex}.tw-error-btn--primary[data-astro-cid-qnkxrarz]{color:#fff;background:#4176e6}.tw-error-btn--primary[data-astro-cid-qnkxrarz]:hover{background:#3565c7}.tw-error-btn--ghost[data-astro-cid-qnkxrarz]{color:var(--tw-label-secondary);border-color:var(--tw-border);background:0 0}.tw-error-btn--ghost[data-astro-cid-qnkxrarz]:hover{color:var(--tw-label-primary)}
|
|
102
102
|
</style><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) {
|
|
103
103
|
animation-duration: 180ms;
|
|
104
104
|
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
animation-duration: 180ms;
|
|
136
136
|
animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
|
|
137
137
|
animation-fill-mode: both;
|
|
138
|
-
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.20">v0.1.20<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.B8dzGxrR.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></div><astro-island uid="Z1lgSd4" component-url="/_astro/NavLibraries.D1J9BwYo.js" component-export="default" renderer-url="/_astro/client.BHNTqLjv.js" props="{"data-astro-transition-persist":[0,"astro-iywf7oe7-2"]}" ssr client="only" opts="{"name":"NavLibraries","value":"react"}" data-astro-transition-persist="astro-iywf7oe7-2"></astro-island><script>(function(){const host = ".tw-nav-libraries";
|
|
138
|
+
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.21">v0.1.21<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.DyzMNGfy.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></div><astro-island uid="Z1lgSd4" component-url="/_astro/NavLibraries.RH3Sinuh.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";
|
|
139
139
|
const cacheKey = "tw.hydrate.nav";
|
|
140
140
|
const fixActive = true;
|
|
141
141
|
const capture = false;
|
|
@@ -365,7 +365,7 @@ const syncNavGroups = true;
|
|
|
365
365
|
// 缓存坏了就当没有
|
|
366
366
|
}
|
|
367
367
|
})();
|
|
368
|
-
})();</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.
|
|
368
|
+
})();</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.BBYaIU0N.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>
|
|
369
369
|
(function () {
|
|
370
370
|
try {
|
|
371
371
|
var raw = localStorage.getItem('tw.app.model.v1');
|