bunnyquery 1.13.0 → 1.14.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 -2
- package/bunnyquery.css +31 -0
- package/bunnyquery.js +567 -144
- package/dist/engine.cjs +566 -154
- package/dist/engine.cjs.map +1 -1
- package/dist/engine.d.mts +295 -2
- package/dist/engine.d.ts +295 -2
- package/dist/engine.mjs +542 -155
- package/dist/engine.mjs.map +1 -1
- package/package.json +1 -1
- package/src/engine/budget.ts +43 -1
- package/src/engine/citations.ts +181 -0
- package/src/engine/config.ts +44 -0
- package/src/engine/history.ts +9 -0
- package/src/engine/host.ts +7 -0
- package/src/engine/index.ts +17 -0
- package/src/engine/project_settings.ts +40 -0
- package/src/engine/prompts/chat_system_prompt.ts +27 -1
- package/src/engine/requests.ts +64 -35
- package/src/engine/retrieval_memory.ts +348 -0
- package/src/engine/session.ts +33 -4
- package/styles/chat.css +31 -0
package/styles/chat.css
CHANGED
|
@@ -149,6 +149,37 @@
|
|
|
149
149
|
font-style: italic;
|
|
150
150
|
clear: both;
|
|
151
151
|
}
|
|
152
|
+
/* ---- citations + the no-source mark -------------------------------------*/
|
|
153
|
+
/* Under an answer that read something: one chip per cited file (and page, in
|
|
154
|
+
the label only). The chips are the ordinary stored-file link chips
|
|
155
|
+
(.bq-link-button, emitted by renderInlineLinkHtml), so they inherit the
|
|
156
|
+
expired / refreshing / unavailable states and the hover rule; this only lays
|
|
157
|
+
them out as a row under a hairline. Absent entirely when there is nothing to
|
|
158
|
+
cite, so a plain bubble is laid out exactly as before. */
|
|
159
|
+
.bq-citations {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-wrap: wrap;
|
|
162
|
+
align-items: baseline;
|
|
163
|
+
gap: 0.25rem 0.6rem;
|
|
164
|
+
margin-top: 0.45rem;
|
|
165
|
+
padding-top: 0.35rem;
|
|
166
|
+
border-top: 1px solid var(--bq-line);
|
|
167
|
+
font-size: 0.72rem;
|
|
168
|
+
line-height: 1.35;
|
|
169
|
+
white-space: normal;
|
|
170
|
+
clear: both;
|
|
171
|
+
}
|
|
172
|
+
.bq-citations .bq-link-button { max-width: 16rem; }
|
|
173
|
+
/* The answer used no data tool: a small muted line, never a colour that reads
|
|
174
|
+
as an error (the answer may still be right; what it was not is READ). */
|
|
175
|
+
.bq-no-source-note {
|
|
176
|
+
display: block;
|
|
177
|
+
margin-top: 0.35rem;
|
|
178
|
+
font-size: 0.68rem;
|
|
179
|
+
font-style: italic;
|
|
180
|
+
color: var(--bq-muted);
|
|
181
|
+
clear: both;
|
|
182
|
+
}
|
|
152
183
|
/* Timestamp under a settled bubble (created for a user turn, response time for an
|
|
153
184
|
assistant turn). Muted and small so it never competes with the message. */
|
|
154
185
|
.bq-msg-time {
|