@burtson-labs/bandit-engine 2.0.134 → 2.0.135
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-MR4EO6ZD.mjs} +2 -2
- package/dist/{chunk-MYXZPC55.mjs → chunk-A4AFGZMU.mjs} +2 -2
- package/dist/{chunk-GVM24B3W.mjs → chunk-PWESOU56.mjs} +19 -11
- package/dist/chunk-PWESOU56.mjs.map +1 -0
- package/dist/index.js +18 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +18 -10
- 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-MR4EO6ZD.mjs.map} +0 -0
- /package/dist/{chunk-MYXZPC55.mjs.map → chunk-A4AFGZMU.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -15985,7 +15985,13 @@ var init_engineStore = __esm({
|
|
|
15985
15985
|
const res = await fetch(`${base}/models`, { headers });
|
|
15986
15986
|
const data = await res.json();
|
|
15987
15987
|
if (res.ok && Array.isArray(data?.models)) {
|
|
15988
|
-
|
|
15988
|
+
const engines = data.models;
|
|
15989
|
+
set({ engines, loaded: true });
|
|
15990
|
+
if (!get().selectedEngine && engines.length > 0) {
|
|
15991
|
+
const configured = (settings?.defaultModel || "bandit-core").split(":")[0];
|
|
15992
|
+
const fallback = engines.find((e) => e.id === configured) || engines.find((e) => e.id === "bandit-core") || engines.find((e) => e.available) || engines[0];
|
|
15993
|
+
if (fallback) get().setSelectedEngine(fallback.id);
|
|
15994
|
+
}
|
|
15989
15995
|
} else {
|
|
15990
15996
|
set({ loaded: true });
|
|
15991
15997
|
}
|
|
@@ -26032,7 +26038,8 @@ var init_enhanced_mobile_conversations_modal = __esm({
|
|
|
26032
26038
|
// Keep in sync with MOBILE_CONVERSATIONS_DRAWER_WIDTH in chat.tsx
|
|
26033
26039
|
// (the chat shell translates by the same amount).
|
|
26034
26040
|
width: "min(calc(100vw - 56px), 360px)",
|
|
26035
|
-
|
|
26041
|
+
// top/bottom stretch instead of 100dvh — iOS standalone
|
|
26042
|
+
// under-reports dvh, leaving a dead band above the home bar.
|
|
26036
26043
|
bgcolor: theme.palette.background.paper,
|
|
26037
26044
|
display: "flex",
|
|
26038
26045
|
flexDirection: "column",
|
|
@@ -31611,13 +31618,15 @@ var init_chat2 = __esm({
|
|
|
31611
31618
|
sx: (theme) => ({
|
|
31612
31619
|
display: "flex",
|
|
31613
31620
|
flexDirection: "column",
|
|
31614
|
-
|
|
31615
|
-
|
|
31621
|
+
// Stretch via top/bottom instead of 100dvh — the iOS standalone
|
|
31622
|
+
// webview under-reports dvh and left a dead band above the home
|
|
31623
|
+
// indicator; inset-stretched fixed elements get the real viewport.
|
|
31616
31624
|
overflow: "hidden",
|
|
31617
31625
|
bgcolor: theme.palette.chat.shell,
|
|
31618
31626
|
color: theme.palette.text.primary,
|
|
31619
31627
|
position: "fixed",
|
|
31620
31628
|
top: 0,
|
|
31629
|
+
bottom: 0,
|
|
31621
31630
|
left: drawerOpen && !isMobile ? "340px" : 0,
|
|
31622
31631
|
width: !isMobile && canvasOpen ? `calc(100vw - ${drawerOpen ? "340px" : "0px"} - ${CANVAS_WIDTH})` : drawerOpen && !isMobile ? "calc(100vw - 340px)" : "100vw",
|
|
31623
31632
|
zIndex: 0,
|
|
@@ -31626,12 +31635,11 @@ var init_chat2 = __esm({
|
|
|
31626
31635
|
// Claude iOS, where the card runs edge-to-edge vertically and the
|
|
31627
31636
|
// hairline border keeps the corners legible. Width kept in sync
|
|
31628
31637
|
// with the drawer in enhanced-mobile-conversations-modal.tsx.
|
|
31629
|
-
|
|
31630
|
-
//
|
|
31631
|
-
//
|
|
31632
|
-
|
|
31633
|
-
|
|
31634
|
-
borderRadius: isMobile && mobileConversationsOpen ? "24px" : 0,
|
|
31638
|
+
// Claude iOS geometry: the card drops DOWN by the status-bar inset,
|
|
31639
|
+
// so its big rounded top corners are visible below the clock while
|
|
31640
|
+
// its bottom slides past the screen edge — no hard bottom line.
|
|
31641
|
+
transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px)) translateY(calc(max(env(safe-area-inset-top, 0px), 20px) + 12px))" : "none",
|
|
31642
|
+
borderRadius: isMobile && mobileConversationsOpen ? "36px" : 0,
|
|
31635
31643
|
// Hairline border so the rounded card reads even when the backdrop
|
|
31636
31644
|
// is the same near-black as the shell.
|
|
31637
31645
|
border: isMobile && mobileConversationsOpen ? `1px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.14)" : "rgba(0,0,0,0.12)"}` : "none",
|