fix(ci): repair channel type drift

This commit is contained in:
Vincent Koc
2026-04-07 14:06:12 +01:00
parent 42fa0cb438
commit d607740c4a
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ export async function probeMatrix(params: {
accessToken: string;
userId?: string;
deviceId?: string;
timeoutMs: number;
timeoutMs?: number;
accountId?: string | null;
allowPrivateNetwork?: boolean;
ssrfPolicy?: SsrFPolicy;

View File

@@ -44,7 +44,7 @@ function mockStartedMonitor() {
}
function startNextcloudAccount(abortSignal?: AbortSignal) {
return nextcloudTalkGatewayAdapter.startAccount(
return nextcloudTalkGatewayAdapter.startAccount!(
createStartAccountContext({
account: buildAccount(),
abortSignal,
@@ -60,7 +60,7 @@ describe("nextcloud-talk startAccount lifecycle", () => {
it("keeps startAccount pending until abort, then stops the monitor", async () => {
const stop = mockStartedMonitor();
const { abort, task, isSettled } = startAccountAndTrackLifecycle({
startAccount: nextcloudTalkGatewayAdapter.startAccount,
startAccount: nextcloudTalkGatewayAdapter.startAccount!,
account: buildAccount(),
});
await expectStopPendingUntilAbort({

View File

@@ -1,6 +1,6 @@
import { createAccountStatusSink } from "openclaw/plugin-sdk/channel-lifecycle";
import { runStoppablePassiveMonitor } from "openclaw/plugin-sdk/extension-shared";
import { resolveNextcloudTalkAccount } from "./accounts.js";
import { resolveNextcloudTalkAccount, type ResolvedNextcloudTalkAccount } from "./accounts.js";
import {
clearAccountEntryFields,
DEFAULT_ACCOUNT_ID,
@@ -9,7 +9,7 @@ import {
} from "./channel-api.js";
import { monitorNextcloudTalkProvider } from "./monitor.js";
import { getNextcloudTalkRuntime } from "./runtime.js";
import type { CoreConfig, ResolvedNextcloudTalkAccount } from "./types.js";
import type { CoreConfig } from "./types.js";
export const nextcloudTalkGatewayAdapter: NonNullable<
ChannelPlugin<ResolvedNextcloudTalkAccount>["gateway"]