devcontour-harness-ui 0.0.0-stage → 0.1.0-alpha.2

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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +143 -2
  3. package/dist/app/assets/index-Det9VYJC.css +1 -0
  4. package/dist/app/assets/index-veveke8K.js +9 -0
  5. package/dist/app/index.html +13 -0
  6. package/dist/demo/ru/view.sample.json +483 -0
  7. package/dist/demo/ru/work.accepted.sample.json +187 -0
  8. package/dist/demo/ru/work.sample.json +171 -0
  9. package/dist/demo/view.sample.json +483 -0
  10. package/dist/demo/work.accepted.sample.json +187 -0
  11. package/dist/demo/work.sample.json +171 -0
  12. package/dist/lib/cli.d.ts +2 -0
  13. package/dist/lib/cli.js +160 -0
  14. package/dist/lib/components/Activity.d.ts +13 -0
  15. package/dist/lib/components/Activity.js +19 -0
  16. package/dist/lib/components/Decisions.d.ts +6 -0
  17. package/dist/lib/components/Decisions.js +19 -0
  18. package/dist/lib/components/Health.d.ts +8 -0
  19. package/dist/lib/components/Health.js +24 -0
  20. package/dist/lib/components/History.d.ts +32 -0
  21. package/dist/lib/components/History.js +129 -0
  22. package/dist/lib/components/Overview.d.ts +19 -0
  23. package/dist/lib/components/Overview.js +54 -0
  24. package/dist/lib/components/Reviews.d.ts +23 -0
  25. package/dist/lib/components/Reviews.js +22 -0
  26. package/dist/lib/components/Settings.d.ts +21 -0
  27. package/dist/lib/components/Settings.js +77 -0
  28. package/dist/lib/components/WorkDetail.d.ts +18 -0
  29. package/dist/lib/components/WorkDetail.js +96 -0
  30. package/dist/lib/components/common.d.ts +71 -0
  31. package/dist/lib/components/common.js +85 -0
  32. package/dist/lib/index.d.ts +10 -0
  33. package/dist/lib/index.js +12 -0
  34. package/dist/lib/model/compat.d.ts +36 -0
  35. package/dist/lib/model/compat.js +365 -0
  36. package/dist/lib/model/dict.d.ts +387 -0
  37. package/dist/lib/model/dict.js +1119 -0
  38. package/dist/lib/model/format.d.ts +34 -0
  39. package/dist/lib/model/format.js +88 -0
  40. package/dist/lib/model/i18n.d.ts +44 -0
  41. package/dist/lib/model/i18n.js +109 -0
  42. package/dist/lib/model/index.d.ts +6 -0
  43. package/dist/lib/model/index.js +8 -0
  44. package/dist/lib/model/source.d.ts +16 -0
  45. package/dist/lib/model/source.js +57 -0
  46. package/dist/lib/model/view.d.ts +474 -0
  47. package/dist/lib/model/view.js +10 -0
  48. package/dist/lib/server/harness.d.ts +44 -0
  49. package/dist/lib/server/harness.js +172 -0
  50. package/dist/lib/server/serve.d.ts +62 -0
  51. package/dist/lib/server/serve.js +302 -0
  52. package/dist/lib/styles.css +485 -0
  53. package/docs/design.md +1689 -0
  54. package/docs/harness-proposals.md +560 -0
  55. package/docs/release-notes/0.1.0-alpha.1.md +96 -0
  56. package/docs/release-notes/0.1.0-alpha.2.md +218 -0
  57. package/package.json +75 -4
  58. package/skills/harness-ui/SKILL.md +246 -0
@@ -0,0 +1,485 @@
1
+ /* devcontour-harness-ui styles. Every colour, size and font is a `--hui-*`
2
+ variable. Defaults are declared on :root only, so a host (DevContour)
3
+ overrides them on any ancestor wrapper of the components; rules on `.hui`
4
+ only consume the variables and never declare them. */
5
+
6
+ :where(:root) {
7
+ --hui-bg: #ffffff;
8
+ --hui-surface: #f6f7f9;
9
+ --hui-border: #d9dde3;
10
+ --hui-text: #1b1f24;
11
+ --hui-muted: #5b6470;
12
+ --hui-accent: #2856c9;
13
+ --hui-ok: #1d7a4a;
14
+ --hui-ok-bg: #e5f4ec;
15
+ --hui-warn: #8a5a00;
16
+ --hui-warn-bg: #fdf1d8;
17
+ --hui-bad: #b3261e;
18
+ --hui-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
19
+ --hui-font-code: ui-monospace, 'SF Mono', Menlo, monospace;
20
+ --hui-radius: 8px;
21
+ --hui-gap: 12px;
22
+ --hui-series-1: #2856c9;
23
+ --hui-series-2: #b3261e;
24
+ --hui-guide: #5b6470;
25
+ --hui-focus: #2856c9;
26
+ }
27
+
28
+ @media (prefers-color-scheme: dark) {
29
+ :where(:root:not([data-theme='light'])) {
30
+ --hui-bg: #14171b;
31
+ --hui-surface: #1d2126;
32
+ --hui-border: #333a42;
33
+ --hui-text: #e7eaee;
34
+ --hui-muted: #9aa4af;
35
+ --hui-accent: #7aa2ff;
36
+ --hui-ok: #6fd19c;
37
+ --hui-ok-bg: #173325;
38
+ --hui-warn: #f2c266;
39
+ --hui-warn-bg: #3a2d10;
40
+ --hui-bad: #ff8a80;
41
+ --hui-series-1: #5b8def;
42
+ --hui-series-2: #e5534b;
43
+ --hui-guide: #9aa4af;
44
+ --hui-focus: #7aa2ff;
45
+ }
46
+ }
47
+ :where(:root[data-theme='dark']) {
48
+ --hui-bg: #14171b;
49
+ --hui-surface: #1d2126;
50
+ --hui-border: #333a42;
51
+ --hui-text: #e7eaee;
52
+ --hui-muted: #9aa4af;
53
+ --hui-accent: #7aa2ff;
54
+ --hui-ok: #6fd19c;
55
+ --hui-ok-bg: #173325;
56
+ --hui-warn: #f2c266;
57
+ --hui-warn-bg: #3a2d10;
58
+ --hui-bad: #ff8a80;
59
+ --hui-series-1: #5b8def;
60
+ --hui-series-2: #e5534b;
61
+ --hui-guide: #9aa4af;
62
+ --hui-focus: #7aa2ff;
63
+ }
64
+
65
+ .hui {
66
+ overflow-wrap: anywhere;
67
+ font-family: var(--hui-font);
68
+ color: var(--hui-text);
69
+ background: var(--hui-bg);
70
+ display: grid;
71
+ gap: var(--hui-gap);
72
+ min-width: 0;
73
+ }
74
+ .hui code {
75
+ font-family: var(--hui-font-code);
76
+ font-size: 0.9em;
77
+ overflow-wrap: anywhere;
78
+ }
79
+ .hui-row {
80
+ display: flex;
81
+ flex-wrap: wrap;
82
+ align-items: center;
83
+ gap: 8px;
84
+ }
85
+ .hui-title {
86
+ font-size: 1.25rem;
87
+ margin: 0;
88
+ }
89
+ .hui-lead {
90
+ font-size: 1.05rem;
91
+ margin: 0;
92
+ }
93
+ .hui-footer {
94
+ font-size: 0.85rem;
95
+ }
96
+ .hui-subtitle {
97
+ font-size: 1rem;
98
+ margin: 0 0 8px;
99
+ }
100
+ .hui-panel {
101
+ background: var(--hui-surface);
102
+ border: 1px solid var(--hui-border);
103
+ border-radius: var(--hui-radius);
104
+ padding: var(--hui-gap);
105
+ min-width: 0;
106
+ }
107
+ .hui-list {
108
+ list-style: none;
109
+ margin: 0;
110
+ padding: 0;
111
+ display: grid;
112
+ gap: 8px;
113
+ }
114
+ .hui-item {
115
+ min-width: 0;
116
+ }
117
+ .hui-secondary {
118
+ margin-top: 8px;
119
+ }
120
+ .hui-muted {
121
+ color: var(--hui-muted);
122
+ margin: 0;
123
+ }
124
+ .hui-badge {
125
+ display: inline-block;
126
+ border: 1px solid var(--hui-border);
127
+ border-radius: 999px;
128
+ padding: 0 8px;
129
+ font-size: 0.8rem;
130
+ line-height: 1.6;
131
+ }
132
+ .hui-ok {
133
+ color: var(--hui-ok);
134
+ background: var(--hui-ok-bg);
135
+ }
136
+ .hui-warn {
137
+ color: var(--hui-warn);
138
+ background: var(--hui-warn-bg);
139
+ }
140
+ .hui-bad {
141
+ color: var(--hui-bad);
142
+ }
143
+ .hui-link {
144
+ font: inherit;
145
+ color: var(--hui-accent);
146
+ background: none;
147
+ border: 0;
148
+ padding: 0;
149
+ cursor: pointer;
150
+ text-decoration: underline;
151
+ }
152
+ .hui-grid {
153
+ display: grid;
154
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
155
+ gap: var(--hui-gap);
156
+ margin: 0;
157
+ }
158
+ .hui-grid dt {
159
+ color: var(--hui-muted);
160
+ font-size: 0.85rem;
161
+ }
162
+ .hui-grid dd {
163
+ margin: 0;
164
+ font-weight: 600;
165
+ }
166
+
167
+ /* S2 screens */
168
+ .hui :focus-visible {
169
+ outline: 2px solid var(--hui-focus);
170
+ outline-offset: 2px;
171
+ }
172
+ .hui-heading {
173
+ display: flex;
174
+ flex-wrap: wrap;
175
+ align-items: baseline;
176
+ gap: 4px 12px;
177
+ margin: 0 0 8px;
178
+ }
179
+ .hui-heading .hui-subtitle,
180
+ .hui-heading .hui-title {
181
+ margin: 0;
182
+ }
183
+ .hui-minor {
184
+ font-size: 0.95rem;
185
+ margin: 12px 0 6px;
186
+ }
187
+ .hui-term {
188
+ font-size: 0.85rem;
189
+ color: var(--hui-muted);
190
+ min-width: 0;
191
+ }
192
+ .hui-term summary {
193
+ cursor: pointer;
194
+ text-decoration: underline dotted;
195
+ }
196
+ .hui-term[open] {
197
+ flex-basis: 100%;
198
+ }
199
+ .hui-term p {
200
+ margin: 4px 0 0;
201
+ color: var(--hui-text);
202
+ }
203
+ .hui-terms {
204
+ display: flex;
205
+ flex-wrap: wrap;
206
+ gap: 8px 16px;
207
+ }
208
+ .hui-sr {
209
+ position: absolute;
210
+ width: 1px;
211
+ height: 1px;
212
+ padding: 0;
213
+ margin: -1px;
214
+ overflow: hidden;
215
+ clip: rect(0 0 0 0);
216
+ white-space: nowrap;
217
+ border: 0;
218
+ }
219
+ .hui-nested {
220
+ margin: 4px 0 0 12px;
221
+ gap: 4px;
222
+ }
223
+ .hui-who {
224
+ font-weight: 600;
225
+ }
226
+ .hui-code {
227
+ font-size: 0.8em;
228
+ }
229
+ .hui-warn-text {
230
+ color: var(--hui-warn);
231
+ }
232
+ .hui-plan {
233
+ list-style: none;
234
+ margin: 0;
235
+ padding: 0;
236
+ display: flex;
237
+ flex-wrap: wrap;
238
+ gap: 8px;
239
+ }
240
+ .hui-plan-step {
241
+ border: 1px solid var(--hui-border);
242
+ border-radius: var(--hui-radius);
243
+ padding: 4px 8px;
244
+ min-width: 0;
245
+ }
246
+ .hui-current {
247
+ border-color: var(--hui-accent);
248
+ border-width: 2px;
249
+ }
250
+ .hui-steps {
251
+ margin: 0;
252
+ padding-left: 1.4em;
253
+ display: grid;
254
+ gap: 4px;
255
+ }
256
+ @media (min-width: 640px) {
257
+ .hui-steps {
258
+ display: flex;
259
+ flex-wrap: wrap;
260
+ gap: 4px 24px;
261
+ }
262
+ }
263
+ .hui-facts {
264
+ list-style: none;
265
+ margin: 8px 0;
266
+ padding: 0;
267
+ display: flex;
268
+ flex-wrap: wrap;
269
+ gap: 4px 16px;
270
+ }
271
+ .hui-card {
272
+ display: grid;
273
+ gap: 4px;
274
+ }
275
+ .hui-findings summary {
276
+ cursor: pointer;
277
+ font-weight: 600;
278
+ margin: 4px 0;
279
+ }
280
+ .hui-escalation {
281
+ margin: 4px 0 0;
282
+ color: var(--hui-warn);
283
+ }
284
+ .hui-split {
285
+ display: grid;
286
+ gap: var(--hui-gap);
287
+ }
288
+ @media (min-width: 640px) {
289
+ .hui-split {
290
+ grid-template-columns: 1fr 1fr;
291
+ }
292
+ }
293
+ .hui-defs {
294
+ margin: 0;
295
+ display: grid;
296
+ gap: 6px;
297
+ }
298
+ .hui-def {
299
+ display: grid;
300
+ gap: 2px 12px;
301
+ }
302
+ @media (min-width: 640px) {
303
+ .hui-def {
304
+ grid-template-columns: minmax(200px, 1fr) 2fr;
305
+ }
306
+ }
307
+ .hui-def dt {
308
+ color: var(--hui-muted);
309
+ }
310
+ .hui-def dd {
311
+ margin: 0;
312
+ min-width: 0;
313
+ overflow-wrap: anywhere;
314
+ }
315
+ .hui-default {
316
+ margin-left: 8px;
317
+ color: var(--hui-muted);
318
+ }
319
+ .hui-table {
320
+ width: 100%;
321
+ border-collapse: collapse;
322
+ font-size: 0.9rem;
323
+ }
324
+ .hui-table th,
325
+ .hui-table td {
326
+ text-align: left;
327
+ padding: 6px 8px;
328
+ border-bottom: 1px solid var(--hui-border);
329
+ overflow-wrap: anywhere;
330
+ }
331
+ @media (max-width: 639px) {
332
+ .hui-table thead {
333
+ position: absolute;
334
+ width: 1px;
335
+ height: 1px;
336
+ overflow: hidden;
337
+ clip: rect(0 0 0 0);
338
+ }
339
+ .hui-table,
340
+ .hui-table tbody,
341
+ .hui-table tr,
342
+ .hui-table td {
343
+ display: block;
344
+ }
345
+ .hui-table tr {
346
+ border: 1px solid var(--hui-border);
347
+ border-radius: var(--hui-radius);
348
+ margin-bottom: 8px;
349
+ padding: 4px 8px;
350
+ }
351
+ .hui-table td {
352
+ border: 0;
353
+ padding: 2px 0;
354
+ }
355
+ .hui-table td::before {
356
+ content: attr(data-label) ': ';
357
+ color: var(--hui-muted);
358
+ }
359
+ }
360
+ .hui-filter {
361
+ margin-bottom: 8px;
362
+ }
363
+ .hui-chip {
364
+ border: 1px solid var(--hui-border);
365
+ border-radius: 999px;
366
+ padding: 2px 10px;
367
+ color: var(--hui-accent);
368
+ text-decoration: none;
369
+ font-size: 0.85rem;
370
+ }
371
+ .hui-chip-on {
372
+ background: var(--hui-accent);
373
+ color: var(--hui-bg);
374
+ }
375
+ .hui-charts {
376
+ display: grid;
377
+ gap: var(--hui-gap);
378
+ }
379
+ @media (min-width: 1024px) {
380
+ .hui-charts {
381
+ grid-template-columns: 1fr 1fr;
382
+ }
383
+ }
384
+ .hui-chart {
385
+ margin: 0;
386
+ min-width: 0;
387
+ }
388
+ .hui-chart-summary {
389
+ margin: 0 0 8px;
390
+ }
391
+ .hui-svg {
392
+ display: block;
393
+ width: 100%;
394
+ height: 160px;
395
+ }
396
+ @media (max-width: 639px) {
397
+ .hui-svg {
398
+ height: 120px;
399
+ }
400
+ }
401
+ .hui-axis {
402
+ stroke: var(--hui-border);
403
+ stroke-width: 1px;
404
+ }
405
+ .hui-guide {
406
+ stroke: var(--hui-guide);
407
+ stroke-width: 1.5px;
408
+ stroke-dasharray: 6 4;
409
+ }
410
+ .hui-bar.hui-s1 {
411
+ fill: var(--hui-series-1);
412
+ }
413
+ .hui-bar.hui-s2 {
414
+ fill: var(--hui-series-2);
415
+ }
416
+ .hui-line {
417
+ stroke-width: 2px;
418
+ }
419
+ .hui-line.hui-s1 {
420
+ stroke: var(--hui-series-1);
421
+ }
422
+ .hui-dashed {
423
+ stroke-dasharray: 6 4;
424
+ }
425
+ .hui-axis-labels {
426
+ display: flex;
427
+ justify-content: space-between;
428
+ font-size: 0.8rem;
429
+ color: var(--hui-muted);
430
+ margin-top: 4px;
431
+ }
432
+ .hui-legend {
433
+ display: flex;
434
+ flex-wrap: wrap;
435
+ gap: 4px 16px;
436
+ font-size: 0.85rem;
437
+ margin-bottom: 4px;
438
+ }
439
+ .hui-key {
440
+ display: inline-flex;
441
+ align-items: center;
442
+ gap: 6px;
443
+ }
444
+ .hui-swatch {
445
+ display: inline-block;
446
+ width: 14px;
447
+ height: 10px;
448
+ border-radius: 2px;
449
+ }
450
+ .hui-swatch.hui-s1 {
451
+ background: var(--hui-series-1);
452
+ }
453
+ .hui-swatch.hui-s2 {
454
+ background: var(--hui-series-2);
455
+ }
456
+ .hui-swatch-dashed {
457
+ height: 0;
458
+ border-top: 2px dashed var(--hui-guide);
459
+ background: none !important;
460
+ }
461
+ .hui-swatch.hui-s1.hui-swatch-dashed {
462
+ border-top-color: var(--hui-series-1);
463
+ }
464
+ @media (prefers-reduced-motion: reduce) {
465
+ .hui *,
466
+ .hui *::before,
467
+ .hui *::after {
468
+ animation: none !important;
469
+ transition: none !important;
470
+ scroll-behavior: auto !important;
471
+ }
472
+ }
473
+
474
+ .hui-header > *,
475
+ .hui-row > * {
476
+ min-width: 0;
477
+ max-width: 100%;
478
+ }
479
+ .hui-badge {
480
+ max-width: 100%;
481
+ }
482
+ .app-detail {
483
+ display: block;
484
+ font-size: 0.85rem;
485
+ }