refactor(ui): trim private helper exports (#105663)

This commit is contained in:
Vincent Koc
2026-07-12 22:09:24 +02:00
committed by GitHub
parent bf642ef287
commit 1d0cc7e09c
3 changed files with 2 additions and 4 deletions

View File

@@ -5619,7 +5619,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
"ui/src/app/overlays.ts: ApplicationOverlaySnapshot",
"ui/src/app/settings.ts: isViteDevPage",
"ui/src/app/settings.ts: NAV_WIDTH_DEFAULT",
"ui/src/app/stale-chunk-reload.ts: reloadControlUiDocument",
"ui/src/app/stale-chunk-reload.ts: resetStaleChunkReloadStateForTest",
"ui/src/build-info.ts: deriveControlUiBuildId",
"ui/src/build-info.ts: normalizeControlUiBranch",
@@ -5630,7 +5629,6 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
"ui/src/components/agent-select.ts: AgentSelect",
"ui/src/components/browser/browser-annotation.ts: ANNOTATION_STROKE_COLOR",
"ui/src/components/browser/browser-annotation.ts: AnnotationPoint",
"ui/src/components/browser/browser-annotation.ts: annotationStrokeWidth",
"ui/src/components/browser/browser-annotation.ts: describeInspectedNode",
"ui/src/components/browser/browser-annotation.ts: strokeBoundingRegion",
"ui/src/components/browser/browser-client.ts: BrowserScreenshotCapture",

View File

@@ -38,7 +38,7 @@ export function isStaleChunkImportError(error: unknown): boolean {
);
}
export function reloadControlUiDocument(): void {
function reloadControlUiDocument(): void {
window.location.reload();
}

View File

@@ -150,7 +150,7 @@ export function buildAnnotationPrompt(params: {
export const ANNOTATION_STROKE_COLOR = "#e0442d";
export function annotationStrokeWidth(imageWidth: number): number {
function annotationStrokeWidth(imageWidth: number): number {
return Math.max(4, Math.round(imageWidth * 0.005));
}