@openclaw/line 2026.5.5-beta.1 → 2026.5.5

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-Rls9s60K.js";
1
+ import { n as lineChannelPluginCommon, t as linePlugin } from "./channel-CnhV8Dzi.js";
2
2
  import { n as lineSetupAdapter, t as lineSetupWizard } from "./setup-surface-DCH7CE-y.js";
3
3
  //#region extensions/line/src/channel.setup.ts
4
4
  const lineSetupPlugin = {
@@ -1,7 +1,7 @@
1
1
  import { i as resolveLineAccount, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-UXAvdBo_.js";
2
2
  import { n as lineSetupAdapter, r as hasLineCredentials, t as lineSetupWizard } from "./setup-surface-DCH7CE-y.js";
3
3
  import { i as resolveExactLineGroupConfigKey, n as getLineRuntime, t as buildLineQuickReplyFallbackText } from "./quick-reply-fallback-HskUUWsn.js";
4
- import { n as parseLineDirectives, o as LineChannelConfigSchema, t as hasLineDirectives } from "./reply-payload-transform-CFGTs9ln.js";
4
+ import { n as parseLineDirectives, o as LineChannelConfigSchema, t as hasLineDirectives } from "./reply-payload-transform-Bmf8GnSU.js";
5
5
  import { t as resolveLineOutboundMedia } from "./outbound-media-BfhBmWq5.js";
6
6
  import { createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
7
7
  import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
@@ -1,2 +1,2 @@
1
- import { t as linePlugin } from "./channel-Rls9s60K.js";
1
+ import { t as linePlugin } from "./channel-CnhV8Dzi.js";
2
2
  export { linePlugin };
@@ -1,5 +1,6 @@
1
1
  import { n as createEventCard, t as createAgendaCard } from "./schedule-cards-BwQChTdM.js";
2
- import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
2
+ import { buildChannelConfigSchema, requireOpenAllowFrom } from "openclaw/plugin-sdk/channel-config-schema";
3
+ import { requireChannelOpenAllowFrom } from "openclaw/plugin-sdk/extension-shared";
3
4
  import { z } from "openclaw/plugin-sdk/zod";
4
5
  import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
5
6
  //#region extensions/line/src/config-schema.ts
@@ -23,7 +24,7 @@ const ThreadBindingsSchema = z.object({
23
24
  spawnSubagentSessions: z.boolean().optional(),
24
25
  spawnAcpSessions: z.boolean().optional()
25
26
  }).strict();
26
- const LineCommonConfigSchema = z.object({
27
+ const LineCommonConfigSchemaBase = z.object({
27
28
  enabled: z.boolean().optional(),
28
29
  channelAccessToken: z.string().optional(),
29
30
  channelSecret: z.string().optional(),
@@ -46,12 +47,28 @@ const LineGroupConfigSchema = z.object({
46
47
  systemPrompt: z.string().optional(),
47
48
  skills: z.array(z.string()).optional()
48
49
  }).strict();
49
- const LineAccountConfigSchema = LineCommonConfigSchema.extend({ groups: z.record(z.string(), LineGroupConfigSchema.optional()).optional() }).strict();
50
- const LineConfigSchema = LineCommonConfigSchema.extend({
50
+ const LineAccountConfigSchema = LineCommonConfigSchemaBase.extend({ groups: z.record(z.string(), LineGroupConfigSchema.optional()).optional() }).strict().superRefine((value, ctx) => {
51
+ requireChannelOpenAllowFrom({
52
+ channel: "line",
53
+ policy: value.dmPolicy,
54
+ allowFrom: value.allowFrom,
55
+ ctx,
56
+ requireOpenAllowFrom
57
+ });
58
+ });
59
+ const LineConfigSchema = LineCommonConfigSchemaBase.extend({
51
60
  accounts: z.record(z.string(), LineAccountConfigSchema.optional()).optional(),
52
61
  defaultAccount: z.string().optional(),
53
62
  groups: z.record(z.string(), LineGroupConfigSchema.optional()).optional()
54
- }).strict();
63
+ }).strict().superRefine((value, ctx) => {
64
+ requireChannelOpenAllowFrom({
65
+ channel: "line",
66
+ policy: value.dmPolicy,
67
+ allowFrom: value.allowFrom,
68
+ ctx,
69
+ requireOpenAllowFrom
70
+ });
71
+ });
55
72
  const LineChannelConfigSchema = buildChannelConfigSchema(LineConfigSchema);
56
73
  //#endregion
57
74
  //#region extensions/line/src/flex-templates/media-control-cards.ts
@@ -1,6 +1,6 @@
1
1
  import { i as resolveLineAccount, n as normalizeAccountId, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-UXAvdBo_.js";
2
2
  import { a as resolveLineGroupConfigEntry, i as resolveExactLineGroupConfigKey, o as resolveLineGroupLookupIds, r as setLineRuntime, s as resolveLineGroupsConfig } from "./quick-reply-fallback-HskUUWsn.js";
3
- import { a as createMediaPlayerCard, i as createDeviceControlCard, n as parseLineDirectives, o as LineChannelConfigSchema, r as createAppleTvRemoteCard, s as LineConfigSchema, t as hasLineDirectives } from "./reply-payload-transform-CFGTs9ln.js";
3
+ import { a as createMediaPlayerCard, i as createDeviceControlCard, n as parseLineDirectives, o as LineChannelConfigSchema, r as createAppleTvRemoteCard, s as LineConfigSchema, t as hasLineDirectives } from "./reply-payload-transform-Bmf8GnSU.js";
4
4
  import { n as createEventCard, r as createReceiptCard, t as createAgendaCard } from "./schedule-cards-BwQChTdM.js";
5
5
  import { a as createListCard, i as createInfoCard, n as createCarousel, o as createNotificationBubble, r as createImageCard, t as createActionCard } from "./basic-cards-7DTG6E-A.js";
6
6
  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-CCWK6PJh.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/line",
3
- "version": "2026.5.5-beta.1",
3
+ "version": "2026.5.5",
4
4
  "description": "OpenClaw LINE channel plugin",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  "openclaw": "workspace:*"
16
16
  },
17
17
  "peerDependencies": {
18
- "openclaw": ">=2026.5.5-beta.1"
18
+ "openclaw": ">=2026.5.5"
19
19
  },
20
20
  "peerDependenciesMeta": {
21
21
  "openclaw": {
@@ -45,10 +45,10 @@
45
45
  "minHostVersion": ">=2026.4.10"
46
46
  },
47
47
  "compat": {
48
- "pluginApi": ">=2026.5.5-beta.1"
48
+ "pluginApi": ">=2026.5.5"
49
49
  },
50
50
  "build": {
51
- "openclawVersion": "2026.5.5-beta.1"
51
+ "openclawVersion": "2026.5.5"
52
52
  },
53
53
  "release": {
54
54
  "publishToClawHub": true,