@futdevpro/ccap 1.1.3531 → 1.1.3541

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 (198) hide show
  1. package/client-dist/{agent-instances.module-LEBXBHSV.js → agent-instances.module-XSCXUKLG.js} +2 -2
  2. package/client-dist/{ca.module-5NPCAEH3.js → ca.module-T5CIH6TV.js} +2 -2
  3. package/client-dist/{cc-usage-dashboard.component-TOA5U425.js → cc-usage-dashboard.component-AM3BIDTD.js} +2 -2
  4. package/client-dist/{cc.module-M2KDI46E.js → cc.module-BTDH3W35.js} +2 -2
  5. package/client-dist/{chunk-J46J5MTN.js → chunk-267SJPNL.js} +2 -2
  6. package/client-dist/{chunk-OEADAGQH.js → chunk-2E2U6W5C.js} +2 -2
  7. package/client-dist/{chunk-2COTQJ2I.js → chunk-3LXTC7HW.js} +2 -2
  8. package/client-dist/{chunk-WN3MVGUU.js → chunk-4ERMNFOA.js} +2 -2
  9. package/client-dist/{chunk-IC5ZWCML.js → chunk-55BEIT4Z.js} +2 -2
  10. package/client-dist/{chunk-CFSFLQWA.js → chunk-55GIBAXR.js} +2 -2
  11. package/client-dist/{chunk-UK3V2PRN.js → chunk-56OCNRUV.js} +2 -2
  12. package/client-dist/{chunk-6A3AQCSX.js → chunk-5CSP5UVB.js} +2 -2
  13. package/client-dist/{chunk-QXT3UTFD.js → chunk-5K7JOTLM.js} +2 -2
  14. package/client-dist/{chunk-UGUU2NWT.js → chunk-5MNPVLY5.js} +2 -2
  15. package/client-dist/{chunk-TH7B3DOV.js → chunk-5TQNCQTR.js} +2 -2
  16. package/client-dist/{chunk-MP55VQQR.js → chunk-5X55H7GH.js} +2 -2
  17. package/client-dist/{chunk-XDNSSMPP.js → chunk-7XQVDVMU.js} +2 -2
  18. package/client-dist/{chunk-L6GNRUJC.js → chunk-CQX6NFRZ.js} +2 -2
  19. package/client-dist/{chunk-A4HJM4OV.js → chunk-CVM4VJ5N.js} +2 -2
  20. package/client-dist/{chunk-N5JQCA4F.js → chunk-CVMD6IAH.js} +2 -2
  21. package/client-dist/{chunk-ZHULI23J.js → chunk-DN5CUZLM.js} +2 -2
  22. package/client-dist/{chunk-2WCAFHQC.js → chunk-DXJQ6HBM.js} +2 -2
  23. package/client-dist/{chunk-HQIMN5AA.js → chunk-E7RCTINU.js} +2 -2
  24. package/client-dist/{chunk-VSFTIB4X.js → chunk-EGI4FVO4.js} +2 -2
  25. package/client-dist/{chunk-OY7PGVPB.js → chunk-EUDQWXK4.js} +2 -2
  26. package/client-dist/{chunk-TDQMIJM3.js → chunk-EZENF5CK.js} +2 -2
  27. package/client-dist/{chunk-TGVHUGKA.js → chunk-FE5DJZZU.js} +2 -2
  28. package/client-dist/{chunk-6H6P6OZ2.js → chunk-GMKHMZXL.js} +2 -2
  29. package/client-dist/{chunk-6GHB2SRD.js → chunk-HGSNK73T.js} +2 -2
  30. package/client-dist/{chunk-PU4WYII6.js → chunk-HJQF3CU4.js} +2 -2
  31. package/client-dist/{chunk-XIIRIWET.js → chunk-IY4NQHPA.js} +2 -2
  32. package/client-dist/{chunk-2WLUZQTR.js → chunk-JNEYLO6R.js} +2 -2
  33. package/client-dist/{chunk-RMVAZ6HQ.js → chunk-KFWVR3WR.js} +2 -2
  34. package/client-dist/{chunk-NB647QZX.js → chunk-KMDU37YZ.js} +2 -2
  35. package/client-dist/{chunk-XVDCAPJP.js → chunk-LBKISXVH.js} +2 -2
  36. package/client-dist/{chunk-22GHC2XD.js → chunk-LKMINM7N.js} +2 -2
  37. package/client-dist/{chunk-CL4RY654.js → chunk-LX2EX2AF.js} +2 -2
  38. package/client-dist/{chunk-OCN2N7UJ.js → chunk-M2D5BA73.js} +2 -2
  39. package/client-dist/{chunk-BD6KFMGW.js → chunk-MROLGXZY.js} +2 -2
  40. package/client-dist/{chunk-IWNKASE6.js → chunk-MSOW2WLW.js} +2 -2
  41. package/client-dist/{chunk-LAGKAL3L.js → chunk-NDJN4RKL.js} +2 -2
  42. package/client-dist/{chunk-LAGKAL3L.js.map → chunk-NDJN4RKL.js.map} +1 -1
  43. package/client-dist/{chunk-C6W43QPS.js → chunk-OAMFQONX.js} +2 -2
  44. package/client-dist/{chunk-YQADDD7I.js → chunk-OEFJ6QHC.js} +2 -2
  45. package/client-dist/{chunk-QJ2EQJKN.js → chunk-OTHHRBBR.js} +2 -2
  46. package/client-dist/{chunk-QTERC7TJ.js → chunk-OU6XDY26.js} +2 -2
  47. package/client-dist/{chunk-UOQ4N3AE.js → chunk-OWUILHJS.js} +2 -2
  48. package/client-dist/{chunk-YXRBU52K.js → chunk-PEL4WV4U.js} +2 -2
  49. package/client-dist/{chunk-LMJNB4SB.js → chunk-RVJKTWJC.js} +2 -2
  50. package/client-dist/{chunk-GFQLE3EH.js → chunk-SMVNVM7Y.js} +2 -2
  51. package/client-dist/{chunk-NLKSUGZZ.js → chunk-SV77NVTH.js} +2 -2
  52. package/client-dist/{chunk-7VLY4VTD.js → chunk-TYR4TYNG.js} +2 -2
  53. package/client-dist/{chunk-LZC7JLXJ.js → chunk-UGJMG442.js} +2 -2
  54. package/client-dist/{chunk-4QNE5J6Q.js → chunk-VHPXV7XP.js} +2 -2
  55. package/client-dist/{chunk-EXMGHMJ5.js → chunk-W6ULMVRR.js} +2 -2
  56. package/client-dist/{chunk-P47U2QLF.js → chunk-WDEI7NEG.js} +2 -2
  57. package/client-dist/{chunk-GOPUT5GA.js → chunk-X5KTIO4P.js} +2 -2
  58. package/client-dist/{chunk-GV6H4VIS.js → chunk-XUURYWHX.js} +2 -2
  59. package/client-dist/{chunk-GUCNTACY.js → chunk-Y2M53SAK.js} +2 -2
  60. package/client-dist/{chunk-IULM3OTF.js → chunk-Z526VFJA.js} +2 -2
  61. package/client-dist/{chunk-VLX6EEAP.js → chunk-ZJ3LPHQ5.js} +2 -2
  62. package/client-dist/{chunk-4VUPDP2I.js → chunk-ZSJZEU3R.js} +2 -2
  63. package/client-dist/{consultant.module-NJPY4E3Q.js → consultant.module-2AHEUHAH.js} +2 -2
  64. package/client-dist/{crd.module-AH6SZA4U.js → crd.module-NYU72HIX.js} +2 -2
  65. package/client-dist/{dashboard.module-NUZIRCIE.js → dashboard.module-2QHKAL5P.js} +2 -2
  66. package/client-dist/{do.module-4MH3SHIF.js → do.module-IJTQN6EY.js} +2 -2
  67. package/client-dist/{document-library.module-YV75ZCQS.js → document-library.module-BXOB7MAT.js} +2 -2
  68. package/client-dist/{embedding-eval.module-5L2OIJ6A.js → embedding-eval.module-PX3BXAVL.js} +2 -2
  69. package/client-dist/{embedding-registry.module-KQC436ST.js → embedding-registry.module-TBITOBF6.js} +2 -2
  70. package/client-dist/{err.module-Y7OBXE3N.js → err.module-2PQOKXN5.js} +2 -2
  71. package/client-dist/{feedback.module-C27DGTMH.js → feedback.module-IITLJEI5.js} +2 -2
  72. package/client-dist/{host-runtime-mcp.module-4ZJMJ2AD.js → host-runtime-mcp.module-D3TKXLKI.js} +2 -2
  73. package/client-dist/index.html +1 -1
  74. package/client-dist/{live-dev-pipeline.module-J5GTMNDG.js → live-dev-pipeline.module-FMEJ2DH6.js} +2 -2
  75. package/client-dist/{logs.module-D56EESES.js → logs.module-V33XRZZH.js} +2 -2
  76. package/client-dist/{main-NV6VDDSG.js → main-YMZBVDWS.js} +3 -3
  77. package/client-dist/{master-control-remote-poc.module-7XU5MMKC.js → master-control-remote-poc.module-RUYJJQPJ.js} +2 -2
  78. package/client-dist/{mobile-app.module-GNYWGUX2.js → mobile-app.module-N3CO2746.js} +2 -2
  79. package/client-dist/{model-registry.module-A34RD52H.js → model-registry.module-AJT4QXWS.js} +2 -2
  80. package/client-dist/{oc.module-3XMULEMP.js → oc.module-OH2QLL6R.js} +2 -2
  81. package/client-dist/{orc.module-UHJZXNIS.js → orc.module-YXAAKVD2.js} +2 -2
  82. package/client-dist/{project-management.module-E33HMQHN.js → project-management.module-UFONRG4X.js} +2 -2
  83. package/client-dist/project-source-routed.module-JC6OJ2AP.js +2 -0
  84. package/client-dist/{scheduler.module-S3I4YKTW.js → scheduler.module-7W3T73RR.js} +2 -2
  85. package/client-dist/{session.module-LHTJO7XL.js → session.module-AP7PMRED.js} +2 -2
  86. package/client-dist/{set.module-3NY5WRMG.js → set.module-CYZGK6QZ.js} +2 -2
  87. package/client-dist/{setup.module-7NDAYQHS.js → setup.module-OA7HPYY2.js} +2 -2
  88. package/client-dist/{terminals.module-XASBETIN.js → terminals.module-F5I7VKI2.js} +2 -2
  89. package/client-dist/{voice-notes-poc.module-UKULV4ZV.js → voice-notes-poc.module-SJSWEGAH.js} +2 -2
  90. package/client-dist/{wfs.module-FSGY7JSG.js → wfs.module-UP3U2CUB.js} +2 -2
  91. package/package.json +1 -1
  92. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-definition.const.d.ts.map +1 -1
  93. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-definition.const.js +2 -0
  94. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/consts/fs-search-tool-definition.const.js.map +1 -1
  95. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/utils/fs-search.util.d.ts +6 -0
  96. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/utils/fs-search.util.d.ts.map +1 -1
  97. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/utils/fs-search.util.js +1 -0
  98. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-search/_collections/utils/fs-search.util.js.map +1 -1
  99. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/consts/read-by-ref-tool-definition.const.d.ts.map +1 -1
  100. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/consts/read-by-ref-tool-definition.const.js +5 -1
  101. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/consts/read-by-ref-tool-definition.const.js.map +1 -1
  102. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/consts/read-by-ref-tool-definition.const.spec.js +10 -2
  103. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/consts/read-by-ref-tool-definition.const.spec.js.map +1 -1
  104. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/utils/read-by-ref-ref-resolver.util.d.ts +5 -0
  105. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/utils/read-by-ref-ref-resolver.util.d.ts.map +1 -1
  106. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/utils/read-by-ref-ref-resolver.util.js +15 -2
  107. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/read-by-ref/_collections/utils/read-by-ref-ref-resolver.util.js.map +1 -1
  108. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.d.ts.map +1 -1
  109. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js +10 -1
  110. package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/received-files/_collections/consts/save-received-files-tool-definition.const.js.map +1 -1
  111. package/client-dist/project-source-routed.module-AEF2F6VE.js +0 -2
  112. /package/client-dist/{agent-instances.module-LEBXBHSV.js.map → agent-instances.module-XSCXUKLG.js.map} +0 -0
  113. /package/client-dist/{ca.module-5NPCAEH3.js.map → ca.module-T5CIH6TV.js.map} +0 -0
  114. /package/client-dist/{cc-usage-dashboard.component-TOA5U425.js.map → cc-usage-dashboard.component-AM3BIDTD.js.map} +0 -0
  115. /package/client-dist/{cc.module-M2KDI46E.js.map → cc.module-BTDH3W35.js.map} +0 -0
  116. /package/client-dist/{chunk-J46J5MTN.js.map → chunk-267SJPNL.js.map} +0 -0
  117. /package/client-dist/{chunk-OEADAGQH.js.map → chunk-2E2U6W5C.js.map} +0 -0
  118. /package/client-dist/{chunk-2COTQJ2I.js.map → chunk-3LXTC7HW.js.map} +0 -0
  119. /package/client-dist/{chunk-WN3MVGUU.js.map → chunk-4ERMNFOA.js.map} +0 -0
  120. /package/client-dist/{chunk-IC5ZWCML.js.map → chunk-55BEIT4Z.js.map} +0 -0
  121. /package/client-dist/{chunk-CFSFLQWA.js.map → chunk-55GIBAXR.js.map} +0 -0
  122. /package/client-dist/{chunk-UK3V2PRN.js.map → chunk-56OCNRUV.js.map} +0 -0
  123. /package/client-dist/{chunk-6A3AQCSX.js.map → chunk-5CSP5UVB.js.map} +0 -0
  124. /package/client-dist/{chunk-QXT3UTFD.js.map → chunk-5K7JOTLM.js.map} +0 -0
  125. /package/client-dist/{chunk-UGUU2NWT.js.map → chunk-5MNPVLY5.js.map} +0 -0
  126. /package/client-dist/{chunk-TH7B3DOV.js.map → chunk-5TQNCQTR.js.map} +0 -0
  127. /package/client-dist/{chunk-MP55VQQR.js.map → chunk-5X55H7GH.js.map} +0 -0
  128. /package/client-dist/{chunk-XDNSSMPP.js.map → chunk-7XQVDVMU.js.map} +0 -0
  129. /package/client-dist/{chunk-L6GNRUJC.js.map → chunk-CQX6NFRZ.js.map} +0 -0
  130. /package/client-dist/{chunk-A4HJM4OV.js.map → chunk-CVM4VJ5N.js.map} +0 -0
  131. /package/client-dist/{chunk-N5JQCA4F.js.map → chunk-CVMD6IAH.js.map} +0 -0
  132. /package/client-dist/{chunk-ZHULI23J.js.map → chunk-DN5CUZLM.js.map} +0 -0
  133. /package/client-dist/{chunk-2WCAFHQC.js.map → chunk-DXJQ6HBM.js.map} +0 -0
  134. /package/client-dist/{chunk-HQIMN5AA.js.map → chunk-E7RCTINU.js.map} +0 -0
  135. /package/client-dist/{chunk-VSFTIB4X.js.map → chunk-EGI4FVO4.js.map} +0 -0
  136. /package/client-dist/{chunk-OY7PGVPB.js.map → chunk-EUDQWXK4.js.map} +0 -0
  137. /package/client-dist/{chunk-TDQMIJM3.js.map → chunk-EZENF5CK.js.map} +0 -0
  138. /package/client-dist/{chunk-TGVHUGKA.js.map → chunk-FE5DJZZU.js.map} +0 -0
  139. /package/client-dist/{chunk-6H6P6OZ2.js.map → chunk-GMKHMZXL.js.map} +0 -0
  140. /package/client-dist/{chunk-6GHB2SRD.js.map → chunk-HGSNK73T.js.map} +0 -0
  141. /package/client-dist/{chunk-PU4WYII6.js.map → chunk-HJQF3CU4.js.map} +0 -0
  142. /package/client-dist/{chunk-XIIRIWET.js.map → chunk-IY4NQHPA.js.map} +0 -0
  143. /package/client-dist/{chunk-2WLUZQTR.js.map → chunk-JNEYLO6R.js.map} +0 -0
  144. /package/client-dist/{chunk-RMVAZ6HQ.js.map → chunk-KFWVR3WR.js.map} +0 -0
  145. /package/client-dist/{chunk-NB647QZX.js.map → chunk-KMDU37YZ.js.map} +0 -0
  146. /package/client-dist/{chunk-XVDCAPJP.js.map → chunk-LBKISXVH.js.map} +0 -0
  147. /package/client-dist/{chunk-22GHC2XD.js.map → chunk-LKMINM7N.js.map} +0 -0
  148. /package/client-dist/{chunk-CL4RY654.js.map → chunk-LX2EX2AF.js.map} +0 -0
  149. /package/client-dist/{chunk-OCN2N7UJ.js.map → chunk-M2D5BA73.js.map} +0 -0
  150. /package/client-dist/{chunk-BD6KFMGW.js.map → chunk-MROLGXZY.js.map} +0 -0
  151. /package/client-dist/{chunk-IWNKASE6.js.map → chunk-MSOW2WLW.js.map} +0 -0
  152. /package/client-dist/{chunk-C6W43QPS.js.map → chunk-OAMFQONX.js.map} +0 -0
  153. /package/client-dist/{chunk-YQADDD7I.js.map → chunk-OEFJ6QHC.js.map} +0 -0
  154. /package/client-dist/{chunk-QJ2EQJKN.js.map → chunk-OTHHRBBR.js.map} +0 -0
  155. /package/client-dist/{chunk-QTERC7TJ.js.map → chunk-OU6XDY26.js.map} +0 -0
  156. /package/client-dist/{chunk-UOQ4N3AE.js.map → chunk-OWUILHJS.js.map} +0 -0
  157. /package/client-dist/{chunk-YXRBU52K.js.map → chunk-PEL4WV4U.js.map} +0 -0
  158. /package/client-dist/{chunk-LMJNB4SB.js.map → chunk-RVJKTWJC.js.map} +0 -0
  159. /package/client-dist/{chunk-GFQLE3EH.js.map → chunk-SMVNVM7Y.js.map} +0 -0
  160. /package/client-dist/{chunk-NLKSUGZZ.js.map → chunk-SV77NVTH.js.map} +0 -0
  161. /package/client-dist/{chunk-7VLY4VTD.js.map → chunk-TYR4TYNG.js.map} +0 -0
  162. /package/client-dist/{chunk-LZC7JLXJ.js.map → chunk-UGJMG442.js.map} +0 -0
  163. /package/client-dist/{chunk-4QNE5J6Q.js.map → chunk-VHPXV7XP.js.map} +0 -0
  164. /package/client-dist/{chunk-EXMGHMJ5.js.map → chunk-W6ULMVRR.js.map} +0 -0
  165. /package/client-dist/{chunk-P47U2QLF.js.map → chunk-WDEI7NEG.js.map} +0 -0
  166. /package/client-dist/{chunk-GOPUT5GA.js.map → chunk-X5KTIO4P.js.map} +0 -0
  167. /package/client-dist/{chunk-GV6H4VIS.js.map → chunk-XUURYWHX.js.map} +0 -0
  168. /package/client-dist/{chunk-GUCNTACY.js.map → chunk-Y2M53SAK.js.map} +0 -0
  169. /package/client-dist/{chunk-IULM3OTF.js.map → chunk-Z526VFJA.js.map} +0 -0
  170. /package/client-dist/{chunk-VLX6EEAP.js.map → chunk-ZJ3LPHQ5.js.map} +0 -0
  171. /package/client-dist/{chunk-4VUPDP2I.js.map → chunk-ZSJZEU3R.js.map} +0 -0
  172. /package/client-dist/{consultant.module-NJPY4E3Q.js.map → consultant.module-2AHEUHAH.js.map} +0 -0
  173. /package/client-dist/{crd.module-AH6SZA4U.js.map → crd.module-NYU72HIX.js.map} +0 -0
  174. /package/client-dist/{dashboard.module-NUZIRCIE.js.map → dashboard.module-2QHKAL5P.js.map} +0 -0
  175. /package/client-dist/{do.module-4MH3SHIF.js.map → do.module-IJTQN6EY.js.map} +0 -0
  176. /package/client-dist/{document-library.module-YV75ZCQS.js.map → document-library.module-BXOB7MAT.js.map} +0 -0
  177. /package/client-dist/{embedding-eval.module-5L2OIJ6A.js.map → embedding-eval.module-PX3BXAVL.js.map} +0 -0
  178. /package/client-dist/{embedding-registry.module-KQC436ST.js.map → embedding-registry.module-TBITOBF6.js.map} +0 -0
  179. /package/client-dist/{err.module-Y7OBXE3N.js.map → err.module-2PQOKXN5.js.map} +0 -0
  180. /package/client-dist/{feedback.module-C27DGTMH.js.map → feedback.module-IITLJEI5.js.map} +0 -0
  181. /package/client-dist/{host-runtime-mcp.module-4ZJMJ2AD.js.map → host-runtime-mcp.module-D3TKXLKI.js.map} +0 -0
  182. /package/client-dist/{live-dev-pipeline.module-J5GTMNDG.js.map → live-dev-pipeline.module-FMEJ2DH6.js.map} +0 -0
  183. /package/client-dist/{logs.module-D56EESES.js.map → logs.module-V33XRZZH.js.map} +0 -0
  184. /package/client-dist/{main-NV6VDDSG.js.map → main-YMZBVDWS.js.map} +0 -0
  185. /package/client-dist/{master-control-remote-poc.module-7XU5MMKC.js.map → master-control-remote-poc.module-RUYJJQPJ.js.map} +0 -0
  186. /package/client-dist/{mobile-app.module-GNYWGUX2.js.map → mobile-app.module-N3CO2746.js.map} +0 -0
  187. /package/client-dist/{model-registry.module-A34RD52H.js.map → model-registry.module-AJT4QXWS.js.map} +0 -0
  188. /package/client-dist/{oc.module-3XMULEMP.js.map → oc.module-OH2QLL6R.js.map} +0 -0
  189. /package/client-dist/{orc.module-UHJZXNIS.js.map → orc.module-YXAAKVD2.js.map} +0 -0
  190. /package/client-dist/{project-management.module-E33HMQHN.js.map → project-management.module-UFONRG4X.js.map} +0 -0
  191. /package/client-dist/{project-source-routed.module-AEF2F6VE.js.map → project-source-routed.module-JC6OJ2AP.js.map} +0 -0
  192. /package/client-dist/{scheduler.module-S3I4YKTW.js.map → scheduler.module-7W3T73RR.js.map} +0 -0
  193. /package/client-dist/{session.module-LHTJO7XL.js.map → session.module-AP7PMRED.js.map} +0 -0
  194. /package/client-dist/{set.module-3NY5WRMG.js.map → set.module-CYZGK6QZ.js.map} +0 -0
  195. /package/client-dist/{setup.module-7NDAYQHS.js.map → setup.module-OA7HPYY2.js.map} +0 -0
  196. /package/client-dist/{terminals.module-XASBETIN.js.map → terminals.module-F5I7VKI2.js.map} +0 -0
  197. /package/client-dist/{voice-notes-poc.module-UKULV4ZV.js.map → voice-notes-poc.module-SJSWEGAH.js.map} +0 -0
  198. /package/client-dist/{wfs.module-FSGY7JSG.js.map → wfs.module-UP3U2CUB.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{c as ne,d as Xe,e as F,f as oe,h as Ye}from"./chunk-GV6H4VIS.js";import{a as Ce}from"./chunk-MP55VQQR.js";import"./chunk-YXRBU52K.js";import"./chunk-UGUU2NWT.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import{a as ge}from"./chunk-GFQLE3EH.js";import"./chunk-GUCNTACY.js";import{a as Qe}from"./chunk-7JUIBZEE.js";import{b as P,f as He,g as Ke}from"./chunk-OY7PGVPB.js";import{a as ke}from"./chunk-HQIMN5AA.js";import"./chunk-XVDCAPJP.js";import"./chunk-TH7B3DOV.js";import"./chunk-ZHULI23J.js";import"./chunk-EXMGHMJ5.js";import"./chunk-YQADDD7I.js";import"./chunk-V3VQWJQL.js";import"./chunk-OEADAGQH.js";import{e as J}from"./chunk-NLKSUGZZ.js";import{a as Ue}from"./chunk-FLAJXIYW.js";import{c as H,f as K,g as _e,h as me,i as X,j as ue,n as he,o as fe,p as xe,s as Be,v as Y}from"./chunk-EO4DNTT4.js";import"./chunk-5UPNU54P.js";import"./chunk-2WCAFHQC.js";import{I as qe,p as re}from"./chunk-LAGKAL3L.js";import{Aa as Ae,Ba as Ne,C as x,D as O,E as De,Eb as je,Fa as a,Ga as g,Ha as v,Hb as pe,Ia as de,J as m,K as u,Kb as Q,Ma as N,N as Me,Na as z,Oa as W,P as Pe,T as Le,Ta as R,U as Fe,Va as ze,Wa as We,Z as s,a as ee,aa as b,b as te,ca as le,da as k,ga as C,h as ie,hb as B,ia as E,k as _,la as f,na as ce,oa as D,p as w,pa as M,qa as n,ra as o,sa as A,t as G,ua as y,ub as $,va as p,wa as d,xb as Ge,y as j,z as Ie,za as Ve}from"./chunk-TBMJSIBB.js";var q=ie(re());var T=ie(re());var Je=(()=>{class r{http=x(Ge);baseUrl=`${qe.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(Je);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_$=B(()=>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 st=new Set(["orc:created","orc:statusChanged","orc:started","orc:paused","orc:resumed","orc:stopped","orc:waitingForUser"]),lt=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"]),ct=new Set(["orc:messageAdded","orc:responseToolCall","orc:responseToolResult"]),be=(()=>{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=>st.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=>lt.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=>ct.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 Oe=[{id:"orc-wake",label:"Wake",phase:"wake",category:F.milestone},{id:"orc-collect",label:"Collect",phase:"collect",category:F.phase},{id:"orc-analyze",label:"Analyze",phase:"analyze",category:F.llmCall},{id:"orc-sync-tasks",label:"Sync Tasks",phase:"sync-tasks",category:F.phase},{id:"orc-decide-next",label:"Decide Next",phase:"decide-next",category:F.llmCall},{id:"orc-execute",label:"Execute",phase:"execute",category:F.phase},{id:"orc-report",label:"Report",phase:"report",category:F.phase},{id:"orc-sleep",label:"Sleep",phase:"sleep",category:F.milestone}],ae=class{static buildSkeletonLayout(){let c=48+220/2,e=48,t=[],i=[];for(let S=0;S<Oe.length;S++){let V=Oe[S],Z=V.category===F.milestone,U=Z?200:220,Te=Z?48:60,at=oe.createNode({id:V.id,category:V.category,label:V.label,phase:V.phase,x:c-U/2,y:e,width:U,height:Te});t.push(at),S>0&&i.push(oe.createEdge(Oe[S-1].id,V.id,Xe.sequential)),e+=Te+36}let l=i.map(S=>{let V=t.find(U=>U.id===S.sourceNodeId),Z=t.find(U=>U.id===S.targetNodeId);return!V||!Z?S:te(ee({},S),{pathD:oe.computeEdgePath(V,Z,S.category)})}),h=oe.recalculateViewBox(t,48);return{nodes:t,edges:l,viewBox:h,loopContainerBounds:null}}};var ut={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"},ht=["orc-wake","orc-collect","orc-analyze","orc-sync-tasks","orc-decide-next","orc-execute","orc-report","orc-sleep"],ft=new Set(["orc:iterationStarted","orc:iterationCompleted","orc:statusChanged","orc:started","orc:paused","orc:stopped"]),Se=(()=>{class r{ccapSocket_CS=x(J);destroyRef=x(Pe);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=>ft.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=ut[e];if(!t)return;let i=this.graphLayout_$();if(!i)return;let l=!1;for(let h of ht)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(S=>S.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 we=ie(re());var ye=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 xt=["scrollAnchor"],Ct=(r,c)=>c.listKey,gt=(r,c)=>c._id;function bt(r,c){if(r&1&&(n(0,"p",14),a(1),o()),r&2){let e=d().$implicit;s(),v("Kontext: ",e.context,"")}}function St(r,c){if(r&1){let e=y();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 yt(r,c){if(r&1){let e=y();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 wt(r,c){if(r&1){let e=y();n(0,"div",16),D(1,yt,3,4,"label",20,ce),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 vt(r,c){if(r&1){let e=y();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 kt(r,c){if(r&1&&(n(0,"div",12)(1,"p",13),a(2),o(),k(3,bt,2,1,"p",14)(4,St,7,9,"div",15)(5,wt,5,1,"div",16)(6,vt,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 Et(r,c){if(r&1&&(n(0,"div",2)(1,"h3",11),a(2),o(),D(3,kt,7,5,"div",12,gt),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 Ot(r,c){if(r&1&&A(0,"app-s-agent-console-message-bubble",4),r&2){let e=c.$implicit;C("view",e)}}function Rt(r,c){r&1&&(n(0,"p",5),a(1,"M\xE9g nincs \xFCzenet."),o())}function $t(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 Tt=new Set(["orc:messageAdded","orc:userQuestionAsked","orc:userQuestionAnswered"]),tt=(()=>{class r extends Ce{orchestrator_DS=x(I);ccapSocket_CS=x(J);orchestratorId;scrollAnchor;questionsRaw_$=b([]);bubbleViews_$=B(()=>ye.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=>Tt.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){we.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){we.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){we.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&&Ve(xt,5),t&2){let l;Ae(l=Ne())&&(i.scrollAnchor=l.first)}},hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[le,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=y();n(0,"app-s-session-chat-column-layout")(1,"div",1),k(2,Et,5,1,"div",2),o(),n(3,"div",3),D(4,Ot,1,1,"app-s-agent-console-message-bubble",4,Ct,!1,Rt,2,0,"p",5),k(7,$t,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(S){return m(l),z(i.userInput,S)||(i.userInput=S),u(S)}),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,ue,H,K,_e,X,me,Ke,He],encapsulation:2})}return r})();var it=(()=>{class r{graph_DS=x(Se);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:[$,Ue,Ye],encapsulation:2})}return r})();var rt=(()=>{class r{mode_$=Fe.required({alias:"mode_$"});modeChanged=Le();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 It=(r,c)=>c._id;function Dt(r,c){r&1&&(n(0,"p",31),a(1," Nincs a sz\u0171r\u0151knek megfelel\u0151 task. "),o())}function Mt(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 Pt(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,Mt,14,14,"tr",38,It),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 nt=(()=>{class r{orchestrator_DS=x(I);tasks_$;filterStatus_$=b("all");filterType_$=b("all");filterPriority_$=b("all");searchText_$=b("");filteredTasks_$=B(()=>{let e=this.tasks_$(),t=this.filterStatus_$(),i=this.filterType_$(),l=this.filterPriority_$(),h=this.searchText_$();return e.filter(S=>!(t!=="all"&&S.status!==t||i!=="all"&&S.type!==i||l!=="all"&&S.priority!==l||h.trim()&&!ke.includesText(S.title,h)&&!ke.includesText(S.description,h)))});groupedByStatus_$=B(()=>{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_$=B(()=>{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,Dt,2,0,"p",31),D(60,Pt,23,2,"div",32,ce),o()),t&2&&(s(5),de(" ",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,fe,xe,H,he,K,X],encapsulation:2})}return r})();var Re=ie(re());var Lt=(r,c)=>c.id;function Ft(r,c){r&1&&(n(0,"p",4),a(1,"Nincs bet\xF6lt\xF6tt workflow."),o())}function Vt(r,c){if(r&1){let e=y();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 At(r,c){if(r&1){let e=y();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 ot=(()=>{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){Re.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){Re.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,Ft,2,0,"p",4),n(7,"div",5),D(8,Vt,5,2,"div",6,Lt),o(),k(10,At,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 zt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleStart())}),a(1,"Start"),o()}}function Wt(r,c){if(r&1){let e=y();n(0,"button",28),p("click",function(){m(e);let i=d(2);return u(i.handlePause())}),a(1,"Pause"),o()}}function Gt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleResume())}),a(1,"Resume"),o()}}function jt(r,c){if(r&1){let e=y();n(0,"button",29),p("click",function(){m(e);let i=d(2);return u(i.handleStop())}),a(1,"Stop"),o()}}function Bt(r,c){if(r&1){let e=y();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 qt(r,c){if(r&1&&A(0,"app-orc-task-queue-panel",24),r&2){let e=d(2);C("tasks_$",e.tasks_$)}}function Ut(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),de("",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 Ht(r,c){if(r&1){let e=y();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,zt,2,0,"button",13)(16,Wt,2,0,"button",14)(17,Gt,2,0,"button",13)(18,jt,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,Bt,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,qt,1,1,"app-orc-task-queue-panel",24)(35,Ut,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 Kt(r,c){r&1&&(n(0,"div",1),a(1," T\xF6lt\u0151dik az orchestrator\u2026 "),o())}var ve=(()=>{class r extends Ce{route=x(je);orchestrator_DS=x(I);realtime_CS=x(be);graph_DS=x(Se);peiContext_DS=x(ge);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.addSubscription(this.route.paramMap.subscribe(e=>{let t=e.get("id")??"",i=e.get("ccapId")??"";i&&this.peiContext_DS.activeCcapId_$()!==i&&this.peiContext_DS.selectInstance(i),t&&t!==this.orchestratorId&&(this.orchestratorId=t,this.orchestrator_DS.refreshCurrent(t),this.orchestrator_DS.refreshCurrentTasks(t),this.orchestrator_DS.refreshCurrentMessages(t),this.realtime_CS.subscribeDetail(t))}))}ngOnDestroy(){super.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){q.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){q.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){q.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){q.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){q.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){q.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=(()=>{let e;return function(i){return(e||(e=Me(r)))(i||r)}})();static \u0275cmp=O({type:r,selectors:[["app-orc-detail"]],hostAttrs:[1,"flex","flex-1","min-h-0","overflow-hidden"],standalone:!0,features:[le,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,Ht,37,63,"app-s-session-detail-three-column-layout",0)(1,Kt,2,0,"div",1),A(2,"app-orc-graph-modal")),t&2){let l;f((l=i.current_$())?0:1,l)}},dependencies:[$,Q,pe,Qe,tt,it,rt,nt,ot],encapsulation:2})}return r})();var se=ie(re());var Xt=(r,c)=>c._id,Yt=(r,c)=>["/orchestrator",r,c],Jt=r=>["/orchestrator",r];function Zt(r,c){if(r&1){let e=y();n(0,"button",12),p("click",function(){m(e);let i=d();return u(i.openForm())}),a(1," + \xDAj Orchestrator "),o()}}function ei(r,c){if(r&1&&(n(0,"div",27),a(1),o()),r&2){let e=d(2);s(),v(" ",e.formError," ")}}function ti(r,c){if(r&1){let e=y();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,ei,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 ii(r,c){if(r&1){let e=y();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 ri(r,c){if(r&1){let e=y();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 ni(r,c){if(r&1){let e=y();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 oi(r,c){if(r&1){let e=y();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 ai(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,ii,2,0,"button",38)(15,ri,2,0,"button",39)(16,ni,2,0,"button",38)(17,oi,2,0,"button",40),o()()),r&2){let e=c.$implicit,t=d();s(2),C("routerLink",t.activeCcapId_$()?We(30,Yt,t.activeCcapId_$(),e._id):ze(33,Jt,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 si(r,c){r&1&&(n(0,"tr")(1,"td",44),a(2,' Nincs Orchestrator. Kattints a \u201E+ \xDAj Orchestrator" gombra. '),o()())}var $e=(()=>{class r{orchestrator_DS=x(I);realtime_CS=x(be);peiContext_DS=x(ge);orchestratorList_$=this.orchestrator_DS.orchestratorList_$;activeCount_$=this.orchestrator_DS.activeCount_$;activeCcapId_$=this.peiContext_DS.activeCcapId_$;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,Zt,2,0,"button",5),o(),k(10,ti,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,ai,18,35,"tr",11,Xt,!1,si,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,ue,fe,xe,H,he,K,_e,Be,X,me,Q,pe],encapsulation:2})}return r})();var li=[{path:"",pathMatch:"full",component:$e},{path:":ccapId/:id",component:ve},{path:":id",component:ve}],sn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=De({type:r});static \u0275inj=Ie({imports:[$,Q.forChild(li),$e,ve]})}return r})();export{sn as Orchestrator_Module};
2
- //# sourceMappingURL=orc.module-UHJZXNIS.js.map
1
+ import{c as ne,d as Xe,e as F,f as oe,h as Ye}from"./chunk-XUURYWHX.js";import{a as Ce}from"./chunk-5X55H7GH.js";import"./chunk-PEL4WV4U.js";import"./chunk-5MNPVLY5.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import{a as ge}from"./chunk-SMVNVM7Y.js";import"./chunk-Y2M53SAK.js";import{a as Qe}from"./chunk-7JUIBZEE.js";import{b as P,f as He,g as Ke}from"./chunk-EUDQWXK4.js";import{a as ke}from"./chunk-E7RCTINU.js";import"./chunk-LBKISXVH.js";import"./chunk-5TQNCQTR.js";import"./chunk-DN5CUZLM.js";import"./chunk-W6ULMVRR.js";import"./chunk-OEFJ6QHC.js";import"./chunk-V3VQWJQL.js";import"./chunk-2E2U6W5C.js";import{e as J}from"./chunk-SV77NVTH.js";import{a as Ue}from"./chunk-FLAJXIYW.js";import{c as H,f as K,g as _e,h as me,i as X,j as ue,n as he,o as fe,p as xe,s as Be,v as Y}from"./chunk-EO4DNTT4.js";import"./chunk-5UPNU54P.js";import"./chunk-DXJQ6HBM.js";import{I as qe,p as re}from"./chunk-NDJN4RKL.js";import{Aa as Ae,Ba as Ne,C as x,D as O,E as De,Eb as je,Fa as a,Ga as g,Ha as v,Hb as pe,Ia as de,J as m,K as u,Kb as Q,Ma as N,N as Me,Na as z,Oa as W,P as Pe,T as Le,Ta as R,U as Fe,Va as ze,Wa as We,Z as s,a as ee,aa as b,b as te,ca as le,da as k,ga as C,h as ie,hb as B,ia as E,k as _,la as f,na as ce,oa as D,p as w,pa as M,qa as n,ra as o,sa as A,t as G,ua as y,ub as $,va as p,wa as d,xb as Ge,y as j,z as Ie,za as Ve}from"./chunk-TBMJSIBB.js";var q=ie(re());var T=ie(re());var Je=(()=>{class r{http=x(Ge);baseUrl=`${qe.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(Je);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_$=B(()=>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 st=new Set(["orc:created","orc:statusChanged","orc:started","orc:paused","orc:resumed","orc:stopped","orc:waitingForUser"]),lt=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"]),ct=new Set(["orc:messageAdded","orc:responseToolCall","orc:responseToolResult"]),be=(()=>{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=>st.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=>lt.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=>ct.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 Oe=[{id:"orc-wake",label:"Wake",phase:"wake",category:F.milestone},{id:"orc-collect",label:"Collect",phase:"collect",category:F.phase},{id:"orc-analyze",label:"Analyze",phase:"analyze",category:F.llmCall},{id:"orc-sync-tasks",label:"Sync Tasks",phase:"sync-tasks",category:F.phase},{id:"orc-decide-next",label:"Decide Next",phase:"decide-next",category:F.llmCall},{id:"orc-execute",label:"Execute",phase:"execute",category:F.phase},{id:"orc-report",label:"Report",phase:"report",category:F.phase},{id:"orc-sleep",label:"Sleep",phase:"sleep",category:F.milestone}],ae=class{static buildSkeletonLayout(){let c=48+220/2,e=48,t=[],i=[];for(let S=0;S<Oe.length;S++){let V=Oe[S],Z=V.category===F.milestone,U=Z?200:220,Te=Z?48:60,at=oe.createNode({id:V.id,category:V.category,label:V.label,phase:V.phase,x:c-U/2,y:e,width:U,height:Te});t.push(at),S>0&&i.push(oe.createEdge(Oe[S-1].id,V.id,Xe.sequential)),e+=Te+36}let l=i.map(S=>{let V=t.find(U=>U.id===S.sourceNodeId),Z=t.find(U=>U.id===S.targetNodeId);return!V||!Z?S:te(ee({},S),{pathD:oe.computeEdgePath(V,Z,S.category)})}),h=oe.recalculateViewBox(t,48);return{nodes:t,edges:l,viewBox:h,loopContainerBounds:null}}};var ut={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"},ht=["orc-wake","orc-collect","orc-analyze","orc-sync-tasks","orc-decide-next","orc-execute","orc-report","orc-sleep"],ft=new Set(["orc:iterationStarted","orc:iterationCompleted","orc:statusChanged","orc:started","orc:paused","orc:stopped"]),Se=(()=>{class r{ccapSocket_CS=x(J);destroyRef=x(Pe);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=>ft.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=ut[e];if(!t)return;let i=this.graphLayout_$();if(!i)return;let l=!1;for(let h of ht)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(S=>S.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 we=ie(re());var ye=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 xt=["scrollAnchor"],Ct=(r,c)=>c.listKey,gt=(r,c)=>c._id;function bt(r,c){if(r&1&&(n(0,"p",14),a(1),o()),r&2){let e=d().$implicit;s(),v("Kontext: ",e.context,"")}}function St(r,c){if(r&1){let e=y();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 yt(r,c){if(r&1){let e=y();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 wt(r,c){if(r&1){let e=y();n(0,"div",16),D(1,yt,3,4,"label",20,ce),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 vt(r,c){if(r&1){let e=y();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 kt(r,c){if(r&1&&(n(0,"div",12)(1,"p",13),a(2),o(),k(3,bt,2,1,"p",14)(4,St,7,9,"div",15)(5,wt,5,1,"div",16)(6,vt,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 Et(r,c){if(r&1&&(n(0,"div",2)(1,"h3",11),a(2),o(),D(3,kt,7,5,"div",12,gt),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 Ot(r,c){if(r&1&&A(0,"app-s-agent-console-message-bubble",4),r&2){let e=c.$implicit;C("view",e)}}function Rt(r,c){r&1&&(n(0,"p",5),a(1,"M\xE9g nincs \xFCzenet."),o())}function $t(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 Tt=new Set(["orc:messageAdded","orc:userQuestionAsked","orc:userQuestionAnswered"]),tt=(()=>{class r extends Ce{orchestrator_DS=x(I);ccapSocket_CS=x(J);orchestratorId;scrollAnchor;questionsRaw_$=b([]);bubbleViews_$=B(()=>ye.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=>Tt.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){we.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){we.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){we.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&&Ve(xt,5),t&2){let l;Ae(l=Ne())&&(i.scrollAnchor=l.first)}},hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[le,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=y();n(0,"app-s-session-chat-column-layout")(1,"div",1),k(2,Et,5,1,"div",2),o(),n(3,"div",3),D(4,Ot,1,1,"app-s-agent-console-message-bubble",4,Ct,!1,Rt,2,0,"p",5),k(7,$t,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(S){return m(l),z(i.userInput,S)||(i.userInput=S),u(S)}),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,ue,H,K,_e,X,me,Ke,He],encapsulation:2})}return r})();var it=(()=>{class r{graph_DS=x(Se);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:[$,Ue,Ye],encapsulation:2})}return r})();var rt=(()=>{class r{mode_$=Fe.required({alias:"mode_$"});modeChanged=Le();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 It=(r,c)=>c._id;function Dt(r,c){r&1&&(n(0,"p",31),a(1," Nincs a sz\u0171r\u0151knek megfelel\u0151 task. "),o())}function Mt(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 Pt(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,Mt,14,14,"tr",38,It),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 nt=(()=>{class r{orchestrator_DS=x(I);tasks_$;filterStatus_$=b("all");filterType_$=b("all");filterPriority_$=b("all");searchText_$=b("");filteredTasks_$=B(()=>{let e=this.tasks_$(),t=this.filterStatus_$(),i=this.filterType_$(),l=this.filterPriority_$(),h=this.searchText_$();return e.filter(S=>!(t!=="all"&&S.status!==t||i!=="all"&&S.type!==i||l!=="all"&&S.priority!==l||h.trim()&&!ke.includesText(S.title,h)&&!ke.includesText(S.description,h)))});groupedByStatus_$=B(()=>{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_$=B(()=>{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,Dt,2,0,"p",31),D(60,Pt,23,2,"div",32,ce),o()),t&2&&(s(5),de(" ",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,fe,xe,H,he,K,X],encapsulation:2})}return r})();var Re=ie(re());var Lt=(r,c)=>c.id;function Ft(r,c){r&1&&(n(0,"p",4),a(1,"Nincs bet\xF6lt\xF6tt workflow."),o())}function Vt(r,c){if(r&1){let e=y();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 At(r,c){if(r&1){let e=y();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 ot=(()=>{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){Re.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){Re.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,Ft,2,0,"p",4),n(7,"div",5),D(8,Vt,5,2,"div",6,Lt),o(),k(10,At,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 zt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleStart())}),a(1,"Start"),o()}}function Wt(r,c){if(r&1){let e=y();n(0,"button",28),p("click",function(){m(e);let i=d(2);return u(i.handlePause())}),a(1,"Pause"),o()}}function Gt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleResume())}),a(1,"Resume"),o()}}function jt(r,c){if(r&1){let e=y();n(0,"button",29),p("click",function(){m(e);let i=d(2);return u(i.handleStop())}),a(1,"Stop"),o()}}function Bt(r,c){if(r&1){let e=y();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 qt(r,c){if(r&1&&A(0,"app-orc-task-queue-panel",24),r&2){let e=d(2);C("tasks_$",e.tasks_$)}}function Ut(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),de("",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 Ht(r,c){if(r&1){let e=y();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,zt,2,0,"button",13)(16,Wt,2,0,"button",14)(17,Gt,2,0,"button",13)(18,jt,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,Bt,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,qt,1,1,"app-orc-task-queue-panel",24)(35,Ut,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 Kt(r,c){r&1&&(n(0,"div",1),a(1," T\xF6lt\u0151dik az orchestrator\u2026 "),o())}var ve=(()=>{class r extends Ce{route=x(je);orchestrator_DS=x(I);realtime_CS=x(be);graph_DS=x(Se);peiContext_DS=x(ge);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.addSubscription(this.route.paramMap.subscribe(e=>{let t=e.get("id")??"",i=e.get("ccapId")??"";i&&this.peiContext_DS.activeCcapId_$()!==i&&this.peiContext_DS.selectInstance(i),t&&t!==this.orchestratorId&&(this.orchestratorId=t,this.orchestrator_DS.refreshCurrent(t),this.orchestrator_DS.refreshCurrentTasks(t),this.orchestrator_DS.refreshCurrentMessages(t),this.realtime_CS.subscribeDetail(t))}))}ngOnDestroy(){super.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){q.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){q.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){q.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){q.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){q.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){q.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=(()=>{let e;return function(i){return(e||(e=Me(r)))(i||r)}})();static \u0275cmp=O({type:r,selectors:[["app-orc-detail"]],hostAttrs:[1,"flex","flex-1","min-h-0","overflow-hidden"],standalone:!0,features:[le,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,Ht,37,63,"app-s-session-detail-three-column-layout",0)(1,Kt,2,0,"div",1),A(2,"app-orc-graph-modal")),t&2){let l;f((l=i.current_$())?0:1,l)}},dependencies:[$,Q,pe,Qe,tt,it,rt,nt,ot],encapsulation:2})}return r})();var se=ie(re());var Xt=(r,c)=>c._id,Yt=(r,c)=>["/orchestrator",r,c],Jt=r=>["/orchestrator",r];function Zt(r,c){if(r&1){let e=y();n(0,"button",12),p("click",function(){m(e);let i=d();return u(i.openForm())}),a(1," + \xDAj Orchestrator "),o()}}function ei(r,c){if(r&1&&(n(0,"div",27),a(1),o()),r&2){let e=d(2);s(),v(" ",e.formError," ")}}function ti(r,c){if(r&1){let e=y();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,ei,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 ii(r,c){if(r&1){let e=y();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 ri(r,c){if(r&1){let e=y();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 ni(r,c){if(r&1){let e=y();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 oi(r,c){if(r&1){let e=y();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 ai(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,ii,2,0,"button",38)(15,ri,2,0,"button",39)(16,ni,2,0,"button",38)(17,oi,2,0,"button",40),o()()),r&2){let e=c.$implicit,t=d();s(2),C("routerLink",t.activeCcapId_$()?We(30,Yt,t.activeCcapId_$(),e._id):ze(33,Jt,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 si(r,c){r&1&&(n(0,"tr")(1,"td",44),a(2,' Nincs Orchestrator. Kattints a \u201E+ \xDAj Orchestrator" gombra. '),o()())}var $e=(()=>{class r{orchestrator_DS=x(I);realtime_CS=x(be);peiContext_DS=x(ge);orchestratorList_$=this.orchestrator_DS.orchestratorList_$;activeCount_$=this.orchestrator_DS.activeCount_$;activeCcapId_$=this.peiContext_DS.activeCcapId_$;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,Zt,2,0,"button",5),o(),k(10,ti,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,ai,18,35,"tr",11,Xt,!1,si,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,ue,fe,xe,H,he,K,_e,Be,X,me,Q,pe],encapsulation:2})}return r})();var li=[{path:"",pathMatch:"full",component:$e},{path:":ccapId/:id",component:ve},{path:":id",component:ve}],sn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=De({type:r});static \u0275inj=Ie({imports:[$,Q.forChild(li),$e,ve]})}return r})();export{sn as Orchestrator_Module};
2
+ //# sourceMappingURL=orc.module-YXAAKVD2.js.map