@openclaw/line 2026.5.16-beta.4 → 2026.5.16-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as lineChannelPluginCommon, t as linePlugin } from "./channel-CdkYokiy.js";
1
+ import { n as lineChannelPluginCommon, t as linePlugin } from "./channel-BLY29je7.js";
2
2
  import { n as lineSetupAdapter, t as lineSetupWizard } from "./setup-surface-DAaSncHr.js";
3
3
  //#region extensions/line/src/channel.setup.ts
4
4
  const lineSetupPlugin = {
@@ -106,7 +106,7 @@ const lineChannelPluginCommon = {
106
106
  //#endregion
107
107
  //#region extensions/line/src/gateway.ts
108
108
  const loadLineProbeRuntime$1 = createLazyRuntimeModule(() => import("./probe.runtime-tp_IgA31.js"));
109
- const loadLineMonitorRuntime = createLazyRuntimeModule(() => import("./monitor.runtime-D_r2vk-6.js"));
109
+ const loadLineMonitorRuntime = createLazyRuntimeModule(() => import("./monitor.runtime-BXHrsegV.js"));
110
110
  const lineGatewayAdapter = {
111
111
  startAccount: async (ctx) => {
112
112
  const account = ctx.account;
@@ -531,7 +531,7 @@ const lineStatusAdapter = createComputedAccountStatusAdapter({
531
531
  });
532
532
  //#endregion
533
533
  //#region extensions/line/src/channel.ts
534
- const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-DDWuHIBF.js"));
534
+ const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BQQeS_gL.js"));
535
535
  const lineSecurityAdapter = createRestrictSendersChannelSecurity({
536
536
  channelKey: "line",
537
537
  resolveDmPolicy: (account) => account.config.dmPolicy,
@@ -1,2 +1,2 @@
1
- import { t as linePlugin } from "./channel-CdkYokiy.js";
1
+ import { t as linePlugin } from "./channel-BLY29je7.js";
2
2
  export { linePlugin };
@@ -1,4 +1,4 @@
1
1
  import { S as pushMessageLine } from "./markdown-to-line-DsVRfm5Z.js";
2
- import { t as monitorLineProvider } from "./monitor-ClwWeWOU.js";
2
+ import { t as monitorLineProvider } from "./monitor-CfroVQdk.js";
3
3
  import { t as probeLineBot } from "./probe-CiPafR4R.js";
4
4
  export { monitorLineProvider, probeLineBot, pushMessageLine };
@@ -20,7 +20,7 @@ import { resolveStableChannelMessageIngress } from "openclaw/plugin-sdk/channel-
20
20
  import { shouldComputeCommandAuthorized } from "openclaw/plugin-sdk/command-auth-native";
21
21
  import { ensureConfiguredBindingRouteReady, readChannelAllowFromStore, resolveConfiguredBindingRoute, resolvePairingIdLabel, resolvePinnedMainDmOwnerFromAllowlist, resolveRuntimeConversationBindingRoute, upsertChannelPairingRequest } from "openclaw/plugin-sdk/conversation-runtime";
22
22
  import { createClaimableDedupe } from "openclaw/plugin-sdk/persistent-dedupe";
23
- import { resolveAgentRoute } from "openclaw/plugin-sdk/routing";
23
+ import { resolveAgentRoute, resolveInboundLastRouteSessionKey } from "openclaw/plugin-sdk/routing";
24
24
  import { resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, warnMissingProviderGroupPolicyFallbackOnce } from "openclaw/plugin-sdk/runtime-group-policy";
25
25
  import { finalizeInboundContext } from "openclaw/plugin-sdk/reply-dispatch-runtime";
26
26
  import crypto from "node:crypto";
@@ -369,6 +369,10 @@ async function finalizeLineInboundContext(params) {
369
369
  allowFrom: params.account.config.allowFrom,
370
370
  normalizeEntry: (entry) => normalizeAllowFrom([entry]).entries[0]
371
371
  }) : null;
372
+ const inboundLastRouteSessionKey = resolveInboundLastRouteSessionKey({
373
+ route: params.route,
374
+ sessionKey: params.route.sessionKey
375
+ });
372
376
  if (shouldLogVerbose()) {
373
377
  const preview = body.slice(0, 200).replace(/\n/g, "\\n");
374
378
  const mediaInfo = params.verboseLog.kind === "inbound" && (params.verboseLog.mediaCount ?? 0) > 1 ? ` mediaCount=${params.verboseLog.mediaCount}` : "";
@@ -381,11 +385,11 @@ async function finalizeLineInboundContext(params) {
381
385
  storePath,
382
386
  record: {
383
387
  updateLastRoute: !params.source.isGroup ? {
384
- sessionKey: params.route.mainSessionKey,
388
+ sessionKey: inboundLastRouteSessionKey,
385
389
  channel: "line",
386
390
  to: params.source.userId ?? params.source.peerId,
387
391
  accountId: params.route.accountId,
388
- mainDmOwnerPin: pinnedMainDmOwner && params.source.userId ? {
392
+ mainDmOwnerPin: inboundLastRouteSessionKey === params.route.mainSessionKey && pinnedMainDmOwner && params.source.userId ? {
389
393
  ownerRecipient: pinnedMainDmOwner,
390
394
  senderRecipient: params.source.userId,
391
395
  onSkip: ({ ownerRecipient, senderRecipient }) => {
@@ -0,0 +1,2 @@
1
+ import { t as monitorLineProvider } from "./monitor-CfroVQdk.js";
2
+ export { monitorLineProvider };
@@ -3,7 +3,7 @@ import { _ as resolveLineGroupsConfig, a as createMediaPlayerCard, d as setLineR
3
3
  import { n as createEventCard, r as createReceiptCard, t as createAgendaCard } from "./schedule-cards-D-yZMHDE.js";
4
4
  import { a as createListCard, i as createInfoCard, n as createCarousel, o as createNotificationBubble, r as createImageCard, t as createActionCard } from "./basic-cards-BISytiSa.js";
5
5
  import { A as buildTemplateMessageFromPayload, B as createYesNoConfirm, C as pushMessagesLine, D as sendMessageLine, E as replyMessageLine, F as createImageCarousel, G as toFlexMessage, H as messageAction, I as createImageCarouselColumn, L as createLinkMenu, M as createButtonTemplate, N as createCarouselColumn, O as showLoadingAnimation, P as createConfirmTemplate, R as createProductCarousel, S as pushMessageLine, T as pushTextMessageWithQuickReplies, U as postbackAction, V as datetimePickerAction, W as uriAction, _ as getUserDisplayName, a as extractLinks, b as pushImageMessage, c as processLineMessage, d as createFlexMessage, f as createImageMessage, g as createVideoMessage, h as createTextMessageWithQuickReplies, i as extractCodeBlocks, j as createButtonMenu, k as resolveLineChannelAccessToken, l as stripMarkdown, m as createQuickReplyItems, n as convertLinksToFlexBubble, o as extractMarkdownTables, p as createLocationMessage, r as convertTableToFlexBubble, s as hasMarkdownToConvert, t as convertCodeBlockToFlexBubble, u as createAudioMessage, v as getUserProfile, w as pushTemplateMessage, x as pushLocationMessage, y as pushFlexMessage, z as createTemplateCarousel } from "./markdown-to-line-DsVRfm5Z.js";
6
- import { a as validateLineSignature, c as normalizeAllowFrom, i as parseLineWebhookBody, n as createLineNodeWebhookHandler, o as downloadLineMedia, r as readLineWebhookRequestBody, s as firstDefined, t as monitorLineProvider } from "./monitor-ClwWeWOU.js";
6
+ import { a as validateLineSignature, c as normalizeAllowFrom, i as parseLineWebhookBody, n as createLineNodeWebhookHandler, o as downloadLineMedia, r as readLineWebhookRequestBody, s as firstDefined, t as monitorLineProvider } from "./monitor-CfroVQdk.js";
7
7
  import { t as probeLineBot } from "./probe-CiPafR4R.js";
8
8
  import { clearAccountEntryFields } from "openclaw/plugin-sdk/core";
9
9
  import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/line",
3
- "version": "2026.5.16-beta.4",
3
+ "version": "2026.5.16-beta.6",
4
4
  "description": "OpenClaw LINE channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,7 +16,7 @@
16
16
  "openclaw": "workspace:*"
17
17
  },
18
18
  "peerDependencies": {
19
- "openclaw": ">=2026.5.16-beta.4"
19
+ "openclaw": ">=2026.5.16-beta.6"
20
20
  },
21
21
  "peerDependenciesMeta": {
22
22
  "openclaw": {
@@ -46,10 +46,10 @@
46
46
  "minHostVersion": ">=2026.4.10"
47
47
  },
48
48
  "compat": {
49
- "pluginApi": ">=2026.5.16-beta.4"
49
+ "pluginApi": ">=2026.5.16-beta.6"
50
50
  },
51
51
  "build": {
52
- "openclawVersion": "2026.5.16-beta.4"
52
+ "openclawVersion": "2026.5.16-beta.6"
53
53
  },
54
54
  "release": {
55
55
  "publishToClawHub": true,
@@ -1,2 +0,0 @@
1
- import { t as monitorLineProvider } from "./monitor-ClwWeWOU.js";
2
- export { monitorLineProvider };