From 9f393a045c9475f2d1bb26a439cc23a34877e7b2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 15 Feb 2026 16:58:52 +0000 Subject: [PATCH] fix(line): restore bot-message-context types --- src/line/bot-handlers.ts | 1 - src/line/bot-message-context.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/line/bot-handlers.ts b/src/line/bot-handlers.ts index 47d57d05939..d56e62549bb 100644 --- a/src/line/bot-handlers.ts +++ b/src/line/bot-handlers.ts @@ -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"; diff --git a/src/line/bot-message-context.ts b/src/line/bot-message-context.ts index 113e6e6f58c..7381a9f5076 100644 --- a/src/line/bot-message-context.ts +++ b/src/line/bot-message-context.ts @@ -172,7 +172,7 @@ function extractMediaPlaceholder(message: MessageEvent["message"]): string { } type LineRouteInfo = ReturnType; -type LineSourceInfo = ReturnType & { 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;