@openclaw/line 2026.5.31-beta.1 → 2026.5.31-beta.3
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/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# OpenClaw LINE
|
|
2
|
+
|
|
3
|
+
Official OpenClaw channel plugin for LINE Bot API chats.
|
|
4
|
+
|
|
5
|
+
Install from OpenClaw:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
openclaw plugin add @openclaw/line
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Configure LINE channel credentials in OpenClaw, then connect the bot to the chats where agents should receive and send messages.
|
|
@@ -64,7 +64,7 @@ function createInfoCard(title, body, footer) {
|
|
|
64
64
|
*/
|
|
65
65
|
function createListCard(title, items) {
|
|
66
66
|
const itemContents = items.slice(0, 8).map((item, index) => {
|
|
67
|
-
const
|
|
67
|
+
const itemContentsLocal = [{
|
|
68
68
|
type: "text",
|
|
69
69
|
text: item.title,
|
|
70
70
|
size: "md",
|
|
@@ -72,7 +72,7 @@ function createListCard(title, items) {
|
|
|
72
72
|
color: "#1a1a1a",
|
|
73
73
|
wrap: true
|
|
74
74
|
}];
|
|
75
|
-
if (item.subtitle)
|
|
75
|
+
if (item.subtitle) itemContentsLocal.push({
|
|
76
76
|
type: "text",
|
|
77
77
|
text: item.subtitle,
|
|
78
78
|
size: "sm",
|
|
@@ -101,7 +101,7 @@ function createListCard(title, items) {
|
|
|
101
101
|
}, {
|
|
102
102
|
type: "box",
|
|
103
103
|
layout: "vertical",
|
|
104
|
-
contents:
|
|
104
|
+
contents: itemContentsLocal,
|
|
105
105
|
flex: 1
|
|
106
106
|
}],
|
|
107
107
|
margin: index > 0 ? "lg" : void 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as createReceiptCard } from "./schedule-cards-Bq74H30B.js";
|
|
2
|
-
import { a as createListCard, i as createInfoCard, r as createImageCard, t as createActionCard } from "./basic-cards-
|
|
2
|
+
import { a as createListCard, i as createInfoCard, r as createImageCard, t as createActionCard } from "./basic-cards-B1eTkw-f.js";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
//#region extensions/line/src/card-command.ts
|
|
5
5
|
const CARD_USAGE = `Usage: /card <type> "title" "body" [options]
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ let lineCardCommandPromise = null;
|
|
|
4
4
|
async function loadLineCardCommand(api) {
|
|
5
5
|
lineCardCommandPromise ??= (async () => {
|
|
6
6
|
let registered = null;
|
|
7
|
-
const { registerLineCardCommand } = await import("./card-command-
|
|
7
|
+
const { registerLineCardCommand } = await import("./card-command-ML0lh9al.js");
|
|
8
8
|
registerLineCardCommand({
|
|
9
9
|
...api,
|
|
10
10
|
registerCommand(command) {
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as resolveLineAccount, n as normalizeAccountId, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-B-K3yrdP.js";
|
|
2
2
|
import { _ as resolveLineGroupsConfig, a as createMediaPlayerCard, d as setLineRuntime, f as LineChannelConfigSchema, g as resolveLineGroupLookupIds, h as resolveLineGroupConfigEntry, i as createDeviceControlCard, m as resolveExactLineGroupConfigKey, n as parseLineDirectives, p as LineConfigSchema, r as createAppleTvRemoteCard, t as hasLineDirectives } from "./reply-payload-transform-DZ8-37Ot.js";
|
|
3
3
|
import { n as createEventCard, r as createReceiptCard, t as createAgendaCard } from "./schedule-cards-Bq74H30B.js";
|
|
4
|
-
import { a as createListCard, i as createInfoCard, n as createCarousel, o as createNotificationBubble, r as createImageCard, t as createActionCard } from "./basic-cards-
|
|
4
|
+
import { a as createListCard, i as createInfoCard, n as createCarousel, o as createNotificationBubble, r as createImageCard, t as createActionCard } from "./basic-cards-B1eTkw-f.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-D-1nDsie.js";
|
|
6
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-CfWkOzP7.js";
|
|
7
7
|
import { t as probeLineBot } from "./probe-CqTNoMdZ.js";
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.3",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@openclaw/line",
|
|
9
|
-
"version": "2026.5.31-beta.
|
|
9
|
+
"version": "2026.5.31-beta.3",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@line/bot-sdk": "11.0.1",
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.5.31-beta.
|
|
15
|
+
"openclaw": ">=2026.5.31-beta.3"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.5.31-beta.
|
|
3
|
+
"version": "2026.5.31-beta.3",
|
|
4
4
|
"description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"zod": "4.4.3"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"openclaw": ">=2026.5.31-beta.
|
|
15
|
+
"openclaw": ">=2026.5.31-beta.3"
|
|
16
16
|
},
|
|
17
17
|
"peerDependenciesMeta": {
|
|
18
18
|
"openclaw": {
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"minHostVersion": ">=2026.4.10"
|
|
43
43
|
},
|
|
44
44
|
"compat": {
|
|
45
|
-
"pluginApi": ">=2026.5.31-beta.
|
|
45
|
+
"pluginApi": ">=2026.5.31-beta.3"
|
|
46
46
|
},
|
|
47
47
|
"build": {
|
|
48
|
-
"openclawVersion": "2026.5.31-beta.
|
|
48
|
+
"openclawVersion": "2026.5.31-beta.3"
|
|
49
49
|
},
|
|
50
50
|
"release": {
|
|
51
51
|
"publishToClawHub": true,
|
|
@@ -59,7 +59,8 @@
|
|
|
59
59
|
"files": [
|
|
60
60
|
"dist/**",
|
|
61
61
|
"openclaw.plugin.json",
|
|
62
|
-
"npm-shrinkwrap.json"
|
|
62
|
+
"npm-shrinkwrap.json",
|
|
63
|
+
"README.md"
|
|
63
64
|
],
|
|
64
65
|
"bundledDependencies": [
|
|
65
66
|
"@line/bot-sdk",
|