hermes-pilot 0.0.0-stage → 0.2.0

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 (74) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja.md +390 -0
  3. package/README.md +398 -2
  4. package/__init__.py +15 -0
  5. package/apps/bridge/src/api-errors.js +165 -0
  6. package/apps/bridge/src/architect.js +1298 -0
  7. package/apps/bridge/src/auth.js +202 -0
  8. package/apps/bridge/src/capabilities.js +256 -0
  9. package/apps/bridge/src/capture.js +145 -0
  10. package/apps/bridge/src/chat-profile.js +95 -0
  11. package/apps/bridge/src/config.js +73 -0
  12. package/apps/bridge/src/discord.js +89 -0
  13. package/apps/bridge/src/gitinfo.js +211 -0
  14. package/apps/bridge/src/hermes.js +97 -0
  15. package/apps/bridge/src/inbox.js +347 -0
  16. package/apps/bridge/src/kanban.js +361 -0
  17. package/apps/bridge/src/lang.js +60 -0
  18. package/apps/bridge/src/live.js +285 -0
  19. package/apps/bridge/src/memos.js +150 -0
  20. package/apps/bridge/src/ops.js +201 -0
  21. package/apps/bridge/src/pair-codes.js +125 -0
  22. package/apps/bridge/src/pipeline-optimizer.js +358 -0
  23. package/apps/bridge/src/pipeline-watcher.js +1018 -0
  24. package/apps/bridge/src/qr.js +808 -0
  25. package/apps/bridge/src/repos.js +544 -0
  26. package/apps/bridge/src/review-watcher.js +271 -0
  27. package/apps/bridge/src/review.js +1749 -0
  28. package/apps/bridge/src/search.js +162 -0
  29. package/apps/bridge/src/server.js +1738 -0
  30. package/apps/bridge/src/snippets.js +373 -0
  31. package/apps/bridge/src/specs.js +734 -0
  32. package/apps/bridge/src/tail.js +28 -0
  33. package/apps/bridge/src/telemetry.js +667 -0
  34. package/apps/bridge/src/term-snippets.js +228 -0
  35. package/apps/bridge/src/transcript.js +231 -0
  36. package/apps/bridge/src/usage.js +294 -0
  37. package/apps/bridge/src/workerFeed.js +72 -0
  38. package/apps/dashboard/index.js +2014 -0
  39. package/apps/dashboard/manifest.json +14 -0
  40. package/apps/dashboard/pilot_dashboard.py +1466 -0
  41. package/apps/dashboard/plugin_api.py +237 -0
  42. package/apps/dashboard/plugin_init.py +15 -0
  43. package/apps/dashboard/style.css +928 -0
  44. package/apps/web/dist/assets/TermPane-DYP7pi_n.css +32 -0
  45. package/apps/web/dist/assets/TermPane-U500JD2P.js +12 -0
  46. package/apps/web/dist/assets/index-6iFDsB0G.css +1 -0
  47. package/apps/web/dist/assets/index-X4Bi2FWB.js +94 -0
  48. package/apps/web/dist/favicon.ico +0 -0
  49. package/apps/web/dist/icon-180-v6.png +0 -0
  50. package/apps/web/dist/icon-192-v6.png +0 -0
  51. package/apps/web/dist/icon-512-v6.png +0 -0
  52. package/apps/web/dist/icon-maskable-192-v6.png +0 -0
  53. package/apps/web/dist/icon-maskable-512-v6.png +0 -0
  54. package/apps/web/dist/icon-v6.svg +15 -0
  55. package/apps/web/dist/index.html +21 -0
  56. package/apps/web/dist/manifest.webmanifest +49 -0
  57. package/apps/web/dist/sw.js +69 -0
  58. package/bin/hermes-pilot.mjs +964 -0
  59. package/dashboard/dist/index.js +2014 -0
  60. package/dashboard/dist/style.css +928 -0
  61. package/dashboard/manifest.json +14 -0
  62. package/dashboard/pilot_dashboard.py +1466 -0
  63. package/dashboard/plugin_api.py +237 -0
  64. package/package.json +75 -4
  65. package/plugin.json +70 -0
  66. package/plugin.yaml +4 -0
  67. package/scripts/deploy.mjs +58 -0
  68. package/scripts/migrate-to-hermes-pilot.mjs +472 -0
  69. package/scripts/postinstall.mjs +32 -0
  70. package/scripts/sync-dashboard.mjs +98 -0
  71. package/skills/annotation/SKILL.md +103 -0
  72. package/skills/quick-review/SKILL.md +170 -0
  73. package/skills/quick-review/assets/sheet-template.html +175 -0
  74. package/skills/spec-architect/SKILL.md +175 -0
@@ -0,0 +1,928 @@
1
+ /* Hermes Pilot — dashboard tab styles.
2
+ *
3
+ * Scoped under .hp-* and built only from the host's --color-* tokens, so the tab
4
+ * follows the active theme instead of hard-coding a palette. Fallbacks are the
5
+ * dark-teal pair from the host so a missing token still looks intentional.
6
+ *
7
+ * The pairing QR is deliberately boring: pure white background, no radius, no
8
+ * shadow, pixelated scaling. Anything that softens the module edges costs a
9
+ * camera scan.
10
+ */
11
+
12
+ .hp-root {
13
+ --hp-surface: var(--color-card, #10201f);
14
+ --hp-surface-2: var(--color-popover, #0c1a19);
15
+ --hp-border: var(--color-border, rgba(255, 255, 255, 0.1));
16
+ --hp-text: var(--color-card-foreground, #e6f2f0);
17
+ --hp-muted: var(--color-muted-foreground, #8aa5a1);
18
+ --hp-primary: var(--color-primary, #14b8a6);
19
+ --hp-warn: #f59e0b;
20
+ --hp-bad: #f43f5e;
21
+ --hp-ok: #22c55e;
22
+ --hp-radius: var(--radius, 12px);
23
+
24
+ display: flex;
25
+ flex-direction: column;
26
+ gap: 16px;
27
+ padding: 20px 24px 40px;
28
+ color: var(--hp-text);
29
+ min-height: 100%;
30
+ }
31
+
32
+ /* ---------------------------------------------------------------- header */
33
+
34
+ .hp-header {
35
+ display: flex;
36
+ align-items: flex-end;
37
+ justify-content: space-between;
38
+ gap: 16px;
39
+ flex-wrap: wrap;
40
+ }
41
+
42
+ .hp-heading h1 {
43
+ margin: 0;
44
+ font-size: 22px;
45
+ line-height: 1.25;
46
+ }
47
+
48
+ .hp-heading p {
49
+ margin: 4px 0 0;
50
+ color: var(--hp-muted);
51
+ font-size: 13px;
52
+ max-width: 62ch;
53
+ }
54
+
55
+ /* Language switch + Refresh share the right edge of the header. */
56
+ .hp-head-actions {
57
+ display: flex;
58
+ align-items: center;
59
+ gap: 8px;
60
+ flex-wrap: wrap;
61
+ }
62
+
63
+ .hp-lang {
64
+ display: inline-flex;
65
+ border: 1px solid var(--hp-border);
66
+ border-radius: 999px;
67
+ overflow: hidden;
68
+ background: var(--hp-surface-2);
69
+ flex: 0 0 auto;
70
+ }
71
+
72
+ .hp-lang-btn {
73
+ appearance: none;
74
+ border: 0;
75
+ background: transparent;
76
+ color: var(--hp-muted);
77
+ font-family: inherit;
78
+ font-size: 12px;
79
+ font-weight: 600;
80
+ line-height: 1.2;
81
+ padding: 7px 12px;
82
+ cursor: pointer;
83
+ white-space: nowrap;
84
+ }
85
+
86
+ .hp-lang-btn + .hp-lang-btn {
87
+ border-left: 1px solid var(--hp-border);
88
+ }
89
+
90
+ .hp-lang-btn:hover {
91
+ color: var(--hp-text);
92
+ }
93
+
94
+ .hp-lang-btn:focus-visible {
95
+ outline: 2px solid var(--hp-primary);
96
+ outline-offset: -2px;
97
+ }
98
+
99
+ .hp-lang-active,
100
+ .hp-lang-active:hover {
101
+ background: var(--hp-primary);
102
+ color: #04231f;
103
+ }
104
+
105
+ /* --------------------------------------------------------- section jumps */
106
+
107
+ .hp-nav {
108
+ display: flex;
109
+ gap: 6px;
110
+ flex-wrap: wrap;
111
+ }
112
+
113
+ .hp-nav-chip {
114
+ appearance: none;
115
+ border: 1px solid var(--hp-border);
116
+ border-radius: 999px;
117
+ background: var(--hp-surface-2);
118
+ color: var(--hp-text);
119
+ font-family: inherit;
120
+ font-size: 11.5px;
121
+ line-height: 1.3;
122
+ padding: 5px 11px;
123
+ cursor: pointer;
124
+ white-space: nowrap;
125
+ max-width: 100%;
126
+ overflow: hidden;
127
+ text-overflow: ellipsis;
128
+ }
129
+
130
+ .hp-nav-chip:hover,
131
+ .hp-nav-chip:focus-visible {
132
+ border-color: var(--hp-primary);
133
+ color: var(--hp-primary);
134
+ }
135
+
136
+ /* ----------------------------------------------------------------- chips */
137
+ .hp-chips {
138
+ display: flex;
139
+ gap: 8px;
140
+ flex-wrap: wrap;
141
+ }
142
+
143
+ .hp-chip {
144
+ display: inline-flex;
145
+ align-items: center;
146
+ gap: 8px;
147
+ min-width: 0;
148
+ padding: 7px 12px;
149
+ border: 1px solid var(--hp-border);
150
+ border-radius: 999px;
151
+ background: var(--hp-surface-2);
152
+ font-size: 12px;
153
+ }
154
+
155
+ .hp-chip-label {
156
+ color: var(--hp-muted);
157
+ white-space: nowrap;
158
+ }
159
+
160
+ .hp-chip strong {
161
+ font-weight: 600;
162
+ font-size: 12.5px;
163
+ white-space: nowrap;
164
+ overflow: hidden;
165
+ text-overflow: ellipsis;
166
+ max-width: 22ch;
167
+ }
168
+
169
+ .hp-chip-ok strong {
170
+ color: var(--hp-ok);
171
+ }
172
+
173
+ .hp-chip-bad strong {
174
+ color: var(--hp-bad);
175
+ }
176
+
177
+ .hp-chip-muted strong {
178
+ color: var(--hp-muted);
179
+ }
180
+
181
+ /* ----------------------------------------------------------------- cards */
182
+
183
+ .hp-card {
184
+ border: 1px solid var(--hp-border);
185
+ border-radius: var(--hp-radius);
186
+ background: var(--hp-surface);
187
+ padding: 18px 20px 20px;
188
+ display: flex;
189
+ flex-direction: column;
190
+ gap: 14px;
191
+ min-width: 0;
192
+ /* The jump chips scroll a card under any sticky host header. */
193
+ scroll-margin-top: 12px;
194
+ }
195
+
196
+ .hp-card-head h2 {
197
+ margin: 0;
198
+ font-size: 15px;
199
+ letter-spacing: 0.01em;
200
+ }
201
+
202
+ .hp-hint {
203
+ margin: 6px 0 0;
204
+ color: var(--hp-muted);
205
+ font-size: 12.5px;
206
+ line-height: 1.5;
207
+ }
208
+
209
+ .hp-error {
210
+ margin: 0;
211
+ color: var(--hp-bad);
212
+ font-size: 12.5px;
213
+ overflow-wrap: anywhere;
214
+ }
215
+
216
+ .hp-note {
217
+ color: var(--hp-muted);
218
+ font-size: 12.5px;
219
+ }
220
+
221
+ /* --------------------------------------------------------------- pairing */
222
+
223
+ .hp-pairing {
224
+ display: grid;
225
+ grid-template-columns: minmax(0, 287px) minmax(0, 1fr);
226
+ gap: 20px;
227
+ align-items: start;
228
+ }
229
+
230
+ /* 1:1, white behind, no radius: the camera needs square black modules. */
231
+ .hp-qr {
232
+ width: 287px;
233
+ height: 287px;
234
+ max-width: 100%;
235
+ display: block;
236
+ background: #ffffff;
237
+ border: 1px solid var(--hp-border);
238
+ border-radius: 0;
239
+ image-rendering: pixelated;
240
+ }
241
+
242
+ .hp-pairing-side {
243
+ display: flex;
244
+ flex-direction: column;
245
+ gap: 12px;
246
+ min-width: 0;
247
+ }
248
+
249
+ .hp-steps {
250
+ margin: 0;
251
+ padding-left: 20px;
252
+ display: flex;
253
+ flex-direction: column;
254
+ gap: 6px;
255
+ font-size: 13px;
256
+ line-height: 1.5;
257
+ }
258
+
259
+ .hp-expiry {
260
+ margin: 0;
261
+ font-size: 12.5px;
262
+ color: var(--hp-muted);
263
+ }
264
+
265
+ .hp-expiry-over {
266
+ color: var(--hp-warn);
267
+ }
268
+
269
+ .hp-targets {
270
+ margin: 0;
271
+ padding: 0;
272
+ list-style: none;
273
+ display: flex;
274
+ flex-direction: column;
275
+ gap: 8px;
276
+ }
277
+
278
+ .hp-targets li {
279
+ display: flex;
280
+ align-items: center;
281
+ gap: 8px;
282
+ flex-wrap: wrap;
283
+ font-size: 12.5px;
284
+ min-width: 0;
285
+ }
286
+
287
+ .hp-target-label {
288
+ color: var(--hp-muted);
289
+ white-space: nowrap;
290
+ }
291
+
292
+ .hp-url {
293
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
294
+ font-size: 12px;
295
+ color: var(--hp-text);
296
+ overflow-wrap: anywhere;
297
+ text-decoration: none;
298
+ /* The host styles `code` with a filled background; a URL is long, so a block
299
+ behind it reads as a redacted bar. Keep only the monospace face. */
300
+ background: none;
301
+ padding: 0;
302
+ border: 0;
303
+ border-radius: 0;
304
+ }
305
+
306
+ a.hp-url {
307
+ color: var(--hp-primary);
308
+ text-decoration: underline;
309
+ }
310
+
311
+ /* ----------------------------------------------------------------- form */
312
+
313
+ .hp-form {
314
+ display: flex;
315
+ flex-direction: column;
316
+ gap: 12px;
317
+ }
318
+
319
+ .hp-field {
320
+ display: flex;
321
+ flex-direction: column;
322
+ gap: 5px;
323
+ min-width: 0;
324
+ }
325
+
326
+ .hp-field-label {
327
+ font-size: 12px;
328
+ font-weight: 600;
329
+ letter-spacing: 0.02em;
330
+ color: var(--hp-muted);
331
+ }
332
+
333
+ .hp-field input,
334
+ .hp-field textarea {
335
+ width: 100%;
336
+ box-sizing: border-box;
337
+ padding: 8px 10px;
338
+ border: 1px solid var(--hp-border);
339
+ border-radius: 8px;
340
+ background: var(--hp-surface-2);
341
+ color: var(--hp-text);
342
+ font-size: 13px;
343
+ font-family: inherit;
344
+ line-height: 1.45;
345
+ }
346
+
347
+ .hp-field textarea {
348
+ resize: vertical;
349
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
350
+ font-size: 12.5px;
351
+ }
352
+
353
+ /* The Settings language select reads like the text fields next to it. */
354
+ .hp-field-select {
355
+ width: 100%;
356
+ box-sizing: border-box;
357
+ padding: 8px 10px;
358
+ border: 1px solid var(--hp-border);
359
+ border-radius: 8px;
360
+ background: var(--hp-surface-2);
361
+ color: var(--hp-text);
362
+ font-size: 13px;
363
+ font-family: inherit;
364
+ line-height: 1.45;
365
+ }
366
+
367
+ .hp-field-select:focus {
368
+ outline: 2px solid var(--hp-primary);
369
+ outline-offset: 1px;
370
+ }
371
+
372
+ .hp-field-bad .hp-field-select {
373
+ border-color: var(--hp-bad);
374
+ }
375
+
376
+ .hp-field input:focus,
377
+ .hp-field textarea:focus {
378
+ outline: 2px solid var(--hp-primary);
379
+ outline-offset: 1px;
380
+ }
381
+
382
+ .hp-field-hint {
383
+ font-size: 11.5px;
384
+ color: var(--hp-muted);
385
+ }
386
+
387
+ .hp-field-bad input,
388
+ .hp-field-bad textarea {
389
+ border-color: var(--hp-bad);
390
+ }
391
+
392
+ .hp-field-error {
393
+ font-size: 11.5px;
394
+ color: var(--hp-bad);
395
+ }
396
+
397
+ /* --------------------------------------------------------------- actions */
398
+
399
+ .hp-actions {
400
+ display: flex;
401
+ align-items: center;
402
+ gap: 8px;
403
+ flex-wrap: wrap;
404
+ }
405
+
406
+ .hp-btn {
407
+ appearance: none;
408
+ border: 1px solid var(--hp-border);
409
+ border-radius: 8px;
410
+ background: var(--hp-surface-2);
411
+ color: var(--hp-text);
412
+ font-size: 12.5px;
413
+ font-family: inherit;
414
+ padding: 7px 14px;
415
+ cursor: pointer;
416
+ white-space: nowrap;
417
+ }
418
+
419
+ .hp-btn:hover:not(:disabled) {
420
+ border-color: var(--hp-primary);
421
+ }
422
+
423
+ .hp-btn:disabled {
424
+ opacity: 0.55;
425
+ cursor: default;
426
+ }
427
+
428
+ .hp-btn-sm {
429
+ padding: 4px 10px;
430
+ font-size: 11.5px;
431
+ }
432
+
433
+ .hp-btn-primary {
434
+ background: var(--hp-primary);
435
+ border-color: var(--hp-primary);
436
+ color: #04201d;
437
+ font-weight: 600;
438
+ }
439
+
440
+ .hp-btn-warn {
441
+ border-color: var(--hp-warn);
442
+ color: var(--hp-warn);
443
+ }
444
+
445
+ .hp-out {
446
+ border: 1px solid var(--hp-border);
447
+ border-radius: 8px;
448
+ background: var(--hp-surface-2);
449
+ padding: 10px 12px;
450
+ font-size: 12px;
451
+ }
452
+
453
+ .hp-out summary {
454
+ cursor: pointer;
455
+ color: var(--hp-muted);
456
+ }
457
+
458
+ .hp-out pre {
459
+ margin: 8px 0 0;
460
+ max-height: 220px;
461
+ overflow: auto;
462
+ white-space: pre-wrap;
463
+ overflow-wrap: anywhere;
464
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
465
+ font-size: 11.5px;
466
+ line-height: 1.45;
467
+ }
468
+
469
+ /* ----------------------------------------------------------------- links */
470
+
471
+ .hp-links {
472
+ margin: 0;
473
+ padding: 0;
474
+ list-style: none;
475
+ display: flex;
476
+ flex-direction: column;
477
+ gap: 8px;
478
+ }
479
+
480
+ .hp-links li {
481
+ display: flex;
482
+ align-items: baseline;
483
+ gap: 10px;
484
+ flex-wrap: wrap;
485
+ min-width: 0;
486
+ }
487
+
488
+ /* --------------------------------------------------------- repositories */
489
+
490
+ .hp-input {
491
+ box-sizing: border-box;
492
+ padding: 7px 10px;
493
+ border: 1px solid var(--hp-border);
494
+ border-radius: 8px;
495
+ background: var(--hp-surface-2);
496
+ color: var(--hp-text);
497
+ font-size: 12.5px;
498
+ font-family: inherit;
499
+ min-width: 0;
500
+ }
501
+
502
+ .hp-input:focus {
503
+ outline: 2px solid var(--hp-primary);
504
+ outline-offset: 1px;
505
+ }
506
+
507
+ .hp-input-sm {
508
+ padding: 5px 8px;
509
+ font-size: 12px;
510
+ }
511
+
512
+ .hp-textarea {
513
+ width: 100%;
514
+ resize: vertical;
515
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
516
+ font-size: 12px;
517
+ line-height: 1.45;
518
+ }
519
+
520
+ .hp-add-row .hp-input {
521
+ flex: 1 1 180px;
522
+ }
523
+
524
+ .hp-scanhint {
525
+ overflow-wrap: anywhere;
526
+ }
527
+
528
+ .hp-scanhint-value {
529
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
530
+ color: var(--hp-text);
531
+ }
532
+
533
+ .hp-repos {
534
+ margin: 0;
535
+ padding: 0;
536
+ list-style: none;
537
+ display: flex;
538
+ flex-direction: column;
539
+ gap: 8px;
540
+ }
541
+
542
+ .hp-repo {
543
+ display: flex;
544
+ align-items: flex-start;
545
+ justify-content: space-between;
546
+ gap: 10px;
547
+ flex-wrap: wrap;
548
+ border: 1px solid var(--hp-border);
549
+ border-radius: 8px;
550
+ background: var(--hp-surface-2);
551
+ padding: 8px 10px;
552
+ min-width: 0;
553
+ }
554
+
555
+ .hp-repo-main {
556
+ display: flex;
557
+ flex-direction: column;
558
+ gap: 3px;
559
+ min-width: 0;
560
+ flex: 1 1 180px;
561
+ }
562
+
563
+ .hp-repo-label {
564
+ font-size: 13px;
565
+ }
566
+
567
+ .hp-repo-path {
568
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
569
+ font-size: 11px;
570
+ color: var(--hp-muted);
571
+ overflow-wrap: anywhere;
572
+ background: none;
573
+ padding: 0;
574
+ border: 0;
575
+ border-radius: 0;
576
+ }
577
+
578
+ .hp-repo-actions {
579
+ display: flex;
580
+ align-items: center;
581
+ gap: 6px;
582
+ flex-wrap: wrap;
583
+ }
584
+
585
+ .hp-badge {
586
+ align-self: flex-start;
587
+ font-size: 10.5px;
588
+ padding: 1px 7px;
589
+ border: 1px solid var(--hp-border);
590
+ border-radius: 999px;
591
+ color: var(--hp-muted);
592
+ }
593
+
594
+ .hp-badge-ok {
595
+ color: var(--hp-ok);
596
+ border-color: var(--hp-ok);
597
+ }
598
+
599
+ .hp-sub {
600
+ display: flex;
601
+ flex-direction: column;
602
+ gap: 8px;
603
+ }
604
+
605
+ .hp-sub h3 {
606
+ margin: 0;
607
+ font-size: 12.5px;
608
+ font-weight: 600;
609
+ letter-spacing: 0.02em;
610
+ color: var(--hp-muted);
611
+ }
612
+
613
+ /* A single action inside a column should not stretch into a full-width bar. */
614
+ .hp-sub > .hp-btn {
615
+ align-self: flex-start;
616
+ }
617
+
618
+ /* ------------------------------------------------------------ tabs/chips */
619
+
620
+ .hp-tabs {
621
+ display: flex;
622
+ gap: 6px;
623
+ flex-wrap: wrap;
624
+ }
625
+
626
+ .hp-tab {
627
+ appearance: none;
628
+ border: 1px solid var(--hp-border);
629
+ border-radius: 999px;
630
+ background: transparent;
631
+ color: var(--hp-muted);
632
+ font-family: inherit;
633
+ font-size: 12px;
634
+ padding: 5px 11px;
635
+ cursor: pointer;
636
+ white-space: nowrap;
637
+ }
638
+
639
+ .hp-tab-active {
640
+ background: var(--hp-primary);
641
+ border-color: var(--hp-primary);
642
+ color: #04201d;
643
+ font-weight: 600;
644
+ }
645
+
646
+ .hp-select {
647
+ border: 1px solid var(--hp-border);
648
+ border-radius: 8px;
649
+ background: var(--hp-surface-2);
650
+ color: var(--hp-text);
651
+ font-family: inherit;
652
+ font-size: 12px;
653
+ padding: 5px 8px;
654
+ }
655
+
656
+ /* -------------------------------------------------------------- snippets */
657
+
658
+ .hp-snippets {
659
+ margin: 0;
660
+ padding: 0;
661
+ list-style: none;
662
+ display: flex;
663
+ flex-direction: column;
664
+ gap: 8px;
665
+ }
666
+
667
+ .hp-snippet {
668
+ display: flex;
669
+ flex-direction: column;
670
+ gap: 5px;
671
+ border: 1px solid var(--hp-border);
672
+ border-radius: 8px;
673
+ background: var(--hp-surface-2);
674
+ padding: 8px 10px;
675
+ min-width: 0;
676
+ }
677
+
678
+ .hp-snippet-head {
679
+ display: flex;
680
+ align-items: center;
681
+ gap: 8px;
682
+ flex-wrap: wrap;
683
+ min-width: 0;
684
+ }
685
+
686
+ .hp-snippet-id {
687
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
688
+ font-size: 10.5px;
689
+ color: var(--hp-muted);
690
+ background: none;
691
+ padding: 0;
692
+ border: 0;
693
+ }
694
+
695
+ .hp-snippet-toggles {
696
+ display: flex;
697
+ gap: 6px;
698
+ flex-wrap: wrap;
699
+ margin-left: auto;
700
+ }
701
+
702
+ .hp-snippet-text {
703
+ margin: 0;
704
+ font-size: 12px;
705
+ line-height: 1.45;
706
+ color: var(--hp-muted);
707
+ overflow-wrap: anywhere;
708
+ }
709
+
710
+ .hp-toggle {
711
+ display: inline-flex;
712
+ align-items: center;
713
+ gap: 5px;
714
+ font-size: 11.5px;
715
+ color: var(--hp-muted);
716
+ border: 1px solid var(--hp-border);
717
+ border-radius: 999px;
718
+ padding: 2px 9px;
719
+ cursor: pointer;
720
+ white-space: nowrap;
721
+ }
722
+
723
+ .hp-toggle input {
724
+ margin: 0;
725
+ accent-color: var(--hp-primary);
726
+ }
727
+
728
+ .hp-toggle-on {
729
+ color: var(--hp-primary);
730
+ border-color: var(--hp-primary);
731
+ }
732
+
733
+ .hp-custom {
734
+ display: flex;
735
+ flex-direction: column;
736
+ gap: 6px;
737
+ border: 1px solid var(--hp-border);
738
+ border-radius: 8px;
739
+ padding: 8px 10px;
740
+ min-width: 0;
741
+ }
742
+
743
+ .hp-custom-row {
744
+ display: flex;
745
+ align-items: center;
746
+ gap: 6px;
747
+ flex-wrap: wrap;
748
+ }
749
+
750
+ .hp-custom-row .hp-input-sm {
751
+ flex: 1 1 130px;
752
+ }
753
+
754
+ /* ------------------------------------------------------------------ logs */
755
+
756
+ .hp-log-meta {
757
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
758
+ overflow-wrap: anywhere;
759
+ }
760
+
761
+ .hp-log {
762
+ margin: 0;
763
+ max-height: 320px;
764
+ overflow: auto;
765
+ white-space: pre-wrap;
766
+ overflow-wrap: anywhere;
767
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
768
+ font-size: 11px;
769
+ line-height: 1.45;
770
+ background: var(--hp-surface-2);
771
+ border: 1px solid var(--hp-border);
772
+ border-radius: 8px;
773
+ padding: 10px 12px;
774
+ }
775
+
776
+ /* --------------------------------------------------------------- audit list */
777
+
778
+ .hp-audit-toggle {
779
+ display: flex;
780
+ gap: 6px;
781
+ flex-wrap: wrap;
782
+ }
783
+
784
+ .hp-audit {
785
+ list-style: none;
786
+ margin: 0;
787
+ padding: 0;
788
+ display: flex;
789
+ flex-direction: column;
790
+ gap: 6px;
791
+ min-width: 0;
792
+ }
793
+
794
+ .hp-audit-row {
795
+ border: 1px solid var(--hp-border);
796
+ border-left: 3px solid var(--hp-border);
797
+ border-radius: 8px;
798
+ background: var(--hp-surface-2);
799
+ padding: 8px 10px;
800
+ display: flex;
801
+ flex-direction: column;
802
+ gap: 3px;
803
+ min-width: 0;
804
+ }
805
+
806
+ .hp-audit-ok {
807
+ border-left-color: var(--hp-ok);
808
+ }
809
+
810
+ .hp-audit-bad {
811
+ border-left-color: var(--hp-bad);
812
+ }
813
+
814
+ .hp-audit-head {
815
+ display: flex;
816
+ align-items: baseline;
817
+ justify-content: space-between;
818
+ gap: 8px;
819
+ flex-wrap: wrap;
820
+ }
821
+
822
+ .hp-audit-kind {
823
+ font-size: 12px;
824
+ font-weight: 600;
825
+ overflow-wrap: anywhere;
826
+ }
827
+
828
+ .hp-audit-at {
829
+ font-size: 11px;
830
+ color: var(--hp-muted);
831
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
832
+ white-space: nowrap;
833
+ }
834
+
835
+ .hp-audit-detail {
836
+ margin: 0;
837
+ font-size: 11px;
838
+ line-height: 1.45;
839
+ color: var(--hp-muted);
840
+ font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
841
+ overflow-wrap: anywhere;
842
+ }
843
+
844
+ .hp-audit-more {
845
+ align-self: flex-start;
846
+ }
847
+
848
+ /* ------------------------------------------------------------ responsive */
849
+
850
+ /* The dashboard is also opened from a phone: stack the QR above its steps and
851
+ * let chips wrap to one per line instead of scrolling sideways. */
852
+ @media (max-width: 720px) {
853
+ .hp-root {
854
+ padding: 14px 14px 32px;
855
+ }
856
+
857
+ .hp-pairing {
858
+ grid-template-columns: minmax(0, 1fr);
859
+ }
860
+
861
+ .hp-qr {
862
+ width: 100%;
863
+ height: auto;
864
+ aspect-ratio: 1 / 1;
865
+ max-width: 287px;
866
+ margin: 0 auto;
867
+ }
868
+
869
+ .hp-chip strong {
870
+ max-width: 16ch;
871
+ }
872
+
873
+ .hp-card {
874
+ padding: 14px 14px 16px;
875
+ }
876
+ }
877
+
878
+ /* Wide screens have room for two fields per row next to a tall QR; the textarea
879
+ * still spans the full width because directory paths are long. */
880
+ @media (min-width: 721px) {
881
+ .hp-form {
882
+ display: grid;
883
+ grid-template-columns: repeat(2, minmax(0, 1fr));
884
+ gap: 14px 20px;
885
+ }
886
+
887
+ .hp-field-wide {
888
+ grid-column: 1 / -1;
889
+ }
890
+ }
891
+
892
+ /* A lone action button should not stretch across the pairing column. */
893
+ .hp-pairing-side > .hp-btn {
894
+ align-self: flex-start;
895
+ }
896
+
897
+ /* Pipeline & Architect card (SPEC V5 §3.2 / D25): label ↔ value rows. */
898
+ .hp-kv {
899
+ display: flex;
900
+ align-items: baseline;
901
+ justify-content: space-between;
902
+ gap: 12px;
903
+ padding: 6px 0;
904
+ border-bottom: 1px solid var(--hp-border);
905
+ font-size: 13px;
906
+ min-width: 0;
907
+ }
908
+
909
+ .hp-kv > span {
910
+ color: var(--hp-muted);
911
+ min-width: 0;
912
+ overflow-wrap: anywhere;
913
+ }
914
+
915
+ .hp-kv > strong {
916
+ font-variant-numeric: tabular-nums;
917
+ }
918
+
919
+ .hp-list {
920
+ margin: 6px 0 0;
921
+ padding-left: 18px;
922
+ font-size: 12.5px;
923
+ line-height: 1.6;
924
+ }
925
+
926
+ .hp-list > li {
927
+ overflow-wrap: anywhere;
928
+ }