Skip to content

Commit 757af70

Browse files
committed
refactor: trim tlon helper exports
1 parent 0d7d1aa commit 757af70

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎extensions/tlon/src/config-schema.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { z } from "openclaw/plugin-sdk/zod";
44
const ShipSchema = z.string().min(1);
55
const ChannelNestSchema = z.string().min(1);
66

7-
export const TlonChannelRuleSchema = z.object({
7+
const TlonChannelRuleSchema = z.object({
88
mode: z.enum(["restricted", "open"]).optional(),
99
allowedShips: z.array(ShipSchema).optional(),
1010
});
@@ -39,7 +39,7 @@ const tlonCommonConfigFields = {
3939
ownerShip: ShipSchema.optional(), // Ship that receives approval requests and can approve/deny
4040
} satisfies z.ZodRawShape;
4141

42-
export const TlonAccountSchema = z.object({
42+
const TlonAccountSchema = z.object({
4343
...tlonCommonConfigFields,
4444
});
4545

‎extensions/tlon/src/settings.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export type TlonSettingsStore = {
5555
pendingApprovals?: PendingApproval[];
5656
};
5757

58-
export type TlonSettingsState = {
58+
type TlonSettingsState = {
5959
current: TlonSettingsStore;
6060
loaded: boolean;
6161
};
@@ -285,7 +285,7 @@ function applySettingsUpdate(
285285
return next;
286286
}
287287

288-
export type SettingsLogger = {
288+
type SettingsLogger = {
289289
log?: (msg: string) => void;
290290
error?: (msg: string) => void;
291291
};

‎extensions/tlon/src/setup-core.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function tlonChannelId() {
2323
return "tlon" as const;
2424
}
2525

26-
export type TlonSetupInput = ChannelSetupInput & TlonAccountFieldsInput;
26+
type TlonSetupInput = ChannelSetupInput & TlonAccountFieldsInput;
2727

2828
function isConfigured(account: TlonResolvedAccount): boolean {
2929
return Boolean(account.ship && account.url && account.code);

‎extensions/tlon/src/targets.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type TlonTarget =
1+
type TlonTarget =
22
| { kind: "dm"; ship: string }
33
| { kind: "group"; nest: string; hostShip: string; channelName: string };
44

0 commit comments

Comments
 (0)