typebulb 0.11.3 → 0.11.5
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 -0
- package/dist/agents/claude/client.js +99 -99
- package/dist/agents/claude/styles.css +37 -0
- package/dist/index.js +55 -55
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
--tool-bg: rgb(245, 246, 248);
|
|
12
12
|
--err: rgb(206, 60, 60);
|
|
13
13
|
--diff-add: rgb(40, 140, 70);
|
|
14
|
+
--fold-marker: rgb(24, 145, 72);
|
|
14
15
|
/* Prose measure for text (bubbles + notes) — kept to a readable line length.
|
|
15
16
|
Diagrams break out wider than this; see .md .mermaid. */
|
|
16
17
|
--content-max: 800px;
|
|
@@ -28,6 +29,7 @@ html[data-theme="dark"] {
|
|
|
28
29
|
--tool-bg: rgb(30, 31, 36);
|
|
29
30
|
--err: rgb(240, 120, 120);
|
|
30
31
|
--diff-add: rgb(120, 210, 140);
|
|
32
|
+
--fold-marker: rgb(0, 255, 0);
|
|
31
33
|
color-scheme: dark;
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -721,6 +723,12 @@ a.server-port:hover { color: var(--accent); text-decoration: underline; }
|
|
|
721
723
|
border-radius: 6px;
|
|
722
724
|
color: var(--muted);
|
|
723
725
|
padding: .12rem .45rem;
|
|
726
|
+
/* These are word buttons that swap labels in place (fit⇄spread, code⇄run, copy⇄copied), so a
|
|
727
|
+
min-width keeps the button from jumping as the word's length changes — "fit" is much narrower
|
|
728
|
+
than "spread". Centered text so the floor padding sits evenly. (An icon button wouldn't want
|
|
729
|
+
this, but every pill here is a word.) */
|
|
730
|
+
min-width: 3.5rem;
|
|
731
|
+
text-align: center;
|
|
724
732
|
cursor: pointer;
|
|
725
733
|
opacity: 0;
|
|
726
734
|
transition: opacity .2s ease;
|
|
@@ -888,6 +896,35 @@ a.server-port:hover { color: var(--accent); text-decoration: underline; }
|
|
|
888
896
|
.turn-summary { color: var(--muted); font-size: .85rem; }
|
|
889
897
|
.turn-summary-text { font-style: italic; }
|
|
890
898
|
.turn-summary:hover .turn-summary-text { color: var(--fg); }
|
|
899
|
+
|
|
900
|
+
/* A superseded embed (an earlier same-name version) folds to this "💡 <Name> — Version N" stub — it
|
|
901
|
+
reclaims the bulb's full height. Marker-green text (--fold-marker: lime in dark, deep green in light)
|
|
902
|
+
on a neutral gray fill (--panel) that hugs the text (width:max-content), no border: text-hugging and
|
|
903
|
+
borderless keeps it distinct from the page's full-width bordered panels and clear of the live bulb's
|
|
904
|
+
hover pills, and the colored title rides a gray pill rather than a green block. Its look never depends
|
|
905
|
+
on outcome: errors show only inside the embed when expanded, so the title never changes. Click to
|
|
906
|
+
expand the older bulb (rerun fresh) back in. */
|
|
907
|
+
.bulb-fold {
|
|
908
|
+
display: flex;
|
|
909
|
+
width: max-content;
|
|
910
|
+
max-width: 100%;
|
|
911
|
+
align-items: center;
|
|
912
|
+
gap: .5rem;
|
|
913
|
+
padding: .3rem .55rem;
|
|
914
|
+
border-radius: 6px;
|
|
915
|
+
background: var(--panel);
|
|
916
|
+
color: var(--fold-marker);
|
|
917
|
+
font-size: .9rem;
|
|
918
|
+
font-weight: 600;
|
|
919
|
+
cursor: pointer;
|
|
920
|
+
user-select: none;
|
|
921
|
+
}
|
|
922
|
+
/* The fold is the sole child of its `.md` wrapper, so the `.md :first-child`/`:last-child` margin
|
|
923
|
+
reset (above) would zero a plain `margin` here. Scope it under `.md` so it outweighs that reset
|
|
924
|
+
(equal specificity, later in source) and the stub actually gets its breathing room. */
|
|
925
|
+
.md .bulb-fold { margin: .7rem 0; }
|
|
926
|
+
.bulb-fold:hover { background: color-mix(in srgb, var(--fg) 8%, var(--panel)); }
|
|
927
|
+
.bulb-fold .tool-caret { color: inherit; } /* follow the accent row color */
|
|
891
928
|
/* Verb + summary are inline siblings sharing one line box and font, so they sit
|
|
892
929
|
on a common baseline. Ellipsis truncation lives on the wrapper, not the
|
|
893
930
|
children — overflow:hidden on the summary itself skews its baseline. */
|