reevesagents 2.1.0 → 2.2.1

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/dist/web/app.css CHANGED
@@ -507,18 +507,30 @@ button { letter-spacing: 0; }
507
507
 
508
508
  .run-head {
509
509
  display: flex;
510
- align-items: center;
510
+ /* The card decides how tight its own header is: the sidebar width is not the viewport width, so a media query cannot ask
511
+ this question. The container is this row, whose width comes from the card — putting it on `.run-head-body` made that
512
+ flex item content-free and collapsed it to 8px (block 70). */
513
+ container-type: inline-size;
514
+ /* The actions sit in the top-right corner: `align-items: flex-start` on the row and `align-self: start` on the group, so a
515
+ taller head body never centres them against it. */
516
+ align-items: flex-start;
511
517
  justify-content: space-between;
512
518
  gap: var(--s-2);
513
519
  min-width: 0;
514
520
  padding: 0 var(--s-1);
515
521
  }
516
522
 
523
+ /* Two rows, three columns. Row 1: the name (which yields last) and the counters (which yield first — they keep their
524
+ text in `title`). Row 2: the flow chip, the play/pause glyph and the plan icon, in that order and on one line. The
525
+ glyph had no cell of its own in the old two-column grid, so it fell to a third row under the chip (block 70). */
517
526
  .run-head-body {
518
527
  min-width: 0;
519
- display: flex;
520
- flex-direction: column;
521
- gap: 2px;
528
+ display: grid;
529
+ grid-template-columns: minmax(0, 1fr) auto auto;
530
+ grid-auto-rows: min-content;
531
+ row-gap: 4px;
532
+ column-gap: 4px;
533
+ align-items: center;
522
534
  }
523
535
 
524
536
  .run-actions {
@@ -526,10 +538,14 @@ button { letter-spacing: 0; }
526
538
  display: flex;
527
539
  align-items: center;
528
540
  justify-content: flex-end;
529
- gap: var(--s-1);
541
+ align-self: start;
542
+ gap: 4px;
530
543
  }
531
544
 
532
545
  .run-name {
546
+ grid-column: 1;
547
+ grid-row: 1;
548
+ min-width: 0;
533
549
  max-width: 100%;
534
550
  overflow: hidden;
535
551
  color: var(--dim);
@@ -540,7 +556,15 @@ button { letter-spacing: 0; }
540
556
  white-space: nowrap;
541
557
  }
542
558
 
559
+ /* The counters cannot push the chip out of its row: `max-width` caps the auto track they size, `min-width: 0` lets it
560
+ shrink to nothing, and the full text stays in `title`. Without the cap the counters claimed 161px of a 225px header and
561
+ the flow chip was clipped to 56px (block 70). */
543
562
  .run-meta {
563
+ grid-column: 2 / -1;
564
+ grid-row: 1;
565
+ justify-self: end;
566
+ min-width: 0;
567
+ max-width: 7ch;
544
568
  overflow: hidden;
545
569
  color: var(--muted);
546
570
  font-size: var(--fs-xs);
@@ -551,20 +575,183 @@ button { letter-spacing: 0; }
551
575
  letter-spacing: 0;
552
576
  }
553
577
 
578
+ /* Flow chip under the run name: muted by default, warn when a human is needed. The text comes from
579
+ the server; only the attention state is styled here. */
580
+ .run-flow {
581
+ grid-column: 1;
582
+ grid-row: 2;
583
+ justify-self: start;
584
+ min-width: 0;
585
+ max-width: 100%;
586
+ overflow: hidden;
587
+ border: 1px solid var(--border-faint);
588
+ border-radius: var(--r-1);
589
+ padding: 0 var(--s-1);
590
+ color: color-mix(in srgb, var(--muted) 70%, var(--text));
591
+ font-size: var(--fs-xs);
592
+ line-height: 1.3;
593
+ text-overflow: ellipsis;
594
+ white-space: nowrap;
595
+ }
596
+
597
+ .run-flow[data-attention] {
598
+ border-color: color-mix(in srgb, var(--warn) 40%, var(--border));
599
+ color: var(--warn);
600
+ background: color-mix(in srgb, var(--warn) 8%, transparent);
601
+ }
602
+
603
+ /* The plan indicator. Four tones, each with the words its colour stands for — "1/3", "done 3/3",
604
+ "needs attention" — because colour alone is not information. The pulse marks news, not a state:
605
+ the server sets `is-pulsing` only while the flow file is fresh, so it expires on its own. */
606
+ .flow-plan-state {
607
+ grid-column: 2;
608
+ grid-row: 2;
609
+ justify-self: start;
610
+ display: inline-flex;
611
+ align-items: center;
612
+ color: var(--muted);
613
+ }
614
+
615
+ .flow-plan-state.is-paused {
616
+ color: color-mix(in srgb, var(--warn) 80%, var(--muted));
617
+ }
618
+
619
+ .plan-play-pause {
620
+ margin-left: auto;
621
+ font-size: var(--fs-xs);
622
+ }
623
+
624
+ .flow-badge--progress {
625
+ border-color: color-mix(in srgb, var(--warn) 35%, var(--border-faint));
626
+ color: var(--warn);
627
+ background: color-mix(in srgb, var(--warn) 7%, transparent);
628
+ }
629
+
630
+ .flow-badge--done {
631
+ border-color: color-mix(in srgb, var(--ok, #4ade80) 45%, var(--border-faint));
632
+ color: var(--ok, #4ade80);
633
+ background: color-mix(in srgb, var(--ok, #4ade80) 10%, transparent);
634
+ }
635
+
636
+ .flow-badge--attention {
637
+ border-color: color-mix(in srgb, var(--danger, #f87171) 50%, var(--border));
638
+ color: var(--danger, #f87171);
639
+ background: color-mix(in srgb, var(--danger, #f87171) 12%, transparent);
640
+ }
641
+
642
+ .flow-badge--paused {
643
+ /* "Paused" is a state a human chose, not the absence of one: the amber border and a dashed rule say "standing" even
644
+ when the label is glanced at, while the text keeps the muted tone (block 70). */
645
+ border-color: color-mix(in srgb, var(--warn) 45%, var(--border));
646
+ border-style: dashed;
647
+ color: color-mix(in srgb, var(--warn) 75%, var(--text));
648
+ background: color-mix(in srgb, var(--warn) 6%, transparent);
649
+ }
650
+
651
+ .flow-plan-btn {
652
+ grid-column: 3;
653
+ grid-row: 2;
654
+ justify-self: start;
655
+ display: inline-flex;
656
+ align-items: center;
657
+ justify-content: center;
658
+ flex: 0 0 auto;
659
+ padding: 0 4px;
660
+ border: 1px solid var(--border-faint);
661
+ border-radius: var(--r-1);
662
+ background: transparent;
663
+ color: var(--muted);
664
+ cursor: pointer;
665
+ line-height: 1;
666
+ }
667
+
668
+ .flow-plan-btn:hover,
669
+ .flow-plan-btn:focus-visible {
670
+ color: var(--text);
671
+ border-color: color-mix(in srgb, var(--muted) 50%, var(--border));
672
+ }
673
+
674
+ .flow-badge.is-pulsing {
675
+ animation: flow-badge-pulse 1.8s ease-in-out infinite;
676
+ }
677
+
678
+ @keyframes flow-badge-pulse {
679
+ 0%, 100% { opacity: 1; }
680
+ 50% { opacity: 0.55; }
681
+ }
682
+
683
+ /* A narrow card drops what it can afford to lose, in this order: the counters (their text is in `title`), then one step of
684
+ the chip's own size. The name, the full label, the glyph and the icon keep their line — measured on this panel at a
685
+ 280px sidebar (head 225px, body 157px) and at 360px (head 305px, body 245px) (block 70). */
686
+ @container (max-width: 262px) {
687
+ .run-meta {
688
+ display: none;
689
+ }
690
+ }
691
+
692
+ @container (max-width: 232px) {
693
+ .run-flow {
694
+ padding: 0 2px;
695
+ font-size: 10px;
696
+ }
697
+ }
698
+
699
+ /* A reader who asked for less motion gets the colour and the words, never the breathing. */
700
+ @media (prefers-reduced-motion: reduce) {
701
+ .flow-plan-btn {
702
+ grid-column: 3;
703
+ grid-row: 2;
704
+ justify-self: start;
705
+ display: inline-flex;
706
+ align-items: center;
707
+ justify-content: center;
708
+ flex: 0 0 auto;
709
+ padding: 0 4px;
710
+ border: 1px solid var(--border-faint);
711
+ border-radius: var(--r-1);
712
+ background: transparent;
713
+ color: var(--muted);
714
+ cursor: pointer;
715
+ line-height: 1;
716
+ }
717
+
718
+ .flow-plan-btn:hover,
719
+ .flow-plan-btn:focus-visible {
720
+ color: var(--text);
721
+ border-color: color-mix(in srgb, var(--muted) 50%, var(--border));
722
+ }
723
+
724
+ .flow-badge.is-pulsing { animation: none; }
725
+ }
726
+
727
+ /* Icon buttons the size of a window control: 24×24 keeps the hit area usable while the label lives in `aria-label`/`title`. */
554
728
  .run-action,
555
729
  .run-stop,
556
730
  .run-delete {
557
731
  flex: 0 0 auto;
732
+ display: inline-flex;
733
+ align-items: center;
734
+ justify-content: center;
735
+ width: 24px;
736
+ height: 24px;
737
+ padding: 0;
558
738
  border: 1px solid transparent;
559
739
  border-radius: var(--r-1);
560
- padding: var(--s-1) var(--s-2);
561
740
  color: var(--muted);
562
741
  background: transparent;
563
742
  cursor: pointer;
564
743
  font-size: var(--fs-xs);
744
+ line-height: 1;
565
745
  transition: border-color var(--motion), color var(--motion), background var(--motion);
566
746
  }
567
747
 
748
+ .run-action:focus-visible,
749
+ .run-stop:focus-visible,
750
+ .run-delete:focus-visible {
751
+ outline: 2px solid color-mix(in srgb, var(--run-color) 70%, transparent);
752
+ outline-offset: 1px;
753
+ }
754
+
568
755
  .run-action:hover,
569
756
  .run-action:focus-visible {
570
757
  border-color: color-mix(in srgb, var(--run-color) 48%, var(--border));
@@ -582,6 +769,8 @@ button { letter-spacing: 0; }
582
769
  }
583
770
 
584
771
  .run-delete {
772
+ /* Destructive, so it sits apart from the other two. */
773
+ margin-left: 4px;
585
774
  border-color: color-mix(in srgb, var(--error) 18%, transparent);
586
775
  color: color-mix(in srgb, var(--error) 72%, var(--muted));
587
776
  }
@@ -1067,6 +1256,8 @@ button { letter-spacing: 0; }
1067
1256
  white-space: nowrap;
1068
1257
  }
1069
1258
 
1259
+ /* The tail is the card's own line: it starts at the card's edge, not under the avatar. The 38px inset pushed the longest
1260
+ tail (a queued agent: status + hint + stop) into a wrap with room to spare (block 70). */
1070
1261
  .card-tail {
1071
1262
  min-width: 0;
1072
1263
  width: 100%;
@@ -1075,7 +1266,6 @@ button { letter-spacing: 0; }
1075
1266
  align-items: center;
1076
1267
  justify-content: flex-start;
1077
1268
  gap: var(--s-2);
1078
- padding-left: calc(38px + var(--s-3));
1079
1269
  }
1080
1270
 
1081
1271
  .dot {
@@ -2094,10 +2284,6 @@ button { letter-spacing: 0; }
2094
2284
  padding-inline: var(--s-1);
2095
2285
  }
2096
2286
 
2097
- .card-tail {
2098
- padding-left: calc(34px + var(--s-2));
2099
- }
2100
-
2101
2287
  .stage-status {
2102
2288
  min-width: 64px;
2103
2289
  padding-inline: var(--s-2);
@@ -2136,3 +2322,250 @@ button { letter-spacing: 0; }
2136
2322
  scroll-behavior: auto !important;
2137
2323
  }
2138
2324
  }
2325
+
2326
+ /* ---- Insights dialog: Plan and Logs ------------------------------------------------------------ */
2327
+ .insights-tabs {
2328
+ display: flex;
2329
+ gap: var(--space-2, 8px);
2330
+ margin: 0 0 var(--space-3, 12px);
2331
+ border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.12));
2332
+ }
2333
+
2334
+ .insights-tab {
2335
+ appearance: none;
2336
+ background: none;
2337
+ border: 0;
2338
+ border-bottom: 2px solid transparent;
2339
+ color: var(--text-dim, #9aa4b2);
2340
+ cursor: pointer;
2341
+ font: inherit;
2342
+ padding: 6px 10px;
2343
+ }
2344
+
2345
+ .insights-tab.is-active {
2346
+ border-bottom-color: var(--accent, #e0b46a);
2347
+ color: var(--text, #ece7dc);
2348
+ }
2349
+
2350
+ .plan-ticks {
2351
+ margin-bottom: 8px;
2352
+ color: var(--muted);
2353
+ font-size: 12px;
2354
+ line-height: 1.4;
2355
+ }
2356
+
2357
+ /* A driver that is not there — no receipt at all, or a timer systemd reports as inactive — is the reason a flow sits
2358
+ still, so the line says it in the attention colour instead of blending into the dialog's chrome. */
2359
+ .plan-ticks[data-tone='attention'] {
2360
+ color: var(--danger, #f87171);
2361
+ }
2362
+
2363
+ .plan-progress {
2364
+ display: flex;
2365
+ align-items: center;
2366
+ gap: 10px;
2367
+ margin-bottom: 8px;
2368
+ }
2369
+
2370
+ .plan-progress-bar {
2371
+ flex: 1;
2372
+ height: 8px;
2373
+ border-radius: 999px;
2374
+ background: rgba(255, 255, 255, 0.1);
2375
+ overflow: hidden;
2376
+ }
2377
+
2378
+ .plan-progress-fill {
2379
+ display: block;
2380
+ height: 100%;
2381
+ width: 0;
2382
+ background: var(--accent, #e0b46a);
2383
+ transition: width 240ms ease;
2384
+ }
2385
+
2386
+ .plan-progress-text {
2387
+ font-variant-numeric: tabular-nums;
2388
+ min-width: 84px;
2389
+ text-align: right;
2390
+ }
2391
+
2392
+ .plan-filters,
2393
+ .logs-filters {
2394
+ display: flex;
2395
+ flex-wrap: wrap;
2396
+ gap: 6px;
2397
+ margin-bottom: 10px;
2398
+ }
2399
+
2400
+ .chip {
2401
+ appearance: none;
2402
+ background: rgba(255, 255, 255, 0.06);
2403
+ border: 1px solid transparent;
2404
+ border-radius: 999px;
2405
+ color: inherit;
2406
+ cursor: pointer;
2407
+ font: inherit;
2408
+ padding: 3px 10px;
2409
+ }
2410
+
2411
+ .chip.is-active {
2412
+ border-color: var(--accent, #e0b46a);
2413
+ }
2414
+
2415
+ .plan-waiting {
2416
+ border: 1px solid rgba(224, 180, 106, 0.5);
2417
+ border-radius: 8px;
2418
+ margin-bottom: 10px;
2419
+ padding: 8px 10px;
2420
+ }
2421
+
2422
+ .plan-waiting-title {
2423
+ color: var(--accent, #e0b46a);
2424
+ font-size: 12px;
2425
+ letter-spacing: 0.04em;
2426
+ margin-bottom: 4px;
2427
+ text-transform: uppercase;
2428
+ }
2429
+
2430
+ .plan-waiting-row {
2431
+ display: flex;
2432
+ gap: 8px;
2433
+ font-size: 13px;
2434
+ }
2435
+
2436
+ .plan-waiting-id {
2437
+ font-variant-numeric: tabular-nums;
2438
+ min-width: 72px;
2439
+ }
2440
+
2441
+ .plan-list,
2442
+ .logs-list {
2443
+ display: flex;
2444
+ flex-direction: column;
2445
+ gap: 4px;
2446
+ max-height: 46vh;
2447
+ overflow: auto;
2448
+ }
2449
+
2450
+ .plan-row {
2451
+ align-items: center;
2452
+ appearance: none;
2453
+ background: rgba(255, 255, 255, 0.03);
2454
+ border: 1px solid transparent;
2455
+ border-radius: 6px;
2456
+ color: inherit;
2457
+ cursor: pointer;
2458
+ display: grid;
2459
+ font: inherit;
2460
+ gap: 8px;
2461
+ grid-template-columns: 84px 1fr auto;
2462
+ padding: 6px 8px;
2463
+ text-align: left;
2464
+ }
2465
+
2466
+ .plan-row:hover,
2467
+ .plan-row:focus-visible {
2468
+ border-color: var(--accent, #e0b46a);
2469
+ outline: none;
2470
+ }
2471
+
2472
+ .plan-id {
2473
+ font-variant-numeric: tabular-nums;
2474
+ }
2475
+
2476
+ .plan-title {
2477
+ overflow: hidden;
2478
+ text-overflow: ellipsis;
2479
+ white-space: nowrap;
2480
+ }
2481
+
2482
+ .plan-badge {
2483
+ border-radius: 999px;
2484
+ font-size: 11px;
2485
+ padding: 1px 8px;
2486
+ background: rgba(255, 255, 255, 0.08);
2487
+ }
2488
+
2489
+ .plan-badge[data-status='done'] { background: rgba(120, 200, 140, 0.18); }
2490
+ .plan-badge[data-status='in_work'],
2491
+ .plan-badge[data-status='reviewing'] { background: rgba(110, 170, 255, 0.18); }
2492
+ .plan-badge[data-status='blocked_owner'],
2493
+ .plan-badge[data-status='needs_brief'] { background: rgba(224, 180, 106, 0.2); }
2494
+ .plan-badge[data-status='skipped'] { background: rgba(160, 160, 160, 0.14); }
2495
+
2496
+ .plan-detail {
2497
+ border-top: 1px solid rgba(255, 255, 255, 0.12);
2498
+ margin-top: 10px;
2499
+ padding-top: 8px;
2500
+ }
2501
+
2502
+ .plan-detail-row {
2503
+ display: flex;
2504
+ gap: 10px;
2505
+ font-size: 13px;
2506
+ }
2507
+
2508
+ .plan-detail-label {
2509
+ color: var(--text-dim, #9aa4b2);
2510
+ min-width: 96px;
2511
+ }
2512
+
2513
+ .logs-row {
2514
+ align-items: baseline;
2515
+ border-radius: 6px;
2516
+ display: grid;
2517
+ gap: 8px;
2518
+ grid-template-columns: 84px 130px 90px 1fr;
2519
+ padding: 5px 8px;
2520
+ }
2521
+
2522
+ .logs-row[data-unread='true'] {
2523
+ background: rgba(224, 180, 106, 0.08);
2524
+ }
2525
+
2526
+ .logs-row[data-severity='error'] { border-left: 2px solid #e06c6c; }
2527
+ .logs-row[data-severity='warn'] { border-left: 2px solid #e0b46a; }
2528
+
2529
+ .logs-time { font-variant-numeric: tabular-nums; }
2530
+ .logs-where, .logs-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2531
+ .logs-what { display: flex; flex-direction: column; gap: 1px; }
2532
+ .logs-detail { color: var(--text-dim, #9aa4b2); font-size: 12px; }
2533
+
2534
+ .logs-filter { display: flex; align-items: center; gap: 6px; font-size: 13px; }
2535
+ .logs-toggle { cursor: pointer; }
2536
+
2537
+ /* The card pulse: a soft ring that fades with the remaining time, and nothing at all under reduced motion. */
2538
+ .card-pulse {
2539
+ position: relative;
2540
+ }
2541
+
2542
+ .card-pulse::after {
2543
+ animation: card-pulse-ring var(--pulse-remaining, 5000ms) ease-out 1;
2544
+ border: 2px solid var(--accent, #e0b46a);
2545
+ border-radius: inherit;
2546
+ content: '';
2547
+ inset: -1px;
2548
+ pointer-events: none;
2549
+ position: absolute;
2550
+ }
2551
+
2552
+ @keyframes card-pulse-ring {
2553
+ from { opacity: 0.85; }
2554
+ to { opacity: 0; }
2555
+ }
2556
+
2557
+ @media (prefers-reduced-motion: reduce) {
2558
+ .card-pulse::after { animation: none; opacity: 0.5; }
2559
+ .plan-progress-fill { transition: none; }
2560
+ }
2561
+
2562
+ @media (max-width: 520px) {
2563
+ .logs-row { grid-template-columns: 64px 1fr; }
2564
+ .logs-who, .logs-where { display: none; }
2565
+ .plan-row { grid-template-columns: 64px 1fr auto; }
2566
+ /* Narrow card: "3 agents · running" is the first thing that can go — it stays in the title — while the flow chip and
2567
+ its plan icon must stay on one line, side by side. */
2568
+ .run-meta {
2569
+ display: none;
2570
+ }
2571
+ }