@openclaw/line 2026.9.1 → 2026.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/api.js +2 -2
  2. package/dist/{channel-CF2AeULJ.js → channel-DKU9GRRC.js} +9 -6
  3. package/dist/channel-plugin-api.js +1 -1
  4. package/dist/{channel.runtime-BF4Wk2dM.js → channel.runtime-Bq6dsWOi.js} +1 -1
  5. package/dist/{monitor-D0fHFXCi.js → monitor-Bp2VIzkG.js} +20 -7
  6. package/dist/monitor.runtime-Bgm3Hcfu.js +2 -0
  7. package/dist/{rich-messages-DY1AGKAJ.js → rich-messages-HS8pNeOa.js} +17 -27
  8. package/dist/runtime-api.js +2 -2
  9. package/dist/setup-api.js +1 -1
  10. package/dist/{setup-surface-CDlgkTKi.js → setup-surface-DiXO4x5f.js} +8 -0
  11. package/node_modules/typebox/build/format/json_pointer.d.mts +2 -2
  12. package/node_modules/typebox/build/format/json_pointer.mjs +2 -2
  13. package/node_modules/typebox/build/format/json_pointer_uri_fragment.d.mts +2 -2
  14. package/node_modules/typebox/build/format/json_pointer_uri_fragment.mjs +2 -2
  15. package/node_modules/typebox/build/format/relative_json_pointer.d.mts +2 -2
  16. package/node_modules/typebox/build/format/relative_json_pointer.mjs +2 -2
  17. package/node_modules/typebox/build/system/memory/assign.mjs +2 -1
  18. package/node_modules/typebox/build/system/memory/create.mjs +3 -4
  19. package/node_modules/typebox/build/system/memory/discard.mjs +2 -2
  20. package/node_modules/typebox/build/system/memory/freeze.d.mts +4 -0
  21. package/node_modules/typebox/build/system/memory/freeze.mjs +6 -0
  22. package/node_modules/typebox/build/system/memory/update.mjs +3 -2
  23. package/node_modules/typebox/package.json +1 -1
  24. package/openclaw.plugin.json +5 -2
  25. package/package.json +8 -5
  26. package/dist/monitor.runtime-Mgecav_D.js +0 -2
package/dist/api.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as lineChannelPluginCommon, t as linePlugin } from "./channel-CF2AeULJ.js";
2
- import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CDlgkTKi.js";
1
+ import { n as lineChannelPluginCommon, t as linePlugin } from "./channel-DKU9GRRC.js";
2
+ import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-DiXO4x5f.js";
3
3
  //#region extensions/line/src/channel.setup.ts
4
4
  const lineSetupPlugin = {
5
5
  id: "line",
@@ -1,8 +1,8 @@
1
1
  import { i as resolveLineAccount, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-BBEFMYbY.js";
2
2
  import { t as hasLineCredentials } from "./account-helpers-BSUyZwLm.js";
3
- import { _ as LineChannelConfigSchema, a as renderLineCard, d as resolveExactLineGroupConfigKey, h as getLineRuntime, n as createLineQuickReply, o as renderLinePresentation, p as resolveLineGroupLookupIds, r as lineMessageActions, t as LINE_PRESENTATION_CAPABILITIES, u as buildLineQuickReplyFallbackText } from "./rich-messages-DY1AGKAJ.js";
3
+ import { _ as LineChannelConfigSchema, a as renderLineCard, d as resolveExactLineGroupConfigKey, h as getLineRuntime, n as createLineQuickReply, o as renderLinePresentation, p as resolveLineGroupLookupIds, r as lineMessageActions, t as LINE_PRESENTATION_CAPABILITIES, u as buildLineQuickReplyFallbackText } from "./rich-messages-HS8pNeOa.js";
4
4
  import { s as createLineSendReceipt, t as explainLineRefusal, w as buildLineMediaMessage } from "./send-retry-ChpfJ-LM.js";
5
- import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-CDlgkTKi.js";
5
+ import { r as lineSetupContract, t as lineSetupWizard } from "./setup-surface-DiXO4x5f.js";
6
6
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
7
7
  import { buildDmGroupAccountAllowlistAdapter, createFlatAllowlistOverrideResolver } from "openclaw/plugin-sdk/allowlist-config-edit";
8
8
  import { buildChannelOutboundSessionRoute, createChatChannelPlugin } from "openclaw/plugin-sdk/channel-core";
@@ -120,7 +120,7 @@ const lineChannelPluginCommon = {
120
120
  //#endregion
121
121
  //#region extensions/line/src/gateway.ts
122
122
  const loadLineProbeRuntime$1 = createLazyRuntimeModule(() => import("./probe.runtime-CbtMgU4s.js"));
123
- const loadLineMonitorRuntime = createLazyRuntimeModule(() => import("./monitor.runtime-Mgecav_D.js"));
123
+ const loadLineMonitorRuntime = createLazyRuntimeModule(() => import("./monitor.runtime-Bgm3Hcfu.js"));
124
124
  const lineGatewayAdapter = {
125
125
  startAccount: async (ctx) => {
126
126
  const account = ctx.account;
@@ -477,7 +477,7 @@ const lineStatusAdapter = createComputedAccountStatusAdapter({
477
477
  });
478
478
  //#endregion
479
479
  //#region extensions/line/src/channel.ts
480
- const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-BF4Wk2dM.js"));
480
+ const loadLineChannelRuntime = createLazyRuntimeModule(() => import("./channel.runtime-Bq6dsWOi.js"));
481
481
  const lineSecurityAdapter = createRestrictSendersChannelSecurity({
482
482
  channelKey: "line",
483
483
  resolveDmPolicy: (account) => account.config.dmPolicy,
@@ -613,8 +613,11 @@ const linePlugin = createChatChannelPlugin({
613
613
  idLabel: "lineUserId",
614
614
  message: "OpenClaw: your access has been approved.",
615
615
  normalizeAllowEntry: createPairingPrefixStripper(/^line:(?:user:)?/i),
616
- notify: async ({ cfg, id, message }) => {
617
- const account = (getLineRuntime().channel.line?.resolveLineAccount ?? resolveLineAccount)({ cfg });
616
+ notify: async ({ cfg, id, message, accountId }) => {
617
+ const account = (getLineRuntime().channel.line?.resolveLineAccount ?? resolveLineAccount)({
618
+ cfg,
619
+ accountId
620
+ });
618
621
  if (!account.channelAccessToken) throw new Error("LINE channel access token not configured");
619
622
  await (getLineRuntime().channel.line?.pushMessageLine ?? (await loadLineChannelRuntime()).pushMessageLine)(id, message, {
620
623
  cfg,
@@ -1,2 +1,2 @@
1
- import { t as linePlugin } from "./channel-CF2AeULJ.js";
1
+ import { t as linePlugin } from "./channel-DKU9GRRC.js";
2
2
  export { linePlugin };
@@ -1,4 +1,4 @@
1
1
  import { a as probeLineBot } from "./send-retry-ChpfJ-LM.js";
2
- import { t as monitorLineProvider } from "./monitor-D0fHFXCi.js";
2
+ import { t as monitorLineProvider } from "./monitor-Bp2VIzkG.js";
3
3
  import { _ as showLoadingAnimation, d as pushMessageLine } from "./send-CQQxpxPp.js";
4
4
  export { monitorLineProvider, probeLineBot, pushMessageLine, showLoadingAnimation };
@@ -1,13 +1,14 @@
1
1
  import { i as resolveLineAccount, r as resolveDefaultLineAccountId } from "./accounts-BBEFMYbY.js";
2
- import { f as resolveLineGroupConfigEntry, h as getLineRuntime, i as prepareLineReplyPayload, n as createLineQuickReply, u as buildLineQuickReplyFallbackText } from "./rich-messages-DY1AGKAJ.js";
2
+ import { f as resolveLineGroupConfigEntry, h as getLineRuntime, i as prepareLineReplyPayload, n as createLineQuickReply, u as buildLineQuickReplyFallbackText } from "./rich-messages-HS8pNeOa.js";
3
3
  import { n as findLineHttpError, r as resolveLineNonDispatchRetryable, t as explainLineRefusal, w as buildLineMediaMessage } from "./send-retry-ChpfJ-LM.js";
4
4
  import { a as eventIdFor, n as LINE_WEBHOOK_SPOOL_INVALID_PAYLOAD_MESSAGE, o as laneKeyFor, r as LineWebhookPayloadError, t as LINE_WEBHOOK_SPOOL_INVALID_EVENT_REASON } from "./webhook-spool-contract-1rY8OJw8.js";
5
5
  import { i as processLineMessage, o as buildTemplateMessageFromPayload } from "./markdown-to-line-B-sj-7II.js";
6
6
  import { _ as showLoadingAnimation, a as getLineGroupName, d as pushMessageLine, f as pushMessagesLine, h as replyMessageLine, n as createLocationMessage, o as getUserDisplayName, s as getUserProfile, t as createFlexMessage, v as quotesLineBotMessage } from "./send-CQQxpxPp.js";
7
7
  import { createChannelPairingChallengeIssuer } from "openclaw/plugin-sdk/channel-pairing";
8
+ import { resolveChannelGroupsConfigPath } from "openclaw/plugin-sdk/channel-policy";
8
9
  import { normalizeOptionalString, normalizeStringEntries, readNonEmptyStringPreservingWhitespace } from "openclaw/plugin-sdk/string-coerce-runtime";
9
10
  import { DEFAULT_INGRESS_ADOPTION_STALL_MS, DEFAULT_INGRESS_RETRY_MAX_ATTEMPTS, bindIngressLifecycleToReplyOptions, createChannelIngressMonitor } from "openclaw/plugin-sdk/channel-outbound";
10
- import { buildChannelInboundEventContext, buildMentionRegexes, formatInboundEnvelope, formatInboundMediaUnavailableText, formatLocationText, hasFinalInboundReplyDispatch, implicitMentionKindWhen, isChannelPartialDeliveryError, matchesMentionPatterns, resolveInboundSessionEnvelopeContext, toInboundMediaFactsWithMetadata, toLocationContext } from "openclaw/plugin-sdk/channel-inbound";
11
+ import { buildChannelInboundEventContext, buildMentionRegexes, formatInboundEnvelope, formatInboundMediaUnavailableText, formatLocationText, hasFinalInboundReplyDispatch, implicitMentionKindWhen, isChannelPartialDeliveryError, logInboundDrop, matchesMentionPatterns, resolveInboundSessionEnvelopeContext, toInboundMediaFactsWithMetadata, toLocationContext } from "openclaw/plugin-sdk/channel-inbound";
11
12
  import { collectErrorGraphCandidates, extractErrorCode, formatErrorMessage, readErrorName, toErrorObject } from "openclaw/plugin-sdk/error-runtime";
12
13
  import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-payload";
13
14
  import { sanitizeAssistantVisibleText } from "openclaw/plugin-sdk/text-chunking";
@@ -1052,15 +1053,27 @@ async function handleMessageEvent(event, context) {
1052
1053
  const message = event.message;
1053
1054
  const decision = await resolveLineEventAdmission(event, context);
1054
1055
  if (!decision) return;
1055
- const { isGroup, groupId, roomId } = getLineSourceInfo(event.source);
1056
+ const { isGroup, groupId, roomId, userId } = getLineSourceInfo(event.source);
1056
1057
  if (isGroup && decision.access.activationAccess.shouldSkip) {
1057
1058
  const rawText = message.type === "text" ? readLineTextMessageBody(message) : "";
1058
- const sourceInfo = getLineSourceInfo(event.source);
1059
- logVerbose(`line: skipping group message (requireMention, not mentioned)`);
1060
1059
  const historyKey = groupId ?? roomId;
1061
- const senderId = sourceInfo.userId ?? "unknown";
1060
+ const groupsConfigPath = resolveChannelGroupsConfigPath({
1061
+ cfg,
1062
+ channel: "line",
1063
+ accountId: account.accountId,
1064
+ groups: account.config.groups
1065
+ });
1066
+ logInboundDrop({
1067
+ log: runtime.log,
1068
+ channel: "line",
1069
+ reason: "no mention",
1070
+ target: historyKey,
1071
+ onceKey: JSON.stringify([account.accountId, historyKey]),
1072
+ hint: `Mention patterns can be derived from the agent identity name. Set ${groupsConfigPath}[${JSON.stringify(historyKey)}].requireMention=false to process messages without a mention. Preserve existing groups entries; when adding the first groups map, include "*": {} to keep other chats admitted.`
1073
+ });
1074
+ const senderId = userId ?? "unknown";
1062
1075
  if (historyKey && context.groupHistories) {
1063
- const displayName = sourceInfo.userId ? await getUserDisplayName(sourceInfo.userId, {
1076
+ const displayName = userId ? await getUserDisplayName(userId, {
1064
1077
  cfg,
1065
1078
  accountId: account.accountId,
1066
1079
  channelAccessToken: account.channelAccessToken,
@@ -0,0 +1,2 @@
1
+ import { t as monitorLineProvider } from "./monitor-Bp2VIzkG.js";
2
+ export { monitorLineProvider };
@@ -8,7 +8,7 @@ import { DmPolicySchema, GroupPolicySchema, buildChannelConfigSchema, buildGroup
8
8
  import { requireChannelOpenAllowFrom } from "openclaw/plugin-sdk/extension-shared";
9
9
  import { z } from "zod";
10
10
  import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store";
11
- import { adaptMessagePresentationForChannel, normalizeMessagePresentation, renderMessagePresentationFallbackText, resolveMessagePresentationButtonAction, resolveMessagePresentationOptionAction } from "openclaw/plugin-sdk/interactive-runtime";
11
+ import { normalizeMessagePresentation, renderMessagePresentationFallbackText, renderPresentationForDelivery, resolveMessagePresentationButtonAction, resolveMessagePresentationOptionAction } from "openclaw/plugin-sdk/interactive-runtime";
12
12
  import { Type } from "typebox";
13
13
  //#region extensions/line/src/config-schema.ts
14
14
  const ThreadBindingsSchema = z.object({
@@ -639,32 +639,22 @@ function renderLinePresentation(payload, presentation) {
639
639
  * replies the plugin delivers itself reach delivery with the controls still
640
640
  * portable. Preparing them here keeps both LINE delivery paths on one rendering.
641
641
  */
642
- function prepareLineReplyPayload(payload) {
643
- const presentation = normalizeMessagePresentation(payload.presentation);
644
- if (!presentation) return payload;
645
- const { presentation: _presentation, presentationTextMode, ...rest } = payload;
646
- const usesFallbackText = presentationTextMode === "fallback" && Boolean(rest.text?.trim());
647
- const rendered = renderLinePresentation(usesFallbackText ? {
648
- ...rest,
649
- text: void 0
650
- } : rest, adaptMessagePresentationForChannel({
651
- presentation,
652
- capabilities: LINE_PRESENTATION_CAPABILITIES
653
- }));
654
- if (rendered) {
655
- const renderedLine = isRecord(rendered.channelData?.line) ? rendered.channelData.line : {};
656
- return usesFallbackText && renderedLine.flexMessage === void 0 ? {
657
- ...rendered,
658
- text: rest.text
659
- } : rendered;
660
- }
661
- return {
662
- ...rest,
663
- text: usesFallbackText ? rest.text ?? renderMessagePresentationFallbackText({ presentation }) : renderMessagePresentationFallbackText({
664
- text: rest.text,
665
- presentation
666
- })
667
- };
642
+ async function prepareLineReplyPayload(payload) {
643
+ if (!normalizeMessagePresentation(payload.presentation)) return payload;
644
+ const usesFallbackText = payload.presentationTextMode === "fallback" && Boolean(payload.text?.trim());
645
+ return renderPresentationForDelivery({
646
+ presentationCapabilities: LINE_PRESENTATION_CAPABILITIES,
647
+ renderPresentation: (adapted) => {
648
+ const rendered = renderLinePresentation(adapted, adapted.presentation);
649
+ return rendered && usesFallbackText && rendered.channelData.line.flexMessage === void 0 ? {
650
+ ...rendered,
651
+ text: payload.text
652
+ } : rendered;
653
+ }
654
+ }, {
655
+ ...payload,
656
+ presentationTextMode: usesFallbackText ? "fallback" : void 0
657
+ });
668
658
  }
669
659
  const toSlug = (value) => normalizeLowercaseStringOrEmpty(value).replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "") || "device";
670
660
  const lineActionData = (action, device) => `line.action=${encodeURIComponent(action)}&line.device=${encodeURIComponent(device)}`;
@@ -1,7 +1,7 @@
1
1
  import { i as resolveLineAccount, n as normalizeAccountId, r as resolveDefaultLineAccountId, t as listLineAccountIds } from "./accounts-BBEFMYbY.js";
2
- import { _ as LineChannelConfigSchema, c as createDeviceControlCard, d as resolveExactLineGroupConfigKey, f as resolveLineGroupConfigEntry, g as setLineRuntime, l as createMediaPlayerCard, m as resolveLineGroupsConfig, p as resolveLineGroupLookupIds, s as createAppleTvRemoteCard, v as LineConfigSchema } from "./rich-messages-DY1AGKAJ.js";
2
+ import { _ as LineChannelConfigSchema, c as createDeviceControlCard, d as resolveExactLineGroupConfigKey, f as resolveLineGroupConfigEntry, g as setLineRuntime, l as createMediaPlayerCard, m as resolveLineGroupsConfig, p as resolveLineGroupLookupIds, s as createAppleTvRemoteCard, v as LineConfigSchema } from "./rich-messages-HS8pNeOa.js";
3
3
  import { C as toFlexMessage, D as createVideoMessage, E as createImageMessage, T as createAudioMessage, a as probeLineBot, c as createAgendaCard, d as createActionCard, f as createImageCard, g as messageAction, h as datetimePickerAction, l as createEventCard, m as createListCard, o as resolveLineChannelAccessToken, p as createInfoCard, u as createReceiptCard, x as uriAction, y as postbackAction } from "./send-retry-ChpfJ-LM.js";
4
- import { a as validateLineSignature, c as normalizeAllowFrom, i as parseLineWebhookBody, n as createLineNodeWebhookHandler, o as downloadLineMedia, r as readLineWebhookRequestBody, s as firstDefined, t as monitorLineProvider } from "./monitor-D0fHFXCi.js";
4
+ import { a as validateLineSignature, c as normalizeAllowFrom, i as parseLineWebhookBody, n as createLineNodeWebhookHandler, o as downloadLineMedia, r as readLineWebhookRequestBody, s as firstDefined, t as monitorLineProvider } from "./monitor-Bp2VIzkG.js";
5
5
  import { a as stripMarkdown, c as createCarouselColumn, i as processLineMessage, l as createConfirmTemplate, n as convertTableToFlexBubble, o as buildTemplateMessageFromPayload, r as hasMarkdownToConvert, s as createButtonTemplate, t as convertCodeBlockToFlexBubble, u as createTemplateCarousel } from "./markdown-to-line-B-sj-7II.js";
6
6
  import { _ as showLoadingAnimation, c as pushFlexMessage, d as pushMessageLine, f as pushMessagesLine, g as sendMessageLine, h as replyMessageLine, i as createTextMessageWithQuickReplies, l as pushImageMessage, m as pushTextMessageWithQuickReplies, n as createLocationMessage, o as getUserDisplayName, p as pushTemplateMessage, r as createQuickReplyItems, s as getUserProfile, t as createFlexMessage, u as pushLocationMessage } from "./send-CQQxpxPp.js";
7
7
  import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
package/dist/setup-api.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as lineSetupAdapter, t as lineSetupWizard } from "./setup-surface-CDlgkTKi.js";
1
+ import { n as lineSetupAdapter, t as lineSetupWizard } from "./setup-surface-DiXO4x5f.js";
2
2
  export { lineSetupAdapter, lineSetupWizard };
@@ -26,7 +26,15 @@ function isLineConfigured(cfg, accountId) {
26
26
  accountId
27
27
  }));
28
28
  }
29
+ const accountCredentialKeys = [
30
+ "channelAccessToken",
31
+ "channelSecret",
32
+ "tokenFile",
33
+ "secretFile"
34
+ ];
29
35
  const lineSetupAdapter = {
36
+ singleAccountKeysToMove: accountCredentialKeys,
37
+ namedAccountPromotionKeys: accountCredentialKeys,
30
38
  resolveAccountId: ({ accountId }) => normalizeAccountId(accountId),
31
39
  applyAccountName: ({ cfg, accountId, name }) => patchLineAccountConfig({
32
40
  cfg,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Returns true if the value is a json pointer
3
- * @specification
4
- * @source ajv-formats
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc6901
4
+ * @source https://github.com/ajv-validator/ajv-formats
5
5
  */
6
6
  export declare function IsJsonPointer(value: string): boolean;
@@ -1,8 +1,8 @@
1
1
  const JsonPointer = /^(?:\/(?:[^~/]|~0|~1)*)*$/;
2
2
  /**
3
3
  * Returns true if the value is a json pointer
4
- * @specification
5
- * @source ajv-formats
4
+ * @specification https://datatracker.ietf.org/doc/html/rfc6901
5
+ * @source https://github.com/ajv-validator/ajv-formats
6
6
  */
7
7
  export function IsJsonPointer(value) {
8
8
  return JsonPointer.test(value);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Returns true if the value is a json pointer uri fragment
3
- * @specification
4
- * @source ajv-formats
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc6901
4
+ * @source https://github.com/ajv-validator/ajv-formats
5
5
  */
6
6
  export declare function IsJsonPointerUriFragment(value: string): boolean;
@@ -1,8 +1,8 @@
1
1
  const JsonPointerUriFragment = /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;
2
2
  /**
3
3
  * Returns true if the value is a json pointer uri fragment
4
- * @specification
5
- * @source ajv-formats
4
+ * @specification https://datatracker.ietf.org/doc/html/rfc6901
5
+ * @source https://github.com/ajv-validator/ajv-formats
6
6
  */
7
7
  export function IsJsonPointerUriFragment(value) {
8
8
  return JsonPointerUriFragment.test(value);
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Returns true if the value is a relative json pointer
3
- * @specification
4
- * @source ajv-formats
3
+ * @specification https://datatracker.ietf.org/doc/html/rfc6901
4
+ * @source https://github.com/ajv-validator/ajv-formats
5
5
  */
6
6
  export declare function IsRelativeJsonPointer(value: string): boolean;
@@ -1,8 +1,8 @@
1
1
  const RelativeJsonPointer = /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;
2
2
  /**
3
3
  * Returns true if the value is a relative json pointer
4
- * @specification
5
- * @source ajv-formats
4
+ * @specification https://datatracker.ietf.org/doc/html/rfc6901
5
+ * @source https://github.com/ajv-validator/ajv-formats
6
6
  */
7
7
  export function IsRelativeJsonPointer(value) {
8
8
  return RelativeJsonPointer.test(value);
@@ -1,11 +1,12 @@
1
1
  // deno-lint-ignore-file ban-types no-explicit-any
2
2
  // deno-fmt-ignore-file
3
3
  import { Metrics } from './metrics.mjs';
4
+ import { Freeze } from './freeze.mjs';
4
5
  /**
5
6
  * Performs an Object assign using the Left and Right object types. We track this operation as it
6
7
  * creates a new GC handle per assignment.
7
8
  */
8
9
  export function Assign(left, right) {
9
10
  Metrics.assign += 1;
10
- return { ...left, ...right };
11
+ return Freeze({ ...left, ...right });
11
12
  }
@@ -1,7 +1,7 @@
1
1
  // deno-lint-ignore-file no-explicit-any
2
- // deno-fmt-ignore-file
3
2
  import { Settings } from '../settings/index.mjs';
4
3
  import { Metrics } from './metrics.mjs';
4
+ import { Freeze } from './freeze.mjs';
5
5
  function MergeHidden(left, right) {
6
6
  for (const key of Object.keys(right)) {
7
7
  Object.defineProperty(left, key, {
@@ -23,8 +23,7 @@ function Merge(left, right) {
23
23
  */
24
24
  export function Create(hidden, enumerable, options = {}) {
25
25
  Metrics.create += 1;
26
- const settings = Settings.Get();
27
26
  const withOptions = Merge(enumerable, options);
28
- const withHidden = settings.enumerableKind ? Merge(withOptions, hidden) : MergeHidden(withOptions, hidden);
29
- return settings.immutableTypes ? Object.freeze(withHidden) : withHidden;
27
+ const withHidden = Settings.Get().enumerableKind ? Merge(withOptions, hidden) : MergeHidden(withOptions, hidden);
28
+ return Freeze(withHidden);
30
29
  }
@@ -1,7 +1,7 @@
1
1
  // deno-lint-ignore-file no-explicit-any
2
- // deno-fmt-ignore-file
3
2
  import { Guard } from '../../guard/index.mjs';
4
3
  import { Metrics } from './metrics.mjs';
4
+ import { Freeze } from './freeze.mjs';
5
5
  import { Clone } from './clone.mjs';
6
6
  /** Discards multiple property keys from the given object value */
7
7
  export function Discard(value, propertyKeys) {
@@ -14,5 +14,5 @@ export function Discard(value, propertyKeys) {
14
14
  descriptor.value = Clone(descriptor.value);
15
15
  Object.defineProperty(result, key, descriptor);
16
16
  }
17
- return result;
17
+ return Freeze(result);
18
18
  }
@@ -0,0 +1,4 @@
1
+ type ObjectLike = Record<PropertyKey, any>;
2
+ /** Conditionally freezes the value if `immutableTypes` is true, otherwise no action. */
3
+ export declare function Freeze(value: ObjectLike): ObjectLike;
4
+ export {};
@@ -0,0 +1,6 @@
1
+ // deno-lint-ignore-file no-explicit-any
2
+ import { Settings } from '../settings/index.mjs';
3
+ /** Conditionally freezes the value if `immutableTypes` is true, otherwise no action. */
4
+ export function Freeze(value) {
5
+ return Settings.Get().immutableTypes ? Object.freeze(value) : value;
6
+ }
@@ -1,6 +1,7 @@
1
- // deno-fmt-ignore-file
1
+ // deno-lint-ignore-file no-explicit-any
2
2
  import { Settings } from '../settings/index.mjs';
3
3
  import { Metrics } from './metrics.mjs';
4
+ import { Freeze } from './freeze.mjs';
4
5
  import { Clone } from './clone.mjs';
5
6
  /**
6
7
  * Updates a value with new properties while preserving property enumerability. Use this function to modify
@@ -28,5 +29,5 @@ export function Update(current, hidden, enumerable) {
28
29
  value: enumerable[key]
29
30
  });
30
31
  }
31
- return result;
32
+ return Freeze(result);
32
33
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "typebox",
3
3
  "description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
4
- "version": "1.3.17",
4
+ "version": "1.3.18",
5
5
  "keywords": [
6
6
  "typescript",
7
7
  "jsonschema"
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "id": "line",
3
3
  "doctorContract": {
4
- "stateMigrations": true
4
+ "stateMigrations": [
5
+ {
6
+ "id": "line-pre-drain-spool-rows"
7
+ }
8
+ ]
5
9
  },
6
10
  "name": "LINE",
7
11
  "description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
8
- "icon": "https://cdn.simpleicons.org/line",
9
12
  "activation": {
10
13
  "onStartup": false
11
14
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/line",
3
- "version": "2026.9.1",
3
+ "version": "2026.9.3",
4
4
  "description": "OpenClaw LINE channel plugin for LINE Bot API chats.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,11 +9,11 @@
9
9
  "type": "module",
10
10
  "dependencies": {
11
11
  "@line/bot-sdk": "11.2.0",
12
- "typebox": "1.3.17",
12
+ "typebox": "1.3.18",
13
13
  "zod": "4.4.3"
14
14
  },
15
15
  "peerDependencies": {
16
- "openclaw": ">=2026.9.1"
16
+ "openclaw": ">=2026.9.3"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "openclaw": {
@@ -25,6 +25,9 @@
25
25
  "./index.ts"
26
26
  ],
27
27
  "setupEntry": "./dist/setup-entry.js",
28
+ "setupFeatures": {
29
+ "configPromotion": true
30
+ },
28
31
  "channel": {
29
32
  "id": "line",
30
33
  "configuredState": {
@@ -112,10 +115,10 @@
112
115
  "minHostVersion": ">=2026.4.10"
113
116
  },
114
117
  "compat": {
115
- "pluginApi": ">=2026.9.1"
118
+ "pluginApi": ">=2026.9.3"
116
119
  },
117
120
  "build": {
118
- "openclawVersion": "2026.9.1"
121
+ "openclawVersion": "2026.9.3"
119
122
  },
120
123
  "release": {
121
124
  "publishToClawHub": true,
@@ -1,2 +0,0 @@
1
- import { t as monitorLineProvider } from "./monitor-D0fHFXCi.js";
2
- export { monitorLineProvider };