Revert "refactor(cli): remove custom cli backends"

This reverts commit 6243806f7b.
This commit is contained in:
Peter Steinberger
2026-04-06 12:30:53 +01:00
parent c39f061003
commit ef923805f5
93 changed files with 5151 additions and 1195 deletions

View File

@@ -23,7 +23,11 @@ import {
resolveSystemPromptUsage,
writeCliImages,
} from "./helpers.js";
import { cliBackendLog, CLI_BACKEND_LOG_OUTPUT_ENV } from "./log.js";
import {
cliBackendLog,
CLI_BACKEND_LOG_OUTPUT_ENV,
LEGACY_CLAUDE_CLI_LOG_OUTPUT_ENV,
} from "./log.js";
import type { PreparedCliRunContext } from "./types.js";
const executeDeps = {
@@ -158,7 +162,9 @@ export async function executePreparedCliRun(
cliBackendLog.info(
`cli exec: provider=${params.provider} model=${context.normalizedModel} promptChars=${params.prompt.length}`,
);
const logOutputText = isTruthyEnvValue(process.env[CLI_BACKEND_LOG_OUTPUT_ENV]);
const logOutputText =
isTruthyEnvValue(process.env[CLI_BACKEND_LOG_OUTPUT_ENV]) ||
isTruthyEnvValue(process.env[LEGACY_CLAUDE_CLI_LOG_OUTPUT_ENV]);
if (logOutputText) {
const logArgs = buildCliLogArgs({
args,