From 5b38005a4ca4244f90f0305be510418b7125c2e6 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 2 May 2026 00:49:02 +0100 Subject: [PATCH] refactor: trim auto reply type exports --- src/auto-reply/fallback-state.ts | 2 +- src/auto-reply/heartbeat-tool-response.ts | 4 ++-- src/auto-reply/heartbeat.ts | 2 +- src/auto-reply/templating.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/auto-reply/fallback-state.ts b/src/auto-reply/fallback-state.ts index 53a7750463e..0140cc69f24 100644 --- a/src/auto-reply/fallback-state.ts +++ b/src/auto-reply/fallback-state.ts @@ -116,7 +116,7 @@ export function buildFallbackClearedNotice(params: { return `↪️ Model Fallback cleared: ${selected}`; } -export type ResolvedFallbackTransition = { +type ResolvedFallbackTransition = { selectedModelRef: string; activeModelRef: string; fallbackActive: boolean; diff --git a/src/auto-reply/heartbeat-tool-response.ts b/src/auto-reply/heartbeat-tool-response.ts index 3f28591b922..b6daad997f1 100644 --- a/src/auto-reply/heartbeat-tool-response.ts +++ b/src/auto-reply/heartbeat-tool-response.ts @@ -11,10 +11,10 @@ export const HEARTBEAT_TOOL_OUTCOMES = [ "blocked", "needs_attention", ] as const; -export type HeartbeatToolOutcome = (typeof HEARTBEAT_TOOL_OUTCOMES)[number]; +type HeartbeatToolOutcome = (typeof HEARTBEAT_TOOL_OUTCOMES)[number]; export const HEARTBEAT_TOOL_PRIORITIES = ["low", "normal", "high"] as const; -export type HeartbeatToolPriority = (typeof HEARTBEAT_TOOL_PRIORITIES)[number]; +type HeartbeatToolPriority = (typeof HEARTBEAT_TOOL_PRIORITIES)[number]; export type HeartbeatToolResponse = { outcome: HeartbeatToolOutcome; diff --git a/src/auto-reply/heartbeat.ts b/src/auto-reply/heartbeat.ts index 98fba1e22a0..f9227b314cd 100644 --- a/src/auto-reply/heartbeat.ts +++ b/src/auto-reply/heartbeat.ts @@ -72,7 +72,7 @@ export function resolveHeartbeatPrompt(raw?: string): string { return trimmed || HEARTBEAT_PROMPT; } -export type StripHeartbeatMode = "heartbeat" | "message"; +type StripHeartbeatMode = "heartbeat" | "message"; function stripTokenAtEdges(raw: string): { text: string; didStrip: boolean } { let text = raw.trim(); diff --git a/src/auto-reply/templating.ts b/src/auto-reply/templating.ts index 0c2f08bb0db..52eda5f6512 100644 --- a/src/auto-reply/templating.ts +++ b/src/auto-reply/templating.ts @@ -9,7 +9,7 @@ import type { ReplyThreadingPolicy } from "./types.js"; /** Valid message channels for routing. */ export type OriginatingChannelType = string & { readonly __originatingChannelBrand?: never }; -export type StickerContextMetadata = { +type StickerContextMetadata = { cachedDescription?: string; emoji?: string; setName?: string; @@ -21,7 +21,7 @@ export type StickerContextMetadata = { isVideo?: boolean; } & Record; -export type UntrustedStructuredContextEntry = { +type UntrustedStructuredContextEntry = { label: string; source?: string; type?: string;