@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
@@ -3,6 +3,7 @@ import './index.scss'
3
3
  import React from 'react'
4
4
  import { useTranslation } from 'react-i18next'
5
5
 
6
+ import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
6
7
  import { buildGantt, buildGitGraph } from './mermaid'
7
8
  import type { Task } from './types'
8
9
 
@@ -13,6 +14,57 @@ export interface SessionTimelinePanelProps {
13
14
  style?: React.CSSProperties
14
15
  }
15
16
 
17
+ const getCompactTimelineLabels = <
18
+ T extends {
19
+ allTasksDone: string
20
+ askUserQuestion: string
21
+ ganttMainSection: string
22
+ mainEnd: string
23
+ mainStart: string
24
+ receiveReply: string
25
+ resumeTask: string
26
+ startTasks: string
27
+ taskEnd: string
28
+ taskStart: string
29
+ userAnswer: string
30
+ userPrompt: string
31
+ },
32
+ >(labels: T, isZh: boolean) => {
33
+ if (isZh) {
34
+ return {
35
+ ...labels,
36
+ mainStart: '启动',
37
+ mainEnd: '结束',
38
+ startTasks: '任务',
39
+ allTasksDone: '完成',
40
+ askUserQuestion: '提问',
41
+ resumeTask: '继续',
42
+ userPrompt: '提示',
43
+ userAnswer: '回答',
44
+ receiveReply: '回复',
45
+ taskStart: '开始',
46
+ taskEnd: '结束',
47
+ ganttMainSection: '主'
48
+ }
49
+ }
50
+
51
+ return {
52
+ ...labels,
53
+ mainStart: 'Start',
54
+ mainEnd: 'End',
55
+ startTasks: 'Tasks',
56
+ allTasksDone: 'Done',
57
+ askUserQuestion: 'Ask',
58
+ resumeTask: 'Resume',
59
+ userPrompt: 'Prompt',
60
+ userAnswer: 'Answer',
61
+ receiveReply: 'Reply',
62
+ taskStart: 'Start',
63
+ taskEnd: 'End',
64
+ ganttMainSection: 'Main'
65
+ }
66
+ }
67
+
16
68
  export function SessionTimelinePanel(props: SessionTimelinePanelProps) {
17
69
  const {
18
70
  task,
@@ -21,7 +73,8 @@ export function SessionTimelinePanel(props: SessionTimelinePanelProps) {
21
73
  style
22
74
  } = props
23
75
  const containerRef = React.useRef<HTMLDivElement | null>(null)
24
- const { t } = useTranslation()
76
+ const { t, i18n } = useTranslation()
77
+ const { isCompactLayout } = useResponsiveLayout()
25
78
  const labels = React.useMemo(() => ({
26
79
  mainStart: t('chat.timeline.mainStart'),
27
80
  mainEnd: t('chat.timeline.mainEnd'),
@@ -39,12 +92,19 @@ export function SessionTimelinePanel(props: SessionTimelinePanelProps) {
39
92
  ganttMainSection: t('chat.timeline.ganttMainSection'),
40
93
  ganttTasksSection: t('chat.timeline.ganttTasksSection')
41
94
  }), [t])
95
+ const diagramLabels = React.useMemo(
96
+ () =>
97
+ isCompactLayout
98
+ ? getCompactTimelineLabels(labels, i18n.resolvedLanguage?.startsWith('zh') === true)
99
+ : labels,
100
+ [i18n.resolvedLanguage, isCompactLayout, labels]
101
+ )
42
102
  const diagram = React.useMemo(() => {
43
103
  if (viewMode === 'gantt') {
44
- return buildGantt(task, labels)
104
+ return buildGantt(task, diagramLabels, { compact: isCompactLayout })
45
105
  }
46
- return buildGitGraph(task, labels)
47
- }, [labels, task, viewMode])
106
+ return buildGitGraph(task, diagramLabels, { compact: isCompactLayout })
107
+ }, [diagramLabels, isCompactLayout, task, viewMode])
48
108
  const diagramId = React.useId()
49
109
  const safeDiagramId = React.useMemo(() => diagramId.replace(/\W/g, '_'), [diagramId])
50
110
  const interactionsRef = React.useRef(new Map<string, { label: string; payload: unknown }>())
@@ -60,15 +120,26 @@ export function SessionTimelinePanel(props: SessionTimelinePanelProps) {
60
120
  startOnLoad: false,
61
121
  securityLevel: 'loose',
62
122
  themeVariables: {
63
- fontFamily
123
+ fontFamily,
124
+ fontSize: isCompactLayout ? '12px' : '14px'
64
125
  },
65
- gitGraph: {},
126
+ gitGraph: isCompactLayout
127
+ ? {
128
+ rotateCommitLabel: false,
129
+ showBranches: false
130
+ }
131
+ : {},
66
132
  gantt: {
67
133
  topAxis: true,
68
134
  displayMode: 'compact',
69
135
  gridLineStartPadding: 0,
70
- leftPadding: 16,
71
- rightPadding: 16
136
+ leftPadding: isCompactLayout ? 8 : 16,
137
+ rightPadding: isCompactLayout ? 8 : 16,
138
+ topPadding: isCompactLayout ? 28 : 36,
139
+ barHeight: isCompactLayout ? 16 : 20,
140
+ barGap: isCompactLayout ? 3 : 4,
141
+ fontSize: isCompactLayout ? 10 : 11,
142
+ sectionFontSize: isCompactLayout ? 10 : 11
72
143
  }
73
144
  })
74
145
  if (cancelled) return
@@ -100,7 +171,7 @@ export function SessionTimelinePanel(props: SessionTimelinePanelProps) {
100
171
  return () => {
101
172
  cancelled = true
102
173
  }
103
- }, [diagram.interactions, mermaidCode, safeDiagramId])
174
+ }, [diagram.interactions, isCompactLayout, mermaidCode, safeDiagramId])
104
175
 
105
176
  React.useEffect(() => {
106
177
  interactionsRef.current = new Map(
@@ -114,7 +185,12 @@ export function SessionTimelinePanel(props: SessionTimelinePanelProps) {
114
185
  return (
115
186
  <div
116
187
  ref={containerRef}
117
- className={`session-timeline-panel session-timeline-panel--${viewMode}${className ? ` ${className}` : ''}`}
188
+ className={[
189
+ 'session-timeline-panel',
190
+ `session-timeline-panel--${viewMode}`,
191
+ isCompactLayout ? 'session-timeline-panel--compact' : '',
192
+ className ?? ''
193
+ ].filter(Boolean).join(' ')}
118
194
  style={style}
119
195
  />
120
196
  )
@@ -58,6 +58,10 @@ export interface TimelineInteraction {
58
58
  payload: TimelineInteractionPayload
59
59
  }
60
60
 
61
+ export interface TimelineDiagramBuildOptions {
62
+ compact?: boolean
63
+ }
64
+
61
65
  export interface TimelineDiagram {
62
66
  code: string
63
67
  interactions: TimelineInteraction[]
@@ -0,0 +1,27 @@
1
+ .chat-status-bar {
2
+ min-width: 0;
3
+ width: 100%;
4
+ display: flex;
5
+ align-items: center;
6
+ padding: 0;
7
+ background-color: transparent;
8
+ }
9
+
10
+ .chat-status-bar__content {
11
+ min-width: 0;
12
+ flex: 1;
13
+ overflow-x: auto;
14
+ overflow-y: hidden;
15
+ overscroll-behavior-x: contain;
16
+ -webkit-overflow-scrolling: touch;
17
+ scroll-padding-inline: 12px;
18
+ scrollbar-width: none;
19
+
20
+ &::-webkit-scrollbar {
21
+ display: none;
22
+ }
23
+ }
24
+
25
+ .chat-status-bar--compact .chat-status-bar__content {
26
+ scroll-padding-inline: 8px;
27
+ }
@@ -0,0 +1,39 @@
1
+ import './ChatStatusBar.scss'
2
+
3
+ import type { ChatSessionWorkspaceDraft } from '#~/hooks/chat/chat-session-workspace-draft'
4
+ import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
5
+
6
+ import { ChatGitControls } from '../git-controls/ChatGitControls'
7
+ import { DraftGitControls } from '../git-controls/DraftGitControls'
8
+
9
+ export function ChatStatusBar({
10
+ draftWorkspace,
11
+ isCreating,
12
+ sessionId,
13
+ onDraftWorkspaceChange
14
+ }: {
15
+ draftWorkspace: ChatSessionWorkspaceDraft
16
+ isCreating: boolean
17
+ sessionId?: string
18
+ onDraftWorkspaceChange: (nextDraft: ChatSessionWorkspaceDraft) => void
19
+ }) {
20
+ const { isCompactLayout } = useResponsiveLayout()
21
+
22
+ return (
23
+ <div className={`chat-status-bar ${isCompactLayout ? 'chat-status-bar--compact' : ''}`}>
24
+ <div className='chat-status-bar__content'>
25
+ {sessionId != null && sessionId !== ''
26
+ ? <ChatGitControls compact={isCompactLayout} placement='topLeft' sessionId={sessionId} />
27
+ : (
28
+ <DraftGitControls
29
+ compact={isCompactLayout}
30
+ disabled={isCreating}
31
+ draft={draftWorkspace}
32
+ placement='topLeft'
33
+ onChange={onDraftWorkspaceChange}
34
+ />
35
+ )}
36
+ </div>
37
+ </div>
38
+ )
39
+ }
@@ -5,6 +5,7 @@ import React, { useCallback, useState } from 'react'
5
5
  import { useTranslation } from 'react-i18next'
6
6
 
7
7
  import { DockPanel } from '#~/components/dock-panel/DockPanel'
8
+ import { useResponsiveLayout } from '#~/hooks/use-responsive-layout'
8
9
  import { useTerminalInstance } from './@hooks/use-terminal-instance'
9
10
  import { useTerminalSession } from './@hooks/use-terminal-session'
10
11
 
@@ -21,6 +22,7 @@ export function ChatTerminalView({
21
22
  sessionId: string
22
23
  }) {
23
24
  const { t } = useTranslation()
25
+ const { isCompactLayout, isTouchInteraction } = useResponsiveLayout()
24
26
  const inputHandlerRef = React.useRef<(data: string) => void>(() => undefined)
25
27
  const resizeHandlerRef = React.useRef<(cols: number, rows: number) => void>(() => undefined)
26
28
  const [shellLabel, setShellLabel] = useState('zsh')
@@ -77,11 +79,15 @@ export function ChatTerminalView({
77
79
  code: lastExit.exitCode ?? 'null',
78
80
  signal: lastExit.signal ?? 'null'
79
81
  })
82
+ const isCompactView = isCompactLayout || isTouchInteraction
80
83
 
81
84
  return (
82
85
  <DockPanel
86
+ allowResize={!isCompactView}
83
87
  className='chat-terminal-view'
88
+ defaultHeight={isCompactView ? 208 : undefined}
84
89
  isOpen={isOpen}
90
+ maxHeight={isCompactView ? 320 : 520}
85
91
  title={t('chat.viewTerminal')}
86
92
  meta={shellLabel}
87
93
  closeLabel={t('common.close')}
@@ -210,6 +210,7 @@
210
210
  padding: 0;
211
211
  overflow: hidden;
212
212
  background-color: var(--bg-color);
213
+ min-width: 0;
213
214
 
214
215
  .tool-call-box.result & {
215
216
  background-color: var(--bg-color);
@@ -218,6 +219,7 @@
218
219
 
219
220
  .tool-content {
220
221
  padding: 0;
222
+ min-width: 0;
221
223
  }
222
224
 
223
225
  .code-block-wrapper {
@@ -230,22 +232,26 @@
230
232
  flex-direction: column;
231
233
  gap: 8px;
232
234
  padding: 2px 0;
235
+ min-width: 0;
233
236
  }
234
237
 
235
238
  .tool-result-text {
236
239
  font-size: 13px;
237
240
  color: var(--text-color);
241
+ min-width: 0;
238
242
  }
239
243
 
240
244
  .tool-result-text-content {
241
245
  white-space: pre-wrap;
242
246
  line-height: 1.6;
247
+ overflow-wrap: anywhere;
243
248
  }
244
249
 
245
250
  .tool-result-image-wrapper {
246
251
  display: flex;
247
252
  flex-direction: column;
248
253
  gap: 6px;
254
+ min-width: 0;
249
255
  }
250
256
 
251
257
  .tool-result-image {
@@ -679,3 +685,16 @@
679
685
  }
680
686
  }
681
687
  }
688
+
689
+ @media (max-width: 960px) {
690
+ .tool-group {
691
+ .tool-call-header,
692
+ .tool-result-header {
693
+ min-width: 0;
694
+ }
695
+
696
+ .tool-call-box--inline .tool-call-body-shell.expanded {
697
+ padding-left: 12px;
698
+ }
699
+ }
700
+ }
@@ -114,13 +114,20 @@
114
114
  .msg-footer {
115
115
  display: flex;
116
116
  align-items: center;
117
+ flex-wrap: wrap;
117
118
  gap: 8px;
119
+ min-width: 0;
118
120
  font-size: 11px;
119
121
  color: var(--sub-text-color, #9ca3af);
120
122
 
123
+ > * {
124
+ min-width: 0;
125
+ }
126
+
121
127
  .timestamp {
122
128
  user-select: none;
123
129
  cursor: pointer;
130
+ overflow-wrap: anywhere;
124
131
  }
125
132
  }
126
133
  }
@@ -130,6 +137,31 @@
130
137
  }
131
138
  }
132
139
 
140
+ @media (max-width: 960px) {
141
+ .tool-group-container {
142
+ scroll-margin-top: 64px;
143
+
144
+ .tool-group-footer-wrapper {
145
+ margin-top: 2px;
146
+
147
+ .msg-footer {
148
+ gap: 6px;
149
+ font-size: 10px;
150
+ }
151
+ }
152
+
153
+ &.is-anchor-target {
154
+ border-radius: 8px;
155
+ }
156
+ }
157
+ }
158
+
159
+ @media (hover: none), (pointer: coarse) {
160
+ .tool-group-container .tool-group-footer-wrapper {
161
+ opacity: 1;
162
+ }
163
+ }
164
+
133
165
  html.dark .tool-group-container .tool-group-wrapper.card-style {
134
166
  .tool-group-header {
135
167
  &:hover {
@@ -59,6 +59,8 @@
59
59
  }
60
60
 
61
61
  &__main {
62
+ min-width: 0;
63
+
62
64
  > .code-block-wrapper {
63
65
  border-radius: 8px;
64
66
  overflow: hidden;
@@ -70,6 +72,8 @@
70
72
  justify-content: space-between;
71
73
  align-items: flex-start;
72
74
  margin-bottom: 4px;
75
+ gap: 8px;
76
+ min-width: 0;
73
77
  }
74
78
 
75
79
  &__title {
@@ -77,7 +81,8 @@
77
81
  font-weight: 600;
78
82
  color: var(--text-color);
79
83
  flex: 1;
80
- margin-right: 8px;
84
+ min-width: 0;
85
+ overflow-wrap: anywhere;
81
86
  }
82
87
 
83
88
  &__session-id {
@@ -86,6 +91,10 @@
86
91
  opacity: .6;
87
92
  font-family: monospace;
88
93
  user-select: none;
94
+ min-width: 0;
95
+ max-width: 100%;
96
+ overflow: hidden;
97
+ text-overflow: ellipsis;
89
98
  white-space: nowrap;
90
99
  }
91
100
 
@@ -95,6 +104,7 @@
95
104
  cursor: pointer;
96
105
  padding: 0;
97
106
  text-align: right;
107
+ min-width: 0;
98
108
 
99
109
  &:hover {
100
110
  color: var(--text-color);
@@ -125,3 +135,51 @@
125
135
  background: var(--bg-color);
126
136
  }
127
137
  }
138
+
139
+ @media (max-width: 960px) {
140
+ .task-tool-card {
141
+ grid-template-columns: 18px minmax(0, 1fr);
142
+ gap: 8px;
143
+ padding: 8px;
144
+
145
+ &__left {
146
+ gap: 4px;
147
+ }
148
+
149
+ &__status-icon,
150
+ &__execution-icon {
151
+ font-size: 16px;
152
+ }
153
+
154
+ &__header {
155
+ flex-direction: column;
156
+ align-items: stretch;
157
+ gap: 4px;
158
+ }
159
+
160
+ &__title {
161
+ font-size: 12px;
162
+ line-height: 1.4;
163
+ }
164
+
165
+ &__session-link {
166
+ align-self: flex-start;
167
+ text-align: left;
168
+ }
169
+
170
+ &__session-id {
171
+ width: 100%;
172
+ font-size: 10px;
173
+ }
174
+
175
+ &__content {
176
+ font-size: 11px;
177
+ margin-bottom: 4px;
178
+ }
179
+
180
+ &__meta {
181
+ gap: 3px;
182
+ margin: 2px 0 4px;
183
+ }
184
+ }
185
+ }
@@ -8,12 +8,16 @@
8
8
  display: flex;
9
9
  align-items: center;
10
10
  gap: 8px;
11
+ padding: var(--subpage-tertiary-padding);
12
+ border: var(--subpage-tertiary-border);
13
+ border-radius: var(--subpage-tertiary-radius);
14
+ background: var(--subpage-tertiary-bg);
11
15
  }
12
16
 
13
17
  .config-view__complex-editor {
14
- border-radius: 10px;
15
- border: 1px solid var(--code-border);
16
- background: var(--code-bg);
18
+ border-radius: var(--subpage-tertiary-radius);
19
+ border: var(--subpage-tertiary-border);
20
+ background: var(--subpage-tertiary-bg);
17
21
  color: var(--text-color);
18
22
  font-family:
19
23
  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
@@ -26,13 +30,14 @@
26
30
  }
27
31
 
28
32
  .config-view__icon-button {
29
- width: 32px;
30
- height: 32px;
31
- min-width: 32px;
33
+ width: 28px;
34
+ height: 28px;
35
+ min-width: 28px;
32
36
  padding: 0;
33
37
  display: inline-flex;
34
38
  align-items: center;
35
39
  justify-content: center;
40
+ border-radius: 6px;
36
41
  }
37
42
 
38
43
  .config-view__icon-button--compact {
@@ -44,6 +49,7 @@
44
49
  .config-view__icon-button--full {
45
50
  width: 100%;
46
51
  min-width: 100%;
52
+ height: 30px;
47
53
  }
48
54
 
49
55
  .config-view__array-add {
@@ -63,3 +69,11 @@
63
69
  .config-view__array-add-inputs .ant-input-affix-wrapper {
64
70
  flex: 1;
65
71
  }
72
+
73
+ .config-view__array-item .ant-input,
74
+ .config-view__array-item .ant-input-affix-wrapper,
75
+ .config-view__array-add-inputs .ant-input,
76
+ .config-view__array-add-inputs .ant-input-affix-wrapper {
77
+ border-radius: 6px !important;
78
+ min-height: 30px;
79
+ }
@@ -3,31 +3,28 @@
3
3
  align-items: center;
4
4
  justify-content: space-between;
5
5
  gap: 16px;
6
- padding: 12px 14px;
7
- border-radius: 0;
8
- border: 1px solid var(--border-color);
9
- border-bottom: none;
10
- background-color: var(--sub-bg-color);
6
+ padding: var(--subpage-tertiary-padding);
7
+ border-radius: var(--subpage-tertiary-radius);
8
+ border: var(--subpage-tertiary-border);
9
+ background-color: var(--subpage-tertiary-bg);
10
+ transition: border-color .2s ease, background-color .2s ease;
11
11
  &.config-view__collapse-group {
12
12
  padding: 0;
13
13
  gap: 0;
14
+ overflow: hidden;
14
15
  > .ant-collapse-item {
15
16
  width: 100%;
16
- border-bottom: 1px solid var(--border-color);
17
+ border-bottom: none;
17
18
  .ant-collapse-header-text {
18
19
  flex-grow: 1;
19
20
  }
20
21
  }
21
22
  }
22
23
  }
23
- .config-view__field-row:first-child {
24
- border-top-left-radius: 8px;
25
- border-top-right-radius: 8px;
26
- }
27
- .config-view__field-row:last-child {
28
- border-bottom-left-radius: 8px;
29
- border-bottom-right-radius: 8px;
30
- border-bottom: 1px solid var(--border-color);
24
+
25
+ .config-view__field-row:hover {
26
+ border-color: var(--subpage-tertiary-hover-border);
27
+ background-color: var(--subpage-tertiary-hover-bg);
31
28
  }
32
29
 
33
30
  .config-view__field-row--stacked {
@@ -60,8 +57,9 @@
60
57
  }
61
58
 
62
59
  .config-view__field-title {
63
- font-size: 13px;
64
- font-weight: 600;
60
+ font-size: 12px;
61
+ line-height: 1.35;
62
+ font-weight: 500;
65
63
  color: var(--text-color);
66
64
  white-space: nowrap;
67
65
  overflow: hidden;
@@ -69,7 +67,7 @@
69
67
  }
70
68
 
71
69
  .config-view__field-desc {
72
- font-size: 12px;
70
+ font-size: 11px;
73
71
  color: var(--sub-text-color);
74
72
  white-space: nowrap;
75
73
  overflow: hidden;
@@ -87,6 +85,20 @@
87
85
  width: 100%;
88
86
  }
89
87
 
88
+ .config-view__field-control .ant-btn,
89
+ .config-view__field-control .ant-input,
90
+ .config-view__field-control .ant-input-affix-wrapper,
91
+ .config-view__field-control .ant-input-number,
92
+ .config-view__field-control .ant-select-selector {
93
+ border-radius: 6px !important;
94
+ }
95
+
96
+ .config-view__field-control .ant-input,
97
+ .config-view__field-control .ant-input-affix-wrapper,
98
+ .config-view__field-control .ant-select-selector {
99
+ min-height: 30px;
100
+ }
101
+
90
102
  .config-view__field-control .ant-input-textarea {
91
103
  width: 100%;
92
104
  }
@@ -95,3 +107,31 @@
95
107
  font-size: 16px;
96
108
  color: var(--sub-text-color);
97
109
  }
110
+
111
+ @media (max-width: 960px) {
112
+ .config-view__field-row {
113
+ flex-direction: column;
114
+ align-items: stretch;
115
+ gap: 10px;
116
+ }
117
+
118
+ .config-view__field-meta {
119
+ align-items: flex-start;
120
+ }
121
+
122
+ .config-view__field-title,
123
+ .config-view__field-desc {
124
+ white-space: normal;
125
+ }
126
+
127
+ .config-view__field-control {
128
+ min-width: 0;
129
+ width: 100%;
130
+ justify-content: flex-start;
131
+ }
132
+
133
+ .config-view__field-control > * {
134
+ flex: 1 1 auto;
135
+ width: 100%;
136
+ }
137
+ }
@@ -1,12 +1,13 @@
1
1
  .config-view__field-stack {
2
2
  display: flex;
3
3
  flex-direction: column;
4
- gap: 14px;
4
+ gap: 16px;
5
5
  }
6
6
 
7
7
  .config-view__field-list {
8
8
  display: flex;
9
9
  flex-direction: column;
10
+ gap: 8px;
10
11
  }
11
12
 
12
13
  .config-view__subsection {
@@ -26,6 +27,7 @@
26
27
  .config-view__subsection-body {
27
28
  display: flex;
28
29
  flex-direction: column;
30
+ gap: 8px;
29
31
  }
30
32
 
31
33
  .config-view__slider {
@@ -35,11 +37,15 @@
35
37
  .config-view__collapse-group {
36
38
  display: flex;
37
39
  flex-direction: column;
38
- gap: 12px;
40
+ gap: 0;
39
41
  }
40
42
 
41
43
  .config-view__collapse-group .ant-collapse-header {
42
- padding: 0;
44
+ padding: 12px 14px !important;
45
+ }
46
+
47
+ .config-view__collapse-group .ant-collapse-content-box {
48
+ padding: 0 12px 12px !important;
43
49
  }
44
50
 
45
51
  .config-view__collapse-header {
@@ -74,7 +80,7 @@
74
80
 
75
81
  .config-view__multiline-input {
76
82
  width: 100%;
77
- border-radius: 10px;
83
+ border-radius: 6px;
78
84
  }
79
85
 
80
86
  .config-view__option {