From 83d08440dc16b900f504075f117015a9697b198a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 7 Apr 2026 14:22:14 +0100 Subject: [PATCH] fix(boundary): align channel gateway context types --- extensions/googlechat/src/gateway.ts | 6 ++++-- extensions/irc/src/gateway.ts | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/extensions/googlechat/src/gateway.ts b/extensions/googlechat/src/gateway.ts index 776a4c9b885..9c05a13ec02 100644 --- a/extensions/googlechat/src/gateway.ts +++ b/extensions/googlechat/src/gateway.ts @@ -1,10 +1,12 @@ import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime"; +import type { ChannelAccountSnapshot } from "openclaw/plugin-sdk/status-helpers"; import { createAccountStatusSink, runPassiveAccountLifecycle, type OpenClawConfig, type ResolvedGoogleChatAccount, } from "./channel.deps.runtime.js"; +import type { GoogleChatRuntimeEnv } from "./monitor-types.js"; const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport( () => import("./channel.runtime.js"), @@ -14,9 +16,9 @@ const loadGoogleChatChannelRuntime = createLazyRuntimeNamedExport( export async function startGoogleChatGatewayAccount(ctx: { account: ResolvedGoogleChatAccount; cfg: OpenClawConfig; - runtime: unknown; + runtime: GoogleChatRuntimeEnv; abortSignal: AbortSignal; - setStatus: (patch: Record) => void; + setStatus: (next: ChannelAccountSnapshot) => void; log?: { info?: (message: string) => void; }; diff --git a/extensions/irc/src/gateway.ts b/extensions/irc/src/gateway.ts index 9920a8a4aae..82ac300dd8e 100644 --- a/extensions/irc/src/gateway.ts +++ b/extensions/irc/src/gateway.ts @@ -1,6 +1,8 @@ import { runStoppablePassiveMonitor } from "openclaw/plugin-sdk/extension-shared"; +import type { ChannelAccountSnapshot } from "openclaw/plugin-sdk/status-helpers"; import type { ResolvedIrcAccount } from "./accounts.js"; import { createAccountStatusSink } from "./channel-api.js"; +import type { RuntimeEnv } from "./runtime-api.js"; import type { CoreConfig } from "./types.js"; type IrcChannelRuntimeModule = typeof import("./channel-runtime.js"); @@ -16,9 +18,9 @@ export async function startIrcGatewayAccount(ctx: { cfg: CoreConfig; accountId: string; account: ResolvedIrcAccount; - runtime: unknown; + runtime: RuntimeEnv; abortSignal: AbortSignal; - setStatus: (patch: Record) => void; + setStatus: (next: ChannelAccountSnapshot) => void; log?: { info?: (message: string) => void; };