refactor(ui): remove unused type exports · openclaw/openclaw@9d7fd31
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,9 +2,6 @@
|
2 | 2 | * Chat-related constants for the UI layer. |
3 | 3 | */ |
4 | 4 | |
5 | | -/** Character threshold for showing tool output inline vs collapsed */ |
6 | | -export const TOOL_INLINE_THRESHOLD = 80; |
7 | | - |
8 | 5 | /** Maximum lines to show in collapsed preview */ |
9 | 6 | export const PREVIEW_MAX_LINES = 2; |
10 | 7 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,6 @@ import type { GatewayBrowserClient, GatewayHelloOk } from "../gateway.ts";
|
3 | 3 | import { isPluginEnabledInConfigSnapshot } from "../plugin-activation.ts"; |
4 | 4 | import type { ConfigSnapshot } from "../types.ts"; |
5 | 5 | |
6 | | -export type DreamingPhaseId = "light" | "deep" | "rem"; |
7 | 6 | const DEFAULT_DREAM_DIARY_PATH = "DREAMS.md"; |
8 | 7 | const DEFAULT_DREAMING_PLUGIN_ID = "memory-core"; |
9 | 8 | const MEMORY_WIKI_PLUGIN_ID = "memory-wiki"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Control UI module implements push subscription behavior. |
2 | 2 | import type { GatewayBrowserClient } from "./gateway.ts"; |
3 | 3 | |
4 | | -export type WebPushState = { |
5 | | -supported: boolean; |
6 | | -permission: NotificationPermission | "unsupported"; |
7 | | -subscribed: boolean; |
8 | | -loading: boolean; |
9 | | -}; |
10 | | - |
11 | 4 | /** Timeout (ms) for service-worker readiness. */ |
12 | 5 | const SW_READY_TIMEOUT = 10_000; |
13 | 6 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -264,23 +264,6 @@ export type NostrStatus = {
|
264 | 264 | profile?: NostrProfile | null; |
265 | 265 | }; |
266 | 266 | |
267 | | -export type MSTeamsProbe = { |
268 | | -ok: boolean; |
269 | | -error?: string | null; |
270 | | -appId?: string | null; |
271 | | -}; |
272 | | - |
273 | | -export type MSTeamsStatus = { |
274 | | -configured: boolean; |
275 | | -running: boolean; |
276 | | -lastStartAt?: number | null; |
277 | | -lastStopAt?: number | null; |
278 | | -lastError?: string | null; |
279 | | -port?: number | null; |
280 | | -probe?: MSTeamsProbe | null; |
281 | | -lastProbeAt?: number | null; |
282 | | -}; |
283 | | - |
284 | 267 | export type ConfigSnapshotIssue = { |
285 | 268 | path: string; |
286 | 269 | message: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -669,8 +669,6 @@ export function resetChatViewState() {
|
669 | 669 | composerDraftMirrors.clear(); |
670 | 670 | } |
671 | 671 | |
672 | | -export const cleanupChatModuleState = resetChatViewState; |
673 | | - |
674 | 672 | function resolveChatHistoryRenderCap(messageCount: number): number { |
675 | 673 | return Math.min(Math.max(0, messageCount), CHAT_HISTORY_RENDER_LIMIT); |
676 | 674 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。