@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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-YG4VGVQL.mjs";
3
+ } from "./chunk-PWESOU56.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-L4MFKIR7.mjs";
13
+ } from "./chunk-A4AFGZMU.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
- set({ engines: data.models, loaded: true });
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
  }
@@ -21243,7 +21249,7 @@ var init_chat_input = __esm({
21243
21249
  document.documentElement.style.setProperty("--vh", `${window.innerHeight * 0.01}px`);
21244
21250
  document.documentElement.style.setProperty(
21245
21251
  "--input-offset",
21246
- `max(env(safe-area-inset-bottom, 0px), 1.5rem)`
21252
+ `max(env(safe-area-inset-bottom, 0px), 0.9rem)`
21247
21253
  );
21248
21254
  }
21249
21255
  };
@@ -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
- height: "100dvh",
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
- height: "100dvh",
31225
- maxHeight: "100dvh",
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,8 +31245,11 @@ 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
- transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px))" : "none",
31240
- borderRadius: isMobile && mobileConversationsOpen ? "24px" : 0,
31248
+ // Claude iOS geometry: the card drops DOWN by the status-bar inset,
31249
+ // so its big rounded top corners are visible below the clock while
31250
+ // its bottom slides past the screen edge — no hard bottom line.
31251
+ transform: isMobile && mobileConversationsOpen ? "translateX(min(calc(100vw - 56px), 360px)) translateY(calc(max(env(safe-area-inset-top, 0px), 20px) + 12px))" : "none",
31252
+ borderRadius: isMobile && mobileConversationsOpen ? "36px" : 0,
31241
31253
  // Hairline border so the rounded card reads even when the backdrop
31242
31254
  // is the same near-black as the shell.
31243
31255
  border: isMobile && mobileConversationsOpen ? `1px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.14)" : "rgba(0,0,0,0.12)"}` : "none",