refactor(cli): remove custom cli backends

This commit is contained in:
Peter Steinberger
2026-04-05 18:04:02 +01:00
parent 8f9b1ad48d
commit 6243806f7b
77 changed files with 1241 additions and 2491 deletions

View File

@@ -23,11 +23,7 @@ import {
resolveSystemPromptUsage,
writeCliImages,
} from "./helpers.js";
import {
cliBackendLog,
CLI_BACKEND_LOG_OUTPUT_ENV,
LEGACY_CLAUDE_CLI_LOG_OUTPUT_ENV,
} from "./log.js";
import { cliBackendLog, CLI_BACKEND_LOG_OUTPUT_ENV } from "./log.js";
import type { PreparedCliRunContext } from "./types.js";
const executeDeps = {
@@ -153,9 +149,7 @@ 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]) ||
isTruthyEnvValue(process.env[LEGACY_CLAUDE_CLI_LOG_OUTPUT_ENV]);
const logOutputText = isTruthyEnvValue(process.env[CLI_BACKEND_LOG_OUTPUT_ENV]);
if (logOutputText) {
const logArgs = buildCliLogArgs({
args,