@openclaw/line 2026.11.7 → 2026.11.9
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-DOiM8-y3.mjs → accounts-Dm_NoU7R.mjs} +1 -2
- package/dist/.setup/{api-BRnngy5R.mjs → api-ByXjHPMe.mjs} +3 -4
- package/dist/.setup/api-DCMpIrda.mjs +3 -0
- package/dist/.setup/{card-command-2y-RSLPg.mjs → card-command-utjlRvb-.mjs} +3 -4
- package/dist/.setup/{channel-DJcpjKpx.mjs → channel-D9i_xlsJ.mjs} +21 -33
- package/dist/.setup/{channel.runtime-CdfKsNz4.mjs → channel.runtime-C-E2qsIu.mjs} +3 -3
- package/dist/.setup/{monitor-BkuPFFxZ.mjs → monitor-BYGe2Y7S.mjs} +20 -32
- package/dist/.setup/{outbound.runtime-BPo_111h.mjs → outbound.runtime-AQvUJvJV.mjs} +2 -2
- package/dist/.setup/{runtime-V7yh9OeC.mjs → runtime-C9ldw-V4.mjs} +1 -2
- package/dist/.setup/{send-C1JZOFMA.mjs → send-H86JOXWw.mjs} +4 -6
- package/dist/.setup/{send-retry-Bf2Xr6ZN.mjs → send-retry-D6J7bThI.mjs} +14 -27
- package/dist/.setup/{setup-surface-CYd8oqzt.mjs → setup-surface-DvbBjHFi.mjs} +5 -9
- package/dist/.setup/{template-messages-C1Kkr0-e.mjs → template-messages-KG1GwG0h.mjs} +5 -9
- package/dist/.setup/{webhook-spool-contract-msjTl60Q.mjs → webhook-spool-contract-COhQK5XQ.mjs} +1 -2
- 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/contract-api.js +1 -1
- package/dist/doctor-contract-api.js +3 -5
- package/dist/index.js +2 -3
- package/dist/runtime-api.js +1 -1
- package/dist/secret-contract-api.js +1 -2
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +2 -3
- package/package.json +4 -4
- package/dist/.setup/api-4BpGVN1-.mjs +0 -3
|
@@ -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
|
+
// 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,5 +97,4 @@ function resolveDefaultLineAccountId(cfg) {
|
|
|
97
97
|
normalizeListedAccountId: normalizeAccountId
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
//#endregion
|
|
101
100
|
export { resolveDefaultLineAccountId as n, resolveLineAccount as r, listLineAccountIds as t };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-
|
|
2
|
-
import { l as lineChannelPluginCommon } from "./channel-
|
|
3
|
-
|
|
1
|
+
import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-DvbBjHFi.mjs";
|
|
2
|
+
import { l as lineChannelPluginCommon } from "./channel-D9i_xlsJ.mjs";
|
|
3
|
+
// 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
|
|
11
10
|
export { lineSetupPlugin as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as createActionCard, f as createImageCard, m as createListCard, p as createInfoCard, u as createReceiptCard } from "./send-retry-
|
|
2
|
-
import { t as createFlexMessage } from "./send-
|
|
1
|
+
import { d as createActionCard, f as createImageCard, m as createListCard, p as createInfoCard, u as createReceiptCard } from "./send-retry-D6J7bThI.mjs";
|
|
2
|
+
import { t as createFlexMessage } from "./send-H86JOXWw.mjs";
|
|
3
3
|
import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
4
4
|
import { expectDefined } from "openclaw/plugin-sdk/expect-runtime";
|
|
5
|
-
|
|
5
|
+
// extensions/line/src/card-command.ts
|
|
6
6
|
const CARD_USAGE = `Usage: /card <type> "title" "body" [options]
|
|
7
7
|
|
|
8
8
|
Types:
|
|
@@ -214,5 +214,4 @@ async function handleLineCardCommand(argsInput) {
|
|
|
214
214
|
return { text: `Error creating card: ${String(err)}` };
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
//#endregion
|
|
218
217
|
export { handleLineCardCommand };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as reportLineQuoteCarrierMissing, D as canCarryLineQuoteToken, F as normalizeLineMessagingTarget, N as buildLineMediaMessage, P as inferLineTargetChatType, S as truncateLineActionLabel, _ as createCardBubble, c as createAgendaCard, d as createActionCard, g as cardText, h as cardBox, j as resolveLineQuoteToken, l as createEventCard, t as explainLineRefusal, v as createCardTitle, w as fitsLineFlexBubble, x as postbackAction, y as messageAction } from "./send-retry-
|
|
2
|
-
import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./accounts-
|
|
3
|
-
import { a as normalizeLineAllowEntry, i as hasLineCredentials, r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-
|
|
4
|
-
import { t as getLineRuntime } from "./runtime-
|
|
1
|
+
import { A as reportLineQuoteCarrierMissing, D as canCarryLineQuoteToken, F as normalizeLineMessagingTarget, N as buildLineMediaMessage, P as inferLineTargetChatType, S as truncateLineActionLabel, _ as createCardBubble, c as createAgendaCard, d as createActionCard, g as cardText, h as cardBox, j as resolveLineQuoteToken, l as createEventCard, t as explainLineRefusal, v as createCardTitle, w as fitsLineFlexBubble, x as postbackAction, y as messageAction } from "./send-retry-D6J7bThI.mjs";
|
|
2
|
+
import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./accounts-Dm_NoU7R.mjs";
|
|
3
|
+
import { a as normalizeLineAllowEntry, i as hasLineCredentials, r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-DvbBjHFi.mjs";
|
|
4
|
+
import { t as getLineRuntime } from "./runtime-C9ldw-V4.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
|
+
// extensions/line/src/config-adapter.ts
|
|
30
30
|
const lineConfigAdapter = createScopedChannelConfigAdapter({
|
|
31
31
|
sectionKey: "line",
|
|
32
32
|
listAccountIds: listLineAccountIds,
|
|
@@ -45,8 +45,7 @@ const lineConfigAdapter = createScopedChannelConfigAdapter({
|
|
|
45
45
|
resolveAllowFrom: (account) => account.config.allowFrom,
|
|
46
46
|
formatAllowFrom: (allowFrom) => normalizeStringEntries(allowFrom).map(normalizeLineAllowEntry)
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
//#region extensions/line/src/config-schema.ts
|
|
48
|
+
// extensions/line/src/config-schema.ts
|
|
50
49
|
const ThreadBindingsSchema = z.object({
|
|
51
50
|
enabled: z.boolean().optional(),
|
|
52
51
|
idleHours: z.number().optional(),
|
|
@@ -137,8 +136,7 @@ const lineChannelPluginCommon = {
|
|
|
137
136
|
})
|
|
138
137
|
}
|
|
139
138
|
};
|
|
140
|
-
|
|
141
|
-
//#region extensions/line/src/group-keys.ts
|
|
139
|
+
// extensions/line/src/group-keys.ts
|
|
142
140
|
function resolveLineGroupLookupIds(groupId) {
|
|
143
141
|
const normalized = groupId?.trim();
|
|
144
142
|
if (!normalized) return [];
|
|
@@ -169,8 +167,7 @@ function resolveExactLineGroupConfigKey(params) {
|
|
|
169
167
|
if (!groups) return;
|
|
170
168
|
return resolveLineGroupLookupIds(params.groupId).find((candidate) => Object.hasOwn(groups, candidate));
|
|
171
169
|
}
|
|
172
|
-
|
|
173
|
-
//#region extensions/line/src/doctor.ts
|
|
170
|
+
// extensions/line/src/doctor.ts
|
|
174
171
|
const GROUP_DEFAULTS_KEY = "*";
|
|
175
172
|
function classifyAllowFrom(values) {
|
|
176
173
|
const entries = Array.isArray(values) ? values.map(normalizeLineAllowEntry).filter(Boolean) : [];
|
|
@@ -262,8 +259,7 @@ const lineDoctor = {
|
|
|
262
259
|
return covered || referenceBacked.length > 0;
|
|
263
260
|
}
|
|
264
261
|
};
|
|
265
|
-
|
|
266
|
-
//#region extensions/line/src/status.ts
|
|
262
|
+
// extensions/line/src/status.ts
|
|
267
263
|
const collectLineCredentialIssues = createDependentCredentialStatusIssueCollector({
|
|
268
264
|
channel: "line",
|
|
269
265
|
dependencySourceKey: "tokenSource",
|
|
@@ -315,7 +311,7 @@ const lineStatusAdapter = createComputedAccountStatusAdapter({
|
|
|
315
311
|
}
|
|
316
312
|
})],
|
|
317
313
|
buildChannelSummary: ({ snapshot }) => buildTokenChannelStatusSummary(snapshot),
|
|
318
|
-
probeAccount: async ({ account, timeoutMs }) => await (await import("./send-retry-
|
|
314
|
+
probeAccount: async ({ account, timeoutMs }) => await (await import("./send-retry-D6J7bThI.mjs").then((n) => n.o)).probeLineBot(account.channelAccessToken, timeoutMs),
|
|
319
315
|
resolveAccountSnapshot: ({ account, probe }) => ({
|
|
320
316
|
accountId: account.accountId,
|
|
321
317
|
name: account.name,
|
|
@@ -331,8 +327,7 @@ const lineStatusAdapter = createComputedAccountStatusAdapter({
|
|
|
331
327
|
}
|
|
332
328
|
})
|
|
333
329
|
});
|
|
334
|
-
|
|
335
|
-
//#region extensions/line/src/gateway.ts
|
|
330
|
+
// extensions/line/src/gateway.ts
|
|
336
331
|
const lineGatewayAdapter = {
|
|
337
332
|
startAccount: async (ctx) => {
|
|
338
333
|
const account = ctx.account;
|
|
@@ -347,7 +342,7 @@ const lineGatewayAdapter = {
|
|
|
347
342
|
statusSink({ lifecycle: "starting" });
|
|
348
343
|
let lineBotLabel = "";
|
|
349
344
|
try {
|
|
350
|
-
const probe = await (await import("./send-retry-
|
|
345
|
+
const probe = await (await import("./send-retry-D6J7bThI.mjs").then((n) => n.o)).probeLineBot(token, 2500);
|
|
351
346
|
const displayName = probe.ok ? probe.bot?.displayName?.trim() : null;
|
|
352
347
|
if (displayName) lineBotLabel = ` (${displayName})`;
|
|
353
348
|
const delivery = describeLineWebhookDelivery({ webhook: probe.ok ? probe.webhook : void 0 });
|
|
@@ -356,7 +351,7 @@ const lineGatewayAdapter = {
|
|
|
356
351
|
if (getLineRuntime().logging.shouldLogVerbose()) ctx.log?.debug?.(`[${account.accountId}] bot check failed: ${String(err)}`);
|
|
357
352
|
}
|
|
358
353
|
ctx.log?.info(`[${account.accountId}] starting LINE provider${lineBotLabel}`);
|
|
359
|
-
const { monitorLineProvider } = await import("./monitor-
|
|
354
|
+
const { monitorLineProvider } = await import("./monitor-BYGe2Y7S.mjs");
|
|
360
355
|
return await monitorLineProvider({
|
|
361
356
|
channelAccessToken: token,
|
|
362
357
|
channelSecret: secret,
|
|
@@ -398,15 +393,13 @@ const lineGatewayAdapter = {
|
|
|
398
393
|
};
|
|
399
394
|
}
|
|
400
395
|
};
|
|
401
|
-
|
|
402
|
-
//#region extensions/line/src/quick-reply-fallback.ts
|
|
396
|
+
// extensions/line/src/quick-reply-fallback.ts
|
|
403
397
|
function buildLineQuickReplyFallbackText(labels) {
|
|
404
398
|
const normalized = normalizeStringEntries(labels).slice(0, 13);
|
|
405
399
|
if (normalized.length === 0) return "Choose an option.";
|
|
406
400
|
return `Options:\n${normalized.map((label) => `- ${label}`).join("\n")}`;
|
|
407
401
|
}
|
|
408
|
-
|
|
409
|
-
//#region extensions/line/src/question-postback.ts
|
|
402
|
+
// extensions/line/src/question-postback.ts
|
|
410
403
|
const QUESTION_ID_PARAM = "line.question";
|
|
411
404
|
const OPTION_INDEX_PARAM = "line.option";
|
|
412
405
|
const POSTBACK_DATA_MAX_BYTES = 300;
|
|
@@ -462,8 +455,7 @@ async function resolveLineQuestionPostback(params) {
|
|
|
462
455
|
return { status: "failed" };
|
|
463
456
|
}
|
|
464
457
|
}
|
|
465
|
-
|
|
466
|
-
//#region extensions/line/src/rich-message-schema.ts
|
|
458
|
+
// extensions/line/src/rich-message-schema.ts
|
|
467
459
|
const nonempty = () => Type.String({ minLength: 1 });
|
|
468
460
|
const closed = (properties) => Type.Object(properties, { additionalProperties: false });
|
|
469
461
|
const lineCardSchema = Type.Union([
|
|
@@ -534,8 +526,7 @@ const lineChannelDataSchema = Type.Optional(closed({ line: closed({
|
|
|
534
526
|
durationMs: Type.Optional(Type.Integer({ minimum: 1 })),
|
|
535
527
|
trackingId: Type.Optional(nonempty())
|
|
536
528
|
}) }));
|
|
537
|
-
|
|
538
|
-
//#region extensions/line/src/rich-messages.ts
|
|
529
|
+
// extensions/line/src/rich-messages.ts
|
|
539
530
|
const lineMessageActions = {
|
|
540
531
|
describeMessageTool: ({ cfg, accountId }) => {
|
|
541
532
|
const account = resolveLineAccount({
|
|
@@ -918,9 +909,8 @@ function createLineQuickReply(items) {
|
|
|
918
909
|
action: item.action.type === "command" ? messageAction(item.label, item.action.command) : postbackAction(item.label, item.action.value, item.label)
|
|
919
910
|
})) };
|
|
920
911
|
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
const loadLineOutboundRuntime = createLazyRuntimeModule(() => import("./outbound.runtime-BPo_111h.mjs"));
|
|
912
|
+
// extensions/line/src/outbound.ts
|
|
913
|
+
const loadLineOutboundRuntime = createLazyRuntimeModule(() => import("./outbound.runtime-AQvUJvJV.mjs"));
|
|
924
914
|
function quotedOption(quoteToken) {
|
|
925
915
|
return quoteToken ? { quoteToken } : {};
|
|
926
916
|
}
|
|
@@ -1163,9 +1153,8 @@ const lineMessageAdapter = createChannelMessageAdapterFromOutbound({
|
|
|
1163
1153
|
supportedAckPolicies: ["after_receive_record"]
|
|
1164
1154
|
}
|
|
1165
1155
|
});
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CdfKsNz4.mjs"));
|
|
1156
|
+
// extensions/line/src/channel.ts
|
|
1157
|
+
const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-C-E2qsIu.mjs"));
|
|
1169
1158
|
const lineSecurityAdapter = createRestrictSendersChannelSecurity({
|
|
1170
1159
|
channelKey: "line",
|
|
1171
1160
|
resolveDmPolicy: (account) => account.config.dmPolicy,
|
|
@@ -1362,5 +1351,4 @@ const linePlugin = createChatChannelPlugin({
|
|
|
1362
1351
|
} },
|
|
1363
1352
|
outbound: lineOutboundAdapter
|
|
1364
1353
|
});
|
|
1365
|
-
//#endregion
|
|
1366
1354
|
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 { monitorLineProvider } from "./monitor-
|
|
1
|
+
import { a as probeLineBot } from "./send-retry-D6J7bThI.mjs";
|
|
2
|
+
import { l as pushMessageLine, m as showLoadingAnimation } from "./send-H86JOXWw.mjs";
|
|
3
|
+
import { monitorLineProvider } from "./monitor-BYGe2Y7S.mjs";
|
|
4
4
|
export { monitorLineProvider, probeLineBot, pushMessageLine, showLoadingAnimation };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as reportLineQuoteCarrierMissing, D as canCarryLineQuoteToken, E as applyLineQuoteToken, N as buildLineMediaMessage, O as readLineQuoteToken, j as resolveLineQuoteToken, k as recordLineQuoteToken, n as findLineHttpError, r as resolveLineNonDispatchRetryable, t as explainLineRefusal } from "./send-retry-
|
|
2
|
-
import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-
|
|
3
|
-
import { a as normalizeLineAllowEntry } from "./setup-surface-
|
|
4
|
-
import { a as parseLineQuestionPostbackData, c as resolveLineGroupConfigEntry, i as isLineQuestionPostbackData, n as createLineQuickReply, o as resolveLineQuestionPostback, r as prepareLineReplyPayload, s as buildLineQuickReplyFallbackText } from "./channel-
|
|
5
|
-
import { t as getLineRuntime } from "./runtime-
|
|
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 { A as reportLineQuoteCarrierMissing, D as canCarryLineQuoteToken, E as applyLineQuoteToken, N as buildLineMediaMessage, O as readLineQuoteToken, j as resolveLineQuoteToken, k as recordLineQuoteToken, n as findLineHttpError, r as resolveLineNonDispatchRetryable, t as explainLineRefusal } from "./send-retry-D6J7bThI.mjs";
|
|
2
|
+
import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-Dm_NoU7R.mjs";
|
|
3
|
+
import { a as normalizeLineAllowEntry } from "./setup-surface-DvbBjHFi.mjs";
|
|
4
|
+
import { a as parseLineQuestionPostbackData, c as resolveLineGroupConfigEntry, i as isLineQuestionPostbackData, n as createLineQuickReply, o as resolveLineQuestionPostback, r as prepareLineReplyPayload, s as buildLineQuickReplyFallbackText } from "./channel-D9i_xlsJ.mjs";
|
|
5
|
+
import { t as getLineRuntime } from "./runtime-C9ldw-V4.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-COhQK5XQ.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-H86JOXWw.mjs";
|
|
8
|
+
import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-KG1GwG0h.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";
|
|
@@ -45,7 +45,7 @@ import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
|
|
|
45
45
|
import { enqueueKeyedTask } from "openclaw/plugin-sdk/keyed-async-queue";
|
|
46
46
|
import { sendJsonWithoutCharset } from "openclaw/plugin-sdk/http-response-runtime";
|
|
47
47
|
import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
|
|
48
|
-
|
|
48
|
+
// extensions/line/src/auto-reply-delivery.ts
|
|
49
49
|
function toLineDeliveryError(error) {
|
|
50
50
|
return error instanceof Error ? error : new Error("LINE message send failed", { cause: error });
|
|
51
51
|
}
|
|
@@ -229,8 +229,7 @@ async function deliverLineAutoReply(params) {
|
|
|
229
229
|
visibleReplySent
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
//#region extensions/line/src/mentions.ts
|
|
232
|
+
// extensions/line/src/mentions.ts
|
|
234
233
|
function getLineMentionees(message) {
|
|
235
234
|
return message.type === "text" ? message.mention?.mentionees ?? [] : [];
|
|
236
235
|
}
|
|
@@ -267,8 +266,7 @@ function resolveLineMentionStrippedText(message) {
|
|
|
267
266
|
}
|
|
268
267
|
return `${stripped}${text.slice(cursor)}`.trim();
|
|
269
268
|
}
|
|
270
|
-
|
|
271
|
-
//#region extensions/line/src/bot-message-context.ts
|
|
269
|
+
// extensions/line/src/bot-message-context.ts
|
|
272
270
|
function getLineSourceInfo(source) {
|
|
273
271
|
if (!source) return {
|
|
274
272
|
userId: void 0,
|
|
@@ -628,8 +626,7 @@ async function buildLinePostbackContext(params) {
|
|
|
628
626
|
media: []
|
|
629
627
|
});
|
|
630
628
|
}
|
|
631
|
-
|
|
632
|
-
//#region extensions/line/src/download.ts
|
|
629
|
+
// extensions/line/src/download.ts
|
|
633
630
|
const CONTENT_READY_MAX_ATTEMPTS = 6;
|
|
634
631
|
const CONTENT_READY_BASE_DELAY_MS = 500;
|
|
635
632
|
const CONTENT_READY_MAX_DELAY_MS = 4e3;
|
|
@@ -729,8 +726,7 @@ async function downloadLineMedia(messageId, channelAccessToken, maxBytes = 10485
|
|
|
729
726
|
clearTimeout(deadline);
|
|
730
727
|
}
|
|
731
728
|
}
|
|
732
|
-
|
|
733
|
-
//#region extensions/line/src/group-history.ts
|
|
729
|
+
// extensions/line/src/group-history.ts
|
|
734
730
|
const reservedEntries = /* @__PURE__ */ new WeakSet();
|
|
735
731
|
function reserveLineGroupHistory(historyMap, historyKey, limit) {
|
|
736
732
|
if (!historyMap || !historyKey || limit <= 0) return {
|
|
@@ -764,8 +760,7 @@ function reserveLineGroupHistory(historyMap, historyKey, limit) {
|
|
|
764
760
|
}
|
|
765
761
|
};
|
|
766
762
|
}
|
|
767
|
-
|
|
768
|
-
//#region extensions/line/src/bot-handlers.ts
|
|
763
|
+
// extensions/line/src/bot-handlers.ts
|
|
769
764
|
const LINE_DOWNLOADABLE_MESSAGE_TYPES = /* @__PURE__ */ new Set([
|
|
770
765
|
"image",
|
|
771
766
|
"video",
|
|
@@ -1219,8 +1214,7 @@ async function handleLineWebhookEvents(events, context) {
|
|
|
1219
1214
|
throw toErrorObject(err, "Non-Error thrown");
|
|
1220
1215
|
}
|
|
1221
1216
|
}
|
|
1222
|
-
|
|
1223
|
-
//#region extensions/line/src/inbound-image-set.ts
|
|
1217
|
+
// extensions/line/src/inbound-image-set.ts
|
|
1224
1218
|
const IMAGE_SET_FLUSH_DELAY_MS = 4e3;
|
|
1225
1219
|
function orderedParts(pending) {
|
|
1226
1220
|
return [...pending.parts.values()].toSorted((left, right) => (left.index ?? Number.MAX_SAFE_INTEGER) - (right.index ?? Number.MAX_SAFE_INTEGER) || left.arrivedAt - right.arrivedAt);
|
|
@@ -1311,8 +1305,7 @@ function createLineImageSetIngressBuffer() {
|
|
|
1311
1305
|
isBusy: (laneKey) => laneChain.has(laneKey)
|
|
1312
1306
|
};
|
|
1313
1307
|
}
|
|
1314
|
-
|
|
1315
|
-
//#region extensions/line/src/webhook-spool.ts
|
|
1308
|
+
// extensions/line/src/webhook-spool.ts
|
|
1316
1309
|
const LINE_WEBHOOK_DRAIN_INTERVAL_MS = 500;
|
|
1317
1310
|
const LINE_WEBHOOK_MAX_CONCURRENT_DELIVERIES = 8;
|
|
1318
1311
|
const LINE_WEBHOOK_DRAIN_SCAN_LIMIT = 100;
|
|
@@ -1535,8 +1528,7 @@ function createLineWebhookSpool(options) {
|
|
|
1535
1528
|
}
|
|
1536
1529
|
};
|
|
1537
1530
|
}
|
|
1538
|
-
|
|
1539
|
-
//#region extensions/line/src/bot.ts
|
|
1531
|
+
// extensions/line/src/bot.ts
|
|
1540
1532
|
const DEFAULT_MEDIA_MAX_MB = 10;
|
|
1541
1533
|
function createLineBot(opts) {
|
|
1542
1534
|
const { runtime, config: startupConfig } = opts;
|
|
@@ -1581,14 +1573,12 @@ function createLineBot(opts) {
|
|
|
1581
1573
|
stop: spool.stop
|
|
1582
1574
|
};
|
|
1583
1575
|
}
|
|
1584
|
-
|
|
1585
|
-
//#region extensions/line/src/signature.ts
|
|
1576
|
+
// extensions/line/src/signature.ts
|
|
1586
1577
|
function validateLineSignature(body, signature, channelSecret) {
|
|
1587
1578
|
const hash = crypto.createHmac("SHA256", channelSecret).update(body).digest("base64");
|
|
1588
1579
|
return safeEqualSecret(signature, hash);
|
|
1589
1580
|
}
|
|
1590
|
-
|
|
1591
|
-
//#region extensions/line/src/webhook-node.ts
|
|
1581
|
+
// extensions/line/src/webhook-node.ts
|
|
1592
1582
|
const LINE_WEBHOOK_PREAUTH_MAX_BODY_BYTES = 65536;
|
|
1593
1583
|
const LINE_WEBHOOK_PREAUTH_BODY_TIMEOUT_MS = 5e3;
|
|
1594
1584
|
function createLineNodeWebhookHandler(params) {
|
|
@@ -1658,8 +1648,7 @@ function createLineNodeWebhookHandler(params) {
|
|
|
1658
1648
|
}
|
|
1659
1649
|
};
|
|
1660
1650
|
}
|
|
1661
|
-
|
|
1662
|
-
//#region extensions/line/src/monitor.ts
|
|
1651
|
+
// extensions/line/src/monitor.ts
|
|
1663
1652
|
const lineWebhookInFlightLimiter = createWebhookInFlightLimiter();
|
|
1664
1653
|
const lineWebhookTargets = /* @__PURE__ */ new Map();
|
|
1665
1654
|
async function monitorLineProvider(opts) {
|
|
@@ -1859,5 +1848,4 @@ async function monitorLineProvider(opts) {
|
|
|
1859
1848
|
}
|
|
1860
1849
|
};
|
|
1861
1850
|
}
|
|
1862
|
-
//#endregion
|
|
1863
1851
|
export { monitorLineProvider };
|
|
@@ -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-H86JOXWw.mjs";
|
|
2
|
+
import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-KG1GwG0h.mjs";
|
|
3
3
|
export { buildTemplateMessageFromPayload, createFlexMessage, createLocationMessage, createQuickReplyItems, processLineMessage, pushFlexMessage, pushLocationMessage, pushMessageLine, pushMessagesLine, pushTemplateMessage, pushTextMessageWithQuickReplies };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
|
|
2
|
-
|
|
2
|
+
// 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
|
|
8
7
|
export { setLineRuntime as n, getLineRuntime as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as applyLineQuoteToken, F as normalizeLineMessagingTarget, M as withoutLineQuoteTokens, N as buildLineMediaMessage, b as normalizeLineMessage, i as runLinePushWithRetries, n as findLineHttpError, s as resolveLineChannelAccessToken, y as messageAction } from "./send-retry-
|
|
2
|
-
import { r as resolveLineAccount } from "./accounts-
|
|
1
|
+
import { E as applyLineQuoteToken, F as normalizeLineMessagingTarget, M as withoutLineQuoteTokens, N as buildLineMediaMessage, b as normalizeLineMessage, i as runLinePushWithRetries, n as findLineHttpError, s as resolveLineChannelAccessToken, y as messageAction } from "./send-retry-D6J7bThI.mjs";
|
|
2
|
+
import { r as resolveLineAccount } from "./accounts-Dm_NoU7R.mjs";
|
|
3
3
|
import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
|
|
4
4
|
import { createChannelPartialDeliveryError } from "openclaw/plugin-sdk/channel-inbound";
|
|
5
5
|
import { createStaleWhileRevalidateCache } 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
|
+
// 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,8 +36,7 @@ function recordLineSentMessages(accountId, messageIds) {
|
|
|
36
36
|
function quotesLineBotMessage(accountId, quotedMessageId) {
|
|
37
37
|
return recentSentByAccount.get(accountId)?.peek(quotedMessageId) ?? false;
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
//#region extensions/line/src/send.ts
|
|
39
|
+
// extensions/line/src/send.ts
|
|
41
40
|
const PROFILE_CACHE_TTL_MS = 3e5;
|
|
42
41
|
const PROFILE_CACHE_MAX_ENTRIES = 1e3;
|
|
43
42
|
const profileCache = createStaleWhileRevalidateCache({
|
|
@@ -333,5 +332,4 @@ async function getLineGroupName(groupId, opts) {
|
|
|
333
332
|
return;
|
|
334
333
|
}
|
|
335
334
|
}
|
|
336
|
-
//#endregion
|
|
337
335
|
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-Dm_NoU7R.mjs";
|
|
2
2
|
import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
|
|
3
3
|
import { asSafeIntegerInRange, hasNonEmptyString, 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
|
+
// \0rolldown/runtime.js
|
|
15
15
|
var __defProp = Object.defineProperty;
|
|
16
16
|
var __exportAll = (all, no_symbols) => {
|
|
17
17
|
let target = {};
|
|
@@ -22,8 +22,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
22
22
|
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
23
23
|
return target;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
//#region extensions/line/src/messaging-target.ts
|
|
25
|
+
// extensions/line/src/messaging-target.ts
|
|
27
26
|
function normalizeLineMessagingTarget(target) {
|
|
28
27
|
const trimmed = target.trim();
|
|
29
28
|
if (!trimmed) return;
|
|
@@ -35,13 +34,11 @@ function inferLineTargetChatType(target) {
|
|
|
35
34
|
if (/^U[a-f0-9]{32}$/i.test(normalized)) return "direct";
|
|
36
35
|
return /^[CR][a-f0-9]{32}$/i.test(normalized) ? "group" : void 0;
|
|
37
36
|
}
|
|
38
|
-
|
|
39
|
-
//#region extensions/line/src/media-url.ts
|
|
37
|
+
// extensions/line/src/media-url.ts
|
|
40
38
|
function isHttpsUrl(value) {
|
|
41
39
|
return typeof value === "string" && URL.parse(value)?.protocol === "https:";
|
|
42
40
|
}
|
|
43
|
-
|
|
44
|
-
//#region extensions/line/src/outbound-media.ts
|
|
41
|
+
// extensions/line/src/outbound-media.ts
|
|
45
42
|
const LINE_OUTBOUND_MEDIA_SSRF_POLICY = { allowPrivateNetwork: false };
|
|
46
43
|
async function validateLineMediaUrl(url) {
|
|
47
44
|
const parsed = URL.parse(url);
|
|
@@ -124,8 +121,7 @@ async function buildLineMediaMessage(mediaUrl, opts, target) {
|
|
|
124
121
|
};
|
|
125
122
|
}
|
|
126
123
|
}
|
|
127
|
-
|
|
128
|
-
//#region extensions/line/src/quote-tokens.ts
|
|
124
|
+
// extensions/line/src/quote-tokens.ts
|
|
129
125
|
const QUOTE_TOKEN_LIMIT = 500;
|
|
130
126
|
const quoteTokensByAccount = /* @__PURE__ */ new Map();
|
|
131
127
|
function quoteTokenKey(chatId, messageId) {
|
|
@@ -196,8 +192,7 @@ function withoutLineQuoteTokens(messages) {
|
|
|
196
192
|
quoteToken: void 0
|
|
197
193
|
} : message);
|
|
198
194
|
}
|
|
199
|
-
|
|
200
|
-
//#region extensions/line/src/flex-templates/message.ts
|
|
195
|
+
// extensions/line/src/flex-templates/message.ts
|
|
201
196
|
const LINE_FLEX_BUBBLE_MAX_BYTES = 3e4;
|
|
202
197
|
const LINE_FLEX_CAROUSEL_MAX_BYTES = 5e4;
|
|
203
198
|
function fitsLineFlexBubble(bubble) {
|
|
@@ -210,8 +205,7 @@ function toFlexMessage(altText, contents) {
|
|
|
210
205
|
contents
|
|
211
206
|
};
|
|
212
207
|
}
|
|
213
|
-
|
|
214
|
-
//#region extensions/line/src/actions.ts
|
|
208
|
+
// extensions/line/src/actions.ts
|
|
215
209
|
const LINE_ACTION_LABEL_LIMIT = 20;
|
|
216
210
|
const LINE_QUICK_REPLY_ITEM_LIMIT = 13;
|
|
217
211
|
const lineActionUriProtocols = /* @__PURE__ */ new Set([
|
|
@@ -610,8 +604,7 @@ function postbackAction(label, data, displayText) {
|
|
|
610
604
|
displayText
|
|
611
605
|
});
|
|
612
606
|
}
|
|
613
|
-
|
|
614
|
-
//#region extensions/line/src/flex-templates/common.ts
|
|
607
|
+
// extensions/line/src/flex-templates/common.ts
|
|
615
608
|
function cardText(text, style) {
|
|
616
609
|
return {
|
|
617
610
|
type: "text",
|
|
@@ -672,8 +665,7 @@ function createCardBubble(bodyContents, footer) {
|
|
|
672
665
|
});
|
|
673
666
|
return bubble;
|
|
674
667
|
}
|
|
675
|
-
|
|
676
|
-
//#region extensions/line/src/flex-templates/basic-cards.ts
|
|
668
|
+
// extensions/line/src/flex-templates/basic-cards.ts
|
|
677
669
|
function createInfoCard(title, body, footer) {
|
|
678
670
|
return createCardBubble([cardBox("horizontal", [cardBox("vertical", [], {
|
|
679
671
|
width: "4px",
|
|
@@ -766,8 +758,7 @@ function createActionCard(title, body, actions, options) {
|
|
|
766
758
|
};
|
|
767
759
|
return bubble;
|
|
768
760
|
}
|
|
769
|
-
|
|
770
|
-
//#region extensions/line/src/flex-templates/schedule-cards.ts
|
|
761
|
+
// extensions/line/src/flex-templates/schedule-cards.ts
|
|
771
762
|
function buildCardHeaderSections(headerContents) {
|
|
772
763
|
return [cardBox("vertical", headerContents, { paddingBottom: "lg" }), {
|
|
773
764
|
type: "separator",
|
|
@@ -935,15 +926,13 @@ function createAgendaCard(params) {
|
|
|
935
926
|
});
|
|
936
927
|
return createCardBubble([...buildCardHeaderSections(headerContents), cardBox("vertical", eventItems, { paddingTop: "xl" })], footer);
|
|
937
928
|
}
|
|
938
|
-
|
|
939
|
-
//#region extensions/line/src/channel-access-token.ts
|
|
929
|
+
// extensions/line/src/channel-access-token.ts
|
|
940
930
|
function resolveLineChannelAccessToken(explicit, params) {
|
|
941
931
|
if (explicit?.trim()) return explicit.trim();
|
|
942
932
|
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).`);
|
|
943
933
|
return params.channelAccessToken.trim();
|
|
944
934
|
}
|
|
945
|
-
|
|
946
|
-
//#region extensions/line/src/probe.ts
|
|
935
|
+
// extensions/line/src/probe.ts
|
|
947
936
|
var probe_exports = /* @__PURE__ */ __exportAll({
|
|
948
937
|
probeLineBot: () => probeLineBot,
|
|
949
938
|
readLineAccountMessageQuota: () => readLineAccountMessageQuota
|
|
@@ -1037,8 +1026,7 @@ async function probeLineBot(channelAccessToken, timeoutMs = 5e3) {
|
|
|
1037
1026
|
error: formatErrorMessage(error)
|
|
1038
1027
|
}));
|
|
1039
1028
|
}
|
|
1040
|
-
|
|
1041
|
-
//#region extensions/line/src/send-retry.ts
|
|
1029
|
+
// extensions/line/src/send-retry.ts
|
|
1042
1030
|
/** The LINE HTTP response carried by an error graph, when the request reached LINE. */
|
|
1043
1031
|
function findLineHttpError(error) {
|
|
1044
1032
|
return collectErrorGraphCandidates(error, (candidate) => [candidate.cause, candidate.error]).find((candidate) => candidate instanceof HTTPFetchError);
|
|
@@ -1099,5 +1087,4 @@ async function explainLineRefusal(params) {
|
|
|
1099
1087
|
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"
|
|
1100
1088
|
};
|
|
1101
1089
|
}
|
|
1102
|
-
//#endregion
|
|
1103
1090
|
export { reportLineQuoteCarrierMissing as A, uriAction as C, canCarryLineQuoteToken as D, applyLineQuoteToken as E, normalizeLineMessagingTarget as F, withoutLineQuoteTokens as M, buildLineMediaMessage as N, readLineQuoteToken as O, inferLineTargetChatType as P, truncateLineActionLabel as S, toFlexMessage as T, createCardBubble as _, probeLineBot as a, normalizeLineMessage as b, createAgendaCard as c, createActionCard as d, createImageCard as f, cardText as g, cardBox as h, runLinePushWithRetries as i, resolveLineQuoteToken as j, recordLineQuoteToken as k, createEventCard as l, createListCard as m, findLineHttpError as n, probe_exports as o, createInfoCard as p, resolveLineNonDispatchRetryable as r, resolveLineChannelAccessToken as s, explainLineRefusal as t, createReceiptCard as u, createCardTitle as v, fitsLineFlexBubble as w, postbackAction as x, messageAction as y };
|
|
@@ -1,15 +1,14 @@
|
|
|
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-Dm_NoU7R.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
|
+
// extensions/line/src/bot-access.ts
|
|
8
8
|
function normalizeLineAllowEntry(value) {
|
|
9
9
|
return String(value).trim().replace(/^line:(?:user:)?/i, "");
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
//#region extensions/line/src/account-helpers.ts
|
|
11
|
+
// extensions/line/src/account-helpers.ts
|
|
13
12
|
function hasLineCredentials(account) {
|
|
14
13
|
if (account.tokenStatus && account.signingSecretStatus) return account.tokenStatus !== "missing" && account.signingSecretStatus !== "missing";
|
|
15
14
|
return Boolean(account.channelAccessToken?.trim() && account.channelSecret?.trim());
|
|
@@ -19,8 +18,7 @@ function parseLineAllowFromId(raw) {
|
|
|
19
18
|
if (!/^U[a-f0-9]{32}$/i.test(trimmed)) return null;
|
|
20
19
|
return trimmed;
|
|
21
20
|
}
|
|
22
|
-
|
|
23
|
-
//#region extensions/line/src/setup-core.ts
|
|
21
|
+
// extensions/line/src/setup-core.ts
|
|
24
22
|
function patchLineAccountConfig(params) {
|
|
25
23
|
return patchScopedAccountConfig({
|
|
26
24
|
cfg: params.cfg,
|
|
@@ -163,8 +161,7 @@ const lineSetupContract = defineChannelSetupContract({
|
|
|
163
161
|
},
|
|
164
162
|
legacyAdapter: lineSetupAdapter
|
|
165
163
|
});
|
|
166
|
-
|
|
167
|
-
//#region extensions/line/src/setup-surface.ts
|
|
164
|
+
// extensions/line/src/setup-surface.ts
|
|
168
165
|
const t = createSetupTranslator();
|
|
169
166
|
const channel = "line";
|
|
170
167
|
const LINE_SETUP_HELP_LINES = [
|
|
@@ -326,5 +323,4 @@ const lineSetupWizard = {
|
|
|
326
323
|
},
|
|
327
324
|
disable: (cfg) => setSetupChannelEnabled(cfg, channel, false)
|
|
328
325
|
};
|
|
329
|
-
//#endregion
|
|
330
326
|
export { normalizeLineAllowEntry as a, hasLineCredentials as i, lineSetupAdapter as n, lineSetupContract as r, lineSetupWizard as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as uriAction, T as toFlexMessage, g as cardText, h as cardBox, u as createReceiptCard, w as fitsLineFlexBubble, x as postbackAction, y as messageAction } from "./send-retry-
|
|
1
|
+
import { C as uriAction, T as toFlexMessage, g as cardText, h as cardBox, u as createReceiptCard, w as fitsLineFlexBubble, x as postbackAction, y as messageAction } from "./send-retry-D6J7bThI.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
|
+
// extensions/line/src/markdown-to-line.ts
|
|
5
5
|
const LINE_MARKDOWN_OPTIONS = {
|
|
6
6
|
assistantTranscriptRoleHeaders: true,
|
|
7
7
|
autolink: false,
|
|
@@ -292,8 +292,7 @@ function processLineMessage(text) {
|
|
|
292
292
|
projectPlainText(ir, codeSpans, plainTextInsertions, (segment) => segments.push(segment));
|
|
293
293
|
return segments;
|
|
294
294
|
}
|
|
295
|
-
|
|
296
|
-
//#region packages/normalization-core/src/utf16-slice.ts
|
|
295
|
+
// packages/normalization-core/src/utf16-slice.ts
|
|
297
296
|
function isHighSurrogate(codeUnit) {
|
|
298
297
|
return codeUnit >= 55296 && codeUnit <= 56319;
|
|
299
298
|
}
|
|
@@ -306,8 +305,7 @@ function avoidTrailingHighSurrogateBreak(text, start, end) {
|
|
|
306
305
|
const adjusted = end - 1;
|
|
307
306
|
return adjusted > start ? adjusted : end + 1;
|
|
308
307
|
}
|
|
309
|
-
|
|
310
|
-
//#region packages/normalization-core/src/grapheme.ts
|
|
308
|
+
// packages/normalization-core/src/grapheme.ts
|
|
311
309
|
let graphemeSegmenter;
|
|
312
310
|
function getGraphemeSegmenter() {
|
|
313
311
|
graphemeSegmenter ??= new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
@@ -331,8 +329,7 @@ function findGraphemeChunkEnd(text, start, maxEnd, preferredEnd = maxEnd, allowP
|
|
|
331
329
|
if (end <= start && preferred < hardEnd) end = hardEnd === text.length ? hardEnd : segments.containing(hardEnd)?.index ?? hardEnd;
|
|
332
330
|
return end > start ? end : allowPartial ? avoidTrailingHighSurrogateBreak(text, start, hardEnd) : start;
|
|
333
331
|
}
|
|
334
|
-
|
|
335
|
-
//#region extensions/line/src/template-messages.ts
|
|
332
|
+
// extensions/line/src/template-messages.ts
|
|
336
333
|
const COMPACT_TEMPLATE_TEXT_LIMIT = 60;
|
|
337
334
|
const TEMPLATE_ALT_TEXT_LIMIT = 1500;
|
|
338
335
|
function buildTemplatePayloadAction(action) {
|
|
@@ -422,5 +419,4 @@ function buildTemplateMessageFromPayload(payload) {
|
|
|
422
419
|
default: return null;
|
|
423
420
|
}
|
|
424
421
|
}
|
|
425
|
-
//#endregion
|
|
426
422
|
export { processLineMessage as n, buildTemplateMessageFromPayload as t };
|
package/dist/.setup/{webhook-spool-contract-msjTl60Q.mjs → webhook-spool-contract-COhQK5XQ.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRecord, normalizeNullableString } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
2
|
-
|
|
2
|
+
// 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,5 +52,4 @@ function laneKeyFor(event, eventId) {
|
|
|
52
52
|
}
|
|
53
53
|
return eventId;
|
|
54
54
|
}
|
|
55
|
-
//#endregion
|
|
56
55
|
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 };
|
|
@@ -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-
|
|
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-ByXjHPMe.mjs","sha256":"790a3b3f6fed83923ac432a9aea0059401b4dde42a180ec66a89f9378df3e092","facadeSource":null,"sources":["extensions/line/src/channel.setup.ts"]},{"output":".setup/api-DCMpIrda.mjs","sha256":"d8d0c8e2492ac0863a4c7a461bef4b3ec973125c81f781bb9ade3ae92ead49f6","facadeSource":"extensions/line/api.ts","sources":[]},{"output":".setup/card-command-utjlRvb-.mjs","sha256":"40b5197ae02101b7a84a08afe80151a4be79a194efad43d873ad13addeb7eb32","facadeSource":"extensions/line/src/card-command.ts","sources":["extensions/line/src/card-command.ts"]},{"output":".setup/channel-D9i_xlsJ.mjs","sha256":"04e4aba4bc7bfc975fb61220f33a48ef03d95a8367849d5bbf690624f800da85","facadeSource":null,"sources":["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/gateway.ts","extensions/line/src/group-keys.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-C-E2qsIu.mjs","sha256":"0e132847d9ce1be88b42570dfb95528003845a7c0c9b9bd9f798101126e1852a","facadeSource":"extensions/line/src/channel.runtime.ts","sources":[]},{"output":".setup/monitor-BYGe2Y7S.mjs","sha256":"8adcb443999dd9a8f8dddd6011d3278b867b4f8624add7def84850beee61c118","facadeSource":"extensions/line/src/monitor.ts","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.ts","extensions/line/src/signature.ts","extensions/line/src/webhook-node.ts","extensions/line/src/webhook-spool.ts"]},{"output":".setup/outbound.runtime-AQvUJvJV.mjs","sha256":"0a27e7fd7286143aca81f262da76b227c1b5969825db53840fb3e4f6b4c10790","facadeSource":"extensions/line/src/outbound.runtime.ts","sources":[]},{"output":".setup/runtime-C9ldw-V4.mjs","sha256":"ac1144683eff8dc37f71e7b26f00dd5f692e4c35b6ac4a14d11ba81603dc0414","facadeSource":null,"sources":["extensions/line/src/runtime.ts"]},{"output":".setup/send-H86JOXWw.mjs","sha256":"8b1aa80a03ec3549933b072e6568b021e35a3977a8f2cdd0fc890da5a590de19","facadeSource":null,"sources":["extensions/line/src/outbound-message-log.ts","extensions/line/src/send.ts"]},{"output":".setup/send-retry-D6J7bThI.mjs","sha256":"3d84dd3dd373f48163efed5de14d1d3e5d7135fe6a6b74125c932219917cb878","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-KG1GwG0h.mjs","sha256":"422dd325a59c9d019ec0cd6d29be4ebc124fb3fc71d072d5079ddefc475f21c2","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":"a9c47f7d5840d3e67eeeceb30bfe0b01b8d6b873743a064281e169cc28447025","facadeSource":"extensions/line/api.ts","sources":[]},{"output":"channel-plugin-api.js","sha256":"a04ff1cf97f5e07bf955a1fb6b55e81c436e6084c0ead8264661609098c56a61","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":"027e770f77429c8c2381255370eedbb418a769205554402b1f0b9c78509f5ae9","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":"12d964681e6d7ca793c1d04d8a2496e1adf38518c9ba5b228c1644fbf05fdb6e","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/outbound.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-D9i_xlsJ.mjs";
|
|
2
|
+
import { t as lineSetupPlugin } from "./.setup/api-ByXjHPMe.mjs";
|
|
3
3
|
export { linePlugin, lineSetupPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as linePlugin } from "./.setup/channel-
|
|
1
|
+
export { t as linePlugin } from "./.setup/channel-D9i_xlsJ.mjs";
|
package/dist/contract-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as listLineAccountIds, n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./.setup/accounts-
|
|
1
|
+
export { t as listLineAccountIds, n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./.setup/accounts-Dm_NoU7R.mjs";
|
|
@@ -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-COhQK5XQ.mjs";
|
|
2
2
|
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
|
|
3
3
|
import { coerceErrorMessage } from "openclaw/plugin-sdk/error-runtime";
|
|
4
|
-
|
|
4
|
+
// 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,8 +90,7 @@ async function migrateLineLegacySpoolRows(queue) {
|
|
|
90
90
|
}
|
|
91
91
|
return result;
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
//#region extensions/line/doctor-contract-api.ts
|
|
93
|
+
// extensions/line/doctor-contract-api.ts
|
|
95
94
|
const LINE_CHANNEL_ID = "line";
|
|
96
95
|
/** Pre-drain rows can outlive the account config that admitted them, so the sweep
|
|
97
96
|
* enumerates accounts from the host's queue lane instead of the config; a host
|
|
@@ -138,5 +137,4 @@ const stateMigrations = [{
|
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
}];
|
|
141
|
-
//#endregion
|
|
142
140
|
export { stateMigrations };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineBundledChannelEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
|
-
|
|
2
|
+
// extensions/line/index.ts
|
|
3
3
|
var line_default = defineBundledChannelEntry({
|
|
4
4
|
id: "line",
|
|
5
5
|
name: "LINE",
|
|
@@ -21,11 +21,10 @@ 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-utjlRvb-.mjs");
|
|
25
25
|
return await handleLineCardCommand(ctx.args);
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
//#endregion
|
|
31
30
|
export { line_default as default };
|
package/dist/runtime-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as setLineRuntime } from "./.setup/runtime-
|
|
1
|
+
export { n as setLineRuntime } from "./.setup/runtime-C9ldw-V4.mjs";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// extensions/line/secret-contract-api.ts
|
|
2
2
|
const secretTargetRegistryEntries = [];
|
|
3
3
|
function collectRuntimeConfigAssignments() {}
|
|
4
|
-
//#endregion
|
|
5
4
|
export { collectRuntimeConfigAssignments, secretTargetRegistryEntries };
|
package/dist/setup-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as lineSetupAdapter, t as lineSetupWizard } from "./.setup/setup-surface-
|
|
1
|
+
export { n as lineSetupAdapter, t as lineSetupWizard } from "./.setup/setup-surface-DvbBjHFi.mjs";
|
package/dist/setup-entry.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
|
-
|
|
3
|
+
// 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-DCMpIrda.mjs", import.meta.url).href),
|
|
8
8
|
exportName: "lineSetupPlugin"
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
//#endregion
|
|
12
11
|
export { setup_entry_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/line",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.9",
|
|
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.7"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"openclaw": ">=2026.11.
|
|
16
|
+
"openclaw": ">=2026.11.9"
|
|
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.11.
|
|
125
|
+
"pluginApi": ">=2026.11.9"
|
|
126
126
|
},
|
|
127
127
|
"build": {
|
|
128
|
-
"openclawVersion": "2026.11.
|
|
128
|
+
"openclawVersion": "2026.11.9"
|
|
129
129
|
},
|
|
130
130
|
"release": {
|
|
131
131
|
"publishToClawHub": true,
|