@omg-dev/app 0.2.12 → 0.2.13

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,9 +1,21 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { M as n } from "./embedded-Bbmb33Vp.js";
2
+ import { M as n } from "./embedded-RT02naeG.js";
3
3
  const t = `# Changelog
4
4
 
5
5
  Recent product updates and deployment notes.
6
6
 
7
+ ## August 20, 2026 - The desktop Chat/Bots switch could disappear after selecting a bot (v0.2.13)
8
+
9
+ - **On desktop, opening a bot's conversation hid the Chat/Bots switch bar in
10
+ the rail, with no way back to the session list short of a reload.** A fix
11
+ that correctly took the switch out of the mobile full-screen bot chat (once
12
+ that view got its own "Back to bots" button, making the switch redundant
13
+ there) copied the same \`selectedBotId\` guard onto the desktop rail's own
14
+ switch. Desktop never gets that full-screen takeover — the rail keeps
15
+ showing the roster regardless of which bot or session is open in the stage
16
+ — so the guard just stranded desktop users on the Bots surface. The desktop
17
+ rail now always renders its switch; mobile's behavior is unchanged.
18
+
7
19
  ## August 20, 2026 - A selected bot could render as a plain session
8
20
 
9
21
  - **A persistent bot's chat could show the plain session header instead of
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as i, Fragment as te } from "react/jsx-runtime";
2
2
  import { memo as ne, useState as m, useRef as T, useCallback as v, useEffect as C, useMemo as q, Suspense as I } from "react";
3
3
  import { createPortal as re } from "react-dom";
4
4
  import { cn as y } from "cnfast";
5
- import { y as oe, z as H, F as se, X as U, E as ie, H as ae, L as J, I as le, l as de, x as ce, J as L } from "./embedded-Bbmb33Vp.js";
5
+ import { y as oe, z as H, F as se, X as U, E as ie, H as ae, L as J, I as le, l as de, x as ce, J as L } from "./embedded-RT02naeG.js";
6
6
  import { c as me } from "./create-BrnHvSDE.js";
7
7
  /**
8
8
  * @license lucide-react v0.577.0 - ISC
@@ -1,6 +1,6 @@
1
1
  import { jsxs as r, jsx as k, Fragment as ZA } from "react/jsx-runtime";
2
2
  import { useState as L, useRef as S, useEffect as x, useCallback as Y } from "react";
3
- import { y as cA, S as wQ, X as DA, a7 as sQ, l as tQ, a8 as eQ, a9 as aQ, z as MQ, aa as hQ, R as NQ, x as cQ } from "./embedded-Bbmb33Vp.js";
3
+ import { y as cA, S as wQ, X as DA, a7 as sQ, l as tQ, a8 as eQ, a9 as aQ, z as MQ, aa as hQ, R as NQ, x as cQ } from "./embedded-RT02naeG.js";
4
4
  /**
5
5
  * @license lucide-react v0.577.0 - ISC
6
6
  *
@@ -1,7 +1,7 @@
1
1
  import { jsx as ao } from "react/jsx-runtime";
2
2
  import { useRef as Dt, useCallback as Lt, useSyncExternalStore as ut, useEffect as so } from "react";
3
3
  import { g as io } from "./_commonjsHelpers-C6fGbg64.js";
4
- import { ab as uo } from "./embedded-Bbmb33Vp.js";
4
+ import { ab as uo } from "./embedded-RT02naeG.js";
5
5
  var Ar = "vercel.ai.error", co = Symbol.for(Ar), Ut, Ft, se = class Nr extends (Ft = Error, Ut = co, Ft) {
6
6
  /**
7
7
  * Creates an AI SDK Error.
@@ -1,5 +1,5 @@
1
1
  import { jsxs as t, jsx as e, Fragment as K } from "react/jsx-runtime";
2
- import { R as F, B as d, L as z, P as w, S as R, f as $, g, T, h as m, i as M, j as _, k as S, C as q, l as H, X as U, K as W } from "./embedded-Bbmb33Vp.js";
2
+ import { R as F, B as d, L as z, P as w, S as R, f as $, g, T, h as m, i as M, j as _, k as S, C as q, l as H, X as U, K as W } from "./embedded-RT02naeG.js";
3
3
  import { cn as E } from "cnfast";
4
4
  import { useState as A } from "react";
5
5
  function j(a) {
@@ -428,7 +428,7 @@ function _l(e) {
428
428
  return !t || t.toLowerCase() === "unknown" ? null : t;
429
429
  }
430
430
  function lg() {
431
- return _l("0.2.12");
431
+ return _l("0.2.13");
432
432
  }
433
433
  const ei = lg();
434
434
  function cg(e) {
@@ -8254,7 +8254,7 @@ const S2 = $s(function({
8254
8254
  ] }) : null;
8255
8255
  }), C2 = Qr(
8256
8256
  "session-files-panel",
8257
- () => import("./SessionFilesPanel-DWD7aIY0.js")
8257
+ () => import("./SessionFilesPanel-CaCEOii-.js")
8258
8258
  );
8259
8259
  function ec({ className: e, ...t }) {
8260
8260
  return /* @__PURE__ */ n(
@@ -8978,7 +8978,7 @@ async function B4() {
8978
8978
  }
8979
8979
  }
8980
8980
  const X2 = Fi(
8981
- () => import("./streamdown-response-1ykxO2Px.js").then((e) => e.a).then((e) => ({ default: e.StreamdownResponse }))
8981
+ () => import("./streamdown-response-BlwYN2WB.js").then((e) => e.a).then((e) => ({ default: e.StreamdownResponse }))
8982
8982
  );
8983
8983
  function Xs({ className: e, from: t, ...r }) {
8984
8984
  return /* @__PURE__ */ n(
@@ -11396,26 +11396,26 @@ function fN({ className: e, isStreaming: t, children: r, ...s }) {
11396
11396
  function mN({ className: e, children: t, ...r }) {
11397
11397
  return /* @__PURE__ */ n(ym, { className: $("mt-2 text-sm", e), ...r, children: /* @__PURE__ */ n(qo, { className: "ai-live-text max-w-full opacity-90", children: t }) });
11398
11398
  }
11399
- const pN = Fi(() => import("./chat-engine-BdVN8-3G.js"));
11399
+ const pN = Fi(() => import("./chat-engine-Bb22QP8h.js"));
11400
11400
  function hN() {
11401
- const e = () => void import("./chat-engine-BdVN8-3G.js"), t = globalThis.requestIdleCallback;
11401
+ const e = () => void import("./chat-engine-Bb22QP8h.js"), t = globalThis.requestIdleCallback;
11402
11402
  typeof t == "function" ? t(e, { timeout: 3e3 }) : setTimeout(e, 1500);
11403
11403
  }
11404
11404
  const Gm = Qr(
11405
11405
  "TermView",
11406
- () => import("./TermView-CFGTGN2b.js").then((e) => ({ default: e.TermView }))
11407
- ), pu = Qr("ShippedPage", () => import("./shipped-page-wO9nP6b2.js")), gN = Qr(
11406
+ () => import("./TermView-BI8rYaUh.js").then((e) => ({ default: e.TermView }))
11407
+ ), pu = Qr("ShippedPage", () => import("./shipped-page-_BnFc1dm.js")), gN = Qr(
11408
11408
  "SessionTokenUsageDialog",
11409
- () => import("./session-token-usage-Dy1q93gp.js")
11409
+ () => import("./session-token-usage-Cx_UOmuS.js")
11410
11410
  ), bN = Qr(
11411
11411
  "CodingAgentsPage",
11412
- () => import("./coding-agents-page-B6pPQQHA.js")
11412
+ () => import("./coding-agents-page-DmazJLfZ.js")
11413
11413
  ), hu = Qr(
11414
11414
  "ResumeSessionSheet",
11415
- () => import("./resume-session-sheet-DxTd_dnu.js")
11415
+ () => import("./resume-session-sheet-tcVo5Q9h.js")
11416
11416
  ), xN = Qr(
11417
11417
  "ChangelogPage",
11418
- () => import("./ChangelogPage-CE8CF_kk.js")
11418
+ () => import("./ChangelogPage-BGKHXsx-.js")
11419
11419
  ), Xi = qt("configured"), yN = {
11420
11420
  claude: "Claude",
11421
11421
  codex: "Codex",
@@ -18147,7 +18147,7 @@ function U5({
18147
18147
  }
18148
18148
  )
18149
18149
  ] }),
18150
- z ? null : /* @__PURE__ */ n(Mc, { active: ee, onOpenSessions: X, onOpenBots: H })
18150
+ /* @__PURE__ */ n(Mc, { active: ee, onOpenSessions: X, onOpenBots: H })
18151
18151
  ] }),
18152
18152
  /* @__PURE__ */ n("div", { className: "session-list-scroll min-h-0 flex-1 overflow-y-auto px-1.5 py-2", children: ee === "chat" ? Z : /* @__PURE__ */ c(De, { children: [
18153
18153
  Fn.length ? /* @__PURE__ */ n(
@@ -1,4 +1,4 @@
1
- import { R as c, L as f, A as d } from "./streamdown-response-1ykxO2Px.js";
1
+ import { R as c, L as f, A as d } from "./streamdown-response-BlwYN2WB.js";
2
2
  import { useContext as p, useState as L, useEffect as N } from "react";
3
3
  import { jsx as x } from "react/jsx-runtime";
4
4
  var A = ({ code: s, language: e, raw: a, className: o, startLine: m, lineNumbers: u, ...g }) => {
@@ -1,4 +1,4 @@
1
- import { w as T, s as U, h as X, c as Y, v as G, S as J, o as k, l as Q, f as M, m as y } from "./streamdown-response-1ykxO2Px.js";
1
+ import { w as T, s as U, h as X, c as Y, v as G, S as J, o as k, l as Q, f as M, m as y } from "./streamdown-response-BlwYN2WB.js";
2
2
  import v from "./katex-jHfnQmlp.js";
3
3
  function Z(t, e) {
4
4
  return B(t, {}) || { type: "root", children: [] };
package/dist-lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "@tanstack/react-router";
4
- import { ac as m, ad as o, ae as s } from "./embedded-Bbmb33Vp.js";
4
+ import { ac as m, ad as o, ae as s } from "./embedded-RT02naeG.js";
5
5
  export {
6
6
  m as OmgAppSurface,
7
7
  o as OmgSettingsSurface,
@@ -0,0 +1,4 @@
1
+ import { p } from "./streamdown-response-BlwYN2WB.js";
2
+ export {
3
+ p as Mermaid
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as s, Fragment as N } from "react/jsx-runtime";
2
- import { r as H, m as Q, a as re, n as le, o as oe, p as ie, X, A, R as B, q as ce, s as de, u as J, T as ue, v as me, w as he, x as pe, L as fe } from "./embedded-Bbmb33Vp.js";
2
+ import { r as H, m as Q, a as re, n as le, o as oe, p as ie, X, A, R as B, q as ce, s as de, u as J, T as ue, v as me, w as he, x as pe, L as fe } from "./embedded-RT02naeG.js";
3
3
  import { cn as u } from "cnfast";
4
4
  import { useState as a, useRef as L, useEffect as v, useCallback as ge } from "react";
5
5
  function ye({
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as n, Fragment as $ } from "react/jsx-runtime";
2
- import { a as C, D as T, b as M, c as D, d as S, G as F, e as L, t as R, L as j } from "./embedded-Bbmb33Vp.js";
2
+ import { a as C, D as T, b as M, c as D, d as S, G as F, e as L, t as R, L as j } from "./embedded-RT02naeG.js";
3
3
  import "@base-ui/react/collapsible";
4
4
  import { cn as z } from "cnfast";
5
5
  import { useState as p, useCallback as P, useEffect as U } from "react";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as r, Fragment as me } from "react/jsx-runtime";
2
2
  import { useState as f, useEffect as w, useRef as fe, useContext as $e, useMemo as Te } from "react";
3
- import { y as ve, N as he, O as ze, Q as S, U as ge, V as Se, W as Pe, Y as je, B as Fe, L as pe, u as J, x as Ye, R as Ge, T as Be, Z as Ke, j as be, f as Ue, _ as He, a as L, $ as k, a0 as R, k as _, a1 as W, a2 as Ve, a3 as qe, a4 as Qe, a5 as Xe, P as Je, a6 as We } from "./embedded-Bbmb33Vp.js";
3
+ import { y as ve, N as he, O as ze, Q as S, U as ge, V as Se, W as Pe, Y as je, B as Fe, L as pe, u as J, x as Ye, R as Ge, T as Be, Z as Ke, j as be, f as Ue, _ as He, a as L, $ as k, a0 as R, k as _, a1 as W, a2 as Ve, a3 as qe, a4 as Qe, a5 as Xe, P as Je, a6 as We } from "./embedded-RT02naeG.js";
4
4
  import { cn as P } from "cnfast";
5
5
  /**
6
6
  * @license lucide-react v0.577.0 - ISC
@@ -7,7 +7,7 @@ import { createPortal as Ju } from "react-dom";
7
7
  import { f as Ur, p as Ka, e as Za, g as Ja, h as Jn, s as Mt, z as eo, i as to, j as no, k as Bd, l as es, w as Fd, b as Hd, c as Ud, m as zd, d as $d } from "./engine-compile-BeZvvx0I.js";
8
8
  import { g as ro } from "./_commonjsHelpers-C6fGbg64.js";
9
9
  import { cn as io } from "cnfast";
10
- import { a7 as jd, l as qd, a8 as Yd } from "./embedded-Bbmb33Vp.js";
10
+ import { a7 as jd, l as qd, a8 as Yd } from "./embedded-RT02naeG.js";
11
11
  const Vd = {
12
12
  classId: "classID",
13
13
  dataType: "datatype",
@@ -18973,7 +18973,7 @@ var Cc = Jt(!1), xk = () => Pe(Cc), Ua = (...e) => rc($l(e)), Ak = (e, t) => {
18973
18973
  for (; t > 0 && e[t - 1] === `
18974
18974
  `; ) t--;
18975
18975
  return e.slice(0, t);
18976
- }, Lk = Zu(() => import("./highlighted-body-OFNGDK62-BmLnFO2i.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), Rk = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
18976
+ }, Lk = Zu(() => import("./highlighted-body-OFNGDK62-CEbbbEMt.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), Rk = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
18977
18977
  let o = ee(), l = Ee(() => wk(e), [e]), d = Ee(() => ({ bg: "transparent", fg: "inherit", tokens: l.split(`
18978
18978
  `).map((f) => [{ content: f, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [l]);
18979
18979
  return y(Ic.Provider, { value: { code: e }, children: J(Nk, { isIncomplete: i, language: t, children: [y(Sk, { language: t }), r ? y("div", { className: o("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"), children: y("div", { className: o("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: r }) }) : null, y(wi, { fallback: y(Ik, { className: n, language: t, lineNumbers: s, result: d, startLine: a, ...u }), children: y(Lk, { className: n, code: l, language: t, lineNumbers: s, raw: d, startLine: a, ...u }) })] }) });
@@ -19315,7 +19315,7 @@ var Cc = Jt(!1), xk = () => Pe(Cc), Ua = (...e) => rc($l(e)), Ak = (e, t) => {
19315
19315
  }, Jk = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...s }) => {
19316
19316
  let u = ee(), o = n && r, l = n && i, d = n && a, f = o || l || d;
19317
19317
  return J("div", { className: u("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [f ? J("div", { className: u("flex items-center justify-end gap-1"), children: [o ? y(Oc, {}) : null, l ? y(Dc, {}) : null, d ? y(Zk, { showCopy: o, showDownload: l, children: e }) : null] }) : null, y("div", { className: u("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), children: y("table", { className: u("w-full divide-y divide-border", t), "data-streamdown": "table", ...s, children: e }) })] });
19318
- }, ex = /startLine=(\d+)/, tx = /\bnoLineNumbers\b/, nx = Zu(() => import("./mermaid-GHXKKRXX-Cw33wqTA.js").then((e) => ({ default: e.Mermaid }))), rx = /language-([^\s]+)/;
19318
+ }, ex = /startLine=(\d+)/, tx = /\bnoLineNumbers\b/, nx = Zu(() => import("./mermaid-GHXKKRXX-D7tiGUK-.js").then((e) => ({ default: e.Mermaid }))), rx = /language-([^\s]+)/;
19319
19319
  function Jr(e, t) {
19320
19320
  if (!(e != null && e.position || t != null && t.position)) return !0;
19321
19321
  if (!(e != null && e.position && t != null && t.position)) return !1;
@@ -20828,7 +20828,7 @@ function w6(e) {
20828
20828
  }
20829
20829
  function L6() {
20830
20830
  return Tr || (Tr = Promise.all([
20831
- import("./index-YN1b9p7s.js"),
20831
+ import("./index-DsMQG9W2.js"),
20832
20832
  import("./index-JkCQXUYs.js").then((e) => e.bp)
20833
20833
  ]).then(([e, t]) => {
20834
20834
  Hn = { math: e.math, mermaid: t.mermaid };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omg-dev/app",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "The full OMG application surface for React hosts.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://omg.dev",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "type": "module",
26
26
  "dependencies": {
27
- "@omg-dev/client": "0.2.12",
27
+ "@omg-dev/client": "0.2.13",
28
28
  "@ai-sdk/react": "^4.0.19",
29
29
  "@base-ui/react": "^1.6.0",
30
30
  "@number-flow/react": "^0.6.2",
@@ -1,4 +0,0 @@
1
- import { p } from "./streamdown-response-1ykxO2Px.js";
2
- export {
3
- p as Mermaid
4
- };