@hanzo/dev 4.1.0 → 4.2.1

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 (122) hide show
  1. package/dist/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-BCDMNW2g.js} +19 -19
  2. package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-BUidXqSs.js} +2460 -2460
  3. package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
  4. package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
  5. package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-2HD5qiyt.js} +227 -227
  6. package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-CuWvI5hS.js} +13 -13
  7. package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-Z2QVmBzu.js} +328 -328
  8. package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-CEfiCIGR.js} +3 -3
  9. package/dist/{DocumentPages-VSn83vty.js → DocumentPages-glImt2JO.js} +3 -3
  10. package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-iqO3LiIj.js} +404 -404
  11. package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-GwnRmXEh.js} +4 -4
  12. package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-CXWpTlfI.js} +1089 -1089
  13. package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-CDydHOXg.js} +2 -2
  14. package/dist/{FontViewer-CLDdwhSr.js → FontViewer-DDt9C5Cb.js} +5 -5
  15. package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-_sfrtw9j.js} +357 -357
  16. package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-coFQvyRw.js} +3 -3
  17. package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
  18. package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-D3RklYQB.js} +8 -8
  19. package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
  20. package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BmPdNxW5.js} +2 -2
  21. package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-BlKTevTF.js} +3 -3
  22. package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-C0gSEyeO.js} +10 -10
  23. package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-Ago_DWEt.js} +2 -2
  24. package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-DBRqtLet.js} +10 -10
  25. package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-DD_h7VLv.js} +287 -287
  26. package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-B4dxjpba.js} +4 -4
  27. package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
  28. package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-BwYKB-3e.js} +892 -892
  29. package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-6UU-M6_B.js} +3 -3
  30. package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-D-00K-A9.js} +3 -3
  31. package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-CiuHdDv8.js} +489 -489
  32. package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
  33. package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
  34. package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
  35. package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-pQXIfodT.js} +3 -3
  36. package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Cqfh5eN2.js} +476 -476
  37. package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-B4Lp8Ktf.js} +334 -334
  38. package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-7xXUUySV.js} +5 -5
  39. package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-B_yprjav.js} +2 -2
  40. package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
  41. package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
  42. package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-DCgE3ojz.js} +461 -461
  43. package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
  44. package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
  45. package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
  46. package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-BbVlDQYx.js} +18 -18
  47. package/dist/builder/api/git.d.ts +32 -4
  48. package/dist/builder/api/git.js +74 -4
  49. package/dist/builder/api/github.d.ts +54 -0
  50. package/dist/builder/api/github.js +103 -1
  51. package/dist/builder/api/models.d.ts +2 -0
  52. package/dist/builder/api/models.js +6 -1
  53. package/dist/builder/api/sandbox.d.ts +2 -0
  54. package/dist/builder/api/sandbox.js +3 -1
  55. package/dist/builder/desk.d.ts +6 -0
  56. package/dist/builder/desk.js +79 -14
  57. package/dist/builder/forge.js +79 -10
  58. package/dist/builder/github-sync.d.ts +70 -0
  59. package/dist/builder/github-sync.js +435 -0
  60. package/dist/builder/mind.d.ts +5 -5
  61. package/dist/builder/mind.js +35 -14
  62. package/dist/builder/pane.d.ts +1 -1
  63. package/dist/builder/pane.js +1 -1
  64. package/dist/builder/panel.js +5 -5
  65. package/dist/builder/preview-fallback.d.ts +47 -0
  66. package/dist/builder/preview-fallback.js +341 -0
  67. package/dist/builder/project.js +17 -4
  68. package/dist/builder/sync.js +27 -4
  69. package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-DrjqPCpz.js} +5 -5
  70. package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
  71. package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
  72. package/dist/core.js +1 -1
  73. package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-ZtWU3urU.js} +2 -2
  74. package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
  75. package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
  76. package/dist/{embed-c030vUqM.js → embed-CPWZKyIW.js} +36098 -35677
  77. package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
  78. package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
  79. package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-DW94DZj4.js} +54 -54
  80. package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-Cfz-3q1U.js} +507 -507
  81. package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
  82. package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
  83. package/dist/index.css +1 -1
  84. package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
  85. package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
  86. package/dist/keymap.js +1 -1
  87. package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
  88. package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
  89. package/dist/mediaSource-jW5c7b4r.js +70 -0
  90. package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
  91. package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
  92. package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
  93. package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
  94. package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
  95. package/dist/query-BPk2W3QN.js +63 -0
  96. package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-CjZdBNVR.js} +2 -2
  97. package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
  98. package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
  99. package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
  100. package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
  101. package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
  102. package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
  103. package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
  104. package/dist/{threadSearch-BHyWwcV3.js → threadSearch-CrtCof6n.js} +162 -162
  105. package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
  106. package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
  107. package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
  108. package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
  109. package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-PesehDX0.js} +33 -33
  110. package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
  111. package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
  112. package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-CNhjWfP0.js} +1 -1
  113. package/dist/{useSettings-DYG9Dmro.js → useSettings-B_MtcTyD.js} +139 -139
  114. package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-B1wCgLPO.js} +1404 -1404
  115. package/dist/{useTheme-D2ZM1gvV.js → useTheme-WlXpQRKG.js} +4 -4
  116. package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
  117. package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
  118. package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
  119. package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
  120. package/package.json +1 -1
  121. package/dist/mediaSource-zI7JWid4.js +0 -70
  122. package/dist/query-BxrrBAp6.js +0 -63
@@ -1,30 +1,30 @@
1
- import { Et as e, c as t, i as n, m as r, o as i, t as a } from "./session-_kmiSv2A.js";
1
+ import { Et as e, c as t, i as n, m as r, o as i, t as a } from "./session-Decc4Fo5.js";
2
2
  import { c as o, n as s, s as c } from "./messages-yqmY7G5x.js";
3
- import { Ag as l, Al as u, Bs as d, Cl as f, Fc as p, Gd as m, Gh as h, Hc as g, Jh as _, Og as v, S_ as y, Sd as b, Tf as x, Vh as S, Xd as C, Yd as w, Z as T, Zh as E, bf as D, bg as O, c as ee, ci as te, eg as k, gg as ne, gp as A, gr as re, hf as j, hp as M, hr as N, if as P, lt as F, mf as I, nc as ie, np as L, og as R, ot as z, rp as ae, sf as oe, sg as B, t as se, uc as ce, uf as le, vd as V, wu as ue, x_ as de, xu as fe, y_ as pe, yr as me, zd as H } from "./utils-515nQ17G.js";
4
- import { $t as U, Ac as he, Ad as W, Bc as ge, C as _e, Er as ve, G as ye, Hc as be, Iy as xe, J as Se, Jd as Ce, Ki as we, Mo as Te, N as G, No as Ee, P as De, Qt as Oe, S as ke, Sa as Ae, Sh as je, Tn as Me, Xt as Ne, Z as Pe, Zi as Fe, Zt as Ie, _p as Le, ad as Re, c as ze, cd as Be, d as Ve, ef as He, en as K, f as Ue, fy as We, go as Ge, i as Ke, ic as qe, kd as Je, l as Ye, ly as Xe, m as Ze, nf as Qe, p as $e, pp as et, qu as tt, td as nt, tn as rt, u as it, wd as at, x as ot, xo as st, yd as ct, yp as lt, z as ut } from "./keybindings-C5tK_GAk.js";
5
- import { bt as dt } from "./themePalette-Dl_7omVL.js";
6
- import "./mediaReference-Bt_mh-ag.js";
7
- import { u as ft } from "./network-BbwqRm8c.js";
8
- import { f as pt, g as mt, h as ht, i as gt, r as _t, s as vt, t as yt } from "./modelPickerVisibility-Jue3CLfc.js";
9
- import { $ as bt, Cn as xt, E as St, M as Ct, O as wt, On as Tt, Q as Et, _ as Dt, a as Ot, b as kt, g as At, l as jt, o as Mt, u as Nt } from "./threadSearch-BHyWwcV3.js";
3
+ import { Al as l, Bd as u, Bs as d, C_ as f, Cd as p, Cl as m, Ef as h, Fc as g, Hc as _, Hh as v, Kd as y, Kh as b, Qh as x, S_ as S, Xd as C, Yh as w, Z as ee, Zd as T, _g as E, _p as te, af as D, b_ as ne, c as re, cf as O, cg as k, ci as ie, df as ae, gf as A, gp as j, gr as M, hf as N, hr as P, ip as F, jg as I, kg as L, lt as R, nc as oe, ot as z, rp as se, sg as ce, t as le, tg as B, uc as ue, wu as de, xf as V, xg as fe, xu as pe, yd as me, yr as H } from "./utils-DtKQl-D3.js";
4
+ import { $t as U, Ac as he, Ad as W, Bc as ge, C as _e, Er as ve, G as ye, Hc as be, Iy as xe, J as Se, Jd as Ce, Ki as we, Mo as Te, N as G, No as Ee, P as De, Qt as Oe, S as ke, Sa as Ae, Sh as je, Tn as Me, Xt as Ne, Z as Pe, Zi as Fe, Zt as Ie, _p as Le, ad as Re, c as ze, cd as Be, d as Ve, ef as He, en as K, f as Ue, fy as We, go as Ge, i as Ke, ic as qe, kd as Je, l as Ye, ly as Xe, m as Ze, nf as Qe, p as $e, pp as et, qu as tt, td as nt, tn as rt, u as it, wd as at, x as ot, xo as st, yd as ct, yp as lt, z as ut } from "./keybindings-D0pBlT1k.js";
5
+ import { bt as dt } from "./themePalette-C-GtwwqV.js";
6
+ import "./mediaReference-3wc4ZfY8.js";
7
+ import { u as ft } from "./network-wuXD7-is.js";
8
+ import { f as pt, g as mt, h as ht, i as gt, r as _t, s as vt, t as yt } from "./modelPickerVisibility-DBTc5r1G.js";
9
+ import { $ as bt, Cn as xt, E as St, M as Ct, O as wt, On as Tt, Q as Et, _ as Dt, a as Ot, b as kt, g as At, l as jt, o as Mt, u as Nt } from "./threadSearch-CrtCof6n.js";
10
10
  import { t as Pt } from "./plus-CewHlT33.js";
11
11
  import { n as Ft, r as It, t as Lt } from "./square-terminal-B8IdIpOz.js";
12
12
  import { t as Rt } from "./square-VsbLWtSJ.js";
13
13
  import { t as zt } from "./trash-2-BSTDk3P8.js";
14
14
  import { t as Bt } from "./x-Bjr9Dwvl.js";
15
- import { i as Vt, o as Ht, t as Ut } from "./popover-anNQdce7.js";
16
- import "./errors-DrFQSJW3.js";
17
- import { n as Wt, p as Gt, r as Kt } from "./useSettings-DYG9Dmro.js";
18
- import { C as qt, N as Jt, T as Yt, s as Xt, x as Zt } from "./presentation-D9mVPBHm.js";
15
+ import { i as Vt, o as Ht, t as Ut } from "./popover-BAyP2Tdr.js";
16
+ import "./errors-D8_Zn8KN.js";
17
+ import { n as Wt, p as Gt, r as Kt } from "./useSettings-B_MtcTyD.js";
18
+ import { C as qt, N as Jt, T as Yt, s as Xt, x as Zt } from "./presentation-68y8EAuH.js";
19
19
  import { t as Qt } from "./toastHelpers-BzWu4Odu.js";
20
- import { t as $t } from "./use-atom-command-ByoYq_K6.js";
21
- import { t as en } from "./query-BxrrBAp6.js";
22
- import { A as tn, C as nn, F as rn, S as an, g as on, l as sn, m as cn, u as ln, v as un, x as dn, y as fn } from "./workspaceFocus-BV1_9KiH.js";
23
- import { _ as pn, a as mn, g as hn, h as gn, l as _n, n as vn, v as yn } from "./browserLinkTarget-CA46wnQC.js";
24
- import { n as bn, t as xn } from "./mediaSource-zI7JWid4.js";
20
+ import { t as $t } from "./use-atom-command-XemtT1Gv.js";
21
+ import { t as en } from "./query-BPk2W3QN.js";
22
+ import { A as tn, C as nn, F as rn, S as an, g as on, l as sn, m as cn, u as ln, v as un, x as dn, y as fn } from "./workspaceFocus-MR1plm6A.js";
23
+ import { _ as pn, a as mn, g as hn, h as gn, l as _n, n as vn, v as yn } from "./browserLinkTarget-BbVlDQYx.js";
24
+ import { n as bn, t as xn } from "./mediaSource-jW5c7b4r.js";
25
25
  import { t as Sn } from "./observeIntersection-C0N8P8-O.js";
26
26
  import { t as Cn } from "./observeResize-DRQ9DVLE.js";
27
- import { a as wn, c as Tn, l as En, o as Dn, r as On, t as kn } from "./useFileMetadata-e7zsixVX.js";
27
+ import { a as wn, c as Tn, l as En, o as Dn, r as On, t as kn } from "./useFileMetadata-PesehDX0.js";
28
28
  import * as An from "react";
29
29
  import jn, { createContext as Mn, memo as Nn, useCallback as Pn, useContext as Fn, useEffect as q, useEffectEvent as In, useLayoutEffect as Ln, useMemo as J, useReducer as Rn, useRef as Y, useState as zn, useSyncExternalStore as Bn } from "react";
30
30
  import { c as Vn } from "react/compiler-runtime";
@@ -1586,24 +1586,24 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1586
1586
  id: _,
1587
1587
  data: x?.data ?? ha,
1588
1588
  rect: S
1589
- }, [_, x]), w = Y(null), [T, E] = zn(null), [D, O] = zn(null), ee = rr(l, Object.values(l)), te = cr("DndDescribedBy", t), k = J(() => b.getEnabled(), [b]), ne = Ta(s), { droppableRects: A, measureDroppableContainers: re, measuringScheduled: j } = Yi(k, {
1589
+ }, [_, x]), w = Y(null), [ee, T] = zn(null), [E, te] = zn(null), D = rr(l, Object.values(l)), ne = cr("DndDescribedBy", t), re = J(() => b.getEnabled(), [b]), O = Ta(s), { droppableRects: k, measureDroppableContainers: ie, measuringScheduled: ae } = Yi(re, {
1590
1590
  dragging: g,
1591
1591
  dependencies: [y.x, y.y],
1592
- config: ne.droppable
1593
- }), M = Wi(v, _), N = J(() => D ? hr(D) : null, [D]), P = we(), F = Zi(M, ne.draggable.measure);
1592
+ config: O.droppable
1593
+ }), A = Wi(v, _), j = J(() => E ? hr(E) : null, [E]), M = we(), N = Zi(A, O.draggable.measure);
1594
1594
  Ea({
1595
1595
  activeNode: _ == null ? null : v.get(_),
1596
- config: P.layoutShiftCompensation,
1597
- initialRect: F,
1598
- measure: ne.draggable.measure
1596
+ config: M.layoutShiftCompensation,
1597
+ initialRect: N,
1598
+ measure: O.draggable.measure
1599
1599
  });
1600
- let I = ta(M, ne.draggable.measure, F), ie = ta(M ? M.parentElement : null), L = Y({
1600
+ let P = ta(A, O.draggable.measure, N), F = ta(A ? A.parentElement : null), I = Y({
1601
1601
  activatorEvent: null,
1602
1602
  active: null,
1603
- activeNode: M,
1603
+ activeNode: A,
1604
1604
  collisionRect: null,
1605
1605
  collisions: null,
1606
- droppableRects: A,
1606
+ droppableRects: k,
1607
1607
  draggableNodes: v,
1608
1608
  draggingNode: null,
1609
1609
  draggingNodeRect: null,
@@ -1611,30 +1611,30 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1611
1611
  over: null,
1612
1612
  scrollableAncestors: [],
1613
1613
  scrollAdjustedTranslate: null
1614
- }), R = b.getNodeFor(L.current.over?.id), z = pa({ measure: ne.dragOverlay.measure }), ae = z.nodeRef.current ?? M, oe = g ? z.rect ?? I : null, B = !!(z.nodeRef.current && z.rect), se = na(B ? null : I), ce = la(ae ? Yn(ae) : null), le = ia(g ? R ?? M : null), V = da(le), ue = wa(c, {
1614
+ }), L = b.getNodeFor(I.current.over?.id), R = pa({ measure: O.dragOverlay.measure }), oe = R.nodeRef.current ?? A, z = g ? R.rect ?? P : null, se = !!(R.nodeRef.current && R.rect), ce = na(se ? null : P), le = la(oe ? Yn(oe) : null), B = ia(g ? L ?? A : null), ue = da(B), de = wa(c, {
1615
1615
  transform: {
1616
- x: y.x - se.x,
1617
- y: y.y - se.y,
1616
+ x: y.x - ce.x,
1617
+ y: y.y - ce.y,
1618
1618
  scaleX: 1,
1619
1619
  scaleY: 1
1620
1620
  },
1621
- activatorEvent: D,
1621
+ activatorEvent: E,
1622
1622
  active: C,
1623
- activeNodeRect: I,
1624
- containerNodeRect: ie,
1625
- draggingNodeRect: oe,
1626
- over: L.current.over,
1627
- overlayNodeRect: z.rect,
1628
- scrollableAncestors: le,
1629
- scrollableAncestorRects: V,
1630
- windowRect: ce
1631
- }), de = N ? ur(N, y) : null, fe = aa(le), pe = oa(fe), me = oa(fe, [I]), H = ur(ue, pe), U = oe ? qr(oe, ue) : null, he = C && U ? o({
1623
+ activeNodeRect: P,
1624
+ containerNodeRect: F,
1625
+ draggingNodeRect: z,
1626
+ over: I.current.over,
1627
+ overlayNodeRect: R.rect,
1628
+ scrollableAncestors: B,
1629
+ scrollableAncestorRects: ue,
1630
+ windowRect: le
1631
+ }), V = j ? ur(j, y) : null, fe = aa(B), pe = oa(fe), me = oa(fe, [P]), H = ur(de, pe), U = z ? qr(z, de) : null, he = C && U ? o({
1632
1632
  active: C,
1633
1633
  collisionRect: U,
1634
- droppableRects: A,
1635
- droppableContainers: k,
1636
- pointerCoordinates: de
1637
- }) : null, W = Rr(he, "id"), [ge, _e] = zn(null), ve = Wr(B ? ue : ur(ue, me), ge?.rect ?? null, I), ye = Y(null), be = Pn((e, t) => {
1634
+ droppableRects: k,
1635
+ droppableContainers: re,
1636
+ pointerCoordinates: V
1637
+ }) : null, W = Rr(he, "id"), [ge, _e] = zn(null), ve = Wr(se ? de : ur(de, me), ge?.rect ?? null, P), ye = Y(null), be = Pn((e, t) => {
1638
1638
  let { sensor: n, options: r } = t;
1639
1639
  if (w.current == null) return;
1640
1640
  let i = v.get(w.current);
@@ -1644,10 +1644,10 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1644
1644
  activeNode: i,
1645
1645
  event: a,
1646
1646
  options: r,
1647
- context: L,
1647
+ context: I,
1648
1648
  onAbort(e) {
1649
1649
  if (!v.get(e)) return;
1650
- let { onDragAbort: t } = ee.current, n = { id: e };
1650
+ let { onDragAbort: t } = D.current, n = { id: e };
1651
1651
  t?.(n), f({
1652
1652
  type: "onDragAbort",
1653
1653
  event: n
@@ -1655,7 +1655,7 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1655
1655
  },
1656
1656
  onPending(e, t, n, r) {
1657
1657
  if (!v.get(e)) return;
1658
- let { onDragPending: i } = ee.current, a = {
1658
+ let { onDragPending: i } = D.current, a = {
1659
1659
  id: e,
1660
1660
  constraint: t,
1661
1661
  initialCoordinates: n,
@@ -1671,7 +1671,7 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1671
1671
  if (t == null) return;
1672
1672
  let n = v.get(t);
1673
1673
  if (!n) return;
1674
- let { onDragStart: r } = ee.current, i = {
1674
+ let { onDragStart: r } = D.current, i = {
1675
1675
  activatorEvent: a,
1676
1676
  active: {
1677
1677
  id: t,
@@ -1687,7 +1687,7 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1687
1687
  }), f({
1688
1688
  type: "onDragStart",
1689
1689
  event: i
1690
- }), E(ye.current), O(a);
1690
+ }), T(ye.current), te(a);
1691
1691
  });
1692
1692
  },
1693
1693
  onMove(e) {
@@ -1702,9 +1702,9 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1702
1702
  ye.current = o;
1703
1703
  function s(e) {
1704
1704
  return async function() {
1705
- let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = L.current, o = null;
1705
+ let { active: t, collisions: n, over: r, scrollAdjustedTranslate: i } = I.current, o = null;
1706
1706
  if (t && i) {
1707
- let { cancelDrop: s } = ee.current;
1707
+ let { cancelDrop: s } = D.current;
1708
1708
  o = {
1709
1709
  activatorEvent: a,
1710
1710
  active: t,
@@ -1714,10 +1714,10 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1714
1714
  }, e === kr.DragEnd && typeof s == "function" && await Promise.resolve(s(o)) && (e = kr.DragCancel);
1715
1715
  }
1716
1716
  w.current = null, Wn(() => {
1717
- d({ type: e }), h(Oa.Uninitialized), _e(null), E(null), O(null), ye.current = null;
1717
+ d({ type: e }), h(Oa.Uninitialized), _e(null), T(null), te(null), ye.current = null;
1718
1718
  let t = e === kr.DragEnd ? "onDragEnd" : "onDragCancel";
1719
1719
  if (o) {
1720
- let e = ee.current[t];
1720
+ let e = D.current[t];
1721
1721
  e?.(o), f({
1722
1722
  type: t,
1723
1723
  event: o
@@ -1733,9 +1733,9 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1733
1733
  e(n, t.options, o) === !0 && (i.dndKit = { capturedBy: t.sensor }, w.current = r, be(n, t));
1734
1734
  }, [v, be]));
1735
1735
  sa(a), er(() => {
1736
- I && m === Oa.Initializing && h(Oa.Initialized);
1737
- }, [I, m]), q(() => {
1738
- let { onDragMove: e } = ee.current, { active: t, activatorEvent: n, collisions: r, over: i } = L.current;
1736
+ P && m === Oa.Initializing && h(Oa.Initialized);
1737
+ }, [P, m]), q(() => {
1738
+ let { onDragMove: e } = D.current, { active: t, activatorEvent: n, collisions: r, over: i } = I.current;
1739
1739
  if (!t || !n) return;
1740
1740
  let a = {
1741
1741
  active: t,
@@ -1754,9 +1754,9 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1754
1754
  });
1755
1755
  });
1756
1756
  }, [H.x, H.y]), q(() => {
1757
- let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = L.current;
1757
+ let { active: e, activatorEvent: t, collisions: n, droppableContainers: r, scrollAdjustedTranslate: i } = I.current;
1758
1758
  if (!e || w.current == null || !t || !i) return;
1759
- let { onDragOver: a } = ee.current, o = r.get(W), s = o && o.rect.current ? {
1759
+ let { onDragOver: a } = D.current, o = r.get(W), s = o && o.rect.current ? {
1760
1760
  id: o.id,
1761
1761
  rect: o.rect.current,
1762
1762
  data: o.data,
@@ -1778,108 +1778,108 @@ var ka = /*#__PURE__*/ Nn(function(e) {
1778
1778
  });
1779
1779
  });
1780
1780
  }, [W]), er(() => {
1781
- L.current = {
1782
- activatorEvent: D,
1781
+ I.current = {
1782
+ activatorEvent: E,
1783
1783
  active: C,
1784
- activeNode: M,
1784
+ activeNode: A,
1785
1785
  collisionRect: U,
1786
1786
  collisions: he,
1787
- droppableRects: A,
1787
+ droppableRects: k,
1788
1788
  draggableNodes: v,
1789
- draggingNode: ae,
1790
- draggingNodeRect: oe,
1789
+ draggingNode: oe,
1790
+ draggingNodeRect: z,
1791
1791
  droppableContainers: b,
1792
1792
  over: ge,
1793
- scrollableAncestors: le,
1793
+ scrollableAncestors: B,
1794
1794
  scrollAdjustedTranslate: H
1795
1795
  }, S.current = {
1796
- initial: oe,
1796
+ initial: z,
1797
1797
  translated: U
1798
1798
  };
1799
1799
  }, [
1800
1800
  C,
1801
- M,
1801
+ A,
1802
1802
  he,
1803
1803
  U,
1804
1804
  v,
1805
- ae,
1806
1805
  oe,
1807
- A,
1806
+ z,
1807
+ k,
1808
1808
  b,
1809
1809
  ge,
1810
- le,
1810
+ B,
1811
1811
  H
1812
1812
  ]), Vi({
1813
- ...P,
1813
+ ...M,
1814
1814
  delta: y,
1815
1815
  draggingRect: U,
1816
- pointerCoordinates: de,
1817
- scrollableAncestors: le,
1818
- scrollableAncestorRects: V
1816
+ pointerCoordinates: V,
1817
+ scrollableAncestors: B,
1818
+ scrollableAncestorRects: ue
1819
1819
  });
1820
1820
  let Se = J(() => ({
1821
1821
  active: C,
1822
- activeNode: M,
1823
- activeNodeRect: I,
1824
- activatorEvent: D,
1822
+ activeNode: A,
1823
+ activeNodeRect: P,
1824
+ activatorEvent: E,
1825
1825
  collisions: he,
1826
- containerNodeRect: ie,
1827
- dragOverlay: z,
1826
+ containerNodeRect: F,
1827
+ dragOverlay: R,
1828
1828
  draggableNodes: v,
1829
1829
  droppableContainers: b,
1830
- droppableRects: A,
1830
+ droppableRects: k,
1831
1831
  over: ge,
1832
- measureDroppableContainers: re,
1833
- scrollableAncestors: le,
1834
- scrollableAncestorRects: V,
1835
- measuringConfiguration: ne,
1836
- measuringScheduled: j,
1837
- windowRect: ce
1832
+ measureDroppableContainers: ie,
1833
+ scrollableAncestors: B,
1834
+ scrollableAncestorRects: ue,
1835
+ measuringConfiguration: O,
1836
+ measuringScheduled: ae,
1837
+ windowRect: le
1838
1838
  }), [
1839
1839
  C,
1840
- M,
1841
- I,
1842
- D,
1840
+ A,
1841
+ P,
1842
+ E,
1843
1843
  he,
1844
- ie,
1845
- z,
1844
+ F,
1845
+ R,
1846
1846
  v,
1847
1847
  b,
1848
- A,
1848
+ k,
1849
1849
  ge,
1850
- re,
1851
- le,
1852
- V,
1853
- ne,
1854
- j,
1855
- ce
1850
+ ie,
1851
+ B,
1852
+ ue,
1853
+ O,
1854
+ ae,
1855
+ le
1856
1856
  ]), Ce = J(() => ({
1857
- activatorEvent: D,
1857
+ activatorEvent: E,
1858
1858
  activators: xe,
1859
1859
  active: C,
1860
- activeNodeRect: I,
1861
- ariaDescribedById: { draggable: te },
1860
+ activeNodeRect: P,
1861
+ ariaDescribedById: { draggable: ne },
1862
1862
  dispatch: d,
1863
1863
  draggableNodes: v,
1864
1864
  over: ge,
1865
- measureDroppableContainers: re
1865
+ measureDroppableContainers: ie
1866
1866
  }), [
1867
- D,
1867
+ E,
1868
1868
  xe,
1869
1869
  C,
1870
- I,
1870
+ P,
1871
1871
  d,
1872
- te,
1872
+ ne,
1873
1873
  v,
1874
1874
  ge,
1875
- re
1875
+ ie
1876
1876
  ]);
1877
1877
  return jn.createElement(Cr.Provider, { value: p }, jn.createElement(ya.Provider, { value: Ce }, jn.createElement(ba.Provider, { value: Se }, jn.createElement(Da.Provider, { value: ve }, i)), jn.createElement(Ca, { disabled: n?.restoreFocus === !1 })), jn.createElement(Or, {
1878
1878
  ...n,
1879
- hiddenTextDescribedById: te
1879
+ hiddenTextDescribedById: ne
1880
1880
  }));
1881
1881
  function we() {
1882
- let e = T?.autoScrollEnabled === !1, t = typeof r == "object" ? r.enabled === !1 : r === !1, n = g && !e && !t;
1882
+ let e = ee?.autoScrollEnabled === !1, t = typeof r == "object" ? r.enabled === !1 : r === !1, n = g && !e && !t;
1883
1883
  return typeof r == "object" ? {
1884
1884
  ...r,
1885
1885
  enabled: n
@@ -2182,7 +2182,7 @@ function oo(e) {
2182
2182
  i,
2183
2183
  b,
2184
2184
  u
2185
- ]), S = J(() => u.slice(u.indexOf(o)), [u, o]), { rect: C, node: w, isOver: T, setNodeRef: E } = La({
2185
+ ]), S = J(() => u.slice(u.indexOf(o)), [u, o]), { rect: C, node: w, isOver: ee, setNodeRef: T } = La({
2186
2186
  id: o,
2187
2187
  data: x,
2188
2188
  disabled: y.droppable,
@@ -2190,7 +2190,7 @@ function oo(e) {
2190
2190
  updateMeasurementsFor: S,
2191
2191
  ...c
2192
2192
  }
2193
- }), { active: D, activatorEvent: O, activeNodeRect: ee, attributes: te, setNodeRef: k, listeners: ne, isDragging: A, over: re, setActivatorNodeRef: j, transform: M } = Na({
2193
+ }), { active: E, activatorEvent: te, activeNodeRect: D, attributes: ne, setNodeRef: re, listeners: O, isDragging: k, over: ie, setActivatorNodeRef: ae, transform: A } = Na({
2194
2194
  id: o,
2195
2195
  data: x,
2196
2196
  attributes: {
@@ -2198,84 +2198,84 @@ function oo(e) {
2198
2198
  ...n
2199
2199
  },
2200
2200
  disabled: y.draggable
2201
- }), N = Gn(E, k), P = !!D, F = P && !m && Ba(f) && Ba(g), I = !_ && A, ie = F ? (I && F ? M : null) ?? (s ?? v)({
2201
+ }), j = Gn(T, re), M = !!E, N = M && !m && Ba(f) && Ba(g), P = !_ && k, F = N ? (P && N ? A : null) ?? (s ?? v)({
2202
2202
  rects: h,
2203
- activeNodeRect: ee,
2203
+ activeNodeRect: D,
2204
2204
  activeIndex: f,
2205
2205
  overIndex: g,
2206
2206
  index: b
2207
- }) : null, L = Ba(f) && Ba(g) ? a({
2207
+ }) : null, I = Ba(f) && Ba(g) ? a({
2208
2208
  id: o,
2209
2209
  items: u,
2210
2210
  activeIndex: f,
2211
2211
  overIndex: g
2212
- }) : b, R = D?.id, z = Y({
2213
- activeId: R,
2212
+ }) : b, L = E?.id, R = Y({
2213
+ activeId: L,
2214
2214
  items: u,
2215
- newIndex: L,
2215
+ newIndex: I,
2216
2216
  containerId: d
2217
- }), ae = u !== z.current.items, oe = t({
2218
- active: D,
2217
+ }), oe = u !== R.current.items, z = t({
2218
+ active: E,
2219
2219
  containerId: d,
2220
- isDragging: A,
2221
- isSorting: P,
2220
+ isDragging: k,
2221
+ isSorting: M,
2222
2222
  id: o,
2223
2223
  index: b,
2224
2224
  items: u,
2225
- newIndex: z.current.newIndex,
2226
- previousItems: z.current.items,
2227
- previousContainerId: z.current.containerId,
2225
+ newIndex: R.current.newIndex,
2226
+ previousItems: R.current.items,
2227
+ previousContainerId: R.current.containerId,
2228
2228
  transition: l,
2229
- wasDragging: z.current.activeId != null
2230
- }), B = ao({
2231
- disabled: !oe,
2229
+ wasDragging: R.current.activeId != null
2230
+ }), se = ao({
2231
+ disabled: !z,
2232
2232
  index: b,
2233
2233
  node: w,
2234
2234
  rect: C
2235
2235
  });
2236
2236
  return q(() => {
2237
- P && z.current.newIndex !== L && (z.current.newIndex = L), d !== z.current.containerId && (z.current.containerId = d), u !== z.current.items && (z.current.items = u);
2237
+ M && R.current.newIndex !== I && (R.current.newIndex = I), d !== R.current.containerId && (R.current.containerId = d), u !== R.current.items && (R.current.items = u);
2238
2238
  }, [
2239
- P,
2240
- L,
2239
+ M,
2240
+ I,
2241
2241
  d,
2242
2242
  u
2243
2243
  ]), q(() => {
2244
- if (R === z.current.activeId) return;
2245
- if (R != null && z.current.activeId == null) {
2246
- z.current.activeId = R;
2244
+ if (L === R.current.activeId) return;
2245
+ if (L != null && R.current.activeId == null) {
2246
+ R.current.activeId = L;
2247
2247
  return;
2248
2248
  }
2249
2249
  let e = setTimeout(() => {
2250
- z.current.activeId = R;
2250
+ R.current.activeId = L;
2251
2251
  }, 50);
2252
2252
  return () => clearTimeout(e);
2253
- }, [R]), {
2254
- active: D,
2253
+ }, [L]), {
2254
+ active: E,
2255
2255
  activeIndex: f,
2256
- attributes: te,
2256
+ attributes: ne,
2257
2257
  data: x,
2258
2258
  rect: C,
2259
2259
  index: b,
2260
- newIndex: L,
2260
+ newIndex: I,
2261
2261
  items: u,
2262
- isOver: T,
2263
- isSorting: P,
2264
- isDragging: A,
2265
- listeners: ne,
2262
+ isOver: ee,
2263
+ isSorting: M,
2264
+ isDragging: k,
2265
+ listeners: O,
2266
2266
  node: w,
2267
2267
  overIndex: g,
2268
- over: re,
2269
- setNodeRef: N,
2270
- setActivatorNodeRef: j,
2271
- setDroppableNodeRef: E,
2272
- setDraggableNodeRef: k,
2273
- transform: B ?? ie,
2274
- transition: se()
2275
- };
2276
- function se() {
2277
- if (B || ae && z.current.newIndex === b) return ro;
2278
- if (!(I && !pr(O) || !l) && (P || oe)) return gr.Transition.toString({
2268
+ over: ie,
2269
+ setNodeRef: j,
2270
+ setActivatorNodeRef: ae,
2271
+ setDroppableNodeRef: T,
2272
+ setDraggableNodeRef: re,
2273
+ transform: se ?? F,
2274
+ transition: ce()
2275
+ };
2276
+ function ce() {
2277
+ if (se || oe && R.current.newIndex === b) return ro;
2278
+ if (!(P && !pr(te) || !l) && (M || z)) return gr.Transition.toString({
2279
2279
  ...l,
2280
2280
  property: no
2281
2281
  });
@@ -2738,7 +2738,7 @@ function ms(e) {
2738
2738
  ...r ? { toolSurface: r } : {},
2739
2739
  ...a ? { toolIcon: a } : {},
2740
2740
  ...i ? { toolSource: i } : {},
2741
- ...o && !/[\r\n]/.test(o) && p(o) ? { viewedImagePath: o } : {}
2741
+ ...o && !/[\r\n]/.test(o) && g(o) ? { viewedImagePath: o } : {}
2742
2742
  };
2743
2743
  }
2744
2744
  // ../../packages/shared/src/toolActivityCopy.ts
@@ -3661,7 +3661,7 @@ function tc(e) {
3661
3661
  let t = e.structuredPayload;
3662
3662
  if (t?.type === "dynamic_tool" && t.toolName) return t.toolName;
3663
3663
  let n = cc(e.toolData);
3664
- return typeof n?.server == "string" && typeof n.tool == "string" ? `${n.server}.${n.tool}` : typeof n?.toolName == "string" ? n.toolName : C(e.toolTitle) ? e.toolTitle : e.label;
3664
+ return typeof n?.server == "string" && typeof n.tool == "string" ? `${n.server}.${n.tool}` : typeof n?.toolName == "string" ? n.toolName : T(e.toolTitle) ? e.toolTitle : e.label;
3665
3665
  }
3666
3666
  function nc(e) {
3667
3667
  let t = e.structuredPayload, n = cc(e.toolData);
@@ -3676,7 +3676,7 @@ function ic(e) {
3676
3676
  }
3677
3677
  function ac(e, t, n, r) {
3678
3678
  if (!e) return null;
3679
- let i = e.labels[3], a = e.summaryAction === "link-pr" || e.summaryAction === "unlink-pr" || e.summaryAction === "list-prs" || e.summaryAction === "watch-pr" || e.summaryAction === "unwatch-pr" ? e.summaryAction : void 0, o = cc(n), s = cc(o?.arguments) ?? cc(o?.input) ?? cc(o?.rawInput), c = typeof s?.url == "string" ? V.parseChangeRequestUrl(s.url) : null, l = c?.link.number ?? s?.number, { shortLabel: u } = (c?.definition ?? V.get(void 0)).changeRequest, d = a !== void 0 && a !== "list-prs" && typeof l == "number" && Number.isSafeInteger(l) && l > 0 ? l : null, f = Xs(e.labels), p = ic(t), [m, h, g] = e.labels, _ = t === "inProgress" ? h : t === "completed" ? g : t === "failed" ? `Failed to ${m.toLowerCase()}` : t === "declined" ? `Declined to ${m.toLowerCase()}` : t === "stopped" ? `Stopped ${h.toLowerCase()}` : h;
3679
+ let i = e.labels[3], a = e.summaryAction === "link-pr" || e.summaryAction === "unlink-pr" || e.summaryAction === "list-prs" || e.summaryAction === "watch-pr" || e.summaryAction === "unwatch-pr" ? e.summaryAction : void 0, o = cc(n), s = cc(o?.arguments) ?? cc(o?.input) ?? cc(o?.rawInput), c = typeof s?.url == "string" ? me.parseChangeRequestUrl(s.url) : null, l = c?.link.number ?? s?.number, { shortLabel: u } = (c?.definition ?? me.get(void 0)).changeRequest, d = a !== void 0 && a !== "list-prs" && typeof l == "number" && Number.isSafeInteger(l) && l > 0 ? l : null, f = Xs(e.labels), p = ic(t), [m, h, g] = e.labels, _ = t === "inProgress" ? h : t === "completed" ? g : t === "failed" ? `Failed to ${m.toLowerCase()}` : t === "declined" ? `Declined to ${m.toLowerCase()}` : t === "stopped" ? `Stopped ${h.toLowerCase()}` : h;
3680
3680
  return {
3681
3681
  displayName: f === void 0 ? `${_} ${d === null ? i : `${u} #${d}`}` : d !== null && f.changeRequest !== void 0 ? r(f.changeRequest, {
3682
3682
  status: p,
@@ -3691,7 +3691,7 @@ function oc(e, t) {
3691
3691
  return e === "failed" || e === "declined" || e === "stopped" || e === "idle" ? e : t || e === "inProgress" ? "inProgress" : "completed";
3692
3692
  }
3693
3693
  function sc(e, t, n = c) {
3694
- let r = C(tc(e), nc(e)), i = e.toolLifecycleStatus ?? t;
3694
+ let r = T(tc(e), nc(e)), i = e.toolLifecycleStatus ?? t;
3695
3695
  return ac(r, r && qs(rc(e)) ? "failed" : i, e.toolData, n);
3696
3696
  }
3697
3697
  function cc(e) {
@@ -3703,7 +3703,7 @@ function lc(e) {
3703
3703
  function uc(e, t) {
3704
3704
  if (e.tone === "error" || e.toolLifecycleStatus === "failed" || e.toolLifecycleStatus === "declined") return !0;
3705
3705
  if (!lc(e) || e.itemType === "reasoning") return !1;
3706
- if (C(tc(e)) && qs(rc(e))) return !0;
3706
+ if (T(tc(e)) && qs(rc(e))) return !0;
3707
3707
  let n = e.structuredPayload;
3708
3708
  if (n?.type === "command_execution") {
3709
3709
  if (n.exitCode !== void 0) return n.exitCode !== 0;
@@ -3759,9 +3759,9 @@ function yc(e) {
3759
3759
  }
3760
3760
  function bc(e) {
3761
3761
  let t = e.viewedImagePath?.trim();
3762
- if (t !== void 0 && !/[\r\n]/.test(t) && p(t)) return t;
3762
+ if (t !== void 0 && !/[\r\n]/.test(t) && g(t)) return t;
3763
3763
  let n = e.detail?.trim();
3764
- return vc(e) === "read" && n !== void 0 && !/[\r\n]/.test(n) && p(n) ? n : null;
3764
+ return vc(e) === "read" && n !== void 0 && !/[\r\n]/.test(n) && g(n) ? n : null;
3765
3765
  }
3766
3766
  function xc(e) {
3767
3767
  return [...new Set(e.flatMap((e) => bc(e) ?? []))];
@@ -3871,7 +3871,7 @@ function Oc(e, t = c) {
3871
3871
  e = n;
3872
3872
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
3873
3873
  for (let t of e) {
3874
- let e = w(tc(t), Ec(t).input);
3874
+ let e = C(tc(t), Ec(t).input);
3875
3875
  if (t.toolSource && e === null) {
3876
3876
  i.set(t.toolSource.key, t.toolSource);
3877
3877
  continue;
@@ -3899,7 +3899,7 @@ function Oc(e, t = c) {
3899
3899
  names: r
3900
3900
  }) : o("Used {names}", { names: r })));
3901
3901
  }
3902
- let u = e.filter((e) => e.toolSource !== void 0 && C(tc(e)) === null).length, d = e.length - u - s.reduce((e, t) => e + t.count, 0);
3902
+ let u = e.filter((e) => e.toolSource !== void 0 && T(tc(e)) === null).length, d = e.length - u - s.reduce((e, t) => e + t.count, 0);
3903
3903
  return d > 0 && l.push(t(o("{count, plural, one {Performed {count} other action} other {Performed {count} other actions}}", { count: d }))), {
3904
3904
  summary: Tc(l.map((e, t) => t === 0 ? e : e.charAt(0).toLowerCase() + e.slice(1)), t),
3905
3905
  hasFailure: a.some((e) => e.failedCount > 0)
@@ -3952,7 +3952,7 @@ function Rc(e, t) {
3952
3952
  return e === null || e.status === "preparing" || e.status === "queued" || e.status === "starting" || e.status === "running" || e.status === "waiting" ? !1 : t?.activeRunId !== e.runId;
3953
3953
  }
3954
3954
  function zc(e, t, n) {
3955
- return fe({
3955
+ return pe({
3956
3956
  latestRun: e,
3957
3957
  runtime: t
3958
3958
  }) ?? (t?.activeRunId == null ? n : null);
@@ -4324,7 +4324,7 @@ var Zc = Object.freeze([]);
4324
4324
  function Qc(e) {
4325
4325
  let t = /* @__PURE__ */ new Set();
4326
4326
  for (let n of e ?? []) {
4327
- if (!g(n)) continue;
4327
+ if (!_(n)) continue;
4328
4328
  let e = n.previewUrl;
4329
4329
  e?.startsWith("blob:") || e?.startsWith("data:") || t.add(n.id);
4330
4330
  }
@@ -4336,7 +4336,7 @@ function Qc(e) {
4336
4336
  function $c(e, t) {
4337
4337
  if (Object.keys(t).length === 0) return Zc;
4338
4338
  let n = /* @__PURE__ */ new Set();
4339
- for (let r of e ?? []) if (r.role === "user" && t[r.id]?.length) for (let e of r.attachments ?? []) g(e) && n.add(e.id);
4339
+ for (let r of e ?? []) if (r.role === "user" && t[r.id]?.length) for (let e of r.attachments ?? []) _(e) && n.add(e.id);
4340
4340
  return n.size === 0 ? Zc : Array.from(n, (e) => ({
4341
4341
  _tag: "attachment",
4342
4342
  attachmentId: e
@@ -4488,7 +4488,7 @@ function dl(e) {
4488
4488
  return e === null ? "disconnected" : e.status === "preparing" || e.status === "starting" || e.status === "queued" ? "connecting" : e.status === "running" || e.status === "waiting" ? "running" : "ready";
4489
4489
  }
4490
4490
  function fl(e, t) {
4491
- return e && (dl(t) === "running" || f(t));
4491
+ return e && (dl(t) === "running" || m(t));
4492
4492
  }
4493
4493
  // ../../packages/client-runtime/src/state/threadActivityAnnouncement.ts
4494
4494
  var pl = {
@@ -4522,7 +4522,7 @@ function _l(e, t) {
4522
4522
  }
4523
4523
  function vl(e, t) {
4524
4524
  if (e?.status !== "cancelled" || e.startedAt !== null) return e;
4525
- let n = u(t);
4525
+ let n = l(t);
4526
4526
  return n === null ? null : {
4527
4527
  runId: n.id,
4528
4528
  status: n.status
@@ -4599,7 +4599,7 @@ function yl(e, t, n = c) {
4599
4599
  // src/hooks/useDeadline.ts
4600
4600
  function bl(e) {
4601
4601
  let t = Vn(2), n;
4602
- t[0] === e ? n = t[1] : (n = A(e), t[0] = e, t[1] = n);
4602
+ t[0] === e ? n = t[1] : (n = te(e), t[0] = e, t[1] = n);
4603
4603
  let r = n;
4604
4604
  return Bn(r.subscribe, r.getSnapshot, r.getSnapshot);
4605
4605
  }
@@ -4635,7 +4635,7 @@ var Sl = "hanzodev:ui-state:v1", Cl = 2, wl = [
4635
4635
  pullRequestMergeMethod: "merge"
4636
4636
  }, El = "legacy-project-cwd:", Dl = "legacy-project-expansion-default", Ol = !1;
4637
4637
  function kl(e) {
4638
- return `${El}${H(e)}`;
4638
+ return `${El}${u(e)}`;
4639
4639
  }
4640
4640
  function Al(e) {
4641
4641
  return Array.isArray(e) ? [...new Set(e.filter((e) => typeof e == "string" && e.length > 0))] : [];
@@ -4711,7 +4711,7 @@ function Rl(e) {
4711
4711
  }
4712
4712
  } catch {}
4713
4713
  }
4714
- var zl = new T(Rl, { wait: 500 });
4714
+ var zl = new ee(Rl, { wait: 500 });
4715
4715
  function Bl(e, t, n) {
4716
4716
  let r = Date.parse(n);
4717
4717
  if (!Number.isFinite(r)) return e;
@@ -4802,7 +4802,7 @@ function Jl(e, t, n, r) {
4802
4802
  projectOrder: s
4803
4803
  };
4804
4804
  }
4805
- var Yl = F((e) => ({
4805
+ var Yl = R((e) => ({
4806
4806
  ...Il(),
4807
4807
  markThreadVisited: (t, n) => e((e) => Bl(e, t, n)),
4808
4808
  markThreadUnread: (t, n) => e((e) => Vl(e, t, n)),
@@ -4879,7 +4879,7 @@ function ru(e, t) {
4879
4879
  }
4880
4880
  // ../../packages/client-runtime/src/state/threadInbox.ts
4881
4881
  function iu(e) {
4882
- if (e.hasPendingApprovals || e.hasPendingUserInput || e.pendingSubagentRequest != null || !ue(e.runtime) && e.runtime?.status !== "idle") return !1;
4882
+ if (e.hasPendingApprovals || e.hasPendingUserInput || e.pendingSubagentRequest != null || !de(e.runtime) && e.runtime?.status !== "idle") return !1;
4883
4883
  let t = e.latestRun, n = t !== null && t.status !== "preparing" && t.status !== "queued" && t.status !== "starting" && t.status !== "running" && t.status !== "waiting" && e.runtime?.activeRunId !== t.runId;
4884
4884
  return !(e.interactionMode === "plan" && e.hasActionableProposedPlan && n);
4885
4885
  }
@@ -5012,7 +5012,7 @@ function yu(e) {
5012
5012
  }
5013
5013
  if (bl(i) && i !== null) {
5014
5014
  let e = i;
5015
- for (let t of r) t > e && A(t).getSnapshot() && (e = t);
5015
+ for (let t of r) t > e && te(t).getSnapshot() && (e = t);
5016
5016
  return n(e), e;
5017
5017
  }
5018
5018
  return t;
@@ -5090,7 +5090,7 @@ function Nu(e) {
5090
5090
  let t = new Set(e.connectedEnvironmentIds), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
5091
5091
  for (let i of e.threads) {
5092
5092
  if (!t.has(i.environmentId) || !e.serverConfigs.has(i.environmentId)) continue;
5093
- let a = l(v(i.environmentId, i.id));
5093
+ let a = I(L(i.environmentId, i.id));
5094
5094
  r.add(a), n.add(a);
5095
5095
  }
5096
5096
  return {
@@ -5194,7 +5194,7 @@ async function Iu(e) {
5194
5194
  let i = await e.delete(r, t);
5195
5195
  if (i !== null) {
5196
5196
  if (i._tag === "Failure") {
5197
- if (j(i)) break;
5197
+ if (A(i)) break;
5198
5198
  n ??= i;
5199
5199
  } else t.add(r.threadKey);
5200
5200
  }
@@ -5245,7 +5245,7 @@ function Vu(e) {
5245
5245
  }
5246
5246
  }, o = () => {
5247
5247
  r();
5248
- let t = A(M(e));
5248
+ let t = te(j(e));
5249
5249
  r = t.subscribe(() => a(!0)), a(t.getSnapshot());
5250
5250
  };
5251
5251
  return {
@@ -5394,9 +5394,9 @@ function cd(e, t, n = sd, r = Date.now()) {
5394
5394
  };
5395
5395
  }
5396
5396
  function ld(e, t) {
5397
- let n = ee(t);
5397
+ let n = re(t);
5398
5398
  if (n.length === 0) return !1;
5399
- let r = ee(b(e).join(" "));
5399
+ let r = re(p(e).join(" "));
5400
5400
  return n.split(" ").every((e) => r.includes(e));
5401
5401
  }
5402
5402
  function ud(e) {
@@ -5420,7 +5420,7 @@ function dd(e, t) {
5420
5420
  }
5421
5421
  }
5422
5422
  function fd(e) {
5423
- return fe(e);
5423
+ return pe(e);
5424
5424
  }
5425
5425
  function pd(e) {
5426
5426
  let { thread: t } = e;
@@ -5465,7 +5465,7 @@ function pd(e) {
5465
5465
  colorClass: "text-red-600 dark:text-red-300/90",
5466
5466
  dotClass: "bg-red-500 dark:bg-red-300/90",
5467
5467
  pulse: !1
5468
- } : m(t.pendingBackgroundTasks ?? []) ? n : !t.hasPendingUserInput && t.interactionMode === "plan" && Rc(t.latestRun, t.runtime) && t.hasActionableProposedPlan ? {
5468
+ } : y(t.pendingBackgroundTasks ?? []) ? n : !t.hasPendingUserInput && t.interactionMode === "plan" && Rc(t.latestRun, t.runtime) && t.hasActionableProposedPlan ? {
5469
5469
  label: o("Plan Ready"),
5470
5470
  colorClass: "text-violet-600 dark:text-violet-300/90",
5471
5471
  dotClass: "bg-violet-500 dark:bg-violet-300/90",
@@ -5838,33 +5838,33 @@ function Jd(e, t) {
5838
5838
  }
5839
5839
  // ../../packages/client-runtime/src/state/terminal.ts
5840
5840
  function Yd(e) {
5841
- let t = P(), n = P(), r = ({ environmentId: e, input: t }) => JSON.stringify([e, t.threadId]), i = ({ environmentId: e, input: t }) => JSON.stringify([
5841
+ let t = D(), n = D(), r = ({ environmentId: e, input: t }) => JSON.stringify([e, t.threadId]), i = ({ environmentId: e, input: t }) => JSON.stringify([
5842
5842
  e,
5843
5843
  t.threadId,
5844
5844
  t.terminalId ?? null
5845
5845
  ]), a = {
5846
5846
  mode: "serial",
5847
5847
  key: r
5848
- }, o = le(e, {
5848
+ }, o = ae(e, {
5849
5849
  label: "environment-data:terminal:metadata",
5850
- subscribe: (e) => L(Pe.subscribeTerminalMetadata, {}).pipe(ge(() => ({
5850
+ subscribe: (e) => se(Pe.subscribeTerminalMetadata, {}).pipe(ge(() => ({
5851
5851
  terminals: [],
5852
5852
  snapshotId: Symbol()
5853
5853
  }), (e, t) => ({
5854
5854
  terminals: Jd(e.terminals, t),
5855
5855
  snapshotId: t.type === "snapshot" ? t.managerId ?? Symbol() : e.snapshotId
5856
5856
  })), qe(1))
5857
- }), s = _((e) => k(e, ({ terminals: e }) => e)), c = {
5858
- observe: le(e, {
5857
+ }), s = w((e) => B(e, ({ terminals: e }) => e)), c = {
5858
+ observe: ae(e, {
5859
5859
  label: "environment-data:terminal:observe",
5860
- subscribe: (e) => be(() => L(Pe.terminalObserve, e).pipe(ge(Hd, qd)))
5860
+ subscribe: (e) => be(() => se(Pe.terminalObserve, e).pipe(ge(Hd, qd)))
5861
5861
  }),
5862
- attach: le(e, {
5862
+ attach: ae(e, {
5863
5863
  label: "environment-data:terminal:attach",
5864
5864
  idleTtlMs: 0,
5865
5865
  subscribe: (e) => {
5866
5866
  let t = !1;
5867
- return ae(Pe.terminalAttach, () => je(() => ({
5867
+ return F(Pe.terminalAttach, () => je(() => ({
5868
5868
  ...e,
5869
5869
  ...t ? { resume: !0 } : {},
5870
5870
  maxHistoryBytes: Ne
@@ -5875,17 +5875,17 @@ function Yd(e) {
5875
5875
  }),
5876
5876
  metadataFeed: o,
5877
5877
  metadata: (e) => s(o(e)),
5878
- open: oe(e, {
5878
+ open: O(e, {
5879
5879
  label: "environment-data:terminal:open",
5880
5880
  tag: Pe.terminalOpen,
5881
5881
  scheduler: t,
5882
5882
  concurrency: a
5883
5883
  }),
5884
- write: oe(e, {
5884
+ write: O(e, {
5885
5885
  label: "environment-data:terminal:write",
5886
5886
  tag: Pe.terminalWrite
5887
5887
  }),
5888
- resize: oe(e, {
5888
+ resize: O(e, {
5889
5889
  label: "environment-data:terminal:resize",
5890
5890
  tag: Pe.terminalResize,
5891
5891
  scheduler: n,
@@ -5894,13 +5894,13 @@ function Yd(e) {
5894
5894
  key: i
5895
5895
  }
5896
5896
  }),
5897
- clear: oe(e, {
5897
+ clear: O(e, {
5898
5898
  label: "environment-data:terminal:clear",
5899
5899
  tag: Pe.terminalClear,
5900
5900
  scheduler: t,
5901
5901
  concurrency: a
5902
5902
  }),
5903
- close: oe(e, {
5903
+ close: O(e, {
5904
5904
  label: "environment-data:terminal:close",
5905
5905
  tag: Pe.terminalClose,
5906
5906
  scheduler: t,
@@ -5977,7 +5977,7 @@ function Qd(e, t) {
5977
5977
  let { environmentId: n, threadId: r, terminalId: i } = t.target, a = Xd, o = t.gridSize, s = !1, c = null, l = null, u = !!t.initialInput, d = null, f = !1, p = null, m = null, h = (a = !1) => {
5978
5978
  let l = p;
5979
5979
  if (c === null || l === null || !t.canOperate()) return;
5980
- let d = D(l, e.resize, {
5980
+ let d = V(l, e.resize, {
5981
5981
  environmentId: n,
5982
5982
  input: {
5983
5983
  threadId: r,
@@ -5987,12 +5987,12 @@ function Qd(e, t) {
5987
5987
  }
5988
5988
  });
5989
5989
  m = d, d.then((o) => {
5990
- if (!a && d === m && o._tag === "Failure" && !j(o)) {
5990
+ if (!a && d === m && o._tag === "Failure" && !A(o)) {
5991
5991
  h(!0);
5992
5992
  return;
5993
5993
  }
5994
5994
  let f = t.initialInput;
5995
- o._tag === "Success" && d === m && s && c !== null && u && f && t.canOperate() && (u = !1, D(l, e.write, {
5995
+ o._tag === "Success" && d === m && s && c !== null && u && f && t.canOperate() && (u = !1, V(l, e.write, {
5996
5996
  environmentId: n,
5997
5997
  input: {
5998
5998
  threadId: r,
@@ -6007,14 +6007,14 @@ function Qd(e, t) {
6007
6007
  let l = Zd(a, o);
6008
6008
  if (a = l.state, l.command === "exit") {
6009
6009
  if (!t.canOperate()) return;
6010
- D(s, e.close, {
6010
+ V(s, e.close, {
6011
6011
  environmentId: n,
6012
6012
  input: {
6013
6013
  threadId: r,
6014
6014
  terminalId: i
6015
6015
  }
6016
6016
  }), t.onExit();
6017
- } else l.command === "reopen" && (async () => c.cwd === void 0 || !t.canOperate() ? !1 : (await D(s, e.open, {
6017
+ } else l.command === "reopen" && (async () => c.cwd === void 0 || !t.canOperate() ? !1 : (await V(s, e.open, {
6018
6018
  environmentId: n,
6019
6019
  input: {
6020
6020
  threadId: r,
@@ -6030,7 +6030,7 @@ function Qd(e, t) {
6030
6030
  });
6031
6031
  }, v = (e, n, r) => {
6032
6032
  p = e;
6033
- let a = ne(r, () => zd), o = r._tag === "Failure" ? "error" : a.status;
6033
+ let a = E(r, () => zd), o = r._tag === "Failure" ? "error" : a.status;
6034
6034
  if (o !== d && (d = o, t.debugLog?.("session:status", {
6035
6035
  terminalId: i,
6036
6036
  status: o,
@@ -6051,7 +6051,7 @@ function Qd(e, t) {
6051
6051
  status: o,
6052
6052
  version: a.version
6053
6053
  }, e, n);
6054
- }, y = `terminal-session:${n}:${r}:${i}`, b = E(void 0), x = E((o) => {
6054
+ }, y = `terminal-session:${n}:${r}:${i}`, b = x(void 0), S = x((o) => {
6055
6055
  o.subscribe(e.observe({
6056
6056
  environmentId: n,
6057
6057
  input: {
@@ -6061,7 +6061,7 @@ function Qd(e, t) {
6061
6061
  }), () => {
6062
6062
  t.canOperate() || (a = Zd(a, { type: "observed" }).state);
6063
6063
  }, { immediate: !0 });
6064
- }).pipe(B(`${y}:observing`)), S = (r) => E((i) => {
6064
+ }).pipe(k(`${y}:observing`)), C = (r) => x((i) => {
6065
6065
  let o = i.registry;
6066
6066
  i.addFinalizer(() => {
6067
6067
  c = null, m = null, d = null, g(null), a = Zd(a, {
@@ -6072,9 +6072,9 @@ function Qd(e, t) {
6072
6072
  environmentId: n,
6073
6073
  input: r
6074
6074
  }), (e) => v(o, r, e), { immediate: !0 });
6075
- }).pipe(B(`${y}:attached`)), C = null;
6075
+ }).pipe(k(`${y}:attached`)), w = null;
6076
6076
  return {
6077
- driver: (e) => e === null ? b : e.kind === "observing" ? x : (C ??= S(e.input), C),
6077
+ driver: (e) => e === null ? b : e.kind === "observing" ? S : (w ??= C(e.input), w),
6078
6078
  reportGridSize: (e) => {
6079
6079
  s && e.cols === o.cols && e.rows === o.rows || (s = !0, o = e, h());
6080
6080
  }
@@ -6123,15 +6123,15 @@ function sf(e, t, n) {
6123
6123
  [c]: new WeakRef(f)
6124
6124
  }), i || (i = /* @__PURE__ */ new Map(), r.views.set(t, i)), i.set(n, f), f;
6125
6125
  }
6126
- var cf = E(Bd).pipe(B("web-terminal-session:empty")), lf = Ce(He(W([tt, Ie]))), uf = _((e) => {
6126
+ var cf = x(Bd).pipe(k("web-terminal-session:empty")), lf = Ce(He(W([tt, Ie]))), uf = w((e) => {
6127
6127
  let t = lf(e);
6128
- if (We(t)) return E({
6128
+ if (We(t)) return x({
6129
6129
  ...Bd,
6130
6130
  error: s(o("Invalid terminal launch input")),
6131
6131
  status: "error"
6132
- }).pipe(B(`web-terminal-session:${e}`));
6132
+ }).pipe(k(`web-terminal-session:${e}`));
6133
6133
  let [n, r] = t.value;
6134
- return E((e) => {
6134
+ return x((e) => {
6135
6135
  let t = e(a.sessionStateAtom(n)), o = i(t, Ee), s = i(t, "terminal:operate") ? e($d.attach({
6136
6136
  environmentId: n,
6137
6137
  input: r
@@ -6141,55 +6141,55 @@ var cf = E(Bd).pipe(B("web-terminal-session:empty")), lf = Ce(He(W([tt, Ie]))),
6141
6141
  threadId: r.threadId,
6142
6142
  terminalId: r.terminalId
6143
6143
  }
6144
- })) : null, c = o ? ne(e($d.metadata({
6144
+ })) : null, c = o ? E(e($d.metadata({
6145
6145
  environmentId: n,
6146
6146
  input: null
6147
- })), () => null) : null, l = Kd((c === null ? null : of(c).byThreadId.get(r.threadId)?.find((e) => e.terminalId === r.terminalId)) ?? null, s === null ? zd : ne(s, () => zd));
6147
+ })), () => null) : null, l = Kd((c === null ? null : of(c).byThreadId.get(r.threadId)?.find((e) => e.terminalId === r.terminalId)) ?? null, s === null ? zd : E(s, () => zd));
6148
6148
  return s?._tag === "Failure" ? {
6149
6149
  ...l,
6150
6150
  error: en(s.cause),
6151
6151
  status: "error"
6152
6152
  } : l;
6153
- }).pipe(B(`web-terminal-session:${e}`));
6153
+ }).pipe(k(`web-terminal-session:${e}`));
6154
6154
  });
6155
6155
  function df(e, t) {
6156
6156
  return e === null || t === null ? cf : uf(JSON.stringify([e, t]));
6157
6157
  }
6158
- var ff = E(null), pf = Ce(He(W([tt, ct(nt)]))), mf = _((e) => {
6158
+ var ff = x(null), pf = Ce(He(W([tt, ct(nt)]))), mf = w((e) => {
6159
6159
  let [t, n] = Xe(pf(e));
6160
- return E((e) => {
6160
+ return x((e) => {
6161
6161
  let r = e($d.metadata({
6162
6162
  environmentId: t,
6163
6163
  input: null
6164
6164
  }));
6165
6165
  return r._tag === "Success" ? sf(r.value, t, n) : null;
6166
- }).pipe(B(`web-known-terminal-sessions:${e}`));
6166
+ }).pipe(k(`web-known-terminal-sessions:${e}`));
6167
6167
  });
6168
6168
  function hf(e, t) {
6169
6169
  return mf(JSON.stringify([e, t]));
6170
6170
  }
6171
6171
  function gf(e) {
6172
6172
  let n = Vn(4), r = t(e.environmentId, Ee), i;
6173
- return n[0] !== r || n[1] !== e.environmentId || n[2] !== e.threadId ? (i = e.environmentId === null || !r ? ff : hf(e.environmentId, e.threadId), n[0] = r, n[1] = e.environmentId, n[2] = e.threadId, n[3] = i) : i = n[3], h(i);
6173
+ return n[0] !== r || n[1] !== e.environmentId || n[2] !== e.threadId ? (i = e.environmentId === null || !r ? ff : hf(e.environmentId, e.threadId), n[0] = r, n[1] = e.environmentId, n[2] = e.threadId, n[3] = i) : i = n[3], b(i);
6174
6174
  }
6175
- var _f = E(null), vf = _((e) => {
6175
+ var _f = x(null), vf = w((e) => {
6176
6176
  let [t, n] = Xe(pf(e));
6177
- return E((e) => {
6177
+ return x((e) => {
6178
6178
  let r = e($d.metadataFeed({
6179
6179
  environmentId: t,
6180
6180
  input: null
6181
6181
  }));
6182
- if (!O(r)) return null;
6182
+ if (!fe(r)) return null;
6183
6183
  let { terminals: i, snapshotId: a } = r.value;
6184
6184
  return {
6185
6185
  sessions: sf(i, t, n),
6186
6186
  snapshotId: a
6187
6187
  };
6188
- }).pipe(R((e, t) => e?.sessions === t?.sessions && e?.snapshotId === t?.snapshotId), B(`web-terminal-drawer-sessions:${e}`));
6188
+ }).pipe(ce((e, t) => e?.sessions === t?.sessions && e?.snapshotId === t?.snapshotId), k(`web-terminal-drawer-sessions:${e}`));
6189
6189
  });
6190
6190
  function yf(e, n) {
6191
6191
  let r = Vn(4), i = t(e, Ee), a;
6192
- return r[0] !== i || r[1] !== e || r[2] !== n ? (a = i ? vf(JSON.stringify([e, n])) : _f, r[0] = i, r[1] = e, r[2] = n, r[3] = a) : a = r[3], h(a);
6192
+ return r[0] !== i || r[1] !== e || r[2] !== n ? (a = i ? vf(JSON.stringify([e, n])) : _f, r[0] = i, r[1] = e, r[2] = n, r[3] = a) : a = r[3], b(a);
6193
6193
  }
6194
6194
  function bf(e) {
6195
6195
  let t = Vn(4), n = gf(e), r;
@@ -6239,11 +6239,11 @@ function Ef(e) {
6239
6239
  let l = c;
6240
6240
  if (!a) return l;
6241
6241
  let u;
6242
- t[7] === l ? u = t[8] : (u = /* @__PURE__ */ X(me, { render: l }), t[7] = l, t[8] = u);
6242
+ t[7] === l ? u = t[8] : (u = /* @__PURE__ */ X(H, { render: l }), t[7] = l, t[8] = u);
6243
6243
  let d;
6244
- t[9] === a ? d = t[10] : (d = /* @__PURE__ */ X(re, { children: a }), t[9] = a, t[10] = d);
6244
+ t[9] === a ? d = t[10] : (d = /* @__PURE__ */ X(M, { children: a }), t[9] = a, t[10] = d);
6245
6245
  let f;
6246
- return t[11] !== u || t[12] !== d ? (f = /* @__PURE__ */ Hn(N, { children: [u, d] }), t[11] = u, t[12] = d, t[13] = f) : f = t[13], f;
6246
+ return t[11] !== u || t[12] !== d ? (f = /* @__PURE__ */ Hn(P, { children: [u, d] }), t[11] = u, t[12] = d, t[13] = f) : f = t[13], f;
6247
6247
  }
6248
6248
  var Df = 150;
6249
6249
  function Of(e) {
@@ -6296,12 +6296,12 @@ function Af({ element: e, getActionElement: t, restoreAfterScroll: n = !1, onSel
6296
6296
  }, y(e.detail >= 2 ? 500 : 0)));
6297
6297
  }, w = (e) => {
6298
6298
  m(e.target) && e.key !== "Escape" || (e.key === "Escape" ? _() : s || (h(), c = !1, d = null, l = !1));
6299
- }, T = (e) => {
6299
+ }, ee = (e) => {
6300
6300
  m(e.target) ? g() : !s && t?.() && _();
6301
- }, E = () => {
6301
+ }, T = () => {
6302
6302
  h(), s || (d = null, n && !l && u ? y(Df) : l = !0), i("cancel");
6303
6303
  };
6304
- return a.addEventListener("pointerdown", b, !0), e.addEventListener("pointerdown", x), o.addEventListener("pointerup", S), o.addEventListener("mouseup", C), o.addEventListener("pointercancel", _), a.addEventListener("keydown", w), a.addEventListener("focusin", T), e.addEventListener("contextmenu", v, !0), e.addEventListener("scroll", E, !0), o.addEventListener("blur", _), o.addEventListener("resize", _), {
6304
+ return a.addEventListener("pointerdown", b, !0), e.addEventListener("pointerdown", x), o.addEventListener("pointerup", S), o.addEventListener("mouseup", C), o.addEventListener("pointercancel", _), a.addEventListener("keydown", w), a.addEventListener("focusin", ee), e.addEventListener("contextmenu", v, !0), e.addEventListener("scroll", T, !0), o.addEventListener("blur", _), o.addEventListener("resize", _), {
6305
6305
  get pending() {
6306
6306
  return f !== null || p !== null;
6307
6307
  },
@@ -6310,7 +6310,7 @@ function Af({ element: e, getActionElement: t, restoreAfterScroll: n = !1, onSel
6310
6310
  m(a.activeElement) || (s || c ? i("cancel") : !l && f === null && p === null && y(0));
6311
6311
  },
6312
6312
  dispose() {
6313
- g(), a.removeEventListener("pointerdown", b, !0), e.removeEventListener("pointerdown", x), o.removeEventListener("pointerup", S), o.removeEventListener("mouseup", C), o.removeEventListener("pointercancel", _), a.removeEventListener("keydown", w), a.removeEventListener("focusin", T), e.removeEventListener("contextmenu", v, !0), e.removeEventListener("scroll", E, !0), o.removeEventListener("blur", _), o.removeEventListener("resize", _);
6313
+ g(), a.removeEventListener("pointerdown", b, !0), e.removeEventListener("pointerdown", x), o.removeEventListener("pointerup", S), o.removeEventListener("mouseup", C), o.removeEventListener("pointercancel", _), a.removeEventListener("keydown", w), a.removeEventListener("focusin", ee), e.removeEventListener("contextmenu", v, !0), e.removeEventListener("scroll", T, !0), o.removeEventListener("blur", _), o.removeEventListener("resize", _);
6314
6314
  }
6315
6315
  };
6316
6316
  }
@@ -8319,7 +8319,7 @@ async function jm(e) {
8319
8319
  }
8320
8320
  });
8321
8321
  if (i._tag === "Failure") {
8322
- if (j(i)) return;
8322
+ if (A(i)) return;
8323
8323
  console.error(new Am({
8324
8324
  ...t,
8325
8325
  cause: i.cause
@@ -8609,34 +8609,34 @@ function uh(e) {
8609
8609
  return t[7] !== e || t[8] !== r ? (i = /* @__PURE__ */ X(dh, { ...e }, r), t[7] = e, t[8] = r, t[9] = i) : i = t[9], i;
8610
8610
  }
8611
8611
  function dh(e) {
8612
- let r = Vn(123), { advancedTypography: i, threadRef: a, threadId: c, terminalId: l, terminalLabel: u, cwd: d, worktreePath: f, runtimeEnv: p, providerInstanceId: m, onSessionExited: g, onAddTerminalContext: _, autoFocus: v, visible: y, keybindings: b } = e, C = v !== void 0 && v, w = Y(null), T = Y(!1), E = Y(null), D = Y(y), O = a.environmentId, ee = t(O, Te), te;
8613
- r[0] === O ? te = r[1] : (te = () => n(O, Te), r[0] = O, r[1] = te);
8614
- let k = In(te), A = t(O, st), re = t(O, Ge), [M, N] = zn(null), P = Fn(On), F;
8615
- r[2] === O ? F = r[3] : (F = dt.configValueAtom(O), r[2] = O, r[3] = F);
8616
- let L = h(F), R = L?.hostname, z;
8617
- r[4] === R ? z = r[5] : (z = () => R, r[4] = R, r[5] = z);
8618
- let ae = In(z), oe;
8619
- r[6] !== A || r[7] !== re || r[8] !== d || r[9] !== O || r[10] !== R || r[11] !== M || r[12] !== P ? (oe = M !== null && A && re ? kn(O, En(M, d, R), d, P) : null, r[6] = A, r[7] = re, r[8] = d, r[9] = O, r[10] = R, r[11] = M, r[12] = P, r[13] = oe) : oe = r[13];
8620
- let B = oe, se;
8621
- r[14] !== O || r[15] !== B || r[16] !== M ? (se = (e) => {
8612
+ let r = Vn(123), { advancedTypography: i, threadRef: a, threadId: c, terminalId: l, terminalLabel: u, cwd: d, worktreePath: f, runtimeEnv: p, providerInstanceId: m, onSessionExited: g, onAddTerminalContext: _, autoFocus: y, visible: x, keybindings: S } = e, C = y !== void 0 && y, w = Y(null), ee = Y(!1), T = Y(null), te = Y(x), D = a.environmentId, ne = t(D, Te), re;
8613
+ r[0] === D ? re = r[1] : (re = () => n(D, Te), r[0] = D, r[1] = re);
8614
+ let O = In(re), k = t(D, st), ie = t(D, Ge), [ae, j] = zn(null), M = Fn(On), P;
8615
+ r[2] === D ? P = r[3] : (P = dt.configValueAtom(D), r[2] = D, r[3] = P);
8616
+ let F = b(P), I = F?.hostname, L;
8617
+ r[4] === I ? L = r[5] : (L = () => I, r[4] = I, r[5] = L);
8618
+ let R = In(L), z;
8619
+ r[6] !== k || r[7] !== ie || r[8] !== d || r[9] !== D || r[10] !== I || r[11] !== ae || r[12] !== M ? (z = ae !== null && k && ie ? kn(D, En(ae, d, I), d, M) : null, r[6] = k, r[7] = ie, r[8] = d, r[9] = D, r[10] = I, r[11] = ae, r[12] = M, r[13] = z) : z = r[13];
8620
+ let se = z, ce;
8621
+ r[14] !== D || r[15] !== se || r[16] !== ae ? (ce = (e) => {
8622
8622
  if (Tn(e)) return !0;
8623
- if (!n(O, "orchestration:operate") || e !== M || !B) return !1;
8624
- let t = ne(ie.get(B), hh);
8623
+ if (!n(D, "orchestration:operate") || e !== ae || !se) return !1;
8624
+ let t = E(oe.get(se), hh);
8625
8625
  return t?.kind === "file" || t?.kind === "directory";
8626
- }, r[14] = O, r[15] = B, r[16] = M, r[17] = se) : se = r[17];
8627
- let ce = In(se), le;
8628
- r[18] !== d || r[19] !== O || r[20] !== R || r[21] !== P ? (le = async (e) => {
8626
+ }, r[14] = D, r[15] = se, r[16] = ae, r[17] = ce) : ce = r[17];
8627
+ let le = In(ce), B;
8628
+ r[18] !== d || r[19] !== D || r[20] !== I || r[21] !== M ? (B = async (e) => {
8629
8629
  if (Tn(e)) return !0;
8630
- if (!n(O, "orchestration:operate") || !n(O, "filesystem:read")) return !1;
8631
- let t = kn(O, En(e, d, R), d, P);
8630
+ if (!n(D, "orchestration:operate") || !n(D, "filesystem:read")) return !1;
8631
+ let t = kn(D, En(e, d, I), d, M);
8632
8632
  if (!t) return !1;
8633
- let r = await I(ie, t, { reportFailure: !1 });
8633
+ let r = await N(oe, t, { reportFailure: !1 });
8634
8634
  return r._tag === "Success" && (r.value?.kind === "file" || r.value?.kind === "directory");
8635
- }, r[18] = d, r[19] = O, r[20] = R, r[21] = P, r[22] = le) : le = r[22];
8636
- let V = In(le), ue;
8637
- r[23] === L?.availableEditors ? ue = r[24] : (ue = L?.availableEditors ?? [], r[23] = L?.availableEditors, r[24] = ue);
8638
- let de = mn(O, ue, f ?? d), fe;
8639
- r[25] === de ? fe = r[26] : (fe = (e) => de(e), r[25] = de, r[26] = fe);
8635
+ }, r[18] = d, r[19] = D, r[20] = I, r[21] = M, r[22] = B) : B = r[22];
8636
+ let ue = In(B), de;
8637
+ r[23] === F?.availableEditors ? de = r[24] : (de = F?.availableEditors ?? [], r[23] = F?.availableEditors, r[24] = de);
8638
+ let V = mn(D, de, f ?? d), fe;
8639
+ r[25] === V ? fe = r[26] : (fe = (e) => V(e), r[25] = V, r[26] = fe);
8640
8640
  let pe = In(fe), me;
8641
8641
  r[27] === Symbol.for("react.memo_cache_sentinel") ? (me = { reportFailure: !1 }, r[27] = me) : me = r[27];
8642
8642
  let H = $t(Tt.open, me), U;
@@ -8644,13 +8644,13 @@ function dh(e) {
8644
8644
  let he = $t($d.write, U), W = Y(he), ge;
8645
8645
  r[29] === Symbol.for("react.memo_cache_sentinel") ? (ge = { reportFailure: !1 }, r[29] = ge) : ge = r[29];
8646
8646
  let ve = $t($d.resize, ge), ye = Y(!1), be = Y(0), xe;
8647
- r[30] === b ? xe = r[31] : (xe = () => b, r[30] = b, r[31] = xe);
8647
+ r[30] === S ? xe = r[31] : (xe = () => S, r[30] = S, r[31] = xe);
8648
8648
  let Se = In(xe), Ce;
8649
8649
  r[32] === a ? Ce = r[33] : (Ce = () => Bu(a), r[32] = a, r[33] = Ce);
8650
8650
  let we = In(Ce), G;
8651
- r[34] !== k || r[35] !== g ? (G = () => {
8652
- k() && g();
8653
- }, r[34] = k, r[35] = g, r[36] = G) : G = r[36];
8651
+ r[34] !== O || r[35] !== g ? (G = () => {
8652
+ O() && g();
8653
+ }, r[34] = O, r[35] = g, r[36] = G) : G = r[36];
8654
8654
  let Ee = In(G), De;
8655
8655
  r[37] === _ ? De = r[38] : (De = (e) => {
8656
8656
  _?.(e);
@@ -8677,26 +8677,26 @@ function dh(e) {
8677
8677
  size: Le
8678
8678
  }, r[47] = Fe, r[48] = Le, r[49] = Re) : Re = r[49];
8679
8679
  let Be = Y(Re), He;
8680
- r[50] !== d || r[51] !== O || r[52] !== m || r[53] !== p || r[54] !== l || r[55] !== c || r[56] !== f ? (He = df(O, {
8680
+ r[50] !== d || r[51] !== D || r[52] !== m || r[53] !== p || r[54] !== l || r[55] !== c || r[56] !== f ? (He = df(D, {
8681
8681
  threadId: c,
8682
8682
  terminalId: l,
8683
8683
  cwd: d,
8684
8684
  ...f === void 0 ? {} : { worktreePath: f },
8685
8685
  ...p ? { env: p } : {},
8686
8686
  ...m ? { providerInstanceId: m } : {}
8687
- }), r[50] = d, r[51] = O, r[52] = m, r[53] = p, r[54] = l, r[55] = c, r[56] = f, r[57] = He) : He = r[57];
8687
+ }), r[50] = d, r[51] = D, r[52] = m, r[53] = p, r[54] = l, r[55] = c, r[56] = f, r[57] = He) : He = r[57];
8688
8688
  let K = He;
8689
- S(K);
8689
+ v(K);
8690
8690
  let We;
8691
- r[58] === K ? We = r[59] : (We = () => ie.get(K), r[58] = K, r[59] = We);
8691
+ r[58] === K ? We = r[59] : (We = () => oe.get(K), r[58] = K, r[59] = We);
8692
8692
  let qe = In(We), Je;
8693
- r[60] === K ? Je = r[61] : (Je = (e) => ie.subscribe(K, e), r[60] = K, r[61] = Je);
8693
+ r[60] === K ? Je = r[61] : (Je = (e) => oe.subscribe(K, e), r[60] = K, r[61] = Je);
8694
8694
  let Ye = In(Je), Xe = Y(null), Qe;
8695
- r[62] !== O || r[63] !== k || r[64] !== qe || r[65] !== ve || r[66] !== l || r[67] !== c ? (Qe = async (e, t) => {
8696
- let n = ch(qe(), k()), r = n !== null && n === Xe.current;
8695
+ r[62] !== D || r[63] !== O || r[64] !== qe || r[65] !== ve || r[66] !== l || r[67] !== c ? (Qe = async (e, t) => {
8696
+ let n = ch(qe(), O()), r = n !== null && n === Xe.current;
8697
8697
  if (Xe.current = null, n === null) return;
8698
8698
  let i = await ve({
8699
- environmentId: O,
8699
+ environmentId: D,
8700
8700
  input: {
8701
8701
  threadId: c,
8702
8702
  terminalId: l,
@@ -8704,8 +8704,8 @@ function dh(e) {
8704
8704
  rows: t
8705
8705
  }
8706
8706
  });
8707
- !r && i._tag === "Failure" && !j(i) && (Xe.current = n, E.current?.resendSize());
8708
- }, r[62] = O, r[63] = k, r[64] = qe, r[65] = ve, r[66] = l, r[67] = c, r[68] = Qe) : Qe = r[68];
8707
+ !r && i._tag === "Failure" && !A(i) && (Xe.current = n, T.current?.resendSize());
8708
+ }, r[62] = D, r[63] = O, r[64] = qe, r[65] = ve, r[66] = l, r[67] = c, r[68] = Qe) : Qe = r[68];
8709
8709
  let et = In(Qe), tt = Y(Sd), nt = Y("closed"), rt;
8710
8710
  r[69] === Ee ? rt = r[70] : (rt = (e, t, n) => {
8711
8711
  let r = nt.current;
@@ -8722,78 +8722,78 @@ function dh(e) {
8722
8722
  forceBrowser: t
8723
8723
  }), r[71] = H, r[72] = a, r[73] = ot) : ot = r[73];
8724
8724
  let ct = In(ot), lt, ut;
8725
- r[74] !== ee || r[75] !== l || r[76] !== a ? (lt = () => {
8726
- E.current && (E.current.input.readOnly = !ee), ee && D.current && ln(a, l);
8725
+ r[74] !== ne || r[75] !== l || r[76] !== a ? (lt = () => {
8726
+ T.current && (T.current.input.readOnly = !ne), ne && te.current && ln(a, l);
8727
8727
  }, ut = [
8728
- ee,
8728
+ ne,
8729
8729
  l,
8730
8730
  a
8731
- ], r[74] = ee, r[75] = l, r[76] = a, r[77] = lt, r[78] = ut) : (lt = r[77], ut = r[78]), Ln(lt, ut);
8731
+ ], r[74] = ne, r[75] = l, r[76] = a, r[77] = lt, r[78] = ut) : (lt = r[77], ut = r[78]), Ln(lt, ut);
8732
8732
  let pt, gt;
8733
- r[79] === B ? (pt = r[80], gt = r[81]) : (pt = () => {
8734
- if (!B) E.current?.refreshLinkActivation();
8735
- else return ie.subscribe(B, () => E.current?.refreshLinkActivation(), { immediate: !0 });
8736
- }, gt = [B], r[79] = B, r[80] = pt, r[81] = gt), q(pt, gt);
8733
+ r[79] === se ? (pt = r[80], gt = r[81]) : (pt = () => {
8734
+ if (!se) T.current?.refreshLinkActivation();
8735
+ else return oe.subscribe(se, () => T.current?.refreshLinkActivation(), { immediate: !0 });
8736
+ }, gt = [se], r[79] = se, r[80] = pt, r[81] = gt), q(pt, gt);
8737
8737
  let _t, vt;
8738
- r[82] !== l || r[83] !== a || r[84] !== y ? (_t = () => {
8739
- D.current = y, E.current?.setVisible(y), y && ln(a, l);
8738
+ r[82] !== l || r[83] !== a || r[84] !== x ? (_t = () => {
8739
+ te.current = x, T.current?.setVisible(x), x && ln(a, l);
8740
8740
  }, vt = [
8741
8741
  l,
8742
8742
  a,
8743
- y
8744
- ], r[82] = l, r[83] = a, r[84] = y, r[85] = _t, r[86] = vt) : (_t = r[85], vt = r[86]), Ln(_t, vt);
8743
+ x
8744
+ ], r[82] = l, r[83] = a, r[84] = x, r[85] = _t, r[86] = vt) : (_t = r[85], vt = r[86]), Ln(_t, vt);
8745
8745
  let yt, bt;
8746
8746
  r[87] !== Fe || r[88] !== Le ? (yt = () => {
8747
8747
  let e = Be.current;
8748
8748
  (e.family !== Fe || e.size !== Le) && (Be.current = {
8749
8749
  family: Fe,
8750
8750
  size: Le
8751
- }, E.current?.setFont(rh(Fe, Le)));
8751
+ }, T.current?.setFont(rh(Fe, Le)));
8752
8752
  }, bt = [Fe, Le], r[87] = Fe, r[88] = Le, r[89] = yt, r[90] = bt) : (yt = r[89], bt = r[90]), q(yt, bt);
8753
8753
  let xt;
8754
- r[91] !== ce || r[92] !== je || r[93] !== d || r[94] !== O || r[95] !== Oe || r[96] !== k || r[97] !== ct || r[98] !== pe || r[99] !== ae || r[100] !== Se || r[101] !== Ne || r[102] !== qe || r[103] !== we || r[104] !== et || r[105] !== Ye || r[106] !== at || r[107] !== l || r[108] !== K || r[109] !== c || r[110] !== V ? (xt = () => {
8754
+ r[91] !== le || r[92] !== je || r[93] !== d || r[94] !== D || r[95] !== Oe || r[96] !== O || r[97] !== ct || r[98] !== pe || r[99] !== R || r[100] !== Se || r[101] !== Ne || r[102] !== qe || r[103] !== we || r[104] !== et || r[105] !== Ye || r[106] !== at || r[107] !== l || r[108] !== K || r[109] !== c || r[110] !== ue ? (xt = () => {
8755
8755
  let e = w.current;
8756
8756
  if (!e) return;
8757
8757
  let t = Yt(), r = !1, i = null, a = null, u = [];
8758
8758
  return (async () => {
8759
- let i = Be.current, f = $m(D, {
8759
+ let i = Be.current, f = $m(te, {
8760
8760
  theme: ih(e),
8761
8761
  font: rh(i.family, i.size),
8762
- onData: (e) => L(e),
8763
- onBinary: (e) => void P(e, s(o("Terminal write failed")), "binary"),
8764
- onReply: (e) => void P(e, s(o("Terminal write failed")), "reply"),
8762
+ onData: (e) => F(e),
8763
+ onBinary: (e) => void M(e, s(o("Terminal write failed")), "binary"),
8764
+ onReply: (e) => void M(e, s(o("Terminal write failed")), "reply"),
8765
8765
  onResize: (e, t) => void et(e, t),
8766
8766
  onSelectionChange: mh,
8767
- beforeKey: (e) => F(e),
8768
- onLinkActivate: (e, t) => I(e, t),
8769
- canActivateLink: (e) => ce(e),
8770
- validateLink: (e) => V(e),
8771
- onLinkHover: (e) => N(e !== null && !Tn(e) ? e : null),
8767
+ beforeKey: (e) => N(e),
8768
+ onLinkActivate: (e, t) => P(e, t),
8769
+ canActivateLink: (e) => le(e),
8770
+ validateLink: (e) => ue(e),
8771
+ onLinkHover: (e) => j(e !== null && !Tn(e) ? e : null),
8772
8772
  onContextMenu: (e) => {
8773
- E.current && ne(e);
8773
+ T.current && re(e);
8774
8774
  }
8775
8775
  }), p = await Tm.create(e, f);
8776
8776
  if (r) return p.dispose(), null;
8777
- p.setVisible(D.current), p.setTheme(ih(e)), a = p, E.current = p, p.input.setAttribute("data-workspace-focus-default", ""), p.input.readOnly = !k();
8777
+ p.setVisible(te.current), p.setTheme(ih(e)), a = p, T.current = p, p.input.setAttribute("data-workspace-focus-default", ""), p.input.readOnly = !O();
8778
8778
  let m = Be.current;
8779
8779
  (m.family !== i.family || m.size !== i.size) && p.setFont(rh(m.family, m.size));
8780
- let h = qe();
8781
- p.setSharedGrid(h.grid);
8782
- let g = Ld(h.output, Sd);
8783
- g.type === "reset" && g.data.length > 0 && Km(p, g), tt.current = g.cursor, h.error !== null && Gm(p, h.error), nt.current = "closed", at(p, h.status, h.version);
8784
- let _ = h, v = ch(h, k());
8780
+ let g = qe();
8781
+ p.setSharedGrid(g.grid);
8782
+ let _ = Ld(g.output, Sd);
8783
+ _.type === "reset" && _.data.length > 0 && Km(p, _), tt.current = _.cursor, g.error !== null && Gm(p, g.error), nt.current = "closed", at(p, g.status, g.version);
8784
+ let v = g, y = ch(g, O());
8785
8785
  u.push(Ye((e) => {
8786
- let t = ch(e, k());
8787
- t !== v && (v = t, t !== null && p.resendSize());
8788
- let n = _;
8789
- _ = e, p.setSharedGrid(e.grid), at(p, e.status, e.version), tt.current = Ym(p, n, e, tt.current);
8790
- })), k() && D.current && e.contains(document.activeElement) && p.focus();
8791
- let y = () => {
8786
+ let t = ch(e, O());
8787
+ t !== y && (y = t, t !== null && p.resendSize());
8788
+ let n = v;
8789
+ v = e, p.setSharedGrid(e.grid), at(p, e.status, e.version), tt.current = Ym(p, n, e, tt.current);
8790
+ })), O() && te.current && e.contains(document.activeElement) && p.focus();
8791
+ let b = () => {
8792
8792
  be.current += 1;
8793
8793
  };
8794
- u.push(y);
8795
- let b = () => {
8796
- let e = E.current;
8794
+ u.push(b);
8795
+ let x = () => {
8796
+ let e = T.current;
8797
8797
  if (!e || !e.hasSelection()) return null;
8798
8798
  let t = e.getSelection(), n = e.getSelectionPosition(), r = t.replace(/\r\n/g, "\n").replace(/^\n+|\n+$/g, "");
8799
8799
  if (!n || r.length === 0) return null;
@@ -8809,15 +8809,15 @@ function dh(e) {
8809
8809
  }
8810
8810
  };
8811
8811
  }, S = (e) => {
8812
- let t = b();
8813
- t?.clipboardText === e && (Oe(t.selection), E.current?.clearSelection(), E.current?.focus());
8812
+ let t = x();
8813
+ t?.clipboardText === e && (Oe(t.selection), T.current?.clearSelection(), T.current?.focus());
8814
8814
  }, C = (e, t, n) => {
8815
8815
  if (e !== be.current) return;
8816
- let r = E.current;
8816
+ let r = T.current;
8817
8817
  r && Gm(r, ft(t, s) ?? n);
8818
- }, T = (e) => {
8819
- e === be.current && E.current?.focus();
8820
- }, ee = async (e, t) => {
8818
+ }, ee = (e) => {
8819
+ e === be.current && T.current?.focus();
8820
+ }, E = async (e, t) => {
8821
8821
  try {
8822
8822
  await qt(e, {
8823
8823
  target: "terminal selection",
@@ -8827,10 +8827,10 @@ function dh(e) {
8827
8827
  } catch (e) {
8828
8828
  C(t, e, s(o("Unable to copy terminal selection")));
8829
8829
  }
8830
- T(t);
8831
- }, te = async (e) => {
8832
- if (!k()) return;
8833
- let t = E.current;
8830
+ ee(t);
8831
+ }, ne = async (e) => {
8832
+ if (!O()) return;
8833
+ let t = T.current;
8834
8834
  if (t) {
8835
8835
  try {
8836
8836
  await t.pasteFromClipboard(ph, () => e === be.current);
@@ -8838,23 +8838,23 @@ function dh(e) {
8838
8838
  C(e, t, s(o("Unable to read the clipboard")));
8839
8839
  return;
8840
8840
  }
8841
- T(e);
8841
+ ee(e);
8842
8842
  }
8843
- }, ne = async (e) => {
8844
- if (!t || !E.current) return;
8845
- e.preventDefault(), y();
8846
- let n = b(), r = be.current, i;
8843
+ }, re = async (e) => {
8844
+ if (!t || !T.current) return;
8845
+ e.preventDefault(), b();
8846
+ let n = x(), r = be.current, i;
8847
8847
  try {
8848
8848
  i = await t.contextMenu.show(sh({
8849
8849
  hasSelection: n !== null,
8850
8850
  canAddToChat: je(),
8851
- readOnly: !k()
8851
+ readOnly: !O()
8852
8852
  }), {
8853
8853
  x: e.clientX,
8854
8854
  y: e.clientY
8855
8855
  });
8856
8856
  } catch (e) {
8857
- C(r, e, s(o("Unable to open the terminal context menu"))), T(r);
8857
+ C(r, e, s(o("Unable to open the terminal context menu"))), ee(r);
8858
8858
  return;
8859
8859
  }
8860
8860
  if (r === be.current && i !== null) switch (i) {
@@ -8862,20 +8862,20 @@ function dh(e) {
8862
8862
  n && je() && S(n.clipboardText);
8863
8863
  return;
8864
8864
  case "copy":
8865
- n && await ee(n.clipboardText, r);
8865
+ n && await E(n.clipboardText, r);
8866
8866
  return;
8867
8867
  case "paste":
8868
- await te(r);
8868
+ await ne(r);
8869
8869
  return;
8870
8870
  case "select-all":
8871
- E.current?.selectAll(), T(r);
8871
+ T.current?.selectAll(), ee(r);
8872
8872
  return;
8873
8873
  case "scroll-to-bottom":
8874
- E.current?.scrollToBottom(), T(r);
8874
+ T.current?.scrollToBottom(), ee(r);
8875
8875
  return;
8876
8876
  }
8877
- }, A = () => ie.get(K), re = () => n(O, Te), M = (e, t) => W.current({
8878
- environmentId: O,
8877
+ }, k = () => oe.get(K), ie = () => n(D, Te), ae = (e, t) => W.current({
8878
+ environmentId: D,
8879
8879
  input: t ? {
8880
8880
  threadId: c,
8881
8881
  terminalId: l,
@@ -8886,41 +8886,41 @@ function dh(e) {
8886
8886
  terminalId: l,
8887
8887
  data: e
8888
8888
  }
8889
- }), P = (e, t, n) => {
8890
- let r = qe(), i = ch(r, k()), a = r.lifecycleVersion;
8889
+ }), M = (e, t, n) => {
8890
+ let r = qe(), i = ch(r, O()), a = r.lifecycleVersion;
8891
8891
  if (i === null) return;
8892
8892
  let u = Pm(JSON.stringify([
8893
- O,
8893
+ D,
8894
8894
  c,
8895
8895
  l
8896
- ]), () => ie.mount(K)), d = !1, f = (e) => {
8897
- d || E.current !== p || (d = !0, Gm(p, e));
8896
+ ]), () => oe.mount(K)), d = !1, f = (e) => {
8897
+ d || T.current !== p || (d = !0, Gm(p, e));
8898
8898
  };
8899
8899
  return u(e, async (e) => {
8900
- let r = A();
8901
- if (E.current !== p || r.lifecycleVersion !== a || ch(r, re()) !== i) return "not-dispatched";
8902
- let o = await M(e, n);
8900
+ let r = k();
8901
+ if (T.current !== p || r.lifecycleVersion !== a || ch(r, ie()) !== i) return "not-dispatched";
8902
+ let o = await ae(e, n);
8903
8903
  if (o._tag === "Success") return !0;
8904
- if (E.current === p && !j(o)) {
8905
- let e = x(o);
8904
+ if (T.current === p && !A(o)) {
8905
+ let e = h(o);
8906
8906
  f(ft(e, s) ?? t);
8907
8907
  }
8908
8908
  return !1;
8909
8909
  }, async () => {
8910
- let e = r.summary?.pid ?? null, t = A(), n = t.summary?.pid ?? null;
8910
+ let e = r.summary?.pid ?? null, t = k(), n = t.summary?.pid ?? null;
8911
8911
  if (n === null) return !1;
8912
8912
  if (e !== null && n !== e) return !0;
8913
- if (ch(t, re()) === null) return !1;
8914
- let i = await M("\x1B[201~");
8913
+ if (ch(t, ie()) === null) return !1;
8914
+ let i = await ae("\x1B[201~");
8915
8915
  if (i._tag === "Success") return !0;
8916
- if (!j(i)) {
8917
- let e = x(i);
8916
+ if (!A(i)) {
8917
+ let e = h(i);
8918
8918
  f(ft(e, s) ?? s(o("Failed to close interrupted paste")));
8919
8919
  }
8920
8920
  return !1;
8921
8921
  }, () => f(s(o("Terminal paste interrupted. Paste again when the terminal is ready."))));
8922
8922
  };
8923
- function F(e) {
8923
+ function N(e) {
8924
8924
  let t = Se(), n = { context: {
8925
8925
  terminalFocus: !0,
8926
8926
  terminalOpen: !0
@@ -8930,13 +8930,13 @@ function dh(e) {
8930
8930
  terminalFocus: !0
8931
8931
  } })) return !1;
8932
8932
  let r = _e(e);
8933
- if (r !== null) return e.preventDefault(), e.stopPropagation(), P(r, s(o("Failed to move cursor"))), !1;
8933
+ if (r !== null) return e.preventDefault(), e.stopPropagation(), M(r, s(o("Failed to move cursor"))), !1;
8934
8934
  let i = ke(e);
8935
- return i === null ? !ze(e) || (e.preventDefault(), e.stopPropagation(), P("\f", s(o("Failed to clear terminal"))), !1) : (e.preventDefault(), e.stopPropagation(), P(i, s(o("Failed to delete terminal input"))), !1);
8935
+ return i === null ? !ze(e) || (e.preventDefault(), e.stopPropagation(), M("\f", s(o("Failed to clear terminal"))), !1) : (e.preventDefault(), e.stopPropagation(), M(i, s(o("Failed to delete terminal input"))), !1);
8936
8936
  }
8937
- function I(e, r) {
8938
- if (!Tn(e) && !n(O, "orchestration:operate")) return;
8939
- let i = E.current;
8937
+ function P(e, r) {
8938
+ if (!Tn(e) && !n(D, "orchestration:operate")) return;
8939
+ let i = T.current;
8940
8940
  if (!i) return;
8941
8941
  if (Tn(e)) {
8942
8942
  if (!t) {
@@ -8948,76 +8948,76 @@ function dh(e) {
8948
8948
  Gm(i, ft(e, s) ?? s(o("Unable to open link")));
8949
8949
  });
8950
8950
  };
8951
- if (!n(O, "preview:operate")) {
8951
+ if (!n(D, "preview:operate")) {
8952
8952
  a();
8953
8953
  return;
8954
8954
  }
8955
8955
  ct(e, r.metaKey || r.ctrlKey, a).catch(fh);
8956
8956
  return;
8957
8957
  }
8958
- let a = En(e, d, ae());
8958
+ let a = En(e, d, R());
8959
8959
  (async () => {
8960
8960
  let e = await pe(a);
8961
- if (e._tag === "Success" || j(e)) return;
8962
- let t = x(e);
8961
+ if (e._tag === "Success" || A(e)) return;
8962
+ let t = h(e);
8963
8963
  Gm(i, ft(t, s) ?? s(o("Unable to open path")));
8964
8964
  })();
8965
8965
  }
8966
- function L(e) {
8967
- P(e, s(o("Terminal write failed")));
8966
+ function F(e) {
8967
+ M(e, s(o("Terminal write failed")));
8968
8968
  }
8969
- let R = new MutationObserver(() => {
8970
- let e = E.current;
8969
+ let I = new MutationObserver(() => {
8970
+ let e = T.current;
8971
8971
  e && e.setTheme(ih(w.current));
8972
8972
  });
8973
- R.observe(document.documentElement, {
8973
+ I.observe(document.documentElement, {
8974
8974
  attributes: !0,
8975
8975
  attributeFilter: ["class", "style"]
8976
- }), u.push(() => R.disconnect());
8977
- let z = window.setTimeout(() => {
8978
- let e = E.current;
8976
+ }), u.push(() => I.disconnect());
8977
+ let L = window.setTimeout(() => {
8978
+ let e = T.current;
8979
8979
  if (!e) return;
8980
8980
  let t = e.isAtBottom();
8981
8981
  e.fit(), t && e.scrollToBottom();
8982
8982
  }, 30);
8983
- u.push(() => window.clearTimeout(z));
8984
- let oe = u;
8983
+ u.push(() => window.clearTimeout(L));
8984
+ let z = u;
8985
8985
  return u = [], a = null, () => {
8986
- for (let e of oe.toReversed()) e();
8987
- E.current === p && (E.current = null), p.dispose();
8986
+ for (let e of z.toReversed()) e();
8987
+ T.current === p && (T.current = null), p.dispose();
8988
8988
  };
8989
8989
  })().then((e) => {
8990
8990
  r ? e?.() : i = e;
8991
8991
  }).catch((t) => {
8992
8992
  for (let e of u.toReversed()) e();
8993
- if (u = [], E.current === a && (E.current = null), a?.dispose(), a = null, r) return;
8993
+ if (u = [], T.current === a && (T.current = null), a?.dispose(), a = null, r) return;
8994
8994
  let n = ft(t, s) ?? s(o("Unable to initialize libghostty-vt"));
8995
8995
  e.textContent = s(o("{message}. Close and reopen the terminal to retry.", { message: n }));
8996
8996
  }), () => {
8997
8997
  r = !0;
8998
8998
  let t = e.contains(document.activeElement);
8999
- i?.(), k() && t && e.isConnected && e.focus({ preventScroll: !0 });
8999
+ i?.(), O() && t && e.isConnected && e.focus({ preventScroll: !0 });
9000
9000
  };
9001
- }, r[91] = ce, r[92] = je, r[93] = d, r[94] = O, r[95] = Oe, r[96] = k, r[97] = ct, r[98] = pe, r[99] = ae, r[100] = Se, r[101] = Ne, r[102] = qe, r[103] = we, r[104] = et, r[105] = Ye, r[106] = at, r[107] = l, r[108] = K, r[109] = c, r[110] = V, r[111] = xt) : xt = r[111];
9001
+ }, r[91] = le, r[92] = je, r[93] = d, r[94] = D, r[95] = Oe, r[96] = O, r[97] = ct, r[98] = pe, r[99] = R, r[100] = Se, r[101] = Ne, r[102] = qe, r[103] = we, r[104] = et, r[105] = Ye, r[106] = at, r[107] = l, r[108] = K, r[109] = c, r[110] = ue, r[111] = xt) : xt = r[111];
9002
9002
  let St;
9003
- r[112] !== d || r[113] !== O || r[114] !== l || r[115] !== K || r[116] !== c ? (St = [
9003
+ r[112] !== d || r[113] !== D || r[114] !== l || r[115] !== K || r[116] !== c ? (St = [
9004
9004
  d,
9005
- O,
9005
+ D,
9006
9006
  l,
9007
9007
  K,
9008
9008
  c
9009
- ], r[112] = d, r[113] = O, r[114] = l, r[115] = K, r[116] = c, r[117] = St) : St = r[117], q(xt, St);
9009
+ ], r[112] = d, r[113] = D, r[114] = l, r[115] = K, r[116] = c, r[117] = St) : St = r[117], q(xt, St);
9010
9010
  let Ct;
9011
- return r[118] !== C || r[119] !== O || r[120] !== l || r[121] !== a ? (Ct = /* @__PURE__ */ X("div", {
9011
+ return r[118] !== C || r[119] !== D || r[120] !== l || r[121] !== a ? (Ct = /* @__PURE__ */ X("div", {
9012
9012
  ref: (e) => {
9013
9013
  w.current = e;
9014
9014
  let t = () => on({
9015
9015
  mount: e,
9016
- surface: E.current,
9017
- canOperate: n(O, Te),
9018
- visible: D.current
9016
+ surface: T.current,
9017
+ canOperate: n(D, Te),
9018
+ visible: te.current
9019
9019
  });
9020
- C && !T.current && (T.current = !0, cn(a, l));
9020
+ C && !ee.current && (ee.current = !0, cn(a, l));
9021
9021
  let r = fn({
9022
9022
  threadRef: a,
9023
9023
  terminalId: l,
@@ -9030,7 +9030,7 @@ function dh(e) {
9030
9030
  },
9031
9031
  tabIndex: -1,
9032
9032
  className: "relative h-full w-full overflow-hidden bg-(--terminal-background)"
9033
- }), r[118] = C, r[119] = O, r[120] = l, r[121] = a, r[122] = Ct) : Ct = r[122], Ct;
9033
+ }), r[118] = C, r[119] = D, r[120] = l, r[121] = a, r[122] = Ct) : Ct = r[122], Ct;
9034
9034
  }
9035
9035
  function fh(e) {
9036
9036
  Xt.add(Qt({
@@ -9052,7 +9052,7 @@ function hh() {
9052
9052
  }
9053
9053
  function gh(e) {
9054
9054
  let t = Vn(16), { label: n, className: r, onClick: i, children: a, disabled: o } = e, s = o && "opacity-64 cursor-not-allowed", c;
9055
- t[0] !== r || t[1] !== s ? (c = se(r, s), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
9055
+ t[0] !== r || t[1] !== s ? (c = le(r, s), t[0] = r, t[1] = s, t[2] = c) : c = t[2];
9056
9056
  let l = o ? void 0 : i, u;
9057
9057
  t[3] !== o || t[4] !== n || t[5] !== c || t[6] !== l ? (u = /* @__PURE__ */ X("button", {
9058
9058
  type: "button",
@@ -9080,12 +9080,12 @@ function gh(e) {
9080
9080
  return t[13] !== d || t[14] !== f ? (p = /* @__PURE__ */ Hn(Ut, { children: [d, f] }), t[13] = d, t[14] = f, t[15] = p) : p = t[15], p;
9081
9081
  }
9082
9082
  function _h(e) {
9083
- let t = Vn(35), { terminalIds: n, splitDirection: r, activeTerminalId: i, terminalLabelById: a, resolveLaunchLocation: o, onActiveTerminalChange: s, onCloseTerminal: c, advancedTypography: l, threadRef: u, threadId: d, onAddTerminalContext: f, visible: p, keybindings: m } = e, h = y(), g;
9084
- t[0] !== r || t[1] !== n.length ? (g = r === "vertical" ? { gridTemplateRows: `repeat(${n.length}, minmax(0, 1fr))` } : { gridTemplateColumns: `repeat(${n.length}, minmax(0, 1fr))` }, t[0] = r, t[1] = n.length, t[2] = g) : g = t[2];
9085
- let _;
9086
- if (t[3] !== i || t[4] !== l || t[5] !== h || t[6] !== m || t[7] !== s || t[8] !== f || t[9] !== c || t[10] !== o || t[11] !== r || t[12] !== n || t[13] !== a || t[14] !== d || t[15] !== u || t[16] !== p) {
9083
+ let t = Vn(35), { terminalIds: n, splitDirection: r, activeTerminalId: i, terminalLabelById: a, resolveLaunchLocation: o, onActiveTerminalChange: s, onCloseTerminal: c, advancedTypography: l, threadRef: u, threadId: d, onAddTerminalContext: p, visible: m, keybindings: h } = e, g = f(), _;
9084
+ t[0] !== r || t[1] !== n.length ? (_ = r === "vertical" ? { gridTemplateRows: `repeat(${n.length}, minmax(0, 1fr))` } : { gridTemplateColumns: `repeat(${n.length}, minmax(0, 1fr))` }, t[0] = r, t[1] = n.length, t[2] = _) : _ = t[2];
9085
+ let v;
9086
+ if (t[3] !== i || t[4] !== l || t[5] !== g || t[6] !== h || t[7] !== s || t[8] !== p || t[9] !== c || t[10] !== o || t[11] !== r || t[12] !== n || t[13] !== a || t[14] !== d || t[15] !== u || t[16] !== m) {
9087
9087
  let e;
9088
- t[18] !== i || t[19] !== l || t[20] !== h || t[21] !== m || t[22] !== s || t[23] !== f || t[24] !== c || t[25] !== o || t[26] !== r || t[27] !== a || t[28] !== d || t[29] !== u || t[30] !== p ? (e = (e) => {
9088
+ t[18] !== i || t[19] !== l || t[20] !== g || t[21] !== h || t[22] !== s || t[23] !== p || t[24] !== c || t[25] !== o || t[26] !== r || t[27] !== a || t[28] !== d || t[29] !== u || t[30] !== m ? (e = (e) => {
9089
9089
  let t = o(e);
9090
9090
  return /* @__PURE__ */ X("div", {
9091
9091
  className: `min-h-0 min-w-0 ${r === "vertical" ? "border-t first:border-t-0" : "border-l first:border-l-0"} ${e === i ? "border-border" : "border-border/70"}`,
@@ -9099,48 +9099,48 @@ function _h(e) {
9099
9099
  threadRef: u,
9100
9100
  threadId: d,
9101
9101
  terminalId: e,
9102
- terminalLabel: a.get(e) ?? h("Terminal"),
9102
+ terminalLabel: a.get(e) ?? g("Terminal"),
9103
9103
  cwd: t.cwd,
9104
9104
  ...t.worktreePath === void 0 ? {} : { worktreePath: t.worktreePath },
9105
9105
  ...t.runtimeEnv ? { runtimeEnv: t.runtimeEnv } : {},
9106
9106
  onSessionExited: () => c(e, u),
9107
- onAddTerminalContext: f,
9108
- visible: p,
9109
- keybindings: m
9107
+ onAddTerminalContext: p,
9108
+ visible: m,
9109
+ keybindings: h
9110
9110
  })
9111
9111
  })
9112
9112
  }, e);
9113
- }, t[18] = i, t[19] = l, t[20] = h, t[21] = m, t[22] = s, t[23] = f, t[24] = c, t[25] = o, t[26] = r, t[27] = a, t[28] = d, t[29] = u, t[30] = p, t[31] = e) : e = t[31], _ = n.map(e), t[3] = i, t[4] = l, t[5] = h, t[6] = m, t[7] = s, t[8] = f, t[9] = c, t[10] = o, t[11] = r, t[12] = n, t[13] = a, t[14] = d, t[15] = u, t[16] = p, t[17] = _;
9114
- } else _ = t[17];
9115
- let v;
9116
- return t[32] !== g || t[33] !== _ ? (v = /* @__PURE__ */ X("div", {
9113
+ }, t[18] = i, t[19] = l, t[20] = g, t[21] = h, t[22] = s, t[23] = p, t[24] = c, t[25] = o, t[26] = r, t[27] = a, t[28] = d, t[29] = u, t[30] = m, t[31] = e) : e = t[31], v = n.map(e), t[3] = i, t[4] = l, t[5] = g, t[6] = h, t[7] = s, t[8] = p, t[9] = c, t[10] = o, t[11] = r, t[12] = n, t[13] = a, t[14] = d, t[15] = u, t[16] = m, t[17] = v;
9114
+ } else v = t[17];
9115
+ let y;
9116
+ return t[32] !== _ || t[33] !== v ? (y = /* @__PURE__ */ X("div", {
9117
9117
  className: "grid h-full w-full min-w-0 gap-0 overflow-hidden",
9118
- style: g,
9119
- children: _
9120
- }), t[32] = g, t[33] = _, t[34] = v) : v = t[34], v;
9118
+ style: _,
9119
+ children: v
9120
+ }), t[32] = _, t[33] = v, t[34] = y) : y = t[34], y;
9121
9121
  }
9122
9122
  function vh(e) {
9123
- let t = Vn(37), { terminalGroup: n, activeTerminalId: r, showHeader: i, terminalLabelById: a, closeShortcutLabel: o, canOperateTerminal: s, onActiveTerminalChange: c, onCloseTerminal: l } = e, u = y(), d;
9123
+ let t = Vn(37), { terminalGroup: n, activeTerminalId: r, showHeader: i, terminalLabelById: a, closeShortcutLabel: o, canOperateTerminal: s, onActiveTerminalChange: c, onCloseTerminal: l } = e, u = f(), d;
9124
9124
  t[0] !== r || t[1] !== n.terminalIds ? (d = n.terminalIds.includes(r), t[0] = r, t[1] = n.terminalIds, t[2] = d) : d = t[2];
9125
- let f = d, p = f ? r : n.terminalIds[0] ?? r, m = n.terminalIds.length, h = m > 1, g;
9126
- t[3] !== u || t[4] !== h || t[5] !== n.splitDirection ? (g = h ? n.splitDirection === "vertical" ? u("Stacked", { $context: "terminals split vertically" }) : u("Side by side", { $context: "terminals split horizontally" }) : u("Single", { $context: "terminal group with one terminal" }), t[3] = u, t[4] = h, t[5] = n.splitDirection, t[6] = g) : g = t[6];
9127
- let _ = g, v = h ? n.splitDirection === "vertical" ? Ft : It : Rt, b;
9128
- t[7] !== v || t[8] !== p || t[9] !== _ || t[10] !== f || t[11] !== c || t[12] !== i || t[13] !== m ? (b = i && /* @__PURE__ */ Hn("button", {
9125
+ let p = d, m = p ? r : n.terminalIds[0] ?? r, h = n.terminalIds.length, g = h > 1, _;
9126
+ t[3] !== u || t[4] !== g || t[5] !== n.splitDirection ? (_ = g ? n.splitDirection === "vertical" ? u("Stacked", { $context: "terminals split vertically" }) : u("Side by side", { $context: "terminals split horizontally" }) : u("Single", { $context: "terminal group with one terminal" }), t[3] = u, t[4] = g, t[5] = n.splitDirection, t[6] = _) : _ = t[6];
9127
+ let v = _, y = g ? n.splitDirection === "vertical" ? Ft : It : Rt, b;
9128
+ t[7] !== y || t[8] !== m || t[9] !== v || t[10] !== p || t[11] !== c || t[12] !== i || t[13] !== h ? (b = i && /* @__PURE__ */ Hn("button", {
9129
9129
  type: "button",
9130
- className: `flex h-[22px] w-full cursor-pointer items-center gap-1 rounded px-1.5 text-2xs ${f ? "bg-accent/50 text-foreground" : "text-muted-foreground hover:bg-accent/40 hover:text-foreground"}`,
9131
- onClick: () => c(p),
9130
+ className: `flex h-[22px] w-full cursor-pointer items-center gap-1 rounded px-1.5 text-2xs ${p ? "bg-accent/50 text-foreground" : "text-muted-foreground hover:bg-accent/40 hover:text-foreground"}`,
9131
+ onClick: () => c(m),
9132
9132
  children: [
9133
- /* @__PURE__ */ X(v, { className: "size-3 shrink-0" }),
9133
+ /* @__PURE__ */ X(y, { className: "size-3 shrink-0" }),
9134
9134
  /* @__PURE__ */ X("span", {
9135
9135
  className: "min-w-0 flex-1 truncate text-left",
9136
- children: _
9136
+ children: v
9137
9137
  }),
9138
9138
  /* @__PURE__ */ X("span", {
9139
9139
  className: "text-muted-foreground/70 text-3xs tabular-nums",
9140
- children: m
9140
+ children: h
9141
9141
  })
9142
9142
  ]
9143
- }), t[7] = v, t[8] = p, t[9] = _, t[10] = f, t[11] = c, t[12] = i, t[13] = m, t[14] = b) : b = t[14];
9143
+ }), t[7] = y, t[8] = m, t[9] = v, t[10] = p, t[11] = c, t[12] = i, t[13] = h, t[14] = b) : b = t[14];
9144
9144
  let x;
9145
9145
  if (t[15] !== r || t[16] !== s || t[17] !== o || t[18] !== u || t[19] !== c || t[20] !== l || t[21] !== n.terminalIds || t[22] !== a) {
9146
9146
  let e;
@@ -9150,7 +9150,7 @@ function vh(e) {
9150
9150
  shortcut: o
9151
9151
  }) : u("Close {terminal}", { terminal: n });
9152
9152
  return /* @__PURE__ */ Hn("div", {
9153
- className: se("group/tab flex h-6 w-full items-center gap-0.5 rounded-md pr-2 pl-1.5 text-xs", t ? "bg-accent text-foreground" : "text-muted-foreground hover:bg-accent/60 hover:text-foreground"),
9153
+ className: le("group/tab flex h-6 w-full items-center gap-0.5 rounded-md pr-2 pl-1.5 text-xs", t ? "bg-accent text-foreground" : "text-muted-foreground hover:bg-accent/60 hover:text-foreground"),
9154
9154
  children: [s ? /* @__PURE__ */ X(Ef, {
9155
9155
  label: i,
9156
9156
  onClick: () => l(e),
@@ -9180,17 +9180,17 @@ function vh(e) {
9180
9180
  }), t[34] = b, t[35] = S, t[36] = C) : C = t[36], C;
9181
9181
  }
9182
9182
  function yh(e) {
9183
- let r = Vn(171), { mode: i, threadRef: a, threadId: o, cwd: c, worktreePath: l, runtimeEnv: u, visible: d, height: f, composerHeight: p, terminalIds: m, activeTerminalId: h, terminalGroups: g, activeTerminalGroupId: _, onSplitTerminal: v, onSplitTerminalVertical: b, onNewTerminal: x, splitShortcutLabel: S, splitVerticalShortcutLabel: C, newShortcutLabel: w, closeShortcutLabel: T, onActiveTerminalChange: E, onCloseTerminal: D, onHeightChange: O, onAddTerminalContext: ee, keybindings: k, terminalLabelsById: ne, terminalLaunchLocationsById: A } = e, re = i === void 0 ? "drawer" : i, j = d === void 0 || d, M = p === void 0 ? 0 : p, N = y(), P = de(), F = t(a.environmentId, Te), I;
9183
+ let r = Vn(171), { mode: i, threadRef: a, threadId: o, cwd: c, worktreePath: l, runtimeEnv: u, visible: d, height: p, composerHeight: m, terminalIds: h, activeTerminalId: g, terminalGroups: _, activeTerminalGroupId: v, onSplitTerminal: y, onSplitTerminalVertical: b, onNewTerminal: x, splitShortcutLabel: C, splitVerticalShortcutLabel: w, newShortcutLabel: ee, closeShortcutLabel: T, onActiveTerminalChange: E, onCloseTerminal: te, onHeightChange: D, onAddTerminalContext: re, keybindings: O, terminalLabelsById: k, terminalLaunchLocationsById: ae } = e, A = i === void 0 ? "drawer" : i, j = d === void 0 || d, M = m === void 0 ? 0 : m, N = f(), P = S(), F = t(a.environmentId, Te), I;
9184
9184
  r[0] === N ? I = r[1] : (I = sn("terminal", 5, N("Terminal")), r[0] = N, r[1] = I);
9185
- let ie = I, L = re === "panel", [R] = ce(vt, !1, Re), z = Y(null), [ae, oe] = zn(Sh), B, le;
9186
- r[2] !== M || r[3] !== ae || r[4] !== f ? (B = Bm({
9187
- ...ae,
9185
+ let L = I, R = A === "panel", [oe] = ue(vt, !1, Re), z = Y(null), [se, ce] = zn(Sh), B, de;
9186
+ r[2] !== M || r[3] !== se || r[4] !== p ? (B = Bm({
9187
+ ...se,
9188
9188
  composerHeight: M
9189
- }), le = Hm(f, B), r[2] = M, r[3] = ae, r[4] = f, r[5] = B, r[6] = le) : (B = r[5], le = r[6]);
9190
- let V = le, ue = Y(null), fe, me, H, U;
9191
- if (r[7] !== P || r[8] !== g || r[9] !== m || r[10] !== ne) {
9189
+ }), de = Hm(p, B), r[2] = M, r[3] = se, r[4] = p, r[5] = B, r[6] = de) : (B = r[5], de = r[6]);
9190
+ let V = de, fe = Y(null), pe, me, H, U;
9191
+ if (r[7] !== P || r[8] !== _ || r[9] !== h || r[10] !== k) {
9192
9192
  let e = [], t = /* @__PURE__ */ new Set();
9193
- for (let n of m) {
9193
+ for (let n of h) {
9194
9194
  let r = n.trim();
9195
9195
  r.length === 0 || t.has(r) || (t.add(r), e.push(r));
9196
9196
  }
@@ -9208,7 +9208,7 @@ function yh(e) {
9208
9208
  let n = `${e}-${t}`;
9209
9209
  return r.add(n), n;
9210
9210
  };
9211
- for (let n of g) {
9211
+ for (let n of _) {
9212
9212
  let r = [], o = /* @__PURE__ */ new Set();
9213
9213
  for (let i of n.terminalIds) {
9214
9214
  let n = i.trim();
@@ -9236,34 +9236,34 @@ function yh(e) {
9236
9236
  U = n;
9237
9237
  let i = /* @__PURE__ */ new Map();
9238
9238
  for (let [e, t] of U.entries()) for (let n of t.terminalIds) i.set(n, e);
9239
- fe = i, me = /* @__PURE__ */ new Map();
9240
- for (let e of H) me.set(e, ne?.get(e) ?? wf(e, P));
9241
- r[7] = P, r[8] = g, r[9] = m, r[10] = ne, r[11] = fe, r[12] = me, r[13] = H, r[14] = U;
9242
- } else fe = r[11], me = r[12], H = r[13], U = r[14];
9243
- let he = me, W = H.length === 0 ? "" : H.includes(h) ? h : H[0] ?? "", ge = U.findIndex((e) => e.id === _), _e;
9244
- r[15] !== ge || r[16] !== fe || r[17] !== W ? (_e = ge >= 0 ? ge : fe.get(W) ?? 0, r[15] = ge, r[16] = fe, r[17] = W, r[18] = _e) : _e = r[18];
9239
+ pe = i, me = /* @__PURE__ */ new Map();
9240
+ for (let e of H) me.set(e, k?.get(e) ?? wf(e, P));
9241
+ r[7] = P, r[8] = _, r[9] = h, r[10] = k, r[11] = pe, r[12] = me, r[13] = H, r[14] = U;
9242
+ } else pe = r[11], me = r[12], H = r[13], U = r[14];
9243
+ let he = me, W = H.length === 0 ? "" : H.includes(g) ? g : H[0] ?? "", ge = U.findIndex((e) => e.id === v), _e;
9244
+ r[15] !== ge || r[16] !== pe || r[17] !== W ? (_e = ge >= 0 ? ge : pe.get(W) ?? 0, r[15] = ge, r[16] = pe, r[17] = W, r[18] = _e) : _e = r[18];
9245
9245
  let ve = _e, ye;
9246
9246
  r[19] !== H.length || r[20] !== ve || r[21] !== W || r[22] !== U ? (ye = U[ve]?.terminalIds ?? (H.length > 0 ? [W] : []), r[19] = H.length, r[20] = ve, r[21] = W, r[22] = U, r[23] = ye) : ye = r[23];
9247
9247
  let be = ye, xe = U[ve]?.splitDirection ?? "horizontal", Se = H.length > 1, Ce;
9248
9248
  r[24] === U ? Ce = r[25] : (Ce = U.length > 1 || U.some(bh), r[24] = U, r[25] = Ce);
9249
9249
  let we = Ce, G = be.length >= 4, Ee;
9250
- r[26] !== c || r[27] !== u || r[28] !== A || r[29] !== l ? (Ee = (e) => A?.get(e) ?? {
9250
+ r[26] !== c || r[27] !== u || r[28] !== ae || r[29] !== l ? (Ee = (e) => ae?.get(e) ?? {
9251
9251
  cwd: c,
9252
9252
  ...l === void 0 ? {} : { worktreePath: l },
9253
9253
  ...u ? { runtimeEnv: u } : {}
9254
- }, r[26] = c, r[27] = u, r[28] = A, r[29] = l, r[30] = Ee) : Ee = r[30];
9254
+ }, r[26] = c, r[27] = u, r[28] = ae, r[29] = l, r[30] = Ee) : Ee = r[30];
9255
9255
  let De = Ee, Oe;
9256
- r[31] !== N || r[32] !== G || r[33] !== S ? (Oe = G ? N("Split Terminal Horizontally (max {max} per group)", { max: 4 }) : S ? N("Split Terminal Horizontally ({shortcut})", { shortcut: S }) : N("Split Terminal Horizontally"), r[31] = N, r[32] = G, r[33] = S, r[34] = Oe) : Oe = r[34];
9256
+ r[31] !== N || r[32] !== G || r[33] !== C ? (Oe = G ? N("Split Terminal Horizontally (max {max} per group)", { max: 4 }) : C ? N("Split Terminal Horizontally ({shortcut})", { shortcut: C }) : N("Split Terminal Horizontally"), r[31] = N, r[32] = G, r[33] = C, r[34] = Oe) : Oe = r[34];
9257
9257
  let ke = Oe, Ae;
9258
- r[35] !== N || r[36] !== G || r[37] !== C ? (Ae = G ? N("Split Terminal Vertically (max {max} per group)", { max: 4 }) : C ? N("Split Terminal Vertically ({shortcut})", { shortcut: C }) : N("Split Terminal Vertically"), r[35] = N, r[36] = G, r[37] = C, r[38] = Ae) : Ae = r[38];
9258
+ r[35] !== N || r[36] !== G || r[37] !== w ? (Ae = G ? N("Split Terminal Vertically (max {max} per group)", { max: 4 }) : w ? N("Split Terminal Vertically ({shortcut})", { shortcut: w }) : N("Split Terminal Vertically"), r[35] = N, r[36] = G, r[37] = w, r[38] = Ae) : Ae = r[38];
9259
9259
  let je = Ae, Me;
9260
- r[39] !== N || r[40] !== w ? (Me = w ? N("New Terminal ({shortcut})", { shortcut: w }) : N("New Terminal"), r[39] = N, r[40] = w, r[41] = Me) : Me = r[41];
9260
+ r[39] !== N || r[40] !== ee ? (Me = ee ? N("New Terminal ({shortcut})", { shortcut: ee }) : N("New Terminal"), r[39] = N, r[40] = ee, r[41] = Me) : Me = r[41];
9261
9261
  let Ne = Me, Pe;
9262
9262
  r[42] !== T || r[43] !== N ? (Pe = T ? N("Close Terminal ({shortcut})", { shortcut: T }) : N("Close Terminal"), r[42] = T, r[43] = N, r[44] = Pe) : Pe = r[44];
9263
9263
  let Fe = Pe, Ie;
9264
- r[45] !== F || r[46] !== G || r[47] !== v ? (Ie = () => {
9265
- F && !G && v();
9266
- }, r[45] = F, r[46] = G, r[47] = v, r[48] = Ie) : Ie = r[48];
9264
+ r[45] !== F || r[46] !== G || r[47] !== y ? (Ie = () => {
9265
+ F && !G && y();
9266
+ }, r[45] = F, r[46] = G, r[47] = y, r[48] = Ie) : Ie = r[48];
9267
9267
  let Le = Ie, ze;
9268
9268
  r[49] !== F || r[50] !== G || r[51] !== b ? (ze = () => {
9269
9269
  F && !G && b();
@@ -9273,14 +9273,14 @@ function yh(e) {
9273
9273
  F && x();
9274
9274
  }, r[53] = F, r[54] = x, r[55] = Ve) : Ve = r[55];
9275
9275
  let He = Ve, K;
9276
- r[56] !== F || r[57] !== D || r[58] !== he || r[59] !== a ? (K = (e) => {
9276
+ r[56] !== F || r[57] !== te || r[58] !== he || r[59] !== a ? (K = (e) => {
9277
9277
  F && Om([he.get(e) ?? wf(e, s)]).then((t) => {
9278
- t && n(a.environmentId, "terminal:operate") && D(e, a);
9278
+ t && n(a.environmentId, "terminal:operate") && te(e, a);
9279
9279
  });
9280
- }, r[56] = F, r[57] = D, r[58] = he, r[59] = a, r[60] = K) : K = r[60];
9280
+ }, r[56] = F, r[57] = te, r[58] = he, r[59] = a, r[60] = K) : K = r[60];
9281
9281
  let Ue = K, We;
9282
9282
  r[61] === V ? We = r[62] : (We = (e) => {
9283
- e.button === 0 && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), ue.current = {
9283
+ e.button === 0 && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), fe.current = {
9284
9284
  pointerId: e.pointerId,
9285
9285
  startY: e.clientY,
9286
9286
  startHeight: V,
@@ -9290,23 +9290,23 @@ function yh(e) {
9290
9290
  }, r[61] = V, r[62] = We);
9291
9291
  let Ge = We, Ke;
9292
9292
  r[63] === B ? Ke = r[64] : (Ke = (e) => {
9293
- let t = ue.current;
9293
+ let t = fe.current;
9294
9294
  if (!t || t.pointerId !== e.pointerId) return;
9295
9295
  e.preventDefault();
9296
9296
  let n = Hm(t.startHeight + (t.startY - e.clientY), B);
9297
9297
  n !== t.height && (t.height = n, t.drawer?.style.setProperty(Vm, `${n}px`));
9298
9298
  }, r[63] = B, r[64] = Ke);
9299
9299
  let qe = Ke, Je;
9300
- r[65] !== f || r[66] !== O ? (Je = (e) => {
9301
- let t = ue.current;
9302
- t && t.pointerId === e.pointerId && (ue.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), t.drawer?.style.removeProperty(Vm), t.height !== t.startHeight && t.height !== f && O(t.height));
9303
- }, r[65] = f, r[66] = O, r[67] = Je) : Je = r[67];
9304
- let Ye = Je, Xe = Y(ae), Ze;
9300
+ r[65] !== p || r[66] !== D ? (Je = (e) => {
9301
+ let t = fe.current;
9302
+ t && t.pointerId === e.pointerId && (fe.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), t.drawer?.style.removeProperty(Vm), t.height !== t.startHeight && t.height !== p && D(t.height));
9303
+ }, r[65] = p, r[66] = D, r[67] = Je) : Je = r[67];
9304
+ let Ye = Je, Xe = Y(se), Ze;
9305
9305
  r[68] === M ? Ze = r[69] : (Ze = (e, t) => {
9306
9306
  let n = Wm(e), r = Xe.current, i = n.viewportHeight !== r.viewportHeight || n.chatColumnHeight !== r.chatColumnHeight || n.headerHeight !== r.headerHeight;
9307
9307
  if (!i && t === "column") return;
9308
9308
  Xe.current = n;
9309
- let a = ue.current;
9309
+ let a = fe.current;
9310
9310
  if (a) {
9311
9311
  let e = Hm(a.height, Bm({
9312
9312
  ...n,
@@ -9314,43 +9314,43 @@ function yh(e) {
9314
9314
  }));
9315
9315
  e !== a.height && (a.height = e, a.drawer?.style.setProperty(Vm, `${e}px`));
9316
9316
  }
9317
- i && oe(n);
9317
+ i && ce(n);
9318
9318
  }, r[68] = M, r[69] = Ze);
9319
9319
  let Qe = In(Ze), $e;
9320
- r[70] !== L || r[71] !== Qe || r[72] !== j ? ($e = () => {
9320
+ r[70] !== R || r[71] !== Qe || r[72] !== j ? ($e = () => {
9321
9321
  if (!j) return;
9322
- let e = L ? null : Um(z.current), t = () => Qe(e, "window");
9322
+ let e = R ? null : Um(z.current), t = () => Qe(e, "window");
9323
9323
  t();
9324
9324
  let n = e?.querySelector("[data-chat-header]"), r = e ? Cn(n ? [e, n] : e, () => Qe(e, "column")) : void 0;
9325
9325
  return window.addEventListener("resize", t), () => {
9326
9326
  r?.(), window.removeEventListener("resize", t);
9327
9327
  };
9328
- }, r[70] = L, r[71] = Qe, r[72] = j, r[73] = $e) : $e = r[73];
9328
+ }, r[70] = R, r[71] = Qe, r[72] = j, r[73] = $e) : $e = r[73];
9329
9329
  let et;
9330
- r[74] !== L || r[75] !== j ? (et = [L, j], r[74] = L, r[75] = j, r[76] = et) : et = r[76], Ln($e, et);
9330
+ r[74] !== R || r[75] !== j ? (et = [R, j], r[74] = R, r[75] = j, r[76] = et) : et = r[76], Ln($e, et);
9331
9331
  let tt;
9332
- r[77] !== Ge || r[78] !== Ye || r[79] !== qe || r[80] !== L ? (tt = L ? null : /* @__PURE__ */ X("div", {
9332
+ r[77] !== Ge || r[78] !== Ye || r[79] !== qe || r[80] !== R ? (tt = R ? null : /* @__PURE__ */ X("div", {
9333
9333
  className: "absolute inset-x-0 top-0 z-20 h-1.5 cursor-row-resize touch-none any-pointer-coarse:h-4",
9334
9334
  onPointerDown: Ge,
9335
9335
  onPointerMove: qe,
9336
9336
  onPointerUp: Ye,
9337
9337
  onPointerCancel: Ye,
9338
9338
  onLostPointerCapture: Ye
9339
- }), r[77] = Ge, r[78] = Ye, r[79] = qe, r[80] = L, r[81] = tt) : tt = r[81];
9339
+ }), r[77] = Ge, r[78] = Ye, r[79] = qe, r[80] = R, r[81] = tt) : tt = r[81];
9340
9340
  let nt = tt;
9341
9341
  if (H.length === 0) {
9342
9342
  let e;
9343
- r[82] !== L || r[83] !== ie || r[84] !== j ? (e = !L && j ? ie : {}, r[82] = L, r[83] = ie, r[84] = j, r[85] = e) : e = r[85];
9344
- let t = L ? "right-panel" : "drawer", n = L ? "h-full flex-1" : "z-45 shrink-0 border-t border-border/80", i;
9345
- r[86] === n ? i = r[87] : (i = se("relative flex min-w-0 flex-col overflow-hidden bg-background", n), r[86] = n, r[87] = i);
9343
+ r[82] !== R || r[83] !== L || r[84] !== j ? (e = !R && j ? L : {}, r[82] = R, r[83] = L, r[84] = j, r[85] = e) : e = r[85];
9344
+ let t = R ? "right-panel" : "drawer", n = R ? "h-full flex-1" : "z-45 shrink-0 border-t border-border/80", i;
9345
+ r[86] === n ? i = r[87] : (i = le("relative flex min-w-0 flex-col overflow-hidden bg-background", n), r[86] = n, r[87] = i);
9346
9346
  let a;
9347
- r[88] !== V || r[89] !== L ? (a = L ? void 0 : { height: `var(${Vm}, ${V}px)` }, r[88] = V, r[89] = L, r[90] = a) : a = r[90];
9347
+ r[88] !== V || r[89] !== R ? (a = R ? void 0 : { height: `var(${Vm}, ${V}px)` }, r[88] = V, r[89] = R, r[90] = a) : a = r[90];
9348
9348
  let o;
9349
- r[91] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ X("p", { children: /* @__PURE__ */ X(pe, { children: "No terminal sessions for this thread yet." }) }), r[91] = o) : o = r[91];
9349
+ r[91] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ X("p", { children: /* @__PURE__ */ X(ne, { children: "No terminal sessions for this thread yet." }) }), r[91] = o) : o = r[91];
9350
9350
  let s = !F, c;
9351
9351
  r[92] !== Ne || r[93] !== He || r[94] !== s ? (c = /* @__PURE__ */ Hn("div", {
9352
9352
  className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-3 px-4 py-6 text-center text-sm text-muted-foreground",
9353
- children: [o, /* @__PURE__ */ X(te, {
9353
+ children: [o, /* @__PURE__ */ X(ie, {
9354
9354
  size: "xs",
9355
9355
  variant: "outline",
9356
9356
  onClick: He,
@@ -9370,11 +9370,11 @@ function yh(e) {
9370
9370
  }), r[96] = nt, r[97] = e, r[98] = t, r[99] = i, r[100] = a, r[101] = c, r[102] = l) : l = r[102], l;
9371
9371
  }
9372
9372
  let rt;
9373
- r[103] !== L || r[104] !== ie || r[105] !== j ? (rt = !L && j ? ie : {}, r[103] = L, r[104] = ie, r[105] = j, r[106] = rt) : rt = r[106];
9374
- let it = L ? "right-panel" : "drawer", at = L ? "h-full flex-1" : "z-45 shrink-0 border-t border-border/80", ot;
9375
- r[107] === at ? ot = r[108] : (ot = se("relative flex min-w-0 flex-col overflow-hidden bg-background", at), r[107] = at, r[108] = ot);
9373
+ r[103] !== R || r[104] !== L || r[105] !== j ? (rt = !R && j ? L : {}, r[103] = R, r[104] = L, r[105] = j, r[106] = rt) : rt = r[106];
9374
+ let it = R ? "right-panel" : "drawer", at = R ? "h-full flex-1" : "z-45 shrink-0 border-t border-border/80", ot;
9375
+ r[107] === at ? ot = r[108] : (ot = le("relative flex min-w-0 flex-col overflow-hidden bg-background", at), r[107] = at, r[108] = ot);
9376
9376
  let st;
9377
- r[109] !== V || r[110] !== L ? (st = L ? void 0 : { height: `var(${Vm}, ${V}px)` }, r[109] = V, r[110] = L, r[111] = st) : st = r[111];
9377
+ r[109] !== V || r[110] !== R ? (st = R ? void 0 : { height: `var(${Vm}, ${V}px)` }, r[109] = V, r[110] = R, r[111] = st) : st = r[111];
9378
9378
  let ct;
9379
9379
  r[112] !== F || r[113] !== Fe || r[114] !== Ue || r[115] !== G || r[116] !== Se || r[117] !== Ne || r[118] !== He || r[119] !== Le || r[120] !== Be || r[121] !== W || r[122] !== ke || r[123] !== je ? (ct = !Se && /* @__PURE__ */ X("div", {
9380
9380
  className: "pointer-events-none absolute right-2 top-2 z-20",
@@ -9416,9 +9416,9 @@ function yh(e) {
9416
9416
  })
9417
9417
  }), r[112] = F, r[113] = Fe, r[114] = Ue, r[115] = G, r[116] = Se, r[117] = Ne, r[118] = He, r[119] = Le, r[120] = Be, r[121] = W, r[122] = ke, r[123] = je, r[124] = ct) : ct = r[124];
9418
9418
  let lt = Se && "gap-1.5", ut;
9419
- r[125] === lt ? ut = r[126] : (ut = se("flex h-full min-h-0 bg-(--terminal-background)", lt), r[125] = lt, r[126] = ut);
9419
+ r[125] === lt ? ut = r[126] : (ut = le("flex h-full min-h-0 bg-(--terminal-background)", lt), r[125] = lt, r[126] = ut);
9420
9420
  let dt;
9421
- r[127] !== R || r[128] !== k || r[129] !== E || r[130] !== ee || r[131] !== D || r[132] !== De || r[133] !== W || r[134] !== xe || r[135] !== he || r[136] !== o || r[137] !== a || r[138] !== j || r[139] !== be ? (dt = /* @__PURE__ */ X("div", {
9421
+ r[127] !== oe || r[128] !== O || r[129] !== E || r[130] !== re || r[131] !== te || r[132] !== De || r[133] !== W || r[134] !== xe || r[135] !== he || r[136] !== o || r[137] !== a || r[138] !== j || r[139] !== be ? (dt = /* @__PURE__ */ X("div", {
9422
9422
  className: "min-w-0 flex-1",
9423
9423
  children: /* @__PURE__ */ X(_h, {
9424
9424
  terminalIds: be,
@@ -9427,15 +9427,15 @@ function yh(e) {
9427
9427
  terminalLabelById: he,
9428
9428
  resolveLaunchLocation: De,
9429
9429
  onActiveTerminalChange: E,
9430
- onCloseTerminal: D,
9431
- advancedTypography: R,
9430
+ onCloseTerminal: te,
9431
+ advancedTypography: oe,
9432
9432
  threadRef: a,
9433
9433
  threadId: o,
9434
- onAddTerminalContext: ee,
9434
+ onAddTerminalContext: re,
9435
9435
  visible: j,
9436
- keybindings: k
9436
+ keybindings: O
9437
9437
  })
9438
- }), r[127] = R, r[128] = k, r[129] = E, r[130] = ee, r[131] = D, r[132] = De, r[133] = W, r[134] = xe, r[135] = he, r[136] = o, r[137] = a, r[138] = j, r[139] = be, r[140] = dt) : dt = r[140];
9438
+ }), r[127] = oe, r[128] = O, r[129] = E, r[130] = re, r[131] = te, r[132] = De, r[133] = W, r[134] = xe, r[135] = he, r[136] = o, r[137] = a, r[138] = j, r[139] = be, r[140] = dt) : dt = r[140];
9439
9439
  let ft;
9440
9440
  r[141] !== F || r[142] !== T || r[143] !== Fe || r[144] !== Ue || r[145] !== G || r[146] !== Se || r[147] !== Ne || r[148] !== E || r[149] !== He || r[150] !== Le || r[151] !== Be || r[152] !== W || r[153] !== U || r[154] !== we || r[155] !== ke || r[156] !== je || r[157] !== he ? (ft = Se && /* @__PURE__ */ Hn("aside", {
9441
9441
  className: "flex w-36 min-w-36 flex-col border border-border/70 bg-muted/10",