@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,8 +1,8 @@
1
1
  import { c as e, n as t } from "./messages-yqmY7G5x.js";
2
- import { $h as n, Cg as r, F as i, Fr as a, Gh as o, Gr as s, Hr as c, Ir as l, Jh as u, K as d, Kh as f, Lr as p, Mr as m, Or as h, S_ as g, Tf as _, Ur as v, Wr as ee, Zh as y, b_ as te, ci as b, fp as x, gr as S, hf as ne, hr as C, t as w, uc as T, x_ as re, xg as ie, y_ as E, yr as D, z as O } from "./utils-515nQ17G.js";
3
- import { ad as ae, dy as oe } from "./keybindings-C5tK_GAk.js";
4
- import { bt as se } from "./themePalette-Dl_7omVL.js";
5
- import { At as ce, Mt as le, Ot as ue, Tt as de } from "./threadSearch-BHyWwcV3.js";
2
+ import { C_ as n, Ef as r, F as i, Fr as a, Gr as o, Hr as s, Ir as c, K as l, Kh as u, Lr as d, Mr as f, Or as p, Qh as m, S_ as h, Sg as g, Ur as _, Wr as v, Yh as y, b_ as b, ci as x, eg as S, gf as ee, gr as C, hr as w, pp as te, qh as T, t as E, uc as ne, wg as re, x_ as ie, yr as D, z as O } from "./utils-DtKQl-D3.js";
3
+ import { ad as ae, dy as oe } from "./keybindings-D0pBlT1k.js";
4
+ import { bt as se } from "./themePalette-C-GtwwqV.js";
5
+ import { At as ce, Mt as le, Ot as ue, Tt as de } from "./threadSearch-CrtCof6n.js";
6
6
  import { a as fe, i as pe } from "./search-3oqTSaO6.js";
7
7
  import { i as me } from "./unlink-2-CRzwRyat.js";
8
8
  import { n as he } from "./chevron-up-B5PN0DAN.js";
@@ -11,30 +11,30 @@ import { n as ye, r as k } from "./triangle-alert-CpJvcOXh.js";
11
11
  import { i as be } from "./user-round-DXjpOTSK.js";
12
12
  import { i as xe, n as Se, r as Ce, t as we } from "./rows-3-htYGoJUI.js";
13
13
  import { t as A } from "./rotate-cw-KPG5A_wN.js";
14
- import { a as Te, c as Ee, d as De, f as Oe, l as ke, m as Ae, n as je, o as Me, r as Ne } from "./useLiveRefresh-BkKJKXhH.js";
15
- import "./errors-DrFQSJW3.js";
16
- import { f as Pe, p as Fe } from "./useSettings-DYG9Dmro.js";
17
- import { S as Ie, c as Le } from "./presentation-D9mVPBHm.js";
14
+ import { a as Te, c as Ee, d as De, f as Oe, l as ke, m as Ae, n as je, o as Me, r as Ne } from "./useLiveRefresh-aHkPuz6N.js";
15
+ import "./errors-D8_Zn8KN.js";
16
+ import { f as Pe, p as Fe } from "./useSettings-B_MtcTyD.js";
17
+ import { S as Ie, c as Le } from "./presentation-68y8EAuH.js";
18
18
  import { t as Re } from "./useStableCallback-kf0xbSaG.js";
19
- import { t as ze } from "./use-atom-command-ByoYq_K6.js";
20
- import { f as Be } from "./useTheme-D2ZM1gvV.js";
21
- import { o as Ve } from "./assetUrls-DkY7vXfM.js";
22
- import { n as He } from "./query-BxrrBAp6.js";
23
- import { Jt as Ue, qt as We } from "./fileExplorerLabel-AikEChiS.js";
24
- import { a as Ge } from "./browserLinkTarget-CA46wnQC.js";
19
+ import { t as ze } from "./use-atom-command-XemtT1Gv.js";
20
+ import { f as Be } from "./useTheme-WlXpQRKG.js";
21
+ import { o as Ve } from "./assetUrls-D8lRk7Xd.js";
22
+ import { n as He } from "./query-BPk2W3QN.js";
23
+ import { Jt as Ue, qt as We } from "./fileExplorerLabel-Cfz-3q1U.js";
24
+ import { a as Ge } from "./browserLinkTarget-BbVlDQYx.js";
25
25
  import { t as Ke } from "./observeIntersection-C0N8P8-O.js";
26
- import { D as qe, E as Je, O as Ye, S as Xe, T as Ze, _ as Qe, k as $e, v as et } from "./useTextFieldSpeech-COa9XcRx.js";
27
- import { n as tt, t as nt } from "./toggle-group-BHovdMDl.js";
28
- import { et as rt, ft as it, st as at, t as ot } from "./DiffCommentAnnotation-BPTN_2a6.js";
29
- import { i as st, n as ct, r as lt } from "./fileContextMenu-BBo91omq.js";
30
- import { t as ut } from "./refresh-icon-BYx64to1.js";
31
- import { t as dt } from "./FileExplorerPane-CeHulcPz.js";
26
+ import { D as qe, E as Je, O as Ye, S as Xe, T as Ze, _ as Qe, k as $e, v as et } from "./useTextFieldSpeech-B1wCgLPO.js";
27
+ import { n as tt, t as nt } from "./toggle-group-l8hRPswr.js";
28
+ import { et as rt, ft as it, st as at, t as ot } from "./DiffCommentAnnotation-2HD5qiyt.js";
29
+ import { i as st, n as ct, r as lt } from "./fileContextMenu-DW94DZj4.js";
30
+ import { t as ut } from "./refresh-icon-Vo5ImiQL.js";
31
+ import { t as dt } from "./FileExplorerPane-GwnRmXEh.js";
32
32
  import { a as j, c as ft, l as M, o as pt, r as mt, s as ht, u as gt } from "./diffRendering-tvIuzFsP.js";
33
33
  import { t as _t } from "./syntaxHighlighting-CqVs1cUM.js";
34
- import { a as vt, c as yt, i as bt, l as xt, s as St, t as Ct } from "./changedFileKind-D6QYvIez.js";
35
- import { t as wt } from "./switch-COwevwaq.js";
36
- import { n as N, r as Tt, t as P } from "./anchoredCopyToast-DnUtg1n_.js";
37
- import { a as Et, i as Dt, n as Ot, o as kt, s as At, t as jt } from "./DiffFileTree-B_br90vY.js";
34
+ import { a as vt, c as yt, i as bt, l as xt, s as St, t as Ct } from "./changedFileKind-DrjqPCpz.js";
35
+ import { t as wt } from "./switch-DjpPjtQN.js";
36
+ import { n as N, r as Tt, t as P } from "./anchoredCopyToast-BVa_dlBU.js";
37
+ import { a as Et, i as Dt, n as Ot, o as kt, s as At, t as jt } from "./DiffFileTree-CuWvI5hS.js";
38
38
  import { n as Mt } from "./fileCommentAnnotations-BTbvReHc.js";
39
39
  import { useContext as F, useEffect as Nt, useRef as Pt, useState as Ft } from "react";
40
40
  import { c as It } from "react/compiler-runtime";
@@ -131,36 +131,36 @@ function Ht(n, r = t) {
131
131
  }
132
132
  // src/components/DiffFilePathCopyButton.tsx
133
133
  function Ut(e) {
134
- let t = It(23), { filePath: n, workspaceRoot: r } = e, i = g(), a = Pt(null), o;
135
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = {
136
- onError: (e) => N(a, e),
134
+ let t = It(23), { filePath: r, workspaceRoot: i } = e, a = n(), o = Pt(null), s;
135
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = {
136
+ onError: (e) => N(o, e),
137
137
  timeout: P
138
- }, t[0] = o) : o = t[0];
139
- let { copyToClipboard: s, isCopied: c } = Ie(o), l;
140
- t[1] === i ? l = t[2] : (l = i("Copy file path"), t[1] = i, t[2] = l);
141
- let u;
142
- t[3] !== s || t[4] !== n || t[5] !== r ? (u = () => s(Tt(n, r), void 0), t[3] = s, t[4] = n, t[5] = r, t[6] = u) : u = t[6];
138
+ }, t[0] = s) : s = t[0];
139
+ let { copyToClipboard: c, isCopied: l } = Ie(s), u;
140
+ t[1] === a ? u = t[2] : (u = a("Copy file path"), t[1] = a, t[2] = u);
143
141
  let d;
144
- t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ I(b, {
145
- ref: a,
142
+ t[3] !== c || t[4] !== r || t[5] !== i ? (d = () => c(Tt(r, i), void 0), t[3] = c, t[4] = r, t[5] = i, t[6] = d) : d = t[6];
143
+ let f;
144
+ t[7] !== u || t[8] !== d ? (f = /* @__PURE__ */ I(x, {
145
+ ref: o,
146
146
  size: "icon-micro",
147
147
  variant: "ghost-muted",
148
- "aria-label": l,
149
- onClick: u
150
- }), t[7] = l, t[8] = u, t[9] = d) : d = t[9];
151
- let f;
152
- t[10] === c ? f = t[11] : (f = c ? /* @__PURE__ */ I(fe, { className: "size-3 text-success" }) : /* @__PURE__ */ I(k, { className: "size-3" }), t[10] = c, t[11] = f);
148
+ "aria-label": u,
149
+ onClick: d
150
+ }), t[7] = u, t[8] = d, t[9] = f) : f = t[9];
153
151
  let p;
154
- t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ I(D, {
155
- render: d,
156
- children: f
157
- }), t[12] = d, t[13] = f, t[14] = p) : p = t[14];
152
+ t[10] === l ? p = t[11] : (p = l ? /* @__PURE__ */ I(fe, { className: "size-3 text-success" }) : /* @__PURE__ */ I(k, { className: "size-3" }), t[10] = l, t[11] = p);
158
153
  let m;
159
- t[15] !== i || t[16] !== c ? (m = i(c ? "Copied" : "Copy path"), t[15] = i, t[16] = c, t[17] = m) : m = t[17];
154
+ t[12] !== f || t[13] !== p ? (m = /* @__PURE__ */ I(D, {
155
+ render: f,
156
+ children: p
157
+ }), t[12] = f, t[13] = p, t[14] = m) : m = t[14];
160
158
  let h;
161
- t[18] === m ? h = t[19] : (h = /* @__PURE__ */ I(S, { children: /* @__PURE__ */ I("p", { children: m }) }), t[18] = m, t[19] = h);
159
+ t[15] !== a || t[16] !== l ? (h = a(l ? "Copied" : "Copy path"), t[15] = a, t[16] = l, t[17] = h) : h = t[17];
160
+ let g;
161
+ t[18] === h ? g = t[19] : (g = /* @__PURE__ */ I(C, { children: /* @__PURE__ */ I("p", { children: h }) }), t[18] = h, t[19] = g);
162
162
  let _;
163
- return t[20] !== p || t[21] !== h ? (_ = /* @__PURE__ */ L(C, { children: [p, h] }), t[20] = p, t[21] = h, t[22] = _) : _ = t[22], _;
163
+ return t[20] !== m || t[21] !== g ? (_ = /* @__PURE__ */ L(w, { children: [m, g] }), t[20] = m, t[21] = g, t[22] = _) : _ = t[22], _;
164
164
  }
165
165
  // src/components/diffs/AnnotatableCodeView.tsx
166
166
  var Wt = [];
@@ -179,18 +179,18 @@ function Kt(e, t, n) {
179
179
  } : e);
180
180
  }
181
181
  function qt(e) {
182
- let t = It(73), { environmentId: n, projectId: r, codeViewKey: a, files: o, pendingFiles: s, sectionId: c, sectionTitle: l, composerDraftTarget: u, options: f, viewerRef: p, onScroll: m, className: h, renderCodeViewFooter: g, unsafeCSSExtra: _, renderHeaderMetadata: v, renderHeaderFilenameSuffix: ee, renderHeaderPrefix: y, onFileCollapsedChange: te } = e, b = i($t), x = i(Qt), S;
183
- t[0] === u ? S = t[1] : (S = (e) => e.getComposerDraft(u)?.reviewComments ?? Wt, t[0] = u, t[1] = S);
184
- let ne = i(S), [C, w] = Ft(null), [T, re] = Ft(null), [ie, E] = Ft(""), D;
182
+ let t = It(73), { environmentId: n, projectId: r, codeViewKey: a, files: o, pendingFiles: s, sectionId: c, sectionTitle: u, composerDraftTarget: d, options: f, viewerRef: p, onScroll: m, className: h, renderCodeViewFooter: g, unsafeCSSExtra: _, renderHeaderMetadata: v, renderHeaderFilenameSuffix: y, renderHeaderPrefix: b, onFileCollapsedChange: x } = e, S = i($t), ee = i(Qt), C;
183
+ t[0] === d ? C = t[1] : (C = (e) => e.getComposerDraft(d)?.reviewComments ?? Wt, t[0] = d, t[1] = C);
184
+ let w = i(C), [te, T] = Ft(null), [E, ne] = Ft(null), [re, ie] = Ft(""), D;
185
185
  t[2] === o ? D = t[3] : (D = new Map(o.map(Zt)), t[2] = o, t[3] = D);
186
186
  let ae = D;
187
- T !== null && !ae.has(T.fileKey) && !s.some((e) => M(e) === T.filePath && gt(e) === T.previousFilePath) && (re(null), E(""), w(null));
187
+ E !== null && !ae.has(E.fileKey) && !s.some((e) => M(e) === E.filePath && gt(e) === E.previousFilePath) && (ne(null), ie(""), T(null));
188
188
  let oe;
189
- if (t[4] !== T || t[5] !== o || t[6] !== ne || t[7] !== c) {
189
+ if (t[4] !== E || t[5] !== o || t[6] !== w || t[7] !== c) {
190
190
  let e;
191
- t[9] !== T || t[10] !== ne || t[11] !== c ? (e = (e) => {
192
- let { fileDiff: t, filePath: n, fileKey: r, fileVersion: i, collapsed: a } = e, o = ne.filter((e) => e.sectionId === c && e.filePath === n && (e.fenceLanguage ?? "diff") === "diff").reduce((e, n) => {
193
- let r = d(t, n);
191
+ t[9] !== E || t[10] !== w || t[11] !== c ? (e = (e) => {
192
+ let { fileDiff: t, filePath: n, fileKey: r, fileVersion: i, collapsed: a } = e, o = w.filter((e) => e.sectionId === c && e.filePath === n && (e.fenceLanguage ?? "diff") === "diff").reduce((e, n) => {
193
+ let r = l(t, n);
194
194
  return r ? Kt(e, r, {
195
195
  id: n.id,
196
196
  kind: "comment",
@@ -198,7 +198,7 @@ function qt(e) {
198
198
  rangeLabel: n.rangeLabel,
199
199
  text: n.text
200
200
  }) : e;
201
- }, []), s = T?.fileKey === r ? [...o, T.annotation] : o;
201
+ }, []), s = E?.fileKey === r ? [...o, E.annotation] : o;
202
202
  return {
203
203
  id: r,
204
204
  type: "diff",
@@ -207,42 +207,42 @@ function qt(e) {
207
207
  collapsed: a,
208
208
  version: j(`${i}:${a ? "1" : "0"}:${s.flatMap(Yt).join(":")}`)
209
209
  };
210
- }, t[9] = T, t[10] = ne, t[11] = c, t[12] = e) : e = t[12], oe = o.map(e), t[4] = T, t[5] = o, t[6] = ne, t[7] = c, t[8] = oe;
210
+ }, t[9] = E, t[10] = w, t[11] = c, t[12] = e) : e = t[12], oe = o.map(e), t[4] = E, t[5] = o, t[6] = w, t[7] = c, t[8] = oe;
211
211
  } else oe = t[8];
212
212
  let se = oe, ce;
213
- t[13] !== u || t[14] !== T?.annotation || t[15] !== x ? (ce = (e) => {
214
- w(null), T?.annotation.metadata.entries.some((t) => t.id === e) ? (re(null), E("")) : x(u, e);
215
- }, t[13] = u, t[14] = T?.annotation, t[15] = x, t[16] = ce) : ce = t[16];
213
+ t[13] !== d || t[14] !== E?.annotation || t[15] !== ee ? (ce = (e) => {
214
+ T(null), E?.annotation.metadata.entries.some((t) => t.id === e) ? (ne(null), ie("")) : ee(d, e);
215
+ }, t[13] = d, t[14] = E?.annotation, t[15] = ee, t[16] = ce) : ce = t[16];
216
216
  let le = ce, ue;
217
- t[17] !== b || t[18] !== u || t[19] !== T || t[20] !== ae || t[21] !== c || t[22] !== l ? (ue = (e, t) => {
218
- let n = T?.annotation.metadata.entries.find((t) => t.id === e), r = T ? ae.get(T.fileKey) : void 0;
217
+ t[17] !== S || t[18] !== d || t[19] !== E || t[20] !== ae || t[21] !== c || t[22] !== u ? (ue = (e, t) => {
218
+ let n = E?.annotation.metadata.entries.find((t) => t.id === e), r = E ? ae.get(E.fileKey) : void 0;
219
219
  if (!n || !r) return;
220
220
  let i = O({
221
221
  id: n.id,
222
222
  sectionId: c,
223
- sectionTitle: l,
223
+ sectionTitle: u,
224
224
  filePath: r.filePath,
225
225
  fileDiff: r.fileDiff,
226
226
  range: n.range,
227
227
  text: t
228
228
  });
229
- i && b(u, i), w(null), re(null), E("");
230
- }, t[17] = b, t[18] = u, t[19] = T, t[20] = ae, t[21] = c, t[22] = l, t[23] = ue) : ue = t[23];
229
+ i && S(d, i), T(null), ne(null), ie("");
230
+ }, t[17] = S, t[18] = d, t[19] = E, t[20] = ae, t[21] = c, t[22] = u, t[23] = ue) : ue = t[23];
231
231
  let de = ue, fe;
232
- t[24] !== c || t[25] !== l ? (fe = (e, t) => {
232
+ t[24] !== c || t[25] !== u ? (fe = (e, t) => {
233
233
  if (!e) return;
234
234
  let n = t.item;
235
235
  if (n.type !== "diff") return;
236
236
  let r = Mt(), i = M(n.fileDiff), a = O({
237
237
  id: r,
238
238
  sectionId: c,
239
- sectionTitle: l,
239
+ sectionTitle: u,
240
240
  filePath: i,
241
241
  fileDiff: n.fileDiff,
242
242
  range: e,
243
243
  text: ""
244
244
  });
245
- a && (E(""), re({
245
+ a && (ie(""), ne({
246
246
  fileKey: n.id,
247
247
  filePath: i,
248
248
  previousFilePath: gt(n.fileDiff),
@@ -258,7 +258,7 @@ function qt(e) {
258
258
  }] }
259
259
  }
260
260
  }));
261
- }, t[24] = c, t[25] = l, t[26] = fe) : fe = t[26];
261
+ }, t[24] = c, t[25] = u, t[26] = fe) : fe = t[26];
262
262
  let pe = fe, me;
263
263
  t[27] === p ? me = t[28] : (me = p ? { viewerRef: p } : {}, t[27] = p, t[28] = me);
264
264
  let he;
@@ -271,8 +271,8 @@ function qt(e) {
271
271
  t[35] === v ? ve = t[36] : (ve = v ? { renderHeaderMetadata: (e) => e.type === "diff" ? v(e.fileDiff) : null } : {}, t[35] = v, t[36] = ve);
272
272
  let ye;
273
273
  t[37] === g ? ye = t[38] : (ye = g ? { renderCodeViewFooter: g } : {}, t[37] = g, t[38] = ye);
274
- let k = T === null, be = T === null, xe;
275
- t[39] === te ? xe = t[40] : (xe = (e, t) => te(t.id, t.collapsed === !0), t[39] = te, t[40] = xe);
274
+ let k = E === null, be = E === null, xe;
275
+ t[39] === x ? xe = t[40] : (xe = (e, t) => x(t.id, t.collapsed === !0), t[39] = x, t[40] = xe);
276
276
  let Se;
277
277
  t[41] !== pe || t[42] !== f || t[43] !== k || t[44] !== be || t[45] !== xe ? (Se = {
278
278
  ...f,
@@ -282,11 +282,11 @@ function qt(e) {
282
282
  onItemCollapsedChange: xe
283
283
  }, t[41] = pe, t[42] = f, t[43] = k, t[44] = be, t[45] = xe, t[46] = Se) : Se = t[46];
284
284
  let Ce;
285
- t[47] === ee ? Ce = t[48] : (Ce = (e) => e.type === "diff" ? ee(e.fileDiff) : null, t[47] = ee, t[48] = Ce);
285
+ t[47] === y ? Ce = t[48] : (Ce = (e) => e.type === "diff" ? y(e.fileDiff) : null, t[47] = y, t[48] = Ce);
286
286
  let we;
287
- t[49] === y ? we = t[50] : (we = (e) => e.type === "diff" ? y(e.fileDiff, e.id, e.collapsed === !0) : null, t[49] = y, t[50] = we);
287
+ t[49] === b ? we = t[50] : (we = (e) => e.type === "diff" ? b(e.fileDiff, e.id, e.collapsed === !0) : null, t[49] = b, t[50] = we);
288
288
  let A;
289
- t[51] !== a || t[52] !== u || t[53] !== ie || t[54] !== n || t[55] !== r || t[56] !== le || t[57] !== de ? (A = (...e) => {
289
+ t[51] !== a || t[52] !== d || t[53] !== re || t[54] !== n || t[55] !== r || t[56] !== le || t[57] !== de ? (A = (...e) => {
290
290
  let [t] = e, i = t.metadata.entries.some(Jt);
291
291
  return /* @__PURE__ */ I("div", {
292
292
  className: i ? "py-1" : "divide-y divide-border/30 border-y border-border/30",
@@ -295,22 +295,22 @@ function qt(e) {
295
295
  projectId: r,
296
296
  ownerKey: JSON.stringify([
297
297
  n,
298
- u,
298
+ d,
299
299
  a,
300
300
  e.id
301
301
  ]),
302
302
  kind: e.kind,
303
303
  rangeLabel: e.rangeLabel,
304
- text: e.kind === "draft" ? ie : e.text,
305
- onTextChange: E,
304
+ text: e.kind === "draft" ? re : e.text,
305
+ onTextChange: ie,
306
306
  onCancel: () => le(e.id),
307
307
  onComment: (t) => de(e.id, t),
308
308
  onDelete: () => le(e.id)
309
309
  }, e.id))
310
310
  });
311
- }, t[51] = a, t[52] = u, t[53] = ie, t[54] = n, t[55] = r, t[56] = le, t[57] = de, t[58] = A) : A = t[58];
311
+ }, t[51] = a, t[52] = d, t[53] = re, t[54] = n, t[55] = r, t[56] = le, t[57] = de, t[58] = A) : A = t[58];
312
312
  let Te;
313
- return t[59] !== a || t[60] !== se || t[61] !== C || t[62] !== _e || t[63] !== ve || t[64] !== ye || t[65] !== Se || t[66] !== Ce || t[67] !== we || t[68] !== A || t[69] !== me || t[70] !== he || t[71] !== ge ? (Te = /* @__PURE__ */ I(bt, {
313
+ return t[59] !== a || t[60] !== se || t[61] !== te || t[62] !== _e || t[63] !== ve || t[64] !== ye || t[65] !== Se || t[66] !== Ce || t[67] !== we || t[68] !== A || t[69] !== me || t[70] !== he || t[71] !== ge ? (Te = /* @__PURE__ */ I(bt, {
314
314
  ...me,
315
315
  ...he,
316
316
  ...ge,
@@ -318,13 +318,13 @@ function qt(e) {
318
318
  ...ve,
319
319
  ...ye,
320
320
  items: se,
321
- selectedLines: C,
322
- onSelectedLinesChange: w,
321
+ selectedLines: te,
322
+ onSelectedLinesChange: T,
323
323
  options: Se,
324
324
  renderHeaderFilenameSuffix: Ce,
325
325
  renderHeaderPrefix: we,
326
326
  renderAnnotation: A
327
- }, a), t[59] = a, t[60] = se, t[61] = C, t[62] = _e, t[63] = ve, t[64] = ye, t[65] = Se, t[66] = Ce, t[67] = we, t[68] = A, t[69] = me, t[70] = he, t[71] = ge, t[72] = Te) : Te = t[72], Te;
327
+ }, a), t[59] = a, t[60] = se, t[61] = te, t[62] = _e, t[63] = ve, t[64] = ye, t[65] = Se, t[66] = Ce, t[67] = we, t[68] = A, t[69] = me, t[70] = he, t[71] = ge, t[72] = Te) : Te = t[72], Te;
328
328
  }
329
329
  function Jt(e) {
330
330
  return e.kind === "draft";
@@ -390,62 +390,62 @@ var rn = new Intl.Collator(void 0, {
390
390
  sensitivity: "base"
391
391
  }), an = 4;
392
392
  function on(e) {
393
- let t = It(8), { environmentId: n, cwd: i, source: a, baseRef: s, ignoreWhitespace: c, theme: l, previewInput: u, preview: d } = e, p = F(f), m = JSON.stringify([
393
+ let t = It(8), { environmentId: n, cwd: r, source: i, baseRef: a, ignoreWhitespace: o, theme: s, previewInput: c, preview: l } = e, d = F(T), f = JSON.stringify([
394
394
  n,
395
- i,
396
- a?.kind,
397
- a?.baseRef,
398
- a?.headRef,
399
- s,
400
- c
401
- ]), h = un(a), g = h.slice(0, an).map(cn), [_, v] = Ft(() => ({
402
- scope: m,
403
- paths: g
404
- })), ee = _.scope === m ? _.paths : [], y = [.../* @__PURE__ */ new Set([...ee, ...g])];
405
- (_.scope !== m || y.length !== ee.length) && v({
406
- scope: m,
407
- paths: y
395
+ r,
396
+ i?.kind,
397
+ i?.baseRef,
398
+ i?.headRef,
399
+ a,
400
+ o
401
+ ]), p = un(i), m = p.slice(0, an).map(cn), [h, g] = Ft(() => ({
402
+ scope: f,
403
+ paths: m
404
+ })), _ = h.scope === f ? h.paths : [], v = [.../* @__PURE__ */ new Set([..._, ...m])];
405
+ (h.scope !== f || v.length !== _.length) && g({
406
+ scope: f,
407
+ paths: v
408
408
  });
409
- let te = ln({
409
+ let y = ln({
410
410
  environmentId: n,
411
- cwd: i,
412
- source: a,
413
- baseRef: s,
414
- ignoreWhitespace: c,
415
- previewInput: u,
416
- scope: m,
417
- requested: _
418
- }), b = fn(JSON.stringify([l, te.map(V)])), x = o(b), S;
419
- t[0] !== te || t[1] !== p || t[2] !== a ? (S = (e) => {
420
- let t = un(a), n = te.find((n) => {
411
+ cwd: r,
412
+ source: i,
413
+ baseRef: a,
414
+ ignoreWhitespace: o,
415
+ previewInput: c,
416
+ scope: f,
417
+ requested: h
418
+ }), b = fn(JSON.stringify([s, y.map(V)])), x = u(b), S;
419
+ t[0] !== y || t[1] !== d || t[2] !== i ? (S = (e) => {
420
+ let t = un(i), n = y.find((n) => {
421
421
  let { index: r } = n;
422
422
  return t[r]?.path === e;
423
423
  })?.query;
424
- n && p.refresh(n);
425
- }, t[0] = te, t[1] = p, t[2] = a, t[3] = S) : S = t[3];
426
- let ne = Re(S), C;
424
+ n && d.refresh(n);
425
+ }, t[0] = y, t[1] = d, t[2] = i, t[3] = S) : S = t[3];
426
+ let ee = Re(S), C;
427
427
  t[4] === x ? C = t[5] : (C = (e, t) => {
428
428
  let n = x.get(t);
429
429
  return !n || n._tag === "Initial";
430
430
  }, t[4] = x, t[5] = C);
431
- let w = h.findIndex(C), T = a ? w < 0 ? h.length : w : d?.kind === "files" ? d.files.length : 0, re = (e) => v((t) => {
432
- let n = t.scope === m ? t.paths : [], r = e.flatMap((e) => {
433
- let t = h[e]?.path;
431
+ let w = p.findIndex(C), te = i ? w < 0 ? p.length : w : l?.kind === "files" ? l.files.length : 0, E = (e) => g((t) => {
432
+ let n = t.scope === f ? t.paths : [], r = e.flatMap((e) => {
433
+ let t = p[e]?.path;
434
434
  return t !== void 0 && !n.includes(t) ? [t] : [];
435
435
  });
436
436
  return r.length === 0 ? t : {
437
- scope: m,
437
+ scope: f,
438
438
  paths: [...n, ...r]
439
439
  };
440
- }), ie = () => {
441
- te.some((e) => {
440
+ }), ne = () => {
441
+ y.some((e) => {
442
442
  let { index: t } = e;
443
- return t === T;
444
- }) || re(Array.from({ length: 4 }, (e, t) => T + t));
445
- }, E = (e) => re([h.findIndex((t) => t.path === e)]), D = a ? h.flatMap((e, t) => {
446
- let n = x.get(t), i = n && oe(r(n));
447
- if (i?.patch?.kind === "files") {
448
- let t = i.patch.files.filter((t) => M(t) === e.path);
443
+ return t === te;
444
+ }) || E(Array.from({ length: 4 }, (e, t) => te + t));
445
+ }, ie = (e) => E([p.findIndex((t) => t.path === e)]), D = i ? p.flatMap((e, t) => {
446
+ let n = x.get(t), r = n && oe(re(n));
447
+ if (r?.patch?.kind === "files") {
448
+ let t = r.patch.files.filter((t) => M(t) === e.path);
449
449
  if (t.length > 0) return t;
450
450
  }
451
451
  return [{
@@ -460,9 +460,9 @@ function on(e) {
460
460
  splitLineCount: 0,
461
461
  unifiedLineCount: 0,
462
462
  isPartial: !0,
463
- cacheKey: `${m}:${e.path}:pending`
463
+ cacheKey: `${f}:${e.path}:pending`
464
464
  }];
465
- }) : (d?.kind === "files" ? d.files : []).toSorted(sn), O;
465
+ }) : (l?.kind === "files" ? l.files : []).toSorted(sn), O;
466
466
  return t[6] === x ? O = t[7] : (O = (e, t) => {
467
467
  let n = x.get(t);
468
468
  return [e.path, {
@@ -470,13 +470,13 @@ function on(e) {
470
470
  truncated: n?._tag === "Success" && n.value.source.truncated
471
471
  }];
472
472
  }, t[6] = x, t[7] = O), {
473
- fileStates: new Map(h.map(O)),
473
+ fileStates: new Map(p.map(O)),
474
474
  isPending: [...x.values()].some(B),
475
- retry: ne,
476
- requestFile: E,
475
+ retry: ee,
476
+ requestFile: ie,
477
477
  renderableFiles: D,
478
- remainingFileCount: a ? h.length - T : 0,
479
- loadNextFiles: ie
478
+ remainingFileCount: i ? p.length - te : 0,
479
+ loadNextFiles: ne
480
480
  };
481
481
  }
482
482
  function B(e) {
@@ -526,9 +526,9 @@ function ln({ environmentId: e, cwd: t, source: n, baseRef: r, ignoreWhitespace:
526
526
  function un(e) {
527
527
  return e?.files?.toSorted((e, t) => rn.compare(e.path, t.path)) ?? [];
528
528
  }
529
- var dn = u((e) => {
530
- let [t, r] = JSON.parse(e);
531
- return n(Qe.diffFilePatch(r), (e) => ie(e, (e) => {
529
+ var dn = y((e) => {
530
+ let [t, n] = JSON.parse(e);
531
+ return S(Qe.diffFilePatch(n), (e) => g(e, (e) => {
532
532
  let n = ht(e.diff, `diff-panel:${t}`, { compactPartialHunkOffsets: !0 });
533
533
  if (n?.kind === "files" && n.files.length === 1 && e.files?.length === 1) {
534
534
  let t = e.files[0], r = {
@@ -545,35 +545,35 @@ var dn = u((e) => {
545
545
  patch: n
546
546
  };
547
547
  }));
548
- }), fn = u((e) => {
548
+ }), fn = y((e) => {
549
549
  let [t, n] = JSON.parse(e), r = n.map(([e, n]) => [e, dn(JSON.stringify([t, n]))]);
550
- return y((e) => new Map(r.map(([t, n]) => [t, e(n)])));
550
+ return m((e) => new Map(r.map(([t, n]) => [t, e(n)])));
551
551
  });
552
552
  // src/components/diffs/DiffFileLoadingBoundary.tsx
553
553
  function pn(e) {
554
- let t = It(13), { load: n, count: r } = e, i = g(), [a, o] = Ft(!1), s = Re(n), c;
555
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = (e) => {
556
- if (e) return Ke(e, (e) => o(e.isIntersecting), { rootMargin: "600px" });
557
- }, t[0] = c) : c = t[0];
558
- let l = c, u, d;
559
- t[1] !== r || t[2] !== a || t[3] !== s ? (u = () => {
560
- a && r > 0 && s();
561
- }, d = [
562
- a,
563
- r,
564
- s
565
- ], t[1] = r, t[2] = a, t[3] = s, t[4] = u, t[5] = d) : (u = t[4], d = t[5]), Nt(u, d);
566
- let f;
567
- t[6] === i ? f = t[7] : (f = i("Loading diff…"), t[6] = i, t[7] = f);
554
+ let t = It(13), { load: r, count: i } = e, a = n(), [o, s] = Ft(!1), c = Re(r), l;
555
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (l = (e) => {
556
+ if (e) return Ke(e, (e) => s(e.isIntersecting), { rootMargin: "600px" });
557
+ }, t[0] = l) : l = t[0];
558
+ let u = l, d, f;
559
+ t[1] !== i || t[2] !== o || t[3] !== c ? (d = () => {
560
+ o && i > 0 && c();
561
+ }, f = [
562
+ o,
563
+ i,
564
+ c
565
+ ], t[1] = i, t[2] = o, t[3] = c, t[4] = d, t[5] = f) : (d = t[4], f = t[5]), Nt(d, f);
568
566
  let p;
569
- t[8] === r ? p = t[9] : (p = Array.from({ length: Math.min(r, 4) }, mn), t[8] = r, t[9] = p);
567
+ t[6] === a ? p = t[7] : (p = a("Loading diff…"), t[6] = a, t[7] = p);
570
568
  let m;
571
- return t[10] !== f || t[11] !== p ? (m = /* @__PURE__ */ I("div", {
572
- ref: l,
569
+ t[8] === i ? m = t[9] : (m = Array.from({ length: Math.min(i, 4) }, mn), t[8] = i, t[9] = m);
570
+ let h;
571
+ return t[10] !== p || t[11] !== m ? (h = /* @__PURE__ */ I("div", {
572
+ ref: u,
573
573
  role: "status",
574
- "aria-label": f,
575
- children: p
576
- }), t[10] = f, t[11] = p, t[12] = m) : m = t[12], m;
574
+ "aria-label": p,
575
+ children: m
576
+ }), t[10] = p, t[11] = m, t[12] = h) : h = t[12], h;
577
577
  }
578
578
  function mn(e, t) {
579
579
  return /* @__PURE__ */ I("div", {
@@ -584,77 +584,77 @@ function mn(e, t) {
584
584
  }
585
585
  // src/components/diffs/DiffFileStatus.tsx
586
586
  function hn(e) {
587
- let t = It(22), { error: n, truncated: r, retry: i } = e, a = g();
588
- if (!n && !r) return null;
589
- let o;
590
- t[0] !== n || t[1] !== a ? (o = a(n ? "Retry loading diff" : "Partial diff preview"), t[0] = n, t[1] = a, t[2] = o) : o = t[2];
587
+ let t = It(22), { error: r, truncated: i, retry: a } = e, o = n();
588
+ if (!r && !i) return null;
591
589
  let s;
592
- t[3] !== n || t[4] !== i ? (s = (e) => {
593
- e.stopPropagation(), n && i();
594
- }, t[3] = n, t[4] = i, t[5] = s) : s = t[5];
590
+ t[0] !== r || t[1] !== o ? (s = o(r ? "Retry loading diff" : "Partial diff preview"), t[0] = r, t[1] = o, t[2] = s) : s = t[2];
595
591
  let c;
596
- t[6] !== o || t[7] !== s ? (c = /* @__PURE__ */ I(b, {
592
+ t[3] !== r || t[4] !== a ? (c = (e) => {
593
+ e.stopPropagation(), r && a();
594
+ }, t[3] = r, t[4] = a, t[5] = c) : c = t[5];
595
+ let l;
596
+ t[6] !== s || t[7] !== c ? (l = /* @__PURE__ */ I(x, {
597
597
  size: "icon-micro",
598
598
  variant: "ghost-muted",
599
- "aria-label": o,
600
- onClick: s
601
- }), t[6] = o, t[7] = s, t[8] = c) : c = t[8];
602
- let l;
603
- t[9] === n ? l = t[10] : (l = I(n ? A : ye, { className: "size-3" }), t[9] = n, t[10] = l);
599
+ "aria-label": s,
600
+ onClick: c
601
+ }), t[6] = s, t[7] = c, t[8] = l) : l = t[8];
604
602
  let u;
605
- t[11] !== c || t[12] !== l ? (u = /* @__PURE__ */ I(D, {
606
- render: c,
607
- children: l
608
- }), t[11] = c, t[12] = l, t[13] = u) : u = t[13];
603
+ t[9] === r ? u = t[10] : (u = I(r ? A : ye, { className: "size-3" }), t[9] = r, t[10] = u);
609
604
  let d;
610
- t[14] !== n || t[15] !== a ? (d = a(n ? "Retry loading diff" : "This file is too large to show in full. Counts include all changes."), t[14] = n, t[15] = a, t[16] = d) : d = t[16];
605
+ t[11] !== l || t[12] !== u ? (d = /* @__PURE__ */ I(D, {
606
+ render: l,
607
+ children: u
608
+ }), t[11] = l, t[12] = u, t[13] = d) : d = t[13];
611
609
  let f;
612
- t[17] === d ? f = t[18] : (f = /* @__PURE__ */ I(S, { children: d }), t[17] = d, t[18] = f);
610
+ t[14] !== r || t[15] !== o ? (f = o(r ? "Retry loading diff" : "This file is too large to show in full. Counts include all changes."), t[14] = r, t[15] = o, t[16] = f) : f = t[16];
613
611
  let p;
614
- return t[19] !== u || t[20] !== f ? (p = /* @__PURE__ */ L(C, { children: [u, f] }), t[19] = u, t[20] = f, t[21] = p) : p = t[21], p;
612
+ t[17] === f ? p = t[18] : (p = /* @__PURE__ */ I(C, { children: f }), t[17] = f, t[18] = p);
613
+ let m;
614
+ return t[19] !== d || t[20] !== p ? (m = /* @__PURE__ */ L(w, { children: [d, p] }), t[19] = d, t[20] = p, t[21] = m) : m = t[21], m;
615
615
  }
616
616
  // src/components/DiffPanel.tsx
617
617
  var gn = "__automatic_base_ref__", _n = "hanzodev.diffFileTreeOpen", vn = /* @__PURE__ */ new Set();
618
618
  function yn(e) {
619
- let t = It(28), { filePath: n, fileKey: r, collapsed: i, onToggle: a, load: o } = e, s = g(), c;
620
- t[0] !== i || t[1] !== n || t[2] !== s ? (c = s(i ? "Expand {path}" : "Collapse {path}", { path: n }), t[0] = i, t[1] = n, t[2] = s, t[3] = c) : c = t[3];
621
- let l = !i, u;
622
- t[4] === o ? u = t[5] : (u = (e) => {
623
- if (e && o) return Ke(e, (e) => {
624
- e.isIntersecting && o();
619
+ let t = It(28), { filePath: r, fileKey: i, collapsed: a, onToggle: o, load: s } = e, c = n(), l;
620
+ t[0] !== a || t[1] !== r || t[2] !== c ? (l = c(a ? "Expand {path}" : "Collapse {path}", { path: r }), t[0] = a, t[1] = r, t[2] = c, t[3] = l) : l = t[3];
621
+ let u = !a, d;
622
+ t[4] === s ? d = t[5] : (d = (e) => {
623
+ if (e && s) return Ke(e, (e) => {
624
+ e.isIntersecting && s();
625
625
  }, { rootMargin: "600px" });
626
- }, t[4] = o, t[5] = u);
627
- let d;
628
- t[6] !== r || t[7] !== a ? (d = (e) => {
629
- e.stopPropagation(), a(r);
630
- }, t[6] = r, t[7] = a, t[8] = d) : d = t[8];
626
+ }, t[4] = s, t[5] = d);
631
627
  let f;
632
- t[9] !== r || t[10] !== c || t[11] !== l || t[12] !== u || t[13] !== d ? (f = /* @__PURE__ */ I(b, {
628
+ t[6] !== i || t[7] !== o ? (f = (e) => {
629
+ e.stopPropagation(), o(i);
630
+ }, t[6] = i, t[7] = o, t[8] = f) : f = t[8];
631
+ let p;
632
+ t[9] !== i || t[10] !== l || t[11] !== u || t[12] !== d || t[13] !== f ? (p = /* @__PURE__ */ I(x, {
633
633
  size: "icon-micro",
634
634
  variant: "ghost",
635
635
  className: "-ms-0.5",
636
- "aria-label": c,
637
- "aria-expanded": l,
638
- ref: u,
639
- "data-diff-file-key": r,
640
- onClick: d
641
- }), t[9] = r, t[10] = c, t[11] = l, t[12] = u, t[13] = d, t[14] = f) : f = t[14];
642
- let p;
643
- t[15] === i ? p = t[16] : (p = I(i ? pe : he, { className: "size-4 text-muted-foreground/80" }), t[15] = i, t[16] = p);
636
+ "aria-label": l,
637
+ "aria-expanded": u,
638
+ ref: d,
639
+ "data-diff-file-key": i,
640
+ onClick: f
641
+ }), t[9] = i, t[10] = l, t[11] = u, t[12] = d, t[13] = f, t[14] = p) : p = t[14];
644
642
  let m;
645
- t[17] !== f || t[18] !== p ? (m = /* @__PURE__ */ I(D, {
646
- render: f,
647
- children: p
648
- }), t[17] = f, t[18] = p, t[19] = m) : m = t[19];
643
+ t[15] === a ? m = t[16] : (m = I(a ? pe : he, { className: "size-4 text-muted-foreground/80" }), t[15] = a, t[16] = m);
649
644
  let h;
650
- t[20] !== i || t[21] !== s ? (h = s(i ? "Expand diff" : "Collapse diff"), t[20] = i, t[21] = s, t[22] = h) : h = t[22];
645
+ t[17] !== p || t[18] !== m ? (h = /* @__PURE__ */ I(D, {
646
+ render: p,
647
+ children: m
648
+ }), t[17] = p, t[18] = m, t[19] = h) : h = t[19];
649
+ let g;
650
+ t[20] !== a || t[21] !== c ? (g = c(a ? "Expand diff" : "Collapse diff"), t[20] = a, t[21] = c, t[22] = g) : g = t[22];
651
651
  let _;
652
- t[23] === h ? _ = t[24] : (_ = /* @__PURE__ */ I(S, {
652
+ t[23] === g ? _ = t[24] : (_ = /* @__PURE__ */ I(C, {
653
653
  side: "top",
654
- children: h
655
- }), t[23] = h, t[24] = _);
654
+ children: g
655
+ }), t[23] = g, t[24] = _);
656
656
  let v;
657
- return t[25] !== m || t[26] !== _ ? (v = /* @__PURE__ */ L(C, { children: [m, _] }), t[25] = m, t[26] = _, t[27] = v) : v = t[27], v;
657
+ return t[25] !== h || t[26] !== _ ? (v = /* @__PURE__ */ L(w, { children: [h, _] }), t[25] = h, t[26] = _, t[27] = v) : v = t[27], v;
658
658
  }
659
659
  function bn(e) {
660
660
  let t = It(12), { filePath: n, workspaceRoot: r, hasStat: i, error: a, truncated: o, onRetry: s } = e, c;
@@ -676,14 +676,14 @@ function bn(e) {
676
676
  return t[9] !== c || t[10] !== l ? (u = /* @__PURE__ */ L(Lt, { children: [c, l] }), t[9] = c, t[10] = l, t[11] = u) : u = t[11], u;
677
677
  }
678
678
  function H(e) {
679
- let t = It(271), { mode: n, composerDraftTarget: r, workspaceMutationId: i, visible: u } = e, d = n === void 0 ? "inline" : n, f = g(), y = re(), ie = Be(), O = Fe(Pn), oe = O.diffLayout, [pe, ye] = Ft(null), k = pe ?? O.wordWrap, A = Ye(Nn) ?? O.diffIgnoreWhitespace, [Pe, Ie] = T(_n, !1, ae), [Ke, ot] = kt(), [j, gt] = Ft(""), [bt, St] = Ft(null), N = Le(), Tt = N?.threadId ?? null, P = ue(N), Mt = Ve(P?.environmentId ?? null, y), { canReadFiles: F } = Mt, Rt = P?.projectId ?? null, zt;
679
+ let t = It(271), { mode: i, composerDraftTarget: l, workspaceMutationId: m, visible: g } = e, y = i === void 0 ? "inline" : i, S = n(), T = h(), re = Be(), O = Fe(Pn), oe = O.diffLayout, [pe, ye] = Ft(null), k = pe ?? O.wordWrap, A = Ye(Nn) ?? O.diffIgnoreWhitespace, [Pe, Ie] = ne(_n, !1, ae), [Ke, ot] = kt(), [j, gt] = Ft(""), [bt, St] = Ft(null), N = Le(), Tt = N?.threadId ?? null, P = ue(N), Mt = Ve(P?.environmentId ?? null, T), { canReadFiles: F } = Mt, Rt = P?.projectId ?? null, zt;
680
680
  t[0] !== Rt || t[1] !== P ? (zt = P && Rt ? {
681
681
  environmentId: P.environmentId,
682
682
  projectId: Rt
683
683
  } : null, t[0] = Rt, t[1] = P, t[2] = zt) : zt = t[2];
684
684
  let Vt = de(zt), R = P?.worktreePath ?? Vt?.workspaceRoot, Ut;
685
685
  t[3] === P?.environmentId ? Ut = t[4] : (Ut = se.configValueAtom(P?.environmentId ?? null), t[3] = P?.environmentId, t[4] = Ut);
686
- let Wt = o(Ut), Gt = ct(P?.environmentId ?? null), Kt;
686
+ let Wt = u(Ut), Gt = ct(P?.environmentId ?? null), Kt;
687
687
  t[5] === Wt?.availableEditors ? Kt = t[6] : (Kt = Wt?.availableEditors ?? [], t[5] = Wt?.availableEditors, t[6] = Kt);
688
688
  let Jt = Ge(P?.environmentId ?? null, Kt), Yt = ze(Qe.diffFileContents), Xt;
689
689
  t[7] !== R || t[8] !== P ? (Xt = P != null && R != null ? it.status({
@@ -739,24 +739,24 @@ function H(e) {
739
739
  } : void 0, rr = fn && V && P != null && R != null, q = He(nr && P ? st(Qe.diffPreview({
740
740
  environmentId: P.environmentId,
741
741
  input: nr
742
- }), rr ? i : void 0) : null, y), ir;
743
- t[42] !== R || t[43] !== P || t[44] !== F || t[45] !== fn || t[46] !== an || t[47] !== u ? (ir = u && fn && F && P && R ? Qe.branchCommits({
742
+ }), rr ? m : void 0) : null, T), ir;
743
+ t[42] !== R || t[43] !== P || t[44] !== F || t[45] !== fn || t[46] !== an || t[47] !== g ? (ir = g && fn && F && P && R ? Qe.branchCommits({
744
744
  environmentId: P.environmentId,
745
745
  input: {
746
746
  cwd: R,
747
747
  ...an ? { baseRef: an } : {}
748
748
  }
749
- }) : null, t[42] = R, t[43] = P, t[44] = F, t[45] = fn, t[46] = an, t[47] = u, t[48] = ir) : ir = t[48];
750
- let ar = He(ir, y), or = bt ?? ar.data, sr = N ? `${N.environmentId}:${N.threadId}` : null, J = q.data?.sources.find((e) => e.kind === (Rn === "unstaged" ? "working-tree" : Rn === "commit" ? "commit" : "branch-range")), cr = J?.headRef ?? Zt.data?.refName ?? "HEAD", lr = J?.baseRef ?? W ?? f("Automatic", { $context: "compare against the default base ref" }), ur = U !== null && J?.headRef === U ? J.commitSubject : void 0, dr = U === null ? f(Rn === "unstaged" ? "Uncommitted" : "Changes") : ur ?? f("Commit {sha}", { sha: U.slice(0, 7) }), fr = f("Turn {count}", { count: Hn ?? "?" }), pr = B ? f("Tool call") : Ln === null ? U === null ? dr : ur ?? f("Commit", { $context: "a git commit" }) : G?.runId === Un?.runId ? f("Latest turn") : fr, mr = B ? f("Tool call") : G ? fr : dr, Y = Ln === null ? U : null, hr;
749
+ }) : null, t[42] = R, t[43] = P, t[44] = F, t[45] = fn, t[46] = an, t[47] = g, t[48] = ir) : ir = t[48];
750
+ let ar = He(ir, T), or = bt ?? ar.data, sr = N ? `${N.environmentId}:${N.threadId}` : null, J = q.data?.sources.find((e) => e.kind === (Rn === "unstaged" ? "working-tree" : Rn === "commit" ? "commit" : "branch-range")), cr = J?.headRef ?? Zt.data?.refName ?? "HEAD", lr = J?.baseRef ?? W ?? S("Automatic", { $context: "compare against the default base ref" }), ur = U !== null && J?.headRef === U ? J.commitSubject : void 0, dr = U === null ? S(Rn === "unstaged" ? "Uncommitted" : "Changes") : ur ?? S("Commit {sha}", { sha: U.slice(0, 7) }), fr = S("Turn {count}", { count: Hn ?? "?" }), pr = B ? S("Tool call") : Ln === null ? U === null ? dr : ur ?? S("Commit", { $context: "a git commit" }) : G?.runId === Un?.runId ? S("Latest turn") : fr, mr = B ? S("Tool call") : G ? fr : dr, Y = Ln === null ? U : null, hr;
751
751
  t[49] !== Vt?.repositoryIdentity || t[50] !== Y ? (hr = Y === null ? null : Xe(Vt?.repositoryIdentity, Y), t[49] = Vt?.repositoryIdentity, t[50] = Y, t[51] = hr) : hr = t[51];
752
752
  let gr = hr, _r = et(N), vr;
753
753
  t[52] === _r ? vr = t[53] : (vr = (e, t) => {
754
754
  e.stopPropagation(), !(e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button === 1) && (e.preventDefault(), _r(t, { event: e }));
755
755
  }, t[52] = _r, t[53] = vr);
756
- let yr = vr, br = q.refresh, xr = br, Sr = q.data, Cr = J?.diff, wr = B && dn?.type === "file_change" ? Ht(dn, y) : null, Tr = B ? wr?.patch : G ? tr.data?.diff : Cr, Er = wr?.truncated === !0 || V && J?.truncated === !0 || !B && G !== void 0 && Tr?.endsWith("\n\n[truncated]") === !0, Dr = B ? un : G ? tr : q, Or = Dr.isPending && (Dr.data === null || V && Sr?.incomplete === !0 && J?.files?.length === 0), kr = B ? un.error : G ? tr.error : q.error, Ar = typeof Tr == "string" && Tr.trim().length === 0 && !Sr?.incomplete && (!J?.patchesDeferred || J.files?.length === 0), jr = V && (J?.truncated || J?.patchesDeferred) && J.files?.length ? J : null, X = ht(jr ? void 0 : Tr, `diff-panel:${ie}`, {
756
+ let yr = vr, br = q.refresh, xr = br, Sr = q.data, Cr = J?.diff, wr = B && dn?.type === "file_change" ? Ht(dn, T) : null, Tr = B ? wr?.patch : G ? tr.data?.diff : Cr, Er = wr?.truncated === !0 || V && J?.truncated === !0 || !B && G !== void 0 && Tr?.endsWith("\n\n[truncated]") === !0, Dr = B ? un : G ? tr : q, Or = Dr.isPending && (Dr.data === null || V && Sr?.incomplete === !0 && J?.files?.length === 0), kr = B ? un.error : G ? tr.error : q.error, Ar = typeof Tr == "string" && Tr.trim().length === 0 && !Sr?.incomplete && (!J?.patchesDeferred || J.files?.length === 0), jr = V && (J?.truncated || J?.patchesDeferred) && J.files?.length ? J : null, X = ht(jr ? void 0 : Tr, `diff-panel:${re}`, {
757
757
  compactPartialHunkOffsets: V,
758
758
  ...B ? { ignoreWhitespace: A } : {}
759
- }, y), Mr = B && dn?.type === "file_change" ? dn.changes?.length ?? 0 : 0, Nr = X?.kind === "files" ? Math.max(0, Mr - X.files.length) : 0, Pr = new Map(jr?.files?.map(An)), Fr = V && J?.files ? J.files.reduce(kn, {
759
+ }, T), Mr = B && dn?.type === "file_change" ? dn.changes?.length ?? 0 : 0, Nr = X?.kind === "files" ? Math.max(0, Mr - X.files.length) : 0, Pr = new Map(jr?.files?.map(An)), Fr = V && J?.files ? J.files.reduce(kn, {
760
760
  additions: 0,
761
761
  deletions: 0
762
762
  }) : null, Ir = V && P && Sr && J && F ? vt(Yt, {
@@ -767,7 +767,7 @@ function H(e) {
767
767
  headRef: J.headRef,
768
768
  cacheKey: J.diffHash
769
769
  }) : void 0, Lr = Re(async (e) => {
770
- if (!Ir) throw Error(f("Diff file contents are unavailable for this selection."));
770
+ if (!Ir) throw Error(S("Diff file contents are unavailable for this selection."));
771
771
  return Ir(e);
772
772
  }), Rr = F && rr && Rn === "branch", zr = q.data?.cwd ?? R, Br;
773
773
  t[54] !== P || t[55] !== j || t[56] !== zr || t[57] !== Rr ? (Br = Rr && P && zr ? it.listRefs({
@@ -799,14 +799,14 @@ function H(e) {
799
799
  source: jr,
800
800
  baseRef: U === null ? jr?.baseRef ?? W : W,
801
801
  ignoreWhitespace: A,
802
- theme: ie,
802
+ theme: re,
803
803
  previewInput: nr,
804
804
  preview: X
805
805
  }), ni = br, ri = `diff:${sr ?? ""}`, ii;
806
806
  t[66] !== q.data || t[67] !== q.dataUpdatedAt || t[68] !== q.isPending || t[69] !== ni ? (ii = q.data !== null && !q.isPending ? () => {
807
807
  Date.now() - q.dataUpdatedAt < 1e4 || ni();
808
808
  } : null, t[66] = q.data, t[67] = q.dataUpdatedAt, t[68] = q.isPending, t[69] = ni, t[70] = ii) : ii = t[70];
809
- let ai = u && F && rr, oi;
809
+ let ai = g && F && rr, oi;
810
810
  t[71] !== ri || t[72] !== ai ? (oi = {
811
811
  enabled: ai,
812
812
  key: ri,
@@ -899,13 +899,13 @@ function H(e) {
899
899
  openInEditor: (e) => {
900
900
  (async () => {
901
901
  let t = await Jt(e);
902
- t._tag === "Failure" && !ne(t) && console.warn("Failed to open diff file in editor.", {
902
+ t._tag === "Failure" && !ee(t) && console.warn("Failed to open diff file in editor.", {
903
903
  operation: "open-diff-file",
904
904
  ...N ? {
905
905
  environmentId: N.environmentId,
906
906
  threadId: N.threadId
907
907
  } : {},
908
- ...x(_(t))
908
+ ...te(r(t))
909
909
  });
910
910
  })();
911
911
  }
@@ -955,16 +955,16 @@ function H(e) {
955
955
  }
956
956
  }, t[123] = Un, t[124] = H, t[125] = N, t[126] = Yi, t[127] = qi, t[128] = $i, t[129] = ta) : ta = t[129];
957
957
  let na = ta, ra;
958
- t[130] === Symbol.for("react.memo_cache_sentinel") ? (ra = /* @__PURE__ */ I(b, {
958
+ t[130] === Symbol.for("react.memo_cache_sentinel") ? (ra = /* @__PURE__ */ I(x, {
959
959
  size: "xs",
960
960
  variant: "secondary"
961
961
  }), t[130] = ra) : ra = t[130];
962
962
  let ia = Y !== null && "min-w-0 shrink", aa;
963
- t[131] === ia ? aa = t[132] : (aa = w("max-w-full", ia), t[131] = ia, t[132] = aa);
963
+ t[131] === ia ? aa = t[132] : (aa = E("max-w-full", ia), t[131] = ia, t[132] = aa);
964
964
  let oa;
965
965
  t[133] === Symbol.for("react.memo_cache_sentinel") ? (oa = /* @__PURE__ */ I(he, { className: "size-3.5 shrink-0 opacity-70" }), t[133] = oa) : oa = t[133];
966
966
  let sa;
967
- t[134] !== Y || t[135] !== yr || t[136] !== gr ? (sa = Y === null ? null : gr ? /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, {
967
+ t[134] !== Y || t[135] !== yr || t[136] !== gr ? (sa = Y === null ? null : gr ? /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, {
968
968
  render: /* @__PURE__ */ I("a", {
969
969
  href: gr,
970
970
  target: "_blank",
@@ -973,7 +973,7 @@ function H(e) {
973
973
  onClick: (e) => yr(e, gr)
974
974
  }),
975
975
  children: Y.slice(0, 7)
976
- }), /* @__PURE__ */ I(S, {
976
+ }), /* @__PURE__ */ I(C, {
977
977
  side: "top",
978
978
  children: gr
979
979
  })] }) : /* @__PURE__ */ I("span", {
@@ -981,25 +981,25 @@ function H(e) {
981
981
  children: Y.slice(0, 7)
982
982
  }), t[134] = Y, t[135] = yr, t[136] = gr, t[137] = sa) : sa = t[137];
983
983
  let ca;
984
- t[138] === Symbol.for("react.memo_cache_sentinel") ? (ca = /* @__PURE__ */ I(p, {
984
+ t[138] === Symbol.for("react.memo_cache_sentinel") ? (ca = /* @__PURE__ */ I(d, {
985
985
  value: "branch",
986
986
  closeOnClick: !0,
987
- children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(E, { children: "Changes" }) })
987
+ children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(b, { children: "Changes" }) })
988
988
  }), t[138] = ca) : ca = t[138];
989
989
  let la;
990
- t[139] === Symbol.for("react.memo_cache_sentinel") ? (la = /* @__PURE__ */ I(p, {
990
+ t[139] === Symbol.for("react.memo_cache_sentinel") ? (la = /* @__PURE__ */ I(d, {
991
991
  value: "unstaged",
992
992
  closeOnClick: !0,
993
- children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(E, { children: "Uncommitted" }) })
993
+ children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(b, { children: "Uncommitted" }) })
994
994
  }), t[139] = la) : la = t[139];
995
995
  let ua;
996
- t[140] === Symbol.for("react.memo_cache_sentinel") ? (ua = /* @__PURE__ */ I(p, {
996
+ t[140] === Symbol.for("react.memo_cache_sentinel") ? (ua = /* @__PURE__ */ I(d, {
997
997
  value: "latest",
998
998
  closeOnClick: !0,
999
- children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(E, { children: "Latest turn" }) })
999
+ children: /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(b, { children: "Latest turn" }) })
1000
1000
  }), t[140] = ua) : ua = t[140];
1001
1001
  let da;
1002
- t[141] !== na || t[142] !== ea ? (da = /* @__PURE__ */ L(l, {
1002
+ t[141] !== na || t[142] !== ea ? (da = /* @__PURE__ */ L(c, {
1003
1003
  value: ea,
1004
1004
  onValueChange: na,
1005
1005
  children: [
@@ -1009,7 +1009,7 @@ function H(e) {
1009
1009
  ]
1010
1010
  }), t[141] = na, t[142] = ea, t[143] = da) : da = t[143];
1011
1011
  let fa;
1012
- t[144] === Symbol.for("react.memo_cache_sentinel") ? (fa = /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(E, {
1012
+ t[144] === Symbol.for("react.memo_cache_sentinel") ? (fa = /* @__PURE__ */ I(v, { children: /* @__PURE__ */ I(b, {
1013
1013
  context: "agent turn",
1014
1014
  children: "Turn"
1015
1015
  }) }), t[144] = fa) : fa = t[144];
@@ -1018,12 +1018,12 @@ function H(e) {
1018
1018
  let e;
1019
1019
  t[148] === O.timestampFormat ? e = t[149] : (e = (e) => {
1020
1020
  let t = e.checkpointTurnCount;
1021
- return /* @__PURE__ */ I(p, {
1021
+ return /* @__PURE__ */ I(d, {
1022
1022
  value: `turn:${e.runId}`,
1023
1023
  closeOnClick: !0,
1024
1024
  children: /* @__PURE__ */ L("span", {
1025
1025
  className: "flex items-center gap-2",
1026
- children: [/* @__PURE__ */ I("span", { children: /* @__PURE__ */ L(E, { children: ["Turn ", /* @__PURE__ */ I(te, { children: t })] }) }), /* @__PURE__ */ I("span", {
1026
+ children: [/* @__PURE__ */ I("span", { children: /* @__PURE__ */ L(b, { children: ["Turn ", /* @__PURE__ */ I(ie, { children: t })] }) }), /* @__PURE__ */ I("span", {
1027
1027
  className: "ml-auto text-xs tabular-nums text-muted-foreground",
1028
1028
  children: Ue(e.completedAt, O.timestampFormat)
1029
1029
  })]
@@ -1032,7 +1032,7 @@ function H(e) {
1032
1032
  }, t[148] = O.timestampFormat, t[149] = e), pa = H.map(e), t[145] = H, t[146] = O.timestampFormat, t[147] = pa;
1033
1033
  } else pa = t[147];
1034
1034
  let ma;
1035
- t[150] !== na || t[151] !== Qi || t[152] !== pa ? (ma = /* @__PURE__ */ L(c, { children: [fa, /* @__PURE__ */ I(v, { children: /* @__PURE__ */ I(l, {
1035
+ t[150] !== na || t[151] !== Qi || t[152] !== pa ? (ma = /* @__PURE__ */ L(s, { children: [fa, /* @__PURE__ */ I(_, { children: /* @__PURE__ */ I(c, {
1036
1036
  value: Qi,
1037
1037
  onValueChange: na,
1038
1038
  children: pa
@@ -1042,14 +1042,14 @@ function H(e) {
1042
1042
  St(e ? ar.data ?? null : null), e && ar.refresh();
1043
1043
  }, t[154] = ar, t[155] = ha);
1044
1044
  let ga;
1045
- t[156] === Symbol.for("react.memo_cache_sentinel") ? (ga = /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(E, { children: "Commits" }) }), t[156] = ga) : ga = t[156];
1045
+ t[156] === Symbol.for("react.memo_cache_sentinel") ? (ga = /* @__PURE__ */ I(v, { children: /* @__PURE__ */ I(b, { children: "Commits" }) }), t[156] = ga) : ga = t[156];
1046
1046
  let _a;
1047
- t[157] !== Vt?.repositoryIdentity || t[158] !== or?.commits || t[159] !== f || t[160] !== y || t[161] !== yr || t[162] !== U ? (_a = or?.commits.map((e) => {
1047
+ t[157] !== Vt?.repositoryIdentity || t[158] !== or?.commits || t[159] !== S || t[160] !== T || t[161] !== yr || t[162] !== U ? (_a = or?.commits.map((e) => {
1048
1048
  let t = Xe(Vt?.repositoryIdentity, e.sha);
1049
1049
  return /* @__PURE__ */ L("div", {
1050
- className: w("flex items-center rounded-sm hover:bg-accent has-data-highlighted:bg-accent has-focus-visible:bg-accent [&_[data-checked]]:bg-transparent [&_[data-highlighted]]:bg-transparent", U === e.sha && "bg-foreground/[0.08]"),
1051
- children: [/* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, {
1052
- render: /* @__PURE__ */ I(p, {
1050
+ className: E("flex items-center rounded-sm hover:bg-accent has-data-highlighted:bg-accent has-focus-visible:bg-accent [&_[data-checked]]:bg-transparent [&_[data-highlighted]]:bg-transparent", U === e.sha && "bg-foreground/[0.08]"),
1051
+ children: [/* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, {
1052
+ render: /* @__PURE__ */ I(d, {
1053
1053
  className: "min-w-0 flex-1",
1054
1054
  value: `commit:${e.sha}`,
1055
1055
  closeOnClick: !0
@@ -1061,20 +1061,20 @@ function H(e) {
1061
1061
  children: e.subject
1062
1062
  }), /* @__PURE__ */ I("span", {
1063
1063
  className: "shrink-0 text-xs tabular-nums text-muted-foreground",
1064
- children: We(e.committedAt, void 0, y)
1064
+ children: We(e.committedAt, void 0, T)
1065
1065
  })]
1066
1066
  })
1067
- }), /* @__PURE__ */ I(S, {
1067
+ }), /* @__PURE__ */ I(C, {
1068
1068
  side: "right",
1069
1069
  className: "max-w-80",
1070
1070
  children: e.subject
1071
- })] }), t ? /* @__PURE__ */ I(m, {
1071
+ })] }), t ? /* @__PURE__ */ I(f, {
1072
1072
  className: "shrink-0",
1073
1073
  render: /* @__PURE__ */ I("a", {
1074
1074
  href: t,
1075
1075
  target: "_blank",
1076
1076
  rel: "noopener noreferrer",
1077
- "aria-label": f("Open commit {sha}", { sha: e.sha.slice(0, 7) })
1077
+ "aria-label": S("Open commit {sha}", { sha: e.sha.slice(0, 7) })
1078
1078
  }),
1079
1079
  onClick: (e) => yr(e, t),
1080
1080
  children: /* @__PURE__ */ I("span", {
@@ -1086,37 +1086,37 @@ function H(e) {
1086
1086
  children: e.sha.slice(0, 7)
1087
1087
  })]
1088
1088
  }, e.sha);
1089
- }), t[157] = Vt?.repositoryIdentity, t[158] = or?.commits, t[159] = f, t[160] = y, t[161] = yr, t[162] = U, t[163] = _a) : _a = t[163];
1089
+ }), t[157] = Vt?.repositoryIdentity, t[158] = or?.commits, t[159] = S, t[160] = T, t[161] = yr, t[162] = U, t[163] = _a) : _a = t[163];
1090
1090
  let va;
1091
- t[164] !== na || t[165] !== $i || t[166] !== _a ? (va = /* @__PURE__ */ I(l, {
1091
+ t[164] !== na || t[165] !== $i || t[166] !== _a ? (va = /* @__PURE__ */ I(c, {
1092
1092
  value: $i,
1093
1093
  onValueChange: na,
1094
1094
  children: _a
1095
1095
  }), t[164] = na, t[165] = $i, t[166] = _a, t[167] = va) : va = t[167];
1096
1096
  let ya;
1097
- t[168] !== or || t[169] !== ar.error || t[170] !== F || t[171] !== Mt.error || t[172] !== Mt.isPending || t[173] !== f ? (ya = ar.error ? /* @__PURE__ */ I(m, {
1097
+ t[168] !== or || t[169] !== ar.error || t[170] !== F || t[171] !== Mt.error || t[172] !== Mt.isPending || t[173] !== S ? (ya = ar.error ? /* @__PURE__ */ I(f, {
1098
1098
  disabled: !0,
1099
1099
  children: ar.error
1100
- }) : F ? or === null ? /* @__PURE__ */ I(m, {
1100
+ }) : F ? or === null ? /* @__PURE__ */ I(f, {
1101
1101
  disabled: !0,
1102
- children: /* @__PURE__ */ I(E, { children: "Loading commits..." })
1103
- }) : or.commits.length === 0 ? /* @__PURE__ */ I(m, {
1102
+ children: /* @__PURE__ */ I(b, { children: "Loading commits..." })
1103
+ }) : or.commits.length === 0 ? /* @__PURE__ */ I(f, {
1104
1104
  disabled: !0,
1105
- children: /* @__PURE__ */ I(E, { children: "No commits on this branch." })
1106
- }) : or.truncated ? /* @__PURE__ */ I(m, {
1105
+ children: /* @__PURE__ */ I(b, { children: "No commits on this branch." })
1106
+ }) : or.truncated ? /* @__PURE__ */ I(f, {
1107
1107
  disabled: !0,
1108
- children: f("{count, plural, one {Showing latest {count} commits} other {Showing latest {count} commits}}", { count: or.commits.length })
1109
- }) : null : /* @__PURE__ */ I(m, {
1108
+ children: S("{count, plural, one {Showing latest {count} commits} other {Showing latest {count} commits}}", { count: or.commits.length })
1109
+ }) : null : /* @__PURE__ */ I(f, {
1110
1110
  disabled: !0,
1111
- children: Mt.isPending ? f("Checking file access...") : Mt.error ?? f("This connection cannot read local diffs.")
1112
- }), t[168] = or, t[169] = ar.error, t[170] = F, t[171] = Mt.error, t[172] = Mt.isPending, t[173] = f, t[174] = ya) : ya = t[174];
1111
+ children: Mt.isPending ? S("Checking file access...") : Mt.error ?? S("This connection cannot read local diffs.")
1112
+ }), t[168] = or, t[169] = ar.error, t[170] = F, t[171] = Mt.error, t[172] = Mt.isPending, t[173] = S, t[174] = ya) : ya = t[174];
1113
1113
  let ba;
1114
- t[175] !== va || t[176] !== ya ? (ba = /* @__PURE__ */ L(v, {
1114
+ t[175] !== va || t[176] !== ya ? (ba = /* @__PURE__ */ L(_, {
1115
1115
  className: "max-h-80 max-w-96",
1116
1116
  children: [va, ya]
1117
1117
  }), t[175] = va, t[176] = ya, t[177] = ba) : ba = t[177];
1118
1118
  let xa;
1119
- t[178] !== ha || t[179] !== ba ? (xa = /* @__PURE__ */ L(c, {
1119
+ t[178] !== ha || t[179] !== ba ? (xa = /* @__PURE__ */ L(s, {
1120
1120
  onOpenChange: ha,
1121
1121
  children: [ga, ba]
1122
1122
  }), t[178] = ha, t[179] = ba, t[180] = xa) : xa = t[180];
@@ -1130,49 +1130,49 @@ function H(e) {
1130
1130
  ]
1131
1131
  }), t[181] = da, t[182] = ma, t[183] = xa, t[184] = Sa) : Sa = t[184];
1132
1132
  let Ca = Y !== null && "gap-0", wa;
1133
- t[185] === Ca ? wa = t[186] : (wa = w("flex shrink-0 items-center gap-1 [-webkit-app-region:no-drag]", Ca), t[185] = Ca, t[186] = wa);
1133
+ t[185] === Ca ? wa = t[186] : (wa = E("flex shrink-0 items-center gap-1 [-webkit-app-region:no-drag]", Ca), t[185] = Ca, t[186] = wa);
1134
1134
  let Ta = Ci.length > 0 || V && J?.files?.length ? /* @__PURE__ */ I(Ne, {
1135
1135
  additions: Di.additions,
1136
1136
  deletions: Di.deletions,
1137
1137
  className: "mr-1 text-2xs",
1138
1138
  layout: "inline"
1139
1139
  }) : null, Ea;
1140
- t[187] !== rr || t[188] !== f || t[189] !== si || t[190] !== xr ? (Ea = rr && /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, {
1141
- render: /* @__PURE__ */ I(b, {
1140
+ t[187] !== rr || t[188] !== S || t[189] !== si || t[190] !== xr ? (Ea = rr && /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, {
1141
+ render: /* @__PURE__ */ I(x, {
1142
1142
  type: "button",
1143
1143
  size: "icon-sm",
1144
1144
  variant: "ghost",
1145
- "aria-label": f(si ? "Refreshing diff" : "Refresh diff"),
1145
+ "aria-label": S(si ? "Refreshing diff" : "Refresh diff"),
1146
1146
  onClick: xr
1147
1147
  }),
1148
1148
  children: /* @__PURE__ */ I(ut, {
1149
1149
  size: "sm",
1150
1150
  refreshing: si
1151
1151
  })
1152
- }), /* @__PURE__ */ I(S, {
1152
+ }), /* @__PURE__ */ I(C, {
1153
1153
  side: "top",
1154
- children: f(si ? "Refreshing diff…" : "Refresh diff")
1155
- })] }), t[187] = rr, t[188] = f, t[189] = si, t[190] = xr, t[191] = Ea) : Ea = t[191];
1154
+ children: S(si ? "Refreshing diff…" : "Refresh diff")
1155
+ })] }), t[187] = rr, t[188] = S, t[189] = si, t[190] = xr, t[191] = Ea) : Ea = t[191];
1156
1156
  let Da;
1157
- t[192] !== Ei || t[193] !== ui.length || t[194] !== f || t[195] !== Gi ? (Da = ui.length > 0 && /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, {
1158
- render: /* @__PURE__ */ I(b, {
1157
+ t[192] !== Ei || t[193] !== ui.length || t[194] !== S || t[195] !== Gi ? (Da = ui.length > 0 && /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, {
1158
+ render: /* @__PURE__ */ I(x, {
1159
1159
  type: "button",
1160
1160
  size: "icon-sm",
1161
1161
  variant: "ghost",
1162
- "aria-label": f(Ei ? "Expand all files" : "Collapse all files"),
1162
+ "aria-label": S(Ei ? "Expand all files" : "Collapse all files"),
1163
1163
  onClick: Gi
1164
1164
  }),
1165
1165
  children: I(Ei ? ve : ge, { className: "size-3.5" })
1166
- }), /* @__PURE__ */ I(S, {
1166
+ }), /* @__PURE__ */ I(C, {
1167
1167
  side: "top",
1168
- children: f(Ei ? "Expand all files" : "Collapse all files")
1169
- })] }), t[192] = Ei, t[193] = ui.length, t[194] = f, t[195] = Gi, t[196] = Da) : Da = t[196];
1168
+ children: S(Ei ? "Expand all files" : "Collapse all files")
1169
+ })] }), t[192] = Ei, t[193] = ui.length, t[194] = S, t[195] = Gi, t[196] = Da) : Da = t[196];
1170
1170
  let Oa;
1171
- t[197] === f ? Oa = t[198] : (Oa = f("Diff layout"), t[197] = f, t[198] = Oa);
1171
+ t[197] === S ? Oa = t[198] : (Oa = S("Diff layout"), t[197] = S, t[198] = Oa);
1172
1172
  let ka;
1173
1173
  t[199] === oe ? ka = t[200] : (ka = [oe], t[199] = oe, t[200] = ka);
1174
1174
  let Aa;
1175
- t[201] === f ? Aa = t[202] : (Aa = f("Stacked diff view"), t[201] = f, t[202] = Aa);
1175
+ t[201] === S ? Aa = t[202] : (Aa = S("Stacked diff view"), t[201] = S, t[202] = Aa);
1176
1176
  let ja;
1177
1177
  t[203] === Symbol.for("react.memo_cache_sentinel") ? (ja = /* @__PURE__ */ I(we, { className: "size-3.5" }), t[203] = ja) : ja = t[203];
1178
1178
  let Ma;
@@ -1182,7 +1182,7 @@ function H(e) {
1182
1182
  children: ja
1183
1183
  }), t[204] = Aa, t[205] = Ma);
1184
1184
  let Na;
1185
- t[206] === f ? Na = t[207] : (Na = f("Split diff view"), t[206] = f, t[207] = Na);
1185
+ t[206] === S ? Na = t[207] : (Na = S("Split diff view"), t[206] = S, t[207] = Na);
1186
1186
  let Pa;
1187
1187
  t[208] === Symbol.for("react.memo_cache_sentinel") ? (Pa = /* @__PURE__ */ I(xe, { className: "size-3.5" }), t[208] = Pa) : Pa = t[208];
1188
1188
  let Fa;
@@ -1201,7 +1201,7 @@ function H(e) {
1201
1201
  children: [Ma, Fa]
1202
1202
  }), t[211] = Oa, t[212] = ka, t[213] = Ma, t[214] = Fa, t[215] = Ia) : Ia = t[215];
1203
1203
  let La;
1204
- t[216] !== f || t[217] !== k ? (La = f(k ? "Disable diff line wrapping" : "Enable diff line wrapping"), t[216] = f, t[217] = k, t[218] = La) : La = t[218];
1204
+ t[216] !== S || t[217] !== k ? (La = S(k ? "Disable diff line wrapping" : "Enable diff line wrapping"), t[216] = S, t[217] = k, t[218] = La) : La = t[218];
1205
1205
  let Ra;
1206
1206
  t[219] === Symbol.for("react.memo_cache_sentinel") ? (Ra = (e) => {
1207
1207
  ye(!!e);
@@ -1222,16 +1222,16 @@ function H(e) {
1222
1222
  children: Ba
1223
1223
  }), t[224] = za, t[225] = Va);
1224
1224
  let Ha;
1225
- t[226] !== f || t[227] !== k ? (Ha = f(k ? "Disable line wrapping" : "Enable line wrapping"), t[226] = f, t[227] = k, t[228] = Ha) : Ha = t[228];
1225
+ t[226] !== S || t[227] !== k ? (Ha = S(k ? "Disable line wrapping" : "Enable line wrapping"), t[226] = S, t[227] = k, t[228] = Ha) : Ha = t[228];
1226
1226
  let Ua;
1227
- t[229] === Ha ? Ua = t[230] : (Ua = /* @__PURE__ */ I(S, {
1227
+ t[229] === Ha ? Ua = t[230] : (Ua = /* @__PURE__ */ I(C, {
1228
1228
  side: "top",
1229
1229
  children: Ha
1230
1230
  }), t[229] = Ha, t[230] = Ua);
1231
1231
  let Wa;
1232
- t[231] !== Va || t[232] !== Ua ? (Wa = /* @__PURE__ */ L(C, { children: [Va, Ua] }), t[231] = Va, t[232] = Ua, t[233] = Wa) : Wa = t[233];
1232
+ t[231] !== Va || t[232] !== Ua ? (Wa = /* @__PURE__ */ L(w, { children: [Va, Ua] }), t[231] = Va, t[232] = Ua, t[233] = Wa) : Wa = t[233];
1233
1233
  let Ga;
1234
- t[234] !== A || t[235] !== f ? (Ga = f(A ? "Show whitespace changes" : "Hide whitespace changes"), t[234] = A, t[235] = f, t[236] = Ga) : Ga = t[236];
1234
+ t[234] !== A || t[235] !== S ? (Ga = S(A ? "Show whitespace changes" : "Hide whitespace changes"), t[234] = A, t[235] = S, t[236] = Ga) : Ga = t[236];
1235
1235
  let Ka;
1236
1236
  t[237] !== A || t[238] !== Ga ? (Ka = /* @__PURE__ */ I(nt, {
1237
1237
  "aria-label": Ga,
@@ -1248,42 +1248,42 @@ function H(e) {
1248
1248
  children: qa
1249
1249
  }), t[241] = Ka, t[242] = Ja);
1250
1250
  let Ya;
1251
- t[243] !== A || t[244] !== f ? (Ya = f(A ? "Show whitespace changes" : "Hide whitespace changes"), t[243] = A, t[244] = f, t[245] = Ya) : Ya = t[245];
1251
+ t[243] !== A || t[244] !== S ? (Ya = S(A ? "Show whitespace changes" : "Hide whitespace changes"), t[243] = A, t[244] = S, t[245] = Ya) : Ya = t[245];
1252
1252
  let Xa;
1253
- t[246] === Ya ? Xa = t[247] : (Xa = /* @__PURE__ */ I(S, {
1253
+ t[246] === Ya ? Xa = t[247] : (Xa = /* @__PURE__ */ I(C, {
1254
1254
  side: "top",
1255
1255
  children: Ya
1256
1256
  }), t[246] = Ya, t[247] = Xa);
1257
1257
  let Za;
1258
- t[248] !== Ja || t[249] !== Xa ? (Za = /* @__PURE__ */ L(C, { children: [Ja, Xa] }), t[248] = Ja, t[249] = Xa, t[250] = Za) : Za = t[250];
1258
+ t[248] !== Ja || t[249] !== Xa ? (Za = /* @__PURE__ */ L(w, { children: [Ja, Xa] }), t[248] = Ja, t[249] = Xa, t[250] = Za) : Za = t[250];
1259
1259
  let Qa;
1260
- t[251] !== f || t[252] !== Ke || t[253] !== ot || t[254] !== fi ? (Qa = fi > 0 && /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, {
1260
+ t[251] !== S || t[252] !== Ke || t[253] !== ot || t[254] !== fi ? (Qa = fi > 0 && /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, {
1261
1261
  render: /* @__PURE__ */ I(nt, {
1262
- "aria-label": f("Hide test files"),
1262
+ "aria-label": S("Hide test files"),
1263
1263
  variant: "ghost",
1264
1264
  size: "sm",
1265
1265
  pressed: Ke,
1266
1266
  onPressedChange: (e) => ot(!!e)
1267
1267
  }),
1268
1268
  children: /* @__PURE__ */ I(Ce, { className: "size-3.5" })
1269
- }), /* @__PURE__ */ I(S, {
1269
+ }), /* @__PURE__ */ I(C, {
1270
1270
  side: "top",
1271
- children: Ke ? f("{count, plural, one {Show {count} hidden test file} other {Show {count} hidden test files}}", { count: fi }) : f("Hide test files")
1272
- })] }), t[251] = f, t[252] = Ke, t[253] = ot, t[254] = fi, t[255] = Qa) : Qa = t[255];
1271
+ children: Ke ? S("{count, plural, one {Show {count} hidden test file} other {Show {count} hidden test files}}", { count: fi }) : S("Hide test files")
1272
+ })] }), t[251] = S, t[252] = Ke, t[253] = ot, t[254] = fi, t[255] = Qa) : Qa = t[255];
1273
1273
  let $a;
1274
- t[256] !== ui.length || t[257] !== Pe || t[258] !== f || t[259] !== Ie ? ($a = ui.length > 0 && /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, {
1274
+ t[256] !== ui.length || t[257] !== Pe || t[258] !== S || t[259] !== Ie ? ($a = ui.length > 0 && /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, {
1275
1275
  render: /* @__PURE__ */ I(nt, {
1276
- "aria-label": f(Pe ? "Hide file tree" : "Show file tree"),
1276
+ "aria-label": S(Pe ? "Hide file tree" : "Show file tree"),
1277
1277
  variant: "ghost",
1278
1278
  size: "sm",
1279
1279
  pressed: Pe,
1280
1280
  onPressedChange: (e) => Ie(!!e)
1281
1281
  }),
1282
1282
  children: /* @__PURE__ */ I(_e, { className: "size-3.5" })
1283
- }), /* @__PURE__ */ I(S, {
1283
+ }), /* @__PURE__ */ I(C, {
1284
1284
  side: "top",
1285
- children: f(Pe ? "Hide file tree" : "Show file tree")
1286
- })] }), t[256] = ui.length, t[257] = Pe, t[258] = f, t[259] = Ie, t[260] = $a) : $a = t[260];
1285
+ children: S(Pe ? "Hide file tree" : "Show file tree")
1286
+ })] }), t[256] = ui.length, t[257] = Pe, t[258] = S, t[259] = Ie, t[260] = $a) : $a = t[260];
1287
1287
  let eo;
1288
1288
  t[261] !== wa || t[262] !== Ta || t[263] !== Ea || t[264] !== Da || t[265] !== Ia || t[266] !== Wa || t[267] !== Za || t[268] !== Qa || t[269] !== $a ? (eo = /* @__PURE__ */ L("div", {
1289
1289
  className: wa,
@@ -1300,11 +1300,11 @@ function H(e) {
1300
1300
  }), t[261] = wa, t[262] = Ta, t[263] = Ea, t[264] = Da, t[265] = Ia, t[266] = Wa, t[267] = Za, t[268] = Qa, t[269] = $a, t[270] = eo) : eo = t[270];
1301
1301
  let to = /* @__PURE__ */ L(Lt, { children: [/* @__PURE__ */ L("div", {
1302
1302
  className: "@container/diff-refs flex min-w-0 flex-1 items-center gap-3 [-webkit-app-region:no-drag]",
1303
- children: [/* @__PURE__ */ L(h, { children: [
1304
- /* @__PURE__ */ L(s, {
1303
+ children: [/* @__PURE__ */ L(p, { children: [
1304
+ /* @__PURE__ */ L(o, {
1305
1305
  render: ra,
1306
1306
  className: aa,
1307
- "aria-label": f("Diff scope: {scope}", { scope: pr }),
1307
+ "aria-label": S("Diff scope: {scope}", { scope: pr }),
1308
1308
  "data-workspace-focus-default": !0,
1309
1309
  children: [/* @__PURE__ */ I("span", {
1310
1310
  className: "truncate",
@@ -1315,28 +1315,28 @@ function H(e) {
1315
1315
  Sa
1316
1316
  ] }), Rr && /* @__PURE__ */ L("div", {
1317
1317
  className: "flex min-w-0 max-w-full items-center gap-2 overflow-hidden text-xs text-muted-foreground",
1318
- "aria-label": f("Comparing {head} against {base}", {
1318
+ "aria-label": S("Comparing {head} against {base}", {
1319
1319
  head: cr,
1320
1320
  base: lr
1321
1321
  }),
1322
1322
  children: [
1323
- /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ L(D, {
1323
+ /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ L(D, {
1324
1324
  render: /* @__PURE__ */ I("span", { className: "flex min-w-[min(3rem,calc(100%-2.75rem))] items-center gap-2 overflow-hidden @max-[20rem]/diff-refs:hidden" }),
1325
1325
  children: [/* @__PURE__ */ I("span", {
1326
1326
  className: "min-w-0 max-w-48 truncate",
1327
1327
  children: cr
1328
1328
  }), /* @__PURE__ */ I(me, { className: "size-3.5 shrink-0 opacity-70" })]
1329
- }), /* @__PURE__ */ I(S, {
1329
+ }), /* @__PURE__ */ I(C, {
1330
1330
  side: "top",
1331
1331
  children: `${cr} → ${lr}`
1332
1332
  })] }),
1333
- /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, {
1333
+ /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, {
1334
1334
  render: /* @__PURE__ */ I("span", {
1335
1335
  "aria-hidden": !0,
1336
1336
  className: "hidden @max-[20rem]/diff-refs:inline"
1337
1337
  }),
1338
- children: /* @__PURE__ */ I(E, { children: "vs" })
1339
- }), /* @__PURE__ */ I(S, {
1338
+ children: /* @__PURE__ */ I(b, { children: "vs" })
1339
+ }), /* @__PURE__ */ I(C, {
1340
1340
  side: "top",
1341
1341
  children: `${cr} → ${lr}`
1342
1342
  })] }),
@@ -1351,12 +1351,12 @@ function H(e) {
1351
1351
  e && Zi(e === gn ? null : e);
1352
1352
  },
1353
1353
  children: [/* @__PURE__ */ L(Ae, {
1354
- render: /* @__PURE__ */ I(b, {
1354
+ render: /* @__PURE__ */ I(x, {
1355
1355
  variant: "ghost-muted",
1356
1356
  size: "xs"
1357
1357
  }),
1358
1358
  className: "min-w-9 max-w-48 shrink-0",
1359
- "aria-label": f("Change comparison target. Currently {base}", { base: lr }),
1359
+ "aria-label": S("Change comparison target. Currently {base}", { base: lr }),
1360
1360
  children: [/* @__PURE__ */ I("span", {
1361
1361
  className: "min-w-0 truncate",
1362
1362
  children: lr
@@ -1366,7 +1366,7 @@ function H(e) {
1366
1366
  className: "w-72 min-w-0 max-w-[calc(100vw-1rem)] overflow-hidden",
1367
1367
  children: [
1368
1368
  /* @__PURE__ */ I(Oe, {
1369
- placeholder: f("Search refs..."),
1369
+ placeholder: S("Search refs..."),
1370
1370
  value: j,
1371
1371
  onChange: (e) => gt(e.target.value)
1372
1372
  }),
@@ -1374,19 +1374,19 @@ function H(e) {
1374
1374
  className: "grid shrink-0 grid-cols-[1rem_minmax(0,1fr)] items-center gap-2 border-b border-border/70 ps-3 pe-6.5 pt-2 pb-1.5 font-medium text-3xs text-muted-foreground uppercase tracking-wide",
1375
1375
  children: [/* @__PURE__ */ I("span", { "aria-hidden": "true" }), /* @__PURE__ */ L("div", {
1376
1376
  className: "grid min-w-0 grid-cols-[minmax(0,1fr)_2rem] items-center",
1377
- children: [/* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(E, {
1377
+ children: [/* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(b, {
1378
1378
  context: "git branch",
1379
1379
  children: "Branch"
1380
1380
  }) }), /* @__PURE__ */ I("span", {
1381
1381
  className: "text-right",
1382
- children: /* @__PURE__ */ I(E, {
1382
+ children: /* @__PURE__ */ I(b, {
1383
1383
  context: "git remote",
1384
1384
  children: "Remote"
1385
1385
  })
1386
1386
  })]
1387
1387
  })]
1388
1388
  }),
1389
- /* @__PURE__ */ I(Me, { children: /* @__PURE__ */ I(E, { children: "No matching refs." }) }),
1389
+ /* @__PURE__ */ I(Me, { children: /* @__PURE__ */ I(b, { children: "No matching refs." }) }),
1390
1390
  /* @__PURE__ */ L(ke, {
1391
1391
  className: "max-h-64 min-w-0 overflow-x-hidden",
1392
1392
  children: [/* @__PURE__ */ I(Ee, {
@@ -1394,7 +1394,7 @@ function H(e) {
1394
1394
  value: gn,
1395
1395
  children: /* @__PURE__ */ I("span", {
1396
1396
  className: "block min-w-0 truncate",
1397
- children: /* @__PURE__ */ I(E, {
1397
+ children: /* @__PURE__ */ I(b, {
1398
1398
  context: "compare against the default base ref",
1399
1399
  children: "Automatic"
1400
1400
  })
@@ -1414,7 +1414,7 @@ function H(e) {
1414
1414
  onClick: Tn,
1415
1415
  onPointerDown: wn,
1416
1416
  children: /* @__PURE__ */ I(wt, {
1417
- "aria-label": f("Use remote version of {ref}", { ref: e.label }),
1417
+ "aria-label": S("Use remote version of {ref}", { ref: e.label }),
1418
1418
  checked: r,
1419
1419
  className: "[--thumb-size:--spacing(3)]",
1420
1420
  onCheckedChange: (t) => {
@@ -1422,16 +1422,16 @@ function H(e) {
1422
1422
  n && Zi(n);
1423
1423
  }
1424
1424
  })
1425
- }) : e.remote ? /* @__PURE__ */ L(C, { children: [/* @__PURE__ */ I(D, { render: /* @__PURE__ */ I("span", {
1425
+ }) : e.remote ? /* @__PURE__ */ L(w, { children: [/* @__PURE__ */ I(D, { render: /* @__PURE__ */ I("span", {
1426
1426
  className: "flex justify-end text-muted-foreground",
1427
1427
  children: /* @__PURE__ */ I(fe, {
1428
1428
  role: "img",
1429
- "aria-label": f("Remote only"),
1429
+ "aria-label": S("Remote only"),
1430
1430
  className: "size-3"
1431
1431
  })
1432
- }) }), /* @__PURE__ */ I(S, {
1432
+ }) }), /* @__PURE__ */ I(C, {
1433
1433
  side: "top",
1434
- children: /* @__PURE__ */ I(E, { children: "Remote only" })
1434
+ children: /* @__PURE__ */ I(b, { children: "Remote only" })
1435
1435
  })] }) : null]
1436
1436
  })
1437
1437
  }, e.id);
@@ -1444,31 +1444,31 @@ function H(e) {
1444
1444
  })]
1445
1445
  }), eo] });
1446
1446
  return /* @__PURE__ */ I(xt, {
1447
- mode: d,
1447
+ mode: y,
1448
1448
  header: to,
1449
1449
  children: P ? !fn && !B ? /* @__PURE__ */ I("div", {
1450
1450
  className: "flex flex-1 items-center justify-center px-5 text-center text-xs text-muted-foreground/70",
1451
- children: /* @__PURE__ */ I(E, { children: "Turn diffs are unavailable because this project is not a git repository." })
1451
+ children: /* @__PURE__ */ I(b, { children: "Turn diffs are unavailable because this project is not a git repository." })
1452
1452
  }) : Ln !== null && H.length === 0 ? /* @__PURE__ */ I("div", {
1453
1453
  className: "flex flex-1 items-center justify-center px-5 text-center text-xs text-muted-foreground/70",
1454
- children: /* @__PURE__ */ I(E, { children: "No completed turns yet." })
1455
- }) : V && !F ? Mt.isPending ? /* @__PURE__ */ I(yt, { label: f("Checking file access...") }) : /* @__PURE__ */ I("div", {
1454
+ children: /* @__PURE__ */ I(b, { children: "No completed turns yet." })
1455
+ }) : V && !F ? Mt.isPending ? /* @__PURE__ */ I(yt, { label: S("Checking file access...") }) : /* @__PURE__ */ I("div", {
1456
1456
  className: "flex flex-1 items-center justify-center px-5 text-center text-xs text-muted-foreground/70",
1457
- children: Mt.error ?? f("This connection cannot read local diffs.")
1457
+ children: Mt.error ?? S("This connection cannot read local diffs.")
1458
1458
  }) : /* @__PURE__ */ I(Lt, { children: /* @__PURE__ */ L("div", {
1459
1459
  className: "flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",
1460
1460
  children: [
1461
1461
  Sr?.incomplete && /* @__PURE__ */ I("p", {
1462
1462
  className: "shrink-0 border-b border-border/70 bg-muted/40 px-3 py-1.5 text-2xs text-muted-foreground",
1463
- children: f(kr ? "Showing tracked changes. Untracked changes could not be loaded. Refresh to retry." : "Showing tracked changes. Checking untracked files...")
1463
+ children: S(kr ? "Showing tracked changes. Untracked changes could not be loaded. Refresh to retry." : "Showing tracked changes. Checking untracked files...")
1464
1464
  }),
1465
1465
  Er && !jr && /* @__PURE__ */ I("p", {
1466
1466
  className: "shrink-0 border-b border-border/70 bg-muted/40 px-3 py-1.5 text-2xs text-muted-foreground",
1467
- children: V && J?.files && !Sr?.incomplete ? f("This preview exceeds the size limit. Changes shown are incomplete. Totals include all changes.") : f("This preview exceeds the size limit. Changes shown are incomplete.")
1467
+ children: V && J?.files && !Sr?.incomplete ? S("This preview exceeds the size limit. Changes shown are incomplete. Totals include all changes.") : S("This preview exceeds the size limit. Changes shown are incomplete.")
1468
1468
  }),
1469
1469
  Nr > 0 && /* @__PURE__ */ I("p", {
1470
1470
  className: "shrink-0 border-b border-border/70 bg-muted/40 px-3 py-1.5 text-2xs text-muted-foreground",
1471
- children: f("This tool call changed {recorded} files. The recorded patch omits {omitted} of them.", {
1471
+ children: S("This tool call changed {recorded} files. The recorded patch omits {omitted} of them.", {
1472
1472
  recorded: Mr,
1473
1473
  omitted: Nr
1474
1474
  })
@@ -1484,7 +1484,7 @@ function H(e) {
1484
1484
  className: "min-h-0 flex-1 space-y-3 overflow-auto p-3 text-xs",
1485
1485
  children: [/* @__PURE__ */ I("p", {
1486
1486
  className: "text-muted-foreground",
1487
- children: /* @__PURE__ */ I(E, { children: "The provider recorded file content without a diff." })
1487
+ children: /* @__PURE__ */ I(b, { children: "The provider recorded file content without a diff." })
1488
1488
  }), wr.content.map((e) => {
1489
1489
  let { label: t, text: n } = e;
1490
1490
  return /* @__PURE__ */ L("div", {
@@ -1493,14 +1493,14 @@ function H(e) {
1493
1493
  className: "text-muted-foreground",
1494
1494
  children: t
1495
1495
  }), /* @__PURE__ */ I("pre", {
1496
- className: w("overflow-auto font-mono text-2xs", k && "whitespace-pre-wrap wrap-break-word"),
1497
- children: n === "" ? f("Empty content.") : n
1496
+ className: E("overflow-auto font-mono text-2xs", k && "whitespace-pre-wrap wrap-break-word"),
1497
+ children: n === "" ? S("Empty content.") : n
1498
1498
  })]
1499
1499
  }, t);
1500
1500
  })]
1501
- }) : !X && !jr ? Or ? /* @__PURE__ */ I(yt, { label: f(B ? "Loading tool call diff..." : G ? "Loading checkpoint diff..." : Rn === "unstaged" ? "Loading uncommitted changes..." : Rn === "commit" ? "Loading commit..." : "Loading changes...") }) : /* @__PURE__ */ I("div", {
1501
+ }) : !X && !jr ? Or ? /* @__PURE__ */ I(yt, { label: S(B ? "Loading tool call diff..." : G ? "Loading checkpoint diff..." : Rn === "unstaged" ? "Loading uncommitted changes..." : Rn === "commit" ? "Loading commit..." : "Loading changes...") }) : /* @__PURE__ */ I("div", {
1502
1502
  className: "flex h-full items-center justify-center px-3 py-2 text-xs text-muted-foreground/70",
1503
- children: /* @__PURE__ */ I("p", { children: f(Ar ? "No net changes in this selection." : "No patch available for this selection.") })
1503
+ children: /* @__PURE__ */ I("p", { children: S(Ar ? "No net changes in this selection." : "No patch available for this selection.") })
1504
1504
  }) : jr || X?.kind === "files" ? /* @__PURE__ */ L("div", {
1505
1505
  className: "flex min-h-0 flex-1 overflow-hidden",
1506
1506
  children: [/* @__PURE__ */ I("div", {
@@ -1530,7 +1530,7 @@ function H(e) {
1530
1530
  renderCodeViewFooter: Si,
1531
1531
  sectionId: Wn,
1532
1532
  sectionTitle: mr,
1533
- composerDraftTarget: r,
1533
+ composerDraftTarget: l,
1534
1534
  renderHeaderFilenameSuffix: (e) => {
1535
1535
  let t = M(e), n = Zr.get(t);
1536
1536
  return /* @__PURE__ */ I(bn, {
@@ -1564,9 +1564,9 @@ function H(e) {
1564
1564
  diffStyle: oe === "split" ? "split" : "unified",
1565
1565
  lineDiffType: "none",
1566
1566
  overflow: k ? "wrap" : "scroll",
1567
- theme: ft(ie),
1567
+ theme: ft(re),
1568
1568
  preferredHighlighter: _t,
1569
- themeType: ie,
1569
+ themeType: re,
1570
1570
  stickyHeaders: !0,
1571
1571
  onPostRender: Pi,
1572
1572
  ...Ir ? { loadDiffFiles: Lr } : {}
@@ -1576,9 +1576,9 @@ function H(e) {
1576
1576
  resizable: !0,
1577
1577
  storageKey: "hanzodev:diff-file-tree-width",
1578
1578
  defaultWidthFraction: .4,
1579
- resizeLabel: f("Resize Changes files"),
1579
+ resizeLabel: S("Resize Changes files"),
1580
1580
  children: /* @__PURE__ */ I(jt, {
1581
- ariaLabel: f("{section} files", { section: mr }),
1581
+ ariaLabel: S("{section} files", { section: mr }),
1582
1582
  entries: ki,
1583
1583
  selectedPath: zn,
1584
1584
  revealRequestId: Bn,
@@ -1593,7 +1593,7 @@ function H(e) {
1593
1593
  className: "text-2xs text-muted-foreground/75",
1594
1594
  children: X?.kind === "raw" ? X.reason : null
1595
1595
  }), /* @__PURE__ */ I("pre", {
1596
- className: w("max-h-[72vh] rounded-md border border-border/70 bg-background/70 p-3 font-mono text-2xs leading-relaxed text-muted-foreground/90", k ? "overflow-auto whitespace-pre-wrap wrap-break-word" : "overflow-auto"),
1596
+ className: E("max-h-[72vh] rounded-md border border-border/70 bg-background/70 p-3 font-mono text-2xs leading-relaxed text-muted-foreground/90", k ? "overflow-auto whitespace-pre-wrap wrap-break-word" : "overflow-auto"),
1597
1597
  children: X?.kind === "raw" ? X.text : null
1598
1598
  })]
1599
1599
  })
@@ -1601,7 +1601,7 @@ function H(e) {
1601
1601
  ]
1602
1602
  }) }) : /* @__PURE__ */ I("div", {
1603
1603
  className: "flex flex-1 items-center justify-center px-5 text-center text-xs text-muted-foreground/70",
1604
- children: /* @__PURE__ */ I(E, { children: "Select a thread to inspect turn diffs." })
1604
+ children: /* @__PURE__ */ I(b, { children: "Select a thread to inspect turn diffs." })
1605
1605
  })
1606
1606
  });
1607
1607
  }