@intent-hq/web 2.357.5 → 2.358.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 (221) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DjAk5kVg.js → -kRuCO2W.js} +1 -1
  3. package/web/app/immutable/chunks/{BQBELrK8.js → 4qV-3jgp.js} +1 -1
  4. package/web/app/immutable/chunks/{BYJ8RYZY.js → 51mPy8SN.js} +1 -1
  5. package/web/app/immutable/chunks/{Oyv13Qiy.js → 5uoxxRrI.js} +1 -1
  6. package/web/app/immutable/chunks/{DG3WDlq-.js → 6M8_bOmN.js} +1 -1
  7. package/web/app/immutable/chunks/{Deb9adiR.js → A6hJVKP1.js} +1 -1
  8. package/web/app/immutable/chunks/{ejm--nzP.js → AXctOpQN.js} +1 -1
  9. package/web/app/immutable/chunks/{D3Rn6g6v.js → B--u_2Nc.js} +2 -2
  10. package/web/app/immutable/chunks/{B9uFsQO_.js → B1YqGJC0.js} +4 -4
  11. package/web/app/immutable/chunks/{CepTMMxo.js → B21KgEqG.js} +1 -1
  12. package/web/app/immutable/chunks/{CpbXIHWP.js → B39I5OLS.js} +1 -1
  13. package/web/app/immutable/chunks/{VWARWUyw.js → B72tYG46.js} +4 -4
  14. package/web/app/immutable/chunks/{D5P99waS.js → B7XrY5h-.js} +1 -1
  15. package/web/app/immutable/chunks/{CB5CVvIg.js → BAPNccEM.js} +1 -1
  16. package/web/app/immutable/chunks/{DwdAFMs6.js → BAnyU7RO.js} +4 -4
  17. package/web/app/immutable/chunks/{D52fecD7.js → BCRcMJ-W.js} +1 -1
  18. package/web/app/immutable/chunks/{Dn1W0Y6I.js → BDS5fuDA.js} +3 -3
  19. package/web/app/immutable/chunks/{BPRVG6k-.js → BECt4TTe.js} +1 -1
  20. package/web/app/immutable/chunks/{Di-it7y2.js → BEwavXhY.js} +1 -1
  21. package/web/app/immutable/chunks/{D1LanoIo.js → BGUCuT7q.js} +1 -1
  22. package/web/app/immutable/chunks/{CDLLVu20.js → BI5bMZSW.js} +1 -1
  23. package/web/app/immutable/chunks/{B4WNkghA.js → BJzXpdtH.js} +1 -1
  24. package/web/app/immutable/chunks/{Czt_AdsD.js → BK68KdNc.js} +1 -1
  25. package/web/app/immutable/chunks/{DhnPdhLH.js → BOz86KDw.js} +1 -1
  26. package/web/app/immutable/chunks/{Dd0GRPZW.js → BQ8X2LHt.js} +1 -1
  27. package/web/app/immutable/chunks/{CCPIWPlX.js → BUq4flUY.js} +3 -3
  28. package/web/app/immutable/chunks/{yHUOSXrf.js → BYPGFyPj.js} +1 -1
  29. package/web/app/immutable/chunks/{D471hSlY.js → B_8PQmWM.js} +1 -1
  30. package/web/app/immutable/chunks/{DnKl4bfl.js → Bafh2cjd.js} +1 -1
  31. package/web/app/immutable/chunks/{ByzmHTuF.js → BdYsGCQ_.js} +1 -1
  32. package/web/app/immutable/chunks/{DU5JIBjp.js → BeYq4r24.js} +1 -1
  33. package/web/app/immutable/chunks/{BCb2Hynx.js → BfQXVs1y.js} +1 -1
  34. package/web/app/immutable/chunks/{BZQMWVq2.js → BfkeWNeb.js} +1 -1
  35. package/web/app/immutable/chunks/{Bd8jLsTN.js → BgRBcaUo.js} +1 -1
  36. package/web/app/immutable/chunks/{C9AQUTrX.js → BhL5eL8L.js} +1 -1
  37. package/web/app/immutable/chunks/{N0DQzoVo.js → BjAL1UGr.js} +1 -1
  38. package/web/app/immutable/chunks/BkA84tNB.js +1 -0
  39. package/web/app/immutable/chunks/{CrI50RYR.js → BlcLvSv0.js} +1 -1
  40. package/web/app/immutable/chunks/{CrdWfEsG.js → Bmbt3TeR.js} +1 -1
  41. package/web/app/immutable/chunks/{C9Gi_ykP.js → Bmq2l9Xx.js} +1 -1
  42. package/web/app/immutable/chunks/{XxrpDha8.js → BoLczGrE.js} +1 -1
  43. package/web/app/immutable/chunks/{B40EQFF1.js → BoTvEsBS.js} +1 -1
  44. package/web/app/immutable/chunks/{Du6fZ610.js → BoZRF0Rb.js} +2 -2
  45. package/web/app/immutable/chunks/{GNBTf9n2.js → BonEtgBU.js} +1 -1
  46. package/web/app/immutable/chunks/{WA5aF6nq.js → BrZfxmOm.js} +1 -1
  47. package/web/app/immutable/chunks/{DaFADtX2.js → Bre5dDRa.js} +1 -1
  48. package/web/app/immutable/chunks/{doMsOb8h.js → Bt2zHtMa.js} +4 -4
  49. package/web/app/immutable/chunks/{CWvv3NtN.js → Bu2DF6bU.js} +1 -1
  50. package/web/app/immutable/chunks/{CkqMzcAU.js → BuuNmCxr.js} +1 -1
  51. package/web/app/immutable/chunks/{CEiAdjWq.js → Bwi005HJ.js} +1 -1
  52. package/web/app/immutable/chunks/{DLfUjnGm.js → BxMfB3uU.js} +1 -1
  53. package/web/app/immutable/chunks/{CBkni_u0.js → C-NPSxo2.js} +1 -1
  54. package/web/app/immutable/chunks/{PO83wZCL.js → C1sOJyFR.js} +1 -1
  55. package/web/app/immutable/chunks/{kkAUANeA.js → C3RH3nH_.js} +1 -1
  56. package/web/app/immutable/chunks/{yrOFcITJ.js → C3lgXrJt.js} +1 -1
  57. package/web/app/immutable/chunks/{rXzX5xZR.js → C3rj6Dod.js} +1 -1
  58. package/web/app/immutable/chunks/{D3EfSPo3.js → C4Mn0Hb-.js} +1 -1
  59. package/web/app/immutable/chunks/{BbN1PgGi.js → C4eFP2Zv.js} +1 -1
  60. package/web/app/immutable/chunks/{AyjU69sJ.js → C7xPtEkO.js} +1 -1
  61. package/web/app/immutable/chunks/{C5G99nVB.js → C9LROoRU.js} +31 -31
  62. package/web/app/immutable/chunks/{CqHhPGmA.js → C9OoGyJu.js} +1 -1
  63. package/web/app/immutable/chunks/{CdvjbMBZ.js → CB6GZsrQ.js} +1 -1
  64. package/web/app/immutable/chunks/{CBPLWyQ8.js → CD4BYSPy.js} +1 -1
  65. package/web/app/immutable/chunks/{BDG2v-O6.js → CDVUC5qK.js} +1 -1
  66. package/web/app/immutable/chunks/{CKjYWqEJ.js → CE70dsdv.js} +1 -1
  67. package/web/app/immutable/chunks/{AZ8Xy_Xh.js → CEGk06kt.js} +2 -2
  68. package/web/app/immutable/chunks/{D-jxMveW.js → CFa2NaXM.js} +1 -1
  69. package/web/app/immutable/chunks/{HwJSjKPR.js → CHFBgXBI.js} +3 -3
  70. package/web/app/immutable/chunks/{CvdR6Bd_.js → CIkMa8dp.js} +1 -1
  71. package/web/app/immutable/chunks/{CmcfBlnY.js → CKI1_bv0.js} +1 -1
  72. package/web/app/immutable/chunks/{DxlrzlUO.js → CKte-e5A.js} +1 -1
  73. package/web/app/immutable/chunks/{CjlM36lq.js → CLXYd9_V.js} +1 -1
  74. package/web/app/immutable/chunks/{DT0KOxBR.js → CM4ereyg.js} +1 -1
  75. package/web/app/immutable/chunks/{COHdP7EQ.js → CM_58O-V.js} +1 -1
  76. package/web/app/immutable/chunks/{fsmCJ9E9.js → CQKd4mJk.js} +1 -1
  77. package/web/app/immutable/chunks/{CjPqlWA8.js → CQhHtQK8.js} +1 -1
  78. package/web/app/immutable/chunks/{BD71gD4J.js → CSHLIIcV.js} +1 -1
  79. package/web/app/immutable/chunks/{CKWWK9AG.js → CSK-Ks7E.js} +2 -2
  80. package/web/app/immutable/chunks/{ocohHyhc.js → CSQeGAbZ.js} +1 -1
  81. package/web/app/immutable/chunks/{C7tJ8OXj.js → CU48trLA.js} +1 -1
  82. package/web/app/immutable/chunks/{D_rjCUs4.js → CV1tpNrG.js} +1 -1
  83. package/web/app/immutable/chunks/{qFl3oWnR.js → CVK5BOxJ.js} +1 -1
  84. package/web/app/immutable/chunks/{D0V81fq2.js → CWq1oZWc.js} +1 -1
  85. package/web/app/immutable/chunks/{DJQD2qGi.js → CXak2CWS.js} +1 -1
  86. package/web/app/immutable/chunks/{Djq26kWU.js → CY8reJZf.js} +1 -1
  87. package/web/app/immutable/chunks/{DepfqAOx.js → Ca9Vj8X7.js} +1 -1
  88. package/web/app/immutable/chunks/{Dk3D2qRF.js → CaSPRIlD.js} +1 -1
  89. package/web/app/immutable/chunks/{B--8cA8U.js → Cbqe96Su.js} +1 -1
  90. package/web/app/immutable/chunks/CdSvrLOZ.js +1 -0
  91. package/web/app/immutable/chunks/{BL1a9dAQ.js → CdjS2YHF.js} +1 -1
  92. package/web/app/immutable/chunks/{G1wxRXy_.js → CevP3sLy.js} +1 -1
  93. package/web/app/immutable/chunks/{BCqeyLEa.js → Cgbm4X7X.js} +1 -1
  94. package/web/app/immutable/chunks/{5cZE-Bb1.js → Chs5DYDz.js} +1 -1
  95. package/web/app/immutable/chunks/{BmvbrR5U.js → CiDOKjBy.js} +1 -1
  96. package/web/app/immutable/chunks/{Btd6UQfU.js → CjuCfT-H.js} +1 -1
  97. package/web/app/immutable/chunks/{BslfCNif.js → Cl6etYZ6.js} +1 -1
  98. package/web/app/immutable/chunks/{CuG3zmBQ.js → Cld1FvNn.js} +1 -1
  99. package/web/app/immutable/chunks/{DLZwi7N_.js → Coz3Oj0D.js} +1 -1
  100. package/web/app/immutable/chunks/{vFmgUcY-.js → Cp-V-kX1.js} +1 -1
  101. package/web/app/immutable/chunks/{CkfQIblp.js → CpjcO2UG.js} +1 -1
  102. package/web/app/immutable/chunks/{BjdDije1.js → CrVg-aIz.js} +1 -1
  103. package/web/app/immutable/chunks/{3E3FFIBp.js → D-WYdZmt.js} +1 -1
  104. package/web/app/immutable/chunks/{CMK6nD4P.js → D0OCVTi-.js} +3 -3
  105. package/web/app/immutable/chunks/{DzPu3hXf.js → D11PDukO.js} +1 -1
  106. package/web/app/immutable/chunks/{CtQODp8h.js → D1EdV32Z.js} +3 -3
  107. package/web/app/immutable/chunks/{Dtd8hHcj.js → D22mDMme.js} +1 -1
  108. package/web/app/immutable/chunks/{DNj5HeWT.js → D2HdgcKm.js} +1 -1
  109. package/web/app/immutable/chunks/{BgvNw2ix.js → D4JuvJNp.js} +1 -1
  110. package/web/app/immutable/chunks/{DY9qQwsB.js → D6fddbvu.js} +1 -1
  111. package/web/app/immutable/chunks/D6jebcOi.js +1 -0
  112. package/web/app/immutable/chunks/{DGeJx6D0.js → D7NtVhAr.js} +1 -1
  113. package/web/app/immutable/chunks/{buk5RAoP.js → D7lNUU6C.js} +1 -1
  114. package/web/app/immutable/chunks/{L73m0JEz.js → D83kA8oL.js} +2 -2
  115. package/web/app/immutable/chunks/{DblIbdBw.js → D90JUNRF.js} +1 -1
  116. package/web/app/immutable/chunks/{fvC-6LgA.js → D98guX46.js} +1 -1
  117. package/web/app/immutable/chunks/{kDhfBVjP.js → D9pex3XI.js} +1 -1
  118. package/web/app/immutable/chunks/{lV2DHKlu.js → DC7_gAhS.js} +1 -1
  119. package/web/app/immutable/chunks/{YglZqzQH.js → DEnGZxZ_.js} +1 -1
  120. package/web/app/immutable/chunks/{DcNaMmNl.js → DFPzxECW.js} +1 -1
  121. package/web/app/immutable/chunks/{0fyWevd4.js → DH2Upu6c.js} +1 -1
  122. package/web/app/immutable/chunks/{CbOr2Wo7.js → DHlDoleO.js} +1 -1
  123. package/web/app/immutable/chunks/{CJ5wd9GV.js → DIPuiSIu.js} +1 -1
  124. package/web/app/immutable/chunks/{Z89jOfre.js → DJ0Jx38f.js} +1 -1
  125. package/web/app/immutable/chunks/{DFHDo6Bi.js → DJ_p0OFU.js} +1 -1
  126. package/web/app/immutable/chunks/{Coi-YeL3.js → DLimNxdW.js} +1 -1
  127. package/web/app/immutable/chunks/{CvCvufVJ.js → DMFMx3nl.js} +1 -1
  128. package/web/app/immutable/chunks/{Cax0Mn2M.js → DMXfYyb6.js} +1 -1
  129. package/web/app/immutable/chunks/{JLBeR_lu.js → DN7oXRlP.js} +1 -1
  130. package/web/app/immutable/chunks/{CkxlqZls.js → DPKwA49z.js} +2 -2
  131. package/web/app/immutable/chunks/{BZCr6ykZ.js → DPk0hNVC.js} +1 -1
  132. package/web/app/immutable/chunks/{On9oBe3C.js → DQqi7m2D.js} +1 -1
  133. package/web/app/immutable/chunks/{_XUW51Cy.js → DR11idWf.js} +1 -1
  134. package/web/app/immutable/chunks/{byhfHhUo.js → DSqWFvtc.js} +1 -1
  135. package/web/app/immutable/chunks/{BqRgQbJq.js → DVgQbSSY.js} +1 -1
  136. package/web/app/immutable/chunks/{BdlgOWZv.js → DVmH_mdJ.js} +1 -1
  137. package/web/app/immutable/chunks/{BOpfuH36.js → DZ_5eRdK.js} +1 -1
  138. package/web/app/immutable/chunks/{glaRhtwK.js → DZmWXrCy.js} +2 -2
  139. package/web/app/immutable/chunks/{Djx7tjiF.js → D_6coCxv.js} +1 -1
  140. package/web/app/immutable/chunks/{DNnYGTTZ.js → DbmNxzez.js} +1 -1
  141. package/web/app/immutable/chunks/{C2Dp-Wl8.js → De-23Gnq.js} +1 -1
  142. package/web/app/immutable/chunks/{CcoWXdk5.js → De3GtDyW.js} +1 -1
  143. package/web/app/immutable/chunks/{CyVE_a1Z.js → DfFnGsMp.js} +1 -1
  144. package/web/app/immutable/chunks/{CgH2fhQZ.js → DgCFRQUb.js} +1 -1
  145. package/web/app/immutable/chunks/{Cn80JY_U.js → DhuTnbBI.js} +1 -1
  146. package/web/app/immutable/chunks/{CgmFGCOs.js → Di6UqIba.js} +1 -1
  147. package/web/app/immutable/chunks/{DzLCtzaZ.js → DifIxf0d.js} +1 -1
  148. package/web/app/immutable/chunks/{BOXzTbe3.js → DkHPIJea.js} +1 -1
  149. package/web/app/immutable/chunks/{C0yEwiys.js → DlJukBla.js} +1 -1
  150. package/web/app/immutable/chunks/{BTU_oKHo.js → DlQfuVhT.js} +1 -1
  151. package/web/app/immutable/chunks/{NUieU9w-.js → DlX8LW3G.js} +1 -1
  152. package/web/app/immutable/chunks/{Cf7gW7aB.js → DmSaqClG.js} +1 -1
  153. package/web/app/immutable/chunks/{DiFdx5oB.js → DokMbojI.js} +1 -1
  154. package/web/app/immutable/chunks/{Cv7PDz7N.js → DrzNBKRX.js} +1 -1
  155. package/web/app/immutable/chunks/{DQ6qUzf1.js → Ds6w291j.js} +1 -1
  156. package/web/app/immutable/chunks/{Bggds_Lj.js → DtBQtTbR.js} +1 -1
  157. package/web/app/immutable/chunks/{Cg1IDzIA.js → DusCCxOz.js} +1 -1
  158. package/web/app/immutable/chunks/{F6JYuVa2.js → DvOPTg8o.js} +1 -1
  159. package/web/app/immutable/chunks/{DBLkjlmS.js → DxjLRZie.js} +1 -1
  160. package/web/app/immutable/chunks/{x7yWobyq.js → DyY04EMd.js} +1 -1
  161. package/web/app/immutable/chunks/{CWfbH15T.js → DzV2tP7D.js} +1 -1
  162. package/web/app/immutable/chunks/{CJsbK-x_.js → EIfr2WPF.js} +1 -1
  163. package/web/app/immutable/chunks/{BrYUi9M4.js → EUhChSgv.js} +1 -1
  164. package/web/app/immutable/chunks/{CP1rOWJf.js → HTMQjphG.js} +1 -1
  165. package/web/app/immutable/chunks/{D2qgPGPl.js → Hn8VNjVU.js} +1 -1
  166. package/web/app/immutable/chunks/{De27JRFf.js → MVAiW-hJ.js} +1 -1
  167. package/web/app/immutable/chunks/OnVg69qn.js +1 -0
  168. package/web/app/immutable/chunks/{6gXfEeGO.js → QThbrY7P.js} +1 -1
  169. package/web/app/immutable/chunks/{Dy7XitXS.js → QoEJNfmE.js} +2 -2
  170. package/web/app/immutable/chunks/{d5Uq64N6.js → RXp9Ya1-.js} +1 -1
  171. package/web/app/immutable/chunks/{CV_50DRv.js → SvsTsrhb.js} +1 -1
  172. package/web/app/immutable/chunks/{C72TMHEI.js → Vl66GswY.js} +1 -1
  173. package/web/app/immutable/chunks/{DdLb4YD1.js → _Ak2VoUq.js} +1 -1
  174. package/web/app/immutable/chunks/{CMGOeDRU.js → _NdW2WBC.js} +2 -2
  175. package/web/app/immutable/chunks/{DGx3tKbO.js → _bOTv1mB.js} +1 -1
  176. package/web/app/immutable/chunks/{D05xLrNx.js → d0funJ1P.js} +1 -1
  177. package/web/app/immutable/chunks/{C0Yhbcvw.js → ek2C_PyH.js} +1 -1
  178. package/web/app/immutable/chunks/{Cu8PqUia.js → ev7flkaM.js} +1 -1
  179. package/web/app/immutable/chunks/{DgMHJRTi.js → evZTPwS7.js} +4 -4
  180. package/web/app/immutable/chunks/{BQyjLiC0.js → gfWJw24O.js} +1 -1
  181. package/web/app/immutable/chunks/{BiL4QTcV.js → i4GmiVMD.js} +1 -1
  182. package/web/app/immutable/chunks/ikBj1eYj.js +1 -0
  183. package/web/app/immutable/chunks/{DIbhT_40.js → pgv9jNmm.js} +1 -1
  184. package/web/app/immutable/chunks/{Cnd1Toz7.js → pwWESNJZ.js} +1 -1
  185. package/web/app/immutable/chunks/{Ctf7Dmj8.js → rTUEOx0p.js} +2 -2
  186. package/web/app/immutable/chunks/{D_wC6Fqe.js → uFuCUyKk.js} +1 -1
  187. package/web/app/immutable/chunks/{DXWj1WUy.js → v1s2zbkS.js} +1 -1
  188. package/web/app/immutable/chunks/{Zl6q5v_F.js → v_4lRRTK.js} +1 -1
  189. package/web/app/immutable/chunks/{ByvADqYQ.js → x3PmW7lX.js} +1 -1
  190. package/web/app/immutable/chunks/{oZSR7jB5.js → xe2H3EkW.js} +2 -2
  191. package/web/app/immutable/chunks/{C9iqPxLd.js → yiVXShkh.js} +1 -1
  192. package/web/app/immutable/chunks/{BfQMGn9-.js → zK_pBQnY.js} +1 -1
  193. package/web/app/immutable/chunks/{DgebLBJ3.js → zgW9h7_p.js} +2 -2
  194. package/web/app/immutable/entry/{app.DgJ9n1oL.js → app.CbA16NuX.js} +2 -2
  195. package/web/app/immutable/entry/start.Bk8Z1djZ.js +1 -0
  196. package/web/app/immutable/nodes/{0.Dyl0nNbk.js → 0.BasYUO8v.js} +1 -1
  197. package/web/app/immutable/nodes/{1.CRLYaZ63.js → 1.CIO3OA-k.js} +1 -1
  198. package/web/app/immutable/nodes/{10.DxPon5wB.js → 10.CFi8hf1p.js} +1 -1
  199. package/web/app/immutable/nodes/{12.zW0eyaJh.js → 12.5Zegs-e7.js} +1 -1
  200. package/web/app/immutable/nodes/{13.BC8MED3o.js → 13.C6rcyOvO.js} +1 -1
  201. package/web/app/immutable/nodes/{14.B4mlyc1_.js → 14.BshK7qxH.js} +1 -1
  202. package/web/app/immutable/nodes/{15.BMXR1gHR.js → 15.Xbhs2JLI.js} +1 -1
  203. package/web/app/immutable/nodes/{16.vNaF6DA8.js → 16.D1Kda7eS.js} +1 -1
  204. package/web/app/immutable/nodes/{17.MrvR2td2.js → 17.BWDMPbmT.js} +1 -1
  205. package/web/app/immutable/nodes/{18.8z39u87k.js → 18.C5ulMwTp.js} +2 -2
  206. package/web/app/immutable/nodes/{2.BA0oK1QI.js → 2.BNqRZUPf.js} +11 -11
  207. package/web/app/immutable/nodes/{3.BR33xGjs.js → 3.Cvuu_muM.js} +1 -1
  208. package/web/app/immutable/nodes/{4.Cd06_jG8.js → 4.DN_ujY3l.js} +1 -1
  209. package/web/app/immutable/nodes/{5.C8pevtne.js → 5.Dec4Arss.js} +1 -1
  210. package/web/app/immutable/nodes/{6.haMdZkdJ.js → 6.DpEHMH4c.js} +1 -1
  211. package/web/app/immutable/nodes/{7.qUwyypfP.js → 7.Dv3u39NY.js} +1 -1
  212. package/web/app/immutable/nodes/{8.B9LxN_HF.js → 8.J1fqiqGl.js} +4 -4
  213. package/web/app/immutable/nodes/{9.CuzqllGK.js → 9.Du0PNcOn.js} +5 -5
  214. package/web/app/version.json +1 -1
  215. package/web/index.html +15 -15
  216. package/web/app/immutable/chunks/9bhdf_gz.js +0 -1
  217. package/web/app/immutable/chunks/BGikh8Vc.js +0 -1
  218. package/web/app/immutable/chunks/BbcaUswI.js +0 -1
  219. package/web/app/immutable/chunks/Dnem51XN.js +0 -1
  220. package/web/app/immutable/chunks/WtQ21IhK.js +0 -1
  221. package/web/app/immutable/entry/start.4H5rT-16.js +0 -1
@@ -1 +1 @@
1
- import{II as s,lZ as o,nB as a,nA as i}from"./fvC-6LgA.js";const n=s.createSelector((e,t)=>e.files.byWorkspaceId[t]??o),S=s.createSelector((e,t)=>a(n.select(e,t).files)),c=s.createSelector((e,t,l)=>{if(l)return i(n.select(e,t).files,l)}),d=s.createSelector((e,t,l)=>c.select(e,t,l)?.localContent??null),f=s.createSelector((e,t,l)=>c.select(e,t,l)?.originalContent??null),u=s.createSelector((e,t,l)=>c.select(e,t,l)?.lastUpdated??0),g=s.createSelector((e,t,l)=>c.select(e,t,l)?.loading??!1),C=s.createSelector((e,t,l)=>c.select(e,t,l)?.saving??!1),I=s.createSelector((e,t,l)=>c.select(e,t,l)?.error??null),p=s.createSelector((e,t,l)=>c.select(e,t,l)?.errorInfo??null),y=s.createSelector((e,t,l)=>c.select(e,t,l)?.notFoundCandidates??null),m=s.createSelector((e,t,l)=>c.select(e,t,l)?.isBinary??!1),k=s.createSelector((e,t,l)=>{const r=c.select(e,t,l);return r?r.localContent!==r.originalContent:!1});export{d as a,c as b,I as c,p as d,m as e,k as f,u as g,g as h,y as i,C as j,f as k,S as s};
1
+ import{II as s,lZ as o,nB as a,nA as i}from"./D98guX46.js";const n=s.createSelector((e,t)=>e.files.byWorkspaceId[t]??o),S=s.createSelector((e,t)=>a(n.select(e,t).files)),c=s.createSelector((e,t,l)=>{if(l)return i(n.select(e,t).files,l)}),d=s.createSelector((e,t,l)=>c.select(e,t,l)?.localContent??null),f=s.createSelector((e,t,l)=>c.select(e,t,l)?.originalContent??null),u=s.createSelector((e,t,l)=>c.select(e,t,l)?.lastUpdated??0),g=s.createSelector((e,t,l)=>c.select(e,t,l)?.loading??!1),C=s.createSelector((e,t,l)=>c.select(e,t,l)?.saving??!1),I=s.createSelector((e,t,l)=>c.select(e,t,l)?.error??null),p=s.createSelector((e,t,l)=>c.select(e,t,l)?.errorInfo??null),y=s.createSelector((e,t,l)=>c.select(e,t,l)?.notFoundCandidates??null),m=s.createSelector((e,t,l)=>c.select(e,t,l)?.isBinary??!1),k=s.createSelector((e,t,l)=>{const r=c.select(e,t,l);return r?r.localContent!==r.originalContent:!1});export{d as a,c as b,I as c,p as d,m as e,k as f,u as g,g as h,y as i,C as j,f as k,S as s};
@@ -1 +1 @@
1
- import{d as s}from"./CepTMMxo.js";import{a as t}from"./BdWqymET.js";import{cG as i}from"./COHdP7EQ.js";import{II as a}from"./fvC-6LgA.js";import{setLinkActionMenuLinkedWorkspaces as n}from"./Ddqq3yIK.js";const c=new t("LinkActionMenuLinkedWorkspaces");async function u(r,e){if(i.select(a.state)?.capabilities.prWorkspaceLookup===1)try{const o=await s.workspaces.findByPullRequest(e);n(r,o)}catch(o){c.debug("PR workspace lookup failed",{url:e,error:o})}}export{u as loadLinkActionMenuLinkedWorkspaces};
1
+ import{d as s}from"./B21KgEqG.js";import{a as t}from"./BdWqymET.js";import{cG as i}from"./CM_58O-V.js";import{II as a}from"./D98guX46.js";import{setLinkActionMenuLinkedWorkspaces as n}from"./Ddqq3yIK.js";const c=new t("LinkActionMenuLinkedWorkspaces");async function u(r,e){if(i.select(a.state)?.capabilities.prWorkspaceLookup===1)try{const o=await s.workspaces.findByPullRequest(e);n(r,o)}catch(o){c.debug("PR workspace lookup failed",{url:e,error:o})}}export{u as loadLinkActionMenuLinkedWorkspaces};
@@ -1,4 +1,4 @@
1
- import{t as oe,bo as st,bm as Z,bw as ie,bs as $t,bq as Me,b as ce}from"./BkP7iWmk.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as F,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./DYhIMPy1.js";import{i as at}from"./Cmsd5u03.js";import{I as ea,g as jt,i as Ne}from"./eF4sVb1p.js";import{f as Xt,g as ne,s as gt,c as se}from"./DdeuoyZB.js";import{b as ba}from"./BaIAhI85.js";import{f as Ut}from"./BTU_oKHo.js";import"./CkxlqZls.js";import{A as aa,am as na,al as sa}from"./VWARWUyw.js";import"./C400w5jq.js";import{al as ra,aC as oa,an as Aa,ao as ka,ap as We,ag as ia,a as $a,p as Ta,dx as Ca,aO as Sa,aq as Na}from"./COHdP7EQ.js";import{R as Oa}from"./F6JYuVa2.js";import{F as pe,by as Fa,bd as Ra,az as Ma,aT as Wa,cA as Da}from"./Duz2cV7w.js";import{H as Ba}from"./DwdAFMs6.js";import{e as La}from"./AZ8Xy_Xh.js";import{L as Ea}from"./doMsOb8h.js";import{f as Pa}from"./BiL4QTcV.js";import{e as Nt,II as Fe,nB as Ga,fI as za,bZ as ja,s7 as Ka,ut as Ha}from"./fvC-6LgA.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=F('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=F('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=F('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Za=F('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Oe=F('<span class="text-xs text-subtle"> </span>'),Qa=F('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=F('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=F('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=F('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=F('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=F('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Z.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),P=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ot=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ft=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ft,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
1
+ import{t as oe,bo as st,bm as Z,bw as ie,bs as $t,bq as Me,b as ce}from"./BkP7iWmk.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as F,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./DYhIMPy1.js";import{i as at}from"./Cmsd5u03.js";import{I as ea,g as jt,i as Ne}from"./eF4sVb1p.js";import{f as Xt,g as ne,s as gt,c as se}from"./DdeuoyZB.js";import{b as ba}from"./BaIAhI85.js";import{f as Ut}from"./DlQfuVhT.js";import"./DPKwA49z.js";import{A as aa,am as na,al as sa}from"./B72tYG46.js";import"./C400w5jq.js";import{al as ra,aC as oa,an as Aa,ao as ka,ap as We,ag as ia,a as $a,p as Ta,dx as Ca,aO as Sa,aq as Na}from"./CM_58O-V.js";import{R as Oa}from"./DvOPTg8o.js";import{F as pe,by as Fa,bd as Ra,az as Ma,aT as Wa,cA as Da}from"./Duz2cV7w.js";import{H as Ba}from"./BAnyU7RO.js";import{e as La}from"./CEGk06kt.js";import{L as Ea}from"./Bt2zHtMa.js";import{f as Pa}from"./i4GmiVMD.js";import{e as Nt,II as Fe,nB as Ga,fI as za,bZ as ja,s7 as Ka,ut as Ha}from"./D98guX46.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=F('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=F('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=F('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Za=F('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Oe=F('<span class="text-xs text-subtle"> </span>'),Qa=F('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=F('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=F('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=F('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=F('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=F('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Z.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),P=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ot=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ft=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ft,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
2
2
  hover:shadow transition-all cursor-pointer ${t(A)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return S()},children:(B,Tt)=>{var Rt=an(),Lt=Yt(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ot)},get specialist(){return n().specialist}}),$(Lt);var Qt=C(Lt,2),_e=K(Qt,!0),Jt=C(Qt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=K(W,!0);$(f);var H=C(f,2);{var nt=z=>{var It=Ua(),ot=K(It,!0);k(()=>D(ot,s().reason)),_(z,It)};at(H,z=>{s().reason&&z(nt)})}var N=C(H,2);{var G=z=>{Oa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(N,z=>{s().timestamp&&z(G)})}$(r),k(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),D(m,z)},[()=>s().kind==="blocker"?Z.chat_agentCard_attentionBlocker_label():Z.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Za(),f=L(r);pe(f,{get icon(){return Fa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=K(M,!0);$(r),k(m=>D(W,m),[()=>Z.agentOverview_hierarchyCard_waitingFor_label({names:t(E).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var H=C(m,2);{var nt=Y=>{var Q=Oe(),pt=K(Q,!0);k(Et=>D(pt,Et),[()=>Z.agentOverview_hierarchyCard_thinking_label()]),_(Y,Q)},N=Y=>{var Q=Qa(),pt=K(Q);k(()=>D(pt,`${t(f).verb??""}
3
3
  ${t(f).subject??""}`)),_(Y,Q)},G=Y=>{var Q=Oe(),pt=K(Q);k(()=>D(pt,`${t(f).verb??""}...`)),_(Y,Q)},z=Y=>{var Q=Oe(),pt=K(Q,!0);k(Et=>D(pt,Et),[()=>Z.agentOverview_hierarchyCard_responding_label()]),_(Y,Q)};at(H,Y=>{i()?Y(nt):t(f)&&t(f).subject?Y(N,1):t(f)?Y(G,2):Y(z,-1)})}$(W);var It=C(W,2);{var ot=Y=>{var Q=Ja(),pt=K(Q,!0);k(()=>D(pt,n().lastResponse)),_(Y,Q)};at(It,Y=>{!t(f)&&n().lastResponse&&Y(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=K(r,!0);k(()=>D(f,n().lastResponse)),_(ft,r)};at(te,ft=>{s()?ft(ye):c()?ft(yt,1):u()||i()?ft(Ie,2):n().lastResponse&&ft(xe,3)})}$(Jt),k(()=>D(_e,n().name)),_(B,Rt)},$$slots:{default:!0}})}var ge=C(Ft,2);{var Bt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Da},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(Lt=>D(Rt,` ${Lt??""}`),[()=>Z.agentOverview_hierarchyCard_note_label()]),_(A,B)};at(ge,A=>{R()&&u()&&A(Bt)})}$(ht),_(e,ht);var Zt=de(Dt);return l(),Zt}const sn=50;var rn=F('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Ut(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var E=rn(),I=Yt(E),P=K(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),k(()=>D(P,i().name)),_(x,E)},$$slots:{default:!0}});var S=de(b);return d(),S}var re=he('<path fill="none"></path>'),on=F('<div class="batch-group-box relative z-10 bg-background border border-border rounded-xl"></div>'),cn=F('<svg class="connector-svg" style="overflow: visible; display: block;"><!><!></svg> <div class="children-items-row flex items-start justify-center"></div>',1),ln=F('<div class="children-wrapper flex flex-col items-center"></div>'),dn=F('<div class="agent-tree-node flex flex-col items-center"><div class="agent-card-wrapper relative z-10"><!></div> <!></div>'),gn=F('<div class="absolute inset-0 flex items-center justify-center"><div class="text-center text-subtle"><p class="text-lg font-medium"> </p> <p class="text-sm mt-1"> </p></div></div>'),un=F('<div class="utility-corral border border-dashed border-border rounded-lg p-3 min-w-20"><div class="corral-label text-xs text-subtle font-medium mb-2 text-center"> </div> <div class="corral-agents flex flex-col items-center gap-2"></div></div>'),fn=F('<div class="utility-corrals flex flex-col gap-4"></div>'),pn=F('<div class="text-xs text-subtle capitalize"> </div>'),vn=F('<span class="px-1.5 py-0.5 text-ui font-medium bg-muted text-subtle rounded"> </span>'),hn=F('<span class="text-warning-ink"> </span>'),mn=F('<span class="text-primary-ink"> </span>'),_n=F('<span class="text-green-500"> </span>'),yn=F('<span class="text-red-500"> </span>'),In=F("<span> </span>"),xn=F('<div class="text-xs text-subtle line-clamp-3 border-t border-border pt-2 mt-2"> </div>'),wn=F('<div class="text-xs text-subtle flex items-center gap-1"><!> <span> </span></div>'),bn=F('<div class="p-3 space-y-2"><div class="flex items-center gap-2"><!> <div class="flex-1 min-w-0"><div class="font-medium text-sm truncate"> </div> <!></div> <!></div> <div class="text-xs text-subtle"><!></div> <div class="text-xs text-subtle"> </div> <!> <!></div>'),An=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=F('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=F('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),H=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),N=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(H),i):[]),z=y(()=>(()=>{const O=[];for(let q=0;q<t(G).length;q+=Tt)O.push(t(G).slice(q,q+Tt));return O})()),It=y(()=>t(z).map(O=>O.reduce((q,J)=>q+J.width,0)+Math.max(0,O.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var Y=dn(),Q=L(Y),pt=L(Q);{var Et=O=>{Re(O,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=O=>{ca(O,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,O=>{t(W)?O(Et):O(we,-1)})}$(Q);var be=C(Q,2);{var U=O=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(N)/2);var xt=ln();jt(xt,21,()=>t(z),Ne,(Ht,At,Ct)=>{const Pt=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Pt))/2),Ae=y(()=>(()=>{let ut=0;return t(At).map(j=>{const St=ut+j.width/2;return ut+=j.width+i,St})})());var ue=cn(),Gt=Yt(ue);gt(Gt,"height",t(N));var qt=L(Gt);{var ke=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} -${Ya} L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)},$e=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)};at(qt,ut=>{Ct>0?ut(ke):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(At),Ne,(ut,j,St)=>{const vt=y(()=>t(ee)+t(Ae)[St]),lt=y(()=>t(ot)/2),zt=y(()=>t(j).type==="batch"?t(j).children.some(wt=>t(q).includes(wt.agent.agentId)):t(q).includes(t(j).child.agent.agentId)),mt=y(()=>t(zt)?"var(--color-primary)":"currentColor"),kt=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(N)-A:t(N)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=Be(),Ce=Yt(fe);{var va=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(kt)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3}
4
4
  L ${t(lt)??""} ${t(et)-t(X)}
@@ -1 +1 @@
1
- import{aR as a,aP as m,aQ as i,m as y,a0 as C,l as x,ab as R,Y as T,b3 as k,aJ as N,ad as A,bM as p,bL as l,O as v,bZ as O,w as S,bN as r,aG as W}from"./DYhIMPy1.js";import{B as F}from"./BkP7iWmk.js";import{C as g}from"./EFalm4kN.js";import{bh as M}from"./fvC-6LgA.js";function U(t,s,B,f,G,L){let E=a;a&&m();var e=null;a&&i.nodeType===y&&(e=i,m());var u=a?i:t,b=v,_=new F(u,!1);C(()=>{const n=s()||null;var w=n==="svg"?S:void 0;if(n===null){_.ensure(null,null),r(!0);return}return _.ensure(n,c=>{if(n){var h=a;if(e=a?e:R(n,w),T(e,e),f){var d=null;a&&k(n)&&e.append(d=document.createComment(""));var o=a?N(e):e.appendChild(A());a&&(o===null?p(!1):l(o)),g(b),f(e,o),d?.remove(),g(null)}v.nodes.end=e,h||c.before(e)}a&&l(c)}),r(!0),()=>{n&&r(!1)}},x),O(()=>{r(!0)}),E&&(p(!0),l(u))}const I=Symbol("workspace-route-context");function P(t){return t&&t!=="new"?M(t):null}function V(t,s){return t?.startsWith("/workspace/")?P(s):null}function X(){try{return W(I)}catch{return}}export{I as W,P as a,U as e,X as g,V as w};
1
+ import{aR as a,aP as m,aQ as i,m as y,a0 as C,l as x,ab as R,Y as T,b3 as k,aJ as N,ad as A,bM as p,bL as l,O as v,bZ as O,w as S,bN as r,aG as W}from"./DYhIMPy1.js";import{B as F}from"./BkP7iWmk.js";import{C as g}from"./EFalm4kN.js";import{bh as M}from"./D98guX46.js";function U(t,s,B,f,G,L){let E=a;a&&m();var e=null;a&&i.nodeType===y&&(e=i,m());var u=a?i:t,b=v,_=new F(u,!1);C(()=>{const n=s()||null;var w=n==="svg"?S:void 0;if(n===null){_.ensure(null,null),r(!0);return}return _.ensure(n,c=>{if(n){var h=a;if(e=a?e:R(n,w),T(e,e),f){var d=null;a&&k(n)&&e.append(d=document.createComment(""));var o=a?N(e):e.appendChild(A());a&&(o===null?p(!1):l(o)),g(b),f(e,o),d?.remove(),g(null)}v.nodes.end=e,h||c.before(e)}a&&l(c)}),r(!0),()=>{n&&r(!1)}},x),O(()=>{r(!0)}),E&&(p(!0),l(u))}const I=Symbol("workspace-route-context");function P(t){return t&&t!=="new"?M(t):null}function V(t,s){return t?.startsWith("/workspace/")?P(s):null}function X(){try{return W(I)}catch{return}}export{I as W,P as a,U as e,X as g,V as w};
@@ -1 +1 @@
1
- import{bm as l}from"./BkP7iWmk.js";import{II as a}from"./fvC-6LgA.js";let N=1,f=null;const S=[],I=new Set;function T(){for(const e of I)e(f)}function U(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function y(e){S.push({...e,id:N++,returnFocus:U()}),f||(f=S.shift()??null,T())}function Z(e){return new Promise(t=>y({kind:"confirm",options:e,resolve:t}))}function j(e){return new Promise(t=>y({kind:"prompt",options:e,resolve:t}))}function J(e){return I.add(e),e(f),()=>I.delete(e)}function W(e,t){if(!f||f.id!==e)return;const n=f;f=S.shift()??null,n.resolve(t),n.returnFocus?.focus(),T()}const Q={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},ee=[{value:"assigned",get label(){return l.linearAuth_filter_assigned_label()},get description(){return l.linearAuth_filter_assigned_description()}},{value:"created",get label(){return l.linearAuth_filter_created_label()},get description(){return l.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return l.linearAuth_filter_subscribed_label()},get description(){return l.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return l.linearAuth_filter_team_label()},get description(){return l.linearAuth_filter_team_description()}},{value:"all",get label(){return l.linearAuth_filter_all_label()},get description(){return l.linearAuth_filter_all_description()}}],te=a.createSelector(e=>e.linearAuth.operation),ne=a.createSelector((e,t)=>e.linearAuth.operation?.consumerId===t?e.linearAuth.operation:null),re=a.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),se=a.createSelector(e=>e.linearAuth.isAuthenticated),oe=a.createSelector(e=>e.linearAuth.requiresDaemonAuth),ie=a.createSelector(e=>e.linearAuth.isAuthenticating),ae=a.createSelector(e=>e.linearAuth.error),ue=a.createSelector(e=>e.sentryAuth.operation),ce=a.createSelector((e,t)=>e.sentryAuth.operation?.consumerId===t?e.sentryAuth.operation:null),le=a.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),de=a.createSelector(e=>e.sentryAuth.isAuthenticated),fe=a.createSelector(e=>e.sentryAuth.organization),_e=a.createSelector(e=>e.sentryAuth.isConnecting),Ae=a.createSelector(e=>e.sentryAuth.error),Ee="npx not found — install Node.js (with npm) to use Claude Code",P="********",K={claude:"claude-code",codex:"codex"},v={claude:"CLAUDE_CONFIG_DIR",codex:"CODEX_HOME"},O={claude:{differentLogin:{set:["CLAUDE_CONFIG_DIR"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},apiKey:{set:["ANTHROPIC_API_KEY"],optionalSet:["ANTHROPIC_BASE_URL"],unset:["ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},token:{set:["CLAUDE_CODE_OAUTH_TOKEN"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN"]}},codex:{differentLogin:{set:["CODEX_HOME"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","CODEX_API_KEY","OPENAI_API_KEY"]},apiKey:{set:["CODEX_API_KEY"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","OPENAI_API_KEY"]},token:{set:["CODEX_ACCESS_TOKEN"],optionalSet:[],unset:["CODEX_API_KEY","OPENAI_API_KEY"]}}},D=["differentLogin","apiKey","token"];function g(e,t){return O[e][t]}const m="ANTHROPIC_BASE_URL";function R(e){return K[e]}function b(e){if(e==="claude-code")return"claude";if(e==="codex")return"codex"}function he(e){return e.supportsProfiles===!0&&e.id!==void 0&&b(e.id)!==void 0}function pe(e,t){return g(t,e).set[0]}function C(e){return v[e]}function H(e){return`~/intent/profiles/${e}`}const _=e=>e.toUpperCase();function Se(e,t){if(t.length===0)return"advanced";const n=new Set,s=new Set;for(const r of t){const o=_(r.key);if(n.has(o)||s.has(o))return"advanced";(r.kind==="set"?n:s).add(o)}for(const r of D)if(w(O[e][r],n,s))return r==="differentLogin"&&!F(e,t)?"advanced":r;return"advanced"}function w(e,t,n){const s=e.set.map(_),r=new Set([...s,...e.optionalSet.map(_)]);if(!s.every(i=>t.has(i))||![...t].every(i=>r.has(i)))return!1;const o=new Set(e.unset.map(_));return[...n].every(i=>o.has(i))}function F(e,t){const n=x(e,t);return n!==void 0&&n!==""&&n!==P}function x(e,t){const n=_(C(e)),s=t.find(r=>r.kind==="set"&&_(r.key)===n);return s?.kind==="set"?s.value:void 0}const $=32;function M(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,$).replace(/-+$/g,"")||"profile"}const h="abcdefghijklmnopqrstuvwxyz0123456789",X=4;function k(){const e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/2**32}function B(e=k){let t="";for(let n=0;n<X;n++){const s=Math.min(h.length-1,Math.floor(e()*h.length));t+=h[s]}return t}const G=64;function Ie(e,t,n,s=k){const r=new Set([...n].map(i=>i.toLowerCase())),o=M(t);for(let i=0;i<G;i++){const c=`${o}-${B(s)}`;if(!r.has(c))return`${H(e)}/${c}`}throw new Error(`No unused profile folder found for "${o}"`)}function q(e){return e.map(t=>({key:t,kind:"unset"}))}function E(e,t){const n=e?.trim()??"";if(!n)throw new Error(`Missing ${t}`);return n}function me(e,t,n){const s=g(t,e),r=[];if(e==="differentLogin")r.push({key:C(t),kind:"set",value:E(n.folder,"folder")});else if(e==="apiKey"){r.push({key:s.set[0],kind:"set",value:E(n.apiKey,"API key")});const o=n.baseUrl?.trim();o&&t==="claude"&&r.push({key:m,kind:"set",value:o})}else r.push({key:s.set[0],kind:"set",value:E(n.token,"token")});return{baseProviderId:R(t),name:n.name.trim(),backup:n.backup??!1,env:[...r,...q(s.unset)]}}function ge(e,t,n,s={}){const r=g(t,e),o=(u,d)=>n.find(A=>A.kind===d&&_(A.key)===_(u))?.key,i=(u,d)=>{const A=o(u,"set");if(d!==void 0)return{key:A??u,kind:"set",value:E(d,u)};if(!A)throw new Error(`Missing ${u}`);return{key:A,kind:"keep"}},c=[];if(e==="differentLogin")c.push(i(C(t),void 0));else if(e==="apiKey"){c.push(i(r.set[0],s.apiKey));const u=t==="claude"?o(m,"set"):void 0,d=t==="claude"?s.baseUrl:void 0;typeof d=="string"&&d.trim()?c.push({key:u??m,kind:"set",value:d.trim()}):d===void 0&&u&&c.push({key:u,kind:"keep"})}else c.push(i(r.set[0],s.token));for(const u of r.unset)c.push({key:o(u,"unset")??u,kind:"unset"});return c}const p="[A-Za-z0-9_-]+",L=new RegExp(`^${p}\\.${p}\\.${p}$`);function Ce(e){return L.test(e.trim())}const z={claude:{apiKey:/^sk-ant-api\d*-[A-Za-z0-9_-]{16,}$/,token:/^sk-ant-oat\d*-[A-Za-z0-9_-]{16,}$/},codex:{apiKey:/^sk-(?!ant-)[A-Za-z0-9_-]{20,}$/,token:L}};function Te(e,t,n,s={}){const r=n.trim();return e==="claude"&&t==="apiKey"&&s.customEndpoint?/^\S+$/.test(r):z[e][t].test(r)}function ye(e,t){return e==="claude"?"claude auth login":t?"codex login":"codex login --device-auth"}export{ue as A,Ae as B,Ee as C,de as D,_e as E,le as F,fe as G,W as H,M as I,J,Q as L,P as M,ee as a,R as b,me as c,ge as d,Z as e,Se as f,C as g,he as h,Ce as i,Te as j,H as k,ye as l,b as m,j as n,pe as o,Ie as p,ne as q,B as r,x as s,te as t,ae as u,se as v,ie as w,re as x,oe as y,ce as z};
1
+ import{bm as l}from"./BkP7iWmk.js";import{II as a}from"./D98guX46.js";let N=1,f=null;const S=[],I=new Set;function T(){for(const e of I)e(f)}function U(){return typeof document<"u"&&document.activeElement instanceof HTMLElement?document.activeElement:null}function y(e){S.push({...e,id:N++,returnFocus:U()}),f||(f=S.shift()??null,T())}function Z(e){return new Promise(t=>y({kind:"confirm",options:e,resolve:t}))}function j(e){return new Promise(t=>y({kind:"prompt",options:e,resolve:t}))}function J(e){return I.add(e),e(f),()=>I.delete(e)}function W(e,t){if(!f||f.id!==e)return;const n=f;f=S.shift()??null,n.resolve(t),n.returnFocus?.focus(),T()}const Q={IS_AUTHENTICATED:"linear-auth:is-authenticated",START_AUTH:"linear-auth:start-auth",CANCEL_AUTH:"linear-auth:cancel-auth",LOGOUT:"linear-auth:logout",GET_AUTH_STATE:"linear-auth:get-auth-state",GET_STATUS:"linear-auth:get-status",FETCH_MY_ISSUES:"linear-auth:fetch-my-issues",SEARCH_ISSUES:"linear-auth:search-issues"},ee=[{value:"assigned",get label(){return l.linearAuth_filter_assigned_label()},get description(){return l.linearAuth_filter_assigned_description()}},{value:"created",get label(){return l.linearAuth_filter_created_label()},get description(){return l.linearAuth_filter_created_description()}},{value:"subscribed",get label(){return l.linearAuth_filter_subscribed_label()},get description(){return l.linearAuth_filter_subscribed_description()}},{value:"team",get label(){return l.linearAuth_filter_team_label()},get description(){return l.linearAuth_filter_team_description()}},{value:"all",get label(){return l.linearAuth_filter_all_label()},get description(){return l.linearAuth_filter_all_description()}}],te=a.createSelector(e=>e.linearAuth.operation),ne=a.createSelector((e,t)=>e.linearAuth.operation?.consumerId===t?e.linearAuth.operation:null),re=a.createSelector(e=>e.linearAuth.operation?.kind==="logout"&&e.linearAuth.operation.status==="pending"),se=a.createSelector(e=>e.linearAuth.isAuthenticated),oe=a.createSelector(e=>e.linearAuth.requiresDaemonAuth),ie=a.createSelector(e=>e.linearAuth.isAuthenticating),ae=a.createSelector(e=>e.linearAuth.error),ue=a.createSelector(e=>e.sentryAuth.operation),ce=a.createSelector((e,t)=>e.sentryAuth.operation?.consumerId===t?e.sentryAuth.operation:null),le=a.createSelector(e=>e.sentryAuth.operation?.kind==="logout"&&e.sentryAuth.operation.status==="pending"),de=a.createSelector(e=>e.sentryAuth.isAuthenticated),fe=a.createSelector(e=>e.sentryAuth.organization),_e=a.createSelector(e=>e.sentryAuth.isConnecting),Ae=a.createSelector(e=>e.sentryAuth.error),Ee="npx not found — install Node.js (with npm) to use Claude Code",P="********",K={claude:"claude-code",codex:"codex"},v={claude:"CLAUDE_CONFIG_DIR",codex:"CODEX_HOME"},O={claude:{differentLogin:{set:["CLAUDE_CONFIG_DIR"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},apiKey:{set:["ANTHROPIC_API_KEY"],optionalSet:["ANTHROPIC_BASE_URL"],unset:["ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN"]},token:{set:["CLAUDE_CODE_OAUTH_TOKEN"],optionalSet:[],unset:["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN"]}},codex:{differentLogin:{set:["CODEX_HOME"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","CODEX_API_KEY","OPENAI_API_KEY"]},apiKey:{set:["CODEX_API_KEY"],optionalSet:[],unset:["CODEX_ACCESS_TOKEN","OPENAI_API_KEY"]},token:{set:["CODEX_ACCESS_TOKEN"],optionalSet:[],unset:["CODEX_API_KEY","OPENAI_API_KEY"]}}},D=["differentLogin","apiKey","token"];function g(e,t){return O[e][t]}const m="ANTHROPIC_BASE_URL";function R(e){return K[e]}function b(e){if(e==="claude-code")return"claude";if(e==="codex")return"codex"}function he(e){return e.supportsProfiles===!0&&e.id!==void 0&&b(e.id)!==void 0}function pe(e,t){return g(t,e).set[0]}function C(e){return v[e]}function H(e){return`~/intent/profiles/${e}`}const _=e=>e.toUpperCase();function Se(e,t){if(t.length===0)return"advanced";const n=new Set,s=new Set;for(const r of t){const o=_(r.key);if(n.has(o)||s.has(o))return"advanced";(r.kind==="set"?n:s).add(o)}for(const r of D)if(w(O[e][r],n,s))return r==="differentLogin"&&!F(e,t)?"advanced":r;return"advanced"}function w(e,t,n){const s=e.set.map(_),r=new Set([...s,...e.optionalSet.map(_)]);if(!s.every(i=>t.has(i))||![...t].every(i=>r.has(i)))return!1;const o=new Set(e.unset.map(_));return[...n].every(i=>o.has(i))}function F(e,t){const n=x(e,t);return n!==void 0&&n!==""&&n!==P}function x(e,t){const n=_(C(e)),s=t.find(r=>r.kind==="set"&&_(r.key)===n);return s?.kind==="set"?s.value:void 0}const $=32;function M(e){return e.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,$).replace(/-+$/g,"")||"profile"}const h="abcdefghijklmnopqrstuvwxyz0123456789",X=4;function k(){const e=new Uint32Array(1);return globalThis.crypto.getRandomValues(e),e[0]/2**32}function B(e=k){let t="";for(let n=0;n<X;n++){const s=Math.min(h.length-1,Math.floor(e()*h.length));t+=h[s]}return t}const G=64;function Ie(e,t,n,s=k){const r=new Set([...n].map(i=>i.toLowerCase())),o=M(t);for(let i=0;i<G;i++){const c=`${o}-${B(s)}`;if(!r.has(c))return`${H(e)}/${c}`}throw new Error(`No unused profile folder found for "${o}"`)}function q(e){return e.map(t=>({key:t,kind:"unset"}))}function E(e,t){const n=e?.trim()??"";if(!n)throw new Error(`Missing ${t}`);return n}function me(e,t,n){const s=g(t,e),r=[];if(e==="differentLogin")r.push({key:C(t),kind:"set",value:E(n.folder,"folder")});else if(e==="apiKey"){r.push({key:s.set[0],kind:"set",value:E(n.apiKey,"API key")});const o=n.baseUrl?.trim();o&&t==="claude"&&r.push({key:m,kind:"set",value:o})}else r.push({key:s.set[0],kind:"set",value:E(n.token,"token")});return{baseProviderId:R(t),name:n.name.trim(),backup:n.backup??!1,env:[...r,...q(s.unset)]}}function ge(e,t,n,s={}){const r=g(t,e),o=(u,d)=>n.find(A=>A.kind===d&&_(A.key)===_(u))?.key,i=(u,d)=>{const A=o(u,"set");if(d!==void 0)return{key:A??u,kind:"set",value:E(d,u)};if(!A)throw new Error(`Missing ${u}`);return{key:A,kind:"keep"}},c=[];if(e==="differentLogin")c.push(i(C(t),void 0));else if(e==="apiKey"){c.push(i(r.set[0],s.apiKey));const u=t==="claude"?o(m,"set"):void 0,d=t==="claude"?s.baseUrl:void 0;typeof d=="string"&&d.trim()?c.push({key:u??m,kind:"set",value:d.trim()}):d===void 0&&u&&c.push({key:u,kind:"keep"})}else c.push(i(r.set[0],s.token));for(const u of r.unset)c.push({key:o(u,"unset")??u,kind:"unset"});return c}const p="[A-Za-z0-9_-]+",L=new RegExp(`^${p}\\.${p}\\.${p}$`);function Ce(e){return L.test(e.trim())}const z={claude:{apiKey:/^sk-ant-api\d*-[A-Za-z0-9_-]{16,}$/,token:/^sk-ant-oat\d*-[A-Za-z0-9_-]{16,}$/},codex:{apiKey:/^sk-(?!ant-)[A-Za-z0-9_-]{20,}$/,token:L}};function Te(e,t,n,s={}){const r=n.trim();return e==="claude"&&t==="apiKey"&&s.customEndpoint?/^\S+$/.test(r):z[e][t].test(r)}function ye(e,t){return e==="claude"?"claude auth login":t?"codex login":"codex login --device-auth"}export{ue as A,Ae as B,Ee as C,de as D,_e as E,le as F,fe as G,W as H,M as I,J,Q as L,P as M,ee as a,R as b,me as c,ge as d,Z as e,Se as f,C as g,he as h,Ce as i,Te as j,H as k,ye as l,b as m,j as n,pe as o,Ie as p,ne as q,B as r,x as s,te as t,ae as u,se as v,ie as w,re as x,oe as y,ce as z};
@@ -1,4 +1,4 @@
1
- import{I as W}from"./D-jxMveW.js";import{p as X}from"./Cf7gW7aB.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./B9uFsQO_.js";import{p as te}from"./SyqyCDjk.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
1
+ import{I as W}from"./CFa2NaXM.js";import{p as X}from"./DmSaqClG.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./B1YqGJC0.js";import{p as te}from"./SyqyCDjk.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
2
2
  `),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
4
4
  `+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
@@ -0,0 +1 @@
1
+ import{g as t}from"./YqTahsxp.js";import{II as r}from"./D98guX46.js";import{c4 as o}from"./v_4lRRTK.js";function a(e){return!e||t().status!=="connected"?null:o.select(r.state,e)}export{a as resolveConnectedWorkspaceKeySlot};
@@ -1 +1 @@
1
- import{t as fe,bo as m,bw as ue,b as pe,bm as y}from"./BkP7iWmk.js";import{bs as ge,a7 as X,ay as E,W as b,bn as ve,aA as _,a5 as V,aD as e,bS as j,bl as Z,b_ as z,bO as ee,bA as G,aB as P,bf as me,c9 as i}from"./DYhIMPy1.js";import{i as I}from"./Cmsd5u03.js";import{g as be}from"./eF4sVb1p.js";import{f as N,s as u,g as O}from"./DdeuoyZB.js";import{F as _e,br as he,bq as xe}from"./Duz2cV7w.js";import{f as ye,ae as ke}from"./BTU_oKHo.js";import"./CkxlqZls.js";import{o as Se}from"./AZ8Xy_Xh.js";import{t as H}from"./EFalm4kN.js";import{a as te,p as we,b as ze,d as Pe}from"./CUbjT_ib.js";var $e=P('<span aria-hidden="true"></span>'),Ie=P('<span class="absolute -right-0.5 -bottom-0.5 inline-flex items-center justify-center rounded-full bg-background text-foreground" aria-hidden="true"><!></span>'),Me=P('<span><span data-presence-avatar-tile=""><!></span> <!> <!></span>'),Ae=P('<!> <span class="sr-only"> </span>',1),Ce=P('<span class="inline-flex shrink-0 items-center justify-center rounded-full border border-background bg-muted px-1 font-medium leading-none text-muted-foreground"> </span>'),Le=P('<span role="group" data-presence-avatar-stack=""><!> <!></span>');function Ve(J,f){if(new.target)return fe({component:Ve,...J});ge(f,!0);const R=(t,a=me)=>{const k=i(()=>Pe(a())),L=i(()=>a().online===!1);var d=Me();let o;var r=V(d);let v;var $=V(r);{let n=i(()=>ze(a()));Se($,{fill:!0,get avatarUrl(){return a().avatarUrl},get label(){return e(n)}})}G(r);var S=j(r,2);{var D=n=>{var s=$e();z(()=>{N(s,1,`absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full border border-background ${a().online?"bg-success":"bg-muted-foreground"}`),u(s,"data-presence-status",a().online?"online":"offline")}),b(n,s)};I(S,n=>{l()==="stack"&&a().hostRole&&a().online!==void 0&&n(D)})}var Y=j(S,2);{var c=n=>{var s=Ie();let h;var w=V(s);{let x=i(()=>a().identity.provider==="gitlab"?he:xe);_e(w,{get icon(){return e(x)}})}G(s),z(x=>{u(s,"data-presence-identity-provider",a().identity.provider),u(s,"data-presence-identity-host",a().identity.host),h=O(s,"",h,{width:`${e(q)??""}px`,height:`${e(q)??""}px`,"font-size":x})},[()=>`${Math.round(e(q)*.8)}px`]),b(n,s)};I(Y,n=>{l()==="stack"&&a().identity&&n(c)})}G(d),z(n=>{N(d,1,`relative inline-flex shrink-0 rounded-full border ${l()==="tile"?"border-border":`border-background ${e(k)?ne[e(k)]:""}`}`),u(d,"data-presence-avatar",a().principalId),u(d,"data-presence-ring",l()==="stack"?e(k)??void 0:void 0),u(d,"data-presence-offline",e(L)||void 0),u(d,"data-presence-self",a().self||void 0),o=O(d,"",o,{width:`${g()??""}px`,height:`${g()??""}px`}),N(r,1,`inline-flex h-full w-full items-center justify-center overflow-hidden rounded-full font-medium leading-none ${l()==="tile"?"bg-muted text-muted-foreground":"text-primary-foreground"} ${e(L)||l()==="tile"&&a().viewing===!1?"grayscale":""}`),v=O(r,"",v,{"font-size":e(K),"background-color":n})},[()=>l()==="stack"?we(a().principalId):void 0]),b(t,d)};let p=m(f,"people",7),M=m(f,"maxVisible",7,3),g=m(f,"size",7,16),l=m(f,"variant",7,"stack"),A=m(f,"side",7,"bottom"),B=m(f,"decorative",7,!1),C=m(f,"action",7),F=m(f,"class",7,"");const ae=i(()=>p().slice(0,M())),T=i(()=>Math.max(0,p().length-M())),U=i(()=>p().filter(t=>!t.self&&t.online!==!1).length),W=i(()=>p().filter(t=>!t.self&&t.online===!1).length),re=i(()=>e(U)===1?y.presence_avatarStack_people_one():e(U)>1?y.presence_avatarStack_people_many({count:H(e(U))}):e(W)===0?y.presence_avatarStack_onlyYou_label():e(W)===1?y.presence_avatarStack_offline_one():y.presence_avatarStack_offline_many({count:H(e(W))})),K=i(()=>`${Math.max(8,Math.round(g()*.55))}px`),q=i(()=>Math.max(9,Math.round(g()*.5))),ne={owner:"ring-2 ring-info",member:"ring-2 ring-success",guest:"ring-2 ring-warning-ink",offline:"ring-2 ring-muted-foreground/40"};var se={get people(){return p()},set people(t){p(t),_()},get maxVisible(){return M()},set maxVisible(t=3){M(t),_()},get size(){return g()},set size(t=16){g(t),_()},get variant(){return l()},set variant(t="stack"){l(t),_()},get side(){return A()},set side(t="bottom"){A(t),_()},get decorative(){return B()},set decorative(t=!1){B(t),_()},get action(){return C()},set action(t){C(t),_()},get class(){return F()},set class(t=""){F(t),_()},$set:ue,$on:(t,a)=>pe(f,t,a)},Q=X(),ie=E(Q);{var oe=t=>{var a=Le(),k=V(a);be(k,17,()=>e(ae),o=>o.principalId,(o,r)=>{var v=X(),$=E(v);{var S=c=>{const n=i(()=>{const{label:s,onSelect:h}=C()(e(r));return{personLabel:s,onSelect:h}});{let s=i(()=>e(n).onSelect?void 0:!0),h=i(()=>e(n).onSelect??void 0);ye(c,{variant:"plain",wrapContent:!1,class:"h-auto rounded-full p-0 aria-disabled:opacity-100",get tooltip(){return e(n).personLabel},get tooltipSide(){return A()},get"aria-label"(){return e(n).personLabel},get"aria-disabled"(){return e(s)},get onclick(){return e(h)},get"data-presence-person-button"(){return e(r).principalId},children:(w,x)=>{R(w,()=>e(r))},$$slots:{default:!0}})}},D=c=>{R(c,()=>e(r))},Y=c=>{{let n=i(()=>te(e(r)));ke(c,{get content(){return e(n)},get side(){return A()},children:(s,h)=>{var w=Ae(),x=E(w);R(x,()=>e(r));var le=j(x,2),de=Z(le,!0);z(ce=>ee(de,ce),[()=>te(e(r))]),b(s,w)},$$slots:{default:!0}})}};I($,c=>{C()?c(S):B()?c(D,1):c(Y,-1)})}b(o,v)});var L=j(k,2);{var d=o=>{var r=Ce();let v;var $=Z(r,!0);z(S=>{u(r,"data-presence-overflow",e(T)),v=O(r,"",v,{"min-width":`${g()??""}px`,height:`${g()??""}px`,"font-size":e(K)}),ee($,S)},[()=>y.presence_avatarStack_more_label({count:H(e(T))})]),b(o,r)};I(L,o=>{e(T)>0&&o(d)})}G(a),z(o=>{N(a,1,`inline-flex items-center ${l()==="tile"?"flex-wrap gap-1.25":"-space-x-1"} ${F()??""}`),u(a,"aria-label",o),u(a,"data-presence-count",p().length)},[()=>l()==="tile"?y.workspace_peopleTile_title():e(re)]),b(t,a)};I(ie,t=>{p().length>0&&t(oe)})}return b(J,Q),ve(se)}export{Ve as P};
1
+ import{t as fe,bo as m,bw as ue,b as pe,bm as y}from"./BkP7iWmk.js";import{bs as ge,a7 as X,ay as E,W as b,bn as ve,aA as _,a5 as V,aD as e,bS as j,bl as Z,b_ as z,bO as ee,bA as G,aB as P,bf as me,c9 as i}from"./DYhIMPy1.js";import{i as I}from"./Cmsd5u03.js";import{g as be}from"./eF4sVb1p.js";import{f as N,s as u,g as O}from"./DdeuoyZB.js";import{F as _e,br as he,bq as xe}from"./Duz2cV7w.js";import{f as ye,ae as ke}from"./DlQfuVhT.js";import"./DPKwA49z.js";import{o as Se}from"./CEGk06kt.js";import{t as H}from"./EFalm4kN.js";import{a as te,p as we,b as ze,d as Pe}from"./CUbjT_ib.js";var $e=P('<span aria-hidden="true"></span>'),Ie=P('<span class="absolute -right-0.5 -bottom-0.5 inline-flex items-center justify-center rounded-full bg-background text-foreground" aria-hidden="true"><!></span>'),Me=P('<span><span data-presence-avatar-tile=""><!></span> <!> <!></span>'),Ae=P('<!> <span class="sr-only"> </span>',1),Ce=P('<span class="inline-flex shrink-0 items-center justify-center rounded-full border border-background bg-muted px-1 font-medium leading-none text-muted-foreground"> </span>'),Le=P('<span role="group" data-presence-avatar-stack=""><!> <!></span>');function Ve(J,f){if(new.target)return fe({component:Ve,...J});ge(f,!0);const R=(t,a=me)=>{const k=i(()=>Pe(a())),L=i(()=>a().online===!1);var d=Me();let o;var r=V(d);let v;var $=V(r);{let n=i(()=>ze(a()));Se($,{fill:!0,get avatarUrl(){return a().avatarUrl},get label(){return e(n)}})}G(r);var S=j(r,2);{var D=n=>{var s=$e();z(()=>{N(s,1,`absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full border border-background ${a().online?"bg-success":"bg-muted-foreground"}`),u(s,"data-presence-status",a().online?"online":"offline")}),b(n,s)};I(S,n=>{l()==="stack"&&a().hostRole&&a().online!==void 0&&n(D)})}var Y=j(S,2);{var c=n=>{var s=Ie();let h;var w=V(s);{let x=i(()=>a().identity.provider==="gitlab"?he:xe);_e(w,{get icon(){return e(x)}})}G(s),z(x=>{u(s,"data-presence-identity-provider",a().identity.provider),u(s,"data-presence-identity-host",a().identity.host),h=O(s,"",h,{width:`${e(q)??""}px`,height:`${e(q)??""}px`,"font-size":x})},[()=>`${Math.round(e(q)*.8)}px`]),b(n,s)};I(Y,n=>{l()==="stack"&&a().identity&&n(c)})}G(d),z(n=>{N(d,1,`relative inline-flex shrink-0 rounded-full border ${l()==="tile"?"border-border":`border-background ${e(k)?ne[e(k)]:""}`}`),u(d,"data-presence-avatar",a().principalId),u(d,"data-presence-ring",l()==="stack"?e(k)??void 0:void 0),u(d,"data-presence-offline",e(L)||void 0),u(d,"data-presence-self",a().self||void 0),o=O(d,"",o,{width:`${g()??""}px`,height:`${g()??""}px`}),N(r,1,`inline-flex h-full w-full items-center justify-center overflow-hidden rounded-full font-medium leading-none ${l()==="tile"?"bg-muted text-muted-foreground":"text-primary-foreground"} ${e(L)||l()==="tile"&&a().viewing===!1?"grayscale":""}`),v=O(r,"",v,{"font-size":e(K),"background-color":n})},[()=>l()==="stack"?we(a().principalId):void 0]),b(t,d)};let p=m(f,"people",7),M=m(f,"maxVisible",7,3),g=m(f,"size",7,16),l=m(f,"variant",7,"stack"),A=m(f,"side",7,"bottom"),B=m(f,"decorative",7,!1),C=m(f,"action",7),F=m(f,"class",7,"");const ae=i(()=>p().slice(0,M())),T=i(()=>Math.max(0,p().length-M())),U=i(()=>p().filter(t=>!t.self&&t.online!==!1).length),W=i(()=>p().filter(t=>!t.self&&t.online===!1).length),re=i(()=>e(U)===1?y.presence_avatarStack_people_one():e(U)>1?y.presence_avatarStack_people_many({count:H(e(U))}):e(W)===0?y.presence_avatarStack_onlyYou_label():e(W)===1?y.presence_avatarStack_offline_one():y.presence_avatarStack_offline_many({count:H(e(W))})),K=i(()=>`${Math.max(8,Math.round(g()*.55))}px`),q=i(()=>Math.max(9,Math.round(g()*.5))),ne={owner:"ring-2 ring-info",member:"ring-2 ring-success",guest:"ring-2 ring-warning-ink",offline:"ring-2 ring-muted-foreground/40"};var se={get people(){return p()},set people(t){p(t),_()},get maxVisible(){return M()},set maxVisible(t=3){M(t),_()},get size(){return g()},set size(t=16){g(t),_()},get variant(){return l()},set variant(t="stack"){l(t),_()},get side(){return A()},set side(t="bottom"){A(t),_()},get decorative(){return B()},set decorative(t=!1){B(t),_()},get action(){return C()},set action(t){C(t),_()},get class(){return F()},set class(t=""){F(t),_()},$set:ue,$on:(t,a)=>pe(f,t,a)},Q=X(),ie=E(Q);{var oe=t=>{var a=Le(),k=V(a);be(k,17,()=>e(ae),o=>o.principalId,(o,r)=>{var v=X(),$=E(v);{var S=c=>{const n=i(()=>{const{label:s,onSelect:h}=C()(e(r));return{personLabel:s,onSelect:h}});{let s=i(()=>e(n).onSelect?void 0:!0),h=i(()=>e(n).onSelect??void 0);ye(c,{variant:"plain",wrapContent:!1,class:"h-auto rounded-full p-0 aria-disabled:opacity-100",get tooltip(){return e(n).personLabel},get tooltipSide(){return A()},get"aria-label"(){return e(n).personLabel},get"aria-disabled"(){return e(s)},get onclick(){return e(h)},get"data-presence-person-button"(){return e(r).principalId},children:(w,x)=>{R(w,()=>e(r))},$$slots:{default:!0}})}},D=c=>{R(c,()=>e(r))},Y=c=>{{let n=i(()=>te(e(r)));ke(c,{get content(){return e(n)},get side(){return A()},children:(s,h)=>{var w=Ae(),x=E(w);R(x,()=>e(r));var le=j(x,2),de=Z(le,!0);z(ce=>ee(de,ce),[()=>te(e(r))]),b(s,w)},$$slots:{default:!0}})}};I($,c=>{C()?c(S):B()?c(D,1):c(Y,-1)})}b(o,v)});var L=j(k,2);{var d=o=>{var r=Ce();let v;var $=Z(r,!0);z(S=>{u(r,"data-presence-overflow",e(T)),v=O(r,"",v,{"min-width":`${g()??""}px`,height:`${g()??""}px`,"font-size":e(K)}),ee($,S)},[()=>y.presence_avatarStack_more_label({count:H(e(T))})]),b(o,r)};I(L,o=>{e(T)>0&&o(d)})}G(a),z(o=>{N(a,1,`inline-flex items-center ${l()==="tile"?"flex-wrap gap-1.25":"-space-x-1"} ${F()??""}`),u(a,"aria-label",o),u(a,"data-presence-count",p().length)},[()=>l()==="tile"?y.workspace_peopleTile_title():e(re)]),b(t,a)};I(ie,t=>{p().length>0&&t(oe)})}return b(J,Q),ve(se)}export{Ve as P};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/oZSR7jB5.js","/app/immutable/chunks/BkP7iWmk.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/fvC-6LgA.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/K9ol5Tjr.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C400w5jq.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BGikh8Vc.js","/app/immutable/chunks/CepTMMxo.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/CkxlqZls.js","/app/immutable/chunks/CeRzgChF.js","/app/immutable/chunks/DdeuoyZB.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DhnPdhLH.js","/app/immutable/chunks/kDhfBVjP.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Oyv13Qiy.js","/app/immutable/chunks/Du6fZ610.js","/app/immutable/chunks/F6JYuVa2.js","/app/immutable/chunks/Cmsd5u03.js","/app/immutable/chunks/BTU_oKHo.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/eF4sVb1p.js","/app/immutable/chunks/Dwtk3MUL.js","/app/immutable/chunks/BNaYSa9e.js","/app/immutable/chunks/EFalm4kN.js","/app/immutable/chunks/DY9qQwsB.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Duz2cV7w.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/COHdP7EQ.js","/app/immutable/chunks/BCqeyLEa.js","/app/immutable/chunks/Cnd1Toz7.js","/app/immutable/chunks/DdLb4YD1.js"])))=>i.map(i=>d[i]);
2
- import{_ as ue,t as ne,bo as v,bw as re,b as se,bm as k}from"./BkP7iWmk.js";import{II as pe}from"./fvC-6LgA.js";import{bI as de,bs as ie,a7 as le,ay as X,aD as r,W as f,bn as oe,c9 as L,aA as h,a5 as q,bA as G,b_ as T,aB as P,bl as U,bO as j,bS as S,ca as fe,bH as ge,bV as _e,aC as B}from"./DYhIMPy1.js";import{i as A}from"./Cmsd5u03.js";import{c as me,e as ve,f as te,g as ce,s as M}from"./DdeuoyZB.js";import{u as he,I as z,e as $,B as J}from"./EFalm4kN.js";import{e as Ce}from"./eF4sVb1p.js";import{t as we}from"./D52fecD7.js";import{F as ke}from"./Duz2cV7w.js";import{M as be}from"./CEiAdjWq.js";import{a as xe}from"./COHdP7EQ.js";import{aM as Te}from"./DepfqAOx.js";import{f as Se}from"./BTU_oKHo.js";import"./CkxlqZls.js";function dt(t,a,c){if(t.metaKey||t.ctrlKey||!(t.currentTarget instanceof Element)||!t.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??a,i=t.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./oZSR7jB5.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}const ye=Symbol("panel-context");function ft(t){de(ye,{panelId:t})}function Ee(t){if(t?.target)return t.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}function gt(t,a){const c=a?.panelId??Ee(t),e=t.metaKey||t.ctrlKey;return{sourcePanelId:c,openInAdjacentPanel:e}}var Ie=P('<span class="text-subtle animate-pulse"> </span>'),Me=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Ae=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Le=P('<span class="text-subtle"> </span>'),Ne=P("<!> <!> <!>",1),Pe=P("<div><!></div>");function Re(t,a){if(new.target)return ne({component:Re,...t});ie(a,!0);let c=v(a,"additions",7,0),e=v(a,"deletions",7,0),i=v(a,"showZero",7,!1),o=v(a,"size",7,"sm"),_=v(a,"inline",7,!0),u=v(a,"loading",7,!1),d=v(a,"class",7,""),y=L(()=>i()||c()>0||e()>0||u()),R=L(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function H(n){return he(n,{notation:"compact"})}var F={get additions(){return c()},set additions(n=0){c(n),h()},get deletions(){return e()},set deletions(n=0){e(n),h()},get showZero(){return i()},set showZero(n=!1){i(n),h()},get size(){return o()},set size(n="sm"){o(n),h()},get inline(){return _()},set inline(n=!0){_(n),h()},get loading(){return u()},set loading(n=!1){u(n),h()},get class(){return d()},set class(n=""){d(n),h()},$set:re,$on:(n,w)=>se(a,n,w)},C=le(),D=X(C);{var p=n=>{var w=Pe(),K=q(w);{var E=g=>{var m=Ie(),N=U(m,!0);T(O=>j(N,O),[()=>k.shared_lineChangeStats_calculating_label()]),f(g,m)},V=g=>{var m=Ne(),N=X(m);{var O=s=>{var l=Me(),b=S(q(l),2),I=U(b,!0);G(l),T(Y=>j(I,Y),[()=>H(c())]),f(s,l)};A(N,s=>{(c()>0||i())&&s(O)})}var Z=S(N,2);{var W=s=>{var l=Ae(),b=S(q(l),2),I=U(b,!0);G(l),T(Y=>j(I,Y),[()=>H(e())]),f(s,l)};A(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Le(),b=U(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};A(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(g,m)};A(K,g=>{u()?g(E):g(V,-1)})}G(w),T(g=>te(w,1,g),[()=>me(ve("whitespace-nowrap",_()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};A(D,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const De=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),Oe=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),ze=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function Be(t){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),({segment:a})=>a):Array.from(t)}function ee(t,a,c,e){for(const i of Be(a.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||t.append(document.createTextNode("…")),e.truncated=!0;return}t.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(t,a,c,e){if(e.truncated)return;if(t.nodeType===Node.TEXT_NODE){ee(a,t.textContent??"",c,e);return}if(!(t instanceof HTMLElement)||Oe.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=De.get(t.tagName);if(i){const o=document.createElement(i);a.append(o);for(const _ of t.childNodes)ae(_,o,c,e);o.textContent||o.remove();return}ze.has(t.tagName)&&e.hasText&&ee(a," ",c,e);for(const o of t.childNodes)ae(o,a,c,e)}async function He(t,a=80){const c=await Te(t,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},_=Math.max(0,Math.floor(a));for(const u of e.content.childNodes)ae(u,i,_,o);return i.innerHTML.trim()}async function Fe(t){const a=await He(t,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=a,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var Ve=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Ze=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function Ue(t,a){if(new.target)return ne({component:Ue,...t});ie(a,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(a,"toolUse",7),i=v(a,"animate",7,!1),o=v(a,"iconSize",7,12),_=v(a,"showIcon",7,!0),u=v(a,"class",7,"");const d=L(()=>xe(e().name,e().input||{})),y=L(()=>[r(d).verb,r(d).subject,r(d).path].filter(Boolean).join(" ").trim()||r(d).verb||k.chat_previewToolLabel_tool_fallback());let R=_e("");fe(()=>{const p=r(y);let n=!1;return Fe(p).then(w=>{n||ge(R,w,!0)}),()=>{n=!0}});var H={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return _()},set showIcon(p=!0){_(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:re,$on:(p,n)=>se(a,p,n)},F=le(),C=X(F);{var D=p=>{var n=Ze(),w=q(n);{var K=g=>{var m=Ve(),N=q(m);{var O=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=L(()=>r(d).mcpSource&&c.has(r(d).mcpSource)),W=x=>{ke(x,{get icon(){return r(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};A(N,x=>{r(Z)?x(O):x(W,-1)})}G(m),T(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(g,m)};A(w,g=>{_()&&g(K)})}var E=S(w,2),V=U(E,!0);Ce(E,(g,m)=>we?.(g,m),()=>r(R)),G(n),T(()=>{te(n,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${_()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),j(V,r(R))}),f(p,n)};A(C,p=>{r(d).hidden||p(D)})}return f(t,F),oe(H)}var qe=B('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ge=B('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ke=B('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),We=B('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),je=B('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),Xe=B('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),Je=B('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Qe(t,a){if(new.target)return ne({component:Qe,...t});ie(a,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(a,"status",7),i=v(a,"size",7,16),o=v(a,"onclick",7);const _=Math.random().toString(36).substring(2,9);let u=L(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=L(()=>d[r(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let H=L(()=>(R[r(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:re,$on:(C,D)=>se(a,C,D)};{let C=L(()=>k.tiptap_taskStatus_status_tooltip({status:r(H)}));Se(t,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return r(C)},children:(D,p)=>{var n=Je(),w=q(n),K=U(w),E=S(w),V=S(E),g=S(V);{var m=s=>{},N=s=>{var l=qe();T(()=>M(l,"stroke",r(y).stroke)),f(s,l)},O=s=>{var l=Ge();z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ke();T(()=>M(l,"stroke",r(y).stroke)),z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},W=s=>{var l=We();z(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=je(),b=X(l),I=S(b);z(3,b,()=>$,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=Xe(),b=X(l),I=S(b);z(3,b,()=>J,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};A(g,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(O,2):r(u)==="cancelled"?s(Z,3):r(u)==="discussion_needed"?s(W,4):r(u)==="blocked"?s(x,5):r(u)==="review_required"&&s(Q,6)})}G(n),T(()=>{M(n,"width",i()),M(n,"height",i()),ce(n,`width: ${i()??""}px; height: ${i()??""}px;`),M(K,"id",`half-clip-${_??""}`),M(E,"r",`${r(y).innerCircleRPercentage*.5}%`),M(E,"fill",r(y).fill),M(E,"clip-path",r(u)==="in_progress"?`url(#half-clip-${_})`:"none"),M(V,"stroke",r(y).stroke)}),f(D,n)},$$slots:{default:!0}})}return oe(F)}export{Ue as A,Re as L,Qe as T,Ee as a,He as b,gt as g,dt as o,Fe as r,ft as s};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/xe2H3EkW.js","/app/immutable/chunks/BkP7iWmk.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/D98guX46.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/K9ol5Tjr.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C400w5jq.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BkA84tNB.js","/app/immutable/chunks/B21KgEqG.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DPKwA49z.js","/app/immutable/chunks/CeRzgChF.js","/app/immutable/chunks/DdeuoyZB.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BOz86KDw.js","/app/immutable/chunks/D9pex3XI.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/5uoxxRrI.js","/app/immutable/chunks/BoZRF0Rb.js","/app/immutable/chunks/DvOPTg8o.js","/app/immutable/chunks/Cmsd5u03.js","/app/immutable/chunks/DlQfuVhT.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/eF4sVb1p.js","/app/immutable/chunks/Dwtk3MUL.js","/app/immutable/chunks/BNaYSa9e.js","/app/immutable/chunks/EFalm4kN.js","/app/immutable/chunks/D6fddbvu.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Duz2cV7w.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CM_58O-V.js","/app/immutable/chunks/Cgbm4X7X.js","/app/immutable/chunks/pwWESNJZ.js","/app/immutable/chunks/_Ak2VoUq.js"])))=>i.map(i=>d[i]);
2
+ import{_ as ue,t as ne,bo as v,bw as re,b as se,bm as k}from"./BkP7iWmk.js";import{II as pe}from"./D98guX46.js";import{bI as de,bs as ie,a7 as le,ay as X,aD as r,W as f,bn as oe,c9 as L,aA as h,a5 as q,bA as G,b_ as T,aB as P,bl as U,bO as j,bS as S,ca as fe,bH as ge,bV as _e,aC as B}from"./DYhIMPy1.js";import{i as A}from"./Cmsd5u03.js";import{c as me,e as ve,f as te,g as ce,s as M}from"./DdeuoyZB.js";import{u as he,I as z,e as $,B as J}from"./EFalm4kN.js";import{e as Ce}from"./eF4sVb1p.js";import{t as we}from"./BCRcMJ-W.js";import{F as ke}from"./Duz2cV7w.js";import{M as be}from"./Bwi005HJ.js";import{a as xe}from"./CM_58O-V.js";import{aM as Te}from"./Ca9Vj8X7.js";import{f as Se}from"./DlQfuVhT.js";import"./DPKwA49z.js";function dt(t,a,c){if(t.metaKey||t.ctrlKey||!(t.currentTarget instanceof Element)||!t.currentTarget.closest("[data-assistant-panels]"))return!1;const e=pe.state.agentSessions.byAgentId[c]?.workspaceId??a,i=t.currentTarget.closest("[data-assistant-layout-id]")?.dataset.assistantLayoutId;return ue(async()=>{const{showAssistantContent:o}=await import("./xe2H3EkW.js");return{showAssistantContent:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42]),import.meta.url).then(({showAssistantContent:o})=>o(`intent://local/${e}/agent/${c}`,{layoutId:i})),!0}const ye=Symbol("panel-context");function ft(t){de(ye,{panelId:t})}function Ee(t){if(t?.target)return t.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}function gt(t,a){const c=a?.panelId??Ee(t),e=t.metaKey||t.ctrlKey;return{sourcePanelId:c,openInAdjacentPanel:e}}var Ie=P('<span class="text-subtle animate-pulse"> </span>'),Me=P('<span class="text-green-600 dark:text-green-400 flex items-center gap-0.5"><span class="opacity-70">+</span> <span> </span></span>'),Ae=P('<span class="text-red-600 dark:text-red-400 flex items-center gap-0.5"><span class="opacity-70">-</span> <span> </span></span>'),Le=P('<span class="text-subtle"> </span>'),Ne=P("<!> <!> <!>",1),Pe=P("<div><!></div>");function Re(t,a){if(new.target)return ne({component:Re,...t});ie(a,!0);let c=v(a,"additions",7,0),e=v(a,"deletions",7,0),i=v(a,"showZero",7,!1),o=v(a,"size",7,"sm"),_=v(a,"inline",7,!0),u=v(a,"loading",7,!1),d=v(a,"class",7,""),y=L(()=>i()||c()>0||e()>0||u()),R=L(()=>{switch(o()){case"xs":return"text-ui gap-1";case"sm":return"text-xs gap-1.5";case"md":return"text-sm gap-2";case"lg":return"text-base gap-2.5";default:return"text-xs gap-1.5"}});function H(n){return he(n,{notation:"compact"})}var F={get additions(){return c()},set additions(n=0){c(n),h()},get deletions(){return e()},set deletions(n=0){e(n),h()},get showZero(){return i()},set showZero(n=!1){i(n),h()},get size(){return o()},set size(n="sm"){o(n),h()},get inline(){return _()},set inline(n=!0){_(n),h()},get loading(){return u()},set loading(n=!1){u(n),h()},get class(){return d()},set class(n=""){d(n),h()},$set:re,$on:(n,w)=>se(a,n,w)},C=le(),D=X(C);{var p=n=>{var w=Pe(),K=q(w);{var E=g=>{var m=Ie(),N=U(m,!0);T(O=>j(N,O),[()=>k.shared_lineChangeStats_calculating_label()]),f(g,m)},V=g=>{var m=Ne(),N=X(m);{var O=s=>{var l=Me(),b=S(q(l),2),I=U(b,!0);G(l),T(Y=>j(I,Y),[()=>H(c())]),f(s,l)};A(N,s=>{(c()>0||i())&&s(O)})}var Z=S(N,2);{var W=s=>{var l=Ae(),b=S(q(l),2),I=U(b,!0);G(l),T(Y=>j(I,Y),[()=>H(e())]),f(s,l)};A(Z,s=>{(e()>0||i())&&s(W)})}var x=S(Z,2);{var Q=s=>{var l=Le(),b=U(l,!0);T(I=>j(b,I),[()=>k.shared_lineChangeStats_noChanges_label()]),f(s,l)};A(x,s=>{!c()&&!e()&&!i()&&s(Q)})}f(g,m)};A(K,g=>{u()?g(E):g(V,-1)})}G(w),T(g=>te(w,1,g),[()=>me(ve("whitespace-nowrap",_()?"inline-flex":"flex","items-center font-mono",r(R),d()))]),f(n,w)};A(D,n=>{r(y)&&n(p)})}return f(t,C),oe(F)}const De=new Map([["STRONG","strong"],["B","strong"],["EM","em"],["I","em"],["CODE","code"]]),Oe=new Set(["AUDIO","BUTTON","CANVAS","DETAILS","EMBED","HR","IFRAME","IMG","INPUT","OBJECT","PICTURE","PRE","SELECT","SVG","TABLE","TEXTAREA","VIDEO"]),ze=new Set(["ARTICLE","BLOCKQUOTE","DD","DIV","DT","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","P","SECTION"]);function Be(t){return typeof Intl.Segmenter=="function"?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t),({segment:a})=>a):Array.from(t)}function ee(t,a,c,e){for(const i of Be(a.replace(/\s+/gu," "))){const o=i===" ";if(!(o&&(!e.hasText||e.lastWasSpace))){if(e.visibleLength>=c){if(o)return;e.truncated||t.append(document.createTextNode("…")),e.truncated=!0;return}t.append(document.createTextNode(i)),e.visibleLength+=1,e.hasText=!0,e.lastWasSpace=o}}}function ae(t,a,c,e){if(e.truncated)return;if(t.nodeType===Node.TEXT_NODE){ee(a,t.textContent??"",c,e);return}if(!(t instanceof HTMLElement)||Oe.has(t.tagName))return;if(t.tagName==="BR"){ee(a," ",c,e);return}const i=De.get(t.tagName);if(i){const o=document.createElement(i);a.append(o);for(const _ of t.childNodes)ae(_,o,c,e);o.textContent||o.remove();return}ze.has(t.tagName)&&e.hasText&&ee(a," ",c,e);for(const o of t.childNodes)ae(o,a,c,e)}async function He(t,a=80){const c=await Te(t,{allowEmpty:!0,skipIfHTML:!1,preserveAnchors:!1,processPrimitives:!1,taskBlockRenderMode:"content"}),e=document.createElement("template");e.innerHTML=c;const i=document.createElement("span"),o={visibleLength:0,hasText:!1,lastWasSpace:!1,truncated:!1},_=Math.max(0,Math.floor(a));for(const u of e.content.childNodes)ae(u,i,_,o);return i.innerHTML.trim()}async function Fe(t){const a=await He(t,Number.MAX_SAFE_INTEGER),c=document.createElement("span");return c.innerHTML=a,(c.textContent??"").replace(/<\/?[A-Za-z][^>]*>/gu,"").replace(/\s+/gu," ").trim()}var Ve=P('<span data-testid="agent-preview-tool-icon"><!></span>'),Ze=P('<span><!> <span class="min-w-0 flex-1 truncate text-inherit opacity-[inherit]" data-testid="agent-preview-tool-text"> </span></span>');function Ue(t,a){if(new.target)return ne({component:Ue,...t});ie(a,!0);const c=new Set(["figma","sentry","playwright","github","linear","slack","context7"]);let e=v(a,"toolUse",7),i=v(a,"animate",7,!1),o=v(a,"iconSize",7,12),_=v(a,"showIcon",7,!0),u=v(a,"class",7,"");const d=L(()=>xe(e().name,e().input||{})),y=L(()=>[r(d).verb,r(d).subject,r(d).path].filter(Boolean).join(" ").trim()||r(d).verb||k.chat_previewToolLabel_tool_fallback());let R=_e("");fe(()=>{const p=r(y);let n=!1;return Fe(p).then(w=>{n||ge(R,w,!0)}),()=>{n=!0}});var H={get toolUse(){return e()},set toolUse(p){e(p),h()},get animate(){return i()},set animate(p=!1){i(p),h()},get iconSize(){return o()},set iconSize(p=12){o(p),h()},get showIcon(){return _()},set showIcon(p=!0){_(p),h()},get class(){return u()},set class(p=""){u(p),h()},$set:re,$on:(p,n)=>se(a,p,n)},F=le(),C=X(F);{var D=p=>{var n=Ze(),w=q(n);{var K=g=>{var m=Ve(),N=q(m);{var O=x=>{be(x,{get iconName(){return r(d).mcpSource},get label(){return r(d).mcpSource},get size(){return o()}})},Z=L(()=>r(d).mcpSource&&c.has(r(d).mcpSource)),W=x=>{ke(x,{get icon(){return r(d).icon},class:"h-full! w-full! text-inherit opacity-[inherit]"})};A(N,x=>{r(Z)?x(O):x(W,-1)})}G(m),T(()=>{te(m,1,`agent-preview-tool-icon inline-flex shrink-0 items-center justify-center text-inherit opacity-[inherit] ${i()?"animate-pulse":""}`,"svelte-115ywqs"),ce(m,`width: ${o()??""}px; height: ${o()??""}px;`)}),f(g,m)};A(w,g=>{_()&&g(K)})}var E=S(w,2),V=U(E,!0);Ce(E,(g,m)=>we?.(g,m),()=>r(R)),G(n),T(()=>{te(n,1,`type-body inline-flex w-full min-w-0 items-center font-normal ${_()?"gap-1.5":""} ${u()??""}`,"svelte-115ywqs"),j(V,r(R))}),f(p,n)};A(C,p=>{r(d).hidden||p(D)})}return f(t,F),oe(H)}var qe=B('<circle cx="12" cy="12" r="10" stroke-width="2" fill="none"></circle>'),Ge=B('<path d="M7 12.5L10.5 16L17 9" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round" fill="none"></path>'),Ke=B('<path d="M5 19L19 5" stroke-width="2.5" stroke-linecap="round"></path>'),We=B('<path d="M13.1372 17.7135C13.1372 18.1682 12.9566 18.6042 12.6351 18.9257C12.3136 19.2472 11.8776 19.4278 11.4229 19.4278C10.9683 19.4278 10.5322 19.2472 10.2107 18.9257C9.88925 18.6042 9.70864 18.1682 9.70864 17.7135C9.70864 17.2589 9.88925 16.8228 10.2107 16.5014C10.5322 16.1799 10.9683 15.9993 11.4229 15.9993C11.8776 15.9993 12.3136 16.1799 12.6351 16.5014C12.9566 16.8228 13.1372 17.2589 13.1372 17.7135ZM10.2109 7.07297C10.3957 6.88872 10.6201 6.7491 10.8671 6.66473C11.114 6.58037 11.377 6.55349 11.6359 6.58615C11.8948 6.61881 12.1428 6.71015 12.361 6.8532C12.5793 6.99625 12.762 7.18724 12.8953 7.4116C13.0285 7.63597 13.1088 7.8878 13.1299 8.14789C13.1511 8.40799 13.1126 8.66948 13.0174 8.91244C12.9222 9.1554 12.7728 9.37342 12.5805 9.54988C12.3883 9.72634 12.1583 9.85659 11.9081 9.93068C11.1212 10.1604 10.1372 10.901 10.1372 12.1421V12.5707C10.1372 12.9117 10.2727 13.2387 10.5138 13.4798C10.7549 13.7209 11.0819 13.8564 11.4229 13.8564C11.7639 13.8564 12.0909 13.7209 12.3321 13.4798C12.5732 13.2387 12.7086 12.9117 12.7086 12.5707V12.3735C13.3281 12.1785 13.8952 11.8451 14.3669 11.3988C14.8387 10.9524 15.2029 10.4046 15.4319 9.79683C15.6609 9.18906 15.7487 8.53719 15.6888 7.89048C15.6289 7.24377 15.4228 6.61913 15.0861 6.06376C14.7494 5.50838 14.2908 5.03681 13.7451 4.68466C13.1994 4.33251 12.5808 4.10899 11.936 4.03101C11.2912 3.95302 10.6371 4.0226 10.0232 4.23449C9.40925 4.44638 8.8515 4.79503 8.39207 5.25411C8.26933 5.37277 8.17145 5.51469 8.10414 5.67158C8.03683 5.82848 8.00145 5.9972 8.00004 6.16792C7.99864 6.33864 8.03125 6.50792 8.09597 6.6659C8.16069 6.82388 8.25623 6.96739 8.37701 7.08805C8.49778 7.20871 8.64138 7.30411 8.79942 7.36868C8.95746 7.43326 9.12677 7.46571 9.29749 7.46414C9.4682 7.46258 9.6369 7.42703 9.79373 7.35958C9.95056 7.29212 10.0924 7.19411 10.2109 7.07125V7.07297Z" fill="white" class="origin-center"></path>'),je=B('<path d="M12 5.5V13.5" stroke="white" stroke-width="3" stroke-linecap="round"></path><circle cx="12" cy="17.5" r="1.6" fill="white" class="origin-center"></circle>',1),Xe=B('<path d="M11.6668 13.649C12.1044 13.649 12.5241 13.4751 12.8336 13.1656C13.1431 12.8562 13.3169 12.4365 13.3169 11.9988C13.3169 11.5611 13.1431 11.1414 12.8336 10.832C12.5241 10.5225 12.1044 10.3486 11.6668 10.3486C11.2291 10.3486 10.8094 10.5225 10.4999 10.832C10.1905 11.1414 10.0166 11.5611 10.0166 11.9988C10.0166 12.4365 10.1905 12.8562 10.4999 13.1656C10.8094 13.4751 11.2291 13.649 11.6668 13.649Z" fill="white" class="origin-center"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.38506 12.3064C4.31566 12.1046 4.31566 11.8855 4.38506 11.6837C4.90912 10.1693 5.89241 8.85596 7.198 7.92665C8.50359 6.99734 10.0665 6.4983 11.669 6.49902C13.2716 6.49975 14.834 7.00021 16.1388 7.9307C17.4435 8.8612 18.4256 10.1754 18.9483 11.6903C19.0177 11.8921 19.0177 12.1112 18.9483 12.313C18.4245 13.8278 17.4412 15.1416 16.1355 16.0712C14.8298 17.0008 13.2666 17.5 11.6638 17.4993C10.0609 17.4986 8.49824 16.9979 7.19336 16.0671C5.88848 15.1363 4.90641 13.8217 4.38396 12.3064H4.38506ZM14.9681 11.9984C14.9681 12.8737 14.6204 13.7131 14.0015 14.3321C13.3825 14.951 12.5431 15.2987 11.6678 15.2987C10.7925 15.2987 9.95304 14.951 9.33411 14.3321C8.71517 13.7131 8.36746 12.8737 8.36746 11.9984C8.36746 11.1231 8.71517 10.2836 9.33411 9.66468C9.95304 9.04575 10.7925 8.69803 11.6678 8.69803C12.5431 8.69803 13.3825 9.04575 14.0015 9.66468C14.6204 10.2836 14.9681 11.1231 14.9681 11.9984Z" fill="white" class="origin-center"></path>',1),Je=B('<svg viewBox="0 0 24 24" fill="none"><defs><clipPath><rect x="48%" y="0" width="100%" height="100%"></rect></clipPath></defs><circle cx="50%" cy="50%" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none origin-center"></circle><circle cx="50%" cy="50%" r="45%" stroke-width="2.5" fill="none" class="transition-all duration-spring-slow ease-spring-slow motion-reduce:transition-none"></circle><!></svg>');function Qe(t,a){if(new.target)return ne({component:Qe,...t});ie(a,!0);const c=new Set(["not_started","waiting","discussion_needed","blocked","in_progress","review_required","complete","cancelled"]);let e=v(a,"status",7),i=v(a,"size",7,16),o=v(a,"onclick",7);const _=Math.random().toString(36).substring(2,9);let u=L(()=>e()==="todo"?"not_started":e()==="in-progress"?"in_progress":e()==="done"?"complete":typeof e()=="string"&&c.has(e())?e():"unknown");const d={not_started:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},waiting:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0},discussion_needed:{stroke:"#f59e0b",fill:"#f59e0b",innerCircleRPercentage:100},blocked:{stroke:"#ef4444",fill:"#ef4444",innerCircleRPercentage:100},in_progress:{stroke:"#00BCFF",fill:"#00BCFF",innerCircleRPercentage:55},review_required:{stroke:"#3b82f6",fill:"#3b82f6",innerCircleRPercentage:100},complete:{stroke:"#22c55e",fill:"#00BD7D",innerCircleRPercentage:100},cancelled:{stroke:"#99999966",fill:"#99999966",innerCircleRPercentage:0},unknown:{stroke:"#99999966",fill:"transparent",innerCircleRPercentage:0}};let y=L(()=>d[r(u)]||d.not_started);const R={not_started:k.tiptap_taskStatus_notStarted_label,waiting:k.tiptap_taskStatus_waiting_label,discussion_needed:k.tiptap_taskStatus_discussionNeeded_label,blocked:k.tiptap_taskStatus_blocked_label,in_progress:k.tiptap_taskStatus_inProgress_label,review_required:k.tiptap_taskStatus_reviewRequired_label,complete:k.tiptap_taskStatus_complete_label,cancelled:k.tiptap_taskStatus_cancelled_label,unknown:k.tiptap_taskStatus_unknown_label};let H=L(()=>(R[r(u)]??k.tiptap_taskStatus_unknown_label)());var F={get status(){return e()},set status(C){e(C),h()},get size(){return i()},set size(C=16){i(C),h()},get onclick(){return o()},set onclick(C){o(C),h()},$set:re,$on:(C,D)=>se(a,C,D)};{let C=L(()=>k.tiptap_taskStatus_status_tooltip({status:r(H)}));Se(t,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"task-status-icon shrink-0 cursor-pointer bg-transparent border-0 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-primary-ink rounded-full",get style(){return`width: ${i()??""}px; height: ${i()??""}px;`},get onclick(){return o()},get title(){return r(C)},children:(D,p)=>{var n=Je(),w=q(n),K=U(w),E=S(w),V=S(E),g=S(V);{var m=s=>{},N=s=>{var l=qe();T(()=>M(l,"stroke",r(y).stroke)),f(s,l)},O=s=>{var l=Ge();z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},Z=s=>{var l=Ke();T(()=>M(l,"stroke",r(y).stroke)),z(3,l,()=>$,()=>({tier:"slow"})),f(s,l)},W=s=>{var l=We();z(3,l,()=>J,()=>({tier:"slow"})),f(s,l)},x=s=>{var l=je(),b=X(l),I=S(b);z(3,b,()=>$,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)},Q=s=>{var l=Xe(),b=X(l),I=S(b);z(3,b,()=>J,()=>({tier:"slow"})),z(3,I,()=>J,()=>({tier:"slow"})),f(s,l)};A(g,s=>{r(u)==="not_started"||r(u)==="waiting"?s(m):r(u)==="in_progress"?s(N,1):r(u)==="complete"?s(O,2):r(u)==="cancelled"?s(Z,3):r(u)==="discussion_needed"?s(W,4):r(u)==="blocked"?s(x,5):r(u)==="review_required"&&s(Q,6)})}G(n),T(()=>{M(n,"width",i()),M(n,"height",i()),ce(n,`width: ${i()??""}px; height: ${i()??""}px;`),M(K,"id",`half-clip-${_??""}`),M(E,"r",`${r(y).innerCircleRPercentage*.5}%`),M(E,"fill",r(y).fill),M(E,"clip-path",r(u)==="in_progress"?`url(#half-clip-${_})`:"none"),M(V,"stroke",r(y).stroke)}),f(D,n)},$$slots:{default:!0}})}return oe(F)}export{Ue as A,Re as L,Qe as T,Ee as a,He as b,gt as g,dt as o,Fe as r,ft as s};
@@ -1 +1 @@
1
- import{aB as v,b as y}from"./B9uFsQO_.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
1
+ import{aB as v,b as y}from"./B1YqGJC0.js";var w=5,O=1e-5,X=2,Y=.6,R=1e-6;function N(t){const e=[];for(let s=0;s<t.length-1;s++)e.push({a:t[s],b:t[s+1]});return e}y(N,"buildSegmentList");function T(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=a.x-s.x,d=a.y-s.y,u=r*d-o*i;if(u===0)return null;const n=s.x-t.x,c=s.y-t.y,p=(n*d-c*i)/u,f=(n*o-c*r)/u;return p<=R||p>=1-R||f<=R||f>=1-R?null:{point:{x:t.x+p*r,y:t.y+p*o},tA:p,tB:f}}y(T,"segmentIntersection");function P(t){return Math.abs(t.b.x-t.a.x)>=Math.abs(t.b.y-t.a.y)}y(P,"isHorizontalSeg");function B(t,e,s){if(t.curve!=="rounded")return!1;const a=t.points,r=a[e],o=a[e+1];if(!r||!o)return!1;const i=Math.hypot(o.x-r.x,o.y-r.y),d=s*i,u=e>0?L(a[e-1],r,o,w):null;if(u&&d<u.cutLen)return!0;const n=e+2<a.length?L(r,o,a[e+2],w):null;return n!==null&&i-d<n.cutLen}y(B,"crossingSitsInRoundedCorner");function C(t){const e=[];for(let s=0;s<t.length;s++){const a=t[s],r=N(a.points);for(let o=s+1;o<t.length;o++){const i=t[o],d=N(i.points);for(const[u,n]of r.entries())for(const[c,p]of d.entries()){const f=T(n.a,n.b,p.a,p.b);if(!f||B(a,u,f.tA)||B(i,c,f.tB))continue;const g=P(n),S=P(p);(g!==S?g:!1)?e.push({jumpEdgeId:a.id,otherEdgeId:i.id,segIndex:u,t:f.tA,point:f.point}):e.push({jumpEdgeId:i.id,otherEdgeId:a.id,segIndex:c,t:f.tB,point:f.point})}}}return e}y(C,"findEdgeIntersections");function M(t){const e=Math.round(t*1e3)/1e3;return Number.isInteger(e)?`${e}`:`${e}`}y(M,"fmt");function A(t){return`${M(t.x)},${M(t.y)}`}y(A,"pointToString");function D(t){const e=t.b.x-t.a.x,s=t.b.y-t.a.y;return Math.abs(e)>=Math.abs(s)?e>=0?1:0:s>=0?1:0}y(D,"getArcSweepFlag");function _(t,e){if(t.length<2)return t.map(o=>({...o}));const s=t.map(o=>({...o})),a=e.arrowTypeStart&&v[e.arrowTypeStart];if(a){const o=t[0],i=t[1],d=Math.atan2(i.y-o.y,i.x-o.x);s[0].x=o.x+a*Math.cos(d),s[0].y=o.y+a*Math.sin(d)}const r=e.arrowTypeEnd&&v[e.arrowTypeEnd];if(r){const o=t.length,i=t[o-2],d=t[o-1],u=Math.atan2(d.y-i.y,d.x-i.x);s[o-1].x=d.x-r*Math.cos(u),s[o-1].y=d.y-r*Math.sin(u)}return s}y(_,"applyMarkerOffsets");function k(t,e,s,a,r){const o=t.point.x,i=t.point.y,d={x:o-e*t.r,y:i-s*t.r},u={x:o+e*t.r,y:i+s*t.r},n=[`L${A(d)}`];return r==="arc"?n.push(`A${M(t.r)},${M(t.r)} 0 0 ${a} ${A(u)}`):n.push(`M${A(u)}`),n}y(k,"emitJump");function L(t,e,s,a){const r=e.x-t.x,o=e.y-t.y,i=s.x-e.x,d=s.y-e.y,u=Math.hypot(r,o),n=Math.hypot(i,d);if(u<O||n<O)return null;const c=r/u,p=o/u,f=i/n,g=d/n,S=c*f+p*g,b=Math.max(-1,Math.min(1,S)),m=Math.acos(b);if(m<O||Math.abs(Math.PI-m)<O)return null;const h=Math.min(a/Math.sin(m/2),u/2,n/2);return{startX:e.x-c*h,startY:e.y-p*h,endX:e.x+f*h,endY:e.y+g*h,ctrlX:e.x,ctrlY:e.y,cutLen:h}}y(L,"computeRoundedCorner");function H(t,e,s){const a=t.points;if(a.length<2)return"";const r=_(a,t),o=t.curve==="rounded",i=N(r),d=new Map;for(const n of e){const c=i[n.segIndex];if(!c)continue;const p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=d.get(n.segIndex)??[];f.push({t:n.t,point:n.point,d:n.t*p,r:s.jumpRadius}),d.set(n.segIndex,f)}const u=[`M${A(r[0])}`];for(let n=0;n<i.length;n++){const c=i[n],p=Math.hypot(c.b.x-c.a.x,c.b.y-c.a.y),f=p===0?0:(c.b.x-c.a.x)/p,g=p===0?0:(c.b.y-c.a.y)/p,S=D(c);let b=0;if(o&&n>0){const l=L(r[n-1],r[n],r[n+1]??r[n],w);l&&(b=l.cutLen)}let m=p,h=null;o&&n<i.length-1&&(h=L(r[n],r[n+1],r[n+2]??r[n+1],w),h&&(m=p-h.cutLen));const $=s.jumpRadius*Y,x=[...d.get(n)??[]].sort((l,E)=>l.t-E.t).filter(l=>{const E=Math.min(l.d-b,m-l.d)-X;return l.r=Math.min(l.r,E),l.r>=$});for(let l=0;l<x.length-1;l++){const E=x[l+1].d-x[l].d;if(x[l].r+x[l+1].r>E){const I=E/2;x[l].r=Math.min(x[l].r,I),x[l+1].r=Math.min(x[l+1].r,I)}}for(const l of x)l.r<$||u.push(...k(l,f,g,S,s.jumpStyle));o&&h?(u.push(`L${M(h.startX)},${M(h.startY)}`),u.push(`Q${M(h.ctrlX)},${M(h.ctrlY)} ${M(h.endX)},${M(h.endY)}`)):u.push(`L${A(c.b)}`)}return u.join(" ")}y(H,"rewriteEdgePath");function J(t){return/^[\d\s+,.LMelm-]*$/.test(t)}y(J,"isStraightPath");function U(t){return t?t==="linear"||t==="rounded"||t==="step"||t==="stepBefore"||t==="stepAfter":!0}y(U,"curveSupportsLineHops");function j(t){if(!t)return null;try{const e=typeof atob=="function"?atob(t):Buffer.from(t,"base64").toString(),s=JSON.parse(e);if(!Array.isArray(s))return null;const a=[];for(const r of s)r&&typeof r.x=="number"&&typeof r.y=="number"&&a.push({x:r.x,y:r.y});return a.length>=2?a:null}catch{return null}}y(j,"decodeDataPoints");function F(t,e,s){if(!s.enabled)return;const a=t.node();if(!a)return;const r=new Map;for(const n of e)r.set(n.id,n);const o=new Map;for(const n of a.querySelectorAll("path[data-id]")){const c=n.getAttribute("data-id");c!==null&&!o.has(c)&&o.set(c,n)}const i=[];for(const n of e){const c=o.get(n.id);if(!c)continue;const f=j(c.getAttribute("data-points"))??n.points;i.push({...n,points:f})}const d=C(i);if(d.length===0)return;const u=new Map;for(const n of d){const c=u.get(n.jumpEdgeId)??[];c.push(n),u.set(n.jumpEdgeId,c)}for(const n of i){const c=u.get(n.id);if(!c||c.length===0)continue;const f=r.get(n.id)?.curve;if(f!==void 0&&!U(f))continue;const g=o.get(n.id);if(!g)continue;if(f===void 0){const x=g.getAttribute("d")??"";if(!J(x))continue}const S=g.getAttribute("style")??"",b=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(S),m=b?Number.parseFloat(b[1]):null,h=b?Number.parseFloat(b[2]):null,$=H(n,c,s);if(g.setAttribute("d",$),m!==null&&h!==null&&typeof g.getTotalLength=="function"){const x=g.getTotalLength(),l=Math.max(0,x-m-h),E=`0 ${m} ${l} ${h}`,I=S.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${E};`).replace(/;\s*;+/g,";");g.setAttribute("style",I)}}}y(F,"applyLineJumpsToSvg");export{F as a};
@@ -1 +1 @@
1
- import{bv as f}from"./DYhIMPy1.js";import{W as o}from"./kDhfBVjP.js";import{bm as u}from"./BkP7iWmk.js";import{k as b}from"./F6JYuVa2.js";import"./DdeuoyZB.js";import"./C400w5jq.js";import"./CkxlqZls.js";import"./ChTqQfQN.js";import"./DY9qQwsB.js";import"./fvC-6LgA.js";function l(){return globalThis.electronAPI??null}function i(r){const e=r?.enabled;return typeof e=="boolean"?e:null}const v=f(!1,r=>{const e=l();if(!e)return;let t=!0,s=!1;const c=e.on(o.DOCK_LAB_CHANGED,a=>{if(!t)return;const n=i(a);n!==null&&(s=!0,r(n))});return e.invoke(o.GET_DOCK_LAB,{}).then(a=>{const n=i(a);t&&!s&&n!==null&&r(n)}).catch(()=>{}),()=>{t=!1,e.offById(o.DOCK_LAB_CHANGED,c)}});async function d(r){const e=l();if(!e)return!1;try{const t=await e.invoke(o.SET_DOCK_LAB,{enabled:r});if(i(t)===r)return!0}catch{}return b.error(u.settings_gitWorkspace_saveError()),!1}async function y(r){await d(r)}export{v as d,d as r,y as s};
1
+ import{bv as f}from"./DYhIMPy1.js";import{W as o}from"./D9pex3XI.js";import{bm as u}from"./BkP7iWmk.js";import{k as b}from"./DvOPTg8o.js";import"./DdeuoyZB.js";import"./C400w5jq.js";import"./DPKwA49z.js";import"./ChTqQfQN.js";import"./D6fddbvu.js";import"./D98guX46.js";function l(){return globalThis.electronAPI??null}function i(r){const e=r?.enabled;return typeof e=="boolean"?e:null}const v=f(!1,r=>{const e=l();if(!e)return;let t=!0,s=!1;const c=e.on(o.DOCK_LAB_CHANGED,a=>{if(!t)return;const n=i(a);n!==null&&(s=!0,r(n))});return e.invoke(o.GET_DOCK_LAB,{}).then(a=>{const n=i(a);t&&!s&&n!==null&&r(n)}).catch(()=>{}),()=>{t=!1,e.offById(o.DOCK_LAB_CHANGED,c)}});async function d(r){const e=l();if(!e)return!1;try{const t=await e.invoke(o.SET_DOCK_LAB,{enabled:r});if(i(t)===r)return!0}catch{}return b.error(u.settings_gitWorkspace_saveError()),!1}async function y(r){await d(r)}export{v as d,d as r,y as s};
@@ -1 +1 @@
1
- import"./DYhIMPy1.js";import{p as r}from"./D3Rn6g6v.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
1
+ import"./DYhIMPy1.js";import{p as r}from"./B--u_2Nc.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
@@ -1,3 +1,3 @@
1
- import{fI as U,II as o,nB as x,m3 as F,lW as G,t3 as K}from"./fvC-6LgA.js";import{g as q,G as j,dT as V,cG as N,ds as w,dD as E,dO as M,cB as Y,aB as $}from"./COHdP7EQ.js";import{l as z,R as J,E as Q}from"./Cnd1Toz7.js";function X(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function I(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function we(e){const t=e.filter(X).map(s=>({agent:s,activity:I(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>U(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function Z(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ee(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?q(r).trim():"";return!t||Z(t)?c||L:c||t}const te="chief-of-staff",se=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function be(e){const t=e?.trim();return t?`${T}
1
+ import{fI as U,II as o,nB as x,m3 as F,lW as G,t3 as K}from"./D98guX46.js";import{g as q,G as j,dT as V,cG as N,ds as w,dD as E,dO as M,cB as Y,aB as $}from"./CM_58O-V.js";import{l as z,R as J,E as Q}from"./pwWESNJZ.js";function X(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function I(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function we(e){const t=e.filter(X).map(s=>({agent:s,activity:I(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>U(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function Z(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ee(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?q(r).trim():"";return!t||Z(t)?c||L:c||t}const te="chief-of-staff",se=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function be(e){const t=e?.trim();return t?`${T}
2
2
 
3
3
  ${t}`:T}const re=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?x(s.hooks):[]}),oe=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),O=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??F),Ae=o.createSelector((e,t,s)=>{const r=O.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=K(t,s);return e.agentSubscriptionUI.entries[r]??G}),ne=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ae=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),ce=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),ve=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),ye=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Ce=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function ie(e){return[...new Set(e.filter(Boolean))]}const We=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of ie(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const A=e.agentSessions?.byAgentId??{},v=new Set([...d].filter(n=>{const a=A[n];return!a||!j(V(a))})),y=new Map(c.map((n,a)=>[n,a])),C=n=>{const a=A[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(v.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},W=c.filter(n=>!v.has(n)).sort((n,a)=>C(n)-C(a)||(y.get(n)??0)-(y.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:W.length,participantAgentIds:W}}),Te=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ne=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=ce.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Ee=o.createSelector(e=>{const t=z.select(e);if(!t||!J.select(e))return[];const s=new Set;for(const r of Q.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),P="pinned",le=64;function k(e){return e.trim().toLocaleLowerCase()}function R(e){return e===P}function Me(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>le)return{ok:!1,error:"tooLong"};const r=k(s);return r===P?{ok:!1,error:"reserved"}:t.some(c=>k(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function de(e){const t=new Map;for(const s of e){if(typeof s!="string"||R(s))continue;const r=s.trim();if(r.length===0)continue;const c=k(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function _(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function D(e){return e.metadata?.specialist===te&&e.metadata?.chiefPromptVersion===se}function B(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:ee(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:B(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return _(e).filter(t=>!t.retiredAt)}function m(e,t){return I(t)-I(e)}const Le=o.createSelector(e=>e.sidebarNav.panelItem),Oe=o.createSelector(e=>e.sidebarNav.onboardingActive),Pe=o.createSelector(e=>e.sidebarNav.showCreateModal),Re=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),_e=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),H=o.createSelector(e=>N.select(e)?.capabilities.workspaceLabels===1),De=o.createSelector((e,t)=>w.select(e,t)?.label??null),Be=o.createSelector(e=>de(E.select(e).map(t=>t.label))),pe=["id","label"],He=o.createSelector((e,t)=>H.select(e)&&M.select(e,t,pe)!==null),ue=o.createSelector(e=>N.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),ge=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),Ue=o.createSelector((e,t)=>w.select(e,t)?.autoArchiveDisabled===!0),fe=["id","autoArchiveDisabled"],xe=o.createSelector((e,t)=>{if(!ue.select(e)||!ge.select(e))return!1;const s=w.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:M.select(e,t,fe)!==null}),Fe=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Ge=o.createSelector(e=>H.select(e)?E.select(e).filter(t=>R(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Ke=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),qe=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),je=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),Ve=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),Ye=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),$e=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=oe.select(e,p)==="ready"?re.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=Y.select(e,p)==="ready"?$.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=O.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ne.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ae.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),ze=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),he=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||m(t,s)).map(S)),Se=o.createSelector(e=>_(e).filter(t=>!!t.retiredAt).sort(m).map(S)),Je=o.createSelector(e=>[...he.select(e),...Se.select(e)]),Qe=o.createSelector(e=>{const t=b(e).filter(D).sort(m)[0];return t?S(t):null}),Xe=o.createSelector(e=>{const t=b(e).filter(s=>B(s)===0&&!s.lastMessageId&&D(s)).sort(m)[0];return t?S(t):null});export{Oe as A,Le as B,se as C,L as D,Ge as E,Se as F,Xe as G,O as H,Pe as I,ze as J,Te as K,Ne as L,ye as M,Ce as N,Ue as O,P,je as Q,Ve as R,De as S,Be as T,qe as U,Me as V,le as W,te as a,p as b,be as c,X as d,We as e,ve as f,ne as g,Je as h,R as i,$e as j,re as k,oe as l,xe as m,He as n,Ye as o,he as p,_e as q,we as r,Ae as s,Re as t,Qe as u,ce as v,Ee as w,H as x,Fe as y,Ke as z};