@openclaw/line 2026.10.10 → 2026.10.34
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/{accounts-Dm_NoU7R.mjs → accounts-DOiM8-y3.mjs} +2 -1
- package/dist/.setup/api-BMSLc5Fi.mjs +3 -0
- package/dist/.setup/{api-Bz8QPCGD.mjs → api-WIupE7U1.mjs} +4 -3
- package/dist/.setup/{card-command-XYkg1XvG.mjs → card-command-Dnkl21vg.mjs} +4 -3
- package/dist/.setup/{channel-ezTshIoC.mjs → channel-DIEVJ4PQ.mjs} +39 -24
- package/dist/.setup/{channel.runtime-4w8EffJb.mjs → channel.runtime-CDy9DQUW.mjs} +3 -3
- package/dist/.setup/{monitor-BBEBldZu.mjs → monitor-JlOPDECF.mjs} +36 -23
- package/dist/.setup/monitor.runtime-DsIFiXEZ.mjs +2 -0
- package/dist/.setup/{outbound.runtime-BSuF2lax.mjs → outbound.runtime-pciQUWJd.mjs} +2 -2
- package/dist/.setup/probe.runtime-D2MUF_B_.mjs +2 -0
- package/dist/.setup/{runtime-C9ldw-V4.mjs → runtime-V7yh9OeC.mjs} +2 -1
- package/dist/.setup/{send-B8TYfTO_.mjs → send-kjjjemFi.mjs} +14 -29
- package/dist/.setup/{send-retry-gHsCgBlf.mjs → send-retry-Dzbkz5wG.mjs} +25 -13
- package/dist/.setup/{setup-surface-DvbBjHFi.mjs → setup-surface-CYd8oqzt.mjs} +9 -5
- package/dist/.setup/{template-messages-CdpQxqqb.mjs → template-messages-COcdie6C.mjs} +9 -5
- package/dist/.setup/{webhook-spool-contract-COhQK5XQ.mjs → webhook-spool-contract-msjTl60Q.mjs} +2 -1
- package/dist/api.js +2 -2
- package/dist/channel-plugin-api.js +2 -1
- package/dist/contract-api.js +2 -1
- package/dist/doctor-contract-api.js +5 -3
- package/dist/index.js +3 -2
- package/dist/runtime-api.js +2 -1
- package/dist/secret-contract-api.js +2 -1
- package/dist/setup-api.js +2 -1
- package/dist/setup-entry.js +3 -2
- package/package.json +4 -4
- package/dist/.setup/api-EJnP_1cJ.mjs +0 -3
- package/dist/.setup/monitor.runtime-BWIgUqzC.mjs +0 -1
- package/dist/.setup/probe.runtime-a-fC57xd.mjs +0 -1
- package/dist/.source-module-urls/2c97352967966b7ab9f67f528eb25c098b6fe10ea0e4616ffae3851ed839d81e.json +0 -1
|
@@ -2,7 +2,7 @@ import { createAccountListHelpers } from "openclaw/plugin-sdk/account-helpers";
|
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { resolveAccountEntry, resolveListedDefaultAccountId } from "openclaw/plugin-sdk/account-resolution";
|
|
4
4
|
import { tryReadSecretFileSync } from "openclaw/plugin-sdk/secret-file-runtime";
|
|
5
|
-
|
|
5
|
+
//#region extensions/line/src/accounts.ts
|
|
6
6
|
const { resolveAccountConfig: resolveMergedLineAccountConfig } = createAccountListHelpers("line", { omitKeys: ["defaultAccount"] });
|
|
7
7
|
function resolveLineCredential(params) {
|
|
8
8
|
const { accountId, baseConfig, accountConfig, credentialKey, fileKey, envKey } = params;
|
|
@@ -97,4 +97,5 @@ function resolveDefaultLineAccountId(cfg) {
|
|
|
97
97
|
normalizeListedAccountId: normalizeAccountId
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
+
//#endregion
|
|
100
101
|
export { resolveDefaultLineAccountId as n, resolveLineAccount as r, listLineAccountIds as t };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { l as lineChannelPluginCommon } from "./channel-
|
|
2
|
-
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-
|
|
3
|
-
|
|
1
|
+
import { l as lineChannelPluginCommon } from "./channel-DIEVJ4PQ.mjs";
|
|
2
|
+
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CYd8oqzt.mjs";
|
|
3
|
+
//#region extensions/line/src/channel.setup.ts
|
|
4
4
|
const lineSetupPlugin = {
|
|
5
5
|
id: "line",
|
|
6
6
|
...lineChannelPluginCommon,
|
|
7
7
|
setupWizard: lineSetupWizard,
|
|
8
8
|
setupContract: lineSetupContract
|
|
9
9
|
};
|
|
10
|
+
//#endregion
|
|
10
11
|
export { lineSetupPlugin as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as createImageCard, f as createInfoCard, l as createReceiptCard, p as createListCard, u as createActionCard } from "./send-retry-
|
|
2
|
-
import { t as createFlexMessage } from "./send-
|
|
1
|
+
import { d as createImageCard, f as createInfoCard, l as createReceiptCard, p as createListCard, u as createActionCard } from "./send-retry-Dzbkz5wG.mjs";
|
|
2
|
+
import { t as createFlexMessage } from "./send-kjjjemFi.mjs";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
5
|
-
|
|
5
|
+
//#region extensions/line/src/card-command.ts
|
|
6
6
|
const CARD_USAGE = `Usage: /card <type> "title" "body" [options]
|
|
7
7
|
|
|
8
8
|
Types:
|
|
@@ -231,4 +231,5 @@ async function handleLineCardCommand(argsInput) {
|
|
|
231
231
|
return { text: `Error creating card: ${String(err)}` };
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
+
//#endregion
|
|
234
235
|
export { handleLineCardCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./accounts-
|
|
2
|
-
import { a as normalizeLineAllowEntry, i as hasLineCredentials, r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-
|
|
3
|
-
import { t as getLineRuntime } from "./runtime-
|
|
4
|
-
import { A as resolveLineQuoteToken, C as fitsLineFlexBubble, E as canCarryLineQuoteToken, M as buildLineMediaMessage, N as inferLineTargetChatType, P as normalizeLineMessagingTarget, _ as createCardTitle, b as postbackAction, c as createEventCard, g as createCardBubble, h as cardText, k as reportLineQuoteCarrierMissing, m as cardBox, s as createAgendaCard, t as explainLineRefusal, u as createActionCard, v as messageAction, x as truncateLineActionLabel } from "./send-retry-
|
|
1
|
+
import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./accounts-DOiM8-y3.mjs";
|
|
2
|
+
import { a as normalizeLineAllowEntry, i as hasLineCredentials, r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CYd8oqzt.mjs";
|
|
3
|
+
import { t as getLineRuntime } from "./runtime-V7yh9OeC.mjs";
|
|
4
|
+
import { A as resolveLineQuoteToken, C as fitsLineFlexBubble, E as canCarryLineQuoteToken, M as buildLineMediaMessage, N as inferLineTargetChatType, P as normalizeLineMessagingTarget, _ as createCardTitle, b as postbackAction, c as createEventCard, g as createCardBubble, h as cardText, k as reportLineQuoteCarrierMissing, m as cardBox, s as createAgendaCard, t as explainLineRefusal, u as createActionCard, v as messageAction, x as truncateLineActionLabel } from "./send-retry-Dzbkz5wG.mjs";
|
|
5
5
|
import { buildDmGroupAccountAllowlistAdapter, createFlatAllowlistOverrideResolver } from "openclaw/plugin-sdk/allowlist-config-edit";
|
|
6
6
|
import { buildChannelOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
|
|
7
7
|
import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";
|
|
@@ -26,7 +26,7 @@ import { resolveAskUserQuestionOptionIndex, resolveAskUserQuestionOptionIndices,
|
|
|
26
26
|
import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
|
|
27
27
|
import { normalizeMessagePresentation, renderMessagePresentationFallbackText, renderPresentationForDelivery, resolveMessagePresentationButtonAction, resolveMessagePresentationOptionAction } from "openclaw/plugin-sdk/interactive-runtime";
|
|
28
28
|
import { Type } from "typebox";
|
|
29
|
-
|
|
29
|
+
//#region extensions/line/src/bindings.ts
|
|
30
30
|
function normalizeLineConversationId(raw) {
|
|
31
31
|
const trimmed = raw?.trim() ?? "";
|
|
32
32
|
if (!trimmed) return null;
|
|
@@ -56,7 +56,8 @@ const lineBindingsAdapter = {
|
|
|
56
56
|
resolveCommandConversation: resolveLineCommandConversation,
|
|
57
57
|
resolveInboundConversation: resolveLineInboundConversation
|
|
58
58
|
};
|
|
59
|
-
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region extensions/line/src/config-adapter.ts
|
|
60
61
|
const lineConfigAdapter = createScopedChannelConfigAdapter({
|
|
61
62
|
sectionKey: "line",
|
|
62
63
|
listAccountIds: listLineAccountIds,
|
|
@@ -75,7 +76,8 @@ const lineConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
75
76
|
resolveAllowFrom: (account) => account.config.allowFrom,
|
|
76
77
|
formatAllowFrom: (allowFrom) => normalizeStringEntries(allowFrom).map(normalizeLineAllowEntry)
|
|
77
78
|
});
|
|
78
|
-
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region extensions/line/src/config-schema.ts
|
|
79
81
|
const ThreadBindingsSchema = z.object({
|
|
80
82
|
enabled: z.boolean().optional(),
|
|
81
83
|
idleHours: z.number().optional(),
|
|
@@ -166,7 +168,8 @@ const lineChannelPluginCommon = {
|
|
|
166
168
|
})
|
|
167
169
|
}
|
|
168
170
|
};
|
|
169
|
-
|
|
171
|
+
//#endregion
|
|
172
|
+
//#region extensions/line/src/group-keys.ts
|
|
170
173
|
function resolveLineGroupLookupIds(groupId) {
|
|
171
174
|
const normalized = groupId?.trim();
|
|
172
175
|
if (!normalized) return [];
|
|
@@ -197,7 +200,8 @@ function resolveExactLineGroupConfigKey(params) {
|
|
|
197
200
|
if (!groups) return;
|
|
198
201
|
return resolveLineGroupLookupIds(params.groupId).find((candidate) => Object.hasOwn(groups, candidate));
|
|
199
202
|
}
|
|
200
|
-
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region extensions/line/src/doctor.ts
|
|
201
205
|
const GROUP_DEFAULTS_KEY = "*";
|
|
202
206
|
function classifyAllowFrom(values) {
|
|
203
207
|
const entries = Array.isArray(values) ? values.map(normalizeLineAllowEntry).filter(Boolean) : [];
|
|
@@ -302,7 +306,8 @@ const lineDoctor = {
|
|
|
302
306
|
return covered || referenceBacked.length > 0;
|
|
303
307
|
}
|
|
304
308
|
};
|
|
305
|
-
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region extensions/line/src/status.ts
|
|
306
311
|
const collectLineCredentialIssues = createDependentCredentialStatusIssueCollector({
|
|
307
312
|
channel: "line",
|
|
308
313
|
dependencySourceKey: "tokenSource",
|
|
@@ -357,7 +362,7 @@ const lineStatusAdapter = createComputedAccountStatusAdapter({
|
|
|
357
362
|
defaultRuntime: createDefaultChannelRuntimeState(DEFAULT_ACCOUNT_ID),
|
|
358
363
|
collectStatusIssues: (accounts) => [...collectLineCredentialIssues(accounts), ...collectLineWebhookIssues(accounts)],
|
|
359
364
|
buildChannelSummary: ({ snapshot }) => buildTokenChannelStatusSummary(snapshot),
|
|
360
|
-
probeAccount: async ({ account, timeoutMs }) => await (await import("./probe.runtime-
|
|
365
|
+
probeAccount: async ({ account, timeoutMs }) => await (await import("./probe.runtime-D2MUF_B_.mjs")).probeLineBot(account.channelAccessToken, timeoutMs),
|
|
361
366
|
resolveAccountSnapshot: ({ account, probe }) => ({
|
|
362
367
|
accountId: account.accountId,
|
|
363
368
|
name: account.name,
|
|
@@ -373,7 +378,8 @@ const lineStatusAdapter = createComputedAccountStatusAdapter({
|
|
|
373
378
|
}
|
|
374
379
|
})
|
|
375
380
|
});
|
|
376
|
-
|
|
381
|
+
//#endregion
|
|
382
|
+
//#region extensions/line/src/gateway.ts
|
|
377
383
|
const lineGatewayAdapter = {
|
|
378
384
|
startAccount: async (ctx) => {
|
|
379
385
|
const account = ctx.account;
|
|
@@ -388,7 +394,7 @@ const lineGatewayAdapter = {
|
|
|
388
394
|
statusSink({ lifecycle: "starting" });
|
|
389
395
|
let lineBotLabel = "";
|
|
390
396
|
try {
|
|
391
|
-
const probe = await (await import("./probe.runtime-
|
|
397
|
+
const probe = await (await import("./probe.runtime-D2MUF_B_.mjs")).probeLineBot(token, 2500);
|
|
392
398
|
const displayName = probe.ok ? probe.bot?.displayName?.trim() : null;
|
|
393
399
|
if (displayName) lineBotLabel = ` (${displayName})`;
|
|
394
400
|
const delivery = describeLineWebhookDelivery({ webhook: probe.ok ? probe.webhook : void 0 });
|
|
@@ -397,7 +403,7 @@ const lineGatewayAdapter = {
|
|
|
397
403
|
if (getLineRuntime().logging.shouldLogVerbose()) ctx.log?.debug?.(`[${account.accountId}] bot check failed: ${String(err)}`);
|
|
398
404
|
}
|
|
399
405
|
ctx.log?.info(`[${account.accountId}] starting LINE provider${lineBotLabel}`);
|
|
400
|
-
const { monitorLineProvider } = await import("./monitor.runtime-
|
|
406
|
+
const { monitorLineProvider } = await import("./monitor.runtime-DsIFiXEZ.mjs");
|
|
401
407
|
return await monitorLineProvider({
|
|
402
408
|
channelAccessToken: token,
|
|
403
409
|
channelSecret: secret,
|
|
@@ -439,7 +445,8 @@ const lineGatewayAdapter = {
|
|
|
439
445
|
};
|
|
440
446
|
}
|
|
441
447
|
};
|
|
442
|
-
|
|
448
|
+
//#endregion
|
|
449
|
+
//#region extensions/line/src/group-policy.ts
|
|
443
450
|
function resolveLineGroupRequireMention(params) {
|
|
444
451
|
const tree = buildChannelGroupsScopeTree(params.cfg, "line", params.accountId);
|
|
445
452
|
const matchedKey = resolveExactLineGroupConfigKey({
|
|
@@ -451,13 +458,15 @@ function resolveLineGroupRequireMention(params) {
|
|
|
451
458
|
path: matchedKey ? [matchedKey] : []
|
|
452
459
|
});
|
|
453
460
|
}
|
|
454
|
-
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region extensions/line/src/quick-reply-fallback.ts
|
|
455
463
|
function buildLineQuickReplyFallbackText(labels) {
|
|
456
464
|
const normalized = normalizeStringEntries(labels).slice(0, 13);
|
|
457
465
|
if (normalized.length === 0) return "Choose an option.";
|
|
458
466
|
return `Options:\n${normalized.map((label) => `- ${label}`).join("\n")}`;
|
|
459
467
|
}
|
|
460
|
-
|
|
468
|
+
//#endregion
|
|
469
|
+
//#region extensions/line/src/flex-templates/media-control-cards.ts
|
|
461
470
|
function createControlButton(label, data, style = "secondary") {
|
|
462
471
|
return {
|
|
463
472
|
type: "button",
|
|
@@ -643,7 +652,8 @@ function createDeviceControlCard(params) {
|
|
|
643
652
|
}
|
|
644
653
|
return bubble;
|
|
645
654
|
}
|
|
646
|
-
|
|
655
|
+
//#endregion
|
|
656
|
+
//#region extensions/line/src/question-postback.ts
|
|
647
657
|
const QUESTION_ID_PARAM = "line.question";
|
|
648
658
|
const OPTION_INDEX_PARAM = "line.option";
|
|
649
659
|
const POSTBACK_DATA_MAX_BYTES = 300;
|
|
@@ -700,7 +710,8 @@ async function resolveLineQuestionPostback(params) {
|
|
|
700
710
|
return { status: "failed" };
|
|
701
711
|
}
|
|
702
712
|
}
|
|
703
|
-
|
|
713
|
+
//#endregion
|
|
714
|
+
//#region extensions/line/src/rich-message-schema.ts
|
|
704
715
|
const nonempty = () => Type.String({ minLength: 1 });
|
|
705
716
|
const closed = (properties) => Type.Object(properties, { additionalProperties: false });
|
|
706
717
|
const lineCardSchema = Type.Union([
|
|
@@ -771,7 +782,8 @@ const lineChannelDataSchema = Type.Optional(closed({ line: closed({
|
|
|
771
782
|
durationMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
772
783
|
trackingId: Type.Optional(nonempty())
|
|
773
784
|
}) }));
|
|
774
|
-
|
|
785
|
+
//#endregion
|
|
786
|
+
//#region extensions/line/src/rich-messages.ts
|
|
775
787
|
const lineMessageActions = {
|
|
776
788
|
describeMessageTool: ({ cfg, accountId }) => {
|
|
777
789
|
const account = resolveLineAccount({
|
|
@@ -1029,8 +1041,9 @@ function createLineQuickReply(items) {
|
|
|
1029
1041
|
action: item.action.type === "command" ? messageAction(item.label, item.action.command) : postbackAction(item.label, item.action.value, item.label)
|
|
1030
1042
|
})) };
|
|
1031
1043
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region extensions/line/src/outbound.ts
|
|
1046
|
+
const loadLineOutboundRuntime = createLazyRuntimeModule(() => import("./outbound.runtime-pciQUWJd.mjs"));
|
|
1034
1047
|
function quotedOption(quoteToken) {
|
|
1035
1048
|
return quoteToken ? { quoteToken } : {};
|
|
1036
1049
|
}
|
|
@@ -1280,8 +1293,9 @@ const lineMessageAdapter = createChannelMessageAdapterFromOutbound({
|
|
|
1280
1293
|
supportedAckPolicies: ["after_receive_record"]
|
|
1281
1294
|
}
|
|
1282
1295
|
});
|
|
1283
|
-
|
|
1284
|
-
|
|
1296
|
+
//#endregion
|
|
1297
|
+
//#region extensions/line/src/channel.ts
|
|
1298
|
+
const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CDy9DQUW.mjs"));
|
|
1285
1299
|
const lineSecurityAdapter = createRestrictSendersChannelSecurity({
|
|
1286
1300
|
channelKey: "line",
|
|
1287
1301
|
resolveDmPolicy: (account) => account.config.dmPolicy,
|
|
@@ -1443,4 +1457,5 @@ const linePlugin = createChatChannelPlugin({
|
|
|
1443
1457
|
} },
|
|
1444
1458
|
outbound: lineOutboundAdapter
|
|
1445
1459
|
});
|
|
1460
|
+
//#endregion
|
|
1446
1461
|
export { parseLineQuestionPostbackData as a, resolveLineGroupConfigEntry as c, isLineQuestionPostbackData as i, lineChannelPluginCommon as l, createLineQuickReply as n, resolveLineQuestionPostback as o, prepareLineReplyPayload as r, buildLineQuickReplyFallbackText as s, linePlugin as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as probeLineBot } from "./send-retry-
|
|
2
|
-
import { l as pushMessageLine, m as showLoadingAnimation } from "./send-
|
|
3
|
-
import { t as monitorLineProvider } from "./monitor-
|
|
1
|
+
import { a as probeLineBot } from "./send-retry-Dzbkz5wG.mjs";
|
|
2
|
+
import { l as pushMessageLine, m as showLoadingAnimation } from "./send-kjjjemFi.mjs";
|
|
3
|
+
import { t as monitorLineProvider } from "./monitor-JlOPDECF.mjs";
|
|
4
4
|
export { monitorLineProvider, probeLineBot, pushMessageLine, showLoadingAnimation };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-
|
|
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-
|
|
3
|
-
import { a as normalizeLineAllowEntry } from "./setup-surface-
|
|
4
|
-
import { t as getLineRuntime } from "./runtime-
|
|
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-
|
|
6
|
-
import { a as laneKeyFor, i as eventIdFor, n as LINE_WEBHOOK_SPOOL_INVALID_PAYLOAD_MESSAGE, r as LineWebhookPayloadError, t as LINE_WEBHOOK_SPOOL_INVALID_EVENT_REASON } from "./webhook-spool-contract-
|
|
7
|
-
import { a as getUserDisplayName, h as quotesLineBotMessage, i as getLineGroupName, l as pushMessageLine, m as showLoadingAnimation, n as createLocationMessage, o as getUserProfile, p as replyMessageLine, t as createFlexMessage, u as pushMessagesLine } from "./send-
|
|
8
|
-
import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-
|
|
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-DIEVJ4PQ.mjs";
|
|
3
|
+
import { a as normalizeLineAllowEntry } from "./setup-surface-CYd8oqzt.mjs";
|
|
4
|
+
import { t as getLineRuntime } from "./runtime-V7yh9OeC.mjs";
|
|
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";
|
|
6
|
+
import { a as laneKeyFor, i as eventIdFor, n as LINE_WEBHOOK_SPOOL_INVALID_PAYLOAD_MESSAGE, r as LineWebhookPayloadError, t as LINE_WEBHOOK_SPOOL_INVALID_EVENT_REASON } from "./webhook-spool-contract-msjTl60Q.mjs";
|
|
7
|
+
import { a as getUserDisplayName, h as quotesLineBotMessage, i as getLineGroupName, l as pushMessageLine, m as showLoadingAnimation, n as createLocationMessage, o as getUserProfile, p as replyMessageLine, t as createFlexMessage, u as pushMessagesLine } from "./send-kjjjemFi.mjs";
|
|
8
|
+
import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-COcdie6C.mjs";
|
|
9
9
|
import { createChannelPairingChallengeIssuer } from "openclaw/plugin-sdk/channel-pairing";
|
|
10
10
|
import { resolveChannelGroupsConfigPath } from "openclaw/plugin-sdk/channel-policy";
|
|
11
11
|
import { normalizeOptionalString, normalizeStringEntries, readNonEmptyStringPreservingWhitespace } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
@@ -44,7 +44,7 @@ import { saveMediaStream } from "openclaw/plugin-sdk/media-store";
|
|
|
44
44
|
import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
45
45
|
import { enqueueKeyedTask } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
46
46
|
import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
|
|
47
|
-
|
|
47
|
+
//#region extensions/line/src/auto-reply-delivery.ts
|
|
48
48
|
function toLineDeliveryError(error) {
|
|
49
49
|
return error instanceof Error ? error : new Error("LINE message send failed", { cause: error });
|
|
50
50
|
}
|
|
@@ -228,7 +228,8 @@ async function deliverLineAutoReply(params) {
|
|
|
228
228
|
visibleReplySent
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region extensions/line/src/mentions.ts
|
|
232
233
|
function getLineMentionees(message) {
|
|
233
234
|
return message.type === "text" ? message.mention?.mentionees ?? [] : [];
|
|
234
235
|
}
|
|
@@ -265,7 +266,8 @@ function resolveLineMentionStrippedText(message) {
|
|
|
265
266
|
}
|
|
266
267
|
return `${stripped}${text.slice(cursor)}`.trim();
|
|
267
268
|
}
|
|
268
|
-
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region extensions/line/src/bot-message-context.ts
|
|
269
271
|
function getLineSourceInfo(source) {
|
|
270
272
|
if (!source) return {
|
|
271
273
|
userId: void 0,
|
|
@@ -641,7 +643,8 @@ async function buildLinePostbackContext(params) {
|
|
|
641
643
|
verboseLog: { kind: "postback" }
|
|
642
644
|
});
|
|
643
645
|
}
|
|
644
|
-
|
|
646
|
+
//#endregion
|
|
647
|
+
//#region extensions/line/src/download.ts
|
|
645
648
|
const CONTENT_READY_MAX_ATTEMPTS = 6;
|
|
646
649
|
const CONTENT_READY_BASE_DELAY_MS = 500;
|
|
647
650
|
const CONTENT_READY_MAX_DELAY_MS = 4e3;
|
|
@@ -745,7 +748,8 @@ async function downloadLineMedia(messageId, channelAccessToken, maxBytes = 10485
|
|
|
745
748
|
clearTimeout(deadline);
|
|
746
749
|
}
|
|
747
750
|
}
|
|
748
|
-
|
|
751
|
+
//#endregion
|
|
752
|
+
//#region extensions/line/src/group-history.ts
|
|
749
753
|
const reservedEntries = /* @__PURE__ */ new WeakSet();
|
|
750
754
|
function reserveLineGroupHistory(historyMap, historyKey, limit) {
|
|
751
755
|
if (!historyMap || !historyKey || limit <= 0) return {
|
|
@@ -779,7 +783,8 @@ function reserveLineGroupHistory(historyMap, historyKey, limit) {
|
|
|
779
783
|
}
|
|
780
784
|
};
|
|
781
785
|
}
|
|
782
|
-
|
|
786
|
+
//#endregion
|
|
787
|
+
//#region extensions/line/src/bot-handlers.ts
|
|
783
788
|
const LINE_DOWNLOADABLE_MESSAGE_TYPES = /* @__PURE__ */ new Set([
|
|
784
789
|
"image",
|
|
785
790
|
"video",
|
|
@@ -1163,7 +1168,6 @@ function lineQuestionOutcomeNotice(status) {
|
|
|
1163
1168
|
}
|
|
1164
1169
|
async function handlePostbackEvent(event, context) {
|
|
1165
1170
|
const data = event.postback.data;
|
|
1166
|
-
logVerbose(`line: received postback: ${data}`);
|
|
1167
1171
|
const decision = await resolveLineEventAdmission(event, context);
|
|
1168
1172
|
if (!decision) return;
|
|
1169
1173
|
const question = parseLineQuestionPostbackData(data ?? "");
|
|
@@ -1247,7 +1251,8 @@ async function handleLineWebhookEvents(events, context) {
|
|
|
1247
1251
|
throw toErrorObject(err, "Non-Error thrown");
|
|
1248
1252
|
}
|
|
1249
1253
|
}
|
|
1250
|
-
|
|
1254
|
+
//#endregion
|
|
1255
|
+
//#region extensions/line/src/inbound-image-set.ts
|
|
1251
1256
|
const IMAGE_SET_FLUSH_DELAY_MS = 4e3;
|
|
1252
1257
|
function orderedParts(pending) {
|
|
1253
1258
|
return [...pending.parts.values()].toSorted((left, right) => (left.index ?? Number.MAX_SAFE_INTEGER) - (right.index ?? Number.MAX_SAFE_INTEGER) || left.arrivedAt - right.arrivedAt);
|
|
@@ -1338,7 +1343,8 @@ function createLineImageSetIngressBuffer() {
|
|
|
1338
1343
|
isBusy: (laneKey) => laneChain.has(laneKey)
|
|
1339
1344
|
};
|
|
1340
1345
|
}
|
|
1341
|
-
|
|
1346
|
+
//#endregion
|
|
1347
|
+
//#region extensions/line/src/webhook-spool.ts
|
|
1342
1348
|
const LINE_WEBHOOK_DRAIN_INTERVAL_MS = 500;
|
|
1343
1349
|
const LINE_WEBHOOK_MAX_CONCURRENT_DELIVERIES = 8;
|
|
1344
1350
|
const LINE_WEBHOOK_DRAIN_SCAN_LIMIT = 100;
|
|
@@ -1578,7 +1584,8 @@ function createLineWebhookSpool(options) {
|
|
|
1578
1584
|
}
|
|
1579
1585
|
};
|
|
1580
1586
|
}
|
|
1581
|
-
|
|
1587
|
+
//#endregion
|
|
1588
|
+
//#region extensions/line/src/bot.ts
|
|
1582
1589
|
const DEFAULT_MEDIA_MAX_MB = 10;
|
|
1583
1590
|
function createLineBot(opts) {
|
|
1584
1591
|
const { runtime, config: startupConfig } = opts;
|
|
@@ -1623,7 +1630,8 @@ function createLineBot(opts) {
|
|
|
1623
1630
|
stop: spool.stop
|
|
1624
1631
|
};
|
|
1625
1632
|
}
|
|
1626
|
-
|
|
1633
|
+
//#endregion
|
|
1634
|
+
//#region extensions/line/src/monitor-durable.ts
|
|
1627
1635
|
function resolveLineDurableReplyOptions(params) {
|
|
1628
1636
|
if (params.infoKind !== "final") return false;
|
|
1629
1637
|
if (params.replyToken && !params.replyTokenUsed) return false;
|
|
@@ -1633,12 +1641,14 @@ function resolveLineDurableReplyOptions(params) {
|
|
|
1633
1641
|
if (reply.hasMedia || !reply.hasText) return false;
|
|
1634
1642
|
return { to: params.to };
|
|
1635
1643
|
}
|
|
1636
|
-
|
|
1644
|
+
//#endregion
|
|
1645
|
+
//#region extensions/line/src/signature.ts
|
|
1637
1646
|
function validateLineSignature(body, signature, channelSecret) {
|
|
1638
1647
|
const hash = crypto.createHmac("SHA256", channelSecret).update(body).digest("base64");
|
|
1639
1648
|
return safeEqualSecret(signature, hash);
|
|
1640
1649
|
}
|
|
1641
|
-
|
|
1650
|
+
//#endregion
|
|
1651
|
+
//#region extensions/line/src/webhook-node.ts
|
|
1642
1652
|
const LINE_WEBHOOK_PREAUTH_MAX_BODY_BYTES = 65536;
|
|
1643
1653
|
const LINE_WEBHOOK_PREAUTH_BODY_TIMEOUT_MS = 5e3;
|
|
1644
1654
|
async function readLineWebhookRequestBody(req, maxBytes, timeoutMs) {
|
|
@@ -1727,7 +1737,8 @@ function createLineNodeWebhookHandler(params) {
|
|
|
1727
1737
|
}
|
|
1728
1738
|
};
|
|
1729
1739
|
}
|
|
1730
|
-
|
|
1740
|
+
//#endregion
|
|
1741
|
+
//#region extensions/line/src/webhook-utils.ts
|
|
1731
1742
|
/** Route the gateway serves when an account configures no `webhookPath`. */
|
|
1732
1743
|
const LINE_DEFAULT_WEBHOOK_PATH = "/line/webhook";
|
|
1733
1744
|
/** The route this account's monitor serves, which is the one an operator has to register
|
|
@@ -1740,7 +1751,8 @@ function resolveLineWebhookPath(webhookPath) {
|
|
|
1740
1751
|
defaultPath: LINE_DEFAULT_WEBHOOK_PATH
|
|
1741
1752
|
}) ?? LINE_DEFAULT_WEBHOOK_PATH;
|
|
1742
1753
|
}
|
|
1743
|
-
|
|
1754
|
+
//#endregion
|
|
1755
|
+
//#region extensions/line/src/monitor.ts
|
|
1744
1756
|
const lineWebhookInFlightLimiter = createWebhookInFlightLimiter();
|
|
1745
1757
|
const lineWebhookTargets = /* @__PURE__ */ new Map();
|
|
1746
1758
|
async function monitorLineProvider(opts) {
|
|
@@ -1936,4 +1948,5 @@ async function monitorLineProvider(opts) {
|
|
|
1936
1948
|
}
|
|
1937
1949
|
};
|
|
1938
1950
|
}
|
|
1951
|
+
//#endregion
|
|
1939
1952
|
export { monitorLineProvider as t };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { c as pushLocationMessage, d as pushTemplateMessage, f as pushTextMessageWithQuickReplies, l as pushMessageLine, n as createLocationMessage, r as createQuickReplyItems, s as pushFlexMessage, t as createFlexMessage, u as pushMessagesLine } from "./send-
|
|
2
|
-
import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-
|
|
1
|
+
import { c as pushLocationMessage, d as pushTemplateMessage, f as pushTextMessageWithQuickReplies, l as pushMessageLine, n as createLocationMessage, r as createQuickReplyItems, s as pushFlexMessage, t as createFlexMessage, u as pushMessagesLine } from "./send-kjjjemFi.mjs";
|
|
2
|
+
import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-COcdie6C.mjs";
|
|
3
3
|
export { buildTemplateMessageFromPayload, createFlexMessage, createLocationMessage, createQuickReplyItems, processLineMessage, pushFlexMessage, pushLocationMessage, pushMessageLine, pushMessagesLine, pushTemplateMessage, pushTextMessageWithQuickReplies };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
|
|
2
|
+
//#region extensions/line/src/runtime.ts
|
|
3
3
|
const { setRuntime: setLineRuntime, getRuntime: getLineRuntime } = createPluginRuntimeStore({
|
|
4
4
|
pluginId: "line",
|
|
5
5
|
errorMessage: "LINE runtime not initialized - plugin not registered"
|
|
6
6
|
});
|
|
7
|
+
//#endregion
|
|
7
8
|
export { setLineRuntime as n, getLineRuntime as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as resolveLineAccount } from "./accounts-
|
|
2
|
-
import { M as buildLineMediaMessage, T as applyLineQuoteToken, i as runLinePushWithRetries, j as withoutLineQuoteTokens, n as findLineHttpError, o as resolveLineChannelAccessToken, v as messageAction, y as normalizeLineMessage } from "./send-retry-
|
|
1
|
+
import { r as resolveLineAccount } from "./accounts-DOiM8-y3.mjs";
|
|
2
|
+
import { M as buildLineMediaMessage, T as applyLineQuoteToken, i as runLinePushWithRetries, j as withoutLineQuoteTokens, n as findLineHttpError, o as resolveLineChannelAccessToken, v as messageAction, y as normalizeLineMessage } from "./send-retry-Dzbkz5wG.mjs";
|
|
3
3
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
import { createChannelPartialDeliveryError } from "openclaw/plugin-sdk/channel-inbound";
|
|
5
5
|
import { pruneMapToMaxSize } from "openclaw/plugin-sdk/collection-runtime";
|
|
@@ -15,7 +15,7 @@ import { captureEffectAuthority } from "openclaw/plugin-sdk/fetch-runtime";
|
|
|
15
15
|
import { redactToolPayloadText } from "openclaw/plugin-sdk/logging-core";
|
|
16
16
|
import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
|
|
17
17
|
import { createDedupeCache } from "openclaw/plugin-sdk/dedupe-runtime";
|
|
18
|
-
|
|
18
|
+
//#region extensions/line/src/outbound-message-log.ts
|
|
19
19
|
const RECENT_SENT_LIMIT = 500;
|
|
20
20
|
const recentSentByAccount = /* @__PURE__ */ new Map();
|
|
21
21
|
function recentSentFor(accountId) {
|
|
@@ -36,7 +36,8 @@ function recordLineSentMessages(accountId, messageIds) {
|
|
|
36
36
|
function quotesLineBotMessage(accountId, quotedMessageId) {
|
|
37
37
|
return recentSentByAccount.get(accountId)?.peek(quotedMessageId) ?? false;
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region extensions/line/src/send-receipt.ts
|
|
40
41
|
function createLineSendReceipt(params) {
|
|
41
42
|
const messageIds = (params.messageIds ?? [params.messageId]).map((messageId) => messageId.trim()).filter(Boolean);
|
|
42
43
|
const chatId = params.chatId.trim();
|
|
@@ -52,7 +53,8 @@ function createLineSendReceipt(params) {
|
|
|
52
53
|
kind: params.kind ?? "unknown"
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region extensions/line/src/send.ts
|
|
56
58
|
const profileCache = {
|
|
57
59
|
values: /* @__PURE__ */ new Map(),
|
|
58
60
|
pending: /* @__PURE__ */ new Map()
|
|
@@ -195,14 +197,6 @@ function createLocationMessage(location) {
|
|
|
195
197
|
longitude: location.longitude
|
|
196
198
|
};
|
|
197
199
|
}
|
|
198
|
-
function logLineHttpError(err, context) {
|
|
199
|
-
if (!err || typeof err !== "object") return;
|
|
200
|
-
const { status, statusText, body } = err;
|
|
201
|
-
if (typeof body === "string") {
|
|
202
|
-
const summary = status ? `${status} ${statusText ?? ""}`.trim() : "unknown status";
|
|
203
|
-
logVerbose(`line: ${context} failed (${summary}): ${body}`);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
200
|
function recordLineOutboundActivity(accountId, delivery) {
|
|
207
201
|
recordLineSentMessages(accountId, delivery.messageIds);
|
|
208
202
|
try {
|
|
@@ -233,17 +227,10 @@ async function pushLineMessages(to, messages, opts, behavior = {}) {
|
|
|
233
227
|
const chatId = normalizeTarget(to);
|
|
234
228
|
const normalizedMessages = applyLineQuoteToken(messages, opts.quoteToken).map(normalizeLineMessage);
|
|
235
229
|
const retryKey = randomUUID();
|
|
236
|
-
const { messageId, messageIds } = resolveLineProviderMessageIds(await runLinePushWithRetries(
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
messages: normalizedMessages
|
|
241
|
-
}, retryKey, opts.authorize, opts.assertDirectAdapterHandoff);
|
|
242
|
-
} catch (err) {
|
|
243
|
-
if (behavior.errorContext) logLineHttpError(err, behavior.errorContext);
|
|
244
|
-
throw err;
|
|
245
|
-
}
|
|
246
|
-
}, "line:push"), "push");
|
|
230
|
+
const { messageId, messageIds } = resolveLineProviderMessageIds(await runLinePushWithRetries(() => sendLineProviderMessages("push", token, {
|
|
231
|
+
to: chatId,
|
|
232
|
+
messages: normalizedMessages
|
|
233
|
+
}, retryKey, opts.authorize, opts.assertDirectAdapterHandoff), "line:push"), "push");
|
|
247
234
|
const result = {
|
|
248
235
|
messageId,
|
|
249
236
|
chatId,
|
|
@@ -291,7 +278,7 @@ async function replyMessageLine(replyToken, messages, opts) {
|
|
|
291
278
|
if (opts.verbose) logVerbose(`line: replied with ${messages.length} messages`);
|
|
292
279
|
}
|
|
293
280
|
async function pushMessagesLine(to, messages, opts) {
|
|
294
|
-
return pushLineMessages(to, messages, opts
|
|
281
|
+
return pushLineMessages(to, messages, opts);
|
|
295
282
|
}
|
|
296
283
|
function createFlexMessage(altText, contents) {
|
|
297
284
|
return {
|
|
@@ -304,10 +291,7 @@ async function pushLocationMessage(to, location, opts) {
|
|
|
304
291
|
return pushLineMessages(to, [createLocationMessage(location)], opts, { verboseMessage: (chatId) => `line: pushed location to ${chatId}` });
|
|
305
292
|
}
|
|
306
293
|
async function pushFlexMessage(to, altText, contents, opts) {
|
|
307
|
-
return pushLineMessages(to, [createFlexMessage(altText, contents)], opts, {
|
|
308
|
-
errorContext: "push flex message",
|
|
309
|
-
verboseMessage: (chatId) => `line: pushed flex message to ${chatId}`
|
|
310
|
-
});
|
|
294
|
+
return pushLineMessages(to, [createFlexMessage(altText, contents)], opts, { verboseMessage: (chatId) => `line: pushed flex message to ${chatId}` });
|
|
311
295
|
}
|
|
312
296
|
async function pushTemplateMessage(to, template, opts) {
|
|
313
297
|
return pushLineMessages(to, [template], opts, { verboseMessage: (chatId) => `line: pushed template message to ${chatId}` });
|
|
@@ -398,4 +382,5 @@ async function getLineGroupName(groupId, opts) {
|
|
|
398
382
|
return;
|
|
399
383
|
}
|
|
400
384
|
}
|
|
385
|
+
//#endregion
|
|
401
386
|
export { getUserDisplayName as a, pushLocationMessage as c, pushTemplateMessage as d, pushTextMessageWithQuickReplies as f, quotesLineBotMessage as h, getLineGroupName as i, pushMessageLine as l, showLoadingAnimation as m, createLocationMessage as n, getUserProfile as o, replyMessageLine as p, createQuickReplyItems as r, pushFlexMessage as s, createFlexMessage as t, pushMessagesLine as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-
|
|
1
|
+
import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-DOiM8-y3.mjs";
|
|
2
2
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { collectErrorGraphCandidates, extractErrorCode, formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
@@ -11,7 +11,7 @@ import { HTTPFetchError } from "@line/bot-sdk";
|
|
|
11
11
|
import { classifyTransientNetworkErrorCode, createChannelApiRetryRunner } from "openclaw/plugin-sdk/retry-runtime";
|
|
12
12
|
import { assertOkOrThrowHttpError, createProviderOperationDeadline, createProviderOperationTimeoutResolver, fetchWithTimeout, readProviderJsonResponse } from "openclaw/plugin-sdk/provider-http";
|
|
13
13
|
import { fetchWithRuntimeDispatcherOrMockedGlobal } from "openclaw/plugin-sdk/runtime-fetch";
|
|
14
|
-
|
|
14
|
+
//#region extensions/line/src/messaging-target.ts
|
|
15
15
|
function normalizeLineMessagingTarget(target) {
|
|
16
16
|
const trimmed = target.trim();
|
|
17
17
|
if (!trimmed) return;
|
|
@@ -23,11 +23,13 @@ function inferLineTargetChatType(target) {
|
|
|
23
23
|
if (/^U[a-f0-9]{32}$/i.test(normalized)) return "direct";
|
|
24
24
|
return /^[CR][a-f0-9]{32}$/i.test(normalized) ? "group" : void 0;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region extensions/line/src/media-url.ts
|
|
27
28
|
function isHttpsUrl(value) {
|
|
28
29
|
return typeof value === "string" && URL.parse(value)?.protocol === "https:";
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region extensions/line/src/outbound-media.ts
|
|
31
33
|
const LINE_OUTBOUND_MEDIA_SSRF_POLICY = { allowPrivateNetwork: false };
|
|
32
34
|
async function validateLineMediaUrl(url) {
|
|
33
35
|
const parsed = URL.parse(url);
|
|
@@ -110,7 +112,8 @@ async function buildLineMediaMessage(mediaUrl, opts, target) {
|
|
|
110
112
|
};
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
|
-
|
|
115
|
+
//#endregion
|
|
116
|
+
//#region extensions/line/src/quote-tokens.ts
|
|
114
117
|
const QUOTE_TOKEN_LIMIT = 500;
|
|
115
118
|
const quoteTokensByAccount = /* @__PURE__ */ new Map();
|
|
116
119
|
function quoteTokenKey(chatId, messageId) {
|
|
@@ -183,7 +186,8 @@ function withoutLineQuoteTokens(messages) {
|
|
|
183
186
|
quoteToken: void 0
|
|
184
187
|
} : message);
|
|
185
188
|
}
|
|
186
|
-
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region extensions/line/src/flex-templates/message.ts
|
|
187
191
|
const LINE_FLEX_BUBBLE_MAX_BYTES = 3e4;
|
|
188
192
|
const LINE_FLEX_CAROUSEL_MAX_BYTES = 5e4;
|
|
189
193
|
function fitsLineFlexBubble(bubble) {
|
|
@@ -196,7 +200,8 @@ function toFlexMessage(altText, contents) {
|
|
|
196
200
|
contents
|
|
197
201
|
};
|
|
198
202
|
}
|
|
199
|
-
|
|
203
|
+
//#endregion
|
|
204
|
+
//#region extensions/line/src/actions.ts
|
|
200
205
|
const LINE_ACTION_LABEL_LIMIT = 20;
|
|
201
206
|
const LINE_ACTION_DATA_LIMIT = 300;
|
|
202
207
|
const LINE_ACTION_URI_LIMIT = 1e3;
|
|
@@ -508,7 +513,8 @@ function postbackAction(label, data, displayText) {
|
|
|
508
513
|
displayText
|
|
509
514
|
});
|
|
510
515
|
}
|
|
511
|
-
|
|
516
|
+
//#endregion
|
|
517
|
+
//#region extensions/line/src/flex-templates/common.ts
|
|
512
518
|
function cardText(text, style) {
|
|
513
519
|
return {
|
|
514
520
|
type: "text",
|
|
@@ -569,7 +575,8 @@ function createCardBubble(bodyContents, footer) {
|
|
|
569
575
|
});
|
|
570
576
|
return bubble;
|
|
571
577
|
}
|
|
572
|
-
|
|
578
|
+
//#endregion
|
|
579
|
+
//#region extensions/line/src/flex-templates/basic-cards.ts
|
|
573
580
|
function createInfoCard(title, body, footer) {
|
|
574
581
|
return createCardBubble([cardBox("horizontal", [cardBox("vertical", [], {
|
|
575
582
|
width: "4px",
|
|
@@ -662,7 +669,8 @@ function createActionCard(title, body, actions, options) {
|
|
|
662
669
|
};
|
|
663
670
|
return bubble;
|
|
664
671
|
}
|
|
665
|
-
|
|
672
|
+
//#endregion
|
|
673
|
+
//#region extensions/line/src/flex-templates/schedule-cards.ts
|
|
666
674
|
function buildTitleSubtitleHeader(params) {
|
|
667
675
|
const { title, subtitle } = params;
|
|
668
676
|
const headerContents = [createCardTitle(title)];
|
|
@@ -838,13 +846,15 @@ function createAgendaCard(params) {
|
|
|
838
846
|
});
|
|
839
847
|
return createCardBubble([...buildCardHeaderSections(headerContents), cardBox("vertical", eventItems, { paddingTop: "xl" })], footer);
|
|
840
848
|
}
|
|
841
|
-
|
|
849
|
+
//#endregion
|
|
850
|
+
//#region extensions/line/src/channel-access-token.ts
|
|
842
851
|
function resolveLineChannelAccessToken(explicit, params) {
|
|
843
852
|
if (explicit?.trim()) return explicit.trim();
|
|
844
853
|
if (!params.channelAccessToken) throw new Error(params.tokenStatus === "configured_unavailable" ? `LINE channel access token is configured but unavailable for account "${params.accountId}" (check the configured tokenFile).` : `LINE channel access token missing for account "${params.accountId}" (set channels.line.channelAccessToken or LINE_CHANNEL_ACCESS_TOKEN).`);
|
|
845
854
|
return params.channelAccessToken.trim();
|
|
846
855
|
}
|
|
847
|
-
|
|
856
|
+
//#endregion
|
|
857
|
+
//#region extensions/line/src/probe.ts
|
|
848
858
|
const LINE_QUOTA_TIMEOUT_MS = 2e3;
|
|
849
859
|
const LINE_JSON_MAX_BYTES = 16384;
|
|
850
860
|
function createLineApiReader(channelAccessToken, timeoutMs) {
|
|
@@ -932,7 +942,8 @@ async function probeLineBot(channelAccessToken, timeoutMs = 5e3) {
|
|
|
932
942
|
error: formatErrorMessage(error)
|
|
933
943
|
}));
|
|
934
944
|
}
|
|
935
|
-
|
|
945
|
+
//#endregion
|
|
946
|
+
//#region extensions/line/src/send-retry.ts
|
|
936
947
|
/** The LINE HTTP response carried by an error graph, when the request reached LINE. */
|
|
937
948
|
function findLineHttpError(error) {
|
|
938
949
|
return collectErrorGraphCandidates(error, (candidate) => [candidate.cause, candidate.error]).find((candidate) => candidate instanceof HTTPFetchError);
|
|
@@ -993,4 +1004,5 @@ async function explainLineRefusal(params) {
|
|
|
993
1004
|
reason: exhausted ? `LINE refused the push: ${quota.used}/${quota.limit} monthly messages used. Check the account allowance or plan before retrying.` : params.error instanceof Error ? params.error.message : "LINE rejected the message"
|
|
994
1005
|
};
|
|
995
1006
|
}
|
|
1007
|
+
//#endregion
|
|
996
1008
|
export { resolveLineQuoteToken as A, fitsLineFlexBubble as C, readLineQuoteToken as D, canCarryLineQuoteToken as E, buildLineMediaMessage as M, inferLineTargetChatType as N, recordLineQuoteToken as O, normalizeLineMessagingTarget as P, uriAction as S, applyLineQuoteToken as T, createCardTitle as _, probeLineBot as a, postbackAction as b, createEventCard as c, createImageCard as d, createInfoCard as f, createCardBubble as g, cardText as h, runLinePushWithRetries as i, withoutLineQuoteTokens as j, reportLineQuoteCarrierMissing as k, createReceiptCard as l, cardBox as m, findLineHttpError as n, resolveLineChannelAccessToken as o, createListCard as p, resolveLineNonDispatchRetryable as r, createAgendaCard as s, explainLineRefusal as t, createActionCard as u, messageAction as v, toFlexMessage as w, truncateLineActionLabel as x, normalizeLineMessage as y };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./accounts-
|
|
1
|
+
import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./accounts-DOiM8-y3.mjs";
|
|
2
2
|
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { defineChannelSetupContract } from "openclaw/plugin-sdk/channel-setup";
|
|
5
5
|
import { createAllowFromSection, createPromptParsedAllowFromForAccount, createSetupInputPresenceValidator, createSetupTranslator, createStandardChannelSetupStatus, defineTokenCredential, formatDocsLink, parseSetupEntriesWithParser, patchScopedAccountConfig, setSetupChannelEnabled, splitSetupEntries } from "openclaw/plugin-sdk/setup";
|
|
6
6
|
import { createChannelDmPolicy } from "openclaw/plugin-sdk/channel-dm-policy";
|
|
7
|
-
|
|
7
|
+
//#region extensions/line/src/bot-access.ts
|
|
8
8
|
function normalizeLineAllowEntry(value) {
|
|
9
9
|
return String(value).trim().replace(/^line:(?:user:)?/i, "");
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region extensions/line/src/account-helpers.ts
|
|
12
13
|
function hasLineCredentials(account) {
|
|
13
14
|
if (account.tokenStatus && account.signingSecretStatus) return account.tokenStatus !== "missing" && account.signingSecretStatus !== "missing";
|
|
14
15
|
return Boolean(account.channelAccessToken?.trim() && account.channelSecret?.trim());
|
|
@@ -18,7 +19,8 @@ function parseLineAllowFromId(raw) {
|
|
|
18
19
|
if (!/^U[a-f0-9]{32}$/i.test(trimmed)) return null;
|
|
19
20
|
return trimmed;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region extensions/line/src/setup-core.ts
|
|
22
24
|
function patchLineAccountConfig(params) {
|
|
23
25
|
return patchScopedAccountConfig({
|
|
24
26
|
cfg: params.cfg,
|
|
@@ -161,7 +163,8 @@ const lineSetupContract = defineChannelSetupContract({
|
|
|
161
163
|
},
|
|
162
164
|
legacyAdapter: lineSetupAdapter
|
|
163
165
|
});
|
|
164
|
-
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region extensions/line/src/setup-surface.ts
|
|
165
168
|
const t = createSetupTranslator();
|
|
166
169
|
const channel = "line";
|
|
167
170
|
const LINE_SETUP_HELP_LINES = [
|
|
@@ -323,4 +326,5 @@ const lineSetupWizard = {
|
|
|
323
326
|
},
|
|
324
327
|
disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
|
|
325
328
|
};
|
|
329
|
+
//#endregion
|
|
326
330
|
export { normalizeLineAllowEntry as a, hasLineCredentials as i, lineSetupAdapter as n, lineSetupContract as r, lineSetupWizard as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as fitsLineFlexBubble, S as uriAction, b as postbackAction, h as cardText, l as createReceiptCard, m as cardBox, v as messageAction, w as toFlexMessage } from "./send-retry-
|
|
1
|
+
import { C as fitsLineFlexBubble, S as uriAction, b as postbackAction, h as cardText, l as createReceiptCard, m as cardBox, v as messageAction, w as toFlexMessage } from "./send-retry-Dzbkz5wG.mjs";
|
|
2
2
|
import { markdownToIRWithMeta, stripMarkdown } from "openclaw/plugin-sdk/text-chunking";
|
|
3
3
|
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
|
|
4
|
-
|
|
4
|
+
//#region extensions/line/src/markdown-to-line.ts
|
|
5
5
|
const LINE_MARKDOWN_OPTIONS = {
|
|
6
6
|
assistantTranscriptRoleHeaders: true,
|
|
7
7
|
autolink: false,
|
|
@@ -303,7 +303,8 @@ function processLineMessage(text) {
|
|
|
303
303
|
projectPlainText(ir, codeSpans, plainTextInsertions, (segment) => segments.push(segment));
|
|
304
304
|
return segments;
|
|
305
305
|
}
|
|
306
|
-
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region packages/normalization-core/src/utf16-slice.ts
|
|
307
308
|
function isHighSurrogate(codeUnit) {
|
|
308
309
|
return codeUnit >= 55296 && codeUnit <= 56319;
|
|
309
310
|
}
|
|
@@ -316,7 +317,8 @@ function avoidTrailingHighSurrogateBreak(text, start, end) {
|
|
|
316
317
|
const adjusted = end - 1;
|
|
317
318
|
return adjusted > start ? adjusted : end + 1;
|
|
318
319
|
}
|
|
319
|
-
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region packages/normalization-core/src/grapheme.ts
|
|
320
322
|
let graphemeSegmenter;
|
|
321
323
|
function getGraphemeSegmenter() {
|
|
322
324
|
graphemeSegmenter ??= new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
@@ -340,7 +342,8 @@ function findGraphemeChunkEnd(text, start, maxEnd, preferredEnd = maxEnd, allowP
|
|
|
340
342
|
if (end <= start && preferred < hardEnd) end = hardEnd === text.length ? hardEnd : segments.containing(hardEnd)?.index ?? hardEnd;
|
|
341
343
|
return end > start ? end : allowPartial ? avoidTrailingHighSurrogateBreak(text, start, hardEnd) : start;
|
|
342
344
|
}
|
|
343
|
-
|
|
345
|
+
//#endregion
|
|
346
|
+
//#region extensions/line/src/template-messages.ts
|
|
344
347
|
const COMPACT_TEMPLATE_TEXT_LIMIT = 60;
|
|
345
348
|
const TEMPLATE_ALT_TEXT_LIMIT = 1500;
|
|
346
349
|
function buildTemplatePayloadAction(action) {
|
|
@@ -431,4 +434,5 @@ function buildTemplateMessageFromPayload(payload) {
|
|
|
431
434
|
default: return null;
|
|
432
435
|
}
|
|
433
436
|
}
|
|
437
|
+
//#endregion
|
|
434
438
|
export { processLineMessage as n, buildTemplateMessageFromPayload as t };
|
package/dist/.setup/{webhook-spool-contract-COhQK5XQ.mjs → webhook-spool-contract-msjTl60Q.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRecord, normalizeNullableString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
|
-
|
|
2
|
+
//#region extensions/line/src/webhook-spool-contract.ts
|
|
3
3
|
/** Message the canonical decoder attaches when it rejects a spool payload. The
|
|
4
4
|
* upgrade migration matches this signature to recover rows the pre-fix decoder
|
|
5
5
|
* dead-lettered; the identity fence writes a different message on purpose. */
|
|
@@ -52,4 +52,5 @@ function laneKeyFor(event, eventId) {
|
|
|
52
52
|
}
|
|
53
53
|
return eventId;
|
|
54
54
|
}
|
|
55
|
+
//#endregion
|
|
55
56
|
export { laneKeyFor as a, eventIdFor as i, LINE_WEBHOOK_SPOOL_INVALID_PAYLOAD_MESSAGE as n, legacyEventIdFor as o, LineWebhookPayloadError as r, LINE_WEBHOOK_SPOOL_INVALID_EVENT_REASON as t };
|
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-DIEVJ4PQ.mjs";
|
|
2
|
+
import { t as lineSetupPlugin } from "./.setup/api-WIupE7U1.mjs";
|
|
3
3
|
export { linePlugin, lineSetupPlugin };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { t as linePlugin } from "./.setup/channel-DIEVJ4PQ.mjs";
|
|
2
|
+
export { linePlugin };
|
package/dist/contract-api.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./.setup/accounts-DOiM8-y3.mjs";
|
|
2
|
+
export { listLineAccountIds, resolveDefaultLineAccountId, resolveLineAccount };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as laneKeyFor, i as eventIdFor, o as legacyEventIdFor, r as LineWebhookPayloadError, t as LINE_WEBHOOK_SPOOL_INVALID_EVENT_REASON } from "./.setup/webhook-spool-contract-
|
|
1
|
+
import { a as laneKeyFor, i as eventIdFor, o as legacyEventIdFor, r as LineWebhookPayloadError, t as LINE_WEBHOOK_SPOOL_INVALID_EVENT_REASON } from "./.setup/webhook-spool-contract-msjTl60Q.mjs";
|
|
2
2
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { coerceErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
4
|
-
|
|
4
|
+
//#region extensions/line/src/webhook-spool-migration.ts
|
|
5
5
|
/** Pre-drain (#109655) rows stored the event object under `event` instead of the
|
|
6
6
|
* canonical serialized `rawEvent`; anything else is not a migratable row. */
|
|
7
7
|
function parseLegacySpoolPayload(payload) {
|
|
@@ -90,7 +90,8 @@ async function migrateLineLegacySpoolRows(queue) {
|
|
|
90
90
|
}
|
|
91
91
|
return result;
|
|
92
92
|
}
|
|
93
|
-
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region extensions/line/doctor-contract-api.ts
|
|
94
95
|
const LINE_CHANNEL_ID = "line";
|
|
95
96
|
/** Pre-drain rows can outlive the account config that admitted them, so the sweep
|
|
96
97
|
* enumerates accounts from the host's queue lane instead of the config; a host
|
|
@@ -137,4 +138,5 @@ const stateMigrations = [{
|
|
|
137
138
|
};
|
|
138
139
|
}
|
|
139
140
|
}];
|
|
141
|
+
//#endregion
|
|
140
142
|
export { stateMigrations };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
|
|
2
|
+
//#region extensions/line/index.ts
|
|
3
3
|
var line_default = defineBundledChannelEntry({
|
|
4
4
|
id: "line",
|
|
5
5
|
name: "LINE",
|
|
@@ -21,10 +21,11 @@ var line_default = defineBundledChannelEntry({
|
|
|
21
21
|
acceptsArgs: true,
|
|
22
22
|
requireAuth: false,
|
|
23
23
|
async handler(ctx) {
|
|
24
|
-
const { handleLineCardCommand } = await import("./.setup/card-command-
|
|
24
|
+
const { handleLineCardCommand } = await import("./.setup/card-command-Dnkl21vg.mjs");
|
|
25
25
|
return await handleLineCardCommand(ctx.args);
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
//#endregion
|
|
30
31
|
export { line_default as default };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as setLineRuntime } from "./.setup/runtime-V7yh9OeC.mjs";
|
|
2
|
+
export { setLineRuntime };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region extensions/line/secret-contract-api.ts
|
|
2
2
|
const secretTargetRegistryEntries = [];
|
|
3
3
|
function collectRuntimeConfigAssignments() {}
|
|
4
|
+
//#endregion
|
|
4
5
|
export { collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
package/dist/setup-api.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { n as lineSetupAdapter, t as lineSetupWizard } from "./.setup/setup-surface-CYd8oqzt.mjs";
|
|
2
|
+
export { lineSetupAdapter, lineSetupWizard };
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
3
|
+
//#region extensions/line/setup-entry.ts
|
|
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-BMSLc5Fi.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "lineSetupPlugin"
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
//#endregion
|
|
11
12
|
export { setup_entry_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.10.
|
|
3
|
+
"version": "2026.10.34",
|
|
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.
|
|
16
|
+
"openclaw": ">=2026.11.4"
|
|
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.
|
|
125
|
+
"pluginApi": ">=2026.11.4"
|
|
126
126
|
},
|
|
127
127
|
"build": {
|
|
128
|
-
"openclawVersion": "2026.10.
|
|
128
|
+
"openclawVersion": "2026.10.34"
|
|
129
129
|
},
|
|
130
130
|
"release": {
|
|
131
131
|
"publishToClawHub": true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as monitorLineProvider } from "./monitor-BBEBldZu.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { a as probeLineBot } from "./send-retry-gHsCgBlf.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
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-Dm_NoU7R.mjs","sha256":"fbb3c981ee38eddff00d1f154e26a072649d43bb8648fad0e9318725f3c28b97","facadeSource":null,"sources":["extensions/line/src/accounts.ts"]},{"output":".setup/api-Bz8QPCGD.mjs","sha256":"7ad61a6b9f91f0610b86ce6ef3e304f84e75daf826c855fc84bcd22264051101","facadeSource":null,"sources":["extensions/line/src/channel.setup.ts"]},{"output":".setup/api-EJnP_1cJ.mjs","sha256":"819f65d462c012a7689f4b516734b5c76b20282be415e3d438ca709f3d8efd84","facadeSource":"extensions/line/api.ts","sources":[]},{"output":".setup/card-command-XYkg1XvG.mjs","sha256":"2a8c27498899c9ebc50a7958b422eb10da3f4877980dc5c43346efd6a97a66f0","facadeSource":"extensions/line/src/card-command.ts","sources":["extensions/line/src/card-command.ts"]},{"output":".setup/channel-ezTshIoC.mjs","sha256":"cceaca8a8d3a1b95fb4180b825ca8820f0e0088dbca4d71a785f24923ca61630","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-4w8EffJb.mjs","sha256":"70a51b2c757d30907ad7d69122f9baf24dbde07fdd89754b7b8950cce8e5adfc","facadeSource":"extensions/line/src/channel.runtime.ts","sources":[]},{"output":".setup/monitor-BBEBldZu.mjs","sha256":"a574c685ca9513184eb5c09f6965bf6b496c4677b78cae565206221ad2eb1918","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-BWIgUqzC.mjs","sha256":"6cea535525c8c47a4be4b18f8e809a7a9c163d73b5178a124c3fe558aec75777","facadeSource":"extensions/line/src/monitor.runtime.ts","sources":[]},{"output":".setup/outbound.runtime-BSuF2lax.mjs","sha256":"6fea9ad32f374e0eecc97e6ca72d80b5530c24e97a885da52ef56d16956653a3","facadeSource":"extensions/line/src/outbound.runtime.ts","sources":[]},{"output":".setup/probe.runtime-a-fC57xd.mjs","sha256":"c05a3f5d17d6f7e68abc5f5015ad60ae5a254ac460be3d355d2e2635665df1c8","facadeSource":"extensions/line/src/probe.runtime.ts","sources":[]},{"output":".setup/runtime-C9ldw-V4.mjs","sha256":"ac1144683eff8dc37f71e7b26f00dd5f692e4c35b6ac4a14d11ba81603dc0414","facadeSource":null,"sources":["extensions/line/src/runtime.ts"]},{"output":".setup/send-B8TYfTO_.mjs","sha256":"4d48dfc005c90f50dd694a5f67a15fcc9520cf413cda455ed3a2ef63cc91dbb4","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-gHsCgBlf.mjs","sha256":"55869880e8b8124dbb0334ac33482a540680228af3f8e07133768b1e230dcc90","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-DvbBjHFi.mjs","sha256":"9d8e2bdd72c9e37a53b10784ca83e0257e8ce7da2f40f8fb279132babf872430","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-CdpQxqqb.mjs","sha256":"5013ce983e996590d5139e8af0a1d0ab67cb6e05f91e6222a4abdc951270da1a","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-COhQK5XQ.mjs","sha256":"c5980d6b5431bd7ffab5f3c3351ac3aa3c7d477f1aec4244e1f3d8b01d704743","facadeSource":null,"sources":["extensions/line/src/webhook-spool-contract.ts"]},{"output":"api.js","sha256":"a4dc3180e42747929caf43becba07519803071bb5daa72808f53f5d62e1ec88d","facadeSource":"extensions/line/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"22762b9ef623f041c64267484707a3c566e6203c40af8c28f23cc7e33fcf8c0b","facadeSource":"extensions/line/channel-plugin-api.ts","sources":[]},{"output":"contract-api.js","sha256":"88215026ff1655afd96c12893f7d2efdbcfacd9b21c5029e1653de305c208773","facadeSource":"extensions/line/contract-api.ts","sources":[]},{"output":"doctor-contract-api.js","sha256":"b2a81a30a6916fb455359235cda708e562012af8b9bb052414ac7f132f888894","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":"7bde3bfdb3c7961eff5ddfefbb82f35d1f1a84509b37f933022c760b579284c9","facadeSource":"extensions/line/index.ts","sources":["extensions/line/index.ts"]},{"output":"runtime-api.js","sha256":"e37fbce0148c490628ce5edc25492212c1a2d3a7c3f084353a5ee49972159886","facadeSource":"extensions/line/runtime-api.ts","sources":[]},{"output":"secret-contract-api.js","sha256":"4824eb0315431709e20d35bb056c00eae3498212e57bda4dd9cdbb24f3db07c4","facadeSource":"extensions/line/secret-contract-api.ts","sources":["extensions/line/secret-contract-api.ts"]},{"output":"setup-api.js","sha256":"730732424bb98bbceaca6d6e982a03e799f30200b1413fc0bd82aef62865b256","facadeSource":"extensions/line/setup-api.ts","sources":[]},{"output":"setup-entry.js","sha256":"4c6552ee9c8ab50c637103f21110ca61218de9b8150d84666faf25ae08aed076","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"]}
|