fix(line): restore bot-message-context types

This commit is contained in:
Peter Steinberger
2026-02-15 16:58:52 +00:00
parent 1ab5fcc325
commit 9f393a045c
2 changed files with 2 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ import type {
JoinEvent,
LeaveEvent,
PostbackEvent,
EventSource,
} from "@line/bot-sdk";
import type { OpenClawConfig } from "../config/config.js";
import type { RuntimeEnv } from "../runtime.js";

View File

@@ -172,7 +172,7 @@ function extractMediaPlaceholder(message: MessageEvent["message"]): string {
}
type LineRouteInfo = ReturnType<typeof resolveAgentRoute>;
type LineSourceInfo = ReturnType<typeof getSourceInfo> & { peerId: string };
type LineSourceInfoWithPeerId = LineSourceInfo & { peerId: string };
function resolveLineConversationLabel(params: {
isGroup: boolean;
@@ -213,7 +213,7 @@ async function finalizeLineInboundContext(params: {
account: ResolvedLineAccount;
event: MessageEvent | PostbackEvent;
route: LineRouteInfo;
source: LineSourceInfo;
source: LineSourceInfoWithPeerId;
rawBody: string;
timestamp: number;
messageSid: string;