@burtson-labs/bandit-engine 2.0.133 → 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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-YG4VGVQL.mjs";
3
+ } from "./chunk-PWESOU56.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-T7WRWZ4G.mjs.map
16
+ //# sourceMappingURL=chat-MR4EO6ZD.mjs.map
@@ -9776,7 +9776,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9776
9776
 
9777
9777
  // src/management/management.tsx
9778
9778
  import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
9779
- var preloadChatPage = () => import("./chat-T7WRWZ4G.mjs");
9779
+ var preloadChatPage = () => import("./chat-MR4EO6ZD.mjs");
9780
9780
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9781
9781
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9782
9782
  if (trimmed.endsWith("/api")) {
@@ -11149,4 +11149,4 @@ export {
11149
11149
  useGatewayMemory,
11150
11150
  management_default
11151
11151
  };
11152
- //# sourceMappingURL=chunk-L4MFKIR7.mjs.map
11152
+ //# sourceMappingURL=chunk-A4AFGZMU.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
- set({ engines: data.models, loaded: true });
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
  }
@@ -1452,7 +1458,7 @@ var ChatInput = (props) => {
1452
1458
  document.documentElement.style.setProperty("--vh", `${window.innerHeight * 0.01}px`);
1453
1459
  document.documentElement.style.setProperty(
1454
1460
  "--input-offset",
1455
- `max(env(safe-area-inset-bottom, 0px), 1.5rem)`
1461
+ `max(env(safe-area-inset-bottom, 0px), 0.9rem)`
1456
1462
  );
1457
1463
  }
1458
1464
  };
@@ -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
- height: "100dvh",
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
- height: "100dvh",
11230
- maxHeight: "100dvh",
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,8 +11250,11 @@ 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
- transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px))" : "none",
11245
- borderRadius: isMobile && mobileConversationsOpen ? "24px" : 0,
11253
+ // Claude iOS geometry: the card drops DOWN by the status-bar inset,
11254
+ // so its big rounded top corners are visible below the clock while
11255
+ // its bottom slides past the screen edge — no hard bottom line.
11256
+ transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px)) translateY(calc(max(env(safe-area-inset-top, 0px), 20px) + 12px))" : "none",
11257
+ borderRadius: isMobile && mobileConversationsOpen ? "36px" : 0,
11246
11258
  // Hairline border so the rounded card reads even when the backdrop
11247
11259
  // is the same near-black as the shell.
11248
11260
  border: isMobile && mobileConversationsOpen ? `1px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.14)" : "rgba(0,0,0,0.12)"}` : "none",
@@ -11555,4 +11567,4 @@ var chat_default = Chat;
11555
11567
  export {
11556
11568
  chat_default
11557
11569
  };
11558
- //# sourceMappingURL=chunk-YG4VGVQL.mjs.map
11570
+ //# sourceMappingURL=chunk-PWESOU56.mjs.map