fix: 修复审核记录导出进度与后台等待机制
为审核记录导出增加可复用的本地后台任务及 status/wait/list,等待超时或观察进程退出后任务继续执行。 统一实时脱敏诊断输出,保留 stdout 单一 JSON;补齐高级参数、预览和筛选配置摘要。 默认保留合思未找到单据,分别统计单据与审核记录,并显式报告部分补取失败。 补充 CLI/Skill 版本诊断、技能路由及回归测试,修复企业列表加载开销和源码更新测试隔离。
This commit is contained in:
1 parent
477cc630b4
commit
db5a3f7139
24 files changed
+1239
-174
No files matched your search
@@ -5,18 +5,15 @@ import {
|
||||
saveGlobalConfig,
|
||||
updateCorpConfig
|
||||
} from "../../../core/config/loader.js";
|
||||
import { filterCorpsFuzzy } from "../../../core/corp-search/rank.js";
|
||||
import {
|
||||
getRecentCorpUsageScores,
|
||||
sortCorpsByUsageAndRecency
|
||||
} from "../../../core/stats/usage-tracker.js";
|
||||
import type { CorpEnvironment } from "../../../core/config/types.js";
|
||||
import { selectCorp } from "../../helpers.js";
|
||||
import { confirmationRequired, usageError } from "../../../core/errors.js";
|
||||
import { booleanOption, dryRunOption, numberOption, stringOption } from "../../parser.js";
|
||||
import { printJson } from "../../printer.js";
|
||||
import type { ParsedArgs } from "../../types.js";
|
||||
import { formatSafeSourceDetail, resolveCorpSealUrl } from "./shared.js";
|
||||
|
||||
export async function handleCorpOverview(
|
||||
action: string | undefined,
|
||||
@@ -51,6 +48,7 @@ export async function handleCorpOverview(
|
||||
filtered = filtered.filter((item) => (item.environment ?? "production").toLowerCase() === envFilter);
|
||||
}
|
||||
if (rawQuery) {
|
||||
const { filterCorpsFuzzy } = await import("../../../core/corp-search/rank.js");
|
||||
// Equal-relevance results are ordered by recent usage so frequent corps
|
||||
// surface on ties without ever beating a better match.
|
||||
const usageScores = getRecentCorpUsageScores(filtered.map((item) => item.id));
|
||||
@@ -101,7 +99,9 @@ export async function handleCorpOverview(
|
||||
return true;
|
||||
}
|
||||
|
||||
const { selectCorp } = await import("../../helpers.js");
|
||||
if (action === "get" || action === "show") {
|
||||
const { formatSafeSourceDetail, resolveCorpSealUrl } = await import("./shared.js");
|
||||
const targetCorpId = maybeName ?? stringOption(args.options.corp);
|
||||
if (!targetCorpId) {
|
||||
throw usageError("Usage: seal-use corps get <corpId>");
|
||||
|
||||
Reference in new issue
Block a user