@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
chat_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-72TR4XAJ.mjs";
|
|
4
4
|
import "./chunk-ONQMRE2G.mjs";
|
|
5
5
|
import "./chunk-BVYSGIWG.mjs";
|
|
6
6
|
import "./chunk-K2JGFKEB.mjs";
|
|
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
|
|
|
13
13
|
export {
|
|
14
14
|
chat_default as default
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=chat-
|
|
16
|
+
//# sourceMappingURL=chat-AIQIJCAR.mjs.map
|
|
@@ -941,7 +941,13 @@ var useEngineStore = create((set, get) => ({
|
|
|
941
941
|
const res = await fetch(`${base}/models`, { headers });
|
|
942
942
|
const data = await res.json();
|
|
943
943
|
if (res.ok && Array.isArray(data?.models)) {
|
|
944
|
-
|
|
944
|
+
const engines = data.models;
|
|
945
|
+
set({ engines, loaded: true });
|
|
946
|
+
if (!get().selectedEngine && engines.length > 0) {
|
|
947
|
+
const configured = (settings?.defaultModel || "bandit-core").split(":")[0];
|
|
948
|
+
const fallback = engines.find((e) => e.id === configured) || engines.find((e) => e.id === "bandit-core") || engines.find((e) => e.available) || engines[0];
|
|
949
|
+
if (fallback) get().setSelectedEngine(fallback.id);
|
|
950
|
+
}
|
|
945
951
|
} else {
|
|
946
952
|
set({ loaded: true });
|
|
947
953
|
}
|
|
@@ -8259,7 +8265,8 @@ var EnhancedMobileConversationsModal = ({
|
|
|
8259
8265
|
// Keep in sync with MOBILE_CONVERSATIONS_DRAWER_WIDTH in chat.tsx
|
|
8260
8266
|
// (the chat shell translates by the same amount).
|
|
8261
8267
|
width: "min(calc(100vw - 56px), 360px)",
|
|
8262
|
-
|
|
8268
|
+
// top/bottom stretch instead of 100dvh — iOS standalone
|
|
8269
|
+
// under-reports dvh, leaving a dead band above the home bar.
|
|
8263
8270
|
bgcolor: theme.palette.background.paper,
|
|
8264
8271
|
display: "flex",
|
|
8265
8272
|
flexDirection: "column",
|
|
@@ -11226,13 +11233,15 @@ var ChatContent = () => {
|
|
|
11226
11233
|
sx: (theme) => ({
|
|
11227
11234
|
display: "flex",
|
|
11228
11235
|
flexDirection: "column",
|
|
11229
|
-
|
|
11230
|
-
|
|
11236
|
+
// Stretch via top/bottom instead of 100dvh — the iOS standalone
|
|
11237
|
+
// webview under-reports dvh and left a dead band above the home
|
|
11238
|
+
// indicator; inset-stretched fixed elements get the real viewport.
|
|
11231
11239
|
overflow: "hidden",
|
|
11232
11240
|
bgcolor: theme.palette.chat.shell,
|
|
11233
11241
|
color: theme.palette.text.primary,
|
|
11234
11242
|
position: "fixed",
|
|
11235
11243
|
top: 0,
|
|
11244
|
+
bottom: 0,
|
|
11236
11245
|
left: drawerOpen && !isMobile ? "340px" : 0,
|
|
11237
11246
|
width: !isMobile && canvasOpen ? `calc(100vw - ${drawerOpen ? "340px" : "0px"} - ${CANVAS_WIDTH})` : drawerOpen && !isMobile ? "calc(100vw - 340px)" : "100vw",
|
|
11238
11247
|
zIndex: 0,
|
|
@@ -11241,12 +11250,14 @@ var ChatContent = () => {
|
|
|
11241
11250
|
// Claude iOS, where the card runs edge-to-edge vertically and the
|
|
11242
11251
|
// hairline border keeps the corners legible. Width kept in sync
|
|
11243
11252
|
// with the drawer in enhanced-mobile-conversations-modal.tsx.
|
|
11244
|
-
|
|
11245
|
-
//
|
|
11246
|
-
//
|
|
11247
|
-
//
|
|
11248
|
-
|
|
11249
|
-
|
|
11253
|
+
// iOS-sheet recede (Claude style): the card scales down anchored at
|
|
11254
|
+
// its bottom-left, so the rounded top corners appear inset below the
|
|
11255
|
+
// status area, the bottom stays flush with the screen edge, and the
|
|
11256
|
+
// motion reads as the native sheet-behind effect instead of the
|
|
11257
|
+
// content lurching downward.
|
|
11258
|
+
transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px)) scale(0.93)" : "none",
|
|
11259
|
+
transformOrigin: "left bottom",
|
|
11260
|
+
borderRadius: isMobile && mobileConversationsOpen ? "36px" : 0,
|
|
11250
11261
|
// Hairline border so the rounded card reads even when the backdrop
|
|
11251
11262
|
// is the same near-black as the shell.
|
|
11252
11263
|
border: isMobile && mobileConversationsOpen ? `1px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.14)" : "rgba(0,0,0,0.12)"}` : "none",
|
|
@@ -11275,7 +11286,7 @@ var ChatContent = () => {
|
|
|
11275
11286
|
sx: (theme) => ({
|
|
11276
11287
|
position: "absolute",
|
|
11277
11288
|
inset: isMobile ? "3px" : 0,
|
|
11278
|
-
border: `
|
|
11289
|
+
border: `3px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.55)" : "rgba(0,0,0,0.45)"}`,
|
|
11279
11290
|
borderRadius: isMobile ? "28px" : "inherit",
|
|
11280
11291
|
zIndex: 1400,
|
|
11281
11292
|
pointerEvents: "none"
|
|
@@ -11559,4 +11570,4 @@ var chat_default = Chat;
|
|
|
11559
11570
|
export {
|
|
11560
11571
|
chat_default
|
|
11561
11572
|
};
|
|
11562
|
-
//# sourceMappingURL=chunk-
|
|
11573
|
+
//# sourceMappingURL=chunk-72TR4XAJ.mjs.map
|