abstra 3.23.4__py3-none-any.whl → 3.23.6__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 (212) hide show
  1. {abstra-3.23.4.dist-info → abstra-3.23.6.dist-info}/METADATA +1 -1
  2. {abstra-3.23.4.dist-info → abstra-3.23.6.dist-info}/RECORD +168 -168
  3. abstra_internals/contracts_generated.py +660 -652
  4. abstra_internals/controllers/workflows.py +33 -0
  5. abstra_internals/entities/forms/widgets/file_upload.py +1 -1
  6. abstra_internals/interface/sdk/forms/deprecated/widgets/file_utils.py +1 -1
  7. abstra_internals/server/routes/mcp.py +2 -1
  8. abstra_statics/dist/assets/{AbstraButton.vue_vue_type_script_setup_true_lang.86a761e5.js → AbstraButton.vue_vue_type_script_setup_true_lang.5ac4912e.js} +2 -2
  9. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.9fc63b70.js +2 -0
  10. abstra_statics/dist/assets/{ApiKeys.e132de0a.js → ApiKeys.05b5ab9a.js} +2 -2
  11. abstra_statics/dist/assets/App.c04b86c0.js +2 -0
  12. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.4abdaaf3.js +2 -0
  13. abstra_statics/dist/assets/{BaseLayout.d41dae76.js → BaseLayout.d7e7e9fe.js} +2 -2
  14. abstra_statics/dist/assets/Billing.57e2ca6b.js +2 -0
  15. abstra_statics/dist/assets/{Breadcrumb.00a432b7.js → Breadcrumb.6179cdce.js} +2 -2
  16. abstra_statics/dist/assets/{Builds.329c2faa.js → Builds.43df5473.js} +2 -2
  17. abstra_statics/dist/assets/{Card.d8993609.js → Card.bf61638b.js} +2 -2
  18. abstra_statics/dist/assets/{CircularLoading.e0819e0b.js → CircularLoading.e6d19d98.js} +2 -2
  19. abstra_statics/dist/assets/CloseCircleOutlined.5183baf0.js +2 -0
  20. abstra_statics/dist/assets/{ConnectorsView.4c23ea88.js → ConnectorsView.c29b5831.js} +2 -2
  21. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.c7982f0e.js +2 -0
  22. abstra_statics/dist/assets/ContentLayout.d3e84c3e.js +2 -0
  23. abstra_statics/dist/assets/{CrudView.01e6ed04.js → CrudView.bbc83763.js} +2 -2
  24. abstra_statics/dist/assets/{DocsButton.vue_vue_type_script_setup_true_lang.3efd2188.js → DocsButton.vue_vue_type_script_setup_true_lang.0796f440.js} +2 -2
  25. abstra_statics/dist/assets/{EditorLogin.b9477432.js → EditorLogin.d00bf0ff.js} +2 -2
  26. abstra_statics/dist/assets/{EditorsView.ec2e0465.js → EditorsView.99ba9c06.js} +2 -2
  27. abstra_statics/dist/assets/EnvVars.3223d4dd.js +2 -0
  28. abstra_statics/dist/assets/{Error.75789fcd.js → Error.73539d40.js} +2 -2
  29. abstra_statics/dist/assets/{ExclamationCircleOutlined.443f1727.js → ExclamationCircleOutlined.5ed9d71f.js} +2 -2
  30. abstra_statics/dist/assets/{Files.598e1924.js → Files.7358e813.js} +2 -2
  31. abstra_statics/dist/assets/Form.7b7f61dd.js +2 -0
  32. abstra_statics/dist/assets/{FormRunner.22c166b3.js → FormRunner.617659c3.js} +2 -2
  33. abstra_statics/dist/assets/Home.50e3cb44.js +2 -0
  34. abstra_statics/dist/assets/Home.e051b43c.js +2 -0
  35. abstra_statics/dist/assets/{Live.47f1d55b.js → Live.50f8f3ee.js} +2 -2
  36. abstra_statics/dist/assets/LoadingContainer.af0e1ba2.js +2 -0
  37. abstra_statics/dist/assets/{LoadingOutlined.688afd1b.js → LoadingOutlined.6ed83a08.js} +2 -2
  38. abstra_statics/dist/assets/{Login.d4ed4415.js → Login.35337e9b.js} +2 -2
  39. abstra_statics/dist/assets/Login.99bd4c40.js +2 -0
  40. abstra_statics/dist/assets/{Login.vue_vue_type_script_setup_true_lang.7a0b5cb9.js → Login.vue_vue_type_script_setup_true_lang.d3c2d47f.js} +2 -2
  41. abstra_statics/dist/assets/Logo.e3649776.js +2 -0
  42. abstra_statics/dist/assets/{Logs.93696d9a.js → Logs.412b505f.js} +2 -2
  43. abstra_statics/dist/assets/{LogsController.051e4c97.js → LogsController.770e0220.js} +2 -2
  44. abstra_statics/dist/assets/{Main.e6271958.js → Main.738990b8.js} +2 -2
  45. abstra_statics/dist/assets/{MockForm.60f0a0c9.js → MockForm.4ead504b.js} +2 -2
  46. abstra_statics/dist/assets/Navbar.50988594.js +2 -0
  47. abstra_statics/dist/assets/NewEditor.13d26823.js +8 -0
  48. abstra_statics/dist/assets/{NewEditor.b7bcb815.css → NewEditor.8f32e814.css} +1 -1
  49. abstra_statics/dist/assets/OidcLoginCallback.4982d0fb.js +2 -0
  50. abstra_statics/dist/assets/OidcLogoutCallback.717d758c.js +2 -0
  51. abstra_statics/dist/assets/{OmniChat.10d00525.css → OmniChat.7660057c.css} +1 -1
  52. abstra_statics/dist/assets/OmniChat.cb7c5f10.js +6 -0
  53. abstra_statics/dist/assets/{OnboardingView.7b28e3d9.js → OnboardingView.611e451f.js} +2 -2
  54. abstra_statics/dist/assets/{Organization.4d764c53.js → Organization.16168e9f.js} +2 -2
  55. abstra_statics/dist/assets/{Organizations.99154f7f.js → Organizations.68ef6411.js} +2 -2
  56. abstra_statics/dist/assets/{PhArrowCounterClockwise.vue.731eb94b.js → PhArrowCounterClockwise.vue.3f439d6d.js} +2 -2
  57. abstra_statics/dist/assets/{PhArrowSquareOut.vue.da6ece6b.js → PhArrowSquareOut.vue.73431843.js} +2 -2
  58. abstra_statics/dist/assets/{PhBookBookmark.vue.129658c0.js → PhBookBookmark.vue.f5df4397.js} +2 -2
  59. abstra_statics/dist/assets/{PhChats.vue.3eae87f1.js → PhChats.vue.20c511b5.js} +2 -2
  60. abstra_statics/dist/assets/{PhClockCounterClockwise.vue.83a88fd2.js → PhClockCounterClockwise.vue.21ab2795.js} +2 -2
  61. abstra_statics/dist/assets/{PhCopy.vue.889171d4.js → PhCopy.vue.f0a6fc0c.js} +2 -2
  62. abstra_statics/dist/assets/PhCopySimple.vue.f585b051.js +2 -0
  63. abstra_statics/dist/assets/{PhCube.vue.c868f288.js → PhCube.vue.c7b0863a.js} +2 -2
  64. abstra_statics/dist/assets/PhDotsThreeVertical.vue.c1812ea8.js +2 -0
  65. abstra_statics/dist/assets/PhDownloadSimple.vue.24466182.js +2 -0
  66. abstra_statics/dist/assets/{PhFolderPlus.vue.9b394b08.js → PhFolderPlus.vue.0cd449af.js} +2 -2
  67. abstra_statics/dist/assets/{PhGear.vue.bd7172cf.js → PhGear.vue.24fe28a2.js} +2 -2
  68. abstra_statics/dist/assets/{PhKey.vue.e1681937.js → PhKey.vue.39ca7afb.js} +2 -2
  69. abstra_statics/dist/assets/{PhPencil.vue.6abcb050.js → PhPencil.vue.a86916ee.js} +2 -2
  70. abstra_statics/dist/assets/{PhPencilSimple.vue.9dc4c516.js → PhPencilSimple.vue.80a4282f.js} +2 -2
  71. abstra_statics/dist/assets/{PhPencilSimpleLine.vue.516b8dd0.js → PhPencilSimpleLine.vue.a1883531.js} +2 -2
  72. abstra_statics/dist/assets/{PhRocket.vue.6310b8e2.js → PhRocket.vue.acacaa11.js} +2 -2
  73. abstra_statics/dist/assets/{PhSignOut.vue.33352908.js → PhSignOut.vue.3cb7cd40.js} +2 -2
  74. abstra_statics/dist/assets/{PhSparkle.vue.aaea2035.js → PhSparkle.vue.8e334c6d.js} +2 -2
  75. abstra_statics/dist/assets/{PhUserList.vue.66442c99.js → PhUserList.vue.38f46bf2.js} +2 -2
  76. abstra_statics/dist/assets/{PhUsersThree.vue.dd3dd5e5.js → PhUsersThree.vue.f3486eeb.js} +2 -2
  77. abstra_statics/dist/assets/{PhWebhooksLogo.vue.3159b8c2.js → PhWebhooksLogo.vue.3f80aef6.js} +2 -2
  78. abstra_statics/dist/assets/{PlayerConfigProvider.608f994d.js → PlayerConfigProvider.0ec5f598.js} +2 -2
  79. abstra_statics/dist/assets/{PlayerNavbar.db2b0cc0.js → PlayerNavbar.24544fa8.js} +2 -2
  80. abstra_statics/dist/assets/{PlayerNavbar.c456a4e0.css → PlayerNavbar.77209eae.css} +1 -1
  81. abstra_statics/dist/assets/{Project.b5f0a540.js → Project.997d68f7.js} +2 -2
  82. abstra_statics/dist/assets/ProjectLogin.311c2cd8.js +2 -0
  83. abstra_statics/dist/assets/{ProjectSettings.c69dc60b.js → ProjectSettings.17a585e6.js} +2 -2
  84. abstra_statics/dist/assets/{ProjectsView.7ea6a476.js → ProjectsView.3f2dabb4.js} +2 -2
  85. abstra_statics/dist/assets/{SaveButton.45360af6.js → SaveButton.57d5b00a.js} +2 -2
  86. abstra_statics/dist/assets/{Sidebar.5b02858f.js → Sidebar.3bc6e6c7.js} +2 -2
  87. abstra_statics/dist/assets/{Sql.f80e393a.js → Sql.c74977b7.js} +2 -2
  88. abstra_statics/dist/assets/Steps.79eea5ae.js +2 -0
  89. abstra_statics/dist/assets/{TableEditor.9f5307b3.js → TableEditor.791324c3.js} +2 -2
  90. abstra_statics/dist/assets/Tables.5cfd01db.js +2 -0
  91. abstra_statics/dist/assets/{TablesDiagram.174bf25c.js → TablesDiagram.d27523e8.js} +2 -2
  92. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.82db1c2e.js +2 -0
  93. abstra_statics/dist/assets/{Tasks.6bf6e3ab.js → Tasks.9f66e5d4.js} +2 -2
  94. abstra_statics/dist/assets/{UploadOutlined.17748ead.js → UploadOutlined.1e2f50aa.js} +2 -2
  95. abstra_statics/dist/assets/{View.fc004ade.js → View.2b0dde2c.js} +2 -2
  96. abstra_statics/dist/assets/{View.vue_vue_type_script_setup_true_lang.b156d2b4.js → View.vue_vue_type_script_setup_true_lang.34afb660.js} +2 -2
  97. abstra_statics/dist/assets/{Watermark.3f4c77a5.js → Watermark.047823a2.js} +2 -2
  98. abstra_statics/dist/assets/{WebEditor.1b4c1d6e.js → WebEditor.cdb4d362.js} +2 -2
  99. abstra_statics/dist/assets/WidgetPreview.73776456.js +2 -0
  100. abstra_statics/dist/assets/{ant-design.4dde64bb.js → ant-design.dc326d34.js} +2 -2
  101. abstra_statics/dist/assets/{apiKey.2481730b.js → apiKey.d428e427.js} +2 -2
  102. abstra_statics/dist/assets/asyncComputed.decbe125.js +2 -0
  103. abstra_statics/dist/assets/{build.5e49b52b.js → build.36ea33ce.js} +2 -2
  104. abstra_statics/dist/assets/colorHelpers.f396fe13.js +2 -0
  105. abstra_statics/dist/assets/{console.d4555e1e.js → console.d7a64eef.js} +4 -4
  106. abstra_statics/dist/assets/constants.54f5dbb0.js +2 -0
  107. abstra_statics/dist/assets/{cssMode.94fba5f4.js → cssMode.a2f505eb.js} +2 -2
  108. abstra_statics/dist/assets/datetime.27912eb6.js +2 -0
  109. abstra_statics/dist/assets/dayjs.9a51c922.js +2 -0
  110. abstra_statics/dist/assets/{editor.68f10cac.js → editor.ac3f0982.js} +2 -2
  111. abstra_statics/dist/assets/editor.main.39fc3e9d.js +2 -0
  112. abstra_statics/dist/assets/fetch.9946ecfe.js +2 -0
  113. abstra_statics/dist/assets/{files.2d03f0a6.js → files.b6e46123.js} +2 -2
  114. abstra_statics/dist/assets/{folder.c0b92096.js → folder.8e3a1b23.js} +2 -2
  115. abstra_statics/dist/assets/{freemarker2.a8ae0e5a.js → freemarker2.48cf9094.js} +2 -2
  116. abstra_statics/dist/assets/{handlebars.3529fc9d.js → handlebars.b7185455.js} +3 -3
  117. abstra_statics/dist/assets/{html.193c548a.js → html.9eecf18a.js} +2 -2
  118. abstra_statics/dist/assets/{htmlMode.5669aea7.js → htmlMode.1b022721.js} +2 -2
  119. abstra_statics/dist/assets/{index.c3ea2813.js → index.25898d95.js} +2 -2
  120. abstra_statics/dist/assets/{index.590aa576.js → index.2d59a444.js} +3 -3
  121. abstra_statics/dist/assets/{index.2f9d5f42.js → index.2f04e3f6.js} +5 -5
  122. abstra_statics/dist/assets/{index.17c9890b.js → index.36aedb48.js} +2 -2
  123. abstra_statics/dist/assets/{index.9d0d77b2.js → index.3a2ab2d2.js} +2 -2
  124. abstra_statics/dist/assets/{index.17c59820.js → index.726d6111.js} +2 -2
  125. abstra_statics/dist/assets/{index.ee7c5f13.js → index.aca944a5.js} +2 -2
  126. abstra_statics/dist/assets/{index.341d2d78.js → index.b0181193.js} +2 -2
  127. abstra_statics/dist/assets/{index.84a81069.js → index.bbe55f1a.js} +2 -2
  128. abstra_statics/dist/assets/index.e21caff3.js +2 -0
  129. abstra_statics/dist/assets/{javascript.ff046b2c.js → javascript.84f7229f.js} +2 -2
  130. abstra_statics/dist/assets/{jsonMode.c051f145.js → jsonMode.1d488dc1.js} +2 -2
  131. abstra_statics/dist/assets/{jwt-decode.esm.f18c394f.js → jwt-decode.esm.28320b05.js} +8 -8
  132. abstra_statics/dist/assets/linters.ed377d41.js +2 -0
  133. abstra_statics/dist/assets/{liquid.98fcb8a3.js → liquid.5b33b8cc.js} +3 -3
  134. abstra_statics/dist/assets/member.73d141d7.js +2 -0
  135. abstra_statics/dist/assets/{metadata.218ef86b.js → metadata.8c8d4b20.js} +2 -2
  136. abstra_statics/dist/assets/{omniChatStore.405dd08d.js → omniChatStore.b7128bc4.js} +2 -2
  137. abstra_statics/dist/assets/{organization.c20116a5.js → organization.7d79a3c7.js} +2 -2
  138. abstra_statics/dist/assets/player.027b4a53.js +2 -0
  139. abstra_statics/dist/assets/{plotly.min.b26aecc2.js → plotly.min.bc8ddded.js} +2 -2
  140. abstra_statics/dist/assets/polling.0bb90faf.js +2 -0
  141. abstra_statics/dist/assets/{project.d26f784f.js → project.c76d644e.js} +2 -2
  142. abstra_statics/dist/assets/{python.6f801519.js → python.1a326b7a.js} +3 -3
  143. abstra_statics/dist/assets/{razor.80957baf.js → razor.3d5f09e6.js} +2 -2
  144. abstra_statics/dist/assets/{record.f0e74f25.js → record.1b6df81e.js} +2 -2
  145. abstra_statics/dist/assets/redirect.d8affe75.js +2 -0
  146. abstra_statics/dist/assets/{repository.75210ebd.js → repository.37d2927a.js} +2 -2
  147. abstra_statics/dist/assets/{repository.d2158c5f.js → repository.cc27afed.js} +2 -2
  148. abstra_statics/dist/assets/{router.9924fce0.js → router.858e1af2.js} +3 -3
  149. abstra_statics/dist/assets/string.4c218fd1.js +2 -0
  150. abstra_statics/dist/assets/{tables.4cd227ff.js → tables.337a9b65.js} +2 -2
  151. abstra_statics/dist/assets/{tasksController.f0830c77.js → tasksController.a06fd7d3.js} +2 -2
  152. abstra_statics/dist/assets/{toggleHighContrast.d8b2c912.js → toggleHighContrast.62d05446.js} +7 -7
  153. abstra_statics/dist/assets/{tsMode.7de6acfd.js → tsMode.cacd2597.js} +2 -2
  154. abstra_statics/dist/assets/{typescript.78bce6b9.js → typescript.a2a6a629.js} +3 -3
  155. abstra_statics/dist/assets/{url.f54a173c.js → url.e7d14364.js} +2 -2
  156. abstra_statics/dist/assets/userStore.c0562f9d.js +2 -0
  157. abstra_statics/dist/assets/uuid.fe529613.js +2 -0
  158. abstra_statics/dist/assets/{vue-flow-background.57038ee0.js → vue-flow-background.d047c675.js} +2 -2
  159. abstra_statics/dist/assets/{vue-quill.esm-bundler.130627ea.js → vue-quill.esm-bundler.772b3404.js} +2 -2
  160. abstra_statics/dist/assets/workspaceStore.20104d6a.js +2 -0
  161. abstra_statics/dist/assets/{xml.46fa5b06.js → xml.e6a1736d.js} +3 -3
  162. abstra_statics/dist/assets/{yaml.775c20d7.js → yaml.47c8c844.js} +3 -3
  163. abstra_statics/dist/console.html +15 -15
  164. abstra_statics/dist/editor.html +11 -11
  165. abstra_statics/dist/player.html +9 -9
  166. abstra_statics/dist/assets/AbstraLogo.vue_vue_type_script_setup_true_lang.d02ffa6d.js +0 -2
  167. abstra_statics/dist/assets/App.9aa34c4e.js +0 -2
  168. abstra_statics/dist/assets/App.vue_vue_type_style_index_0_lang.9dc1f7e7.js +0 -2
  169. abstra_statics/dist/assets/Billing.04224d7b.js +0 -2
  170. abstra_statics/dist/assets/CloseCircleOutlined.ae1e7621.js +0 -2
  171. abstra_statics/dist/assets/ConsoleOmniChat.vue_vue_type_script_setup_true_lang.f2c53fd6.js +0 -2
  172. abstra_statics/dist/assets/ContentLayout.9774740e.js +0 -2
  173. abstra_statics/dist/assets/EnvVars.72e8a906.js +0 -2
  174. abstra_statics/dist/assets/Form.dcd328f9.js +0 -2
  175. abstra_statics/dist/assets/Home.29af870e.js +0 -2
  176. abstra_statics/dist/assets/Home.5a193adf.js +0 -2
  177. abstra_statics/dist/assets/LoadingContainer.4d7a6e83.js +0 -2
  178. abstra_statics/dist/assets/Login.543da72d.js +0 -2
  179. abstra_statics/dist/assets/Logo.a483cebb.js +0 -2
  180. abstra_statics/dist/assets/Navbar.6beb23a2.js +0 -2
  181. abstra_statics/dist/assets/NewEditor.a3f0cf6f.js +0 -8
  182. abstra_statics/dist/assets/OidcLoginCallback.5d621b1e.js +0 -2
  183. abstra_statics/dist/assets/OidcLogoutCallback.726fd77b.js +0 -2
  184. abstra_statics/dist/assets/OmniChat.65218812.js +0 -6
  185. abstra_statics/dist/assets/PhCopySimple.vue.fa1be768.js +0 -2
  186. abstra_statics/dist/assets/PhDotsThreeVertical.vue.82ed05fc.js +0 -2
  187. abstra_statics/dist/assets/PhDownloadSimple.vue.32b4f321.js +0 -2
  188. abstra_statics/dist/assets/ProjectLogin.ca80209f.js +0 -2
  189. abstra_statics/dist/assets/Steps.2a44bd5a.js +0 -2
  190. abstra_statics/dist/assets/Tables.c8410571.js +0 -2
  191. abstra_statics/dist/assets/TablesTabs.vue_vue_type_script_setup_true_lang.d32d5407.js +0 -2
  192. abstra_statics/dist/assets/WidgetPreview.b3a57be6.js +0 -2
  193. abstra_statics/dist/assets/asyncComputed.24fa122c.js +0 -2
  194. abstra_statics/dist/assets/colorHelpers.a41e45a3.js +0 -2
  195. abstra_statics/dist/assets/constants.4f491067.js +0 -2
  196. abstra_statics/dist/assets/datetime.215ab936.js +0 -2
  197. abstra_statics/dist/assets/dayjs.cad6407e.js +0 -2
  198. abstra_statics/dist/assets/editor.main.d5278805.js +0 -2
  199. abstra_statics/dist/assets/fetch.b229b6c0.js +0 -2
  200. abstra_statics/dist/assets/index.fd173cc0.js +0 -2
  201. abstra_statics/dist/assets/linters.e4e7bac9.js +0 -2
  202. abstra_statics/dist/assets/member.d0ead44d.js +0 -2
  203. abstra_statics/dist/assets/player.30fb0733.js +0 -2
  204. abstra_statics/dist/assets/polling.775bd07d.js +0 -2
  205. abstra_statics/dist/assets/redirect.47662fd9.js +0 -2
  206. abstra_statics/dist/assets/string.c4805024.js +0 -2
  207. abstra_statics/dist/assets/userStore.1345e655.js +0 -2
  208. abstra_statics/dist/assets/uuid.2e8600ec.js +0 -2
  209. abstra_statics/dist/assets/workspaceStore.29138ee5.js +0 -2
  210. {abstra-3.23.4.dist-info → abstra-3.23.6.dist-info}/WHEEL +0 -0
  211. {abstra-3.23.4.dist-info → abstra-3.23.6.dist-info}/entry_points.txt +0 -0
  212. {abstra-3.23.4.dist-info → abstra-3.23.6.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,2 @@
1
+ var F=Object.defineProperty;var k=(e,n,t)=>n in e?F(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var s=(e,n,t)=>(k(e,typeof n!="symbol"?n+"":n,t),t);import{L as o}from"./jwt-decode.esm.28320b05.js";import{a as E}from"./asyncComputed.decbe125.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d52fb323-4cf9-4591-8630-c62ce43e0e88",e._sentryDebugIdIdentifier="sentry-dbid-d52fb323-4cf9-4591-8630-c62ce43e0e88")}catch{}})();const L=o.string(),j=o.array(L),N=o.number(),P=o.string().datetime({local:!0}),_=o.enum(["file","directory"]),w=o.string(),W=o.array(w),G=o.array(W).default([]),b=o.object({pathParts:j,size:N,lastModified:P,type:_,children:G.optional()}),M=o.boolean(),x=o.boolean(),O=o.boolean(),v=o.boolean(),q=o.boolean(),U=o.boolean();o.object({PROJECT_LIVE:M.optional(),ALLOW_RELEASE:x.optional(),CONNECTORS_CONSOLE:O.optional(),DUPLICATE_PROJECTS:v.optional(),WEB_EDITOR:q.optional(),LANGCHAIN_SMART_CHAT:U.optional()});const H=o.string(),z=o.string(),B=o.string(),$=o.string(),K=o.string();o.object({plan:H.optional(),expires:z.optional(),message:B.optional(),messageLink:$.optional(),messageCTA:K.optional()});const Q=o.string(),g=o.string(),A=o.string(),X=o.string(),Y=o.string(),Z=o.object({id:Q,name:g,description:A.optional(),projectId:X,createdAt:Y}),oo=o.string(),no=o.string(),to=o.string(),eo=o.string(),so=o.string(),ao=o.enum(["true","false"]),io=o.enum(["true","false"]),mo=o.enum(["true","false"]),co=o.string().regex(new RegExp("^[0-9]+m$")),ro=o.string().regex(new RegExp("^[0-9]+m$")),lo=o.string().regex(new RegExp("^[0-9]+Mi$")),So=o.string().regex(new RegExp("^[0-9]+Mi$")),Ao=o.string().regex(new RegExp("^[0-9]+$")),Co=o.number(),bo=o.string().regex(new RegExp("^[0-9]+$")),go=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),ho=o.enum(["3.9","3.10","3.11","3.12"]),uo=o.string(),po=o.string(),Vo=o.object({watermarkEnabled:ao.optional(),seleniumInstanceEnabled:io.optional(),notificationsEnabled:mo.optional(),requestsCPU:co.optional(),limitsCPU:ro.optional(),requestsMemory:lo.optional(),limitsMemory:So.optional(),minReplicas:Ao.optional(),computeUnits:Co.optional(),timeoutSeconds:bo.optional(),workerType:go.optional(),pythonVersion:ho.optional(),workerNumber:uo.optional(),baseDockerfile:po.optional()});o.object({id:oo,folderId:no,name:to,subdomain:eo,organizationId:so,deploymentResources:Vo.optional()});const fo=o.string(),Jo=o.string(),Do=o.string();o.object({name:fo,connectionType:Jo,projectId:Do});const Io=o.string(),yo=o.string(),h=o.array(yo),u=o.string(),To=o.string();o.object({id:Io,emailPatterns:h,projectId:u,createdAt:To});const Ro=o.string(),Fo=o.string(),ko=o.string(),Eo=o.string(),Lo=o.object({key:Ro,label:Fo,description:ko,logoUrl:Eo}),jo=o.literal("tokens"),No=o.string(),Po=o.string(),_o=o.string(),wo=o.string(),Wo=o.enum(["small-string","large-text","file"]),Go=o.number(),Mo=o.number(),xo=o.object({type:Wo,maxSize:Go.optional(),minSize:Mo.optional()}),Oo=o.object({key:No,label:Po,description:_o,instructions:wo.optional(),input:xo}),p=o.array(Oo),vo=p,qo=o.object({type:jo,tokens:vo}),Uo=o.literal("oauth2"),Ho=o.string(),zo=o.string(),Bo=o.string(),$o=o.string(),Ko=o.object({key:zo,label:Bo,description:$o}),Qo=o.array(Ko),Xo=o.object({type:Uo,authorizationUrl:Ho,scopes:Qo}),Yo=o.literal("manual"),Zo=o.object({type:Yo}),on=o.literal("ecdsa"),nn=p,tn=o.object({type:on,params:nn}),en=o.union([qo,Xo,Zo,tn]),sn=o.string(),an=o.string(),mn=o.string(),cn=o.record(o.any()),rn=o.record(o.any()),ln=o.object({key:sn,label:an,description:mn,payloadSchema:cn,returnSchema:rn}),Sn=o.array(ln),An=o.string(),Cn=o.string(),bn=o.record(o.any()),gn=o.object({name:An,description:Cn,payloadSchema:bn.optional()}),hn=o.array(gn);o.object({metadata:Lo,auth:en,actions:Sn,triggers:hn});const un=o.enum(["bigint","int8","bigserial","serial8","bit","bit varying","varbit","boolean","bool","box","bytea","character","char","character varying","varchar","cidr","circle","date","double precision","float8","inet","integer","int","int4","interval","json","jsonb","line","lseg","macaddr","money","numeric","decimal","path","pg_lsn","point","polygon","real","float4","smallint","int2","smallserial","serial2","serial","serial4","text","time","time with time zone","timetz","timestamp","timestamp with time zone","timestamptz","tsquery","tsvector","txid_snapshot","uuid","xml"]),pn=o.string(),m=o.string().email(),Vn=o.string(),C=o.array(Vn),dn=o.string(),fn=o.string(),Jn=o.object({id:pn,email:m,roles:C,projectId:dn,createdAt:fn}),Dn=o.string().uuid(),In=o.string(),yn=o.string().uuid(),Tn=o.boolean(),Rn=o.string(),Fn=un,kn=o.boolean(),En=o.boolean(),Ln=o.string(),jn=o.string(),Nn=o.object({columnId:jn}),Pn=o.object({id:yn,primaryKey:Tn,name:Rn,type:Fn,unique:kn.optional(),nullable:En.optional(),default:Ln.optional(),foreignKey:Nn.optional()}),_n=o.array(Pn),wn=o.record(o.any()),Wn=o.array(wn),Gn=o.object({id:Dn,name:In,columns:_n,data:Wn}),Mn=o.array(Gn);o.object({tables:Mn});const V=o.string(),d=o.string(),xn=o.boolean(),On=o.boolean(),vn=o.boolean(),qn=o.boolean(),Un=o.boolean(),Hn=o.boolean(),f=o.object({PROJECT_LIVE:xn,ALLOW_RELEASE:On,CONNECTORS_CONSOLE:vn,DUPLICATE_PROJECTS:qn,WEB_EDITOR:Un.optional(),LANGCHAIN_SMART_CHAT:Hn.optional()}),zn=o.string(),Bn=o.string(),$n=o.string(),Kn=o.string(),Qn=o.string(),J=o.object({plan:zn.optional(),expires:Bn.optional(),message:$n.optional(),messageLink:Kn.optional(),messageCTA:Qn.optional()}),Xn=o.enum(["true","false"]),Yn=o.enum(["true","false"]),Zn=o.enum(["true","false"]),ot=o.string().regex(new RegExp("^[0-9]+m$")),nt=o.string().regex(new RegExp("^[0-9]+m$")),tt=o.string().regex(new RegExp("^[0-9]+Mi$")),et=o.string().regex(new RegExp("^[0-9]+Mi$")),st=o.string().regex(new RegExp("^[0-9]+$")),at=o.number(),it=o.string().regex(new RegExp("^[0-9]+$")),mt=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),ct=o.enum(["3.9","3.10","3.11","3.12"]),rt=o.string(),lt=o.string(),St=o.object({watermarkEnabled:Xn.optional(),nativeTempDir:Yn.optional(),notificationsEnabled:Zn.optional(),requestsCPU:ot.optional(),limitsCPU:nt.optional(),requestsMemory:tt.optional(),limitsMemory:et.optional(),minReplicas:st.optional(),computeUnits:at.optional(),timeoutSeconds:it.optional(),workerType:mt.optional(),pythonVersion:ct.optional(),workerNumber:rt.optional(),baseDockerfile:lt.optional()}),At=o.string(),Ct=o.array(At),bt=o.object({whitelistPatterns:Ct.optional()});o.object({id:V,name:d,featureFlags:f,billingMetadata:J,deploymentResources:St.optional(),membershipsMetadata:bt.optional()});const gt=o.string(),ht=o.array(gt);o.object({whitelistPatterns:ht.optional()});const ut=o.string(),pt=o.string(),Vt=o.string(),dt=o.null(),ft=o.union([Vt,dt]),Jt=o.string(),Dt=o.null(),It=o.union([Jt,Dt]),yt=o.string(),Tt=o.null(),Rt=o.union([yt,Tt]),Ft=o.string(),kt=o.null(),Et=o.union([Ft,kt]),Lt=o.string(),jt=o.null(),Nt=o.union([Lt,jt]),Pt=o.string(),_t=o.null(),wt=o.union([Pt,_t]),Wt=o.string(),Gt=o.null(),Mt=o.union([Wt,Gt]),xt=o.object({name:ut,language:pt,theme:ft,logo_url:It,favicon_url:Rt,brand_name:Et,main_color:Nt,font_family:wt,font_color:Mt}),Ot=o.boolean(),vt=o.string(),qt=o.array(vt),Ut=o.object({is_public:Ot,required_roles:qt}),Ht=o.object({access_control:Ut}),zt=o.string(),Bt=o.string(),$t=o.number(),Kt=o.array($t),Qt=o.string(),Xt=o.string(),Yt=o.string(),Zt=o.string(),oe=o.string(),ne=o.null(),te=o.union([oe,ne]),c=o.object({id:Qt,target_id:Xt,target_type:Yt,type:Zt,task_type:te.optional()}),ee=c,se=o.array(ee),ae=o.string(),ie=o.string(),me=o.object({file:zt,title:Bt,workflow_position:Kt,transitions:se,id:ae,schedule:ie}),ce=me,re=o.array(ce),le=o.string(),Se=o.string(),Ae=o.number(),Ce=o.array(Ae),be=c,ge=o.array(be),he=o.string(),ue=o.string(),pe=o.boolean(),Ve=o.boolean(),de=o.object({file:le,title:Se,workflow_position:Ce,transitions:ge,id:he,path:ue,is_initial:pe,enabled:Ve}),fe=de,Je=o.array(fe),De=o.string(),Ie=o.string(),ye=o.number(),Te=o.array(ye),Re=c,Fe=o.array(Re),ke=o.string(),Ee=o.boolean(),Le=o.string(),je=o.null(),Ne=o.union([Le,je]),Pe=o.string(),_e=o.null(),we=o.union([Pe,_e]),We=o.string(),Ge=o.null(),Me=o.union([We,Ge]),xe=o.string(),Oe=o.null(),ve=o.union([xe,Oe]),qe=o.string(),Ue=o.null(),He=o.union([qe,Ue]),ze=o.boolean(),Be=o.string(),$e=o.array(Be),Ke=o.object({is_public:ze,required_roles:$e}),Qe=o.string(),Xe=o.null(),Ye=o.union([Qe,Xe]),Ze=o.boolean(),os=o.string(),ns=o.null(),ts=o.union([os,ns]),es=o.string(),ss=o.boolean(),as=o.object({variable_name:es,enabled:ss}),is=o.string(),ms=o.boolean(),cs=o.object({file:De,title:Ie,workflow_position:Te,transitions:Fe,id:ke,is_initial:Ee,end_message:Ne,timeout_message:we,start_button_text:Me,error_message:ve,welcome_title:He,access_control:Ke,start_message:Ye,auto_start:Ze,restart_button_text:ts,notification_trigger:as,path:is,allow_restart:ms}),rs=cs,ls=o.array(rs),Ss=o.string(),As=o.string(),Cs=o.number(),bs=o.array(Cs),gs=c,hs=o.array(gs),us=o.string(),ps=o.boolean(),Vs=o.object({file:Ss,title:As,workflow_position:bs,transitions:hs,id:us,is_initial:ps}),ds=Vs,fs=o.array(ds),Js=o.literal("15.0");o.object({workspace:xt,home:Ht,jobs:re,hooks:Je,forms:ls,scripts:fs,version:Js});const Ds=o.string(),Is=o.string(),ys=o.string(),Ts=o.null(),Rs=o.union([ys,Ts]),Fs=o.string(),ks=o.null(),Es=o.union([Fs,ks]),Ls=o.string(),js=o.null(),Ns=o.union([Ls,js]),Ps=o.string(),_s=o.null(),ws=o.union([Ps,_s]),Ws=o.string(),Gs=o.null(),Ms=o.union([Ws,Gs]),xs=o.string(),Os=o.null(),vs=o.union([xs,Os]),qs=o.string(),Us=o.null(),Hs=o.union([qs,Us]),zs=o.object({name:Ds,language:Is,theme:Rs,logo_url:Es,favicon_url:Ns,brand_name:ws,main_color:Ms,font_family:vs,font_color:Hs}),Bs=o.boolean(),$s=o.string(),Ks=o.array($s),Qs=o.object({is_public:Bs,required_roles:Ks}),Xs=o.object({access_control:Qs}),Ys=o.string(),Zs=o.string(),oa=o.number(),na=o.array(oa),ta=o.string(),ea=o.string(),sa=o.string(),aa=o.literal("task"),ia=o.string(),ma=o.null(),ca=o.union([ia,ma]),r=o.object({id:ta,target_id:ea,target_type:sa,type:aa,task_type:ca.optional()}),ra=r,la=o.array(ra),Sa=o.string(),Aa=o.string(),Ca=o.object({file:Ys,title:Zs,workflow_position:na,transitions:la,id:Sa,schedule:Aa}),ba=Ca,ga=o.array(ba),ha=o.string(),ua=o.string(),pa=o.number(),Va=o.array(pa),da=r,fa=o.array(da),Ja=o.string(),Da=o.string(),Ia=o.boolean(),ya=o.boolean(),Ta=o.object({file:ha,title:ua,workflow_position:Va,transitions:fa,id:Ja,path:Da,is_initial:Ia,enabled:ya}),Ra=Ta,Fa=o.array(Ra),ka=o.string(),Ea=o.string(),La=o.number(),ja=o.array(La),Na=r,Pa=o.array(Na),_a=o.string(),wa=o.boolean(),Wa=o.string(),Ga=o.null(),Ma=o.union([Wa,Ga]),xa=o.string(),Oa=o.null(),va=o.union([xa,Oa]),qa=o.string(),Ua=o.null(),Ha=o.union([qa,Ua]),za=o.string(),Ba=o.null(),$a=o.union([za,Ba]),Ka=o.string(),Qa=o.null(),Xa=o.union([Ka,Qa]),Ya=o.boolean(),Za=o.string(),oi=o.array(Za),ni=o.object({is_public:Ya,required_roles:oi}),ti=o.string(),ei=o.null(),si=o.union([ti,ei]),ai=o.boolean(),ii=o.string(),mi=o.null(),ci=o.union([ii,mi]),ri=o.string(),li=o.boolean(),Si=o.object({variable_name:ri,enabled:li}),Ai=o.string(),Ci=o.boolean(),bi=o.object({file:ka,title:Ea,workflow_position:ja,transitions:Pa,id:_a,is_initial:wa,end_message:Ma,timeout_message:va,start_button_text:Ha,error_message:$a,welcome_title:Xa,access_control:ni,start_message:si,auto_start:ai,restart_button_text:ci,notification_trigger:Si,path:Ai,allow_restart:Ci}),gi=bi,hi=o.array(gi),ui=o.string(),pi=o.string(),Vi=o.number(),di=o.array(Vi),fi=r,Ji=o.array(fi),Di=o.string(),Ii=o.boolean(),yi=o.object({file:ui,title:pi,workflow_position:di,transitions:Ji,id:Di,is_initial:Ii}),Ti=yi,Ri=o.array(Ti),Fi=o.literal("14.0");o.object({workspace:zs,home:Xs,jobs:ga,hooks:Fa,forms:hi,scripts:Ri,version:Fi});const ki=o.string(),Ei=o.string(),Li=o.string(),ji=o.null(),Ni=o.union([Li,ji]),Pi=o.string(),_i=o.null(),wi=o.union([Pi,_i]),Wi=o.string(),Gi=o.null(),Mi=o.union([Wi,Gi]),xi=o.string(),Oi=o.null(),vi=o.union([xi,Oi]),qi=o.string(),Ui=o.null(),Hi=o.union([qi,Ui]),zi=o.string(),Bi=o.null(),$i=o.union([zi,Bi]),Ki=o.string(),Qi=o.null(),Xi=o.union([Ki,Qi]),Yi=o.object({name:ki,language:Ei,theme:Ni,logo_url:wi,favicon_url:Mi,brand_name:vi,main_color:Hi,font_family:$i,font_color:Xi}),Zi=o.boolean(),om=o.string(),nm=o.array(om),tm=o.object({is_public:Zi,required_roles:nm}),em=o.object({access_control:tm}),sm=o.string(),am=o.string(),im=o.number(),mm=o.array(im),cm=o.string(),rm=o.string(),lm=o.string(),Sm=o.string(),Am=o.string(),Cm=o.null(),bm=o.union([Am,Cm]),i=o.object({id:cm,target_id:rm,target_type:lm,type:Sm,task_type:bm.optional()}),gm=i,hm=o.array(gm),um=o.string(),pm=o.string(),Vm=o.object({file:sm,title:am,workflow_position:mm,transitions:hm,id:um,schedule:pm}),dm=Vm,fm=o.array(dm),Jm=o.string(),Dm=o.string(),Im=o.number(),ym=o.array(Im),Tm=i,Rm=o.array(Tm),Fm=o.string(),km=o.string(),Em=o.boolean(),Lm=o.boolean(),jm=o.object({file:Jm,title:Dm,workflow_position:ym,transitions:Rm,id:Fm,path:km,is_initial:Em,enabled:Lm}),Nm=jm,Pm=o.array(Nm),_m=o.string(),wm=o.string(),Wm=o.number(),Gm=o.array(Wm),Mm=i,xm=o.array(Mm),Om=o.string(),vm=o.boolean(),qm=o.string(),Um=o.null(),Hm=o.union([qm,Um]),zm=o.string(),Bm=o.null(),$m=o.union([zm,Bm]),Km=o.string(),Qm=o.null(),Xm=o.union([Km,Qm]),Ym=o.string(),Zm=o.null(),oc=o.union([Ym,Zm]),nc=o.string(),tc=o.null(),ec=o.union([nc,tc]),sc=o.boolean(),ac=o.string(),ic=o.array(ac),mc=o.object({is_public:sc,required_roles:ic}),cc=o.string(),rc=o.null(),lc=o.union([cc,rc]),Sc=o.boolean(),Ac=o.string(),Cc=o.null(),bc=o.union([Ac,Cc]),gc=o.string(),hc=o.boolean(),uc=o.object({variable_name:gc,enabled:hc}),pc=o.string(),Vc=o.boolean(),dc=o.object({file:_m,title:wm,workflow_position:Gm,transitions:xm,id:Om,is_initial:vm,end_message:Hm,timeout_message:$m,start_button_text:Xm,error_message:oc,welcome_title:ec,access_control:mc,start_message:lc,auto_start:Sc,restart_button_text:bc,notification_trigger:uc,path:pc,allow_restart:Vc}),fc=dc,Jc=o.array(fc),Dc=o.string(),Ic=o.string(),yc=o.number(),Tc=o.array(yc),Rc=i,Fc=o.array(Rc),kc=o.string(),Ec=o.boolean(),Lc=o.object({file:Dc,title:Ic,workflow_position:Tc,transitions:Fc,id:kc,is_initial:Ec}),jc=Lc,Nc=o.array(jc),Pc=o.string(),_c=o.string(),wc=o.string().uuid(),Wc=o.null(),Gc=o.union([wc,Wc]),Mc=o.number(),xc=o.array(Mc),Oc=i,vc=o.array(Oc),qc=o.string().uuid(),Uc=o.null(),Hc=o.union([qc,Uc]),zc=o.object({id:Pc,title:_c,project_id:Gc,workflow_position:xc,transitions:vc,client_stage_id:Hc}),Bc=o.array(zc),$c=o.string(),Kc=o.string(),Qc=o.number(),Xc=o.array(Qc),Yc=i,Zc=o.array(Yc),or=o.object({id:$c,title:Kc,workflow_position:Xc,transitions:Zc}),nr=o.array(or),tr=o.literal("13.0");o.object({workspace:Yi,home:em,jobs:fm,hooks:Pm,forms:Jc,scripts:Nc,agents:Bc,clients:nr,version:tr});const er=o.string(),sr=o.string(),ar=o.string(),ir=o.null(),mr=o.union([ar,ir]),cr=o.string(),rr=o.null(),lr=o.union([cr,rr]),Sr=o.string(),Ar=o.null(),Cr=o.union([Sr,Ar]),br=o.string(),gr=o.null(),hr=o.union([br,gr]),ur=o.string(),pr=o.null(),Vr=o.union([ur,pr]),dr=o.string(),fr=o.null(),Jr=o.union([dr,fr]),Dr=o.string(),Ir=o.null(),yr=o.union([Dr,Ir]),Tr=o.object({name:er,language:sr,theme:mr,logo_url:lr,favicon_url:Cr,brand_name:hr,main_color:Vr,font_family:Jr,font_color:yr}),Rr=o.boolean(),Fr=o.string(),kr=o.array(Fr),Er=o.object({is_public:Rr,required_roles:kr}),Lr=o.object({access_control:Er}),jr=o.string(),Nr=o.string(),Pr=o.number(),_r=o.array(Pr),wr=o.string(),Wr=o.string(),Gr=o.string(),Mr=o.string(),xr=o.string(),Or=o.null(),vr=o.union([xr,Or]),l=o.object({id:wr,target_id:Wr,target_type:Gr,type:Mr,task_type:vr.optional()}),qr=l,Ur=o.array(qr),Hr=o.string(),zr=o.string(),Br=o.object({file:jr,title:Nr,workflow_position:_r,transitions:Ur,id:Hr,schedule:zr}),$r=Br,Kr=o.array($r),Qr=o.string(),Xr=o.string(),Yr=o.number(),Zr=o.array(Yr),ol=l,nl=o.array(ol),tl=o.string(),el=o.string(),sl=o.boolean(),al=o.boolean(),il=o.object({file:Qr,title:Xr,workflow_position:Zr,transitions:nl,id:tl,path:el,is_initial:sl,enabled:al}),ml=il,cl=o.array(ml),rl=o.string(),ll=o.string(),Sl=o.number(),Al=o.array(Sl),Cl=l,bl=o.array(Cl),gl=o.string(),hl=o.boolean(),ul=o.string(),pl=o.null(),Vl=o.union([ul,pl]),dl=o.string(),fl=o.null(),Jl=o.union([dl,fl]),Dl=o.string(),Il=o.null(),yl=o.union([Dl,Il]),Tl=o.string(),Rl=o.null(),Fl=o.union([Tl,Rl]),kl=o.string(),El=o.null(),Ll=o.union([kl,El]),jl=o.boolean(),Nl=o.string(),Pl=o.array(Nl),_l=o.object({is_public:jl,required_roles:Pl}),wl=o.string(),Wl=o.null(),Gl=o.union([wl,Wl]),Ml=o.boolean(),xl=o.string(),Ol=o.null(),vl=o.union([xl,Ol]),ql=o.string(),Ul=o.boolean(),Hl=o.object({variable_name:ql,enabled:Ul}),zl=o.string(),Bl=o.boolean(),$l=o.object({file:rl,title:ll,workflow_position:Al,transitions:bl,id:gl,is_initial:hl,end_message:Vl,timeout_message:Jl,start_button_text:yl,error_message:Fl,welcome_title:Ll,access_control:_l,start_message:Gl,auto_start:Ml,restart_button_text:vl,notification_trigger:Hl,path:zl,allow_restart:Bl}),Kl=$l,Ql=o.array(Kl),Xl=o.string(),Yl=o.string(),Zl=o.number(),oS=o.array(Zl),nS=l,tS=o.array(nS),eS=o.string(),sS=o.boolean(),aS=o.object({file:Xl,title:Yl,workflow_position:oS,transitions:tS,id:eS,is_initial:sS}),iS=aS,mS=o.array(iS),cS=o.literal("12.0");o.object({workspace:Tr,home:Lr,jobs:Kr,hooks:cl,forms:Ql,scripts:mS,version:cS});const rS=o.literal("replace-code"),lS=o.string(),SS=o.string(),AS=o.literal("replace-code"),CS=o.object({action:rS,actionLabel:lS,newCode:SS,type:AS.optional()}),bS=CS,gS=o.literal("edit-stage-name"),hS=o.string(),uS=o.string(),pS=o.literal("edit-stage-name"),VS=o.object({action:gS,actionLabel:hS,newName:uS,type:pS.optional()}),dS=VS,fS=o.literal("add-notifiable-email"),JS=o.string(),DS=o.string(),IS=o.object({action:fS,actionLabel:JS,email:DS}),yS=IS,TS=o.literal("edit-stage-filename"),RS=o.string(),FS=o.string(),kS=o.literal("edit-stage-filename"),ES=o.object({action:TS,actionLabel:RS,newFilename:FS,type:kS.optional()}),LS=ES,jS=o.union([bS,dS,yS,LS]),NS=o.array(jS);o.object({actions:NS});const PS=o.literal("create-table"),_S=o.string(),wS=o.string().uuid(),WS=o.string(),GS=o.object({action:PS,actionLabel:_S,tableId:wS,tableName:WS}),MS=GS,xS=o.literal("create-column"),OS=o.string(),vS=o.string().uuid(),qS=o.string(),US=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),HS=o.boolean(),zS=o.string(),BS=o.boolean(),$S=o.object({action:xS,actionLabel:OS,tableId:vS,columnName:qS,columnType:US,nullable:HS,default:zS,unique:BS}),KS=$S,QS=o.literal("insert-rows"),XS=o.string(),YS=o.string().uuid(),ZS=o.record(o.any()),oA=o.array(ZS),nA=o.object({action:QS,actionLabel:XS,tableId:YS,rows:oA}),tA=nA,eA=o.literal("edit-table"),sA=o.string(),aA=o.string().uuid(),iA=o.string(),mA=o.object({action:eA,actionLabel:sA,tableId:aA,newTableName:iA}),cA=mA,rA=o.literal("edit-column"),lA=o.string(),SA=o.string().uuid(),AA=o.string().uuid(),CA=o.string(),bA=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),gA=o.boolean(),hA=o.string(),uA=o.boolean(),pA=o.string().uuid(),VA=o.object({columnId:pA}),dA=o.object({columnName:CA.optional(),columnType:bA.optional(),nullable:gA.optional(),default:hA.optional(),unique:uA.optional(),foreignKey:VA.optional()}),fA=o.object({action:rA,actionLabel:lA,columnId:SA,tableId:AA,changes:dA}),JA=fA,DA=o.literal("edit-env-var"),IA=o.string(),yA=o.string(),TA=o.string(),RA=o.object({action:DA,actionLabel:IA,key:yA,newValue:TA}),FA=RA,kA=o.literal("set-env-var"),EA=o.string(),LA=o.string(),jA=o.string(),NA=o.object({action:kA,actionLabel:EA,key:LA,value:jA}),PA=NA,_A=o.literal("install-package"),wA=o.string(),WA=o.string(),GA=o.object({action:_A,actionLabel:wA,packageName:WA}),MA=GA,xA=o.literal("create-stage"),OA=o.string(),vA=o.string().uuid(),qA=o.enum(["form","job","hook","tasklet"]),UA=o.string(),HA=o.string(),zA=o.string(),BA=o.number(),$A=o.number(),KA=o.object({x:BA,y:$A}),QA=o.literal("create-stage"),XA=o.object({action:xA,actionLabel:OA,id:vA,stageType:qA,stageName:UA,code:HA,filename:zA,position:KA,type:QA.optional()}),YA=XA,ZA=o.literal("add-transition"),oC=o.string(),nC=o.string().uuid(),tC=o.string().uuid(),eC=o.object({action:ZA,actionLabel:oC,sourceStageId:nC,targetStageId:tC}),sC=eC,aC=o.literal("edit-stage"),iC=o.string(),mC=o.string().uuid(),cC=o.enum(["form","job","hook","tasklet"]),rC=o.string(),lC=o.object({action:aC,actionLabel:iC,stageId:mC,stageType:cC,stageNewTitle:rC}),SC=lC,AC=o.union([MS,KS,tA,cA,JA,FA,PA,MA,YA,sC,SC]),CC=o.array(AC);o.object({actions:CC});const bC=o.literal("replace-code"),gC=o.string(),hC=o.number(),uC=o.number(),pC=o.object({start:hC,end:uC}),VC=o.string(),dC=o.object({action:bC,actionLabel:gC,lines:pC,newCode:VC}),fC=dC,JC=o.literal("edit-stage-name"),DC=o.string(),IC=o.string(),yC=o.object({action:JC,actionLabel:DC,newName:IC}),TC=yC,RC=o.literal("add-notifiable-email"),FC=o.string(),kC=o.string(),EC=o.object({action:RC,actionLabel:FC,email:kC}),LC=EC,jC=o.union([fC,TC,LC]),NC=o.array(jC);o.object({actions:NC});const PC=o.literal("create-table"),_C=o.string(),wC=o.string().uuid(),WC=o.string(),GC=o.object({action:PC,actionLabel:_C,tableId:wC,tableName:WC}),MC=GC,xC=o.literal("create-column"),OC=o.string(),vC=o.string().uuid(),qC=o.string(),UC=o.enum(["varchar","int","boolean","json","date","timestamp","uuid","real"]),HC=o.object({action:xC,actionLabel:OC,tableId:vC,columnName:qC,columnType:UC}),zC=HC,BC=o.literal("set-env-var"),$C=o.string(),KC=o.string(),QC=o.string(),XC=o.object({action:BC,actionLabel:$C,key:KC,value:QC}),YC=XC,ZC=o.literal("create-stage"),ob=o.string(),nb=o.string().uuid(),tb=o.enum(["form","job","hook","tasklet"]),eb=o.string(),sb=o.string(),ab=o.string(),ib=o.number(),mb=o.number(),cb=o.object({x:ib,y:mb}),rb=o.object({action:ZC,actionLabel:ob,id:nb,stageType:tb,stageName:eb,code:sb,filename:ab,position:cb}),lb=rb,Sb=o.literal("add-transition"),Ab=o.string(),Cb=o.string().uuid(),bb=o.string().uuid(),gb=o.object({action:Sb,actionLabel:Ab,sourceStageId:Cb,targetStageId:bb}),hb=gb,ub=o.union([MC,zC,YC,lb,hb]),pb=o.array(ub);o.object({actions:pb});const Vb=o.enum(["true","false"]),db=o.enum(["true","false"]),fb=o.enum(["true","false"]),Jb=o.string().regex(new RegExp("^[0-9]+m$")),Db=o.string().regex(new RegExp("^[0-9]+m$")),Ib=o.string().regex(new RegExp("^[0-9]+Mi$")),yb=o.string().regex(new RegExp("^[0-9]+Mi$")),Tb=o.string().regex(new RegExp("^[0-9]+$")),Rb=o.number(),Fb=o.string().regex(new RegExp("^[0-9]+$")),kb=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),Eb=o.enum(["3.9","3.10","3.11","3.12"]),Lb=o.string(),jb=o.string();o.object({watermarkEnabled:Vb.optional(),nativeTempDir:db.optional(),notificationsEnabled:fb.optional(),requestsCPU:Jb.optional(),limitsCPU:Db.optional(),requestsMemory:Ib.optional(),limitsMemory:yb.optional(),minReplicas:Tb.optional(),computeUnits:Rb.optional(),timeoutSeconds:Fb.optional(),workerType:kb.optional(),pythonVersion:Eb.optional(),workerNumber:Lb.optional(),baseDockerfile:jb.optional()});const Nb=o.enum(["true","false"]),Pb=o.enum(["true","false"]),_b=o.enum(["true","false"]),wb=o.string().regex(new RegExp("^[0-9]+m$")),Wb=o.string().regex(new RegExp("^[0-9]+m$")),Gb=o.string().regex(new RegExp("^[0-9]+Mi$")),Mb=o.string().regex(new RegExp("^[0-9]+Mi$")),xb=o.string().regex(new RegExp("^[0-9]+$")),Ob=o.number(),vb=o.string().regex(new RegExp("^[0-9]+$")),qb=o.enum(["jusbrasil","clickbus","touchsuite","foursquare","estoca","estoca-test","irko","dr9","onfly","shared","test","abstra-projects"]),Ub=o.enum(["3.9","3.10","3.11","3.12"]),Hb=o.string(),zb=o.string();o.object({watermarkEnabled:Nb.optional(),seleniumInstanceEnabled:Pb.optional(),notificationsEnabled:_b.optional(),requestsCPU:wb.optional(),limitsCPU:Wb.optional(),requestsMemory:Gb.optional(),limitsMemory:Mb.optional(),minReplicas:xb.optional(),computeUnits:Ob.optional(),timeoutSeconds:vb.optional(),workerType:qb.optional(),pythonVersion:Ub.optional(),workerNumber:Hb.optional(),baseDockerfile:zb.optional()});const Bb=o.enum(["file","directory"]),$b=o.string(),Kb=o.string(),Qb=o.string().datetime({local:!0}),Xb=o.number(),Yb=o.string(),Zb=o.number(),og=o.object({type:Bb,path:$b,name:Kb,date:Qb,sizeBytes:Xb.optional(),sizeHuman:Yb.optional(),itemCount:Zb.optional()}),ng=V,tg=d,eg=f,sg=J;o.object({id:ng,name:tg,featureFlags:eg,billingMetadata:sg});const ag=A;o.object({description:ag});const ig=o.number(),mg=o.number();o.object({offset:ig.optional(),limit:mg.optional()});const cg=Z;o.array(cg);const rg=g,lg=A;o.object({name:rg,description:lg.optional()});const Sg=og,Ag=o.array(Sg),Cg=o.number();o.object({items:Ag,totalCount:Cg});const bg=m,gg=C;o.object({email:bg.optional(),roles:gg.optional()});const hg=o.number(),ug=o.number();o.object({offset:hg.optional(),limit:ug.optional()});const pg=Jn;o.array(pg);const Vg=m,dg=C;o.object({email:Vg,roles:dg});const fg=h;o.object({emailPatterns:fg});const Jg=u;o.object({projectId:Jg});const Dg=o.literal("tokens"),Ig=o.record(o.string());o.object({type:Dg,tokens:Ig});const yg=o.string(),Tg=o.string();o.object({redirect:yg,ping:Tg});const Rg=o.string(),Fg=o.record(o.any()),kg=o.string(),Eg=o.object({key:Rg,value:Fg,type:kg}),Lg=Eg,jg=o.array(Lg),Ng=o.string(),Pg=o.string(),_g=o.record(o.any()),D=o.enum(["waiting","running","processing","finished","failed","abandoned"]),wg=o.string(),Wg=o.string(),Gg=o.string(),Mg=o.string();o.object({id:Ng,stage:Pg,data:_g,status:D,created_at:wg,updated_at:Wg,parent_id:Gg.optional(),execution_id:Mg.optional()});const xg=o.string(),Og=o.string(),vg=o.string(),qg=o.string(),Ug=D,Hg=jg,zg=o.string(),Bg=o.object({id:xg,created_at:Og,updated_at:vg.optional(),assignee:qg.optional(),status:Ug,content:Hg,stage:zg.optional()}),$g=Bg,I=o.array($g),Kg=o.string(),Qg=o.enum(["form","hook","job","script"]),Xg=o.string(),Yg=o.string(),Zg=o.boolean(),y=o.object({id:Kg,type:Qg,title:Xg,path:Yg.optional(),can_be_started:Zg}),oh=y,nh=I,th=o.number(),eh=o.boolean(),sh=o.object({selected_stage:oh,stage_run_cards:nh,total_count:th,loading:eh.optional()}),ah=sh,ih=o.array(ah),mh=ih;o.object({columns:mh});const ch=I,rh=o.string(),lh=o.array(rh),Sh=o.number();o.object({stage_run_cards:ch,not_found_stages:lh,total_count:Sh});const Ah=y;o.array(Ah);const Ch=o.string(),bh=Ch,gh=o.literal("text"),hh=o.string(),uh=o.object({type:gh,text:hh}),ph=o.literal("file"),Vh=o.string(),dh=o.string(),fh=o.object({type:ph,fileName:Vh,fileContent:dh}),Jh=o.union([uh,fh]),Dh=o.array(Jh),Ih=Dh,yh=o.record(o.any()),Th=o.string();o.object({conversationId:bh,content:Ih,context:yh,humanApproval:Th.optional()});const Rh=o.string(),Fh=o.enum(["changed","created","deleted","moved"]),kh=o.string(),Wu=o.object({filepath:Rh,event:Fh,content:kh.optional()}),Eh=o.string(),Gu=o.object({separator:Eh}),Lh=o.boolean(),Mu=o.object({ok:Lh.optional()}),jh=b,Nh=o.enum(["form","hook","job","script"]),Ph=o.string(),_h=o.object({type:Nh,id:Ph}),wh=o.array(_h),Wh=o.object({file:jh,stages:wh}),xu=o.array(Wh),Gh=o.boolean(),Ou=o.object({ok:Gh.optional()}),Mh=o.string(),xh=o.array(Mh),Oh=o.string(),vh=o.array(Oh),vu=o.object({pathParts:xh,newPathParts:vh}),qh=o.boolean(),qu=o.object({ok:qh.optional()}),Uh=o.string(),Hh=o.number(),zh=o.enum(["delete","insert"]),Bh=o.string(),$h=o.number(),Kh=o.object({siteId:Uh,pos:Hh,type:zh,value:Bh.optional(),length:$h.optional()});o.array(Kh);const Qh=o.boolean(),Uu=o.object({ok:Qh.optional()}),Hu=b,Xh=o.string(),Yh=o.string(),Zh=o.literal("bug"),ou=o.string(),nu=o.string(),tu=o.string(),eu=o.object({name:nu,label:tu}),su=eu,au=o.array(su),iu=o.object({label:ou,fixes:au}),mu=iu,cu=o.array(mu),ru=o.object({name:Xh,label:Yh,type:Zh,issues:cu}),lu=o.boolean();o.object({success:lu});const Su=ru;o.array(Su);const Au=o.string();o.object({waitingRoomUrl:Au});const Cu=o.string(),bu=o.string(),gu=o.object({name:Cu,value:bu}),hu=gu;o.array(hu);const uu=m;o.object({email:uu});const pu=o.enum(["ALLOWED","UNAUTHORIZED","FORBIDEN","NOT_FOUND"]);o.object({status:pu});const Vu=o.string(),du=o.string().datetime({local:!0}),fu=o.enum(["user","assistant"]),Ju=o.string(),Du=o.string().datetime({local:!0}),Iu=o.string(),yu=o.string(),Tu=o.object({role:fu,content:Ju,createdAt:Du,toolTitle:Iu.optional(),toolCallId:yu.optional()}),Ru=o.array(Tu),Fu=o.object({id:Vu,createdAt:du,messages:Ru}),ku=Fu;o.array(ku);class Eu{async check(){return(await fetch("/_editor/api/linters/check")).json()}async fix(n,t){const a=await fetch(`/_editor/api/linters/fix/${n}/${t}`,{method:"POST"});if(!a.ok)throw new Error("Failed to fix");return S.refetch(),a.json()}}const T=new Eu,S=E(async()=>(await T.check()).map(n=>new Nu(n)));class Lu{constructor(n,t){s(this,"name");s(this,"label");s(this,"ruleName");this.name=n.name,this.label=n.label,this.ruleName=t}async fix(){await T.fix(this.ruleName,this.name)}}class ju{constructor(n,t){s(this,"label");s(this,"fixes");this.ruleName=t,this.label=n.label,this.fixes=n.fixes.map(a=>new Lu(a,t))}}class Nu{constructor(n){s(this,"name");s(this,"label");s(this,"type");s(this,"issues");this.name=n.name,this.label=n.label,this.type=n.type,this.issues=n.issues.map(t=>new ju(t,this.name))}static get asyncComputed(){return S}static fromName(n){var a;const t=(a=S.result.value)==null?void 0:a.find(R=>R.name===n);if(!t)throw new Error(`Rule ${n} not found`);return t}}export{Wu as A,Nu as L,xu as a,Hu as b,Mu as c,Uu as d,vu as e,qu as f,Ou as g,Gu as h};
2
+ //# sourceMappingURL=linters.ed377d41.js.map
@@ -1,7 +1,7 @@
1
- import{m as d}from"./toggleHighContrast.d8b2c912.js";import"./jwt-decode.esm.f18c394f.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="19526c6b-f5a0-444b-9217-0cd0c64eb600",t._sentryDebugIdIdentifier="sentry-dbid-19526c6b-f5a0-444b-9217-0cd0c64eb600")}catch{}})();/*!-----------------------------------------------------------------------------
1
+ import{m as d}from"./toggleHighContrast.62d05446.js";import"./jwt-decode.esm.28320b05.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="443b2c58-b52d-446a-9a6a-f2df0fdcb83f",t._sentryDebugIdIdentifier="sentry-dbid-443b2c58-b52d-446a-9a6a-f2df0fdcb83f")}catch{}})();/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
4
  * Released under the MIT license
5
5
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=c(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{f as conf,g as language};
7
- //# sourceMappingURL=liquid.98fcb8a3.js.map
6
+ *-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,a=(t,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of u(e))!m.call(t,r)&&r!==i&&s(t,r,{get:()=>e[r],enumerable:!(o=c(e,r))||o.enumerable});return t},p=(t,e,i)=>(a(t,e,"default"),i&&a(i,e,"default")),n={};p(n,d);var l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:n.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:n.languages.IndentAction.Indent}}]},g={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}};export{b as conf,g as language};
7
+ //# sourceMappingURL=liquid.5b33b8cc.js.map
@@ -0,0 +1,2 @@
1
+ import{h as n}from"./router.858e1af2.js";import"./jwt-decode.esm.28320b05.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7c7fd3d3-c47e-41c2-93a6-82bb4c2d769f",t._sentryDebugIdIdentifier="sentry-dbid-7c7fd3d3-c47e-41c2-93a6-82bb4c2d769f")}catch{}})();class i{async create(e){return n.post(`organizations/${e.organizationId}/members`,{email:e.email,teams:e.teams})}async delete(e){return n.delete(`organizations/${e.organizationId}/members/${e.authorId}`)}async list(e){return n.get(`organizations/${e}/members`)}async get(e,r){return n.get(`organizations/${e}/members/${r}`)}async update(e,r,a){return n.patch(`organizations/${e}/members/${r}`,a)}}export{i as M};
2
+ //# sourceMappingURL=member.73d141d7.js.map
@@ -1,2 +1,2 @@
1
- import{d as c,am as n,c as s,o as l,a5 as r,a7 as p,h as g,e6 as Z,e as o}from"./jwt-decode.esm.f18c394f.js";import{F as y,G as w,I as M}from"./PhUserList.vue.66442c99.js";import{G as $}from"./PhWebhooksLogo.vue.3159b8c2.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3e728284-df10-42c1-b337-95029628e131",e._sentryDebugIdIdentifier="sentry-dbid-3e728284-df10-42c1-b337-95029628e131")}catch{}})();const k=["width","height","fill","transform"],A={key:0},b=o("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),N=[b],x={key:1},B=o("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),I=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),S=[B,I],z={key:2},C=o("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),D=[C],E={key:3},P=o("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),_=[P],G={key:4},j=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),F=[j],W={key:5},q=o("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),J=[q],K={name:"PhHouse"},R=c({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),d=n("size","1em"),V=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),v=s(()=>{var a;return(a=t.size)!=null?a:d}),u=s(()=>{var a;return(a=t.color)!=null?a:V}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",A,N)):i.value==="duotone"?(l(),r("g",x,S)):i.value==="fill"?(l(),r("g",z,D)):i.value==="light"?(l(),r("g",E,_)):i.value==="regular"?(l(),r("g",G,F)):i.value==="thin"?(l(),r("g",W,J)):g("",!0)],16,k))}}),L=["width","height","fill","transform"],O={key:0},Q=o("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),U=[Q],X={key:1},Y=o("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),T=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),a0=[Y,T],e0={key:2},t0=o("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),l0=[t0],r0={key:3},o0=o("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),i0=[o0],n0={key:4},s0=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),h0=[s0],v0={key:5},d0=o("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),V0=[d0],H0={name:"PhKanban"},u0=c({...H0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),d=n("size","1em"),V=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),v=s(()=>{var a;return(a=t.size)!=null?a:d}),u=s(()=>{var a;return(a=t.color)!=null?a:V}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",O,U)):i.value==="duotone"?(l(),r("g",X,a0)):i.value==="fill"?(l(),r("g",e0,l0)):i.value==="light"?(l(),r("g",r0,i0)):i.value==="regular"?(l(),r("g",n0,h0)):i.value==="thin"?(l(),r("g",v0,V0)):g("",!0)],16,L))}}),m0={stages:[{icon:y,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms"},{typeName:"hooks",title:"Hooks",icon:$,description:"Wait for a trigger from an external service",key:"H"},{typeName:"jobs",title:"Jobs",icon:w,description:"Executed periodically",key:"J"},{typeName:"scripts",title:"Tasklets",icon:M,description:"Run a script when a task arrives",key:"T"}]};function c0(e){e==="tasklet"&&(e="script");const t=m0.stages.find(h=>h.typeName===e||h.typeName===`${e}s`);if(!t)throw new Error(`No metadata found for stage ${e}`);return t.icon}const f0=e=>e==="kanban"?u0:e==="home"?R:c0(e);export{f0 as i,c0 as s,m0 as w};
2
- //# sourceMappingURL=metadata.218ef86b.js.map
1
+ import{d as c,am as n,c as s,o as l,a5 as r,a7 as p,h as g,e6 as Z,e as o}from"./jwt-decode.esm.28320b05.js";import{F as y,G as w,I as M}from"./PhUserList.vue.38f46bf2.js";import{G as $}from"./PhWebhooksLogo.vue.3f80aef6.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="877d1809-d659-49d7-a7dc-bd20aef395e2",e._sentryDebugIdIdentifier="sentry-dbid-877d1809-d659-49d7-a7dc-bd20aef395e2")}catch{}})();const k=["width","height","fill","transform"],A={key:0},b=o("path",{d:"M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z"},null,-1),N=[b],x={key:1},B=o("path",{d:"M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z",opacity:"0.2"},null,-1),I=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),S=[B,I],z={key:2},C=o("path",{d:"M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z"},null,-1),D=[C],E={key:3},P=o("path",{d:"M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z"},null,-1),_=[P],G={key:4},j=o("path",{d:"M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"},null,-1),F=[j],W={key:5},q=o("path",{d:"M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z"},null,-1),J=[q],K={name:"PhHouse"},R=c({...K,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),v=n("size","1em"),V=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),d=s(()=>{var a;return(a=t.size)!=null?a:v}),u=s(()=>{var a;return(a=t.color)!=null?a:V}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",A,N)):i.value==="duotone"?(l(),r("g",x,S)):i.value==="fill"?(l(),r("g",z,D)):i.value==="light"?(l(),r("g",E,_)):i.value==="regular"?(l(),r("g",G,F)):i.value==="thin"?(l(),r("g",W,J)):g("",!0)],16,k))}}),L=["width","height","fill","transform"],O={key:0},Q=o("path",{d:"M216,44H40A12,12,0,0,0,28,56V208a20,20,0,0,0,20,20H88a20,20,0,0,0,20-20V164h40v12a20,20,0,0,0,20,20h40a20,20,0,0,0,20-20V56A12,12,0,0,0,216,44Zm-12,64H172V68h32ZM84,68v40H52V68Zm0,136H52V132H84Zm24-64V68h40v72Zm64,32V132h32v40Z"},null,-1),U=[Q],X={key:1},Y=o("path",{d:"M216,56v64H160V56ZM40,208a8,8,0,0,0,8,8H88a8,8,0,0,0,8-8V120H40Z",opacity:"0.2"},null,-1),T=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48Zm-8,64H168V64h40ZM88,64v48H48V64Zm0,144H48V128H88Zm16-64V64h48v80Zm64,32V128h40v48Z"},null,-1),a0=[Y,T],e0={key:2},t0=o("path",{d:"M160,56v96a8,8,0,0,1-8,8H112a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h40A8,8,0,0,1,160,56Zm64-8H184a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4h48a4,4,0,0,0,4-4V56A8,8,0,0,0,224,48Zm4,80H180a4,4,0,0,0-4,4v44a16,16,0,0,0,16,16h24a16,16,0,0,0,16-16V132A4,4,0,0,0,228,128ZM80,48H40a8,8,0,0,0-8,8v52a4,4,0,0,0,4,4H84a4,4,0,0,0,4-4V56A8,8,0,0,0,80,48Zm4,80H36a4,4,0,0,0-4,4v76a16,16,0,0,0,16,16H72a16,16,0,0,0,16-16V132A4,4,0,0,0,84,128Z"},null,-1),l0=[t0],r0={key:3},o0=o("path",{d:"M216,50H40a6,6,0,0,0-6,6V208a14,14,0,0,0,14,14H88a14,14,0,0,0,14-14V158h52v18a14,14,0,0,0,14,14h40a14,14,0,0,0,14-14V56A6,6,0,0,0,216,50Zm-6,64H166V62h44ZM90,62v52H46V62Zm0,146a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V126H90Zm12-62V62h52v84Zm106,32H168a2,2,0,0,1-2-2V126h44v50A2,2,0,0,1,208,178Z"},null,-1),i0=[o0],n0={key:4},s0=o("path",{d:"M216,48H40a8,8,0,0,0-8,8V208a16,16,0,0,0,16,16H88a16,16,0,0,0,16-16V160h48v16a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V56A8,8,0,0,0,216,48ZM88,208H48V128H88Zm0-96H48V64H88Zm64,32H104V64h48Zm56,32H168V128h40Zm0-64H168V64h40Z"},null,-1),h0=[s0],d0={key:5},v0=o("path",{d:"M216,52H40a4,4,0,0,0-4,4V208a12,12,0,0,0,12,12H88a12,12,0,0,0,12-12V156h56v20a12,12,0,0,0,12,12h40a12,12,0,0,0,12-12V56A4,4,0,0,0,216,52ZM92,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V124H92Zm0-92H44V60H92Zm64,32H100V60h56Zm56,28a4,4,0,0,1-4,4H168a4,4,0,0,1-4-4V124h48Zm0-60H164V60h48Z"},null,-1),V0=[v0],H0={name:"PhKanban"},u0=c({...H0,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const t=e,h=n("weight","regular"),v=n("size","1em"),V=n("color","currentColor"),H=n("mirrored",!1),i=s(()=>{var a;return(a=t.weight)!=null?a:h}),d=s(()=>{var a;return(a=t.size)!=null?a:v}),u=s(()=>{var a;return(a=t.color)!=null?a:V}),m=s(()=>t.mirrored!==void 0?t.mirrored?"scale(-1, 1)":void 0:H?"scale(-1, 1)":void 0);return(a,f)=>(l(),r("svg",Z({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:d.value,height:d.value,fill:u.value,transform:m.value},a.$attrs),[p(a.$slots,"default"),i.value==="bold"?(l(),r("g",O,U)):i.value==="duotone"?(l(),r("g",X,a0)):i.value==="fill"?(l(),r("g",e0,l0)):i.value==="light"?(l(),r("g",r0,i0)):i.value==="regular"?(l(),r("g",n0,h0)):i.value==="thin"?(l(),r("g",d0,V0)):g("",!0)],16,L))}}),m0={stages:[{icon:y,typeName:"forms",description:"Wait for a user input",key:"F",title:"Forms"},{typeName:"hooks",title:"Hooks",icon:$,description:"Wait for a trigger from an external service",key:"H"},{typeName:"jobs",title:"Jobs",icon:w,description:"Executed periodically",key:"J"},{typeName:"scripts",title:"Tasklets",icon:M,description:"Run a script when a task arrives",key:"T"}]};function c0(e){e==="tasklet"&&(e="script");const t=m0.stages.find(h=>h.typeName===e||h.typeName===`${e}s`);if(!t)throw new Error(`No metadata found for stage ${e}`);return t.icon}const f0=e=>e==="kanban"?u0:e==="home"?R:c0(e);export{f0 as i,c0 as s,m0 as w};
2
+ //# sourceMappingURL=metadata.8c8d4b20.js.map
@@ -1,4 +1,4 @@
1
- var P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var o=(i,e,t)=>(Z(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.9924fce0.js";import{d as L,am as I,c as m,o as y,a5 as _,a7 as D,h as R,e6 as U,e as v,r as u,a as T,b as H,g as j,ed as q,u as x,aV as J,_ as V,f as z,eH as G,i as Q,ae as W,q as X,N as $}from"./jwt-decode.esm.f18c394f.js";import{P as K}from"./record.f0e74f25.js";import{u as S}from"./uuid.2e8600ec.js";import{I as Y}from"./PhCopySimple.vue.fa1be768.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="44318d72-9e3d-4ec3-92cf-69bff645a9e6",i._sentryDebugIdIdentifier="sentry-dbid-44318d72-9e3d-4ec3-92cf-69bff645a9e6")}catch{}})();const ee=["width","height","fill","transform"],te={key:0},se=v("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),oe=[se],re={key:1},ie=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ae=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),ne=[ie,ae],le={key:2},ce=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),he=[ce],de={key:3},ue=v("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),ge=[ue],fe={key:4},pe=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),ye=[pe],ve={key:5},_e=v("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),me=[_e],we={name:"PhCheckCircle"},Se=L({...we,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=I("weight","regular"),s=I("size","1em"),r=I("color","currentColor"),c=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),h=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:r}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,g)=>(y(),_("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:f.value},n.$attrs),[D(n.$slots,"default"),l.value==="bold"?(y(),_("g",te,oe)):l.value==="duotone"?(y(),_("g",re,ne)):l.value==="fill"?(y(),_("g",le,he)):l.value==="light"?(y(),_("g",de,ge)):l.value==="regular"?(y(),_("g",fe,ye)):l.value==="thin"?(y(),_("g",ve,me)):R("",!0)],16,ee))}});class O{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class be extends O{constructor(){super("___JSON_MODE___",[])}reduceChar(e){try{this.staging+=e;const t=JSON.parse(this.staging);return this.acc.push(t),this.staging="",t}catch{return}}reduce(e){const t=[];for(const s of e){const r=this.reduceChar(s);r!==void 0&&t.push(r)}return t}}class Ce extends O{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class B{constructor(){o(this,"mode");o(this,"modes",[new Ce,new be]);o(this,"staging","");o(this,"chunkOnBuffer","");o(this,"flagMap");o(this,"flagPrefixes");this.mode=this.modes[0],this.flagMap=new Map,this.flagPrefixes=new Set;for(const e of this.modes){this.flagMap.set(e.flag,e);for(let t=1;t<e.flag.length;t++)this.flagPrefixes.add(e.flag.slice(0,t))}}*reduce(e){for(const t of e){if(this.staging+=t,this.flagMap.has(this.staging)){this.mode=this.flagMap.get(this.staging),this.staging="";continue}if(!this.flagPrefixes.has(this.staging))for(;this.staging.length>0;){const s=this.staging[0];this.staging=this.staging.slice(1);const r=this.mode.reduce(s);if(r!==void 0&&(Array.isArray(r)?yield*r:yield r),this.flagPrefixes.has(this.staging))break}}}*reduceInChunks(e,t){let s="";for(const r of this.reduce(t))if(typeof r=="string")for(s+=r;s.length>=e;)yield s.slice(0,e),s=s.slice(e);else s.length>0&&(yield s,s=""),yield r;s.length>0&&(yield s)}}const N=300;class Ie{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},h=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!h.ok)throw new Error("Failed to send message");const d=(n=h.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}async deleteThread(e){if(!(await fetch(`${this._baseUrl}/thread/${e}`,{method:"DELETE",headers:this._headers})).ok)throw new Error("Failed to delete thread")}async abortStreaming(e){if(!(await fetch(`${this._baseUrl}/abort`,{method:"POST",headers:this._headers,body:JSON.stringify({langGraphThreadId:e})})).ok)throw new Error("Failed to abort streaming")}async getHistory(e,t){const s=await fetch(`${this._baseUrl}/history?limit=${e}&offset=${t}`,{method:"GET"});if(!s.ok)throw new Error("Failed to fetch history");return await s.json()}async vote(e,t,s,r){const c={vote:e,question:t,answer:s,context:r};await fetch(`${this._baseUrl}/vote`,{method:"POST",headers:this._headers,body:JSON.stringify(c)})}startConversation(){return new Promise((e,t)=>{fetch(`${this._baseUrl}/start-conversation`,{method:"POST",headers:this._headers}).then(s=>{if(!s.ok)throw new Error("Failed to start conversation");return s.json()}).then(s=>e(s)).catch(s=>t(s))})}}class Ae{constructor(e){o(this,"projectId");o(this,"baseUrl");this.projectId=e,this.baseUrl=`projects/${e}`}startConversation(){throw new Error("Method not implemented.")}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},d=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}async abortStreaming(e){await C.post(`${this.baseUrl}/abort`,{langGraphThreadId:e})}async getHistory(e,t){const s={limit:`${e}`,offset:`${t}`};return await C.get(`${this.baseUrl}/history`,s)}async deleteThread(e){await C.delete(`${this.baseUrl}/threads/${e}`)}async vote(e,t,s,r){throw new Error("Method not implemented.")}}const Te=L({__name:"CopyButton",props:{textToCopy:{}},setup(i){const e=i,t=u(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(y(),T(x(J),null,{title:H(()=>[j(q(r.value),1)]),default:H(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(y(),T(x(Se),{key:1,color:"#fff",size:"22"})):(y(),T(x(Y),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const xe=V(Te,[["__scopeId","data-v-9f87bac2"]]);class F{constructor(e,t,s){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_stageId",null);o(this,"_hasError",u(null));o(this,"_isLoadingHistory",u(!1));o(this,"_history",u([]));o(this,"_threadHistoryFetchInfo",u({limit:10,offset:0,done:!1}));o(this,"_recentlyAccessedThreads",u([]));o(this,"_environment");o(this,"codeForApproval",u(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${S()}`,this._recentlyAccessedThreads.value.unshift({id:this.conversationId.value,messages:[],createdAt:new Date().toISOString()})});o(this,"fetchHistory",async()=>{this._isLoadingHistory.value=!0;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);this._history.value=e,this._isLoadingHistory.value=!1});o(this,"loadMoreHistory",async()=>{this._isLoadingHistory.value=!0,this._threadHistoryFetchInfo.value.offset+=this._threadHistoryFetchInfo.value.limit;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);e.length<this._threadHistoryFetchInfo.value.limit&&(this._threadHistoryFetchInfo.value.done=!0);const t=[...this._history.value,...e];this._history.value=t,this._isLoadingHistory.value=!1});o(this,"setStageId",e=>{this._stageId=e});o(this,"setError",e=>{this._hasError.value=e});o(this,"_fillChat",e=>{this._logService.clear();for(const t of e)t.toolTitle?(this._logService.log({type:"ai-tool-approval",toolCallId:t.toolCallId,description:t.toolTitle,args:{},disabled:!1,needsApproval:!1,loading:!1}),this._logService.log({type:"ai-tool-call-response",toolCallId:t.toolCallId,response:t.content})):this._logService.log({type:t.role==="user"?"ai-input":"ai-output",log:t.content});this.renderCopyButtons()});o(this,"moveThreadFromHistoryToRecents",e=>{this.conversationId.value=e;const t=this._history.value.find(r=>r.id===e);if(!t)throw new Error(`Thread ${e} not found`);const s=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);s!==-1&&this._recentlyAccessedThreads.value.splice(s,1),this._recentlyAccessedThreads.value.unshift(t),this._fillChat(t.messages)});o(this,"deleteThread",e=>{this._repository.deleteThread(e),this.removeFromRecentlyAccessedThreads(e);const t=this._history.value.findIndex(s=>s.id===e);t!==-1&&this._history.value.splice(t,1)});o(this,"setCurrentThreadFromRecents",e=>{this.conversationId.value=e;const t=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);const[s]=this._recentlyAccessedThreads.value.splice(t,1);this._recentlyAccessedThreads.value.unshift(s),this._fillChat(s.messages)});o(this,"removeFromRecentlyAccessedThreads",e=>{const t=this._recentlyAccessedThreads.value.findIndex(s=>s.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);if(this._recentlyAccessedThreads.value.splice(t,1),this._logService.clear(),this._recentlyAccessedThreads.value.length===0)this.conversationId.value=null;else{const s=this._recentlyAccessedThreads.value[0];this.conversationId.value=s.id,this._fillChat(s.messages)}});o(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const s=z(xe,{textToCopy:t.textContent});G(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t)=>{var s,r,c,l;this.conversationId.value||await this.setupThread(),this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const h=S(),d=this.conversationId.value;if(!d)throw new Error("Conversation ID is not set");const f=[{type:"text",text:this._input.value}],n={currentEditorUrl:window.location.href,panesInfo:e||{}},g=this._repository.sendMessage(d,f,n,this.isIdle.bind(this),t);let p="",k=h,A="";for await(const w of g){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")p+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);else if(a instanceof Object)if(a.type==="ai-tool-approval")if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!0,loading:!1}),((s=a.args)==null?void 0:s.file)&&((r=a.args)==null?void 0:r.replacements)){let b=a.args.replacements;typeof b=="string"&&(b=JSON.parse(b)),this.codeForApproval.value={file:a.args.file,replacements:b.map(M=>({oldContext:M.old_context,newContext:M.new_context}))}}else((c=a.args)==null?void 0:c.file)&&((l=a.args)==null?void 0:l.content)&&(this.codeForApproval.value={file:a.args.file,code:a.args.content});else a.type==="ai-tool-call"?(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!1,loading:!1}),k=S(),A=""):a.type==="ai-tool-call-response"&&this._logService.log({type:"ai-tool-call-response",toolCallId:a.toolCallId,response:a.response})}this._recentlyAccessedThreads.value=this._recentlyAccessedThreads.value.map(w=>(w.id===this.conversationId.value&&w.messages.unshift({role:"assistant",content:p,createdAt:new Date().toISOString()}),w)),this._input.value=""}catch(h){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),console.error(h),Q(h)}finally{this._smartChatState.value="idle",this.renderCopyButtons()}});o(this,"abort",()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle"});o(this,"isLoadingHistory",()=>this._isLoadingHistory.value);o(this,"isProcessing",()=>this._smartChatState.value==="processing");o(this,"isAnswering",()=>this._smartChatState.value==="answering");o(this,"isIdle",()=>this._smartChatState.value==="idle");o(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});o(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});o(this,"setInput",e=>{e=e==null?void 0:e.trimEnd(),this._input.value=e||""});o(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send()});o(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code:
1
+ var P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var o=(i,e,t)=>(Z(i,typeof e!="symbol"?e+"":e,t),t);import{h as C}from"./router.858e1af2.js";import{d as L,am as I,c as m,o as y,a5 as _,a7 as D,h as R,e6 as U,e as v,r as u,a as T,b as H,g as j,ed as q,u as x,aV as J,_ as V,f as z,eH as G,i as Q,ae as W,q as X,N as $}from"./jwt-decode.esm.28320b05.js";import{P as K}from"./record.1b6df81e.js";import{u as S}from"./uuid.fe529613.js";import{I as Y}from"./PhCopySimple.vue.f585b051.js";(function(){try{var i=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(i._sentryDebugIds=i._sentryDebugIds||{},i._sentryDebugIds[e]="98c19f9b-a6b5-4f6b-8de1-b76907ee5486",i._sentryDebugIdIdentifier="sentry-dbid-98c19f9b-a6b5-4f6b-8de1-b76907ee5486")}catch{}})();const ee=["width","height","fill","transform"],te={key:0},se=v("path",{d:"M176.49,95.51a12,12,0,0,1,0,17l-56,56a12,12,0,0,1-17,0l-24-24a12,12,0,1,1,17-17L112,143l47.51-47.52A12,12,0,0,1,176.49,95.51ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"},null,-1),oe=[se],re={key:1},ie=v("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),ae=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),ne=[ie,ae],le={key:2},ce=v("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm45.66,85.66-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35a8,8,0,0,1,11.32,11.32Z"},null,-1),he=[ce],de={key:3},ue=v("path",{d:"M172.24,99.76a6,6,0,0,1,0,8.48l-56,56a6,6,0,0,1-8.48,0l-24-24a6,6,0,0,1,8.48-8.48L112,151.51l51.76-51.75A6,6,0,0,1,172.24,99.76ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"},null,-1),ge=[ue],fe={key:4},pe=v("path",{d:"M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"},null,-1),ye=[pe],ve={key:5},_e=v("path",{d:"M170.83,101.17a4,4,0,0,1,0,5.66l-56,56a4,4,0,0,1-5.66,0l-24-24a4,4,0,0,1,5.66-5.66L112,154.34l53.17-53.17A4,4,0,0,1,170.83,101.17ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"},null,-1),me=[_e],we={name:"PhCheckCircle"},Se=L({...we,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(i){const e=i,t=I("weight","regular"),s=I("size","1em"),r=I("color","currentColor"),c=I("mirrored",!1),l=m(()=>{var n;return(n=e.weight)!=null?n:t}),h=m(()=>{var n;return(n=e.size)!=null?n:s}),d=m(()=>{var n;return(n=e.color)!=null?n:r}),f=m(()=>e.mirrored!==void 0?e.mirrored?"scale(-1, 1)":void 0:c?"scale(-1, 1)":void 0);return(n,g)=>(y(),_("svg",U({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:h.value,height:h.value,fill:d.value,transform:f.value},n.$attrs),[D(n.$slots,"default"),l.value==="bold"?(y(),_("g",te,oe)):l.value==="duotone"?(y(),_("g",re,ne)):l.value==="fill"?(y(),_("g",le,he)):l.value==="light"?(y(),_("g",de,ge)):l.value==="regular"?(y(),_("g",fe,ye)):l.value==="thin"?(y(),_("g",ve,me)):R("",!0)],16,ee))}});class O{constructor(e,t){o(this,"staging");this.flag=e,this.acc=t,this.staging=""}}class be extends O{constructor(){super("___JSON_MODE___",[])}reduceChar(e){try{this.staging+=e;const t=JSON.parse(this.staging);return this.acc.push(t),this.staging="",t}catch{return}}reduce(e){const t=[];for(const s of e){const r=this.reduceChar(s);r!==void 0&&t.push(r)}return t}}class Ce extends O{constructor(){super("___TEXT_MODE___","")}reduce(e){return this.staging+=e,this.acc=this.staging,e}}class B{constructor(){o(this,"mode");o(this,"modes",[new Ce,new be]);o(this,"staging","");o(this,"chunkOnBuffer","");o(this,"flagMap");o(this,"flagPrefixes");this.mode=this.modes[0],this.flagMap=new Map,this.flagPrefixes=new Set;for(const e of this.modes){this.flagMap.set(e.flag,e);for(let t=1;t<e.flag.length;t++)this.flagPrefixes.add(e.flag.slice(0,t))}}*reduce(e){for(const t of e){if(this.staging+=t,this.flagMap.has(this.staging)){this.mode=this.flagMap.get(this.staging),this.staging="";continue}if(!this.flagPrefixes.has(this.staging))for(;this.staging.length>0;){const s=this.staging[0];this.staging=this.staging.slice(1);const r=this.mode.reduce(s);if(r!==void 0&&(Array.isArray(r)?yield*r:yield r),this.flagPrefixes.has(this.staging))break}}}*reduceInChunks(e,t){let s="";for(const r of this.reduce(t))if(typeof r=="string")for(s+=r;s.length>=e;)yield s.slice(0,e),s=s.slice(e);else s.length>0&&(yield s,s=""),yield r;s.length>0&&(yield s)}}const N=300;class Ie{constructor(){o(this,"_baseUrl","/_editor/api/ai");o(this,"_headers",{"Content-Type":"application/json"})}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},h=await fetch(`${this._baseUrl}/stream`,{method:"POST",headers:this._headers,body:JSON.stringify(l)});if(!h.ok)throw new Error("Failed to send message");const d=(n=h.body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}async deleteThread(e){if(!(await fetch(`${this._baseUrl}/thread/${e}`,{method:"DELETE",headers:this._headers})).ok)throw new Error("Failed to delete thread")}async abortStreaming(e){if(!(await fetch(`${this._baseUrl}/abort`,{method:"POST",headers:this._headers,body:JSON.stringify({langGraphThreadId:e})})).ok)throw new Error("Failed to abort streaming")}async getHistory(e,t){const s=await fetch(`${this._baseUrl}/history?limit=${e}&offset=${t}`,{method:"GET"});if(!s.ok)throw new Error("Failed to fetch history");return await s.json()}async vote(e,t,s,r){const c={vote:e,question:t,answer:s,context:r};await fetch(`${this._baseUrl}/vote`,{method:"POST",headers:this._headers,body:JSON.stringify(c)})}startConversation(){return new Promise((e,t)=>{fetch(`${this._baseUrl}/start-conversation`,{method:"POST",headers:this._headers}).then(s=>{if(!s.ok)throw new Error("Failed to start conversation");return s.json()}).then(s=>e(s)).catch(s=>t(s))})}}class Ae{constructor(e){o(this,"projectId");o(this,"baseUrl");this.projectId=e,this.baseUrl=`projects/${e}`}startConversation(){throw new Error("Method not implemented.")}async*sendMessage(e,t,s,r,c){var n;const l={conversationId:e,content:t,context:s,humanApproval:c},d=(n=(await C.postRaw(`${this.baseUrl}/messages`,l)).body)==null?void 0:n.getReader();if(!d)throw new Error("No response body");const f=new B;for(;!r();){const g=await d.read();if(g.done)break;for(const p of f.reduceInChunks(N,new TextDecoder().decode(g.value)))yield p}}async abortStreaming(e){await C.post(`${this.baseUrl}/abort`,{langGraphThreadId:e})}async getHistory(e,t){const s={limit:`${e}`,offset:`${t}`};return await C.get(`${this.baseUrl}/history`,s)}async deleteThread(e){await C.delete(`${this.baseUrl}/threads/${e}`)}async vote(e,t,s,r){throw new Error("Method not implemented.")}}const Te=L({__name:"CopyButton",props:{textToCopy:{}},setup(i){const e=i,t=u(!1),s=()=>{navigator.clipboard.writeText(e.textToCopy),t.value=!0,setTimeout(()=>t.value=!1,2e3)},r=m(()=>t.value?"Copied!":"Copy to clipboard");return(c,l)=>(y(),T(x(J),null,{title:H(()=>[j(q(r.value),1)]),default:H(()=>[v("div",{class:"copy-button",onClick:s},[t.value?(y(),T(x(Se),{key:1,color:"#fff",size:"22"})):(y(),T(x(Y),{key:0,color:"#fff",size:"22"}))])]),_:1}))}});const xe=V(Te,[["__scopeId","data-v-9f87bac2"]]);class F{constructor(e,t,s){o(this,"_repository");o(this,"conversationId");o(this,"_input");o(this,"_badgeState");o(this,"_smartChatState");o(this,"_logService");o(this,"_stageId",null);o(this,"_hasError",u(null));o(this,"_isLoadingHistory",u(!1));o(this,"_history",u([]));o(this,"_threadHistoryFetchInfo",u({limit:10,offset:0,done:!1}));o(this,"_recentlyAccessedThreads",u([]));o(this,"_environment");o(this,"codeForApproval",u(null));o(this,"setupThread",async()=>{this.conversationId.value=`abstra-assistant-thread-${S()}`,this._recentlyAccessedThreads.value.unshift({id:this.conversationId.value,messages:[],createdAt:new Date().toISOString()})});o(this,"fetchHistory",async()=>{this._isLoadingHistory.value=!0;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);this._history.value=e,this._isLoadingHistory.value=!1});o(this,"loadMoreHistory",async()=>{this._isLoadingHistory.value=!0,this._threadHistoryFetchInfo.value.offset+=this._threadHistoryFetchInfo.value.limit;const e=await this._repository.getHistory(this._threadHistoryFetchInfo.value.limit,this._threadHistoryFetchInfo.value.offset);e.length<this._threadHistoryFetchInfo.value.limit&&(this._threadHistoryFetchInfo.value.done=!0);const t=[...this._history.value,...e];this._history.value=t,this._isLoadingHistory.value=!1});o(this,"setStageId",e=>{this._stageId=e});o(this,"setError",e=>{this._hasError.value=e});o(this,"_fillChat",e=>{this._logService.clear();for(const t of e)t.toolTitle?(this._logService.log({type:"ai-tool-approval",toolCallId:t.toolCallId,description:t.toolTitle,args:{},disabled:!1,needsApproval:!1,loading:!1}),this._logService.log({type:"ai-tool-call-response",toolCallId:t.toolCallId,response:t.content})):this._logService.log({type:t.role==="user"?"ai-input":"ai-output",log:t.content});this.renderCopyButtons()});o(this,"moveThreadFromHistoryToRecents",e=>{this.conversationId.value=e;const t=this._history.value.find(r=>r.id===e);if(!t)throw new Error(`Thread ${e} not found`);const s=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);s!==-1&&this._recentlyAccessedThreads.value.splice(s,1),this._recentlyAccessedThreads.value.unshift(t),this._fillChat(t.messages)});o(this,"deleteThread",e=>{this._repository.deleteThread(e),this.removeFromRecentlyAccessedThreads(e);const t=this._history.value.findIndex(s=>s.id===e);t!==-1&&this._history.value.splice(t,1)});o(this,"setCurrentThreadFromRecents",e=>{this.conversationId.value=e;const t=this._recentlyAccessedThreads.value.findIndex(r=>r.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);const[s]=this._recentlyAccessedThreads.value.splice(t,1);this._recentlyAccessedThreads.value.unshift(s),this._fillChat(s.messages)});o(this,"removeFromRecentlyAccessedThreads",e=>{const t=this._recentlyAccessedThreads.value.findIndex(s=>s.id===e);if(t===-1)throw new Error(`Thread ${e} not found`);if(this._recentlyAccessedThreads.value.splice(t,1),this._logService.clear(),this._recentlyAccessedThreads.value.length===0)this.conversationId.value=null;else{const s=this._recentlyAccessedThreads.value[0];this.conversationId.value=s.id,this._fillChat(s.messages)}});o(this,"renderCopyButtons",()=>{document.querySelectorAll("pre").forEach(t=>{t.style.position="relative";const s=z(xe,{textToCopy:t.textContent});G(s,t)})});o(this,"clearLogService",()=>{this._logService.clear()});o(this,"send",async(e,t)=>{var s,r,c,l;this.conversationId.value||await this.setupThread(),this._logService.log({type:"ai-input",log:this._input.value}),this._smartChatState.value="processing";try{const h=S(),d=this.conversationId.value;if(!d)throw new Error("Conversation ID is not set");const f=[{type:"text",text:this._input.value}],n={currentEditorUrl:window.location.href,panesInfo:e||{}},g=this._repository.sendMessage(d,f,n,this.isIdle.bind(this),t);let p="",k=h,A="";for await(const w of g){if(this.isIdle())break;this._smartChatState.value==="processing"&&(this._smartChatState.value="answering");const a=w;if(typeof a=="string")p+=a,A+=a,this._logService.log({type:"ai-output",log:A},k);else if(a instanceof Object)if(a.type==="ai-tool-approval")if(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!0,loading:!1}),((s=a.args)==null?void 0:s.file)&&((r=a.args)==null?void 0:r.replacements)){let b=a.args.replacements;typeof b=="string"&&(b=JSON.parse(b)),this.codeForApproval.value={file:a.args.file,replacements:b.map(M=>({oldContext:M.old_context,newContext:M.new_context}))}}else((c=a.args)==null?void 0:c.file)&&((l=a.args)==null?void 0:l.content)&&(this.codeForApproval.value={file:a.args.file,code:a.args.content});else a.type==="ai-tool-call"?(this._logService.log({type:"ai-tool-approval",toolCallId:a.toolCallId,description:a.title,args:a.args,disabled:!1,needsApproval:!1,loading:!1}),k=S(),A=""):a.type==="ai-tool-call-response"&&this._logService.log({type:"ai-tool-call-response",toolCallId:a.toolCallId,response:a.response})}this._recentlyAccessedThreads.value=this._recentlyAccessedThreads.value.map(w=>(w.id===this.conversationId.value&&w.messages.unshift({role:"assistant",content:p,createdAt:new Date().toISOString()}),w)),this._input.value=""}catch(h){this._logService.log({type:"ai-output",log:"Sorry, there was an issue processing your request. Please try again later."}),console.error(h),Q(h)}finally{this._smartChatState.value="idle",this.renderCopyButtons()}});o(this,"abort",()=>{if(!this.conversationId.value)throw new Error("Conversation ID is not set");this._repository.abortStreaming(this.conversationId.value),this._smartChatState.value="idle"});o(this,"isLoadingHistory",()=>this._isLoadingHistory.value);o(this,"isProcessing",()=>this._smartChatState.value==="processing");o(this,"isAnswering",()=>this._smartChatState.value==="answering");o(this,"isIdle",()=>this._smartChatState.value==="idle");o(this,"setSeen",()=>{this._badgeState.value={type:"seen"}});o(this,"setUnseen",e=>{this._badgeState.value={type:"unseen",count:this._badgeState.value.type==="unseen"?this._badgeState.value.count+1:1,severity:e.type==="stderr"?"error":"info"}});o(this,"setInput",e=>{e=e==null?void 0:e.trimEnd(),this._input.value=e||""});o(this,"regenerateLast",async()=>{for(let e=this._logService.logs.length-1;e>=0;e--){const t=this._logService.logs[e];if(t.type==="ai-input"){this.setInput(t.log);break}}await this.send()});o(this,"fixJson",async(e,t)=>{this._logService.clear(),this._logService.log({type:"ai-input",log:`here is my json code:
2
2
  ${e}
3
3
  And I got this error:`}),this._logService.log({type:"stderr",log:t}),this.setSeen(),this.setInput("Can you fix this JSON?"),await this.send()});o(this,"askAboutError",async(e,t)=>{this._logService.clear(),this.setInput(`I have this error in my code:
4
4
  ${e.entries.map(s=>s.payload.text).join("")}
@@ -7,4 +7,4 @@ var P=Object.defineProperty;var Z=(i,e,t)=>e in i?P(i,e,{enumerable:!0,configura
7
7
  My current code is: ${t||"No code provided"}`),await this.send()});o(this,"vote",async(e,t)=>{const s=this._logService.logs[e],r=this._logService.logs[e-1],c=this._logService.logs.slice(0,e-1);await this._repository.vote(t,r,s,c)});this._repository=e,this._logService=t,this.conversationId=u(null),this._input=u(""),this._badgeState=u({type:"seen"}),this._smartChatState=u("idle"),this._environment=s}init(){this.setupThread(),this.renderCopyButtons(),this.fetchHistory()}get hasError(){var e;return((e=this._hasError.value)==null?void 0:e.payload)||null}get logService(){return this._logService}shouldRenderLoadMoreHistory(){return!this._threadHistoryFetchInfo.value.done}get pastThreads(){return this._history.value.map(e=>e.messages.length===0?{threadId:e.id,title:"New thread"}:{threadId:e.id,title:e.messages[0].content.slice(0,20)+"..."})}get recentlyAccessedThreads(){return this._recentlyAccessedThreads.value.map(e=>({threadId:e.id,title:e.messages.length>0?e.messages[0].content.slice(0,20)+"...":"New thread"}))}get badgeState(){return this._badgeState.value}get input(){return this._input.value}}class E{constructor(){o(this,"logState",W({log:[]}));o(this,"_listeners",{});o(this,"getLastExecutionLogs",e=>{let t="";for(let s=this.logs.length-1;s>=0;s--){const r=this.logs[s];if(r.type!==e&&t.length>0)break;r.type===e&&(t=`${r.log}
8
8
  ${t}`)}return t})}static create(){return new E}get logs(){return this.logState.log}hasAiLogs(){return this.logs.some(e=>e.type==="ai-input"||e.type==="ai-output")}log(e,t){if(e.type!=="restart"&&e.type!=="ai-actions"&&e.type!=="ai-tool-approval"&&e.type!=="ai-tool-call-response"&&"log"in e&&e.log.trim()==="")return;const s=t?this.logs.find(r=>r.id===t):null;return s?(s.type==="stderr"&&e.type==="stderr"&&(e.log=s.log+`
9
9
  `+e.log),Object.assign(s,e)):this.logs.push({...e,id:t||S()}),this.notifyListeners(e),t}clear(){this.logState.log=[]}listen(e){const t=S();return this._listeners[t]=e,t}unlisten(e){delete this._listeners[e]}notifyListeners(e){Object.values(this._listeners).forEach(t=>t(e))}}const Le=new K,Oe=X("omniChat",()=>{const i=u(!0),e=u(!1),t=E.create(),s=$(),r=$(),c=(g,p)=>{if(!r.value)if(g==="console"){if(!p)throw new Error("Project ID is required for console chat");s.value=new Ae(p),r.value=new F(s.value,t,{origin:g,projectId:p})}else s.value=new Ie,r.value=new F(s.value,t,{origin:g})},l=()=>{e.value=!0},h=()=>{e.value=!1},d=()=>{i.value=!0,l()},f=()=>{i.value=!1,h()};return{isOpen:i,isInputFocused:e,focusInput:l,blurInput:h,open:d,close:f,toggle:()=>{i.value?f():d()},controller:m(()=>r.value),repository:s,init:c}});export{Se as H,Ie as L,F as S,E as a,Le as o,Oe as u};
10
- //# sourceMappingURL=omniChatStore.405dd08d.js.map
10
+ //# sourceMappingURL=omniChatStore.b7128bc4.js.map
@@ -1,2 +1,2 @@
1
- var c=Object.defineProperty;var l=(a,t,e)=>t in a?c(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{h as s}from"./router.9924fce0.js";import"./jwt-decode.esm.f18c394f.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="9aba83a8-3edc-4925-abcb-424beff6efb2",a._sentryDebugIdIdentifier="sentry-dbid-9aba83a8-3edc-4925-abcb-424beff6efb2")}catch{}})();class o{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async getUsageReportUrl(t){return s.get(`${this.urlPath}/${t}/usage-report`)}}const r=new o;class n{constructor(t){this.dto=t}static async list(){return(await r.list()).map(e=>new n(e))}static async create(t){const e=await r.create({name:t});return new n(e)}static async get(t){const e=await r.get(t);return new n(e)}static async rename(t,e){return r.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}get coalescedPlan(){var t;return(t=this.billingMetadata.plan)!=null?t:"No active plan"}get hasUsageReport(){return["Business","Abstra"].includes(this.coalescedPlan)}async getUsageReportUrl(){return r.getUsageReportUrl(this.id)}}export{o as O,n as a};
2
- //# sourceMappingURL=organization.c20116a5.js.map
1
+ var c=Object.defineProperty;var l=(a,t,e)=>t in a?c(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var i=(a,t,e)=>(l(a,typeof t!="symbol"?t+"":t,e),e);import{h as s}from"./router.858e1af2.js";import"./jwt-decode.esm.28320b05.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[t]="46c9f25c-000a-4176-8491-59ffa4f3663e",a._sentryDebugIdIdentifier="sentry-dbid-46c9f25c-000a-4176-8491-59ffa4f3663e")}catch{}})();class o{constructor(){i(this,"urlPath","organizations")}async create(t){return s.post(`${this.urlPath}`,t)}async delete(t){await s.delete(`${this.urlPath}/${t}`)}async rename(t,e){await s.patch(`${this.urlPath}/${t}`,{name:e})}async list(){return s.get(`${this.urlPath}`)}async get(t){return s.get(`${this.urlPath}/${t}`)}async getUsageReportUrl(t){return s.get(`${this.urlPath}/${t}/usage-report`)}}const r=new o;class n{constructor(t){this.dto=t}static async list(){return(await r.list()).map(e=>new n(e))}static async create(t){const e=await r.create({name:t});return new n(e)}static async get(t){const e=await r.get(t);return new n(e)}static async rename(t,e){return r.rename(t,e)}get id(){return this.dto.id}get name(){return this.dto.name}get featureFlags(){return this.dto.featureFlags}get billingMetadata(){return this.dto.billingMetadata}get coalescedPlan(){var t;return(t=this.billingMetadata.plan)!=null?t:"No active plan"}get hasUsageReport(){return["Business","Abstra"].includes(this.coalescedPlan)}async getUsageReportUrl(){return r.getUsageReportUrl(this.id)}}export{o as O,n as a};
2
+ //# sourceMappingURL=organization.7d79a3c7.js.map
@@ -0,0 +1,2 @@
1
+ import{y as n,z as r,B as o,C as c,P as p,D as d,E as f,F as m,G as a,H as u,I as b,J as g,K as y}from"./jwt-decode.esm.28320b05.js";import{a as l,b as i}from"./workspaceStore.20104d6a.js";import{s as w}from"./index.b0181193.js";import{_ as h}from"./App.vue_vue_type_style_index_0_lang.4abdaaf3.js";import"./userStore.c0562f9d.js";import"./url.e7d14364.js";import"./colorHelpers.f396fe13.js";import"./PlayerConfigProvider.0ec5f598.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[s]="2a2bf116-7a37-45c5-b8a5-5b19e6e3e346",t._sentryDebugIdIdentifier="sentry-dbid-2a2bf116-7a37-45c5-b8a5-5b19e6e3e346")}catch{}})();class I{static init(){setInterval(()=>{fetch("/_healthcheck").catch(()=>{})},20*1e3)}}(async()=>{await w();const t=await l(),s=n(),e=r({render:()=>u(h)});o.init(),c(e,i,t),I.init(),e.use(i),e.use(s),e.use(p),e.mount("#app"),e.component("VSelect",d),e.component("Markdown",f),e.component("Message",m),a(e,b),a(e,g),a(e,y)})();
2
+ //# sourceMappingURL=player.027b4a53.js.map