@intent-hq/web 2.285.2 → 2.286.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Cv9OIgSe.js → -4iKCYSl.js} +1 -1
  3. package/web/app/immutable/chunks/{BUYWrzfb.js → -fWJi05-.js} +1 -1
  4. package/web/app/immutable/chunks/{U18kRAfW.js → 172GvQgx.js} +2 -2
  5. package/web/app/immutable/chunks/{Bm2N3t4X.js → 1jz3AJ7K.js} +1 -1
  6. package/web/app/immutable/chunks/{Bz2ThdmF.js → 2FstYM1s.js} +1 -1
  7. package/web/app/immutable/chunks/{Blmgq1Ng.js → 2LPpSBFe.js} +1 -1
  8. package/web/app/immutable/chunks/{CtQ6ra1S.js → 2oaDc1nn.js} +1 -1
  9. package/web/app/immutable/chunks/{BBGMxKuT.js → 3QmaYnff.js} +1 -1
  10. package/web/app/immutable/chunks/{DVx_I_hW.js → 3q61Z6zu.js} +1 -1
  11. package/web/app/immutable/chunks/{BfnQ_oJR.js → 3sa2ZSPC.js} +1 -1
  12. package/web/app/immutable/chunks/{D3TYCYab.js → 4LCvEsVS.js} +1 -1
  13. package/web/app/immutable/chunks/{B1C9yD3K.js → 6hWyihnV.js} +1 -1
  14. package/web/app/immutable/chunks/{DFNyXhJT.js → 9JjZRepm.js} +64 -176
  15. package/web/app/immutable/chunks/{CasNMwyU.js → 9M3_vOvI.js} +1 -1
  16. package/web/app/immutable/chunks/{BjkG0GoW.js → ALbX902-.js} +1 -1
  17. package/web/app/immutable/chunks/{DVnFqbmq.js → B-34RgWF.js} +1 -1
  18. package/web/app/immutable/chunks/{RiuBRZY4.js → B-jWalbO.js} +1 -1
  19. package/web/app/immutable/chunks/{CZU65Loh.js → B0jdpkVd.js} +1 -1
  20. package/web/app/immutable/chunks/{CTMFE1LM.js → B1kJVNhf.js} +1 -1
  21. package/web/app/immutable/chunks/{BFRmf7wo.js → B2SAFlE_.js} +1 -1
  22. package/web/app/immutable/chunks/{uTcbYh1p.js → B5NXv3LV.js} +12 -12
  23. package/web/app/immutable/chunks/{D3srKfGI.js → B5OVBjIf.js} +1 -1
  24. package/web/app/immutable/chunks/{B7XTx9cc.js → B5VfU0KM.js} +1 -1
  25. package/web/app/immutable/chunks/{D8iEGEdh.js → B5WfnJ_I.js} +1 -1
  26. package/web/app/immutable/chunks/{BSJ1XOuD.js → B6LKhrY2.js} +1 -1
  27. package/web/app/immutable/chunks/{CBIEY7XB.js → B6pRjnl0.js} +1 -1
  28. package/web/app/immutable/chunks/{BdeY5a6v.js → B78OjmQ3.js} +1 -1
  29. package/web/app/immutable/chunks/{B9C9V_qL.js → B7mAnbbv.js} +1 -1
  30. package/web/app/immutable/chunks/{c_J_BfG0.js → B7wpfrW2.js} +1 -1
  31. package/web/app/immutable/chunks/{BCM6KcqI.js → B8N5zbP-.js} +1 -1
  32. package/web/app/immutable/chunks/{DEknUYzT.js → B8jzbPVu.js} +1 -1
  33. package/web/app/immutable/chunks/{D2zsyuer.js → BAEKjYyz.js} +1 -1
  34. package/web/app/immutable/chunks/{Bid9Ap_k.js → BB0aq9c_.js} +1 -1
  35. package/web/app/immutable/chunks/{DePeyicW.js → BCYRUItZ.js} +4 -4
  36. package/web/app/immutable/chunks/{3dddnXRn.js → BCiyShif.js} +1 -1
  37. package/web/app/immutable/chunks/{D8iiTvej.js → BCu94obu.js} +1 -1
  38. package/web/app/immutable/chunks/{B0g2pl5M.js → BDFJ3z4C.js} +1 -1
  39. package/web/app/immutable/chunks/{TQt9-VB1.js → BDq7EC2K.js} +1 -1
  40. package/web/app/immutable/chunks/{Dq5ZUD1k.js → BEmWnLiC.js} +1 -1
  41. package/web/app/immutable/chunks/{5iZ2wIez.js → BGgB8Pc0.js} +2 -2
  42. package/web/app/immutable/chunks/{qwXhlljn.js → BHwB2t2J.js} +6 -6
  43. package/web/app/immutable/chunks/{GvdVp0-P.js → BIGmpOjZ.js} +1 -1
  44. package/web/app/immutable/chunks/{8C3-mETY.js → BIY56SBV.js} +1 -1
  45. package/web/app/immutable/chunks/{4v_K7VfW.js → BKAT2tIv.js} +1 -1
  46. package/web/app/immutable/chunks/{FyN0A7AV.js → BKVXZiH3.js} +1 -1
  47. package/web/app/immutable/chunks/{FjgX31oc.js → BMfFFxXt.js} +1 -1
  48. package/web/app/immutable/chunks/{BkTmPNF1.js → BOFk1KrL.js} +1 -1
  49. package/web/app/immutable/chunks/{BUjG2l2R.js → BONnxsQv.js} +1 -1
  50. package/web/app/immutable/chunks/{TVTqPTWK.js → BR5lR6Td.js} +1 -1
  51. package/web/app/immutable/chunks/{cIkUUquE.js → BTRxaITj.js} +1 -1
  52. package/web/app/immutable/chunks/{C8IxeNxn.js → BUVaYTVI.js} +1 -1
  53. package/web/app/immutable/chunks/{BEYgNH0C.js → BUqUwu2G.js} +1 -1
  54. package/web/app/immutable/chunks/{iew6AFqX.js → BXGDMgsv.js} +1 -1
  55. package/web/app/immutable/chunks/{BkebGjs2.js → BY3DTY8F.js} +1 -1
  56. package/web/app/immutable/chunks/{CMIvYuSx.js → BY3Ptqbg.js} +1 -1
  57. package/web/app/immutable/chunks/{BW-6dkur.js → BYr8MV2A.js} +1 -1
  58. package/web/app/immutable/chunks/BZXl3la6.js +1 -0
  59. package/web/app/immutable/chunks/{Bta6aHrh.js → B_IE7AMR.js} +1 -1
  60. package/web/app/immutable/chunks/{BBHMDA7t.js → B_Ngo80M.js} +1 -1
  61. package/web/app/immutable/chunks/{C3eAseNm.js → BaWkgFPr.js} +1 -1
  62. package/web/app/immutable/chunks/Bb7OZuad.js +1 -0
  63. package/web/app/immutable/chunks/{BYPVMH5B.js → BbANJKYX.js} +1 -1
  64. package/web/app/immutable/chunks/{DWpT56xY.js → BdMP-rwq.js} +1 -1
  65. package/web/app/immutable/chunks/BdvBYYZC.js +1 -0
  66. package/web/app/immutable/chunks/{wt74fNt_.js → Bdxsm1jE.js} +1 -1
  67. package/web/app/immutable/chunks/{s3cncl0S.js → Be5P0JlV.js} +1 -1
  68. package/web/app/immutable/chunks/{CtmPq_C5.js → BfbDGmVv.js} +1 -1
  69. package/web/app/immutable/chunks/{BXIUuYhE.js → Bg8XhRuy.js} +1 -1
  70. package/web/app/immutable/chunks/{Bk7TZMmK.js → BgX6IJDk.js} +1 -1
  71. package/web/app/immutable/chunks/{CXSfGSsj.js → BhBL2il-.js} +1 -1
  72. package/web/app/immutable/chunks/{T5eAJQ5P.js → BhIrT2jr.js} +2 -2
  73. package/web/app/immutable/chunks/{BFt420O2.js → BhS3zmFy.js} +1 -1
  74. package/web/app/immutable/chunks/{D35akxD1.js → BjFoJgFv.js} +1 -1
  75. package/web/app/immutable/chunks/{sVDMg5h2.js → BkBZtLYF.js} +1 -1
  76. package/web/app/immutable/chunks/{BtUIZVIr.js → BkoH1phN.js} +1 -1
  77. package/web/app/immutable/chunks/{DZE6-UEM.js → Bl1K7xmJ.js} +1 -1
  78. package/web/app/immutable/chunks/{CZGA0a1i.js → BlJs0v1V.js} +1 -1
  79. package/web/app/immutable/chunks/{DEtTxbeY.js → Bluyq349.js} +1 -1
  80. package/web/app/immutable/chunks/{BRBPzczh.js → BmIqWliN.js} +1 -1
  81. package/web/app/immutable/chunks/{xFzmjbnd.js → BmnDHgDT.js} +1 -1
  82. package/web/app/immutable/chunks/{P5FoRduB.js → Bn4hj7HG.js} +1 -1
  83. package/web/app/immutable/chunks/{pQkRApuV.js → BnDVzHAF.js} +1 -1
  84. package/web/app/immutable/chunks/{GQGPhDcr.js → BnT9q9y-.js} +1 -1
  85. package/web/app/immutable/chunks/{mQEU-N_p.js → BqRJyrRC.js} +1 -1
  86. package/web/app/immutable/chunks/{Bg6ucgGL.js → Bqoyy9yx.js} +1 -1
  87. package/web/app/immutable/chunks/{BLhskmrd.js → BrVO-2UU.js} +1 -1
  88. package/web/app/immutable/chunks/{kU2gMO6Q.js → BsKoK3Rk.js} +1 -1
  89. package/web/app/immutable/chunks/{DWpX6Caf.js → BsNGkCax.js} +1 -1
  90. package/web/app/immutable/chunks/{BkfH-kwC.js → Bth7_IHu.js} +1 -1
  91. package/web/app/immutable/chunks/{DNezUHSG.js → Bwh6J9sG.js} +1 -1
  92. package/web/app/immutable/chunks/{BFkNTtC8.js → BwixslcF.js} +1 -1
  93. package/web/app/immutable/chunks/{CqyJ9ETw.js → BwqCA_Tg.js} +1 -1
  94. package/web/app/immutable/chunks/{C-LEC-SE.js → BxKmCVSh.js} +1 -1
  95. package/web/app/immutable/chunks/{DVTnkoPz.js → Bxc57npw.js} +1 -1
  96. package/web/app/immutable/chunks/{CycrwEDR.js → Bz08MgGK.js} +1 -1
  97. package/web/app/immutable/chunks/{BYknlOpg.js → C4Zcz5ig.js} +1 -1
  98. package/web/app/immutable/chunks/{CceoWbVF.js → C4lY6YLh.js} +1 -1
  99. package/web/app/immutable/chunks/{BdRm71a6.js → C563feV7.js} +1 -1
  100. package/web/app/immutable/chunks/{DfcEE8cz.js → C5E1PJb6.js} +2 -2
  101. package/web/app/immutable/chunks/{BWTPBBe6.js → C5RdKv5y.js} +1 -1
  102. package/web/app/immutable/chunks/{B-2t8jo3.js → C5Xi5eLp.js} +3 -3
  103. package/web/app/immutable/chunks/{CnVZjzuN.js → C68FzyYL.js} +1 -1
  104. package/web/app/immutable/chunks/{DhsW4MRu.js → C6RQmr0V.js} +1 -1
  105. package/web/app/immutable/chunks/{DUaZ1qia.js → C8sY1PbT.js} +1 -1
  106. package/web/app/immutable/chunks/{DXOtvPd1.js → C9129WmZ.js} +3 -3
  107. package/web/app/immutable/chunks/{BiD-G4M2.js → C9WpfWq_.js} +1 -1
  108. package/web/app/immutable/chunks/{B3fObOE3.js → C9g8CU4z.js} +1 -1
  109. package/web/app/immutable/chunks/{DFTQjdyb.js → CC-oK8xP.js} +2 -2
  110. package/web/app/immutable/chunks/{Cu2WCtWO.js → CD4CbF09.js} +1 -1
  111. package/web/app/immutable/chunks/{C4TS3VfR.js → CDuyWy4D.js} +1 -1
  112. package/web/app/immutable/chunks/{CgGTNk2L.js → CEiokx4X.js} +1 -1
  113. package/web/app/immutable/chunks/{CcaZ2B1J.js → CG-WEY6g.js} +1 -1
  114. package/web/app/immutable/chunks/{DYXED2G4.js → CHdmzkZm.js} +1 -1
  115. package/web/app/immutable/chunks/{CxHjI2Tg.js → CHtCNHFI.js} +1 -1
  116. package/web/app/immutable/chunks/{BUEprNJA.js → CJKeXT5H.js} +1 -1
  117. package/web/app/immutable/chunks/{B5TmUe1P.js → CJPP3n_b.js} +1 -1
  118. package/web/app/immutable/chunks/{sWXcWDw4.js → CJlBFmXK.js} +1 -1
  119. package/web/app/immutable/chunks/{BQmmLJ-E.js → CJvhopKt.js} +1 -1
  120. package/web/app/immutable/chunks/{mmA_Vmgh.js → CM-RTisq.js} +1 -1
  121. package/web/app/immutable/chunks/{2f-mANfy.js → CMieQf0P.js} +1 -1
  122. package/web/app/immutable/chunks/{-mncWYX6.js → CN1yc9sw.js} +1 -1
  123. package/web/app/immutable/chunks/{B64r-cFw.js → CN6UuCI4.js} +2 -2
  124. package/web/app/immutable/chunks/{qotowrm5.js → CNG6DDdt.js} +1 -1
  125. package/web/app/immutable/chunks/COCO5InB.js +1 -0
  126. package/web/app/immutable/chunks/{nwQDW4ZF.js → CPozPG26.js} +1 -1
  127. package/web/app/immutable/chunks/{9wyxCCG6.js → CQ8xUw8b.js} +1 -1
  128. package/web/app/immutable/chunks/{rcI9zJfc.js → CQlclm_i.js} +1 -1
  129. package/web/app/immutable/chunks/{BAtx4AAq.js → CTeTIheq.js} +1 -1
  130. package/web/app/immutable/chunks/{BCjCkpDT.js → CU9uaZDq.js} +1 -1
  131. package/web/app/immutable/chunks/{MMvgNBCX.js → CUBHTDNB.js} +3 -3
  132. package/web/app/immutable/chunks/{Bjn521ze.js → CVdwaaxP.js} +1 -1
  133. package/web/app/immutable/chunks/{DYBtbu7w.js → CZ9zPpOW.js} +1 -1
  134. package/web/app/immutable/chunks/{BEvgfoZ-.js → CaJjlkv1.js} +1 -1
  135. package/web/app/immutable/chunks/{cEXqcy6U.js → CaQ_vubD.js} +1 -1
  136. package/web/app/immutable/chunks/{dcub9TKu.js → CbQJkQ1_.js} +2 -2
  137. package/web/app/immutable/chunks/{CN-kAG5x.js → Cbe4LDCb.js} +1 -1
  138. package/web/app/immutable/chunks/{D7UERhiU.js → Cc8gV_FE.js} +1 -1
  139. package/web/app/immutable/chunks/{BJwpOHaV.js → CcDZ8sih.js} +4 -4
  140. package/web/app/immutable/chunks/{D9G_-pix.js → CcFGFqFC.js} +1 -1
  141. package/web/app/immutable/chunks/{C26VZzf0.js → Ccs3PzsG.js} +1 -1
  142. package/web/app/immutable/chunks/{pXKV3Ovh.js → CdEtW7wp.js} +1 -1
  143. package/web/app/immutable/chunks/{1mVnOdok.js → Cdhgfy6h.js} +1 -1
  144. package/web/app/immutable/chunks/{BfSDVDFf.js → Cdv2uRTZ.js} +1 -1
  145. package/web/app/immutable/chunks/{CkcASLw0.js → CeHlFtmN.js} +1 -1
  146. package/web/app/immutable/chunks/{D6uvKkqf.js → Cf1Jz9Vb.js} +1 -1
  147. package/web/app/immutable/chunks/{PWIIayd8.js → CfHaLL96.js} +1 -1
  148. package/web/app/immutable/chunks/{CS2qFATq.js → CfWtYm2O.js} +1 -1
  149. package/web/app/immutable/chunks/{CVEOLYKd.js → Cg71xtru.js} +1 -1
  150. package/web/app/immutable/chunks/{B0aENl7q.js → CgOfeXf8.js} +1 -1
  151. package/web/app/immutable/chunks/{A4DSFNiI.js → Ch5dX3SV.js} +1 -1
  152. package/web/app/immutable/chunks/{Dddo5_Ke.js → ChAC9BWJ.js} +1 -1
  153. package/web/app/immutable/chunks/{CudTayzY.js → ChMhvUux.js} +1 -1
  154. package/web/app/immutable/chunks/{DhhoUiRS.js → ChOA9PWi.js} +1 -1
  155. package/web/app/immutable/chunks/{BZ30EcZ0.js → Cic3Ymv4.js} +2 -2
  156. package/web/app/immutable/chunks/{DZSJnoMv.js → CjOA3fQ_.js} +1 -1
  157. package/web/app/immutable/chunks/{DoWd6zTc.js → CjOWZNUy.js} +1 -1
  158. package/web/app/immutable/chunks/{DYULb8CZ.js → CjVTzfqV.js} +1 -1
  159. package/web/app/immutable/chunks/{Cfcj1NKt.js → Ck11Hn8r.js} +1 -1
  160. package/web/app/immutable/chunks/{k5E4VfsL.js → CkcF_YO7.js} +1 -1
  161. package/web/app/immutable/chunks/{CYFUPy7X.js → CkjuLrGS.js} +1 -1
  162. package/web/app/immutable/chunks/{CyzhlhuH.js → ClYVhnOY.js} +1 -1
  163. package/web/app/immutable/chunks/{XQQW-aBJ.js → CnT2T-Bp.js} +5 -5
  164. package/web/app/immutable/chunks/{D-LYQeQ-.js → Co4sbmfD.js} +1 -1
  165. package/web/app/immutable/chunks/{DNZoksq4.js → CpWqDujk.js} +1 -1
  166. package/web/app/immutable/chunks/{CDoCDg8h.js → CqwbuddS.js} +1 -1
  167. package/web/app/immutable/chunks/{CIGHesQj.js → Crs9I2MT.js} +1 -1
  168. package/web/app/immutable/chunks/{Bw242gnT.js → Ct7iVnk5.js} +2 -2
  169. package/web/app/immutable/chunks/{Uh-UE9wM.js → CuR0GGFl.js} +1 -1
  170. package/web/app/immutable/chunks/{D4D7HYnP.js → CusMGTEg.js} +1 -1
  171. package/web/app/immutable/chunks/{BwKyFgJw.js → Cv6pFp-w.js} +1 -1
  172. package/web/app/immutable/chunks/{BTVL8u-m.js → CvodOZsR.js} +1 -1
  173. package/web/app/immutable/chunks/{DSoE1eag.js → Cx4f7t9d.js} +1 -1
  174. package/web/app/immutable/chunks/{l3kSG7UR.js → CyFrvxU5.js} +1 -1
  175. package/web/app/immutable/chunks/{Cm31fs63.js → CzK2fiHA.js} +1 -1
  176. package/web/app/immutable/chunks/{DTQY9iaC.js → D4uZwrDX.js} +1 -1
  177. package/web/app/immutable/chunks/{-l75u76-.js → D61mreVc.js} +1 -1
  178. package/web/app/immutable/chunks/{C90DpsQf.js → D62E6eA-.js} +1 -1
  179. package/web/app/immutable/chunks/{1-LmC8OR.js → D6eVIgjz.js} +1 -1
  180. package/web/app/immutable/chunks/{vYvFppOt.js → D7y4iPD0.js} +1 -1
  181. package/web/app/immutable/chunks/{C2rCMMRE.js → D9PvMI-Y.js} +1 -1
  182. package/web/app/immutable/chunks/{CcGTVp4j.js → D9qYrFLr.js} +1 -1
  183. package/web/app/immutable/chunks/{BVwxU13Q.js → DAPK9slU.js} +1 -1
  184. package/web/app/immutable/chunks/{CEer-6aX.js → DES0UXLU.js} +1 -1
  185. package/web/app/immutable/chunks/{CVYO3MCe.js → DGWxO_aL.js} +1 -1
  186. package/web/app/immutable/chunks/{BCf7gamQ.js → DHLYr2dR.js} +1 -1
  187. package/web/app/immutable/chunks/{B2LtcN3l.js → DJeS0Z6Z.js} +1 -1
  188. package/web/app/immutable/chunks/{D1MW0p1M.js → DJu_D7ND.js} +1 -1
  189. package/web/app/immutable/chunks/{lim2zDE2.js → DKnyYiOE.js} +1 -1
  190. package/web/app/immutable/chunks/{Dm9qsstx.js → DLOFCVO4.js} +1 -1
  191. package/web/app/immutable/chunks/{C7vqbdEX.js → DLa8qMgT.js} +1 -1
  192. package/web/app/immutable/chunks/{CVJBvnUl.js → DM4MRAyE.js} +1 -1
  193. package/web/app/immutable/chunks/{J1lXFz2y.js → DMtDzgot.js} +1 -1
  194. package/web/app/immutable/chunks/{CH5AyPs4.js → DNOilvOO.js} +3 -3
  195. package/web/app/immutable/chunks/{L8dUuijD.js → DQPsLJmj.js} +1 -1
  196. package/web/app/immutable/chunks/{Dk3HtdKK.js → DQprfQGN.js} +1 -1
  197. package/web/app/immutable/chunks/{CsPxG6yF.js → DROi8p_h.js} +1 -1
  198. package/web/app/immutable/chunks/{CsfuOIv6.js → DRt6izFN.js} +1 -1
  199. package/web/app/immutable/chunks/{NmSV7YqY.js → DU5u4CoB.js} +7 -7
  200. package/web/app/immutable/chunks/{DgqWupib.js → DUT4V6mb.js} +1 -1
  201. package/web/app/immutable/chunks/{Wv2toTdr.js → DWvbS4mu.js} +1 -1
  202. package/web/app/immutable/chunks/{BKgY2Jl-.js → DZ2EweHv.js} +1 -1
  203. package/web/app/immutable/chunks/{DRtAK_Ho.js → DaJca0wp.js} +1 -1
  204. package/web/app/immutable/chunks/{ljKTvebC.js → DcOGngFl.js} +1 -1
  205. package/web/app/immutable/chunks/{BRmWK7rc.js → Dck4Okga.js} +1 -1
  206. package/web/app/immutable/chunks/{CXdnEYDZ.js → DdZVLxLI.js} +1 -1
  207. package/web/app/immutable/chunks/{CrZPmKc1.js → De60mY1u.js} +1 -1
  208. package/web/app/immutable/chunks/{BDXMuX2f.js → DeD2_APR.js} +1 -1
  209. package/web/app/immutable/chunks/{Clb8R8dA.js → DeMWATch.js} +1 -1
  210. package/web/app/immutable/chunks/{DmAxjKP5.js → Dh52so4o.js} +3 -3
  211. package/web/app/immutable/chunks/{CSfGawHT.js → DiBTM3GP.js} +1 -1
  212. package/web/app/immutable/chunks/{Chnt0cvp.js → Dj9OdxPP.js} +1 -1
  213. package/web/app/immutable/chunks/{COeVbqbN.js → DjZWf4AT.js} +1 -1
  214. package/web/app/immutable/chunks/{B1a4c2h3.js → DoIwXvY5.js} +1 -1
  215. package/web/app/immutable/chunks/{BLArCgFy.js → DoLFtAtL.js} +1 -1
  216. package/web/app/immutable/chunks/{BwtTootF.js → DotyRxfG.js} +1 -1
  217. package/web/app/immutable/chunks/{ER83EupQ.js → DqkDKEMV.js} +1 -1
  218. package/web/app/immutable/chunks/{DUfRp1mg.js → DrI7rzCm.js} +1 -1
  219. package/web/app/immutable/chunks/{vi0NVewk.js → Ds-FLOE0.js} +1 -1
  220. package/web/app/immutable/chunks/{BQmBFkiw.js → Du9ULB4g.js} +1 -1
  221. package/web/app/immutable/chunks/{VIKn6Y9i.js → DuXpwSkB.js} +1 -1
  222. package/web/app/immutable/chunks/{DqH66s0-.js → DuzQF9m7.js} +1 -1
  223. package/web/app/immutable/chunks/{DMTaF0AC.js → DvDXb3dW.js} +1 -1
  224. package/web/app/immutable/chunks/{C1wu5rDo.js → Dx5-Ovf5.js} +1 -1
  225. package/web/app/immutable/chunks/{BuFV8TkD.js → Dxitz0gG.js} +1 -1
  226. package/web/app/immutable/chunks/{BagwB5zw.js → DyD06k4V.js} +1 -1
  227. package/web/app/immutable/chunks/{Dfewwg6c.js → DyjYgqtH.js} +1 -1
  228. package/web/app/immutable/chunks/{CL0gVjb2.js → Dz40TuR7.js} +1 -1
  229. package/web/app/immutable/chunks/{Cw00ec7E.js → F7QETuhI.js} +1 -1
  230. package/web/app/immutable/chunks/{01fEyy8F.js → F9nw4iUp.js} +1 -1
  231. package/web/app/immutable/chunks/{DF6DARvQ.js → Fy3QvGgT.js} +1 -1
  232. package/web/app/immutable/chunks/{1WCxedXI.js → HHGL3CBU.js} +1 -1
  233. package/web/app/immutable/chunks/{DJSDIQIJ.js → HjNzRj_q.js} +1 -1
  234. package/web/app/immutable/chunks/{Dtop3Yti.js → JgQtvDnb.js} +1 -1
  235. package/web/app/immutable/chunks/{9Nd0N_p1.js → JktSJt1s.js} +1 -1
  236. package/web/app/immutable/chunks/{B_mtugqw.js → MnYF9HDw.js} +1 -1
  237. package/web/app/immutable/chunks/{Cpe1M7DX.js → O_LhoKyf.js} +1 -1
  238. package/web/app/immutable/chunks/{C6By93LU.js → Ov_SEXEY.js} +1 -1
  239. package/web/app/immutable/chunks/{BkUc1pNC.js → PSWhBTN5.js} +1 -1
  240. package/web/app/immutable/chunks/{SM7MWiSc.js → QLmgzrwQ.js} +3 -3
  241. package/web/app/immutable/chunks/{DUeA5OOE.js → QOLdaLP0.js} +1 -1
  242. package/web/app/immutable/chunks/{Rd061ct8.js → R0wDqNpY.js} +1 -1
  243. package/web/app/immutable/chunks/{BduRIWZD.js → RNQdr-NN.js} +1 -1
  244. package/web/app/immutable/chunks/{6Kld8S57.js → TKnaMJht.js} +1 -1
  245. package/web/app/immutable/chunks/{BaVUClm6.js → TfEFcm0X.js} +1 -1
  246. package/web/app/immutable/chunks/{CZ3ut3WK.js → Uvf94Vit.js} +1 -1
  247. package/web/app/immutable/chunks/{B8s7KBCM.js → Ve0nl1oV.js} +1 -1
  248. package/web/app/immutable/chunks/{Dwnv6yhd.js → VwRqUxpW.js} +1 -1
  249. package/web/app/immutable/chunks/{CqHwkPsK.js → XgTDusK7.js} +1 -1
  250. package/web/app/immutable/chunks/{7jbSOAGl.js → YIljg4QC.js} +1 -1
  251. package/web/app/immutable/chunks/{5DJFYIPd.js → YJJNz-XI.js} +1 -1
  252. package/web/app/immutable/chunks/{C3eR-hfH.js → YNqTfGpO.js} +1 -1
  253. package/web/app/immutable/chunks/{Dvk-zN0g.js → _cwefpRI.js} +1 -1
  254. package/web/app/immutable/chunks/{v2EWEBoe.js → aWlYJ1qq.js} +1 -1
  255. package/web/app/immutable/chunks/{BFuTF0hE.js → b7qEBWdv.js} +1 -1
  256. package/web/app/immutable/chunks/{COK2LnAZ.js → bb6KeZoT.js} +1 -1
  257. package/web/app/immutable/chunks/{CotsFEBP.js → bjkNeafo.js} +1 -1
  258. package/web/app/immutable/chunks/{DONYESbJ.js → cKTNBTNE.js} +1 -1
  259. package/web/app/immutable/chunks/{CXzKXnDy.js → fqvfvcmd.js} +1 -1
  260. package/web/app/immutable/chunks/{BHDV7xy2.js → fsCYHFC5.js} +1 -1
  261. package/web/app/immutable/chunks/{DpuMOKOv.js → gn8kmMF6.js} +1 -1
  262. package/web/app/immutable/chunks/{BOB0swWW.js → hMX_6Iel.js} +1 -1
  263. package/web/app/immutable/chunks/{BGhKPfZ3.js → hTe-_Fjh.js} +3 -3
  264. package/web/app/immutable/chunks/{Do_iEIAT.js → kZqyWeDw.js} +1 -1
  265. package/web/app/immutable/chunks/{Cui74L_P.js → kpgdVhmB.js} +1 -1
  266. package/web/app/immutable/chunks/{CtXdddI-.js → l6-BV5ui.js} +2 -2
  267. package/web/app/immutable/chunks/{2OgS95T-.js → l9lbU6dU.js} +1 -1
  268. package/web/app/immutable/chunks/{DvAGFDsv.js → lN-utS8K.js} +1 -1
  269. package/web/app/immutable/chunks/{CiYbcJbc.js → laFenviK.js} +3 -3
  270. package/web/app/immutable/chunks/{ftWd1Zjf.js → mfJalPj6.js} +1 -1
  271. package/web/app/immutable/chunks/{Dv6Z2vIg.js → nvAK9EyO.js} +1 -1
  272. package/web/app/immutable/chunks/{C7UskoEr.js → oALOmsvi.js} +1 -1
  273. package/web/app/immutable/chunks/{A1TIfmo0.js → oTkHTTGI.js} +1 -1
  274. package/web/app/immutable/chunks/{Dlte6bLv.js → p20Ma5Ub.js} +1 -1
  275. package/web/app/immutable/chunks/{BtL5iOJF.js → pUHkzJ_d.js} +1 -1
  276. package/web/app/immutable/chunks/{BeqotHvt.js → ppWvCL4x.js} +1 -1
  277. package/web/app/immutable/chunks/{DDs_vRW4.js → pqiENG4w.js} +1 -1
  278. package/web/app/immutable/chunks/{Do7s1OwN.js → qk0mFpjO.js} +1 -1
  279. package/web/app/immutable/chunks/{jJz6_yuW.js → qsyNpi2_.js} +1 -1
  280. package/web/app/immutable/chunks/{Csj4pbMB.js → ulh-TYZ7.js} +1 -1
  281. package/web/app/immutable/chunks/{BXvjzr5P.js → vkDSSzeI.js} +1 -1
  282. package/web/app/immutable/chunks/{Dkbmzx7H.js → wGTbEzRg.js} +1 -1
  283. package/web/app/immutable/chunks/{_JxqnZOZ.js → xpCT4rnW.js} +1 -1
  284. package/web/app/immutable/chunks/{BNjffeJ6.js → ykvYWYIa.js} +1 -1
  285. package/web/app/immutable/chunks/{CiBXoTtR.js → zln0bEou.js} +1 -1
  286. package/web/app/immutable/entry/{app.Zrn5tWMU.js → app.BvKW_t2N.js} +3 -3
  287. package/web/app/immutable/entry/start.CQ7TZDH6.js +1 -0
  288. package/web/app/immutable/nodes/{0.BM7pEWx2.js → 0.BYMSP7Y-.js} +1 -1
  289. package/web/app/immutable/nodes/{1.JktrP7d9.js → 1.DIEji4Js.js} +1 -1
  290. package/web/app/immutable/nodes/{10.OPA46CBe.js → 10.DvTvrgji.js} +1 -1
  291. package/web/app/immutable/nodes/{11.AhtS-9g0.js → 11.UFQkf3wv.js} +1 -1
  292. package/web/app/immutable/nodes/{12.B7HQKMa-.js → 12.6a9ttQ9E.js} +1 -1
  293. package/web/app/immutable/nodes/{13.DPi0S1C2.js → 13.ghIWnT0h.js} +3 -3
  294. package/web/app/immutable/nodes/{14.DDlmGd9K.js → 14.CJs3OY3_.js} +1 -1
  295. package/web/app/immutable/nodes/{15.DU5PqzuZ.js → 15.ChCFmxtt.js} +1 -1
  296. package/web/app/immutable/nodes/{16.BwB-evW2.js → 16.DsO7YO_c.js} +2 -2
  297. package/web/app/immutable/nodes/{2.B-ceEPTc.js → 2.Cht0dQl2.js} +4 -4
  298. package/web/app/immutable/nodes/{3.B9VaWul3.js → 3.BGeidrSE.js} +1 -1
  299. package/web/app/immutable/nodes/{4.DerjOzjZ.js → 4.iguZO2rl.js} +1 -1
  300. package/web/app/immutable/nodes/{5.CW5Igcd8.js → 5.BppWO1IB.js} +1 -1
  301. package/web/app/immutable/nodes/{6.BDW6GbUk.js → 6.ChXOvT3x.js} +1 -1
  302. package/web/app/immutable/nodes/{7.hNduPSer.js → 7.CgsIeK3J.js} +1 -1
  303. package/web/app/immutable/nodes/{8.C6RbAqlx.js → 8.Bq2NzD4c.js} +4 -4
  304. package/web/app/immutable/nodes/{9.ExPUFxzp.js → 9.CvEBRJEV.js} +16 -16
  305. package/web/app/version.json +1 -1
  306. package/web/generated/paraglide.js +45 -45
  307. package/web/index.html +18 -18
  308. package/web/app/immutable/chunks/By1GAIbK.js +0 -1
  309. package/web/app/immutable/chunks/CNHLe0qt.js +0 -1
  310. package/web/app/immutable/chunks/DBUIDXRy.js +0 -1
  311. package/web/app/immutable/chunks/DQh9HtzB.js +0 -1
  312. package/web/app/immutable/entry/start.CVgJF78D.js +0 -1
@@ -1,136 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BUjG2l2R.js","/app/immutable/chunks/BQmmLJ-E.js","/app/immutable/chunks/CNHLe0qt.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/CIGHesQj.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/B-2t8jo3.js","/app/immutable/chunks/BRmWK7rc.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/C7UskoEr.js","/app/immutable/chunks/1mVnOdok.js","/app/immutable/chunks/CMIvYuSx.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Bg6ucgGL.js","/app/immutable/chunks/CZGA0a1i.js","/app/immutable/chunks/D35akxD1.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/TQt9-VB1.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css"])))=>i.map(i=>d[i]);
2
- var ae=Object.defineProperty;var ne=(e,t,r)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ne(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./D1MW0p1M.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./C1wu5rDo.js";import{bo as n,_ as le}from"./CNHLe0qt.js";import{G2 as a,mv as y,mu as m,l0 as de,w9 as R,wa as N,w7 as ue,w8 as pe,q1 as Y,vW as fe,FQ as he,a2 as ge,bR as me,bQ as ve,c3 as be,c2 as Se,mx as _}from"./D35akxD1.js";import{cr as we,bs as ye,c4 as _e,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as K,av as Te,bO as Ae,cH as Ie}from"./DgqWupib.js";import{n as Pe}from"./Bw242gnT.js";import{ak as Me,F as Q,j as De,G as Oe,bv as xe,c as Fe,al as Ne,bg as W,_ as Le,aB as Ue,q as $,K as Ve,ag as We,bl as He,J as Be,H as qe,I as je,bj as Ge}from"./C8IxeNxn.js";import{r as ze}from"./cEXqcy6U.js";const O=V("Clipboard");async function Er(e){let t;if(oe())try{const r=await ce("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,O.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw O.error("Browser clipboard write failed",r,{electronError:t}),r}throw O.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Ye=a.createSelector(e=>e.githubAuth.mutationRequestId),Ke=a.createSelector(e=>e.githubAuth.callbacksCancelled),Qe=a.createSelector(e=>e.githubAuth.isDisconnecting),Z=a.createSelector(e=>e.githubAuth.isAuthenticated),$e=a.createSelector(e=>e.githubAuth.statusSettled===!0),Ze=a.createSelector(e=>e.githubAuth.requiresDaemonAuth),Je=a.createSelector(e=>e.githubAuth.user),Xe=a.createSelector(e=>e.githubAuth.isAuthenticating),et=a.createSelector(e=>e.githubAuth.deviceFlow),tt=a.createSelector(e=>e.githubAuth.error),Rr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Ke,selectGitHubAuthDeviceFlow:et,selectGitHubAuthError:tt,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:Xe,selectGitHubAuthIsDisconnecting:Qe,selectGitHubAuthMutationRequestId:Ye,selectGitHubAuthRequiresDaemonAuth:Ze,selectGitHubAuthStatusSettled:$e,selectGitHubAuthUser:Je},Symbol.toStringTag,{value:"Module"})),rt=V("WorkspaceValidation");async function Cr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_repoPathRequired_error(),suggestion:n.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return st(s)?at(s):nt(s,t,r)}function st(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function it(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function at(e){return it(e)?{valid:!0,warning:n.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:n.workspace_validation_invalidGithubUrl_error(),suggestion:n.workspace_validation_invalidGithubUrl_suggestion()}}async function nt(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:n.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:n.workspace_validation_pathNotAbsolute_error(),suggestion:n.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:n.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:n.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:n.workspace_validation_notDirectory_error(),suggestion:n.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?n.workspace_repoSelector_notGitRepository_label():n.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:n.workspace_validation_nonGitInit_warning()}}catch(s){if(rt.warn("Could not validate path existence",s),!t)return{valid:!1,error:n.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Tr(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchPrefixInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:n.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:n.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:n.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Ar(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Ir(e){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchNameInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:n.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:n.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchNameLock_error()}:{valid:!0}}function Pr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:n.workspace_validation_promptTooLong_error(),suggestion:n.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Mr(e){const t=e.toLowerCase();return t.includes("maxbuffer")?n.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?n.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?n.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?n.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?n.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?n.workspace_gitError_cloneAuth():n.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?n.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?n.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_readPermission():e:t.includes("permission denied")?n.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?n.workspace_gitError_notFound():t.includes("already exists")?n.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?n.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:n.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?n.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?n.workspace_gitError_diskSpace():e}const b=[{id:"spec-writer",role:"orchestrator",teamAgents:["implementor","verifier"],icon:"coordinator",get name(){return n.specialists_builtin_coordinator_name()},get description(){return n.specialists_builtin_coordinator_description()},defaultBehaviorPrompt:`## Coordinator
3
-
4
- You plan, delegate, and verify. You do NOT implement code yourself. You NEVER edit files directly.
5
- **You have no file editing tools available. Delegation to implementor agents is the ONLY way code gets written.**
6
-
7
- ## Hard Rules (CRITICAL)
8
- 1. **NEVER edit code** — You have no file editing tools. Delegate implementation to implementor agents.
9
- 2. **NEVER use checkboxes for tasks** — No \`- [ ]\` lists. Use \`@@@task\` blocks ONLY (see syntax below).
10
- 3. **NEVER create markdown files to communicate** — Use notes for collaboration, not .md files.
11
- 4. **Spec first, always** — Create/update the spec BEFORE any delegation.
12
- 5. **Wait for approval** — Present the plan and STOP. Wait for user approval before delegating.
13
- 6. **Waves + verification** — Delegate a wave, END YOUR TURN, wait for completion, then delegate a verifier agent.
14
- 7. **Rename the workspace (only if untitled)** — If the workspace doesn't already have a custom title, call \`ws.workspace.setTitle("<title>")\` early. Use sentence case, 3-5 words (e.g., "Add dark mode support"). Do NOT rename if it already has a meaningful title.
15
-
16
- ## Workflow (FOLLOW IN ORDER)
17
- 1. **Rename the workspace (if needed)**: If the workspace doesn't already have a custom title, rename it to describe the goal. Skip if it already has a meaningful name.
18
- 2. **Understand**: Ask 1-4 clarifying questions if requirements are unclear
19
- 3. **Spec**: Write the spec using the format below. Put tasks at the TOP.
20
- 4. **STOP**: Present the plan to the user. Say "Please review and approve the plan above."
21
- 5. **Wait**: Do NOT proceed until the user approves
22
- 6. **Delegate**: After approval, delegate Wave 1 with \`ws.agent.delegate({ taskNoteId: "<taskNoteId>", waitMode: "after_all" })\`
23
- 7. **END TURN**: Stop and wait for Wave 1 to complete
24
- 8. **Verify**: Delegate a verifier agent, END TURN, wait for verification
25
- 9. **Repeat**: If issues, fix spec and re-delegate. If good, delegate next wave.
26
- 10. **Verify all**: Once all waves are complete, delegate a verifier agent to check the final result
27
- 11. **Complete**: Update spec with results. Do not remove any task notes.
28
-
29
- ## Spec Format (maintain at top of spec note)
30
- - **Goal**: One sentence, user-visible outcome
31
- - **Tasks**: Use \`@@@task\` blocks (see syntax below)
32
- - **Acceptance Criteria**: Testable checklist (no vague language)
33
- - **Non-goals**: What's explicitly out of scope
34
- - **Assumptions**: Mark uncertain ones with "(confirm?)"
35
- - **Verification Plan**: Commands/tests to run
36
- - **Rollback Plan**: How to revert safely if something goes wrong (if relevant)
37
-
38
- ## Task Syntax (CRITICAL)
39
-
40
- **NEVER use markdown checkboxes** like \`- [ ] Task name\` or \`- [ ] [Link](url)\`. These do NOT create tasks.
41
-
42
- **ALWAYS use \`@@@task\` blocks:**
43
-
44
- @@@task
45
- # Task Title Here
46
- ## Objective
47
- - what this task achieves
48
- ## Scope
49
- - what files/areas are in scope (and what is not)
50
- ## Inputs
51
- - links to relevant notes/spec sections
52
- ## Definition of Done
53
- - specific completion checks
54
- ## Verification
55
- - exact commands or steps the implementor should run
56
- ## Output required
57
- - what to report back via \`ws.agent.reportToParent("<report>")\` (1–3 sentences)
58
- @@@
59
-
60
- **Rules:**
61
- - One \`@@@task\` block per task
62
- - First \`# Heading\` = task title
63
- - Content below = task body
64
- - Auto-converts to Task Note when saved
65
- - **DO NOT edit converted task links** — the system produces \`- [ ] [Title](intent://...)\` format; leave it as-is
66
-
67
- If helpful, you can use groups for distinct phases: **Researching**, **Planning**, **Delegating**.
68
-
69
- `,roleReminder:"You NEVER edit files directly. You have no file editing tools. Do NOT launch processes to edit files (no echo, sed, cat >, etc.). Delegate ALL implementation to Implementor agents. Keep the Spec note up to date — update it when plans change, tasks complete, or decisions are made."},{id:"implementor",role:"internal",icon:"implementor",get name(){return n.specialists_builtin_implementor_name()},get description(){return n.specialists_builtin_implementor_description()},defaultBehaviorPrompt:`## Implementor
70
-
71
- Implement your assigned task — nothing more, nothing less. Produce minimal, clean changes.
72
-
73
- ## Hard Rules
74
- 1. **No scope creep** — only what the task note asks
75
- 2. **No refactors** — ask coordinator for separate task if needed
76
- 3. **Coordinate** — check \`ws.agent.list()\`/\`ws.agent.readConversation("<agentId>", { lastN: 20 })\` (via the \`workspace_api\` tool) to avoid conflicts
77
- 4. **Notes only** — don't create markdown files for collaboration
78
- 5. **Don't delegate** — message coordinator if blocked
79
-
80
- ## Execution
81
- 1. Read spec (acceptance criteria, verification plan)
82
- 2. Read task note (objective, scope, definition of done)
83
- 3. **Preflight conflict check**: Use \`ws.agent.list()\`/\`ws.agent.readConversation("<agentId>", { lastN: 20 })\` (via the \`workspace_api\` tool) to see what others touched. If you expect file overlap, message coordinator immediately.
84
- 4. Implement minimally, following existing patterns
85
- 5. Run verification commands from task note. **If you cannot run them, explicitly say so and why.**
86
- 6. For web UI work with a dev server running, use \`browser_exec\` to test changes (call \`browser_docs\` for API details)
87
- 7. Commit with clear message
88
- 8. Update task note with: what changed, files touched, verification commands run + results
89
-
90
- ## Completion (REQUIRED)
91
- Call \`ws.agent.reportToParent("<report>")\` (via the \`workspace_api\` tool) with 1-3 sentences: what you did, verification run, any risks/follow-ups.`,roleReminder:'Stay within task scope. No refactors, no scope creep. Call `ws.agent.reportToParent("<report>")` when complete.'},{id:"verifier",role:"internal",icon:"verifier",get name(){return n.specialists_builtin_verifier_name()},get description(){return n.specialists_builtin_verifier_description()},defaultBehaviorPrompt:`## Verifier
92
-
93
- Verify work against the spec's Acceptance Criteria. Be evidence-driven — no hand-waving.
94
-
95
- ## Process
96
- 1. Read spec: Goal, Non-goals, Acceptance Criteria, Verification Plan
97
- 2. Collect evidence from task notes, commits, implementor reports
98
- 3. Run tests/commands (state explicitly if you cannot)
99
- 4. Check edge cases: null/empty, errors, concurrency, backwards compat, perf cliffs
100
-
101
- ## Web UI Verification
102
- If verifying a web UI with a dev server running, use \`browser_exec\` to capture diagnostics.
103
- Call \`browser_docs\` first for API details, then:
104
- \`\`\`json
105
- {
106
- "actions": [
107
- { "action": "snapshot", "workspaceId": "verify", "reload": true }
108
- ]
109
- }
110
- // Then use getSummary on the returned dir to check for errors
111
- \`\`\`
112
-
113
- ## Output Format (for each criterion)
114
- - ✅ VERIFIED: evidence (file/behavior/tests)
115
- - ⚠️ DEVIATION: what differs, why it matters, suggested fix
116
- - ❌ MISSING: what's not done, impact, needed task
117
-
118
- Then include:
119
- - **Tests/Commands Run**: exact commands + results
120
- - **Risk Notes**: anything uncertain
121
- - **Recommended Follow-ups**: optional
122
-
123
- ## Requesting Fixes (be surgical)
124
- Message implementor with:
125
- 1. The exact criterion that failed
126
- 2. Evidence/repro steps
127
- 3. The minimum change required
128
- 4. How you will re-verify
129
-
130
- Wait for implementor to complete, then re-verify.
131
-
132
- ## Completion (REQUIRED)
133
- Call \`ws.agent.reportToParent("<report>")\` (via the \`workspace_api\` tool) with: verdict (approved/not approved), tests run, top 1-3 issues or confirmations.`,roleReminder:'Verify against Acceptance Criteria ONLY. Be evidence-driven. Call `ws.agent.reportToParent("<report>")` with your verdict.'},{id:"pr-reviewer",icon:"pr-reviewer",get name(){return n.specialists_builtin_prReviewer_name()},get description(){return n.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:`# Role
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BONnxsQv.js","/app/immutable/chunks/CJvhopKt.js","/app/immutable/chunks/COCO5InB.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/Crs9I2MT.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C5Xi5eLp.js","/app/immutable/chunks/Dck4Okga.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/oALOmsvi.js","/app/immutable/chunks/Cdhgfy6h.js","/app/immutable/chunks/BY3Ptqbg.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Bqoyy9yx.js","/app/immutable/chunks/BlJs0v1V.js","/app/immutable/chunks/BjFoJgFv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/BDq7EC2K.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css"])))=>i.map(i=>d[i]);
2
+ var ne=Object.defineProperty;var ae=(e,t,r)=>t in e?ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ae(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./DJu_D7ND.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./Dx5-Ovf5.js";import{bo as a,_ as le}from"./COCO5InB.js";import{G2 as n,mv as _,mu as m,l0 as de,w9 as R,wa as L,w7 as ue,w8 as pe,q1 as K,vW as fe,FQ as he,a2 as ge,bR as me,bQ as be,c3 as ve,c2 as Se,mx as w}from"./BjFoJgFv.js";import{cr as ye,bs as _e,c4 as we,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as Q,av as Ae,bO as Me,cH as Pe}from"./DUT4V6mb.js";import{n as Te}from"./Ct7iVnk5.js";import{ak as Ie,F as Y,j as De,G as xe,bv as Fe,c as Oe,al as Le,bg as H,_ as Ue,aB as Ne,q as $,K as Ve,ag as He,bl as We,J as qe,H as Be,I as je,bj as Ge}from"./BUVaYTVI.js";import{r as ze}from"./CaQ_vubD.js";const x=V("Clipboard");async function Er(e){let t;if(oe())try{const r=await ce("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,x.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw x.error("Browser clipboard write failed",r,{electronError:t}),r}throw x.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Ke=n.createSelector(e=>e.githubAuth.mutationRequestId),Qe=n.createSelector(e=>e.githubAuth.callbacksCancelled),Ye=n.createSelector(e=>e.githubAuth.isDisconnecting),Z=n.createSelector(e=>e.githubAuth.isAuthenticated),$e=n.createSelector(e=>e.githubAuth.statusSettled===!0),Ze=n.createSelector(e=>e.githubAuth.requiresDaemonAuth),Je=n.createSelector(e=>e.githubAuth.user),Xe=n.createSelector(e=>e.githubAuth.isAuthenticating),et=n.createSelector(e=>e.githubAuth.deviceFlow),tt=n.createSelector(e=>e.githubAuth.error),Rr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Qe,selectGitHubAuthDeviceFlow:et,selectGitHubAuthError:tt,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:Xe,selectGitHubAuthIsDisconnecting:Ye,selectGitHubAuthMutationRequestId:Ke,selectGitHubAuthRequiresDaemonAuth:Ze,selectGitHubAuthStatusSettled:$e,selectGitHubAuthUser:Je},Symbol.toStringTag,{value:"Module"})),rt=V("WorkspaceValidation");async function Cr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_repoPathRequired_error(),suggestion:a.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return st(s)?nt(s):at(s,t,r)}function st(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function it(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function nt(e){return it(e)?{valid:!0,warning:a.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:a.workspace_validation_invalidGithubUrl_error(),suggestion:a.workspace_validation_invalidGithubUrl_suggestion()}}async function at(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:a.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:a.workspace_validation_pathNotAbsolute_error(),suggestion:a.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:a.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:a.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:a.workspace_validation_notDirectory_error(),suggestion:a.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:a.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:a.workspace_validation_dirNotExist_error(),suggestion:a.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?a.workspace_repoSelector_notGitRepository_label():a.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:a.workspace_validation_nonGitInit_warning()}}catch(s){if(rt.warn("Could not validate path existence",s),!t)return{valid:!1,error:a.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Ar(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchPrefixInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:a.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:a.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:a.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Mr(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Pr(e){if(!e||e.trim().length===0)return{valid:!1,error:a.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:a.workspace_validation_branchNameInvalidChars_error(),suggestion:a.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:a.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:a.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:a.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:a.workspace_validation_branchNameLock_error()}:{valid:!0}}function Tr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:a.workspace_validation_promptTooLong_error(),suggestion:a.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Ir(e){const t=e.toLowerCase();return t.includes("maxbuffer")?a.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?a.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?a.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?a.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?a.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?a.workspace_gitError_cloneAuth():a.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?a.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?a.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?a.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?a.workspace_gitError_readPermission():e:t.includes("permission denied")?a.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?a.workspace_gitError_notFound():t.includes("already exists")?a.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?a.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:a.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?a.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?a.workspace_gitError_diskSpace():e}const v=[{id:"pr-reviewer",icon:"pr-reviewer",get name(){return a.specialists_builtin_prReviewer_name()},get description(){return a.specialists_builtin_prReviewer_description()},defaultBehaviorPrompt:`# Role
134
3
  You are a PR review specialist conducting a code review for a pull request.
135
4
 
136
5
  # Objectives
@@ -203,13 +72,13 @@ If no issues found, write "✅ Approved" with no task notes.
203
72
 
204
73
  # Delegation
205
74
  - Do NOT make code changes yourself
206
- - If fixes are needed, delegate to an Implementor agent
207
- - After changes, delegate to a Verifier agent
75
+ - If fixes are needed, delegate to a general agent without specifying a specialist
76
+ - Review the fixes and reuse relevant check results before reporting the outcome
208
77
 
209
78
  # Summary
210
79
  - Gather context before forming suggestions
211
80
  - Post zero comments if no high-confidence issues found
212
- - **PRIORITIZE LESS NOISE over completeness**`,roleReminder:"HIGH CONFIDENCE issues only. Do NOT make changes yourself - delegate fixes to an Implementor."},{id:"ui-designer",icon:"ui-designer",get name(){return n.specialists_builtin_uiDesigner_name()},get description(){return n.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:`## UI Designer
81
+ - **PRIORITIZE LESS NOISE over completeness**`,roleReminder:"HIGH CONFIDENCE issues only. Do NOT make changes yourself - delegate fixes to a general agent."},{id:"ui-designer",icon:"ui-designer",get name(){return a.specialists_builtin_uiDesigner_name()},get description(){return a.specialists_builtin_uiDesigner_description()},defaultBehaviorPrompt:`## UI Designer
213
82
 
214
83
  You create elegant, accessible, production-ready user interfaces. You write code that is beautiful, functional, and follows the project's established patterns.
215
84
 
@@ -313,7 +182,7 @@ Before delivering, verify:
313
182
  - [ ] No conflicting design systems introduced
314
183
 
315
184
  ## Completion (REQUIRED)
316
- Call \`ws.agent.reportToParent("<report>")\` (via the \`workspace_api\` tool) with: summary of UI created, accessibility verification status, any design decisions or tradeoffs made.`,roleReminder:"Accessibility is non-negotiable: WCAG AA contrast, visible focus states, semantic HTML. Use project's existing design tokens. Check all interactive states."},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return n.specialists_builtin_vulnerabilityScanner_name()},get description(){return n.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:`## Vulnerability Scanner
185
+ Call \`ws.agent.reportToParent("<report>")\` (via the \`workspace_api\` tool) with: summary of UI created, accessibility verification status, any design decisions or tradeoffs made.`,roleReminder:"Accessibility is non-negotiable: WCAG AA contrast, visible focus states, semantic HTML. Use project's existing design tokens. Check all interactive states."},{id:"vulnerability-scanner",icon:"pr-reviewer",get name(){return a.specialists_builtin_vulnerabilityScanner_name()},get description(){return a.specialists_builtin_vulnerabilityScanner_description()},defaultBehaviorPrompt:`## Vulnerability Scanner
317
186
 
318
187
  You find real, exploitable security vulnerabilities in code. You read code methodically, trace data flows from attacker-controlled inputs to dangerous operations, and report only findings you can back with a concrete exploit chain.
319
188
 
@@ -482,44 +351,63 @@ After saving the report note, complete the applicable step:
482
351
  - **Top-level agent**: Summarize the findings directly to the user in your final response. Do not call \`ws.agent.reportToParent\`, which is available only to delegated agents.
483
352
 
484
353
  Do NOT call any other tools after completing the applicable step.
485
- `},{id:"developer",icon:"verifier",get name(){return n.specialists_builtin_developer_name()},get description(){return n.specialists_builtin_developer_description()},defaultBehaviorPrompt:`## Developer
486
-
487
- You plan and implement. You write specs first, then implement the work yourself after approval. No delegation, no sub-agents.
488
-
489
- ## Hard Rules (CRITICAL)
490
- 1. **Spec first, always** — Create/update the spec BEFORE any implementation.
491
- 2. **Wait for approval** — Present the plan and STOP. Wait for user approval before implementing.
492
- 3. **NEVER use checkboxes for tasks** — No \`- [ ]\` lists. Use \`@@@task\` blocks ONLY.
493
- 4. **No delegation** — Never call \`ws.agent.delegate\` or \`ws.agent.create\`. You do all the work yourself.
494
- 5. **No scope creep** — Implement only what the approved spec says. If you discover more work, update the spec and re-confirm.
495
- 6. **Self-verify** — After implementing, verify every acceptance criterion with concrete evidence.
496
- 7. **Rename the workspace** — Call \`ws.workspace.setTitle("<title>")\` early. Sentence case, 3-5 words.
497
- 8. **Notes, not files** — Use notes for plans and reports. Don't create .md files in the repo for this.
498
-
499
- ## Workflow (FOLLOW IN ORDER)
500
- 1. **Rename**: \`ws.workspace.setTitle("...")\`
501
- 2. **Understand**: Ask 1-4 clarifying questions if ambiguous. Skip if straightforward.
502
- 3. **Research**: Use \`codebase-retrieval\` and \`view\` to understand the code you'll change.
503
- 4. **Spec**: Write spec in the Spec note (\`ws.note.setContent("spec", ...)\`). Use \`@@@task\` blocks for tasks — they auto-convert to trackable Task Notes. Split work into tasks with isolated scopes.
504
- 5. **STOP**: Say "Please review and approve the plan above." Do NOT proceed.
505
- 6. **Wait**: Do NOT write code until user explicitly approves.
506
- 7. **Start task**: Update Task Note status to "in_progress": \`ws.task.updateNoteStatus("<taskNoteId>", "in_progress")\`
507
- 8. **Implement**: Work through each task in order. Follow existing patterns.
508
- 9. **Complete task**: Mark Task Note as complete: \`ws.task.updateNoteStatus("<taskNoteId>", "complete")\`. Also mark ✅ in spec using \`ws.note.edit("spec", { old: "old text", new: "new text" })\`.
509
- 10. **Web UI**: If dev server running, use \`browser_exec\` to test (\`browser_docs\` for API details).
510
- 11. **Stay focused**: Work outside the spec goes in follow-ups, not implementation.
511
- 12. **Verify**: Execute every command in the Verification Plan.
512
- 13. **Report**: Add verification report to Spec note using \`ws.note.add("spec", { content: "<verification report>" })\`. Flag ⚠️ or ❌ items.
513
-
514
- ## Task Syntax — use \`@@@task\` blocks with: # Title, ## Scope, ## Definition of Done, ## Verification. One block per task. Auto-converts to Task Note when saved. Do not edit converted task links.
515
-
516
- ## Verification Report Format
517
- For each acceptance criterion:
518
- - ✅ VERIFIED: evidence (file, behavior, test output)
519
- - ⚠️ PARTIAL: what's done vs. what remains
520
- - ❌ MISSING: what's not done, what's needed
521
-
522
- Then: Commands Run, Risk Notes, Follow-ups.`,roleReminder:"You work ALONE — never call ws.agent.delegate or ws.agent.create. Spec first: write the plan, STOP, and wait for explicit user approval before writing any code. NEVER use checkboxes — use @@@task blocks ONLY. After implementing, self-verify every acceptance criterion with evidence."},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return n.specialists_builtin_chiefOfStaff_name()},get description(){return n.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:`## Assistant fallback
354
+ `},{id:"developer",icon:"verifier",get name(){return a.specialists_builtin_developer_name()},get description(){return a.specialists_builtin_developer_description()},defaultBehaviorPrompt:`You are a coding specialist.
355
+
356
+ At the start of the conversation, when you've figured out the nature of the task, rename the branch to be related to the request, and prefix the branch name with feat/ or bugfix/ or refactor/ etc
357
+
358
+ If the workspace doesn't already have a custom title, rename it to describe the goal. Skip this step if it already has a meaningful name.
359
+
360
+ Use the Spec document as a scratchpad for planning. Prefer using Simplified Technical English (asd-ste100) with short explanations, nested and numbered lists, and charts and diagrams. Update the spec with findings and changes as work progresses.
361
+
362
+ Delegate to subagents as needed, but be sure to not duplicate efforts. For complex tasks, use the spec document and task blocks to describe work for subagents.
363
+
364
+ **using \`@@@task\` blocks:**
365
+
366
+ @@@task
367
+ # Task Title Here
368
+ what this task achieves
369
+
370
+ ## Scope
371
+ what files/areas are in scope (and what is not)
372
+
373
+ ## Inputs
374
+ links to relevant notes/spec sections. you can use ws-block references.
375
+
376
+ ## Definition of Done
377
+ specific completion checks
378
+
379
+ @@@
380
+
381
+ **Rules:**
382
+ - One \`@@@task\` block per task
383
+ - First \`# Heading\` = task title
384
+ - Content below = task body
385
+ - Auto-converts to Task Note when saved
386
+ - Do not edit converted task links — the system produces \`- [ ] [Title](intent://...)\` format; leave it as-is
387
+
388
+ ## Development
389
+
390
+ - Edit source files directly using the available file-editing or patch tools. Do not create temporary Python, Node, or shell scripts for routine edits. Use scripts only when a bulk transformation materially benefits from them. If direct editing tools are unavailable or fail, explain the limitation before falling back.
391
+ - Do not run tests or verification commands until work has been completed. Your goal is to run tests and verification the strict minimum number of times. Do not overly verify.
392
+ - Commit your changes as you work and reach logical units of completion. Use conventional commit messages.
393
+ - Never write unit tests after you write code.
394
+ - Highly prefer E2E tests as the sole testing mechanism. Use them to verify complex features work. At the end of E2E tests, produce a verifiable and repeatable artifact.
395
+ - If you must test a system in isolation, first write down all the ways it could fail, then write the code.
396
+ - Do not write unit tests for static content, CSS classes, visual ordering, or tests that only reflect the content of the code under test. Reserve tests for contracts, branching logic, data manipulation, etc.
397
+ - Only make code comments sparingly. Comments should be rare, brief, and purposeful.
398
+ - Only open pull requests when asked. Always monitor pull requests after opening them.
399
+
400
+ ## Design
401
+
402
+ Make UI feel sleek, considered, and consistent with the existing app. Reuse its components, typography, icons, and tokens. Put content first: compact chrome, generous content padding, precise left alignment, and consistent body-sized text with restrained hierarchy. Use shared neutral surfaces; avoid warm grays, decorative left borders, bottom borders on rounded controls, heavy outlines, and arbitrary accent colors. Keep controls and states readable in both themes. Don't add unnecessary or superfluous text or ui.
403
+
404
+ Remove redundant labels, captions, counts, tooltips, and empty space. Prefer click-to-edit and inline actions over extra buttons or dialogs. Preserve focus, drafts, scroll position, and context. Make hover interactions continuous and motion smooth, directional, and purposeful. Fit narrow layouts without overlap or awkward nested scrolling. Keep visualizations readable and expressive. Inspect the rendered result and refine it before calling it done.
405
+
406
+ ## Output
407
+
408
+ Group your thinking into a single "Working" group using \`<group:Name>\` tags, until you have a response for the user. Keep that end of your response in simple English and concise.
409
+
410
+ Show before/after screenshots when possible and helpful. Show all edge cases.`,roleReminder:"You are a coding specialist. Do not run tests or verification commands until work has been completed. Do not overly verify."},{id:"chief-of-staff",icon:"chief-of-staff",get name(){return a.specialists_builtin_chiefOfStaff_name()},get description(){return a.specialists_builtin_chiefOfStaff_description()},hidden:!0,defaultBehaviorPrompt:`## Assistant fallback
523
411
 
524
412
  You are Intent's app-level Assistant. Help users find their work, navigate the app, and manage settings and specialists. For repository work, find or propose the appropriate workspace. Keep answers short and adapt to the user's preferences.
525
413
 
@@ -531,4 +419,4 @@ Show referenced workspaces as live fenced \`workspace\` blocks with one returned
531
419
 
532
420
  For cross-workspace agents, use attributed send for one-way requests, ask when an answer is requested, and waitFor for completion watches. After ask or waitFor, end the turn; do not poll or treat interim messages as completion. On the completion wake, read the specified agent's conversation once and relay its last assistant message with a nonempty message ID. Link that reply as [Workspace Title](intent://local/{workspaceId}/agent/{agentId}/message/{messageId}), taking all IDs and the title from the conversation read, never the outgoing request or a user message. This exact-message source link is the exception to workspace cards. Omit the link if no assistant message ID exists; report missing or failed results honestly.
533
421
 
534
- Keep ordinary recommendations to supported features ready for users. Discuss an experiment honestly and label its status only when explicitly asked or when the user is developing or testing it.`,roleReminder:"You are the built-in Assistant. Help with app tasks using ws.app.* and current app guidance. Keep changes reviewable through proposal or confirmation cards, with cards last. Show workspaces as live cards; never use a workspace ID slug as a label. Use the discovered canonical route including its hash fragment. End the turn after registering an agent completion watch; on completion, link the returned assistant reply using its exact message ID."}],J=new Set(["pr-reviewer"]),Dr="developer";function Or(e){return b.find(t=>t.id===e)}function u(e){return e??""}function ot(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function G(e,t,r){if(e.source!=="user"||!r?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const s=t.find(i=>i.id===e.id)??b.find(i=>i.id===e.id);return s?u(e.name)===u(s.name)&&u(e.description)===u(s.description)&&u(e.behaviorPrompt)===u(s.defaultBehaviorPrompt)&&u(e.roleReminder)===u(s.roleReminder)&&u(e.reasoningEffort)===u(s.reasoningEffort)&&ot(e.modelOptions,s.modelOptions):!1}const xr=a.createSelector(e=>e.specialists.bundledSpecialists),ct=a.createSelector(e=>e.specialists.fileSpecialists),Fr=a.createSelector(e=>y(ct.select(e))),Nr=a.createSelector(e=>e.specialists.userOverrides);a.createSelector(e=>e.specialists.overridesLoaded);const Lr=a.createSelector(e=>e.specialists.customSpecialistsLoaded),Ur=a.createSelector(e=>e.specialists.fileSpecialistsLoaded),Vr=a.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Wr=a.createSelector(e=>e.specialists.specialistsFolderPath),Hr=a.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});a.createSelector(e=>e.specialists.providerModelOverrides);const x=a.createSelector((e,t)=>!(J.has(t)&&!Z.select(e)));function lt(e,t){return t?e:e.filter(r=>!J.has(r.id))}function dt(e,t){return lt(e,t).filter(r=>!r.hidden)}function Br(e,t){return dt(e,t).filter(r=>r.role!=="internal")}const v=a.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of b)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of b)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,h)=>{const S=l.has(c.id),M=l.has(h.id);return S&&M?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!M?-1:!S&&M?1:c.name.localeCompare(h.name)}),o}),qr=a.createSelector(e=>{const t=v.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...b.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),ut=a.createSelector((e,t)=>{const r=m(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(i=>i.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&y(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const i=b.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),jr=a.createSelector((e,t)=>ut.select(e,t)?.name??null),Gr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),zr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Yr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Kr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function C(e,t){return t.some(r=>r.id===e)||b.some(r=>r.id===e)}const Qr=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&C(t,e.specialists.bundledSpecialists)}return C(t,e.specialists.bundledSpecialists)}),$r=a.createSelector((e,t,r)=>r?!!H.select(e,t,r):!!m(e.specialists.fileSpecialists,t)),Zr=a.createSelector((e,t,r)=>{if(r){const o=H.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:C(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!C(t,e.specialists.bundledSpecialists))return!1;const i=m(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),H=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return m(e.specialists.fileSpecialists,t)}),Jr=a.createSelector((e,t,r)=>{const s=H.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),Xr=a.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=m(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),es=a.createSelector((e,t,r)=>{if(r){const i=v.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return we.select(e,o,r);const l=ye.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=m(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:pt.select(e,t)}),pt=a.createSelector((e,t)=>{const s=v.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Me.select(e)?Q.select(e):""}),ts=a.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),rs=a.createSelector((e,t)=>e.specialists.creationByContext?.[t]??de),ss=a.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),ft=["idle","exited"];function ht(e){return e===void 0||!ft.includes(e)}function is(e){return e.status==="restarting"?"restarting":ht(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function gt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const as=a.createSelector(e=>e.voiceSettings.isLoading),ns=a.createSelector(e=>e.voiceSettings.available),os=a.createSelector(e=>e.voiceSettings.provider),cs=a.createSelector(e=>e.voiceSettings.engine),ls=a.createSelector(e=>e.voiceSettings.osEngineAvailable),ds=a.createSelector(e=>e.voiceSettings.keyConfigured),us=a.createSelector(e=>e.voiceSettings.vocabulary),ps=a.createSelector(e=>e.voiceSettings.openaiModel),fs=a.createSelector(e=>e.voiceSettings.language),hs=a.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),gs=a.createSelector(e=>e.voiceSettings.inputDeviceId),ms=a.createSelector(e=>e.voiceSettings.inputDevices),vs=a.createSelector(e=>e.voiceSettings.busyProvider),bs=a.createSelector(e=>e.voiceSettings.error),Ss=a.createSelector(e=>_e.select(e)?"unavailable":gt(e.voiceSettings)),L="intent.voice.inputDevice";let U;function mt(){if(U!==void 0)return U;try{const e=localStorage.getItem(L);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ws(e){U=e;try{e===null?localStorage.removeItem(L):localStorage.setItem(L,e)}catch{}}let T=null;function ys(e){T=e}function _s(){const e=T;return T=null,e}function vt(){T=null}const bt=300,St=300;class wt{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??bt,this.doublePressWindowMs=t.doublePressWindowMs??St,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let A=null;function ks(e){A=e}function Es(){const e=A;return A=null,e}function yt(){A=null}const _t=12e4,kt=["audio/webm;codecs=opus","audio/webm"];function Rs(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Et(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Rt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return kt.find(e=>MediaRecorder.isTypeSupported(e))}class Ct{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??_t,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Et(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Rt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,i=this.cancelRequested;this.teardown(),!i&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Tt=300;function At(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const It={stopReason:"manual",autoSend:!1};let p=null,g=null,w=0,k=null;const P=new wt({onRecordStart:()=>{k&&Pt(k)},onRecordStop:e=>{X(k,e)}});function Cs(){return p!==null}function Ts(){return p}function As(e){k=e,w+=1,w===1&&P.keyDown()}function Is(e){k=e,w!==0&&(w-=1,w===0&&P.keyUp())}function Pt(e){if(p!==null)return;yt(),vt();const t=new Ct({deviceId:mt(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(R()),i||P.reset(),r.durationMs<Tt){s.autoSend&&e.dispatch(N());return}e.dispatch(ue({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(R()),e.showHint(At(r)?n.hardwareConsole_ptt_micDenied_message():n.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(pe()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(R()),s&&e.dispatch(N())}})}function X(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(N());return}g=t,r.stop()}function Ps(){X(null,It)}function Ms(e){P.reset(),w=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(R()))}const Mt=V("HardwareConsoleVoiceSetupToast"),Dt="hardware-console-voice-setup";let F=null;function Ot(){return F||(F=le(()=>import("./BUjG2l2R.js").then(e=>e.i),__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]),import.meta.url).then(e=>e.notify)),F}function xt(){Pe("/settings?tab=connections#voice").catch(e=>{Mt.error("Failed to open voice settings from setup toast",e)})}function Ft(){return{label:n.hardwareConsole_voice_openSettings_label(),onClick:()=>xt()}}function Ds(){Ot().then(e=>{e.error(n.hardwareConsole_voice_noKey_error(),{id:Dt,action:Ft()})})}const Os=a.createSelector(e=>e.externalEditors.selectedAction),Nt=a.createSelector(e=>e.externalEditors.editors),Lt=a.createSelector(e=>{const t=y(Nt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),xs=a.createSelector(e=>e.externalEditors.editorOrder??[]),Fs=a.createSelector(e=>e.externalEditors.loading),Ns=a.createSelector(e=>e.externalEditors.lastFetched),Ut=a.createSelector(e=>e.externalEditors.hiddenEditorIds),Ls=a.createSelector((e,t)=>{if(!(t?ke.select(e,t):Ee.select(e)))return[];const s=Ut.select(e);return Lt.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Vt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Us(e,t,r){if(Y(e)){const s=t.find(i=>i.providerRef===e);return s?.remoteCompatible!==!1?null:s.remoteIncompatibility??{reason:"unknown",keys:[]}}return r?.[e]??null}function Vs(e,t){return e.reason==="account-folder"?n.chat_modelPicker_remoteAccountFolder_description({backend:t}):n.chat_modelPicker_remoteIncompatible_description()}const Wt=1440*60*1e3;function Ws(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>Wt?"stale":"fresh"}const Hs=new Set(["cli-missing","prerequisite-missing"]),Ht=new Set(["signed-out","auth-failed"]);function Bt(e){return Ht.has(e)}function Bs(e,t){if(Y(t))return!1;const r=fe(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&Bt(s.status)}const qt={macos:"macOS",linux:"Linux",windows:"Windows"},jt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function E(e,t){const r=[e&&(qt[e]??e),t&&(jt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function Gt(e){return e?.placement?.target==="remote"}function qs(e,t){if(!e||!Gt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=E(e.placement?.os,e.placement?.arch)??E(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||n.remoteAgent_location_unknownMachine(),platform:i,state:o}}function js(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||n.remoteAgent_location_unknownMachine(),platform:E(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Gs(e){const t=e.platform?n.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):n.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_unreachable_label()});case"revoked":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_revoked_label()});default:return t}}function zs(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":null}const I="",zt=new Set(["connected","disconnected"]);function Yt(e){switch(e){case"unreachable":return n.remoteMachines_state_unreachable_label();case"revoked":return n.remoteMachines_state_revoked_label();case"update-required":return n.remoteMachines_state_updateRequired_label();default:return}}function B(e){return zt.has(e.state)}function Kt({backendLabel:e,backendPlatform:t,machines:r}){return[{id:I,label:e,platform:E(t?.os,t?.arch),disabled:!1},...r.map(s=>{const i=E(s.platform?.os,s.platform?.arch);return B(s)?{id:s.id,label:s.name,platform:i,disabled:!1}:{id:s.id,label:s.name,platform:i,disabled:!0,reason:Yt(s.state)}})]}function Qt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(B)}function $t(e,t){if(!e)return I;const r=t.find(s=>s.id===e);return r&&B(r)?r.id:I}function Ys(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function Ks({groups:e,providerRef:t,model:r}){const s=l=>l.options.filter(c=>!c.disabled),i=e.find(l=>l.key===t),o=i?s(i):[];if(r){const l=he(r).modelId;if(o.some(c=>c.value===l))return null}else if(o.length>0)return null;if(i&&o.length>0)return{providerId:i.key,modelId:o[0].value};for(const l of e){if(l.key==="default")continue;const c=s(l);if(c.length>0)return{providerId:l.key,modelId:c[0].value}}return null}const Zt=a.createSelector(e=>ze.select(e)&&e.remoteMachines?.supported===!0),q=a.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Qs=a.createSelector(e=>e.remoteMachines.localFingerprint),$s=a.createSelector(e=>e.remoteMachines.pending),Zs=a.createSelector(e=>e.remoteMachines.failures),Js=a.createSelector(e=>e.remoteMachines.executorBackends??[]),Jt=a.createSelector((e,t)=>{if(t===ge)return n.layout_daemonStatus_localConnection_label();const r=m(e.connections.connections,t);return r?De(r):t}),Xt=a.createSelector(e=>Jt.select(e,e.connections.windowBackendId)),Xs=a.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),ei=a.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Vt({catalogProfiles:Ce.select(e,t),defaultRemoteIncompatibility:Re.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),ti=a.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),ee=a.createSelector(e=>Qt({remoteMachinesVisible:Zt.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:q.select(e)}));function er(e){const t=m(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const ri=a.createSelector(e=>ee.select(e)?Kt({backendLabel:Xt.select(e),backendPlatform:er(e),machines:q.select(e)}):[]),si=a.createSelector((e,t)=>ee.select(e)?$t(t,q.select(e)):I);function ii(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let tr=0;function rr(e,t){const r=++tr;return a.dispatch(ve(e,t,r)),r}function ai(e,t,r){a.dispatch(me(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await a.dispatch(be({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:K.select(a.state)},{...s,intent:s?.intent??rr(e,t)}))).status==="success"}finally{a.dispatch(Se(i,o))}}async function ni(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function oi(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const sr=a.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),ci=a.createSelector((e,t)=>sr.select(e,t).some(r=>r.status==="pending")),li=a.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=Te.select(e,t),o=Oe.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=xe(l),h=c?Fe(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:K.select(e),canWrite:!!s&&s.workspaceId===r&&!Ae.select(e,r)}});function ir(e,t,r=!1){return e!=="auggie"||t===!0||r}const di=a.createSelector(e=>Ne.select(e)?null:W.select(e)),ar=a.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),ui=a.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),pi=a.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===ar.select(e)),re=a.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Ie.select(e)),se=a.createSelector((e,t)=>{if(!t)return Q.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=a.createSelector((e,t)=>{if(!t)return Le.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=a.createSelector((e,t)=>{if(!t)return Ue.select(e);const r=j.select(e,t),s=se.select(e,t),i=f.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||$(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),fi=a.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:W.select(e);return re.select(e,t).filter(i=>ir(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),hi=a.createSelector((e,t)=>t?ie.select(e,t):Ve.select(e)),gi=a.createSelector((e,t)=>v.select(e,t)),mi=a.createSelector((e,t)=>t?!!f.select(e,t):We.select(e)),vi=a.createSelector((e,t)=>{if(!t)return He.select(e);const r=f.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),bi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):Be.select(e)),Si=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):qe.select(e)),wi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):je.select(e)),yi=a.createSelector((e,t,r)=>{if(!r)return Ge.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$(o,i?.readiness[o]?.authenticated))}),_i=a.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:W.select(e)),nr={},ki=a.createSelector(e=>e.providerSettings?.profiles?.status??nr),Ei=a.createSelector(e=>e.directoryPicker.listing),Ri=a.createSelector(e=>e.directoryPicker.loading),Ci=a.createSelector(e=>e.directoryPicker.error),Ti=a.createSelector(e=>e.directoryPicker.pathError),Ai=a.createSelector(e=>e.directoryPicker.createError),z={},or=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Ii=a.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Pi=a.createSelector(e=>e.mcpSettings.loading),Mi=a.createSelector(e=>e.mcpSettings.error),Di=a.createSelector(e=>e.mcpSettings.mutationError??null),Oi=a.createSelector(e=>e.mcpSettings.enabled),cr=a.createSelector(e=>e.mcpSettings.disabledServers),lr=a.createSelector(e=>e.mcpSettings.statusMap),dr=a.createSelector(e=>e.mcpSettings.toolsMap),ur=a.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,_(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),pr=a.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??z:z),xi=a.createSelector((e,t)=>Object.keys(pr.select(e,t))),Fi=a.createSelector(e=>{const t=or.select(e),r=lr.select(e),s=dr.select(e),i=cr.select(e),o=ur.select(e);return t.map(l=>{const c=_(l)in i,h=s[_(l)]||[];let S=r[_(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[_(l)]}})});a.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Ni=a.createSelector(e=>e.mcpSettings.lastImportedCount),Li=a.createSelector(e=>e.mcpSettings.advancedSaveStatus),Ui=a.createSelector(e=>e.mcpSettings.advancedSaveError),Vi=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],fr=[{path:"agentFeatures.backgroundHooks",label:()=>n.settings_agentFeatures_backgroundHooks_label(),description:()=>n.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>n.settings_agentFeatures_hostExec_label(),description:()=>n.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>n.settings_agentFeatures_scripts_label(),description:()=>n.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>n.settings_agentFeatures_terminalAccess_label(),description:()=>n.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>n.settings_agentFeatures_browserAutomation_label(),description:()=>n.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>n.settings_agentFeatures_desktopControl_label(),description:()=>n.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>n.settings_agentFeatures_richChatBlocks_label(),description:()=>n.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>n.settings_agentFeatures_structuredQuestions_label(),description:()=>n.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>n.settings_agentFeatures_secretRequests_label(),description:()=>n.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>n.settings_agentFeatures_attentionRequests_label(),description:()=>n.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>n.settings_agentFeatures_stateSnapshot_label(),description:()=>n.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>n.settings_agentFeatures_prMonitor_label(),description:()=>n.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>n.settings_agentFeatures_taskGraph_label(),description:()=>n.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>n.settings_agentFeatures_peerAgents_label(),description:()=>n.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>n.settings_agentFeatures_mcpTools_label(),description:()=>n.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Wi=Object.fromEntries(fr.map(e=>[e.path,e.defaultValue]));export{xr as $,ii as A,G as B,Bs as C,Dr as D,Rs as E,fr as F,J as G,mt as H,js as I,Ks as J,E as K,Ws as L,Hs as M,rr as N,it as O,oi as P,ai as Q,Us as R,b as S,Vs as T,gt as U,$t as V,Ar as W,ws as X,ci as Y,sr as Z,li as _,Wi as a,Di as a$,Vr as a0,Jt as a1,hi as a2,se as a3,j as a4,fi as a5,ie as a6,re as a7,Si as a8,wi as a9,H as aA,Ke as aB,et as aC,tt as aD,Z as aE,Xe as aF,Qe as aG,Ye as aH,Ze as aI,Je as aJ,Zr as aK,Ut as aL,Lt as aM,Ls as aN,Fs as aO,Qr as aP,$r as aQ,Ns as aR,Qs as aS,Ui as aT,Li as aU,cr as aV,Oi as aW,Mi as aX,ur as aY,Ni as aZ,Pi as a_,bi as aa,yi as ab,_i as ac,mi as ad,vi as ae,gi as af,Xt as ag,Lr as ah,ti as ai,Hr as aj,Ai as ak,Ci as al,Ei as am,Ri as an,Ti as ao,xs as ap,Kr as aq,es as ar,Gr as as,si as at,Ss as au,Js as av,zr as aw,Yr as ax,Fr as ay,Ur as az,Vi as b,or as b0,Fi as b1,lr as b2,dr as b3,Os as b4,qr as b5,ki as b6,Xs as b7,Zs as b8,$s as b9,bs as bA,as as bB,us as bC,hs as bD,f as bE,ar as bF,pi as bG,ui as bH,xi as bI,Ii as bJ,ys as bK,ks as bL,Ds as bM,Pt as bN,Ps as bO,Ir as bP,Tr as bQ,Pr as bR,Cr as bS,Ft as bT,Er as bU,q as ba,Zt as bb,ei as bc,di as bd,ut as be,rs as bf,ss as bg,Xr as bh,ts as bi,jr as bj,Jr as bk,v as bl,Wr as bm,ri as bn,ee as bo,Nr as bp,vs as bq,cs as br,gs as bs,ms as bt,ds as bu,fs as bv,ps as bw,ls as bx,os as by,ns as bz,I as c,qs as d,Gs as e,zs as f,ni as g,Ms as h,vt as i,yt as j,_s as k,Es as l,Br as m,dt as n,lt as o,Ts as p,Mr as q,is as r,Or as s,Rr as t,As as u,Is as v,Ys as w,ht as x,ir as y,Cs as z};
422
+ Keep ordinary recommendations to supported features ready for users. Discuss an experiment honestly and label its status only when explicitly asked or when the user is developing or testing it.`,roleReminder:"You are the built-in Assistant. Help with app tasks using ws.app.* and current app guidance. Keep changes reviewable through proposal or confirmation cards, with cards last. Show workspaces as live cards; never use a workspace ID slug as a label. Use the discovered canonical route including its hash fragment. End the turn after registering an agent completion watch; on completion, link the returned assistant reply using its exact message ID."}],J=new Set(["pr-reviewer"]),Dr="developer";function xr(e){return v.find(t=>t.id===e)}function u(e){return e??""}function ot(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function G(e,t,r){if(e.source!=="user"||!r?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const s=t.find(i=>i.id===e.id)??v.find(i=>i.id===e.id);return s?u(e.name)===u(s.name)&&u(e.description)===u(s.description)&&u(e.behaviorPrompt)===u(s.defaultBehaviorPrompt)&&u(e.roleReminder)===u(s.roleReminder)&&u(e.reasoningEffort)===u(s.reasoningEffort)&&ot(e.modelOptions,s.modelOptions):!1}const Fr=n.createSelector(e=>e.specialists.bundledSpecialists),ct=n.createSelector(e=>e.specialists.fileSpecialists),Or=n.createSelector(e=>_(ct.select(e))),Lr=n.createSelector(e=>e.specialists.userOverrides);n.createSelector(e=>e.specialists.overridesLoaded);const Ur=n.createSelector(e=>e.specialists.customSpecialistsLoaded),Nr=n.createSelector(e=>e.specialists.fileSpecialistsLoaded),Vr=n.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Hr=n.createSelector(e=>e.specialists.specialistsFolderPath),Wr=n.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});n.createSelector(e=>e.specialists.providerModelOverrides);const F=n.createSelector((e,t)=>!(J.has(t)&&!Z.select(e)));function lt(e,t){return t?e:e.filter(r=>!J.has(r.id))}function dt(e,t){return lt(e,t).filter(r=>!r.hidden)}function qr(e,t){return dt(e,t).filter(r=>r.role!=="internal")}const b=n.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=_(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&F.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&F.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of v)!i.has(c.id)&&F.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of v)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,h)=>{const S=l.has(c.id),I=l.has(h.id);return S&&I?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!I?-1:!S&&I?1:c.name.localeCompare(h.name)}),o}),Br=n.createSelector(e=>{const t=b.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...v.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),ut=n.createSelector((e,t)=>{const r=m(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(i=>i.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&_(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const i=v.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),jr=n.createSelector((e,t)=>ut.select(e,t)?.name??null),Gr=n.createSelector((e,t,r)=>{const i=b.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),zr=n.createSelector((e,t,r)=>b.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Kr=n.createSelector((e,t,r)=>b.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Qr=n.createSelector((e,t,r)=>{const i=b.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function C(e,t){return t.some(r=>r.id===e)||v.some(r=>r.id===e)}const Yr=n.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&C(t,e.specialists.bundledSpecialists)}return C(t,e.specialists.bundledSpecialists)}),$r=n.createSelector((e,t,r)=>r?!!W.select(e,t,r):!!m(e.specialists.fileSpecialists,t)),Zr=n.createSelector((e,t,r)=>{if(r){const o=W.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:C(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!C(t,e.specialists.bundledSpecialists))return!1;const i=m(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),W=n.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return m(e.specialists.fileSpecialists,t)}),Jr=n.createSelector((e,t,r)=>{const s=W.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),Xr=n.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=m(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),es=n.createSelector((e,t,r)=>{if(r){const i=b.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return ye.select(e,o,r);const l=_e.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=m(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:pt.select(e,t)}),pt=n.createSelector((e,t)=>{const s=b.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Ie.select(e)?Y.select(e):""}),ts=n.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?_(r):[]}),rs=n.createSelector((e,t)=>e.specialists.creationByContext?.[t]??de),ss=n.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),ft=["idle","exited"];function ht(e){return e===void 0||!ft.includes(e)}function is(e){return e.status==="restarting"?"restarting":ht(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function gt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const ns=n.createSelector(e=>e.voiceSettings.isLoading),as=n.createSelector(e=>e.voiceSettings.available),os=n.createSelector(e=>e.voiceSettings.provider),cs=n.createSelector(e=>e.voiceSettings.engine),ls=n.createSelector(e=>e.voiceSettings.osEngineAvailable),ds=n.createSelector(e=>e.voiceSettings.keyConfigured),us=n.createSelector(e=>e.voiceSettings.vocabulary),ps=n.createSelector(e=>e.voiceSettings.openaiModel),fs=n.createSelector(e=>e.voiceSettings.language),hs=n.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),gs=n.createSelector(e=>e.voiceSettings.inputDeviceId),ms=n.createSelector(e=>e.voiceSettings.inputDevices),bs=n.createSelector(e=>e.voiceSettings.busyProvider),vs=n.createSelector(e=>e.voiceSettings.error),Ss=n.createSelector(e=>we.select(e)?"unavailable":gt(e.voiceSettings)),U="intent.voice.inputDevice";let N;function mt(){if(N!==void 0)return N;try{const e=localStorage.getItem(U);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ys(e){N=e;try{e===null?localStorage.removeItem(U):localStorage.setItem(U,e)}catch{}}let A=null;function _s(e){A=e}function ws(){const e=A;return A=null,e}function bt(){A=null}const vt=300,St=300;class yt{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??vt,this.doublePressWindowMs=t.doublePressWindowMs??St,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let M=null;function ks(e){M=e}function Es(){const e=M;return M=null,e}function _t(){M=null}const wt=12e4,kt=["audio/webm;codecs=opus","audio/webm"];function Rs(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Et(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Rt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return kt.find(e=>MediaRecorder.isTypeSupported(e))}class Ct{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??wt,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Et(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Rt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,i=this.cancelRequested;this.teardown(),!i&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const At=300;function Mt(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const Pt={stopReason:"manual",autoSend:!1};let p=null,g=null,y=0,k=null;const T=new yt({onRecordStart:()=>{k&&Tt(k)},onRecordStop:e=>{X(k,e)}});function Cs(){return p!==null}function As(){return p}function Ms(e){k=e,y+=1,y===1&&T.keyDown()}function Ps(e){k=e,y!==0&&(y-=1,y===0&&T.keyUp())}function Tt(e){if(p!==null)return;_t(),bt();const t=new Ct({deviceId:mt(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(R()),i||T.reset(),r.durationMs<At){s.autoSend&&e.dispatch(L());return}e.dispatch(ue({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(R()),e.showHint(Mt(r)?a.hardwareConsole_ptt_micDenied_message():a.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(pe()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(R()),s&&e.dispatch(L())}})}function X(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(L());return}g=t,r.stop()}function Ts(){X(null,Pt)}function Is(e){T.reset(),y=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(R()))}const It=V("HardwareConsoleVoiceSetupToast"),Dt="hardware-console-voice-setup";let O=null;function xt(){return O||(O=le(()=>import("./BONnxsQv.js").then(e=>e.i),__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]),import.meta.url).then(e=>e.notify)),O}function Ft(){Te("/settings?tab=connections#voice").catch(e=>{It.error("Failed to open voice settings from setup toast",e)})}function Ot(){return{label:a.hardwareConsole_voice_openSettings_label(),onClick:()=>Ft()}}function Ds(){xt().then(e=>{e.error(a.hardwareConsole_voice_noKey_error(),{id:Dt,action:Ot()})})}const xs=n.createSelector(e=>e.externalEditors.selectedAction),Lt=n.createSelector(e=>e.externalEditors.editors),Ut=n.createSelector(e=>{const t=_(Lt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),Fs=n.createSelector(e=>e.externalEditors.editorOrder??[]),Os=n.createSelector(e=>e.externalEditors.loading),Ls=n.createSelector(e=>e.externalEditors.lastFetched),Nt=n.createSelector(e=>e.externalEditors.hiddenEditorIds),Us=n.createSelector((e,t)=>{if(!(t?ke.select(e,t):Ee.select(e)))return[];const s=Nt.select(e);return Ut.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Vt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Ns(e,t,r){if(K(e)){const s=t.find(i=>i.providerRef===e);return s?.remoteCompatible!==!1?null:s.remoteIncompatibility??{reason:"unknown",keys:[]}}return r?.[e]??null}function Vs(e,t){return e.reason==="account-folder"?a.chat_modelPicker_remoteAccountFolder_description({backend:t}):a.chat_modelPicker_remoteIncompatible_description()}const Ht=1440*60*1e3;function Hs(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>Ht?"stale":"fresh"}const Ws=new Set(["cli-missing","prerequisite-missing"]),Wt=new Set(["signed-out","auth-failed"]);function qt(e){return Wt.has(e)}function qs(e,t){if(K(t))return!1;const r=fe(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&qt(s.status)}const Bt={macos:"macOS",linux:"Linux",windows:"Windows"},jt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function E(e,t){const r=[e&&(Bt[e]??e),t&&(jt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function Gt(e){return e?.placement?.target==="remote"}function Bs(e,t){if(!e||!Gt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=E(e.placement?.os,e.placement?.arch)??E(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||a.remoteAgent_location_unknownMachine(),platform:i,state:o}}function js(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||a.remoteAgent_location_unknownMachine(),platform:E(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Gs(e){const t=e.platform?a.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):a.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_unreachable_label()});case"revoked":return a.remoteAgent_location_tooltipWithState({location:t,state:a.remoteMachines_state_revoked_label()});default:return t}}function zs(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":null}const P="",zt=new Set(["connected","disconnected"]);function Kt(e){switch(e){case"unreachable":return a.remoteMachines_state_unreachable_label();case"revoked":return a.remoteMachines_state_revoked_label();case"update-required":return a.remoteMachines_state_updateRequired_label();default:return}}function q(e){return zt.has(e.state)}function Qt({backendLabel:e,backendPlatform:t,machines:r}){return[{id:P,label:e,platform:E(t?.os,t?.arch),disabled:!1},...r.map(s=>{const i=E(s.platform?.os,s.platform?.arch);return q(s)?{id:s.id,label:s.name,platform:i,disabled:!1}:{id:s.id,label:s.name,platform:i,disabled:!0,reason:Kt(s.state)}})]}function Yt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(q)}function $t(e,t){if(!e)return P;const r=t.find(s=>s.id===e);return r&&q(r)?r.id:P}function Ks(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function Qs({groups:e,providerRef:t,model:r}){const s=l=>l.options.filter(c=>!c.disabled),i=e.find(l=>l.key===t),o=i?s(i):[];if(r){const l=he(r).modelId;if(o.some(c=>c.value===l))return null}else if(o.length>0)return null;if(i&&o.length>0)return{providerId:i.key,modelId:o[0].value};for(const l of e){if(l.key==="default")continue;const c=s(l);if(c.length>0)return{providerId:l.key,modelId:c[0].value}}return null}const Zt=n.createSelector(e=>ze.select(e)&&e.remoteMachines?.supported===!0),B=n.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Ys=n.createSelector(e=>e.remoteMachines.localFingerprint),$s=n.createSelector(e=>e.remoteMachines.pending),Zs=n.createSelector(e=>e.remoteMachines.failures),Js=n.createSelector(e=>e.remoteMachines.executorBackends??[]),Jt=n.createSelector((e,t)=>{if(t===ge)return a.layout_daemonStatus_localConnection_label();const r=m(e.connections.connections,t);return r?De(r):t}),Xt=n.createSelector(e=>Jt.select(e,e.connections.windowBackendId)),Xs=n.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),ei=n.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Vt({catalogProfiles:Ce.select(e,t),defaultRemoteIncompatibility:Re.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),ti=n.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),ee=n.createSelector(e=>Yt({remoteMachinesVisible:Zt.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:B.select(e)}));function er(e){const t=m(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const ri=n.createSelector(e=>ee.select(e)?Qt({backendLabel:Xt.select(e),backendPlatform:er(e),machines:B.select(e)}):[]),si=n.createSelector((e,t)=>ee.select(e)?$t(t,B.select(e)):P);function ii(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let tr=0;function rr(e,t){const r=++tr;return n.dispatch(be(e,t,r)),r}function ni(e,t,r){n.dispatch(me(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await n.dispatch(ve({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:Q.select(n.state)},{...s,intent:s?.intent??rr(e,t)}))).status==="success"}finally{n.dispatch(Se(i,o))}}async function ai(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function oi(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const sr=n.createSelector((e,t)=>_(e.agentModel.mutations).filter(r=>r.consumerId===t)),ci=n.createSelector((e,t)=>sr.select(e,t).some(r=>r.status==="pending")),li=n.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=Ae.select(e,t),o=xe.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=Fe(l),h=c?Oe(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:Q.select(e),canWrite:!!s&&s.workspaceId===r&&!Me.select(e,r)}});function ir(e,t,r=!1){return e!=="auggie"||t===!0||r}const di=n.createSelector(e=>Le.select(e)?null:H.select(e)),nr=n.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),ui=n.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),pi=n.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===nr.select(e)),re=n.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Pe.select(e)),se=n.createSelector((e,t)=>{if(!t)return Y.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=n.createSelector((e,t)=>{if(!t)return Ue.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=n.createSelector((e,t)=>{if(!t)return Ne.select(e);const r=j.select(e,t),s=se.select(e,t),i=f.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||$(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),fi=n.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:H.select(e);return re.select(e,t).filter(i=>ir(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),hi=n.createSelector((e,t)=>t?ie.select(e,t):Ve.select(e)),gi=n.createSelector((e,t)=>b.select(e,t)),mi=n.createSelector((e,t)=>t?!!f.select(e,t):He.select(e)),bi=n.createSelector((e,t)=>{if(!t)return We.select(e);const r=f.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),vi=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):qe.select(e)),Si=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):Be.select(e)),yi=n.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):je.select(e)),_i=n.createSelector((e,t,r)=>{if(!r)return Ge.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$(o,i?.readiness[o]?.authenticated))}),wi=n.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:H.select(e)),ar={},ki=n.createSelector(e=>e.providerSettings?.profiles?.status??ar),Ei=n.createSelector(e=>e.directoryPicker.listing),Ri=n.createSelector(e=>e.directoryPicker.loading),Ci=n.createSelector(e=>e.directoryPicker.error),Ai=n.createSelector(e=>e.directoryPicker.pathError),Mi=n.createSelector(e=>e.directoryPicker.createError),z={},or=n.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Pi=n.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Ti=n.createSelector(e=>e.mcpSettings.loading),Ii=n.createSelector(e=>e.mcpSettings.error),Di=n.createSelector(e=>e.mcpSettings.mutationError??null),xi=n.createSelector(e=>e.mcpSettings.enabled),cr=n.createSelector(e=>e.mcpSettings.disabledServers),lr=n.createSelector(e=>e.mcpSettings.statusMap),dr=n.createSelector(e=>e.mcpSettings.toolsMap),ur=n.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,w(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),pr=n.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??z:z),Fi=n.createSelector((e,t)=>Object.keys(pr.select(e,t))),Oi=n.createSelector(e=>{const t=or.select(e),r=lr.select(e),s=dr.select(e),i=cr.select(e),o=ur.select(e);return t.map(l=>{const c=w(l)in i,h=s[w(l)]||[];let S=r[w(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[w(l)]}})});n.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Li=n.createSelector(e=>e.mcpSettings.lastImportedCount),Ui=n.createSelector(e=>e.mcpSettings.advancedSaveStatus),Ni=n.createSelector(e=>e.mcpSettings.advancedSaveError),Vi=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],fr=[{path:"agentFeatures.backgroundHooks",label:()=>a.settings_agentFeatures_backgroundHooks_label(),description:()=>a.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>a.settings_agentFeatures_hostExec_label(),description:()=>a.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>a.settings_agentFeatures_scripts_label(),description:()=>a.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>a.settings_agentFeatures_terminalAccess_label(),description:()=>a.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>a.settings_agentFeatures_browserAutomation_label(),description:()=>a.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>a.settings_agentFeatures_desktopControl_label(),description:()=>a.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>a.settings_agentFeatures_richChatBlocks_label(),description:()=>a.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>a.settings_agentFeatures_structuredQuestions_label(),description:()=>a.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>a.settings_agentFeatures_secretRequests_label(),description:()=>a.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>a.settings_agentFeatures_attentionRequests_label(),description:()=>a.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>a.settings_agentFeatures_stateSnapshot_label(),description:()=>a.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>a.settings_agentFeatures_prMonitor_label(),description:()=>a.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>a.settings_agentFeatures_taskGraph_label(),description:()=>a.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>a.settings_agentFeatures_peerAgents_label(),description:()=>a.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>a.settings_agentFeatures_mcpTools_label(),description:()=>a.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Hi=Object.fromEntries(fr.map(e=>[e.path,e.defaultValue]));export{Fr as $,ii as A,G as B,qs as C,Dr as D,Rs as E,fr as F,J as G,mt as H,js as I,Qs as J,E as K,Hs as L,Ws as M,rr as N,it as O,oi as P,ni as Q,Ns as R,v as S,Vs as T,gt as U,$t as V,Mr as W,ys as X,ci as Y,sr as Z,li as _,Hi as a,Di as a$,Vr as a0,Jt as a1,hi as a2,se as a3,j as a4,fi as a5,ie as a6,re as a7,Si as a8,yi as a9,W as aA,Qe as aB,et as aC,tt as aD,Z as aE,Xe as aF,Ye as aG,Ke as aH,Ze as aI,Je as aJ,Zr as aK,Nt as aL,Ut as aM,Us as aN,Os as aO,Yr as aP,$r as aQ,Ls as aR,Ys as aS,Ni as aT,Ui as aU,cr as aV,xi as aW,Ii as aX,ur as aY,Li as aZ,Ti as a_,vi as aa,_i as ab,wi as ac,mi as ad,bi as ae,gi as af,Xt as ag,Ur as ah,ti as ai,Wr as aj,Mi as ak,Ci as al,Ei as am,Ri as an,Ai as ao,Fs as ap,Qr as aq,es as ar,Gr as as,si as at,Ss as au,Js as av,zr as aw,Kr as ax,Or as ay,Nr as az,Vi as b,or as b0,Oi as b1,lr as b2,dr as b3,xs as b4,Br as b5,ki as b6,Xs as b7,Zs as b8,$s as b9,vs as bA,ns as bB,us as bC,hs as bD,f as bE,nr as bF,pi as bG,ui as bH,Fi as bI,Pi as bJ,_s as bK,ks as bL,Ds as bM,Tt as bN,Ts as bO,Pr as bP,Ar as bQ,Tr as bR,Cr as bS,Ot as bT,Er as bU,B as ba,Zt as bb,ei as bc,di as bd,ut as be,rs as bf,ss as bg,Xr as bh,ts as bi,jr as bj,Jr as bk,b as bl,Hr as bm,ri as bn,ee as bo,Lr as bp,bs as bq,cs as br,gs as bs,ms as bt,ds as bu,fs as bv,ps as bw,ls as bx,os as by,as as bz,P as c,Bs as d,Gs as e,zs as f,ai as g,Is as h,bt as i,_t as j,ws as k,Es as l,qr as m,dt as n,lt as o,As as p,Ir as q,is as r,xr as s,Rr as t,Ms as u,Ps as v,Ks as w,ht as x,ir as y,Cs as z};
@@ -1 +1 @@
1
- import{conf as t,language as e}from"./BRBPzczh.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
1
+ import{conf as t,language as e}from"./BmIqWliN.js";const i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
@@ -1,4 +1,4 @@
1
- import{p as de}from"./TVTqPTWK.js";import{f as m,aX as he,aN as Y,$ as O,c4 as me,a6 as ue,bC as X,cm as L,c3 as H,c7 as fe,aL as ye,c9 as ge,aP as Se,aK as xe,c6 as be,ax as ve,bn as Ce,a0 as we}from"./qwXhlljn.js";import{s as Te}from"./Cm31fs63.js";import{p as $e}from"./Dq5ZUD1k.js";import{f as V}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Le,t as Fe}from"./CvYzv8kf.js";var N,te=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const l=ve,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Ce(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(N,"TreeMapDB"),N);function ae(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}m(ae,"buildHierarchy");var Ne=m((p,l)=>{de(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=ze(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=ae(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),ze=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{try{const i=await $e("treemap",p);X.debug("Treemap AST:",i);const r=le.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ne(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},Ae=10,F=10,M=25,Pe=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??Ae,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=me(l),j=s.nodeWidth?s.nodeWidth*F:960,K=s.nodeHeight?s.nodeHeight*F:500,R=j,U=K+z;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+V(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+V(t||"")(o),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Fe().size([j,K]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),ne=J.descendants().filter(e=>e.children&&e.children.length>0),P=q.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Q=J.leaves(),g=Q.length>20,oe=g?16:38,E=g?14:28,T=g?4:8,D=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+W(e.data.name)+";",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(D,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(D,Math.min(E,Math.round(c*v))),!(S<D&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(D,Math.min(E,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;o.node().getComputedTextLength()>pe||S+c>ee||c<D?o.style("display","none"):o.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",s?.useMaxWidth||!1)},"draw"),De=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:De},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const l=he(),i=Y(),r=O(l,i.themeVariables),n=O(Me,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
1
+ import{p as de}from"./BR5lR6Td.js";import{f as m,aX as he,aN as Y,$ as O,c4 as me,a6 as ue,bC as X,cm as L,c3 as H,c7 as fe,aL as ye,c9 as ge,aP as Se,aK as xe,c6 as be,ax as ve,bn as Ce,a0 as we}from"./BHwB2t2J.js";import{s as Te}from"./CzK2fiHA.js";import{p as $e}from"./BEmWnLiC.js";import{f as V}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Le,t as Fe}from"./CvYzv8kf.js";var N,te=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=fe,this.getAccTitle=ye,this.setDiagramTitle=ge,this.getDiagramTitle=Se,this.getAccDescription=xe,this.setAccDescription=be}getNodes(){return this.nodes}getConfig(){const l=ve,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Ce(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){we(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},m(N,"TreeMapDB"),N);function ae(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}m(ae,"buildHierarchy");var Ne=m((p,l)=>{de(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=ze(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=ae(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),ze=m(p=>p.name?String(p.name):"","getItemName"),le={parser:{yy:void 0},parse:m(async p=>{try{const i=await $e("treemap",p);X.debug("Treemap AST:",i);const r=le.parser?.yy;if(!(r instanceof te))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ne(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},Ae=10,F=10,M=25,Pe=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??Ae,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=me(l),j=s.nodeWidth?s.nodeWidth*F:960,K=s.nodeHeight?s.nodeHeight*F:500,R=j,U=K+z;x.attr("viewBox",`0 0 ${R} ${U}`),ue(x,U,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+V(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+V(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+V(t||"")(o),"valueFormat")}else b=V(e)}catch(e){X.error("Error creating format function:",e),b=V(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),se=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),W=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),re=Le(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Fe().size([j,K]).paddingTop(e=>e.children&&e.children.length>0?M+F:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?F:0).paddingRight(e=>e.children&&e.children.length>0?F:0).paddingBottom(e=>e.children&&e.children.length>0?F:0).round(!0)(re),ne=J.descendants().filter(e=>e.children&&e.children.length>0),P=q.selectAll(".treemapSection").data(ne).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",M).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),P.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",M),P.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>se(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=L({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),P.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",M/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&P.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",M/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+W(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Q=J.leaves(),g=Q.length>20,oe=g?16:38,E=g?14:28,T=g?4:8,D=g?4:6,B=g?2:4,Z=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>L({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${oe}px;fill:`+W(e.data.name)+";",o=L({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,$=u-2*B;if(f<Z||$<Z){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>T;)c--,t.style("font-size",`${c}px`);let S=Math.max(D,Math.min(E,Math.round(c*v))),C=c+I+S;for(;C>$&&c>T&&(c--,S=Math.max(D,Math.min(E,Math.round(c*v))),!(S<D&&c===T));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<T||$<T)&&t.style("display","none"):(y.getComputedTextLength()>f||c<T||$<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${E}px;fill:`+W(t.data.name)+";",u=L({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(D,Math.min(E,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,ee=t.y1-t.y0-4,pe=C-2*B;o.node().getComputedTextLength()>pe||S+c>ee||c<D?o.style("display","none"):o.style("display",null)});const ie=s.diagramPadding??8;Te(x,ie,"flowchart",s?.useMaxWidth||!1)},"draw"),De=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Pe,getClasses:De},Me={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},ke=m(({treemap:p}={})=>{const l=he(),i=Y(),r=O(l,i.themeVariables),n=O(Me,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${n.sectionStrokeColor};
4
4
  stroke-width: ${n.sectionStrokeWidth};