@runeya/runeya 2.0.129 → 2.0.130
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/package.json +1 -1
- package/web/assets/{AgentScalarChatInterface.vue-CSnavtlu.js → AgentScalarChatInterface.vue-ojzSMuCC.js} +3 -3
- package/web/assets/AgentTerminalPage-Cf-ymD9E.js +1 -0
- package/web/assets/AiChatPage-COFvhaB5.js +1 -0
- package/web/assets/AppLayout-YtDku8pN.js +1 -0
- package/web/assets/AuditPage-DCVZLRz4.js +1 -0
- package/web/assets/CloudAccountPage-BOqt_ByJ.js +1 -0
- package/web/assets/CloudAccountPage-ClH4A4t9.js +1 -0
- package/web/assets/CloudMessagingPage-BtlnnNf8.js +2 -0
- package/web/assets/DashboardPage-BOxdzarH.js +1 -0
- package/web/assets/DirectoryPickerDialog-B4MzYK-Y.js +1 -0
- package/web/assets/{EditorIcon-CtAICHdD.js → EditorIcon-DAx2QpZA.js} +2 -2
- package/web/assets/EnvironmentForm-Cgcc_56Z.js +108 -0
- package/web/assets/EnvironmentFormPage-n7m6dJUn.js +1 -0
- package/web/assets/EnvironmentListPage-DS6s6UQk.js +1 -0
- package/web/assets/KanbanBoardPage-6I4n9kDT.css +1 -0
- package/web/assets/KanbanBoardPage-DOvBivfv.js +4 -0
- package/web/assets/KanbanListPage-D3xdMHNk.js +1 -0
- package/web/assets/KanbanListPage-DgHde06E.css +1 -0
- package/web/assets/LaunchProjectPage-BFOzRnGw.js +1 -0
- package/web/assets/LaunchServicesPage-D7FmbH2H.js +1 -0
- package/web/assets/LogViewer-BbbpNT7v.js +3 -0
- package/web/assets/OrgKeyPrompt-BGlTQGBE.js +1 -0
- package/web/assets/OrgLogo-DfRefdu8.js +1 -0
- package/web/assets/ProcessControls-ByXJUYXz.js +1 -0
- package/web/assets/ProcessDetailPage-6q8wgWEP.js +1 -0
- package/web/assets/{ProcessMetrics-D4CYOC7y.js → ProcessMetrics-o6TQkXTa.js} +2 -2
- package/web/assets/RandomJobTestPage-DuCKCB_n.js +2 -0
- package/web/assets/ScenarioEditorPage-ZCVivzeZ.js +14 -0
- package/web/assets/SendToChatDialog-CFd1Bubz.js +1 -0
- package/web/assets/ServiceControlsBar-B-3OrP1t.js +1 -0
- package/web/assets/ServiceDetailPage-Bm53GpUX.js +2 -0
- package/web/assets/ServiceFormPage-B5_95jOM.js +1 -0
- package/web/assets/SettingsPage-7Thq96Wn.js +2063 -0
- package/web/assets/UnlockPage-BXbKs3QZ.js +1 -0
- package/web/assets/VaultMigrationPage-h6NgaEOh.js +1 -0
- package/web/assets/VersionBadge-Bh8iLmG8.js +1 -0
- package/web/assets/WikiPage-BZVFtjfs.js +1 -0
- package/web/assets/WikiView-B905tAss.js +1 -0
- package/web/assets/add-scalar-classes-DW5rrkrl.js +387 -0
- package/web/assets/{autocomplete-C3lpxqut.js → autocomplete-DxjWjky0.js} +3 -3
- package/web/assets/{basic-shape-diamond.svg-ClLmXFVS.js → basic-shape-diamond.svg-JSaiJ46F.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-Cag0ncSY.js → basic-shape-hexagon.svg-D1-hJiCH.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg--KHtWYXD.js → basic-shape-primary-circle-ellipse-round.svg-J6Ksp8Xz.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-BPCtuGhT.js → basic-shape-primary-square-rectangle.svg-BR-QAok8.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-CLqZM1B0.js → basic-shape-shield.svg-CmwxzzxD.js} +1 -1
- package/web/assets/{browser-DIa6q3Vr.js → browser-7cY4kFlm.js} +1 -1
- package/web/assets/{browser-C1T_MRFP.js → browser-Dj-lNKWY.js} +1 -1
- package/web/assets/card-DAI9OTkc.js +32 -0
- package/web/assets/{checkbox-_b4TMklW.js → checkbox-Ct1yef0N.js} +3 -3
- package/web/assets/{chip-B-w-r79z.js → chip-B9m8EUV4.js} +2 -2
- package/web/assets/{client-D3ljCsOD.js → client-DULNwlfi.js} +2 -2
- package/web/assets/cloud-chat.store-BufYJj6k.js +1 -0
- package/web/assets/cloud-client-DH0epluZ.js +1 -0
- package/web/assets/cloud-session-BBqRYcsm.js +1 -0
- package/web/assets/{cloud-session-DwRT1TUx.js → cloud-session-DZ1APEU5.js} +2 -2
- package/web/assets/column-D9bX7M3H.js +763 -0
- package/web/assets/composables-DtqhVWR-.js +1 -0
- package/web/assets/{computer-device-desktop-monitor.svg-CJd6rSnq.js → computer-device-desktop-monitor.svg-kHhZDrn4.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-BKuN8rEx.js → computer-device-desktop.svg-CJqmzT8S.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-BnP-6SWj.js → computer-device-laptop.svg-DVR2dE1I.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-C_LwWGml.js → computer-device-mobile-phone-android-samsung-back.svg-CEgkg7iO.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-DyLuuVRr.js → computer-device-mobile-phone-android-samsung.svg-BNd9H2xb.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-CV8PoCn1.js → computer-device-mobile-phone-iphone-x-back.svg-C34x7LFE.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-Bnnn0L-m.js → computer-device-mobile-phone-iphone-x.svg-58jbIuoG.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-P64zwUoG.js → computer-device-mobile-tablet-touch.svg-Do-wo3C-.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-LMxuwUja.js → computer-device-mobile-tablet.svg-k9649lm5.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-DwdZZW5b.js → computer-device-network-ethernet-cat6.svg-CHhUrJbo.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-CeDIIipH.js → computer-device-network-lan-www.svg-CtPwhVZ6.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-DbcpscUN.js → computer-device-network-wifi-connection.svg-kx5mccFk.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-lMEz8IbU.js → computer-device-network-wifi-router.svg-sZs7A8Cr.js} +1 -1
- package/web/assets/{cssMode-BzrUX3y9.js → cssMode-B6unnb3U.js} +1 -1
- package/web/assets/{divider-DYwsSqGG.js → divider-BnMFAEx6.js} +2 -2
- package/web/assets/{docx-preview-DUjMjOuO.js → docx-preview-HgFKCX0F.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-aaOpq7_y.js → ecology-science-erlenmeyer-flask.svg-DOKj5_k1.js} +1 -1
- package/web/assets/{fieldset-D69VQ3vX.js → fieldset-DZnEgPOU.js} +2 -2
- package/web/assets/{freemarker2-Do4liMSN.js → freemarker2-Bv0s6UQe.js} +1 -1
- package/web/assets/{handlebars-DpU4uL8Y.js → handlebars-BTsC4Lqd.js} +1 -1
- package/web/assets/{html-B9I8fdv5.js → html-BARKi29y.js} +1 -1
- package/web/assets/{htmlMode-kOiElG85.js → htmlMode-fK2j6Ha8.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-D5c1hsb-.js → image-flash-lightning.svg-CTaB0hJv.js} +1 -1
- package/web/assets/{image-picture-flower.svg--K0KlQyl.js → image-picture-flower.svg-M6Q_XtAy.js} +1 -1
- package/web/assets/{index-Bul9Aylo.js → index-DKmDGo1r.js} +367 -367
- package/web/assets/{interface-alert-exclamation-diamond.svg-C_w5a3q7.js → interface-alert-exclamation-diamond.svg-DPTfDSD9.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-DMDyHWRK.js → interface-alert-exclamation-triangle-warning.svg-AWUdZifI.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-B3w162oJ.js → interface-alert-information-circle.svg-BtYZm3zK.js} +1 -1
- package/web/assets/{interface-award-crown.svg-DKX_jl0S.js → interface-award-crown.svg-DXu8zQAy.js} +1 -1
- package/web/assets/{interface-bookmark.svg-e90beY5z.js → interface-bookmark-tag.svg-DEcpMXap.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-D0fSBPjO.js → interface-bookmark.svg-BVozfFi5.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-C6qc0Sl8.js → interface-calendar-date-one.svg-B3qaR9M3.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-BnljSGNK.js → interface-content-book-open-pages.svg-DKEf3Z55.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-h9r3eRfx.js → interface-content-book-page.svg-D6molfdo.js} +1 -1
- package/web/assets/{interface-content-file.svg-CHVFR7pp.js → interface-content-file.svg-CA0q-5Sl.js} +1 -1
- package/web/assets/{interface-content-folder.svg-ClpRom-Y.js → interface-content-folder.svg-BztjfhZi.js} +1 -1
- package/web/assets/interface-content-folder.svg-DcL7Y965.js +1 -0
- package/web/assets/{interface-copy-clipboard.svg-CleRJUrm.js → interface-copy-clipboard.svg-2_fmAnNV.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-CKY3sa16.js → interface-edit-attachment.svg-Cb_upeaG.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-tz_rgKBc.js → interface-edit-binocular.svg-CCEAT7W8.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-CpO_jPEw.js → interface-edit-magic-wand.svg-BeJ11Pji.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-CfsNGXGA.js → interface-edit-tool-paint-roller.svg-BGiy8YPn.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-DAQ1Ekxm.js → interface-edit-tool-pencil.svg-BOMoeGAt.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-D4uWI5Eo.js → interface-favorite-award.svg-qHoFebiY.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-BhDP9KZs.js → interface-favorite-flag.svg-D9gpkTJz.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-CCVhz65j.js → interface-favorite-heart.svg-COMUv1Uh.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-TiGy7_Dz.js → interface-favorite-star.svg-BsK5YVEB.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-Bleiokcx.js → interface-favorite-stars-sparkles.svg-DevgE082.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-3lRctSSk.js → interface-hierarchy-flowchart.svg-C1dfAizc.js} +1 -1
- package/web/assets/{interface-home-house.svg-DiCjd5wk.js → interface-home-house.svg-LAWGxZwm.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-_8aS5L2n.js → interface-hyperlink.svg-DKfSIKhS.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-w9w5UTai.js → interface-lighting-brightness.svg-CvWZXBko.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-DetdV2Gl.js → interface-lock-closed.svg-DUT5D0je.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-BvJFyP6t.js → interface-lock-open-unlock.svg-Cw8kzQQh.js} +1 -1
- package/web/assets/{interface-login-key.svg-CIXme1iF.js → interface-login-key.svg-Bkp-rHPU.js} +1 -1
- package/web/assets/{interface-search.svg-CBDGg8fP.js → interface-search.svg-hG5ogu9p.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-BFSZ-Okv.js → interface-setting-cog.svg-BcPVq1LR.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-B7Zua94j.js → interface-share-megaphone-bullhorn.svg-M4niyPv3.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-CzRpGdWQ.js → interface-share-rocket.svg-BcPOpoTR.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-BCqYuJ38.js → interface-share-satellite.svg-x1KDlm6g.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-CrVISqJx.js → interface-share-space-ship.svg-BfNSdNDO.js} +1 -1
- package/web/assets/{interface-share.svg-CD8UuO99.js → interface-share.svg-C97BmuMY.js} +1 -1
- package/web/assets/{interface-signal-square.svg-Gkheru1O.js → interface-signal-square.svg-DWd44JJH.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-CJcRzzea.js → interface-time-clock-circle.svg-DlY-_Hwt.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-BsatRAlX.js → interface-time-hour-glass.svg-C2a691O4.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-5CyJhDJN.js → interface-users-multiple.svg-gNDhDRlp.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-Bz82ayq0.js → interface-weather-moon.svg-D7eISmrq.js} +1 -1
- package/web/assets/{javascript-D6oQ3hd5.js → javascript-8VolDNmb.js} +1 -1
- package/web/assets/{jsonMode-B7DwD1nk.js → jsonMode-D6awqTaJ.js} +2 -2
- package/web/assets/{liquid-CwyDbpBP.js → liquid-TTMHEa9a.js} +1 -1
- package/web/assets/{lspLanguageFeatures-T0jAxgTl.js → lspLanguageFeatures-UVF6GLcv.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-a_hiTrgs.js → mail-chat-bubble-square.svg-DjreUXqw.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-C-zatHzn.js → mail-send-email-paper-airplane.svg-BcyYVqIq.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-q37OXzBm.js → mail-send-envelope.svg-BGg0186G.js} +1 -1
- package/web/assets/{mdx-DHj3k_zA.js → mdx-CoSOx_u6.js} +1 -1
- package/web/assets/{minus-BeeT2iDC.js → minus-DKbcHNVU.js} +2 -2
- package/web/assets/modal-C44iufem.js +1 -0
- package/web/assets/modal-DziAnw0E.js +5 -0
- package/web/assets/{money-cashier-receipt.svg-BvVMygIT.js → money-cashier-receipt.svg-xin2Q2jV.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-CRhhH_kZ.js → money-currency-dollar-pay.svg-CuVghNG0.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-CYVM9Jd_.js → money-graph-arrow-increase.svg-CW-ESaRb.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-Ce0lJBl4.js → money-graph-bar-chart-increase.svg-Ds63Ij9u.js} +1 -1
- package/web/assets/multiselect-EBj2jpFx.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-CDM_95dC.js → nature-ecology-leaf.svg-CROyMuJ6.js} +1 -1
- package/web/assets/{password-CK1h81G7.js → password-M6cvez26.js} +4 -4
- package/web/assets/{phone-telephone.svg-BVt3gYGw.js → phone-telephone.svg-ldFh2DtT.js} +1 -1
- package/web/assets/{plus-D1CwPS5W.js → plus-B-HO9RRD.js} +6 -6
- package/web/assets/process.store-BLYbO6Uf.js +1 -0
- package/web/assets/{programming-bug.svg-d7SqJEee.js → programming-bug.svg-Bi-5bVtZ.js} +1 -1
- package/web/assets/{programming-cloud.svg-CftGIPF_.js → programming-cloud.svg-BfsVdIyf.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-3O3MINe3.js → programming-computer-database-server.svg-CGxQu1SC.js} +1 -1
- package/web/assets/{programming-computer-database.svg-lF-wgOh4.js → programming-computer-database.svg-B5TrOmSA.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg--_Np803U.js → programming-module-four-layout.svg-CX306feB.js} +1 -1
- package/web/assets/{programming-module-three.svg-DMayeKgJ.js → programming-module-three.svg-fIUP0jIs.js} +1 -1
- package/web/assets/{programming-module.svg-DNACg4f8.js → programming-module.svg-BaFMsOL8.js} +1 -1
- package/web/assets/{programming-script-code.svg-D7nxZDlK.js → programming-script-code.svg-asPax4Jv.js} +1 -1
- package/web/assets/project-launch.store-cRctADnj.js +1 -0
- package/web/assets/project.store-BIHP84Mj.js +1 -0
- package/web/assets/{python-BvMZwnLc.js → python-B2HQyLbu.js} +1 -1
- package/web/assets/{radiobutton-CIVJq1we.js → radiobutton-E9JzQOQ_.js} +2 -2
- package/web/assets/{razor-CzA3B_j-.js → razor-chfLPaZ5.js} +1 -1
- package/web/assets/router-CgLDvz4F.js +1 -0
- package/web/assets/selectbutton-BSfIGLAd.js +164 -0
- package/web/assets/settings-scope-E-kRs7p5.js +1 -0
- package/web/assets/settings.store-DdANKt-l.js +1 -0
- package/web/assets/{shopping-cart.svg-B5Jl42Dt.js → shopping-cart.svg-CE-hccE4.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-C04uAz4d.js → shopping-gift-present.svg-DcDsxpbS.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-BoumdNF9.js → shopping-shipping-box-parcel-package.svg-B-Hce7Vg.js} +1 -1
- package/web/assets/src-BCom7Av8.js +2527 -0
- package/web/assets/src-CDO5h8Fg.js +1 -0
- package/web/assets/{src-KwP86pAZ.css → src-DkRsN6ug.css} +1 -1
- package/web/assets/{tabpanel-Vb83SrYF.js → tabpanel-opi-GyXj.js} +3 -3
- package/web/assets/{tag-new-circle.svg-CoaJ9MzB.js → tag-new-circle.svg-CAAIvApW.js} +1 -1
- package/web/assets/theme-7Rf1Y25Z.js +1 -0
- package/web/assets/{toggleswitch-B1JOUIwi.js → toggleswitch-CXZN5FrU.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-6aDjr2pn.js → travel-map-earth-globe.svg-_I9aKmKu.js} +1 -1
- package/web/assets/trpc-D26KI2Tc.js +1 -0
- package/web/assets/{tsMode-BUqjXsVq.js → tsMode-Cis8_e0R.js} +6 -6
- package/web/assets/{typescript-C0DrYHIX.js → typescript-DwoucjlL.js} +1 -1
- package/web/assets/useAiChatDrawer-DMkDsZjG.js +1 -0
- package/web/assets/{useCloudOrg-tTzYkGcC.js → useCloudOrg-DSETGvJK.js} +1 -1
- package/web/assets/useEnvVarAutocomplete-SpekLSMv.js +1 -0
- package/web/assets/{useProjectCatalog-BrszMm46.js → useProjectCatalog-DDZXnSWD.js} +1 -1
- package/web/assets/useProjectCloudOrg-Dg9jETJH.js +1 -0
- package/web/assets/useServiceUrlHost-BhfsTBGb.js +1 -0
- package/web/assets/{xml-urt_37co.js → xml-D6t1pRy0.js} +1 -1
- package/web/assets/{yaml-DQgQKRaA.js → yaml-DAzbEAMy.js} +1 -1
- package/web/index.html +1 -1
- package/web/assets/AgentTerminalPage-C88TWOpv.js +0 -1
- package/web/assets/AiChatPage-C7Fwkm3H.js +0 -1
- package/web/assets/AppLayout-D5uzw5Lg.js +0 -1
- package/web/assets/AuditPage-LGN72fPt.js +0 -1
- package/web/assets/CloudAccountPage-NDf1HzKg.js +0 -1
- package/web/assets/CloudAccountPage-WIW6QDtJ.js +0 -1
- package/web/assets/CloudMessagingPage-CewyN6Br.js +0 -2
- package/web/assets/DashboardPage-BW6vTxoh.js +0 -164
- package/web/assets/DirectoryPickerDialog-CG1pl1FS.js +0 -1
- package/web/assets/EnvironmentForm-VSWiFSCk.js +0 -108
- package/web/assets/EnvironmentFormPage-C9ageHqI.js +0 -1
- package/web/assets/EnvironmentListPage-CH2lTuZa.js +0 -1
- package/web/assets/KanbanBoardPage-C8Wstz1K.css +0 -1
- package/web/assets/KanbanBoardPage-Dm0vlVJC.js +0 -4
- package/web/assets/KanbanListPage-Bn2e52T0.js +0 -1
- package/web/assets/KanbanListPage-C_zN70Af.css +0 -1
- package/web/assets/LaunchProjectPage-CsVEC9XK.js +0 -1
- package/web/assets/LaunchServicesPage-eqVt9k71.js +0 -1
- package/web/assets/LogViewer-BuEfKhGy.js +0 -3
- package/web/assets/OrgKeyPrompt-CP_twrjK.js +0 -1
- package/web/assets/OrgLogo-C9tIdIKQ.js +0 -1
- package/web/assets/ProcessControls-DtHM26HD.js +0 -1
- package/web/assets/ProcessDetailPage-CInTvQzk.js +0 -1
- package/web/assets/RandomJobTestPage-DvNT-fHM.js +0 -2
- package/web/assets/ScenarioEditorPage-Cy-mEocS.js +0 -14
- package/web/assets/SendToChatDialog-7yjimfM6.js +0 -1
- package/web/assets/ServiceControlsBar-BIw8gvT4.js +0 -1
- package/web/assets/ServiceDetailPage-Dh8heavF.js +0 -2
- package/web/assets/ServiceFormPage-CPvcHTvF.js +0 -1
- package/web/assets/SettingsPage-DIwUGrhc.js +0 -2063
- package/web/assets/UnlockPage-CaloUcpR.js +0 -1
- package/web/assets/VaultMigrationPage-CXpnpmtH.js +0 -1
- package/web/assets/VersionBadge-CDFKMmiB.js +0 -1
- package/web/assets/WikiPage-fprCcfQb.js +0 -1
- package/web/assets/WikiView-BSstJNUm.js +0 -1
- package/web/assets/add-scalar-classes-W7zkEwly.js +0 -387
- package/web/assets/card-DoiDmzQ4.js +0 -32
- package/web/assets/cloud-chat.store-6ZDTW64E.js +0 -1
- package/web/assets/cloud-client-MqmRMv1P.js +0 -1
- package/web/assets/cloud-session-CRBMHBfS.js +0 -1
- package/web/assets/column-DkPii5Hb.js +0 -763
- package/web/assets/interface-content-folder.svg-CDjqJkA6.js +0 -1
- package/web/assets/modal-D4uoXhc8.js +0 -1
- package/web/assets/modal-D_IYbQwG.js +0 -5
- package/web/assets/multiselect-BwtDM_SI.js +0 -251
- package/web/assets/process.store-CKag9k1W.js +0 -1
- package/web/assets/project-launch.store-Bq1mbmiC.js +0 -1
- package/web/assets/project.store-CPpr3pLf.js +0 -1
- package/web/assets/router-B5zQ1kEJ.js +0 -1
- package/web/assets/settings-scope-7icbsnqh.js +0 -1
- package/web/assets/settings.store-Cr09JQn2.js +0 -1
- package/web/assets/src-D3VR_y-X.js +0 -1
- package/web/assets/src-DUQBbN9_.js +0 -572
- package/web/assets/theme-B9SZBnza.js +0 -1
- package/web/assets/trpc-rld4yQko.js +0 -1
- package/web/assets/useAiChatDrawer-Co833XxT.js +0 -1
- package/web/assets/useEnvVarAutocomplete-D0iCOu68.js +0 -1
- package/web/assets/useProjectCloudOrg-CAg2yHZP.js +0 -1
- package/web/assets/useServiceUrlHost-DWJP4dsX.js +0 -1
- /package/web/assets/{abap-B8g_2xYy.js → abap-BMzrySmF.js} +0 -0
- /package/web/assets/{apex-Bm8w4T5A.js → apex-B-FTsm78.js} +0 -0
- /package/web/assets/{azcli-BqdUW6F8.js → azcli--oTP982j.js} +0 -0
- /package/web/assets/{bat-Bngf0lQU.js → bat-BoGrdVjd.js} +0 -0
- /package/web/assets/{bicep-DzO554JS.js → bicep-CzjrcFxJ.js} +0 -0
- /package/web/assets/{browser-BJX5ZrVN.js → browser-TSICzjSV.js} +0 -0
- /package/web/assets/{cameligo-Bcy3ohdb.js → cameligo-C5PP9BK8.js} +0 -0
- /package/web/assets/{clojure-CZbiqkDV.js → clojure-CQZ7UtVM.js} +0 -0
- /package/web/assets/{coffee-CDuhyV-7.js → coffee-D04oxsa9.js} +0 -0
- /package/web/assets/{cpp-BklV8f4x.js → cpp-CrdHZict.js} +0 -0
- /package/web/assets/{csharp-BelR_XiC.js → csharp-DEojCdJ9.js} +0 -0
- /package/web/assets/{csp-DUjeBS2K.js → csp-B_k4_rnT.js} +0 -0
- /package/web/assets/{css-CvbYbEko.js → css-pkVaNQ-t.js} +0 -0
- /package/web/assets/{cypher-Dwrbk-SP.js → cypher-InDI0ycO.js} +0 -0
- /package/web/assets/{dart-BW1E5h9O.js → dart-CMBDu6Jq.js} +0 -0
- /package/web/assets/{dockerfile-B41ilpF9.js → dockerfile-Dus6X0qp.js} +0 -0
- /package/web/assets/{ecl-BZE6Vxna.js → ecl-DcGwRpWZ.js} +0 -0
- /package/web/assets/{elixir-CtYg0bLh.js → elixir-BNgAfgpS.js} +0 -0
- /package/web/assets/{flow9-Sgvy48_I.js → flow9-b9BSTtId.js} +0 -0
- /package/web/assets/{fsharp-BzAfXfKg.js → fsharp-DsEl3ylC.js} +0 -0
- /package/web/assets/{go-D7oonABu.js → go-BVk-2zoJ.js} +0 -0
- /package/web/assets/{graphql-BEN-qkl0.js → graphql-CCOPKJOV.js} +0 -0
- /package/web/assets/{hcl-CE0OhwCq.js → hcl-Bk9fje7b.js} +0 -0
- /package/web/assets/{ini-CCLtcvjA.js → ini-Bfgwaf--.js} +0 -0
- /package/web/assets/{java-Bao8w_gp.js → java-X9tlBUoe.js} +0 -0
- /package/web/assets/{julia-Dr0hFYrl.js → julia-CSpUiZse.js} +0 -0
- /package/web/assets/{kotlin-Cbfu8lcM.js → kotlin-D9ZC3fV-.js} +0 -0
- /package/web/assets/{less-BU4gEpXr.js → less-D_gN2wJJ.js} +0 -0
- /package/web/assets/{lexon-GpBGGdTS.js → lexon-DQORBJ3L.js} +0 -0
- /package/web/assets/{lua-DIPKk37y.js → lua-cfsK9g-g.js} +0 -0
- /package/web/assets/{m3-CSOypKGf.js → m3-CqoRZqX5.js} +0 -0
- /package/web/assets/{markdown-VDqAgkyM.js → markdown-7m0w-Hon.js} +0 -0
- /package/web/assets/{mips-BJWI6dX7.js → mips-Jgck3TtW.js} +0 -0
- /package/web/assets/{msdax-BLpuE5Dc.js → msdax-DZzPcvtl.js} +0 -0
- /package/web/assets/{mysql-ZsxiEUoY.js → mysql-BDgvhBkY.js} +0 -0
- /package/web/assets/{objective-c-DcQa1iPc.js → objective-c-s7vO3TPA.js} +0 -0
- /package/web/assets/{pascal-u-hmXdyn.js → pascal-WgQqmw9E.js} +0 -0
- /package/web/assets/{pascaligo-DqbP-1C6.js → pascaligo-DdIoMHxz.js} +0 -0
- /package/web/assets/{perl-CUeQpRkH.js → perl-DscrjHeC.js} +0 -0
- /package/web/assets/{pgsql-CQ7FhAFN.js → pgsql-BoaUrFoQ.js} +0 -0
- /package/web/assets/{php-BEf_fu3E.js → php-CozsHsln.js} +0 -0
- /package/web/assets/{pla-CXNNbT0w.js → pla-BmgIF2rB.js} +0 -0
- /package/web/assets/{postiats-CIXLZwPb.js → postiats-kTIQO6-c.js} +0 -0
- /package/web/assets/{powerquery-DnGPASFA.js → powerquery-Bge8QN2f.js} +0 -0
- /package/web/assets/{powershell-1Y1kqIZS.js → powershell-C_EAICI2.js} +0 -0
- /package/web/assets/{protobuf-Cfo9haoG.js → protobuf-CeVRf2v4.js} +0 -0
- /package/web/assets/{pug-BujEZqmy.js → pug-v3OQoW7_.js} +0 -0
- /package/web/assets/{qsharp-BL9AqNGD.js → qsharp-B8FD4CzE.js} +0 -0
- /package/web/assets/{r-D0dhpGOM.js → r-DoTn9Ot2.js} +0 -0
- /package/web/assets/{redis-BMLwD7W9.js → redis-B9eZmNDt.js} +0 -0
- /package/web/assets/{redshift-CkHh73og.js → redshift-hkVOq3Na.js} +0 -0
- /package/web/assets/{restructuredtext-DZ-LF65W.js → restructuredtext-go0p3fHP.js} +0 -0
- /package/web/assets/{ruby-UzPHTzc9.js → ruby-DlJSZQx7.js} +0 -0
- /package/web/assets/{rust-ja9NGnXZ.js → rust-CS0ULEAB.js} +0 -0
- /package/web/assets/{sb-BNdOJbMY.js → sb-BWXLY6C5.js} +0 -0
- /package/web/assets/{scala-LlhkyN6l.js → scala-BnuniK5f.js} +0 -0
- /package/web/assets/{scheme-BAj99YIn.js → scheme-rpzgzOI1.js} +0 -0
- /package/web/assets/{scss-chS-xxB3.js → scss-CDZa-oHG.js} +0 -0
- /package/web/assets/{shared-sse-_VzlL_VX.js → shared-sse-DUHeXaFO.js} +0 -0
- /package/web/assets/{shell-CcH7eYIc.js → shell-Ddbp1LTu.js} +0 -0
- /package/web/assets/{solidity-cVvnqX-K.js → solidity-XL5oY4Gs.js} +0 -0
- /package/web/assets/{sophia-BBT-EdFw.js → sophia-C_FAm0DW.js} +0 -0
- /package/web/assets/{sparql-DGEqOrB6.js → sparql-Bkcu5lIB.js} +0 -0
- /package/web/assets/{sql-CcTErTxM.js → sql-hd2WP_Pl.js} +0 -0
- /package/web/assets/{st-Bjw-B4mN.js → st-DX23wqhB.js} +0 -0
- /package/web/assets/{swift-Bid-7bBd.js → swift-Uc9uURgY.js} +0 -0
- /package/web/assets/{systemverilog-CXju7Nd-.js → systemverilog-uwEj3oP7.js} +0 -0
- /package/web/assets/{tcl-D-Dw7JFz.js → tcl-CW0gNQFo.js} +0 -0
- /package/web/assets/{twig-BIPbzEWT.js → twig-C-fOaHGU.js} +0 -0
- /package/web/assets/{typespec-UJSutGCV.js → typespec-Cs66OMeg.js} +0 -0
- /package/web/assets/{uuid-Cro0aJm3.js → uuid-hYISTbX6.js} +0 -0
- /package/web/assets/{vb-oyG_LJw0.js → vb-f4DjbovN.js} +0 -0
- /package/web/assets/{wgsl-DXZ6ljB6.js → wgsl-D8hs7PJh.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$i as e,Aa as t,Ai as n,Bi as r,Dn as i,Ei as a,Ha as o,Hn as s,Kn as c,Li as l,Mi as u,Ni as d,Oa as f,Ri as p,Ta as ee,Wn as te,Wt as m,Xi as ne,Za as h,ba as g,bn as _,ct as re,fa as ie,gn as v,gt as y,hn as ae,ht as oe,it as b,ja as x,ji as S,ki as C,la as se,mn as w,mr as ce,pn as le,ra as ue,sa as T,st as E,un as de,ur as fe,wa as D,wi as pe,xn as O,ya as me,yt as k}from"./index-DKmDGo1r.js";import{t as A}from"./useServiceUrlHost-BhfsTBGb.js";import{t as he}from"./uuid-hYISTbX6.js";import{n as ge,t as j}from"./column-D9bX7M3H.js";import{t as M}from"./toggleswitch-CXZN5FrU.js";import{t as _e}from"./autocomplete-DxjWjky0.js";var N={key:0,class:`env-badge`},P={class:`env-badge__name`},F=s(r({__name:`EnvironmentBadge`,props:{environmentId:{}},setup(e){let r=e,i=le(),a=C(()=>i.getById(r.environmentId));function o(e){if(e)return e.startsWith(`#`)?e:`#${e}`}return(e,r)=>a.value?(T(),d(`span`,N,[n(`span`,{class:`env-badge__swatch`,style:t({backgroundColor:o(a.value.bgColor)||o(a.value.color)||`var(--p-primary-color)`})},null,4),n(`span`,P,x(a.value.name),1)])):u(``,!0)}}),[[`__scopeId`,`data-v-b70e647b`]]),ve=[`checked`,`disabled`],I={key:1,class:`pi pi-lock flag-chip__lock`},L=s(r({__name:`FlagChip`,props:{modelValue:{type:Boolean},label:{},icon:{},hint:{},locked:{type:Boolean},disabled:{type:Boolean}},emits:[`update:modelValue`],setup(e,{emit:t}){let r=e,i=t;function a(e){r.locked||r.disabled||i(`update:modelValue`,e.target.checked)}return(t,r)=>{let i=ie(`tooltip`);return ee((T(),d(`label`,{class:f([`flag-chip`,{"flag-chip--on":e.modelValue,"flag-chip--locked":e.locked||e.disabled}])},[n(`input`,{type:`checkbox`,checked:e.modelValue,disabled:e.locked||e.disabled,onChange:a},null,40,ve),e.icon?(T(),d(`i`,{key:0,class:f(e.icon)},null,2)):u(``,!0),n(`span`,null,x(e.label),1),e.locked?(T(),d(`i`,I)):u(``,!0)],2)),[[i,e.hint?{value:e.hint,showDelay:0,hideDelay:0}:void 0,void 0,{top:!0}]])}}}),[[`__scopeId`,`data-v-3bd73603`]]);const R=/^\{\{(.+)\}\}$/;var ye=/\{\{([^}]+)\}\}/g,z=`environment.`;function B(e,t){return e.startsWith(z)?t.resolvedEnv[e.slice(12)]||null:t.serviceBuiltins[e]||null}function V(e,t){let n=e.match(R);return n?B(n[1],t):null}function be(e,t){return e.replace(ye,(e,n)=>B(n,t)??e)}var H={class:`ref-group`},xe={class:`ref-option`},U={key:0,class:`pi pi-lock ref-option-secret`},Se={key:1,class:`ref-option-preview`},W=40,G=s(r({__name:`VariableRefInput`,props:{modelValue:{},inputId:{},placeholder:{default:``},disabled:{type:Boolean,default:!1},envKeys:{default:()=>[]},meta:{default:()=>({})},resolvedEnv:{default:()=>({})},serviceBuiltins:{default:()=>({})}},emits:[`update:modelValue`,`search`,`focus`,`blur`,`picked`],setup(e,{emit:t}){let r=/\{\{([^}]*)$/,i=e,a=t,{t:s}=ce(),c=o(``),l=o(``),f=o([]);function ee(){let e=c.value.toLowerCase(),t=Object.keys(i.serviceBuiltins).filter(t=>t.toLowerCase().includes(e)).map(e=>`{{${e}}}`),n=i.envKeys.map(e=>`{{environment.${e}}}`);return[...t.length?[{label:s(`variableRefInput.groupBuiltins`),items:t}]:[],...n.length?[{label:s(`variableRefInput.groupEnvironment`),items:n}]:[]]}function te(){f.value=ee()}g(()=>[i.envKeys,i.serviceBuiltins],te,{deep:!0});function m(e){let t=e.match(R);return t?t[1].replace(/^environment\./,``):e}function ne(e){let t=e.match(R);return!t||!t[1].startsWith(`environment.`)?!1:i.meta[t[1].slice(12)]?.isSecret??!1}function re(e){let t=e.match(R);if(!t)return null;let n=t[1];if(n.startsWith(`environment.`)){let e=i.meta[n.slice(12)];if(!e||e.isSecret)return null}let r=B(n,{resolvedEnv:i.resolvedEnv,serviceBuiltins:i.serviceBuiltins});return r?ie(r):null}function ie(e){return e.length>W?`${e.slice(0,W)}…`:e}function v(e){if(l.value=e.query,y)y=!1,c.value=``;else{let t=e.query.match(r);c.value=(t?t[1]:e.query).replace(/^(environment|service)\./,``).trim()}a(`search`,c.value),te()}let y=!1;function ae(){y=!0,a(`focus`)}function oe(e){let t=l.value,n=t.lastIndexOf(`{{`);a(`update:modelValue`,n===-1?e:t.slice(0,n)+e),a(`picked`)}return(t,r)=>(T(),S(h(_e),{"input-id":e.inputId,"model-value":e.modelValue,suggestions:f.value,"option-group-label":`label`,"option-group-children":`items`,placeholder:e.placeholder,class:`w-full`,"complete-on-focus":``,disabled:e.disabled,"onUpdate:modelValue":r[0]||=e=>a(`update:modelValue`,e),onComplete:v,onItemSelect:r[1]||=e=>oe(e.value),onFocus:ae,onBlur:r[2]||=e=>a(`blur`)},{optiongroup:D(({option:e})=>[n(`span`,H,x(e.label),1)]),option:D(({option:e})=>[n(`span`,xe,[p(h(_),{severity:`secondary`,value:m(e)},null,8,[`value`]),ne(e)?(T(),d(`i`,U)):re(e)?(T(),d(`span`,Se,x(re(e)),1)):u(``,!0)])]),_:1},8,[`input-id`,`model-value`,`suggestions`,`placeholder`,`disabled`]))}}),[[`__scopeId`,`data-v-ce59834d`]]);function Ce(e){let t=!1,n=!1;return async function r(){if(t){n=!0;return}t=!0;try{await e()}finally{t=!1,n&&(n=!1,await r())}}}var we={class:`key-row`},Te={class:`expansion-field expansion-field--key`},Ee=[`for`],De={key:2,class:`value-display`},Oe={key:0,class:`key-row-delete`},ke={key:0,class:`flags-row`},Ae={key:1,class:`not-secret-warning`},je={key:3,class:`expansion-field expansion-field--description`},Me={class:`expansion-label`},Ne={key:4,class:`not-secret-warning`},Pe={key:6,class:`expansion-section`},Fe={class:`section-header`},Ie={class:`section-title`},Le={class:`section-fields`},Re={class:`expansion-field expansion-field--prepost`},ze={class:`expansion-label`,for:`varrow-prefix`},Be={key:2,class:`value-display`},Ve={class:`expansion-field expansion-field--value`},He=[`for`],Ue=[`aria-label`],We={class:`value-help`},Ge={class:`value-help__title`},Ke={class:`value-help__line`},qe={class:`value-help__line value-help__line--muted`},Je={class:`value-help__subtitle`},Ye={class:`value-help__builtins`},Xe={class:`value-help__line value-help__line--muted`},Ze={key:0,class:`secret-input-wrap`},Qe=[`disabled`],$e=[`title`],et={key:1,class:`value-display value-display--with-actions`},tt={key:0,class:`value-actions`},nt={key:0},rt={key:1},it={class:`expansion-field expansion-field--prepost`},at={class:`expansion-label`,for:`varrow-suffix`},ot={key:2,class:`value-display`},st={key:0,class:`preview-value`},ct={key:0,class:`prepost-part prepost-part--pre`},lt={key:1,class:`prepost-part prepost-part--interpolation`},ut={class:`prepost-part--value prepost-resolved-inline`},dt=[`title`],ft={key:2,class:`prepost-part prepost-part--value`},pt={key:3,class:`prepost-part prepost-part--post`},mt={key:8,class:`expansion-section expansion-section--override`},ht={class:`section-header`},gt={class:`section-title`},_t={class:`pi pi-info-circle section-title__info`},vt={class:`section-fields`},yt={class:`expansion-field expansion-field--prepost`},bt={class:`expansion-label`,for:`varrow-override-prefix`},xt={class:`expansion-field expansion-field--value`},St=[`for`],Ct={key:0,class:`secret-input-wrap`},wt=[`disabled`],Tt=[`title`],Et={class:`expansion-field expansion-field--prepost`},Dt={class:`expansion-label`,for:`varrow-override-suffix`},Ot={key:1,class:`override-view`},kt={key:0,class:`value-display--with-actions`},At={class:`value-actions`},jt={key:0,class:`override-value-masked`},Mt={key:1,class:`override-value`},Nt={key:1,class:`override-value`},Pt={key:1,class:`override-empty`},Ft={key:0,class:`preview-value preview-value--override`},It={key:0,class:`prepost-part prepost-part--pre`},Lt={key:1,class:`prepost-part prepost-part--interpolation`},Rt={key:0,class:`prepost-part--value prepost-resolved-inline`},zt={key:2,class:`prepost-part prepost-part--value`},Bt={key:3,class:`prepost-part prepost-part--post`},Vt=`{{environment.KEY}}`,Ht=s(r({__name:`VariableRowEditor`,props:{environmentId:{},variableId:{},overrides:{},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},canEditSource:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showOverrideBadge:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},resolvedEnv:{default:()=>({})},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{default:()=>({})},isPending:{type:Boolean,default:!1}},emits:[`deleted`,`saved`,`autocomplete-search`,`override-changed`,`edit-source`],setup(e,{emit:t}){let r=e,i=t,s=le(),te=fe(),{t:m}=ce(),y=o(!1),oe=o(!1),b=o(!1),w=o(!1),E=o(!1),k=o(!1),A=o(null);function he(e,t){navigator.clipboard.writeText(t),A.value=e,setTimeout(()=>{A.value===e&&(A.value=null)},1500)}let ge=C(()=>s.getById(r.environmentId)?.variables?.[r.variableId]),j=o(``),M=o(``),N=o(``),P=o(``),F=o(!1),ve=o(!1),I=o(!1),ye=o(!1),z=o(!1),B=o(``),H=o(!1),xe=o(!1),U=o(!1),Se=C(()=>H.value||!!B.value),W=me(`descriptionEditor`);async function Ht(){H.value=!0,await ne(),W.value?.focus?.()}let Ut=C(()=>Z(M.value)),K=C(()=>F.value&&!Ut.value),Wt=C({get:()=>ve.value||I.value,set:e=>{ve.value=e}}),Gt=C(()=>I.value?m(`variableRowEditor.shareWithAiHintInjected`):K.value?m(`variableRowEditor.shareWithAiHint`):m(`variableRowEditor.shareWithAiHintPublic`)),Kt=C(()=>r.disabled||z.value);function qt(){let e=ge.value;j.value=e?.key??``,M.value=e?.value?.value??``,N.value=e?.value?.pre??``,P.value=e?.value?.post??``,F.value=e?.value?.isSecret??!1,ve.value=e?.value?.shareWithAi??!1,I.value=e?.value?.injectIntoAi??!1,ye.value=e?.value?.required??!1,z.value=e?.value?.overrideOnly??!1,H.value=!1,xe.value=!1,U.value=!1,B.value=e?.value?.description??``}function Jt(){z.value&&(M.value=``),Q()}ue(qt),g(ge,(e,t)=>{!t&&e&&qt()});let q=C(()=>r.overrides[r.variableId]??null),Yt=C(()=>!q.value||xe.value),Xt=C(()=>!r.editable||!!q.value||z.value||U.value);async function Zt(){U.value=!0,await ne(),document.querySelector(`#varrow-override-value-secret, #varrow-override-value-plain`)?.focus()}let J=o(``),Y=o(``),X=o(``);function Qt(){let e=q.value;J.value=e?.pre??``,Y.value=e?.value??``,X.value=e?.post??``}ue(Qt),g(q,Qt);function Z(e){return R.test(e)}function $t(e){let t=e.match(R);return t?t[1].replace(/^environment\./,``):e}let en=C(()=>({resolvedEnv:r.resolvedEnv,serviceBuiltins:r.serviceBuiltins}));function tn(e){return be(e,en.value)}function nn(e){return V(e,en.value)}function rn(e){let t=e.value;j.value=t,M.value=`{{environment.${t}}}`,F.value=!1;let n=r.autocompleteMeta?.[t];n&&(N.value=n.pre,P.value=n.post),Q()}let an=o(null),on=C(()=>re.map(e=>({ref:`{{${e.name}}}`,desc:m(`builtins.${e.descriptionKey}`)}))),Q=Ce(async()=>{if(oe.value)return;let e=j.value.trim();if(e){y.value=!0;try{await s.upsertVariable(r.environmentId,r.variableId,{key:e,value:{value:M.value,pre:N.value,post:P.value,isSecret:K.value,shareWithAi:ve.value,injectIntoAi:I.value,required:ye.value,overrideOnly:z.value,description:B.value}}),r.isPending&&i(`saved`)}catch(e){te.add({severity:`error`,summary:m(`common.error`),detail:e.message??m(`variableRowEditor.saveError`),life:4e3})}finally{y.value=!1}}});async function sn(){if(oe.value=!0,r.isPending){i(`deleted`);return}y.value=!0;try{q.value&&await s.removeOverride(r.variableId),await s.removeVariable(r.environmentId,r.variableId),i(`deleted`)}catch(e){oe.value=!1,te.add({severity:`error`,summary:m(`common.error`),detail:e.message??m(`variableRowEditor.deleteError`),life:4e3})}finally{y.value=!1}}async function $(){let e=J.value||Y.value||X.value;try{if(!e){q.value&&(await s.removeOverride(r.variableId),i(`override-changed`));return}await s.setOverride(r.variableId,{value:{value:Y.value,pre:J.value,post:X.value}}),i(`override-changed`)}catch(e){te.add({severity:`error`,summary:m(`common.error`),detail:e.message??m(`variableRowEditor.overrideError`),life:4e3})}}async function cn(){try{await s.removeOverride(r.variableId),i(`override-changed`)}catch(e){te.add({severity:`error`,summary:m(`common.error`),detail:e.message??m(`variableRowEditor.clearOverrideError`),life:4e3})}}function ln(e){let t=e.relatedTarget;(!t||!e.currentTarget.contains(t))&&Q()}return(t,r)=>{let o=ie(`tooltip`);return T(),d(`div`,{class:`expansion-form`,onFocusout:ln},[n(`div`,we,[n(`div`,Te,[n(`label`,{class:`expansion-label`,for:e.editable&&e.autocompleteEnabled?`varrow-key-ac`:`varrow-key-input`},x(h(m)(`common.key`)),9,Ee),e.editable&&e.autocompleteEnabled?(T(),S(h(_e),{key:0,"input-id":`varrow-key-ac`,modelValue:j.value,"onUpdate:modelValue":r[0]||=e=>j.value=e,suggestions:e.autocompleteSuggestions,placeholder:h(m)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:e.disabled,onComplete:r[1]||=e=>i(`autocomplete-search`,e.query),onItemSelect:rn,onBlur:h(Q)},null,8,[`modelValue`,`suggestions`,`placeholder`,`disabled`,`onBlur`])):e.editable?(T(),S(h(O),{key:1,id:`varrow-key-input`,modelValue:j.value,"onUpdate:modelValue":r[2]||=e=>j.value=e,placeholder:h(m)(`variableRowEditor.variableNamePlaceholder`),class:`w-full`,disabled:e.disabled,onBlur:h(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(T(),d(`code`,De,x(j.value),1))]),e.showDelete&&e.editable?(T(),d(`div`,Oe,[p(h(c),{icon:`pi pi-trash`,severity:`danger`,text:``,rounded:``,size:`small`,disabled:e.disabled||y.value,onClick:sn},null,8,[`disabled`])])):u(``,!0)]),e.editable?(T(),d(`div`,ke,[Ut.value?u(``,!0):(T(),S(L,{key:0,modelValue:F.value,"onUpdate:modelValue":[r[3]||=e=>F.value=e,h(Q)],label:h(m)(`variableRowEditor.secret`),icon:`pi pi-lock`,hint:h(m)(`variableRowEditor.secretHint`),disabled:e.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`])),p(L,{modelValue:Wt.value,"onUpdate:modelValue":[r[4]||=e=>Wt.value=e,h(Q)],label:h(m)(`variableRowEditor.shareWithAi`),icon:`pi pi-eye`,hint:Gt.value,locked:I.value,disabled:e.disabled},null,8,[`modelValue`,`label`,`hint`,`locked`,`disabled`,`onUpdate:modelValue`]),p(L,{modelValue:I.value,"onUpdate:modelValue":[r[5]||=e=>I.value=e,h(Q)],label:h(m)(`variableRowEditor.injectIntoAi`),icon:`pi pi-sign-in`,hint:h(m)(`variableRowEditor.injectIntoAiHint`),disabled:e.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`]),p(L,{modelValue:ye.value,"onUpdate:modelValue":[r[6]||=e=>ye.value=e,h(Q)],label:h(m)(`variableRowEditor.required`),icon:`pi pi-asterisk`,hint:h(m)(`variableRowEditor.requiredHint`),disabled:e.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`,`onUpdate:modelValue`]),p(L,{modelValue:z.value,"onUpdate:modelValue":[r[7]||=e=>z.value=e,Jt],label:h(m)(`variableRowEditor.overrideOnly`),icon:`pi pi-desktop`,hint:h(m)(`variableRowEditor.overrideOnlyHint`),disabled:e.disabled},null,8,[`modelValue`,`label`,`hint`,`disabled`])])):u(``,!0),e.editable&&!F.value&&!Z(M.value)?(T(),d(`div`,Ae,[r[59]||=n(`i`,{class:`pi pi-info-circle`},null,-1),n(`span`,null,x(h(m)(`variableRowEditor.notSecretWarning`)),1)])):u(``,!0),e.editable&&!Se.value?(T(),d(`button`,{key:2,type:`button`,class:`add-section-btn`,onClick:Ht},[r[60]||=n(`i`,{class:`pi pi-plus`},null,-1),n(`span`,null,x(h(m)(`variableRowEditor.addDescription`)),1)])):u(``,!0),Se.value?(T(),d(`div`,je,[n(`label`,Me,x(h(m)(`variableRowEditor.description`)),1),p(h(v),{ref_key:`descriptionEditor`,ref:W,modelValue:B.value,"onUpdate:modelValue":r[8]||=e=>B.value=e,markdown:``,"min-height":`4rem`,"max-height":`14rem`,editable:e.editable&&!e.disabled,placeholder:h(m)(`variableRowEditor.descriptionPlaceholder`),onLinkClick:h(ae)},null,8,[`modelValue`,`editable`,`placeholder`,`onLinkClick`])])):u(``,!0),e.editable&&z.value?(T(),d(`div`,Ne,[r[61]||=n(`i`,{class:`pi pi-info-circle`},null,-1),n(`span`,null,x(h(m)(`variableRowEditor.overrideOnlyNotice`)),1)])):u(``,!0),Yt.value?u(``,!0):(T(),d(`button`,{key:5,type:`button`,class:`add-section-btn`,onClick:r[9]||=e=>xe.value=!0},[r[62]||=n(`i`,{class:`pi pi-chevron-right`},null,-1),n(`span`,null,x(h(m)(`variableRowEditor.showSharedValue`)),1)])),Yt.value?(T(),d(`div`,Pe,[n(`div`,Fe,[n(`div`,Ie,x(h(m)(`variableRowEditor.value`)),1),q.value?(T(),d(`button`,{key:0,type:`button`,class:`add-section-btn`,onClick:r[10]||=e=>xe.value=!1},[r[63]||=n(`i`,{class:`pi pi-chevron-up`},null,-1),n(`span`,null,x(h(m)(`variableRowEditor.hideSharedValue`)),1)])):u(``,!0)]),n(`div`,Le,[n(`div`,Re,[n(`label`,ze,x(h(m)(`variableRowEditor.prefix`)),1),e.editable&&e.autocompleteEnabled?(T(),S(G,{key:0,"input-id":`varrow-prefix`,modelValue:N.value,"onUpdate:modelValue":r[11]||=e=>N.value=e,placeholder:h(m)(`variableRowEditor.prefixPlaceholder`),"env-keys":e.autocompleteSuggestions,meta:e.autocompleteMeta,"resolved-env":e.resolvedEnv,"service-builtins":e.serviceBuiltins,disabled:e.disabled,onSearch:r[12]||=e=>i(`autocomplete-search`,e),onBlur:r[13]||=e=>h(Q)(),onPicked:r[14]||=e=>h(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):e.editable?(T(),S(h(O),{key:1,id:`varrow-prefix`,modelValue:N.value,"onUpdate:modelValue":r[15]||=e=>N.value=e,placeholder:h(m)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:e.disabled,onBlur:h(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(T(),d(`code`,Be,x(N.value||`—`),1))]),n(`div`,Ve,[n(`label`,{class:`expansion-label`,for:K.value?`varrow-value-secret`:`varrow-value-plain`},[l(x(h(m)(`variableRowEditor.value`))+` `,1),e.editable?(T(),d(`button`,{key:0,type:`button`,class:`value-help-btn`,"aria-label":h(m)(`variableRowEditor.helpTitle`),onClick:r[16]||=pe(e=>an.value?.toggle(e),[`prevent`,`stop`])},[...r[64]||=[n(`i`,{class:`pi pi-info-circle`},null,-1)]],8,Ue)):u(``,!0)],8,He),p(h(de),{ref_key:`valueHelp`,ref:an},{default:D(()=>[n(`div`,We,[n(`div`,Ge,x(h(m)(`variableRowEditor.helpTitle`)),1),n(`p`,Ke,[l(x(h(m)(`variableRowEditor.helpReference`))+` `,1),n(`code`,null,x(Vt))]),n(`p`,qe,x(h(m)(`variableRowEditor.helpAutocomplete`)),1),n(`div`,Je,x(h(m)(`variableRowEditor.helpBuiltinsTitle`)),1),n(`ul`,Ye,[(T(!0),d(a,null,se(on.value,e=>(T(),d(`li`,{key:e.ref},[n(`code`,null,x(e.ref),1),n(`span`,null,x(e.desc),1)]))),128))]),n(`p`,Xe,x(h(m)(`variableRowEditor.helpPrePost`)),1)])]),_:1},512),e.editable?(T(),d(a,{key:0},[K.value?(T(),d(`div`,Ze,[p(h(O),{id:`varrow-value-secret`,modelValue:M.value,"onUpdate:modelValue":r[17]||=e=>M.value=e,type:E.value?`text`:`password`,placeholder:h(m)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:Kt.value,onBlur:h(Q)},null,8,[`modelValue`,`type`,`placeholder`,`disabled`,`onBlur`]),n(`button`,{type:`button`,class:`secret-toggle`,disabled:e.disabled,onClick:r[18]||=e=>E.value=!E.value,tabindex:`-1`},[n(`i`,{class:f(E.value?`pi pi-eye-slash`:`pi pi-eye`)},null,2)],8,Qe)])):Z(M.value)&&!b.value?(T(),d(`span`,{key:1,class:`interpolation-badge`,title:M.value,onClick:r[19]||=e=>b.value=!0},[p(h(_),{severity:`secondary`,value:$t(M.value)},null,8,[`value`]),r[65]||=n(`i`,{class:`pi pi-pencil interpolation-edit-icon`},null,-1)],8,$e)):e.autocompleteEnabled?(T(),S(G,{key:2,"input-id":`varrow-value-plain`,modelValue:M.value,"onUpdate:modelValue":r[20]||=e=>M.value=e,placeholder:h(m)(`variableRowEditor.valuePlaceholder`),"env-keys":e.autocompleteSuggestions,meta:e.autocompleteMeta,"resolved-env":e.resolvedEnv,"service-builtins":e.serviceBuiltins,disabled:Kt.value,onSearch:r[21]||=e=>i(`autocomplete-search`,e),onFocus:r[22]||=e=>b.value=!0,onBlur:r[23]||=e=>{b.value=!1,h(Q)()},onPicked:r[24]||=e=>h(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(T(),S(h(O),{key:3,id:`varrow-value-plain`,modelValue:M.value,"onUpdate:modelValue":r[25]||=e=>M.value=e,placeholder:h(m)(`variableRowEditor.valuePlaceholder`),class:`w-full`,disabled:Kt.value,onFocus:r[26]||=e=>b.value=!0,onBlur:r[27]||=e=>{b.value=!1,h(Q)()}},null,8,[`modelValue`,`placeholder`,`disabled`]))],64)):(T(),d(`span`,et,[M.value?(T(),d(`span`,tt,[K.value?(T(),d(`i`,{key:0,class:f([E.value?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),onClick:r[28]||=e=>E.value=!E.value},null,2)):u(``,!0),n(`i`,{class:f([A.value===`val`?`pi pi-check`:`pi pi-copy`,`action-icon`]),onClick:r[29]||=e=>he(`val`,N.value+M.value+P.value)},null,2)])):u(``,!0),Z(M.value)?(T(),S(h(_),{key:1,severity:`secondary`,value:$t(M.value)},null,8,[`value`])):K.value?(T(),d(a,{key:2},[E.value?(T(),d(`span`,rt,x(M.value),1)):(T(),d(`span`,nt,`***`))],64)):(T(),d(a,{key:3},[l(x(M.value),1)],64))]))]),n(`div`,it,[n(`label`,at,x(h(m)(`variableRowEditor.suffix`)),1),e.editable&&e.autocompleteEnabled?(T(),S(G,{key:0,"input-id":`varrow-suffix`,modelValue:P.value,"onUpdate:modelValue":r[30]||=e=>P.value=e,placeholder:h(m)(`variableRowEditor.suffixPlaceholder`),"env-keys":e.autocompleteSuggestions,meta:e.autocompleteMeta,"resolved-env":e.resolvedEnv,"service-builtins":e.serviceBuiltins,disabled:e.disabled,onSearch:r[31]||=e=>i(`autocomplete-search`,e),onBlur:r[32]||=e=>h(Q)(),onPicked:r[33]||=e=>h(Q)()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):e.editable?(T(),S(h(O),{key:1,id:`varrow-suffix`,modelValue:P.value,"onUpdate:modelValue":r[34]||=e=>P.value=e,placeholder:h(m)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:e.disabled,onBlur:h(Q)},null,8,[`modelValue`,`placeholder`,`disabled`,`onBlur`])):(T(),d(`code`,ot,x(P.value||`—`),1))])]),K.value?u(``,!0):(T(),d(`code`,st,[N.value?(T(),d(`span`,ct,x(tn(N.value)),1)):u(``,!0),Z(M.value)?(T(),d(`span`,lt,[nn(M.value)==null?(T(),d(a,{key:1},[p(h(_),{severity:`secondary`,value:$t(M.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),r[66]||=n(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(T(),d(a,{key:0},[n(`span`,ut,x(nn(M.value)),1),e.canEditSource?(T(),d(`i`,{key:0,class:`pi pi-pencil edit-source-icon`,title:h(m)(`variablesTable.editParentTitle`),onClick:r[35]||=pe(e=>i(`edit-source`),[`stop`])},null,8,dt)):u(``,!0)],64))])):(T(),d(`span`,ft,x(tn(M.value)||`…`),1)),P.value?(T(),d(`span`,pt,x(tn(P.value)),1)):u(``,!0)]))])):u(``,!0),e.showOverrides&&j.value?.trim()&&e.editable&&!Xt.value?(T(),d(`button`,{key:7,type:`button`,class:`add-section-btn`,onClick:Zt},[r[67]||=n(`i`,{class:`pi pi-plus`},null,-1),n(`span`,null,x(h(m)(`variableRowEditor.addOverride`)),1)])):u(``,!0),e.showOverrides&&j.value?.trim()&&Xt.value?(T(),d(`div`,mt,[n(`div`,ht,[n(`div`,gt,[l(x(h(m)(`variableRowEditor.localOverride`))+` `,1),ee(n(`i`,_t,null,512),[[o,{value:h(m)(`variableRowEditor.localOverrideHint`),showDelay:0,hideDelay:0},void 0,{top:!0}]])]),e.editable&&q.value?(T(),S(h(c),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`danger`,title:h(m)(`variableRowEditor.clearOverride`),disabled:e.disabled,onClick:cn},null,8,[`title`,`disabled`])):u(``,!0)]),n(`div`,vt,[e.editable?(T(),d(a,{key:0},[n(`div`,yt,[n(`label`,bt,x(h(m)(`variableRowEditor.prefix`)),1),e.autocompleteEnabled?(T(),S(G,{key:0,"input-id":`varrow-override-prefix`,modelValue:J.value,"onUpdate:modelValue":r[36]||=e=>J.value=e,placeholder:h(m)(`variableRowEditor.prefixPlaceholder`),"env-keys":e.autocompleteSuggestions,meta:e.autocompleteMeta,"resolved-env":e.resolvedEnv,"service-builtins":e.serviceBuiltins,disabled:e.disabled,onSearch:r[37]||=e=>i(`autocomplete-search`,e),onBlur:r[38]||=e=>$(),onPicked:r[39]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(T(),S(h(O),{key:1,id:`varrow-override-prefix`,modelValue:J.value,"onUpdate:modelValue":r[40]||=e=>J.value=e,placeholder:h(m)(`variableRowEditor.prefixPlaceholder`),class:`w-full`,disabled:e.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`]))]),n(`div`,xt,[n(`label`,{class:`expansion-label`,for:K.value?`varrow-override-value-secret`:`varrow-override-value-plain`},x(h(m)(`variableRowEditor.value`)),9,St),K.value?(T(),d(`div`,Ct,[p(h(O),{id:`varrow-override-value-secret`,modelValue:Y.value,"onUpdate:modelValue":r[41]||=e=>Y.value=e,type:k.value?`text`:`password`,placeholder:h(m)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:e.disabled,onBlur:$},null,8,[`modelValue`,`type`,`placeholder`,`disabled`]),n(`button`,{type:`button`,class:`secret-toggle`,disabled:e.disabled,onClick:r[42]||=e=>k.value=!k.value,tabindex:`-1`},[n(`i`,{class:f(k.value?`pi pi-eye-slash`:`pi pi-eye`)},null,2)],8,wt)])):Z(Y.value)&&!w.value?(T(),d(`span`,{key:1,class:`interpolation-badge`,title:Y.value,onClick:r[43]||=e=>w.value=!0},[p(h(_),{severity:`secondary`,value:$t(Y.value)},null,8,[`value`]),r[68]||=n(`i`,{class:`pi pi-pencil interpolation-edit-icon`},null,-1)],8,Tt)):e.autocompleteEnabled?(T(),S(G,{key:2,"input-id":`varrow-override-value-plain`,modelValue:Y.value,"onUpdate:modelValue":r[44]||=e=>Y.value=e,placeholder:h(m)(`variableRowEditor.overrideValuePlaceholder`),"env-keys":e.autocompleteSuggestions,meta:e.autocompleteMeta,"resolved-env":e.resolvedEnv,"service-builtins":e.serviceBuiltins,disabled:e.disabled,onSearch:r[45]||=e=>i(`autocomplete-search`,e),onFocus:r[46]||=e=>w.value=!0,onBlur:r[47]||=e=>{w.value=!1,$()},onPicked:r[48]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(T(),S(h(O),{key:3,id:`varrow-override-value-plain`,modelValue:Y.value,"onUpdate:modelValue":r[49]||=e=>Y.value=e,placeholder:h(m)(`variableRowEditor.overrideValuePlaceholder`),class:`w-full`,disabled:e.disabled,onFocus:r[50]||=e=>w.value=!0,onBlur:r[51]||=e=>{w.value=!1,$()}},null,8,[`modelValue`,`placeholder`,`disabled`]))]),n(`div`,Et,[n(`label`,Dt,x(h(m)(`variableRowEditor.suffix`)),1),e.autocompleteEnabled?(T(),S(G,{key:0,"input-id":`varrow-override-suffix`,modelValue:X.value,"onUpdate:modelValue":r[52]||=e=>X.value=e,placeholder:h(m)(`variableRowEditor.suffixPlaceholder`),"env-keys":e.autocompleteSuggestions,meta:e.autocompleteMeta,"resolved-env":e.resolvedEnv,"service-builtins":e.serviceBuiltins,disabled:e.disabled,onSearch:r[53]||=e=>i(`autocomplete-search`,e),onBlur:r[54]||=e=>$(),onPicked:r[55]||=e=>$()},null,8,[`modelValue`,`placeholder`,`env-keys`,`meta`,`resolved-env`,`service-builtins`,`disabled`])):(T(),S(h(O),{key:1,id:`varrow-override-suffix`,modelValue:X.value,"onUpdate:modelValue":r[56]||=e=>X.value=e,placeholder:h(m)(`variableRowEditor.suffixPlaceholder`),class:`w-full`,disabled:e.disabled,onBlur:$},null,8,[`modelValue`,`placeholder`,`disabled`]))])],64)):(T(),d(`div`,Ot,[q.value?(T(),d(`span`,kt,[n(`span`,At,[K.value||q.value.isSecret?(T(),d(`i`,{key:0,class:f([k.value?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),onClick:r[57]||=e=>k.value=!k.value},null,2)):u(``,!0),n(`i`,{class:f([A.value===`ovr`?`pi pi-check`:`pi pi-copy`,`action-icon`]),onClick:r[58]||=e=>he(`ovr`,q.value.pre+q.value.value+q.value.post)},null,2)]),K.value||q.value.isSecret?(T(),d(a,{key:0},[k.value?(T(),d(`code`,Mt,x(q.value.pre)+x(q.value.value)+x(q.value.post),1)):(T(),d(`span`,jt,`***`))],64)):(T(),d(`code`,Nt,x(q.value.pre)+x(q.value.value)+x(q.value.post),1))])):(T(),d(`span`,Pt,`—`))]))]),e.editable&&!K.value&&(J.value||Y.value||X.value)?(T(),d(`code`,Ft,[J.value?(T(),d(`span`,It,x(tn(J.value)),1)):u(``,!0),Z(Y.value)?(T(),d(`span`,Lt,[nn(Y.value)==null?(T(),d(a,{key:1},[p(h(_),{severity:`secondary`,value:$t(Y.value),style:{"font-size":`0.7rem`}},null,8,[`value`]),r[69]||=n(`span`,{class:`prepost-unresolved`},`(?)`,-1)],64)):(T(),d(`span`,Rt,x(nn(Y.value)),1))])):(T(),d(`span`,zt,x(tn(Y.value)||`…`),1)),X.value?(T(),d(`span`,Bt,x(tn(X.value)),1)):u(``,!0)])):u(``,!0)])):u(``,!0)],32)}}}),[[`__scopeId`,`data-v-74a381ec`]]),Ut={class:`table-toolbar`},K={key:0,class:`overrides-filter`},Wt={for:`overrides-filter`},Gt={class:`text-center py-4 text-gray-500`},Kt={class:`row-key-cell`},qt={class:`row-key-line`},Jt={class:`row-key`},q=[`title`],Yt=[`title`],Xt={key:1,class:`resolved-from-line`},Zt={class:`row-value`},J=[`title`,`onClick`],Y=[`title`,`onClick`],X={key:1,class:`value-levels`},Qt={class:`resolved-level`},Z={key:0,class:`secret-mask`},$t=[`title`],en={key:0,class:`secret-mask`},tn=[`title`],nn=[`title`],rn={key:6,class:`empty-value`},an={key:0,class:`override-indicator`},on=[`title`,`onClick`],Q=[`title`,`onClick`],sn={key:0,class:`override-value-masked`},$=[`title`],cn=[`title`],ln={key:0,class:`parent-edit`},un={class:`parent-edit__field`},dn={class:`parent-edit__label`,for:`parent-edit-value`},fn={class:`parent-edit__usages`},pn={class:`parent-edit__usages-title`},mn={key:0,class:`parent-edit__usages-loading`},hn={key:0,class:`parent-edit__usage-list`},gn={class:`parent-edit__usage-env`},_n={key:0,class:`parent-edit__usage-svc`},vn={key:1,class:`parent-edit__usages-empty`},yn=40,bn=200,xn=24,Sn=s(r({__name:`VariablesTable`,props:{environmentId:{},resolvedEnv:{default:()=>({})},sources:{default:()=>({})},editable:{type:Boolean,default:!0},showOverrides:{type:Boolean,default:!1},showOverrideBadge:{type:Boolean,default:!1},showDelete:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},autocompleteEnabled:{type:Boolean,default:!1},autocompleteSuggestions:{default:()=>[]},autocompleteMeta:{default:()=>({})},serviceBuiltins:{},scrollHeight:{default:`auto`}},emits:[`autocomplete-search`,`variables-changed`],setup(t,{emit:r}){let s=/^\{\{(.+)\}\}$/,ee=/^\{\{environment\.(.+)\}\}$/,m=Object.fromEntries(re.map(e=>[e.name,``])),g=t,ie=r,{t:v}=ce(),y=le(),ae=C(()=>Object.keys(g.sources).length>0),oe=C(()=>Object.keys(g.resolvedEnv).length>0),b=me(`rootRef`),w=o(null),E=C(()=>g.scrollHeight===`auto`?w.value??`460px`:g.scrollHeight);function de(){if(g.scrollHeight!==`auto`)return;let e=b.value;if(!e)return;let t=(e.querySelector(`.p-datatable-table-container`)??e).getBoundingClientRect().top,n=window.innerHeight-t-xn;w.value=`${Math.max(bn,Math.round(n))}px`}let k=null;ue(()=>{ne(de),window.addEventListener(`resize`,de),typeof ResizeObserver<`u`&&b.value&&(k=new ResizeObserver(()=>de()),k.observe(document.body))}),e(()=>{window.removeEventListener(`resize`,de),k?.disconnect(),k=null});let A=o(``),_e=o(!1),N=o({});async function P(){if(g.showOverrides)try{let e=await y.getOverrides(),t={};for(let[n,r]of Object.entries(e)){let e=r;t[n]={value:e.value.value,pre:e.value.pre,post:e.value.post,isSecret:e.value.isSecret}}N.value=t}catch{}}ue(P);let ve=C(()=>y.getById(g.environmentId));function I(e){return ve.value?.variables?.[e]}let L=o([]),R=C(()=>{let e=Object.keys(ve.value?.variables??{}).map(e=>({variableId:e})),t=new Set(e.map(e=>e.variableId)),n=L.value.filter(e=>!t.has(e)).map(e=>({variableId:e}));return[...e,...n]}),ye=me(`tableRef`),z=o({}),B=o([]),V=o(new Set);function be(e){let t=new Set(V.value);t.has(e)?t.delete(e):t.add(e),V.value=t}let H=o(null);function xe(e,t){navigator.clipboard.writeText(t),H.value=e,setTimeout(()=>{H.value===e&&(H.value=null)},1500)}function U(e){let t=I(e);if(!t)return``;let n=t.value?.value??``;return Le(n)?ze(n)??n:(t.value?.pre??``)+n+(t.value?.post??``)}let Se=fe(),W=o(null),G=o(!1),Ce=o(!1),we=o(!1),Te=0,Ee=o([]);async function De(e){let t=g.sources[e]?.resolvedFrom,n=I(e)?.value?.value??``;if(!t||!n)return;let r=Re(n),i=y.getById(t.environmentId),a=Object.entries(i?.variables??{}).find(([,e])=>e.key===r);if(!a){Se.add({severity:`warn`,summary:v(`variablesTable.editParentNotFound`),life:4e3});return}let[o,s]=a;W.value={key:r,environmentId:t.environmentId,environmentName:t.environmentName,variableId:o,value:s.value?.value??``,pre:s.value?.pre??``,post:s.value?.post??``,isSecret:s.value?.isSecret??!1,shareWithAi:s.value?.shareWithAi??!1,injectIntoAi:s.value?.injectIntoAi??!1},Ee.value=[],G.value=!0,Oe(r,t.environmentId)}async function Oe(e,t){let n=++Te;we.value=!0;try{let r=y.currentProjectId;if(!r)return;let i=await y.keyUsages(r,e,t);if(n!==Te)return;Ee.value=[...i.inheritedBy.map(e=>({kind:`inherits`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.definedIn.map(e=>({kind:`defines`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{}})),...i.referencedBy.map(e=>({kind:`references`,environmentName:e.environmentName,...e.serviceName?{serviceName:e.serviceName}:{},viaKey:e.key}))]}catch{n===Te&&(Ee.value=[])}finally{n===Te&&(we.value=!1)}}async function ke(){let e=W.value;if(e){Ce.value=!0;try{await y.upsertVariable(e.environmentId,e.variableId,{key:e.key,value:{value:e.value,pre:e.pre,post:e.post,isSecret:e.isSecret,shareWithAi:e.shareWithAi,injectIntoAi:e.injectIntoAi}}),G.value=!1,ie(`variables-changed`)}catch(e){Se.add({severity:`error`,summary:v(`common.error`),detail:e.message,life:4e3})}finally{Ce.value=!1}}}function Ae(e){let t=N.value[e];return t?t.pre+t.value+t.post:``}let je=C(()=>{let e=[...R.value];if(_e.value&&(e=e.filter(e=>!!N.value[e.variableId])),A.value.trim()){let t=A.value.toLowerCase();e=e.filter(e=>{let n=I(e.variableId);if(!n)return!1;if(n.key.toLowerCase().includes(t)||(n.value?.value??``).toLowerCase().includes(t))return!0;let r=N.value[e.variableId];return!!(r&&r.value.toLowerCase().includes(t))})}return B.value.length>0?e.sort((e,t)=>{let n=B.value.indexOf(e.variableId),r=B.value.indexOf(t.variableId);return n===-1?1:r===-1?-1:n-r}):e.sort((e,t)=>{let n=I(e.variableId)?.key??``,r=I(t.variableId)?.key??``;return n?r?n.localeCompare(r):-1:1}),e});function Me(e){let t=e.data.variableId;z.value[t]?(z.value={},B.value=[],Ne(t)):(B.value=je.value.map(e=>e.variableId),z.value={[t]:!0})}function Ne(e){ne(()=>{let t=ye.value?.$el;if(!t)return;let n=je.value.findIndex(t=>t.variableId===e);n<0||t.querySelectorAll(`tbody tr[data-p-index]`)[n]?.scrollIntoView({block:`nearest`,behavior:`smooth`})})}function Pe(e){L.value=L.value.filter(t=>t!==e),z.value[e]&&(z.value={},B.value=[])}function Fe(e){L.value=L.value.filter(t=>t!==e)}function Ie(){let e=he();L.value=[...L.value,e],B.value=[...R.value.map(e=>e.variableId),e],ne(()=>{z.value={[e]:!0},ne(()=>{let e=document.querySelector(`.variables-expand-table .p-datatable-row-expansion:last-of-type`);e&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})})})}function Le(e){return s.test(e)}function Re(e){let t=e.match(s);return t?t[1].replace(/^(?:environment|service)\./,``):e}function ze(e){let t=e.match(ee);if(t)return g.resolvedEnv[t[1]]??null;let n=e.match(s);if(n){let e={...m,...g.serviceBuiltins};if(e[n[1]])return e[n[1]]}return null}function Be(e){return e.length<=yn?e:e.substring(0,yn)+`…`}return(e,r)=>(T(),d(a,null,[n(`div`,{ref_key:`rootRef`,ref:b,class:`variables-table`},[n(`div`,Ut,[p(h(O),{modelValue:A.value,"onUpdate:modelValue":r[0]||=e=>A.value=e,placeholder:`Search variables...`,class:`search-input`,size:`small`},null,8,[`modelValue`]),t.showOverrides?(T(),d(`div`,K,[p(h(M),{modelValue:_e.value,"onUpdate:modelValue":r[1]||=e=>_e.value=e,"input-id":`overrides-filter`},null,8,[`modelValue`]),n(`label`,Wt,x(h(v)(`variablesTable.overriddenOnly`)),1)])):u(``,!0)]),p(h(ge),{ref_key:`tableRef`,ref:ye,"expanded-rows":z.value,"onUpdate:expandedRows":r[5]||=e=>z.value=e,value:je.value,"data-key":`variableId`,class:`p-datatable-sm variables-expand-table`,scrollable:``,"scroll-height":E.value,onRowClick:Me},{empty:D(()=>[n(`div`,Gt,x(t.showAddButton?h(v)(`variablesTable.empty`):h(v)(`variablesTable.emptyReadonly`)),1)]),expansion:D(({data:e})=>[p(Ht,{"environment-id":t.environmentId,"variable-id":e.variableId,overrides:N.value,editable:t.editable,"show-overrides":t.showOverrides,"show-delete":t.showDelete,"show-override-badge":t.showOverrideBadge,disabled:t.disabled,"resolved-env":t.resolvedEnv,"autocomplete-enabled":t.autocompleteEnabled,"autocomplete-suggestions":t.autocompleteSuggestions,"autocomplete-meta":t.autocompleteMeta,"service-builtins":{...h(m),...t.serviceBuiltins},"is-pending":L.value.includes(e.variableId),onDeleted:t=>Pe(e.variableId),onSaved:t=>Fe(e.variableId),onAutocompleteSearch:r[4]||=e=>ie(`autocomplete-search`,e),onOverrideChanged:P,"can-edit-source":!!t.sources[e.variableId]?.resolvedFrom,onEditSource:t=>De(e.variableId)},null,8,[`environment-id`,`variable-id`,`overrides`,`editable`,`show-overrides`,`show-delete`,`show-override-badge`,`disabled`,`resolved-env`,`autocomplete-enabled`,`autocomplete-suggestions`,`autocomplete-meta`,`service-builtins`,`is-pending`,`onDeleted`,`onSaved`,`can-edit-source`,`onEditSource`])]),default:D(()=>[p(h(j),{expander:``,style:{width:`2.5rem`}}),p(h(j),{field:`variableId`,header:h(v)(`common.key`)},{body:D(({data:e})=>[n(`div`,Kt,[n(`span`,qt,[n(`code`,Jt,x(I(e.variableId)?.key||`(new variable)`),1),t.sources[e.variableId]?.overriddenBy?(T(),d(`span`,{key:0,class:`overridden-badge overridden-badge--local`,title:h(v)(`variablesTable.localOverrideTooltip`,{env:t.sources[e.variableId].overriddenBy.environmentName})},[r[9]||=n(`i`,{class:`pi pi-desktop`},null,-1),l(` `+x(h(v)(`variablesTable.localOverride`)),1)],8,q)):t.showOverrideBadge&&t.sources[e.variableId]?.overridden&&!Le(I(e.variableId)?.value?.value??``)?(T(),d(`span`,{key:1,class:`overridden-badge`,title:h(v)(`variablesTable.overrideTooltip`)},[r[10]||=n(`i`,{class:`pi pi-exclamation-triangle`},null,-1),l(` `+x(h(v)(`variablesTable.override`)),1)],8,Yt)):u(``,!0)]),ae.value&&t.sources[e.variableId]?(T(),S(F,{key:0,"environment-id":t.sources[e.variableId].environmentId,class:`source-badge`},null,8,[`environment-id`])):u(``,!0),ae.value&&t.sources[e.variableId]?.resolvedFrom?(T(),d(`span`,Xt,[r[11]||=n(`i`,{class:`pi pi-arrow-right resolved-from-arrow`},null,-1),p(F,{"environment-id":t.sources[e.variableId].resolvedFrom.environmentId,class:`source-badge`},null,8,[`environment-id`])])):u(``,!0)])]),_:1},8,[`header`]),p(h(j),{header:h(v)(`common.value`)},{body:D(({data:e})=>[n(`span`,Zt,[U(e.variableId)?(T(),d(`span`,{key:0,class:`value-actions`,onClick:r[2]||=pe(()=>{},[`stop`])},[I(e.variableId)?.value?.isSecret?(T(),d(`i`,{key:0,class:f([V.value.has(e.variableId)?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),title:h(v)(`variablesTable.reveal`),onClick:t=>be(e.variableId)},null,10,J)):u(``,!0),n(`i`,{class:f([H.value===e.variableId?`pi pi-check`:`pi pi-copy`,`action-icon`]),title:h(v)(`actions.copy`),onClick:t=>xe(e.variableId,U(e.variableId))},null,10,Y)])):u(``,!0),Le(I(e.variableId)?.value?.value??``)&&ze(I(e.variableId)?.value?.value??``)!=null?(T(),d(`span`,X,[p(h(_),{severity:`secondary`,value:Re(I(e.variableId)?.value?.value??``),class:`interpolation-hint-tag`},null,8,[`value`]),n(`span`,Qt,[I(e.variableId)?.value?.isSecret&&!V.value.has(e.variableId)?(T(),d(`span`,Z,`***`)):(T(),d(`code`,{key:1,class:`resolved-final`,title:ze(I(e.variableId)?.value?.value??``)},x(Be(ze(I(e.variableId)?.value?.value??``))),9,$t))])])):Le(I(e.variableId)?.value?.value??``)&&oe.value&&ze(I(e.variableId)?.value?.value??``)==null?(T(),d(a,{key:2},[r[12]||=n(`i`,{class:`pi pi-exclamation-triangle unresolved-icon`},null,-1),p(h(_),{severity:`secondary`,value:Re(I(e.variableId)?.value?.value??``)},null,8,[`value`]),r[13]||=n(`span`,{class:`unresolved-msg`},`Variable not found in this environment`,-1)],64)):Le(I(e.variableId)?.value?.value??``)?(T(),S(h(_),{key:3,severity:`secondary`,value:Re(I(e.variableId)?.value?.value??``)},null,8,[`value`])):I(e.variableId)?.value?.isSecret?(T(),d(a,{key:4},[V.value.has(e.variableId)?(T(),d(`code`,{key:1,title:U(e.variableId)},x(Be(U(e.variableId))),9,tn)):(T(),d(`span`,en,`***`))],64)):I(e.variableId)?.value?.value||I(e.variableId)?.value?.pre||I(e.variableId)?.value?.post?(T(),d(`code`,{key:5,title:U(e.variableId)},x(Be(U(e.variableId))),9,nn)):(T(),d(`span`,rn,`(empty)`))]),t.showOverrides&&!Le(I(e.variableId)?.value?.value??``)&&N.value[e.variableId]?(T(),d(`span`,an,[r[14]||=n(`i`,{class:`pi pi-arrow-right`,style:{"font-size":`0.7rem`}},null,-1),n(`span`,{class:`value-actions`,onClick:r[3]||=pe(()=>{},[`stop`])},[I(e.variableId)?.value?.isSecret||N.value[e.variableId].isSecret?(T(),d(`i`,{key:0,class:f([V.value.has(`ovr:`+e.variableId)?`pi pi-eye-slash`:`pi pi-eye`,`action-icon`]),title:h(v)(`variablesTable.reveal`),onClick:t=>be(`ovr:`+e.variableId)},null,10,on)):u(``,!0),n(`i`,{class:f([H.value===`ovr:`+e.variableId?`pi pi-check`:`pi pi-copy`,`action-icon`]),title:h(v)(`actions.copy`),onClick:t=>xe(`ovr:`+e.variableId,Ae(e.variableId))},null,10,Q)]),I(e.variableId)?.value?.isSecret||N.value[e.variableId].isSecret?(T(),d(a,{key:0},[V.value.has(`ovr:`+e.variableId)?(T(),d(`code`,{key:1,class:`override-value`,title:Ae(e.variableId)},x(Be(Ae(e.variableId))),9,$)):(T(),d(`span`,sn,`***`))],64)):(T(),d(`code`,{key:1,class:`override-value`,title:Ae(e.variableId)},x(Be(Ae(e.variableId))),9,cn))])):u(``,!0)]),_:1},8,[`header`])]),_:1},8,[`expanded-rows`,`value`,`scroll-height`]),t.showAddButton?(T(),S(h(c),{key:0,type:`button`,label:h(v)(`variablesTable.addVariable`),icon:`pi pi-plus`,text:``,disabled:t.disabled,class:`mt-3`,onClick:Ie},null,8,[`label`,`disabled`])):u(``,!0)],512),p(h(te),{visible:G.value,"onUpdate:visible":r[8]||=e=>G.value=e,modal:``,header:h(v)(`variablesTable.editParentHeader`),style:{width:`38rem`,maxWidth:`95vw`}},{footer:D(()=>[p(h(c),{label:h(v)(`actions.cancel`),text:``,disabled:Ce.value,onClick:r[7]||=e=>G.value=!1},null,8,[`label`,`disabled`]),p(h(c),{label:h(v)(`variablesTable.editParentConfirm`),severity:`warn`,loading:Ce.value,onClick:ke},null,8,[`label`,`loading`])]),default:D(()=>[W.value?(T(),d(`div`,ln,[p(h(i),{severity:`warn`,closable:!1,class:`parent-edit__warning`},{default:D(()=>[l(x(h(v)(`variablesTable.editParentWarning`,{key:W.value.key,env:W.value.environmentName})),1)]),_:1}),n(`div`,un,[n(`label`,dn,x(h(v)(`common.value`)),1),p(h(O),{id:`parent-edit-value`,modelValue:W.value.value,"onUpdate:modelValue":r[6]||=e=>W.value.value=e,class:`w-full`,disabled:Ce.value},null,8,[`modelValue`,`disabled`])]),n(`div`,fn,[n(`div`,pn,[r[15]||=n(`i`,{class:`pi pi-sitemap`},null,-1),l(` `+x(h(v)(`variablesTable.editParentImpact`)),1)]),we.value?(T(),d(`div`,mn,[r[16]||=n(`i`,{class:`pi pi-spin pi-spinner`},null,-1),n(`span`,null,x(h(v)(`variablesTable.editParentLoading`)),1)])):(T(),d(a,{key:1},[Ee.value.length?(T(),d(`ul`,hn,[(T(!0),d(a,null,se(Ee.value,(e,t)=>(T(),d(`li`,{key:t},[p(h(_),{severity:e.kind===`references`?`info`:`secondary`,value:e.kind===`references`?e.viaKey:e.kind===`inherits`?h(v)(`variablesTable.editParentInherits`):h(v)(`variablesTable.editParentDefines`)},null,8,[`severity`,`value`]),n(`span`,gn,x(e.environmentName),1),e.serviceName?(T(),d(`span`,_n,x(e.serviceName),1)):u(``,!0)]))),128))])):(T(),d(`div`,vn,x(h(v)(`variablesTable.editParentNoUsage`)),1))],64))])])):u(``,!0)]),_:1},8,[`visible`,`header`])],64))}}),[[`__scopeId`,`data-v-639160a6`]]);function Cn(e,t){let n=m(),r=w(),i=E(),a=C(()=>{let t=n.getByRef({id:e(),orgId:r.activeOrgId});return t?t.serviceIds.map(e=>i.getById(e)).filter(e=>!!e):[]});return C(()=>{let e=oe(a.value.map(e=>e.name)),n={};for(let r of a.value){let i=k(r.name);!i||e.has(i)||Object.assign(n,y({name:r.name,id:r.id,ports:r.ports,localUrls:r.localUrls,url:r.url},t()))}return n})}function wn(e){let t=b(),n=le(),r=m(),i=w(),a=C(()=>{let r=e.environmentId()?n.getById(e.environmentId())?.agentId:void 0,i=e.agentId?.()??r;return i?t.getById(i):t.agents.find(e=>e.isLocal)??null}),{urlHost:o,serverHost:s}=A(()=>a.value?.config.id),c=Cn(e.projectId,()=>o.value);return{values:C(()=>{let t={};for(let e of re)t[e.name]=``;t[`runeya.HOST`]=s.value;let o=a.value?.status;o?.lanIp&&(t[`agent.HOST_LAN`]=o.lanIp),o?.os&&(t[`agent.OS`]=o.os),o?.home&&(t[`agent.HOME`]=o.home),a.value&&(t[`agent.NAME`]=a.value.config.name);let l=r.getByRef({id:e.projectId(),orgId:i.activeOrgId});l&&(t[`project.NAME`]=l.name);let u=e.environmentId()?n.getById(e.environmentId()):null;return u&&(t[`runeya.ENV_NAME`]=u.name),Object.assign(t,c.value),t}),agentEntry:a,urlHost:o}}function Tn(e){let t=o([]),n=o({});function r(r){let i=e();if(!i)return;let a=r.toLowerCase(),o=Object.keys(i.env).filter(e=>e.toLowerCase().includes(a));t.value=o;let s=i.variables,c={};if(s)for(let e of o){let t=Object.values(s).find(t=>t.key===e);t&&(c[e]={key:e,isSecret:t.value?.isSecret??!1,pre:t.value?.pre??``,post:t.value?.post??``})}n.value=c}return{suggestions:t,meta:n,search:r}}export{F as i,wn as n,Sn as r,Tn as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ha as e,Wt as t,b as n,jn as r,ki as i,mr as a,n as o}from"./index-DKmDGo1r.js";import{r as s,t as c}from"./cloud-session-DZ1APEU5.js";var l=e({}),u=null;function d(){return u??=r.cloudSync.orgClouds.query().then(e=>{l.value=e}).catch(()=>{}),l}var f=e({}),p=null;function m(){return p??=r.cloudSync.orgLogos.query().then(e=>{f.value=e}).catch(()=>{}),f}async function h(e){if(e.length)try{await r.cloudSync.cacheOrgLogos.mutate({orgIds:e}),f.value=await r.cloudSync.orgLogos.query()}catch{}}function g(e,t){return`${(t??o()).replace(/\/+$/,``)}/api/org-logo/${encodeURIComponent(e)}`}function _(){let{t:l}=a(),u=t(),{accounts:d,orgAccounts:f,isLinked:p,refresh:m}=s(),g=e([]),_=e(!1),v=e(``),y=e({});async function b(){try{y.value=await r.cloudSync.orgNames.query()}catch{}}b();let x=i(()=>{let e=new Map;for(let t of u.projects){if(!t.orgId)continue;let n=f.value[t.orgId],r=e.get(t.orgId)??{orgId:t.orgId,name:``,projects:[],...n?{accountId:n}:{}};r.projects.push({projectId:t.id,name:t.name,local:!0}),e.set(t.orgId,r)}for(let t of g.value){let n=e.get(t.orgId)??{orgId:t.orgId,name:t.name,projects:[]};n.name=t.name,t.accountId&&(n.accountId=t.accountId);for(let e of t.projects)n.projects.some(t=>t.projectId===e.projectId)||n.projects.push(e);e.set(t.orgId,n)}for(let t of e.values())t.name||=y.value[t.orgId]??``,t.name||=l(`projectSwitcher.unknownOrg`,{id:t.orgId.slice(0,8)}),t.projects.sort((e,t)=>e.name.localeCompare(t.name));return[...e.values()]});async function S(){if(v.value=``,!p.value){g.value=[];return}_.value=!0;try{let e=new Set(u.projects.map(e=>e.id)),t;try{t=await c()}catch{throw Error(l(`projectSwitcher.orgsFailed`))}h(t.map(e=>e.id)),g.value=await Promise.all(t.map(async t=>{let r=await n.$fetch(`/project/list`,{method:`GET`,query:{organizationId:t.id},accountId:t.accountId});return{orgId:t.id,name:t.name,accountId:t.accountId,projects:(r.data?.projects??[]).map(t=>({projectId:t.projectId,name:t.name,local:e.has(t.projectId)}))}}))}catch(e){v.value=e instanceof Error?e.message:String(e)}finally{_.value=!1}}async function C(e,t,n){if(u.getByRef({id:t,orgId:e}))return;let i=d.value.find(e=>e.id===n),a=await r.cloudSync.trackProject.mutate({orgId:e,cloudUrl:i?.cloudUrl??o(),projectId:t,...n?{accountId:n}:{}});await w(e,t,a.state,a.pulled),await m()}async function w(e,t,n,r){if(!r&&n!==`live`)throw Object.assign(Error(T(n)),{syncState:n});for(let n=0;n<20;n++){if(await u.fetchAll(),u.getByRef({id:t,orgId:e}))return;await new Promise(e=>setTimeout(e,250))}throw Object.assign(Error(T(n)),{syncState:n})}function T(e){return l(e===`unauthenticated`?`projectSwitcher.syncPaused`:e===`outdated`?`projectSwitcher.syncOutdated`:e===`key-mismatch`?`projectSwitcher.syncKeyMismatch`:`projectSwitcher.pullTimeout`)}function E(e,t){let n=g.value.find(t=>t.orgId===e)?.projects.find(e=>e.projectId===t);n&&(n.local=!1)}return{orgGroups:x,loading:_,error:v,refreshCloud:S,pullProject:C,markUntracked:E}}export{m as i,g as n,d as r,_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wt as e,ki as t,mn as n}from"./index-DKmDGo1r.js";import{r}from"./cloud-session-DZ1APEU5.js";function i(){let{user:i,currentAccount:a,loading:o}=r(),s=e(),c=n(),l=t(()=>c.activeOrgId??s.currentProjectOrgId),u=t(()=>!!l.value&&a.value!==null),d=t(()=>u.value?l.value:``),f=t(()=>!!l.value&&!u.value&&o.value),p=t(()=>!!d.value||f.value);return{orgId:d,available:p,unavailability:t(()=>p.value?null:l.value?`not-member`:`local-project`),cloudUser:i}}export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ha as e,it as t,jn as n,ki as r,ra as i,xt as a}from"./index-DKmDGo1r.js";function o(o){let s=t(),c=r(()=>{let e=o?.();return e?s.getById(e):s.agents.find(e=>e.isLocal)??null}),l=e(`localhost`);return i(async()=>{try{l.value=(await n.settings.getNetwork.query()).host}catch{}}),{serverHost:l,urlHost:r(()=>a(l.value)||(c.value?.status.lanIp??`localhost`)),agent:c}}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{nn as e}from"./index-DKmDGo1r.js";var t={comments:{blockComment:[`<!--`,`-->`]},brackets:[[`<`,`>`]],autoClosingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],surroundingPairs:[{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],onEnterRules:[{beforeText:RegExp(`<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:RegExp(`<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,`i`),action:{indentAction:e.IndentAction.Indent}}]},n={defaultToken:``,tokenPostfix:`.xml`,ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,``],{include:`@whitespace`},[/(<)(@qualifiedName)/,[{token:`delimiter`},{token:`tag`,next:`@tag`}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:`delimiter`},{token:`tag`},``,{token:`delimiter`}]],[/(<\?)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/(<\!)(@qualifiedName)/,[{token:`delimiter`},{token:`metatag`,next:`@tag`}]],[/<\!\[CDATA\[/,{token:`delimiter.cdata`,next:`@cdata`}],[/&\w+;/,`string.escape`]],cdata:[[/[^\]]+/,``],[/\]\]>/,{token:`delimiter.cdata`,next:`@pop`}],[/\]/,``]],tag:[[/[ \t\r\n]+/,``],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,[`attribute.name`,``,`attribute.value`]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,[`attribute.name`,``,`attribute.value`]],[/@qualifiedName/,`attribute.name`],[/\?>/,{token:`delimiter`,next:`@pop`}],[/(\/)(>)/,[{token:`tag`},{token:`delimiter`,next:`@pop`}]],[/>/,{token:`delimiter`,next:`@pop`}]],whitespace:[[/[ \t\r\n]+/,``],[/<!--/,{token:`comment`,next:`@comment`}]],comment:[[/[^<\-]+/,`comment.content`],[/-->/,{token:`comment`,next:`@pop`}],[/<!--/,`comment.content.invalid`],[/[<\-]/,`comment.content`]]}};export{t as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{nn as e}from"./index-DKmDGo1r.js";var t={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},n={tokenPostfix:`.yaml`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`true`,`True`,`TRUE`,`false`,`False`,`FALSE`,`null`,`Null`,`Null`,`~`],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:`@whitespace`},{include:`@comment`},[/%[^ ]+.*$/,`meta.directive`],[/---/,`operators.directivesEnd`],[/\.{3}/,`operators.documentEnd`],[/[-?:](?= )/,`operators`],{include:`@anchor`},{include:`@tagHandle`},{include:`@flowCollections`},{include:`@blockStyle`},[/@numberInteger(?![ \t]*\S+)/,`number`],[/@numberFloat(?![ \t]*\S+)/,`number.float`],[/@numberOctal(?![ \t]*\S+)/,`number.octal`],[/@numberHex(?![ \t]*\S+)/,`number.hex`],[/@numberInfinity(?![ \t]*\S+)/,`number.infinity`],[/@numberNaN(?![ \t]*\S+)/,`number.nan`],[/@numberDate(?![ \t]*\S+)/,`number.date`],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,[`type`,`white`,`operators`,`white`]],{include:`@flowScalars`},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],object:[{include:`@whitespace`},{include:`@comment`},[/\}/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],[/:(?= )/,`operators`],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,`type`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\},]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],array:[{include:`@whitespace`},{include:`@comment`},[/\]/,`@brackets`,`@pop`],[/,/,`delimiter.comma`],{include:`@flowCollections`},{include:`@flowScalars`},{include:`@tagHandle`},{include:`@anchor`},{include:`@flowNumber`},[/[^\],]+/,{cases:{"@keywords":`keyword`,"@default":`string`}}]],multiString:[[/^( +).+$/,`string`,`@multiStringContinued.$1`]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":`string`,"@default":{token:`@rematch`,next:`@popall`}}}]],whitespace:[[/[ \t\r\n]+/,`white`]],comment:[[/#.*$/,`comment`]],flowCollections:[[/\[/,`@brackets`,`@array`],[/\{/,`@brackets`,`@object`]],flowScalars:[[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/'[^']*'/,`string`],[/"/,`string`,`@doubleQuotedString`]],doubleQuotedString:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],blockStyle:[[/[>|][0-9]*[+-]?$/,`operators`,`@multiString`]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,`number`],[/@numberFloat(?=[ \t]*[,\]\}])/,`number.float`],[/@numberOctal(?=[ \t]*[,\]\}])/,`number.octal`],[/@numberHex(?=[ \t]*[,\]\}])/,`number.hex`],[/@numberInfinity(?=[ \t]*[,\]\}])/,`number.infinity`],[/@numberNaN(?=[ \t]*[,\]\}])/,`number.nan`],[/@numberDate(?=[ \t]*[,\]\}])/,`number.date`]],tagHandle:[[/\![^ ]*/,`tag`]],anchor:[[/[&*][^ ]+/,`namespace`]]}};export{t as conf,n as language};
|
package/web/index.html
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content"
|
|
16
16
|
/>
|
|
17
17
|
<title>Runeya</title>
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-DKmDGo1r.js"></script>
|
|
19
19
|
<link rel="stylesheet" crossorigin href="/assets/index-rUoTy8xc.css">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ai as e,Bi as t,Da as n,Di as r,F as i,Fa as a,Gi as o,I as s,Ii as c,La as l,Li as u,Ma as d,N as f,Ni as p,Oi as m,P as h,Ra as g,Ri as _,Rn as v,Wi as y,Ya as b,Yn as x,Z as S,dt as C,ga as w,io as T,ji as E,ma as D,oa as O,pa as k,qi as A,qn as j,ua as M,va as N,vi as P,xn as F,xr as I,zi as L}from"./index-Bul9Aylo.js";import{t as R}from"./uuid-Cro0aJm3.js";var z=new Map,B=`runeya.terminal-tabs`;function V(e,t=[]){if(e.type===`leaf`)t.push(e.sessionId);else for(let n of e.children)V(n,t);return t}function H(e,t){if(e.type===`leaf`)return e.sessionId===t?null:e;let n=[],r=[];if(e.children.forEach((i,a)=>{let o=H(i,t);o&&(n.push(o),r.push(e.sizes[a]??50))}),n.length===0)return null;if(n.length===1)return n[0];let i=r.reduce((e,t)=>e+t,0);return{type:`split`,direction:e.direction,children:n,sizes:r.map(e=>e/i*100)}}function U(e,t,n,r){return e.type===`leaf`?e.sessionId===t?{type:`split`,direction:r,children:[{type:`leaf`,sessionId:t},{type:`leaf`,sessionId:n}],sizes:[50,50]}:e:{...e,children:e.children.map(e=>U(e,t,n,r))}}const W=P(`terminal-tabs`,()=>{let e=b([]),t=b(null),r=b(null),a=b(null),o=new Set,l=c(()=>e.value.filter(e=>e.agentId===r.value)),u=c(()=>e.value.find(e=>e.id===t.value)??null),d=c(()=>u.value?.activeSessionId??null),p=b({});function m(){try{let t={version:1,tabs:JSON.parse(JSON.stringify(e.value)),activeTabByAgent:{...p.value}};localStorage.setItem(B,JSON.stringify(t))}catch{}}function g(){try{let e=localStorage.getItem(B);if(!e)return null;let t=JSON.parse(e);return t?.version!==1||!Array.isArray(t.tabs)?null:t}catch{return null}}n(e,m,{deep:!0}),n(t,e=>{e&&r.value&&(p.value[r.value]=e),m()});function _(e,t,n){j(`agent-terminal`,`souscription terminal.onData envoyée`,e);let r=h({sessionId:e,agentId:t,replay:n,onError:e=>{a.value=e}});return z.set(e,r),r}function y(e){let t=z.get(e);t&&(i(t),z.delete(e))}function x(e){return z.get(e)??null}async function S(e,t,n){try{let r=await v.terminal.create.mutate({agentId:e,...n?.projectId?{projectId:n.projectId,orgId:n.orgId??null}:{},cols:80,rows:24,title:t});return _(r.sessionId,e,!1),r.sessionId}catch(e){return a.value=e.message,null}}async function C(n,r){if(o.has(n))return;o.add(n);let i=[];try{i=(await v.terminal.list.query({agentId:n})).sessions}catch(e){a.value=e.message,o.delete(n);return}j(`agent-terminal`,`sessions retrouvées sur l'agent : ${i.length}`);let s=new Set(i.map(e=>e.sessionId)),c=new Set,l=g();if(l){p.value={...l.activeTabByAgent,...p.value};for(let t of l.tabs){if(t.agentId!==n||e.value.some(e=>e.id===t.id))continue;let r=t.layout;for(let e of V(t.layout))s.has(e)||(r=r?H(r,e):null);if(!r)continue;for(let e of V(r))c.add(e);let i=V(r).includes(t.activeSessionId)?t.activeSessionId:V(r)[0];e.value.push({...t,layout:r,activeSessionId:i})}}for(let t of i)c.has(t.sessionId)||(e.value.push({id:R(),agentId:n,title:t.title,layout:{type:`leaf`,sessionId:t.sessionId},activeSessionId:t.sessionId}),c.add(t.sessionId));for(let e of c)z.has(e)||_(e,n,!0);let u=e.value.filter(e=>e.agentId===n);if(u.length===0)await w(n,r);else{let e=p.value[n];t.value=u.some(t=>t.id===e)?e:u[0].id}}async function w(n,r){a.value=null;let i=`Terminal ${e.value.filter(e=>e.agentId===n).length+1}`,o=await S(n,i,r);if(!o)return null;let s={id:R(),agentId:n,title:i,layout:{type:`leaf`,sessionId:o},activeSessionId:o};return e.value.push(s),t.value=s.id,s.id}async function T(n){let r=e.value.findIndex(e=>e.id===n);if(r===-1)return;let i=e.value[r];for(let e of V(i.layout))y(e),v.terminal.destroy.mutate({agentId:i.agentId,sessionId:e}).catch(()=>{});if(e.value.splice(r,1),t.value===n){let n=e.value.filter(e=>e.agentId===i.agentId);t.value=n[Math.min(r,n.length-1)]?.id??null,t.value||await w(i.agentId)}}async function E(t,n){let r=e.value.find(e=>e.id===t);r&&(r.title=n,await v.terminal.rename.mutate({agentId:r.agentId,sessionId:r.activeSessionId,title:n}).catch(()=>{}))}function D(e){t.value=e}function O(t,n){if(t===n)return;let r=e.value.findIndex(e=>e.id===t),i=e.value.findIndex(e=>e.id===n);if(r===-1||i===-1)return;let[a]=e.value.splice(r,1);e.value.splice(i,0,a)}async function k(t,n,r){let i=e.value.find(e=>e.id===t);if(!i)return;let a=await S(i.agentId,i.title,r);a&&(i.layout=U(i.layout,i.activeSessionId,a,n),i.activeSessionId=a)}async function A(t){let n=e.value.find(e=>V(e.layout).includes(t));if(n){if(V(n.layout).length===1){await T(n.id);return}y(t),v.terminal.destroy.mutate({agentId:n.agentId,sessionId:t}).catch(()=>{}),n.layout=H(n.layout,t),n.activeSessionId===t&&(n.activeSessionId=V(n.layout)[0])}}function M(t){let n=e.value.find(e=>V(e.layout).includes(t));n&&(n.activeSessionId=t,z.get(t)?.terminal.focus())}function N(e,t){e.type===`split`&&(e.sizes=t)}function P(e,t){let n=z.get(e);n&&(f(n,t),F(e))}function F(t){let n=z.get(t);if(!n)return;let r=e.value.find(e=>V(e.layout).includes(t));r&&s(n,r.agentId,t)}function I(n){r.value=n;let i=e.value.filter(e=>e.agentId===n),a=p.value[n];t.value=i.some(e=>e.id===a)?a:i[0]?.id??null}return{tabs:e,agentTabs:l,activeTab:u,activeTabId:t,activeSessionId:d,selectedAgentId:r,errorMsg:a,hydrateAgent:C,createTab:w,closeTab:T,renameTab:E,selectTab:D,moveTab:O,splitPane:k,closePane:A,focusPane:M,setSplitSizes:N,selectAgent:I,attach:P,fit:F,getRuntime:x,collectSessions:V}});var G=[`onPointerdown`],K=x(A({name:`TerminalPane`,__name:`TerminalPane`,props:{node:{},activeSessionId:{},splitted:{type:Boolean}},setup(e){function r(e){return e.type===`leaf`?`leaf:${e.sessionId}`:`split:${e.direction}:${e.children.map(r).join(`|`)}`}let i=e,o=W(),s=b(null),c=b(null),d=null,f=null;function m(){i.node.type!==`leaf`||!s.value||(o.attach(i.node.sessionId,s.value),h(s.value))}function h(e){e!==f&&(d?.disconnect(),f=e,d=new ResizeObserver(()=>{i.node.type===`leaf`&&o.fit(i.node.sessionId)}),d.observe(e))}M(m),O(()=>{d?.disconnect(),d=null,f=null}),n(()=>i.node.type===`leaf`?i.node.sessionId:null,m),k(m);function g(e,t){if(i.node.type!==`split`||!c.value)return;let n=i.node,r=c.value,a=n.direction===`row`,s=r.getBoundingClientRect(),l=a?s.width:s.height;if(l<=0)return;let u=a?t.clientX:t.clientY,d=n.sizes[e]??50,f=d+(n.sizes[e+1]??50);t.target.setPointerCapture(t.pointerId);let p=t=>{let r=((a?t.clientX:t.clientY)-u)/l*100,i=Math.min(Math.max(d+r,10),f-10),s=[...n.sizes];s[e]=i,s[e+1]=f-i,o.setSplitSizes(n,s)},m=()=>{window.removeEventListener(`pointermove`,p),window.removeEventListener(`pointerup`,m);for(let e of o.collectSessions(n))o.fit(e)};window.addEventListener(`pointermove`,p),window.addEventListener(`pointerup`,m)}return(n,i)=>{let d=N(`TerminalPane`,!0);return e.node.type===`leaf`?(D(),t(`div`,{key:0,class:a([`terminal-pane`,{"terminal-pane--active":e.splitted&&e.node.sessionId===e.activeSessionId}]),onPointerdown:i[2]||=t=>T(o).focusPane(e.node.sessionId)},[u(`div`,{ref_key:`hostEl`,ref:s,class:`terminal-pane__host`},null,512),e.splitted?(D(),t(`button`,{key:0,class:`terminal-pane__close`,onPointerdown:i[0]||=E(()=>{},[`stop`]),onClick:i[1]||=E(t=>T(o).closePane(e.node.sessionId),[`stop`])},[...i[3]||=[u(`i`,{class:`pi pi-times`},null,-1)]],32)):L(``,!0)],34)):(D(),t(`div`,{key:1,ref_key:`splitEl`,ref:c,class:a([`terminal-split`,`terminal-split--${e.node.direction}`])},[(D(!0),t(p,null,w(e.node.children,(n,i)=>(D(),t(p,{key:r(n)},[u(`div`,{class:`terminal-split__cell`,style:l({flexBasis:`${e.node.sizes[i]??50}%`})},[(D(),_(d,{key:r(n),node:n,"active-session-id":e.activeSessionId,splitted:!0},null,8,[`node`,`active-session-id`]))],4),i<e.node.children.length-1?(D(),t(`div`,{key:0,class:`terminal-split__gutter`,onPointerdown:E(e=>g(i,e),[`prevent`])},null,40,G)):L(``,!0)],64))),128))],2))}}}),[[`__scopeId`,`data-v-645a86b8`]]),q={class:`agent-terminal`},J={class:`agent-terminal__toolbar`},Y={class:`agent-terminal__title`},X=[`value`],Z={key:0,class:`agent-terminal__tabs`},Q=[`onClick`,`onDblclick`,`onDragstart`,`onDragover`],ee={key:1},te=[`title`,`onClick`],ne=[`title`],re=[`disabled`,`title`],ie=[`disabled`,`title`],ae={class:`agent-terminal__body`},oe={key:0,class:`agent-terminal__error`},se={key:1,class:`agent-terminal__empty`},$=x(A({__name:`AgentTerminalPage`,setup(i){let{t:s}=I(),l=C(),f=W(),h=c(()=>{let e=f.activeSessionId;return e?f.getRuntime(e)?.terminal??null:null}),v=F(),x=b(null),O=b(``),k=b(null),A=c(()=>l.connectedAgents),N=c({get:()=>f.selectedAgentId,set:e=>{e&&f.selectAgent(e)}}),P=c(()=>v.activeProjectId?{projectId:v.activeProjectId,orgId:v.activeOrgId}:{}),R=c(()=>f.activeTab?f.collectSessions(f.activeTab.layout).length:0);n(A,e=>{j(`agent-terminal`,`agents connectés : ${e.length}`),!f.selectedAgentId&&e.length>0&&f.selectAgent(e[0].config.id)},{immediate:!0}),n(()=>f.selectedAgentId,async e=>{e&&await f.hydrateAgent(e,P.value)},{immediate:!0});async function z(){let e=f.selectedAgentId;e&&await f.createTab(e,P.value)}async function B(e){let t=f.activeTabId;t&&await f.splitPane(t,e,P.value)}function V(e,t){x.value=e,O.value=t}async function H(){let e=x.value;x.value=null,e&&O.value.trim()&&await f.renameTab(e,O.value.trim())}function U(e){k.value=e}function G(e){k.value&&k.value!==e&&f.moveTab(k.value,e)}function $(){k.value=null}return M(()=>{j(`agent-terminal`,`page montée — agent sélectionné :`,f.selectedAgentId??`aucun (on attend la liste)`)}),(n,i)=>(D(),t(`div`,q,[u(`div`,J,[u(`span`,Y,[i[6]||=u(`i`,{class:`pi pi-desktop`},null,-1),y(` `+g(T(s)(`nav.agentTerminal`)),1)]),A.value.length>0?d((D(),t(`select`,{key:0,"onUpdate:modelValue":i[0]||=e=>N.value=e,class:`agent-terminal__agent-select`},[(D(!0),t(p,null,w(A.value,e=>(D(),t(`option`,{key:e.config.id,value:e.config.id},g(e.config.name),9,X))),128))],512)),[[r,N.value]]):L(``,!0)]),A.value.length>0?(D(),t(`div`,Z,[(D(!0),t(p,null,w(T(f).agentTabs,n=>(D(),t(`div`,{key:n.id,class:a([`agent-terminal__tab`,{"agent-terminal__tab--active":n.id===T(f).activeTabId,"agent-terminal__tab--dragging":n.id===k.value}]),draggable:`true`,onClick:e=>T(f).selectTab(n.id),onDblclick:e=>V(n.id,n.title),onDragstart:e=>U(n.id),onDragover:E(e=>G(n.id),[`prevent`]),onDragend:$,onDrop:E($,[`prevent`])},[x.value===n.id?d((D(),t(`input`,{key:0,"onUpdate:modelValue":i[1]||=e=>O.value=e,class:`agent-terminal__tab-input`,autofocus:``,onKeyup:[e(H,[`enter`]),i[2]||=e(e=>x.value=null,[`esc`])],onBlur:H,onClick:i[3]||=E(()=>{},[`stop`])},null,544)),[[m,O.value]]):(D(),t(`span`,ee,g(n.title),1)),u(`button`,{class:`agent-terminal__tab-close`,title:T(s)(`terminal.closeTab`),onClick:E(e=>T(f).closeTab(n.id),[`stop`])},[...i[7]||=[u(`i`,{class:`pi pi-times`},null,-1)]],8,te)],42,Q))),128)),u(`button`,{class:`agent-terminal__tab-new`,title:T(s)(`terminal.newTab`),onClick:z},[...i[8]||=[u(`i`,{class:`pi pi-plus`},null,-1)]],8,ne),i[11]||=u(`div`,{class:`agent-terminal__tabs-spacer`},null,-1),u(`button`,{class:`agent-terminal__tab-new`,disabled:!T(f).activeTabId,title:T(s)(`terminal.splitRight`),onClick:i[4]||=e=>B(`row`)},[...i[9]||=[u(`i`,{class:`pi pi-pause`},null,-1)]],8,re),u(`button`,{class:`agent-terminal__tab-new`,disabled:!T(f).activeTabId,title:T(s)(`terminal.splitDown`),onClick:i[5]||=e=>B(`column`)},[...i[10]||=[u(`i`,{class:`pi pi-pause agent-terminal__icon-rotated`},null,-1)]],8,ie)])):L(``,!0),o(S,{terminal:h.value},null,8,[`terminal`]),u(`div`,ae,[T(f).errorMsg?(D(),t(`div`,oe,[i[12]||=u(`i`,{class:`pi pi-exclamation-triangle`},null,-1),y(` `+g(T(f).errorMsg),1)])):A.value.length===0?(D(),t(`div`,se,[i[13]||=u(`i`,{class:`pi pi-server`},null,-1),u(`span`,null,g(T(s)(`terminal.noAgent`)),1)])):L(``,!0),T(f).activeTab?(D(),_(K,{key:T(f).activeTab.id,node:T(f).activeTab.layout,"active-session-id":T(f).activeTab.activeSessionId,splitted:R.value>1},null,8,[`node`,`active-session-id`,`splitted`])):L(``,!0)])]))}}),[[`__scopeId`,`data-v-15f0d4c3`]]);export{$ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./index-Bul9Aylo.js";export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$n as e,$t as t,A as n,Bi as r,Da as i,Dn as a,Fa as o,Gi as s,Ii as c,Jn as l,L as u,La as d,Li as f,M as p,Ma as m,Ni as h,Nn as g,On as _,Pn as v,Qt as y,Ra as b,Ri as x,Rn as S,Wi as C,Ya as w,Yn as T,Zt as E,_n as D,_r as O,b as k,bn as A,br as j,dr as M,dt as N,en as P,er as F,et as I,fa as L,fr as R,ga as z,gr as B,io as V,ja as H,ji as U,ki as ee,l as te,m as W,ma as G,mt as ne,o as K,p as re,qi as q,ra as J,t as ie,tn as Y,tt as ae,u as oe,ua as se,un as ce,ur as le,va as ue,vr as de,wt as fe,xn as X,xr as Z,ya as pe,yi as me,yn as he,yr as ge,zi as Q}from"./index-Bul9Aylo.js";import{r as _e}from"./cloud-session-DwRT1TUx.js";import"./src-D3VR_y-X.js";import{n as ve,t as ye}from"./cloud-chat.store-6ZDTW64E.js";import{t as be}from"./EditorIcon-CtAICHdD.js";import{t as xe}from"./useServiceUrlHost-DWJP4dsX.js";import"./ProcessControls-DtHM26HD.js";import{t as Se}from"./ServiceControlsBar-BIw8gvT4.js";import{t as Ce}from"./OrgKeyPrompt-CP_twrjK.js";import{t as we}from"./useProjectCatalog-BrszMm46.js";import{t as Te}from"./OrgLogo-C9tIdIKQ.js";import{n as Ee,r as De,t as Oe}from"./DirectoryPickerDialog-CG1pl1FS.js";var ke={class:`service-sidebar__header`},Ae={class:`service-sidebar__search`},je={class:`p-input-icon-left service-sidebar__search-wrapper`},Me={class:`service-sidebar__list`},Ne=[`draggable`,`onClick`,`onDragstart`,`onDragover`,`onDrop`],Pe={class:`service-sidebar__group-label`},Fe={class:`service-sidebar__group-badges`},Ie=[`title`],Le=[`title`],Re=[`title`],ze={class:`service-sidebar__group-count`},Be={class:`service-sidebar__group-items`},Ve=[`onClick`],He={key:0,class:`pi pi-exclamation-triangle service-sidebar__status service-sidebar__status--error`},Ue=[`title`],We=[`title`],Ge=[`title`],Ke={key:4,class:`pi pi-circle-fill service-sidebar__status service-sidebar__status--running`},qe={key:5,class:`pi pi-spin pi-spinner service-sidebar__status service-sidebar__status--starting`},Je={key:6,class:`pi pi-circle service-sidebar__status service-sidebar__status--stopped`},Ye={class:`service-sidebar__item-name`},Xe={key:0,class:`service-sidebar__empty`},Ze={key:1,class:`service-sidebar__empty`},$=`__all__`,Qe=T(q({__name:`ServiceSidebar`,props:{selectedServiceId:{},collapsed:{type:Boolean},activeProjectId:{},activeOrgId:{},portrait:{type:Boolean},width:{},resizing:{type:Boolean}},emits:[`select-service`,`add-service`,`toggle-collapse`],setup(t,{emit:n}){let a=t,l=c(()=>{if(!(a.collapsed||a.portrait||!a.width))return{width:`${a.width}px`,minWidth:`${a.width}px`}}),u=n,{t:p}=Z(),g=E(),v=ne(),y=re(),x=w(``),S=c(()=>a.activeProjectId?g.getByRef({id:a.activeProjectId,orgId:a.activeOrgId}):null),T=c(()=>{let e=x.value.toLowerCase();if(!S.value)return[];let t=v.getByIds(S.value.serviceIds).filter(t=>!e||t.name.toLowerCase().includes(e)),n={errored:0,running:1,starting:2};return t.sort((e,t)=>{let r=W(e.id),i=W(t.id),a=r!==null&&r in n?n[r]:9,o=i!==null&&i in n?n[i]:9;if(a!==o)return a-o;let s=e=>e.trim().replace(/[^a-zA-Z0-9\s]/g,``).toLowerCase();return s(e.name).localeCompare(s(t.name))})}),D=c(()=>{let e=new Map;for(let t of T.value){let n=t.groups&&t.groups.length>0?t.groups:[$];for(let r of n){let n=e.get(r);n?n.push(t):e.set(r,[t])}}let t=S.value?.groupOrder??[],n=e=>{let n=t.indexOf(e);return n===-1?2**53-1:n},r=[...e.entries()].filter(([e])=>e!==$).sort(([e],[t])=>{let r=n(e),i=n(t);return r===i?e.localeCompare(t):r-i}).map(([e,t])=>({key:e,label:e,services:t,counts:B(t)})),i=e.get($);return i&&i.length>0&&r.push({key:$,label:p(`serviceSidebar.defaultGroup`),services:i,counts:B(i)}),r});function O(e,t){return`runeya.serviceSidebar.collapsedGroups.${e??`local`}:${t}`}function k(e,t){if(!t)return new Set;try{let n=localStorage.getItem(O(e,t));if(!n)return new Set;let r=JSON.parse(n);return Array.isArray(r)?new Set(r.filter(e=>typeof e==`string`)):new Set}catch{return new Set}}let A=w(k(a.activeOrgId,a.activeProjectId));i(()=>[a.activeOrgId,a.activeProjectId],([e,t])=>{A.value=k(e,t)});function j(){if(a.activeProjectId)try{localStorage.setItem(O(a.activeOrgId,a.activeProjectId),JSON.stringify([...A.value]))}catch{}}function M(e){let t=new Set(A.value);t.has(e)?t.delete(e):t.add(e),A.value=t,j()}let N=w(null),P=w(null);function F(e,t){if(e===$){t.preventDefault();return}N.value=e,t.dataTransfer&&(t.dataTransfer.effectAllowed=`move`,t.dataTransfer.setData(`text/plain`,e))}function I(e,t){!N.value||e===$||e===N.value||(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=`move`),P.value=e)}function L(e){let t=N.value;if(N.value=null,P.value=null,!t||e===$||t===e||!S.value)return;let n=D.value.map(e=>e.key).filter(e=>e!==$),r=n.indexOf(t),i=n.indexOf(e);r===-1||i===-1||(n.splice(r,1),n.splice(i,0,t),g.updateGroupOrder(S.value,n))}function R(){N.value=null,P.value=null}function B(e){let t=0,n=0,r=0;for(let i of e){let e=W(i.id);if(e===`errored`)t++;else if(e===`running`){let e=K(i.id);e.hasHealthCheck&&e.status===`healthy`?n++:r++}}return{errored:t,healthy:n,running:r}}let H=w({});function U(e,t){t?H.value[e]=t:delete H.value[e]}async function te(){if(!a.selectedServiceId)return;await J();let e=H.value[a.selectedServiceId];e&&e.scrollIntoView({block:`nearest`,behavior:`smooth`})}i(T,te),i(()=>a.selectedServiceId,te);function W(e){let t=y.getByService(e);return!t||t.length===0?null:t.some(e=>e.state===`errored`)?`errored`:t.some(e=>e.state===`running`)?`running`:t.some(e=>e.state===`starting`)?`starting`:`stopped`}function K(e){if(!v.getById(e)?.healthCheck)return{hasHealthCheck:!1,status:null};let t=y.getByService(e);return!t||t.length===0?{hasHealthCheck:!0,status:null}:t.some(e=>e.healthStatus===`unhealthy`)?{hasHealthCheck:!0,status:`unhealthy`}:t.every(e=>e.healthStatus===`healthy`)?{hasHealthCheck:!0,status:`healthy`}:{hasHealthCheck:!0,status:`unknown`}}return(n,i)=>(G(),r(h,null,[t.portrait&&!t.collapsed?(G(),r(`div`,{key:0,class:`service-sidebar__backdrop`,onClick:i[0]||=e=>u(`toggle-collapse`)})):Q(``,!0),f(`aside`,{class:o([`service-sidebar`,{"service-sidebar--collapsed":t.collapsed,"service-sidebar--portrait":t.portrait,"service-sidebar--resizing":t.resizing}]),style:d(l.value)},[t.collapsed?Q(``,!0):(G(),r(h,{key:0},[f(`div`,ke,[s(V(e),{icon:`pi pi-plus`,label:V(p)(`serviceSidebar.addService`),outlined:``,size:`small`,class:`service-sidebar__add-btn`,onClick:i[1]||=e=>u(`add-service`)},null,8,[`label`])]),f(`div`,Ae,[f(`span`,je,[i[3]||=f(`i`,{class:`pi pi-search`},null,-1),s(V(_),{modelValue:x.value,"onUpdate:modelValue":i[2]||=e=>x.value=e,placeholder:V(p)(`serviceSidebar.searchPlaceholder`),size:`small`,class:`service-sidebar__search-input`},null,8,[`modelValue`,`placeholder`])])]),f(`div`,Me,[(G(!0),r(h,null,z(D.value,e=>(G(),r(`div`,{key:e.key,class:o([`service-sidebar__group`,{"service-sidebar__group--dragover":P.value===e.key}])},[f(`button`,{class:o([`service-sidebar__group-header`,{"service-sidebar__group-header--dragging":N.value===e.key}]),draggable:e.key!==$,onClick:t=>M(e.key),onDragstart:t=>F(e.key,t),onDragover:t=>I(e.key,t),onDrop:t=>L(e.key),onDragend:R},[f(`i`,{class:o(A.value.has(e.key)?`pi pi-chevron-right`:`pi pi-chevron-down`)},null,2),f(`span`,Pe,b(e.label),1),f(`span`,Fe,[e.counts.errored?(G(),r(`span`,{key:0,class:`service-sidebar__group-badge`,title:V(p)(`serviceSidebar.badgeErrored`)},[i[4]||=f(`i`,{class:`pi pi-exclamation-triangle service-sidebar__status--error`},null,-1),C(` `+b(e.counts.errored),1)],8,Ie)):Q(``,!0),e.counts.healthy?(G(),r(`span`,{key:1,class:`service-sidebar__group-badge`,title:V(p)(`serviceSidebar.badgeHealthy`)},[i[5]||=f(`i`,{class:`pi pi-heart-fill service-sidebar__status--healthy`},null,-1),C(` `+b(e.counts.healthy),1)],8,Le)):Q(``,!0),e.counts.running?(G(),r(`span`,{key:2,class:`service-sidebar__group-badge`,title:V(p)(`serviceSidebar.badgeRunning`)},[i[6]||=f(`i`,{class:`pi pi-circle-fill service-sidebar__status--running`},null,-1),C(` `+b(e.counts.running),1)],8,Re)):Q(``,!0)]),f(`span`,ze,b(e.services.length),1)],42,Ne),m(f(`div`,Be,[(G(!0),r(h,null,z(e.services,e=>(G(),r(`button`,{key:e.id,ref_for:!0,ref:t=>U(e.id,t),class:o([`service-sidebar__item`,{"service-sidebar__item--active":t.selectedServiceId===e.id,"service-sidebar__item--inactive":!W(e.id)||W(e.id)===`stopped`}]),onClick:n=>{u(`select-service`,e.id),t.portrait&&u(`toggle-collapse`)}},[W(e.id)===`errored`?(G(),r(`i`,He)):W(e.id)===`running`&&K(e.id).hasHealthCheck&&K(e.id).status===`healthy`?(G(),r(`i`,{key:1,class:`pi pi-heart-fill service-sidebar__status service-sidebar__status--healthy`,title:V(p)(`serviceSidebar.healthHealthy`)},null,8,Ue)):W(e.id)===`running`&&K(e.id).hasHealthCheck&&K(e.id).status===`unhealthy`?(G(),r(`i`,{key:2,class:`pi pi-heart-fill service-sidebar__status service-sidebar__status--unhealthy`,title:V(p)(`serviceSidebar.healthUnhealthy`)},null,8,We)):W(e.id)===`running`&&K(e.id).hasHealthCheck&&K(e.id).status===`unknown`?(G(),r(`i`,{key:3,class:`pi pi-heart service-sidebar__status service-sidebar__status--health-pending`,title:V(p)(`serviceSidebar.healthWaiting`)},null,8,Ge)):W(e.id)===`running`?(G(),r(`i`,Ke)):W(e.id)===`starting`?(G(),r(`i`,qe)):(G(),r(`i`,Je)),f(`span`,Ye,b(e.name),1)],10,Ve))),128))],512),[[ee,!A.value.has(e.key)]])],2))),128)),S.value?T.value.length===0?(G(),r(`div`,Ze,b(V(p)(`serviceSidebar.noServices`)),1)):Q(``,!0):(G(),r(`div`,Xe,b(V(p)(`serviceSidebar.noProject`)),1))])],64))],6)],64))}}),[[`__scopeId`,`data-v-4865d030`]]),$e={class:`notification-trigger`},et={class:`notification-panel`},tt={class:`notification-header`},nt={class:`notification-title`},rt={class:`notification-actions`},it={key:0,class:`notification-empty`},at={key:1,class:`notification-list`},ot=[`onClick`],st={class:`notification-content`},ct={class:`notification-item-title`},lt={class:`notification-message`},ut={class:`notification-footer`},dt={class:`notification-time`},ft=[`onClick`],pt=T(q({__name:`NotificationCenter`,setup(t){let{t:n}=Z(),i=W(),a=R(),l=w(),u=c(()=>i.unreadCount>0),p=c(()=>i.notifications);function m(e){l.value.toggle(e)}function g(){i.markAllRead()}function _(){i.clear()}function v(e){i.remove(e)}function y(e){if(!e)return null;let t=e.trim();if(!t||!t.startsWith(`/`)||t.startsWith(`//`))return null;try{let e=new URL(t,window.location.origin);return e.origin===window.location.origin?`${e.pathname}${e.search}${e.hash}`:null}catch{return null}}function S(e,t){i.markRead(e);let n=y(t);n&&(a.push(n).catch(()=>{}),l.value?.hide())}function C(e){let t=Date.now()-e,r=Math.floor(t/1e3);if(r<60)return n(`notifications.justNow`);let i=Math.floor(r/60);if(i<60)return n(`notifications.minutesAgo`,{n:i});let a=Math.floor(i/60);return a<24?n(`notifications.hoursAgo`,{n:a}):n(`notifications.daysAgo`,{n:Math.floor(a/24)})}function T(e){switch(e){case`success`:return`pi pi-check-circle`;case`error`:return`pi pi-times-circle`;case`warn`:return`pi pi-exclamation-triangle`;default:return`pi pi-info-circle`}}function E(e){switch(e){case`success`:return`var(--p-green-500)`;case`error`:return`var(--p-red-500)`;case`warn`:return`var(--p-orange-500)`;default:return`var(--p-blue-500)`}}return(t,a)=>(G(),r(h,null,[f(`div`,$e,[s(V(e),{icon:`pi pi-bell`,text:``,rounded:``,"aria-label":V(n)(`notifications.title`),onClick:m},null,8,[`aria-label`]),u.value?(G(),x(V(F),{key:0,value:V(i).unreadCount,severity:`danger`,class:`notification-badge`},null,8,[`value`])):Q(``,!0)]),s(V(D),{ref_key:`op`,ref:l,class:`notification-overlay`,breakpoints:{"600px":`320px`}},{default:H(()=>[f(`div`,et,[f(`div`,tt,[f(`span`,nt,b(V(n)(`notifications.title`)),1),f(`div`,rt,[u.value?(G(),x(V(e),{key:0,label:V(n)(`notifications.markAllRead`),text:``,size:`small`,onClick:g},null,8,[`label`])):Q(``,!0),p.value.length>0?(G(),x(V(e),{key:1,label:V(n)(`notifications.clear`),text:``,size:`small`,severity:`secondary`,onClick:_},null,8,[`label`])):Q(``,!0)])]),p.value.length===0?(G(),r(`div`,it,[a[0]||=f(`i`,{class:`pi pi-bell-slash`,style:{"font-size":`1.5rem`,"margin-bottom":`0.5rem`}},null,-1),f(`p`,null,b(V(n)(`notifications.empty`)),1)])):(G(),r(`div`,at,[(G(!0),r(h,null,z(p.value,t=>(G(),r(`div`,{key:t.id,class:o([`notification-item`,{unread:!t.read}]),onClick:e=>S(t.id,t.link)},[f(`i`,{class:o(T(t.type)),style:d({color:E(t.type)})},null,6),f(`div`,st,[f(`div`,ct,b(t.title),1),f(`div`,lt,b(t.message),1),f(`div`,ut,[f(`span`,dt,b(C(t.timestamp)),1),y(t.link)?(G(),r(`button`,{key:0,type:`button`,class:`notification-link`,onClick:U(e=>S(t.id,t.link),[`stop`])},b(t.linkLabel||V(n)(`notifications.openResource`)),9,ft)):Q(``,!0)])]),s(V(e),{icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:U(e=>v(t.id),[`stop`])},null,8,[`onClick`])],10,ot))),128))]))])]),_:1},512)],64))}}),[[`__scopeId`,`data-v-e1d6b2c8`]]),mt={class:`lang-switcher`},ht=[`title`],gt={class:`lang-menu`},_t={class:`lang-menu__title`},vt=[`onClick`],yt=T(q({__name:`LanguageSwitcher`,setup(e){let{t}=Z(),n=w(null),i={fr:`🇫🇷 Français`,en:`🇬🇧 English`};function a(e){n.value?.toggle(e)}function c(e){j(e),n.value?.hide()}return(e,l)=>(G(),r(`div`,mt,[f(`button`,{class:`lang-btn`,title:V(t)(`language.label`),onClick:a},[...l[0]||=[f(`i`,{class:`pi pi-language`},null,-1)]],8,ht),s(V(D),{ref_key:`popover`,ref:n},{default:H(()=>[f(`div`,gt,[f(`p`,_t,b(V(t)(`language.label`)),1),(G(!0),r(h,null,z(V(de),e=>(G(),r(`button`,{key:e,class:o([`lang-menu__item`,{"lang-menu__item--active":V(ge)()===e}]),onClick:t=>c(e)},b(i[e]),11,vt))),128))])]),_:1},512)]))}}),[[`__scopeId`,`data-v-dd64a597`]]),bt={class:`global-nav__top`},xt=[`title`],St={class:`global-nav__label`},Ct=[`title`],wt={class:`global-nav__label`},Tt=[`title`,`onClick`],Et={key:2,class:`global-nav__label`},Dt=[`title`],Ot={key:0,class:`global-nav__badge`},kt={key:1,class:`global-nav__label`},At={class:`global-nav__bottom`},jt=[`title`],Mt=[`title`,`data-testid`,`onClick`],Nt={key:0,class:`global-nav__label`},Pt={key:1,class:`global-nav__separator`},Ft={class:`global-nav__util`},It={key:2,class:`global-nav__util`},Lt={key:3,class:`global-nav__util`},Rt=T(q({__name:`GlobalNavBar`,props:{activeTab:{},portrait:{type:Boolean}},emits:[`tab-change`,`toggle-service-sidebar`],setup(e,{emit:t}){let{t:n}=Z(),i=ye(),a=t,{isOpen:l,toggle:u}=P(),d=c(()=>[{id:`dashboard`,icon:`pi pi-home`,label:n(`nav.dashboard`)},{id:`wiki-global`,icon:`pi pi-file-edit`,label:`Wiki`},{id:`kanban`,icon:`pi pi-th-large`,label:n(`kanban.nav`)},{id:`agent-terminal`,svgIcon:`terminal`,label:n(`nav.agentTerminal`)}]),m=c(()=>[{id:`environments`,icon:`pi pi-globe`,label:n(`nav.environments`)},{id:`settings`,icon:`pi pi-sliders-h`,label:n(`nav.settings`)}]);return(t,c)=>(G(),r(`nav`,{class:o([`global-nav`,{"global-nav--portrait":e.portrait}]),"data-testid":`global-nav`},[f(`div`,bt,[e.portrait?(G(),r(`button`,{key:0,class:o([`global-nav__btn`,{"global-nav__btn--active":V(l)}]),title:V(n)(`nav.aiChat`),"data-testid":`global-nav-btn`,onClick:c[0]||=(...e)=>V(u)&&V(u)(...e)},[f(`i`,{class:o(V(I))},null,2),f(`span`,St,b(V(n)(`nav.aiChat`)),1)],10,xt)):Q(``,!0),e.portrait?(G(),r(`button`,{key:1,class:`global-nav__btn`,title:V(n)(`nav.services`),"data-testid":`global-nav-services-btn`,onClick:c[1]||=e=>a(`toggle-service-sidebar`)},[c[4]||=f(`i`,{class:`pi pi-list`},null,-1),f(`span`,wt,b(V(n)(`nav.services`)),1)],8,Ct)):Q(``,!0),(G(!0),r(h,null,z(d.value,t=>(G(),r(`button`,{key:t.id,class:o([`global-nav__btn`,{"global-nav__btn--active":e.activeTab===t.id}]),title:t.label,"data-testid":`global-nav-btn`,onClick:e=>a(`tab-change`,t.id)},[t.svgIcon===`terminal`?(G(),x(p,{key:0})):(G(),r(`i`,{key:1,class:o(t.icon)},null,2)),e.portrait?(G(),r(`span`,Et,b(t.label),1)):Q(``,!0)],10,Tt))),128)),f(`button`,{class:o([`global-nav__btn global-nav__btn--badged`,{"global-nav__btn--active":e.activeTab===`cloud-messaging`,"global-nav__btn--pulse":V(i).unreadCount>0&&e.activeTab!==`cloud-messaging`}]),title:V(n)(`nav.messaging`),"data-testid":`global-nav-messaging-btn`,onClick:c[2]||=e=>a(`tab-change`,`cloud-messaging`)},[f(`i`,{class:o(V(ae))},null,2),V(i).unreadCount>0?(G(),r(`span`,Ot,b(V(i).unreadCount>99?`99+`:V(i).unreadCount),1)):Q(``,!0),e.portrait?(G(),r(`span`,kt,b(V(n)(`nav.messaging`)),1)):Q(``,!0)],10,Dt)]),f(`div`,At,[e.portrait?Q(``,!0):(G(),r(`button`,{key:0,class:o([`global-nav__btn`,{"global-nav__btn--active":V(l)}]),title:V(n)(`nav.aiChat`),"data-testid":`global-nav-btn`,onClick:c[3]||=(...e)=>V(u)&&V(u)(...e)},[f(`i`,{class:o(V(I))},null,2)],10,jt)),(G(!0),r(h,null,z(m.value,t=>(G(),r(`button`,{key:t.id,class:o([`global-nav__btn`,{"global-nav__btn--active":e.activeTab===t.id}]),title:t.label,"data-testid":t.id===`environments`?`nav-environments`:`global-nav-btn`,onClick:e=>a(`tab-change`,t.id)},[f(`i`,{class:o(t.icon)},null,2),e.portrait?(G(),r(`span`,Nt,b(t.label),1)):Q(``,!0)],10,Mt))),128)),e.portrait?Q(``,!0):(G(),r(`div`,Pt)),f(`div`,Ft,[s(pt)]),e.portrait?Q(``,!0):(G(),r(`div`,It,[s(V(K))])),e.portrait?Q(``,!0):(G(),r(`div`,Lt,[s(yt)]))])],2))}}),[[`__scopeId`,`data-v-a4a70cd3`]]),zt={class:`service-nav`,"data-testid":`service-nav`},Bt={class:`service-nav__tabs`},Vt=[`title`,`onClick`],Ht={class:`service-nav__btn-inner`},Ut={key:0,class:`service-nav__badge`},Wt=T(q({__name:`ServiceNavBar`,props:{activeTab:{},serviceId:{}},emits:[`tab-change`],setup(e,{emit:t}){let n=e,a=t,{t:s}=Z(),l=c(()=>[{id:`wiki`,icon:`pi pi-file-edit`,label:`Wiki`},{id:`terminal`,icon:`pi pi-code`,label:s(`serviceNavBar.terminal`)},{id:`metrics`,icon:`pi pi-chart-line`,label:s(`serviceNavBar.metrics`)},{id:`config`,icon:`pi pi-cog`,label:s(`serviceNavBar.config`)},{id:`git`,icon:`pi pi-github`,label:s(`serviceNavBar.git`)}]),u=w(0),d=null,p=he(m,6e4,`service-navbar:git-status`);async function m(){if(n.serviceId)try{let e=await S.git.status.query({serviceId:n.serviceId});u.value=e.staged.length+e.unstaged.length+e.untracked.length}catch{u.value=0}}function g(){_(),n.serviceId&&(d=S.git.onStatusChange.subscribe({serviceId:n.serviceId},{onData(e){u.value=e.staged.length+e.unstaged.length+e.untracked.length},onError(e){let t=e?.message??``;t.includes(`PRECONDITION_FAILED`)||t.includes(`Unresolved variables`)||m()}}),p.start())}function _(){d?.unsubscribe(),d=null,p.stop(),u.value=0}return i(()=>n.serviceId,e=>{e?g():_()},{immediate:!0}),L(_),(t,n)=>(G(),r(`nav`,zt,[f(`div`,Bt,[(G(!0),r(h,null,z(l.value,t=>(G(),r(`button`,{key:t.id,class:o([`service-nav__btn`,{"service-nav__btn--active":e.activeTab===t.id}]),title:t.label,onClick:e=>a(`tab-change`,t.id)},[f(`div`,Ht,[f(`i`,{class:o(t.icon)},null,2),t.id===`git`&&u.value>0?(G(),r(`span`,Ut,b(u.value>99?`99+`:u.value),1)):Q(``,!0)])],10,Vt))),128))])]))}}),[[`__scopeId`,`data-v-c93f59f4`]]),Gt={class:`service-header`},Kt={class:`service-header__banner`},qt={class:`service-header__left`},Jt={key:0,class:`service-header__title`},Yt=[`title`],Xt=[`title`],Zt={key:1,class:`service-header__title`},Qt={key:0,class:`service-header__right`},$t={class:`service-header__editor-popover`},en={class:`service-header__editor-current`},tn={class:`service-header__editor-label`},nn={class:`service-header__editor-select`},rn={class:`service-header__editor-label`},an={key:0,class:`editor-option`},on={class:`editor-option`},sn={key:0,class:`service-header__mismatch-banner`},cn={class:`service-header__mismatch-body`},ln={key:0},un={key:1},dn={key:1,class:`service-header__clone-banner`},fn={key:0},pn={key:1},mn=T(q({__name:`ServiceHeader`,props:{service:{},totalProcesses:{},stateCount:{}},setup(t){let n=t,{t:o}=Z(),l=O(),u=Y(),d=w(),{urlHost:p}=xe(()=>n.service?oe(n.service)??void 0:void 0),g=c(()=>{let e=n.service;return e?fe(e,p.value).map(({url:e,source:t})=>({url:e,icon:t===`cloud`?`pi pi-cloud`:`pi pi-globe`})):[]}),_=w(!1),v=w([]),y=w(null),T=w(null),E=w(!1);async function k(){if(!n.service?.git?.remote){_.value=!1,v.value=[],y.value=null,T.value=null;return}let e=n.service.id;try{let t=await S.service.checkCwd.query({id:e});v.value=t.unresolvedVars??[],y.value=t.resolvedCwd??null,T.value=t.gitMismatch??null,_.value=t.canClone||(t.unresolvedVars??[]).length>0,t.exists&&t.gitMismatch===null&&setTimeout(async()=>{if(n.service?.id===e)try{let t=await S.service.checkCwd.query({id:e,checkReachability:!0});if(n.service?.id!==e)return;T.value=t.gitMismatch??null}catch{}},1500)}catch(e){console.error(`[checkCwd] error:`,e),_.value=!1,v.value=[],y.value=null,T.value=null}}i(()=>n.service?.id,()=>k(),{immediate:!0});async function A(){if(n.service){E.value=!0;try{await S.service.cloneRepository.mutate({id:n.service.id}),_.value=!1,l.add({severity:`success`,summary:`Repository cloned`,detail:`Cloned into ${y.value??n.service.cwd??`.`}`,life:4e3})}catch(e){l.add({severity:`error`,summary:`Clone failed`,detail:e.message,life:6e3})}finally{E.value=!1}}}let j=c(()=>n.service?u.getEffectiveEditor(n.service.id):null),M=c(()=>n.service?u.getServiceEditor(n.service.id):null),N=c(()=>[{label:o(`serviceHeader.useDefault`),value:`__default__`},...u.installedEditors.map(e=>({label:e.name,value:e.key}))]),P=c(()=>n.service?M.value?.key??`__default__`:`__default__`);function F(e){window.open(e,`_blank`)}function I(){let e=j.value,t=n.service?.cwd;if(!e){l.add({severity:`warn`,summary:o(`serviceHeader.noEditorConfigured`),detail:o(`serviceHeader.setDefaultEditorHint`),life:3e3});return}u.openEditor(e.key,t||`.`)}function L(e){d.value?.toggle(e)}async function R(e){n.service&&(e===`__default__`?await u.removeServiceEditor(n.service.id):await u.setServiceEditor(n.service.id,e))}return(n,i)=>{let c=ue(`router-link`),l=pe(`tooltip`);return G(),r(`header`,Gt,[f(`div`,Kt,[f(`div`,qt,[t.service?(G(),r(`h1`,Jt,[t.service.runner===`docker`?(G(),r(`i`,{key:0,class:`pi pi-box service-header__runner-icon`,title:V(o)(`serviceHeader.docker`)},null,8,Yt)):(G(),r(`i`,{key:1,class:`pi pi-desktop service-header__runner-icon`,title:V(o)(`serviceHeader.native`)},null,8,Xt)),C(b(t.service.name),1)])):(G(),r(`h1`,Zt,`Runeya`)),t.service&&t.totalProcesses>0?(G(),x(V(a),{key:2,value:`${t.stateCount.running} running`,severity:t.stateCount.running>0?`success`:`secondary`,class:`service-header__tag`},null,8,[`value`,`severity`])):Q(``,!0)]),t.service?(G(),r(`div`,Qt,[m((G(),x(V(e),{text:``,rounded:``,size:`small`,"aria-label":V(o)(`serviceHeader.openInEditor`),onClick:I,onContextmenu:U(L,[`prevent`])},{icon:H(()=>[s(be,{"editor-key":j.value?.key??null,size:14},null,8,[`editor-key`])]),_:1},8,[`aria-label`])),[[l,j.value?`Open in ${j.value.name}`:V(o)(`serviceHeader.openInEditor`),void 0,{bottom:!0}]]),m(s(V(e),{icon:`pi pi-chevron-down`,text:``,rounded:``,size:`small`,class:`service-header__editor-caret`,"aria-label":V(o)(`serviceHeader.editorOptions`),onClick:L},null,8,[`aria-label`]),[[l,V(o)(`serviceHeader.editorSettings`),void 0,{bottom:!0}]]),s(V(D),{ref_key:`editorPopover`,ref:d},{default:H(()=>[f(`div`,$t,[f(`div`,en,[f(`span`,tn,b(V(o)(`serviceHeader.editorDefault`)),1),f(`span`,null,b(V(u).defaultEditor?.name??V(o)(`serviceHeader.editorNotSet`)),1)]),f(`div`,nn,[f(`span`,rn,b(V(o)(`serviceHeader.editorThisService`)),1),s(V(ce),{"model-value":P.value,options:N.value,"option-label":`label`,"option-value":`value`,placeholder:V(o)(`serviceHeader.useDefault`),size:`small`,class:`service-header__editor-dropdown`,"onUpdate:modelValue":R},{value:H(e=>[e.value?(G(),r(`div`,an,[s(be,{"editor-key":e.value===`__default__`?null:e.value,size:14},null,8,[`editor-key`]),f(`span`,null,b(N.value.find(t=>t.value===e.value)?.label),1)])):Q(``,!0)]),option:H(e=>[f(`div`,on,[s(be,{"editor-key":e.option.value===`__default__`?null:e.option.value,size:14},null,8,[`editor-key`]),f(`span`,null,b(e.option.label),1)])]),_:1},8,[`model-value`,`options`,`placeholder`])]),s(c,{to:{name:`settings`,query:{section:`editor`}},class:`service-header__editor-settings-link`},{default:H(()=>[i[0]||=f(`i`,{class:`pi pi-cog`},null,-1),f(`span`,null,b(V(o)(`serviceHeader.editorSettings`)),1)]),_:1})])]),_:1},512),(G(!0),r(h,null,z(g.value,t=>m((G(),x(V(e),{key:t.url,icon:t.icon,text:``,rounded:``,size:`small`,"aria-label":`${V(o)(`serviceHeader.openServiceUrl`)} — ${t.url}`,onClick:e=>F(t.url)},null,8,[`icon`,`aria-label`,`onClick`])),[[l,t.url,void 0,{bottom:!0}]])),128))])):Q(``,!0)]),T.value&&t.service?(G(),r(`div`,sn,[i[10]||=f(`i`,{class:`pi pi-exclamation-triangle service-header__mismatch-icon`},null,-1),f(`div`,cn,[f(`strong`,null,b(T.value.unreachable?`Git remote unreachable`:T.value.actual===null?`No git remote found`:`Git remote mismatch`),1),T.value.unreachable?(G(),r(`span`,ln,[i[1]||=C(` Cannot reach `,-1),f(`code`,null,b(T.value.configured),1),i[2]||=C(` — check your network or SSH credentials. `,-1)])):T.value.actual===null?(G(),r(`span`,un,[i[3]||=C(` The directory `,-1),f(`code`,null,b(y.value??t.service.cwd),1),i[4]||=C(` has no `,-1),i[5]||=f(`code`,null,`origin`,-1),i[6]||=C(` remote, but the service is configured for `,-1),f(`code`,null,b(T.value.configured),1),i[7]||=C(`. `,-1)])):(G(),r(h,{key:2},[f(`span`,null,[i[8]||=C(`Configured: `,-1),f(`code`,null,b(T.value.configured),1)]),f(`span`,null,[i[9]||=C(`Actual: `,-1),f(`code`,null,b(T.value.actual),1)])],64))])])):Q(``,!0),_.value&&t.service?(G(),r(`div`,dn,[i[14]||=f(`i`,{class:`pi pi-folder-open service-header__clone-icon`},null,-1),(v.value??[]).length>0?(G(),r(`span`,fn,[i[11]||=C(` Working directory `,-1),f(`code`,null,b(y.value??t.service.cwd),1),i[12]||=C(` contains unresolved variables: `,-1),(G(!0),r(h,null,z(v.value??[],e=>(G(),r(`code`,{key:e,class:`service-header__clone-var`},`$`+b(e),1))),128)),i[13]||=C(` — set them in the environment before cloning. `,-1)])):(G(),r(`span`,pn,b(V(o)(`serviceHeader.cwdNotExist`,{cwd:y.value??t.service.cwd})),1)),(v.value??[]).length===0?(G(),x(V(e),{key:2,label:V(o)(`serviceHeader.cloneRepository`),icon:`pi pi-download`,size:`small`,loading:E.value,onClick:A},null,8,[`label`,`loading`])):Q(``,!0)])):Q(``,!0)])}}}),[[`__scopeId`,`data-v-ee28562f`]]),hn={class:`app-layout__main`,"data-testid":`page-content`},gn={class:`app-layout__content`},_n=T(q({__name:`AppMainArea`,props:{selectedService:{},selectedServiceId:{},selectedServiceProcesses:{},activeTab:{}},emits:[`tab-change`],setup(e,{emit:t}){let n=t;function i(e){n(`tab-change`,e)}return(t,n)=>(G(),r(`div`,hn,[s(mn,{service:e.selectedService},null,8,[`service`]),f(`div`,gn,[m(s(Wt,{"active-tab":e.activeTab,"service-id":e.selectedServiceId,onTabChange:i},null,8,[`active-tab`,`service-id`]),[[ee,!!e.selectedServiceId]]),f(`div`,{class:o(e.selectedServiceId?`app-layout__service-view`:[`ai-chat`,`kanban`,`agent-terminal`,`wiki-global`,`cloud-messaging`].includes(e.activeTab)?`app-layout__fullpage`:`app-layout__page`)},[e.selectedService?(G(),x(Se,{key:0,service:e.selectedService,processes:e.selectedServiceProcesses},null,8,[`service`,`processes`])):Q(``,!0),f(`div`,{class:o([`ai-chat`,`kanban`,`agent-terminal`,`wiki-global`,`cloud-messaging`].includes(e.activeTab)?`app-layout__router-view-fullpage`:`app-layout__router-view`)},[s(V(le))],2)],2)])]))}}),[[`__scopeId`,`data-v-d688302d`]]),vn={class:`environment-selector`},yn={for:`env-select`,class:`label`,"data-testid":`env-selector-label`},bn={class:`env-panel-heading`},xn={key:0,class:`env-option`},Sn={key:1},Cn={class:`env-option`},wn=T(q({__name:`EnvironmentSelector`,props:{modelValue:{},disabled:{type:Boolean}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=t,{t:i}=Z(),a=A(),o=c(()=>a.globalEnvironments);function l(e){if(e)return e.startsWith(`#`)?e:`#${e}`}function u(e){return a.environments.find(t=>t.id===e)}function p(e){n(`update:modelValue`,e)}return(t,n)=>(G(),r(`div`,vn,[f(`label`,yn,b(V(i)(`environmentSelector.label`)),1),s(V(ce),{id:`env-select`,"model-value":e.modelValue,options:o.value,"option-label":`name`,"option-value":`id`,"onUpdate:modelValue":p,placeholder:V(i)(`environmentSelector.placeholder`),disabled:e.disabled},{header:H(()=>[f(`div`,bn,b(V(i)(`environmentSelector.heading`)),1)]),value:H(e=>[e.value?(G(),r(`div`,xn,[u(e.value)?.color||u(e.value)?.bgColor?(G(),r(`span`,{key:0,class:`env-dot`,style:d({backgroundColor:l(u(e.value)?.bgColor)||l(u(e.value)?.color)})},null,4)):Q(``,!0),f(`span`,null,b(u(e.value)?.name??e.value),1)])):(G(),r(`span`,Sn,b(e.placeholder),1))]),option:H(e=>[f(`div`,Cn,[e.option.color||e.option.bgColor?(G(),r(`span`,{key:0,class:`env-dot`,style:d({backgroundColor:l(e.option.bgColor)||l(e.option.color)})},null,4)):Q(``,!0),f(`span`,null,b(e.option.name),1)])]),_:1},8,[`model-value`,`options`,`placeholder`,`disabled`])]))}}),[[`__scopeId`,`data-v-58732841`]]),Tn={class:`switcher`},En={class:`switcher__heading`},Dn={class:`switcher__group`},On={class:`switcher__title`},kn={key:0,class:`switcher__empty`},An=[`onClick`],jn={class:`switcher__name`},Mn=[`title`,`aria-label`,`onClick`],Nn={key:1,class:`switcher__loading`},Pn={class:`switcher__title`},Fn={key:0,class:`switcher__empty`},In=[`disabled`,`onClick`],Ln={key:0,class:`pi pi-spin pi-spinner`},Rn={class:`switcher__name`},zn={key:2,class:`pi pi-download switcher__hint`},Bn=[`title`,`aria-label`,`onClick`],Vn=[`title`,`aria-label`,`onClick`],Hn={key:2,class:`switcher__empty switcher__signin`},Un=T(q({__name:`ProjectSwitcher`,setup(n,{expose:i}){let{t:a}=Z(),l=R(),u=B(),d=E(),p=X(),{isLinked:m}=_e(),_=w(null),T=w(``),O=w(``),k=we(),{loading:A,error:j}=k,M=k.orgGroups,N=c(()=>d.projects.filter(e=>!e.orgId)),P=c(()=>p.activeProjectId),F=c(()=>p.activeOrgId);function I(e,t){return t===P.value&&e===F.value}function L(e){_.value?.toggle(e)}async function ee(){await k.refreshCloud()}function te(e){p.setActiveProject(e,null),_.value?.hide(),l.push({name:`dashboard`})}async function W(e,n,r){T.value=n,j.value=``;try{await k.pullProject(e,n,r),p.setActiveProject(n,e),_.value?.hide(),l.push({name:`dashboard`})}catch(r){j.value=t(r,a),ce(r,y(r))&&(J.value={orgId:e,projectId:n})}finally{T.value=``}}async function ne(){let e=J.value;if(J.value=null,!e)return;j.value=``;let t=k.orgGroups.value.find(t=>t.orgId===e.orgId);await W(e.orgId,e.projectId,t?.accountId)}function K(e,t){j.value=``,u.require({header:a(`projectSwitcher.deleteFromOrgTitle`),message:a(`projectSwitcher.deleteFromOrgConfirm`,{project:t.name,org:e.name}),icon:`pi pi-exclamation-triangle`,rejectLabel:a(`actions.cancel`),acceptLabel:a(`projectSwitcher.deleteFromOrgAccept`),acceptClass:`p-button-danger`,accept:()=>void re(e.orgId,t.projectId)})}async function re(e,n){O.value=n;try{await S.cloudSync.deleteProjectFromOrg.mutate({orgId:e,projectId:n}),await d.fetchAll(),await k.refreshCloud()}catch(e){j.value=t(e,a)}finally{O.value=``}}async function q(e,t){j.value=``;try{await S.cloudSync.untrackProject.mutate({orgId:e,projectId:t}),await d.fetchAll(),k.markUntracked(e,t)}catch(e){j.value=y(e)}}let J=w(null),ie=w(!1),Y=w(!1),ae=w(null);function oe(e){ae.value={id:e.id,name:e.name},Y.value=!0}function se(){_.value?.hide(),l.push({name:`dashboard`})}i({toggle:L});function ce(e,t){return t===`ORG_KEY_MISMATCH`||t===`ORG_VAULT_UNREADABLE`?!0:e?.syncState===`key-mismatch`}return(t,n)=>(G(),r(h,null,[s(V(D),{ref_key:`popover`,ref:_,onShow:ee,class:`project-switcher`},{default:H(()=>[f(`div`,Tn,[f(`h2`,En,b(V(a)(`projectSwitcher.heading`)),1),V(j)?(G(),x(V(v),{key:0,severity:`error`,closable:!1,class:`switcher__error`},{default:H(()=>[C(b(V(j)),1)]),_:1})):Q(``,!0),f(`section`,Dn,[f(`h3`,On,b(V(a)(`projectSwitcher.local`)),1),N.value.length===0?(G(),r(`p`,kn,b(V(a)(`projectSwitcher.noLocal`)),1)):Q(``,!0),(G(!0),r(h,null,z(N.value,e=>(G(),r(`button`,{key:e.id,class:o([`switcher__item`,{"is-active":e.id===P.value&&F.value===null}]),onClick:t=>te(e.id)},[n[6]||=f(`i`,{class:`pi pi-folder`},null,-1),f(`span`,jn,b(e.name),1),V(m)&&V(M).length?(G(),r(`span`,{key:0,class:`switcher__publish`,role:`button`,title:V(a)(`projectSwitcher.publish`),"aria-label":V(a)(`projectSwitcher.publish`),onClick:U(t=>oe(e),[`stop`])},[...n[5]||=[f(`i`,{class:`pi pi-cloud-upload`},null,-1)]],8,Mn)):Q(``,!0)],10,An))),128))]),V(A)?(G(),r(`div`,Nn,[s(V(g),{style:{width:`1.5rem`,height:`1.5rem`}})])):Q(``,!0),(G(!0),r(h,null,z(V(M),e=>(G(),r(`section`,{key:e.orgId,class:`switcher__group`},[f(`h3`,Pn,[s(Te,{"org-id":e.orgId,name:e.name,size:16},null,8,[`org-id`,`name`]),f(`span`,null,b(e.name),1)]),e.projects.length===0?(G(),r(`p`,Fn,b(V(a)(`projectSwitcher.noProjects`)),1)):Q(``,!0),(G(!0),r(h,null,z(e.projects,t=>(G(),r(`button`,{key:t.projectId,class:o([`switcher__item`,{"is-active":I(e.orgId,t.projectId)}]),disabled:T.value===t.projectId,onClick:n=>W(e.orgId,t.projectId,e.accountId)},[T.value===t.projectId?(G(),r(`i`,Ln)):(G(),x(Te,{key:1,"org-id":e.orgId,name:e.name,size:18},null,8,[`org-id`,`name`])),f(`span`,Rn,b(t.name),1),!t.local&&T.value!==t.projectId?(G(),r(`i`,zn)):t.local&&!I(e.orgId,t.projectId)?(G(),r(`span`,{key:3,class:`switcher__drop`,role:`button`,title:V(a)(`projectSwitcher.untrack`),"aria-label":V(a)(`projectSwitcher.untrack`),onClick:U(n=>q(e.orgId,t.projectId),[`stop`])},[...n[7]||=[f(`i`,{class:`pi pi-times`},null,-1)]],8,Bn)):Q(``,!0),V(m)?(G(),r(`span`,{key:4,class:`switcher__delete`,role:`button`,title:V(a)(`projectSwitcher.deleteFromOrg`,{org:e.name}),"aria-label":V(a)(`projectSwitcher.deleteFromOrg`,{org:e.name}),onClick:U(n=>K(e,t),[`stop`])},[f(`i`,{class:o([`pi`,O.value===t.projectId?`pi-spin pi-spinner`:`pi-trash`])},null,2)],8,Vn)):Q(``,!0)],10,In))),128))]))),128)),V(m)?Q(``,!0):(G(),r(`p`,Hn,b(V(M).length?V(a)(`projectSwitcher.signInMore`):V(a)(`projectSwitcher.signInHint`)),1)),s(V(e),{label:V(a)(`projectSwitcher.create`),icon:`pi pi-plus`,text:``,size:`small`,class:`switcher__create`,onClick:n[0]||=e=>ie.value=!0},null,8,[`label`])])]),_:1},512),s(Ce,{"org-id":J.value?.orgId??null,reference:`cloud`,title:V(a)(`projectSwitcher.keyPromptTitle`),hint:V(a)(`projectSwitcher.keyPromptHint`),"confirm-label":V(a)(`projectSwitcher.keyPromptUse`),onClose:n[1]||=e=>J.value=null,onAdopted:ne},null,8,[`org-id`,`title`,`hint`,`confirm-label`]),s(Ee,{visible:Y.value,"onUpdate:visible":n[2]||=e=>Y.value=e,project:ae.value,onPublished:n[3]||=e=>V(k).refreshCloud()},null,8,[`visible`,`project`]),s(De,{visible:ie.value,"onUpdate:visible":n[4]||=e=>ie.value=e,onCreated:se},null,8,[`visible`])],64))}}),[[`__scopeId`,`data-v-dc784917`]]),Wn={class:`bottom-bar`},Gn={class:`bottom-bar__content`},Kn=[`aria-label`],qn={class:`desktop-info`},Jn={class:`desktop-info__title`},Yn={class:`desktop-info__text`},Xn={key:0,class:`desktop-info__address`},Zn={class:`desktop-info__cta`},Qn=[`title`],$n={key:0,class:`pi pi-folder icon`},er={class:`value`},tr={class:`bottom-bar__right`},nr={key:0,class:`bottom-bar__section environment`},rr=[`title`],ir=[`src`,`alt`],ar={key:1,class:`cloud-avatar cloud-avatar--initials`},or=T(q({__name:`BottomBar`,setup(e){let t=E();A(),X();let n=O(),{t:i}=Z(),a=R(),{user:o,currentAccount:u,isLinked:d}=_e(),p=c(()=>{let e=o.value;return e?.image?ie(e.id,{accountId:u.value?.id}):``}),m=w(!1),g=c(()=>(o.value?.name||o.value?.email||`?`).trim().split(/\s+/).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(``)||`?`);function _(){a.push({name:`cloud-account`})}let{isDesktop:v,port:y}=l(),x=w(null);function T(e){x.value?.show(e)}function k(){x.value?.hide()}function j(){k(),a.push({name:`settings`,query:{section:`diagnostics`}})}let M=w(null);function N(e){M.value?.toggle(e)}let P=c(()=>t.currentProject),F=w({});S.cloudSync.orgNames.query().then(e=>{F.value=e}).catch(()=>{});let I=c(()=>{let e=P.value?.orgId;return e?F.value[e]??``:``}),L=c(()=>P.value?.activeEnvironmentId??null);async function z(e){P.value&&(await t.setActiveEnvironment(P.value,e)||n.add({severity:`error`,summary:i(`bottomBar.errorChangingEnv`),life:5e3}))}return(e,t)=>(G(),r(`div`,Wn,[f(`div`,Gn,[V(v)?(G(),r(`button`,{key:0,class:`bottom-bar__section desktop-badge`,"aria-label":V(i)(`bottomBar.desktopMode.title`),"data-testid":`bottom-bar-desktop`,onMouseenter:T,onMouseleave:k,onFocus:T,onBlur:k,onClick:j},[...t[1]||=[f(`i`,{class:`pi pi-desktop icon`},null,-1)]],40,Kn)):Q(``,!0),s(V(D),{ref_key:`desktopPopover`,ref:x,dismissable:!0},{default:H(()=>[f(`div`,qn,[f(`div`,Jn,[t[2]||=f(`i`,{class:`pi pi-desktop`},null,-1),f(`span`,null,b(V(i)(`bottomBar.desktopMode.title`)),1)]),f(`p`,Yn,b(V(i)(`bottomBar.desktopMode.description`)),1),V(y)?(G(),r(`p`,Xn,[C(b(V(i)(`bottomBar.desktopMode.address`))+` `,1),f(`code`,null,`http://localhost:`+b(V(y)),1)])):Q(``,!0),f(`p`,Zn,[t[3]||=f(`i`,{class:`pi pi-arrow-right`},null,-1),C(` `+b(V(i)(`bottomBar.desktopMode.goToDiagnostics`)),1)])])]),_:1},512),f(`button`,{class:`bottom-bar__section project-btn is-clickable`,title:V(i)(`bottomBar.switchProject`),"data-testid":`bottom-bar-project`,onClick:N},[P.value?.orgId?(G(),r(h,{key:1},[s(Te,{"org-id":P.value.orgId,name:I.value,size:16,title:I.value},null,8,[`org-id`,`name`,`title`]),t[4]||=f(`i`,{class:`pi pi-angle-right org-sep`},null,-1)],64)):(G(),r(`i`,$n)),f(`span`,er,b(P.value?.name??V(i)(`bottomBar.none`)),1),t[5]||=f(`i`,{class:`pi pi-angle-up caret`},null,-1)],8,Qn),s(Un,{ref_key:`switcher`,ref:M},null,512),f(`div`,tr,[P.value&&L.value?(G(),r(`div`,nr,[t[6]||=f(`i`,{class:`pi pi-globe icon`},null,-1),s(wn,{"model-value":L.value,"onUpdate:modelValue":z,class:`bottom-env-selector`},null,8,[`model-value`])])):Q(``,!0),V(d)?(G(),r(`button`,{key:2,class:`bottom-bar__section cloud-btn cloud-avatar-btn`,title:V(i)(`bottomBar.cloudAccount`),onClick:_},[p.value&&!m.value?(G(),r(`img`,{key:0,src:p.value,alt:V(o)?.name??``,class:`cloud-avatar`,onError:t[0]||=e=>m.value=!0},null,40,ir)):(G(),r(`span`,ar,b(g.value),1))],8,rr)):(G(),r(`button`,{key:1,class:`bottom-bar__section cloud-btn cloud-login`,onClick:_},[t[7]||=f(`i`,{class:`pi pi-cloud icon`},null,-1),f(`span`,null,b(V(i)(`bottomBar.cloudLogin`)),1)]))])])]))}}),[[`__scopeId`,`data-v-4ec24736`]]),sr={class:`cloud-banner__text`},cr=T(q({__name:`CloudProjectBanner`,setup(e){let{t}=Z(),a=E(),s=X(),{user:l,isLinked:u,currentAccount:d,loading:p}=_e(),m=n(k,ve()),h=c(()=>s.activeProjectId?a.currentProjectOrgId:null),g=w(null),_=w(new Map);i([()=>l.value?.id,h],async([e,t])=>{if(!(!e||!t)){m.refresh();try{let[e,t]=await Promise.all([S.cloudAuth.status.query(),S.cloudSync.orgClouds.query()]);g.value=d.value?.cloudUrl??e.cloudUrl??null,_.value=new Map(Object.entries(t))}catch{}}},{immediate:!0});function v(e,t){return e.replace(/\/+$/,``)===t.replace(/\/+$/,``)}let y=c(()=>{if(!h.value||p.value)return null;if(!u.value)return`offline`;let e=_.value.get(h.value);return e&&g.value&&!v(e,g.value)?`other-cloud`:m.loading.value||!m.organizations.value.length||m.organizations.value.some(e=>e.id===h.value)?null:`other-org`}),x=c(()=>y.value===`offline`?t(`cloudBanner.offline`):y.value===`other-cloud`?t(`cloudBanner.otherCloud`):t(`cloudBanner.otherOrg`));return(e,t)=>y.value?(G(),r(`div`,{key:0,class:o([`cloud-banner`,`cloud-banner--${y.value}`]),role:`status`,"data-testid":`cloud-project-banner`},[f(`i`,{class:o([y.value===`offline`?`pi pi-cloud-off`:`pi pi-exclamation-triangle`,`cloud-banner__icon`])},null,2),f(`span`,sr,b(x.value),1)],2)):Q(``,!0)}}),[[`__scopeId`,`data-v-cf467970`]]),lr=q({__name:`ProjectLocationGate`,setup(e){let t=E(),n=X(),{activeProjectId:r}=me(n),a=w(!1),o=w(``),s=w(null),c=w(``),l=new Set;function u(e,t){return`${e??`local`}:${t}`}return i([r,()=>t.projects.length],async([e])=>{if(!e||l.has(u(n.activeOrgId,e)))return;let r=t.getByRef({id:e,orgId:n.activeOrgId})??t.getById(e);if(r&&r.orgId){try{let{path:t}=await S.project.getLocalPath.query({id:e,orgId:r.orgId});if(t)return}catch{return}l.add(u(r.orgId,e)),o.value=e,s.value=r.orgId??null,c.value=r.name,a.value=!0}},{immediate:!0}),(e,t)=>o.value?(G(),x(Oe,{key:0,visible:a.value,"onUpdate:visible":t[0]||=e=>a.value=e,"project-id":o.value,"org-id":s.value,"project-name":c.value,required:``},null,8,[`visible`,`project-id`,`org-id`,`project-name`])):Q(``,!0)}}),ur={class:`app-layout__body`},dr=`runeya.serviceSidebar.widthPx`,fr=160,pr=600,mr=220,hr=`(max-width: 480px)`,gr=T(q({__name:`AppLayout`,setup(e){let t=R(),n=M(),a=E(),l=ne(),d=re(),p=N(),m=X(),h=A(),g=Y();ye();let _=w(!1),{size:v,isResizing:y,start:b}=u({axis:`x`,min:fr,max:pr,initial:mr,storageKey:dr}),x=w(window.matchMedia(hr).matches),S=window.matchMedia(hr);function C(e){x.value=e.matches,e.matches?_.value=!0:_.value=!1}S.addEventListener(`change`,C),x.value&&(_.value=!0);let T=c(()=>n.name===`service-detail`?n.params.id:null),D=c(()=>{if(n.name===`service-detail`){let e=n.params.tab;return e===`terminal`||e===`metrics`||e===`config`||e===`git`||e===`wiki`?e:`terminal`}return n.path===`/wiki`?`wiki-global`:n.name===`environments`||n.name===`environment-edit`?`environments`:n.path===`/settings`?`settings`:n.path.startsWith(`/ai-chat`)||n.path.startsWith(`/scenario`)?`ai-chat`:n.path.startsWith(`/kanban`)?`kanban`:n.path===`/agent-terminal`?`agent-terminal`:n.name===`cloud-messaging`?`cloud-messaging`:`dashboard`}),O=c(()=>T.value?l.getById(T.value):null),k=c(()=>T.value?d.getByService(T.value):[]),j=c(()=>m.activeProjectId),P=c(()=>m.activeOrgId);function F(e){e===`dashboard`?t.push(`/`):e===`environments`?j.value&&t.push({name:`environments`,params:{projectId:j.value}}):e===`ai-chat`?t.push(`/ai-chat`):e===`kanban`?t.push(`/kanban`):e===`agent-terminal`?t.push(`/agent-terminal`):e===`settings`?t.push(`/settings`):e===`wiki-global`?t.push(`/wiki`):e===`cloud-messaging`?t.push({name:`cloud-messaging`}):T.value&&t.push(`/services/${T.value}/${e}`)}function I(e){let n=D.value,r=n===`terminal`||n===`metrics`||n===`config`||n===`git`||n===`wiki`?n:`terminal`;t.push(`/services/${e}/${r}`)}function z(){t.push(`/services/new`)}let B=[`dashboard`,`projects`,`agents`,`settings`,`audit`,`api-keys`,`ai-chat`,`kanban-list`,`kanban-board`,`agent-terminal`,`wiki-global`];i(j,async e=>{if(!e&&n.name&&!B.includes(n.name)&&t.push({name:`dashboard`}),e){try{await h.fetchAll(e,!0)}catch(e){console.error(`[AppLayout] Failed to load environments:`,e.message)}g.fetchPreferences(),H(e)||t.push({name:`launch-services`})}});function H(e){let t=(a.getByRef({id:e,orgId:m.activeOrgId})??a.getById(e))?.serviceIds??[];if(t.length===0)return!0;let n=te(d.processes);return t.some(e=>n.has(e))}return L(()=>{S.removeEventListener(`change`,C)}),se(async()=>{if(await Promise.all([a.fetchAll(),l.fetchAll(),d.fetchAll(),p.fetchAll()]),j.value)try{await h.fetchAll(j.value)}catch(e){console.error(`[AppLayout] Failed to load environments:`,e.message)}g.fetchAvailable(),j.value&&g.fetchPreferences(),p.subscribeStatus(),!j.value&&!B.includes(n.name)&&t.push({name:`dashboard`})}),(e,t)=>(G(),r(`div`,{class:o([`app-layout`,{"app-layout--portrait":x.value}])},[s(cr),s(lr),f(`div`,ur,[s(Rt,{"active-tab":D.value,portrait:x.value,onTabChange:F,onToggleServiceSidebar:t[0]||=e=>_.value=!_.value},null,8,[`active-tab`,`portrait`]),s(Qe,{"selected-service-id":T.value,collapsed:_.value,"active-project-id":j.value,"active-org-id":P.value,portrait:x.value,width:V(v),resizing:V(y),onSelectService:I,onAddService:z,onToggleCollapse:t[1]||=e=>_.value=!_.value},null,8,[`selected-service-id`,`collapsed`,`active-project-id`,`active-org-id`,`portrait`,`width`,`resizing`]),!x.value&&!_.value?(G(),r(`div`,{key:0,class:o([`app-layout__resizer`,{"app-layout__resizer--active":V(y)}]),onMousedown:t[2]||=U((...e)=>V(b)&&V(b)(...e),[`prevent`])},null,34)):Q(``,!0),x.value&&_.value?(G(),r(`div`,{key:1,class:`app-layout__sidebar-edge-trigger`,onClick:t[3]||=e=>_.value=!1},[...t[4]||=[f(`i`,{class:`pi pi-chevron-right`},null,-1)]])):Q(``,!0),s(_n,{"selected-service":O.value,"selected-service-id":T.value,"selected-service-processes":k.value,"active-tab":D.value,onTabChange:F},null,8,[`selected-service`,`selected-service-id`,`selected-service-processes`,`active-tab`])]),s(or)],2))}}),[[`__scopeId`,`data-v-1d5fb6b0`]]);export{gr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Bi as e,Da as t,Dn as n,Gi as r,Ii as i,Li as a,Ra as o,Rn as s,Wi as c,Ya as l,Yn as u,io as d,ja as f,ma as p,qi as m,ua as h,un as g,xr as _,zi as v}from"./index-Bul9Aylo.js";import{n as y,t as b}from"./column-DkPii5Hb.js";var x={class:`audit-page`},S={class:`filters`},C={key:0,class:`audit-metadata`},w=u(m({__name:`AuditPage`,setup(u){let{t:m}=_(),w=l([]),T=l(0),E=l(!1),D=l(void 0),O=l(void 0),k=l(0),A=l(20),j=i(()=>[{label:m(`auditPage.allActions`),value:void 0},{label:m(`auditPage.actionCreate`),value:`create`},{label:m(`auditPage.actionUpdate`),value:`update`},{label:m(`auditPage.actionDelete`),value:`delete`},{label:m(`auditPage.actionDeploy`),value:`deploy`},{label:m(`auditPage.actionStart`),value:`start`},{label:m(`auditPage.actionStop`),value:`stop`},{label:m(`auditPage.actionRestart`),value:`restart`}]),M=i(()=>[{label:m(`auditPage.allTypes`),value:void 0},{label:m(`auditPage.typeProject`),value:`project`},{label:m(`auditPage.typeService`),value:`service`},{label:m(`auditPage.typeProcess`),value:`process`},{label:m(`auditPage.typeAgent`),value:`agent`}]);async function N(){E.value=!0;try{let e=await s.audit.list.query({action:D.value,entityType:O.value,limit:A.value,offset:k.value});w.value=e.entries,T.value=e.total}catch(e){console.error(`Failed to load audit log:`,e)}finally{E.value=!1}}function P(e){k.value=e.first,A.value=e.rows,N()}function F(e){switch(e){case`create`:return`success`;case`delete`:return`danger`;case`start`:return`success`;case`stop`:return`warn`;default:return`info`}}function I(e){return Object.entries(e).map(([e,t])=>{let n=typeof t==`string`?t:JSON.stringify(t);return`${e}=${n.length>50?n.slice(0,50)+`...`:n}`}).join(`, `)}return t([D,O],()=>{k.value=0,N()}),h(N),(t,i)=>(p(),e(`div`,x,[a(`h2`,null,o(d(m)(`auditPage.title`)),1),a(`div`,S,[r(d(g),{modelValue:D.value,"onUpdate:modelValue":i[0]||=e=>D.value=e,options:j.value,"option-label":`label`,"option-value":`value`,placeholder:d(m)(`auditPage.filterByAction`),class:`filter-select`},null,8,[`modelValue`,`options`,`placeholder`]),r(d(g),{modelValue:O.value,"onUpdate:modelValue":i[1]||=e=>O.value=e,options:M.value,"option-label":`label`,"option-value":`value`,placeholder:d(m)(`auditPage.filterByType`),class:`filter-select`},null,8,[`modelValue`,`options`,`placeholder`])]),r(d(y),{value:w.value,loading:E.value,lazy:!0,paginator:!0,rows:A.value,"total-records":T.value,first:k.value,"rows-per-page-options":[10,20,50],"striped-rows":``,size:`small`,onPage:P},{default:f(()=>[r(d(b),{field:`timestamp`,header:d(m)(`auditPage.timeColumn`),sortable:!1,style:{width:`180px`}},{body:f(({data:e})=>[c(o(new Date(e.timestamp).toLocaleString()),1)]),_:1},8,[`header`]),r(d(b),{field:`action`,header:d(m)(`auditPage.actionColumn`),style:{width:`120px`}},{body:f(({data:e})=>[r(d(n),{value:e.action,severity:F(e.action)},null,8,[`value`,`severity`])]),_:1},8,[`header`]),r(d(b),{field:`entityType`,header:d(m)(`auditPage.entityTypeColumn`),style:{width:`120px`}},null,8,[`header`]),r(d(b),{field:`entityId`,header:d(m)(`auditPage.entityIdColumn`),style:{width:`260px`}},{body:f(({data:e})=>[a(`code`,null,o(e.entityId.substring(0,8))+`...`,1)]),_:1},8,[`header`]),r(d(b),{field:`userId`,header:d(m)(`auditPage.userColumn`),style:{width:`80px`}},null,8,[`header`]),r(d(b),{header:d(m)(`auditPage.detailsColumn`)},{body:f(({data:t})=>[t.metadata?(p(),e(`code`,C,o(I(t.metadata)),1)):v(``,!0)]),_:1},8,[`header`])]),_:1},8,[`value`,`loading`,`rows`,`total-records`,`first`])]))}}),[[`__scopeId`,`data-v-01404a0e`]]);export{w as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./cloud-session-DwRT1TUx.js";import{t as e}from"./CloudAccountPage-WIW6QDtJ.js";export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$n as e,Bi as t,Da as n,Fa as r,Gi as i,Ii as a,Li as o,Ni as s,On as c,Pn as l,Qt as u,Ra as d,Ri as f,Rn as p,Wi as m,Ya as h,Yn as ee,Zt as te,_r as ne,b as re,ga as g,i as ie,io as _,ja as v,ma as y,qi as b,r as ae,t as oe,zi as x}from"./index-Bul9Aylo.js";import{r as se}from"./cloud-session-DwRT1TUx.js";import{t as ce}from"./password-CK1h81G7.js";var le={class:`cloud-account`},ue={class:`cloud-card`},de={class:`cloud-card__head`},fe={class:`cloud-card__headtext`},pe={class:`cloud-card__subtitle`},me={key:0,class:`panel`},he={class:`signup`},ge=[`href`],_e={key:1,class:`panel`},ve={class:`accounts`},ye=[`onClick`],be=[`src`,`alt`],xe={key:1,class:`avatar avatar--sm`},Se={class:`account__info`},Ce={class:`account__name`},we={key:0,class:`account__badge`},Te={class:`account__email`},Ee={key:0,class:`account__cloud`},De={class:`orgs`},Oe={class:`orgs__head`},ke={key:0,class:`orgs__empty`},Ae={key:1,class:`orgs__empty`},je=[`href`],Me={class:`orgs__list`},Ne={class:`org__row`},Pe={class:`org__info`},Fe={class:`org__name`},Ie={class:`org__state`},Le={class:`org__projects`},Re={key:0,class:`org__reset`},ze={class:`org__adopt`},Be={class:`org__reset-actions`},Ve={class:`org__reset-actions`},He={class:`org__reset-text`},Ue={class:`org__reset-actions`},We={class:`orgs`},Ge={class:`orgs__head`},Ke={key:0,class:`orgs__empty`},qe={key:1,class:`orgs__empty`},Je={key:2,class:`orgs__list`},Ye={class:`org__info`},Xe={class:`org__name`},Ze={key:0,class:`badge`},Qe={class:`org__state`},$e={class:`org-note`},et=[`href`],S=ee(b({__name:`CloudAccountPage`,setup(ee){let{accounts:b,currentAccount:S,signIn:tt,signOut:nt,refresh:rt}=se(),C=h(``),w=a(()=>b.value.find(e=>e.id===C.value)??S.value??b.value[0]??null);function it(e){return S.value?.id===e}let at=a(()=>new Set(b.value.map(e=>e.cloudUrl)).size>1);function ot(e){return oe(e.userId,{accountId:e.id})}function st(e,t){return(e||t||`?`).trim().split(/\s+/).slice(0,2).map(e=>e.charAt(0).toUpperCase()).join(``)||`?`}let T=h(``);async function ct(e){T.value=e;try{await nt(e),C.value===e&&(C.value=``),J.value=[],await $()}finally{T.value=``}}let lt=a(()=>ie()),E=a(()=>ae()),D=h(!1),O=h(``);async function k(){D.value=!0,O.value=``;try{await tt()}catch{O.value=`Impossible de joindre Runeya Cloud. Vérifiez la configuration du serveur local.`,D.value=!1}}let A=h([]),j=h(!1),M=h(``),N=h([]),P=te();function ut(e){let t=N.value.find(t=>t.orgId===e);if(!t)return`Non synchronisée`;switch(t.state){case`live`:return`Synchronisée`;case`connecting`:return`Connexion…`;case`unauthenticated`:return`Reconnexion au cloud requise`;case`outdated`:return t.lastIncompatibleVersion?`Mise à jour requise (plus récent que Runeya ${t.lastIncompatibleVersion})`:`Mise à jour de Runeya requise`;case`key-mismatch`:return`Clé de chiffrement différente de celle de l'organisation`;default:return`Arrêtée`}}let F=ne(),I=h({});async function dt(e){if(e.length)try{await p.cloudSync.rememberOrgNames.mutate({orgs:e.map(e=>({orgId:e.id,name:e.name}))})}catch{}}async function ft(){try{let e=await p.setup.getOrgKeys.query();I.value=Object.fromEntries(e.orgs.filter(e=>e.keyHex!==null).map(e=>[e.orgId,e.keyHex]))}catch{I.value={}}}async function pt(e){let t=I.value[e.id];if(t)try{await navigator.clipboard.writeText(t),F.add({severity:`success`,summary:`Copié`,detail:`Clé de ${e.name} copiée dans le presse-papiers`,life:2e3})}catch{F.add({severity:`error`,summary:`Erreur`,detail:`Impossible de copier dans le presse-papiers`,life:3e3})}}function mt(e){return N.value.find(t=>t.orgId===e)?.state===`key-mismatch`||L.value[e]===`mismatch`}let L=h({});async function ht(e){let t=await Promise.all(e.map(async e=>{try{let t=await p.cloudSync.orgKeyStatus.query({orgId:e.id});return[e.id,t.status]}catch{return[e.id,`unknown`]}}));L.value=Object.fromEntries(t)}let R=h({}),z=h({}),B=h({}),V=h({}),H=h(null),U=h(null);function gt(e){return/^[0-9a-f]{64}$/i.test((e??``).trim())}async function _t(e){H.value=e.id,B.value={...B.value,[e.id]:``};try{let t=await p.cloudSync.checkOrgKey.query({orgId:e.id,keyHex:(R.value[e.id]??``).trim()});V.value={...V.value,[e.id]:t.matches?`yes`:`no`}}catch(t){V.value={...V.value,[e.id]:void 0},B.value={...B.value,[e.id]:u(t)}}finally{H.value=null}}async function vt(e){U.value=e.id,B.value={...B.value,[e.id]:``};try{await p.cloudSync.adoptOrgKey.mutate({orgId:e.id,keyHex:(R.value[e.id]??``).trim(),masterPassword:z.value[e.id]??``}),R.value={...R.value,[e.id]:``},z.value={...z.value,[e.id]:``},V.value={...V.value,[e.id]:void 0},await q()}catch(t){B.value={...B.value,[e.id]:u(t)}}finally{U.value=null}}let W=h({}),G=h({}),K=h(null);async function yt(e){K.value=e.id,G.value={...G.value,[e.id]:``};try{await p.cloudSync.resetOrgKey.mutate({orgId:e.id}),W.value={...W.value,[e.id]:``},await q()}catch(t){G.value={...G.value,[e.id]:u(t)}}finally{K.value=null}}function bt(e){let t=P.projects.filter(t=>t.orgId===e).length;return t===0?`Aucun projet`:t===1?`1 projet`:`${t} projets`}async function q(){j.value=!0,M.value=``;try{let[e,t]=await Promise.all([re.organization.list(w.value?.id),p.cloudSync.list.query(),P.fetchAll(),ft()]);if(e.error){M.value=`Impossible de récupérer vos organisations.`;return}A.value=e.data??[],N.value=t,ht(A.value),dt(A.value)}catch(e){M.value=u(e)}finally{j.value=!1}}let J=h([]),Y=h(!1),X=h(``),Z=h(``),Q=new Intl.RelativeTimeFormat(`fr`,{numeric:`auto`});function xt(e){let t=new Date(e.lastSeenAt).getTime(),n=``;if(Number.isFinite(t)){let e=Math.round((t-Date.now())/6e4);n=Math.abs(e)<60?Q.format(e,`minute`):Math.abs(e)<1440?Q.format(Math.round(e/60),`hour`):Q.format(Math.round(e/1440),`day`)}return[e.kind===`device`?`Machine`:`Navigateur`,n&&`vu ${n}`,e.ipAddress].filter(Boolean).join(` · `)}async function $(){Y.value=!0,X.value=``;try{let e=w.value?.id;if(!e){J.value=[];return}J.value=(await p.cloudAuth.devices.query({accountId:e})).devices}catch(e){X.value=u(e)}finally{Y.value=!1}}async function St(e){Z.value=e.id,X.value=``;try{let{self:t}=await p.cloudAuth.revokeDevice.mutate({id:e.id,...w.value?{accountId:w.value.id}:{}});if(t){J.value=[],C.value=``,await rt();return}await $()}catch(e){X.value=u(e)}finally{Z.value=``}}return n(()=>w.value?.id,e=>{e&&(q(),$())},{immediate:!0}),(n,a)=>(y(),t(`div`,le,[o(`div`,ue,[o(`div`,de,[a[1]||=o(`div`,{class:`cloud-card__badge`},[o(`i`,{class:`pi pi-cloud`})],-1),o(`div`,fe,[a[0]||=o(`h1`,{class:`cloud-card__title`},`Runeya Cloud`,-1),o(`p`,pe,d(_(b).length?`Vos comptes`:`Connectez-vous pour synchroniser et collaborer`),1)])]),_(b).length?(y(),t(`div`,_e,[o(`ul`,ve,[(y(!0),t(s,null,g(_(b),n=>(y(),t(`li`,{key:n.id,class:r([`account`,{"account--inspected":w.value?.id===n.id}])},[o(`button`,{type:`button`,class:`account__pick`,onClick:e=>C.value=n.id},[n.image?(y(),t(`img`,{key:0,src:ot(n),alt:n.name,class:`avatar avatar--img avatar--sm`},null,8,be)):(y(),t(`div`,xe,d(st(n.name,n.email)),1)),o(`span`,Se,[o(`strong`,Ce,[m(d(n.name||n.email)+` `,1),it(n.id)?(y(),t(`span`,we,`projet ouvert`)):x(``,!0)]),o(`span`,Te,d(n.email),1),at.value?(y(),t(`span`,Ee,d(n.cloudUrl),1)):x(``,!0)])],8,ye),i(_(e),{icon:`pi pi-sign-out`,severity:`secondary`,text:``,rounded:``,size:`small`,loading:T.value===n.id,title:`Déconnecter ${n.email}`,"aria-label":`Déconnecter ${n.email}`,onClick:e=>ct(n.id)},null,8,[`loading`,`title`,`aria-label`,`onClick`])],2))),128))]),i(_(e),{label:`Lier un autre compte`,icon:`pi pi-plus`,severity:`secondary`,outlined:``,size:`small`,class:`accounts__add`,loading:D.value,onClick:k},null,8,[`loading`]),o(`div`,De,[o(`div`,Oe,[a[4]||=o(`h2`,{class:`orgs__title`},`Organisations`,-1),i(_(e),{icon:`pi pi-refresh`,severity:`secondary`,text:``,rounded:``,size:`small`,loading:j.value,"aria-label":`Rafraîchir`,onClick:q},null,8,[`loading`])]),j.value&&!A.value.length?(y(),t(`p`,ke,`Chargement…`)):A.value.length?(y(),t(s,{key:2},[o(`ul`,Me,[(y(!0),t(s,null,g(A.value,n=>(y(),t(`li`,{key:n.id,class:`org`},[o(`div`,Ne,[o(`div`,Pe,[o(`strong`,Fe,d(n.name),1),o(`span`,Ie,d(ut(n.id)),1)]),o(`span`,Le,d(bt(n.id)),1),I.value[n.id]?(y(),f(_(e),{key:0,icon:`pi pi-copy`,text:``,rounded:``,size:`small`,severity:`secondary`,title:`Copier la clé de cette organisation`,onClick:e=>pt(n)},null,8,[`onClick`])):x(``,!0)]),mt(n.id)?(y(),t(`div`,Re,[a[11]||=o(`p`,{class:`org__reset-text`},[m(` Cette organisation référence une autre clé de chiffrement que celle de cette machine, donc rien ne se synchronise. Deux issues, et elles ne se valent pas : adopter la clé de l'organisation rend lisible ce qui a déjà été chiffré sous elle ; la réinitialiser laisse tout cela `),o(`strong`,null,`définitivement illisible`),m(` et oblige les autres membres à recevoir la nouvelle clé. `)],-1),o(`div`,ze,[a[9]||=o(`p`,{class:`org__reset-text`},[o(`strong`,null,`Vous avez la clé de l'organisation ?`),m(` Collez-la : cette machine l'adoptera pour cette organisation. Seuls son coffre et ceux de ses projets sont re-chiffrés — vos autres organisations gardent la leur — et une sauvegarde est déposée dans chacun avant écriture. `)],-1),o(`div`,Be,[i(_(c),{modelValue:R.value[n.id],"onUpdate:modelValue":e=>R.value[n.id]=e,placeholder:`clé en 64 caractères hexadécimaux`,class:`org__reset-input`,autocomplete:`off`},null,8,[`modelValue`,`onUpdate:modelValue`]),i(_(e),{label:`Vérifier`,size:`small`,outlined:``,disabled:!gt(R.value[n.id])||H.value===n.id,loading:H.value===n.id,onClick:e=>_t(n)},null,8,[`disabled`,`loading`,`onClick`])]),V.value[n.id]===`no`?(y(),f(_(l),{key:0,severity:`warn`,closable:!1},{default:v(()=>[...a[7]||=[m(` Cette clé n'ouvre pas le canari de l'organisation. `,-1)]]),_:1})):x(``,!0),V.value[n.id]===`yes`?(y(),t(s,{key:1},[i(_(l),{severity:`success`,closable:!1},{default:v(()=>[...a[8]||=[m(` Cette clé est bien celle de l'organisation. `,-1)]]),_:1}),o(`div`,Ve,[i(_(ce),{modelValue:z.value[n.id],"onUpdate:modelValue":e=>z.value[n.id]=e,placeholder:`master password de cette machine`,feedback:!1,toggleMask:``,class:`org__reset-input`,inputClass:`w-full`},null,8,[`modelValue`,`onUpdate:modelValue`]),i(_(e),{label:`Adopter cette clé`,size:`small`,disabled:!z.value[n.id]||U.value===n.id,loading:U.value===n.id,onClick:e=>vt(n)},null,8,[`disabled`,`loading`,`onClick`])])],64)):x(``,!0),B.value[n.id]?(y(),f(_(l),{key:2,severity:`error`,closable:!1},{default:v(()=>[m(d(B.value[n.id]),1)]),_:2},1024)):x(``,!0)]),o(`p`,He,[a[10]||=m(` Personne n'a plus la clé ? Il reste la réinitialisation, qui fait repartir la synchronisation sous la clé d'ici. Pour confirmer, saisissez le nom de l'organisation : `,-1),o(`code`,null,d(n.name),1)]),o(`div`,Ue,[i(_(c),{modelValue:W.value[n.id],"onUpdate:modelValue":e=>W.value[n.id]=e,placeholder:n.name,class:`org__reset-input`,autocomplete:`off`},null,8,[`modelValue`,`onUpdate:modelValue`,`placeholder`]),i(_(e),{label:`Réinitialiser la clé`,severity:`danger`,size:`small`,disabled:W.value[n.id]?.trim()!==n.name||K.value===n.id,loading:K.value===n.id,onClick:e=>yt(n)},null,8,[`disabled`,`loading`,`onClick`])]),G.value[n.id]?(y(),f(_(l),{key:0,severity:`error`,closable:!1},{default:v(()=>[m(d(G.value[n.id]),1)]),_:2},1024)):x(``,!0)])):x(``,!0)]))),128))]),a[12]||=o(`p`,{class:`orgs__hint`},` Ouvrez un projet depuis le sélecteur en bas de la fenêtre pour le synchroniser sur cette machine. `,-1)],64)):(y(),t(`p`,Ae,[a[5]||=m(` Aucune organisation. Créez-en une sur `,-1),o(`a`,{href:E.value,target:`_blank`,rel:`noopener`,class:`link link--strong`},`Runeya Cloud`,8,je),a[6]||=m(`. `,-1)])),M.value?(y(),f(_(l),{key:3,severity:`error`,closable:!1},{default:v(()=>[m(d(M.value),1)]),_:1})):x(``,!0)]),o(`div`,We,[o(`div`,Ge,[a[13]||=o(`h2`,{class:`orgs__title`},`Sessions actives`,-1),i(_(e),{icon:`pi pi-refresh`,severity:`secondary`,text:``,rounded:``,size:`small`,loading:Y.value,"aria-label":`Rafraîchir`,onClick:$},null,8,[`loading`])]),Y.value&&!J.value.length?(y(),t(`p`,Ke,`Chargement…`)):J.value.length?(y(),t(`ul`,Je,[(y(!0),t(s,null,g(J.value,n=>(y(),t(`li`,{key:n.id,class:`org`},[o(`div`,Ye,[o(`strong`,Xe,[o(`i`,{class:r(n.kind===`device`?`pi pi-desktop`:`pi pi-globe`)},null,2),m(` `+d(n.name)+` `,1),n.current?(y(),t(`span`,Ze,`cette machine`)):x(``,!0)]),o(`span`,Qe,d(xt(n)),1)]),i(_(e),{label:n.current?`Délier`:`Révoquer`,icon:`pi pi-times`,severity:`danger`,size:`small`,text:``,loading:Z.value===n.id,onClick:e=>St(n)},null,8,[`label`,`loading`,`onClick`])]))),128))])):(y(),t(`p`,qe,`Aucune session active.`)),X.value?(y(),f(_(l),{key:3,severity:`error`,closable:!1},{default:v(()=>[m(d(X.value),1)]),_:1})):x(``,!0)]),o(`div`,$e,[a[16]||=o(`i`,{class:`pi pi-info-circle`},null,-1),o(`span`,null,[a[14]||=m(` La gestion des organisations se fait sur `,-1),o(`a`,{href:E.value,target:`_blank`,rel:`noopener`,class:`link link--strong`},`Runeya Cloud`,8,et),a[15]||=m(`. `,-1)])])])):(y(),t(`div`,me,[a[3]||=o(`p`,{class:`signin-note`},` La connexion se fait sur Runeya Cloud. Vous serez redirigé pour autoriser cette application locale, puis ramené ici. `,-1),i(_(e),{loading:D.value,label:`Se connecter avec Runeya Cloud`,icon:`pi pi-external-link`,class:`submit-btn`,onClick:k},null,8,[`loading`]),O.value?(y(),f(_(l),{key:0,severity:`error`,closable:!1},{default:v(()=>[m(d(O.value),1)]),_:1})):x(``,!0),o(`div`,he,[a[2]||=o(`span`,null,`Pas encore de compte ?`,-1),o(`a`,{href:lt.value,target:`_blank`,rel:`noopener`,class:`link link--strong`},`Créez-en un sur Runeya Cloud`,8,ge)])]))])]))}}),[[`__scopeId`,`data-v-c694908a`]]);export{S as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$n as e,Bi as t,Fa as n,Gi as r,Ii as i,Li as a,R as o,Ra as s,Ri as c,Ya as l,Yn as u,Zn as d,_ as ee,b as te,en as f,fr as p,io as m,ja as ne,ma as h,n as g,pt as re,qi as _,r as v,t as ie,tt as ae,ut as oe,v as se,xr as ce,y}from"./index-Bul9Aylo.js";import{r as b}from"./cloud-session-DwRT1TUx.js";import{n as x}from"./src-D3VR_y-X.js";import{t as S}from"./cloud-chat.store-6ZDTW64E.js";import"./useProjectCloudOrg-CAg2yHZP.js";import{t as C}from"./useCloudOrg-tTzYkGcC.js";var w={class:`cloud-chat`},T={class:`topbar`},E={key:0,class:`connect-cta`},D={class:`connect-cta__badge`},O={class:`connect-cta__title`},k={class:`connect-cta__desc`},A={key:1,class:`notice`},j=u(_({__name:`CloudMessagingPage`,setup(u){let{t:_}=ce(),j=p(),{user:M}=b(),N=i(()=>M.value?.id),P=i(()=>g());function F(e){return ie(e,{orgId:L.value})}function I(e,t){return t?_(`cloudMessaging.${e}`,t):_(`cloudMessaging.${e}`)}let{orgId:L,orgSlug:R,members:z,unavailability:B}=C(),V=l([]),{columnTitles:H}=se(V);function U(e,t){return H.value[ee(e,t)]}function W(){R.value&&window.open(`${v()}/app/${R.value}/settings/org/billing`,`_blank`,`noopener`)}let G=S();function le(e){G.noteChannelRead(e)}let K=i(()=>v().replace(/\/+$/,``));function ue(e){let t=/^\/app\/[^/]+(\/kanban\/[^/]+(?:\/card\/[^/?#]+)?)(?:[?#].*)?$/.exec(e);return t?t[1]:null}function de(e,t){if(t!==K.value){j.push(e);return}let n=ue(e);n?j.push(n):window.open(`${t}${e}`,`_blank`,`noopener`)}let{openWithContext:q}=f(),J=re(),Y=l(null),X=l(!1),Z=l(null);function Q(){let e=Z.value;if(!e)return``;let t=e=>new Date(e).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`}),n=e.messages.map(e=>`[${t(e.createdAt)}] ${e.userName}: ${e.content}`).join(`
|
|
2
|
-
`);return`Messages de la conversation « ${e.title} » :\n\n${n}`}function $(){return _(`cloudMessaging.aiContextLabel`,{count:Z.value?.messages.length??0})}function fe(e){e.messages.length&&(Z.value=e,X.value=!0)}async function pe(e,t){let n=Q();n.trim()&&(await J.createConversation({runner:e,providerId:t}),q({text:n,label:$(),icon:`pi-comments`}))}function me(e,t,n){X.value=!1,Y.value?.showScenarioDialog(e,void 0,t,n??void 0)}async function he(e,t){X.value=!1,await pe(e===`keep`?void 0:e,t??void 0)}async function ge(e,t,n,r){let i=Q(),a=t||i,o=await J.createConversation({scenarioId:e,scenarioInput:a});if(a&&o){let t=n!==`keep`||r.trim()?{...n===`keep`?{}:{runnerOverride:n},...r.trim()?{modelOverride:r.trim()}:{}}:void 0;J.startScenarioRun(o.id,e,a,void 0,t)}q({text:i,label:$(),icon:`pi-comments`})}return(i,l)=>(h(),t(`div`,w,[a(`div`,T,[r(m(e),{icon:`pi pi-arrow-left`,text:``,rounded:``,onClick:l[0]||=e=>m(j).push({name:`cloud-account`})}),a(`h1`,null,s(m(_)(`cloudMessaging.title`)),1)]),m(M)?m(L)?(h(),c(m(x),{key:2,class:`panel`,client:m(te),"org-id":m(L),"cloud-api-base-url":P.value,"avatar-url":F,"stream-url":m(y),"notify-on-unread":!1,"current-user-id":N.value,members:m(z),t:I,"internal-origins":[K.value],"enable-select-to-ai":``,"card-column":U,onCardRefs:l[2]||=e=>V.value=e,onChannelRead:le,onAiContext:fe,onInternalLink:de,onUpgrade:W},null,8,[`client`,`org-id`,`cloud-api-base-url`,`stream-url`,`current-user-id`,`members`,`internal-origins`])):(h(),t(`div`,A,s(m(B)===`not-member`?m(_)(`cloudMessaging.orgNotAccessible`):m(_)(`cloudMessaging.noProjectOrg`)),1)):(h(),t(`div`,E,[a(`div`,D,[a(`i`,{class:n(m(ae))},null,2)]),a(`h2`,O,s(m(_)(`cloudMessaging.notConnectedTitle`)),1),a(`p`,k,s(m(_)(`cloudMessaging.notConnectedDesc`)),1),r(m(e),{label:m(_)(`cloudMessaging.connectAction`),icon:`pi pi-cloud`,onClick:l[1]||=e=>m(j).push({name:`cloud-account`})},null,8,[`label`])])),r(m(d),{visible:X.value,header:m(_)(`kanban.board.launchAiDialog.header`),modal:!0,style:{width:`700px`,maxHeight:`80vh`},breakpoints:{"800px":`95vw`},pt:{content:{style:`overflow-y:auto`}},"onUpdate:visible":l[3]||=e=>{e||(X.value=!1)}},{default:ne(()=>[r(oe,{compact:``,onSelectScenario:me,onSkip:he})]),_:1},8,[`visible`,`header`]),r(o,{ref_key:`aiModalsRef`,ref:Y,onConfirmScenarioStart:ge},null,512)]))}}),[[`__scopeId`,`data-v-b28e1ca2`]]);export{j as default};
|