@futdevpro/ccap 1.1.2988 → 1.1.2991

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 (177) hide show
  1. package/client-dist/{agent-instances.module-EZ3HLJRW.js → agent-instances.module-ASSAAKKC.js} +2 -2
  2. package/client-dist/{ca.module-2NK5JZOQ.js → ca.module-FQEAVDRQ.js} +2 -2
  3. package/client-dist/{cc-usage-dashboard.component-SLFNE2NX.js → cc-usage-dashboard.component-DPGBTA2M.js} +2 -2
  4. package/client-dist/{cc.module-F7LHWQ3A.js → cc.module-ESZ3GA6T.js} +2 -2
  5. package/client-dist/{chunk-XO6LJ5A6.js → chunk-2BYRRF5C.js} +2 -2
  6. package/client-dist/{chunk-4JZNUGDT.js → chunk-2ZOXLQSN.js} +2 -2
  7. package/client-dist/{chunk-L2E2MBF2.js → chunk-46BB2C2N.js} +2 -2
  8. package/client-dist/{chunk-SIC2VUD2.js → chunk-4CBJKDZ2.js} +2 -2
  9. package/client-dist/{chunk-6UTINZN6.js → chunk-4N76KH34.js} +2 -2
  10. package/client-dist/{chunk-4ORBCWDZ.js → chunk-53T46BVF.js} +2 -2
  11. package/client-dist/{chunk-MIWIPUJL.js → chunk-5LQP4B22.js} +2 -2
  12. package/client-dist/{chunk-WKXTPGKW.js → chunk-5S62XNCE.js} +2 -2
  13. package/client-dist/{chunk-XDP5GOHT.js → chunk-6X3S3YZW.js} +2 -2
  14. package/client-dist/{chunk-LNDWBFCV.js → chunk-73QZZEIR.js} +2 -2
  15. package/client-dist/{chunk-LOUIZXXC.js → chunk-7ORL7SUZ.js} +2 -2
  16. package/client-dist/{chunk-LP2E4KMW.js → chunk-AIHBM5CY.js} +2 -2
  17. package/client-dist/{chunk-RQSPYGNE.js → chunk-AYLNYCQP.js} +2 -2
  18. package/client-dist/{chunk-CK4L2E6A.js → chunk-AZEHMI5K.js} +2 -2
  19. package/client-dist/{chunk-CZK7PL4V.js → chunk-BWO52PSV.js} +2 -2
  20. package/client-dist/{chunk-SYXQFJNU.js → chunk-BWVKRPGK.js} +2 -2
  21. package/client-dist/{chunk-OJPFXL3T.js → chunk-CACTWVFX.js} +2 -2
  22. package/client-dist/{chunk-W4ICO22C.js → chunk-CQTE7MVB.js} +2 -2
  23. package/client-dist/{chunk-VUMU4S4O.js → chunk-D64BCEOM.js} +2 -2
  24. package/client-dist/{chunk-ZRLAS63L.js → chunk-EBFOZCAQ.js} +2 -2
  25. package/client-dist/{chunk-SUAZOLRE.js → chunk-FUQVSO4Q.js} +2 -2
  26. package/client-dist/{chunk-I5LYGLY6.js → chunk-GRFDOP4I.js} +2 -2
  27. package/client-dist/{chunk-ACLAVYA7.js → chunk-HAB4OFER.js} +2 -2
  28. package/client-dist/{chunk-SMBU53NX.js → chunk-HIVJSBJ2.js} +2 -2
  29. package/client-dist/{chunk-6CNO7CIR.js → chunk-HIWI7F6V.js} +2 -2
  30. package/client-dist/{chunk-SAWE7K3L.js → chunk-HNWVEC7W.js} +2 -2
  31. package/client-dist/{chunk-565H5Q7X.js → chunk-IY2SVG7N.js} +2 -2
  32. package/client-dist/{chunk-TWUEQMEF.js → chunk-J7PMNF2L.js} +2 -2
  33. package/client-dist/{chunk-6IVNYSN4.js → chunk-KG6O3QAE.js} +2 -2
  34. package/client-dist/{chunk-QYAK3VTE.js → chunk-KNFPDRDO.js} +2 -2
  35. package/client-dist/{chunk-HK3NW3BA.js → chunk-KOSYBRVL.js} +2 -2
  36. package/client-dist/{chunk-EZQXUBC4.js → chunk-KUSGEZL3.js} +2 -2
  37. package/client-dist/{chunk-KOFPH2WQ.js → chunk-MR56NI7A.js} +2 -2
  38. package/client-dist/{chunk-7FDRE6FK.js → chunk-MRGVT4XV.js} +2 -2
  39. package/client-dist/{chunk-XC26T3JJ.js → chunk-N4W36PDR.js} +2 -2
  40. package/client-dist/{chunk-CJXAN5QP.js → chunk-OGISLAJH.js} +2 -2
  41. package/client-dist/{chunk-2CZLQZAC.js → chunk-OXVOMMBV.js} +2 -2
  42. package/client-dist/{chunk-X3CIXD4W.js → chunk-OZICNOZU.js} +2 -2
  43. package/client-dist/{chunk-35HAXCRL.js → chunk-PIGUQR6E.js} +2 -2
  44. package/client-dist/{chunk-66YFYBOC.js → chunk-Q55FNLZU.js} +2 -2
  45. package/client-dist/{chunk-QM4JVUVN.js → chunk-QKWY3HDK.js} +2 -2
  46. package/client-dist/{chunk-I24ZZ4G3.js → chunk-R6FVXIG4.js} +2 -2
  47. package/client-dist/{chunk-HKO57F7B.js → chunk-SLEHKZ5E.js} +2 -2
  48. package/client-dist/{chunk-ZJ3DCODZ.js → chunk-SLJL7HAM.js} +2 -2
  49. package/client-dist/{chunk-ZJ3DCODZ.js.map → chunk-SLJL7HAM.js.map} +1 -1
  50. package/client-dist/{chunk-CROOTWQ4.js → chunk-SSPNTZSH.js} +2 -2
  51. package/client-dist/{chunk-5GCMRTM2.js → chunk-T7ZRLQXF.js} +2 -2
  52. package/client-dist/{chunk-M53FIKSO.js → chunk-U4ONAI5W.js} +2 -2
  53. package/client-dist/{chunk-ALRGHRMX.js → chunk-UDN3ODZX.js} +2 -2
  54. package/client-dist/{chunk-CZVHJQVK.js → chunk-UKNYZRZO.js} +2 -2
  55. package/client-dist/{chunk-ZI46JBHS.js → chunk-W6IEQCQJ.js} +2 -2
  56. package/client-dist/{chunk-IMV4JDM4.js → chunk-WAXX4LS2.js} +2 -2
  57. package/client-dist/{chunk-CPOWA47I.js → chunk-WRWUBGVD.js} +2 -2
  58. package/client-dist/{chunk-RTAONMUA.js → chunk-Y23QJJM2.js} +2 -2
  59. package/client-dist/{chunk-RJEB2CGY.js → chunk-YF6FPXGN.js} +2 -2
  60. package/client-dist/{chunk-PUVXCR3N.js → chunk-ZHSPATAR.js} +2 -2
  61. package/client-dist/{chunk-W66474CE.js → chunk-ZJB5YCWZ.js} +2 -2
  62. package/client-dist/{consultant.module-ZRSJ2JPM.js → consultant.module-DJAKTGHS.js} +2 -2
  63. package/client-dist/{crd.module-TDLM6M2Z.js → crd.module-VTQBXMCI.js} +2 -2
  64. package/client-dist/{dashboard.module-VSWWQDEU.js → dashboard.module-DGKE2VYI.js} +2 -2
  65. package/client-dist/{do.module-CCOHMJLG.js → do.module-KGRN6IOF.js} +2 -2
  66. package/client-dist/{document-library.module-QLZ4ZUUG.js → document-library.module-5LMFIPBI.js} +2 -2
  67. package/client-dist/{embedding-eval.module-6KORAJ7D.js → embedding-eval.module-N7KMH6CA.js} +2 -2
  68. package/client-dist/{embedding-registry.module-GJJ5G2Y7.js → embedding-registry.module-AJCYMMVZ.js} +2 -2
  69. package/client-dist/{err.module-4GLVR2GJ.js → err.module-5CMF4JOM.js} +2 -2
  70. package/client-dist/{feedback.module-U6CCHRVZ.js → feedback.module-VVZFEQAG.js} +2 -2
  71. package/client-dist/{host-runtime-mcp.module-EV5GZKTL.js → host-runtime-mcp.module-JQ56G3CY.js} +2 -2
  72. package/client-dist/index.html +1 -1
  73. package/client-dist/{live-dev-pipeline.module-MWG23KAS.js → live-dev-pipeline.module-RKRE5PDR.js} +2 -2
  74. package/client-dist/{logs.module-YNDMPESQ.js → logs.module-NL3BXKAF.js} +2 -2
  75. package/client-dist/{main-OGUDQHPL.js → main-PZ2IVIAS.js} +3 -3
  76. package/client-dist/{master-control-remote-poc.module-37OSJYRO.js → master-control-remote-poc.module-MJZ62DLT.js} +2 -2
  77. package/client-dist/{mobile-app.module-2DXC7DFY.js → mobile-app.module-DBJ3DMMR.js} +2 -2
  78. package/client-dist/{model-registry.module-Z64FRB5O.js → model-registry.module-B2TGZ2VL.js} +2 -2
  79. package/client-dist/{oc.module-6SHIJS3R.js → oc.module-PWLDGAT5.js} +2 -2
  80. package/client-dist/{orc.module-NBZZGOV3.js → orc.module-Y3MWFFPS.js} +2 -2
  81. package/client-dist/{project-management.module-TR33UVCV.js → project-management.module-RR7JTB6M.js} +2 -2
  82. package/client-dist/project-source-routed.module-TDZK7ADV.js +2 -0
  83. package/client-dist/{scheduler.module-M3LHP2DW.js → scheduler.module-6RXR7D74.js} +2 -2
  84. package/client-dist/{session.module-FIZ5NYKK.js → session.module-T7FY2G3C.js} +2 -2
  85. package/client-dist/{set.module-4E6WAYIQ.js → set.module-DJWUUFKY.js} +2 -2
  86. package/client-dist/{setup.module-2AUXXLIR.js → setup.module-5JVR766S.js} +2 -2
  87. package/client-dist/{terminals.module-GCGUOFVO.js → terminals.module-KAVYIGUH.js} +2 -2
  88. package/client-dist/{voice-notes-poc.module-6LVDT3MA.js → voice-notes-poc.module-G52JZIUB.js} +2 -2
  89. package/client-dist/{wfs.module-XQGZNMEP.js → wfs.module-JFVPSM33.js} +2 -2
  90. package/package.json +1 -1
  91. package/client-dist/project-source-routed.module-ZZ7SNTUN.js +0 -2
  92. /package/client-dist/{agent-instances.module-EZ3HLJRW.js.map → agent-instances.module-ASSAAKKC.js.map} +0 -0
  93. /package/client-dist/{ca.module-2NK5JZOQ.js.map → ca.module-FQEAVDRQ.js.map} +0 -0
  94. /package/client-dist/{cc-usage-dashboard.component-SLFNE2NX.js.map → cc-usage-dashboard.component-DPGBTA2M.js.map} +0 -0
  95. /package/client-dist/{cc.module-F7LHWQ3A.js.map → cc.module-ESZ3GA6T.js.map} +0 -0
  96. /package/client-dist/{chunk-XO6LJ5A6.js.map → chunk-2BYRRF5C.js.map} +0 -0
  97. /package/client-dist/{chunk-4JZNUGDT.js.map → chunk-2ZOXLQSN.js.map} +0 -0
  98. /package/client-dist/{chunk-L2E2MBF2.js.map → chunk-46BB2C2N.js.map} +0 -0
  99. /package/client-dist/{chunk-SIC2VUD2.js.map → chunk-4CBJKDZ2.js.map} +0 -0
  100. /package/client-dist/{chunk-6UTINZN6.js.map → chunk-4N76KH34.js.map} +0 -0
  101. /package/client-dist/{chunk-4ORBCWDZ.js.map → chunk-53T46BVF.js.map} +0 -0
  102. /package/client-dist/{chunk-MIWIPUJL.js.map → chunk-5LQP4B22.js.map} +0 -0
  103. /package/client-dist/{chunk-WKXTPGKW.js.map → chunk-5S62XNCE.js.map} +0 -0
  104. /package/client-dist/{chunk-XDP5GOHT.js.map → chunk-6X3S3YZW.js.map} +0 -0
  105. /package/client-dist/{chunk-LNDWBFCV.js.map → chunk-73QZZEIR.js.map} +0 -0
  106. /package/client-dist/{chunk-LOUIZXXC.js.map → chunk-7ORL7SUZ.js.map} +0 -0
  107. /package/client-dist/{chunk-LP2E4KMW.js.map → chunk-AIHBM5CY.js.map} +0 -0
  108. /package/client-dist/{chunk-RQSPYGNE.js.map → chunk-AYLNYCQP.js.map} +0 -0
  109. /package/client-dist/{chunk-CK4L2E6A.js.map → chunk-AZEHMI5K.js.map} +0 -0
  110. /package/client-dist/{chunk-CZK7PL4V.js.map → chunk-BWO52PSV.js.map} +0 -0
  111. /package/client-dist/{chunk-SYXQFJNU.js.map → chunk-BWVKRPGK.js.map} +0 -0
  112. /package/client-dist/{chunk-OJPFXL3T.js.map → chunk-CACTWVFX.js.map} +0 -0
  113. /package/client-dist/{chunk-W4ICO22C.js.map → chunk-CQTE7MVB.js.map} +0 -0
  114. /package/client-dist/{chunk-VUMU4S4O.js.map → chunk-D64BCEOM.js.map} +0 -0
  115. /package/client-dist/{chunk-ZRLAS63L.js.map → chunk-EBFOZCAQ.js.map} +0 -0
  116. /package/client-dist/{chunk-SUAZOLRE.js.map → chunk-FUQVSO4Q.js.map} +0 -0
  117. /package/client-dist/{chunk-I5LYGLY6.js.map → chunk-GRFDOP4I.js.map} +0 -0
  118. /package/client-dist/{chunk-ACLAVYA7.js.map → chunk-HAB4OFER.js.map} +0 -0
  119. /package/client-dist/{chunk-SMBU53NX.js.map → chunk-HIVJSBJ2.js.map} +0 -0
  120. /package/client-dist/{chunk-6CNO7CIR.js.map → chunk-HIWI7F6V.js.map} +0 -0
  121. /package/client-dist/{chunk-SAWE7K3L.js.map → chunk-HNWVEC7W.js.map} +0 -0
  122. /package/client-dist/{chunk-565H5Q7X.js.map → chunk-IY2SVG7N.js.map} +0 -0
  123. /package/client-dist/{chunk-TWUEQMEF.js.map → chunk-J7PMNF2L.js.map} +0 -0
  124. /package/client-dist/{chunk-6IVNYSN4.js.map → chunk-KG6O3QAE.js.map} +0 -0
  125. /package/client-dist/{chunk-QYAK3VTE.js.map → chunk-KNFPDRDO.js.map} +0 -0
  126. /package/client-dist/{chunk-HK3NW3BA.js.map → chunk-KOSYBRVL.js.map} +0 -0
  127. /package/client-dist/{chunk-EZQXUBC4.js.map → chunk-KUSGEZL3.js.map} +0 -0
  128. /package/client-dist/{chunk-KOFPH2WQ.js.map → chunk-MR56NI7A.js.map} +0 -0
  129. /package/client-dist/{chunk-7FDRE6FK.js.map → chunk-MRGVT4XV.js.map} +0 -0
  130. /package/client-dist/{chunk-XC26T3JJ.js.map → chunk-N4W36PDR.js.map} +0 -0
  131. /package/client-dist/{chunk-CJXAN5QP.js.map → chunk-OGISLAJH.js.map} +0 -0
  132. /package/client-dist/{chunk-2CZLQZAC.js.map → chunk-OXVOMMBV.js.map} +0 -0
  133. /package/client-dist/{chunk-X3CIXD4W.js.map → chunk-OZICNOZU.js.map} +0 -0
  134. /package/client-dist/{chunk-35HAXCRL.js.map → chunk-PIGUQR6E.js.map} +0 -0
  135. /package/client-dist/{chunk-66YFYBOC.js.map → chunk-Q55FNLZU.js.map} +0 -0
  136. /package/client-dist/{chunk-QM4JVUVN.js.map → chunk-QKWY3HDK.js.map} +0 -0
  137. /package/client-dist/{chunk-I24ZZ4G3.js.map → chunk-R6FVXIG4.js.map} +0 -0
  138. /package/client-dist/{chunk-HKO57F7B.js.map → chunk-SLEHKZ5E.js.map} +0 -0
  139. /package/client-dist/{chunk-CROOTWQ4.js.map → chunk-SSPNTZSH.js.map} +0 -0
  140. /package/client-dist/{chunk-5GCMRTM2.js.map → chunk-T7ZRLQXF.js.map} +0 -0
  141. /package/client-dist/{chunk-M53FIKSO.js.map → chunk-U4ONAI5W.js.map} +0 -0
  142. /package/client-dist/{chunk-ALRGHRMX.js.map → chunk-UDN3ODZX.js.map} +0 -0
  143. /package/client-dist/{chunk-CZVHJQVK.js.map → chunk-UKNYZRZO.js.map} +0 -0
  144. /package/client-dist/{chunk-ZI46JBHS.js.map → chunk-W6IEQCQJ.js.map} +0 -0
  145. /package/client-dist/{chunk-IMV4JDM4.js.map → chunk-WAXX4LS2.js.map} +0 -0
  146. /package/client-dist/{chunk-CPOWA47I.js.map → chunk-WRWUBGVD.js.map} +0 -0
  147. /package/client-dist/{chunk-RTAONMUA.js.map → chunk-Y23QJJM2.js.map} +0 -0
  148. /package/client-dist/{chunk-RJEB2CGY.js.map → chunk-YF6FPXGN.js.map} +0 -0
  149. /package/client-dist/{chunk-PUVXCR3N.js.map → chunk-ZHSPATAR.js.map} +0 -0
  150. /package/client-dist/{chunk-W66474CE.js.map → chunk-ZJB5YCWZ.js.map} +0 -0
  151. /package/client-dist/{consultant.module-ZRSJ2JPM.js.map → consultant.module-DJAKTGHS.js.map} +0 -0
  152. /package/client-dist/{crd.module-TDLM6M2Z.js.map → crd.module-VTQBXMCI.js.map} +0 -0
  153. /package/client-dist/{dashboard.module-VSWWQDEU.js.map → dashboard.module-DGKE2VYI.js.map} +0 -0
  154. /package/client-dist/{do.module-CCOHMJLG.js.map → do.module-KGRN6IOF.js.map} +0 -0
  155. /package/client-dist/{document-library.module-QLZ4ZUUG.js.map → document-library.module-5LMFIPBI.js.map} +0 -0
  156. /package/client-dist/{embedding-eval.module-6KORAJ7D.js.map → embedding-eval.module-N7KMH6CA.js.map} +0 -0
  157. /package/client-dist/{embedding-registry.module-GJJ5G2Y7.js.map → embedding-registry.module-AJCYMMVZ.js.map} +0 -0
  158. /package/client-dist/{err.module-4GLVR2GJ.js.map → err.module-5CMF4JOM.js.map} +0 -0
  159. /package/client-dist/{feedback.module-U6CCHRVZ.js.map → feedback.module-VVZFEQAG.js.map} +0 -0
  160. /package/client-dist/{host-runtime-mcp.module-EV5GZKTL.js.map → host-runtime-mcp.module-JQ56G3CY.js.map} +0 -0
  161. /package/client-dist/{live-dev-pipeline.module-MWG23KAS.js.map → live-dev-pipeline.module-RKRE5PDR.js.map} +0 -0
  162. /package/client-dist/{logs.module-YNDMPESQ.js.map → logs.module-NL3BXKAF.js.map} +0 -0
  163. /package/client-dist/{main-OGUDQHPL.js.map → main-PZ2IVIAS.js.map} +0 -0
  164. /package/client-dist/{master-control-remote-poc.module-37OSJYRO.js.map → master-control-remote-poc.module-MJZ62DLT.js.map} +0 -0
  165. /package/client-dist/{mobile-app.module-2DXC7DFY.js.map → mobile-app.module-DBJ3DMMR.js.map} +0 -0
  166. /package/client-dist/{model-registry.module-Z64FRB5O.js.map → model-registry.module-B2TGZ2VL.js.map} +0 -0
  167. /package/client-dist/{oc.module-6SHIJS3R.js.map → oc.module-PWLDGAT5.js.map} +0 -0
  168. /package/client-dist/{orc.module-NBZZGOV3.js.map → orc.module-Y3MWFFPS.js.map} +0 -0
  169. /package/client-dist/{project-management.module-TR33UVCV.js.map → project-management.module-RR7JTB6M.js.map} +0 -0
  170. /package/client-dist/{project-source-routed.module-ZZ7SNTUN.js.map → project-source-routed.module-TDZK7ADV.js.map} +0 -0
  171. /package/client-dist/{scheduler.module-M3LHP2DW.js.map → scheduler.module-6RXR7D74.js.map} +0 -0
  172. /package/client-dist/{session.module-FIZ5NYKK.js.map → session.module-T7FY2G3C.js.map} +0 -0
  173. /package/client-dist/{set.module-4E6WAYIQ.js.map → set.module-DJWUUFKY.js.map} +0 -0
  174. /package/client-dist/{setup.module-2AUXXLIR.js.map → setup.module-5JVR766S.js.map} +0 -0
  175. /package/client-dist/{terminals.module-GCGUOFVO.js.map → terminals.module-KAVYIGUH.js.map} +0 -0
  176. /package/client-dist/{voice-notes-poc.module-6LVDT3MA.js.map → voice-notes-poc.module-G52JZIUB.js.map} +0 -0
  177. /package/client-dist/{wfs.module-XQGZNMEP.js.map → wfs.module-JFVPSM33.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{c as ne,d as Qe,e as V,f as oe,h as He}from"./chunk-RJEB2CGY.js";import{a as Ge}from"./chunk-MIWIPUJL.js";import"./chunk-ZI46JBHS.js";import"./chunk-CJXAN5QP.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import"./chunk-M53FIKSO.js";import"./chunk-XDP5GOHT.js";import{a as qe}from"./chunk-7JUIBZEE.js";import{b as P,f as Be,g as Ue}from"./chunk-565H5Q7X.js";import{a as ye}from"./chunk-XC26T3JJ.js";import"./chunk-RQSPYGNE.js";import"./chunk-CZVHJQVK.js";import"./chunk-QYAK3VTE.js";import"./chunk-X3CIXD4W.js";import"./chunk-EZQXUBC4.js";import"./chunk-V3VQWJQL.js";import"./chunk-WKXTPGKW.js";import{e as J}from"./chunk-ACLAVYA7.js";import{a as je}from"./chunk-FLAJXIYW.js";import{c as H,f as K,g as pe,h as _e,i as X,j as me,n as ue,o as he,p as fe,s as ze,v as Y}from"./chunk-EO4DNTT4.js";import"./chunk-5UPNU54P.js";import"./chunk-66YFYBOC.js";import{I as We,p as re}from"./chunk-ZJ3DCODZ.js";import{Aa as Le,Ba as Ve,C as x,D as O,E as $e,Eb as Ne,Fa as a,Ga as g,Ha as v,Hb as de,Ia as ce,J as m,K as u,Kb as Q,Ma as N,Na as z,Oa as W,P as Te,T as Ie,Ta as R,U as De,Va as Fe,Z as s,a as ee,aa as b,b as te,ca as Me,da as k,ga as C,h as ie,hb as q,ia as E,k as _,la as f,na as le,oa as D,p as w,pa as M,qa as n,ra as o,sa as A,t as G,ua as S,ub as $,va as p,wa as d,xb as Ae,y as j,z as Re,za as Pe}from"./chunk-TBMJSIBB.js";var B=ie(re());var T=ie(re());var Ke=(()=>{class r{http=x(Ae);baseUrl=`${We.api.baseUrl}/orchestrator`;createOrchestrator(e){return w(this.http.post(this.baseUrl,e))}listOrchestrators(e={}){let t=[];e.projectId&&t.push(`projectId=${encodeURIComponent(e.projectId)}`),e.scope&&t.push(`scope=${encodeURIComponent(e.scope)}`),e.status&&t.push(`status=${encodeURIComponent(e.status)}`);let i=t.length?`?${t.join("&")}`:"";return w(this.http.get(`${this.baseUrl}${i}`))}getOrchestrator(e){return w(this.http.get(`${this.baseUrl}/${e}`))}startOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/start`,{}))}pauseOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/pause`,{}))}resumeOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/resume`,{}))}stopOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/stop`,{}))}listTasks(e,t){let i=t?`?status=${encodeURIComponent(t)}`:"";return w(this.http.get(`${this.baseUrl}/${e}/tasks${i}`))}listMessages(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/messages${i}`))}postUserMessage(e,t){return w(this.http.post(`${this.baseUrl}/${e}/messages`,{rawContent:t}))}listQuestions(e,t=!1){let i=t?"?openOnly=true":"";return w(this.http.get(`${this.baseUrl}/${e}/questions${i}`))}confirmBootstrap(e){return w(this.http.post(`${this.baseUrl}/${e}/bootstrap/confirm`,{}))}submitQuestionAnswer(e,t,i){return w(this.http.post(`${this.baseUrl}/${e}/questions/${t}/answer`,{answer:i}))}switchMode(e,t){return w(this.http.post(`${this.baseUrl}/${e}/mode`,{mode:t}))}getGlobalSummary(){return w(this.http.get(`${this.baseUrl}/summary`))}listWorkflows(e){return w(this.http.get(`${this.baseUrl}/${e}/workflows`))}getWorkflowById(e,t){return w(this.http.get(`${this.baseUrl}/${e}/workflows/${t}`))}listBatches(e){return w(this.http.get(`${this.baseUrl}/${e}/batches`))}listDecisions(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/decisions${i}`))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var I=(()=>{class r{orc_AS=x(Ke);orchestratorListRaw_$=b([]);currentOrchestratorRaw_$=b(null);currentTasksRaw_$=b([]);currentMessagesRaw_$=b([]);isResponseGeneratingRaw_$=b(!1);orchestratorList_$=this.orchestratorListRaw_$.asReadonly();currentOrchestrator_$=this.currentOrchestratorRaw_$.asReadonly();currentTasks_$=this.currentTasksRaw_$.asReadonly();currentMessages_$=this.currentMessagesRaw_$.asReadonly();isResponseGenerating_$=this.isResponseGeneratingRaw_$.asReadonly();activeCount_$=q(()=>this.orchestratorList_$().filter(e=>e.status==="active"||e.status==="bootstrap"||e.status==="waiting-for-user").length);refreshList(){return _(this,null,function*(){try{let e=yield this.orc_AS.listOrchestrators();this.orchestratorListRaw_$.set(e.orchestrators)}catch(e){T.DyFM_Log.error("Orchestrator_DataService | refreshList failed",e)}})}refreshCurrent(e){return _(this,null,function*(){try{let t=yield this.orc_AS.getOrchestrator(e);this.currentOrchestratorRaw_$.set(t.orchestrator)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrent failed",t)}})}refreshCurrentTasks(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listTasks(e);this.currentTasksRaw_$.set(t.tasks)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentTasks failed",t)}})}createOrchestrator(e){return _(this,null,function*(){let t=yield this.orc_AS.createOrchestrator(e);return yield this.refreshList(),t.orchestrator})}startOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.startOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}pauseOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.pauseOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}resumeOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.resumeOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}stopOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.stopOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}confirmBootstrap(e){return _(this,null,function*(){yield this.orc_AS.confirmBootstrap(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}switchMode(e,t){return _(this,null,function*(){yield this.orc_AS.switchMode(e,t),yield this.refreshCurrent(e)})}refreshCurrentMessages(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listMessages(e,100);this.currentMessagesRaw_$.set(t.messages)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentMessages failed",t)}})}setResponseGenerating(e){this.isResponseGeneratingRaw_$.set(e)}clearCurrent(){this.currentOrchestratorRaw_$.set(null),this.currentTasksRaw_$.set([]),this.currentMessagesRaw_$.set([]),this.isResponseGeneratingRaw_$.set(!1)}listWorkflows(e){return _(this,null,function*(){try{return(yield this.orc_AS.listWorkflows(e)).workflows}catch(t){return T.DyFM_Log.error("Orchestrator_DataService | listWorkflows failed",t),[]}})}getWorkflowById(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.getWorkflowById(e,t)).workflow}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | getWorkflowById failed",i),null}})}listMessages(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listMessages(e,t)).messages}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listMessages failed",i),[]}})}postUserMessage(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.postUserMessage(e,t)).message}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | postUserMessage failed",i),null}})}listQuestions(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listQuestions(e,t)).questions}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listQuestions failed",i),[]}})}submitQuestionAnswer(e,t,i){return _(this,null,function*(){try{return(yield this.orc_AS.submitQuestionAnswer(e,t,i)).question}catch(l){return T.DyFM_Log.error("Orchestrator_DataService | submitQuestionAnswer failed",l),null}})}getGlobalSummary(){return _(this,null,function*(){try{return(yield this.orc_AS.getGlobalSummary()).summary}catch(e){return T.DyFM_Log.error("Orchestrator_DataService | getGlobalSummary failed",e),null}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var nt=new Set(["orc:created","orc:statusChanged","orc:started","orc:paused","orc:resumed","orc:stopped","orc:waitingForUser"]),ot=new Set(["orc:statusChanged","orc:modeChanged","orc:iterationStarted","orc:iterationCompleted","orc:decisionAdded","orc:taskCreated","orc:taskStatusChanged","orc:taskCompleted","orc:batchStarted","orc:batchCompleted","orc:agentLaunched","orc:agentCompleted","orc:userQuestionAsked","orc:userQuestionAnswered","orc:messageAdded","orc:bootstrapCompleted","orc:responseStarted","orc:responseCompleted","orc:responseToolCall","orc:responseToolResult"]),at=new Set(["orc:messageAdded","orc:responseToolCall","orc:responseToolResult"]),xe=(()=>{class r{ccapSocket_CS=x(J);orchestrator_DS=x(I);globalSub=null;detailSub=null;responseSub=null;currentOrchestratorId=null;subscribeGlobal(){this.globalSub||(this.globalSub=this.ccapSocket_CS.event$.pipe(G(e=>nt.has(e.event))).subscribe(()=>_(this,null,function*(){yield this.orchestrator_DS.refreshList()})))}subscribeDetail(e){this.unsubscribeDetail(),this.currentOrchestratorId=e,this.detailSub=this.ccapSocket_CS.event$.pipe(G(t=>ot.has(t.event)&&this.isForCurrent(t.payload))).subscribe(t=>_(this,null,function*(){let i=this.currentOrchestratorId;i&&(t.event==="orc:responseStarted"&&this.orchestrator_DS.setResponseGenerating(!0),t.event==="orc:responseCompleted"&&this.orchestrator_DS.setResponseGenerating(!1),yield Promise.all([this.orchestrator_DS.refreshCurrent(i),this.orchestrator_DS.refreshCurrentTasks(i)]))})),this.responseSub=this.ccapSocket_CS.event$.pipe(G(t=>at.has(t.event)&&this.isForCurrent(t.payload))).subscribe(()=>_(this,null,function*(){let t=this.currentOrchestratorId;t&&(yield this.orchestrator_DS.refreshCurrentMessages(t))}))}unsubscribeDetail(){this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.detailSub=null,this.responseSub=null,this.currentOrchestratorId=null}isForCurrent(e){return this.currentOrchestratorId?e?.orchestratorId===this.currentOrchestratorId:!1}ngOnDestroy(){this.globalSub?.unsubscribe(),this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.globalSub=null,this.detailSub=null,this.responseSub=null}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var we=[{id:"orc-wake",label:"Wake",phase:"wake",category:V.milestone},{id:"orc-collect",label:"Collect",phase:"collect",category:V.phase},{id:"orc-analyze",label:"Analyze",phase:"analyze",category:V.llmCall},{id:"orc-sync-tasks",label:"Sync Tasks",phase:"sync-tasks",category:V.phase},{id:"orc-decide-next",label:"Decide Next",phase:"decide-next",category:V.llmCall},{id:"orc-execute",label:"Execute",phase:"execute",category:V.phase},{id:"orc-report",label:"Report",phase:"report",category:V.phase},{id:"orc-sleep",label:"Sleep",phase:"sleep",category:V.milestone}],ae=class{static buildSkeletonLayout(){let c=48+220/2,e=48,t=[],i=[];for(let y=0;y<we.length;y++){let F=we[y],Z=F.category===V.milestone,U=Z?200:220,Oe=Z?48:60,rt=oe.createNode({id:F.id,category:F.category,label:F.label,phase:F.phase,x:c-U/2,y:e,width:U,height:Oe});t.push(rt),y>0&&i.push(oe.createEdge(we[y-1].id,F.id,Qe.sequential)),e+=Oe+36}let l=i.map(y=>{let F=t.find(U=>U.id===y.sourceNodeId),Z=t.find(U=>U.id===y.targetNodeId);return!F||!Z?y:te(ee({},y),{pathD:oe.computeEdgePath(F,Z,y.category)})}),h=oe.recalculateViewBox(t,48);return{nodes:t,edges:l,viewBox:h,loopContainerBounds:null}}};var pt={wake:"orc-wake",collect:"orc-collect",analyze:"orc-analyze","sync-tasks":"orc-sync-tasks","decide-next":"orc-decide-next",execute:"orc-execute",report:"orc-report",sleep:"orc-sleep"},_t=["orc-wake","orc-collect","orc-analyze","orc-sync-tasks","orc-decide-next","orc-execute","orc-report","orc-sleep"],mt=new Set(["orc:iterationStarted","orc:iterationCompleted","orc:statusChanged","orc:started","orc:paused","orc:stopped"]),Ce=(()=>{class r{ccapSocket_CS=x(J);destroyRef=x(Te);graphLayout_$=b(null);activeNodeId_$=b("");selectedNodeId_$=b("");isGraphOpen_$=b(!1);graphOrchestratorId_$=b("");isLoading_$=b(!1);eventSubscription=null;constructor(){this.destroyRef.onDestroy(()=>{this.disposeSubscription()})}openGraph(e){this.disposeSubscription(),this.resetState(),this.graphOrchestratorId_$.set(e),this.isGraphOpen_$.set(!0);let t=ae.buildSkeletonLayout();this.graphLayout_$.set(t),this.eventSubscription=this.ccapSocket_CS.event$.pipe(G(i=>mt.has(i.event)&&i.payload?.orchestratorId===e)).subscribe(i=>{this.applyOrcEvent(i.event,i.payload)})}closeGraph(){this.disposeSubscription(),this.isGraphOpen_$.set(!1),this.selectedNodeId_$.set("")}selectNode(e){let t=this.selectedNodeId_$();this.selectedNodeId_$.set(t===e?"":e)}clearSelection(){this.selectedNodeId_$.set("")}applyOrcEvent(e,t){if(e==="orc:iterationStarted"){this.applyPhaseActive("wake");return}if(e==="orc:iterationCompleted"){this.markAllCompleted();return}if(e==="orc:statusChanged"){let i=t.status;i==="active"&&this.applyPhaseActive("wake"),(i==="paused"||i==="stopped"||i==="failed")&&this.markAllCompleted();return}if(e==="orc:started"){let i=ae.buildSkeletonLayout();this.graphLayout_$.set(i)}}applyPhaseActive(e){let t=pt[e];if(!t)return;let i=this.graphLayout_$();if(!i)return;let l=!1;for(let h of _t)h===t?(i=this.setNodeState(i,h,ne.active),l=!0):l||(i=this.setNodeState(i,h,ne.completed));this.activeNodeId_$.set(t),this.graphLayout_$.set(i)}markAllCompleted(){let e=this.graphLayout_$();if(e){for(let t of e.nodes)t.state!==ne.error&&(e=this.setNodeState(e,t.id,ne.completed));this.activeNodeId_$.set(""),this.graphLayout_$.set(e)}}setNodeState(e,t,i){let l=e.nodes.findIndex(y=>y.id===t);if(l<0)return e;let h=[...e.nodes];return h[l]=te(ee({},h[l]),{state:i}),te(ee({},e),{nodes:h})}resetState(){this.graphLayout_$.set(null),this.activeNodeId_$.set(""),this.selectedNodeId_$.set(""),this.isLoading_$.set(!1)}disposeSubscription(){this.eventSubscription&&(this.eventSubscription.unsubscribe(),this.eventSubscription=null)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var be=ie(re());var ge=class r{static mapAll(c){return c.map(e=>r.mapSingle(e))}static mapSingle(c){let e=r.resolveKind(c),t=c.from==="user";return{listKey:c._id,kind:e,bodyText:c.rawContent,timestampIso:c.__created,toolName:c.toolName??void 0,isUserAligned:t,headerStatusDot:e===P.error?"error":void 0,flags:{showCopy:!0,showRawInfo:!1,useEditDiffForExpandable:!1},toolCallId:c.toolCallId??void 0}}static resolveKind(c){switch(c.messageType){case"user-message":return P.userPrompt;case"orchestrator-response":return P.assistant;case"orchestrator-thinking":return P.thinking;case"tool-call":return P.tool;case"tool-result":return P.toolResult;case"iteration-summary":return P.statusUpdate;case"status-message":return P.info;default:return c.from==="user"?P.userPrompt:P.assistant}}};var ut=["scrollAnchor"],ht=(r,c)=>c.listKey,ft=(r,c)=>c._id;function xt(r,c){if(r&1&&(n(0,"p",14),a(1),o()),r&2){let e=d().$implicit;s(),v("Kontext: ",e.context,"")}}function Ct(r,c){if(r&1){let e=S();n(0,"div",15)(1,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"yes"))}),a(2," Igen "),o(),n(3,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"no"))}),a(4," Nem "),o(),n(5,"button",19),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(6," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),E("bg-green-700",t.selectedChoice[e._id]==="yes")("bg-slate-700",t.selectedChoice[e._id]!=="yes"),s(2),E("bg-red-700",t.selectedChoice[e._id]==="no")("bg-slate-700",t.selectedChoice[e._id]!=="no"),s(2),C("disabled",!t.selectedChoice[e._id])}}function gt(r,c){if(r&1){let e=S();n(0,"label",20)(1,"input",22),p("change",function(){let i=m(e).$implicit,l=d(2).$implicit,h=d(2);return u(h.handleMultipleChoice(l._id,i))}),o(),a(2),o()}if(r&2){let e=c.$implicit,t=d(2).$implicit,i=d(2);s(),C("name",t._id)("value",e)("checked",i.selectedChoice[t._id]===e),s(),v(" ",e," ")}}function bt(r,c){if(r&1){let e=S();n(0,"div",16),D(1,gt,3,4,"label",20,le),n(3,"button",21),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(4," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),M(e.possibleAnswers),s(2),C("disabled",!t.selectedChoice[e._id])}}function yt(r,c){if(r&1){let e=S();n(0,"div",17)(1,"textarea",23),W("ngModelChange",function(i){m(e);let l=d().$implicit,h=d(2);return z(h.answerDrafts[l._id],i)||(h.answerDrafts[l._id]=i),u(i)}),o(),n(2,"button",24),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(3," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),N("ngModel",t.answerDrafts[e._id]),C("name",e._id),s(),C("disabled",!t.answerDrafts[e._id])}}function St(r,c){if(r&1&&(n(0,"div",12)(1,"p",13),a(2),o(),k(3,xt,2,1,"p",14)(4,Ct,7,9,"div",15)(5,bt,5,1,"div",16)(6,yt,4,3,"div",17),o()),r&2){let e=c.$implicit;s(2),g(e.questionText),s(),f(e.context?3:-1),s(),f(e.questionType==="yes-no"?4:-1),s(),f(e.questionType==="multiple-choice"&&e.possibleAnswers?5:-1),s(),f(e.questionType==="open"||e.questionType==="task-priority"?6:-1)}}function wt(r,c){if(r&1&&(n(0,"div",2)(1,"h3",11),a(2),o(),D(3,St,7,5,"div",12,ft),o()),r&2){let e=d();s(2),v("V\xE1laszra v\xE1r\xF3 k\xE9rd\xE9sek (",e.openQuestions_$().length,")"),s(),M(e.openQuestions_$())}}function vt(r,c){if(r&1&&A(0,"app-s-agent-console-message-bubble",4),r&2){let e=c.$implicit;C("view",e)}}function kt(r,c){r&1&&(n(0,"p",5),a(1,"M\xE9g nincs \xFCzenet."),o())}function Et(r,c){r&1&&(n(0,"div",6)(1,"div",25)(2,"span",26),a(3,"ORCHESTRATOR"),o(),n(4,"span",27),a(5,"gondolkodik..."),o()()())}var Ot=new Set(["orc:messageAdded","orc:userQuestionAsked","orc:userQuestionAnswered"]),Je=(()=>{class r extends Ge{orchestrator_DS=x(I);ccapSocket_CS=x(J);orchestratorId;scrollAnchor;questionsRaw_$=b([]);bubbleViews_$=q(()=>ge.mapAll(this.orchestrator_DS.currentMessages_$()));openQuestions_$=this.questionsRaw_$.asReadonly();isResponseGenerating_$=this.orchestrator_DS.isResponseGenerating_$;userInput="";answerDrafts={};selectedChoice={};constructor(){super()}ngOnInit(){this.refresh(),this.addSubscription(this.ccapSocket_CS.event$.pipe(G(e=>Ot.has(e.event)&&e.payload?.orchestratorId===this.orchestratorId)).subscribe(()=>_(this,null,function*(){yield this.refresh(),this.scrollToBottom()})))}handleSendMessage(){return _(this,null,function*(){if(!this.userInput)return;let e=this.userInput;this.userInput="";try{yield this.orchestrator_DS.postUserMessage(this.orchestratorId,e),yield this.orchestrator_DS.refreshCurrentMessages(this.orchestratorId),this.scrollToBottom()}catch(t){be.DyFM_Log.error("ORC_Chat | sendMessage failed",t),this.userInput=e}})}handleSubmitAnswer(e,t){return _(this,null,function*(){let i=t==="multiple-choice"||t==="yes-no"?this.selectedChoice[e]??"":this.answerDrafts[e]??"";if(i)try{yield this.orchestrator_DS.submitQuestionAnswer(this.orchestratorId,e,i),delete this.answerDrafts[e],delete this.selectedChoice[e],yield this.refresh()}catch(l){be.DyFM_Log.error("ORC_Chat | submitAnswer failed",l)}})}handleYesNoChoice(e,t){this.selectedChoice[e]=t}handleMultipleChoice(e,t){this.selectedChoice[e]=t}refresh(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listQuestions(this.orchestratorId,!0);this.questionsRaw_$.set(e)}catch(e){be.DyFM_Log.error("ORC_Chat | refresh failed",e)}})}scrollToBottom(){setTimeout(()=>{this.scrollAnchor?.nativeElement?.scrollIntoView({behavior:"smooth"})},50)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-chat-panel"]],viewQuery:function(t,i){if(t&1&&Pe(ut,5),t&2){let l;Le(l=Ve())&&(i.scrollAnchor=l.first)}},hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[Me,R],decls:15,vars:5,consts:[["scrollAnchor",""],["sChatColumnHeader",""],[1,"bg-cyan-950","border-b","border-cyan-500","p-3","space-y-3"],["sChatColumnScroll","",1,"p-3","space-y-2"],[3,"view"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"flex","gap-2","py-2"],["sChatColumnComposer","",1,"border-t","border-slate-800","p-3"],[1,"flex","gap-2",3,"ngSubmit"],["rows","2","name","userInput","placeholder","\xDCzenet az Orchestrator-nak...",1,"flex-1","bg-slate-800","border","border-slate-700","rounded","px-3","py-2","text-white","text-sm","resize-none",3,"ngModelChange","ngModel"],["type","submit",1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm","self-end","whitespace-nowrap",3,"disabled"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"bg-cyan-900/50","border","border-cyan-700","rounded","p-3","space-y-2"],[1,"text-cyan-100","font-medium","text-sm"],[1,"text-xs","text-cyan-300","italic"],[1,"flex","gap-2"],[1,"space-y-1"],[1,"space-y-2"],[1,"px-3","py-1","rounded","text-sm","font-bold",3,"click"],[1,"ml-auto","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"flex","items-center","gap-2","text-sm","text-slate-200","cursor-pointer"],[1,"mt-2","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],["type","radio",3,"change","name","value","checked"],["rows","2","placeholder","V\xE1lasz...",1,"w-full","bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-sm",3,"ngModelChange","ngModel","name"],[1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"max-w-[80%]","rounded","px-3","py-2","bg-slate-800","text-slate-400","text-sm","animate-pulse"],[1,"font-mono","text-xs"],[1,"ml-2"]],template:function(t,i){if(t&1){let l=S();n(0,"app-s-session-chat-column-layout")(1,"div",1),k(2,wt,5,1,"div",2),o(),n(3,"div",3),D(4,vt,1,1,"app-s-agent-console-message-bubble",4,ht,!1,kt,2,0,"p",5),k(7,Et,6,0,"div",6),A(8,"div",null,0),o(),n(10,"div",7)(11,"form",8),p("ngSubmit",function(){return m(l),u(i.handleSendMessage())}),n(12,"textarea",9),W("ngModelChange",function(y){return m(l),z(i.userInput,y)||(i.userInput=y),u(y)}),o(),n(13,"button",10),a(14," K\xFCld\xE9s "),o()()()()}t&2&&(s(2),f(i.openQuestions_$().length>0?2:-1),s(2),M(i.bubbleViews_$()),s(3),f(i.isResponseGenerating_$()?7:-1),s(5),N("ngModel",i.userInput),s(),C("disabled",!i.userInput))},dependencies:[$,Y,me,H,K,pe,X,_e,Ue,Be],encapsulation:2})}return r})();var Ze=(()=>{class r{graph_DS=x(Ce);isOpen_$=this.graph_DS.isGraphOpen_$;layout_$=this.graph_DS.graphLayout_$;activeNodeId_$=this.graph_DS.activeNodeId_$;selectedNodeId_$=this.graph_DS.selectedNodeId_$;isLoading_$=this.graph_DS.isLoading_$;handleClose(){this.graph_DS.closeGraph()}handleNodeClick(e){this.graph_DS.selectNode(e)}handleDetailClose(){this.graph_DS.clearSelection()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-graph-modal"]],standalone:!0,features:[R],decls:2,vars:6,consts:[["title","Orchestrator Flow Graph","maxWidth","7xl","headerBorderClass","border-cyan-600/30",3,"closed","isOpen","bodyFlexColumn"],[1,"flex-1","min-h-0",3,"nodeClicked","detailClosed","layout","activeNodeId","selectedNodeId","isLoading"]],template:function(t,i){t&1&&(n(0,"app-s-modal",0),p("closed",function(){return i.handleClose()}),n(1,"app-ses-graph-view",1),p("nodeClicked",function(h){return i.handleNodeClick(h)})("detailClosed",function(){return i.handleDetailClose()}),o()()),t&2&&(C("isOpen",i.isOpen_$())("bodyFlexColumn",!0),s(),C("layout",i.layout_$())("activeNodeId",i.activeNodeId_$())("selectedNodeId",i.selectedNodeId_$())("isLoading",i.isLoading_$()))},dependencies:[$,je,He],encapsulation:2})}return r})();var et=(()=>{class r{mode_$=De.required({alias:"mode_$"});modeChanged=Ie();handleToggle(){let t=this.mode_$()==="active"?"passive":"active";this.modeChanged.emit(t)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-mode-switcher"]],inputs:{mode_$:[1,"mode_$"]},outputs:{modeChanged:"modeChanged"},standalone:!0,features:[R],decls:5,vars:18,consts:[[1,"inline-flex","rounded-full","border","border-slate-600","overflow-hidden","text-xs","font-semibold"],["title","Auton\xF3m loop m\xF3d \u2014 az orchestrator \xF6n\xE1ll\xF3an futtatja az iter\xE1ci\xF3kat",1,"px-3","py-1","transition-colors",3,"click","disabled"],["title","Chat m\xF3d \u2014 az orchestrator a user \xFCzenetekre v\xE1laszol",1,"px-3","py-1","transition-colors",3,"click","disabled"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"button",1),p("click",function(){return i.handleToggle()}),a(2," Active Loop "),o(),n(3,"button",2),p("click",function(){return i.handleToggle()}),a(4," Chat Mode "),o()()),t&2&&(s(),E("bg-green-800",i.mode_$()==="active")("text-green-200",i.mode_$()==="active")("bg-transparent",i.mode_$()!=="active")("text-slate-400",i.mode_$()!=="active"),C("disabled",i.mode_$()==="active"),s(2),E("bg-cyan-800",i.mode_$()==="passive")("text-cyan-200",i.mode_$()==="passive")("bg-transparent",i.mode_$()!=="passive")("text-slate-400",i.mode_$()!=="passive"),C("disabled",i.mode_$()==="passive"))},encapsulation:2})}return r})();var Rt=(r,c)=>c._id;function $t(r,c){r&1&&(n(0,"p",31),a(1," Nincs a sz\u0171r\u0151knek megfelel\u0151 task. "),o())}function Tt(r,c){if(r&1&&(n(0,"tr",38)(1,"td",39),a(2),o(),n(3,"td",40),a(4),o(),n(5,"td",41),a(6),o(),n(7,"td",42)(8,"span"),a(9),o()(),n(10,"td",43),a(11),o(),n(12,"td",44),a(13),o()()),r&2){let e=c.$implicit;s(2),g(e.code),s(2),g(e.title),s(2),g(e.type),s(2),E("text-red-400",e.priority==="critical")("text-orange-400",e.priority==="high")("text-slate-400",e.priority==="normal")("text-slate-600",e.priority==="low"),s(),v(" ",e.priority," "),s(2),g(e.source),s(2),v(" ",e.assignedAgentType||"\u2014"," ")}}function It(r,c){if(r&1&&(n(0,"div",32)(1,"div",33),a(2),n(3,"span",34),a(4),o()(),n(5,"table",35)(6,"thead",36)(7,"tr")(8,"th",37),a(9,"Code"),o(),n(10,"th",37),a(11,"Title"),o(),n(12,"th",37),a(13,"Type"),o(),n(14,"th",37),a(15,"Priority"),o(),n(16,"th",37),a(17,"Source"),o(),n(18,"th",37),a(19,"Agent"),o()()(),n(20,"tbody"),D(21,Tt,14,14,"tr",38,Rt),o()()()),r&2){let e=c.$implicit,t=d();s(2),v(" ",e," "),s(2),v("(",t.groupedByStatus_$()[e].length,")"),s(17),M(t.groupedByStatus_$()[e])}}var tt=(()=>{class r{orchestrator_DS=x(I);tasks_$;filterStatus_$=b("all");filterType_$=b("all");filterPriority_$=b("all");searchText_$=b("");filteredTasks_$=q(()=>{let e=this.tasks_$(),t=this.filterStatus_$(),i=this.filterType_$(),l=this.filterPriority_$(),h=this.searchText_$();return e.filter(y=>!(t!=="all"&&y.status!==t||i!=="all"&&y.type!==i||l!=="all"&&y.priority!==l||h.trim()&&!ye.includesText(y.title,h)&&!ye.includesText(y.description,h)))});groupedByStatus_$=q(()=>{let e={};for(let t of this.filteredTasks_$()){let i=t.status;e[i]||(e[i]=[]),e[i].push(t)}return e});statusOrder=["in-progress","waiting-on-agent","waiting-on-user","scheduled","pending","completed","failed","cancelled"];orderedGroupKeys_$=q(()=>{let e=this.groupedByStatus_$();return this.statusOrder.filter(t=>(e[t]?.length??0)>0)});handleFilterStatus(e){this.filterStatus_$.set(e)}handleFilterType(e){this.filterType_$.set(e)}handleFilterPriority(e){this.filterPriority_$.set(e)}handleSearchText(e){this.searchText_$.set(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-task-queue-panel"]],inputs:{tasks_$:"tasks_$"},standalone:!0,features:[R],decls:62,vars:7,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-2"],["name","filterStatus",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","all"],["value","pending"],["value","scheduled"],["value","in-progress"],["value","waiting-on-user"],["value","waiting-on-agent"],["value","completed"],["value","failed"],["value","cancelled"],["name","filterType",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","implementation"],["value","bug-fix"],["value","review"],["value","documentation"],["value","refactor"],["value","research"],["value","spec-extension"],["value","maintenance"],["value","bootstrap-project-cleanup"],["name","filterPriority",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","critical"],["value","high"],["value","normal"],["value","low"],["name","searchText","placeholder","Keres\xE9s c\xEDm / le\xEDr\xE1s...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"bg-slate-950","border","border-slate-800","rounded","overflow-hidden"],[1,"bg-slate-800","px-3","py-1","text-xs","font-bold","text-slate-300","uppercase","tracking-wider"],[1,"text-slate-500","ml-2"],[1,"w-full","text-xs"],[1,"bg-slate-900"],[1,"text-left","px-2","py-1","text-slate-400","font-normal"],[1,"border-t","border-slate-800","hover:bg-slate-800/30"],[1,"px-2","py-1","font-mono","text-cyan-400"],[1,"px-2","py-1","text-slate-200"],[1,"px-2","py-1","text-slate-400"],[1,"px-2","py-1"],[1,"px-2","py-1","text-slate-500"],[1,"px-2","py-1","text-slate-400","text-xs"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Task Queue"),o(),n(4,"span",3),a(5),o()(),n(6,"div",4)(7,"select",5),p("ngModelChange",function(h){return i.handleFilterStatus(h)}),n(8,"option",6),a(9,"\xD6sszes st\xE1tusz"),o(),n(10,"option",7),a(11,"pending"),o(),n(12,"option",8),a(13,"scheduled"),o(),n(14,"option",9),a(15,"in-progress"),o(),n(16,"option",10),a(17,"waiting-on-user"),o(),n(18,"option",11),a(19,"waiting-on-agent"),o(),n(20,"option",12),a(21,"completed"),o(),n(22,"option",13),a(23,"failed"),o(),n(24,"option",14),a(25,"cancelled"),o()(),n(26,"select",15),p("ngModelChange",function(h){return i.handleFilterType(h)}),n(27,"option",6),a(28,"\xD6sszes t\xEDpus"),o(),n(29,"option",16),a(30,"implementation"),o(),n(31,"option",17),a(32,"bug-fix"),o(),n(33,"option",18),a(34,"review"),o(),n(35,"option",19),a(36,"documentation"),o(),n(37,"option",20),a(38,"refactor"),o(),n(39,"option",21),a(40,"research"),o(),n(41,"option",22),a(42,"spec-extension"),o(),n(43,"option",23),a(44,"maintenance"),o(),n(45,"option",24),a(46,"bootstrap"),o()(),n(47,"select",25),p("ngModelChange",function(h){return i.handleFilterPriority(h)}),n(48,"option",6),a(49,"\xD6sszes priorit\xE1s"),o(),n(50,"option",26),a(51,"critical"),o(),n(52,"option",27),a(53,"high"),o(),n(54,"option",28),a(55,"normal"),o(),n(56,"option",29),a(57,"low"),o()(),n(58,"input",30),p("ngModelChange",function(h){return i.handleSearchText(h)}),o()(),k(59,$t,2,0,"p",31),D(60,It,23,2,"div",32,le),o()),t&2&&(s(5),ce(" ",i.filteredTasks_$().length," / ",i.tasks_$().length," task "),s(2),C("ngModel",i.filterStatus_$()),s(19),C("ngModel",i.filterType_$()),s(21),C("ngModel",i.filterPriority_$()),s(11),C("ngModel",i.searchText_$()),s(),f(i.orderedGroupKeys_$().length===0?59:-1),s(),M(i.orderedGroupKeys_$()))},dependencies:[$,Y,he,fe,H,ue,K,X],encapsulation:2})}return r})();var ve=ie(re());var Dt=(r,c)=>c.id;function Mt(r,c){r&1&&(n(0,"p",4),a(1,"Nincs bet\xF6lt\xF6tt workflow."),o())}function Pt(r,c){if(r&1){let e=S();n(0,"div",8),p("click",function(){let i=m(e).$implicit,l=d();return u(l.handleOpenDetails(i.id))}),n(1,"h3",9),a(2),o(),n(3,"p",10),a(4),o()()}if(r&2){let e=c.$implicit;s(2),g(e.name),s(2),g(e.summary)}}function Lt(r,c){if(r&1){let e=S();n(0,"div",11),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),n(1,"div",12),p("click",function(i){return m(e),u(i.stopPropagation())}),n(2,"div",13)(3,"h3",14),a(4),o(),n(5,"button",15),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),a(6,"\u2715"),o()(),n(7,"pre",16),a(8),o()()()}if(r&2){let e=c;s(4),g(e.filename),s(4),g(e.rawText)}}var it=(()=>{class r{orchestrator_DS=x(I);orchestratorId;workflowsRaw_$=b([]);selectedRaw_$=b(null);loadingRaw_$=b(!1);workflows_$=this.workflowsRaw_$.asReadonly();selected_$=this.selectedRaw_$.asReadonly();loading_$=this.loadingRaw_$.asReadonly();ngOnInit(){this.loadList()}handleOpenDetails(e){return _(this,null,function*(){try{this.loadingRaw_$.set(!0);let t=yield this.orchestrator_DS.getWorkflowById(this.orchestratorId,e);this.selectedRaw_$.set(t)}catch(t){ve.DyFM_Log.error("WorkflowLibrary | getWorkflow failed",t)}finally{this.loadingRaw_$.set(!1)}})}handleCloseDetails(){this.selectedRaw_$.set(null)}loadList(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listWorkflows(this.orchestratorId);this.workflowsRaw_$.set(e)}catch(e){ve.DyFM_Log.error("WorkflowLibrary | listWorkflows failed",e)}})}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-workflow-library-panel"]],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[R],decls:11,vars:3,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"text-sm","text-slate-500","italic"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-2"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition",3,"click"],[1,"text-cyan-400","font-mono","text-sm"],[1,"text-xs","text-slate-400","mt-1","line-clamp-3"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50",3,"click"],[1,"bg-slate-900","border","border-cyan-700","rounded","p-4","max-w-3xl","max-h-[80vh]","overflow-auto","w-full",2,"max-height","80dvh",3,"click"],[1,"flex","items-center","justify-between","mb-3"],[1,"text-cyan-300","font-bold"],[1,"text-slate-400","hover:text-white",3,"click"],[1,"text-xs","text-slate-200","whitespace-pre-wrap","font-mono"]],template:function(t,i){if(t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Workflow Library"),o(),n(4,"span",3),a(5),o()(),k(6,Mt,2,0,"p",4),n(7,"div",5),D(8,Pt,5,2,"div",6,Dt),o(),k(10,Lt,9,2,"div",7),o()),t&2){let l;s(5),v("",i.workflows_$().length," workflow"),s(),f(i.workflows_$().length===0?6:-1),s(2),M(i.workflows_$()),s(2),f((l=i.selected_$())?10:-1,l)}},dependencies:[$],encapsulation:2})}return r})();function Ft(r,c){if(r&1){let e=S();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleStart())}),a(1,"Start"),o()}}function At(r,c){if(r&1){let e=S();n(0,"button",28),p("click",function(){m(e);let i=d(2);return u(i.handlePause())}),a(1,"Pause"),o()}}function Nt(r,c){if(r&1){let e=S();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleResume())}),a(1,"Resume"),o()}}function zt(r,c){if(r&1){let e=S();n(0,"button",29),p("click",function(){m(e);let i=d(2);return u(i.handleStop())}),a(1,"Stop"),o()}}function Wt(r,c){if(r&1){let e=S();n(0,"div",18)(1,"div")(2,"h3",30),a(3,"Bootstrap \u2014 user j\xF3v\xE1hagy\uFFFD\uFFFDs sz\xFCks\xE9ges"),o(),n(4,"p",31),a(5,"N\xE9zd \xE1t a task-list\xE1t, \xE9s kattints az Elfogadom gombra."),o()(),n(6,"button",32),p("click",function(){m(e);let i=d(2);return u(i.handleConfirmBootstrap())}),a(7," Elfogadom "),o()()}}function Gt(r,c){if(r&1&&A(0,"app-orc-task-queue-panel",24),r&2){let e=d(2);C("tasks_$",e.tasks_$)}}function jt(r,c){if(r&1&&A(0,"app-orc-workflow-library-panel",25),r&2){let e,t=d(2);C("orchestratorId",(e=t.orchestratorId)!==null&&e!==void 0?e:"")}}function qt(r,c){if(r&1&&(n(0,"div",26)(1,"div")(2,"span",33),a(3,"Scope"),o(),n(4,"span",34),a(5),o()(),n(6,"div")(7,"span",33),a(8,"Projekt"),o(),n(9,"span",35),a(10),o()(),n(11,"div")(12,"span",33),a(13,"LLM"),o(),n(14,"span",34),a(15),o()(),n(16,"div")(17,"span",33),a(18,"Iter\xE1ci\xF3"),o(),n(19,"span",36),a(20),o()(),n(21,"div")(22,"span",33),a(23,"Max parallel"),o(),n(24,"span",36),a(25),o()(),n(26,"div")(27,"span",33),a(28,"Poll (s)"),o(),n(29,"span",36),a(30),o()(),n(31,"div")(32,"span",33),a(33,"Mode"),o(),n(34,"span",34),a(35),o()()()),r&2){let e=d();s(5),g(e.scope),s(5),g(e.projectId||"\u2014"),s(5),ce("",e.providerName," / ",e.model,""),s(5),g(e.iterationCount),s(5),g(e.maxParallelism),s(5),g(e.pollIntervalSeconds),s(5),g(e.operationMode)}}function Bt(r,c){if(r&1){let e=S();n(0,"app-s-session-detail-three-column-layout",2),p("endResizeStart",function(i){m(e);let l=d();return u(l.handleSidebarResizeStart(i))}),n(1,"div",3)(2,"div",4)(3,"a",5),a(4,"\u2190"),o(),n(5,"div",6)(6,"h1",7),a(7),o(),n(8,"p",8),a(9),o()(),n(10,"span",9),a(11),o(),n(12,"app-orc-mode-switcher",10),p("modeChanged",function(i){m(e);let l=d();return u(l.handleModeSwitch(i))}),o(),A(13,"span",11),n(14,"div",12),k(15,Ft,2,0,"button",13)(16,At,2,0,"button",14)(17,Nt,2,0,"button",13)(18,zt,2,0,"button",15),o(),n(19,"button",16),p("click",function(){m(e);let i=d();return u(i.handleOpenGraph())}),a(20," Graph "),o(),n(21,"button",17),p("click",function(){m(e);let i=d();return u(i.handleToggleSidebar())}),a(22),o()(),k(23,Wt,8,0,"div",18),A(24,"app-orc-chat-panel",19),o(),n(25,"div",20)(26,"div",21)(27,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="tasks")}),a(28),o(),n(29,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="workflows")}),a(30," Workflows "),o(),n(31,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="info")}),a(32," Info "),o()(),n(33,"div",23),k(34,Gt,1,1,"app-orc-task-queue-panel",24)(35,jt,1,1,"app-orc-workflow-library-panel",25)(36,qt,36,8,"div",26),o()()()}if(r&2){let e,t=c,i=d();C("isStartOpen",!1)("isEndOpen",i.isSidebarOpen)("endWidthPx",i.sidebarWidthPx)("isResizing",i.isResizing),s(7),g(t.name),s(2),g(t._id),s(),E("bg-green-900",t.status==="active")("text-green-300",t.status==="active")("bg-yellow-900",t.status==="paused")("text-yellow-300",t.status==="paused")("bg-cyan-900",t.status==="waiting-for-user"||t.status==="bootstrap")("text-cyan-300",t.status==="waiting-for-user"||t.status==="bootstrap")("bg-red-900",t.status==="failed")("text-red-300",t.status==="failed")("bg-slate-700",t.status==="stopped"||t.status==="initializing")("text-slate-300",t.status==="stopped"||t.status==="initializing"),s(),v(" ",t.status," "),s(),C("mode_$",t.operationMode),s(3),f(t.status==="initializing"||t.status==="paused"||t.status==="stopped"?15:-1),s(),f(t.status==="active"?16:-1),s(),f(t.status==="paused"?17:-1),s(),f(t.status!=="stopped"?18:-1),s(4),v(" ",i.isSidebarOpen?"\u25B6":"\u25C0"," "),s(),f(t.status==="waiting-for-user"?23:-1),s(),C("orchestratorId",(e=i.orchestratorId)!==null&&e!==void 0?e:""),s(3),E("text-cyan-300",i.sidebarTab==="tasks")("border-b-2",i.sidebarTab==="tasks")("border-cyan-400",i.sidebarTab==="tasks")("text-slate-500",i.sidebarTab!=="tasks"),s(),v(" Tasks (",i.tasks_$().length,") "),s(),E("text-cyan-300",i.sidebarTab==="workflows")("border-b-2",i.sidebarTab==="workflows")("border-cyan-400",i.sidebarTab==="workflows")("text-slate-500",i.sidebarTab!=="workflows"),s(2),E("text-cyan-300",i.sidebarTab==="info")("border-b-2",i.sidebarTab==="info")("border-cyan-400",i.sidebarTab==="info")("text-slate-500",i.sidebarTab!=="info"),s(3),f(i.sidebarTab==="tasks"?34:-1),s(),f(i.sidebarTab==="workflows"?35:-1),s(),f(i.sidebarTab==="info"?36:-1)}}function Ut(r,c){r&1&&(n(0,"div",1),a(1," T\xF6lt\u0151dik az orchestrator\u2026 "),o())}var ke=(()=>{class r{route=x(Ne);orchestrator_DS=x(I);realtime_CS=x(xe);graph_DS=x(Ce);current_$=this.orchestrator_DS.currentOrchestrator_$;tasks_$=this.orchestrator_DS.currentTasks_$;orchestratorId=null;isSidebarOpen=!0;sidebarWidthPx=320;isResizing=!1;sidebarTab="tasks";resizeStartX=0;resizeStartWidth=0;onResizeMove=e=>this.handleSidebarResizeMove(e);onResizeEnd=()=>this.handleSidebarResizeEnd();ngOnInit(){this.orchestratorId=this.route.snapshot.paramMap.get("id"),this.orchestratorId&&(this.orchestrator_DS.refreshCurrent(this.orchestratorId),this.orchestrator_DS.refreshCurrentTasks(this.orchestratorId),this.orchestrator_DS.refreshCurrentMessages(this.orchestratorId),this.realtime_CS.subscribeDetail(this.orchestratorId))}ngOnDestroy(){this.realtime_CS.unsubscribeDetail(),this.orchestrator_DS.clearCurrent(),document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}handleStart(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.startOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | start failed",e)}})}handlePause(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.pauseOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | pause failed",e)}})}handleResume(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.resumeOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | resume failed",e)}})}handleStop(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.stopOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | stop failed",e)}})}handleConfirmBootstrap(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.confirmBootstrap(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | confirmBootstrap failed",e)}})}handleModeSwitch(e){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.switchMode(this.orchestratorId,e)}catch(t){B.DyFM_Log.error("ORC_Detail | switchMode failed",t)}})}handleOpenGraph(){this.orchestratorId&&this.graph_DS.openGraph(this.orchestratorId)}handleToggleSidebar(){this.isSidebarOpen=!this.isSidebarOpen}handleSidebarResizeStart(e){this.isResizing=!0,this.resizeStartX=e.clientX,this.resizeStartWidth=this.sidebarWidthPx,document.addEventListener("pointermove",this.onResizeMove),document.addEventListener("pointerup",this.onResizeEnd)}handleSidebarResizeMove(e){let t=this.resizeStartX-e.clientX;this.sidebarWidthPx=Math.max(200,Math.min(600,this.resizeStartWidth+t))}handleSidebarResizeEnd(){this.isResizing=!1,document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-detail"]],hostAttrs:[1,"flex","flex-1","min-h-0","overflow-hidden"],standalone:!0,features:[R],decls:3,vars:1,consts:[[3,"isStartOpen","isEndOpen","endWidthPx","isResizing"],[1,"flex","items-center","justify-center","h-full","text-slate-500"],[3,"endResizeStart","isStartOpen","isEndOpen","endWidthPx","isResizing"],["sDetailColumnMain","",1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],[1,"flex","items-center","gap-3","px-4","py-3","border-b","border-slate-800","bg-slate-900","shrink-0"],["routerLink","/orchestrator",1,"text-cyan-400","hover:text-cyan-300","text-sm"],[1,"min-w-0"],[1,"text-lg","font-bold","text-cyan-300","truncate"],[1,"text-xs","text-slate-500","font-mono","truncate"],[1,"px-2","py-0.5","rounded","text-xs","font-bold","shrink-0"],[3,"modeChanged","mode_$"],[1,"flex-1"],[1,"flex","gap-1","shrink-0"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],["title","Flow Graph",1,"px-2","py-1","border","border-cyan-700","text-cyan-400","hover:bg-cyan-900/30","rounded","text-xs","transition-colors","shrink-0",3,"click"],["title","Task queue sidebar",1,"px-2","py-1","border","border-slate-600","text-slate-400","hover:bg-slate-700/50","rounded","text-xs","transition-colors","shrink-0",3,"click"],[1,"bg-cyan-950","border-b","border-cyan-500","px-4","py-3","flex","items-center","justify-between","animate-pulse","shrink-0"],[1,"flex-1","min-h-0",3,"orchestratorId"],["sDetailColumnEnd","",1,"flex","flex-col","min-h-0","overflow-hidden"],[1,"flex","border-b","border-slate-800","shrink-0"],[1,"flex-1","px-3","py-2","text-xs","font-semibold","transition-colors",3,"click"],[1,"flex-1","overflow-y-auto","min-h-0"],[3,"tasks_$"],[3,"orchestratorId"],[1,"p-3","space-y-2","text-sm"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"text-xs","text-cyan-200","mt-1"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition","whitespace-nowrap","text-sm",3,"click"],[1,"text-xs","text-slate-500","block"],[1,"text-slate-200"],[1,"text-slate-200","font-mono","text-xs"],[1,"text-slate-200","font-mono"]],template:function(t,i){if(t&1&&(k(0,Bt,37,63,"app-s-session-detail-three-column-layout",0)(1,Ut,2,0,"div",1),A(2,"app-orc-graph-modal")),t&2){let l;f((l=i.current_$())?0:1,l)}},dependencies:[$,Q,de,qe,Je,Ze,et,tt,it],encapsulation:2})}return r})();var se=ie(re());var Qt=(r,c)=>c._id,Ht=r=>["/orchestrator",r];function Kt(r,c){if(r&1){let e=S();n(0,"button",12),p("click",function(){m(e);let i=d();return u(i.openForm())}),a(1," + \xDAj Orchestrator "),o()}}function Xt(r,c){if(r&1&&(n(0,"div",27),a(1),o()),r&2){let e=d(2);s(),v(" ",e.formError," ")}}function Yt(r,c){if(r&1){let e=S();n(0,"form",13),p("ngSubmit",function(){m(e);let i=d();return u(i.handleSubmitForm())}),n(1,"h2",14),a(2,"\xDAj Orchestrator"),o(),n(3,"div",15)(4,"label",16)(5,"span",17),a(6,"N\xE9v *"),o(),n(7,"input",18),W("ngModelChange",function(i){m(e);let l=d();return z(l.formName,i)||(l.formName=i),u(i)}),o()(),n(8,"label",16)(9,"span",17),a(10,"Scope"),o(),n(11,"select",19),W("ngModelChange",function(i){m(e);let l=d();return z(l.formScope,i)||(l.formScope=i),u(i)}),n(12,"option",20),a(13,"single-project"),o(),n(14,"option",21),a(15,"cross-project"),o(),n(16,"option",22),a(17,"specialized"),o()()(),n(18,"label",16)(19,"span",17),a(20,"Projekt ID"),o(),n(21,"input",23),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProjectId,i)||(l.formProjectId=i),u(i)}),o()(),n(22,"label",16)(23,"span",17),a(24,"LLM Provider"),o(),n(25,"input",24),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProviderName,i)||(l.formProviderName=i),u(i)}),o()(),n(26,"label",25)(27,"span",17),a(28,"Modell"),o(),n(29,"input",26),W("ngModelChange",function(i){m(e);let l=d();return z(l.formModel,i)||(l.formModel=i),u(i)}),o()()(),k(30,Xt,2,1,"div",27),n(31,"div",28)(32,"button",29),p("click",function(){m(e);let i=d();return u(i.closeForm())}),a(33," M\xE9gse "),o(),n(34,"button",30),a(35," L\xE9trehoz\xE1s "),o()()()}if(r&2){let e=d();s(7),N("ngModel",e.formName),s(4),N("ngModel",e.formScope),s(10),N("ngModel",e.formProjectId),s(4),N("ngModel",e.formProviderName),s(4),N("ngModel",e.formModel),s(),f(e.formError?30:-1)}}function Jt(r,c){if(r&1){let e=S();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStart(i._id))}),a(1," start "),o()}}function Zt(r,c){if(r&1){let e=S();n(0,"button",42),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handlePause(i._id))}),a(1," pause "),o()}}function ei(r,c){if(r&1){let e=S();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleResume(i._id))}),a(1," resume "),o()}}function ti(r,c){if(r&1){let e=S();n(0,"button",43),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStop(i._id))}),a(1," stop "),o()}}function ii(r,c){if(r&1&&(n(0,"tr",11)(1,"td",31)(2,"a",32),a(3),o()(),n(4,"td",33),a(5),o(),n(6,"td",34),a(7),o(),n(8,"td",31)(9,"span",35),a(10),o()(),n(11,"td",36),a(12),o(),n(13,"td",37),k(14,Jt,2,0,"button",38)(15,Zt,2,0,"button",39)(16,ei,2,0,"button",38)(17,ti,2,0,"button",40),o()()),r&2){let e=c.$implicit;s(2),C("routerLink",Fe(30,Ht,e._id)),s(),v(" ",e.name," "),s(2),g(e.scope),s(2),v(" ",e.projectId||e.projectIds.join(",")||"\u2014"," "),s(2),E("bg-green-900",e.status==="active")("text-green-300",e.status==="active")("bg-yellow-900",e.status==="paused")("text-yellow-300",e.status==="paused")("bg-cyan-900",e.status==="waiting-for-user"||e.status==="bootstrap")("text-cyan-300",e.status==="waiting-for-user"||e.status==="bootstrap")("bg-red-900",e.status==="failed")("text-red-300",e.status==="failed")("bg-slate-700",e.status==="stopped"||e.status==="initializing")("text-slate-300",e.status==="stopped"||e.status==="initializing"),s(),v(" ",e.status," "),s(2),g(e.iterationCount),s(2),f(e.status==="initializing"||e.status==="paused"||e.status==="stopped"?14:-1),s(),f(e.status==="active"?15:-1),s(),f(e.status==="paused"?16:-1),s(),f(e.status!=="stopped"?17:-1)}}function ri(r,c){r&1&&(n(0,"tr")(1,"td",44),a(2,' Nincs Orchestrator. Kattints a \u201E+ \xDAj Orchestrator" gombra. '),o()())}var Ee=(()=>{class r{orchestrator_DS=x(I);realtime_CS=x(xe);orchestratorList_$=this.orchestrator_DS.orchestratorList_$;activeCount_$=this.orchestrator_DS.activeCount_$;formName="";formScope="single-project";formProjectId="";formProviderName="";formModel="";formIsOpen=!1;formError=null;ngOnInit(){this.realtime_CS.subscribeGlobal(),this.orchestrator_DS.refreshList()}openForm(){this.formIsOpen=!0,this.formError=null}closeForm(){this.formIsOpen=!1,this.formName="",this.formProjectId="",this.formProviderName="",this.formModel="",this.formError=null}handleSubmitForm(){return _(this,null,function*(){try{if(!this.formName.trim()){this.formError="N\xE9v megad\xE1sa k\xF6telez\u0151.";return}yield this.orchestrator_DS.createOrchestrator({name:this.formName.trim(),scope:this.formScope,projectId:this.formProjectId.trim()||void 0,providerName:this.formProviderName.trim()||void 0,model:this.formModel.trim()||void 0}),this.closeForm()}catch(e){this.formError=this.extractErrorMessage(e)}})}handleStart(e){return _(this,null,function*(){try{yield this.orchestrator_DS.startOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | start failed",t)}})}handlePause(e){return _(this,null,function*(){try{yield this.orchestrator_DS.pauseOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | pause failed",t)}})}handleResume(e){return _(this,null,function*(){try{yield this.orchestrator_DS.resumeOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | resume failed",t)}})}handleStop(e){return _(this,null,function*(){try{yield this.orchestrator_DS.stopOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | stop failed",t)}})}extractErrorMessage(e){return typeof e=="object"&&e!==null&&"message"in e?String(e.message):String(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-list"]],standalone:!0,features:[R],decls:31,vars:4,consts:[[1,"p-6","space-y-4"],[1,"flex","items-center","justify-between"],[1,"text-2xl","font-bold","text-cyan-300"],[1,"text-sm","text-slate-400"],[1,"text-green-400","font-mono"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3"],[1,"overflow-x-auto","bg-slate-900","border","border-slate-800","rounded"],[1,"w-full","text-sm"],[1,"bg-slate-800","text-slate-300"],[1,"text-left","px-3","py-2"],[1,"border-t","border-slate-800","hover:bg-slate-800/50"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition",3,"click"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3",3,"ngSubmit"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-3"],[1,"flex","flex-col","gap-1"],[1,"text-xs","text-slate-400"],["name","name","required","",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","scope",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["value","single-project"],["value","cross-project"],["value","specialized"],["name","projectId",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","providerName","placeholder","openai / anthropic / ...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-1","md:col-span-2"],["name","model",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"bg-red-900","border","border-red-700","rounded","px-3","py-2","text-red-200","text-sm"],[1,"flex","gap-2","justify-end"],["type","button",1,"px-3","py-1","text-slate-400","hover:text-white",3,"click"],["type","submit",1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded"],[1,"px-3","py-2"],[1,"text-cyan-400","hover:text-cyan-300","font-mono",3,"routerLink"],[1,"px-3","py-2","text-slate-400"],[1,"px-3","py-2","text-slate-400","font-mono","text-xs"],[1,"px-2","py-0.5","rounded","text-xs","font-bold"],[1,"px-3","py-2","text-slate-500","font-mono"],[1,"px-3","py-2","space-x-1"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],["colspan","6",1,"px-3","py-6","text-center","text-slate-500"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h1",2),a(4,"Orchestrator Agents"),o(),n(5,"p",3),a(6," Akt\xEDv: "),n(7,"span",4),a(8),o()()(),k(9,Kt,2,0,"button",5),o(),k(10,Yt,36,6,"form",6),n(11,"div",7)(12,"table",8)(13,"thead",9)(14,"tr")(15,"th",10),a(16,"N\xE9v"),o(),n(17,"th",10),a(18,"Scope"),o(),n(19,"th",10),a(20,"Projekt"),o(),n(21,"th",10),a(22,"St\xE1tusz"),o(),n(23,"th",10),a(24,"Iter#"),o(),n(25,"th",10),a(26,"M\u0171veletek"),o()()(),n(27,"tbody"),D(28,ii,18,32,"tr",11,Qt,!1,ri,3,0,"tr"),o()()()()),t&2&&(s(8),g(i.activeCount_$()),s(),f(i.formIsOpen?-1:9),s(),f(i.formIsOpen?10:-1),s(18),M(i.orchestratorList_$()))},dependencies:[$,Y,me,he,fe,H,ue,K,pe,ze,X,_e,Q,de],encapsulation:2})}return r})();var ni=[{path:"",pathMatch:"full",component:Ee},{path:":id",component:ke}],Zr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=$e({type:r});static \u0275inj=Re({imports:[$,Q.forChild(ni),Ee,ke]})}return r})();export{Zr as Orchestrator_Module};
2
- //# sourceMappingURL=orc.module-NBZZGOV3.js.map
1
+ import{c as ne,d as Qe,e as V,f as oe,h as He}from"./chunk-YF6FPXGN.js";import{a as Ge}from"./chunk-5LQP4B22.js";import"./chunk-W6IEQCQJ.js";import"./chunk-OGISLAJH.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import"./chunk-U4ONAI5W.js";import"./chunk-6X3S3YZW.js";import{a as qe}from"./chunk-7JUIBZEE.js";import{b as P,f as Be,g as Ue}from"./chunk-IY2SVG7N.js";import{a as ye}from"./chunk-N4W36PDR.js";import"./chunk-AYLNYCQP.js";import"./chunk-UKNYZRZO.js";import"./chunk-KNFPDRDO.js";import"./chunk-OZICNOZU.js";import"./chunk-KUSGEZL3.js";import"./chunk-V3VQWJQL.js";import"./chunk-5S62XNCE.js";import{e as J}from"./chunk-HAB4OFER.js";import{a as je}from"./chunk-FLAJXIYW.js";import{c as H,f as K,g as pe,h as _e,i as X,j as me,n as ue,o as he,p as fe,s as ze,v as Y}from"./chunk-EO4DNTT4.js";import"./chunk-5UPNU54P.js";import"./chunk-Q55FNLZU.js";import{I as We,p as re}from"./chunk-SLJL7HAM.js";import{Aa as Le,Ba as Ve,C as x,D as O,E as $e,Eb as Ne,Fa as a,Ga as g,Ha as v,Hb as de,Ia as ce,J as m,K as u,Kb as Q,Ma as N,Na as z,Oa as W,P as Te,T as Ie,Ta as R,U as De,Va as Fe,Z as s,a as ee,aa as b,b as te,ca as Me,da as k,ga as C,h as ie,hb as q,ia as E,k as _,la as f,na as le,oa as D,p as w,pa as M,qa as n,ra as o,sa as A,t as G,ua as S,ub as $,va as p,wa as d,xb as Ae,y as j,z as Re,za as Pe}from"./chunk-TBMJSIBB.js";var B=ie(re());var T=ie(re());var Ke=(()=>{class r{http=x(Ae);baseUrl=`${We.api.baseUrl}/orchestrator`;createOrchestrator(e){return w(this.http.post(this.baseUrl,e))}listOrchestrators(e={}){let t=[];e.projectId&&t.push(`projectId=${encodeURIComponent(e.projectId)}`),e.scope&&t.push(`scope=${encodeURIComponent(e.scope)}`),e.status&&t.push(`status=${encodeURIComponent(e.status)}`);let i=t.length?`?${t.join("&")}`:"";return w(this.http.get(`${this.baseUrl}${i}`))}getOrchestrator(e){return w(this.http.get(`${this.baseUrl}/${e}`))}startOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/start`,{}))}pauseOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/pause`,{}))}resumeOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/resume`,{}))}stopOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/stop`,{}))}listTasks(e,t){let i=t?`?status=${encodeURIComponent(t)}`:"";return w(this.http.get(`${this.baseUrl}/${e}/tasks${i}`))}listMessages(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/messages${i}`))}postUserMessage(e,t){return w(this.http.post(`${this.baseUrl}/${e}/messages`,{rawContent:t}))}listQuestions(e,t=!1){let i=t?"?openOnly=true":"";return w(this.http.get(`${this.baseUrl}/${e}/questions${i}`))}confirmBootstrap(e){return w(this.http.post(`${this.baseUrl}/${e}/bootstrap/confirm`,{}))}submitQuestionAnswer(e,t,i){return w(this.http.post(`${this.baseUrl}/${e}/questions/${t}/answer`,{answer:i}))}switchMode(e,t){return w(this.http.post(`${this.baseUrl}/${e}/mode`,{mode:t}))}getGlobalSummary(){return w(this.http.get(`${this.baseUrl}/summary`))}listWorkflows(e){return w(this.http.get(`${this.baseUrl}/${e}/workflows`))}getWorkflowById(e,t){return w(this.http.get(`${this.baseUrl}/${e}/workflows/${t}`))}listBatches(e){return w(this.http.get(`${this.baseUrl}/${e}/batches`))}listDecisions(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/decisions${i}`))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var I=(()=>{class r{orc_AS=x(Ke);orchestratorListRaw_$=b([]);currentOrchestratorRaw_$=b(null);currentTasksRaw_$=b([]);currentMessagesRaw_$=b([]);isResponseGeneratingRaw_$=b(!1);orchestratorList_$=this.orchestratorListRaw_$.asReadonly();currentOrchestrator_$=this.currentOrchestratorRaw_$.asReadonly();currentTasks_$=this.currentTasksRaw_$.asReadonly();currentMessages_$=this.currentMessagesRaw_$.asReadonly();isResponseGenerating_$=this.isResponseGeneratingRaw_$.asReadonly();activeCount_$=q(()=>this.orchestratorList_$().filter(e=>e.status==="active"||e.status==="bootstrap"||e.status==="waiting-for-user").length);refreshList(){return _(this,null,function*(){try{let e=yield this.orc_AS.listOrchestrators();this.orchestratorListRaw_$.set(e.orchestrators)}catch(e){T.DyFM_Log.error("Orchestrator_DataService | refreshList failed",e)}})}refreshCurrent(e){return _(this,null,function*(){try{let t=yield this.orc_AS.getOrchestrator(e);this.currentOrchestratorRaw_$.set(t.orchestrator)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrent failed",t)}})}refreshCurrentTasks(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listTasks(e);this.currentTasksRaw_$.set(t.tasks)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentTasks failed",t)}})}createOrchestrator(e){return _(this,null,function*(){let t=yield this.orc_AS.createOrchestrator(e);return yield this.refreshList(),t.orchestrator})}startOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.startOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}pauseOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.pauseOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}resumeOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.resumeOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}stopOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.stopOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}confirmBootstrap(e){return _(this,null,function*(){yield this.orc_AS.confirmBootstrap(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}switchMode(e,t){return _(this,null,function*(){yield this.orc_AS.switchMode(e,t),yield this.refreshCurrent(e)})}refreshCurrentMessages(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listMessages(e,100);this.currentMessagesRaw_$.set(t.messages)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentMessages failed",t)}})}setResponseGenerating(e){this.isResponseGeneratingRaw_$.set(e)}clearCurrent(){this.currentOrchestratorRaw_$.set(null),this.currentTasksRaw_$.set([]),this.currentMessagesRaw_$.set([]),this.isResponseGeneratingRaw_$.set(!1)}listWorkflows(e){return _(this,null,function*(){try{return(yield this.orc_AS.listWorkflows(e)).workflows}catch(t){return T.DyFM_Log.error("Orchestrator_DataService | listWorkflows failed",t),[]}})}getWorkflowById(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.getWorkflowById(e,t)).workflow}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | getWorkflowById failed",i),null}})}listMessages(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listMessages(e,t)).messages}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listMessages failed",i),[]}})}postUserMessage(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.postUserMessage(e,t)).message}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | postUserMessage failed",i),null}})}listQuestions(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listQuestions(e,t)).questions}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listQuestions failed",i),[]}})}submitQuestionAnswer(e,t,i){return _(this,null,function*(){try{return(yield this.orc_AS.submitQuestionAnswer(e,t,i)).question}catch(l){return T.DyFM_Log.error("Orchestrator_DataService | submitQuestionAnswer failed",l),null}})}getGlobalSummary(){return _(this,null,function*(){try{return(yield this.orc_AS.getGlobalSummary()).summary}catch(e){return T.DyFM_Log.error("Orchestrator_DataService | getGlobalSummary failed",e),null}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var nt=new Set(["orc:created","orc:statusChanged","orc:started","orc:paused","orc:resumed","orc:stopped","orc:waitingForUser"]),ot=new Set(["orc:statusChanged","orc:modeChanged","orc:iterationStarted","orc:iterationCompleted","orc:decisionAdded","orc:taskCreated","orc:taskStatusChanged","orc:taskCompleted","orc:batchStarted","orc:batchCompleted","orc:agentLaunched","orc:agentCompleted","orc:userQuestionAsked","orc:userQuestionAnswered","orc:messageAdded","orc:bootstrapCompleted","orc:responseStarted","orc:responseCompleted","orc:responseToolCall","orc:responseToolResult"]),at=new Set(["orc:messageAdded","orc:responseToolCall","orc:responseToolResult"]),xe=(()=>{class r{ccapSocket_CS=x(J);orchestrator_DS=x(I);globalSub=null;detailSub=null;responseSub=null;currentOrchestratorId=null;subscribeGlobal(){this.globalSub||(this.globalSub=this.ccapSocket_CS.event$.pipe(G(e=>nt.has(e.event))).subscribe(()=>_(this,null,function*(){yield this.orchestrator_DS.refreshList()})))}subscribeDetail(e){this.unsubscribeDetail(),this.currentOrchestratorId=e,this.detailSub=this.ccapSocket_CS.event$.pipe(G(t=>ot.has(t.event)&&this.isForCurrent(t.payload))).subscribe(t=>_(this,null,function*(){let i=this.currentOrchestratorId;i&&(t.event==="orc:responseStarted"&&this.orchestrator_DS.setResponseGenerating(!0),t.event==="orc:responseCompleted"&&this.orchestrator_DS.setResponseGenerating(!1),yield Promise.all([this.orchestrator_DS.refreshCurrent(i),this.orchestrator_DS.refreshCurrentTasks(i)]))})),this.responseSub=this.ccapSocket_CS.event$.pipe(G(t=>at.has(t.event)&&this.isForCurrent(t.payload))).subscribe(()=>_(this,null,function*(){let t=this.currentOrchestratorId;t&&(yield this.orchestrator_DS.refreshCurrentMessages(t))}))}unsubscribeDetail(){this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.detailSub=null,this.responseSub=null,this.currentOrchestratorId=null}isForCurrent(e){return this.currentOrchestratorId?e?.orchestratorId===this.currentOrchestratorId:!1}ngOnDestroy(){this.globalSub?.unsubscribe(),this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.globalSub=null,this.detailSub=null,this.responseSub=null}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var we=[{id:"orc-wake",label:"Wake",phase:"wake",category:V.milestone},{id:"orc-collect",label:"Collect",phase:"collect",category:V.phase},{id:"orc-analyze",label:"Analyze",phase:"analyze",category:V.llmCall},{id:"orc-sync-tasks",label:"Sync Tasks",phase:"sync-tasks",category:V.phase},{id:"orc-decide-next",label:"Decide Next",phase:"decide-next",category:V.llmCall},{id:"orc-execute",label:"Execute",phase:"execute",category:V.phase},{id:"orc-report",label:"Report",phase:"report",category:V.phase},{id:"orc-sleep",label:"Sleep",phase:"sleep",category:V.milestone}],ae=class{static buildSkeletonLayout(){let c=48+220/2,e=48,t=[],i=[];for(let y=0;y<we.length;y++){let F=we[y],Z=F.category===V.milestone,U=Z?200:220,Oe=Z?48:60,rt=oe.createNode({id:F.id,category:F.category,label:F.label,phase:F.phase,x:c-U/2,y:e,width:U,height:Oe});t.push(rt),y>0&&i.push(oe.createEdge(we[y-1].id,F.id,Qe.sequential)),e+=Oe+36}let l=i.map(y=>{let F=t.find(U=>U.id===y.sourceNodeId),Z=t.find(U=>U.id===y.targetNodeId);return!F||!Z?y:te(ee({},y),{pathD:oe.computeEdgePath(F,Z,y.category)})}),h=oe.recalculateViewBox(t,48);return{nodes:t,edges:l,viewBox:h,loopContainerBounds:null}}};var pt={wake:"orc-wake",collect:"orc-collect",analyze:"orc-analyze","sync-tasks":"orc-sync-tasks","decide-next":"orc-decide-next",execute:"orc-execute",report:"orc-report",sleep:"orc-sleep"},_t=["orc-wake","orc-collect","orc-analyze","orc-sync-tasks","orc-decide-next","orc-execute","orc-report","orc-sleep"],mt=new Set(["orc:iterationStarted","orc:iterationCompleted","orc:statusChanged","orc:started","orc:paused","orc:stopped"]),Ce=(()=>{class r{ccapSocket_CS=x(J);destroyRef=x(Te);graphLayout_$=b(null);activeNodeId_$=b("");selectedNodeId_$=b("");isGraphOpen_$=b(!1);graphOrchestratorId_$=b("");isLoading_$=b(!1);eventSubscription=null;constructor(){this.destroyRef.onDestroy(()=>{this.disposeSubscription()})}openGraph(e){this.disposeSubscription(),this.resetState(),this.graphOrchestratorId_$.set(e),this.isGraphOpen_$.set(!0);let t=ae.buildSkeletonLayout();this.graphLayout_$.set(t),this.eventSubscription=this.ccapSocket_CS.event$.pipe(G(i=>mt.has(i.event)&&i.payload?.orchestratorId===e)).subscribe(i=>{this.applyOrcEvent(i.event,i.payload)})}closeGraph(){this.disposeSubscription(),this.isGraphOpen_$.set(!1),this.selectedNodeId_$.set("")}selectNode(e){let t=this.selectedNodeId_$();this.selectedNodeId_$.set(t===e?"":e)}clearSelection(){this.selectedNodeId_$.set("")}applyOrcEvent(e,t){if(e==="orc:iterationStarted"){this.applyPhaseActive("wake");return}if(e==="orc:iterationCompleted"){this.markAllCompleted();return}if(e==="orc:statusChanged"){let i=t.status;i==="active"&&this.applyPhaseActive("wake"),(i==="paused"||i==="stopped"||i==="failed")&&this.markAllCompleted();return}if(e==="orc:started"){let i=ae.buildSkeletonLayout();this.graphLayout_$.set(i)}}applyPhaseActive(e){let t=pt[e];if(!t)return;let i=this.graphLayout_$();if(!i)return;let l=!1;for(let h of _t)h===t?(i=this.setNodeState(i,h,ne.active),l=!0):l||(i=this.setNodeState(i,h,ne.completed));this.activeNodeId_$.set(t),this.graphLayout_$.set(i)}markAllCompleted(){let e=this.graphLayout_$();if(e){for(let t of e.nodes)t.state!==ne.error&&(e=this.setNodeState(e,t.id,ne.completed));this.activeNodeId_$.set(""),this.graphLayout_$.set(e)}}setNodeState(e,t,i){let l=e.nodes.findIndex(y=>y.id===t);if(l<0)return e;let h=[...e.nodes];return h[l]=te(ee({},h[l]),{state:i}),te(ee({},e),{nodes:h})}resetState(){this.graphLayout_$.set(null),this.activeNodeId_$.set(""),this.selectedNodeId_$.set(""),this.isLoading_$.set(!1)}disposeSubscription(){this.eventSubscription&&(this.eventSubscription.unsubscribe(),this.eventSubscription=null)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var be=ie(re());var ge=class r{static mapAll(c){return c.map(e=>r.mapSingle(e))}static mapSingle(c){let e=r.resolveKind(c),t=c.from==="user";return{listKey:c._id,kind:e,bodyText:c.rawContent,timestampIso:c.__created,toolName:c.toolName??void 0,isUserAligned:t,headerStatusDot:e===P.error?"error":void 0,flags:{showCopy:!0,showRawInfo:!1,useEditDiffForExpandable:!1},toolCallId:c.toolCallId??void 0}}static resolveKind(c){switch(c.messageType){case"user-message":return P.userPrompt;case"orchestrator-response":return P.assistant;case"orchestrator-thinking":return P.thinking;case"tool-call":return P.tool;case"tool-result":return P.toolResult;case"iteration-summary":return P.statusUpdate;case"status-message":return P.info;default:return c.from==="user"?P.userPrompt:P.assistant}}};var ut=["scrollAnchor"],ht=(r,c)=>c.listKey,ft=(r,c)=>c._id;function xt(r,c){if(r&1&&(n(0,"p",14),a(1),o()),r&2){let e=d().$implicit;s(),v("Kontext: ",e.context,"")}}function Ct(r,c){if(r&1){let e=S();n(0,"div",15)(1,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"yes"))}),a(2," Igen "),o(),n(3,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"no"))}),a(4," Nem "),o(),n(5,"button",19),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(6," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),E("bg-green-700",t.selectedChoice[e._id]==="yes")("bg-slate-700",t.selectedChoice[e._id]!=="yes"),s(2),E("bg-red-700",t.selectedChoice[e._id]==="no")("bg-slate-700",t.selectedChoice[e._id]!=="no"),s(2),C("disabled",!t.selectedChoice[e._id])}}function gt(r,c){if(r&1){let e=S();n(0,"label",20)(1,"input",22),p("change",function(){let i=m(e).$implicit,l=d(2).$implicit,h=d(2);return u(h.handleMultipleChoice(l._id,i))}),o(),a(2),o()}if(r&2){let e=c.$implicit,t=d(2).$implicit,i=d(2);s(),C("name",t._id)("value",e)("checked",i.selectedChoice[t._id]===e),s(),v(" ",e," ")}}function bt(r,c){if(r&1){let e=S();n(0,"div",16),D(1,gt,3,4,"label",20,le),n(3,"button",21),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(4," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),M(e.possibleAnswers),s(2),C("disabled",!t.selectedChoice[e._id])}}function yt(r,c){if(r&1){let e=S();n(0,"div",17)(1,"textarea",23),W("ngModelChange",function(i){m(e);let l=d().$implicit,h=d(2);return z(h.answerDrafts[l._id],i)||(h.answerDrafts[l._id]=i),u(i)}),o(),n(2,"button",24),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(3," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),N("ngModel",t.answerDrafts[e._id]),C("name",e._id),s(),C("disabled",!t.answerDrafts[e._id])}}function St(r,c){if(r&1&&(n(0,"div",12)(1,"p",13),a(2),o(),k(3,xt,2,1,"p",14)(4,Ct,7,9,"div",15)(5,bt,5,1,"div",16)(6,yt,4,3,"div",17),o()),r&2){let e=c.$implicit;s(2),g(e.questionText),s(),f(e.context?3:-1),s(),f(e.questionType==="yes-no"?4:-1),s(),f(e.questionType==="multiple-choice"&&e.possibleAnswers?5:-1),s(),f(e.questionType==="open"||e.questionType==="task-priority"?6:-1)}}function wt(r,c){if(r&1&&(n(0,"div",2)(1,"h3",11),a(2),o(),D(3,St,7,5,"div",12,ft),o()),r&2){let e=d();s(2),v("V\xE1laszra v\xE1r\xF3 k\xE9rd\xE9sek (",e.openQuestions_$().length,")"),s(),M(e.openQuestions_$())}}function vt(r,c){if(r&1&&A(0,"app-s-agent-console-message-bubble",4),r&2){let e=c.$implicit;C("view",e)}}function kt(r,c){r&1&&(n(0,"p",5),a(1,"M\xE9g nincs \xFCzenet."),o())}function Et(r,c){r&1&&(n(0,"div",6)(1,"div",25)(2,"span",26),a(3,"ORCHESTRATOR"),o(),n(4,"span",27),a(5,"gondolkodik..."),o()()())}var Ot=new Set(["orc:messageAdded","orc:userQuestionAsked","orc:userQuestionAnswered"]),Je=(()=>{class r extends Ge{orchestrator_DS=x(I);ccapSocket_CS=x(J);orchestratorId;scrollAnchor;questionsRaw_$=b([]);bubbleViews_$=q(()=>ge.mapAll(this.orchestrator_DS.currentMessages_$()));openQuestions_$=this.questionsRaw_$.asReadonly();isResponseGenerating_$=this.orchestrator_DS.isResponseGenerating_$;userInput="";answerDrafts={};selectedChoice={};constructor(){super()}ngOnInit(){this.refresh(),this.addSubscription(this.ccapSocket_CS.event$.pipe(G(e=>Ot.has(e.event)&&e.payload?.orchestratorId===this.orchestratorId)).subscribe(()=>_(this,null,function*(){yield this.refresh(),this.scrollToBottom()})))}handleSendMessage(){return _(this,null,function*(){if(!this.userInput)return;let e=this.userInput;this.userInput="";try{yield this.orchestrator_DS.postUserMessage(this.orchestratorId,e),yield this.orchestrator_DS.refreshCurrentMessages(this.orchestratorId),this.scrollToBottom()}catch(t){be.DyFM_Log.error("ORC_Chat | sendMessage failed",t),this.userInput=e}})}handleSubmitAnswer(e,t){return _(this,null,function*(){let i=t==="multiple-choice"||t==="yes-no"?this.selectedChoice[e]??"":this.answerDrafts[e]??"";if(i)try{yield this.orchestrator_DS.submitQuestionAnswer(this.orchestratorId,e,i),delete this.answerDrafts[e],delete this.selectedChoice[e],yield this.refresh()}catch(l){be.DyFM_Log.error("ORC_Chat | submitAnswer failed",l)}})}handleYesNoChoice(e,t){this.selectedChoice[e]=t}handleMultipleChoice(e,t){this.selectedChoice[e]=t}refresh(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listQuestions(this.orchestratorId,!0);this.questionsRaw_$.set(e)}catch(e){be.DyFM_Log.error("ORC_Chat | refresh failed",e)}})}scrollToBottom(){setTimeout(()=>{this.scrollAnchor?.nativeElement?.scrollIntoView({behavior:"smooth"})},50)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-chat-panel"]],viewQuery:function(t,i){if(t&1&&Pe(ut,5),t&2){let l;Le(l=Ve())&&(i.scrollAnchor=l.first)}},hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[Me,R],decls:15,vars:5,consts:[["scrollAnchor",""],["sChatColumnHeader",""],[1,"bg-cyan-950","border-b","border-cyan-500","p-3","space-y-3"],["sChatColumnScroll","",1,"p-3","space-y-2"],[3,"view"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"flex","gap-2","py-2"],["sChatColumnComposer","",1,"border-t","border-slate-800","p-3"],[1,"flex","gap-2",3,"ngSubmit"],["rows","2","name","userInput","placeholder","\xDCzenet az Orchestrator-nak...",1,"flex-1","bg-slate-800","border","border-slate-700","rounded","px-3","py-2","text-white","text-sm","resize-none",3,"ngModelChange","ngModel"],["type","submit",1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm","self-end","whitespace-nowrap",3,"disabled"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"bg-cyan-900/50","border","border-cyan-700","rounded","p-3","space-y-2"],[1,"text-cyan-100","font-medium","text-sm"],[1,"text-xs","text-cyan-300","italic"],[1,"flex","gap-2"],[1,"space-y-1"],[1,"space-y-2"],[1,"px-3","py-1","rounded","text-sm","font-bold",3,"click"],[1,"ml-auto","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"flex","items-center","gap-2","text-sm","text-slate-200","cursor-pointer"],[1,"mt-2","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],["type","radio",3,"change","name","value","checked"],["rows","2","placeholder","V\xE1lasz...",1,"w-full","bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-sm",3,"ngModelChange","ngModel","name"],[1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"max-w-[80%]","rounded","px-3","py-2","bg-slate-800","text-slate-400","text-sm","animate-pulse"],[1,"font-mono","text-xs"],[1,"ml-2"]],template:function(t,i){if(t&1){let l=S();n(0,"app-s-session-chat-column-layout")(1,"div",1),k(2,wt,5,1,"div",2),o(),n(3,"div",3),D(4,vt,1,1,"app-s-agent-console-message-bubble",4,ht,!1,kt,2,0,"p",5),k(7,Et,6,0,"div",6),A(8,"div",null,0),o(),n(10,"div",7)(11,"form",8),p("ngSubmit",function(){return m(l),u(i.handleSendMessage())}),n(12,"textarea",9),W("ngModelChange",function(y){return m(l),z(i.userInput,y)||(i.userInput=y),u(y)}),o(),n(13,"button",10),a(14," K\xFCld\xE9s "),o()()()()}t&2&&(s(2),f(i.openQuestions_$().length>0?2:-1),s(2),M(i.bubbleViews_$()),s(3),f(i.isResponseGenerating_$()?7:-1),s(5),N("ngModel",i.userInput),s(),C("disabled",!i.userInput))},dependencies:[$,Y,me,H,K,pe,X,_e,Ue,Be],encapsulation:2})}return r})();var Ze=(()=>{class r{graph_DS=x(Ce);isOpen_$=this.graph_DS.isGraphOpen_$;layout_$=this.graph_DS.graphLayout_$;activeNodeId_$=this.graph_DS.activeNodeId_$;selectedNodeId_$=this.graph_DS.selectedNodeId_$;isLoading_$=this.graph_DS.isLoading_$;handleClose(){this.graph_DS.closeGraph()}handleNodeClick(e){this.graph_DS.selectNode(e)}handleDetailClose(){this.graph_DS.clearSelection()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-graph-modal"]],standalone:!0,features:[R],decls:2,vars:6,consts:[["title","Orchestrator Flow Graph","maxWidth","7xl","headerBorderClass","border-cyan-600/30",3,"closed","isOpen","bodyFlexColumn"],[1,"flex-1","min-h-0",3,"nodeClicked","detailClosed","layout","activeNodeId","selectedNodeId","isLoading"]],template:function(t,i){t&1&&(n(0,"app-s-modal",0),p("closed",function(){return i.handleClose()}),n(1,"app-ses-graph-view",1),p("nodeClicked",function(h){return i.handleNodeClick(h)})("detailClosed",function(){return i.handleDetailClose()}),o()()),t&2&&(C("isOpen",i.isOpen_$())("bodyFlexColumn",!0),s(),C("layout",i.layout_$())("activeNodeId",i.activeNodeId_$())("selectedNodeId",i.selectedNodeId_$())("isLoading",i.isLoading_$()))},dependencies:[$,je,He],encapsulation:2})}return r})();var et=(()=>{class r{mode_$=De.required({alias:"mode_$"});modeChanged=Ie();handleToggle(){let t=this.mode_$()==="active"?"passive":"active";this.modeChanged.emit(t)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-mode-switcher"]],inputs:{mode_$:[1,"mode_$"]},outputs:{modeChanged:"modeChanged"},standalone:!0,features:[R],decls:5,vars:18,consts:[[1,"inline-flex","rounded-full","border","border-slate-600","overflow-hidden","text-xs","font-semibold"],["title","Auton\xF3m loop m\xF3d \u2014 az orchestrator \xF6n\xE1ll\xF3an futtatja az iter\xE1ci\xF3kat",1,"px-3","py-1","transition-colors",3,"click","disabled"],["title","Chat m\xF3d \u2014 az orchestrator a user \xFCzenetekre v\xE1laszol",1,"px-3","py-1","transition-colors",3,"click","disabled"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"button",1),p("click",function(){return i.handleToggle()}),a(2," Active Loop "),o(),n(3,"button",2),p("click",function(){return i.handleToggle()}),a(4," Chat Mode "),o()()),t&2&&(s(),E("bg-green-800",i.mode_$()==="active")("text-green-200",i.mode_$()==="active")("bg-transparent",i.mode_$()!=="active")("text-slate-400",i.mode_$()!=="active"),C("disabled",i.mode_$()==="active"),s(2),E("bg-cyan-800",i.mode_$()==="passive")("text-cyan-200",i.mode_$()==="passive")("bg-transparent",i.mode_$()!=="passive")("text-slate-400",i.mode_$()!=="passive"),C("disabled",i.mode_$()==="passive"))},encapsulation:2})}return r})();var Rt=(r,c)=>c._id;function $t(r,c){r&1&&(n(0,"p",31),a(1," Nincs a sz\u0171r\u0151knek megfelel\u0151 task. "),o())}function Tt(r,c){if(r&1&&(n(0,"tr",38)(1,"td",39),a(2),o(),n(3,"td",40),a(4),o(),n(5,"td",41),a(6),o(),n(7,"td",42)(8,"span"),a(9),o()(),n(10,"td",43),a(11),o(),n(12,"td",44),a(13),o()()),r&2){let e=c.$implicit;s(2),g(e.code),s(2),g(e.title),s(2),g(e.type),s(2),E("text-red-400",e.priority==="critical")("text-orange-400",e.priority==="high")("text-slate-400",e.priority==="normal")("text-slate-600",e.priority==="low"),s(),v(" ",e.priority," "),s(2),g(e.source),s(2),v(" ",e.assignedAgentType||"\u2014"," ")}}function It(r,c){if(r&1&&(n(0,"div",32)(1,"div",33),a(2),n(3,"span",34),a(4),o()(),n(5,"table",35)(6,"thead",36)(7,"tr")(8,"th",37),a(9,"Code"),o(),n(10,"th",37),a(11,"Title"),o(),n(12,"th",37),a(13,"Type"),o(),n(14,"th",37),a(15,"Priority"),o(),n(16,"th",37),a(17,"Source"),o(),n(18,"th",37),a(19,"Agent"),o()()(),n(20,"tbody"),D(21,Tt,14,14,"tr",38,Rt),o()()()),r&2){let e=c.$implicit,t=d();s(2),v(" ",e," "),s(2),v("(",t.groupedByStatus_$()[e].length,")"),s(17),M(t.groupedByStatus_$()[e])}}var tt=(()=>{class r{orchestrator_DS=x(I);tasks_$;filterStatus_$=b("all");filterType_$=b("all");filterPriority_$=b("all");searchText_$=b("");filteredTasks_$=q(()=>{let e=this.tasks_$(),t=this.filterStatus_$(),i=this.filterType_$(),l=this.filterPriority_$(),h=this.searchText_$();return e.filter(y=>!(t!=="all"&&y.status!==t||i!=="all"&&y.type!==i||l!=="all"&&y.priority!==l||h.trim()&&!ye.includesText(y.title,h)&&!ye.includesText(y.description,h)))});groupedByStatus_$=q(()=>{let e={};for(let t of this.filteredTasks_$()){let i=t.status;e[i]||(e[i]=[]),e[i].push(t)}return e});statusOrder=["in-progress","waiting-on-agent","waiting-on-user","scheduled","pending","completed","failed","cancelled"];orderedGroupKeys_$=q(()=>{let e=this.groupedByStatus_$();return this.statusOrder.filter(t=>(e[t]?.length??0)>0)});handleFilterStatus(e){this.filterStatus_$.set(e)}handleFilterType(e){this.filterType_$.set(e)}handleFilterPriority(e){this.filterPriority_$.set(e)}handleSearchText(e){this.searchText_$.set(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-task-queue-panel"]],inputs:{tasks_$:"tasks_$"},standalone:!0,features:[R],decls:62,vars:7,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-2"],["name","filterStatus",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","all"],["value","pending"],["value","scheduled"],["value","in-progress"],["value","waiting-on-user"],["value","waiting-on-agent"],["value","completed"],["value","failed"],["value","cancelled"],["name","filterType",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","implementation"],["value","bug-fix"],["value","review"],["value","documentation"],["value","refactor"],["value","research"],["value","spec-extension"],["value","maintenance"],["value","bootstrap-project-cleanup"],["name","filterPriority",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","critical"],["value","high"],["value","normal"],["value","low"],["name","searchText","placeholder","Keres\xE9s c\xEDm / le\xEDr\xE1s...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"bg-slate-950","border","border-slate-800","rounded","overflow-hidden"],[1,"bg-slate-800","px-3","py-1","text-xs","font-bold","text-slate-300","uppercase","tracking-wider"],[1,"text-slate-500","ml-2"],[1,"w-full","text-xs"],[1,"bg-slate-900"],[1,"text-left","px-2","py-1","text-slate-400","font-normal"],[1,"border-t","border-slate-800","hover:bg-slate-800/30"],[1,"px-2","py-1","font-mono","text-cyan-400"],[1,"px-2","py-1","text-slate-200"],[1,"px-2","py-1","text-slate-400"],[1,"px-2","py-1"],[1,"px-2","py-1","text-slate-500"],[1,"px-2","py-1","text-slate-400","text-xs"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Task Queue"),o(),n(4,"span",3),a(5),o()(),n(6,"div",4)(7,"select",5),p("ngModelChange",function(h){return i.handleFilterStatus(h)}),n(8,"option",6),a(9,"\xD6sszes st\xE1tusz"),o(),n(10,"option",7),a(11,"pending"),o(),n(12,"option",8),a(13,"scheduled"),o(),n(14,"option",9),a(15,"in-progress"),o(),n(16,"option",10),a(17,"waiting-on-user"),o(),n(18,"option",11),a(19,"waiting-on-agent"),o(),n(20,"option",12),a(21,"completed"),o(),n(22,"option",13),a(23,"failed"),o(),n(24,"option",14),a(25,"cancelled"),o()(),n(26,"select",15),p("ngModelChange",function(h){return i.handleFilterType(h)}),n(27,"option",6),a(28,"\xD6sszes t\xEDpus"),o(),n(29,"option",16),a(30,"implementation"),o(),n(31,"option",17),a(32,"bug-fix"),o(),n(33,"option",18),a(34,"review"),o(),n(35,"option",19),a(36,"documentation"),o(),n(37,"option",20),a(38,"refactor"),o(),n(39,"option",21),a(40,"research"),o(),n(41,"option",22),a(42,"spec-extension"),o(),n(43,"option",23),a(44,"maintenance"),o(),n(45,"option",24),a(46,"bootstrap"),o()(),n(47,"select",25),p("ngModelChange",function(h){return i.handleFilterPriority(h)}),n(48,"option",6),a(49,"\xD6sszes priorit\xE1s"),o(),n(50,"option",26),a(51,"critical"),o(),n(52,"option",27),a(53,"high"),o(),n(54,"option",28),a(55,"normal"),o(),n(56,"option",29),a(57,"low"),o()(),n(58,"input",30),p("ngModelChange",function(h){return i.handleSearchText(h)}),o()(),k(59,$t,2,0,"p",31),D(60,It,23,2,"div",32,le),o()),t&2&&(s(5),ce(" ",i.filteredTasks_$().length," / ",i.tasks_$().length," task "),s(2),C("ngModel",i.filterStatus_$()),s(19),C("ngModel",i.filterType_$()),s(21),C("ngModel",i.filterPriority_$()),s(11),C("ngModel",i.searchText_$()),s(),f(i.orderedGroupKeys_$().length===0?59:-1),s(),M(i.orderedGroupKeys_$()))},dependencies:[$,Y,he,fe,H,ue,K,X],encapsulation:2})}return r})();var ve=ie(re());var Dt=(r,c)=>c.id;function Mt(r,c){r&1&&(n(0,"p",4),a(1,"Nincs bet\xF6lt\xF6tt workflow."),o())}function Pt(r,c){if(r&1){let e=S();n(0,"div",8),p("click",function(){let i=m(e).$implicit,l=d();return u(l.handleOpenDetails(i.id))}),n(1,"h3",9),a(2),o(),n(3,"p",10),a(4),o()()}if(r&2){let e=c.$implicit;s(2),g(e.name),s(2),g(e.summary)}}function Lt(r,c){if(r&1){let e=S();n(0,"div",11),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),n(1,"div",12),p("click",function(i){return m(e),u(i.stopPropagation())}),n(2,"div",13)(3,"h3",14),a(4),o(),n(5,"button",15),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),a(6,"\u2715"),o()(),n(7,"pre",16),a(8),o()()()}if(r&2){let e=c;s(4),g(e.filename),s(4),g(e.rawText)}}var it=(()=>{class r{orchestrator_DS=x(I);orchestratorId;workflowsRaw_$=b([]);selectedRaw_$=b(null);loadingRaw_$=b(!1);workflows_$=this.workflowsRaw_$.asReadonly();selected_$=this.selectedRaw_$.asReadonly();loading_$=this.loadingRaw_$.asReadonly();ngOnInit(){this.loadList()}handleOpenDetails(e){return _(this,null,function*(){try{this.loadingRaw_$.set(!0);let t=yield this.orchestrator_DS.getWorkflowById(this.orchestratorId,e);this.selectedRaw_$.set(t)}catch(t){ve.DyFM_Log.error("WorkflowLibrary | getWorkflow failed",t)}finally{this.loadingRaw_$.set(!1)}})}handleCloseDetails(){this.selectedRaw_$.set(null)}loadList(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listWorkflows(this.orchestratorId);this.workflowsRaw_$.set(e)}catch(e){ve.DyFM_Log.error("WorkflowLibrary | listWorkflows failed",e)}})}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-workflow-library-panel"]],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[R],decls:11,vars:3,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"text-sm","text-slate-500","italic"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-2"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition",3,"click"],[1,"text-cyan-400","font-mono","text-sm"],[1,"text-xs","text-slate-400","mt-1","line-clamp-3"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50",3,"click"],[1,"bg-slate-900","border","border-cyan-700","rounded","p-4","max-w-3xl","max-h-[80vh]","overflow-auto","w-full",2,"max-height","80dvh",3,"click"],[1,"flex","items-center","justify-between","mb-3"],[1,"text-cyan-300","font-bold"],[1,"text-slate-400","hover:text-white",3,"click"],[1,"text-xs","text-slate-200","whitespace-pre-wrap","font-mono"]],template:function(t,i){if(t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Workflow Library"),o(),n(4,"span",3),a(5),o()(),k(6,Mt,2,0,"p",4),n(7,"div",5),D(8,Pt,5,2,"div",6,Dt),o(),k(10,Lt,9,2,"div",7),o()),t&2){let l;s(5),v("",i.workflows_$().length," workflow"),s(),f(i.workflows_$().length===0?6:-1),s(2),M(i.workflows_$()),s(2),f((l=i.selected_$())?10:-1,l)}},dependencies:[$],encapsulation:2})}return r})();function Ft(r,c){if(r&1){let e=S();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleStart())}),a(1,"Start"),o()}}function At(r,c){if(r&1){let e=S();n(0,"button",28),p("click",function(){m(e);let i=d(2);return u(i.handlePause())}),a(1,"Pause"),o()}}function Nt(r,c){if(r&1){let e=S();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleResume())}),a(1,"Resume"),o()}}function zt(r,c){if(r&1){let e=S();n(0,"button",29),p("click",function(){m(e);let i=d(2);return u(i.handleStop())}),a(1,"Stop"),o()}}function Wt(r,c){if(r&1){let e=S();n(0,"div",18)(1,"div")(2,"h3",30),a(3,"Bootstrap \u2014 user j\xF3v\xE1hagy\uFFFD\uFFFDs sz\xFCks\xE9ges"),o(),n(4,"p",31),a(5,"N\xE9zd \xE1t a task-list\xE1t, \xE9s kattints az Elfogadom gombra."),o()(),n(6,"button",32),p("click",function(){m(e);let i=d(2);return u(i.handleConfirmBootstrap())}),a(7," Elfogadom "),o()()}}function Gt(r,c){if(r&1&&A(0,"app-orc-task-queue-panel",24),r&2){let e=d(2);C("tasks_$",e.tasks_$)}}function jt(r,c){if(r&1&&A(0,"app-orc-workflow-library-panel",25),r&2){let e,t=d(2);C("orchestratorId",(e=t.orchestratorId)!==null&&e!==void 0?e:"")}}function qt(r,c){if(r&1&&(n(0,"div",26)(1,"div")(2,"span",33),a(3,"Scope"),o(),n(4,"span",34),a(5),o()(),n(6,"div")(7,"span",33),a(8,"Projekt"),o(),n(9,"span",35),a(10),o()(),n(11,"div")(12,"span",33),a(13,"LLM"),o(),n(14,"span",34),a(15),o()(),n(16,"div")(17,"span",33),a(18,"Iter\xE1ci\xF3"),o(),n(19,"span",36),a(20),o()(),n(21,"div")(22,"span",33),a(23,"Max parallel"),o(),n(24,"span",36),a(25),o()(),n(26,"div")(27,"span",33),a(28,"Poll (s)"),o(),n(29,"span",36),a(30),o()(),n(31,"div")(32,"span",33),a(33,"Mode"),o(),n(34,"span",34),a(35),o()()()),r&2){let e=d();s(5),g(e.scope),s(5),g(e.projectId||"\u2014"),s(5),ce("",e.providerName," / ",e.model,""),s(5),g(e.iterationCount),s(5),g(e.maxParallelism),s(5),g(e.pollIntervalSeconds),s(5),g(e.operationMode)}}function Bt(r,c){if(r&1){let e=S();n(0,"app-s-session-detail-three-column-layout",2),p("endResizeStart",function(i){m(e);let l=d();return u(l.handleSidebarResizeStart(i))}),n(1,"div",3)(2,"div",4)(3,"a",5),a(4,"\u2190"),o(),n(5,"div",6)(6,"h1",7),a(7),o(),n(8,"p",8),a(9),o()(),n(10,"span",9),a(11),o(),n(12,"app-orc-mode-switcher",10),p("modeChanged",function(i){m(e);let l=d();return u(l.handleModeSwitch(i))}),o(),A(13,"span",11),n(14,"div",12),k(15,Ft,2,0,"button",13)(16,At,2,0,"button",14)(17,Nt,2,0,"button",13)(18,zt,2,0,"button",15),o(),n(19,"button",16),p("click",function(){m(e);let i=d();return u(i.handleOpenGraph())}),a(20," Graph "),o(),n(21,"button",17),p("click",function(){m(e);let i=d();return u(i.handleToggleSidebar())}),a(22),o()(),k(23,Wt,8,0,"div",18),A(24,"app-orc-chat-panel",19),o(),n(25,"div",20)(26,"div",21)(27,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="tasks")}),a(28),o(),n(29,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="workflows")}),a(30," Workflows "),o(),n(31,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="info")}),a(32," Info "),o()(),n(33,"div",23),k(34,Gt,1,1,"app-orc-task-queue-panel",24)(35,jt,1,1,"app-orc-workflow-library-panel",25)(36,qt,36,8,"div",26),o()()()}if(r&2){let e,t=c,i=d();C("isStartOpen",!1)("isEndOpen",i.isSidebarOpen)("endWidthPx",i.sidebarWidthPx)("isResizing",i.isResizing),s(7),g(t.name),s(2),g(t._id),s(),E("bg-green-900",t.status==="active")("text-green-300",t.status==="active")("bg-yellow-900",t.status==="paused")("text-yellow-300",t.status==="paused")("bg-cyan-900",t.status==="waiting-for-user"||t.status==="bootstrap")("text-cyan-300",t.status==="waiting-for-user"||t.status==="bootstrap")("bg-red-900",t.status==="failed")("text-red-300",t.status==="failed")("bg-slate-700",t.status==="stopped"||t.status==="initializing")("text-slate-300",t.status==="stopped"||t.status==="initializing"),s(),v(" ",t.status," "),s(),C("mode_$",t.operationMode),s(3),f(t.status==="initializing"||t.status==="paused"||t.status==="stopped"?15:-1),s(),f(t.status==="active"?16:-1),s(),f(t.status==="paused"?17:-1),s(),f(t.status!=="stopped"?18:-1),s(4),v(" ",i.isSidebarOpen?"\u25B6":"\u25C0"," "),s(),f(t.status==="waiting-for-user"?23:-1),s(),C("orchestratorId",(e=i.orchestratorId)!==null&&e!==void 0?e:""),s(3),E("text-cyan-300",i.sidebarTab==="tasks")("border-b-2",i.sidebarTab==="tasks")("border-cyan-400",i.sidebarTab==="tasks")("text-slate-500",i.sidebarTab!=="tasks"),s(),v(" Tasks (",i.tasks_$().length,") "),s(),E("text-cyan-300",i.sidebarTab==="workflows")("border-b-2",i.sidebarTab==="workflows")("border-cyan-400",i.sidebarTab==="workflows")("text-slate-500",i.sidebarTab!=="workflows"),s(2),E("text-cyan-300",i.sidebarTab==="info")("border-b-2",i.sidebarTab==="info")("border-cyan-400",i.sidebarTab==="info")("text-slate-500",i.sidebarTab!=="info"),s(3),f(i.sidebarTab==="tasks"?34:-1),s(),f(i.sidebarTab==="workflows"?35:-1),s(),f(i.sidebarTab==="info"?36:-1)}}function Ut(r,c){r&1&&(n(0,"div",1),a(1," T\xF6lt\u0151dik az orchestrator\u2026 "),o())}var ke=(()=>{class r{route=x(Ne);orchestrator_DS=x(I);realtime_CS=x(xe);graph_DS=x(Ce);current_$=this.orchestrator_DS.currentOrchestrator_$;tasks_$=this.orchestrator_DS.currentTasks_$;orchestratorId=null;isSidebarOpen=!0;sidebarWidthPx=320;isResizing=!1;sidebarTab="tasks";resizeStartX=0;resizeStartWidth=0;onResizeMove=e=>this.handleSidebarResizeMove(e);onResizeEnd=()=>this.handleSidebarResizeEnd();ngOnInit(){this.orchestratorId=this.route.snapshot.paramMap.get("id"),this.orchestratorId&&(this.orchestrator_DS.refreshCurrent(this.orchestratorId),this.orchestrator_DS.refreshCurrentTasks(this.orchestratorId),this.orchestrator_DS.refreshCurrentMessages(this.orchestratorId),this.realtime_CS.subscribeDetail(this.orchestratorId))}ngOnDestroy(){this.realtime_CS.unsubscribeDetail(),this.orchestrator_DS.clearCurrent(),document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}handleStart(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.startOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | start failed",e)}})}handlePause(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.pauseOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | pause failed",e)}})}handleResume(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.resumeOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | resume failed",e)}})}handleStop(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.stopOrchestrator(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | stop failed",e)}})}handleConfirmBootstrap(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.confirmBootstrap(this.orchestratorId)}catch(e){B.DyFM_Log.error("ORC_Detail | confirmBootstrap failed",e)}})}handleModeSwitch(e){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.switchMode(this.orchestratorId,e)}catch(t){B.DyFM_Log.error("ORC_Detail | switchMode failed",t)}})}handleOpenGraph(){this.orchestratorId&&this.graph_DS.openGraph(this.orchestratorId)}handleToggleSidebar(){this.isSidebarOpen=!this.isSidebarOpen}handleSidebarResizeStart(e){this.isResizing=!0,this.resizeStartX=e.clientX,this.resizeStartWidth=this.sidebarWidthPx,document.addEventListener("pointermove",this.onResizeMove),document.addEventListener("pointerup",this.onResizeEnd)}handleSidebarResizeMove(e){let t=this.resizeStartX-e.clientX;this.sidebarWidthPx=Math.max(200,Math.min(600,this.resizeStartWidth+t))}handleSidebarResizeEnd(){this.isResizing=!1,document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-detail"]],hostAttrs:[1,"flex","flex-1","min-h-0","overflow-hidden"],standalone:!0,features:[R],decls:3,vars:1,consts:[[3,"isStartOpen","isEndOpen","endWidthPx","isResizing"],[1,"flex","items-center","justify-center","h-full","text-slate-500"],[3,"endResizeStart","isStartOpen","isEndOpen","endWidthPx","isResizing"],["sDetailColumnMain","",1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],[1,"flex","items-center","gap-3","px-4","py-3","border-b","border-slate-800","bg-slate-900","shrink-0"],["routerLink","/orchestrator",1,"text-cyan-400","hover:text-cyan-300","text-sm"],[1,"min-w-0"],[1,"text-lg","font-bold","text-cyan-300","truncate"],[1,"text-xs","text-slate-500","font-mono","truncate"],[1,"px-2","py-0.5","rounded","text-xs","font-bold","shrink-0"],[3,"modeChanged","mode_$"],[1,"flex-1"],[1,"flex","gap-1","shrink-0"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],["title","Flow Graph",1,"px-2","py-1","border","border-cyan-700","text-cyan-400","hover:bg-cyan-900/30","rounded","text-xs","transition-colors","shrink-0",3,"click"],["title","Task queue sidebar",1,"px-2","py-1","border","border-slate-600","text-slate-400","hover:bg-slate-700/50","rounded","text-xs","transition-colors","shrink-0",3,"click"],[1,"bg-cyan-950","border-b","border-cyan-500","px-4","py-3","flex","items-center","justify-between","animate-pulse","shrink-0"],[1,"flex-1","min-h-0",3,"orchestratorId"],["sDetailColumnEnd","",1,"flex","flex-col","min-h-0","overflow-hidden"],[1,"flex","border-b","border-slate-800","shrink-0"],[1,"flex-1","px-3","py-2","text-xs","font-semibold","transition-colors",3,"click"],[1,"flex-1","overflow-y-auto","min-h-0"],[3,"tasks_$"],[3,"orchestratorId"],[1,"p-3","space-y-2","text-sm"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"text-xs","text-cyan-200","mt-1"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition","whitespace-nowrap","text-sm",3,"click"],[1,"text-xs","text-slate-500","block"],[1,"text-slate-200"],[1,"text-slate-200","font-mono","text-xs"],[1,"text-slate-200","font-mono"]],template:function(t,i){if(t&1&&(k(0,Bt,37,63,"app-s-session-detail-three-column-layout",0)(1,Ut,2,0,"div",1),A(2,"app-orc-graph-modal")),t&2){let l;f((l=i.current_$())?0:1,l)}},dependencies:[$,Q,de,qe,Je,Ze,et,tt,it],encapsulation:2})}return r})();var se=ie(re());var Qt=(r,c)=>c._id,Ht=r=>["/orchestrator",r];function Kt(r,c){if(r&1){let e=S();n(0,"button",12),p("click",function(){m(e);let i=d();return u(i.openForm())}),a(1," + \xDAj Orchestrator "),o()}}function Xt(r,c){if(r&1&&(n(0,"div",27),a(1),o()),r&2){let e=d(2);s(),v(" ",e.formError," ")}}function Yt(r,c){if(r&1){let e=S();n(0,"form",13),p("ngSubmit",function(){m(e);let i=d();return u(i.handleSubmitForm())}),n(1,"h2",14),a(2,"\xDAj Orchestrator"),o(),n(3,"div",15)(4,"label",16)(5,"span",17),a(6,"N\xE9v *"),o(),n(7,"input",18),W("ngModelChange",function(i){m(e);let l=d();return z(l.formName,i)||(l.formName=i),u(i)}),o()(),n(8,"label",16)(9,"span",17),a(10,"Scope"),o(),n(11,"select",19),W("ngModelChange",function(i){m(e);let l=d();return z(l.formScope,i)||(l.formScope=i),u(i)}),n(12,"option",20),a(13,"single-project"),o(),n(14,"option",21),a(15,"cross-project"),o(),n(16,"option",22),a(17,"specialized"),o()()(),n(18,"label",16)(19,"span",17),a(20,"Projekt ID"),o(),n(21,"input",23),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProjectId,i)||(l.formProjectId=i),u(i)}),o()(),n(22,"label",16)(23,"span",17),a(24,"LLM Provider"),o(),n(25,"input",24),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProviderName,i)||(l.formProviderName=i),u(i)}),o()(),n(26,"label",25)(27,"span",17),a(28,"Modell"),o(),n(29,"input",26),W("ngModelChange",function(i){m(e);let l=d();return z(l.formModel,i)||(l.formModel=i),u(i)}),o()()(),k(30,Xt,2,1,"div",27),n(31,"div",28)(32,"button",29),p("click",function(){m(e);let i=d();return u(i.closeForm())}),a(33," M\xE9gse "),o(),n(34,"button",30),a(35," L\xE9trehoz\xE1s "),o()()()}if(r&2){let e=d();s(7),N("ngModel",e.formName),s(4),N("ngModel",e.formScope),s(10),N("ngModel",e.formProjectId),s(4),N("ngModel",e.formProviderName),s(4),N("ngModel",e.formModel),s(),f(e.formError?30:-1)}}function Jt(r,c){if(r&1){let e=S();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStart(i._id))}),a(1," start "),o()}}function Zt(r,c){if(r&1){let e=S();n(0,"button",42),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handlePause(i._id))}),a(1," pause "),o()}}function ei(r,c){if(r&1){let e=S();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleResume(i._id))}),a(1," resume "),o()}}function ti(r,c){if(r&1){let e=S();n(0,"button",43),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStop(i._id))}),a(1," stop "),o()}}function ii(r,c){if(r&1&&(n(0,"tr",11)(1,"td",31)(2,"a",32),a(3),o()(),n(4,"td",33),a(5),o(),n(6,"td",34),a(7),o(),n(8,"td",31)(9,"span",35),a(10),o()(),n(11,"td",36),a(12),o(),n(13,"td",37),k(14,Jt,2,0,"button",38)(15,Zt,2,0,"button",39)(16,ei,2,0,"button",38)(17,ti,2,0,"button",40),o()()),r&2){let e=c.$implicit;s(2),C("routerLink",Fe(30,Ht,e._id)),s(),v(" ",e.name," "),s(2),g(e.scope),s(2),v(" ",e.projectId||e.projectIds.join(",")||"\u2014"," "),s(2),E("bg-green-900",e.status==="active")("text-green-300",e.status==="active")("bg-yellow-900",e.status==="paused")("text-yellow-300",e.status==="paused")("bg-cyan-900",e.status==="waiting-for-user"||e.status==="bootstrap")("text-cyan-300",e.status==="waiting-for-user"||e.status==="bootstrap")("bg-red-900",e.status==="failed")("text-red-300",e.status==="failed")("bg-slate-700",e.status==="stopped"||e.status==="initializing")("text-slate-300",e.status==="stopped"||e.status==="initializing"),s(),v(" ",e.status," "),s(2),g(e.iterationCount),s(2),f(e.status==="initializing"||e.status==="paused"||e.status==="stopped"?14:-1),s(),f(e.status==="active"?15:-1),s(),f(e.status==="paused"?16:-1),s(),f(e.status!=="stopped"?17:-1)}}function ri(r,c){r&1&&(n(0,"tr")(1,"td",44),a(2,' Nincs Orchestrator. Kattints a \u201E+ \xDAj Orchestrator" gombra. '),o()())}var Ee=(()=>{class r{orchestrator_DS=x(I);realtime_CS=x(xe);orchestratorList_$=this.orchestrator_DS.orchestratorList_$;activeCount_$=this.orchestrator_DS.activeCount_$;formName="";formScope="single-project";formProjectId="";formProviderName="";formModel="";formIsOpen=!1;formError=null;ngOnInit(){this.realtime_CS.subscribeGlobal(),this.orchestrator_DS.refreshList()}openForm(){this.formIsOpen=!0,this.formError=null}closeForm(){this.formIsOpen=!1,this.formName="",this.formProjectId="",this.formProviderName="",this.formModel="",this.formError=null}handleSubmitForm(){return _(this,null,function*(){try{if(!this.formName.trim()){this.formError="N\xE9v megad\xE1sa k\xF6telez\u0151.";return}yield this.orchestrator_DS.createOrchestrator({name:this.formName.trim(),scope:this.formScope,projectId:this.formProjectId.trim()||void 0,providerName:this.formProviderName.trim()||void 0,model:this.formModel.trim()||void 0}),this.closeForm()}catch(e){this.formError=this.extractErrorMessage(e)}})}handleStart(e){return _(this,null,function*(){try{yield this.orchestrator_DS.startOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | start failed",t)}})}handlePause(e){return _(this,null,function*(){try{yield this.orchestrator_DS.pauseOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | pause failed",t)}})}handleResume(e){return _(this,null,function*(){try{yield this.orchestrator_DS.resumeOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | resume failed",t)}})}handleStop(e){return _(this,null,function*(){try{yield this.orchestrator_DS.stopOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | stop failed",t)}})}extractErrorMessage(e){return typeof e=="object"&&e!==null&&"message"in e?String(e.message):String(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-list"]],standalone:!0,features:[R],decls:31,vars:4,consts:[[1,"p-6","space-y-4"],[1,"flex","items-center","justify-between"],[1,"text-2xl","font-bold","text-cyan-300"],[1,"text-sm","text-slate-400"],[1,"text-green-400","font-mono"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3"],[1,"overflow-x-auto","bg-slate-900","border","border-slate-800","rounded"],[1,"w-full","text-sm"],[1,"bg-slate-800","text-slate-300"],[1,"text-left","px-3","py-2"],[1,"border-t","border-slate-800","hover:bg-slate-800/50"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition",3,"click"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3",3,"ngSubmit"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-3"],[1,"flex","flex-col","gap-1"],[1,"text-xs","text-slate-400"],["name","name","required","",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","scope",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["value","single-project"],["value","cross-project"],["value","specialized"],["name","projectId",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","providerName","placeholder","openai / anthropic / ...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-1","md:col-span-2"],["name","model",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"bg-red-900","border","border-red-700","rounded","px-3","py-2","text-red-200","text-sm"],[1,"flex","gap-2","justify-end"],["type","button",1,"px-3","py-1","text-slate-400","hover:text-white",3,"click"],["type","submit",1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded"],[1,"px-3","py-2"],[1,"text-cyan-400","hover:text-cyan-300","font-mono",3,"routerLink"],[1,"px-3","py-2","text-slate-400"],[1,"px-3","py-2","text-slate-400","font-mono","text-xs"],[1,"px-2","py-0.5","rounded","text-xs","font-bold"],[1,"px-3","py-2","text-slate-500","font-mono"],[1,"px-3","py-2","space-x-1"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],["colspan","6",1,"px-3","py-6","text-center","text-slate-500"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h1",2),a(4,"Orchestrator Agents"),o(),n(5,"p",3),a(6," Akt\xEDv: "),n(7,"span",4),a(8),o()()(),k(9,Kt,2,0,"button",5),o(),k(10,Yt,36,6,"form",6),n(11,"div",7)(12,"table",8)(13,"thead",9)(14,"tr")(15,"th",10),a(16,"N\xE9v"),o(),n(17,"th",10),a(18,"Scope"),o(),n(19,"th",10),a(20,"Projekt"),o(),n(21,"th",10),a(22,"St\xE1tusz"),o(),n(23,"th",10),a(24,"Iter#"),o(),n(25,"th",10),a(26,"M\u0171veletek"),o()()(),n(27,"tbody"),D(28,ii,18,32,"tr",11,Qt,!1,ri,3,0,"tr"),o()()()()),t&2&&(s(8),g(i.activeCount_$()),s(),f(i.formIsOpen?-1:9),s(),f(i.formIsOpen?10:-1),s(18),M(i.orchestratorList_$()))},dependencies:[$,Y,me,he,fe,H,ue,K,pe,ze,X,_e,Q,de],encapsulation:2})}return r})();var ni=[{path:"",pathMatch:"full",component:Ee},{path:":id",component:ke}],Zr=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=$e({type:r});static \u0275inj=Re({imports:[$,Q.forChild(ni),Ee,ke]})}return r})();export{Zr as Orchestrator_Module};
2
+ //# sourceMappingURL=orc.module-Y3MWFFPS.js.map