Skip to content

Commit 6319275

Browse files
authored
refactor(line): localize internal declarations (#102037)
1 parent 35d5ea0 commit 6319275

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

extensions/line/src/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { messagingApi } from "@line/bot-sdk";
33
import { truncateUtf16Safe } from "openclaw/plugin-sdk/text-utility-runtime";
44

55
export type Action = messagingApi.Action;
6-
export const LINE_ACTION_LABEL_LIMIT = 20;
6+
const LINE_ACTION_LABEL_LIMIT = 20;
77
const LINE_ACTION_DATA_LIMIT = 300;
88

99
export function truncateLineActionLabel(label: string, limit = LINE_ACTION_LABEL_LIMIT): string {

extensions/line/src/auto-reply-delivery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export type LineAutoReplyDeps = {
4343
| "onReplyError"
4444
>;
4545

46-
export type LineAutoReplyDeliveryResult =
46+
type LineAutoReplyDeliveryResult =
4747
| { status: "delivered"; replyTokenUsed: boolean }
4848
| { status: "partial"; replyTokenUsed: boolean; error: Error };
4949

extensions/line/src/bot-handlers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function isDownloadableLineMessageType(
6666
return LINE_DOWNLOADABLE_MESSAGE_TYPES.has(messageType);
6767
}
6868

69-
export interface LineHandlerContext {
69+
interface LineHandlerContext {
7070
cfg: OpenClawConfig;
7171
account: ResolvedLineAccount;
7272
runtime: RuntimeEnv;
@@ -79,7 +79,7 @@ export interface LineHandlerContext {
7979

8080
const LINE_WEBHOOK_REPLAY_WINDOW_MS = 10 * 60 * 1000;
8181
const LINE_WEBHOOK_REPLAY_MAX_ENTRIES = 4096;
82-
export type LineWebhookReplayCache = ClaimableDedupe;
82+
type LineWebhookReplayCache = ClaimableDedupe;
8383

8484
function normalizeLineIngressEntry(value: string): string | null {
8585
return normalizeLineAllowEntry(value) || null;

extensions/line/src/monitor-durable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { resolveSendableOutboundReplyParts } from "openclaw/plugin-sdk/reply-pay
33
import type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime";
44
import type { LineChannelData } from "./types.js";
55

6-
export type LineDurableReplyOptions = {
6+
type LineDurableReplyOptions = {
77
to: string;
88
};
99

extensions/line/src/monitor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import type { LineChannelData, ResolvedLineAccount } from "./types.js";
4646
import { createLineNodeWebhookHandler, readLineWebhookRequestBody } from "./webhook-node.js";
4747
import { parseLineWebhookBody, validateLineSignature } from "./webhook-utils.js";
4848

49-
export interface MonitorLineProviderOptions {
49+
interface MonitorLineProviderOptions {
5050
channelAccessToken: string;
5151
channelSecret: string;
5252
accountId?: string;
@@ -57,7 +57,7 @@ export interface MonitorLineProviderOptions {
5757
webhookPath?: string;
5858
}
5959

60-
export interface LineProviderMonitor {
60+
interface LineProviderMonitor {
6161
account: ResolvedLineAccount;
6262
handleWebhook: (body: webhook.CallbackRequest) => Promise<void>;
6363
stop: () => void;

0 commit comments

Comments
 (0)