mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
fix(ci): repair channel type drift
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user