@futdevpro/ccap 1.1.3465 → 1.1.3475
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-T5NZHTUX.js → agent-instances.module-DMLE5SQ6.js} +2 -2
- package/client-dist/{ca.module-FQELCJHL.js → ca.module-QOHKCHLO.js} +2 -2
- package/client-dist/cc-usage-dashboard.component-Q7JB2QGU.js +2 -0
- package/client-dist/cc-usage-dashboard.component-Q7JB2QGU.js.map +7 -0
- package/client-dist/{cc.module-BD3QY5IC.js → cc.module-5G7YIZIN.js} +2 -2
- package/client-dist/{cc.module-BD3QY5IC.js.map → cc.module-5G7YIZIN.js.map} +1 -1
- package/client-dist/{chunk-L45QVZNT.js → chunk-2REG4JGE.js} +2 -2
- package/client-dist/{chunk-42N2AACO.js → chunk-3BTPNZMW.js} +2 -2
- package/client-dist/{chunk-C6DGCFHL.js → chunk-3OSBKV37.js} +2 -2
- package/client-dist/{chunk-ODVR6BGX.js → chunk-3XIKUFTG.js} +2 -2
- package/client-dist/{chunk-2RW3Z32T.js → chunk-45AAM2E6.js} +2 -2
- package/client-dist/{chunk-LRVS6OH7.js → chunk-45QQ75U4.js} +2 -2
- package/client-dist/chunk-4HU6KBS2.js +2 -0
- package/client-dist/chunk-4HU6KBS2.js.map +7 -0
- package/client-dist/{chunk-P7KKKTL2.js → chunk-4RSRS6ZD.js} +2 -2
- package/client-dist/chunk-5YFMIJGP.js +73 -0
- package/client-dist/chunk-5YFMIJGP.js.map +1 -0
- package/client-dist/{chunk-2KA2U2YX.js → chunk-6UCTALVH.js} +2 -2
- package/client-dist/{chunk-X6HOES7C.js → chunk-74OHWSOM.js} +2 -2
- package/client-dist/{chunk-MELUJSKX.js → chunk-7KVFGSPS.js} +2 -2
- package/client-dist/{chunk-ZHDALAGY.js → chunk-7XBV7PXE.js} +2 -2
- package/client-dist/{chunk-IFXJIKH4.js → chunk-A2I5OKYO.js} +2 -2
- package/client-dist/{chunk-4GBTGROS.js → chunk-AFY476P6.js} +2 -2
- package/client-dist/{chunk-SX4OPQOG.js → chunk-AXBADCJF.js} +2 -2
- package/client-dist/{chunk-GGZ3SJBD.js → chunk-BTKVE43X.js} +2 -2
- package/client-dist/{chunk-QMLTSA2U.js → chunk-CLBQLVIQ.js} +2 -2
- package/client-dist/{chunk-6S67EM2E.js → chunk-CXDFXM7A.js} +2 -2
- package/client-dist/{chunk-A3SVMYCA.js → chunk-D624TAJK.js} +2 -2
- package/client-dist/{chunk-VE3FJJKW.js → chunk-EETHWHWB.js} +2 -2
- package/client-dist/{chunk-QMB5YYMP.js → chunk-HOIPM3VO.js} +2 -2
- package/client-dist/{chunk-J5HUXXKW.js → chunk-I6VVYTVP.js} +2 -2
- package/client-dist/{chunk-4HYC2OQP.js → chunk-IZCSH6HT.js} +2 -2
- package/client-dist/{chunk-36ZBT2CJ.js → chunk-JB7QCGTL.js} +2 -2
- package/client-dist/{chunk-VFHCDW6E.js → chunk-JCDL4BUN.js} +2 -2
- package/client-dist/{chunk-K6PYNZ2O.js → chunk-JSDJGSEJ.js} +2 -2
- package/client-dist/{chunk-AHZLIVHV.js → chunk-K5DYQMWL.js} +2 -2
- package/client-dist/{chunk-GD5V3BWU.js → chunk-KI5TGLLN.js} +2 -2
- package/client-dist/{chunk-AH3DHRBU.js → chunk-KP7EE7KX.js} +2 -2
- package/client-dist/{chunk-IF5JBBPU.js → chunk-LK72JGGM.js} +2 -2
- package/client-dist/{chunk-VF52FVGQ.js → chunk-NYN276YL.js} +2 -2
- package/client-dist/chunk-NYN276YL.js.map +7 -0
- package/client-dist/{chunk-5VAPWYHT.js → chunk-O4AGH6FE.js} +2 -2
- package/client-dist/{chunk-ZLECQVI2.js → chunk-PIVAVJA3.js} +2 -2
- package/client-dist/{chunk-BKICQS7D.js → chunk-PWGP7JAY.js} +2 -2
- package/client-dist/{chunk-SQOIJHU2.js → chunk-PYBPMJVA.js} +2 -2
- package/client-dist/{chunk-JLKTCB3H.js → chunk-PZWZ5LED.js} +2 -2
- package/client-dist/{chunk-6DI6TTLH.js → chunk-QSTOFD3E.js} +2 -2
- package/client-dist/{chunk-M5QA3SHD.js → chunk-RSHIAWAM.js} +2 -2
- package/client-dist/{chunk-GARB57PP.js → chunk-SWOZFC5L.js} +2 -2
- package/client-dist/{chunk-WHDFCYAN.js → chunk-TAUATS6O.js} +2 -2
- package/client-dist/{chunk-SFPWMV4C.js → chunk-U23LUA3L.js} +2 -2
- package/client-dist/{chunk-JJILMXI4.js → chunk-UAGCRRSF.js} +2 -2
- package/client-dist/{chunk-VGOZI4SO.js → chunk-UEZEQPYZ.js} +2 -2
- package/client-dist/{chunk-BEJFX7HS.js → chunk-UTPSCM4T.js} +2 -2
- package/client-dist/{chunk-GVS2YOQS.js → chunk-UV2CNQPN.js} +2 -2
- package/client-dist/{chunk-4UVXQUK7.js → chunk-UVUPZWVM.js} +2 -2
- package/client-dist/{chunk-CORKSPL3.js → chunk-VZDVIDOY.js} +2 -2
- package/client-dist/{chunk-X3QENSK2.js → chunk-VZWJDDQO.js} +2 -2
- package/client-dist/{chunk-TRPAJFTF.js → chunk-X4LM76A6.js} +2 -2
- package/client-dist/{chunk-BNWGUIZH.js → chunk-XLI6UF2I.js} +2 -2
- package/client-dist/{chunk-ELLKS37C.js → chunk-Y5BU7PKD.js} +2 -2
- package/client-dist/{chunk-RM7ASQRB.js → chunk-YABLCEL2.js} +2 -2
- package/client-dist/{chunk-5YYFP3K4.js → chunk-ZHZZ23WS.js} +2 -2
- package/client-dist/{chunk-PGHUXL7M.js → chunk-ZP5H6DPG.js} +2 -2
- package/client-dist/{chunk-LWSSRQ3A.js → chunk-ZTJG3WRV.js} +2 -2
- package/client-dist/{chunk-LWSSRQ3A.js.map → chunk-ZTJG3WRV.js.map} +1 -1
- package/client-dist/{chunk-2W2KDWV6.js → chunk-ZYDX4CZ4.js} +2 -2
- package/client-dist/{consultant.module-KVCB3EXV.js → consultant.module-YAJAXDG4.js} +2 -2
- package/client-dist/{crd.module-HWDVQ4LB.js → crd.module-6MAO5PYR.js} +2 -2
- package/client-dist/{dashboard.module-6532542W.js → dashboard.module-FYRAAV5H.js} +2 -2
- package/client-dist/{do.module-K7DGAE6J.js → do.module-2GCOF5CS.js} +2 -2
- package/client-dist/{document-library.module-5PBZBOIV.js → document-library.module-SMSACCOR.js} +2 -2
- package/client-dist/{embedding-eval.module-4XSMCPIW.js → embedding-eval.module-D4MSUV46.js} +2 -2
- package/client-dist/{embedding-registry.module-J47MLCE3.js → embedding-registry.module-AGKRAKFD.js} +2 -2
- package/client-dist/{err.module-KNLO27W5.js → err.module-7TIY3H7V.js} +2 -2
- package/client-dist/{feedback.module-75TQM2HT.js → feedback.module-OQGBQUDO.js} +2 -2
- package/client-dist/{host-runtime-mcp.module-GIV6LCON.js → host-runtime-mcp.module-MWKIKSX5.js} +2 -2
- package/client-dist/index.html +2 -2
- package/client-dist/{live-dev-pipeline.module-KDYKMMQA.js → live-dev-pipeline.module-W5RQPWRY.js} +2 -2
- package/client-dist/{logs.module-TJ5EVO53.js → logs.module-52SIGR4B.js} +2 -2
- package/client-dist/{main-IEMAKLQQ.js → main-3VHQGHYH.js} +3 -3
- package/client-dist/{master-control-remote-poc.module-HPBO2HKG.js → master-control-remote-poc.module-BM3SO7E2.js} +2 -2
- package/client-dist/{mobile-app.module-B7IYEBLK.js → mobile-app.module-I77M7L5F.js} +2 -2
- package/client-dist/{model-registry.module-F7NALYFC.js → model-registry.module-REDLL4RE.js} +2 -2
- package/client-dist/{oc.module-ZOE5BKKI.js → oc.module-NGAYUB5S.js} +2 -2
- package/client-dist/{orc.module-DMTAUMB7.js → orc.module-L74IH6HE.js} +2 -2
- package/client-dist/{project-management.module-FYYKWANX.js → project-management.module-YGDAUDD4.js} +2 -2
- package/client-dist/project-source-routed.module-IUH445SK.js +2 -0
- package/client-dist/{scheduler.module-EKCXZSJE.js → scheduler.module-PPM6CPOG.js} +2 -2
- package/client-dist/{session.module-RPW52W7E.js → session.module-WDSN7ISN.js} +2 -2
- package/client-dist/{set.module-FSYBKXJH.js → set.module-YDZDF4KJ.js} +5 -5
- package/client-dist/{set.module-FSYBKXJH.js.map → set.module-YDZDF4KJ.js.map} +3 -3
- package/client-dist/{setup.module-KYXEAHED.js → setup.module-EKA4N3W7.js} +2 -2
- package/client-dist/styles-3HNDKF5N.css +2 -0
- package/client-dist/styles-3HNDKF5N.css.map +7 -0
- package/client-dist/{terminals.module-MMQYWXQZ.js → terminals.module-A72F2AGE.js} +2 -2
- package/client-dist/{voice-notes-poc.module-YABLQUOL.js → voice-notes-poc.module-A5ZHRPJX.js} +2 -2
- package/client-dist/{wfs.module-7W5WA5SV.js → wfs.module-XY7IV5Y7.js} +2 -2
- package/package.json +1 -1
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.d.ts +10 -0
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.d.ts.map +1 -1
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.js +11 -0
- package/server/build/src/_modules/ai-systems/_modules/model-registry/_models/data-models/mrg-instance-registry.data-model.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_routes/exs-instance-registry.controller.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_routes/exs-instance-registry.controller.js +12 -0
- package/server/build/src/_modules/external-sessions/_routes/exs-instance-registry.controller.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.control-service.d.ts +10 -0
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.control-service.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.control-service.js +72 -0
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.control-service.js.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.d.ts +11 -0
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.d.ts.map +1 -1
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.js +41 -0
- package/server/build/src/_modules/external-sessions/_services/exs-instance-registry.data-service.js.map +1 -1
- package/server/build/src/app.server.d.ts.map +1 -1
- package/server/build/src/app.server.js +4 -9
- package/server/build/src/app.server.js.map +1 -1
- package/client-dist/cc-usage-dashboard.component-53VPGRKO.js +0 -2
- package/client-dist/cc-usage-dashboard.component-53VPGRKO.js.map +0 -7
- package/client-dist/chunk-2OCS2YB5.js +0 -2
- package/client-dist/chunk-2OCS2YB5.js.map +0 -7
- package/client-dist/chunk-VF52FVGQ.js.map +0 -7
- package/client-dist/chunk-YVTCB6RZ.js +0 -73
- package/client-dist/chunk-YVTCB6RZ.js.map +0 -1
- package/client-dist/project-source-routed.module-YXGEVEQO.js +0 -2
- package/client-dist/styles-CTUT42AQ.css +0 -2
- package/client-dist/styles-CTUT42AQ.css.map +0 -7
- /package/client-dist/{agent-instances.module-T5NZHTUX.js.map → agent-instances.module-DMLE5SQ6.js.map} +0 -0
- /package/client-dist/{ca.module-FQELCJHL.js.map → ca.module-QOHKCHLO.js.map} +0 -0
- /package/client-dist/{chunk-L45QVZNT.js.map → chunk-2REG4JGE.js.map} +0 -0
- /package/client-dist/{chunk-42N2AACO.js.map → chunk-3BTPNZMW.js.map} +0 -0
- /package/client-dist/{chunk-C6DGCFHL.js.map → chunk-3OSBKV37.js.map} +0 -0
- /package/client-dist/{chunk-ODVR6BGX.js.map → chunk-3XIKUFTG.js.map} +0 -0
- /package/client-dist/{chunk-2RW3Z32T.js.map → chunk-45AAM2E6.js.map} +0 -0
- /package/client-dist/{chunk-LRVS6OH7.js.map → chunk-45QQ75U4.js.map} +0 -0
- /package/client-dist/{chunk-P7KKKTL2.js.map → chunk-4RSRS6ZD.js.map} +0 -0
- /package/client-dist/{chunk-2KA2U2YX.js.map → chunk-6UCTALVH.js.map} +0 -0
- /package/client-dist/{chunk-X6HOES7C.js.map → chunk-74OHWSOM.js.map} +0 -0
- /package/client-dist/{chunk-MELUJSKX.js.map → chunk-7KVFGSPS.js.map} +0 -0
- /package/client-dist/{chunk-ZHDALAGY.js.map → chunk-7XBV7PXE.js.map} +0 -0
- /package/client-dist/{chunk-IFXJIKH4.js.map → chunk-A2I5OKYO.js.map} +0 -0
- /package/client-dist/{chunk-4GBTGROS.js.map → chunk-AFY476P6.js.map} +0 -0
- /package/client-dist/{chunk-SX4OPQOG.js.map → chunk-AXBADCJF.js.map} +0 -0
- /package/client-dist/{chunk-GGZ3SJBD.js.map → chunk-BTKVE43X.js.map} +0 -0
- /package/client-dist/{chunk-QMLTSA2U.js.map → chunk-CLBQLVIQ.js.map} +0 -0
- /package/client-dist/{chunk-6S67EM2E.js.map → chunk-CXDFXM7A.js.map} +0 -0
- /package/client-dist/{chunk-A3SVMYCA.js.map → chunk-D624TAJK.js.map} +0 -0
- /package/client-dist/{chunk-VE3FJJKW.js.map → chunk-EETHWHWB.js.map} +0 -0
- /package/client-dist/{chunk-QMB5YYMP.js.map → chunk-HOIPM3VO.js.map} +0 -0
- /package/client-dist/{chunk-J5HUXXKW.js.map → chunk-I6VVYTVP.js.map} +0 -0
- /package/client-dist/{chunk-4HYC2OQP.js.map → chunk-IZCSH6HT.js.map} +0 -0
- /package/client-dist/{chunk-36ZBT2CJ.js.map → chunk-JB7QCGTL.js.map} +0 -0
- /package/client-dist/{chunk-VFHCDW6E.js.map → chunk-JCDL4BUN.js.map} +0 -0
- /package/client-dist/{chunk-K6PYNZ2O.js.map → chunk-JSDJGSEJ.js.map} +0 -0
- /package/client-dist/{chunk-AHZLIVHV.js.map → chunk-K5DYQMWL.js.map} +0 -0
- /package/client-dist/{chunk-GD5V3BWU.js.map → chunk-KI5TGLLN.js.map} +0 -0
- /package/client-dist/{chunk-AH3DHRBU.js.map → chunk-KP7EE7KX.js.map} +0 -0
- /package/client-dist/{chunk-IF5JBBPU.js.map → chunk-LK72JGGM.js.map} +0 -0
- /package/client-dist/{chunk-5VAPWYHT.js.map → chunk-O4AGH6FE.js.map} +0 -0
- /package/client-dist/{chunk-ZLECQVI2.js.map → chunk-PIVAVJA3.js.map} +0 -0
- /package/client-dist/{chunk-BKICQS7D.js.map → chunk-PWGP7JAY.js.map} +0 -0
- /package/client-dist/{chunk-SQOIJHU2.js.map → chunk-PYBPMJVA.js.map} +0 -0
- /package/client-dist/{chunk-JLKTCB3H.js.map → chunk-PZWZ5LED.js.map} +0 -0
- /package/client-dist/{chunk-6DI6TTLH.js.map → chunk-QSTOFD3E.js.map} +0 -0
- /package/client-dist/{chunk-M5QA3SHD.js.map → chunk-RSHIAWAM.js.map} +0 -0
- /package/client-dist/{chunk-GARB57PP.js.map → chunk-SWOZFC5L.js.map} +0 -0
- /package/client-dist/{chunk-WHDFCYAN.js.map → chunk-TAUATS6O.js.map} +0 -0
- /package/client-dist/{chunk-SFPWMV4C.js.map → chunk-U23LUA3L.js.map} +0 -0
- /package/client-dist/{chunk-JJILMXI4.js.map → chunk-UAGCRRSF.js.map} +0 -0
- /package/client-dist/{chunk-VGOZI4SO.js.map → chunk-UEZEQPYZ.js.map} +0 -0
- /package/client-dist/{chunk-BEJFX7HS.js.map → chunk-UTPSCM4T.js.map} +0 -0
- /package/client-dist/{chunk-GVS2YOQS.js.map → chunk-UV2CNQPN.js.map} +0 -0
- /package/client-dist/{chunk-4UVXQUK7.js.map → chunk-UVUPZWVM.js.map} +0 -0
- /package/client-dist/{chunk-CORKSPL3.js.map → chunk-VZDVIDOY.js.map} +0 -0
- /package/client-dist/{chunk-X3QENSK2.js.map → chunk-VZWJDDQO.js.map} +0 -0
- /package/client-dist/{chunk-TRPAJFTF.js.map → chunk-X4LM76A6.js.map} +0 -0
- /package/client-dist/{chunk-BNWGUIZH.js.map → chunk-XLI6UF2I.js.map} +0 -0
- /package/client-dist/{chunk-ELLKS37C.js.map → chunk-Y5BU7PKD.js.map} +0 -0
- /package/client-dist/{chunk-RM7ASQRB.js.map → chunk-YABLCEL2.js.map} +0 -0
- /package/client-dist/{chunk-5YYFP3K4.js.map → chunk-ZHZZ23WS.js.map} +0 -0
- /package/client-dist/{chunk-PGHUXL7M.js.map → chunk-ZP5H6DPG.js.map} +0 -0
- /package/client-dist/{chunk-2W2KDWV6.js.map → chunk-ZYDX4CZ4.js.map} +0 -0
- /package/client-dist/{consultant.module-KVCB3EXV.js.map → consultant.module-YAJAXDG4.js.map} +0 -0
- /package/client-dist/{crd.module-HWDVQ4LB.js.map → crd.module-6MAO5PYR.js.map} +0 -0
- /package/client-dist/{dashboard.module-6532542W.js.map → dashboard.module-FYRAAV5H.js.map} +0 -0
- /package/client-dist/{do.module-K7DGAE6J.js.map → do.module-2GCOF5CS.js.map} +0 -0
- /package/client-dist/{document-library.module-5PBZBOIV.js.map → document-library.module-SMSACCOR.js.map} +0 -0
- /package/client-dist/{embedding-eval.module-4XSMCPIW.js.map → embedding-eval.module-D4MSUV46.js.map} +0 -0
- /package/client-dist/{embedding-registry.module-J47MLCE3.js.map → embedding-registry.module-AGKRAKFD.js.map} +0 -0
- /package/client-dist/{err.module-KNLO27W5.js.map → err.module-7TIY3H7V.js.map} +0 -0
- /package/client-dist/{feedback.module-75TQM2HT.js.map → feedback.module-OQGBQUDO.js.map} +0 -0
- /package/client-dist/{host-runtime-mcp.module-GIV6LCON.js.map → host-runtime-mcp.module-MWKIKSX5.js.map} +0 -0
- /package/client-dist/{live-dev-pipeline.module-KDYKMMQA.js.map → live-dev-pipeline.module-W5RQPWRY.js.map} +0 -0
- /package/client-dist/{logs.module-TJ5EVO53.js.map → logs.module-52SIGR4B.js.map} +0 -0
- /package/client-dist/{main-IEMAKLQQ.js.map → main-3VHQGHYH.js.map} +0 -0
- /package/client-dist/{master-control-remote-poc.module-HPBO2HKG.js.map → master-control-remote-poc.module-BM3SO7E2.js.map} +0 -0
- /package/client-dist/{mobile-app.module-B7IYEBLK.js.map → mobile-app.module-I77M7L5F.js.map} +0 -0
- /package/client-dist/{model-registry.module-F7NALYFC.js.map → model-registry.module-REDLL4RE.js.map} +0 -0
- /package/client-dist/{oc.module-ZOE5BKKI.js.map → oc.module-NGAYUB5S.js.map} +0 -0
- /package/client-dist/{orc.module-DMTAUMB7.js.map → orc.module-L74IH6HE.js.map} +0 -0
- /package/client-dist/{project-management.module-FYYKWANX.js.map → project-management.module-YGDAUDD4.js.map} +0 -0
- /package/client-dist/{project-source-routed.module-YXGEVEQO.js.map → project-source-routed.module-IUH445SK.js.map} +0 -0
- /package/client-dist/{scheduler.module-EKCXZSJE.js.map → scheduler.module-PPM6CPOG.js.map} +0 -0
- /package/client-dist/{session.module-RPW52W7E.js.map → session.module-WDSN7ISN.js.map} +0 -0
- /package/client-dist/{setup.module-KYXEAHED.js.map → setup.module-EKA4N3W7.js.map} +0 -0
- /package/client-dist/{terminals.module-MMQYWXQZ.js.map → terminals.module-A72F2AGE.js.map} +0 -0
- /package/client-dist/{voice-notes-poc.module-YABLQUOL.js.map → voice-notes-poc.module-A5ZHRPJX.js.map} +0 -0
- /package/client-dist/{wfs.module-7W5WA5SV.js.map → wfs.module-XY7IV5Y7.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as h}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{p as h}from"./chunk-ZTJG3WRV.js";import{h as S}from"./chunk-TBMJSIBB.js";var c=S(h()),f=60,d=60*60,g=60*60*24,M=7,m=class{static formatRelativeTime(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let a=new Date,i=a.getTime()-n.getTime(),o=Math.floor(i/c.second);if(o<0)return"";if(o<f)return"just now";let e=Math.floor(o/f);if(e<60)return e===1?"1 minute ago":`${e} minutes ago`;let s=Math.floor(o/d);if(s<24)return s===1?"1 hour ago":`${s} hours ago`;let r=Math.floor(o/g);if(r<=M)return r===1?"1 day ago":`${r} days ago`;let u={month:"short",day:"numeric",year:n.getFullYear()!==a.getFullYear()?"numeric":void 0};return n.toLocaleDateString(void 0,u)}static formatCompactRelativeTime(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let i=Date.now()-n.getTime();if(i<0)return"just now";let o=Math.floor(i/c.second),e=Math.floor(o/f),s=Math.floor(o/d),r=Math.floor(o/g);return o<f?"just now":e<60?`${e}m ago`:s<24?`${s}h ago`:r<30?`${r}d ago`:`${Math.floor(r/30)}mo ago`}static formatAbsoluteForTooltip(t){if(t==null)return"";let n=typeof t=="string"?new Date(t):t;if(Number.isNaN(n.getTime()))return"";let a=String(n.getFullYear()),i=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0"),e=String(n.getHours()).padStart(2,"0"),s=String(n.getMinutes()).padStart(2,"0"),r=String(n.getSeconds()).padStart(2,"0");return`${a}-${i}-${o} ${e}:${s}:${r}`}};export{m as a};
|
|
2
|
+
//# sourceMappingURL=chunk-2REG4JGE.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{I as p}from"./chunk-ZTJG3WRV.js";import{C as a,p as r,vb as o,xb as n,y as s}from"./chunk-TBMJSIBB.js";var h=(()=>{class t{baseUrl=`${p.api.baseUrl}/server`;http=a(n);getStatus(){return r(this.http.get(`${this.baseUrl}/status`))}getLiveDevPipelineStatus(i){let e=new o;return i.isPrevious&&(e=e.set("previous","true")),r(this.http.get(`${this.baseUrl}/live-dev-pipeline-status`,{params:e}))}static \u0275fac=function(e){return new(e||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3BTPNZMW.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{I as o}from"./chunk-ZTJG3WRV.js";import{C as s,p as r,xb as a,y as n}from"./chunk-TBMJSIBB.js";var h=(()=>{class e{baseUrl=`${o.api.baseUrl}/oci-instance-data`;http=s(a);listInstances(){return r(this.http.get(`${this.baseUrl}/list`))}getByInstanceId(t){return r(this.http.get(`${this.baseUrl}/by-id/${t}`))}patchVisuals(t){let i={};return t.label!==void 0&&(i.label=t.label),t.darkOfficeVisuals!==void 0&&(i.darkOfficeVisuals=t.darkOfficeVisuals),r(this.http.patch(`${this.baseUrl}/by-id/${t.instanceId}`,i))}static \u0275fac=function(i){return new(i||e)};static \u0275prov=n({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3OSBKV37.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as _}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as _}from"./chunk-PYBPMJVA.js";import{I as C,p as $}from"./chunk-ZTJG3WRV.js";import{C as l,a as c,aa as s,b as d,h as f,hb as S,k as n,p as a,t as h,xb as m,y as p}from"./chunk-TBMJSIBB.js";var i=f($());var g=(()=>{class e{http=l(m);coordinatorUrl(t){return`${C.api.baseUrl}/session/${t}/coordinator`}getStatus(t){return a(this.http.get(this.coordinatorUrl(t)))}startCoordinator(t){return a(this.http.post(this.coordinatorUrl(t.sessionId),{providerName:t.providerName,model:t.model,workflowId:t.workflowId,projectId:t.projectId}))}stopCoordinator(t){return a(this.http.delete(this.coordinatorUrl(t)))}pauseCoordinator(t){return a(this.http.post(`${this.coordinatorUrl(t)}/pause`,{}))}resumeCoordinator(t){return a(this.http.post(`${this.coordinatorUrl(t)}/resume`,{}))}listCoordinators(t){return a(this.http.get(`${this.coordinatorUrl(t)}/list`))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var b="coordinator:",j=(()=>{class e{coordinator_AS=l(g);socket_CS=l(_);coordinator_$=s(null);decisions_$=s([]);lastGenerationStats_$=s(null);userInteractionPrompt_$=s(null);isLoading_$=s(!1);globalCoordinatorsList_$=s([]);globalCoordinatorsListLoading_$=s(!1);coordinatedSessionIds_$=S(()=>{let t=new Set;for(let o of this.globalCoordinatorsList_$()){let r=(o.status??"").trim().toLowerCase();if(r==="stopped"||r==="completed")continue;let u=o.sessionId?.trim();u&&t.add(u)}return t});activeSessionId=null;socketSubscription=null;ngOnDestroy(){this.cleanupSocketSubscription()}loadAllCoordinatorsForManagementPage(){return n(this,null,function*(){this.globalCoordinatorsListLoading_$.set(!0);try{let t=yield this.coordinator_AS.listCoordinators("_all");this.globalCoordinatorsList_$.set(t.coordinators??[])}catch(t){i.DyFM_Error.logSimple("CCAP_Coordinator_DS | loadAllCoordinatorsForManagementPage failed",t)}finally{this.globalCoordinatorsListLoading_$.set(!1)}})}loadCoordinatorStatus(t){return n(this,null,function*(){try{this.isLoading_$.set(!0);let o=yield this.coordinator_AS.getStatus(t);this.coordinator_$.set(o.coordinator),o.coordinator&&(this.decisions_$.set(o.coordinator.decisions??[]),this.setupSocketListeners(t))}catch(o){i.DyFM_Error.logSimple("CCAP_Coordinator_DS | loadCoordinatorStatus failed",o),this.coordinator_$.set(null)}finally{this.isLoading_$.set(!1)}})}startCoordinator(t){return n(this,null,function*(){try{this.isLoading_$.set(!0),this.decisions_$.set([]),this.userInteractionPrompt_$.set(null),this.lastGenerationStats_$.set(null);let o=yield this.coordinator_AS.startCoordinator(t);this.coordinator_$.set(o.coordinator),this.setupSocketListeners(t.sessionId)}catch(o){throw i.DyFM_Error.logSimple("CCAP_Coordinator_DS | startCoordinator failed",o),o}finally{this.isLoading_$.set(!1)}})}stopCoordinator(t){return n(this,null,function*(){try{yield this.coordinator_AS.stopCoordinator(t),this.coordinator_$.set(null),this.cleanupSocketSubscription()}catch(o){throw i.DyFM_Error.logSimple("CCAP_Coordinator_DS | stopCoordinator failed",o),o}})}pauseCoordinator(t){return n(this,null,function*(){try{yield this.coordinator_AS.pauseCoordinator(t),yield this.loadCoordinatorStatus(t)}catch(o){throw i.DyFM_Error.logSimple("CCAP_Coordinator_DS | pauseCoordinator failed",o),o}})}resumeCoordinator(t){return n(this,null,function*(){try{this.userInteractionPrompt_$.set(null),yield this.coordinator_AS.resumeCoordinator(t),yield this.loadCoordinatorStatus(t)}catch(o){throw i.DyFM_Error.logSimple("CCAP_Coordinator_DS | resumeCoordinator failed",o),o}})}setupSocketListeners(t){this.activeSessionId!==t&&(this.cleanupSocketSubscription(),this.activeSessionId=t,this.socketSubscription=this.socket_CS.event$.pipe(h(o=>o.event.startsWith(b))).subscribe(o=>{let r=o.payload&&typeof o.payload=="object"?o.payload:{};this.handleSocketEvent(o.event,r)}),i.DyFM_Log.info(`CCAP_Coordinator_DS | Socket subscription setup for session: ${t}`))}handleSocketEvent(t,o){switch(t){case"coordinator:stepCompleted":this.handleStepCompleted(o);break;case"coordinator:userInteractionRequired":this.handleUserInteractionRequired(o);break;case"coordinator:error":this.handleError(o);break;case"coordinator:resumed":this.userInteractionPrompt_$.set(null),this.coordinator_$.update(r=>r&&d(c({},r),{status:"active",pauseReason:null}));break;case"coordinator:completed":this.coordinator_$.update(r=>{if(!r)return r;let u=o.success?"completed":"failed";return d(c({},r),{status:u})});break;default:break}}handleStepCompleted(t){let o={coordinatorId:String(t.coordinatorId??""),sessionId:String(t.sessionId??""),action:String(t.action??""),reasoning:String(t.reasoning??""),generationStats:t.generationStats?t.generationStats:void 0},r={action:o.action,messageToAgent:null,statusUpdates:[],reasoning:o.reasoning,stopReason:null,userInteractionDetails:null,timestamp:new Date().toISOString()};this.decisions_$.set([...this.decisions_$(),r]),o.generationStats&&this.lastGenerationStats_$.set({timestamp:new Date().toISOString(),model:o.generationStats.model,providerName:o.generationStats.providerName,inputTokens:o.generationStats.inputTokens,outputTokens:o.generationStats.outputTokens,responseTimeMs:o.generationStats.responseTimeMs,action:o.action,reasoning:o.reasoning,messageToAgent:null})}handleUserInteractionRequired(t){this.userInteractionPrompt_$.set(String(t.details??"")),this.coordinator_$.update(o=>o&&d(c({},o),{status:"paused",pauseReason:String(t.details??"")}))}handleError(t){this.coordinator_$.update(o=>o&&d(c({},o),{status:"paused",pauseReason:String(t.error??"Unknown error")}))}cleanupSocketSubscription(){this.socketSubscription&&(this.socketSubscription.unsubscribe(),this.socketSubscription=null),this.activeSessionId=null}static \u0275fac=function(o){return new(o||e)};static \u0275prov=p({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();export{j as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3XIKUFTG.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{q as i}from"./chunk-ZTJG3WRV.js";var e=class{static build(r){let t=r.localAiKey.trim();if(!t.length)throw new Error("localAiSettings.key must be non-empty UUID for custom local LLM rows");return`${i.customLocalAi}--${t}`}static parseLocalAiKeyFromInstanceId(r){let t=`${i.customLocalAi}--`,o=r.instanceId.trim();if(!o.startsWith(t)||o.length<=t.length)throw new Error("Invalid custom local LLM instance id");return o.slice(t.length)}};export{e as a};
|
|
2
|
+
//# sourceMappingURL=chunk-45AAM2E6.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as S}from"./chunk-SWOZFC5L.js";import{I as m}from"./chunk-ZTJG3WRV.js";import{C as d,d as l,p as n,vb as r,xb as I,y as f}from"./chunk-TBMJSIBB.js";var P=(()=>{class i{baseUrl=`${m.api.baseUrl}/cc-session`;http=d(I);peiContext_DS=d(S);currentCcapId(){return this.peiContext_DS.activeCcapId_$()}withCcapId(t){let e=this.currentCcapId();return e?t.set("ccapId",e):t}createSession(t){let e=this.withCcapId(new r);return n(this.http.post(this.baseUrl,t,{params:e}))}listSessions(t){let e=this.withCcapId(new r);return t?.status&&(e=e.set("status",t.status)),t?.workspacePath&&(e=e.set("workspacePath",t.workspacePath)),t?.includeArchived&&(e=e.set("includeArchived","1")),t?.limit!=null&&(e=e.set("limit",String(t.limit))),t?.offset!=null&&(e=e.set("offset",String(t.offset))),n(this.http.get(this.baseUrl,{params:e}))}getSession(t){let e=this.withCcapId(new r);return n(this.http.get(`${this.baseUrl}/${t.sessionId}`,{params:e}))}sendPrompt(t){let e={content:t.content};t.attachments?.length&&(e.attachments=t.attachments);let s=this.withCcapId(new r);return n(this.http.post(`${this.baseUrl}/${t.sessionId}/prompt`,e,{params:s}))}resumeSession(t){let e=this.withCcapId(new r);return n(this.http.post(`${this.baseUrl}/${t.sessionId}/resume`,{},{params:e}))}forkSession(t){let e={};t.label&&(e.label=t.label);let s=this.withCcapId(new r);return n(this.http.post(`${this.baseUrl}/${t.sessionId}/fork`,e,{params:s}))}stopExecution(t){let e=this.withCcapId(new r);return n(this.http.post(`${this.baseUrl}/${t.sessionId}/stop-execution`,{},{params:e}))}terminateSession(t){let e=this.withCcapId(new r);return n(this.http.post(`${this.baseUrl}/${t.sessionId}/terminate`,{},{params:e}))}restartRunner(t){let e=this.withCcapId(new r);return n(this.http.post(`${this.baseUrl}/${t.sessionId}/runner-restart`,{},{params:e}))}updateSessionConfig(t){let a=t,{sessionId:e}=a,s=l(a,["sessionId"]),o=this.withCcapId(new r);return n(this.http.patch(`${this.baseUrl}/${e}/config`,s,{params:o}))}setSessionArchived(t){let e=this.withCcapId(new r);return n(this.http.patch(`${this.baseUrl}/${t.sessionId}/archive`,{isArchived:t.isArchived},{params:e}))}getSessionEvents(t){let e=this.withCcapId(new r);return t.eventType&&(e=e.set("eventType",t.eventType)),t.since&&(e=e.set("since",t.since)),t.sinceSequence!=null&&(e=e.set("sinceSequence",String(t.sinceSequence))),t.limit!=null&&(e=e.set("limit",String(t.limit))),t.offset!=null&&(e=e.set("offset",String(t.offset))),t.latest&&(e=e.set("latest","1")),n(this.http.get(`${this.baseUrl}/${t.sessionId}/events`,{params:e}))}getRateLimitState(t){let e=new r;return n(this.http.get(`${this.baseUrl}/rate-limit-state/${encodeURIComponent(t.ccapId)}`,{params:e}))}getDiagnostic(t){return n(this.http.get(`${this.baseUrl}/${encodeURIComponent(t.sessionId)}/diagnostic`))}getSessionEventStreamUrl(t){let e=`${this.baseUrl}/${t.sessionId}/events/stream`,s=this.currentCcapId();return s?`${e}?ccapId=${encodeURIComponent(s)}`:e}static \u0275fac=function(e){return new(e||i)};static \u0275prov=f({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var y=(()=>{class i{static DEFAULT_SURPASSED_THRESHOLD=.8;static mapServerItemsToClientInfo(t){if(!t||!Array.isArray(t)||t.length===0)return null;let e=t.filter(u=>typeof u?.rateLimitType=="string"&&u.rateLimitType.length>0);if(e.length===0)return null;let s=i.pickMostRelevantItem(e),o=typeof s.utilization=="number"?Math.max(0,Math.min(1,s.utilization)):0,a=typeof s.resetsAtMs=="number"&&s.resetsAtMs>0?s.resetsAtMs:0,c=a>0?Math.floor(a/1e3):0,h=i.mapStatus(s.lastObservedStatus),p=i.readObservedAtIso(s.observedAt);return{status:h,resetsAt:c,rateLimitType:s.rateLimitType??"",utilization:o,surpassedThreshold:i.DEFAULT_SURPASSED_THRESHOLD,isUsingOverage:!1,receivedAt:p}}static pickMostRelevantItem(t){let e=o=>o==="reached"?2:o==="approaching"?1:0;return[...t].sort((o,a)=>{let c=e(a.lastObservedStatus)-e(o.lastObservedStatus);if(c!==0)return c;let h=(a.utilization??0)-(o.utilization??0);if(Math.abs(h)>1e-4)return h>0?1:-1;let p=i.readObservedAtMs(o.observedAt);return i.readObservedAtMs(a.observedAt)-p})[0]}static mapStatus(t){return t==="reached"?"limited":t==="approaching"?"allowed_warning":"allowed"}static readObservedAtMs(t){if(!t)return 0;if(t instanceof Date)return t.getTime();let e=Date.parse(t);return isNaN(e)?0:e}static readObservedAtIso(t){if(!t)return new Date().toISOString();if(t instanceof Date)return t.toISOString();let e=Date.parse(t);return isNaN(e)?new Date().toISOString():new Date(e).toISOString()}}return i})();export{P as a,y as b};
|
|
2
|
+
//# sourceMappingURL=chunk-45QQ75U4.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I as y,p as g}from"./chunk-ZTJG3WRV.js";import{C as c,aa as i,h as m,k as n,p as a,xb as h,y as o}from"./chunk-TBMJSIBB.js";var l=m(g());var p=(()=>{class r{baseUrl=`${y.api.baseUrl}/instance-registry`;http=c(h);getList(){return a(this.http.get(`${this.baseUrl}/list`))}getCurrent(){return a(this.http.get(`${this.baseUrl}/current`))}getListUnified(){return a(this.http.get(`${this.baseUrl}/list-unified`))}getPresence(){return a(this.http.get(`${this.baseUrl}/presence`))}updateDisplayName(t){return a(this.http.patch(`${this.baseUrl}/${encodeURIComponent(t.instanceKey)}/display-name`,{displayName:t.displayName}))}static \u0275fac=function(e){return new(e||r)};static \u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var A=(()=>{class r{list_$=i([]);listLoading_$=i(!1);listError_$=i(null);current_$=i(null);currentLoading_$=i(!1);currentError_$=i(null);unifiedList_$=i([]);unifiedListLoading_$=i(!1);unifiedListError_$=i(null);instanceRegistry_AS=c(p);loadList(){return n(this,null,function*(){this.listLoading_$.set(!0),this.listError_$.set(null);try{let e=(yield this.instanceRegistry_AS.getList()).list??[];return this.list_$.set(e),e}catch(t){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | loadList failed",t),this.listError_$.set(t),[]}finally{this.listLoading_$.set(!1)}})}loadCurrent(){return n(this,null,function*(){this.currentLoading_$.set(!0),this.currentError_$.set(null);try{let e=(yield this.instanceRegistry_AS.getCurrent()).current??null;return this.current_$.set(e),e}catch(t){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | loadCurrent failed",t),this.currentError_$.set(t),this.current_$.set(null),null}finally{this.currentLoading_$.set(!1)}})}loadAll(){return n(this,null,function*(){yield Promise.all([this.loadList(),this.loadCurrent()])})}loadUnifiedList(){return n(this,null,function*(){this.unifiedListLoading_$.set(!0),this.unifiedListError_$.set(null);try{let e=(yield this.instanceRegistry_AS.getListUnified()).list??[];return this.unifiedList_$.set(e),e}catch(t){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | loadUnifiedList failed",t),this.unifiedListError_$.set(t),[]}finally{this.unifiedListLoading_$.set(!1)}})}renameInstance(t){return n(this,null,function*(){try{let e=yield this.instanceRegistry_AS.updateDisplayName(t),u=this.list_$().map(f=>f.instanceKey===t.instanceKey?e:f);this.list_$.set(u);let d=this.current_$();return d!==null&&d.instanceKey===t.instanceKey&&this.current_$.set(e),e}catch(e){return l.DyFM_Error.logSimple("CCAP_InstanceRegistryDS | renameInstance failed",e),null}})}resolveDisplayName(t){if(typeof t!="string"||t==="")return"\u2014";let e=this.list_$().find(u=>u.instanceKey===t);if(e!==void 0&&typeof e.displayName=="string"&&e.displayName!=="")return e.displayName;let s=this.current_$();return s!==null&&s.instanceKey===t&&typeof s.displayName=="string"&&s.displayName!==""?s.displayName:t.slice(0,8)}isCurrentRow(t){let e=this.current_$()?.instanceKey?.trim(),s=t.instanceKey?.trim();return!e||!s?!1:e===s}formatMetadataDate(t){if(t==null)return"\u2014";if(t instanceof Date)return Number.isNaN(t.getTime())?"\u2014":t.toISOString();let e=new Date(t);return Number.isNaN(e.getTime())?String(t):e.toISOString()}static \u0275fac=function(e){return new(e||r)};static \u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{p as a,A as b};
|
|
2
|
+
//# sourceMappingURL=chunk-4HU6KBS2.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/app/_modules/external-sessions/_services/exs-instance-registry.data-service.ts", "src/app/_modules/external-sessions/_services/exs-instance-registry.api-service.ts"],
|
|
4
|
+
"sourcesContent": ["import { inject, Injectable, signal, WritableSignal } from '@angular/core';\n\nimport { DyFM_Error } from '@futdevpro/fsm-dynamo';\n\nimport { ExS_InstanceRegistry_ApiService } from './exs-instance-registry.api-service';\nimport { ExS_InstanceRegistryRow_Response } from './exs-instance-registry-row.interface';\nimport { ExS_UnifiedRegistryRow_Response } from '../_models/interfaces/exs-unified-registry-row.interface';\n\n/**\n * Instance registry data-service (SSOT a kliensen): lista + aktuális sor betöltése.\n */\n@Injectable({ providedIn: 'root' })\nexport class ExS_InstanceRegistry_DataService {\n\n readonly list_$: WritableSignal<ExS_InstanceRegistryRow_Response[]> =\n signal<ExS_InstanceRegistryRow_Response[]>([]);\n readonly listLoading_$: WritableSignal<boolean> = signal<boolean>(false);\n readonly listError_$: WritableSignal<unknown> = signal<unknown>(null);\n\n readonly current_$: WritableSignal<ExS_InstanceRegistryRow_Response | null> =\n signal<ExS_InstanceRegistryRow_Response | null>(null);\n readonly currentLoading_$: WritableSignal<boolean> = signal<boolean>(false);\n readonly currentError_$: WritableSignal<unknown> = signal<unknown>(null);\n\n /** Unified registry lista (CCAP + CC/CA/OC egyesítve) — BUG-DO-001 Part 2 Slice 3a. */\n readonly unifiedList_$: WritableSignal<ExS_UnifiedRegistryRow_Response[]> =\n signal<ExS_UnifiedRegistryRow_Response[]>([]);\n readonly unifiedListLoading_$: WritableSignal<boolean> = signal<boolean>(false);\n readonly unifiedListError_$: WritableSignal<unknown> = signal<unknown>(null);\n\n private readonly instanceRegistry_AS: ExS_InstanceRegistry_ApiService = inject(ExS_InstanceRegistry_ApiService);\n\n /**\n * Lista frissítése.\n */\n async loadList(): Promise<ExS_InstanceRegistryRow_Response[]> {\n this.listLoading_$.set(true);\n this.listError_$.set(null);\n\n try {\n const res: { list: ExS_InstanceRegistryRow_Response[] } = await this.instanceRegistry_AS.getList();\n const list: ExS_InstanceRegistryRow_Response[] = res.list ?? [];\n this.list_$.set(list);\n\n return list;\n } catch (error: unknown) {\n DyFM_Error.logSimple('CCAP_InstanceRegistryDS | loadList failed', error);\n this.listError_$.set(error);\n\n return [];\n } finally {\n this.listLoading_$.set(false);\n }\n }\n\n /**\n * Aktuális instance sor (ehhez a szerverhez).\n */\n async loadCurrent(): Promise<ExS_InstanceRegistryRow_Response | null> {\n this.currentLoading_$.set(true);\n this.currentError_$.set(null);\n\n try {\n const res: { current: ExS_InstanceRegistryRow_Response } = await this.instanceRegistry_AS.getCurrent();\n const current: ExS_InstanceRegistryRow_Response | null = res.current ?? null;\n this.current_$.set(current);\n\n return current;\n } catch (error: unknown) {\n DyFM_Error.logSimple('CCAP_InstanceRegistryDS | loadCurrent failed', error);\n this.currentError_$.set(error);\n this.current_$.set(null);\n\n return null;\n } finally {\n this.currentLoading_$.set(false);\n }\n }\n\n /**\n * Lista + aktuális együtt (settings nézet onInit).\n */\n async loadAll(): Promise<void> {\n await Promise.all([this.loadList(), this.loadCurrent()]);\n }\n\n /**\n * Unified lista frissítése (BUG-DO-001 Part 2 Slice 3a): CCAP registry + CC/CA/OC runtime\n * egyesítve a szerver oldali `/instance-registry/list-unified` endpoint-on. A template Slice 3b-ben köti.\n */\n async loadUnifiedList(): Promise<ExS_UnifiedRegistryRow_Response[]> {\n this.unifiedListLoading_$.set(true);\n this.unifiedListError_$.set(null);\n\n try {\n const res: { list: ExS_UnifiedRegistryRow_Response[] } =\n await this.instanceRegistry_AS.getListUnified();\n const list: ExS_UnifiedRegistryRow_Response[] = res.list ?? [];\n this.unifiedList_$.set(list);\n\n return list;\n } catch (error: unknown) {\n DyFM_Error.logSimple('CCAP_InstanceRegistryDS | loadUnifiedList failed', error);\n this.unifiedListError_$.set(error);\n\n return [];\n } finally {\n this.unifiedListLoading_$.set(false);\n }\n }\n\n /**\n * REQ-SC-INSTANCE-REGISTRY-RENAME-001 (cycle 891): user-given displayName\n * frissítés a server-felé. Sikeres válasz után a `list_$` cache megfelelő\n * sora is frissül.\n */\n async renameInstance(params: {\n instanceKey: string;\n displayName: string | null;\n }): Promise<ExS_InstanceRegistryRow_Response | null> {\n try {\n const updated: ExS_InstanceRegistryRow_Response =\n await this.instanceRegistry_AS.updateDisplayName(params);\n // Cache-update az érintett sorban.\n const list: ExS_InstanceRegistryRow_Response[] = this.list_$();\n const next: ExS_InstanceRegistryRow_Response[] = list.map(\n (r: ExS_InstanceRegistryRow_Response): ExS_InstanceRegistryRow_Response =>\n r.instanceKey === params.instanceKey ? updated : r,\n );\n this.list_$.set(next);\n // Ha az aktuális instance-ot nevezzük át, frissítsük a current_$-t is.\n const current: ExS_InstanceRegistryRow_Response | null = this.current_$();\n if (current !== null && current.instanceKey === params.instanceKey) {\n this.current_$.set(updated);\n }\n return updated;\n } catch (error: unknown) {\n DyFM_Error.logSimple('CCAP_InstanceRegistryDS | renameInstance failed', error);\n return null;\n }\n }\n\n /**\n * REQ-SC-INSTANCE-REGISTRY-RENAME-001 (cycle 891): displayName resolver\n * pure helper a Pipe-hoz. Adott `instanceKey`-re visszaadja a `displayName`-et\n * a cache-ből; fallback: az `instanceKey` első 8 char-ja.\n */\n resolveDisplayName(instanceKey: string | undefined | null): string {\n if (typeof instanceKey !== 'string' || instanceKey === '') {\n return '—';\n }\n const found: ExS_InstanceRegistryRow_Response | undefined = this.list_$().find(\n (r: ExS_InstanceRegistryRow_Response): boolean => r.instanceKey === instanceKey,\n );\n if (found !== undefined && typeof found.displayName === 'string' && found.displayName !== '') {\n return found.displayName;\n }\n // Fallback: az aktuális instance row-ban is megnézzük.\n const current: ExS_InstanceRegistryRow_Response | null = this.current_$();\n if (current !== null\n && current.instanceKey === instanceKey\n && typeof current.displayName === 'string'\n && current.displayName !== '') {\n return current.displayName;\n }\n return instanceKey.slice(0, 8);\n }\n\n /**\n * Sor egyezik-e az aktuális instance-szal (`instanceKey`).\n */\n isCurrentRow(row: ExS_InstanceRegistryRow_Response): boolean {\n const currentKey: string | undefined = this.current_$()?.instanceKey?.trim();\n const rowKey: string | undefined = row.instanceKey?.trim();\n\n if (!currentKey || !rowKey) {\n return false;\n }\n\n return currentKey === rowKey;\n }\n\n /**\n * `__created` / `__updated` megjelenítéshez (ISO string).\n */\n formatMetadataDate(value: string | Date | undefined): string {\n if (value === undefined || value === null) {\n return '—';\n }\n\n if (value instanceof Date) {\n return Number.isNaN(value.getTime()) ? '—' : value.toISOString();\n }\n\n const d: Date = new Date(value);\n\n return Number.isNaN(d.getTime()) ? String(value) : d.toISOString();\n }\n}\n", "import { inject, Injectable } from '@angular/core';\nimport { HttpClient } from '@angular/common/http';\n\nimport { firstValueFrom } from 'rxjs';\n\nimport { environment } from '../../../../environments/environment';\nimport { ExS_InstanceRegistryRow_Response } from './exs-instance-registry-row.interface';\nimport { EXS_InstancePresenceInfo_ClientInterface } from './data-services/exs-instance-presence-info.interface';\nimport { ExS_UnifiedRegistryRow_Response } from '../_models/interfaces/exs-unified-registry-row.interface';\n\n/**\n * Instance registry API service.\n * Read-only: lista és aktuális instance (szerver bootstrap + Mongo).\n */\n@Injectable({ providedIn: 'root' })\nexport class ExS_InstanceRegistry_ApiService {\n\n private baseUrl: string = `${environment.api.baseUrl}/instance-registry`;\n\n private readonly http: HttpClient = inject(HttpClient);\n\n /**\n * Összes ismert instance sor.\n */\n getList(): Promise<{ list: ExS_InstanceRegistryRow_Response[] }> {\n return firstValueFrom(\n this.http.get<{ list: ExS_InstanceRegistryRow_Response[] }>(`${this.baseUrl}/list`),\n );\n }\n\n /**\n * A szerver processhez tartozó aktuális registry sor.\n */\n getCurrent(): Promise<{ current: ExS_InstanceRegistryRow_Response }> {\n return firstValueFrom(\n this.http.get<{ current: ExS_InstanceRegistryRow_Response }>(`${this.baseUrl}/current`),\n );\n }\n\n /**\n * Unified lista: CCAP registry + CC/CA/OC runtime state egyesítve (BUG-DO-001 Part 2).\n */\n getListUnified(): Promise<{ list: ExS_UnifiedRegistryRow_Response[] }> {\n return firstValueFrom(\n this.http.get<{ list: ExS_UnifiedRegistryRow_Response[] }>(`${this.baseUrl}/list-unified`),\n );\n }\n\n /**\n * Presence info lista — minden registry instance state-jével\n * (REQ-INST-STATE-001 Slice 1 server endpoint, Slice 3 client wire-up).\n * A Slice 4 UI badge komponens ezt fogja olvasni.\n */\n getPresence(): Promise<{ list: EXS_InstancePresenceInfo_ClientInterface[] }> {\n return firstValueFrom(\n this.http.get<{ list: EXS_InstancePresenceInfo_ClientInterface[] }>(\n `${this.baseUrl}/presence`,\n ),\n );\n }\n\n /**\n * REQ-SC-INSTANCE-REGISTRY-RENAME-001 (cycle 891): PATCH /:instanceKey/display-name —\n * user-given név beállítása. `null` vagy üres → mező törlése.\n */\n updateDisplayName(params: {\n instanceKey: string;\n displayName: string | null;\n }): Promise<ExS_InstanceRegistryRow_Response> {\n return firstValueFrom(\n this.http.patch<ExS_InstanceRegistryRow_Response>(\n `${this.baseUrl}/${encodeURIComponent(params.instanceKey)}/display-name`,\n { displayName: params.displayName },\n ),\n );\n }\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["import_fsm_dynamo", "ExS_InstanceRegistry_ApiService", "baseUrl", "environment", "api", "http", "inject", "HttpClient", "getList", "firstValueFrom", "get", "getCurrent", "getListUnified", "getPresence", "updateDisplayName", "params", "patch", "encodeURIComponent", "instanceKey", "displayName", "factory", "\u0275fac", "providedIn", "ExS_InstanceRegistry_DataService", "list_$", "signal", "listLoading_$", "listError_$", "current_$", "currentLoading_$", "currentError_$", "unifiedList_$", "unifiedListLoading_$", "unifiedListError_$", "instanceRegistry_AS", "inject", "ExS_InstanceRegistry_ApiService", "loadList", "__async", "set", "list", "getList", "error", "DyFM_Error", "logSimple", "loadCurrent", "current", "getCurrent", "loadAll", "Promise", "all", "loadUnifiedList", "getListUnified", "renameInstance", "params", "updated", "updateDisplayName", "next", "map", "r", "instanceKey", "resolveDisplayName", "found", "find", "undefined", "displayName", "slice", "isCurrentRow", "row", "currentKey", "trim", "rowKey", "formatMetadataDate", "value", "Date", "Number", "isNaN", "getTime", "toISOString", "d", "String", "factory", "\u0275fac", "providedIn"]
|
|
7
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as X,b as Y,c as Z}from"./chunk-
|
|
1
|
+
import{a as X,b as Y,c as Z}from"./chunk-CXDFXM7A.js";import{c as N,f as O,i as Q,v as K}from"./chunk-EO4DNTT4.js";import{f as J}from"./chunk-AFY476P6.js";import{$a as F,C as I,D as P,Fa as m,Ha as x,J as C,K as v,L,T as f,Ta as A,U as p,Z as a,aa as n,ab as M,da as g,ga as w,ha as D,hb as z,ia as R,ja as j,k as o,la as _,mb as B,oa as G,pa as U,qa as l,ra as u,sa as S,ua as k,ub as H,va as y,wa as d,xa as V,y as W,ya as q}from"./chunk-TBMJSIBB.js";var b=class s{static normalizeNewlines(c){return c.replace(/\r\n/g,`
|
|
2
2
|
`).replace(/\r/g,`
|
|
3
3
|
`)}static sha256HexOfNormalized(c){return o(this,null,function*(){let e=s.normalizeNewlines(c),i=new TextEncoder().encode(e),r=yield crypto.subtle.digest("SHA-256",i),h=new Uint8Array(r),$="";for(let E=0;E<h.length;E+=1)$+=h[E].toString(16).padStart(2,"0");return $})}};var ee=(()=>{class s{projects_$=n([]);projectsLoading_$=n(!1);projectsError_$=n(null);projectsLoadedOnce_$=n(!1);activeProject_$=n(null);activeProjectComputedCcapHost_$=n(!1);activeProjectLoading_$=n(!1);activeProjectError_$=n(null);userRequests_$=n([]);userRequestsLoading_$=n(!1);userRequestsError_$=n(null);discoveredProjects_$=n([]);discoveryLoading_$=n(!1);discoveryError_$=n(null);gitStatusLoading_$=n(!1);gitStatusError_$=n(null);syncLoading_$=n(!1);syncError_$=n(null);lastSyncResult_$=n(null);fileContents_$=n(null);fileContentLoading_$=n(!1);fileContentError_$=n(null);testErrorReportsClearing_$=n(!1);agentReports_$=n([]);agentReportsLoading_$=n(!1);agentReportsError_$=n(null);activeAgentReport_$=n(null);activeAgentReportLoading_$=n(!1);activeAgentReportError_$=n(null);reviewsMeta_$=n([]);reviewsMetaLoading_$=n(!1);reviewsMetaError_$=n(null);reviewResult_$=n(null);reviewsRunning_$=n(!1);reviewsRunError_$=n(null);userInputWizardSuggestLoading_$=n(!1);userInputWizardSuggestError_$=n(null);userInputWizardFinalizeLoading_$=n(!1);userInputWizardFinalizeError_$=n(null);userInputWizardLastLlmSystemPrompt_$=n(null);userInputWizardLastLlmUserMessage_$=n(null);groups_$=n([]);groupsLoading_$=n(!1);groupsError_$=n(null);activeGroup_$=n(null);groupFiles_$=n(null);groupFilesLoading_$=n(!1);groupFilesError_$=n(null);crossInstanceProjects_$=n([]);crossInstanceLoading_$=n(!1);crossInstanceError_$=n(null);currentCcapId_$=n(null);cloneLoading_$=n(!1);cloneError_$=n(null);pm_AS=I(J);loadProjects(){return o(this,null,function*(){this.projectsLoading_$.set(!0),this.projectsError_$.set(null);try{let e=yield this.pm_AS.listProjects();this.projects_$.set(e.projects),this.projectsLoadedOnce_$.set(!0)}catch(e){this.projectsError_$.set(e)}finally{this.projectsLoading_$.set(!1)}})}loadProject(e){return o(this,null,function*(){this.activeProjectLoading_$.set(!0),this.activeProjectError_$.set(null);try{let t=yield this.pm_AS.getProject(e);this.activeProject_$.set(t.project),this.activeProjectComputedCcapHost_$.set(t.computedCcapRevisionedHost)}catch(t){this.activeProjectError_$.set(t)}finally{this.activeProjectLoading_$.set(!1)}})}createProject(e){return o(this,null,function*(){let t=yield this.pm_AS.createProject(e);return yield this.loadProjects(),t.project})}updateProject(e,t){return o(this,null,function*(){let i=yield this.pm_AS.updateProject(e,t);this.activeProject_$.set(i.project),this.activeProjectComputedCcapHost_$.set(i.computedCcapRevisionedHost),this.projects_$.update(r=>r.map(h=>h._id===e?i.project:h))})}archiveProject(e){return o(this,null,function*(){yield this.pm_AS.archiveProject(e),yield this.loadProjects(),this.activeProject_$()?._id===e&&(this.activeProject_$.set(null),this.activeProjectComputedCcapHost_$.set(!1))})}loadGroups(){return o(this,null,function*(){this.groupsLoading_$.set(!0),this.groupsError_$.set(null);try{let e=yield this.pm_AS.listGroups();this.groups_$.set(e.groups)}catch(e){this.groupsError_$.set(e)}finally{this.groupsLoading_$.set(!1)}})}createGroup(e){return o(this,null,function*(){yield this.pm_AS.createGroup(e),yield this.loadGroups()})}archiveGroup(e){return o(this,null,function*(){yield this.pm_AS.archiveGroup(e),this.activeGroup_$()?._id===e&&this.activeGroup_$.set(null),yield this.loadGroups()})}selectGroup(e){this.activeGroup_$.set(e)}loadGroupFiles(e){return o(this,null,function*(){this.groupFilesLoading_$.set(!0),this.groupFilesError_$.set(null);try{let t=yield this.pm_AS.getGroupFiles(e);this.groupFiles_$.set(t)}catch(t){this.groupFilesError_$.set(t)}finally{this.groupFilesLoading_$.set(!1)}})}loadCrossInstanceProjects(){return o(this,null,function*(){this.crossInstanceLoading_$.set(!0),this.crossInstanceError_$.set(null);try{let e=yield this.pm_AS.listAllProjectsAcrossInstances();this.crossInstanceProjects_$.set(e.projects),this.currentCcapId_$.set(e.currentCcapId)}catch(e){this.crossInstanceError_$.set(e)}finally{this.crossInstanceLoading_$.set(!1)}})}cloneProject(e){return o(this,null,function*(){this.cloneLoading_$.set(!0),this.cloneError_$.set(null);try{yield this.pm_AS.cloneProject({sourceProjectId:e.sourceProjectId,targetParentDir:e.targetParentDir,repoName:e.repoName}),yield this.loadProjects()}catch(t){this.cloneError_$.set(t)}finally{this.cloneLoading_$.set(!1)}})}cloneGroup(e){return o(this,null,function*(){this.cloneLoading_$.set(!0),this.cloneError_$.set(null);try{yield this.pm_AS.cloneGroup({sourceGroupId:e.sourceGroupId,targetParentDir:e.targetParentDir}),yield this.loadProjects(),yield this.loadGroups()}catch(t){this.cloneError_$.set(t)}finally{this.cloneLoading_$.set(!1)}})}discoverProjects(e){return o(this,null,function*(){this.discoveryLoading_$.set(!0),this.discoveryError_$.set(null),this.discoveredProjects_$.set([]);try{let t=yield this.pm_AS.discoverProjects(e);this.discoveredProjects_$.set(t.discoveredProjects)}catch(t){this.discoveryError_$.set(t)}finally{this.discoveryLoading_$.set(!1)}})}createDiscoveredProjects(e){return o(this,null,function*(){for(let t of e){let i={name:t.name,localPath:t.localPath,description:t.description,githubRepoUrl:t.githubRepoUrl,isActive:!0};yield this.pm_AS.createProject(i)}yield this.loadProjects()})}clearDiscovery(){this.discoveredProjects_$.set([]),this.discoveryError_$.set(null),this.discoveryLoading_$.set(!1)}refreshGitStatus(e){return o(this,null,function*(){this.gitStatusLoading_$.set(!0),this.gitStatusError_$.set(null);try{let t=yield this.pm_AS.refreshGitStatus(e);this.activeProject_$.set(t.project);try{let i=yield this.pm_AS.getProject(e);this.activeProjectComputedCcapHost_$.set(i.computedCcapRevisionedHost)}catch{}this.projects_$.update(i=>i.map(r=>r._id===e?t.project:r))}catch(t){this.gitStatusError_$.set(t)}finally{this.gitStatusLoading_$.set(!1)}})}syncProject(e){return o(this,null,function*(){this.syncLoading_$.set(!0),this.syncError_$.set(null),this.lastSyncResult_$.set(null);try{let t=yield this.pm_AS.syncProject(e);this.lastSyncResult_$.set(t.syncResult),this.activeProject_$.set(t.project);try{let i=yield this.pm_AS.getProject(e);this.activeProjectComputedCcapHost_$.set(i.computedCcapRevisionedHost)}catch{}this.projects_$.update(i=>i.map(r=>r._id===e?t.project:r))}catch(t){this.syncError_$.set(t)}finally{this.syncLoading_$.set(!1)}})}syncAllProjects(){return o(this,null,function*(){this.syncLoading_$.set(!0),this.syncError_$.set(null);try{yield this.pm_AS.syncAllProjects(),yield this.loadProjects()}catch(e){this.syncError_$.set(e)}finally{this.syncLoading_$.set(!1)}})}loadAllFileContents(e){return o(this,null,function*(){this.fileContentLoading_$.set(!0),this.fileContentError_$.set(null);try{let t=yield this.pm_AS.getAllFileContents(e);this.fileContents_$.set(t.files)}catch(t){this.fileContentError_$.set(t)}finally{this.fileContentLoading_$.set(!1)}})}clearTestErrorReportsAndRefresh(e){return o(this,null,function*(){this.testErrorReportsClearing_$.set(!0);try{yield this.pm_AS.clearTestErrorReports(e),yield this.loadAllFileContents(e)}finally{this.testErrorReportsClearing_$.set(!1)}})}getBugsPathResolve(e){return o(this,null,function*(){return this.pm_AS.getBugsPathResolve(e)})}appendBugsFromErrorsAndRefreshFiles(e,t){return o(this,null,function*(){let i=yield this.pm_AS.appendBugsFromErrors(e,t);return yield this.loadAllFileContents(e),i})}appendSingleBugFromErrorAndRefreshFiles(e,t,i){return o(this,null,function*(){let r=yield this.pm_AS.appendSingleBugFromError(e,t,i);return yield this.loadAllFileContents(e),r})}createManualBugAndRefresh(e,t){return o(this,null,function*(){let i=yield this.pm_AS.createManualBug(e,t);return yield this.loadAllFileContents(e),yield this.loadUserRequests(e),i})}loadUserRequests(e){return o(this,null,function*(){this.userRequestsLoading_$.set(!0),this.userRequestsError_$.set(null);try{let t=yield this.pm_AS.listUserRequests(e);this.userRequests_$.set(t.userRequests)}catch(t){this.userRequestsError_$.set(t)}finally{this.userRequestsLoading_$.set(!1)}})}createUserRequest(e,t){return o(this,null,function*(){yield this.pm_AS.createUserRequest(e,t),yield this.loadUserRequests(e)})}updateUserRequest(e,t,i){return o(this,null,function*(){let r=yield this.pm_AS.updateUserRequest(e,t,i);this.userRequests_$.update(h=>h.map($=>$._id===t?r.userRequest:$))})}suggestUserInputFormat(e,t){return o(this,null,function*(){this.userInputWizardSuggestLoading_$.set(!0),this.userInputWizardSuggestError_$.set(null),this.userInputWizardLastLlmSystemPrompt_$.set(null),this.userInputWizardLastLlmUserMessage_$.set(null);try{let i=yield this.pm_AS.suggestUserInputFormat(e,t);return this.userInputWizardLastLlmSystemPrompt_$.set(i.llmSystemPrompt??null),this.userInputWizardLastLlmUserMessage_$.set(i.llmUserMessage??null),i}catch(i){throw this.userInputWizardSuggestError_$.set(i),i}finally{this.userInputWizardSuggestLoading_$.set(!1)}})}mutateControlFileEntryAndRefresh(e,t,i){return o(this,null,function*(){let r=i.priorRawFingerprintSha256?.trim(),h=r!=null&&r.length>0?r:yield b.sha256HexOfNormalized(i.priorRawBlock),$={mode:i.mode,priorRawBlock:i.priorRawBlock,priorRawFingerprintSha256:h,newRawBlock:i.newRawBlock,bugsFileAbsolutePath:i.bugsFileAbsolutePath},E=yield this.pm_AS.mutateControlFileEntry(e,t,$);return yield this.loadAllFileContents(e),E})}finalizeUserInputWizard(e,t){return o(this,null,function*(){this.userInputWizardFinalizeLoading_$.set(!0),this.userInputWizardFinalizeError_$.set(null);try{let i=yield this.pm_AS.finalizeUserInput(e,t);return yield this.loadUserRequests(e),yield this.loadAllFileContents(e),i}catch(i){throw this.userInputWizardFinalizeError_$.set(i),i}finally{this.userInputWizardFinalizeLoading_$.set(!1)}})}loadReviewsMeta(e){return o(this,null,function*(){this.reviewsMetaLoading_$.set(!0),this.reviewsMetaError_$.set(null);try{let t=yield this.pm_AS.getReviewsMeta(e);this.reviewsMeta_$.set(t.reviewsMeta)}catch(t){this.reviewsMetaError_$.set(t)}finally{this.reviewsMetaLoading_$.set(!1)}})}runProjectReviews(e,t){return o(this,null,function*(){this.reviewsRunning_$.set(!0),this.reviewsRunError_$.set(null),this.reviewResult_$.set(null);try{let i=yield this.pm_AS.runProjectReviews(e,t);this.reviewResult_$.set(i.reviewResult)}catch(i){this.reviewsRunError_$.set(i)}finally{this.reviewsRunning_$.set(!1)}})}loadAgentReports(e){return o(this,null,function*(){this.agentReportsLoading_$.set(!0),this.agentReportsError_$.set(null);try{let t=yield this.pm_AS.listAgentReports(e);this.agentReports_$.set(t.reports)}catch(t){this.agentReportsError_$.set(t)}finally{this.agentReportsLoading_$.set(!1)}})}loadAgentReport(e,t){return o(this,null,function*(){this.activeAgentReportLoading_$.set(!0),this.activeAgentReportError_$.set(null);try{let i=yield this.pm_AS.getAgentReportContent(e,t);this.activeAgentReport_$.set(i)}catch(i){this.activeAgentReport_$.set(null),this.activeAgentReportError_$.set(i)}finally{this.activeAgentReportLoading_$.set(!1)}})}clearActiveAgentReport(){this.activeAgentReport_$.set(null),this.activeAgentReportError_$.set(null)}static \u0275fac=function(t){return new(t||s)};static \u0275prov=W({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function se(s,c){if(s&1&&(l(0,"span",0),m(1),u()),s&2){let e=c;w("title",e),a(),x(" ",e," ")}}var te=(()=>{class s{workspacePath=p(void 0);pm_DS=I(ee);projectName_$=z(()=>{let e=this.workspacePath();if(!e)return null;let t=s.normalizePath(e);return t?this.pm_DS.projects_$().find(h=>!!h.localPath&&s.normalizePath(h.localPath)===t)?.name??null:null});constructor(){!this.pm_DS.projectsLoadedOnce_$()&&!this.pm_DS.projectsLoading_$()&&!this.pm_DS.projectsError_$()&&this.pm_DS.loadProjects()}static normalizePath(e){let t=e.trim().toLowerCase().replace(/\\/g,"/");for(;t.endsWith("/")&&t.length>1;)t=t.slice(0,-1);return t}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=P({type:s,selectors:[["app-s-project-badge"]],hostAttrs:[1,"ml-auto"],hostVars:2,hostBindings:function(t,i){t&2&&D("display",i.projectName_$()?"inline-flex":"none")},inputs:{workspacePath:[1,"workspacePath"]},standalone:!0,features:[A],decls:1,vars:1,consts:[[1,"text-[9px]","px-1","py-0.5","rounded","bg-sky-500/20","text-sky-300","border","border-sky-500/30","shrink-0","truncate","max-w-[140px]",3,"title"]],template:function(t,i){if(t&1&&g(0,se,2,2,"span",0),t&2){let r;_((r=i.projectName_$())?0:-1,r)}},encapsulation:2})}return s})();var ne=[[["","footer-actions",""]]],re=["[footer-actions]"];function oe(s,c){s&1&&S(0,"span",4)}function ae(s,c){if(s&1&&S(0,"app-s-project-badge",7),s&2){let e=d();w("workspacePath",e.view().workspacePath)}}function le(s,c){s&1&&(l(0,"span",8),m(1," archived "),u())}function ce(s,c){if(s&1){let e=k();l(0,"button",15),y("click",function(i){C(e);let r=d();return v(r.handleScheduleIndicatorClick(i))}),L(),l(1,"svg",16),S(2,"rect",17)(3,"line",18)(4,"line",19)(5,"line",20),u()()}if(s&2){let e=d();R("ml-auto",!e.view().workspacePath)}}function ue(s,c){if(s&1&&(l(0,"span",21),L(),l(1,"svg",16),S(2,"path",22)(3,"path",23),u()()),s&2){let e=d();R("ml-auto",!e.view().workspacePath&&!e.view().hasSchedule)}}function de(s,c){if(s&1){let e=k();l(0,"button",24),y("click",function(i){C(e);let r=d();return v(r.handleCoordinatorIndicatorClick(i))}),L(),l(1,"svg",16),S(2,"circle",25)(3,"polygon",26),u()()}if(s&2){let e=d();R("ml-auto",!e.view().workspacePath&&!e.view().hasSchedule&&!e.view().hasDraft)}}function pe(s,c){if(s&1&&(l(0,"div",12),m(1),u()),s&2){let e=d();a(),x(" ",e.view().workspacePath," ")}}function _e(s,c){if(s&1&&(l(0,"div",13)(1,"span",27),m(2),u()()),s&2){let e=d();a(2),x(" ",e.view().promptCount," prompts ")}}function he(s,c){s&1&&(l(0,"div",14),q(1),u())}var ie=(()=>{class s{view=p.required();isActive=p(!1);showWorkspacePath=p(!1);showPromptCount=p(!1);size=p("compact");selected=f();contextMenu=f();scheduleIndicatorClicked=f();coordinatorIndicatorClicked=f();handleSelect(){this.selected.emit(this.view().id)}handleContextMenu(e){e.preventDefault(),e.stopPropagation(),this.contextMenu.emit({event:e,id:this.view().id})}handleScheduleIndicatorClick(e){e.stopPropagation(),this.scheduleIndicatorClicked.emit(this.view().id)}handleCoordinatorIndicatorClick(e){e.stopPropagation(),this.coordinatorIndicatorClicked.emit(this.view().id)}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=P({type:s,selectors:[["app-s-session-info-card"]],hostAttrs:[1,"block"],inputs:{view:[1,"view"],isActive:[1,"isActive"],showWorkspacePath:[1,"showWorkspacePath"],showPromptCount:[1,"showPromptCount"],size:[1,"size"]},outputs:{selected:"selected",contextMenu:"contextMenu",scheduleIndicatorClicked:"scheduleIndicatorClicked",coordinatorIndicatorClicked:"coordinatorIndicatorClicked"},standalone:!0,features:[A],ngContentSelectors:re,decls:19,vars:28,consts:[[3,"click","contextmenu"],[1,"flex","items-center","gap-1.5"],[1,"relative","shrink-0","flex","items-center","justify-center",3,"title"],[1,"rounded-full",3,"ngClass"],[1,"absolute","inset-0","rounded-full","border","border-transparent","border-t-yellow-400","animate-spin"],[1,"text-neutral-200","font-medium","truncate","shrink-1","min-w-0"],[1,"text-[10px]","text-neutral-400","shrink-0",3,"title"],[3,"workspacePath"],[1,"text-[8px]","px-0.5","rounded","bg-amber-500/15","text-amber-500","shrink-0"],["type","button","title","Ehhez a session-h\xF6z tartozik schedule \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Schedule attached \u2014 open popup",1,"shrink-0","text-neonCyan/80","hover:text-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan/60","rounded","p-0.5",3,"ml-auto"],["title","El-nem-k\xFCld\xF6tt piszkozat van mentve ehhez a session-h\xF6z","aria-label","Unsent draft input present",1,"shrink-0","text-amber-400/80","inline-flex","items-center","justify-center","p-0.5",3,"ml-auto"],["type","button","title","Ehhez a session-h\xF6z tartozik koordin\xE1tor \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Coordinator attached \u2014 open popup",1,"shrink-0","text-neonAmber/80","hover:text-neonAmber","focus:outline-none","focus:ring-1","focus:ring-neonAmber/60","rounded","p-0.5",3,"ml-auto"],[1,"text-[10px]","text-neutral-500","truncate","mt-0.5","ml-5"],[1,"flex","items-center","gap-2","mt-0.5","ml-5"],[1,"flex","items-center","gap-1.5","mt-1.5","pt-1.5","border-t","border-neutral-800/50","empty:hidden"],["type","button","title","Ehhez a session-h\xF6z tartozik schedule \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Schedule attached \u2014 open popup",1,"shrink-0","text-neonCyan/80","hover:text-neonCyan","focus:outline-none","focus:ring-1","focus:ring-neonCyan/60","rounded","p-0.5",3,"click"],["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round","aria-hidden","true",1,"w-3","h-3"],["x","3","y","4","width","18","height","18","rx","2","ry","2"],["x1","16","y1","2","x2","16","y2","6"],["x1","8","y1","2","x2","8","y2","6"],["x1","3","y1","10","x2","21","y2","10"],["title","El-nem-k\xFCld\xF6tt piszkozat van mentve ehhez a session-h\xF6z","aria-label","Unsent draft input present",1,"shrink-0","text-amber-400/80","inline-flex","items-center","justify-center","p-0.5"],["d","M12 20h9"],["d","M16.5 3.5a2.121 2.121 0 1 1 3 3L7 19l-4 1 1-4 12.5-12.5z"],["type","button","title","Ehhez a session-h\xF6z tartozik koordin\xE1tor \u2014 kattints a r\xE9szletek\xE9rt","aria-label","Coordinator attached \u2014 open popup",1,"shrink-0","text-neonAmber/80","hover:text-neonAmber","focus:outline-none","focus:ring-1","focus:ring-neonAmber/60","rounded","p-0.5",3,"click"],["cx","12","cy","12","r","10"],["points","16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"],[1,"text-[10px]","text-neutral-600"]],template:function(t,i){if(t&1&&(V(ne),l(0,"div",0),y("click",function(){return i.handleSelect()})("contextmenu",function(h){return i.handleContextMenu(h)}),l(1,"div",1)(2,"span",2),S(3,"span",3),g(4,oe,1,0,"span",4),u(),l(5,"span",5),m(6),u(),l(7,"span",6),F(8,"sAbsoluteTime"),m(9),F(10,"sTimeAgo"),u(),g(11,ae,1,1,"app-s-project-badge",7)(12,le,2,0,"span",8)(13,ce,6,2,"button",9)(14,ue,4,2,"span",10)(15,de,4,2,"button",11),u(),g(16,pe,2,1,"div",12)(17,_e,3,1,"div",13)(18,he,2,0,"div",14),u()),t&2){let r;j((i.size()==="full"?"px-3 py-2.5 ":"px-2 py-1.5 ")+"border-b cursor-pointer transition-colors "+(i.isActive()?"border-l-2 border-l-ccapAccent border-b-neutral-700/30 bg-neutral-800/80":"border-l-2 border-l-transparent border-b-neutral-700/30 hover:bg-neutral-800/60")),R("opacity-50",i.view().isArchived),a(2),j(i.size()==="full"?"w-4 h-4":"w-3.5 h-3.5"),w("title",i.view().status),a(),j(i.size()==="full"?"w-2 h-2":"w-1.5 h-1.5"),w("ngClass",i.view().statusColorClass),a(),_(i.view().isRunning?4:-1),a(),j(i.size()==="full"?"text-sm":"text-xs"),a(),x(" ",i.view().label," "),a(),w("title",M(8,24,(r=i.view().lastActivityAt)!==null&&r!==void 0?r:"")),a(2),x(" ",i.view().lastActivityAt?M(10,26,i.view().lastActivityAt):"\u2014"," "),a(2),_(i.view().workspacePath?11:-1),a(),_(i.view().isArchived?12:-1),a(),_(i.view().hasSchedule?13:-1),a(),_(i.view().hasDraft?14:-1),a(),_(i.view().hasCoordinator?15:-1),a(),_(i.showWorkspacePath()&&i.view().workspacePath?16:-1),a(),_(i.showPromptCount()&&i.view().promptCount?17:-1),a(),_(i.size()==="full"?18:-1)}},dependencies:[B,Y,Z,te],encapsulation:2})}return s})();var me=(s,c)=>c.id;function fe(s,c){if(s&1){let e=k();l(0,"div",1)(1,"input",5),y("ngModelChange",function(i){C(e);let r=d();return v(r.searchQuery_$.set(i))}),u()()}if(s&2){let e=d();a(),w("placeholder",e.searchPlaceholder())("ngModel",e.searchQuery_$())}}function ge(s,c){if(s&1){let e=k();l(0,"app-s-session-info-card",6),y("selected",function(i){C(e);let r=d();return v(r.handleRowSelect(i))})("contextMenu",function(i){C(e);let r=d();return v(r.handleRowContextMenu(i))})("scheduleIndicatorClicked",function(i){C(e);let r=d();return v(r.handleRowScheduleIndicatorClick(i))})("coordinatorIndicatorClicked",function(i){C(e);let r=d();return v(r.handleRowCoordinatorIndicatorClick(i))}),u()}if(s&2){let e=c.$implicit,t=d();w("view",e)("isActive",e.id===t.activeId())("showWorkspacePath",t.showWorkspacePath())("showPromptCount",t.showPromptCount())}}function we(s,c){s&1&&m(0," Nincs tal\xE1lat. ")}function Ce(s,c){s&1&&m(0," \xDCres lista. ")}function ve(s,c){if(s&1&&(l(0,"span",4),g(1,we,1,0)(2,Ce,1,0),u()),s&2){let e=d();a(),_(e.searchQuery_$().trim().length>0?1:2)}}var Oe=(()=>{class s{kind=p.required();rows=p([]);activeId=p("");showWorkspacePath=p(!1);showPromptCount=p(!1);searchPlaceholder=p("Keres\xE9s...");hideSearch=p(!1);selected=f();contextMenu=f();scheduleIndicatorClicked=f();coordinatorIndicatorClicked=f();searchQuery_$=n("");filteredRows_$=z(()=>{let e=this.rows();if(this.hideSearch())return e;let t=this.searchQuery_$();return t.trim().length===0?e:e.filter(i=>X.includesText(i.label,t))});handleRowSelect(e){this.selected.emit(e)}handleRowContextMenu(e){this.contextMenu.emit(e)}handleRowScheduleIndicatorClick(e){this.scheduleIndicatorClicked.emit(e)}handleRowCoordinatorIndicatorClick(e){this.coordinatorIndicatorClicked.emit(e)}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=P({type:s,selectors:[["app-s-session-select"]],hostAttrs:[1,"block"],inputs:{kind:[1,"kind"],rows:[1,"rows"],activeId:[1,"activeId"],showWorkspacePath:[1,"showWorkspacePath"],showPromptCount:[1,"showPromptCount"],searchPlaceholder:[1,"searchPlaceholder"],hideSearch:[1,"hideSearch"]},outputs:{selected:"selected",contextMenu:"contextMenu",scheduleIndicatorClicked:"scheduleIndicatorClicked",coordinatorIndicatorClicked:"coordinatorIndicatorClicked"},standalone:!0,features:[A],decls:6,vars:2,consts:[[1,"flex","flex-col","gap-2"],[1,"px-2","pt-2"],[1,"flex","flex-col","gap-1","px-2","pb-2"],[3,"view","isActive","showWorkspacePath","showPromptCount"],[1,"text-[11px]","text-neutral-500","italic","px-1","py-2"],["type","text","data-testid","s-session-select-search",1,"w-full","px-2","py-1","text-xs","rounded","border","border-neonDefault","bg-neutral-900","text-neutral-200","placeholder-neutral-500","focus:outline-none","focus:border-ccapAccent",3,"ngModelChange","placeholder","ngModel"],[3,"selected","contextMenu","scheduleIndicatorClicked","coordinatorIndicatorClicked","view","isActive","showWorkspacePath","showPromptCount"]],template:function(t,i){t&1&&(l(0,"div",0),g(1,fe,2,2,"div",1),l(2,"div",2),G(3,ge,1,4,"app-s-session-info-card",3,me),g(5,ve,3,1,"span",4),u()()),t&2&&(a(),_(i.hideSearch()?-1:1),a(2),U(i.filteredRows_$()),a(2),_(i.filteredRows_$().length===0?5:-1))},dependencies:[H,K,N,O,Q,ie],encapsulation:2})}return s})();export{ee as a,ie as b,Oe as c};
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
4
|
+
//# sourceMappingURL=chunk-4RSRS6ZD.js.map
|