refactor(cli): split commands/update.ts into update/{index,releases}.ts

releases.ts carries the GitHub/Gitea release infrastructure (types,
listing, mirrored download, archive extraction, semver compare);
index.ts keeps handleUpdateCommand and re-exports the previously
public members so update.test.ts stays source-compatible.
Verbatim code moves, no behavior change: tsc clean, 316 tests pass.
This commit is contained in:
gitea committed 2026-10-04 14:12:03 +08:00
1 parent 6f1f2623a3
commit c8450b9908
4 files changed
+510 -471

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ import { handleMenuCommand } from "./commands/menu.js";
import { handleSkillCommand } from "./commands/skill.js";
import { handleProbeCommand } from "./commands/probe.js";
import { handleMcpCommand } from "./commands/mcp.js";
import { handleUpdateCommand } from "./commands/update.js";
import { handleUpdateCommand } from "./commands/update/index.js";
import { handleOpenApiCommand } from "./commands/openapi.js";
import { handleBillCommand } from "./commands/bill.js";
import { handleContactCommand } from "./commands/contact.js";