bunnyquery 1.21.4 → 1.21.7
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 +3 -1
- package/bunnyquery.css +70 -0
- package/bunnyquery.js +325 -18
- package/dist/engine.cjs +192 -6
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.mts +71 -1
- package/dist/engine.d.ts +71 -1
- package/dist/engine.mjs +187 -7
- package/dist/engine.mjs.map +1 -1
- package/package.json +1 -1
- package/src/engine/index.ts +5 -0
- package/src/engine/indexing_groups.ts +87 -1
- package/src/engine/link_markup.ts +51 -2
- package/src/engine/prompts/chat_system_prompt.ts +13 -1
- package/src/engine/prompts/indexing_system_prompt.ts +1 -1
- package/src/engine/prompts/indexing_user_message.ts +6 -1
- package/src/engine/session.ts +137 -5
- package/src/engine/time.ts +21 -0
- package/src/widget.css +10 -0
- package/styles/chat.css +60 -0
package/styles/chat.css
CHANGED
|
@@ -421,6 +421,28 @@
|
|
|
421
421
|
in a block <p>. Inline it so the row stays one line high. */
|
|
422
422
|
.bq-index-label .bq-md,
|
|
423
423
|
.bq-index-label .bq-md p { display: inline; margin: 0; }
|
|
424
|
+
/* A row whose file name is a fitted chip (renderInlineLinkHtml fitLabel) lays
|
|
425
|
+
the label out as a flex line instead: the verb keeps its width and the chip
|
|
426
|
+
takes whatever is left, so the name shows in full when the row has room and is
|
|
427
|
+
cut to the row (stem ellipsis, end of the name and extension kept) only when it
|
|
428
|
+
does not. The counts and the Stop button are siblings of .bq-index-label and
|
|
429
|
+
never shrink, so a narrow screen cuts the name, not them. A label with no chip
|
|
430
|
+
(a file without a stored path) keeps the inline layout and the label's own
|
|
431
|
+
ellipsis above. */
|
|
432
|
+
.bq-index-label .bq-md:has(.bq-link-fit),
|
|
433
|
+
.bq-index-label .bq-md:has(.bq-link-fit) > p {
|
|
434
|
+
display: flex;
|
|
435
|
+
align-items: baseline;
|
|
436
|
+
min-width: 0;
|
|
437
|
+
column-gap: 0.35em;
|
|
438
|
+
/* The bubble's break-anywhere wrapping would let the verb ("Indexed") give
|
|
439
|
+
up its width a letter at a time before the name shrinks. Only the name's
|
|
440
|
+
stem may give way. */
|
|
441
|
+
white-space: nowrap;
|
|
442
|
+
overflow-wrap: normal;
|
|
443
|
+
word-break: normal;
|
|
444
|
+
}
|
|
445
|
+
.bq-index-label .bq-md:has(.bq-link-fit) > p { flex: 1 1 auto; }
|
|
424
446
|
/* Passes LOADED, never a server-side total: history pages newest-first, so any
|
|
425
447
|
total derived from what is on screen is a lower bound. */
|
|
426
448
|
.bq-index-count { flex: 0 0 auto; opacity: 0.75; font-size: 0.72rem; }
|
|
@@ -569,6 +591,44 @@
|
|
|
569
591
|
.bq-md a.bq-link-button { text-decoration: none; }
|
|
570
592
|
.bq-md a.bq-link-button:hover { text-decoration: underline; }
|
|
571
593
|
.bq-md a.bq-link-button.is-unavailable:hover { text-decoration: none; }
|
|
594
|
+
/* A fitted chip (renderInlineLinkHtml fitLabel): the full name as a stem that
|
|
595
|
+
ellipsizes and a tail (end of the name + extension) that never shrinks. Flex
|
|
596
|
+
items are not atomic inlines, so an underline on the anchor would run under the
|
|
597
|
+
glyph too; the hover underline goes on the two name parts instead. */
|
|
598
|
+
.bq-link-button.bq-link-fit {
|
|
599
|
+
display: inline-flex;
|
|
600
|
+
align-items: baseline;
|
|
601
|
+
flex: 0 1 auto;
|
|
602
|
+
min-width: 0;
|
|
603
|
+
max-width: 100%;
|
|
604
|
+
overflow: hidden;
|
|
605
|
+
}
|
|
606
|
+
.bq-link-fit .bq-link-glyph { flex: none; }
|
|
607
|
+
.bq-link-fit .bq-link-stem {
|
|
608
|
+
flex: 0 1 auto;
|
|
609
|
+
min-width: 0;
|
|
610
|
+
overflow: hidden;
|
|
611
|
+
text-overflow: ellipsis;
|
|
612
|
+
white-space: pre;
|
|
613
|
+
}
|
|
614
|
+
/* The tail never shrinks while there is stem left to cut. Only a row too narrow
|
|
615
|
+
for even the end of the name caps it (the chip's width less the glyph), and
|
|
616
|
+
then with an ellipsis instead of a hard clip. A max-width, not a small
|
|
617
|
+
flex-shrink: any shrink at all takes a fraction of a pixel off the tail and
|
|
618
|
+
puts an ellipsis on a name that fits. */
|
|
619
|
+
.bq-link-fit .bq-link-tail {
|
|
620
|
+
flex: none;
|
|
621
|
+
max-width: calc(100% - 1.2em);
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
text-overflow: ellipsis;
|
|
624
|
+
white-space: pre;
|
|
625
|
+
}
|
|
626
|
+
.bq-link-button.bq-link-fit:hover,
|
|
627
|
+
.bq-md a.bq-link-button.bq-link-fit:hover { text-decoration: none; }
|
|
628
|
+
.bq-link-button.bq-link-fit:hover .bq-link-stem,
|
|
629
|
+
.bq-link-button.bq-link-fit:hover .bq-link-tail { text-decoration: underline; }
|
|
630
|
+
.bq-link-button.bq-link-fit.is-unavailable:hover .bq-link-stem,
|
|
631
|
+
.bq-link-button.bq-link-fit.is-unavailable:hover .bq-link-tail { text-decoration: none; }
|
|
572
632
|
/* The ↗ / ✕ glyph is never underlined, at rest or on hover. Underlines propagate
|
|
573
633
|
into every in-flow inline descendant and a descendant cannot cancel them, so
|
|
574
634
|
`text-decoration: none` on the glyph alone does nothing; an atomic inline
|