@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.
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
- set({ engines: data.models, loaded: true });
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
  }
@@ -19150,7 +19156,7 @@ var init_chat_input = __esm({
19150
19156
  document.documentElement.style.setProperty("--vh", `${window.innerHeight * 0.01}px`);
19151
19157
  document.documentElement.style.setProperty(
19152
19158
  "--input-offset",
19153
- `max(env(safe-area-inset-bottom, 0px), 1.5rem)`
19159
+ `max(env(safe-area-inset-bottom, 0px), 0.9rem)`
19154
19160
  );
19155
19161
  }
19156
19162
  };
@@ -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
- height: "100dvh",
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
- height: "100dvh",
31615
- maxHeight: "100dvh",
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,8 +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
- transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px))" : "none",
31630
- 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,
31631
31643
  // Hairline border so the rounded card reads even when the backdrop
31632
31644
  // is the same near-black as the shell.
31633
31645
  border: isMobile && mobileConversationsOpen ? `1px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.14)" : "rgba(0,0,0,0.12)"}` : "none",