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,782 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--hud-sweep: 420ms var(--ease-emphasized);
|
|
3
|
+
--hud-panel-enter: 240ms var(--ease-emphasized) backwards;
|
|
4
|
+
--hud-panel-step: 44ms;
|
|
5
|
+
--hud-sweep-glint: color-mix(in srgb, var(--accent), transparent 83%);
|
|
6
|
+
--hud-sweep-line: color-mix(in srgb, var(--accent), transparent 94%);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
#cli-history-list .session-link { justify-content: stretch; }
|
|
10
|
+
.workspace-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: inherit; }
|
|
11
|
+
.workspace-tools:has(#workspace-browser-button:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }
|
|
12
|
+
.workspace-tools:has(#workspace-field:not([hidden])) > #new-sidebar { grid-column: 1 / -1; }
|
|
13
|
+
#new-sidebar { justify-content: flex-start; color: var(--accent); }
|
|
14
|
+
#workspace-browser-button { gap: var(--s1); padding-inline: var(--s1); font-size: var(--small); white-space: nowrap; }
|
|
15
|
+
#workspace-browser-button .icon { inline-size: var(--s3); block-size: var(--s3); }
|
|
16
|
+
#workspace-select { inline-size: 100%; font-size: var(--small); text-overflow: ellipsis; }
|
|
17
|
+
.sidebar-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
|
|
18
|
+
.sidebar-preferences select { inline-size: 100%; padding-inline: var(--s2); font-size: var(--small); }
|
|
19
|
+
.workspace-path-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2); align-items: end; }
|
|
20
|
+
.workspace-path-form > p { grid-column: 1 / -1; }
|
|
21
|
+
.workspace-path-form input, #workspace-browser-root { inline-size: 100%; min-inline-size: 0; }
|
|
22
|
+
#workspace-browser-root { font-size: var(--small); text-overflow: ellipsis; }
|
|
23
|
+
#new-cwd, #cli-live-session { inline-size: 100%; min-inline-size: 0; text-overflow: ellipsis; }
|
|
24
|
+
.workspace-full-path { white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; unicode-bidi: isolate; }
|
|
25
|
+
.workspace-approval h3:focus { outline: var(--focus) solid var(--accent); outline-offset: var(--s1); }
|
|
26
|
+
.workspace-entries {
|
|
27
|
+
list-style: none;
|
|
28
|
+
padding: 0 var(--s1);
|
|
29
|
+
border-block: var(--stroke) solid var(--line);
|
|
30
|
+
max-block-size: min(var(--code-height), 36dvh);
|
|
31
|
+
overflow: auto;
|
|
32
|
+
overscroll-behavior: contain;
|
|
33
|
+
}
|
|
34
|
+
.workspace-entries > li + li { border-block-start: var(--stroke) solid var(--line); }
|
|
35
|
+
.workspace-entry {
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
38
|
+
gap: var(--s2);
|
|
39
|
+
align-items: center;
|
|
40
|
+
inline-size: 100%;
|
|
41
|
+
min-block-size: var(--control);
|
|
42
|
+
padding: var(--s1) var(--s2);
|
|
43
|
+
text-align: start;
|
|
44
|
+
}
|
|
45
|
+
button.workspace-entry { color: var(--accent); }
|
|
46
|
+
.workspace-entry:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
47
|
+
.workspace-approval {
|
|
48
|
+
padding: var(--s4);
|
|
49
|
+
border: var(--stroke) solid var(--warning-edge);
|
|
50
|
+
border-radius: var(--r2);
|
|
51
|
+
background: var(--warning-tint);
|
|
52
|
+
color: var(--warning);
|
|
53
|
+
}
|
|
54
|
+
.workspace-approval > .workspace-full-path { color: var(--ink); }
|
|
55
|
+
.cli-launchers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s1); }
|
|
56
|
+
.cli-launchers .button { gap: var(--s1); padding-inline: var(--s1); font-size: var(--caption); line-height: 1.25; text-wrap: balance; }
|
|
57
|
+
.cli-launchers .icon { inline-size: var(--s3); block-size: var(--s3); }
|
|
58
|
+
#cli-follow-button[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); }
|
|
59
|
+
.workspace-actions #cli-follow-stop { inline-size: auto; padding-inline: var(--s2); white-space: nowrap; }
|
|
60
|
+
#cli-follow-view { padding-block-start: 0; }
|
|
61
|
+
#cli-follow-status { padding-block: var(--s3); color: var(--muted); }
|
|
62
|
+
#cli-follow-status[data-state="ok"] { color: var(--accent); }
|
|
63
|
+
#cli-follow-empty { padding-block: var(--s4); border-block-start: var(--stroke) solid var(--line); }
|
|
64
|
+
|
|
65
|
+
.main {
|
|
66
|
+
container: workbench / inline-size;
|
|
67
|
+
--workbench-inset: var(--s6);
|
|
68
|
+
--ledger-gutter: calc(var(--s8) * 2);
|
|
69
|
+
--ledger-gap: var(--s4);
|
|
70
|
+
--ledger-padding: var(--s2);
|
|
71
|
+
--ledger-control: var(--control-compact);
|
|
72
|
+
--trace-arrival: var(--inset);
|
|
73
|
+
}
|
|
74
|
+
.workspace-head { padding-block: var(--s1); }
|
|
75
|
+
.session-heading h1 { line-height: 1.2; }
|
|
76
|
+
.session-heading .path { line-height: 1.3; }
|
|
77
|
+
#session-path-short, #session-path-trigger { display: none; }
|
|
78
|
+
.session-trace {
|
|
79
|
+
grid-row: 2;
|
|
80
|
+
padding-inline: var(--workbench-inset);
|
|
81
|
+
border-block-end: var(--stroke) solid var(--line);
|
|
82
|
+
background: var(--page);
|
|
83
|
+
}
|
|
84
|
+
.trace-inner {
|
|
85
|
+
max-inline-size: var(--measure);
|
|
86
|
+
margin-inline: auto;
|
|
87
|
+
display: grid;
|
|
88
|
+
grid-template-columns: var(--ledger-gutter) minmax(0, 1fr);
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: var(--ledger-gap);
|
|
91
|
+
}
|
|
92
|
+
#session-trace-label { font-size: var(--small); color: var(--muted); font-weight: 650; }
|
|
93
|
+
.trace-links { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
|
|
94
|
+
.trace-node { min-block-size: var(--ledger-control); padding-inline: var(--s2); font-size: var(--small); }
|
|
95
|
+
.trace-node::before {
|
|
96
|
+
content: "";
|
|
97
|
+
display: block;
|
|
98
|
+
inline-size: var(--s2);
|
|
99
|
+
block-size: var(--s2);
|
|
100
|
+
border: var(--stroke) solid currentColor;
|
|
101
|
+
border-radius: var(--pill);
|
|
102
|
+
flex: none;
|
|
103
|
+
}
|
|
104
|
+
#trace-jump-user { color: var(--ink); }
|
|
105
|
+
#trace-jump-user::before { background: currentColor; }
|
|
106
|
+
#trace-jump-assistant { color: var(--ink); }
|
|
107
|
+
#trace-jump-tool { color: var(--accent); }
|
|
108
|
+
#trace-jump-tool::before { border-radius: 0; transform: rotate(45deg); }
|
|
109
|
+
#jump-to-request { color: var(--warning); }
|
|
110
|
+
#jump-to-request::before { background: currentColor; border-radius: 0; }
|
|
111
|
+
#jump-to-request:hover { background: var(--warning-tint); }
|
|
112
|
+
.trace-node:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
113
|
+
|
|
114
|
+
#transcript { padding-block: var(--s2); }
|
|
115
|
+
#transcript, #cli-follow-view { padding-inline: var(--workbench-inset) 0; }
|
|
116
|
+
:is(#transcript, #cli-follow-view) > .conversation {
|
|
117
|
+
/* Keep the rail and editor on the same axis even with a classic scrollbar. */
|
|
118
|
+
inline-size: min(var(--measure), 100cqi - 2 * var(--workbench-inset));
|
|
119
|
+
max-inline-size: 100%;
|
|
120
|
+
margin-inline: max(0px, (100cqi - 2 * var(--workbench-inset) - var(--measure)) / 2) 0;
|
|
121
|
+
}
|
|
122
|
+
:is(#messages, #cli-follow-messages) { gap: var(--s1); }
|
|
123
|
+
:is(#messages, #cli-follow-messages) > .message {
|
|
124
|
+
display: grid;
|
|
125
|
+
grid-template-columns: var(--ledger-gutter) minmax(0, 1fr);
|
|
126
|
+
align-items: start;
|
|
127
|
+
column-gap: var(--ledger-gap);
|
|
128
|
+
row-gap: var(--s1);
|
|
129
|
+
padding: var(--s1) 0;
|
|
130
|
+
border-radius: 0;
|
|
131
|
+
background: transparent;
|
|
132
|
+
}
|
|
133
|
+
:is(#messages, #cli-follow-messages) > .message--user {
|
|
134
|
+
--trace-arrival: color-mix(in srgb, var(--user-surface), var(--ink) 16%);
|
|
135
|
+
}
|
|
136
|
+
:is(#messages, #cli-follow-messages) > .message--user > .message-body {
|
|
137
|
+
padding: var(--s1) var(--ledger-padding);
|
|
138
|
+
border: var(--stroke) solid var(--edge);
|
|
139
|
+
border-radius: var(--r1);
|
|
140
|
+
background: var(--user-surface);
|
|
141
|
+
}
|
|
142
|
+
.message-identity { display: inline-flex; align-items: start; gap: var(--s1); }
|
|
143
|
+
.message-identity > svg { margin-block: var(--focus); }
|
|
144
|
+
.message-identity > .speaker { line-height: var(--s5); }
|
|
145
|
+
.message--user .message-identity { color: var(--accent); }
|
|
146
|
+
.message--assistant .message-identity > svg { color: var(--muted); }
|
|
147
|
+
:is(#messages, #cli-follow-messages) > .message > header { align-items: start; align-content: start; }
|
|
148
|
+
:is(#messages, #cli-follow-messages) > .message > header time { line-height: 1.25; }
|
|
149
|
+
:is(#messages, #cli-follow-messages) > .message:is(.message--tool, .message--tool-only) { padding-block: 0; }
|
|
150
|
+
#messages > .message--tool > details { grid-column: 2; }
|
|
151
|
+
#messages > .message--tool-only > .message-body { grid-column: 2; }
|
|
152
|
+
#messages .tool-details[data-state] .tool-summary {
|
|
153
|
+
--trace-arrival: var(--tool-state-tint, var(--inset));
|
|
154
|
+
}
|
|
155
|
+
#messages [id^="trace-entry-"]:focus, #trace-entry-request:focus, .request-form[data-method="question"]:focus {
|
|
156
|
+
outline: var(--focus) solid var(--accent);
|
|
157
|
+
outline-offset: calc(-1 * var(--focus));
|
|
158
|
+
}
|
|
159
|
+
#messages > [id^="trace-entry-"]:focus { outline-offset: var(--focus); }
|
|
160
|
+
:is(#messages, #cli-follow-messages) .message-body > :is(.plain, .prose) { max-inline-size: 72ch; }
|
|
161
|
+
:is(#messages, #cli-follow-messages) > .message--assistant .prose {
|
|
162
|
+
padding-inline: calc(var(--ledger-padding) + var(--stroke));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
#interactions:not(:empty) { margin-block-start: var(--s2); gap: var(--s2); }
|
|
166
|
+
.request-form {
|
|
167
|
+
--trace-arrival: color-mix(in srgb, var(--warning-tint), var(--warning-edge) 14%);
|
|
168
|
+
min-inline-size: 0;
|
|
169
|
+
display: grid;
|
|
170
|
+
grid-template-columns: calc(var(--ledger-gutter) - var(--s2)) minmax(0, 1fr);
|
|
171
|
+
gap: var(--ledger-gap);
|
|
172
|
+
padding: var(--s3) var(--s2);
|
|
173
|
+
border-radius: var(--r2);
|
|
174
|
+
background: var(--warning-tint);
|
|
175
|
+
color: var(--warning);
|
|
176
|
+
box-shadow: inset 0 0 0 var(--stroke) var(--warning-edge);
|
|
177
|
+
}
|
|
178
|
+
.request-kind { font-size: var(--small); font-weight: 650; line-height: 1.5; letter-spacing: normal; text-wrap: wrap; }
|
|
179
|
+
.request-body, .request-copy, .request-controls { display: grid; min-inline-size: 0; gap: var(--s2); }
|
|
180
|
+
.request-copy { gap: var(--s1); }
|
|
181
|
+
.request-title { font-size: var(--h4); line-height: 1.55; letter-spacing: normal; text-wrap: wrap; }
|
|
182
|
+
.request-form :is(.muted, label.field > span, .button--quiet) { color: var(--warning); }
|
|
183
|
+
.request-fields:empty, .request-copy:empty, .request-actions:empty { display: none; }
|
|
184
|
+
|
|
185
|
+
#details-dialog {
|
|
186
|
+
min-inline-size: 0;
|
|
187
|
+
min-block-size: 0;
|
|
188
|
+
padding: 0;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
background: var(--inspect-surface);
|
|
191
|
+
color: var(--ink);
|
|
192
|
+
}
|
|
193
|
+
#details-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
|
|
194
|
+
#details-dialog:modal {
|
|
195
|
+
position: fixed;
|
|
196
|
+
inset: auto 0 0;
|
|
197
|
+
margin: 0 auto;
|
|
198
|
+
inline-size: min(100%, var(--dialog-width));
|
|
199
|
+
max-inline-size: 100%;
|
|
200
|
+
block-size: min(88dvh, var(--measure));
|
|
201
|
+
max-block-size: none;
|
|
202
|
+
border-radius: var(--r4) var(--r4) 0 0;
|
|
203
|
+
}
|
|
204
|
+
.details-toolbar {
|
|
205
|
+
padding: var(--s2) var(--s3);
|
|
206
|
+
gap: var(--s1);
|
|
207
|
+
}
|
|
208
|
+
.details-toolbar, .runtime-index {
|
|
209
|
+
background: var(--inset);
|
|
210
|
+
}
|
|
211
|
+
.runtime-index {
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-wrap: wrap;
|
|
214
|
+
padding: 0 var(--s3) var(--s2);
|
|
215
|
+
gap: var(--s1);
|
|
216
|
+
border-block-end: var(--stroke) solid var(--line);
|
|
217
|
+
}
|
|
218
|
+
.runtime-index .button { flex: 1 1 0; min-inline-size: max-content; gap: var(--s1); padding-inline: var(--s1); white-space: nowrap; font-size: var(--small); }
|
|
219
|
+
.runtime-index .icon { inline-size: var(--s3); block-size: var(--s3); }
|
|
220
|
+
#details-dialog:modal .details-toolbar .button {
|
|
221
|
+
min-inline-size: var(--touch);
|
|
222
|
+
min-block-size: var(--touch);
|
|
223
|
+
}
|
|
224
|
+
#details-dialog:modal .runtime-index .button {
|
|
225
|
+
flex-basis: var(--touch);
|
|
226
|
+
min-block-size: var(--touch);
|
|
227
|
+
}
|
|
228
|
+
.details-toolbar .button[aria-disabled="true"] { cursor: wait; }
|
|
229
|
+
#sidebar-question {
|
|
230
|
+
flex: 0 0 100%;
|
|
231
|
+
justify-content: start;
|
|
232
|
+
background: var(--warning-tint);
|
|
233
|
+
color: var(--warning);
|
|
234
|
+
border-color: var(--warning-edge);
|
|
235
|
+
}
|
|
236
|
+
#sidebar-question:is(:hover, :active) {
|
|
237
|
+
background: color-mix(in srgb, var(--warning-tint), var(--warning) 8%);
|
|
238
|
+
color: var(--warning);
|
|
239
|
+
}
|
|
240
|
+
.runtime-index .button[aria-selected="true"]:enabled {
|
|
241
|
+
background: var(--inspect-selected-surface);
|
|
242
|
+
color: var(--inspect-selected-ink);
|
|
243
|
+
font-weight: 700;
|
|
244
|
+
border-color: var(--inspect-selected-surface);
|
|
245
|
+
}
|
|
246
|
+
#details-button { color: var(--accent); }
|
|
247
|
+
#details-button[aria-expanded="true"] {
|
|
248
|
+
background: var(--accent-tint);
|
|
249
|
+
color: var(--accent);
|
|
250
|
+
border-color: var(--accent);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
|
|
254
|
+
#details-dialog[open] :is(.details-toolbar, .runtime-index, [role="tabpanel"]:not([hidden])) {
|
|
255
|
+
animation: hud-panel-arrival var(--hud-panel-enter);
|
|
256
|
+
}
|
|
257
|
+
#details-dialog[open] .runtime-index { animation-delay: var(--hud-panel-step); }
|
|
258
|
+
#details-dialog[open] [role="tabpanel"]:not([hidden]) { animation-delay: calc(var(--hud-panel-step) * 2); }
|
|
259
|
+
#details-dialog[open] .details-toolbar,
|
|
260
|
+
#activity-row[data-pending="true"]:not([hidden]) { position: relative; }
|
|
261
|
+
#details-dialog[open] .details-toolbar::after,
|
|
262
|
+
#activity-row[data-pending="true"]:not([hidden])::after {
|
|
263
|
+
content: "";
|
|
264
|
+
position: absolute;
|
|
265
|
+
inset: 0;
|
|
266
|
+
opacity: 0;
|
|
267
|
+
pointer-events: none;
|
|
268
|
+
background:
|
|
269
|
+
linear-gradient(110deg, transparent, var(--hud-sweep-glint), transparent),
|
|
270
|
+
repeating-linear-gradient(0deg, transparent 0 var(--stroke), var(--hud-sweep-line) var(--stroke) var(--focus));
|
|
271
|
+
mask-image: linear-gradient(110deg, transparent 31%, currentColor 50%, transparent 69%);
|
|
272
|
+
mask-size: 240% 100%;
|
|
273
|
+
animation: hud-sweep var(--hud-sweep);
|
|
274
|
+
}
|
|
275
|
+
#activity-row[data-pending="true"]:not([hidden])::after {
|
|
276
|
+
--hud-sweep-glint: color-mix(in srgb, var(--warning), transparent 80%);
|
|
277
|
+
--hud-sweep-line: color-mix(in srgb, var(--warning), transparent 92%);
|
|
278
|
+
}
|
|
279
|
+
.message details[open] > :is(.fold-body, .tool-group-body),
|
|
280
|
+
.runtime-panel details[open]:has(> summary:focus) > :is(.fold-body, .dag-content) {
|
|
281
|
+
animation: disclosure-enter var(--motion-disclosure);
|
|
282
|
+
}
|
|
283
|
+
@keyframes hud-panel-arrival {
|
|
284
|
+
from { transform: translateY(var(--s1)); opacity: .8; }
|
|
285
|
+
}
|
|
286
|
+
@keyframes hud-sweep {
|
|
287
|
+
0% { mask-position: 100% 0; opacity: 0; }
|
|
288
|
+
25% { opacity: 1; }
|
|
289
|
+
100% { mask-position: 0 0; opacity: 0; }
|
|
290
|
+
}
|
|
291
|
+
@keyframes disclosure-enter {
|
|
292
|
+
from { transform: translateY(calc(-1 * var(--focus))); opacity: .55; }
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
@media (forced-colors: active) {
|
|
297
|
+
.brand :is(svg, .brand-mark) { color: CanvasText; }
|
|
298
|
+
.brand svg rect { fill: none; stroke: currentColor; }
|
|
299
|
+
.button.button--primary, #new-sidebar { border-color: ButtonText; }
|
|
300
|
+
.status-dot { border: var(--stroke) solid CanvasText; }
|
|
301
|
+
.sidebar .session-link[aria-current="true"], .sidebar .filters [aria-pressed="true"],
|
|
302
|
+
#rail-toggle[aria-expanded="false"],
|
|
303
|
+
#details-button[aria-expanded="true"], #compose-options-button[aria-expanded="true"] { border-color: Highlight; }
|
|
304
|
+
.sidebar .session-link[aria-current="true"]::after { color: ButtonText; }
|
|
305
|
+
.runtime-index .button[aria-selected="true"]:enabled { border-color: Highlight; }
|
|
306
|
+
.inline-commands > li[aria-selected="true"] {
|
|
307
|
+
outline: var(--focus) solid Highlight;
|
|
308
|
+
outline-offset: calc(-1 * var(--focus));
|
|
309
|
+
}
|
|
310
|
+
#trace-jump-user::before, #jump-to-request::before {
|
|
311
|
+
forced-color-adjust: none;
|
|
312
|
+
color: ButtonText;
|
|
313
|
+
}
|
|
314
|
+
.request-form { outline: var(--stroke) solid CanvasText; outline-offset: calc(-1 * var(--stroke)); }
|
|
315
|
+
.message:has(> header):not(:is(#messages, #cli-follow-messages) > *),
|
|
316
|
+
.metric-tile {
|
|
317
|
+
outline: var(--stroke) solid CanvasText;
|
|
318
|
+
outline-offset: calc(-1 * var(--stroke));
|
|
319
|
+
}
|
|
320
|
+
.message--user > .message-body { border-color: CanvasText; }
|
|
321
|
+
.details-toolbar .button:focus-visible, .runtime-index .button:focus-visible,
|
|
322
|
+
.compose-box > #prompt:focus-visible { outline-color: Highlight; }
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.details-scroll {
|
|
326
|
+
position: relative;
|
|
327
|
+
min-block-size: 0;
|
|
328
|
+
overflow: auto;
|
|
329
|
+
overscroll-behavior: contain;
|
|
330
|
+
padding: var(--s3) var(--s3) max(var(--s3), env(safe-area-inset-bottom));
|
|
331
|
+
}
|
|
332
|
+
.runtime-panel { gap: var(--s2); }
|
|
333
|
+
.runtime-panel > .subpanel {
|
|
334
|
+
min-inline-size: 0;
|
|
335
|
+
padding: var(--s3);
|
|
336
|
+
border: var(--stroke) solid var(--line);
|
|
337
|
+
border-radius: var(--r2);
|
|
338
|
+
background: var(--surface);
|
|
339
|
+
}
|
|
340
|
+
.runtime-panel :is(.metric-breakdown, .dag-run) {
|
|
341
|
+
--runtime-fold-radius: var(--r1);
|
|
342
|
+
border: var(--stroke) solid var(--line);
|
|
343
|
+
border-radius: var(--runtime-fold-radius);
|
|
344
|
+
background: var(--page);
|
|
345
|
+
}
|
|
346
|
+
.runtime-panel :is(.metric-breakdown, .dag-run) > summary {
|
|
347
|
+
border-radius: calc(var(--runtime-fold-radius) - var(--stroke));
|
|
348
|
+
color: var(--ink);
|
|
349
|
+
}
|
|
350
|
+
.runtime-panel :is(.metric-breakdown, .dag-run)[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }
|
|
351
|
+
.runtime-panel:where(#runtime-dag, #runtime-subagent) .subpanel > .inline-list { padding-inline-start: var(--s4); }
|
|
352
|
+
.runtime-panel .button:not(.button--quiet, .button--danger) { color: var(--ink); }
|
|
353
|
+
#runtime-metrics .button--danger:active:not(:disabled) { color: var(--error); background: var(--error-tint); }
|
|
354
|
+
#runtime-metrics .button--danger:disabled { color: var(--muted); border-color: var(--line); opacity: 1; }
|
|
355
|
+
#details-error:not([hidden]) { margin-block-end: var(--s4); }
|
|
356
|
+
.details-scroll:has(#runtime-capabilities:not([hidden])) > #details-error,
|
|
357
|
+
#capabilities-content:empty { display: none; }
|
|
358
|
+
.capability-list > div {
|
|
359
|
+
display: grid;
|
|
360
|
+
grid-template-columns: minmax(0, 1fr) fit-content(50%);
|
|
361
|
+
align-items: baseline;
|
|
362
|
+
gap: var(--s2);
|
|
363
|
+
padding-block: var(--s1);
|
|
364
|
+
border-block-start: var(--stroke) solid var(--line);
|
|
365
|
+
}
|
|
366
|
+
.runtime-panel .capability-list dt { color: var(--ink); }
|
|
367
|
+
.capability-list dd { text-align: end; }
|
|
368
|
+
.runtime-metrics { gap: var(--s2); }
|
|
369
|
+
#runtime-open-resources {
|
|
370
|
+
color: var(--accent);
|
|
371
|
+
padding-inline: var(--s2);
|
|
372
|
+
}
|
|
373
|
+
#details-dialog:modal #runtime-open-resources { min-block-size: var(--touch); }
|
|
374
|
+
.metric-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s1); }
|
|
375
|
+
.metric-tile {
|
|
376
|
+
display: grid;
|
|
377
|
+
align-content: start;
|
|
378
|
+
gap: var(--s1);
|
|
379
|
+
min-inline-size: 0;
|
|
380
|
+
padding: var(--s2);
|
|
381
|
+
border-radius: var(--r1);
|
|
382
|
+
background: var(--inset);
|
|
383
|
+
}
|
|
384
|
+
.metric-tile[data-tone="context"] { background: var(--accent-tint); }
|
|
385
|
+
.metric-tile[data-tone="cache"] { background: var(--success-tint); }
|
|
386
|
+
.metric-tile dt { font-size: var(--caption); color: var(--muted); font-weight: 600; line-height: 1.25; }
|
|
387
|
+
.metric-tile dd { font-size: var(--h3); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
|
|
388
|
+
.metric-tile[data-tone="context"] dd:not(.metric-unreported) { color: var(--accent); }
|
|
389
|
+
.metric-tile[data-tone="cache"] dd:not(.metric-unreported) { color: var(--success); }
|
|
390
|
+
.metric-tile dd.metric-unreported { color: var(--muted); font-weight: 400; }
|
|
391
|
+
.metric-breakdown > .fold-body { padding: var(--s2); border-block-start: var(--stroke) solid var(--line); }
|
|
392
|
+
.metric-group { gap: var(--s1); min-inline-size: 0; }
|
|
393
|
+
.metric-label { color: var(--ink); font-weight: 650; }
|
|
394
|
+
.metric-group .details-list { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 0; }
|
|
395
|
+
.metric-group :is(dt, dd) { padding-block: var(--s1); border-block-start: var(--stroke) solid var(--line); }
|
|
396
|
+
.metric-group dd { padding-inline-start: var(--s2); text-align: end; font-weight: 600; }
|
|
397
|
+
.metric-group .metric-unreported { color: var(--muted); font-weight: 400; }
|
|
398
|
+
.metric-key { color: var(--muted); }
|
|
399
|
+
.runtime-resources > h3 { margin-block-start: var(--s2); scroll-margin-block-start: var(--s2); }
|
|
400
|
+
#runtime-memory-journal > .subpanel { border: 0; padding: 0; }
|
|
401
|
+
#runtime-memory-branch-content .details-list { grid-template-columns: minmax(0, 1fr) fit-content(45%); }
|
|
402
|
+
#runtime-memory-branch-content .details-list dd { text-align: end; }
|
|
403
|
+
#runtime-instructions { --runtime-fold-radius: var(--r2); padding: 0; background: var(--surface); }
|
|
404
|
+
#runtime-instructions-text { white-space: pre-wrap; }
|
|
405
|
+
#details-dialog:modal .runtime-resources summary { min-block-size: var(--touch); }
|
|
406
|
+
|
|
407
|
+
#rail-toggle {
|
|
408
|
+
flex: none;
|
|
409
|
+
inline-size: var(--control);
|
|
410
|
+
padding: 0;
|
|
411
|
+
color: var(--accent);
|
|
412
|
+
}
|
|
413
|
+
#rail-toggle[aria-expanded="false"] { background: var(--accent-tint); }
|
|
414
|
+
|
|
415
|
+
#details-dialog[open]:not(:modal) {
|
|
416
|
+
position: static;
|
|
417
|
+
inline-size: auto;
|
|
418
|
+
block-size: auto;
|
|
419
|
+
max-block-size: none;
|
|
420
|
+
margin: 0;
|
|
421
|
+
border: 0;
|
|
422
|
+
border-inline-start: var(--stroke) solid var(--line);
|
|
423
|
+
border-radius: 0;
|
|
424
|
+
box-shadow: none;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
@media (width > 760px) {
|
|
428
|
+
.workspace[data-rail-collapsed] { grid-template-columns: minmax(0, 1fr); }
|
|
429
|
+
.workspace[data-rail-collapsed] > .sidebar { display: none; }
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
@media (width > 1000px) {
|
|
433
|
+
.workspace:has(#details-dialog[open]:not(:modal)) {
|
|
434
|
+
grid-template-columns: var(--rail-width) minmax(0, 1fr) var(--inspector-width);
|
|
435
|
+
}
|
|
436
|
+
.workspace[data-rail-collapsed]:has(#details-dialog[open]:not(:modal)) {
|
|
437
|
+
grid-template-columns: minmax(0, 1fr) var(--inspector-width);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
#approval { color: var(--ink); background: var(--inset); font-size: var(--small); font-weight: 650; border-radius: var(--pill); }
|
|
442
|
+
#approval:hover:not(:disabled) { background: var(--hover); }
|
|
443
|
+
|
|
444
|
+
.composer-shell { padding: var(--s1) var(--workbench-inset); }
|
|
445
|
+
.composer { container: compose / inline-size; gap: var(--s1); }
|
|
446
|
+
.compose-box #prompt {
|
|
447
|
+
field-sizing: content;
|
|
448
|
+
block-size: auto;
|
|
449
|
+
max-block-size: min(18dvh, var(--code-height));
|
|
450
|
+
padding: var(--s1) var(--s2);
|
|
451
|
+
border-radius: calc(var(--r3) - var(--stroke)) calc(var(--r3) - var(--stroke)) 0 0;
|
|
452
|
+
resize: none;
|
|
453
|
+
}
|
|
454
|
+
.compose-box:has(> textarea:focus-visible) { outline: none; }
|
|
455
|
+
.compose-box > #prompt:focus-visible {
|
|
456
|
+
outline: var(--focus) solid var(--accent);
|
|
457
|
+
outline-offset: calc(-1 * var(--focus));
|
|
458
|
+
}
|
|
459
|
+
.compose-toolbar {
|
|
460
|
+
--compact-options: 0;
|
|
461
|
+
padding-block: 0;
|
|
462
|
+
align-items: center;
|
|
463
|
+
border-block-start: var(--stroke) solid var(--edge);
|
|
464
|
+
border-radius: 0 0 calc(var(--r3) - var(--stroke)) calc(var(--r3) - var(--stroke));
|
|
465
|
+
background: var(--rail);
|
|
466
|
+
}
|
|
467
|
+
.compose-toolbar :is(.button, select):focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
468
|
+
.compose-submit:has(#stop.button--primary:not([hidden])) #send-command {
|
|
469
|
+
background: var(--surface);
|
|
470
|
+
color: var(--ink);
|
|
471
|
+
border-color: var(--edge);
|
|
472
|
+
}
|
|
473
|
+
.compose-submit:has(#stop.button--primary:not([hidden])) #send-command:hover:not(:disabled) { background: var(--hover); }
|
|
474
|
+
.compose-submit:has(#stop.button--primary:not([hidden])) #send-command:disabled { color: var(--muted); border-color: var(--line); }
|
|
475
|
+
.compose-options { flex: 0 1 auto; }
|
|
476
|
+
.compose-options > .stack { min-inline-size: 0; inline-size: 100%; gap: var(--s1); }
|
|
477
|
+
.compose-selectors > label { flex: none; max-inline-size: calc(var(--s8) * 4); }
|
|
478
|
+
.compose-selectors > label:has(#model) { flex: 0 1 auto; max-inline-size: 13rem; }
|
|
479
|
+
.compose-selectors select, #approval { text-overflow: ellipsis; }
|
|
480
|
+
.approval-control { flex: none; max-inline-size: min(40%, 13rem); }
|
|
481
|
+
#compose-options-button {
|
|
482
|
+
display: none;
|
|
483
|
+
flex: none;
|
|
484
|
+
min-inline-size: var(--control);
|
|
485
|
+
padding-inline: var(--s2);
|
|
486
|
+
font-size: var(--small);
|
|
487
|
+
white-space: nowrap;
|
|
488
|
+
}
|
|
489
|
+
.composer-meta { column-gap: var(--s2); }
|
|
490
|
+
.composer-meta, .compose-signals, .compose-discovery { flex-wrap: nowrap; }
|
|
491
|
+
.compose-signals { flex: 1 1 0; gap: var(--s2); }
|
|
492
|
+
.compose-signals .activity { font-weight: 650; min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
493
|
+
#current-todo, #command-mode, #command-picker { font-size: var(--small); padding-inline: var(--s2); }
|
|
494
|
+
#current-todo { color: var(--accent); justify-content: start; min-inline-size: var(--control); }
|
|
495
|
+
#current-todo:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
496
|
+
#current-todo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
497
|
+
#context-usage, #cache-usage { flex: none; white-space: nowrap; }
|
|
498
|
+
.compose-discovery { flex: none; margin-inline-start: auto; gap: var(--s1); }
|
|
499
|
+
.compose-discovery .button { white-space: nowrap; }
|
|
500
|
+
#command-picker { color: var(--muted); border-color: var(--line); background: transparent; }
|
|
501
|
+
#command-picker:hover:not(:disabled) { color: var(--ink); background: var(--hover); }
|
|
502
|
+
.inline-commands {
|
|
503
|
+
position: absolute;
|
|
504
|
+
z-index: 2;
|
|
505
|
+
inset-inline: 0;
|
|
506
|
+
inset-block-end: calc(100% + var(--s1));
|
|
507
|
+
max-block-size: min(42dvh, 18rem);
|
|
508
|
+
overflow: auto;
|
|
509
|
+
list-style: none;
|
|
510
|
+
padding: var(--s1);
|
|
511
|
+
border: var(--stroke) solid var(--edge);
|
|
512
|
+
border-radius: var(--r2);
|
|
513
|
+
background: var(--surface);
|
|
514
|
+
box-shadow: var(--shadow);
|
|
515
|
+
}
|
|
516
|
+
.inline-commands > li {
|
|
517
|
+
display: flex;
|
|
518
|
+
align-items: center;
|
|
519
|
+
gap: var(--s2);
|
|
520
|
+
min-block-size: var(--control);
|
|
521
|
+
padding-inline: var(--s2);
|
|
522
|
+
border-radius: var(--r1);
|
|
523
|
+
cursor: pointer;
|
|
524
|
+
}
|
|
525
|
+
.inline-commands > li:is([aria-selected="true"], :hover) { background: var(--accent-tint); color: var(--accent); }
|
|
526
|
+
.inline-commands > li > code { flex: 0 1 auto; min-inline-size: 0; }
|
|
527
|
+
.inline-commands > li > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
528
|
+
.dag-content { padding: var(--s2); }
|
|
529
|
+
.dag-wave { padding: var(--s2); border: var(--stroke) solid var(--line); border-radius: var(--r1); background: var(--surface); }
|
|
530
|
+
.dag-wave .inline-list { padding-inline-start: var(--s3); }
|
|
531
|
+
#approval:disabled { color: var(--muted); opacity: 1; border-color: var(--line); }
|
|
532
|
+
#approval[data-preset="full-access"] { color: var(--warning); background: var(--warning-tint); border-color: var(--warning-edge); }
|
|
533
|
+
#approval[data-preset="full-access"]:hover:not(:disabled) { background: color-mix(in srgb, var(--warning-tint), var(--warning) 8%); }
|
|
534
|
+
#compose-options-button[aria-expanded="true"] { color: var(--accent); background: var(--accent-tint); }
|
|
535
|
+
|
|
536
|
+
#handoff-receipt { min-inline-size: 0; inline-size: 100%; }
|
|
537
|
+
#handoff-command { white-space: pre-wrap; }
|
|
538
|
+
#handoff-command code { overflow-wrap: anywhere; }
|
|
539
|
+
#command-mode[aria-pressed="true"] { background: var(--accent-tint); color: var(--accent); }
|
|
540
|
+
#cli-live-transcript {
|
|
541
|
+
max-block-size: var(--code-height);
|
|
542
|
+
min-block-size: var(--s8);
|
|
543
|
+
overflow: auto;
|
|
544
|
+
overscroll-behavior: contain;
|
|
545
|
+
border-block: var(--stroke) solid var(--line);
|
|
546
|
+
padding-block: var(--s3);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
#cli-live-input,
|
|
550
|
+
#branch-message {
|
|
551
|
+
inline-size: 100%;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
#cli-live-input {
|
|
555
|
+
resize: vertical;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
#branch-message-preview {
|
|
559
|
+
max-block-size: calc(var(--s8) * 3);
|
|
560
|
+
overflow: auto;
|
|
561
|
+
padding: var(--s2) var(--s3);
|
|
562
|
+
background: var(--rail);
|
|
563
|
+
border-radius: var(--r1);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
@media (width > 760px) {
|
|
567
|
+
.sidebar-head { padding-block: var(--s4) var(--s2); gap: var(--s2); }
|
|
568
|
+
#session-list .session-link { grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--s2); }
|
|
569
|
+
#session-list .session-link > :first-child { grid-column: 1 / -1; }
|
|
570
|
+
#session-list .session-link > small { grid-area: 2 / 2; }
|
|
571
|
+
:is(#messages, #cli-follow-messages) > .message > header { flex-direction: column; gap: 0; }
|
|
572
|
+
:is(#messages, #cli-follow-messages) > .message--user > header { padding-block-start: var(--s1); }
|
|
573
|
+
.request-controls--choice { display: flex; flex-wrap: wrap; align-items: end; }
|
|
574
|
+
.request-controls--choice .request-fields { flex: 1 1 calc(var(--s8) * 8); }
|
|
575
|
+
.composer-meta .button { min-block-size: var(--s6); padding-block: 0; line-height: 1.2; }
|
|
576
|
+
#details-dialog:not(:modal) .runtime-index { padding-block-end: var(--s1); }
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
@media (width > 760px) and (height <= 36rem) {
|
|
580
|
+
.workspace-tools:has(#workspace-field:not([hidden])) { grid-template-columns: max-content minmax(0, 1fr); }
|
|
581
|
+
.workspace-tools:has(#workspace-field:not([hidden]), #workspace-browser-button:not([hidden])) > #new-sidebar { grid-column: auto; }
|
|
582
|
+
.workspace-tools:has(#workspace-field:not([hidden])):has(#workspace-browser-button:not([hidden])) { grid-template-columns: max-content minmax(0, 1fr) auto; }
|
|
583
|
+
.workspace-tools:has(#workspace-field:not([hidden]) ~ #workspace-browser-button:not([hidden])) > #new-sidebar { padding-inline: var(--s2); }
|
|
584
|
+
.workspace-tools:has(#workspace-field:not([hidden]) ~ #workspace-browser-button:not([hidden])) > #new-sidebar svg { display: none; }
|
|
585
|
+
#workspace-browser-button { min-inline-size: var(--control); }
|
|
586
|
+
#workspace-browser-button > span { display: none; }
|
|
587
|
+
#workspace-select { padding-inline: var(--s2); }
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
@container workbench (inline-size < 40rem) {
|
|
591
|
+
.session-heading:has(#session-path-trigger:not([hidden])) { position: relative; display: grid; align-content: center; }
|
|
592
|
+
#session-path:not([hidden]):not([data-workspace-label]) {
|
|
593
|
+
position: absolute;
|
|
594
|
+
inline-size: var(--stroke);
|
|
595
|
+
block-size: var(--stroke);
|
|
596
|
+
clip-path: inset(50%);
|
|
597
|
+
}
|
|
598
|
+
#session-path:not([data-workspace-label]) + #session-path-short:not([hidden]) {
|
|
599
|
+
display: block;
|
|
600
|
+
color: var(--accent);
|
|
601
|
+
}
|
|
602
|
+
#session-path-short::after { content: " ›"; }
|
|
603
|
+
#session-path-trigger:not([hidden]) {
|
|
604
|
+
display: block;
|
|
605
|
+
position: absolute;
|
|
606
|
+
inset: 0;
|
|
607
|
+
inline-size: 100%;
|
|
608
|
+
padding: 0;
|
|
609
|
+
border: 0;
|
|
610
|
+
border-radius: var(--r1);
|
|
611
|
+
background: transparent;
|
|
612
|
+
}
|
|
613
|
+
#session-path-trigger:focus-visible { outline-offset: 0; }
|
|
614
|
+
.workspace-actions .button:not(#cli-follow-stop) {
|
|
615
|
+
inline-size: var(--control);
|
|
616
|
+
padding-inline: 0;
|
|
617
|
+
}
|
|
618
|
+
.workspace-actions .action-label {
|
|
619
|
+
position: absolute;
|
|
620
|
+
inline-size: var(--stroke);
|
|
621
|
+
block-size: var(--stroke);
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
clip-path: inset(50%);
|
|
624
|
+
white-space: nowrap;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
@container compose (inline-size < 44rem) {
|
|
629
|
+
.compose-toolbar { --compact-options: 1; }
|
|
630
|
+
#compose-options-button { display: inline-flex; }
|
|
631
|
+
.compose-options {
|
|
632
|
+
display: none;
|
|
633
|
+
position: absolute;
|
|
634
|
+
z-index: 1;
|
|
635
|
+
inset-inline-start: 0;
|
|
636
|
+
inset-block-end: calc(100% + var(--s2));
|
|
637
|
+
inline-size: min(100%, calc(var(--measure) / 2));
|
|
638
|
+
max-block-size: min(55dvh, var(--code-height));
|
|
639
|
+
overflow: auto;
|
|
640
|
+
padding: var(--s3);
|
|
641
|
+
border: var(--stroke) solid var(--edge);
|
|
642
|
+
border-radius: var(--r2);
|
|
643
|
+
background: var(--surface);
|
|
644
|
+
box-shadow: var(--shadow);
|
|
645
|
+
}
|
|
646
|
+
#compose-options-button[aria-expanded="true"] + .compose-options,
|
|
647
|
+
.compose-toolbar:not([data-compact]) .compose-options:focus-within { display: block; }
|
|
648
|
+
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
|
|
649
|
+
#compose-options-button[aria-expanded="true"] + .compose-options {
|
|
650
|
+
transform-origin: bottom left;
|
|
651
|
+
animation: options-enter var(--motion-enter);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
.compose-selectors {
|
|
655
|
+
display: grid;
|
|
656
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
657
|
+
gap: var(--s2);
|
|
658
|
+
}
|
|
659
|
+
.compose-selectors > label { display: grid; gap: var(--s1); max-inline-size: none; }
|
|
660
|
+
.compose-selectors > label:has(#model) { grid-column: 1 / -1; max-inline-size: none; }
|
|
661
|
+
#apply-model { grid-column: 1 / -1; justify-self: end; border-color: var(--line); }
|
|
662
|
+
.compose-selectors > label > span {
|
|
663
|
+
position: static;
|
|
664
|
+
inline-size: auto;
|
|
665
|
+
block-size: auto;
|
|
666
|
+
clip-path: none;
|
|
667
|
+
color: var(--muted);
|
|
668
|
+
font-size: var(--caption);
|
|
669
|
+
}
|
|
670
|
+
.compose-selectors select { inline-size: 100%; max-inline-size: 100%; border-color: var(--edge); }
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
@keyframes options-enter {
|
|
674
|
+
from { transform: translateY(var(--s1)) scale(.98); opacity: .72; }
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
@container compose (inline-size >= 44rem) {
|
|
678
|
+
/* Keep the old trigger focusable only until the resize handler hands off focus. */
|
|
679
|
+
.compose-toolbar[data-compact] #compose-options-button:focus { display: inline-flex; position: absolute; }
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
@container compose (inline-size < 34rem) {
|
|
683
|
+
.compose-signals:has(#activity-row:not([hidden]), #current-todo:not([hidden])) #cache-usage { display: none; }
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
@container compose (inline-size < 25rem) {
|
|
687
|
+
#cache-usage,
|
|
688
|
+
.compose-signals:has(#activity-row:not([hidden])) #context-usage,
|
|
689
|
+
.composer-meta:has(#command-picker:not([hidden])) #context-usage { display: none; }
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
@container compose (inline-size < 22rem) {
|
|
693
|
+
.compose-signals:has(#current-todo:not([hidden])) #context-usage { display: none; }
|
|
694
|
+
.compose-toolbar:has(#stop:not([hidden]) ~ .button:not([hidden])) { column-gap: 0; }
|
|
695
|
+
.compose-toolbar:has(#stop:not([hidden]) ~ .button:not([hidden])) .approval-control {
|
|
696
|
+
position: relative;
|
|
697
|
+
flex: 0 1 auto;
|
|
698
|
+
}
|
|
699
|
+
.compose-toolbar:has(#stop:not([hidden]) ~ .button:not([hidden])) #approval {
|
|
700
|
+
appearance: none;
|
|
701
|
+
padding-inline: var(--s1) var(--s4);
|
|
702
|
+
}
|
|
703
|
+
.compose-toolbar:has(#stop:not([hidden]) ~ .button:not([hidden])) .approval-control::after {
|
|
704
|
+
content: "";
|
|
705
|
+
position: absolute;
|
|
706
|
+
inset-inline-end: var(--s2);
|
|
707
|
+
inset-block-start: calc(50% - var(--s1));
|
|
708
|
+
inline-size: var(--s1);
|
|
709
|
+
block-size: var(--s1);
|
|
710
|
+
border-inline-end: var(--stroke) solid currentColor;
|
|
711
|
+
border-block-end: var(--stroke) solid currentColor;
|
|
712
|
+
transform: rotate(45deg);
|
|
713
|
+
pointer-events: none;
|
|
714
|
+
}
|
|
715
|
+
:is(.compose-submit:has(#stop:not([hidden]) ~ .button:not([hidden])) .button, #send-command) {
|
|
716
|
+
inline-size: var(--control);
|
|
717
|
+
padding-inline: 0;
|
|
718
|
+
}
|
|
719
|
+
:is(.compose-submit:has(#stop:not([hidden]) ~ .button:not([hidden])) .button, #send-command) > svg { display: block; }
|
|
720
|
+
:is(.compose-submit:has(#stop:not([hidden]) ~ .button:not([hidden])) .button, #send-command) > span {
|
|
721
|
+
position: absolute;
|
|
722
|
+
inline-size: var(--stroke);
|
|
723
|
+
block-size: var(--stroke);
|
|
724
|
+
overflow: hidden;
|
|
725
|
+
clip-path: inset(50%);
|
|
726
|
+
white-space: nowrap;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
@media (max-width: 760px) {
|
|
731
|
+
#rail-toggle { display: none; }
|
|
732
|
+
.main { --workbench-inset: var(--s3); --ledger-control: var(--touch); }
|
|
733
|
+
.session-heading:has(#session-path-trigger:not([hidden])) { min-block-size: var(--touch); }
|
|
734
|
+
.prose :is(ul, ol) { padding-inline-start: var(--s4); }
|
|
735
|
+
.prose li { text-wrap: pretty; }
|
|
736
|
+
.trace-inner { grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2); }
|
|
737
|
+
.trace-node { min-inline-size: var(--touch); }
|
|
738
|
+
:is(#messages, #cli-follow-messages) > .message, .request-form { grid-template-columns: minmax(0, 1fr); }
|
|
739
|
+
:is(#messages, #cli-follow-messages) > .message > header { align-items: baseline; }
|
|
740
|
+
.main:has(#cli-follow-view:not([hidden])) #session-path {
|
|
741
|
+
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
|
|
742
|
+
white-space: normal; overflow-wrap: anywhere;
|
|
743
|
+
}
|
|
744
|
+
#session-path[data-workspace-label]::before { content: attr(data-workspace-label) " · "; font-weight: 650; }
|
|
745
|
+
#messages > .message--tool > details { grid-column: 1; }
|
|
746
|
+
#messages > .message--tool-only > .message-body { grid-column: 1; }
|
|
747
|
+
.request-form :is(h2.request-kind, .request-title) { font-size: var(--h3); line-height: 1.25; }
|
|
748
|
+
#approval { padding-inline: var(--s1); min-inline-size: var(--touch); }
|
|
749
|
+
.workspace-actions .button:not(#cli-follow-stop) { inline-size: var(--touch); }
|
|
750
|
+
#open-navigation svg, .workspace-actions svg { inline-size: var(--s5); block-size: var(--s5); }
|
|
751
|
+
.workspace-actions .action-label {
|
|
752
|
+
position: absolute;
|
|
753
|
+
inline-size: var(--stroke);
|
|
754
|
+
block-size: var(--stroke);
|
|
755
|
+
overflow: hidden;
|
|
756
|
+
clip-path: inset(50%);
|
|
757
|
+
white-space: nowrap;
|
|
758
|
+
}
|
|
759
|
+
#cli-live-transcript {
|
|
760
|
+
max-block-size: min(var(--code-height), calc(100dvh / 3));
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
@media (max-width: 360px) {
|
|
765
|
+
.workspace-tools { column-gap: var(--s2); }
|
|
766
|
+
#workspace-browser-button { font-size: var(--caption); }
|
|
767
|
+
#workspace-select { padding-inline: var(--s1); }
|
|
768
|
+
.workspace-path-form { grid-template-columns: minmax(0, 1fr); }
|
|
769
|
+
#command-shortcuts .details-list { grid-template-columns: fit-content(36%) minmax(0, 1fr); }
|
|
770
|
+
.trace-inner:has(.trace-node:nth-child(4 of .trace-node:not([hidden]))) {
|
|
771
|
+
grid-template-columns: minmax(0, 1fr);
|
|
772
|
+
gap: 0;
|
|
773
|
+
}
|
|
774
|
+
.trace-inner:has(.trace-node:nth-child(4 of .trace-node:not([hidden]))) #session-trace-label {
|
|
775
|
+
position: absolute;
|
|
776
|
+
inline-size: var(--stroke);
|
|
777
|
+
block-size: var(--stroke);
|
|
778
|
+
overflow: hidden;
|
|
779
|
+
clip-path: inset(50%);
|
|
780
|
+
white-space: nowrap;
|
|
781
|
+
}
|
|
782
|
+
}
|