@openviking/react 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1~0.js +506 -0
- package/dist/2~0.js +122 -0
- package/dist/{g~0.js → 30~0.js} +292 -167
- package/dist/client/index.d.ts +2 -1
- package/dist/client/paths.d.ts +64 -0
- package/dist/client/response.d.ts +31 -0
- package/dist/client/sse.d.ts +39 -0
- package/dist/client/stream.d.ts +26 -0
- package/dist/client/types.d.ts +104 -0
- package/dist/client.js +1 -239
- package/dist/components/agent-connect/style.css +2 -2
- package/dist/components/file-browser-entries/file-browser-entries-icons.d.ts +18 -0
- package/dist/components/file-browser-entries/file-browser-entries.d.ts +14 -0
- package/dist/components/file-browser-entries/index.d.ts +1 -0
- package/dist/components/file-browser-entries/style.css +155 -0
- package/dist/components/file-browser-entries/style.js +0 -0
- package/dist/components/file-browser-entries/types.d.ts +45 -0
- package/dist/components/file-browser-entries.js +1 -0
- package/dist/components/file-preview/file-preview-directory.d.ts +32 -0
- package/dist/components/file-preview/file-preview-header.d.ts +21 -3
- package/dist/components/file-preview/file-preview-panels.d.ts +41 -0
- package/dist/components/file-preview/file-preview-state.d.ts +10 -3
- package/dist/components/file-preview/file-preview.d.ts +2 -1
- package/dist/components/file-preview/level-selection.d.ts +25 -0
- package/dist/components/file-preview/style.css +76 -3
- package/dist/components/file-preview/types.d.ts +100 -1
- package/dist/components/file-preview/use-directory-level.d.ts +30 -0
- package/dist/components/file-preview/use-file-preview-actions-context.d.ts +6 -2
- package/dist/components/file-preview/use-file-preview-actions.d.ts +1 -1
- package/dist/components/file-preview.js +1 -1
- package/dist/components/file-tree/file-tree-info-tooltip.d.ts +7 -7
- package/dist/components/file-tree/file-tree-row-context.d.ts +0 -5
- package/dist/components/file-tree/file-tree-row-shared.d.ts +9 -2
- package/dist/components/file-tree/file-tree-tooltip-surface.d.ts +8 -8
- package/dist/components/file-tree/style.css +71 -34
- package/dist/components/file-tree/types.d.ts +20 -0
- package/dist/components/scope-switcher/style.css +2 -2
- package/dist/components/style.css +312 -47
- package/dist/components/tui/style.css +2 -2
- package/dist/components/viking-bot/style.css +2 -2
- package/dist/file-preview-viewer~0.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/l~0.js +1464 -25
- package/dist/modules/console/style.css +2 -2
- package/dist/modules/file-browser/file-browser-detail-icons.d.ts +10 -0
- package/dist/modules/file-browser/file-browser-detail.d.ts +33 -0
- package/dist/modules/file-browser/file-browser-empty.d.ts +3 -0
- package/dist/modules/file-browser/file-browser-failure.d.ts +22 -0
- package/dist/modules/file-browser/file-browser-icons.d.ts +18 -0
- package/dist/modules/file-browser/file-browser-labels.d.ts +28 -0
- package/dist/modules/file-browser/file-browser-layout.d.ts +27 -0
- package/dist/modules/file-browser/file-browser-toolbar.d.ts +18 -0
- package/dist/modules/file-browser/file-browser-tree-pane.d.ts +30 -0
- package/dist/modules/file-browser/file-browser.d.ts +14 -5
- package/dist/modules/file-browser/find-result.d.ts +24 -0
- package/dist/modules/file-browser/fs-directories.d.ts +33 -0
- package/dist/modules/file-browser/fs-file-kind.d.ts +19 -0
- package/dist/modules/file-browser/fs-icon.d.ts +17 -0
- package/dist/modules/file-browser/fs-model.d.ts +106 -0
- package/dist/modules/file-browser/fs-page.d.ts +16 -0
- package/dist/modules/file-browser/fs-path.d.ts +16 -0
- package/dist/modules/file-browser/fs-read-directory.d.ts +20 -0
- package/dist/modules/file-browser/fs-scope.d.ts +22 -0
- package/dist/modules/file-browser/fs-stat.d.ts +25 -0
- package/dist/modules/file-browser/index.d.ts +3 -1
- package/dist/modules/file-browser/style.css +4927 -35
- package/dist/modules/file-browser/tree-info-copy.d.ts +15 -0
- package/dist/modules/file-browser/tree-info-copy.zh-CN.d.ts +15 -0
- package/dist/modules/file-browser/types.d.ts +189 -44
- package/dist/modules/file-browser/use-container-width.d.ts +17 -0
- package/dist/modules/file-browser/use-file-browser.d.ts +49 -0
- package/dist/modules/file-browser/use-fs-preview.d.ts +51 -0
- package/dist/modules/file-browser/use-fs-search.d.ts +35 -0
- package/dist/modules/file-browser/use-fs-tree.d.ts +43 -0
- package/dist/modules/file-browser/use-request-scope.d.ts +39 -0
- package/dist/modules/file-browser.js +1 -1
- package/dist/modules/scope-cascade/style.css +2 -2
- package/dist/modules/style.css +4933 -41
- package/dist/n~0.js +178 -74
- package/dist/o~0.js +103 -0
- package/dist/shared/components/divider/divider.d.ts +18 -0
- package/dist/shared/components/divider/index.d.ts +1 -0
- package/dist/shared/components/divider/types.d.ts +35 -0
- package/dist/shared/components/overlay/types.d.ts +7 -0
- package/dist/shared/components/{tooltip/use-tooltip-position.d.ts → overlay/use-overlay-position.d.ts} +6 -6
- package/dist/shared/components/popover/index.d.ts +1 -0
- package/dist/shared/components/popover/popover.d.ts +23 -0
- package/dist/shared/components/popover/types.d.ts +50 -0
- package/dist/shared/components/resizable/clamp.d.ts +13 -0
- package/dist/shared/components/resizable/index.d.ts +2 -0
- package/dist/shared/components/resizable/resizable-handle.d.ts +25 -0
- package/dist/shared/components/resizable/types.d.ts +48 -0
- package/dist/shared/components/tooltip/types.d.ts +5 -5
- package/dist/style.css +5345 -188
- package/package.json +6 -1
- package/dist/components/file-tree/file-tree-tooltip.d.ts +0 -17
- package/dist/modules/file-browser/file-browser-toolbar-button.d.ts +0 -10
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { FileTreeEntryRow, FileTreeInfoLabels } from './types.js';
|
|
2
2
|
export interface FileTreeInfoCopy {
|
|
3
|
-
/** 行名称,作为浮层标题。Row name, used as the
|
|
3
|
+
/** 行名称,作为浮层标题。Row name, used as the popover title. */
|
|
4
4
|
title: string;
|
|
5
5
|
/** 说明,已按行内同样的优先级解析。Description, resolved with the same precedence as inline. */
|
|
6
6
|
description?: string;
|
|
7
|
-
/** 触发行为,只出现在浮层。Trigger copy,
|
|
7
|
+
/** 触发行为,只出现在浮层。Trigger copy, popover only. */
|
|
8
8
|
triggerBehavior?: string;
|
|
9
9
|
/** 完整路径。Full path. */
|
|
10
10
|
path: string;
|
|
11
|
-
/** 浮层里各行的字段名。Field names used inside the
|
|
11
|
+
/** 浮层里各行的字段名。Field names used inside the popover. */
|
|
12
12
|
fields: {
|
|
13
13
|
description: string;
|
|
14
14
|
triggerBehavior: string;
|
|
@@ -22,21 +22,21 @@ export interface FileTreeInfoCopy {
|
|
|
22
22
|
* (含显式空串),没给才用内置。调用方据此决定是否创建浮层外壳,避免留下一个
|
|
23
23
|
* 只有背景和内边距的空壳。
|
|
24
24
|
*
|
|
25
|
-
* Resolves what a directory
|
|
25
|
+
* Resolves what a directory popover should show, or `null` when there is nothing.
|
|
26
26
|
*
|
|
27
27
|
* The description resolves as `row.description` then built-in copy, matching the
|
|
28
28
|
* inline behaviour: a host value wins, including an explicit empty string, and
|
|
29
29
|
* the built-in copy applies only when absent. The caller uses this to decide
|
|
30
|
-
* whether to create the
|
|
30
|
+
* whether to create the surface, so no empty shell is left behind.
|
|
31
31
|
*/
|
|
32
32
|
export declare function resolveFileTreeInfoCopy(row: FileTreeEntryRow, infoLabels?: FileTreeInfoLabels): FileTreeInfoCopy | null;
|
|
33
33
|
/**
|
|
34
34
|
* 目录的默认浮层内容:说明、触发行为与路径。九类长期记忆的说明只出现在这里,
|
|
35
35
|
* 因此这个浮层是它们唯一的展示位置。
|
|
36
36
|
*
|
|
37
|
-
* The default
|
|
37
|
+
* The default popover content for a directory: description, trigger copy and
|
|
38
38
|
* path. The nine long-term-memory keys describe themselves here only, so this
|
|
39
|
-
*
|
|
39
|
+
* surface is the sole place their copy appears.
|
|
40
40
|
*/
|
|
41
41
|
export declare function FileTreeInfoTooltip({ copy }: {
|
|
42
42
|
copy: FileTreeInfoCopy;
|
|
@@ -16,7 +16,6 @@ export interface FileTreeRowContext {
|
|
|
16
16
|
/** 当前选中的行 id。Currently selected row id. */
|
|
17
17
|
selectedId?: string | null;
|
|
18
18
|
/** 当前展示浮层的行 id。Row whose tooltip is showing. */
|
|
19
|
-
tooltipRowId: string | null;
|
|
20
19
|
/** 为行追加属性。Extra attributes for a row. */
|
|
21
20
|
getRowAttributes?: (row: FileTreeRow) => HTMLAttributes<HTMLDivElement>;
|
|
22
21
|
/** 行尾指示器。Row-end indicator. */
|
|
@@ -39,8 +38,4 @@ export interface FileTreeRowContext {
|
|
|
39
38
|
onOpenRetentionSettings?: (uri: string) => void;
|
|
40
39
|
/** 行的键盘处理。Key handling for a row. */
|
|
41
40
|
onRowKeyDown: (event: KeyboardEvent<HTMLDivElement>, row: FileTreeEntryRow) => void;
|
|
42
|
-
/** 指针进入行。Pointer enters a row. */
|
|
43
|
-
onRowEnter: (rowId: string) => void;
|
|
44
|
-
/** 指针离开行。Pointer leaves a row. */
|
|
45
|
-
onRowLeave: () => void;
|
|
46
41
|
}
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
/** 每一级缩进与祖先连线的宽度。Indent per level, and the guide through it. */
|
|
2
|
-
export declare const INDENT =
|
|
2
|
+
export declare const INDENT = 16;
|
|
3
3
|
export declare const CHEVRON_SIZE = 16;
|
|
4
4
|
/** 行按深度缩进。Indents a row by its depth. */
|
|
5
5
|
export declare function rowStyle(depth: number): {
|
|
6
6
|
paddingLeft: number;
|
|
7
7
|
};
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* 每一级祖先画一条竖线。线的位置固定在缩进列的中点,与设计稿一致——上一级的
|
|
10
|
+
* 竖线穿过本行时正好落在自己缩进列的中心。
|
|
11
|
+
*
|
|
12
|
+
* One vertical line per ancestor level. The line sits at the centre of its indent
|
|
13
|
+
* column, matching the design: an ancestor's guide crossing this row lands exactly
|
|
14
|
+
* in the middle of that column.
|
|
15
|
+
*/
|
|
9
16
|
export declare function Guides({ depth }: {
|
|
10
17
|
depth: number;
|
|
11
18
|
}): import("react").JSX.Element;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { FileTreeEntryRow, FileTreeInfoLabels } from './types.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 行浮层的内容。宿主提供 `renderRowTooltip` 时只渲染它返回的内容;它返回 `null`
|
|
5
5
|
* 表示这一行不显示浮层,不回退到内置内容。
|
|
6
6
|
*
|
|
7
|
-
* 宿主没有提供时,用按 `uri`
|
|
7
|
+
* 宿主没有提供时,用按 `uri` 解析的内置内容。先解析内容、再决定是否渲染,
|
|
8
8
|
* 因此没有可显示内容时不会留下一个只有背景和内边距的空壳。
|
|
9
9
|
*
|
|
10
|
-
* The
|
|
11
|
-
* its result renders; returning `null` hides the
|
|
10
|
+
* The content of a row surface. When the host supplies `renderRowTooltip`, only
|
|
11
|
+
* its result renders; returning `null` hides the surface for that row and does
|
|
12
12
|
* not fall back to the built-in content.
|
|
13
13
|
*
|
|
14
|
-
* When the host supplies none, the built-in
|
|
15
|
-
* renders. The content is resolved before
|
|
14
|
+
* When the host supplies none, the built-in content resolved from the row `uri`
|
|
15
|
+
* renders. The content is resolved before anything is rendered, so with nothing
|
|
16
16
|
* to show no empty shell with just background and padding is left behind.
|
|
17
17
|
*/
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function FileTreeTooltipContent({ row, infoLabels, renderRowTooltip, }: {
|
|
19
19
|
row: FileTreeEntryRow;
|
|
20
20
|
infoLabels?: FileTreeInfoLabels;
|
|
21
21
|
renderRowTooltip?: (row: FileTreeEntryRow) => ReactNode;
|
|
22
|
-
}):
|
|
22
|
+
}): ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ov-agent-connect, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__interaction {
|
|
1
|
+
.ov-agent-connect, .ov-divider, .ov-file-browser, .ov-file-browser-entries, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__interaction {
|
|
2
2
|
--ov-ui-primary-default: #5252ff;
|
|
3
3
|
--ov-ui-primary-hover-default: #7075ff;
|
|
4
4
|
--ov-ui-primary-active-default: #3833d2;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--ov-ui-tooltip-text-default: #fff;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.dark .ov-agent-connect, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__interaction {
|
|
33
|
+
.dark .ov-agent-connect, .dark .ov-divider, .dark .ov-file-browser, .dark .ov-file-browser-entries, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__interaction {
|
|
34
34
|
--ov-ui-primary-default: #5f5fff;
|
|
35
35
|
--ov-ui-primary-hover-default: #7075ff;
|
|
36
36
|
--ov-ui-primary-active-default: #4242ba;
|
|
@@ -79,13 +79,50 @@
|
|
|
79
79
|
--ov-ui-connect-notice-default: var(--ov-ui-text-2-default);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
.ov-popover {
|
|
83
|
+
--ov-ui-popover-bg: var(--ov-ui-color-bg-1, var(--ov-ui-bg-1-default, #fff));
|
|
84
|
+
--ov-ui-popover-text: var(--ov-ui-color-text-1, var(--ov-ui-text-1-default, #0b0b0f));
|
|
85
|
+
--ov-ui-popover-border: var(--ov-ui-color-border-2, var(--ov-ui-border-2-default, #e1e4f2));
|
|
86
|
+
z-index: 1000;
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
border: 1px solid var(--ov-ui-popover-border);
|
|
89
|
+
background: var(--ov-ui-popover-bg);
|
|
90
|
+
max-width: 320px;
|
|
91
|
+
color: var(--ov-ui-popover-text);
|
|
92
|
+
overflow-wrap: break-word;
|
|
93
|
+
border-radius: 8px;
|
|
94
|
+
padding: 12px;
|
|
95
|
+
font-family: inherit;
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
line-height: 20px;
|
|
98
|
+
animation: .12s ease-out ov-popover-enter;
|
|
99
|
+
position: fixed;
|
|
100
|
+
box-shadow: 0 15px 35px -2px #0000000d, 0 5px 15px #0000000d;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes ov-popover-enter {
|
|
104
|
+
from {
|
|
105
|
+
opacity: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
to {
|
|
109
|
+
opacity: 1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (prefers-reduced-motion: reduce) {
|
|
114
|
+
.ov-popover {
|
|
115
|
+
animation: none;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
82
119
|
.ov-file-tree {
|
|
83
120
|
--ov-ui-file-tree-row-height: 32px;
|
|
84
121
|
--ov-ui-file-tree-row-radius: 4px;
|
|
85
|
-
--ov-ui-file-tree-indent:
|
|
122
|
+
--ov-ui-file-tree-indent: 16px;
|
|
86
123
|
--ov-ui-file-tree-text: var(--ov-ui-color-text-1, var(--ov-ui-text-1-default, #0b0b0f));
|
|
87
124
|
--ov-ui-file-tree-text-muted: var(--ov-ui-color-text-3, var(--ov-ui-text-3-default, #6e718c));
|
|
88
|
-
--ov-ui-file-tree-icon: var(--ov-ui-color-text-
|
|
125
|
+
--ov-ui-file-tree-icon: var(--ov-ui-color-text-3, var(--ov-ui-text-3-default, #6e718c));
|
|
89
126
|
--ov-ui-file-tree-row-hover: var(--ov-ui-color-bg-5, var(--ov-ui-bg-5-default, #f1f2f9));
|
|
90
127
|
--ov-ui-file-tree-row-selected: var(--ov-ui-color-bg-4, var(--ov-ui-bg-4-default, #f6f7fa));
|
|
91
128
|
--ov-ui-file-tree-guide: var(--ov-ui-color-border-2, var(--ov-ui-border-2-default, #e1e4f2));
|
|
@@ -117,20 +154,24 @@
|
|
|
117
154
|
|
|
118
155
|
.ov-file-tree__rows {
|
|
119
156
|
flex-direction: column;
|
|
157
|
+
width: max-content;
|
|
158
|
+
min-width: 100%;
|
|
120
159
|
display: flex;
|
|
121
160
|
}
|
|
122
161
|
|
|
123
162
|
.ov-file-tree__row, .ov-file-tree__state-row {
|
|
124
163
|
box-sizing: border-box;
|
|
164
|
+
width: max-content;
|
|
165
|
+
min-width: 100%;
|
|
125
166
|
height: var(--ov-ui-file-tree-row-height);
|
|
126
167
|
border-radius: var(--ov-ui-file-tree-row-radius);
|
|
127
|
-
cursor:
|
|
168
|
+
cursor: pointer;
|
|
128
169
|
-webkit-user-select: none;
|
|
129
170
|
user-select: none;
|
|
130
171
|
outline: none;
|
|
131
172
|
align-items: center;
|
|
132
|
-
gap:
|
|
133
|
-
padding-right:
|
|
173
|
+
gap: 2px;
|
|
174
|
+
padding-right: 4px;
|
|
134
175
|
display: flex;
|
|
135
176
|
position: relative;
|
|
136
177
|
}
|
|
@@ -236,25 +277,26 @@
|
|
|
236
277
|
}
|
|
237
278
|
|
|
238
279
|
.ov-file-tree__label-group {
|
|
239
|
-
flex:
|
|
280
|
+
flex: none;
|
|
240
281
|
align-items: center;
|
|
241
282
|
gap: 8px;
|
|
242
|
-
min-width: 0;
|
|
243
283
|
display: flex;
|
|
244
|
-
overflow: hidden;
|
|
245
284
|
}
|
|
246
285
|
|
|
247
286
|
.ov-file-tree__label {
|
|
248
|
-
text-overflow: ellipsis;
|
|
249
287
|
white-space: nowrap;
|
|
250
|
-
|
|
288
|
+
flex: none;
|
|
251
289
|
}
|
|
252
290
|
|
|
253
291
|
.ov-file-tree__description {
|
|
292
|
+
max-width: 200px;
|
|
254
293
|
color: var(--ov-ui-file-tree-text-muted);
|
|
294
|
+
letter-spacing: .03px;
|
|
255
295
|
text-overflow: ellipsis;
|
|
256
296
|
white-space: nowrap;
|
|
257
|
-
|
|
297
|
+
flex: none;
|
|
298
|
+
font-size: 10px;
|
|
299
|
+
line-height: 20px;
|
|
258
300
|
overflow: hidden;
|
|
259
301
|
}
|
|
260
302
|
|
|
@@ -287,32 +329,18 @@
|
|
|
287
329
|
display: inline-flex;
|
|
288
330
|
}
|
|
289
331
|
|
|
290
|
-
.ov-file-tree__tooltip {
|
|
291
|
-
z-index: 1;
|
|
292
|
-
border-radius: var(--ov-ui-file-tree-row-radius);
|
|
293
|
-
background: var(--ov-ui-color-tooltip-bg, var(--ov-ui-tooltip-bg-default, #1f2329));
|
|
294
|
-
max-width: 320px;
|
|
295
|
-
color: var(--ov-ui-color-tooltip-text, var(--ov-ui-tooltip-text-default, #fff));
|
|
296
|
-
pointer-events: none;
|
|
297
|
-
padding: 6px 8px;
|
|
298
|
-
font-size: 12px;
|
|
299
|
-
line-height: 18px;
|
|
300
|
-
position: absolute;
|
|
301
|
-
top: calc(100% + 4px);
|
|
302
|
-
left: 0;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
332
|
.ov-file-tree__info {
|
|
306
333
|
flex-direction: column;
|
|
307
|
-
gap:
|
|
334
|
+
gap: 8px;
|
|
308
335
|
display: flex;
|
|
309
336
|
}
|
|
310
337
|
|
|
311
338
|
.ov-file-tree__info-title {
|
|
339
|
+
color: var(--ov-ui-file-tree-text);
|
|
312
340
|
word-break: break-all;
|
|
313
341
|
font-size: 13px;
|
|
314
342
|
font-weight: 500;
|
|
315
|
-
line-height:
|
|
343
|
+
line-height: 22px;
|
|
316
344
|
}
|
|
317
345
|
|
|
318
346
|
.ov-file-tree__info-row {
|
|
@@ -322,19 +350,20 @@
|
|
|
322
350
|
}
|
|
323
351
|
|
|
324
352
|
.ov-file-tree__info-label {
|
|
325
|
-
|
|
353
|
+
color: var(--ov-ui-file-tree-text-muted);
|
|
326
354
|
flex: none;
|
|
327
355
|
}
|
|
328
356
|
|
|
329
357
|
.ov-file-tree__info-value {
|
|
330
|
-
word-break: break-word;
|
|
331
358
|
min-width: 0;
|
|
359
|
+
color: var(--ov-ui-file-tree-text);
|
|
360
|
+
word-break: break-word;
|
|
332
361
|
}
|
|
333
362
|
|
|
334
363
|
.ov-file-tree__info-path {
|
|
335
|
-
opacity: .8;
|
|
336
|
-
word-break: break-all;
|
|
337
364
|
min-width: 0;
|
|
365
|
+
color: var(--ov-ui-file-tree-text-muted);
|
|
366
|
+
word-break: break-all;
|
|
338
367
|
}
|
|
339
368
|
|
|
340
369
|
.ov-file-tree__state-row {
|
|
@@ -408,5 +437,13 @@
|
|
|
408
437
|
}
|
|
409
438
|
}
|
|
410
439
|
|
|
440
|
+
.ov-file-tree__file-type-icon {
|
|
441
|
+
color: var(--ov-file-tree-icon-light, var(--ov-ui-file-tree-icon));
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.dark .ov-file-tree__file-type-icon {
|
|
445
|
+
color: var(--ov-file-tree-icon-dark, var(--ov-ui-file-tree-icon));
|
|
446
|
+
}
|
|
447
|
+
|
|
411
448
|
|
|
412
449
|
|
|
@@ -300,6 +300,26 @@ export type FileTreeInfoKey =
|
|
|
300
300
|
* Agent capability root, `viking://agent`.
|
|
301
301
|
*/
|
|
302
302
|
| 'agentRoot'
|
|
303
|
+
/**
|
|
304
|
+
* Agent 的通信端点配置,`viking://agent/endpoints`。
|
|
305
|
+
* Agent communication endpoint configuration, `viking://agent/endpoints`.
|
|
306
|
+
*/
|
|
307
|
+
| 'agentEndpoints'
|
|
308
|
+
/**
|
|
309
|
+
* Agent 的支付能力配置,`viking://agent/payments`。
|
|
310
|
+
* Agent payment capability configuration, `viking://agent/payments`.
|
|
311
|
+
*/
|
|
312
|
+
| 'agentPayments'
|
|
313
|
+
/**
|
|
314
|
+
* Agent 的技能注册表,`viking://agent/skills`。
|
|
315
|
+
* Agent skill registry, `viking://agent/skills`.
|
|
316
|
+
*/
|
|
317
|
+
| 'agentSkills'
|
|
318
|
+
/**
|
|
319
|
+
* Agent 的工具配置,`viking://agent/tools`。
|
|
320
|
+
* Agent tool configuration, `viking://agent/tools`.
|
|
321
|
+
*/
|
|
322
|
+
| 'agentTools'
|
|
303
323
|
/**
|
|
304
324
|
* 记忆根目录,`viking://memory`。
|
|
305
325
|
* Memory root, `viking://memory`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.ov-agent-connect, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__interaction {
|
|
1
|
+
.ov-agent-connect, .ov-divider, .ov-file-browser, .ov-file-browser-entries, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__interaction {
|
|
2
2
|
--ov-ui-primary-default: #5252ff;
|
|
3
3
|
--ov-ui-primary-hover-default: #7075ff;
|
|
4
4
|
--ov-ui-primary-active-default: #3833d2;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
--ov-ui-tooltip-text-default: #fff;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.dark .ov-agent-connect, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__interaction {
|
|
33
|
+
.dark .ov-agent-connect, .dark .ov-divider, .dark .ov-file-browser, .dark .ov-file-browser-entries, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__interaction {
|
|
34
34
|
--ov-ui-primary-default: #5f5fff;
|
|
35
35
|
--ov-ui-primary-hover-default: #7075ff;
|
|
36
36
|
--ov-ui-primary-active-default: #4242ba;
|