refactor: move transport readiness onto channel runtime

This commit is contained in:
Peter Steinberger
2026-03-28 04:12:24 +00:00
parent df4fd12225
commit bd28e6d444
5 changed files with 32 additions and 10 deletions

View File

@@ -189,15 +189,6 @@ vi.mock("openclaw/plugin-sdk/channel-runtime", async () => {
enqueueSystemEventMock(...args);
return actual.enqueueSystemEvent(...args);
},
};
});
vi.mock("openclaw/plugin-sdk/infra-runtime", async () => {
const actual = await vi.importActual<typeof import("openclaw/plugin-sdk/infra-runtime")>(
"openclaw/plugin-sdk/infra-runtime",
);
return {
...actual,
waitForTransportReady: (...args: unknown[]) => waitForTransportReadyMock(...args),
};
});

View File

@@ -1,3 +1,4 @@
import { waitForTransportReady } from "openclaw/plugin-sdk/channel-runtime";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import type { SignalReactionNotificationMode } from "openclaw/plugin-sdk/config-runtime";
import { loadConfig } from "openclaw/plugin-sdk/config-runtime";
@@ -6,7 +7,6 @@ import {
resolveDefaultGroupPolicy,
warnMissingProviderGroupPolicyFallbackOnce,
} from "openclaw/plugin-sdk/config-runtime";
import { waitForTransportReady } from "openclaw/plugin-sdk/infra-runtime";
import { saveMediaBuffer } from "openclaw/plugin-sdk/media-runtime";
import { DEFAULT_GROUP_HISTORY_LIMIT, type HistoryEntry } from "openclaw/plugin-sdk/reply-history";
import {