zidane-gui 9.1.4 → 9.1.9

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 +525 -142
  2. package/out/preload/index.mjs +28 -9
  3. package/out/renderer/assets/{43YPWK3Q-BLwohgFu.js → 43YPWK3Q-BVJpf1u1.js} +6 -6
  4. package/out/renderer/assets/{45MVAN6X-DCPmrh2y.js → 45MVAN6X-BWuIeWOc.js} +5 -5
  5. package/out/renderer/assets/{46GJKBLZ-n_NiMQEY.js → 46GJKBLZ-41BAHmt4.js} +10 -10
  6. package/out/renderer/assets/{63WH7YNF-B0-gnOSz.js → 63WH7YNF-DuatnhlB.js} +8 -8
  7. package/out/renderer/assets/{6DDU7VKX-BKAF5gyQ.js → 6DDU7VKX-BAI-vKC1.js} +6 -6
  8. package/out/renderer/assets/{CLQLV5VT-BIZsXon4.js → CLQLV5VT-CmHu2HE3.js} +6 -6
  9. package/out/renderer/assets/{CUSPXG5M-Donlp74Y.js → CUSPXG5M-DE3uzfbs.js} +6 -6
  10. package/out/renderer/assets/{CodeEditor-80QT2Pyq.js → CodeEditor-CIwCP1F_.js} +3 -3
  11. package/out/renderer/assets/{ComposerEditor-CXpNHoo1.js → ComposerEditor-leA8S_Yk.js} +2 -2
  12. package/out/renderer/assets/{D3L7O4X2-BCbmkNpB.js → D3L7O4X2-BZ4caDcX.js} +4 -4
  13. package/out/renderer/assets/{D5TW5CPZ-Bp-wetYa.js → D5TW5CPZ-BXdKc68h.js} +1 -1
  14. package/out/renderer/assets/{DiffsTab-Dy8a_hwG.js → DiffsTab-CyRIVfQk.js} +5 -5
  15. package/out/renderer/assets/{EGADTWYV-CqSrkc7g.js → EGADTWYV-Bf6Kicdv.js} +5 -5
  16. package/out/renderer/assets/{EOJSJZXM-BTI84tys.js → EOJSJZXM-NAa-K4U0.js} +8 -8
  17. package/out/renderer/assets/{EditorWorkers-Durn1REy.js → EditorWorkers-CY0St-9O.js} +4 -4
  18. package/out/renderer/assets/{FilesTab-h32FFVsw.js → FilesTab-CnRw0KCN.js} +111 -17
  19. package/out/renderer/assets/{G2OEIG6X-CS8YUqSL.js → G2OEIG6X-BarwxCkp.js} +5 -5
  20. package/out/renderer/assets/{GXJ2T77W-BHaQFzB4.js → GXJ2T77W-CyQVHlsG.js} +6 -6
  21. package/out/renderer/assets/{HX3UMAK7-DOOY2pSg.js → HX3UMAK7-BcoG4mYG.js} +5 -5
  22. package/out/renderer/assets/{IU7WZTP6-D7pwhQLH.js → IU7WZTP6-kOLrUSwF.js} +1 -1
  23. package/out/renderer/assets/{J5J2NR2G-SPjkbJgo.js → J5J2NR2G-DE-SGCIz.js} +4 -4
  24. package/out/renderer/assets/{JRCWTJEL-DT7JLR7k.js → JRCWTJEL-DZY5HKk0.js} +3 -3
  25. package/out/renderer/assets/{KHUP5TOH-BX0A2YHC.js → KHUP5TOH-DevvG2jY.js} +1 -1
  26. package/out/renderer/assets/{L74FQTH5-MbDLfIZo.js → L74FQTH5-CnOj-zIY.js} +4 -4
  27. package/out/renderer/assets/{LAV4ZXOS-ClHlsIHg.js → LAV4ZXOS-BATWssHi.js} +6 -6
  28. package/out/renderer/assets/{LBIZYCRR-DmofT7Vk.js → LBIZYCRR-BXTsyX1O.js} +7 -7
  29. package/out/renderer/assets/{LFFXNLRS-yLLLefJM.js → LFFXNLRS-BpnXEoXM.js} +3 -3
  30. package/out/renderer/assets/{LLLWOAQD-DNhT1-qV.js → LLLWOAQD-BjLHR3Pk.js} +1 -1
  31. package/out/renderer/assets/{LTYQZ5U5-BxUtiilS.js → LTYQZ5U5-CDOIyknV.js} +8 -8
  32. package/out/renderer/assets/{NDSCUZ25-DltJ5xGa.js → NDSCUZ25-Bl1idg0d.js} +2 -2
  33. package/out/renderer/assets/{NMN3IKWL-BXUYzi9o.js → NMN3IKWL-BYE2yrn3.js} +9 -9
  34. package/out/renderer/assets/{NMUA3R2D-CAVxt8OJ.js → NMUA3R2D-Xl410xeQ.js} +7 -7
  35. package/out/renderer/assets/{NY5A6PPW-B3P5KUoQ.js → NY5A6PPW-CkzCXBsB.js} +3 -3
  36. package/out/renderer/assets/{OHJ2EJXK-CKyEtj37.js → OHJ2EJXK-DCVoLmOH.js} +1 -1
  37. package/out/renderer/assets/{OU2GIT2H-i9HfUuBk.js → OU2GIT2H-DG4LbVmY.js} +4 -4
  38. package/out/renderer/assets/{PDMLSE6I-BnbSSXbG.js → PDMLSE6I-Cr8MjczD.js} +2 -2
  39. package/out/renderer/assets/{PJ7X32S5-Do_rplzd.js → PJ7X32S5-DFZu5Xsj.js} +5 -5
  40. package/out/renderer/assets/{RLLQ44NJ-SEvjKAya.js → RLLQ44NJ-D-LvBssh.js} +7 -7
  41. package/out/renderer/assets/{S6DWMCK5-CK9P5x9H.js → S6DWMCK5-BQEAXG2z.js} +8 -8
  42. package/out/renderer/assets/{STIOTUT7-KYZS5tvF.js → STIOTUT7-jszPNHGr.js} +6 -6
  43. package/out/renderer/assets/{SXSLPWUD-ylCpsia5.js → SXSLPWUD-CEMEDuKR.js} +2 -2
  44. package/out/renderer/assets/{TR4WJQGX-DXlqK6NQ.js → TR4WJQGX-8wGWCKKm.js} +1 -1
  45. package/out/renderer/assets/{UWRPUF3N-7_KSfEv0.js → UWRPUF3N-ONJaPLUk.js} +1 -1
  46. package/out/renderer/assets/{VSWIZJ7B-qmPn48eQ.js → VSWIZJ7B-DbkRTlJD.js} +1 -1
  47. package/out/renderer/assets/{WM7NR6YK-D4oWq6L3.js → WM7NR6YK-CFy2rge0.js} +4 -4
  48. package/out/renderer/assets/{WXKV2YEK-DsK-bqP8.js → WXKV2YEK-BFHYSpQF.js} +3 -3
  49. package/out/renderer/assets/{XLHPVVFU-4_9lhZe2.js → XLHPVVFU-BJFPh1Rn.js} +1 -1
  50. package/out/renderer/assets/{YNX532HU-C1DPijVc.js → YNX532HU-3QqofRh5.js} +5 -5
  51. package/out/renderer/assets/{YUPSMAUO-0pM5w-ie.js → YUPSMAUO-COLbQro8.js} +1 -1
  52. package/out/renderer/assets/{ZFRCZTLK-4EIJek0V.js → ZFRCZTLK-BuPbgRNC.js} +6 -6
  53. package/out/renderer/assets/{ZZDR4CN3-B_T2R-Zh.js → ZZDR4CN3-Do4onAxu.js} +4 -4
  54. package/out/renderer/assets/{core-2jWUG3m-.js → core-T80gwwf3.js} +2251 -1661
  55. package/out/renderer/assets/{file-tabs-DwqRIh1X.js → file-tabs-DWQZlQfx.js} +5 -5
  56. package/out/renderer/assets/{ghostty-web-DnI2p8KS.js → ghostty-web-DXNGAB4P.js} +1 -1
  57. package/out/renderer/assets/{highlights-6LT5DvBO.js → highlights-B0vcJ7-n.js} +2 -2
  58. package/out/renderer/assets/{highlights-DmxOEap0.js → highlights-Yvd7kpJw.js} +3 -3
  59. package/out/renderer/assets/{index-BnnCv70H.js → index-BbyDWT39.js} +465 -284
  60. package/out/renderer/assets/{index-C-Dal-Bp.css → index-CsOxRbAw.css} +186 -20
  61. package/out/renderer/assets/{kit-CdRTRA2T.js → kit-DgkO1_s6.js} +5641 -1986
  62. package/out/renderer/assets/{langs-D9nZatrh.js → langs-7bXaMxtL.js} +1 -1
  63. package/out/renderer/assets/{lazy-C1DShJVi.js → lazy-DE7xn_YD.js} +3 -3
  64. package/out/renderer/assets/{loader-BlmA-DDi.js → loader-CdKsI-e2.js} +1 -1
  65. package/out/renderer/assets/{pierre-theme-DpuLJ_93.js → pierre-theme-BouAfjrk.js} +7 -7
  66. package/out/renderer/assets/{shiki-RupN-xqP.js → shiki-CIKuDsHH.js} +3 -3
  67. package/out/renderer/assets/{stream-tokenizer-DLDzyMrK.js → stream-tokenizer-JLLsdqkH.js} +1 -1
  68. package/out/renderer/assets/{themes-B1aebwax.js → themes-mM7Qtyxf.js} +2 -2
  69. package/out/renderer/assets/{useDetachCleanup-BXvhEVk-.js → useDetachCleanup-1PVBQ1U4.js} +2 -2
  70. package/out/renderer/assets/{useFolderChanges-BHQktE6l.js → useFolderChanges-_vflCTEj.js} +144 -73
  71. package/out/renderer/index.html +4 -4
  72. package/package.json +2 -2
  73. package/scripts/app-installer.mjs +10 -1
@@ -138,7 +138,9 @@ const api = {
138
138
  getViews: () => ipcRenderer.invoke("sidebar:getViews"),
139
139
  setView: (spaceId, view) => ipcRenderer.invoke("sidebar:setView", spaceId, view),
140
140
  getSpace: () => ipcRenderer.invoke("sidebar:getSpace"),
141
- setSpace: (spaceId) => ipcRenderer.invoke("sidebar:setSpace", spaceId)
141
+ setSpace: (spaceId) => ipcRenderer.invoke("sidebar:setSpace", spaceId),
142
+ getHistory: () => ipcRenderer.invoke("sidebar:getHistory"),
143
+ setHistory: (history) => ipcRenderer.invoke("sidebar:setHistory", history)
142
144
  },
143
145
  repo: {
144
146
  defaultParent: () => ipcRenderer.invoke("repo:defaultParent"),
@@ -178,6 +180,8 @@ const api = {
178
180
  onChanged: (cb) => subscribe("windows:changed", cb),
179
181
  onShow: (cb) => subscribe("windows:show", cb),
180
182
  takePendingShow: () => ipcRenderer.invoke("windows:takePendingShow"),
183
+ onNewDraft: (cb) => subscribe("windows:newDraft", cb),
184
+ takePendingDraft: () => ipcRenderer.invoke("windows:takePendingDraft"),
181
185
  onPanelAction: (cb) => subscribe("windows:panelAction", cb)
182
186
  },
183
187
  appearance: {
@@ -208,8 +212,6 @@ const api = {
208
212
  send: (opts) => ipcRenderer.invoke("chat:send", opts),
209
213
  interrupt: (sessionId) => ipcRenderer.invoke("chat:interrupt", sessionId),
210
214
  isRunning: (sessionId) => ipcRenderer.invoke("chat:isRunning", sessionId),
211
- steer: (sessionId, message) => ipcRenderer.invoke("chat:steer", sessionId, message),
212
- followUp: (sessionId, message) => ipcRenderer.invoke("chat:followUp", sessionId, message),
213
215
  pushQueued: (sessionId, message, activatedSkills) => ipcRenderer.invoke("chat:pushQueued", sessionId, message, activatedSkills),
214
216
  listWork: (sessionId) => ipcRenderer.invoke("chat:listWork", sessionId),
215
217
  cancelWork: (sessionId, id, reason) => ipcRenderer.invoke("chat:cancelWork", sessionId, id, reason),
@@ -238,13 +240,27 @@ const api = {
238
240
  },
239
241
  queue: {
240
242
  list: (sessionId) => ipcRenderer.invoke("queue:list", sessionId),
241
- 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),
242
244
  remove: (sessionId, id) => ipcRenderer.invoke("queue:remove", sessionId, id),
243
245
  update: (sessionId, id, text, attachments) => ipcRenderer.invoke("queue:update", sessionId, id, text, attachments),
244
246
  attachments: (sessionId, id) => ipcRenderer.invoke("queue:attachments", sessionId, id),
245
247
  pushNow: (sessionId, id) => ipcRenderer.invoke("queue:pushNow", sessionId, id),
246
248
  onChanged: (cb) => subscribe("queue:changed", cb)
247
249
  },
250
+ secrets: {
251
+ list: (sessionId) => ipcRenderer.invoke("secrets:list", sessionId),
252
+ save: (sessionId, input) => ipcRenderer.invoke("secrets:save", sessionId, input),
253
+ revoke: (sessionId, name) => ipcRenderer.invoke("secrets:revoke", sessionId, name)
254
+ },
255
+ schedules: {
256
+ status: () => ipcRenderer.invoke("schedules:status"),
257
+ list: () => ipcRenderer.invoke("schedules:list"),
258
+ create: (input) => ipcRenderer.invoke("schedules:create", input),
259
+ update: (id, patch) => ipcRenderer.invoke("schedules:update", id, patch),
260
+ delete: (id) => ipcRenderer.invoke("schedules:delete", id),
261
+ runNow: (id) => ipcRenderer.invoke("schedules:runNow", id),
262
+ fires: (id, limit) => ipcRenderer.invoke("schedules:fires", id, limit)
263
+ },
248
264
  presence: {
249
265
  list: () => ipcRenderer.invoke("presence:list"),
250
266
  onChanged: (cb) => subscribe("presence:changed", cb)
@@ -263,10 +279,11 @@ const api = {
263
279
  searchAll: (query, sessionIds, excerptLimit) => ipcRenderer.invoke("history:searchAll", query, sessionIds, excerptLimit)
264
280
  },
265
281
  system: {
266
- openPath: (path) => ipcRenderer.invoke("system:openPath", path),
282
+ openPath: (path, at) => ipcRenderer.invoke("system:openPath", path, at),
267
283
  revealPath: (path) => ipcRenderer.invoke("system:revealPath", path),
268
284
  revealConfig: (location) => ipcRenderer.invoke("system:revealConfig", location),
269
- repoWebBase: (cwd) => ipcRenderer.invoke("system:repoWebBase", cwd)
285
+ repoWebBase: (cwd) => ipcRenderer.invoke("system:repoWebBase", cwd),
286
+ defaultBrowser: () => ipcRenderer.invoke("system:defaultBrowser")
270
287
  },
271
288
  shell: {
272
289
  run: (sessionId, command) => ipcRenderer.invoke("shell:run", sessionId, command),
@@ -279,9 +296,10 @@ const api = {
279
296
  remove: (sessionId, key) => ipcRenderer.invoke("blocks:remove", sessionId, key),
280
297
  onChanged: (cb) => subscribe("blocks:changed", cb)
281
298
  },
282
- todos: {
283
- get: (sessionId) => ipcRenderer.invoke("todos:get", sessionId),
284
- set: (sessionId, items) => ipcRenderer.invoke("todos:set", sessionId, items)
299
+ plans: {
300
+ get: (sessionId) => ipcRenderer.invoke("plans:get", sessionId),
301
+ edit: (sessionId, planId, op) => ipcRenderer.invoke("plans:edit", sessionId, planId, op),
302
+ control: (sessionId, planId, action) => ipcRenderer.invoke("plans:control", sessionId, planId, action)
285
303
  },
286
304
  artifacts: {
287
305
  list: (query) => ipcRenderer.invoke("artifacts:list", query),
@@ -546,6 +564,7 @@ const api = {
546
564
  clone: (hostId, input, parent) => ipcRenderer.invoke("hosts:clone", hostId, input, parent),
547
565
  authStatus: (hostId) => ipcRenderer.invoke("hosts:authStatus", hostId),
548
566
  capabilities: (hostId, refresh) => ipcRenderer.invoke("hosts:capabilities", hostId, refresh),
567
+ installTool: (hostId, name) => ipcRenderer.invoke("hosts:installTool", hostId, name),
549
568
  selfUpdate: (hostId, action, enabled) => ipcRenderer.invoke("hosts:selfUpdate", hostId, action, enabled),
550
569
  authSetApiKey: (hostId, provider, key) => ipcRenderer.invoke("hosts:authSetApiKey", hostId, provider, key),
551
570
  authRemove: (hostId, provider, account) => ipcRenderer.invoke("hosts:authRemove", hostId, provider, account),
@@ -1,10 +1,10 @@
1
- import { i } from "./D5TW5CPZ-Bp-wetYa.js";
2
- import { A, E } from "./OHJ2EJXK-CKyEtj37.js";
3
- import { q, R as R$1, g as r, d as de, e as ee$1 } from "./lazy-C1DShJVi.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-D7pwhQLH.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-BX0A2YHC.js";
7
- import "./core-2jWUG3m-.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-4_9lhZe2.js";
2
- import { s, T } from "./TR4WJQGX-DXlqK6NQ.js";
3
- import { i, b as e, V, d as de } from "./lazy-C1DShJVi.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-BX0A2YHC.js";
6
- import "./core-2jWUG3m-.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-BxUtiilS.js";
2
- import { X as Xn, Y as Yn, I as In, k as kn } from "./UWRPUF3N-7_KSfEv0.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-BX0A2YHC.js";
4
+ import { W as Wt, x } from "./KHUP5TOH-DevvG2jY.js";
5
5
  import "./FTXIJQGB-BX14b7pN.js";
6
- import "./lazy-C1DShJVi.js";
7
- import "./core-2jWUG3m-.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-0pM5w-ie.js";
12
- import "./LLLWOAQD-DNhT1-qV.js";
13
- import "./PDMLSE6I-BnbSSXbG.js";
14
- import "./NDSCUZ25-DltJ5xGa.js";
15
- import "./VSWIZJ7B-qmPn48eQ.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-C1DShJVi.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-0pM5w-ie.js";
5
- import { q as qe$1, z as ze$1, _ as _e, j as je$1, H as He$1 } from "./LLLWOAQD-DNhT1-qV.js";
6
- import { A, H as H$1, T as T$1, U } from "./NDSCUZ25-DltJ5xGa.js";
7
- import { o, i, P, F, R as R$1, B } from "./VSWIZJ7B-qmPn48eQ.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-7_KSfEv0.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-BX0A2YHC.js";
12
- import "./core-2jWUG3m-.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-ylCpsia5.js";
2
- import { g } from "./PDMLSE6I-BnbSSXbG.js";
3
- import { P, I, R } from "./VSWIZJ7B-qmPn48eQ.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-BX0A2YHC.js";
6
- import { q, d as de, r as re } from "./lazy-C1DShJVi.js";
7
- import "./core-2jWUG3m-.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-C1DShJVi.js";
2
- import { T } from "./OHJ2EJXK-CKyEtj37.js";
3
- import { g } from "./PDMLSE6I-BnbSSXbG.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-7_KSfEv0.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-BX0A2YHC.js";
8
- import "./core-2jWUG3m-.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-4_9lhZe2.js";
2
- import { s, T } from "./TR4WJQGX-DXlqK6NQ.js";
3
- import { q, d as de, i, b as e, V } from "./lazy-C1DShJVi.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-7_KSfEv0.js";
6
- import { x, W as Wt, b as be$1, L as L$1, p as pe, a as ae } from "./KHUP5TOH-BX0A2YHC.js";
7
- import "./core-2jWUG3m-.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-CdRTRA2T.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-BXvhEVk-.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-DpuLJ_93.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-CdRTRA2T.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-2jWUG3m-.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-D7pwhQLH.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-BX0A2YHC.js";
6
- import { d as de, e as ee } from "./lazy-C1DShJVi.js";
7
- import "./core-2jWUG3m-.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-D7pwhQLH.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-CdRTRA2T.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-BHQktE6l.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-BXvhEVk-.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-2jWUG3m-.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-DpuLJ_93.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-DXlqK6NQ.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-D7pwhQLH.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-BX0A2YHC.js";
5
- import { d as de$1, q } from "./lazy-C1DShJVi.js";
6
- import "./core-2jWUG3m-.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-DNhT1-qV.js";
2
- import { x as x$1 } from "./PDMLSE6I-BnbSSXbG.js";
3
- import { U, A } from "./NDSCUZ25-DltJ5xGa.js";
4
- import { D } from "./VSWIZJ7B-qmPn48eQ.js";
5
- import { d as de, e as ee, q, i, b as e, R, V } from "./lazy-C1DShJVi.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-7_KSfEv0.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-BX0A2YHC.js";
10
- import "./core-2jWUG3m-.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-BnnCv70H.js";
3
- import { W as WorkerPoolContextProvider, P as PREFERRED_HIGHLIGHTER, u as useWorkerPool } from "./pierre-theme-DpuLJ_93.js";
4
- import { g as useEditorEnvironment } from "./kit-CdRTRA2T.js";
5
- import "./core-2jWUG3m-.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, W as TabPill, X as usePresence, Y as readMenuExitMs, _ as useCodeHighlight, U as Tooltip, V as IconButton, T as useEditorPrefs, h as useFilesHost, i as useFilesLabels, $ as useCodeDocument, a0 as excerptFromContents, a1 as serializeDiagnostic, H as languageFor, J as rangeLabel, M as attachmentName, w as useAppearanceReducedMotion, P as PanelLoading, m as mediaTypeOfPath, a2 as mediaSiblings, a3 as Breadcrumb, I as IconToggle, B as PanelEmpty, a4 as readPanelMs, a5 as useResizeDrag, a6 as useOptionalConfirm, a7 as entryRefusalText, a8 as topLevelPaths, a9 as parentOf, aa as inFolder, ab as nameOf, ac as droppedItems, j as filesRootOf, ad as movedPath, ae as isUnder, af as filesScopeKey, ag as createMemoryFilesLayout, n as usePanelVisible, ah as useAppearanceState, ai as useReadable, z as steppedIndex, R as RowActionsMenu } from "./kit-CdRTRA2T.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-DpuLJ_93.js";
5
- import { C as CodeEditor, E as EditStateManager } from "./CodeEditor-80QT2Pyq.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-BHQktE6l.js";
7
- import { ad as REVEAL_FALLBACK_MS, d as diffLines, u as useFind, F as FindBar } from "./useDetachCleanup-BXvhEVk-.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-2jWUG3m-.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-D7pwhQLH.js";
3
- import { b as an, o as oe$1, K as Kn } from "./UWRPUF3N-7_KSfEv0.js";
4
- import { n as ne, L, W as Wt$1, c as jt, x as x$1, b as be } from "./KHUP5TOH-BX0A2YHC.js";
5
- import { q, d as de } from "./lazy-C1DShJVi.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-2jWUG3m-.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) {