omo-web 0.1.9 → 0.1.10
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/README.md +1 -1
- package/bin/tui.js +43 -21
- package/dist/app.js +43 -38
- package/dist/server.js +1230 -600
- package/package.json +1 -1
- package/public/dag-graph.css +62 -6
- package/public/index.html +11 -15
- package/public/login.css +93 -0
- package/public/login.html +27 -0
- package/public/styles.css +20 -9
- package/public/tool-ledger.css +56 -35
- package/public/workbench.css +116 -78
package/public/workbench.css
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
--hud-sweep: 420ms var(--ease-emphasized);
|
|
3
3
|
--hud-panel-enter: 240ms var(--ease-emphasized) backwards;
|
|
4
4
|
--hud-panel-step: 44ms;
|
|
5
|
+
--activity-spin: 900ms linear infinite;
|
|
5
6
|
--hud-sweep-glint: color-mix(in srgb, var(--accent), transparent 83%);
|
|
6
|
-
--hud-sweep-line: color-mix(in srgb, var(--accent), transparent 94%);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
:is(#cli-history-list, #cli-history-web-list) { gap: var(--s1); padding: 0; }
|
|
@@ -20,13 +20,54 @@
|
|
|
20
20
|
.sessions .session-group + .session-group { margin-block-start: var(--s3); }
|
|
21
21
|
.session-group { display: grid; min-inline-size: 0; gap: var(--s1); }
|
|
22
22
|
.session-group-heading {
|
|
23
|
-
padding-inline: var(--s3);
|
|
24
|
-
color: var(--ink);
|
|
25
23
|
font-size: var(--small);
|
|
26
|
-
|
|
24
|
+
letter-spacing: normal;
|
|
25
|
+
}
|
|
26
|
+
.session-group-toggle {
|
|
27
|
+
display: grid;
|
|
28
|
+
grid-template-columns: auto minmax(0, 1fr) var(--s3);
|
|
29
|
+
justify-items: start;
|
|
30
|
+
gap: var(--s1) var(--s2);
|
|
31
|
+
inline-size: 100%;
|
|
32
|
+
padding: var(--s2);
|
|
33
|
+
border-radius: var(--r1);
|
|
34
|
+
background: var(--inset);
|
|
35
|
+
color: var(--ink);
|
|
36
|
+
text-align: start;
|
|
27
37
|
}
|
|
28
|
-
.
|
|
29
|
-
|
|
38
|
+
.session-group-toggle svg { color: var(--accent); }
|
|
39
|
+
.session-group-label { min-inline-size: 0; overflow-wrap: anywhere; }
|
|
40
|
+
.session-group-path {
|
|
41
|
+
grid-column: 2 / -1;
|
|
42
|
+
min-inline-size: 0;
|
|
43
|
+
color: var(--muted);
|
|
44
|
+
font-size: var(--caption);
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
overflow-wrap: anywhere;
|
|
47
|
+
}
|
|
48
|
+
.session-group-chevron {
|
|
49
|
+
justify-self: center;
|
|
50
|
+
inline-size: var(--s1);
|
|
51
|
+
block-size: var(--s1);
|
|
52
|
+
border-inline-end: var(--stroke) solid currentColor;
|
|
53
|
+
border-block-end: var(--stroke) solid currentColor;
|
|
54
|
+
transform: rotate(-45deg);
|
|
55
|
+
}
|
|
56
|
+
.session-group-toggle[aria-expanded="true"] .session-group-chevron { transform: rotate(45deg); }
|
|
57
|
+
.sessions .session-group-rows { padding-inline-start: var(--s2); }
|
|
58
|
+
.session-rail-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--control); gap: var(--s1); }
|
|
59
|
+
#session-list .session-link { color: var(--ink); padding-inline-start: var(--s2); }
|
|
60
|
+
#session-list .session-link span { min-inline-size: 0; }
|
|
61
|
+
.session-rail-close { padding: 0; border-radius: var(--r1); }
|
|
62
|
+
.session-rail-close svg { inline-size: var(--s3); block-size: var(--s3); }
|
|
63
|
+
.session-rail-close[aria-disabled="true"] { cursor: progress; background: transparent; color: var(--muted); }
|
|
64
|
+
#session-list .session-rail-row:has(.session-rail-close[aria-disabled="true"]) > .session-link {
|
|
65
|
+
grid-template-columns: minmax(0, 1fr);
|
|
66
|
+
gap: 0;
|
|
67
|
+
}
|
|
68
|
+
.sessions .session-rail-close-error { grid-column: 1 / -1; margin-inline: var(--s2); }
|
|
69
|
+
.session-rail-row > .button:focus-visible, .session-group-toggle:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
70
|
+
.sessions #list-empty { margin-block-start: var(--s2); padding-inline: var(--s2); }
|
|
30
71
|
.workspace-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: inherit; }
|
|
31
72
|
.workspace-tools:has(#workspace-browser-button:not([hidden])) { grid-template-columns: minmax(0, 1fr) auto; }
|
|
32
73
|
.workspace-tools:has(#workspace-field:not([hidden])) > #new-sidebar { grid-column: 1 / -1; }
|
|
@@ -90,48 +131,11 @@ button.workspace-entry { color: var(--accent); }
|
|
|
90
131
|
--ledger-gap: var(--s4);
|
|
91
132
|
--ledger-padding: var(--s2);
|
|
92
133
|
--ledger-control: var(--control-compact);
|
|
93
|
-
--trace-arrival: var(--inset);
|
|
94
134
|
}
|
|
95
135
|
.workspace-head { padding-block: var(--s1); }
|
|
96
136
|
.session-heading h1 { line-height: 1.2; }
|
|
97
137
|
.session-heading .path { line-height: 1.3; }
|
|
98
138
|
#session-path-short, #session-path-trigger { display: none; }
|
|
99
|
-
.session-trace {
|
|
100
|
-
grid-row: 2;
|
|
101
|
-
padding-inline: var(--workbench-inset);
|
|
102
|
-
border-block-end: var(--stroke) solid var(--line);
|
|
103
|
-
background: var(--page);
|
|
104
|
-
}
|
|
105
|
-
.trace-inner {
|
|
106
|
-
max-inline-size: var(--measure);
|
|
107
|
-
margin-inline: auto;
|
|
108
|
-
display: grid;
|
|
109
|
-
grid-template-columns: var(--ledger-gutter) minmax(0, 1fr);
|
|
110
|
-
align-items: center;
|
|
111
|
-
gap: var(--ledger-gap);
|
|
112
|
-
}
|
|
113
|
-
#session-trace-label { font-size: var(--small); color: var(--muted); font-weight: 650; }
|
|
114
|
-
.trace-links { display: flex; flex-wrap: wrap; gap: 0 var(--s1); }
|
|
115
|
-
.trace-node { min-block-size: var(--ledger-control); padding-inline: var(--s2); font-size: var(--small); }
|
|
116
|
-
.trace-node::before {
|
|
117
|
-
content: "";
|
|
118
|
-
display: block;
|
|
119
|
-
inline-size: var(--s2);
|
|
120
|
-
block-size: var(--s2);
|
|
121
|
-
border: var(--stroke) solid currentColor;
|
|
122
|
-
border-radius: var(--pill);
|
|
123
|
-
flex: none;
|
|
124
|
-
}
|
|
125
|
-
#trace-jump-user { color: var(--ink); }
|
|
126
|
-
#trace-jump-user::before { background: currentColor; }
|
|
127
|
-
#trace-jump-assistant { color: var(--ink); }
|
|
128
|
-
#trace-jump-tool { color: var(--accent); }
|
|
129
|
-
#trace-jump-tool::before { border-radius: 0; transform: rotate(45deg); }
|
|
130
|
-
#jump-to-request { color: var(--warning); }
|
|
131
|
-
#jump-to-request::before { background: currentColor; border-radius: 0; }
|
|
132
|
-
#jump-to-request:hover { background: var(--warning-tint); }
|
|
133
|
-
.trace-node:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
134
|
-
|
|
135
139
|
#transcript { padding-block: var(--s2); }
|
|
136
140
|
#transcript, #cli-follow-view { padding-inline: var(--workbench-inset) 0; }
|
|
137
141
|
:is(#transcript, #cli-follow-view) > .conversation {
|
|
@@ -151,9 +155,6 @@ button.workspace-entry { color: var(--accent); }
|
|
|
151
155
|
border-radius: 0;
|
|
152
156
|
background: transparent;
|
|
153
157
|
}
|
|
154
|
-
:is(#messages, #cli-follow-messages) > .message--user {
|
|
155
|
-
--trace-arrival: color-mix(in srgb, var(--user-surface), var(--ink) 16%);
|
|
156
|
-
}
|
|
157
158
|
:is(#messages, #cli-follow-messages) > .message--user > .message-body {
|
|
158
159
|
padding: var(--s1) var(--ledger-padding);
|
|
159
160
|
border: var(--stroke) solid var(--edge);
|
|
@@ -165,19 +166,46 @@ button.workspace-entry { color: var(--accent); }
|
|
|
165
166
|
.message-identity > .speaker { line-height: var(--s5); }
|
|
166
167
|
.message--user .message-identity { color: var(--accent); }
|
|
167
168
|
.message--assistant .message-identity > svg { color: var(--muted); }
|
|
169
|
+
.message--assistant .message-identity { white-space: nowrap; }
|
|
170
|
+
.message-writing {
|
|
171
|
+
position: relative;
|
|
172
|
+
flex: none;
|
|
173
|
+
align-self: center;
|
|
174
|
+
inline-size: var(--s1);
|
|
175
|
+
block-size: var(--s1);
|
|
176
|
+
border-radius: var(--pill);
|
|
177
|
+
color: var(--accent);
|
|
178
|
+
background: currentColor;
|
|
179
|
+
}
|
|
180
|
+
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
|
|
181
|
+
.message-writing:not([hidden])::after {
|
|
182
|
+
content: "";
|
|
183
|
+
position: absolute;
|
|
184
|
+
inset: calc(-1 * var(--focus));
|
|
185
|
+
border: var(--stroke) solid currentColor;
|
|
186
|
+
border-radius: var(--pill);
|
|
187
|
+
opacity: 0;
|
|
188
|
+
animation: message-writing-pulse var(--activity-spin) paused;
|
|
189
|
+
}
|
|
190
|
+
.message-writing[data-in-view]::after { animation-play-state: running; }
|
|
191
|
+
@keyframes message-writing-pulse {
|
|
192
|
+
0%, 100% { opacity: 0; transform: scale(.65); }
|
|
193
|
+
22% { opacity: .65; }
|
|
194
|
+
70% { opacity: 0; transform: scale(1.35); }
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
@media (forced-colors: active) {
|
|
198
|
+
.message-writing { color: CanvasText; forced-color-adjust: none; }
|
|
199
|
+
}
|
|
168
200
|
:is(#messages, #cli-follow-messages) > .message > header { align-items: start; align-content: start; }
|
|
169
201
|
:is(#messages, #cli-follow-messages) > .message > header time { line-height: 1.25; }
|
|
170
202
|
:is(#messages, #cli-follow-messages) > .message:is(.message--tool, .message--tool-only) { padding-block: 0; }
|
|
171
203
|
#messages > .message--tool > details { grid-column: 2; }
|
|
172
204
|
#messages > .message--tool-only > .message-body { grid-column: 2; }
|
|
173
|
-
|
|
174
|
-
--trace-arrival: var(--tool-state-tint, var(--inset));
|
|
175
|
-
}
|
|
176
|
-
#messages [id^="trace-entry-"]:focus, #trace-entry-request:focus, .request-form[data-method="question"]:focus {
|
|
205
|
+
.request-form[data-method="question"]:focus {
|
|
177
206
|
outline: var(--focus) solid var(--accent);
|
|
178
207
|
outline-offset: calc(-1 * var(--focus));
|
|
179
208
|
}
|
|
180
|
-
#messages > [id^="trace-entry-"]:focus { outline-offset: var(--focus); }
|
|
181
209
|
:is(#messages, #cli-follow-messages) .message-body > :is(.plain, .prose) { max-inline-size: 72ch; }
|
|
182
210
|
:is(#messages, #cli-follow-messages) > .message--assistant .prose {
|
|
183
211
|
padding-inline: calc(var(--ledger-padding) + var(--stroke));
|
|
@@ -185,7 +213,6 @@ button.workspace-entry { color: var(--accent); }
|
|
|
185
213
|
|
|
186
214
|
#interactions:not(:empty) { margin-block-start: var(--s2); gap: var(--s2); }
|
|
187
215
|
.request-form {
|
|
188
|
-
--trace-arrival: color-mix(in srgb, var(--warning-tint), var(--warning-edge) 14%);
|
|
189
216
|
min-inline-size: 0;
|
|
190
217
|
display: grid;
|
|
191
218
|
grid-template-columns: calc(var(--ledger-gutter) - var(--s2)) minmax(0, 1fr);
|
|
@@ -286,18 +313,15 @@ button.workspace-entry { color: var(--accent); }
|
|
|
286
313
|
inset: 0;
|
|
287
314
|
opacity: 0;
|
|
288
315
|
pointer-events: none;
|
|
289
|
-
background:
|
|
290
|
-
linear-gradient(110deg, transparent, var(--hud-sweep-glint), transparent),
|
|
291
|
-
repeating-linear-gradient(0deg, transparent 0 var(--stroke), var(--hud-sweep-line) var(--stroke) var(--focus));
|
|
316
|
+
background: linear-gradient(110deg, transparent, var(--hud-sweep-glint), transparent);
|
|
292
317
|
mask-image: linear-gradient(110deg, transparent 31%, currentColor 50%, transparent 69%);
|
|
293
318
|
mask-size: 240% 100%;
|
|
294
319
|
animation: hud-sweep var(--hud-sweep);
|
|
295
320
|
}
|
|
296
321
|
#activity-row[data-pending="true"]:not([hidden])::after {
|
|
297
322
|
--hud-sweep-glint: color-mix(in srgb, var(--warning), transparent 80%);
|
|
298
|
-
--hud-sweep-line: color-mix(in srgb, var(--warning), transparent 92%);
|
|
299
323
|
}
|
|
300
|
-
.message details[open] > :is(.fold-body, .tool-group-body),
|
|
324
|
+
.message details[open]:not(.tool-details:not(.tool-group *)) > :is(.fold-body, .tool-group-body),
|
|
301
325
|
.runtime-panel details[open]:has(> summary:focus) > :is(.fold-body, .dag-content) {
|
|
302
326
|
animation: disclosure-enter var(--motion-disclosure);
|
|
303
327
|
}
|
|
@@ -328,10 +352,6 @@ button.workspace-entry { color: var(--accent); }
|
|
|
328
352
|
outline: var(--focus) solid Highlight;
|
|
329
353
|
outline-offset: calc(-1 * var(--focus));
|
|
330
354
|
}
|
|
331
|
-
#trace-jump-user::before, #jump-to-request::before {
|
|
332
|
-
forced-color-adjust: none;
|
|
333
|
-
color: ButtonText;
|
|
334
|
-
}
|
|
335
355
|
.request-form { outline: var(--stroke) solid CanvasText; outline-offset: calc(-1 * var(--stroke)); }
|
|
336
356
|
.message:has(> header):not(:is(#messages, #cli-follow-messages) > *),
|
|
337
357
|
.metric-tile {
|
|
@@ -512,7 +532,36 @@ button.workspace-entry { color: var(--accent); }
|
|
|
512
532
|
.composer-meta { column-gap: var(--s2); }
|
|
513
533
|
.composer-meta, .compose-signals, .compose-discovery { flex-wrap: nowrap; }
|
|
514
534
|
.compose-signals { flex: 1 1 0; gap: var(--s2); }
|
|
515
|
-
.
|
|
535
|
+
.activity[data-phase] {
|
|
536
|
+
display: flex;
|
|
537
|
+
align-items: center;
|
|
538
|
+
gap: var(--s2);
|
|
539
|
+
min-inline-size: 0;
|
|
540
|
+
color: var(--accent);
|
|
541
|
+
font-weight: 650;
|
|
542
|
+
white-space: nowrap;
|
|
543
|
+
}
|
|
544
|
+
#activity { overflow: hidden; text-overflow: ellipsis; }
|
|
545
|
+
.activity-glyph {
|
|
546
|
+
flex: none;
|
|
547
|
+
inline-size: var(--s3);
|
|
548
|
+
block-size: var(--s3);
|
|
549
|
+
border: var(--focus) solid currentColor;
|
|
550
|
+
border-radius: var(--pill);
|
|
551
|
+
}
|
|
552
|
+
.activity[data-phase="pending"] { color: var(--muted); }
|
|
553
|
+
.activity[data-phase="waiting"] { color: var(--warning); }
|
|
554
|
+
.activity[data-phase="waiting"] .activity-glyph {
|
|
555
|
+
border-radius: 0;
|
|
556
|
+
transform: rotate(45deg);
|
|
557
|
+
}
|
|
558
|
+
@media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
|
|
559
|
+
.activity[data-phase="active"] .activity-glyph {
|
|
560
|
+
border-inline-end-color: transparent;
|
|
561
|
+
animation: activity-spin var(--activity-spin);
|
|
562
|
+
}
|
|
563
|
+
@keyframes activity-spin { to { transform: rotate(1turn); } }
|
|
564
|
+
}
|
|
516
565
|
#current-todo, #command-mode, #command-picker { font-size: var(--small); padding-inline: var(--s2); }
|
|
517
566
|
#current-todo { color: var(--accent); justify-content: start; min-inline-size: var(--control); }
|
|
518
567
|
#current-todo:focus-visible { outline-offset: calc(-1 * var(--focus)); }
|
|
@@ -608,6 +657,9 @@ button.workspace-entry { color: var(--accent); }
|
|
|
608
657
|
}
|
|
609
658
|
|
|
610
659
|
@media (max-width: 760px) {
|
|
660
|
+
.session-group-toggle { min-block-size: var(--touch); }
|
|
661
|
+
.session-rail-row { grid-template-columns: minmax(0, 1fr) var(--touch); }
|
|
662
|
+
.session-rail-row > .button { min-block-size: var(--touch); }
|
|
611
663
|
#cli-history-index > .workspace-path-form { grid-template-columns: minmax(0, 1fr); }
|
|
612
664
|
#cli-history-directory-path { grid-row: 2; }
|
|
613
665
|
#cli-history-browse { justify-self: start; }
|
|
@@ -712,12 +764,12 @@ button.workspace-entry { color: var(--accent); }
|
|
|
712
764
|
}
|
|
713
765
|
|
|
714
766
|
@container compose (inline-size < 34rem) {
|
|
715
|
-
.compose-signals:has(#activity-row
|
|
767
|
+
.compose-signals:has(#activity-row[data-phase], #current-todo:not([hidden])) #cache-usage { display: none; }
|
|
716
768
|
}
|
|
717
769
|
|
|
718
770
|
@container compose (inline-size < 25rem) {
|
|
719
771
|
#cache-usage,
|
|
720
|
-
.compose-signals:has(#activity-row
|
|
772
|
+
.compose-signals:has(#activity-row[data-phase]) #context-usage,
|
|
721
773
|
.composer-meta:has(#command-picker:not([hidden])) #context-usage { display: none; }
|
|
722
774
|
}
|
|
723
775
|
|
|
@@ -765,8 +817,6 @@ button.workspace-entry { color: var(--accent); }
|
|
|
765
817
|
.session-heading:has(#session-path-trigger:not([hidden])) { min-block-size: var(--touch); }
|
|
766
818
|
.prose :is(ul, ol) { padding-inline-start: var(--s4); }
|
|
767
819
|
.prose li { text-wrap: pretty; }
|
|
768
|
-
.trace-inner { grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2); }
|
|
769
|
-
.trace-node { min-inline-size: var(--touch); }
|
|
770
820
|
:is(#messages, #cli-follow-messages) > .message, .request-form { grid-template-columns: minmax(0, 1fr); }
|
|
771
821
|
:is(#messages, #cli-follow-messages) > .message > header { align-items: baseline; }
|
|
772
822
|
.main:has(#cli-follow-view:not([hidden])) #session-path {
|
|
@@ -799,16 +849,4 @@ button.workspace-entry { color: var(--accent); }
|
|
|
799
849
|
#workspace-select { padding-inline: var(--s1); }
|
|
800
850
|
.workspace-path-form { grid-template-columns: minmax(0, 1fr); }
|
|
801
851
|
#command-shortcuts .details-list { grid-template-columns: fit-content(36%) minmax(0, 1fr); }
|
|
802
|
-
.trace-inner:has(.trace-node:nth-child(4 of .trace-node:not([hidden]))) {
|
|
803
|
-
grid-template-columns: minmax(0, 1fr);
|
|
804
|
-
gap: 0;
|
|
805
|
-
}
|
|
806
|
-
.trace-inner:has(.trace-node:nth-child(4 of .trace-node:not([hidden]))) #session-trace-label {
|
|
807
|
-
position: absolute;
|
|
808
|
-
inline-size: var(--stroke);
|
|
809
|
-
block-size: var(--stroke);
|
|
810
|
-
overflow: hidden;
|
|
811
|
-
clip-path: inset(50%);
|
|
812
|
-
white-space: nowrap;
|
|
813
|
-
}
|
|
814
852
|
}
|