@jonsoc/ui 1.1.34 → 1.1.46

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 (201) hide show
  1. package/package.json +5 -1
  2. package/script/colors.txt +234 -234
  3. package/src/assets/favicon/favicon-v3.svg +6 -6
  4. package/src/assets/favicon/favicon.svg +6 -6
  5. package/src/assets/favicon/site.webmanifest +21 -21
  6. package/src/assets/icons/file-types/auto_light.svg +12 -12
  7. package/src/assets/icons/file-types/cursor.svg +1 -1
  8. package/src/assets/icons/file-types/cursor_light.svg +1 -1
  9. package/src/assets/icons/file-types/drone_light.svg +4 -4
  10. package/src/assets/icons/file-types/folder-admin-open.svg +6 -6
  11. package/src/assets/icons/file-types/folder-admin.svg +6 -6
  12. package/src/assets/icons/file-types/folder-circleci-open.svg +7 -7
  13. package/src/assets/icons/file-types/folder-circleci.svg +7 -7
  14. package/src/assets/icons/file-types/folder-flow-open.svg +6 -6
  15. package/src/assets/icons/file-types/folder-flow.svg +6 -6
  16. package/src/assets/icons/file-types/folder-gh-workflows-open.svg +6 -6
  17. package/src/assets/icons/file-types/folder-gh-workflows.svg +6 -6
  18. package/src/assets/icons/file-types/folder-github-open.svg +6 -6
  19. package/src/assets/icons/file-types/folder-github.svg +6 -6
  20. package/src/assets/icons/file-types/folder-intellij-open.svg +39 -39
  21. package/src/assets/icons/file-types/folder-intellij.svg +39 -39
  22. package/src/assets/icons/file-types/folder-macos-open.svg +6 -6
  23. package/src/assets/icons/file-types/folder-macos.svg +6 -6
  24. package/src/assets/icons/file-types/folder-next-open.svg +6 -6
  25. package/src/assets/icons/file-types/folder-next.svg +6 -6
  26. package/src/assets/icons/file-types/folder-nuxt-open.svg +6 -6
  27. package/src/assets/icons/file-types/folder-nuxt.svg +6 -6
  28. package/src/assets/icons/file-types/folder-open.svg +5 -5
  29. package/src/assets/icons/file-types/folder-scripts-open.svg +6 -6
  30. package/src/assets/icons/file-types/folder-scripts.svg +6 -6
  31. package/src/assets/icons/file-types/folder-target-open.svg +10 -10
  32. package/src/assets/icons/file-types/folder-target.svg +10 -10
  33. package/src/assets/icons/file-types/folder-turborepo-open.svg +15 -15
  34. package/src/assets/icons/file-types/folder-turborepo.svg +15 -15
  35. package/src/assets/icons/file-types/folder-vercel-open.svg +5 -5
  36. package/src/assets/icons/file-types/folder-vercel.svg +5 -5
  37. package/src/assets/icons/file-types/folder.svg +5 -5
  38. package/src/assets/icons/file-types/go_gopher.svg +35 -35
  39. package/src/assets/icons/file-types/nano-staged_light.svg +4 -4
  40. package/src/assets/icons/file-types/opa.svg +9 -9
  41. package/src/assets/icons/file-types/quarto.svg +5 -5
  42. package/src/assets/icons/file-types/rome.svg +6 -6
  43. package/src/assets/icons/file-types/stitches_light.svg +10 -10
  44. package/src/assets/icons/file-types/stylelint_light.svg +13 -13
  45. package/src/assets/icons/file-types/systemd.svg +0 -0
  46. package/src/assets/icons/file-types/systemd_light.svg +0 -0
  47. package/src/assets/icons/file-types/unocss.svg +5 -5
  48. package/src/assets/icons/file-types/vlang.svg +6 -6
  49. package/src/assets/icons/provider/abacus.svg +14 -14
  50. package/src/assets/icons/provider/aihubmix.svg +3 -3
  51. package/src/assets/icons/provider/alibaba-cn.svg +3 -3
  52. package/src/assets/icons/provider/alibaba.svg +3 -3
  53. package/src/assets/icons/provider/amazon-bedrock.svg +3 -3
  54. package/src/assets/icons/provider/anthropic.svg +2 -2
  55. package/src/assets/icons/provider/azure-cognitive-services.svg +24 -24
  56. package/src/assets/icons/provider/azure.svg +3 -3
  57. package/src/assets/icons/provider/bailing.svg +3 -3
  58. package/src/assets/icons/provider/baseten.svg +3 -3
  59. package/src/assets/icons/provider/cerebras.svg +4 -4
  60. package/src/assets/icons/provider/chutes.svg +24 -24
  61. package/src/assets/icons/provider/cloudflare-ai-gateway.svg +4 -4
  62. package/src/assets/icons/provider/cloudflare-workers-ai.svg +4 -4
  63. package/src/assets/icons/provider/cohere.svg +5 -5
  64. package/src/assets/icons/provider/cortecs.svg +24 -24
  65. package/src/assets/icons/provider/deepinfra.svg +4 -4
  66. package/src/assets/icons/provider/deepseek.svg +3 -3
  67. package/src/assets/icons/provider/fastrouter.svg +3 -3
  68. package/src/assets/icons/provider/fireworks-ai.svg +3 -3
  69. package/src/assets/icons/provider/friendli.svg +3 -3
  70. package/src/assets/icons/provider/github-copilot.svg +3 -3
  71. package/src/assets/icons/provider/github-models.svg +3 -3
  72. package/src/assets/icons/provider/google-vertex-anthropic.svg +24 -24
  73. package/src/assets/icons/provider/google-vertex.svg +10 -10
  74. package/src/assets/icons/provider/google.svg +3 -3
  75. package/src/assets/icons/provider/groq.svg +3 -3
  76. package/src/assets/icons/provider/helicone.svg +6 -6
  77. package/src/assets/icons/provider/huggingface.svg +3 -3
  78. package/src/assets/icons/provider/iflowcn.svg +3 -3
  79. package/src/assets/icons/provider/inception.svg +4 -4
  80. package/src/assets/icons/provider/inference.svg +3 -3
  81. package/src/assets/icons/provider/io-net.svg +5 -5
  82. package/src/assets/icons/provider/kimi-for-coding.svg +3 -3
  83. package/src/assets/icons/provider/llama.svg +3 -3
  84. package/src/assets/icons/provider/lmstudio.svg +24 -24
  85. package/src/assets/icons/provider/lucidquery.svg +3 -3
  86. package/src/assets/icons/provider/minimax-cn.svg +3 -3
  87. package/src/assets/icons/provider/minimax.svg +3 -3
  88. package/src/assets/icons/provider/mistral.svg +3 -3
  89. package/src/assets/icons/provider/modelscope.svg +5 -5
  90. package/src/assets/icons/provider/moonshotai-cn.svg +3 -3
  91. package/src/assets/icons/provider/moonshotai.svg +3 -3
  92. package/src/assets/icons/provider/morph.svg +24 -24
  93. package/src/assets/icons/provider/nano-gpt.svg +2 -2
  94. package/src/assets/icons/provider/nebius.svg +4 -4
  95. package/src/assets/icons/provider/nvidia.svg +3 -3
  96. package/src/assets/icons/provider/ollama-cloud.svg +7 -7
  97. package/src/assets/icons/provider/openai.svg +3 -3
  98. package/src/assets/icons/provider/opencode.svg +4 -4
  99. package/src/assets/icons/provider/openrouter.svg +8 -8
  100. package/src/assets/icons/provider/ovhcloud.svg +3 -3
  101. package/src/assets/icons/provider/perplexity.svg +3 -3
  102. package/src/assets/icons/provider/poe.svg +7 -7
  103. package/src/assets/icons/provider/requesty.svg +24 -24
  104. package/src/assets/icons/provider/sap-ai-core.svg +24 -24
  105. package/src/assets/icons/provider/scaleway.svg +5 -5
  106. package/src/assets/icons/provider/siliconflow-cn.svg +3 -3
  107. package/src/assets/icons/provider/siliconflow.svg +3 -3
  108. package/src/assets/icons/provider/submodel.svg +3 -3
  109. package/src/assets/icons/provider/synthetic.svg +24 -24
  110. package/src/assets/icons/provider/togetherai.svg +4 -4
  111. package/src/assets/icons/provider/upstage.svg +24 -24
  112. package/src/assets/icons/provider/v0.svg +3 -3
  113. package/src/assets/icons/provider/venice.svg +4 -4
  114. package/src/assets/icons/provider/vercel.svg +3 -3
  115. package/src/assets/icons/provider/vultr.svg +6 -6
  116. package/src/assets/icons/provider/wandb.svg +24 -24
  117. package/src/assets/icons/provider/xai.svg +3 -3
  118. package/src/assets/icons/provider/xiaomi.svg +3 -3
  119. package/src/assets/icons/provider/zai-coding-plan.svg +3 -3
  120. package/src/assets/icons/provider/zai.svg +3 -3
  121. package/src/assets/icons/provider/zenmux.svg +3 -3
  122. package/src/assets/icons/provider/zhipuai-coding-plan.svg +3 -3
  123. package/src/assets/icons/provider/zhipuai.svg +3 -3
  124. package/src/components/accordion.css +98 -98
  125. package/src/components/avatar.css +41 -41
  126. package/src/components/basic-tool.css +97 -97
  127. package/src/components/button.css +165 -165
  128. package/src/components/card.css +29 -29
  129. package/src/components/checkbox.css +121 -121
  130. package/src/components/code.css +4 -4
  131. package/src/components/collapsible.css +97 -97
  132. package/src/components/dialog.css +185 -185
  133. package/src/components/diff-changes.css +41 -41
  134. package/src/components/diff.css +35 -35
  135. package/src/components/dropdown-menu.css +125 -125
  136. package/src/components/file-icon.css +5 -5
  137. package/src/components/file-icons/sprite.svg +11707 -11707
  138. package/src/components/hover-card.css +61 -61
  139. package/src/components/icon-button.css +140 -140
  140. package/src/components/icon.css +34 -34
  141. package/src/components/image-preview.css +63 -63
  142. package/src/components/inline-input.css +17 -17
  143. package/src/components/keybind.css +18 -18
  144. package/src/components/list.css +278 -278
  145. package/src/components/logo.css +4 -4
  146. package/src/components/markdown.css +209 -209
  147. package/src/components/message-nav.css +122 -122
  148. package/src/components/message-part.css +803 -803
  149. package/src/components/popover.css +98 -98
  150. package/src/components/progress-circle.css +12 -12
  151. package/src/components/provider-icon.css +5 -5
  152. package/src/components/provider-icons/sprite.svg +882 -882
  153. package/src/components/radio-group.css +157 -157
  154. package/src/components/resize-handle.css +46 -46
  155. package/src/components/select.css +202 -202
  156. package/src/components/session-review.css +323 -323
  157. package/src/components/session-turn.css +514 -514
  158. package/src/components/spinner.css +6 -6
  159. package/src/components/sticky-accordion-header.css +16 -16
  160. package/src/components/switch.css +132 -132
  161. package/src/components/tabs.css +359 -359
  162. package/src/components/tag.css +37 -37
  163. package/src/components/text-field.css +134 -134
  164. package/src/components/toast.css +205 -205
  165. package/src/components/tooltip.css +74 -74
  166. package/src/components/typewriter.css +14 -14
  167. package/src/styles/animations.css +130 -130
  168. package/src/styles/base.css +393 -393
  169. package/src/styles/colors.css +592 -592
  170. package/src/styles/index.css +52 -52
  171. package/src/styles/tailwind/colors.css +244 -244
  172. package/src/styles/tailwind/index.css +72 -72
  173. package/src/styles/tailwind/utilities.css +113 -113
  174. package/src/styles/theme.css +592 -592
  175. package/src/styles/utilities.css +131 -131
  176. package/src/assets/fonts/cascadia-code-nerd-font-bold.woff2 +0 -1
  177. package/src/assets/fonts/cascadia-code-nerd-font.woff2 +0 -1
  178. package/src/assets/fonts/fira-code-nerd-font-bold.woff2 +0 -1
  179. package/src/assets/fonts/fira-code-nerd-font.woff2 +0 -1
  180. package/src/assets/fonts/geist-mono-bold.woff2 +0 -1
  181. package/src/assets/fonts/geist-mono-medium.woff2 +0 -1
  182. package/src/assets/fonts/geist-mono.woff2 +0 -1
  183. package/src/assets/fonts/hack-nerd-font-bold.woff2 +0 -1
  184. package/src/assets/fonts/hack-nerd-font.woff2 +0 -1
  185. package/src/assets/fonts/ibm-plex-mono-bold.woff2 +0 -1
  186. package/src/assets/fonts/ibm-plex-mono-medium.woff2 +0 -1
  187. package/src/assets/fonts/ibm-plex-mono.woff2 +0 -1
  188. package/src/assets/fonts/inconsolata-nerd-font-bold.woff2 +0 -1
  189. package/src/assets/fonts/inconsolata-nerd-font.woff2 +0 -1
  190. package/src/assets/fonts/intel-one-mono-nerd-font-bold.woff2 +0 -1
  191. package/src/assets/fonts/intel-one-mono-nerd-font.woff2 +0 -1
  192. package/src/assets/fonts/jetbrains-mono-nerd-font-bold.woff2 +0 -1
  193. package/src/assets/fonts/jetbrains-mono-nerd-font.woff2 +0 -1
  194. package/src/assets/fonts/meslo-lgs-nerd-font-bold.woff2 +0 -1
  195. package/src/assets/fonts/meslo-lgs-nerd-font.woff2 +0 -1
  196. package/src/assets/fonts/roboto-mono-nerd-font-bold.woff2 +0 -1
  197. package/src/assets/fonts/roboto-mono-nerd-font.woff2 +0 -1
  198. package/src/assets/fonts/source-code-pro-nerd-font-bold.woff2 +0 -1
  199. package/src/assets/fonts/source-code-pro-nerd-font.woff2 +0 -1
  200. package/src/assets/fonts/ubuntu-mono-nerd-font-bold.woff2 +0 -1
  201. package/src/assets/fonts/ubuntu-mono-nerd-font.woff2 +0 -1
@@ -1,514 +1,514 @@
1
- [data-component="session-turn"] {
2
- --session-turn-sticky-height: 0px;
3
- --sticky-header-height: calc(var(--session-title-height, 0px) + var(--session-turn-sticky-height, 0px) + 12px);
4
- /* flex: 1; */
5
- height: 100%;
6
- min-height: 0;
7
- min-width: 0;
8
- display: flex;
9
- align-items: flex-start;
10
- justify-content: flex-start;
11
-
12
- [data-slot="session-turn-content"] {
13
- flex-grow: 1;
14
- width: 100%;
15
- height: 100%;
16
- min-width: 0;
17
- overflow-y: auto;
18
- scrollbar-width: none;
19
- }
20
-
21
- [data-slot="session-turn-content"]::-webkit-scrollbar {
22
- display: none;
23
- }
24
-
25
- [data-slot="session-turn-message-container"] {
26
- display: flex;
27
- flex-direction: column;
28
- align-items: flex-start;
29
- align-self: stretch;
30
- min-width: 0;
31
- gap: 28px;
32
- overflow-anchor: none;
33
-
34
- [data-slot="session-turn-badge"] {
35
- display: inline-flex;
36
- align-items: center;
37
- padding: 2px 6px;
38
- border-radius: 4px;
39
- font-family: var(--font-family-mono);
40
- font-size: var(--font-size-x-small);
41
- font-weight: var(--font-weight-medium);
42
- line-height: var(--line-height-normal);
43
- white-space: nowrap;
44
- color: var(--text-base);
45
- background: var(--surface-raised-base);
46
- }
47
- }
48
-
49
- [data-slot="session-turn-attachments"] {
50
- width: 100%;
51
- min-width: 0;
52
- align-self: stretch;
53
- }
54
-
55
- [data-slot="session-turn-sticky"] {
56
- width: calc(100% + 9px);
57
- position: sticky;
58
- top: var(--session-title-height, 0px);
59
- z-index: 20;
60
- background-color: var(--background-stronger);
61
- margin-left: -9px;
62
- padding-left: 9px;
63
- padding-bottom: 12px;
64
- display: flex;
65
- flex-direction: column;
66
- gap: 12px;
67
-
68
- &::before {
69
- content: "";
70
- position: absolute;
71
- top: 0;
72
- bottom: 0;
73
- left: 0;
74
- right: 0;
75
- background-color: var(--background-stronger);
76
- z-index: -1;
77
- }
78
-
79
- &::after {
80
- content: "";
81
- position: absolute;
82
- top: 100%;
83
- left: 0;
84
- right: 0;
85
- height: 32px;
86
- background: linear-gradient(to bottom, var(--background-stronger), transparent);
87
- pointer-events: none;
88
- }
89
- }
90
-
91
- [data-slot="session-turn-response-trigger"] {
92
- width: fit-content;
93
- }
94
-
95
- [data-slot="session-turn-message-header"] {
96
- display: flex;
97
- align-items: center;
98
- align-self: stretch;
99
- height: 32px;
100
- }
101
-
102
- [data-slot="session-turn-message-content"] {
103
- margin-top: 0;
104
- max-width: 100%;
105
- }
106
-
107
- [data-component="user-message"] [data-slot="user-message-text"] {
108
- max-height: var(--user-message-collapsed-height, 64px);
109
- }
110
-
111
- [data-component="user-message"][data-expanded="true"] [data-slot="user-message-text"] {
112
- max-height: none;
113
- }
114
-
115
- [data-component="user-message"][data-can-expand="true"] [data-slot="user-message-text"] {
116
- padding-right: 36px;
117
- padding-bottom: 28px;
118
- }
119
-
120
- [data-component="user-message"] [data-slot="user-message-text"] [data-slot="user-message-expand"] {
121
- display: none;
122
- position: absolute;
123
- bottom: 6px;
124
- right: 6px;
125
- padding: 0;
126
- }
127
-
128
- [data-component="user-message"][data-can-expand="true"]
129
- [data-slot="user-message-text"]
130
- [data-slot="user-message-expand"],
131
- [data-component="user-message"][data-expanded="true"]
132
- [data-slot="user-message-text"]
133
- [data-slot="user-message-expand"] {
134
- display: inline-flex;
135
- align-items: center;
136
- justify-content: center;
137
- height: 22px;
138
- width: 22px;
139
- border: none;
140
- border-radius: 6px;
141
- background: transparent;
142
- cursor: pointer;
143
- color: var(--text-weak);
144
-
145
- [data-slot="icon-svg"] {
146
- transition: transform 0.15s ease;
147
- }
148
- }
149
-
150
- [data-component="user-message"][data-expanded="true"]
151
- [data-slot="user-message-text"]
152
- [data-slot="user-message-expand"]
153
- [data-slot="icon-svg"] {
154
- transform: rotate(180deg);
155
- }
156
-
157
- [data-component="user-message"] [data-slot="user-message-text"] [data-slot="user-message-expand"]:hover {
158
- background: var(--surface-raised-base);
159
- color: var(--text-base);
160
- }
161
-
162
- [data-slot="session-turn-user-badges"] {
163
- display: flex;
164
- align-items: center;
165
- gap: 6px;
166
- padding-left: 16px;
167
- }
168
-
169
- [data-slot="session-turn-message-title"] {
170
- width: 100%;
171
- font-size: var(--font-size-large);
172
- font-weight: 500;
173
- color: var(--text-strong);
174
- overflow: hidden;
175
- text-overflow: ellipsis;
176
- min-width: 0;
177
- white-space: nowrap;
178
- }
179
-
180
- [data-slot="session-turn-message-title"] h1 {
181
- overflow: hidden;
182
- text-overflow: ellipsis;
183
- min-width: 0;
184
- white-space: nowrap;
185
- font-size: inherit;
186
- font-weight: inherit;
187
- }
188
-
189
- [data-slot="session-turn-typewriter"] {
190
- overflow: hidden;
191
- text-overflow: ellipsis;
192
- min-width: 0;
193
- white-space: nowrap;
194
- }
195
-
196
- [data-slot="session-turn-summary-section"] {
197
- width: 100%;
198
- display: flex;
199
- flex-direction: column;
200
- gap: 24px;
201
- align-items: flex-start;
202
- align-self: stretch;
203
- }
204
-
205
- [data-slot="session-turn-summary-header"] {
206
- display: flex;
207
- flex-direction: column;
208
- align-items: flex-start;
209
- gap: 4px;
210
- align-self: stretch;
211
-
212
- [data-slot="session-turn-response"] {
213
- position: relative;
214
- width: 100%;
215
- }
216
-
217
- [data-slot="session-turn-response-copy-wrapper"] {
218
- position: absolute;
219
- top: 8px;
220
- right: 8px;
221
- opacity: 0;
222
- transition: opacity 0.15s ease;
223
- z-index: 1;
224
- }
225
-
226
- [data-slot="session-turn-response"]:hover [data-slot="session-turn-response-copy-wrapper"] {
227
- opacity: 1;
228
- }
229
-
230
- p {
231
- font-size: var(--font-size-base);
232
- line-height: var(--line-height-x-large);
233
- }
234
- }
235
-
236
- [data-slot="session-turn-summary-title"] {
237
- font-size: 13px; /* text-12-medium */
238
- font-weight: 500;
239
- color: var(--text-weak);
240
- }
241
-
242
- [data-slot="session-turn-markdown"],
243
- [data-slot="session-turn-accordion"] [data-slot="accordion-content"] {
244
- -webkit-user-select: text;
245
- user-select: text;
246
- }
247
-
248
- [data-slot="session-turn-markdown"] {
249
- &[data-diffs="true"] {
250
- font-size: 15px;
251
- }
252
-
253
- &[data-fade="true"] > * {
254
- animation: fadeUp 0.4s ease-out forwards;
255
- opacity: 0;
256
-
257
- &:nth-child(1) {
258
- animation-delay: 0.1s;
259
- }
260
- &:nth-child(2) {
261
- animation-delay: 0.2s;
262
- }
263
- &:nth-child(3) {
264
- animation-delay: 0.3s;
265
- }
266
- &:nth-child(4) {
267
- animation-delay: 0.4s;
268
- }
269
- &:nth-child(5) {
270
- animation-delay: 0.5s;
271
- }
272
- &:nth-child(6) {
273
- animation-delay: 0.6s;
274
- }
275
- &:nth-child(7) {
276
- animation-delay: 0.7s;
277
- }
278
- &:nth-child(8) {
279
- animation-delay: 0.8s;
280
- }
281
- &:nth-child(9) {
282
- animation-delay: 0.9s;
283
- }
284
- &:nth-child(10) {
285
- animation-delay: 1s;
286
- }
287
- &:nth-child(11) {
288
- animation-delay: 1.1s;
289
- }
290
- &:nth-child(12) {
291
- animation-delay: 1.2s;
292
- }
293
- &:nth-child(13) {
294
- animation-delay: 1.3s;
295
- }
296
- &:nth-child(14) {
297
- animation-delay: 1.4s;
298
- }
299
- &:nth-child(15) {
300
- animation-delay: 1.5s;
301
- }
302
- &:nth-child(16) {
303
- animation-delay: 1.6s;
304
- }
305
- &:nth-child(17) {
306
- animation-delay: 1.7s;
307
- }
308
- &:nth-child(18) {
309
- animation-delay: 1.8s;
310
- }
311
- &:nth-child(19) {
312
- animation-delay: 1.9s;
313
- }
314
- &:nth-child(20) {
315
- animation-delay: 2s;
316
- }
317
- &:nth-child(21) {
318
- animation-delay: 2.1s;
319
- }
320
- &:nth-child(22) {
321
- animation-delay: 2.2s;
322
- }
323
- &:nth-child(23) {
324
- animation-delay: 2.3s;
325
- }
326
- &:nth-child(24) {
327
- animation-delay: 2.4s;
328
- }
329
- &:nth-child(25) {
330
- animation-delay: 2.5s;
331
- }
332
- &:nth-child(26) {
333
- animation-delay: 2.6s;
334
- }
335
- &:nth-child(27) {
336
- animation-delay: 2.7s;
337
- }
338
- &:nth-child(28) {
339
- animation-delay: 2.8s;
340
- }
341
- &:nth-child(29) {
342
- animation-delay: 2.9s;
343
- }
344
- &:nth-child(30) {
345
- animation-delay: 3s;
346
- }
347
- }
348
- }
349
-
350
- [data-slot="session-turn-summary-section"] {
351
- position: relative;
352
-
353
- [data-slot="session-turn-summary-copy"] {
354
- position: absolute;
355
- top: 0;
356
- right: 0;
357
- opacity: 0;
358
- transition: opacity 0.15s ease;
359
- }
360
-
361
- &:hover [data-slot="session-turn-summary-copy"] {
362
- opacity: 1;
363
- }
364
- }
365
-
366
- [data-slot="session-turn-accordion"] {
367
- width: 100%;
368
- }
369
-
370
- [data-component="sticky-accordion-header"] {
371
- top: var(--sticky-header-height, 0px);
372
- &[data-expanded]::before {
373
- top: calc(-1 * var(--sticky-header-height, 0px));
374
- }
375
- }
376
-
377
- [data-slot="session-turn-accordion-trigger-content"] {
378
- display: flex;
379
- align-items: center;
380
- justify-content: space-between;
381
- width: 100%;
382
- gap: 20px;
383
-
384
- [data-expandable="false"] {
385
- pointer-events: none;
386
- }
387
- }
388
-
389
- [data-slot="session-turn-file-info"] {
390
- flex-grow: 1;
391
- display: flex;
392
- align-items: center;
393
- gap: 20px;
394
- min-width: 0;
395
- }
396
-
397
- [data-slot="session-turn-file-icon"] {
398
- flex-shrink: 0;
399
- width: 16px;
400
- height: 16px;
401
- }
402
-
403
- [data-slot="session-turn-file-path"] {
404
- display: flex;
405
- flex-grow: 1;
406
- min-width: 0;
407
- }
408
-
409
- [data-slot="session-turn-directory"] {
410
- color: var(--text-base);
411
- text-overflow: ellipsis;
412
- overflow: hidden;
413
- white-space: nowrap;
414
- direction: rtl;
415
- text-align: left;
416
- }
417
-
418
- [data-slot="session-turn-filename"] {
419
- color: var(--text-strong);
420
- flex-shrink: 0;
421
- }
422
-
423
- [data-slot="session-turn-accordion-actions"] {
424
- flex-shrink: 0;
425
- display: flex;
426
- gap: 16px;
427
- align-items: center;
428
- justify-content: flex-end;
429
- }
430
-
431
- [data-slot="session-turn-accordion-content"] {
432
- max-height: 240px; /* max-h-60 */
433
- overflow-y: auto;
434
- scrollbar-width: none;
435
- }
436
-
437
- [data-slot="session-turn-accordion-content"]::-webkit-scrollbar {
438
- display: none;
439
- }
440
-
441
- [data-slot="session-turn-response-section"] {
442
- width: calc(100% + 9px);
443
- min-width: 0;
444
- margin-left: -9px;
445
- padding-left: 9px;
446
- }
447
-
448
- [data-slot="session-turn-collapsible"] {
449
- gap: 32px;
450
- overflow: visible;
451
- }
452
-
453
- [data-slot="session-turn-collapsible-trigger-content"] {
454
- width: fit-content;
455
- display: flex;
456
- align-items: center;
457
- gap: 4px;
458
- color: var(--text-weak);
459
- margin-left: -9px;
460
-
461
- [data-component="spinner"] {
462
- width: 12px;
463
- height: 12px;
464
- margin-right: 4px;
465
- }
466
-
467
- [data-component="icon"] {
468
- width: 14px;
469
- height: 14px;
470
- }
471
- }
472
- [data-slot="session-turn-retry-message"] {
473
- font-weight: 500;
474
- color: var(--syntax-critical);
475
- }
476
- [data-slot="session-turn-retry-seconds"] {
477
- color: var(--text-weak);
478
- }
479
- [data-slot="session-turn-retry-attempt"] {
480
- color: var(--text-weak);
481
- }
482
-
483
- [data-slot="session-turn-details-text"] {
484
- font-size: 13px; /* text-12-medium */
485
- font-weight: 500;
486
- }
487
-
488
- .error-card {
489
- color: var(--text-on-critical-base);
490
- max-height: 240px;
491
- overflow-y: auto;
492
- }
493
-
494
- [data-slot="session-turn-collapsible-content-inner"] {
495
- width: 100%;
496
- min-width: 0;
497
- display: flex;
498
- flex-direction: column;
499
- align-self: stretch;
500
- gap: 12px;
501
-
502
- > :first-child > [data-component="markdown"]:first-child {
503
- margin-top: 0;
504
- }
505
- }
506
-
507
- [data-slot="session-turn-permission-parts"] {
508
- width: 100%;
509
- min-width: 0;
510
- display: flex;
511
- flex-direction: column;
512
- gap: 12px;
513
- }
514
- }
1
+ [data-component="session-turn"] {
2
+ --session-turn-sticky-height: 0px;
3
+ --sticky-header-height: calc(var(--session-title-height, 0px) + var(--session-turn-sticky-height, 0px) + 12px);
4
+ /* flex: 1; */
5
+ height: 100%;
6
+ min-height: 0;
7
+ min-width: 0;
8
+ display: flex;
9
+ align-items: flex-start;
10
+ justify-content: flex-start;
11
+
12
+ [data-slot="session-turn-content"] {
13
+ flex-grow: 1;
14
+ width: 100%;
15
+ height: 100%;
16
+ min-width: 0;
17
+ overflow-y: auto;
18
+ scrollbar-width: none;
19
+ }
20
+
21
+ [data-slot="session-turn-content"]::-webkit-scrollbar {
22
+ display: none;
23
+ }
24
+
25
+ [data-slot="session-turn-message-container"] {
26
+ display: flex;
27
+ flex-direction: column;
28
+ align-items: flex-start;
29
+ align-self: stretch;
30
+ min-width: 0;
31
+ gap: 28px;
32
+ overflow-anchor: none;
33
+
34
+ [data-slot="session-turn-badge"] {
35
+ display: inline-flex;
36
+ align-items: center;
37
+ padding: 2px 6px;
38
+ border-radius: 4px;
39
+ font-family: var(--font-family-mono);
40
+ font-size: var(--font-size-x-small);
41
+ font-weight: var(--font-weight-medium);
42
+ line-height: var(--line-height-normal);
43
+ white-space: nowrap;
44
+ color: var(--text-base);
45
+ background: var(--surface-raised-base);
46
+ }
47
+ }
48
+
49
+ [data-slot="session-turn-attachments"] {
50
+ width: 100%;
51
+ min-width: 0;
52
+ align-self: stretch;
53
+ }
54
+
55
+ [data-slot="session-turn-sticky"] {
56
+ width: calc(100% + 9px);
57
+ position: sticky;
58
+ top: var(--session-title-height, 0px);
59
+ z-index: 20;
60
+ background-color: var(--background-stronger);
61
+ margin-left: -9px;
62
+ padding-left: 9px;
63
+ padding-bottom: 12px;
64
+ display: flex;
65
+ flex-direction: column;
66
+ gap: 12px;
67
+
68
+ &::before {
69
+ content: "";
70
+ position: absolute;
71
+ top: 0;
72
+ bottom: 0;
73
+ left: 0;
74
+ right: 0;
75
+ background-color: var(--background-stronger);
76
+ z-index: -1;
77
+ }
78
+
79
+ &::after {
80
+ content: "";
81
+ position: absolute;
82
+ top: 100%;
83
+ left: 0;
84
+ right: 0;
85
+ height: 32px;
86
+ background: linear-gradient(to bottom, var(--background-stronger), transparent);
87
+ pointer-events: none;
88
+ }
89
+ }
90
+
91
+ [data-slot="session-turn-response-trigger"] {
92
+ width: fit-content;
93
+ }
94
+
95
+ [data-slot="session-turn-message-header"] {
96
+ display: flex;
97
+ align-items: center;
98
+ align-self: stretch;
99
+ height: 32px;
100
+ }
101
+
102
+ [data-slot="session-turn-message-content"] {
103
+ margin-top: 0;
104
+ max-width: 100%;
105
+ }
106
+
107
+ [data-component="user-message"] [data-slot="user-message-text"] {
108
+ max-height: var(--user-message-collapsed-height, 64px);
109
+ }
110
+
111
+ [data-component="user-message"][data-expanded="true"] [data-slot="user-message-text"] {
112
+ max-height: none;
113
+ }
114
+
115
+ [data-component="user-message"][data-can-expand="true"] [data-slot="user-message-text"] {
116
+ padding-right: 36px;
117
+ padding-bottom: 28px;
118
+ }
119
+
120
+ [data-component="user-message"] [data-slot="user-message-text"] [data-slot="user-message-expand"] {
121
+ display: none;
122
+ position: absolute;
123
+ bottom: 6px;
124
+ right: 6px;
125
+ padding: 0;
126
+ }
127
+
128
+ [data-component="user-message"][data-can-expand="true"]
129
+ [data-slot="user-message-text"]
130
+ [data-slot="user-message-expand"],
131
+ [data-component="user-message"][data-expanded="true"]
132
+ [data-slot="user-message-text"]
133
+ [data-slot="user-message-expand"] {
134
+ display: inline-flex;
135
+ align-items: center;
136
+ justify-content: center;
137
+ height: 22px;
138
+ width: 22px;
139
+ border: none;
140
+ border-radius: 6px;
141
+ background: transparent;
142
+ cursor: pointer;
143
+ color: var(--text-weak);
144
+
145
+ [data-slot="icon-svg"] {
146
+ transition: transform 0.15s ease;
147
+ }
148
+ }
149
+
150
+ [data-component="user-message"][data-expanded="true"]
151
+ [data-slot="user-message-text"]
152
+ [data-slot="user-message-expand"]
153
+ [data-slot="icon-svg"] {
154
+ transform: rotate(180deg);
155
+ }
156
+
157
+ [data-component="user-message"] [data-slot="user-message-text"] [data-slot="user-message-expand"]:hover {
158
+ background: var(--surface-raised-base);
159
+ color: var(--text-base);
160
+ }
161
+
162
+ [data-slot="session-turn-user-badges"] {
163
+ display: flex;
164
+ align-items: center;
165
+ gap: 6px;
166
+ padding-left: 16px;
167
+ }
168
+
169
+ [data-slot="session-turn-message-title"] {
170
+ width: 100%;
171
+ font-size: var(--font-size-large);
172
+ font-weight: 500;
173
+ color: var(--text-strong);
174
+ overflow: hidden;
175
+ text-overflow: ellipsis;
176
+ min-width: 0;
177
+ white-space: nowrap;
178
+ }
179
+
180
+ [data-slot="session-turn-message-title"] h1 {
181
+ overflow: hidden;
182
+ text-overflow: ellipsis;
183
+ min-width: 0;
184
+ white-space: nowrap;
185
+ font-size: inherit;
186
+ font-weight: inherit;
187
+ }
188
+
189
+ [data-slot="session-turn-typewriter"] {
190
+ overflow: hidden;
191
+ text-overflow: ellipsis;
192
+ min-width: 0;
193
+ white-space: nowrap;
194
+ }
195
+
196
+ [data-slot="session-turn-summary-section"] {
197
+ width: 100%;
198
+ display: flex;
199
+ flex-direction: column;
200
+ gap: 24px;
201
+ align-items: flex-start;
202
+ align-self: stretch;
203
+ }
204
+
205
+ [data-slot="session-turn-summary-header"] {
206
+ display: flex;
207
+ flex-direction: column;
208
+ align-items: flex-start;
209
+ gap: 4px;
210
+ align-self: stretch;
211
+
212
+ [data-slot="session-turn-response"] {
213
+ position: relative;
214
+ width: 100%;
215
+ }
216
+
217
+ [data-slot="session-turn-response-copy-wrapper"] {
218
+ position: absolute;
219
+ top: 8px;
220
+ right: 8px;
221
+ opacity: 0;
222
+ transition: opacity 0.15s ease;
223
+ z-index: 1;
224
+ }
225
+
226
+ [data-slot="session-turn-response"]:hover [data-slot="session-turn-response-copy-wrapper"] {
227
+ opacity: 1;
228
+ }
229
+
230
+ p {
231
+ font-size: var(--font-size-base);
232
+ line-height: var(--line-height-x-large);
233
+ }
234
+ }
235
+
236
+ [data-slot="session-turn-summary-title"] {
237
+ font-size: 13px; /* text-12-medium */
238
+ font-weight: 500;
239
+ color: var(--text-weak);
240
+ }
241
+
242
+ [data-slot="session-turn-markdown"],
243
+ [data-slot="session-turn-accordion"] [data-slot="accordion-content"] {
244
+ -webkit-user-select: text;
245
+ user-select: text;
246
+ }
247
+
248
+ [data-slot="session-turn-markdown"] {
249
+ &[data-diffs="true"] {
250
+ font-size: 15px;
251
+ }
252
+
253
+ &[data-fade="true"] > * {
254
+ animation: fadeUp 0.4s ease-out forwards;
255
+ opacity: 0;
256
+
257
+ &:nth-child(1) {
258
+ animation-delay: 0.1s;
259
+ }
260
+ &:nth-child(2) {
261
+ animation-delay: 0.2s;
262
+ }
263
+ &:nth-child(3) {
264
+ animation-delay: 0.3s;
265
+ }
266
+ &:nth-child(4) {
267
+ animation-delay: 0.4s;
268
+ }
269
+ &:nth-child(5) {
270
+ animation-delay: 0.5s;
271
+ }
272
+ &:nth-child(6) {
273
+ animation-delay: 0.6s;
274
+ }
275
+ &:nth-child(7) {
276
+ animation-delay: 0.7s;
277
+ }
278
+ &:nth-child(8) {
279
+ animation-delay: 0.8s;
280
+ }
281
+ &:nth-child(9) {
282
+ animation-delay: 0.9s;
283
+ }
284
+ &:nth-child(10) {
285
+ animation-delay: 1s;
286
+ }
287
+ &:nth-child(11) {
288
+ animation-delay: 1.1s;
289
+ }
290
+ &:nth-child(12) {
291
+ animation-delay: 1.2s;
292
+ }
293
+ &:nth-child(13) {
294
+ animation-delay: 1.3s;
295
+ }
296
+ &:nth-child(14) {
297
+ animation-delay: 1.4s;
298
+ }
299
+ &:nth-child(15) {
300
+ animation-delay: 1.5s;
301
+ }
302
+ &:nth-child(16) {
303
+ animation-delay: 1.6s;
304
+ }
305
+ &:nth-child(17) {
306
+ animation-delay: 1.7s;
307
+ }
308
+ &:nth-child(18) {
309
+ animation-delay: 1.8s;
310
+ }
311
+ &:nth-child(19) {
312
+ animation-delay: 1.9s;
313
+ }
314
+ &:nth-child(20) {
315
+ animation-delay: 2s;
316
+ }
317
+ &:nth-child(21) {
318
+ animation-delay: 2.1s;
319
+ }
320
+ &:nth-child(22) {
321
+ animation-delay: 2.2s;
322
+ }
323
+ &:nth-child(23) {
324
+ animation-delay: 2.3s;
325
+ }
326
+ &:nth-child(24) {
327
+ animation-delay: 2.4s;
328
+ }
329
+ &:nth-child(25) {
330
+ animation-delay: 2.5s;
331
+ }
332
+ &:nth-child(26) {
333
+ animation-delay: 2.6s;
334
+ }
335
+ &:nth-child(27) {
336
+ animation-delay: 2.7s;
337
+ }
338
+ &:nth-child(28) {
339
+ animation-delay: 2.8s;
340
+ }
341
+ &:nth-child(29) {
342
+ animation-delay: 2.9s;
343
+ }
344
+ &:nth-child(30) {
345
+ animation-delay: 3s;
346
+ }
347
+ }
348
+ }
349
+
350
+ [data-slot="session-turn-summary-section"] {
351
+ position: relative;
352
+
353
+ [data-slot="session-turn-summary-copy"] {
354
+ position: absolute;
355
+ top: 0;
356
+ right: 0;
357
+ opacity: 0;
358
+ transition: opacity 0.15s ease;
359
+ }
360
+
361
+ &:hover [data-slot="session-turn-summary-copy"] {
362
+ opacity: 1;
363
+ }
364
+ }
365
+
366
+ [data-slot="session-turn-accordion"] {
367
+ width: 100%;
368
+ }
369
+
370
+ [data-component="sticky-accordion-header"] {
371
+ top: var(--sticky-header-height, 0px);
372
+ &[data-expanded]::before {
373
+ top: calc(-1 * var(--sticky-header-height, 0px));
374
+ }
375
+ }
376
+
377
+ [data-slot="session-turn-accordion-trigger-content"] {
378
+ display: flex;
379
+ align-items: center;
380
+ justify-content: space-between;
381
+ width: 100%;
382
+ gap: 20px;
383
+
384
+ [data-expandable="false"] {
385
+ pointer-events: none;
386
+ }
387
+ }
388
+
389
+ [data-slot="session-turn-file-info"] {
390
+ flex-grow: 1;
391
+ display: flex;
392
+ align-items: center;
393
+ gap: 20px;
394
+ min-width: 0;
395
+ }
396
+
397
+ [data-slot="session-turn-file-icon"] {
398
+ flex-shrink: 0;
399
+ width: 16px;
400
+ height: 16px;
401
+ }
402
+
403
+ [data-slot="session-turn-file-path"] {
404
+ display: flex;
405
+ flex-grow: 1;
406
+ min-width: 0;
407
+ }
408
+
409
+ [data-slot="session-turn-directory"] {
410
+ color: var(--text-base);
411
+ text-overflow: ellipsis;
412
+ overflow: hidden;
413
+ white-space: nowrap;
414
+ direction: rtl;
415
+ text-align: left;
416
+ }
417
+
418
+ [data-slot="session-turn-filename"] {
419
+ color: var(--text-strong);
420
+ flex-shrink: 0;
421
+ }
422
+
423
+ [data-slot="session-turn-accordion-actions"] {
424
+ flex-shrink: 0;
425
+ display: flex;
426
+ gap: 16px;
427
+ align-items: center;
428
+ justify-content: flex-end;
429
+ }
430
+
431
+ [data-slot="session-turn-accordion-content"] {
432
+ max-height: 240px; /* max-h-60 */
433
+ overflow-y: auto;
434
+ scrollbar-width: none;
435
+ }
436
+
437
+ [data-slot="session-turn-accordion-content"]::-webkit-scrollbar {
438
+ display: none;
439
+ }
440
+
441
+ [data-slot="session-turn-response-section"] {
442
+ width: calc(100% + 9px);
443
+ min-width: 0;
444
+ margin-left: -9px;
445
+ padding-left: 9px;
446
+ }
447
+
448
+ [data-slot="session-turn-collapsible"] {
449
+ gap: 32px;
450
+ overflow: visible;
451
+ }
452
+
453
+ [data-slot="session-turn-collapsible-trigger-content"] {
454
+ width: fit-content;
455
+ display: flex;
456
+ align-items: center;
457
+ gap: 4px;
458
+ color: var(--text-weak);
459
+ margin-left: -9px;
460
+
461
+ [data-component="spinner"] {
462
+ width: 12px;
463
+ height: 12px;
464
+ margin-right: 4px;
465
+ }
466
+
467
+ [data-component="icon"] {
468
+ width: 14px;
469
+ height: 14px;
470
+ }
471
+ }
472
+ [data-slot="session-turn-retry-message"] {
473
+ font-weight: 500;
474
+ color: var(--syntax-critical);
475
+ }
476
+ [data-slot="session-turn-retry-seconds"] {
477
+ color: var(--text-weak);
478
+ }
479
+ [data-slot="session-turn-retry-attempt"] {
480
+ color: var(--text-weak);
481
+ }
482
+
483
+ [data-slot="session-turn-details-text"] {
484
+ font-size: 13px; /* text-12-medium */
485
+ font-weight: 500;
486
+ }
487
+
488
+ .error-card {
489
+ color: var(--text-on-critical-base);
490
+ max-height: 240px;
491
+ overflow-y: auto;
492
+ }
493
+
494
+ [data-slot="session-turn-collapsible-content-inner"] {
495
+ width: 100%;
496
+ min-width: 0;
497
+ display: flex;
498
+ flex-direction: column;
499
+ align-self: stretch;
500
+ gap: 12px;
501
+
502
+ > :first-child > [data-component="markdown"]:first-child {
503
+ margin-top: 0;
504
+ }
505
+ }
506
+
507
+ [data-slot="session-turn-permission-parts"] {
508
+ width: 100%;
509
+ min-width: 0;
510
+ display: flex;
511
+ flex-direction: column;
512
+ gap: 12px;
513
+ }
514
+ }