zidane-gui 9.1.6 → 9.1.11

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 (73) hide show
  1. package/out/main/index.js +398 -55
  2. package/out/preload/index.mjs +7 -5
  3. package/out/renderer/assets/{43YPWK3Q-z5jpEo82.js → 43YPWK3Q-BVJpf1u1.js} +6 -6
  4. package/out/renderer/assets/{45MVAN6X-GiMurZcH.js → 45MVAN6X-BWuIeWOc.js} +5 -5
  5. package/out/renderer/assets/{46GJKBLZ-BK9JvL-z.js → 46GJKBLZ-41BAHmt4.js} +10 -10
  6. package/out/renderer/assets/{63WH7YNF-oZNJFk32.js → 63WH7YNF-DuatnhlB.js} +8 -8
  7. package/out/renderer/assets/{6DDU7VKX-Q8ape99y.js → 6DDU7VKX-BAI-vKC1.js} +6 -6
  8. package/out/renderer/assets/{CLQLV5VT-1CokruIk.js → CLQLV5VT-CmHu2HE3.js} +6 -6
  9. package/out/renderer/assets/{CUSPXG5M-CXI47Yx3.js → CUSPXG5M-DE3uzfbs.js} +6 -6
  10. package/out/renderer/assets/{CodeEditor-D8TMSvb4.js → CodeEditor-CIwCP1F_.js} +3 -3
  11. package/out/renderer/assets/{ComposerEditor-MwH3w7kQ.js → ComposerEditor-leA8S_Yk.js} +2 -2
  12. package/out/renderer/assets/{D3L7O4X2-CZlDY3Xj.js → D3L7O4X2-BZ4caDcX.js} +4 -4
  13. package/out/renderer/assets/{D5TW5CPZ-C04jssFu.js → D5TW5CPZ-BXdKc68h.js} +1 -1
  14. package/out/renderer/assets/{DiffsTab-CD4Z6LsX.js → DiffsTab-CyRIVfQk.js} +5 -5
  15. package/out/renderer/assets/{EGADTWYV-C6IiGlh0.js → EGADTWYV-Bf6Kicdv.js} +5 -5
  16. package/out/renderer/assets/{EOJSJZXM-Bw1Qp21K.js → EOJSJZXM-NAa-K4U0.js} +8 -8
  17. package/out/renderer/assets/{EditorWorkers-D0xeQ5Kf.js → EditorWorkers-CY0St-9O.js} +4 -4
  18. package/out/renderer/assets/{FilesTab-Pp8_PSfd.js → FilesTab-CnRw0KCN.js} +111 -17
  19. package/out/renderer/assets/{G2OEIG6X-foim2Z_m.js → G2OEIG6X-BarwxCkp.js} +5 -5
  20. package/out/renderer/assets/{GXJ2T77W-FIOAlHlR.js → GXJ2T77W-CyQVHlsG.js} +6 -6
  21. package/out/renderer/assets/{HX3UMAK7-COan20yP.js → HX3UMAK7-BcoG4mYG.js} +5 -5
  22. package/out/renderer/assets/{IU7WZTP6-DeXscWir.js → IU7WZTP6-kOLrUSwF.js} +1 -1
  23. package/out/renderer/assets/{J5J2NR2G-B7up1iuZ.js → J5J2NR2G-DE-SGCIz.js} +4 -4
  24. package/out/renderer/assets/{JRCWTJEL-M4z7DV1k.js → JRCWTJEL-DZY5HKk0.js} +3 -3
  25. package/out/renderer/assets/{KHUP5TOH-0CDf31VX.js → KHUP5TOH-DevvG2jY.js} +1 -1
  26. package/out/renderer/assets/{L74FQTH5-xlC3E1u8.js → L74FQTH5-CnOj-zIY.js} +4 -4
  27. package/out/renderer/assets/{LAV4ZXOS-CWOm214F.js → LAV4ZXOS-BATWssHi.js} +6 -6
  28. package/out/renderer/assets/{LBIZYCRR-BRMO_zpo.js → LBIZYCRR-BXTsyX1O.js} +7 -7
  29. package/out/renderer/assets/{LFFXNLRS-CQDwxn8S.js → LFFXNLRS-BpnXEoXM.js} +3 -3
  30. package/out/renderer/assets/{LLLWOAQD-NLayfyRk.js → LLLWOAQD-BjLHR3Pk.js} +1 -1
  31. package/out/renderer/assets/{LTYQZ5U5-CfgFK_8S.js → LTYQZ5U5-CDOIyknV.js} +8 -8
  32. package/out/renderer/assets/{NDSCUZ25-CRhHG4rp.js → NDSCUZ25-Bl1idg0d.js} +2 -2
  33. package/out/renderer/assets/{NMN3IKWL-pNFku5nG.js → NMN3IKWL-BYE2yrn3.js} +9 -9
  34. package/out/renderer/assets/{NMUA3R2D-D5EpYecE.js → NMUA3R2D-Xl410xeQ.js} +7 -7
  35. package/out/renderer/assets/{NY5A6PPW-BFqrOF96.js → NY5A6PPW-CkzCXBsB.js} +3 -3
  36. package/out/renderer/assets/{OHJ2EJXK-DUXRo20H.js → OHJ2EJXK-DCVoLmOH.js} +1 -1
  37. package/out/renderer/assets/{OU2GIT2H-RERREQg4.js → OU2GIT2H-DG4LbVmY.js} +4 -4
  38. package/out/renderer/assets/{PDMLSE6I-B6VLJpYF.js → PDMLSE6I-Cr8MjczD.js} +2 -2
  39. package/out/renderer/assets/{PJ7X32S5-CiX4IRfi.js → PJ7X32S5-DFZu5Xsj.js} +5 -5
  40. package/out/renderer/assets/{RLLQ44NJ-DI-w7C3g.js → RLLQ44NJ-D-LvBssh.js} +7 -7
  41. package/out/renderer/assets/{S6DWMCK5-BFYfpKyU.js → S6DWMCK5-BQEAXG2z.js} +8 -8
  42. package/out/renderer/assets/{STIOTUT7-BsXqNDoB.js → STIOTUT7-jszPNHGr.js} +6 -6
  43. package/out/renderer/assets/{SXSLPWUD-DsiZBZ2L.js → SXSLPWUD-CEMEDuKR.js} +2 -2
  44. package/out/renderer/assets/{TR4WJQGX-DdGw5EgP.js → TR4WJQGX-8wGWCKKm.js} +1 -1
  45. package/out/renderer/assets/{UWRPUF3N-B9f5cVuf.js → UWRPUF3N-ONJaPLUk.js} +1 -1
  46. package/out/renderer/assets/{VSWIZJ7B-B67GWWkR.js → VSWIZJ7B-DbkRTlJD.js} +1 -1
  47. package/out/renderer/assets/{WM7NR6YK-BjDcbecJ.js → WM7NR6YK-CFy2rge0.js} +4 -4
  48. package/out/renderer/assets/{WXKV2YEK-DkO54WUi.js → WXKV2YEK-BFHYSpQF.js} +3 -3
  49. package/out/renderer/assets/{XLHPVVFU-CgBgWtsm.js → XLHPVVFU-BJFPh1Rn.js} +1 -1
  50. package/out/renderer/assets/{YNX532HU-GZs01vUI.js → YNX532HU-3QqofRh5.js} +5 -5
  51. package/out/renderer/assets/{YUPSMAUO-3HW0N7cY.js → YUPSMAUO-COLbQro8.js} +1 -1
  52. package/out/renderer/assets/{ZFRCZTLK-Bv3j48XJ.js → ZFRCZTLK-BuPbgRNC.js} +6 -6
  53. package/out/renderer/assets/{ZZDR4CN3-bxop59us.js → ZZDR4CN3-Do4onAxu.js} +4 -4
  54. package/out/renderer/assets/{core-DUTJyMGZ.js → core-T80gwwf3.js} +591 -344
  55. package/out/renderer/assets/{file-tabs-CDruoNmZ.js → file-tabs-DWQZlQfx.js} +5 -5
  56. package/out/renderer/assets/{ghostty-web-CtIJ7i7e.js → ghostty-web-DXNGAB4P.js} +1 -1
  57. package/out/renderer/assets/{highlights-26TXpsMP.js → highlights-B0vcJ7-n.js} +2 -2
  58. package/out/renderer/assets/{highlights-Bmhv1Dz1.js → highlights-Yvd7kpJw.js} +3 -3
  59. package/out/renderer/assets/{index-CpGbxp8B.js → index-BbyDWT39.js} +227 -250
  60. package/out/renderer/assets/{index-B5DcyIyT.css → index-CsOxRbAw.css} +146 -19
  61. package/out/renderer/assets/{kit-u_PHwNWF.js → kit-DgkO1_s6.js} +2354 -1186
  62. package/out/renderer/assets/{langs-DQ-AW7Q8.js → langs-7bXaMxtL.js} +1 -1
  63. package/out/renderer/assets/{lazy-xGoFzwfG.js → lazy-DE7xn_YD.js} +3 -3
  64. package/out/renderer/assets/{loader-BwgXVB75.js → loader-CdKsI-e2.js} +1 -1
  65. package/out/renderer/assets/{pierre-theme-CwuG23St.js → pierre-theme-BouAfjrk.js} +7 -7
  66. package/out/renderer/assets/{shiki-DCldjjSl.js → shiki-CIKuDsHH.js} +3 -3
  67. package/out/renderer/assets/{stream-tokenizer-BJjKxfTj.js → stream-tokenizer-JLLsdqkH.js} +1 -1
  68. package/out/renderer/assets/{themes-Bt8pRd53.js → themes-mM7Qtyxf.js} +2 -2
  69. package/out/renderer/assets/{useDetachCleanup-hiha0T2M.js → useDetachCleanup-1PVBQ1U4.js} +2 -2
  70. package/out/renderer/assets/{useFolderChanges-AOk0dbsA.js → useFolderChanges-_vflCTEj.js} +3 -3
  71. package/out/renderer/index.html +4 -4
  72. package/package.json +2 -2
  73. package/scripts/app-installer.mjs +9 -0
@@ -180,6 +180,8 @@ const api = {
180
180
  onChanged: (cb) => subscribe("windows:changed", cb),
181
181
  onShow: (cb) => subscribe("windows:show", cb),
182
182
  takePendingShow: () => ipcRenderer.invoke("windows:takePendingShow"),
183
+ onNewDraft: (cb) => subscribe("windows:newDraft", cb),
184
+ takePendingDraft: () => ipcRenderer.invoke("windows:takePendingDraft"),
183
185
  onPanelAction: (cb) => subscribe("windows:panelAction", cb)
184
186
  },
185
187
  appearance: {
@@ -210,8 +212,6 @@ const api = {
210
212
  send: (opts) => ipcRenderer.invoke("chat:send", opts),
211
213
  interrupt: (sessionId) => ipcRenderer.invoke("chat:interrupt", sessionId),
212
214
  isRunning: (sessionId) => ipcRenderer.invoke("chat:isRunning", sessionId),
213
- steer: (sessionId, message) => ipcRenderer.invoke("chat:steer", sessionId, message),
214
- followUp: (sessionId, message) => ipcRenderer.invoke("chat:followUp", sessionId, message),
215
215
  pushQueued: (sessionId, message, activatedSkills) => ipcRenderer.invoke("chat:pushQueued", sessionId, message, activatedSkills),
216
216
  listWork: (sessionId) => ipcRenderer.invoke("chat:listWork", sessionId),
217
217
  cancelWork: (sessionId, id, reason) => ipcRenderer.invoke("chat:cancelWork", sessionId, id, reason),
@@ -240,7 +240,7 @@ const api = {
240
240
  },
241
241
  queue: {
242
242
  list: (sessionId) => ipcRenderer.invoke("queue:list", sessionId),
243
- add: (sessionId, text, activatedSkills, attachments) => ipcRenderer.invoke("queue:add", sessionId, text, activatedSkills, attachments),
243
+ add: (sessionId, text, activatedSkills, attachments, delivery) => ipcRenderer.invoke("queue:add", sessionId, text, activatedSkills, attachments, delivery),
244
244
  remove: (sessionId, id) => ipcRenderer.invoke("queue:remove", sessionId, id),
245
245
  update: (sessionId, id, text, attachments) => ipcRenderer.invoke("queue:update", sessionId, id, text, attachments),
246
246
  attachments: (sessionId, id) => ipcRenderer.invoke("queue:attachments", sessionId, id),
@@ -279,10 +279,11 @@ const api = {
279
279
  searchAll: (query, sessionIds, excerptLimit) => ipcRenderer.invoke("history:searchAll", query, sessionIds, excerptLimit)
280
280
  },
281
281
  system: {
282
- openPath: (path) => ipcRenderer.invoke("system:openPath", path),
282
+ openPath: (path, at) => ipcRenderer.invoke("system:openPath", path, at),
283
283
  revealPath: (path) => ipcRenderer.invoke("system:revealPath", path),
284
284
  revealConfig: (location) => ipcRenderer.invoke("system:revealConfig", location),
285
- repoWebBase: (cwd) => ipcRenderer.invoke("system:repoWebBase", cwd)
285
+ repoWebBase: (cwd) => ipcRenderer.invoke("system:repoWebBase", cwd),
286
+ defaultBrowser: () => ipcRenderer.invoke("system:defaultBrowser")
286
287
  },
287
288
  shell: {
288
289
  run: (sessionId, command) => ipcRenderer.invoke("shell:run", sessionId, command),
@@ -563,6 +564,7 @@ const api = {
563
564
  clone: (hostId, input, parent) => ipcRenderer.invoke("hosts:clone", hostId, input, parent),
564
565
  authStatus: (hostId) => ipcRenderer.invoke("hosts:authStatus", hostId),
565
566
  capabilities: (hostId, refresh) => ipcRenderer.invoke("hosts:capabilities", hostId, refresh),
567
+ installTool: (hostId, name) => ipcRenderer.invoke("hosts:installTool", hostId, name),
566
568
  selfUpdate: (hostId, action, enabled) => ipcRenderer.invoke("hosts:selfUpdate", hostId, action, enabled),
567
569
  authSetApiKey: (hostId, provider, key) => ipcRenderer.invoke("hosts:authSetApiKey", hostId, provider, key),
568
570
  authRemove: (hostId, provider, account) => ipcRenderer.invoke("hosts:authRemove", hostId, provider, account),
@@ -1,10 +1,10 @@
1
- import { i } from "./D5TW5CPZ-C04jssFu.js";
2
- import { A, E } from "./OHJ2EJXK-DUXRo20H.js";
3
- import { q, R as R$1, g as r, d as de, e as ee$1 } from "./lazy-xGoFzwfG.js";
1
+ import { i } from "./D5TW5CPZ-BXdKc68h.js";
2
+ import { A, E } from "./OHJ2EJXK-DCVoLmOH.js";
3
+ import { q, R as R$1, g as r, d as de, e as ee$1 } from "./lazy-DE7xn_YD.js";
4
4
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
5
- import { x, D, $, U, B, z as z$1, Y, v } from "./IU7WZTP6-DeXscWir.js";
6
- import { n as ne$1, x as x$1, c as jt, L, l as le, S, d as de$1, W as Wt, b as be } from "./KHUP5TOH-0CDf31VX.js";
7
- import "./core-DUTJyMGZ.js";
5
+ import { x, D, $, U, B, z as z$1, Y, v } from "./IU7WZTP6-kOLrUSwF.js";
6
+ import { n as ne$1, x as x$1, c as jt, L, l as le, S, d as de$1, W as Wt, b as be } from "./KHUP5TOH-DevvG2jY.js";
7
+ import "./core-T80gwwf3.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  var J = /[─━│┃└┗├┣]/, Le = /[└┗├┣]/, Qe = /[─━]/, De = /^[\s│┃]+$/, Ze = /^[\s─━│┃└┗├┣]+$/, Je = /^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/, en = /^\s*%%/, nn = " ";
@@ -1,9 +1,9 @@
1
- import { g, d, x } from "./XLHPVVFU-CgBgWtsm.js";
2
- import { s, T } from "./TR4WJQGX-DdGw5EgP.js";
3
- import { i, b as e, V, d as de } from "./lazy-xGoFzwfG.js";
1
+ import { g, d, x } from "./XLHPVVFU-BJFPh1Rn.js";
2
+ import { s, T } from "./TR4WJQGX-8wGWCKKm.js";
3
+ import { i, b as e, V, d as de } from "./lazy-DE7xn_YD.js";
4
4
  import { c } from "./DKTLEL5E-Dj3316cp.js";
5
- import { x as x$1, p as pe, L as L$1, c as jt$1, W as Wt, b as be } from "./KHUP5TOH-0CDf31VX.js";
6
- import "./core-DUTJyMGZ.js";
5
+ import { x as x$1, p as pe, L as L$1, c as jt$1, W as Wt, b as be } from "./KHUP5TOH-DevvG2jY.js";
6
+ import "./core-T80gwwf3.js";
7
7
  import "./vendor-BpwX-s_O.js";
8
8
  import "./vendor-react-bPTwWURR.js";
9
9
  function rt(e2) {
@@ -1,18 +1,18 @@
1
- import { e as es, K as Kt } from "./LTYQZ5U5-CfgFK_8S.js";
2
- import { X as Xn, Y as Yn, I as In, k as kn } from "./UWRPUF3N-B9f5cVuf.js";
1
+ import { e as es, K as Kt } from "./LTYQZ5U5-CDOIyknV.js";
2
+ import { X as Xn, Y as Yn, I as In, k as kn } from "./UWRPUF3N-ONJaPLUk.js";
3
3
  import { H } from "./2CHDFZHC-B7OS2WPy.js";
4
- import { W as Wt, x } from "./KHUP5TOH-0CDf31VX.js";
4
+ import { W as Wt, x } from "./KHUP5TOH-DevvG2jY.js";
5
5
  import "./FTXIJQGB-BX14b7pN.js";
6
- import "./lazy-xGoFzwfG.js";
7
- import "./core-DUTJyMGZ.js";
6
+ import "./lazy-DE7xn_YD.js";
7
+ import "./core-T80gwwf3.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  import "./7WLXJQOR-C8MM6Bra.js";
11
- import "./YUPSMAUO-3HW0N7cY.js";
12
- import "./LLLWOAQD-NLayfyRk.js";
13
- import "./PDMLSE6I-B6VLJpYF.js";
14
- import "./NDSCUZ25-CRhHG4rp.js";
15
- import "./VSWIZJ7B-B67GWWkR.js";
11
+ import "./YUPSMAUO-COLbQro8.js";
12
+ import "./LLLWOAQD-BjLHR3Pk.js";
13
+ import "./PDMLSE6I-Cr8MjczD.js";
14
+ import "./NDSCUZ25-Bl1idg0d.js";
15
+ import "./VSWIZJ7B-DbkRTlJD.js";
16
16
  import "./DKTLEL5E-Dj3316cp.js";
17
17
  var Rn = 34, Nn = 24, Un = 8, Cn = 2e4, dn = 1e4, zt = 2e6, pn = 4, Tn = 3, yn = 8, Vt = 20, wn = 20, Mn = 14, Dn = 3;
18
18
  function xn(r, y, M, N, X = Nn) {
@@ -1,15 +1,15 @@
1
1
  import { i as i$1, a } from "./FTXIJQGB-BX14b7pN.js";
2
- import { c as q, q as q$1, R, d as de, e as ee, b as e, K, Z, V, i as i$2 } from "./lazy-xGoFzwfG.js";
2
+ import { c as q, q as q$1, R, d as de, e as ee, b as e, K, Z, V, i as i$2 } from "./lazy-DE7xn_YD.js";
3
3
  import { h as h$1 } from "./7WLXJQOR-C8MM6Bra.js";
4
- import { x, h } from "./YUPSMAUO-3HW0N7cY.js";
5
- import { q as qe$1, z as ze$1, _ as _e, j as je$1, H as He$1 } from "./LLLWOAQD-NLayfyRk.js";
6
- import { A, H as H$1, T as T$1, U } from "./NDSCUZ25-CRhHG4rp.js";
7
- import { o, i, P, F, R as R$1, B } from "./VSWIZJ7B-B67GWWkR.js";
4
+ import { x, h } from "./YUPSMAUO-COLbQro8.js";
5
+ import { q as qe$1, z as ze$1, _ as _e, j as je$1, H as He$1 } from "./LLLWOAQD-BjLHR3Pk.js";
6
+ import { A, H as H$1, T as T$1, U } from "./NDSCUZ25-Bl1idg0d.js";
7
+ import { o, i, P, F, R as R$1, B } from "./VSWIZJ7B-DbkRTlJD.js";
8
8
  import { m, c } from "./DKTLEL5E-Dj3316cp.js";
9
- import { J as Jn, K as Kn, s as se, r as re, n as ne$1, e as ee$1, b as an$1, o as oe } from "./UWRPUF3N-B9f5cVuf.js";
9
+ import { J as Jn, K as Kn, s as se, r as re, n as ne$1, e as ee$1, b as an$1, o as oe } from "./UWRPUF3N-ONJaPLUk.js";
10
10
  import { T, H } from "./2CHDFZHC-B7OS2WPy.js";
11
- import { h as he, n as ne, d as de$1, L, x as x$1, a as ae, W as Wt$1, p as pe, S, b as be$1, f as fe$1 } from "./KHUP5TOH-0CDf31VX.js";
12
- import "./core-DUTJyMGZ.js";
11
+ import { h as he, n as ne, d as de$1, L, x as x$1, a as ae, W as Wt$1, p as pe, S, b as be$1, f as fe$1 } from "./KHUP5TOH-DevvG2jY.js";
12
+ import "./core-T80gwwf3.js";
13
13
  import "./vendor-BpwX-s_O.js";
14
14
  import "./vendor-react-bPTwWURR.js";
15
15
  var nn = /* @__PURE__ */ new Map([["task", "roundedRect"], ["tool", "subroutine"], ["input", "lean-right"], ["decision", "diamond"], ["refdoc", "lin-doc"], ["action", "hexagon"], ["round", "rect"]]), sn = /* @__PURE__ */ new Set(["doc", "stadium", "terminal", "circle", "trapezoid", "inv_trapezoid", "inv-trapezoid", "doublecircle", "double-circle", "typeDeclaration", "procs", "lean_left", "lean-left", "in-out", "cylinder", "ellipse", "odd", "tag-rect", "tagged-rectangle", "delay", "half-rounded-rectangle", "lin-rect", "lined-rectangle", "win-pane", "window-pane", "curv-trap", "curved-trapezoid"]), rn = /* @__PURE__ */ new Set(["roundedRect", "subroutine", "subprocess", "subproc", "framed-rectangle", "lean-right", "diamond", "lin-doc", "lined-document", "hexagon", "hex", "connector", "collapsedGroup"]), Se = "roundedRect";
@@ -1,10 +1,10 @@
1
- import { W, Y, X } from "./SXSLPWUD-DsiZBZ2L.js";
2
- import { g } from "./PDMLSE6I-B6VLJpYF.js";
3
- import { P, I, R } from "./VSWIZJ7B-B67GWWkR.js";
1
+ import { W, Y, X } from "./SXSLPWUD-CEMEDuKR.js";
2
+ import { g } from "./PDMLSE6I-Cr8MjczD.js";
3
+ import { P, I, R } from "./VSWIZJ7B-DbkRTlJD.js";
4
4
  import { c, h } from "./DKTLEL5E-Dj3316cp.js";
5
- import { n as ne$1, p as pe, x, d as de$1, L, W as Wt$1, b as be, s as se, o as oe$1 } from "./KHUP5TOH-0CDf31VX.js";
6
- import { q, d as de, r as re } from "./lazy-xGoFzwfG.js";
7
- import "./core-DUTJyMGZ.js";
5
+ import { n as ne$1, p as pe, x, d as de$1, L, W as Wt$1, b as be, s as se, o as oe$1 } from "./KHUP5TOH-DevvG2jY.js";
6
+ import { q, d as de, r as re } from "./lazy-DE7xn_YD.js";
7
+ import "./core-T80gwwf3.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  var Qt = 11, nt = class {
@@ -1,11 +1,11 @@
1
- import { c as q, q as q$1, V, b as e, i, t, d as de } from "./lazy-xGoFzwfG.js";
2
- import { T } from "./OHJ2EJXK-DUXRo20H.js";
3
- import { g } from "./PDMLSE6I-B6VLJpYF.js";
1
+ import { c as q, q as q$1, V, b as e, i, t, d as de } from "./lazy-DE7xn_YD.js";
2
+ import { T } from "./OHJ2EJXK-DCVoLmOH.js";
3
+ import { g } from "./PDMLSE6I-Cr8MjczD.js";
4
4
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
5
- import { _ as _t, b as an } from "./UWRPUF3N-B9f5cVuf.js";
5
+ import { _ as _t, b as an } from "./UWRPUF3N-ONJaPLUk.js";
6
6
  import { A } from "./2CHDFZHC-B7OS2WPy.js";
7
- import { x, h as he, a as ae$1, c as jt, L, W as Wt$1, b as be, l as le, n as ne, d as de$1, S } from "./KHUP5TOH-0CDf31VX.js";
8
- import "./core-DUTJyMGZ.js";
7
+ import { x, h as he, a as ae$1, c as jt, L, W as Wt$1, b as be, l as le, n as ne, d as de$1, S } from "./KHUP5TOH-DevvG2jY.js";
8
+ import "./core-T80gwwf3.js";
9
9
  import "./vendor-BpwX-s_O.js";
10
10
  import "./vendor-react-bPTwWURR.js";
11
11
  var Mn = "aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite gold goldenrod gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavender lavenderblush lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen transparent currentcolor inherit initial unset revert accentcolor accentcolortext activetext buttonborder buttonface buttontext canvas canvastext field fieldtext graytext highlight highlighttext linktext mark marktext selecteditem selecteditemtext visitedtext activeborder activecaption appworkspace background buttonhighlight buttonshadow captiontext inactiveborder inactivecaption inactivecaptiontext infobackground infotext menu menutext scrollbar threeddarkshadow threedface threedhighlight threedlightshadow threedshadow window windowframe windowtext", dn, vn = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?(%|deg|grad|rad|turn)?$/i;
@@ -1,10 +1,10 @@
1
- import { g, d, h, x as x$1 } from "./XLHPVVFU-CgBgWtsm.js";
2
- import { s, T } from "./TR4WJQGX-DdGw5EgP.js";
3
- import { q, d as de, i, b as e, V } from "./lazy-xGoFzwfG.js";
1
+ import { g, d, h, x as x$1 } from "./XLHPVVFU-BJFPh1Rn.js";
2
+ import { s, T } from "./TR4WJQGX-8wGWCKKm.js";
3
+ import { q, d as de, i, b as e, V } from "./lazy-DE7xn_YD.js";
4
4
  import { c } from "./DKTLEL5E-Dj3316cp.js";
5
- import { b as an, _ as _t } from "./UWRPUF3N-B9f5cVuf.js";
6
- import { x, W as Wt, b as be$1, L as L$1, p as pe, a as ae } from "./KHUP5TOH-0CDf31VX.js";
7
- import "./core-DUTJyMGZ.js";
5
+ import { b as an, _ as _t } from "./UWRPUF3N-ONJaPLUk.js";
6
+ import { x, W as Wt, b as be$1, L as L$1, p as pe, a as ae } from "./KHUP5TOH-DevvG2jY.js";
7
+ import "./core-T80gwwf3.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  import "./2CHDFZHC-B7OS2WPy.js";
@@ -1,7 +1,7 @@
1
1
  import { j as jsxRuntimeExports, r as reactExports } from "./vendor-react-bPTwWURR.js";
2
- import { g as useEditorEnvironment, E as useLabels, G as buttonClass } from "./kit-u_PHwNWF.js";
3
- import { g as getLineAnnotationName, a as areFileTargetsEqual, b as applyLineTextWithNewline, c as areRenderRangesEqual, i as isDefaultRenderRange, e as shouldRenderFileAnnotations, f as getFileAnnotations, h as createAnnotationElement, j as createFileHeaderElement, k as createContentColumn, l as getHighlighterOptions, r as resolvePreferredHighlighter, m as createPreElement, n as shouldUseTokenTransformer, R as ResizeManager, I as InteractionManager, p as pluckInteractionOptions, o as resolveEditSessionSlotName, q as adoptEditSessionAnnotations, w as writeEditSessionAnnotations, t as prerenderHTMLIfNecessary, v as createAnnotationWrapperNode, x as createGutterUtilityContentNode, y as createUnsafeCSSStyleNode, z as wrapUnsafeCSS, A as getMeasuredScrollbarGutter, B as upsertHostThemeStyle, C as wrapThemeCSS, D as patchScrollbarGutterSize, E as isSafari, G as getOrCreateCodeNode, H as guardWebKitScrollDuringRebuild, J as isStyleNode, S as SVGSpriteSheet$1, K as arePrePropertiesEqual, L as setPreNodeProperties, M as areObjectsEqual, N as areOptionsEqual, O as includesFileAnnotations, P as FILE_ANNOTATION_DOM_KEY, Q as GutterUtilitySlotStyles, T as useVirtualizer, U as useCreateEditor, V as useStableCallback, W as useForceUpdate, X as useNextRenderData, Y as noopRender, Z as templateRender, _ as isMacLike, $ as recordLineAnnotationSource, a0 as getLineAnnotationSource, a1 as cloneHunks, a2 as dequeueRender, a3 as queueRender, a4 as isGutterUtilityPath, a5 as useDetachCleanup, a6 as revealOnHighlight, a7 as scrollReachOnRender, a8 as EditProvider, a9 as Virtualizer, u as useFind, aa as fileLines, F as FindBar } from "./useDetachCleanup-hiha0T2M.js";
4
- import { i as isFullyTransparent, s as surfacesMatch, j as relativeLuminance, p as pickReadableForeground, k as isDarkSurface, l as hoverWouldEraseText, m as deriveMutedFg, n as contrastRatio, o as compositeOverBg, D as DEFAULT_THEMES, q as areFileRenderOptionsEqual, t as isFilePlainText, v as getHighlighterIfLoaded, w as getFiletypeFromFileName, H as HighlighterDisposedError, x as linesFromFileContents, y as DEFAULT_RENDER_RANGE, z as areThemesAttached, B as areLanguagesAttached, C as renderFileWithHighlighter, E as createGutterGap, F as createGutterItem, G as createHastElement, I as getSharedHighlighter, J as createGutterWrapper, K as EMPTY_LINE_ANNOTATIONS, L as areThemesEqual, M as getThemes, N as EMPTY_RENDER_RANGE, O as isHandledWorkerPoolError, Q as CUSTOM_HEADER_SLOT_ID, S as HEADER_PREFIX_SLOT_ID, T as HEADER_FILENAME_SUFFIX_SLOT_ID, U as HEADER_METADATA_SLOT_ID, V as DEFAULT_VIRTUAL_FILE_METRICS, X as computeVirtualFileMetrics, Y as getVirtualFileHeaderHeight, Z as getVirtualFileHeaderRegion, _ as getVirtualFilePaddingBottom, $ as WorkerPoolContext, a0 as DIFFS_TAG_NAME, a1 as computeLineOffsets, a2 as countLineBreaks, a3 as LRUMapPkg, P as PREFERRED_HIGHLIGHTER, a4 as DIFFS_UNSAFE_CSS, a5 as DIFFS_HOST_STYLE, a6 as VIRTUALIZER_CONFIG, a7 as DEFAULT_TOKENIZE_MAX_LENGTH } from "./pierre-theme-CwuG23St.js";
2
+ import { g as useEditorEnvironment, E as useLabels, G as buttonClass } from "./kit-DgkO1_s6.js";
3
+ import { g as getLineAnnotationName, a as areFileTargetsEqual, b as applyLineTextWithNewline, c as areRenderRangesEqual, i as isDefaultRenderRange, e as shouldRenderFileAnnotations, f as getFileAnnotations, h as createAnnotationElement, j as createFileHeaderElement, k as createContentColumn, l as getHighlighterOptions, r as resolvePreferredHighlighter, m as createPreElement, n as shouldUseTokenTransformer, R as ResizeManager, I as InteractionManager, p as pluckInteractionOptions, o as resolveEditSessionSlotName, q as adoptEditSessionAnnotations, w as writeEditSessionAnnotations, t as prerenderHTMLIfNecessary, v as createAnnotationWrapperNode, x as createGutterUtilityContentNode, y as createUnsafeCSSStyleNode, z as wrapUnsafeCSS, A as getMeasuredScrollbarGutter, B as upsertHostThemeStyle, C as wrapThemeCSS, D as patchScrollbarGutterSize, E as isSafari, G as getOrCreateCodeNode, H as guardWebKitScrollDuringRebuild, J as isStyleNode, S as SVGSpriteSheet$1, K as arePrePropertiesEqual, L as setPreNodeProperties, M as areObjectsEqual, N as areOptionsEqual, O as includesFileAnnotations, P as FILE_ANNOTATION_DOM_KEY, Q as GutterUtilitySlotStyles, T as useVirtualizer, U as useCreateEditor, V as useStableCallback, W as useForceUpdate, X as useNextRenderData, Y as noopRender, Z as templateRender, _ as isMacLike, $ as recordLineAnnotationSource, a0 as getLineAnnotationSource, a1 as cloneHunks, a2 as dequeueRender, a3 as queueRender, a4 as isGutterUtilityPath, a5 as useDetachCleanup, a6 as revealOnHighlight, a7 as scrollReachOnRender, a8 as EditProvider, a9 as Virtualizer, u as useFind, aa as fileLines, F as FindBar } from "./useDetachCleanup-1PVBQ1U4.js";
4
+ import { i as isFullyTransparent, s as surfacesMatch, j as relativeLuminance, p as pickReadableForeground, k as isDarkSurface, l as hoverWouldEraseText, m as deriveMutedFg, n as contrastRatio, o as compositeOverBg, D as DEFAULT_THEMES, q as areFileRenderOptionsEqual, t as isFilePlainText, v as getHighlighterIfLoaded, w as getFiletypeFromFileName, H as HighlighterDisposedError, x as linesFromFileContents, y as DEFAULT_RENDER_RANGE, z as areThemesAttached, B as areLanguagesAttached, C as renderFileWithHighlighter, E as createGutterGap, F as createGutterItem, G as createHastElement, I as getSharedHighlighter, J as createGutterWrapper, K as EMPTY_LINE_ANNOTATIONS, L as areThemesEqual, M as getThemes, N as EMPTY_RENDER_RANGE, O as isHandledWorkerPoolError, Q as CUSTOM_HEADER_SLOT_ID, S as HEADER_PREFIX_SLOT_ID, T as HEADER_FILENAME_SUFFIX_SLOT_ID, U as HEADER_METADATA_SLOT_ID, V as DEFAULT_VIRTUAL_FILE_METRICS, X as computeVirtualFileMetrics, Y as getVirtualFileHeaderHeight, Z as getVirtualFileHeaderRegion, _ as getVirtualFilePaddingBottom, $ as WorkerPoolContext, a0 as DIFFS_TAG_NAME, a1 as computeLineOffsets, a2 as countLineBreaks, a3 as LRUMapPkg, P as PREFERRED_HIGHLIGHTER, a4 as DIFFS_UNSAFE_CSS, a5 as DIFFS_HOST_STYLE, a6 as VIRTUALIZER_CONFIG, a7 as DEFAULT_TOKENIZE_MAX_LENGTH } from "./pierre-theme-BouAfjrk.js";
5
5
  import { h as hastToHtml } from "./hastToHtml-AUrFnNH_.js";
6
6
  import { a as addEventListener, g as getLineNumberAttr, h, e as endsWithLineBreak, b as getGraphemeSegmenter, c as createSegmenter, r as round, f as extend, l as lookupScrollContainer, i as clampDomOffset } from "./utils-BcG7Lqcy.js";
7
7
  const colorUtils = {
@@ -1,9 +1,9 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "./vendor-react-bPTwWURR.js";
2
2
  import { u as useEditor, c as src_default, d as src_default$1, E as EditorContent } from "./vendor-editor-Cx3SvGyZ.js";
3
- import { s as suggestionExtension, p as plainTextToDocJson } from "./kit-u_PHwNWF.js";
3
+ import { s as suggestionExtension, p as plainTextToDocJson } from "./kit-DgkO1_s6.js";
4
4
  import "./vendor-BpwX-s_O.js";
5
5
  import "./vendor-motion-BgQeucLF.js";
6
- import "./core-DUTJyMGZ.js";
6
+ import "./core-T80gwwf3.js";
7
7
  function ComposerEditor({
8
8
  text,
9
9
  disabled,
@@ -1,10 +1,10 @@
1
1
  import { s } from "./5THPTBWS-2mBFupjU.js";
2
2
  import { l, h } from "./DKTLEL5E-Dj3316cp.js";
3
- import { x as x$1, D, M, $, U, B, z, v } from "./IU7WZTP6-DeXscWir.js";
3
+ import { x as x$1, D, M, $, U, B, z, v } from "./IU7WZTP6-kOLrUSwF.js";
4
4
  import { H } from "./2CHDFZHC-B7OS2WPy.js";
5
- import { n as ne, h as he, p as pe, L, x, S, d as de$1, W as Wt, b as be, a as ae } from "./KHUP5TOH-0CDf31VX.js";
6
- import { d as de, e as ee } from "./lazy-xGoFzwfG.js";
7
- import "./core-DUTJyMGZ.js";
5
+ import { n as ne, h as he, p as pe, L, x, S, d as de$1, W as Wt, b as be, a as ae } from "./KHUP5TOH-DevvG2jY.js";
6
+ import { d as de, e as ee } from "./lazy-DE7xn_YD.js";
7
+ import "./core-T80gwwf3.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  function Ze(s2) {
@@ -1,4 +1,4 @@
1
- import { M } from "./IU7WZTP6-DeXscWir.js";
1
+ import { M } from "./IU7WZTP6-kOLrUSwF.js";
2
2
  var e = /[\t ]*accDescr(?:[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)|\s*({))/y;
3
3
  function f() {
4
4
  let n = false;
@@ -1,13 +1,13 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "./vendor-react-bPTwWURR.js";
2
- import { m as mediaTypeOfPath, h as useFilesHost, i as useFilesLabels, j as filesRootOf, k as collectSessionDiffs, l as groupByPath, n as usePanelVisible, o as fileDiffCounts, q as buildDiffTree, r as fileOrder, v as visibleRows, w as useAppearanceReducedMotion, x as relativeTo, y as matchRanges, z as steppedIndex, S as Segmented, A as DiffCounts, I as IconToggle, P as PanelLoading, B as PanelEmpty, C as DiffFileTree } from "./kit-u_PHwNWF.js";
3
- import { M as MediaView, p as parseFilePatch, u as useDiagnosticsRun, c as countBySeverity, a as useFolderChanges, b as createPatchParser, d as useNoEdits, n as nameMatches, e as useNoKeyScope, F as FilesChatContext, S as SearchPanel, D as DiffScroller, R as ReviewableDiff, f as DiffView } from "./useFolderChanges-AOk0dbsA.js";
2
+ import { m as mediaTypeOfPath, h as useFilesHost, i as useFilesLabels, j as filesRootOf, k as collectSessionDiffs, l as groupByPath, n as usePanelVisible, o as fileDiffCounts, q as buildDiffTree, r as fileOrder, v as visibleRows, w as useAppearanceReducedMotion, x as relativeTo, y as matchRanges, z as steppedIndex, S as Segmented, A as DiffCounts, I as IconToggle, P as PanelLoading, B as PanelEmpty, C as DiffFileTree } from "./kit-DgkO1_s6.js";
3
+ import { M as MediaView, p as parseFilePatch, u as useDiagnosticsRun, c as countBySeverity, a as useFolderChanges, b as createPatchParser, d as useNoEdits, n as nameMatches, e as useNoKeyScope, F as FilesChatContext, S as SearchPanel, D as DiffScroller, R as ReviewableDiff, f as DiffView } from "./useFolderChanges-_vflCTEj.js";
4
4
  import { T as TreeChevron, F as FileIcon } from "./FileIcon-acads6Ac.js";
5
- import { u as useFind, F as FindBar, d as diffLines, s as settleScroll } from "./useDetachCleanup-hiha0T2M.js";
5
+ import { u as useFind, F as FindBar, d as diffLines, s as settleScroll } from "./useDetachCleanup-1PVBQ1U4.js";
6
6
  import "./vendor-motion-BgQeucLF.js";
7
- import "./core-DUTJyMGZ.js";
7
+ import "./core-T80gwwf3.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-editor-Cx3SvGyZ.js";
10
- import "./pierre-theme-CwuG23St.js";
10
+ import "./pierre-theme-BouAfjrk.js";
11
11
  import "./hastToHtml-AUrFnNH_.js";
12
12
  import "./index-DhpOdP7M.js";
13
13
  function isMediaDiff(file) {
@@ -1,9 +1,9 @@
1
- import { s } from "./TR4WJQGX-DdGw5EgP.js";
1
+ import { s } from "./TR4WJQGX-8wGWCKKm.js";
2
2
  import { c } from "./DKTLEL5E-Dj3316cp.js";
3
- import { x, D as D$1, M, $, V, W, G, O, P, H, z, B, U, Y, v, j } from "./IU7WZTP6-DeXscWir.js";
4
- import { p as pe$1, L, c as jt, x as x$1, W as Wt, n as ne, b as be } from "./KHUP5TOH-0CDf31VX.js";
5
- import { d as de$1, q } from "./lazy-xGoFzwfG.js";
6
- import "./core-DUTJyMGZ.js";
3
+ import { x, D as D$1, M, $, V, W, G, O, P, H, z, B, U, Y, v, j } from "./IU7WZTP6-kOLrUSwF.js";
4
+ import { p as pe$1, L, c as jt, x as x$1, W as Wt, n as ne, b as be } from "./KHUP5TOH-DevvG2jY.js";
5
+ import { d as de$1, q } from "./lazy-DE7xn_YD.js";
6
+ import "./core-T80gwwf3.js";
7
7
  import "./vendor-BpwX-s_O.js";
8
8
  import "./vendor-react-bPTwWURR.js";
9
9
  var w = { NORMAL: 0, REVERSE: 1, HIGHLIGHT: 2, MERGE: 3, CHERRY_PICK: 4 };
@@ -1,13 +1,13 @@
1
- import { q as qe$1, z as ze$1, j as je$1 } from "./LLLWOAQD-NLayfyRk.js";
2
- import { x as x$1 } from "./PDMLSE6I-B6VLJpYF.js";
3
- import { U, A } from "./NDSCUZ25-CRhHG4rp.js";
4
- import { D } from "./VSWIZJ7B-B67GWWkR.js";
5
- import { d as de, e as ee, q, i, b as e, R, V } from "./lazy-xGoFzwfG.js";
1
+ import { q as qe$1, z as ze$1, j as je$1 } from "./LLLWOAQD-BjLHR3Pk.js";
2
+ import { x as x$1 } from "./PDMLSE6I-Cr8MjczD.js";
3
+ import { U, A } from "./NDSCUZ25-Bl1idg0d.js";
4
+ import { D } from "./VSWIZJ7B-DbkRTlJD.js";
5
+ import { d as de, e as ee, q, i, b as e, R, V } from "./lazy-DE7xn_YD.js";
6
6
  import { m, c } from "./DKTLEL5E-Dj3316cp.js";
7
- import { J as Jn, n as ne$1, e as ee$1, b as an, o as oe, K as Kn, Z as Zn, r as re } from "./UWRPUF3N-B9f5cVuf.js";
7
+ import { J as Jn, n as ne$1, e as ee$1, b as an, o as oe, K as Kn, Z as Zn, r as re } from "./UWRPUF3N-ONJaPLUk.js";
8
8
  import { H, T } from "./2CHDFZHC-B7OS2WPy.js";
9
- import { n as ne, h as he, x, W as Wt, f as fe, S, d as de$1, L, b as be } from "./KHUP5TOH-0CDf31VX.js";
10
- import "./core-DUTJyMGZ.js";
9
+ import { n as ne, h as he, x, W as Wt, f as fe, S, d as de$1, L, b as be } from "./KHUP5TOH-DevvG2jY.js";
10
+ import "./core-T80gwwf3.js";
11
11
  import "./vendor-BpwX-s_O.js";
12
12
  import "./vendor-react-bPTwWURR.js";
13
13
  function Ye(i2) {
@@ -1,8 +1,8 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "./vendor-react-bPTwWURR.js";
2
- import { r as retainEditorWorkers, t as trackRendererWorker } from "./index-CpGbxp8B.js";
3
- import { W as WorkerPoolContextProvider, P as PREFERRED_HIGHLIGHTER, u as useWorkerPool } from "./pierre-theme-CwuG23St.js";
4
- import { g as useEditorEnvironment } from "./kit-u_PHwNWF.js";
5
- import "./core-DUTJyMGZ.js";
2
+ import { r as retainEditorWorkers, t as trackRendererWorker } from "./index-BbyDWT39.js";
3
+ import { W as WorkerPoolContextProvider, P as PREFERRED_HIGHLIGHTER, u as useWorkerPool } from "./pierre-theme-BouAfjrk.js";
4
+ import { g as useEditorEnvironment } from "./kit-DgkO1_s6.js";
5
+ import "./core-T80gwwf3.js";
6
6
  import "./vendor-BpwX-s_O.js";
7
7
  import "./vendor-motion-BgQeucLF.js";
8
8
  import "./vendor-editor-Cx3SvGyZ.js";
@@ -1,12 +1,12 @@
1
1
  import { j as jsxRuntimeExports, r as reactExports, a as reactDomExports } from "./vendor-react-bPTwWURR.js";
2
- import { E as useLabels, X as TabPill, Y as usePresence, _ as readMenuExitMs, $ as useCodeHighlight, U as Tooltip, V as IconButton, T as useEditorPrefs, h as useFilesHost, i as useFilesLabels, a0 as useCodeDocument, a1 as excerptFromContents, a2 as serializeDiagnostic, H as languageFor, J as rangeLabel, M as attachmentName, w as useAppearanceReducedMotion, P as PanelLoading, m as mediaTypeOfPath, a3 as mediaSiblings, a4 as Breadcrumb, I as IconToggle, B as PanelEmpty, a5 as readPanelMs, a6 as useResizeDrag, a7 as useOptionalConfirm, a8 as entryRefusalText, a9 as topLevelPaths, aa as parentOf, ab as inFolder, ac as nameOf, ad as droppedItems, j as filesRootOf, ae as movedPath, af as isUnder, ag as filesScopeKey, ah as createMemoryFilesLayout, n as usePanelVisible, ai as useAppearanceState, aj as useReadable, z as steppedIndex, R as RowActionsMenu } from "./kit-u_PHwNWF.js";
2
+ import { E as useLabels, X as TabPill, Y as usePresence, _ as readMenuExitMs, $ as useCodeHighlight, U as Tooltip, V as IconButton, T as useEditorPrefs, h as useFilesHost, i as useFilesLabels, a0 as useCodeDocument, a1 as excerptFromContents, a2 as serializeDiagnostic, H as languageFor, J as rangeLabel, M as attachmentName, w as useAppearanceReducedMotion, P as PanelLoading, m as mediaTypeOfPath, a3 as mediaSiblings, a4 as Breadcrumb, I as IconToggle, B as PanelEmpty, a5 as readPanelMs, a6 as useResizeDrag, a7 as useOptionalConfirm, a8 as entryRefusalText, a9 as topLevelPaths, aa as parentOf, ab as inFolder, ac as nameOf, ad as droppedItems, j as filesRootOf, ae as movedPath, af as isUnder, ag as filesScopeKey, ah as createMemoryFilesLayout, n as usePanelVisible, ai as useAppearanceState, aj as useReadable, z as steppedIndex, R as RowActionsMenu } from "./kit-DgkO1_s6.js";
3
3
  import { c as createFileTreeIconResolver, g as getBuiltInSpriteSheet, n as normalizeFileTreeIcons, i as isColoredBuiltInIconSet, F as FileIcon } from "./FileIcon-acads6Ac.js";
4
- import { aE as TREES_HOST_STYLE, aF as TREES_UNSAFE_CSS, u as useWorkerPool } from "./pierre-theme-CwuG23St.js";
5
- import { C as CodeEditor, E as EditStateManager } from "./CodeEditor-D8TMSvb4.js";
6
- import { g as DIAGNOSTIC_GLYPH, h as fileActionItems, i as useFilesChat, j as useCodeReview, k as diagnosticsByLine, l as diagnosticMarkers, m as diagnosticsAt, D as DiffScroller, R as ReviewableDiff, p as parseFilePatch, c as countBySeverity, u as useDiagnosticsRun, o as absolutePath, q as MediaFrame, M as MediaView, a as useFolderChanges, e as useNoKeyScope, n as nameMatches, F as FilesChatContext, S as SearchPanel, d as useNoEdits } from "./useFolderChanges-AOk0dbsA.js";
7
- import { ad as REVEAL_FALLBACK_MS, d as diffLines, u as useFind, F as FindBar } from "./useDetachCleanup-hiha0T2M.js";
4
+ import { aE as TREES_HOST_STYLE, aF as TREES_UNSAFE_CSS, u as useWorkerPool } from "./pierre-theme-BouAfjrk.js";
5
+ import { C as CodeEditor, E as EditStateManager } from "./CodeEditor-CIwCP1F_.js";
6
+ import { g as DIAGNOSTIC_GLYPH, h as fileActionItems, i as useFilesChat, j as useCodeReview, k as diagnosticsByLine, l as diagnosticMarkers, m as diagnosticsAt, D as DiffScroller, R as ReviewableDiff, p as parseFilePatch, c as countBySeverity, u as useDiagnosticsRun, o as absolutePath, q as MediaFrame, M as MediaView, a as useFolderChanges, e as useNoKeyScope, n as nameMatches, F as FilesChatContext, S as SearchPanel, d as useNoEdits } from "./useFolderChanges-_vflCTEj.js";
7
+ import { ad as REVEAL_FALLBACK_MS, d as diffLines, u as useFind, F as FindBar } from "./useDetachCleanup-1PVBQ1U4.js";
8
8
  import "./vendor-motion-BgQeucLF.js";
9
- import "./core-DUTJyMGZ.js";
9
+ import "./core-T80gwwf3.js";
10
10
  import "./vendor-BpwX-s_O.js";
11
11
  import "./vendor-editor-Cx3SvGyZ.js";
12
12
  import "./hastToHtml-AUrFnNH_.js";
@@ -8603,7 +8603,8 @@ function FileTree2({
8603
8603
  style,
8604
8604
  openPaths,
8605
8605
  label,
8606
- editing
8606
+ editing,
8607
+ onExpandFolder
8607
8608
  }) {
8608
8609
  const labels = useLabels();
8609
8610
  const paths = reactExports.useMemo(() => entries.map((e2) => e2.path), [entries]);
@@ -8668,6 +8669,28 @@ function FileTree2({
8668
8669
  }
8669
8670
  } : {}
8670
8671
  });
8672
+ const lazyDirs = reactExports.useMemo(
8673
+ () => entries.filter((e2) => e2.ignored && e2.kind === "dir" && e2.path.endsWith("/")).map((e2) => e2.path),
8674
+ [entries]
8675
+ );
8676
+ const lazyRef = reactExports.useRef({ dirs: lazyDirs, onExpandFolder });
8677
+ lazyRef.current = { dirs: lazyDirs, onExpandFolder };
8678
+ reactExports.useEffect(() => {
8679
+ const open = /* @__PURE__ */ new Set();
8680
+ return model.subscribe(() => {
8681
+ const { dirs, onExpandFolder: report } = lazyRef.current;
8682
+ if (!report) return;
8683
+ for (const path of dirs) {
8684
+ const item = model.getItem(path);
8685
+ const expanded2 = item !== null && "isExpanded" in item && item.isExpanded();
8686
+ if (!expanded2) open.delete(path);
8687
+ else if (!open.has(path)) {
8688
+ open.add(path);
8689
+ report(bare(path));
8690
+ }
8691
+ }
8692
+ });
8693
+ }, [model]);
8671
8694
  reactExports.useEffect(() => {
8672
8695
  if (!editable) return;
8673
8696
  return model.onMutation("remove", (event) => {
@@ -10923,6 +10946,14 @@ const TreeColumn = reactExports.memo(function TreeColumn2(p2) {
10923
10946
  /* @__PURE__ */ jsxRuntimeExports.jsx(IconToggle, { active: false, onClick: p2.onRefresh, icon: "i-ph-arrows-clockwise", label: labels.filesRefresh })
10924
10947
  ] })
10925
10948
  ] }),
10949
+ p2.truncated && !p2.search && /* @__PURE__ */ jsxRuntimeExports.jsx(
10950
+ "p",
10951
+ {
10952
+ className: "zg-meta shrink-0 mx-3 mb-1 truncate",
10953
+ title: labels.filesTruncated(p2.truncated.shown, p2.truncated.total, !!p2.truncated.atLeast),
10954
+ children: labels.filesTruncated(p2.truncated.shown, p2.truncated.total, !!p2.truncated.atLeast)
10955
+ }
10956
+ ),
10926
10957
  p2.notice && !p2.search && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { role: "alert", className: "zg-well shrink-0 flex items-center gap-1.5 h-7 mx-2 mb-1 pl-2 pr-1 text-xs", children: [
10927
10958
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "i-ph-warning-circle text-zg-label text-[var(--zg-text-muted)] shrink-0", "aria-hidden": true }),
10928
10959
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "flex-1 min-w-0 truncate text-[var(--zg-text)]", title: p2.notice, children: p2.notice }),
@@ -10948,6 +10979,7 @@ const TreeColumn = reactExports.memo(function TreeColumn2(p2) {
10948
10979
  onOpen: p2.onOpen,
10949
10980
  onContextMenu: p2.onContextMenu,
10950
10981
  openPaths: p2.openPaths,
10982
+ ...p2.onExpandFolder ? { onExpandFolder: p2.onExpandFolder } : {},
10951
10983
  ...p2.editing ? { editing: p2.editing } : {},
10952
10984
  className: "flex-1 min-h-0"
10953
10985
  }
@@ -11409,9 +11441,14 @@ function useOpenFiles(scope, layout, layoutStore, prefs, source) {
11409
11441
  );
11410
11442
  }
11411
11443
  const TOOL_RESULT_DEBOUNCE_MS = 400;
11444
+ const NO_FOLDERS = /* @__PURE__ */ new Map();
11412
11445
  function useWorkspace(scope, showIgnored, visible, useEdits) {
11413
11446
  const host = useFilesHost();
11414
- const [entries, setEntries] = reactExports.useState(null);
11447
+ const [listed, setListed] = reactExports.useState(null);
11448
+ const [truncated, setTruncated] = reactExports.useState(null);
11449
+ const [opened, setOpened] = reactExports.useState(NO_FOLDERS);
11450
+ const openedRef = reactExports.useRef(opened);
11451
+ openedRef.current = opened;
11415
11452
  const [status, setStatus] = reactExports.useState([]);
11416
11453
  const cwd = filesRootOf(scope) || null;
11417
11454
  const edits = useEdits(scope.session ?? null);
@@ -11420,25 +11457,66 @@ function useWorkspace(scope, showIgnored, visible, useEdits) {
11420
11457
  const refresh = reactExports.useCallback(async () => {
11421
11458
  if (!cwd) return;
11422
11459
  const mine = ++reads.current;
11423
- let list;
11460
+ const folders2 = [...openedRef.current.keys()];
11461
+ let listing;
11424
11462
  let git;
11463
+ let inFolders;
11425
11464
  try {
11426
- [list, git] = await Promise.all([
11427
- host.list ? host.list(cwd, { showIgnored }) : [],
11428
- host.gitStatus ? host.gitStatus(cwd) : []
11465
+ [listing, git, inFolders] = await Promise.all([
11466
+ host.list ? host.list(cwd, { showIgnored }) : { entries: [] },
11467
+ host.gitStatus ? host.gitStatus(cwd) : [],
11468
+ Promise.all(
11469
+ folders2.map(async (dir) => host.list ? (await host.list(cwd, { showIgnored, dir })).entries : [])
11470
+ )
11429
11471
  ]);
11430
11472
  } catch {
11431
- if (mine === reads.current) setEntries((prev) => prev ?? []);
11473
+ if (mine === reads.current) setListed((prev) => prev ?? []);
11432
11474
  return;
11433
11475
  }
11434
11476
  if (mine !== reads.current) return;
11435
- setEntries((prev) => sameEntries(prev, list) ? prev : list);
11477
+ const list = listing.entries;
11478
+ setListed((prev) => sameEntries(prev, list) ? prev : list);
11479
+ setTruncated((prev) => sameTruncation(prev, listing.truncated) ? prev : listing.truncated ?? null);
11436
11480
  setStatus((prev) => sameStatus(prev, git) ? prev : git);
11481
+ if (folders2.length > 0) {
11482
+ setOpened((prev) => {
11483
+ let changed = false;
11484
+ const next = new Map(prev);
11485
+ folders2.forEach((dir, i2) => {
11486
+ const fresh = inFolders[i2];
11487
+ if (sameEntries(prev.get(dir) ?? null, fresh)) return;
11488
+ changed = true;
11489
+ next.set(dir, fresh);
11490
+ });
11491
+ return changed ? next : prev;
11492
+ });
11493
+ }
11437
11494
  }, [host, cwd, showIgnored]);
11495
+ const generation = reactExports.useRef(0);
11438
11496
  reactExports.useEffect(() => {
11439
- setEntries(null);
11497
+ generation.current++;
11498
+ setListed(null);
11499
+ setTruncated(null);
11500
+ setOpened(NO_FOLDERS);
11501
+ openedRef.current = NO_FOLDERS;
11440
11502
  void refresh();
11441
11503
  }, [refresh]);
11504
+ const openFolder = reactExports.useCallback(
11505
+ (dir) => {
11506
+ const list = host.list;
11507
+ if (!cwd || !list || openedRef.current.has(dir)) return;
11508
+ const mine = generation.current;
11509
+ list(cwd, { showIgnored, dir }).then(
11510
+ ({ entries: inside }) => {
11511
+ if (mine !== generation.current) return;
11512
+ setOpened((prev) => prev.has(dir) ? prev : new Map(prev).set(dir, inside));
11513
+ },
11514
+ () => void 0
11515
+ );
11516
+ },
11517
+ [host, cwd, showIgnored]
11518
+ );
11519
+ const entries = reactExports.useMemo(() => withOpenedFolders(listed, opened), [listed, opened]);
11442
11520
  const onToolResult = reactExports.useCallback(
11443
11521
  (handler) => {
11444
11522
  let timer = null;
@@ -11483,10 +11561,24 @@ function useWorkspace(scope, showIgnored, visible, useEdits) {
11483
11561
  return set;
11484
11562
  }, [edits, status]);
11485
11563
  return reactExports.useMemo(
11486
- () => ({ entries, status, changedPaths, edits, refresh, onToolResult }),
11487
- [entries, status, changedPaths, edits, refresh, onToolResult]
11564
+ () => ({ entries, status, changedPaths, edits, refresh, onToolResult, truncated, openFolder }),
11565
+ [entries, status, changedPaths, edits, refresh, onToolResult, truncated, openFolder]
11488
11566
  );
11489
11567
  }
11568
+ function sameTruncation(a2, b2) {
11569
+ if (!a2 || !b2) return !a2 && !b2;
11570
+ return a2.shown === b2.shown && a2.total === b2.total && a2.atLeast === b2.atLeast;
11571
+ }
11572
+ function withOpenedFolders(listed, opened) {
11573
+ if (!listed || opened.size === 0) return listed;
11574
+ const all = [...listed, ...[...opened.values()].flat()];
11575
+ const seen = /* @__PURE__ */ new Set();
11576
+ return all.filter((e2) => {
11577
+ if (seen.has(e2.path)) return false;
11578
+ seen.add(e2.path);
11579
+ return !(e2.kind === "dir" && (opened.get(e2.path.replace(/\/$/, ""))?.length ?? 0) > 0);
11580
+ });
11581
+ }
11490
11582
  function filterChanged(entries, changed) {
11491
11583
  return entries.filter((e2) => {
11492
11584
  const p2 = e2.path.replace(/\/$/, "");
@@ -11725,6 +11817,8 @@ function FilesTab({
11725
11817
  width: layout.filesTreeWidth ?? TREE_WIDTH.default,
11726
11818
  controlRef: treeControl,
11727
11819
  entries,
11820
+ truncated: workspace.truncated,
11821
+ onExpandFolder: workspace.openFolder,
11728
11822
  gitStatus: workspace.status,
11729
11823
  selectedPath: selected,
11730
11824
  onSelect: setSelected,
@@ -1,10 +1,10 @@
1
1
  import { p, h } from "./DKTLEL5E-Dj3316cp.js";
2
- import { x, D, O, M, $, V, W, G, P, H, j, z, B, U, v } from "./IU7WZTP6-DeXscWir.js";
3
- import { b as an, o as oe$1, K as Kn } from "./UWRPUF3N-B9f5cVuf.js";
4
- import { n as ne, L, W as Wt$1, c as jt, x as x$1, b as be } from "./KHUP5TOH-0CDf31VX.js";
5
- import { q, d as de } from "./lazy-xGoFzwfG.js";
2
+ import { x, D, O, M, $, V, W, G, P, H, j, z, B, U, v } from "./IU7WZTP6-kOLrUSwF.js";
3
+ import { b as an, o as oe$1, K as Kn } from "./UWRPUF3N-ONJaPLUk.js";
4
+ import { n as ne, L, W as Wt$1, c as jt, x as x$1, b as be } from "./KHUP5TOH-DevvG2jY.js";
5
+ import { q, d as de } from "./lazy-DE7xn_YD.js";
6
6
  import "./2CHDFZHC-B7OS2WPy.js";
7
- import "./core-DUTJyMGZ.js";
7
+ import "./core-T80gwwf3.js";
8
8
  import "./vendor-BpwX-s_O.js";
9
9
  import "./vendor-react-bPTwWURR.js";
10
10
  function It(s) {
@@ -1,11 +1,11 @@
1
- import { i } from "./D5TW5CPZ-C04jssFu.js";
1
+ import { i } from "./D5TW5CPZ-BXdKc68h.js";
2
2
  import { f } from "./DKTLEL5E-Dj3316cp.js";
3
- import { x as x$1, D, O, $, L, V as V$1, W, G, P as P$1, H, j, z, B as B$1, U } from "./IU7WZTP6-DeXscWir.js";
4
- import { K as Kn, b as an } from "./UWRPUF3N-B9f5cVuf.js";
5
- import { W as Wt, x as x$2, c as jt, L as L$1, n as ne, b as be, e as bt$1, P as P$2, S, $ as $t$1 } from "./KHUP5TOH-0CDf31VX.js";
6
- import { q, d as de } from "./lazy-xGoFzwfG.js";
3
+ import { x as x$1, D, O, $, L, V as V$1, W, G, P as P$1, H, j, z, B as B$1, U } from "./IU7WZTP6-kOLrUSwF.js";
4
+ import { K as Kn, b as an } from "./UWRPUF3N-ONJaPLUk.js";
5
+ import { W as Wt, x as x$2, c as jt, L as L$1, n as ne, b as be, e as bt$1, P as P$2, S, $ as $t$1 } from "./KHUP5TOH-DevvG2jY.js";
6
+ import { q, d as de } from "./lazy-DE7xn_YD.js";
7
7
  import "./2CHDFZHC-B7OS2WPy.js";
8
- import "./core-DUTJyMGZ.js";
8
+ import "./core-T80gwwf3.js";
9
9
  import "./vendor-BpwX-s_O.js";
10
10
  import "./vendor-react-bPTwWURR.js";
11
11
  var ae = class {
@@ -1,9 +1,9 @@
1
- import { T } from "./OHJ2EJXK-DUXRo20H.js";
2
- import { b as e, V, i, d as de } from "./lazy-xGoFzwfG.js";
1
+ import { T } from "./OHJ2EJXK-DCVoLmOH.js";
2
+ import { b as e, V, i, d as de } from "./lazy-DE7xn_YD.js";
3
3
  import { c, h } from "./DKTLEL5E-Dj3316cp.js";
4
- import { b as an, _ as _t } from "./UWRPUF3N-B9f5cVuf.js";
5
- import { n as ne, x, W as Wt, L, c as jt, b as be$1 } from "./KHUP5TOH-0CDf31VX.js";
6
- import "./core-DUTJyMGZ.js";
4
+ import { b as an, _ as _t } from "./UWRPUF3N-ONJaPLUk.js";
5
+ import { n as ne, x, W as Wt, L, c as jt, b as be$1 } from "./KHUP5TOH-DevvG2jY.js";
6
+ import "./core-T80gwwf3.js";
7
7
  import "./vendor-BpwX-s_O.js";
8
8
  import "./vendor-react-bPTwWURR.js";
9
9
  import "./2CHDFZHC-B7OS2WPy.js";
@@ -1,4 +1,4 @@
1
- import { V as V$1 } from "./lazy-xGoFzwfG.js";
1
+ import { V as V$1 } from "./lazy-DE7xn_YD.js";
2
2
  var b = /* @__PURE__ */ new WeakMap();
3
3
  function S(n) {
4
4
  let e = n.map((r, i) => i), o = [];