@vibe-forge/client 0.11.3 → 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.
Files changed (200) hide show
  1. package/cli.cjs +6 -11
  2. package/dist/assets/{arc-h39NrT24.js → arc-CbOXL0l9.js} +1 -1
  3. package/dist/assets/{blockDiagram-c4efeb88-CaDg46I6.js → blockDiagram-c4efeb88-CqxINvsS.js} +1 -1
  4. package/dist/assets/{c4Diagram-c83219d4-CDqjcF9U.js → c4Diagram-c83219d4-BKazU0hb.js} +1 -1
  5. package/dist/assets/channel-Dnopc5A6.js +1 -0
  6. package/dist/assets/{classDiagram-beda092f-BDnZm8nO.js → classDiagram-beda092f-fAFX5BpB.js} +1 -1
  7. package/dist/assets/{classDiagram-v2-2358418a-BUi85KJW.js → classDiagram-v2-2358418a-w1VkNGJj.js} +1 -1
  8. package/dist/assets/clone-sQthahUA.js +1 -0
  9. package/dist/assets/{createText-1719965b-Ca5dEwfo.js → createText-1719965b-CEinakVP.js} +1 -1
  10. package/dist/assets/{cssMode-Ysz7NfYo.js → cssMode-DPqRki4y.js} +1 -1
  11. package/dist/assets/{edges-96097737-CdSKqxZt.js → edges-96097737-Cb0F1_3K.js} +1 -1
  12. package/dist/assets/{erDiagram-0228fc6a-B-veAUv_.js → erDiagram-0228fc6a-C-N2fx-J.js} +1 -1
  13. package/dist/assets/{flowDb-c6c81e3f-DD8Cx7_9.js → flowDb-c6c81e3f-D1Xz_8Gf.js} +1 -1
  14. package/dist/assets/{flowDiagram-50d868cf-9f-_x1ET.js → flowDiagram-50d868cf-DyPSZyAj.js} +1 -1
  15. package/dist/assets/flowDiagram-v2-4f6560a1-OazrdWQO.js +1 -0
  16. package/dist/assets/{flowchart-elk-definition-6af322e1-5RhpQM4M.js → flowchart-elk-definition-6af322e1-Dr1DDXwE.js} +1 -1
  17. package/dist/assets/{freemarker2-SgMdIXw4.js → freemarker2-C3DvPFaK.js} +1 -1
  18. package/dist/assets/{ganttDiagram-a2739b55-DnxNghZA.js → ganttDiagram-a2739b55-DmvY1GRj.js} +1 -1
  19. package/dist/assets/{gitGraphDiagram-82fe8481-CBvS3Tf9.js → gitGraphDiagram-82fe8481-CoXfPYYi.js} +1 -1
  20. package/dist/assets/{graph-CkHF299-.js → graph-BkDQy7Qt.js} +1 -1
  21. package/dist/assets/{handlebars-C57IyLUe.js → handlebars-BcTFdqjl.js} +1 -1
  22. package/dist/assets/{html-YsDy5wvW.js → html-Dg-O6XFr.js} +1 -1
  23. package/dist/assets/{htmlMode-7o_VDODD.js → htmlMode-B_wqYWvn.js} +1 -1
  24. package/dist/assets/{index-5325376f-BzOVQPu-.js → index-5325376f-kxPTR3_e.js} +1 -1
  25. package/dist/assets/index-o93dlo92.css +32 -0
  26. package/dist/assets/{index-BHFpctk6.js → index-wkhI4dr6.js} +357 -337
  27. package/dist/assets/{infoDiagram-8eee0895-DJ-UI1h4.js → infoDiagram-8eee0895-BEvqkwPI.js} +1 -1
  28. package/dist/assets/{javascript-BHQ9NEZr.js → javascript-DhlOH8_z.js} +1 -1
  29. package/dist/assets/{journeyDiagram-c64418c1-DwfykcG9.js → journeyDiagram-c64418c1-gKtLYmmp.js} +1 -1
  30. package/dist/assets/{jsonMode-3QjftkMM.js → jsonMode-DxTbF9OD.js} +1 -1
  31. package/dist/assets/{layout-CbViRb_b.js → layout-CDaZEk6E.js} +1 -1
  32. package/dist/assets/{line-DBdBvv9D.js → line-DNRQu8iq.js} +1 -1
  33. package/dist/assets/{linear-BDAfhcjn.js → linear-Cph9Z6_j.js} +1 -1
  34. package/dist/assets/{liquid-B0cPPzIR.js → liquid-ByZ6JgRG.js} +1 -1
  35. package/dist/assets/{lspLanguageFeatures-IOxbobOz.js → lspLanguageFeatures-DzvhkgnM.js} +1 -1
  36. package/dist/assets/{mdx-Dma_RA8P.js → mdx-D8RGHTl6.js} +1 -1
  37. package/dist/assets/{mermaid.core-Cvn8Go4x.js → mermaid.core-BgcryF__.js} +4 -4
  38. package/dist/assets/{mindmap-definition-8da855dc-DEnYq0Lc.js → mindmap-definition-8da855dc-WrxK0FcB.js} +1 -1
  39. package/dist/assets/{pieDiagram-a8764435-ZC4j8sHU.js → pieDiagram-a8764435-VsZBsiQy.js} +1 -1
  40. package/dist/assets/{python-Be0WX4q5.js → python-CXVtk_cg.js} +1 -1
  41. package/dist/assets/{quadrantDiagram-1e28029f-DUaqHlIB.js → quadrantDiagram-1e28029f-BVlgwOvU.js} +1 -1
  42. package/dist/assets/{razor-Tjhny-uT.js → razor-0tind7h2.js} +1 -1
  43. package/dist/assets/{requirementDiagram-08caed73-DjSal3es.js → requirementDiagram-08caed73-CpPMPoYp.js} +1 -1
  44. package/dist/assets/{sankeyDiagram-a04cb91d-BMDXMrMz.js → sankeyDiagram-a04cb91d-Cm5nnRmc.js} +1 -1
  45. package/dist/assets/{sequenceDiagram-c5b8d532-CQl9YUlH.js → sequenceDiagram-c5b8d532-DpMlJvJB.js} +1 -1
  46. package/dist/assets/{stateDiagram-1ecb1508-DG7mU9jD.js → stateDiagram-1ecb1508-DU1zc7vq.js} +1 -1
  47. package/dist/assets/{stateDiagram-v2-c2b004d7-DTbR_azy.js → stateDiagram-v2-c2b004d7-D-0RgmAp.js} +1 -1
  48. package/dist/assets/{styles-b4e223ce-C9aS3zb8.js → styles-b4e223ce-BSO-yNWV.js} +1 -1
  49. package/dist/assets/{styles-ca3715f6-Bh3keVTZ.js → styles-ca3715f6-CHnsn2Ro.js} +1 -1
  50. package/dist/assets/{styles-d45a18b0-BDcLLa65.js → styles-d45a18b0-B-rVGjEq.js} +1 -1
  51. package/dist/assets/{svgDrawCommon-b86b1483-B9H5ZS_9.js → svgDrawCommon-b86b1483-CA3Pl89f.js} +1 -1
  52. package/dist/assets/{timeline-definition-faaaa080-DCMYCBhK.js → timeline-definition-faaaa080-BcihLR6s.js} +1 -1
  53. package/dist/assets/{tsMode-DVqLsn98.js → tsMode-D9GGa5Ur.js} +1 -1
  54. package/dist/assets/{typescript-wMVyXw7G.js → typescript-BT9CK_EL.js} +1 -1
  55. package/dist/assets/{xml-w0gzmn0c.js → xml-DNO75J-T.js} +1 -1
  56. package/dist/assets/{xychartDiagram-f5964ef8-CdxyD3K5.js → xychartDiagram-f5964ef8-DJTwe32X.js} +1 -1
  57. package/dist/assets/{yaml-C29TL1ed.js → yaml-7CVzhiP2.js} +1 -1
  58. package/dist/index.html +2 -2
  59. package/package.json +13 -10
  60. package/src/api/git.ts +12 -0
  61. package/src/api/sessions.ts +61 -3
  62. package/src/api.ts +8 -0
  63. package/src/components/ArchiveView.scss +143 -54
  64. package/src/components/ArchiveView.tsx +181 -167
  65. package/src/components/CodeBlock.scss +5 -0
  66. package/src/components/ConfigView.scss +142 -31
  67. package/src/components/ConfigView.tsx +161 -86
  68. package/src/components/MarkdownContent.tsx +7 -0
  69. package/src/components/NavRail.scss +248 -0
  70. package/src/components/NavRail.tsx +80 -107
  71. package/src/components/NavRailCompact.tsx +107 -0
  72. package/src/components/NavRailCompactMoreSheet.tsx +141 -0
  73. package/src/components/ShortcutTooltip.tsx +4 -2
  74. package/src/components/Sidebar.scss +51 -0
  75. package/src/components/Sidebar.tsx +43 -16
  76. package/src/components/automation-view/RuleFormPanel.scss +40 -13
  77. package/src/components/automation-view/RuleSidebar.scss +73 -47
  78. package/src/components/automation-view/RuleSidebar.tsx +9 -13
  79. package/src/components/automation-view/RunHistoryPanel.scss +141 -13
  80. package/src/components/automation-view/RunHistoryPanel.tsx +203 -161
  81. package/src/components/automation-view/TaskList.scss +44 -13
  82. package/src/components/automation-view/TriggerList.scss +46 -14
  83. package/src/components/automation-view/index.scss +82 -10
  84. package/src/components/automation-view/index.tsx +108 -55
  85. package/src/components/benchmark-view/BenchmarkCasePanel.scss +36 -16
  86. package/src/components/benchmark-view/BenchmarkSidebar.scss +44 -22
  87. package/src/components/benchmark-view/BenchmarkSidebar.tsx +0 -6
  88. package/src/components/benchmark-view/BenchmarkView.scss +63 -20
  89. package/src/components/benchmark-view/index.tsx +71 -34
  90. package/src/components/chat/ChatComposerCard.scss +4 -0
  91. package/src/components/chat/ChatHeader.scss +187 -0
  92. package/src/components/chat/ChatHeader.tsx +206 -56
  93. package/src/components/chat/ChatHistoryView.tsx +63 -2
  94. package/src/components/chat/ChatTimelineView.scss +94 -1
  95. package/src/components/chat/ChatTimelineView.tsx +42 -0
  96. package/src/components/chat/NewSessionGuide.scss +139 -1
  97. package/src/components/chat/NewSessionGuide.tsx +57 -100
  98. package/src/components/chat/NewSessionGuideCompactPanel.tsx +130 -0
  99. package/src/components/chat/NewSessionGuideGrid.tsx +141 -0
  100. package/src/components/chat/git-controls/BranchSwitcherDropdown.tsx +61 -56
  101. package/src/components/chat/git-controls/BranchSwitcherResults.tsx +167 -0
  102. package/src/components/chat/git-controls/BranchTreeEntries.tsx +99 -0
  103. package/src/components/chat/git-controls/ChatGitControls.scss +437 -5
  104. package/src/components/chat/git-controls/ChatGitControls.tsx +136 -109
  105. package/src/components/chat/git-controls/DraftGitControls.tsx +91 -0
  106. package/src/components/chat/git-controls/GitOperationsDropdown.tsx +10 -2
  107. package/src/components/chat/git-controls/GitWorktreeDropdown.tsx +301 -28
  108. package/src/components/chat/git-controls/git-branch-tree.ts +148 -0
  109. package/src/components/chat/git-controls/use-chat-draft-git-controls.ts +168 -0
  110. package/src/components/chat/git-controls/use-chat-git-controls.ts +76 -3
  111. package/src/components/chat/messages/MessageContextMenu.tsx +3 -1
  112. package/src/components/chat/messages/MessageItem.scss +78 -4
  113. package/src/components/chat/messages/MessageItem.tsx +47 -3
  114. package/src/components/chat/sender/@components/adapter-select/AdapterSelectControl.scss +15 -0
  115. package/src/components/chat/sender/@components/reference-actions/ReferenceActionsControl.scss +17 -0
  116. package/src/components/chat/sender/@components/reference-actions/ReferencePermissionActionsPopover.tsx +4 -1
  117. package/src/components/chat/sender/@components/sender-attachments/SenderAttachments.scss +15 -2
  118. package/src/components/chat/sender/@components/sender-body/SenderBody.tsx +3 -0
  119. package/src/components/chat/sender/@components/sender-monaco-editor/use-sender-monaco-theme.ts +52 -3
  120. package/src/components/chat/sender/@components/sender-submit-action/SenderSubmitAction.scss +12 -0
  121. package/src/components/chat/sender/@components/sender-toolbar/SenderSelectBase.scss +21 -0
  122. package/src/components/chat/sender/@components/sender-toolbar/SenderSelectShared.scss +21 -0
  123. package/src/components/chat/sender/@components/sender-toolbar/SenderToolbar.scss +63 -0
  124. package/src/components/chat/sender/@core/get-sender-runtime-state.ts +1 -1
  125. package/src/components/chat/sender/@hooks/use-model-select-browser.tsx +4 -2
  126. package/src/components/chat/sender/@types/sender-props.ts +1 -0
  127. package/src/components/chat/sender/Sender.scss +1 -1
  128. package/src/components/chat/sender/Sender.tsx +1 -0
  129. package/src/components/chat/session-timeline-panel/EventList.scss +88 -0
  130. package/src/components/chat/session-timeline-panel/EventList.tsx +99 -47
  131. package/src/components/chat/session-timeline-panel/gantt.ts +23 -7
  132. package/src/components/chat/session-timeline-panel/git-graph.ts +6 -1
  133. package/src/components/chat/session-timeline-panel/index.scss +14 -1
  134. package/src/components/chat/session-timeline-panel/index.tsx +86 -10
  135. package/src/components/chat/session-timeline-panel/types.ts +4 -0
  136. package/src/components/chat/status-bar/ChatStatusBar.scss +27 -0
  137. package/src/components/chat/status-bar/ChatStatusBar.tsx +39 -0
  138. package/src/components/chat/terminal/ChatTerminalView.tsx +6 -0
  139. package/src/components/chat/tools/core/ToolCallBox.scss +19 -0
  140. package/src/components/chat/tools/core/ToolGroup.scss +32 -0
  141. package/src/components/chat/tools/task/components/TaskToolCard.scss +59 -1
  142. package/src/components/config/ConfigEditors.scss +20 -6
  143. package/src/components/config/ConfigFieldRow.scss +57 -17
  144. package/src/components/config/ConfigSectionForm.scss +10 -4
  145. package/src/components/config/ConfigSectionPanel.tsx +18 -11
  146. package/src/components/config/configSchema.ts +1 -0
  147. package/src/components/config/record-editors/RecordEditors.scss +42 -9
  148. package/src/components/dock-panel/DockPanel.scss +6 -2
  149. package/src/components/dock-panel/DockPanel.tsx +12 -16
  150. package/src/components/knowledge-base/KnowledgeBaseView.scss +180 -6
  151. package/src/components/knowledge-base/KnowledgeBaseView.tsx +98 -26
  152. package/src/components/knowledge-base/components/ActionButton.scss +4 -0
  153. package/src/components/knowledge-base/components/EmptyState.scss +5 -8
  154. package/src/components/knowledge-base/components/EntitiesTab.tsx +8 -2
  155. package/src/components/knowledge-base/components/EntityItem.scss +10 -3
  156. package/src/components/knowledge-base/components/FilterBar.scss +13 -2
  157. package/src/components/knowledge-base/components/FlowsTab.tsx +8 -2
  158. package/src/components/knowledge-base/components/KnowledgeBaseHeader.scss +2 -23
  159. package/src/components/knowledge-base/components/KnowledgeBaseHeader.tsx +0 -5
  160. package/src/components/knowledge-base/components/KnowledgeList.scss +15 -6
  161. package/src/components/knowledge-base/components/LoadingState.scss +4 -0
  162. package/src/components/knowledge-base/components/RuleItem.scss +86 -0
  163. package/src/components/knowledge-base/components/RuleItem.tsx +2 -0
  164. package/src/components/knowledge-base/components/RulesTab.tsx +8 -2
  165. package/src/components/knowledge-base/components/SectionHeader.scss +3 -18
  166. package/src/components/knowledge-base/components/SectionHeader.tsx +3 -7
  167. package/src/components/knowledge-base/components/SkillsTab.tsx +8 -3
  168. package/src/components/knowledge-base/components/SpecItem.scss +16 -7
  169. package/src/components/layout/@hooks/use-mobile-sidebar-modal.ts +190 -0
  170. package/src/components/layout/AppShell.scss +106 -6
  171. package/src/components/layout/AppShell.tsx +118 -10
  172. package/src/components/layout/PageShell.scss +41 -0
  173. package/src/components/layout/PageShell.tsx +32 -0
  174. package/src/components/layout/mobile-sidebar-constants.ts +1 -0
  175. package/src/components/nav-rail-compact-config.ts +114 -0
  176. package/src/components/nav-rail-items.tsx +181 -0
  177. package/src/components/sidebar/SessionContextMenu.tsx +3 -1
  178. package/src/components/sidebar/SessionItem.scss +62 -0
  179. package/src/components/sidebar/SessionItem.tsx +97 -52
  180. package/src/components/sidebar/SessionList.tsx +6 -0
  181. package/src/components/sidebar/SidebarHeader.scss +49 -0
  182. package/src/components/sidebar/SidebarHeader.tsx +27 -5
  183. package/src/components/sidebar/SidebarHeaderBatchActions.tsx +8 -4
  184. package/src/components/sidebar/SidebarHeaderSearchActions.tsx +6 -3
  185. package/src/components/sidebar/SidebarUtilityFooter.tsx +69 -0
  186. package/src/components/workspace/ContextFilePicker.tsx +12 -4
  187. package/src/hooks/chat/chat-session-workspace-draft.ts +25 -0
  188. package/src/hooks/chat/use-chat-scroll.ts +24 -7
  189. package/src/hooks/chat/use-chat-session-actions.ts +19 -2
  190. package/src/hooks/use-responsive-layout.ts +115 -0
  191. package/src/resources/adapters.ts +15 -0
  192. package/src/resources/locales/en.json +52 -0
  193. package/src/resources/locales/zh.json +52 -0
  194. package/src/routes/ChatRoute.scss +113 -14
  195. package/src/routes/ChatRoute.tsx +29 -35
  196. package/src/store/index.ts +2 -0
  197. package/dist/assets/channel-CBULQbJz.js +0 -1
  198. package/dist/assets/clone-dkS7LczW.js +0 -1
  199. package/dist/assets/flowDiagram-v2-4f6560a1-1miffU4x.js +0 -1
  200. package/dist/assets/index-D_XqxIvp.css +0 -32
@@ -1,27 +1,13 @@
1
1
  .benchmark-view {
2
2
  // Sidebar container
3
3
  &__sidebar {
4
- width: 408px;
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
- flex-shrink: 0;
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: 5px 4px;
111
- border-radius: 6px;
123
+ padding: 8px;
124
+ border: 1px solid var(--border-color);
125
+ border-radius: 8px;
112
126
  min-width: 0;
113
- transition: background-color .15s;
127
+ background: var(--bg-color);
128
+ transition: background-color .15s, border-color .15s;
114
129
  }
115
130
 
116
131
  &__tree-category {
117
- padding: 7px 4px;
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(--sub-bg-color);
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
- &__divider {
13
- width: 1px;
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
- padding: 24px 24px 24px 16px;
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
- flex-direction: column;
59
+ &__body {
60
+ flex-direction: column;
61
+ }
47
62
 
48
63
  &__left {
49
64
  width: 100%;
50
65
  min-width: 0;
51
- max-height: 300px;
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
- flex: 1;
63
- padding: 0 16px 16px;
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: 0 12px 12px;
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
- &__left {
75
- padding: 12px 12px 0;
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
- <div className='benchmark-view'>
167
- <div className='benchmark-view__left'>
168
- <BenchmarkSidebar
169
- cases={cases}
170
- categories={categories}
171
- selectedCase={selectedCase}
172
- query={treeQuery}
173
- expandedKeys={expandedKeys}
174
- checkedKeys={checkedKeys}
175
- checkedCaseCount={checkedCaseCount}
176
- onQueryChange={setTreeQuery}
177
- onExpandedKeysChange={setExpandedKeys}
178
- onCheckedKeysChange={setCheckedKeys}
179
- onSelectCase={(category, title) => update({ category, title })}
180
- onRunCase={(item) => void handleRunSpecificCase(item)}
181
- onRunCategory={(category) => void handleRunCategory(category)}
182
- onBatchRun={() => void handleBatchRun()}
183
- />
184
- </div>
185
-
186
- <div className='benchmark-view__divider' />
187
-
188
- <div className='benchmark-view__right'>
189
- <BenchmarkCasePanel
190
- selectedCase={selectedCase}
191
- latestResult={latestResult}
192
- activeRun={activeRun}
193
- activeRunId={activeRunId}
194
- progressPercent={progressPercent}
195
- onRunCase={() => void (selectedCase && handleRunSpecificCase(selectedCase))}
196
- />
197
- </div>
198
- </div>
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
  }
@@ -3,6 +3,7 @@
3
3
  --chat-composer-card-border: var(--border-color);
4
4
 
5
5
  width: 100%;
6
+ min-width: 0;
6
7
  display: flex;
7
8
  flex-direction: column;
8
9
  overflow: hidden;
@@ -30,6 +31,7 @@
30
31
 
31
32
  &__summary {
32
33
  width: 100%;
34
+ min-width: 0;
33
35
  margin: 0;
34
36
  border: none;
35
37
  min-height: 36px;
@@ -50,6 +52,7 @@
50
52
 
51
53
  &__content {
52
54
  display: grid;
55
+ min-width: 0;
53
56
  grid-template-rows: 0fr;
54
57
  opacity: 0;
55
58
  transition: grid-template-rows .24s ease, opacity .18s ease;
@@ -57,6 +60,7 @@
57
60
 
58
61
  &__body {
59
62
  min-height: 0;
63
+ min-width: 0;
60
64
  overflow: hidden;
61
65
  padding: 0 4px 4px;
62
66
  }
@@ -30,6 +30,13 @@
30
30
  min-width: 0;
31
31
  }
32
32
 
33
+ &-leading-actions {
34
+ display: flex;
35
+ align-items: center;
36
+ gap: 4px;
37
+ flex-shrink: 0;
38
+ }
39
+
33
40
  &-title {
34
41
  font-weight: 600;
35
42
  color: var(--text-color);
@@ -41,6 +48,45 @@
41
48
  }
42
49
  }
43
50
 
51
+ .chat-header.is-compact {
52
+ padding: 10px 12px 8px;
53
+ align-items: center;
54
+ gap: 8px;
55
+
56
+ .chat-header-main {
57
+ align-items: center;
58
+ gap: 8px;
59
+ }
60
+
61
+ .chat-header-leading-actions {
62
+ gap: 4px;
63
+ }
64
+
65
+ .chat-header-title {
66
+ line-height: 1.3;
67
+ white-space: nowrap;
68
+ display: block;
69
+ }
70
+
71
+ .chat-header-actions {
72
+ flex-shrink: 0;
73
+ margin-left: auto;
74
+ justify-content: flex-end;
75
+ flex-wrap: nowrap;
76
+ }
77
+
78
+ .chat-header-action-button.ant-btn.ant-btn-text {
79
+ width: 36px;
80
+ min-width: 36px;
81
+ height: 36px;
82
+ border-radius: 8px;
83
+
84
+ .chat-header-view-option.material-symbols-rounded {
85
+ font-size: 18px;
86
+ }
87
+ }
88
+ }
89
+
44
90
  .chat-header-icon.material-symbols-rounded {
45
91
  font-size: 18px;
46
92
  }
@@ -49,6 +95,7 @@
49
95
  display: flex;
50
96
  align-items: center;
51
97
  gap: 4px;
98
+ min-width: 0;
52
99
  }
53
100
 
54
101
  .chat-header-action-button.ant-btn.ant-btn-text {
@@ -586,6 +633,146 @@ html.dark .chat-header-action-button.ant-btn.ant-btn-text {
586
633
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
587
634
  }
588
635
 
636
+ @media (max-width: 768px) {
637
+ .session-settings-drawer {
638
+ gap: 10px;
639
+
640
+ .settings-section {
641
+ gap: 10px;
642
+
643
+ .section-header {
644
+ font-size: 11px;
645
+ letter-spacing: .08em;
646
+ }
647
+ }
648
+
649
+ &__form {
650
+ .config-view__field-row {
651
+ gap: 10px;
652
+ padding: 10px 12px;
653
+ }
654
+
655
+ .config-view__field-meta {
656
+ gap: 8px;
657
+ }
658
+
659
+ .config-view__field-title,
660
+ .config-view__field-desc {
661
+ white-space: normal;
662
+ }
663
+
664
+ .config-view__field-control {
665
+ min-width: 0;
666
+ width: 100%;
667
+ }
668
+
669
+ .config-view__array-list {
670
+ gap: 6px;
671
+ }
672
+
673
+ .config-view__array-item {
674
+ align-items: flex-start;
675
+ }
676
+
677
+ .config-view__icon-button--compact {
678
+ width: 30px;
679
+ min-width: 30px;
680
+ height: 30px;
681
+ }
682
+
683
+ .config-view__icon-button--full {
684
+ width: 100%;
685
+ min-width: 100%;
686
+ height: 36px;
687
+ justify-content: flex-start;
688
+ gap: 6px;
689
+ padding: 0 12px;
690
+ border-radius: 8px;
691
+ border: 1px dashed var(--border-color) !important;
692
+ background: var(--sub-bg-color) !important;
693
+ color: var(--sub-text-color) !important;
694
+ align-self: stretch;
695
+
696
+ &::after {
697
+ content: attr(aria-label);
698
+ font-size: 12px;
699
+ font-weight: 500;
700
+ }
701
+ }
702
+ }
703
+ }
704
+
705
+ .session-tool-groups {
706
+ gap: 10px;
707
+ }
708
+
709
+ .session-tool-group-card {
710
+ padding: 12px 12px 0;
711
+ border-radius: 12px;
712
+ }
713
+
714
+ .session-tool-group-card__header {
715
+ align-items: flex-start;
716
+ padding-bottom: 10px;
717
+ }
718
+
719
+ .session-tool-group-card__title {
720
+ gap: 8px;
721
+ font-size: 12px;
722
+
723
+ .material-symbols-rounded {
724
+ width: 24px;
725
+ height: 24px;
726
+ border-radius: 8px;
727
+ font-size: 14px;
728
+ }
729
+ }
730
+
731
+ .session-tool-group-card__meta {
732
+ gap: 6px;
733
+ }
734
+
735
+ .session-tool-group-card__count {
736
+ padding: 1px 6px;
737
+ font-size: 11px;
738
+ }
739
+
740
+ .session-tool-group-card__list {
741
+ max-height: none;
742
+ margin: 0 -12px;
743
+ padding: 0 12px;
744
+ }
745
+
746
+ .session-tool-row {
747
+ height: 34px;
748
+ }
749
+
750
+ .session-debug-panel {
751
+ padding: 0 10px;
752
+ }
753
+
754
+ .session-debug-row {
755
+ grid-template-columns: 72px minmax(0, 1fr);
756
+ gap: 8px;
757
+ height: auto;
758
+ min-height: 34px;
759
+ padding: 6px 0;
760
+ }
761
+
762
+ .settings-footer {
763
+ gap: 16px;
764
+ padding-top: 16px;
765
+
766
+ .danger-zone {
767
+ .delete-session-row {
768
+ flex-direction: column;
769
+ align-items: stretch;
770
+ padding: 12px;
771
+ }
772
+ }
773
+ }
774
+ }
775
+
589
776
  html.dark {
590
777
  .session-settings-drawer {
591
778
  .settings-footer {