Skip to content

Commit 0d7d1aa

Browse files
committed
refactor: trim matrix helper exports
1 parent 8f16079 commit 0d7d1aa

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎extensions/matrix/src/approval-reactions.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ const MATRIX_APPROVAL_REACTION_ORDER = [
2121
"deny",
2222
] as const satisfies readonly ExecApprovalReplyDecision[];
2323

24-
export type MatrixApprovalReactionBinding = {
24+
type MatrixApprovalReactionBinding = {
2525
decision: ExecApprovalReplyDecision;
2626
emoji: string;
2727
label: string;
2828
};
2929

30-
export type MatrixApprovalReactionResolution = {
30+
type MatrixApprovalReactionResolution = {
3131
approvalId: string;
3232
decision: ExecApprovalReplyDecision;
3333
};
@@ -71,7 +71,7 @@ export function buildMatrixApprovalReactionHint(
7171
return `React here: ${bindings.map((binding) => `${binding.emoji} ${binding.label}`).join(", ")}`;
7272
}
7373

74-
export function resolveMatrixApprovalReactionDecision(
74+
function resolveMatrixApprovalReactionDecision(
7575
reactionKey: string,
7676
allowedDecisions: readonly ExecApprovalReplyDecision[],
7777
): ExecApprovalReplyDecision | null {

‎extensions/matrix/src/migration-config.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ import {
1818
} from "./matrix/client/env-auth.js";
1919
import { resolveMatrixAccountStorageRoot, resolveMatrixCredentialsPath } from "./storage-paths.js";
2020

21-
export type MatrixStoredCredentials = {
21+
type MatrixStoredCredentials = {
2222
homeserver: string;
2323
userId: string;
2424
accessToken: string;
2525
deviceId?: string;
2626
};
2727

28-
export type MatrixMigrationAccountTarget = {
28+
type MatrixMigrationAccountTarget = {
2929
accountId: string;
3030
homeserver: string;
3131
userId: string;
@@ -34,7 +34,7 @@ export type MatrixMigrationAccountTarget = {
3434
storedDeviceId: string | null;
3535
};
3636

37-
export type MatrixLegacyFlatStoreTarget = MatrixMigrationAccountTarget & {
37+
type MatrixLegacyFlatStoreTarget = MatrixMigrationAccountTarget & {
3838
selectionNote?: string;
3939
};
4040

@@ -64,7 +64,7 @@ function resolveMatrixFlatStoreSelectionNote(
6464
);
6565
}
6666

67-
export function resolveMatrixMigrationConfigFields(params: {
67+
function resolveMatrixMigrationConfigFields(params: {
6868
cfg: OpenClawConfig;
6969
env: NodeJS.ProcessEnv;
7070
accountId: string;
@@ -101,7 +101,7 @@ export function resolveMatrixMigrationConfigFields(params: {
101101
};
102102
}
103103

104-
export function loadStoredMatrixCredentials(
104+
function loadStoredMatrixCredentials(
105105
env: NodeJS.ProcessEnv,
106106
accountId: string,
107107
): MatrixStoredCredentials | null {
@@ -135,7 +135,7 @@ export function loadStoredMatrixCredentials(
135135
}
136136
}
137137

138-
export function credentialsMatchResolvedIdentity(
138+
function credentialsMatchResolvedIdentity(
139139
stored: MatrixStoredCredentials | null,
140140
identity: {
141141
homeserver: string;

0 commit comments

Comments
 (0)