@cerebriline/ui 0.0.0-stage → 4.100.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ADOPTION.md +833 -0
- package/LICENSE +201 -0
- package/RADIX-COLORS-LICENSE +21 -0
- package/README.md +427 -2
- package/components/agent-approval-card.css +70 -0
- package/components/agent-approval-card.tsx +109 -0
- package/components/agent-ask-question.css +103 -0
- package/components/agent-ask-question.tsx +276 -0
- package/components/agent-aurora.css +228 -0
- package/components/agent-aurora.tsx +96 -0
- package/components/agent-changes.css +13 -0
- package/components/agent-changes.tsx +167 -0
- package/components/agent-chat/agent-chat.css +556 -0
- package/components/agent-chat/index.tsx +1037 -0
- package/components/agent-chat/tool-diff.tsx +165 -0
- package/components/agent-chat/tool-summary/agents.ts +114 -0
- package/components/agent-chat/tool-summary/diff.ts +152 -0
- package/components/agent-chat/tool-summary/index.ts +928 -0
- package/components/agent-chat/tool-summary/parsers.ts +611 -0
- package/components/agent-chat/tool-summary/paths.ts +84 -0
- package/components/agent-chat/tool-summary/team.ts +401 -0
- package/components/agent-command-output.tsx +63 -0
- package/components/agent-composer.tsx +263 -0
- package/components/agent-context-usage.tsx +181 -0
- package/components/agent-conversation-layout.tsx +139 -0
- package/components/agent-hero-heading.css +53 -0
- package/components/agent-hero-heading.tsx +45 -0
- package/components/agent-image-lightbox.tsx +48 -0
- package/components/agent-prompt-queue.css +20 -0
- package/components/agent-prompt-queue.tsx +350 -0
- package/components/agent-pull-request-bar.css +13 -0
- package/components/agent-pull-request-bar.tsx +346 -0
- package/components/agent-quick-actions.css +19 -0
- package/components/agent-quick-actions.tsx +70 -0
- package/components/agent-session-row.tsx +183 -0
- package/components/agent-welcome-hero-pointer.ts +199 -0
- package/components/agent-welcome-hero.css +205 -0
- package/components/agent-welcome-hero.tsx +68 -0
- package/components/attachment-drop-zone.tsx +154 -0
- package/components/badge.tsx +21 -0
- package/components/button.tsx +324 -0
- package/components/generated-media.tsx +173 -0
- package/components/github-icon.tsx +19 -0
- package/components/index.ts +133 -0
- package/components/markdown.css +490 -0
- package/components/markdown.ts +365 -0
- package/components/mermaid-block.tsx +722 -0
- package/components/mermaid-diagram.ts +1260 -0
- package/components/mermaid-dom.ts +301 -0
- package/components/message-scroller.css +118 -0
- package/components/message-scroller.tsx +114 -0
- package/components/search-combobox.css +67 -0
- package/components/search-combobox.tsx +433 -0
- package/components/session-status.css +19 -0
- package/components/session-status.tsx +39 -0
- package/components/switch.css +221 -0
- package/components/switch.tsx +48 -0
- package/components.css +16 -0
- package/dist/components/agent-approval-card.d.ts +14 -0
- package/dist/components/agent-approval-card.d.ts.map +1 -0
- package/dist/components/agent-approval-card.js +12 -0
- package/dist/components/agent-approval-card.js.map +1 -0
- package/dist/components/agent-ask-question.d.ts +18 -0
- package/dist/components/agent-ask-question.d.ts.map +1 -0
- package/dist/components/agent-ask-question.js +101 -0
- package/dist/components/agent-ask-question.js.map +1 -0
- package/dist/components/agent-aurora.d.ts +3 -0
- package/dist/components/agent-aurora.d.ts.map +1 -0
- package/dist/components/agent-aurora.js +60 -0
- package/dist/components/agent-aurora.js.map +1 -0
- package/dist/components/agent-changes.d.ts +26 -0
- package/dist/components/agent-changes.d.ts.map +1 -0
- package/dist/components/agent-changes.js +19 -0
- package/dist/components/agent-changes.js.map +1 -0
- package/dist/components/agent-chat/disclosure.d.ts +25 -0
- package/dist/components/agent-chat/disclosure.d.ts.map +1 -0
- package/dist/components/agent-chat/disclosure.js +39 -0
- package/dist/components/agent-chat/disclosure.js.map +1 -0
- package/dist/components/agent-chat/index.d.ts +140 -0
- package/dist/components/agent-chat/index.d.ts.map +1 -0
- package/dist/components/agent-chat/index.js +379 -0
- package/dist/components/agent-chat/index.js.map +1 -0
- package/dist/components/agent-chat/tool-diff.d.ts +32 -0
- package/dist/components/agent-chat/tool-diff.d.ts.map +1 -0
- package/dist/components/agent-chat/tool-diff.js +97 -0
- package/dist/components/agent-chat/tool-diff.js.map +1 -0
- package/dist/components/agent-chat/tool-summary/agents.d.ts +10 -0
- package/dist/components/agent-chat/tool-summary/agents.d.ts.map +1 -0
- package/dist/components/agent-chat/tool-summary/agents.js +100 -0
- package/dist/components/agent-chat/tool-summary/agents.js.map +1 -0
- package/dist/components/agent-chat/tool-summary/diff.d.ts +22 -0
- package/dist/components/agent-chat/tool-summary/diff.d.ts.map +1 -0
- package/dist/components/agent-chat/tool-summary/diff.js +127 -0
- package/dist/components/agent-chat/tool-summary/diff.js.map +1 -0
- package/dist/components/agent-chat/tool-summary/index.d.ts +145 -0
- package/dist/components/agent-chat/tool-summary/index.d.ts.map +1 -0
- package/dist/components/agent-chat/tool-summary/index.js +663 -0
- package/dist/components/agent-chat/tool-summary/index.js.map +1 -0
- package/dist/components/agent-chat/tool-summary/parsers.d.ts +114 -0
- package/dist/components/agent-chat/tool-summary/parsers.d.ts.map +1 -0
- package/dist/components/agent-chat/tool-summary/parsers.js +502 -0
- package/dist/components/agent-chat/tool-summary/parsers.js.map +1 -0
- package/dist/components/agent-chat/tool-summary/paths.d.ts +10 -0
- package/dist/components/agent-chat/tool-summary/paths.d.ts.map +1 -0
- package/dist/components/agent-chat/tool-summary/paths.js +88 -0
- package/dist/components/agent-chat/tool-summary/paths.js.map +1 -0
- package/dist/components/agent-chat/tool-summary/team.d.ts +16 -0
- package/dist/components/agent-chat/tool-summary/team.d.ts.map +1 -0
- package/dist/components/agent-chat/tool-summary/team.js +283 -0
- package/dist/components/agent-chat/tool-summary/team.js.map +1 -0
- package/dist/components/agent-command-output.d.ts +14 -0
- package/dist/components/agent-command-output.d.ts.map +1 -0
- package/dist/components/agent-command-output.js +22 -0
- package/dist/components/agent-command-output.js.map +1 -0
- package/dist/components/agent-composer.d.ts +34 -0
- package/dist/components/agent-composer.d.ts.map +1 -0
- package/dist/components/agent-composer.js +65 -0
- package/dist/components/agent-composer.js.map +1 -0
- package/dist/components/agent-context-usage.d.ts +28 -0
- package/dist/components/agent-context-usage.d.ts.map +1 -0
- package/dist/components/agent-context-usage.js +51 -0
- package/dist/components/agent-context-usage.js.map +1 -0
- package/dist/components/agent-conversation-layout.d.ts +30 -0
- package/dist/components/agent-conversation-layout.d.ts.map +1 -0
- package/dist/components/agent-conversation-layout.js +24 -0
- package/dist/components/agent-conversation-layout.js.map +1 -0
- package/dist/components/agent-hero-heading.d.ts +2 -0
- package/dist/components/agent-hero-heading.d.ts.map +1 -0
- package/dist/components/agent-hero-heading.js +20 -0
- package/dist/components/agent-hero-heading.js.map +1 -0
- package/dist/components/agent-image-lightbox.d.ts +11 -0
- package/dist/components/agent-image-lightbox.d.ts.map +1 -0
- package/dist/components/agent-image-lightbox.js +8 -0
- package/dist/components/agent-image-lightbox.js.map +1 -0
- package/dist/components/agent-prompt-queue.d.ts +14 -0
- package/dist/components/agent-prompt-queue.d.ts.map +1 -0
- package/dist/components/agent-prompt-queue.js +114 -0
- package/dist/components/agent-prompt-queue.js.map +1 -0
- package/dist/components/agent-pull-request-bar.d.ts +72 -0
- package/dist/components/agent-pull-request-bar.d.ts.map +1 -0
- package/dist/components/agent-pull-request-bar.js +90 -0
- package/dist/components/agent-pull-request-bar.js.map +1 -0
- package/dist/components/agent-quick-actions.d.ts +14 -0
- package/dist/components/agent-quick-actions.d.ts.map +1 -0
- package/dist/components/agent-quick-actions.js +12 -0
- package/dist/components/agent-quick-actions.js.map +1 -0
- package/dist/components/agent-session-row.d.ts +45 -0
- package/dist/components/agent-session-row.d.ts.map +1 -0
- package/dist/components/agent-session-row.js +34 -0
- package/dist/components/agent-session-row.js.map +1 -0
- package/dist/components/agent-welcome-hero-pointer.d.ts +3 -0
- package/dist/components/agent-welcome-hero-pointer.d.ts.map +1 -0
- package/dist/components/agent-welcome-hero-pointer.js +169 -0
- package/dist/components/agent-welcome-hero-pointer.js.map +1 -0
- package/dist/components/agent-welcome-hero.d.ts +9 -0
- package/dist/components/agent-welcome-hero.d.ts.map +1 -0
- package/dist/components/agent-welcome-hero.js +14 -0
- package/dist/components/agent-welcome-hero.js.map +1 -0
- package/dist/components/attachment-drop-zone.d.ts +15 -0
- package/dist/components/attachment-drop-zone.d.ts.map +1 -0
- package/dist/components/attachment-drop-zone.js +64 -0
- package/dist/components/attachment-drop-zone.js.map +1 -0
- package/dist/components/badge.d.ts +5 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +7 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/button.d.ts +27 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +209 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/generated-media.d.ts +12 -0
- package/dist/components/generated-media.d.ts.map +1 -0
- package/dist/components/generated-media.js +105 -0
- package/dist/components/generated-media.js.map +1 -0
- package/dist/components/github-icon.d.ts +3 -0
- package/dist/components/github-icon.d.ts.map +1 -0
- package/dist/components/github-icon.js +6 -0
- package/dist/components/github-icon.js.map +1 -0
- package/dist/components/index.d.ts +24 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +25 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/markdown.d.ts +48 -0
- package/dist/components/markdown.d.ts.map +1 -0
- package/dist/components/markdown.js +264 -0
- package/dist/components/markdown.js.map +1 -0
- package/dist/components/mermaid-block.d.ts +14 -0
- package/dist/components/mermaid-block.d.ts.map +1 -0
- package/dist/components/mermaid-block.js +339 -0
- package/dist/components/mermaid-block.js.map +1 -0
- package/dist/components/mermaid-diagram.d.ts +264 -0
- package/dist/components/mermaid-diagram.d.ts.map +1 -0
- package/dist/components/mermaid-diagram.js +999 -0
- package/dist/components/mermaid-diagram.js.map +1 -0
- package/dist/components/mermaid-dom.d.ts +51 -0
- package/dist/components/mermaid-dom.d.ts.map +1 -0
- package/dist/components/mermaid-dom.js +246 -0
- package/dist/components/mermaid-dom.js.map +1 -0
- package/dist/components/message-scroller.d.ts +23 -0
- package/dist/components/message-scroller.d.ts.map +1 -0
- package/dist/components/message-scroller.js +31 -0
- package/dist/components/message-scroller.js.map +1 -0
- package/dist/components/search-combobox.d.ts +44 -0
- package/dist/components/search-combobox.d.ts.map +1 -0
- package/dist/components/search-combobox.js +191 -0
- package/dist/components/search-combobox.js.map +1 -0
- package/dist/components/session-status.d.ts +9 -0
- package/dist/components/session-status.d.ts.map +1 -0
- package/dist/components/session-status.js +11 -0
- package/dist/components/session-status.js.map +1 -0
- package/dist/components/switch.d.ts +7 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +14 -0
- package/dist/components/switch.js.map +1 -0
- package/package.json +177 -5
- package/theme/base.css +83 -0
- package/theme/component-theme.css +126 -0
- package/theme/index.css +3 -0
- package/theme/palette.css +347 -0
- package/theme/scoped-tokens.css +503 -0
- package/theme/theme.css +90 -0
- package/theme/tokens.css +165 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.cline-chat-conversation {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
flex: 1 1 auto;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
color: var(--foreground);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.cline-chat-conversation-viewport {
|
|
13
|
+
width: 100%;
|
|
14
|
+
min-width: 0;
|
|
15
|
+
min-height: 0;
|
|
16
|
+
overflow-x: hidden;
|
|
17
|
+
overflow-y: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.cline-chat-conversation-content {
|
|
21
|
+
display: flex;
|
|
22
|
+
width: 100%;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
min-height: 100%;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 0.5rem;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cline-chat-empty-state {
|
|
31
|
+
display: flex;
|
|
32
|
+
width: 100%;
|
|
33
|
+
min-height: 16rem;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 0.75rem;
|
|
38
|
+
padding: 2rem;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
color: var(--muted-foreground);
|
|
41
|
+
text-align: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.cline-chat-empty-state-icon {
|
|
45
|
+
display: grid;
|
|
46
|
+
place-items: center;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.cline-chat-empty-state h3,
|
|
50
|
+
.cline-chat-empty-state p {
|
|
51
|
+
margin: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cline-chat-empty-state h3 {
|
|
55
|
+
color: var(--foreground);
|
|
56
|
+
font-size: var(--text-sm);
|
|
57
|
+
font-weight: var(--font-weight-medium);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cline-chat-empty-state p {
|
|
61
|
+
margin-top: 0.25rem;
|
|
62
|
+
font-size: var(--text-sm);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cline-chat-scroll-button {
|
|
66
|
+
position: absolute;
|
|
67
|
+
right: 1rem;
|
|
68
|
+
bottom: 1rem;
|
|
69
|
+
z-index: 20;
|
|
70
|
+
display: grid;
|
|
71
|
+
width: 2.25rem;
|
|
72
|
+
height: 2.25rem;
|
|
73
|
+
place-items: center;
|
|
74
|
+
padding: 0;
|
|
75
|
+
border: 1px solid var(--border);
|
|
76
|
+
border-radius: 9999px;
|
|
77
|
+
background: var(--secondary);
|
|
78
|
+
box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
|
|
79
|
+
color: var(--secondary-foreground);
|
|
80
|
+
font: inherit;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.cline-chat-scroll-button:hover {
|
|
85
|
+
background: var(--accent);
|
|
86
|
+
color: var(--accent-foreground);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cline-chat-message {
|
|
90
|
+
position: relative;
|
|
91
|
+
display: flex;
|
|
92
|
+
width: 100%;
|
|
93
|
+
min-width: 0;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
align-items: flex-start;
|
|
96
|
+
gap: 0.25rem;
|
|
97
|
+
font-size: var(--text-sm);
|
|
98
|
+
overflow-wrap: anywhere;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* Invisible hover bridge across only the gap before the absolutely-positioned
|
|
102
|
+
* actions. Keeping it narrow avoids intercepting pointer events intended for
|
|
103
|
+
* the following message. */
|
|
104
|
+
.cline-chat-message::after {
|
|
105
|
+
content: "";
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 100%;
|
|
108
|
+
left: 0;
|
|
109
|
+
right: 0;
|
|
110
|
+
height: 0.5rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.cline-chat-message[data-role="user"] {
|
|
114
|
+
align-items: flex-end;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.cline-chat-message-content {
|
|
118
|
+
max-width: 100%;
|
|
119
|
+
min-width: 0;
|
|
120
|
+
box-sizing: border-box;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
color: var(--foreground);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* User bubbles use the card surface with a subtle edge so they remain
|
|
126
|
+
* distinct from the transcript without overpowering assistant content. */
|
|
127
|
+
.cline-chat-message[data-role="user"] > .cline-chat-message-content {
|
|
128
|
+
max-width: 85%;
|
|
129
|
+
padding: 0.6rem 0.8rem;
|
|
130
|
+
border-radius: calc(var(--radius));
|
|
131
|
+
background: var(--card-surface);
|
|
132
|
+
border: 1px solid var(--neutral-a3);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.cline-chat-message[data-role="error"] > .cline-chat-message-content {
|
|
136
|
+
padding: 0.75rem;
|
|
137
|
+
border: 1px solid var(--error-border);
|
|
138
|
+
border-radius: var(--radius);
|
|
139
|
+
background: var(--error-surface);
|
|
140
|
+
color: var(--error-text);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.cline-chat-message[data-role="system"] > .cline-chat-message-content,
|
|
144
|
+
.cline-chat-message[data-role="status"] > .cline-chat-message-content {
|
|
145
|
+
color: var(--muted-foreground);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Actions appear and vanish instantly — a fade on hover chrome reads as
|
|
149
|
+
* lag, not polish. They float as a quiet self-backed rectangle OVER
|
|
150
|
+
* whatever follows, so the transcript reserves no blank space for them. */
|
|
151
|
+
.cline-chat-message-actions {
|
|
152
|
+
position: absolute;
|
|
153
|
+
top: 100%;
|
|
154
|
+
z-index: 10;
|
|
155
|
+
display: flex;
|
|
156
|
+
min-height: 1.5rem;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: 0.125rem;
|
|
159
|
+
margin-top: 0.375rem;
|
|
160
|
+
padding: 0.125rem 0;
|
|
161
|
+
border-radius: var(--radius);
|
|
162
|
+
background: color-mix(in oklab, var(--background) 92%, transparent);
|
|
163
|
+
backdrop-filter: blur(4px);
|
|
164
|
+
pointer-events: none;
|
|
165
|
+
opacity: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cline-chat-message-actions[data-side="start"] {
|
|
169
|
+
left: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.cline-chat-message-actions[data-side="end"] {
|
|
173
|
+
right: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.cline-chat-message:hover > .cline-chat-message-actions,
|
|
177
|
+
.cline-chat-message:has(
|
|
178
|
+
> .cline-chat-message-actions .cline-chat-message-action:focus-visible
|
|
179
|
+
)
|
|
180
|
+
> .cline-chat-message-actions,
|
|
181
|
+
.cline-chat-message-actions[data-visible="true"] {
|
|
182
|
+
pointer-events: auto;
|
|
183
|
+
opacity: 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.cline-chat-message-action {
|
|
187
|
+
width: 1.75rem;
|
|
188
|
+
height: 1.75rem;
|
|
189
|
+
min-width: 1.75rem;
|
|
190
|
+
padding: 0;
|
|
191
|
+
aspect-ratio: 1;
|
|
192
|
+
font: inherit;
|
|
193
|
+
font-size: var(--text-xs);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.cline-chat-message-action > svg {
|
|
197
|
+
width: 0.875rem;
|
|
198
|
+
height: 0.875rem;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* The timestamp ends flush against the pill border without a trailing
|
|
202
|
+
* inset of its own, so give it one. */
|
|
203
|
+
.cline-chat-message-actions > time {
|
|
204
|
+
margin-inline-start: 0.25rem;
|
|
205
|
+
margin-inline-end: 0.1875rem;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.cline-chat-reasoning {
|
|
209
|
+
width: 100%;
|
|
210
|
+
min-width: 0;
|
|
211
|
+
margin: 0.6rem 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.cline-chat-reasoning-trigger,
|
|
215
|
+
.cline-chat-tool-trigger,
|
|
216
|
+
.cline-chat-work-trigger {
|
|
217
|
+
display: flex;
|
|
218
|
+
max-width: 100%;
|
|
219
|
+
min-height: 1.75rem;
|
|
220
|
+
align-items: center;
|
|
221
|
+
justify-content: flex-start;
|
|
222
|
+
gap: 0.5rem;
|
|
223
|
+
padding: 0.25rem 0;
|
|
224
|
+
border: 0;
|
|
225
|
+
background: transparent;
|
|
226
|
+
color: var(--muted-foreground);
|
|
227
|
+
font: inherit;
|
|
228
|
+
font-size: var(--text-sm);
|
|
229
|
+
font-weight: var(--font-weight-medium);
|
|
230
|
+
text-align: left;
|
|
231
|
+
transition: color 120ms ease;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
button.cline-chat-reasoning-trigger,
|
|
235
|
+
button.cline-chat-tool-trigger,
|
|
236
|
+
button.cline-chat-work-trigger {
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
button.cline-chat-reasoning-trigger:disabled,
|
|
241
|
+
button.cline-chat-tool-trigger:disabled,
|
|
242
|
+
button.cline-chat-work-trigger:disabled {
|
|
243
|
+
cursor: not-allowed;
|
|
244
|
+
opacity: 0.5;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.cline-chat-reasoning-trigger:hover,
|
|
248
|
+
.cline-chat-work-trigger:hover {
|
|
249
|
+
color: var(--foreground);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.cline-chat-disclosure-icon {
|
|
253
|
+
flex: 0 0 auto;
|
|
254
|
+
transition: transform 180ms cubic-bezier(0.45, 0, 0.55, 1);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
[aria-expanded="true"] > .cline-chat-disclosure-icon {
|
|
258
|
+
transform: rotate(180deg);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* The work summary's chevron points right while collapsed and continues
|
|
262
|
+
* counterclockwise to point up when expanded. */
|
|
263
|
+
.cline-chat-work-trigger > .cline-chat-disclosure-icon {
|
|
264
|
+
transform: rotate(-90deg);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.cline-chat-work-trigger[aria-expanded="true"] > .cline-chat-disclosure-icon {
|
|
268
|
+
transform: rotate(-180deg);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* Disclosure open/close glides on a symmetric ease-in-out (the iOS-style
|
|
272
|
+
* curve) rather than snapping. */
|
|
273
|
+
.cline-chat-disclosure-content-motion {
|
|
274
|
+
display: grid;
|
|
275
|
+
min-width: 0;
|
|
276
|
+
grid-template-rows: 0fr;
|
|
277
|
+
opacity: 0;
|
|
278
|
+
visibility: hidden;
|
|
279
|
+
transition:
|
|
280
|
+
grid-template-rows 180ms cubic-bezier(0.45, 0, 0.55, 1),
|
|
281
|
+
opacity 180ms cubic-bezier(0.45, 0, 0.55, 1),
|
|
282
|
+
visibility 0s linear 180ms;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.cline-chat-disclosure-content-motion[data-state="open"] {
|
|
286
|
+
grid-template-rows: 1fr;
|
|
287
|
+
opacity: 1;
|
|
288
|
+
visibility: visible;
|
|
289
|
+
transition-delay: 0s;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.cline-chat-disclosure-content-motion-inner {
|
|
293
|
+
min-height: 0;
|
|
294
|
+
overflow: hidden;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* Running reasoning/tool titles use their inherited text color as the bright
|
|
298
|
+
* band, so the same shimmer fits muted thinking text and primary tool text. */
|
|
299
|
+
.cline-chat-streaming-title {
|
|
300
|
+
display: inline-block;
|
|
301
|
+
background-image: linear-gradient(
|
|
302
|
+
90deg,
|
|
303
|
+
color-mix(in oklab, currentcolor 55%, transparent) 0%,
|
|
304
|
+
currentcolor 50%,
|
|
305
|
+
color-mix(in oklab, currentcolor 55%, transparent) 100%
|
|
306
|
+
);
|
|
307
|
+
background-position: 200% 0;
|
|
308
|
+
background-size: 200% 100%;
|
|
309
|
+
-webkit-background-clip: text;
|
|
310
|
+
background-clip: text;
|
|
311
|
+
-webkit-text-fill-color: transparent;
|
|
312
|
+
animation: cline-chat-title-shimmer 2.25s linear infinite;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.cline-chat-thinking-icon {
|
|
316
|
+
flex: 0 0 auto;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* Thinking prose stays capped and scrollable so a long trace never pushes
|
|
320
|
+
* the transcript around. The X axis is pinned shut: `overflow-y: auto`
|
|
321
|
+
* alone would compute overflow-x to `auto` and let a long unbreakable
|
|
322
|
+
* token add a horizontal scrollbar. */
|
|
323
|
+
.cline-chat-thinking-content {
|
|
324
|
+
max-height: 12rem;
|
|
325
|
+
overflow-x: hidden;
|
|
326
|
+
overflow-y: auto;
|
|
327
|
+
/* Legible first, de-emphasized second: plain muted-foreground reads
|
|
328
|
+
* too faint for multi-line prose, so lean most of the way back toward
|
|
329
|
+
* the body text color. */
|
|
330
|
+
color: color-mix(in oklab, var(--foreground) 75%, var(--muted-foreground));
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/* The reveal rule below is `.cline-chat-message:hover`, so hovering anywhere
|
|
334
|
+
* in the message pops the action row — including the reasoning disclosure
|
|
335
|
+
* nested in the message content. The actions act on the message body, so
|
|
336
|
+
* suppress the reveal while the pointer is inside the thinking panel.
|
|
337
|
+
* `[data-visible]` still wins, keeping pending/error states pinned open. */
|
|
338
|
+
.cline-chat-message:has(
|
|
339
|
+
> .cline-chat-message-content .cline-chat-reasoning:hover
|
|
340
|
+
)
|
|
341
|
+
> .cline-chat-message-actions:not([data-visible="true"]) {
|
|
342
|
+
pointer-events: none;
|
|
343
|
+
opacity: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.cline-chat-reasoning-content {
|
|
347
|
+
max-width: 100%;
|
|
348
|
+
min-width: 0;
|
|
349
|
+
margin-top: 0.375rem;
|
|
350
|
+
padding: 0.75rem;
|
|
351
|
+
border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
|
|
352
|
+
border-radius: var(--radius);
|
|
353
|
+
background: color-mix(in oklab, var(--muted) 30%, transparent);
|
|
354
|
+
color: var(--muted-foreground);
|
|
355
|
+
font-size: var(--text-sm);
|
|
356
|
+
line-height: 1.625;
|
|
357
|
+
box-sizing: border-box;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.cline-chat-tool {
|
|
361
|
+
width: 100%;
|
|
362
|
+
min-width: 0;
|
|
363
|
+
margin: 0.5rem 0;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* Running rows share the thinking indicator's muted gray (the base trigger
|
|
367
|
+
* color above) — the spinner alone signals activity. Errors go red; hover
|
|
368
|
+
* brightens without shifting hue. */
|
|
369
|
+
.cline-chat-tool-trigger[data-status="error"] {
|
|
370
|
+
color: var(--error-text);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
button.cline-chat-tool-trigger:hover {
|
|
374
|
+
color: var(--foreground);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
button.cline-chat-tool-trigger[data-status="error"]:hover {
|
|
378
|
+
color: color-mix(in oklab, var(--error-text) 80%, var(--foreground));
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.cline-chat-tool-icon {
|
|
382
|
+
display: inline-grid;
|
|
383
|
+
flex: 0 0 auto;
|
|
384
|
+
place-items: center;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/* Row labels stay on one line, take the full available width, and
|
|
388
|
+
* ellipsize at the container edge — the data layer never truncates. */
|
|
389
|
+
.cline-chat-tool-label {
|
|
390
|
+
min-width: 0;
|
|
391
|
+
overflow: hidden;
|
|
392
|
+
text-overflow: ellipsis;
|
|
393
|
+
white-space: nowrap;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.cline-chat-tool-diff {
|
|
397
|
+
flex: 0 0 auto;
|
|
398
|
+
font-family: var(--font-mono);
|
|
399
|
+
font-size: var(--text-xs);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.cline-chat-tool-diff [data-diff="additions"] {
|
|
403
|
+
color: var(--success-text);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.cline-chat-tool-diff [data-diff="deletions"] {
|
|
407
|
+
color: var(--error-text);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* The spinner stands in for the tool icon while the call is in flight, so
|
|
411
|
+
* it fills the same 1rem box the icons render at and the label never
|
|
412
|
+
* shifts when they swap. It draws in currentColor to match whatever the
|
|
413
|
+
* row text renders as (muted gray normally, red on error). */
|
|
414
|
+
.cline-chat-tool-progress {
|
|
415
|
+
width: 1rem;
|
|
416
|
+
height: 1rem;
|
|
417
|
+
flex: 0 0 auto;
|
|
418
|
+
box-sizing: border-box;
|
|
419
|
+
border: 2px solid color-mix(in oklab, currentColor 25%, transparent);
|
|
420
|
+
border-top-color: currentColor;
|
|
421
|
+
border-radius: 9999px;
|
|
422
|
+
animation: cline-chat-spin 800ms linear infinite;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.cline-chat-tool-content {
|
|
426
|
+
max-width: 100%;
|
|
427
|
+
min-width: 0;
|
|
428
|
+
margin-top: 0.375rem;
|
|
429
|
+
padding-left: 1rem;
|
|
430
|
+
overflow-x: hidden;
|
|
431
|
+
color: var(--muted-foreground);
|
|
432
|
+
font-size: var(--text-sm);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* Expanded reasoning and tool panels can share a lightweight disclosure
|
|
436
|
+
* rail instead of their default panel chrome. The rail sits beneath a 1rem
|
|
437
|
+
* trigger icon, while the inset aligns its content with the trigger label. */
|
|
438
|
+
.cline-chat-panel-rail {
|
|
439
|
+
max-width: 100%;
|
|
440
|
+
margin-top: 0;
|
|
441
|
+
margin-left: 0.45rem;
|
|
442
|
+
padding: 0.4rem 1rem;
|
|
443
|
+
border: 0;
|
|
444
|
+
border-left: 1px solid var(--border);
|
|
445
|
+
border-radius: 0;
|
|
446
|
+
background: transparent;
|
|
447
|
+
font-size: var(--text-sm);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
.cline-chat-tool-details {
|
|
451
|
+
display: grid;
|
|
452
|
+
gap: 0.25rem;
|
|
453
|
+
overflow-wrap: anywhere;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.cline-chat-tool-code {
|
|
457
|
+
max-width: 100%;
|
|
458
|
+
margin: 0.5rem 0 0;
|
|
459
|
+
padding: 0.5rem;
|
|
460
|
+
overflow-x: hidden;
|
|
461
|
+
border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
|
|
462
|
+
border-radius: calc(var(--radius) - 2px);
|
|
463
|
+
background: color-mix(in oklab, var(--background) 60%, transparent);
|
|
464
|
+
color: var(--foreground);
|
|
465
|
+
font-family: var(--font-mono);
|
|
466
|
+
font-size: var(--text-xs);
|
|
467
|
+
line-height: 1.625;
|
|
468
|
+
white-space: pre-wrap;
|
|
469
|
+
overflow-wrap: anywhere;
|
|
470
|
+
box-sizing: border-box;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.cline-chat-work {
|
|
474
|
+
width: 100%;
|
|
475
|
+
min-width: 0;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* Expanded work re-shows the run's normal chat rows at transcript level,
|
|
479
|
+
* with the tight working-row rhythm the live run uses. */
|
|
480
|
+
.cline-chat-work-content {
|
|
481
|
+
display: flex;
|
|
482
|
+
max-width: 100%;
|
|
483
|
+
min-width: 0;
|
|
484
|
+
flex-direction: column;
|
|
485
|
+
gap: 0.25rem;
|
|
486
|
+
margin-top: 0.25rem;
|
|
487
|
+
box-sizing: border-box;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* The flex gap owns row spacing inside expanded work; the rows' own
|
|
491
|
+
* transcript margins would double it. */
|
|
492
|
+
.cline-chat-work-content > .cline-chat-tool,
|
|
493
|
+
.cline-chat-work-content > .cline-chat-reasoning {
|
|
494
|
+
margin: 0;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.cline-chat-conversation-viewport:focus-visible {
|
|
498
|
+
outline: 2px solid var(--ring);
|
|
499
|
+
outline-offset: -2px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.cline-chat-scroll-button:focus-visible,
|
|
503
|
+
.cline-chat-message-action:focus-visible,
|
|
504
|
+
.cline-chat-reasoning-trigger:focus-visible,
|
|
505
|
+
.cline-chat-tool-trigger:focus-visible,
|
|
506
|
+
.cline-chat-work-trigger:focus-visible {
|
|
507
|
+
outline: 2px solid var(--ring);
|
|
508
|
+
outline-offset: 2px;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
@media (min-width: 48rem) {
|
|
512
|
+
.cline-chat-message[data-role="user"] > .cline-chat-message-content {
|
|
513
|
+
max-width: 50%;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
@media (prefers-reduced-motion: reduce) {
|
|
518
|
+
.cline-chat-disclosure-icon,
|
|
519
|
+
.cline-chat-work-trigger > .cline-chat-disclosure-icon {
|
|
520
|
+
transition: none;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
.cline-chat-streaming-title {
|
|
524
|
+
background: none;
|
|
525
|
+
-webkit-text-fill-color: currentcolor;
|
|
526
|
+
animation: none;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.cline-chat-disclosure-content-motion {
|
|
530
|
+
transition: none;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.cline-chat-tool-progress {
|
|
534
|
+
animation: none;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
@media (hover: none), (pointer: coarse) {
|
|
539
|
+
.cline-chat-message-actions {
|
|
540
|
+
pointer-events: auto;
|
|
541
|
+
opacity: 1;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
@keyframes cline-chat-spin {
|
|
546
|
+
to {
|
|
547
|
+
transform: rotate(360deg);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
@keyframes cline-chat-title-shimmer {
|
|
552
|
+
to {
|
|
553
|
+
background-position: -200% 0;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|