test(bluebubbles): split channel status seam

This commit is contained in:
Vincent Koc
2026-04-03 20:46:31 +09:00
parent 9bd05d3841
commit d9aa88dd6c
3 changed files with 9 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
import { createScopedDmSecurityResolver } from "openclaw/plugin-sdk/channel-config-helpers";
import { createAccountStatusSink } from "openclaw/plugin-sdk/channel-lifecycle";
import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
@@ -6,6 +7,11 @@ import {
projectAccountWarningCollector,
} from "openclaw/plugin-sdk/channel-policy";
import { createAttachedChannelResultAdapter } from "openclaw/plugin-sdk/channel-send-result";
import {
buildProbeChannelStatusSummary,
collectBlueBubblesStatusIssues,
PAIRING_APPROVED_MESSAGE,
} from "openclaw/plugin-sdk/channel-status";
import { createChatChannelPlugin } from "openclaw/plugin-sdk/core";
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
import {
@@ -39,12 +45,6 @@ import {
resolveBlueBubblesGroupToolPolicy,
} from "./group-policy.js";
import type { ChannelAccountSnapshot, ChannelPlugin } from "./runtime-api.js";
import {
buildProbeChannelStatusSummary,
collectBlueBubblesStatusIssues,
DEFAULT_ACCOUNT_ID,
PAIRING_APPROVED_MESSAGE,
} from "./runtime-api.js";
import { resolveBlueBubblesOutboundSessionRoute } from "./session-route.js";
import { blueBubblesSetupAdapter } from "./setup-core.js";
import { blueBubblesSetupWizard } from "./setup-surface.js";

View File

@@ -1,5 +1,5 @@
import { collectBlueBubblesStatusIssues } from "openclaw/plugin-sdk/channel-status";
import { describe, expect, it } from "vitest";
import { collectBlueBubblesStatusIssues } from "./runtime-api.js";
describe("collectBlueBubblesStatusIssues", () => {
it("reports unconfigured enabled accounts", () => {

View File

@@ -1,10 +1,12 @@
export { PAIRING_APPROVED_MESSAGE } from "../channels/plugins/pairing-message.js";
export { collectBlueBubblesStatusIssues } from "../channels/plugins/status-issues/bluebubbles.js";
export {
projectCredentialSnapshotFields,
resolveConfiguredFromCredentialStatuses,
resolveConfiguredFromRequiredCredentialStatuses,
} from "../channels/account-snapshot-fields.js";
export {
buildProbeChannelStatusSummary,
buildComputedAccountStatusSnapshot,
buildTokenChannelStatusSummary,
} from "./status-helpers.js";