refactor: remove remaining dead code
This commit is contained in:
@@ -51,7 +51,7 @@ import type { CliAppInfo, McpPresetInfo, ToolProgressEvent, UIFileEdit, UIMessag
|
||||
|
||||
const ACTIVITY_SCROLL_NEAR_BOTTOM_PX = 24;
|
||||
|
||||
export { isAgentActivityMember, isReasoningOnlyAssistant };
|
||||
export { isAgentActivityMember };
|
||||
|
||||
interface ActivityCounts {
|
||||
reasoningSteps: number;
|
||||
|
||||
@@ -155,7 +155,7 @@ function FileEditRow({
|
||||
);
|
||||
}
|
||||
|
||||
export function hasVisibleDiffStats(edit: Pick<FileEditSummary, "added" | "deleted">): boolean {
|
||||
function hasVisibleDiffStats(edit: Pick<FileEditSummary, "added" | "deleted">): boolean {
|
||||
return edit.added > 0 || edit.deleted > 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { compactActivityPath, redactActivityText } from "./activity-text";
|
||||
export type GenericToolStatus = "running" | "done" | "error";
|
||||
export type ToolFamily = "content-search" | "file-search" | "list" | "read" | "memory" | "generic";
|
||||
|
||||
export interface ToolField {
|
||||
interface ToolField {
|
||||
key:
|
||||
| "query"
|
||||
| "pattern"
|
||||
|
||||
@@ -7,7 +7,7 @@ import { displayWebHost, formatCompactWebUrl, parseSafeActivityHttpUrl } from ".
|
||||
export type WebSearchStatus = "running" | "done" | "error";
|
||||
export type WebSearchTarget = "web" | "x";
|
||||
|
||||
export interface WebSearchSource {
|
||||
interface WebSearchSource {
|
||||
title: string;
|
||||
href: string;
|
||||
host: string;
|
||||
|
||||
@@ -26,13 +26,13 @@ export function userPromptAnchors(messages: UIMessage[]): PromptAnchor[] {
|
||||
});
|
||||
}
|
||||
|
||||
export function promptLabel(content: string, index: number): string {
|
||||
function promptLabel(content: string, index: number): string {
|
||||
const text = content.replace(/\s+/g, " ").trim();
|
||||
if (!text) return `Prompt ${index + 1}`;
|
||||
return truncatePreview(text, 80);
|
||||
}
|
||||
|
||||
export function promptPreview(content: string, index: number): string {
|
||||
function promptPreview(content: string, index: number): string {
|
||||
const text = compactPreview(content);
|
||||
if (!text) return `Prompt ${index + 1}`;
|
||||
return truncatePreview(text, 320);
|
||||
|
||||
Reference in New Issue
Block a user