mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
refactor: trim brave and diffs helper exports
This commit is contained in:
@@ -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 }[];
|
||||
|
||||
@@ -91,7 +91,7 @@ export const DEFAULT_DIFFS_TOOL_DEFAULTS: DiffToolDefaults = {
|
||||
mode: "both",
|
||||
};
|
||||
|
||||
export type DiffsPluginSecurityConfig = {
|
||||
type DiffsPluginSecurityConfig = {
|
||||
allowRemoteViewer: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user