mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 10:45:15 +00:00
fix: add channel status filtering (#80706)
Summary: - Add `openclaw channels status --channel <name>` filtering through CLI, gateway protocol, and fallback status rendering. - Document the BlueBubbles-to-iMessage cutover path so operators can probe iMessage without starting both monitors. - Refresh generated Swift protocol model for the new optional channel status parameter. Verification: - `pnpm test src/gateway/server-methods/channels.status.test.ts src/commands/channels.status.command-flow.test.ts src/cli/program/routes.test.ts -- --reporter=verbose` - `CI=true pnpm check:docs` - `pnpm protocol:check` - `git diff --check` - `node scripts/check-changelog-attributions.mjs` - CI head `45b27e3866`: focused/docs/protocol shards green locally; GitHub broad/scanner jobs queued for runners at merge attempt time; `Real behavior proof` failure is the maintainer-ignorable external-real-proof complaint.
This commit is contained in:
@@ -257,10 +257,15 @@ export function parseChannelsListRouteArgs(argv: string[]) {
|
||||
|
||||
export function parseChannelsStatusRouteArgs(argv: string[]) {
|
||||
const timeout = parseOptionalFlagValue(argv, "--timeout");
|
||||
const channel = parseOptionalFlagValue(argv, "--channel");
|
||||
if (!timeout.ok) {
|
||||
return null;
|
||||
}
|
||||
if (!channel.ok) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
channel: channel.value,
|
||||
json: hasFlag(argv, "--json"),
|
||||
probe: hasFlag(argv, "--probe"),
|
||||
timeout: timeout.value,
|
||||
|
||||
@@ -138,12 +138,14 @@ describe("program routes", () => {
|
||||
"status",
|
||||
"--json",
|
||||
"--probe",
|
||||
"--channel",
|
||||
"imsg",
|
||||
"--timeout",
|
||||
"5000",
|
||||
]),
|
||||
).resolves.toBe(true);
|
||||
expect(channelsStatusCommandMock).toHaveBeenCalledWith(
|
||||
{ json: true, probe: true, timeout: "5000" },
|
||||
{ channel: "imsg", json: true, probe: true, timeout: "5000" },
|
||||
defaultRuntime,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user