@nodefony/studio 10.0.0-alpha.4 → 10.0.0-alpha.6
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/LICENSE +201 -543
- package/README.md +1 -1
- package/dist/frontend/assets/{Accordion-MpCaanBp.js → Accordion-C9IINbNl.js} +1 -1
- package/dist/frontend/assets/{ActionsLiveGraph-Bn9aDMoy.js → ActionsLiveGraph-Do_UHAiS.js} +1 -1
- package/dist/frontend/assets/{ApiKeys-CkrfHvuz.js → ApiKeys-BpeOM6zu.js} +1 -1
- package/dist/frontend/assets/{ArchitectureLiveGraph-FiAXWEmb.js → ArchitectureLiveGraph-wJ58pSKK.js} +1 -1
- package/dist/frontend/assets/{Audit-CXwK0CaZ.js → Audit-C4YFzQRy.js} +1 -1
- package/dist/frontend/assets/{BackplaneLiveGraph-Cp6QpU0L.js → BackplaneLiveGraph-ChvZZWdo.js} +1 -1
- package/dist/frontend/assets/{Breadcrumbs-CzapNMrQ.js → Breadcrumbs-4bv1GHWO.js} +1 -1
- package/dist/frontend/assets/{BrickStoreChip-BIXuy1kL.js → BrickStoreChip-BtiG99lz.js} +1 -1
- package/dist/frontend/assets/{Chat-Do9NIPmS.js → Chat-DjbG7eSv.js} +1 -1
- package/dist/frontend/assets/{Chip-BjqN597E.js → Chip-DUBEzfSp.js} +1 -1
- package/dist/frontend/assets/{Cluster-BkZt_mYF.js → Cluster-C_TSC_3_.js} +1 -1
- package/dist/frontend/assets/{Collapse-CmBXtX5V.js → Collapse-BdzfO7PU.js} +1 -1
- package/dist/frontend/assets/{ConfigPage-v0om_j8G.js → ConfigPage-Da8SVX0R.js} +1 -1
- package/dist/frontend/assets/{ConnectorCard-DbRP2RJi.js → ConnectorCard-DOKtRiVP.js} +1 -1
- package/dist/frontend/assets/{Create-fZhx_pmV.js → Create-vyihNeeE.js} +1 -1
- package/dist/frontend/assets/{DashboardSupervision-BuMAg987.js → DashboardSupervision-CxSpNAsK.js} +1 -1
- package/dist/frontend/assets/{Database-DRXFZ4wa.js → Database-D0AiIyrs.js} +1 -1
- package/dist/frontend/assets/{DbLogo-Do6DLwZ4.js → DbLogo-B4TwNH6H.js} +1 -1
- package/dist/frontend/assets/{Documentation-DsWmvZxK.js → Documentation-CmIZeRoB.js} +1 -1
- package/dist/frontend/assets/{FanOutLiveGraph-DGM9BK5-.js → FanOutLiveGraph-JTYLv77d.js} +1 -1
- package/dist/frontend/assets/{Firewall-DpC4JJJR.js → Firewall-DHvfx-wn.js} +1 -1
- package/dist/frontend/assets/{IconAdjustments-BMMLxTcM.js → IconAdjustments-B042o6Le.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsAlt-Ir4G4Y7Z.js → IconAdjustmentsAlt-BmgZVo5M.js} +1 -1
- package/dist/frontend/assets/{IconAdjustmentsHorizontal-BxMmRrUv.js → IconAdjustmentsHorizontal-BIF-EgYG.js} +1 -1
- package/dist/frontend/assets/{IconAffiliate-1tDrNA0o.js → IconAffiliate-PkjISh3s.js} +1 -1
- package/dist/frontend/assets/{IconApps-CRDRa7tT.js → IconApps-2nW1Qtkd.js} +1 -1
- package/dist/frontend/assets/{IconArchive-D8HwRV4a.js → IconArchive-CyeHZASU.js} +1 -1
- package/dist/frontend/assets/{IconArrowDown-GaUymYBK.js → IconArrowDown-CRJ1x8hy.js} +1 -1
- package/dist/frontend/assets/{IconArrowLeft-DferA-ep.js → IconArrowLeft-7ehg9XYP.js} +1 -1
- package/dist/frontend/assets/{IconArrowUp-PCiLTfG1.js → IconArrowUp-CWUGvcnj.js} +1 -1
- package/dist/frontend/assets/IconArrowsExchange-C0a0grm7.js +1 -0
- package/dist/frontend/assets/{IconArrowsSplit2-W0sh3TaC.js → IconArrowsSplit2-D6oEboxp.js} +1 -1
- package/dist/frontend/assets/IconBan-Qgw-SmZw.js +1 -0
- package/dist/frontend/assets/{IconBook-BmsZkk0J.js → IconBook-CFhZJJ0F.js} +1 -1
- package/dist/frontend/assets/{IconCircleCheck-CFT2zXBN.js → IconCircleCheck-vTUIJ1YM.js} +1 -1
- package/dist/frontend/assets/{IconCircleDot-DNL8Ny4t.js → IconCircleDot-Cw7O7RFw.js} +1 -1
- package/dist/frontend/assets/IconCircuitResistor-DFVNZSyj.js +1 -0
- package/dist/frontend/assets/{IconCode-C-xjq0yN.js → IconCode-Bp8-3f_0.js} +1 -1
- package/dist/frontend/assets/{IconDeviceDesktop-COvdDCew.js → IconDeviceDesktop-CI8a1zbE.js} +1 -1
- package/dist/frontend/assets/{IconDots-DmeZz8jE.js → IconDots-DNiAUhiO.js} +1 -1
- package/dist/frontend/assets/{IconDownload-gN-jUZIw.js → IconDownload-CTLQCk0R.js} +1 -1
- package/dist/frontend/assets/{IconEye-Bk_cwCK8.js → IconEye-D80bz7c_.js} +1 -1
- package/dist/frontend/assets/{IconFile-CGY0avHw.js → IconFile-vc7KG4Rf.js} +1 -1
- package/dist/frontend/assets/{IconFolder-fobXch7V.js → IconFolder-DGoYanMO.js} +1 -1
- package/dist/frontend/assets/{IconGitBranch-BSdsugvP.js → IconGitBranch-ClVGboyH.js} +1 -1
- package/dist/frontend/assets/{IconHeartRateMonitor-DnLjWo9E.js → IconHeartRateMonitor-upfL_t5M.js} +1 -1
- package/dist/frontend/assets/{IconHelpCircle-B_oofaHt.js → IconHelpCircle-BoSiqXIY.js} +1 -1
- package/dist/frontend/assets/{IconLayoutGrid-RQQcbQ4V.js → IconLayoutGrid-B6L6txBS.js} +1 -1
- package/dist/frontend/assets/{IconNetwork-CVh_7SBg.js → IconNetwork-BakBlNUv.js} +1 -1
- package/dist/frontend/assets/{IconPackages-DtokEJ4h.js → IconPackages-DZHwNbfL.js} +1 -1
- package/dist/frontend/assets/{IconPencil-aoiAHL8L.js → IconPencil-B-pO6nfU.js} +1 -1
- package/dist/frontend/assets/{IconPlayerPause-DKHqe8vf.js → IconPlayerPause-CmDKLlIs.js} +1 -1
- package/dist/frontend/assets/IconPlayerPlay-CYA71UO2.js +1 -0
- package/dist/frontend/assets/IconPlus-Dh1SmA8Q.js +1 -0
- package/dist/frontend/assets/{IconPuzzle-CVsu0cJb.js → IconPuzzle-CslQPiCN.js} +1 -1
- package/dist/frontend/assets/{IconRecycle-Be0bCfZE.js → IconRecycle-DABPgUVk.js} +1 -1
- package/dist/frontend/assets/{IconSend-B1EAVyLW.js → IconSend-MV_iN0wK.js} +1 -1
- package/dist/frontend/assets/{IconServer2-X42sUHRA.js → IconServer2-CRutQdmm.js} +1 -1
- package/dist/frontend/assets/{IconShieldOff-33j_CISf.js → IconShieldOff-Iriep3yk.js} +1 -1
- package/dist/frontend/assets/{IconSitemap-DzQiVK2C.js → IconSitemap-CqkVZPOt.js} +1 -1
- package/dist/frontend/assets/{IconStack2-DiTO4Kti.js → IconStack2-DA4YUbMC.js} +1 -1
- package/dist/frontend/assets/{IconTerminal2-BV1pt7OG.js → IconTerminal2-CWTGfiEn.js} +1 -1
- package/dist/frontend/assets/{IconUserOff-UXY4H2d4.js → IconUserOff-D99nKohi.js} +1 -1
- package/dist/frontend/assets/{IconWorld-PcZDgbVL.js → IconWorld-BRgStXMv.js} +1 -1
- package/dist/frontend/assets/{List-uo3j-T0O.js → List-Da8UU6lg.js} +1 -1
- package/dist/frontend/assets/{LogVisuals-DsuR5jXM.js → LogVisuals-BGUY8-_R.js} +1 -1
- package/dist/frontend/assets/{Logs-C_qQuQSO.js → Logs-DZCQkQXw.js} +1 -1
- package/dist/frontend/assets/{Migrations-BGVVcM1R.js → Migrations-Bun03S4a.js} +1 -1
- package/dist/frontend/assets/{ModuleDetail-DxODg8lc.js → ModuleDetail-DsZ7jPqr.js} +1 -1
- package/dist/frontend/assets/{Modules-DGDFYWQ9.js → Modules-C7G10G7J.js} +1 -1
- package/dist/frontend/assets/{OrmEntity-C3-wD82Y.js → OrmEntity-Drw9PhAO.js} +1 -1
- package/dist/frontend/assets/{OrmOverview-C8TdHQaY.js → OrmOverview-BzTzmCFr.js} +1 -1
- package/dist/frontend/assets/{OrmWorker-DyLcehCD.js → OrmWorker-D6m8aLoC.js} +1 -1
- package/dist/frontend/assets/{Playground-aTDJ_ivl.js → Playground-ku4WxRVF.js} +1 -1
- package/dist/frontend/assets/{ProbesLiveGraph-D44vbnP7.js → ProbesLiveGraph-LGl0Vt3c.js} +1 -1
- package/dist/frontend/assets/{Profile-C3LAvLC8.js → Profile-CIC1v8ye.js} +2 -2
- package/dist/frontend/assets/{ProfileFields-DklbGAtG.js → ProfileFields-BA4k5xVH.js} +1 -1
- package/dist/frontend/assets/{Progress-Dwkf5mnx.js → Progress-ctKVb0y-.js} +1 -1
- package/dist/frontend/assets/{ProtocoleLiveGraph-CH4059bb.js → ProtocoleLiveGraph-Ct7VbuWa.js} +1 -1
- package/dist/frontend/assets/{RealtimeConsole-D4_d84f7.js → RealtimeConsole-CUwlc-WS.js} +1 -1
- package/dist/frontend/assets/{RingProgress-Dlgky3bB.js → RingProgress-CHMtGKds.js} +1 -1
- package/dist/frontend/assets/{Roadmap-7uQkHixK.js → Roadmap-yZY1WJHu.js} +1 -1
- package/dist/frontend/assets/{RoleSwitch-Dsf9uvrn.js → RoleSwitch-DzEHDHLA.js} +1 -1
- package/dist/frontend/assets/{Roles-DXNeicSE.js → Roles-hy1gMeEh.js} +1 -1
- package/dist/frontend/assets/{RoutesView-23RFz8El.js → RoutesView-E8ca6Zft.js} +1 -1
- package/dist/frontend/assets/{Runtime-D3ci7YVL.js → Runtime-DhpEGVfL.js} +1 -1
- package/dist/frontend/assets/{Sessions-ovPwp-Ey.js → Sessions-CXTgHqDM.js} +1 -1
- package/dist/frontend/assets/{Skeleton-CEx0u6Vm.js → Skeleton-DybgHU9E.js} +1 -1
- package/dist/frontend/assets/{Slider-Br43Xp6v.js → Slider-BoAxGS1L.js} +1 -1
- package/dist/frontend/assets/{StoresView-Cl70sL24.js → StoresView-DoWAf-jh.js} +1 -1
- package/dist/frontend/assets/{System-T23m0nmJ.js → System-DDEZt9W5.js} +1 -1
- package/dist/frontend/assets/{TagsInput-D0w9J-41.js → TagsInput-CvH7XFRB.js} +1 -1
- package/dist/frontend/assets/{Textarea-Ckgp9_Aw.js → Textarea-C4dBiWye.js} +1 -1
- package/dist/frontend/assets/{TraceView-BuC-6ahG.js → TraceView-D8fl7TGg.js} +1 -1
- package/dist/frontend/assets/{Twin-DUxfPm05.js → Twin-B9_yDKs5.js} +1 -1
- package/dist/frontend/assets/{UserProfile-BMwvavKN.js → UserProfile-y8I6wSTh.js} +1 -1
- package/dist/frontend/assets/{Users-BPIMHLWM.js → Users-DLPi2ne7.js} +1 -1
- package/dist/frontend/assets/{Webhooks-CvNou0qr.js → Webhooks-L-17Yi5A.js} +1 -1
- package/dist/frontend/assets/{Workspace-CQptEGuu.js → Workspace-BbU7y0F1.js} +1 -1
- package/dist/frontend/assets/_basePickBy-QJXUw_pr.js +1 -0
- package/dist/frontend/assets/_baseUniq-DR4vVjyC.js +1 -0
- package/dist/frontend/assets/{abnfDiagram-VCTEODGH-DakEpAso.js → abnfDiagram-O67JEVCF-B8pam94f.js} +1 -1
- package/dist/frontend/assets/{apiKeysModel-BqjObqyi.js → apiKeysModel-C53i4AfO.js} +1 -1
- package/dist/frontend/assets/architecture-7GRP2DOG-CBO_kzGR.js +1 -0
- package/dist/frontend/assets/architectureDiagram-NJMV4G6O-6gmizkIP.js +36 -0
- package/dist/frontend/assets/{auditFormat-CupHRkJY.js → auditFormat-lxo0qiYp.js} +1 -1
- package/dist/frontend/assets/{auditModel-CTzDSxkP.js → auditModel-CxUfDlvX.js} +1 -1
- package/dist/frontend/assets/{blockDiagram-I7D4REHJ-JEZGEK5g.js → blockDiagram-BEXU5L5S-CPV6OfBz.js} +15 -4
- package/dist/frontend/assets/c4Diagram-YGBWAQC7-BxzOrOd5.js +38 -0
- package/dist/frontend/assets/channel-CLVQeto6.js +1 -0
- package/dist/frontend/assets/chunk-3FUC2YCW-TJIJwE1t.js +2 -0
- package/dist/frontend/assets/{chunk-GVQU2GXP-CJTCPJEH.js → chunk-5DYCD2WN-C6fNpDCq.js} +1 -1
- package/dist/frontend/assets/{chunk-PWAF6VOD-8aIc0M2s.js → chunk-742MDFTN-BuWqUJ1x.js} +1 -1
- package/dist/frontend/assets/chunk-7INBJB4K-BLEZ8obp.js +62 -0
- package/dist/frontend/assets/chunk-7M6MHVWA-DRzYiIPp.js +213 -0
- package/dist/frontend/assets/chunk-7PRAP22T-CY3tH-_v.js +1 -0
- package/dist/frontend/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/dist/frontend/assets/{chunk-SVP7TREG-oTcoMsBW.js → chunk-GTNCS2PH-DZtp2P9b.js} +1 -1
- package/dist/frontend/assets/{chunk-F27PBJKO-9OJHGb4f.js → chunk-GWA4HPMP-DwZHSyM6.js} +1 -1
- package/dist/frontend/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/dist/frontend/assets/chunk-MBY4JIJT-DU8hh3vE.js +72 -0
- package/dist/frontend/assets/chunk-NETBCI7D-PrPyv2qf.js +1 -0
- package/dist/frontend/assets/chunk-O7XYJQB3-j8r_wK2Y.js +128 -0
- package/dist/frontend/assets/chunk-UA2S7LBM-EhjtOSNT.js +1 -0
- package/dist/frontend/assets/{chunk-POPQ4Y6H-DjvzCiTE.js → chunk-WEXAMYUT-DnLgt6Py.js} +1 -1
- package/dist/frontend/assets/{chunk-OSK3NFVY-COHJYKGg.js → chunk-Z7XXMR3K-B4DDNjo4.js} +3 -3
- package/dist/frontend/assets/{chunk-75Z2AOVW-8XdKJlnw.js → chunk-ZIGJFQKS-D7Dw35HO.js} +2 -2
- package/dist/frontend/assets/classDiagram-v2-NBCMYWYE-BtmMp0Pl.js +217 -0
- package/dist/frontend/assets/{configModel-9wff8bR0.js → configModel-vPcx16aO.js} +1 -1
- package/dist/frontend/assets/{cynefin-OW5HDTMX-DTQAFPRh.js → cynefin-OW5HDTMX-C57TpIt4.js} +1 -1
- package/dist/frontend/assets/cynefinDiagram-VND7K2PF-DAC6UAuW.js +62 -0
- package/dist/frontend/assets/dagre-6A5THRUB-CO85D-6G.js +4 -0
- package/dist/frontend/assets/diagram-22UHCM2B-BOX3CQqS.js +200 -0
- package/dist/frontend/assets/{diagram-VX7I27RA-TWNFQjSJ.js → diagram-3UASUU5V-CxvH61Hb.js} +2 -2
- package/dist/frontend/assets/{diagram-VSXAHHWV-Bbk7qR-7.js → diagram-ATOU4E4O-B5UFYp-C.js} +3 -3
- package/dist/frontend/assets/{diagram-S7CK7UJ4-Cwd6kIV8.js → diagram-CDSNMT55-BKs0JPfD.js} +3 -3
- package/dist/frontend/assets/{diagram-Z3DM3KII-BMmQZ4NG.js → diagram-MLGK6HIB-D9BjufDu.js} +1 -1
- package/dist/frontend/assets/diagram-MPIPVDR6-CAjYxIoY.js +41 -0
- package/dist/frontend/assets/{ebnfDiagram-PWID7BFC-CAX8xfdl.js → ebnfDiagram-ZINNZB2B-DyFbyGL9.js} +1 -1
- package/dist/frontend/assets/elk-276RUBZZ-De_z70FL.js +27 -0
- package/dist/frontend/assets/{erDiagram-RLTQ6QDP-CWmhnVLB.js → erDiagram-OPXOYQCR-N61HA9T0.js} +15 -15
- package/dist/frontend/assets/{eventFlow-DFfppLtR.js → eventFlow-Dtt06FYi.js} +1 -1
- package/dist/frontend/assets/eventmodeling-NTZA5JFV-BkawB1PZ.js +1 -0
- package/dist/frontend/assets/flowDiagram-KWPJA3E3-BubqL8R4.js +1 -0
- package/dist/frontend/assets/{ganttDiagram-EL5Y4UJY-Bd8tzKWH.js → ganttDiagram-FUAMR5RP-BDNJ7Bau.js} +2 -2
- package/dist/frontend/assets/{gitGraph-4MIJSDKK-BXX9MUcA.js → gitGraph-4MIJSDKK-CAY6QM8x.js} +1 -1
- package/dist/frontend/assets/{gitGraphDiagram-WWUBYQGX-BauOrV6h.js → gitGraphDiagram-X574FWY7-DB39dqwB.js} +4 -4
- package/dist/frontend/assets/graphlib-C9Tl7QrK.js +1 -0
- package/dist/frontend/assets/{hooks-CfKRhu_H.js → hooks-C4XxBzBx.js} +1 -1
- package/dist/frontend/assets/{index-B5XPwAJ0.js → index-wfxUl83u.js} +3 -3
- package/dist/frontend/assets/{info-A6RAGUB7-C6_XFf2W.js → info-A6RAGUB7-CIjHym4W.js} +1 -1
- package/dist/frontend/assets/infoDiagram-VRGFBTTK-jzkh5hxl.js +2 -0
- package/dist/frontend/assets/{ishikawaDiagram-5VMMS53U-CDxS8D1o.js → ishikawaDiagram-OU5B5YK6-C-80YGTU.js} +2 -2
- package/dist/frontend/assets/{journeyDiagram-3NMN7TZE-Bpqkb9h5.js → journeyDiagram-ZHPQQLJL-CTLmUx34.js} +3 -3
- package/dist/frontend/assets/{kanban-definition-UXKFOSKX-DyHAh7b3.js → kanban-definition-PNTS6WVX-CNUWj3n8.js} +7 -7
- package/dist/frontend/assets/{line-M-d-d1EU.js → line-BFnujzfH.js} +1 -1
- package/dist/frontend/assets/{mermaid-parser.core-CHfQPsU0.js → mermaid-parser.core-BP-BgE7c.js} +3 -3
- package/dist/frontend/assets/mermaid.core-bi0KWxzD.js +44 -0
- package/dist/frontend/assets/{mindmap-definition-YA3MSWOX-BFkOwGys.js → mindmap-definition-NLK3R4M7-BpydpKOL.js} +24 -24
- package/dist/frontend/assets/{packet-AYTQ26CC-HR9HA7Bb.js → packet-AYTQ26CC-CfGiptr4.js} +1 -1
- package/dist/frontend/assets/{pegDiagram-XKGWAZYB-ChUjCgzu.js → pegDiagram-GJSIUBJH-B8r97QN1.js} +1 -1
- package/dist/frontend/assets/{pie-WAS4IAKB-D-TpfAfM.js → pie-WAS4IAKB-lOu4mWy0.js} +1 -1
- package/dist/frontend/assets/{pieDiagram-E7YTZNPT-CuQuN02N.js → pieDiagram-5QR66LMP-kyKeYg-Q.js} +2 -2
- package/dist/frontend/assets/{preload-helper-DqwykoZ_.js → preload-helper-DfDauRb0.js} +1 -1
- package/dist/frontend/assets/{profileVisuals-AfQmPBF0.js → profileVisuals-BE_m4Ey1.js} +1 -1
- package/dist/frontend/assets/{quadrantDiagram-AXDQQJYC-xXwWHqU1.js → quadrantDiagram-O4NWA36T-BcqZGb03.js} +3 -3
- package/dist/frontend/assets/{radar-RG4KPBEZ-C4k2mLY3.js → radar-RG4KPBEZ-CncHVJ-Z.js} +1 -1
- package/dist/frontend/assets/{railroad-74A4TZTK-CYIPd3_z.js → railroad-74A4TZTK-7mvjY84V.js} +1 -1
- package/dist/frontend/assets/railroad-abnf-HS5TGJTU-DPThAF5w.js +1 -0
- package/dist/frontend/assets/railroad-ebnf-LZEXJU2U-Ck30vOwD.js +1 -0
- package/dist/frontend/assets/railroad-peg-WCYAUIDC-fLqqEJcF.js +1 -0
- package/dist/frontend/assets/{railroadDiagram-O6MQD6OU-BUXWMmma.js → railroadDiagram-XR7U4H2S-UqD2ngrA.js} +1 -1
- package/dist/frontend/assets/{requirementDiagram-BXWQKSXE-Bsh-F7ML.js → requirementDiagram-PLB6GJNP-BCf1UDbg.js} +11 -11
- package/dist/frontend/assets/sankeyDiagram-IPEJSGJF-CLBdyFVN.js +40 -0
- package/dist/frontend/assets/sequenceDiagram-PO4LG4MO-BtmJQCMb.js +169 -0
- package/dist/frontend/assets/stateDiagram-v2-GCMORJYK-KOfXhGJl.js +291 -0
- package/dist/frontend/assets/{stores-qxxkbS9c.js → stores-DIccV-P5.js} +1 -1
- package/dist/frontend/assets/swimlanes-2SLR337P-CbhPYBmu.js +1 -0
- package/dist/frontend/assets/swimlanesDiagram-TC7HE7FX-DERYN-sv.js +8 -0
- package/dist/frontend/assets/timeline-definition-EJHVYXUP-DyFLwqcy.js +120 -0
- package/dist/frontend/assets/{treeView-Q6P3EWNA-CZk8-mN6.js → treeView-Q6P3EWNA-DFFnEAvn.js} +1 -1
- package/dist/frontend/assets/{treemap-WGGIJYW6-Bo7KzIC6.js → treemap-WGGIJYW6-BibBNuzW.js} +1 -1
- package/dist/frontend/assets/{ui-a5TQE0p7.js → ui-Dy8y0zPl.js} +4 -4
- package/dist/frontend/assets/{useBlockSource-Ebxw3nWx.js → useBlockSource-DBTXt3Bd.js} +1 -1
- package/dist/frontend/assets/{useSocketLiveData-DS1IelEt.js → useSocketLiveData-n5suTFQT.js} +1 -1
- package/dist/frontend/assets/usecaseDiagram-POWQR4AR-DrNt0E-k.js +328 -0
- package/dist/frontend/assets/{usersFormat-DfK4u7y3.js → usersFormat-C33NWJaO.js} +1 -1
- package/dist/frontend/assets/vennDiagram-UO4OBE2U-CdTyOHVa.js +34 -0
- package/dist/frontend/assets/{wardley-WFR3VGLG-Bk_ZXh6D.js → wardley-WFR3VGLG-C6RQiZKi.js} +1 -1
- package/dist/frontend/assets/{wardleyDiagram-VM6X3IG4-ME0kZTnx.js → wardleyDiagram-VNRHLVJA-D8xJmOUJ.js} +3 -3
- package/dist/frontend/assets/{xychartDiagram-S5SC5T6Z-BqWnjUPr.js → xychartDiagram-PMCCYNJV-BwyKdA55.js} +3 -3
- package/dist/frontend/index.html +12 -12
- package/package.json +17 -18
- package/dist/frontend/assets/IconArrowsExchange-DCapIwe0.js +0 -1
- package/dist/frontend/assets/IconBan-Dp5q0Lnv.js +0 -1
- package/dist/frontend/assets/IconCircuitResistor-B7RDK9N_.js +0 -1
- package/dist/frontend/assets/IconPlayerPlay-Bf3fub_J.js +0 -1
- package/dist/frontend/assets/IconPlus-WkavYvcK.js +0 -1
- package/dist/frontend/assets/architecture-7GRP2DOG-Zh-DJtq2.js +0 -1
- package/dist/frontend/assets/architectureDiagram-5GKGNRK7-rHr5JN-x.js +0 -36
- package/dist/frontend/assets/c4Diagram-7LVT6UL2-CWZ8fEY-.js +0 -38
- package/dist/frontend/assets/channel-Dhikye2V.js +0 -1
- package/dist/frontend/assets/chunk-4HAMMTFA-BVE3Ntuo.js +0 -62
- package/dist/frontend/assets/chunk-DU6HZSFF-Ddor4J2O.js +0 -127
- package/dist/frontend/assets/chunk-GMAD6QVW-T1eAn0xk.js +0 -72
- package/dist/frontend/assets/chunk-IMKFNOWR-C0dajEEe.js +0 -231
- package/dist/frontend/assets/chunk-L3NEJ4N5-CIKjoshr.js +0 -1
- package/dist/frontend/assets/chunk-P2QGCYS3-B9TYBq1U.js +0 -1
- package/dist/frontend/assets/chunk-SHT3W25Y-BkMRzaYI.js +0 -168
- package/dist/frontend/assets/chunk-TICWLB2K-BC-WUp6G.js +0 -206
- package/dist/frontend/assets/classDiagram-ZZMXUADV-C1pS6Zpy.js +0 -1
- package/dist/frontend/assets/classDiagram-v2-VYDZK3BY-C1pS6Zpy.js +0 -1
- package/dist/frontend/assets/cynefinDiagram-5FMLGOSQ-D6MsKNt5.js +0 -62
- package/dist/frontend/assets/dagre-C-rnJpZF.js +0 -1
- package/dist/frontend/assets/dagre-GXQ25YYZ-Ci7TKj6S.js +0 -4
- package/dist/frontend/assets/diagram-UQ7AKVKN-B5dc--Uo.js +0 -41
- package/dist/frontend/assets/eventmodeling-NTZA5JFV-DkQbKxGr.js +0 -1
- package/dist/frontend/assets/flowDiagram-HODETNUW-bvCiZixO.js +0 -1
- package/dist/frontend/assets/graphlib-DS17s2tU.js +0 -1
- package/dist/frontend/assets/infoDiagram-27XIBGKW-B7tu0JSw.js +0 -2
- package/dist/frontend/assets/mermaid.core--ckckkca.js +0 -44
- package/dist/frontend/assets/railroad-abnf-HS5TGJTU-dM0hWQvr.js +0 -1
- package/dist/frontend/assets/railroad-ebnf-LZEXJU2U-DWGR3jQw.js +0 -1
- package/dist/frontend/assets/railroad-peg-WCYAUIDC-DGCWi8va.js +0 -1
- package/dist/frontend/assets/sankeyDiagram-P5KCCOFB-xg9O2BE4.js +0 -40
- package/dist/frontend/assets/sequenceDiagram-WJ2MYXX4-DymwOXlw.js +0 -162
- package/dist/frontend/assets/stateDiagram-D77RDMKH-vCnR_fnm.js +0 -1
- package/dist/frontend/assets/stateDiagram-v2-MP3YSRHH-CRYTgAP0.js +0 -1
- package/dist/frontend/assets/swimlanes-42K2YHIH-Cinv35_9.js +0 -1
- package/dist/frontend/assets/swimlanesDiagram-VR7AAH4N-C32RYZYz.js +0 -8
- package/dist/frontend/assets/timeline-definition-24CTP7MA-rEBLQF9P.js +0 -120
- package/dist/frontend/assets/vennDiagram-4TSXK5OY-BVy8Lal-.js +0 -34
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as e}from"./src-Dvwdl2PF.js";import{$ as t,Et as n,In as r,K as i,Kt as a,Mn as o,Pn as s,Pt as c,R as l,Rt as u,Ut as d,Wn as f,_t as p,a as m,d as h,di as g,dt as ee,f as te,ht as ne,i as _,it as re,mt as ie,nn as v,on as y,or as ae,rn as b,sn as x,vn as S,wt as oe,xt as se,yn as ce,z as C,zn as le}from"./ui-a5TQE0p7.js";import{t as ue}from"./Slider-Br43Xp6v.js";import{t as de}from"./Collapse-CmBXtX5V.js";import{t as fe}from"./Progress-Dwkf5mnx.js";import{t as w}from"./RingProgress-Dlgky3bB.js";import{O as pe,c as me,h as T}from"./stores-qxxkbS9c.js";import{t as he}from"./IconAdjustmentsHorizontal-BxMmRrUv.js";import{n as ge,t as _e}from"./IconRecycle-Be0bCfZE.js";import{t as ve}from"./IconCircleCheck-CFT2zXBN.js";import{t as ye}from"./IconGitBranch-BSdsugvP.js";import{t as be}from"./IconHeartRateMonitor-DnLjWo9E.js";import{t as xe}from"./IconPencil-aoiAHL8L.js";import{t as Se}from"./IconStack2-DiTO4Kti.js";import{t as Ce}from"./IconTerminal2-BV1pt7OG.js";import{$ as we,H as Te,J as E,L as Ee,M as De,O as Oe,X as ke,Y as Ae,ct as D,et as O,pt as k,y as je}from"./index-B5XPwAJ0.js";import{n as A}from"./realtimeHealth-CEJDxl45.js";import{p as Me}from"./apiKeysModel-BqjObqyi.js";import{r as Ne}from"./auditModel-CTzDSxkP.js";import{i as j,n as Pe,r as M,t as N}from"./health-D8eXYj6Q.js";import{a as Fe,d as Ie,g as Le,m as Re,v as ze,x as Be}from"./LogVisuals-DsuR5jXM.js";var Ve=n(`outline`,`chart-histogram`,`ChartHistogram`,[[`path`,{d:`M3 3v18h18`,key:`svg-0`}],[`path`,{d:`M20 18v3`,key:`svg-1`}],[`path`,{d:`M16 16v5`,key:`svg-2`}],[`path`,{d:`M12 13v8`,key:`svg-3`}],[`path`,{d:`M8 16v5`,key:`svg-4`}],[`path`,{d:`M3 11c6 0 5 -5 9 -5s3 5 9 5`,key:`svg-5`}]]),He=n(`outline`,`devices`,`Devices`,[[`path`,{d:`M13 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9`,key:`svg-1`}],[`path`,{d:`M16 9h2`,key:`svg-2`}]]),P=n(`outline`,`user-circle`,`UserCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,key:`svg-1`}],[`path`,{d:`M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855`,key:`svg-2`}]]),F=e(g(),1),I=ae();function L(e,t=40){let[n,r]=(0,F.useState)([]);return(0,F.useEffect)(()=>{e==null||Number.isNaN(e)||r(n=>{let r=[...n,e];return r.length>t?r.slice(-t):r})},[e,t]),n}function R(e,t){let n=(0,F.useRef)(null),[r,i]=(0,F.useState)(null);return(0,F.useEffect)(()=>{if(e==null||t==null)return;let r=n.current;if(r&&t>r.ts){let n=(t-r.ts)/1e3;n>0&&i(Math.max(0,(e-r.total)/n))}n.current={total:e,ts:t}},[e,t]),r}function z(e,t,n){return e==null?`gray`:e>=n?`red`:e>=t?`orange`:`teal`}function Ue(e){return`var(--mantine-color-${e}-6)`}function B({label:e,value:t,unit:n,color:r=`teal`,series:i,sub:a}){(0,F.useEffect)(te,[]);let s=t??`—`;return(0,I.jsxs)(`div`,{children:[e?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:e}):null,(0,I.jsxs)(o,{gap:6,align:`flex-end`,wrap:`nowrap`,children:[(0,I.jsx)(h,{value:s,children:(0,I.jsx)(S,{fw:800,fz:26,lh:1.1,c:r,style:{fontVariantNumeric:`tabular-nums`},children:s})}),n?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,style:{marginBottom:3},children:n}):null]}),a?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,mt:2,children:a}):null,i&&i.length>=2?(0,I.jsx)(f,{mt:6,children:(0,I.jsx)(m,{series:[{data:i,color:Ue(r),label:e??``}],height:46})}):null]})}function V({label:e,value:t,unit:n}){return(0,I.jsxs)(`div`,{children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:e}),(0,I.jsxs)(o,{gap:4,align:`baseline`,wrap:`nowrap`,children:[(0,I.jsx)(S,{fw:700,fz:`lg`,style:{fontVariantNumeric:`tabular-nums`},children:t}),n?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:n}):null]})]})}function H({pid:e,children:t}){return(0,I.jsxs)(le,{withBorder:!0,radius:`md`,p:`xs`,children:[e?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,mb:4,children:[`PID `,e]}):null,t]})}function U(e){if(e<60)return`${Math.round(e)}s`;if(e<3600)return`${Math.floor(e/60)}min`;let t=Math.floor(e/3600),n=Math.floor(e%3600/60);return n?`${t}h${n}`:`${t}h`}function W(e){return Math.round(e/1024/1024)}function G(e){return e>=100?Math.round(e).toString():e.toFixed(1)}function We({source:e,ctx:t}){let n=e.data;if(!n)return null;let r=t.cluster?`Cluster`:n.environment===`development`?`Développement`:`Production`,i=t.cluster?`grape`:n.environment===`development`?`teal`:`blue`;return(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:i,variant:`light`,size:`lg`,children:r}),(0,I.jsx)(x,{variant:`light`,color:`gray`,children:t.cluster?`${t.instanceCount} workers`:`1 process`}),(0,I.jsx)(x,{variant:`outline`,color:`gray`,children:n.environment})]}),(0,I.jsxs)(k,{cols:2,spacing:`xs`,children:[(0,I.jsx)(V,{label:`Node`,value:n.node}),(0,I.jsx)(V,{label:`Uptime`,value:U(n.uptime)}),(0,I.jsx)(V,{label:`Modules`,value:n.modules}),(0,I.jsx)(V,{label:`PID`,value:n.pid})]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,ff:`monospace`,children:[n.git?.branch??`?`,` @ `,n.git?.commit??`?`]})]})}T({id:`runtime.mode`,tags:[`runtime`,`config`,`kpi`],title:`Mode & lancement`,description:`Comment ce serveur tourne : environnement, topologie, workers.`,category:`runtime`,icon:De,source:{kind:`snapshot`,endpoint:`/nodefony/kernel/api/info`},clusterAware:!0,defaultSpan:6,minSpan:4,render:We});function K({normalized:e,renderSummary:t,renderInstance:n,drillTo:r}){let[i,a]=(0,F.useState)(!1);if(!e)return null;let{instances:o,totals:s,cluster:c}=e;return!c||o.length<=1?(0,I.jsx)(I.Fragment,{children:o[0]?n(o[0],{grid:!1}):null}):(0,I.jsxs)(f,{children:[t(s,o),(0,I.jsxs)(y,{variant:`subtle`,color:`grape`,size:`compact-xs`,mt:6,"aria-expanded":i,leftSection:i?(0,I.jsx)(ne,{size:14}):(0,I.jsx)(ie,{size:14}),onClick:()=>a(e=>!e),children:[i?`Masquer`:`Voir`,` les `,o.length,` workers`]}),(0,I.jsx)(de,{expanded:i,children:(0,I.jsx)(k,{cols:{base:1,sm:2,lg:3},spacing:`xs`,mt:`xs`,children:o.map(e=>{let t=n(e,{grid:!0}),i=r?.(e);return i?(0,I.jsx)(f,{component:`a`,href:i,style:{textDecoration:`none`,color:`inherit`,display:`block`},children:t},e.instanceId):(0,I.jsx)(f,{children:t},e.instanceId)})})})]})}var q={kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket};function Ge(e){if(!e)return null;let t=e.instances.map(e=>e.process?.cpuPercent).filter(e=>e!=null);return t.length?t.reduce((e,t)=>e+t,0)/t.length:null}function Ke({source:e}){let t=A(e.data),n=Ge(t),r=L(n),i=z(n,60,85);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>(0,I.jsx)(B,{label:`CPU moyen`,value:n==null?null:Math.round(n),unit:`%`,color:i,series:r,sub:`${t.length} workers`}),renderInstance:(e,{grid:t})=>{let n=e.process?.cpuPercent,a=n==null?null:Math.round(n);return t?(0,I.jsx)(H,{pid:e.process?.pid,children:(0,I.jsx)(B,{value:a,unit:`%`,color:z(n,60,85)})}):(0,I.jsx)(B,{label:`CPU`,value:a,unit:`%`,color:i,series:r})},drillTo:()=>`/nodefony/cluster`})}function qe(e){return!e||!e.instances.some(e=>e.process)?null:W(e.instances.reduce((e,t)=>e+(t.process?.heapUsed??0),0))}function Je({source:e}){let t=A(e.data),n=qe(t),r=L(n);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>{let i=t.reduce((e,t)=>e+(t.process?.heapTotal??0),0);return(0,I.jsx)(B,{label:`Heap pod`,value:n,unit:`Mo`,color:`blue`,series:r,sub:`réservé ${W(i)} Mo · ${t.length} workers`})},renderInstance:(e,{grid:t})=>{let n=e.process;return t?(0,I.jsx)(H,{pid:n?.pid,children:(0,I.jsx)(B,{value:n?W(n.heapUsed):null,unit:`Mo`,color:`blue`})}):(0,I.jsx)(B,{label:`Heap`,value:n?W(n.heapUsed):null,unit:`Mo`,color:`blue`,series:r,sub:n?`réservé ${W(n.heapTotal)} Mo`:void 0})},drillTo:()=>`/nodefony/cluster`})}function Ye(e){if(!e)return null;let t=e.instances.map(e=>e.process?.eventLoopMs).filter(e=>e!=null);return t.length?Math.max(...t):null}function Xe({source:e}){let t=A(e.data),n=Ye(t),r=L(n),i=z(n,30,80);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>(0,I.jsx)(B,{label:`Event-loop max`,value:n==null?null:G(n),unit:`ms`,color:i,series:r,sub:`${t.length} workers`}),renderInstance:(e,{grid:t})=>{let n=e.process?.eventLoopMs;return t?(0,I.jsx)(H,{pid:e.process?.pid,children:(0,I.jsx)(B,{value:n==null?null:G(n),unit:`ms`,color:z(n,30,80)})}):(0,I.jsx)(B,{label:`Event-loop`,value:n==null?null:G(n),unit:`ms`,color:i,series:r})},drillTo:()=>`/nodefony/supervision`})}function Ze(e,t){let n=(0,F.useRef)(new Map),[r,i]=(0,F.useState)({});return(0,F.useEffect)(()=>{if(t==null)return;let r={};for(let i of e){let e=i.errors;if(!e)continue;let a=e.errorTotal+e.criticTotal,o=n.current.get(i.instanceId);if(o&&t>o.ts){let e=(t-o.ts)/6e4;e>0&&(r[i.instanceId]=Math.max(0,(a-o.total)/e))}n.current.set(i.instanceId,{ts:t,total:a})}i(r)},[t]),r}function Qe(e,t){let n=e.process;if(!n)return M([]);let r=j(),i=n.heapTotal?n.heapUsed/n.heapTotal*100:null,a=e.orm;return M([{label:`CPU`,value:n.cpuPercent,good:70,crit:100,weight:r.CPU,floor:.2},{label:`Saturation (ELU)`,value:n.eluUtilization*100,good:70,crit:100,weight:r[`Saturation (ELU)`],floor:.2},{label:`Event-loop`,value:n.eventLoopMs,good:50,crit:120,weight:r[`Event-loop`],floor:.2},{label:`Mémoire (heap)`,value:i,good:70,crit:95,weight:r[`Mémoire (heap)`],critical:!0},{label:`Connecteurs`,value:a?a.connectors-a.connected:null,good:0,crit:a?Math.max(1,a.connectors):1,weight:r.Connecteurs,critical:!0},{label:`Erreurs`,value:t??null,good:0,crit:10,weight:r.Erreurs,critical:!0}])}function $e(e,t){let n=null;for(let r of e){let e=Qe(r,t[r.instanceId]);(!n||(e.score??101)<(n.score??101))&&(n=e)}return n??M([])}function et(e){return e>=90?`teal`:e>=75?`green`:e>=50?`yellow`:e>=25?`orange`:`red`}function tt({r:e}){return(0,I.jsxs)(o,{gap:`md`,wrap:`nowrap`,children:[(0,I.jsx)(w,{size:84,thickness:9,roundCaps:!0,sections:[{value:e.score??0,color:e.color}],label:(0,I.jsx)(b,{children:(0,I.jsx)(S,{fw:800,fz:`lg`,c:e.color,style:{fontVariantNumeric:`tabular-nums`},children:e.score??`—`})})}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(x,{color:e.color,variant:`light`,size:`lg`,children:e.label}),e.worst?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,mt:6,children:[`facteur limitant : `,(0,I.jsx)(`b`,{children:e.worst})]}):null]})]})}function nt({r:e}){if(!e.parts.length)return null;let t=e.parts.reduce((e,t)=>e+t.weight,0)||1;return(0,I.jsx)(d,{gap:6,children:e.parts.map(e=>(0,I.jsxs)(`div`,{children:[(0,I.jsxs)(o,{justify:`space-between`,gap:`xs`,wrap:`nowrap`,children:[(0,I.jsxs)(S,{size:`xs`,children:[e.label,e.kind===`fail`?(0,I.jsxs)(S,{span:!0,size:`xs`,c:`dimmed`,children:[` `,`· panne`]}):null]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[e.score,` · `,Math.round(e.weight/t*100),` %`]})]}),(0,I.jsx)(fe,{value:e.score,color:et(e.score),size:`sm`})]},e.label))})}function rt(){return(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`GC & Temps réel non remontés par la sonde cluster — détail complet sur la page Supervision.`})}function it({source:e}){let t=A(e.data),n=Ze(t?.instances??[],t?.ts);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>{let r=$e(t,n);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(tt,{r}),t.length>1?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[`pod = pire des `,t.length,` workers`]}):null,(0,I.jsx)(nt,{r}),(0,I.jsx)(rt,{})]})},renderInstance:(e,{grid:t})=>{let r=Qe(e,n[e.instanceId]);return t?(0,I.jsx)(H,{pid:e.process?.pid,children:(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:r.color,variant:`light`,children:r.label}),(0,I.jsx)(S,{fw:700,style:{fontVariantNumeric:`tabular-nums`},children:r.score??`—`})]})}):(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(tt,{r}),(0,I.jsx)(nt,{r}),(0,I.jsx)(rt,{})]})},drillTo:()=>`/nodefony/supervision`})}function at({source:e}){let t=e.data;return t?(0,I.jsxs)(l,{children:[(0,I.jsx)(C,{k:`Version`,v:t.version,mono:!0}),(0,I.jsx)(C,{k:`Node.js`,v:t.node,mono:!0}),(0,I.jsx)(C,{k:`Plateforme`,v:t.platform,mono:!0}),(0,I.jsx)(C,{k:`PID`,v:String(t.pid),mono:!0}),(0,I.jsx)(C,{k:`Domaine`,v:t.domain,mono:!0}),(0,I.jsx)(C,{k:`Git`,v:`${t.git?.branch??`?`} @ ${t.git?.commit??`?`}`,mono:!0})]}):null}T({id:`system.cpu`,tags:[`systeme`,`cpu`,`kpi`],title:`CPU`,description:`Charge CPU live + courbe (moyenne/max pod en cluster).`,category:`system`,icon:ke,source:q,clusterAware:!0,defaultSpan:4,minSpan:3,render:Ke}),T({id:`system.heap`,tags:[`systeme`,`memoire`,`kpi`],title:`Mémoire (heap)`,description:`Heap utilisé live + courbe (somme pod en cluster).`,category:`system`,icon:Se,source:q,clusterAware:!0,defaultSpan:4,minSpan:3,render:Je}),T({id:`system.eventloop`,tags:[`systeme`,`event-loop`,`kpi`],title:`Event-loop`,description:`Latence de la boucle d'événements live (pire worker en cluster).`,category:`system`,icon:pe,source:q,clusterAware:!0,defaultSpan:4,minSpan:3,render:Xe}),T({id:`system.health`,tags:[`systeme`,`sante`,`indice`],title:`Santé du framework (cluster)`,description:`Indice composite cluster-aware 0-100 (6 sondes : CPU/ELU/loop/heap/connecteurs/erreurs) — pod = pire worker. Version mono détaillée + GC : widget « Santé du framework ».`,category:`system`,icon:be,source:q,clusterAware:!0,defaultSpan:6,minSpan:4,defaultH:7,minH:4,render:it}),T({id:`system.info`,tags:[`systeme`,`identite`,`config`,`panneau`],title:`Identité du serveur`,description:`Version, Node, plateforme, domaine, git (snapshot).`,category:`system`,icon:re,source:{kind:`snapshot`,endpoint:`/nodefony/kernel/api/info`},defaultSpan:6,minSpan:4,render:at});function ot({source:e}){let t=A(e.data),n=R((t?.totals.orm??null)?.queryTotal,t?.ts),r=L(n==null?null:Math.round(n));return(0,I.jsx)(K,{normalized:t,renderSummary:e=>{let t=e.orm;return t?(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(B,{label:`Requêtes / s`,value:n==null?null:Math.round(n),unit:`req/s`,color:`grape`,series:r}),(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`Connecteurs`,value:`${t.connected}/${t.connectors}`}),(0,I.jsx)(V,{label:`Total`,value:t.queryTotal}),(0,I.jsx)(V,{label:`EWMA max`,value:t.maxEwmaMs==null?`—`:t.maxEwmaMs.toFixed(2),unit:`ms`})]})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucun driver ORM sondé.`})},renderInstance:e=>{let t=e.orm;return(0,I.jsx)(H,{pid:e.process?.pid,children:t?(0,I.jsxs)(o,{gap:`md`,children:[(0,I.jsx)(V,{label:`Connecteurs`,value:`${t.connected}/${t.connectors}`}),(0,I.jsx)(V,{label:`Requêtes`,value:t.queryTotal})]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`ORM non sondé`})})},drillTo:()=>`/nodefony/orm`})}T({id:`orm.health`,tags:[`orm`,`orm-debit`,`kpi`],title:`ORM`,description:`Débit requêtes/s + courbe, connecteurs, latence (agrégé pod).`,category:`orm`,icon:Ae,source:{kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},clusterAware:!0,defaultSpan:6,minSpan:4,render:ot});var st=12;function ct(e){if(!e||typeof e!=`object`)return[];let t=e,n=Array.isArray(t.logs)?t.logs:[e],r=[];for(let e of n){let t=ze(e);t&&r.push(t)}return r}function lt({source:e}){let[t,n]=(0,F.useState)([]),r=e.data;return(0,F.useEffect)(()=>{if(!r)return;let e=ct(r);e.length!==0&&n(t=>{let n=[...t,...e];return n.length>st?n.slice(-12):n})},[r]),t.length===0?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`En attente de logs…`}):(0,I.jsx)(d,{gap:1,style:{fontFamily:`ui-monospace, SFMono-Regular, Menlo, monospace`,fontSize:12},children:t.slice().reverse().map((e,t)=>{let n=Re(e.severityName);return(0,I.jsxs)(o,{gap:6,wrap:`nowrap`,align:`flex-start`,style:{padding:`1px 4px`,borderRadius:4,background:n?`var(--mantine-color-red-light)`:void 0},children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,style:{flexShrink:0,fontVariantNumeric:`tabular-nums`,opacity:.7},children:Ie(e.timeStamp)}),(0,I.jsx)(f,{style:{flexShrink:0},children:(0,I.jsx)(Fe,{severity:e.severityName})}),e.moduleName?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,style:{flexShrink:0,maxWidth:90},truncate:!0,children:e.moduleName}):null,(0,I.jsx)(S,{size:`xs`,style:{wordBreak:`break-word`,minWidth:0},children:Be(Le(e))})]},`${e.uid}-${t}`)})})}T({id:`logs.live`,tags:[`logs`,`liste`],title:`Logs (live)`,description:`Flux des derniers logs du serveur (ANSI + sévérités colorées).`,category:`logs`,icon:E,source:{kind:`live`,channel:c.syslog},defaultSpan:6,minSpan:4,render:lt});function ut(e){let t=[];e.write.ringEnabled!==!1&&t.push(`mémoire (ring)`),e.write.sinkEnabled!==!1&&t.push(e.write.sink);for(let n of e.write.transports??[])n.enabled&&t.push(n.name);return t}function dt({source:e}){let n=e.data;if(!n)return null;let r=n.activeDriver,i=r?.capabilities,a=ut(n),s=n.write.streamEnabled!==!1;return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(f,{children:[(0,I.jsxs)(o,{gap:6,mb:4,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`brand`,size:`sm`,radius:`md`,children:(0,I.jsx)(t,{size:14})}),(0,I.jsx)(S,{size:`xs`,tt:`uppercase`,fw:700,c:`dimmed`,children:`Lecture · source consultée`})]}),(0,I.jsxs)(o,{gap:6,wrap:`wrap`,children:[(0,I.jsx)(x,{variant:`light`,color:`brand`,tt:`none`,children:r?.name??`—`}),i?.query?(0,I.jsx)(x,{size:`xs`,variant:`default`,tt:`none`,children:`query`}):null,i?.stream?(0,I.jsx)(x,{size:`xs`,variant:`default`,tt:`none`,children:`stream`}):null,i?.write?(0,I.jsx)(x,{size:`xs`,variant:`default`,tt:`none`,children:`persiste`}):null]})]}),(0,I.jsxs)(f,{children:[(0,I.jsxs)(o,{gap:6,mb:4,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`gray`,size:`sm`,radius:`md`,children:(0,I.jsx)(xe,{size:14})}),(0,I.jsxs)(S,{size:`xs`,tt:`uppercase`,fw:700,c:`dimmed`,children:[`Écriture · fan-out (`,a.length,`)`]})]}),(0,I.jsx)(o,{gap:6,wrap:`wrap`,children:a.length?a.map(e=>(0,I.jsx)(x,{size:`sm`,variant:`light`,color:`teal`,tt:`none`,children:e},e)):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`—`})})]}),(0,I.jsxs)(f,{children:[(0,I.jsxs)(o,{gap:6,mb:4,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`teal`,size:`sm`,radius:`md`,children:(0,I.jsx)(O,{size:14})}),(0,I.jsx)(S,{size:`xs`,tt:`uppercase`,fw:700,c:`dimmed`,children:`Temps réel · diffusion live`})]}),(0,I.jsx)(x,{variant:s?`light`:`outline`,color:s?`teal`:`gray`,tt:`none`,children:s?`nodefony:syslog actif`:`diffusion coupée`})]}),n.cluster?.isCluster?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[`Cluster · worker `,n.cluster.pid,` — vue partielle sauf driver agrégateur.`]}):null]})}T({id:`logs.backplane`,tags:[`logs`,`panneau`],title:`Log Backplane`,description:`Lecture (source consultée) + écriture (fan-out) des logs.`,category:`logs`,icon:E,source:{kind:`snapshot`,endpoint:`/nodefony/syslog/api/backplane`},defaultSpan:6,minSpan:4,render:dt});function ft({source:e}){let t=A(e.data),n=t?.totals??null,r=R(n?.fanoutTotal,t?.ts),i=L(r==null?null:Math.round(r));if(!n)return null;let a=n.backpressure;return(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(B,{label:`Fan-out / s`,value:r==null?null:Math.round(r),unit:`msg/s`,color:`cyan`,series:i}),(0,I.jsxs)(k,{cols:2,spacing:`xs`,children:[(0,I.jsx)(V,{label:`Canaux`,value:n.channelCount}),(0,I.jsx)(V,{label:`Connexions`,value:n.connectionCount}),(0,I.jsx)(V,{label:`Backpressure`,value:W(a.totalBufferedAmount),unit:`Mo`}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:`Consommateurs lents`}),(0,I.jsx)(x,{color:a.slowConsumers>0?`orange`:`teal`,variant:`light`,size:`lg`,children:a.slowConsumers})]})]})]})}T({id:`realtime.hub`,tags:[`realtime`,`panneau`],title:`Socket Nodefony`,description:`Débit fan-out/s + courbe, canaux, connexions, backpressure.`,category:`realtime`,icon:O,source:{kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},defaultSpan:6,minSpan:4,render:ft});function pt({source:e}){let t=A(e.data);return t?!t.cluster||t.instances.length<=1?(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:`blue`,variant:`light`,size:`lg`,children:`Mono-process`}),(0,I.jsxs)(S,{size:`sm`,c:`dimmed`,children:[`1 process. Lancez `,(0,I.jsx)(`code`,{children:`nodefony cluster -w N`}),` pour répartir sur les cœurs.`]})]}):(0,I.jsx)(k,{cols:{base:1,sm:2,lg:3},spacing:`xs`,children:t.instances.map(e=>{let t=e.process,n=(0,I.jsx)(H,{pid:t?.pid,children:(0,I.jsxs)(o,{gap:`md`,children:[(0,I.jsx)(V,{label:`CPU`,value:t?.cpuPercent==null?`—`:Math.round(t.cpuPercent),unit:`%`}),(0,I.jsx)(V,{label:`Heap`,value:t?W(t.heapUsed):`—`,unit:`Mo`})]})});return t?.pid?(0,I.jsx)(`a`,{href:`/nodefony/cluster`,style:{textDecoration:`none`,color:`inherit`},children:n},e.instanceId):(0,I.jsx)(`div`,{children:n},e.instanceId)})}):null}T({id:`cluster.workers`,tags:[`cluster`,`panneau`],title:`Workers (cluster)`,description:`Une tuile par worker (CPU/heap). Mono-process : 1 seule.`,category:`cluster`,icon:ke,source:{kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},clusterAware:!0,defaultSpan:8,minSpan:4,render:pt});var J=`/nodefony/kernel/api/info`,mt={kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},ht=[{id:`development`,label:`Développement`,cmd:`nodefony development`,color:`teal`},{id:`production`,label:`Production`,cmd:`nodefony production`,color:`blue`},{id:`cluster`,label:`Cluster`,cmd:`nodefony cluster -w N`,color:`grape`}];function gt({source:e,ctx:t}){let n=e.data;if(!n)return null;let r=t.cluster?`cluster`:n.environment===`development`?`development`:`production`;return(0,I.jsx)(d,{gap:6,children:ht.map(e=>(0,I.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,p:`xs`,style:{border:`1px solid ${e.id===r?`var(--mantine-color-${e.color}-5)`:`var(--mantine-color-default-border)`}`,borderRadius:8},children:[(0,I.jsxs)(`div`,{style:{minWidth:0},children:[(0,I.jsx)(S,{fw:600,size:`sm`,children:e.label}),(0,I.jsx)(v,{children:e.cmd})]}),e.id===r?(0,I.jsx)(x,{color:e.color,variant:`filled`,children:`actuel`}):null]},e.id))})}function _t({source:e}){let t=e.data;return t?t.available?(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:`teal`,variant:`filled`,size:`lg`,children:`Vite / HMR actif`}),(0,I.jsxs)(S,{size:`sm`,c:`dimmed`,children:[`v`,t.vite??`—`]})]}),(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`Port`,value:t.primary.port??`—`}),(0,I.jsx)(V,{label:`Bundles`,value:t.bundles.length}),(0,I.jsx)(V,{label:`Protocole`,value:t.primary.https?`https`:`http`})]})]}):(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(x,{color:`gray`,variant:`light`,size:`lg`,children:`Bundle figé`}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Vite ne tourne pas (prod / cluster) — l'UI vient du bundle compilé.`})]}):null}function vt({source:e}){let t=e.data;if(!t)return null;let n=t.git;return n?.branch?(0,I.jsxs)(d,{gap:6,children:[(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(ye,{size:18}),(0,I.jsx)(S,{fw:700,ff:`monospace`,children:n.branch})]}),(0,I.jsxs)(o,{gap:6,children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:`Commit`}),(0,I.jsx)(v,{children:n.commit??`—`})]})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Hors dépôt git (ou worktree non détecté).`})}function yt({source:e}){let t=e.data;return t?(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(B,{label:`Uptime`,value:U(t.uptime),color:`teal`}),(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{variant:`light`,color:`gray`,children:t.environment}),t.debug?(0,I.jsx)(x,{variant:`light`,color:`orange`,children:`debug`}):null]})]}):null}function bt(e){let t=new Map;for(let n of e.instances)for(let e of n.channels){let n=t.get(e.channel)??{sub:0,msg:0};n.sub+=e.subscribers,n.msg+=e.messages,t.set(e.channel,n)}return[...t.entries()].map(([e,t])=>({channel:e,sub:t.sub,msg:t.msg})).sort((e,t)=>t.msg-e.msg)}function xt({source:e}){let t=A(e.data);if(!t)return null;let n=bt(t);return n.length===0?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucun canal actif.`}):(0,I.jsx)(d,{gap:2,children:n.slice(0,8).map(e=>(0,I.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,gap:`xs`,children:[(0,I.jsx)(S,{size:`xs`,ff:`monospace`,truncate:!0,style:{minWidth:0},children:e.channel}),(0,I.jsxs)(o,{gap:`xs`,wrap:`nowrap`,style:{flexShrink:0},children:[(0,I.jsxs)(x,{size:`xs`,variant:`light`,color:`blue`,children:[e.sub,` abo`]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[e.msg,` msg`]})]})]},e.channel))})}function St(e){let t=[];for(let n of e.instances){let e=n.process,r=n.process?.pid?` (PID ${n.process.pid})`:``;if(e){e.cpuPercent>=90?t.push({level:`critical`,text:`CPU ${Math.round(e.cpuPercent)} %${r}`}):e.cpuPercent>=70&&t.push({level:`warning`,text:`CPU élevé ${Math.round(e.cpuPercent)} %${r}`}),e.eventLoopMs>=100?t.push({level:`critical`,text:`Event-loop ${Math.round(e.eventLoopMs)} ms${r}`}):e.eventLoopMs>=50&&t.push({level:`warning`,text:`Event-loop ${Math.round(e.eventLoopMs)} ms${r}`});let n=e.heapTotal?e.heapUsed/e.heapTotal*100:0;n>=90?t.push({level:`critical`,text:`Heap ${Math.round(n)} %${r}`}):n>=75&&t.push({level:`warning`,text:`Heap ${Math.round(n)} %${r}`})}n.orm&&n.orm.connected<n.orm.connectors&&t.push({level:`warning`,text:`Connecteur ORM déconnecté${r}`})}return e.totals.backpressure.slowConsumers>0&&t.push({level:`warning`,text:`${e.totals.backpressure.slowConsumers} consommateur(s) lent(s)`}),t}function Ct({source:e}){let t=A(e.data);if(!t)return null;let n=St(t);return n.length===0?(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(ve,{size:20,color:`var(--mantine-color-teal-6)`}),(0,I.jsx)(S,{fw:600,children:`Tout va bien`}),(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucune alerte active.`})]}):(0,I.jsx)(d,{gap:6,children:n.map((e,t)=>(0,I.jsx)(ce,{variant:`light`,color:e.level===`critical`?`red`:`orange`,icon:(0,I.jsx)(oe,{size:16}),p:`xs`,children:e.text},t))})}T({id:`runtime.modes`,tags:[`runtime`,`config`,`panneau`],title:`Modes de lancement`,description:`Les 3 modes CLI (dev / prod / cluster), le courant surligné.`,category:`runtime`,icon:Ce,source:{kind:`snapshot`,endpoint:J},clusterAware:!0,defaultSpan:6,minSpan:4,render:gt}),T({id:`runtime.vite`,tags:[`runtime`,`config`,`kpi`],title:`Vite / HMR`,description:`État du serveur Vite (dev) ou bundle figé (prod/cluster).`,category:`runtime`,icon:se,source:{kind:`snapshot`,endpoint:`/nodefony/frontend/api/vite`},defaultSpan:4,minSpan:3,render:_t}),T({id:`system.git`,tags:[`config`,`identite`,`kpi`],title:`Git`,description:`Branche et commit courant (GitService core, sans spawn).`,category:`system`,icon:ye,source:{kind:`snapshot`,endpoint:J},defaultSpan:4,minSpan:3,render:vt}),T({id:`system.uptime`,tags:[`systeme`,`identite`,`kpi`],title:`Uptime`,description:`Durée de fonctionnement + environnement + mode debug.`,category:`system`,icon:ee,source:{kind:`snapshot`,endpoint:J},defaultSpan:4,minSpan:3,render:yt}),T({id:`realtime.channels`,tags:[`realtime`,`liste`],title:`Canaux temps réel`,description:`Canaux actifs du hub : abonnés et messages (agrégé pod).`,category:`realtime`,icon:O,source:mt,clusterAware:!0,defaultSpan:6,minSpan:4,render:xt}),T({id:`supervision.alerts`,tags:[`systeme`,`sante`,`erreurs`,`liste`],title:`Alertes`,description:`Alertes santé live (CPU/event-loop/heap/ORM/backpressure).`,category:`system`,icon:oe,source:mt,clusterAware:!0,defaultSpan:6,minSpan:4,render:Ct});function wt(e){if(!e)return null;let t=e.memory.heapLimit&&e.memory.heapLimit>0?e.memory.heapLimit:e.memory.heapTotal;return t>0?Math.round(e.memory.heapUsed/t*100):null}function Tt(){let[e,t]=(0,F.useState)(()=>j()),n=e=>{try{localStorage.setItem(Pe,JSON.stringify(e))}catch{}};return{weights:e,setWeight:(e,r)=>t(t=>{let i={...t,[e]:r};return n(i),i}),reset:()=>{n({...N}),t({...N})}}}function Y(e,t){return e[t]??N[t]??1}function Et(e){let t=(0,F.useRef)(null),[n,r]=(0,F.useState)(null);return(0,F.useEffect)(()=>{e!=null&&(t.current!=null&&e>t.current&&r(e-t.current),t.current=e)},[e]),n}function Dt(e,t,n=60){let r=(0,F.useRef)([]),i=(0,F.useRef)(null),[a,o]=(0,F.useState)(0);return(0,F.useEffect)(()=>{if(t==null||i.current===t)return;i.current=t;let a=[...r.current,e??0];r.current=a.length>n?a.slice(-n):a,o(r.current.reduce((e,t)=>e+t,0))},[t,e,n]),a}function Ot({onData:e}){let t=D(c.ormHealth);return(0,F.useEffect)(()=>{Array.isArray(t)&&e({up:t.filter(e=>e.connected).length,total:t.length})},[t,e]),null}var kt=Object.keys(N);function At(e){return e>=75?`teal`:e>=50?`yellow`:e>=25?`orange`:`red`}function jt({r:e}){return(0,I.jsx)(w,{size:120,thickness:12,roundCaps:!0,sections:[{value:e.score??0,color:e.color}],label:(0,I.jsx)(b,{children:(0,I.jsxs)(d,{gap:0,align:`center`,children:[(0,I.jsx)(S,{fw:800,fz:26,lh:1,c:e.color,style:{fontVariantNumeric:`tabular-nums`},children:e.score??`—`}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`/ 100`})]})})})}function Mt({weights:e,setWeight:t,reset:n}){let i=kt.reduce((t,n)=>t+Y(e,n),0)||1;return(0,I.jsxs)(r,{width:300,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,I.jsx)(r.Target,{children:(0,I.jsx)(s,{variant:`subtle`,color:`gray`,"aria-label":`Régler la pondération de l'indice`,children:(0,I.jsx)(he,{size:18})})}),(0,I.jsxs)(r.Dropdown,{children:[(0,I.jsxs)(o,{justify:`space-between`,mb:6,children:[(0,I.jsx)(S,{size:`sm`,fw:600,children:`Pondération de l'indice`}),(0,I.jsx)(y,{size:`compact-xs`,variant:`subtle`,color:`gray`,onClick:n,children:`Par défaut`})]}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,mb:`sm`,children:`Glissez le poids de chaque sonde (0 = exclue). Partagé avec la page Supervision.`}),(0,I.jsx)(d,{gap:`sm`,children:kt.map(n=>(0,I.jsxs)(`div`,{children:[(0,I.jsxs)(o,{justify:`space-between`,gap:4,mb:2,children:[(0,I.jsx)(S,{size:`xs`,children:n}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`×`,Y(e,n).toFixed(1),` ·`,` `,Math.round(Y(e,n)/i*100),`%`]})]}),(0,I.jsx)(ue,{size:`sm`,min:0,max:3,step:.1,value:Y(e,n),onChange:e=>t(n,e),label:e=>e.toFixed(1)})]},n))})]})]})}var Nt=[[`≥90 Excellent`,`teal`],[`≥75 Bon`,`green`],[`≥50 À surveiller`,`yellow`],[`≥25 Dégradé`,`orange`],[`<25 Critique`,`red`]];function Pt(){return(0,I.jsx)(o,{gap:`md`,wrap:`wrap`,children:Nt.map(([e,t])=>(0,I.jsxs)(o,{gap:4,wrap:`nowrap`,children:[(0,I.jsx)(`span`,{style:{width:10,height:10,borderRadius:2,background:`var(--mantine-color-${t}-6)`}}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:e})]},e))})}function Ft({r:e}){if(!e.parts.length)return null;let t=e.parts.reduce((e,t)=>e+t.weight,0)||1;return(0,I.jsx)(o,{gap:`xs`,wrap:`wrap`,children:e.parts.map(e=>(0,I.jsx)(a,{withArrow:!0,label:e.kind===`fail`?`Panne possible (×${e.weight} · ${Math.round(e.weight/t*100)} %) : à son seuil critique, tire l'indice à 0.`:`Saturation (×${e.weight} · ${Math.round(e.weight/t*100)} %) : dégrade le score mais planchée — jamais « Critique » seule.`,children:(0,I.jsxs)(x,{size:`sm`,variant:`light`,leftSection:e.kind===`fail`?`⚠`:`🛡`,color:At(e.score),style:{cursor:`help`,fontVariantNumeric:`tabular-nums`},children:[e.label,` `,e.score,` · `,Math.round(e.weight/t*100),`%`]})},e.label))})}function It({source:e,ctx:t}){let n=e.data,r=Tt(),{weights:i}=r,a=Et(n?.ts),s=Dt(n?.errCount,n?.ts),[c,l]=(0,F.useState)(null),u=(0,F.useCallback)(e=>{l(e)},[]),f=wt(n),p=n?.gc??null,m=p&&a?p.pauseMs/a*100:null,h=t.live?c:null,g=M([{label:`CPU`,value:n?.cpuPercent??null,good:70,crit:100,weight:Y(i,`CPU`),floor:.2},{label:`Saturation (ELU)`,value:n?.elu?n.elu.utilization*100:null,good:70,crit:100,weight:Y(i,`Saturation (ELU)`),floor:.2},{label:`Event-loop`,value:n?.eventLoopMs??null,good:50,crit:120,weight:Y(i,`Event-loop`),floor:.2},{label:`Mémoire (heap)`,value:f,good:70,crit:95,weight:Y(i,`Mémoire (heap)`),critical:!0},{label:`GC overhead`,value:m,good:1,crit:10,weight:Y(i,`GC overhead`),floor:.25},{label:`Erreurs`,value:t.live?s:null,good:0,crit:10,weight:Y(i,`Erreurs`),critical:!0},{label:`Connecteurs`,value:h?h.total-h.up:null,good:0,crit:h?Math.max(1,h.total):1,weight:Y(i,`Connecteurs`),critical:!0}]);return(0,I.jsxs)(o,{wrap:`nowrap`,align:`flex-start`,gap:`xl`,children:[t.live?(0,I.jsx)(Ot,{onData:u}):null,(0,I.jsx)(jt,{r:g}),(0,I.jsxs)(d,{gap:8,style:{flex:1,minWidth:0},children:[(0,I.jsxs)(o,{gap:`xs`,wrap:`wrap`,children:[(0,I.jsx)(x,{color:g.color,size:`lg`,variant:`light`,children:g.label}),g.score==null?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`En attente de mesures…`}):g.worst&&g.score<100?(0,I.jsxs)(S,{size:`sm`,c:`dimmed`,children:[`limité par : `,(0,I.jsx)(`b`,{children:g.worst})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`tous les indicateurs au vert.`}),(0,I.jsx)(Mt,{...r})]}),(0,I.jsx)(Pt,{}),(0,I.jsx)(Ft,{r:g}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Indice mono-process (Derringer-Suich). Temps réel & multi-cluster : à venir.`})]})]})}var Lt=`var(--mantine-color-teal-6)`,X=`var(--mantine-color-blue-6)`;function Rt(e,t,n,r=60){let[i,a]=(0,F.useState)([]),o=(0,F.useRef)(null);return(0,F.useEffect)(()=>{e!=null&&t!=null&&n!=null&&o.current!==e&&(o.current=e,a(e=>{let i=[...e,{a:t,b:n}];return i.length>r?i.slice(-r):i}))},[e,t,n,r]),i}function zt({source:e}){let t=e.data,n=t?.cpuPercent??null,r=wt(t),i=Rt(t?.ts,n,r);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`CPU`,value:n==null?`—`:Math.round(n),unit:`%`}),(0,I.jsx)(V,{label:`Mémoire`,value:r??`—`,unit:`%`})]}),i.length>=2?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m,{height:150,max:100,threshold:80,format:e=>`${Math.round(e)}%`,series:[{data:i.map(e=>e.a),color:Lt,label:`CPU %`},{data:i.map(e=>e.b),color:X,label:`Heap %`}]}),(0,I.jsxs)(o,{gap:`lg`,children:[(0,I.jsx)(_,{color:Lt,label:`CPU (% d'un cœur)`}),(0,I.jsx)(_,{color:X,label:`Heap (% du plafond V8)`})]})]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Active le temps réel pour voir la corrélation CPU / mémoire.`})]})}function Bt({source:e}){let t=e.data,n=Et(t?.ts),r=t?.gc??null,i=L(r?r.pauseMs:null,60),a=r&&n?r.pauseMs/n*100:null,s=r&&r.count?r.pauseMs/r.count:null,c=a==null?`gray`:a>5?`red`:a>1?`orange`:`teal`;return r?(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`md`,children:[(0,I.jsxs)(x,{variant:`light`,color:c,children:[a==null?`—`:`${a.toFixed(1)} %`,` overhead`]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[r.pauseMs.toFixed(0),` ms de pause / intervalle`]})]}),i.length>=2?(0,I.jsx)(m,{height:130,threshold:50,format:e=>`${e.toFixed(1)} ms`,series:[{data:i,color:`var(--mantine-color-orange-6)`,label:`Pause GC (ms)`}]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Active le temps réel pour la courbe.`}),(0,I.jsxs)(o,{gap:`xl`,wrap:`wrap`,children:[(0,I.jsx)(V,{label:`Cycles`,value:r.count}),(0,I.jsx)(V,{label:`Majeurs`,value:r.major}),(0,I.jsx)(V,{label:`Mineurs`,value:r.minor}),(0,I.jsx)(V,{label:`Pause / cycle`,value:s==null?`—`:s.toFixed(1),unit:`ms`})]})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`GC non remonté (active le temps réel ; nécessite la sonde process riche).`})}var Vt=[`var(--mantine-color-yellow-6)`,`var(--mantine-color-blue-6)`,`var(--mantine-color-teal-6)`,`var(--mantine-color-grape-6)`,`var(--mantine-color-orange-6)`,`var(--mantine-color-cyan-6)`];function Ht(e){return Vt[e%Vt.length]}function Ut(e,t=60){let n=(0,F.useRef)(null),[r,i]=(0,F.useState)({}),[a,o]=(0,F.useState)([]);return(0,F.useEffect)(()=>{if(!e||!Array.isArray(e.connectors))return;let r={};for(let t of e.connectors)r[t.connector]=t.total;let a=n.current;if(a&&e.ts>a.ts){let n=(e.ts-a.ts)/1e3,r={};if(n>0)for(let t of e.connectors){let e=a.totals[t.connector];e!=null&&(r[t.connector]=Math.max(0,(t.total-e)/n))}i(r),o(e=>{let n=[...e,r];return n.length>t?n.slice(-t):n})}n.current={ts:e.ts,totals:r}},[e,t]),{rates:r,hist:a}}function Wt({source:e}){let t=e.data,{rates:n,hist:r}=Ut(t);if(t&&t.enabled===!1)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Flux ORM désactivé (sonde OFF). Activer avec NF_ORM_FLOW=1.`});let i=(t?.connectors??[]).filter(e=>e.total>0);if(i.length===0)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucune requête ORM observée.`});let a=i.map((e,t)=>({data:r.map(t=>t[e.connector]??0),color:Ht(t),label:e.connector})),s=Object.values(n).reduce((e,t)=>e+t,0);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(V,{label:`Débit total`,value:Math.round(s),unit:`req/s`}),r.length>=2?(0,I.jsx)(m,{height:150,format:e=>`${Math.round(e)}/s`,series:a}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Active le temps réel pour la courbe par connecteur.`}),(0,I.jsx)(o,{gap:`lg`,wrap:`wrap`,children:i.map((e,t)=>(0,I.jsxs)(o,{gap:6,wrap:`nowrap`,children:[(0,I.jsx)(_,{color:Ht(t),label:e.connector}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[Math.round(n[e.connector]??0),`/s`]})]},e.connector))})]})}var Z={kind:`hybrid`,endpoint:`/nodefony/studio/api/stats`,channel:c.supervision};T({id:`supervision.health`,tags:[`systeme`,`sante`,`indice`],title:`Santé du framework`,description:`Indice composite 0-100 (CPU/ELU/loop/heap/GC/erreurs/connecteurs) + détail par sonde + poids réglables. Mono-process (comme la page).`,category:`system`,icon:be,source:Z,defaultSpan:12,minSpan:6,defaultH:6,minH:4,render:It}),T({id:`supervision.correlation`,tags:[`systeme`,`cpu`,`memoire`,`graphe`],title:`Corrélation CPU / Mémoire`,description:`CPU % et Mémoire % sur la même échelle 0-100 (un pic mémoire → pression GC → CPU).`,category:`system`,icon:p,source:Z,defaultSpan:6,minSpan:4,defaultH:5,minH:3,render:zt}),T({id:`supervision.gc`,tags:[`systeme`,`gc`,`graphe`],title:`Garbage Collector`,description:`Pause GC (stop-the-world) par intervalle : overhead, cycles, majeurs/mineurs.`,category:`system`,icon:_e,source:Z,defaultSpan:12,minSpan:6,defaultH:6,minH:4,render:Bt}),T({id:`orm.flow`,tags:[`orm`,`orm-debit`,`graphe`],title:`Débit ORM par connecteur`,description:`Requêtes/s dérivées PAR connecteur (courbe multi-séries). Per-instance (canal nodefony:orm:flow).`,category:`orm`,icon:Ve,source:{kind:`hybrid`,endpoint:`/nodefony/orm/api/flow`,channel:c.ormFlow},defaultSpan:6,minSpan:4,defaultH:5,minH:3,render:Wt});var Gt=1024**2,Q=e=>`${(e/Gt).toFixed(1)} Mo`,Kt={new_space:`Jeune génération`,old_space:`Vieille génération`,code_space:`Code compilé`,map_space:`Maps (formes d'objets)`,large_object_space:`Gros objets`,code_large_object_space:`Gros code`,new_large_object_space:`Gros objets jeunes`,read_only_space:`Lecture seule`,shared_space:`Partagé`};function qt(e){return Kt[e]??e.replace(/_/g,` `)}function Jt({source:e}){let t=e.data,n=(t?.heapSpaces??[]).filter(e=>e.size>0).sort((e,t)=>t.used-e.used);return n.length?(0,I.jsxs)(d,{gap:`sm`,children:[t?(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`Heap utilisé`,value:Q(t.memory.heapUsed)}),(0,I.jsx)(V,{label:`RSS`,value:Q(t.memory.rss)})]}):null,(0,I.jsx)(d,{gap:8,children:n.map(e=>{let t=e.size>0?Math.round(e.used/e.size*100):0;return(0,I.jsxs)(`div`,{children:[(0,I.jsxs)(o,{justify:`space-between`,gap:`xs`,wrap:`nowrap`,children:[(0,I.jsx)(S,{size:`xs`,truncate:!0,children:qt(e.name)}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[Q(e.used),` / `,Q(e.size)]})]}),(0,I.jsx)(fe,{value:t,color:t>=90?`red`:t>=70?`orange`:`teal`,size:`sm`})]},e.name)})})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Espaces V8 non remontés (active le temps réel ; sonde process riche).`})}var Yt={TTYWrap:{label:`Terminal`,desc:`Flux terminal (stdout / stderr / stdin).`},TCPSocketWrap:{label:`Socket TCP`,desc:`Connexion TCP active (HTTP entrant, WebSocket, client sortant…).`},TCPServerWrap:{label:`Serveur TCP`,desc:`Serveur TCP en écoute (serveurs HTTP/WS de Nodefony).`},PipeWrap:{label:`Pipe / IPC`,desc:`Tube nommé ou canal IPC inter-process.`},Timeout:{label:`Timer`,desc:`setTimeout / setInterval programmé (non unref).`},Immediate:{label:`Immediate`,desc:`setImmediate en attente au prochain tick.`},FSReqCallback:{label:`I/O fichier`,desc:`Opération fichier asynchrone en cours.`},FSEvent:{label:`Watch FS`,desc:`Surveillance d'un fichier/dossier (fs.watch).`},MessagePort:{label:`MessagePort`,desc:`Canal worker_threads / MessageChannel.`},Worker:{label:`Worker`,desc:`Thread worker (worker_threads) actif.`},ChildProcess:{label:`Process enfant`,desc:`Process fils (spawn / fork).`},SignalWrap:{label:`Signal POSIX`,desc:`Écoute d'un signal (SIGINT, SIGTERM…).`},HTTPParser:{label:`Parser HTTP`,desc:`Analyseur de message HTTP en cours.`},TLSWrap:{label:`TLS`,desc:`Connexion chiffrée TLS/SSL (HTTPS, WSS).`},UDPWrap:{label:`Socket UDP`,desc:`Socket UDP active (datagrammes).`},ZlibStream:{label:`Compression`,desc:`Flux (dé)compression zlib / gzip / brotli.`}};function Xt(e){return Yt[e]??{label:e,desc:`Ressource interne Node.js « ${e} » maintenant la boucle active.`}}function Zt({source:e}){let t=e.data?.handles;if(!t)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Ressources actives non remontées (active le temps réel).`});let n=Object.entries(t.byType).sort((e,t)=>t[1]-e[1]);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(V,{label:`Ressources actives`,value:t.total}),(0,I.jsx)(d,{gap:4,children:n.map(([e,t])=>{let n=Xt(e);return(0,I.jsxs)(o,{justify:`space-between`,gap:`xs`,wrap:`nowrap`,children:[(0,I.jsx)(a,{label:n.desc,withArrow:!0,multiline:!0,w:260,children:(0,I.jsx)(S,{size:`xs`,style:{cursor:`help`},truncate:!0,children:n.label})}),(0,I.jsx)(x,{size:`sm`,variant:`light`,color:`gray`,style:{fontVariantNumeric:`tabular-nums`},children:t})]},e)})})]})}function Qt(e,t,n=60){let r=(0,F.useRef)([]),i=(0,F.useRef)(null),[a,o]=(0,F.useState)(0);return(0,F.useEffect)(()=>{if(t==null||i.current===t)return;i.current=t;let a=[...r.current,e??0];r.current=a.length>n?a.slice(-n):a,o(r.current.reduce((e,t)=>e+t,0))},[t,e,n]),a}function $t({source:e,ctx:t}){let n=e.data,r=Qt(n?.errCount,n?.ts),i=L(t.live?n?.errCount??0:null,60);if(!t.live)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Active le temps réel pour compter les erreurs (ERROR + CRITIC).`});let a=r>=10?`red`:r>0?`orange`:`teal`;return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`xl`,align:`flex-end`,children:[(0,I.jsx)(V,{label:`Erreurs / min`,value:r}),(0,I.jsx)(x,{variant:`light`,color:a,children:r===0?`aucune erreur`:r>=10?`élevé`:`à surveiller`})]}),i.length>=2?(0,I.jsx)(m,{height:130,format:e=>String(Math.round(e)),series:[{data:i,color:`var(--mantine-color-${a}-6)`,label:`Erreurs/intervalle`}]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`En attente des premières mesures…`}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`ERROR + CRITIC sur ~60 s (comptés serveur). Détail des messages : bloc « Logs (live) ».`})]})}var $={kind:`hybrid`,endpoint:`/nodefony/studio/api/stats`,channel:c.supervision};T({id:`supervision.memory`,title:`Mémoire (espaces V8)`,description:`Répartition du heap V8 par espace (jeune/vieille génération, code…) — barres used/size.`,category:`system`,icon:ge,tags:[`systeme`,`memoire`,`panneau`],source:$,defaultSpan:6,minSpan:4,defaultH:6,minH:4,render:Jt}),T({id:`supervision.handles`,title:`Ressources actives`,description:`Handles Node qui maintiennent la boucle active (sockets, timers, fichiers…), par type.`,category:`system`,icon:Ee,tags:[`systeme`,`handles`,`liste`],source:$,defaultSpan:6,minSpan:4,defaultH:6,minH:4,render:Zt}),T({id:`supervision.errors`,title:`Erreurs`,description:`Erreurs/min (ERROR + CRITIC) comptées serveur + courbe. Messages : bloc Logs.`,category:`system`,icon:we,tags:[`erreurs`,`graphe`],source:$,defaultSpan:6,minSpan:4,defaultH:5,minH:3,render:$t});var en=`/nodefony/security/api/audit/events?limit=100`;function tn(e){return Ne.find(t=>t.value===e)?.color??`gray`}function nn({source:e}){let t=e.data;if(!t)return null;let n=t.items??[],r=n.filter(e=>e.outcome===`denied`).length,i=n.filter(e=>e.outcome===`failure`).length;return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`xl`,wrap:`nowrap`,align:`flex-start`,children:[(0,I.jsx)(B,{label:`Événements`,value:t.total??0,color:`grape`}),(0,I.jsx)(B,{label:`Refus`,value:r,color:r>0?`red`:`teal`,sub:`${i} échec(s) récents`})]}),(0,I.jsxs)(d,{gap:4,children:[n.slice(0,5).map(e=>(0,I.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,gap:`xs`,children:[(0,I.jsx)(S,{size:`xs`,ff:`monospace`,truncate:!0,style:{minWidth:0},children:e.action}),(0,I.jsx)(x,{size:`xs`,variant:`light`,color:tn(e.outcome),children:e.outcome})]},e.id)),n.length===0?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Aucun événement d'audit sur la fenêtre.`}):null]})]})}T({id:`security.audit`,title:`Activité de sécurité`,description:`Journal d'audit : volume d'événements + refus récents (auth, RBAC, CSRF, WS…).`,category:`security`,icon:Oe,tags:[`securite`,`kpi`,`liste`],source:{kind:`snapshot`,endpoint:en},defaultSpan:5,minSpan:4,render:nn});function rn({source:e}){let t=e.data?.user;if(!t)return null;let n=t.roles??[];return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`sm`,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`brand`,size:42,radius:`xl`,children:(0,I.jsx)(P,{size:26})}),(0,I.jsxs)(`div`,{style:{minWidth:0},children:[(0,I.jsx)(S,{fw:700,size:`lg`,truncate:!0,children:t.username}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[`ID `,String(t.id)]})]})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(S,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:700,mb:4,children:`Mes rôles`}),n.length?(0,I.jsx)(o,{gap:4,children:n.map(e=>(0,I.jsx)(x,{variant:`light`,radius:`sm`,children:e},e))}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucun rôle attribué.`})]})]})}function an({source:e}){let t=e.data?.keys??[],n=t.filter(e=>Me(e)===`active`).length;return(0,I.jsxs)(o,{gap:`xl`,wrap:`nowrap`,align:`flex-start`,children:[(0,I.jsx)(B,{label:`Clés actives`,value:n,color:`teal`}),(0,I.jsx)(B,{label:`Total`,value:t.length,color:`gray`,sub:t.length?`incl. expirées / révoquées`:`aucune clé`})]})}function on({source:e}){let t=e.data?.items??[],n=e.data?.total??t.length;return(0,I.jsxs)(o,{gap:`xl`,wrap:`nowrap`,align:`flex-start`,children:[(0,I.jsx)(B,{label:`Sessions actives`,value:t.length,color:`teal`}),(0,I.jsx)(B,{label:`Total`,value:n,color:`gray`,sub:n>t.length?`fenêtre tronquée`:`mes appareils / onglets`})]})}T({id:`account.profile`,title:`Mon profil`,description:`Mon identité et mes rôles (session courante).`,category:`account`,icon:P,tags:[`compte`,`identite`,`panneau`],source:{kind:`snapshot`,endpoint:`/nodefony/security/api/auth/me`},defaultSpan:5,minSpan:4,render:rn}),T({id:`account.apikeys`,title:`Mes clés API`,description:`Nombre de mes clés d'API actives (jetons personnels).`,category:`account`,icon:Te,tags:[`compte`,`kpi`],source:{kind:`snapshot`,endpoint:`/nodefony/security/api/keys`},defaultSpan:4,minSpan:3,render:an}),T({id:`account.sessions`,title:`Mes sessions`,description:`Mes sessions actives (appareils / onglets connectés).`,category:`account`,icon:He,tags:[`compte`,`kpi`],source:{kind:`snapshot`,endpoint:`/nodefony/http/api/sessions/mine`},defaultSpan:4,minSpan:3,render:on});function sn({channel:e,onData:t}){let n=D(e);return(0,F.useEffect)(()=>{n!=null&&t(n)},[n,t]),null}function cn(e,t){let n=me(),r=e.kind===`live`?null:e.endpoint,i=e.kind===`snapshot`?null:e.channel,a=(0,F.useCallback)(()=>r?n.api.getAbsolute(r):Promise.resolve(null),[n,r]),o=je(a),[s,c]=(0,F.useState)(null),l=!!i&&t;(0,F.useEffect)(()=>{l||c(null)},[l]);let u=l&&s!=null,d=u?s:o.data;return{source:{data:d,loading:o.loading&&d==null,error:o.error,fromLive:u,reload:o.reload},channel:i,liveOn:l,liveOnlyOff:e.kind===`live`&&!t,setLiveData:c}}function ln({def:e,state:t,ctx:n,span:r,container:a}){let o=e.render,s=e.source.kind===`live`?null:e.source.endpoint;return(0,I.jsxs)(I.Fragment,{children:[t.liveOn&&t.channel?(0,I.jsx)(sn,{channel:t.channel,onData:t.setLiveData}):null,(0,I.jsx)(i,{loading:t.source.loading,error:t.source.error,empty:t.liveOnlyOff||t.source.data==null,emptyMessage:t.liveOnlyOff?`Active le temps réel pour ce bloc.`:`Aucune donnée.`,onRetry:s?t.source.reload:void 0,minHeight:a===`widget`?40:80,children:(0,I.jsx)(o,{source:t.source,ctx:n,span:r})})]})}export{cn as n,ln as t};
|
|
1
|
+
import{k as e}from"./src-Dvwdl2PF.js";import{$ as t,Et as n,In as r,K as i,Kt as a,Mn as o,Pn as s,Pt as c,R as l,Rt as u,Ut as d,Wn as f,_t as p,a as m,d as h,di as g,dt as ee,f as te,ht as ne,i as _,it as re,mt as ie,nn as v,on as y,or as ae,rn as b,sn as x,vn as S,wt as oe,xt as se,yn as ce,z as C,zn as le}from"./ui-Dy8y0zPl.js";import{t as ue}from"./Slider-BoAxGS1L.js";import{t as de}from"./Collapse-BdzfO7PU.js";import{t as fe}from"./Progress-ctKVb0y-.js";import{t as w}from"./RingProgress-CHMtGKds.js";import{O as pe,c as me,h as T}from"./stores-DIccV-P5.js";import{t as he}from"./IconAdjustmentsHorizontal-BIF-EgYG.js";import{n as ge,t as _e}from"./IconRecycle-DABPgUVk.js";import{t as ve}from"./IconCircleCheck-vTUIJ1YM.js";import{t as ye}from"./IconGitBranch-ClVGboyH.js";import{t as be}from"./IconHeartRateMonitor-upfL_t5M.js";import{t as xe}from"./IconPencil-B-pO6nfU.js";import{t as Se}from"./IconStack2-DA4YUbMC.js";import{t as Ce}from"./IconTerminal2-CWTGfiEn.js";import{$ as we,H as Te,J as E,L as Ee,M as De,O as Oe,X as ke,Y as Ae,ct as D,et as O,pt as k,y as je}from"./index-wfxUl83u.js";import{n as A}from"./realtimeHealth-CEJDxl45.js";import{p as Me}from"./apiKeysModel-C53i4AfO.js";import{r as Ne}from"./auditModel-CxUfDlvX.js";import{i as j,n as Pe,r as M,t as N}from"./health-D8eXYj6Q.js";import{a as Fe,d as Ie,g as Le,m as Re,v as ze,x as Be}from"./LogVisuals-BGUY8-_R.js";var Ve=n(`outline`,`chart-histogram`,`ChartHistogram`,[[`path`,{d:`M3 3v18h18`,key:`svg-0`}],[`path`,{d:`M20 18v3`,key:`svg-1`}],[`path`,{d:`M16 16v5`,key:`svg-2`}],[`path`,{d:`M12 13v8`,key:`svg-3`}],[`path`,{d:`M8 16v5`,key:`svg-4`}],[`path`,{d:`M3 11c6 0 5 -5 9 -5s3 5 9 5`,key:`svg-5`}]]),He=n(`outline`,`devices`,`Devices`,[[`path`,{d:`M13 9a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-6a1 1 0 0 1 -1 -1v-10`,key:`svg-0`}],[`path`,{d:`M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9`,key:`svg-1`}],[`path`,{d:`M16 9h2`,key:`svg-2`}]]),P=n(`outline`,`user-circle`,`UserCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0`,key:`svg-0`}],[`path`,{d:`M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0`,key:`svg-1`}],[`path`,{d:`M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855`,key:`svg-2`}]]),F=e(g(),1),I=ae();function L(e,t=40){let[n,r]=(0,F.useState)([]);return(0,F.useEffect)(()=>{e==null||Number.isNaN(e)||r(n=>{let r=[...n,e];return r.length>t?r.slice(-t):r})},[e,t]),n}function R(e,t){let n=(0,F.useRef)(null),[r,i]=(0,F.useState)(null);return(0,F.useEffect)(()=>{if(e==null||t==null)return;let r=n.current;if(r&&t>r.ts){let n=(t-r.ts)/1e3;n>0&&i(Math.max(0,(e-r.total)/n))}n.current={total:e,ts:t}},[e,t]),r}function z(e,t,n){return e==null?`gray`:e>=n?`red`:e>=t?`orange`:`teal`}function Ue(e){return`var(--mantine-color-${e}-6)`}function B({label:e,value:t,unit:n,color:r=`teal`,series:i,sub:a}){(0,F.useEffect)(te,[]);let s=t??`—`;return(0,I.jsxs)(`div`,{children:[e?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:e}):null,(0,I.jsxs)(o,{gap:6,align:`flex-end`,wrap:`nowrap`,children:[(0,I.jsx)(h,{value:s,children:(0,I.jsx)(S,{fw:800,fz:26,lh:1.1,c:r,style:{fontVariantNumeric:`tabular-nums`},children:s})}),n?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,style:{marginBottom:3},children:n}):null]}),a?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,mt:2,children:a}):null,i&&i.length>=2?(0,I.jsx)(f,{mt:6,children:(0,I.jsx)(m,{series:[{data:i,color:Ue(r),label:e??``}],height:46})}):null]})}function V({label:e,value:t,unit:n}){return(0,I.jsxs)(`div`,{children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:e}),(0,I.jsxs)(o,{gap:4,align:`baseline`,wrap:`nowrap`,children:[(0,I.jsx)(S,{fw:700,fz:`lg`,style:{fontVariantNumeric:`tabular-nums`},children:t}),n?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:n}):null]})]})}function H({pid:e,children:t}){return(0,I.jsxs)(le,{withBorder:!0,radius:`md`,p:`xs`,children:[e?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,mb:4,children:[`PID `,e]}):null,t]})}function U(e){if(e<60)return`${Math.round(e)}s`;if(e<3600)return`${Math.floor(e/60)}min`;let t=Math.floor(e/3600),n=Math.floor(e%3600/60);return n?`${t}h${n}`:`${t}h`}function W(e){return Math.round(e/1024/1024)}function G(e){return e>=100?Math.round(e).toString():e.toFixed(1)}function We({source:e,ctx:t}){let n=e.data;if(!n)return null;let r=t.cluster?`Cluster`:n.environment===`development`?`Développement`:`Production`,i=t.cluster?`grape`:n.environment===`development`?`teal`:`blue`;return(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:i,variant:`light`,size:`lg`,children:r}),(0,I.jsx)(x,{variant:`light`,color:`gray`,children:t.cluster?`${t.instanceCount} workers`:`1 process`}),(0,I.jsx)(x,{variant:`outline`,color:`gray`,children:n.environment})]}),(0,I.jsxs)(k,{cols:2,spacing:`xs`,children:[(0,I.jsx)(V,{label:`Node`,value:n.node}),(0,I.jsx)(V,{label:`Uptime`,value:U(n.uptime)}),(0,I.jsx)(V,{label:`Modules`,value:n.modules}),(0,I.jsx)(V,{label:`PID`,value:n.pid})]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,ff:`monospace`,children:[n.git?.branch??`?`,` @ `,n.git?.commit??`?`]})]})}T({id:`runtime.mode`,tags:[`runtime`,`config`,`kpi`],title:`Mode & lancement`,description:`Comment ce serveur tourne : environnement, topologie, workers.`,category:`runtime`,icon:De,source:{kind:`snapshot`,endpoint:`/nodefony/kernel/api/info`},clusterAware:!0,defaultSpan:6,minSpan:4,render:We});function K({normalized:e,renderSummary:t,renderInstance:n,drillTo:r}){let[i,a]=(0,F.useState)(!1);if(!e)return null;let{instances:o,totals:s,cluster:c}=e;return!c||o.length<=1?(0,I.jsx)(I.Fragment,{children:o[0]?n(o[0],{grid:!1}):null}):(0,I.jsxs)(f,{children:[t(s,o),(0,I.jsxs)(y,{variant:`subtle`,color:`grape`,size:`compact-xs`,mt:6,"aria-expanded":i,leftSection:i?(0,I.jsx)(ne,{size:14}):(0,I.jsx)(ie,{size:14}),onClick:()=>a(e=>!e),children:[i?`Masquer`:`Voir`,` les `,o.length,` workers`]}),(0,I.jsx)(de,{expanded:i,children:(0,I.jsx)(k,{cols:{base:1,sm:2,lg:3},spacing:`xs`,mt:`xs`,children:o.map(e=>{let t=n(e,{grid:!0}),i=r?.(e);return i?(0,I.jsx)(f,{component:`a`,href:i,style:{textDecoration:`none`,color:`inherit`,display:`block`},children:t},e.instanceId):(0,I.jsx)(f,{children:t},e.instanceId)})})})]})}var q={kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket};function Ge(e){if(!e)return null;let t=e.instances.map(e=>e.process?.cpuPercent).filter(e=>e!=null);return t.length?t.reduce((e,t)=>e+t,0)/t.length:null}function Ke({source:e}){let t=A(e.data),n=Ge(t),r=L(n),i=z(n,60,85);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>(0,I.jsx)(B,{label:`CPU moyen`,value:n==null?null:Math.round(n),unit:`%`,color:i,series:r,sub:`${t.length} workers`}),renderInstance:(e,{grid:t})=>{let n=e.process?.cpuPercent,a=n==null?null:Math.round(n);return t?(0,I.jsx)(H,{pid:e.process?.pid,children:(0,I.jsx)(B,{value:a,unit:`%`,color:z(n,60,85)})}):(0,I.jsx)(B,{label:`CPU`,value:a,unit:`%`,color:i,series:r})},drillTo:()=>`/nodefony/cluster`})}function qe(e){return!e||!e.instances.some(e=>e.process)?null:W(e.instances.reduce((e,t)=>e+(t.process?.heapUsed??0),0))}function Je({source:e}){let t=A(e.data),n=qe(t),r=L(n);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>{let i=t.reduce((e,t)=>e+(t.process?.heapTotal??0),0);return(0,I.jsx)(B,{label:`Heap pod`,value:n,unit:`Mo`,color:`blue`,series:r,sub:`réservé ${W(i)} Mo · ${t.length} workers`})},renderInstance:(e,{grid:t})=>{let n=e.process;return t?(0,I.jsx)(H,{pid:n?.pid,children:(0,I.jsx)(B,{value:n?W(n.heapUsed):null,unit:`Mo`,color:`blue`})}):(0,I.jsx)(B,{label:`Heap`,value:n?W(n.heapUsed):null,unit:`Mo`,color:`blue`,series:r,sub:n?`réservé ${W(n.heapTotal)} Mo`:void 0})},drillTo:()=>`/nodefony/cluster`})}function Ye(e){if(!e)return null;let t=e.instances.map(e=>e.process?.eventLoopMs).filter(e=>e!=null);return t.length?Math.max(...t):null}function Xe({source:e}){let t=A(e.data),n=Ye(t),r=L(n),i=z(n,30,80);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>(0,I.jsx)(B,{label:`Event-loop max`,value:n==null?null:G(n),unit:`ms`,color:i,series:r,sub:`${t.length} workers`}),renderInstance:(e,{grid:t})=>{let n=e.process?.eventLoopMs;return t?(0,I.jsx)(H,{pid:e.process?.pid,children:(0,I.jsx)(B,{value:n==null?null:G(n),unit:`ms`,color:z(n,30,80)})}):(0,I.jsx)(B,{label:`Event-loop`,value:n==null?null:G(n),unit:`ms`,color:i,series:r})},drillTo:()=>`/nodefony/supervision`})}function Ze(e,t){let n=(0,F.useRef)(new Map),[r,i]=(0,F.useState)({});return(0,F.useEffect)(()=>{if(t==null)return;let r={};for(let i of e){let e=i.errors;if(!e)continue;let a=e.errorTotal+e.criticTotal,o=n.current.get(i.instanceId);if(o&&t>o.ts){let e=(t-o.ts)/6e4;e>0&&(r[i.instanceId]=Math.max(0,(a-o.total)/e))}n.current.set(i.instanceId,{ts:t,total:a})}i(r)},[t]),r}function Qe(e,t){let n=e.process;if(!n)return M([]);let r=j(),i=n.heapTotal?n.heapUsed/n.heapTotal*100:null,a=e.orm;return M([{label:`CPU`,value:n.cpuPercent,good:70,crit:100,weight:r.CPU,floor:.2},{label:`Saturation (ELU)`,value:n.eluUtilization*100,good:70,crit:100,weight:r[`Saturation (ELU)`],floor:.2},{label:`Event-loop`,value:n.eventLoopMs,good:50,crit:120,weight:r[`Event-loop`],floor:.2},{label:`Mémoire (heap)`,value:i,good:70,crit:95,weight:r[`Mémoire (heap)`],critical:!0},{label:`Connecteurs`,value:a?a.connectors-a.connected:null,good:0,crit:a?Math.max(1,a.connectors):1,weight:r.Connecteurs,critical:!0},{label:`Erreurs`,value:t??null,good:0,crit:10,weight:r.Erreurs,critical:!0}])}function $e(e,t){let n=null;for(let r of e){let e=Qe(r,t[r.instanceId]);(!n||(e.score??101)<(n.score??101))&&(n=e)}return n??M([])}function et(e){return e>=90?`teal`:e>=75?`green`:e>=50?`yellow`:e>=25?`orange`:`red`}function tt({r:e}){return(0,I.jsxs)(o,{gap:`md`,wrap:`nowrap`,children:[(0,I.jsx)(w,{size:84,thickness:9,roundCaps:!0,sections:[{value:e.score??0,color:e.color}],label:(0,I.jsx)(b,{children:(0,I.jsx)(S,{fw:800,fz:`lg`,c:e.color,style:{fontVariantNumeric:`tabular-nums`},children:e.score??`—`})})}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(x,{color:e.color,variant:`light`,size:`lg`,children:e.label}),e.worst?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,mt:6,children:[`facteur limitant : `,(0,I.jsx)(`b`,{children:e.worst})]}):null]})]})}function nt({r:e}){if(!e.parts.length)return null;let t=e.parts.reduce((e,t)=>e+t.weight,0)||1;return(0,I.jsx)(d,{gap:6,children:e.parts.map(e=>(0,I.jsxs)(`div`,{children:[(0,I.jsxs)(o,{justify:`space-between`,gap:`xs`,wrap:`nowrap`,children:[(0,I.jsxs)(S,{size:`xs`,children:[e.label,e.kind===`fail`?(0,I.jsxs)(S,{span:!0,size:`xs`,c:`dimmed`,children:[` `,`· panne`]}):null]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[e.score,` · `,Math.round(e.weight/t*100),` %`]})]}),(0,I.jsx)(fe,{value:e.score,color:et(e.score),size:`sm`})]},e.label))})}function rt(){return(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`GC & Temps réel non remontés par la sonde cluster — détail complet sur la page Supervision.`})}function it({source:e}){let t=A(e.data),n=Ze(t?.instances??[],t?.ts);return(0,I.jsx)(K,{normalized:t,renderSummary:(e,t)=>{let r=$e(t,n);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(tt,{r}),t.length>1?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[`pod = pire des `,t.length,` workers`]}):null,(0,I.jsx)(nt,{r}),(0,I.jsx)(rt,{})]})},renderInstance:(e,{grid:t})=>{let r=Qe(e,n[e.instanceId]);return t?(0,I.jsx)(H,{pid:e.process?.pid,children:(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:r.color,variant:`light`,children:r.label}),(0,I.jsx)(S,{fw:700,style:{fontVariantNumeric:`tabular-nums`},children:r.score??`—`})]})}):(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(tt,{r}),(0,I.jsx)(nt,{r}),(0,I.jsx)(rt,{})]})},drillTo:()=>`/nodefony/supervision`})}function at({source:e}){let t=e.data;return t?(0,I.jsxs)(l,{children:[(0,I.jsx)(C,{k:`Version`,v:t.version,mono:!0}),(0,I.jsx)(C,{k:`Node.js`,v:t.node,mono:!0}),(0,I.jsx)(C,{k:`Plateforme`,v:t.platform,mono:!0}),(0,I.jsx)(C,{k:`PID`,v:String(t.pid),mono:!0}),(0,I.jsx)(C,{k:`Domaine`,v:t.domain,mono:!0}),(0,I.jsx)(C,{k:`Git`,v:`${t.git?.branch??`?`} @ ${t.git?.commit??`?`}`,mono:!0})]}):null}T({id:`system.cpu`,tags:[`systeme`,`cpu`,`kpi`],title:`CPU`,description:`Charge CPU live + courbe (moyenne/max pod en cluster).`,category:`system`,icon:ke,source:q,clusterAware:!0,defaultSpan:4,minSpan:3,render:Ke}),T({id:`system.heap`,tags:[`systeme`,`memoire`,`kpi`],title:`Mémoire (heap)`,description:`Heap utilisé live + courbe (somme pod en cluster).`,category:`system`,icon:Se,source:q,clusterAware:!0,defaultSpan:4,minSpan:3,render:Je}),T({id:`system.eventloop`,tags:[`systeme`,`event-loop`,`kpi`],title:`Event-loop`,description:`Latence de la boucle d'événements live (pire worker en cluster).`,category:`system`,icon:pe,source:q,clusterAware:!0,defaultSpan:4,minSpan:3,render:Xe}),T({id:`system.health`,tags:[`systeme`,`sante`,`indice`],title:`Santé du framework (cluster)`,description:`Indice composite cluster-aware 0-100 (6 sondes : CPU/ELU/loop/heap/connecteurs/erreurs) — pod = pire worker. Version mono détaillée + GC : widget « Santé du framework ».`,category:`system`,icon:be,source:q,clusterAware:!0,defaultSpan:6,minSpan:4,defaultH:7,minH:4,render:it}),T({id:`system.info`,tags:[`systeme`,`identite`,`config`,`panneau`],title:`Identité du serveur`,description:`Version, Node, plateforme, domaine, git (snapshot).`,category:`system`,icon:re,source:{kind:`snapshot`,endpoint:`/nodefony/kernel/api/info`},defaultSpan:6,minSpan:4,render:at});function ot({source:e}){let t=A(e.data),n=R((t?.totals.orm??null)?.queryTotal,t?.ts),r=L(n==null?null:Math.round(n));return(0,I.jsx)(K,{normalized:t,renderSummary:e=>{let t=e.orm;return t?(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(B,{label:`Requêtes / s`,value:n==null?null:Math.round(n),unit:`req/s`,color:`grape`,series:r}),(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`Connecteurs`,value:`${t.connected}/${t.connectors}`}),(0,I.jsx)(V,{label:`Total`,value:t.queryTotal}),(0,I.jsx)(V,{label:`EWMA max`,value:t.maxEwmaMs==null?`—`:t.maxEwmaMs.toFixed(2),unit:`ms`})]})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucun driver ORM sondé.`})},renderInstance:e=>{let t=e.orm;return(0,I.jsx)(H,{pid:e.process?.pid,children:t?(0,I.jsxs)(o,{gap:`md`,children:[(0,I.jsx)(V,{label:`Connecteurs`,value:`${t.connected}/${t.connectors}`}),(0,I.jsx)(V,{label:`Requêtes`,value:t.queryTotal})]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`ORM non sondé`})})},drillTo:()=>`/nodefony/orm`})}T({id:`orm.health`,tags:[`orm`,`orm-debit`,`kpi`],title:`ORM`,description:`Débit requêtes/s + courbe, connecteurs, latence (agrégé pod).`,category:`orm`,icon:Ae,source:{kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},clusterAware:!0,defaultSpan:6,minSpan:4,render:ot});var st=12;function ct(e){if(!e||typeof e!=`object`)return[];let t=e,n=Array.isArray(t.logs)?t.logs:[e],r=[];for(let e of n){let t=ze(e);t&&r.push(t)}return r}function lt({source:e}){let[t,n]=(0,F.useState)([]),r=e.data;return(0,F.useEffect)(()=>{if(!r)return;let e=ct(r);e.length!==0&&n(t=>{let n=[...t,...e];return n.length>st?n.slice(-12):n})},[r]),t.length===0?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`En attente de logs…`}):(0,I.jsx)(d,{gap:1,style:{fontFamily:`ui-monospace, SFMono-Regular, Menlo, monospace`,fontSize:12},children:t.slice().reverse().map((e,t)=>{let n=Re(e.severityName);return(0,I.jsxs)(o,{gap:6,wrap:`nowrap`,align:`flex-start`,style:{padding:`1px 4px`,borderRadius:4,background:n?`var(--mantine-color-red-light)`:void 0},children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,style:{flexShrink:0,fontVariantNumeric:`tabular-nums`,opacity:.7},children:Ie(e.timeStamp)}),(0,I.jsx)(f,{style:{flexShrink:0},children:(0,I.jsx)(Fe,{severity:e.severityName})}),e.moduleName?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,style:{flexShrink:0,maxWidth:90},truncate:!0,children:e.moduleName}):null,(0,I.jsx)(S,{size:`xs`,style:{wordBreak:`break-word`,minWidth:0},children:Be(Le(e))})]},`${e.uid}-${t}`)})})}T({id:`logs.live`,tags:[`logs`,`liste`],title:`Logs (live)`,description:`Flux des derniers logs du serveur (ANSI + sévérités colorées).`,category:`logs`,icon:E,source:{kind:`live`,channel:c.syslog},defaultSpan:6,minSpan:4,render:lt});function ut(e){let t=[];e.write.ringEnabled!==!1&&t.push(`mémoire (ring)`),e.write.sinkEnabled!==!1&&t.push(e.write.sink);for(let n of e.write.transports??[])n.enabled&&t.push(n.name);return t}function dt({source:e}){let n=e.data;if(!n)return null;let r=n.activeDriver,i=r?.capabilities,a=ut(n),s=n.write.streamEnabled!==!1;return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(f,{children:[(0,I.jsxs)(o,{gap:6,mb:4,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`brand`,size:`sm`,radius:`md`,children:(0,I.jsx)(t,{size:14})}),(0,I.jsx)(S,{size:`xs`,tt:`uppercase`,fw:700,c:`dimmed`,children:`Lecture · source consultée`})]}),(0,I.jsxs)(o,{gap:6,wrap:`wrap`,children:[(0,I.jsx)(x,{variant:`light`,color:`brand`,tt:`none`,children:r?.name??`—`}),i?.query?(0,I.jsx)(x,{size:`xs`,variant:`default`,tt:`none`,children:`query`}):null,i?.stream?(0,I.jsx)(x,{size:`xs`,variant:`default`,tt:`none`,children:`stream`}):null,i?.write?(0,I.jsx)(x,{size:`xs`,variant:`default`,tt:`none`,children:`persiste`}):null]})]}),(0,I.jsxs)(f,{children:[(0,I.jsxs)(o,{gap:6,mb:4,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`gray`,size:`sm`,radius:`md`,children:(0,I.jsx)(xe,{size:14})}),(0,I.jsxs)(S,{size:`xs`,tt:`uppercase`,fw:700,c:`dimmed`,children:[`Écriture · fan-out (`,a.length,`)`]})]}),(0,I.jsx)(o,{gap:6,wrap:`wrap`,children:a.length?a.map(e=>(0,I.jsx)(x,{size:`sm`,variant:`light`,color:`teal`,tt:`none`,children:e},e)):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`—`})})]}),(0,I.jsxs)(f,{children:[(0,I.jsxs)(o,{gap:6,mb:4,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`teal`,size:`sm`,radius:`md`,children:(0,I.jsx)(O,{size:14})}),(0,I.jsx)(S,{size:`xs`,tt:`uppercase`,fw:700,c:`dimmed`,children:`Temps réel · diffusion live`})]}),(0,I.jsx)(x,{variant:s?`light`:`outline`,color:s?`teal`:`gray`,tt:`none`,children:s?`nodefony:syslog actif`:`diffusion coupée`})]}),n.cluster?.isCluster?(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[`Cluster · worker `,n.cluster.pid,` — vue partielle sauf driver agrégateur.`]}):null]})}T({id:`logs.backplane`,tags:[`logs`,`panneau`],title:`Log Backplane`,description:`Lecture (source consultée) + écriture (fan-out) des logs.`,category:`logs`,icon:E,source:{kind:`snapshot`,endpoint:`/nodefony/syslog/api/backplane`},defaultSpan:6,minSpan:4,render:dt});function ft({source:e}){let t=A(e.data),n=t?.totals??null,r=R(n?.fanoutTotal,t?.ts),i=L(r==null?null:Math.round(r));if(!n)return null;let a=n.backpressure;return(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(B,{label:`Fan-out / s`,value:r==null?null:Math.round(r),unit:`msg/s`,color:`cyan`,series:i}),(0,I.jsxs)(k,{cols:2,spacing:`xs`,children:[(0,I.jsx)(V,{label:`Canaux`,value:n.channelCount}),(0,I.jsx)(V,{label:`Connexions`,value:n.connectionCount}),(0,I.jsx)(V,{label:`Backpressure`,value:W(a.totalBufferedAmount),unit:`Mo`}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:`Consommateurs lents`}),(0,I.jsx)(x,{color:a.slowConsumers>0?`orange`:`teal`,variant:`light`,size:`lg`,children:a.slowConsumers})]})]})]})}T({id:`realtime.hub`,tags:[`realtime`,`panneau`],title:`Socket Nodefony`,description:`Débit fan-out/s + courbe, canaux, connexions, backpressure.`,category:`realtime`,icon:O,source:{kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},defaultSpan:6,minSpan:4,render:ft});function pt({source:e}){let t=A(e.data);return t?!t.cluster||t.instances.length<=1?(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:`blue`,variant:`light`,size:`lg`,children:`Mono-process`}),(0,I.jsxs)(S,{size:`sm`,c:`dimmed`,children:[`1 process. Lancez `,(0,I.jsx)(`code`,{children:`nodefony cluster -w N`}),` pour répartir sur les cœurs.`]})]}):(0,I.jsx)(k,{cols:{base:1,sm:2,lg:3},spacing:`xs`,children:t.instances.map(e=>{let t=e.process,n=(0,I.jsx)(H,{pid:t?.pid,children:(0,I.jsxs)(o,{gap:`md`,children:[(0,I.jsx)(V,{label:`CPU`,value:t?.cpuPercent==null?`—`:Math.round(t.cpuPercent),unit:`%`}),(0,I.jsx)(V,{label:`Heap`,value:t?W(t.heapUsed):`—`,unit:`Mo`})]})});return t?.pid?(0,I.jsx)(`a`,{href:`/nodefony/cluster`,style:{textDecoration:`none`,color:`inherit`},children:n},e.instanceId):(0,I.jsx)(`div`,{children:n},e.instanceId)})}):null}T({id:`cluster.workers`,tags:[`cluster`,`panneau`],title:`Workers (cluster)`,description:`Une tuile par worker (CPU/heap). Mono-process : 1 seule.`,category:`cluster`,icon:ke,source:{kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},clusterAware:!0,defaultSpan:8,minSpan:4,render:pt});var J=`/nodefony/kernel/api/info`,mt={kind:`hybrid`,endpoint:`/nodefony/realtime/api/health`,channel:c.socket},ht=[{id:`development`,label:`Développement`,cmd:`nodefony development`,color:`teal`},{id:`production`,label:`Production`,cmd:`nodefony production`,color:`blue`},{id:`cluster`,label:`Cluster`,cmd:`nodefony cluster -w N`,color:`grape`}];function gt({source:e,ctx:t}){let n=e.data;if(!n)return null;let r=t.cluster?`cluster`:n.environment===`development`?`development`:`production`;return(0,I.jsx)(d,{gap:6,children:ht.map(e=>(0,I.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,p:`xs`,style:{border:`1px solid ${e.id===r?`var(--mantine-color-${e.color}-5)`:`var(--mantine-color-default-border)`}`,borderRadius:8},children:[(0,I.jsxs)(`div`,{style:{minWidth:0},children:[(0,I.jsx)(S,{fw:600,size:`sm`,children:e.label}),(0,I.jsx)(v,{children:e.cmd})]}),e.id===r?(0,I.jsx)(x,{color:e.color,variant:`filled`,children:`actuel`}):null]},e.id))})}function _t({source:e}){let t=e.data;return t?t.available?(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{color:`teal`,variant:`filled`,size:`lg`,children:`Vite / HMR actif`}),(0,I.jsxs)(S,{size:`sm`,c:`dimmed`,children:[`v`,t.vite??`—`]})]}),(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`Port`,value:t.primary.port??`—`}),(0,I.jsx)(V,{label:`Bundles`,value:t.bundles.length}),(0,I.jsx)(V,{label:`Protocole`,value:t.primary.https?`https`:`http`})]})]}):(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(x,{color:`gray`,variant:`light`,size:`lg`,children:`Bundle figé`}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Vite ne tourne pas (prod / cluster) — l'UI vient du bundle compilé.`})]}):null}function vt({source:e}){let t=e.data;if(!t)return null;let n=t.git;return n?.branch?(0,I.jsxs)(d,{gap:6,children:[(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(ye,{size:18}),(0,I.jsx)(S,{fw:700,ff:`monospace`,children:n.branch})]}),(0,I.jsxs)(o,{gap:6,children:[(0,I.jsx)(S,{size:`xs`,c:`dimmed`,tt:`uppercase`,fw:700,children:`Commit`}),(0,I.jsx)(v,{children:n.commit??`—`})]})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Hors dépôt git (ou worktree non détecté).`})}function yt({source:e}){let t=e.data;return t?(0,I.jsxs)(d,{gap:`xs`,children:[(0,I.jsx)(B,{label:`Uptime`,value:U(t.uptime),color:`teal`}),(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(x,{variant:`light`,color:`gray`,children:t.environment}),t.debug?(0,I.jsx)(x,{variant:`light`,color:`orange`,children:`debug`}):null]})]}):null}function bt(e){let t=new Map;for(let n of e.instances)for(let e of n.channels){let n=t.get(e.channel)??{sub:0,msg:0};n.sub+=e.subscribers,n.msg+=e.messages,t.set(e.channel,n)}return[...t.entries()].map(([e,t])=>({channel:e,sub:t.sub,msg:t.msg})).sort((e,t)=>t.msg-e.msg)}function xt({source:e}){let t=A(e.data);if(!t)return null;let n=bt(t);return n.length===0?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucun canal actif.`}):(0,I.jsx)(d,{gap:2,children:n.slice(0,8).map(e=>(0,I.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,gap:`xs`,children:[(0,I.jsx)(S,{size:`xs`,ff:`monospace`,truncate:!0,style:{minWidth:0},children:e.channel}),(0,I.jsxs)(o,{gap:`xs`,wrap:`nowrap`,style:{flexShrink:0},children:[(0,I.jsxs)(x,{size:`xs`,variant:`light`,color:`blue`,children:[e.sub,` abo`]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[e.msg,` msg`]})]})]},e.channel))})}function St(e){let t=[];for(let n of e.instances){let e=n.process,r=n.process?.pid?` (PID ${n.process.pid})`:``;if(e){e.cpuPercent>=90?t.push({level:`critical`,text:`CPU ${Math.round(e.cpuPercent)} %${r}`}):e.cpuPercent>=70&&t.push({level:`warning`,text:`CPU élevé ${Math.round(e.cpuPercent)} %${r}`}),e.eventLoopMs>=100?t.push({level:`critical`,text:`Event-loop ${Math.round(e.eventLoopMs)} ms${r}`}):e.eventLoopMs>=50&&t.push({level:`warning`,text:`Event-loop ${Math.round(e.eventLoopMs)} ms${r}`});let n=e.heapTotal?e.heapUsed/e.heapTotal*100:0;n>=90?t.push({level:`critical`,text:`Heap ${Math.round(n)} %${r}`}):n>=75&&t.push({level:`warning`,text:`Heap ${Math.round(n)} %${r}`})}n.orm&&n.orm.connected<n.orm.connectors&&t.push({level:`warning`,text:`Connecteur ORM déconnecté${r}`})}return e.totals.backpressure.slowConsumers>0&&t.push({level:`warning`,text:`${e.totals.backpressure.slowConsumers} consommateur(s) lent(s)`}),t}function Ct({source:e}){let t=A(e.data);if(!t)return null;let n=St(t);return n.length===0?(0,I.jsxs)(o,{gap:`xs`,children:[(0,I.jsx)(ve,{size:20,color:`var(--mantine-color-teal-6)`}),(0,I.jsx)(S,{fw:600,children:`Tout va bien`}),(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucune alerte active.`})]}):(0,I.jsx)(d,{gap:6,children:n.map((e,t)=>(0,I.jsx)(ce,{variant:`light`,color:e.level===`critical`?`red`:`orange`,icon:(0,I.jsx)(oe,{size:16}),p:`xs`,children:e.text},t))})}T({id:`runtime.modes`,tags:[`runtime`,`config`,`panneau`],title:`Modes de lancement`,description:`Les 3 modes CLI (dev / prod / cluster), le courant surligné.`,category:`runtime`,icon:Ce,source:{kind:`snapshot`,endpoint:J},clusterAware:!0,defaultSpan:6,minSpan:4,render:gt}),T({id:`runtime.vite`,tags:[`runtime`,`config`,`kpi`],title:`Vite / HMR`,description:`État du serveur Vite (dev) ou bundle figé (prod/cluster).`,category:`runtime`,icon:se,source:{kind:`snapshot`,endpoint:`/nodefony/frontend/api/vite`},defaultSpan:4,minSpan:3,render:_t}),T({id:`system.git`,tags:[`config`,`identite`,`kpi`],title:`Git`,description:`Branche et commit courant (GitService core, sans spawn).`,category:`system`,icon:ye,source:{kind:`snapshot`,endpoint:J},defaultSpan:4,minSpan:3,render:vt}),T({id:`system.uptime`,tags:[`systeme`,`identite`,`kpi`],title:`Uptime`,description:`Durée de fonctionnement + environnement + mode debug.`,category:`system`,icon:ee,source:{kind:`snapshot`,endpoint:J},defaultSpan:4,minSpan:3,render:yt}),T({id:`realtime.channels`,tags:[`realtime`,`liste`],title:`Canaux temps réel`,description:`Canaux actifs du hub : abonnés et messages (agrégé pod).`,category:`realtime`,icon:O,source:mt,clusterAware:!0,defaultSpan:6,minSpan:4,render:xt}),T({id:`supervision.alerts`,tags:[`systeme`,`sante`,`erreurs`,`liste`],title:`Alertes`,description:`Alertes santé live (CPU/event-loop/heap/ORM/backpressure).`,category:`system`,icon:oe,source:mt,clusterAware:!0,defaultSpan:6,minSpan:4,render:Ct});function wt(e){if(!e)return null;let t=e.memory.heapLimit&&e.memory.heapLimit>0?e.memory.heapLimit:e.memory.heapTotal;return t>0?Math.round(e.memory.heapUsed/t*100):null}function Tt(){let[e,t]=(0,F.useState)(()=>j()),n=e=>{try{localStorage.setItem(Pe,JSON.stringify(e))}catch{}};return{weights:e,setWeight:(e,r)=>t(t=>{let i={...t,[e]:r};return n(i),i}),reset:()=>{n({...N}),t({...N})}}}function Y(e,t){return e[t]??N[t]??1}function Et(e){let t=(0,F.useRef)(null),[n,r]=(0,F.useState)(null);return(0,F.useEffect)(()=>{e!=null&&(t.current!=null&&e>t.current&&r(e-t.current),t.current=e)},[e]),n}function Dt(e,t,n=60){let r=(0,F.useRef)([]),i=(0,F.useRef)(null),[a,o]=(0,F.useState)(0);return(0,F.useEffect)(()=>{if(t==null||i.current===t)return;i.current=t;let a=[...r.current,e??0];r.current=a.length>n?a.slice(-n):a,o(r.current.reduce((e,t)=>e+t,0))},[t,e,n]),a}function Ot({onData:e}){let t=D(c.ormHealth);return(0,F.useEffect)(()=>{Array.isArray(t)&&e({up:t.filter(e=>e.connected).length,total:t.length})},[t,e]),null}var kt=Object.keys(N);function At(e){return e>=75?`teal`:e>=50?`yellow`:e>=25?`orange`:`red`}function jt({r:e}){return(0,I.jsx)(w,{size:120,thickness:12,roundCaps:!0,sections:[{value:e.score??0,color:e.color}],label:(0,I.jsx)(b,{children:(0,I.jsxs)(d,{gap:0,align:`center`,children:[(0,I.jsx)(S,{fw:800,fz:26,lh:1,c:e.color,style:{fontVariantNumeric:`tabular-nums`},children:e.score??`—`}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`/ 100`})]})})})}function Mt({weights:e,setWeight:t,reset:n}){let i=kt.reduce((t,n)=>t+Y(e,n),0)||1;return(0,I.jsxs)(r,{width:300,position:`bottom-end`,withArrow:!0,shadow:`md`,children:[(0,I.jsx)(r.Target,{children:(0,I.jsx)(s,{variant:`subtle`,color:`gray`,"aria-label":`Régler la pondération de l'indice`,children:(0,I.jsx)(he,{size:18})})}),(0,I.jsxs)(r.Dropdown,{children:[(0,I.jsxs)(o,{justify:`space-between`,mb:6,children:[(0,I.jsx)(S,{size:`sm`,fw:600,children:`Pondération de l'indice`}),(0,I.jsx)(y,{size:`compact-xs`,variant:`subtle`,color:`gray`,onClick:n,children:`Par défaut`})]}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,mb:`sm`,children:`Glissez le poids de chaque sonde (0 = exclue). Partagé avec la page Supervision.`}),(0,I.jsx)(d,{gap:`sm`,children:kt.map(n=>(0,I.jsxs)(`div`,{children:[(0,I.jsxs)(o,{justify:`space-between`,gap:4,mb:2,children:[(0,I.jsx)(S,{size:`xs`,children:n}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[`×`,Y(e,n).toFixed(1),` ·`,` `,Math.round(Y(e,n)/i*100),`%`]})]}),(0,I.jsx)(ue,{size:`sm`,min:0,max:3,step:.1,value:Y(e,n),onChange:e=>t(n,e),label:e=>e.toFixed(1)})]},n))})]})]})}var Nt=[[`≥90 Excellent`,`teal`],[`≥75 Bon`,`green`],[`≥50 À surveiller`,`yellow`],[`≥25 Dégradé`,`orange`],[`<25 Critique`,`red`]];function Pt(){return(0,I.jsx)(o,{gap:`md`,wrap:`wrap`,children:Nt.map(([e,t])=>(0,I.jsxs)(o,{gap:4,wrap:`nowrap`,children:[(0,I.jsx)(`span`,{style:{width:10,height:10,borderRadius:2,background:`var(--mantine-color-${t}-6)`}}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:e})]},e))})}function Ft({r:e}){if(!e.parts.length)return null;let t=e.parts.reduce((e,t)=>e+t.weight,0)||1;return(0,I.jsx)(o,{gap:`xs`,wrap:`wrap`,children:e.parts.map(e=>(0,I.jsx)(a,{withArrow:!0,label:e.kind===`fail`?`Panne possible (×${e.weight} · ${Math.round(e.weight/t*100)} %) : à son seuil critique, tire l'indice à 0.`:`Saturation (×${e.weight} · ${Math.round(e.weight/t*100)} %) : dégrade le score mais planchée — jamais « Critique » seule.`,children:(0,I.jsxs)(x,{size:`sm`,variant:`light`,leftSection:e.kind===`fail`?`⚠`:`🛡`,color:At(e.score),style:{cursor:`help`,fontVariantNumeric:`tabular-nums`},children:[e.label,` `,e.score,` · `,Math.round(e.weight/t*100),`%`]})},e.label))})}function It({source:e,ctx:t}){let n=e.data,r=Tt(),{weights:i}=r,a=Et(n?.ts),s=Dt(n?.errCount,n?.ts),[c,l]=(0,F.useState)(null),u=(0,F.useCallback)(e=>{l(e)},[]),f=wt(n),p=n?.gc??null,m=p&&a?p.pauseMs/a*100:null,h=t.live?c:null,g=M([{label:`CPU`,value:n?.cpuPercent??null,good:70,crit:100,weight:Y(i,`CPU`),floor:.2},{label:`Saturation (ELU)`,value:n?.elu?n.elu.utilization*100:null,good:70,crit:100,weight:Y(i,`Saturation (ELU)`),floor:.2},{label:`Event-loop`,value:n?.eventLoopMs??null,good:50,crit:120,weight:Y(i,`Event-loop`),floor:.2},{label:`Mémoire (heap)`,value:f,good:70,crit:95,weight:Y(i,`Mémoire (heap)`),critical:!0},{label:`GC overhead`,value:m,good:1,crit:10,weight:Y(i,`GC overhead`),floor:.25},{label:`Erreurs`,value:t.live?s:null,good:0,crit:10,weight:Y(i,`Erreurs`),critical:!0},{label:`Connecteurs`,value:h?h.total-h.up:null,good:0,crit:h?Math.max(1,h.total):1,weight:Y(i,`Connecteurs`),critical:!0}]);return(0,I.jsxs)(o,{wrap:`nowrap`,align:`flex-start`,gap:`xl`,children:[t.live?(0,I.jsx)(Ot,{onData:u}):null,(0,I.jsx)(jt,{r:g}),(0,I.jsxs)(d,{gap:8,style:{flex:1,minWidth:0},children:[(0,I.jsxs)(o,{gap:`xs`,wrap:`wrap`,children:[(0,I.jsx)(x,{color:g.color,size:`lg`,variant:`light`,children:g.label}),g.score==null?(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`En attente de mesures…`}):g.worst&&g.score<100?(0,I.jsxs)(S,{size:`sm`,c:`dimmed`,children:[`limité par : `,(0,I.jsx)(`b`,{children:g.worst})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`tous les indicateurs au vert.`}),(0,I.jsx)(Mt,{...r})]}),(0,I.jsx)(Pt,{}),(0,I.jsx)(Ft,{r:g}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Indice mono-process (Derringer-Suich). Temps réel & multi-cluster : à venir.`})]})]})}var Lt=`var(--mantine-color-teal-6)`,X=`var(--mantine-color-blue-6)`;function Rt(e,t,n,r=60){let[i,a]=(0,F.useState)([]),o=(0,F.useRef)(null);return(0,F.useEffect)(()=>{e!=null&&t!=null&&n!=null&&o.current!==e&&(o.current=e,a(e=>{let i=[...e,{a:t,b:n}];return i.length>r?i.slice(-r):i}))},[e,t,n,r]),i}function zt({source:e}){let t=e.data,n=t?.cpuPercent??null,r=wt(t),i=Rt(t?.ts,n,r);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`CPU`,value:n==null?`—`:Math.round(n),unit:`%`}),(0,I.jsx)(V,{label:`Mémoire`,value:r??`—`,unit:`%`})]}),i.length>=2?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(m,{height:150,max:100,threshold:80,format:e=>`${Math.round(e)}%`,series:[{data:i.map(e=>e.a),color:Lt,label:`CPU %`},{data:i.map(e=>e.b),color:X,label:`Heap %`}]}),(0,I.jsxs)(o,{gap:`lg`,children:[(0,I.jsx)(_,{color:Lt,label:`CPU (% d'un cœur)`}),(0,I.jsx)(_,{color:X,label:`Heap (% du plafond V8)`})]})]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Active le temps réel pour voir la corrélation CPU / mémoire.`})]})}function Bt({source:e}){let t=e.data,n=Et(t?.ts),r=t?.gc??null,i=L(r?r.pauseMs:null,60),a=r&&n?r.pauseMs/n*100:null,s=r&&r.count?r.pauseMs/r.count:null,c=a==null?`gray`:a>5?`red`:a>1?`orange`:`teal`;return r?(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`md`,children:[(0,I.jsxs)(x,{variant:`light`,color:c,children:[a==null?`—`:`${a.toFixed(1)} %`,` overhead`]}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[r.pauseMs.toFixed(0),` ms de pause / intervalle`]})]}),i.length>=2?(0,I.jsx)(m,{height:130,threshold:50,format:e=>`${e.toFixed(1)} ms`,series:[{data:i,color:`var(--mantine-color-orange-6)`,label:`Pause GC (ms)`}]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Active le temps réel pour la courbe.`}),(0,I.jsxs)(o,{gap:`xl`,wrap:`wrap`,children:[(0,I.jsx)(V,{label:`Cycles`,value:r.count}),(0,I.jsx)(V,{label:`Majeurs`,value:r.major}),(0,I.jsx)(V,{label:`Mineurs`,value:r.minor}),(0,I.jsx)(V,{label:`Pause / cycle`,value:s==null?`—`:s.toFixed(1),unit:`ms`})]})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`GC non remonté (active le temps réel ; nécessite la sonde process riche).`})}var Vt=[`var(--mantine-color-yellow-6)`,`var(--mantine-color-blue-6)`,`var(--mantine-color-teal-6)`,`var(--mantine-color-grape-6)`,`var(--mantine-color-orange-6)`,`var(--mantine-color-cyan-6)`];function Ht(e){return Vt[e%Vt.length]}function Ut(e,t=60){let n=(0,F.useRef)(null),[r,i]=(0,F.useState)({}),[a,o]=(0,F.useState)([]);return(0,F.useEffect)(()=>{if(!e||!Array.isArray(e.connectors))return;let r={};for(let t of e.connectors)r[t.connector]=t.total;let a=n.current;if(a&&e.ts>a.ts){let n=(e.ts-a.ts)/1e3,r={};if(n>0)for(let t of e.connectors){let e=a.totals[t.connector];e!=null&&(r[t.connector]=Math.max(0,(t.total-e)/n))}i(r),o(e=>{let n=[...e,r];return n.length>t?n.slice(-t):n})}n.current={ts:e.ts,totals:r}},[e,t]),{rates:r,hist:a}}function Wt({source:e}){let t=e.data,{rates:n,hist:r}=Ut(t);if(t&&t.enabled===!1)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Flux ORM désactivé (sonde OFF). Activer avec NF_ORM_FLOW=1.`});let i=(t?.connectors??[]).filter(e=>e.total>0);if(i.length===0)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucune requête ORM observée.`});let a=i.map((e,t)=>({data:r.map(t=>t[e.connector]??0),color:Ht(t),label:e.connector})),s=Object.values(n).reduce((e,t)=>e+t,0);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(V,{label:`Débit total`,value:Math.round(s),unit:`req/s`}),r.length>=2?(0,I.jsx)(m,{height:150,format:e=>`${Math.round(e)}/s`,series:a}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Active le temps réel pour la courbe par connecteur.`}),(0,I.jsx)(o,{gap:`lg`,wrap:`wrap`,children:i.map((e,t)=>(0,I.jsxs)(o,{gap:6,wrap:`nowrap`,children:[(0,I.jsx)(_,{color:Ht(t),label:e.connector}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[Math.round(n[e.connector]??0),`/s`]})]},e.connector))})]})}var Z={kind:`hybrid`,endpoint:`/nodefony/studio/api/stats`,channel:c.supervision};T({id:`supervision.health`,tags:[`systeme`,`sante`,`indice`],title:`Santé du framework`,description:`Indice composite 0-100 (CPU/ELU/loop/heap/GC/erreurs/connecteurs) + détail par sonde + poids réglables. Mono-process (comme la page).`,category:`system`,icon:be,source:Z,defaultSpan:12,minSpan:6,defaultH:6,minH:4,render:It}),T({id:`supervision.correlation`,tags:[`systeme`,`cpu`,`memoire`,`graphe`],title:`Corrélation CPU / Mémoire`,description:`CPU % et Mémoire % sur la même échelle 0-100 (un pic mémoire → pression GC → CPU).`,category:`system`,icon:p,source:Z,defaultSpan:6,minSpan:4,defaultH:5,minH:3,render:zt}),T({id:`supervision.gc`,tags:[`systeme`,`gc`,`graphe`],title:`Garbage Collector`,description:`Pause GC (stop-the-world) par intervalle : overhead, cycles, majeurs/mineurs.`,category:`system`,icon:_e,source:Z,defaultSpan:12,minSpan:6,defaultH:6,minH:4,render:Bt}),T({id:`orm.flow`,tags:[`orm`,`orm-debit`,`graphe`],title:`Débit ORM par connecteur`,description:`Requêtes/s dérivées PAR connecteur (courbe multi-séries). Per-instance (canal nodefony:orm:flow).`,category:`orm`,icon:Ve,source:{kind:`hybrid`,endpoint:`/nodefony/orm/api/flow`,channel:c.ormFlow},defaultSpan:6,minSpan:4,defaultH:5,minH:3,render:Wt});var Gt=1024**2,Q=e=>`${(e/Gt).toFixed(1)} Mo`,Kt={new_space:`Jeune génération`,old_space:`Vieille génération`,code_space:`Code compilé`,map_space:`Maps (formes d'objets)`,large_object_space:`Gros objets`,code_large_object_space:`Gros code`,new_large_object_space:`Gros objets jeunes`,read_only_space:`Lecture seule`,shared_space:`Partagé`};function qt(e){return Kt[e]??e.replace(/_/g,` `)}function Jt({source:e}){let t=e.data,n=(t?.heapSpaces??[]).filter(e=>e.size>0).sort((e,t)=>t.used-e.used);return n.length?(0,I.jsxs)(d,{gap:`sm`,children:[t?(0,I.jsxs)(o,{gap:`xl`,children:[(0,I.jsx)(V,{label:`Heap utilisé`,value:Q(t.memory.heapUsed)}),(0,I.jsx)(V,{label:`RSS`,value:Q(t.memory.rss)})]}):null,(0,I.jsx)(d,{gap:8,children:n.map(e=>{let t=e.size>0?Math.round(e.used/e.size*100):0;return(0,I.jsxs)(`div`,{children:[(0,I.jsxs)(o,{justify:`space-between`,gap:`xs`,wrap:`nowrap`,children:[(0,I.jsx)(S,{size:`xs`,truncate:!0,children:qt(e.name)}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,style:{fontVariantNumeric:`tabular-nums`},children:[Q(e.used),` / `,Q(e.size)]})]}),(0,I.jsx)(fe,{value:t,color:t>=90?`red`:t>=70?`orange`:`teal`,size:`sm`})]},e.name)})})]}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Espaces V8 non remontés (active le temps réel ; sonde process riche).`})}var Yt={TTYWrap:{label:`Terminal`,desc:`Flux terminal (stdout / stderr / stdin).`},TCPSocketWrap:{label:`Socket TCP`,desc:`Connexion TCP active (HTTP entrant, WebSocket, client sortant…).`},TCPServerWrap:{label:`Serveur TCP`,desc:`Serveur TCP en écoute (serveurs HTTP/WS de Nodefony).`},PipeWrap:{label:`Pipe / IPC`,desc:`Tube nommé ou canal IPC inter-process.`},Timeout:{label:`Timer`,desc:`setTimeout / setInterval programmé (non unref).`},Immediate:{label:`Immediate`,desc:`setImmediate en attente au prochain tick.`},FSReqCallback:{label:`I/O fichier`,desc:`Opération fichier asynchrone en cours.`},FSEvent:{label:`Watch FS`,desc:`Surveillance d'un fichier/dossier (fs.watch).`},MessagePort:{label:`MessagePort`,desc:`Canal worker_threads / MessageChannel.`},Worker:{label:`Worker`,desc:`Thread worker (worker_threads) actif.`},ChildProcess:{label:`Process enfant`,desc:`Process fils (spawn / fork).`},SignalWrap:{label:`Signal POSIX`,desc:`Écoute d'un signal (SIGINT, SIGTERM…).`},HTTPParser:{label:`Parser HTTP`,desc:`Analyseur de message HTTP en cours.`},TLSWrap:{label:`TLS`,desc:`Connexion chiffrée TLS/SSL (HTTPS, WSS).`},UDPWrap:{label:`Socket UDP`,desc:`Socket UDP active (datagrammes).`},ZlibStream:{label:`Compression`,desc:`Flux (dé)compression zlib / gzip / brotli.`}};function Xt(e){return Yt[e]??{label:e,desc:`Ressource interne Node.js « ${e} » maintenant la boucle active.`}}function Zt({source:e}){let t=e.data?.handles;if(!t)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Ressources actives non remontées (active le temps réel).`});let n=Object.entries(t.byType).sort((e,t)=>t[1]-e[1]);return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsx)(V,{label:`Ressources actives`,value:t.total}),(0,I.jsx)(d,{gap:4,children:n.map(([e,t])=>{let n=Xt(e);return(0,I.jsxs)(o,{justify:`space-between`,gap:`xs`,wrap:`nowrap`,children:[(0,I.jsx)(a,{label:n.desc,withArrow:!0,multiline:!0,w:260,children:(0,I.jsx)(S,{size:`xs`,style:{cursor:`help`},truncate:!0,children:n.label})}),(0,I.jsx)(x,{size:`sm`,variant:`light`,color:`gray`,style:{fontVariantNumeric:`tabular-nums`},children:t})]},e)})})]})}function Qt(e,t,n=60){let r=(0,F.useRef)([]),i=(0,F.useRef)(null),[a,o]=(0,F.useState)(0);return(0,F.useEffect)(()=>{if(t==null||i.current===t)return;i.current=t;let a=[...r.current,e??0];r.current=a.length>n?a.slice(-n):a,o(r.current.reduce((e,t)=>e+t,0))},[t,e,n]),a}function $t({source:e,ctx:t}){let n=e.data,r=Qt(n?.errCount,n?.ts),i=L(t.live?n?.errCount??0:null,60);if(!t.live)return(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Active le temps réel pour compter les erreurs (ERROR + CRITIC).`});let a=r>=10?`red`:r>0?`orange`:`teal`;return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`xl`,align:`flex-end`,children:[(0,I.jsx)(V,{label:`Erreurs / min`,value:r}),(0,I.jsx)(x,{variant:`light`,color:a,children:r===0?`aucune erreur`:r>=10?`élevé`:`à surveiller`})]}),i.length>=2?(0,I.jsx)(m,{height:130,format:e=>String(Math.round(e)),series:[{data:i,color:`var(--mantine-color-${a}-6)`,label:`Erreurs/intervalle`}]}):(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`En attente des premières mesures…`}),(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`ERROR + CRITIC sur ~60 s (comptés serveur). Détail des messages : bloc « Logs (live) ».`})]})}var $={kind:`hybrid`,endpoint:`/nodefony/studio/api/stats`,channel:c.supervision};T({id:`supervision.memory`,title:`Mémoire (espaces V8)`,description:`Répartition du heap V8 par espace (jeune/vieille génération, code…) — barres used/size.`,category:`system`,icon:ge,tags:[`systeme`,`memoire`,`panneau`],source:$,defaultSpan:6,minSpan:4,defaultH:6,minH:4,render:Jt}),T({id:`supervision.handles`,title:`Ressources actives`,description:`Handles Node qui maintiennent la boucle active (sockets, timers, fichiers…), par type.`,category:`system`,icon:Ee,tags:[`systeme`,`handles`,`liste`],source:$,defaultSpan:6,minSpan:4,defaultH:6,minH:4,render:Zt}),T({id:`supervision.errors`,title:`Erreurs`,description:`Erreurs/min (ERROR + CRITIC) comptées serveur + courbe. Messages : bloc Logs.`,category:`system`,icon:we,tags:[`erreurs`,`graphe`],source:$,defaultSpan:6,minSpan:4,defaultH:5,minH:3,render:$t});var en=`/nodefony/security/api/audit/events?limit=100`;function tn(e){return Ne.find(t=>t.value===e)?.color??`gray`}function nn({source:e}){let t=e.data;if(!t)return null;let n=t.items??[],r=n.filter(e=>e.outcome===`denied`).length,i=n.filter(e=>e.outcome===`failure`).length;return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`xl`,wrap:`nowrap`,align:`flex-start`,children:[(0,I.jsx)(B,{label:`Événements`,value:t.total??0,color:`grape`}),(0,I.jsx)(B,{label:`Refus`,value:r,color:r>0?`red`:`teal`,sub:`${i} échec(s) récents`})]}),(0,I.jsxs)(d,{gap:4,children:[n.slice(0,5).map(e=>(0,I.jsxs)(o,{justify:`space-between`,wrap:`nowrap`,gap:`xs`,children:[(0,I.jsx)(S,{size:`xs`,ff:`monospace`,truncate:!0,style:{minWidth:0},children:e.action}),(0,I.jsx)(x,{size:`xs`,variant:`light`,color:tn(e.outcome),children:e.outcome})]},e.id)),n.length===0?(0,I.jsx)(S,{size:`xs`,c:`dimmed`,children:`Aucun événement d'audit sur la fenêtre.`}):null]})]})}T({id:`security.audit`,title:`Activité de sécurité`,description:`Journal d'audit : volume d'événements + refus récents (auth, RBAC, CSRF, WS…).`,category:`security`,icon:Oe,tags:[`securite`,`kpi`,`liste`],source:{kind:`snapshot`,endpoint:en},defaultSpan:5,minSpan:4,render:nn});function rn({source:e}){let t=e.data?.user;if(!t)return null;let n=t.roles??[];return(0,I.jsxs)(d,{gap:`sm`,children:[(0,I.jsxs)(o,{gap:`sm`,wrap:`nowrap`,children:[(0,I.jsx)(u,{variant:`light`,color:`brand`,size:42,radius:`xl`,children:(0,I.jsx)(P,{size:26})}),(0,I.jsxs)(`div`,{style:{minWidth:0},children:[(0,I.jsx)(S,{fw:700,size:`lg`,truncate:!0,children:t.username}),(0,I.jsxs)(S,{size:`xs`,c:`dimmed`,children:[`ID `,String(t.id)]})]})]}),(0,I.jsxs)(`div`,{children:[(0,I.jsx)(S,{size:`xs`,tt:`uppercase`,c:`dimmed`,fw:700,mb:4,children:`Mes rôles`}),n.length?(0,I.jsx)(o,{gap:4,children:n.map(e=>(0,I.jsx)(x,{variant:`light`,radius:`sm`,children:e},e))}):(0,I.jsx)(S,{size:`sm`,c:`dimmed`,children:`Aucun rôle attribué.`})]})]})}function an({source:e}){let t=e.data?.keys??[],n=t.filter(e=>Me(e)===`active`).length;return(0,I.jsxs)(o,{gap:`xl`,wrap:`nowrap`,align:`flex-start`,children:[(0,I.jsx)(B,{label:`Clés actives`,value:n,color:`teal`}),(0,I.jsx)(B,{label:`Total`,value:t.length,color:`gray`,sub:t.length?`incl. expirées / révoquées`:`aucune clé`})]})}function on({source:e}){let t=e.data?.items??[],n=e.data?.total??t.length;return(0,I.jsxs)(o,{gap:`xl`,wrap:`nowrap`,align:`flex-start`,children:[(0,I.jsx)(B,{label:`Sessions actives`,value:t.length,color:`teal`}),(0,I.jsx)(B,{label:`Total`,value:n,color:`gray`,sub:n>t.length?`fenêtre tronquée`:`mes appareils / onglets`})]})}T({id:`account.profile`,title:`Mon profil`,description:`Mon identité et mes rôles (session courante).`,category:`account`,icon:P,tags:[`compte`,`identite`,`panneau`],source:{kind:`snapshot`,endpoint:`/nodefony/security/api/auth/me`},defaultSpan:5,minSpan:4,render:rn}),T({id:`account.apikeys`,title:`Mes clés API`,description:`Nombre de mes clés d'API actives (jetons personnels).`,category:`account`,icon:Te,tags:[`compte`,`kpi`],source:{kind:`snapshot`,endpoint:`/nodefony/security/api/keys`},defaultSpan:4,minSpan:3,render:an}),T({id:`account.sessions`,title:`Mes sessions`,description:`Mes sessions actives (appareils / onglets connectés).`,category:`account`,icon:He,tags:[`compte`,`kpi`],source:{kind:`snapshot`,endpoint:`/nodefony/http/api/sessions/mine`},defaultSpan:4,minSpan:3,render:on});function sn({channel:e,onData:t}){let n=D(e);return(0,F.useEffect)(()=>{n!=null&&t(n)},[n,t]),null}function cn(e,t){let n=me(),r=e.kind===`live`?null:e.endpoint,i=e.kind===`snapshot`?null:e.channel,a=(0,F.useCallback)(()=>r?n.api.getAbsolute(r):Promise.resolve(null),[n,r]),o=je(a),[s,c]=(0,F.useState)(null),l=!!i&&t;(0,F.useEffect)(()=>{l||c(null)},[l]);let u=l&&s!=null,d=u?s:o.data;return{source:{data:d,loading:o.loading&&d==null,error:o.error,fromLive:u,reload:o.reload},channel:i,liveOn:l,liveOnlyOff:e.kind===`live`&&!t,setLiveData:c}}function ln({def:e,state:t,ctx:n,span:r,container:a}){let o=e.render,s=e.source.kind===`live`?null:e.source.endpoint;return(0,I.jsxs)(I.Fragment,{children:[t.liveOn&&t.channel?(0,I.jsx)(sn,{channel:t.channel,onData:t.setLiveData}):null,(0,I.jsx)(i,{loading:t.source.loading,error:t.source.error,empty:t.liveOnlyOff||t.source.data==null,emptyMessage:t.liveOnlyOff?`Active le temps réel pour ce bloc.`:`Aucune donnée.`,onRetry:s?t.source.reload:void 0,minHeight:a===`widget`?40:80,children:(0,I.jsx)(o,{source:t.source,ctx:n,span:r})})]})}export{cn as n,ln as t};
|
package/dist/frontend/assets/{useSocketLiveData-DS1IelEt.js → useSocketLiveData-n5suTFQT.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as e}from"./src-Dvwdl2PF.js";import{Pt as t,di as n}from"./ui-
|
|
1
|
+
import{k as e}from"./src-Dvwdl2PF.js";import{Pt as t,di as n}from"./ui-Dy8y0zPl.js";import{ct as r,lt as i}from"./index-wfxUl83u.js";import{n as a}from"./realtimeHealth-CEJDxl45.js";var o=e(n(),1);function s(e){if(!e)return null;let t=e.instances;for(let e=0;e<t.length;e+=1){let n=t[e]?.backplane;if(n)return n}return null}function c(){let e=r(t.socket),n=i(),c=(0,o.useMemo)(()=>a(e),[e]),l=(0,o.useMemo)(()=>s(c),[c]);return(0,o.useMemo)(()=>({rt:c,backplane:l,clientState:n}),[c,l,n])}function l(e){return e==null||Number.isNaN(e)?`—`:e<1e3?String(e):e<1e6?`${(e/1e3).toFixed(1)}k`:`${(e/1e6).toFixed(2)}M`}function u(e){return e?e.crossPod===!0||!!e.driver&&e.driver!==`loopback`:!1}function d(e){if(!e)return 0;let t=0,n=e.channels;for(let e=0;e<n.length;e+=1){let r=n[e].subscribers;r>t&&(t=r)}return t}function f(e,t,n){let r=e>=t;return{status:r?`ok`:`idle`,pulse:r&&n}}function p(e,t,n,r){let i=e?.[t];return i?{status:`ok`,pulse:i.connectionCount>0,metrics:[{label:`instance`,value:i.instanceId},{label:n,value:r(i)}]}:{status:`idle`}}function m(e){return e?{status:u(e)?`ok`:`idle`,metrics:[{label:`driver`,value:e.driver??`—`},{label:`transport`,value:e.kind??`—`},{label:`cross-pod`,value:e.crossPod?`oui`:`non`}]}:{status:`idle`}}var h=typeof window<`u`&&window.location.protocol===`https:`?`WSS`:`WS`;function g(e){let t=e.rt,n=t?.totals,r=e.clientState===`connected`,i=n?.channelCount??0,a=n?.connectionCount??0,o=n?.fanoutTotal??0,s=n?.backpressure,c=s?.slowConsumers??0,u=s?.totalBufferedAmount??0,d=c>0||u>0,f=t?.instances;return{client:{status:r?`ok`:`idle`,pulse:r,metrics:[{label:`état`,value:e.clientState},{label:`transport`,value:h}]},transport:{status:a>0?`ok`:`idle`,pulse:a>0,metrics:[{label:`connexions (serveur)`,value:l(a)}]},peer:{status:t?`ok`:`idle`,pulse:!!t,metrics:[{label:`msgs émis`,value:l(n?.messagesSentTotal)},{label:`octets émis`,value:l(n?.bytesSentTotal)}]},hub:{status:d?`warn`:i>0?`ok`:`idle`,pulse:i>0,metrics:[{label:`canaux`,value:l(i)},{label:`fan-out`,value:l(o)},...d?[{label:`slow`,value:l(c)}]:[]]},backplane:m(e.backplane),w1:p(f,0,`canaux`,e=>l(e.channelCount)),w2:p(f,1,`canaux`,e=>l(e.channelCount))}}function _(e){let t=e.rt,n=t?.totals,r=n?.channelCount??0,i=n?.fanoutTotal??0,a=n?.publishTotal??0,o=n?.backpressure,s=o?.slowConsumers??0,c=o?.totalBufferedAmount??0,u=s>0||c>0,p=i>0,h=t?.instances,g=d(h?.[0]),_=h?.[1],v=d(_);return{source:{status:a>0?`ok`:`idle`,pulse:p,metrics:[{label:`publish total`,value:l(a)}]},hub:{status:u?`warn`:r>0?`ok`:`idle`,pulse:p,metrics:[{label:`canaux`,value:l(r)},{label:`abonnés (max/canal)`,value:l(g)},{label:`fan-out`,value:l(i)},...u?[{label:`slow`,value:l(s)}]:[]]},peerA:f(g,1,p),peerB:f(g,2,p),peerC:f(g,3,p),backplane:m(e.backplane),hubB:_?{status:`ok`,pulse:p,metrics:[{label:`instance`,value:_.instanceId},{label:`fan-out`,value:l(_.fanoutTotal)}]}:{status:`idle`},peerX:f(v,1,p),peerY:f(v,2,p)}}function v(e){let t=e.rt,n=t?.totals,r=e.clientState===`connected`,i=n?.channelCount??0,a=n?.fanoutTotal??0,o=n?.messagesSentTotal??0,s=n?.connectionCount??0;return{client:{status:r?`ok`:`idle`,pulse:r,metrics:[{label:`état`,value:e.clientState}]},server:{status:t?`ok`:`idle`,pulse:!!t,metrics:[{label:`connexions`,value:l(s)}]},notifyOut:{status:i>0?`ok`:`idle`,pulse:i>0,metrics:[{label:`canaux abonnés`,value:l(i)},{label:`frames full-duplex`,value:l(n?.inboundTotal)}]},notifyIn:{status:a>0?`ok`:`idle`,pulse:a>0,metrics:[{label:`msgs émis`,value:l(o)},{label:`fan-out`,value:l(a)}]},request:{status:`idle`},response:{status:`idle`}}}function y(e){let t=e.length,n=e.lastIndexOf(`:`);if(n!==-1&&n<e.length-1){let r=!0;for(let t=n+1;t<e.length;t+=1){let n=e.charCodeAt(t);if(n<48||n>57){r=!1;break}}r&&(t=n)}return t>=7&&e.startsWith(`:health`,t-7)}function b(e){let t=e.rt,n=e.clientState===`connected`,r=0,i=0,a=t?.instances;if(a)for(let e=0;e<a.length;e+=1){let t=a[e].channels;for(let e=0;e<t.length;e+=1){let n=t[e];y(n.channel)&&(r+=1,i+=n.messages)}}let o=r>0,s=o&&i>0;return{probe:{status:o?`ok`:`idle`,pulse:s,metrics:[{label:`sondes actives`,value:l(r)}]},health:{status:o?`ok`:`idle`,pulse:s},endpoint:{status:t?`ok`:`idle`},ticker:{status:o?`ok`:`idle`,pulse:s,metrics:[{label:`ticks`,value:l(i)}]},channel:{status:o?`ok`:`idle`,pulse:s,metrics:[{label:`canaux *:health`,value:l(r)}]},studio:{status:n?`ok`:`idle`,pulse:n&&s,metrics:[{label:`état`,value:e.clientState}]}}}var x=[`loopback`,`cluster`,`redis`];function S(e){return e?!x.includes(e):!1}function C(e){let t=e.rt,n=t?.totals,r=n?.fanoutTotal??0,i=n?.publishTotal??0,a=r>0,o=t?.instances,s=e.backplane,c=s?.driver,d=u(s),f=e=>c===e?{status:`ok`,pulse:a,metrics:[{label:`actif`,value:`✓`},{label:`transport`,value:s?.kind??`—`},{label:`cross-pod`,value:s?.crossPod?`oui`:`non`}]}:{status:`idle`};return{workerA:p(o,0,`publish`,e=>l(e.publishTotal)),workerB:p(o,1,`publish`,e=>l(e.publishTotal)),workerC:p(o,2,`publish`,e=>l(e.publishTotal)),backplane:{status:d||a?`ok`:`idle`,pulse:a,metrics:[{label:`driver`,value:c??`—`},{label:`publish total`,value:l(i)},{label:`fan-out`,value:l(r)}]},loopback:f(`loopback`),cluster:f(`cluster`),redis:f(`redis`),custom:S(c)?{status:`ok`,pulse:a,metrics:[{label:`driver`,value:c??`—`},{label:`transport`,value:s?.kind??`—`}]}:{status:`idle`}}}function w(e){let t=e.clientState===`connected`;return{request:{status:t?`ok`:`idle`,pulse:t,metrics:[{label:`client`,value:t?`prêt`:`déconnecté`}]},welcome:{status:e.rt?`ok`:`idle`},resolve:{status:`idle`},authz:{status:`idle`},handler:{status:`idle`},audit:{status:`idle`},result:{status:`idle`}}}export{_ as a,c,C as i,w as n,b as o,g as r,v as s,x as t};
|