@futdevpro/ccap 1.1.3125 → 1.1.3130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/client-dist/{agent-instances.module-3N6ANN67.js → agent-instances.module-KE64PSK7.js} +2 -2
  2. package/client-dist/{ca.module-VKQKP6JP.js → ca.module-JJZX5YKQ.js} +2 -2
  3. package/client-dist/{cc-usage-dashboard.component-65FF5SWE.js → cc-usage-dashboard.component-ODAXHZHU.js} +2 -2
  4. package/client-dist/{cc.module-BKTAO4S7.js → cc.module-4MS5M5XW.js} +2 -2
  5. package/client-dist/{chunk-OZHMTJQJ.js → chunk-36BCBGXK.js} +2 -2
  6. package/client-dist/{chunk-7UGLDNS5.js → chunk-3HLEHUE4.js} +2 -2
  7. package/client-dist/{chunk-MANX3UTJ.js → chunk-4CLON3UX.js} +2 -2
  8. package/client-dist/{chunk-IA2MKRM5.js → chunk-4O4UDIWG.js} +2 -2
  9. package/client-dist/{chunk-WJTUNKFF.js → chunk-5E5W3DFK.js} +2 -2
  10. package/client-dist/{chunk-34ASVWQQ.js → chunk-5KQZGU6O.js} +2 -2
  11. package/client-dist/{chunk-UOOILECA.js → chunk-5XJR5EAR.js} +2 -2
  12. package/client-dist/{chunk-HTF2IFDS.js → chunk-7TYUDNTP.js} +2 -2
  13. package/client-dist/{chunk-WV4WOPQF.js → chunk-C2ZXKTHA.js} +2 -2
  14. package/client-dist/{chunk-ES7OKROB.js → chunk-CAUXU2ZC.js} +2 -2
  15. package/client-dist/{chunk-Q4Z4WTJ3.js → chunk-CBMKN4SJ.js} +2 -2
  16. package/client-dist/{chunk-C5WLCPTP.js → chunk-CF3BLCVD.js} +2 -2
  17. package/client-dist/{chunk-DBF3SSPS.js → chunk-CIO2T2KX.js} +2 -2
  18. package/client-dist/{chunk-C5SDBZ5G.js → chunk-CUA2OS6E.js} +2 -2
  19. package/client-dist/{chunk-ALT4GOBR.js → chunk-DB33SOJ3.js} +2 -2
  20. package/client-dist/{chunk-FXN33EYC.js → chunk-EC4VBEIV.js} +2 -2
  21. package/client-dist/{chunk-RO7BDRAB.js → chunk-EFH7L2PM.js} +2 -2
  22. package/client-dist/{chunk-EHNLVVAY.js → chunk-EG7MEKVY.js} +2 -2
  23. package/client-dist/{chunk-SC33BNLI.js → chunk-EGWEYXZW.js} +2 -2
  24. package/client-dist/{chunk-VM6JI2LV.js → chunk-EVYE6YII.js} +2 -2
  25. package/client-dist/{chunk-AELBVLTQ.js → chunk-FBF7RSNU.js} +2 -2
  26. package/client-dist/{chunk-UCATC7Y7.js → chunk-FBZDKQ4K.js} +2 -2
  27. package/client-dist/{chunk-ZLSL5N3C.js → chunk-FQL5FQFW.js} +2 -2
  28. package/client-dist/{chunk-BSZUQJTF.js → chunk-GOPRHQFC.js} +2 -2
  29. package/client-dist/{chunk-R5DCGGN5.js → chunk-HK2TYWE7.js} +2 -2
  30. package/client-dist/{chunk-ZGNVQEFP.js → chunk-HSO5WM67.js} +2 -2
  31. package/client-dist/{chunk-PATTK77E.js → chunk-ISPLVKBM.js} +2 -2
  32. package/client-dist/{chunk-WWJB3AHB.js → chunk-JWXM6QMF.js} +2 -2
  33. package/client-dist/{chunk-3EWLYCQY.js → chunk-KC7UN4VT.js} +2 -2
  34. package/client-dist/{chunk-XEGOHOPX.js → chunk-KNTOPF7C.js} +2 -2
  35. package/client-dist/{chunk-A7WV3WRL.js → chunk-L4CLV44N.js} +2 -2
  36. package/client-dist/{chunk-46VCON6Y.js → chunk-LBG3XMYU.js} +2 -2
  37. package/client-dist/{chunk-V46EMM4L.js → chunk-NBH53JWT.js} +2 -2
  38. package/client-dist/{chunk-57RF5FWV.js → chunk-NHKJYR4C.js} +2 -2
  39. package/client-dist/{chunk-TDVYMNCA.js → chunk-NIMLWXGM.js} +2 -2
  40. package/client-dist/{chunk-IRCYROGT.js → chunk-O6KFG5LW.js} +2 -2
  41. package/client-dist/{chunk-7ELFOHXT.js → chunk-PR5VADUQ.js} +2 -2
  42. package/client-dist/{chunk-4EPTK7TX.js → chunk-QHZI4F2F.js} +2 -2
  43. package/client-dist/{chunk-TWWHZRZD.js → chunk-QNLMNKP4.js} +2 -2
  44. package/client-dist/{chunk-45RYGYWU.js → chunk-R2C7U5TP.js} +2 -2
  45. package/client-dist/{chunk-FIPZN6Q5.js → chunk-RLXJG6ZF.js} +2 -2
  46. package/client-dist/{chunk-YPFW4KUX.js → chunk-RNXGBUU3.js} +2 -2
  47. package/client-dist/{chunk-YIVWQSH4.js → chunk-S5PG5OUU.js} +2 -2
  48. package/client-dist/{chunk-RVZXTBBM.js → chunk-SWJLLCFC.js} +2 -2
  49. package/client-dist/{chunk-TU3VH4LZ.js → chunk-TCDXJTTX.js} +2 -2
  50. package/client-dist/{chunk-NJPJYDH6.js → chunk-U6B7OBXY.js} +2 -2
  51. package/client-dist/{chunk-NK4RLW4D.js → chunk-URXIWUNP.js} +2 -2
  52. package/client-dist/{chunk-6NAFJLV5.js → chunk-UTJQVE4E.js} +2 -2
  53. package/client-dist/{chunk-NAHXFBXE.js → chunk-V6QEYU4X.js} +2 -2
  54. package/client-dist/{chunk-EUAB5X46.js → chunk-VL2H6COO.js} +2 -2
  55. package/client-dist/{chunk-XRPVTKIP.js → chunk-VORYOEWH.js} +2 -2
  56. package/client-dist/{chunk-PN5J6JP2.js → chunk-VU76JPZM.js} +2 -2
  57. package/client-dist/{chunk-3BIY7XPG.js → chunk-X4IBG3WG.js} +2 -2
  58. package/client-dist/{chunk-KBLPP6PQ.js → chunk-XZTQ4YC7.js} +2 -2
  59. package/client-dist/{chunk-QXM45TNB.js → chunk-Y3DARUXQ.js} +2 -2
  60. package/client-dist/{chunk-QXM45TNB.js.map → chunk-Y3DARUXQ.js.map} +1 -1
  61. package/client-dist/{chunk-TCJ6WHLQ.js → chunk-ZTB2RW6R.js} +2 -2
  62. package/client-dist/{consultant.module-5G73QF4O.js → consultant.module-S4UQA3UJ.js} +2 -2
  63. package/client-dist/{crd.module-PF5ZYSFN.js → crd.module-XHOTNUXY.js} +2 -2
  64. package/client-dist/{dashboard.module-QIH6EALQ.js → dashboard.module-YZMJUPDH.js} +2 -2
  65. package/client-dist/{do.module-IZT2TG65.js → do.module-ESWOBSRO.js} +2 -2
  66. package/client-dist/{document-library.module-OC3PF44G.js → document-library.module-S2IATB7C.js} +2 -2
  67. package/client-dist/{embedding-eval.module-FXSI4XED.js → embedding-eval.module-OAUL3HRQ.js} +2 -2
  68. package/client-dist/{embedding-registry.module-W65CI3YZ.js → embedding-registry.module-T4Q57QWS.js} +2 -2
  69. package/client-dist/{err.module-34QTGFAO.js → err.module-YM7F2DFM.js} +2 -2
  70. package/client-dist/{feedback.module-LWOMLYP2.js → feedback.module-4ZLA4O5I.js} +2 -2
  71. package/client-dist/{host-runtime-mcp.module-4GXDHVJV.js → host-runtime-mcp.module-OIK42CRE.js} +2 -2
  72. package/client-dist/index.html +1 -1
  73. package/client-dist/{live-dev-pipeline.module-KB44IF3A.js → live-dev-pipeline.module-AFWGOCMO.js} +2 -2
  74. package/client-dist/{logs.module-S6JGYNTG.js → logs.module-OSZVMRRI.js} +2 -2
  75. package/client-dist/{main-KV4C3EP5.js → main-3KSHNVCW.js} +3 -3
  76. package/client-dist/{master-control-remote-poc.module-HSWDJ7AR.js → master-control-remote-poc.module-T5NK5KD7.js} +2 -2
  77. package/client-dist/{mobile-app.module-CPULBFKG.js → mobile-app.module-GPFLEVWR.js} +2 -2
  78. package/client-dist/{model-registry.module-SCIPNUN7.js → model-registry.module-SKRFHTWQ.js} +2 -2
  79. package/client-dist/{oc.module-7SUQHFMM.js → oc.module-562ZP6BM.js} +2 -2
  80. package/client-dist/{orc.module-UOTIRJKH.js → orc.module-SCMVZ535.js} +2 -2
  81. package/client-dist/{project-management.module-SXG557HP.js → project-management.module-LA7M6MXA.js} +2 -2
  82. package/client-dist/project-source-routed.module-QQBPIDUK.js +2 -0
  83. package/client-dist/{scheduler.module-EED4H4OV.js → scheduler.module-QNWITVDV.js} +2 -2
  84. package/client-dist/{session.module-R4NYRIWY.js → session.module-LJNWNXN7.js} +2 -2
  85. package/client-dist/{set.module-ZWXJCTIC.js → set.module-FINVUQYD.js} +2 -2
  86. package/client-dist/{setup.module-STH35LIH.js → setup.module-5FOSEQWI.js} +2 -2
  87. package/client-dist/{terminals.module-SZPN4HFG.js → terminals.module-LMW6DR3T.js} +2 -2
  88. package/client-dist/{voice-notes-poc.module-DSCGKJMG.js → voice-notes-poc.module-R3ECC3V3.js} +2 -2
  89. package/client-dist/{wfs.module-CNAZGEUO.js → wfs.module-TAZFZ2BH.js} +2 -2
  90. package/package.json +1 -1
  91. package/client-dist/project-source-routed.module-JLUP6FXQ.js +0 -2
  92. /package/client-dist/{agent-instances.module-3N6ANN67.js.map → agent-instances.module-KE64PSK7.js.map} +0 -0
  93. /package/client-dist/{ca.module-VKQKP6JP.js.map → ca.module-JJZX5YKQ.js.map} +0 -0
  94. /package/client-dist/{cc-usage-dashboard.component-65FF5SWE.js.map → cc-usage-dashboard.component-ODAXHZHU.js.map} +0 -0
  95. /package/client-dist/{cc.module-BKTAO4S7.js.map → cc.module-4MS5M5XW.js.map} +0 -0
  96. /package/client-dist/{chunk-OZHMTJQJ.js.map → chunk-36BCBGXK.js.map} +0 -0
  97. /package/client-dist/{chunk-7UGLDNS5.js.map → chunk-3HLEHUE4.js.map} +0 -0
  98. /package/client-dist/{chunk-MANX3UTJ.js.map → chunk-4CLON3UX.js.map} +0 -0
  99. /package/client-dist/{chunk-IA2MKRM5.js.map → chunk-4O4UDIWG.js.map} +0 -0
  100. /package/client-dist/{chunk-WJTUNKFF.js.map → chunk-5E5W3DFK.js.map} +0 -0
  101. /package/client-dist/{chunk-34ASVWQQ.js.map → chunk-5KQZGU6O.js.map} +0 -0
  102. /package/client-dist/{chunk-UOOILECA.js.map → chunk-5XJR5EAR.js.map} +0 -0
  103. /package/client-dist/{chunk-HTF2IFDS.js.map → chunk-7TYUDNTP.js.map} +0 -0
  104. /package/client-dist/{chunk-WV4WOPQF.js.map → chunk-C2ZXKTHA.js.map} +0 -0
  105. /package/client-dist/{chunk-ES7OKROB.js.map → chunk-CAUXU2ZC.js.map} +0 -0
  106. /package/client-dist/{chunk-Q4Z4WTJ3.js.map → chunk-CBMKN4SJ.js.map} +0 -0
  107. /package/client-dist/{chunk-C5WLCPTP.js.map → chunk-CF3BLCVD.js.map} +0 -0
  108. /package/client-dist/{chunk-DBF3SSPS.js.map → chunk-CIO2T2KX.js.map} +0 -0
  109. /package/client-dist/{chunk-C5SDBZ5G.js.map → chunk-CUA2OS6E.js.map} +0 -0
  110. /package/client-dist/{chunk-ALT4GOBR.js.map → chunk-DB33SOJ3.js.map} +0 -0
  111. /package/client-dist/{chunk-FXN33EYC.js.map → chunk-EC4VBEIV.js.map} +0 -0
  112. /package/client-dist/{chunk-RO7BDRAB.js.map → chunk-EFH7L2PM.js.map} +0 -0
  113. /package/client-dist/{chunk-EHNLVVAY.js.map → chunk-EG7MEKVY.js.map} +0 -0
  114. /package/client-dist/{chunk-SC33BNLI.js.map → chunk-EGWEYXZW.js.map} +0 -0
  115. /package/client-dist/{chunk-VM6JI2LV.js.map → chunk-EVYE6YII.js.map} +0 -0
  116. /package/client-dist/{chunk-AELBVLTQ.js.map → chunk-FBF7RSNU.js.map} +0 -0
  117. /package/client-dist/{chunk-UCATC7Y7.js.map → chunk-FBZDKQ4K.js.map} +0 -0
  118. /package/client-dist/{chunk-ZLSL5N3C.js.map → chunk-FQL5FQFW.js.map} +0 -0
  119. /package/client-dist/{chunk-BSZUQJTF.js.map → chunk-GOPRHQFC.js.map} +0 -0
  120. /package/client-dist/{chunk-R5DCGGN5.js.map → chunk-HK2TYWE7.js.map} +0 -0
  121. /package/client-dist/{chunk-ZGNVQEFP.js.map → chunk-HSO5WM67.js.map} +0 -0
  122. /package/client-dist/{chunk-PATTK77E.js.map → chunk-ISPLVKBM.js.map} +0 -0
  123. /package/client-dist/{chunk-WWJB3AHB.js.map → chunk-JWXM6QMF.js.map} +0 -0
  124. /package/client-dist/{chunk-3EWLYCQY.js.map → chunk-KC7UN4VT.js.map} +0 -0
  125. /package/client-dist/{chunk-XEGOHOPX.js.map → chunk-KNTOPF7C.js.map} +0 -0
  126. /package/client-dist/{chunk-A7WV3WRL.js.map → chunk-L4CLV44N.js.map} +0 -0
  127. /package/client-dist/{chunk-46VCON6Y.js.map → chunk-LBG3XMYU.js.map} +0 -0
  128. /package/client-dist/{chunk-V46EMM4L.js.map → chunk-NBH53JWT.js.map} +0 -0
  129. /package/client-dist/{chunk-57RF5FWV.js.map → chunk-NHKJYR4C.js.map} +0 -0
  130. /package/client-dist/{chunk-TDVYMNCA.js.map → chunk-NIMLWXGM.js.map} +0 -0
  131. /package/client-dist/{chunk-IRCYROGT.js.map → chunk-O6KFG5LW.js.map} +0 -0
  132. /package/client-dist/{chunk-7ELFOHXT.js.map → chunk-PR5VADUQ.js.map} +0 -0
  133. /package/client-dist/{chunk-4EPTK7TX.js.map → chunk-QHZI4F2F.js.map} +0 -0
  134. /package/client-dist/{chunk-TWWHZRZD.js.map → chunk-QNLMNKP4.js.map} +0 -0
  135. /package/client-dist/{chunk-45RYGYWU.js.map → chunk-R2C7U5TP.js.map} +0 -0
  136. /package/client-dist/{chunk-FIPZN6Q5.js.map → chunk-RLXJG6ZF.js.map} +0 -0
  137. /package/client-dist/{chunk-YPFW4KUX.js.map → chunk-RNXGBUU3.js.map} +0 -0
  138. /package/client-dist/{chunk-YIVWQSH4.js.map → chunk-S5PG5OUU.js.map} +0 -0
  139. /package/client-dist/{chunk-RVZXTBBM.js.map → chunk-SWJLLCFC.js.map} +0 -0
  140. /package/client-dist/{chunk-TU3VH4LZ.js.map → chunk-TCDXJTTX.js.map} +0 -0
  141. /package/client-dist/{chunk-NJPJYDH6.js.map → chunk-U6B7OBXY.js.map} +0 -0
  142. /package/client-dist/{chunk-NK4RLW4D.js.map → chunk-URXIWUNP.js.map} +0 -0
  143. /package/client-dist/{chunk-6NAFJLV5.js.map → chunk-UTJQVE4E.js.map} +0 -0
  144. /package/client-dist/{chunk-NAHXFBXE.js.map → chunk-V6QEYU4X.js.map} +0 -0
  145. /package/client-dist/{chunk-EUAB5X46.js.map → chunk-VL2H6COO.js.map} +0 -0
  146. /package/client-dist/{chunk-XRPVTKIP.js.map → chunk-VORYOEWH.js.map} +0 -0
  147. /package/client-dist/{chunk-PN5J6JP2.js.map → chunk-VU76JPZM.js.map} +0 -0
  148. /package/client-dist/{chunk-3BIY7XPG.js.map → chunk-X4IBG3WG.js.map} +0 -0
  149. /package/client-dist/{chunk-KBLPP6PQ.js.map → chunk-XZTQ4YC7.js.map} +0 -0
  150. /package/client-dist/{chunk-TCJ6WHLQ.js.map → chunk-ZTB2RW6R.js.map} +0 -0
  151. /package/client-dist/{consultant.module-5G73QF4O.js.map → consultant.module-S4UQA3UJ.js.map} +0 -0
  152. /package/client-dist/{crd.module-PF5ZYSFN.js.map → crd.module-XHOTNUXY.js.map} +0 -0
  153. /package/client-dist/{dashboard.module-QIH6EALQ.js.map → dashboard.module-YZMJUPDH.js.map} +0 -0
  154. /package/client-dist/{do.module-IZT2TG65.js.map → do.module-ESWOBSRO.js.map} +0 -0
  155. /package/client-dist/{document-library.module-OC3PF44G.js.map → document-library.module-S2IATB7C.js.map} +0 -0
  156. /package/client-dist/{embedding-eval.module-FXSI4XED.js.map → embedding-eval.module-OAUL3HRQ.js.map} +0 -0
  157. /package/client-dist/{embedding-registry.module-W65CI3YZ.js.map → embedding-registry.module-T4Q57QWS.js.map} +0 -0
  158. /package/client-dist/{err.module-34QTGFAO.js.map → err.module-YM7F2DFM.js.map} +0 -0
  159. /package/client-dist/{feedback.module-LWOMLYP2.js.map → feedback.module-4ZLA4O5I.js.map} +0 -0
  160. /package/client-dist/{host-runtime-mcp.module-4GXDHVJV.js.map → host-runtime-mcp.module-OIK42CRE.js.map} +0 -0
  161. /package/client-dist/{live-dev-pipeline.module-KB44IF3A.js.map → live-dev-pipeline.module-AFWGOCMO.js.map} +0 -0
  162. /package/client-dist/{logs.module-S6JGYNTG.js.map → logs.module-OSZVMRRI.js.map} +0 -0
  163. /package/client-dist/{main-KV4C3EP5.js.map → main-3KSHNVCW.js.map} +0 -0
  164. /package/client-dist/{master-control-remote-poc.module-HSWDJ7AR.js.map → master-control-remote-poc.module-T5NK5KD7.js.map} +0 -0
  165. /package/client-dist/{mobile-app.module-CPULBFKG.js.map → mobile-app.module-GPFLEVWR.js.map} +0 -0
  166. /package/client-dist/{model-registry.module-SCIPNUN7.js.map → model-registry.module-SKRFHTWQ.js.map} +0 -0
  167. /package/client-dist/{oc.module-7SUQHFMM.js.map → oc.module-562ZP6BM.js.map} +0 -0
  168. /package/client-dist/{orc.module-UOTIRJKH.js.map → orc.module-SCMVZ535.js.map} +0 -0
  169. /package/client-dist/{project-management.module-SXG557HP.js.map → project-management.module-LA7M6MXA.js.map} +0 -0
  170. /package/client-dist/{project-source-routed.module-JLUP6FXQ.js.map → project-source-routed.module-QQBPIDUK.js.map} +0 -0
  171. /package/client-dist/{scheduler.module-EED4H4OV.js.map → scheduler.module-QNWITVDV.js.map} +0 -0
  172. /package/client-dist/{session.module-R4NYRIWY.js.map → session.module-LJNWNXN7.js.map} +0 -0
  173. /package/client-dist/{set.module-ZWXJCTIC.js.map → set.module-FINVUQYD.js.map} +0 -0
  174. /package/client-dist/{setup.module-STH35LIH.js.map → setup.module-5FOSEQWI.js.map} +0 -0
  175. /package/client-dist/{terminals.module-SZPN4HFG.js.map → terminals.module-LMW6DR3T.js.map} +0 -0
  176. /package/client-dist/{voice-notes-poc.module-DSCGKJMG.js.map → voice-notes-poc.module-R3ECC3V3.js.map} +0 -0
  177. /package/client-dist/{wfs.module-CNAZGEUO.js.map → wfs.module-TAZFZ2BH.js.map} +0 -0
@@ -1,4 +1,4 @@
1
- import{b as Ue,c as Bt,d as Nt,e as je,f as Kt}from"./chunk-VM6JI2LV.js";import{a as Ce,b as le,c as de,d as Ot}from"./chunk-PN5J6JP2.js";import"./chunk-EGRHWZRV.js";import{a as Ke}from"./chunk-RVZXTBBM.js";import{a as Ne}from"./chunk-NJPJYDH6.js";import{a as zt,b as Y,g as qe,h as Ut}from"./chunk-TWWHZRZD.js";import{a as At}from"./chunk-Q2PKIGLB.js";import{a as Pe}from"./chunk-Z4OXAMEA.js";import{a as rt}from"./chunk-YRVQSWSZ.js";import{a as De}from"./chunk-MANX3UTJ.js";import{b as R,c as F}from"./chunk-45RYGYWU.js";import{b as Me}from"./chunk-FXN33EYC.js";import{a as Mt,b as Re}from"./chunk-NAHXFBXE.js";import"./chunk-UOOILECA.js";import"./chunk-KBLPP6PQ.js";import"./chunk-FIPZN6Q5.js";import"./chunk-L44637OO.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import{a as ee}from"./chunk-C5WLCPTP.js";import"./chunk-IA2MKRM5.js";import"./chunk-YIVWQSH4.js";import"./chunk-7UGLDNS5.js";import{a as Fe,b as Ae,c as ze}from"./chunk-C7XPBJTG.js";import{b as q,f as Oe,g as Be,h as Ft}from"./chunk-WJTUNKFF.js";import{a as Ve}from"./chunk-WPHEQXWB.js";import{c as Le}from"./chunk-WWJB3AHB.js";import{a as ne,b as Lt,c as Vt}from"./chunk-TDVYMNCA.js";import"./chunk-34ASVWQQ.js";import"./chunk-3EWLYCQY.js";import"./chunk-SC33BNLI.js";import"./chunk-OZHMTJQJ.js";import"./chunk-BSZUQJTF.js";import"./chunk-V3VQWJQL.js";import"./chunk-UCATC7Y7.js";import"./chunk-4EPTK7TX.js";import{a as re}from"./chunk-FLAJXIYW.js";import{c as Te,f as we,i as $e,o as kt,p as Dt,v as Pt}from"./chunk-EO4DNTT4.js";import{k as j}from"./chunk-TCJ6WHLQ.js";import{a as O}from"./chunk-5UPNU54P.js";import{j as ke}from"./chunk-XEGOHOPX.js";import{G as P,H as z,I as Rt,p as It}from"./chunk-QXM45TNB.js";import{$a as H,Aa as me,Ba as xe,C as I,D as T,Db as Tt,E as xt,Ea as St,Eb as Ie,Fa as l,Fb as wt,G as ft,Ga as m,Gb as ae,Ha as b,I as Q,Ia as tt,J as x,K as f,Kb as $t,L as A,M as ce,Ma as nt,Na as it,Oa as ot,P as Ct,Pa as ht,Q as B,Qa as vt,Ra as se,Ta as gt,U as V,Ua as st,Wa as at,Xa as Z,Ya as yt,Z as a,Za as ye,a as J,aa as E,ab as te,b as ct,bb as fe,ca as ve,da as p,ga as h,h as pt,ha as pe,hb as S,ia as W,ib as be,ja as N,jb as M,k as $,la as c,ma as K,mb as U,na as ge,oa as k,p as et,pa as D,qa as s,ra as o,sa as g,sb as bt,t as ut,ua as y,ub as Ee,va as C,wa as d,xb as Et,y as oe,z as mt,za as ue}from"./chunk-TBMJSIBB.js";var Ge="ccap-ccapSession",X=class{static savePromptDraft(r,e){Ce.saveDraft(Ge,r,e)}static loadPromptDraft(r){return Ce.loadDraft(Ge,r)}static clearPromptDraft(r){Ce.clearDraft(Ge,r)}static hasPromptDraft(r){return Ce.hasDraft(Ge,r)}};function En(t,r){t&1&&(s(0,"div",11),l(1,"Loading sessions..."),o())}function In(t,r){if(t&1){let e=y();s(0,"app-s-session-select",16),C("selected",function(n){x(e);let _=d();return f(_.selectSession(n))})("contextMenu",function(n){x(e);let _=d();return f(_.handleRowContextMenu(n))})("scheduleIndicatorClicked",function(n){x(e);let _=d();return f(_.handleScheduleIndicatorClick(n))})("coordinatorIndicatorClicked",function(n){x(e);let _=d();return f(_.handleCoordinatorIndicatorClick(n))}),o()}if(t&2){let e=d();h("rows",e.activeSessionRowViews_$())("activeId",e.activeSessionId)("hideSearch",!0)}}function Tn(t,r){if(t&1){let e=y();s(0,"div",13),g(1,"app-ccap-error-display",17),s(2,"div",18)(3,"button",19),C("click",function(){x(e);let n=d();return f(n.refreshSessions())}),l(4," Try again "),o()()()}if(t&2){let e=d();a(),h("error",e.session_DS.sessionsLoadError_$())}}function wn(t,r){t&1&&(s(0,"div",11),l(1,"No sessions found"),o())}function $n(t,r){if(t&1){let e=y();s(0,"button",21),C("click",function(){x(e);let n=d(2);return f(n.loadArchivedSessions())}),l(1),o()}if(t&2){let e=d(2);h("disabled",e.session_DS.archivedSessionsLoading_$()),a(),b(" ",e.session_DS.archivedSessionsLoading_$()?"Loading...":"Show archived"," ")}}function kn(t,r){t&1&&(s(0,"div",11),l(1,"Loading..."),o())}function Dn(t,r){if(t&1){let e=y();s(0,"app-s-session-select",16),C("selected",function(n){x(e);let _=d(3);return f(_.selectSession(n))})("contextMenu",function(n){x(e);let _=d(3);return f(_.handleRowContextMenu(n))})("scheduleIndicatorClicked",function(n){x(e);let _=d(3);return f(_.handleScheduleIndicatorClick(n))})("coordinatorIndicatorClicked",function(n){x(e);let _=d(3);return f(_.handleCoordinatorIndicatorClick(n))}),o()}if(t&2){let e=d(3);h("rows",e.archivedSessionRowViews_$())("activeId",e.activeSessionId)("hideSearch",!0)}}function Pn(t,r){t&1&&(s(0,"div",25),l(1,"No archived sessions"),o())}function Rn(t,r){if(t&1){let e=y();s(0,"div",22)(1,"span",23),l(2,"Archived"),o(),s(3,"button",24),C("click",function(){x(e);let n=d(2);return f(n.hideArchived())}),l(4," Hide "),o()(),p(5,kn,2,0,"div",11)(6,Dn,1,3,"app-s-session-select",12)(7,Pn,2,0,"div",25)}if(t&2){let e=d(2);a(5),c(e.session_DS.archivedSessionsLoading_$()?5:e.archivedSessionRowViews_$().length?6:7)}}function Mn(t,r){if(t&1&&(s(0,"div",14),p(1,$n,2,2,"button",20)(2,Rn,8,1),o()),t&2){let e=d();a(),c(e.showArchived?2:1)}}function Ln(t,r){if(t&1){let e=y();s(0,"div",28)(1,"input",29,0),C("input",function(){x(e);let n=St(2),_=d(2);return f(_.renameValue_$.set(n.value))})("keydown.enter",function(){x(e);let n=d(2);return f(n.handleCtxRenameConfirm())})("keydown.escape",function(){x(e);let n=d(2);return f(n.handleCloseCtxMenu())}),o()()}if(t&2){let e=d(2);a(),h("value",e.renameValue_$())}}function Vn(t,r){t&1&&l(0," \u2713 Link copied ")}function Fn(t,r){t&1&&l(0," Copy failed ")}function An(t,r){t&1&&l(0," Copy link ")}function zn(t,r){if(t&1){let e=y();s(0,"button",31),C("click",function(){x(e);let n=d(3);return f(n.handleCtxUnarchive())}),l(1," Unarchive "),o()}}function On(t,r){if(t&1){let e=y();s(0,"button",31),C("click",function(){x(e);let n=d(3);return f(n.handleCtxArchive())}),l(1," Archive "),o()}}function Bn(t,r){if(t&1){let e=y();s(0,"button",30),C("click",function(){x(e);let n=d(2);return f(n.handleCtxCopyLink())}),p(1,Vn,1,0)(2,Fn,1,0)(3,An,1,0),o(),s(4,"button",30),C("click",function(){x(e);let n=d(2);return f(n.handleCtxCopy())}),l(5),o(),s(6,"button",31),C("click",function(){x(e);let n=d(2);return f(n.handleCtxRenameStart())}),l(7," Rename "),o(),p(8,zn,2,0,"button",32)(9,On,2,0,"button",32)}if(t&2){let e,i=d(),n=d();h("disabled",n.linkCopyState_$()!=="idle"),a(),c((e=n.linkCopyState_$())==="copied"?1:e==="failed"?2:3),a(3),h("disabled",n.copying),a(),b(" ",n.copying?"Copying\u2026":"Copy"," "),a(3),c(i._archived?8:9)}}function Nn(t,r){if(t&1){let e=y();s(0,"div",26),C("click",function(){x(e);let n=d();return f(n.handleCloseCtxMenu())}),o(),s(1,"div",27),p(2,Ln,3,1,"div",28)(3,Bn,10,5),o()}if(t&2){let e=d();a(),pe("left",e.ctxMenuPos_$().x,"px")("top",e.ctxMenuPos_$().y,"px"),a(),c(e.isRenaming_$()?2:3)}}var qt=(()=>{class t{activeSessionId="";showArchived=!1;creating=!1;archiving=!1;deArchiving=!1;copying=!1;session_DS=I(F);peiContext_DS=I(ee);globalError_CS=I(ke);scheduledJobs_DS=I(Ne);coordinator_DS=I(Ke);router=I(ae);instanceChangeEffect=M(()=>{this.peiContext_DS.activeCcapId_$()&&be(()=>{this.session_DS.loadSessions()})});searchQuery_$=E("");filteredActiveSessions_$=S(()=>{let e=this.searchQuery_$(),i=this.session_DS.sessions_$();return e.trim()?i.filter(n=>ne.includesText(n.name,e)||ne.includesText(n.sessionGoal,e)||ne.includesText(n.sessionIntent,e)):i});filteredArchivedSessions_$=S(()=>{let e=this.searchQuery_$(),i=this.session_DS.archivedSessions_$();return e.trim()?i.filter(n=>ne.includesText(n.name,e)||ne.includesText(n.sessionGoal,e)||ne.includesText(n.sessionIntent,e)):i});activeSessionRowViews_$=S(()=>{let e=this.scheduledJobs_DS.scheduledSessionIds_$(),i=this.coordinator_DS.coordinatedSessionIds_$();return this.filteredActiveSessions_$().map(n=>t.mapSessionToRowView(n,e,i))});archivedSessionRowViews_$=S(()=>{let e=this.scheduledJobs_DS.scheduledSessionIds_$(),i=this.coordinator_DS.coordinatedSessionIds_$();return this.filteredArchivedSessions_$().map(n=>ct(J({},t.mapSessionToRowView(n,e,i)),{statusColorClass:"bg-neutral-500",isRunning:!1}))});ctxMenuSession_$=E(null);ctxMenuPos_$=E({x:0,y:0});isRenaming_$=E(!1);renameValue_$=E("");linkCopyState_$=E("idle");schedulePopupSessionId_$=E(null);handleScheduleIndicatorClick(e){this.schedulePopupSessionId_$.set(e)}handleCloseSchedulePopup(){this.schedulePopupSessionId_$.set(null)}coordinatorPopupSessionId_$=E(null);handleCoordinatorIndicatorClick(e){this.coordinatorPopupSessionId_$.set(e)}handleCloseCoordinatorPopup(){this.coordinatorPopupSessionId_$.set(null)}ngOnInit(){this.peiContext_DS.initialize(),this.session_DS.loadSessions(),this.scheduledJobs_DS.loadAll(),this.coordinator_DS.loadAllCoordinatorsForManagementPage()}selectSession(e){let i=this.peiContext_DS.activeCcapId_$(),n=i?["/session",i,e]:["/session",e];this.router.navigate(n)}refreshSessions(){this.session_DS.loadSessions()}archiveSession(e){return $(this,null,function*(){if(!this.archiving){this.archiving=!0;try{yield this.session_DS.updateSession({sessionId:e,updates:{archived:!0}})}finally{this.archiving=!1}}})}deArchiveSession(e){return $(this,null,function*(){if(!this.deArchiving){this.deArchiving=!0;try{yield this.session_DS.updateSession({sessionId:e,updates:{archived:!1}})}finally{this.deArchiving=!1}}})}loadArchivedSessions(){this.session_DS.loadArchivedSessions().then(()=>{this.showArchived=!0})}hideArchived(){this.showArchived=!1}createNewSession(){return $(this,null,function*(){this.creating=!0;try{let e=yield this.session_DS.createSession(),i=this.peiContext_DS.activeCcapId_$(),n=i?["/session",i,e._id]:["/session",e._id];this.router.navigate(n),this.session_DS.requestSidebarCloseOnMobileBump_$.update(_=>_+1)}finally{this.creating=!1}})}handleRowContextMenu(e){let i=this.session_DS.sessions_$().find(n=>n._id===e.id)||this.session_DS.archivedSessions_$().find(n=>n._id===e.id);i&&(this.ctxMenuSession_$.set(i),this.ctxMenuPos_$.set({x:e.event.clientX,y:e.event.clientY}))}handleCloseCtxMenu(){this.ctxMenuSession_$.set(null),this.isRenaming_$.set(!1),this.renameValue_$.set(""),this.linkCopyState_$.set("idle")}handleCtxCopyLink(){return $(this,null,function*(){let e=this.ctxMenuSession_$();if(!e)return;let i=this.peiContext_DS.activeCcapId_$(),n=i?`/session/${i}/${e._id}`:`/session/${e._id}`,_=`${window.location.origin}${n}`,u=yield this.globalError_CS.copyToClipboard(_);this.linkCopyState_$.set(u.ok?"copied":"failed"),setTimeout(()=>{this.handleCloseCtxMenu()},700)})}handleCtxArchive(){return $(this,null,function*(){let e=this.ctxMenuSession_$();e&&(this.handleCloseCtxMenu(),yield this.archiveSession(e._id))})}handleCtxUnarchive(){return $(this,null,function*(){let e=this.ctxMenuSession_$();e&&(this.handleCloseCtxMenu(),yield this.deArchiveSession(e._id))})}handleCtxCopy(){return $(this,null,function*(){let e=this.ctxMenuSession_$();if(!(!e||this.copying)){this.copying=!0,this.handleCloseCtxMenu();try{let i=yield this.session_DS.copySession({sessionId:e._id}),n=this.peiContext_DS.activeCcapId_$(),_=n?["/session",n,i._id]:["/session",i._id];this.router.navigate(_)}finally{this.copying=!1}}})}handleCtxRenameStart(){let e=this.ctxMenuSession_$();e&&(this.renameValue_$.set(e.name||""),this.isRenaming_$.set(!0),setTimeout(()=>{let i=document.querySelector("#sesRenameInput");i&&(i.focus(),i.select())},0))}handleCtxRenameConfirm(){return $(this,null,function*(){let e=this.ctxMenuSession_$();if(!e)return;let i=this.renameValue_$().trim();i!==(e.name||"")&&(yield this.session_DS.updateSession({sessionId:e._id,updates:{name:i}})),this.handleCloseCtxMenu()})}static mapSessionToRowView(e,i,n){let _=e.__lastModified,u=_ instanceof Date?_.toISOString():String(_);return{id:e._id,label:e.name?.trim()||e.sessionGoal?.trim()||e.sessionIntent?.trim()||"Unnamed Session",status:e.status,statusColorClass:rt.resolve(e.status),isArchived:!!e._archived,lastActivityAt:u,isRunning:rt.isRunning(e.status),hasSchedule:i?.has(e._id)??!1,hasCoordinator:n?.has(e._id)??!1,hasDraft:X.hasPromptDraft(e._id)}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-session-list"]],inputs:{activeSessionId:"activeSessionId"},decls:22,vars:9,consts:[["renameInput",""],[1,"flex","flex-col"],[1,"p-2","border-b","border-neonDefault"],[1,"flex","items-center","justify-between","p-3","border-b","border-neonDefault"],[1,"text-sm","font-semibold","text-neutral-200"],[1,"flex","gap-1"],["type","button","title","Refresh",1,"px-2","py-1","text-xs","border","border-neonDefault","text-neutral-300","hover:bg-neutral-700","rounded","transition-colors",3,"click"],[1,"px-2","py-1","text-xs","border","border-ccapAccent","text-ccapAccent","hover:bg-ccapAccent","hover:text-white","hover:shadow-neon-glow-accent","rounded","transition-colors",3,"click","disabled"],[1,"px-3","pt-2","pb-1","border-b","border-neutral-800/60"],["type","text","placeholder","Keres\xE9s session nev\xE9re, goal-ra, intent-re\u2026","title","Keres\xE9s a session lista nev\xE9re, sessionGoal-ra \xE9s sessionIntent-re (\xE9kezet/kisbet\u0171-\xE9rz\xE9ketlen)",1,"w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"flex-1","overflow-y-auto"],[1,"p-4","text-center","text-neutral-500","text-sm"],["kind","ccap",3,"rows","activeId","hideSearch"],[1,"py-6","px-4"],[1,"border-t","border-neonDefault"],[3,"closed","sessionId","isOpen"],["kind","ccap",3,"selected","contextMenu","scheduleIndicatorClicked","coordinatorIndicatorClicked","rows","activeId","hideSearch"],["sourceLabelOverride","Session lista",1,"mb-3","block",3,"error"],[1,"text-center"],["type","button",1,"mt-1","px-3","py-1.5","text-xs","border","border-neonDefault","text-neutral-300","hover:bg-neutral-700","rounded","transition-colors",3,"click"],["type","button",1,"w-full","px-3","py-2","text-xs","text-neutral-500","hover:text-neutral-300","hover:bg-neutral-800","transition-colors","disabled:opacity-50",3,"disabled"],["type","button",1,"w-full","px-3","py-2","text-xs","text-neutral-500","hover:text-neutral-300","hover:bg-neutral-800","transition-colors","disabled:opacity-50",3,"click","disabled"],[1,"flex","items-center","justify-between","px-3","py-1.5","border-b","border-neutral-700/30"],[1,"text-[10px]","text-neutral-500","uppercase","tracking-wider"],["type","button",1,"text-[10px]","text-neutral-500","hover:text-neutral-300","transition-colors",3,"click"],[1,"p-4","text-center","text-neutral-500","text-xs"],[1,"fixed","inset-0","z-40",3,"click"],[1,"fixed","z-50","min-w-[160px]","bg-neutral-900","border","border-neutral-700","rounded-lg","shadow-xl","py-1","text-xs"],[1,"px-2","py-1.5"],["id","sesRenameInput","type","text",1,"w-full","bg-neutral-800","text-neutral-200","text-xs","rounded","px-2","py-1","border","border-neonDefault","focus:border-neonCyan","focus:outline-none",3,"input","keydown.enter","keydown.escape","value"],[1,"w-full","text-left","px-3","py-1.5","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click","disabled"],[1,"w-full","text-left","px-3","py-1.5","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click"],[1,"w-full","text-left","px-3","py-1.5","text-neutral-300","hover:bg-neutral-800","transition-colors"]],template:function(i,n){if(i&1&&(s(0,"div",1)(1,"div",2),g(2,"app-s-instance-chip-row-with-info"),o(),s(3,"div",3)(4,"h2",4),l(5,"Sessions"),o(),s(6,"div",5)(7,"button",6),C("click",function(){return n.refreshSessions()}),l(8," Refresh "),o(),s(9,"button",7),C("click",function(){return n.createNewSession()}),l(10," + New "),o()()(),s(11,"div",8)(12,"input",9),C("ngModelChange",function(u){return n.searchQuery_$.set(u)}),o()(),s(13,"div",10),p(14,En,2,0,"div",11)(15,In,1,3,"app-s-session-select",12)(16,Tn,5,1,"div",13)(17,wn,2,0,"div",11)(18,Mn,3,1,"div",14),o()(),p(19,Nn,4,5),s(20,"app-sch-schedule-popup",15),C("closed",function(){return n.handleCloseSchedulePopup()}),o(),s(21,"app-crd-info-popup",15),C("closed",function(){return n.handleCloseCoordinatorPopup()}),o()),i&2){let _;a(9),h("disabled",n.creating),a(3),h("ngModel",n.searchQuery_$()),a(2),c(n.session_DS.sessionsLoading_$()?14:n.activeSessionRowViews_$().length?15:n.session_DS.sessionsLoadError_$()?16:17),a(4),c(!n.session_DS.sessionsLoading_$()&&!n.session_DS.sessionsLoadError_$()?18:-1),a(),c((_=n.ctxMenuSession_$())?19:-1,_),a(),h("sessionId",n.schedulePopupSessionId_$())("isOpen",n.schedulePopupSessionId_$()!==null),a(),h("sessionId",n.coordinatorPopupSessionId_$())("isOpen",n.coordinatorPopupSessionId_$()!==null)}},dependencies:[Le,Te,we,$e,j,Ue,le,de],encapsulation:2})}return t})();var ie=class t{static labelForRunExecutionMode(r){if(r==null||r.trim()==="")return"";let e=r.trim(),i=[P.instant,P.agenticAny,P.ask,P.plan];for(let n of i)if(e===n)return t.runModeLabelMap[n];return""}static labelForPaletteConstraint(r){if(r==null||r.trim()==="")return"";let e=r.trim(),i=[z.full,z.askOnly,z.planOnly];for(let n of i)if(e===n)return t.paletteLabelMap[n];return""}static runModeLabelMap={[P.instant]:"Instant (no tools)",[P.agenticAny]:"Agentic (full tools)",[P.ask]:"Ask (read-only tools)",[P.plan]:"Plan (+ plan tool)"};static paletteLabelMap={[z.full]:"Palette: full",[z.askOnly]:"Palette: ask-only",[z.planOnly]:"Palette: plan-only"}};var He=pt(It());var Se=(()=>{class t{currentSessionId="";events_$=E([]);eventsLoading_$=E(!1);httpRunTraceCache=new Map;monitoringSubscription=null;monitoring_AS=I(zt);session_DS=I(F);constructor(){this.monitoringSubscription=this.session_DS.monitoringEvent_S.subscribe(e=>{let i=this.session_DS.activeSessionId_$().trim();i.length>0&&e.sessionId.trim()===i&&this.pushEvent(e.sessionId.trim(),e.event)})}pushEvent(e,i){let n={eventType:i.eventType??"",timestamp:new Date(i.timestamp??Date.now()),data:i.data??i,durationMs:i.durationMs??0,status:i.status??"",sessionId:e,runId:i.runId??"",inputSize:i.inputSize??0,outputSize:i.outputSize??0};this.events_$.update(_=>[..._,n])}loadSessionEvents(e){return $(this,null,function*(){let i=e.trim();this.currentSessionId=i,this.eventsLoading_$.set(!0);try{let n=yield this.monitoring_AS.getEvents(i);this.events_$.set(n.events)}catch(n){He.DyFM_Error.logSimple("CCAP_MonitoringDS | Failed to load events",n)}finally{this.eventsLoading_$.set(!1)}})}loadRunTrace(e){return $(this,null,function*(){try{let i=yield this.monitoring_AS.getRunTrace(e);this.events_$.set(i.trace)}catch(i){He.DyFM_Error.logSimple("CCAP_MonitoringDS | Failed to load run trace",i)}})}ngOnDestroy(){this.monitoringSubscription&&(this.monitoringSubscription.unsubscribe(),this.monitoringSubscription=null)}clearEvents(){this.events_$.set([])}buildMergedRunTrace(e,i){let n=e.trim(),_=i.trim(),u=`${n}:${_}`,v=this.httpRunTraceCache.get(u)??[],w=this.filterEventsForRun(n,_);return this.mergeTraceLists(v,w)}getOrLoadRunTrace(e,i){return $(this,null,function*(){let n=e.trim(),_=i.trim();if(!n||!_)return[];let u=`${n}:${_}`;if(!this.httpRunTraceCache.has(u))try{let v=yield this.monitoring_AS.getRunTrace({sessionId:n,runId:_}),gn=(Array.isArray(v.trace)?v.trace:[]).map(Ze=>{let G=Ze!==null&&typeof Ze=="object"?Ze:{};return{eventType:G.eventType??"",timestamp:G.timestamp?new Date(G.timestamp):new Date,data:G.data??G,durationMs:G.durationMs??0,status:G.status??"",sessionId:G.sessionId??n,runId:String(G.runId??_).trim(),inputSize:G.inputSize??0,outputSize:G.outputSize??0}});this.httpRunTraceCache.set(u,gn)}catch(v){throw He.DyFM_Error.logSimple("CCAP_MonitoringDS | Failed to load run trace for bubble",v),v}return this.buildMergedRunTrace(n,_)})}filterEventsForRun(e,i){let n=e.trim(),_=i.trim();return this.events_$().filter(u=>u.sessionId.trim()===n&&String(u.runId??"").trim()===_)}mergeTraceLists(e,i){let n=u=>`${u.timestamp.valueOf()}-${u.eventType}-${u.status}-${u.durationMs}`,_=new Map;for(let u of e)_.set(n(u),u);for(let u of i)_.set(n(u),u);return Array.from(_.values()).sort((u,v)=>u.timestamp.valueOf()-v.timestamp.valueOf())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=oe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qe=class t{static fromClientMessage(r,e){let i=R.toDisplayString(r.content),n=r.timestamp instanceof Date?r.timestamp.toISOString():new Date(r.timestamp).toISOString(),_=r.role==="user",u=r.messageKey&&(_||r.role==="assistant")?{messageKey:r.messageKey,sessionId:e,role:r.role,content:i,timestampIso:n,hasTtsAudio:r.hasTtsAudio===!0}:void 0,v=t.resolveKind(r.role,i),w={role:r.role,content:r.content,timestamp:n};return r.messageKey&&(w.messageKey=r.messageKey),r.runId&&(w.runId=r.runId),r.clientListKey&&(w.clientListKey=r.clientListKey),r.hasTtsAudio!==void 0&&(w.hasTtsAudio=r.hasTtsAudio),{listKey:r.clientListKey??r.messageKey??"",kind:v.kind,bodyText:v.bodyText,timestampIso:n,isUserAligned:_,headerStatusDot:v.isError?"error":void 0,flags:{showCopy:!0,showRawInfo:!0,useEditDiffForExpandable:!1},rawData:w,tts:u}}static resolveKind(r,e){return r==="user"?{kind:q.userPrompt,bodyText:e,isError:!1}:r==="assistant"?{kind:q.assistant,bodyText:e,isError:!1}:r==="tool"?{kind:q.toolResult,bodyText:e,isError:!1}:r==="system"?t.resolveSystemKind(e):{kind:q.raw,bodyText:e,isError:!1}}static resolveSystemKind(r){let e=r.trim();return e.startsWith("[TOOL_ERROR]")?{kind:q.error,bodyText:e.slice(12).trim(),isError:!0}:e.startsWith("[ERROR]")?{kind:q.error,bodyText:e.slice(7).trim(),isError:!0}:e.startsWith("[TOOL_RESULT]")?{kind:q.toolResult,bodyText:e.slice(13).trim(),isError:!1}:e.startsWith("[INFO]")?{kind:q.info,bodyText:e.slice(6).trim(),isError:!1}:e.startsWith("[AGENT]")?{kind:q.statusUpdate,bodyText:e.slice(7).trim(),isError:!1}:e.startsWith("[QUEUE]")?{kind:q.info,bodyText:e.slice(7).trim(),isError:!1}:{kind:q.statusUpdate,bodyText:r,isError:!1}}};var Un=(t,r)=>r._id,jn=(t,r,e,i,n)=>({"bg-purple-500/20 text-purple-300":t,"bg-green-500/20 text-green-300":r,"bg-yellow-500/20 text-yellow-300":e,"bg-blue-500/20 text-blue-300":i,"bg-red-500/20 text-red-300":n});function qn(t,r){if(t&1&&(s(0,"div")(1,"strong"),l(2,"Input size:"),o(),l(3),o()),t&2){let e=d();a(3),b(" ",e.event().inputSize,"")}}function Gn(t,r){if(t&1&&(s(0,"div")(1,"strong"),l(2,"Output size:"),o(),l(3),o()),t&2){let e=d();a(3),b(" ",e.event().outputSize,"")}}function Wn(t,r){if(t&1&&(s(0,"div")(1,"strong"),l(2,"Run ID:"),o(),l(3),o()),t&2){let e=d();a(3),b(" ",e.event().runId,"")}}function Hn(t,r){if(t&1&&(s(0,"div",5)(1,"h5",6),l(2,"DTS"),o(),s(3,"pre",7),l(4),o()()),t&2){let e=d();a(4),m(e.formatDataValue(e.event().data.dts))}}function Qn(t,r){if(t&1&&(s(0,"div",5)(1,"h5",6),l(2,"Conversation (felhaszn\xE1lt)"),o(),s(3,"pre",7),l(4),o()()),t&2){let e=d();a(4),m(e.formatDataValue(e.event().data.conversationSlice))}}function Xn(t,r){if(t&1&&(s(0,"div",5)(1,"h5",6),l(2,"D\xF6nt\xE9si pontok"),o(),s(3,"pre",7),l(4),o()()),t&2){let e=d();a(4),m(e.formatDataValue(e.event().data.decisionSummary))}}function Jn(t,r){if(t&1&&(s(0,"span",15),l(1),o()),t&2){let e=d().$implicit;a(),m(e.provider)}}function Yn(t,r){if(t&1&&(s(0,"div",11)(1,"div",12)(2,"span",13),l(3),o(),s(4,"span",14),l(5),o(),p(6,Jn,2,1,"span",15),o(),s(7,"pre",16),l(8),o()()),t&2){let e=r.$implicit,i=d(2);a(2),h("ngClass",ye(5,jn,e.eventKind==="prompt",e.eventKind==="result",e.eventKind==="tool-result",e.eventKind==="agent-think",e.eventKind==="error")),a(),m(e.eventKind),a(2),m(e.callTag),a(),c(e.provider?6:-1),a(2),m(i.formatPayload(e.payload))}}function Zn(t,r){if(t&1&&(s(0,"div",8)(1,"h5",9),l(2,"LLM Debug Trace"),o(),s(3,"div",10),k(4,Yn,9,11,"div",11,Un),o()()),t&2){let e=d();a(4),D(e.matchedDebugEntries_$())}}var ei={eventType:"",timestamp:new Date,data:{},durationMs:0,status:"",sessionId:"",runId:"",inputSize:0,outputSize:0},he=(()=>{class t{event=V(ei);debugTraceEntries=V([]);close=new B;formattedData_$=S(()=>JSON.stringify(this.event().data,null,2));isLlmCall_$=S(()=>this.event().eventType==="llm-call");matchedDebugEntries_$=S(()=>{if(!this.isLlmCall_$())return[];let e=this.debugTraceEntries(),i=this.event().data??{},n=typeof i.llmTag=="string"?i.llmTag:"";return!n||!e.length?[]:e.filter(_=>_.callTag===n)});formatDataValue(e){return e==null?"":typeof e=="string"?e:JSON.stringify(e,null,2)}formatPayload(e){return e?JSON.stringify(e,null,2):""}onClose(){this.close.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-trace-detail"]],inputs:{event:[1,"event"],debugTraceEntries:[1,"debugTraceEntries"]},outputs:{close:"close"},decls:27,vars:11,consts:[[1,"w-[560px]","max-w-[90vw]","max-h-[80vh]","bg-[#121220]","border","border-neonDefault","rounded-lg","p-4","overflow-y-auto","shadow-2xl",2,"max-height","80dvh"],[1,"flex","justify-between","items-center","mb-4","min-h-[44px]"],[1,"text-sm","font-bold"],["aria-label","Bez\xE1r\xE1s",1,"px-2.5","py-1","min-h-[44px]","min-w-[44px]","flex","items-center","justify-center","border","border-neonCyan","rounded","bg-transparent","text-neutral-200","cursor-pointer","hover:bg-neutral-800","hover:shadow-neon-glow-cyan",3,"click"],[1,"flex","flex-col","gap-1","text-[13px]","text-neutral-300","mb-4","pb-4","border-b","border-neonDefault"],[1,"mb-4"],[1,"text-xs","uppercase","text-neutral-400","mb-2"],[1,"bg-[#0a0a15]","border","border-neonDefault","rounded-md","p-3","text-xs","text-neutral-200","overflow-x-auto","whitespace-pre-wrap","break-words"],[1,"mt-4","pt-4","border-t","border-purple-500/30"],[1,"text-xs","uppercase","text-purple-400","mb-2"],[1,"flex","flex-col","gap-2"],[1,"bg-[#0a0a15]","border","border-neonDefault","rounded-md","p-3"],[1,"flex","items-center","gap-2","mb-1.5","text-[11px]"],[1,"px-1.5","py-0.5","rounded","text-[10px]","font-semibold",3,"ngClass"],[1,"text-neutral-500"],[1,"text-neutral-600"],[1,"text-xs","text-neutral-200","overflow-x-auto","whitespace-pre-wrap","break-words","max-h-[300px]","overflow-y-auto"]],template:function(i,n){i&1&&(s(0,"div",0)(1,"div",1)(2,"h4",2),l(3),o(),s(4,"button",3),C("click",function(){return n.onClose()}),l(5,"X"),o()(),s(6,"div",4)(7,"div")(8,"strong"),l(9,"Status:"),o(),l(10),o(),s(11,"div")(12,"strong"),l(13,"Duration:"),o(),l(14),o(),p(15,qn,4,1,"div")(16,Gn,4,1,"div")(17,Wn,4,1,"div"),o(),p(18,Hn,5,1,"div",5)(19,Qn,5,1,"div",5)(20,Xn,5,1,"div",5),s(21,"div")(22,"h5",6),l(23,"Event Data"),o(),s(24,"pre",7),l(25),o()(),p(26,Zn,6,0,"div",8),o()),i&2&&(a(3),b("",n.event().eventType," - Trace Detail"),a(7),b(" ",n.event().status,""),a(4),b(" ",n.event().durationMs,"ms"),a(),c(n.event().inputSize?15:-1),a(),c(n.event().outputSize?16:-1),a(),c(n.event().runId?17:-1),a(),c(n.event().data.dts?18:-1),a(),c(n.event().data.conversationSlice?19:-1),a(),c(n.event().data.decisionSummary?20:-1),a(5),m(n.formattedData_$()),a(),c(n.isLlmCall_$()&&n.matchedDebugEntries_$().length?26:-1))},dependencies:[U],encapsulation:2})}return t})();var ti=(t,r)=>r._id,ni=(t,r)=>({"text-green-300":t,"text-red-300":r}),ii=(t,r)=>({"bg-green-500/10 text-green-400":t,"bg-amber-500/10 text-amber-400":r}),oi=(t,r,e)=>({"bg-blue-500/10 text-blue-300":t,"bg-green-500/10 text-green-300":r,"bg-amber-500/10 text-amber-300":e}),si=(t,r,e,i,n)=>({"bg-purple-500/20 text-purple-300":t,"bg-green-500/20 text-green-300":r,"bg-yellow-500/20 text-yellow-300":e,"bg-blue-500/20 text-blue-300":i,"bg-red-500/20 text-red-300":n}),ai=(t,r,e)=>({"text-green-400":t,"text-cyan-400":r,"text-neutral-400":e});function ri(t,r){t&1&&(s(0,"span",3),l(1),o()),t&2&&(a(),m(r))}function li(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.llmModel_$())}}function di(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function _i(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.sizeLabel_$())}}function ci(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,li,2,1,"span")(4,di,2,1,"span")(5,_i,2,1,"span"),o()),t&2){let e=d();a(),m(e.llmCallType_$()||"LLM h\xEDv\xE1s"),a(2),c(e.llmModel_$()?3:-1),a(),c(e.durationLabel_$()?4:-1),a(),c(e.sizeLabel_$()?5:-1)}}function pi(t,r){if(t&1&&(s(0,"span",16),l(1),o()),t&2){let e=d(2);h("ngClass",at(2,ni,e.status_$()==="success",e.status_$()==="failed"||e.status_$()==="error")),a(),m(e.status_$())}}function ui(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function mi(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,pi,2,5,"span",16)(4,ui,2,1,"span"),o()),t&2){let e=d();a(),m(e.toolId_$()||"Eszk\xF6zh\xEDv\xE1s"),a(2),c(e.status_$()?3:-1),a(),c(e.durationLabel_$()?4:-1)}}function xi(t,r){if(t&1&&(s(0,"div",17),l(1),o()),t&2){let e=d(2);a(),m(e.errorMessage_$())}}function fi(t,r){if(t&1&&(s(0,"div",14),l(1,"Hiba"),o(),p(2,xi,2,1,"div",17)),t&2){let e=d();a(2),c(e.errorMessage_$()?2:-1)}}function Ci(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.status_$())}}function Si(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function hi(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,Ci,2,1,"span")(4,Si,2,1,"span"),o()),t&2){let e=d();a(),m(e.label_$()),a(2),c(e.status_$()?3:-1),a(),c(e.durationLabel_$()?4:-1)}}function vi(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function gi(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.status_$())}}function yi(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,vi,2,1,"span")(4,gi,2,1,"span"),o()),t&2){let e=d();a(),m(e.label_$()),a(2),c(e.durationLabel_$()?3:-1),a(),c(e.status_$()?4:-1)}}function bi(t,r){if(t&1&&(s(0,"span",6),l(1),o()),t&2){let e=d();a(),m(e.durationLabel_$())}}function Ei(t,r){if(t&1){let e=y();s(0,"button",18),C("click",function(){x(e);let n=d();return f(n.toggleDebugPopup())}),A(),s(1,"svg",19),g(2,"path",20)(3,"polyline",21)(4,"line",22)(5,"line",23),o()()}}function Ii(t,r){if(t&1&&(s(0,"span",24),l(1),o()),t&2){let e=d(2);a(),m(e.llmProvider_$())}}function Ti(t,r){if(t&1&&(s(0,"span",25),l(1),o()),t&2){let e=d(2);a(),m(e.llmModel_$())}}function wi(t,r){if(t&1&&(s(0,"span",26),l(1),o()),t&2){let e=d(2);a(),m(e.llmTokenBrief_$())}}function $i(t,r){if(t&1&&(s(0,"span",27),l(1),o()),t&2){let e=d(2);h("ngClass",at(2,ii,e.llmFinishReason_$()==="stop",e.llmFinishReason_$()!=="stop")),a(),m(e.llmFinishReason_$())}}function ki(t,r){if(t&1&&(s(0,"div",10),p(1,Ii,2,1,"span",24)(2,Ti,2,1,"span",25)(3,wi,2,1,"span",26)(4,$i,2,5,"span",27),o()),t&2){let e=d();a(),c(e.llmProvider_$()?1:-1),a(),c(e.llmModel_$()?2:-1),a(),c(e.llmTokenBrief_$()?3:-1),a(),c(e.llmFinishReason_$()?4:-1)}}function Di(t,r){if(t&1&&(s(0,"span",28),l(1),o()),t&2){let e=d(2);a(),m(e.toolCategory_$())}}function Pi(t,r){if(t&1&&(s(0,"div",29),l(1),o()),t&2){let e=d(2);a(),m(e.toolError_$())}}function Ri(t,r){if(t&1&&(s(0,"div",11),p(1,Di,2,1,"span",28)(2,Pi,2,1,"div",29),o()),t&2){let e=d();a(),c(e.toolCategory_$()?1:-1),a(),c(e.toolError_$()?2:-1)}}function Mi(t,r){if(t&1&&(s(0,"div",30),l(1),o()),t&2){let e=d(2);a(),m(e.errorMessage_$())}}function Li(t,r){if(t&1&&(s(0,"div",12),p(1,Mi,2,1,"div",30),o()),t&2){let e=d();a(),c(e.errorMessage_$()?1:-1)}}function Vi(t,r){t&1&&(s(0,"span",35),l(1,"\xDAj session"),o())}function Fi(t,r){if(t&1&&(s(0,"span",36),l(1),o()),t&2){let e=d(3);a(),b("\u201E",e.stepMessagePreview_$(),'"')}}function Ai(t,r){if(t&1&&(s(0,"div",31),p(1,Vi,2,0,"span",35)(2,Fi,2,1,"span",36),o()),t&2){let e=d(2);a(),c(e.isNewSession_$()?1:-1),a(),c(e.stepMessagePreview_$()?2:-1)}}function zi(t,r){if(t&1&&(s(0,"span",37),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunIntent_$())}}function Oi(t,r){if(t&1&&(s(0,"span",38),l(1),o()),t&2){let e=d(3);a(),m(e.runGoal_$())}}function Bi(t,r){if(t&1&&(s(0,"div",32),p(1,zi,2,1,"span",37)(2,Oi,2,1,"span",38),o()),t&2){let e=d(2);a(),c(e.stepRunIntent_$()?1:-1),a(),c(e.runGoal_$()?2:-1)}}function Ni(t,r){if(t&1&&(s(0,"span",39),l(1),o()),t&2){let e=d(3);a(),m(e.iterationAction_$())}}function Ki(t,r){if(t&1&&(s(0,"div",32)(1,"span",26),l(2),o(),p(3,Ni,2,1,"span",39),o()),t&2){let e=d(2);a(2),b("",e.iterationIndex_$()," iter\xE1ci\xF3"),a(),c(e.iterationAction_$()?3:-1)}}function Ui(t,r){if(t&1&&(s(0,"span",27),l(1),o()),t&2){let e=d(3);h("ngClass",Z(2,oi,e.iterationAction_$()==="TOOL_SELECT",e.iterationAction_$()==="RESULT",e.iterationAction_$()!=="TOOL_SELECT"&&e.iterationAction_$()!=="RESULT")),a(),m(e.iterationAction_$())}}function ji(t,r){if(t&1&&(s(0,"span",41),l(1),o()),t&2){let e=d(3);a(),m(e.iterationTool_$())}}function qi(t,r){if(t&1&&(s(0,"span",42),l(1),o()),t&2){let e=d(3);a(),m(e.iterationIntent_$())}}function Gi(t,r){t&1&&(s(0,"span",43),l(1,"feedback"),o())}function Wi(t,r){if(t&1&&(s(0,"div",33)(1,"span",40),l(2),o(),p(3,Ui,2,6,"span",27)(4,ji,2,1,"span",41)(5,qi,2,1,"span",42)(6,Gi,2,0,"span",43),o()),t&2){let e=d(2);a(2),b("#",e.iterationIndex_$(),""),a(),c(e.iterationAction_$()?3:-1),a(),c(e.iterationTool_$()?4:-1),a(),c(e.iterationIntent_$()?5:-1),a(),c(e.hasAgentFeedback_$()?6:-1)}}function Hi(t,r){if(t&1&&(s(0,"div",44),l(1),o()),t&2){let e=d(3);a(),m(e.finalizationAnswer_$())}}function Qi(t,r){if(t&1&&(s(0,"div",38),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunSummary_$())}}function Xi(t,r){if(t&1&&(s(0,"div",34),p(1,Hi,2,1,"div",44)(2,Qi,2,1,"div",38),o()),t&2){let e=d(2);a(),c(e.finalizationAnswer_$()?1:-1),a(),c(e.stepRunSummary_$()?2:-1)}}function Ji(t,r){if(t&1&&(s(0,"div",44),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunIntent_$())}}function Yi(t,r){if(t&1&&(s(0,"div",38),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunSummary_$())}}function Zi(t,r){if(t&1&&(s(0,"div",34),p(1,Ji,2,1,"div",44)(2,Yi,2,1,"div",38),o()),t&2){let e=d(2);a(),c(e.stepRunIntent_$()?1:-1),a(),c(e.stepRunSummary_$()?2:-1)}}function eo(t,r){if(t&1&&(s(0,"span",38),l(1),o()),t&2){let e=d(3);a(),m(e.iterationIntent_$())}}function to(t,r){if(t&1&&(s(0,"div",31)(1,"span",45),l(2,"elutas\xEDtva"),o(),p(3,eo,2,1,"span",38),o()),t&2){let e=d(2);a(3),c(e.iterationIntent_$()?3:-1)}}function no(t,r){if(t&1&&(s(0,"div",12),p(1,Ai,3,2,"div",31)(2,Bi,3,2,"div",32)(3,Ki,4,2,"div",32)(4,Wi,7,5,"div",33)(5,Xi,3,2,"div",34)(6,Zi,3,2,"div",34)(7,to,4,1,"div",31),o()),t&2){let e=d();a(),c(e.stepType_$()==="run-initialization"?1:e.stepType_$()==="execution-start"?2:e.stepType_$()==="execution-end"?3:e.stepType_$()==="agentic-loop-iteration"?4:e.stepType_$()==="run-finalization"?5:e.stepType_$()==="run-flow-complete"?6:e.stepType_$().includes("rejected")?7:-1)}}function io(t,r){if(t&1&&(s(0,"div",46)(1,"span",25),l(2),o()()),t&2){let e=d(2);a(2),m(e.compactingSizeReduction_$())}}function oo(t,r){if(t&1&&(s(0,"div",12),p(1,io,3,1,"div",46),o()),t&2){let e=d();a(),c(e.compactingSizeReduction_$()?1:-1)}}function so(t,r){if(t&1&&(s(0,"span",57),l(1),o()),t&2){let e=d().$implicit;a(),m(e.provider)}}function ao(t,r){if(t&1&&(s(0,"div",59)(1,"div",60),l(2,"System Prompt "),s(3,"span",63),l(4),o()(),s(5,"pre",64),l(6),o()()),t&2){let e=d(2).$implicit;a(4),b("(",e.payload.systemPromptChars," chars)"),a(2),m(e.payload.systemPrompt)}}function ro(t,r){if(t&1&&(s(0,"div",62)(1,"div",65),l(2),o(),s(3,"pre",66),l(4),o()()),t&2){let e=r.$implicit;a(),h("ngClass",Z(3,ai,e.role==="user",e.role==="assistant",e.role==="system")),a(),m(e.role),a(2),m(e.content)}}function lo(t,r){if(t&1&&(p(0,ao,7,2,"div",59),s(1,"div",60),l(2),o(),s(3,"div",61),k(4,ro,5,7,"div",62,K),o()),t&2){let e=d().$implicit;c(e.payload.systemPrompt?0:-1),a(2),b("Messages (",e.payload.messageCount,")"),a(2),D(e.payload.messages)}}function _o(t,r){if(t&1&&(s(0,"pre",58),l(1),o()),t&2){let e,i=d().$implicit,n=d(2);a(),m((e=i.payload.content)!==null&&e!==void 0?e:n.formatDebugPayload(i.payload))}}function co(t,r){if(t&1&&(s(0,"div",67),l(1),o()),t&2){let e=d(2).$implicit;a(),b("Tool: ",e.payload.toolId,"")}}function po(t,r){if(t&1&&(p(0,co,2,1,"div",67),s(1,"pre",58),l(2),o()),t&2){let e,i=d().$implicit,n=d(2);c(i.payload.toolId?0:-1),a(2),m((e=i.payload.content)!==null&&e!==void 0?e:n.formatDebugPayload(i.payload))}}function uo(t,r){if(t&1&&(s(0,"div",68),l(1),o()),t&2){let e=d(2).$implicit;a(),m(e.payload.message)}}function mo(t,r){if(t&1&&(s(0,"pre",64),l(1),o()),t&2){let e=d(2).$implicit,i=d(2);a(),m(i.formatDebugPayload(e.payload.details))}}function xo(t,r){if(t&1&&p(0,uo,2,1,"div",68)(1,mo,2,1,"pre",64),t&2){let e=d().$implicit;c(e.payload.message?0:-1),a(),c(e.payload.details?1:-1)}}function fo(t,r){if(t&1&&(s(0,"pre",58),l(1),o()),t&2){let e,i=d().$implicit,n=d(2);a(),m((e=i.payload.content)!==null&&e!==void 0?e:n.formatDebugPayload(i.payload))}}function Co(t,r){if(t&1&&(s(0,"div",54)(1,"div",55)(2,"span",56),l(3),o(),s(4,"span",40),l(5),o(),p(6,so,2,1,"span",57),o(),p(7,lo,6,2)(8,_o,2,1,"pre",58)(9,po,3,2,"pre",58)(10,xo,2,2)(11,fo,2,1,"pre",58),o()),t&2){let e=r.$implicit;a(2),h("ngClass",ye(5,si,e.eventKind==="prompt",e.eventKind==="result",e.eventKind==="tool-result",e.eventKind==="agent-think",e.eventKind==="error")),a(),m(e.eventKind),a(2),m(e.callTag),a(),c(e.provider?6:-1),a(),c(e.eventKind==="prompt"&&e.payload.messages?7:e.eventKind==="result"?8:e.eventKind==="tool-result"?9:e.eventKind==="error"?10:11)}}function So(t,r){if(t&1){let e=y();s(0,"div",47),C("click",function(){x(e);let n=d();return f(n.closeDebugPopup())}),g(1,"div",48),s(2,"div",49),C("click",function(n){return x(e),f(n.stopPropagation())}),s(3,"div",50)(4,"h4",51),l(5,"Debug Log Trace"),o(),s(6,"button",52),C("click",function(){x(e);let n=d();return f(n.closeDebugPopup())}),l(7,"X"),o()(),s(8,"div",53),k(9,Co,12,11,"div",54,ti),o()()()}if(t&2){let e=d();a(9),D(e.matchedDebugEntries_$())}}var Gt=(()=>{class t{event=V.required();debugTraceEntries=V([]);itemClick=new B;emoji_$=S(()=>Y.getEmoji(this.event()));borderClasses_$=S(()=>Y.getBubbleClasses(this.event()));label_$=S(()=>Y.getStepLabel(this.event()));category_$=S(()=>{let e=this.event();return e.eventType==="llm-call"?"llm":e.eventType==="tool-call"?"tool":e.eventType==="error"?"error":e.eventType==="step"?"step":"generic"});durationLabel_$=S(()=>{let e=this.event().durationMs;return e?e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`:""});status_$=S(()=>this.event().status??"");llmCallType_$=S(()=>{let i=(this.event().data??{}).callType;return typeof i=="string"?Y.formatStepId(i):""});llmModel_$=S(()=>{let i=(this.event().data??{}).model;return typeof i=="string"?i:""});toolId_$=S(()=>{let i=(this.event().data??{}).toolId;return typeof i=="string"?i:""});errorMessage_$=S(()=>{let e=this.event().data??{},i=e.message??e.error;return typeof i=="string"?i.length>120?i.substring(0,120)+"\u2026":i:""});sizeLabel_$=S(()=>{let e=this.event(),i=[];return e.inputSize&&i.push(`in: ${e.inputSize}`),e.outputSize&&i.push(`out: ${e.outputSize}`),i.join(" / ")});llmTokenBrief_$=S(()=>{let e=this.event().data??{},i=e.promptTokens,n=e.completionTokens;return typeof i=="number"&&typeof n=="number"?`${i} \u2192 ${n} tokens`:""});llmFinishReason_$=S(()=>{let i=(this.event().data??{}).finishReason;return typeof i=="string"?i:""});llmProvider_$=S(()=>{let i=(this.event().data??{}).provider;return typeof i=="string"?i:""});stepType_$=S(()=>{let i=(this.event().data??{}).step;return typeof i=="string"?i:""});stepMessagePreview_$=S(()=>{let i=(this.event().data??{}).messagePreview;return typeof i=="string"?i.length>80?i.substring(0,80)+"\u2026":i:""});stepRunIntent_$=S(()=>{let i=(this.event().data??{}).runIntent;return typeof i=="string"?i:""});stepRunSummary_$=S(()=>{let i=(this.event().data??{}).runSummary;return typeof i=="string"?i.length>120?i.substring(0,120)+"\u2026":i:""});toolError_$=S(()=>{let i=(this.event().data??{}).error;return typeof i=="string"&&i.length>0?i.length>100?i.substring(0,100)+"\u2026":i:""});toolCategory_$=S(()=>{let i=(this.event().data??{}).toolCategory;return typeof i=="string"?i:""});iterationAction_$=S(()=>{let i=(this.event().data??{}).action;return typeof i=="string"?i:""});iterationIntent_$=S(()=>{let i=(this.event().data??{}).intent;return typeof i=="string"?i.length>80?i.substring(0,80)+"\u2026":i:""});iterationTool_$=S(()=>{let e=this.event().data??{},i=e.tool??e.toolGroup;return typeof i=="string"?i:""});iterationIndex_$=S(()=>{let i=(this.event().data??{}).iteration;return typeof i=="number"?i:0});isNewSession_$=S(()=>(this.event().data??{}).isNewSession===!0);runGoal_$=S(()=>{let i=(this.event().data??{}).runGoal;return typeof i=="string"?i.length>100?i.substring(0,100)+"\u2026":i:""});hasAgentFeedback_$=S(()=>(this.event().data??{}).hasAgentFeedback===!0);finalizationAnswer_$=S(()=>{let i=(this.event().data??{}).result;if(typeof i=="object"&&i!==null){let n=i.answerToUser;if(typeof n=="string")return n.length>120?n.substring(0,120)+"\u2026":n}return""});compactingSizeReduction_$=S(()=>{let e=this.event().data??{},i=e.initialSize,n=e.finalSize;if(typeof i=="number"&&typeof n=="number"){let _=i-n;return`${i} \u2192 ${n} chars (\u2212${_})`}return""});matchedDebugEntries_$=S(()=>{let e=this.debugTraceEntries();if(!e.length)return[];let i=this.event(),n=i.data??{};if(i.eventType==="llm-call"){let _=typeof n.llmTag=="string"?n.llmTag:"";return _?e.filter(u=>u.callTag===_):[]}if(i.eventType==="tool-call"){let _=typeof n.toolId=="string"?n.toolId:"";return _?e.filter(u=>u.eventKind==="tool-result"&&typeof u.payload?.toolId=="string"&&u.payload.toolId===_):[]}if(i.eventType==="step"){let _=typeof n.step=="string"?n.step:"";if(_.includes("error")||_.includes("hallucination"))return e.filter(u=>u.eventKind==="error");if(_.includes("loop-debrief")||_.includes("agentic-loop"))return e.filter(u=>u.eventKind==="agent-think")}return[]});hasDebugEntries_$=S(()=>this.matchedDebugEntries_$().length>0);debugPopupOpen_$=E(!1);handleClick(){this.itemClick.emit(this.event())}toggleDebugPopup(){this.debugPopupOpen_$.update(e=>!e)}closeDebugPopup(){this.debugPopupOpen_$.set(!1)}formatDebugPayload(e){return e?JSON.stringify(e,null,2):""}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-event-list-item"]],inputs:{event:[1,"event"],debugTraceEntries:[1,"debugTraceEntries"]},outputs:{itemClick:"itemClick"},decls:24,vars:13,consts:[[1,"rounded-md","overflow-hidden",3,"ngClass"],[1,"flex","items-start"],[1,"flex-1","min-w-0","text-left","px-2.5","py-1.5","text-xs","hover:brightness-125","transition-colors","cursor-pointer","flex","items-start","gap-2",3,"click"],[1,"shrink-0","text-sm","leading-none","mt-0.5"],[1,"flex-1","min-w-0"],[1,"shrink-0","flex","flex-col","items-end","gap-0","mt-0.5"],[1,"text-[10px]","opacity-50"],[1,"text-[10px]","text-neutral-400","whitespace-nowrap",3,"title"],["title","Debug Log Trace",1,"shrink-0","px-1.5","py-1.5","text-purple-400","hover:text-purple-200","hover:bg-purple-500/10","transition-colors"],[1,"px-2.5","pb-1.5","text-[10px]","leading-relaxed","border-t","border-white/5"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5","pt-1","text-purple-300/80"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5","pt-1"],[1,"pt-1"],[1,"fixed","inset-0","z-[100]","flex","items-center","justify-center"],[1,"font-medium"],[1,"flex","flex-wrap","gap-x-3","gap-y-0.5","mt-0.5","text-[10px]","opacity-75"],[1,"font-semibold",3,"ngClass"],[1,"mt-0.5","text-[10px]","opacity-75","truncate"],["title","Debug Log Trace",1,"shrink-0","px-1.5","py-1.5","text-purple-400","hover:text-purple-200","hover:bg-purple-500/10","transition-colors",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3.5","h-3.5"],["d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"],["points","14 2 14 8 20 8"],["x1","16","y1","13","x2","8","y2","13"],["x1","16","y1","17","x2","8","y2","17"],[1,"px-1","py-0.5","rounded","bg-purple-500/10","text-purple-300","font-mono"],[1,"font-mono"],[1,"text-neutral-400"],[1,"px-1","py-0.5","rounded","text-[9px]",3,"ngClass"],[1,"px-1","py-0.5","rounded","bg-amber-500/10","text-amber-300","text-[9px]","font-mono"],[1,"text-red-300/80","truncate","flex-1","min-w-0"],[1,"text-red-300/80","bg-red-500/5","rounded","px-1.5","py-0.5","whitespace-pre-wrap"],[1,"flex","items-center","gap-2"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5"],[1,"flex","flex-wrap","items-center","gap-x-1.5","gap-y-0.5"],[1,"flex","flex-col","gap-0.5"],[1,"px-1","py-0.5","rounded","bg-green-500/10","text-green-400","text-[9px]"],[1,"text-neutral-400","truncate","flex-1","min-w-0"],[1,"text-neutral-300","truncate"],[1,"text-neutral-500","truncate"],[1,"px-1","py-0.5","rounded","bg-blue-500/10","text-blue-300","text-[9px]"],[1,"text-neutral-500","font-mono"],[1,"text-amber-300/70","font-mono"],[1,"text-neutral-500","truncate","flex-1","min-w-0"],[1,"px-1","py-0.5","rounded","bg-cyan-500/10","text-cyan-400","text-[9px]"],[1,"text-neutral-400","truncate"],[1,"px-1","py-0.5","rounded","bg-amber-500/10","text-amber-400","text-[9px]"],[1,"flex","items-center","gap-2","text-teal-300/70"],[1,"fixed","inset-0","z-[100]","flex","items-center","justify-center",3,"click"],["aria-hidden","true",1,"absolute","inset-0","bg-black/50"],[1,"relative","z-10","w-[640px]","max-w-[90vw]","max-h-[80vh]","bg-[#121220]","border","border-purple-500/40","rounded-lg","p-4","overflow-y-auto","shadow-2xl",2,"max-height","80dvh",3,"click"],[1,"flex","justify-between","items-center","mb-3"],[1,"text-sm","font-bold","text-purple-300"],[1,"px-2","py-1","border","border-neonCyan","rounded","bg-transparent","text-neutral-200","cursor-pointer","hover:bg-neutral-800",3,"click"],[1,"flex","flex-col","gap-3"],[1,"bg-[#0a0a15]","border","border-neonDefault","rounded-md","p-3"],[1,"flex","items-center","gap-2","mb-2","text-[11px]"],[1,"px-1.5","py-0.5","rounded","text-[10px]","font-semibold",3,"ngClass"],[1,"text-neutral-600","text-[10px]"],[1,"text-[11px]","text-neutral-300","bg-[#080812]","rounded","p-2","max-h-[300px]","overflow-y-auto","whitespace-pre-wrap","break-words"],[1,"mb-2"],[1,"text-[10px]","text-neutral-500","uppercase","mb-1"],[1,"flex","flex-col","gap-1.5"],[1,"bg-[#080812]","rounded","p-2"],[1,"text-neutral-600"],[1,"text-[11px]","text-neutral-300","bg-[#080812]","rounded","p-2","max-h-[200px]","overflow-y-auto","whitespace-pre-wrap","break-words"],[1,"text-[10px]","font-bold","mb-0.5",3,"ngClass"],[1,"text-[11px]","text-neutral-300","whitespace-pre-wrap","break-words","max-h-[150px]","overflow-y-auto"],[1,"text-[10px]","text-yellow-400","mb-1"],[1,"text-red-300","text-xs","mb-1"]],template:function(i,n){if(i&1&&(s(0,"div",0)(1,"div",1)(2,"button",2),C("click",function(){return n.handleClick()}),p(3,ri,2,1,"span",3),s(4,"div",4),p(5,ci,6,4)(6,mi,5,3)(7,fi,3,1)(8,hi,5,3)(9,yi,5,3),o(),s(10,"div",5),p(11,bi,2,1,"span",6),s(12,"span",7),H(13,"sAbsoluteTime"),l(14),H(15,"sTimeAgo"),o()()(),p(16,Ei,6,0,"button",8),o(),s(17,"div",9),p(18,ki,5,4,"div",10)(19,Ri,3,2,"div",11)(20,Li,2,1,"div",12)(21,no,8,1,"div",12)(22,oo,2,1,"div",12),o()(),p(23,So,11,0,"div",13)),i&2){let _,u,v;h("ngClass",n.borderClasses_$()),a(3),c((_=n.emoji_$())?3:-1,_),a(2),c((u=n.category_$())==="llm"?5:u==="tool"?6:u==="error"?7:u==="step"?8:9),a(6),c(n.durationLabel_$()?11:-1),a(),h("title",te(13,9,n.event().timestamp)),a(2),m(te(15,11,n.event().timestamp)),a(2),c(n.hasDebugEntries_$()?16:-1),a(2),c((v=n.category_$())==="llm"?18:v==="tool"?19:v==="error"?20:v==="step"?21:22),a(5),c(n.debugPopupOpen_$()?23:-1)}},dependencies:[U,Lt,Vt],styles:[`[_nghost-%COMP%]{display:block}
1
+ import{b as Ue,c as Bt,d as Nt,e as je,f as Kt}from"./chunk-EVYE6YII.js";import{a as Ce,b as le,c as de,d as Ot}from"./chunk-VU76JPZM.js";import"./chunk-EGRHWZRV.js";import{a as Ke}from"./chunk-SWJLLCFC.js";import{a as Ne}from"./chunk-U6B7OBXY.js";import{a as zt,b as Y,g as qe,h as Ut}from"./chunk-QNLMNKP4.js";import{a as At}from"./chunk-Q2PKIGLB.js";import{a as Pe}from"./chunk-Z4OXAMEA.js";import{a as rt}from"./chunk-YRVQSWSZ.js";import{a as De}from"./chunk-4CLON3UX.js";import{b as R,c as F}from"./chunk-R2C7U5TP.js";import{b as Me}from"./chunk-EC4VBEIV.js";import{a as Mt,b as Re}from"./chunk-V6QEYU4X.js";import"./chunk-5XJR5EAR.js";import"./chunk-XZTQ4YC7.js";import"./chunk-RLXJG6ZF.js";import"./chunk-L44637OO.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import{a as ee}from"./chunk-CF3BLCVD.js";import"./chunk-4O4UDIWG.js";import"./chunk-S5PG5OUU.js";import"./chunk-3HLEHUE4.js";import{a as Fe,b as Ae,c as ze}from"./chunk-C7XPBJTG.js";import{b as q,f as Oe,g as Be,h as Ft}from"./chunk-5E5W3DFK.js";import{a as Ve}from"./chunk-WPHEQXWB.js";import{c as Le}from"./chunk-JWXM6QMF.js";import{a as ne,b as Lt,c as Vt}from"./chunk-NIMLWXGM.js";import"./chunk-5KQZGU6O.js";import"./chunk-KC7UN4VT.js";import"./chunk-EGWEYXZW.js";import"./chunk-36BCBGXK.js";import"./chunk-GOPRHQFC.js";import"./chunk-V3VQWJQL.js";import"./chunk-FBZDKQ4K.js";import"./chunk-QHZI4F2F.js";import{a as re}from"./chunk-FLAJXIYW.js";import{c as Te,f as we,i as $e,o as kt,p as Dt,v as Pt}from"./chunk-EO4DNTT4.js";import{k as j}from"./chunk-ZTB2RW6R.js";import{a as O}from"./chunk-5UPNU54P.js";import{j as ke}from"./chunk-KNTOPF7C.js";import{G as P,H as z,I as Rt,p as It}from"./chunk-Y3DARUXQ.js";import{$a as H,Aa as me,Ba as xe,C as I,D as T,Db as Tt,E as xt,Ea as St,Eb as Ie,Fa as l,Fb as wt,G as ft,Ga as m,Gb as ae,Ha as b,I as Q,Ia as tt,J as x,K as f,Kb as $t,L as A,M as ce,Ma as nt,Na as it,Oa as ot,P as Ct,Pa as ht,Q as B,Qa as vt,Ra as se,Ta as gt,U as V,Ua as st,Wa as at,Xa as Z,Ya as yt,Z as a,Za as ye,a as J,aa as E,ab as te,b as ct,bb as fe,ca as ve,da as p,ga as h,h as pt,ha as pe,hb as S,ia as W,ib as be,ja as N,jb as M,k as $,la as c,ma as K,mb as U,na as ge,oa as k,p as et,pa as D,qa as s,ra as o,sa as g,sb as bt,t as ut,ua as y,ub as Ee,va as C,wa as d,xb as Et,y as oe,z as mt,za as ue}from"./chunk-TBMJSIBB.js";var Ge="ccap-ccapSession",X=class{static savePromptDraft(r,e){Ce.saveDraft(Ge,r,e)}static loadPromptDraft(r){return Ce.loadDraft(Ge,r)}static clearPromptDraft(r){Ce.clearDraft(Ge,r)}static hasPromptDraft(r){return Ce.hasDraft(Ge,r)}};function En(t,r){t&1&&(s(0,"div",11),l(1,"Loading sessions..."),o())}function In(t,r){if(t&1){let e=y();s(0,"app-s-session-select",16),C("selected",function(n){x(e);let _=d();return f(_.selectSession(n))})("contextMenu",function(n){x(e);let _=d();return f(_.handleRowContextMenu(n))})("scheduleIndicatorClicked",function(n){x(e);let _=d();return f(_.handleScheduleIndicatorClick(n))})("coordinatorIndicatorClicked",function(n){x(e);let _=d();return f(_.handleCoordinatorIndicatorClick(n))}),o()}if(t&2){let e=d();h("rows",e.activeSessionRowViews_$())("activeId",e.activeSessionId)("hideSearch",!0)}}function Tn(t,r){if(t&1){let e=y();s(0,"div",13),g(1,"app-ccap-error-display",17),s(2,"div",18)(3,"button",19),C("click",function(){x(e);let n=d();return f(n.refreshSessions())}),l(4," Try again "),o()()()}if(t&2){let e=d();a(),h("error",e.session_DS.sessionsLoadError_$())}}function wn(t,r){t&1&&(s(0,"div",11),l(1,"No sessions found"),o())}function $n(t,r){if(t&1){let e=y();s(0,"button",21),C("click",function(){x(e);let n=d(2);return f(n.loadArchivedSessions())}),l(1),o()}if(t&2){let e=d(2);h("disabled",e.session_DS.archivedSessionsLoading_$()),a(),b(" ",e.session_DS.archivedSessionsLoading_$()?"Loading...":"Show archived"," ")}}function kn(t,r){t&1&&(s(0,"div",11),l(1,"Loading..."),o())}function Dn(t,r){if(t&1){let e=y();s(0,"app-s-session-select",16),C("selected",function(n){x(e);let _=d(3);return f(_.selectSession(n))})("contextMenu",function(n){x(e);let _=d(3);return f(_.handleRowContextMenu(n))})("scheduleIndicatorClicked",function(n){x(e);let _=d(3);return f(_.handleScheduleIndicatorClick(n))})("coordinatorIndicatorClicked",function(n){x(e);let _=d(3);return f(_.handleCoordinatorIndicatorClick(n))}),o()}if(t&2){let e=d(3);h("rows",e.archivedSessionRowViews_$())("activeId",e.activeSessionId)("hideSearch",!0)}}function Pn(t,r){t&1&&(s(0,"div",25),l(1,"No archived sessions"),o())}function Rn(t,r){if(t&1){let e=y();s(0,"div",22)(1,"span",23),l(2,"Archived"),o(),s(3,"button",24),C("click",function(){x(e);let n=d(2);return f(n.hideArchived())}),l(4," Hide "),o()(),p(5,kn,2,0,"div",11)(6,Dn,1,3,"app-s-session-select",12)(7,Pn,2,0,"div",25)}if(t&2){let e=d(2);a(5),c(e.session_DS.archivedSessionsLoading_$()?5:e.archivedSessionRowViews_$().length?6:7)}}function Mn(t,r){if(t&1&&(s(0,"div",14),p(1,$n,2,2,"button",20)(2,Rn,8,1),o()),t&2){let e=d();a(),c(e.showArchived?2:1)}}function Ln(t,r){if(t&1){let e=y();s(0,"div",28)(1,"input",29,0),C("input",function(){x(e);let n=St(2),_=d(2);return f(_.renameValue_$.set(n.value))})("keydown.enter",function(){x(e);let n=d(2);return f(n.handleCtxRenameConfirm())})("keydown.escape",function(){x(e);let n=d(2);return f(n.handleCloseCtxMenu())}),o()()}if(t&2){let e=d(2);a(),h("value",e.renameValue_$())}}function Vn(t,r){t&1&&l(0," \u2713 Link copied ")}function Fn(t,r){t&1&&l(0," Copy failed ")}function An(t,r){t&1&&l(0," Copy link ")}function zn(t,r){if(t&1){let e=y();s(0,"button",31),C("click",function(){x(e);let n=d(3);return f(n.handleCtxUnarchive())}),l(1," Unarchive "),o()}}function On(t,r){if(t&1){let e=y();s(0,"button",31),C("click",function(){x(e);let n=d(3);return f(n.handleCtxArchive())}),l(1," Archive "),o()}}function Bn(t,r){if(t&1){let e=y();s(0,"button",30),C("click",function(){x(e);let n=d(2);return f(n.handleCtxCopyLink())}),p(1,Vn,1,0)(2,Fn,1,0)(3,An,1,0),o(),s(4,"button",30),C("click",function(){x(e);let n=d(2);return f(n.handleCtxCopy())}),l(5),o(),s(6,"button",31),C("click",function(){x(e);let n=d(2);return f(n.handleCtxRenameStart())}),l(7," Rename "),o(),p(8,zn,2,0,"button",32)(9,On,2,0,"button",32)}if(t&2){let e,i=d(),n=d();h("disabled",n.linkCopyState_$()!=="idle"),a(),c((e=n.linkCopyState_$())==="copied"?1:e==="failed"?2:3),a(3),h("disabled",n.copying),a(),b(" ",n.copying?"Copying\u2026":"Copy"," "),a(3),c(i._archived?8:9)}}function Nn(t,r){if(t&1){let e=y();s(0,"div",26),C("click",function(){x(e);let n=d();return f(n.handleCloseCtxMenu())}),o(),s(1,"div",27),p(2,Ln,3,1,"div",28)(3,Bn,10,5),o()}if(t&2){let e=d();a(),pe("left",e.ctxMenuPos_$().x,"px")("top",e.ctxMenuPos_$().y,"px"),a(),c(e.isRenaming_$()?2:3)}}var qt=(()=>{class t{activeSessionId="";showArchived=!1;creating=!1;archiving=!1;deArchiving=!1;copying=!1;session_DS=I(F);peiContext_DS=I(ee);globalError_CS=I(ke);scheduledJobs_DS=I(Ne);coordinator_DS=I(Ke);router=I(ae);instanceChangeEffect=M(()=>{this.peiContext_DS.activeCcapId_$()&&be(()=>{this.session_DS.loadSessions()})});searchQuery_$=E("");filteredActiveSessions_$=S(()=>{let e=this.searchQuery_$(),i=this.session_DS.sessions_$();return e.trim()?i.filter(n=>ne.includesText(n.name,e)||ne.includesText(n.sessionGoal,e)||ne.includesText(n.sessionIntent,e)):i});filteredArchivedSessions_$=S(()=>{let e=this.searchQuery_$(),i=this.session_DS.archivedSessions_$();return e.trim()?i.filter(n=>ne.includesText(n.name,e)||ne.includesText(n.sessionGoal,e)||ne.includesText(n.sessionIntent,e)):i});activeSessionRowViews_$=S(()=>{let e=this.scheduledJobs_DS.scheduledSessionIds_$(),i=this.coordinator_DS.coordinatedSessionIds_$();return this.filteredActiveSessions_$().map(n=>t.mapSessionToRowView(n,e,i))});archivedSessionRowViews_$=S(()=>{let e=this.scheduledJobs_DS.scheduledSessionIds_$(),i=this.coordinator_DS.coordinatedSessionIds_$();return this.filteredArchivedSessions_$().map(n=>ct(J({},t.mapSessionToRowView(n,e,i)),{statusColorClass:"bg-neutral-500",isRunning:!1}))});ctxMenuSession_$=E(null);ctxMenuPos_$=E({x:0,y:0});isRenaming_$=E(!1);renameValue_$=E("");linkCopyState_$=E("idle");schedulePopupSessionId_$=E(null);handleScheduleIndicatorClick(e){this.schedulePopupSessionId_$.set(e)}handleCloseSchedulePopup(){this.schedulePopupSessionId_$.set(null)}coordinatorPopupSessionId_$=E(null);handleCoordinatorIndicatorClick(e){this.coordinatorPopupSessionId_$.set(e)}handleCloseCoordinatorPopup(){this.coordinatorPopupSessionId_$.set(null)}ngOnInit(){this.peiContext_DS.initialize(),this.session_DS.loadSessions(),this.scheduledJobs_DS.loadAll(),this.coordinator_DS.loadAllCoordinatorsForManagementPage()}selectSession(e){let i=this.peiContext_DS.activeCcapId_$(),n=i?["/session",i,e]:["/session",e];this.router.navigate(n)}refreshSessions(){this.session_DS.loadSessions()}archiveSession(e){return $(this,null,function*(){if(!this.archiving){this.archiving=!0;try{yield this.session_DS.updateSession({sessionId:e,updates:{archived:!0}})}finally{this.archiving=!1}}})}deArchiveSession(e){return $(this,null,function*(){if(!this.deArchiving){this.deArchiving=!0;try{yield this.session_DS.updateSession({sessionId:e,updates:{archived:!1}})}finally{this.deArchiving=!1}}})}loadArchivedSessions(){this.session_DS.loadArchivedSessions().then(()=>{this.showArchived=!0})}hideArchived(){this.showArchived=!1}createNewSession(){return $(this,null,function*(){this.creating=!0;try{let e=yield this.session_DS.createSession(),i=this.peiContext_DS.activeCcapId_$(),n=i?["/session",i,e._id]:["/session",e._id];this.router.navigate(n),this.session_DS.requestSidebarCloseOnMobileBump_$.update(_=>_+1)}finally{this.creating=!1}})}handleRowContextMenu(e){let i=this.session_DS.sessions_$().find(n=>n._id===e.id)||this.session_DS.archivedSessions_$().find(n=>n._id===e.id);i&&(this.ctxMenuSession_$.set(i),this.ctxMenuPos_$.set({x:e.event.clientX,y:e.event.clientY}))}handleCloseCtxMenu(){this.ctxMenuSession_$.set(null),this.isRenaming_$.set(!1),this.renameValue_$.set(""),this.linkCopyState_$.set("idle")}handleCtxCopyLink(){return $(this,null,function*(){let e=this.ctxMenuSession_$();if(!e)return;let i=this.peiContext_DS.activeCcapId_$(),n=i?`/session/${i}/${e._id}`:`/session/${e._id}`,_=`${window.location.origin}${n}`,u=yield this.globalError_CS.copyToClipboard(_);this.linkCopyState_$.set(u.ok?"copied":"failed"),setTimeout(()=>{this.handleCloseCtxMenu()},700)})}handleCtxArchive(){return $(this,null,function*(){let e=this.ctxMenuSession_$();e&&(this.handleCloseCtxMenu(),yield this.archiveSession(e._id))})}handleCtxUnarchive(){return $(this,null,function*(){let e=this.ctxMenuSession_$();e&&(this.handleCloseCtxMenu(),yield this.deArchiveSession(e._id))})}handleCtxCopy(){return $(this,null,function*(){let e=this.ctxMenuSession_$();if(!(!e||this.copying)){this.copying=!0,this.handleCloseCtxMenu();try{let i=yield this.session_DS.copySession({sessionId:e._id}),n=this.peiContext_DS.activeCcapId_$(),_=n?["/session",n,i._id]:["/session",i._id];this.router.navigate(_)}finally{this.copying=!1}}})}handleCtxRenameStart(){let e=this.ctxMenuSession_$();e&&(this.renameValue_$.set(e.name||""),this.isRenaming_$.set(!0),setTimeout(()=>{let i=document.querySelector("#sesRenameInput");i&&(i.focus(),i.select())},0))}handleCtxRenameConfirm(){return $(this,null,function*(){let e=this.ctxMenuSession_$();if(!e)return;let i=this.renameValue_$().trim();i!==(e.name||"")&&(yield this.session_DS.updateSession({sessionId:e._id,updates:{name:i}})),this.handleCloseCtxMenu()})}static mapSessionToRowView(e,i,n){let _=e.__lastModified,u=_ instanceof Date?_.toISOString():String(_);return{id:e._id,label:e.name?.trim()||e.sessionGoal?.trim()||e.sessionIntent?.trim()||"Unnamed Session",status:e.status,statusColorClass:rt.resolve(e.status),isArchived:!!e._archived,lastActivityAt:u,isRunning:rt.isRunning(e.status),hasSchedule:i?.has(e._id)??!1,hasCoordinator:n?.has(e._id)??!1,hasDraft:X.hasPromptDraft(e._id)}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-session-list"]],inputs:{activeSessionId:"activeSessionId"},decls:22,vars:9,consts:[["renameInput",""],[1,"flex","flex-col"],[1,"p-2","border-b","border-neonDefault"],[1,"flex","items-center","justify-between","p-3","border-b","border-neonDefault"],[1,"text-sm","font-semibold","text-neutral-200"],[1,"flex","gap-1"],["type","button","title","Refresh",1,"px-2","py-1","text-xs","border","border-neonDefault","text-neutral-300","hover:bg-neutral-700","rounded","transition-colors",3,"click"],[1,"px-2","py-1","text-xs","border","border-ccapAccent","text-ccapAccent","hover:bg-ccapAccent","hover:text-white","hover:shadow-neon-glow-accent","rounded","transition-colors",3,"click","disabled"],[1,"px-3","pt-2","pb-1","border-b","border-neutral-800/60"],["type","text","placeholder","Keres\xE9s session nev\xE9re, goal-ra, intent-re\u2026","title","Keres\xE9s a session lista nev\xE9re, sessionGoal-ra \xE9s sessionIntent-re (\xE9kezet/kisbet\u0171-\xE9rz\xE9ketlen)",1,"w-full","rounded-md","border","border-neutral-700","bg-neutral-800","px-2","py-1.5","text-sm","text-neutral-200","placeholder:text-neutral-600","focus:outline-none","focus:border-neonCyan/60",3,"ngModelChange","ngModel"],[1,"flex-1","overflow-y-auto"],[1,"p-4","text-center","text-neutral-500","text-sm"],["kind","ccap",3,"rows","activeId","hideSearch"],[1,"py-6","px-4"],[1,"border-t","border-neonDefault"],[3,"closed","sessionId","isOpen"],["kind","ccap",3,"selected","contextMenu","scheduleIndicatorClicked","coordinatorIndicatorClicked","rows","activeId","hideSearch"],["sourceLabelOverride","Session lista",1,"mb-3","block",3,"error"],[1,"text-center"],["type","button",1,"mt-1","px-3","py-1.5","text-xs","border","border-neonDefault","text-neutral-300","hover:bg-neutral-700","rounded","transition-colors",3,"click"],["type","button",1,"w-full","px-3","py-2","text-xs","text-neutral-500","hover:text-neutral-300","hover:bg-neutral-800","transition-colors","disabled:opacity-50",3,"disabled"],["type","button",1,"w-full","px-3","py-2","text-xs","text-neutral-500","hover:text-neutral-300","hover:bg-neutral-800","transition-colors","disabled:opacity-50",3,"click","disabled"],[1,"flex","items-center","justify-between","px-3","py-1.5","border-b","border-neutral-700/30"],[1,"text-[10px]","text-neutral-500","uppercase","tracking-wider"],["type","button",1,"text-[10px]","text-neutral-500","hover:text-neutral-300","transition-colors",3,"click"],[1,"p-4","text-center","text-neutral-500","text-xs"],[1,"fixed","inset-0","z-40",3,"click"],[1,"fixed","z-50","min-w-[160px]","bg-neutral-900","border","border-neutral-700","rounded-lg","shadow-xl","py-1","text-xs"],[1,"px-2","py-1.5"],["id","sesRenameInput","type","text",1,"w-full","bg-neutral-800","text-neutral-200","text-xs","rounded","px-2","py-1","border","border-neonDefault","focus:border-neonCyan","focus:outline-none",3,"input","keydown.enter","keydown.escape","value"],[1,"w-full","text-left","px-3","py-1.5","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click","disabled"],[1,"w-full","text-left","px-3","py-1.5","text-neutral-300","hover:bg-neutral-800","transition-colors",3,"click"],[1,"w-full","text-left","px-3","py-1.5","text-neutral-300","hover:bg-neutral-800","transition-colors"]],template:function(i,n){if(i&1&&(s(0,"div",1)(1,"div",2),g(2,"app-s-instance-chip-row-with-info"),o(),s(3,"div",3)(4,"h2",4),l(5,"Sessions"),o(),s(6,"div",5)(7,"button",6),C("click",function(){return n.refreshSessions()}),l(8," Refresh "),o(),s(9,"button",7),C("click",function(){return n.createNewSession()}),l(10," + New "),o()()(),s(11,"div",8)(12,"input",9),C("ngModelChange",function(u){return n.searchQuery_$.set(u)}),o()(),s(13,"div",10),p(14,En,2,0,"div",11)(15,In,1,3,"app-s-session-select",12)(16,Tn,5,1,"div",13)(17,wn,2,0,"div",11)(18,Mn,3,1,"div",14),o()(),p(19,Nn,4,5),s(20,"app-sch-schedule-popup",15),C("closed",function(){return n.handleCloseSchedulePopup()}),o(),s(21,"app-crd-info-popup",15),C("closed",function(){return n.handleCloseCoordinatorPopup()}),o()),i&2){let _;a(9),h("disabled",n.creating),a(3),h("ngModel",n.searchQuery_$()),a(2),c(n.session_DS.sessionsLoading_$()?14:n.activeSessionRowViews_$().length?15:n.session_DS.sessionsLoadError_$()?16:17),a(4),c(!n.session_DS.sessionsLoading_$()&&!n.session_DS.sessionsLoadError_$()?18:-1),a(),c((_=n.ctxMenuSession_$())?19:-1,_),a(),h("sessionId",n.schedulePopupSessionId_$())("isOpen",n.schedulePopupSessionId_$()!==null),a(),h("sessionId",n.coordinatorPopupSessionId_$())("isOpen",n.coordinatorPopupSessionId_$()!==null)}},dependencies:[Le,Te,we,$e,j,Ue,le,de],encapsulation:2})}return t})();var ie=class t{static labelForRunExecutionMode(r){if(r==null||r.trim()==="")return"";let e=r.trim(),i=[P.instant,P.agenticAny,P.ask,P.plan];for(let n of i)if(e===n)return t.runModeLabelMap[n];return""}static labelForPaletteConstraint(r){if(r==null||r.trim()==="")return"";let e=r.trim(),i=[z.full,z.askOnly,z.planOnly];for(let n of i)if(e===n)return t.paletteLabelMap[n];return""}static runModeLabelMap={[P.instant]:"Instant (no tools)",[P.agenticAny]:"Agentic (full tools)",[P.ask]:"Ask (read-only tools)",[P.plan]:"Plan (+ plan tool)"};static paletteLabelMap={[z.full]:"Palette: full",[z.askOnly]:"Palette: ask-only",[z.planOnly]:"Palette: plan-only"}};var He=pt(It());var Se=(()=>{class t{currentSessionId="";events_$=E([]);eventsLoading_$=E(!1);httpRunTraceCache=new Map;monitoringSubscription=null;monitoring_AS=I(zt);session_DS=I(F);constructor(){this.monitoringSubscription=this.session_DS.monitoringEvent_S.subscribe(e=>{let i=this.session_DS.activeSessionId_$().trim();i.length>0&&e.sessionId.trim()===i&&this.pushEvent(e.sessionId.trim(),e.event)})}pushEvent(e,i){let n={eventType:i.eventType??"",timestamp:new Date(i.timestamp??Date.now()),data:i.data??i,durationMs:i.durationMs??0,status:i.status??"",sessionId:e,runId:i.runId??"",inputSize:i.inputSize??0,outputSize:i.outputSize??0};this.events_$.update(_=>[..._,n])}loadSessionEvents(e){return $(this,null,function*(){let i=e.trim();this.currentSessionId=i,this.eventsLoading_$.set(!0);try{let n=yield this.monitoring_AS.getEvents(i);this.events_$.set(n.events)}catch(n){He.DyFM_Error.logSimple("CCAP_MonitoringDS | Failed to load events",n)}finally{this.eventsLoading_$.set(!1)}})}loadRunTrace(e){return $(this,null,function*(){try{let i=yield this.monitoring_AS.getRunTrace(e);this.events_$.set(i.trace)}catch(i){He.DyFM_Error.logSimple("CCAP_MonitoringDS | Failed to load run trace",i)}})}ngOnDestroy(){this.monitoringSubscription&&(this.monitoringSubscription.unsubscribe(),this.monitoringSubscription=null)}clearEvents(){this.events_$.set([])}buildMergedRunTrace(e,i){let n=e.trim(),_=i.trim(),u=`${n}:${_}`,v=this.httpRunTraceCache.get(u)??[],w=this.filterEventsForRun(n,_);return this.mergeTraceLists(v,w)}getOrLoadRunTrace(e,i){return $(this,null,function*(){let n=e.trim(),_=i.trim();if(!n||!_)return[];let u=`${n}:${_}`;if(!this.httpRunTraceCache.has(u))try{let v=yield this.monitoring_AS.getRunTrace({sessionId:n,runId:_}),gn=(Array.isArray(v.trace)?v.trace:[]).map(Ze=>{let G=Ze!==null&&typeof Ze=="object"?Ze:{};return{eventType:G.eventType??"",timestamp:G.timestamp?new Date(G.timestamp):new Date,data:G.data??G,durationMs:G.durationMs??0,status:G.status??"",sessionId:G.sessionId??n,runId:String(G.runId??_).trim(),inputSize:G.inputSize??0,outputSize:G.outputSize??0}});this.httpRunTraceCache.set(u,gn)}catch(v){throw He.DyFM_Error.logSimple("CCAP_MonitoringDS | Failed to load run trace for bubble",v),v}return this.buildMergedRunTrace(n,_)})}filterEventsForRun(e,i){let n=e.trim(),_=i.trim();return this.events_$().filter(u=>u.sessionId.trim()===n&&String(u.runId??"").trim()===_)}mergeTraceLists(e,i){let n=u=>`${u.timestamp.valueOf()}-${u.eventType}-${u.status}-${u.durationMs}`,_=new Map;for(let u of e)_.set(n(u),u);for(let u of i)_.set(n(u),u);return Array.from(_.values()).sort((u,v)=>u.timestamp.valueOf()-v.timestamp.valueOf())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=oe({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Qe=class t{static fromClientMessage(r,e){let i=R.toDisplayString(r.content),n=r.timestamp instanceof Date?r.timestamp.toISOString():new Date(r.timestamp).toISOString(),_=r.role==="user",u=r.messageKey&&(_||r.role==="assistant")?{messageKey:r.messageKey,sessionId:e,role:r.role,content:i,timestampIso:n,hasTtsAudio:r.hasTtsAudio===!0}:void 0,v=t.resolveKind(r.role,i),w={role:r.role,content:r.content,timestamp:n};return r.messageKey&&(w.messageKey=r.messageKey),r.runId&&(w.runId=r.runId),r.clientListKey&&(w.clientListKey=r.clientListKey),r.hasTtsAudio!==void 0&&(w.hasTtsAudio=r.hasTtsAudio),{listKey:r.clientListKey??r.messageKey??"",kind:v.kind,bodyText:v.bodyText,timestampIso:n,isUserAligned:_,headerStatusDot:v.isError?"error":void 0,flags:{showCopy:!0,showRawInfo:!0,useEditDiffForExpandable:!1},rawData:w,tts:u}}static resolveKind(r,e){return r==="user"?{kind:q.userPrompt,bodyText:e,isError:!1}:r==="assistant"?{kind:q.assistant,bodyText:e,isError:!1}:r==="tool"?{kind:q.toolResult,bodyText:e,isError:!1}:r==="system"?t.resolveSystemKind(e):{kind:q.raw,bodyText:e,isError:!1}}static resolveSystemKind(r){let e=r.trim();return e.startsWith("[TOOL_ERROR]")?{kind:q.error,bodyText:e.slice(12).trim(),isError:!0}:e.startsWith("[ERROR]")?{kind:q.error,bodyText:e.slice(7).trim(),isError:!0}:e.startsWith("[TOOL_RESULT]")?{kind:q.toolResult,bodyText:e.slice(13).trim(),isError:!1}:e.startsWith("[INFO]")?{kind:q.info,bodyText:e.slice(6).trim(),isError:!1}:e.startsWith("[AGENT]")?{kind:q.statusUpdate,bodyText:e.slice(7).trim(),isError:!1}:e.startsWith("[QUEUE]")?{kind:q.info,bodyText:e.slice(7).trim(),isError:!1}:{kind:q.statusUpdate,bodyText:r,isError:!1}}};var Un=(t,r)=>r._id,jn=(t,r,e,i,n)=>({"bg-purple-500/20 text-purple-300":t,"bg-green-500/20 text-green-300":r,"bg-yellow-500/20 text-yellow-300":e,"bg-blue-500/20 text-blue-300":i,"bg-red-500/20 text-red-300":n});function qn(t,r){if(t&1&&(s(0,"div")(1,"strong"),l(2,"Input size:"),o(),l(3),o()),t&2){let e=d();a(3),b(" ",e.event().inputSize,"")}}function Gn(t,r){if(t&1&&(s(0,"div")(1,"strong"),l(2,"Output size:"),o(),l(3),o()),t&2){let e=d();a(3),b(" ",e.event().outputSize,"")}}function Wn(t,r){if(t&1&&(s(0,"div")(1,"strong"),l(2,"Run ID:"),o(),l(3),o()),t&2){let e=d();a(3),b(" ",e.event().runId,"")}}function Hn(t,r){if(t&1&&(s(0,"div",5)(1,"h5",6),l(2,"DTS"),o(),s(3,"pre",7),l(4),o()()),t&2){let e=d();a(4),m(e.formatDataValue(e.event().data.dts))}}function Qn(t,r){if(t&1&&(s(0,"div",5)(1,"h5",6),l(2,"Conversation (felhaszn\xE1lt)"),o(),s(3,"pre",7),l(4),o()()),t&2){let e=d();a(4),m(e.formatDataValue(e.event().data.conversationSlice))}}function Xn(t,r){if(t&1&&(s(0,"div",5)(1,"h5",6),l(2,"D\xF6nt\xE9si pontok"),o(),s(3,"pre",7),l(4),o()()),t&2){let e=d();a(4),m(e.formatDataValue(e.event().data.decisionSummary))}}function Jn(t,r){if(t&1&&(s(0,"span",15),l(1),o()),t&2){let e=d().$implicit;a(),m(e.provider)}}function Yn(t,r){if(t&1&&(s(0,"div",11)(1,"div",12)(2,"span",13),l(3),o(),s(4,"span",14),l(5),o(),p(6,Jn,2,1,"span",15),o(),s(7,"pre",16),l(8),o()()),t&2){let e=r.$implicit,i=d(2);a(2),h("ngClass",ye(5,jn,e.eventKind==="prompt",e.eventKind==="result",e.eventKind==="tool-result",e.eventKind==="agent-think",e.eventKind==="error")),a(),m(e.eventKind),a(2),m(e.callTag),a(),c(e.provider?6:-1),a(2),m(i.formatPayload(e.payload))}}function Zn(t,r){if(t&1&&(s(0,"div",8)(1,"h5",9),l(2,"LLM Debug Trace"),o(),s(3,"div",10),k(4,Yn,9,11,"div",11,Un),o()()),t&2){let e=d();a(4),D(e.matchedDebugEntries_$())}}var ei={eventType:"",timestamp:new Date,data:{},durationMs:0,status:"",sessionId:"",runId:"",inputSize:0,outputSize:0},he=(()=>{class t{event=V(ei);debugTraceEntries=V([]);close=new B;formattedData_$=S(()=>JSON.stringify(this.event().data,null,2));isLlmCall_$=S(()=>this.event().eventType==="llm-call");matchedDebugEntries_$=S(()=>{if(!this.isLlmCall_$())return[];let e=this.debugTraceEntries(),i=this.event().data??{},n=typeof i.llmTag=="string"?i.llmTag:"";return!n||!e.length?[]:e.filter(_=>_.callTag===n)});formatDataValue(e){return e==null?"":typeof e=="string"?e:JSON.stringify(e,null,2)}formatPayload(e){return e?JSON.stringify(e,null,2):""}onClose(){this.close.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-trace-detail"]],inputs:{event:[1,"event"],debugTraceEntries:[1,"debugTraceEntries"]},outputs:{close:"close"},decls:27,vars:11,consts:[[1,"w-[560px]","max-w-[90vw]","max-h-[80vh]","bg-[#121220]","border","border-neonDefault","rounded-lg","p-4","overflow-y-auto","shadow-2xl",2,"max-height","80dvh"],[1,"flex","justify-between","items-center","mb-4","min-h-[44px]"],[1,"text-sm","font-bold"],["aria-label","Bez\xE1r\xE1s",1,"px-2.5","py-1","min-h-[44px]","min-w-[44px]","flex","items-center","justify-center","border","border-neonCyan","rounded","bg-transparent","text-neutral-200","cursor-pointer","hover:bg-neutral-800","hover:shadow-neon-glow-cyan",3,"click"],[1,"flex","flex-col","gap-1","text-[13px]","text-neutral-300","mb-4","pb-4","border-b","border-neonDefault"],[1,"mb-4"],[1,"text-xs","uppercase","text-neutral-400","mb-2"],[1,"bg-[#0a0a15]","border","border-neonDefault","rounded-md","p-3","text-xs","text-neutral-200","overflow-x-auto","whitespace-pre-wrap","break-words"],[1,"mt-4","pt-4","border-t","border-purple-500/30"],[1,"text-xs","uppercase","text-purple-400","mb-2"],[1,"flex","flex-col","gap-2"],[1,"bg-[#0a0a15]","border","border-neonDefault","rounded-md","p-3"],[1,"flex","items-center","gap-2","mb-1.5","text-[11px]"],[1,"px-1.5","py-0.5","rounded","text-[10px]","font-semibold",3,"ngClass"],[1,"text-neutral-500"],[1,"text-neutral-600"],[1,"text-xs","text-neutral-200","overflow-x-auto","whitespace-pre-wrap","break-words","max-h-[300px]","overflow-y-auto"]],template:function(i,n){i&1&&(s(0,"div",0)(1,"div",1)(2,"h4",2),l(3),o(),s(4,"button",3),C("click",function(){return n.onClose()}),l(5,"X"),o()(),s(6,"div",4)(7,"div")(8,"strong"),l(9,"Status:"),o(),l(10),o(),s(11,"div")(12,"strong"),l(13,"Duration:"),o(),l(14),o(),p(15,qn,4,1,"div")(16,Gn,4,1,"div")(17,Wn,4,1,"div"),o(),p(18,Hn,5,1,"div",5)(19,Qn,5,1,"div",5)(20,Xn,5,1,"div",5),s(21,"div")(22,"h5",6),l(23,"Event Data"),o(),s(24,"pre",7),l(25),o()(),p(26,Zn,6,0,"div",8),o()),i&2&&(a(3),b("",n.event().eventType," - Trace Detail"),a(7),b(" ",n.event().status,""),a(4),b(" ",n.event().durationMs,"ms"),a(),c(n.event().inputSize?15:-1),a(),c(n.event().outputSize?16:-1),a(),c(n.event().runId?17:-1),a(),c(n.event().data.dts?18:-1),a(),c(n.event().data.conversationSlice?19:-1),a(),c(n.event().data.decisionSummary?20:-1),a(5),m(n.formattedData_$()),a(),c(n.isLlmCall_$()&&n.matchedDebugEntries_$().length?26:-1))},dependencies:[U],encapsulation:2})}return t})();var ti=(t,r)=>r._id,ni=(t,r)=>({"text-green-300":t,"text-red-300":r}),ii=(t,r)=>({"bg-green-500/10 text-green-400":t,"bg-amber-500/10 text-amber-400":r}),oi=(t,r,e)=>({"bg-blue-500/10 text-blue-300":t,"bg-green-500/10 text-green-300":r,"bg-amber-500/10 text-amber-300":e}),si=(t,r,e,i,n)=>({"bg-purple-500/20 text-purple-300":t,"bg-green-500/20 text-green-300":r,"bg-yellow-500/20 text-yellow-300":e,"bg-blue-500/20 text-blue-300":i,"bg-red-500/20 text-red-300":n}),ai=(t,r,e)=>({"text-green-400":t,"text-cyan-400":r,"text-neutral-400":e});function ri(t,r){t&1&&(s(0,"span",3),l(1),o()),t&2&&(a(),m(r))}function li(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.llmModel_$())}}function di(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function _i(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.sizeLabel_$())}}function ci(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,li,2,1,"span")(4,di,2,1,"span")(5,_i,2,1,"span"),o()),t&2){let e=d();a(),m(e.llmCallType_$()||"LLM h\xEDv\xE1s"),a(2),c(e.llmModel_$()?3:-1),a(),c(e.durationLabel_$()?4:-1),a(),c(e.sizeLabel_$()?5:-1)}}function pi(t,r){if(t&1&&(s(0,"span",16),l(1),o()),t&2){let e=d(2);h("ngClass",at(2,ni,e.status_$()==="success",e.status_$()==="failed"||e.status_$()==="error")),a(),m(e.status_$())}}function ui(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function mi(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,pi,2,5,"span",16)(4,ui,2,1,"span"),o()),t&2){let e=d();a(),m(e.toolId_$()||"Eszk\xF6zh\xEDv\xE1s"),a(2),c(e.status_$()?3:-1),a(),c(e.durationLabel_$()?4:-1)}}function xi(t,r){if(t&1&&(s(0,"div",17),l(1),o()),t&2){let e=d(2);a(),m(e.errorMessage_$())}}function fi(t,r){if(t&1&&(s(0,"div",14),l(1,"Hiba"),o(),p(2,xi,2,1,"div",17)),t&2){let e=d();a(2),c(e.errorMessage_$()?2:-1)}}function Ci(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.status_$())}}function Si(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function hi(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,Ci,2,1,"span")(4,Si,2,1,"span"),o()),t&2){let e=d();a(),m(e.label_$()),a(2),c(e.status_$()?3:-1),a(),c(e.durationLabel_$()?4:-1)}}function vi(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.durationLabel_$())}}function gi(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.status_$())}}function yi(t,r){if(t&1&&(s(0,"div",14),l(1),o(),s(2,"div",15),p(3,vi,2,1,"span")(4,gi,2,1,"span"),o()),t&2){let e=d();a(),m(e.label_$()),a(2),c(e.durationLabel_$()?3:-1),a(),c(e.status_$()?4:-1)}}function bi(t,r){if(t&1&&(s(0,"span",6),l(1),o()),t&2){let e=d();a(),m(e.durationLabel_$())}}function Ei(t,r){if(t&1){let e=y();s(0,"button",18),C("click",function(){x(e);let n=d();return f(n.toggleDebugPopup())}),A(),s(1,"svg",19),g(2,"path",20)(3,"polyline",21)(4,"line",22)(5,"line",23),o()()}}function Ii(t,r){if(t&1&&(s(0,"span",24),l(1),o()),t&2){let e=d(2);a(),m(e.llmProvider_$())}}function Ti(t,r){if(t&1&&(s(0,"span",25),l(1),o()),t&2){let e=d(2);a(),m(e.llmModel_$())}}function wi(t,r){if(t&1&&(s(0,"span",26),l(1),o()),t&2){let e=d(2);a(),m(e.llmTokenBrief_$())}}function $i(t,r){if(t&1&&(s(0,"span",27),l(1),o()),t&2){let e=d(2);h("ngClass",at(2,ii,e.llmFinishReason_$()==="stop",e.llmFinishReason_$()!=="stop")),a(),m(e.llmFinishReason_$())}}function ki(t,r){if(t&1&&(s(0,"div",10),p(1,Ii,2,1,"span",24)(2,Ti,2,1,"span",25)(3,wi,2,1,"span",26)(4,$i,2,5,"span",27),o()),t&2){let e=d();a(),c(e.llmProvider_$()?1:-1),a(),c(e.llmModel_$()?2:-1),a(),c(e.llmTokenBrief_$()?3:-1),a(),c(e.llmFinishReason_$()?4:-1)}}function Di(t,r){if(t&1&&(s(0,"span",28),l(1),o()),t&2){let e=d(2);a(),m(e.toolCategory_$())}}function Pi(t,r){if(t&1&&(s(0,"div",29),l(1),o()),t&2){let e=d(2);a(),m(e.toolError_$())}}function Ri(t,r){if(t&1&&(s(0,"div",11),p(1,Di,2,1,"span",28)(2,Pi,2,1,"div",29),o()),t&2){let e=d();a(),c(e.toolCategory_$()?1:-1),a(),c(e.toolError_$()?2:-1)}}function Mi(t,r){if(t&1&&(s(0,"div",30),l(1),o()),t&2){let e=d(2);a(),m(e.errorMessage_$())}}function Li(t,r){if(t&1&&(s(0,"div",12),p(1,Mi,2,1,"div",30),o()),t&2){let e=d();a(),c(e.errorMessage_$()?1:-1)}}function Vi(t,r){t&1&&(s(0,"span",35),l(1,"\xDAj session"),o())}function Fi(t,r){if(t&1&&(s(0,"span",36),l(1),o()),t&2){let e=d(3);a(),b("\u201E",e.stepMessagePreview_$(),'"')}}function Ai(t,r){if(t&1&&(s(0,"div",31),p(1,Vi,2,0,"span",35)(2,Fi,2,1,"span",36),o()),t&2){let e=d(2);a(),c(e.isNewSession_$()?1:-1),a(),c(e.stepMessagePreview_$()?2:-1)}}function zi(t,r){if(t&1&&(s(0,"span",37),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunIntent_$())}}function Oi(t,r){if(t&1&&(s(0,"span",38),l(1),o()),t&2){let e=d(3);a(),m(e.runGoal_$())}}function Bi(t,r){if(t&1&&(s(0,"div",32),p(1,zi,2,1,"span",37)(2,Oi,2,1,"span",38),o()),t&2){let e=d(2);a(),c(e.stepRunIntent_$()?1:-1),a(),c(e.runGoal_$()?2:-1)}}function Ni(t,r){if(t&1&&(s(0,"span",39),l(1),o()),t&2){let e=d(3);a(),m(e.iterationAction_$())}}function Ki(t,r){if(t&1&&(s(0,"div",32)(1,"span",26),l(2),o(),p(3,Ni,2,1,"span",39),o()),t&2){let e=d(2);a(2),b("",e.iterationIndex_$()," iter\xE1ci\xF3"),a(),c(e.iterationAction_$()?3:-1)}}function Ui(t,r){if(t&1&&(s(0,"span",27),l(1),o()),t&2){let e=d(3);h("ngClass",Z(2,oi,e.iterationAction_$()==="TOOL_SELECT",e.iterationAction_$()==="RESULT",e.iterationAction_$()!=="TOOL_SELECT"&&e.iterationAction_$()!=="RESULT")),a(),m(e.iterationAction_$())}}function ji(t,r){if(t&1&&(s(0,"span",41),l(1),o()),t&2){let e=d(3);a(),m(e.iterationTool_$())}}function qi(t,r){if(t&1&&(s(0,"span",42),l(1),o()),t&2){let e=d(3);a(),m(e.iterationIntent_$())}}function Gi(t,r){t&1&&(s(0,"span",43),l(1,"feedback"),o())}function Wi(t,r){if(t&1&&(s(0,"div",33)(1,"span",40),l(2),o(),p(3,Ui,2,6,"span",27)(4,ji,2,1,"span",41)(5,qi,2,1,"span",42)(6,Gi,2,0,"span",43),o()),t&2){let e=d(2);a(2),b("#",e.iterationIndex_$(),""),a(),c(e.iterationAction_$()?3:-1),a(),c(e.iterationTool_$()?4:-1),a(),c(e.iterationIntent_$()?5:-1),a(),c(e.hasAgentFeedback_$()?6:-1)}}function Hi(t,r){if(t&1&&(s(0,"div",44),l(1),o()),t&2){let e=d(3);a(),m(e.finalizationAnswer_$())}}function Qi(t,r){if(t&1&&(s(0,"div",38),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunSummary_$())}}function Xi(t,r){if(t&1&&(s(0,"div",34),p(1,Hi,2,1,"div",44)(2,Qi,2,1,"div",38),o()),t&2){let e=d(2);a(),c(e.finalizationAnswer_$()?1:-1),a(),c(e.stepRunSummary_$()?2:-1)}}function Ji(t,r){if(t&1&&(s(0,"div",44),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunIntent_$())}}function Yi(t,r){if(t&1&&(s(0,"div",38),l(1),o()),t&2){let e=d(3);a(),m(e.stepRunSummary_$())}}function Zi(t,r){if(t&1&&(s(0,"div",34),p(1,Ji,2,1,"div",44)(2,Yi,2,1,"div",38),o()),t&2){let e=d(2);a(),c(e.stepRunIntent_$()?1:-1),a(),c(e.stepRunSummary_$()?2:-1)}}function eo(t,r){if(t&1&&(s(0,"span",38),l(1),o()),t&2){let e=d(3);a(),m(e.iterationIntent_$())}}function to(t,r){if(t&1&&(s(0,"div",31)(1,"span",45),l(2,"elutas\xEDtva"),o(),p(3,eo,2,1,"span",38),o()),t&2){let e=d(2);a(3),c(e.iterationIntent_$()?3:-1)}}function no(t,r){if(t&1&&(s(0,"div",12),p(1,Ai,3,2,"div",31)(2,Bi,3,2,"div",32)(3,Ki,4,2,"div",32)(4,Wi,7,5,"div",33)(5,Xi,3,2,"div",34)(6,Zi,3,2,"div",34)(7,to,4,1,"div",31),o()),t&2){let e=d();a(),c(e.stepType_$()==="run-initialization"?1:e.stepType_$()==="execution-start"?2:e.stepType_$()==="execution-end"?3:e.stepType_$()==="agentic-loop-iteration"?4:e.stepType_$()==="run-finalization"?5:e.stepType_$()==="run-flow-complete"?6:e.stepType_$().includes("rejected")?7:-1)}}function io(t,r){if(t&1&&(s(0,"div",46)(1,"span",25),l(2),o()()),t&2){let e=d(2);a(2),m(e.compactingSizeReduction_$())}}function oo(t,r){if(t&1&&(s(0,"div",12),p(1,io,3,1,"div",46),o()),t&2){let e=d();a(),c(e.compactingSizeReduction_$()?1:-1)}}function so(t,r){if(t&1&&(s(0,"span",57),l(1),o()),t&2){let e=d().$implicit;a(),m(e.provider)}}function ao(t,r){if(t&1&&(s(0,"div",59)(1,"div",60),l(2,"System Prompt "),s(3,"span",63),l(4),o()(),s(5,"pre",64),l(6),o()()),t&2){let e=d(2).$implicit;a(4),b("(",e.payload.systemPromptChars," chars)"),a(2),m(e.payload.systemPrompt)}}function ro(t,r){if(t&1&&(s(0,"div",62)(1,"div",65),l(2),o(),s(3,"pre",66),l(4),o()()),t&2){let e=r.$implicit;a(),h("ngClass",Z(3,ai,e.role==="user",e.role==="assistant",e.role==="system")),a(),m(e.role),a(2),m(e.content)}}function lo(t,r){if(t&1&&(p(0,ao,7,2,"div",59),s(1,"div",60),l(2),o(),s(3,"div",61),k(4,ro,5,7,"div",62,K),o()),t&2){let e=d().$implicit;c(e.payload.systemPrompt?0:-1),a(2),b("Messages (",e.payload.messageCount,")"),a(2),D(e.payload.messages)}}function _o(t,r){if(t&1&&(s(0,"pre",58),l(1),o()),t&2){let e,i=d().$implicit,n=d(2);a(),m((e=i.payload.content)!==null&&e!==void 0?e:n.formatDebugPayload(i.payload))}}function co(t,r){if(t&1&&(s(0,"div",67),l(1),o()),t&2){let e=d(2).$implicit;a(),b("Tool: ",e.payload.toolId,"")}}function po(t,r){if(t&1&&(p(0,co,2,1,"div",67),s(1,"pre",58),l(2),o()),t&2){let e,i=d().$implicit,n=d(2);c(i.payload.toolId?0:-1),a(2),m((e=i.payload.content)!==null&&e!==void 0?e:n.formatDebugPayload(i.payload))}}function uo(t,r){if(t&1&&(s(0,"div",68),l(1),o()),t&2){let e=d(2).$implicit;a(),m(e.payload.message)}}function mo(t,r){if(t&1&&(s(0,"pre",64),l(1),o()),t&2){let e=d(2).$implicit,i=d(2);a(),m(i.formatDebugPayload(e.payload.details))}}function xo(t,r){if(t&1&&p(0,uo,2,1,"div",68)(1,mo,2,1,"pre",64),t&2){let e=d().$implicit;c(e.payload.message?0:-1),a(),c(e.payload.details?1:-1)}}function fo(t,r){if(t&1&&(s(0,"pre",58),l(1),o()),t&2){let e,i=d().$implicit,n=d(2);a(),m((e=i.payload.content)!==null&&e!==void 0?e:n.formatDebugPayload(i.payload))}}function Co(t,r){if(t&1&&(s(0,"div",54)(1,"div",55)(2,"span",56),l(3),o(),s(4,"span",40),l(5),o(),p(6,so,2,1,"span",57),o(),p(7,lo,6,2)(8,_o,2,1,"pre",58)(9,po,3,2,"pre",58)(10,xo,2,2)(11,fo,2,1,"pre",58),o()),t&2){let e=r.$implicit;a(2),h("ngClass",ye(5,si,e.eventKind==="prompt",e.eventKind==="result",e.eventKind==="tool-result",e.eventKind==="agent-think",e.eventKind==="error")),a(),m(e.eventKind),a(2),m(e.callTag),a(),c(e.provider?6:-1),a(),c(e.eventKind==="prompt"&&e.payload.messages?7:e.eventKind==="result"?8:e.eventKind==="tool-result"?9:e.eventKind==="error"?10:11)}}function So(t,r){if(t&1){let e=y();s(0,"div",47),C("click",function(){x(e);let n=d();return f(n.closeDebugPopup())}),g(1,"div",48),s(2,"div",49),C("click",function(n){return x(e),f(n.stopPropagation())}),s(3,"div",50)(4,"h4",51),l(5,"Debug Log Trace"),o(),s(6,"button",52),C("click",function(){x(e);let n=d();return f(n.closeDebugPopup())}),l(7,"X"),o()(),s(8,"div",53),k(9,Co,12,11,"div",54,ti),o()()()}if(t&2){let e=d();a(9),D(e.matchedDebugEntries_$())}}var Gt=(()=>{class t{event=V.required();debugTraceEntries=V([]);itemClick=new B;emoji_$=S(()=>Y.getEmoji(this.event()));borderClasses_$=S(()=>Y.getBubbleClasses(this.event()));label_$=S(()=>Y.getStepLabel(this.event()));category_$=S(()=>{let e=this.event();return e.eventType==="llm-call"?"llm":e.eventType==="tool-call"?"tool":e.eventType==="error"?"error":e.eventType==="step"?"step":"generic"});durationLabel_$=S(()=>{let e=this.event().durationMs;return e?e>=1e3?`${(e/1e3).toFixed(1)}s`:`${e}ms`:""});status_$=S(()=>this.event().status??"");llmCallType_$=S(()=>{let i=(this.event().data??{}).callType;return typeof i=="string"?Y.formatStepId(i):""});llmModel_$=S(()=>{let i=(this.event().data??{}).model;return typeof i=="string"?i:""});toolId_$=S(()=>{let i=(this.event().data??{}).toolId;return typeof i=="string"?i:""});errorMessage_$=S(()=>{let e=this.event().data??{},i=e.message??e.error;return typeof i=="string"?i.length>120?i.substring(0,120)+"\u2026":i:""});sizeLabel_$=S(()=>{let e=this.event(),i=[];return e.inputSize&&i.push(`in: ${e.inputSize}`),e.outputSize&&i.push(`out: ${e.outputSize}`),i.join(" / ")});llmTokenBrief_$=S(()=>{let e=this.event().data??{},i=e.promptTokens,n=e.completionTokens;return typeof i=="number"&&typeof n=="number"?`${i} \u2192 ${n} tokens`:""});llmFinishReason_$=S(()=>{let i=(this.event().data??{}).finishReason;return typeof i=="string"?i:""});llmProvider_$=S(()=>{let i=(this.event().data??{}).provider;return typeof i=="string"?i:""});stepType_$=S(()=>{let i=(this.event().data??{}).step;return typeof i=="string"?i:""});stepMessagePreview_$=S(()=>{let i=(this.event().data??{}).messagePreview;return typeof i=="string"?i.length>80?i.substring(0,80)+"\u2026":i:""});stepRunIntent_$=S(()=>{let i=(this.event().data??{}).runIntent;return typeof i=="string"?i:""});stepRunSummary_$=S(()=>{let i=(this.event().data??{}).runSummary;return typeof i=="string"?i.length>120?i.substring(0,120)+"\u2026":i:""});toolError_$=S(()=>{let i=(this.event().data??{}).error;return typeof i=="string"&&i.length>0?i.length>100?i.substring(0,100)+"\u2026":i:""});toolCategory_$=S(()=>{let i=(this.event().data??{}).toolCategory;return typeof i=="string"?i:""});iterationAction_$=S(()=>{let i=(this.event().data??{}).action;return typeof i=="string"?i:""});iterationIntent_$=S(()=>{let i=(this.event().data??{}).intent;return typeof i=="string"?i.length>80?i.substring(0,80)+"\u2026":i:""});iterationTool_$=S(()=>{let e=this.event().data??{},i=e.tool??e.toolGroup;return typeof i=="string"?i:""});iterationIndex_$=S(()=>{let i=(this.event().data??{}).iteration;return typeof i=="number"?i:0});isNewSession_$=S(()=>(this.event().data??{}).isNewSession===!0);runGoal_$=S(()=>{let i=(this.event().data??{}).runGoal;return typeof i=="string"?i.length>100?i.substring(0,100)+"\u2026":i:""});hasAgentFeedback_$=S(()=>(this.event().data??{}).hasAgentFeedback===!0);finalizationAnswer_$=S(()=>{let i=(this.event().data??{}).result;if(typeof i=="object"&&i!==null){let n=i.answerToUser;if(typeof n=="string")return n.length>120?n.substring(0,120)+"\u2026":n}return""});compactingSizeReduction_$=S(()=>{let e=this.event().data??{},i=e.initialSize,n=e.finalSize;if(typeof i=="number"&&typeof n=="number"){let _=i-n;return`${i} \u2192 ${n} chars (\u2212${_})`}return""});matchedDebugEntries_$=S(()=>{let e=this.debugTraceEntries();if(!e.length)return[];let i=this.event(),n=i.data??{};if(i.eventType==="llm-call"){let _=typeof n.llmTag=="string"?n.llmTag:"";return _?e.filter(u=>u.callTag===_):[]}if(i.eventType==="tool-call"){let _=typeof n.toolId=="string"?n.toolId:"";return _?e.filter(u=>u.eventKind==="tool-result"&&typeof u.payload?.toolId=="string"&&u.payload.toolId===_):[]}if(i.eventType==="step"){let _=typeof n.step=="string"?n.step:"";if(_.includes("error")||_.includes("hallucination"))return e.filter(u=>u.eventKind==="error");if(_.includes("loop-debrief")||_.includes("agentic-loop"))return e.filter(u=>u.eventKind==="agent-think")}return[]});hasDebugEntries_$=S(()=>this.matchedDebugEntries_$().length>0);debugPopupOpen_$=E(!1);handleClick(){this.itemClick.emit(this.event())}toggleDebugPopup(){this.debugPopupOpen_$.update(e=>!e)}closeDebugPopup(){this.debugPopupOpen_$.set(!1)}formatDebugPayload(e){return e?JSON.stringify(e,null,2):""}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-event-list-item"]],inputs:{event:[1,"event"],debugTraceEntries:[1,"debugTraceEntries"]},outputs:{itemClick:"itemClick"},decls:24,vars:13,consts:[[1,"rounded-md","overflow-hidden",3,"ngClass"],[1,"flex","items-start"],[1,"flex-1","min-w-0","text-left","px-2.5","py-1.5","text-xs","hover:brightness-125","transition-colors","cursor-pointer","flex","items-start","gap-2",3,"click"],[1,"shrink-0","text-sm","leading-none","mt-0.5"],[1,"flex-1","min-w-0"],[1,"shrink-0","flex","flex-col","items-end","gap-0","mt-0.5"],[1,"text-[10px]","opacity-50"],[1,"text-[10px]","text-neutral-400","whitespace-nowrap",3,"title"],["title","Debug Log Trace",1,"shrink-0","px-1.5","py-1.5","text-purple-400","hover:text-purple-200","hover:bg-purple-500/10","transition-colors"],[1,"px-2.5","pb-1.5","text-[10px]","leading-relaxed","border-t","border-white/5"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5","pt-1","text-purple-300/80"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5","pt-1"],[1,"pt-1"],[1,"fixed","inset-0","z-[100]","flex","items-center","justify-center"],[1,"font-medium"],[1,"flex","flex-wrap","gap-x-3","gap-y-0.5","mt-0.5","text-[10px]","opacity-75"],[1,"font-semibold",3,"ngClass"],[1,"mt-0.5","text-[10px]","opacity-75","truncate"],["title","Debug Log Trace",1,"shrink-0","px-1.5","py-1.5","text-purple-400","hover:text-purple-200","hover:bg-purple-500/10","transition-colors",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3.5","h-3.5"],["d","M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"],["points","14 2 14 8 20 8"],["x1","16","y1","13","x2","8","y2","13"],["x1","16","y1","17","x2","8","y2","17"],[1,"px-1","py-0.5","rounded","bg-purple-500/10","text-purple-300","font-mono"],[1,"font-mono"],[1,"text-neutral-400"],[1,"px-1","py-0.5","rounded","text-[9px]",3,"ngClass"],[1,"px-1","py-0.5","rounded","bg-amber-500/10","text-amber-300","text-[9px]","font-mono"],[1,"text-red-300/80","truncate","flex-1","min-w-0"],[1,"text-red-300/80","bg-red-500/5","rounded","px-1.5","py-0.5","whitespace-pre-wrap"],[1,"flex","items-center","gap-2"],[1,"flex","flex-wrap","items-center","gap-x-2","gap-y-0.5"],[1,"flex","flex-wrap","items-center","gap-x-1.5","gap-y-0.5"],[1,"flex","flex-col","gap-0.5"],[1,"px-1","py-0.5","rounded","bg-green-500/10","text-green-400","text-[9px]"],[1,"text-neutral-400","truncate","flex-1","min-w-0"],[1,"text-neutral-300","truncate"],[1,"text-neutral-500","truncate"],[1,"px-1","py-0.5","rounded","bg-blue-500/10","text-blue-300","text-[9px]"],[1,"text-neutral-500","font-mono"],[1,"text-amber-300/70","font-mono"],[1,"text-neutral-500","truncate","flex-1","min-w-0"],[1,"px-1","py-0.5","rounded","bg-cyan-500/10","text-cyan-400","text-[9px]"],[1,"text-neutral-400","truncate"],[1,"px-1","py-0.5","rounded","bg-amber-500/10","text-amber-400","text-[9px]"],[1,"flex","items-center","gap-2","text-teal-300/70"],[1,"fixed","inset-0","z-[100]","flex","items-center","justify-center",3,"click"],["aria-hidden","true",1,"absolute","inset-0","bg-black/50"],[1,"relative","z-10","w-[640px]","max-w-[90vw]","max-h-[80vh]","bg-[#121220]","border","border-purple-500/40","rounded-lg","p-4","overflow-y-auto","shadow-2xl",2,"max-height","80dvh",3,"click"],[1,"flex","justify-between","items-center","mb-3"],[1,"text-sm","font-bold","text-purple-300"],[1,"px-2","py-1","border","border-neonCyan","rounded","bg-transparent","text-neutral-200","cursor-pointer","hover:bg-neutral-800",3,"click"],[1,"flex","flex-col","gap-3"],[1,"bg-[#0a0a15]","border","border-neonDefault","rounded-md","p-3"],[1,"flex","items-center","gap-2","mb-2","text-[11px]"],[1,"px-1.5","py-0.5","rounded","text-[10px]","font-semibold",3,"ngClass"],[1,"text-neutral-600","text-[10px]"],[1,"text-[11px]","text-neutral-300","bg-[#080812]","rounded","p-2","max-h-[300px]","overflow-y-auto","whitespace-pre-wrap","break-words"],[1,"mb-2"],[1,"text-[10px]","text-neutral-500","uppercase","mb-1"],[1,"flex","flex-col","gap-1.5"],[1,"bg-[#080812]","rounded","p-2"],[1,"text-neutral-600"],[1,"text-[11px]","text-neutral-300","bg-[#080812]","rounded","p-2","max-h-[200px]","overflow-y-auto","whitespace-pre-wrap","break-words"],[1,"text-[10px]","font-bold","mb-0.5",3,"ngClass"],[1,"text-[11px]","text-neutral-300","whitespace-pre-wrap","break-words","max-h-[150px]","overflow-y-auto"],[1,"text-[10px]","text-yellow-400","mb-1"],[1,"text-red-300","text-xs","mb-1"]],template:function(i,n){if(i&1&&(s(0,"div",0)(1,"div",1)(2,"button",2),C("click",function(){return n.handleClick()}),p(3,ri,2,1,"span",3),s(4,"div",4),p(5,ci,6,4)(6,mi,5,3)(7,fi,3,1)(8,hi,5,3)(9,yi,5,3),o(),s(10,"div",5),p(11,bi,2,1,"span",6),s(12,"span",7),H(13,"sAbsoluteTime"),l(14),H(15,"sTimeAgo"),o()()(),p(16,Ei,6,0,"button",8),o(),s(17,"div",9),p(18,ki,5,4,"div",10)(19,Ri,3,2,"div",11)(20,Li,2,1,"div",12)(21,no,8,1,"div",12)(22,oo,2,1,"div",12),o()(),p(23,So,11,0,"div",13)),i&2){let _,u,v;h("ngClass",n.borderClasses_$()),a(3),c((_=n.emoji_$())?3:-1,_),a(2),c((u=n.category_$())==="llm"?5:u==="tool"?6:u==="error"?7:u==="step"?8:9),a(6),c(n.durationLabel_$()?11:-1),a(),h("title",te(13,9,n.event().timestamp)),a(2),m(te(15,11,n.event().timestamp)),a(2),c(n.hasDebugEntries_$()?16:-1),a(2),c((v=n.category_$())==="llm"?18:v==="tool"?19:v==="error"?20:v==="step"?21:22),a(5),c(n.debugPopupOpen_$()?23:-1)}},dependencies:[U,Lt,Vt],styles:[`[_nghost-%COMP%]{display:block}
2
2
  /*# sourceMappingURL=ses-event-list-item.component-V2DYY2EA.css.map */`]})}return t})();var Wt=(t,r)=>r.trackKey;function vo(t,r){if(t&1){let e=y();s(0,"div",2)(1,"button",4),C("click",function(){let n=x(e).$implicit,_=d(2);return f(_.onBubbleClick(n.event))}),o(),s(2,"div",5),l(3),o()()}if(t&2){let e=r.$implicit,i=d(2);a(),h("ngClass",i.getDotClasses(e.event)),a(2),b(" ",i.getDotTooltip(e.event)," ")}}function go(t,r){t&1&&(s(0,"span",3),l(1,"Nincs l\xE9p\xE9s."),o())}function yo(t,r){if(t&1&&(s(0,"div",0),k(1,vo,4,2,"div",2,Wt),p(3,go,2,0,"span",3),o()),t&2){let e=d();a(),D(e.traceRows),a(2),c(e.traceRows.length?-1:3)}}function bo(t,r){if(t&1){let e=y();s(0,"app-ccap-event-list-item",7),C("itemClick",function(){let n=x(e).$implicit,_=d(2);return f(_.onBubbleClick(n.event))}),o()}if(t&2){let e=r.$implicit,i=d(2);h("event",e.event)("debugTraceEntries",i.debugTraceEntries)}}function Eo(t,r){t&1&&(s(0,"span",3),l(1,"Nincs l\xE9p\xE9s."),o())}function Io(t,r){if(t&1&&(s(0,"div",1),k(1,bo,1,2,"app-ccap-event-list-item",6,Wt),p(3,Eo,2,0,"span",3),o()),t&2){let e=d();a(),D(e.traceRows),a(2),c(e.traceRows.length?-1:3)}}var Xe=(()=>{class t{trace=[];mode="dots";debugTraceEntries=[];traceRows=[];eventSelected=new B;ngOnChanges(e){e.trace&&this.rebuildTraceRows()}rebuildTraceRows(){let e=this.trace??[];this.traceRows=e.map((i,n)=>({trackKey:`${n}-${i.timestamp.valueOf()}-${i.eventType}`,event:i}))}onBubbleClick(e){this.eventSelected.emit(e)}getDotClasses(e){return Y.getDotClasses(e)}getDotTooltip(e){return Y.getStepLabel(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-run-flow-viz"]],inputs:{trace:"trace",mode:"mode",debugTraceEntries:"debugTraceEntries"},outputs:{eventSelected:"eventSelected"},features:[Q],decls:2,vars:1,consts:[[1,"flex","flex-wrap","items-center","gap-1","py-1"],[1,"flex","flex-col","gap-1","py-1"],[1,"relative","group"],[1,"text-neutral-500","text-xs"],[1,"w-2.5","h-2.5","rounded-full","shrink-0","hover:scale-150","transition-transform","cursor-pointer",3,"click","ngClass"],[1,"absolute","bottom-full","left-1/2","-translate-x-1/2","mb-1.5","hidden","group-hover:block","px-1.5","py-0.5","bg-neutral-900","border","border-neutral-700","text-neutral-200","text-[10px]","rounded","whitespace-nowrap","z-20","pointer-events-none","shadow-lg"],[3,"event","debugTraceEntries"],[3,"itemClick","event","debugTraceEntries"]],template:function(i,n){i&1&&p(0,yo,4,1,"div",0)(1,Io,4,1,"div",1),i&2&&c(n.mode==="dots"?0:1)},dependencies:[U,Gt],styles:[`[_nghost-%COMP%]{display:block}
3
3
  /*# sourceMappingURL=ses-run-flow-viz.component-TESSY722.css.map */`]})}return t})();function To(t,r){if(t&1){let e=y();s(0,"button",8),C("click",function(){x(e);let n=d();return f(n.toggleVizMode())}),l(1),o()}if(t&2){let e=d();h("title",e.vizMode_$()==="dots"?"R\xE9szletes n\xE9zet":"Kompakt n\xE9zet"),a(),b(" ",e.vizMode_$()==="dots"?"\u22EF \u2192 \u2630":"\u2630 \u2192 \u22EF"," ")}}function wo(t,r){t&1&&(s(0,"div",9),g(1,"span",12),l(2," Event history bet\xF6lt\xE9se\u2026 "),o())}function $o(t,r){if(t&1){let e=y();s(0,"app-ccap-run-flow-viz",13),C("eventSelected",function(n){x(e);let _=d(2);return f(_.onFlowEventSelected(n))}),o()}if(t&2){let e=d(2);h("trace",e.runTrace_$())("mode",e.vizMode_$())("debugTraceEntries",e.debugTraceEntries_$())}}function ko(t,r){t&1&&(s(0,"p",11),l(1," A h\xE1tt\xE9r-l\xE9p\xE9slista bet\xF6lt\xE9se sikertelen (kapcsolat vagy szerver hiba). Pr\xF3b\xE1ld \xFAjra k\xE9s\u0151bb; ha a fut\xE1s m\xE9g fut, \xE9l\u0151 monitoring event-ek m\xE9g megjelenhetnek. "),o())}function Do(t,r){t&1&&(s(0,"p",11),l(1," Ehhez a v\xE1laszhoz nincs megjelen\xEDthet\u0151 h\xE1tt\xE9r-l\xE9p\xE9slista. R\xE9gi \xFCzenetekn\xE9l ez norm\xE1lis (a l\xE9p\xE9sek napl\xF3z\xE1sa k\xE9s\u0151bb ker\xFClt perzisztens t\xE1rol\xF3ba); \xFAj fut\xE1sokn\xE1l p\xE1r m\xE1sodperc m\xFAlva \xE9rdemes \xFAjra lenyitni, ha az els\u0151 bet\xF6lt\xE9s \xFCres volt. "),o())}function Po(t,r){if(t&1&&(s(0,"div",6),p(1,wo,3,0,"div",9)(2,$o,1,3,"app-ccap-run-flow-viz",10)(3,ko,2,0,"p",11)(4,Do,2,0,"p",11),o()),t&2){let e=d();a(),c(e.runTraceLoading_$()?1:e.runTrace_$().length?2:e.runTraceHttpFailed_$()?3:4)}}function Ro(t,r){if(t&1){let e=y();s(0,"div",14),C("click",function(){x(e);let n=d();return f(n.closeTracePopup())}),g(1,"div",15),s(2,"div",16),C("click",function(n){return x(e),f(n.stopPropagation())}),s(3,"app-ccap-trace-detail",17),C("close",function(){x(e);let n=d();return f(n.closeTracePopup())}),o()()()}if(t&2){let e=d();a(3),h("event",r)("debugTraceEntries",e.debugTraceEntries_$())}}var Qt=(()=>{class t{sessionId=V("");runId=V("");autoExpand=V(!1);expanded_$=E(!1);vizMode_$=E(t.loadVizMode());static VIZ_MODE_STORAGE_KEY="ccap-run-trace-viz-mode";static loadVizMode(){let e=O.readString(t.VIZ_MODE_STORAGE_KEY);return e==="dots"||e==="list"?e:"dots"}static saveVizMode(e){O.writeString(t.VIZ_MODE_STORAGE_KEY,e)}runTrace_$=E([]);runTraceLoading_$=E(!1);runTraceLoaded_$=E(!1);runTraceHttpFailed_$=E(!1);runTraceError_$=E(!1);debugTraceEntries_$=E([]);selectedEventForPopup_$=E(null);monitoring_DS=I(Se);session_DS=I(F);destroyRef=I(Ct);traceLiveEffectRef=null;constructor(){this.traceLiveEffectRef=M(()=>{let e=this.monitoring_DS.events_$();if(!this.expanded_$()||!this.runTraceLoaded_$())return;let i=this.sessionId().trim(),n=this.runId().trim();if(!i||!n)return;e.length;let _=this.monitoring_DS.buildMergedRunTrace(i,n);this.runTrace_$.set(_),this.runTraceError_$.set(_.length===0)},{allowSignalWrites:!0}),this.destroyRef.onDestroy(()=>{this.traceLiveEffectRef&&(this.traceLiveEffectRef.destroy(),this.traceLiveEffectRef=null)})}ngOnInit(){if(this.autoExpand()){this.expanded_$.set(!0);let e=this.sessionId().trim(),i=this.runId().trim();e&&i&&this.loadRunTrace()}}toggleExpanded(){this.expanded_$.update(n=>!n);let e=this.sessionId().trim(),i=this.runId().trim();this.expanded_$()&&i.length>0&&e.length>0&&!this.runTraceLoaded_$()&&this.loadRunTrace()}toggleVizMode(){let e=this.vizMode_$()==="dots"?"list":"dots";this.vizMode_$.set(e),t.saveVizMode(e)}onFlowEventSelected(e){this.selectedEventForPopup_$.set(e)}closeTracePopup(){this.selectedEventForPopup_$.set(null)}loadRunTrace(){return $(this,null,function*(){let e=this.sessionId().trim(),i=this.runId().trim();if(!e||!i)return;this.runTraceLoading_$.set(!0),this.runTraceError_$.set(!1),this.runTraceHttpFailed_$.set(!1);let n=this.monitoring_DS.getOrLoadRunTrace(e,i).catch(()=>(this.runTraceHttpFailed_$.set(!0),this.monitoring_DS.buildMergedRunTrace(e,i))),_=this.session_DS.fetchLlmDebugTraceEntriesForRun({sessionId:e,runId:i});try{let[u,v]=yield Promise.all([n,_]);this.runTrace_$.set(u),this.runTraceLoaded_$.set(!0),this.runTraceError_$.set(u.length===0),this.debugTraceEntries_$.set(v)}finally{this.runTraceLoading_$.set(!1)}})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-run-trace-block"]],inputs:{sessionId:[1,"sessionId"],runId:[1,"runId"],autoExpand:[1,"autoExpand"]},decls:9,vars:5,consts:[[1,"self-start","w-full","mb-1"],[1,"flex","items-center","gap-1.5"],[1,"text-xs","text-neutral-400","hover:text-ccapAccent","px-1","py-0.5","flex","items-center","gap-1",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3","h-3","shrink-0","transition-transform","duration-150"],["points","6 9 12 15 18 9"],[1,"text-[10px]","text-neutral-500","hover:text-ccapAccent","px-1","py-0.5","border","border-neutral-700","rounded","transition-colors",3,"title"],[1,"mt-1","pl-2","border-l-2","border-neonDefault","space-y-1"],[1,"fixed","inset-0","z-[100]","flex","items-center","justify-center"],[1,"text-[10px]","text-neutral-500","hover:text-ccapAccent","px-1","py-0.5","border","border-neutral-700","rounded","transition-colors",3,"click","title"],[1,"flex","items-center","gap-2","text-neutral-500","text-xs","py-2"],[3,"trace","mode","debugTraceEntries"],[1,"text-amber-200/90","text-xs"],[1,"inline-block","w-2","h-2","rounded-full","bg-ccapAccent","animate-pulse"],[3,"eventSelected","trace","mode","debugTraceEntries"],[1,"fixed","inset-0","z-[100]","flex","items-center","justify-center",3,"click"],["aria-hidden","true",1,"absolute","inset-0","bg-black/50"],[1,"relative","z-10",3,"click"],[3,"close","event","debugTraceEntries"]],template:function(i,n){if(i&1&&(s(0,"div",0)(1,"div",1)(2,"button",2),C("click",function(){return n.toggleExpanded()}),A(),s(3,"svg",3),g(4,"polyline",4),o(),l(5," H\xE1tt\xE9rfolyamatok "),o(),p(6,To,2,2,"button",5),o(),p(7,Po,5,1,"div",6),o(),p(8,Ro,4,2,"div",7)),i&2){let _;a(3),W("-rotate-90",!n.expanded_$()),a(3),c(n.expanded_$()&&n.runTrace_$().length?6:-1),a(),c(n.expanded_$()?7:-1),a(),c((_=n.selectedEventForPopup_$())?8:-1,_)}},dependencies:[he,Xe],styles:[`[_nghost-%COMP%]{display:block}
4
4
  /*# sourceMappingURL=ses-run-trace-block.component-WZCP2PP4.css.map */`]})}return t})();var Lo=(t,r)=>r.id;function Vo(t,r){if(t&1&&(s(0,"p",3),l(1),o()),t&2){let e=d(2);a(),m(e.request.description)}}function Fo(t,r){t&1&&(s(0,"div",4),A(),s(1,"svg",6),g(2,"path",7),o(),ce(),s(3,"span"),l(4,"Response sent"),o()())}function Ao(t,r){if(t&1&&(s(0,"p",11),l(1),o()),t&2){let e=d(4);a(),m(e.request.confirmMessage)}}function zo(t,r){if(t&1){let e=y();p(0,Ao,2,1,"p",11),s(1,"div",8)(2,"button",12),C("click",function(){x(e);let n=d(3);return f(n.handleConfirm(!0))}),l(3," Yes "),o(),s(4,"button",13),C("click",function(){x(e);let n=d(3);return f(n.handleConfirm(!1))}),l(5," No "),o()()}if(t&2){let e=d(3);c(e.request.confirmMessage?0:-1)}}function Oo(t,r){if(t&1&&(s(0,"span",19),l(1),o()),t&2){let e=d().$implicit;a(),m(e.description)}}function Bo(t,r){if(t&1){let e=y();s(0,"button",17),C("click",function(){let n=x(e).$implicit,_=d(4);return f(_.selectOption(n.id))}),s(1,"span",18),l(2),o(),p(3,Oo,2,1,"span",19),o()}if(t&2){let e=r.$implicit,i=d(4);N(i.selectedOptionId_$()===e.id?"border-neonCyan bg-neonCyan/10 text-neonCyan":"border-neutral-600 text-neutral-300 hover:border-neutral-400"),a(2),m(e.label),a(),c(e.description?3:-1)}}function No(t,r){if(t&1){let e=y();s(0,"div",14),k(1,Bo,4,4,"button",15,Lo),o(),s(3,"button",16),C("click",function(){x(e);let n=d(3);return f(n.handleOptionSelect())}),l(4," Select "),o()}if(t&2){let e=d(3);a(),D(e.request.options),a(2),N(e.selectedOptionId_$()?"bg-ccapAccent text-white hover:bg-ccapAccentHover cursor-pointer":"bg-neutral-700 text-neutral-500 cursor-not-allowed"),h("disabled",!e.selectedOptionId_$())}}function Ko(t,r){if(t&1){let e=y();s(0,"textarea",20),ot("ngModelChange",function(n){x(e);let _=d(3);return it(_.textResponse,n)||(_.textResponse=n),f(n)}),o(),s(1,"button",16),C("click",function(){x(e);let n=d(3);return f(n.handleQuestionSubmit())}),l(2," Submit "),o()}if(t&2){let e=d(3);h("placeholder",e.request.textPlaceholder||"Type your answer..."),nt("ngModel",e.textResponse),a(),N(e.textResponse.trim()?"bg-ccapAccent text-white hover:bg-ccapAccentHover cursor-pointer":"bg-neutral-700 text-neutral-500 cursor-not-allowed"),h("disabled",!e.textResponse.trim())}}function Uo(t,r){if(t&1){let e=y();s(0,"textarea",21),ot("ngModelChange",function(n){x(e);let _=d(3);return it(_.textResponse,n)||(_.textResponse=n),f(n)}),o()}if(t&2){let e=d(3);h("placeholder",e.request.textPlaceholder||"Additional comment (optional)..."),nt("ngModel",e.textResponse)}}function jo(t,r){if(t&1){let e=y();p(0,zo,6,1,"div",8)(1,No,5,3)(2,Ko,3,5)(3,Uo,1,2,"textarea",9),s(4,"div",5)(5,"button",10),C("click",function(){x(e);let n=d(2);return f(n.handleDismiss())}),l(6," Skip "),o()()}if(t&2){let e=d(2);c(e.isConfirm?0:-1),a(),c(e.isOptionSelect&&e.request.options?1:-1),a(),c(e.isQuestion?2:-1),a(),c(!e.isQuestion&&e.request.allowTextResponse?3:-1)}}function qo(t,r){if(t&1&&(s(0,"div",0)(1,"div",1)(2,"h4",2),l(3),o(),p(4,Vo,2,1,"p",3),o(),p(5,Fo,5,0,"div",4)(6,jo,7,4,"div",5),o()),t&2){let e=d();a(3),m(e.request.title),a(),c(e.request.description?4:-1),a(),c(e.isSubmitted_$()?5:6)}}var Xt=(()=>{class t{request=null;responded=new B;selectedOptionId_$=E("");textResponse="";isSubmitted_$=E(!1);handleConfirm(e){if(this.isSubmitted_$()||!this.request)return;this.isSubmitted_$.set(!0);let i={interactionId:this.request.interactionId,sessionId:this.request.sessionId,confirmed:e};this.request.allowTextResponse&&this.textResponse.trim()&&(i.textResponse=this.textResponse.trim()),this.responded.emit(i)}handleOptionSelect(){if(this.isSubmitted_$()||!this.request)return;let e=this.selectedOptionId_$();if(!e)return;this.isSubmitted_$.set(!0);let i={interactionId:this.request.interactionId,sessionId:this.request.sessionId,selectedOptionId:e};this.request.allowTextResponse&&this.textResponse.trim()&&(i.textResponse=this.textResponse.trim()),this.responded.emit(i)}handleQuestionSubmit(){if(this.isSubmitted_$()||!this.request)return;let e=this.textResponse.trim();if(!e)return;this.isSubmitted_$.set(!0);let i={interactionId:this.request.interactionId,sessionId:this.request.sessionId,textResponse:e};this.responded.emit(i)}handleDismiss(){if(this.isSubmitted_$()||!this.request)return;this.isSubmitted_$.set(!0);let e={interactionId:this.request.interactionId,sessionId:this.request.sessionId,isDismissed:!0};this.responded.emit(e)}selectOption(e){this.selectedOptionId_$.set(e)}get isConfirm(){return this.request?.type===Me.confirm}get isOptionSelect(){return this.request?.type===Me.optionSelect}get isQuestion(){return this.request?.type===Me.question}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-user-interaction-card"]],inputs:{request:"request"},outputs:{responded:"responded"},decls:1,vars:1,consts:[[1,"w-full","max-w-lg","rounded-lg","border","border-neonCyan","bg-neutral-900/80","p-4","shadow-neon-glow-cyan"],[1,"mb-3"],[1,"text-sm","font-semibold","text-neonCyan"],[1,"mt-1","text-xs","text-neutral-400","leading-relaxed"],[1,"flex","items-center","gap-2","text-neutral-400","text-xs","py-2"],[1,"mt-3","flex","justify-end"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4","text-green-400"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M5 13l4 4L19 7"],[1,"flex","gap-2"],["rows","2",1,"w-full","mt-3","px-3","py-2","border","border-neutral-600","rounded-md","bg-ccapSurface","text-neutral-100","text-sm","outline-none","resize-none","focus:border-neonCyan","focus:shadow-neon-glow-cyan","min-h-[2.5rem]","max-h-[100px]",3,"placeholder","ngModel"],["type","button",1,"text-xs","text-neutral-500","hover:text-neutral-300","transition-colors",3,"click"],[1,"text-sm","text-neutral-200","mb-3"],["type","button",1,"flex-1","px-4","py-2","rounded-md","border","border-green-500/60","text-green-400","text-sm","font-medium","hover:bg-green-500/10","transition-colors",3,"click"],["type","button",1,"flex-1","px-4","py-2","rounded-md","border","border-red-500/60","text-red-400","text-sm","font-medium","hover:bg-red-500/10","transition-colors",3,"click"],[1,"flex","flex-col","gap-1.5","mb-3"],["type","button",1,"w-full","text-left","px-3","py-2","rounded-md","border","text-sm","transition-colors",3,"class"],["type","button",1,"w-full","px-4","py-2","rounded-md","text-sm","font-medium","transition-colors",3,"click","disabled"],["type","button",1,"w-full","text-left","px-3","py-2","rounded-md","border","text-sm","transition-colors",3,"click"],[1,"font-medium"],[1,"block","text-xs","text-neutral-500","mt-0.5"],["rows","3",1,"w-full","px-3","py-2","border","border-neutral-600","rounded-md","bg-ccapSurface","text-neutral-100","text-sm","outline-none","resize-none","focus:border-neonCyan","focus:shadow-neon-glow-cyan","min-h-[3.5rem]","max-h-[150px]","mb-2",3,"ngModelChange","placeholder","ngModel"],["rows","2",1,"w-full","mt-3","px-3","py-2","border","border-neutral-600","rounded-md","bg-ccapSurface","text-neutral-100","text-sm","outline-none","resize-none","focus:border-neonCyan","focus:shadow-neon-glow-cyan","min-h-[2.5rem]","max-h-[100px]",3,"ngModelChange","placeholder","ngModel"]],template:function(i,n){i&1&&p(0,qo,7,3,"div",0),i&2&&c(n.request?0:-1)},dependencies:[Te,we,$e],encapsulation:2})}return t})();var Wo=["scrollAnchor"],Ho=["topSentinel"],Qo=(t,r)=>r.msg.clientListKey,Xo=(t,r,e,i)=>({"border-neonCyan/40 bg-neonCyan/5 text-neonCyan":t,"border-amber-500/40 bg-amber-500/5 text-amber-400":r,"border-green-500/40 bg-green-500/5 text-green-400":e,"border-red-500/40 bg-red-500/5 text-red-400":i});function Jo(t,r){if(t&1){let e=y();s(0,"div",4)(1,"span"),l(2),o(),s(3,"button",30),C("click",function(){x(e);let n=d();return f(n.handleCloseArchive())}),l(4," Vissza az akt\xEDv \xFCzenetekhez "),o()()}if(t&2){let e=d();a(2),b("\u{1F4E6} Arch\xEDv n\xE9zet \u2014 ",e.session_DS.chunkState_$().archivedTotal," archiv\xE1lt \xFCzenet")}}function Yo(t,r){if(t&1){let e=y();s(0,"div",5)(1,"button",31),C("click",function(){x(e);let n=d();return f(n.handleOpenArchive())}),l(2),o()()}if(t&2){let e=d();a(2),b(" \u{1F4E6} Arch\xEDv szakasz megnyit\xE1sa (",e.session_DS.chunkState_$().archivedTotal," \xFCzenet) ")}}function Zo(t,r){t&1&&(s(0,"div",6),l(1," R\xE9gebbi \xFCzenetek bet\xF6lt\xE9se\u2026 "),o())}function es(t,r){t&1&&l(0," \u2014 Az arch\xEDvum eleje \u2014 ")}function ts(t,r){t&1&&l(0," \u2014 A besz\xE9lget\xE9s eleje \u2014 ")}function ns(t,r){if(t&1&&(s(0,"div",7),p(1,es,1,0)(2,ts,1,0),o()),t&2){let e=d();a(),c(e.session_DS.currentArchiveScope_$()==="archive"?1:2)}}function is(t,r){if(t&1&&g(0,"app-ccap-run-trace-block",32),t&2){let e,i,n=d().$implicit,_=d();h("sessionId",_.sessionId)("runId",(e=n.msg.runId)!==null&&e!==void 0?e:"")("autoExpand",((i=n.msg.runId)!==null&&i!==void 0?i:"").trim()===_.lastAssistantRunId_$())}}function os(t,r){if(t&1){let e=y();s(0,"button",36),C("click",function(){x(e);let n=d().$implicit,_=d();return f(_.handleForkFromHereClick(n.msg.messageKey))}),A(),s(1,"svg",37),g(2,"line",38)(3,"circle",39)(4,"circle",40)(5,"path",41),o()()}}function ss(t,r){if(t&1){let e=y();p(0,is,1,3,"app-ccap-run-trace-block",32),s(1,"div",33)(2,"app-s-agent-console-message-bubble",34),C("ttsCached",function(n){x(e);let _=d();return f(_.handleTtsCached(n))}),o(),p(3,os,6,0,"button",35),o()}if(t&2){let e,i=r.$implicit;c(i.msg.role==="assistant"&&((e=i.msg.runId)!==null&&e!==void 0?e:"").trim().length>0?0:-1),a(),N(i.bubbleView.isUserAligned?"self-end max-w-[80%]":"self-start max-w-[92%]"),a(),h("view",i.bubbleView),a(),c(i.msg.role==="user"&&i.msg.messageKey?3:-1)}}function as(t,r){if(t&1){let e=y();s(0,"div",9)(1,"div",42)(2,"app-ccap-run-flow-viz",43),C("eventSelected",function(n){x(e);let _=d();return f(_.onFlowEventSelected(n))}),o()()()}if(t&2){let e=d();a(2),h("trace",e.liveRunTrace_$())}}function rs(t,r){if(t&1){let e=y();s(0,"div",10)(1,"app-ccap-user-interaction-card",44),C("responded",function(n){x(e);let _=d();return f(_.onInteractionResponse(n))}),o()()}t&2&&(a(),h("request",r))}function ls(t,r){t&1&&(A(),s(0,"svg",45),g(1,"path",49),o())}function ds(t,r){t&1&&g(0,"span",46)}function _s(t,r){if(t&1&&l(0),t&2){let e=d();b(" Notification sent: ",e.notificationTitle," ")}}function cs(t,r){if(t&1&&l(0),t&2){let e=d();b(" Waiting for response: ",e.notificationTitle," ")}}function ps(t,r){if(t&1&&(s(0,"div",11),p(1,ls,2,0,":svg:svg",45)(2,ds,1,0,"span",46),s(3,"span",47),p(4,_s,1,1)(5,cs,1,1),o(),s(6,"span",48),l(7),o()()),t&2){let e=r;h("ngClass",yt(4,Xo,e.notificationPriority==="info",e.notificationPriority==="warning",e.notificationPriority==="success",e.notificationPriority==="error")),a(),c(e.phase==="notification-sent"?1:2),a(3),c(e.phase==="notification-sent"?4:5),a(3),b(" ",e.notificationType," ")}}function us(t,r){if(t&1&&(s(0,"span"),l(1),o()),t&2){let e=d(2);a(),m(e.chatRunStatusLine_$())}}function ms(t,r){t&1&&(s(0,"span"),l(1,"Thinking\u2026"),o())}function xs(t,r){if(t&1&&(s(0,"div",12),g(1,"span",50),p(2,us,2,1,"span")(3,ms,2,0,"span"),o()),t&2){let e=d();a(2),c(e.chatRunStatusLine_$()?2:3)}}function fs(t,r){if(t&1){let e=y();s(0,"div",51),C("click",function(){x(e);let n=d();return f(n.closeTracePopup())}),g(1,"div",52),s(2,"div",53),C("click",function(n){return x(e),f(n.stopPropagation())}),s(3,"app-ccap-trace-detail",54),C("close",function(){x(e);let n=d();return f(n.closeTracePopup())}),o()()()}t&2&&(a(3),h("event",r))}function Cs(t,r){if(t&1&&(s(0,"div",14),g(1,"app-ccap-error-display",55),o()),t&2){let e=d();a(),h("error",e.session_DS.messagesLoadError_$())}}function Ss(t,r){t&1&&(s(0,"div",15),g(1,"span",50),s(2,"span",56),l(3,"\xDCzenetek bet\xF6lt\xE9se\u2026"),o(),s(4,"div",57),g(5,"div",58)(6,"div",59)(7,"div",60),o()())}function hs(t,r){t&1&&(s(0,"div",16),l(1," No messages yet. Start a conversation. "),o())}var vs="ccap_notification",gs="notification-sent",Jt=(()=>{class t{sessionId="";newMessage="";pendingAttachments=[];runStatusText_$=E("");chatRunStatusLine_$=S(()=>{let e=this.runStatusText_$();if(e==="")return"";let i=this.session_DS.activeRunExecutionMode_$().trim();if(i==="")return e;let n=ie.labelForRunExecutionMode(i);return n===""?e:`${e} \xB7 ${n}`});isTyping_$=E(!1);isStopping_$=E(!1);selectedEventForPopup_$=E(null);lastAssistantRunId_$=S(()=>{let e=this.session_DS.messages_$();for(let i=e.length-1;i>=0;i--){let n=e[i];if(n.role==="assistant"&&(n.runId??"").trim().length>0)return n.runId.trim()}return""});chatViewItems_$=S(()=>{let e=this.session_DS.messages_$(),i=this.sessionId;return e.map(n=>({msg:n,bubbleView:Qe.fromClientMessage(n,i)}))});handleTtsCached(e){this.session_DS.setMessageTtsCached(e)}forkConfirmOpen_$=E(!1);forkConfirmBusy_$=E(!1);forkPointMessageKey_$=E("");handleForkFromHereClick(e){let i=(e??"").trim();i&&(this.forkPointMessageKey_$.set(i),this.forkConfirmOpen_$.set(!0))}handleForkConfirmClosed(){this.forkConfirmBusy_$()||(this.forkConfirmOpen_$.set(!1),this.forkPointMessageKey_$.set(""))}handleForkConfirm(){return $(this,null,function*(){let e=this.forkPointMessageKey_$();if(!(!e||!this.sessionId.trim())){this.forkConfirmBusy_$.set(!0);try{let i=yield this.session_DS.forkSession({sessionId:this.sessionId,forkUntilMessageKey:e});if(this.forkConfirmOpen_$.set(!1),this.forkPointMessageKey_$.set(""),i._id){let n=this.peiContext_DS.activeCcapId_$(),_=n?["/session",n,i._id]:["/session",i._id];this.router.navigate(_)}}catch(i){this.globalError_CS.showError(i,"ccap-ses-fork")}finally{this.forkConfirmBusy_$.set(!1)}}})}liveRunTrace_$=S(()=>{if(!this.isTyping_$())return[];let e=this.monitoring_DS.events_$();if(!e.length)return[];let i=e[e.length-1].runId?.trim()??"";if(!i)return[];let n=this.sessionId?.trim()??"";return e.filter(_=>_.sessionId.trim()===n&&(_.runId?.trim()??"")===i)});scrollAnchorRef=null;topSentinelRef=null;messagesEffectRef=null;agentEventsEffectRef=null;topSentinelObserver=null;prevLastMessageKey=void 0;session_DS=I(F);monitoring_DS=I(Se);router=I(ae);peiContext_DS=I(ee);globalError_CS=I(ke);voiceInputUi_DS=I(Mt);sessionQueue_DS=I(Ot);registrySsot_CS=I(Ft);sessionInfo_$=S(()=>this.session_DS.sessionInfoMap_$().get(this.sessionId)??null);modelOptions_$=S(()=>this.registrySsot_CS.enabledLlmModels_$().map(i=>i.modelName));selectedModel_$=S(()=>{let e=this.sessionInfo_$();return e?.activeLlmModel?.trim()||e?.defaultLlmModel?.trim()||""});modeOptions=[P.agenticAny,P.instant,P.ask,P.plan];selectedMode_$=S(()=>this.sessionInfo_$()?.forcedRunExecutionMode??P.agenticAny);effortOptions=["none","low","mid","high"];selectedEffort_$=S(()=>{let i=this.sessionInfo_$()?.reasoningEffort;return typeof i=="string"&&i.trim()!==""?i.trim():"none"});constructor(){this.messagesEffectRef=M(()=>{let e=this.session_DS.messages_$(),i=e.length>0?e[e.length-1].clientListKey:void 0;i!==this.prevLastMessageKey&&(this.scheduleScrollToBottom(),this.prevLastMessageKey=i)}),this.agentEventsEffectRef=M(()=>{let e=this.session_DS.agentEvents_$(),i=e.phase??e.step??"",n=e.status??"",_=R.toDisplayString(i),u=R.toDisplayString(n);if(this.isTyping_$.set(!!(_||u)),_===gs){let v=R.toDisplayString(e.notificationTitle??"");this.runStatusText_$.set(v?`Notification sent: ${v}`:"Notification sent")}else if(_==="waiting-for-user"&&e.toolId===vs){let v=R.toDisplayString(e.notificationTitle??"");this.runStatusText_$.set(v?`Waiting for response: ${v}`:"Waiting for your response\u2026")}else _==="waiting-for-user"?this.runStatusText_$.set("Waiting for your response\u2026"):_==="analyze"||u==="analyzing"?this.runStatusText_$.set("Analyzing\u2026"):_==="assemble"||u==="assembling"?this.runStatusText_$.set("Assembling conversation\u2026"):_==="execution"||u==="executing"?this.runStatusText_$.set("Executing\u2026"):_==="finalization"?this.runStatusText_$.set("Finalizing\u2026"):_==="toolCall"||e.toolCall?this.runStatusText_$.set("Executing tool\u2026"):_||u?this.runStatusText_$.set(u||_):this.runStatusText_$.set("");this.scheduleScrollToBottom()},{allowSignalWrites:!0})}ngOnInit(){this.loadMessages(),this.loadMonitoringEventsForSession(),this.loadSessionConfigData(),this.sessionId&&(this.newMessage=X.loadPromptDraft(this.sessionId),this.sessionQueue_DS.subscribeToSession({sessionId:this.sessionId,baseRoute:"session"}))}ngOnDestroy(){this.messagesEffectRef&&(this.messagesEffectRef.destroy(),this.messagesEffectRef=null),this.agentEventsEffectRef&&(this.agentEventsEffectRef.destroy(),this.agentEventsEffectRef=null),this.topSentinelObserver&&(this.topSentinelObserver.disconnect(),this.topSentinelObserver=null)}ngOnChanges(e){e.sessionId&&this.sessionId&&(this.newMessage=X.loadPromptDraft(this.sessionId),this.loadMessages(),this.loadMonitoringEventsForSession(),this.loadSessionConfigData())}ngAfterViewInit(){this.scheduleScrollToBottom(),this.setupTopSentinelObserver()}setupTopSentinelObserver(){let e=this.topSentinelRef?.nativeElement;!e||typeof IntersectionObserver>"u"||(this.topSentinelObserver=new IntersectionObserver(i=>{for(let n of i)n.isIntersecting&&this.loadOlderChunkIfNeeded()},{rootMargin:"100px 0px 0px 0px",threshold:0}),this.topSentinelObserver.observe(e))}scheduleScrollToBottom(){setTimeout(()=>this.scrollToBottom(),0)}scrollToBottom(){this.scrollAnchorRef?.nativeElement?.scrollIntoView({behavior:"instant"})}loadMessages(){this.sessionId&&this.session_DS.loadInitialChunk({sessionId:this.sessionId,archiveScope:this.session_DS.currentArchiveScope_$()})}loadOlderChunkIfNeeded(){this.sessionId&&this.session_DS.loadOlderChunk({sessionId:this.sessionId,archiveScope:this.session_DS.currentArchiveScope_$()})}handleOpenArchive(){this.sessionId&&this.session_DS.switchToArchiveView(this.sessionId)}handleCloseArchive(){this.sessionId&&this.session_DS.switchToActiveView(this.sessionId)}loadMonitoringEventsForSession(){let e=this.sessionId?.trim()??"";e&&this.monitoring_DS.loadSessionEvents(e)}handleDraftTextChange(e){this.newMessage=e,this.sessionId&&X.savePromptDraft(this.sessionId,e)}sendMessage(){return $(this,null,function*(){let e=this.newMessage,i=[...this.pendingAttachments];if(!e.trim()&&!i.length)return;let n=this.sessionId;X.clearPromptDraft(n),this.newMessage="";let _=i.length>0?i.filter(v=>v.isImage).map(v=>({mimeType:v.mimeType,base64:v.base64})):void 0,u=yield this.session_DS.sendMessageViaSocket(e,_);if(u.newSession?._id){this.session_DS.setActiveSession(u.newSession._id);let v=this.peiContext_DS.activeCcapId_$(),w=v?["/session",v,u.newSession._id]:["/session",u.newSession._id];this.router.navigate(w)}else if(!u.sent){this.newMessage=e,X.savePromptDraft(n,e);let v=u.error?.trim()??"\xDCzenet k\xFCld\xE9se sikertelen.";this.globalError_CS.showError(new Error(v),"ccap-chat")}})}onAttachmentsChanged(e){this.pendingAttachments=e}handleQuickCastAction(e){return $(this,null,function*(){let i=e.trim();if(!i||!this.sessionId)return;let n=yield this.session_DS.sendMessageViaSocket(i,void 0);if(!n.sent){let _=n.error?.trim()??"QuickCast \xFCzenet k\xFCld\xE9se sikertelen.";this.globalError_CS.showError(new Error(_),"ccap-chat-quickcast")}})}handleStopExecution(){return $(this,null,function*(){if(!(!this.sessionId||this.isStopping_$())){this.isStopping_$.set(!0);try{yield this.session_DS.stopExecution(this.sessionId)}finally{this.isStopping_$.set(!1)}}})}onVoiceSegment(e){let i=e.text?.trim()??"";if(i){let n=this.newMessage.trim();this.newMessage=n.length>0?n+" "+i:i}this.voiceInputUi_DS.autoSendAfterVoice_$()&&e.isFinal&&this.newMessage.trim().length>0&&this.sendMessage()}onInteractionResponse(e){this.session_DS.sendInteractionResponse(e)}onFlowEventSelected(e){this.selectedEventForPopup_$.set(e)}closeTracePopup(){this.selectedEventForPopup_$.set(null)}loadSessionConfigData(){this.sessionId&&(this.session_DS.loadSessionInfo(this.sessionId),this.registrySsot_CS.ensureLoaded("llm"))}handleModelChanged(e){let n=this.registrySsot_CS.enabledLlmModels_$().find(_=>_.modelName===e);!n||!this.sessionId||this.session_DS.updateSession({sessionId:this.sessionId,updates:{activeLlmProvider:n.provider,activeLlmModel:n.modelName}}).then(()=>{this.session_DS.loadSessionInfo(this.sessionId)})}handleModeChanged(e){this.sessionId&&this.session_DS.updateSession({sessionId:this.sessionId,updates:{forcedRunExecutionMode:e||null}}).then(()=>{this.session_DS.loadSessionInfo(this.sessionId)})}handleEffortChanged(e){this.sessionId&&this.session_DS.updateSession({sessionId:this.sessionId,updates:{reasoningEffort:e||null}}).then(()=>{this.session_DS.loadSessionInfo(this.sessionId)})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-chat"]],viewQuery:function(i,n){if(i&1&&(ue(Wo,5),ue(Ho,5)),i&2){let _;me(_=xe())&&(n.scrollAnchorRef=_.first),me(_=xe())&&(n.topSentinelRef=_.first)}},hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],inputs:{sessionId:"sessionId"},features:[Q],decls:40,vars:34,consts:[["topSentinel",""],["scrollAnchor",""],["sChatColumnScroll","",1,"p-3","flex","flex-col"],[1,"flex","flex-col","gap-1","w-full","max-w-3xl","mx-auto"],[1,"flex","items-center","justify-between","px-3","py-2","mb-1","rounded","border","border-amber-700/40","bg-amber-950/30","text-amber-200","text-xs"],[1,"text-center","py-1"],[1,"text-center","text-neutral-500","py-2","text-xs","italic"],[1,"text-center","text-neutral-600","py-1","text-xs"],[1,"group","relative",3,"class"],[1,"self-start","mt-1","mb-1","w-full"],[1,"self-start","mt-2","mb-2"],[1,"self-start","mt-2","mb-2","px-3","py-2","rounded-md","border","text-sm","flex","items-center","gap-2","max-w-[80%]",3,"ngClass"],[1,"flex","items-center","gap-2","text-neutral-400","text-sm","py-1"],[1,"fixed","inset-0","z-[100]","flex","items-center","justify-center"],[1,"max-w-xl","mx-auto"],[1,"flex","flex-col","items-center","gap-2","py-12","text-neutral-500"],[1,"text-center","text-neutral-500","py-12"],["sChatColumnComposer","",1,"max-w-3xl","mx-auto","w-full"],["placeholder","Type a message...",3,"draftTextChange","modeChanged","modelChanged","effortChanged","sendRequested","queueRequested","stopRequested","attachmentsChanged","queueEditStart","queueEditTextChange","queueEditSave","queueEditCancel","queueRemoveItem","queueSendNow","queueMoveUp","queueMoveDown","draftText","isExecuting","isStopping","enableAttachments","textareaRows","modeOptions","selectedMode","modelOptions","selectedModel","effortOptions","selectedEffort","queueItems","isQueueLocked","editingQueueItemId","editingQueueText"],["sChatColumnOverlay","",3,"sessionId"],["sChatColumnOverlay","",3,"actionSelected"],["sChatColumnOverlay","",1,"absolute","bottom-4","right-4","z-30","pointer-events-auto"],[3,"transcriptSegmentReady","compactLayout"],["maxWidth","lg",3,"closed","isOpen","title"],[1,"flex","flex-col","gap-3","p-4"],[1,"text-sm","text-neutral-200"],[1,"text-xs","text-neutral-500","font-mono","break-all"],["modal-footer","",1,"flex","flex-wrap","gap-3","px-4","py-3","border-t","border-neutral-700/60"],["type","button",1,"px-4","py-2","rounded","border","border-ccapAccent","text-ccapAccent","text-sm","font-medium","hover:bg-ccapAccent/10","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button",1,"px-4","py-2","rounded","border","border-neutral-600","text-neutral-200","text-sm","hover:bg-neutral-800","disabled:opacity-40","disabled:pointer-events-none",3,"click","disabled"],["type","button",1,"px-2","py-0.5","rounded","border","border-amber-600/60","text-amber-200","hover:bg-amber-800/40","focus:outline-none","focus:ring-1","focus:ring-amber-500",3,"click"],["type","button",1,"px-3","py-1","rounded","text-xs","text-neutral-400","hover:text-amber-300","hover:bg-amber-950/30","transition-colors","focus:outline-none","focus:ring-1","focus:ring-amber-500",3,"click"],[3,"sessionId","runId","autoExpand"],[1,"group","relative"],[3,"ttsCached","view"],["type","button","title","Fork session a jelenlegi \xFCzenetig (inclusive) \u2014 \xFAj session az el\u0151zm\xE9ny m\xE1solat\xE1val","aria-label","Fork session up to this message",1,"absolute","-left-7","top-1","p-1","rounded","text-neutral-500","hover:text-ccapAccent","hover:bg-neutral-800/60","opacity-0","group-hover:opacity-100","focus:opacity-100","transition-opacity","duration-150"],["type","button","title","Fork session a jelenlegi \xFCzenetig (inclusive) \u2014 \xFAj session az el\u0151zm\xE9ny m\xE1solat\xE1val","aria-label","Fork session up to this message",1,"absolute","-left-7","top-1","p-1","rounded","text-neutral-500","hover:text-ccapAccent","hover:bg-neutral-800/60","opacity-0","group-hover:opacity-100","focus:opacity-100","transition-opacity","duration-150",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-4","h-4"],["x1","6","y1","3","x2","6","y2","15"],["cx","18","cy","6","r","3"],["cx","6","cy","18","r","3"],["d","M18 9a9 9 0 0 1-9 9"],[1,"pl-2","border-l-2","border-neonDefault"],[3,"eventSelected","trace"],[3,"responded","request"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-4","h-4","shrink-0"],[1,"w-2","h-2","rounded-full","bg-current","animate-pulse","shrink-0"],[1,"truncate"],[1,"shrink-0","text-[10px]","px-1.5","py-0.5","rounded-full","border","border-current/30","opacity-70"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d",`M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11
@@ -9,4 +9,4 @@ import{b as Ue,c as Bt,d as Nt,e as je,f as Kt}from"./chunk-VM6JI2LV.js";import{
9
9
  /*# sourceMappingURL=ses-info-panel.component-VN27DBQI.css.map */`]})}return t})();var Ye=(()=>{class t{graph_DS=I(qe);isOpen_$=this.graph_DS.isGraphOpen_$;isLive_$=this.graph_DS.isLive_$;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(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ses-graph-modal"]],standalone:!0,features:[gt],decls:2,vars:7,consts:[["maxWidth","7xl","headerBorderClass","border-neonCyan/30",3,"closed","isOpen","title","bodyFlexColumn"],[1,"flex-1","min-h-0",3,"nodeClicked","detailClosed","layout","activeNodeId","selectedNodeId","isLoading"]],template:function(i,n){i&1&&(s(0,"app-s-modal",0),C("closed",function(){return n.handleClose()}),s(1,"app-ses-graph-view",1),C("nodeClicked",function(u){return n.handleNodeClick(u)})("detailClosed",function(){return n.handleDetailClose()}),o()()),i&2&&(h("isOpen",n.isOpen_$())("title",n.isLive_$()?"Run Flow Graph (Live)":"Run Flow Graph")("bodyFlexColumn",!0),a(),h("layout",n.layout_$())("activeNodeId",n.activeNodeId_$())("selectedNodeId",n.selectedNodeId_$())("isLoading",n.isLoading_$()))},dependencies:[Ee,re,Ut],encapsulation:2})}return t})();function Rr(t,r){if(t&1){let e=y();s(0,"button",26),C("click",function(){x(e);let n=d();return f(n.handleScheduleBadgeClick())}),A(),s(1,"svg",27),g(2,"rect",28)(3,"line",29)(4,"line",30)(5,"line",31),o()()}}function Mr(t,r){if(t&1){let e=y();s(0,"button",32),C("click",function(){x(e);let n=d();return f(n.handleCoordinatorBadgeClick())}),A(),s(1,"svg",27),g(2,"circle",33)(3,"polygon",34),o()()}}function Lr(t,r){t&1&&(s(0,"div",22),g(1,"span",35),l(2," Reconnecting\u2026 "),o())}var Cn="ccap-sessionsPanelOpen",Sn="ccap-sessionsPanelWidthPx",hn=(()=>{class t extends De{infoPanel;activeSessionId="";isSidebarOpen_$=E(t.readSessionsPanelOpenFromStorage());sidebarWidth_$=E(t.readSidebarWidthFromStorage());isResizing_$=E(!1);isInfoPanelOpen_$=E(!1);openLastSessionEffectRef=null;route=I(Ie);router=I(ae);layoutBreakpoint_CS=I(Pe);peiContext_DS=I(ee);session_DS=I(F);graph_DS=I(qe);scheduledJobs_DS=I(Ne);coordinator_DS=I(Ke);activeSessionId_$=E("");hasSchedule_$=S(()=>{let e=this.activeSessionId_$();return e?this.scheduledJobs_DS.scheduledSessionIds_$().has(e):!1});hasCoordinator_$=S(()=>{let e=this.activeSessionId_$();return e?this.coordinator_DS.coordinatedSessionIds_$().has(e):!1});schedulePopupSessionId_$=E(null);coordinatorPopupSessionId_$=E(null);handleScheduleBadgeClick(){let e=this.activeSessionId_$();e&&this.schedulePopupSessionId_$.set(e)}handleCloseSchedulePopup(){this.schedulePopupSessionId_$.set(null)}handleCoordinatorBadgeClick(){let e=this.activeSessionId_$();e&&this.coordinatorPopupSessionId_$.set(e)}handleCloseCoordinatorPopup(){this.coordinatorPopupSessionId_$.set(null)}constructor(){super(),this.openLastSessionEffectRef=M(()=>{let e=this.session_DS.sessionsLoading_$(),i=this.session_DS.sessions_$();if(this.router.url.split("?")[0].replace(/\/$/,"")!=="/session"||e||i.length===0)return;let _=i[0],u=this.peiContext_DS.activeCcapId_$(),v=u?["/session",u,_._id]:["/session",_._id];this.router.navigate(v)}),M(()=>{this.session_DS.requestSidebarCloseOnMobileBump_$()!==0&&this.layoutBreakpoint_CS.isMobile_$()&&this.closeSidebarPanel()},{allowSignalWrites:!0})}connected_$=S(()=>this.session_DS.connected_$());ngOnInit(){this.layoutBreakpoint_CS.isMobile_$()&&this.closeSidebarPanel(),this.scheduledJobs_DS.jobs_$().length===0&&this.scheduledJobs_DS.loadAll(),this.coordinator_DS.globalCoordinatorsList_$().length===0&&this.coordinator_DS.loadAllCoordinatorsForManagementPage(),this.applyActiveSessionIdFromChildRoute(),this.closeSidebarOnMobileIfSessionSelected(),this.addSubscription(this.router.events.pipe(ut(e=>e instanceof Tt)).subscribe(()=>{this.applyActiveSessionIdFromChildRoute(),this.closeSidebarOnMobileIfSessionSelected()}))}ngOnDestroy(){super.ngOnDestroy(),this.openLastSessionEffectRef&&(this.openLastSessionEffectRef.destroy(),this.openLastSessionEffectRef=null)}applyActiveSessionIdFromChildRoute(){let e=this.route.firstChild?.snapshot.paramMap.get("id")??"";this.activeSessionId=e,this.activeSessionId_$.set(e),this.activeSessionId||this.session_DS.loadSessions()}persistSidebarOpenToStorage(){O.writeString(Cn,String(this.isSidebarOpen_$()))}persistSidebarWidthToStorage(){O.writeNumber(Sn,this.sidebarWidth_$())}static readSessionsPanelOpenFromStorage(){return O.readString(Cn)!=="false"}static readSidebarWidthFromStorage(){let e=O.readNumber(Sn,320);return Math.max(200,Math.min(600,e))}closeSidebarPanel(){this.isSidebarOpen_$.set(!1),this.persistSidebarOpenToStorage()}closeSidebarOnMobileIfSessionSelected(){this.layoutBreakpoint_CS.isMobile_$()&&this.activeSessionId&&this.closeSidebarPanel()}handleToggleSidebar(){this.isSidebarOpen_$.update(e=>!e),this.persistSidebarOpenToStorage()}handleSidebarResizeStart(e){let i=e.clientX,n=this.sidebarWidth_$();this.isResizing_$.set(!0),At.attachUntilPointerUp({startEvent:e,onMove:_=>{let u=_.clientX-i,v=Math.max(200,Math.min(600,n+u));this.sidebarWidth_$.set(v)},onEnd:()=>{this.isResizing_$.set(!1),this.persistSidebarWidthToStorage()}})}handleToggleInfoPanel(){this.infoPanel&&this.infoPanel.togglePanel()}handleInfoPanelOpenChange(e){this.isInfoPanelOpen_$.set(e)}handleOpenGraph(){if(!this.activeSessionId)return;let e=this.session_DS.agentEvents_$(),i=e.phase,n=typeof i=="string"&&i.length>0&&i!=="run-flow-complete",_=e.runId,u=typeof _=="string"?_:"";this.graph_DS.openGraphForRun(this.activeSessionId,u,n)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-session-shell"]],viewQuery:function(i,n){if(i&1&&ue(Je,5),i&2){let _;me(_=xe())&&(n.infoPanel=_.first)}},features:[ve],decls:35,vars:21,consts:[["sSessionToolbarLeft","",1,"flex","items-center","gap-1","min-w-0"],[1,"px-2","py-1","text-xs","border","rounded","transition-colors","flex","items-center","gap-1","shrink-0",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3","h-3","shrink-0","transition-transform","duration-150"],["points","6 9 12 15 18 9"],["sSessionToolbarRight","",1,"flex","items-center","gap-1","min-w-0"],["type","button","title","Ehhez a session-h\xF6z tartozik schedule \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Schedule attached \u2014 open popup",1,"text-neonCyan/80","hover:text-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan/60","rounded","px-1","shrink-0"],["type","button","title","Ehhez a session-h\xF6z tartozik koordin\xE1tor \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Coordinator attached \u2014 open popup",1,"text-neonAmber/80","hover:text-neonAmber","focus:outline-none","focus:ring-1","focus:ring-neonAmber/60","rounded","px-1","shrink-0"],["title","Run Flow Graph",1,"px-2","py-1","text-xs","border","rounded","transition-colors","border-neutral-700","text-neutral-500","hover:text-neutral-300","hover:border-neutral-600",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round",1,"w-3","h-3","inline-block","mr-0.5"],["cx","5","cy","6","r","3"],["cx","19","cy","6","r","3"],["cx","12","cy","18","r","3"],["d","M5 9v3a4 4 0 004 4h2M19 9v3a4 4 0 01-4 4h-2"],[1,"px-2","py-1","text-xs","border","rounded","transition-colors",3,"click"],[3,"sidebarResizeStart","mobileBackdropClicked","isSidebarOpen","sidebarWidthPx","isResizing","isMobileBackdropActive"],["sSessionShellSidebar","",1,"flex","flex-col","h-full","overflow-hidden"],[1,"flex","items-center","justify-between","px-3","py-2","border-b","border-neonDefault","shrink-0","min-h-[44px]"],[1,"text-sm","font-semibold","text-neutral-200"],["title","Bez\xE1r\xE1s","aria-label","Bez\xE1r\xE1s",1,"px-2","py-1","min-h-[44px]","min-w-[44px]","flex","items-center","justify-center","text-neutral-400","hover:text-neutral-200","rounded",3,"click"],[1,"flex-1","min-h-0","overflow-y-auto"],[3,"activeSessionId"],["sSessionShellMain","",1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],[1,"shrink-0","px-4","py-1.5","bg-amber-900/50","border-b","border-neonAmber","text-amber-200","text-xs","flex","items-center","gap-2"],[1,"flex-1","min-h-0","flex","flex-col","session-outlet-wrapper"],["sSessionShellRightPanel","",3,"isOpenChange","sessionId"],[3,"closed","sessionId","isOpen"],["type","button","title","Ehhez a session-h\xF6z tartozik schedule \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Schedule attached \u2014 open popup",1,"text-neonCyan/80","hover:text-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan/60","rounded","px-1","shrink-0",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3.5","h-3.5"],["x","3","y","4","width","18","height","18","rx","2","ry","2"],["x1","16","y1","2","x2","16","y2","6"],["x1","8","y1","2","x2","8","y2","6"],["x1","3","y1","10","x2","21","y2","10"],["type","button","title","Ehhez a session-h\xF6z tartozik koordin\xE1tor \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Coordinator attached \u2014 open popup",1,"text-neonAmber/80","hover:text-neonAmber","focus:outline-none","focus:ring-1","focus:ring-neonAmber/60","rounded","px-1","shrink-0",3,"click"],["cx","12","cy","12","r","10"],["points","16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"],[1,"inline-block","w-2","h-2","rounded-full","bg-amber-400","animate-pulse"]],template:function(i,n){i&1&&(s(0,"app-s-session-shell-toolbar")(1,"div",0)(2,"button",1),C("click",function(){return n.handleToggleSidebar()}),A(),s(3,"svg",2),g(4,"polyline",3),o(),l(5," Sessions "),o()(),ce(),s(6,"div",4),p(7,Rr,6,0,"button",5)(8,Mr,4,0,"button",6),s(9,"button",7),C("click",function(){return n.handleOpenGraph()}),A(),s(10,"svg",8),g(11,"circle",9)(12,"circle",10)(13,"circle",11)(14,"path",12),o(),l(15," Graph "),o(),ce(),s(16,"button",13),C("click",function(){return n.handleToggleInfoPanel()}),l(17," Info "),o()()(),s(18,"app-s-resizable-session-shell-layout",14),C("sidebarResizeStart",function(u){return n.handleSidebarResizeStart(u)})("mobileBackdropClicked",function(){return n.handleToggleSidebar()}),s(19,"div",15)(20,"div",16)(21,"span",17),l(22,"Sessions"),o(),s(23,"button",18),C("click",function(){return n.handleToggleSidebar()}),l(24," \u2715 "),o()(),s(25,"div",19),g(26,"app-ccap-session-list",20),o()(),s(27,"div",21),p(28,Lr,3,0,"div",22),s(29,"div",23),g(30,"router-outlet"),o()(),s(31,"app-ccap-info-panel",24),C("isOpenChange",function(u){return n.handleInfoPanelOpenChange(u)}),o()(),g(32,"app-ses-graph-modal"),s(33,"app-sch-schedule-popup",25),C("closed",function(){return n.handleCloseSchedulePopup()}),o(),s(34,"app-crd-info-popup",25),C("closed",function(){return n.handleCloseCoordinatorPopup()}),o()),i&2&&(a(2),N(n.isSidebarOpen_$()?"border-neonCyan/50 text-neonCyan bg-neonCyan/10":"border-neutral-700 text-neutral-500 hover:text-neutral-300 hover:border-neutral-600"),a(),W("rotate-90",n.isSidebarOpen_$())("-rotate-90",!n.isSidebarOpen_$()),a(4),c(n.hasSchedule_$()?7:-1),a(),c(n.hasCoordinator_$()?8:-1),a(8),N(n.isInfoPanelOpen_$()?"border-neonCyan/50 text-neonCyan bg-neonCyan/10":"border-neutral-700 text-neutral-500 hover:text-neutral-300 hover:border-neutral-600"),a(2),h("isSidebarOpen",n.isSidebarOpen_$())("sidebarWidthPx",n.sidebarWidth_$())("isResizing",n.isResizing_$())("isMobileBackdropActive",n.isSidebarOpen_$()),a(8),h("activeSessionId",n.activeSessionId),a(2),c(n.activeSessionId&&!n.connected_$()?28:-1),a(3),h("sessionId",n.activeSessionId),a(2),h("sessionId",n.schedulePopupSessionId_$())("isOpen",n.schedulePopupSessionId_$()!==null),a(),h("sessionId",n.coordinatorPopupSessionId_$())("isOpen",n.coordinatorPopupSessionId_$()!==null))},dependencies:[wt,Fe,Ae,Ye,le,de,qt,Je],styles:[`[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;width:100%;min-height:0} .session-outlet-wrapper router-outlet{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
10
10
  /*# sourceMappingURL=ses-shell.component-VO2VH2BU.css.map */`]})}return t})();var vn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=T({type:t,selectors:[["app-ccap-session-placeholder"]],decls:3,vars:0,consts:[[1,"flex","flex-col","items-center","justify-center","h-full","text-center","px-4"],[1,"text-neutral-400","text-sm"]],template:function(i,n){i&1&&(s(0,"div",0)(1,"p",1),l(2,"V\xE1lassz sessiont a bal oldali list\xE1b\xF3l."),o()())},styles:[`[_nghost-%COMP%]{display:block;height:100%}
11
11
  /*# sourceMappingURL=ses-placeholder.component-PKVDYVNI.css.map */`]})}return t})();var Vr=[{path:"",component:hn,children:[{path:"",pathMatch:"full",component:vn},{path:":ccapId/:id",component:dt},{path:":id",component:dt}]}],V_=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=xt({type:t});static \u0275inj=mt({imports:[Le,Ee,Pt,$t.forChild(Vr),j,Re,Ue,Ve,ze,Oe,Fe,Ae,Be,je,Ye,re,le,de]})}return t})();export{V_ as Session_Module};
12
- //# sourceMappingURL=session.module-R4NYRIWY.js.map
12
+ //# sourceMappingURL=session.module-LJNWNXN7.js.map