prefect 3.9.1.dev2__py3-none-any.whl → 3.9.1.dev3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) hide show
  1. prefect/AGENTS.md +1 -1
  2. prefect/_build_info.py +3 -3
  3. prefect/blocks/notifications.py +2 -4
  4. prefect/cli/variable.py +8 -3
  5. prefect/flow_engine.py +20 -2
  6. prefect/server/api/__init__.py +2 -0
  7. prefect/server/api/observed_states.py +32 -0
  8. prefect/server/api/server.py +1 -0
  9. prefect/server/database/_migrations/MIGRATION-NOTES.md +9 -0
  10. prefect/server/database/_migrations/versions/postgresql/2026_10_20_000000_91e2b8f3d6a4_observed_state_covering_indexes.py +21 -0
  11. prefect/server/database/_migrations/versions/sqlite/2026_10_20_000000_27d8f4e1a6c9_observed_state_covering_indexes.py +25 -0
  12. prefect/server/database/orm_models.py +12 -0
  13. prefect/server/models/__init__.py +1 -0
  14. prefect/server/models/observed_states.py +57 -0
  15. prefect/server/schemas/__init__.py +2 -0
  16. prefect/server/schemas/observed_states.py +23 -0
  17. prefect/server/schemas/schedules.py +3 -3
  18. prefect/server/ui/assets/404-Bp0ToTX0.js +1 -0
  19. prefect/server/ui/assets/{AppRouterView-B5eKyN0Z.js → AppRouterView-CbD9UHiY.js} +1 -1
  20. prefect/server/ui/assets/{Artifact-D8AiNsUv.js → Artifact-CPXpfudp.js} +1 -1
  21. prefect/server/ui/assets/{ArtifactKey-kToJdovS.js → ArtifactKey-B1h9Dcw3.js} +1 -1
  22. prefect/server/ui/assets/Artifacts-BnojTa3S.js +1 -0
  23. prefect/server/ui/assets/{Automation-BxLErkK7.js → Automation-C0PDfx3x.js} +1 -1
  24. prefect/server/ui/assets/{AutomationCreate-DhYfF-jy.js → AutomationCreate-C3YpL4AI.js} +1 -1
  25. prefect/server/ui/assets/{AutomationEdit-CSRt14uE.js → AutomationEdit-ChzYTvU-.js} +1 -1
  26. prefect/server/ui/assets/{AutomationWizard-BTjLPVWT.js → AutomationWizard-DwA40tdm.js} +1 -1
  27. prefect/server/ui/assets/{Automations-E3UsWewb.js → Automations-BS_bObXk.js} +1 -1
  28. prefect/server/ui/assets/{BlockEdit-DXBiSNDT.js → BlockEdit-X5Su9YFW.js} +1 -1
  29. prefect/server/ui/assets/{BlockView-BTD__CA4.js → BlockView-BTDk50l4.js} +1 -1
  30. prefect/server/ui/assets/{Blocks-BmNaUuXS.js → Blocks-DFqu11vX.js} +1 -1
  31. prefect/server/ui/assets/{BlocksCatalog-C-lc6J2R.js → BlocksCatalog-DVI98Cl0.js} +1 -1
  32. prefect/server/ui/assets/{BlocksCatalogCreate-C7fB8hSn.js → BlocksCatalogCreate-CDbGJrQt.js} +1 -1
  33. prefect/server/ui/assets/{BlocksCatalogView-BTmDGHxm.js → BlocksCatalogView-BivjMJIx.js} +1 -1
  34. prefect/server/ui/assets/{ConcurrencyLimit--jCArmu8.js → ConcurrencyLimit-Da5oWeSH.js} +1 -1
  35. prefect/server/ui/assets/{ConcurrencyLimits-iZbudn1e.js → ConcurrencyLimits-D9MteDVm.js} +1 -1
  36. prefect/server/ui/assets/{Dashboard-CE76-fSE.js → Dashboard-DIGMrEt2.js} +1 -1
  37. prefect/server/ui/assets/{Deployment-BsgFIFvs.js → Deployment-BrMq3Vfc.js} +1 -1
  38. prefect/server/ui/assets/{DeploymentDuplicate-m3iDHXZs.js → DeploymentDuplicate-B174_yCI.js} +1 -1
  39. prefect/server/ui/assets/{DeploymentEdit-Qcnlg2Ck.js → DeploymentEdit-BPEcbmrT.js} +1 -1
  40. prefect/server/ui/assets/{Deployments-HqFDKc-M.js → Deployments-BCQ6XBYs.js} +1 -1
  41. prefect/server/ui/assets/{Event-DM0knCZc.js → Event-DWDDsfjC.js} +1 -1
  42. prefect/server/ui/assets/{Events-CuwkkK_G.js → Events-HCuPVMBv.js} +1 -1
  43. prefect/server/ui/assets/{Flow-BWa0HdVC.js → Flow-Dl3cIHJD.js} +1 -1
  44. prefect/server/ui/assets/{FlowRun-DoJfjXMg.js → FlowRun-XQ35OlDZ.js} +1 -1
  45. prefect/server/ui/assets/{FlowRunCreate-DBRBO5qe.js → FlowRunCreate-Dizvs3Ge.js} +1 -1
  46. prefect/server/ui/assets/{Flows-CHlfzryh.js → Flows-yUjJ0C8q.js} +1 -1
  47. prefect/server/ui/assets/{Runs-BBK8sus8.js → Runs-ejIuZ-ew.js} +1 -1
  48. prefect/server/ui/assets/{RunsPageWithDefaultFilter-VUJP7e64-66R3xdTp.js → RunsPageWithDefaultFilter-VUJP7e64-B-RocaXo.js} +1 -1
  49. prefect/server/ui/assets/{Settings-mmKEp6bP.js → Settings-BuUEeLMX.js} +1 -1
  50. prefect/server/ui/assets/{TaskRun-CMIvPa2s.js → TaskRun-B1i5MM-Q.js} +1 -1
  51. prefect/server/ui/assets/{Unauthenticated-UktS6mbO.js → Unauthenticated-CGNqdd8L.js} +1 -1
  52. prefect/server/ui/assets/{Variables-C6ugh1dr.js → Variables-B_WuE4RK.js} +1 -1
  53. prefect/server/ui/assets/{WorkPool-BuB7HCAq.js → WorkPool-AlDfVR4P.js} +1 -1
  54. prefect/server/ui/assets/WorkPoolCreate-CM2fjlPt.js +1 -0
  55. prefect/server/ui/assets/{WorkPoolEdit-R0xF15p9.js → WorkPoolEdit-BqpGgPxH.js} +1 -1
  56. prefect/server/ui/assets/{WorkPoolQueue-C16N9UB4.js → WorkPoolQueue-DIZsHJk1.js} +1 -1
  57. prefect/server/ui/assets/{WorkPoolQueueCreate-CBk1V6NE.js → WorkPoolQueueCreate-Hn1MXwrH.js} +1 -1
  58. prefect/server/ui/assets/{WorkPoolQueueEdit-BhuUD6E3.js → WorkPoolQueueEdit-BDcAI0JN.js} +1 -1
  59. prefect/server/ui/assets/{WorkPools-CDzBiono.js → WorkPools-DMyr2vNW.js} +1 -1
  60. prefect/server/ui/assets/{WorkQueueToWorkPoolQueueRedirect-DJZTvjVT-Bxd2md_O.js → WorkQueueToWorkPoolQueueRedirect-DJZTvjVT-BkWN6Sok.js} +1 -1
  61. prefect/server/ui/assets/{index-BD_kIOMy-DN2IPMog.js → index-BD_kIOMy-CGdO4E_O.js} +112 -112
  62. prefect/server/ui/assets/index-FQOJ0Dim.js +2 -0
  63. prefect/server/ui/assets/{mapper-B8Z87fhQ.js → mapper-POVIYowe.js} +1 -1
  64. prefect/server/ui/assets/prefect-ui-library-B1153s9p.js +1 -0
  65. prefect/server/ui/assets/useApiConfig-Dha6i00h.js +1 -0
  66. prefect/server/ui/assets/useCan-C2f8Hr5u.js +1 -0
  67. prefect/server/ui/assets/{usePageTitle-fM0UqDQI.js → usePageTitle-CbfZDSGE.js} +1 -1
  68. prefect/server/ui/assets/{usePrefectApi-D-PRLtA0.js → usePrefectApi-D-PpXvg9.js} +1 -1
  69. prefect/server/ui/index.html +3 -3
  70. prefect/server/ui-v2/assets/{admin-CdJpItZG.js → admin-BRAFSMxS.js} +1 -1
  71. prefect/server/ui-v2/assets/architecture-WOLXFQ4H-CLN9XjrB.js +1 -0
  72. prefect/server/ui-v2/assets/{artifact-data-view-Cs_7BeAE.js → artifact-data-view-DcGt2jpX.js} +1 -1
  73. prefect/server/ui-v2/assets/artifact._id-BFAMSiuh.js +1 -0
  74. prefect/server/ui-v2/assets/{artifact._id-DuA9kbb-.js → artifact._id-DMcwC00z.js} +1 -1
  75. prefect/server/ui-v2/assets/{artifacts-BGw1T1lM.js → artifacts-6lNqls6i.js} +1 -1
  76. prefect/server/ui-v2/assets/{artifacts-B_Xvaf-D.js → artifacts-CgQkMjZs.js} +1 -1
  77. prefect/server/ui-v2/assets/{artifacts-InFlluyw.js → artifacts-g-xWcPFP.js} +1 -1
  78. prefect/server/ui-v2/assets/automation-wizard-DsRNiKMQ.js +1 -0
  79. prefect/server/ui-v2/assets/{automation._id-Bi_bH9_b.js → automation._id-BpilbR7x.js} +1 -1
  80. prefect/server/ui-v2/assets/{automation._id-DhQgityc.js → automation._id-BxJ-VJEz.js} +1 -1
  81. prefect/server/ui-v2/assets/{automation_._id.edit-GY1mIzcz.js → automation_._id.edit-BiYAhcv5.js} +1 -1
  82. prefect/server/ui-v2/assets/automation_._id.edit-CslYYtWd.js +1 -0
  83. prefect/server/ui-v2/assets/automations-DUd3ozcA.js +1 -0
  84. prefect/server/ui-v2/assets/{automations-DQ8KPoKj.js → automations-Db9lZyIW.js} +1 -1
  85. prefect/server/ui-v2/assets/{automations-BfEbZjgx.js → automations-UomBQHy4.js} +1 -1
  86. prefect/server/ui-v2/assets/{automations-BYBchVBE.js → automations-fl8bSOVB.js} +1 -1
  87. prefect/server/ui-v2/assets/{automations-header-B2EPArHy.js → automations-header-9ahneLIT.js} +1 -1
  88. prefect/server/ui-v2/assets/{automations-wizard-Cmx6nvcF.js → automations-wizard-tOcJyKp5.js} +1 -1
  89. prefect/server/ui-v2/assets/{badge-BRZg_UVg.js → badge-DuRyVrZF.js} +1 -1
  90. prefect/server/ui-v2/assets/{base-job-template-form-section-cLdHk5NO.js → base-job-template-form-section-Bx_jc21X.js} +1 -1
  91. prefect/server/ui-v2/assets/{block-documents-BlAkGhEc.js → block-documents-pA2pd7ha.js} +1 -1
  92. prefect/server/ui-v2/assets/{block-schemas-C3CRK3iA.js → block-schemas-DJHiQTKl.js} +1 -1
  93. prefect/server/ui-v2/assets/{block-type-details-KCVkLnE3.js → block-type-details-CAnwTnLW.js} +1 -1
  94. prefect/server/ui-v2/assets/block-type-logo-DkMRC9Ao.js +1 -0
  95. prefect/server/ui-v2/assets/{block-types-CJ97xmNp.js → block-types-xs8lzPUw.js} +1 -1
  96. prefect/server/ui-v2/assets/{block._id-_MchQHt1.js → block._id-BszHf-Fv.js} +1 -1
  97. prefect/server/ui-v2/assets/{block._id-BbzZHPy4.js → block._id-obcryAzq.js} +1 -1
  98. prefect/server/ui-v2/assets/{block_._id.edit-axeb0kDF.js → block_._id.edit-BSld-uYC.js} +1 -1
  99. prefect/server/ui-v2/assets/{block_._id.edit-BALo2emS.js → block_._id.edit-ednIa-ED.js} +1 -1
  100. prefect/server/ui-v2/assets/{blocks-BDzOhwo6.js → blocks-B5Wf2u1G.js} +1 -1
  101. prefect/server/ui-v2/assets/{blocks-9yxNEgH5.js → blocks-Bnn-8l6y.js} +1 -1
  102. prefect/server/ui-v2/assets/breadcrumb-CqQGwXTm.js +1 -0
  103. prefect/server/ui-v2/assets/button-nflOZwpW.js +1 -0
  104. prefect/server/ui-v2/assets/{card-D5t5emlK.js → card-CbPDQ_lk.js} +1 -1
  105. prefect/server/ui-v2/assets/{catalog-Ch5ROLY7.js → catalog-BkdyxCKB.js} +1 -1
  106. prefect/server/ui-v2/assets/{catalog-CNXGtmlF.js → catalog-C41vve83.js} +1 -1
  107. prefect/server/ui-v2/assets/{catalog_._slug-WqN0Gay6.js → catalog_._slug-D32kzb5i.js} +1 -1
  108. prefect/server/ui-v2/assets/{catalog_._slug-DjzO5Iwd.js → catalog_._slug-KklH_1Dn.js} +1 -1
  109. prefect/server/ui-v2/assets/{catalog_._slug_.create-BXUWKt2d.js → catalog_._slug_.create-BM9N1kWp.js} +1 -1
  110. prefect/server/ui-v2/assets/{catalog_._slug_.create-D19IVCzY.js → catalog_._slug_.create-DIlZPMvQ.js} +1 -1
  111. prefect/server/ui-v2/assets/{checkbox-TCD6-zWf.js → checkbox-BNRcCaBI.js} +1 -1
  112. prefect/server/ui-v2/assets/combobox-CvaRp4ZZ.js +1 -0
  113. prefect/server/ui-v2/assets/concurrency-limit._id-CfS0J6kN.js +1 -0
  114. prefect/server/ui-v2/assets/{concurrency-limit._id-B70pFpK-.js → concurrency-limit._id-zFSppjFf.js} +1 -1
  115. prefect/server/ui-v2/assets/{concurrency-limits-DQA6_YGh.js → concurrency-limits-BxrGSex2.js} +1 -1
  116. prefect/server/ui-v2/assets/concurrency-limits-Dfy_wj2h.js +1 -0
  117. prefect/server/ui-v2/assets/{create-CiEWJY7x.js → create-BNrTQkQU.js} +1 -1
  118. prefect/server/ui-v2/assets/{create-UDubXTUI.js → create-CxUIIwlg.js} +1 -1
  119. prefect/server/ui-v2/assets/{create-B7kmL1Yr.js → create-cWuHVdR9.js} +1 -1
  120. prefect/server/ui-v2/assets/{create-LhZNbu86.js → create-hyKiYhSL.js} +1 -1
  121. prefect/server/ui-v2/assets/{cron-input-BWB090mY.js → cron-input-D9WbdACG.js} +1 -1
  122. prefect/server/ui-v2/assets/cynefin-EF2NZ3EQ-BGOz-7uy.js +1 -0
  123. prefect/server/ui-v2/assets/data-table-_2eEleMa.js +1 -0
  124. prefect/server/ui-v2/assets/date-DT9Ehp6t.js +1 -0
  125. prefect/server/ui-v2/assets/{date-range-select-CpmKhCRL.js → date-range-select-Dqsl3Csi.js} +1 -1
  126. prefect/server/ui-v2/assets/date-time-picker-4Hoj6CoU.js +1 -0
  127. prefect/server/ui-v2/assets/{delete-confirmation-dialog-CkGXtYcc.js → delete-confirmation-dialog-BajU3ap4.js} +1 -1
  128. prefect/server/ui-v2/assets/deployment-form-BEhXROlC.js +2 -0
  129. prefect/server/ui-v2/assets/{deployment-links-DXJAMR5P.js → deployment-links-Byjmc8fW.js} +1 -1
  130. prefect/server/ui-v2/assets/deployment._id-A-ps7Hd-.js +1 -0
  131. prefect/server/ui-v2/assets/{deployment._id-BGz5u6dg.js → deployment._id-Q5DtHkh4.js} +1 -1
  132. prefect/server/ui-v2/assets/deployment_._id.duplicate-BK8nUlqk.js +1 -0
  133. prefect/server/ui-v2/assets/{deployment_._id.duplicate-B-PTYaQ5.js → deployment_._id.duplicate-D1Akh4ro.js} +1 -1
  134. prefect/server/ui-v2/assets/deployment_._id.edit-DebOoX7g.js +1 -0
  135. prefect/server/ui-v2/assets/{deployment_._id.edit-Cm70CJtO.js → deployment_._id.edit-s4gWg5mf.js} +1 -1
  136. prefect/server/ui-v2/assets/{deployment_._id.run-DiKX6CmE.js → deployment_._id.run-C6HtTIot.js} +1 -1
  137. prefect/server/ui-v2/assets/deployment_._id.run-DUQQXWP2.js +1 -0
  138. prefect/server/ui-v2/assets/{deployments-CzaE5R5F.js → deployments-Dtjynn2k.js} +1 -1
  139. prefect/server/ui-v2/assets/{deployments-DcQPk8jE.js → deployments-Dup7EP2Z.js} +1 -1
  140. prefect/server/ui-v2/assets/deployments-s-jWFDDB.js +1 -0
  141. prefect/server/ui-v2/assets/dialog-CPZZN_GA.js +1 -0
  142. prefect/server/ui-v2/assets/{dist-BICp7bDi.js → dist-BhvEpuNe.js} +1 -1
  143. prefect/server/ui-v2/assets/dropdown-menu-qUzPIcAU.js +1 -0
  144. prefect/server/ui-v2/assets/{error-boundary-TqU0dCJl.js → error-boundary-Cf9i6xhr.js} +1 -1
  145. prefect/server/ui-v2/assets/event-resource-display-AsSMB4wj.js +1 -0
  146. prefect/server/ui-v2/assets/{event._eventDate._eventId-Qmn5ywTl.js → event._eventDate._eventId-9eRlP9SV.js} +1 -1
  147. prefect/server/ui-v2/assets/event._eventDate._eventId-C-WMxzxw.js +1 -0
  148. prefect/server/ui-v2/assets/eventmodeling-K75KTNOO-oZigis3h.js +1 -0
  149. prefect/server/ui-v2/assets/events-1yffH9KP.js +1 -0
  150. prefect/server/ui-v2/assets/{events-BdPcz0e7.js → events-Bul0N0Fm.js} +1 -1
  151. prefect/server/ui-v2/assets/{events-Bhg70GSa.js → events-MvK-wORh.js} +1 -1
  152. prefect/server/ui-v2/assets/{events-timeline-B0-3TnmX.js → events-timeline-BTaR5iU3.js} +1 -1
  153. prefect/server/ui-v2/assets/flow-link-Bg-GSZ9W.js +1 -0
  154. prefect/server/ui-v2/assets/flow-run-graph-BaP-7Fx6.js +1 -0
  155. prefect/server/ui-v2/assets/flow-run._id-9WVdsEnk.js +1 -0
  156. prefect/server/ui-v2/assets/{flow-run._id-Ck99rsLn.js → flow-run._id-BtvpF3GM.js} +1 -1
  157. prefect/server/ui-v2/assets/flow-run._id-CSnpYVig.js +3 -0
  158. prefect/server/ui-v2/assets/{flow-runs-CuL9G0rk.js → flow-runs-DQMJffUa.js} +1 -1
  159. prefect/server/ui-v2/assets/flow-runs-list-HglDx47L.js +1 -0
  160. prefect/server/ui-v2/assets/flow._id-sIwtVDNK.js +1 -0
  161. prefect/server/ui-v2/assets/flow._id-sQYp-pgf.js +1 -0
  162. prefect/server/ui-v2/assets/{flows-DehVFGl8.js → flows-DDBpDA8I.js} +1 -1
  163. prefect/server/ui-v2/assets/flows-iORhzFGo.js +1 -0
  164. prefect/server/ui-v2/assets/flows-q9pKHb_f.js +1 -0
  165. prefect/server/ui-v2/assets/{formatted-date-C2MOEjc8.js → formatted-date-CIm9_TJN.js} +1 -1
  166. prefect/server/ui-v2/assets/gitGraph-VSP46ZUC-DAq-NOWf.js +1 -0
  167. prefect/server/ui-v2/assets/header-BkLJD73A.js +1 -0
  168. prefect/server/ui-v2/assets/header-Buq84Nu-.js +1 -0
  169. prefect/server/ui-v2/assets/{header-DYm53PNn.js → header-CT_vyxn0.js} +1 -1
  170. prefect/server/ui-v2/assets/index-DnGUbEZt.js +18 -0
  171. prefect/server/ui-v2/assets/info-OHQRW6UA-BaEDFuRr.js +1 -0
  172. prefect/server/ui-v2/assets/{input-Blbcx35L.js → input-oLzUzaxB.js} +1 -1
  173. prefect/server/ui-v2/assets/{json-input-vz-lMe2n.js → json-input-282mpKEm.js} +1 -1
  174. prefect/server/ui-v2/assets/json-input-lazy-lt90RmNC.js +2 -0
  175. prefect/server/ui-v2/assets/katex-B_JcIwqj.js +257 -0
  176. prefect/server/ui-v2/assets/{key-value-jUbHvRiB.js → key-value-BKOpk8jC.js} +1 -1
  177. prefect/server/ui-v2/assets/{key._key-DuA9kbb-.js → key._key-DMcwC00z.js} +1 -1
  178. prefect/server/ui-v2/assets/key._key-I7QVrDl3.js +1 -0
  179. prefect/server/ui-v2/assets/{label-_XF4nWxI.js → label-CNj_qo6B.js} +1 -1
  180. prefect/server/ui-v2/assets/{lazy-markdown-Do8TqaPt.js → lazy-markdown-ocCMCE3X.js} +2 -2
  181. prefect/server/ui-v2/assets/{loading-BY8DqOWH.js → loading-bbbDMhht.js} +1 -1
  182. prefect/server/ui-v2/assets/login-BkmBY3Qw.js +1 -0
  183. prefect/server/ui-v2/assets/{logs-UpTyEUx3.js → logs-DHmjt90q.js} +1 -1
  184. prefect/server/ui-v2/assets/{markdown-input-DYQlpvWF.js → markdown-input-DhiEdD10.js} +1 -1
  185. prefect/server/ui-v2/assets/packet-JDAUHWVQ-BCKUufkm.js +1 -0
  186. prefect/server/ui-v2/assets/pagination-DjGXZAVh.js +1 -0
  187. prefect/server/ui-v2/assets/pie-XZMESJXO-BAMuttfT.js +1 -0
  188. prefect/server/ui-v2/assets/{popover-BDhUuabS.js → popover-CIMRzPdh.js} +1 -1
  189. prefect/server/ui-v2/assets/python-example-snippet-B1TkVfI4.js +2 -0
  190. prefect/server/ui-v2/assets/{python-input-s1tn6qIC.js → python-input-BYz3iCOh.js} +1 -1
  191. prefect/server/ui-v2/assets/radar-ABXABTNO-MZ72gsue.js +1 -0
  192. prefect/server/ui-v2/assets/railroad-I3PHUGI6-B41a7ffn.js +1 -0
  193. prefect/server/ui-v2/assets/railroad-abnf-LNEFI6M7-DybgSkRE.js +1 -0
  194. prefect/server/ui-v2/assets/railroad-ebnf-DWYD2UWJ-C-f_rjSe.js +1 -0
  195. prefect/server/ui-v2/assets/railroad-peg-JR7BVNR7-B7Gw5z87.js +1 -0
  196. prefect/server/ui-v2/assets/{rehype-raw-BbATNasl.js → rehype-raw-Bb9s4mkQ.js} +2 -2
  197. prefect/server/ui-v2/assets/{rehype-sanitize-DjHZsL2U.js → rehype-sanitize-D-wOXT0m.js} +1 -1
  198. prefect/server/ui-v2/assets/rolldown-runtime-COiEfhsA.js +1 -0
  199. prefect/server/ui-v2/assets/{route-error-state-dN_LFYuw.js → route-error-state-CNURe1Ul.js} +1 -1
  200. prefect/server/ui-v2/assets/run-logs-B6jU7khx.js +1 -0
  201. prefect/server/ui-v2/assets/runs-CL5cV9Ul.js +1 -0
  202. prefect/server/ui-v2/assets/runs-CQD_p-AM.js +1 -0
  203. prefect/server/ui-v2/assets/schedule-badge-Iu1u6_XQ.js +1 -0
  204. prefect/server/ui-v2/assets/schema-form-BuhFvKQ4.js +5 -0
  205. prefect/server/ui-v2/assets/{scroll-area-BevSSWLi.js → scroll-area-CC01CbB9.js} +1 -1
  206. prefect/server/ui-v2/assets/seconds-DHsbPwSJ.js +1 -0
  207. prefect/server/ui-v2/assets/{select-Bs_azJEf.js → select-CS4Qf8-B.js} +1 -1
  208. prefect/server/ui-v2/assets/{service-2lOsxBQs.js → service-BOxvAHRa.js} +1 -1
  209. prefect/server/ui-v2/assets/settings-D5jsUaO1.js +1 -0
  210. prefect/server/ui-v2/assets/skeleton-DX3sxv34.js +1 -0
  211. prefect/server/ui-v2/assets/{state-badge-Cx_q4ydZ.js → state-badge-DLGkBVY1.js} +1 -1
  212. prefect/server/ui-v2/assets/state-name-badge-CBdaIHJh.js +1 -0
  213. prefect/server/ui-v2/assets/state-select-DJMkTe6I.js +1 -0
  214. prefect/server/ui-v2/assets/state-type-filter-Cjki3w0X.js +1 -0
  215. prefect/server/ui-v2/assets/{status-badge-BByfskIZ.js → status-badge-DVZlmDim.js} +1 -1
  216. prefect/server/ui-v2/assets/tag-badge-Cs7LPZWW.js +1 -0
  217. prefect/server/ui-v2/assets/{tag-badge-group-DzRyROXM.js → tag-badge-group-CNXZ04In.js} +1 -1
  218. prefect/server/ui-v2/assets/{tags-input-C-NHT0qV.js → tags-input-C9iNehAM.js} +1 -1
  219. prefect/server/ui-v2/assets/{tanstack-table-BcsS1Xm1.js → tanstack-table-ClU4rOQB.js} +1 -1
  220. prefect/server/ui-v2/assets/{task-run-concurrency-limits-reset-dialog-BmvAdxES.js → task-run-concurrency-limits-reset-dialog-Cy5vY22s.js} +1 -1
  221. prefect/server/ui-v2/assets/{task-run._id-CCJDF6Cg.js → task-run._id-D0tNqf4R.js} +1 -1
  222. prefect/server/ui-v2/assets/task-run._id-HXYLqB5P.js +2 -0
  223. prefect/server/ui-v2/assets/{task-runs-BpYjZKyC.js → task-runs-ChIldi_L.js} +1 -1
  224. prefect/server/ui-v2/assets/toggle-group-BwrLGX3l.js +1 -0
  225. prefect/server/ui-v2/assets/{tooltip-HnSvfMWc.js → tooltip-jIGo5l9A.js} +1 -1
  226. prefect/server/ui-v2/assets/treeView-D4JQ5SDB-DJEB8tTO.js +1 -0
  227. prefect/server/ui-v2/assets/treemap-SAJKECNS-Cfzt3inP.js +1 -0
  228. prefect/server/ui-v2/assets/trigger-details-63xQ-d0w.js +1 -0
  229. prefect/server/ui-v2/assets/trigger-utils-BvM9Xwwo.js +1 -0
  230. prefect/server/ui-v2/assets/{use-debounce-callback-DnYrs1Az.js → use-debounce-callback-Fv3hdL_a.js} +1 -1
  231. prefect/server/ui-v2/assets/use-delete-automation-confirmation-dialog-DMlcMR9F.js +1 -0
  232. prefect/server/ui-v2/assets/{use-delete-block-document-confirmation-dialog-Bl_Dywr-.js → use-delete-block-document-confirmation-dialog-D9TIUDnl.js} +1 -1
  233. prefect/server/ui-v2/assets/{use-delete-deployment-confirmation-dialog-D6z2biMR.js → use-delete-deployment-confirmation-dialog-DDjrGgob.js} +1 -1
  234. prefect/server/ui-v2/assets/{use-get-artifacts-flow-task-runs-CiaIGbyU.js → use-get-artifacts-flow-task-runs-DRVxHLuu.js} +1 -1
  235. prefect/server/ui-v2/assets/{use-is-overflowing-BinLfmjG.js → use-is-overflowing-DYIuJiBB.js} +1 -1
  236. prefect/server/ui-v2/assets/use-page-size-preference-yzhTMjSo.js +1 -0
  237. prefect/server/ui-v2/assets/{use-resource-options-D2-RjcfJ.js → use-resource-options-DkQ_2LWs.js} +1 -1
  238. prefect/server/ui-v2/assets/use-stepper-DnDAC2GS.js +1 -0
  239. prefect/server/ui-v2/assets/{variables-ChUosOOq.js → variables-BT83ZCpj.js} +1 -1
  240. prefect/server/ui-v2/assets/variables-CkP8QWlw.js +1 -0
  241. prefect/server/ui-v2/assets/{vendor-codemirror-BkxPnYK_.js → vendor-codemirror-CLI2NWXL.js} +14 -14
  242. prefect/server/ui-v2/assets/vendor-date-BxAHQAvs.js +8 -0
  243. prefect/server/ui-v2/assets/vendor-forms-BW7yg2DT.js +55 -0
  244. prefect/server/ui-v2/assets/vendor-markdown-D32_6kP1.js +28 -0
  245. prefect/server/ui-v2/assets/vendor-mermaid-D4zfWXev.js +3999 -0
  246. prefect/server/ui-v2/assets/vendor-pixi-D0249G-R.js +1097 -0
  247. prefect/server/ui-v2/assets/vendor-radix--ycll4TR.js +41 -0
  248. prefect/server/ui-v2/assets/vendor-react-Ch3lWoBF.js +9 -0
  249. prefect/server/ui-v2/assets/{vendor-recharts-CXuYJARA.js → vendor-recharts-Dmm_yzZR.js} +11 -11
  250. prefect/server/ui-v2/assets/vendor-tanstack-C_1EWESG.js +1 -0
  251. prefect/server/ui-v2/assets/wardley-7MLQ67FV-D2PRsA8D.js +1 -0
  252. prefect/server/ui-v2/assets/{work-pool-queue-form-HlB46Xxa.js → work-pool-queue-form-CELvez6g.js} +1 -1
  253. prefect/server/ui-v2/assets/work-pool-queue-toggle-f8LoT8h6.js +1 -0
  254. prefect/server/ui-v2/assets/{work-pool-queues-CVBw98zI.js → work-pool-queues-Bs4SZWDH.js} +1 -1
  255. prefect/server/ui-v2/assets/{work-pool._workPoolName-JJO5yYAP.js → work-pool._workPoolName-CQBfGqjd.js} +1 -1
  256. prefect/server/ui-v2/assets/{work-pool._workPoolName-DEHyHjCP.js → work-pool._workPoolName-DHQkBy2e.js} +1 -1
  257. prefect/server/ui-v2/assets/{work-pool_._workPoolName.edit-CtBJyGr_.js → work-pool_._workPoolName.edit-CQHLHEzU.js} +1 -1
  258. prefect/server/ui-v2/assets/{work-pool_._workPoolName.edit-BvoK-W7n.js → work-pool_._workPoolName.edit-Duvve3lR.js} +1 -1
  259. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue._workQueueName-o1ke3jHf.js → work-pool_._workPoolName.queue._workQueueName-BoZO1PG1.js} +1 -1
  260. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue._workQueueName-BxFzAEzk.js → work-pool_._workPoolName.queue._workQueueName-HIXKTWRl.js} +1 -1
  261. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue.create-7qiVAcQv.js → work-pool_._workPoolName.queue.create-BtS7CCEF.js} +1 -1
  262. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue.create-D51WFMgm.js → work-pool_._workPoolName.queue.create-D2v2CThr.js} +1 -1
  263. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue_._workQueueName.edit-DE1TJGhl.js → work-pool_._workPoolName.queue_._workQueueName.edit-CgTJw9aE.js} +1 -1
  264. prefect/server/ui-v2/assets/{work-pool_._workPoolName.queue_._workQueueName.edit-C5al1lL1.js → work-pool_._workPoolName.queue_._workQueueName.edit-D-tg6pLm.js} +1 -1
  265. prefect/server/ui-v2/assets/{work-pools-BFYqOFYc.js → work-pools-BPVmBI_F.js} +1 -1
  266. prefect/server/ui-v2/assets/work-pools-CE7d0St1.js +1 -0
  267. prefect/server/ui-v2/assets/{work-pools-CvDLt4SD.js → work-pools-D8QOXxZ_.js} +1 -1
  268. prefect/server/ui-v2/assets/work-pools-mkDj1hqW.js +1 -0
  269. prefect/server/ui-v2/assets/{work-queue-icon-text-Sq1tfdkR.js → work-queue-icon-text-DuEmDsZZ.js} +1 -1
  270. prefect/server/ui-v2/assets/{work-queue-select-CWGbdP4J.js → work-queue-select-BpG-iB1K.js} +1 -1
  271. prefect/server/ui-v2/assets/{work-queues-BPNjNiLJ.js → work-queues-D6og6Hw4.js} +1 -1
  272. prefect/server/ui-v2/index.html +63 -58
  273. prefect/server/ui-v2/mockServiceWorker.js +287 -133
  274. prefect/types/_datetime.py +16 -3
  275. prefect/utilities/collections.py +30 -8
  276. {prefect-3.9.1.dev2.dist-info → prefect-3.9.1.dev3.dist-info}/METADATA +4 -4
  277. {prefect-3.9.1.dev2.dist-info → prefect-3.9.1.dev3.dist-info}/RECORD +280 -270
  278. prefect/server/ui/assets/404-_68EPOAP.js +0 -1
  279. prefect/server/ui/assets/Artifacts-BbQbArJF.js +0 -1
  280. prefect/server/ui/assets/WorkPoolCreate-GImlBaGl.js +0 -1
  281. prefect/server/ui/assets/index-DpFlA-Lk.js +0 -2
  282. prefect/server/ui/assets/prefect-ui-library-CQXqbi-H.js +0 -1
  283. prefect/server/ui/assets/useApiConfig-B1iHzYsu.js +0 -1
  284. prefect/server/ui/assets/useCan-BIysPXMe.js +0 -1
  285. prefect/server/ui-v2/assets/architecture-7GRP2DOG-BHz2Mfl2.js +0 -1
  286. prefect/server/ui-v2/assets/artifact._id-B78gRY3h.js +0 -1
  287. prefect/server/ui-v2/assets/automation-wizard-2e0CkewE.js +0 -1
  288. prefect/server/ui-v2/assets/automation_._id.edit-CieIhdtQ.js +0 -1
  289. prefect/server/ui-v2/assets/automations-C2QnyQNi.js +0 -1
  290. prefect/server/ui-v2/assets/block-type-logo-wMl-Eoqi.js +0 -1
  291. prefect/server/ui-v2/assets/breadcrumb-C3kQjGiE.js +0 -1
  292. prefect/server/ui-v2/assets/button-DnKs5JpF.js +0 -1
  293. prefect/server/ui-v2/assets/combobox-Hx6sZi5x.js +0 -1
  294. prefect/server/ui-v2/assets/concurrency-limit._id-C6_xck5I.js +0 -1
  295. prefect/server/ui-v2/assets/concurrency-limits-DTvx9FG8.js +0 -1
  296. prefect/server/ui-v2/assets/cynefin-OW5HDTMX-SpeQoelj.js +0 -1
  297. prefect/server/ui-v2/assets/data-table-DvBODNAa.js +0 -1
  298. prefect/server/ui-v2/assets/date-time-picker-D1w5PAND.js +0 -1
  299. prefect/server/ui-v2/assets/deployment-form-CKYrYNnu.js +0 -2
  300. prefect/server/ui-v2/assets/deployment._id-DEvz8M6o.js +0 -1
  301. prefect/server/ui-v2/assets/deployment_._id.duplicate-CmK3M2nf.js +0 -1
  302. prefect/server/ui-v2/assets/deployment_._id.edit-oLO0Cl1N.js +0 -1
  303. prefect/server/ui-v2/assets/deployment_._id.run-Di7drljx.js +0 -1
  304. prefect/server/ui-v2/assets/deployments-U-2BYaBr.js +0 -1
  305. prefect/server/ui-v2/assets/dialog-C_SCA0sL.js +0 -1
  306. prefect/server/ui-v2/assets/dropdown-menu-ByBsyofT.js +0 -1
  307. prefect/server/ui-v2/assets/event-resource-display-S9wJsCSv.js +0 -1
  308. prefect/server/ui-v2/assets/event._eventDate._eventId-BCodguZN.js +0 -1
  309. prefect/server/ui-v2/assets/eventmodeling-NTZA5JFV-CNmmzf1v.js +0 -1
  310. prefect/server/ui-v2/assets/events-BHKBN-yv.js +0 -1
  311. prefect/server/ui-v2/assets/flow-link-xTJPTbUc.js +0 -1
  312. prefect/server/ui-v2/assets/flow-run-graph-CB_W-AFX.js +0 -1
  313. prefect/server/ui-v2/assets/flow-run._id-BxeV2B4s.js +0 -1
  314. prefect/server/ui-v2/assets/flow-run._id-CzNbXYvs.js +0 -3
  315. prefect/server/ui-v2/assets/flow-runs-list-9jIbti2d.js +0 -1
  316. prefect/server/ui-v2/assets/flow._id-2dzVKIhS.js +0 -1
  317. prefect/server/ui-v2/assets/flow._id-CMMLszd2.js +0 -1
  318. prefect/server/ui-v2/assets/flows-7eaQmzIf.js +0 -1
  319. prefect/server/ui-v2/assets/flows-BWZTVSea.js +0 -1
  320. prefect/server/ui-v2/assets/gitGraph-4MIJSDKK-BcrEkcvw.js +0 -1
  321. prefect/server/ui-v2/assets/header-Bm6pDxFY.js +0 -1
  322. prefect/server/ui-v2/assets/header-Dbkt8mgU.js +0 -1
  323. prefect/server/ui-v2/assets/index-Cy6dbtDk.js +0 -18
  324. prefect/server/ui-v2/assets/info-A6RAGUB7-4sYSJlxm.js +0 -1
  325. prefect/server/ui-v2/assets/json-input-lazy-CzGXCXfA.js +0 -2
  326. prefect/server/ui-v2/assets/katex-CXMH3UgJ.js +0 -257
  327. prefect/server/ui-v2/assets/key._key-Dga42Wfp.js +0 -1
  328. prefect/server/ui-v2/assets/login-6vcWhQ7P.js +0 -1
  329. prefect/server/ui-v2/assets/packet-AYTQ26CC-C-4T9pm9.js +0 -1
  330. prefect/server/ui-v2/assets/pagination-CTsd_JRN.js +0 -1
  331. prefect/server/ui-v2/assets/pie-WAS4IAKB-PhudZ_fc.js +0 -1
  332. prefect/server/ui-v2/assets/python-example-snippet-DXhA8MSX.js +0 -2
  333. prefect/server/ui-v2/assets/radar-RG4KPBEZ-CkeyLwU5.js +0 -1
  334. prefect/server/ui-v2/assets/railroad-74A4TZTK-DGYK5PRK.js +0 -1
  335. prefect/server/ui-v2/assets/railroad-abnf-HS5TGJTU-eUYgUqnt.js +0 -1
  336. prefect/server/ui-v2/assets/railroad-ebnf-LZEXJU2U-CdFxt39s.js +0 -1
  337. prefect/server/ui-v2/assets/railroad-peg-WCYAUIDC-Ce3qQVtt.js +0 -1
  338. prefect/server/ui-v2/assets/rolldown-runtime-Dd_uD5pT.js +0 -1
  339. prefect/server/ui-v2/assets/run-logs-CebKF3Ka.js +0 -1
  340. prefect/server/ui-v2/assets/runs-B9DpM7F-.js +0 -1
  341. prefect/server/ui-v2/assets/runs-COK1NUk4.js +0 -1
  342. prefect/server/ui-v2/assets/schedule-badge-uMVklUxQ.js +0 -1
  343. prefect/server/ui-v2/assets/schema-form-Dihz34G7.js +0 -5
  344. prefect/server/ui-v2/assets/settings-Di_uci2K.js +0 -1
  345. prefect/server/ui-v2/assets/skeleton-DCboS_Xe.js +0 -1
  346. prefect/server/ui-v2/assets/state-select-IqFZllyr.js +0 -1
  347. prefect/server/ui-v2/assets/tag-badge-DPFd8tc5.js +0 -1
  348. prefect/server/ui-v2/assets/task-run._id-BJetyL0a.js +0 -2
  349. prefect/server/ui-v2/assets/toggle-group-BM_IhFxc.js +0 -1
  350. prefect/server/ui-v2/assets/treeView-Q6P3EWNA-rZ4KxGUq.js +0 -1
  351. prefect/server/ui-v2/assets/treemap-WGGIJYW6-DwGsqibb.js +0 -1
  352. prefect/server/ui-v2/assets/trigger-details-DtMn3-I8.js +0 -1
  353. prefect/server/ui-v2/assets/use-delete-automation-confirmation-dialog-DvUy9WFu.js +0 -1
  354. prefect/server/ui-v2/assets/use-page-size-preference--kCRjGlz.js +0 -1
  355. prefect/server/ui-v2/assets/use-stepper-BpiVYNS0.js +0 -1
  356. prefect/server/ui-v2/assets/variables-Cu9TFz4c.js +0 -1
  357. prefect/server/ui-v2/assets/vendor-date-B5zFpBWR.js +0 -8
  358. prefect/server/ui-v2/assets/vendor-forms-CiMnY0NT.js +0 -50
  359. prefect/server/ui-v2/assets/vendor-markdown-BkC71hrM.js +0 -28
  360. prefect/server/ui-v2/assets/vendor-mermaid-DVNHYf1j.js +0 -4021
  361. prefect/server/ui-v2/assets/vendor-pixi-C_-4mKoJ.js +0 -1063
  362. prefect/server/ui-v2/assets/vendor-radix-Cw7YAPdd.js +0 -41
  363. prefect/server/ui-v2/assets/vendor-react-Cef_YSQF.js +0 -9
  364. prefect/server/ui-v2/assets/vendor-tanstack-Vy_e09u2.js +0 -1
  365. prefect/server/ui-v2/assets/wardley-WFR3VGLG-DDPdqbvI.js +0 -1
  366. prefect/server/ui-v2/assets/work-pool-queue-toggle-C-oetk8t.js +0 -1
  367. prefect/server/ui-v2/assets/work-pools-D9RIh77f.js +0 -1
  368. prefect/server/ui-v2/assets/work-pools-eBpKYY32.js +0 -1
  369. {prefect-3.9.1.dev2.dist-info → prefect-3.9.1.dev3.dist-info}/WHEEL +0 -0
  370. {prefect-3.9.1.dev2.dist-info → prefect-3.9.1.dev3.dist-info}/entry_points.txt +0 -0
  371. {prefect-3.9.1.dev2.dist-info → prefect-3.9.1.dev3.dist-info}/licenses/LICENSE +0 -0
prefect/AGENTS.md CHANGED
@@ -25,7 +25,7 @@ There is no formal public/private boundary beyond the `_` prefix convention. Mod
25
25
  - **Sync and async must stay in sync.** Both `flow_engine.py` and `task_engine.py` have sync and async paths. Any behavior change must be applied to both.
26
26
  - **Event and log WebSocket subscribers are parallel implementations.** `events/clients.py::PrefectEventSubscriber` and `logging/clients.py::PrefectLogsSubscriber` duplicate the same reconnect/backoff/dedup logic, including the `reconnect_on_clean_close` option (used by `events/subscribers.py::FlowRunSubscriber` so a clean disconnect doesn't hide a terminal event). Mirror any reconnection-behavior change across both.
27
27
  - **Flow run observers own their stream recovery.** `_internal/observers.py` observers create subscribers with `reconnection_attempts=0` and delegate polling fallback, reconnect backoff, and setup deadlines to `_internal/_observation_delivery.py::ObservationDelivery`. Subscribers close any socket left by a failed or cancelled `__aenter__`, since callers never exit a context that failed to enter.
28
- - **Use `whenever` compat helpers for all datetime conversions on Python 3.13+.** `types/_datetime.py` provides `now()`, `_whenever_to_stdlib()`, `_whenever_zdt_from_py()`, and `_whenever_pdt_from_py()` to abstract over API differences between whenever 0.7.x–0.9.x and ≥ 0.10.0. The `_WHENEVER_NEW_API` flag (True when whenever ≥ 0.10.0) guards version-specific code. Never call `DateTime.now()` or `pendulum.now()` directly — use `now()` from `types/_datetime.py` instead. Avoid no-argument `datetime.datetime.now()` because it returns a tz-naive datetime that raises `TypeError` when compared to the tz-aware datetimes produced by `now()`. Explicitly timezone-aware stdlib calls such as `datetime.now(ZoneInfo("UTC"))` are allowed when needed to preserve timezone information. Never call `ZonedDateTime.from_py_datetime()`, `PlainDateTime.from_py_datetime()`, or `.py_datetime()` directly — use the helpers instead. Violations will silently break on whichever whenever version the helpers weren't written for.
28
+ - **Use `whenever` compat helpers for all datetime conversions on Python 3.13+.** `types/_datetime.py` provides `now()`, `_whenever_to_stdlib()`, `_whenever_zdt_from_py()`, and `_whenever_pdt_from_py()` to abstract over API differences across supported whenever releases. Version-specific code is guarded by feature-detection flags (`_WHENEVER_NEW_API` for ≥ 0.10.0, `_SYSTEM_TZ` for ≥ 0.11), not version checks. Never call `DateTime.now()` or `pendulum.now()` directly — use `now()` from `types/_datetime.py` instead. Avoid no-argument `datetime.datetime.now()` because it returns a tz-naive datetime that raises `TypeError` when compared to the tz-aware datetimes produced by `now()`. Explicitly timezone-aware stdlib calls such as `datetime.now(ZoneInfo("UTC"))` are allowed when needed to preserve timezone information. Never call `ZonedDateTime.from_py_datetime()`, `PlainDateTime.from_py_datetime()`, or `.py_datetime()` directly — use the helpers instead. Likewise avoid `.assume_system_tz()`/`.to_system_tz()` (deprecated in 0.11; the warning fails tests under `filterwarnings = error`) — use `in_local_tz()` — and direct `DateTimeDelta` imports (removed in 0.11) — use the `Interval` alias. Violations will silently break on whichever whenever version the helpers weren't written for.
29
29
  - **Flow and task engines advance state differently.** The flow engine makes blocking API calls to the server to propose and advance states. The task engine emits `prefect.task_run.*` events (delivered via WebSockets) but advances state locally through `set_state` calls with polling/backoff — do not assume the two engines work the same way.
30
30
  - **Flow state transitions go through the server.** The flow engine proposes states to the server, which accepts or rejects them via orchestration rules. The task engine, by contrast, manages state transitions locally via `set_state` and emits `prefect.task_run.*` events — it does not propose states to the server.
31
31
  - **`ProcessPoolTaskRunner` requires picklable data across subprocess boundaries.** `PrefectFuture` objects are not picklable and cannot be passed to worker subprocesses. Any `wait_for` futures must be waited on in the parent process and converted to `State` objects before submission. The subprocess task engine handles `State` objects via `resolve_to_final_result`, which raises `UpstreamTaskError` for non-completed upstreams.
prefect/_build_info.py CHANGED
@@ -1,5 +1,5 @@
1
1
  # Generated by versioningit
2
- __version__ = "3.9.1.dev2"
3
- __build_date__ = "2026-10-23 08:20:30.587371+00:00"
4
- __git_commit__ = "a0cb644eb9c937b5e78c957ea06c39d4f5c59093"
2
+ __version__ = "3.9.1.dev3"
3
+ __build_date__ = "2026-10-24 08:18:33.274209+00:00"
4
+ __git_commit__ = "f1f98c3f2468ef5af3992db9439a2ead26c9e27e"
5
5
  __dirty__ = False
@@ -47,7 +47,7 @@ class AbstractAppriseNotificationBlock(NotificationBlock, ABC):
47
47
  )
48
48
 
49
49
  self._apprise_client = Apprise(asset=prefect_app_data)
50
- self._apprise_client.add(servers=url.get_secret_value()) # pyright: ignore[reportUnknownMemberType]
50
+ self._apprise_client.add(url.get_secret_value()) # pyright: ignore[reportUnknownMemberType]
51
51
 
52
52
  def block_initialization(self) -> None:
53
53
  self._start_apprise_client(getattr(self, "url"))
@@ -1115,9 +1115,7 @@ class SendgridEmail(AbstractAppriseNotificationBlock):
1115
1115
  """Update apprise client with current to_emails before sending."""
1116
1116
  if hasattr(self, "_apprise_client") and self._apprise_client:
1117
1117
  self._apprise_client.clear()
1118
- self._apprise_client.add(
1119
- servers=self._build_sendgrid_url().get_secret_value()
1120
- )
1118
+ self._apprise_client.add(self._build_sendgrid_url().get_secret_value())
1121
1119
 
1122
1120
  async def anotify(
1123
1121
  self,
prefect/cli/variable.py CHANGED
@@ -69,7 +69,7 @@ async def list_variables(
69
69
  if output and output.lower() == "json":
70
70
  variables_json = [variable.model_dump(mode="json") for variable in variables]
71
71
  json_output = orjson.dumps(variables_json, option=orjson.OPT_INDENT_2).decode()
72
- _cli.console.print(json_output, soft_wrap=True)
72
+ _cli.console.print(json_output, soft_wrap=True, markup=False, emoji=False)
73
73
  else:
74
74
  table = Table(
75
75
  title="Variables",
@@ -128,7 +128,7 @@ async def inspect(
128
128
  json_output = orjson.dumps(
129
129
  variable_json, option=orjson.OPT_INDENT_2
130
130
  ).decode()
131
- _cli.console.print(json_output, soft_wrap=True)
131
+ _cli.console.print(json_output, soft_wrap=True, markup=False, emoji=False)
132
132
  else:
133
133
  _cli.console.print(Pretty(variable))
134
134
 
@@ -142,7 +142,12 @@ async def get(name: str):
142
142
  async with get_client() as client:
143
143
  variable = await client.read_variable_by_name(name=name)
144
144
  if variable:
145
- _cli.console.print(json.dumps(variable.value))
145
+ _cli.console.print(
146
+ json.dumps(variable.value),
147
+ soft_wrap=True,
148
+ markup=False,
149
+ emoji=False,
150
+ )
146
151
  else:
147
152
  exit_with_error(f"Variable {name!r} not found.")
148
153
 
prefect/flow_engine.py CHANGED
@@ -811,7 +811,16 @@ class FlowRunEngine(BaseFlowRunEngine[P, R]):
811
811
  )
812
812
  raise_if_flow_run_suspension_requested()
813
813
  self._return_value = resolved_result
814
- self.set_state(terminal_state)
814
+ state = self.set_state(terminal_state)
815
+ if terminal_state.is_failed() and state.is_scheduled():
816
+ self.logger.info(
817
+ f"Received non-final state {state.name!r} when proposing final"
818
+ f" state {terminal_state.name!r} and will attempt to run again..."
819
+ )
820
+ raise_if_flow_run_suspension_requested()
821
+ self._return_value = NotSet
822
+ self.set_state(Running())
823
+ return result
815
824
 
816
825
  link_state_to_flow_run_result(terminal_state, resolved_result)
817
826
  self._telemetry.end_span_on_success()
@@ -1534,7 +1543,16 @@ class AsyncFlowRunEngine(BaseFlowRunEngine[P, R]):
1534
1543
  )
1535
1544
  raise_if_flow_run_suspension_requested()
1536
1545
  self._return_value = resolved_result
1537
- await self.set_state(terminal_state)
1546
+ state = await self.set_state(terminal_state)
1547
+ if terminal_state.is_failed() and state.is_scheduled():
1548
+ self.logger.info(
1549
+ f"Received non-final state {state.name!r} when proposing final"
1550
+ f" state {terminal_state.name!r} and will attempt to run again..."
1551
+ )
1552
+ raise_if_flow_run_suspension_requested()
1553
+ self._return_value = NotSet
1554
+ await self.set_state(Running())
1555
+ return result
1538
1556
 
1539
1557
  self._telemetry.end_span_on_success()
1540
1558
 
@@ -24,6 +24,7 @@ if TYPE_CHECKING:
24
24
  flows,
25
25
  logs,
26
26
  middleware,
27
+ observed_states,
27
28
  root,
28
29
  run_history,
29
30
  saved_searches,
@@ -58,6 +59,7 @@ __all__ = [
58
59
  "flows",
59
60
  "logs",
60
61
  "middleware",
62
+ "observed_states",
61
63
  "root",
62
64
  "run_history",
63
65
  "saved_searches",
@@ -0,0 +1,32 @@
1
+ """Routes for discovering observed state types and names."""
2
+
3
+ from typing import Annotated
4
+
5
+ from fastapi import Depends, Query
6
+
7
+ from prefect.server import models
8
+ from prefect.server.database import PrefectDBInterface, provide_database_interface
9
+ from prefect.server.schemas.observed_states import ObservedState, ObservedStateSort
10
+ from prefect.server.utilities.server import PrefectRouter
11
+
12
+ router: PrefectRouter = PrefectRouter(
13
+ prefix="/observed-states", tags=["Observed States"]
14
+ )
15
+
16
+
17
+ @router.get("")
18
+ async def read_observed_states(
19
+ db: Annotated[PrefectDBInterface, Depends(provide_database_interface)],
20
+ query: Annotated[str | None, Query(max_length=100)] = None,
21
+ order_by: ObservedStateSort = ObservedStateSort.LAST_SEEN_DESC,
22
+ limit: Annotated[int, Query(ge=1, le=200)] = 200,
23
+ ) -> list[ObservedState]:
24
+ """Discover exact state names and types from retained run transitions.
25
+
26
+ Search by case-insensitive name or type prefix. Timestamps describe retained
27
+ history; deleting runs can change them or remove a state from the results.
28
+ """
29
+ async with db.session_context() as session:
30
+ return await models.observed_states.read_observed_states(
31
+ session=session, query=query, order_by=order_by, limit=limit
32
+ )
@@ -105,6 +105,7 @@ API_ROUTERS = (
105
105
  api.task_runs.router,
106
106
  api.flow_run_states.router,
107
107
  api.task_run_states.router,
108
+ api.observed_states.router,
108
109
  api.deployments.router,
109
110
  api.saved_searches.router,
110
111
  api.logs.router,
@@ -8,6 +8,15 @@ Each time a database migration is written, an entry is included here with:
8
8
 
9
9
  This gives us a history of changes and will create merge conflicts if two migrations are made at once, flagging situations where a branch needs to be updated before merging.
10
10
 
11
+ # Add observed state covering indexes
12
+ SQLite: `27d8f4e1a6c9`
13
+ Postgres: `91e2b8f3d6a4`
14
+
15
+ SQLite adds `(type, name, timestamp)` indexes to both run state histories for
16
+ observed state aggregation. Building them scans retained history and requires
17
+ additional disk space; SQLite holds its write lock during the migration.
18
+ Downgrading drops the indexes. The PostgreSQL companion is a no-op.
19
+
11
20
  # Add `automation_held_event` table
12
21
  SQLite: `8f5eda7c1dd7`
13
22
  Postgres: `e7f54680bce3`
@@ -0,0 +1,21 @@
1
+ """Companion to SQLite observed state covering indexes.
2
+
3
+ Revision ID: 91e2b8f3d6a4
4
+ Revises: e7f54680bce3
5
+ Create Date: 2026-10-20 00:00:00.000000
6
+
7
+ PostgreSQL's existing indexes and parallel aggregation already serve this query.
8
+ """
9
+
10
+ revision = "91e2b8f3d6a4"
11
+ down_revision = "e7f54680bce3"
12
+ branch_labels = None
13
+ depends_on = None
14
+
15
+
16
+ def upgrade():
17
+ pass
18
+
19
+
20
+ def downgrade():
21
+ pass
@@ -0,0 +1,25 @@
1
+ """Add SQLite covering indexes for observed state discovery.
2
+
3
+ Revision ID: 27d8f4e1a6c9
4
+ Revises: 8f5eda7c1dd7
5
+ Create Date: 2026-10-20 00:00:00.000000
6
+ """
7
+
8
+ from alembic import op
9
+
10
+ revision = "27d8f4e1a6c9"
11
+ down_revision = "8f5eda7c1dd7"
12
+ branch_labels = None
13
+ depends_on = None
14
+
15
+
16
+ def upgrade():
17
+ for table in ("flow_run_state", "task_run_state"):
18
+ op.create_index(
19
+ f"ix_{table}__type_name_timestamp", table, ["type", "name", "timestamp"]
20
+ )
21
+
22
+
23
+ def downgrade():
24
+ for table in ("flow_run_state", "task_run_state"):
25
+ op.drop_index(f"ix_{table}__type_name_timestamp", table_name=table)
@@ -218,6 +218,12 @@ class FlowRunState(Base):
218
218
  cls.timestamp.desc(),
219
219
  unique=True,
220
220
  ),
221
+ sa.Index(
222
+ "ix_flow_run_state__type_name_timestamp",
223
+ cls.type,
224
+ cls.name,
225
+ cls.timestamp,
226
+ ).ddl_if(dialect="sqlite"),
221
227
  )
222
228
 
223
229
 
@@ -282,6 +288,12 @@ class TaskRunState(Base):
282
288
  cls.timestamp.desc(),
283
289
  unique=True,
284
290
  ),
291
+ sa.Index(
292
+ "ix_task_run_state__type_name_timestamp",
293
+ cls.type,
294
+ cls.name,
295
+ cls.timestamp,
296
+ ).ddl_if(dialect="sqlite"),
285
297
  )
286
298
 
287
299
 
@@ -14,6 +14,7 @@ from . import (
14
14
  flow_runs,
15
15
  flows,
16
16
  logs,
17
+ observed_states,
17
18
  saved_searches,
18
19
  storage_defaults,
19
20
  task_run_states,
@@ -0,0 +1,57 @@
1
+ """Discover states from retained flow and task run transitions."""
2
+
3
+ import sqlalchemy as sa
4
+ from sqlalchemy.ext.asyncio import AsyncSession
5
+
6
+ from prefect.server.database import PrefectDBInterface, db_injector
7
+ from prefect.server.schemas.observed_states import ObservedState, ObservedStateSort
8
+
9
+
10
+ @db_injector
11
+ async def read_observed_states(
12
+ db: PrefectDBInterface,
13
+ session: AsyncSession,
14
+ query: str | None = None,
15
+ order_by: ObservedStateSort = ObservedStateSort.LAST_SEEN_DESC,
16
+ limit: int = 200,
17
+ ) -> list[ObservedState]:
18
+ """Combine exact state pairs and timestamp bounds from retained run histories."""
19
+ # Group each history before combining them: the union only contains distinct
20
+ # pairs, rather than every retained transition. SQLite uses covering indexes.
21
+ histories = sa.union_all(
22
+ *(
23
+ sa.select(
24
+ state.type.label("state_type"),
25
+ state.name.label("state_name"),
26
+ sa.func.min(state.timestamp).label("first_seen"),
27
+ sa.func.max(state.timestamp).label("last_seen"),
28
+ ).group_by(state.type, state.name)
29
+ for state in (db.FlowRunState, db.TaskRunState)
30
+ )
31
+ ).subquery()
32
+ observed = (
33
+ sa.select(
34
+ sa.cast(histories.c.state_type, sa.String).label("state_type"),
35
+ histories.c.state_name,
36
+ sa.func.min(histories.c.first_seen).label("first_seen"),
37
+ sa.func.max(histories.c.last_seen).label("last_seen"),
38
+ )
39
+ .group_by(histories.c.state_type, histories.c.state_name)
40
+ # Prevent prefix predicates from being pushed into the full history scans.
41
+ # OFFSET works on supported SQLite versions that predate MATERIALIZED CTEs.
42
+ .offset(0)
43
+ .subquery()
44
+ )
45
+ statement = sa.select(observed)
46
+ if query and (prefix := query.strip()):
47
+ statement = statement.where(
48
+ sa.or_(
49
+ observed.c.state_type.istartswith(prefix, autoescape=True),
50
+ observed.c.state_name.istartswith(prefix, autoescape=True),
51
+ )
52
+ )
53
+ ordering = [observed.c.state_type.asc(), observed.c.state_name.asc()]
54
+ if order_by == ObservedStateSort.LAST_SEEN_DESC:
55
+ ordering.insert(0, observed.c.last_seen.desc())
56
+ result = await session.execute(statement.order_by(*ordering).limit(limit))
57
+ return [ObservedState.model_validate(row) for row in result.mappings()]
@@ -9,6 +9,7 @@ if TYPE_CHECKING:
9
9
  core,
10
10
  filters,
11
11
  internal,
12
+ observed_states,
12
13
  responses,
13
14
  schedules,
14
15
  sorting,
@@ -22,6 +23,7 @@ __all__ = [
22
23
  "core",
23
24
  "filters",
24
25
  "internal",
26
+ "observed_states",
25
27
  "responses",
26
28
  "schedules",
27
29
  "sorting",
@@ -0,0 +1,23 @@
1
+ """Discovery of state types and exact names in retained run history."""
2
+
3
+ from pydantic import Field
4
+
5
+ from prefect._internal.schemas.bases import PrefectBaseModel
6
+ from prefect.types._datetime import DateTime
7
+ from prefect.utilities.collections import AutoEnum
8
+
9
+
10
+ class ObservedStateSort(AutoEnum):
11
+ """Supported ordering for observed state discovery."""
12
+
13
+ NAME_ASC = AutoEnum.auto()
14
+ LAST_SEEN_DESC = AutoEnum.auto()
15
+
16
+
17
+ class ObservedState(PrefectBaseModel):
18
+ """An exact state type/name pair and the bounds of its retained transitions."""
19
+
20
+ state_type: str = Field(description="The state type.")
21
+ state_name: str = Field(description="The exact state name.")
22
+ first_seen: DateTime = Field(description="Earliest retained transition timestamp.")
23
+ last_seen: DateTime = Field(description="Latest retained transition timestamp.")
@@ -42,13 +42,13 @@ from prefect.types._datetime import (
42
42
  MAX_ITERATIONS = 1000
43
43
 
44
44
  if sys.version_info >= (3, 13):
45
- from whenever import DateTimeDelta
46
-
47
45
  try:
48
46
  from whenever import ItemizedDelta as _ItemizedDelta
49
47
 
50
48
  _WHENEVER_DELTA_TYPES: tuple[type, ...] = (_ItemizedDelta,)
51
49
  except ImportError:
50
+ from whenever import DateTimeDelta
51
+
52
52
  _ItemizedDelta = None # type: ignore[assignment]
53
53
  _WHENEVER_DELTA_TYPES = (DateTimeDelta,)
54
54
 
@@ -226,7 +226,7 @@ class IntervalSchedule(PrefectBaseModel):
226
226
  # whenever delta types distinguish calendar days from exact hours,
227
227
  # so we can use them directly. We still need an approximate
228
228
  # total-seconds value for the initial offset jump.
229
- if isinstance(interval, DateTimeDelta):
229
+ if _ItemizedDelta is None:
230
230
  _months, _days, _secs, _nanos = interval.in_months_days_secs_nanos()
231
231
  approx_total_seconds = (
232
232
  _months * 30 * 86400 + _days * 86400 + _secs + _nanos / 1e9
@@ -0,0 +1 @@
1
+ import{Wi as e,Xi as t,_a as n,ea as r,gt as i}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as a}from"./usePageTitle-CbfZDSGE.js";var o=t({__name:`404`,setup(t){return a(`Page Not Found`),(t,a)=>(r(),e(n(i)))}});export{o as default};
@@ -1 +1 @@
1
- import{$ as e,Ai as t,Gi as n,Hi as r,Ii as i,Ji as a,Ki as o,Pi as s,S as c,Ti as l,Tt as u,Ui as d,V as f,Vn as p,Wi as m,X as h,Xi as g,Yi as _,_a as v,_i as y,ar as b,ca as x,ea as S,ia as C,ii as w,ji as T,la as E,li as D,oa as O,pa as k,ra as A,ri as j,rt as M,ta as N,ua as P,un as F,va as I,vi as L,vr as R,xi as z,ya as B,yi as V}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{a as H,n as U}from"./index-DpFlA-Lk.js";import{n as W,t as G}from"./useCan-BIysPXMe.js";import{a as K,i as q,n as J,r as Y,t as X}from"./usePrefectApi-D-PRLtA0.js";import{n as Z,r as Q}from"./uiVersion-CFl1ZjDm.js";import{t as ee}from"./useApiConfig-B1iHzYsu.js";var te={class:`flex gap-x-2 items-center`},ne={key:0,class:`text-sm italic`},re=`http://prefect.io/slack?utm_source=oss&utm_medium=oss&utm_campaign=oss_popup&utm_term=none&utm_content=none`,$=`join-the-community-modal`,ie=`https://getform.io/f/eapderva`,ae=g({__name:`JoinTheCommunityModal`,props:{showModal:{type:Boolean},showModalModifiers:{}},emits:[`update:showModal`],setup(t){let r=O(t,`showModal`),i=k(!1),s=k(),{validate:l,state:u}=j(s,[c(`Email`),e(`Email`)]),f=k(!1),p=k(``);async function h(){if(await l()){p.value=``,f.value=!0;try{await fetch(ie,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:s.value}),redirect:`manual`}),r.value=!1,V(`Successfully subscribed`,`success`)}catch(e){p.value=`An error occurred. Please try again.`,console.error(e)}finally{f.value=!1}}}return(e,t)=>{let c=A(`p-button`),l=A(`p-divider`),g=A(`p-text-input`),y=A(`p-label`),b=A(`p-form`),x=A(`p-message`),C=A(`p-modal`);return S(),m(C,{"show-modal":r.value,"onUpdate:showModal":t[2]||=e=>r.value=e,title:`Join the Prefect Community`},{header:P(()=>[...t[3]||=[d(`h2`,null,`Join the Community`,-1)]]),default:P(()=>[t[5]||=d(`p`,null,` Connect with 25k+ engineers scaling Python with Prefect. Show us your work and be the first to know about new Prefect features. `,-1),d(`div`,te,[_(c,{primary:``,icon:`Slack`,to:re,target:`_blank`,onClick:t[0]||=e=>i.value=!0},{default:P(()=>[...t[4]||=[a(` Join us on Slack `,-1)]]),_:1}),i.value?(S(),o(`span`,ne,` Thanks for joining our community! `)):n(``,!0)]),_(l,{class:`-my-3`}),_(b,{id:$,onSubmit:h},{default:P(()=>[_(y,{label:`Notify me about Prefect updates`,state:v(u),message:v(u).error},{default:P(({id:e})=>[_(g,{id:e,modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,placeholder:`hello@prefect.io`,state:v(u)},null,8,[`id`,`modelValue`,`state`])]),_:1},8,[`state`,`message`])]),_:1}),p.value?(S(),m(x,{key:0,error:``},{default:P(()=>[a(B(p.value),1)]),_:1})):n(``,!0)]),cancel:P(e=>[_(c,{class:`sm:order-first`,onClick:e.close},{default:P(()=>[...t[6]||=[a(` Skip `,-1)]]),_:1},8,[`onClick`])]),actions:P(()=>[_(c,{primary:``,type:`submit`,form:$,loading:f.value},{default:P(()=>[...t[7]||=[a(` Sign up `,-1)]]),_:1},8,[`loading`])]),_:1},8,[`show-modal`])}}}),oe={key:0,href:`https://www.prefect.io/cloud-vs-oss?utm_source=oss&utm_medium=oss&utm_campaign=oss&utm_term=none&utm_content=none`,target:`_blank`},se=g({__name:`ContextSidebar`,async setup(e){let t,i,c=G(),f=X(),h=s(),g=([t,i]=E(()=>f.admin.getSettings()),t=await t,i(),t),y=r(()=>g.PREFECT_SERVER_UI_SHOW_PROMOTIONAL_CONTENT);localStorage.setItem(`prefect-show-promotional-content`,String(y.value));let b=r(()=>c.read.work_pool),x=k(q.settings),C=r(()=>x.value!==null&&Z(x.value,`v2`));q.loadOptional().then(e=>{x.value=e});function T(){x.value!==null&&Q(x.value,h.path)}let{showModal:D,open:O}=u(),{value:j}=w(`local`,`join-the-community-modal-dismissed`,!1);function M(e){D.value=e??!1,e||(j.value=!0)}return(e,t)=>{let r=A(`p-icon`),i=A(`router-link`),s=A(`p-button`);return S(),m(v(l),{class:`context-sidebar`},{header:P(()=>[_(i,{to:v(H).root(),class:`context-sidebar__logo-link`},{default:P(()=>[_(r,{icon:`Prefect`,class:`context-sidebar__logo-icon`})]),_:1},8,[`to`])]),footer:P(()=>[y.value?(S(),o(`a`,oe,[_(v(z),null,{default:P(()=>[t[1]||=d(`div`,null,` Ready to scale? `,-1),_(s,{primary:``,small:``,class:`context-sidebar__upgade-button`},{default:P(()=>[...t[0]||=[a(` Upgrade `,-1)]]),_:1})]),_:1})])):n(``,!0),y.value?(S(),m(v(z),{key:1,onClick:v(O)},{default:P(()=>[t[2]||=a(` Join the Community `,-1),_(ae,{"show-modal":v(D)||!v(j),"onUpdate:showModal":M},null,8,[`show-modal`])]),_:1},8,[`onClick`])):n(``,!0),_(v(z),{title:`Settings`,to:v(H).settings()},null,8,[`to`]),C.value?(S(),m(v(z),{key:2,title:`Switch to V2 UI`,onClick:T})):n(``,!0)]),default:P(()=>[_(v(z),{title:`Dashboard`,to:v(H).dashboard()},null,8,[`to`]),_(v(z),{title:`Runs`,to:v(H).runs()},null,8,[`to`]),_(v(z),{title:`Flows`,to:v(H).flows()},null,8,[`to`]),_(v(z),{title:`Deployments`,to:v(H).deployments()},null,8,[`to`]),b.value?(S(),m(v(z),{key:0,title:`Work Pools`,to:v(H).workPools()},null,8,[`to`])):n(``,!0),b.value?n(``,!0):(S(),m(v(z),{key:1,title:`Work Queues`,to:v(H).workQueues()},null,8,[`to`])),_(v(z),{title:`Blocks`,to:v(H).blocks()},null,8,[`to`]),_(v(z),{title:v(p).info.variables,to:v(H).variables()},null,8,[`title`,`to`]),_(v(z),{title:`Automations`,to:v(H).automations()},null,8,[`to`]),_(v(z),{title:`Event Feed`,to:v(H).events()},null,8,[`to`]),_(v(z),{title:`Concurrency`,to:v(H).concurrencyLimits()},null,8,[`to`])]),_:1})}}});function ce(e){let t=D(K.getFeatureFlags,[e]),n=r(()=>[...M,...t.response??[]]);return{can:R(n),pending:r(()=>t.loading)}}function le(){let e=k(!1);function t(){e.value=!e.value}function n(){e.value=!0}function r(){e.value=!1}return{mobileMenuOpen:e,open:n,close:r,toggle:t}}var ue={class:`app-router-view`},de=g({__name:`AppRouterView`,async setup(e){let a,c,l=s(),{config:u}=([a,c]=E(()=>ee(l.path)),a=await a,c(),a),{can:d}=ce(l.path),p=J(u),g=F();N(W,d),N(h,d),N(Y,p),N(b,p),N(f,g),p.admin.authCheck().then(e=>{e==401?U.currentRoute.value.name!==`login`&&(V(`Authentication failed.`,`error`,{timeout:!1}),U.push({name:`login`,query:{redirect:U.currentRoute.value.fullPath}})):p.health.isHealthy().then(e=>{e||V(`Can't connect to Server API at ${u.baseUrl}. Check that it's accessible from your machine.`,`error`,{timeout:!1})})});let{mobileMenuOpen:w,toggle:D,close:O}=le(),k=r(()=>y.lg||w.value);return x(()=>document.body.classList.toggle(`body-scrolling-disabled`,k.value&&!y.lg)),(e,r)=>{let a=A(`router-link`),s=A(`p-button`);return S(),o(`div`,ue,[!v(y).lg&&!e.$route.meta.public?(S(),m(v(t),{key:0,class:`app-router-view__mobile-menu`},{"upper-links":P(()=>[_(a,{to:v(H).root()},{default:P(()=>[_(v(L),{icon:`Prefect`,class:`app-router-view__prefect-icon`})]),_:1},8,[`to`])]),"bottom-links":P(()=>[_(s,{small:``,icon:`Bars3Icon`,class:`app-router-view__menu-icon`,onClick:v(D)},null,8,[`onClick`])]),_:1})):n(``,!0),k.value&&!e.$route.meta.public?(S(),m(se,{key:1,class:`app-router-view__sidebar`,onClick:v(O)},null,8,[`onClick`])):n(``,!0),_(v(T),{class:I([`app-router-view__view`,{"app-router-view__view--public":e.$route.meta.public}])},{default:P(({Component:e})=>[_(i,{name:`app-router-view-fade`,mode:`out-in`},{default:P(()=>[(S(),m(C(e)))]),_:2},1024)]),_:1},8,[`class`])])}}});export{de as default};
1
+ import{$ as e,Ai as t,Gi as n,Hi as r,Ii as i,Ji as a,Ki as o,Pi as s,S as c,Ti as l,Tt as u,Ui as d,V as f,Vn as p,Wi as m,X as h,Xi as g,Yi as _,_a as v,_i as y,ar as b,ca as x,ea as S,ia as C,ii as w,ji as T,la as E,li as D,oa as O,pa as k,ra as A,ri as j,rt as M,ta as N,ua as P,un as F,va as I,vi as L,vr as R,xi as z,ya as B,yi as V}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{a as H,n as U}from"./index-FQOJ0Dim.js";import{n as W,t as G}from"./useCan-C2f8Hr5u.js";import{a as K,i as q,n as J,r as Y,t as X}from"./usePrefectApi-D-PpXvg9.js";import{n as Z,r as Q}from"./uiVersion-CFl1ZjDm.js";import{t as ee}from"./useApiConfig-Dha6i00h.js";var te={class:`flex gap-x-2 items-center`},ne={key:0,class:`text-sm italic`},re=`http://prefect.io/slack?utm_source=oss&utm_medium=oss&utm_campaign=oss_popup&utm_term=none&utm_content=none`,$=`join-the-community-modal`,ie=`https://getform.io/f/eapderva`,ae=g({__name:`JoinTheCommunityModal`,props:{showModal:{type:Boolean},showModalModifiers:{}},emits:[`update:showModal`],setup(t){let r=O(t,`showModal`),i=k(!1),s=k(),{validate:l,state:u}=j(s,[c(`Email`),e(`Email`)]),f=k(!1),p=k(``);async function h(){if(await l()){p.value=``,f.value=!0;try{await fetch(ie,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:s.value}),redirect:`manual`}),r.value=!1,V(`Successfully subscribed`,`success`)}catch(e){p.value=`An error occurred. Please try again.`,console.error(e)}finally{f.value=!1}}}return(e,t)=>{let c=A(`p-button`),l=A(`p-divider`),g=A(`p-text-input`),y=A(`p-label`),b=A(`p-form`),x=A(`p-message`),C=A(`p-modal`);return S(),m(C,{"show-modal":r.value,"onUpdate:showModal":t[2]||=e=>r.value=e,title:`Join the Prefect Community`},{header:P(()=>[...t[3]||=[d(`h2`,null,`Join the Community`,-1)]]),default:P(()=>[t[5]||=d(`p`,null,` Connect with 25k+ engineers scaling Python with Prefect. Show us your work and be the first to know about new Prefect features. `,-1),d(`div`,te,[_(c,{primary:``,icon:`Slack`,to:re,target:`_blank`,onClick:t[0]||=e=>i.value=!0},{default:P(()=>[...t[4]||=[a(` Join us on Slack `,-1)]]),_:1}),i.value?(S(),o(`span`,ne,` Thanks for joining our community! `)):n(``,!0)]),_(l,{class:`-my-3`}),_(b,{id:$,onSubmit:h},{default:P(()=>[_(y,{label:`Notify me about Prefect updates`,state:v(u),message:v(u).error},{default:P(({id:e})=>[_(g,{id:e,modelValue:s.value,"onUpdate:modelValue":t[1]||=e=>s.value=e,placeholder:`hello@prefect.io`,state:v(u)},null,8,[`id`,`modelValue`,`state`])]),_:1},8,[`state`,`message`])]),_:1}),p.value?(S(),m(x,{key:0,error:``},{default:P(()=>[a(B(p.value),1)]),_:1})):n(``,!0)]),cancel:P(e=>[_(c,{class:`sm:order-first`,onClick:e.close},{default:P(()=>[...t[6]||=[a(` Skip `,-1)]]),_:1},8,[`onClick`])]),actions:P(()=>[_(c,{primary:``,type:`submit`,form:$,loading:f.value},{default:P(()=>[...t[7]||=[a(` Sign up `,-1)]]),_:1},8,[`loading`])]),_:1},8,[`show-modal`])}}}),oe={key:0,href:`https://www.prefect.io/cloud-vs-oss?utm_source=oss&utm_medium=oss&utm_campaign=oss&utm_term=none&utm_content=none`,target:`_blank`},se=g({__name:`ContextSidebar`,async setup(e){let t,i,c=G(),f=X(),h=s(),g=([t,i]=E(()=>f.admin.getSettings()),t=await t,i(),t),y=r(()=>g.PREFECT_SERVER_UI_SHOW_PROMOTIONAL_CONTENT);localStorage.setItem(`prefect-show-promotional-content`,String(y.value));let b=r(()=>c.read.work_pool),x=k(q.settings),C=r(()=>x.value!==null&&Z(x.value,`v2`));q.loadOptional().then(e=>{x.value=e});function T(){x.value!==null&&Q(x.value,h.path)}let{showModal:D,open:O}=u(),{value:j}=w(`local`,`join-the-community-modal-dismissed`,!1);function M(e){D.value=e??!1,e||(j.value=!0)}return(e,t)=>{let r=A(`p-icon`),i=A(`router-link`),s=A(`p-button`);return S(),m(v(l),{class:`context-sidebar`},{header:P(()=>[_(i,{to:v(H).root(),class:`context-sidebar__logo-link`},{default:P(()=>[_(r,{icon:`Prefect`,class:`context-sidebar__logo-icon`})]),_:1},8,[`to`])]),footer:P(()=>[y.value?(S(),o(`a`,oe,[_(v(z),null,{default:P(()=>[t[1]||=d(`div`,null,` Ready to scale? `,-1),_(s,{primary:``,small:``,class:`context-sidebar__upgade-button`},{default:P(()=>[...t[0]||=[a(` Upgrade `,-1)]]),_:1})]),_:1})])):n(``,!0),y.value?(S(),m(v(z),{key:1,onClick:v(O)},{default:P(()=>[t[2]||=a(` Join the Community `,-1),_(ae,{"show-modal":v(D)||!v(j),"onUpdate:showModal":M},null,8,[`show-modal`])]),_:1},8,[`onClick`])):n(``,!0),_(v(z),{title:`Settings`,to:v(H).settings()},null,8,[`to`]),C.value?(S(),m(v(z),{key:2,title:`Switch to V2 UI`,onClick:T})):n(``,!0)]),default:P(()=>[_(v(z),{title:`Dashboard`,to:v(H).dashboard()},null,8,[`to`]),_(v(z),{title:`Runs`,to:v(H).runs()},null,8,[`to`]),_(v(z),{title:`Flows`,to:v(H).flows()},null,8,[`to`]),_(v(z),{title:`Deployments`,to:v(H).deployments()},null,8,[`to`]),b.value?(S(),m(v(z),{key:0,title:`Work Pools`,to:v(H).workPools()},null,8,[`to`])):n(``,!0),b.value?n(``,!0):(S(),m(v(z),{key:1,title:`Work Queues`,to:v(H).workQueues()},null,8,[`to`])),_(v(z),{title:`Blocks`,to:v(H).blocks()},null,8,[`to`]),_(v(z),{title:v(p).info.variables,to:v(H).variables()},null,8,[`title`,`to`]),_(v(z),{title:`Automations`,to:v(H).automations()},null,8,[`to`]),_(v(z),{title:`Event Feed`,to:v(H).events()},null,8,[`to`]),_(v(z),{title:`Concurrency`,to:v(H).concurrencyLimits()},null,8,[`to`])]),_:1})}}});function ce(e){let t=D(K.getFeatureFlags,[e]),n=r(()=>[...M,...t.response??[]]);return{can:R(n),pending:r(()=>t.loading)}}function le(){let e=k(!1);function t(){e.value=!e.value}function n(){e.value=!0}function r(){e.value=!1}return{mobileMenuOpen:e,open:n,close:r,toggle:t}}var ue={class:`app-router-view`},de=g({__name:`AppRouterView`,async setup(e){let a,c,l=s(),{config:u}=([a,c]=E(()=>ee(l.path)),a=await a,c(),a),{can:d}=ce(l.path),p=J(u),g=F();N(W,d),N(h,d),N(Y,p),N(b,p),N(f,g),p.admin.authCheck().then(e=>{e==401?U.currentRoute.value.name!==`login`&&(V(`Authentication failed.`,`error`,{timeout:!1}),U.push({name:`login`,query:{redirect:U.currentRoute.value.fullPath}})):p.health.isHealthy().then(e=>{e||V(`Can't connect to Server API at ${u.baseUrl}. Check that it's accessible from your machine.`,`error`,{timeout:!1})})});let{mobileMenuOpen:w,toggle:D,close:O}=le(),k=r(()=>y.lg||w.value);return x(()=>document.body.classList.toggle(`body-scrolling-disabled`,k.value&&!y.lg)),(e,r)=>{let a=A(`router-link`),s=A(`p-button`);return S(),o(`div`,ue,[!v(y).lg&&!e.$route.meta.public?(S(),m(v(t),{key:0,class:`app-router-view__mobile-menu`},{"upper-links":P(()=>[_(a,{to:v(H).root()},{default:P(()=>[_(v(L),{icon:`Prefect`,class:`app-router-view__prefect-icon`})]),_:1},8,[`to`])]),"bottom-links":P(()=>[_(s,{small:``,icon:`Bars3Icon`,class:`app-router-view__menu-icon`,onClick:v(D)},null,8,[`onClick`])]),_:1})):n(``,!0),k.value&&!e.$route.meta.public?(S(),m(se,{key:1,class:`app-router-view__sidebar`,onClick:v(O)},null,8,[`onClick`])):n(``,!0),_(v(T),{class:I([`app-router-view__view`,{"app-router-view__view--public":e.$route.meta.public}])},{default:P(({Component:e})=>[_(i,{name:`app-router-view-fade`,mode:`out-in`},{default:P(()=>[(S(),m(C(e)))]),_:2},1024)]),_:1},8,[`class`])])}}});export{de as default};
@@ -1 +1 @@
1
- import{Br as e,Gi as t,Hi as n,Ji as r,Ki as i,L as a,On as o,Vn as s,Wi as c,Wr as l,Xi as u,Yi as d,_a as f,_i as p,c as m,da as h,ea as g,fi as _,li as v,mi as y,pa as b,q as x,ra as S,ua as C,wt as w,ya as T}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as E}from"./usePageTitle-fM0UqDQI.js";var D={key:0},O=u({__name:`Artifact`,setup(u){let O=w(),k=_(`artifactId`),A=v(O.artifacts.getArtifact,[k]),j=n(()=>A.response),M=b(!1),N=[{label:`Artifact`},{label:`Details`},{label:`Raw`}],P=y(`tab`,`Artifact`),F=n(()=>j.value?`${s.info.artifact}: ${j.value.key??l(j.value.type)}`:s.info.artifact);return E(F),(n,s)=>{let l=S(`p-divider`),u=S(`p-button`),_=S(`p-content`),v=S(`p-tabs`),y=S(`p-layout-well`);return g(),c(y,{class:`artifact`},{header:C(()=>[j.value?(g(),c(f(a),{key:0,artifact:j.value},null,8,[`artifact`])):t(``,!0)]),well:C(()=>[j.value?(g(),c(f(o),{key:0,artifact:j.value,alternate:``},null,8,[`artifact`])):t(``,!0)]),default:C(()=>[j.value?(g(),i(`section`,D,[d(f(e),{artifact:j.value},null,8,[`artifact`]),d(l),f(p).xl?(g(),c(_,{key:0},{default:C(()=>[d(f(x),{artifact:j.value},null,8,[`artifact`]),d(u,{class:`artifact__raw-data-button`,small:``,onClick:s[0]||=e=>M.value=!M.value},{default:C(()=>[r(T(M.value?`Hide`:`Show`)+` raw data `,1)]),_:1}),M.value?(g(),c(f(m),{key:0,artifact:j.value},null,8,[`artifact`])):t(``,!0)]),_:1})):(g(),c(v,{key:1,selected:f(P),"onUpdate:selected":s[1]||=e=>h(P)?P.value=e:null,tabs:N},{artifact:C(()=>[d(f(x),{artifact:j.value},null,8,[`artifact`])]),details:C(()=>[d(f(o),{artifact:j.value},null,8,[`artifact`])]),raw:C(()=>[d(f(m),{artifact:j.value},null,8,[`artifact`])]),_:1},8,[`selected`]))])):t(``,!0)]),_:1})}}});export{O as default};
1
+ import{Br as e,Gi as t,Hi as n,Ji as r,Ki as i,L as a,On as o,Vn as s,Wi as c,Wr as l,Xi as u,Yi as d,_a as f,_i as p,c as m,da as h,ea as g,fi as _,li as v,mi as y,pa as b,q as x,ra as S,ua as C,wt as w,ya as T}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as E}from"./usePageTitle-CbfZDSGE.js";var D={key:0},O=u({__name:`Artifact`,setup(u){let O=w(),k=_(`artifactId`),A=v(O.artifacts.getArtifact,[k]),j=n(()=>A.response),M=b(!1),N=[{label:`Artifact`},{label:`Details`},{label:`Raw`}],P=y(`tab`,`Artifact`),F=n(()=>j.value?`${s.info.artifact}: ${j.value.key??l(j.value.type)}`:s.info.artifact);return E(F),(n,s)=>{let l=S(`p-divider`),u=S(`p-button`),_=S(`p-content`),v=S(`p-tabs`),y=S(`p-layout-well`);return g(),c(y,{class:`artifact`},{header:C(()=>[j.value?(g(),c(f(a),{key:0,artifact:j.value},null,8,[`artifact`])):t(``,!0)]),well:C(()=>[j.value?(g(),c(f(o),{key:0,artifact:j.value,alternate:``},null,8,[`artifact`])):t(``,!0)]),default:C(()=>[j.value?(g(),i(`section`,D,[d(f(e),{artifact:j.value},null,8,[`artifact`]),d(l),f(p).xl?(g(),c(_,{key:0},{default:C(()=>[d(f(x),{artifact:j.value},null,8,[`artifact`]),d(u,{class:`artifact__raw-data-button`,small:``,onClick:s[0]||=e=>M.value=!M.value},{default:C(()=>[r(T(M.value?`Hide`:`Show`)+` raw data `,1)]),_:1}),M.value?(g(),c(f(m),{key:0,artifact:j.value},null,8,[`artifact`])):t(``,!0)]),_:1})):(g(),c(v,{key:1,selected:f(P),"onUpdate:selected":s[1]||=e=>h(P)?P.value=e:null,tabs:N},{artifact:C(()=>[d(f(x),{artifact:j.value},null,8,[`artifact`])]),details:C(()=>[d(f(o),{artifact:j.value},null,8,[`artifact`])]),raw:C(()=>[d(f(m),{artifact:j.value},null,8,[`artifact`])]),_:1},8,[`selected`]))])):t(``,!0)]),_:1})}}});export{O as default};
@@ -1 +1 @@
1
- import{Br as e,Gi as t,Hi as n,Ki as r,Vn as i,Wi as a,Xi as o,_a as s,ea as c,fi as l,li as u,mr as d,ra as f,ua as p,w as m,wt as h,zi as g}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as _}from"./usePageTitle-fM0UqDQI.js";var v=o({__name:`ArtifactKey`,setup(o){let v=h(),y=l(`artifactKey`),b=u(v.artifacts.getArtifactCollection,[y]),x=n(()=>b.response),S=n(()=>x.value?`${i.info.artifact}: ${x.value.key}`:i.info.artifact);return _(S),(n,i)=>{let o=f(`p-layout-default`);return c(),a(o,{class:`artifact`},{header:p(()=>[x.value?(c(),a(s(m),{key:0,artifact:x.value},null,8,[`artifact`])):t(``,!0)]),default:p(()=>[x.value?(c(),a(s(e),{key:0,artifact:x.value},null,8,[`artifact`])):t(``,!0),x.value?(c(),r(g,{key:1},[x.value.key?(c(),a(s(d),{key:0,"artifact-key":x.value.key},null,8,[`artifact-key`])):t(``,!0)],64)):t(``,!0)]),_:1})}}});export{v as default};
1
+ import{Br as e,Gi as t,Hi as n,Ki as r,Vn as i,Wi as a,Xi as o,_a as s,ea as c,fi as l,li as u,mr as d,ra as f,ua as p,w as m,wt as h,zi as g}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as _}from"./usePageTitle-CbfZDSGE.js";var v=o({__name:`ArtifactKey`,setup(o){let v=h(),y=l(`artifactKey`),b=u(v.artifacts.getArtifactCollection,[y]),x=n(()=>b.response),S=n(()=>x.value?`${i.info.artifact}: ${x.value.key}`:i.info.artifact);return _(S),(n,i)=>{let o=f(`p-layout-default`);return c(),a(o,{class:`artifact`},{header:p(()=>[x.value?(c(),a(s(m),{key:0,artifact:x.value},null,8,[`artifact`])):t(``,!0)]),default:p(()=>[x.value?(c(),a(s(e),{key:0,artifact:x.value},null,8,[`artifact`])):t(``,!0),x.value?(c(),r(g,{key:1},[x.value.key?(c(),a(s(d),{key:0,"artifact-key":x.value.key},null,8,[`artifact-key`])):t(``,!0)],64)):t(``,!0)]),_:1})}}});export{v as default};
@@ -0,0 +1 @@
1
+ import{Ct as e,Wi as t,Xi as n,Yi as r,_a as i,ea as a,nt as o,ra as s,ua as c}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as l}from"./usePageTitle-CbfZDSGE.js";var u=n({__name:`Artifacts`,setup(n){return l(`Artifacts`),(n,l)=>{let u=s(`p-layout-default`);return a(),t(u,{class:`artifacts`},{header:c(()=>[r(i(o))]),default:c(()=>[r(i(e))]),_:1})}}});export{u as default};
@@ -1 +1 @@
1
- import{Fi as e,Gi as t,Hi as n,Hn as r,J as i,Ki as a,Kn as o,Q as s,Ui as c,Wi as l,Xi as u,Yi as d,Yn as f,_a as p,ea as m,fi as h,kn as g,li as _,na as v,ra as y,ua as b,v as x,ya as S,zi as C}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as w}from"./usePageTitle-fM0UqDQI.js";import{t as T}from"./usePrefectApi-D-PRLtA0.js";var E={class:`automation-card__label`},D=u({__name:`Automation`,setup(u){let D=g(),O=e(),k=T(),A=h(`automationId`),j=_(k.automations.getAutomation,[A]),M=n(()=>j.response),N=n(()=>M.value?.name??``),P=n(()=>[{text:`Automations`,to:D.automations()},{text:N.value}]),F=n(()=>M.value?`Automation: ${M.value.name}`:`Automation`);w(F);function I(){O.push(D.automations())}return(e,n)=>{let u=y(`p-key-value`),h=y(`p-content`),g=y(`p-card`),_=y(`p-layout-default`);return M.value?(m(),l(_,{key:0,class:`automation`},{header:b(()=>[d(p(f),{crumbs:P.value},{actions:b(()=>[d(p(i),{automation:M.value,onUpdate:p(j).refresh},null,8,[`automation`,`onUpdate`]),d(p(r),{automation:M.value,onDelete:I},null,8,[`automation`])]),_:1},8,[`crumbs`])]),default:b(()=>[d(h,null,{default:b(()=>[d(u,{label:`Description`,value:M.value.description},null,8,[`value`]),d(h,{secondary:``},{default:b(()=>[n[0]||=c(`span`,{class:`automation-card__label`},`Trigger`,-1),d(p(s),{trigger:M.value.trigger},null,8,[`trigger`])]),_:1}),d(h,{secondary:``},{default:b(()=>[c(`span`,E,S(p(o)(`Action`,M.value.actions.length)),1),(m(!0),a(C,null,v(M.value.actions,e=>(m(),l(g,{key:e.id},{default:b(()=>[d(p(x),{action:e},null,8,[`action`])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})):t(``,!0)}}});export{D as default};
1
+ import{Fi as e,Gi as t,Hi as n,Hn as r,J as i,Ki as a,Kn as o,Q as s,Ui as c,Wi as l,Xi as u,Yi as d,Yn as f,_a as p,ea as m,fi as h,kn as g,li as _,na as v,ra as y,ua as b,v as x,ya as S,zi as C}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as w}from"./usePageTitle-CbfZDSGE.js";import{t as T}from"./usePrefectApi-D-PpXvg9.js";var E={class:`automation-card__label`},D=u({__name:`Automation`,setup(u){let D=g(),O=e(),k=T(),A=h(`automationId`),j=_(k.automations.getAutomation,[A]),M=n(()=>j.response),N=n(()=>M.value?.name??``),P=n(()=>[{text:`Automations`,to:D.automations()},{text:N.value}]),F=n(()=>M.value?`Automation: ${M.value.name}`:`Automation`);w(F);function I(){O.push(D.automations())}return(e,n)=>{let u=y(`p-key-value`),h=y(`p-content`),g=y(`p-card`),_=y(`p-layout-default`);return M.value?(m(),l(_,{key:0,class:`automation`},{header:b(()=>[d(p(f),{crumbs:P.value},{actions:b(()=>[d(p(i),{automation:M.value,onUpdate:p(j).refresh},null,8,[`automation`,`onUpdate`]),d(p(r),{automation:M.value,onDelete:I},null,8,[`automation`])]),_:1},8,[`crumbs`])]),default:b(()=>[d(h,null,{default:b(()=>[d(u,{label:`Description`,value:M.value.description},null,8,[`value`]),d(h,{secondary:``},{default:b(()=>[n[0]||=c(`span`,{class:`automation-card__label`},`Trigger`,-1),d(p(s),{trigger:M.value.trigger},null,8,[`trigger`])]),_:1}),d(h,{secondary:``},{default:b(()=>[c(`span`,E,S(p(o)(`Action`,M.value.actions.length)),1),(m(!0),a(C,null,v(M.value.actions,e=>(m(),l(g,{key:e.id},{default:b(()=>[d(p(x),{action:e},null,8,[`action`])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})):t(``,!0)}}});export{D as default};
@@ -1 +1 @@
1
- import{Fi as e,Ji as t,Jt as n,Vn as r,Wi as i,Xi as a,Yi as o,Yn as s,_a as c,ea as l,it as u,kn as d,la as f,ra as p,st as m,ua as h,yi as g}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as _}from"./usePageTitle-fM0UqDQI.js";import{t as v}from"./usePrefectApi-D-PRLtA0.js";import{t as y}from"./AutomationWizard-BTjLPVWT.js";var b=a({__name:`AutomationCreate`,async setup(a){let b,x;_(`Create Automation`);let S=v(),C=d(),w=e(),T=[{text:`Automations`,to:C.automations()},{text:`Create`}],{getActions:E,getTrigger:D}=u(),O=([b,x]=f(()=>k()),b=await b,x(),b);async function k(){let e={},[t,n]=await Promise.all([D(),E()]);return t&&(e.trigger=t),n&&(e.actions=n),e}async function A(e){try{await S.automations.createAutomation(e),g(r.success.automationCreate),w.push(C.automations())}catch(e){console.error(e);let t=n(e,r.error.automationCreate);g(t,`error`,{timeout:!1})}}return(e,n)=>{let a=p(`p-layout-default`);return l(),i(a,{class:`automation-create`},{header:h(()=>[o(c(s),{crumbs:T},{actions:h(()=>[o(c(m),{to:c(r).docs.automations},{default:h(()=>[...n[0]||=[t(` Documentation `,-1)]]),_:1},8,[`to`])]),_:1})]),default:h(()=>[o(y,{automation:c(O),onSubmit:A},null,8,[`automation`])]),_:1})}}});export{b as default};
1
+ import{Fi as e,Ji as t,Jt as n,Vn as r,Wi as i,Xi as a,Yi as o,Yn as s,_a as c,ea as l,it as u,kn as d,la as f,ra as p,st as m,ua as h,yi as g}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as _}from"./usePageTitle-CbfZDSGE.js";import{t as v}from"./usePrefectApi-D-PpXvg9.js";import{t as y}from"./AutomationWizard-DwA40tdm.js";var b=a({__name:`AutomationCreate`,async setup(a){let b,x;_(`Create Automation`);let S=v(),C=d(),w=e(),T=[{text:`Automations`,to:C.automations()},{text:`Create`}],{getActions:E,getTrigger:D}=u(),O=([b,x]=f(()=>k()),b=await b,x(),b);async function k(){let e={},[t,n]=await Promise.all([D(),E()]);return t&&(e.trigger=t),n&&(e.actions=n),e}async function A(e){try{await S.automations.createAutomation(e),g(r.success.automationCreate),w.push(C.automations())}catch(e){console.error(e);let t=n(e,r.error.automationCreate);g(t,`error`,{timeout:!1})}}return(e,n)=>{let a=p(`p-layout-default`);return l(),i(a,{class:`automation-create`},{header:h(()=>[o(c(s),{crumbs:T},{actions:h(()=>[o(c(m),{to:c(r).docs.automations},{default:h(()=>[...n[0]||=[t(` Documentation `,-1)]]),_:1},8,[`to`])]),_:1})]),default:h(()=>[o(y,{automation:c(O),onSubmit:A},null,8,[`automation`])]),_:1})}}});export{b as default};
@@ -1 +1 @@
1
- import{Fi as e,Hi as t,Ji as n,Jt as r,Vn as i,Wi as a,Xi as o,Yi as s,Yn as c,_a as l,ea as u,fi as d,kn as f,la as p,ra as m,st as h,ua as g,yi as _}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as v}from"./usePageTitle-fM0UqDQI.js";import{t as y}from"./usePrefectApi-D-PRLtA0.js";import{t as b}from"./AutomationWizard-BTjLPVWT.js";var x=o({__name:`AutomationEdit`,async setup(o){let x,S,C=y(),w=f(),T=e(),E=d(`automationId`),D=([x,S]=p(()=>C.automations.getAutomation(E.value)),x=await x,S(),x);v(`Edit Automation: ${D.name}`);let O=t(()=>[{text:`Automations`,to:w.automations()},{text:D.name}]);async function k(e){try{await C.automations.updateAutomation(E.value,e),_(i.success.automationUpdate),T.push(w.automations())}catch(e){console.error(e);let t=r(e,i.error.automationUpdate);_(t,`error`,{timeout:!1})}}return(e,t)=>{let r=m(`p-layout-default`);return u(),a(r,{class:`workspace-automation-create`},{header:g(()=>[s(l(c),{crumbs:O.value},{actions:g(()=>[s(l(h),{to:l(i).docs.automations},{default:g(()=>[...t[0]||=[n(` Documentation `,-1)]]),_:1},8,[`to`])]),_:1},8,[`crumbs`])]),default:g(()=>[s(b,{automation:l(D),editing:``,onSubmit:k},null,8,[`automation`])]),_:1})}}});export{x as default};
1
+ import{Fi as e,Hi as t,Ji as n,Jt as r,Vn as i,Wi as a,Xi as o,Yi as s,Yn as c,_a as l,ea as u,fi as d,kn as f,la as p,ra as m,st as h,ua as g,yi as _}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as v}from"./usePageTitle-CbfZDSGE.js";import{t as y}from"./usePrefectApi-D-PpXvg9.js";import{t as b}from"./AutomationWizard-DwA40tdm.js";var x=o({__name:`AutomationEdit`,async setup(o){let x,S,C=y(),w=f(),T=e(),E=d(`automationId`),D=([x,S]=p(()=>C.automations.getAutomation(E.value)),x=await x,S(),x);v(`Edit Automation: ${D.name}`);let O=t(()=>[{text:`Automations`,to:w.automations()},{text:D.name}]);async function k(e){try{await C.automations.updateAutomation(E.value,e),_(i.success.automationUpdate),T.push(w.automations())}catch(e){console.error(e);let t=r(e,i.error.automationUpdate);_(t,`error`,{timeout:!1})}}return(e,t)=>{let r=m(`p-layout-default`);return u(),a(r,{class:`workspace-automation-create`},{header:g(()=>[s(l(c),{crumbs:O.value},{actions:g(()=>[s(l(h),{to:l(i).docs.automations},{default:g(()=>[...t[0]||=[n(` Documentation `,-1)]]),_:1},8,[`to`])]),_:1},8,[`crumbs`])]),default:g(()=>[s(b,{automation:l(D),editing:``,onSubmit:k},null,8,[`automation`])]),_:1})}}});export{x as default};
@@ -1 +1 @@
1
- import{n as e,r as t,t as n}from"./mapper-B8Z87fhQ.js";import{$i as r,An as i,Bi as a,Bt as o,Di as s,Fi as c,Gi as l,Hi as u,Ji as d,Ki as f,Nr as p,Or as m,Ot as h,Qi as g,Rn as _,Ui as v,Vn as y,Vr as b,Wi as x,Xi as S,Yi as C,_a as w,bt as T,ct as E,da as D,dn as O,ea as k,ei as A,fa as ee,hi as j,ia as M,lt as N,mt as P,na as F,o as I,oa as L,p as R,pa as z,ra as B,ri as V,sa as H,si as U,st as W,tr as G,ua as K,xn as q,xr as J,xt as Y,ya as X,yt as Z,zi as Q}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";var te=S({__name:`AutomationActionTypeSelect`,props:{type:{required:!0},typeModifiers:{}},emits:[`update:type`],setup(e){let t=L(e,`type`),n=u(()=>{let e=_.map(e=>({label:O[e],value:e}));return t.value===`do-nothing`?e:e.filter(e=>e.value!==`do-nothing`)});return(e,r)=>{let i=B(`p-select`);return k(),x(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,options:n.value,class:`automation-action-type-select`},null,8,[`modelValue`,`options`])}}}),ne={class:`automation-wizard-action`},re={class:`automation-wizard-action__header`},ie={class:`automation-wizard-action__heading`},ae=S({__name:`AutomationWizardAction`,props:{index:{},action:{},automation:{}},emits:[`delete`,`update:action`],setup(e,{emit:t}){let n=e,r=t,a=u({get(){return n.action.type??null},set(e){if(i(e)){r(`update:action`,{});return}let t=o(n.automation.trigger),a=Y(e,t);r(`update:action`,a)}}),{state:s,error:c}=V(a,`Action Type`,e=>!!e),d=u(()=>n.action.type?m(I,{action:n.action,"onUpdate:action":e=>r(`update:action`,e)}):null);function p(e){r(`update:action`,e)}return(t,n)=>{let i=B(`p-button`),o=B(`p-label`),u=B(`p-content`);return k(),f(`div`,ne,[v(`div`,re,[v(`span`,ie,`Action `+X(e.index+1),1),C(i,{size:`sm`,icon:`TrashIcon`,onClick:n[0]||=e=>r(`delete`)})]),C(u,null,{default:K(()=>[C(o,{label:`Action Type`,state:w(s),message:w(c)},{default:K(({id:e})=>[C(te,{id:e,type:a.value,"onUpdate:type":n[1]||=e=>a.value=e,state:w(s)},null,8,[`id`,`type`,`state`])]),_:1},8,[`state`,`message`]),d.value?(k(),x(M(d.value.component),g({key:0},d.value.props,{"onUpdate:action":p}),null,16)):l(``,!0)]),_:1})])}}}),oe={class:`automation-wizard-step-actions`},$=S({__name:`AutomationWizardStepActions`,props:{automation:{}},emits:[`update:automation`],setup(e,{emit:t}){let n=e,i=t,o=ee(n.automation.actions??[]);function c(){o.push({})}function u(e){o.splice(e,1)}function p(e,t){o[e]=t}let{error:m}=V(o,`Actions`,e=>e.length?!0:`At least 1 action is required`),{defineValidate:h}=s(),{validate:g}=A();return h(g),r(()=>{o.length===0&&c()}),H(o,()=>{i(`update:automation`,{...n.automation,actions:o.filter(N)})}),(t,n)=>{let r=B(`p-divider`),i=B(`p-message`),s=B(`p-button`);return k(),f(`div`,oe,[(k(),x(a,null,[(k(!0),f(Q,null,F(o,(t,n)=>(k(),f(Q,{key:n},[C(ae,{action:t,automation:e.automation,index:n,"onUpdate:action":e=>p(n,e),onDelete:e=>u(n)},null,8,[`action`,`automation`,`index`,`onUpdate:action`,`onDelete`]),C(r)],64))),128))],1024)),w(m)?(k(),x(i,{key:0,error:``},{default:K(()=>[d(X(w(m)),1)]),_:1})):l(``,!0),C(s,{class:`automations-wizard-step-actions__add`,icon:`PlusIcon`,onClick:c},{default:K(()=>[...n[0]||=[d(` Add Action `,-1)]]),_:1})])}}}),se=S({__name:`AutomationWizardStepDetails`,props:{automation:{required:!0},automationModifiers:{}},emits:[`update:automation`],setup(e){let t=L(e,`automation`),n=U(t,`name`),r=U(t,`description`),{validate:i}=A(),{state:a,error:o}=V(n,`Automation name`,(e=``,t)=>e.length>0||`${t} is required`),{defineValidate:c}=s();return c(i),(e,t)=>{let i=B(`p-text-input`),s=B(`p-label`),c=B(`p-content`);return k(),x(c,{class:`automation-wizard-step-details`},{default:K(()=>[C(s,{label:`Automation Name`,state:w(a),message:w(o)},{default:K(({id:e})=>[C(i,{id:e,modelValue:w(n),"onUpdate:modelValue":t[0]||=e=>D(n)?n.value=e:null,state:w(a)},null,8,[`id`,`modelValue`,`state`])]),_:1},8,[`state`,`message`]),C(s,{label:`Description (Optional)`},{default:K(({id:e})=>[C(i,{id:e,modelValue:w(r),"onUpdate:modelValue":t[1]||=e=>D(r)?r.value=e:null},null,8,[`id`,`modelValue`])]),_:1})]),_:1})}}}),ce=S({__name:`AutomationTriggerJsonInput`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=L(e,`modelValue`),{state:r,error:a}=V(t,`Trigger`,[(e,t)=>i(e)||h(e)||P(e)||p(e)?`${t} is required`:!0,(e,t)=>{try{JSON.parse(e)}catch{return`${t} must be valid JSON`}return!0},e=>{try{let t=JSON.parse(e);n.map(`AutomationTriggerResponse`,t,`AutomationTrigger`)}catch{return!1}return!0}]);return(e,n)=>{let i=B(`p-message`),o=B(`p-label`);return k(),f(Q,null,[C(i,{info:``},{action:K(()=>[C(w(W),{to:w(y).docs.automationTriggers,small:``},null,8,[`to`])]),default:K(()=>[n[1]||=d(` Custom triggers allow advanced configuration of the conditions on which a trigger executes its actions. `,-1)]),_:1}),C(o,{label:`Trigger`,state:w(r),message:w(a)},{default:K(()=>[C(w(T),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`automation-trigger-json-input__json-input`,"show-format-button":``,state:w(r)},null,8,[`modelValue`,`state`])]),_:1},8,[`state`,`message`])],64)}}}),le=S({__name:`AutomationTriggerTemplateSelect`,props:{template:{required:!0},templateModifiers:{}},emits:[`update:template`],setup(e){let t=L(e,`template`),n=u(()=>b.map(e=>({label:q(e),value:e})));return(e,r)=>{let i=B(`p-select`);return k(),x(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,"empty-message":`Select template`,options:n.value,class:`automation-trigger-template-select`},null,8,[`modelValue`,`options`])}}}),ue=S({__name:`AutomationWizardStepTrigger`,props:{automation:{required:!0},automationModifiers:{}},emits:[`update:automation`],setup(e){let t=L(e,`automation`),r=u({get(){return t.value.trigger?o(t.value.trigger):null},set(e){i(e)?D(void 0):D(Z(e))}}),{values:a}=J([`Form`,`JSON`]),c=z(`Form`);function d(){let e=n.map(`AutomationTrigger`,t.value.trigger,`AutomationTriggerRequest`);return G(e)}let p=z(d());H(()=>t.value.trigger,()=>p.value=d());function h(){let e=JSON.parse(p.value),t=n.map(`AutomationTriggerResponse`,e,`AutomationTrigger`);return D(t),t}async function _(e){c.value!==e&&await y()&&(e===`Form`&&h(),e===`JSON`&&(p.value=d()),c.value=e)}let{defineValidate:v}=s(),{validate:y}=A(),{state:b,error:S}=V(r,`Trigger template`,e=>e?!0:`Trigger type is required`);v(async()=>{let e=await y();return e&&c.value===`JSON`&&h(),e});let T=u(()=>{if(!r.value)return null;let e=t.value.trigger??Z(r.value);switch(e.type){case`event`:return m(R,{template:r.value,trigger:e,"onUpdate:trigger":D});case`compound`:case`sequence`:return m(E,{trigger:e,"onUpdate:trigger":D});default:throw Error(`AutomationWizardStepTrigger is missing case for trigger type ${e.type}`)}});function D(e){t.value={...t.value,trigger:e}}return(e,t)=>{let n=B(`p-label`),i=B(`p-button-group`),o=B(`p-content`);return k(),x(o,{class:`automation-wizard-step-trigger`},{default:K(()=>[C(n,{label:`Trigger Template`,state:w(b),message:w(S)},{default:K(({id:e})=>[C(le,{id:e,template:r.value,"onUpdate:template":t[0]||=e=>r.value=e,state:w(b)},null,8,[`id`,`template`,`state`])]),_:1},8,[`state`,`message`]),T.value?(k(),f(Q,{key:0},[C(i,{class:`automation-wizard-step-trigger__mode-switcher`,"model-value":c.value,options:w(a),small:``,"onUpdate:modelValue":t[1]||=e=>_(e)},null,8,[`model-value`,`options`]),c.value===`Form`&&r.value?(k(),x(M(T.value.component),g({key:r.value},T.value.props),null,16)):c.value===`JSON`?(k(),x(ce,{key:1,modelValue:p.value,"onUpdate:modelValue":t[2]||=e=>p.value=e},null,8,[`modelValue`])):l(``,!0)],64)):l(``,!0)]),_:1})}}}),de=S({__name:`AutomationWizard`,props:{automation:{},editing:{type:Boolean}},emits:[`submit`],setup(n,{emit:r}){let i=n,a=z(i.automation??{}),o=r,s=c(),d=u(()=>i.automation?`Save`:`Create`),f=[{title:`Trigger`,key:`trigger-step`},{title:`Actions`,key:`actions-step`},{title:`Details`,key:`details-step`}],p=z();function m(){o(`submit`,new e(a.value))}function h(){s.back()}return(e,r)=>(k(),x(w(j),{ref_key:`wizardRef`,ref:p,class:`automation-wizard`,steps:f,"last-step-text":d.value,"show-cancel":``,nonlinear:n.editing,"show-save-and-exit":n.editing,onCancel:h,onSubmit:m},{"trigger-step":K(()=>[C(ue,{automation:a.value,"onUpdate:automation":r[0]||=e=>a.value=e},null,8,[`automation`])]),"actions-step":K(()=>[w(t)(a.value)?(k(),x($,{key:0,automation:a.value,"onUpdate:automation":r[1]||=e=>a.value=e},null,8,[`automation`])):l(``,!0)]),"details-step":K(()=>[C(se,{automation:a.value,"onUpdate:automation":r[2]||=e=>a.value=e},null,8,[`automation`])]),_:1},8,[`last-step-text`,`nonlinear`,`show-save-and-exit`]))}});export{de as t};
1
+ import{n as e,r as t,t as n}from"./mapper-POVIYowe.js";import{$i as r,An as i,Bi as a,Bt as o,Di as s,Fi as c,Gi as l,Hi as u,Ji as d,Ki as f,Nr as p,Or as m,Ot as h,Qi as g,Rn as _,Ui as v,Vn as y,Vr as b,Wi as x,Xi as S,Yi as C,_a as w,bt as T,ct as E,da as D,dn as O,ea as k,ei as A,fa as ee,hi as j,ia as M,lt as N,mt as P,na as F,o as I,oa as L,p as R,pa as z,ra as B,ri as V,sa as H,si as U,st as W,tr as G,ua as K,xn as q,xr as J,xt as Y,ya as X,yt as Z,zi as Q}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";var te=S({__name:`AutomationActionTypeSelect`,props:{type:{required:!0},typeModifiers:{}},emits:[`update:type`],setup(e){let t=L(e,`type`),n=u(()=>{let e=_.map(e=>({label:O[e],value:e}));return t.value===`do-nothing`?e:e.filter(e=>e.value!==`do-nothing`)});return(e,r)=>{let i=B(`p-select`);return k(),x(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,options:n.value,class:`automation-action-type-select`},null,8,[`modelValue`,`options`])}}}),ne={class:`automation-wizard-action`},re={class:`automation-wizard-action__header`},ie={class:`automation-wizard-action__heading`},ae=S({__name:`AutomationWizardAction`,props:{index:{},action:{},automation:{}},emits:[`delete`,`update:action`],setup(e,{emit:t}){let n=e,r=t,a=u({get(){return n.action.type??null},set(e){if(i(e)){r(`update:action`,{});return}let t=o(n.automation.trigger),a=Y(e,t);r(`update:action`,a)}}),{state:s,error:c}=V(a,`Action Type`,e=>!!e),d=u(()=>n.action.type?m(I,{action:n.action,"onUpdate:action":e=>r(`update:action`,e)}):null);function p(e){r(`update:action`,e)}return(t,n)=>{let i=B(`p-button`),o=B(`p-label`),u=B(`p-content`);return k(),f(`div`,ne,[v(`div`,re,[v(`span`,ie,`Action `+X(e.index+1),1),C(i,{size:`sm`,icon:`TrashIcon`,onClick:n[0]||=e=>r(`delete`)})]),C(u,null,{default:K(()=>[C(o,{label:`Action Type`,state:w(s),message:w(c)},{default:K(({id:e})=>[C(te,{id:e,type:a.value,"onUpdate:type":n[1]||=e=>a.value=e,state:w(s)},null,8,[`id`,`type`,`state`])]),_:1},8,[`state`,`message`]),d.value?(k(),x(M(d.value.component),g({key:0},d.value.props,{"onUpdate:action":p}),null,16)):l(``,!0)]),_:1})])}}}),oe={class:`automation-wizard-step-actions`},$=S({__name:`AutomationWizardStepActions`,props:{automation:{}},emits:[`update:automation`],setup(e,{emit:t}){let n=e,i=t,o=ee(n.automation.actions??[]);function c(){o.push({})}function u(e){o.splice(e,1)}function p(e,t){o[e]=t}let{error:m}=V(o,`Actions`,e=>e.length?!0:`At least 1 action is required`),{defineValidate:h}=s(),{validate:g}=A();return h(g),r(()=>{o.length===0&&c()}),H(o,()=>{i(`update:automation`,{...n.automation,actions:o.filter(N)})}),(t,n)=>{let r=B(`p-divider`),i=B(`p-message`),s=B(`p-button`);return k(),f(`div`,oe,[(k(),x(a,null,[(k(!0),f(Q,null,F(o,(t,n)=>(k(),f(Q,{key:n},[C(ae,{action:t,automation:e.automation,index:n,"onUpdate:action":e=>p(n,e),onDelete:e=>u(n)},null,8,[`action`,`automation`,`index`,`onUpdate:action`,`onDelete`]),C(r)],64))),128))],1024)),w(m)?(k(),x(i,{key:0,error:``},{default:K(()=>[d(X(w(m)),1)]),_:1})):l(``,!0),C(s,{class:`automations-wizard-step-actions__add`,icon:`PlusIcon`,onClick:c},{default:K(()=>[...n[0]||=[d(` Add Action `,-1)]]),_:1})])}}}),se=S({__name:`AutomationWizardStepDetails`,props:{automation:{required:!0},automationModifiers:{}},emits:[`update:automation`],setup(e){let t=L(e,`automation`),n=U(t,`name`),r=U(t,`description`),{validate:i}=A(),{state:a,error:o}=V(n,`Automation name`,(e=``,t)=>e.length>0||`${t} is required`),{defineValidate:c}=s();return c(i),(e,t)=>{let i=B(`p-text-input`),s=B(`p-label`),c=B(`p-content`);return k(),x(c,{class:`automation-wizard-step-details`},{default:K(()=>[C(s,{label:`Automation Name`,state:w(a),message:w(o)},{default:K(({id:e})=>[C(i,{id:e,modelValue:w(n),"onUpdate:modelValue":t[0]||=e=>D(n)?n.value=e:null,state:w(a)},null,8,[`id`,`modelValue`,`state`])]),_:1},8,[`state`,`message`]),C(s,{label:`Description (Optional)`},{default:K(({id:e})=>[C(i,{id:e,modelValue:w(r),"onUpdate:modelValue":t[1]||=e=>D(r)?r.value=e:null},null,8,[`id`,`modelValue`])]),_:1})]),_:1})}}}),ce=S({__name:`AutomationTriggerJsonInput`,props:{modelValue:{required:!0},modelModifiers:{}},emits:[`update:modelValue`],setup(e){let t=L(e,`modelValue`),{state:r,error:a}=V(t,`Trigger`,[(e,t)=>i(e)||h(e)||P(e)||p(e)?`${t} is required`:!0,(e,t)=>{try{JSON.parse(e)}catch{return`${t} must be valid JSON`}return!0},e=>{try{let t=JSON.parse(e);n.map(`AutomationTriggerResponse`,t,`AutomationTrigger`)}catch{return!1}return!0}]);return(e,n)=>{let i=B(`p-message`),o=B(`p-label`);return k(),f(Q,null,[C(i,{info:``},{action:K(()=>[C(w(W),{to:w(y).docs.automationTriggers,small:``},null,8,[`to`])]),default:K(()=>[n[1]||=d(` Custom triggers allow advanced configuration of the conditions on which a trigger executes its actions. `,-1)]),_:1}),C(o,{label:`Trigger`,state:w(r),message:w(a)},{default:K(()=>[C(w(T),{modelValue:t.value,"onUpdate:modelValue":n[0]||=e=>t.value=e,class:`automation-trigger-json-input__json-input`,"show-format-button":``,state:w(r)},null,8,[`modelValue`,`state`])]),_:1},8,[`state`,`message`])],64)}}}),le=S({__name:`AutomationTriggerTemplateSelect`,props:{template:{required:!0},templateModifiers:{}},emits:[`update:template`],setup(e){let t=L(e,`template`),n=u(()=>b.map(e=>({label:q(e),value:e})));return(e,r)=>{let i=B(`p-select`);return k(),x(i,{modelValue:t.value,"onUpdate:modelValue":r[0]||=e=>t.value=e,"empty-message":`Select template`,options:n.value,class:`automation-trigger-template-select`},null,8,[`modelValue`,`options`])}}}),ue=S({__name:`AutomationWizardStepTrigger`,props:{automation:{required:!0},automationModifiers:{}},emits:[`update:automation`],setup(e){let t=L(e,`automation`),r=u({get(){return t.value.trigger?o(t.value.trigger):null},set(e){i(e)?D(void 0):D(Z(e))}}),{values:a}=J([`Form`,`JSON`]),c=z(`Form`);function d(){let e=n.map(`AutomationTrigger`,t.value.trigger,`AutomationTriggerRequest`);return G(e)}let p=z(d());H(()=>t.value.trigger,()=>p.value=d());function h(){let e=JSON.parse(p.value),t=n.map(`AutomationTriggerResponse`,e,`AutomationTrigger`);return D(t),t}async function _(e){c.value!==e&&await y()&&(e===`Form`&&h(),e===`JSON`&&(p.value=d()),c.value=e)}let{defineValidate:v}=s(),{validate:y}=A(),{state:b,error:S}=V(r,`Trigger template`,e=>e?!0:`Trigger type is required`);v(async()=>{let e=await y();return e&&c.value===`JSON`&&h(),e});let T=u(()=>{if(!r.value)return null;let e=t.value.trigger??Z(r.value);switch(e.type){case`event`:return m(R,{template:r.value,trigger:e,"onUpdate:trigger":D});case`compound`:case`sequence`:return m(E,{trigger:e,"onUpdate:trigger":D});default:throw Error(`AutomationWizardStepTrigger is missing case for trigger type ${e.type}`)}});function D(e){t.value={...t.value,trigger:e}}return(e,t)=>{let n=B(`p-label`),i=B(`p-button-group`),o=B(`p-content`);return k(),x(o,{class:`automation-wizard-step-trigger`},{default:K(()=>[C(n,{label:`Trigger Template`,state:w(b),message:w(S)},{default:K(({id:e})=>[C(le,{id:e,template:r.value,"onUpdate:template":t[0]||=e=>r.value=e,state:w(b)},null,8,[`id`,`template`,`state`])]),_:1},8,[`state`,`message`]),T.value?(k(),f(Q,{key:0},[C(i,{class:`automation-wizard-step-trigger__mode-switcher`,"model-value":c.value,options:w(a),small:``,"onUpdate:modelValue":t[1]||=e=>_(e)},null,8,[`model-value`,`options`]),c.value===`Form`&&r.value?(k(),x(M(T.value.component),g({key:r.value},T.value.props),null,16)):c.value===`JSON`?(k(),x(ce,{key:1,modelValue:p.value,"onUpdate:modelValue":t[2]||=e=>p.value=e},null,8,[`modelValue`])):l(``,!0)],64)):l(``,!0)]),_:1})}}}),de=S({__name:`AutomationWizard`,props:{automation:{},editing:{type:Boolean}},emits:[`submit`],setup(n,{emit:r}){let i=n,a=z(i.automation??{}),o=r,s=c(),d=u(()=>i.automation?`Save`:`Create`),f=[{title:`Trigger`,key:`trigger-step`},{title:`Actions`,key:`actions-step`},{title:`Details`,key:`details-step`}],p=z();function m(){o(`submit`,new e(a.value))}function h(){s.back()}return(e,r)=>(k(),x(w(j),{ref_key:`wizardRef`,ref:p,class:`automation-wizard`,steps:f,"last-step-text":d.value,"show-cancel":``,nonlinear:n.editing,"show-save-and-exit":n.editing,onCancel:h,onSubmit:m},{"trigger-step":K(()=>[C(ue,{automation:a.value,"onUpdate:automation":r[0]||=e=>a.value=e},null,8,[`automation`])]),"actions-step":K(()=>[w(t)(a.value)?(k(),x($,{key:0,automation:a.value,"onUpdate:automation":r[1]||=e=>a.value=e},null,8,[`automation`])):l(``,!0)]),"details-step":K(()=>[C(se,{automation:a.value,"onUpdate:automation":r[2]||=e=>a.value=e},null,8,[`automation`])]),_:1},8,[`last-step-text`,`nonlinear`,`show-save-and-exit`]))}});export{de as t};
@@ -1 +1 @@
1
- import{Gi as e,Hi as t,Hn as n,J as r,Ji as i,Ki as a,Pt as o,Q as s,Ui as c,Vn as l,Wi as u,Xi as d,Yi as f,Yn as p,_a as m,ea as h,kn as g,li as _,na as v,qi as y,ra as b,st as x,u as S,ua as C,v as w,wi as T,ya as E,zi as D}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as O}from"./usePageTitle-fM0UqDQI.js";import{t as k}from"./usePrefectApi-D-PRLtA0.js";var A={class:`automation-card__header`},j={class:`automation-card__header-actions`},M={key:0,class:`automation-card__description`},N={class:`automation-card__label`},P=d({__name:`AutomationCard`,props:{automation:{}},emits:[`update`],setup(t,{emit:o}){let l=o,d=g();return(o,p)=>{let g=b(`p-link`),_=b(`p-content`),y=b(`p-card`);return h(),u(y,{class:`automation-card`},{default:C(()=>[f(_,null,{default:C(()=>[f(_,{secondary:``},{default:C(()=>[c(`div`,A,[f(g,{class:`automation-card__name`,to:m(d).automation(t.automation.id)},{default:C(()=>[i(E(t.automation.name),1)]),_:1},8,[`to`]),c(`div`,j,[f(m(r),{automation:t.automation,onUpdate:p[0]||=e=>l(`update`)},null,8,[`automation`]),f(m(n),{automation:t.automation,onDelete:p[1]||=e=>l(`update`)},null,8,[`automation`])])]),t.automation.description?(h(),a(`p`,M,E(t.automation.description),1)):e(``,!0)]),_:1}),f(_,{secondary:``},{default:C(()=>[p[2]||=c(`span`,{class:`automation-card__label`},`Trigger`,-1),f(m(s),{trigger:t.automation.trigger},null,8,[`trigger`])]),_:1}),f(_,{secondary:``},{default:C(()=>[c(`span`,N,E(m(T)(`Action`,t.automation.actions.length)),1),(h(!0),a(D,null,v(t.automation.actions,e=>(h(),u(y,{key:e.id},{default:C(()=>[f(m(w),{action:e},null,8,[`action`])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})}}}),F=d({__name:`Automations`,setup(n){let r=g();O(`Automations`);let s=[{text:`Automations`}],c=k(),d=_(c.automations.getAutomations),v=t(()=>d.response??[]),w=t(()=>d.executed),T=t(()=>v.value.length===0);return(t,n)=>{let c=b(`p-button`),g=b(`p-virtual-scroller`),_=b(`p-layout-default`);return h(),u(_,{class:`automations`},{header:C(()=>[f(m(p),{crumbs:s},y({"after-crumbs":C(()=>[f(c,{size:`sm`,icon:`PlusIcon`,to:m(r).automationCreate()},null,8,[`to`])]),_:2},[T.value?void 0:{name:`actions`,fn:C(()=>[f(m(x),{to:m(l).docs.automations},{default:C(()=>[...n[0]||=[i(` Documentation `,-1)]]),_:1},8,[`to`])]),key:`0`}]),1024)]),default:C(()=>[w.value?(h(),a(D,{key:0},[T.value?(h(),u(m(S),{key:0})):(h(),a(D,{key:1},[f(m(o),{count:v.value.length,label:`automation`},null,8,[`count`]),f(g,{items:v.value,class:`automations-list`},{default:C(({item:e})=>[f(P,{automation:e,onUpdate:m(d).refresh},null,8,[`automation`,`onUpdate`])]),_:1},8,[`items`])],64))],64)):e(``,!0)]),_:1})}}});export{F as default};
1
+ import{Gi as e,Hi as t,Hn as n,J as r,Ji as i,Ki as a,Pt as o,Q as s,Ui as c,Vn as l,Wi as u,Xi as d,Yi as f,Yn as p,_a as m,ea as h,kn as g,li as _,na as v,qi as y,ra as b,st as x,u as S,ua as C,v as w,wi as T,ya as E,zi as D}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as O}from"./usePageTitle-CbfZDSGE.js";import{t as k}from"./usePrefectApi-D-PpXvg9.js";var A={class:`automation-card__header`},j={class:`automation-card__header-actions`},M={key:0,class:`automation-card__description`},N={class:`automation-card__label`},P=d({__name:`AutomationCard`,props:{automation:{}},emits:[`update`],setup(t,{emit:o}){let l=o,d=g();return(o,p)=>{let g=b(`p-link`),_=b(`p-content`),y=b(`p-card`);return h(),u(y,{class:`automation-card`},{default:C(()=>[f(_,null,{default:C(()=>[f(_,{secondary:``},{default:C(()=>[c(`div`,A,[f(g,{class:`automation-card__name`,to:m(d).automation(t.automation.id)},{default:C(()=>[i(E(t.automation.name),1)]),_:1},8,[`to`]),c(`div`,j,[f(m(r),{automation:t.automation,onUpdate:p[0]||=e=>l(`update`)},null,8,[`automation`]),f(m(n),{automation:t.automation,onDelete:p[1]||=e=>l(`update`)},null,8,[`automation`])])]),t.automation.description?(h(),a(`p`,M,E(t.automation.description),1)):e(``,!0)]),_:1}),f(_,{secondary:``},{default:C(()=>[p[2]||=c(`span`,{class:`automation-card__label`},`Trigger`,-1),f(m(s),{trigger:t.automation.trigger},null,8,[`trigger`])]),_:1}),f(_,{secondary:``},{default:C(()=>[c(`span`,N,E(m(T)(`Action`,t.automation.actions.length)),1),(h(!0),a(D,null,v(t.automation.actions,e=>(h(),u(y,{key:e.id},{default:C(()=>[f(m(w),{action:e},null,8,[`action`])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})}}}),F=d({__name:`Automations`,setup(n){let r=g();O(`Automations`);let s=[{text:`Automations`}],c=k(),d=_(c.automations.getAutomations),v=t(()=>d.response??[]),w=t(()=>d.executed),T=t(()=>v.value.length===0);return(t,n)=>{let c=b(`p-button`),g=b(`p-virtual-scroller`),_=b(`p-layout-default`);return h(),u(_,{class:`automations`},{header:C(()=>[f(m(p),{crumbs:s},y({"after-crumbs":C(()=>[f(c,{size:`sm`,icon:`PlusIcon`,to:m(r).automationCreate()},null,8,[`to`])]),_:2},[T.value?void 0:{name:`actions`,fn:C(()=>[f(m(x),{to:m(l).docs.automations},{default:C(()=>[...n[0]||=[i(` Documentation `,-1)]]),_:1},8,[`to`])]),key:`0`}]),1024)]),default:C(()=>[w.value?(h(),a(D,{key:0},[T.value?(h(),u(m(S),{key:0})):(h(),a(D,{key:1},[f(m(o),{count:v.value.length,label:`automation`},null,8,[`count`]),f(g,{items:v.value,class:`automations-list`},{default:C(({item:e})=>[f(P,{automation:e,onUpdate:m(d).refresh},null,8,[`automation`,`onUpdate`])]),_:1},8,[`items`])],64))],64)):e(``,!0)]),_:1})}}});export{F as default};
@@ -1 +1 @@
1
- import{Fi as e,Gi as t,Qi as n,Vt as r,Wi as i,Xi as a,Yi as o,_a as s,aa as c,ea as l,fi as u,la as d,pa as f,pt as p,ra as m,rn as h,ua as g,wt as _,yi as v}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{a as y}from"./index-DpFlA-Lk.js";import{t as b}from"./usePageTitle-fM0UqDQI.js";var x=a({__name:`BlockEdit`,async setup(a){let x,S,C=_(),w=e(),T=u(`blockDocumentId`),E=([x,S]=d(()=>C.blockDocuments.getBlockDocument(T.value)),x=await x,S(),x),{blockType:D,blockSchema:O}=E,k=f(E.data),A=f(E.name);function j(e){C.blockDocuments.updateBlockDocument(E.id,e).then(()=>{v(`Block updated successfully`,`success`),w.push(y.block(T.value))}).catch(e=>{v(`Failed to update block`,`error`),console.error(e)})}function M(){w.back()}return b(`Edit Block: ${A.value}`),(e,a)=>{let u=m(`p-layout-default`);return s(E)?(l(),i(u,{key:0,class:`block-edit`},{header:g(()=>[o(s(r),{"block-document":s(E)},null,8,[`block-document`])]),default:g(()=>[o(s(h),{"block-type":s(D)},{default:g(()=>[o(s(p),n({data:k.value,"onUpdate:data":a[0]||=e=>k.value=e},{name:A.value,blockSchema:s(O)},c({submit:j,cancel:M})),null,16,[`data`])]),_:1},8,[`block-type`])]),_:1})):t(``,!0)}}});export{x as default};
1
+ import{Fi as e,Gi as t,Qi as n,Vt as r,Wi as i,Xi as a,Yi as o,_a as s,aa as c,ea as l,fi as u,la as d,pa as f,pt as p,ra as m,rn as h,ua as g,wt as _,yi as v}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{a as y}from"./index-FQOJ0Dim.js";import{t as b}from"./usePageTitle-CbfZDSGE.js";var x=a({__name:`BlockEdit`,async setup(a){let x,S,C=_(),w=e(),T=u(`blockDocumentId`),E=([x,S]=d(()=>C.blockDocuments.getBlockDocument(T.value)),x=await x,S(),x),{blockType:D,blockSchema:O}=E,k=f(E.data),A=f(E.name);function j(e){C.blockDocuments.updateBlockDocument(E.id,e).then(()=>{v(`Block updated successfully`,`success`),w.push(y.block(T.value))}).catch(e=>{v(`Failed to update block`,`error`),console.error(e)})}function M(){w.back()}return b(`Edit Block: ${A.value}`),(e,a)=>{let u=m(`p-layout-default`);return s(E)?(l(),i(u,{key:0,class:`block-edit`},{header:g(()=>[o(s(r),{"block-document":s(E)},null,8,[`block-document`])]),default:g(()=>[o(s(h),{"block-type":s(D)},{default:g(()=>[o(s(p),n({data:k.value,"onUpdate:data":a[0]||=e=>k.value=e},{name:A.value,blockSchema:s(O)},c({submit:j,cancel:M})),null,16,[`data`])]),_:1},8,[`block-type`])]),_:1})):t(``,!0)}}});export{x as default};
@@ -1 +1 @@
1
- import{Fi as e,Gi as t,Hi as n,Qr as r,Wi as i,Xi as a,Yi as o,_a as s,cn as c,ea as l,fi as u,jt as d,ra as f,ua as p,wt as m}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{a as h}from"./index-DpFlA-Lk.js";import{t as g}from"./usePageTitle-fM0UqDQI.js";var _=a({__name:`BlockView`,setup(a){let _=m(),v=e(),y=u(`blockDocumentId`),b=n(()=>y.value?[y.value]:null),x=r(_.blockDocuments.getBlockDocument,b),S=n(()=>x.response),C=()=>{v.push(h.blocks())},w=n(()=>S.value?`Block: ${S.value.name}`:`Block`);return g(w),(e,n)=>{let r=f(`p-layout-default`);return S.value?(l(),i(r,{key:0,class:`block-view`},{header:p(()=>[o(s(d),{"block-document":S.value,onDelete:C},null,8,[`block-document`])]),default:p(()=>[o(s(c),{"block-document":S.value},null,8,[`block-document`])]),_:1})):t(``,!0)}}});export{_ as default};
1
+ import{Fi as e,Gi as t,Hi as n,Qr as r,Wi as i,Xi as a,Yi as o,_a as s,cn as c,ea as l,fi as u,jt as d,ra as f,ua as p,wt as m}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{a as h}from"./index-FQOJ0Dim.js";import{t as g}from"./usePageTitle-CbfZDSGE.js";var _=a({__name:`BlockView`,setup(a){let _=m(),v=e(),y=u(`blockDocumentId`),b=n(()=>y.value?[y.value]:null),x=r(_.blockDocuments.getBlockDocument,b),S=n(()=>x.response),C=()=>{v.push(h.blocks())},w=n(()=>S.value?`Block: ${S.value.name}`:`Block`);return g(w),(e,n)=>{let r=f(`p-layout-default`);return S.value?(l(),i(r,{key:0,class:`block-view`},{header:p(()=>[o(s(d),{"block-document":S.value,onDelete:C},null,8,[`block-document`])]),default:p(()=>[o(s(c),{"block-document":S.value},null,8,[`block-document`])]),_:1})):t(``,!0)}}});export{_ as default};
@@ -1 +1 @@
1
- import{Gi as e,Hi as t,Ki as n,Wi as r,Xi as i,Yi as a,_a as o,d as s,ea as c,li as l,n as u,ra as d,ua as f,wt as p,x as m,zi as h}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as g}from"./usePageTitle-fM0UqDQI.js";var _=i({__name:`Blocks`,setup(i){let _=p(),v=l(_.blockDocuments.getBlockDocumentsCount),y=t(()=>v.executed&&v.response==0),b=t(()=>v.executed);return g(`Blocks`),(t,i)=>{let l=d(`p-layout-default`);return c(),r(l,{class:`blocks`},{header:f(()=>[a(o(u))]),default:f(()=>[b.value?(c(),n(h,{key:0},[y.value?(c(),r(o(s),{key:0})):(c(),r(o(m),{key:1,onDelete:o(v).refresh},null,8,[`onDelete`]))],64)):e(``,!0)]),_:1})}}});export{_ as default};
1
+ import{Gi as e,Hi as t,Ki as n,Wi as r,Xi as i,Yi as a,_a as o,d as s,ea as c,li as l,n as u,ra as d,ua as f,wt as p,x as m,zi as h}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as g}from"./usePageTitle-CbfZDSGE.js";var _=i({__name:`Blocks`,setup(i){let _=p(),v=l(_.blockDocuments.getBlockDocumentsCount),y=t(()=>v.executed&&v.response==0),b=t(()=>v.executed);return g(`Blocks`),(t,i)=>{let l=d(`p-layout-default`);return c(),r(l,{class:`blocks`},{header:f(()=>[a(o(u))]),default:f(()=>[b.value?(c(),n(h,{key:0},[y.value?(c(),r(o(s),{key:0})):(c(),r(o(m),{key:1,onDelete:o(v).refresh},null,8,[`onDelete`]))],64)):e(``,!0)]),_:1})}}});export{_ as default};
@@ -1 +1 @@
1
- import{Gt as e,Hi as t,Rt as n,Wi as r,Xi as i,Yi as a,_a as o,ea as s,fn as c,li as l,pa as u,ra as d,ua as f,wt as p}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as m}from"./usePageTitle-fM0UqDQI.js";var h=i({__name:`BlocksCatalog`,setup(i){let h=p(),g=u(null),_=t(()=>g.value?[g.value]:[]),{filter:v}=c({blockSchemas:{blockCapabilities:_}}),y=l(h.blockTypes.getBlockTypes,[v]),b=t(()=>y.response??[]);return m(`Blocks Catalog`),(t,i)=>{let c=d(`p-layout-default`);return s(),r(c,{class:`blocks-catalog`},{header:f(()=>[a(o(n))]),default:f(()=>[a(o(e),{capability:g.value,"onUpdate:capability":i[0]||=e=>g.value=e,"block-types":b.value},null,8,[`capability`,`block-types`])]),_:1})}}});export{h as default};
1
+ import{Gt as e,Hi as t,Rt as n,Wi as r,Xi as i,Yi as a,_a as o,ea as s,fn as c,li as l,pa as u,ra as d,ua as f,wt as p}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as m}from"./usePageTitle-CbfZDSGE.js";var h=i({__name:`BlocksCatalog`,setup(i){let h=p(),g=u(null),_=t(()=>g.value?[g.value]:[]),{filter:v}=c({blockSchemas:{blockCapabilities:_}}),y=l(h.blockTypes.getBlockTypes,[v]),b=t(()=>y.response??[]);return m(`Blocks Catalog`),(t,i)=>{let c=d(`p-layout-default`);return s(),r(c,{class:`blocks-catalog`},{header:f(()=>[a(o(n))]),default:f(()=>[a(o(e),{capability:g.value,"onUpdate:capability":i[0]||=e=>g.value=e,"block-types":b.value},null,8,[`capability`,`block-types`])]),_:1})}}});export{h as default};
@@ -1 +1 @@
1
- import{A as e,Fi as t,Ft as n,Gi as r,Hi as i,Qi as a,Qr as o,Wi as s,Xi as c,Yi as l,_a as u,aa as d,ea as f,fi as p,mi as m,ra as h,rn as g,ua as _,wn as v,wt as y,yi as b}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{a as x}from"./index-DpFlA-Lk.js";import{t as S}from"./usePageTitle-fM0UqDQI.js";var C=c({__name:`BlocksCatalogCreate`,setup(c){let C=y(),w=t(),T=m(`redirect`),E=p(`blockTypeSlug`),D=i(()=>E.value?[E.value]:null),O=o(C.blockTypes.getBlockTypeBySlug,D),k=i(()=>O.response),A=i(()=>k.value?[k.value.id]:null),j=o(C.blockSchemas.getBlockSchemaForBlockType,A),M=i(()=>j.response);function N(e){C.blockDocuments.createBlockDocument(e).then(({id:e})=>F(e)).catch(e=>{b(`Failed to create block`,`error`),console.error(e)})}function P(){w.back()}function F(e){if(b(`Block created successfully`,`success`),T.value){let e=w.resolve(v(T.value));w.push(e)}else w.push(x.block(e))}let I=i(()=>k.value?`Create ${k.value.name} Block`:`Create Block`);return S(I),(t,i)=>{let o=h(`p-layout-default`);return k.value?(f(),s(o,{key:0,class:`blocks-catalog-create`},{header:_(()=>[l(u(n),{"block-type":k.value},null,8,[`block-type`])]),default:_(()=>[k.value?(f(),s(u(g),{key:0,"block-type":k.value},{default:_(()=>[M.value?(f(),s(u(e),a({key:M.value.id,"block-schema":M.value},d({submit:N,cancel:P})),null,16,[`block-schema`])):r(``,!0)]),_:1},8,[`block-type`])):r(``,!0)]),_:1})):r(``,!0)}}});export{C as default};
1
+ import{A as e,Fi as t,Ft as n,Gi as r,Hi as i,Qi as a,Qr as o,Wi as s,Xi as c,Yi as l,_a as u,aa as d,ea as f,fi as p,mi as m,ra as h,rn as g,ua as _,wn as v,wt as y,yi as b}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{a as x}from"./index-FQOJ0Dim.js";import{t as S}from"./usePageTitle-CbfZDSGE.js";var C=c({__name:`BlocksCatalogCreate`,setup(c){let C=y(),w=t(),T=m(`redirect`),E=p(`blockTypeSlug`),D=i(()=>E.value?[E.value]:null),O=o(C.blockTypes.getBlockTypeBySlug,D),k=i(()=>O.response),A=i(()=>k.value?[k.value.id]:null),j=o(C.blockSchemas.getBlockSchemaForBlockType,A),M=i(()=>j.response);function N(e){C.blockDocuments.createBlockDocument(e).then(({id:e})=>F(e)).catch(e=>{b(`Failed to create block`,`error`),console.error(e)})}function P(){w.back()}function F(e){if(b(`Block created successfully`,`success`),T.value){let e=w.resolve(v(T.value));w.push(e)}else w.push(x.block(e))}let I=i(()=>k.value?`Create ${k.value.name} Block`:`Create Block`);return S(I),(t,i)=>{let o=h(`p-layout-default`);return k.value?(f(),s(o,{key:0,class:`blocks-catalog-create`},{header:_(()=>[l(u(n),{"block-type":k.value},null,8,[`block-type`])]),default:_(()=>[k.value?(f(),s(u(g),{key:0,"block-type":k.value},{default:_(()=>[M.value?(f(),s(u(e),a({key:M.value.id,"block-schema":M.value},d({submit:N,cancel:P})),null,16,[`block-schema`])):r(``,!0)]),_:1},8,[`block-type`])):r(``,!0)]),_:1})):r(``,!0)}}});export{C as default};
@@ -1 +1 @@
1
- import{B as e,Gi as t,Hi as n,P as r,Qr as i,Wi as a,Xi as o,Yi as s,_a as c,ea as l,fi as u,ra as d,ua as f,wt as p}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{t as m}from"./usePageTitle-fM0UqDQI.js";var h=o({__name:`BlocksCatalogView`,setup(o){let h=p(),g=u(`blockTypeSlug`),_=n(()=>g.value?[g.value]:null),v=i(h.blockTypes.getBlockTypeBySlug,_),y=n(()=>v.response),b=n(()=>y.value?`Block Type: ${y.value.name}`:null);return m(b),(n,i)=>{let o=d(`p-layout-default`);return y.value?(l(),a(o,{key:0,class:`blocks-catalog-view`},{header:f(()=>[s(c(r),{"block-type":y.value},null,8,[`block-type`])]),default:f(()=>[s(c(e),{"block-type":y.value},null,8,[`block-type`])]),_:1})):t(``,!0)}}});export{h as default};
1
+ import{B as e,Gi as t,Hi as n,P as r,Qr as i,Wi as a,Xi as o,Yi as s,_a as c,ea as l,fi as u,ra as d,ua as f,wt as p}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{t as m}from"./usePageTitle-CbfZDSGE.js";var h=o({__name:`BlocksCatalogView`,setup(o){let h=p(),g=u(`blockTypeSlug`),_=n(()=>g.value?[g.value]:null),v=i(h.blockTypes.getBlockTypeBySlug,_),y=n(()=>v.response),b=n(()=>y.value?`Block Type: ${y.value.name}`:null);return m(b),(n,i)=>{let o=d(`p-layout-default`);return y.value?(l(),a(o,{key:0,class:`blocks-catalog-view`},{header:f(()=>[s(c(r),{"block-type":y.value},null,8,[`block-type`])]),default:f(()=>[s(c(e),{"block-type":y.value},null,8,[`block-type`])]),_:1})):t(``,!0)}}});export{h as default};
@@ -1 +1 @@
1
- import{Dr as e,En as t,Fi as n,Gi as r,Hi as i,Ur as a,Wi as o,Xi as s,Yi as c,_a as l,_i as u,da as d,ea as f,fi as p,li as m,mi as h,qn as g,ra as _,ua as v,wt as y}from"./index-BD_kIOMy-DN2IPMog.js";import"./prefect-ui-library-CQXqbi-H.js";import{a as b}from"./index-DpFlA-Lk.js";import{t as x}from"./usePageTitle-fM0UqDQI.js";var S=s({__name:`ConcurrencyLimit`,setup(s){let S=y(),C=p(`concurrencyLimitId`),w=n(),T=i(()=>[{label:`Details`,hidden:u.xl},{label:`Active Task Runs`}]),E=h(`tab`,`Details`),{tabs:D}=g(T,E),O=m(S.concurrencyLimits.getConcurrencyLimit,[C.value],{interval:3e5}),k=i(()=>O.response);function A(){w.push(b.concurrencyLimits())}let j=i(()=>k.value?`Concurrency Limit: ${k.value.tag}`:`Concurrency Limit`);return x(j),(n,i)=>{let s=_(`p-tabs`),u=_(`p-layout-well`);return f(),o(u,{class:`concurrencyLimit`},{header:v(()=>[k.value?(f(),o(l(t),{key:0,"concurrency-limit":k.value,onDelete:A},null,8,[`concurrency-limit`])):r(``,!0)]),well:v(()=>[k.value?(f(),o(l(e),{key:0,alternate:``,"concurrency-limit":k.value},null,8,[`concurrency-limit`])):r(``,!0)]),default:v(()=>[c(s,{selected:l(E),"onUpdate:selected":i[0]||=e=>d(E)?E.value=e:null,tabs:l(D)},{details:v(()=>[k.value?(f(),o(l(e),{key:0,"concurrency-limit":k.value},null,8,[`concurrency-limit`])):r(``,!0)]),"active-task-runs":v(()=>[k.value?.activeSlots?(f(),o(l(a),{key:0,"active-slots":k.value.activeSlots},null,8,[`active-slots`])):r(``,!0)]),_:1},8,[`selected`,`tabs`])]),_:1})}}});export{S as default};
1
+ import{Dr as e,En as t,Fi as n,Gi as r,Hi as i,Ur as a,Wi as o,Xi as s,Yi as c,_a as l,_i as u,da as d,ea as f,fi as p,li as m,mi as h,qn as g,ra as _,ua as v,wt as y}from"./index-BD_kIOMy-CGdO4E_O.js";import"./prefect-ui-library-B1153s9p.js";import{a as b}from"./index-FQOJ0Dim.js";import{t as x}from"./usePageTitle-CbfZDSGE.js";var S=s({__name:`ConcurrencyLimit`,setup(s){let S=y(),C=p(`concurrencyLimitId`),w=n(),T=i(()=>[{label:`Details`,hidden:u.xl},{label:`Active Task Runs`}]),E=h(`tab`,`Details`),{tabs:D}=g(T,E),O=m(S.concurrencyLimits.getConcurrencyLimit,[C.value],{interval:3e5}),k=i(()=>O.response);function A(){w.push(b.concurrencyLimits())}let j=i(()=>k.value?`Concurrency Limit: ${k.value.tag}`:`Concurrency Limit`);return x(j),(n,i)=>{let s=_(`p-tabs`),u=_(`p-layout-well`);return f(),o(u,{class:`concurrencyLimit`},{header:v(()=>[k.value?(f(),o(l(t),{key:0,"concurrency-limit":k.value,onDelete:A},null,8,[`concurrency-limit`])):r(``,!0)]),well:v(()=>[k.value?(f(),o(l(e),{key:0,alternate:``,"concurrency-limit":k.value},null,8,[`concurrency-limit`])):r(``,!0)]),default:v(()=>[c(s,{selected:l(E),"onUpdate:selected":i[0]||=e=>d(E)?E.value=e:null,tabs:l(D)},{details:v(()=>[k.value?(f(),o(l(e),{key:0,"concurrency-limit":k.value},null,8,[`concurrency-limit`])):r(``,!0)]),"active-task-runs":v(()=>[k.value?.activeSlots?(f(),o(l(a),{key:0,"active-slots":k.value.activeSlots},null,8,[`active-slots`])):r(``,!0)]),_:1},8,[`selected`,`tabs`])]),_:1})}}});export{S as default};