refactor: trim auto reply type exports

This commit is contained in:
Peter Steinberger
2026-05-02 00:49:02 +01:00
parent 632b9f697e
commit 5b38005a4c
4 changed files with 6 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ export function buildFallbackClearedNotice(params: {
return `↪️ Model Fallback cleared: ${selected}`;
}
export type ResolvedFallbackTransition = {
type ResolvedFallbackTransition = {
selectedModelRef: string;
activeModelRef: string;
fallbackActive: boolean;

View File

@@ -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;

View File

@@ -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();

View File

@@ -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<string, unknown>;
export type UntrustedStructuredContextEntry = {
type UntrustedStructuredContextEntry = {
label: string;
source?: string;
type?: string;