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

+7 -2
View File
@@ -340,8 +340,13 @@ export const HELP_REGISTRY: AreaHelp[] = [
},
{
name: "pull",
summary: "Export rules to local JSON file",
usage: ["seal-use rules pull [--version <number|latest>] [--out <file>] [--corp <corpId>]"]
summary: "Pull rules as local JSON, or use --official for the server-generated CSV",
usage: ["seal-use rules pull [--official] [--version <number|latest>] [--out <file>] [--corp <corpId>]"],
options: [
{ flag: "--official", description: "Call SealAI's official CSV export endpoint and save its returned CSV unchanged; cannot be combined with --version" },
{ flag: "--version <number|latest>", description: "Pull a published version as JSON; unavailable with --official" },
{ flag: "--out <file>", description: "Output path; defaults to ./rules.local.json for JSON or Downloads for official CSV" }
]
},
{
name: "push",