@vibe-forge/client 0.11.2 → 1.0.0
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/cli.cjs +6 -11
- package/dist/assets/{arc-De_WjPJ3.js → arc-CbOXL0l9.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-C4aR2zTE.js → blockDiagram-c4efeb88-CqxINvsS.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-BZH3rq_m.js → c4Diagram-c83219d4-BKazU0hb.js} +1 -1
- package/dist/assets/channel-Dnopc5A6.js +1 -0
- package/dist/assets/{classDiagram-beda092f-BzJgBrIK.js → classDiagram-beda092f-fAFX5BpB.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-5ZtXcnT3.js → classDiagram-v2-2358418a-w1VkNGJj.js} +1 -1
- package/dist/assets/clone-sQthahUA.js +1 -0
- package/dist/assets/{createText-1719965b-DUVvEtmR.js → createText-1719965b-CEinakVP.js} +1 -1
- package/dist/assets/{cssMode-GoTNjuXX.js → cssMode-DPqRki4y.js} +1 -1
- package/dist/assets/{edges-96097737-Dd7m4Cvs.js → edges-96097737-Cb0F1_3K.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-DxqFlG_f.js → erDiagram-0228fc6a-C-N2fx-J.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-DU0C5kCI.js → flowDb-c6c81e3f-D1Xz_8Gf.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-Di1uDa_X.js → flowDiagram-50d868cf-DyPSZyAj.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-OazrdWQO.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-CwG8aty5.js → flowchart-elk-definition-6af322e1-Dr1DDXwE.js} +1 -1
- package/dist/assets/{freemarker2-j39cqTlI.js → freemarker2-C3DvPFaK.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-baO_lzL-.js → ganttDiagram-a2739b55-DmvY1GRj.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-COoHjYMf.js → gitGraphDiagram-82fe8481-CoXfPYYi.js} +1 -1
- package/dist/assets/{graph-KxESr4M5.js → graph-BkDQy7Qt.js} +1 -1
- package/dist/assets/{handlebars-BgjdZO8G.js → handlebars-BcTFdqjl.js} +1 -1
- package/dist/assets/{html-Ba7tYObe.js → html-Dg-O6XFr.js} +1 -1
- package/dist/assets/{htmlMode-Bztvbig1.js → htmlMode-B_wqYWvn.js} +1 -1
- package/dist/assets/{index-5325376f-BMTAx2mL.js → index-5325376f-kxPTR3_e.js} +1 -1
- package/dist/assets/index-o93dlo92.css +32 -0
- package/dist/assets/{index-Pm_kLJvG.js → index-wkhI4dr6.js} +350 -329
- package/dist/assets/{infoDiagram-8eee0895-CC74qbHY.js → infoDiagram-8eee0895-BEvqkwPI.js} +1 -1
- package/dist/assets/{javascript-C1e1cllX.js → javascript-DhlOH8_z.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-C4MyOdE6.js → journeyDiagram-c64418c1-gKtLYmmp.js} +1 -1
- package/dist/assets/{jsonMode-BC98AlvF.js → jsonMode-DxTbF9OD.js} +1 -1
- package/dist/assets/{layout-CxAyTlr7.js → layout-CDaZEk6E.js} +1 -1
- package/dist/assets/{line-DhaUfI71.js → line-DNRQu8iq.js} +1 -1
- package/dist/assets/{linear-MYukzldK.js → linear-Cph9Z6_j.js} +1 -1
- package/dist/assets/{liquid-DahfJEYl.js → liquid-ByZ6JgRG.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-BWDJcswW.js → lspLanguageFeatures-DzvhkgnM.js} +1 -1
- package/dist/assets/{mdx-BELlF_FD.js → mdx-D8RGHTl6.js} +1 -1
- package/dist/assets/{mermaid.core-BrQnSGSY.js → mermaid.core-BgcryF__.js} +4 -4
- package/dist/assets/{mindmap-definition-8da855dc-B0FoxTiy.js → mindmap-definition-8da855dc-WrxK0FcB.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-Ddr2cjSL.js → pieDiagram-a8764435-VsZBsiQy.js} +1 -1
- package/dist/assets/{python--C9if_AD.js → python-CXVtk_cg.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-BlEs7Mrl.js → quadrantDiagram-1e28029f-BVlgwOvU.js} +1 -1
- package/dist/assets/{razor-B9U9JxKn.js → razor-0tind7h2.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-kEFOAu2v.js → requirementDiagram-08caed73-CpPMPoYp.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-BBghez8I.js → sankeyDiagram-a04cb91d-Cm5nnRmc.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-CJqgzdUE.js → sequenceDiagram-c5b8d532-DpMlJvJB.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-BER4XEI6.js → stateDiagram-1ecb1508-DU1zc7vq.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-EBV2vSks.js → stateDiagram-v2-c2b004d7-D-0RgmAp.js} +1 -1
- package/dist/assets/{styles-b4e223ce-k0eswZsE.js → styles-b4e223ce-BSO-yNWV.js} +1 -1
- package/dist/assets/{styles-ca3715f6-Ckr7GA-0.js → styles-ca3715f6-CHnsn2Ro.js} +1 -1
- package/dist/assets/{styles-d45a18b0-C1bpSwV3.js → styles-d45a18b0-B-rVGjEq.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-CDtKpGvy.js → svgDrawCommon-b86b1483-CA3Pl89f.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-BeGR-vua.js → timeline-definition-faaaa080-BcihLR6s.js} +1 -1
- package/dist/assets/{tsMode-D_gJXIy3.js → tsMode-D9GGa5Ur.js} +1 -1
- package/dist/assets/{typescript-BoKcNXkN.js → typescript-BT9CK_EL.js} +1 -1
- package/dist/assets/{xml-DZvURlJ-.js → xml-DNO75J-T.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-DxfeLuYV.js → xychartDiagram-f5964ef8-DJTwe32X.js} +1 -1
- package/dist/assets/{yaml-CTC8PAGY.js → yaml-7CVzhiP2.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +13 -10
- package/src/api/git.ts +12 -0
- package/src/api/sessions.ts +131 -4
- package/src/api/types.ts +2 -1
- package/src/api.ts +13 -0
- package/src/components/ArchiveView.scss +143 -54
- package/src/components/ArchiveView.tsx +181 -167
- package/src/components/CodeBlock.scss +5 -0
- package/src/components/ConfigView.scss +142 -31
- package/src/components/ConfigView.tsx +161 -86
- package/src/components/MarkdownContent.tsx +7 -0
- package/src/components/NavRail.scss +248 -0
- package/src/components/NavRail.tsx +80 -107
- package/src/components/NavRailCompact.tsx +107 -0
- package/src/components/NavRailCompactMoreSheet.tsx +141 -0
- package/src/components/ShortcutTooltip.tsx +4 -2
- package/src/components/Sidebar.scss +51 -0
- package/src/components/Sidebar.tsx +43 -16
- package/src/components/automation-view/RuleFormPanel.scss +40 -13
- package/src/components/automation-view/RuleSidebar.scss +73 -47
- package/src/components/automation-view/RuleSidebar.tsx +9 -13
- package/src/components/automation-view/RunHistoryPanel.scss +141 -13
- package/src/components/automation-view/RunHistoryPanel.tsx +203 -161
- package/src/components/automation-view/TaskList.scss +44 -13
- package/src/components/automation-view/TriggerList.scss +46 -14
- package/src/components/automation-view/index.scss +82 -10
- package/src/components/automation-view/index.tsx +108 -55
- package/src/components/benchmark-view/BenchmarkCasePanel.scss +36 -16
- package/src/components/benchmark-view/BenchmarkSidebar.scss +44 -22
- package/src/components/benchmark-view/BenchmarkSidebar.tsx +0 -6
- package/src/components/benchmark-view/BenchmarkView.scss +63 -20
- package/src/components/benchmark-view/index.tsx +71 -34
- package/src/components/chat/AGENTS.md +14 -2
- package/src/components/chat/ChatComposerCard.scss +77 -0
- package/src/components/chat/ChatComposerCard.tsx +59 -0
- package/src/components/chat/ChatHeader.scss +187 -0
- package/src/components/chat/ChatHeader.tsx +209 -57
- package/src/components/chat/ChatHistoryView.tsx +279 -52
- package/src/components/chat/ChatTimelineView.scss +94 -1
- package/src/components/chat/ChatTimelineView.tsx +42 -0
- package/src/components/chat/CurrentTodoList.scss +210 -200
- package/src/components/chat/CurrentTodoList.tsx +116 -48
- package/src/components/chat/NewSessionGuide.scss +139 -1
- package/src/components/chat/NewSessionGuide.tsx +57 -100
- package/src/components/chat/NewSessionGuideCompactPanel.tsx +130 -0
- package/src/components/chat/NewSessionGuideGrid.tsx +141 -0
- package/src/components/chat/QueuedMessagesCard.scss +195 -0
- package/src/components/chat/QueuedMessagesCard.tsx +170 -0
- package/src/components/chat/git-controls/BranchSwitcherDropdown.tsx +61 -56
- package/src/components/chat/git-controls/BranchSwitcherResults.tsx +167 -0
- package/src/components/chat/git-controls/BranchTreeEntries.tsx +99 -0
- package/src/components/chat/git-controls/ChatGitControls.scss +437 -5
- package/src/components/chat/git-controls/ChatGitControls.tsx +136 -109
- package/src/components/chat/git-controls/DraftGitControls.tsx +91 -0
- package/src/components/chat/git-controls/GitOperationsDropdown.tsx +10 -2
- package/src/components/chat/git-controls/GitWorktreeDropdown.tsx +301 -28
- package/src/components/chat/git-controls/git-branch-tree.ts +148 -0
- package/src/components/chat/git-controls/use-chat-draft-git-controls.ts +168 -0
- package/src/components/chat/git-controls/use-chat-git-controls.ts +76 -3
- package/src/components/chat/messages/MessageContextMenu.tsx +3 -1
- package/src/components/chat/messages/MessageItem.scss +78 -4
- package/src/components/chat/messages/MessageItem.tsx +47 -3
- package/src/components/chat/sender/@components/adapter-select/AdapterSelectControl.scss +23 -0
- package/src/components/chat/sender/@components/reference-actions/ReferenceActionsControl.scss +17 -0
- package/src/components/chat/sender/@components/reference-actions/ReferencePermissionActionsPopover.tsx +4 -1
- package/src/components/chat/sender/@components/sender-attachments/SenderAttachments.scss +167 -30
- package/src/components/chat/sender/@components/sender-attachments/SenderAttachments.tsx +95 -23
- package/src/components/chat/sender/@components/sender-body/SenderBody.tsx +10 -0
- package/src/components/chat/sender/@components/sender-interaction-panel/SenderInteractionPanel.scss +161 -45
- package/src/components/chat/sender/@components/sender-interaction-panel/SenderInteractionPanel.tsx +310 -71
- package/src/components/chat/sender/@components/sender-monaco-editor/SenderMonacoEditor.tsx +18 -0
- package/src/components/chat/sender/@components/sender-monaco-editor/use-sender-monaco-editor.ts +86 -9
- package/src/components/chat/sender/@components/sender-monaco-editor/use-sender-monaco-theme.ts +52 -3
- package/src/components/chat/sender/@components/sender-submit-action/SenderSubmitAction.scss +110 -1
- package/src/components/chat/sender/@components/sender-submit-action/SenderSubmitAction.tsx +137 -17
- package/src/components/chat/sender/@components/sender-toolbar/SenderSelectBase.scss +21 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderSelectShared.scss +21 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderToolbar.scss +63 -0
- package/src/components/chat/sender/@components/sender-toolbar/SenderToolbar.tsx +12 -6
- package/src/components/chat/sender/@core/build-sender-controller-result.ts +6 -0
- package/src/components/chat/sender/@core/build-sender-toolbar.ts +25 -2
- package/src/components/chat/sender/@core/create-sender-toolbar-handlers.ts +9 -2
- package/src/components/chat/sender/@core/get-sender-runtime-state.ts +1 -1
- package/src/components/chat/sender/@core/interaction-request.ts +2 -2
- package/src/components/chat/sender/@core/sender-toolbar-bindings.ts +28 -4
- package/src/components/chat/sender/@hooks/use-model-select-browser.tsx +4 -2
- package/src/components/chat/sender/@hooks/use-sender-controller.ts +56 -11
- package/src/components/chat/sender/@hooks/use-sender-keydown.ts +64 -0
- package/src/components/chat/sender/@hooks/use-sender-shortcuts.ts +16 -1
- package/src/components/chat/sender/@hooks/use-sender-submit.ts +16 -8
- package/src/components/chat/sender/@types/sender-props.ts +20 -3
- package/src/components/chat/sender/@types/sender-toolbar-types.ts +12 -1
- package/src/components/chat/sender/Sender.scss +4 -1
- package/src/components/chat/sender/Sender.tsx +3 -12
- package/src/components/chat/session-timeline-panel/EventList.scss +88 -0
- package/src/components/chat/session-timeline-panel/EventList.tsx +99 -47
- package/src/components/chat/session-timeline-panel/gantt.ts +23 -7
- package/src/components/chat/session-timeline-panel/git-graph.ts +6 -1
- package/src/components/chat/session-timeline-panel/index.scss +14 -1
- package/src/components/chat/session-timeline-panel/index.tsx +86 -10
- package/src/components/chat/session-timeline-panel/types.ts +4 -0
- package/src/components/chat/status-bar/ChatStatusBar.scss +27 -0
- package/src/components/chat/status-bar/ChatStatusBar.tsx +39 -0
- package/src/components/chat/terminal/ChatTerminalView.tsx +6 -0
- package/src/components/chat/tools/core/ToolCallBox.scss +19 -0
- package/src/components/chat/tools/core/ToolGroup.scss +32 -0
- package/src/components/chat/tools/task/components/TaskToolCard.scss +59 -1
- package/src/components/config/ConfigEditors.scss +20 -6
- package/src/components/config/ConfigFieldRow.scss +57 -17
- package/src/components/config/ConfigSectionForm.scss +10 -4
- package/src/components/config/ConfigSectionPanel.tsx +18 -11
- package/src/components/config/configSchema.ts +1 -0
- package/src/components/config/record-editors/RecordEditors.scss +42 -9
- package/src/components/dock-panel/DockPanel.scss +6 -2
- package/src/components/dock-panel/DockPanel.tsx +12 -16
- package/src/components/knowledge-base/KnowledgeBaseView.scss +180 -6
- package/src/components/knowledge-base/KnowledgeBaseView.tsx +98 -26
- package/src/components/knowledge-base/components/ActionButton.scss +4 -0
- package/src/components/knowledge-base/components/EmptyState.scss +5 -8
- package/src/components/knowledge-base/components/EntitiesTab.tsx +8 -2
- package/src/components/knowledge-base/components/EntityItem.scss +10 -3
- package/src/components/knowledge-base/components/FilterBar.scss +13 -2
- package/src/components/knowledge-base/components/FlowsTab.tsx +8 -2
- package/src/components/knowledge-base/components/KnowledgeBaseHeader.scss +2 -23
- package/src/components/knowledge-base/components/KnowledgeBaseHeader.tsx +0 -5
- package/src/components/knowledge-base/components/KnowledgeList.scss +15 -6
- package/src/components/knowledge-base/components/LoadingState.scss +4 -0
- package/src/components/knowledge-base/components/RuleItem.scss +86 -0
- package/src/components/knowledge-base/components/RuleItem.tsx +2 -0
- package/src/components/knowledge-base/components/RulesTab.tsx +8 -2
- package/src/components/knowledge-base/components/SectionHeader.scss +3 -18
- package/src/components/knowledge-base/components/SectionHeader.tsx +3 -7
- package/src/components/knowledge-base/components/SkillsTab.tsx +8 -3
- package/src/components/knowledge-base/components/SpecItem.scss +16 -7
- package/src/components/layout/@hooks/use-mobile-sidebar-modal.ts +190 -0
- package/src/components/layout/AppShell.scss +106 -6
- package/src/components/layout/AppShell.tsx +118 -10
- package/src/components/layout/PageShell.scss +41 -0
- package/src/components/layout/PageShell.tsx +32 -0
- package/src/components/layout/mobile-sidebar-constants.ts +1 -0
- package/src/components/nav-rail-compact-config.ts +114 -0
- package/src/components/nav-rail-items.tsx +181 -0
- package/src/components/sidebar/SessionContextMenu.tsx +3 -1
- package/src/components/sidebar/SessionItem.scss +62 -0
- package/src/components/sidebar/SessionItem.tsx +97 -52
- package/src/components/sidebar/SessionList.tsx +6 -0
- package/src/components/sidebar/SidebarHeader.scss +49 -0
- package/src/components/sidebar/SidebarHeader.tsx +27 -5
- package/src/components/sidebar/SidebarHeaderBatchActions.tsx +8 -4
- package/src/components/sidebar/SidebarHeaderSearchActions.tsx +6 -3
- package/src/components/sidebar/SidebarUtilityFooter.tsx +69 -0
- package/src/components/workspace/ContextFilePicker.tsx +12 -4
- package/src/hooks/chat/chat-session-workspace-draft.ts +25 -0
- package/src/hooks/chat/session-view-cache.ts +4 -1
- package/src/hooks/chat/use-chat-adapter.ts +5 -1
- package/src/hooks/chat/use-chat-model-adapter-selection.tsx +5 -1
- package/src/hooks/chat/use-chat-scroll.ts +24 -7
- package/src/hooks/chat/use-chat-session-actions.ts +118 -6
- package/src/hooks/chat/use-chat-session-messages.ts +20 -1
- package/src/hooks/chat/use-chat-session.ts +2 -0
- package/src/hooks/use-responsive-layout.ts +115 -0
- package/src/main.tsx +8 -0
- package/src/resources/adapters.ts +15 -0
- package/src/resources/locales/en.json +84 -1
- package/src/resources/locales/zh.json +84 -1
- package/src/routes/ChatRoute.scss +152 -9
- package/src/routes/ChatRoute.tsx +31 -34
- package/src/store/index.ts +2 -0
- package/dist/assets/channel-BvERb8WU.js +0 -1
- package/dist/assets/clone-B9_0v-6Y.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-LpS8Kb00.js +0 -1
- package/dist/assets/index-C1oh0w9H.css +0 -32
- package/src/components/chat/ThinkingStatus.scss +0 -70
- package/src/components/chat/ThinkingStatus.tsx +0 -13
|
@@ -1,27 +1,13 @@
|
|
|
1
1
|
.benchmark-view {
|
|
2
2
|
// Sidebar container
|
|
3
3
|
&__sidebar {
|
|
4
|
-
width:
|
|
4
|
+
width: 100%;
|
|
5
5
|
height: 100%;
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
|
-
gap: 16px;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
padding: 24px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&__sidebar-header {
|
|
14
|
-
display: flex;
|
|
15
|
-
align-items: center;
|
|
16
8
|
gap: 8px;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
height: 32px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&__sidebar-title.ant-typography {
|
|
23
|
-
font-size: 18px;
|
|
24
|
-
margin: 0;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding: 10px 12px 12px;
|
|
25
11
|
}
|
|
26
12
|
|
|
27
13
|
&__sep.ant-divider {
|
|
@@ -40,6 +26,24 @@
|
|
|
40
26
|
align-items: center;
|
|
41
27
|
gap: 6px;
|
|
42
28
|
flex-shrink: 0;
|
|
29
|
+
|
|
30
|
+
.ant-btn {
|
|
31
|
+
width: 28px;
|
|
32
|
+
min-width: 28px;
|
|
33
|
+
height: 28px;
|
|
34
|
+
padding: 0;
|
|
35
|
+
border: none;
|
|
36
|
+
border-radius: 6px;
|
|
37
|
+
background: transparent;
|
|
38
|
+
color: var(--sub-text-color);
|
|
39
|
+
transition: background-color .2s ease, color .2s ease;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ant-btn:hover,
|
|
43
|
+
.ant-btn:focus-visible {
|
|
44
|
+
background: var(--nav-hover-bg, #f3f4f6);
|
|
45
|
+
color: var(--text-color);
|
|
46
|
+
}
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
&__search-icon {
|
|
@@ -47,11 +51,20 @@
|
|
|
47
51
|
color: var(--sub-text-color);
|
|
48
52
|
}
|
|
49
53
|
|
|
54
|
+
&__search .ant-input-affix-wrapper {
|
|
55
|
+
height: 30px;
|
|
56
|
+
border-radius: 6px;
|
|
57
|
+
background: var(--bg-color);
|
|
58
|
+
padding: 0 8px;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
}
|
|
61
|
+
|
|
50
62
|
// Tree
|
|
51
63
|
&__tree-shell {
|
|
52
64
|
flex: 1;
|
|
53
65
|
min-height: 0;
|
|
54
66
|
overflow: auto;
|
|
67
|
+
padding-right: 2px;
|
|
55
68
|
}
|
|
56
69
|
|
|
57
70
|
&__tree-shell .ant-tree {
|
|
@@ -107,21 +120,30 @@
|
|
|
107
120
|
display: flex;
|
|
108
121
|
align-items: center;
|
|
109
122
|
gap: 6px;
|
|
110
|
-
padding:
|
|
111
|
-
border
|
|
123
|
+
padding: 8px;
|
|
124
|
+
border: 1px solid var(--border-color);
|
|
125
|
+
border-radius: 8px;
|
|
112
126
|
min-width: 0;
|
|
113
|
-
|
|
127
|
+
background: var(--bg-color);
|
|
128
|
+
transition: background-color .15s, border-color .15s;
|
|
114
129
|
}
|
|
115
130
|
|
|
116
131
|
&__tree-category {
|
|
117
|
-
padding:
|
|
132
|
+
padding: 8px;
|
|
118
133
|
}
|
|
119
134
|
|
|
120
135
|
&__tree-shell .ant-tree-node-content-wrapper:hover &__tree-category,
|
|
121
136
|
&__tree-shell .ant-tree-node-content-wrapper:hover &__tree-case,
|
|
122
137
|
&__tree-shell .ant-tree-node-content-wrapper.ant-tree-node-selected
|
|
123
138
|
&__tree-case {
|
|
124
|
-
background: var(--
|
|
139
|
+
background: var(--sidebar-hover-bg, #e5e5e5);
|
|
140
|
+
border-color: var(--sidebar-hover-bg, #e5e5e5);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__tree-shell .ant-tree-node-content-wrapper.ant-tree-node-selected
|
|
144
|
+
&__tree-case {
|
|
145
|
+
border-color: var(--primary-color);
|
|
146
|
+
background: var(--primary-soft-bg);
|
|
125
147
|
}
|
|
126
148
|
|
|
127
149
|
&__tree-icon {
|
|
@@ -200,12 +200,6 @@ export function BenchmarkSidebar({
|
|
|
200
200
|
|
|
201
201
|
return (
|
|
202
202
|
<div className='benchmark-view__sidebar'>
|
|
203
|
-
<div className='benchmark-view__sidebar-header'>
|
|
204
|
-
<Typography.Title level={4} className='benchmark-view__sidebar-title'>
|
|
205
|
-
{t('benchmark.title')}
|
|
206
|
-
</Typography.Title>
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
203
|
<div className='benchmark-view__search-row'>
|
|
210
204
|
<Input
|
|
211
205
|
value={query}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
.benchmark-view {
|
|
2
|
+
&__body {
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
gap: 0;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__mobile-switcher-shell {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
2
12
|
display: flex;
|
|
3
13
|
height: 100%;
|
|
4
14
|
overflow: hidden;
|
|
@@ -7,18 +17,21 @@
|
|
|
7
17
|
display: flex;
|
|
8
18
|
flex-direction: column;
|
|
9
19
|
overflow: hidden;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
background: var(--border-color);
|
|
20
|
+
width: var(--subpage-secondary-panel-width);
|
|
21
|
+
min-width: var(--subpage-secondary-panel-width);
|
|
22
|
+
max-width: var(--subpage-secondary-panel-width);
|
|
23
|
+
background: var(--sub-bg-color);
|
|
15
24
|
}
|
|
16
25
|
|
|
17
26
|
&__right {
|
|
18
27
|
flex: 1;
|
|
19
28
|
min-width: 0;
|
|
20
29
|
overflow: hidden;
|
|
21
|
-
|
|
30
|
+
margin: var(--subpage-content-card-gap);
|
|
31
|
+
margin-left: 0;
|
|
32
|
+
padding: 10px 12px 12px;
|
|
33
|
+
border-radius: var(--subpage-content-card-radius);
|
|
34
|
+
background: var(--subpage-content-card-bg);
|
|
22
35
|
}
|
|
23
36
|
|
|
24
37
|
&__canvas {
|
|
@@ -43,24 +56,19 @@
|
|
|
43
56
|
|
|
44
57
|
@media (max-width: 1100px) {
|
|
45
58
|
.benchmark-view {
|
|
46
|
-
|
|
59
|
+
&__body {
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
}
|
|
47
62
|
|
|
48
63
|
&__left {
|
|
49
64
|
width: 100%;
|
|
50
65
|
min-width: 0;
|
|
51
|
-
max-height:
|
|
52
|
-
padding-right: 0;
|
|
53
|
-
padding: 16px 16px 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&__divider {
|
|
57
|
-
width: 100%;
|
|
58
|
-
height: 1px;
|
|
66
|
+
max-height: 320px;
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
&__right {
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
margin-top: 0;
|
|
71
|
+
margin-left: var(--subpage-content-card-gap);
|
|
64
72
|
}
|
|
65
73
|
}
|
|
66
74
|
}
|
|
@@ -68,11 +76,46 @@
|
|
|
68
76
|
@media (max-width: 720px) {
|
|
69
77
|
.benchmark-view {
|
|
70
78
|
&__right {
|
|
71
|
-
padding:
|
|
79
|
+
padding: 10px 12px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (max-width: 960px) {
|
|
85
|
+
.benchmark-view--compact {
|
|
86
|
+
.benchmark-view__mobile-switcher-shell {
|
|
87
|
+
display: block;
|
|
88
|
+
padding: 12px;
|
|
89
|
+
padding-bottom: 0;
|
|
72
90
|
}
|
|
73
91
|
|
|
74
|
-
|
|
75
|
-
|
|
92
|
+
.benchmark-view__mobile-switcher {
|
|
93
|
+
width: 100%;
|
|
94
|
+
|
|
95
|
+
.ant-segmented-group {
|
|
96
|
+
gap: 4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.ant-segmented-item {
|
|
100
|
+
min-height: 32px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.benchmark-view__left,
|
|
105
|
+
.benchmark-view__right {
|
|
106
|
+
width: auto;
|
|
107
|
+
min-width: 0;
|
|
108
|
+
max-width: none;
|
|
109
|
+
max-height: none;
|
|
110
|
+
margin: 12px;
|
|
111
|
+
margin-top: 12px;
|
|
112
|
+
border-radius: var(--subpage-content-card-radius);
|
|
113
|
+
background: var(--subpage-content-card-bg);
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.benchmark-view__right {
|
|
118
|
+
padding: 12px;
|
|
76
119
|
}
|
|
77
120
|
}
|
|
78
121
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './BenchmarkView.scss'
|
|
2
2
|
|
|
3
|
-
import { App } from 'antd'
|
|
3
|
+
import { App, Segmented } from 'antd'
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useState } from 'react'
|
|
5
5
|
import { useTranslation } from 'react-i18next'
|
|
6
6
|
import useSWR from 'swr'
|
|
@@ -13,6 +13,8 @@ import {
|
|
|
13
13
|
listBenchmarkCategories,
|
|
14
14
|
startBenchmarkRun
|
|
15
15
|
} from '#~/api.js'
|
|
16
|
+
import { PageShell } from '#~/components/layout/PageShell'
|
|
17
|
+
import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
|
|
16
18
|
import { useQueryParams } from '#~/hooks/useQueryParams.js'
|
|
17
19
|
import type { BenchmarkCase } from '@vibe-forge/types'
|
|
18
20
|
|
|
@@ -24,12 +26,15 @@ import { isTerminalRun } from './utils.js'
|
|
|
24
26
|
export function BenchmarkView() {
|
|
25
27
|
const { t } = useTranslation()
|
|
26
28
|
const { message } = App.useApp()
|
|
29
|
+
const { isCompactLayout, isTouchInteraction } = useResponsiveLayout()
|
|
27
30
|
|
|
28
31
|
// State
|
|
29
32
|
const [activeRunId, setActiveRunId] = useState('')
|
|
30
33
|
const [treeQuery, setTreeQuery] = useState('')
|
|
31
34
|
const [expandedKeys, setExpandedKeys] = useState<string[]>([])
|
|
32
35
|
const [checkedKeys, setCheckedKeys] = useState<string[]>([])
|
|
36
|
+
const [mobilePanel, setMobilePanel] = useState<'cases' | 'details'>('cases')
|
|
37
|
+
const isCompactView = isCompactLayout || isTouchInteraction
|
|
33
38
|
|
|
34
39
|
const { values, update } = useQueryParams<BenchmarkQueryParams>({
|
|
35
40
|
keys: ['category', 'title'],
|
|
@@ -147,6 +152,13 @@ export function BenchmarkView() {
|
|
|
147
152
|
}
|
|
148
153
|
}, [selectedCase, update, values.category, values.title])
|
|
149
154
|
|
|
155
|
+
useEffect(() => {
|
|
156
|
+
if (!isCompactView) return
|
|
157
|
+
if (selectedCase == null) {
|
|
158
|
+
setMobilePanel('cases')
|
|
159
|
+
}
|
|
160
|
+
}, [isCompactView, selectedCase])
|
|
161
|
+
|
|
150
162
|
useEffect(() => {
|
|
151
163
|
if (!isTerminalRun(activeRun)) return
|
|
152
164
|
void mutateCases()
|
|
@@ -161,40 +173,65 @@ export function BenchmarkView() {
|
|
|
161
173
|
}, [activeRun, activeRunId, message, mutateCases, mutateCategories, mutateResult, mutateRun, t])
|
|
162
174
|
|
|
163
175
|
const checkedCaseCount = checkedKeys.filter(k => k.startsWith('case:')).length
|
|
176
|
+
const showCases = !isCompactView || mobilePanel === 'cases'
|
|
177
|
+
const showDetails = !isCompactView || mobilePanel === 'details'
|
|
164
178
|
|
|
165
179
|
return (
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
180
|
+
<PageShell
|
|
181
|
+
className={`benchmark-view ${isCompactView ? 'benchmark-view--compact' : ''}`}
|
|
182
|
+
bodyClassName='benchmark-view__body'
|
|
183
|
+
>
|
|
184
|
+
{isCompactView && (
|
|
185
|
+
<div className='benchmark-view__mobile-switcher-shell'>
|
|
186
|
+
<Segmented
|
|
187
|
+
block
|
|
188
|
+
className='benchmark-view__mobile-switcher'
|
|
189
|
+
value={mobilePanel}
|
|
190
|
+
onChange={(value) => setMobilePanel(value as 'cases' | 'details')}
|
|
191
|
+
options={[
|
|
192
|
+
{ label: t('benchmark.mobileCases'), value: 'cases' },
|
|
193
|
+
{ label: t('benchmark.mobileDetails'), value: 'details', disabled: selectedCase == null }
|
|
194
|
+
]}
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
)}
|
|
198
|
+
{showCases && (
|
|
199
|
+
<div className='benchmark-view__left'>
|
|
200
|
+
<BenchmarkSidebar
|
|
201
|
+
cases={cases}
|
|
202
|
+
categories={categories}
|
|
203
|
+
selectedCase={selectedCase}
|
|
204
|
+
query={treeQuery}
|
|
205
|
+
expandedKeys={expandedKeys}
|
|
206
|
+
checkedKeys={checkedKeys}
|
|
207
|
+
checkedCaseCount={checkedCaseCount}
|
|
208
|
+
onQueryChange={setTreeQuery}
|
|
209
|
+
onExpandedKeysChange={setExpandedKeys}
|
|
210
|
+
onCheckedKeysChange={setCheckedKeys}
|
|
211
|
+
onSelectCase={(category, title) => {
|
|
212
|
+
update({ category, title })
|
|
213
|
+
if (isCompactView) {
|
|
214
|
+
setMobilePanel('details')
|
|
215
|
+
}
|
|
216
|
+
}}
|
|
217
|
+
onRunCase={(item) => void handleRunSpecificCase(item)}
|
|
218
|
+
onRunCategory={(category) => void handleRunCategory(category)}
|
|
219
|
+
onBatchRun={() => void handleBatchRun()}
|
|
220
|
+
/>
|
|
221
|
+
</div>
|
|
222
|
+
)}
|
|
223
|
+
{showDetails && (
|
|
224
|
+
<div className='benchmark-view__right'>
|
|
225
|
+
<BenchmarkCasePanel
|
|
226
|
+
selectedCase={selectedCase}
|
|
227
|
+
latestResult={latestResult}
|
|
228
|
+
activeRun={activeRun}
|
|
229
|
+
activeRunId={activeRunId}
|
|
230
|
+
progressPercent={progressPercent}
|
|
231
|
+
onRunCase={() => void (selectedCase && handleRunSpecificCase(selectedCase))}
|
|
232
|
+
/>
|
|
233
|
+
</div>
|
|
234
|
+
)}
|
|
235
|
+
</PageShell>
|
|
199
236
|
)
|
|
200
237
|
}
|
|
@@ -32,8 +32,6 @@
|
|
|
32
32
|
- sender 私有类型定义。
|
|
33
33
|
- `sender/@utils/`
|
|
34
34
|
- sender 私有常量与轻量工具函数。
|
|
35
|
-
- `ThinkingStatus.tsx`
|
|
36
|
-
- 聊天域可复用的状态提示组件,不再算 sender 私有视图。
|
|
37
35
|
- `../../dock-panel/DockPanel.tsx`
|
|
38
36
|
- 聊天页底部可复用 dock 面板壳层。
|
|
39
37
|
- 统一承载标题、meta、关闭动作和拖拽调高能力。
|
|
@@ -67,6 +65,20 @@
|
|
|
67
65
|
- sender 相关单文件应尽量收敛在 200 行以内;超过后优先拆视图子组件、hooks、utils、样式文件,而不是继续在原文件加条件分支。
|
|
68
66
|
- 子模块如果已经独立成形,例如 `model-select`、`reference-actions`、`sender-toolbar`,应建子目录,并在子目录内继续按职责拆分,而不是把新的辅助文件继续堆回 sender 根目录。
|
|
69
67
|
|
|
68
|
+
## Sender 上方 Composer Card 设计约束
|
|
69
|
+
|
|
70
|
+
- sender 上方的信息卡片统一视为 `composer card stack`,不要为 TODO、thinking、ask-user-question 各自维护一套独立容器样式。
|
|
71
|
+
- 这类卡片优先复用 `ChatComposerCard`;新信息块先接入统一 card,再谈局部样式差异。
|
|
72
|
+
- `composer card stack` 与 sender 之间默认不留额外空隙;宽度、边框和背景基调保持一致,视觉上应是一组连续的信息层。
|
|
73
|
+
- 堆叠时只有最上方卡片保留上圆角,只有最下方的 sender 保留自己的完整圆角;中间卡片不应出现额外圆角或断开的分组感。
|
|
74
|
+
- sender 上方卡片的展示优先级固定为:`todos`、`steer messages`、`next messages`、`ask user questions`;当前未接入的项也按这个顺序预留。
|
|
75
|
+
- TODO 卡片默认折叠;折叠/展开时只让 body 参与动画,不要让 header 高度跳变。
|
|
76
|
+
- TODO、thinking、ask-user-question 在信息密度上保持一致,优先通过布局收紧层级,不要只靠压缩 `padding` / `margin`。
|
|
77
|
+
- 标题区的图标、字号、字重、行高应复用同一套节奏;ask-user-question 不应出现比 TODO 更重或更大的标题视觉。
|
|
78
|
+
- 卡片表面保持简洁:不加阴影,背景色与 sender 基本一致;需要状态区分时优先用图标、文案和轻量色差,不单独造一套强强调背景。
|
|
79
|
+
- 选项型列表默认纵向一行一个;说明信息放进 tooltip 或其他延迟展示入口,不直接铺在主列表里。
|
|
80
|
+
- 选项 hover 优先做背景色和边框色过渡,避免通过新增/移除 border 造成闪烁或布局抖动。
|
|
81
|
+
|
|
70
82
|
## Sender import 约定
|
|
71
83
|
|
|
72
84
|
- `Sender` 及其子组件按固定顺序组织 import:
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.chat-composer-card {
|
|
2
|
+
--chat-composer-card-bg: var(--input-bg, #f9fafb);
|
|
3
|
+
--chat-composer-card-border: var(--border-color);
|
|
4
|
+
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border: 1px solid var(--chat-composer-card-border);
|
|
11
|
+
border-radius: 14px;
|
|
12
|
+
background: var(--chat-composer-card-bg);
|
|
13
|
+
box-shadow: none;
|
|
14
|
+
|
|
15
|
+
&--narrow {
|
|
16
|
+
width: calc(100% - 24px);
|
|
17
|
+
align-self: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.is-collapsed {
|
|
21
|
+
.chat-composer-card__content {
|
|
22
|
+
grid-template-rows: 0fr;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.is-expanded .chat-composer-card__content {
|
|
28
|
+
grid-template-rows: 1fr;
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__summary {
|
|
33
|
+
width: 100%;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
margin: 0;
|
|
36
|
+
border: none;
|
|
37
|
+
min-height: 36px;
|
|
38
|
+
padding: 6px 8px;
|
|
39
|
+
background: transparent;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
gap: 8px;
|
|
44
|
+
text-align: left;
|
|
45
|
+
color: inherit;
|
|
46
|
+
transition: padding .22s ease;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
button.chat-composer-card__summary {
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__content {
|
|
54
|
+
display: grid;
|
|
55
|
+
min-width: 0;
|
|
56
|
+
grid-template-rows: 0fr;
|
|
57
|
+
opacity: 0;
|
|
58
|
+
transition: grid-template-rows .24s ease, opacity .18s ease;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__body {
|
|
62
|
+
min-height: 0;
|
|
63
|
+
min-width: 0;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
padding: 0 4px 4px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
html.dark .chat-composer-card {
|
|
70
|
+
--chat-composer-card-bg: var(--input-bg, #1f1f1f);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (max-width: 768px) {
|
|
74
|
+
.chat-composer-card--narrow {
|
|
75
|
+
width: calc(100% - 16px);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import './ChatComposerCard.scss'
|
|
2
|
+
|
|
3
|
+
import type { ReactNode } from 'react'
|
|
4
|
+
|
|
5
|
+
export function ChatComposerCard({
|
|
6
|
+
className,
|
|
7
|
+
summary,
|
|
8
|
+
summaryClassName,
|
|
9
|
+
bodyClassName,
|
|
10
|
+
progress,
|
|
11
|
+
children,
|
|
12
|
+
expanded = true,
|
|
13
|
+
onToggle,
|
|
14
|
+
narrow = false
|
|
15
|
+
}: {
|
|
16
|
+
className?: string
|
|
17
|
+
summary: ReactNode
|
|
18
|
+
summaryClassName?: string
|
|
19
|
+
bodyClassName?: string
|
|
20
|
+
progress?: ReactNode
|
|
21
|
+
children?: ReactNode
|
|
22
|
+
expanded?: boolean
|
|
23
|
+
onToggle?: () => void
|
|
24
|
+
narrow?: boolean
|
|
25
|
+
}) {
|
|
26
|
+
const classes = [
|
|
27
|
+
'chat-composer-card',
|
|
28
|
+
narrow ? 'chat-composer-card--narrow' : '',
|
|
29
|
+
expanded ? 'is-expanded' : 'is-collapsed',
|
|
30
|
+
className ?? ''
|
|
31
|
+
].filter(Boolean).join(' ')
|
|
32
|
+
const summaryClasses = ['chat-composer-card__summary', summaryClassName ?? ''].filter(Boolean).join(' ')
|
|
33
|
+
const bodyClasses = ['chat-composer-card__body', bodyClassName ?? ''].filter(Boolean).join(' ')
|
|
34
|
+
const hasBody = children != null
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<section className={classes}>
|
|
38
|
+
{onToggle != null
|
|
39
|
+
? (
|
|
40
|
+
<button type='button' className={summaryClasses} onClick={onToggle}>
|
|
41
|
+
{summary}
|
|
42
|
+
</button>
|
|
43
|
+
)
|
|
44
|
+
: (
|
|
45
|
+
<div className={summaryClasses}>
|
|
46
|
+
{summary}
|
|
47
|
+
</div>
|
|
48
|
+
)}
|
|
49
|
+
{progress}
|
|
50
|
+
{hasBody && (
|
|
51
|
+
<div className='chat-composer-card__content' aria-hidden={!expanded}>
|
|
52
|
+
<div className={bodyClasses}>
|
|
53
|
+
{children}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
)}
|
|
57
|
+
</section>
|
|
58
|
+
)
|
|
59
|
+
}
|