import { t as createSubsystemLogger } from "./subsystem-BkJiB-Yv.js";
import crypto from "node:crypto";
//#region src/agents/cli-runner/log.ts
const cliBackendLog = createSubsystemLogger("agent/cli-backend");
const CLI_BACKEND_LOG_OUTPUT_ENV = "OPENCLAW_CLI_BACKEND_LOG_OUTPUT";
const LEGACY_CLAUDE_CLI_LOG_OUTPUT_ENV = "OPENCLAW_CLAUDE_CLI_LOG_OUTPUT";
function formatCliBackendOutputDigest(text) {
	return `outBytes=${Buffer.byteLength(text, "utf8")} outHash=${crypto.createHash("sha256").update(text).digest("hex").slice(0, 12)}`;
}
//#endregion
export { formatCliBackendOutputDigest as i, LEGACY_CLAUDE_CLI_LOG_OUTPUT_ENV as n, cliBackendLog as r, CLI_BACKEND_LOG_OUTPUT_ENV as t };
