omo-web 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +21 -2
- package/bin/locale.js +6 -0
- package/bin/omo-web.js +96 -0
- package/bin/tui.js +495 -0
- package/bin/windows-password.js +76 -0
- package/dist/app.js +7 -0
- package/dist/server.js +12505 -0
- package/package.json +34 -4
- package/public/dag-graph.css +80 -0
- package/public/favicon.svg +13 -0
- package/public/icons.svg +89 -0
- package/public/index.html +486 -0
- package/public/licenses/teenyicons.txt +25 -0
- package/public/licenses/zod.txt +21 -0
- package/public/styles.css +422 -0
- package/public/tool-ledger.css +354 -0
- package/public/workbench.css +782 -0
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
--ink: #172436;
|
|
4
|
+
--muted: #4a5a70;
|
|
5
|
+
--page: #f3f6fb;
|
|
6
|
+
--surface: #ffffff;
|
|
7
|
+
--rail: #edf1f8;
|
|
8
|
+
--inset: #e7edf7;
|
|
9
|
+
--hover: #e0e8f4;
|
|
10
|
+
--field-surface: #f8faff;
|
|
11
|
+
--user-surface: #d9e6fb;
|
|
12
|
+
--turn-surface: var(--surface);
|
|
13
|
+
--tool-surface: #eaf0f9;
|
|
14
|
+
--inspect-surface: #edf1f8;
|
|
15
|
+
--selection-surface: #d4e2f9;
|
|
16
|
+
--session-selected-surface: #d6e3fa;
|
|
17
|
+
--inspect-selected-surface: #30486a;
|
|
18
|
+
--inspect-selected-ink: #f8fbff;
|
|
19
|
+
--line: #d2dcec;
|
|
20
|
+
--edge: #74839a;
|
|
21
|
+
--accent: #19467f;
|
|
22
|
+
--accent-bg: #245591;
|
|
23
|
+
--accent-on: #ffffff;
|
|
24
|
+
--accent-tint: #e0ebfc;
|
|
25
|
+
--running-surface: #adc8ed;
|
|
26
|
+
--brand-fill: #263d5d;
|
|
27
|
+
--brand-ink: #ffffff;
|
|
28
|
+
--error: #a02b2e;
|
|
29
|
+
--error-tint: #fbe8e7;
|
|
30
|
+
--warning: #764400;
|
|
31
|
+
--warning-tint: #fff0d2;
|
|
32
|
+
--warning-edge: #a66b21;
|
|
33
|
+
--success: #226347;
|
|
34
|
+
--success-tint: #e5f2eb;
|
|
35
|
+
--scrim: #111c326b;
|
|
36
|
+
--shadow: 0 var(--s3) var(--s8) #16254038;
|
|
37
|
+
--font: system-ui, -apple-system, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
38
|
+
--mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
39
|
+
--caption: .75rem;
|
|
40
|
+
--small: .8125rem;
|
|
41
|
+
--body: 1rem;
|
|
42
|
+
--h4: 1rem;
|
|
43
|
+
--h3: 1.25rem;
|
|
44
|
+
--h2: 1.5rem;
|
|
45
|
+
--h1: 2rem;
|
|
46
|
+
--s1: .25rem;
|
|
47
|
+
--s2: .5rem;
|
|
48
|
+
--s3: .75rem;
|
|
49
|
+
--s4: 1rem;
|
|
50
|
+
--s5: 1.25rem;
|
|
51
|
+
--s6: 1.5rem;
|
|
52
|
+
--s8: 2rem;
|
|
53
|
+
--r1: .5rem;
|
|
54
|
+
--r2: .75rem;
|
|
55
|
+
--r3: 1rem;
|
|
56
|
+
--r4: 1.5rem;
|
|
57
|
+
--pill: 999px;
|
|
58
|
+
--stroke: 1px;
|
|
59
|
+
--focus: 2px;
|
|
60
|
+
--control: 2.25rem;
|
|
61
|
+
--control-compact: 2rem;
|
|
62
|
+
--touch: 2.75rem;
|
|
63
|
+
--rail-width: 16rem;
|
|
64
|
+
--measure: 46rem;
|
|
65
|
+
--dialog-width: 38rem;
|
|
66
|
+
--inspector-width: clamp(20rem, 28vw, 25rem);
|
|
67
|
+
--code-height: 22rem;
|
|
68
|
+
--thumb: 3rem;
|
|
69
|
+
--ease-emphasized: cubic-bezier(.2, .85, .25, 1);
|
|
70
|
+
--motion-press: 140ms var(--ease-emphasized);
|
|
71
|
+
--motion-enter: 180ms var(--ease-emphasized);
|
|
72
|
+
--motion-disclosure: 160ms var(--ease-emphasized);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
:root[data-theme="dark"] {
|
|
76
|
+
color-scheme: dark;
|
|
77
|
+
--ink: #eef3fb;
|
|
78
|
+
--muted: #b2bed1;
|
|
79
|
+
--page: #141821;
|
|
80
|
+
--surface: #232b39;
|
|
81
|
+
--rail: #1a222f;
|
|
82
|
+
--inset: #252f3e;
|
|
83
|
+
--hover: #2f3c50;
|
|
84
|
+
--field-surface: #202a39;
|
|
85
|
+
--user-surface: #273853;
|
|
86
|
+
--turn-surface: #1e2735;
|
|
87
|
+
--tool-surface: #293548;
|
|
88
|
+
--inspect-surface: #1a222f;
|
|
89
|
+
--selection-surface: #344764;
|
|
90
|
+
--session-selected-surface: #394967;
|
|
91
|
+
--inspect-selected-surface: #c6d8f2;
|
|
92
|
+
--inspect-selected-ink: #1e304b;
|
|
93
|
+
--line: #39475c;
|
|
94
|
+
--edge: #8798b1;
|
|
95
|
+
--accent: #b4d0ff;
|
|
96
|
+
--accent-bg: #a5c6fb;
|
|
97
|
+
--accent-on: #14233b;
|
|
98
|
+
--accent-tint: #2b4263;
|
|
99
|
+
--running-surface: #3b5375;
|
|
100
|
+
--brand-fill: #cbddf8;
|
|
101
|
+
--brand-ink: #1e304b;
|
|
102
|
+
--error: #ffb4b1;
|
|
103
|
+
--error-tint: #402729;
|
|
104
|
+
--warning: #ffd593;
|
|
105
|
+
--warning-tint: #3d2f1d;
|
|
106
|
+
--warning-edge: #cd924e;
|
|
107
|
+
--success: #92dbb1;
|
|
108
|
+
--success-tint: #23372d;
|
|
109
|
+
--scrim: #0c101bd1;
|
|
110
|
+
--shadow: 0 var(--s3) var(--s8) #090d178c;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
114
|
+
[hidden] { display: none !important; }
|
|
115
|
+
body { margin: 0; color: var(--ink); background: var(--page); font: var(--body)/1.55 var(--font); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
|
|
116
|
+
::selection { color: var(--ink); background: var(--accent-tint); }
|
|
117
|
+
* { scrollbar-color: var(--edge) transparent; scrollbar-width: thin; }
|
|
118
|
+
:focus-visible { outline: var(--focus) solid var(--accent); outline-offset: var(--focus); }
|
|
119
|
+
h1, h2, h3, h4, p, ul, ol, dl, dd, pre { margin: 0; }
|
|
120
|
+
h1, h2, h3, h4 { line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; text-wrap: balance; }
|
|
121
|
+
h1, h2 { letter-spacing: -.02em; }
|
|
122
|
+
h1 { font-size: var(--h1); }
|
|
123
|
+
h2 { font-size: var(--h2); }
|
|
124
|
+
h3 { font-size: var(--h3); }
|
|
125
|
+
h4 { font-size: var(--h4); }
|
|
126
|
+
small, .small { font-size: var(--small); }
|
|
127
|
+
.muted { color: var(--muted); }
|
|
128
|
+
.path, code, pre { font-family: var(--mono); }
|
|
129
|
+
.path, .break { overflow-wrap: anywhere; }
|
|
130
|
+
.numerical { font-variant-numeric: tabular-nums; }
|
|
131
|
+
a { text-underline-offset: .18em; }
|
|
132
|
+
.stack { display: grid; gap: var(--s4); min-width: 0; }
|
|
133
|
+
.stack--tight { gap: var(--s2); }
|
|
134
|
+
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; min-width: 0; }
|
|
135
|
+
.row--between { justify-content: space-between; }
|
|
136
|
+
.panel { background: var(--surface); border: var(--stroke) solid var(--line); border-radius: var(--r2); padding: var(--s4); min-width: 0; }
|
|
137
|
+
.rule { border: 0; border-block-start: var(--stroke) solid var(--line); margin: 0; }
|
|
138
|
+
.error { color: var(--error); overflow-wrap: anywhere; }
|
|
139
|
+
.notice { color: var(--muted); border-radius: var(--r1); padding: var(--s2) var(--s3); background: var(--rail); overflow-wrap: anywhere; }
|
|
140
|
+
.notice.error { color: var(--error); background: var(--error-tint); }
|
|
141
|
+
.notice.warning { color: var(--warning); }
|
|
142
|
+
.sr-only { position: absolute; width: var(--stroke); height: var(--stroke); padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
|
|
143
|
+
.skip-link { position: fixed; inset-block-start: var(--s2); inset-inline-start: var(--s2); z-index: 5; }
|
|
144
|
+
.skip-link:not(:focus) { clip-path: inset(50%); }
|
|
145
|
+
|
|
146
|
+
button, input, textarea, select { font: inherit; color: inherit; }
|
|
147
|
+
button, select { cursor: pointer; }
|
|
148
|
+
.button, select, input:not([type="checkbox"], [type="radio"], [type="file"]), textarea {
|
|
149
|
+
min-height: var(--control);
|
|
150
|
+
max-width: 100%;
|
|
151
|
+
padding: var(--s1) var(--s3);
|
|
152
|
+
border: var(--stroke) solid var(--edge);
|
|
153
|
+
border-radius: var(--r1);
|
|
154
|
+
background: var(--surface);
|
|
155
|
+
}
|
|
156
|
+
.button {
|
|
157
|
+
display: inline-flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
gap: var(--s2);
|
|
161
|
+
color: var(--ink);
|
|
162
|
+
font-weight: 600;
|
|
163
|
+
text-align: center;
|
|
164
|
+
text-decoration: none;
|
|
165
|
+
border-radius: var(--pill);
|
|
166
|
+
}
|
|
167
|
+
.button:hover:not(:disabled), .button:active:not(:disabled) { background: var(--hover); color: var(--ink); }
|
|
168
|
+
.button--quiet { background: transparent; border-color: transparent; color: var(--muted); }
|
|
169
|
+
.button--primary, .button--primary:hover:not(:disabled) { background: var(--accent-bg); color: var(--accent-on); border-color: var(--accent-bg); }
|
|
170
|
+
.button--primary:is(:hover, :active):not(:disabled) { background: color-mix(in srgb, var(--accent-bg), var(--accent-on) 10%); }
|
|
171
|
+
.button--danger { color: var(--error); }
|
|
172
|
+
.button--danger:hover:not(:disabled) { background: var(--error-tint); color: var(--error); }
|
|
173
|
+
:disabled { cursor: not-allowed; opacity: .58; }
|
|
174
|
+
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
|
|
175
|
+
input, textarea { caret-color: var(--accent); }
|
|
176
|
+
input:is([type="checkbox"], [type="radio"]) { accent-color: var(--accent-bg); width: var(--s4); height: var(--s4); flex: none; margin: 0; }
|
|
177
|
+
label.field { display: grid; gap: var(--s1); min-width: 0; }
|
|
178
|
+
label.field > span { color: var(--muted); font-size: var(--small); font-weight: 600; }
|
|
179
|
+
svg { width: var(--s4); height: var(--s4); flex: none; }
|
|
180
|
+
details { min-width: 0; }
|
|
181
|
+
summary { display: list-item; align-content: center; min-height: var(--control); padding: var(--s1) var(--s3); cursor: pointer; color: var(--muted); border-radius: var(--r1); overflow-wrap: anywhere; }
|
|
182
|
+
summary:hover { background: var(--hover); color: var(--ink); }
|
|
183
|
+
pre {
|
|
184
|
+
max-height: var(--code-height);
|
|
185
|
+
max-width: 100%;
|
|
186
|
+
overflow: auto;
|
|
187
|
+
padding: var(--s3);
|
|
188
|
+
color: var(--ink);
|
|
189
|
+
background: var(--rail);
|
|
190
|
+
border-radius: var(--r1);
|
|
191
|
+
font-size: var(--small);
|
|
192
|
+
line-height: 1.5;
|
|
193
|
+
tab-size: 4;
|
|
194
|
+
}
|
|
195
|
+
code { overflow-wrap: anywhere; }
|
|
196
|
+
pre code { overflow-wrap: normal; }
|
|
197
|
+
dialog {
|
|
198
|
+
width: min(var(--dialog-width), calc(100% - 2 * var(--s4)));
|
|
199
|
+
max-height: calc(100dvh - 2 * var(--s4));
|
|
200
|
+
padding: var(--s6);
|
|
201
|
+
border: var(--stroke) solid var(--line);
|
|
202
|
+
border-radius: var(--r4);
|
|
203
|
+
background: var(--surface);
|
|
204
|
+
color: var(--ink);
|
|
205
|
+
box-shadow: var(--shadow);
|
|
206
|
+
overflow: auto;
|
|
207
|
+
}
|
|
208
|
+
dialog::backdrop { background: var(--scrim); }
|
|
209
|
+
dialog footer { justify-content: flex-end; }
|
|
210
|
+
dialog:not(#details-dialog) > .stack { gap: var(--s3); }
|
|
211
|
+
fieldset { margin: 0; min-width: 0; padding: var(--s3); border: var(--stroke) solid var(--line); border-radius: var(--r2); }
|
|
212
|
+
legend { padding-inline: var(--s1); font-size: var(--small); color: var(--muted); }
|
|
213
|
+
|
|
214
|
+
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
|
|
215
|
+
|
|
216
|
+
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
|
|
217
|
+
.button:not(.trace-node) { transition: transform var(--motion-press); }
|
|
218
|
+
.button:not(.trace-node):active:not(:disabled) { transform: scale(.97); }
|
|
219
|
+
dialog[open]:not(#details-dialog) { animation: dialog-enter var(--motion-enter); }
|
|
220
|
+
dialog:modal::backdrop, .nav-scrim:not([hidden]) { animation: scrim-enter var(--motion-enter); }
|
|
221
|
+
.sidebar.is-open { animation: rail-enter var(--motion-enter); }
|
|
222
|
+
@keyframes dialog-enter {
|
|
223
|
+
from { transform: translateY(var(--s2)) scale(.98); opacity: .72; }
|
|
224
|
+
}
|
|
225
|
+
@keyframes scrim-enter { from { opacity: 0; } }
|
|
226
|
+
@keyframes rail-enter {
|
|
227
|
+
from { transform: translateX(calc(-1 * var(--s3))); opacity: .78; }
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.workspace { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100dvh; }
|
|
232
|
+
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: var(--rail); border-inline-end: var(--stroke) solid var(--line); }
|
|
233
|
+
.sidebar, .sidebar > *, .brand, .brand > span { min-inline-size: 0; }
|
|
234
|
+
.sidebar :is(button, input, select), .connection, .theme { min-inline-size: 0; }
|
|
235
|
+
.sidebar-head { padding: var(--s6) var(--s4) var(--s4); gap: var(--s3); }
|
|
236
|
+
.brand { display: flex; align-items: center; gap: var(--s2); font-size: var(--h3); font-weight: 700; overflow-wrap: anywhere; }
|
|
237
|
+
.brand svg { width: var(--s6); height: var(--s6); color: var(--brand-ink); }
|
|
238
|
+
.brand svg rect { fill: var(--brand-fill); }
|
|
239
|
+
.brand .brand-mark { color: var(--brand-fill); }
|
|
240
|
+
.sidebar-head > .button { justify-content: flex-start; color: var(--accent); }
|
|
241
|
+
.filters {
|
|
242
|
+
display: grid;
|
|
243
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
244
|
+
border: var(--stroke) solid var(--edge);
|
|
245
|
+
border-radius: var(--pill);
|
|
246
|
+
}
|
|
247
|
+
.filters .button { border-radius: 0; font-size: var(--small); }
|
|
248
|
+
.filters .button:first-child { border-start-start-radius: var(--pill); border-end-start-radius: var(--pill); }
|
|
249
|
+
.filters .button:last-child { border-start-end-radius: var(--pill); border-end-end-radius: var(--pill); border-inline-start-color: var(--edge); }
|
|
250
|
+
.filters .button:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
251
|
+
.filters [aria-pressed="true"] {
|
|
252
|
+
background: var(--selection-surface);
|
|
253
|
+
color: var(--ink);
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
}
|
|
256
|
+
.filters [aria-pressed="true"]:is(:hover, :active) { background: color-mix(in srgb, var(--selection-surface), var(--ink) 7%); }
|
|
257
|
+
.session-rail { min-block-size: 0; overflow: auto; overscroll-behavior: contain; padding: var(--s1) var(--s4) var(--s4); }
|
|
258
|
+
.sessions + .sessions { border-block-start: var(--stroke) solid var(--line); margin-block-start: var(--s3); padding-block-start: var(--s3); }
|
|
259
|
+
.sessions ul { display: grid; gap: var(--s1); padding: 0; list-style: none; }
|
|
260
|
+
.sessions p { padding: var(--s2) var(--s3); }
|
|
261
|
+
.session-link { display: grid; gap: var(--s1); width: 100%; padding: var(--s1) var(--s3); text-align: start; justify-items: start; border-radius: var(--r2); }
|
|
262
|
+
.session-link[aria-current="true"],
|
|
263
|
+
.session-link[aria-current="true"]:is(:hover, :active) {
|
|
264
|
+
position: relative;
|
|
265
|
+
color: var(--ink);
|
|
266
|
+
background: var(--session-selected-surface);
|
|
267
|
+
}
|
|
268
|
+
.session-link[aria-current="true"] { padding-inline-end: var(--s5); }
|
|
269
|
+
.session-link[aria-current="true"]::after {
|
|
270
|
+
content: "";
|
|
271
|
+
position: absolute;
|
|
272
|
+
inset-block-start: 50%;
|
|
273
|
+
inset-inline-end: var(--s2);
|
|
274
|
+
inline-size: var(--s2);
|
|
275
|
+
block-size: var(--s1);
|
|
276
|
+
border-block-end: var(--focus) solid currentColor;
|
|
277
|
+
border-inline-start: var(--focus) solid currentColor;
|
|
278
|
+
transform: translateY(-50%) rotate(-45deg);
|
|
279
|
+
pointer-events: none;
|
|
280
|
+
}
|
|
281
|
+
.session-link span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
282
|
+
.session-link small { font-weight: 400; color: var(--muted); }
|
|
283
|
+
.sidebar-footer { border-block-start: var(--stroke) solid var(--line); padding: var(--s3) var(--s4); }
|
|
284
|
+
.connection { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); }
|
|
285
|
+
.status-dot { width: var(--s2); height: var(--s2); border-radius: var(--pill); background: var(--accent); flex: none; }
|
|
286
|
+
.connection[data-state="online"] .status-dot { background: var(--success); }
|
|
287
|
+
.connection[data-state="offline"] .status-dot { background: var(--error); }
|
|
288
|
+
.theme select { font-size: var(--small); padding-inline: var(--s2); }
|
|
289
|
+
.main { min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
|
|
290
|
+
.workspace-head { grid-row: 1; padding: var(--s2) var(--workbench-inset); border-block-end: var(--stroke) solid var(--line); background: var(--surface); }
|
|
291
|
+
.workspace-head-inner { display: flex; gap: var(--s3); align-items: center; max-inline-size: var(--measure); margin-inline: auto; }
|
|
292
|
+
.session-heading { min-width: 0; flex: 1; }
|
|
293
|
+
.session-heading h1 { font-size: var(--h3); }
|
|
294
|
+
.session-heading > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
295
|
+
.workspace-actions { flex: none; flex-wrap: nowrap; gap: var(--s1); max-inline-size: 60%; }
|
|
296
|
+
.workspace-actions .button { white-space: nowrap; }
|
|
297
|
+
.workspace-actions .button:not(#cli-follow-stop) { min-inline-size: var(--control); }
|
|
298
|
+
.workspace-actions .action-label { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; }
|
|
299
|
+
.banner { grid-row: 3; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s1) var(--s6); background: var(--error-tint); }
|
|
300
|
+
.banner button { flex: none; }
|
|
301
|
+
.banner[data-unprotected] { background: var(--warning-tint); }
|
|
302
|
+
#access-warning { color: var(--warning); font-weight: 650; }
|
|
303
|
+
.transcript { grid-row: 4; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: var(--s8) var(--s6); }
|
|
304
|
+
.transcript:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
305
|
+
.conversation { max-width: var(--measure); min-height: 100%; margin-inline: auto; display: grid; align-items: start; }
|
|
306
|
+
.welcome { align-self: center; justify-items: start; max-width: calc(var(--s8) * 16); margin-block: var(--s8); gap: var(--s4); }
|
|
307
|
+
.welcome h2 { font-size: var(--h1); }
|
|
308
|
+
.conversation-empty { padding-block: var(--s8); }
|
|
309
|
+
.messages { display: grid; gap: var(--s2); }
|
|
310
|
+
.transcript-load { justify-self: center; font-size: var(--small); }
|
|
311
|
+
.message { min-width: 0; display: grid; gap: var(--s2); }
|
|
312
|
+
.message:has(> header) { padding: var(--s2) var(--s3); background: var(--turn-surface); border-radius: var(--r2); }
|
|
313
|
+
.message--user:has(> header) { background: var(--user-surface); }
|
|
314
|
+
.message--tool { gap: 0; }
|
|
315
|
+
.message details { border: var(--stroke) solid var(--line); border-radius: var(--r1); background: var(--tool-surface); }
|
|
316
|
+
.tool-summary {
|
|
317
|
+
display: grid;
|
|
318
|
+
grid-template-columns: var(--s2) minmax(0, 1fr) auto;
|
|
319
|
+
align-items: center;
|
|
320
|
+
gap: var(--s2);
|
|
321
|
+
padding-block: var(--s1);
|
|
322
|
+
color: var(--ink);
|
|
323
|
+
font-size: var(--small);
|
|
324
|
+
border-radius: inherit;
|
|
325
|
+
}
|
|
326
|
+
.tool-summary::-webkit-details-marker { display: none; }
|
|
327
|
+
.tool-chevron {
|
|
328
|
+
inline-size: var(--s1);
|
|
329
|
+
block-size: var(--s1);
|
|
330
|
+
border-inline-end: var(--stroke) solid var(--muted);
|
|
331
|
+
border-block-end: var(--stroke) solid var(--muted);
|
|
332
|
+
transform: rotate(-45deg);
|
|
333
|
+
}
|
|
334
|
+
.tool-details[open] .tool-chevron { transform: rotate(45deg); }
|
|
335
|
+
.tool-subject, .tool-state { display: flex; align-items: center; gap: var(--s2); min-inline-size: 0; }
|
|
336
|
+
.tool-label, .tool-target { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
|
|
337
|
+
.tool-label { font-weight: 600; }
|
|
338
|
+
.tool-target { color: var(--muted); }
|
|
339
|
+
.tool-state { gap: var(--s1); color: var(--tool-state-ink, var(--muted)); font-size: var(--caption); white-space: nowrap; }
|
|
340
|
+
.tool-state-text { min-inline-size: calc(var(--s6) * 2); }
|
|
341
|
+
.tool-details[data-state="running"] { --tool-state-tint: var(--running-surface); --tool-state-ink: var(--accent); }
|
|
342
|
+
.tool-details[data-state="success"] { --tool-state-tint: var(--success-tint); --tool-state-ink: var(--success); }
|
|
343
|
+
.tool-details[data-state="error"] { --tool-state-tint: var(--error-tint); --tool-state-ink: var(--error); }
|
|
344
|
+
.tool-output { max-block-size: var(--code-height); overflow: auto; background: var(--rail); border-radius: var(--r1); }
|
|
345
|
+
.tool-output pre { max-block-size: none; overflow: visible; }
|
|
346
|
+
.message header { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2); }
|
|
347
|
+
.speaker { font-size: var(--small); font-weight: 700; }
|
|
348
|
+
.message time { font-size: var(--caption); color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
349
|
+
.message-body { display: grid; gap: var(--s2); min-width: 0; }
|
|
350
|
+
.message .fold-body { padding: 0 var(--s3) var(--s3); }
|
|
351
|
+
.tool-details > .fold-body { padding-block-start: var(--s2); }
|
|
352
|
+
.prose { display: grid; gap: var(--s2); min-width: 0; overflow-wrap: anywhere; }
|
|
353
|
+
.prose p, .plain { white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
354
|
+
.prose p, .welcome > p { text-wrap: pretty; }
|
|
355
|
+
.prose :is(ul, ol) { padding-inline-start: var(--s6); }
|
|
356
|
+
.prose li + li { margin-block-start: var(--s1); }
|
|
357
|
+
.prose :not(pre) > code { background: var(--rail); border-radius: var(--r1); padding: 0 var(--s1); }
|
|
358
|
+
.message img { display: block; max-width: 100%; max-height: var(--code-height); object-fit: contain; border-radius: var(--r1); }
|
|
359
|
+
.interactions:not(:empty) { margin-block-start: var(--s6); }
|
|
360
|
+
.interaction-option { display: flex; align-items: center; gap: var(--s2); min-height: var(--control); cursor: pointer; }
|
|
361
|
+
.request-form textarea { resize: vertical; width: 100%; }
|
|
362
|
+
.composer-shell { grid-row: 5; padding: var(--s2) var(--s6) var(--s3); border-block-start: var(--stroke) solid var(--line); background: var(--page); }
|
|
363
|
+
.composer { max-width: var(--measure); margin-inline: auto; }
|
|
364
|
+
.compose-box { position: relative; min-width: 0; border: var(--stroke) solid var(--edge); border-radius: var(--r3); background: var(--field-surface); }
|
|
365
|
+
.compose-box textarea { display: block; width: 100%; border: 0; padding: var(--s3) var(--s4); resize: vertical; max-height: 26dvh; background: transparent; border-radius: var(--r3); }
|
|
366
|
+
.compose-box:has(> textarea:focus-visible) { outline: var(--focus) solid var(--accent); outline-offset: calc(-1 * var(--focus)); }
|
|
367
|
+
.compose-box > textarea:focus-visible { outline: none; }
|
|
368
|
+
.compose-toolbar { display: flex; gap: var(--s1); align-items: start; padding: 0 var(--s1) var(--s1); }
|
|
369
|
+
.compose-options, .compose-selectors label, .approval-control { min-inline-size: 0; }
|
|
370
|
+
.compose-selectors { flex-wrap: nowrap; gap: var(--s1); }
|
|
371
|
+
.compose-options select { max-inline-size: min(100%, 13rem); font-size: var(--small); border-color: transparent; background: transparent; }
|
|
372
|
+
.compose-options select:hover:not(:disabled) { background: var(--hover); }
|
|
373
|
+
.compose-options select:disabled { color: var(--muted); opacity: 1; }
|
|
374
|
+
.compose-submit { flex: none; flex-wrap: nowrap; gap: var(--s1); margin-inline-start: auto; }
|
|
375
|
+
.compose-submit .button { min-width: calc(var(--s8) * 2); white-space: nowrap; }
|
|
376
|
+
.compose-submit svg { display: none; }
|
|
377
|
+
.compose-submit .button--primary:disabled { color: var(--accent); background: var(--accent-tint); border-color: transparent; opacity: 1; }
|
|
378
|
+
.composer-meta { column-gap: var(--s4); }
|
|
379
|
+
.activity { color: var(--accent); }
|
|
380
|
+
.activity[data-pending="true"] { color: var(--warning); }
|
|
381
|
+
.activity:empty { display: none; }
|
|
382
|
+
.attachment { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s1); background: var(--rail); border-radius: var(--r2); }
|
|
383
|
+
.attachment img { width: var(--thumb); height: var(--thumb); object-fit: cover; border-radius: var(--r1); }
|
|
384
|
+
.details-list { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: var(--s4); row-gap: var(--s1); overflow-wrap: anywhere; }
|
|
385
|
+
.details-list dt { color: var(--muted); }
|
|
386
|
+
.subpanel { border-block-start: var(--stroke) solid var(--line); padding-block-start: var(--s3); }
|
|
387
|
+
.inline-list { display: grid; gap: var(--s2); padding-inline-start: var(--s6); overflow-wrap: anywhere; }
|
|
388
|
+
.command-list { display: grid; gap: var(--s3); list-style: none; padding: var(--s2) var(--s3); }
|
|
389
|
+
.command-list li { justify-items: start; }
|
|
390
|
+
.command-list .button { overflow-wrap: anywhere; text-align: start; }
|
|
391
|
+
.tree { padding-inline-start: var(--s3); }
|
|
392
|
+
.tree li::marker { color: var(--muted); }
|
|
393
|
+
.tree .button { text-align: start; overflow-wrap: anywhere; max-width: 100%; }
|
|
394
|
+
.tree .button[aria-current="true"] { background: var(--accent-tint); color: var(--accent); }
|
|
395
|
+
.mobile-only, .nav-scrim { display: none; }
|
|
396
|
+
|
|
397
|
+
@media (width > 760px) and (height <= 36rem) {
|
|
398
|
+
.sidebar-head { padding-block: var(--s3) var(--s2); gap: var(--s2); }
|
|
399
|
+
.session-rail .sessions + .sessions { margin-block-start: var(--s2); padding-block-start: var(--s2); }
|
|
400
|
+
.session-rail .sessions p, .session-rail .session-link { padding-block: var(--s1); }
|
|
401
|
+
.sidebar-footer { padding-block: var(--s2); }
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@media (max-width: 760px) {
|
|
405
|
+
:root { --control: var(--touch); }
|
|
406
|
+
.workspace { grid-template-columns: minmax(0, 1fr); }
|
|
407
|
+
.sidebar { display: none; position: fixed; inset: 0 auto 0 0; z-index: 4; width: min(var(--rail-width), calc(100% - var(--touch))); box-shadow: var(--shadow); }
|
|
408
|
+
.sidebar.is-open { display: grid; }
|
|
409
|
+
.nav-scrim { display: block; position: fixed; inset: 0; z-index: 3; border: 0; background: var(--scrim); }
|
|
410
|
+
.mobile-only { display: inline-flex; }
|
|
411
|
+
.workspace-head-inner { gap: var(--s1); }
|
|
412
|
+
.workspace-head .session-heading h1 { font-size: var(--h4); }
|
|
413
|
+
.workspace-actions { gap: 0; }
|
|
414
|
+
#open-navigation { inline-size: var(--touch); flex: none; padding: 0; }
|
|
415
|
+
.transcript { padding: var(--s4) var(--s3); }
|
|
416
|
+
.composer-shell, .banner { padding-inline: var(--s3); }
|
|
417
|
+
.compose-box textarea { block-size: calc(var(--s8) * 2); padding: var(--s2) var(--s3); }
|
|
418
|
+
#attach { min-inline-size: var(--touch); }
|
|
419
|
+
.compose-submit .button { min-inline-size: var(--touch); padding-inline: var(--s2); }
|
|
420
|
+
.interactions:not(:empty) { margin-block-start: var(--s4); }
|
|
421
|
+
dialog { padding: var(--s4); }
|
|
422
|
+
}
|