refactor: trim brave and diffs helper exports · openclaw/openclaw@992dc8d
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,11 +3,11 @@ import {
|
3 | 3 | normalizeOptionalString, |
4 | 4 | } from "openclaw/plugin-sdk/text-runtime"; |
5 | 5 | |
6 | | -export type BraveConfig = { |
| 6 | +type BraveConfig = { |
7 | 7 | mode?: string; |
8 | 8 | }; |
9 | 9 | |
10 | | -export type BraveLlmContextResult = { url: string; title: string; snippets: string[] }; |
| 10 | +type BraveLlmContextResult = { url: string; title: string; snippets: string[] }; |
11 | 11 | export type BraveLlmContextResponse = { |
12 | 12 | grounding: { generic?: BraveLlmContextResult[] }; |
13 | 13 | sources?: { url?: string; hostname?: string; date?: string }[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -91,7 +91,7 @@ export const DEFAULT_DIFFS_TOOL_DEFAULTS: DiffToolDefaults = {
|
91 | 91 | mode: "both", |
92 | 92 | }; |
93 | 93 | |
94 | | -export type DiffsPluginSecurityConfig = { |
| 94 | +type DiffsPluginSecurityConfig = { |
95 | 95 | allowRemoteViewer: boolean; |
96 | 96 | }; |
97 | 97 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -15,7 +15,7 @@ export type DiffImageQualityPreset = (typeof DIFF_IMAGE_QUALITY_PRESETS)[number]
|
15 | 15 | export type DiffOutputFormat = (typeof DIFF_OUTPUT_FORMATS)[number]; |
16 | 16 | export type DiffRenderTarget = "viewer" | "image" | "both"; |
17 | 17 | |
18 | | -export type DiffPresentationDefaults = { |
| 18 | +type DiffPresentationDefaults = { |
19 | 19 | fontFamily: string; |
20 | 20 | fontSize: number; |
21 | 21 | lineSpacing: number; |
@@ -39,7 +39,7 @@ export type DiffToolDefaults = DiffPresentationDefaults &
|
39 | 39 | mode: DiffMode; |
40 | 40 | }; |
41 | 41 | |
42 | | -export type BeforeAfterDiffInput = { |
| 42 | +type BeforeAfterDiffInput = { |
43 | 43 | kind: "before_after"; |
44 | 44 | before: string; |
45 | 45 | after: string; |
@@ -48,7 +48,7 @@ export type BeforeAfterDiffInput = {
|
48 | 48 | title?: string; |
49 | 49 | }; |
50 | 50 | |
51 | | -export type PatchDiffInput = { |
| 51 | +type PatchDiffInput = { |
52 | 52 | kind: "patch"; |
53 | 53 | patch: string; |
54 | 54 | title?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -11,7 +11,7 @@ const VIEWER_RUNTIME_CANDIDATE_RELATIVE_PATHS = [
|
11 | 11 | "../assets/viewer-runtime.js", |
12 | 12 | ] as const; |
13 | 13 | |
14 | | -export type ServedViewerAsset = { |
| 14 | +type ServedViewerAsset = { |
15 | 15 | body: string | Buffer; |
16 | 16 | contentType: string; |
17 | 17 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。