@kabmo-labs/kabmo 0.44.0 → 0.45.0

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 (253) hide show
  1. package/dist/client/index.html +1 -1
  2. package/dist/client/index.js +1 -1
  3. package/dist/client/static/js/{CsvGrid-1t2q46rg.js → CsvGrid-z74weshk.js} +2 -2
  4. package/dist/client/static/js/{DocxView-301hxnwk.js → DocxView-dpe5x9ab.js} +5 -5
  5. package/dist/client/static/js/{DrawioView-47bwea5t.js → DrawioView-ftzwjf8v.js} +2 -2
  6. package/dist/client/static/js/{ImageView-68zdx5ex.js → ImageView-vchn6wyq.js} +1 -1
  7. package/dist/client/static/js/LayoutWrapper-1x0gnppc.js +2 -0
  8. package/dist/client/static/js/{Modal-fb9b4gq6.js → Modal-tteg7vtb.js} +18 -18
  9. package/dist/client/static/js/{PdfView-m64ksepp.js → PdfView-vjec8z3z.js} +1 -1
  10. package/dist/client/static/js/{SessionsView-zyjwhpzm.js → SessionsView-g7z3fxbp.js} +1 -1
  11. package/dist/client/static/js/{SheetView-e88sqprx.js → SheetView-hhtfkdhe.js} +25 -25
  12. package/dist/client/static/js/{SvgPreview-hs9a713t.js → SvgPreview-48n3ex6p.js} +1 -1
  13. package/dist/client/static/js/{abnfDiagram-O67JEVCF-fnr5kyqk.js → abnfDiagram-O67JEVCF-bpvzdara.js} +1 -1
  14. package/dist/client/static/js/architecture-7GRP2DOG-bch3nye9.js +1 -0
  15. package/dist/client/static/js/{architectureDiagram-NJMV4G6O-7v003363.js → architectureDiagram-NJMV4G6O-xw62cr7j.js} +3 -3
  16. package/dist/client/static/js/{astro-t9vjc0mc.js → astro-56b0as3q.js} +1 -1
  17. package/dist/client/static/js/bash-mevzaywf.js +1 -0
  18. package/dist/client/static/js/{blockDiagram-BEXU5L5S-k4mwbw3d.js → blockDiagram-BEXU5L5S-x3a6cgar.js} +4 -4
  19. package/dist/client/static/js/{c4Diagram-YGBWAQC7-688zq6f4.js → c4Diagram-YGBWAQC7-katvaxbj.js} +2 -2
  20. package/dist/client/static/js/{classDiagram-v2-NBCMYWYE-h0s16pxr.js → classDiagram-v2-NBCMYWYE-bjz4mqqh.js} +3 -3
  21. package/dist/client/static/js/{cose-bilkent-JH36ORCC-qb2t8qq5.js → cose-bilkent-JH36ORCC-fsn80psf.js} +1 -1
  22. package/dist/client/static/js/cpp-wk9z0c5g.js +1 -0
  23. package/dist/client/static/js/css-3w3p9s67.js +1 -0
  24. package/dist/client/static/js/cynefin-OW5HDTMX-vqy5jtnk.js +1 -0
  25. package/dist/client/static/js/{cynefinDiagram-VND7K2PF-syhtcr7b.js → cynefinDiagram-VND7K2PF-cfhbsnkm.js} +2 -2
  26. package/dist/client/static/js/{dagre-6A5THRUB-7wgbx6cm.js → dagre-6A5THRUB-j2wt7ns6.js} +2 -2
  27. package/dist/client/static/js/{diagram-22UHCM2B-951cmp5h.js → diagram-22UHCM2B-abrdj714.js} +8 -8
  28. package/dist/client/static/js/{diagram-3UASUU5V-mvdbqt7b.js → diagram-3UASUU5V-dbn15bxn.js} +1 -1
  29. package/dist/client/static/js/{diagram-ATOU4E4O-hkvdtgdm.js → diagram-ATOU4E4O-y79pwf7w.js} +3 -3
  30. package/dist/client/static/js/{diagram-CDSNMT55-bkkz35ca.js → diagram-CDSNMT55-f8ryt86n.js} +2 -2
  31. package/dist/client/static/js/{diagram-MLGK6HIB-z6pcrkc3.js → diagram-MLGK6HIB-ws7wn3q9.js} +1 -1
  32. package/dist/client/static/js/{diagram-MPIPVDR6-mkwf8j4m.js → diagram-MPIPVDR6-zmznrg13.js} +2 -2
  33. package/dist/client/static/js/{dockerfile-7gd570bm.js → dockerfile-qgc921kw.js} +1 -1
  34. package/dist/client/static/js/{ebnfDiagram-ZINNZB2B-trym26ts.js → ebnfDiagram-ZINNZB2B-y5q7hy1v.js} +1 -1
  35. package/dist/client/static/js/{elixir-z77c7tfn.js → elixir-12pgbgtq.js} +1 -1
  36. package/dist/client/static/js/{elk-276RUBZZ-gkhz67v6.js → elk-276RUBZZ-vddwbn6q.js} +1 -1
  37. package/dist/client/static/js/{erDiagram-OPXOYQCR-gkyr5cqs.js → erDiagram-OPXOYQCR-qdqcx4g4.js} +6 -6
  38. package/dist/client/static/js/{erlang-6vrvh2m6.js → erlang-811btv6p.js} +1 -1
  39. package/dist/client/static/js/eventmodeling-NTZA5JFV-65ph4s3m.js +1 -0
  40. package/dist/client/static/js/flowDiagram-KWPJA3E3-nh2tb65b.js +1 -0
  41. package/dist/client/static/js/{ganttDiagram-FUAMR5RP-1qpme6ks.js → ganttDiagram-FUAMR5RP-763hk9rm.js} +1 -1
  42. package/dist/client/static/js/gitGraph-4MIJSDKK-t45ekjb6.js +1 -0
  43. package/dist/client/static/js/{gitGraphDiagram-X574FWY7-wbg3kqak.js → gitGraphDiagram-X574FWY7-bgx1q5nw.js} +4 -4
  44. package/dist/client/static/js/graphql-027z8sc0.js +1 -0
  45. package/dist/client/static/js/html-fqda6wxx.js +1 -0
  46. package/dist/client/static/js/{index-ks23y2cd.js → index-03j5j1j0.js} +2 -2
  47. package/dist/client/static/js/{index-czedkbmb.js → index-05hx4ftf.js} +2 -2
  48. package/dist/client/static/js/index-0vk6v4y4.js +2 -0
  49. package/dist/client/static/js/{index-83pwa9c0.js → index-1nwwvv29.js} +1 -1
  50. package/dist/client/static/js/{index-31hntzse.js → index-228yzebd.js} +5 -5
  51. package/dist/client/static/js/{index-xf36nmbm.js → index-2b1wnvez.js} +2 -2
  52. package/dist/client/static/js/{index-6t21c6jt.js → index-34ff2vq6.js} +2 -2
  53. package/dist/client/static/js/{index-1923aj4g.js → index-3d21hpk7.js} +2 -2
  54. package/dist/client/static/js/{index-hfsvwfgw.js → index-3h2mr90j.js} +2 -2
  55. package/dist/client/static/js/{index-svmzgtcx.js → index-3sqndc9n.js} +2 -2
  56. package/dist/client/static/js/{index-6gyk52ff.js → index-47wn2gjx.js} +1 -1
  57. package/dist/client/static/js/{index-6ah5sj5y.js → index-4b5b6g0k.js} +1 -1
  58. package/dist/client/static/js/{index-53ysgsd2.js → index-5b2vsbcf.js} +1 -1
  59. package/dist/client/static/js/{index-qm92sf9w.js → index-5mrqfs82.js} +12 -12
  60. package/dist/client/static/js/{index-62ng8tkj.js → index-61j9qkck.js} +3 -3
  61. package/dist/client/static/js/index-6bm4pw90.css +1 -0
  62. package/dist/client/static/js/{index-fj4k07zt.js → index-6sqmhdyv.js} +2 -2
  63. package/dist/client/static/js/{index-gtkhz0hj.js → index-8dtp7mt0.js} +2 -2
  64. package/dist/client/static/js/index-a11ptyzf.js +1 -0
  65. package/dist/client/static/js/{index-nvevymac.js → index-acphtw1r.js} +2 -2
  66. package/dist/client/static/js/{index-pxm44qfd.js → index-cj39b26c.js} +1 -1
  67. package/dist/client/static/js/{index-wytdbvax.js → index-dgjerk4w.js} +3 -3
  68. package/dist/client/static/js/{index-ad4x44d6.js → index-dn6pqym4.js} +6 -6
  69. package/dist/client/static/js/{index-nr8s5xm9.js → index-ehg2ftnp.js} +2 -2
  70. package/dist/client/static/js/{index-jbkkwa2q.js → index-f51jxezc.js} +2 -2
  71. package/dist/client/static/js/index-f7paep2f.js +2 -0
  72. package/dist/client/static/js/{index-qkjx6521.js → index-f98dhbt4.js} +4 -4
  73. package/dist/client/static/js/{index-92n96mgd.js → index-fbct0jcf.js} +2 -2
  74. package/dist/client/static/js/{index-bjqz7swa.js → index-fqatn0vh.js} +1 -1
  75. package/dist/client/static/js/{index-tzdm1y3z.js → index-gcwmpfr4.js} +2 -2
  76. package/dist/client/static/js/{index-v5npdwy2.js → index-gmq5pbcv.js} +51 -51
  77. package/dist/client/static/js/{index-fbpc1wx6.js → index-gzafyqsr.js} +21 -21
  78. package/dist/client/static/js/{index-4y4hshcx.js → index-gzp4j2h5.js} +2 -2
  79. package/dist/client/static/js/{index-nqjd3hh5.js → index-h0rmkz9n.js} +2 -2
  80. package/dist/client/static/js/{index-8trggh1z.js → index-jpp0zm7t.js} +7 -7
  81. package/dist/client/static/js/{index-qf9x7yet.js → index-kg2sk8cf.js} +1 -1
  82. package/dist/client/static/js/{index-rpzxrr2d.js → index-mrw7qweg.js} +1 -1
  83. package/dist/client/static/js/{index-s8bktzpg.js → index-mwm8aptp.js} +1 -1
  84. package/dist/client/static/js/{index-c3v62nvt.js → index-n1ga63de.js} +2 -2
  85. package/dist/client/static/js/{index-22whvfdw.js → index-nzhwd6t3.js} +2 -2
  86. package/dist/client/static/js/{index-tr2pkfs6.js → index-p21mvqc2.js} +2 -2
  87. package/dist/client/static/js/{index-qsw5edtk.js → index-pfj3sd1n.js} +5 -5
  88. package/dist/client/static/js/{index-pysqpc5n.js → index-pxq4v81r.js} +2 -2
  89. package/dist/client/static/js/{index-07yh7qx0.js → index-q76jfb54.js} +1 -1
  90. package/dist/client/static/js/{index-6s4mrdew.js → index-qt9jc4ck.js} +2 -2
  91. package/dist/client/static/js/{index-ehacfgwm.js → index-r6e44vkx.js} +1 -1
  92. package/dist/client/static/js/{index-232nsp2c.js → index-szk3vk8h.js} +1 -1
  93. package/dist/client/static/js/{index-e6rm5xzj.js → index-t0yv1375.js} +1 -1
  94. package/dist/client/static/js/{index-n0matkz9.js → index-vgcm2g0g.js} +2 -2
  95. package/dist/client/static/js/{index-kwpaz891.js → index-vkerrwpa.js} +2 -2
  96. package/dist/client/static/js/{index-v7bcgh77.js → index-w57zbym7.js} +2 -2
  97. package/dist/client/static/js/{index-yfjvx4yf.js → index-wqrdgt1g.js} +2 -2
  98. package/dist/client/static/js/{index-barbpakv.js → index-x2wvq4ae.js} +2 -2
  99. package/dist/client/static/js/{index-3w845q50.js → index-x7rfmwg8.js} +2 -2
  100. package/dist/client/static/js/{index-cq98p2rb.js → index-xkwybnf3.js} +179 -179
  101. package/dist/client/static/js/info-A6RAGUB7-mw29xbwf.js +1 -0
  102. package/dist/client/static/js/{infoDiagram-VRGFBTTK-yebngg8c.js → infoDiagram-VRGFBTTK-e66pw8d9.js} +1 -1
  103. package/dist/client/static/js/ini-3cx6tmv4.js +1 -0
  104. package/dist/client/static/js/{ishikawaDiagram-OU5B5YK6-kh4nqj6q.js → ishikawaDiagram-OU5B5YK6-ehc0q24d.js} +1 -1
  105. package/dist/client/static/js/java-zs6qh1dm.js +1 -0
  106. package/dist/client/static/js/javascript-b9mkygak.js +1 -0
  107. package/dist/client/static/js/{journeyDiagram-ZHPQQLJL-4khnf8x1.js → journeyDiagram-ZHPQQLJL-hye05qtd.js} +2 -2
  108. package/dist/client/static/js/jsx-gahhfczw.js +1 -0
  109. package/dist/client/static/js/{julia-svwxx41e.js → julia-mgsev9df.js} +1 -1
  110. package/dist/client/static/js/{kanban-definition-PNTS6WVX-snmq3wq4.js → kanban-definition-PNTS6WVX-vce614m8.js} +6 -6
  111. package/dist/client/static/js/lua-d8enp14s.js +1 -0
  112. package/dist/client/static/js/markdown-qetaj4vp.js +1 -0
  113. package/dist/client/static/js/{mermaid.core-yctw30sk.js → mermaid.core-gc79re5p.js} +7 -7
  114. package/dist/client/static/js/{mindmap-definition-NLK3R4M7-atfv66wq.js → mindmap-definition-NLK3R4M7-ft1whaf5.js} +3 -3
  115. package/dist/client/static/js/one-dark-pro-rvg5xm1a.js +1 -0
  116. package/dist/client/static/js/one-light-2b5w3ksh.js +1 -0
  117. package/dist/client/static/js/packet-AYTQ26CC-md85wpjq.js +1 -0
  118. package/dist/client/static/js/{pegDiagram-GJSIUBJH-hpbtxjht.js → pegDiagram-GJSIUBJH-2s4ykhaa.js} +1 -1
  119. package/dist/client/static/js/{perl-mr0ds2ex.js → perl-6n93vjsa.js} +1 -1
  120. package/dist/client/static/js/{php-5h3wt6tv.js → php-w23nmbtc.js} +1 -1
  121. package/dist/client/static/js/pie-WAS4IAKB-4grcqnp8.js +1 -0
  122. package/dist/client/static/js/{pieDiagram-5QR66LMP-9zrtkdr2.js → pieDiagram-5QR66LMP-7h8dp0z3.js} +2 -2
  123. package/dist/client/static/js/properties-g6tpq003.js +1 -0
  124. package/dist/client/static/js/python-cy06fzhg.js +1 -0
  125. package/dist/client/static/js/{quadrantDiagram-O4NWA36T-xq970vx1.js → quadrantDiagram-O4NWA36T-pteyxjxr.js} +2 -2
  126. package/dist/client/static/js/r-vw8berfv.js +1 -0
  127. package/dist/client/static/js/radar-RG4KPBEZ-7j9prhg1.js +1 -0
  128. package/dist/client/static/js/railroad-74A4TZTK-g8x2jps1.js +1 -0
  129. package/dist/client/static/js/railroad-abnf-HS5TGJTU-cbg7k68h.js +1 -0
  130. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-xfvjk9f8.js +1 -0
  131. package/dist/client/static/js/railroad-peg-WCYAUIDC-7w97805z.js +1 -0
  132. package/dist/client/static/js/{railroadDiagram-XR7U4H2S-1g9jchbk.js → railroadDiagram-XR7U4H2S-68z9wdt0.js} +1 -1
  133. package/dist/client/static/js/{requirementDiagram-PLB6GJNP-ntt088y4.js → requirementDiagram-PLB6GJNP-c08nmey6.js} +3 -3
  134. package/dist/client/static/js/{ruby-nn836rtq.js → ruby-ag3b3t9t.js} +1 -1
  135. package/dist/client/static/js/{rust-eygk56y5.js → rust-ke5ec0w5.js} +1 -1
  136. package/dist/client/static/js/{sankeyDiagram-IPEJSGJF-95k8c5v6.js → sankeyDiagram-IPEJSGJF-2r3kvjs5.js} +3 -3
  137. package/dist/client/static/js/{sass-c2bk03e4.js → sass-x0eez0kp.js} +1 -1
  138. package/dist/client/static/js/{sequenceDiagram-PO4LG4MO-qfvxrwfa.js → sequenceDiagram-PO4LG4MO-ctjycd88.js} +6 -6
  139. package/dist/client/static/js/{sizeCapture-INFHLROL-0m7dc5nd.js → sizeCapture-INFHLROL-97ndea95.js} +1 -1
  140. package/dist/client/static/js/{stateDiagram-v2-GCMORJYK-femwcn7n.js → stateDiagram-v2-GCMORJYK-aqnmsb96.js} +3 -3
  141. package/dist/client/static/js/{svelte-bfy1rq5g.js → svelte-tg19by0f.js} +1 -1
  142. package/dist/client/static/js/{swimlanes-2SLR337P-5n1qq48r.js → swimlanes-2SLR337P-v50cx1nx.js} +1 -1
  143. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-e227mz39.js +8 -0
  144. package/dist/client/static/js/{timeline-definition-EJHVYXUP-vdsj18be.js → timeline-definition-EJHVYXUP-1ggrtdcj.js} +4 -4
  145. package/dist/client/static/js/treeView-Q6P3EWNA-xhf1r6c3.js +1 -0
  146. package/dist/client/static/js/treemap-WGGIJYW6-4n3j7ekq.js +1 -0
  147. package/dist/client/static/js/tsx-3dzv8h6k.js +1 -0
  148. package/dist/client/static/js/typescript-44vs0wn4.js +1 -0
  149. package/dist/client/static/js/{usecaseDiagram-POWQR4AR-psjbrprk.js → usecaseDiagram-POWQR4AR-ybcwhpzs.js} +19 -19
  150. package/dist/client/static/js/{vennDiagram-UO4OBE2U-4yn9kac9.js → vennDiagram-UO4OBE2U-p9ggrt07.js} +4 -4
  151. package/dist/client/static/js/{vue-0fwtgwj4.js → vue-mhj4sme0.js} +1 -1
  152. package/dist/client/static/js/wardley-WFR3VGLG-fb0py35r.js +1 -0
  153. package/dist/client/static/js/{wardleyDiagram-VNRHLVJA-js0tbpca.js → wardleyDiagram-VNRHLVJA-v79nb9kx.js} +2 -2
  154. package/dist/client/static/js/xml-yvv5fn3k.js +1 -0
  155. package/dist/client/static/js/{xychartDiagram-PMCCYNJV-svr38ygh.js → xychartDiagram-PMCCYNJV-43thqscz.js} +2 -2
  156. package/dist/client/static/js/yaml-avewh7n5.js +1 -0
  157. package/marketplace/marketplace.json +7 -0
  158. package/marketplace/plugins/github-actions/README.md +142 -0
  159. package/marketplace/plugins/github-actions/icon.svg +12 -0
  160. package/marketplace/plugins/github-actions/package.json +30 -0
  161. package/marketplace/plugins/github-actions/settings-schema.json +27 -0
  162. package/marketplace/plugins/github-actions/src/app.tsx +32 -0
  163. package/marketplace/plugins/github-actions/src/panel/Actions.tsx +105 -0
  164. package/marketplace/plugins/github-actions/src/panel/LogView.tsx +76 -0
  165. package/marketplace/plugins/github-actions/src/panel/Row.tsx +59 -0
  166. package/marketplace/plugins/github-actions/src/panel/RunView.tsx +197 -0
  167. package/marketplace/plugins/github-actions/src/panel/format.ts +74 -0
  168. package/marketplace/plugins/github-actions/src/panel/index.test.tsx +86 -0
  169. package/marketplace/plugins/github-actions/src/panel/index.tsx +256 -0
  170. package/marketplace/plugins/github-actions/src/panel/picker.test.tsx +68 -0
  171. package/marketplace/plugins/github-actions/src/panel/test-fixtures.ts +98 -0
  172. package/marketplace/plugins/github-actions/src/panel/test-harness.tsx +175 -0
  173. package/marketplace/plugins/github-actions/src/protocol.ts +156 -0
  174. package/marketplace/plugins/github-actions/src/server/github.test.ts +264 -0
  175. package/marketplace/plugins/github-actions/src/server/github.ts +309 -0
  176. package/marketplace/plugins/github-actions/src/server/http.test.ts +150 -0
  177. package/marketplace/plugins/github-actions/src/server/http.ts +202 -0
  178. package/marketplace/plugins/github-actions/src/server/json.ts +44 -0
  179. package/marketplace/plugins/github-actions/src/server/logtext.test.ts +84 -0
  180. package/marketplace/plugins/github-actions/src/server/logtext.ts +59 -0
  181. package/marketplace/plugins/github-actions/src/server/progress.test.ts +96 -0
  182. package/marketplace/plugins/github-actions/src/server/progress.ts +62 -0
  183. package/marketplace/plugins/github-actions/src/server/remote.ts +84 -0
  184. package/marketplace/plugins/github-actions/src/server/scope.ts +51 -0
  185. package/marketplace/plugins/github-actions/src/server/token.ts +84 -0
  186. package/marketplace/plugins/github-actions/src/server.ts +163 -0
  187. package/marketplace/plugins/github-actions/src/state.test.ts +55 -0
  188. package/marketplace/plugins/github-actions/src/state.ts +63 -0
  189. package/marketplace/plugins/github-actions/tsconfig.json +16 -0
  190. package/package.json +1 -1
  191. package/src/client/components/mobile/RightSidebar.tsx +164 -66
  192. package/src/client/components/mobile/header-titlebar.test.tsx +92 -0
  193. package/src/client/components/mobile/mobile-right-sidebar/Chrome.tsx +179 -0
  194. package/src/client/components/mobile/panel-chips.test.tsx +12 -0
  195. package/src/client/components/mobile/panel-chips.tsx +5 -1
  196. package/src/client/components/mobile/right-drawer-nav.test.tsx +258 -0
  197. package/src/client/components/settings/apply-side-effects.ts +6 -0
  198. package/src/client/components/settings/categories/appearance-settings/PanelNavSection.tsx +123 -2
  199. package/src/client/components/workspace/panel-tabs/Home.tsx +14 -2
  200. package/src/client/components/workspace/panel-tabs/TabChip.tsx +173 -0
  201. package/src/client/components/workspace/panel-tabs/TabStrip.test.tsx +118 -0
  202. package/src/client/components/workspace/panel-tabs/TabStrip.tsx +89 -102
  203. package/src/client/components/workspace/panel-tabs/index.tsx +9 -1
  204. package/src/client/hooks/workspace/mobile-right-panel-nav.ts +63 -0
  205. package/src/client/hooks/workspace/panel-nav.test.ts +39 -1
  206. package/src/client/lib/ui/control-plate.ts +33 -0
  207. package/src/server/lib/bundler/titlebar-css.test.ts +5 -3
  208. package/src/shared/lib/settings/defaults.ts +2 -1
  209. package/src/shared/lib/workspace/panel-nav.test.ts +36 -0
  210. package/src/shared/lib/workspace/panel-nav.ts +43 -0
  211. package/src/shared/types/settings/state.ts +9 -1
  212. package/dist/client/static/js/LayoutWrapper-vw54s8ra.js +0 -2
  213. package/dist/client/static/js/architecture-7GRP2DOG-mq93vqx9.js +0 -1
  214. package/dist/client/static/js/bash-fjzhxy10.js +0 -1
  215. package/dist/client/static/js/cpp-9f6zkdd4.js +0 -1
  216. package/dist/client/static/js/css-y4y3qtsb.js +0 -1
  217. package/dist/client/static/js/cynefin-OW5HDTMX-qyg5rjr5.js +0 -1
  218. package/dist/client/static/js/eventmodeling-NTZA5JFV-15yz245z.js +0 -1
  219. package/dist/client/static/js/flowDiagram-KWPJA3E3-n1sapfye.js +0 -1
  220. package/dist/client/static/js/gitGraph-4MIJSDKK-xtjwv160.js +0 -1
  221. package/dist/client/static/js/graphql-amk52c95.js +0 -1
  222. package/dist/client/static/js/html-2y935m7r.js +0 -1
  223. package/dist/client/static/js/index-19ffgf9a.js +0 -2
  224. package/dist/client/static/js/index-204ae4vs.js +0 -2
  225. package/dist/client/static/js/index-n6fbd265.js +0 -1
  226. package/dist/client/static/js/index-sc7r305t.css +0 -1
  227. package/dist/client/static/js/info-A6RAGUB7-e31s2xvj.js +0 -1
  228. package/dist/client/static/js/ini-kemnmt16.js +0 -1
  229. package/dist/client/static/js/java-caqpfm88.js +0 -1
  230. package/dist/client/static/js/javascript-zegm06a1.js +0 -1
  231. package/dist/client/static/js/jsx-bvterpm5.js +0 -1
  232. package/dist/client/static/js/lua-1hcfm8ya.js +0 -1
  233. package/dist/client/static/js/markdown-n6na4ykv.js +0 -1
  234. package/dist/client/static/js/one-dark-pro-c1vnxka7.js +0 -1
  235. package/dist/client/static/js/one-light-mbxx52p5.js +0 -1
  236. package/dist/client/static/js/packet-AYTQ26CC-mtzmsrk4.js +0 -1
  237. package/dist/client/static/js/pie-WAS4IAKB-85nwadmj.js +0 -1
  238. package/dist/client/static/js/properties-nxcks67c.js +0 -1
  239. package/dist/client/static/js/python-58p0gqn0.js +0 -1
  240. package/dist/client/static/js/r-eyn8en0g.js +0 -1
  241. package/dist/client/static/js/radar-RG4KPBEZ-ae3jdajx.js +0 -1
  242. package/dist/client/static/js/railroad-74A4TZTK-3m0s7cse.js +0 -1
  243. package/dist/client/static/js/railroad-abnf-HS5TGJTU-pz22c3eb.js +0 -1
  244. package/dist/client/static/js/railroad-ebnf-LZEXJU2U-cgqgqq15.js +0 -1
  245. package/dist/client/static/js/railroad-peg-WCYAUIDC-ts0nmcxb.js +0 -1
  246. package/dist/client/static/js/swimlanesDiagram-TC7HE7FX-n85hawg8.js +0 -8
  247. package/dist/client/static/js/treeView-Q6P3EWNA-fvpt3hm8.js +0 -1
  248. package/dist/client/static/js/treemap-WGGIJYW6-4z9s24je.js +0 -1
  249. package/dist/client/static/js/tsx-fnzxsv25.js +0 -1
  250. package/dist/client/static/js/typescript-0ppbqrb6.js +0 -1
  251. package/dist/client/static/js/wardley-WFR3VGLG-73mrhkmy.js +0 -1
  252. package/dist/client/static/js/xml-v1ytr8qz.js +0 -1
  253. package/dist/client/static/js/yaml-txrqz62t.js +0 -1
@@ -1,2 +0,0 @@
1
- import{d,n,o,K,i,u,a,Ye,le,Mt,tc,e,s,Re,Ie,m,Xt,S,nt,en,f,B,se,rt,re,ge,_t,He,ln,pe,Ge,ce,ka,Kr,cn,xa,P,D,U,qs,b,Jn,Hs,je,Se,rn,iA,qa,Mp,dn,Ws,Ne,St,Eo,me,Z,st,Xi,es,Wu,rc,ye,qe,ns,QA,ic,wt,Dt,Nt,lc,el,Io,tl,nl,Xu,So,We,Xe,na,Ke,Ya,ol,Bc,Sa,Ic,td,cs,Ta,Do,No,Qo,Et,Xn,ms,Ro,Fo,Lo,sl,Ja,ll,cl,ul,dl,er,Fm,Lm,Mo,Nc,Mm,Om,$m,zm,Qc,tr,_r,Oo,$o,Um,Gm,Rc,jm,qm,xh,id,wh,sd,yn,Hm,Wm,Km,Vm,pl,Cg,to,uf,df,Lc,yl,hf,bf,hd,yf,$h}from"./index-cq98p2rb.js";import{zc,Uc,Gc,jc,qc,Hc,Wc,kd,As,Uo,hs,yi,Vc,vl,Yc,Jc,Zc,Xc,eu,tu,nu,ru,au}from"./index-qm92sf9w.js";import{Ou,$u,Xo,zu,Uu}from"./index-62ng8tkj.js";import{dt,ki,iu,su,cu}from"./index-204ae4vs.js";import{vs,Na,Qr,uu,du,Go,pu,ks,Dd,Fg,xs,ws,Cs,Rr,Es,Bs,jo,Is,_s,Ss,Ts,wi,qo,Ds,Ns,mu,Nd,fu,gu,Au,hu,bu,yu}from"./index-qkjx6521.js";import{Qa,Ra}from"./index-ehacfgwm.js";function io(t){let{editorOpen:r,diffOpen:c,settingsOpen:p,offMainScreen:h,onCloseEditor:g,onCloseDiff:v,onCloseSettings:k,onReturnToMain:w}=t;o(()=>$h(()=>{if(r)return g(),!0;if(c)return v(),!0;if(p)return k(),!0;if(h)return w(),!0;return!1}),[r,c,p,h,g,v,k,w])}var bt={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]},ro=s(bt);function _e(){let t=ns(),[r,c]=n(null),p=a((v,k)=>{c({top:k,bottom:k,left:v,right:v})},[]),h=Ou({enabled:t,onLongPress:p}),g=a(()=>c(null),[]);return{anchor:r,close:g,surfaceProps:{onContextMenu:(v)=>{v.preventDefault();let k=v.currentTarget.getBoundingClientRect();c({top:k.top,bottom:k.bottom,left:k.left,right:k.right})},onTouchStart:h.onTouchStart,onTouchMove:h.onTouchMove,onTouchEnd:h.onTouchEnd,onTouchCancel:h.onTouchCancel,onClickCapture:(v)=>{if(!h.consume())return;v.preventDefault(),v.stopPropagation()}}}}var gt=10,so=600000;function ao({activeSessionTitle:t,activeSessionId:r,onOpenSessionSidebar:c,onOpenRightSidebar:p,onNewSession:h,onSelectSession:g}){let{folders:v}=Ke(),k=hd(),w=Ta(r),[l,x]=n(null),{hidden:C,setHidden:T}=Wm(),N=_e(),O=sd("mobile"),R=u(()=>{let y=Date.now(),L=[];for(let I of v)for(let F of I.sessions??[]){if(F.is_archived===1)continue;let A=iA(String(F.id)),G=F.updated_at?Date.parse(F.updated_at):0,j=A!==void 0&&y-A<=so?A:G;if(A!==void 0&&y-A>so)continue;L.push({id:F.id,title:F.title,folderName:I.name,modified:j})}return L.sort((I,F)=>F.modified-I.modified).slice(0,gt)},[v]),E=t?t.charAt(0).toUpperCase()+t.slice(1):"New session";return e("header",{className:`flex-shrink-0 bg-canvas border-b border-ink/10 flex items-center justify-between ${sl} px-3 z-20 titlebar-drag-region select-none`,...Oo(),...N.surfaceProps,style:{height:"calc(3.5rem + env(safe-area-inset-top, 0px))",paddingLeft:$o(tr("0.75rem",!0)),paddingRight:_r("0.75rem",!0),paddingTop:"env(safe-area-inset-top, 0px)"},children:[e("div",{className:"flex items-center space-x-2 flex-1 min-w-0 titlebar-no-drag",children:[e("button",{type:"button",onClick:c,className:"w-9 h-9 rounded-lg hover:bg-ink/5 active:bg-ink/10 text-ink transition-colors flex-shrink-0 inline-flex items-center justify-center",title:"Open Sessions","aria-label":"Open Sessions",children:e(ro,{size:20,strokeWidth:2})}),e("span",{className:"relative font-bold text-sm tracking-tight flex items-center flex-shrink-0",children:[e(Sa,{glow:!0}),e("span",{className:"absolute -top-0.5 -right-1.5 flex",children:e(Qc,{status:k})})]}),e("span",{className:"text-ink/25 font-light text-xs flex-shrink-0 select-none",children:"/"}),e("div",{className:"relative min-w-0 flex-1 max-w-[150px]","data-testid":"session-picker",children:[e("button",{type:"button",onClick:(y)=>{x((L)=>L?null:wt(y.currentTarget))},className:"tap-chip flex w-full items-center space-x-1 text-xs font-semibold text-ink hover:text-ink/80 transition-colors py-1 min-w-0",title:E,"aria-haspopup":"menu","aria-expanded":l!==null,children:[e("span",{className:"truncate",children:E}),w&&e(m,{size:12,className:"animate-spin text-ink/50 flex-shrink-0",role:"status","aria-label":"Generating a session name…"}),e(B,{size:13,className:"text-ink/50 flex-shrink-0"})]}),l&&e(Dt,{anchor:l,align:"start",className:"w-72 bg-paper border border-ink/15 rounded-xl shadow-lg p-2 text-xs",onClose:()=>x(null),children:[e("button",{type:"button",onClick:()=>{x(null),h()},className:"w-full text-left px-3 py-2 rounded-lg bg-ink text-canvas flex items-center space-x-2 font-medium mb-1.5 active:scale-98",children:[e(P,{size:14}),e("span",{children:"Start New Session"})]}),e("div",{className:"px-2 py-1 text-[10px] uppercase font-bold text-ink/40",children:"Recent Sessions"}),e("div",{className:"max-h-64 scrollbar-overlay-container space-y-0.5",children:R.length===0?e("div",{className:"px-2.5 py-2 text-ink/40 italic",children:"No sessions yet"}):R.map((y)=>e("button",{type:"button",onClick:()=>{x(null),g(y.id)},className:`w-full text-left px-2.5 py-1.5 rounded-lg flex items-center justify-between space-x-2 transition-colors ${String(r)===String(y.id)?"bg-ink/10 font-semibold text-ink":"hover:bg-ink/5 text-ink/80"}`,children:[e("span",{className:"min-w-0 flex flex-col",children:[e("span",{className:"truncate",children:y.title?y.title.charAt(0).toUpperCase()+y.title.slice(1):"Untitled"}),e("span",{className:"truncate text-[10px] text-ink/40 font-mono",children:y.folderName})]}),String(r)===String(y.id)&&e(f,{size:12,className:"flex-shrink-0"})]},y.id))})]})]})]}),e(Km,{layout:"mobile",sessionId:r==null?null:String(r),showRightPanel:!1,onToggleRightPanel:p,entries:O,hidden:C}),N.anchor?e(Mo,{anchor:N.anchor,title:"Navbar",align:"right",items:Hm([...O.inline,...O.folded]).filter((y)=>y.id!==yn.install).map((y)=>({...y,removable:!0})),hidden:C,onToggle:T,onClose:N.close}):null]})}function lo({activeSessionId:t,onSelectSession:r,onNewSession:c,onOpenSessionSidebar:p,onOpenRightSidebar:h,appSettings:g={}}){let{folders:v}=Ke(),[k,w]=n(null),l=u(()=>{if(!t)return"New session";for(let C of v){let T=C.sessions?.find((N)=>String(N.id)===String(t));if(T)return T.title}return null},[t,v]);return e("div",{className:"flex flex-col h-full w-full bg-canvas text-ink relative",children:[e(ao,{activeSessionTitle:k||l||"New session",activeSessionId:t,onOpenSessionSidebar:p,onOpenRightSidebar:h,onNewSession:c,onSelectSession:r}),e("main",{className:"flex-1 min-h-0",children:e(df,{appSettings:g,onSessionTitle:w,variant:"mobile"})})]})}function co({onClose:t,viewLabel:r="Sessions",menuProps:c}){return e("div",{className:"border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0 bg-canvas titlebar-drag-region select-none",...Oo(),...c,style:{height:"calc(3.5rem + env(safe-area-inset-top, 0px))",paddingLeft:$o(tr("0.75rem",!0)),paddingRight:_r("0.75rem",!0),paddingTop:"env(safe-area-inset-top, 0px)"},children:[e("div",{className:"flex items-center space-x-2.5 titlebar-no-drag min-w-0",children:[e("span",{className:"font-bold text-sm tracking-tight flex items-center flex-shrink-0",children:e(Sa,{className:"text-[16px]",glow:!0})}),e("span",{className:"text-ink/25 text-xs select-none flex-shrink-0",children:"/"}),e("span",{className:"text-[11px] font-semibold text-ink/60 uppercase tracking-wider font-mono truncate",children:r})]}),e("div",{className:"flex items-center gap-1 titlebar-no-drag flex-shrink-0",children:[e(Vm,{variant:"chip"}),e("button",{type:"button",onClick:t,className:"w-9 h-9 rounded-xl hover:bg-ink/5 active:bg-ink/10 text-ink flex items-center justify-center transition-colors cursor-pointer",title:"Close sidebar","aria-label":"Close sidebar",children:e(b,{size:19,strokeWidth:2})})]})]})}var Te="w-9.5 h-9.5 rounded-xl border active:scale-95 flex items-center justify-center transition-all flex-shrink-0 cursor-pointer shadow-xs",Ee="border-ink/15 bg-paper hover:bg-ink/5 text-ink/80 hover:text-ink",po="bg-ink/10 text-ink border-ink/30";function mo({searchQuery:t,sortOption:r,optionsOpen:c,showArchived:p,optionsRef:h,onNewSession:g,onNewWorkspace:v,onScheduler:k,scheduledCount:w,onRefresh:l,refreshing:x,onToggleOptions:C,onSortChange:T,onResetSort:N,onToggleArchived:O,onHideArchived:R,onSearchChange:E,onClearSearch:y,onSelectWorkspaces:L,selecting:I}){let{ref:F,width:A}=ks(0),G=Fg(A),j={};for(let J of Dd.slice(0,G))j[J]=!0;let V=Dd.slice(G),M=p?"Hide archived sessions":"Show archived sessions",ee=w>0?`Scheduled tasks (${w} armed)`:"Scheduled tasks",Y=[];if(V.includes("new-workspace"))Y.push({id:"new-workspace",label:"New Workspace",icon:ln,onSelect:v});if(V.includes("refresh"))Y.push({id:"refresh",label:"Refresh sessions",icon:D,onSelect:l});if(V.includes("scheduler"))Y.push({id:"scheduler",label:ee,icon:Na,onSelect:k});if(V.includes("archive"))Y.push({id:"archive",label:M,icon:nt,onSelect:O,active:p});if(V.includes("select"))Y.push({id:"select",label:I?"Cancel selection":"Select workspaces",icon:Qr,onSelect:L,active:I});return e("div",{className:"p-3 border-b border-ink/10 flex flex-col space-y-2.5 flex-shrink-0 bg-canvas",children:[e("div",{ref:F,className:"flex items-center space-x-2",children:[e("button",{type:"button",onClick:g,"aria-label":"New Session",title:"New Session",className:"flex-1 min-w-0 h-9.5 flex items-center justify-center space-x-2 px-3.5 rounded-xl bg-ink text-canvas hover:bg-ink/90 active:scale-[0.98] text-xs font-semibold transition-all shadow-xs",children:[e(P,{size:15,strokeWidth:2.4,className:"shrink-0"}),e("span",{className:"min-w-0 truncate",children:"New Session"})]}),j["new-workspace"]&&e("button",{type:"button",onClick:v,className:`${Te} ${Ee}`,title:"New Workspace","aria-label":"New Workspace",children:e(ln,{size:16,strokeWidth:1.8})}),j.scheduler&&e("button",{type:"button",onClick:k,className:`relative ${Te} ${Ee}`,title:ee,"aria-label":w>0?`Scheduled tasks, ${w} armed`:"Scheduled tasks",children:[e(Na,{size:16,strokeWidth:1.8}),w>0&&e("span",{className:"absolute -top-0.5 -right-0.5 min-w-[13px] h-[13px] px-[3px] rounded-full bg-ink text-canvas text-[10px] leading-[13px] text-center font-semibold",children:w>9?"9+":w})]}),j.archive&&e("button",{type:"button",onClick:O,"aria-pressed":p,className:`${Te} ${p?"bg-warning/15 border-warning/40 text-warning":Ee}`,title:M,"aria-label":M,children:e(nt,{size:16,strokeWidth:1.8})}),j.select&&e("button",{type:"button",onClick:L,"aria-pressed":I,className:`${Te} ${I?po:Ee}`,title:I?"Cancel selection":"Select workspaces","aria-label":I?"Cancel selection":"Select workspaces",children:e(Qr,{size:16,strokeWidth:1.8})}),j.refresh&&e("button",{type:"button",onClick:l,className:`${Te} ${Ee}`,title:"Refresh sessions","aria-label":"Refresh sessions","aria-busy":x,children:e(D,{size:15,strokeWidth:1.8,className:x?"animate-spin":void 0})}),j.sort&&e("div",{className:"relative flex-shrink-0",ref:h,children:[e("button",{type:"button",onClick:C,className:`${Te} ${c||r!=="A-Z"?po:Ee}`,title:"Sort workspaces","aria-label":"Sort workspaces",children:e(vs,{size:15,strokeWidth:1.8})}),c&&e("div",{className:"glass-popover absolute right-0 top-full mt-2 w-52 bg-paper border border-ink/15 rounded-xl shadow-xl z-50 p-2 text-xs",children:e(Go,{variant:"mobile",sortOption:r,onSortChange:T})})]}),V.length>0&&e(pu,{actions:Y,sortHidden:V.includes("sort"),sortOption:r,onSortChange:T,layout:"mobile"})]}),e("div",{className:"relative flex items-center",children:[e(U,{size:14,className:"absolute left-3 text-ink/40"}),e("input",{type:"text",value:t,onChange:(J)=>E(J.currentTarget.value),placeholder:"Search workspaces & sessions...",className:"w-full bg-paper border border-ink/15 rounded-xl pl-8 pr-8 py-2 text-xs text-ink placeholder-ink/40 focus:outline-none focus:border-ink/40 transition-colors font-mono"}),t&&e("button",{type:"button",onClick:y,className:"absolute right-2.5 text-ink/40 hover:text-ink p-1","aria-label":"Clear search",children:e(b,{size:13})})]}),(p||r!=="A-Z")&&e("div",{className:"flex items-center space-x-1.5 flex-wrap gap-y-1 pt-0.5",children:[r!=="A-Z"&&e("span",{className:"inline-flex items-center space-x-1 bg-ink/5 border border-ink/10 text-ink/80 rounded-lg px-2 py-0.5 text-[10px] font-mono",children:[e("span",{children:["Sort: ",r.replace("_"," ")]}),e("button",{type:"button",onClick:N,className:"hover:text-ink ml-0.5",title:"Reset sort",children:e(b,{size:10})})]}),p&&e("span",{className:"inline-flex items-center space-x-1 bg-warning/15 border border-warning/25 text-warning rounded-lg px-2 py-0.5 text-[10px] font-mono",children:[e(nt,{size:10}),e("span",{children:"Archived"}),e("button",{type:"button",onClick:R,className:"hover:text-warning-hover ml-0.5",title:"Hide archived",children:e(b,{size:10})})]})]})]})}var vt="p-1.5 rounded-lg hover:bg-ink/10 active:bg-ink/15 text-ink/60 hover:text-ink";function uo({folder:t,canWorktree:r,onOpenFolder:c,onNewWorktree:p,onSelectSessions:h,confirmDelete:g,onPin:v,onDelete:k,onRequestDelete:w,onCancelDelete:l}){let[x,C]=n(!1),T=i(null),[N,O]=n(null),R=(E)=>()=>{C(!1),E()};return e("div",{className:"relative flex items-center",onClick:(E)=>E.stopPropagation(),children:[e("button",{ref:T,type:"button",onClick:(E)=>{if(E.stopPropagation(),T.current)O(wt(T.current));C((y)=>!y)},className:vt,title:"Workspace options","aria-label":`Options for ${t.name}`,"aria-haspopup":"menu","aria-expanded":x,children:e(Ie,{size:15})}),e(Dt,{anchor:x?N:null,align:"end",ariaLabel:`Options for ${t.name}`,className:"w-48 rounded-lg border border-ink/15 bg-paper py-1 text-xs shadow-lg",onClose:()=>{C(!1),l()},children:e(Ss,{variant:"mobile",isPinned:t.isPinned,onOpenFolder:c?R(c):void 0,onNewWorktree:r&&p?R(p):void 0,onSelectSessions:h?R(h):void 0,confirmDelete:g,onPin:R(v),onDelete:R(k),onRequestDelete:w,onCancelDelete:l})})]})}var fo={inset:"",insetPx:0,slotWidth:16,markGap:8,padding:"py-2",glyph:Xe.touch};function ho({session:t,harness:r,isActive:c,status:p,awaitingInput:h=!1,timeAgo:g,timeTitle:v,runStartedAt:k,expandable:w=!1,isExpanded:l=!1,onToggleExpand:x,isChild:C=!1,folderId:T,onSelect:N,onArchive:O,onDelete:R,onRename:E,onRenameWithAi:y,waitingFor:L,onCancelWait:I,selectable:F=!1,selected:A=!1,onToggleSelect:G}){let{isEditing:j,draft:V,setDraft:M,inputRef:ee,startRename:Y,handleKeyDown:J,handleBlur:ue}=Qo(t.title,E),de=Ta(t.id),oe=Ro(),te=oe.anchor!==null,q=Boolean(E||O||R||I),Q=Boolean(L),ae=w&&Boolean(x),ne=t.title.charAt(0).toUpperCase()+t.title.slice(1);if(j)return e("div",{className:"w-full rounded-lg flex items-center bg-ink/10",children:e("input",{ref:ee,autoFocus:!0,value:V,onChange:(X)=>M(X.currentTarget.value),onKeyDown:J,onBlur:ue,className:"flex-1 min-w-0 mx-2 my-1.5 bg-paper border border-ink/25 rounded px-2 py-1 text-xs text-ink outline-none focus:border-ink/50"})});return e(d,{children:[e("div",{"data-testid":"session-item","data-session-id":String(t.id),"data-menu-open":te?"true":void 0,onContextMenu:q&&!F?oe.openAtCursor:void 0,className:`w-full rounded-lg flex items-center transition-colors ${F&&A||te?_s:c?"bg-ink/10 font-medium text-ink":"hover:bg-ink/5 text-ink/85"}`,children:[e("button",{type:"button",onClick:F?G:N,className:"flex-1 text-left py-2 flex items-center justify-between min-w-0",children:[e("div",{className:"flex items-center min-w-0 pr-2",children:[F?e(Rr,{checked:A,label:`Select ${t.title}`,onChange:()=>G?.()}):e("span",{className:"w-4 flex-shrink-0 flex items-center justify-center",children:de?e("span",{role:"status","aria-label":"Generating a name…",children:e(m,{size:13,className:"text-ink/50 animate-spin"})}):h?e(Re,{size:13,className:"text-ink/70 animate-pulse"}):Q?e("span",{role:"status","aria-label":`Waiting for ${L?.title??"another session"}`,children:e(Ge,{size:13,className:"text-ink/60 animate-pulse"})}):p==="stream"?e("span",{role:"status","aria-label":"Running",children:e(m,{size:13,className:"text-ink/50 animate-spin"})}):p?e(f,{size:13,className:"text-ink/50"}):C?e("span",{"data-testid":"child-indicator",className:"text-ink/35","aria-hidden":"true",children:e(pe,{size:13})}):null}),e("span",{className:"flex flex-col min-w-0 ml-2 leading-snug",children:[e("span",{className:"flex min-w-0 items-center",children:[r&&e("span",{className:"mr-1.5 flex shrink-0 items-center",children:e(We,{harness:r,size:Xe.touch})}),e("span",{className:"min-w-0 truncate text-xs",children:ne})]}),Q&&e("span",{className:"text-[10px] text-ink/40 truncate",children:["waiting for ",L?.title??"another session"]}),t.worktree?e(Es,{worktree:t.worktree}):null]})]}),e(Is,{timeAgo:g,timeTitle:v,runStartedAt:k,className:"text-[11px] font-mono flex-shrink-0 ml-2",restingClassName:"text-ink/45"})]}),q&&!F&&e("button",{type:"button",onClick:oe.openBelow,title:"Session actions","aria-label":"Session actions","aria-haspopup":"menu","aria-expanded":te,className:"flex-shrink-0 py-1.5 pl-1.5 pr-1 text-ink/35 hover:text-ink rounded-lg cursor-pointer",children:e(Ie,{size:16})}),ae&&!F&&e("button",{type:"button",onClick:x,title:l?"Collapse sessions and subagents":"Expand sessions and subagents","aria-expanded":l,"aria-label":l?"Collapse sessions and subagents":"Expand sessions and subagents",className:"flex-shrink-0 py-1.5 pl-1.5 pr-1 flex items-center justify-center text-ink/50 hover:text-ink rounded-lg cursor-pointer",children:l?e(B,{size:14}):e(se,{size:14})})]}),oe.anchor&&e(Fo,{anchor:oe.anchor,sessionId:t.id,...r?{harness:r}:{},...T!==void 0?{folderId:T}:{},isArchived:t.is_archived===1,onRename:E?Y:void 0,onRenameWithAi:y,onArchive:O,onDelete:R,onCancelWait:I,onClose:oe.close})]})}function bo(t,r){let[c,p]=n(!1);return{open:()=>p(!0),dialog:c?e(Lo,{isOpen:!0,onClose:()=>p(!1),root:t.project_path??null,folderId:t.id,folderName:t.name,onCreated:(h)=>{p(!1),r(h.path)}}):null}}function go({hiddenCount:t,canShowLess:r,onShowMore:c,onShowLess:p}){if(t<=0&&!r)return null;return e("div",{className:"flex items-center gap-1",children:[t>0&&e("button",{type:"button",onClick:c,className:"flex items-center min-w-0 text-left py-2 pr-3 text-xs text-ink/60 hover:text-ink",children:[e("span",{className:"w-4 h-4 flex-shrink-0 flex items-center justify-center",children:e(B,{size:12})}),e("span",{className:"w-2 shrink-0"}),e("span",{className:"truncate",children:["Show more sessions (",t,")"]})]}),r&&e("button",{type:"button",onClick:p,className:"ml-auto shrink-0 flex items-center gap-1 text-xs text-ink/60 hover:text-ink pl-3 py-2",children:[e(rt,{size:12}),e("span",{className:"truncate",children:"Show less"})]})]})}function vo(t){return t?"mb-4":"mb-1"}function xo({folder:t,activeSessionId:r,onSelectSession:c,onNewSessionForFolder:p,onNewWorktreeSession:h,isExpanded:g,onToggleExpand:v,showArchived:k=!1,sessionStatus:w={},onToast:l,batch:x,onStartSessionSelection:C,onCancelWait:T}){let{visibleCount:N,showMore:O,showLess:R,canShowLess:E}=ws(),y=bo(t,(_)=>h?.(t.id,_)),{refresh:L,runStartedAtMap:I}=Ke(),{expandedSessionIds:F,toggleSession:A}=ms(),[G]=le(),j=G.get("subagent"),V=G.get("sessionId"),{confirmDelete:M,requestDelete:ee,cancelDelete:Y,handlePin:J,handleDelete:ue,handleArchive:de,handleRename:oe,handleRenameWithAi:te,handleOpenFolder:q}=Cs(t,L,l),Q=Do(),ae=J,ne=ue,X=q??void 0,ve=(t.sessions||[]).filter((_)=>k?_.is_archived===1:_.is_archived!==1),we=na(t.icon),{folderCheckbox:ke,sessionCheckboxes:he,folderSummary:z,toggleFolderSelection:W,rendered:H,hiddenCount:fe}=Ds({batch:x,folder:t,sessions:ve,showArchived:k,visibleCount:N,activeSessionId:r,sessionStatus:w}),Oe=qo(H),Me=g||he,Be=(_,Ce)=>{let ie=String(_.id),xe=String(r)===ie,ze=xe&&V===ie&&Boolean(j),Pe=Et(ie);return e(ho,{session:_,harness:_.harness,folderId:_.folder_id,isActive:xe&&!ze,status:w[ie],awaitingInput:Boolean(_.awaitingInput),timeAgo:Bs(_.updated_at??_.created_at),timeTitle:jo(_.updated_at??_.created_at),runStartedAt:w[ie]==="stream"?I[ie]:void 0,expandable:Ce.expandable,isChild:Ce.isChild,isExpanded:Ce.isExpanded,onToggleExpand:Ce.onToggleExpand,onSelect:()=>c(_.id),onArchive:()=>de(_),onDelete:Pe?void 0:()=>Q.requestDelete(_),onRename:Pe?void 0:(Ue)=>void oe(_,Ue),onRenameWithAi:Pe?void 0:()=>void te(_),waitingFor:_.waitingFor?{title:_.waitingFor.title}:void 0,onCancelWait:_.waitingFor?()=>T?.(_.waitingFor.waitId):void 0,selectable:he,selected:Boolean(x?.selected.includes(ie)),onToggleSelect:x?()=>x.toggle(ie):void 0})},De=(_)=>Ts(_,Oe.childrenOf,F,A);return e("div",{className:vo(Me),"data-testid":"session-folder",children:[e("div",{onClick:x?void 0:v,className:"flex items-center justify-between gap-2 py-1 cursor-pointer hover:bg-ink/5 rounded-lg select-none transition-colors",children:[e("div",{className:"flex items-center space-x-2 min-w-0",children:[ke&&z?e(Rr,{size:"md",checked:z.all,indeterminate:z.some,label:`Select ${t.name}`,onChange:W}):e(d,{children:e("span",{className:"w-4 h-4 flex items-center justify-center flex-shrink-0",children:t.customIconUrl?e("img",{src:t.customIconUrl,alt:"",className:"w-[15px] h-[15px] rounded-xs object-contain",referrerPolicy:"no-referrer"}):t.iconType==="chat"?e(cn,{size:15,className:"text-ink/80"}):e(we,{size:15,className:"text-ink/80",style:{color:t.accentColor||void 0}})})}),e("span",{className:"text-sm font-semibold text-ink truncate",children:t.name})]}),e("div",{className:"flex items-center space-x-2 text-xs text-ink/60",children:[e("span",{className:"font-mono text-[11px] text-ink/70",children:ve.length}),t.project_path&&e(pe,{size:13,className:"text-ink/50 ml-1"}),!x&&e(d,{children:[e("button",{type:"button",onClick:(_)=>{_.stopPropagation(),p(t.id)},className:"p-1.5 rounded-lg hover:bg-ink/10 active:bg-ink/15 text-ink/60 hover:text-ink",title:"New Session","aria-label":`New session in ${t.name}`,children:e(P,{size:15})}),e(uo,{folder:t,canWorktree:Boolean(h&&t.project_path),onOpenFolder:X,onNewWorktree:h?()=>y.open():void 0,onSelectSessions:C?()=>C(t.id):void 0,confirmDelete:M,onPin:ae,onDelete:ne,onRequestDelete:ee,onCancelDelete:Y}),e("span",{className:"flex items-center justify-center pr-1",children:g?e(B,{size:14}):e(se,{size:14})})]})]})]}),Me&&e("div",{className:"mt-0.5 space-y-0.5",children:[Oe.roots.map((_)=>{let Ce=String(_.id),ie=De(_);return e("div",{className:"space-y-0.5",children:[Be(_,ie),ie.isExpanded&&e(wi,{parentId:Ce,hasSubagents:Boolean(_.hasSubagents),childrenOf:Oe.childrenOf,expandedIds:F,onToggle:A,activeSessionId:r===null?null:String(r),renderSession:Be,style:fo})]},_.id)}),e(go,{hiddenCount:he?0:fe,canShowLess:!he&&E,onShowMore:O,onShowLess:R})]}),e(No,{session:Q.pending,isDeleting:Q.isDeleting,error:Q.error,onClose:Q.cancelDelete,onConfirm:()=>void Q.confirmDelete()}),y.dialog]})}function ko({folders:t,activeSessionId:r,expandedFolders:c,showArchived:p,sessionStatus:h,onSelectSession:g,onNewSessionForFolder:v,onNewWorktreeSession:k,onToggleFolder:w,onToast:l,batch:x,onStartSessionSelection:C,onCancelWait:T}){return e("div",{className:"flex-1 scrollbar-overlay-container pl-3 pr-2 py-3",children:t.length===0?e("div",{className:"text-center py-12 text-xs text-ink/50 italic",children:"No matching sessions found"}):t.map((N)=>e(xo,{folder:N,activeSessionId:r,onSelectSession:g,onNewSessionForFolder:v,onNewWorktreeSession:k,isExpanded:c[N.id]??!0,onToggleExpand:()=>w(N.id),showArchived:p,sessionStatus:h,onToast:l,batch:x,onStartSessionSelection:C,onCancelWait:T},N.id))})}var xt=[3,2];function wo(){return e("div",{className:"flex-1 p-3 space-y-4","aria-hidden":"true",children:xt.map((t,r)=>e("div",{className:"space-y-2",children:[e("div",{className:"flex items-center gap-2 py-2",children:[e("span",{className:"w-4 h-4 rounded-sm animate-pulse bg-ink/10"}),e("span",{className:"h-3 w-24 rounded animate-pulse bg-ink/10"})]}),Array.from({length:t},(c,p)=>e("div",{className:"flex items-center gap-2 rounded py-2",children:[e("span",{className:"w-4 h-4 rounded-full animate-pulse bg-ink/10"}),e("span",{className:"h-3 rounded animate-pulse bg-ink/10",style:{width:`${58-p%3*12}%`}})]},p))]},r))})}function yo({folders:t,initializing:r,failed:c,activeSessionId:p,expandedFolders:h,sessionStatus:g,searchQuery:v,sortOption:k,optionsOpen:w,showArchived:l,harnessFilter:x,onHarnessFilterChange:C,harnessOptions:T,optionsRef:N,scheduledCount:O,refreshing:R,selecting:E,batch:y,onNewSession:L,onNewWorkspace:I,onScheduler:F,onRefresh:A,onToggleOptions:G,onSortChange:j,onResetSort:V,onToggleArchived:M,onHideArchived:ee,onSearchChange:Y,onClearSearch:J,onSelectWorkspaces:ue,onSelectSession:de,onNewSessionForFolder:oe,onNewWorktreeSession:te,onToggleFolder:q,onToast:Q,onStartSessionSelection:ae,onCancelWait:ne}){return e(d,{children:[e(mo,{searchQuery:v,sortOption:k,optionsOpen:w,showArchived:l,optionsRef:N,onNewSession:L,onNewWorkspace:I,onScheduler:F,scheduledCount:O,onRefresh:A,refreshing:R,onToggleOptions:G,onSortChange:j,onResetSort:V,onToggleArchived:M,onHideArchived:ee,onSearchChange:Y,onClearSearch:J,onSelectWorkspaces:ue,selecting:E}),e("div",{className:"px-3 pt-2 pb-1",children:e(xs,{options:T,value:x,onChange:C,touch:!0})}),c?e(Ns,{touch:!0,onRetry:A,refreshing:R}):r?e(wo,{}):e(ko,{folders:t,activeSessionId:p,expandedFolders:h,showArchived:l,sessionStatus:g,onSelectSession:de,onNewSessionForFolder:oe,onNewWorktreeSession:te,onToggleFolder:q,onToast:Q,batch:y,onStartSessionSelection:ae,onCancelWait:ne})]})}function Co({onSettings:t,onKeyBindings:r,onAbout:c,updateAvailable:p,onUpdateClick:h,onDesktopToggle:g,shellDownload:v}){return e("div",{className:"px-3 pt-3 border-t border-ink/10 flex items-center justify-between flex-shrink-0 bg-canvas text-xs text-ink/60",style:{paddingBottom:"max(0.75rem, env(safe-area-inset-bottom, 0px))"},children:[e("div",{className:"flex items-center space-x-3",children:[e("button",{type:"button",onClick:t,className:"flex items-center space-x-1 hover:text-ink transition-colors",children:[e(qs,{size:14}),e("span",{children:"Settings"})]}),e("button",{type:"button",onClick:r,className:"flex items-center space-x-1 hover:text-ink transition-colors",children:[e(ka,{size:14}),e("span",{children:"Keys"})]}),e("button",{type:"button",onClick:c,className:"flex items-center space-x-1 hover:text-ink transition-colors",children:[e(ce,{size:14}),e("span",{children:"About"})]}),v&&e(zm,{download:v,variant:"label"}),g&&e("button",{type:"button",onClick:g,className:"flex items-center space-x-1 hover:text-ink transition-colors",title:"Switch to desktop view",children:[e(xa,{size:14}),e("span",{children:"Desktop"})]})]}),e("div",{className:"flex items-center gap-2",children:[e("span",{className:"font-mono text-[10px] text-ink/40",children:["v",Bc.version]}),p&&e("button",{type:"button",onClick:h,className:"px-2 py-0.5 rounded-full border border-ink/20 text-[10px] font-semibold text-ink hover:border-ink/40",children:"update"})]})]})}function Po(t){let r=Um(),c=$m();return ye(Ic,()=>{t.onClose(),t.openAbout(),r.apply("kabmo").then((p)=>{if(!p)return;t.pushToast(p.message,rc(p))})}),Gm(r,t.pushToast),{updates:r,shellDownload:c}}function To(t,r,c){return t.filter((p)=>p.id!==r&&!(c&&p.side==="left"))}function Ao(t){return t}var kt=8;function Ve({panels:t,activeId:r,onSelect:c,hasGitChanges:p=!1}){let h=i(null),g=i(new Map),v=i({activeId:r,panels:t});v.current={activeId:r,panels:t};let k=i({signature:"",width:0}),w=a(()=>{let l=h.current,x=g.current.get(v.current.activeId);if(!l||!x||l.clientWidth<=0)return;let C=`${v.current.activeId}\x00${v.current.panels.map((E)=>E.id).join("\x00")}`,T=k.current;if(T.signature===C&&T.width===l.clientWidth)return;k.current={signature:C,width:l.clientWidth};let N=l.getBoundingClientRect(),O=x.getBoundingClientRect(),R=Mm({scrollLeft:l.scrollLeft,clientWidth:l.clientWidth,scrollWidth:l.scrollWidth,start:O.left-N.left+l.scrollLeft,size:O.width},kt);if(R!==l.scrollLeft)l.scrollLeft=R},[]);return K(w,[r,t,w]),o(()=>{let l=h.current;if(!l||typeof ResizeObserver>"u")return;let x=new ResizeObserver(w);return x.observe(l),()=>x.disconnect()},[w]),e("div",{ref:h,className:"flex items-center space-x-1.5 overflow-x-auto no-scrollbar py-1",children:t.map((l)=>{let x=l.id===r;return e("button",{ref:(C)=>{if(C)g.current.set(l.id,C);else g.current.delete(l.id)},type:"button",onClick:()=>c(l.id),"aria-pressed":x,"aria-label":l.title,className:`relative flex shrink-0 items-center transition-all cursor-pointer ${x?"space-x-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold bg-ink text-canvas shadow-sm":"p-2 rounded-lg text-ink/70 hover:bg-ink/5"}`,title:l.title,children:[e(Ya,{panelId:l.id,builtin:l.builtin,icon:l.builtin?l.icon:void 0,name:l.builtin?l.label:l.name,...l.iconUrl?{iconUrl:l.iconUrl}:{},...l.color?{color:l.color}:{},size:Mt}),x&&e("span",{className:`shrink-0 whitespace-nowrap ${l.id==="git"?"tracking-wide":""}`,children:l.label}),l.id==="git"&&p&&e("span",{className:"absolute top-1 right-1 w-1.5 h-1.5 rounded-full bg-info",title:"Uncommitted changes"})]},l.id)})})}function Wo({panels:t,activeId:r,onSelect:c,menuProps:p}){return e("div",{className:"px-3 py-1.5 border-b border-ink/10 bg-canvas flex-shrink-0",...p,children:e(Ve,{panels:t,activeId:r,onSelect:c})})}function Bo({panelKey:t,panel:r,body:c}){if(!r)return e("div",{className:"flex-1 min-h-0",children:e(Nc,{panelKey:t})});return e("div",{className:"flex-1 min-h-0 overflow-hidden relative",children:e(Ye,{fallback:e("div",{className:"h-full flex items-center justify-center text-ink/40",children:e("span",{className:"text-xs font-mono",children:"Loading…"})}),children:e(Eo,{value:c,children:r.render(c)})})})}function zo({activeSessionId:t,newWorkspaceOpen:r,onCloseNewWorkspace:c,schedulerOpen:p,onCloseScheduler:h,aboutOpen:g,onCloseAbout:v,updates:k,pushToast:w,batchDelete:l,batchMode:x,onEndBatch:C,scopeLabel:T}){return e(d,{children:[e(cs,{isOpen:r,onClose:c,onCreate:ul,onClone:dl}),e(du,{isOpen:p,onClose:h,activeSessionId:t===null?null:String(t),onToast:w}),e(td,{isOpen:g,onClose:v,updates:k,onToast:w}),e(Om,{updates:k}),e(yu,{mode:x??"session",count:l.pending.length,scopeLabel:T,isDeleting:l.isDeleting,progress:l.progress,outcome:l.outcome,onClose:()=>{let N=l.outcome?.refused.length??0;if(l.cancel(),l.outcome&&N===0)C()},onConfirm:()=>{let N=x??"session";l.confirm(N).then((O)=>{if(O&&O.refused.length===0)C()})}})]})}function _o(){let t=St(),r=er("left"),[c,p]=qa("layout.mobileLeftPanel",Ne),h=Fm(c,t.enabled);return{catalog:r,activeView:h,setActiveView:p,showingSessions:h===Ne,activePanel:r.find((g)=>g.id===h),enabled:t.enabled}}function Ho(t){return{className:"w-full h-full",sessionId:t.sessionId===null?null:String(t.sessionId),enabled:t.requiresWorkspace?t.hasActiveContext===!0:!0,active:!0,refreshKey:t.refreshKey,...t.rootPath?{rootPath:t.rootPath}:{},...t.onRefresh?{onRefresh:t.onRefresh}:{},...t.onOpenFile?{onOpenFile:t.onOpenFile}:{},onClose:t.onClose,showHeader:!1,layout:"phone"}}function Vo({appSettings:t,onSelectSession:r,onClose:c,rootPath:p,refreshKey:h,onRefresh:g,onOpenFile:v}){let k=fu(t,{onSelectSession:r,onAfterSelect:c}),{folders:w,processedFolders:l,refreshNow:x,showArchived:C,activeSessionId:T}=k,N=hu(l,C,x),[O,R]=n({1:!0,2:!0,3:!0}),E=i(null);me(E,()=>k.setOptionsOpen(!1));let y=(A)=>{R((V)=>({...V,[A]:!V[A]}));let G=w.find((V)=>V.id===A),j=!(O[A]??G?.isExpanded??!0);Nd(A,j)},L=l.map((A)=>`${A.id}:${A.isExpanded}`).join("|");o(()=>{R(Object.fromEntries(l.map((A)=>[A.id,A.isExpanded])))},[L]);let I=_o(),F=Ho({sessionId:T,refreshKey:h,rootPath:p,onRefresh:g,onOpenFile:v,onClose:c,requiresWorkspace:I.activePanel?.requiresWorkspace??!1,hasActiveContext:Boolean(p)});return{controller:k,batch:N,expandedFolders:O,toggleFolder:y,optionsRef:E,dock:I,dockBody:F}}function $e(t){let{disabledPanels:r}=dn(),{setEnabled:c}=Ws(),p=_e(),h=Lm(t),g=a((v,k)=>{c(v,k)},[c]);return{...p,items:h,hidden:r,toggle:g}}function Ko({activeSessionId:t,onSelectSession:r,onNewSession:c,onNewSessionForFolder:p,onNewWorktreeSession:h,onClose:g,onDesktopToggle:v,appSettings:k={},rootPath:w,refreshKey:l=0,onRefresh:x,onOpenFile:C}){let{controller:T,batch:N,expandedFolders:O,toggleFolder:R,optionsRef:E,dock:y,dockBody:L}=Vo({appSettings:k,onSelectSession:r,onClose:g,rootPath:w,refreshKey:l,onRefresh:x,onOpenFile:C}),{initializing:I,failed:F,refreshNow:A,isRefreshing:G,searchQuery:j,setSearchQuery:V,showArchived:M,setShowArchived:ee,optionsOpen:Y,setOptionsOpen:J,sortOption:ue,handleSortChange:de,harnessFilter:oe,setHarnessFilter:te,harnessOptions:q,processedFolders:Q,sessionStatus:ae,handleSelectSession:ne}=T,{selection:X,deleteRun:ve,archiveRun:we,binding:ke,scopeFolder:he,available:z,selected:W}=N,H=Xu(),fe=$e("left"),[Oe,Me]=n(!1),[Be,De]=n(!1),_=uu(),[Ce,ie]=n(!1),{pushToast:xe}=qe(),ze=cl(xe);gu({onNotice:xe});let{updates:Pe,shellDownload:Ue}=Po({onClose:g,openAbout:()=>ie(!0),pushToast:xe}),Qe=()=>{c(),g()},ft=()=>{we.archive(W).then((be)=>{if(!be)return;let Fe=Au(be);if(Fe)xe(Fe.message,Fe.tone);if(!be.error)X.end()})},eo=(be)=>{p(be),g()},oo=()=>{ee(!M)},no=h?(be,Fe)=>{h(be,Fe),g()}:void 0,ht={className:"flex-1 min-h-0 w-full",folders:Q,initializing:I,failed:F,activeSessionId:t,sessionStatus:ae,searchQuery:j,onSearchChange:V,showArchived:M,onToggleArchived:oo,sortOption:ue,optionsOpen:Y,onToggleOptions:()=>J(!Y),onCloseOptions:()=>J(!1),onSortChange:de,harnessFilter:oe,onHarnessFilterChange:te,harnessOptions:q,onRefresh:A,refreshing:G,scheduledCount:_,onNewSession:Qe,onNewWorkspace:()=>Me(!0),onScheduler:()=>De(!0),onSelectSession:ne,onNewSessionForFolder:eo,onNewWorktreeSession:no,onToast:xe,onCancelWait:ze,batch:ke,onSelectWorkspaces:N.toggleWorkspaceSelection,onStartSessionSelection:(be)=>X.begin("session",be)};return e("div",{className:"flex flex-col h-full w-full bg-canvas text-ink relative select-none",children:[e(co,{onClose:g,viewLabel:y.showingSessions?"Sessions":y.activePanel?.label??"Panel",menuProps:fe.surfaceProps}),Ao(y.enabled)?e(Wo,{panels:y.catalog,activeId:y.activeView,onSelect:y.setActiveView,menuProps:fe.surfaceProps}):null,fe.anchor?e(Mo,{anchor:fe.anchor,items:fe.items,hidden:fe.hidden,onToggle:fe.toggle,onClose:fe.close}):null,e("div",{className:y.showingSessions?"contents":"hidden",children:[H==="modern"?e(mu,{...ht,touch:!0}):e(yo,{folders:Q,initializing:I,failed:F,activeSessionId:t,expandedFolders:O,sessionStatus:ae,searchQuery:j,sortOption:ue,optionsOpen:Y,showArchived:M,harnessFilter:oe,onHarnessFilterChange:te,harnessOptions:q,optionsRef:E,scheduledCount:_,refreshing:G,selecting:X.mode!==null,batch:ke,onNewSession:Qe,onNewWorkspace:()=>Me(!0),onScheduler:()=>De(!0),onRefresh:A,onToggleOptions:()=>J(!Y),onSortChange:de,onResetSort:()=>de("A-Z"),onToggleArchived:oo,onHideArchived:()=>ee(!1),onSearchChange:V,onClearSearch:()=>V(""),onSelectWorkspaces:N.toggleWorkspaceSelection,onSelectSession:ne,onNewSessionForFolder:eo,onNewWorktreeSession:no,onToggleFolder:R,onToast:xe,onStartSessionSelection:(be)=>X.begin("session",be),onCancelWait:ze}),X.mode&&e(bu,{drawer:!0,mode:X.mode,count:W.length,total:z.length,busy:ve.isDeleting,archiving:we.isArchiving,scopeLabel:he?.name,onSelectAll:()=>X.selectAllOf(z),onUnselectAll:()=>X.unselectAllOf(z),onDelete:()=>ve.request(W),onArchive:ft,onCancel:X.end})]}),y.showingSessions?null:e(Bo,{panelKey:y.activeView,panel:y.activePanel,body:L}),e(Co,{onSettings:()=>window.dispatchEvent(new CustomEvent("omp:open-settings",{detail:{}})),onKeyBindings:Rc,onAbout:()=>ie(!0),shellDownload:Ue,onDesktopToggle:v,updateAvailable:Pe.hasUpdate,onUpdateClick:()=>{ie(!0),Pe.check()}}),e(zo,{activeSessionId:t,newWorkspaceOpen:Oe,onCloseNewWorkspace:()=>Me(!1),schedulerOpen:Be,onCloseScheduler:()=>De(!1),aboutOpen:Ce,onCloseAbout:()=>ie(!1),updates:Pe,pushToast:xe,batchDelete:ve,batchMode:X.mode,onEndBatch:X.end,scopeLabel:he?.name})]})}var yt="terminal";function Ze(t){return t===yt}function Ae(t){if(Ze(t))QA()}function Zo({enabled:t=!0,rootPath:r,refreshKey:c=0,onRefresh:p,onOpenFile:h,onClose:g}){let[v,k]=qa("layout.mobileRightPanel",tc),w=St(),l=To(er("all"),Ne,w.enabled),x=l.find((L)=>L.id===v)??l[0],C=Mp(r,t),{changes:T}=Hs(r,C,t),N=T.length>0,O=a((L)=>{if(L!==x?.id)Ae(L);k(L)},[x?.id,k]);o(()=>{if(!Ze(x?.id))ic()},[x?.id]);let R=$e(w.enabled?"right":"all"),E=w.enabled?R.items:R.items.filter((L)=>L.id!==Ne),y={className:"h-full w-full",enabled:t||!x?.requiresWorkspace,active:!0,refreshKey:c,...r?{rootPath:r}:{},onRefresh:p,onOpenFile:h,onClose:g,showHeader:!1,layout:"phone"};return e("div",{className:"flex flex-col h-full w-full bg-paper text-ink relative select-none",children:[e("div",{className:"border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0 bg-canvas titlebar-drag-region select-none",...Oo(),...R.surfaceProps,style:{height:"calc(3.5rem + env(safe-area-inset-top, 0px))",paddingTop:"env(safe-area-inset-top, 0px)",paddingLeft:$o(tr("0.75rem",!0)),paddingRight:_r("0.75rem",!0)},children:[e("div",{className:"flex items-center min-w-0 titlebar-no-drag",children:e(Ve,{panels:l,activeId:x?.id??v,onSelect:O,hasGitChanges:N})}),e("button",{type:"button",onClick:g,className:"p-1.5 rounded-lg hover:bg-ink/5 active:bg-ink/10 text-ink transition-colors flex-shrink-0 ml-2 titlebar-no-drag",title:"Close right sidebar","aria-label":"Close right sidebar",children:e(b,{size:20,strokeWidth:1.8})})]}),R.anchor?e(Mo,{anchor:R.anchor,align:"right",items:E,hidden:R.hidden,onToggle:R.toggle,onClose:R.close}):null,e("div",{className:"flex-1 min-h-0 overflow-hidden relative",style:{paddingBottom:"env(safe-area-inset-bottom, 0px)"},children:x?e(Ye,{fallback:e("div",{className:"h-full flex items-center justify-center text-ink/40",children:e("span",{className:"text-xs font-mono",children:"Loading…"})}),children:e(Eo,{value:y,children:x.render(y)})}):e("div",{className:"h-full flex items-center justify-center text-ink/40",children:e("span",{className:"text-xs font-mono text-muted",children:"No session selected"})})})]})}function Yo({fileName:t,hasPreview:r,isPreview:c,hasReview:p,isReviewing:h,onToggleReview:g,wordWrap:v,copied:k,byteViewer:w=!1,missing:l=!1,onSave:x,onClose:C,onTogglePreview:T,onToggleFind:N,findOpen:O,onToggleWrap:R,onZoomOut:E,onZoomIn:y,onCopy:L,onDownload:I}){return e("header",{className:"bg-canvas border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0",style:{height:"calc(3rem + env(safe-area-inset-top, 0px))",paddingTop:"env(safe-area-inset-top, 0px)",paddingLeft:tr("0.75rem",!0),paddingRight:_r("0.75rem",!0)},children:[e("div",{className:"flex items-center space-x-2 min-w-0 pr-2",children:[e("button",{type:"button",onClick:C,className:"p-1.5 rounded-lg hover:bg-ink/10 text-ink transition-colors active:scale-90 flex-shrink-0 cursor-pointer",title:"Close editor","aria-label":"Close editor",children:e(en,{size:18,strokeWidth:2})}),e("div",{className:"flex items-center space-x-1.5 truncate",children:[e(st,{name:t,size:15,className:`flex-shrink-0${l?" text-error":""}`}),e("span",{className:`font-semibold text-xs truncate${l?" text-error line-through":" text-ink"}`,children:t})]})]}),e("div",{className:"flex items-center space-x-1 text-ink/70 flex-shrink-0",children:[l&&x&&e("button",{type:"button",onClick:x,className:"p-1.5 rounded bg-error text-canvas hover:bg-error/90 transition-colors cursor-pointer",title:"Save and recreate the file","aria-label":"Save and recreate the file",children:e(dt,{size:15})}),!w&&e("button",{type:"button",onClick:N,className:`p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer ${O?"bg-ink text-canvas":""}`,title:O?"Close find":"Find in file","aria-label":O?"Close find":"Find in file","aria-pressed":O,children:e(U,{size:15})}),p&&e("button",{type:"button",onClick:g,className:`p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer ${h?"bg-ink text-canvas":""}`,title:h?"Exit review mode":"Review this document","aria-label":h?"Exit review mode":"Review this document","aria-pressed":h,children:e(cn,{size:15})}),r&&e("button",{type:"button",onClick:T,className:`p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer ${c?"bg-ink text-canvas":""}`,title:c?"View source":"Show preview","aria-label":c?"View source":"Show preview",children:c?e(_t,{size:15}):e(He,{size:15})}),!w&&e(d,{children:[e("button",{type:"button",onClick:R,className:`p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer ${v?"text-ink":""}`,title:"Toggle word wrap",children:e(Xt,{size:15})}),e("button",{type:"button",onClick:E,className:"p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer",title:"Decrease font size",children:e(Ra,{size:15})}),e("button",{type:"button",onClick:y,className:"p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer",title:"Increase font size",children:e(Qa,{size:15})})]}),e("button",{type:"button",onClick:L,className:"p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer",title:"Copy content",children:k?e(f,{size:15,className:"text-success"}):e(re,{size:15})}),e("button",{type:"button",onClick:I,className:"p-1.5 rounded hover:bg-ink/10 transition-colors cursor-pointer",title:"Download file",children:e(ge,{size:15})})]})]})}function Jo({fileName:t,content:r,path:c,root:p,repo:h,fontSize:g,scrollRef:v,onScroll:k,isLoading:w,unsupported:l,loadError:x,reviewActive:C,onExitReview:T}){return e("div",{ref:v,onScroll:k,"data-testid":"editor-scroller",className:"flex-1 min-h-0 overflow-auto relative bg-paper text-ink select-text",children:w?e("div",{className:"flex items-center justify-center h-full text-ink/40 text-xs gap-2",children:[e(m,{size:14,className:"animate-spin"}),e("span",{children:"Loading file content..."})]}):l?e("div",{className:"flex flex-col items-center justify-center h-full gap-2 px-6 text-center",children:[e(zc,{size:20,className:"text-ink/40"}),e("span",{className:"text-xs text-ink/70 font-sans",children:[t," cannot be opened here"]}),e("span",{className:"text-[11px] text-ink/50 font-sans max-w-[42ch]",children:l})]}):x?e("div",{className:"flex flex-col items-center justify-center h-full gap-2 px-6 text-center",children:[e(S,{size:20,className:"text-error"}),e("span",{className:"text-xs text-error font-sans",children:["Could not read ",t]}),e("span",{className:"text-[11px] text-ink/50 font-mono break-all",children:x})]}):e("div",{className:"p-4 bg-paper text-ink min-h-full font-sans",style:{fontSize:`${g}px`},children:e(Gc,{content:r,file:{name:t,path:c,root:p,repo:h},active:C,onExit:T})})})}function et({file:t,editor:r,viewerKind:c,byteViewer:p,isPreview:h,isMd:g,content:v,language:k,wordWrap:w,fileKey:l,revealMarks:x,currentMark:C,surfaceRef:T,setCodeScroller:N,previewRef:O,scroll:R,fontSize:E,reviewActive:y,onExitReview:L,editorTheme:I,editorFontFamily:F,indentUnitText:A,typing:G}){let j=a(async(V)=>{let M=await Jc(t,V,{interactive:!0,baseMtimeMs:r.baseMtimeMs});if(M.status==="written")return{ok:!0};if(M.status==="conflict")return{ok:!1,error:"This file changed on disk since it was opened."};if(M.status==="needs-permission")return{ok:!1,error:"Tap Save again to grant write access."};return{ok:!1,error:M.error}},[t,r.baseMtimeMs]);if(r.isImage&&r.imageUrl)return e(yi,{src:r.imageUrl,name:t.name,className:"flex-1 min-h-0"});if(r.isImage||Vc(c)&&(p||h))return e(vl,{kind:c,path:t.path??t.name,name:t.name,source:r.byteSource,content:r.content,revision:r.revision,onContentChange:r.onChange,onSaveBytes:r.deviceBacked?void 0:j,onDirtyChange:r.setBinaryDirty});if(r.isLoading||r.unsupported||r.loadError||g&&h)return e(Jo,{fileName:t.name,content:v,path:t.path??t.name,root:t.root,repo:t.repo,fontSize:E,scrollRef:O,onScroll:R.onScroll,isLoading:r.isLoading,unsupported:r.unsupported,loadError:r.loadError,reviewActive:y,onExitReview:L});return e(qc,{ref:T,value:v,onValueChange:r.onChange,language:k,wordWrap:w,documentKey:l,marks:x,currentMark:C,onScroller:N,scrollTestId:"editor-scroller",className:"flex-1 min-h-0 text-ink select-text",themeVars:I.vars,themes:I.themes,indentUnitText:A,typing:G,padding:12,placeholder:"This file is empty",style:{fontFamily:F,fontSize:`${E}px`,lineHeight:el}})}function ot(){return e("div",{className:"flex items-start gap-2 px-3 py-2 border-b border-error/30 bg-error/10 text-error shrink-0",children:[e(S,{size:14,className:"shrink-0 mt-0.5"}),e("div",{className:"min-w-0",children:[e("div",{className:"text-[11.5px] font-sans",children:"This file was deleted from disk."}),e("div",{className:"text-[11px] font-sans text-error/80",children:"The buffer is still here. Saving recreates the file — autosave is off until then."})]})]})}function tt({isImage:t,byteViewer:r,viewerKind:c,lineCount:p,charCount:h,language:g,saveStatus:v,path:k,conflicts:w=0}){return e("footer",{className:"bg-canvas border-t border-ink/10 px-3 flex items-center justify-between text-[10px] text-ink/60 flex-shrink-0 font-mono",style:{height:"calc(1.75rem + env(safe-area-inset-bottom, 0px))",paddingBottom:"env(safe-area-inset-bottom, 0px)",paddingLeft:"max(0.75rem, env(safe-area-inset-left, 0px))",paddingRight:"max(0.75rem, env(safe-area-inset-right, 0px))"},children:[e("div",{className:"flex items-center space-x-3",children:t?e("span",{className:"uppercase",children:"Image"}):r?e("span",{className:"uppercase",children:Uo[c]}):e(d,{children:[w>0&&e("span",{className:"text-error font-semibold tabular-nums",children:["⚠ ",w]}),e("span",{children:[p," lines"]}),e("span",{children:[h," chars"]}),e("span",{className:"uppercase",children:g})]})}),e("div",{className:"flex items-center space-x-2",children:[v==="saving"&&e(d,{children:[e(m,{size:10,className:"animate-spin"}),e("span",{children:"Saving…"})]}),v==="saved"&&e(d,{children:[e("span",{className:"w-1.5 h-1.5 rounded-full bg-success"}),e("span",{children:"Saved"})]}),v==="error"&&e(d,{children:[e("span",{className:"w-1.5 h-1.5 rounded-full bg-error"}),e("span",{className:"text-error",children:"Save failed"})]}),v==="idle"&&k&&e("span",{className:"truncate max-w-[140px]",children:k})]})]})}function it({path:t,content:r,ready:c,surfaceRef:p}){let h=eu(t,r,c),g=i(null);return o(()=>{if(!h||g.current===h.request)return;g.current=h.request;let v=h.matches[h.currentIndex];if(!v)return;p.current?.select(v.start,v.end,!1),p.current?.revealOffset(v.start)},[h,p]),{matches:h?.matches??[],currentIndex:h?.currentIndex??-1}}function at({path:t,content:r,documentKey:c,ready:p,surfaceRef:h,toggleWordWrap:g}){let v=it({path:t,content:r,ready:p,surfaceRef:h}),k=Xc({text:r,documentKey:c,readSelection:()=>h.current?.getSelection()??null,select:(w,l,x=!0)=>h.current?.select(w,l,x),reveal:(w)=>h.current?.revealOffset(w),applyDocument:(w,l,x)=>h.current?.applyDocument(w,l,x),toggleWordWrap:g});if(k.open&&k.matches.length>0)return{find:k,revealMarks:k.matches,currentMark:k.currentIndex};return{find:k,revealMarks:v.matches.length>0?v.matches:void 0,currentMark:v.currentIndex}}function lt({path:t,symbols:r,total:c,truncated:p,emptyNotice:h,preview:g=!1}){let[v,k]=n(!1);if(!t)return null;let w=(l,x)=>{if(k(!1),g){let C=Wu(r,x);if(C)es({path:t,...C});return}Xi({path:t,line:l.line,column:l.column,length:l.name.length})};return e(d,{children:[e("div",{className:"absolute bottom-14 right-3 z-20",children:e("button",{type:"button",onClick:()=>k(!0),"aria-label":`Outline (${c} symbols)`,title:"Outline",className:"flex h-9 w-9 items-center justify-center rounded-full border border-ink/20 bg-paper text-ink/60 shadow-sm transition-all hover:bg-ink/5 hover:text-ink active:scale-95",children:e(Kr,{size:16})})}),v&&e(Z,{onClose:()=>k(!1),maxWidthClass:"max-w-sm",zClass:"z-[70]",header:e("div",{className:"flex min-w-0 items-center gap-2",children:[e(Kr,{size:15,className:"flex-shrink-0 text-ink/50"}),e("span",{className:"text-sm font-medium",children:"Outline"}),e("span",{className:"font-mono text-[11px] text-ink/40",children:p?`${r.length}/${c}`:c})]}),children:e("div",{className:"max-h-[60vh] overflow-y-auto scrollbar-overlay-container py-1",children:[r.length===0?e("div",{className:"px-4 py-3 text-[11px] italic text-ink/40",children:h}):r.map((l,x)=>e("button",{type:"button",onClick:()=>w(l,x),"aria-label":g?`${Xo(l.kind)} ${l.name}`:`${Xo(l.kind)} ${l.name}, line ${l.line}`,className:"flex w-full min-w-0 items-center gap-2 px-4 py-2 text-left transition-colors hover:bg-ink/5 active:bg-ink/10",style:{paddingLeft:`${16+l.depth*12}px`},children:[e($u,{kind:l.kind,size:13}),e("span",{className:"min-w-0 flex-1 truncate font-mono text-[11px] text-ink",children:l.name}),!g&&e("span",{className:"flex-shrink-0 font-mono text-[10px] text-ink/40",children:l.line})]},`${l.line}:${l.kind}:${l.name}`)),p&&e("div",{className:"px-4 py-2 text-[11px] italic text-ink/40",children:zu(c)})]})})]})}function ct({file:t,missing:r=!1,onClose:c,onFileSaved:p,onDropResult:h}){let g=hs(t.path??t.name),[v,k]=n({}),[w,l]=n(Io),[x,C]=n(!0),T=So(),N=ki(),O=su(),R=cu(),E=g==="markdown",y=kd[g]===!0,L=As[g]===!0,I=t.path??t.name,F=v[I]??L,A=au(String(I)),G=E&&F,j=()=>k((H)=>({...H,[I]:!F})),V=Lc({enabled:Boolean(t.root),onResult:h}),M=Zc(t,{flushOnUnmount:!0,reportSaveError:!0,downloadMimeType:"text/plain;charset=utf-8",onFileSaved:p,missing:r}),[ee,Y]=n(null),J=pl({tabKey:I,surface:E&&F?"rendered":"code",ready:M.loaded,slot:xh,element:E&&F?void 0:ee}),[ue,de]=n(null),oe=a((H)=>{J.ref(H),de(H)},[J.ref]);Wc({path:t.path??null,scroller:ue,preview:E&&F});let te=i(null),{find:q,revealMarks:Q,currentMark:ae}=at({path:t.path??null,content:M.content,documentKey:`${I}\x00${M.language}`,ready:M.loaded&&!M.loadError,surfaceRef:te,toggleWordWrap:()=>C((H)=>!H)}),{content:ne,language:X}=M,ve=ne.split(`
2
- `).length,we=jc(ne);tu({file:{id:I,name:t.name,path:t.path??I},editor:M,surfaceRef:te,isPreview:F,exitPreview:()=>k((H)=>({...H,[I]:!1})),publish:!1});let{symbols:ke,total:he,truncated:z,notice:W}=Uu({content:ne,language:X,path:t.path??null,state:y?"not-a-document":M.loadError?"error":M.loaded?"ready":"loading",note:y?`${Uo[g]} files have no text outline.`:M.loadError});return e("div",{className:"fixed inset-x-0 top-0 h-dvh z-[60] bg-paper flex flex-col font-mono text-xs select-none",...V.dropProps,...V.captureDropProps,children:[e(yl,{visible:V.isDragging}),e(Yo,{fileName:t.name,hasPreview:L,isPreview:F,wordWrap:x,copied:M.copied,byteViewer:y,missing:r,onSave:M.saveNow,onClose:c,onTogglePreview:j,hasReview:G,isReviewing:G&&A.active,onToggleReview:A.toggle,onToggleFind:()=>q.open?q.close():q.openFind(),findOpen:q.open,onToggleWrap:()=>C(!x),onZoomOut:()=>l((H)=>Math.max(tl,H-1)),onZoomIn:()=>l((H)=>Math.min(nl,H+1)),onCopy:M.copy,onDownload:M.download}),r&&e(ot,{}),M.diskChange&&e(nu,{fileName:t.name,onReload:M.reloadFromDisk,onKeepMine:M.keepMineAgainstDisk}),q.open&&!y&&e("div",{className:"relative shrink-0 h-9 border-b border-ink/10 bg-paper",children:e(Hc,{find:q})}),e(et,{file:t,editor:M,viewerKind:g,byteViewer:y,isPreview:F,isMd:E,content:ne,language:X,wordWrap:x,fileKey:I,revealMarks:Q,currentMark:ae,surfaceRef:te,setCodeScroller:Y,previewRef:oe,scroll:J,fontSize:w,reviewActive:G&&A.active,onExitReview:A.toggle,editorTheme:N,editorFontFamily:T,indentUnitText:iu(O),typing:R}),!y&&e(lt,{path:t.path??null,symbols:ke,total:he,truncated:z,emptyNotice:W,preview:E&&F}),e(tt,{isImage:M.isImage,byteViewer:y,viewerKind:g,lineCount:ve,charCount:ne.length,language:X,saveStatus:M.saveStatus,path:t.path,conflicts:we}),M.saveMissingConfirm&&t.path&&e(ru,{fileName:t.name,filePath:t.path,onClose:M.cancelSaveMissing,onConfirm:M.confirmSaveMissing})]})}function pt({diff:t,onClose:r,onFileSaved:c}){let p=t.path.split("/").pop()||t.path,h=Boolean(t.staged),g=t.status||"M",v=Jn(g,h);return e("div",{className:"fixed inset-x-0 top-0 h-dvh z-[60] bg-paper flex flex-col",children:[e("header",{className:"bg-canvas border-b border-ink/10 flex items-center justify-between px-3 flex-shrink-0",style:{height:"calc(3rem + env(safe-area-inset-top, 0px))",paddingTop:"env(safe-area-inset-top, 0px)",paddingLeft:tr("0.75rem",!0),paddingRight:_r("0.75rem",!0)},children:[e("div",{className:"flex items-center space-x-2 min-w-0 pr-2",children:[e("button",{type:"button",onClick:r,className:"p-1.5 -ml-1 rounded-lg hover:bg-ink/5 active:bg-ink/10 text-ink transition-colors flex-shrink-0",title:"Back","aria-label":"Close diff",children:e(en,{size:18,strokeWidth:1.9})}),e(st,{name:p,size:14,className:"flex-shrink-0"}),e("span",{className:"font-mono text-xs text-ink font-medium truncate",title:t.path,children:p})]}),e("span",{className:`px-1.5 py-0.5 text-[10px] font-mono font-semibold rounded border flex-shrink-0 ${v.badgeBgClass}`,children:[v.charStatus," ",v.label]})]}),e("div",{className:"flex-1 min-h-0",children:e(Uc,{className:"h-full",viewModeButtons:!1,filePath:t.path,status:g,isStaged:h,root:t.root,repo:t.repo||".",journalDiff:t.journal,readOnly:Boolean(t.journal),onFileSaved:c,tabKey:t.journal?qm(t.journal.path,t.journal.from,t.journal.to):jm(t.path,h)})})]})}function Le(t,r){let c=t[r];return typeof c==="string"&&c.length>0?c:void 0}function Ct(t){let r=t.content;return typeof r==="string"?r:void 0}function Je(t,r){let c=typeof t==="object"&&t!==null?t:{},p=(Le(c,"path")??"").replace(/^\/+/,"");if(!p)return null;return{name:Le(c,"name")??p.split("/").pop()??"file",path:p,content:Ct(c),root:Le(c,"root")??r??void 0,repo:Le(c,"repo"),handleId:Le(c,"handleId"),deviceFile:c.deviceFile===!0?!0:void 0}}function mt(t){if(!t)return[];return[{id:"mobile-editor",path:t.path,root:t.root,repo:t.repo,content:t.content,handleId:t.handleId,deviceFile:t.deviceFile}]}function ut(t,r,c){Ja(c);let p=Xn(r);return rn(p,Cg,{folderId:r,worktreePath:c}),t.setSearchParams((h)=>{let g=Nt(h);return g.set("sessionId",p),g.set("folderId",r.toString()),g},{replace:!0}),t.afterNavigate?.(),p}function nd({onDesktopToggle:t,appSettings:r={}}){let{folders:c,isMock:p}=Ke(),h=St(),{sessionId:g}=je(),[v,k]=le(),w=v.get("sessionId"),l=w?Number.isNaN(Number(w))?w:Number(w):null,x=v.get("folderId"),C=x?Number.isNaN(Number(x))?x:Number(x):null,[T,N]=n("main"),[O,R]=n(null),[E,y]=n(null),[L,I]=n(0),[F,A]=n(!1),[G,j]=n("appearance"),[V,M]=n(!1),ee=a(()=>I((z)=>z+1),[]),Y=Yc(mt(O),L),{pushToast:J}=qe(),ue=a((z)=>J(z.message,z.ok?"success":"error"),[J]),de=Y.size>0;io({editorOpen:O!==null,diffOpen:E!==null,settingsOpen:F,offMainScreen:T!=="main",onCloseEditor:()=>R(null),onCloseDiff:()=>y(null),onCloseSettings:()=>{A(!1),M(!1)},onReturnToMain:()=>N("main")});let{folder:oe}=to(c,l),te=oe??(C?c.find((z)=>String(z.id)===String(C))??null:null),q=uf(c,l)??te?.project_path??null,Q=!!te,ae=Lc({enabled:Q,onResult:ue});ye("omp:open-file",(z)=>{let H=Je(z.detail,q);if(H)R(H)}),ye("omp:open-diff",(z)=>{let W=z.detail;if(!W?.file)return;y({path:W.file.replace(/^\/+/,""),status:W.status,staged:W.staged,repo:W.repo,root:W.root??q??void 0,...W.source==="journal"&&W.journal?{journal:W.journal}:{}})}),ye("omp:view-subagent",()=>N("main")),ye(id,(z)=>{let W=z.detail?.panelKey;if(!W)return;let H=wh(W,h);if(!H)return;let fe=Se(g,"layout.mobileRightPanel");if(H==="right"&&(T!=="right"||fe!==W))Ae(W);rn(g,H==="left"?"layout.mobileLeftPanel":"layout.mobileRightPanel",W),N(H==="left"?"session":"right")}),ye("omp:open-settings",(z)=>{let W=z.detail;j(W?.category??"appearance"),M(Boolean(W?.autoOpenAdd)),A(!0)});let ne=(z)=>{k((W)=>{let H=Nt(W);if(H.set("sessionId",z.toString()),H.has("subagent"))H.delete("subagent");return H},{replace:!0}),N("main")},X=()=>{k(new URLSearchParams,{replace:!0}),N("main")},ve=(z)=>{let W=ll(c,w,z);if(W)Ja(W);k((H)=>lc(H,Xn(z),z),{replace:!0}),N("main")},we=(z,W)=>ut({setSearchParams:k,afterNavigate:()=>N("main")},z,W),ke=a((z)=>{let W=Je(z,q);if(W)R(W)},[q]),he=a(()=>{let z=Se(g,"layout.mobileRightPanel")??tc;Ae(z),N("right")},[g]);return e("div",{"data-testid":"app-root",className:"app-window flex flex-col h-dvh w-screen overflow-hidden bg-canvas text-ink font-sans selection:bg-ink selection:text-canvas relative",children:[e(hf,{}),e(bf,{isMock:p}),e(yf,{workspacePath:q}),e("div",{className:`flex-1 min-h-0 w-full relative ${T==="main"?"block":"hidden"}`,...ae.dropProps,...ae.captureDropProps,children:[e(yl,{visible:ae.isDragging}),e(lo,{activeSessionId:l,onSelectSession:ne,onNewSession:X,onOpenSessionSidebar:()=>N("session"),onOpenRightSidebar:he,appSettings:r})]}),e("div",{className:`flex-1 min-h-0 w-full ${T==="session"?"block":"hidden"}`,children:e(Ko,{activeSessionId:l,onSelectSession:ne,onNewSession:X,onNewSessionForFolder:ve,onNewWorktreeSession:we,onClose:()=>N("main"),onDesktopToggle:t,appSettings:r,rootPath:q??void 0,refreshKey:L,onRefresh:ee,onOpenFile:ke})}),T==="right"&&e("div",{className:"flex-1 min-h-0 w-full",children:e(Zo,{enabled:Q,rootPath:q??void 0,refreshKey:L,onRefresh:ee,onOpenFile:ke,onClose:()=>N("main")})}),O&&e(ct,{file:O,missing:de,onClose:()=>R(null),onFileSaved:ee}),E&&e(pt,{diff:E,onClose:()=>y(null),onFileSaved:ee}),e(ol,{isOpen:F,onClose:()=>{A(!1),M(!1)},initialCategory:G,autoOpenAddProvider:V,appSettings:r})]})}export{nd as MobileLayoutWrapper};
@@ -1 +0,0 @@
1
- import{Nf}from"./index-fbpc1wx6.js";export{Nf as createArchitectureServices};
@@ -1 +0,0 @@
1
- import{Np}from"./index-pysqpc5n.js";export{Np as default};
@@ -1 +0,0 @@
1
- import{ec}from"./index-hfsvwfgw.js";import"./index-dmv2zasz.js";export{ec as default};
@@ -1 +0,0 @@
1
- import{wd,bs,Uh,Gh,jh,qh}from"./index-6s4mrdew.js";export{Uh as css,qh as gss,bs as keywords,jh as less,wd as mkCSS,Gh as sCSS};
@@ -1 +0,0 @@
1
- import{Bf}from"./index-fbpc1wx6.js";export{Bf as createCynefinServices};
@@ -1 +0,0 @@
1
- import{Qf}from"./index-fbpc1wx6.js";export{Qf as createEventModelingServices};
@@ -1 +0,0 @@
1
- import"./index-v5npdwy2.js";import"./index-nqjd3hh5.js";import{zh}from"./index-8trggh1z.js";export{zh as diagram};
@@ -1 +0,0 @@
1
- import{If}from"./index-fbpc1wx6.js";export{If as createGitGraphServices};
@@ -1 +0,0 @@
1
- import{Zf}from"./index-92n96mgd.js";import"./index-gtkhz0hj.js";import"./index-barbpakv.js";import"./index-xf36nmbm.js";import"./index-jbkkwa2q.js";export{Zf as default};
@@ -1 +0,0 @@
1
- import{Rn}from"./index-e6rm5xzj.js";import"./index-xf36nmbm.js";import"./index-jaqjvk22.js";export{Rn as default};
@@ -1,2 +0,0 @@
1
- import{t}from"./index-v5npdwy2.js";function be(c,e){if(c.accDescr)e.setAccDescription?.(c.accDescr);if(c.accTitle)e.setAccTitle?.(c.accTitle);if(c.title)e.setDiagramTitle?.(c.title)}t(be,"populateCommonDb");
2
- export{be};
@@ -1,2 +0,0 @@
1
- import{n,o,s,L,Xr,pc,mg,fg,nh,pm}from"./index-cq98p2rb.js";var p={name:"save",size:24,node:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]},dt=s(p);var Cd="omp:editor-theme-changed";function a(){if(typeof window>"u")return pc;return L("editorTheme")??pc}var m={theme:null,vars:{},themes:fg(null)};function ki(){let[e,t]=n(a);if(o(()=>{let i=(d)=>{let E=d.detail;t(E||a())};return window.addEventListener(Cd,i),()=>window.removeEventListener(Cd,i)},[]),o(()=>{pm(e)},[e]),e===Xr)return m;let r=mg(e);return{theme:r,vars:nh(r),themes:fg(e)}}var Ed="omp:editor-indent-changed",Bd=[2,4,8],ou={width:2,insertSpaces:!0};function Id(){if(typeof window>"u")return ou;let e=L("editorIndentWidth"),t=L("editorInsertSpaces");return{width:typeof e==="number"&&Bd.includes(e)?e:ou.width,insertSpaces:typeof t==="boolean"?t:ou.insertSpaces}}function iu(e){return e.insertSpaces?" ".repeat(e.width):"\t"}function su(){let[e,t]=n(Id);return o(()=>{let r=(i)=>{let d=i.detail;t(d??Id())};return window.addEventListener(Ed,r),()=>window.removeEventListener(Ed,r)},[]),e}var _d="omp:editor-typing-changed",xl={autoCloseBrackets:!0,autocomplete:!0};function lu(){if(typeof window>"u")return xl;let e=L("editorAutoCloseBrackets"),t=L("editorAutocomplete");return{autoCloseBrackets:typeof e==="boolean"?e:xl.autoCloseBrackets,autocomplete:typeof t==="boolean"?t:xl.autocomplete}}function cu(){let[e,t]=n(lu);return o(()=>{let r=(i)=>{let d=i.detail;t(d??lu())};return window.addEventListener(_d,r),()=>window.removeEventListener(_d,r)},[]),e}var ys="omp:editor-blame-changed",wl={enabled:!0,inline:!1};function xi(){if(typeof window>"u")return wl;let e=L("editorBlame"),t=L("editorBlameInline");return{enabled:typeof e==="boolean"?e:wl.enabled,inline:typeof t==="boolean"?t:wl.inline}}function Sd(){let[e,t]=n(xi);return o(()=>{let r=(i)=>{let d=i.detail;t(d??xi())};return window.addEventListener(ys,r),()=>window.removeEventListener(ys,r)},[]),e}
2
- export{dt,Cd,ki,Ed,Bd,ou,Id,iu,su,_d,xl,lu,cu,ys,wl,xi,Sd};
@@ -1 +0,0 @@
1
- import{jn,zo,Xm,fs,Ai,fl,ud,gl,wg,dd,ef,tf,nf,rf,Rh,Al,pd,Fh,md,Dr,Lh}from"./index-cq98p2rb.js";export{gl as IndentContext,Lh as StreamLanguage,md as bracketMatching,Al as codeFolding,nf as foldAll,ef as foldCode,pd as foldGutter,Rh as foldKeymap,dd as foldService,Ai as getIndentUnit,ud as getIndentation,Fh as highlightingFor,wg as indentOnInput,Xm as indentService,fl as indentString,fs as indentUnit,zo as language,Dr as matchBrackets,jn as syntaxTree,rf as unfoldAll,tf as unfoldCode};