@openclaw/line 2026.11.5-beta.4 → 2026.11.10-beta.1

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.
Files changed (52) hide show
  1. package/dist/.setup/{accounts-DOiM8-y3.mjs → accounts-Dm_NoU7R.mjs} +1 -2
  2. package/dist/.setup/{api-BRnngy5R.mjs → api-9pVXv3ik.mjs} +3 -4
  3. package/dist/.setup/api-wlqmzFgF.mjs +3 -0
  4. package/dist/.setup/{card-command-2y-RSLPg.mjs → card-command-utjlRvb-.mjs} +3 -4
  5. package/dist/.setup/{channel-DJcpjKpx.mjs → channel-CTHRI9qK.mjs} +21 -33
  6. package/dist/.setup/{channel.runtime-CdfKsNz4.mjs → channel.runtime-BYrxqMsm.mjs} +3 -3
  7. package/dist/.setup/{monitor-BkuPFFxZ.mjs → monitor-Bey2fUb2.mjs} +23 -38
  8. package/dist/.setup/{outbound.runtime-BPo_111h.mjs → outbound.runtime-BhQfx5xP.mjs} +2 -2
  9. package/dist/.setup/{runtime-V7yh9OeC.mjs → runtime-C9ldw-V4.mjs} +1 -2
  10. package/dist/.setup/{send-C1JZOFMA.mjs → send-H86JOXWw.mjs} +4 -6
  11. package/dist/.setup/{send-retry-Bf2Xr6ZN.mjs → send-retry-D6J7bThI.mjs} +14 -27
  12. package/dist/.setup/{setup-surface-CYd8oqzt.mjs → setup-surface-DvbBjHFi.mjs} +5 -9
  13. package/dist/.setup/{template-messages-C1Kkr0-e.mjs → template-messages-BZzuYlsa.mjs} +12 -14
  14. package/dist/.setup/{webhook-spool-contract-msjTl60Q.mjs → webhook-spool-contract-COhQK5XQ.mjs} +1 -2
  15. package/dist/.source-module-urls/2c97352967966b7ab9f67f528eb25c098b6fe10ea0e4616ffae3851ed839d81e.json +1 -1
  16. package/dist/api.js +2 -2
  17. package/dist/channel-plugin-api.js +1 -1
  18. package/dist/contract-api.js +1 -1
  19. package/dist/doctor-contract-api.js +4 -5
  20. package/dist/index.js +2 -3
  21. package/dist/runtime-api.js +1 -1
  22. package/dist/secret-contract-api.js +1 -2
  23. package/dist/setup-api.js +1 -1
  24. package/dist/setup-entry.js +2 -3
  25. package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.d.ts +1 -0
  26. package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.d.ts.map +1 -1
  27. package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +10 -0
  28. package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js.map +1 -1
  29. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/altUri.d.ts +1 -1
  30. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/uRIAction.d.ts +3 -0
  31. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/model/uRIAction.d.ts.map +1 -1
  32. package/node_modules/@line/bot-sdk/dist/cjs/version.d.ts +1 -1
  33. package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
  34. package/node_modules/@line/bot-sdk/dist/http-fetch.d.ts +1 -0
  35. package/node_modules/@line/bot-sdk/dist/http-fetch.d.ts.map +1 -1
  36. package/node_modules/@line/bot-sdk/dist/http-fetch.js +14 -0
  37. package/node_modules/@line/bot-sdk/dist/http-fetch.js.map +1 -1
  38. package/node_modules/@line/bot-sdk/dist/messaging-api/model/altUri.d.ts +1 -1
  39. package/node_modules/@line/bot-sdk/dist/messaging-api/model/uRIAction.d.ts +3 -0
  40. package/node_modules/@line/bot-sdk/dist/messaging-api/model/uRIAction.d.ts.map +1 -1
  41. package/node_modules/@line/bot-sdk/dist/version.d.ts +1 -1
  42. package/node_modules/@line/bot-sdk/dist/version.js +1 -1
  43. package/node_modules/@line/bot-sdk/lib/http-fetch.ts +19 -0
  44. package/node_modules/@line/bot-sdk/lib/messaging-api/model/altUri.ts +1 -1
  45. package/node_modules/@line/bot-sdk/lib/messaging-api/model/uRIAction.ts +3 -0
  46. package/node_modules/@line/bot-sdk/lib/version.ts +1 -1
  47. package/node_modules/@line/bot-sdk/package.json +6 -6
  48. package/node_modules/typebox/build/format/date_time.d.mts +2 -1
  49. package/node_modules/typebox/build/format/date_time.mjs +12 -3
  50. package/node_modules/typebox/package.json +1 -1
  51. package/package.json +6 -6
  52. 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
- //#region extensions/line/src/accounts.ts
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-CYd8oqzt.mjs";
2
- import { l as lineChannelPluginCommon } from "./channel-DJcpjKpx.mjs";
3
- //#region extensions/line/src/channel.setup.ts
1
+ import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-DvbBjHFi.mjs";
2
+ import { l as lineChannelPluginCommon } from "./channel-CTHRI9qK.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 };
@@ -0,0 +1,3 @@
1
+ import { t as linePlugin } from "./channel-CTHRI9qK.mjs";
2
+ import { t as lineSetupPlugin } from "./api-9pVXv3ik.mjs";
3
+ export { linePlugin, lineSetupPlugin };
@@ -1,8 +1,8 @@
1
- import { d as createActionCard, f as createImageCard, m as createListCard, p as createInfoCard, u as createReceiptCard } from "./send-retry-Bf2Xr6ZN.mjs";
2
- import { t as createFlexMessage } from "./send-C1JZOFMA.mjs";
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
- //#region extensions/line/src/card-command.ts
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-Bf2Xr6ZN.mjs";
2
- import { n as resolveDefaultLineAccountId, r as resolveLineAccount, t as listLineAccountIds } from "./accounts-DOiM8-y3.mjs";
3
- import { a as normalizeLineAllowEntry, i as hasLineCredentials, r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CYd8oqzt.mjs";
4
- import { t as getLineRuntime } from "./runtime-V7yh9OeC.mjs";
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
- //#region extensions/line/src/config-adapter.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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-Bf2Xr6ZN.mjs").then((n) => n.o)).probeLineBot(account.channelAccessToken, timeoutMs),
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
- //#endregion
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-Bf2Xr6ZN.mjs").then((n) => n.o)).probeLineBot(token, 2500);
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-BkuPFFxZ.mjs");
354
+ const { monitorLineProvider } = await import("./monitor-Bey2fUb2.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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
922
- //#region extensions/line/src/outbound.ts
923
- const loadLineOutboundRuntime = createLazyRuntimeModule(() => import("./outbound.runtime-BPo_111h.mjs"));
912
+ // extensions/line/src/outbound.ts
913
+ const loadLineOutboundRuntime = createLazyRuntimeModule(() => import("./outbound.runtime-BhQfx5xP.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
- //#endregion
1167
- //#region extensions/line/src/channel.ts
1168
- const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-CdfKsNz4.mjs"));
1156
+ // extensions/line/src/channel.ts
1157
+ const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BYrxqMsm.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-Bf2Xr6ZN.mjs";
2
- import { l as pushMessageLine, m as showLoadingAnimation } from "./send-C1JZOFMA.mjs";
3
- import { monitorLineProvider } from "./monitor-BkuPFFxZ.mjs";
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-Bey2fUb2.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-Bf2Xr6ZN.mjs";
2
- import { n as resolveDefaultLineAccountId, r as resolveLineAccount } from "./accounts-DOiM8-y3.mjs";
3
- import { a as normalizeLineAllowEntry } from "./setup-surface-CYd8oqzt.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-DJcpjKpx.mjs";
5
- import { t as getLineRuntime } from "./runtime-V7yh9OeC.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-C1JZOFMA.mjs";
8
- import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-C1Kkr0-e.mjs";
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-CTHRI9qK.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-BZzuYlsa.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
- //#region extensions/line/src/auto-reply-delivery.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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);
@@ -1262,8 +1256,7 @@ function createLineImageSetIngressBuffer() {
1262
1256
  }
1263
1257
  if (forming.timer) {
1264
1258
  clearTimeout(forming.timer);
1265
- forming.timer = setTimeout(forming.release, IMAGE_SET_FLUSH_DELAY_MS);
1266
- forming.timer.unref?.();
1259
+ forming.timer = setTimeout(forming.release, IMAGE_SET_FLUSH_DELAY_MS).unref();
1267
1260
  }
1268
1261
  return null;
1269
1262
  }
@@ -1284,8 +1277,7 @@ function createLineImageSetIngressBuffer() {
1284
1277
  }
1285
1278
  const carriedMessageIds = carried?.messageIds ?? /* @__PURE__ */ new Set();
1286
1279
  const releaseLane = await enterLane(input.laneKey);
1287
- pending.timer = setTimeout(pending.release, IMAGE_SET_FLUSH_DELAY_MS);
1288
- pending.timer.unref?.();
1280
+ pending.timer = setTimeout(pending.release, IMAGE_SET_FLUSH_DELAY_MS).unref();
1289
1281
  if (pending.total !== void 0 && pending.parts.size >= pending.total) pending.release();
1290
1282
  await whole;
1291
1283
  pendingBySet.delete(key);
@@ -1294,8 +1286,7 @@ function createLineImageSetIngressBuffer() {
1294
1286
  const missing = pending.total === void 0 ? 0 : pending.total - deliveredMessageIds.size;
1295
1287
  if (missing > 0) {
1296
1288
  const carry = { messageIds: deliveredMessageIds };
1297
- carry.timer = setTimeout(() => deliveredBySet.delete(key), IMAGE_SET_FLUSH_DELAY_MS * 5);
1298
- carry.timer.unref?.();
1289
+ carry.timer = setTimeout(() => deliveredBySet.delete(key), IMAGE_SET_FLUSH_DELAY_MS * 5).unref();
1299
1290
  deliveredBySet.set(key, carry);
1300
1291
  }
1301
1292
  return {
@@ -1311,8 +1302,7 @@ function createLineImageSetIngressBuffer() {
1311
1302
  isBusy: (laneKey) => laneChain.has(laneKey)
1312
1303
  };
1313
1304
  }
1314
- //#endregion
1315
- //#region extensions/line/src/webhook-spool.ts
1305
+ // extensions/line/src/webhook-spool.ts
1316
1306
  const LINE_WEBHOOK_DRAIN_INTERVAL_MS = 500;
1317
1307
  const LINE_WEBHOOK_MAX_CONCURRENT_DELIVERIES = 8;
1318
1308
  const LINE_WEBHOOK_DRAIN_SCAN_LIMIT = 100;
@@ -1535,8 +1525,7 @@ function createLineWebhookSpool(options) {
1535
1525
  }
1536
1526
  };
1537
1527
  }
1538
- //#endregion
1539
- //#region extensions/line/src/bot.ts
1528
+ // extensions/line/src/bot.ts
1540
1529
  const DEFAULT_MEDIA_MAX_MB = 10;
1541
1530
  function createLineBot(opts) {
1542
1531
  const { runtime, config: startupConfig } = opts;
@@ -1581,14 +1570,12 @@ function createLineBot(opts) {
1581
1570
  stop: spool.stop
1582
1571
  };
1583
1572
  }
1584
- //#endregion
1585
- //#region extensions/line/src/signature.ts
1573
+ // extensions/line/src/signature.ts
1586
1574
  function validateLineSignature(body, signature, channelSecret) {
1587
1575
  const hash = crypto.createHmac("SHA256", channelSecret).update(body).digest("base64");
1588
1576
  return safeEqualSecret(signature, hash);
1589
1577
  }
1590
- //#endregion
1591
- //#region extensions/line/src/webhook-node.ts
1578
+ // extensions/line/src/webhook-node.ts
1592
1579
  const LINE_WEBHOOK_PREAUTH_MAX_BODY_BYTES = 65536;
1593
1580
  const LINE_WEBHOOK_PREAUTH_BODY_TIMEOUT_MS = 5e3;
1594
1581
  function createLineNodeWebhookHandler(params) {
@@ -1658,8 +1645,7 @@ function createLineNodeWebhookHandler(params) {
1658
1645
  }
1659
1646
  };
1660
1647
  }
1661
- //#endregion
1662
- //#region extensions/line/src/monitor.ts
1648
+ // extensions/line/src/monitor.ts
1663
1649
  const lineWebhookInFlightLimiter = createWebhookInFlightLimiter();
1664
1650
  const lineWebhookTargets = /* @__PURE__ */ new Map();
1665
1651
  async function monitorLineProvider(opts) {
@@ -1859,5 +1845,4 @@ async function monitorLineProvider(opts) {
1859
1845
  }
1860
1846
  };
1861
1847
  }
1862
- //#endregion
1863
1848
  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-C1JZOFMA.mjs";
2
- import { n as processLineMessage, t as buildTemplateMessageFromPayload } from "./template-messages-C1Kkr0-e.mjs";
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-BZzuYlsa.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
- //#region extensions/line/src/runtime.ts
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-Bf2Xr6ZN.mjs";
2
- import { r as resolveLineAccount } from "./accounts-DOiM8-y3.mjs";
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
- //#region extensions/line/src/outbound-message-log.ts
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
- //#endregion
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-DOiM8-y3.mjs";
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
- //#region \0rolldown/runtime.js
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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-DOiM8-y3.mjs";
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
- //#region extensions/line/src/bot-access.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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 };