typebulb 0.25.0 → 0.26.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.
- package/dist/agents/claude/client.js +309 -304
- package/dist/agents/claude/styles.css +79 -11
- package/dist/agents/pi/client.js +244 -239
- package/dist/agents/pi/matchu-patchu.ts +1 -1
- package/dist/agents/pi/styles.css +79 -11
- package/dist/ai/providers/gemini.d.ts +11 -1
- package/dist/ai/providers/gemini.d.ts.map +1 -1
- package/dist/ai/providers/gemini.js +24 -16
- package/dist/ai/providers/gemini.js.map +1 -1
- package/dist/format/config.d.ts +5 -0
- package/dist/format/config.d.ts.map +1 -1
- package/dist/format/config.js +20 -0
- package/dist/format/config.js.map +1 -1
- package/dist/index.js +193 -192
- package/dist/servers.js +97 -97
- package/package.json +1 -1
|
@@ -178,13 +178,13 @@ body {
|
|
|
178
178
|
session list). Wrap = positioning context; the popover anchors bottom/right and
|
|
179
179
|
grows up-and-left — the chips sit in the right-aligned cluster, so left:0 would
|
|
180
180
|
run them off the viewport's right edge. */
|
|
181
|
-
.token-wrap, .sid-wrap, .servers-wrap, .model-wrap { position: relative; display: inline-block; }
|
|
181
|
+
.token-wrap, .sid-wrap, .servers-wrap, .model-wrap, .gitdiff-wrap { position: relative; display: inline-block; }
|
|
182
182
|
/* Each pill renders its wrap unconditionally, emitting an empty div when it has
|
|
183
183
|
nothing to show (no tokens / no session / nothing running). An empty wrap is
|
|
184
184
|
still a flex child, so .statusbar-actions' gap lands on both its sides —
|
|
185
185
|
doubling the visible gap between its neighbours. Collapse the empties so the
|
|
186
186
|
cluster spaces evenly regardless of which pills are present. */
|
|
187
|
-
.token-wrap:empty, .sid-wrap:empty, .servers-wrap:empty, .model-wrap:empty { display: none; }
|
|
187
|
+
.token-wrap:empty, .sid-wrap:empty, .servers-wrap:empty, .model-wrap:empty, .gitdiff-wrap:empty { display: none; }
|
|
188
188
|
.picker, .servers-pop {
|
|
189
189
|
--menu-h: 428px; /* one height for both statusbar menus — they sit side by side, so a
|
|
190
190
|
mismatched cap reads as a glitch; .picker grows to it, .servers-pop
|
|
@@ -913,6 +913,73 @@ a.server-port:hover { text-decoration: underline; }
|
|
|
913
913
|
color: var(--fg);
|
|
914
914
|
}
|
|
915
915
|
.bulb-log-text { white-space: pre-wrap; word-break: break-word; }
|
|
916
|
+
|
|
917
|
+
/* ── Git diff pill + menu (TB-Agent-Mirror.md): a `± N` chip (custom two-color glyph, icons.ts, +
|
|
918
|
+
changed-file count) that exists only when the tree is dirty — presence is the signal, so the glyph
|
|
919
|
+
keeps its red/green at rest (no grayscale: the chip can't be "idle", a clean tree removes it) and
|
|
920
|
+
the accent border stays reserved for latched, like every pill. Picking a menu row swaps the
|
|
921
|
+
transcript for a full-context unified diff. Flex like the square glyph pills (an svg mis-seats
|
|
922
|
+
under the word-pill text-box trim), width freed for the count. ── */
|
|
923
|
+
/* Three classes to out-specify .pill.glyph's fixed square (width: var(--pill-h); padding: 0) —
|
|
924
|
+
this is the one glyph pill that carries content beside its icon, so its width must be free. */
|
|
925
|
+
.pill.glyph.gitdiff-pill { width: auto; padding: 0 .45rem; gap: .3rem; }
|
|
926
|
+
/* 2:3, the cropped viewBox's aspect — a square box would re-add the side margins. */
|
|
927
|
+
.gitdiff-pill .icon { width: 8px; height: 12px; }
|
|
928
|
+
.gitdiff-count { font-size: var(--pill-font); font-variant-numeric: tabular-nums; }
|
|
929
|
+
.gitdiff-pop { width: min(480px, calc(100vw - 2rem)); }
|
|
930
|
+
.gitdiff-list { display: flex; flex-direction: column; gap: .15rem; flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
|
|
931
|
+
.gitdiff-row { display: flex; align-items: center; gap: .55rem; flex: none; min-height: var(--menu-row-h); padding: .05rem .45rem; border-radius: 6px; font-size: .85rem; cursor: pointer; }
|
|
932
|
+
.gitdiff-row:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
|
|
933
|
+
.gitdiff-row.active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
|
|
934
|
+
.gitdiff-row.viewing .gitdiff-path { color: var(--accent); }
|
|
935
|
+
/* One status letter, VS Code's palette: modified/renamed amber, added/untracked green, deleted red. */
|
|
936
|
+
.gitdiff-status { flex: none; width: 1rem; text-align: center; font: 600 .74rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
|
|
937
|
+
.gitdiff-status.s-M, .gitdiff-status.s-R { color: var(--warn); }
|
|
938
|
+
.gitdiff-status.s-A, .gitdiff-status.s-U { color: var(--diff-add); }
|
|
939
|
+
.gitdiff-status.s-D { color: var(--err); }
|
|
940
|
+
.gitdiff-path { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
941
|
+
.gitdiff-counts { flex: none; display: inline-flex; gap: .35rem; font-size: .72rem; font-variant-numeric: tabular-nums; }
|
|
942
|
+
.gitdiff-counts .count-add { color: var(--diff-add); }
|
|
943
|
+
.gitdiff-counts .count-del { color: var(--err); }
|
|
944
|
+
|
|
945
|
+
/* The diff doc — takes the transcript's slot in .chat (same flex geometry as .messages). Full-bleed
|
|
946
|
+
like a code surface (no --content-max column: diff lines want the width); the body is the scroll
|
|
947
|
+
surface, its bottom padding clearing the overlaid statusbar like .messages' does. The ± markers and
|
|
948
|
+
red/green bands are the shared .udiff-* rules the tool cards use. */
|
|
949
|
+
.diff-doc { flex: 1; min-height: 0; display: flex; flex-direction: column; outline: none; }
|
|
950
|
+
.diff-doc-head { display: flex; align-items: center; gap: .6rem; padding: .5rem 1.75rem .4rem; font-size: .8rem; border-bottom: 1px solid var(--border); }
|
|
951
|
+
.diff-doc-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--accent); cursor: pointer; }
|
|
952
|
+
.diff-doc-path:hover { text-decoration: underline; }
|
|
953
|
+
.diff-doc-head .bulb-log-back { margin-left: auto; }
|
|
954
|
+
.diff-doc-body {
|
|
955
|
+
flex: 1; min-height: 0; overflow: auto;
|
|
956
|
+
scrollbar-gutter: stable both-edges;
|
|
957
|
+
padding: .75rem 1.75rem 2.5rem;
|
|
958
|
+
font: .78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
959
|
+
white-space: pre-wrap; word-break: break-word;
|
|
960
|
+
}
|
|
961
|
+
.diff-doc-empty, .diff-doc-trunc { color: var(--muted); padding: .4rem 0; }
|
|
962
|
+
/* The wrong-cwd empty state (Root.#cwdHint): centered over the empty transcript. */
|
|
963
|
+
.cwd-hint { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: .5rem; padding: 2rem; color: var(--muted); font-size: .9rem; max-width: 40rem; margin-inline: auto; }
|
|
964
|
+
.cwd-hint-head { font-weight: 600; color: var(--fg); }
|
|
965
|
+
.cwd-hint-dir { color: var(--accent); }
|
|
966
|
+
/* With token colors under them, the full-strength (24%) bands compete — red tokens on a red band
|
|
967
|
+
turn to mud — so the doc view's bands drop to a tint: polarity is still carried per-line by the
|
|
968
|
+
gutter ± glyphs and at file scale by the ruler. Scoped: the tool-card hunks keep 24%, where the
|
|
969
|
+
unhighlighted band is the only signal. Del a touch stronger than add — red-leaning tokens
|
|
970
|
+
camouflage against red tint more than anything does against green. */
|
|
971
|
+
.diff-doc-body .udiff-add { background: color-mix(in srgb, var(--diff-add) 10%, transparent); }
|
|
972
|
+
.diff-doc-body .udiff-del { background: color-mix(in srgb, var(--err) 13%, transparent); }
|
|
973
|
+
/* The overview ruler — VS Code's scrollbar change-marks, owned since the native scrollbar can't be
|
|
974
|
+
painted: a thin track beside the scrollbar (17px clears Windows Chromium's classic bar — plain px
|
|
975
|
+
on a desktop-only surface, the menus' own stance), red/green marks at each change run's fractional
|
|
976
|
+
position, min-height so a one-line change stays visible. The wrapper keeps it overlaid rather than
|
|
977
|
+
scrolling with the body. Marks are pointer-inert so a click anywhere on the track jumps. */
|
|
978
|
+
.diff-doc-scroll { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
|
|
979
|
+
.diff-ruler { position: absolute; top: 2px; bottom: 2px; right: 17px; width: 6px; cursor: pointer; z-index: 5; }
|
|
980
|
+
.diff-ruler-mark { position: absolute; left: 0; right: 0; min-height: 3px; border-radius: 1px; pointer-events: none; }
|
|
981
|
+
.diff-ruler-mark.add { background: var(--diff-add); opacity: .8; }
|
|
982
|
+
.diff-ruler-mark.del { background: var(--err); opacity: .8; }
|
|
916
983
|
/* messages */
|
|
917
984
|
.messages {
|
|
918
985
|
flex: 1;
|
|
@@ -1364,24 +1431,25 @@ html[data-theme="dark"] .masthead-logo.dark { display: block; }
|
|
|
1364
1431
|
background: transparent;
|
|
1365
1432
|
overflow-x: auto;
|
|
1366
1433
|
}
|
|
1367
|
-
/* hljs token colors for the code view,
|
|
1434
|
+
/* hljs token colors for the code view AND the diff doc (one palette, or the same file reads as two
|
|
1435
|
+
languages across surfaces), mapped to the bulb's own theme vars (no hljs
|
|
1368
1436
|
theme stylesheet) so highlighting follows light/dark rather than baking a palette
|
|
1369
1437
|
that would clash in dark mode. Minimal token set — enough for legible TS/HTML/CSS/
|
|
1370
1438
|
JSON/markdown without chasing every grammar scope. */
|
|
1371
|
-
.bulb-code .hljs-comment, .bulb-code .hljs-quote { color: var(--muted); font-style: italic; }
|
|
1372
|
-
.bulb-code .hljs-keyword, .bulb-code .hljs-literal, .bulb-code .hljs-built_in { color: var(--accent); }
|
|
1373
|
-
.bulb-code .hljs-tag, .bulb-code .hljs-name, .bulb-code .hljs-selector-tag { color: var(--accent); }
|
|
1374
|
-
.bulb-code .hljs-string, .bulb-code .hljs-regexp, .bulb-code .hljs-meta .hljs-string {
|
|
1439
|
+
.bulb-code .hljs-comment, .diff-doc-body .hljs-comment, .bulb-code .hljs-quote, .diff-doc-body .hljs-quote { color: var(--muted); font-style: italic; }
|
|
1440
|
+
.bulb-code .hljs-keyword, .diff-doc-body .hljs-keyword, .bulb-code .hljs-literal, .diff-doc-body .hljs-literal, .bulb-code .hljs-built_in, .diff-doc-body .hljs-built_in { color: var(--accent); }
|
|
1441
|
+
.bulb-code .hljs-tag, .diff-doc-body .hljs-tag, .bulb-code .hljs-name, .diff-doc-body .hljs-name, .bulb-code .hljs-selector-tag, .diff-doc-body .hljs-selector-tag { color: var(--accent); }
|
|
1442
|
+
.bulb-code .hljs-string, .diff-doc-body .hljs-string, .bulb-code .hljs-regexp, .diff-doc-body .hljs-regexp, .bulb-code .hljs-meta .hljs-string, .diff-doc-body .hljs-meta .hljs-string {
|
|
1375
1443
|
color: color-mix(in srgb, var(--diff-add) 85%, var(--fg));
|
|
1376
1444
|
}
|
|
1377
|
-
.bulb-code .hljs-number { color: color-mix(in srgb, var(--accent) 55%, var(--fg)); }
|
|
1378
|
-
.bulb-code .hljs-attr, .bulb-code .hljs-attribute, .bulb-code .hljs-property, .bulb-code .hljs-type {
|
|
1445
|
+
.bulb-code .hljs-number, .diff-doc-body .hljs-number { color: color-mix(in srgb, var(--accent) 55%, var(--fg)); }
|
|
1446
|
+
.bulb-code .hljs-attr, .diff-doc-body .hljs-attr, .bulb-code .hljs-attribute, .diff-doc-body .hljs-attribute, .bulb-code .hljs-property, .diff-doc-body .hljs-property, .bulb-code .hljs-type, .diff-doc-body .hljs-type {
|
|
1379
1447
|
color: color-mix(in srgb, var(--accent) 75%, var(--fg));
|
|
1380
1448
|
}
|
|
1381
|
-
.bulb-code .hljs-title, .bulb-code .hljs-title.function_, .bulb-code .hljs-section {
|
|
1449
|
+
.bulb-code .hljs-title, .diff-doc-body .hljs-title, .bulb-code .hljs-title.function_, .diff-doc-body .hljs-title.function_, .bulb-code .hljs-section, .diff-doc-body .hljs-section {
|
|
1382
1450
|
color: var(--fg); font-weight: 600;
|
|
1383
1451
|
}
|
|
1384
|
-
.bulb-code .hljs-symbol, .bulb-code .hljs-bullet, .bulb-code .hljs-punctuation { color: var(--muted); }
|
|
1452
|
+
.bulb-code .hljs-symbol, .diff-doc-body .hljs-symbol, .bulb-code .hljs-bullet, .diff-doc-body .hljs-bullet, .bulb-code .hljs-punctuation, .diff-doc-body .hljs-punctuation { color: var(--muted); }
|
|
1385
1453
|
/* Draft-streaming bulb card (#draftBulbCard): the code view wearing a progress header — never a
|
|
1386
1454
|
live mount; the durable row's BulbEmbed takes this slot when the entry lands. Cap tighter than
|
|
1387
1455
|
.bulb-code's resting 480px: ambient progress, not reading material. */
|