mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 22:20:21 +00:00
Revert "refactor(cli): remove custom cli backends"
This reverts commit 6243806f7b.
This commit is contained in:
@@ -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"]);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user