feat: 增加 SealAI 官方规则 CSV 导出

This commit is contained in:
gitea committed 2026-11-06 15:00:05 +08:00
1 parent 382fc1a7ae
commit f454d62be1
14 files changed
+143 -9

No files matched your search

+13
View File
@@ -327,6 +327,19 @@ export async function handleRulesCommand(
if (action === "pull") {
const version = resolveVersionOption(args, maybeName);
const out = stringOption(args.options.out) ?? stringOption(args.options.file) ?? stringOption(args.options.f);
if (booleanOption(args.options.official) === true) {
if (version) {
throw usageError("rules pull --official uses SealAI's official current-rules CSV export and cannot be combined with --version.");
}
await runCapability(
"sealApprovalRulesExportCsv",
client!,
corp,
{ out },
outputOptions(args.options)
);
return;
}
await runCapability(
"sealApprovalRulesPull",
client!,