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

@@ -197,17 +197,17 @@ describe("gateway run option collisions", () => {
);
});
it.each([["--cli-backend-logs", "generic flag"]])(
"enables CLI backend log filtering via %s (%s)",
async (flag) => {
delete process.env.OPENCLAW_CLI_BACKEND_LOG_OUTPUT;
it.each([
["--cli-backend-logs", "generic flag"],
["--claude-cli-logs", "deprecated alias"],
])("enables CLI backend log filtering via %s (%s)", async (flag) => {
delete process.env.OPENCLAW_CLI_BACKEND_LOG_OUTPUT;
await runGatewayCli(["gateway", "run", flag, "--allow-unconfigured"]);
await runGatewayCli(["gateway", "run", flag, "--allow-unconfigured"]);
expect(setConsoleSubsystemFilter).toHaveBeenCalledWith(["agent/cli-backend"]);
expect(process.env.OPENCLAW_CLI_BACKEND_LOG_OUTPUT).toBe("1");
},
);
expect(setConsoleSubsystemFilter).toHaveBeenCalledWith(["agent/cli-backend"]);
expect(process.env.OPENCLAW_CLI_BACKEND_LOG_OUTPUT).toBe("1");
});
it("starts gateway when token mode has no configured token (startup bootstrap path)", async () => {
await runGatewayCli(["gateway", "run", "--allow-unconfigured"]);

View File

@@ -604,6 +604,7 @@ export function addGatewayRunCommand(cmd: Command): Command {
"Only show CLI backend logs in the console (includes stdout/stderr)",
false,
)
.option("--claude-cli-logs", "Deprecated alias for --cli-backend-logs", false)
.option("--ws-log <style>", 'WebSocket log style ("auto"|"full"|"compact")', "auto")
.option("--compact", 'Alias for "--ws-log compact"', false)
.option("--raw-stream", "Log raw model stream events to jsonl", false)