mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
refactor: trim auto reply type exports
This commit is contained in:
@@ -116,7 +116,7 @@ export function buildFallbackClearedNotice(params: {
|
||||
return `↪️ Model Fallback cleared: ${selected}`;
|
||||
}
|
||||
|
||||
export type ResolvedFallbackTransition = {
|
||||
type ResolvedFallbackTransition = {
|
||||
selectedModelRef: string;
|
||||
activeModelRef: string;
|
||||
fallbackActive: boolean;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user