@burtson-labs/bandit-engine 2.0.138 → 2.0.140

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-LDGJKNI4.mjs";
3
+ } from "./chunk-EN54BLJ2.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-WBWVXJF3.mjs";
13
+ } from "./chunk-3C2RRTYB.mjs";
14
14
  import "./chunk-BVYSGIWG.mjs";
15
15
  import "./chunk-F7JXIW6T.mjs";
16
16
  import "./chunk-K2JGFKEB.mjs";
@@ -28133,10 +28133,9 @@ var init_enhanced_mobile_conversations_modal = __esm({
28133
28133
  // Keep in sync with MOBILE_CONVERSATIONS_DRAWER_WIDTH in chat.tsx
28134
28134
  // (the chat shell translates by the same amount).
28135
28135
  width: "min(calc(100vw - 56px), 360px)",
28136
- // Explicit 100lvh overflows iOS standalone's under-reported
28137
- // viewport downward — bottom-anchoring alone stops short.
28138
- height: "100dvh",
28139
- "@supports (height: 100lvh)": { height: "100lvh" },
28136
+ // top/bottom stretch sizes to the real webview; iOS reserves
28137
+ // the home-indicator strip below it (page bg matches, so the
28138
+ // seam is invisible).
28140
28139
  bgcolor: theme.palette.background.paper,
28141
28140
  display: "flex",
28142
28141
  flexDirection: "column",
@@ -31232,18 +31231,16 @@ var init_chat2 = __esm({
31232
31231
  sx: (theme) => ({
31233
31232
  display: "flex",
31234
31233
  flexDirection: "column",
31235
- // iOS standalone under-reports both dvh AND the fixed-position
31236
- // containing block, stranding a dead band above the home bar.
31237
- // An explicit 100lvh height can overflow that short viewport
31238
- // downward, which bottom-anchoring cannot.
31234
+ // Size to the real webview via top/bottom stretch. iOS standalone
31235
+ // walls off the home-indicator strip OUTSIDE the webview — forcing
31236
+ // 100lvh overflowed it and clipped the composer. The strip itself
31237
+ // is made invisible by matching the page background to the shell.
31239
31238
  overflow: "hidden",
31240
31239
  bgcolor: theme.palette.chat.shell,
31241
31240
  color: theme.palette.text.primary,
31242
31241
  position: "fixed",
31243
31242
  top: 0,
31244
31243
  bottom: 0,
31245
- height: "100dvh",
31246
- "@supports (height: 100lvh)": { height: "100lvh" },
31247
31244
  left: drawerOpen && !isMobile ? "340px" : 0,
31248
31245
  width: !isMobile && canvasOpen ? `calc(100vw - ${drawerOpen ? "340px" : "0px"} - ${CANVAS_WIDTH})` : drawerOpen && !isMobile ? "calc(100vw - 340px)" : "100vw",
31249
31246
  // Claude-style push (mobile only; desktop stays flush): the chat
@@ -31286,14 +31283,14 @@ var init_chat2 = __esm({
31286
31283
  }
31287
31284
  ),
31288
31285
  isTemporaryChat && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
31289
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
31286
+ !isMobile && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
31290
31287
  import_material54.Box,
31291
31288
  {
31292
31289
  sx: (theme) => ({
31293
31290
  position: "absolute",
31294
- inset: isMobile ? "3px" : 0,
31291
+ inset: 0,
31295
31292
  border: `3px solid ${theme.palette.mode === "dark" ? "rgba(255,255,255,0.55)" : "rgba(0,0,0,0.45)"}`,
31296
- borderRadius: isMobile ? "28px" : "inherit",
31293
+ borderRadius: "inherit",
31297
31294
  zIndex: 1400,
31298
31295
  pointerEvents: "none"
31299
31296
  })
@@ -31304,7 +31301,9 @@ var init_chat2 = __esm({
31304
31301
  {
31305
31302
  sx: (theme) => ({
31306
31303
  position: "absolute",
31307
- top: `calc(${theme.spacing(8)} + env(safe-area-inset-top, 0px))`,
31304
+ // Mobile: centered in the top-bar row between the two pills
31305
+ // (Claude's "Incognito chat" placement); desktop: below the bar.
31306
+ top: isMobile ? "calc(env(safe-area-inset-top, 0px) + 14px)" : `calc(${theme.spacing(8)} + env(safe-area-inset-top, 0px))`,
31308
31307
  left: "50%",
31309
31308
  transform: "translateX(-50%)",
31310
31309
  zIndex: 1401,
@@ -31313,14 +31312,15 @@ var init_chat2 = __esm({
31313
31312
  gap: 0.75,
31314
31313
  pl: 1.5,
31315
31314
  pr: 0.75,
31316
- py: 0.4,
31315
+ py: 0.6,
31317
31316
  borderRadius: 999,
31318
- fontSize: "0.78rem",
31319
- fontWeight: 600,
31320
- color: theme.palette.text.primary,
31321
- bgcolor: theme.palette.mode === "dark" ? "rgba(255,255,255,0.12)" : "rgba(0,0,0,0.08)",
31322
- border: `1px solid ${theme.palette.divider}`,
31323
- backdropFilter: "blur(8px)",
31317
+ fontSize: "0.82rem",
31318
+ fontWeight: 700,
31319
+ // Inverted, high-contrast — same treatment as the active
31320
+ // ghost toggle, so the mode is unmissable without a frame.
31321
+ color: theme.palette.getContrastText(theme.palette.text.primary),
31322
+ bgcolor: theme.palette.text.primary,
31323
+ boxShadow: `0 4px 16px ${theme.palette.mode === "dark" ? "rgba(0,0,0,0.5)" : "rgba(0,0,0,0.25)"}`,
31324
31324
  whiteSpace: "nowrap"
31325
31325
  }),
31326
31326
  children: [
@@ -31337,21 +31337,22 @@ var init_chat2 = __esm({
31337
31337
  display: "inline-flex",
31338
31338
  alignItems: "center",
31339
31339
  justifyContent: "center",
31340
- width: 20,
31341
- height: 20,
31340
+ width: 22,
31341
+ height: 22,
31342
31342
  ml: 0.25,
31343
31343
  p: 0,
31344
31344
  border: "none",
31345
31345
  borderRadius: "50%",
31346
31346
  cursor: "pointer",
31347
- color: theme.palette.text.secondary,
31347
+ color: "inherit",
31348
31348
  bgcolor: "transparent",
31349
31349
  font: "inherit",
31350
- fontSize: "0.85rem",
31350
+ fontSize: "0.9rem",
31351
31351
  lineHeight: 1,
31352
+ opacity: 0.75,
31352
31353
  "&:hover": {
31353
- bgcolor: theme.palette.mode === "dark" ? "rgba(255,255,255,0.15)" : "rgba(0,0,0,0.1)",
31354
- color: theme.palette.text.primary
31354
+ opacity: 1,
31355
+ bgcolor: theme.palette.mode === "dark" ? "rgba(0,0,0,0.12)" : "rgba(255,255,255,0.2)"
31355
31356
  }
31356
31357
  }),
31357
31358
  children: "\u2715"