reifyui 0.13.8 → 0.14.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.
@@ -0,0 +1,306 @@
1
+ /* reifyui/agent-chat: the agent conversation (AgentConversation, AgentTurnView, AgentComposer …).
2
+
3
+ Token contract. Every colour reads --uac-* first, then the package-wide --uic-* set, then a light
4
+ fallback, so the same file follows themes/light.css, themes/dark.css or a host's own tokens:
5
+ --uac-bg the page colour behind the conversation (the dock's fade, the text's fade)
6
+ --uac-surface cards, the composer, the call list --uic-surface
7
+ --uac-surface-2 code and output wells --uic-surface-2
8
+ --uac-ink / --uac-ink-2 / --uac-mute / --uac-faint text, strongest to quietest
9
+ --uac-line / --uac-line-soft hairlines
10
+ --uac-brand the live mark's aura, links, focus --uic-brand
11
+ --uac-user-bg the person's bubble --uic-brand-faint
12
+ --uac-add / --uac-del lines added and removed
13
+ --uac-fail a failed call or turn --uic-fail-ink
14
+ --uac-mono code --uic-mono
15
+ --uac-font-md prose size --uic-font-md */
16
+
17
+ :where(.uac-convo, .uac-turn, .uac-composer, .uac-working, .uac-group, .uac-step, .uac-todo, .uac-mark, .uac-outcome) {
18
+ --_bg: var(--uac-bg, var(--uic-bg, var(--uic-surface, #fff)));
19
+ --_surface: var(--uac-surface, var(--uic-surface, #fff));
20
+ --_surface-2: var(--uac-surface-2, var(--uic-surface-2, #f6f7f9));
21
+ --_ink: var(--uac-ink, var(--uic-ink, #15171c));
22
+ --_ink-2: var(--uac-ink-2, var(--uic-ink-2, #3a3d45));
23
+ --_mute: var(--uac-mute, var(--uic-mute, #5d6069));
24
+ --_faint: var(--uac-faint, var(--uic-mute-2, #8e9199));
25
+ --_line: var(--uac-line, var(--uic-line, #dfe1e7));
26
+ --_line-soft: var(--uac-line-soft, var(--uic-line-soft, #eff1f4));
27
+ --_brand: var(--uac-brand, var(--uic-brand, #285aff));
28
+ --_user-bg: var(--uac-user-bg, var(--uic-brand-faint, #eff3ff));
29
+ --_add: var(--uac-add, #1a7f37);
30
+ --_del: var(--uac-del, #cf222e);
31
+ --_fail: var(--uac-fail, var(--uic-fail-ink, #b91c1c));
32
+ --_warn: var(--uac-warn, var(--uic-incomplete-ink, #92400e));
33
+ --_mono: var(--uac-mono, var(--uic-mono, ui-monospace, SFMono-Regular, Menlo, monospace));
34
+ --_fs: var(--uac-font-md, var(--uic-font-md, 14.5px));
35
+ --_hover: var(--uic-hover-wash, rgba(0, 0, 0, .04));
36
+ }
37
+
38
+ .uac-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
39
+
40
+ /* ── the column ──────────────────────────────────────────────────────────────────────────────── */
41
+ .uac-convo { display: flex; flex-direction: column; min-width: 0; color: var(--_ink); }
42
+ .uac-convo.is-pane { height: 100%; min-height: 0; }
43
+ .uac-convo.is-pane > .uac-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
44
+ /* page mode: the column reaches the bottom of what its scroller shows (measured into --uac-fill),
45
+ so the dock rests at the foot of the screen even when the conversation is short */
46
+ .uac-convo.is-page { min-height: var(--uac-fill, 100dvh); }
47
+ .uac-convo.is-page > .uac-scroll { flex: 1; }
48
+ .uac-thread { display: flex; flex-direction: column; gap: 30px; padding-bottom: 8px; min-width: 0; }
49
+ .uac-dock { position: sticky; bottom: 0; z-index: 5; padding: 18px 0 max(14px, env(safe-area-inset-bottom, 0px));
50
+ background: linear-gradient(to bottom, transparent, var(--_bg) 20px); }
51
+ .uac-notice { margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--_line); border-radius: 10px; background: var(--_surface-2);
52
+ font-size: 12.5px; color: var(--_ink-2); }
53
+ .uac-jump { position: absolute; left: 50%; top: -26px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%;
54
+ display: grid; place-items: center; background: var(--_surface); color: var(--_ink-2); border: 1px solid var(--_line);
55
+ box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .35); cursor: pointer; }
56
+ .uac-jump:hover { color: var(--_ink); }
57
+ .uac-jump:focus-visible { outline: 2px solid var(--_brand); outline-offset: 2px; }
58
+
59
+ /* ── a turn ──────────────────────────────────────────────────────────────────────────────────── */
60
+ .uac-turn { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
61
+ .uac-user { display: flex; justify-content: flex-end; min-width: 0; }
62
+ .uac-user-b { max-width: min(82%, 580px); background: var(--_user-bg); color: var(--_ink); border-radius: 18px 18px 6px 18px;
63
+ padding: 10px 15px; font-size: var(--_fs); line-height: 1.55; min-width: 0; }
64
+ .uac-user-t { white-space: pre-wrap; overflow-wrap: anywhere; }
65
+ .uac-user-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
66
+ .uac-user-files:last-child { margin-bottom: 0; }
67
+ .uac-user-img { max-width: 220px; max-height: 160px; border-radius: 10px; display: block; object-fit: cover; }
68
+ .uac-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 8px; border-radius: 7px;
69
+ background: color-mix(in srgb, var(--_surface) 70%, transparent); border: 1px solid var(--_line); font-size: 12.5px; color: var(--_ink-2); }
70
+ .uac-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
71
+ .uac-agent { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
72
+ .uac-agent > * { max-width: 100%; }
73
+ .uac-agent > .uac-md, .uac-agent > .uac-todo, .uac-agent > .uac-group.is-open, .uac-agent > .uac-outcome, .uac-agent > .uac-meta { align-self: stretch; }
74
+ .uac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--_faint); }
75
+ .uac-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: var(--_faint); }
76
+
77
+ /* ── prose ───────────────────────────────────────────────────────────────────────────────────── */
78
+ .uac-md { font-size: var(--_fs); line-height: 1.66; color: var(--_ink); min-width: 0; overflow-wrap: anywhere; }
79
+ .uac-md > :first-child { margin-top: 0; }
80
+ .uac-md > :last-child { margin-bottom: 0; }
81
+ .uac-md p { margin: 0 0 10px; }
82
+ .uac-md h1, .uac-md h2, .uac-md h3, .uac-md h4 { margin: 18px 0 8px; line-height: 1.3; font-weight: 650; }
83
+ .uac-md h1 { font-size: 1.3em; } .uac-md h2 { font-size: 1.18em; } .uac-md h3 { font-size: 1.06em; } .uac-md h4 { font-size: 1em; }
84
+ .uac-md ul, .uac-md ol { margin: 0 0 10px; padding-left: 1.4em; }
85
+ .uac-md li { margin: 3px 0; }
86
+ .uac-md a { color: var(--_brand); text-decoration: underline; text-underline-offset: 2px; }
87
+ .uac-md code { font-family: var(--_mono); font-size: .88em; padding: 1px 5px; border-radius: 5px; background: var(--_surface-2); border: 1px solid var(--_line-soft); }
88
+ .uac-md pre { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; overflow-x: auto; background: var(--_surface-2); border: 1px solid var(--_line-soft); font-size: 12.5px; line-height: 1.55; }
89
+ .uac-md pre code { padding: 0; border: 0; background: none; font-size: inherit; }
90
+ .uac-md blockquote { margin: 0 0 10px; padding: 2px 0 2px 12px; border-left: 3px solid var(--_line); color: var(--_ink-2); }
91
+ .uac-md table { border-collapse: collapse; margin: 0 0 12px; font-size: .94em; display: block; max-width: 100%; overflow-x: auto; }
92
+ .uac-md th, .uac-md td { border: 1px solid var(--_line); padding: 5px 9px; text-align: left; vertical-align: top; }
93
+ .uac-md hr { border: 0; border-top: 1px solid var(--_line); margin: 14px 0; }
94
+ .uac-md img { max-width: 100%; border-radius: 8px; }
95
+ .uac-plain { white-space: pre-wrap; }
96
+ /* the newest words of streaming text fade in: a short gradient rides the end of the last line */
97
+ .uac-md.is-streaming > :last-child:not(pre):not(ul):not(ol):not(table):not(div)::after,
98
+ .uac-md.is-streaming > :is(ul, ol):last-child > li:last-child::after,
99
+ .uac-md.is-streaming .uac-plain::after,
100
+ .uac-md.is-streaming > div:last-child > :last-child:not(pre):not(ul):not(ol):not(table)::after {
101
+ content: ''; display: inline-block; width: 3.4em; height: 1.25em; margin-left: -3.4em; vertical-align: text-bottom;
102
+ background: linear-gradient(90deg, color-mix(in srgb, var(--_bg) 0%, transparent), var(--_bg) 92%); pointer-events: none; }
103
+
104
+ /* ── the live line and the mark ──────────────────────────────────────────────────────────────── */
105
+ .uac-working { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; max-width: 100%; font-size: 13px; color: var(--_mute); }
106
+ .uac-working.is-button { background: none; border: 0; margin: 0; padding: 2px 8px 2px 0; font: inherit; font-size: 13px; color: var(--_mute);
107
+ cursor: pointer; border-radius: 7px; text-align: left; }
108
+ .uac-working.is-button:hover .uac-verb:not(.uac-shimmer) { color: var(--_ink); }
109
+ .uac-working.is-button:focus-visible, .uac-sum:focus-visible, .uac-step-h:focus-visible { outline: 2px solid var(--_brand); outline-offset: 1px; }
110
+ .uac-elapsed { flex: none; font-variant-numeric: tabular-nums; color: var(--_faint); }
111
+ .uac-sep { flex: none; color: var(--_faint); }
112
+ .uac-verb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--_ink-2); }
113
+ .uac-chev { flex: none; display: inline-flex; color: var(--_faint); }
114
+ .uac-shimmer { color: transparent; background: linear-gradient(90deg, var(--_mute) 0%, var(--_mute) 38%, var(--_ink) 50%, var(--_mute) 62%, var(--_mute) 100%);
115
+ background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; animation: uac-shimmer 2.4s linear infinite; }
116
+ @keyframes uac-shimmer { from { background-position: 100% 0; } to { background-position: -160% 0; } }
117
+
118
+ .uac-mark { position: relative; flex: none; display: inline-grid; place-items: center; width: var(--uac-mark, 18px); height: var(--uac-mark, 18px); perspective: 80px; }
119
+ .uac-mark-in { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 5px; overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
120
+ .uac-mark-in > img, .uac-mark-in > svg { display: block; width: 100%; height: 100%; object-fit: contain; }
121
+ .uac-mark-aura { position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; opacity: 0;
122
+ background: radial-gradient(circle, color-mix(in srgb, var(--_brand) 34%, transparent) 0%, transparent 68%);
123
+ animation: uac-aura 2s ease-out infinite; }
124
+ .uac-mark[data-motion="dots"] .uac-mark-aura { display: none; }
125
+ @keyframes uac-aura { 0% { opacity: 0; transform: scale(.55); } 35% { opacity: .55; } 100% { opacity: 0; transform: scale(1.35); } }
126
+
127
+ .uac-mark[data-motion="bloom"] .uac-mark-in { overflow: visible; animation: uac-bloom 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
128
+ @keyframes uac-bloom { 0% { transform: rotate(0deg) scale(.8); } 50% { transform: rotate(30deg) scale(1.08); } 100% { transform: rotate(60deg) scale(.8); } }
129
+ .uac-mark[data-motion="sheen"] .uac-mark-in { animation: uac-bob 2.2s ease-in-out infinite; }
130
+ .uac-mark[data-motion="sheen"] .uac-mark-in::after { content: ''; position: absolute; inset: 0; transform: translateX(-130%);
131
+ background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .85) 50%, transparent 72%); animation: uac-sheen 2.2s ease-in-out infinite; }
132
+ @keyframes uac-sheen { 0%, 15% { transform: translateX(-130%); } 65%, 100% { transform: translateX(130%); } }
133
+ .uac-mark[data-motion="glint"] .uac-mark-in { animation: uac-glint 1.7s ease-in-out infinite; }
134
+ @keyframes uac-glint { 0%, 100% { transform: scale(.86) rotate(0deg); filter: brightness(1); } 50% { transform: scale(1.06) rotate(8deg); filter: brightness(1.25) saturate(1.2); } }
135
+ .uac-mark[data-motion="flutter"] .uac-mark-in { animation: uac-flutter .95s ease-in-out infinite; }
136
+ @keyframes uac-flutter { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-2px) rotate(6deg); } }
137
+ .uac-mark[data-motion="glide"] .uac-mark-in { overflow: visible; animation: uac-glide 2s ease-in-out infinite; }
138
+ @keyframes uac-glide { 0%, 100% { transform: translate(0, 1px) rotate(-5deg); } 50% { transform: translate(1px, -2px) rotate(5deg); } }
139
+ .uac-mark[data-motion="blink"] .uac-mark-in { animation: uac-blink 2s ease-in-out infinite; }
140
+ @keyframes uac-blink { 0%, 42%, 58%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.12); } }
141
+ .uac-mark[data-motion="flip"] .uac-mark-in { overflow: visible; animation: uac-flip 2.2s cubic-bezier(.6, 0, .4, 1) infinite; }
142
+ @keyframes uac-flip { 0% { transform: rotateY(0deg); } 60%, 100% { transform: rotateY(360deg); } }
143
+ .uac-mark[data-motion="swim"] .uac-mark-in { overflow: visible; animation: uac-swim 1.6s ease-in-out infinite; }
144
+ @keyframes uac-swim { 0%, 100% { transform: translateX(-1px) rotate(-6deg); } 50% { transform: translateX(1.5px) rotate(5deg); } }
145
+ .uac-mark[data-motion="spin"] .uac-mark-in { animation: uac-spin 2.4s linear infinite; }
146
+ .uac-mark[data-motion="wave"] .uac-mark-in { overflow: visible; transform-origin: 50% 90%; animation: uac-wave 1.1s ease-in-out infinite; }
147
+ @keyframes uac-wave { 0%, 100% { transform: rotate(-11deg); } 50% { transform: rotate(11deg); } }
148
+ .uac-mark[data-motion="dash"] .uac-mark-in { overflow: visible; animation: uac-dash 1.1s ease-in-out infinite; }
149
+ @keyframes uac-dash { 0%, 100% { transform: translateX(-1.5px) skewX(0deg); } 40% { transform: translateX(2px) skewX(-9deg); } }
150
+ .uac-mark[data-motion="scuttle"] .uac-mark-in { overflow: visible; animation: uac-scuttle .7s ease-in-out infinite; }
151
+ @keyframes uac-scuttle { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(1.5px); } }
152
+ .uac-mark[data-motion="equalize"] .uac-mark-in { transform-origin: 50% 100%; animation: uac-eq 1s ease-in-out infinite; }
153
+ @keyframes uac-eq { 0%, 100% { transform: scaleY(.72); } 50% { transform: scaleY(1.06); } }
154
+ .uac-mark[data-motion="bob"] .uac-mark-in { animation: uac-bob 1.4s ease-in-out infinite; }
155
+ @keyframes uac-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
156
+ .uac-mark[data-motion="pulse"] .uac-mark-in { animation: uac-pulse 1.6s ease-in-out infinite; }
157
+ @keyframes uac-pulse { 0%, 100% { transform: scale(.86); opacity: .72; } 50% { transform: scale(1.04); opacity: 1; } }
158
+ @keyframes uac-spin { to { transform: rotate(360deg); } }
159
+
160
+ /* no mark: three dots jostling round a small loop, each at its own size and phase */
161
+ .uac-mark[data-motion="dots"] .uac-mark-in { overflow: visible; border-radius: 0; }
162
+ .uac-mark[data-motion="dots"] i { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--_brand); animation: uac-dots 1.5s ease-in-out infinite; }
163
+ .uac-mark[data-motion="dots"] i:nth-child(1) { width: 4px; height: 4px; }
164
+ .uac-mark[data-motion="dots"] i:nth-child(2) { width: 5px; height: 5px; animation-delay: -.5s; }
165
+ .uac-mark[data-motion="dots"] i:nth-child(3) { width: 3.5px; height: 3.5px; animation-delay: -1s; }
166
+ @keyframes uac-dots {
167
+ 0%, 100% { transform: translate(2px, 9px); }
168
+ 33% { transform: translate(8px, 3px) scale(1.15); }
169
+ 66% { transform: translate(13px, 10px) scale(.85); }
170
+ }
171
+
172
+ /* ── work: the summary line, the calls, one call ─────────────────────────────────────────────── */
173
+ .uac-group { min-width: 0; max-width: 100%; }
174
+ .uac-sum { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; background: none; border: 0; margin: 0; padding: 2px 8px 2px 0;
175
+ font: inherit; font-size: 13px; color: var(--_mute); cursor: pointer; border-radius: 7px; text-align: left; min-height: 26px; }
176
+ .uac-sum:hover { color: var(--_ink); }
177
+ .uac-sum:hover .uac-chev { color: var(--_ink-2); }
178
+ .uac-sum-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
179
+ .uac-fail-n { flex: none; font-size: 11.5px; color: var(--_fail); }
180
+ .uac-calls { margin-top: 6px; border: 1px solid var(--_line); border-radius: 11px; overflow: hidden; background: var(--_surface); }
181
+ .uac-step { min-width: 0; }
182
+ .uac-step + .uac-step { border-top: 1px solid var(--_line-soft); }
183
+ .uac-step-h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; margin: 0; padding: 7px 11px; background: none; border: 0;
184
+ font: inherit; font-size: 12.75px; color: var(--_ink-2); text-align: left; cursor: pointer; min-width: 0; }
185
+ .uac-step-h:disabled { cursor: default; }
186
+ .uac-step-h:hover:not(:disabled) { background: var(--_hover); }
187
+ .uac-step-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
188
+ .uac-step-v { color: var(--_mute); }
189
+ .uac-step-o { color: var(--_ink); }
190
+ .uac-step-o.is-mono { font-family: var(--_mono); font-size: 12px; }
191
+ .uac-step-n { flex: none; font-size: 12px; color: var(--_faint); }
192
+ .uac-step-t .uac-step-n { margin-left: 6px; }
193
+ .uac-step-time { flex: none; font-size: 12px; color: var(--_faint); font-variant-numeric: tabular-nums; }
194
+ .uac-step.is-failed .uac-step-o, .uac-step.is-failed .uac-step-v { color: var(--_fail); }
195
+ .uac-step-err { margin: -2px 0 0; padding: 0 12px 9px 36px; font-family: var(--_mono); font-size: 12px; color: var(--_fail); overflow-wrap: anywhere; }
196
+ .uac-kind, .uac-x, .uac-ring, .uac-stopped { flex: none; width: 16px; height: 16px; display: grid; place-items: center; }
197
+ .uac-kind { color: var(--_faint); }
198
+ .uac-kind svg { width: 14px; height: 14px; }
199
+ .uac-x { color: var(--_fail); }
200
+ .uac-ring::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.8px solid var(--_line); border-top-color: var(--_brand); animation: uac-spin .9s linear infinite; }
201
+ .uac-stopped::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--_faint); }
202
+ .uac-thought { padding: 0 14px 12px 36px; font-size: 12.75px; line-height: 1.6; color: var(--_mute); white-space: pre-wrap; overflow-wrap: anywhere; }
203
+ .uac-group.is-live .uac-calls { margin-top: 4px; }
204
+
205
+ .uac-diff { flex: none; display: inline-flex; gap: 3px; font-family: var(--_mono); font-size: 11px; line-height: 1; }
206
+ .uac-add, .uac-del { padding: 3px 4px; border-radius: 4px; }
207
+ .uac-add { color: var(--_add); background: color-mix(in srgb, var(--_add) 13%, transparent); }
208
+ .uac-del { color: var(--_del); background: color-mix(in srgb, var(--_del) 11%, transparent); }
209
+
210
+ .uac-detail { display: flex; flex-direction: column; gap: 10px; padding: 2px 12px 12px 36px; min-width: 0; }
211
+ .uac-sec { min-width: 0; }
212
+ .uac-sec > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px;
213
+ font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--_faint); }
214
+ .uac-sec.is-failed > header > span:first-child { color: var(--_fail); }
215
+ .uac-copy { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; margin: -3px -6px -3px 0; background: none; border: 0; border-radius: 6px;
216
+ font: inherit; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--_faint); cursor: pointer; }
217
+ .uac-copy:hover { color: var(--_ink); background: var(--_hover); }
218
+ .uac-copy.is-ok { color: var(--_add); }
219
+ .uac-copy:focus-visible { outline: 2px solid var(--_brand); outline-offset: 1px; }
220
+ .uac-lines pre { margin: 0; max-height: 320px; overflow: auto; padding: 8px 0; border-radius: 8px; background: var(--_surface-2); border: 1px solid var(--_line-soft);
221
+ font-family: var(--_mono); font-size: 12px; line-height: 1.55; color: var(--_ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
222
+ .uac-ln { display: block; padding: 0 11px; min-height: 1.55em; }
223
+ .uac-ln.is-add { color: var(--_add); background: color-mix(in srgb, var(--_add) 11%, transparent); }
224
+ .uac-ln.is-del { color: var(--_del); background: color-mix(in srgb, var(--_del) 9%, transparent); }
225
+ .uac-ln.is-cmd { color: var(--_ink); }
226
+ .uac-ln.is-note, .uac-ln.is-path { color: var(--_faint); font-family: inherit; }
227
+ .uac-lno { display: inline-block; min-width: 2.4em; margin-right: 8px; color: var(--_faint); text-align: right; user-select: none; }
228
+ .uac-more { margin: 5px 0 0; padding: 2px 0; background: none; border: 0; font: inherit; font-size: 12px; color: var(--_brand); cursor: pointer; }
229
+ .uac-more:hover { text-decoration: underline; }
230
+ .uac-none { margin: 0; font-size: 12px; color: var(--_faint); }
231
+
232
+ /* ── the plan ────────────────────────────────────────────────────────────────────────────────── */
233
+ .uac-todo { display: flex; flex-direction: column; gap: 5px; padding: 10px 14px; border: 1px solid var(--_line); border-radius: 12px; background: var(--_surface); min-width: 0; }
234
+ .uac-todo-i { display: flex; align-items: flex-start; gap: 9px; font-size: 13.25px; line-height: 1.45; color: var(--_ink); min-width: 0; }
235
+ .uac-todo-t { min-width: 0; overflow-wrap: anywhere; }
236
+ .uac-todo-m { flex: none; width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; border: 1.5px dashed var(--_faint); display: grid; place-items: center; box-sizing: border-box; }
237
+ .uac-todo-i.is-completed .uac-todo-m { border: 0; background: var(--_ink-2); color: var(--_surface); }
238
+ .uac-todo-i.is-completed .uac-todo-t { color: var(--_mute); }
239
+ .uac-todo-i.is-in_progress .uac-todo-m { border: 1.5px solid var(--_line); border-top-color: var(--_brand); animation: uac-spin 1s linear infinite; }
240
+ .uac-todo-i.is-in_progress.is-held .uac-todo-m { animation: none; border-top-color: var(--_faint); }
241
+ .uac-todo-i.is-in_progress .uac-todo-t { font-weight: 550; }
242
+ .uac-todo-i.is-cancelled .uac-todo-t { color: var(--_faint); text-decoration: line-through; }
243
+
244
+ /* ── how it ended ────────────────────────────────────────────────────────────────────────────── */
245
+ .uac-outcome { font-size: 12.5px; color: var(--_faint); font-variant-numeric: tabular-nums; }
246
+ .uac-outcome.is-failed > span { color: var(--_fail); }
247
+ .uac-outcome.is-incomplete > span { color: var(--_warn); }
248
+ .uac-outcome-why { margin: 6px 0 0; padding: 9px 12px; border-radius: 9px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
249
+ color: var(--uic-fail-ink, #b91c1c); background: var(--uic-fail-bg, #fef2f2); border: 1px solid var(--uic-fail-line, #fecaca); }
250
+ .uac-outcome.is-incomplete .uac-outcome-why { color: var(--uic-incomplete-ink, #92400e); background: var(--uic-incomplete-bg, #fffbeb); border-color: var(--uic-incomplete-line, #fde68a); }
251
+
252
+ /* ── the composer ────────────────────────────────────────────────────────────────────────────── */
253
+ .uac-composer { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 9px 14px; border: 1px solid var(--_line); border-radius: 20px;
254
+ background: var(--_surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px -18px rgba(15, 23, 42, .28); transition: border-color .15s, box-shadow .15s; }
255
+ .uac-composer:focus-within { border-color: color-mix(in srgb, var(--_brand) 40%, var(--_line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--_brand) 12%, transparent), 0 10px 28px -18px rgba(15, 23, 42, .28); }
256
+ .uac-composer.is-dropping { border-color: var(--_brand); background: color-mix(in srgb, var(--_brand) 5%, var(--_surface)); }
257
+ .uac-composer.is-disabled { opacity: .7; }
258
+ .uac-composer textarea { display: block; width: 100%; min-height: 26px; margin: 0; padding: 4px 2px; border: 0; outline: 0; resize: none; background: transparent;
259
+ font: inherit; font-size: 15px; line-height: 1.5; color: var(--_ink); }
260
+ .uac-composer textarea::placeholder { color: var(--_faint); }
261
+ .uac-composer-row { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; }
262
+ .uac-composer-sp { flex: 1; min-width: 0; }
263
+ .uac-composer-foot { font-size: 12px; color: var(--_faint); }
264
+ .uac-icon-btn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--_line); background: var(--_surface);
265
+ color: var(--_mute); cursor: pointer; }
266
+ .uac-icon-btn:hover:not(:disabled) { color: var(--_ink); background: var(--_hover); }
267
+ .uac-send { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
268
+ background: var(--uac-send-bg, var(--_ink)); color: var(--uac-send-ink, var(--_surface)); transition: opacity .15s, transform .1s; }
269
+ .uac-send:active:not(:disabled) { transform: scale(.94); }
270
+ .uac-send:disabled { opacity: .3; cursor: not-allowed; }
271
+ .uac-send.is-stop:disabled { opacity: .5; cursor: progress; }
272
+ .uac-icon-btn:focus-visible, .uac-send:focus-visible { outline: 2px solid var(--_brand); outline-offset: 2px; }
273
+ .uac-atts { display: flex; flex-wrap: wrap; gap: 6px; }
274
+ .uac-att { display: inline-flex; align-items: center; gap: 6px; max-width: min(260px, 100%); padding: 4px 4px 4px 8px; border: 1px solid var(--_line); border-radius: 9px;
275
+ background: var(--_surface-2); font-size: 12.5px; color: var(--_ink-2); min-width: 0; }
276
+ .uac-att img { width: 24px; height: 24px; border-radius: 5px; object-fit: cover; flex: none; }
277
+ .uac-att-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
278
+ .uac-att button { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--_faint); cursor: pointer; }
279
+ .uac-att button:hover { color: var(--_ink); background: var(--_hover); }
280
+ .uac-att.is-error { border-color: var(--uic-fail-line, #fecaca); color: var(--_fail); }
281
+
282
+ /* ── narrow ──────────────────────────────────────────────────────────────────────────────────── */
283
+ @media (max-width: 560px) {
284
+ .uac-thread { gap: 24px; }
285
+ .uac-user-b { max-width: 90%; }
286
+ .uac-detail { padding-left: 12px; }
287
+ .uac-step-err, .uac-thought { padding-left: 12px; }
288
+ .uac-step-h { padding: 7px 9px; }
289
+ .uac-lines pre { max-height: 260px; }
290
+ .uac-composer { border-radius: 18px; }
291
+ .uac-composer textarea { font-size: 16px; } /* 16px keeps a phone from zooming into the field */
292
+ }
293
+
294
+ /* ── motion off ──────────────────────────────────────────────────────────────────────────────── */
295
+ @media (prefers-reduced-motion: reduce) {
296
+ .uac-mark-in, .uac-mark-in::after, .uac-mark-aura, .uac-mark i, .uac-ring::before, .uac-todo-m, .uac-shimmer { animation: none !important; }
297
+ .uac-mark-aura { display: none; }
298
+ .uac-mark[data-motion="sheen"] .uac-mark-in::after { display: none; }
299
+ .uac-mark[data-motion="dots"] i:nth-child(1) { transform: translate(1px, 7px); }
300
+ .uac-mark[data-motion="dots"] i:nth-child(2) { transform: translate(7px, 6.5px); }
301
+ .uac-mark[data-motion="dots"] i:nth-child(3) { transform: translate(14px, 7.5px); }
302
+ .uac-shimmer { color: var(--_ink-2); background: none; }
303
+ .uac-ring::before { border-color: var(--_brand); }
304
+ .uac-composer, .uac-send { transition: none; }
305
+ }
306
+ .uac-mark.is-still .uac-mark-in, .uac-mark.is-still .uac-mark-aura, .uac-mark.is-still i { animation: none; }
@@ -1,295 +0,0 @@
1
- import {
2
- useOverlayEscape
3
- } from "./chunk-J633KV57.js";
4
-
5
- // src/components/icons.jsx
6
- import React from "react";
7
- import { jsx, jsxs } from "react/jsx-runtime";
8
- function Svg({ children, s = 16 }) {
9
- return /* @__PURE__ */ jsx(
10
- "svg",
11
- {
12
- width: s,
13
- height: s,
14
- viewBox: "0 0 24 24",
15
- fill: "none",
16
- stroke: "currentColor",
17
- strokeWidth: "1.8",
18
- strokeLinecap: "round",
19
- strokeLinejoin: "round",
20
- children
21
- }
22
- );
23
- }
24
- function Chevron({ dir, size = 16 }) {
25
- const d = dir === "left" ? "M15 18l-6-6 6-6" : dir === "right" ? "M9 18l6-6-6-6" : "M6 9l6 6 6-6";
26
- return /* @__PURE__ */ jsx(
27
- "svg",
28
- {
29
- width: size,
30
- height: size,
31
- viewBox: "0 0 24 24",
32
- fill: "none",
33
- stroke: "currentColor",
34
- strokeWidth: "2",
35
- strokeLinecap: "round",
36
- strokeLinejoin: "round",
37
- children: /* @__PURE__ */ jsx("path", { d })
38
- }
39
- );
40
- }
41
- var IcTool = () => /* @__PURE__ */ jsx(Svg, { s: 17, children: /* @__PURE__ */ jsx("path", { d: "M14.7 6.3a4 4 0 0 1-5.4 5.4L4 17v3h3l5.3-5.3a4 4 0 0 1 5.4-5.4l-2.3 2.3-1.7-1.7 2.3-2.3a4 4 0 0 0-1.6 0Z" }) });
42
- var IcPlug = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
43
- /* @__PURE__ */ jsx("path", { d: "M9 2v6M15 2v6M6 8h12v3a6 6 0 0 1-12 0z" }),
44
- /* @__PURE__ */ jsx("path", { d: "M12 17v5" })
45
- ] });
46
- var IcSkill = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
47
- /* @__PURE__ */ jsx("path", { d: "M9 18h6M10 22h4" }),
48
- /* @__PURE__ */ jsx("path", { d: "M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.1V18h6v-1.2c0-.8.4-1.6 1-2.1A7 7 0 0 0 12 2z" })
49
- ] });
50
- var IcTerminal = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
51
- /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
52
- /* @__PURE__ */ jsx("path", { d: "M7 9l3 3-3 3M13 15h4" })
53
- ] });
54
- var IcDoc = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
55
- /* @__PURE__ */ jsx("path", { d: "M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z" }),
56
- /* @__PURE__ */ jsx("path", { d: "M14 3v6h6M8 13h8M8 17h6" })
57
- ] });
58
- var IcList = () => /* @__PURE__ */ jsx(Svg, { s: 17, children: /* @__PURE__ */ jsx("path", { d: "M8 6h12M8 12h12M8 18h12M3.5 6h.01M3.5 12h.01M3.5 18h.01" }) });
59
- var IcGlobe = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
60
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
61
- /* @__PURE__ */ jsx("path", { d: "M3 12h18M12 3a15 15 0 0 1 0 18a15 15 0 0 1 0-18z" })
62
- ] });
63
- var IcSearch = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
64
- /* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "7" }),
65
- /* @__PURE__ */ jsx("path", { d: "m21 21-4.3-4.3" })
66
- ] });
67
- var IcScroll = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
68
- /* @__PURE__ */ jsx("path", { d: "M6 3h10a2 2 0 0 1 2 2v12a3 3 0 0 0 3 3H8a2 2 0 0 1-2-2V3z" }),
69
- /* @__PURE__ */ jsx("path", { d: "M6 3a2 2 0 0 0-2 2v2h2M10 8h6M10 12h6" })
70
- ] });
71
- var IcSpawn = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
72
- /* @__PURE__ */ jsx("circle", { cx: "6", cy: "6", r: "3" }),
73
- /* @__PURE__ */ jsx("circle", { cx: "18", cy: "18", r: "3" }),
74
- /* @__PURE__ */ jsx("path", { d: "M6 9v3a3 3 0 0 0 3 3h6" })
75
- ] });
76
- var IcCheck = () => /* @__PURE__ */ jsxs(Svg, { s: 17, children: [
77
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
78
- /* @__PURE__ */ jsx("path", { d: "m9 12 2 2 4-4" })
79
- ] });
80
- var IcThink = () => /* @__PURE__ */ jsx(Svg, { s: 16, children: /* @__PURE__ */ jsx("path", { d: "M9.5 2a5.5 5.5 0 0 0-3 10.1V15a2 2 0 0 0 2 2h3a2 2 0 0 0 2-2v-2.9A5.5 5.5 0 0 0 9.5 2zM9 20h4M10 22h2" }) });
81
- var IcSend = () => /* @__PURE__ */ jsxs(Svg, { s: 16, children: [
82
- /* @__PURE__ */ jsx("path", { d: "M12 19V5" }),
83
- /* @__PURE__ */ jsx("path", { d: "M5 12l7-7 7 7" })
84
- ] });
85
- var IcX = ({ size = 14 }) => /* @__PURE__ */ jsx(Svg, { s: size, children: /* @__PURE__ */ jsx("path", { d: "M18 6 6 18M6 6l12 12" }) });
86
- var IcMic = ({ size = 15 }) => /* @__PURE__ */ jsxs(Svg, { s: size, children: [
87
- /* @__PURE__ */ jsx("rect", { x: "9", y: "2", width: "6", height: "12", rx: "3" }),
88
- /* @__PURE__ */ jsx("path", { d: "M5 11a7 7 0 0 0 14 0M12 18v4M8 22h8" })
89
- ] });
90
- var IcPaperclip = ({ size = 16 }) => /* @__PURE__ */ jsx(Svg, { s: size, children: /* @__PURE__ */ jsx("path", { d: "M21.4 11.1 12.2 20.3a5.5 5.5 0 0 1-7.8-7.8l9.2-9.2a3.7 3.7 0 0 1 5.2 5.2l-9.2 9.2a1.8 1.8 0 0 1-2.6-2.6l8.5-8.5" }) });
91
- var IcPanelRight = ({ size = 17 }) => /* @__PURE__ */ jsxs(Svg, { s: size, children: [
92
- /* @__PURE__ */ jsx("rect", { x: "3", y: "4", width: "18", height: "16", rx: "2" }),
93
- /* @__PURE__ */ jsx("path", { d: "M15 4v16" })
94
- ] });
95
- var IcDownload = ({ size = 16 }) => /* @__PURE__ */ jsxs(Svg, { s: size, children: [
96
- /* @__PURE__ */ jsx("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }),
97
- /* @__PURE__ */ jsx("path", { d: "M7 10l5 5 5-5" }),
98
- /* @__PURE__ */ jsx("path", { d: "M12 15V3" })
99
- ] });
100
- var IcEye = ({ size = 15 }) => /* @__PURE__ */ jsxs(Svg, { s: size, children: [
101
- /* @__PURE__ */ jsx("path", { d: "M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7-10-7-10-7z" }),
102
- /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "3" })
103
- ] });
104
-
105
- // src/components/CodeBlock.jsx
106
- import React2 from "react";
107
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
108
- var _hljsPromise = null;
109
- function loadHljs() {
110
- if (!_hljsPromise) {
111
- _hljsPromise = import("highlight.js/lib/core").then((m) => m.default || m);
112
- }
113
- return _hljsPromise;
114
- }
115
- var GRAMMARS = {
116
- javascript: () => import("highlight.js/lib/languages/javascript"),
117
- typescript: () => import("highlight.js/lib/languages/typescript"),
118
- python: () => import("highlight.js/lib/languages/python"),
119
- json: () => import("highlight.js/lib/languages/json"),
120
- bash: () => import("highlight.js/lib/languages/bash"),
121
- sql: () => import("highlight.js/lib/languages/sql"),
122
- java: () => import("highlight.js/lib/languages/java"),
123
- go: () => import("highlight.js/lib/languages/go"),
124
- rust: () => import("highlight.js/lib/languages/rust"),
125
- xml: () => import("highlight.js/lib/languages/xml"),
126
- css: () => import("highlight.js/lib/languages/css"),
127
- yaml: () => import("highlight.js/lib/languages/yaml"),
128
- groovy: () => import("highlight.js/lib/languages/groovy")
129
- };
130
- var ALIASES = {
131
- js: "javascript",
132
- jsx: "javascript",
133
- mjs: "javascript",
134
- cjs: "javascript",
135
- node: "javascript",
136
- ts: "typescript",
137
- tsx: "typescript",
138
- py: "python",
139
- python3: "python",
140
- sh: "bash",
141
- shell: "bash",
142
- zsh: "bash",
143
- console: "bash",
144
- html: "xml",
145
- xhtml: "xml",
146
- svg: "xml",
147
- yml: "yaml",
148
- golang: "go",
149
- rs: "rust",
150
- jsonc: "json",
151
- postgres: "sql",
152
- postgresql: "sql",
153
- mysql: "sql",
154
- plsql: "sql",
155
- gremlin: "groovy"
156
- };
157
- function canonicalLang(tag) {
158
- const t = String(tag || "").toLowerCase();
159
- if (!t) return null;
160
- const name = ALIASES[t] || t;
161
- return GRAMMARS[name] ? name : null;
162
- }
163
- var _ready = /* @__PURE__ */ new Map();
164
- function ensureLanguage(name) {
165
- if (!_ready.has(name)) {
166
- const p = Promise.all([loadHljs(), GRAMMARS[name]()]).then(([hljs, mod]) => {
167
- if (!hljs.getLanguage(name)) hljs.registerLanguage(name, mod.default || mod);
168
- return hljs;
169
- }).catch(() => null);
170
- _ready.set(name, p);
171
- }
172
- return _ready.get(name);
173
- }
174
- function CodeBlock(props) {
175
- const { code, language, className } = props;
176
- const src = String(code || "");
177
- const lang = canonicalLang(language);
178
- const [hl, setHl] = React2.useState(null);
179
- React2.useEffect(() => {
180
- if (!lang || !src) return void 0;
181
- let cancelled = false;
182
- const timer = setTimeout(() => {
183
- ensureLanguage(lang).then((hljs) => {
184
- if (!hljs || cancelled) return;
185
- try {
186
- const out = hljs.highlight(src, { language: lang, ignoreIllegals: true });
187
- if (!cancelled) setHl({ src, html: out.value });
188
- } catch {
189
- }
190
- });
191
- }, 200);
192
- return () => {
193
- cancelled = true;
194
- clearTimeout(timer);
195
- };
196
- }, [src, lang]);
197
- const html = hl && hl.src === src ? hl.html : null;
198
- const label = String(language || "").toLowerCase();
199
- return /* @__PURE__ */ jsxs2("pre", { className: "wbx-code" + (className ? " " + className : ""), children: [
200
- label ? /* @__PURE__ */ jsx2("span", { className: "wbx-code-lang", "aria-hidden": "true", children: label }) : null,
201
- html != null ? /* @__PURE__ */ jsx2("code", { className: "hljs language-" + label, dangerouslySetInnerHTML: { __html: html } }) : /* @__PURE__ */ jsx2("code", { className: label ? "language-" + label : void 0, children: src })
202
- ] });
203
- }
204
-
205
- // src/components/Modal.jsx
206
- import React3, { useCallback, useEffect, useId } from "react";
207
- import { createPortal } from "react-dom";
208
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
209
- function Modal(props) {
210
- const {
211
- open,
212
- onClose,
213
- title,
214
- description,
215
- actions,
216
- size = "md",
217
- width,
218
- labelledBy,
219
- children,
220
- classNames = {}
221
- } = props;
222
- const titleId = useId();
223
- const escape = useCallback(() => onClose?.(), [onClose]);
224
- useOverlayEscape(open, escape);
225
- useEffect(() => {
226
- if (!open || typeof document === "undefined") return void 0;
227
- const prev = document.body.style.overflow;
228
- document.body.style.overflow = "hidden";
229
- return () => {
230
- document.body.style.overflow = prev;
231
- };
232
- }, [open]);
233
- if (!open || typeof document === "undefined") return null;
234
- const onBackdrop = (e) => {
235
- if (e.target === e.currentTarget) onClose?.();
236
- };
237
- return createPortal(
238
- /* @__PURE__ */ jsx3(
239
- "div",
240
- {
241
- className: ["uic-modal-backdrop", classNames.backdrop || ""].filter(Boolean).join(" "),
242
- onMouseDown: onBackdrop,
243
- children: /* @__PURE__ */ jsxs3(
244
- "div",
245
- {
246
- className: ["uic-modal", `is-${size}`, classNames.root || ""].filter(Boolean).join(" "),
247
- style: width ? { width } : void 0,
248
- role: "dialog",
249
- "aria-modal": "true",
250
- "aria-labelledby": labelledBy || (title ? titleId : void 0),
251
- children: [
252
- title || actions ? /* @__PURE__ */ jsxs3("div", { className: "uic-modal-h", children: [
253
- /* @__PURE__ */ jsxs3("div", { className: "uic-modal-title", children: [
254
- title ? /* @__PURE__ */ jsx3("h3", { id: titleId, children: title }) : null,
255
- description ? /* @__PURE__ */ jsx3("p", { children: description }) : null
256
- ] }),
257
- actions,
258
- /* @__PURE__ */ jsx3("button", { type: "button", className: "uic-modal-x", "aria-label": "Close", onClick: onClose, children: /* @__PURE__ */ jsx3(IcX, { size: 18 }) })
259
- ] }) : null,
260
- /* @__PURE__ */ jsx3("div", { className: ["uic-modal-b", classNames.body || ""].filter(Boolean).join(" "), children })
261
- ]
262
- }
263
- )
264
- }
265
- ),
266
- document.body
267
- );
268
- }
269
-
270
- export {
271
- Svg,
272
- Chevron,
273
- IcTool,
274
- IcPlug,
275
- IcSkill,
276
- IcTerminal,
277
- IcDoc,
278
- IcList,
279
- IcGlobe,
280
- IcSearch,
281
- IcScroll,
282
- IcSpawn,
283
- IcCheck,
284
- IcThink,
285
- IcSend,
286
- IcX,
287
- IcMic,
288
- IcPaperclip,
289
- IcPanelRight,
290
- IcDownload,
291
- IcEye,
292
- CodeBlock,
293
- Modal
294
- };
295
- //# sourceMappingURL=chunk-J7SECRIG.js.map