Skip to content

Commit 9d7fd31

Browse files
committed
refactor(ui): remove unused type exports
1 parent 9bb263c commit 9d7fd31

5 files changed

Lines changed: 0 additions & 30 deletions

File tree

ui/src/ui/chat/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
* Chat-related constants for the UI layer.
33
*/
44

5-
/** Character threshold for showing tool output inline vs collapsed */
6-
export const TOOL_INLINE_THRESHOLD = 80;
7-
85
/** Maximum lines to show in collapsed preview */
96
export const PREVIEW_MAX_LINES = 2;
107

ui/src/ui/controllers/dreaming.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { GatewayBrowserClient, GatewayHelloOk } from "../gateway.ts";
33
import { isPluginEnabledInConfigSnapshot } from "../plugin-activation.ts";
44
import type { ConfigSnapshot } from "../types.ts";
55

6-
export type DreamingPhaseId = "light" | "deep" | "rem";
76
const DEFAULT_DREAM_DIARY_PATH = "DREAMS.md";
87
const DEFAULT_DREAMING_PLUGIN_ID = "memory-core";
98
const MEMORY_WIKI_PLUGIN_ID = "memory-wiki";

ui/src/ui/push-subscription.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
// Control UI module implements push subscription behavior.
22
import type { GatewayBrowserClient } from "./gateway.ts";
33

4-
export type WebPushState = {
5-
supported: boolean;
6-
permission: NotificationPermission | "unsupported";
7-
subscribed: boolean;
8-
loading: boolean;
9-
};
10-
114
/** Timeout (ms) for service-worker readiness. */
125
const SW_READY_TIMEOUT = 10_000;
136

ui/src/ui/types.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -264,23 +264,6 @@ export type NostrStatus = {
264264
profile?: NostrProfile | null;
265265
};
266266

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-
284267
export type ConfigSnapshotIssue = {
285268
path: string;
286269
message: string;

ui/src/ui/views/chat.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,6 @@ export function resetChatViewState() {
669669
composerDraftMirrors.clear();
670670
}
671671

672-
export const cleanupChatModuleState = resetChatViewState;
673-
674672
function resolveChatHistoryRenderCap(messageCount: number): number {
675673
return Math.min(Math.max(0, messageCount), CHAT_HISTORY_RENDER_LIMIT);
676674
}

0 commit comments

Comments
 (0)