@marimo-team/islands 0.25.3-dev273 → 0.25.3-dev279

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 (143) hide show
  1. package/dist/{ConnectedDataExplorerComponent-eLHPh6uu.js → ConnectedDataExplorerComponent-CErm132k.js} +25 -26
  2. package/dist/{ErrorBoundary-DBh-wUT9.js → ErrorBoundary-DmTMuDPR.js} +43 -44
  3. package/dist/{abnfDiagram-VCTEODGH-hqd0IBtX.js → abnfDiagram-VCTEODGH-d-Qn2fwb.js} +2 -2
  4. package/dist/{any-language-editor-DnG26QXh.js → any-language-editor-6k6F12Z3.js} +3 -3
  5. package/dist/{architectureDiagram-5GKGNRK7-BzLAFcc0.js → architectureDiagram-5GKGNRK7-DxragHYv.js} +1 -1
  6. package/dist/{assertNever-DIU3JJbt.js → assertNever-B-YzWzbL.js} +14 -14
  7. package/dist/{button-0-RqY1DW.js → button-DZuNnIZO.js} +220 -223
  8. package/dist/{capabilities-B6yy_CBN.js → capabilities-D9FskwsK.js} +1 -1
  9. package/dist/{chat-ui-BWIkve2R.js → chat-ui-v1Fdh0NA.js} +332 -333
  10. package/dist/{check-gUSZbRsl.js → check-XFzZeH-y.js} +1 -1
  11. package/dist/{chunk-IMKFNOWR-DOeVvuyE.js → chunk-IMKFNOWR-C0x0feFg.js} +1 -1
  12. package/dist/{chunk-SHT3W25Y-DZoFI8wR.js → chunk-SHT3W25Y-D0ZdASqB.js} +1 -1
  13. package/dist/{chunk-SVP7TREG-CWu86PSW.js → chunk-SVP7TREG-BHjL96zx.js} +1 -1
  14. package/dist/{chunk-TICWLB2K-BrM0GoP3.js → chunk-TICWLB2K-CzcrwGfp.js} +1 -1
  15. package/dist/{classDiagram-ZZMXUADV-DYi4V2bB.js → classDiagram-ZZMXUADV-BTqFAZTP.js} +2 -2
  16. package/dist/{classDiagram-v2-VYDZK3BY-tN7FIk-m.js → classDiagram-v2-VYDZK3BY-EPXb0Elt.js} +2 -2
  17. package/dist/{code-visibility-M_dXDGp6.js → code-visibility-Dw4-TXN0.js} +20 -20
  18. package/dist/{common-DV0fvw_I.js → common-BXMFi4lr.js} +5399 -5397
  19. package/dist/{config-BsPruWMR.js → config-C8MFHQ2E.js} +23 -22
  20. package/dist/{copy-icon-C2I8sw4h.js → copy-icon-CtllOdmg.js} +3 -3
  21. package/dist/{createReducer-DdtT_7ji.js → createReducer-DRqwmaTc.js} +2 -2
  22. package/dist/{cynefinDiagram-5FMLGOSQ-D5nCnDc-.js → cynefinDiagram-5FMLGOSQ-CBSD344q.js} +1 -1
  23. package/dist/{dagre-GXQ25YYZ-BHkd7f_i.js → dagre-GXQ25YYZ-JItjh3Ge.js} +1 -1
  24. package/dist/{data-grid-overlay-editor-Cd1zGKBt.js → data-grid-overlay-editor-hZzwX7Ia.js} +1 -1
  25. package/dist/{diagram-S7CK7UJ4-D1ALppT2.js → diagram-S7CK7UJ4-CTD9xTVb.js} +1 -1
  26. package/dist/{diagram-UQ7AKVKN-DLv0b83L.js → diagram-UQ7AKVKN-DTfnFai8.js} +1 -1
  27. package/dist/{diagram-VX7I27RA-7XJ7J6qg.js → diagram-VX7I27RA-BcSnucV-.js} +1 -1
  28. package/dist/{diagram-Z3DM3KII-7M7zbHp_.js → diagram-Z3DM3KII-C2ATIE8A.js} +1 -1
  29. package/dist/{dialog-DzCj1qQv.js → dialog-CaYm5imE.js} +33 -33
  30. package/dist/{dropdown-menu-CdXE15an.js → dropdown-menu-Bb0bFOIk.js} +149 -149
  31. package/dist/{ebnfDiagram-PWID7BFC-DHH1qlmV.js → ebnfDiagram-PWID7BFC-B7B9JPxc.js} +2 -2
  32. package/dist/{erDiagram-RLTQ6QDP-fI_0dGef.js → erDiagram-RLTQ6QDP-v6hDno1O.js} +1 -1
  33. package/dist/{error-banner-DPc9eIw5.js → error-banner-CHCdHVFB.js} +44 -45
  34. package/dist/{error-entries-CxN-Nq3V.js → error-entries-C1S-Rmyt.js} +563 -554
  35. package/dist/{feedback-button-CE2gPi4-.js → feedback-button-6Ui2TDLR.js} +12 -12
  36. package/dist/{flowDiagram-HODETNUW-Brg9MA6i.js → flowDiagram-HODETNUW-aIFlAtOy.js} +2 -2
  37. package/dist/{formats-DbSvAPY-.js → formats-PzBQMUnr.js} +3 -3
  38. package/dist/{glide-data-editor-BycATbgF.js → glide-data-editor-PZNlrSDI.js} +14 -16
  39. package/dist/{glide-utils-BSw3SSHF.js → glide-utils-BSQr4d90.js} +51 -59
  40. package/dist/{globals-CW6OvnI5.js → globals-DX6FPZYq.js} +3 -3
  41. package/dist/{html-to-image-Bc2AvXHG.js → html-to-image-CqGUd58T.js} +14529 -14531
  42. package/dist/{infoDiagram-27XIBGKW-E9e403YT.js → infoDiagram-27XIBGKW-D6YHLeCP.js} +1 -1
  43. package/dist/{ishikawaDiagram-5VMMS53U-C-RlYDRo.js → ishikawaDiagram-5VMMS53U-D1ZvprOX.js} +1 -1
  44. package/dist/{kanban-definition-UXKFOSKX-CLFl_uqK.js → kanban-definition-UXKFOSKX-Bna_3BMr.js} +1 -1
  45. package/dist/{loader-BVEtQ4F3.js → loader-DZvtzQoD.js} +1 -1
  46. package/dist/main.js +7357 -7361
  47. package/dist/{mermaid-rd09e1JL.js → mermaid-A36unKXJ.js} +50 -50
  48. package/dist/{mindmap-definition-YA3MSWOX-BQ8TWtyB.js → mindmap-definition-YA3MSWOX-CyVCs__G.js} +1 -1
  49. package/dist/{number-overlay-editor-B_rR-LdM.js → number-overlay-editor-D0CsL3_R.js} +1 -1
  50. package/dist/{pegDiagram-XKGWAZYB-CN8UHFPi.js → pegDiagram-XKGWAZYB-9hNBD2wZ.js} +2 -2
  51. package/dist/{pencil-DcT8AE0h.js → pencil-DYUlSKxZ.js} +1 -1
  52. package/dist/{pieDiagram-E7YTZNPT-DGuJ0EBd.js → pieDiagram-E7YTZNPT-8tr-NYo7.js} +1 -1
  53. package/dist/{process-output-qecD7Dk8.js → process-output-DskX9jLa.js} +4 -4
  54. package/dist/{railroadDiagram-O6MQD6OU-BPDA8wy8.js → railroadDiagram-O6MQD6OU-Dzg1dyyp.js} +2 -2
  55. package/dist/{requirementDiagram-BXWQKSXE-ChzLGbGW.js → requirementDiagram-BXWQKSXE-B7sNqwGG.js} +1 -1
  56. package/dist/{reveal-component-CngVwOSy.js → reveal-component-D7xeI1QR.js} +1003 -1003
  57. package/dist/{select-OxgozOC8.js → select-DsoP1qe8.js} +290 -290
  58. package/dist/{sequenceDiagram-WJ2MYXX4-DFX-bE6O.js → sequenceDiagram-WJ2MYXX4-oP9shbaG.js} +1 -1
  59. package/dist/{spec-oJn0RhpQ.js → spec-BZMDxAu7.js} +4 -4
  60. package/dist/{stateDiagram-D77RDMKH-BR7cI3wK.js → stateDiagram-D77RDMKH-CjCv4ogv.js} +2 -2
  61. package/dist/{stateDiagram-v2-MP3YSRHH-oGqB5UDI.js → stateDiagram-v2-MP3YSRHH-BW9X162a.js} +2 -2
  62. package/dist/{static-state-CuV6Pc3a.js → static-state-D-Q-Ajaa.js} +8 -8
  63. package/dist/style.css +1 -1
  64. package/dist/{swimlanes-42K2YHIH-DwSZl1yC.js → swimlanes-42K2YHIH-Ckfs9Wrn.js} +1 -1
  65. package/dist/{swimlanesDiagram-VR7AAH4N-BHlcd-Ri.js → swimlanesDiagram-VR7AAH4N-DpTNG9YP.js} +2 -2
  66. package/dist/{swiper-component-Dvj-goaD.js → swiper-component-DQbK_ZWm.js} +7 -7
  67. package/dist/{timeline-definition-24CTP7MA-DMmP-G2O.js → timeline-definition-24CTP7MA-BXaBlV6U.js} +1 -1
  68. package/dist/{toast-DbBHmxmB.js → toast-BhjIy3Tq.js} +158 -158
  69. package/dist/{tooltip-BfcDQd2j.js → tooltip-DMMiOn2f.js} +64 -64
  70. package/dist/use-restore-focus-CosX7-gx.js +7568 -0
  71. package/dist/{useAsyncData-BYIAoMqn.js → useAsyncData-Ci4AvJff.js} +4 -4
  72. package/dist/{useDateFormatter-ButWkdcK.js → useDateFormatter-CPlava52.js} +2 -2
  73. package/dist/{useDeepCompareMemoize-Bz0c5GN6.js → useDeepCompareMemoize-NaaWoFlX.js} +1 -1
  74. package/dist/useEvent-BRH-aCqi.js +19 -0
  75. package/dist/{useIframeCapabilities-BIolGsF1.js → useIframeCapabilities-BXhDDoCG.js} +1 -1
  76. package/dist/{useLifecycle-JjxCC7Vu.js → useLifecycle-SniivYmC.js} +2 -2
  77. package/dist/{vega-component-rxIxAAh9.js → vega-component-DIxaDQNs.js} +40 -40
  78. package/dist/{vennDiagram-4TSXK5OY-Db8GtH1G.js → vennDiagram-4TSXK5OY-C-hQ4iNJ.js} +1 -1
  79. package/dist/{wardleyDiagram-VM6X3IG4-DmIiC3FU.js → wardleyDiagram-VM6X3IG4-C2MQ_Umv.js} +1 -1
  80. package/dist/{xychartDiagram-S5SC5T6Z-DS9OPrNq.js → xychartDiagram-S5SC5T6Z-BtTTBn7Q.js} +1 -1
  81. package/package.json +1 -1
  82. package/src/__mocks__/executions.ts +4 -2
  83. package/src/__mocks__/notebook.ts +0 -2
  84. package/src/__tests__/CellStatus.test.tsx +6 -6
  85. package/src/components/editor/__tests__/data-attributes.test.tsx +0 -2
  86. package/src/components/editor/__tests__/output-persistence.test.tsx +20 -5
  87. package/src/components/editor/cell/CellStatus.tsx +6 -5
  88. package/src/components/editor/cell/__tests__/useRunCells.test.tsx +169 -0
  89. package/src/components/editor/cell/collapse.tsx +3 -4
  90. package/src/components/editor/cell/useRunCells.ts +32 -3
  91. package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +2 -3
  92. package/src/components/editor/notebook-cell.tsx +23 -37
  93. package/src/components/editor/renderers/grid-layout/grid-layout.tsx +4 -10
  94. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +0 -2
  95. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +8 -5
  96. package/src/components/slides/minimap.tsx +3 -2
  97. package/src/components/slides/reveal-component.tsx +3 -2
  98. package/src/components/slides/slide-cell-view.tsx +8 -8
  99. package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +0 -101
  100. package/src/core/cells/__tests__/actions.test.ts +0 -1
  101. package/src/core/cells/__tests__/cell.test.ts +81 -17
  102. package/src/core/cells/__tests__/cells.test.ts +0 -100
  103. package/src/core/cells/__tests__/document.test.ts +2 -8
  104. package/src/core/cells/__tests__/utils.test.ts +93 -24
  105. package/src/core/cells/actions.ts +0 -1
  106. package/src/core/cells/cell.ts +37 -14
  107. package/src/core/cells/cells.ts +10 -99
  108. package/src/core/cells/document.ts +2 -13
  109. package/src/core/cells/types.ts +0 -23
  110. package/src/core/cells/utils.ts +44 -17
  111. package/src/core/codemirror/cells/extensions.ts +0 -14
  112. package/src/core/errors/__tests__/error-entries.test.ts +40 -1
  113. package/src/core/errors/error-entries.ts +2 -3
  114. package/src/core/executions/__tests__/freshness.test.ts +420 -0
  115. package/src/core/executions/__tests__/hooks.test.tsx +106 -0
  116. package/src/core/executions/atoms.ts +22 -0
  117. package/src/core/executions/freshness.ts +164 -0
  118. package/src/core/executions/hooks.ts +17 -1
  119. package/src/core/executions/index.ts +3 -1
  120. package/src/core/islands/bootstrap.ts +0 -1
  121. package/src/core/islands/components/__tests__/web-components.test.tsx +63 -0
  122. package/src/core/islands/components/web-components.tsx +11 -0
  123. package/src/core/kernel/handlers.ts +0 -4
  124. package/src/core/session/useNotebookSession.tsx +2 -7
  125. package/src/css/globals.css +6 -2
  126. package/src/plugins/impl/DataEditorPlugin.tsx +0 -4
  127. package/src/plugins/impl/data-editor/__tests__/column-types.test.ts +5 -0
  128. package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +9 -5
  129. package/src/plugins/impl/data-editor/column-types.ts +3 -0
  130. package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -5
  131. package/src/plugins/impl/data-editor/glide-utils.ts +10 -32
  132. package/src/plugins/impl/data-editor/types.ts +0 -2
  133. package/src/stories/cell-status.stories.tsx +12 -14
  134. package/src/stories/cell.stories.tsx +44 -10
  135. package/src/stories/layout/vertical/one-column.stories.tsx +0 -10
  136. package/src/theme/__tests__/islands-theme.test.tsx +276 -0
  137. package/src/theme/namespace.tsx +4 -3
  138. package/src/theme/useTheme.ts +71 -41
  139. package/dist/schemas-CdscWNy_.js +0 -4747
  140. package/dist/use-restore-focus-CmflVLWJ.js +0 -1672
  141. package/dist/useTheme-DPLobSFs.js +0 -339
  142. package/dist/utils-EBklsC5R.js +0 -813
  143. package/src/components/editor/cell/__tests__/useRunCells.test.ts +0 -45
@@ -1,30 +1,29 @@
1
1
  import { a as e, t } from "./rolldown-runtime-Cb76FRpK.js";
2
- import { c as n, g as r, h as i, t as a } from "./button-0-RqY1DW.js";
2
+ import { g as n, h as r, i, t as a } from "./button-DZuNnIZO.js";
3
3
  import { t as o } from "./react-sHtZdjeP.js";
4
4
  import { t as s } from "./compiler-runtime-CldRdSsv.js";
5
- import { i as c, t as l } from "./copy-icon-C2I8sw4h.js";
6
- import { Ct as u, Dt as d, Et as f, It as p, J as m, Lt as h, M as g, Nt as _, Pt as v, Tt as y, U as b, V as x, Vt as S, W as C, a as w, at as T, ct as E, dt as D, et as O, f as k, g as A, h as j, ht as M, kt as ee, l as te, m as ne, n as re, ot as ie, p as ae, r as oe, st as se, t as ce, u as le, v as ue, xt as de, zt as fe } from "./html-to-image-Bc2AvXHG.js";
7
- import { h as N, t as pe } from "./tooltip-BfcDQd2j.js";
8
- import { d as me } from "./select-OxgozOC8.js";
9
- import { Sn as he, _ as ge, bn as _e, f as ve, h as ye, i as be, n as xe, t as Se } from "./dropdown-menu-CdXE15an.js";
10
- import { a as Ce, l as we } from "./config-BsPruWMR.js";
11
- import { I as Te, K as Ee, N as De, Tt as Oe, Wt as ke, ct as Ae, h as je, i as Me, r as Ne, t as Pe, tt as Fe } from "./error-entries-CxN-Nq3V.js";
12
- import { d as Ie, f as Le, i as Re, n as ze, t as Be, u as Ve } from "./process-output-qecD7Dk8.js";
13
- import { t as He } from "./pencil-DcT8AE0h.js";
14
- import { n as Ue, r as We, s as Ge } from "./assertNever-DIU3JJbt.js";
15
- import { t as Ke } from "./jsx-runtime-3BD1kT0s.js";
16
- import { n as qe } from "./error-banner-DPc9eIw5.js";
17
- import { n as Je, r as Ye } from "./useTheme-DPLobSFs.js";
18
- import { t as Xe } from "./isEmpty-CdX7MTE1.js";
19
- import { C as Ze, D as Qe, x as $e } from "./utils-EBklsC5R.js";
20
- import { t as et } from "./objects-DCmMvZtn.js";
21
- import { Dt as tt, Et as nt, St as rt, U as it, V as at, W as ot, bt as st, kt as ct, nt as lt, rt as ut, yt as dt, z as ft } from "./dist-CYeqK4Xw.js";
22
- import { B as pt, C as mt, D as ht, F as gt, H as _t, I as vt, M as yt, N as bt, O as xt, R as St, S as Ct, T as wt, b as Tt, j as Et, k as Dt, v as Ot, w as kt, x as At, y as jt, z as Mt } from "./schemas-CdscWNy_.js";
23
- import { n as Nt, o as Pt, r as Ft } from "./dist-BX1mn8na.js";
24
- import { n as It } from "./dist-DiLFTlnl.js";
25
- import { n as Lt, t as Rt } from "./esm-BDqqT86j.js";
26
- import { t as zt } from "./useAsyncData-BYIAoMqn.js";
27
- var Bt = N("ban", [["circle", {
5
+ import { i as c, t as l } from "./copy-icon-CtllOdmg.js";
6
+ import { Ct as u, Dt as d, Et as f, It as p, J as m, Lt as h, M as g, Nt as _, Pt as v, Tt as y, U as b, V as x, Vt as S, W as C, Y as w, a as T, dt as E, et as D, f as O, g as k, h as A, ht as j, kt as M, l as ee, m as N, n as te, nt as ne, p as re, r as ie, st as ae, t as oe, tt as se, u as ce, v as le, xt as ue, zt as de } from "./html-to-image-CqGUd58T.js";
7
+ import { h as P, t as fe } from "./tooltip-DMMiOn2f.js";
8
+ import { d as pe } from "./select-DsoP1qe8.js";
9
+ import { Sn as me, _ as he, bn as ge, f as _e, h as ve, i as ye, n as be, t as xe } from "./dropdown-menu-Bb0bFOIk.js";
10
+ import { a as Se, l as Ce } from "./config-C8MFHQ2E.js";
11
+ import { Gt as we, I as Te, K as Ee, N as De, Tt as Oe, ct as ke, h as Ae, i as je, r as Me, t as Ne, tt as Pe } from "./error-entries-C1S-Rmyt.js";
12
+ import { d as Fe, f as Ie, i as Le, n as Re, t as ze, u as Be } from "./process-output-DskX9jLa.js";
13
+ import { t as Ve } from "./pencil-DYUlSKxZ.js";
14
+ import { n as He, r as Ue, s as We } from "./assertNever-B-YzWzbL.js";
15
+ import { t as Ge } from "./jsx-runtime-3BD1kT0s.js";
16
+ import { $ as Ke, Ft as qe, G as Je, H as Ye, J as Xe, K as Ze, Lt as Qe, Q as $e, U as et, W as tt, Y as nt, Z as rt, at as it, ct as at, ft as ot, h as st, lt as ct, nt as lt, ot as ut, q as dt, rt as ft, tt as pt, u as mt, ut as ht } from "./use-restore-focus-CosX7-gx.js";
17
+ import { n as gt } from "./error-banner-CHCdHVFB.js";
18
+ import { t as _t } from "./isEmpty-CdX7MTE1.js";
19
+ import { t as vt } from "./objects-DCmMvZtn.js";
20
+ import { t as yt } from "./useEvent-BRH-aCqi.js";
21
+ import { Dt as bt, Et as xt, St, U as Ct, V as wt, W as Tt, bt as Et, kt as Dt, nt as Ot, rt as kt, yt as At, z as jt } from "./dist-CYeqK4Xw.js";
22
+ import { n as Mt, o as Nt, r as Pt } from "./dist-BX1mn8na.js";
23
+ import { n as Ft } from "./dist-DiLFTlnl.js";
24
+ import { n as It, t as Lt } from "./esm-BDqqT86j.js";
25
+ import { t as Rt } from "./useAsyncData-Ci4AvJff.js";
26
+ var zt = P("ban", [["circle", {
28
27
  cx: "12",
29
28
  cy: "12",
30
29
  r: "10",
@@ -32,13 +31,13 @@ var Bt = N("ban", [["circle", {
32
31
  }], ["path", {
33
32
  d: "M4.929 4.929 19.07 19.071",
34
33
  key: "196cmz"
35
- }]]), Vt = N("book-open", [["path", {
34
+ }]]), Bt = P("book-open", [["path", {
36
35
  d: "M12 7v14",
37
36
  key: "1akyts"
38
37
  }], ["path", {
39
38
  d: "M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",
40
39
  key: "ruj8y"
41
- }]]), Ht = N("bot-message-square", [
40
+ }]]), Vt = P("bot-message-square", [
42
41
  ["path", {
43
42
  d: "M12 6V2H8",
44
43
  key: "1155em"
@@ -63,7 +62,7 @@ var Bt = N("ban", [["circle", {
63
62
  d: "M9 11v2",
64
63
  key: "1ueba0"
65
64
  }]
66
- ]), Ut = N("brain", [
65
+ ]), Ht = P("brain", [
67
66
  ["path", {
68
67
  d: "M12 18V5",
69
68
  key: "adv99a"
@@ -96,7 +95,7 @@ var Bt = N("ban", [["circle", {
96
95
  d: "M6.003 5.125a4 4 0 0 0-2.526 5.77",
97
96
  key: "q97ue3"
98
97
  }]
99
- ]), Wt = N("bug", [
98
+ ]), Ut = P("bug", [
100
99
  ["path", {
101
100
  d: "M12 20v-9",
102
101
  key: "1qisl0"
@@ -141,7 +140,7 @@ var Bt = N("ban", [["circle", {
141
140
  d: "M9 7.13V6a3 3 0 1 1 6 0v1.13",
142
141
  key: "1vgav8"
143
142
  }]
144
- ]), Gt = N("circle-slash", [["circle", {
143
+ ]), Wt = P("circle-slash", [["circle", {
145
144
  cx: "12",
146
145
  cy: "12",
147
146
  r: "10",
@@ -152,7 +151,7 @@ var Bt = N("ban", [["circle", {
152
151
  y1: "15",
153
152
  y2: "9",
154
153
  key: "1dfufj"
155
- }]]), Kt = N("file-search", [
154
+ }]]), Gt = P("file-search", [
156
155
  ["path", {
157
156
  d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
158
157
  key: "1oefj6"
@@ -171,7 +170,7 @@ var Bt = N("ban", [["circle", {
171
170
  d: "M13.3 16.3 15 18",
172
171
  key: "2quom7"
173
172
  }]
174
- ]), qt = N("list-checks", [
173
+ ]), Kt = P("list-checks", [
175
174
  ["path", {
176
175
  d: "M13 5h8",
177
176
  key: "a7qcls"
@@ -192,7 +191,7 @@ var Bt = N("ban", [["circle", {
192
191
  d: "m3 7 2 2 4-4",
193
192
  key: "1obspn"
194
193
  }]
195
- ]), Jt = N("notebook", [
194
+ ]), qt = P("notebook", [
196
195
  ["path", {
197
196
  d: "M2 6h4",
198
197
  key: "aawbzj"
@@ -221,16 +220,16 @@ var Bt = N("ban", [["circle", {
221
220
  d: "M16 2v20",
222
221
  key: "rotuqe"
223
222
  }]
224
- ]), Yt = N("paperclip", [["path", {
223
+ ]), Jt = P("paperclip", [["path", {
225
224
  d: "m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",
226
225
  key: "1miecu"
227
- }]]), Xt = N("rotate-cw", [["path", {
226
+ }]]), Yt = P("rotate-cw", [["path", {
228
227
  d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",
229
228
  key: "1p45f6"
230
229
  }], ["path", {
231
230
  d: "M21 3v5h-5",
232
231
  key: "1q7to0"
233
- }]]), Zt = N("scan-search", [
232
+ }]]), Xt = P("scan-search", [
234
233
  ["path", {
235
234
  d: "M3 7V5a2 2 0 0 1 2-2h2",
236
235
  key: "aa7l1z"
@@ -257,13 +256,13 @@ var Bt = N("ban", [["circle", {
257
256
  d: "m16 16-1.9-1.9",
258
257
  key: "1dq9hf"
259
258
  }]
260
- ]), Qt = N("send-horizontal", [["path", {
259
+ ]), Zt = P("send-horizontal", [["path", {
261
260
  d: "M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",
262
261
  key: "117uat"
263
262
  }], ["path", {
264
263
  d: "M6 12h16",
265
264
  key: "s4cdu5"
266
- }]]), $t = N("settings", [["path", {
265
+ }]]), Qt = P("settings", [["path", {
267
266
  d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
268
267
  key: "1i5ecw"
269
268
  }], ["circle", {
@@ -271,7 +270,7 @@ var Bt = N("ban", [["circle", {
271
270
  cy: "12",
272
271
  r: "3",
273
272
  key: "1v7zrd"
274
- }]]), en = N("shield-question-mark", [
273
+ }]]), $t = P("shield-question-mark", [
275
274
  ["path", {
276
275
  d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
277
276
  key: "oel41y"
@@ -284,66 +283,66 @@ var Bt = N("ban", [["circle", {
284
283
  d: "M12 17h.01",
285
284
  key: "p32p05"
286
285
  }]
287
- ]), P = s(), tn = "vercel.ai.error", nn = Symbol.for(tn), rn, an, F = class e extends (an = Error, rn = nn, an) {
286
+ ]), F = s(), en = "vercel.ai.error", tn = Symbol.for(en), nn, rn, I = class e extends (rn = Error, nn = tn, rn) {
288
287
  constructor({ name: e, message: t, cause: n }) {
289
- super(t), this[rn] = !0, this.name = e, this.cause = n;
288
+ super(t), this[nn] = !0, this.name = e, this.cause = n;
290
289
  }
291
290
  static isInstance(t) {
292
- return e.hasMarker(t, tn);
291
+ return e.hasMarker(t, en);
293
292
  }
294
293
  static hasMarker(e, t) {
295
294
  let n = Symbol.for(t);
296
295
  return typeof e == "object" && !!e && n in e && typeof e[n] == "boolean" && e[n] === !0;
297
296
  }
298
- }, on = "AI_APICallError", sn = `vercel.ai.error.${on}`, cn = Symbol.for(sn), ln, un, dn = class extends (un = F, ln = cn, un) {
297
+ }, an = "AI_APICallError", on = `vercel.ai.error.${an}`, sn = Symbol.for(on), cn, ln, un = class extends (ln = I, cn = sn, ln) {
299
298
  constructor({ message: e, url: t, requestBodyValues: n, statusCode: r, responseHeaders: i, responseBody: a, cause: o, isRetryable: s = r != null && (r === 408 || r === 409 || r === 429 || r >= 500), data: c }) {
300
299
  super({
301
- name: on,
300
+ name: an,
302
301
  message: e,
303
302
  cause: o
304
- }), this[ln] = !0, this.url = t, this.requestBodyValues = n, this.statusCode = r, this.responseHeaders = i, this.responseBody = a, this.isRetryable = s, this.data = c;
303
+ }), this[cn] = !0, this.url = t, this.requestBodyValues = n, this.statusCode = r, this.responseHeaders = i, this.responseBody = a, this.isRetryable = s, this.data = c;
305
304
  }
306
305
  static isInstance(e) {
307
- return F.hasMarker(e, sn);
306
+ return I.hasMarker(e, on);
308
307
  }
309
- }, fn = "AI_EmptyResponseBodyError", pn = `vercel.ai.error.${fn}`, mn = Symbol.for(pn), hn, gn, _n = class extends (gn = F, hn = mn, gn) {
308
+ }, dn = "AI_EmptyResponseBodyError", fn = `vercel.ai.error.${dn}`, pn = Symbol.for(fn), mn, hn, gn = class extends (hn = I, mn = pn, hn) {
310
309
  constructor({ message: e = "Empty response body" } = {}) {
311
310
  super({
312
- name: fn,
311
+ name: dn,
313
312
  message: e
314
- }), this[hn] = !0;
313
+ }), this[mn] = !0;
315
314
  }
316
315
  static isInstance(e) {
317
- return F.hasMarker(e, pn);
316
+ return I.hasMarker(e, fn);
318
317
  }
319
318
  };
320
- function vn(e) {
319
+ function _n(e) {
321
320
  return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.toString() : JSON.stringify(e);
322
321
  }
323
- var yn = "AI_InvalidArgumentError", bn = `vercel.ai.error.${yn}`, xn = Symbol.for(bn), Sn, Cn, wn = class extends (Cn = F, Sn = xn, Cn) {
322
+ var vn = "AI_InvalidArgumentError", yn = `vercel.ai.error.${vn}`, bn = Symbol.for(yn), xn, Sn, Cn = class extends (Sn = I, xn = bn, Sn) {
324
323
  constructor({ message: e, cause: t, argument: n }) {
325
324
  super({
326
- name: yn,
325
+ name: vn,
327
326
  message: e,
328
327
  cause: t
329
- }), this[Sn] = !0, this.argument = n;
328
+ }), this[xn] = !0, this.argument = n;
330
329
  }
331
330
  static isInstance(e) {
332
- return F.hasMarker(e, bn);
331
+ return I.hasMarker(e, yn);
333
332
  }
334
- }, Tn = "AI_JSONParseError", En = `vercel.ai.error.${Tn}`, Dn = Symbol.for(En), On, kn, An = class extends (kn = F, On = Dn, kn) {
333
+ }, wn = "AI_JSONParseError", Tn = `vercel.ai.error.${wn}`, En = Symbol.for(Tn), Dn, On, kn = class extends (On = I, Dn = En, On) {
335
334
  constructor({ text: e, cause: t }) {
336
335
  super({
337
- name: Tn,
336
+ name: wn,
338
337
  message: `JSON parsing failed: Text: ${e}.
339
- Error message: ${vn(t)}`,
338
+ Error message: ${_n(t)}`,
340
339
  cause: t
341
- }), this[On] = !0, this.text = e;
340
+ }), this[Dn] = !0, this.text = e;
342
341
  }
343
342
  static isInstance(e) {
344
- return F.hasMarker(e, En);
343
+ return I.hasMarker(e, Tn);
345
344
  }
346
- }, jn = "AI_TypeValidationError", Mn = `vercel.ai.error.${jn}`, Nn = Symbol.for(Mn), Pn, Fn, I = class e extends (Fn = F, Pn = Nn, Fn) {
345
+ }, An = "AI_TypeValidationError", jn = `vercel.ai.error.${An}`, Mn = Symbol.for(jn), Nn, Pn, Fn = class e extends (Pn = I, Nn = Mn, Pn) {
347
346
  constructor({ value: e, cause: t, context: n }) {
348
347
  let r = "Type validation failed";
349
348
  if (n?.field && (r += ` for ${n.field}`), n?.entityName || n?.entityId) {
@@ -352,14 +351,14 @@ Error message: ${vn(t)}`,
352
351
  n.entityName && e.push(n.entityName), n.entityId && e.push(`id: "${n.entityId}"`), r += e.join(", "), r += ")";
353
352
  }
354
353
  super({
355
- name: jn,
354
+ name: An,
356
355
  message: `${r}: Value: ${JSON.stringify(e)}.
357
- Error message: ${vn(t)}`,
356
+ Error message: ${_n(t)}`,
358
357
  cause: t
359
- }), this[Pn] = !0, this.value = e, this.context = n;
358
+ }), this[Nn] = !0, this.value = e, this.context = n;
360
359
  }
361
360
  static isInstance(e) {
362
- return F.hasMarker(e, Mn);
361
+ return I.hasMarker(e, jn);
363
362
  }
364
363
  static wrap({ value: t, cause: n, context: r }) {
365
364
  return e.isInstance(n) && n.value === t && n.context?.field === r?.field && n.context?.entityName === r?.entityName && n.context?.entityId === r?.entityId ? n : new e({
@@ -368,7 +367,7 @@ Error message: ${vn(t)}`,
368
367
  context: r
369
368
  });
370
369
  }
371
- }, In = "AI_UnsupportedFunctionalityError", Ln = `vercel.ai.error.${In}`, Rn = Symbol.for(Ln), zn, Bn, Vn = class extends (Bn = F, zn = Rn, Bn) {
370
+ }, In = "AI_UnsupportedFunctionalityError", Ln = `vercel.ai.error.${In}`, Rn = Symbol.for(Ln), zn, Bn, Vn = class extends (Bn = I, zn = Rn, Bn) {
372
371
  constructor({ functionality: e, message: t = `'${e}' functionality not supported.` }) {
373
372
  super({
374
373
  name: In,
@@ -376,7 +375,7 @@ Error message: ${vn(t)}`,
376
375
  }), this[zn] = !0, this.functionality = e;
377
376
  }
378
377
  static isInstance(e) {
379
- return F.hasMarker(e, Ln);
378
+ return I.hasMarker(e, Ln);
380
379
  }
381
380
  }, Hn = class extends Error {
382
381
  constructor(e, t) {
@@ -579,7 +578,7 @@ var L = ({ prefix: e, size: t = 16, alphabet: n = "0123456789ABCDEFGHIJKLMNOPQRS
579
578
  return r.join("");
580
579
  };
581
580
  if (e == null) return i;
582
- if (n.includes(r)) throw new wn({
581
+ if (n.includes(r)) throw new Cn({
583
582
  argument: "separator",
584
583
  message: `The separator "${r}" must not be part of the alphabet "${n}".`
585
584
  });
@@ -1402,7 +1401,7 @@ function li(e) {
1402
1401
  value: n.value
1403
1402
  } : {
1404
1403
  success: !1,
1405
- error: new I({
1404
+ error: new Fn({
1406
1405
  value: t,
1407
1406
  cause: n.issues
1408
1407
  })
@@ -1427,12 +1426,12 @@ function di(e, t) {
1427
1426
  }
1428
1427
  function fi(e, t) {
1429
1428
  let n = t?.useReferences ?? !1;
1430
- return oi(() => sr(_t(e, {
1429
+ return oi(() => sr(ot(e, {
1431
1430
  target: "draft-7",
1432
1431
  io: "input",
1433
1432
  reused: n ? "ref" : "inline"
1434
1433
  })), { validate: async (t) => {
1435
- let n = await pt(e, t);
1434
+ let n = await ht(e, t);
1436
1435
  return n.success ? {
1437
1436
  success: !0,
1438
1437
  value: n.data
@@ -1454,7 +1453,7 @@ async function hi({ value: e, schema: t, context: n }) {
1454
1453
  schema: t,
1455
1454
  context: n
1456
1455
  });
1457
- if (!r.success) throw I.wrap({
1456
+ if (!r.success) throw Fn.wrap({
1458
1457
  value: e,
1459
1458
  cause: r.error,
1460
1459
  context: n
@@ -1476,7 +1475,7 @@ async function gi({ value: e, schema: t, context: n }) {
1476
1475
  rawValue: e
1477
1476
  } : {
1478
1477
  success: !1,
1479
- error: I.wrap({
1478
+ error: Fn.wrap({
1480
1479
  value: e,
1481
1480
  cause: t.error,
1482
1481
  context: n
@@ -1486,7 +1485,7 @@ async function gi({ value: e, schema: t, context: n }) {
1486
1485
  } catch (t) {
1487
1486
  return {
1488
1487
  success: !1,
1489
- error: I.wrap({
1488
+ error: Fn.wrap({
1490
1489
  value: e,
1491
1490
  cause: t,
1492
1491
  context: n
@@ -1509,7 +1508,7 @@ async function _i({ text: e, schema: t }) {
1509
1508
  } catch (t) {
1510
1509
  return {
1511
1510
  success: !1,
1512
- error: An.isInstance(t) ? t : new An({
1511
+ error: kn.isInstance(t) ? t : new kn({
1513
1512
  text: e,
1514
1513
  cause: t
1515
1514
  }),
@@ -1534,7 +1533,7 @@ var bi = Object.defineProperty, xi = (e, t) => {
1534
1533
  get: t[n],
1535
1534
  enumerable: !0
1536
1535
  });
1537
- }, Si = "AI_InvalidArgumentError", Ci = `vercel.ai.error.${Si}`, wi = Symbol.for(Ci), Ti, Ei, Di = class extends (Ei = F, Ti = wi, Ei) {
1536
+ }, Si = "AI_InvalidArgumentError", Ci = `vercel.ai.error.${Si}`, wi = Symbol.for(Ci), Ti, Ei, Di = class extends (Ei = I, Ti = wi, Ei) {
1538
1537
  constructor({ parameter: e, value: t, message: n }) {
1539
1538
  super({
1540
1539
  name: Si,
@@ -1542,9 +1541,9 @@ var bi = Object.defineProperty, xi = (e, t) => {
1542
1541
  }), this[Ti] = !0, this.parameter = e, this.value = t;
1543
1542
  }
1544
1543
  static isInstance(e) {
1545
- return F.hasMarker(e, Ci);
1544
+ return I.hasMarker(e, Ci);
1546
1545
  }
1547
- }, Oi = "AI_NoObjectGeneratedError", ki = `vercel.ai.error.${Oi}`, Ai = Symbol.for(ki), ji, Mi, U = class extends (Mi = F, ji = Ai, Mi) {
1546
+ }, Oi = "AI_NoObjectGeneratedError", ki = `vercel.ai.error.${Oi}`, Ai = Symbol.for(ki), ji, Mi, U = class extends (Mi = I, ji = Ai, Mi) {
1548
1547
  constructor({ message: e = "No object generated.", cause: t, text: n, response: r, usage: i, finishReason: a }) {
1549
1548
  super({
1550
1549
  name: Oi,
@@ -1553,9 +1552,9 @@ var bi = Object.defineProperty, xi = (e, t) => {
1553
1552
  }), this[ji] = !0, this.text = n, this.response = r, this.usage = i, this.finishReason = a;
1554
1553
  }
1555
1554
  static isInstance(e) {
1556
- return F.hasMarker(e, ki);
1555
+ return I.hasMarker(e, ki);
1557
1556
  }
1558
- }, Ni = "AI_UIMessageStreamError", Pi = `vercel.ai.error.${Ni}`, Fi = Symbol.for(Pi), Ii, Li, Ri = class extends (Li = F, Ii = Fi, Li) {
1557
+ }, Ni = "AI_UIMessageStreamError", Pi = `vercel.ai.error.${Ni}`, Fi = Symbol.for(Pi), Ii, Li, Ri = class extends (Li = I, Ii = Fi, Li) {
1559
1558
  constructor({ chunkType: e, chunkId: t, message: n }) {
1560
1559
  super({
1561
1560
  name: Ni,
@@ -1563,7 +1562,7 @@ var bi = Object.defineProperty, xi = (e, t) => {
1563
1562
  }), this[Ii] = !0, this.chunkType = e, this.chunkId = t;
1564
1563
  }
1565
1564
  static isInstance(e) {
1566
- return F.hasMarker(e, Pi);
1565
+ return I.hasMarker(e, Pi);
1567
1566
  }
1568
1567
  };
1569
1568
  function zi({ warning: e, provider: t, model: n }) {
@@ -1622,23 +1621,23 @@ function Wi(e, t) {
1622
1621
  return n;
1623
1622
  }
1624
1623
  var W = {
1625
- array: Ct,
1626
- boolean: mt,
1627
- custom: kt,
1628
- discriminatedUnion: wt,
1629
- enum: Ot,
1630
- instanceof: jt,
1631
- lazy: ht,
1632
- literal: xt,
1633
- looseObject: Dt,
1634
- never: Et,
1635
- null: Tt,
1636
- number: yt,
1637
- object: bt,
1638
- record: gt,
1639
- string: vt,
1640
- union: St,
1641
- unknown: Mt
1624
+ array: Ze,
1625
+ boolean: dt,
1626
+ custom: Xe,
1627
+ discriminatedUnion: nt,
1628
+ enum: Ye,
1629
+ instanceof: et,
1630
+ lazy: rt,
1631
+ literal: $e,
1632
+ looseObject: Ke,
1633
+ never: pt,
1634
+ null: tt,
1635
+ number: lt,
1636
+ object: ft,
1637
+ record: it,
1638
+ string: ut,
1639
+ union: at,
1640
+ unknown: ct
1642
1641
  }, Gi = W.lazy(() => W.union([
1643
1642
  W.null(),
1644
1643
  W.string(),
@@ -2175,7 +2174,7 @@ var pa = () => ({
2175
2174
  let o = i.value;
2176
2175
  if (typeof o != "object" || !o || !("elements" in o) || !Array.isArray(o.elements)) throw new U({
2177
2176
  message: "No object generated: response did not match schema.",
2178
- cause: new I({
2177
+ cause: new Fn({
2179
2178
  value: o,
2180
2179
  cause: "response must be an object with an elements array"
2181
2180
  }),
@@ -2268,11 +2267,11 @@ function ga({ name: e, value: t }) {
2268
2267
  }
2269
2268
  }
2270
2269
  function _a({ value: e, minItems: t, maxItems: n }) {
2271
- if (t != null && e.length < t) return new I({
2270
+ if (t != null && e.length < t) return new Fn({
2272
2271
  value: e,
2273
2272
  cause: `elements array must contain at least ${t} items`
2274
2273
  });
2275
- if (n != null && e.length > n) return new I({
2274
+ if (n != null && e.length > n) return new Fn({
2276
2275
  value: e,
2277
2276
  cause: `elements array must contain at most ${n} items`
2278
2277
  });
@@ -2307,7 +2306,7 @@ var va = ({ options: e, name: t, description: n }) => ({
2307
2306
  let i = r.value;
2308
2307
  if (typeof i != "object" || !i || !("result" in i) || typeof i.result != "string" || !e.includes(i.result)) throw new U({
2309
2308
  message: "No object generated: response did not match schema.",
2310
- cause: new I({
2309
+ cause: new Fn({
2311
2310
  value: i,
2312
2311
  cause: "response must be an object that contains a choice value."
2313
2312
  }),
@@ -3146,7 +3145,7 @@ L({
3146
3145
  });
3147
3146
  async function Ra({ response: e, url: t, fallbackMessage: n }) {
3148
3147
  let r = await e.text();
3149
- return new dn({
3148
+ return new un({
3150
3149
  message: r || n,
3151
3150
  url: t,
3152
3151
  requestBodyValues: void 0,
@@ -3222,7 +3221,7 @@ var Va = class {
3222
3221
  url: s,
3223
3222
  fallbackMessage: "Failed to fetch the chat response."
3224
3223
  });
3225
- if (!d.body) throw new _n({ message: "The response body is empty." });
3224
+ if (!d.body) throw new gn({ message: "The response body is empty." });
3226
3225
  return this.processResponseStream(d.body);
3227
3226
  }
3228
3227
  async reconnectToStream(e) {
@@ -3251,7 +3250,7 @@ var Va = class {
3251
3250
  url: o,
3252
3251
  fallbackMessage: "Failed to fetch the chat response."
3253
3252
  });
3254
- if (!l.body) throw new _n({ message: "The response body is empty." });
3253
+ if (!l.body) throw new gn({ message: "The response body is empty." });
3255
3254
  return this.processResponseStream(l.body);
3256
3255
  }
3257
3256
  }, Ha = class extends Va {
@@ -3551,7 +3550,7 @@ var Ka = /* @__PURE__ */ t(((e, t) => {
3551
3550
  };
3552
3551
  }
3553
3552
  t.exports = n;
3554
- })), q = /* @__PURE__ */ e(o(), 1), qa = /* @__PURE__ */ e(Ka(), 1), J = Ke(), Ja = (e, t, n) => {
3553
+ })), q = /* @__PURE__ */ e(o(), 1), qa = /* @__PURE__ */ e(Ka(), 1), J = Ge(), Ja = (e, t, n) => {
3555
3554
  if (!t.has(e)) throw TypeError("Cannot " + n);
3556
3555
  }, Y = (e, t, n) => (Ja(e, t, "read from private field"), n ? n.call(e) : t.get(e)), X = (e, t, n) => {
3557
3556
  if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
@@ -3743,7 +3742,7 @@ function go(e) {
3743
3742
  //#endregion
3744
3743
  //#region src/components/chat/agent-activity.tsx
3745
3744
  var _o = (e) => {
3746
- let t = (0, P.c)(19), { running: n, thinking: r, interrupted: a, defaultOpen: o, timing: s, toolCount: c, failedCount: l, steps: u } = e, d = r !== void 0 && r, f = a !== void 0 && a, p = o !== void 0 && o, m = c === void 0 ? 0 : c, h = l === void 0 ? 0 : l, g = u === void 0 ? vo : u, [_, v] = q.useState(), y = _ ?? (n || p), b = xo(n), x = g.length > 0, S;
3745
+ let t = (0, F.c)(19), { running: n, thinking: i, interrupted: a, defaultOpen: o, timing: s, toolCount: c, failedCount: l, steps: u } = e, d = i !== void 0 && i, f = a !== void 0 && a, p = o !== void 0 && o, m = c === void 0 ? 0 : c, h = l === void 0 ? 0 : l, g = u === void 0 ? vo : u, [_, v] = q.useState(), y = _ ?? (n || p), b = xo(n), x = g.length > 0, S;
3747
3746
  t[0] !== h || t[1] !== f || t[2] !== b || t[3] !== n || t[4] !== d || t[5] !== s || t[6] !== m ? (S = n ? /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)("output", {
3748
3747
  className: yo,
3749
3748
  children: d ? "Thinking…" : "Working…"
@@ -3768,9 +3767,9 @@ var _o = (e) => {
3768
3767
  onClick: () => v(!y),
3769
3768
  "aria-expanded": y,
3770
3769
  className: "group/activity -mx-1.5 flex items-center gap-1.5 rounded-md px-1.5 py-0.5 text-xs text-muted-foreground transition-colors hover:bg-foreground/6 hover:text-foreground focus-visible:outline-1 focus-visible:outline-(--slate-8)",
3771
- children: [C, /* @__PURE__ */ (0, J.jsx)(he, {
3770
+ children: [C, /* @__PURE__ */ (0, J.jsx)(me, {
3772
3771
  "aria-hidden": !0,
3773
- className: i("size-3 shrink-0 opacity-60 transition-transform group-hover/activity:opacity-100", y && "rotate-90")
3772
+ className: r("size-3 shrink-0 opacity-60 transition-transform group-hover/activity:opacity-100", y && "rotate-90")
3774
3773
  })]
3775
3774
  }) : /* @__PURE__ */ (0, J.jsx)("div", {
3776
3775
  className: "flex items-center gap-1.5 py-0.5 text-xs text-muted-foreground",
@@ -3792,7 +3791,7 @@ function bo({ interrupted: e, timing: t, toolCount: n }) {
3792
3791
  return e ? r ? `Stopped after ${r}` : "Stopped" : n === 0 ? r ? `Thought for ${r}` : "Thought process" : r ? `Worked for ${r}` : `Worked through ${n} ${n === 1 ? "step" : "steps"}`;
3793
3792
  }
3794
3793
  function xo(e) {
3795
- let t = (0, P.c)(3), [n, r] = q.useState(So), i, a;
3794
+ let t = (0, F.c)(3), [n, r] = q.useState(So), i, a;
3796
3795
  return t[0] === e ? (i = t[1], a = t[2]) : (i = () => {
3797
3796
  if (!e) return;
3798
3797
  let t = () => r(Date.now()), n = requestAnimationFrame(t), i = setInterval(t, 1e3);
@@ -3806,7 +3805,7 @@ function So() {
3806
3805
  }
3807
3806
  //#endregion
3808
3807
  //#region src/core/ai/context/providers/cell.ts
3809
- var Co = class extends j {
3808
+ var Co = class extends A {
3810
3809
  title = "Cells";
3811
3810
  mentionPrefix = "@";
3812
3811
  contextType = "cell";
@@ -3815,12 +3814,12 @@ var Co = class extends j {
3815
3814
  super(), this.store = e;
3816
3815
  }
3817
3816
  getItems() {
3818
- let e = this.store.get(je);
3817
+ let e = this.store.get(Ae);
3819
3818
  return e.cellIds.map((t, n) => {
3820
3819
  let r = e.cellData[t];
3821
3820
  return {
3822
3821
  uri: this.asURI(t),
3823
- name: Ae(r.name, n),
3822
+ name: ke(r.name, n),
3824
3823
  type: this.contextType,
3825
3824
  description: "Cell code",
3826
3825
  data: {
@@ -3837,7 +3836,7 @@ var Co = class extends j {
3837
3836
  };
3838
3837
  }
3839
3838
  formatContext(e) {
3840
- return ne({
3839
+ return N({
3841
3840
  type: "cell",
3842
3841
  data: {
3843
3842
  cellId: e.data.cellId,
@@ -3865,7 +3864,7 @@ function wo(e, t) {
3865
3864
  "<marimo-ui-element"
3866
3865
  ].some((e) => t.includes(e))) : !1;
3867
3866
  }
3868
- var To = class extends j {
3867
+ var To = class extends A {
3869
3868
  title = "Cell Outputs";
3870
3869
  mentionPrefix = "@";
3871
3870
  contextType = "cell-output";
@@ -3874,7 +3873,7 @@ var To = class extends j {
3874
3873
  super(), this.store = e;
3875
3874
  }
3876
3875
  getItems() {
3877
- let e = this.store.get(je), t = [];
3876
+ let e = this.store.get(Ae), t = [];
3878
3877
  for (let n of e.cellIds) {
3879
3878
  let r = Oo(n, e), i = r.cellOutput;
3880
3879
  if (!i) continue;
@@ -3898,9 +3897,9 @@ var To = class extends j {
3898
3897
  label: `@${n}`,
3899
3898
  displayLabel: n,
3900
3899
  detail: `${t.outputType} output`,
3901
- boost: t.outputType === "media" ? k.HIGH : k.MEDIUM,
3900
+ boost: t.outputType === "media" ? O.HIGH : O.MEDIUM,
3902
3901
  type: this.contextType,
3903
- section: ae.CELL_OUTPUT,
3902
+ section: re.CELL_OUTPUT,
3904
3903
  apply: `@${n}`,
3905
3904
  info: () => {
3906
3905
  let e = document.createElement("div");
@@ -3937,7 +3936,7 @@ var To = class extends j {
3937
3936
  outputType: t.outputType,
3938
3937
  mimetype: t.output.mimetype
3939
3938
  }, o = `Cell Code:\n${i}\n\n`;
3940
- return t.outputType === "text" && t.processedContent ? o += `Output:\n${t.processedContent}` : t.outputType === "media" && (o += `Media Output: Contains ${t.output.mimetype} content`, t.imageUrl && (o += `\nImage URL: ${t.imageUrl}`)), ne({
3939
+ return t.outputType === "text" && t.processedContent ? o += `Output:\n${t.processedContent}` : t.outputType === "media" && (o += `Media Output: Contains ${t.output.mimetype} content`, t.imageUrl && (o += `\nImage URL: ${t.imageUrl}`)), N({
3941
3940
  type: this.contextType,
3942
3941
  data: a,
3943
3942
  details: o
@@ -3948,32 +3947,32 @@ var To = class extends j {
3948
3947
  return Eo(e.map((e) => e.data.cellOutput), t, n);
3949
3948
  }
3950
3949
  };
3951
- async function Eo(e, t, n) {
3950
+ async function Eo(e, t, r) {
3952
3951
  let i = e.filter((e) => e.shouldDownloadImage && e.outputType === "media");
3953
3952
  if (i.length === 0) return [];
3954
3953
  let a = i.flatMap((e) => {
3955
3954
  let i = document.getElementById(Oe.create(t));
3956
3955
  return i ? {
3957
3956
  cellId: t,
3958
- cellName: n,
3957
+ cellName: r,
3959
3958
  mimetype: e.output.mimetype,
3960
3959
  element: i
3961
- } : (r.warn(`Output element not found for cell ${t}`), []);
3960
+ } : (n.warn(`Output element not found for cell ${t}`), []);
3962
3961
  });
3963
3962
  try {
3964
3963
  return await Promise.all(a.map(async (e) => ({
3965
3964
  type: "file",
3966
- filename: `${n}-output-screenshot`,
3965
+ filename: `${r}-output-screenshot`,
3967
3966
  mediaType: "image/png",
3968
- url: await ce(e.element)
3967
+ url: await oe(e.element)
3969
3968
  })));
3970
3969
  } catch (e) {
3971
- return r.error("Error downloading cell output images:", e), [];
3970
+ return n.error("Error downloading cell output images:", e), [];
3972
3971
  }
3973
3972
  }
3974
3973
  function Do(e) {
3975
- if (w(e)) return null;
3976
- let t = e.mimetype, n = wo(t, String(e.data)) ? "media" : "text", r = Be(e), i, a = !1;
3974
+ if (T(e)) return null;
3975
+ let t = e.mimetype, n = wo(t, String(e.data)) ? "media" : "text", r = ze(e), i, a = !1;
3977
3976
  return n === "media" && (typeof e.data == "string" && e.data.startsWith("data:") || typeof e.data == "string" && e.data.startsWith("http") ? i = e.data : a = !0), {
3978
3977
  processedContent: r,
3979
3978
  imageUrl: i,
@@ -3983,10 +3982,10 @@ function Do(e) {
3983
3982
  };
3984
3983
  }
3985
3984
  function Oo(e, t, n) {
3986
- let { includeConsoleOutput: r = !1 } = n || {}, i = t.cellRuntime[e], a = t.cellData[e], o = t.cellIds.indexOf(e), s = Ae(a.name, o), c;
3985
+ let { includeConsoleOutput: r = !1 } = n || {}, i = t.cellRuntime[e], a = t.cellData[e], o = t.cellIds.indexOf(e), s = ke(a.name, o), c;
3987
3986
  r && (c = i.consoleOutputs.map((e) => Do(e)).filter((e) => e !== null));
3988
3987
  let l, u = i.output;
3989
- return u && !w(u) && (l = Do(u) ?? void 0), {
3988
+ return u && !T(u) && (l = Do(u) ?? void 0), {
3990
3989
  cellId: e,
3991
3990
  cellName: s,
3992
3991
  cellCode: a.code,
@@ -3998,14 +3997,14 @@ function Oo(e, t, n) {
3998
3997
  //#region src/core/ai/context/providers/error.ts
3999
3998
  function ko(e, t) {
4000
3999
  let n = [`Code:\n${e.cellCode}`];
4001
- if (e.tracebackHtml && n.push(`Traceback:\n${Fe(e.tracebackHtml)}`), e.errorData.length > 0 && n.push(e.errorData.map((e) => Ne(e)).join("\n\n")), e.errorData.some((e) => e.type === "sql-error")) {
4002
- let r = le(e.cellId, t);
4000
+ if (e.tracebackHtml && n.push(`Traceback:\n${Pe(e.tracebackHtml)}`), e.errorData.length > 0 && n.push(e.errorData.map((e) => Me(e)).join("\n\n")), e.errorData.some((e) => e.type === "sql-error")) {
4001
+ let r = ce(e.cellId, t);
4003
4002
  r && n.push(`Database schema:\n${r}`);
4004
4003
  }
4005
4004
  return n.join("\n\n");
4006
4005
  }
4007
4006
  function Ao(e, t) {
4008
- return ne({
4007
+ return N({
4009
4008
  type: "error",
4010
4009
  data: {
4011
4010
  name: e.cellName || `Cell ${e.cellId}`,
@@ -4015,12 +4014,12 @@ function Ao(e, t) {
4015
4014
  });
4016
4015
  }
4017
4016
  function jo(e) {
4018
- return e.errorData.length === 1 ? Pe(e.errorData[0]) : e.errorData.length > 1 ? `${e.errorData.length} errors` : e.tracebackHtml ? Fe(e.tracebackHtml).trim().split("\n").find((e) => e.trim())?.trim() || "traceback" : "error";
4017
+ return e.errorData.length === 1 ? Ne(e.errorData[0]) : e.errorData.length > 1 ? `${e.errorData.length} errors` : e.tracebackHtml ? Pe(e.tracebackHtml).trim().split("\n").find((e) => e.trim())?.trim() || "traceback" : "error";
4019
4018
  }
4020
4019
  function Mo(e) {
4021
4020
  return `Error: ${e.cellName || `Cell ${e.cellId}`}`;
4022
4021
  }
4023
- var No = new O("error", "errors"), Po = class extends j {
4022
+ var No = new w("error", "errors"), Po = class extends A {
4024
4023
  title = "Errors";
4025
4024
  mentionPrefix = "@";
4026
4025
  contextType = "error";
@@ -4029,7 +4028,7 @@ var No = new O("error", "errors"), Po = class extends j {
4029
4028
  super(), this.store = e;
4030
4029
  }
4031
4030
  getItems() {
4032
- let e = Me(this.store);
4031
+ let e = je(this.store);
4033
4032
  if (e.length === 0) return [];
4034
4033
  let t = [{
4035
4034
  uri: this.asURI("all"),
@@ -4062,7 +4061,7 @@ var No = new O("error", "errors"), Po = class extends j {
4062
4061
  detail: `${t} ${No.pluralize(t)}`,
4063
4062
  type: "error",
4064
4063
  apply: "@error://all",
4065
- section: ae.ERROR,
4064
+ section: re.ERROR,
4066
4065
  info: () => {
4067
4066
  let e = document.createElement("div");
4068
4067
  e.classList.add("mo-cm-tooltip", "docs-documentation", "min-w-[200px]", "flex", "flex-col", "gap-1", "p-2");
@@ -4082,24 +4081,24 @@ var No = new O("error", "errors"), Po = class extends j {
4082
4081
  detail: jo(t),
4083
4082
  type: "error"
4084
4083
  }),
4085
- section: ae.ERROR
4084
+ section: re.ERROR
4086
4085
  };
4087
4086
  }
4088
4087
  return {
4089
4088
  label: "Error",
4090
4089
  displayLabel: "Error",
4091
- section: ae.ERROR
4090
+ section: re.ERROR
4092
4091
  };
4093
4092
  }
4094
4093
  formatContext(e) {
4095
4094
  return (e.data.type === "all-errors" ? e.data.errors : [e.data.error]).map((e) => Ao(e, this.store)).join("\n\n");
4096
4095
  }
4097
- }, Fo = de(), Io = {
4096
+ }, Fo = ue(), Io = {
4098
4097
  maxDepth: 3,
4099
4098
  maxResults: 20,
4100
4099
  defaultResultsLimit: 5,
4101
4100
  includeDirectories: !1
4102
- }, Lo = class extends j {
4101
+ }, Lo = class extends A {
4103
4102
  title = "Files";
4104
4103
  mentionPrefix = "#";
4105
4104
  contextType = "file";
@@ -4112,9 +4111,9 @@ var No = new O("error", "errors"), Po = class extends j {
4112
4111
  return async (e) => {
4113
4112
  let t = e.matchBefore(/#[^\s#]*/);
4114
4113
  if (!t) return null;
4115
- let n = t.text;
4116
- if (!n.startsWith("#")) return null;
4117
- let i = n.slice(1);
4114
+ let r = t.text;
4115
+ if (!r.startsWith("#")) return null;
4116
+ let i = r.slice(1);
4118
4117
  if (i.length === 0) return this.getDefaultCompletions(t);
4119
4118
  try {
4120
4119
  let e = (await this.searchFiles(i) || []).map((e) => {
@@ -4135,7 +4134,7 @@ var No = new O("error", "errors"), Po = class extends j {
4135
4134
  options: e
4136
4135
  };
4137
4136
  } catch (e) {
4138
- return r.error("Failed to search files:", e), null;
4137
+ return n.error("Failed to search files:", e), null;
4139
4138
  }
4140
4139
  };
4141
4140
  }
@@ -4183,32 +4182,32 @@ var No = new O("error", "errors"), Po = class extends j {
4183
4182
  };
4184
4183
  }
4185
4184
  } catch (e) {
4186
- r.error("Failed to get default file completions:", e);
4185
+ n.error("Failed to get default file completions:", e);
4187
4186
  }
4188
4187
  return {
4189
4188
  from: e.from,
4190
4189
  options: []
4191
4190
  };
4192
4191
  } catch (e) {
4193
- return r.error("Failed to get default file completions:", e), null;
4192
+ return n.error("Failed to get default file completions:", e), null;
4194
4193
  }
4195
4194
  }
4196
4195
  getItems() {
4197
4196
  return [];
4198
4197
  }
4199
4198
  formatCompletion(e) {
4200
- let { data: t, name: n } = e, i = t.isDirectory ? "📁" : "📄";
4199
+ let { data: t, name: r } = e, i = t.isDirectory ? "📁" : "📄";
4201
4200
  return {
4202
4201
  ...this.createBasicCompletion(e),
4203
4202
  type: "file",
4204
- section: ae.FILE,
4205
- boost: t.isDirectory ? k.MEDIUM : k.LOW,
4203
+ section: re.FILE,
4204
+ boost: t.isDirectory ? O.MEDIUM : O.LOW,
4206
4205
  detail: t.path,
4207
- displayLabel: `${i} ${n}`,
4206
+ displayLabel: `${i} ${r}`,
4208
4207
  apply: async (e, i, a, o) => {
4209
4208
  let s = e.state.facet(Fo)?.addAttachment;
4210
4209
  if (!s) {
4211
- r.warn("No addAttachment callback provided");
4210
+ n.warn("No addAttachment callback provided");
4212
4211
  return;
4213
4212
  }
4214
4213
  let l = await this.apiRequests.sendFileDetails({ path: t.path }).catch((e) => (c({
@@ -4216,22 +4215,22 @@ var No = new O("error", "errors"), Po = class extends j {
4216
4215
  description: e.message
4217
4216
  }), null));
4218
4217
  if (!l) return;
4219
- let u = l.mimeType || "text/plain", d = Ve({
4218
+ let u = l.mimeType || "text/plain", d = Be({
4220
4219
  contents: l.contents ?? "",
4221
4220
  mimeType: u,
4222
4221
  isBase64: l.isBase64 ?? !1
4223
4222
  });
4224
- s(new File([d], n, { type: u })), e.dispatch({ changes: {
4223
+ s(new File([d], r, { type: u })), e.dispatch({ changes: {
4225
4224
  from: a,
4226
4225
  to: o,
4227
4226
  insert: ""
4228
- } }), Pt(e);
4227
+ } }), Nt(e);
4229
4228
  },
4230
4229
  info: () => {
4231
4230
  let e = document.createElement("div");
4232
4231
  e.classList.add("flex", "flex-col", "gap-1", "p-2");
4233
- let r = document.createElement("div");
4234
- r.classList.add("font-bold"), r.textContent = n, e.append(r);
4232
+ let n = document.createElement("div");
4233
+ n.classList.add("font-bold"), n.textContent = r, e.append(n);
4235
4234
  let i = document.createElement("div");
4236
4235
  return i.classList.add("text-xs", "text-muted-foreground"), i.textContent = t.path, e.append(i), e;
4237
4236
  }
@@ -4239,7 +4238,7 @@ var No = new O("error", "errors"), Po = class extends j {
4239
4238
  }
4240
4239
  formatContext(e) {
4241
4240
  let { data: t, name: n } = e;
4242
- return ne({
4241
+ return N({
4243
4242
  type: this.contextType,
4244
4243
  data: {
4245
4244
  name: n,
@@ -4249,7 +4248,7 @@ var No = new O("error", "errors"), Po = class extends j {
4249
4248
  details: t.isDirectory ? "Directory containing files and subdirectories" : "File"
4250
4249
  });
4251
4250
  }
4252
- }, Ro = class extends j {
4251
+ }, Ro = class extends A {
4253
4252
  title = "Tables";
4254
4253
  mentionPrefix = "@";
4255
4254
  contextType = "data";
@@ -4279,7 +4278,7 @@ var No = new O("error", "errors"), Po = class extends j {
4279
4278
  l += `${t}\n`;
4280
4279
  }
4281
4280
  }
4282
- return ne({
4281
+ return N({
4283
4282
  type: this.contextType,
4284
4283
  data: {
4285
4284
  name: o,
@@ -4294,12 +4293,12 @@ var No = new O("error", "errors"), Po = class extends j {
4294
4293
  label: `@${t}`,
4295
4294
  displayLabel: t,
4296
4295
  detail: n.source === "memory" ? "in-memory" : n.source,
4297
- boost: n.source_type === "local" ? k.LOCAL_TABLE : k.REMOTE_TABLE,
4298
- type: E(n),
4296
+ boost: n.source_type === "local" ? O.LOCAL_TABLE : O.REMOTE_TABLE,
4297
+ type: ne(n),
4299
4298
  apply: `@${t}`,
4300
4299
  section: {
4301
- name: E(n) === "dataframe" ? "Dataframe" : "Table",
4302
- rank: ae.TABLE.rank
4300
+ name: ne(n) === "dataframe" ? "Dataframe" : "Table",
4301
+ rank: re.TABLE.rank
4303
4302
  },
4304
4303
  info: () => this.createTableInfoElement(t, n)
4305
4304
  };
@@ -4357,7 +4356,7 @@ var No = new O("error", "errors"), Po = class extends j {
4357
4356
  return e.classList.add("text-xs", "px-1.5", "py-0.5", "rounded-full", "font-medium", ...t.split(" ")), e;
4358
4357
  }
4359
4358
  }
4360
- }, zo = class extends j {
4359
+ }, zo = class extends A {
4361
4360
  title = "Variables";
4362
4361
  mentionPrefix = "@";
4363
4362
  contextType = "variable";
@@ -4384,13 +4383,13 @@ var No = new O("error", "errors"), Po = class extends j {
4384
4383
  displayLabel: n.name,
4385
4384
  detail: n.dataType ?? "",
4386
4385
  type: this.contextType,
4387
- section: ae.VARIABLE,
4388
- info: () => T(n)
4386
+ section: re.VARIABLE,
4387
+ info: () => ae(n)
4389
4388
  };
4390
4389
  }
4391
4390
  formatContext(e) {
4392
4391
  let { data: t } = e, { variable: n } = t;
4393
- return ne({
4392
+ return N({
4394
4393
  type: this.contextType,
4395
4394
  data: {
4396
4395
  name: n.name,
@@ -4403,8 +4402,8 @@ var No = new O("error", "errors"), Po = class extends j {
4403
4402
  //#endregion
4404
4403
  //#region src/core/ai/context/context.ts
4405
4404
  function Bo(e) {
4406
- let t = e.get(se), n = e.get(ie), r = e.get(M);
4407
- return new A().register(new Ro(n)).register(new zo(r, n)).register(new Po(e)).register(new To(e)).register(new Co(e)).register(new te(t.connectionsMap, n));
4405
+ let t = e.get(se), n = e.get(D), r = e.get(j);
4406
+ return new k().register(new Ro(n)).register(new zo(r, n)).register(new Po(e)).register(new To(e)).register(new Co(e)).register(new ee(t.connectionsMap, n));
4408
4407
  }
4409
4408
  function Vo() {
4410
4409
  return new Lo(Ee());
@@ -4427,7 +4426,7 @@ async function Uo(e) {
4427
4426
  type: "file",
4428
4427
  mediaType: e.type,
4429
4428
  filename: e.name,
4430
- url: await ze(e, "dataUrl")
4429
+ url: await Re(e, "dataUrl")
4431
4430
  })));
4432
4431
  }
4433
4432
  function Wo(e) {
@@ -4439,7 +4438,7 @@ function Wo(e) {
4439
4438
  //#endregion
4440
4439
  //#region src/components/chat/chat-components.tsx
4441
4440
  var Go = (e) => {
4442
- let t = (0, P.c)(6), { attachment: n } = e;
4441
+ let t = (0, F.c)(6), { attachment: n } = e;
4443
4442
  if (n.mediaType?.startsWith("image/")) {
4444
4443
  let e = n.filename || "Attachment", r;
4445
4444
  return t[0] !== n.url || t[1] !== e ? (r = /* @__PURE__ */ (0, J.jsx)("img", {
@@ -4449,14 +4448,14 @@ var Go = (e) => {
4449
4448
  }), t[0] = n.url, t[1] = e, t[2] = r) : r = t[2], r;
4450
4449
  }
4451
4450
  let r;
4452
- t[3] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, J.jsx)(Le, { className: "h-3 w-3 mt-0.5" }), t[3] = r) : r = t[3];
4451
+ t[3] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ (0, J.jsx)(Ie, { className: "h-3 w-3 mt-0.5" }), t[3] = r) : r = t[3];
4453
4452
  let i = n.filename || "Attachment", a;
4454
4453
  return t[4] === i ? a = t[5] : (a = /* @__PURE__ */ (0, J.jsxs)("div", {
4455
4454
  className: "flex flex-row gap-1 items-center text-xs",
4456
4455
  children: [r, i]
4457
4456
  }), t[4] = i, t[5] = a), a;
4458
4457
  }, Ko = (e) => {
4459
- let t = (0, P.c)(15), { icon: n, title: r, subtitle: i, href: a } = e, o;
4458
+ let t = (0, F.c)(15), { icon: n, title: r, subtitle: i, href: a } = e, o;
4460
4459
  t[0] === r ? o = t[1] : (o = /* @__PURE__ */ (0, J.jsx)("span", {
4461
4460
  className: "truncate font-medium",
4462
4461
  children: r
@@ -4477,7 +4476,7 @@ var Go = (e) => {
4477
4476
  s
4478
4477
  ] }), t[4] = n, t[5] = o, t[6] = s, t[7] = c) : c = t[7];
4479
4478
  let l = c;
4480
- if (a && Ce(a)) {
4479
+ if (a && Se(a)) {
4481
4480
  let e = i ?? r, n;
4482
4481
  return t[8] !== l || t[9] !== a || t[10] !== e ? (n = /* @__PURE__ */ (0, J.jsx)("a", {
4483
4482
  href: a,
@@ -4498,8 +4497,8 @@ var Go = (e) => {
4498
4497
  //#endregion
4499
4498
  //#region src/components/chat/chat-markdown.tsx
4500
4499
  function qo(e) {
4501
- let t = (0, P.c)(3), { content: n } = e, r = $e(Ye)?.mode, i = r !== "agent" && r !== "code_mode", a;
4502
- return t[0] !== n || t[1] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(oe, {
4500
+ let t = (0, F.c)(3), { content: n } = e, r = qe(st)?.mode, i = r !== "agent" && r !== "code_mode", a;
4501
+ return t[0] !== n || t[1] !== i ? (a = /* @__PURE__ */ (0, J.jsx)(ie, {
4503
4502
  content: n,
4504
4503
  allowNotebookInsertion: i
4505
4504
  }), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
@@ -4517,7 +4516,7 @@ function Yo(e) {
4517
4516
  //#endregion
4518
4517
  //#region src/components/chat/tool-call/tool-args.tsx
4519
4518
  var Xo = (e) => {
4520
- let t = (0, P.c)(9), { input: n, label: r } = e, i = r === void 0 ? "Tool Request" : r;
4519
+ let t = (0, F.c)(9), { input: n, label: r } = e, i = r === void 0 ? "Tool Request" : r;
4521
4520
  if (n == null) return null;
4522
4521
  let a;
4523
4522
  t[0] === i ? a = t[1] : (a = /* @__PURE__ */ (0, J.jsx)("h3", {
@@ -4537,12 +4536,12 @@ var Xo = (e) => {
4537
4536
  children: [a, s]
4538
4537
  }), t[6] = a, t[7] = s, t[8] = c) : c = t[8], c;
4539
4538
  }, Zo = (e) => {
4540
- let t = (0, P.c)(27), { toolName: n, input: r, approval: o, onApprove: s, className: c } = e, l;
4541
- t[0] === c ? l = t[1] : (l = i("rounded-md border border-(--amber-6) bg-(--amber-2) p-3 space-y-3", c), t[0] = c, t[1] = l);
4539
+ let t = (0, F.c)(27), { toolName: n, input: i, approval: o, onApprove: s, className: c } = e, l;
4540
+ t[0] === c ? l = t[1] : (l = r("rounded-md border border-(--amber-6) bg-(--amber-2) p-3 space-y-3", c), t[0] = c, t[1] = l);
4542
4541
  let u;
4543
4542
  t[2] === n ? u = t[3] : (u = Yo(n), t[2] = n, t[3] = u);
4544
4543
  let d = `Approval required for ${u}`, f;
4545
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, J.jsx)(en, { className: "h-4 w-4 text-(--amber-11) mt-0.5 shrink-0" }), t[4] = f) : f = t[4];
4544
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, J.jsx)($t, { className: "h-4 w-4 text-(--amber-11) mt-0.5 shrink-0" }), t[4] = f) : f = t[4];
4546
4545
  let p;
4547
4546
  t[5] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, J.jsx)("span", {
4548
4547
  className: "font-semibold",
@@ -4566,7 +4565,7 @@ var Xo = (e) => {
4566
4565
  })]
4567
4566
  }), t[8] = m, t[9] = h);
4568
4567
  let g;
4569
- t[10] === r ? g = t[11] : (g = /* @__PURE__ */ (0, J.jsx)(Xo, { input: r }), t[10] = r, t[11] = g);
4568
+ t[10] === i ? g = t[11] : (g = /* @__PURE__ */ (0, J.jsx)(Xo, { input: i }), t[10] = i, t[11] = g);
4570
4569
  let _;
4571
4570
  t[12] !== o.id || t[13] !== s ? (_ = /* @__PURE__ */ (0, J.jsx)(a, {
4572
4571
  size: "xs",
@@ -4606,27 +4605,27 @@ var Xo = (e) => {
4606
4605
  get_marimo_rules: {
4607
4606
  running: "Reading marimo guidelines",
4608
4607
  done: "Read marimo guidelines",
4609
- icon: Vt
4608
+ icon: Bt
4610
4609
  },
4611
4610
  get_active_notebooks: {
4612
4611
  running: "Listing notebooks",
4613
4612
  done: "Listed notebooks",
4614
- icon: Jt
4613
+ icon: qt
4615
4614
  },
4616
4615
  get_lightweight_cell_map: {
4617
4616
  running: "Reading notebook",
4618
4617
  done: "Read notebook",
4619
- icon: Kt
4618
+ icon: Gt
4620
4619
  },
4621
4620
  get_cell_runtime_data: {
4622
4621
  running: "Inspecting cells",
4623
4622
  done: "Inspected cells",
4624
- icon: Zt
4623
+ icon: Xt
4625
4624
  },
4626
4625
  get_cell_outputs: {
4627
4626
  running: "Reading cell outputs",
4628
4627
  done: "Read cell outputs",
4629
- icon: Zt
4628
+ icon: Xt
4630
4629
  },
4631
4630
  get_tables_and_variables: {
4632
4631
  running: "Reading variables",
@@ -4636,17 +4635,17 @@ var Xo = (e) => {
4636
4635
  get_database_tables: {
4637
4636
  running: "Reading database tables",
4638
4637
  done: "Read database tables",
4639
- icon: fe
4638
+ icon: de
4640
4639
  },
4641
4640
  get_notebook_errors: {
4642
4641
  running: "Checking for errors",
4643
4642
  done: "Checked for errors",
4644
- icon: Wt
4643
+ icon: Ut
4645
4644
  },
4646
4645
  lint_notebook: {
4647
4646
  running: "Linting notebook",
4648
4647
  done: "Linted notebook",
4649
- icon: qt
4648
+ icon: Kt
4650
4649
  },
4651
4650
  get_cell_dependency_graph: {
4652
4651
  running: "Reading dependency graph",
@@ -4657,12 +4656,12 @@ var Xo = (e) => {
4657
4656
  add_cell: {
4658
4657
  running: "Adding cell",
4659
4658
  done: "Added cell",
4660
- icon: _e
4659
+ icon: ge
4661
4660
  },
4662
4661
  update_cell: {
4663
4662
  running: "Editing cell",
4664
4663
  done: "Edited cell",
4665
- icon: He
4664
+ icon: Ve
4666
4665
  },
4667
4666
  delete_cell: {
4668
4667
  running: "Deleting cell",
@@ -4675,7 +4674,7 @@ function es(e, t, n) {
4675
4674
  if (r === "execute_code") return {
4676
4675
  label: n === "running" ? "Running code" : "Ran code",
4677
4676
  detail: rs(t) ? ns(t.code) : void 0,
4678
- icon: ee
4677
+ icon: M
4679
4678
  };
4680
4679
  if (r === "edit_notebook_tool") {
4681
4680
  let e = ts(t);
@@ -4689,7 +4688,7 @@ function es(e, t, n) {
4689
4688
  }
4690
4689
  return {
4691
4690
  label: n === "running" ? "Editing notebook" : "Edited notebook",
4692
- icon: He
4691
+ icon: Ve
4693
4692
  };
4694
4693
  }
4695
4694
  if (Object.hasOwn(Qo, r)) {
@@ -4724,17 +4723,17 @@ function rs(e) {
4724
4723
  //#endregion
4725
4724
  //#region src/components/chat/tool-call/tool-result.tsx
4726
4725
  function is(e) {
4727
- return e == null || typeof e == "object" && Xe(e);
4728
- }
4729
- var as = Dt({
4730
- status: vt().default("success"),
4731
- auth_required: mt().default(!1),
4732
- action_url: At().optional(),
4733
- next_steps: At().optional(),
4734
- meta: At().optional(),
4735
- message: vt().nullish()
4726
+ return e == null || typeof e == "object" && _t(e);
4727
+ }
4728
+ var as = Ke({
4729
+ status: ut().default("success"),
4730
+ auth_required: dt().default(!1),
4731
+ action_url: Je().optional(),
4732
+ next_steps: Je().optional(),
4733
+ meta: Je().optional(),
4734
+ message: ut().nullish()
4736
4735
  }), os = (e) => {
4737
- let t = (0, P.c)(12), { data: n } = e, r;
4736
+ let t = (0, F.c)(12), { data: n } = e, r;
4738
4737
  if (t[0] !== n) {
4739
4738
  let { status: e, auth_required: i, action_url: a, meta: o, next_steps: s, message: c, ...l } = n, u;
4740
4739
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ (0, J.jsx)("h3", {
@@ -4780,7 +4779,7 @@ var as = Dt({
4780
4779
  } else r = t[1];
4781
4780
  return r;
4782
4781
  }, ss = (e) => {
4783
- let t = (0, P.c)(8), { result: n } = e, r;
4782
+ let t = (0, F.c)(8), { result: n } = e, r;
4784
4783
  t[0] === n ? r = t[1] : (r = as.safeParse(n), t[0] = n, t[1] = r);
4785
4784
  let i = r;
4786
4785
  if (i.success) {
@@ -4811,14 +4810,14 @@ function cs(e) {
4811
4810
  //#endregion
4812
4811
  //#region src/components/chat/tool-call/tool-step.tsx
4813
4812
  var ls = (e) => {
4814
- let t = (0, P.c)(58), { toolName: n, state: r, input: a, result: o, errorText: s, approval: c, isActive: l, className: u } = e, d = l === void 0 || l, [f, p] = q.useState(!1), m, h, g, _, v, y, b, x, S, C, w;
4815
- if (t[0] !== u || t[1] !== a || t[2] !== d || t[3] !== f || t[4] !== r || t[5] !== n) {
4816
- let e = Jo.has(r), { label: o, detail: s, icon: c } = es(n, a, e ? "running" : "done");
4817
- g = o, h = s, _ = us(r, e && !d, c);
4818
- let l = r === "output-error";
4819
- t[17] === u ? w = t[18] : (w = i("w-full", u), t[17] = u, t[18] = w), b = "button", t[19] === Symbol.for("react.memo_cache_sentinel") ? (x = () => p(fs), t[19] = x) : x = t[19], S = f;
4813
+ let t = (0, F.c)(58), { toolName: n, state: i, input: a, result: o, errorText: s, approval: c, isActive: l, className: u } = e, d = l === void 0 || l, [f, p] = q.useState(!1), m, h, g, _, v, y, b, x, S, C, w;
4814
+ if (t[0] !== u || t[1] !== a || t[2] !== d || t[3] !== f || t[4] !== i || t[5] !== n) {
4815
+ let e = Jo.has(i), { label: o, detail: s, icon: c } = es(n, a, e ? "running" : "done");
4816
+ g = o, h = s, _ = us(i, e && !d, c);
4817
+ let l = i === "output-error";
4818
+ t[17] === u ? w = t[18] : (w = r("w-full", u), t[17] = u, t[18] = w), b = "button", t[19] === Symbol.for("react.memo_cache_sentinel") ? (x = () => p(fs), t[19] = x) : x = t[19], S = f;
4820
4819
  let T = f && "text-foreground", E = l && "text-(--red-11) hover:bg-(--red-3) hover:text-(--red-11)";
4821
- t[20] !== T || t[21] !== E ? (C = i("group/step -mx-1.5 flex w-fit max-w-full min-w-0 items-center gap-1.5 rounded-md px-1.5 py-0.5 text-left text-xs leading-4 text-muted-foreground transition-colors hover:bg-foreground/6 hover:text-foreground focus-visible:outline-1 focus-visible:outline-(--slate-8)", T, E), t[20] = T, t[21] = E, t[22] = C) : C = t[22], m = _.icon, v = !0, y = i("-ml-px size-3 shrink-0", _.spinning && "animate-spin"), t[0] = u, t[1] = a, t[2] = d, t[3] = f, t[4] = r, t[5] = n, t[6] = m, t[7] = h, t[8] = g, t[9] = _, t[10] = v, t[11] = y, t[12] = b, t[13] = x, t[14] = S, t[15] = C, t[16] = w;
4820
+ t[20] !== T || t[21] !== E ? (C = r("group/step -mx-1.5 flex w-fit max-w-full min-w-0 items-center gap-1.5 rounded-md px-1.5 py-0.5 text-left text-xs leading-4 text-muted-foreground transition-colors hover:bg-foreground/6 hover:text-foreground focus-visible:outline-1 focus-visible:outline-(--slate-8)", T, E), t[20] = T, t[21] = E, t[22] = C) : C = t[22], m = _.icon, v = !0, y = r("-ml-px size-3 shrink-0", _.spinning && "animate-spin"), t[0] = u, t[1] = a, t[2] = d, t[3] = f, t[4] = i, t[5] = n, t[6] = m, t[7] = h, t[8] = g, t[9] = _, t[10] = v, t[11] = y, t[12] = b, t[13] = x, t[14] = S, t[15] = C, t[16] = w;
4822
4821
  } else m = t[6], h = t[7], g = t[8], _ = t[9], v = t[10], y = t[11], b = t[12], x = t[13], S = t[14], C = t[15], w = t[16];
4823
4822
  let T;
4824
4823
  t[23] !== m || t[24] !== v || t[25] !== y ? (T = /* @__PURE__ */ (0, J.jsx)(m, {
@@ -4841,9 +4840,9 @@ var ls = (e) => {
4841
4840
  children: ["· ", _.suffix]
4842
4841
  }), t[31] = _.suffix, t[32] = O);
4843
4842
  let k = f && "rotate-90 opacity-100", A;
4844
- t[33] === k ? A = t[34] : (A = i("size-3 shrink-0 opacity-40 transition-transform group-hover/step:opacity-100", k), t[33] = k, t[34] = A);
4843
+ t[33] === k ? A = t[34] : (A = r("size-3 shrink-0 opacity-40 transition-transform group-hover/step:opacity-100", k), t[33] = k, t[34] = A);
4845
4844
  let j;
4846
- t[35] === A ? j = t[36] : (j = /* @__PURE__ */ (0, J.jsx)(he, {
4845
+ t[35] === A ? j = t[36] : (j = /* @__PURE__ */ (0, J.jsx)(me, {
4847
4846
  "aria-hidden": !0,
4848
4847
  className: A
4849
4848
  }), t[35] = A, t[36] = j);
@@ -4862,22 +4861,22 @@ var ls = (e) => {
4862
4861
  ]
4863
4862
  }), t[37] = E, t[38] = D, t[39] = O, t[40] = j, t[41] = b, t[42] = x, t[43] = S, t[44] = C, t[45] = T, t[46] = M) : M = t[46];
4864
4863
  let ee;
4865
- t[47] !== c || t[48] !== s || t[49] !== a || t[50] !== f || t[51] !== o || t[52] !== r ? (ee = f && /* @__PURE__ */ (0, J.jsx)(ds, {
4866
- state: r,
4864
+ t[47] !== c || t[48] !== s || t[49] !== a || t[50] !== f || t[51] !== o || t[52] !== i ? (ee = f && /* @__PURE__ */ (0, J.jsx)(ds, {
4865
+ state: i,
4867
4866
  input: a,
4868
4867
  result: o,
4869
4868
  errorText: s,
4870
4869
  approval: c
4871
- }), t[47] = c, t[48] = s, t[49] = a, t[50] = f, t[51] = o, t[52] = r, t[53] = ee) : ee = t[53];
4872
- let te;
4873
- return t[54] !== M || t[55] !== ee || t[56] !== w ? (te = /* @__PURE__ */ (0, J.jsxs)("div", {
4870
+ }), t[47] = c, t[48] = s, t[49] = a, t[50] = f, t[51] = o, t[52] = i, t[53] = ee) : ee = t[53];
4871
+ let N;
4872
+ return t[54] !== M || t[55] !== ee || t[56] !== w ? (N = /* @__PURE__ */ (0, J.jsxs)("div", {
4874
4873
  className: w,
4875
4874
  children: [M, ee]
4876
- }), t[54] = M, t[55] = ee, t[56] = w, t[57] = te) : te = t[57], te;
4875
+ }), t[54] = M, t[55] = ee, t[56] = w, t[57] = N) : N = t[57], N;
4877
4876
  };
4878
4877
  function us(e, t, n) {
4879
4878
  if (t) return {
4880
- icon: Gt,
4879
+ icon: Wt,
4881
4880
  suffix: "Stopped"
4882
4881
  };
4883
4882
  switch (e) {
@@ -4886,7 +4885,7 @@ function us(e, t, n) {
4886
4885
  suffix: "Failed"
4887
4886
  };
4888
4887
  case "output-denied": return {
4889
- icon: Bt,
4888
+ icon: zt,
4890
4889
  suffix: "Denied"
4891
4890
  };
4892
4891
  case "output-available": return { icon: n };
@@ -4897,7 +4896,7 @@ function us(e, t, n) {
4897
4896
  }
4898
4897
  }
4899
4898
  var ds = (e) => {
4900
- let t = (0, P.c)(16), { state: n, input: r, result: i, errorText: a, approval: o } = e, s;
4899
+ let t = (0, F.c)(16), { state: n, input: r, result: i, errorText: a, approval: o } = e, s;
4901
4900
  t[0] === r ? s = t[1] : (s = /* @__PURE__ */ (0, J.jsx)(Xo, { input: r }), t[0] = r, t[1] = s);
4902
4901
  let c;
4903
4902
  t[2] !== i || t[3] !== n ? (c = n === "output-available" && i != null && /* @__PURE__ */ (0, J.jsx)(ss, { result: i }), t[2] = i, t[3] = n, t[4] = c) : c = t[4];
@@ -4928,7 +4927,7 @@ function fs(e) {
4928
4927
  //#endregion
4929
4928
  //#region src/components/chat/tool-call/tool-call-view.tsx
4930
4929
  var ps = (e) => {
4931
- let t = (0, P.c)(16), n, r, i, a, o;
4930
+ let t = (0, F.c)(16), n, r, i, a, o;
4932
4931
  if (t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({toolName: o, state: a, approval: n, onApprove: r, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o), a === "approval-requested") {
4933
4932
  let e;
4934
4933
  return t[6] !== n || t[7] !== r || t[8] !== i || t[9] !== o ? (e = n != null && r != null ? /* @__PURE__ */ (0, J.jsx)(Zo, {
@@ -4987,7 +4986,7 @@ var ps = (e) => {
4987
4986
  }, t);
4988
4987
  case "reasoning": return /* @__PURE__ */ (0, J.jsxs)("div", {
4989
4988
  className: "flex gap-1.5 py-1.5 text-muted-foreground",
4990
- children: [/* @__PURE__ */ (0, J.jsx)(Ut, {
4989
+ children: [/* @__PURE__ */ (0, J.jsx)(Ht, {
4991
4990
  "aria-hidden": !0,
4992
4991
  className: "-ml-px mt-1 size-3 shrink-0"
4993
4992
  }), /* @__PURE__ */ (0, J.jsxs)("div", {
@@ -5010,7 +5009,7 @@ var ps = (e) => {
5010
5009
  subtitle: e.filename
5011
5010
  }, t);
5012
5011
  case "source-url": return /* @__PURE__ */ (0, J.jsx)(Ko, {
5013
- icon: /* @__PURE__ */ (0, J.jsx)(ke, { className: "h-3 w-3 shrink-0" }),
5012
+ icon: /* @__PURE__ */ (0, J.jsx)(we, { className: "h-3 w-3 shrink-0" }),
5014
5013
  title: e.title ?? e.url,
5015
5014
  subtitle: e.title ? e.url : void 0,
5016
5015
  href: e.url
@@ -5020,7 +5019,7 @@ var ps = (e) => {
5020
5019
  children: e.kind
5021
5020
  }, t);
5022
5021
  case "step-start": return null;
5023
- default: return Ue(e), null;
5022
+ default: return He(e), null;
5024
5023
  }
5025
5024
  }
5026
5025
  };
@@ -5057,11 +5056,11 @@ function bs(e) {
5057
5056
  //#endregion
5058
5057
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-ai@0.3.10_@codemirror+state@6.7.6_@codemirror+view@6.43.13/node_modules/@marimo-team/codemirror-ai/dist/utils/facet.js
5059
5058
  function xs(e) {
5060
- return st.define({ combine: (t) => t[0] ?? e });
5059
+ return Et.define({ combine: (t) => t[0] ?? e });
5061
5060
  }
5062
5061
  //#endregion
5063
5062
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-ai@0.3.10_@codemirror+state@6.7.6_@codemirror+view@6.43.13/node_modules/@marimo-team/codemirror-ai/dist/prompt-history/extension.js
5064
- var Ss = xs({}), Cs = nt.define(), ws = nt.define(), Ts = 50, Es = tt.define({
5063
+ var Ss = xs({}), Cs = xt.define(), ws = xt.define(), Ts = 50, Es = bt.define({
5065
5064
  create() {
5066
5065
  return {
5067
5066
  prompts: [],
@@ -5120,7 +5119,7 @@ function ks(e = {}) {
5120
5119
  navigationIndex: -1,
5121
5120
  originalText: ""
5122
5121
  })), Ss.of(t ?? {})];
5123
- return n && r.push(ut.of([{
5122
+ return n && r.push(kt.of([{
5124
5123
  key: "ArrowUp",
5125
5124
  run: Ds
5126
5125
  }, {
@@ -5130,7 +5129,7 @@ function ks(e = {}) {
5130
5129
  }
5131
5130
  //#endregion
5132
5131
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_6b342e94e942eed410acc909cdad6bca/node_modules/@marimo-team/codemirror-mcp/dist/state.js
5133
- var As = nt.define(), Q = tt.define({
5132
+ var As = xt.define(), Q = bt.define({
5134
5133
  create() {
5135
5134
  return /* @__PURE__ */ new Map();
5136
5135
  },
@@ -5142,7 +5141,7 @@ var As = nt.define(), Q = tt.define({
5142
5141
  }
5143
5142
  return r;
5144
5143
  }
5145
- }), js = tt.define({
5144
+ }), js = bt.define({
5146
5145
  create() {
5147
5146
  return {
5148
5147
  onResourceClick: void 0,
@@ -5154,8 +5153,8 @@ var As = nt.define(), Q = tt.define({
5154
5153
  update(e) {
5155
5154
  return e;
5156
5155
  }
5157
- }), Ms = nt.define();
5158
- tt.define({
5156
+ }), Ms = xt.define();
5157
+ bt.define({
5159
5158
  create() {
5160
5159
  return /* @__PURE__ */ new Map();
5161
5160
  },
@@ -5203,7 +5202,7 @@ function $(e) {
5203
5202
  }
5204
5203
  //#endregion
5205
5204
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_6b342e94e942eed410acc909cdad6bca/node_modules/@marimo-team/codemirror-mcp/dist/resources/decoration.js
5206
- var Fs = class extends ot {
5205
+ var Fs = class extends Tt {
5207
5206
  resource;
5208
5207
  view;
5209
5208
  constructor(e, t) {
@@ -5224,7 +5223,7 @@ var Fs = class extends ot {
5224
5223
  e.preventDefault(), e.stopPropagation(), i(this.resource);
5225
5224
  }), e;
5226
5225
  }
5227
- }, Is = class extends ot {
5226
+ }, Is = class extends Tt {
5228
5227
  uri;
5229
5228
  view;
5230
5229
  constructor(e, t) {
@@ -5244,12 +5243,12 @@ function Ls(e) {
5244
5243
  let a = e.state.doc.sliceString(r, i);
5245
5244
  for (let i of $(a)) {
5246
5245
  let a = r + i.index, o = i[0].slice(1), s = t.get(o);
5247
- s ? n.push(ft.replace({ widget: new Fs(s, e) }).range(a, a + i[0].length)) : n.push(ft.replace({ widget: new Is(o, e) }).range(a, a + i[0].length));
5246
+ s ? n.push(jt.replace({ widget: new Fs(s, e) }).range(a, a + i[0].length)) : n.push(jt.replace({ widget: new Is(o, e) }).range(a, a + i[0].length));
5248
5247
  }
5249
5248
  }
5250
- return ft.set(n);
5249
+ return jt.set(n);
5251
5250
  }
5252
- var Rs = it.fromClass(class {
5251
+ var Rs = Ct.fromClass(class {
5253
5252
  decorations;
5254
5253
  constructor(e) {
5255
5254
  this.decorations = Ls(e);
@@ -5289,7 +5288,7 @@ function Bs(e, t, n, r = 0) {
5289
5288
  return null;
5290
5289
  }
5291
5290
  function Vs(e) {
5292
- return lt((t, n) => {
5291
+ return Ot((t, n) => {
5293
5292
  let { from: r, text: i } = t.state.doc.lineAt(n), a = Bs(i, n, t.state.field(Q), r);
5294
5293
  return a ? {
5295
5294
  pos: a.start,
@@ -5359,8 +5358,8 @@ function Ks(e, t) {
5359
5358
  }
5360
5359
  return null;
5361
5360
  }
5362
- var qs = dt.transactionFilter.of((e) => {
5363
- let t = e.annotation(ct.userEvent);
5361
+ var qs = At.transactionFilter.of((e) => {
5362
+ let t = e.annotation(Dt.userEvent);
5364
5363
  if (!t) return e;
5365
5364
  let n = e.startState.selection.main;
5366
5365
  if (!n.empty) return e;
@@ -5542,11 +5541,11 @@ function $s(e, t) {
5542
5541
  };
5543
5542
  }
5544
5543
  function ec(e, t = {}) {
5545
- return it.fromClass($s(e, t));
5544
+ return Ct.fromClass($s(e, t));
5546
5545
  }
5547
5546
  //#endregion
5548
5547
  //#region ../node_modules/.pnpm/@marimo-team+codemirror-mcp@0.1.7_@codemirror+autocomplete@6.20.3_@codemirror+state@6.7_6b342e94e942eed410acc909cdad6bca/node_modules/@marimo-team/codemirror-mcp/dist/theme.js
5549
- var tc = at.baseTheme({
5548
+ var tc = wt.baseTheme({
5550
5549
  ".cm-resource-widget": {
5551
5550
  background: "light-dark(rgba(86,156,214,0.08),rgba(86,156,214,0.18))",
5552
5551
  borderRadius: "4px",
@@ -5576,32 +5575,32 @@ function ac(e) {
5576
5575
  return t.length === 0 ? rc : t;
5577
5576
  }
5578
5577
  function oc(e) {
5579
- let { language: t, store: n, onAddFiles: i } = e, a = () => ac(n);
5578
+ let { language: t, store: r, onAddFiles: i } = e, a = () => ac(r);
5580
5579
  return [
5581
- t.data.of({ autocomplete: Ns(async () => a(), (e) => e.type === nc ? ic : Bo(n).getProvider(e.type)?.formatCompletion(e) || {}) }),
5582
- rt.high(ut.of([{
5580
+ t.data.of({ autocomplete: Ns(async () => a(), (e) => e.type === nc ? ic : Bo(r).getProvider(e.type)?.formatCompletion(e) || {}) }),
5581
+ St.high(kt.of([{
5583
5582
  key: "Tab",
5584
5583
  preventDefault: !0,
5585
- run: (e) => Nt(e)
5584
+ run: (e) => Mt(e)
5586
5585
  }])),
5587
5586
  Fo.of({ addAttachment: (e) => i?.([e]) }),
5588
5587
  ...i ? [t.data.of({ autocomplete: Vo().createCompletionSource() })] : [],
5589
5588
  Rs,
5590
5589
  qs,
5591
- ec(a, { logger: r }),
5590
+ ec(a, { logger: n }),
5592
5591
  Q.init(() => {
5593
- let e = ac(n);
5592
+ let e = ac(r);
5594
5593
  return new Map(e.map((e) => [e.uri, e]));
5595
5594
  }),
5596
5595
  tc,
5597
5596
  Vs({ createTooltip: (e) => {
5598
- let t = Bo(n).getProvider(e.type);
5599
- if (!t) return r.warn("No provider found for resource", e), sc(e.description || e.name);
5597
+ let t = Bo(r).getProvider(e.type);
5598
+ if (!t) return n.warn("No provider found for resource", e), sc(e.description || e.name);
5600
5599
  let i = t.formatCompletion(e), a = e.description || e.name;
5601
5600
  if (!i?.info) return sc(a);
5602
5601
  if (typeof i.info == "string") return sc(i.info);
5603
5602
  let o = i.info(i);
5604
- return o ? "dom" in o ? { dom: o.dom } : "then" in o ? (r.warn("info is a promise. This is not supported", o), sc(a)) : { dom: o } : sc(a);
5603
+ return o ? "dom" in o ? { dom: o.dom } : "then" in o ? (n.warn("info is a promise. This is not supported", o), sc(a)) : { dom: o } : sc(a);
5605
5604
  } })
5606
5605
  ];
5607
5606
  }
@@ -5611,13 +5610,13 @@ function sc(e) {
5611
5610
  }
5612
5611
  //#endregion
5613
5612
  //#region src/components/editor/ai/prompt-input.tsx
5614
- var cc = "marimo:ai-prompt-history", lc = new Te(Ct(vt()), () => []), uc = (e) => {
5615
- let t = (0, P.c)(28), { value: n, placeholder: r, placeholderAction: a, inputRef: o, className: s, onChange: c, onSubmit: l, onKeyDown: u, onClose: d, onAddFiles: f, additionalCompletions: p, maxHeight: h } = e, g = Qe(l), _ = Qe(d), v = Ze(), { theme: y } = Je(), b;
5613
+ var cc = "marimo:ai-prompt-history", lc = new Te(Ze(ut()), () => []), uc = (e) => {
5614
+ let t = (0, F.c)(28), { value: n, placeholder: i, placeholderAction: a, inputRef: o, className: s, onChange: c, onSubmit: l, onKeyDown: u, onClose: d, onAddFiles: f, additionalCompletions: p, maxHeight: h } = e, g = yt(l), _ = yt(d), v = Qe(), { theme: y } = mt(), b;
5616
5615
  t[0] === p ? b = t[1] : (b = (e) => p ? Ho([p.triggerCompletionRegex], p.completions)(e) : null, t[0] = p, t[1] = b);
5617
- let x = Qe(b), S;
5616
+ let x = yt(b), S;
5618
5617
  if (t[2] !== x || t[3] !== _ || t[4] !== g || t[5] !== f || t[6] !== a || t[7] !== v) {
5619
- let e = It(), n;
5620
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (n = Ft({}), t[9] = n) : n = t[9];
5618
+ let e = Ft(), n;
5619
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (n = Pt({}), t[9] = n) : n = t[9];
5621
5620
  let r = oc({
5622
5621
  language: e.language,
5623
5622
  store: v,
@@ -5628,9 +5627,9 @@ var cc = "marimo:ai-prompt-history", lc = new Te(Ct(vt()), () => []), uc = (e) =
5628
5627
  save: fc
5629
5628
  } }), t[10] = o) : o = t[10];
5630
5629
  let s;
5631
- t[11] === Symbol.for("react.memo_cache_sentinel") ? (s = Lt(), t[11] = s) : s = t[11];
5630
+ t[11] === Symbol.for("react.memo_cache_sentinel") ? (s = It(), t[11] = s) : s = t[11];
5632
5631
  let c;
5633
- t[12] === g ? c = t[13] : (c = rt.highest(ut.of([{
5632
+ t[12] === g ? c = t[13] : (c = St.highest(kt.of([{
5634
5633
  preventDefault: !0,
5635
5634
  stopPropagation: !0,
5636
5635
  any: (e, t) => {
@@ -5639,7 +5638,7 @@ var cc = "marimo:ai-prompt-history", lc = new Te(Ct(vt()), () => []), uc = (e) =
5639
5638
  }
5640
5639
  }])), t[12] = g, t[13] = c);
5641
5640
  let l;
5642
- t[14] === _ ? l = t[15] : (l = ut.of([{
5641
+ t[14] === _ ? l = t[15] : (l = kt.of([{
5643
5642
  key: "Escape",
5644
5643
  preventDefault: !0,
5645
5644
  stopPropagation: !0,
@@ -5651,16 +5650,16 @@ var cc = "marimo:ai-prompt-history", lc = new Te(Ct(vt()), () => []), uc = (e) =
5651
5650
  r,
5652
5651
  i,
5653
5652
  o,
5654
- at.lineWrapping,
5653
+ wt.lineWrapping,
5655
5654
  s,
5656
5655
  c,
5657
5656
  l
5658
5657
  ], t[2] = x, t[3] = _, t[4] = g, t[5] = f, t[6] = a, t[7] = v, t[8] = S;
5659
5658
  } else S = t[8];
5660
5659
  let C = S, w;
5661
- t[16] === s ? w = t[17] : (w = i("mo-ai-prompt flex-1 font-sans text-sm leading-6 overflow-auto my-1", s), t[16] = s, t[17] = w);
5662
- let T = y === "dark" ? "dark" : "light", E = a ? void 0 : r || "Generate with AI, @ to include context", D;
5663
- return t[18] !== C || t[19] !== o || t[20] !== h || t[21] !== c || t[22] !== u || t[23] !== w || t[24] !== T || t[25] !== E || t[26] !== n ? (D = /* @__PURE__ */ (0, J.jsx)(Rt, {
5660
+ t[16] === s ? w = t[17] : (w = r("mo-ai-prompt flex-1 font-sans text-sm leading-6 overflow-auto my-1", s), t[16] = s, t[17] = w);
5661
+ let T = y === "dark" ? "dark" : "light", E = a ? void 0 : i || "Generate with AI, @ to include context", D;
5662
+ return t[18] !== C || t[19] !== o || t[20] !== h || t[21] !== c || t[22] !== u || t[23] !== w || t[24] !== T || t[25] !== E || t[26] !== n ? (D = /* @__PURE__ */ (0, J.jsx)(Lt, {
5664
5663
  ref: o,
5665
5664
  className: w,
5666
5665
  width: "100%",
@@ -5682,20 +5681,20 @@ function fc(e) {
5682
5681
  }
5683
5682
  //#endregion
5684
5683
  //#region src/plugins/impl/chat/chat-ui.tsx
5685
- var pc = u, mc = bt({
5686
- type: xt("stream_chunk"),
5687
- message_id: vt(),
5688
- content: At().nullable().transform((e) => e),
5689
- is_final: mt().optional()
5684
+ var pc = u, mc = ft({
5685
+ type: $e("stream_chunk"),
5686
+ message_id: ut(),
5687
+ content: Je().nullable().transform((e) => e),
5688
+ is_final: dt().optional()
5690
5689
  });
5691
5690
  function hc(e, t) {
5692
- let { controllerRef: n, activeRequestIdRef: i } = t, a = n.current;
5691
+ let { controllerRef: r, activeRequestIdRef: i } = t, a = r.current;
5693
5692
  if (a === null) return "dropped-no-controller";
5694
5693
  let o = i.current;
5695
- return o !== null && e.message_id !== o ? (r.debug("Dropping stale chat chunk", {
5694
+ return o !== null && e.message_id !== o ? (n.debug("Dropping stale chat chunk", {
5696
5695
  chunkRequestId: e.message_id,
5697
5696
  activeRequestId: o
5698
- }), "dropped-stale") : (e.content && a.enqueue(e.content), e.is_final ? (a.close(), n.current = null, i.current = null, "closed") : "enqueued");
5697
+ }), "dropped-stale") : (e.content && a.enqueue(e.content), e.is_final ? (a.close(), r.current = null, i.current = null, "closed") : "enqueued");
5699
5698
  }
5700
5699
  var gc = (e) => {
5701
5700
  let [t, o] = (0, q.useState)(""), [s, c] = (0, q.useState)(e.config), [u, f] = (0, q.useState)(e.config), [p, m] = (0, q.useState)(void 0), h = (0, q.useRef)(null), g = (0, q.useRef)(null), _ = (0, q.useRef)(null), v = (0, q.useRef)(null);
@@ -5706,11 +5705,11 @@ var gc = (e) => {
5706
5705
  }, [s]);
5707
5706
  let b = (0, q.useRef)(null), x = (0, q.useRef)(null), S = (0, q.useRef)(null), [C, w] = (0, q.useState)(null), T = () => {
5708
5707
  S.current = null, w(null);
5709
- }, { data: E } = zt(async () => (await e.get_chat_history({})).messages, []), O = e.value.length > 0 ? e.value : E, { messages: k, sendMessage: A, setMessages: j, status: M, stop: ee, error: te, regenerate: ne, clearError: ie, addToolApprovalResponse: ae } = lo({
5708
+ }, { data: D } = Rt(async () => (await e.get_chat_history({})).messages, []), O = e.value.length > 0 ? e.value : D, { messages: k, sendMessage: A, setMessages: j, status: M, stop: ee, error: N, regenerate: ne, clearError: re, addToolApprovalResponse: ie } = lo({
5710
5709
  sendAutomaticallyWhen: ({ messages: e }) => Wo(e),
5711
- transport: new Ha({ fetch: async (t, n) => {
5712
- if (n === void 0) return fetch(t);
5713
- let i = JSON.parse(n.body), a = n.signal, o = {
5710
+ transport: new Ha({ fetch: async (t, r) => {
5711
+ if (r === void 0) return fetch(t);
5712
+ let i = JSON.parse(r.body), a = r.signal, o = {
5714
5713
  max_tokens: y.current.max_tokens,
5715
5714
  temperature: y.current.temperature,
5716
5715
  top_p: y.current.top_p,
@@ -5722,19 +5721,19 @@ var gc = (e) => {
5722
5721
  let t = i.messages.map((e) => ({
5723
5722
  ...e,
5724
5723
  content: e.parts?.map((e) => "text" in e ? e.text : "").join("\n")
5725
- })), n = D();
5724
+ })), r = E();
5726
5725
  T();
5727
5726
  let s = new ReadableStream({
5728
5727
  start(t) {
5729
- b.current = t, x.current = n;
5728
+ b.current = t, x.current = r;
5730
5729
  let i = () => {
5731
5730
  try {
5732
5731
  t.close();
5733
5732
  } catch (e) {
5734
- r.debug("Controller may already be closed", { error: e });
5733
+ n.debug("Controller may already be closed", { error: e });
5735
5734
  }
5736
- b.current = null, x.current = null, e.cancel_prompt({ request_id: n }).catch((e) => {
5737
- r.debug("cancel_prompt failed", { error: e });
5735
+ b.current = null, x.current = null, e.cancel_prompt({ request_id: r }).catch((e) => {
5736
+ n.debug("cancel_prompt failed", { error: e });
5738
5737
  });
5739
5738
  };
5740
5739
  return a?.addEventListener("abort", i), () => {
@@ -5746,7 +5745,7 @@ var gc = (e) => {
5746
5745
  }
5747
5746
  });
5748
5747
  return e.send_prompt({
5749
- request_id: n,
5748
+ request_id: r,
5750
5749
  messages: t,
5751
5750
  config: o
5752
5751
  }).catch((e) => {
@@ -5759,18 +5758,18 @@ var gc = (e) => {
5759
5758
  }
5760
5759
  } }),
5761
5760
  messages: O,
5762
- onFinish: ({ messages: t, isAbort: n, finishReason: i }) => {
5763
- if (m(void 0), h.current && (h.current.value = ""), r.debug("Finished streaming message:", {
5761
+ onFinish: ({ messages: t, isAbort: r, finishReason: i }) => {
5762
+ if (m(void 0), h.current && (h.current.value = ""), n.debug("Finished streaming message:", {
5764
5763
  finishReason: i,
5765
- isAbort: n
5766
- }), n) {
5764
+ isAbort: r
5765
+ }), r) {
5767
5766
  let e = po({
5768
5767
  isAbort: !0,
5769
5768
  streamReason: S.current
5770
5769
  });
5771
5770
  if (T(), e != null) {
5772
5771
  let t = mo(e);
5773
- r.debug("Chat stream aborted", {
5772
+ n.debug("Chat stream aborted", {
5774
5773
  reason: e,
5775
5774
  finishReason: i
5776
5775
  }), w(t);
@@ -5779,10 +5778,10 @@ var gc = (e) => {
5779
5778
  e.setValue(t);
5780
5779
  },
5781
5780
  onError: (e) => {
5782
- r.error("An error occurred:", e);
5781
+ n.error("An error occurred:", e);
5783
5782
  }
5784
5783
  });
5785
- n(e.host, Re.TYPE, (e) => {
5784
+ i(e.host, Le.TYPE, (e) => {
5786
5785
  let t = mc.safeParse(e.detail.message);
5787
5786
  if (t.success) {
5788
5787
  if (t.data.content && t.data.message_id === x.current) {
@@ -5795,27 +5794,27 @@ var gc = (e) => {
5795
5794
  });
5796
5795
  }
5797
5796
  });
5798
- let oe = M === "submitted" || M === "streaming", se = (t) => {
5797
+ let ae = M === "submitted" || M === "streaming", oe = (t) => {
5799
5798
  let n = k.findIndex((e) => e.id === t);
5800
5799
  if (n !== -1) {
5801
5800
  let r = k.filter((e) => e.id !== t);
5802
5801
  e.delete_chat_message({ index: n }), j(r), e.setValue(r), r.length === 0 && T();
5803
5802
  }
5804
- }, ce = Array.isArray(e.allowAttachments) && e.allowAttachments.length > 0 || e.allowAttachments === !0, le = {
5803
+ }, se = Array.isArray(e.allowAttachments) && e.allowAttachments.length > 0 || e.allowAttachments === !0, ce = {
5805
5804
  triggerCompletionRegex: /^\/(\w+)?/,
5806
5805
  completions: e.prompts.map((e) => ({
5807
5806
  label: `/${e}`,
5808
5807
  displayLabel: e,
5809
5808
  apply: e
5810
5809
  }))
5811
- }, ue = e.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
5810
+ }, le = e.prompts.length > 0 ? "Type your message here, / for prompts" : "Type your message here...";
5812
5811
  (0, q.useEffect)(() => {
5813
5812
  v.current?.scrollTo({
5814
5813
  top: v.current.scrollHeight,
5815
5814
  behavior: "smooth"
5816
5815
  });
5817
5816
  }, [k.length, v]);
5818
- let de = () => {
5817
+ let ue = () => {
5819
5818
  let e = _.current?.view;
5820
5819
  if (e) {
5821
5820
  let t = e.state.doc.length;
@@ -5839,9 +5838,9 @@ var gc = (e) => {
5839
5838
  size: "icon",
5840
5839
  disabled: k.length === 0,
5841
5840
  onClick: () => {
5842
- j([]), e.setValue([]), e.delete_chat_history({}), ie(), T();
5841
+ j([]), e.setValue([]), e.delete_chat_history({}), re(), T();
5843
5842
  },
5844
- children: /* @__PURE__ */ (0, J.jsx)(Xt, { className: "h-3 w-3" })
5843
+ children: /* @__PURE__ */ (0, J.jsx)(Yt, { className: "h-3 w-3" })
5845
5844
  })
5846
5845
  }),
5847
5846
  /* @__PURE__ */ (0, J.jsxs)("div", {
@@ -5851,7 +5850,7 @@ var gc = (e) => {
5851
5850
  k.length === 0 && /* @__PURE__ */ (0, J.jsxs)("div", {
5852
5851
  className: "flex flex-col items-center justify-center h-full text-muted-foreground text-center p-4",
5853
5852
  children: [
5854
- /* @__PURE__ */ (0, J.jsx)(Ht, { className: "h-12 w-12 mb-4" }),
5853
+ /* @__PURE__ */ (0, J.jsx)(Vt, { className: "h-12 w-12 mb-4" }),
5855
5854
  /* @__PURE__ */ (0, J.jsx)("h3", {
5856
5855
  className: "text-lg font-semibold mb-2",
5857
5856
  children: "No messages yet"
@@ -5863,16 +5862,16 @@ var gc = (e) => {
5863
5862
  ]
5864
5863
  }),
5865
5864
  k.map((e, t) => {
5866
- let n = e.parts?.filter((e) => e.type === "text").map((e) => e.text).join("\n"), r = t === k.length - 1;
5865
+ let n = e.parts?.filter((e) => e.type === "text").map((e) => e.text).join("\n"), i = t === k.length - 1;
5867
5866
  return /* @__PURE__ */ (0, J.jsxs)("div", {
5868
- className: i("flex flex-col group gap-2", e.role === "user" ? "items-end" : "items-start"),
5867
+ className: r("flex flex-col group gap-2", e.role === "user" ? "items-end" : "items-start"),
5869
5868
  children: [/* @__PURE__ */ (0, J.jsx)("div", {
5870
5869
  className: `max-w-[80%] p-3 rounded-lg ${e.role === "user" ? "bg-(--sky-11) text-(--slate-1) whitespace-pre-wrap" : "bg-(--slate-4) text-(--slate-12) [--muted-foreground:var(--slate-11)]"}`,
5871
5870
  children: ms({
5872
5871
  message: e,
5873
- isLast: r,
5874
- isActive: oe,
5875
- addToolApprovalResponse: r ? ae : void 0
5872
+ isLast: i,
5873
+ isActive: ae,
5874
+ addToolApprovalResponse: i ? ie : void 0
5876
5875
  })
5877
5876
  }), /* @__PURE__ */ (0, J.jsxs)("div", {
5878
5877
  className: "flex justify-end text-xs gap-2 opacity-0 group-hover:opacity-100 focus-within:opacity-100",
@@ -5883,27 +5882,27 @@ var gc = (e) => {
5883
5882
  }), /* @__PURE__ */ (0, J.jsx)("button", {
5884
5883
  type: "button",
5885
5884
  "aria-label": "Delete message",
5886
- onClick: () => se(e.id),
5885
+ onClick: () => oe(e.id),
5887
5886
  className: "text-xs text-(--slate-9) hover:text-(--slate-11)",
5888
5887
  children: /* @__PURE__ */ (0, J.jsx)(d, { className: "h-3 w-3 text-(--red-9)" })
5889
5888
  })]
5890
5889
  })]
5891
5890
  }, e.id);
5892
5891
  }),
5893
- oe && k.at(-1)?.role !== "assistant" && /* @__PURE__ */ (0, J.jsx)("div", {
5892
+ ae && k.at(-1)?.role !== "assistant" && /* @__PURE__ */ (0, J.jsx)("div", {
5894
5893
  className: "flex items-center justify-center mb-4",
5895
- children: /* @__PURE__ */ (0, J.jsx)(re, { size: "small" })
5894
+ children: /* @__PURE__ */ (0, J.jsx)(te, { size: "small" })
5896
5895
  }),
5897
- te && /* @__PURE__ */ (0, J.jsxs)("div", {
5896
+ N && /* @__PURE__ */ (0, J.jsxs)("div", {
5898
5897
  className: "flex items-center justify-center space-x-2 mb-4",
5899
- children: [/* @__PURE__ */ (0, J.jsx)(qe, { error: te }), /* @__PURE__ */ (0, J.jsx)(a, {
5898
+ children: [/* @__PURE__ */ (0, J.jsx)(gt, { error: N }), /* @__PURE__ */ (0, J.jsx)(a, {
5900
5899
  variant: "outline",
5901
5900
  size: "sm",
5902
5901
  onClick: () => ne(),
5903
5902
  children: "Retry"
5904
5903
  })]
5905
5904
  }),
5906
- C && !oe && !te && /* @__PURE__ */ (0, J.jsx)("div", {
5905
+ C && !ae && !N && /* @__PURE__ */ (0, J.jsx)("div", {
5907
5906
  className: "flex justify-center py-2",
5908
5907
  children: /* @__PURE__ */ (0, J.jsx)("span", {
5909
5908
  className: "text-xs text-muted-foreground",
@@ -5922,11 +5921,11 @@ var gc = (e) => {
5922
5921
  type: "text",
5923
5922
  text: t
5924
5923
  }, ...r ?? []]
5925
- }), de();
5924
+ }), ue();
5926
5925
  },
5927
5926
  ref: g,
5928
5927
  inert: e.disabled || void 0,
5929
- className: i("flex w-full border-t border-(--slate-6) px-2 py-1 items-center", e.disabled && "opacity-50 cursor-not-allowed"),
5928
+ className: r("flex w-full border-t border-(--slate-6) px-2 py-1 items-center", e.disabled && "opacity-50 cursor-not-allowed"),
5930
5929
  children: [
5931
5930
  e.showConfigurationControls && /* @__PURE__ */ (0, J.jsx)(vc, {
5932
5931
  config: s,
@@ -5943,7 +5942,7 @@ var gc = (e) => {
5943
5942
  }),
5944
5943
  /* @__PURE__ */ (0, J.jsx)(uc, {
5945
5944
  className: "rounded-sm mr-2",
5946
- placeholder: ue,
5945
+ placeholder: le,
5947
5946
  value: t,
5948
5947
  inputRef: _,
5949
5948
  maxHeight: e.maxHeight ? `${e.maxHeight / 2}px` : void 0,
@@ -5952,7 +5951,7 @@ var gc = (e) => {
5952
5951
  t.trim() && g.current?.requestSubmit();
5953
5952
  },
5954
5953
  onClose: () => {},
5955
- additionalCompletions: le
5954
+ additionalCompletions: ce
5956
5955
  }),
5957
5956
  p && p.length === 1 && /* @__PURE__ */ (0, J.jsx)("span", {
5958
5957
  title: p[0].name,
@@ -5971,14 +5970,14 @@ var gc = (e) => {
5971
5970
  onClick: () => {
5972
5971
  m(void 0), h.current && (h.current.value = "");
5973
5972
  },
5974
- children: /* @__PURE__ */ (0, J.jsx)(Ge, { className: "size-3" })
5973
+ children: /* @__PURE__ */ (0, J.jsx)(We, { className: "size-3" })
5975
5974
  }),
5976
- ce && /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(a, {
5975
+ se && /* @__PURE__ */ (0, J.jsxs)(J.Fragment, { children: [/* @__PURE__ */ (0, J.jsx)(a, {
5977
5976
  type: "button",
5978
5977
  variant: "text",
5979
5978
  size: "sm",
5980
5979
  onClick: () => h.current?.click(),
5981
- children: /* @__PURE__ */ (0, J.jsx)(Yt, { className: "h-4" })
5980
+ children: /* @__PURE__ */ (0, J.jsx)(Jt, { className: "h-4" })
5982
5981
  }), /* @__PURE__ */ (0, J.jsx)("input", {
5983
5982
  type: "file",
5984
5983
  ref: h,
@@ -5989,7 +5988,7 @@ var gc = (e) => {
5989
5988
  e.target.files && m([...e.target.files]);
5990
5989
  }
5991
5990
  })] }),
5992
- oe ? /* @__PURE__ */ (0, J.jsx)(pe, {
5991
+ ae ? /* @__PURE__ */ (0, J.jsx)(fe, {
5993
5992
  content: "Stop generating",
5994
5993
  children: /* @__PURE__ */ (0, J.jsx)(a, {
5995
5994
  type: "button",
@@ -5997,7 +5996,7 @@ var gc = (e) => {
5997
5996
  size: "xs",
5998
5997
  onClick: () => ee(),
5999
5998
  className: "text-(--red-9) hover:text-(--red-11)",
6000
- children: /* @__PURE__ */ (0, J.jsx)(Ie, { className: "h-4 w-4 fill-current" })
5999
+ children: /* @__PURE__ */ (0, J.jsx)(Fe, { className: "h-4 w-4 fill-current" })
6001
6000
  })
6002
6001
  }) : /* @__PURE__ */ (0, J.jsx)(a, {
6003
6002
  type: "submit",
@@ -6006,7 +6005,7 @@ var gc = (e) => {
6006
6005
  size: "xs",
6007
6006
  className: "text-(--slate-11)",
6008
6007
  "aria-label": "Send message",
6009
- children: /* @__PURE__ */ (0, J.jsx)(Qt, { className: "h-4 w-4" })
6008
+ children: /* @__PURE__ */ (0, J.jsx)(Zt, { className: "h-4 w-4" })
6010
6009
  })
6011
6010
  ]
6012
6011
  })
@@ -6046,7 +6045,7 @@ var gc = (e) => {
6046
6045
  description: "Penalizes new tokens (-2: favor, 2: avoid)"
6047
6046
  }
6048
6047
  }, vc = (e) => {
6049
- let t = (0, P.c)(16), { config: n, onChange: r } = e, [i, o] = (0, q.useState)(!1), s;
6048
+ let t = (0, F.c)(16), { config: n, onChange: r } = e, [i, o] = (0, q.useState)(!1), s;
6050
6049
  t[0] !== n || t[1] !== r ? (s = (e, t) => {
6051
6050
  let i = t === null || Number.isNaN(t) ? null : t;
6052
6051
  if (i !== null) {
@@ -6064,7 +6063,7 @@ var gc = (e) => {
6064
6063
  e.key === "Enter" && (e.preventDefault(), o(!1));
6065
6064
  }, t[3] = l) : l = t[3];
6066
6065
  let u = l, d;
6067
- t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, J.jsx)(pe, {
6066
+ t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, J.jsx)(fe, {
6068
6067
  content: "Configuration",
6069
6068
  children: /* @__PURE__ */ (0, J.jsx)(C, {
6070
6069
  asChild: !0,
@@ -6072,7 +6071,7 @@ var gc = (e) => {
6072
6071
  variant: "outline",
6073
6072
  size: "sm",
6074
6073
  className: "border-none shadow-none hover:bg-transparent",
6075
- children: /* @__PURE__ */ (0, J.jsx)($t, { className: "h-3 w-3" })
6074
+ children: /* @__PURE__ */ (0, J.jsx)(Qt, { className: "h-3 w-3" })
6076
6075
  })
6077
6076
  })
6078
6077
  }), t[4] = d) : d = t[4];
@@ -6088,19 +6087,19 @@ var gc = (e) => {
6088
6087
  let [t, n] = e;
6089
6088
  return /* @__PURE__ */ (0, J.jsxs)("div", {
6090
6089
  className: "grid grid-cols-3 items-center gap-1",
6091
- children: [/* @__PURE__ */ (0, J.jsxs)(me, {
6090
+ children: [/* @__PURE__ */ (0, J.jsxs)(pe, {
6092
6091
  htmlFor: t,
6093
6092
  className: "flex w-full justify-between col-span-3 align-end",
6094
- children: [We.startCase(t), /* @__PURE__ */ (0, J.jsx)(pe, {
6093
+ children: [Ue.startCase(t), /* @__PURE__ */ (0, J.jsx)(fe, {
6095
6094
  delayDuration: 200,
6096
6095
  side: "top",
6097
6096
  content: /* @__PURE__ */ (0, J.jsx)("div", {
6098
6097
  className: "text-xs flex flex-col",
6099
6098
  children: _c[t].description
6100
6099
  }),
6101
- children: /* @__PURE__ */ (0, J.jsx)(we, { className: "h-3 w-3 cursor-help text-muted-foreground hover:text-foreground" })
6100
+ children: /* @__PURE__ */ (0, J.jsx)(Ce, { className: "h-3 w-3 cursor-help text-muted-foreground hover:text-foreground" })
6102
6101
  })]
6103
- }), /* @__PURE__ */ (0, J.jsx)(ge, {
6102
+ }), /* @__PURE__ */ (0, J.jsx)(he, {
6104
6103
  id: t,
6105
6104
  "aria-label": t,
6106
6105
  value: n ?? NaN,
@@ -6113,7 +6112,7 @@ var gc = (e) => {
6113
6112
  className: "col-span-3"
6114
6113
  })]
6115
6114
  }, t);
6116
- }, t[9] = c, t[10] = e), p = et.entries(n).map(e), t[6] = n, t[7] = c, t[8] = p;
6115
+ }, t[9] = c, t[10] = e), p = vt.entries(n).map(e), t[6] = n, t[7] = c, t[8] = p;
6117
6116
  } else p = t[8];
6118
6117
  let m;
6119
6118
  t[11] === p ? m = t[12] : (m = /* @__PURE__ */ (0, J.jsx)(b, {
@@ -6130,34 +6129,34 @@ var gc = (e) => {
6130
6129
  children: [d, m]
6131
6130
  }), t[13] = i, t[14] = m, t[15] = h) : h = t[15], h;
6132
6131
  }, yc = (e) => {
6133
- let t = (0, P.c)(18), { prompts: n, onSelect: r } = e, [i, o] = (0, q.useState)(!1), [s, c] = (0, q.useState)(""), l;
6132
+ let t = (0, F.c)(18), { prompts: n, onSelect: r } = e, [i, o] = (0, q.useState)(!1), [s, c] = (0, q.useState)(""), l;
6134
6133
  t[0] === r ? l = t[1] : (l = (e) => {
6135
6134
  [...e.matchAll(/{{(\w+)}}/g)].length > 0 ? (c(e), o(!0)) : r(e);
6136
6135
  }, t[0] = r, t[1] = l);
6137
6136
  let u = l, d;
6138
- t[2] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, J.jsx)(pe, {
6137
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, J.jsx)(fe, {
6139
6138
  content: "Select a prompt",
6140
- children: /* @__PURE__ */ (0, J.jsx)(ve, {
6139
+ children: /* @__PURE__ */ (0, J.jsx)(_e, {
6141
6140
  asChild: !0,
6142
6141
  children: /* @__PURE__ */ (0, J.jsx)(a, {
6143
6142
  variant: "outline",
6144
6143
  size: "sm",
6145
6144
  className: "border-none shadow-none hover:bg-transparent",
6146
- children: /* @__PURE__ */ (0, J.jsx)(ue, { className: "h-3 w-3" })
6145
+ children: /* @__PURE__ */ (0, J.jsx)(le, { className: "h-3 w-3" })
6147
6146
  })
6148
6147
  })
6149
6148
  }), t[2] = d) : d = t[2];
6150
6149
  let f;
6151
6150
  if (t[3] !== u || t[4] !== n) {
6152
6151
  let e;
6153
- t[6] === u ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, J.jsx)(be, {
6152
+ t[6] === u ? e = t[7] : (e = (e, t) => /* @__PURE__ */ (0, J.jsx)(ye, {
6154
6153
  onSelect: () => u(e),
6155
6154
  className: "whitespace-normal text-left",
6156
6155
  children: e
6157
6156
  }, t), t[6] = u, t[7] = e), f = n.map(e), t[3] = u, t[4] = n, t[5] = f;
6158
6157
  } else f = t[5];
6159
6158
  let p;
6160
- t[8] === f ? p = t[9] : (p = /* @__PURE__ */ (0, J.jsx)(pc, { children: /* @__PURE__ */ (0, J.jsxs)(Se, { children: [d, /* @__PURE__ */ (0, J.jsx)(xe, {
6159
+ t[8] === f ? p = t[9] : (p = /* @__PURE__ */ (0, J.jsx)(pc, { children: /* @__PURE__ */ (0, J.jsxs)(xe, { children: [d, /* @__PURE__ */ (0, J.jsx)(be, {
6161
6160
  side: "right",
6162
6161
  align: "end",
6163
6162
  onCloseAutoFocus: xc,
@@ -6184,7 +6183,7 @@ var gc = (e) => {
6184
6183
  children: [p, h]
6185
6184
  }), t[14] = i, t[15] = p, t[16] = h, t[17] = g) : g = t[17], g;
6186
6185
  }, bc = (e) => {
6187
- let t = (0, P.c)(30), { prompt: n, onClose: r, onSelect: i } = e, o;
6186
+ let t = (0, F.c)(30), { prompt: n, onClose: r, onSelect: i } = e, o;
6188
6187
  t[0] === n ? o = t[1] : (o = () => [...n.matchAll(/{{(\w+)}}/g)].reduce(Sc, {}), t[0] = n, t[1] = o);
6189
6188
  let [s, c] = (0, q.useState)(o), l;
6190
6189
  t[2] === Symbol.for("react.memo_cache_sentinel") ? (l = (e, t) => {
@@ -6213,11 +6212,11 @@ var gc = (e) => {
6213
6212
  let [n, r] = e;
6214
6213
  return /* @__PURE__ */ (0, J.jsxs)("div", {
6215
6214
  className: "grid grid-cols-4 items-center gap-2",
6216
- children: [/* @__PURE__ */ (0, J.jsx)(me, {
6215
+ children: [/* @__PURE__ */ (0, J.jsx)(pe, {
6217
6216
  htmlFor: n,
6218
6217
  className: "font-semibold text-base",
6219
6218
  children: n
6220
- }), /* @__PURE__ */ (0, J.jsx)(ye, {
6219
+ }), /* @__PURE__ */ (0, J.jsx)(ve, {
6221
6220
  id: n,
6222
6221
  value: r,
6223
6222
  onChange: (e) => u(n, e.target.value),