diff --git a/app.js b/app.js index 4d312c2..f6e1911 100644 --- a/app.js +++ b/app.js @@ -3370,17 +3370,13 @@ class CLIProxyManager { if (fileStats.success === 0 && fileStats.failure === 0) { const nameWithoutExt = file.name.replace(/\.[^/.]+$/, ""); // 去掉扩展名 - // 后端有两种脱敏规则,都要尝试: - // 规则1:完整描述脱敏 - mikiunameina@gmail.com (ethereal-advice-465201-t0) -> 脱敏 -> miki...-t0) - // 规则2:直接整体脱敏 - mikiunameina@gmail.com-ethereal-advice-465201-t0 -> 脱敏 -> ??? - const possibleSources = []; // 规则1:尝试完整描述脱敏 const match = nameWithoutExt.match(/^([^@]+@[^-]+)-(.+)$/); if (match) { - const email = match[1]; // mikiunameina@gmail.com - const projectName = match[2]; // ethereal-advice-465201-t0 + const email = match[1]; + const projectName = match[2]; // 组合成完整的描述格式 const fullDescription = `${email} (${projectName})`; @@ -3448,8 +3444,28 @@ class CLIProxyManager { } const typeBadge = `${i18n.t(typeDisplayKey)}`; + // 检查是否为 runtime-only 文件 + const isRuntimeOnly = file.runtime_only === true; + + // 生成操作按钮 HTML,runtime-only 文件显示虚拟标记 + const actionsHtml = isRuntimeOnly ? ` +