@futdevpro/ccap 1.1.3513 → 1.1.3523
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.
- package/client-dist/{agent-instances.module-T6EFJFPE.js → agent-instances.module-CWOIQQ77.js} +2 -2
- package/client-dist/{ca.module-NCBI74FP.js → ca.module-WN5ZJX3W.js} +2 -2
- package/client-dist/{cc-usage-dashboard.component-Q3FBUIIR.js → cc-usage-dashboard.component-26JCGRDJ.js} +2 -2
- package/client-dist/{cc.module-CIY6QMB5.js → cc.module-OTFOVDK6.js} +2 -2
- package/client-dist/{chunk-VTB3IOVV.js → chunk-2XWVIUOT.js} +2 -2
- package/client-dist/{chunk-3N2JTN7N.js → chunk-35GZKIHM.js} +2 -2
- package/client-dist/{chunk-MS2KQ2G4.js → chunk-3B43AFFF.js} +2 -2
- package/client-dist/{chunk-Q7ORWYDO.js → chunk-3BNJTYQO.js} +2 -2
- package/client-dist/{chunk-M6EVLEFQ.js → chunk-3UWSVQYY.js} +2 -2
- package/client-dist/{chunk-QP53M3ES.js → chunk-43DAQMAP.js} +2 -2
- package/client-dist/{chunk-YXBF6EUR.js → chunk-4DVJMOGV.js} +2 -2
- package/client-dist/{chunk-ASAT75IU.js → chunk-4HBQE4BE.js} +2 -2
- package/client-dist/{chunk-GTMPSTDI.js → chunk-4Q4L27AF.js} +2 -2
- package/client-dist/{chunk-YZ27TRGU.js → chunk-4SA3LZAD.js} +2 -2
- package/client-dist/{chunk-EVV5L3LF.js → chunk-4SDD3VFR.js} +2 -2
- package/client-dist/{chunk-SNRZOR27.js → chunk-4WR3JURO.js} +2 -2
- package/client-dist/{chunk-QKA6WOBV.js → chunk-5BAOJQJC.js} +2 -2
- package/client-dist/{chunk-IFF2675Y.js → chunk-5YESEEVR.js} +2 -2
- package/client-dist/{chunk-GDAWHJEQ.js → chunk-7CECCKGS.js} +2 -2
- package/client-dist/{chunk-N72DAUY2.js → chunk-7KQEZMY4.js} +2 -2
- package/client-dist/{chunk-PR5JV6XX.js → chunk-7LKN2H5J.js} +2 -2
- package/client-dist/{chunk-YYUKX4AF.js → chunk-7PEB3BOC.js} +2 -2
- package/client-dist/{chunk-6HZB6QSW.js → chunk-CULH4KGF.js} +2 -2
- package/client-dist/{chunk-P5OOFVBC.js → chunk-CWHBS3BF.js} +2 -2
- package/client-dist/{chunk-NEYB4VGZ.js → chunk-ED2O3QVI.js} +2 -2
- package/client-dist/{chunk-N4KTLLCR.js → chunk-EKLOUDYW.js} +2 -2
- package/client-dist/{chunk-2ZI26XMZ.js → chunk-EQMEMEMQ.js} +2 -2
- package/client-dist/{chunk-BWH3JLHB.js → chunk-F344AZJS.js} +2 -2
- package/client-dist/{chunk-E5QVIO4C.js → chunk-FE5ELX22.js} +2 -2
- package/client-dist/{chunk-MLGDSF43.js → chunk-HWIGSS33.js} +2 -2
- package/client-dist/{chunk-7IUV4ACY.js → chunk-IGQJJABX.js} +2 -2
- package/client-dist/{chunk-AWIEYMZV.js → chunk-IUTUQEPX.js} +2 -2
- package/client-dist/{chunk-4UKDXJIX.js → chunk-J7ZVFHVR.js} +2 -2
- package/client-dist/{chunk-FYMVJNXZ.js → chunk-JBSJWONA.js} +2 -2
- package/client-dist/{chunk-QIXXTQJJ.js → chunk-K6YB4Q4Y.js} +2 -2
- package/client-dist/{chunk-6UQHXR3E.js → chunk-M2BIMBKO.js} +2 -2
- package/client-dist/{chunk-I7TF6JIJ.js → chunk-MPGR64BK.js} +2 -2
- package/client-dist/{chunk-2DR4NRFY.js → chunk-MWX2FEYH.js} +2 -2
- package/client-dist/{chunk-OKZUEJZL.js → chunk-NCFK56ZV.js} +2 -2
- package/client-dist/{chunk-BR7XXFVN.js → chunk-OMGH7GAL.js} +2 -2
- package/client-dist/{chunk-SXZ6SL34.js → chunk-PFOAVOJI.js} +2 -2
- package/client-dist/{chunk-NQ33IXIS.js → chunk-PNT3PBKY.js} +2 -2
- package/client-dist/{chunk-5BYRCQ4G.js → chunk-PWM7U52X.js} +2 -2
- package/client-dist/{chunk-QQ2C4ATW.js → chunk-Q2XBBF3S.js} +2 -2
- package/client-dist/{chunk-FWVYBWXT.js → chunk-Q6DRW5RY.js} +2 -2
- package/client-dist/{chunk-YWLPTL5I.js → chunk-QGFGI2WD.js} +2 -2
- package/client-dist/{chunk-F4DZS3GH.js → chunk-QLSM7AU5.js} +2 -2
- package/client-dist/{chunk-PY7ZXKHG.js → chunk-RVLDL574.js} +2 -2
- package/client-dist/{chunk-H3QXSZIS.js → chunk-SYFEIBHY.js} +2 -2
- package/client-dist/{chunk-F4BNEQYE.js → chunk-TKLG6NOU.js} +2 -2
- package/client-dist/{chunk-UKVDEDDM.js → chunk-U2NJOYW5.js} +2 -2
- package/client-dist/{chunk-EUEEHSUR.js → chunk-VMHSKHAH.js} +2 -2
- package/client-dist/{chunk-HZSNYOA4.js → chunk-VVFKXESB.js} +2 -2
- package/client-dist/{chunk-66FQLE3Y.js → chunk-VYBCAMPC.js} +2 -2
- package/client-dist/{chunk-6RYNRTDZ.js → chunk-W3BQ3EYT.js} +2 -2
- package/client-dist/{chunk-QXQWNRPL.js → chunk-WCOEXEAR.js} +2 -2
- package/client-dist/{chunk-NIEBWTUO.js → chunk-WJTRYBJQ.js} +2 -2
- package/client-dist/{chunk-WTIUHUMN.js → chunk-YDEFBLVL.js} +2 -2
- package/client-dist/{chunk-A37XCJWY.js → chunk-YLVTK6CQ.js} +2 -2
- package/client-dist/{chunk-WR6NSOQ2.js → chunk-YSI2TV56.js} +2 -2
- package/client-dist/{chunk-WR6NSOQ2.js.map → chunk-YSI2TV56.js.map} +1 -1
- package/client-dist/{chunk-DZFGKIFO.js → chunk-ZKQBXFWO.js} +2 -2
- package/client-dist/{consultant.module-RMGDKO7R.js → consultant.module-POQU3QQP.js} +2 -2
- package/client-dist/{crd.module-7WOWOPYH.js → crd.module-UJQDY32U.js} +2 -2
- package/client-dist/{dashboard.module-UH6C2XJC.js → dashboard.module-OQ23RHCA.js} +2 -2
- package/client-dist/{do.module-DITA42VY.js → do.module-OJTKSFG4.js} +2 -2
- package/client-dist/{document-library.module-NDPVJJ3N.js → document-library.module-X4SNNCTE.js} +2 -2
- package/client-dist/{embedding-eval.module-JROZZ6QM.js → embedding-eval.module-XDJXQR47.js} +2 -2
- package/client-dist/{embedding-registry.module-OYU7CQPU.js → embedding-registry.module-JT6VKF4E.js} +2 -2
- package/client-dist/{err.module-M7L4RF46.js → err.module-45M6UFPK.js} +2 -2
- package/client-dist/{feedback.module-ZG272S6E.js → feedback.module-BXM4MEMF.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-PVVACC4N.js → host-runtime-mcp.module-Z7QHTOFQ.js} +2 -2
- package/client-dist/index.html +1 -1
- package/client-dist/{live-dev-pipeline.module-FKNKOKZ4.js → live-dev-pipeline.module-2Q7L5OZE.js} +2 -2
- package/client-dist/{logs.module-MN6SDRMH.js → logs.module-VT3K4D3C.js} +2 -2
- package/client-dist/{main-NHPLEEM5.js → main-FAF4OLPB.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-A3XO6MIC.js → master-control-remote-poc.module-GNRGR433.js} +2 -2
- package/client-dist/{mobile-app.module-QADWA6MM.js → mobile-app.module-TOGFSAHF.js} +2 -2
- package/client-dist/{model-registry.module-IRG2HWJO.js → model-registry.module-2WGFZ5JY.js} +2 -2
- package/client-dist/{oc.module-52TKAH2Q.js → oc.module-TWSBQN4R.js} +2 -2
- package/client-dist/{orc.module-HSTBXIQM.js → orc.module-V4FGV47K.js} +2 -2
- package/client-dist/{project-management.module-FL2RWRKY.js → project-management.module-3JJCH5KY.js} +2 -2
- package/client-dist/project-source-routed.module-HTFOG5YI.js +2 -0
- package/client-dist/{scheduler.module-XYY22JMT.js → scheduler.module-X7BDYQ7J.js} +2 -2
- package/client-dist/{session.module-N2DJOIHD.js → session.module-T2SWWTDD.js} +2 -2
- package/client-dist/{set.module-XW5X3ZLY.js → set.module-CGMLFMSF.js} +2 -2
- package/client-dist/{setup.module-B4QMBFKV.js → setup.module-TALL5C3O.js} +2 -2
- package/client-dist/{terminals.module-24K6SSFO.js → terminals.module-O7ZKQ3SG.js} +2 -2
- package/client-dist/{voice-notes-poc.module-IW7VPFDD.js → voice-notes-poc.module-7GMDVTT7.js} +2 -2
- package/client-dist/{wfs.module-S2SMAT5Z.js → wfs.module-XDQFGKMY.js} +2 -2
- package/package.json +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/agent-path/_modules/default-path/workspace-path.util.d.ts +7 -0
- package/server/build/src/_modules/ccap-agent/_modules/agent-path/_modules/default-path/workspace-path.util.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/agent-path/_modules/default-path/workspace-path.util.js +12 -1
- package/server/build/src/_modules/ccap-agent/_modules/agent-path/_modules/default-path/workspace-path.util.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/agent-path/_modules/default-path/workspace-path.util.spec.js +69 -0
- package/server/build/src/_modules/ccap-agent/_modules/agent-path/_modules/default-path/workspace-path.util.spec.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_services/control-services/tts/voc-tts.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_services/control-services/tts/voc-tts.control-service.js +19 -4
- package/server/build/src/_modules/ccap-agent/_modules/integrations/_modules/voice/_services/control-services/tts/voc-tts.control-service.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-definition.const.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-definition.const.js +4 -0
- package/server/build/src/_modules/ccap-agent/_modules/tools/_modules/fixed-tools/_modules/file-tools/_modules/file-handling/_collections/consts/fh-handling-tool-definition.const.js.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_services/tls-execution.control-service.d.ts +9 -0
- package/server/build/src/_modules/ccap-agent/_modules/tools/_services/tls-execution.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/ccap-agent/_modules/tools/_services/tls-execution.control-service.js +40 -2
- package/server/build/src/_modules/ccap-agent/_modules/tools/_services/tls-execution.control-service.js.map +1 -1
- package/client-dist/project-source-routed.module-N76TUCOI.js +0 -2
- /package/client-dist/{agent-instances.module-T6EFJFPE.js.map → agent-instances.module-CWOIQQ77.js.map} +0 -0
- /package/client-dist/{ca.module-NCBI74FP.js.map → ca.module-WN5ZJX3W.js.map} +0 -0
- /package/client-dist/{cc-usage-dashboard.component-Q3FBUIIR.js.map → cc-usage-dashboard.component-26JCGRDJ.js.map} +0 -0
- /package/client-dist/{cc.module-CIY6QMB5.js.map → cc.module-OTFOVDK6.js.map} +0 -0
- /package/client-dist/{chunk-VTB3IOVV.js.map → chunk-2XWVIUOT.js.map} +0 -0
- /package/client-dist/{chunk-3N2JTN7N.js.map → chunk-35GZKIHM.js.map} +0 -0
- /package/client-dist/{chunk-MS2KQ2G4.js.map → chunk-3B43AFFF.js.map} +0 -0
- /package/client-dist/{chunk-Q7ORWYDO.js.map → chunk-3BNJTYQO.js.map} +0 -0
- /package/client-dist/{chunk-M6EVLEFQ.js.map → chunk-3UWSVQYY.js.map} +0 -0
- /package/client-dist/{chunk-QP53M3ES.js.map → chunk-43DAQMAP.js.map} +0 -0
- /package/client-dist/{chunk-YXBF6EUR.js.map → chunk-4DVJMOGV.js.map} +0 -0
- /package/client-dist/{chunk-ASAT75IU.js.map → chunk-4HBQE4BE.js.map} +0 -0
- /package/client-dist/{chunk-GTMPSTDI.js.map → chunk-4Q4L27AF.js.map} +0 -0
- /package/client-dist/{chunk-YZ27TRGU.js.map → chunk-4SA3LZAD.js.map} +0 -0
- /package/client-dist/{chunk-EVV5L3LF.js.map → chunk-4SDD3VFR.js.map} +0 -0
- /package/client-dist/{chunk-SNRZOR27.js.map → chunk-4WR3JURO.js.map} +0 -0
- /package/client-dist/{chunk-QKA6WOBV.js.map → chunk-5BAOJQJC.js.map} +0 -0
- /package/client-dist/{chunk-IFF2675Y.js.map → chunk-5YESEEVR.js.map} +0 -0
- /package/client-dist/{chunk-GDAWHJEQ.js.map → chunk-7CECCKGS.js.map} +0 -0
- /package/client-dist/{chunk-N72DAUY2.js.map → chunk-7KQEZMY4.js.map} +0 -0
- /package/client-dist/{chunk-PR5JV6XX.js.map → chunk-7LKN2H5J.js.map} +0 -0
- /package/client-dist/{chunk-YYUKX4AF.js.map → chunk-7PEB3BOC.js.map} +0 -0
- /package/client-dist/{chunk-6HZB6QSW.js.map → chunk-CULH4KGF.js.map} +0 -0
- /package/client-dist/{chunk-P5OOFVBC.js.map → chunk-CWHBS3BF.js.map} +0 -0
- /package/client-dist/{chunk-NEYB4VGZ.js.map → chunk-ED2O3QVI.js.map} +0 -0
- /package/client-dist/{chunk-N4KTLLCR.js.map → chunk-EKLOUDYW.js.map} +0 -0
- /package/client-dist/{chunk-2ZI26XMZ.js.map → chunk-EQMEMEMQ.js.map} +0 -0
- /package/client-dist/{chunk-BWH3JLHB.js.map → chunk-F344AZJS.js.map} +0 -0
- /package/client-dist/{chunk-E5QVIO4C.js.map → chunk-FE5ELX22.js.map} +0 -0
- /package/client-dist/{chunk-MLGDSF43.js.map → chunk-HWIGSS33.js.map} +0 -0
- /package/client-dist/{chunk-7IUV4ACY.js.map → chunk-IGQJJABX.js.map} +0 -0
- /package/client-dist/{chunk-AWIEYMZV.js.map → chunk-IUTUQEPX.js.map} +0 -0
- /package/client-dist/{chunk-4UKDXJIX.js.map → chunk-J7ZVFHVR.js.map} +0 -0
- /package/client-dist/{chunk-FYMVJNXZ.js.map → chunk-JBSJWONA.js.map} +0 -0
- /package/client-dist/{chunk-QIXXTQJJ.js.map → chunk-K6YB4Q4Y.js.map} +0 -0
- /package/client-dist/{chunk-6UQHXR3E.js.map → chunk-M2BIMBKO.js.map} +0 -0
- /package/client-dist/{chunk-I7TF6JIJ.js.map → chunk-MPGR64BK.js.map} +0 -0
- /package/client-dist/{chunk-2DR4NRFY.js.map → chunk-MWX2FEYH.js.map} +0 -0
- /package/client-dist/{chunk-OKZUEJZL.js.map → chunk-NCFK56ZV.js.map} +0 -0
- /package/client-dist/{chunk-BR7XXFVN.js.map → chunk-OMGH7GAL.js.map} +0 -0
- /package/client-dist/{chunk-SXZ6SL34.js.map → chunk-PFOAVOJI.js.map} +0 -0
- /package/client-dist/{chunk-NQ33IXIS.js.map → chunk-PNT3PBKY.js.map} +0 -0
- /package/client-dist/{chunk-5BYRCQ4G.js.map → chunk-PWM7U52X.js.map} +0 -0
- /package/client-dist/{chunk-QQ2C4ATW.js.map → chunk-Q2XBBF3S.js.map} +0 -0
- /package/client-dist/{chunk-FWVYBWXT.js.map → chunk-Q6DRW5RY.js.map} +0 -0
- /package/client-dist/{chunk-YWLPTL5I.js.map → chunk-QGFGI2WD.js.map} +0 -0
- /package/client-dist/{chunk-F4DZS3GH.js.map → chunk-QLSM7AU5.js.map} +0 -0
- /package/client-dist/{chunk-PY7ZXKHG.js.map → chunk-RVLDL574.js.map} +0 -0
- /package/client-dist/{chunk-H3QXSZIS.js.map → chunk-SYFEIBHY.js.map} +0 -0
- /package/client-dist/{chunk-F4BNEQYE.js.map → chunk-TKLG6NOU.js.map} +0 -0
- /package/client-dist/{chunk-UKVDEDDM.js.map → chunk-U2NJOYW5.js.map} +0 -0
- /package/client-dist/{chunk-EUEEHSUR.js.map → chunk-VMHSKHAH.js.map} +0 -0
- /package/client-dist/{chunk-HZSNYOA4.js.map → chunk-VVFKXESB.js.map} +0 -0
- /package/client-dist/{chunk-66FQLE3Y.js.map → chunk-VYBCAMPC.js.map} +0 -0
- /package/client-dist/{chunk-6RYNRTDZ.js.map → chunk-W3BQ3EYT.js.map} +0 -0
- /package/client-dist/{chunk-QXQWNRPL.js.map → chunk-WCOEXEAR.js.map} +0 -0
- /package/client-dist/{chunk-NIEBWTUO.js.map → chunk-WJTRYBJQ.js.map} +0 -0
- /package/client-dist/{chunk-WTIUHUMN.js.map → chunk-YDEFBLVL.js.map} +0 -0
- /package/client-dist/{chunk-A37XCJWY.js.map → chunk-YLVTK6CQ.js.map} +0 -0
- /package/client-dist/{chunk-DZFGKIFO.js.map → chunk-ZKQBXFWO.js.map} +0 -0
- /package/client-dist/{consultant.module-RMGDKO7R.js.map → consultant.module-POQU3QQP.js.map} +0 -0
- /package/client-dist/{crd.module-7WOWOPYH.js.map → crd.module-UJQDY32U.js.map} +0 -0
- /package/client-dist/{dashboard.module-UH6C2XJC.js.map → dashboard.module-OQ23RHCA.js.map} +0 -0
- /package/client-dist/{do.module-DITA42VY.js.map → do.module-OJTKSFG4.js.map} +0 -0
- /package/client-dist/{document-library.module-NDPVJJ3N.js.map → document-library.module-X4SNNCTE.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-JROZZ6QM.js.map → embedding-eval.module-XDJXQR47.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-OYU7CQPU.js.map → embedding-registry.module-JT6VKF4E.js.map} +0 -0
- /package/client-dist/{err.module-M7L4RF46.js.map → err.module-45M6UFPK.js.map} +0 -0
- /package/client-dist/{feedback.module-ZG272S6E.js.map → feedback.module-BXM4MEMF.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-PVVACC4N.js.map → host-runtime-mcp.module-Z7QHTOFQ.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-FKNKOKZ4.js.map → live-dev-pipeline.module-2Q7L5OZE.js.map} +0 -0
- /package/client-dist/{logs.module-MN6SDRMH.js.map → logs.module-VT3K4D3C.js.map} +0 -0
- /package/client-dist/{main-NHPLEEM5.js.map → main-FAF4OLPB.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-A3XO6MIC.js.map → master-control-remote-poc.module-GNRGR433.js.map} +0 -0
- /package/client-dist/{mobile-app.module-QADWA6MM.js.map → mobile-app.module-TOGFSAHF.js.map} +0 -0
- /package/client-dist/{model-registry.module-IRG2HWJO.js.map → model-registry.module-2WGFZ5JY.js.map} +0 -0
- /package/client-dist/{oc.module-52TKAH2Q.js.map → oc.module-TWSBQN4R.js.map} +0 -0
- /package/client-dist/{orc.module-HSTBXIQM.js.map → orc.module-V4FGV47K.js.map} +0 -0
- /package/client-dist/{project-management.module-FL2RWRKY.js.map → project-management.module-3JJCH5KY.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-N76TUCOI.js.map → project-source-routed.module-HTFOG5YI.js.map} +0 -0
- /package/client-dist/{scheduler.module-XYY22JMT.js.map → scheduler.module-X7BDYQ7J.js.map} +0 -0
- /package/client-dist/{session.module-N2DJOIHD.js.map → session.module-T2SWWTDD.js.map} +0 -0
- /package/client-dist/{set.module-XW5X3ZLY.js.map → set.module-CGMLFMSF.js.map} +0 -0
- /package/client-dist/{setup.module-B4QMBFKV.js.map → setup.module-TALL5C3O.js.map} +0 -0
- /package/client-dist/{terminals.module-24K6SSFO.js.map → terminals.module-O7ZKQ3SG.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-IW7VPFDD.js.map → voice-notes-poc.module-7GMDVTT7.js.map} +0 -0
- /package/client-dist/{wfs.module-S2SMAT5Z.js.map → wfs.module-XDQFGKMY.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as ne,d as Xe,e as F,f as oe,h as Ye}from"./chunk-IFF2675Y.js";import{a as Ce}from"./chunk-BWH3JLHB.js";import"./chunk-PY7ZXKHG.js";import"./chunk-P5OOFVBC.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import{a as ge}from"./chunk-2DR4NRFY.js";import"./chunk-GDAWHJEQ.js";import{a as Qe}from"./chunk-7JUIBZEE.js";import{b as P,f as He,g as Ke}from"./chunk-F4DZS3GH.js";import{a as ke}from"./chunk-I7TF6JIJ.js";import"./chunk-ASAT75IU.js";import"./chunk-EUEEHSUR.js";import"./chunk-M6EVLEFQ.js";import"./chunk-NEYB4VGZ.js";import"./chunk-4UKDXJIX.js";import"./chunk-V3VQWJQL.js";import"./chunk-A37XCJWY.js";import{e as J}from"./chunk-6UQHXR3E.js";import{a as Ue}from"./chunk-FLAJXIYW.js";import{c as H,f as K,g as _e,h as me,i as X,j as ue,n as he,o as fe,p as xe,s as Be,v as Y}from"./chunk-EO4DNTT4.js";import"./chunk-5UPNU54P.js";import"./chunk-MS2KQ2G4.js";import{I as qe,p as re}from"./chunk-WR6NSOQ2.js";import{Aa as Ae,Ba as Ne,C as x,D as O,E as De,Eb as je,Fa as a,Ga as g,Ha as v,Hb as pe,Ia as de,J as m,K as u,Kb as Q,Ma as N,N as Me,Na as z,Oa as W,P as Pe,T as Le,Ta as R,U as Fe,Va as ze,Wa as We,Z as s,a as ee,aa as b,b as te,ca as le,da as k,ga as C,h as ie,hb as B,ia as E,k as _,la as f,na as ce,oa as D,p as w,pa as M,qa as n,ra as o,sa as A,t as G,ua as y,ub as $,va as p,wa as d,xb as Ge,y as j,z as Ie,za as Ve}from"./chunk-TBMJSIBB.js";var q=ie(re());var T=ie(re());var Je=(()=>{class r{http=x(Ge);baseUrl=`${qe.api.baseUrl}/orchestrator`;createOrchestrator(e){return w(this.http.post(this.baseUrl,e))}listOrchestrators(e={}){let t=[];e.projectId&&t.push(`projectId=${encodeURIComponent(e.projectId)}`),e.scope&&t.push(`scope=${encodeURIComponent(e.scope)}`),e.status&&t.push(`status=${encodeURIComponent(e.status)}`);let i=t.length?`?${t.join("&")}`:"";return w(this.http.get(`${this.baseUrl}${i}`))}getOrchestrator(e){return w(this.http.get(`${this.baseUrl}/${e}`))}startOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/start`,{}))}pauseOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/pause`,{}))}resumeOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/resume`,{}))}stopOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/stop`,{}))}listTasks(e,t){let i=t?`?status=${encodeURIComponent(t)}`:"";return w(this.http.get(`${this.baseUrl}/${e}/tasks${i}`))}listMessages(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/messages${i}`))}postUserMessage(e,t){return w(this.http.post(`${this.baseUrl}/${e}/messages`,{rawContent:t}))}listQuestions(e,t=!1){let i=t?"?openOnly=true":"";return w(this.http.get(`${this.baseUrl}/${e}/questions${i}`))}confirmBootstrap(e){return w(this.http.post(`${this.baseUrl}/${e}/bootstrap/confirm`,{}))}submitQuestionAnswer(e,t,i){return w(this.http.post(`${this.baseUrl}/${e}/questions/${t}/answer`,{answer:i}))}switchMode(e,t){return w(this.http.post(`${this.baseUrl}/${e}/mode`,{mode:t}))}getGlobalSummary(){return w(this.http.get(`${this.baseUrl}/summary`))}listWorkflows(e){return w(this.http.get(`${this.baseUrl}/${e}/workflows`))}getWorkflowById(e,t){return w(this.http.get(`${this.baseUrl}/${e}/workflows/${t}`))}listBatches(e){return w(this.http.get(`${this.baseUrl}/${e}/batches`))}listDecisions(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/decisions${i}`))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var I=(()=>{class r{orc_AS=x(Je);orchestratorListRaw_$=b([]);currentOrchestratorRaw_$=b(null);currentTasksRaw_$=b([]);currentMessagesRaw_$=b([]);isResponseGeneratingRaw_$=b(!1);orchestratorList_$=this.orchestratorListRaw_$.asReadonly();currentOrchestrator_$=this.currentOrchestratorRaw_$.asReadonly();currentTasks_$=this.currentTasksRaw_$.asReadonly();currentMessages_$=this.currentMessagesRaw_$.asReadonly();isResponseGenerating_$=this.isResponseGeneratingRaw_$.asReadonly();activeCount_$=B(()=>this.orchestratorList_$().filter(e=>e.status==="active"||e.status==="bootstrap"||e.status==="waiting-for-user").length);refreshList(){return _(this,null,function*(){try{let e=yield this.orc_AS.listOrchestrators();this.orchestratorListRaw_$.set(e.orchestrators)}catch(e){T.DyFM_Log.error("Orchestrator_DataService | refreshList failed",e)}})}refreshCurrent(e){return _(this,null,function*(){try{let t=yield this.orc_AS.getOrchestrator(e);this.currentOrchestratorRaw_$.set(t.orchestrator)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrent failed",t)}})}refreshCurrentTasks(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listTasks(e);this.currentTasksRaw_$.set(t.tasks)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentTasks failed",t)}})}createOrchestrator(e){return _(this,null,function*(){let t=yield this.orc_AS.createOrchestrator(e);return yield this.refreshList(),t.orchestrator})}startOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.startOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}pauseOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.pauseOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}resumeOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.resumeOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}stopOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.stopOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}confirmBootstrap(e){return _(this,null,function*(){yield this.orc_AS.confirmBootstrap(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}switchMode(e,t){return _(this,null,function*(){yield this.orc_AS.switchMode(e,t),yield this.refreshCurrent(e)})}refreshCurrentMessages(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listMessages(e,100);this.currentMessagesRaw_$.set(t.messages)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentMessages failed",t)}})}setResponseGenerating(e){this.isResponseGeneratingRaw_$.set(e)}clearCurrent(){this.currentOrchestratorRaw_$.set(null),this.currentTasksRaw_$.set([]),this.currentMessagesRaw_$.set([]),this.isResponseGeneratingRaw_$.set(!1)}listWorkflows(e){return _(this,null,function*(){try{return(yield this.orc_AS.listWorkflows(e)).workflows}catch(t){return T.DyFM_Log.error("Orchestrator_DataService | listWorkflows failed",t),[]}})}getWorkflowById(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.getWorkflowById(e,t)).workflow}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | getWorkflowById failed",i),null}})}listMessages(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listMessages(e,t)).messages}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listMessages failed",i),[]}})}postUserMessage(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.postUserMessage(e,t)).message}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | postUserMessage failed",i),null}})}listQuestions(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listQuestions(e,t)).questions}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listQuestions failed",i),[]}})}submitQuestionAnswer(e,t,i){return _(this,null,function*(){try{return(yield this.orc_AS.submitQuestionAnswer(e,t,i)).question}catch(l){return T.DyFM_Log.error("Orchestrator_DataService | submitQuestionAnswer failed",l),null}})}getGlobalSummary(){return _(this,null,function*(){try{return(yield this.orc_AS.getGlobalSummary()).summary}catch(e){return T.DyFM_Log.error("Orchestrator_DataService | getGlobalSummary failed",e),null}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var st=new Set(["orc:created","orc:statusChanged","orc:started","orc:paused","orc:resumed","orc:stopped","orc:waitingForUser"]),lt=new Set(["orc:statusChanged","orc:modeChanged","orc:iterationStarted","orc:iterationCompleted","orc:decisionAdded","orc:taskCreated","orc:taskStatusChanged","orc:taskCompleted","orc:batchStarted","orc:batchCompleted","orc:agentLaunched","orc:agentCompleted","orc:userQuestionAsked","orc:userQuestionAnswered","orc:messageAdded","orc:bootstrapCompleted","orc:responseStarted","orc:responseCompleted","orc:responseToolCall","orc:responseToolResult"]),ct=new Set(["orc:messageAdded","orc:responseToolCall","orc:responseToolResult"]),be=(()=>{class r{ccapSocket_CS=x(J);orchestrator_DS=x(I);globalSub=null;detailSub=null;responseSub=null;currentOrchestratorId=null;subscribeGlobal(){this.globalSub||(this.globalSub=this.ccapSocket_CS.event$.pipe(G(e=>st.has(e.event))).subscribe(()=>_(this,null,function*(){yield this.orchestrator_DS.refreshList()})))}subscribeDetail(e){this.unsubscribeDetail(),this.currentOrchestratorId=e,this.detailSub=this.ccapSocket_CS.event$.pipe(G(t=>lt.has(t.event)&&this.isForCurrent(t.payload))).subscribe(t=>_(this,null,function*(){let i=this.currentOrchestratorId;i&&(t.event==="orc:responseStarted"&&this.orchestrator_DS.setResponseGenerating(!0),t.event==="orc:responseCompleted"&&this.orchestrator_DS.setResponseGenerating(!1),yield Promise.all([this.orchestrator_DS.refreshCurrent(i),this.orchestrator_DS.refreshCurrentTasks(i)]))})),this.responseSub=this.ccapSocket_CS.event$.pipe(G(t=>ct.has(t.event)&&this.isForCurrent(t.payload))).subscribe(()=>_(this,null,function*(){let t=this.currentOrchestratorId;t&&(yield this.orchestrator_DS.refreshCurrentMessages(t))}))}unsubscribeDetail(){this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.detailSub=null,this.responseSub=null,this.currentOrchestratorId=null}isForCurrent(e){return this.currentOrchestratorId?e?.orchestratorId===this.currentOrchestratorId:!1}ngOnDestroy(){this.globalSub?.unsubscribe(),this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.globalSub=null,this.detailSub=null,this.responseSub=null}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Oe=[{id:"orc-wake",label:"Wake",phase:"wake",category:F.milestone},{id:"orc-collect",label:"Collect",phase:"collect",category:F.phase},{id:"orc-analyze",label:"Analyze",phase:"analyze",category:F.llmCall},{id:"orc-sync-tasks",label:"Sync Tasks",phase:"sync-tasks",category:F.phase},{id:"orc-decide-next",label:"Decide Next",phase:"decide-next",category:F.llmCall},{id:"orc-execute",label:"Execute",phase:"execute",category:F.phase},{id:"orc-report",label:"Report",phase:"report",category:F.phase},{id:"orc-sleep",label:"Sleep",phase:"sleep",category:F.milestone}],ae=class{static buildSkeletonLayout(){let c=48+220/2,e=48,t=[],i=[];for(let S=0;S<Oe.length;S++){let V=Oe[S],Z=V.category===F.milestone,U=Z?200:220,Te=Z?48:60,at=oe.createNode({id:V.id,category:V.category,label:V.label,phase:V.phase,x:c-U/2,y:e,width:U,height:Te});t.push(at),S>0&&i.push(oe.createEdge(Oe[S-1].id,V.id,Xe.sequential)),e+=Te+36}let l=i.map(S=>{let V=t.find(U=>U.id===S.sourceNodeId),Z=t.find(U=>U.id===S.targetNodeId);return!V||!Z?S:te(ee({},S),{pathD:oe.computeEdgePath(V,Z,S.category)})}),h=oe.recalculateViewBox(t,48);return{nodes:t,edges:l,viewBox:h,loopContainerBounds:null}}};var ut={wake:"orc-wake",collect:"orc-collect",analyze:"orc-analyze","sync-tasks":"orc-sync-tasks","decide-next":"orc-decide-next",execute:"orc-execute",report:"orc-report",sleep:"orc-sleep"},ht=["orc-wake","orc-collect","orc-analyze","orc-sync-tasks","orc-decide-next","orc-execute","orc-report","orc-sleep"],ft=new Set(["orc:iterationStarted","orc:iterationCompleted","orc:statusChanged","orc:started","orc:paused","orc:stopped"]),Se=(()=>{class r{ccapSocket_CS=x(J);destroyRef=x(Pe);graphLayout_$=b(null);activeNodeId_$=b("");selectedNodeId_$=b("");isGraphOpen_$=b(!1);graphOrchestratorId_$=b("");isLoading_$=b(!1);eventSubscription=null;constructor(){this.destroyRef.onDestroy(()=>{this.disposeSubscription()})}openGraph(e){this.disposeSubscription(),this.resetState(),this.graphOrchestratorId_$.set(e),this.isGraphOpen_$.set(!0);let t=ae.buildSkeletonLayout();this.graphLayout_$.set(t),this.eventSubscription=this.ccapSocket_CS.event$.pipe(G(i=>ft.has(i.event)&&i.payload?.orchestratorId===e)).subscribe(i=>{this.applyOrcEvent(i.event,i.payload)})}closeGraph(){this.disposeSubscription(),this.isGraphOpen_$.set(!1),this.selectedNodeId_$.set("")}selectNode(e){let t=this.selectedNodeId_$();this.selectedNodeId_$.set(t===e?"":e)}clearSelection(){this.selectedNodeId_$.set("")}applyOrcEvent(e,t){if(e==="orc:iterationStarted"){this.applyPhaseActive("wake");return}if(e==="orc:iterationCompleted"){this.markAllCompleted();return}if(e==="orc:statusChanged"){let i=t.status;i==="active"&&this.applyPhaseActive("wake"),(i==="paused"||i==="stopped"||i==="failed")&&this.markAllCompleted();return}if(e==="orc:started"){let i=ae.buildSkeletonLayout();this.graphLayout_$.set(i)}}applyPhaseActive(e){let t=ut[e];if(!t)return;let i=this.graphLayout_$();if(!i)return;let l=!1;for(let h of ht)h===t?(i=this.setNodeState(i,h,ne.active),l=!0):l||(i=this.setNodeState(i,h,ne.completed));this.activeNodeId_$.set(t),this.graphLayout_$.set(i)}markAllCompleted(){let e=this.graphLayout_$();if(e){for(let t of e.nodes)t.state!==ne.error&&(e=this.setNodeState(e,t.id,ne.completed));this.activeNodeId_$.set(""),this.graphLayout_$.set(e)}}setNodeState(e,t,i){let l=e.nodes.findIndex(S=>S.id===t);if(l<0)return e;let h=[...e.nodes];return h[l]=te(ee({},h[l]),{state:i}),te(ee({},e),{nodes:h})}resetState(){this.graphLayout_$.set(null),this.activeNodeId_$.set(""),this.selectedNodeId_$.set(""),this.isLoading_$.set(!1)}disposeSubscription(){this.eventSubscription&&(this.eventSubscription.unsubscribe(),this.eventSubscription=null)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var we=ie(re());var ye=class r{static mapAll(c){return c.map(e=>r.mapSingle(e))}static mapSingle(c){let e=r.resolveKind(c),t=c.from==="user";return{listKey:c._id,kind:e,bodyText:c.rawContent,timestampIso:c.__created,toolName:c.toolName??void 0,isUserAligned:t,headerStatusDot:e===P.error?"error":void 0,flags:{showCopy:!0,showRawInfo:!1,useEditDiffForExpandable:!1},toolCallId:c.toolCallId??void 0}}static resolveKind(c){switch(c.messageType){case"user-message":return P.userPrompt;case"orchestrator-response":return P.assistant;case"orchestrator-thinking":return P.thinking;case"tool-call":return P.tool;case"tool-result":return P.toolResult;case"iteration-summary":return P.statusUpdate;case"status-message":return P.info;default:return c.from==="user"?P.userPrompt:P.assistant}}};var xt=["scrollAnchor"],Ct=(r,c)=>c.listKey,gt=(r,c)=>c._id;function bt(r,c){if(r&1&&(n(0,"p",14),a(1),o()),r&2){let e=d().$implicit;s(),v("Kontext: ",e.context,"")}}function St(r,c){if(r&1){let e=y();n(0,"div",15)(1,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"yes"))}),a(2," Igen "),o(),n(3,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"no"))}),a(4," Nem "),o(),n(5,"button",19),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(6," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),E("bg-green-700",t.selectedChoice[e._id]==="yes")("bg-slate-700",t.selectedChoice[e._id]!=="yes"),s(2),E("bg-red-700",t.selectedChoice[e._id]==="no")("bg-slate-700",t.selectedChoice[e._id]!=="no"),s(2),C("disabled",!t.selectedChoice[e._id])}}function yt(r,c){if(r&1){let e=y();n(0,"label",20)(1,"input",22),p("change",function(){let i=m(e).$implicit,l=d(2).$implicit,h=d(2);return u(h.handleMultipleChoice(l._id,i))}),o(),a(2),o()}if(r&2){let e=c.$implicit,t=d(2).$implicit,i=d(2);s(),C("name",t._id)("value",e)("checked",i.selectedChoice[t._id]===e),s(),v(" ",e," ")}}function wt(r,c){if(r&1){let e=y();n(0,"div",16),D(1,yt,3,4,"label",20,ce),n(3,"button",21),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(4," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),M(e.possibleAnswers),s(2),C("disabled",!t.selectedChoice[e._id])}}function vt(r,c){if(r&1){let e=y();n(0,"div",17)(1,"textarea",23),W("ngModelChange",function(i){m(e);let l=d().$implicit,h=d(2);return z(h.answerDrafts[l._id],i)||(h.answerDrafts[l._id]=i),u(i)}),o(),n(2,"button",24),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(3," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),N("ngModel",t.answerDrafts[e._id]),C("name",e._id),s(),C("disabled",!t.answerDrafts[e._id])}}function kt(r,c){if(r&1&&(n(0,"div",12)(1,"p",13),a(2),o(),k(3,bt,2,1,"p",14)(4,St,7,9,"div",15)(5,wt,5,1,"div",16)(6,vt,4,3,"div",17),o()),r&2){let e=c.$implicit;s(2),g(e.questionText),s(),f(e.context?3:-1),s(),f(e.questionType==="yes-no"?4:-1),s(),f(e.questionType==="multiple-choice"&&e.possibleAnswers?5:-1),s(),f(e.questionType==="open"||e.questionType==="task-priority"?6:-1)}}function Et(r,c){if(r&1&&(n(0,"div",2)(1,"h3",11),a(2),o(),D(3,kt,7,5,"div",12,gt),o()),r&2){let e=d();s(2),v("V\xE1laszra v\xE1r\xF3 k\xE9rd\xE9sek (",e.openQuestions_$().length,")"),s(),M(e.openQuestions_$())}}function Ot(r,c){if(r&1&&A(0,"app-s-agent-console-message-bubble",4),r&2){let e=c.$implicit;C("view",e)}}function Rt(r,c){r&1&&(n(0,"p",5),a(1,"M\xE9g nincs \xFCzenet."),o())}function $t(r,c){r&1&&(n(0,"div",6)(1,"div",25)(2,"span",26),a(3,"ORCHESTRATOR"),o(),n(4,"span",27),a(5,"gondolkodik..."),o()()())}var Tt=new Set(["orc:messageAdded","orc:userQuestionAsked","orc:userQuestionAnswered"]),tt=(()=>{class r extends Ce{orchestrator_DS=x(I);ccapSocket_CS=x(J);orchestratorId;scrollAnchor;questionsRaw_$=b([]);bubbleViews_$=B(()=>ye.mapAll(this.orchestrator_DS.currentMessages_$()));openQuestions_$=this.questionsRaw_$.asReadonly();isResponseGenerating_$=this.orchestrator_DS.isResponseGenerating_$;userInput="";answerDrafts={};selectedChoice={};constructor(){super()}ngOnInit(){this.refresh(),this.addSubscription(this.ccapSocket_CS.event$.pipe(G(e=>Tt.has(e.event)&&e.payload?.orchestratorId===this.orchestratorId)).subscribe(()=>_(this,null,function*(){yield this.refresh(),this.scrollToBottom()})))}handleSendMessage(){return _(this,null,function*(){if(!this.userInput)return;let e=this.userInput;this.userInput="";try{yield this.orchestrator_DS.postUserMessage(this.orchestratorId,e),yield this.orchestrator_DS.refreshCurrentMessages(this.orchestratorId),this.scrollToBottom()}catch(t){we.DyFM_Log.error("ORC_Chat | sendMessage failed",t),this.userInput=e}})}handleSubmitAnswer(e,t){return _(this,null,function*(){let i=t==="multiple-choice"||t==="yes-no"?this.selectedChoice[e]??"":this.answerDrafts[e]??"";if(i)try{yield this.orchestrator_DS.submitQuestionAnswer(this.orchestratorId,e,i),delete this.answerDrafts[e],delete this.selectedChoice[e],yield this.refresh()}catch(l){we.DyFM_Log.error("ORC_Chat | submitAnswer failed",l)}})}handleYesNoChoice(e,t){this.selectedChoice[e]=t}handleMultipleChoice(e,t){this.selectedChoice[e]=t}refresh(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listQuestions(this.orchestratorId,!0);this.questionsRaw_$.set(e)}catch(e){we.DyFM_Log.error("ORC_Chat | refresh failed",e)}})}scrollToBottom(){setTimeout(()=>{this.scrollAnchor?.nativeElement?.scrollIntoView({behavior:"smooth"})},50)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-chat-panel"]],viewQuery:function(t,i){if(t&1&&Ve(xt,5),t&2){let l;Ae(l=Ne())&&(i.scrollAnchor=l.first)}},hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[le,R],decls:15,vars:5,consts:[["scrollAnchor",""],["sChatColumnHeader",""],[1,"bg-cyan-950","border-b","border-cyan-500","p-3","space-y-3"],["sChatColumnScroll","",1,"p-3","space-y-2"],[3,"view"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"flex","gap-2","py-2"],["sChatColumnComposer","",1,"border-t","border-slate-800","p-3"],[1,"flex","gap-2",3,"ngSubmit"],["rows","2","name","userInput","placeholder","\xDCzenet az Orchestrator-nak...",1,"flex-1","bg-slate-800","border","border-slate-700","rounded","px-3","py-2","text-white","text-sm","resize-none",3,"ngModelChange","ngModel"],["type","submit",1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm","self-end","whitespace-nowrap",3,"disabled"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"bg-cyan-900/50","border","border-cyan-700","rounded","p-3","space-y-2"],[1,"text-cyan-100","font-medium","text-sm"],[1,"text-xs","text-cyan-300","italic"],[1,"flex","gap-2"],[1,"space-y-1"],[1,"space-y-2"],[1,"px-3","py-1","rounded","text-sm","font-bold",3,"click"],[1,"ml-auto","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"flex","items-center","gap-2","text-sm","text-slate-200","cursor-pointer"],[1,"mt-2","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],["type","radio",3,"change","name","value","checked"],["rows","2","placeholder","V\xE1lasz...",1,"w-full","bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-sm",3,"ngModelChange","ngModel","name"],[1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"max-w-[80%]","rounded","px-3","py-2","bg-slate-800","text-slate-400","text-sm","animate-pulse"],[1,"font-mono","text-xs"],[1,"ml-2"]],template:function(t,i){if(t&1){let l=y();n(0,"app-s-session-chat-column-layout")(1,"div",1),k(2,Et,5,1,"div",2),o(),n(3,"div",3),D(4,Ot,1,1,"app-s-agent-console-message-bubble",4,Ct,!1,Rt,2,0,"p",5),k(7,$t,6,0,"div",6),A(8,"div",null,0),o(),n(10,"div",7)(11,"form",8),p("ngSubmit",function(){return m(l),u(i.handleSendMessage())}),n(12,"textarea",9),W("ngModelChange",function(S){return m(l),z(i.userInput,S)||(i.userInput=S),u(S)}),o(),n(13,"button",10),a(14," K\xFCld\xE9s "),o()()()()}t&2&&(s(2),f(i.openQuestions_$().length>0?2:-1),s(2),M(i.bubbleViews_$()),s(3),f(i.isResponseGenerating_$()?7:-1),s(5),N("ngModel",i.userInput),s(),C("disabled",!i.userInput))},dependencies:[$,Y,ue,H,K,_e,X,me,Ke,He],encapsulation:2})}return r})();var it=(()=>{class r{graph_DS=x(Se);isOpen_$=this.graph_DS.isGraphOpen_$;layout_$=this.graph_DS.graphLayout_$;activeNodeId_$=this.graph_DS.activeNodeId_$;selectedNodeId_$=this.graph_DS.selectedNodeId_$;isLoading_$=this.graph_DS.isLoading_$;handleClose(){this.graph_DS.closeGraph()}handleNodeClick(e){this.graph_DS.selectNode(e)}handleDetailClose(){this.graph_DS.clearSelection()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-graph-modal"]],standalone:!0,features:[R],decls:2,vars:6,consts:[["title","Orchestrator Flow Graph","maxWidth","7xl","headerBorderClass","border-cyan-600/30",3,"closed","isOpen","bodyFlexColumn"],[1,"flex-1","min-h-0",3,"nodeClicked","detailClosed","layout","activeNodeId","selectedNodeId","isLoading"]],template:function(t,i){t&1&&(n(0,"app-s-modal",0),p("closed",function(){return i.handleClose()}),n(1,"app-ses-graph-view",1),p("nodeClicked",function(h){return i.handleNodeClick(h)})("detailClosed",function(){return i.handleDetailClose()}),o()()),t&2&&(C("isOpen",i.isOpen_$())("bodyFlexColumn",!0),s(),C("layout",i.layout_$())("activeNodeId",i.activeNodeId_$())("selectedNodeId",i.selectedNodeId_$())("isLoading",i.isLoading_$()))},dependencies:[$,Ue,Ye],encapsulation:2})}return r})();var rt=(()=>{class r{mode_$=Fe.required({alias:"mode_$"});modeChanged=Le();handleToggle(){let t=this.mode_$()==="active"?"passive":"active";this.modeChanged.emit(t)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-mode-switcher"]],inputs:{mode_$:[1,"mode_$"]},outputs:{modeChanged:"modeChanged"},standalone:!0,features:[R],decls:5,vars:18,consts:[[1,"inline-flex","rounded-full","border","border-slate-600","overflow-hidden","text-xs","font-semibold"],["title","Auton\xF3m loop m\xF3d \u2014 az orchestrator \xF6n\xE1ll\xF3an futtatja az iter\xE1ci\xF3kat",1,"px-3","py-1","transition-colors",3,"click","disabled"],["title","Chat m\xF3d \u2014 az orchestrator a user \xFCzenetekre v\xE1laszol",1,"px-3","py-1","transition-colors",3,"click","disabled"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"button",1),p("click",function(){return i.handleToggle()}),a(2," Active Loop "),o(),n(3,"button",2),p("click",function(){return i.handleToggle()}),a(4," Chat Mode "),o()()),t&2&&(s(),E("bg-green-800",i.mode_$()==="active")("text-green-200",i.mode_$()==="active")("bg-transparent",i.mode_$()!=="active")("text-slate-400",i.mode_$()!=="active"),C("disabled",i.mode_$()==="active"),s(2),E("bg-cyan-800",i.mode_$()==="passive")("text-cyan-200",i.mode_$()==="passive")("bg-transparent",i.mode_$()!=="passive")("text-slate-400",i.mode_$()!=="passive"),C("disabled",i.mode_$()==="passive"))},encapsulation:2})}return r})();var It=(r,c)=>c._id;function Dt(r,c){r&1&&(n(0,"p",31),a(1," Nincs a sz\u0171r\u0151knek megfelel\u0151 task. "),o())}function Mt(r,c){if(r&1&&(n(0,"tr",38)(1,"td",39),a(2),o(),n(3,"td",40),a(4),o(),n(5,"td",41),a(6),o(),n(7,"td",42)(8,"span"),a(9),o()(),n(10,"td",43),a(11),o(),n(12,"td",44),a(13),o()()),r&2){let e=c.$implicit;s(2),g(e.code),s(2),g(e.title),s(2),g(e.type),s(2),E("text-red-400",e.priority==="critical")("text-orange-400",e.priority==="high")("text-slate-400",e.priority==="normal")("text-slate-600",e.priority==="low"),s(),v(" ",e.priority," "),s(2),g(e.source),s(2),v(" ",e.assignedAgentType||"\u2014"," ")}}function Pt(r,c){if(r&1&&(n(0,"div",32)(1,"div",33),a(2),n(3,"span",34),a(4),o()(),n(5,"table",35)(6,"thead",36)(7,"tr")(8,"th",37),a(9,"Code"),o(),n(10,"th",37),a(11,"Title"),o(),n(12,"th",37),a(13,"Type"),o(),n(14,"th",37),a(15,"Priority"),o(),n(16,"th",37),a(17,"Source"),o(),n(18,"th",37),a(19,"Agent"),o()()(),n(20,"tbody"),D(21,Mt,14,14,"tr",38,It),o()()()),r&2){let e=c.$implicit,t=d();s(2),v(" ",e," "),s(2),v("(",t.groupedByStatus_$()[e].length,")"),s(17),M(t.groupedByStatus_$()[e])}}var nt=(()=>{class r{orchestrator_DS=x(I);tasks_$;filterStatus_$=b("all");filterType_$=b("all");filterPriority_$=b("all");searchText_$=b("");filteredTasks_$=B(()=>{let e=this.tasks_$(),t=this.filterStatus_$(),i=this.filterType_$(),l=this.filterPriority_$(),h=this.searchText_$();return e.filter(S=>!(t!=="all"&&S.status!==t||i!=="all"&&S.type!==i||l!=="all"&&S.priority!==l||h.trim()&&!ke.includesText(S.title,h)&&!ke.includesText(S.description,h)))});groupedByStatus_$=B(()=>{let e={};for(let t of this.filteredTasks_$()){let i=t.status;e[i]||(e[i]=[]),e[i].push(t)}return e});statusOrder=["in-progress","waiting-on-agent","waiting-on-user","scheduled","pending","completed","failed","cancelled"];orderedGroupKeys_$=B(()=>{let e=this.groupedByStatus_$();return this.statusOrder.filter(t=>(e[t]?.length??0)>0)});handleFilterStatus(e){this.filterStatus_$.set(e)}handleFilterType(e){this.filterType_$.set(e)}handleFilterPriority(e){this.filterPriority_$.set(e)}handleSearchText(e){this.searchText_$.set(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-task-queue-panel"]],inputs:{tasks_$:"tasks_$"},standalone:!0,features:[R],decls:62,vars:7,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-2"],["name","filterStatus",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","all"],["value","pending"],["value","scheduled"],["value","in-progress"],["value","waiting-on-user"],["value","waiting-on-agent"],["value","completed"],["value","failed"],["value","cancelled"],["name","filterType",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","implementation"],["value","bug-fix"],["value","review"],["value","documentation"],["value","refactor"],["value","research"],["value","spec-extension"],["value","maintenance"],["value","bootstrap-project-cleanup"],["name","filterPriority",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","critical"],["value","high"],["value","normal"],["value","low"],["name","searchText","placeholder","Keres\xE9s c\xEDm / le\xEDr\xE1s...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"bg-slate-950","border","border-slate-800","rounded","overflow-hidden"],[1,"bg-slate-800","px-3","py-1","text-xs","font-bold","text-slate-300","uppercase","tracking-wider"],[1,"text-slate-500","ml-2"],[1,"w-full","text-xs"],[1,"bg-slate-900"],[1,"text-left","px-2","py-1","text-slate-400","font-normal"],[1,"border-t","border-slate-800","hover:bg-slate-800/30"],[1,"px-2","py-1","font-mono","text-cyan-400"],[1,"px-2","py-1","text-slate-200"],[1,"px-2","py-1","text-slate-400"],[1,"px-2","py-1"],[1,"px-2","py-1","text-slate-500"],[1,"px-2","py-1","text-slate-400","text-xs"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Task Queue"),o(),n(4,"span",3),a(5),o()(),n(6,"div",4)(7,"select",5),p("ngModelChange",function(h){return i.handleFilterStatus(h)}),n(8,"option",6),a(9,"\xD6sszes st\xE1tusz"),o(),n(10,"option",7),a(11,"pending"),o(),n(12,"option",8),a(13,"scheduled"),o(),n(14,"option",9),a(15,"in-progress"),o(),n(16,"option",10),a(17,"waiting-on-user"),o(),n(18,"option",11),a(19,"waiting-on-agent"),o(),n(20,"option",12),a(21,"completed"),o(),n(22,"option",13),a(23,"failed"),o(),n(24,"option",14),a(25,"cancelled"),o()(),n(26,"select",15),p("ngModelChange",function(h){return i.handleFilterType(h)}),n(27,"option",6),a(28,"\xD6sszes t\xEDpus"),o(),n(29,"option",16),a(30,"implementation"),o(),n(31,"option",17),a(32,"bug-fix"),o(),n(33,"option",18),a(34,"review"),o(),n(35,"option",19),a(36,"documentation"),o(),n(37,"option",20),a(38,"refactor"),o(),n(39,"option",21),a(40,"research"),o(),n(41,"option",22),a(42,"spec-extension"),o(),n(43,"option",23),a(44,"maintenance"),o(),n(45,"option",24),a(46,"bootstrap"),o()(),n(47,"select",25),p("ngModelChange",function(h){return i.handleFilterPriority(h)}),n(48,"option",6),a(49,"\xD6sszes priorit\xE1s"),o(),n(50,"option",26),a(51,"critical"),o(),n(52,"option",27),a(53,"high"),o(),n(54,"option",28),a(55,"normal"),o(),n(56,"option",29),a(57,"low"),o()(),n(58,"input",30),p("ngModelChange",function(h){return i.handleSearchText(h)}),o()(),k(59,Dt,2,0,"p",31),D(60,Pt,23,2,"div",32,ce),o()),t&2&&(s(5),de(" ",i.filteredTasks_$().length," / ",i.tasks_$().length," task "),s(2),C("ngModel",i.filterStatus_$()),s(19),C("ngModel",i.filterType_$()),s(21),C("ngModel",i.filterPriority_$()),s(11),C("ngModel",i.searchText_$()),s(),f(i.orderedGroupKeys_$().length===0?59:-1),s(),M(i.orderedGroupKeys_$()))},dependencies:[$,Y,fe,xe,H,he,K,X],encapsulation:2})}return r})();var Re=ie(re());var Lt=(r,c)=>c.id;function Ft(r,c){r&1&&(n(0,"p",4),a(1,"Nincs bet\xF6lt\xF6tt workflow."),o())}function Vt(r,c){if(r&1){let e=y();n(0,"div",8),p("click",function(){let i=m(e).$implicit,l=d();return u(l.handleOpenDetails(i.id))}),n(1,"h3",9),a(2),o(),n(3,"p",10),a(4),o()()}if(r&2){let e=c.$implicit;s(2),g(e.name),s(2),g(e.summary)}}function At(r,c){if(r&1){let e=y();n(0,"div",11),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),n(1,"div",12),p("click",function(i){return m(e),u(i.stopPropagation())}),n(2,"div",13)(3,"h3",14),a(4),o(),n(5,"button",15),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),a(6,"\u2715"),o()(),n(7,"pre",16),a(8),o()()()}if(r&2){let e=c;s(4),g(e.filename),s(4),g(e.rawText)}}var ot=(()=>{class r{orchestrator_DS=x(I);orchestratorId;workflowsRaw_$=b([]);selectedRaw_$=b(null);loadingRaw_$=b(!1);workflows_$=this.workflowsRaw_$.asReadonly();selected_$=this.selectedRaw_$.asReadonly();loading_$=this.loadingRaw_$.asReadonly();ngOnInit(){this.loadList()}handleOpenDetails(e){return _(this,null,function*(){try{this.loadingRaw_$.set(!0);let t=yield this.orchestrator_DS.getWorkflowById(this.orchestratorId,e);this.selectedRaw_$.set(t)}catch(t){Re.DyFM_Log.error("WorkflowLibrary | getWorkflow failed",t)}finally{this.loadingRaw_$.set(!1)}})}handleCloseDetails(){this.selectedRaw_$.set(null)}loadList(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listWorkflows(this.orchestratorId);this.workflowsRaw_$.set(e)}catch(e){Re.DyFM_Log.error("WorkflowLibrary | listWorkflows failed",e)}})}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-workflow-library-panel"]],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[R],decls:11,vars:3,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"text-sm","text-slate-500","italic"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-2"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition",3,"click"],[1,"text-cyan-400","font-mono","text-sm"],[1,"text-xs","text-slate-400","mt-1","line-clamp-3"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50",3,"click"],[1,"bg-slate-900","border","border-cyan-700","rounded","p-4","max-w-3xl","max-h-[80vh]","overflow-auto","w-full",2,"max-height","80dvh",3,"click"],[1,"flex","items-center","justify-between","mb-3"],[1,"text-cyan-300","font-bold"],[1,"text-slate-400","hover:text-white",3,"click"],[1,"text-xs","text-slate-200","whitespace-pre-wrap","font-mono"]],template:function(t,i){if(t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Workflow Library"),o(),n(4,"span",3),a(5),o()(),k(6,Ft,2,0,"p",4),n(7,"div",5),D(8,Vt,5,2,"div",6,Lt),o(),k(10,At,9,2,"div",7),o()),t&2){let l;s(5),v("",i.workflows_$().length," workflow"),s(),f(i.workflows_$().length===0?6:-1),s(2),M(i.workflows_$()),s(2),f((l=i.selected_$())?10:-1,l)}},dependencies:[$],encapsulation:2})}return r})();function zt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleStart())}),a(1,"Start"),o()}}function Wt(r,c){if(r&1){let e=y();n(0,"button",28),p("click",function(){m(e);let i=d(2);return u(i.handlePause())}),a(1,"Pause"),o()}}function Gt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleResume())}),a(1,"Resume"),o()}}function jt(r,c){if(r&1){let e=y();n(0,"button",29),p("click",function(){m(e);let i=d(2);return u(i.handleStop())}),a(1,"Stop"),o()}}function Bt(r,c){if(r&1){let e=y();n(0,"div",18)(1,"div")(2,"h3",30),a(3,"Bootstrap \u2014 user j\xF3v\xE1hagy\uFFFD\uFFFDs sz\xFCks\xE9ges"),o(),n(4,"p",31),a(5,"N\xE9zd \xE1t a task-list\xE1t, \xE9s kattints az Elfogadom gombra."),o()(),n(6,"button",32),p("click",function(){m(e);let i=d(2);return u(i.handleConfirmBootstrap())}),a(7," Elfogadom "),o()()}}function qt(r,c){if(r&1&&A(0,"app-orc-task-queue-panel",24),r&2){let e=d(2);C("tasks_$",e.tasks_$)}}function Ut(r,c){if(r&1&&A(0,"app-orc-workflow-library-panel",25),r&2){let e,t=d(2);C("orchestratorId",(e=t.orchestratorId)!==null&&e!==void 0?e:"")}}function Qt(r,c){if(r&1&&(n(0,"div",26)(1,"div")(2,"span",33),a(3,"Scope"),o(),n(4,"span",34),a(5),o()(),n(6,"div")(7,"span",33),a(8,"Projekt"),o(),n(9,"span",35),a(10),o()(),n(11,"div")(12,"span",33),a(13,"LLM"),o(),n(14,"span",34),a(15),o()(),n(16,"div")(17,"span",33),a(18,"Iter\xE1ci\xF3"),o(),n(19,"span",36),a(20),o()(),n(21,"div")(22,"span",33),a(23,"Max parallel"),o(),n(24,"span",36),a(25),o()(),n(26,"div")(27,"span",33),a(28,"Poll (s)"),o(),n(29,"span",36),a(30),o()(),n(31,"div")(32,"span",33),a(33,"Mode"),o(),n(34,"span",34),a(35),o()()()),r&2){let e=d();s(5),g(e.scope),s(5),g(e.projectId||"\u2014"),s(5),de("",e.providerName," / ",e.model,""),s(5),g(e.iterationCount),s(5),g(e.maxParallelism),s(5),g(e.pollIntervalSeconds),s(5),g(e.operationMode)}}function Ht(r,c){if(r&1){let e=y();n(0,"app-s-session-detail-three-column-layout",2),p("endResizeStart",function(i){m(e);let l=d();return u(l.handleSidebarResizeStart(i))}),n(1,"div",3)(2,"div",4)(3,"a",5),a(4,"\u2190"),o(),n(5,"div",6)(6,"h1",7),a(7),o(),n(8,"p",8),a(9),o()(),n(10,"span",9),a(11),o(),n(12,"app-orc-mode-switcher",10),p("modeChanged",function(i){m(e);let l=d();return u(l.handleModeSwitch(i))}),o(),A(13,"span",11),n(14,"div",12),k(15,zt,2,0,"button",13)(16,Wt,2,0,"button",14)(17,Gt,2,0,"button",13)(18,jt,2,0,"button",15),o(),n(19,"button",16),p("click",function(){m(e);let i=d();return u(i.handleOpenGraph())}),a(20," Graph "),o(),n(21,"button",17),p("click",function(){m(e);let i=d();return u(i.handleToggleSidebar())}),a(22),o()(),k(23,Bt,8,0,"div",18),A(24,"app-orc-chat-panel",19),o(),n(25,"div",20)(26,"div",21)(27,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="tasks")}),a(28),o(),n(29,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="workflows")}),a(30," Workflows "),o(),n(31,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="info")}),a(32," Info "),o()(),n(33,"div",23),k(34,qt,1,1,"app-orc-task-queue-panel",24)(35,Ut,1,1,"app-orc-workflow-library-panel",25)(36,Qt,36,8,"div",26),o()()()}if(r&2){let e,t=c,i=d();C("isStartOpen",!1)("isEndOpen",i.isSidebarOpen)("endWidthPx",i.sidebarWidthPx)("isResizing",i.isResizing),s(7),g(t.name),s(2),g(t._id),s(),E("bg-green-900",t.status==="active")("text-green-300",t.status==="active")("bg-yellow-900",t.status==="paused")("text-yellow-300",t.status==="paused")("bg-cyan-900",t.status==="waiting-for-user"||t.status==="bootstrap")("text-cyan-300",t.status==="waiting-for-user"||t.status==="bootstrap")("bg-red-900",t.status==="failed")("text-red-300",t.status==="failed")("bg-slate-700",t.status==="stopped"||t.status==="initializing")("text-slate-300",t.status==="stopped"||t.status==="initializing"),s(),v(" ",t.status," "),s(),C("mode_$",t.operationMode),s(3),f(t.status==="initializing"||t.status==="paused"||t.status==="stopped"?15:-1),s(),f(t.status==="active"?16:-1),s(),f(t.status==="paused"?17:-1),s(),f(t.status!=="stopped"?18:-1),s(4),v(" ",i.isSidebarOpen?"\u25B6":"\u25C0"," "),s(),f(t.status==="waiting-for-user"?23:-1),s(),C("orchestratorId",(e=i.orchestratorId)!==null&&e!==void 0?e:""),s(3),E("text-cyan-300",i.sidebarTab==="tasks")("border-b-2",i.sidebarTab==="tasks")("border-cyan-400",i.sidebarTab==="tasks")("text-slate-500",i.sidebarTab!=="tasks"),s(),v(" Tasks (",i.tasks_$().length,") "),s(),E("text-cyan-300",i.sidebarTab==="workflows")("border-b-2",i.sidebarTab==="workflows")("border-cyan-400",i.sidebarTab==="workflows")("text-slate-500",i.sidebarTab!=="workflows"),s(2),E("text-cyan-300",i.sidebarTab==="info")("border-b-2",i.sidebarTab==="info")("border-cyan-400",i.sidebarTab==="info")("text-slate-500",i.sidebarTab!=="info"),s(3),f(i.sidebarTab==="tasks"?34:-1),s(),f(i.sidebarTab==="workflows"?35:-1),s(),f(i.sidebarTab==="info"?36:-1)}}function Kt(r,c){r&1&&(n(0,"div",1),a(1," T\xF6lt\u0151dik az orchestrator\u2026 "),o())}var ve=(()=>{class r extends Ce{route=x(je);orchestrator_DS=x(I);realtime_CS=x(be);graph_DS=x(Se);peiContext_DS=x(ge);current_$=this.orchestrator_DS.currentOrchestrator_$;tasks_$=this.orchestrator_DS.currentTasks_$;orchestratorId=null;isSidebarOpen=!0;sidebarWidthPx=320;isResizing=!1;sidebarTab="tasks";resizeStartX=0;resizeStartWidth=0;onResizeMove=e=>this.handleSidebarResizeMove(e);onResizeEnd=()=>this.handleSidebarResizeEnd();ngOnInit(){this.addSubscription(this.route.paramMap.subscribe(e=>{let t=e.get("id")??"",i=e.get("ccapId")??"";i&&this.peiContext_DS.activeCcapId_$()!==i&&this.peiContext_DS.selectInstance(i),t&&t!==this.orchestratorId&&(this.orchestratorId=t,this.orchestrator_DS.refreshCurrent(t),this.orchestrator_DS.refreshCurrentTasks(t),this.orchestrator_DS.refreshCurrentMessages(t),this.realtime_CS.subscribeDetail(t))}))}ngOnDestroy(){super.ngOnDestroy(),this.realtime_CS.unsubscribeDetail(),this.orchestrator_DS.clearCurrent(),document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}handleStart(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.startOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | start failed",e)}})}handlePause(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.pauseOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | pause failed",e)}})}handleResume(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.resumeOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | resume failed",e)}})}handleStop(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.stopOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | stop failed",e)}})}handleConfirmBootstrap(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.confirmBootstrap(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | confirmBootstrap failed",e)}})}handleModeSwitch(e){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.switchMode(this.orchestratorId,e)}catch(t){q.DyFM_Log.error("ORC_Detail | switchMode failed",t)}})}handleOpenGraph(){this.orchestratorId&&this.graph_DS.openGraph(this.orchestratorId)}handleToggleSidebar(){this.isSidebarOpen=!this.isSidebarOpen}handleSidebarResizeStart(e){this.isResizing=!0,this.resizeStartX=e.clientX,this.resizeStartWidth=this.sidebarWidthPx,document.addEventListener("pointermove",this.onResizeMove),document.addEventListener("pointerup",this.onResizeEnd)}handleSidebarResizeMove(e){let t=this.resizeStartX-e.clientX;this.sidebarWidthPx=Math.max(200,Math.min(600,this.resizeStartWidth+t))}handleSidebarResizeEnd(){this.isResizing=!1,document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Me(r)))(i||r)}})();static \u0275cmp=O({type:r,selectors:[["app-orc-detail"]],hostAttrs:[1,"flex","flex-1","min-h-0","overflow-hidden"],standalone:!0,features:[le,R],decls:3,vars:1,consts:[[3,"isStartOpen","isEndOpen","endWidthPx","isResizing"],[1,"flex","items-center","justify-center","h-full","text-slate-500"],[3,"endResizeStart","isStartOpen","isEndOpen","endWidthPx","isResizing"],["sDetailColumnMain","",1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],[1,"flex","items-center","gap-3","px-4","py-3","border-b","border-slate-800","bg-slate-900","shrink-0"],["routerLink","/orchestrator",1,"text-cyan-400","hover:text-cyan-300","text-sm"],[1,"min-w-0"],[1,"text-lg","font-bold","text-cyan-300","truncate"],[1,"text-xs","text-slate-500","font-mono","truncate"],[1,"px-2","py-0.5","rounded","text-xs","font-bold","shrink-0"],[3,"modeChanged","mode_$"],[1,"flex-1"],[1,"flex","gap-1","shrink-0"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],["title","Flow Graph",1,"px-2","py-1","border","border-cyan-700","text-cyan-400","hover:bg-cyan-900/30","rounded","text-xs","transition-colors","shrink-0",3,"click"],["title","Task queue sidebar",1,"px-2","py-1","border","border-slate-600","text-slate-400","hover:bg-slate-700/50","rounded","text-xs","transition-colors","shrink-0",3,"click"],[1,"bg-cyan-950","border-b","border-cyan-500","px-4","py-3","flex","items-center","justify-between","animate-pulse","shrink-0"],[1,"flex-1","min-h-0",3,"orchestratorId"],["sDetailColumnEnd","",1,"flex","flex-col","min-h-0","overflow-hidden"],[1,"flex","border-b","border-slate-800","shrink-0"],[1,"flex-1","px-3","py-2","text-xs","font-semibold","transition-colors",3,"click"],[1,"flex-1","overflow-y-auto","min-h-0"],[3,"tasks_$"],[3,"orchestratorId"],[1,"p-3","space-y-2","text-sm"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"text-xs","text-cyan-200","mt-1"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition","whitespace-nowrap","text-sm",3,"click"],[1,"text-xs","text-slate-500","block"],[1,"text-slate-200"],[1,"text-slate-200","font-mono","text-xs"],[1,"text-slate-200","font-mono"]],template:function(t,i){if(t&1&&(k(0,Ht,37,63,"app-s-session-detail-three-column-layout",0)(1,Kt,2,0,"div",1),A(2,"app-orc-graph-modal")),t&2){let l;f((l=i.current_$())?0:1,l)}},dependencies:[$,Q,pe,Qe,tt,it,rt,nt,ot],encapsulation:2})}return r})();var se=ie(re());var Xt=(r,c)=>c._id,Yt=(r,c)=>["/orchestrator",r,c],Jt=r=>["/orchestrator",r];function Zt(r,c){if(r&1){let e=y();n(0,"button",12),p("click",function(){m(e);let i=d();return u(i.openForm())}),a(1," + \xDAj Orchestrator "),o()}}function ei(r,c){if(r&1&&(n(0,"div",27),a(1),o()),r&2){let e=d(2);s(),v(" ",e.formError," ")}}function ti(r,c){if(r&1){let e=y();n(0,"form",13),p("ngSubmit",function(){m(e);let i=d();return u(i.handleSubmitForm())}),n(1,"h2",14),a(2,"\xDAj Orchestrator"),o(),n(3,"div",15)(4,"label",16)(5,"span",17),a(6,"N\xE9v *"),o(),n(7,"input",18),W("ngModelChange",function(i){m(e);let l=d();return z(l.formName,i)||(l.formName=i),u(i)}),o()(),n(8,"label",16)(9,"span",17),a(10,"Scope"),o(),n(11,"select",19),W("ngModelChange",function(i){m(e);let l=d();return z(l.formScope,i)||(l.formScope=i),u(i)}),n(12,"option",20),a(13,"single-project"),o(),n(14,"option",21),a(15,"cross-project"),o(),n(16,"option",22),a(17,"specialized"),o()()(),n(18,"label",16)(19,"span",17),a(20,"Projekt ID"),o(),n(21,"input",23),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProjectId,i)||(l.formProjectId=i),u(i)}),o()(),n(22,"label",16)(23,"span",17),a(24,"LLM Provider"),o(),n(25,"input",24),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProviderName,i)||(l.formProviderName=i),u(i)}),o()(),n(26,"label",25)(27,"span",17),a(28,"Modell"),o(),n(29,"input",26),W("ngModelChange",function(i){m(e);let l=d();return z(l.formModel,i)||(l.formModel=i),u(i)}),o()()(),k(30,ei,2,1,"div",27),n(31,"div",28)(32,"button",29),p("click",function(){m(e);let i=d();return u(i.closeForm())}),a(33," M\xE9gse "),o(),n(34,"button",30),a(35," L\xE9trehoz\xE1s "),o()()()}if(r&2){let e=d();s(7),N("ngModel",e.formName),s(4),N("ngModel",e.formScope),s(10),N("ngModel",e.formProjectId),s(4),N("ngModel",e.formProviderName),s(4),N("ngModel",e.formModel),s(),f(e.formError?30:-1)}}function ii(r,c){if(r&1){let e=y();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStart(i._id))}),a(1," start "),o()}}function ri(r,c){if(r&1){let e=y();n(0,"button",42),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handlePause(i._id))}),a(1," pause "),o()}}function ni(r,c){if(r&1){let e=y();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleResume(i._id))}),a(1," resume "),o()}}function oi(r,c){if(r&1){let e=y();n(0,"button",43),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStop(i._id))}),a(1," stop "),o()}}function ai(r,c){if(r&1&&(n(0,"tr",11)(1,"td",31)(2,"a",32),a(3),o()(),n(4,"td",33),a(5),o(),n(6,"td",34),a(7),o(),n(8,"td",31)(9,"span",35),a(10),o()(),n(11,"td",36),a(12),o(),n(13,"td",37),k(14,ii,2,0,"button",38)(15,ri,2,0,"button",39)(16,ni,2,0,"button",38)(17,oi,2,0,"button",40),o()()),r&2){let e=c.$implicit,t=d();s(2),C("routerLink",t.activeCcapId_$()?We(30,Yt,t.activeCcapId_$(),e._id):ze(33,Jt,e._id)),s(),v(" ",e.name," "),s(2),g(e.scope),s(2),v(" ",e.projectId||e.projectIds.join(",")||"\u2014"," "),s(2),E("bg-green-900",e.status==="active")("text-green-300",e.status==="active")("bg-yellow-900",e.status==="paused")("text-yellow-300",e.status==="paused")("bg-cyan-900",e.status==="waiting-for-user"||e.status==="bootstrap")("text-cyan-300",e.status==="waiting-for-user"||e.status==="bootstrap")("bg-red-900",e.status==="failed")("text-red-300",e.status==="failed")("bg-slate-700",e.status==="stopped"||e.status==="initializing")("text-slate-300",e.status==="stopped"||e.status==="initializing"),s(),v(" ",e.status," "),s(2),g(e.iterationCount),s(2),f(e.status==="initializing"||e.status==="paused"||e.status==="stopped"?14:-1),s(),f(e.status==="active"?15:-1),s(),f(e.status==="paused"?16:-1),s(),f(e.status!=="stopped"?17:-1)}}function si(r,c){r&1&&(n(0,"tr")(1,"td",44),a(2,' Nincs Orchestrator. Kattints a \u201E+ \xDAj Orchestrator" gombra. '),o()())}var $e=(()=>{class r{orchestrator_DS=x(I);realtime_CS=x(be);peiContext_DS=x(ge);orchestratorList_$=this.orchestrator_DS.orchestratorList_$;activeCount_$=this.orchestrator_DS.activeCount_$;activeCcapId_$=this.peiContext_DS.activeCcapId_$;formName="";formScope="single-project";formProjectId="";formProviderName="";formModel="";formIsOpen=!1;formError=null;ngOnInit(){this.realtime_CS.subscribeGlobal(),this.orchestrator_DS.refreshList()}openForm(){this.formIsOpen=!0,this.formError=null}closeForm(){this.formIsOpen=!1,this.formName="",this.formProjectId="",this.formProviderName="",this.formModel="",this.formError=null}handleSubmitForm(){return _(this,null,function*(){try{if(!this.formName.trim()){this.formError="N\xE9v megad\xE1sa k\xF6telez\u0151.";return}yield this.orchestrator_DS.createOrchestrator({name:this.formName.trim(),scope:this.formScope,projectId:this.formProjectId.trim()||void 0,providerName:this.formProviderName.trim()||void 0,model:this.formModel.trim()||void 0}),this.closeForm()}catch(e){this.formError=this.extractErrorMessage(e)}})}handleStart(e){return _(this,null,function*(){try{yield this.orchestrator_DS.startOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | start failed",t)}})}handlePause(e){return _(this,null,function*(){try{yield this.orchestrator_DS.pauseOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | pause failed",t)}})}handleResume(e){return _(this,null,function*(){try{yield this.orchestrator_DS.resumeOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | resume failed",t)}})}handleStop(e){return _(this,null,function*(){try{yield this.orchestrator_DS.stopOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | stop failed",t)}})}extractErrorMessage(e){return typeof e=="object"&&e!==null&&"message"in e?String(e.message):String(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-list"]],standalone:!0,features:[R],decls:31,vars:4,consts:[[1,"p-6","space-y-4"],[1,"flex","items-center","justify-between"],[1,"text-2xl","font-bold","text-cyan-300"],[1,"text-sm","text-slate-400"],[1,"text-green-400","font-mono"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3"],[1,"overflow-x-auto","bg-slate-900","border","border-slate-800","rounded"],[1,"w-full","text-sm"],[1,"bg-slate-800","text-slate-300"],[1,"text-left","px-3","py-2"],[1,"border-t","border-slate-800","hover:bg-slate-800/50"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition",3,"click"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3",3,"ngSubmit"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-3"],[1,"flex","flex-col","gap-1"],[1,"text-xs","text-slate-400"],["name","name","required","",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","scope",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["value","single-project"],["value","cross-project"],["value","specialized"],["name","projectId",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","providerName","placeholder","openai / anthropic / ...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-1","md:col-span-2"],["name","model",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"bg-red-900","border","border-red-700","rounded","px-3","py-2","text-red-200","text-sm"],[1,"flex","gap-2","justify-end"],["type","button",1,"px-3","py-1","text-slate-400","hover:text-white",3,"click"],["type","submit",1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded"],[1,"px-3","py-2"],[1,"text-cyan-400","hover:text-cyan-300","font-mono",3,"routerLink"],[1,"px-3","py-2","text-slate-400"],[1,"px-3","py-2","text-slate-400","font-mono","text-xs"],[1,"px-2","py-0.5","rounded","text-xs","font-bold"],[1,"px-3","py-2","text-slate-500","font-mono"],[1,"px-3","py-2","space-x-1"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],["colspan","6",1,"px-3","py-6","text-center","text-slate-500"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h1",2),a(4,"Orchestrator Agents"),o(),n(5,"p",3),a(6," Akt\xEDv: "),n(7,"span",4),a(8),o()()(),k(9,Zt,2,0,"button",5),o(),k(10,ti,36,6,"form",6),n(11,"div",7)(12,"table",8)(13,"thead",9)(14,"tr")(15,"th",10),a(16,"N\xE9v"),o(),n(17,"th",10),a(18,"Scope"),o(),n(19,"th",10),a(20,"Projekt"),o(),n(21,"th",10),a(22,"St\xE1tusz"),o(),n(23,"th",10),a(24,"Iter#"),o(),n(25,"th",10),a(26,"M\u0171veletek"),o()()(),n(27,"tbody"),D(28,ai,18,35,"tr",11,Xt,!1,si,3,0,"tr"),o()()()()),t&2&&(s(8),g(i.activeCount_$()),s(),f(i.formIsOpen?-1:9),s(),f(i.formIsOpen?10:-1),s(18),M(i.orchestratorList_$()))},dependencies:[$,Y,ue,fe,xe,H,he,K,_e,Be,X,me,Q,pe],encapsulation:2})}return r})();var li=[{path:"",pathMatch:"full",component:$e},{path:":ccapId/:id",component:ve},{path:":id",component:ve}],sn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=De({type:r});static \u0275inj=Ie({imports:[$,Q.forChild(li),$e,ve]})}return r})();export{sn as Orchestrator_Module};
|
|
2
|
-
//# sourceMappingURL=orc.module-
|
|
1
|
+
import{c as ne,d as Xe,e as F,f as oe,h as Ye}from"./chunk-5YESEEVR.js";import{a as Ce}from"./chunk-F344AZJS.js";import"./chunk-RVLDL574.js";import"./chunk-CWHBS3BF.js";import"./chunk-COVCHZOZ.js";import"./chunk-UFBTR2BG.js";import{a as ge}from"./chunk-MWX2FEYH.js";import"./chunk-7CECCKGS.js";import{a as Qe}from"./chunk-7JUIBZEE.js";import{b as P,f as He,g as Ke}from"./chunk-QLSM7AU5.js";import{a as ke}from"./chunk-MPGR64BK.js";import"./chunk-4HBQE4BE.js";import"./chunk-VMHSKHAH.js";import"./chunk-3UWSVQYY.js";import"./chunk-ED2O3QVI.js";import"./chunk-J7ZVFHVR.js";import"./chunk-V3VQWJQL.js";import"./chunk-YLVTK6CQ.js";import{e as J}from"./chunk-M2BIMBKO.js";import{a as Ue}from"./chunk-FLAJXIYW.js";import{c as H,f as K,g as _e,h as me,i as X,j as ue,n as he,o as fe,p as xe,s as Be,v as Y}from"./chunk-EO4DNTT4.js";import"./chunk-5UPNU54P.js";import"./chunk-3B43AFFF.js";import{I as qe,p as re}from"./chunk-YSI2TV56.js";import{Aa as Ae,Ba as Ne,C as x,D as O,E as De,Eb as je,Fa as a,Ga as g,Ha as v,Hb as pe,Ia as de,J as m,K as u,Kb as Q,Ma as N,N as Me,Na as z,Oa as W,P as Pe,T as Le,Ta as R,U as Fe,Va as ze,Wa as We,Z as s,a as ee,aa as b,b as te,ca as le,da as k,ga as C,h as ie,hb as B,ia as E,k as _,la as f,na as ce,oa as D,p as w,pa as M,qa as n,ra as o,sa as A,t as G,ua as y,ub as $,va as p,wa as d,xb as Ge,y as j,z as Ie,za as Ve}from"./chunk-TBMJSIBB.js";var q=ie(re());var T=ie(re());var Je=(()=>{class r{http=x(Ge);baseUrl=`${qe.api.baseUrl}/orchestrator`;createOrchestrator(e){return w(this.http.post(this.baseUrl,e))}listOrchestrators(e={}){let t=[];e.projectId&&t.push(`projectId=${encodeURIComponent(e.projectId)}`),e.scope&&t.push(`scope=${encodeURIComponent(e.scope)}`),e.status&&t.push(`status=${encodeURIComponent(e.status)}`);let i=t.length?`?${t.join("&")}`:"";return w(this.http.get(`${this.baseUrl}${i}`))}getOrchestrator(e){return w(this.http.get(`${this.baseUrl}/${e}`))}startOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/start`,{}))}pauseOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/pause`,{}))}resumeOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/resume`,{}))}stopOrchestrator(e){return w(this.http.post(`${this.baseUrl}/${e}/stop`,{}))}listTasks(e,t){let i=t?`?status=${encodeURIComponent(t)}`:"";return w(this.http.get(`${this.baseUrl}/${e}/tasks${i}`))}listMessages(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/messages${i}`))}postUserMessage(e,t){return w(this.http.post(`${this.baseUrl}/${e}/messages`,{rawContent:t}))}listQuestions(e,t=!1){let i=t?"?openOnly=true":"";return w(this.http.get(`${this.baseUrl}/${e}/questions${i}`))}confirmBootstrap(e){return w(this.http.post(`${this.baseUrl}/${e}/bootstrap/confirm`,{}))}submitQuestionAnswer(e,t,i){return w(this.http.post(`${this.baseUrl}/${e}/questions/${t}/answer`,{answer:i}))}switchMode(e,t){return w(this.http.post(`${this.baseUrl}/${e}/mode`,{mode:t}))}getGlobalSummary(){return w(this.http.get(`${this.baseUrl}/summary`))}listWorkflows(e){return w(this.http.get(`${this.baseUrl}/${e}/workflows`))}getWorkflowById(e,t){return w(this.http.get(`${this.baseUrl}/${e}/workflows/${t}`))}listBatches(e){return w(this.http.get(`${this.baseUrl}/${e}/batches`))}listDecisions(e,t){let i=t?`?limit=${t}`:"";return w(this.http.get(`${this.baseUrl}/${e}/decisions${i}`))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var I=(()=>{class r{orc_AS=x(Je);orchestratorListRaw_$=b([]);currentOrchestratorRaw_$=b(null);currentTasksRaw_$=b([]);currentMessagesRaw_$=b([]);isResponseGeneratingRaw_$=b(!1);orchestratorList_$=this.orchestratorListRaw_$.asReadonly();currentOrchestrator_$=this.currentOrchestratorRaw_$.asReadonly();currentTasks_$=this.currentTasksRaw_$.asReadonly();currentMessages_$=this.currentMessagesRaw_$.asReadonly();isResponseGenerating_$=this.isResponseGeneratingRaw_$.asReadonly();activeCount_$=B(()=>this.orchestratorList_$().filter(e=>e.status==="active"||e.status==="bootstrap"||e.status==="waiting-for-user").length);refreshList(){return _(this,null,function*(){try{let e=yield this.orc_AS.listOrchestrators();this.orchestratorListRaw_$.set(e.orchestrators)}catch(e){T.DyFM_Log.error("Orchestrator_DataService | refreshList failed",e)}})}refreshCurrent(e){return _(this,null,function*(){try{let t=yield this.orc_AS.getOrchestrator(e);this.currentOrchestratorRaw_$.set(t.orchestrator)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrent failed",t)}})}refreshCurrentTasks(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listTasks(e);this.currentTasksRaw_$.set(t.tasks)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentTasks failed",t)}})}createOrchestrator(e){return _(this,null,function*(){let t=yield this.orc_AS.createOrchestrator(e);return yield this.refreshList(),t.orchestrator})}startOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.startOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}pauseOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.pauseOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}resumeOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.resumeOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}stopOrchestrator(e){return _(this,null,function*(){yield this.orc_AS.stopOrchestrator(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}confirmBootstrap(e){return _(this,null,function*(){yield this.orc_AS.confirmBootstrap(e),yield Promise.all([this.refreshList(),this.refreshCurrent(e)])})}switchMode(e,t){return _(this,null,function*(){yield this.orc_AS.switchMode(e,t),yield this.refreshCurrent(e)})}refreshCurrentMessages(e){return _(this,null,function*(){try{let t=yield this.orc_AS.listMessages(e,100);this.currentMessagesRaw_$.set(t.messages)}catch(t){T.DyFM_Log.error("Orchestrator_DataService | refreshCurrentMessages failed",t)}})}setResponseGenerating(e){this.isResponseGeneratingRaw_$.set(e)}clearCurrent(){this.currentOrchestratorRaw_$.set(null),this.currentTasksRaw_$.set([]),this.currentMessagesRaw_$.set([]),this.isResponseGeneratingRaw_$.set(!1)}listWorkflows(e){return _(this,null,function*(){try{return(yield this.orc_AS.listWorkflows(e)).workflows}catch(t){return T.DyFM_Log.error("Orchestrator_DataService | listWorkflows failed",t),[]}})}getWorkflowById(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.getWorkflowById(e,t)).workflow}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | getWorkflowById failed",i),null}})}listMessages(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listMessages(e,t)).messages}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listMessages failed",i),[]}})}postUserMessage(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.postUserMessage(e,t)).message}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | postUserMessage failed",i),null}})}listQuestions(e,t){return _(this,null,function*(){try{return(yield this.orc_AS.listQuestions(e,t)).questions}catch(i){return T.DyFM_Log.error("Orchestrator_DataService | listQuestions failed",i),[]}})}submitQuestionAnswer(e,t,i){return _(this,null,function*(){try{return(yield this.orc_AS.submitQuestionAnswer(e,t,i)).question}catch(l){return T.DyFM_Log.error("Orchestrator_DataService | submitQuestionAnswer failed",l),null}})}getGlobalSummary(){return _(this,null,function*(){try{return(yield this.orc_AS.getGlobalSummary()).summary}catch(e){return T.DyFM_Log.error("Orchestrator_DataService | getGlobalSummary failed",e),null}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var st=new Set(["orc:created","orc:statusChanged","orc:started","orc:paused","orc:resumed","orc:stopped","orc:waitingForUser"]),lt=new Set(["orc:statusChanged","orc:modeChanged","orc:iterationStarted","orc:iterationCompleted","orc:decisionAdded","orc:taskCreated","orc:taskStatusChanged","orc:taskCompleted","orc:batchStarted","orc:batchCompleted","orc:agentLaunched","orc:agentCompleted","orc:userQuestionAsked","orc:userQuestionAnswered","orc:messageAdded","orc:bootstrapCompleted","orc:responseStarted","orc:responseCompleted","orc:responseToolCall","orc:responseToolResult"]),ct=new Set(["orc:messageAdded","orc:responseToolCall","orc:responseToolResult"]),be=(()=>{class r{ccapSocket_CS=x(J);orchestrator_DS=x(I);globalSub=null;detailSub=null;responseSub=null;currentOrchestratorId=null;subscribeGlobal(){this.globalSub||(this.globalSub=this.ccapSocket_CS.event$.pipe(G(e=>st.has(e.event))).subscribe(()=>_(this,null,function*(){yield this.orchestrator_DS.refreshList()})))}subscribeDetail(e){this.unsubscribeDetail(),this.currentOrchestratorId=e,this.detailSub=this.ccapSocket_CS.event$.pipe(G(t=>lt.has(t.event)&&this.isForCurrent(t.payload))).subscribe(t=>_(this,null,function*(){let i=this.currentOrchestratorId;i&&(t.event==="orc:responseStarted"&&this.orchestrator_DS.setResponseGenerating(!0),t.event==="orc:responseCompleted"&&this.orchestrator_DS.setResponseGenerating(!1),yield Promise.all([this.orchestrator_DS.refreshCurrent(i),this.orchestrator_DS.refreshCurrentTasks(i)]))})),this.responseSub=this.ccapSocket_CS.event$.pipe(G(t=>ct.has(t.event)&&this.isForCurrent(t.payload))).subscribe(()=>_(this,null,function*(){let t=this.currentOrchestratorId;t&&(yield this.orchestrator_DS.refreshCurrentMessages(t))}))}unsubscribeDetail(){this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.detailSub=null,this.responseSub=null,this.currentOrchestratorId=null}isForCurrent(e){return this.currentOrchestratorId?e?.orchestratorId===this.currentOrchestratorId:!1}ngOnDestroy(){this.globalSub?.unsubscribe(),this.detailSub?.unsubscribe(),this.responseSub?.unsubscribe(),this.globalSub=null,this.detailSub=null,this.responseSub=null}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Oe=[{id:"orc-wake",label:"Wake",phase:"wake",category:F.milestone},{id:"orc-collect",label:"Collect",phase:"collect",category:F.phase},{id:"orc-analyze",label:"Analyze",phase:"analyze",category:F.llmCall},{id:"orc-sync-tasks",label:"Sync Tasks",phase:"sync-tasks",category:F.phase},{id:"orc-decide-next",label:"Decide Next",phase:"decide-next",category:F.llmCall},{id:"orc-execute",label:"Execute",phase:"execute",category:F.phase},{id:"orc-report",label:"Report",phase:"report",category:F.phase},{id:"orc-sleep",label:"Sleep",phase:"sleep",category:F.milestone}],ae=class{static buildSkeletonLayout(){let c=48+220/2,e=48,t=[],i=[];for(let S=0;S<Oe.length;S++){let V=Oe[S],Z=V.category===F.milestone,U=Z?200:220,Te=Z?48:60,at=oe.createNode({id:V.id,category:V.category,label:V.label,phase:V.phase,x:c-U/2,y:e,width:U,height:Te});t.push(at),S>0&&i.push(oe.createEdge(Oe[S-1].id,V.id,Xe.sequential)),e+=Te+36}let l=i.map(S=>{let V=t.find(U=>U.id===S.sourceNodeId),Z=t.find(U=>U.id===S.targetNodeId);return!V||!Z?S:te(ee({},S),{pathD:oe.computeEdgePath(V,Z,S.category)})}),h=oe.recalculateViewBox(t,48);return{nodes:t,edges:l,viewBox:h,loopContainerBounds:null}}};var ut={wake:"orc-wake",collect:"orc-collect",analyze:"orc-analyze","sync-tasks":"orc-sync-tasks","decide-next":"orc-decide-next",execute:"orc-execute",report:"orc-report",sleep:"orc-sleep"},ht=["orc-wake","orc-collect","orc-analyze","orc-sync-tasks","orc-decide-next","orc-execute","orc-report","orc-sleep"],ft=new Set(["orc:iterationStarted","orc:iterationCompleted","orc:statusChanged","orc:started","orc:paused","orc:stopped"]),Se=(()=>{class r{ccapSocket_CS=x(J);destroyRef=x(Pe);graphLayout_$=b(null);activeNodeId_$=b("");selectedNodeId_$=b("");isGraphOpen_$=b(!1);graphOrchestratorId_$=b("");isLoading_$=b(!1);eventSubscription=null;constructor(){this.destroyRef.onDestroy(()=>{this.disposeSubscription()})}openGraph(e){this.disposeSubscription(),this.resetState(),this.graphOrchestratorId_$.set(e),this.isGraphOpen_$.set(!0);let t=ae.buildSkeletonLayout();this.graphLayout_$.set(t),this.eventSubscription=this.ccapSocket_CS.event$.pipe(G(i=>ft.has(i.event)&&i.payload?.orchestratorId===e)).subscribe(i=>{this.applyOrcEvent(i.event,i.payload)})}closeGraph(){this.disposeSubscription(),this.isGraphOpen_$.set(!1),this.selectedNodeId_$.set("")}selectNode(e){let t=this.selectedNodeId_$();this.selectedNodeId_$.set(t===e?"":e)}clearSelection(){this.selectedNodeId_$.set("")}applyOrcEvent(e,t){if(e==="orc:iterationStarted"){this.applyPhaseActive("wake");return}if(e==="orc:iterationCompleted"){this.markAllCompleted();return}if(e==="orc:statusChanged"){let i=t.status;i==="active"&&this.applyPhaseActive("wake"),(i==="paused"||i==="stopped"||i==="failed")&&this.markAllCompleted();return}if(e==="orc:started"){let i=ae.buildSkeletonLayout();this.graphLayout_$.set(i)}}applyPhaseActive(e){let t=ut[e];if(!t)return;let i=this.graphLayout_$();if(!i)return;let l=!1;for(let h of ht)h===t?(i=this.setNodeState(i,h,ne.active),l=!0):l||(i=this.setNodeState(i,h,ne.completed));this.activeNodeId_$.set(t),this.graphLayout_$.set(i)}markAllCompleted(){let e=this.graphLayout_$();if(e){for(let t of e.nodes)t.state!==ne.error&&(e=this.setNodeState(e,t.id,ne.completed));this.activeNodeId_$.set(""),this.graphLayout_$.set(e)}}setNodeState(e,t,i){let l=e.nodes.findIndex(S=>S.id===t);if(l<0)return e;let h=[...e.nodes];return h[l]=te(ee({},h[l]),{state:i}),te(ee({},e),{nodes:h})}resetState(){this.graphLayout_$.set(null),this.activeNodeId_$.set(""),this.selectedNodeId_$.set(""),this.isLoading_$.set(!1)}disposeSubscription(){this.eventSubscription&&(this.eventSubscription.unsubscribe(),this.eventSubscription=null)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=j({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var we=ie(re());var ye=class r{static mapAll(c){return c.map(e=>r.mapSingle(e))}static mapSingle(c){let e=r.resolveKind(c),t=c.from==="user";return{listKey:c._id,kind:e,bodyText:c.rawContent,timestampIso:c.__created,toolName:c.toolName??void 0,isUserAligned:t,headerStatusDot:e===P.error?"error":void 0,flags:{showCopy:!0,showRawInfo:!1,useEditDiffForExpandable:!1},toolCallId:c.toolCallId??void 0}}static resolveKind(c){switch(c.messageType){case"user-message":return P.userPrompt;case"orchestrator-response":return P.assistant;case"orchestrator-thinking":return P.thinking;case"tool-call":return P.tool;case"tool-result":return P.toolResult;case"iteration-summary":return P.statusUpdate;case"status-message":return P.info;default:return c.from==="user"?P.userPrompt:P.assistant}}};var xt=["scrollAnchor"],Ct=(r,c)=>c.listKey,gt=(r,c)=>c._id;function bt(r,c){if(r&1&&(n(0,"p",14),a(1),o()),r&2){let e=d().$implicit;s(),v("Kontext: ",e.context,"")}}function St(r,c){if(r&1){let e=y();n(0,"div",15)(1,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"yes"))}),a(2," Igen "),o(),n(3,"button",18),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleYesNoChoice(i._id,"no"))}),a(4," Nem "),o(),n(5,"button",19),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(6," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),E("bg-green-700",t.selectedChoice[e._id]==="yes")("bg-slate-700",t.selectedChoice[e._id]!=="yes"),s(2),E("bg-red-700",t.selectedChoice[e._id]==="no")("bg-slate-700",t.selectedChoice[e._id]!=="no"),s(2),C("disabled",!t.selectedChoice[e._id])}}function yt(r,c){if(r&1){let e=y();n(0,"label",20)(1,"input",22),p("change",function(){let i=m(e).$implicit,l=d(2).$implicit,h=d(2);return u(h.handleMultipleChoice(l._id,i))}),o(),a(2),o()}if(r&2){let e=c.$implicit,t=d(2).$implicit,i=d(2);s(),C("name",t._id)("value",e)("checked",i.selectedChoice[t._id]===e),s(),v(" ",e," ")}}function wt(r,c){if(r&1){let e=y();n(0,"div",16),D(1,yt,3,4,"label",20,ce),n(3,"button",21),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(4," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),M(e.possibleAnswers),s(2),C("disabled",!t.selectedChoice[e._id])}}function vt(r,c){if(r&1){let e=y();n(0,"div",17)(1,"textarea",23),W("ngModelChange",function(i){m(e);let l=d().$implicit,h=d(2);return z(h.answerDrafts[l._id],i)||(h.answerDrafts[l._id]=i),u(i)}),o(),n(2,"button",24),p("click",function(){m(e);let i=d().$implicit,l=d(2);return u(l.handleSubmitAnswer(i._id,i.questionType))}),a(3," K\xFCld\xE9s "),o()()}if(r&2){let e=d().$implicit,t=d(2);s(),N("ngModel",t.answerDrafts[e._id]),C("name",e._id),s(),C("disabled",!t.answerDrafts[e._id])}}function kt(r,c){if(r&1&&(n(0,"div",12)(1,"p",13),a(2),o(),k(3,bt,2,1,"p",14)(4,St,7,9,"div",15)(5,wt,5,1,"div",16)(6,vt,4,3,"div",17),o()),r&2){let e=c.$implicit;s(2),g(e.questionText),s(),f(e.context?3:-1),s(),f(e.questionType==="yes-no"?4:-1),s(),f(e.questionType==="multiple-choice"&&e.possibleAnswers?5:-1),s(),f(e.questionType==="open"||e.questionType==="task-priority"?6:-1)}}function Et(r,c){if(r&1&&(n(0,"div",2)(1,"h3",11),a(2),o(),D(3,kt,7,5,"div",12,gt),o()),r&2){let e=d();s(2),v("V\xE1laszra v\xE1r\xF3 k\xE9rd\xE9sek (",e.openQuestions_$().length,")"),s(),M(e.openQuestions_$())}}function Ot(r,c){if(r&1&&A(0,"app-s-agent-console-message-bubble",4),r&2){let e=c.$implicit;C("view",e)}}function Rt(r,c){r&1&&(n(0,"p",5),a(1,"M\xE9g nincs \xFCzenet."),o())}function $t(r,c){r&1&&(n(0,"div",6)(1,"div",25)(2,"span",26),a(3,"ORCHESTRATOR"),o(),n(4,"span",27),a(5,"gondolkodik..."),o()()())}var Tt=new Set(["orc:messageAdded","orc:userQuestionAsked","orc:userQuestionAnswered"]),tt=(()=>{class r extends Ce{orchestrator_DS=x(I);ccapSocket_CS=x(J);orchestratorId;scrollAnchor;questionsRaw_$=b([]);bubbleViews_$=B(()=>ye.mapAll(this.orchestrator_DS.currentMessages_$()));openQuestions_$=this.questionsRaw_$.asReadonly();isResponseGenerating_$=this.orchestrator_DS.isResponseGenerating_$;userInput="";answerDrafts={};selectedChoice={};constructor(){super()}ngOnInit(){this.refresh(),this.addSubscription(this.ccapSocket_CS.event$.pipe(G(e=>Tt.has(e.event)&&e.payload?.orchestratorId===this.orchestratorId)).subscribe(()=>_(this,null,function*(){yield this.refresh(),this.scrollToBottom()})))}handleSendMessage(){return _(this,null,function*(){if(!this.userInput)return;let e=this.userInput;this.userInput="";try{yield this.orchestrator_DS.postUserMessage(this.orchestratorId,e),yield this.orchestrator_DS.refreshCurrentMessages(this.orchestratorId),this.scrollToBottom()}catch(t){we.DyFM_Log.error("ORC_Chat | sendMessage failed",t),this.userInput=e}})}handleSubmitAnswer(e,t){return _(this,null,function*(){let i=t==="multiple-choice"||t==="yes-no"?this.selectedChoice[e]??"":this.answerDrafts[e]??"";if(i)try{yield this.orchestrator_DS.submitQuestionAnswer(this.orchestratorId,e,i),delete this.answerDrafts[e],delete this.selectedChoice[e],yield this.refresh()}catch(l){we.DyFM_Log.error("ORC_Chat | submitAnswer failed",l)}})}handleYesNoChoice(e,t){this.selectedChoice[e]=t}handleMultipleChoice(e,t){this.selectedChoice[e]=t}refresh(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listQuestions(this.orchestratorId,!0);this.questionsRaw_$.set(e)}catch(e){we.DyFM_Log.error("ORC_Chat | refresh failed",e)}})}scrollToBottom(){setTimeout(()=>{this.scrollAnchor?.nativeElement?.scrollIntoView({behavior:"smooth"})},50)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-chat-panel"]],viewQuery:function(t,i){if(t&1&&Ve(xt,5),t&2){let l;Ae(l=Ne())&&(i.scrollAnchor=l.first)}},hostAttrs:[1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[le,R],decls:15,vars:5,consts:[["scrollAnchor",""],["sChatColumnHeader",""],[1,"bg-cyan-950","border-b","border-cyan-500","p-3","space-y-3"],["sChatColumnScroll","",1,"p-3","space-y-2"],[3,"view"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"flex","gap-2","py-2"],["sChatColumnComposer","",1,"border-t","border-slate-800","p-3"],[1,"flex","gap-2",3,"ngSubmit"],["rows","2","name","userInput","placeholder","\xDCzenet az Orchestrator-nak...",1,"flex-1","bg-slate-800","border","border-slate-700","rounded","px-3","py-2","text-white","text-sm","resize-none",3,"ngModelChange","ngModel"],["type","submit",1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm","self-end","whitespace-nowrap",3,"disabled"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"bg-cyan-900/50","border","border-cyan-700","rounded","p-3","space-y-2"],[1,"text-cyan-100","font-medium","text-sm"],[1,"text-xs","text-cyan-300","italic"],[1,"flex","gap-2"],[1,"space-y-1"],[1,"space-y-2"],[1,"px-3","py-1","rounded","text-sm","font-bold",3,"click"],[1,"ml-auto","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"flex","items-center","gap-2","text-sm","text-slate-200","cursor-pointer"],[1,"mt-2","px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],["type","radio",3,"change","name","value","checked"],["rows","2","placeholder","V\xE1lasz...",1,"w-full","bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-sm",3,"ngModelChange","ngModel","name"],[1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded","text-sm",3,"click","disabled"],[1,"max-w-[80%]","rounded","px-3","py-2","bg-slate-800","text-slate-400","text-sm","animate-pulse"],[1,"font-mono","text-xs"],[1,"ml-2"]],template:function(t,i){if(t&1){let l=y();n(0,"app-s-session-chat-column-layout")(1,"div",1),k(2,Et,5,1,"div",2),o(),n(3,"div",3),D(4,Ot,1,1,"app-s-agent-console-message-bubble",4,Ct,!1,Rt,2,0,"p",5),k(7,$t,6,0,"div",6),A(8,"div",null,0),o(),n(10,"div",7)(11,"form",8),p("ngSubmit",function(){return m(l),u(i.handleSendMessage())}),n(12,"textarea",9),W("ngModelChange",function(S){return m(l),z(i.userInput,S)||(i.userInput=S),u(S)}),o(),n(13,"button",10),a(14," K\xFCld\xE9s "),o()()()()}t&2&&(s(2),f(i.openQuestions_$().length>0?2:-1),s(2),M(i.bubbleViews_$()),s(3),f(i.isResponseGenerating_$()?7:-1),s(5),N("ngModel",i.userInput),s(),C("disabled",!i.userInput))},dependencies:[$,Y,ue,H,K,_e,X,me,Ke,He],encapsulation:2})}return r})();var it=(()=>{class r{graph_DS=x(Se);isOpen_$=this.graph_DS.isGraphOpen_$;layout_$=this.graph_DS.graphLayout_$;activeNodeId_$=this.graph_DS.activeNodeId_$;selectedNodeId_$=this.graph_DS.selectedNodeId_$;isLoading_$=this.graph_DS.isLoading_$;handleClose(){this.graph_DS.closeGraph()}handleNodeClick(e){this.graph_DS.selectNode(e)}handleDetailClose(){this.graph_DS.clearSelection()}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-graph-modal"]],standalone:!0,features:[R],decls:2,vars:6,consts:[["title","Orchestrator Flow Graph","maxWidth","7xl","headerBorderClass","border-cyan-600/30",3,"closed","isOpen","bodyFlexColumn"],[1,"flex-1","min-h-0",3,"nodeClicked","detailClosed","layout","activeNodeId","selectedNodeId","isLoading"]],template:function(t,i){t&1&&(n(0,"app-s-modal",0),p("closed",function(){return i.handleClose()}),n(1,"app-ses-graph-view",1),p("nodeClicked",function(h){return i.handleNodeClick(h)})("detailClosed",function(){return i.handleDetailClose()}),o()()),t&2&&(C("isOpen",i.isOpen_$())("bodyFlexColumn",!0),s(),C("layout",i.layout_$())("activeNodeId",i.activeNodeId_$())("selectedNodeId",i.selectedNodeId_$())("isLoading",i.isLoading_$()))},dependencies:[$,Ue,Ye],encapsulation:2})}return r})();var rt=(()=>{class r{mode_$=Fe.required({alias:"mode_$"});modeChanged=Le();handleToggle(){let t=this.mode_$()==="active"?"passive":"active";this.modeChanged.emit(t)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-mode-switcher"]],inputs:{mode_$:[1,"mode_$"]},outputs:{modeChanged:"modeChanged"},standalone:!0,features:[R],decls:5,vars:18,consts:[[1,"inline-flex","rounded-full","border","border-slate-600","overflow-hidden","text-xs","font-semibold"],["title","Auton\xF3m loop m\xF3d \u2014 az orchestrator \xF6n\xE1ll\xF3an futtatja az iter\xE1ci\xF3kat",1,"px-3","py-1","transition-colors",3,"click","disabled"],["title","Chat m\xF3d \u2014 az orchestrator a user \xFCzenetekre v\xE1laszol",1,"px-3","py-1","transition-colors",3,"click","disabled"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"button",1),p("click",function(){return i.handleToggle()}),a(2," Active Loop "),o(),n(3,"button",2),p("click",function(){return i.handleToggle()}),a(4," Chat Mode "),o()()),t&2&&(s(),E("bg-green-800",i.mode_$()==="active")("text-green-200",i.mode_$()==="active")("bg-transparent",i.mode_$()!=="active")("text-slate-400",i.mode_$()!=="active"),C("disabled",i.mode_$()==="active"),s(2),E("bg-cyan-800",i.mode_$()==="passive")("text-cyan-200",i.mode_$()==="passive")("bg-transparent",i.mode_$()!=="passive")("text-slate-400",i.mode_$()!=="passive"),C("disabled",i.mode_$()==="passive"))},encapsulation:2})}return r})();var It=(r,c)=>c._id;function Dt(r,c){r&1&&(n(0,"p",31),a(1," Nincs a sz\u0171r\u0151knek megfelel\u0151 task. "),o())}function Mt(r,c){if(r&1&&(n(0,"tr",38)(1,"td",39),a(2),o(),n(3,"td",40),a(4),o(),n(5,"td",41),a(6),o(),n(7,"td",42)(8,"span"),a(9),o()(),n(10,"td",43),a(11),o(),n(12,"td",44),a(13),o()()),r&2){let e=c.$implicit;s(2),g(e.code),s(2),g(e.title),s(2),g(e.type),s(2),E("text-red-400",e.priority==="critical")("text-orange-400",e.priority==="high")("text-slate-400",e.priority==="normal")("text-slate-600",e.priority==="low"),s(),v(" ",e.priority," "),s(2),g(e.source),s(2),v(" ",e.assignedAgentType||"\u2014"," ")}}function Pt(r,c){if(r&1&&(n(0,"div",32)(1,"div",33),a(2),n(3,"span",34),a(4),o()(),n(5,"table",35)(6,"thead",36)(7,"tr")(8,"th",37),a(9,"Code"),o(),n(10,"th",37),a(11,"Title"),o(),n(12,"th",37),a(13,"Type"),o(),n(14,"th",37),a(15,"Priority"),o(),n(16,"th",37),a(17,"Source"),o(),n(18,"th",37),a(19,"Agent"),o()()(),n(20,"tbody"),D(21,Mt,14,14,"tr",38,It),o()()()),r&2){let e=c.$implicit,t=d();s(2),v(" ",e," "),s(2),v("(",t.groupedByStatus_$()[e].length,")"),s(17),M(t.groupedByStatus_$()[e])}}var nt=(()=>{class r{orchestrator_DS=x(I);tasks_$;filterStatus_$=b("all");filterType_$=b("all");filterPriority_$=b("all");searchText_$=b("");filteredTasks_$=B(()=>{let e=this.tasks_$(),t=this.filterStatus_$(),i=this.filterType_$(),l=this.filterPriority_$(),h=this.searchText_$();return e.filter(S=>!(t!=="all"&&S.status!==t||i!=="all"&&S.type!==i||l!=="all"&&S.priority!==l||h.trim()&&!ke.includesText(S.title,h)&&!ke.includesText(S.description,h)))});groupedByStatus_$=B(()=>{let e={};for(let t of this.filteredTasks_$()){let i=t.status;e[i]||(e[i]=[]),e[i].push(t)}return e});statusOrder=["in-progress","waiting-on-agent","waiting-on-user","scheduled","pending","completed","failed","cancelled"];orderedGroupKeys_$=B(()=>{let e=this.groupedByStatus_$();return this.statusOrder.filter(t=>(e[t]?.length??0)>0)});handleFilterStatus(e){this.filterStatus_$.set(e)}handleFilterType(e){this.filterType_$.set(e)}handleFilterPriority(e){this.filterPriority_$.set(e)}handleSearchText(e){this.searchText_$.set(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-task-queue-panel"]],inputs:{tasks_$:"tasks_$"},standalone:!0,features:[R],decls:62,vars:7,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"grid","grid-cols-2","md:grid-cols-4","gap-2"],["name","filterStatus",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","all"],["value","pending"],["value","scheduled"],["value","in-progress"],["value","waiting-on-user"],["value","waiting-on-agent"],["value","completed"],["value","failed"],["value","cancelled"],["name","filterType",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","implementation"],["value","bug-fix"],["value","review"],["value","documentation"],["value","refactor"],["value","research"],["value","spec-extension"],["value","maintenance"],["value","bootstrap-project-cleanup"],["name","filterPriority",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],["value","critical"],["value","high"],["value","normal"],["value","low"],["name","searchText","placeholder","Keres\xE9s c\xEDm / le\xEDr\xE1s...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white","text-xs",3,"ngModelChange","ngModel"],[1,"text-sm","text-slate-500","italic","text-center","py-8"],[1,"bg-slate-950","border","border-slate-800","rounded","overflow-hidden"],[1,"bg-slate-800","px-3","py-1","text-xs","font-bold","text-slate-300","uppercase","tracking-wider"],[1,"text-slate-500","ml-2"],[1,"w-full","text-xs"],[1,"bg-slate-900"],[1,"text-left","px-2","py-1","text-slate-400","font-normal"],[1,"border-t","border-slate-800","hover:bg-slate-800/30"],[1,"px-2","py-1","font-mono","text-cyan-400"],[1,"px-2","py-1","text-slate-200"],[1,"px-2","py-1","text-slate-400"],[1,"px-2","py-1"],[1,"px-2","py-1","text-slate-500"],[1,"px-2","py-1","text-slate-400","text-xs"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Task Queue"),o(),n(4,"span",3),a(5),o()(),n(6,"div",4)(7,"select",5),p("ngModelChange",function(h){return i.handleFilterStatus(h)}),n(8,"option",6),a(9,"\xD6sszes st\xE1tusz"),o(),n(10,"option",7),a(11,"pending"),o(),n(12,"option",8),a(13,"scheduled"),o(),n(14,"option",9),a(15,"in-progress"),o(),n(16,"option",10),a(17,"waiting-on-user"),o(),n(18,"option",11),a(19,"waiting-on-agent"),o(),n(20,"option",12),a(21,"completed"),o(),n(22,"option",13),a(23,"failed"),o(),n(24,"option",14),a(25,"cancelled"),o()(),n(26,"select",15),p("ngModelChange",function(h){return i.handleFilterType(h)}),n(27,"option",6),a(28,"\xD6sszes t\xEDpus"),o(),n(29,"option",16),a(30,"implementation"),o(),n(31,"option",17),a(32,"bug-fix"),o(),n(33,"option",18),a(34,"review"),o(),n(35,"option",19),a(36,"documentation"),o(),n(37,"option",20),a(38,"refactor"),o(),n(39,"option",21),a(40,"research"),o(),n(41,"option",22),a(42,"spec-extension"),o(),n(43,"option",23),a(44,"maintenance"),o(),n(45,"option",24),a(46,"bootstrap"),o()(),n(47,"select",25),p("ngModelChange",function(h){return i.handleFilterPriority(h)}),n(48,"option",6),a(49,"\xD6sszes priorit\xE1s"),o(),n(50,"option",26),a(51,"critical"),o(),n(52,"option",27),a(53,"high"),o(),n(54,"option",28),a(55,"normal"),o(),n(56,"option",29),a(57,"low"),o()(),n(58,"input",30),p("ngModelChange",function(h){return i.handleSearchText(h)}),o()(),k(59,Dt,2,0,"p",31),D(60,Pt,23,2,"div",32,ce),o()),t&2&&(s(5),de(" ",i.filteredTasks_$().length," / ",i.tasks_$().length," task "),s(2),C("ngModel",i.filterStatus_$()),s(19),C("ngModel",i.filterType_$()),s(21),C("ngModel",i.filterPriority_$()),s(11),C("ngModel",i.searchText_$()),s(),f(i.orderedGroupKeys_$().length===0?59:-1),s(),M(i.orderedGroupKeys_$()))},dependencies:[$,Y,fe,xe,H,he,K,X],encapsulation:2})}return r})();var Re=ie(re());var Lt=(r,c)=>c.id;function Ft(r,c){r&1&&(n(0,"p",4),a(1,"Nincs bet\xF6lt\xF6tt workflow."),o())}function Vt(r,c){if(r&1){let e=y();n(0,"div",8),p("click",function(){let i=m(e).$implicit,l=d();return u(l.handleOpenDetails(i.id))}),n(1,"h3",9),a(2),o(),n(3,"p",10),a(4),o()()}if(r&2){let e=c.$implicit;s(2),g(e.name),s(2),g(e.summary)}}function At(r,c){if(r&1){let e=y();n(0,"div",11),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),n(1,"div",12),p("click",function(i){return m(e),u(i.stopPropagation())}),n(2,"div",13)(3,"h3",14),a(4),o(),n(5,"button",15),p("click",function(){m(e);let i=d();return u(i.handleCloseDetails())}),a(6,"\u2715"),o()(),n(7,"pre",16),a(8),o()()()}if(r&2){let e=c;s(4),g(e.filename),s(4),g(e.rawText)}}var ot=(()=>{class r{orchestrator_DS=x(I);orchestratorId;workflowsRaw_$=b([]);selectedRaw_$=b(null);loadingRaw_$=b(!1);workflows_$=this.workflowsRaw_$.asReadonly();selected_$=this.selectedRaw_$.asReadonly();loading_$=this.loadingRaw_$.asReadonly();ngOnInit(){this.loadList()}handleOpenDetails(e){return _(this,null,function*(){try{this.loadingRaw_$.set(!0);let t=yield this.orchestrator_DS.getWorkflowById(this.orchestratorId,e);this.selectedRaw_$.set(t)}catch(t){Re.DyFM_Log.error("WorkflowLibrary | getWorkflow failed",t)}finally{this.loadingRaw_$.set(!1)}})}handleCloseDetails(){this.selectedRaw_$.set(null)}loadList(){return _(this,null,function*(){try{let e=yield this.orchestrator_DS.listWorkflows(this.orchestratorId);this.workflowsRaw_$.set(e)}catch(e){Re.DyFM_Log.error("WorkflowLibrary | listWorkflows failed",e)}})}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-workflow-library-panel"]],inputs:{orchestratorId:"orchestratorId"},standalone:!0,features:[R],decls:11,vars:3,consts:[[1,"bg-slate-900","border","border-slate-800","rounded","p-4","space-y-3"],[1,"flex","items-center","justify-between"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"text-xs","text-slate-500","font-mono"],[1,"text-sm","text-slate-500","italic"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-2"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50"],[1,"bg-slate-950","border","border-slate-800","rounded","p-3","hover:border-cyan-700","cursor-pointer","transition",3,"click"],[1,"text-cyan-400","font-mono","text-sm"],[1,"text-xs","text-slate-400","mt-1","line-clamp-3"],[1,"fixed","inset-0","bg-black/70","flex","items-center","justify-center","p-4","z-50",3,"click"],[1,"bg-slate-900","border","border-cyan-700","rounded","p-4","max-w-3xl","max-h-[80vh]","overflow-auto","w-full",2,"max-height","80dvh",3,"click"],[1,"flex","items-center","justify-between","mb-3"],[1,"text-cyan-300","font-bold"],[1,"text-slate-400","hover:text-white",3,"click"],[1,"text-xs","text-slate-200","whitespace-pre-wrap","font-mono"]],template:function(t,i){if(t&1&&(n(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Workflow Library"),o(),n(4,"span",3),a(5),o()(),k(6,Ft,2,0,"p",4),n(7,"div",5),D(8,Vt,5,2,"div",6,Lt),o(),k(10,At,9,2,"div",7),o()),t&2){let l;s(5),v("",i.workflows_$().length," workflow"),s(),f(i.workflows_$().length===0?6:-1),s(2),M(i.workflows_$()),s(2),f((l=i.selected_$())?10:-1,l)}},dependencies:[$],encapsulation:2})}return r})();function zt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleStart())}),a(1,"Start"),o()}}function Wt(r,c){if(r&1){let e=y();n(0,"button",28),p("click",function(){m(e);let i=d(2);return u(i.handlePause())}),a(1,"Pause"),o()}}function Gt(r,c){if(r&1){let e=y();n(0,"button",27),p("click",function(){m(e);let i=d(2);return u(i.handleResume())}),a(1,"Resume"),o()}}function jt(r,c){if(r&1){let e=y();n(0,"button",29),p("click",function(){m(e);let i=d(2);return u(i.handleStop())}),a(1,"Stop"),o()}}function Bt(r,c){if(r&1){let e=y();n(0,"div",18)(1,"div")(2,"h3",30),a(3,"Bootstrap \u2014 user j\xF3v\xE1hagy\uFFFD\uFFFDs sz\xFCks\xE9ges"),o(),n(4,"p",31),a(5,"N\xE9zd \xE1t a task-list\xE1t, \xE9s kattints az Elfogadom gombra."),o()(),n(6,"button",32),p("click",function(){m(e);let i=d(2);return u(i.handleConfirmBootstrap())}),a(7," Elfogadom "),o()()}}function qt(r,c){if(r&1&&A(0,"app-orc-task-queue-panel",24),r&2){let e=d(2);C("tasks_$",e.tasks_$)}}function Ut(r,c){if(r&1&&A(0,"app-orc-workflow-library-panel",25),r&2){let e,t=d(2);C("orchestratorId",(e=t.orchestratorId)!==null&&e!==void 0?e:"")}}function Qt(r,c){if(r&1&&(n(0,"div",26)(1,"div")(2,"span",33),a(3,"Scope"),o(),n(4,"span",34),a(5),o()(),n(6,"div")(7,"span",33),a(8,"Projekt"),o(),n(9,"span",35),a(10),o()(),n(11,"div")(12,"span",33),a(13,"LLM"),o(),n(14,"span",34),a(15),o()(),n(16,"div")(17,"span",33),a(18,"Iter\xE1ci\xF3"),o(),n(19,"span",36),a(20),o()(),n(21,"div")(22,"span",33),a(23,"Max parallel"),o(),n(24,"span",36),a(25),o()(),n(26,"div")(27,"span",33),a(28,"Poll (s)"),o(),n(29,"span",36),a(30),o()(),n(31,"div")(32,"span",33),a(33,"Mode"),o(),n(34,"span",34),a(35),o()()()),r&2){let e=d();s(5),g(e.scope),s(5),g(e.projectId||"\u2014"),s(5),de("",e.providerName," / ",e.model,""),s(5),g(e.iterationCount),s(5),g(e.maxParallelism),s(5),g(e.pollIntervalSeconds),s(5),g(e.operationMode)}}function Ht(r,c){if(r&1){let e=y();n(0,"app-s-session-detail-three-column-layout",2),p("endResizeStart",function(i){m(e);let l=d();return u(l.handleSidebarResizeStart(i))}),n(1,"div",3)(2,"div",4)(3,"a",5),a(4,"\u2190"),o(),n(5,"div",6)(6,"h1",7),a(7),o(),n(8,"p",8),a(9),o()(),n(10,"span",9),a(11),o(),n(12,"app-orc-mode-switcher",10),p("modeChanged",function(i){m(e);let l=d();return u(l.handleModeSwitch(i))}),o(),A(13,"span",11),n(14,"div",12),k(15,zt,2,0,"button",13)(16,Wt,2,0,"button",14)(17,Gt,2,0,"button",13)(18,jt,2,0,"button",15),o(),n(19,"button",16),p("click",function(){m(e);let i=d();return u(i.handleOpenGraph())}),a(20," Graph "),o(),n(21,"button",17),p("click",function(){m(e);let i=d();return u(i.handleToggleSidebar())}),a(22),o()(),k(23,Bt,8,0,"div",18),A(24,"app-orc-chat-panel",19),o(),n(25,"div",20)(26,"div",21)(27,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="tasks")}),a(28),o(),n(29,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="workflows")}),a(30," Workflows "),o(),n(31,"button",22),p("click",function(){m(e);let i=d();return u(i.sidebarTab="info")}),a(32," Info "),o()(),n(33,"div",23),k(34,qt,1,1,"app-orc-task-queue-panel",24)(35,Ut,1,1,"app-orc-workflow-library-panel",25)(36,Qt,36,8,"div",26),o()()()}if(r&2){let e,t=c,i=d();C("isStartOpen",!1)("isEndOpen",i.isSidebarOpen)("endWidthPx",i.sidebarWidthPx)("isResizing",i.isResizing),s(7),g(t.name),s(2),g(t._id),s(),E("bg-green-900",t.status==="active")("text-green-300",t.status==="active")("bg-yellow-900",t.status==="paused")("text-yellow-300",t.status==="paused")("bg-cyan-900",t.status==="waiting-for-user"||t.status==="bootstrap")("text-cyan-300",t.status==="waiting-for-user"||t.status==="bootstrap")("bg-red-900",t.status==="failed")("text-red-300",t.status==="failed")("bg-slate-700",t.status==="stopped"||t.status==="initializing")("text-slate-300",t.status==="stopped"||t.status==="initializing"),s(),v(" ",t.status," "),s(),C("mode_$",t.operationMode),s(3),f(t.status==="initializing"||t.status==="paused"||t.status==="stopped"?15:-1),s(),f(t.status==="active"?16:-1),s(),f(t.status==="paused"?17:-1),s(),f(t.status!=="stopped"?18:-1),s(4),v(" ",i.isSidebarOpen?"\u25B6":"\u25C0"," "),s(),f(t.status==="waiting-for-user"?23:-1),s(),C("orchestratorId",(e=i.orchestratorId)!==null&&e!==void 0?e:""),s(3),E("text-cyan-300",i.sidebarTab==="tasks")("border-b-2",i.sidebarTab==="tasks")("border-cyan-400",i.sidebarTab==="tasks")("text-slate-500",i.sidebarTab!=="tasks"),s(),v(" Tasks (",i.tasks_$().length,") "),s(),E("text-cyan-300",i.sidebarTab==="workflows")("border-b-2",i.sidebarTab==="workflows")("border-cyan-400",i.sidebarTab==="workflows")("text-slate-500",i.sidebarTab!=="workflows"),s(2),E("text-cyan-300",i.sidebarTab==="info")("border-b-2",i.sidebarTab==="info")("border-cyan-400",i.sidebarTab==="info")("text-slate-500",i.sidebarTab!=="info"),s(3),f(i.sidebarTab==="tasks"?34:-1),s(),f(i.sidebarTab==="workflows"?35:-1),s(),f(i.sidebarTab==="info"?36:-1)}}function Kt(r,c){r&1&&(n(0,"div",1),a(1," T\xF6lt\u0151dik az orchestrator\u2026 "),o())}var ve=(()=>{class r extends Ce{route=x(je);orchestrator_DS=x(I);realtime_CS=x(be);graph_DS=x(Se);peiContext_DS=x(ge);current_$=this.orchestrator_DS.currentOrchestrator_$;tasks_$=this.orchestrator_DS.currentTasks_$;orchestratorId=null;isSidebarOpen=!0;sidebarWidthPx=320;isResizing=!1;sidebarTab="tasks";resizeStartX=0;resizeStartWidth=0;onResizeMove=e=>this.handleSidebarResizeMove(e);onResizeEnd=()=>this.handleSidebarResizeEnd();ngOnInit(){this.addSubscription(this.route.paramMap.subscribe(e=>{let t=e.get("id")??"",i=e.get("ccapId")??"";i&&this.peiContext_DS.activeCcapId_$()!==i&&this.peiContext_DS.selectInstance(i),t&&t!==this.orchestratorId&&(this.orchestratorId=t,this.orchestrator_DS.refreshCurrent(t),this.orchestrator_DS.refreshCurrentTasks(t),this.orchestrator_DS.refreshCurrentMessages(t),this.realtime_CS.subscribeDetail(t))}))}ngOnDestroy(){super.ngOnDestroy(),this.realtime_CS.unsubscribeDetail(),this.orchestrator_DS.clearCurrent(),document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}handleStart(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.startOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | start failed",e)}})}handlePause(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.pauseOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | pause failed",e)}})}handleResume(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.resumeOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | resume failed",e)}})}handleStop(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.stopOrchestrator(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | stop failed",e)}})}handleConfirmBootstrap(){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.confirmBootstrap(this.orchestratorId)}catch(e){q.DyFM_Log.error("ORC_Detail | confirmBootstrap failed",e)}})}handleModeSwitch(e){return _(this,null,function*(){if(this.orchestratorId)try{yield this.orchestrator_DS.switchMode(this.orchestratorId,e)}catch(t){q.DyFM_Log.error("ORC_Detail | switchMode failed",t)}})}handleOpenGraph(){this.orchestratorId&&this.graph_DS.openGraph(this.orchestratorId)}handleToggleSidebar(){this.isSidebarOpen=!this.isSidebarOpen}handleSidebarResizeStart(e){this.isResizing=!0,this.resizeStartX=e.clientX,this.resizeStartWidth=this.sidebarWidthPx,document.addEventListener("pointermove",this.onResizeMove),document.addEventListener("pointerup",this.onResizeEnd)}handleSidebarResizeMove(e){let t=this.resizeStartX-e.clientX;this.sidebarWidthPx=Math.max(200,Math.min(600,this.resizeStartWidth+t))}handleSidebarResizeEnd(){this.isResizing=!1,document.removeEventListener("pointermove",this.onResizeMove),document.removeEventListener("pointerup",this.onResizeEnd)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Me(r)))(i||r)}})();static \u0275cmp=O({type:r,selectors:[["app-orc-detail"]],hostAttrs:[1,"flex","flex-1","min-h-0","overflow-hidden"],standalone:!0,features:[le,R],decls:3,vars:1,consts:[[3,"isStartOpen","isEndOpen","endWidthPx","isResizing"],[1,"flex","items-center","justify-center","h-full","text-slate-500"],[3,"endResizeStart","isStartOpen","isEndOpen","endWidthPx","isResizing"],["sDetailColumnMain","",1,"flex","flex-col","flex-1","min-h-0","overflow-hidden"],[1,"flex","items-center","gap-3","px-4","py-3","border-b","border-slate-800","bg-slate-900","shrink-0"],["routerLink","/orchestrator",1,"text-cyan-400","hover:text-cyan-300","text-sm"],[1,"min-w-0"],[1,"text-lg","font-bold","text-cyan-300","truncate"],[1,"text-xs","text-slate-500","font-mono","truncate"],[1,"px-2","py-0.5","rounded","text-xs","font-bold","shrink-0"],[3,"modeChanged","mode_$"],[1,"flex-1"],[1,"flex","gap-1","shrink-0"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],["title","Flow Graph",1,"px-2","py-1","border","border-cyan-700","text-cyan-400","hover:bg-cyan-900/30","rounded","text-xs","transition-colors","shrink-0",3,"click"],["title","Task queue sidebar",1,"px-2","py-1","border","border-slate-600","text-slate-400","hover:bg-slate-700/50","rounded","text-xs","transition-colors","shrink-0",3,"click"],[1,"bg-cyan-950","border-b","border-cyan-500","px-4","py-3","flex","items-center","justify-between","animate-pulse","shrink-0"],[1,"flex-1","min-h-0",3,"orchestratorId"],["sDetailColumnEnd","",1,"flex","flex-col","min-h-0","overflow-hidden"],[1,"flex","border-b","border-slate-800","shrink-0"],[1,"flex-1","px-3","py-2","text-xs","font-semibold","transition-colors",3,"click"],[1,"flex-1","overflow-y-auto","min-h-0"],[3,"tasks_$"],[3,"orchestratorId"],[1,"p-3","space-y-2","text-sm"],[1,"px-3","py-1","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-3","py-1","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],[1,"text-cyan-300","font-semibold","text-sm"],[1,"text-xs","text-cyan-200","mt-1"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition","whitespace-nowrap","text-sm",3,"click"],[1,"text-xs","text-slate-500","block"],[1,"text-slate-200"],[1,"text-slate-200","font-mono","text-xs"],[1,"text-slate-200","font-mono"]],template:function(t,i){if(t&1&&(k(0,Ht,37,63,"app-s-session-detail-three-column-layout",0)(1,Kt,2,0,"div",1),A(2,"app-orc-graph-modal")),t&2){let l;f((l=i.current_$())?0:1,l)}},dependencies:[$,Q,pe,Qe,tt,it,rt,nt,ot],encapsulation:2})}return r})();var se=ie(re());var Xt=(r,c)=>c._id,Yt=(r,c)=>["/orchestrator",r,c],Jt=r=>["/orchestrator",r];function Zt(r,c){if(r&1){let e=y();n(0,"button",12),p("click",function(){m(e);let i=d();return u(i.openForm())}),a(1," + \xDAj Orchestrator "),o()}}function ei(r,c){if(r&1&&(n(0,"div",27),a(1),o()),r&2){let e=d(2);s(),v(" ",e.formError," ")}}function ti(r,c){if(r&1){let e=y();n(0,"form",13),p("ngSubmit",function(){m(e);let i=d();return u(i.handleSubmitForm())}),n(1,"h2",14),a(2,"\xDAj Orchestrator"),o(),n(3,"div",15)(4,"label",16)(5,"span",17),a(6,"N\xE9v *"),o(),n(7,"input",18),W("ngModelChange",function(i){m(e);let l=d();return z(l.formName,i)||(l.formName=i),u(i)}),o()(),n(8,"label",16)(9,"span",17),a(10,"Scope"),o(),n(11,"select",19),W("ngModelChange",function(i){m(e);let l=d();return z(l.formScope,i)||(l.formScope=i),u(i)}),n(12,"option",20),a(13,"single-project"),o(),n(14,"option",21),a(15,"cross-project"),o(),n(16,"option",22),a(17,"specialized"),o()()(),n(18,"label",16)(19,"span",17),a(20,"Projekt ID"),o(),n(21,"input",23),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProjectId,i)||(l.formProjectId=i),u(i)}),o()(),n(22,"label",16)(23,"span",17),a(24,"LLM Provider"),o(),n(25,"input",24),W("ngModelChange",function(i){m(e);let l=d();return z(l.formProviderName,i)||(l.formProviderName=i),u(i)}),o()(),n(26,"label",25)(27,"span",17),a(28,"Modell"),o(),n(29,"input",26),W("ngModelChange",function(i){m(e);let l=d();return z(l.formModel,i)||(l.formModel=i),u(i)}),o()()(),k(30,ei,2,1,"div",27),n(31,"div",28)(32,"button",29),p("click",function(){m(e);let i=d();return u(i.closeForm())}),a(33," M\xE9gse "),o(),n(34,"button",30),a(35," L\xE9trehoz\xE1s "),o()()()}if(r&2){let e=d();s(7),N("ngModel",e.formName),s(4),N("ngModel",e.formScope),s(10),N("ngModel",e.formProjectId),s(4),N("ngModel",e.formProviderName),s(4),N("ngModel",e.formModel),s(),f(e.formError?30:-1)}}function ii(r,c){if(r&1){let e=y();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStart(i._id))}),a(1," start "),o()}}function ri(r,c){if(r&1){let e=y();n(0,"button",42),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handlePause(i._id))}),a(1," pause "),o()}}function ni(r,c){if(r&1){let e=y();n(0,"button",41),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleResume(i._id))}),a(1," resume "),o()}}function oi(r,c){if(r&1){let e=y();n(0,"button",43),p("click",function(){m(e);let i=d().$implicit,l=d();return u(l.handleStop(i._id))}),a(1," stop "),o()}}function ai(r,c){if(r&1&&(n(0,"tr",11)(1,"td",31)(2,"a",32),a(3),o()(),n(4,"td",33),a(5),o(),n(6,"td",34),a(7),o(),n(8,"td",31)(9,"span",35),a(10),o()(),n(11,"td",36),a(12),o(),n(13,"td",37),k(14,ii,2,0,"button",38)(15,ri,2,0,"button",39)(16,ni,2,0,"button",38)(17,oi,2,0,"button",40),o()()),r&2){let e=c.$implicit,t=d();s(2),C("routerLink",t.activeCcapId_$()?We(30,Yt,t.activeCcapId_$(),e._id):ze(33,Jt,e._id)),s(),v(" ",e.name," "),s(2),g(e.scope),s(2),v(" ",e.projectId||e.projectIds.join(",")||"\u2014"," "),s(2),E("bg-green-900",e.status==="active")("text-green-300",e.status==="active")("bg-yellow-900",e.status==="paused")("text-yellow-300",e.status==="paused")("bg-cyan-900",e.status==="waiting-for-user"||e.status==="bootstrap")("text-cyan-300",e.status==="waiting-for-user"||e.status==="bootstrap")("bg-red-900",e.status==="failed")("text-red-300",e.status==="failed")("bg-slate-700",e.status==="stopped"||e.status==="initializing")("text-slate-300",e.status==="stopped"||e.status==="initializing"),s(),v(" ",e.status," "),s(2),g(e.iterationCount),s(2),f(e.status==="initializing"||e.status==="paused"||e.status==="stopped"?14:-1),s(),f(e.status==="active"?15:-1),s(),f(e.status==="paused"?16:-1),s(),f(e.status!=="stopped"?17:-1)}}function si(r,c){r&1&&(n(0,"tr")(1,"td",44),a(2,' Nincs Orchestrator. Kattints a \u201E+ \xDAj Orchestrator" gombra. '),o()())}var $e=(()=>{class r{orchestrator_DS=x(I);realtime_CS=x(be);peiContext_DS=x(ge);orchestratorList_$=this.orchestrator_DS.orchestratorList_$;activeCount_$=this.orchestrator_DS.activeCount_$;activeCcapId_$=this.peiContext_DS.activeCcapId_$;formName="";formScope="single-project";formProjectId="";formProviderName="";formModel="";formIsOpen=!1;formError=null;ngOnInit(){this.realtime_CS.subscribeGlobal(),this.orchestrator_DS.refreshList()}openForm(){this.formIsOpen=!0,this.formError=null}closeForm(){this.formIsOpen=!1,this.formName="",this.formProjectId="",this.formProviderName="",this.formModel="",this.formError=null}handleSubmitForm(){return _(this,null,function*(){try{if(!this.formName.trim()){this.formError="N\xE9v megad\xE1sa k\xF6telez\u0151.";return}yield this.orchestrator_DS.createOrchestrator({name:this.formName.trim(),scope:this.formScope,projectId:this.formProjectId.trim()||void 0,providerName:this.formProviderName.trim()||void 0,model:this.formModel.trim()||void 0}),this.closeForm()}catch(e){this.formError=this.extractErrorMessage(e)}})}handleStart(e){return _(this,null,function*(){try{yield this.orchestrator_DS.startOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | start failed",t)}})}handlePause(e){return _(this,null,function*(){try{yield this.orchestrator_DS.pauseOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | pause failed",t)}})}handleResume(e){return _(this,null,function*(){try{yield this.orchestrator_DS.resumeOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | resume failed",t)}})}handleStop(e){return _(this,null,function*(){try{yield this.orchestrator_DS.stopOrchestrator(e)}catch(t){se.DyFM_Log.error("ORC_List | stop failed",t)}})}extractErrorMessage(e){return typeof e=="object"&&e!==null&&"message"in e?String(e.message):String(e)}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=O({type:r,selectors:[["app-orc-list"]],standalone:!0,features:[R],decls:31,vars:4,consts:[[1,"p-6","space-y-4"],[1,"flex","items-center","justify-between"],[1,"text-2xl","font-bold","text-cyan-300"],[1,"text-sm","text-slate-400"],[1,"text-green-400","font-mono"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3"],[1,"overflow-x-auto","bg-slate-900","border","border-slate-800","rounded"],[1,"w-full","text-sm"],[1,"bg-slate-800","text-slate-300"],[1,"text-left","px-3","py-2"],[1,"border-t","border-slate-800","hover:bg-slate-800/50"],[1,"px-4","py-2","bg-cyan-600","hover:bg-cyan-500","text-white","font-bold","rounded","transition",3,"click"],[1,"bg-slate-900","border","border-cyan-800","rounded","p-4","space-y-3",3,"ngSubmit"],[1,"text-lg","font-semibold","text-cyan-300"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-3"],[1,"flex","flex-col","gap-1"],[1,"text-xs","text-slate-400"],["name","name","required","",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","scope",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["value","single-project"],["value","cross-project"],["value","specialized"],["name","projectId",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],["name","providerName","placeholder","openai / anthropic / ...",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"flex","flex-col","gap-1","md:col-span-2"],["name","model",1,"bg-slate-800","border","border-slate-700","rounded","px-2","py-1","text-white",3,"ngModelChange","ngModel"],[1,"bg-red-900","border","border-red-700","rounded","px-3","py-2","text-red-200","text-sm"],[1,"flex","gap-2","justify-end"],["type","button",1,"px-3","py-1","text-slate-400","hover:text-white",3,"click"],["type","submit",1,"px-4","py-1","bg-cyan-600","hover:bg-cyan-500","text-white","rounded"],[1,"px-3","py-2"],[1,"text-cyan-400","hover:text-cyan-300","font-mono",3,"routerLink"],[1,"px-3","py-2","text-slate-400"],[1,"px-3","py-2","text-slate-400","font-mono","text-xs"],[1,"px-2","py-0.5","rounded","text-xs","font-bold"],[1,"px-3","py-2","text-slate-500","font-mono"],[1,"px-3","py-2","space-x-1"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs"],[1,"px-2","py-0.5","bg-green-700","hover:bg-green-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-yellow-700","hover:bg-yellow-600","text-white","rounded","text-xs",3,"click"],[1,"px-2","py-0.5","bg-red-800","hover:bg-red-700","text-white","rounded","text-xs",3,"click"],["colspan","6",1,"px-3","py-6","text-center","text-slate-500"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h1",2),a(4,"Orchestrator Agents"),o(),n(5,"p",3),a(6," Akt\xEDv: "),n(7,"span",4),a(8),o()()(),k(9,Zt,2,0,"button",5),o(),k(10,ti,36,6,"form",6),n(11,"div",7)(12,"table",8)(13,"thead",9)(14,"tr")(15,"th",10),a(16,"N\xE9v"),o(),n(17,"th",10),a(18,"Scope"),o(),n(19,"th",10),a(20,"Projekt"),o(),n(21,"th",10),a(22,"St\xE1tusz"),o(),n(23,"th",10),a(24,"Iter#"),o(),n(25,"th",10),a(26,"M\u0171veletek"),o()()(),n(27,"tbody"),D(28,ai,18,35,"tr",11,Xt,!1,si,3,0,"tr"),o()()()()),t&2&&(s(8),g(i.activeCount_$()),s(),f(i.formIsOpen?-1:9),s(),f(i.formIsOpen?10:-1),s(18),M(i.orchestratorList_$()))},dependencies:[$,Y,ue,fe,xe,H,he,K,_e,Be,X,me,Q,pe],encapsulation:2})}return r})();var li=[{path:"",pathMatch:"full",component:$e},{path:":ccapId/:id",component:ve},{path:":id",component:ve}],sn=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=De({type:r});static \u0275inj=Ie({imports:[$,Q.forChild(li),$e,ve]})}return r})();export{sn as Orchestrator_Module};
|
|
2
|
+
//# sourceMappingURL=orc.module-V4FGV47K.js.map
|