@omg-dev/app 0.3.0 → 0.5.0

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.
Files changed (27) hide show
  1. package/dist-lib/{ChangelogPage-tITBP5A1.js → ChangelogPage-8lbvM9Pz.js} +109 -1
  2. package/dist-lib/{File-BszRWhXA.js → File-B-qYa2zY.js} +1 -1
  3. package/dist-lib/{FileEditor-ByMnm-sa.js → FileEditor-BIz0qCyW.js} +2 -2
  4. package/dist-lib/{FileViewer-DgjR_OJp.js → FileViewer-Clmf04v1.js} +1 -1
  5. package/dist-lib/{SessionFilesPanel-T3CkIp2a.js → SessionFilesPanel-BKcTU57t.js} +2 -2
  6. package/dist-lib/{TermView-BJiSY2oC.js → TermView-gazV6UMU.js} +1 -1
  7. package/dist-lib/{chat-engine-ChrOJLdY.js → chat-engine-83mwx0z2.js} +1 -1
  8. package/dist-lib/{streamdown-response-Bt7VM-cZ.js → chunk-BO2N2NFS-kYiI5SD9.js} +5006 -6023
  9. package/dist-lib/{coding-agents-page-Bsy-dsUo.js → coding-agents-page-8Nf-IuE2.js} +80 -80
  10. package/dist-lib/embedded-BmrQsEvQ.js +32771 -0
  11. package/dist-lib/engine-compile-BeDRSL6Y.js +9199 -0
  12. package/dist-lib/{highlighted-body-OFNGDK62-bfel3kiX.js → highlighted-body-OFNGDK62-C2DGVKV8.js} +4 -4
  13. package/dist-lib/index-BXzud6tj.js +1247 -0
  14. package/dist-lib/{index-BNac_jIC.js → index-DWkBvb-9.js} +27 -27
  15. package/dist-lib/{index-Bw4EY_Nm.js → index-DcwavxA1.js} +3 -3
  16. package/dist-lib/index-Dtkd4mEk.js +29 -0
  17. package/dist-lib/index.js +1 -1
  18. package/dist-lib/mermaid-GHXKKRXX-Ox_2d3uB.js +4 -0
  19. package/dist-lib/{resume-session-sheet-CsBKi_wb.js → resume-session-sheet-Dr_81Gfm.js} +1 -1
  20. package/dist-lib/{session-token-usage-CTQR54Yk.js → session-token-usage-CGhHZ3lT.js} +1 -1
  21. package/dist-lib/{shipped-page-B46DR9zS.js → shipped-page-p3oulUiM.js} +1 -1
  22. package/dist-lib/streamdown-response-Dbn0PKUH.js +1051 -0
  23. package/dist-lib/styles.css +1 -1
  24. package/package.json +4 -2
  25. package/dist-lib/embedded-cpSkU0tg.js +0 -28023
  26. package/dist-lib/engine-compile-BeZvvx0I.js +0 -10442
  27. package/dist-lib/mermaid-GHXKKRXX-CTlo5kzO.js +0 -4
@@ -1,5 +1,5 @@
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-Bt7VM-cZ.js";
2
- import v from "./katex-jHfnQmlp.js";
1
+ import { w as T, g as U, h as X, l as Y, v as G, S as J, m as k, q as Q, y as M, z as y } from "./chunk-BO2N2NFS-kYiI5SD9.js";
2
+ import z from "./katex-jHfnQmlp.js";
3
3
  function Z(t, e) {
4
4
  return B(t, {}) || { type: "root", children: [] };
5
5
  }
@@ -31,7 +31,7 @@ function tt(t, e) {
31
31
  t
32
32
  );
33
33
  case 9:
34
- return z(
34
+ return v(
35
35
  /** @type {Document} */
36
36
  t,
37
37
  e
@@ -39,7 +39,7 @@ function tt(t, e) {
39
39
  case 10:
40
40
  return et();
41
41
  case 11:
42
- return z(
42
+ return v(
43
43
  /** @type {DocumentFragment} */
44
44
  t,
45
45
  e
@@ -48,7 +48,7 @@ function tt(t, e) {
48
48
  return;
49
49
  }
50
50
  }
51
- function z(t, e) {
51
+ function v(t, e) {
52
52
  return { type: "root", children: L(t, e) };
53
53
  }
54
54
  function et() {
@@ -91,7 +91,7 @@ function ot(t) {
91
91
  const e = document.createElement("template");
92
92
  return e.innerHTML = t, e.content;
93
93
  }
94
- const A = (
94
+ const q = (
95
95
  // Note: overloads like this are needed to support optional generics.
96
96
  /**
97
97
  * @type {(
@@ -180,7 +180,7 @@ function st(t) {
180
180
  function ct(t) {
181
181
  return t !== null && typeof t == "object" && "type" in t && "tagName" in t;
182
182
  }
183
- const I = /\n/g, P = /[\t ]+/g, N = F("br"), q = F(wt), ht = F("p"), D = F("tr"), mt = F([
183
+ const A = /\n/g, I = /[\t ]+/g, N = F("br"), P = F(wt), ht = F("p"), D = F("tr"), mt = F([
184
184
  // List from: <https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements>
185
185
  "datalist",
186
186
  "head",
@@ -322,7 +322,7 @@ function ft(t, e, r) {
322
322
  return o;
323
323
  let s, a;
324
324
  for (N(t) || D(t) && // @ts-expect-error: something up with types of parents.
325
- A(e, t, D) ? a = `
325
+ q(e, t, D) ? a = `
326
326
  ` : ht(t) ? (s = 2, a = 2) : _(t) && (s = 1, a = 1); ++u < n.length; )
327
327
  o = o.concat(
328
328
  j(n[u], t, {
@@ -331,15 +331,15 @@ function ft(t, e, r) {
331
331
  breakAfter: u < n.length - 1 ? N(n[u + 1]) : a
332
332
  })
333
333
  );
334
- return q(t) && // @ts-expect-error: something up with types of parents.
335
- A(e, t, q) && o.push(" "), s && o.unshift(s), a && o.push(a), o;
334
+ return P(t) && // @ts-expect-error: something up with types of parents.
335
+ q(e, t, P) && o.push(" "), s && o.unshift(s), a && o.push(a), o;
336
336
  }
337
337
  function V(t, e) {
338
338
  const r = String(t.value), i = [], n = [];
339
339
  let u = 0;
340
340
  for (; u <= r.length; ) {
341
- I.lastIndex = u;
342
- const a = I.exec(r), c = a && "index" in a ? a.index : r.length;
341
+ A.lastIndex = u;
342
+ const a = A.exec(r), c = a && "index" in a ? a.index : r.length;
343
343
  i.push(
344
344
  // Any sequence of collapsible spaces and tabs immediately preceding or
345
345
  // following a segment break is removed.
@@ -365,8 +365,8 @@ function gt(t, e, r) {
365
365
  const i = [];
366
366
  let n = 0, u;
367
367
  for (; n < t.length; ) {
368
- P.lastIndex = n;
369
- const o = P.exec(t);
368
+ I.lastIndex = n;
369
+ const o = I.exec(t);
370
370
  u = o ? o.index : t.length, !n && !u && o && !e && i.push(""), n !== u && i.push(t.slice(n, u)), n = o ? u + o[0].length : u;
371
371
  }
372
372
  return n !== u && !r && i.push(""), i.join(" ");
@@ -415,7 +415,7 @@ function bt(t) {
415
415
  const d = pt(g, { whitespace: "pre" });
416
416
  let f;
417
417
  try {
418
- f = v.renderToString(d, {
418
+ f = z.renderToString(d, {
419
419
  ...e,
420
420
  displayMode: m,
421
421
  throwOnError: !0
@@ -433,7 +433,7 @@ function bt(t) {
433
433
  source: "rehype-katex"
434
434
  });
435
435
  try {
436
- f = v.renderToString(d, {
436
+ f = z.renderToString(d, {
437
437
  ...e,
438
438
  displayMode: m,
439
439
  strict: "ignore",
@@ -675,7 +675,7 @@ function St(t) {
675
675
  return r == null && (r = !0), {
676
676
  tokenize: i,
677
677
  resolve: $t,
678
- previous: vt,
678
+ previous: zt,
679
679
  name: "mathText"
680
680
  };
681
681
  function i(n, u, o) {
@@ -711,10 +711,10 @@ function $t(t) {
711
711
  n === void 0 ? i !== e && t[i][1].type !== "lineEnding" && (n = i) : (i === e || t[i][1].type === "lineEnding") && (t[n][1].type = "mathTextData", i !== n + 2 && (t[n][1].end = t[i - 1][1].end, t.splice(n + 2, i - n - 2), e -= i - n - 2, i = n + 2), n = void 0);
712
712
  return t;
713
713
  }
714
- function vt(t) {
714
+ function zt(t) {
715
715
  return t !== 36 || this.events[this.events.length - 1][1].type === "characterEscape";
716
716
  }
717
- function zt(t) {
717
+ function vt(t) {
718
718
  return {
719
719
  flow: {
720
720
  36: Nt
@@ -724,23 +724,23 @@ function zt(t) {
724
724
  }
725
725
  };
726
726
  }
727
- const At = {};
728
- function It(t) {
727
+ const qt = {};
728
+ function At(t) {
729
729
  const e = (
730
730
  /** @type {Processor} */
731
731
  this
732
- ), r = t || At, i = e.data(), n = i.micromarkExtensions || (i.micromarkExtensions = []), u = i.fromMarkdownExtensions || (i.fromMarkdownExtensions = []), o = i.toMarkdownExtensions || (i.toMarkdownExtensions = []);
733
- n.push(zt(r)), u.push(Mt()), o.push(Tt(r));
732
+ ), r = t || qt, i = e.data(), n = i.micromarkExtensions || (i.micromarkExtensions = []), u = i.fromMarkdownExtensions || (i.fromMarkdownExtensions = []), o = i.toMarkdownExtensions || (i.toMarkdownExtensions = []);
733
+ n.push(vt(r)), u.push(Mt()), o.push(Tt(r));
734
734
  }
735
- function Pt(t = {}) {
735
+ function It(t = {}) {
736
736
  var e, r;
737
- let i = [It, { singleDollarTextMath: (e = t.singleDollarTextMath) != null ? e : !1 }], n = [bt, { errorColor: (r = t.errorColor) != null ? r : "var(--color-muted-foreground)" }];
737
+ let i = [At, { singleDollarTextMath: (e = t.singleDollarTextMath) != null ? e : !1 }], n = [bt, { errorColor: (r = t.errorColor) != null ? r : "var(--color-muted-foreground)" }];
738
738
  return { name: "katex", type: "math", remarkPlugin: i, rehypePlugin: n, getStyles() {
739
739
  return "katex/dist/katex.min.css";
740
740
  } };
741
741
  }
742
- var Ot = Pt();
742
+ var Ot = It();
743
743
  export {
744
- Pt as createMathPlugin,
744
+ It as createMathPlugin,
745
745
  Ot as math
746
746
  };
@@ -1,11 +1,11 @@
1
1
  var Rn = Object.defineProperty;
2
2
  var Hn = (e, t, n) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var v = (e, t, n) => Hn(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { C as Qt, j as Ee, M as An, G as wn, o as en, l as pe, t as Tn, u as bn, v as In, D as ue, w as St, x as Lt, y as Dn, z as tn, A as Mn, B as Fn, H as Pn, I as zn, J as xe, K as nn, S as Nn, L as G, N as We, O as On, P as Xe, Q as Un, R as Bn, T as Vn, U as Wn, V as _n, W as Gn, X as $n, Y as vt, Z as sn, _ as xt, $ as Kn, a0 as Q, a1 as jn, a2 as rn, a3 as yt, a4 as qn, a5 as De, a6 as Xn, a7 as Jn, a8 as Yn, a9 as Zn, aa as kt, k as Qn, ab as ei, ac as ti, q as ni, ad as ii, ae as si, af as Et, ag as ri, ah as oi, ai, aj as li, ak as di, al as hi, am as Rt, an as ui, ao as ci, m as fi, ap as Ht, aq as Je, ar as pi, as as gi, at as on, au as mi, av as Ye, aw as Ci, ax as Si, ay as an, az as Li, aA as vi, aB as xi, aC as yi, aD as ki, aE as At, aF as Ei, aG as Ri } from "./File-BszRWhXA.js";
5
- import { aH as eo, E as to, F as no, aI as io, aJ as so, aK as ro } from "./File-BszRWhXA.js";
4
+ import { C as Qt, j as Ee, M as An, G as wn, o as en, l as pe, t as Tn, u as bn, v as In, D as ue, w as St, x as Lt, y as Dn, z as tn, A as Mn, B as Fn, H as Pn, I as zn, J as xe, K as nn, S as Nn, L as G, N as We, O as On, P as Xe, Q as Un, R as Bn, T as Vn, U as Wn, V as _n, W as Gn, X as $n, Y as vt, Z as sn, _ as xt, $ as Kn, a0 as Q, a1 as jn, a2 as rn, a3 as yt, a4 as qn, a5 as De, a6 as Xn, a7 as Jn, a8 as Yn, a9 as Zn, aa as kt, k as Qn, ab as ei, ac as ti, q as ni, ad as ii, ae as si, af as Et, ag as ri, ah as oi, ai, aj as li, ak as di, al as hi, am as Rt, an as ui, ao as ci, m as fi, ap as Ht, aq as Je, ar as pi, as as gi, at as on, au as mi, av as Ye, aw as Ci, ax as Si, ay as an, az as Li, aA as vi, aB as xi, aC as yi, aD as ki, aE as At, aF as Ei, aG as Ri } from "./File-B-qYa2zY.js";
5
+ import { aH as eo, E as to, F as no, aI as io, aJ as so, aK as ro } from "./File-B-qYa2zY.js";
6
6
  import { jsxs as wt, Fragment as Tt, jsx as he } from "react/jsx-runtime";
7
7
  import { D as ln, a as Hi } from "./create-BrnHvSDE.js";
8
- import { t as fe } from "./engine-compile-BeZvvx0I.js";
8
+ import { t as fe } from "./engine-compile-BeDRSL6Y.js";
9
9
  import { useContext as Ai, useRef as wi, useCallback as Ti, useEffect as bi, useLayoutEffect as Ii, useMemo as Di } from "react";
10
10
  function Mi({ hunkIndex: e, lineIndex: t, conflictIndex: n }) {
11
11
  return `merge-conflict-action-${e}-${t}-${n}`;
@@ -0,0 +1,29 @@
1
+ import { k as e } from "./chunk-BO2N2NFS-kYiI5SD9.js";
2
+ import { T as s, s as l, o as n, A as r, i as d, r as c, O as k, Q as m, R as C, a as i, P as T, b as p, x as u, K as B, D, c as w, $ as b, j as f, u as x, J as S, n as I, d as P, e as g, t as y } from "./chunk-BO2N2NFS-kYiI5SD9.js";
3
+ export {
4
+ s as Block,
5
+ l as CodeBlock,
6
+ n as CodeBlockContainer,
7
+ r as CodeBlockCopyButton,
8
+ d as CodeBlockDownloadButton,
9
+ c as CodeBlockHeader,
10
+ k as CodeBlockSkeleton,
11
+ m as Streamdown,
12
+ C as StreamdownContext,
13
+ i as TableCopyDropdown,
14
+ T as TableDownloadDropdown,
15
+ p as createAnimatePlugin,
16
+ u as defaultRehypePlugins,
17
+ B as defaultRemarkPlugins,
18
+ D as defaultTranslations,
19
+ w as defaultUrlTransform,
20
+ b as detectTextDirection,
21
+ f as escapeMarkdownTableCell,
22
+ x as extractTableDataFromElement,
23
+ S as normalizeHtmlIndentation,
24
+ e as parseMarkdownIntoBlocks,
25
+ I as tableDataToCSV,
26
+ P as tableDataToMarkdown,
27
+ g as tableDataToTSV,
28
+ y as useIsCodeFenceIncomplete
29
+ };
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 { ad as m, ae as o, af as s } from "./embedded-cpSkU0tg.js";
4
+ import { ad as m, ae as o, af as s } from "./embedded-BmrQsEvQ.js";
5
5
  export {
6
6
  m as OmgAppSurface,
7
7
  o as OmgSettingsSurface,
@@ -0,0 +1,4 @@
1
+ import { p } from "./chunk-BO2N2NFS-kYiI5SD9.js";
2
+ export {
3
+ p as Mermaid
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as s, Fragment as R } from "react/jsx-runtime";
2
- import { r as X, P as J, a as le, f as oe, g as ie, h as ce, X as K, A as P, R as Y, i as de, S as ue, j as Z, T as me, k as he, l as pe, C as fe, L as ge } from "./embedded-cpSkU0tg.js";
2
+ import { r as X, P as J, a as le, f as oe, g as ie, h as ce, X as K, A as P, R as Y, i as de, S as ue, j as Z, T as me, k as he, l as pe, C as fe, L as ge } from "./embedded-BmrQsEvQ.js";
3
3
  import { cn as x } from "cnfast";
4
4
  import { useState as a, useRef as E, useEffect as C, useCallback as xe } from "react";
5
5
  function be(r) {
@@ -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-cpSkU0tg.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-BmrQsEvQ.js";
3
3
  import { useState as p, useCallback as z, useEffect as P } from "react";
4
4
  import "@base-ui/react/collapsible";
5
5
  import { cn as U } from "cnfast";
@@ -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 $e } from "react";
3
- import { y as ze, z as he, E as Te, F as S, H as ge, I as Se, J as je, N as Fe, B as Pe, L as pe, O as Ye, j as q, C as Ge, R as Be, T as Ke, Q as Ue, u as be, o as He, U as Ve, a as R, V as k, W as L, v as M, Y as W, Z as Je, _ as Qe, $ as Xe, a0 as qe, m as We, a1 as Ze } from "./embedded-cpSkU0tg.js";
3
+ import { y as ze, z as he, E as Te, F as S, H as ge, I as Se, J as je, N as Fe, B as Pe, L as pe, O as Ye, j as q, C as Ge, R as Be, T as Ke, Q as Ue, u as be, o as He, U as Ve, a as R, V as k, W as L, v as M, Y as W, Z as Je, _ as Qe, $ as Xe, a0 as qe, m as We, a1 as Ze } from "./embedded-BmrQsEvQ.js";
4
4
  import { cn as j } from "cnfast";
5
5
  /**
6
6
  * @license lucide-react v0.577.0 - ISC