feat(cli): 支持大输出防爆保护、本地文件转储与敏感凭证全链路脱敏并发布 v0.4.2
🚀 Release / 🚀 Build & Publish Multi-Platform Binaries (push) Has been cancelled

This commit is contained in:
gitea committed 2026-09-03 11:40:32 +08:00
1 parent cf44c7dcdf
commit ba30c1a6cb
16 files changed
+251 -51

No files matched your search

+2
View File
@@ -16,6 +16,7 @@ import { authTools } from "./core/auth/tools.js";
import { platformTools } from "./domains/platform/tools.js";
import { billTools } from "./domains/bill/tools.js";
import { runCli } from "./cli/runner.js";
import { redactSensitiveText } from "./cli/printer.js";
import { VERSION } from "./version.js";
import type { CliResult } from "./cli/types.js";
@@ -114,6 +115,7 @@ export function cliResult(result: CliResult): {
} {
const isError = result.exitCode !== 0;
let text = isError ? (result.stderr || result.stdout || "Command failed") : (result.stdout || result.stderr || "Success");
text = redactSensitiveText(text);
return {
content: [
{