@burtson-labs/bandit-engine 2.0.134 → 2.0.136
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/{chat-VVG7AP4R.mjs → chat-AIQIJCAR.mjs} +2 -2
- package/dist/{chunk-GVM24B3W.mjs → chunk-72TR4XAJ.mjs} +23 -12
- package/dist/chunk-72TR4XAJ.mjs.map +1 -0
- package/dist/{chunk-MYXZPC55.mjs → chunk-LG4S6XLH.mjs} +2 -2
- package/dist/index.js +22 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +22 -11
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-GVM24B3W.mjs.map +0 -1
- /package/dist/{chat-VVG7AP4R.mjs.map → chat-AIQIJCAR.mjs.map} +0 -0
- /package/dist/{chunk-MYXZPC55.mjs.map → chunk-LG4S6XLH.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-72TR4XAJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
chat_provider_default
|
|
6
6
|
} from "./chunk-PU74BI6Y.mjs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useGatewayHealth,
|
|
11
11
|
useGatewayMemory,
|
|
12
12
|
useGatewayModels
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-LG4S6XLH.mjs";
|
|
14
14
|
import "./chunk-BVYSGIWG.mjs";
|
|
15
15
|
import "./chunk-F7JXIW6T.mjs";
|
|
16
16
|
import "./chunk-K2JGFKEB.mjs";
|
|
@@ -20667,7 +20667,13 @@ var init_engineStore = __esm({
|
|
|
20667
20667
|
const res = await fetch(`${base}/models`, { headers });
|
|
20668
20668
|
const data = await res.json();
|
|
20669
20669
|
if (res.ok && Array.isArray(data?.models)) {
|
|
20670
|
-
|
|
20670
|
+
const engines = data.models;
|
|
20671
|
+
set({ engines, loaded: true });
|
|
20672
|
+
if (!get().selectedEngine && engines.length > 0) {
|
|
20673
|
+
const configured = (settings?.defaultModel || "bandit-core").split(":")[0];
|
|
20674
|
+
const fallback = engines.find((e) => e.id === configured) || engines.find((e) => e.id === "bandit-core") || engines.find((e) => e.available) || engines[0];
|
|
20675
|
+
if (fallback) get().setSelectedEngine(fallback.id);
|
|
20676
|
+
}
|
|
20671
20677
|
} else {
|
|
20672
20678
|
set({ loaded: true });
|
|
20673
20679
|
}
|
|
@@ -28125,7 +28131,8 @@ var init_enhanced_mobile_conversations_modal = __esm({
|
|
|
28125
28131
|
// Keep in sync with MOBILE_CONVERSATIONS_DRAWER_WIDTH in chat.tsx
|
|
28126
28132
|
// (the chat shell translates by the same amount).
|
|
28127
28133
|
width: "min(calc(100vw - 56px), 360px)",
|
|
28128
|
-
|
|
28134
|
+
// top/bottom stretch instead of 100dvh — iOS standalone
|
|
28135
|
+
// under-reports dvh, leaving a dead band above the home bar.
|
|
28129
28136
|
bgcolor: theme.palette.background.paper,
|
|
28130
28137
|
display: "flex",
|
|
28131
28138
|
flexDirection: "column",
|
|
@@ -31221,13 +31228,15 @@ var init_chat2 = __esm({
|
|
|
31221
31228
|
sx: (theme) => ({
|
|
31222
31229
|
display: "flex",
|
|
31223
31230
|
flexDirection: "column",
|
|
31224
|
-
|
|
31225
|
-
|
|
31231
|
+
// Stretch via top/bottom instead of 100dvh — the iOS standalone
|
|
31232
|
+
// webview under-reports dvh and left a dead band above the home
|
|
31233
|
+
// indicator; inset-stretched fixed elements get the real viewport.
|
|
31226
31234
|
overflow: "hidden",
|
|
31227
31235
|
bgcolor: theme.palette.chat.shell,
|
|
31228
31236
|
color: theme.palette.text.primary,
|
|
31229
31237
|
position: "fixed",
|
|
31230
31238
|
top: 0,
|
|
31239
|
+
bottom: 0,
|
|
31231
31240
|
left: drawerOpen && !isMobile ? "340px" : 0,
|
|
31232
31241
|
width: !isMobile && canvasOpen ? `calc(100vw - ${drawerOpen ? "340px" : "0px"} - ${CANVAS_WIDTH})` : drawerOpen && !isMobile ? "calc(100vw - 340px)" : "100vw",
|
|
31233
31242
|
zIndex: 0,
|
|
@@ -31236,12 +31245,14 @@ var init_chat2 = __esm({
|
|
|
31236
31245
|
// Claude iOS, where the card runs edge-to-edge vertically and the
|
|
31237
31246
|
// hairline border keeps the corners legible. Width kept in sync
|
|
31238
31247
|
// with the drawer in enhanced-mobile-conversations-modal.tsx.
|
|
31239
|
-
|
|
31240
|
-
//
|
|
31241
|
-
//
|
|
31242
|
-
//
|
|
31243
|
-
|
|
31244
|
-
|
|
31248
|
+
// iOS-sheet recede (Claude style): the card scales down anchored at
|
|
31249
|
+
// its bottom-left, so the rounded top corners appear inset below the
|
|
31250
|
+
// status area, the bottom stays flush with the screen edge, and the
|
|
31251
|
+
// motion reads as the native sheet-behind effect instead of the
|
|
31252
|
+
// content lurching downward.
|
|
31253
|
+
transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px)) scale(0.93)" : "none",
|
|
31254
|
+
transformOrigin: "left bottom",
|
|
31255
|
+
borderRadius: isMobile && mobileConversationsOpen ? "36px" : 0,
|
|
31245
31256
|
// Hairline border so the rounded card reads even when the backdrop
|
|
31246
31257
|
// is the same near-black as the shell.
|
|
31247
31258
|
border: isMobile && mobileConversationsOpen ? `1px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.14)" : "rgba(0,0,0,0.12)"}` : "none",
|
|
@@ -31270,7 +31281,7 @@ var init_chat2 = __esm({
|
|
|
31270
31281
|
sx: (theme) => ({
|
|
31271
31282
|
position: "absolute",
|
|
31272
31283
|
inset: isMobile ? "3px" : 0,
|
|
31273
|
-
border: `
|
|
31284
|
+
border: `3px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.55)" : "rgba(0,0,0,0.45)"}`,
|
|
31274
31285
|
borderRadius: isMobile ? "28px" : "inherit",
|
|
31275
31286
|
zIndex: 1400,
|
|
31276
31287
|
pointerEvents: "none"
|