decklight 0.5.0 → 0.6.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.
- package/README.md +4 -1
- package/SPEC.md +78 -12
- package/cli/agents.mjs +45 -0
- package/cli/commit-message.mjs +350 -0
- package/cli/decklight.mjs +7 -0
- package/cli/dev.mjs +35 -13
- package/cli/edit.mjs +139 -11
- package/cli/git.mjs +348 -0
- package/cli/history.mjs +145 -0
- package/cli/init.mjs +162 -2
- package/cli/marketplace.mjs +123 -17
- package/cli/port-conflict.mjs +41 -6
- package/cli/present.mjs +297 -12
- package/cli/restore.mjs +120 -4
- package/cli/serve.mjs +24 -0
- package/cli/skill-content.mjs +9 -0
- package/cli/theme.mjs +78 -11
- package/cli/upstream.mjs +256 -0
- package/dist/decklight.css +290 -2
- package/dist/decklight.js +67 -64
- package/dist/decklight.js.map +4 -4
- package/package.json +1 -1
- package/tools/deck-html.mjs +34 -0
- package/tools/tts-engines.mjs +186 -9
- package/tools/tts-setup.mjs +1 -8
- package/tools/video.mjs +44 -12
- package/tools/voiceover-server.mjs +95 -4
- package/tools/voiceover.mjs +2 -12
package/dist/decklight.css
CHANGED
|
@@ -471,12 +471,185 @@
|
|
|
471
471
|
opacity: 0.75;
|
|
472
472
|
}
|
|
473
473
|
.decklight-restore .rs-when {
|
|
474
|
-
float: right;
|
|
475
474
|
opacity: 0.55;
|
|
476
475
|
font-size: 0.85em;
|
|
477
476
|
padding-left: 0.75em;
|
|
478
477
|
}
|
|
479
478
|
|
|
479
|
+
/* The history door (H) — the same overlay as R, with two additions: a mark on
|
|
480
|
+
commits that exist nowhere but this machine, and the branch's standing under
|
|
481
|
+
the title. */
|
|
482
|
+
.decklight-history .hs-push {
|
|
483
|
+
color: #7fb2ff;
|
|
484
|
+
font-weight: 600;
|
|
485
|
+
margin: 0 6px 0 2px;
|
|
486
|
+
}
|
|
487
|
+
.decklight-restore .hs-remote,
|
|
488
|
+
.decklight-history .hs-remote {
|
|
489
|
+
padding: 6px 12px 8px;
|
|
490
|
+
font-size: .82em;
|
|
491
|
+
opacity: .62;
|
|
492
|
+
font-variant-numeric: tabular-nums;
|
|
493
|
+
border-bottom: 1px solid rgba(128, 128, 128, .18);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/* THE PREVIEW IS THE POINT OF THIS OVERLAY, so the rail is built never to
|
|
497
|
+
fight it. A row used to put four things on one line — hash, subject, badges,
|
|
498
|
+
age — which made the column's MIN-CONTENT width the sum of all four; and a
|
|
499
|
+
flex item's default `min-width: auto` forbids shrinking below that, so
|
|
500
|
+
`flex: 0 0 300px` was a suggestion the content could veto. It did: the pane
|
|
501
|
+
collapsed to 57px the moment the title bar got long.
|
|
502
|
+
|
|
503
|
+
Two lines instead. The subject owns the first, the metadata dims underneath,
|
|
504
|
+
and `min-width: 0` on the column means nothing in here wants to be wide —
|
|
505
|
+
the preview's size stops depending on how somebody worded a commit message. */
|
|
506
|
+
.decklight-history .tp-panel { width: min(1100px, 92vw); }
|
|
507
|
+
/* This bar is a static LABEL here, not the live query the picker and finder
|
|
508
|
+
show in it — so it may wrap. That is what finally makes the rail's width
|
|
509
|
+
independent of it: nowrap made the whole sentence the column's min-content
|
|
510
|
+
width (the 57px collapse), and clipping it to an ellipsis would have hidden
|
|
511
|
+
half the keys instead. Wrapping does neither. */
|
|
512
|
+
.decklight-history .tp-filter {
|
|
513
|
+
white-space: normal;
|
|
514
|
+
text-overflow: clip;
|
|
515
|
+
}
|
|
516
|
+
.decklight-history .tp-side {
|
|
517
|
+
flex: 0 0 30%;
|
|
518
|
+
min-width: 0;
|
|
519
|
+
}
|
|
520
|
+
.decklight-history .tp-row {
|
|
521
|
+
display: block;
|
|
522
|
+
white-space: normal;
|
|
523
|
+
}
|
|
524
|
+
.decklight-history .rs-subject {
|
|
525
|
+
display: -webkit-box;
|
|
526
|
+
-webkit-line-clamp: 2; /* two lines, then ellipsis: rows stay a knowable height */
|
|
527
|
+
line-clamp: 2;
|
|
528
|
+
-webkit-box-orient: vertical;
|
|
529
|
+
overflow: hidden;
|
|
530
|
+
}
|
|
531
|
+
.decklight-history .hs-meta {
|
|
532
|
+
display: flex;
|
|
533
|
+
align-items: baseline;
|
|
534
|
+
gap: 0.5em;
|
|
535
|
+
margin-top: 2px;
|
|
536
|
+
font-size: 0.82em;
|
|
537
|
+
opacity: 0.72;
|
|
538
|
+
}
|
|
539
|
+
/* the age to the far right, so the column reads as a timeline down the edge */
|
|
540
|
+
.decklight-history .hs-meta .rs-when {
|
|
541
|
+
margin-left: auto;
|
|
542
|
+
padding-left: 0.5em;
|
|
543
|
+
font-variant-numeric: tabular-nums;
|
|
544
|
+
}
|
|
545
|
+
/* The preview, shaped like the thing it shows. `aspect-ratio` rather than
|
|
546
|
+
`flex: 1` so a slide is never letterboxed into a portrait sliver — the
|
|
547
|
+
leftover height goes to the list, which can use it. */
|
|
548
|
+
.decklight-history .tp-preview {
|
|
549
|
+
/* the slide, its transport and its caption travel together: with the iframe
|
|
550
|
+
on an aspect ratio the column no longer fills its height, and a block
|
|
551
|
+
pinned to the top of a taller box reads as a rendering accident */
|
|
552
|
+
justify-content: center;
|
|
553
|
+
}
|
|
554
|
+
.decklight-history .tp-preview iframe {
|
|
555
|
+
flex: 0 0 auto;
|
|
556
|
+
aspect-ratio: 16 / 9;
|
|
557
|
+
height: auto;
|
|
558
|
+
}
|
|
559
|
+
/* One line, truncating. It spells out what the row's badges abbreviate, and it
|
|
560
|
+
used to wrap to eight lines when the pane collapsed — a caption that can grow
|
|
561
|
+
vertically is a caption that hides the collapse it is a symptom of. */
|
|
562
|
+
.decklight-history .tp-caption {
|
|
563
|
+
white-space: nowrap;
|
|
564
|
+
overflow: hidden;
|
|
565
|
+
text-overflow: ellipsis;
|
|
566
|
+
}
|
|
567
|
+
.decklight-history .hs-stat {
|
|
568
|
+
display: inline-flex;
|
|
569
|
+
align-items: baseline;
|
|
570
|
+
gap: 0.4em;
|
|
571
|
+
font-size: 0.8em;
|
|
572
|
+
font-variant-numeric: tabular-nums;
|
|
573
|
+
}
|
|
574
|
+
/* The slide count reads as a slide: a small landscape box with a number in it,
|
|
575
|
+
which is a different KIND of fact from the two line counts beside it and
|
|
576
|
+
should not be mistaken for a third diff number. */
|
|
577
|
+
.decklight-history .hs-slides {
|
|
578
|
+
border: 1px solid currentColor;
|
|
579
|
+
border-radius: 2px;
|
|
580
|
+
padding: 0 0.35em;
|
|
581
|
+
opacity: 0.5;
|
|
582
|
+
}
|
|
583
|
+
/* Green added, red removed — the colours every diff has used for forty years.
|
|
584
|
+
Fixed hues rather than theme tokens on purpose: a theme is free to make its
|
|
585
|
+
accent red, and "how much did this commit add" must not change meaning with
|
|
586
|
+
the wallpaper. Both are light enough to sit on the picker's dark panel. */
|
|
587
|
+
.decklight-history .hs-add { color: #4ec98a; }
|
|
588
|
+
.decklight-history .hs-del { color: #f2777a; }
|
|
589
|
+
|
|
590
|
+
/* Preview transport. The previewed version is `?embedded`, so its own chrome
|
|
591
|
+
is off and this row is the only way to walk it. */
|
|
592
|
+
.decklight-history .hs-nav {
|
|
593
|
+
display: flex;
|
|
594
|
+
align-items: center;
|
|
595
|
+
justify-content: center;
|
|
596
|
+
gap: 0.35em;
|
|
597
|
+
padding: 6px 0 2px;
|
|
598
|
+
}
|
|
599
|
+
.decklight-history .hs-btn {
|
|
600
|
+
display: inline-flex;
|
|
601
|
+
align-items: center;
|
|
602
|
+
justify-content: center;
|
|
603
|
+
width: 26px;
|
|
604
|
+
height: 26px;
|
|
605
|
+
padding: 0;
|
|
606
|
+
border: 1px solid rgba(128, 128, 128, .28);
|
|
607
|
+
border-radius: 4px;
|
|
608
|
+
background: transparent;
|
|
609
|
+
color: inherit;
|
|
610
|
+
cursor: pointer;
|
|
611
|
+
}
|
|
612
|
+
.decklight-history .hs-btn:hover:not(:disabled) { background: rgba(128, 128, 128, .18); }
|
|
613
|
+
.decklight-history .hs-btn:disabled { opacity: 0.3; cursor: default; }
|
|
614
|
+
.decklight-history .hs-pos {
|
|
615
|
+
min-width: 4.5em;
|
|
616
|
+
text-align: center;
|
|
617
|
+
font-size: 0.82em;
|
|
618
|
+
font-variant-numeric: tabular-nums;
|
|
619
|
+
opacity: 0.6;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* The confirmation. It sits under the list rather than over it, because the
|
|
623
|
+
row it is asking about must stay visible while you answer. */
|
|
624
|
+
.decklight-history .hs-confirm {
|
|
625
|
+
padding: 10px 12px 12px;
|
|
626
|
+
border-top: 1px solid rgba(128, 128, 128, .28);
|
|
627
|
+
font-size: 0.85em;
|
|
628
|
+
white-space: normal;
|
|
629
|
+
}
|
|
630
|
+
.decklight-history .hs-q-hash { font-family: var(--font-mono, ui-monospace, monospace); }
|
|
631
|
+
.decklight-history .hs-q-sub { opacity: 0.7; }
|
|
632
|
+
.decklight-history .hs-why { opacity: 0.6; margin: 0.35em 0 0.7em; line-height: 1.35; }
|
|
633
|
+
.decklight-history .hs-buttons { display: flex; gap: 0.5em; }
|
|
634
|
+
.decklight-history .hs-buttons button {
|
|
635
|
+
font: inherit;
|
|
636
|
+
padding: 0.35em 0.8em;
|
|
637
|
+
border-radius: 4px;
|
|
638
|
+
border: 1px solid rgba(128, 128, 128, .35);
|
|
639
|
+
background: transparent;
|
|
640
|
+
color: inherit;
|
|
641
|
+
cursor: pointer;
|
|
642
|
+
}
|
|
643
|
+
.decklight-history .hs-buttons button.hs-yes {
|
|
644
|
+
background: #e8eaee;
|
|
645
|
+
border-color: #e8eaee;
|
|
646
|
+
color: #16181d;
|
|
647
|
+
font-weight: 600;
|
|
648
|
+
}
|
|
649
|
+
.decklight-history .hs-buttons button.hs-no:hover { background: rgba(255, 255, 255, .14); }
|
|
650
|
+
.decklight-history .hs-buttons button.hs-yes:hover { background: #fff; border-color: #fff; }
|
|
651
|
+
.decklight-history .hs-keys { opacity: 0.45; font-size: 0.9em; margin-top: 0.6em; }
|
|
652
|
+
|
|
480
653
|
/* ---------- brand logo (SPEC PRESENTING) -------------------------------------------
|
|
481
654
|
Chrome-level mark on every slide. The engine sets data-canvas="dark|light"
|
|
482
655
|
on the root from the applied theme's real background luminance; the
|
|
@@ -767,7 +940,7 @@
|
|
|
767
940
|
padding: 2px 10px;
|
|
768
941
|
}
|
|
769
942
|
.decklight-arrow:hover { color: var(--accent, #6af); }
|
|
770
|
-
/* progress bar (
|
|
943
|
+
/* progress bar (J) — a hairline along the very bottom edge; its width is the
|
|
771
944
|
position in the deck. Below the captions bar (bottom: 7%, z45), the
|
|
772
945
|
character overlay (z44) and the corner chrome, so it covers nothing.
|
|
773
946
|
Track is a translucent neutral (readable on any canvas, like the clock's
|
|
@@ -824,6 +997,106 @@
|
|
|
824
997
|
user-select: none;
|
|
825
998
|
}
|
|
826
999
|
.decklight-clock .clk-elapsed { color: var(--accent, #6af); }
|
|
1000
|
+
/* The element content editor's highlighted layers (author mode). A textarea
|
|
1001
|
+
cannot render markup, so the colour is a <pre> BEHIND a textarea whose own
|
|
1002
|
+
text is transparent.
|
|
1003
|
+
|
|
1004
|
+
EVERY selector here carries `.decklight-narr` — not for tidiness, but because
|
|
1005
|
+
`.decklight-narr .narr-input` (0,2,0) sets this textarea's font, line-height,
|
|
1006
|
+
padding, border and colour, and it OUTRANKS a bare `.edit-code > textarea`
|
|
1007
|
+
(0,1,1). Losing that fight is not cosmetic: the two layers then disagree on
|
|
1008
|
+
line-height and padding, and the caret drifts away from the glyph it is
|
|
1009
|
+
supposed to sit in, further with every line.
|
|
1010
|
+
|
|
1011
|
+
Both layers therefore take every metric from ONE rule below. */
|
|
1012
|
+
.decklight-narr .edit-code {
|
|
1013
|
+
position: relative;
|
|
1014
|
+
display: block;
|
|
1015
|
+
width: 100%;
|
|
1016
|
+
}
|
|
1017
|
+
.decklight-narr .edit-code > pre,
|
|
1018
|
+
.decklight-narr .edit-code > textarea {
|
|
1019
|
+
margin: 0;
|
|
1020
|
+
border: 0;
|
|
1021
|
+
padding: 10px 12px;
|
|
1022
|
+
font: 400 13px/1.55 var(--font-mono, ui-monospace, monospace);
|
|
1023
|
+
letter-spacing: normal;
|
|
1024
|
+
tab-size: 2;
|
|
1025
|
+
white-space: pre-wrap; /* both wrap, or neither does */
|
|
1026
|
+
overflow-wrap: break-word;
|
|
1027
|
+
box-sizing: border-box;
|
|
1028
|
+
min-height: 220px;
|
|
1029
|
+
max-height: 46vh;
|
|
1030
|
+
}
|
|
1031
|
+
.decklight-narr .edit-code > pre {
|
|
1032
|
+
position: absolute;
|
|
1033
|
+
inset: 0;
|
|
1034
|
+
overflow: auto;
|
|
1035
|
+
pointer-events: none; /* the textarea takes every click */
|
|
1036
|
+
background: var(--code-bg, rgba(0, 0, 0, .35));
|
|
1037
|
+
border-radius: 8px;
|
|
1038
|
+
}
|
|
1039
|
+
.decklight-narr .edit-code > textarea {
|
|
1040
|
+
position: relative;
|
|
1041
|
+
display: block;
|
|
1042
|
+
width: 100%;
|
|
1043
|
+
resize: vertical;
|
|
1044
|
+
background: transparent;
|
|
1045
|
+
color: transparent; /* the <pre> paints the glyphs */
|
|
1046
|
+
caret-color: var(--fg, #fff);
|
|
1047
|
+
border-radius: 8px;
|
|
1048
|
+
overflow: auto;
|
|
1049
|
+
}
|
|
1050
|
+
/* The selection has to be visible against transparent text. */
|
|
1051
|
+
.decklight-narr .edit-code > textarea::selection { background: var(--accent, #6af); color: transparent; }
|
|
1052
|
+
.decklight-narr .edit-code > textarea:focus { outline: 2px solid var(--accent, #6af); outline-offset: 1px; }
|
|
1053
|
+
/* Still loading, or refused: there is no highlighted layer to read yet, so the
|
|
1054
|
+
textarea shows its own text rather than an empty-looking box. */
|
|
1055
|
+
.decklight-narr .edit-code > textarea:disabled { color: var(--muted, #9aa); }
|
|
1056
|
+
|
|
1057
|
+
/* "an agent is still working" — author mode only (src/core/editmode.js).
|
|
1058
|
+
BOTTOM CENTRE, which is the one piece of chrome nothing else claims: the
|
|
1059
|
+
logo takes a corner, the clock is top-right, the controls bottom-right and
|
|
1060
|
+
messages top-left, so this can be persistent without ever covering them.
|
|
1061
|
+
Quiet by construction — it reports rather than asks, and nothing about a
|
|
1062
|
+
background job should compete with the slide. */
|
|
1063
|
+
.decklight-agent-chip {
|
|
1064
|
+
position: absolute;
|
|
1065
|
+
left: 50%;
|
|
1066
|
+
bottom: 16px;
|
|
1067
|
+
transform: translateX(-50%);
|
|
1068
|
+
z-index: 42;
|
|
1069
|
+
display: flex;
|
|
1070
|
+
align-items: center;
|
|
1071
|
+
gap: 8px;
|
|
1072
|
+
background: rgba(0, 0, 0, .72);
|
|
1073
|
+
color: #fff;
|
|
1074
|
+
font: 500 14px/1 var(--font-mono, monospace);
|
|
1075
|
+
font-variant-numeric: tabular-nums; /* a ticking clock must not jitter */
|
|
1076
|
+
padding: 7px 13px;
|
|
1077
|
+
border-radius: 999px;
|
|
1078
|
+
border: 1px solid rgba(255, 255, 255, .16);
|
|
1079
|
+
box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
|
|
1080
|
+
pointer-events: none; /* never in the way of a slide click */
|
|
1081
|
+
white-space: nowrap;
|
|
1082
|
+
}
|
|
1083
|
+
.decklight-agent-chip::before {
|
|
1084
|
+
content: '';
|
|
1085
|
+
width: 7px;
|
|
1086
|
+
height: 7px;
|
|
1087
|
+
border-radius: 50%;
|
|
1088
|
+
background: var(--accent, #6af);
|
|
1089
|
+
animation: dl-agent-pulse 1.6s ease-in-out infinite;
|
|
1090
|
+
}
|
|
1091
|
+
@keyframes dl-agent-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
|
|
1092
|
+
/* A pulse is the one thing here that moves. Somebody who asked for less motion
|
|
1093
|
+
still gets the chip and the clock — the information, without the animation. */
|
|
1094
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1095
|
+
.decklight-agent-chip::before { animation: none; }
|
|
1096
|
+
}
|
|
1097
|
+
/* Printing a deck must not print a job that was running when you hit print. */
|
|
1098
|
+
@media print { .decklight-agent-chip { display: none; } }
|
|
1099
|
+
|
|
827
1100
|
/* touch chrome — shown only where there's no keyboard (see engine.js) */
|
|
828
1101
|
.decklight-touch-controls { position: absolute; left: 14px; top: 14px; z-index: 41; display: none; gap: 8px; }
|
|
829
1102
|
.decklight-touch-btn {
|
|
@@ -1000,6 +1273,21 @@
|
|
|
1000
1273
|
.decklight-narr .narr-row.narr-sel { background: rgba(255, 255, 255, .14); }
|
|
1001
1274
|
.decklight-narr .narr-row.narr-cur::after { content: ' ✓'; opacity: .7; }
|
|
1002
1275
|
.decklight-narr .narr-flavor { opacity: .5; font-size: .85em; margin-left: 6px; }
|
|
1276
|
+
/* An engine this machine cannot use is SHOWN, dimmed, with the terminal command
|
|
1277
|
+
that would fix it — hiding it would answer "where did ElevenLabs go?" with
|
|
1278
|
+
silence. The fix wraps onto its own line (the row is a flex box) because it
|
|
1279
|
+
is a command to type, and a command folded into a sentence is a command
|
|
1280
|
+
somebody mis-copies. */
|
|
1281
|
+
.decklight-narr .narr-row.narr-blocked { flex-wrap: wrap; cursor: default; }
|
|
1282
|
+
.decklight-narr .narr-row.narr-blocked .narr-row-label { opacity: .45; }
|
|
1283
|
+
.decklight-narr .narr-fix {
|
|
1284
|
+
flex: 0 0 100%;
|
|
1285
|
+
margin: 2px 0 2px 1.1em;
|
|
1286
|
+
font-family: var(--font-mono, ui-monospace, monospace);
|
|
1287
|
+
font-size: .78em;
|
|
1288
|
+
opacity: .42;
|
|
1289
|
+
overflow-wrap: anywhere;
|
|
1290
|
+
}
|
|
1003
1291
|
.decklight-narr .narr-input {
|
|
1004
1292
|
width: 100%;
|
|
1005
1293
|
box-sizing: border-box;
|