refactor(cli): split commands/bill.ts into bill/{context,approve,search,flow,related,meta,index}.ts

The five closures that captured corp/client/confirmation state move
into a per-invocation createBillActionContext factory; case bodies
become ctx-taking handlers grouped by concern (approval write actions,
list/get, flow/risk/budget, refs/relations/attachments/download,
schema/link/spec). index.ts keeps the original switch semantics.
No behavior change: tsc clean, 316 tests pass.
This commit is contained in:
gitea committed 2026-10-04 14:18:29 +08:00
1 parent 6cb05ebc37
commit 8c6ee6ca89
11 files changed
+865 -755

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ import { handleProbeCommand } from "./commands/probe.js";
import { handleMcpCommand } from "./commands/mcp.js";
import { handleUpdateCommand } from "./commands/update/index.js";
import { handleOpenApiCommand } from "./commands/openapi.js";
import { handleBillCommand } from "./commands/bill.js";
import { handleBillCommand } from "./commands/bill/index.js";
import { handleContactCommand } from "./commands/contact.js";
import { handleServiceCommand } from "./commands/service.js";
import { handleHttpCommand } from "./commands/http.js";