@openclaw/line 2026.10.10-beta.4 → 2026.10.10-beta.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/.setup/api-Bis3gHmg.mjs +3 -0
- package/dist/.setup/{api-CO1TnHKG.mjs → api-PmHlEZ7r.mjs} +1 -1
- package/dist/.setup/{channel-CybGPFDZ.mjs → channel-j3EnT95N.mjs} +2 -2
- package/dist/.setup/{channel.runtime-IdkB6yvc.mjs → channel.runtime-in_KhKi8.mjs} +1 -1
- package/dist/.setup/{monitor-2NNRm8hi.mjs → monitor-DQ-v9pI6.mjs} +14 -27
- package/dist/.setup/monitor.runtime-DtJPzQya.mjs +1 -0
- package/dist/.source-module-urls/2c97352967966b7ab9f67f528eb25c098b6fe10ea0e4616ffae3851ed839d81e.json +1 -1
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +1 -1
- package/dist/setup-entry.js +1 -1
- package/package.json +4 -4
- package/dist/.setup/api-DPxiB9eZ.mjs +0 -3
- package/dist/.setup/monitor.runtime-DaSymO_N.mjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as lineChannelPluginCommon } from "./channel-
|
|
1
|
+
import { l as lineChannelPluginCommon } from "./channel-j3EnT95N.mjs";
|
|
2
2
|
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CYd8oqzt.mjs";
|
|
3
3
|
//#region extensions/line/src/channel.setup.ts
|
|
4
4
|
const lineSetupPlugin = {
|
|
@@ -403,7 +403,7 @@ const lineGatewayAdapter = {
|
|
|
403
403
|
if (getLineRuntime().logging.shouldLogVerbose()) ctx.log?.debug?.(`[${account.accountId}] bot check failed: ${String(err)}`);
|
|
404
404
|
}
|
|
405
405
|
ctx.log?.info(`[${account.accountId}] starting LINE provider${lineBotLabel}`);
|
|
406
|
-
const { monitorLineProvider } = await import("./monitor.runtime-
|
|
406
|
+
const { monitorLineProvider } = await import("./monitor.runtime-DtJPzQya.mjs");
|
|
407
407
|
return await monitorLineProvider({
|
|
408
408
|
channelAccessToken: token,
|
|
409
409
|
channelSecret: secret,
|
|
@@ -1295,7 +1295,7 @@ const lineMessageAdapter = createChannelMessageAdapterFromOutbound({
|
|
|
1295
1295
|
});
|
|
1296
1296
|
//#endregion
|
|
1297
1297
|
//#region extensions/line/src/channel.ts
|
|
1298
|
-
const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-
|
|
1298
|
+
const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-in_KhKi8.mjs"));
|
|
1299
1299
|
const lineSecurityAdapter = createRestrictSendersChannelSecurity({
|
|
1300
1300
|
channelKey: "line",
|
|
1301
1301
|
resolveDmPolicy: (account) => account.config.dmPolicy,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as probeLineBot } from "./send-retry-Dzbkz5wG.mjs";
|
|
2
2
|
import { l as pushMessageLine, m as showLoadingAnimation } from "./send-g4gFsc9W.mjs";
|
|
3
|
-
import { t as monitorLineProvider } from "./monitor-
|
|
3
|
+
import { t as monitorLineProvider } from "./monitor-DQ-v9pI6.mjs";
|
|
4
4
|
export { monitorLineProvider, probeLineBot, pushMessageLine, showLoadingAnimation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-DOiM8-y3.mjs";
|
|
2
|
-
import { a as parseLineQuestionPostbackData, c as resolveLineGroupConfigEntry, i as isLineQuestionPostbackData, n as createLineQuickReply, o as resolveLineQuestionPostback, r as prepareLineReplyPayload, s as buildLineQuickReplyFallbackText } from "./channel-
|
|
2
|
+
import { a as parseLineQuestionPostbackData, c as resolveLineGroupConfigEntry, i as isLineQuestionPostbackData, n as createLineQuickReply, o as resolveLineQuestionPostback, r as prepareLineReplyPayload, s as buildLineQuickReplyFallbackText } from "./channel-j3EnT95N.mjs";
|
|
3
3
|
import { a as normalizeLineAllowEntry } from "./setup-surface-CYd8oqzt.mjs";
|
|
4
4
|
import { t as getLineRuntime } from "./runtime-V7yh9OeC.mjs";
|
|
5
5
|
import { A as resolveLineQuoteToken, D as readLineQuoteToken, E as canCarryLineQuoteToken, M as buildLineMediaMessage, O as recordLineQuoteToken, T as applyLineQuoteToken, k as reportLineQuoteCarrierMissing, n as findLineHttpError, r as resolveLineNonDispatchRetryable, t as explainLineRefusal } from "./send-retry-Dzbkz5wG.mjs";
|
|
@@ -1756,18 +1756,6 @@ function resolveLineWebhookPath(webhookPath) {
|
|
|
1756
1756
|
//#region extensions/line/src/monitor.ts
|
|
1757
1757
|
const lineWebhookInFlightLimiter = createWebhookInFlightLimiter();
|
|
1758
1758
|
const lineWebhookTargets = /* @__PURE__ */ new Map();
|
|
1759
|
-
function startLineLoadingKeepalive(params) {
|
|
1760
|
-
const trigger = () => {
|
|
1761
|
-
showLoadingAnimation(params.userId, {
|
|
1762
|
-
cfg: params.cfg,
|
|
1763
|
-
accountId: params.accountId,
|
|
1764
|
-
loadingSeconds: 20
|
|
1765
|
-
}).catch(() => {});
|
|
1766
|
-
};
|
|
1767
|
-
trigger();
|
|
1768
|
-
const timer = setInterval(trigger, 18e3);
|
|
1769
|
-
return () => clearInterval(timer);
|
|
1770
|
-
}
|
|
1771
1759
|
async function monitorLineProvider(opts) {
|
|
1772
1760
|
const { channelAccessToken, channelSecret, accountId, config, runtime, buildContext, abortSignal, webhookPath, statusSink } = opts;
|
|
1773
1761
|
const resolvedAccountId = accountId ?? resolveDefaultLineAccountId(config);
|
|
@@ -1783,11 +1771,17 @@ async function monitorLineProvider(opts) {
|
|
|
1783
1771
|
onMessage: async (ctx, deliveryControl) => {
|
|
1784
1772
|
const { ctxPayload, replyToken, route } = ctx;
|
|
1785
1773
|
const turnConfig = deliveryControl.cfg;
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1774
|
+
const userId = ctx.isGroup ? void 0 : ctx.userId;
|
|
1775
|
+
const replyPipeline = userId ? { typing: {
|
|
1776
|
+
start: () => showLoadingAnimation(userId, {
|
|
1777
|
+
cfg: turnConfig,
|
|
1778
|
+
accountId: ctx.accountId,
|
|
1779
|
+
loadingSeconds: 20
|
|
1780
|
+
}),
|
|
1781
|
+
keepaliveIntervalMs: 18e3,
|
|
1782
|
+
maxDurationMs: 0,
|
|
1783
|
+
onStartError: () => {}
|
|
1784
|
+
} } : {};
|
|
1791
1785
|
logVerbose(`line: received message from ${ctxPayload.SenderName ?? ctx.userId ?? ctxPayload.From} (${ctxPayload.From})`);
|
|
1792
1786
|
let replyTokenUsed = false;
|
|
1793
1787
|
let turnAdopted = false;
|
|
@@ -1833,7 +1827,7 @@ async function monitorLineProvider(opts) {
|
|
|
1833
1827
|
},
|
|
1834
1828
|
ctxPayload,
|
|
1835
1829
|
record: ctx.turn.record,
|
|
1836
|
-
replyPipeline
|
|
1830
|
+
replyPipeline,
|
|
1837
1831
|
dispatcherOptions: { humanDelay: resolveHumanDelayConfig(turnConfig, route.agentId) },
|
|
1838
1832
|
...replyOptions ? { replyOptions } : {},
|
|
1839
1833
|
delivery: {
|
|
@@ -1846,14 +1840,9 @@ async function monitorLineProvider(opts) {
|
|
|
1846
1840
|
replyTokenUsed
|
|
1847
1841
|
}),
|
|
1848
1842
|
deliver: async (payload) => {
|
|
1849
|
-
const lineData = payload.channelData?.line ?? {};
|
|
1850
|
-
if (ctx.userId && !ctx.isGroup) showLoadingAnimation(ctx.userId, {
|
|
1851
|
-
cfg: turnConfig,
|
|
1852
|
-
accountId: ctx.accountId
|
|
1853
|
-
}).catch(() => {});
|
|
1854
1843
|
const deliveryResult = await deliverLineAutoReply({
|
|
1855
1844
|
payload,
|
|
1856
|
-
lineData,
|
|
1845
|
+
lineData: payload.channelData?.line ?? {},
|
|
1857
1846
|
to: ctxPayload.From,
|
|
1858
1847
|
replyToken,
|
|
1859
1848
|
replyTokenUsed,
|
|
@@ -1881,8 +1870,6 @@ async function monitorLineProvider(opts) {
|
|
|
1881
1870
|
runtime.error?.(danger(`line: auto-reply failed: ${String(err)}`));
|
|
1882
1871
|
if (turnAdopted || replyTokenUsed) throw new LineWebhookTerminalDeliveryError("LINE delivery failed after consuming the event reply token.", { cause: err });
|
|
1883
1872
|
throw err;
|
|
1884
|
-
} finally {
|
|
1885
|
-
stopLoading?.();
|
|
1886
1873
|
}
|
|
1887
1874
|
}
|
|
1888
1875
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as monitorLineProvider } from "./monitor-DQ-v9pI6.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"api.js","source":"extensions/line/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/line/channel-plugin-api.ts"},{"output":"contract-api.js","source":"extensions/line/contract-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/line/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/line/index.ts"},{"output":"runtime-api.js","source":"extensions/line/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/line/secret-contract-api.ts"},{"output":"setup-api.js","source":"extensions/line/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/line/setup-entry.ts"}],"chunks":[{"output":".setup/accounts-DOiM8-y3.mjs","sha256":"56d1cf766984063d8eec40ee937e12f10082bb39c5cd30ffb9d0829b85c85940","facadeSource":null,"sources":["extensions/line/src/accounts.ts"]},{"output":".setup/api-
|
|
1
|
+
{"version":3,"entries":[{"output":"api.js","source":"extensions/line/api.ts"},{"output":"channel-plugin-api.js","source":"extensions/line/channel-plugin-api.ts"},{"output":"contract-api.js","source":"extensions/line/contract-api.ts"},{"output":"doctor-contract-api.js","source":"extensions/line/doctor-contract-api.ts"},{"output":"index.js","source":"extensions/line/index.ts"},{"output":"runtime-api.js","source":"extensions/line/runtime-api.ts"},{"output":"secret-contract-api.js","source":"extensions/line/secret-contract-api.ts"},{"output":"setup-api.js","source":"extensions/line/setup-api.ts"},{"output":"setup-entry.js","source":"extensions/line/setup-entry.ts"}],"chunks":[{"output":".setup/accounts-DOiM8-y3.mjs","sha256":"56d1cf766984063d8eec40ee937e12f10082bb39c5cd30ffb9d0829b85c85940","facadeSource":null,"sources":["extensions/line/src/accounts.ts"]},{"output":".setup/api-Bis3gHmg.mjs","sha256":"29376f262178376085aba738c4751029a541a35c5b620a6255a540fb06104eb5","facadeSource":"extensions/line/api.ts","sources":[]},{"output":".setup/api-PmHlEZ7r.mjs","sha256":"c68da4c9d006a52c98b582e54542c77f307f286043cf4044873ade130ff405d6","facadeSource":null,"sources":["extensions/line/src/channel.setup.ts"]},{"output":".setup/card-command-BMLk4YKh.mjs","sha256":"1e1736764d929563326595ed97b2d984e145688ae4f67cda839c2dc3727fce10","facadeSource":"extensions/line/src/card-command.ts","sources":["extensions/line/src/card-command.ts"]},{"output":".setup/channel-j3EnT95N.mjs","sha256":"332e67d697b399494961b38654253692c25e70b7cb5b6d4d223a8bd59937069f","facadeSource":null,"sources":["extensions/line/src/bindings.ts","extensions/line/src/channel-shared.ts","extensions/line/src/channel.ts","extensions/line/src/config-adapter.ts","extensions/line/src/config-schema.ts","extensions/line/src/doctor.ts","extensions/line/src/flex-templates/media-control-cards.ts","extensions/line/src/gateway.ts","extensions/line/src/group-keys.ts","extensions/line/src/group-policy.ts","extensions/line/src/outbound.ts","extensions/line/src/question-postback.ts","extensions/line/src/quick-reply-fallback.ts","extensions/line/src/rich-message-schema.ts","extensions/line/src/rich-messages.ts","extensions/line/src/status.ts"]},{"output":".setup/channel.runtime-in_KhKi8.mjs","sha256":"cb958e179f17ddfbc61612f6915131452570dd6b03b15b13bbdab0116ea9b52e","facadeSource":"extensions/line/src/channel.runtime.ts","sources":[]},{"output":".setup/monitor-DQ-v9pI6.mjs","sha256":"e697df1a26f63629150ebe78993105d647d50d5ec0537740108bd561c3ef5c5c","facadeSource":null,"sources":["extensions/line/src/auto-reply-delivery.ts","extensions/line/src/bot-handlers.ts","extensions/line/src/bot-message-context.ts","extensions/line/src/bot.ts","extensions/line/src/download.ts","extensions/line/src/group-history.ts","extensions/line/src/inbound-image-set.ts","extensions/line/src/mentions.ts","extensions/line/src/monitor-durable.ts","extensions/line/src/monitor.ts","extensions/line/src/signature.ts","extensions/line/src/webhook-node.ts","extensions/line/src/webhook-spool.ts","extensions/line/src/webhook-utils.ts"]},{"output":".setup/monitor.runtime-DtJPzQya.mjs","sha256":"c7ed19af0b1314f1307c02a6187019c8fcb70f181443dfe359f7b2bf39e4f827","facadeSource":"extensions/line/src/monitor.runtime.ts","sources":[]},{"output":".setup/outbound.runtime-BJL2119X.mjs","sha256":"0bb42bc9641d63fc8ca7f372a4abf02eda898dfb517b7d2a9d4145913680b99c","facadeSource":"extensions/line/src/outbound.runtime.ts","sources":[]},{"output":".setup/probe.runtime-DaGwztSg.mjs","sha256":"025509fbd8120f6fd50099c9910d62edcf82408cd6d9037ee5ed4f652ee224bd","facadeSource":"extensions/line/src/probe.runtime.ts","sources":[]},{"output":".setup/runtime-V7yh9OeC.mjs","sha256":"1ac56aacd454f0a3cbe86865bbab4b6d67517074a582ba0c9cbf570a2c21c326","facadeSource":null,"sources":["extensions/line/src/runtime.ts"]},{"output":".setup/send-g4gFsc9W.mjs","sha256":"c590ac300a9e83df018683442c443cd919ea251ba82dfd5d4c200392fa3b9a1b","facadeSource":null,"sources":["extensions/line/src/outbound-message-log.ts","extensions/line/src/send-receipt.ts","extensions/line/src/send.ts"]},{"output":".setup/send-retry-Dzbkz5wG.mjs","sha256":"b09795da7cb2986e55613c4a90b0c47ead460ef39bf2673b0dc8bf722a45cfed","facadeSource":null,"sources":["extensions/line/src/actions.ts","extensions/line/src/channel-access-token.ts","extensions/line/src/flex-templates/basic-cards.ts","extensions/line/src/flex-templates/common.ts","extensions/line/src/flex-templates/message.ts","extensions/line/src/flex-templates/schedule-cards.ts","extensions/line/src/media-url.ts","extensions/line/src/messaging-target.ts","extensions/line/src/outbound-media.ts","extensions/line/src/probe.ts","extensions/line/src/quote-tokens.ts","extensions/line/src/send-retry.ts"]},{"output":".setup/setup-surface-CYd8oqzt.mjs","sha256":"1b1badac06cd9a9100131be0787ea8d60e0536b18363d72a328c3345ece36fb0","facadeSource":null,"sources":["extensions/line/src/account-helpers.ts","extensions/line/src/bot-access.ts","extensions/line/src/setup-core.ts","extensions/line/src/setup-surface.ts"]},{"output":".setup/template-messages-COcdie6C.mjs","sha256":"f665cd00942f4ca1da8a371660cd91d8ac153e274146b7693b7d712a9c441ce0","facadeSource":null,"sources":["extensions/line/src/markdown-to-line.ts","extensions/line/src/template-messages.ts","packages/normalization-core/src/grapheme.ts","packages/normalization-core/src/utf16-slice.ts"]},{"output":".setup/webhook-spool-contract-msjTl60Q.mjs","sha256":"adb5fcdc75ce67f080542810ef3e6f8992c6f605d1118491cb27c6fcfde0b394","facadeSource":null,"sources":["extensions/line/src/webhook-spool-contract.ts"]},{"output":"api.js","sha256":"5b9983c3d34b950fc67ac468296eafc2b1fd5fe84f627227d18dcf0a151d87e2","facadeSource":"extensions/line/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"37690e3cc53663cad03bc82c125ff27c27e230c000150ae25f1eecc412814853","facadeSource":"extensions/line/channel-plugin-api.ts","sources":[]},{"output":"contract-api.js","sha256":"5ada259c1c8cc15d47a4b137b1c24b2d917358b605aa0b3b90c640dd8e9db631","facadeSource":"extensions/line/contract-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"74bab000c23513d711021179dac75bbcae70149816220010d060c21b8f0fc2a7","facadeSource":"extensions/line/doctor-contract-api.ts","sources":["extensions/line/doctor-contract-api.ts","extensions/line/src/webhook-spool-migration.ts"]},{"output":"index.js","sha256":"fffe8508c93abcbe7d6ab2669c3dc8d9f16dd50dabbbf49a952846749c37aee5","facadeSource":"extensions/line/index.ts","sources":["extensions/line/index.ts"]},{"output":"runtime-api.js","sha256":"d4608e118257690b4678909bd09aeb76c6db6d74a2e8847a826316d2cebb120a","facadeSource":"extensions/line/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"b910921591244f33f89f7da098a21be20b7c1d1a81871c2db2db5185dedfc8d6","facadeSource":"extensions/line/secret-contract-api.ts","sources":["extensions/line/secret-contract-api.ts"]},{"output":"setup-api.js","sha256":"8256db26d152acea47a918c482a77233e05d4cd556d3400a1c3cfe60848ae479","facadeSource":"extensions/line/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"55a3f3a91a2a45a2fe2f99ba0e43f5cb565d58947c0740c4c3abebb0060521ad","facadeSource":"extensions/line/setup-entry.ts","sources":["extensions/line/setup-entry.ts"]}],"unrenderedSources":["extensions/line/api.ts","extensions/line/channel-plugin-api.ts","extensions/line/contract-api.ts","extensions/line/runtime-api.ts","extensions/line/setup-api.ts","extensions/line/src/channel.runtime.ts","extensions/line/src/monitor.runtime.ts","extensions/line/src/outbound.runtime.ts","extensions/line/src/probe.runtime.ts","src/plugin-sdk/text-grapheme.ts"]}
|
package/dist/api.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as linePlugin } from "./.setup/channel-
|
|
2
|
-
import { t as lineSetupPlugin } from "./.setup/api-
|
|
1
|
+
import { t as linePlugin } from "./.setup/channel-j3EnT95N.mjs";
|
|
2
|
+
import { t as lineSetupPlugin } from "./.setup/api-PmHlEZ7r.mjs";
|
|
3
3
|
export { linePlugin, lineSetupPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as linePlugin } from "./.setup/channel-
|
|
1
|
+
export { t as linePlugin } from "./.setup/channel-j3EnT95N.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
var setup_entry_default = defineBundledChannelSetupEntry({
|
|
5
5
|
importMetaUrl: import.meta.url,
|
|
6
6
|
plugin: {
|
|
7
|
-
specifier: fileURLToPath(new URL(".setup/api-
|
|
7
|
+
specifier: fileURLToPath(new URL(".setup/api-Bis3gHmg.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "lineSetupPlugin"
|
|
9
9
|
}
|
|
10
10
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.10.10-beta.
|
|
3
|
+
"version": "2026.10.10-beta.5",
|
|
4
4
|
"description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"zod": "4.6.5"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.10.10-beta.
|
|
16
|
+
"openclaw": ">=2026.10.10-beta.5"
|
|
17
17
|
},
|
|
18
18
|
"peerDependenciesMeta": {
|
|
19
19
|
"openclaw": {
|
|
@@ -122,10 +122,10 @@
|
|
|
122
122
|
"minHostVersion": ">=2026.4.10"
|
|
123
123
|
},
|
|
124
124
|
"compat": {
|
|
125
|
-
"pluginApi": ">=2026.10.10-beta.
|
|
125
|
+
"pluginApi": ">=2026.10.10-beta.5"
|
|
126
126
|
},
|
|
127
127
|
"build": {
|
|
128
|
-
"openclawVersion": "2026.10.10-beta.
|
|
128
|
+
"openclawVersion": "2026.10.10-beta.5"
|
|
129
129
|
},
|
|
130
130
|
"release": {
|
|
131
131
|
"publishToClawHub": true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as monitorLineProvider } from "./monitor-2NNRm8hi.mjs";
|