mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 16:30:22 +00:00
refactor(cli): remove custom cli backends
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user