refactor: trim brave and diffs helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 16:08:14 +01:00
parent 2e50f167ce
commit 992dc8de88
4 changed files with 7 additions and 7 deletions

View File

@@ -3,11 +3,11 @@ import {
normalizeOptionalString,
} from "openclaw/plugin-sdk/text-runtime";
export type BraveConfig = {
type BraveConfig = {
mode?: string;
};
export type BraveLlmContextResult = { url: string; title: string; snippets: string[] };
type BraveLlmContextResult = { url: string; title: string; snippets: string[] };
export type BraveLlmContextResponse = {
grounding: { generic?: BraveLlmContextResult[] };
sources?: { url?: string; hostname?: string; date?: string }[];

View File

@@ -91,7 +91,7 @@ export const DEFAULT_DIFFS_TOOL_DEFAULTS: DiffToolDefaults = {
mode: "both",
};
export type DiffsPluginSecurityConfig = {
type DiffsPluginSecurityConfig = {
allowRemoteViewer: boolean;
};

View File

@@ -15,7 +15,7 @@ export type DiffImageQualityPreset = (typeof DIFF_IMAGE_QUALITY_PRESETS)[number]
export type DiffOutputFormat = (typeof DIFF_OUTPUT_FORMATS)[number];
export type DiffRenderTarget = "viewer" | "image" | "both";
export type DiffPresentationDefaults = {
type DiffPresentationDefaults = {
fontFamily: string;
fontSize: number;
lineSpacing: number;
@@ -39,7 +39,7 @@ export type DiffToolDefaults = DiffPresentationDefaults &
mode: DiffMode;
};
export type BeforeAfterDiffInput = {
type BeforeAfterDiffInput = {
kind: "before_after";
before: string;
after: string;
@@ -48,7 +48,7 @@ export type BeforeAfterDiffInput = {
title?: string;
};
export type PatchDiffInput = {
type PatchDiffInput = {
kind: "patch";
patch: string;
title?: string;

View File

@@ -11,7 +11,7 @@ const VIEWER_RUNTIME_CANDIDATE_RELATIVE_PATHS = [
"../assets/viewer-runtime.js",
] as const;
export type ServedViewerAsset = {
type ServedViewerAsset = {
body: string | Buffer;
contentType: string;
};