@dudko.dev/agent-web-ui 0.0.9 → 0.0.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 +40 -3
- package/dist/canvas.cjs +285 -1
- package/dist/canvas.d.cts +73 -5
- package/dist/canvas.d.ts +73 -5
- package/dist/canvas.js +278 -1
- package/dist/controller.cjs +41 -4
- package/dist/controller.d.cts +11 -1
- package/dist/controller.d.ts +11 -1
- package/dist/controller.js +39 -4
- package/dist/index.cjs +48 -0
- package/dist/index.d.cts +54 -2
- package/dist/index.d.ts +54 -2
- package/dist/index.js +43 -0
- package/dist/pipeline.cjs +30 -0
- package/dist/pipeline.css +26 -0
- package/dist/pipeline.d.cts +32 -3
- package/dist/pipeline.d.ts +32 -3
- package/dist/pipeline.js +30 -0
- package/dist/styles.css +408 -14
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -28,6 +28,21 @@
|
|
|
28
28
|
--awr-sidebar-width: 240px;
|
|
29
29
|
--awr-files-width: 300px;
|
|
30
30
|
--awr-scrim: rgb(15 17 21 / 0.32);
|
|
31
|
+
/* Motion (the "Motion" section at the end): enter durations by size, a shorter exit, the
|
|
32
|
+
curves, and how far a part travels. Durations of 0 turn motion off - as `motion="none"`
|
|
33
|
+
(`data-awr-motion="none"`) does; `"reduced"`, and the device's reduced-motion setting, keep
|
|
34
|
+
a short fade and drop every movement. */
|
|
35
|
+
--awr-motion-duration-fast: 150ms;
|
|
36
|
+
--awr-motion-duration-base: 220ms;
|
|
37
|
+
--awr-motion-duration-slow: 320ms;
|
|
38
|
+
--awr-motion-duration-exit: 160ms;
|
|
39
|
+
--awr-motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
|
|
40
|
+
--awr-motion-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
41
|
+
--awr-motion-ease-in: cubic-bezier(0.55, 0, 1, 0.45);
|
|
42
|
+
--awr-motion-rise: 6px;
|
|
43
|
+
--awr-motion-shift: 16px;
|
|
44
|
+
--awr-motion-sheet: 100%;
|
|
45
|
+
--awr-motion-scale: 0.97;
|
|
31
46
|
color: var(--awr-fg);
|
|
32
47
|
font-family: var(--awr-font);
|
|
33
48
|
}
|
|
@@ -643,7 +658,7 @@
|
|
|
643
658
|
.awr-modelload__fill {
|
|
644
659
|
height: 100%;
|
|
645
660
|
background: var(--awr-accent);
|
|
646
|
-
transition: width
|
|
661
|
+
transition: width var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out);
|
|
647
662
|
}
|
|
648
663
|
|
|
649
664
|
/* ── Footer / composer ────────────────────────────────────────────────────── */
|
|
@@ -866,6 +881,13 @@
|
|
|
866
881
|
.awr-approval__summary {
|
|
867
882
|
max-height: 240px;
|
|
868
883
|
overflow: auto;
|
|
884
|
+
word-break: normal;
|
|
885
|
+
}
|
|
886
|
+
/* A word of a summary (a command's `--short`) wraps as a whole; inside it only as the last resort. */
|
|
887
|
+
.awr-approval__word {
|
|
888
|
+
display: inline-block;
|
|
889
|
+
max-width: 100%;
|
|
890
|
+
overflow-wrap: anywhere;
|
|
869
891
|
}
|
|
870
892
|
.awr-approval__actions {
|
|
871
893
|
display: flex;
|
|
@@ -1020,7 +1042,7 @@
|
|
|
1020
1042
|
.awr-context__fill {
|
|
1021
1043
|
height: 100%;
|
|
1022
1044
|
background: var(--awr-accent);
|
|
1023
|
-
transition: width
|
|
1045
|
+
transition: width var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out);
|
|
1024
1046
|
}
|
|
1025
1047
|
.awr-context__track.is-full .awr-context__fill {
|
|
1026
1048
|
background: var(--awr-danger);
|
|
@@ -3322,7 +3344,7 @@
|
|
|
3322
3344
|
}
|
|
3323
3345
|
.awr-frame--app .awr-frame__iframe {
|
|
3324
3346
|
height: 360px;
|
|
3325
|
-
transition: height
|
|
3347
|
+
transition: height var(--awr-motion-duration-fast, 150ms) var(--awr-motion-ease-out, ease-out);
|
|
3326
3348
|
}
|
|
3327
3349
|
.awr-frame__state {
|
|
3328
3350
|
flex: none;
|
|
@@ -3778,17 +3800,6 @@
|
|
|
3778
3800
|
color: var(--awr-fg);
|
|
3779
3801
|
font-family: var(--awr-font);
|
|
3780
3802
|
font-size: 14px;
|
|
3781
|
-
animation: awr-viewer-in 0.12s ease-out;
|
|
3782
|
-
}
|
|
3783
|
-
@keyframes awr-viewer-in {
|
|
3784
|
-
from {
|
|
3785
|
-
opacity: 0;
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
@media (prefers-reduced-motion: reduce) {
|
|
3789
|
-
.awr-viewer {
|
|
3790
|
-
animation: none;
|
|
3791
|
-
}
|
|
3792
3803
|
}
|
|
3793
3804
|
.awr-viewer__bar {
|
|
3794
3805
|
flex: none;
|
|
@@ -4176,3 +4187,386 @@ button.awr-frame__state:focus-visible {
|
|
|
4176
4187
|
gap: 4px;
|
|
4177
4188
|
cursor: pointer;
|
|
4178
4189
|
}
|
|
4190
|
+
|
|
4191
|
+
/* ── Motion ───────────────────────────────────────────────────────────────── */
|
|
4192
|
+
/* Every part that comes, goes, opens or closes moves softly - by default, and only with
|
|
4193
|
+
* `transform` and `opacity` (and a disclosure's height, by the browser: no script measures).
|
|
4194
|
+
* The tokens are at the top of this sheet (`--awr-motion-*`); a host changes them like any other
|
|
4195
|
+
* (`.awr-chat { --awr-motion-duration-base: 300ms }`), or picks a mode on the chat's root:
|
|
4196
|
+
* `data-awr-motion="reduced"` (`<AgentChat motion="reduced">`): a short fade, nothing travels -
|
|
4197
|
+
* also what the default does when the device asks for reduced motion; `"none"`: nothing moves
|
|
4198
|
+
* (every duration 0). Nothing already on the screen at the first paint animates: an entering
|
|
4199
|
+
* class (`is-entering`, `awr-msg--enter`) is given only to what arrives later, a closing one
|
|
4200
|
+
* (`is-closing`) only to what a person closes. */
|
|
4201
|
+
:where(.awr-chat, .awr-theme)[data-awr-motion='none'] {
|
|
4202
|
+
--awr-motion-duration-fast: 0ms;
|
|
4203
|
+
--awr-motion-duration-base: 0ms;
|
|
4204
|
+
--awr-motion-duration-slow: 0ms;
|
|
4205
|
+
--awr-motion-duration-exit: 0ms;
|
|
4206
|
+
}
|
|
4207
|
+
:where(.awr-chat, .awr-theme)[data-awr-motion='reduced'] {
|
|
4208
|
+
--awr-motion-rise: 0px;
|
|
4209
|
+
--awr-motion-shift: 0px;
|
|
4210
|
+
--awr-motion-sheet: 0%;
|
|
4211
|
+
--awr-motion-scale: 1;
|
|
4212
|
+
}
|
|
4213
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4214
|
+
:where(.awr-chat, .awr-theme):not([data-awr-motion='none']) {
|
|
4215
|
+
--awr-motion-rise: 0px;
|
|
4216
|
+
--awr-motion-shift: 0px;
|
|
4217
|
+
--awr-motion-sheet: 0%;
|
|
4218
|
+
--awr-motion-scale: 1;
|
|
4219
|
+
}
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
@keyframes awr-fade-in {
|
|
4223
|
+
from {
|
|
4224
|
+
opacity: 0;
|
|
4225
|
+
}
|
|
4226
|
+
}
|
|
4227
|
+
@keyframes awr-fade-out {
|
|
4228
|
+
to {
|
|
4229
|
+
opacity: 0;
|
|
4230
|
+
}
|
|
4231
|
+
}
|
|
4232
|
+
@keyframes awr-rise-in {
|
|
4233
|
+
from {
|
|
4234
|
+
opacity: 0;
|
|
4235
|
+
transform: translate3d(0, var(--awr-motion-rise, 6px), 0);
|
|
4236
|
+
}
|
|
4237
|
+
}
|
|
4238
|
+
@keyframes awr-pop-in {
|
|
4239
|
+
from {
|
|
4240
|
+
opacity: 0;
|
|
4241
|
+
transform: translate3d(0, calc(var(--awr-motion-rise, 6px) / 2), 0)
|
|
4242
|
+
scale(var(--awr-motion-scale, 0.97));
|
|
4243
|
+
}
|
|
4244
|
+
}
|
|
4245
|
+
@keyframes awr-slide-in-start {
|
|
4246
|
+
from {
|
|
4247
|
+
opacity: 0;
|
|
4248
|
+
transform: translate3d(calc(var(--awr-motion-shift, 16px) * -1), 0, 0);
|
|
4249
|
+
}
|
|
4250
|
+
}
|
|
4251
|
+
@keyframes awr-slide-in-end {
|
|
4252
|
+
from {
|
|
4253
|
+
opacity: 0;
|
|
4254
|
+
transform: translate3d(var(--awr-motion-shift, 16px), 0, 0);
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
@keyframes awr-slide-out-start {
|
|
4258
|
+
to {
|
|
4259
|
+
opacity: 0;
|
|
4260
|
+
transform: translate3d(calc(var(--awr-motion-shift, 16px) * -1), 0, 0);
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
@keyframes awr-slide-out-end {
|
|
4264
|
+
to {
|
|
4265
|
+
opacity: 0;
|
|
4266
|
+
transform: translate3d(var(--awr-motion-shift, 16px), 0, 0);
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
@keyframes awr-sheet-in-start {
|
|
4270
|
+
from {
|
|
4271
|
+
opacity: 0;
|
|
4272
|
+
transform: translate3d(calc(var(--awr-motion-sheet, 100%) * -1), 0, 0);
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
@keyframes awr-sheet-in-end {
|
|
4276
|
+
from {
|
|
4277
|
+
opacity: 0;
|
|
4278
|
+
transform: translate3d(var(--awr-motion-sheet, 100%), 0, 0);
|
|
4279
|
+
}
|
|
4280
|
+
}
|
|
4281
|
+
@keyframes awr-sheet-out-start {
|
|
4282
|
+
to {
|
|
4283
|
+
opacity: 0;
|
|
4284
|
+
transform: translate3d(calc(var(--awr-motion-sheet, 100%) * -1), 0, 0);
|
|
4285
|
+
}
|
|
4286
|
+
}
|
|
4287
|
+
@keyframes awr-sheet-out-end {
|
|
4288
|
+
to {
|
|
4289
|
+
opacity: 0;
|
|
4290
|
+
transform: translate3d(var(--awr-motion-sheet, 100%), 0, 0);
|
|
4291
|
+
}
|
|
4292
|
+
}
|
|
4293
|
+
@keyframes awr-sheet-in-up {
|
|
4294
|
+
from {
|
|
4295
|
+
opacity: 0;
|
|
4296
|
+
transform: translate3d(0, var(--awr-motion-sheet, 100%), 0);
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4300
|
+
/* The side panels: on a wide chat they fade in beside the transcript with a short shift; on a
|
|
4301
|
+
* narrow one they slide over it from their edge, under a fading shade. Entering animations fill
|
|
4302
|
+
* `backwards` only - a transform held after the end would become the containing block of the
|
|
4303
|
+
* fixed menus inside. */
|
|
4304
|
+
.awr-chat > .awr-chat__sidebar.is-entering {
|
|
4305
|
+
animation: awr-slide-in-start var(--awr-motion-duration-base, 220ms)
|
|
4306
|
+
var(--awr-motion-ease-out, ease-out) backwards;
|
|
4307
|
+
}
|
|
4308
|
+
.awr-chat > .awr-chat__files.is-entering {
|
|
4309
|
+
animation: awr-slide-in-end var(--awr-motion-duration-base, 220ms)
|
|
4310
|
+
var(--awr-motion-ease-out, ease-out) backwards;
|
|
4311
|
+
}
|
|
4312
|
+
.awr-chat > .awr-chat__sidebar.is-closing {
|
|
4313
|
+
animation: awr-slide-out-start var(--awr-motion-duration-exit, 160ms)
|
|
4314
|
+
var(--awr-motion-ease-in, ease-in) forwards;
|
|
4315
|
+
}
|
|
4316
|
+
.awr-chat > .awr-chat__files.is-closing {
|
|
4317
|
+
animation: awr-slide-out-end var(--awr-motion-duration-exit, 160ms)
|
|
4318
|
+
var(--awr-motion-ease-in, ease-in) forwards;
|
|
4319
|
+
}
|
|
4320
|
+
.awr-chat--narrow > .awr-chat__sidebar.is-entering {
|
|
4321
|
+
animation: awr-sheet-in-start var(--awr-motion-duration-slow, 320ms)
|
|
4322
|
+
var(--awr-motion-ease-out, ease-out) backwards;
|
|
4323
|
+
}
|
|
4324
|
+
.awr-chat--narrow > .awr-chat__files.is-entering {
|
|
4325
|
+
animation: awr-sheet-in-end var(--awr-motion-duration-slow, 320ms)
|
|
4326
|
+
var(--awr-motion-ease-out, ease-out) backwards;
|
|
4327
|
+
}
|
|
4328
|
+
.awr-chat--narrow > .awr-chat__sidebar.is-closing {
|
|
4329
|
+
animation: awr-sheet-out-start var(--awr-motion-duration-base, 220ms)
|
|
4330
|
+
var(--awr-motion-ease-in, ease-in) forwards;
|
|
4331
|
+
}
|
|
4332
|
+
.awr-chat--narrow > .awr-chat__files.is-closing {
|
|
4333
|
+
animation: awr-sheet-out-end var(--awr-motion-duration-base, 220ms)
|
|
4334
|
+
var(--awr-motion-ease-in, ease-in) forwards;
|
|
4335
|
+
}
|
|
4336
|
+
.awr-chat > .awr-chat__scrim.is-entering {
|
|
4337
|
+
animation: awr-fade-in var(--awr-motion-duration-slow, 320ms) var(--awr-motion-ease-out, ease-out)
|
|
4338
|
+
backwards;
|
|
4339
|
+
}
|
|
4340
|
+
.awr-chat > .awr-chat__scrim.is-closing {
|
|
4341
|
+
animation: awr-fade-out var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-in, ease-in)
|
|
4342
|
+
forwards;
|
|
4343
|
+
}
|
|
4344
|
+
/* A closing part takes no click: it is already gone for the person (and `inert`). */
|
|
4345
|
+
.awr-chat > .is-closing {
|
|
4346
|
+
pointer-events: none;
|
|
4347
|
+
}
|
|
4348
|
+
|
|
4349
|
+
/* Menus and popovers: the "/" palette, the chips' menus, an app frame's menu, the page context. */
|
|
4350
|
+
.awr-menu,
|
|
4351
|
+
.awr-frame__menu,
|
|
4352
|
+
.awr-pagectx__details {
|
|
4353
|
+
animation: awr-pop-in var(--awr-motion-duration-fast, 150ms) var(--awr-motion-ease-out, ease-out)
|
|
4354
|
+
backwards;
|
|
4355
|
+
}
|
|
4356
|
+
|
|
4357
|
+
/* Dialogs over the chat: the picture viewer, a file's preview, an app's sheet. */
|
|
4358
|
+
.awr-viewer,
|
|
4359
|
+
.awr-filedialog,
|
|
4360
|
+
.awr-sheet__scrim {
|
|
4361
|
+
animation: awr-fade-in var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out)
|
|
4362
|
+
backwards;
|
|
4363
|
+
}
|
|
4364
|
+
.awr-filedialog__panel {
|
|
4365
|
+
animation: awr-pop-in var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out)
|
|
4366
|
+
backwards;
|
|
4367
|
+
}
|
|
4368
|
+
.awr-chat__appsheet {
|
|
4369
|
+
animation: awr-sheet-in-up var(--awr-motion-duration-slow, 320ms)
|
|
4370
|
+
var(--awr-motion-ease-out, ease-out) backwards;
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
/* What asks for the person: consent, the model's and a server's questions, an app's request, a
|
|
4374
|
+
* notice, a message waiting to be delivered. They arrive while the chat is on the screen. */
|
|
4375
|
+
.awr-approval,
|
|
4376
|
+
.awr-question,
|
|
4377
|
+
.awr-elicit,
|
|
4378
|
+
.awr-elicit-outcome,
|
|
4379
|
+
.awr-question-outcome,
|
|
4380
|
+
.awr-notice,
|
|
4381
|
+
.awr-queued__item,
|
|
4382
|
+
.awr-tabnote {
|
|
4383
|
+
animation: awr-rise-in var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out)
|
|
4384
|
+
backwards;
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
/* An MCP App's consent arms itself only once it is shown, uncovered and still (`ArmedButton`):
|
|
4388
|
+
* it arrives with a fade alone - it never travels. */
|
|
4389
|
+
.awr-approval--app,
|
|
4390
|
+
.awr-frame__prompts .awr-approvals {
|
|
4391
|
+
animation-name: awr-fade-in;
|
|
4392
|
+
}
|
|
4393
|
+
|
|
4394
|
+
/* The transcript: a message of a turn just begun rises in (never one already there: the class
|
|
4395
|
+
* is given only to what arrives live); in the answer being written, each new step and tool call
|
|
4396
|
+
* settles in. The answer's text itself never animates - it is written in place. */
|
|
4397
|
+
.awr-msg--enter {
|
|
4398
|
+
animation: awr-rise-in var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out)
|
|
4399
|
+
backwards;
|
|
4400
|
+
}
|
|
4401
|
+
.awr-msg.is-pending :is(.awr-step, .awr-tool, .awr-subagent) {
|
|
4402
|
+
animation: awr-rise-in var(--awr-motion-duration-fast, 150ms) var(--awr-motion-ease-out, ease-out)
|
|
4403
|
+
backwards;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
/* Leaving (`is-leaving`: a copy of a removed part plays its exit, then goes - the React package's
|
|
4407
|
+
* `useExitGhosts`): a menu shrinks away, a dialog fades, the app's sheet slides down, a card or a
|
|
4408
|
+
* notice folds away by height (only while it leaves). Shorter than the entry. */
|
|
4409
|
+
@keyframes awr-pop-out {
|
|
4410
|
+
to {
|
|
4411
|
+
opacity: 0;
|
|
4412
|
+
transform: translate3d(0, calc(var(--awr-motion-rise, 6px) / 2), 0)
|
|
4413
|
+
scale(var(--awr-motion-scale, 0.97));
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
4416
|
+
@keyframes awr-sheet-out-down {
|
|
4417
|
+
to {
|
|
4418
|
+
opacity: 0;
|
|
4419
|
+
transform: translate3d(0, var(--awr-motion-sheet, 100%), 0);
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
@keyframes awr-fold-out {
|
|
4423
|
+
from {
|
|
4424
|
+
height: var(--awr-leave-height, auto);
|
|
4425
|
+
}
|
|
4426
|
+
to {
|
|
4427
|
+
height: 0;
|
|
4428
|
+
opacity: 0;
|
|
4429
|
+
margin-top: 0;
|
|
4430
|
+
margin-bottom: 0;
|
|
4431
|
+
padding-top: 0;
|
|
4432
|
+
padding-bottom: 0;
|
|
4433
|
+
border-width: 0;
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
4436
|
+
:where(.awr-chat, .awr-theme) .is-leaving {
|
|
4437
|
+
pointer-events: none;
|
|
4438
|
+
}
|
|
4439
|
+
:is(.awr-menu, .awr-frame__menu, .awr-pagectx__details).is-leaving {
|
|
4440
|
+
animation: awr-pop-out var(--awr-motion-duration-exit, 160ms) var(--awr-motion-ease-in, ease-in)
|
|
4441
|
+
forwards;
|
|
4442
|
+
}
|
|
4443
|
+
:is(.awr-viewer, .awr-filedialog, .awr-sheet__scrim).is-leaving {
|
|
4444
|
+
animation: awr-fade-out var(--awr-motion-duration-exit, 160ms) var(--awr-motion-ease-in, ease-in)
|
|
4445
|
+
forwards;
|
|
4446
|
+
}
|
|
4447
|
+
.awr-chat__appsheet.is-leaving {
|
|
4448
|
+
animation: awr-sheet-out-down var(--awr-motion-duration-base, 220ms)
|
|
4449
|
+
var(--awr-motion-ease-in, ease-in) forwards;
|
|
4450
|
+
}
|
|
4451
|
+
:is(
|
|
4452
|
+
.awr-approvals,
|
|
4453
|
+
.awr-approval,
|
|
4454
|
+
.awr-questions,
|
|
4455
|
+
.awr-question,
|
|
4456
|
+
.awr-elicits,
|
|
4457
|
+
.awr-elicit,
|
|
4458
|
+
.awr-elicit-outcome,
|
|
4459
|
+
.awr-question-outcome,
|
|
4460
|
+
.awr-notices,
|
|
4461
|
+
.awr-notice,
|
|
4462
|
+
.awr-queued__item
|
|
4463
|
+
).is-leaving {
|
|
4464
|
+
overflow: hidden;
|
|
4465
|
+
animation: awr-fold-out var(--awr-motion-duration-exit, 160ms)
|
|
4466
|
+
var(--awr-motion-ease-in-out, ease-in-out) forwards;
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4469
|
+
/* The listening mic is a state, not a hover: it shows at once (its ring is what moves). */
|
|
4470
|
+
.awr-iconbtn.awr-mic {
|
|
4471
|
+
transition: none;
|
|
4472
|
+
}
|
|
4473
|
+
|
|
4474
|
+
/* A saved chat being read when the chat opens: a quiet placeholder (shown only if the read takes
|
|
4475
|
+
* longer than a moment), never the empty state; the conversation then fades in over it. */
|
|
4476
|
+
.awr-messages__restoring {
|
|
4477
|
+
display: flex;
|
|
4478
|
+
flex-direction: column;
|
|
4479
|
+
gap: 10px;
|
|
4480
|
+
padding: 4px 0;
|
|
4481
|
+
animation: awr-fade-in var(--awr-motion-duration-slow, 320ms) var(--awr-motion-ease-out, ease-out)
|
|
4482
|
+
120ms backwards;
|
|
4483
|
+
}
|
|
4484
|
+
.awr-messages__restoring > span {
|
|
4485
|
+
display: block;
|
|
4486
|
+
height: 36px;
|
|
4487
|
+
width: 62%;
|
|
4488
|
+
border-radius: 14px;
|
|
4489
|
+
background: var(--awr-subtle);
|
|
4490
|
+
}
|
|
4491
|
+
.awr-messages__restoring > span:first-child {
|
|
4492
|
+
align-self: flex-end;
|
|
4493
|
+
width: 46%;
|
|
4494
|
+
background: color-mix(in srgb, var(--awr-accent) 10%, var(--awr-subtle));
|
|
4495
|
+
}
|
|
4496
|
+
.awr-messages__restoring > span:last-child {
|
|
4497
|
+
width: 78%;
|
|
4498
|
+
height: 72px;
|
|
4499
|
+
}
|
|
4500
|
+
@keyframes awr-restore-in {
|
|
4501
|
+
from {
|
|
4502
|
+
opacity: 0.35;
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4505
|
+
.awr-chat__body.is-restored .awr-messages {
|
|
4506
|
+
animation: awr-restore-in var(--awr-motion-duration-base, 220ms)
|
|
4507
|
+
var(--awr-motion-ease-out, ease-out) backwards;
|
|
4508
|
+
}
|
|
4509
|
+
|
|
4510
|
+
/* Disclosures (the activity, a thought, an earlier attempt, a plan, a preview, a transcript)
|
|
4511
|
+
* unfold by height, drawn by the browser (`interpolate-size`, `::details-content`), and close at once:
|
|
4512
|
+
* where that is not supported they open at once, as before. */
|
|
4513
|
+
details:is(
|
|
4514
|
+
.awr-activity,
|
|
4515
|
+
.awr-activity__plan,
|
|
4516
|
+
.awr-thought,
|
|
4517
|
+
.awr-step__attempt,
|
|
4518
|
+
.awr-approval__preview,
|
|
4519
|
+
.awr-transcript
|
|
4520
|
+
) {
|
|
4521
|
+
interpolate-size: allow-keywords;
|
|
4522
|
+
}
|
|
4523
|
+
details:is(
|
|
4524
|
+
.awr-activity,
|
|
4525
|
+
.awr-activity__plan,
|
|
4526
|
+
.awr-thought,
|
|
4527
|
+
.awr-step__attempt,
|
|
4528
|
+
.awr-approval__preview,
|
|
4529
|
+
.awr-transcript
|
|
4530
|
+
)::details-content {
|
|
4531
|
+
block-size: 0;
|
|
4532
|
+
opacity: 0;
|
|
4533
|
+
overflow-y: clip;
|
|
4534
|
+
overflow-clip-margin: 4px;
|
|
4535
|
+
}
|
|
4536
|
+
details:is(
|
|
4537
|
+
.awr-activity,
|
|
4538
|
+
.awr-activity__plan,
|
|
4539
|
+
.awr-thought,
|
|
4540
|
+
.awr-step__attempt,
|
|
4541
|
+
.awr-approval__preview,
|
|
4542
|
+
.awr-transcript
|
|
4543
|
+
)[open]::details-content {
|
|
4544
|
+
block-size: auto;
|
|
4545
|
+
opacity: 1;
|
|
4546
|
+
/* Opening unfolds; closing is at once - a disclosure folding over many frames (the activity at
|
|
4547
|
+
a run's end) moves what a person reads further down, frame by frame. */
|
|
4548
|
+
transition:
|
|
4549
|
+
block-size var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out),
|
|
4550
|
+
opacity var(--awr-motion-duration-base, 220ms) var(--awr-motion-ease-out, ease-out),
|
|
4551
|
+
content-visibility var(--awr-motion-duration-base, 220ms) allow-discrete;
|
|
4552
|
+
}
|
|
4553
|
+
|
|
4554
|
+
/* Hover and press: colours ease instead of snapping. */
|
|
4555
|
+
:is(
|
|
4556
|
+
.awr-btn,
|
|
4557
|
+
.awr-iconbtn,
|
|
4558
|
+
.awr-linkbtn,
|
|
4559
|
+
.awr-chip,
|
|
4560
|
+
.awr-tchip,
|
|
4561
|
+
.awr-sendbtn,
|
|
4562
|
+
.awr-menu__item,
|
|
4563
|
+
.awr-history__item,
|
|
4564
|
+
.awr-filelist__item,
|
|
4565
|
+
.awr-frame__menuitem
|
|
4566
|
+
) {
|
|
4567
|
+
transition:
|
|
4568
|
+
background-color var(--awr-motion-duration-fast, 150ms) var(--awr-motion-ease-out, ease-out),
|
|
4569
|
+
border-color var(--awr-motion-duration-fast, 150ms) var(--awr-motion-ease-out, ease-out),
|
|
4570
|
+
color var(--awr-motion-duration-fast, 150ms) var(--awr-motion-ease-out, ease-out),
|
|
4571
|
+
box-shadow var(--awr-motion-duration-fast, 150ms) var(--awr-motion-ease-out, ease-out);
|
|
4572
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudko.dev/agent-web-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The framework-free UI logic of @dudko.dev/agent-web, the in-browser LLM agent: the headless reducer that turns the agent's events into UI state, every UI string, the composer's and transcript's pure helpers, voice, saved chats, the sandboxed-frame and MCP Apps security cores, the MCP Apps sandbox page for a server, and the pipeline editor's logic - plus the stylesheets. No React: build a front end for any framework on it.",
|
|
6
6
|
"type": "module",
|
|
@@ -192,8 +192,8 @@
|
|
|
192
192
|
"prettier": "^3.10.1",
|
|
193
193
|
"tsup": "^9.0.0",
|
|
194
194
|
"typescript": "^6.0.3",
|
|
195
|
-
"@dudko.dev/
|
|
196
|
-
"@dudko.dev/
|
|
195
|
+
"@dudko.dev/agent-web": "0.0.57",
|
|
196
|
+
"@dudko.dev/test-servers": "0.0.0"
|
|
197
197
|
},
|
|
198
198
|
"scripts": {
|
|
199
199
|
"build": "tsup",
|