refactor: trim auto reply type exports · openclaw/openclaw@5b38005
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -116,7 +116,7 @@ export function buildFallbackClearedNotice(params: {
|
116 | 116 | return `↪️ Model Fallback cleared: ${selected}`; |
117 | 117 | } |
118 | 118 | |
119 | | -export type ResolvedFallbackTransition = { |
| 119 | +type ResolvedFallbackTransition = { |
120 | 120 | selectedModelRef: string; |
121 | 121 | activeModelRef: string; |
122 | 122 | fallbackActive: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,10 +11,10 @@ export const HEARTBEAT_TOOL_OUTCOMES = [
|
11 | 11 | "blocked", |
12 | 12 | "needs_attention", |
13 | 13 | ] as const; |
14 | | -export type HeartbeatToolOutcome = (typeof HEARTBEAT_TOOL_OUTCOMES)[number]; |
| 14 | +type HeartbeatToolOutcome = (typeof HEARTBEAT_TOOL_OUTCOMES)[number]; |
15 | 15 | |
16 | 16 | export const HEARTBEAT_TOOL_PRIORITIES = ["low", "normal", "high"] as const; |
17 | | -export type HeartbeatToolPriority = (typeof HEARTBEAT_TOOL_PRIORITIES)[number]; |
| 17 | +type HeartbeatToolPriority = (typeof HEARTBEAT_TOOL_PRIORITIES)[number]; |
18 | 18 | |
19 | 19 | export type HeartbeatToolResponse = { |
20 | 20 | outcome: HeartbeatToolOutcome; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -72,7 +72,7 @@ export function resolveHeartbeatPrompt(raw?: string): string {
|
72 | 72 | return trimmed || HEARTBEAT_PROMPT; |
73 | 73 | } |
74 | 74 | |
75 | | -export type StripHeartbeatMode = "heartbeat" | "message"; |
| 75 | +type StripHeartbeatMode = "heartbeat" | "message"; |
76 | 76 | |
77 | 77 | function stripTokenAtEdges(raw: string): { text: string; didStrip: boolean } { |
78 | 78 | let text = raw.trim(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ import type { ReplyThreadingPolicy } from "./types.js";
|
9 | 9 | /** Valid message channels for routing. */ |
10 | 10 | export type OriginatingChannelType = string & { readonly __originatingChannelBrand?: never }; |
11 | 11 | |
12 | | -export type StickerContextMetadata = { |
| 12 | +type StickerContextMetadata = { |
13 | 13 | cachedDescription?: string; |
14 | 14 | emoji?: string; |
15 | 15 | setName?: string; |
@@ -21,7 +21,7 @@ export type StickerContextMetadata = {
|
21 | 21 | isVideo?: boolean; |
22 | 22 | } & Record<string, unknown>; |
23 | 23 | |
24 | | -export type UntrustedStructuredContextEntry = { |
| 24 | +type UntrustedStructuredContextEntry = { |
25 | 25 | label: string; |
26 | 26 | source?: string; |
27 | 27 | type?: string; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。