@lysyi3m/sidecar 0.0.0-stage → 1.6.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.
Files changed (61) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +295 -2
  3. package/dist/bin/sidecar-dashboard.js +27 -0
  4. package/dist/bin/sidecar-mcp.js +35 -0
  5. package/dist/bin/sidecar.js +70 -0
  6. package/dist/src/adapters/claude-code.js +333 -0
  7. package/dist/src/adapters/claude-desktop.js +184 -0
  8. package/dist/src/adapters/codex.js +383 -0
  9. package/dist/src/adapters/index.js +38 -0
  10. package/dist/src/adapters/installed.js +25 -0
  11. package/dist/src/adapters/outcome.js +30 -0
  12. package/dist/src/adapters/registration.js +69 -0
  13. package/dist/src/adapters/types.js +1 -0
  14. package/dist/src/cases/events.js +9 -0
  15. package/dist/src/cases/items.js +120 -0
  16. package/dist/src/cases/lock.js +80 -0
  17. package/dist/src/cases/opinion.js +58 -0
  18. package/dist/src/cases/state.js +121 -0
  19. package/dist/src/cases/store.js +181 -0
  20. package/dist/src/cases/usage.js +36 -0
  21. package/dist/src/cli/deps.js +18 -0
  22. package/dist/src/cli/lines.js +11 -0
  23. package/dist/src/cli/list.js +44 -0
  24. package/dist/src/cli/setup.js +202 -0
  25. package/dist/src/cli/status.js +111 -0
  26. package/dist/src/cli/style.js +26 -0
  27. package/dist/src/cli/ui.js +170 -0
  28. package/dist/src/cli/uninstall.js +73 -0
  29. package/dist/src/config.js +108 -0
  30. package/dist/src/dashboard/cases.js +109 -0
  31. package/dist/src/dashboard/html.js +31 -0
  32. package/dist/src/dashboard/links.js +35 -0
  33. package/dist/src/dashboard/marks.js +16 -0
  34. package/dist/src/dashboard/pages.js +516 -0
  35. package/dist/src/dashboard/server.js +305 -0
  36. package/dist/src/dashboard/service.js +138 -0
  37. package/dist/src/dashboard/static/agents/NOTICE +32 -0
  38. package/dist/src/dashboard/static/agents/claude-code.svg +1 -0
  39. package/dist/src/dashboard/static/agents/claude-desktop.svg +1 -0
  40. package/dist/src/dashboard/static/agents/codex.svg +1 -0
  41. package/dist/src/dashboard/static/app.css +1121 -0
  42. package/dist/src/dashboard/static/app.js +256 -0
  43. package/dist/src/dashboard/static/times.js +44 -0
  44. package/dist/src/dashboard/view.js +25 -0
  45. package/dist/src/lib/agent-process.js +57 -0
  46. package/dist/src/lib/atomic-write.js +35 -0
  47. package/dist/src/lib/command.js +20 -0
  48. package/dist/src/lib/failpoint.js +14 -0
  49. package/dist/src/lib/git.js +14 -0
  50. package/dist/src/lib/json.js +2 -0
  51. package/dist/src/lib/paths.js +19 -0
  52. package/dist/src/lib/proc.js +80 -0
  53. package/dist/src/lib/version.js +43 -0
  54. package/dist/src/mcp/server.js +800 -0
  55. package/dist/src/mcp/stdio.js +31 -0
  56. package/dist/src/mcp/tools.js +180 -0
  57. package/dist/src/turns/dispatch.js +188 -0
  58. package/dist/src/turns/knobs.js +14 -0
  59. package/dist/src/turns/prompt.js +284 -0
  60. package/dist/src/turns/runner.js +283 -0
  61. package/package.json +44 -4
@@ -0,0 +1,1121 @@
1
+ /*
2
+ * One token block for both themes via light-dark(); `color-scheme` activates it and lets the
3
+ * browser theme its own surfaces. Colour carries meaning sparingly: accent marks interaction and
4
+ * the navigator, amber marks what is worth noticing (a disagreement, an open flag, a failure).
5
+ */
6
+ :root {
7
+ color-scheme: light dark;
8
+
9
+ --bg: light-dark(#ffffff, #0a0c0f);
10
+ --raise: light-dark(#fafbfc, #12161c);
11
+ --sunk: light-dark(#f4f6f8, #0e1116);
12
+ --line: light-dark(#e6e8ec, #232830);
13
+ --hair: light-dark(#f0f2f5, #191d24);
14
+ --ink: light-dark(#0c0e12, #e9edf3);
15
+ --ink-2: light-dark(#4e5766, #a3adbb);
16
+ --ink-3: light-dark(#8b94a1, #6e7784);
17
+ --accent: light-dark(#1f4fd8, #8aa6ff);
18
+ --alert: light-dark(#9a3412, #e0a165);
19
+ --alert-weak: light-dark(#fdf3ec, #221a12);
20
+ --ok: light-dark(#2f6b3f, #8cc79c);
21
+ --ok-weak: light-dark(#eef6f0, #121c16);
22
+
23
+ --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
24
+ --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
25
+
26
+ --sidebar: 288px;
27
+ }
28
+
29
+ *,
30
+ *::before,
31
+ *::after {
32
+ box-sizing: border-box;
33
+ }
34
+
35
+ body {
36
+ margin: 0;
37
+ background: var(--bg);
38
+ color: var(--ink);
39
+ font-family: var(--font);
40
+ font-size: 13.5px;
41
+ line-height: 1.5;
42
+ -webkit-font-smoothing: antialiased;
43
+ text-rendering: optimizeLegibility;
44
+ }
45
+
46
+ a {
47
+ color: inherit;
48
+ }
49
+
50
+ .mono,
51
+ code {
52
+ font-family: var(--font-mono);
53
+ font-variant-numeric: tabular-nums;
54
+ }
55
+
56
+ .label {
57
+ font-size: 10.5px;
58
+ font-weight: 600;
59
+ letter-spacing: 0.08em;
60
+ text-transform: uppercase;
61
+ }
62
+
63
+ button {
64
+ font: inherit;
65
+ cursor: pointer;
66
+ color: var(--ink-2);
67
+ background: var(--bg);
68
+ border: 1px solid var(--line);
69
+
70
+ &:focus-visible {
71
+ outline: 2px solid var(--accent);
72
+ outline-offset: 1px;
73
+ }
74
+ }
75
+
76
+ /* ---------------------------------------------------------------- shell */
77
+
78
+ .shell {
79
+ display: grid;
80
+ grid-template-columns: var(--sidebar) minmax(0, 1fr);
81
+ min-height: 100vh;
82
+ transition: grid-template-columns 160ms ease;
83
+
84
+ &.is-collapsed {
85
+ grid-template-columns: 0 minmax(0, 1fr);
86
+ }
87
+ }
88
+
89
+ .sidebar {
90
+ position: sticky;
91
+ top: 0;
92
+ height: 100vh;
93
+ overflow: hidden;
94
+ border-right: 1px solid var(--line);
95
+ background: var(--raise);
96
+ display: flex;
97
+ flex-direction: column;
98
+
99
+ .is-collapsed & {
100
+ border-right-color: transparent;
101
+ }
102
+ }
103
+
104
+ .sidebar-head {
105
+ display: flex;
106
+ align-items: center;
107
+ padding: 18px 16px 14px;
108
+ border-bottom: 1px solid var(--line);
109
+ min-width: var(--sidebar);
110
+ }
111
+
112
+ .brand {
113
+ display: flex;
114
+ align-items: center;
115
+ gap: 9px;
116
+ font-family: var(--font-mono);
117
+ font-size: 15px;
118
+ font-weight: 600;
119
+ text-decoration: none;
120
+ }
121
+
122
+ /* The mark: two linked squares — a driver and its navigator. */
123
+ .brand-mark {
124
+ width: 18px;
125
+ height: 18px;
126
+ flex: none;
127
+ }
128
+
129
+ .side-list {
130
+ flex: 1;
131
+ overflow-y: auto;
132
+ padding: 6px 0 24px;
133
+ min-width: var(--sidebar);
134
+ }
135
+
136
+ .side-section {
137
+ padding: 14px 16px 6px;
138
+ color: var(--ink-3);
139
+ }
140
+
141
+ .side-case {
142
+ display: block;
143
+ padding: 8px 16px 8px 14px;
144
+ border-left: 2px solid transparent;
145
+ text-decoration: none;
146
+
147
+ &:hover {
148
+ background: var(--hair);
149
+ }
150
+
151
+ &[aria-current="page"] {
152
+ background: var(--bg);
153
+ border-left-color: var(--ink);
154
+ }
155
+ }
156
+
157
+ .side-title {
158
+ display: -webkit-box;
159
+ -webkit-line-clamp: 2;
160
+ -webkit-box-orient: vertical;
161
+ overflow: hidden;
162
+ font-size: 12.5px;
163
+ font-weight: 500;
164
+ line-height: 1.35;
165
+ overflow-wrap: anywhere;
166
+ }
167
+
168
+ .side-meta {
169
+ margin-top: 3px;
170
+ display: flex;
171
+ align-items: center;
172
+ gap: 7px;
173
+ font-size: 10.5px;
174
+ color: var(--ink-3);
175
+ }
176
+
177
+ .side-empty {
178
+ padding: 16px;
179
+ color: var(--ink-3);
180
+ font-size: 12px;
181
+ }
182
+
183
+ /* ---------------------------------------------------------------- main */
184
+
185
+ .main {
186
+ min-width: 0;
187
+ }
188
+
189
+ .page {
190
+ max-width: 1080px;
191
+ margin: 0 auto;
192
+ padding: 26px 32px 96px;
193
+ display: flex;
194
+ flex-direction: column;
195
+ gap: 22px;
196
+ }
197
+
198
+ .topbar {
199
+ display: flex;
200
+ align-items: center;
201
+ gap: 12px;
202
+ min-height: 30px;
203
+ }
204
+
205
+ .crumbs {
206
+ display: flex;
207
+ /* The uppercase label is smaller than the title: align text, not boxes. */
208
+ align-items: baseline;
209
+ gap: 8px;
210
+ font-size: 12px;
211
+ color: var(--ink-3);
212
+ min-width: 0;
213
+
214
+ & a {
215
+ text-decoration: none;
216
+
217
+ &:hover {
218
+ color: var(--accent);
219
+ }
220
+ }
221
+
222
+ & .here {
223
+ color: var(--ink-2);
224
+ overflow: hidden;
225
+ text-overflow: ellipsis;
226
+ white-space: nowrap;
227
+ }
228
+ }
229
+
230
+ .topbar-actions {
231
+ margin-left: auto;
232
+ display: flex;
233
+ gap: 4px;
234
+ }
235
+
236
+ .icon-button.is-failed {
237
+ color: var(--alert);
238
+ }
239
+
240
+ /* An exported case: the page alone, with a line saying where it came from. */
241
+ .export-note {
242
+ font-size: 12px;
243
+ color: var(--ink-3);
244
+ border-top: 1px solid var(--line);
245
+ padding-top: 12px;
246
+ }
247
+
248
+ .icon-button {
249
+ display: inline-grid;
250
+ place-items: center;
251
+ width: 30px;
252
+ height: 30px;
253
+ padding: 0;
254
+ border-radius: 7px;
255
+
256
+ &:hover {
257
+ color: var(--ink);
258
+ background: var(--raise);
259
+ }
260
+
261
+ & svg {
262
+ width: 16px;
263
+ height: 16px;
264
+ }
265
+ }
266
+
267
+ h1.title {
268
+ margin: 0;
269
+ font-size: 23px;
270
+ font-weight: 600;
271
+ letter-spacing: -0.03em;
272
+ line-height: 1.25;
273
+ text-wrap: balance;
274
+ }
275
+
276
+ /* ---------------------------------------------------------------- chips */
277
+
278
+ .chip {
279
+ display: inline-flex;
280
+ align-items: center;
281
+ padding: 1px 6px;
282
+ border: 1px solid var(--line);
283
+ border-radius: 4px;
284
+ font-size: 9.5px;
285
+ font-weight: 600;
286
+ letter-spacing: 0.08em;
287
+ text-transform: uppercase;
288
+ color: var(--ink-2);
289
+ white-space: nowrap;
290
+ line-height: 1.6;
291
+ }
292
+
293
+ .chip.is-solid {
294
+ color: var(--bg);
295
+ background: var(--ink);
296
+ border-color: var(--ink);
297
+ }
298
+
299
+ .chip.is-alert {
300
+ color: var(--alert);
301
+ background: var(--alert-weak);
302
+ border-color: var(--alert);
303
+ }
304
+
305
+ .chip.is-accent {
306
+ color: var(--accent);
307
+ border-color: var(--accent);
308
+ }
309
+
310
+ .chip.is-ok {
311
+ color: var(--ok);
312
+ background: var(--ok-weak);
313
+ border-color: var(--ok);
314
+ }
315
+
316
+ .chip.is-quiet {
317
+ color: var(--ink-3);
318
+ }
319
+
320
+ .side-tag {
321
+ margin-left: auto;
322
+ font-size: 9.5px;
323
+ font-weight: 600;
324
+ letter-spacing: 0.06em;
325
+ text-transform: uppercase;
326
+ color: var(--ink-2);
327
+
328
+ &.is-accent {
329
+ color: var(--accent);
330
+ }
331
+ }
332
+
333
+ /* ---------------------------------------------------------------- toolbar */
334
+
335
+ .toolbar {
336
+ display: flex;
337
+ flex-wrap: wrap;
338
+ gap: 12px;
339
+ align-items: center;
340
+ justify-content: space-between;
341
+ }
342
+
343
+ .segmented {
344
+ display: inline-flex;
345
+ border: 1px solid var(--line);
346
+ border-radius: 7px;
347
+ overflow: hidden;
348
+
349
+ & button {
350
+ border: 0;
351
+ border-right: 1px solid var(--line);
352
+ padding: 6px 12px;
353
+
354
+ &:last-child {
355
+ border-right: 0;
356
+ }
357
+
358
+ &:not([aria-pressed="true"]):hover {
359
+ color: var(--ink);
360
+ background: var(--raise);
361
+ }
362
+
363
+ &[aria-pressed="true"] {
364
+ color: var(--bg);
365
+ background: var(--ink);
366
+ }
367
+ }
368
+ }
369
+
370
+ .search-group {
371
+ display: flex;
372
+ align-items: center;
373
+ gap: 10px;
374
+ }
375
+
376
+ input[type="search"] {
377
+ width: 260px;
378
+ padding: 7px 11px;
379
+ border: 1px solid var(--line);
380
+ border-radius: 7px;
381
+ background: var(--bg);
382
+ color: var(--ink);
383
+ font: inherit;
384
+ font-size: 12.5px;
385
+
386
+ &::placeholder {
387
+ color: var(--ink-3);
388
+ }
389
+
390
+ &:focus-visible {
391
+ outline: 2px solid var(--accent);
392
+ outline-offset: -1px;
393
+ border-color: transparent;
394
+ }
395
+ }
396
+
397
+ .result-count {
398
+ min-width: 7ch;
399
+ text-align: right;
400
+ font-family: var(--font-mono);
401
+ font-size: 11px;
402
+ color: var(--ink-3);
403
+ }
404
+
405
+ /* ---------------------------------------------------------------- index table */
406
+
407
+ .table-scroll {
408
+ overflow-x: auto;
409
+ border-top: 1px solid var(--line);
410
+ }
411
+
412
+ table {
413
+ width: 100%;
414
+ border-collapse: collapse;
415
+ }
416
+
417
+ /* A row the filter or the search hides still sizes the columns, so they stay where they are. */
418
+ #case-rows tr[hidden] {
419
+ display: table-row;
420
+ visibility: collapse;
421
+ }
422
+
423
+ thead th {
424
+ position: sticky;
425
+ top: 0;
426
+ z-index: 1;
427
+ background: var(--bg);
428
+ text-align: left;
429
+ font-size: 10px;
430
+ font-weight: 600;
431
+ letter-spacing: 0.13em;
432
+ text-transform: uppercase;
433
+ color: var(--ink-3);
434
+ white-space: nowrap;
435
+ padding: 9px 14px;
436
+ border-bottom: 1px solid var(--line);
437
+ }
438
+
439
+ tbody td {
440
+ padding: 11px 14px;
441
+ border-bottom: 1px solid var(--hair);
442
+ vertical-align: top;
443
+ }
444
+
445
+ tbody tr {
446
+ cursor: pointer;
447
+
448
+ &:hover td {
449
+ background: var(--raise);
450
+ }
451
+ }
452
+
453
+ .case-title {
454
+ font-weight: 500;
455
+ letter-spacing: -0.01em;
456
+ text-decoration: none;
457
+
458
+ &:hover {
459
+ color: var(--accent);
460
+ }
461
+ }
462
+
463
+ .case-sub {
464
+ margin-top: 2px;
465
+ font-size: 11px;
466
+ color: var(--ink-3);
467
+ }
468
+
469
+ /* Under the open or closed filter every row has the same state, so the column says nothing. */
470
+ table:not([data-filter-state="all"]) .col-state {
471
+ display: none;
472
+ }
473
+
474
+ /* The case column takes the width the other columns leave. */
475
+ tbody td:first-child {
476
+ width: 100%;
477
+ }
478
+
479
+ /* Id and working directory on one line. inline-size containment keeps a long path from widening
480
+ the column: the path fits the column instead. */
481
+ .case-where {
482
+ display: flex;
483
+ gap: 1ch;
484
+ white-space: nowrap;
485
+ contain: inline-size;
486
+
487
+ > span {
488
+ flex: none;
489
+ }
490
+ }
491
+
492
+ /* A path on one line, cut in the middle: its two halves shrink alike, the first one losing its end
493
+ behind an ellipsis, the second one its start. The second half is laid out right to left, so it
494
+ overflows at its start; its text stays left to right inside. */
495
+ .path-line {
496
+ display: flex;
497
+ min-width: 0;
498
+ white-space: nowrap;
499
+
500
+ .case-where > & {
501
+ flex: 0 1 auto;
502
+ }
503
+ }
504
+
505
+ .path-head,
506
+ .path-tail {
507
+ flex: 0 1 auto;
508
+ min-width: 0;
509
+ overflow: hidden;
510
+ }
511
+
512
+ .path-head {
513
+ text-overflow: ellipsis;
514
+ }
515
+
516
+ .path-tail {
517
+ direction: rtl;
518
+
519
+ > span {
520
+ direction: ltr;
521
+ unicode-bidi: isolate;
522
+ }
523
+ }
524
+
525
+ .dim {
526
+ color: var(--ink-3);
527
+ }
528
+
529
+ .message {
530
+ padding: 56px 20px;
531
+ text-align: center;
532
+ font-size: 13px;
533
+ color: var(--ink-3);
534
+ }
535
+
536
+ /* Why the case page stopped updating: its log could not be read. */
537
+ .message.problem {
538
+ padding: 10px 14px;
539
+ border: 1px solid var(--alert);
540
+ border-radius: 10px;
541
+ background: var(--alert-weak);
542
+ text-align: left;
543
+ color: var(--ink);
544
+ }
545
+
546
+ /* ---------------------------------------------------------------- case header */
547
+
548
+ .case-head {
549
+ display: flex;
550
+ flex-direction: column;
551
+ gap: 14px;
552
+ }
553
+
554
+ .title-row {
555
+ display: flex;
556
+ align-items: flex-start;
557
+ gap: 12px;
558
+
559
+ & .chip {
560
+ margin-top: 6px;
561
+ }
562
+ }
563
+
564
+ .case-id {
565
+ margin-top: 7px;
566
+ font-size: 12px;
567
+ color: var(--ink-3);
568
+ }
569
+
570
+ /* An agent's mark sits on the text baseline and takes the surrounding ink: its file is a mask over
571
+ the text colour, so one cached file serves every theme. */
572
+ .agent-mark {
573
+ display: inline-block;
574
+ width: 1.15em;
575
+ height: 1.15em;
576
+ flex: none;
577
+ vertical-align: -0.2em;
578
+ background-color: currentColor;
579
+ mask: var(--mark) center / contain no-repeat;
580
+ }
581
+
582
+ .agent-line {
583
+ display: inline-flex;
584
+ align-items: center;
585
+ gap: 7px;
586
+ white-space: nowrap;
587
+ }
588
+
589
+ /* The working directory, under the title, on one line (see .path-line). */
590
+ .case-path {
591
+ margin-top: -6px;
592
+ font-size: 12px;
593
+ color: var(--ink-2);
594
+ }
595
+
596
+ .facts {
597
+ display: grid;
598
+ grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
599
+ gap: 12px 26px;
600
+ padding: 14px 0;
601
+ border-top: 1px solid var(--line);
602
+ border-bottom: 1px solid var(--line);
603
+ }
604
+
605
+ .fact {
606
+ min-width: 0;
607
+
608
+ & dt {
609
+ color: var(--ink-3);
610
+ margin-bottom: 3px;
611
+ }
612
+
613
+ & dd {
614
+ margin: 0;
615
+ font-size: 12.5px;
616
+ overflow-wrap: anywhere;
617
+ }
618
+ }
619
+
620
+ .stats {
621
+ display: flex;
622
+ flex-wrap: wrap;
623
+ gap: 8px;
624
+ }
625
+
626
+ .stat {
627
+ display: inline-flex;
628
+ align-items: baseline;
629
+ gap: 6px;
630
+ padding: 5px 10px;
631
+ border: 1px solid var(--line);
632
+ border-radius: 7px;
633
+ font-size: 11.5px;
634
+ color: var(--ink-2);
635
+
636
+ & b {
637
+ font-family: var(--font-mono);
638
+ font-size: 13px;
639
+ font-weight: 600;
640
+ color: var(--ink);
641
+ }
642
+
643
+ &.is-alert {
644
+ border-color: var(--alert);
645
+ background: var(--alert-weak);
646
+ color: var(--alert);
647
+
648
+ & b {
649
+ color: var(--alert);
650
+ }
651
+ }
652
+ }
653
+
654
+ /* ---------------------------------------------------------------- brief */
655
+
656
+ .brief {
657
+ padding: 16px 18px;
658
+ border: 1px solid var(--line);
659
+ border-radius: 10px;
660
+ background: var(--raise);
661
+
662
+ & h2 {
663
+ margin: 0 0 10px;
664
+ color: var(--ink-3);
665
+ }
666
+
667
+ & section + section {
668
+ margin-top: 12px;
669
+ }
670
+
671
+ & h3 {
672
+ margin: 0 0 4px;
673
+ font-size: 11.5px;
674
+ font-weight: 600;
675
+ color: var(--ink-2);
676
+ }
677
+
678
+ & ul {
679
+ margin: 0;
680
+ padding-left: 18px;
681
+ }
682
+
683
+ & .card-text {
684
+ padding: 0;
685
+ }
686
+ }
687
+
688
+ /* ---------------------------------------------------------------- timeline */
689
+
690
+ /*
691
+ * Three columns: a time gutter, the rail with each entry's marker, and the entry. Every entry
692
+ * reads top-down in one column — no left/right chat split — and says who posted it in its
693
+ * header: the role, the agent, the kind.
694
+ */
695
+ .timeline {
696
+ display: flex;
697
+ flex-direction: column;
698
+ }
699
+
700
+ .entry {
701
+ display: grid;
702
+ grid-template-columns: 62px 22px minmax(0, 1fr);
703
+ column-gap: 12px;
704
+ scroll-margin-top: 80px;
705
+ }
706
+
707
+ .entry-time {
708
+ padding-top: 13px;
709
+ text-align: right;
710
+ font-size: 10.5px;
711
+ color: var(--ink-3);
712
+ white-space: nowrap;
713
+ }
714
+
715
+ .entry-rail {
716
+ position: relative;
717
+
718
+ &::before {
719
+ content: "";
720
+ position: absolute;
721
+ top: 0;
722
+ bottom: 0;
723
+ left: 50%;
724
+ width: 1px;
725
+ background: var(--line);
726
+ }
727
+ }
728
+
729
+ .entry:first-child .entry-rail::before {
730
+ top: 16px;
731
+ }
732
+
733
+ .entry:last-child .entry-rail::before {
734
+ bottom: calc(100% - 18px);
735
+ }
736
+
737
+ .marker {
738
+ position: absolute;
739
+ top: 14px;
740
+ left: 50%;
741
+ translate: -50% 0;
742
+ width: 11px;
743
+ height: 11px;
744
+ background: var(--bg);
745
+ }
746
+
747
+ /*
748
+ * The brand mark's language: the driver is a filled square, the navigator an accent outlined
749
+ * square. Sidecar's own events are a small, dim circle.
750
+ */
751
+ .marker.driver {
752
+ background: var(--ink);
753
+ border-radius: 2px;
754
+ }
755
+
756
+ .marker.navigator {
757
+ border: 1.5px solid var(--accent);
758
+ border-radius: 2px;
759
+ }
760
+
761
+ .marker.sidecar {
762
+ top: 11px;
763
+ width: 7px;
764
+ height: 7px;
765
+ border-radius: 50%;
766
+ border: 1px solid color-mix(in srgb, var(--ink-3) 60%, var(--bg));
767
+ }
768
+
769
+ .marker.alert {
770
+ border-color: var(--alert);
771
+ background: var(--alert-weak);
772
+ }
773
+
774
+ .entry-body {
775
+ padding: 6px 0 16px;
776
+ min-width: 0;
777
+ }
778
+
779
+ .card {
780
+ border: 1px solid var(--line);
781
+ border-radius: 10px;
782
+ background: var(--bg);
783
+ overflow: hidden;
784
+
785
+ .entry:target &,
786
+ .entry:has(.anchor:target) & {
787
+ outline: 2px solid var(--accent);
788
+ outline-offset: 2px;
789
+ }
790
+ }
791
+
792
+ /* The id of a later event that a card shows with the first one: a link to it lands on the card. */
793
+ .anchor {
794
+ display: block;
795
+ scroll-margin-top: 80px;
796
+ }
797
+
798
+ .card.navigator {
799
+ background: var(--raise);
800
+ border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
801
+ }
802
+
803
+ .card.alert {
804
+ border-color: var(--alert);
805
+ background: var(--alert-weak);
806
+ }
807
+
808
+ .card.compact .card-text {
809
+ padding-top: 8px;
810
+ }
811
+
812
+ .card-head {
813
+ display: flex;
814
+ flex-wrap: wrap;
815
+ align-items: center;
816
+ gap: 6px 10px;
817
+ padding: 9px 14px 0;
818
+ }
819
+
820
+ .who {
821
+ display: inline-flex;
822
+ align-items: center;
823
+ gap: 7px;
824
+
825
+ & .role {
826
+ color: var(--ink);
827
+ }
828
+
829
+ & .agent-mark,
830
+ & .agent-name {
831
+ color: var(--ink-2);
832
+ }
833
+
834
+ & .agent-name {
835
+ font-family: var(--font-mono);
836
+ font-size: 11px;
837
+ }
838
+
839
+ .card.navigator & .role {
840
+ color: var(--accent);
841
+ }
842
+ }
843
+
844
+ .kind {
845
+ color: var(--ink-3);
846
+ }
847
+
848
+ .card-head .refs {
849
+ margin-left: auto;
850
+ display: inline-flex;
851
+ align-items: center;
852
+ gap: 8px;
853
+ font-size: 11px;
854
+ color: var(--ink-3);
855
+ }
856
+
857
+ .ref {
858
+ font-family: var(--font-mono);
859
+ font-size: 11px;
860
+ color: var(--ink-2);
861
+ white-space: nowrap;
862
+ text-decoration: none;
863
+ border-bottom: 1px dotted var(--ink-3);
864
+
865
+ &:hover {
866
+ color: var(--accent);
867
+ border-bottom-color: var(--accent);
868
+ }
869
+ }
870
+
871
+ .card-text {
872
+ padding: 8px 14px 12px;
873
+ white-space: pre-wrap;
874
+ overflow-wrap: anywhere;
875
+ }
876
+
877
+ .card-text code,
878
+ .flag-text code {
879
+ padding: 0 3px;
880
+ border-radius: 3px;
881
+ background: var(--sunk);
882
+ font-size: 0.92em;
883
+ }
884
+
885
+ /* A path or path:line found in prose: monospace, no box, so dense evidence stays readable. */
886
+ .path {
887
+ font-family: var(--font-mono);
888
+ font-size: 0.92em;
889
+ color: var(--ink-2);
890
+ }
891
+
892
+ .card-foot {
893
+ display: flex;
894
+ flex-wrap: wrap;
895
+ align-items: center;
896
+ gap: 4px 8px;
897
+ padding: 8px 14px;
898
+ border-top: 1px solid var(--hair);
899
+ font-size: 11.5px;
900
+ color: var(--ink-3);
901
+ }
902
+
903
+ .card-foot.is-alert {
904
+ color: var(--alert);
905
+ }
906
+
907
+ .verdict {
908
+ display: flex;
909
+ flex-wrap: wrap;
910
+ align-items: center;
911
+ gap: 6px 8px;
912
+ padding: 10px 14px 0;
913
+ }
914
+
915
+ /* ---------------------------------------------------------------- flags */
916
+
917
+ .flags {
918
+ margin: 0 14px 12px;
919
+ border-top: 1px solid var(--line);
920
+ }
921
+
922
+ .flags-title {
923
+ display: flex;
924
+ flex-wrap: wrap;
925
+ align-items: baseline;
926
+ gap: 4px 10px;
927
+ margin: 0;
928
+ padding: 10px 0 2px;
929
+ font-size: 11.5px;
930
+ font-weight: normal;
931
+
932
+ & .label {
933
+ color: var(--ink);
934
+ }
935
+ }
936
+
937
+ .flag {
938
+ display: grid;
939
+ grid-template-columns: auto minmax(0, 1fr);
940
+ gap: 4px 10px;
941
+ padding: 9px 0;
942
+ border-bottom: 1px solid var(--hair);
943
+ scroll-margin-top: 80px;
944
+
945
+ &:last-child {
946
+ border-bottom: 0;
947
+ }
948
+
949
+ &:target {
950
+ outline: 2px solid var(--accent);
951
+ }
952
+ }
953
+
954
+ .flag-id {
955
+ padding-top: 1px;
956
+ font-family: var(--font-mono);
957
+ font-size: 11px;
958
+ color: var(--ink-2);
959
+ }
960
+
961
+ .flag-text {
962
+ white-space: pre-wrap;
963
+ overflow-wrap: anywhere;
964
+ font-size: 12.5px;
965
+ }
966
+
967
+ .limits {
968
+ margin: 0;
969
+ padding: 6px 0 4px 18px;
970
+ overflow-wrap: anywhere;
971
+ font-size: 12.5px;
972
+ color: var(--ink-2);
973
+ }
974
+
975
+ .flag-status {
976
+ grid-column: 2;
977
+ display: flex;
978
+ flex-wrap: wrap;
979
+ align-items: center;
980
+ gap: 4px 7px;
981
+ font-size: 11px;
982
+ color: var(--ink-3);
983
+ }
984
+
985
+ /* ---------------------------------------------------------------- service events */
986
+
987
+ /*
988
+ * Bookkeeping, not conversation: one quiet line on the rail. A card entry ends with 16px; a
989
+ * service line ends with 10px and starts flush, so the space above and below it matches.
990
+ */
991
+ .entry.service .entry-time {
992
+ padding-top: 1px;
993
+ }
994
+
995
+ .entry.service .entry-body {
996
+ padding: 0 0 10px;
997
+ }
998
+
999
+ .entry.service .marker {
1000
+ top: 5px;
1001
+ }
1002
+
1003
+ /* The rail starts and ends at the marker's centre. */
1004
+ .entry.service:first-child .entry-rail::before {
1005
+ top: 9px;
1006
+ }
1007
+
1008
+ .entry.service:last-child .entry-rail::before {
1009
+ bottom: calc(100% - 9px);
1010
+ }
1011
+
1012
+ /* Always one line: a detail too long for it ends in an ellipsis, and the line's title holds it all. */
1013
+ .service-line {
1014
+ display: flex;
1015
+ align-items: baseline;
1016
+ /* One monospace space between parts, so the line reads as one sentence. */
1017
+ gap: 1ch;
1018
+ min-width: 0;
1019
+ white-space: nowrap;
1020
+ font-family: var(--font-mono);
1021
+ font-size: 11px;
1022
+ color: var(--ink-3);
1023
+
1024
+ & > span {
1025
+ flex: 0 1 auto;
1026
+ min-width: 0;
1027
+ overflow: hidden;
1028
+ text-overflow: ellipsis;
1029
+ }
1030
+
1031
+ & .what {
1032
+ flex: none;
1033
+ color: var(--ink-2);
1034
+ }
1035
+ }
1036
+
1037
+ .entry.service.notable .service-line .what {
1038
+ color: var(--alert);
1039
+ }
1040
+
1041
+ /* ---------------------------------------------------------------- small screens */
1042
+
1043
+ @media (max-width: 760px) {
1044
+ /* No sidebar and no toggle: the page takes the width, and the breadcrumb leads back to the cases. */
1045
+ .shell,
1046
+ .shell.is-collapsed {
1047
+ grid-template-columns: minmax(0, 1fr);
1048
+ }
1049
+
1050
+ .sidebar,
1051
+ .sidebar-toggle {
1052
+ display: none;
1053
+ }
1054
+
1055
+ .page {
1056
+ padding: 18px 16px 72px;
1057
+ }
1058
+
1059
+ /* The time moves from its gutter onto a line of its own above the entry. */
1060
+ .entry {
1061
+ grid-template-columns: 18px minmax(0, 1fr);
1062
+ column-gap: 10px;
1063
+ }
1064
+
1065
+ .entry-rail {
1066
+ grid-column: 1;
1067
+ grid-row: 1 / span 2;
1068
+ }
1069
+
1070
+ .entry-time {
1071
+ grid-column: 2;
1072
+ grid-row: 1;
1073
+ padding-top: 8px;
1074
+ text-align: left;
1075
+ line-height: 1.4;
1076
+ }
1077
+
1078
+ .entry-body {
1079
+ grid-column: 2;
1080
+ grid-row: 2;
1081
+ padding-top: 4px;
1082
+ }
1083
+
1084
+ .marker {
1085
+ top: 10px;
1086
+ }
1087
+
1088
+ .entry:first-child .entry-rail::before {
1089
+ top: 12px;
1090
+ }
1091
+
1092
+ /* A service line keeps its time on the same line, ahead of the text. */
1093
+ .entry.service {
1094
+ grid-template-columns: 18px auto minmax(0, 1fr);
1095
+ }
1096
+
1097
+ .entry.service .entry-rail {
1098
+ grid-row: 1;
1099
+ }
1100
+
1101
+ .entry.service .entry-body {
1102
+ grid-column: 3;
1103
+ grid-row: 1;
1104
+ }
1105
+
1106
+ .title-row {
1107
+ flex-wrap: wrap;
1108
+ }
1109
+
1110
+ h1.title {
1111
+ font-size: 20px;
1112
+ }
1113
+
1114
+ .search-group {
1115
+ width: 100%;
1116
+ }
1117
+
1118
+ input[type="search"] {
1119
+ width: 100%;
1120
+ }
1121
+ }