Files
seal-use/src/cli/types.ts
T
gitea db5a3f7139 fix: 修复审核记录导出进度与后台等待机制
为审核记录导出增加可复用的本地后台任务及 status/wait/list,等待超时或观察进程退出后任务继续执行。
统一实时脱敏诊断输出,保留 stdout 单一 JSON;补齐高级参数、预览和筛选配置摘要。
默认保留合思未找到单据,分别统计单据与审核记录,并显式报告部分补取失败。
补充 CLI/Skill 版本诊断、技能路由及回归测试,修复企业列表加载开销和源码更新测试隔离。
2026-10-27 15:59:04 +08:00

39 lines
764 B
TypeScript

import type { LauncherConfig } from "../core/runtime.js";
export type ParsedArgs = {
command: string[];
options: Record<string, string | boolean>;
json?: unknown;
};
export type OutputOptions = {
allowFull?: boolean;
outputFile?: string;
};
export type CliResult = {
stdout: string;
stderr: string;
isError: boolean;
exitCode: number;
};
export type CliRunOptions = {
appRoot?: string;
entryFile?: string;
launcher?: LauncherConfig;
/** Receives redacted diagnostics immediately; stdout remains a single payload. */
onStderr?: (text: string) => void;
};
export type CliRuntime = {
appRoot: string;
entryFile: string;
launcher?: LauncherConfig;
};
export type CommandContext = {
runtime: CliRuntime;
args: ParsedArgs;
};